hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6dc4aef7f7b2ee6ba5efc22d2683853ade1ebc0b | 3,411 | hpp | C++ | include/utils/for_each.hpp | fengwang/ceras | 15d10e8909ded656f45201aecc45b8eefe961b2d | [
"BSD-3-Clause"
] | 65 | 2020-12-07T01:15:41.000Z | 2022-03-28T01:17:33.000Z | include/utils/for_each.hpp | fengwang/ceras | 15d10e8909ded656f45201aecc45b8eefe961b2d | [
"BSD-3-Clause"
] | 1 | 2021-04-08T13:20:39.000Z | 2021-04-09T00:37:02.000Z | include/utils/for_each.hpp | fengwang/ceras | 15d10e8909ded656f45201aecc45b8eefe961b2d | [
"BSD-3-Clause"
] | 7 | 2021-01-07T08:52:39.000Z | 2022-03-08T13:04:37.000Z | #ifndef FOR_EACH_HPP_INCLUDED_DSPOJSADLK111111111111111111111983UY4KAJSLFLKJFDIF
#define FOR_EACH_HPP_INCLUDED_DSPOJSADLK111111111111111111111983UY4KAJSLFLKJFDIF
#include "../includes.hpp"
#include "./range.hpp"
#include "./parallel.hpp"
namespace ceras
{
namespace// anonymous namespace
{
template < ... | 36.677419 | 143 | 0.61243 | fengwang |
6dc5b8583cf7a282574ac4c5797c9933b8ca818d | 261 | hpp | C++ | core/Exception.hpp | longzuo/SimpleKeyValueDb | ac5ba1184f3ce273ba9a0b1160c091de9902c0f6 | [
"MIT"
] | 1 | 2019-05-25T11:17:21.000Z | 2019-05-25T11:17:21.000Z | core/Exception.hpp | longzuo/SimpleKeyValueDb | ac5ba1184f3ce273ba9a0b1160c091de9902c0f6 | [
"MIT"
] | null | null | null | core/Exception.hpp | longzuo/SimpleKeyValueDb | ac5ba1184f3ce273ba9a0b1160c091de9902c0f6 | [
"MIT"
] | null | null | null | #ifndef SDB_EXCEPTIONS_HPP
#define SDB_EXCEPTIONS_HPP
#include <stdexcept>
namespace SDB {
class SdbException : public std::runtime_error {
public:
explicit SdbException(const std::string& msg) : std::runtime_error(msg) {}
};
} // namespace SDB
#endif | 21.75 | 78 | 0.743295 | longzuo |
6dcb24e72c474a1f85ff67f1563500db6cb00701 | 2,225 | cpp | C++ | core/warp_solver/RigidSolver.cpp | mihaibujanca/surfelwarp | 3b424f912b2a90412ad781940b071520825c3030 | [
"BSD-3-Clause"
] | null | null | null | core/warp_solver/RigidSolver.cpp | mihaibujanca/surfelwarp | 3b424f912b2a90412ad781940b071520825c3030 | [
"BSD-3-Clause"
] | null | null | null | core/warp_solver/RigidSolver.cpp | mihaibujanca/surfelwarp | 3b424f912b2a90412ad781940b071520825c3030 | [
"BSD-3-Clause"
] | 1 | 2020-07-15T05:54:31.000Z | 2020-07-15T05:54:31.000Z | //
// Created by wei on 5/22/18.
//
#include "common/ConfigParser.h"
#include "core/warp_solver/RigidSolver.h"
#include <Eigen/Eigen>
surfelwarp::RigidSolver::RigidSolver() {
//Init the intrisic for projection
const auto& config = ConfigParser::Instance();
m_project_intrinsic = config.rgb_intrinsic_clip();
m_ima... | 26.807229 | 86 | 0.733483 | mihaibujanca |
6dcf9957d8485f31f9bdd11b7d3b47c283043e7d | 1,574 | hpp | C++ | include/pique/data/grid.hpp | daboyuka/PIQUE | d0e2ba4cc47aaeaf364b3c76339306e1795adb5e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | include/pique/data/grid.hpp | daboyuka/PIQUE | d0e2ba4cc47aaeaf364b3c76339306e1795adb5e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | include/pique/data/grid.hpp | daboyuka/PIQUE | d0e2ba4cc47aaeaf364b3c76339306e1795adb5e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright 2015 David A. Boyuka II
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 29.698113 | 135 | 0.691868 | daboyuka |
6dd12f37c7e32ea04ee35dd4e712e20a5e481085 | 3,554 | hpp | C++ | src/Generator/Polar/Generator_polar.hpp | aff3ct/polar_decoder_gen | 7d02025aa62bbef58b88f8fca65f5ee9ed86727e | [
"MIT"
] | 8 | 2018-03-14T22:17:16.000Z | 2021-05-31T23:29:03.000Z | src/Generator/Polar/Generator_polar.hpp | aff3ct/polar_decoder_gen | 7d02025aa62bbef58b88f8fca65f5ee9ed86727e | [
"MIT"
] | 1 | 2017-09-30T01:02:23.000Z | 2018-03-16T09:01:33.000Z | src/Generator/Polar/Generator_polar.hpp | aff3ct/polar_decoder_gen | 7d02025aa62bbef58b88f8fca65f5ee9ed86727e | [
"MIT"
] | 2 | 2019-09-16T08:30:13.000Z | 2019-12-17T02:15:34.000Z | #ifndef GENERATOR_POLAR_SYS_
#define GENERATOR_POLAR_SYS_
#include <map>
#include <vector>
#include <mipp.h>
#include <aff3ct.hpp>
#include "../Generator.hpp"
namespace aff3ct
{
namespace generator
{
class Generator_polar : public Generator
{
protected:
const int K; // k bits input
const int N; // n bits input
co... | 35.188119 | 134 | 0.655318 | aff3ct |
6dd25a7eb3167e6380786d56bfe0fe1389550fa3 | 33,982 | cpp | C++ | cuda/cudamd/Host.cpp | vakuras/moleculardynamics | f9c6b03db7df8e429f72fa17b5ccfd98d08ee272 | [
"MIT"
] | null | null | null | cuda/cudamd/Host.cpp | vakuras/moleculardynamics | f9c6b03db7df8e429f72fa17b5ccfd98d08ee272 | [
"MIT"
] | null | null | null | cuda/cudamd/Host.cpp | vakuras/moleculardynamics | f9c6b03db7df8e429f72fa17b5ccfd98d08ee272 | [
"MIT"
] | null | null | null | ///
/// Host Implementation
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by Vadim Kuras. 2009-2010.
///
#include "Host.h"
///
/// Simulation main host function
///
int hostMain(CUdevice device, char * module_path, configuration * config)
{
real4 * posArray; //positions (host)
real3 ... | 39.194925 | 275 | 0.731122 | vakuras |
6dd279a35cd5586705bac9ecb509f1606d9aba00 | 2,351 | cpp | C++ | examples/st7920_12864_8080_example.cpp | lin2010304125/rt-u8g2 | bca73e4406193e5986e0fffadc0aba2daa68bca1 | [
"CC-BY-3.0"
] | null | null | null | examples/st7920_12864_8080_example.cpp | lin2010304125/rt-u8g2 | bca73e4406193e5986e0fffadc0aba2daa68bca1 | [
"CC-BY-3.0"
] | null | null | null | examples/st7920_12864_8080_example.cpp | lin2010304125/rt-u8g2 | bca73e4406193e5986e0fffadc0aba2daa68bca1 | [
"CC-BY-3.0"
] | null | null | null | #include <rthw.h>
#include <rtthread.h>
#include <rtdevice.h>
#include <U8g2lib.h>
// You may reference Drivers/drv_gpio.c for pinout
// In u8x8.h #define U8X8_USE_PINS
#define ST7920_8080_PIN_D0 36 // PB15
#define ST7920_8080_PIN_D1 35 // PB14
#define ST7920_8080_PIN_D2 ... | 47.979592 | 90 | 0.522756 | lin2010304125 |
6dd56544fcecaecfd25b6a183cc3753589d6bcc0 | 3,474 | inl | C++ | test/bincore.inl | PredatorCZ/PreCore | 98f5896e35371d034e6477dd0ce9edeb4fd8d814 | [
"Apache-2.0"
] | 5 | 2019-10-17T15:52:38.000Z | 2021-08-10T18:57:32.000Z | test/bincore.inl | PredatorCZ/PreCore | 98f5896e35371d034e6477dd0ce9edeb4fd8d814 | [
"Apache-2.0"
] | null | null | null | test/bincore.inl | PredatorCZ/PreCore | 98f5896e35371d034e6477dd0ce9edeb4fd8d814 | [
"Apache-2.0"
] | 1 | 2021-01-31T20:37:42.000Z | 2021-01-31T20:37:42.000Z | #include "../datas/binwritter.hpp"
#include "../datas/binreader.hpp"
#include <sstream>
struct BinStr00 {
int8 v0;
bool v1;
int16 v2;
uint32 v3;
};
struct BinStr00_Fc : BinStr00 {
void Read(BinReaderRef rd) {
rd.Read(v0);
rd.Read(v3);
}
void Write(BinWritterRef wr) const {
wr.Write(v0);
... | 16.782609 | 43 | 0.629246 | PredatorCZ |
6dd835d8b2e4ceaab87e1ac475894dc2c3cead8a | 12,243 | cpp | C++ | Blech/test.cpp | Natedog2012/dll | 5fb9414a5ebddf9c37809517eaf378a26b422d61 | [
"MIT"
] | 3 | 2021-06-25T00:03:25.000Z | 2021-11-30T19:45:27.000Z | Blech/test.cpp | Natedog2012/dll | 5fb9414a5ebddf9c37809517eaf378a26b422d61 | [
"MIT"
] | null | null | null | Blech/test.cpp | Natedog2012/dll | 5fb9414a5ebddf9c37809517eaf378a26b422d61 | [
"MIT"
] | 3 | 2021-09-21T23:33:31.000Z | 2022-02-18T08:13:20.000Z | #include "Blech.h"
#define CheckOne(ID) \
if (nevent != 1) { \
printf("bad event count %d != 1\n", nevent); \
exit(1); \
} \
if (eventarray[0].id != ID) { \
printf("bad event %d != " #ID "\n", eventarray[0].id); \
exit(1); \
}
struct {
int id, nvalues;
char name... | 38.140187 | 92 | 0.561545 | Natedog2012 |
6dd9babda4a11fbe0588758e8ccd994a30672af8 | 3,770 | cpp | C++ | src/appleseed/foundation/platform/defaulttimers.cpp | istemi-bahceci/appleseed | 2db1041acb04bad4742cf7826ce019f0e623fe35 | [
"MIT"
] | 1 | 2021-04-02T10:51:57.000Z | 2021-04-02T10:51:57.000Z | src/appleseed/foundation/platform/defaulttimers.cpp | istemi-bahceci/appleseed | 2db1041acb04bad4742cf7826ce019f0e623fe35 | [
"MIT"
] | null | null | null | src/appleseed/foundation/platform/defaulttimers.cpp | istemi-bahceci/appleseed | 2db1041acb04bad4742cf7826ce019f0e623fe35 | [
"MIT"
] | null | null | null |
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited
// Copyright (c) 2014-2017 Francois Beaune, The appleseedhq Organization
//
... | 21.666667 | 86 | 0.711936 | istemi-bahceci |
6ddad5089bd8dc2a531736c0f047965a4d65b5ba | 4,080 | hpp | C++ | include/site.hpp | SavAct/SavWeb | 0c57ddb94df2a27d5a197cc23c481742cd85962b | [
"MIT"
] | null | null | null | include/site.hpp | SavAct/SavWeb | 0c57ddb94df2a27d5a197cc23c481742cd85962b | [
"MIT"
] | null | null | null | include/site.hpp | SavAct/SavWeb | 0c57ddb94df2a27d5a197cc23c481742cd85962b | [
"MIT"
] | null | null | null | #include "tables.hpp"
using namespace std;
using namespace eosio;
CONTRACT site : public contract {
public:
using contract::contract;
#define errorTableKey "There is no entry with this key."
#define errorOldNotMatch "Old reffered transaction doesn't match the last reffered transaction."
#define er... | 44.835165 | 194 | 0.698775 | SavAct |
6ddc8b5b8ab78d0b2cf778fd67ad25399042660f | 1,716 | cpp | C++ | src/medCore/medJobManager.cpp | lcatanes/medInria-public | 5d79ce0085c11f2fb9277a06c8cf56b4258a9d9f | [
"BSD-4-Clause"
] | 1 | 2020-11-16T13:55:45.000Z | 2020-11-16T13:55:45.000Z | src/medCore/medJobManager.cpp | lcatanes/medInria-public | 5d79ce0085c11f2fb9277a06c8cf56b4258a9d9f | [
"BSD-4-Clause"
] | null | null | null | src/medCore/medJobManager.cpp | lcatanes/medInria-public | 5d79ce0085c11f2fb9277a06c8cf56b4258a9d9f | [
"BSD-4-Clause"
] | null | null | null | /*=========================================================================
medInria
Copyright (c) INRIA 2013 - 2014. All rights reserved.
See LICENSE.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE... | 22.285714 | 84 | 0.617133 | lcatanes |
6ddd9bd83114b46592b1024577193156d431cea1 | 11,413 | cpp | C++ | Code/toolboxes/BSR/ucm/ucm_mean_pb.cpp | corganhejijun/crisp-boundaries-win32 | 8cfea4d1e337f4b30e1e1ad873683139ee7821fb | [
"BSD-3-Clause"
] | null | null | null | Code/toolboxes/BSR/ucm/ucm_mean_pb.cpp | corganhejijun/crisp-boundaries-win32 | 8cfea4d1e337f4b30e1e1ad873683139ee7821fb | [
"BSD-3-Clause"
] | null | null | null | Code/toolboxes/BSR/ucm/ucm_mean_pb.cpp | corganhejijun/crisp-boundaries-win32 | 8cfea4d1e337f4b30e1e1ad873683139ee7821fb | [
"BSD-3-Clause"
] | null | null | null | /*
Source code for computing ultrametric contour maps based on average boundary strength, as described in :
P. Arbelaez, M. Maire, C. Fowlkes, and J. Malik. From contours to regions: An empirical evaluation. In CVPR, 2009.
Pablo Arbelaez <arbelaez@eecs.berkeley.edu>
March 2009.
*/
#include <stdio.h>
#include <stdlib... | 28.748111 | 210 | 0.537194 | corganhejijun |
6ddf5189196626421b8e6d6b3cddaae2fd0c7626 | 3,822 | cpp | C++ | src/_OOP/Shader.cpp | haxpor/lgl | d87628f2a4653c0ebc80bca24bbd244993c63d77 | [
"MIT"
] | 3 | 2020-10-29T06:22:30.000Z | 2021-05-01T14:27:31.000Z | src/_OOP/Shader.cpp | haxpor/lgl | d87628f2a4653c0ebc80bca24bbd244993c63d77 | [
"MIT"
] | null | null | null | src/_OOP/Shader.cpp | haxpor/lgl | d87628f2a4653c0ebc80bca24bbd244993c63d77 | [
"MIT"
] | null | null | null | /*
====================
Uniforms
====================
*/
#include "lgl/Base.h"
#include <cmath>
float vertices[] = {
0.5f, 0.5f, 0.0f, // top right
0.5f, -0.5f, 0.0f, // bottom right
-0.5f, -0.5f, 0.0f, // bottom left
-0.5f, 0.5f, 0.0f // top left
};
unsigned int indices[] = {... | 29.175573 | 114 | 0.615646 | haxpor |
6de17176a7b9b2b179496ef2503903bc576cc5d9 | 1,214 | cpp | C++ | src/col.cpp | kushaldalsania/haystack-cpp | 95997ae2bca9ea096dc7e61c000291f3ac08d9d7 | [
"AFL-3.0"
] | null | null | null | src/col.cpp | kushaldalsania/haystack-cpp | 95997ae2bca9ea096dc7e61c000291f3ac08d9d7 | [
"AFL-3.0"
] | null | null | null | src/col.cpp | kushaldalsania/haystack-cpp | 95997ae2bca9ea096dc7e61c000291f3ac08d9d7 | [
"AFL-3.0"
] | null | null | null | //
// Copyright (c) 2015, J2 Innovations
// Copyright (c) 2012 Brian Frank
// Licensed under the Academic Free License version 3.0
// History:
// 28 Aug 2014 Radu Racariu<radur@2inn.com> Ported to C++
// 06 Jun 2011 Brian Frank Creation
//
#include "col.hpp"
#include "str.hpp"
#include "dict.hpp"
//////////////... | 25.829787 | 74 | 0.522241 | kushaldalsania |
6de17c3b0548814a4cfa34ad7a64798f4126af32 | 2,511 | hpp | C++ | src/tablestore/core/plainbuffer/consts.hpp | TimeExceed/aliyun-tablestore-cpp-sdk | f8d2fdf500badf70073dff4e21a5d2d7aa7d3853 | [
"BSD-3-Clause"
] | 2 | 2020-02-24T06:51:55.000Z | 2020-04-24T14:40:10.000Z | src/tablestore/core/plainbuffer/consts.hpp | TimeExceed/aliyun-tablestore-cpp-sdk | f8d2fdf500badf70073dff4e21a5d2d7aa7d3853 | [
"BSD-3-Clause"
] | null | null | null | src/tablestore/core/plainbuffer/consts.hpp | TimeExceed/aliyun-tablestore-cpp-sdk | f8d2fdf500badf70073dff4e21a5d2d7aa7d3853 | [
"BSD-3-Clause"
] | 1 | 2020-02-24T06:51:57.000Z | 2020-02-24T06:51:57.000Z | #pragma once
/*
BSD 3-Clause License
Copyright (c) 2017, Alibaba Cloud
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
li... | 31 | 78 | 0.766627 | TimeExceed |
6de21abe33dd6600cebe17f5747a1ceb68bd0e4b | 9,581 | cpp | C++ | src/main.cpp | cultur98/ESP32_Vorrat | 0dba638677c32ccb46069403a71cefa2460974ad | [
"MIT"
] | null | null | null | src/main.cpp | cultur98/ESP32_Vorrat | 0dba638677c32ccb46069403a71cefa2460974ad | [
"MIT"
] | null | null | null | src/main.cpp | cultur98/ESP32_Vorrat | 0dba638677c32ccb46069403a71cefa2460974ad | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include <ArduinoJson.h>
#include <Wire.h>
#include <Ticker.h>
#include <Button2.h>
#include "Config.h"
#include "vorratConfig.h"
#include "myTimer.h"
#include "wifiman.h"
#include "Logger.h"
#include "hch_stuff.h"
#include "ePaperBWR.h"
#include "lilygo.h"
#include "ota.h"
#include "deep_sleep_he... | 26.249315 | 108 | 0.650663 | cultur98 |
6df1223aac31e1ad651fd2ceea8ed9c7c6707acd | 7,058 | cpp | C++ | test/src/distance_test.cpp | ericwa/vecmath | b1db3cedac39d380b4d65efc894c933c9f413030 | [
"MIT"
] | 1 | 2021-07-13T02:56:28.000Z | 2021-07-13T02:56:28.000Z | test/src/distance_test.cpp | ericwa/vecmath | b1db3cedac39d380b4d65efc894c933c9f413030 | [
"MIT"
] | null | null | null | test/src/distance_test.cpp | ericwa/vecmath | b1db3cedac39d380b4d65efc894c933c9f413030 | [
"MIT"
] | null | null | null | /*
Copyright 2010-2019 Kristian Duske
Copyright 2015-2019 Eric Wasylishen
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, ... | 48.675862 | 130 | 0.685463 | ericwa |
6df41b02c4b178a772645eac31c372d79c57d7a1 | 1,421 | cpp | C++ | Google Code Jam/2018/Round 1C/A Whole New Word.cpp | pratyaydeep/Competitive-Programming | c6ee9a492915e39b7b4c54d167a3c027a64b48b1 | [
"MIT"
] | null | null | null | Google Code Jam/2018/Round 1C/A Whole New Word.cpp | pratyaydeep/Competitive-Programming | c6ee9a492915e39b7b4c54d167a3c027a64b48b1 | [
"MIT"
] | null | null | null | Google Code Jam/2018/Round 1C/A Whole New Word.cpp | pratyaydeep/Competitive-Programming | c6ee9a492915e39b7b4c54d167a3c027a64b48b1 | [
"MIT"
] | 1 | 2021-07-19T08:39:38.000Z | 2021-07-19T08:39:38.000Z | // Problem 1: A Whole New Word
// Idea: Brute Force (just generating all strings of given characters, return the first generated string that is not found in the dictionary)
#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 1e5 + 5;
const int MAX_L = 20; // ~ Log N
const long long MOD = 1e9 + 7;
const l... | 22.555556 | 141 | 0.532723 | pratyaydeep |
6df8b3d9ad306a18bc5943553fe6eed3a1c29df2 | 5,021 | cpp | C++ | test/parse_tree.cpp | cmargiotta/ratl | 84d76f23bbc52d3e581cfbb5e5a3dd04993e74c2 | [
"MIT"
] | null | null | null | test/parse_tree.cpp | cmargiotta/ratl | 84d76f23bbc52d3e581cfbb5e5a3dd04993e74c2 | [
"MIT"
] | null | null | null | test/parse_tree.cpp | cmargiotta/ratl | 84d76f23bbc52d3e581cfbb5e5a3dd04993e74c2 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_ENABLE_BENCHMARKING
#include <catch2/catch.hpp>
#include <fstream>
#include <iostream>
#include <math/fraction.hpp>
#include <parser/dice.hpp>
#include <parser/math.hpp>
#include <parser/math_function.hpp>
#include <parser/regex.hpp>
SCENARIO("Regex parse tree")
{
GIVEN("A regex parser and ... | 28.856322 | 93 | 0.49293 | cmargiotta |
6df8e55ef6356d1bd6e87c4f7b67cd5cec20118e | 1,788 | cpp | C++ | test/snippet/alignment/matrix/debug_matrix_trace.cpp | marehr/nomchop | a88bfb6f5d4a291a71b6b3192eeac81fdc450d43 | [
"CC-BY-4.0",
"CC0-1.0"
] | null | null | null | test/snippet/alignment/matrix/debug_matrix_trace.cpp | marehr/nomchop | a88bfb6f5d4a291a71b6b3192eeac81fdc450d43 | [
"CC-BY-4.0",
"CC0-1.0"
] | null | null | null | test/snippet/alignment/matrix/debug_matrix_trace.cpp | marehr/nomchop | a88bfb6f5d4a291a71b6b3192eeac81fdc450d43 | [
"CC-BY-4.0",
"CC0-1.0"
] | null | null | null | #include <iostream>
#include <seqan3/alphabet/nucleotide/dna4.hpp>
#include <seqan3/alignment/matrix/debug_matrix.hpp>
#include <seqan3/core/debug_stream.hpp>
#include <seqan3/range/views/to_char.hpp>
int main()
{
// using namespace seqan3;
using seqan3::detail::debug_matrix;
using seqan3::operator""_dna4... | 35.76 | 110 | 0.615213 | marehr |
a301d0bf6bf24f228b6516bb9883443158fc5dc7 | 4,897 | hpp | C++ | include/RED4ext/Map.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | 1 | 2021-02-01T23:07:50.000Z | 2021-02-01T23:07:50.000Z | include/RED4ext/Map.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | include/RED4ext/Map.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm>
#include <cstdint>
#include <functional>
#include <RED4ext/Common.hpp>
#include <RED4ext/DynArray.hpp>
#include <RED4ext/REDfunc.hpp>
namespace RED4ext
{
struct IMemoryAllocator;
template<typename K, typename T, class Compare = std::less<K>>
struct Map
{
enum class Flags : int3... | 25.638743 | 105 | 0.550541 | Cyberpunk-Extended-Development-Team |
a3023474f92dcc869cfa07d44bca6f0ade4ebe44 | 788 | hpp | C++ | inc/Game.hpp | fklemme/DungeonsAndDoenekes | ce57b3f445ba3cf3e6f82922abd08dd58894c33c | [
"MIT"
] | null | null | null | inc/Game.hpp | fklemme/DungeonsAndDoenekes | ce57b3f445ba3cf3e6f82922abd08dd58894c33c | [
"MIT"
] | null | null | null | inc/Game.hpp | fklemme/DungeonsAndDoenekes | ce57b3f445ba3cf3e6f82922abd08dd58894c33c | [
"MIT"
] | 1 | 2020-06-24T16:08:05.000Z | 2020-06-24T16:08:05.000Z | #pragma once
#include <SFML/Graphics/Font.hpp>
#include <SFML/Graphics/RenderWindow.hpp>
#include <memory>
#include <vector>
#include "Layers/Layer.hpp"
#include "Player.hpp"
class Game {
public:
Game();
~Game();
void run();
void push_layer(std::unique_ptr<Layer> layer);
template <typename La... | 21.888889 | 77 | 0.666244 | fklemme |
a30496fde2ace9a9a4e85b8e631f083e94e6ed2a | 1,929 | inl | C++ | source/Locks_Win32.inl | CodeChex/ConcurrentLock | 42d8e140c4352c425cf59a7e73493edc7d74d9d4 | [
"MIT"
] | null | null | null | source/Locks_Win32.inl | CodeChex/ConcurrentLock | 42d8e140c4352c425cf59a7e73493edc7d74d9d4 | [
"MIT"
] | null | null | null | source/Locks_Win32.inl | CodeChex/ConcurrentLock | 42d8e140c4352c425cf59a7e73493edc7d74d9d4 | [
"MIT"
] | null | null | null | #pragma once
#ifdef IMPL_USING_MFC
typedef class CSyncObject cclSyncObject;
typedef class CSingleLock cclSingleLock;
typedef class CMutex cclMutex;
typedef class CCriticalSection cclCriticalSection;
typedef class CEvent cclEvent;
#else
class _CCL_API cclMutex : public cclSyncObject
{
public:
c... | 17.536364 | 77 | 0.66563 | CodeChex |
a3053f70ec5b4b24801fc1b36e908bf2462bde63 | 811 | cpp | C++ | src/network/scope_runner.cpp | Andrei-Masilevich/barbacoa-server-lib | 2eda2fab20c6c1d5a8a78b71952ca61330d04878 | [
"MIT"
] | null | null | null | src/network/scope_runner.cpp | Andrei-Masilevich/barbacoa-server-lib | 2eda2fab20c6c1d5a8a78b71952ca61330d04878 | [
"MIT"
] | null | null | null | src/network/scope_runner.cpp | Andrei-Masilevich/barbacoa-server-lib | 2eda2fab20c6c1d5a8a78b71952ca61330d04878 | [
"MIT"
] | null | null | null | #include <server_lib/network/scope_runner.h>
#include <server_lib/asserts.h>
namespace server_lib {
namespace network {
std::unique_ptr<scope_runner::shared_lock> scope_runner::continue_lock()
{
long expected = count;
while (expected >= 0 && !count.compare_exchange_weak(expected, expected + 1... | 23.852941 | 85 | 0.583231 | Andrei-Masilevich |
a306029088ea13bc75f5ea6a091d0a886c784f89 | 8,586 | inl | C++ | include/util/Quaternion.inl | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 227 | 2018-09-17T16:03:35.000Z | 2022-03-19T02:02:45.000Z | include/util/Quaternion.inl | DragonJoker/RendererLib | 0f8ad8edec1b0929ebd10247d3dd0a9ee8f8c91a | [
"MIT"
] | 39 | 2018-02-06T22:22:24.000Z | 2018-08-29T07:11:06.000Z | include/util/Quaternion.inl | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 8 | 2019-05-04T10:33:32.000Z | 2021-04-05T13:19:27.000Z | /*
This file belongs to Ashes.
See LICENSE file in root folder
*/
#include <math.h>
#include "util/Vectorisation.hpp"
namespace utils
{
template< typename T >
QuaternionT< T >::QuaternionT( NoInit const & )noexcept
{
}
template< typename T >
constexpr QuaternionT< T >::QuaternionT()noexcept
: x{}
, y{}
,... | 23.718232 | 95 | 0.555439 | DragonJoker |
a30829060bc8c519ef8adb29efe198508ef8b566 | 993 | hh | C++ | include/ATLHECTBPrimaryGeneratorAction.hh | lopezzot/ATLHECTB | 1d45179e70aaa6b7dd6eb08c3d13063f440cfc9f | [
"MIT"
] | 5 | 2021-05-20T15:54:33.000Z | 2022-03-14T14:08:42.000Z | include/ATLHECTBPrimaryGeneratorAction.hh | lopezzot/ATLHECTB | 1d45179e70aaa6b7dd6eb08c3d13063f440cfc9f | [
"MIT"
] | 8 | 2021-09-14T15:06:04.000Z | 2021-10-17T15:35:03.000Z | include/ATLHECTBPrimaryGeneratorAction.hh | lopezzot/ATLHECTB | 1d45179e70aaa6b7dd6eb08c3d13063f440cfc9f | [
"MIT"
] | null | null | null | //**************************************************
// \file ATLHECTBPrimaryGeneratorAction.hh
// \brief: Definition of ATLHECTBPrimaryGeneratorAction class
// \author: Lorenzo Pezzotti (CERN EP-SFT-sim) @lopezzot
// \start date: 11 May 2021
//**************************************************
//Prevent including hea... | 25.461538 | 77 | 0.633434 | lopezzot |
a3134f0ddf77dd8ab6ea8aab99f7033f4c6e4618 | 1,209 | cpp | C++ | source/mango/filesystem/path.cpp | aniketanvit/mango | 659a6836354ae881c6860f5b961d65ac1f1e85c6 | [
"Zlib"
] | 1 | 2021-08-06T09:27:45.000Z | 2021-08-06T09:27:45.000Z | source/mango/filesystem/path.cpp | galek/mango | 975b438ac9a22ed3a849da6187e1fdf3d547c926 | [
"Zlib"
] | null | null | null | source/mango/filesystem/path.cpp | galek/mango | 975b438ac9a22ed3a849da6187e1fdf3d547c926 | [
"Zlib"
] | 1 | 2021-07-10T11:41:01.000Z | 2021-07-10T11:41:01.000Z | /*
MANGO Multimedia Development Platform
Copyright (C) 2012-2016 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#include <algorithm>
#include <mango/filesystem/path.hpp>
namespace mango
{
// -----------------------------------------------------------------
// Path
// -------------------------... | 23.705882 | 90 | 0.548387 | aniketanvit |
a314039585b82df9ad2ef923cf0f75ed7b4d8ec3 | 329 | hh | C++ | Resources/Sources/Includes/Timer/Timer.hh | hunyadix/dcolscan_tools | df5fb7a01d43dec358f24808b9bbf1c7baf75c7d | [
"MIT"
] | null | null | null | Resources/Sources/Includes/Timer/Timer.hh | hunyadix/dcolscan_tools | df5fb7a01d43dec358f24808b9bbf1c7baf75c7d | [
"MIT"
] | null | null | null | Resources/Sources/Includes/Timer/Timer.hh | hunyadix/dcolscan_tools | df5fb7a01d43dec358f24808b9bbf1c7baf75c7d | [
"MIT"
] | null | null | null | #ifndef TIMER_H
#define TIMER_H
#include <string>
#include <iostream>
class Timer
{
protected:
time_t start_t;
time_t current_t;
double seconds_elapsed;
public:
Timer();
~Timer();
virtual void restart(std::string text_p);
virtual void print_seconds(std::string pretext_p, std::string post_text_p);
};... | 15.666667 | 77 | 0.723404 | hunyadix |
a314f906e51cbfbcb7d7bb92ba8c975db7a82c02 | 7,687 | cpp | C++ | src/sim/displays/testmfd.cpp | Terebinth/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 117 | 2015-01-13T14:48:49.000Z | 2022-03-16T01:38:19.000Z | src/sim/displays/testmfd.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 4 | 2015-05-01T13:09:53.000Z | 2017-07-22T09:11:06.000Z | src/sim/displays/testmfd.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 78 | 2015-01-13T09:27:47.000Z | 2022-03-18T14:39:09.000Z | #include "stdhdr.h"
#include "camplib.h"
#include "mfd.h"
#include "Graphics/Include/render2d.h"
#include "dispcfg.h"
#include "simdrive.h"
#include "camp2sim.h"
#include "hud.h"
#include "aircrft.h"
#include "fack.h"
#include "otwdrive.h" //MI
#include "cpmanager.h" //MI
#include "icp.h" //MI
#include "aircrft.h" //MI... | 27.651079 | 99 | 0.540263 | Terebinth |
a315cdc1064f02ffa24047319bab9fe841bf95bb | 404 | cpp | C++ | General/Learning/C++/2/main.cpp | 123456789x/usaco-guide-solutions | fa3ea5c7c8160aec29f48187e39b0301a4d633fd | [
"MIT"
] | null | null | null | General/Learning/C++/2/main.cpp | 123456789x/usaco-guide-solutions | fa3ea5c7c8160aec29f48187e39b0301a4d633fd | [
"MIT"
] | null | null | null | General/Learning/C++/2/main.cpp | 123456789x/usaco-guide-solutions | fa3ea5c7c8160aec29f48187e39b0301a4d633fd | [
"MIT"
] | null | null | null | #include "ops.h"
#include <iostream>
using std::cin;
using std::cout;
int main()
{
int a;
cout << "Enter first integer: ";
cin >> a;
int b;
cout << "Enter second integer: ";
cin >> b;
cout << "Sum: " << add(a, b) << "\n";
cout << "Difference: " << subtract(a, b) << "\n";
cout << "Product: " << mul... | 16.833333 | 51 | 0.502475 | 123456789x |
a31c7917c40f652b2f9ef88a3bd093593060846b | 9,091 | cpp | C++ | emulation/hel/lib/athena/HAL.cpp | NWalker1208/synthesis | c7bb2d49a7a3fc4d4db9f857aabcc4a4c3b74c34 | [
"Apache-2.0"
] | null | null | null | emulation/hel/lib/athena/HAL.cpp | NWalker1208/synthesis | c7bb2d49a7a3fc4d4db9f857aabcc4a4c3b74c34 | [
"Apache-2.0"
] | null | null | null | emulation/hel/lib/athena/HAL.cpp | NWalker1208/synthesis | c7bb2d49a7a3fc4d4db9f857aabcc4a4c3b74c34 | [
"Apache-2.0"
] | null | null | null | /*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2016-2017. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 31.456747 | 124 | 0.738093 | NWalker1208 |
a31e176d85994ea627a676eb124c63c4048eb030 | 6,103 | hpp | C++ | include/System/Net/SimpleAsyncResult_--c__DisplayClass11_0.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/System/Net/SimpleAsyncResult_--c__DisplayClass11_0.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/System/Net/SimpleAsyncResult_--c__DisplayClass11_0.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Net.SimpleAsyncResult... | 52.162393 | 247 | 0.720957 | RedBrumbler |
a3209886efc315f89493c2ee1a487458965182fa | 2,196 | hpp | C++ | geo/po.hpp | ExploreWilder/libgeo | 118ba7f527cbfb5fc6b600495208c1c7d4178414 | [
"BSD-2-Clause"
] | 1 | 2019-11-17T11:47:27.000Z | 2019-11-17T11:47:27.000Z | externals/browser/externals/browser/externals/libgeo/geo/po.hpp | HanochZhu/vts-browser-unity-plugin | 32a22d41e21b95fb015326f95e401d87756d0374 | [
"BSD-2-Clause"
] | 1 | 2021-01-07T03:37:34.000Z | 2021-01-08T03:33:51.000Z | externals/browser/externals/browser/externals/libgeo/geo/po.hpp | HanochZhu/vts-browser-unity-plugin | 32a22d41e21b95fb015326f95e401d87756d0374 | [
"BSD-2-Clause"
] | 2 | 2019-09-25T05:22:02.000Z | 2021-02-14T14:10:03.000Z | /**
* Copyright (c) 2017 Melown Technologies SE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the f... | 35.419355 | 79 | 0.729964 | ExploreWilder |
a320b15e86086b1e0bb832f591301d234fe314d6 | 523 | cpp | C++ | source/ItemRocket.cpp | fgrehm/pucrs-doom2d | edea7d5d762f427a5a8c944d36819009eb514429 | [
"MIT"
] | 1 | 2016-08-15T16:11:40.000Z | 2016-08-15T16:11:40.000Z | source/ItemRocket.cpp | fgrehm/pucrs-doom2d | edea7d5d762f427a5a8c944d36819009eb514429 | [
"MIT"
] | null | null | null | source/ItemRocket.cpp | fgrehm/pucrs-doom2d | edea7d5d762f427a5a8c944d36819009eb514429 | [
"MIT"
] | null | null | null |
#include "ItemRocket.h"
ItemRocket::ItemRocket(int _x, int _y):
x(_x),
y(_y)
{
sprite = new cgf::Sprite();
sprite->load("data/img/rocket.png");
sprite->scale(1.2, 1.2);
sf::Vector2f vpos = sf::Vector2f();
vpos.x = x;
vpos.y = y;
sprite->setPosition(vpos);
}
ItemRocket::~ItemRocket(){
... | 16.34375 | 40 | 0.602294 | fgrehm |
a321d9f446d98819bfdb96a0c0f06b204ad73d0b | 767 | cpp | C++ | HackerEarth/Number Theory/Basics/expmodulo.cpp | hendry19901990/AlgorithmsUnlocked | e85b6dea4b3aea9b8015db24384b1527d828395d | [
"Xnet",
"X11"
] | 1 | 2022-03-25T10:20:25.000Z | 2022-03-25T10:20:25.000Z | HackerEarth/Number Theory/Basics/expmodulo.cpp | hendry19901990/AlgorithmsUnlocked | e85b6dea4b3aea9b8015db24384b1527d828395d | [
"Xnet",
"X11"
] | null | null | null | HackerEarth/Number Theory/Basics/expmodulo.cpp | hendry19901990/AlgorithmsUnlocked | e85b6dea4b3aea9b8015db24384b1527d828395d | [
"Xnet",
"X11"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <limits>
#include <string.h>
using namespace std;
typedef long long int ll ;
ll expmodulo(ll a, ll b, ll mod)
{
if(a == 0 || b == 0 || a < 0 || b < 0) return 0;
else if(b == 0) return 1;
else if(b == 1) return a % mod;
else if(b&1) retu... | 25.566667 | 80 | 0.529335 | hendry19901990 |
a324b0a39da5ae987baf61cc4429f2866caecd8e | 9,059 | cpp | C++ | ouzel/graphics/opengl/ShaderOGL.cpp | keima97/ouzel | e6673e678b4739235371a15ae3863942b692c5fb | [
"BSD-2-Clause"
] | null | null | null | ouzel/graphics/opengl/ShaderOGL.cpp | keima97/ouzel | e6673e678b4739235371a15ae3863942b692c5fb | [
"BSD-2-Clause"
] | null | null | null | ouzel/graphics/opengl/ShaderOGL.cpp | keima97/ouzel | e6673e678b4739235371a15ae3863942b692c5fb | [
"BSD-2-Clause"
] | null | null | null | // Copyright (C) 2016 Elviss Strazdins
// This file is part of the Ouzel engine.
#include "ShaderOGL.h"
#include "core/Engine.h"
#include "RendererOGL.h"
#include "files/FileSystem.h"
#include "utils/Log.h"
namespace ouzel
{
namespace graphics
{
ShaderOGL::ShaderOGL()
{
}
Shad... | 34.842308 | 123 | 0.48725 | keima97 |
a325a79cfcd6b9e8bf4d890f77532e9828eb62cd | 1,446 | cpp | C++ | src/GL.cpp | neo-bolea/procedurally | 449d583dc09f3779617490b26d4af469b31ec414 | [
"MIT"
] | 4 | 2019-11-19T17:05:44.000Z | 2020-03-30T20:09:53.000Z | src/GL.cpp | neo-bolea/procedurally | 449d583dc09f3779617490b26d4af469b31ec414 | [
"MIT"
] | 5 | 2019-12-07T18:07:30.000Z | 2020-03-23T10:47:41.000Z | src/GL.cpp | neo-bolea/procedurally | 449d583dc09f3779617490b26d4af469b31ec414 | [
"MIT"
] | null | null | null | #include "Graphics/GL.h"
#include "Common/Debug.h"
#include "Graphics/MathGL.h"
#include "Graphics/Shader.h"
#include <GL/glew.h>
#define NOMINMAX
#include <fstream>
#include <Shlwapi.h>
#pragma comment(lib,"shlwapi.lib")
namespace GL
{
void GLAPIENTRY
ErrorCallback( GLenum source,
GLenum type,
GLuint id,... | 22.59375 | 68 | 0.670816 | neo-bolea |
a32846cdfeefc5f63c158d789962d8646e0f2b3f | 5,461 | cpp | C++ | 2course/Programming/examples/2018_2019/lecture_9_10_1903_01to15_1st.cpp | posgen/OmsuMaterials | 6132fe300154db97327667728c4cf3b0e19420e6 | [
"Unlicense"
] | 9 | 2017-04-03T08:52:58.000Z | 2020-06-05T18:25:02.000Z | 2course/Programming/examples/2018_2019/lecture_9_10_1903_01to15_1st.cpp | posgen/OmsuMaterials | 6132fe300154db97327667728c4cf3b0e19420e6 | [
"Unlicense"
] | 6 | 2018-02-07T18:26:27.000Z | 2021-09-02T04:46:06.000Z | 2course/Programming/examples/2018_2019/lecture_9_10_1903_01to15_1st.cpp | posgen/OmsuMaterials | 6132fe300154db97327667728c4cf3b0e19420e6 | [
"Unlicense"
] | 10 | 2018-11-12T18:18:47.000Z | 2020-06-06T06:17:01.000Z | #include <iostream>
#include <iomanip>
#include <cmath>
#include <string>
#include <algorithm>
#include <random>
#include <ctime>
using namespace std;
double rand_a_b(double a, double b)
{
static mt19937_64 gnr{ time(nullptr) };
static const size_t max_gnr = gnr.max();
return a + (b - a) * ( double(gnr()... | 23.640693 | 101 | 0.609412 | posgen |
cd165cb5ba7a1c9856c9d5e9fe5a555d9f5cf20b | 14,800 | cpp | C++ | Client/userlist.cpp | alice-create/O-Chat | fea0ebe0f19cfeaca068468b87684e2421ad5700 | [
"Apache-2.0"
] | null | null | null | Client/userlist.cpp | alice-create/O-Chat | fea0ebe0f19cfeaca068468b87684e2421ad5700 | [
"Apache-2.0"
] | null | null | null | Client/userlist.cpp | alice-create/O-Chat | fea0ebe0f19cfeaca068468b87684e2421ad5700 | [
"Apache-2.0"
] | null | null | null | #include "userlist.h"
#include "ui_userlist.h"
#include "info.h"
#include "addfriend.h"
userlist::userlist(QWidget *parent) :
QWidget(parent),
ui(new Ui::userlist)
{
ui->setupUi(this);
// sock = new QTcpSocket(this);
// lists = ui -> listWidget;
// person = new user();
// QListWidgetItem *itemN... | 33.408578 | 160 | 0.45223 | alice-create |
cd1781c14ed9473225ed64a08227af44da19bd24 | 449 | hpp | C++ | lib/libCFG/include/CapstoneHelper.hpp | cyber-itl/citl-static-analysis | 32ef8e519dac1c6a49ff41d902a62df8f5a8e948 | [
"MIT"
] | 14 | 2021-05-03T16:03:22.000Z | 2022-02-14T23:42:39.000Z | lib/libCFG/include/CapstoneHelper.hpp | cyber-itl/citl-static-analysis | 32ef8e519dac1c6a49ff41d902a62df8f5a8e948 | [
"MIT"
] | 1 | 2021-09-27T12:01:33.000Z | 2021-09-27T12:01:33.000Z | lib/libCFG/include/CapstoneHelper.hpp | cyber-itl/citl-static-analysis | 32ef8e519dac1c6a49ff41d902a62df8f5a8e948 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <tuple>
#include <vector>
#include "capstone/capstone.h"
std::tuple<cs_arch, cs_mode> map_triple_cs(uint32_t triple);
std::vector<uint64_t> get_imm_vals(const cs_insn &insn, cs_arch arch, uint32_t base_reg, uint64_t reg_val);
bool is_nop(cs_arch arch, cs_insn *insn);
boo... | 21.380952 | 107 | 0.781737 | cyber-itl |
cd1ba70d97f48201fb4cad0a3bcfb145b041d3cb | 647 | cpp | C++ | SRCS/Sound.cpp | Dreinale/Bomberman_project | ed98d44f54906b1e3f7941b58d8e1493711f355b | [
"MIT"
] | 1 | 2021-07-12T21:59:28.000Z | 2021-07-12T21:59:28.000Z | SRCS/Sound.cpp | Dreinale/Bomberman_project | ed98d44f54906b1e3f7941b58d8e1493711f355b | [
"MIT"
] | null | null | null | SRCS/Sound.cpp | Dreinale/Bomberman_project | ed98d44f54906b1e3f7941b58d8e1493711f355b | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2021
** sound
** File description:
** soudn
*/
#include "Sound.hpp"
Zic::Zic(float *volume, int play_time, std::string path)
{
_play_time = play_time;
music = LoadMusicStream(path.c_str());
_volume = volume;
}
void Zic::play_music()
{
PlayMusicStream(music);
SetMusicVolume(... | 15.780488 | 77 | 0.669243 | Dreinale |
cd1d14a8b2a9f623c969a7ac83bc5af4c5a425d4 | 732 | cpp | C++ | src/battery.cpp | Fanteria/bar-indicators | cdc19c80a0d6917be9ed2cdabe09e8a5c8e7b624 | [
"MIT"
] | null | null | null | src/battery.cpp | Fanteria/bar-indicators | cdc19c80a0d6917be9ed2cdabe09e8a5c8e7b624 | [
"MIT"
] | null | null | null | src/battery.cpp | Fanteria/bar-indicators | cdc19c80a0d6917be9ed2cdabe09e8a5c8e7b624 | [
"MIT"
] | null | null | null | #include<iostream>
#include<fstream>
#include<string>
std::string batteryStatus[] = {"", "", "", "", ""};
int main (int argc, char ** argv) {
if (argc != 3)
exit(1);
// Load percentage.
std::string line;
std::ifstream f(*(argv + 1));
std::getline(f, line);
f.close();
std::c... | 22.181818 | 61 | 0.538251 | Fanteria |
cd1d1bb00f17e4b5cccd14584692d6c8100f57f1 | 13,350 | cpp | C++ | lgc/patch/PatchInitializeWorkgroupMemory.cpp | flygod1159/llpc | 58664d422f062ce29680f7ca40407cdf70944209 | [
"MIT"
] | 1 | 2022-01-13T16:44:16.000Z | 2022-01-13T16:44:16.000Z | lgc/patch/PatchInitializeWorkgroupMemory.cpp | flygod1159/llpc | 58664d422f062ce29680f7ca40407cdf70944209 | [
"MIT"
] | null | null | null | lgc/patch/PatchInitializeWorkgroupMemory.cpp | flygod1159/llpc | 58664d422f062ce29680f7ca40407cdf70944209 | [
"MIT"
] | null | null | null | /*
***********************************************************************************************************************
*
* Copyright (c) 2021-2021 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... | 48.021583 | 120 | 0.65161 | flygod1159 |
cd1dd4cfa212c487e4f213d8ac9c0eb63a3ef0e9 | 1,593 | cpp | C++ | 01_sensor/06_grey_MPU9250/src/main.cpp | satoruosawa/samples-for-m5stack | ccc003bda296f769c8e20bfed757bed0d6419ce7 | [
"MIT"
] | null | null | null | 01_sensor/06_grey_MPU9250/src/main.cpp | satoruosawa/samples-for-m5stack | ccc003bda296f769c8e20bfed757bed0d6419ce7 | [
"MIT"
] | null | null | null | 01_sensor/06_grey_MPU9250/src/main.cpp | satoruosawa/samples-for-m5stack | ccc003bda296f769c8e20bfed757bed0d6419ce7 | [
"MIT"
] | null | null | null | // define must ahead #include <M5Stack.h>
// #define M5STACK_MPU6886
#define M5STACK_MPU9250
// #define M5STACK_MPU6050
// #define M5STACK_200Q
#include <M5Stack.h>
float accX = 0.0F;
float accY = 0.0F;
float accZ = 0.0F;
float gyroX = 0.0F;
float gyroY = 0.0F;
float gyroZ = 0.0F;
float pitch = 0.0F;
float roll = 0... | 24.507692 | 66 | 0.64909 | satoruosawa |
cd1fbb632f3b5d2c4c1cfc7fda4abefe73307c2b | 3,813 | cpp | C++ | 3rdparty/spirv-tools/source/opt/strip_nonsemantic_info_pass.cpp | amrezzd/bgfx | 560669f6c0e19daf8f29e1f085599f0765e4ee35 | [
"BSD-2-Clause"
] | 188 | 2021-08-11T07:42:41.000Z | 2022-03-31T09:58:09.000Z | 3rdparty/spirv-tools/source/opt/strip_nonsemantic_info_pass.cpp | amrezzd/bgfx | 560669f6c0e19daf8f29e1f085599f0765e4ee35 | [
"BSD-2-Clause"
] | 2 | 2021-09-25T16:51:34.000Z | 2021-11-21T15:59:11.000Z | 3rdparty/spirv-tools/source/opt/strip_nonsemantic_info_pass.cpp | amrezzd/bgfx | 560669f6c0e19daf8f29e1f085599f0765e4ee35 | [
"BSD-2-Clause"
] | 16 | 2021-09-02T08:37:25.000Z | 2022-03-30T16:53:26.000Z | // Copyright (c) 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | 32.87069 | 80 | 0.664044 | amrezzd |
cd1ffc92ab570432a5a298c529e1c74373753446 | 874 | cpp | C++ | PhantomEngine/PhantomAction.cpp | DexianZhao/PhantomGameEngine | cf8e341d21e3973856d9f23ad0b1af9db831bac7 | [
"MIT"
] | 4 | 2019-11-08T00:15:13.000Z | 2021-03-26T13:34:50.000Z | src/PhantomEngine/PhantomAction.cpp | DexianZhao/PhantomEngineV2 | cc3bf02ca1d442713d471ca8835ca026bb32e841 | [
"MIT"
] | 4 | 2021-03-13T10:26:09.000Z | 2021-03-13T10:45:35.000Z | src/PhantomEngine/PhantomAction.cpp | DexianZhao/PhantomEngineV2 | cc3bf02ca1d442713d471ca8835ca026bb32e841 | [
"MIT"
] | 3 | 2020-06-01T01:53:05.000Z | 2021-03-21T03:51:33.000Z | //////////////////////////////////////////////////////////////////////////////////////////////////////
/*
文件 : PhantomAction.cpp
幻影游戏引擎, 2009-2016, Phantom Game Engine, http://www.aixspace.com
Design Writer : 赵德贤 Dexian Zhao
Email: yuzhou_995@hotmail.com
Copyright 2009-2016 Zhao Dexian
-------------------... | 23.621622 | 103 | 0.372998 | DexianZhao |
cd229ade02b635fa8b562ca56a06c88e6bf80d38 | 1,772 | hpp | C++ | src/common/StringFormer.hpp | zhaldak/signature | f4c8eafd2d2af6b60f0b1380d5d4b01d33f35b74 | [
"MIT"
] | null | null | null | src/common/StringFormer.hpp | zhaldak/signature | f4c8eafd2d2af6b60f0b1380d5d4b01d33f35b74 | [
"MIT"
] | null | null | null | src/common/StringFormer.hpp | zhaldak/signature | f4c8eafd2d2af6b60f0b1380d5d4b01d33f35b74 | [
"MIT"
] | 1 | 2020-02-01T11:41:39.000Z | 2020-02-01T11:41:39.000Z | #pragma once
#include <algorithm>
#include <string_view>
#include <cstdio>
#include <cstdint>
#include <cstdarg>
class StringFormer
{
public:
StringFormer(StringFormer&&) = delete;
StringFormer(StringFormer const&) = delete;
StringFormer& operator=(StringFormer&&) = delete;
Strin... | 24.273973 | 88 | 0.61851 | zhaldak |
cd232a6bc8d430afe3bf2d8375c894eff92b5662 | 34,676 | cpp | C++ | TerrainApps/CManager/frame.cpp | nakijun/vtp | 7bd2b2abd3a3f778a32ba30be099cfba9b892922 | [
"MIT"
] | 4 | 2019-02-08T13:51:26.000Z | 2021-12-07T13:11:06.000Z | TerrainApps/CManager/frame.cpp | nakijun/vtp | 7bd2b2abd3a3f778a32ba30be099cfba9b892922 | [
"MIT"
] | null | null | null | TerrainApps/CManager/frame.cpp | nakijun/vtp | 7bd2b2abd3a3f778a32ba30be099cfba9b892922 | [
"MIT"
] | 7 | 2017-12-03T10:13:17.000Z | 2022-03-29T09:51:18.000Z | //
// Name: frame.cpp
// Purpose: The frame class for the Content Manager.
//
// Copyright (c) 2001-2011 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
#... | 25.385066 | 91 | 0.701061 | nakijun |
cd24d16e13fdef4060d3fde1f6b9d7b22eaba84f | 1,521 | cpp | C++ | Sources/WebApp/AppFramework/SDL2Caches.cpp | kovacsv/VisualScriptEngineWeb | e7eb8089018969d691a4e47a92eea43e75bfb017 | [
"MIT"
] | 19 | 2020-08-01T14:52:21.000Z | 2022-03-27T01:09:59.000Z | Sources/WebApp/AppFramework/SDL2Caches.cpp | kovacsv/VisualScriptEngineWeb | e7eb8089018969d691a4e47a92eea43e75bfb017 | [
"MIT"
] | 17 | 2020-08-14T15:03:07.000Z | 2020-09-24T17:08:52.000Z | Sources/WebApp/AppFramework/SDL2Caches.cpp | kovacsv/VisualScriptEngineWeb | e7eb8089018969d691a4e47a92eea43e75bfb017 | [
"MIT"
] | null | null | null | #include "SDL2Caches.hpp"
#include "NE_StringUtils.hpp"
FontTextureCacheKey::FontTextureCacheKey (const std::wstring& text, const NUIE::ColorCacheKey& color, int size) :
text (text),
color (color),
size (size)
{
}
bool FontTextureCacheKey::operator== (const FontTextureCacheKey& rhs) const
{
return text == rhs.te... | 24.532258 | 113 | 0.748849 | kovacsv |
cd26e8480f16b32070d2ad7407364896f7a40aa1 | 2,308 | cpp | C++ | src/AdventOfCode2020/Day23-CrabCups/Day23-CrabCups.cpp | dbartok/advent-of-code-cpp | c8c2df7a21980f8f3e42128f7bc5df8288f18490 | [
"MIT"
] | null | null | null | src/AdventOfCode2020/Day23-CrabCups/Day23-CrabCups.cpp | dbartok/advent-of-code-cpp | c8c2df7a21980f8f3e42128f7bc5df8288f18490 | [
"MIT"
] | null | null | null | src/AdventOfCode2020/Day23-CrabCups/Day23-CrabCups.cpp | dbartok/advent-of-code-cpp | c8c2df7a21980f8f3e42128f7bc5df8288f18490 | [
"MIT"
] | null | null | null | #include "Day23-CrabCups.h"
#include "CupMixer.h"
#include <AdventOfCodeCommon/DisableLibraryWarningsMacros.h>
__BEGIN_LIBRARIES_DISABLE_WARNINGS
#include <vector>
#include <algorithm>
#include <numeric>
__END_LIBRARIES_DISABLE_WARNINGS
namespace
{
size_t MANY_CUPS_NUMBER = 1'000'000;
}
namespace AdventOfCode
{
... | 27.807229 | 120 | 0.727903 | dbartok |
cd27753b2c2eb1db41ed81d13b6cccb941eaa480 | 52,967 | cpp | C++ | src/OpenGL/common/Image.cpp | aswimmingfish/swiftshader | dc7759ccc3151a1aefefa9f86610e66f6fe9311c | [
"Apache-2.0"
] | 1 | 2020-09-29T03:14:19.000Z | 2020-09-29T03:14:19.000Z | src/OpenGL/common/Image.cpp | longde123/SwiftShader | 2ddef8858e5015140f374d5c06d1a68b7c78af10 | [
"Apache-2.0"
] | null | null | null | src/OpenGL/common/Image.cpp | longde123/SwiftShader | 2ddef8858e5015140f374d5c06d1a68b7c78af10 | [
"Apache-2.0"
] | null | null | null | // Copyright 2016 The SwiftShader Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required b... | 31.565554 | 211 | 0.693621 | aswimmingfish |
cd2fa4921c143259a4adcecca86c08b4d31061f4 | 337 | cpp | C++ | cEpiabm/src/dataclasses/household.cpp | Saketkr21/epiabm | 3ec0dcbc78d3fd4114ed3c6bdd78ef39f0013d2f | [
"BSD-3-Clause"
] | null | null | null | cEpiabm/src/dataclasses/household.cpp | Saketkr21/epiabm | 3ec0dcbc78d3fd4114ed3c6bdd78ef39f0013d2f | [
"BSD-3-Clause"
] | null | null | null | cEpiabm/src/dataclasses/household.cpp | Saketkr21/epiabm | 3ec0dcbc78d3fd4114ed3c6bdd78ef39f0013d2f | [
"BSD-3-Clause"
] | 1 | 2022-03-14T06:00:30.000Z | 2022-03-14T06:00:30.000Z |
#include "household.hpp"
namespace epiabm
{
Household::Household(size_t mcellPos) :
MembersInterface(mcellPos),
m_params(),
m_mcellPos(mcellPos)
{}
size_t Household::microcellPos() const { return m_mcellPos; }
HouseholdParams& Household::params() { return m_params; }
} // ... | 17.736842 | 65 | 0.661721 | Saketkr21 |
cd312e2187caf0c3593f1946fe944c2acd8e20ad | 3,745 | cc | C++ | lite/tests/kernels/sequence_pad_test.cc | winter-wang/Paddle-Lite | cd09ad060a0d7f20f55c4d6951ca95be75dc2c9c | [
"Apache-2.0"
] | 6 | 2020-07-01T02:52:16.000Z | 2021-06-22T12:15:59.000Z | lite/tests/kernels/sequence_pad_test.cc | winter-wang/Paddle-Lite | cd09ad060a0d7f20f55c4d6951ca95be75dc2c9c | [
"Apache-2.0"
] | null | null | null | lite/tests/kernels/sequence_pad_test.cc | winter-wang/Paddle-Lite | cd09ad060a0d7f20f55c4d6951ca95be75dc2c9c | [
"Apache-2.0"
] | 1 | 2021-07-24T15:30:46.000Z | 2021-07-24T15:30:46.000Z | // Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | 32.008547 | 75 | 0.658745 | winter-wang |
cd332b0704436ea6dd1415cc10a86ee6c4d4c083 | 43,948 | hpp | C++ | include/jsoncons/json_container.hpp | snatesh/NEMoSys_fork | 5c1d8244c274a8e9e2a66c23baa91329dcdaf0eb | [
"NCSA"
] | 4 | 2019-10-25T00:37:17.000Z | 2020-06-02T22:23:02.000Z | include/jsoncons/json_container.hpp | snatesh/NEMoSys_fork | 5c1d8244c274a8e9e2a66c23baa91329dcdaf0eb | [
"NCSA"
] | null | null | null | include/jsoncons/json_container.hpp | snatesh/NEMoSys_fork | 5c1d8244c274a8e9e2a66c23baa91329dcdaf0eb | [
"NCSA"
] | null | null | null | // Copyright 2013 Daniel Parker
// Distributed under the Boost license, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// See https://github.com/danielaparker/jsoncons for latest version
#ifndef JSONCONS_JSON_CONTAINER_HPP
#define JSONCONS_JSON_CONTAINER_HPP
#... | 30.647141 | 127 | 0.554132 | snatesh |
cd3c3bcfed4b9ef19161bdc8e38477bd8c604bb7 | 224 | cpp | C++ | 113.cpp | abdullah1107/uva | 5c7107d41a586e30aa7cc91cd7498b82dbc506ee | [
"MIT"
] | null | null | null | 113.cpp | abdullah1107/uva | 5c7107d41a586e30aa7cc91cd7498b82dbc506ee | [
"MIT"
] | null | null | null | 113.cpp | abdullah1107/uva | 5c7107d41a586e30aa7cc91cd7498b82dbc506ee | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int main()
{
double m,n,p,k;
while(scanf("%lf %lf",&n,&p)!=EOF)
{
k=pow(p,1/n);
printf("%0.lf\n",k);
}
return 0;
}
| 14.933333 | 38 | 0.526786 | abdullah1107 |
cd3d78ff7f43762aeff7c21c690982d576577192 | 5,277 | cxx | C++ | test/test_shm.cxx | yushansuger/nwcp | 8c2e6a31af59f3d209c962438b8b123b415b4fa4 | [
"MIT"
] | null | null | null | test/test_shm.cxx | yushansuger/nwcp | 8c2e6a31af59f3d209c962438b8b123b415b4fa4 | [
"MIT"
] | null | null | null | test/test_shm.cxx | yushansuger/nwcp | 8c2e6a31af59f3d209c962438b8b123b415b4fa4 | [
"MIT"
] | 1 | 2020-09-14T09:06:25.000Z | 2020-09-14T09:06:25.000Z | #include "cpshm.h"
#include <stdio.h>
#include "cpstring.h"
const char* shm_id = "test_nwdl_shm";
struct TEST_SHM_DATA
{
char str[128];
int len;
};
void print_data(TEST_SHM_DATA* data)
{
printf("TEST_SHM_DATA::str: %s \nTEST_SHM_DATA::len: %d\n\n",
data->str, data->len);
}
... | 19.838346 | 67 | 0.492515 | yushansuger |
cd40158fa587ea149d6323d39ce5d36b66d36005 | 440 | hpp | C++ | tests/gt_os/inc/mocks/window-enumerator.mock.hpp | my-repositories/GameTrainer | fd307e0bd6e0ef74e8b3195ad6394c71e2fac555 | [
"MIT"
] | 3 | 2018-10-11T13:37:42.000Z | 2021-03-23T21:54:02.000Z | tests/gt_os/inc/mocks/window-enumerator.mock.hpp | my-repositories/GameTrainer | fd307e0bd6e0ef74e8b3195ad6394c71e2fac555 | [
"MIT"
] | null | null | null | tests/gt_os/inc/mocks/window-enumerator.mock.hpp | my-repositories/GameTrainer | fd307e0bd6e0ef74e8b3195ad6394c71e2fac555 | [
"MIT"
] | null | null | null | #ifndef GAMETRAINER_WINDOW_ENUMERATOR_MOCK_HPP
#define GAMETRAINER_WINDOW_ENUMERATOR_MOCK_HPP
#include <gt_os/window-enumerator.i.hpp>
class WindowEnumeratorMock : public gt::os::IWindowEnumerator {
public:
MOCK_METHOD1(setTitle, gt::os::IWindowEnumerator*(const std::string&));
MOCK_METHOD0(enumerate, gt::os:... | 31.428571 | 75 | 0.793182 | my-repositories |
cd44485256c8664d140b4cc445f59264c2e94353 | 11,768 | hxx | C++ | include/geombd/CRTP/DJointBase.hxx | garechav/geombd_crtp | c723c0cda841728fcb34fbad634f166e3237d9d9 | [
"MIT"
] | 1 | 2021-12-20T23:11:23.000Z | 2021-12-20T23:11:23.000Z | include/geombd/CRTP/DJointBase.hxx | garechav/geombd_crtp | c723c0cda841728fcb34fbad634f166e3237d9d9 | [
"MIT"
] | null | null | null | include/geombd/CRTP/DJointBase.hxx | garechav/geombd_crtp | c723c0cda841728fcb34fbad634f166e3237d9d9 | [
"MIT"
] | null | null | null | /**
* \file include/geombd/CRTP/DJointBase.hxx
* \author Alvaro Paz, Gustavo Arechavaleta
* \version 1.0
* \date 2021
*
* Class to implement the CRTP base (interface)
* Copyright (c) 2021 Cinvestav
* This library is distributed under the MIT License.
*/
#ifdef EIGEN_VECTORIZE
#endif
#if... | 48.829876 | 145 | 0.592284 | garechav |
cd49f7c4a184424639af62ff5022ff61a394ae59 | 963 | cpp | C++ | 0071 Simplify Path/solution.cpp | Aden-Tao/LeetCode | c34019520b5808c4251cb76f69ca2befa820401d | [
"MIT"
] | 1 | 2019-12-19T04:13:15.000Z | 2019-12-19T04:13:15.000Z | 0071 Simplify Path/solution.cpp | Aden-Tao/LeetCode | c34019520b5808c4251cb76f69ca2befa820401d | [
"MIT"
] | null | null | null | 0071 Simplify Path/solution.cpp | Aden-Tao/LeetCode | c34019520b5808c4251cb76f69ca2befa820401d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
class Solution {
public:
string simplifyPath(string path) {
if (path.back() != '/') path += '/';
string res, s;
for (auto &c : path)
{
if (res.empty()) res += c;
else if (c == '/')
{
if... | 22.928571 | 66 | 0.298027 | Aden-Tao |
cd4d1bae880e0dda4505079c61cb2fd611e8eda9 | 1,010 | cpp | C++ | src/Standard/FirstPersonCameraController.cpp | HyperionDH/Tristeon | 8475df94b9dbd4e3b4cc82b89c6d4bab45acef29 | [
"MIT"
] | 38 | 2017-12-04T10:48:28.000Z | 2018-05-11T09:59:41.000Z | src/Standard/FirstPersonCameraController.cpp | Tristeon/Tristeon3D | 8475df94b9dbd4e3b4cc82b89c6d4bab45acef29 | [
"MIT"
] | 9 | 2017-12-04T09:58:55.000Z | 2018-02-05T00:06:41.000Z | src/Standard/FirstPersonCameraController.cpp | Tristeon/Tristeon3D | 8475df94b9dbd4e3b4cc82b89c6d4bab45acef29 | [
"MIT"
] | 3 | 2018-01-10T13:39:12.000Z | 2018-03-17T20:53:22.000Z | #include "FirstPersonCameraController.h"
#include "Core/Transform.h"
#include "Misc/Hardware/Mouse.h"
#include "Misc/Hardware/Time.h"
#include "XPlatform/typename.h"
namespace Tristeon
{
namespace Standard
{
DerivedRegister<FirstPersonCameraController> FirstPersonCameraController::reg;
nlohmann::json FirstPers... | 24.634146 | 93 | 0.715842 | HyperionDH |
cd5175264eeaf261eed1956dba071251b8e5418c | 3,924 | cpp | C++ | ParticleShooter/Polygon.cpp | fuzzwaz/ParticleShooter | 9165f5142d797b223e73d145de80317b1fdababf | [
"Apache-2.0"
] | 1 | 2021-09-10T00:44:09.000Z | 2021-09-10T00:44:09.000Z | Fuzzy2D/Polygon.cpp | fuzzwaz/Fuzzy2D-Game-Engine | 1258bb0268a5be5925ce31f7c7edbdcf87eb27c2 | [
"Apache-2.0"
] | null | null | null | Fuzzy2D/Polygon.cpp | fuzzwaz/Fuzzy2D-Game-Engine | 1258bb0268a5be5925ce31f7c7edbdcf87eb27c2 | [
"Apache-2.0"
] | null | null | null | #include "Common.h"
#include "Polygon.h"
#include "Vector2.h"
Polygon::Polygon()
{
_vertices.reset(new std::vector<Vector2>());
_perpendiculars.reset(new std::vector<Vector2>());
}
void Polygon::operator=(const Polygon& source)
{
if (this == &source)
return;
_vertices->clear();
_perpendiculars->clear();
_ve... | 25.480519 | 115 | 0.717635 | fuzzwaz |
cd5192159d2d380d6bb84e44bfdf7fbeccf894f7 | 1,695 | cc | C++ | src/FractalStruct/force_at_particle.cc | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/FractalStruct/force_at_particle.cc | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/FractalStruct/force_at_particle.cc | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | #include "libs.hh"
#include "classes.hh"
#include "headers.hh"
namespace FractalSpace
{
void force_at_particle(Group& group, Fractal& fractal,const bool& conserve)
{
fractal.timing(-1,8);
ofstream& FileFractal=fractal.p_file->DUMPS;
vector <double> dens(8);
vector <double> weights(8);
vector <d... | 27.33871 | 97 | 0.632448 | jmikeowen |
cd54b296c3370bee409421ff58e93b1bb0ca1fc3 | 4,596 | hpp | C++ | include/realm/core/component.hpp | pyrbin/realm.hpp | e34b18ce1f5c39b080a9e70f675adf740490ff83 | [
"MIT"
] | 2 | 2020-03-01T18:15:27.000Z | 2020-03-25T10:21:59.000Z | include/realm/core/component.hpp | pyrbin/realm.hpp | e34b18ce1f5c39b080a9e70f675adf740490ff83 | [
"MIT"
] | null | null | null | include/realm/core/component.hpp | pyrbin/realm.hpp | e34b18ce1f5c39b080a9e70f675adf740490ff83 | [
"MIT"
] | 1 | 2020-03-25T10:22:00.000Z | 2020-03-25T10:22:00.000Z | #pragma once
#include <cstddef>
#include <functional>
#include <iostream>
#include <vector>
#include <realm/util/identifier.hpp>
#include <realm/util/type_traits.hpp>
namespace realm {
/**
* @brief Memory layout
* Describes a particular layout of memory. Inspired by Rust's alloc::Layout.
* @ref https://doc.rust-l... | 24.446809 | 100 | 0.629896 | pyrbin |
cd5b3fd49836834a174cc6548e2045163fc7744e | 4,738 | hpp | C++ | src/main/cpp/Balau/Dev/Assert.hpp | borasoftware/balau | 8bb82e9cbf7aa8193880eda1de5cbca4db1e1c14 | [
"Apache-2.0"
] | 6 | 2018-12-30T15:09:26.000Z | 2020-04-20T09:27:59.000Z | src/main/cpp/Balau/Dev/Assert.hpp | borasoftware/balau | 8bb82e9cbf7aa8193880eda1de5cbca4db1e1c14 | [
"Apache-2.0"
] | null | null | null | src/main/cpp/Balau/Dev/Assert.hpp | borasoftware/balau | 8bb82e9cbf7aa8193880eda1de5cbca4db1e1c14 | [
"Apache-2.0"
] | 2 | 2019-11-12T08:07:16.000Z | 2019-11-29T11:19:47.000Z | // @formatter:off
//
// Balau core C++ library
//
// Copyright (C) 2008 Bora Software (contact@borasoftware.com)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apach... | 26.768362 | 114 | 0.689109 | borasoftware |
cd5cd82914164fe87e414e025406662814b15a1b | 2,913 | cpp | C++ | src/projects/scripts/run.cpp | AntonBankevich/DR | 73450ad3b25f90a3c7747aaf17fe60d13d9692d3 | [
"BSD-3-Clause"
] | 3 | 2020-11-14T14:41:55.000Z | 2020-12-12T07:05:51.000Z | src/projects/scripts/run.cpp | AntonBankevich/DR | 73450ad3b25f90a3c7747aaf17fe60d13d9692d3 | [
"BSD-3-Clause"
] | 1 | 2022-02-01T11:16:31.000Z | 2022-02-01T18:56:55.000Z | src/projects/scripts/run.cpp | AntonBankevich/DR | 73450ad3b25f90a3c7747aaf17fe60d13d9692d3 | [
"BSD-3-Clause"
] | null | null | null | #include <common/verify.hpp>
#include <experimental/filesystem>
#include <fstream>
#include <unistd.h>
#include <common/dir_utils.hpp>
#include <common/string_utils.hpp>
std::string getFirst(const std::experimental::filesystem::path &cfile) {
std::string res;
std::ifstream is;
is.open(cfile);
std::getl... | 33.482759 | 119 | 0.557501 | AntonBankevich |
cd6085a4c75c956e4f3511e5d4460f2db121b6ba | 6,017 | cc | C++ | contrib/gcc-4.1/libstdc++-v3/src/ios.cc | masami256/dfly-3.0.2-bhyve | 6f6c18db6fa90734135a2044769035eb82b821c1 | [
"BSD-3-Clause"
] | 3 | 2017-03-06T14:12:57.000Z | 2019-11-23T09:35:10.000Z | contrib/gcc-4.1/libstdc++-v3/src/ios.cc | masami256/dfly-3.0.2-bhyve | 6f6c18db6fa90734135a2044769035eb82b821c1 | [
"BSD-3-Clause"
] | null | null | null | contrib/gcc-4.1/libstdc++-v3/src/ios.cc | masami256/dfly-3.0.2-bhyve | 6f6c18db6fa90734135a2044769035eb82b821c1 | [
"BSD-3-Clause"
] | null | null | null | // Iostreams base classes -*- C++ -*-
// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Publi... | 30.85641 | 79 | 0.69769 | masami256 |
cd62b9eb823200cbe57965f55ecc0ad90ba578ba | 405 | hpp | C++ | src/TextFile.hpp | oleksandrkozlov/touch-typing | e38f315fa979ab66539c0a6a47796b5e6cabe0a2 | [
"MIT"
] | 1 | 2020-10-10T14:04:15.000Z | 2020-10-10T14:04:15.000Z | src/TextFile.hpp | oleksandrkozlov/touch-typing | e38f315fa979ab66539c0a6a47796b5e6cabe0a2 | [
"MIT"
] | 37 | 2020-04-19T12:37:03.000Z | 2021-06-06T09:33:37.000Z | src/TextFile.hpp | oleksandrkozlov/touch-typing | e38f315fa979ab66539c0a6a47796b5e6cabe0a2 | [
"MIT"
] | null | null | null | #ifndef TOUCH_TYPING_TEXT_FILER_HPP
#define TOUCH_TYPING_TEXT_FILER_HPP
#include <filesystem>
#include <string>
namespace touch_typing {
class TextFile {
public:
explicit TextFile(const std::filesystem::path& filename);
[[nodiscard]] auto asString() const noexcept -> const std::string&;
private:
std::s... | 18.409091 | 71 | 0.753086 | oleksandrkozlov |
cd661369a54ab9c8aa3fdc9d51347c4ab770b7e6 | 3,534 | hpp | C++ | include/eve/module/bessel/detail/kernel_bessel_i.hpp | HadrienG2/eve | 3afdcfb524f88c0b88df9b54e25bbb9b33f518ec | [
"MIT"
] | null | null | null | include/eve/module/bessel/detail/kernel_bessel_i.hpp | HadrienG2/eve | 3afdcfb524f88c0b88df9b54e25bbb9b33f518ec | [
"MIT"
] | null | null | null | include/eve/module/bessel/detail/kernel_bessel_i.hpp | HadrienG2/eve | 3afdcfb524f88c0b88df9b54e25bbb9b33f518ec | [
"MIT"
] | null | null | null | //==================================================================================================
/**
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//==================================================================================================
#... | 34.647059 | 101 | 0.44652 | HadrienG2 |
cd68929d6cfcef605b9da503ac4e87f494cd9ead | 1,295 | cpp | C++ | grid_map_filters/src/DeletionFilter.cpp | saikrn112/grid_map | f64a471c6fc9059a7db7e3327ff94a65f862d95c | [
"BSD-3-Clause"
] | 2 | 2019-04-18T01:26:21.000Z | 2021-07-14T01:23:05.000Z | grid_map_filters/src/DeletionFilter.cpp | saikrn112/grid_map | f64a471c6fc9059a7db7e3327ff94a65f862d95c | [
"BSD-3-Clause"
] | null | null | null | grid_map_filters/src/DeletionFilter.cpp | saikrn112/grid_map | f64a471c6fc9059a7db7e3327ff94a65f862d95c | [
"BSD-3-Clause"
] | 8 | 2018-02-20T17:33:33.000Z | 2021-07-18T20:48:36.000Z | /*
* DeletionFilter.cpp
*
* Created on: Mar 19, 2015
* Author: Martin Wermelinger, Peter Fankhauser
* Institute: ETH Zurich, Autonomous Systems Lab
*/
#include "grid_map_filters/DeletionFilter.hpp"
#include <grid_map_core/GridMap.hpp>
#include <pluginlib/class_list_macros.h>
using namespace filters;
n... | 20.234375 | 107 | 0.680309 | saikrn112 |
cd6a0ac75ba33cbd688135f9d2195d3c74ea56fb | 411 | cpp | C++ | pepcoding_problem/decimal_to_any_base.cpp | sahilduhan/Learn-C-plus-plus | 80dba2ee08b36985deb297293a0318da5d6ace94 | [
"RSA-MD"
] | null | null | null | pepcoding_problem/decimal_to_any_base.cpp | sahilduhan/Learn-C-plus-plus | 80dba2ee08b36985deb297293a0318da5d6ace94 | [
"RSA-MD"
] | null | null | null | pepcoding_problem/decimal_to_any_base.cpp | sahilduhan/Learn-C-plus-plus | 80dba2ee08b36985deb297293a0318da5d6ace94 | [
"RSA-MD"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int get_value_base(int num, int base)
{
int rv = 0;
int p = 1;
while (num > 0)
{
int dig = num % base;
num = num / base;
rv += dig * p;
p = p * 10;
}
return rv;
}
int main()
{
int num = 634;
int base = 8;
... | 15.807692 | 37 | 0.479319 | sahilduhan |
cd6b4e146f8b9dc27e50e2dccd2cfbba91574315 | 1,493 | cpp | C++ | art-of-prog/31-longest_inc_seq/31-longest_inc_seq.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | art-of-prog/31-longest_inc_seq/31-longest_inc_seq.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | art-of-prog/31-longest_inc_seq/31-longest_inc_seq.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <cstdlib>
/**< 问题:最长递增子序列 */
// Ref: http://blog.csdn.net/joylnwang/article/details/6766317
// Ref: http://qiemengdao.iteye.com/blog/1660229
/* 给定一个长度为 N 的数组 a0, a1, a2, ..., an - 1,找出一个最长的单调递增子序列
* 递增的意思是对于任意的 i < j,都满足 ai < aj,此外子序列的意思是不要求连续,顺序不乱即可。
* 例如,长度为 6 的数组 A =... | 22.283582 | 75 | 0.536504 | Ginkgo-Biloba |
cd6c4ec5bc7be4140ea8941d1cbc673016774ea5 | 2,739 | cpp | C++ | src/volt/config.cpp | voltengine/volt | fbefe2e0a8e461b6130ffe926870c4848bd6e7d1 | [
"MIT"
] | null | null | null | src/volt/config.cpp | voltengine/volt | fbefe2e0a8e461b6130ffe926870c4848bd6e7d1 | [
"MIT"
] | null | null | null | src/volt/config.cpp | voltengine/volt | fbefe2e0a8e461b6130ffe926870c4848bd6e7d1 | [
"MIT"
] | null | null | null | #include <volt/pch.hpp>
#include <volt/config.hpp>
#include <volt/util/util.hpp>
#include <volt/log.hpp>
#include <volt/paths.hpp>
namespace fs = std::filesystem;
namespace nl = nlohmann;
#ifdef VOLT_DEVELOPMENT
static nl::json base_config;
#endif
static nl::json default_config, config;
static nl::json cleave(nl::... | 22.636364 | 82 | 0.676159 | voltengine |
cd70c8416a48b9fcb1fee0c060b9d22f4b4d9b86 | 11,349 | cpp | C++ | samples/ExternalFunction/ExternalFunction.cpp | kidaa/xalan-c | bb666d0ab3d0a192410823e6857c203d83c27b16 | [
"Apache-2.0"
] | null | null | null | samples/ExternalFunction/ExternalFunction.cpp | kidaa/xalan-c | bb666d0ab3d0a192410823e6857c203d83c27b16 | [
"Apache-2.0"
] | 1 | 2021-08-18T12:32:31.000Z | 2021-08-18T12:32:31.000Z | samples/ExternalFunction/ExternalFunction.cpp | AaronNGray/xalan | 6741bbdcb64a9d33df8bd7e21b558d66bb4292ec | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the "License");
* you m... | 27.021429 | 105 | 0.61186 | kidaa |
cd721d3b8d1bf423a2e2d42632a35078e291a2cc | 28,059 | cpp | C++ | packages/arb-avm-cpp/tests/checkpoint.cpp | mrsmkl/arbitrum | 7941a8c4870f98ed7999357049a5eec4a75d8c78 | [
"Apache-2.0"
] | null | null | null | packages/arb-avm-cpp/tests/checkpoint.cpp | mrsmkl/arbitrum | 7941a8c4870f98ed7999357049a5eec4a75d8c78 | [
"Apache-2.0"
] | null | null | null | packages/arb-avm-cpp/tests/checkpoint.cpp | mrsmkl/arbitrum | 7941a8c4870f98ed7999357049a5eec4a75d8c78 | [
"Apache-2.0"
] | 1 | 2020-09-20T19:25:23.000Z | 2020-09-20T19:25:23.000Z | /*
* Copyright 2019, Offchain Labs, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 35.42803 | 80 | 0.656545 | mrsmkl |
cd725f4ea754645fb58c747c8a825c92039711a7 | 27,365 | cpp | C++ | Source/Urho3D/IK/IKSolver.cpp | jayrulez/Urho3D | ff211d94240c1e848304aaaa9ccfa8d4f6315457 | [
"MIT"
] | null | null | null | Source/Urho3D/IK/IKSolver.cpp | jayrulez/Urho3D | ff211d94240c1e848304aaaa9ccfa8d4f6315457 | [
"MIT"
] | null | null | null | Source/Urho3D/IK/IKSolver.cpp | jayrulez/Urho3D | ff211d94240c1e848304aaaa9ccfa8d4f6315457 | [
"MIT"
] | null | null | null | // Copyright (c) 2008-2022 the Urho3D project
// License: MIT
#include "../IK/IKSolver.h"
#include "../IK/IKConstraint.h"
#include "../IK/IKEvents.h"
#include "../IK/IKEffector.h"
#include "../IK/IKConverters.h"
#include "../Core/Context.h"
#include "../Core/Profiler.h"
#include "../Graphics/Animation.h"
#include "..... | 33.250304 | 197 | 0.587466 | jayrulez |
cd74b2c0719fc846f8b3ecd83fd50fd4f8253f4f | 3,349 | cpp | C++ | examples/Pose2SLAMwSPCG.cpp | zwn/gtsam | 3422c3bb66bef319d66a950857bb6ec073b43703 | [
"BSD-3-Clause"
] | 1,402 | 2017-03-28T00:18:11.000Z | 2022-03-30T10:28:32.000Z | examples/Pose2SLAMwSPCG.cpp | zwn/gtsam | 3422c3bb66bef319d66a950857bb6ec073b43703 | [
"BSD-3-Clause"
] | 851 | 2017-11-27T15:09:56.000Z | 2022-03-31T22:26:38.000Z | examples/Pose2SLAMwSPCG.cpp | zwn/gtsam | 3422c3bb66bef319d66a950857bb6ec073b43703 | [
"BSD-3-Clause"
] | 565 | 2017-11-30T16:15:59.000Z | 2022-03-31T02:53:04.000Z | /* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* ----... | 41.345679 | 92 | 0.682293 | zwn |
cd778fa773c1ed4aa674daa897d493533115fcdb | 23,425 | cpp | C++ | aidl.cpp | 00liujj/aidl-cpp | 24ddb77dc7f38e12627f1c7cdaed34d66cd2baf4 | [
"Apache-2.0"
] | 6 | 2017-06-30T05:36:52.000Z | 2022-03-24T01:08:46.000Z | aidl.cpp | 00liujj/aidl-cpp | 24ddb77dc7f38e12627f1c7cdaed34d66cd2baf4 | [
"Apache-2.0"
] | 3 | 2018-06-06T07:02:22.000Z | 2018-06-06T11:29:16.000Z | aidl.cpp | 00liujj/aidl-cpp | 24ddb77dc7f38e12627f1c7cdaed34d66cd2baf4 | [
"Apache-2.0"
] | 20 | 2017-06-15T01:37:23.000Z | 2022-03-25T23:13:06.000Z | /*
* Copyright (C) 2015, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 30.343264 | 98 | 0.613917 | 00liujj |
cd77d64ff58bcd54cc6fd4ece1ce31e8ec2b701b | 2,741 | hpp | C++ | libraries/boost/include/boost/mp11/set.hpp | cucubao/eosio.cdt | 4985359a30da1f883418b7133593f835927b8046 | [
"MIT"
] | 918 | 2016-12-22T02:53:08.000Z | 2022-03-22T06:21:35.000Z | libraries/boost/include/boost/mp11/set.hpp | cucubao/eosio.cdt | 4985359a30da1f883418b7133593f835927b8046 | [
"MIT"
] | 594 | 2018-09-06T02:03:01.000Z | 2022-03-23T19:18:26.000Z | libraries/boost/include/boost/mp11/set.hpp | cucubao/eosio.cdt | 4985359a30da1f883418b7133593f835927b8046 | [
"MIT"
] | 349 | 2018-09-06T05:02:09.000Z | 2022-03-12T11:07:17.000Z | #ifndef BOOST_MP11_SET_HPP_INCLUDED
#define BOOST_MP11_SET_HPP_INCLUDED
// Copyright 2015 Peter Dimov.
//
// Distributed under the Boost Software License, Version 1.0.
//
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
#include <boost/mp11/utility.hpp>
#include <boost/m... | 26.355769 | 119 | 0.690259 | cucubao |
cd7a8303bf8d76d374813d0d463c93329f6c1104 | 1,306 | cpp | C++ | server/src/route_server/route_server.cpp | xiaominfc/TeamTalk | 20084010a9804d1ff0ed7bb5924fde7041b952eb | [
"Apache-2.0"
] | 65 | 2017-11-18T15:43:56.000Z | 2022-01-30T08:07:11.000Z | server/src/route_server/route_server.cpp | xiaominfc/TeamTalk | 20084010a9804d1ff0ed7bb5924fde7041b952eb | [
"Apache-2.0"
] | 3 | 2018-09-04T14:27:45.000Z | 2020-10-29T07:22:45.000Z | server/src/route_server/route_server.cpp | xiaominfc/TeamTalk | 20084010a9804d1ff0ed7bb5924fde7041b952eb | [
"Apache-2.0"
] | 36 | 2018-07-10T04:21:08.000Z | 2021-11-09T07:21:10.000Z | /*
* @Author: xiaominfc
* @Date: 2020-09-02 17:10:06
* @Description: main run for routeserver
*/
#include "RouteConn.h"
#include "netlib.h"
#include "ConfigFileReader.h"
#include "version.h"
#include "EventSocket.h"
int main(int argc, char* argv[])
{
PRINTSERVERVERSION()
signal(SIGPIPE, SIG_IGN);
srand(time(... | 22.517241 | 114 | 0.715161 | xiaominfc |
cd7d73f759922ffcefdf3bed814dffc7e3d9b9c1 | 721 | cpp | C++ | LeetCode/230 - Kth Smallest Element in a BST.cpp | GokulVSD/ScratchPad | 53dee2293a2039186b00c7a465c7ef28e2b8e291 | [
"Unlicense"
] | null | null | null | LeetCode/230 - Kth Smallest Element in a BST.cpp | GokulVSD/ScratchPad | 53dee2293a2039186b00c7a465c7ef28e2b8e291 | [
"Unlicense"
] | null | null | null | LeetCode/230 - Kth Smallest Element in a BST.cpp | GokulVSD/ScratchPad | 53dee2293a2039186b00c7a465c7ef28e2b8e291 | [
"Unlicense"
] | null | null | null | // https://leetcode.com/problems/kth-smallest-element-in-a-bst/
// Honestly, this problem should be classified as easy.
class Solution {
public:
int kthSmallest(TreeNode* root, int k) {
stack<TreeNode*> s;
TreeNode* cur = root;
while(cur != NULL){
s.push(cur);
cur =... | 25.75 | 63 | 0.424411 | GokulVSD |
cd80bd2dcf925d2dfd4d4bcf05fd50de26f5b5b5 | 1,130 | hh | C++ | maxutils/maxbase/include/maxbase/watchedworker.hh | blylei/MaxScale | 2de10c9de12664e6d59f1ef879fd90d44b73d472 | [
"BSD-3-Clause"
] | null | null | null | maxutils/maxbase/include/maxbase/watchedworker.hh | blylei/MaxScale | 2de10c9de12664e6d59f1ef879fd90d44b73d472 | [
"BSD-3-Clause"
] | null | null | null | maxutils/maxbase/include/maxbase/watchedworker.hh | blylei/MaxScale | 2de10c9de12664e6d59f1ef879fd90d44b73d472 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2018 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2025-03-24
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... | 24.042553 | 75 | 0.723894 | blylei |
cd81a0755febba52e79794a767cdaabda45aba10 | 3,894 | cpp | C++ | src/modules/commander/Arming/PreFlightCheck/checks/imuConsistencyCheck.cpp | sundxfansky/Firmware | 0e70578052d938ea87c70837a15185b99dbb2309 | [
"BSD-3-Clause"
] | 10 | 2020-11-25T14:04:15.000Z | 2022-03-02T23:46:57.000Z | src/modules/commander/Arming/PreFlightCheck/checks/imuConsistencyCheck.cpp | choudhary0parivesh/Firmware | 02f4ad61ec8eb4f7906dd06b4eb1fd6abb994244 | [
"BSD-3-Clause"
] | 20 | 2017-11-30T09:49:45.000Z | 2018-02-12T07:56:29.000Z | src/modules/commander/Arming/PreFlightCheck/checks/imuConsistencyCheck.cpp | choudhary0parivesh/Firmware | 02f4ad61ec8eb4f7906dd06b4eb1fd6abb994244 | [
"BSD-3-Clause"
] | 10 | 2019-04-02T09:06:30.000Z | 2021-06-23T15:52:33.000Z | /****************************************************************************
*
* Copyright (c) 2019 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistri... | 41.870968 | 99 | 0.736518 | sundxfansky |
cd81fecd4c9d9f99fcbe88efe5f5214345719f6c | 47,585 | cpp | C++ | gdal/ogr/ogrsf_frmts/libkml/ogrlibkmlfield.cpp | chambbj/gdal | 3d56aecb5b8e9890dae8f560acd099992e707d12 | [
"MIT"
] | 1 | 2015-02-16T16:51:38.000Z | 2015-02-16T16:51:38.000Z | gdal/ogr/ogrsf_frmts/libkml/ogrlibkmlfield.cpp | theduckylittle/gdal | 61be261cae524582ba28bceebb027cc1e967e0ab | [
"MIT"
] | null | null | null | gdal/ogr/ogrsf_frmts/libkml/ogrlibkmlfield.cpp | theduckylittle/gdal | 61be261cae524582ba28bceebb027cc1e967e0ab | [
"MIT"
] | null | null | null | /******************************************************************************
*
* Project: KML Translator
* Purpose: Implements OGRLIBKMLDriver
* Author: Brian Case, rush at winkey dot org
*
******************************************************************************
* Copyright (c) 2010, Brian Case
*
... | 31.575979 | 99 | 0.482484 | chambbj |
cd83150fc6d12a4b0ed589589c985cd461a0f936 | 2,768 | cpp | C++ | OpenGLExample_21/OpenGLExample_21/src/CreateWindow.cpp | SnowyLake/OpenGL_Learn | ae389cb45992eb90595482e0b4eca41b967e63b3 | [
"MIT"
] | 4 | 2020-11-27T14:20:28.000Z | 2022-03-12T03:11:04.000Z | OpenGLExample_21/OpenGLExample_21/src/CreateWindow.cpp | SnowyLake/OpenGL_Learn | ae389cb45992eb90595482e0b4eca41b967e63b3 | [
"MIT"
] | null | null | null | OpenGLExample_21/OpenGLExample_21/src/CreateWindow.cpp | SnowyLake/OpenGL_Learn | ae389cb45992eb90595482e0b4eca41b967e63b3 | [
"MIT"
] | null | null | null | #include"CreateWindow.h"
//setting
const unsigned int SCR_WIDTH = 800;
const unsigned int SCR_HEIGHT = 600;
//camera
GLCamera camera(glm::vec3(0.0f, 0.0f, 6.0f));
float lastX = SCR_WIDTH / 2.0f;
float lastY = SCR_HEIGHT / 2.0f;
bool firstMouse = true;
//timing
float deltaTime = 0.0f; // time between curr... | 26.113208 | 85 | 0.717847 | SnowyLake |
cd8344de5018d08c30e74df0f59e0eeaadfa5a1e | 1,841 | cpp | C++ | CG_AUEB_LAB_4/Lab4/Source/SceneGraph/Node.cpp | kvarcg/opengl_course | 9f6613a0e165f44630de553051eb8722387b7ac8 | [
"MIT"
] | null | null | null | CG_AUEB_LAB_4/Lab4/Source/SceneGraph/Node.cpp | kvarcg/opengl_course | 9f6613a0e165f44630de553051eb8722387b7ac8 | [
"MIT"
] | null | null | null | CG_AUEB_LAB_4/Lab4/Source/SceneGraph/Node.cpp | kvarcg/opengl_course | 9f6613a0e165f44630de553051eb8722387b7ac8 | [
"MIT"
] | null | null | null | //----------------------------------------------------//
// //
// File: Node.cpp //
// This scene graph is a basic example for the //
// object relational management of the scene //
// This is the basic node class ... | 22.728395 | 123 | 0.415535 | kvarcg |
cd85fac14b7d699039f12d0621ae3469ae582e2d | 4,632 | cpp | C++ | scout_webots_sim/src/scout_webots_runner.cpp | westonrobot/scout_navigation | 7e8c79cb41205b98a33a81e87bdea6bd6411bca3 | [
"BSD-3-Clause"
] | 14 | 2020-09-02T14:05:14.000Z | 2021-08-31T02:19:37.000Z | scout_webots_sim/src/scout_webots_runner.cpp | westonrobot/scout_navigation | 7e8c79cb41205b98a33a81e87bdea6bd6411bca3 | [
"BSD-3-Clause"
] | 4 | 2020-09-18T12:50:15.000Z | 2021-10-16T13:06:16.000Z | scout_webots_sim/src/scout_webots_runner.cpp | westonrobot/scout_navigation | 7e8c79cb41205b98a33a81e87bdea6bd6411bca3 | [
"BSD-3-Clause"
] | 4 | 2020-10-16T06:31:28.000Z | 2021-08-31T02:21:50.000Z | /*
* scout_webots_runner.cpp
*
* Created on: Sep 18, 2020 11:13
* Description:
*
* Copyright (c) 2020 Ruixiang Du (rdu)
*/
#include <signal.h>
#include <webots_ros/set_float.h>
#include "scout_base/scout_messenger.hpp"
#include "scout_webots_sim/scout_webots_runner.hpp"
#include "scout_webots_sim/scout_webots... | 31.087248 | 96 | 0.696244 | westonrobot |
cd8a3b795b2ef7c574629303bc5eab4eb050a8af | 18,686 | cc | C++ | library/impl/gviz/gvznode.cc | flyfire100/dot-editor | 76fedb74bfdd51f7740d66befe8f868eb0ecff28 | [
"BSD-3-Clause"
] | 3 | 2016-04-09T18:23:40.000Z | 2021-11-23T10:34:44.000Z | library/impl/gviz/gvznode.cc | flyfire100/dot-editor | 76fedb74bfdd51f7740d66befe8f868eb0ecff28 | [
"BSD-3-Clause"
] | 7 | 2017-03-10T08:19:20.000Z | 2021-10-21T13:02:37.000Z | library/impl/gviz/gvznode.cc | flyfire100/dot-editor | 76fedb74bfdd51f7740d66befe8f868eb0ecff28 | [
"BSD-3-Clause"
] | 2 | 2015-08-21T09:52:26.000Z | 2021-07-22T08:14:08.000Z | /* ========================================================================= */
/* ------------------------------------------------------------------------- */
/*!
\file gvznode.cc
\date May 2012
\author TNick
\brief Contains the implementation of GVzNode class
*//*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | 22.009423 | 79 | 0.505031 | flyfire100 |
cd8b1e066b48e12c8309f635958842cfc37e95c6 | 5,902 | cpp | C++ | apps/interpolate_generator/interpolate_generator.cpp | Neo-Vincent/Halide | 50c40dc185b040b93f1a90b6373a82744312cfd6 | [
"MIT"
] | null | null | null | apps/interpolate_generator/interpolate_generator.cpp | Neo-Vincent/Halide | 50c40dc185b040b93f1a90b6373a82744312cfd6 | [
"MIT"
] | null | null | null | apps/interpolate_generator/interpolate_generator.cpp | Neo-Vincent/Halide | 50c40dc185b040b93f1a90b6373a82744312cfd6 | [
"MIT"
] | null | null | null | #include "Halide.h"
namespace {
class Interpolate : public Halide::Generator<Interpolate> {
public:
GeneratorParam<int> levels_{"levels", 10};
Input<Buffer<float>> input_{"input", 3};
Output<Buffer<float>> output_{"output", 3};
void generate() {
Var x("x"), y("y"), c("c");
... | 38.575163 | 122 | 0.420535 | Neo-Vincent |
cd8c5901bf224cd114a7c090461f91041992d6d8 | 2,340 | cpp | C++ | nntrainer/layers/addition_layer.cpp | JuYeong0413/nntrainer | 37b7c2234dd591a994148d14dd399037702ccd31 | [
"Apache-2.0"
] | null | null | null | nntrainer/layers/addition_layer.cpp | JuYeong0413/nntrainer | 37b7c2234dd591a994148d14dd399037702ccd31 | [
"Apache-2.0"
] | null | null | null | nntrainer/layers/addition_layer.cpp | JuYeong0413/nntrainer | 37b7c2234dd591a994148d14dd399037702ccd31 | [
"Apache-2.0"
] | null | null | null | // SPDX-License-Identifier: Apache-2.0
/**
* Copyright (C) 2020 Parichay Kapoor <pk.kapoor@samsung.com>
*
* @file addition_layer.cpp
* @date 30 July 2020
* @see https://github.com/nnstreamer/nntrainer
* @author Parichay Kapoor <pk.kapoor@samsung.com>
* @bug No known bugs except for NYI items
* @brief ... | 27.209302 | 77 | 0.654274 | JuYeong0413 |
cd9205524109317c1bb2fbc2e4aa4c485289ae60 | 22,138 | cxx | C++ | PWGHF/vertexingHF/AliNormalizationCounter.cxx | wiechula/AliPhysics | 6c5c45a5c985747ee82328d8fd59222b34529895 | [
"BSD-3-Clause"
] | null | null | null | PWGHF/vertexingHF/AliNormalizationCounter.cxx | wiechula/AliPhysics | 6c5c45a5c985747ee82328d8fd59222b34529895 | [
"BSD-3-Clause"
] | null | null | null | PWGHF/vertexingHF/AliNormalizationCounter.cxx | wiechula/AliPhysics | 6c5c45a5c985747ee82328d8fd59222b34529895 | [
"BSD-3-Clause"
] | null | null | null | /**************************************************************************
* Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 37.39527 | 229 | 0.718087 | wiechula |
cd9593b4fa1fe9c662a604485f9e66d17c879764 | 2,710 | cpp | C++ | control/group_utils.cpp | TheMrButcher/offline-mentor | 15c362710fc993b21ed2d23adfc98e797e2380db | [
"MIT"
] | null | null | null | control/group_utils.cpp | TheMrButcher/offline-mentor | 15c362710fc993b21ed2d23adfc98e797e2380db | [
"MIT"
] | 101 | 2017-03-11T19:09:46.000Z | 2017-09-04T17:37:55.000Z | control/group_utils.cpp | TheMrButcher/offline-mentor | 15c362710fc993b21ed2d23adfc98e797e2380db | [
"MIT"
] | 1 | 2018-03-13T03:47:15.000Z | 2018-03-13T03:47:15.000Z | #include "group_utils.h"
#include "solution_utils.h"
#include "settings.h"
#include <QDir>
namespace {
QList<Group> groups;
QHash<QUuid, const Group*> groupMap;
QHash<QString, QList<const Group*>> userToGroupMap;
const Group BAD_GROUP;
const QList<const Group*> EMPTY_GROUP_LIST;
void updateAll()
{
groupMap.clear(... | 25.327103 | 79 | 0.597048 | TheMrButcher |
cd98b9ee25b889d835f5249f248b390bbe62a9e3 | 309 | cpp | C++ | Source/Minigame/src/source/ui/Image.cpp | marcspoon07/Project1_Minigame | d8da2892fc97cc2e8310cf9c042d75dcbad4a6ba | [
"MIT"
] | null | null | null | Source/Minigame/src/source/ui/Image.cpp | marcspoon07/Project1_Minigame | d8da2892fc97cc2e8310cf9c042d75dcbad4a6ba | [
"MIT"
] | null | null | null | Source/Minigame/src/source/ui/Image.cpp | marcspoon07/Project1_Minigame | d8da2892fc97cc2e8310cf9c042d75dcbad4a6ba | [
"MIT"
] | null | null | null | #include "../../headers/ui/Image.h"
#include "../../headers/Renderer2D.h"
Image::Image(const char * path, int x, int y)
{
pImageId = Resources::getInstance()->Load<Sprite>(path);
px = x;
py = y;
}
Image::~Image()
{
}
void Image::Render()
{
Renderer2D::getInstance()->RenderGraphic(pImageId, px, py);
} | 16.263158 | 60 | 0.63754 | marcspoon07 |
cd9ae0cdb42387c379c25e46709d5762a5031852 | 2,485 | hpp | C++ | src/container/containerBase.hpp | myrabiedermann/rsmd | 97ccc65dbb3d9d16e5e6a88f256d97a36c511740 | [
"Apache-2.0"
] | 2 | 2021-01-30T00:30:32.000Z | 2021-04-20T11:54:53.000Z | src/container/containerBase.hpp | myrabiedermann/rsmd | 97ccc65dbb3d9d16e5e6a88f256d97a36c511740 | [
"Apache-2.0"
] | null | null | null | src/container/containerBase.hpp | myrabiedermann/rsmd | 97ccc65dbb3d9d16e5e6a88f256d97a36c511740 | [
"Apache-2.0"
] | null | null | null | /************************************************
* *
* rs@md *
* (reactive steps @ molecular dynamics ) *
* *
************************************************/
/*
Copyright 2020... | 34.513889 | 86 | 0.557344 | myrabiedermann |
cdb7ef72726dc5ee1391185155d0b9b34a71f269 | 13,734 | hpp | C++ | 309551047_np_project3/cgi_server.hpp | Ksld154/Network-Programming | 9b92ba9118ecd11de801e1ac4f062ebcce8386f0 | [
"MIT"
] | 1 | 2021-09-16T01:15:33.000Z | 2021-09-16T01:15:33.000Z | 309551047_np_project3/cgi_server.hpp | Ksld154/Network-Programming | 9b92ba9118ecd11de801e1ac4f062ebcce8386f0 | [
"MIT"
] | null | null | null | 309551047_np_project3/cgi_server.hpp | Ksld154/Network-Programming | 9b92ba9118ecd11de801e1ac4f062ebcce8386f0 | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <cstdio>
#include <iostream>
#include <fstream>
#include <unistd.h>
#include <boost/asio.hpp>
#include <boost/algorithm/string.hpp>
#define PANEL_ENTRY_NUM 5
#define SERVER_NUM 12
#define TESTCASE_NUM 10
#define ONE_SECOND 1000000
#defi... | 34.507538 | 156 | 0.457623 | Ksld154 |
cdbb439abbbb903703facacce7234ff385c54718 | 7,122 | cpp | C++ | Tuvok/IO/StkConverter.cpp | JensDerKrueger/ImageVis3D | 699ab32132c899b7ea227bc87a9de80768ab879f | [
"MIT"
] | null | null | null | Tuvok/IO/StkConverter.cpp | JensDerKrueger/ImageVis3D | 699ab32132c899b7ea227bc87a9de80768ab879f | [
"MIT"
] | null | null | null | Tuvok/IO/StkConverter.cpp | JensDerKrueger/ImageVis3D | 699ab32132c899b7ea227bc87a9de80768ab879f | [
"MIT"
] | null | null | null | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2008 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation ... | 35.788945 | 97 | 0.663016 | JensDerKrueger |
cdbd521d24966c84c7653910de392753f21ad316 | 301 | cpp | C++ | list9_9/main.cpp | rimever/SuraSuraCPlus | acbc6e1d0d0bb9bf07e28ab02c30ac021b1f6899 | [
"MIT"
] | null | null | null | list9_9/main.cpp | rimever/SuraSuraCPlus | acbc6e1d0d0bb9bf07e28ab02c30ac021b1f6899 | [
"MIT"
] | null | null | null | list9_9/main.cpp | rimever/SuraSuraCPlus | acbc6e1d0d0bb9bf07e28ab02c30ac021b1f6899 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
using namespace std;
int main() {
string s;
ifstream fin("myFile.txt");
if (!fin.is_open()) {
cout << "ファイルをオープンできません!";
return 1;
}
while (getline(fin, s)) {
cout << s << endl;
}
fin.close();
return 0;
} | 16.722222 | 34 | 0.521595 | rimever |
cdbeb95aaab15164aa4bfea1701a86cd6bf4de32 | 4,674 | cpp | C++ | 2018/2018050703.cpp | maku693/daily-snippets | 53e3a516eeb293b3c11055db1b87d54284e6ac52 | [
"MIT"
] | null | null | null | 2018/2018050703.cpp | maku693/daily-snippets | 53e3a516eeb293b3c11055db1b87d54284e6ac52 | [
"MIT"
] | null | null | null | 2018/2018050703.cpp | maku693/daily-snippets | 53e3a516eeb293b3c11055db1b87d54284e6ac52 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <array>
#include <iostream>
#include <string>
#include <utility>
#include <variant>
#include <vector>
enum class token_type {
paren_open,
paren_close,
period,
literal_number,
symbol,
};
std::ostream &operator<<(std::ostream &os, const token_type &type) noexcept {
switch (type... | 21.638889 | 80 | 0.633077 | maku693 |
cdc02ba4eb63cdf0f9ef1210a7169eb0f98b89e5 | 1,950 | hpp | C++ | EasySDL-objects.hpp | dido11/EasySDL | dda4e325fb1735ae03f13dd75d4a2c53fba36a97 | [
"MIT"
] | 1 | 2021-03-29T05:47:18.000Z | 2021-03-29T05:47:18.000Z | EasySDL-objects.hpp | dido11/EasySDL | dda4e325fb1735ae03f13dd75d4a2c53fba36a97 | [
"MIT"
] | null | null | null | EasySDL-objects.hpp | dido11/EasySDL | dda4e325fb1735ae03f13dd75d4a2c53fba36a97 | [
"MIT"
] | null | null | null | #ifndef EASYSDL_OBJECTS_H
#define EASYSDL_OBJECTS_H
#include "EasySDL.hpp"
namespace objects
{
struct Area
{
int h;
int w;
int x=0, y=0;
map<string, double> values;
SDL_Surface * area=NULL;
void areaPlace(SDL_Surface *surf, bool autoDestroySurface, int x, int y, int x0=x_left, int y0=y_top, double an... | 21.910112 | 137 | 0.65641 | dido11 |
02cb3aad25d526cb47685b3fbb34bb04b32c4f37 | 579 | cpp | C++ | Assignment 4/Assingnment 4/Assingnment 4/NegateBlue.cpp | justin-harper/cs122 | 83949bc097cf052ffe6b8bd82002377af4d9cede | [
"MIT"
] | null | null | null | Assignment 4/Assingnment 4/Assingnment 4/NegateBlue.cpp | justin-harper/cs122 | 83949bc097cf052ffe6b8bd82002377af4d9cede | [
"MIT"
] | null | null | null | Assignment 4/Assingnment 4/Assingnment 4/NegateBlue.cpp | justin-harper/cs122 | 83949bc097cf052ffe6b8bd82002377af4d9cede | [
"MIT"
] | null | null | null | /*
Assignment: 4
Description: Paycheck Calculator
Author: Justin Harper
WSU ID: 10696738 Completion Time: 4hrs
In completing this program, I received help from the following people:
myself
version 1.0 (major relese) I am happy with this version!
*/
#include "NegateBlue.h"
using namespace std;
//image processor t... | 19.965517 | 83 | 0.727116 | justin-harper |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.