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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3e3f11d9a1f3ab6310eae363f1f436339e3d4e20 | 144 | cpp | C++ | ue4/Source/NaNRPG/Database/NaDatabaseConst.cpp | mekamarimo7777/NaNRPG | 7f039319e0a40bf8df6ad449f5f8539d2be6a2c4 | [
"MIT"
] | null | null | null | ue4/Source/NaNRPG/Database/NaDatabaseConst.cpp | mekamarimo7777/NaNRPG | 7f039319e0a40bf8df6ad449f5f8539d2be6a2c4 | [
"MIT"
] | null | null | null | ue4/Source/NaNRPG/Database/NaDatabaseConst.cpp | mekamarimo7777/NaNRPG | 7f039319e0a40bf8df6ad449f5f8539d2be6a2c4 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "NaNRPG.h"
#include "NaDatabaseConst.h"
| 20.571429 | 79 | 0.763889 | mekamarimo7777 |
3e3f185fda335f99cb3b88719ae8a3e69d84d1e2 | 39,122 | cpp | C++ | EnsightMatlab/mexfiles/EnsightLib_interface.cpp | ITWM-TVFS/Ensight4Matlab | bafc148aaac9451c780483b8fb065571275d5bc1 | [
"MIT"
] | 7 | 2017-11-16T16:21:40.000Z | 2022-02-21T12:48:16.000Z | EnsightMatlab/mexfiles/EnsightLib_interface.cpp | ITWM-TVFS/Ensight4Matlab | bafc148aaac9451c780483b8fb065571275d5bc1 | [
"MIT"
] | null | null | null | EnsightMatlab/mexfiles/EnsightLib_interface.cpp | ITWM-TVFS/Ensight4Matlab | bafc148aaac9451c780483b8fb065571275d5bc1 | [
"MIT"
] | 3 | 2017-08-16T19:10:15.000Z | 2020-06-18T08:43:04.000Z | /*
* Copyright (c) 2016 Fraunhofer ITWM
*
* 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, copy, modify, merge, pub... | 34.468722 | 110 | 0.603113 | ITWM-TVFS |
3e47e9ff77e151fd06aa6577e6ef145518fdbdee | 3,696 | cpp | C++ | cpp/fft.cpp | petuhovskiy/Templates-CP | 7419d5b5c6a92a98ba4d93525f6db22b7c3afa9e | [
"MIT"
] | 8 | 2016-06-05T19:19:27.000Z | 2019-05-14T10:33:37.000Z | cpp/fft.cpp | petuhovskiy/Templates-CP | 7419d5b5c6a92a98ba4d93525f6db22b7c3afa9e | [
"MIT"
] | 2 | 2017-02-21T12:38:27.000Z | 2018-01-28T20:05:00.000Z | cpp/fft.cpp | petuhovskiy/Templates-CP | 7419d5b5c6a92a98ba4d93525f6db22b7c3afa9e | [
"MIT"
] | 6 | 2015-12-26T21:12:17.000Z | 2022-03-26T21:40:17.000Z | namespace fft {
inline uint8_t countBin(uint32_t x) {
for (uint8_t i = 0; i != 32; ++i) {
if (x & 1) {
return i;
}
x >>= 1;
}
return 32;
}
inline uint32_t reverse(uint32_t x) {
uint32_t res = 0;
for (uint8_t i = 0; ... | 30.04878 | 80 | 0.381494 | petuhovskiy |
3e4e687a1425f6f2db6b21e8297a403d0240159f | 446 | cpp | C++ | SimulationTest/common/NewtonFirstLawTestHelper.cpp | KevinMcGin/Simulation | f1dbed05d6024274f6a69e0679f529feaae1e26e | [
"MIT"
] | 4 | 2021-12-11T17:59:07.000Z | 2021-12-24T11:08:55.000Z | SimulationTest/common/NewtonFirstLawTestHelper.cpp | KevinMcGin/Simulation | f1dbed05d6024274f6a69e0679f529feaae1e26e | [
"MIT"
] | 121 | 2021-12-11T09:20:47.000Z | 2022-03-13T18:36:48.000Z | SimulationTest/common/NewtonFirstLawTestHelper.cpp | KevinMcGin/Simulation | f1dbed05d6024274f6a69e0679f529feaae1e26e | [
"MIT"
] | null | null | null | #include "NewtonFirstLawTestHelper.h"
std::vector<Particle*> NewtonFirstLawTestHelper::getParticleMove() {
std::vector<Particle*> particles = { new ParticleSimple(1,1,{0,0,0},{1,-1,0}) };
return particles;
}
void NewtonFirstLawTestHelper::testParticleMove(std::vector<Particle*> particles) {
Vector3D<float> p... | 34.307692 | 84 | 0.735426 | KevinMcGin |
3e4fcdaad5cf05f8478acf2874113fd19d7e8798 | 392 | hpp | C++ | Sniper.hpp | or2209/wargame | e239c991c9f5f05fe571de41057f08ea10e8037e | [
"MIT"
] | null | null | null | Sniper.hpp | or2209/wargame | e239c991c9f5f05fe571de41057f08ea10e8037e | [
"MIT"
] | null | null | null | Sniper.hpp | or2209/wargame | e239c991c9f5f05fe571de41057f08ea10e8037e | [
"MIT"
] | null | null | null | //
// Created by netanel on 25/05/2020.
//
#ifndef WARGAME_SNIPER_HPP
#define WARGAME_SNIPER_HPP
#include "Soldier.hpp"
#include <iostream>
#include <vector>
using namespace std;
class Sniper:public Soldier{
public:
Sniper(int num_p):Soldier(100,50,num_p,100){
}
void Fight(vector<vector<Soldier *>> &boa... | 18.666667 | 84 | 0.719388 | or2209 |
3e517e031dfa940820372c6d37ed662197954234 | 1,189 | cpp | C++ | ex00/src/main.cpp | 42cursus-youkim/-Rank04-CPP-Module02 | f83b37150a4fda6130835b5a50291ed4ab867ebe | [
"MIT"
] | null | null | null | ex00/src/main.cpp | 42cursus-youkim/-Rank04-CPP-Module02 | f83b37150a4fda6130835b5a50291ed4ab867ebe | [
"MIT"
] | null | null | null | ex00/src/main.cpp | 42cursus-youkim/-Rank04-CPP-Module02 | f83b37150a4fda6130835b5a50291ed4ab867ebe | [
"MIT"
] | null | null | null | #include <iostream>
#include "Fixed.hpp"
#include "test.hpp"
void testDefault() {
test::header("Mandatory");
Fixed a;
Fixed b(a);
Fixed c;
c = b;
std::cout << a.getRawBits() << std::endl;
std::cout << b.getRawBits() << std::endl;
std::cout << c.getRawBits() << std::endl;
}
void testCustom() {
test... | 21.618182 | 62 | 0.600505 | 42cursus-youkim |
3e5224055b66f6e922cc89d62d67211ce2b01efa | 159 | cc | C++ | Tests/CentralHelix_unit.cc | orionning676/KinKal | 689ec932155b7fe31d46c398bcb78bcac93581d7 | [
"Apache-1.1"
] | 2 | 2020-04-21T18:24:55.000Z | 2020-09-24T19:01:47.000Z | Tests/CentralHelix_unit.cc | orionning676/KinKal | 689ec932155b7fe31d46c398bcb78bcac93581d7 | [
"Apache-1.1"
] | 45 | 2020-03-16T18:27:59.000Z | 2022-01-13T05:18:35.000Z | Tests/CentralHelix_unit.cc | orionning676/KinKal | 689ec932155b7fe31d46c398bcb78bcac93581d7 | [
"Apache-1.1"
] | 15 | 2020-02-21T01:10:49.000Z | 2022-03-24T12:13:35.000Z | #include "KinKal/Trajectory/CentralHelix.hh"
#include "KinKal/Tests/Trajectory.hh"
int main(int argc, char **argv) {
return test<CentralHelix>(argc,argv);
}
| 26.5 | 44 | 0.748428 | orionning676 |
3e54464aac14107f9ec43a946ac0a4d9f1e90c5a | 5,175 | cpp | C++ | src/src/symbolizer_p.cpp | degiz/sldparser | d11a40aa58f2f1bc8f439c5888645ba637a30a28 | [
"MIT"
] | 1 | 2021-01-25T08:41:59.000Z | 2021-01-25T08:41:59.000Z | src/src/symbolizer_p.cpp | degiz/sldparser | d11a40aa58f2f1bc8f439c5888645ba637a30a28 | [
"MIT"
] | null | null | null | src/src/symbolizer_p.cpp | degiz/sldparser | d11a40aa58f2f1bc8f439c5888645ba637a30a28 | [
"MIT"
] | null | null | null | #include "symbolizer_p.h"
namespace SldParser {
std::vector<std::string> SymbolizerPrivate::_symbolizerTypes = {
"PolygonSymbolizer",
"LineSymbolizer",
"PointSymbolizer",
"TextSymbolizer",
"RasterSymbolizer"
};
SymbolizerPrivate::SymbolizerPrivate(XmlIterator iterator) :
SLDNode(iterator)... | 23.630137 | 107 | 0.548213 | degiz |
3e54bed01516fd860fb7aca07dfd6088d9de39d5 | 40,525 | cpp | C++ | src/game_api/script/usertypes/entities_monsters_lua.cpp | iojon/overlunky | 096902bf8f0de28522ab140d900d64354ce536ac | [
"MIT"
] | null | null | null | src/game_api/script/usertypes/entities_monsters_lua.cpp | iojon/overlunky | 096902bf8f0de28522ab140d900d64354ce536ac | [
"MIT"
] | null | null | null | src/game_api/script/usertypes/entities_monsters_lua.cpp | iojon/overlunky | 096902bf8f0de28522ab140d900d64354ce536ac | [
"MIT"
] | 1 | 2020-11-14T14:45:16.000Z | 2020-11-14T14:45:16.000Z | #include "entities_monsters_lua.hpp"
#include "entities_monsters.hpp"
#include "entity.hpp"
#include <sol/sol.hpp>
namespace NEntitiesMonsters
{
void register_usertypes(sol::state& lua)
{
lua["Entity"]["as_monster"] = &Entity::as<Monster>;
lua["Entity"]["as_roomowner"] = &Entity::as<RoomOwner>;
lua["Ent... | 32.497995 | 341 | 0.606416 | iojon |
3e587c703115cbaa6f337bf6e0d18d4d9d33a0bc | 1,227 | hpp | C++ | base/include/ntt.hpp | OrbitZore/ATL | a0ade2176459cda6886efd67c2c22916a1092dea | [
"CC0-1.0"
] | 2 | 2021-05-22T13:17:54.000Z | 2021-11-23T15:10:10.000Z | base/include/ntt.hpp | OrbitZore/ATL | a0ade2176459cda6886efd67c2c22916a1092dea | [
"CC0-1.0"
] | null | null | null | base/include/ntt.hpp | OrbitZore/ATL | a0ade2176459cda6886efd67c2c22916a1092dea | [
"CC0-1.0"
] | null | null | null | template<class T>
struct ntt{
int size,l,n;
vector<int> r;
const int mod{998244353};
const array<const T,2> P{3,332748118};
array<vector<T>,2> W;
int floorintlog2(int i){
int k=0;
while (i) i>>=1,k++;
return k;
}
ntt(int size):size(size){
l=floorintlog2(size);
n=1<<l;
r.resize(n,0);
W.fill(vector<... | 26.106383 | 63 | 0.492258 | OrbitZore |
3e59a1107c0e381af43cb1355784123a302684f6 | 64 | hh | C++ | inc/Matrix/Matrix2x2.hh | KPO-2020-2021/zad5_2-Poresh2222 | d9627b315549b0232dbb7f963e31c0de161a0452 | [
"Unlicense"
] | null | null | null | inc/Matrix/Matrix2x2.hh | KPO-2020-2021/zad5_2-Poresh2222 | d9627b315549b0232dbb7f963e31c0de161a0452 | [
"Unlicense"
] | null | null | null | inc/Matrix/Matrix2x2.hh | KPO-2020-2021/zad5_2-Poresh2222 | d9627b315549b0232dbb7f963e31c0de161a0452 | [
"Unlicense"
] | null | null | null | #pragma once
#include "Matrix.hh"
typedef Matrix<2> Matrix2D; | 10.666667 | 27 | 0.734375 | KPO-2020-2021 |
3e5e1d07c056ec1928417aaf83317563216ab927 | 23,615 | cpp | C++ | src/NotesLoaderKSF.cpp | ohsix/stepmania | ea9fa7efcb728b25e9f4b21e6cd93268684057e8 | [
"MIT"
] | null | null | null | src/NotesLoaderKSF.cpp | ohsix/stepmania | ea9fa7efcb728b25e9f4b21e6cd93268684057e8 | [
"MIT"
] | null | null | null | src/NotesLoaderKSF.cpp | ohsix/stepmania | ea9fa7efcb728b25e9f4b21e6cd93268684057e8 | [
"MIT"
] | null | null | null | #include "global.h"
#include "NotesLoaderKSF.h"
#include "RageUtil_CharConversions.h"
#include "MsdFile.h"
#include "RageLog.h"
#include "RageUtil.h"
#include "NoteData.h"
#include "NoteTypes.h"
#include "Song.h"
#include "Steps.h"
static void HandleBunki( TimingData &timing, const float fEarlyBPM,
const float fCu... | 29.118372 | 103 | 0.656151 | ohsix |
3e61b717b067caea8f2f25f753c5f60a64fad41c | 1,016 | hpp | C++ | libs/fnd/type_traits/include/bksge/fnd/type_traits/is_implicitly_move_constructible.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/type_traits/include/bksge/fnd/type_traits/is_implicitly_move_constructible.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/type_traits/include/bksge/fnd/type_traits/is_implicitly_move_constructible.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file is_implicitly_move_constructible.hpp
*
* @brief is_implicitly_move_constructible の定義
*
* @author myoukaku
*/
#ifndef BKSGE_FND_TYPE_TRAITS_IS_IMPLICITLY_MOVE_CONSTRUCTIBLE_HPP
#define BKSGE_FND_TYPE_TRAITS_IS_IMPLICITLY_MOVE_CONSTRUCTIBLE_HPP
#include <bksge/fnd/config.hpp>
namespace ... | 23.627907 | 86 | 0.790354 | myoukaku |
3e62ca4347255f39db8725df734c94227dda29b6 | 8,188 | hpp | C++ | android-31/android/opengl/EGL14.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/opengl/EGL14.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/opengl/EGL14.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../../JObject.hpp"
class JIntArray;
class JArray;
namespace android::opengl
{
class EGLConfig;
}
namespace android::opengl
{
class EGLContext;
}
namespace android::opengl
{
class EGLDisplay;
}
namespace android::opengl
{
class EGLSurface;
}
class JObject;
class JString;
namespace android::... | 42.86911 | 186 | 0.778456 | YJBeetle |
3e6b33a94d9acb1084cc1a4cb7557c13f954f461 | 1,253 | cpp | C++ | Core/Math/ColorConvert.cpp | laszlopapai/UAVOnboardController | ca3d9b6314903711e75920d262c7388edfb810e5 | [
"Apache-2.0"
] | null | null | null | Core/Math/ColorConvert.cpp | laszlopapai/UAVOnboardController | ca3d9b6314903711e75920d262c7388edfb810e5 | [
"Apache-2.0"
] | null | null | null | Core/Math/ColorConvert.cpp | laszlopapai/UAVOnboardController | ca3d9b6314903711e75920d262c7388edfb810e5 | [
"Apache-2.0"
] | null | null | null | #include <algorithm>
#include "ColorConvert.h"
#include <math.h>
using namespace IoT::Core;
void ColorConvert::hsv2rgb(float H, float S, float V, float *r, float *g, float *b)
{
H -= ((uint64_t)(H / 360) * 360.0f);
float R, G, B;
if (V <= 0)
{
R = G = B = 0;
}
else if (S <= 0)
{
R = G = B = V;
}
else
{... | 15.6625 | 85 | 0.466879 | laszlopapai |
3e6c46c8f8250b16ba51476516871873f9de2581 | 33,636 | cpp | C++ | src/messagetree/server/MessageTreeDatabasePeerSession.cpp | ruurdadema/zg_choir | 6de0e8be497974c0e56bb87139b18f0d6f5b4ee3 | [
"BSD-3-Clause"
] | null | null | null | src/messagetree/server/MessageTreeDatabasePeerSession.cpp | ruurdadema/zg_choir | 6de0e8be497974c0e56bb87139b18f0d6f5b4ee3 | [
"BSD-3-Clause"
] | null | null | null | src/messagetree/server/MessageTreeDatabasePeerSession.cpp | ruurdadema/zg_choir | 6de0e8be497974c0e56bb87139b18f0d6f5b4ee3 | [
"BSD-3-Clause"
] | null | null | null | #include "zg/messagetree/server/ClientDataMessageTreeDatabaseObject.h"
#include "zg/messagetree/server/MessageTreeDatabasePeerSession.h"
#include "zg/messagetree/server/MessageTreeDatabaseObject.h"
#include "zg/messagetree/server/UndoStackMessageTreeDatabaseObject.h"
#include "zg/messagetree/server/ServerSideMessageTre... | 45.639077 | 263 | 0.719527 | ruurdadema |
3e6cc7fe0dc2e221966c3fa05918c02af18568f6 | 475 | hpp | C++ | core/src/main/cpp/include/render/copier/ICopierSurface.hpp | caolongcl/OpenImage | d29e0309bc35ff1766e0c81bfba82b185a7aabb6 | [
"BSD-3-Clause"
] | 2 | 2021-09-16T15:14:39.000Z | 2021-09-17T14:39:52.000Z | core/src/main/cpp/include/render/copier/ICopierSurface.hpp | caolongcl/OpenImage | d29e0309bc35ff1766e0c81bfba82b185a7aabb6 | [
"BSD-3-Clause"
] | null | null | null | core/src/main/cpp/include/render/copier/ICopierSurface.hpp | caolongcl/OpenImage | d29e0309bc35ff1766e0c81bfba82b185a7aabb6 | [
"BSD-3-Clause"
] | null | null | null | //
// Created by caolong on 2020/8/13.
//
#pragma once
namespace clt {
/**
* 定义 Copier 输出的类型,如输出到 ANativeWindow、Texture、pbbuffer
* @tparam Args
*/
template<typename ...Args>
struct ICopierSurface {
ICopierSurface() = default;
virtual ~ICopierSurface() = default;
/**
* 注册Copier的输出Targ... | 15.833333 | 56 | 0.589474 | caolongcl |
3e6cddb7de4b477db55272748f0d3824132ccb20 | 6,626 | cpp | C++ | external/Magnum/ArcBall.cpp | LoganBarnes/ltb-gvs | b1178e31c35aece434c7d47af955275fca9bb2a5 | [
"MIT"
] | 1 | 2020-04-04T16:57:25.000Z | 2020-04-04T16:57:25.000Z | external/Magnum/ArcBall.cpp | LoganBarnes/ltb-gvs | b1178e31c35aece434c7d47af955275fca9bb2a5 | [
"MIT"
] | null | null | null | external/Magnum/ArcBall.cpp | LoganBarnes/ltb-gvs | b1178e31c35aece434c7d47af955275fca9bb2a5 | [
"MIT"
] | null | null | null | /*
This file is part of Magnum.
Original authors — credit is appreciated but not required:
2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 —
Vladimír Vondruš <mosra@centrum.cz>
2020 — Nghia Truong <nghiatruong.vn@gmail.com>
This is free and unencumbered software rel... | 37.435028 | 110 | 0.698913 | LoganBarnes |
3e6d9d4c04c76f80c6642fd7f858b20ad2e1d3bc | 6,215 | hpp | C++ | include/approx_rank.hpp | dominikkempa/psascan | d206aea99e0fe2130fcd0f726f1e0acb7699ebd6 | [
"MIT"
] | 3 | 2020-07-27T08:59:16.000Z | 2021-05-29T23:42:15.000Z | include/approx_rank.hpp | dominikkempa/psascan | d206aea99e0fe2130fcd0f726f1e0acb7699ebd6 | [
"MIT"
] | null | null | null | include/approx_rank.hpp | dominikkempa/psascan | d206aea99e0fe2130fcd0f726f1e0acb7699ebd6 | [
"MIT"
] | null | null | null | /**
* @file src/psascan_src/approx_rank.hpp
* @section DESCRIPTION
*
* The approximate rank data structure. Based on the 'sparse-LF'
* data structure described in:
*
* Dominik Kempa, Simon J. Puglisi:
* Lempel-Ziv Factorization: Simple, Fast, Practical.
* In Proc. ALENEX 2013, p. 103-112.
*
* @secti... | 33.413978 | 100 | 0.634755 | dominikkempa |
3e6de2efb02f41b6f73ae733ad579e41df00b706 | 2,664 | cpp | C++ | src/qt/config.tests/unix/endian/endiantest.cpp | jefleponot/phantomjs | 4333acfa798677ec895d73673898c3ffad36e4c0 | [
"BSD-3-Clause"
] | 25 | 2015-07-21T18:14:57.000Z | 2021-02-21T10:00:48.000Z | src/qt/config.tests/unix/endian/endiantest.cpp | jefleponot/phantomjs | 4333acfa798677ec895d73673898c3ffad36e4c0 | [
"BSD-3-Clause"
] | 3 | 2015-01-19T11:31:54.000Z | 2015-07-01T13:28:48.000Z | src/qt/config.tests/unix/endian/endiantest.cpp | jefleponot/phantomjs | 4333acfa798677ec895d73673898c3ffad36e4c0 | [
"BSD-3-Clause"
] | 9 | 2016-03-14T13:25:14.000Z | 2021-02-21T10:09:22.000Z | /****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the config.tests of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees ... | 46.736842 | 150 | 0.701201 | jefleponot |
3e7135bdf8359b90b2f57048a52ce0deee945435 | 7,283 | cpp | C++ | src/server/request_handler.cpp | asaveljevs/osrm-backend | 15f0ca8ddaa35c5b4d93c25afa72e81e1fb40c3e | [
"BSD-2-Clause"
] | 13 | 2019-02-21T02:02:41.000Z | 2021-09-09T13:49:31.000Z | src/server/request_handler.cpp | zhangdida/osrm-backend | 1ba8aba4663590c5c53b3b0a9989e4fe605b45b8 | [
"BSD-2-Clause"
] | 288 | 2019-02-21T01:34:04.000Z | 2021-03-27T12:19:10.000Z | src/server/request_handler.cpp | zhangdida/osrm-backend | 1ba8aba4663590c5c53b3b0a9989e4fe605b45b8 | [
"BSD-2-Clause"
] | 4 | 2019-06-21T20:51:59.000Z | 2021-01-13T09:22:24.000Z | #include "server/request_handler.hpp"
#include "server/service_handler.hpp"
#include "server/api/url_parser.hpp"
#include "server/http/reply.hpp"
#include "server/http/request.hpp"
#include "util/json_renderer.hpp"
#include "util/log.hpp"
#include "util/string_util.hpp"
#include "util/timing_util.hpp"
#include "util/... | 40.016484 | 100 | 0.552931 | asaveljevs |
3e7850076ab56ccdc70fa909eac1b344907011cc | 1,581 | hpp | C++ | externals/boost/boost/algorithm/cxx17/exclusive_scan.hpp | YuukiTsuchida/v8_embeded | c6e18f4e91fcc50607f8e3edc745a3afa30b2871 | [
"MIT"
] | 995 | 2018-06-22T10:39:18.000Z | 2022-03-25T01:22:14.000Z | jeff/common/include/boost/algorithm/cxx17/exclusive_scan.hpp | jeffphi/advent-of-code-2018 | 8e54bd23ebfe42fcbede315f0ab85db903551532 | [
"MIT"
] | 32 | 2018-06-23T14:19:37.000Z | 2022-03-29T10:20:37.000Z | jeff/common/include/boost/algorithm/cxx17/exclusive_scan.hpp | jeffphi/advent-of-code-2018 | 8e54bd23ebfe42fcbede315f0ab85db903551532 | [
"MIT"
] | 172 | 2018-06-22T11:12:00.000Z | 2022-03-29T07:44:33.000Z | /*
Copyright (c) Marshall Clow 2017.
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)
*/
/// \file exclusive_scan.hpp
/// \brief ???
/// \author Marshall Clow
#ifndef BOOST_ALGORITHM_EXCLUSIVE_SCAN_... | 29.830189 | 89 | 0.653384 | YuukiTsuchida |
3e7be9597a9a2ee11e5d9036937af8d798a59e1e | 415 | hpp | C++ | Flappy-Bird-SFML-Clone-master/Code/STATE CREATION/9 - Game State/DEFINITIONS.hpp | Moklok/Flappy-Bird-SFML-Clone-master | 7a1a0c1193503e899a243992a9a5a8980750f81e | [
"Apache-2.0"
] | 43 | 2017-02-02T17:41:21.000Z | 2022-02-21T14:50:02.000Z | Code/STATE CREATION/9 - Game State/DEFINITIONS.hpp | frankie111/Flappy-Bird-SFML-Clone | 03b5c04de9b96531683115d61ec90df78d40d8e6 | [
"Unlicense"
] | 1 | 2019-10-29T08:26:46.000Z | 2019-10-29T08:26:46.000Z | Code/STATE CREATION/9 - Game State/DEFINITIONS.hpp | frankie111/Flappy-Bird-SFML-Clone | 03b5c04de9b96531683115d61ec90df78d40d8e6 | [
"Unlicense"
] | 78 | 2017-05-24T00:00:32.000Z | 2021-11-27T08:59:59.000Z | #pragma once
#define SCREEN_WIDTH 768
#define SCREEN_HEIGHT 1024
#define SPLASH_STATE_SHOW_TIME 3.0
#define SPLASH_SCENE_BACKGROUND_FILEPATH "Resources/res/Splash Background.png"
#define MAIN_MENU_BACKGROUND_FILEPATH "Resources/res/sky.png"
#define GAME_BACKGROUND_FILEPATH "Resources/res/sky.png"
#define GAME_TITLE... | 31.923077 | 78 | 0.843373 | Moklok |
3e7c6908b4d1373f8c6f9b153c02de7a191d3185 | 441 | cpp | C++ | src/lib/zap/zap/layouts/cbuild.cpp | chybz/zap | ccc67d85def09faa962e44b9e36ca414207d4ec3 | [
"MIT"
] | null | null | null | src/lib/zap/zap/layouts/cbuild.cpp | chybz/zap | ccc67d85def09faa962e44b9e36ca414207d4ec3 | [
"MIT"
] | null | null | null | src/lib/zap/zap/layouts/cbuild.cpp | chybz/zap | ccc67d85def09faa962e44b9e36ca414207d4ec3 | [
"MIT"
] | null | null | null | #include <zap/layouts/cbuild.hpp>
namespace zap::layouts {
static zap::string_map cbuild_sub_dirs = {
{ "src", "sources" }, // base directory for all sub directories below
{ "inc", "include" },
{ "bin", "binaries" },
{ "lib", "libraries" },
{ "mod", "plugins" },
{ "tst", "tests" }
};
cbuild::... | 20.045455 | 73 | 0.609977 | chybz |
3e8021710a0df38f96ac4e1c0a3ef3ad8723e0f9 | 4,796 | cpp | C++ | folly/futures/test/BarrierTest.cpp | agenih/facebook | b3141b5d9af8de15dc2247fda265534183ca5f0d | [
"Apache-2.0"
] | 2 | 2021-06-29T13:42:22.000Z | 2021-09-06T10:57:34.000Z | folly/futures/test/BarrierTest.cpp | agenih/facebook | b3141b5d9af8de15dc2247fda265534183ca5f0d | [
"Apache-2.0"
] | null | null | null | folly/futures/test/BarrierTest.cpp | agenih/facebook | b3141b5d9af8de15dc2247fda265534183ca5f0d | [
"Apache-2.0"
] | 5 | 2021-06-29T13:42:26.000Z | 2022-02-08T02:41:34.000Z | /*
* Copyright 2015-present Facebook, 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 a... | 27.563218 | 78 | 0.626772 | agenih |
3e8381b3759e54824b6a21c1506a2c0c6f9b3273 | 1,526 | cpp | C++ | chapter9/t9.22.cpp | xflcx1991/c_plus_plus_primer_exercise | 3904fc936c14c6959968eb6d681f3151a72ccc44 | [
"MulanPSL-1.0"
] | 1 | 2020-02-24T07:54:44.000Z | 2020-02-24T07:54:44.000Z | chapter9/t9.22.cpp | xflcx1991/c_plus_plus_primer_exercise | 3904fc936c14c6959968eb6d681f3151a72ccc44 | [
"MulanPSL-1.0"
] | null | null | null | chapter9/t9.22.cpp | xflcx1991/c_plus_plus_primer_exercise | 3904fc936c14c6959968eb6d681f3151a72ccc44 | [
"MulanPSL-1.0"
] | null | null | null | /*************************************************************************************
* Copyright (c) 2019 xffish
* c_plus_plus_primer_exercise is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://lic... | 29.921569 | 86 | 0.558322 | xflcx1991 |
3e891fd6706112f0bc92fb9de968715f48fe85de | 1,922 | cpp | C++ | src/RcppKyTea.cpp | paithiov909/RcppKyTea | eb3958bea4afd41cffad1003ab5d7c75a23f593e | [
"Apache-2.0"
] | null | null | null | src/RcppKyTea.cpp | paithiov909/RcppKyTea | eb3958bea4afd41cffad1003ab5d7c75a23f593e | [
"Apache-2.0"
] | null | null | null | src/RcppKyTea.cpp | paithiov909/RcppKyTea | eb3958bea4afd41cffad1003ab5d7c75a23f593e | [
"Apache-2.0"
] | null | null | null | // [[Rcpp::plugins(cpp11)]]
// [[Rcpp::depends(RcppThread)]]
#define R_NO_REMAP
#define RCPPTHREAD_OVERRIDE_THREAD 1
#define HAVE_TR1_UNORDERED_MAP
#define KYTEA_SAFE
#include <Rcpp.h>
#include <RcppThread.h>
// #include <RcppParallel.h>
#include "kytea/kytea.h"
#include "kytea/kytea-struct.h"
#include "kytea/string-u... | 30.03125 | 84 | 0.631634 | paithiov909 |
3e8e84fc8b2cdc4fac9131b30033694e88c65397 | 2,361 | cpp | C++ | test/transport/test-socket.cpp | bitboom/rmi | 12e72cfae704780e59214c19fb5c15697f1eda21 | [
"Apache-2.0"
] | 1 | 2020-09-16T08:32:21.000Z | 2020-09-16T08:32:21.000Z | test/transport/test-socket.cpp | bitboom/rmi | 12e72cfae704780e59214c19fb5c15697f1eda21 | [
"Apache-2.0"
] | null | null | null | test/transport/test-socket.cpp | bitboom/rmi | 12e72cfae704780e59214c19fb5c15697f1eda21 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2018 Samsung Electronics Co., Ltd 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
*
* ... | 22.065421 | 76 | 0.689962 | bitboom |
3e9073f78243e0da5f70256a9b8bd7bd4df984db | 1,041 | cpp | C++ | labs/memory_bound/swmem_prefetch_1/validate.cpp | dendibakh/perf-ninja | 9245372aab96fdc9cfa01b60986b6f806abdc0b2 | [
"CC-BY-3.0"
] | 472 | 2021-07-20T07:12:13.000Z | 2022-03-31T08:51:32.000Z | labs/memory_bound/swmem_prefetch_1/validate.cpp | dendibakh/perf-ninja | 9245372aab96fdc9cfa01b60986b6f806abdc0b2 | [
"CC-BY-3.0"
] | 24 | 2021-07-28T22:30:43.000Z | 2022-03-30T08:51:14.000Z | labs/memory_bound/swmem_prefetch_1/validate.cpp | dendibakh/perf-ninja | 9245372aab96fdc9cfa01b60986b6f806abdc0b2 | [
"CC-BY-3.0"
] | 45 | 2021-07-26T00:51:56.000Z | 2022-03-28T02:47:16.000Z |
#include "solution.hpp"
#include <iostream>
#include <memory>
static int getSumOfDigits(int n) {
int sum = 0;
while (n != 0) {
sum = sum + n % 10;
n = n / 10;
}
return sum;
}
static int original_solution(const hash_map_t *hash_map,
const std::vector<int> &lookups) {
int... | 22.630435 | 75 | 0.622478 | dendibakh |
3e916ab3afa618ad129687af7812dab6dc53b6a4 | 1,069 | cpp | C++ | src/ParticleSystem.cpp | Alissa0101/CI628 | f3401e9ea6a90d59572c4f079d27461148aab075 | [
"MIT"
] | null | null | null | src/ParticleSystem.cpp | Alissa0101/CI628 | f3401e9ea6a90d59572c4f079d27461148aab075 | [
"MIT"
] | null | null | null | src/ParticleSystem.cpp | Alissa0101/CI628 | f3401e9ea6a90d59572c4f079d27461148aab075 | [
"MIT"
] | null | null | null | #include "ParticleSystem.h"
void ParticleSystem::init(int _amount, float _x, float _y){
amount = _amount;
for (int i = 0; i < _amount; i++) {
Particle* particle = new Particle();
particle->x = _x + (rand() * 500 / RAND_MAX * 1) / 2;
particle->y = _y + (rand() * 500 / RAND_MAX * 1) / 2;
particles.push_back(pa... | 24.860465 | 78 | 0.625819 | Alissa0101 |
3e9258bd253912c043c919417199845b6d819ecc | 881 | cpp | C++ | src/index/tools/forward_to_libsvm.cpp | Lolik111/meta | c7019401185cdfa15e1193aad821894c35a83e3f | [
"MIT"
] | 615 | 2015-01-31T17:14:03.000Z | 2022-03-27T03:03:02.000Z | src/index/tools/forward_to_libsvm.cpp | Lolik111/meta | c7019401185cdfa15e1193aad821894c35a83e3f | [
"MIT"
] | 167 | 2015-01-20T17:48:16.000Z | 2021-12-20T00:15:29.000Z | src/index/tools/forward_to_libsvm.cpp | Lolik111/meta | c7019401185cdfa15e1193aad821894c35a83e3f | [
"MIT"
] | 264 | 2015-01-30T00:08:01.000Z | 2022-03-02T17:19:11.000Z | /**
* @file forward_to_libsvm.cpp
* @author Chase Geigle
*/
#include <iostream>
#include "meta/index/forward_index.h"
#include "meta/logging/logger.h"
#include "meta/util/progress.h"
using namespace meta;
int main(int argc, char** argv)
{
if (argc != 3)
{
std::cerr << "Usage:\t" << argv[0] << " co... | 22.589744 | 72 | 0.54143 | Lolik111 |
3e9331a2953592e38dcd216393251ffc99dd8440 | 41,407 | cpp | C++ | compute/test/test_copy_type_mismatch.cpp | atksh/mimalloc-lgb | add692a5ef9a91cad0bc78fa18a051d43a8c930e | [
"MIT"
] | null | null | null | compute/test/test_copy_type_mismatch.cpp | atksh/mimalloc-lgb | add692a5ef9a91cad0bc78fa18a051d43a8c930e | [
"MIT"
] | null | null | null | compute/test/test_copy_type_mismatch.cpp | atksh/mimalloc-lgb | add692a5ef9a91cad0bc78fa18a051d43a8c930e | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------//
// Copyright (c) 2016 Jakub Szuppe <j.szuppe@gmail.com>
//
// 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
//
// See http://boostorg.gi... | 31.440395 | 89 | 0.644819 | atksh |
3e96b77e96f760928f2ca55498f2a970925b1ec8 | 3,321 | hpp | C++ | src/renderer/tvg_renderer.hpp | JSUYA/rive-tizen | f62cf0bc8a60bc4293855150e926163d446ac57e | [
"MIT"
] | null | null | null | src/renderer/tvg_renderer.hpp | JSUYA/rive-tizen | f62cf0bc8a60bc4293855150e926163d446ac57e | [
"MIT"
] | null | null | null | src/renderer/tvg_renderer.hpp | JSUYA/rive-tizen | f62cf0bc8a60bc4293855150e926163d446ac57e | [
"MIT"
] | null | null | null | #ifndef _RIVE_THORVG_RENDERER_HPP_
#define _RIVE_THORVG_RENDERER_HPP_
#include <thorvg.h>
#include <vector>
#include "renderer.hpp"
using namespace tvg;
using namespace std;
namespace rive
{
struct TvgPaint
{
uint8_t color[4];
float thickness = 1.0f;
tvg::Fill *gradientFill = nullptr;
t... | 26.782258 | 86 | 0.65131 | JSUYA |
3e9a7636c39afc564cf8a5c6643edaca026733cb | 1,274 | cc | C++ | thirdparty/aria2/test/GZipDecoderTest.cc | deltegic/deltegic | 9b4f3a505a6842db52efbe850150afbab3af5e2f | [
"BSD-3-Clause"
] | null | null | null | thirdparty/aria2/test/GZipDecoderTest.cc | deltegic/deltegic | 9b4f3a505a6842db52efbe850150afbab3af5e2f | [
"BSD-3-Clause"
] | 2 | 2021-04-08T08:46:23.000Z | 2021-04-08T08:57:58.000Z | thirdparty/aria2/test/GZipDecoderTest.cc | deltegic/deltegic | 9b4f3a505a6842db52efbe850150afbab3af5e2f | [
"BSD-3-Clause"
] | null | null | null | #include "GZipDecoder.h"
#include <iostream>
#include <fstream>
#include <cppunit/extensions/HelperMacros.h>
#include "TestUtil.h"
#include "Exception.h"
#include "util.h"
#include "MessageDigest.h"
namespace aria2 {
class GZipDecoderTest : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(GZipDecoderTest);
CP... | 21.59322 | 79 | 0.690738 | deltegic |
3e9acc08f3ae771c818b17deb068751f1861ed0a | 2,687 | cpp | C++ | gstreaming/source/rtsp/server/src/rtsp_server.cpp | cbachhuber/telecarla | 44546341834ba852073f35ab02ab4ab0b040cb61 | [
"MIT"
] | null | null | null | gstreaming/source/rtsp/server/src/rtsp_server.cpp | cbachhuber/telecarla | 44546341834ba852073f35ab02ab4ab0b040cb61 | [
"MIT"
] | null | null | null | gstreaming/source/rtsp/server/src/rtsp_server.cpp | cbachhuber/telecarla | 44546341834ba852073f35ab02ab4ab0b040cb61 | [
"MIT"
] | null | null | null | #include "rtsp_server.h"
#include "gst_rtsp_server_util.h"
using namespace lmt::rtsp::server;
using namespace lmt::rtsp::common;
RTSPState RTSPServer::start(int serverPort, const std::string& src)
{
if (state_ == RTSPState::stopped)
{
state_ = RTSPState::starting;
server_.reset(gst_rtsp_serve... | 32.768293 | 113 | 0.681057 | cbachhuber |
3e9b90a1836517b688792cf980d70ec16e64defa | 1,176 | cpp | C++ | Desouky/Easy/Treasure hunt.cpp | AhmedMostafa7474/Codingame-Solutions | da696a095c143c5d216bc06f6689ad1c0e25d0e0 | [
"MIT"
] | 1 | 2022-03-16T08:56:31.000Z | 2022-03-16T08:56:31.000Z | Desouky/Easy/Treasure hunt.cpp | AhmedMostafa7474/Codingame-Solutions | da696a095c143c5d216bc06f6689ad1c0e25d0e0 | [
"MIT"
] | 2 | 2022-03-17T11:27:14.000Z | 2022-03-18T07:41:00.000Z | Desouky/Easy/Treasure hunt.cpp | AhmedMostafa7474/Codingame-Solutions | da696a095c143c5d216bc06f6689ad1c0e25d0e0 | [
"MIT"
] | 6 | 2022-03-13T19:56:11.000Z | 2022-03-17T12:08:22.000Z | #include <iostream>
#include <string>
#include <vector>
#include <bits/stdc++.h>
using namespace std;
int h;
int w;
string grid[105];
bool vis[105][105];
bool valid(int r, int c){
return r >= 0 and r < h and c >= 0 and c < w and !vis[r][c] and grid[r][c] != '#';
}
int ans = 0;
void solve(int r, int c, int total){
... | 19.932203 | 86 | 0.456633 | AhmedMostafa7474 |
3e9bfec8dae57e761ce0592af3937e493a5fa433 | 7,158 | cpp | C++ | libraries/render/src/render/ResampleTask.cpp | raveenajain/hifi-1 | b95586239a08da8b0d61640119aad672099c107c | [
"Apache-2.0"
] | null | null | null | libraries/render/src/render/ResampleTask.cpp | raveenajain/hifi-1 | b95586239a08da8b0d61640119aad672099c107c | [
"Apache-2.0"
] | null | null | null | libraries/render/src/render/ResampleTask.cpp | raveenajain/hifi-1 | b95586239a08da8b0d61640119aad672099c107c | [
"Apache-2.0"
] | null | null | null | //
// ResampleTask.cpp
// render/src/render
//
// Various to upsample or downsample textures into framebuffers.
//
// Created by Olivier Prat on 10/09/17.
// Copyright 2017 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/l... | 40.213483 | 203 | 0.706901 | raveenajain |
3ea1059fd88d76adcc7f047aab2216e59a63c15c | 2,575 | cpp | C++ | shared/liboxide/signalhandler.cpp | Eeems-Org/oxide | d3bfa47e60bf311feb7768234dfe95a15adeb9da | [
"MIT"
] | 18 | 2022-01-11T17:24:50.000Z | 2022-03-30T04:35:25.000Z | shared/liboxide/signalhandler.cpp | Eeems-Org/oxide | d3bfa47e60bf311feb7768234dfe95a15adeb9da | [
"MIT"
] | 21 | 2022-01-07T19:20:04.000Z | 2022-03-24T14:32:28.000Z | shared/liboxide/signalhandler.cpp | Eeems-Org/oxide | d3bfa47e60bf311feb7768234dfe95a15adeb9da | [
"MIT"
] | 2 | 2022-01-15T16:45:34.000Z | 2022-03-01T22:37:48.000Z | #include "signalhandler.h"
#include <QCoreApplication>
#include <signal.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>
static int sigUsr1Fd[2];
static int sigUsr2Fd[2];
namespace Oxide {
int SignalHandler::setup_unix_signal_handlers(){
if(!signalHandler){
new SignalHandle... | 30.294118 | 112 | 0.607379 | Eeems-Org |
3ea6455330e40eb7c0d5032535d70791ad72bab9 | 1,500 | hpp | C++ | nheqminer/3rdparty/boost/python/detail/destroy.hpp | EuroLine/nheqminer | 81c7ef889bb502d16f7d1e7ef020d0592f8af945 | [
"MIT"
] | 1,210 | 2020-08-18T07:57:36.000Z | 2022-03-31T15:06:05.000Z | ios/Pods/boost-for-react-native/boost/python/detail/destroy.hpp | c7yrus/alyson-v3 | 5ad95a8f782f5f5d2fd543d44ca6a8b093395965 | [
"Apache-2.0"
] | 1,074 | 2015-08-25T15:08:14.000Z | 2019-07-22T20:28:39.000Z | ios/Pods/boost-for-react-native/boost/python/detail/destroy.hpp | c7yrus/alyson-v3 | 5ad95a8f782f5f5d2fd543d44ca6a8b093395965 | [
"Apache-2.0"
] | 534 | 2016-10-20T21:00:00.000Z | 2022-03-29T10:02:27.000Z | // Copyright David Abrahams 2002.
// 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)
#ifndef DESTROY_DWA2002221_HPP
# define DESTROY_DWA2002221_HPP
# include <boost/type_traits/is_array.hpp>
# include <boost/detail... | 23.4375 | 80 | 0.638 | EuroLine |
3ea887a30e36ddd4a174db272d16b657c1e7567f | 11,856 | cpp | C++ | src/optimizer/optimizer.cpp | xhad1234/peloton | 60dea12ed528bc8873b1c43d1eca841a5d76ee44 | [
"Apache-2.0"
] | 1 | 2017-08-08T12:10:07.000Z | 2017-08-08T12:10:07.000Z | src/optimizer/optimizer.cpp | xhad1234/peloton | 60dea12ed528bc8873b1c43d1eca841a5d76ee44 | [
"Apache-2.0"
] | null | null | null | src/optimizer/optimizer.cpp | xhad1234/peloton | 60dea12ed528bc8873b1c43d1eca841a5d76ee44 | [
"Apache-2.0"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// Peloton
//
// optimizer.cpp
//
// Identification: src/optimizer/optimizer.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===----------------------------------------------------... | 36.48 | 80 | 0.681765 | xhad1234 |
3ea9a59b3db363f5257de3cff64c3d7210398ad1 | 14,503 | cc | C++ | source/blender/blenlib/tests/BLI_set_test.cc | Smittyvb/blender | 0e92be7b65a8bb15dd9b07400f250c0958f10589 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | source/blender/blenlib/tests/BLI_set_test.cc | Smittyvb/blender | 0e92be7b65a8bb15dd9b07400f250c0958f10589 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | source/blender/blenlib/tests/BLI_set_test.cc | Smittyvb/blender | 0e92be7b65a8bb15dd9b07400f250c0958f10589 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | /* Apache License, Version 2.0 */
#include <set>
#include <unordered_set>
#include "BLI_exception_safety_test_utils.hh"
#include "BLI_ghash.h"
#include "BLI_rand.h"
#include "BLI_set.hh"
#include "BLI_strict_flags.h"
#include "BLI_timeit.hh"
#include "BLI_vector.hh"
#include "testing/testing.h"
namespace blender {
n... | 23.167732 | 102 | 0.65283 | Smittyvb |
3eab1d54b1b7739bdcbb0ddb5c1a87a3520d412a | 2,692 | cpp | C++ | raftcore/raftlog.cpp | loading86/dugong | 3779d73c2ca881eb16a54c9eb00b0ef0456c36ca | [
"BSD-2-Clause"
] | null | null | null | raftcore/raftlog.cpp | loading86/dugong | 3779d73c2ca881eb16a54c9eb00b0ef0456c36ca | [
"BSD-2-Clause"
] | null | null | null | raftcore/raftlog.cpp | loading86/dugong | 3779d73c2ca881eb16a54c9eb00b0ef0456c36ca | [
"BSD-2-Clause"
] | null | null | null | #include "raftlog.h"
namespace raftcore
{
RaftLog::RaftLog(std::shared_ptr<MemoryStorage> storage, std::shared_ptr<Logger> logger)
{
m_storage = storage;
m_logger = logger;
m_volatile_state = std::shared_ptr<VolatileState>(new VolatileState(logger));
uint64_t first_inde... | 27.469388 | 114 | 0.540862 | loading86 |
3eabfd55021d73c85406dcf55d4406631ecf981f | 3,550 | cpp | C++ | libhttpserver/HttpServer.cpp | c3358/httpsys | e063d575aae56b07de68f5c9b36b535e9cbb5ede | [
"Apache-2.0"
] | 1 | 2021-01-27T16:27:51.000Z | 2021-01-27T16:27:51.000Z | libhttpserver/HttpServer.cpp | c3358/httpsys | e063d575aae56b07de68f5c9b36b535e9cbb5ede | [
"Apache-2.0"
] | null | null | null | libhttpserver/HttpServer.cpp | c3358/httpsys | e063d575aae56b07de68f5c9b36b535e9cbb5ede | [
"Apache-2.0"
] | null | null | null | #include "HttpServer.h"
#include "ThreadContext.h"
#include <iostream>
#include <functional>
#include <memory>
#include <Utils.h>
HttpServer::HttpServer(
uint32_t numThreads
)
: m_hReqQueue(NULL),
m_pThreadPool(std::make_unique<httpsys::ThreadPool<ThreadContext>>(numThreads))
{
std::cout << "Initial... | 22.327044 | 89 | 0.655775 | c3358 |
3eb18f68f3900d6ffdaf1e4abc02b4281582b149 | 647 | cpp | C++ | mesh/plan.cpp | Baloululu/ParticulesSystem | c91b7733ce3eeb3e1078de190ec1124a56582f9f | [
"MIT"
] | null | null | null | mesh/plan.cpp | Baloululu/ParticulesSystem | c91b7733ce3eeb3e1078de190ec1124a56582f9f | [
"MIT"
] | null | null | null | mesh/plan.cpp | Baloululu/ParticulesSystem | c91b7733ce3eeb3e1078de190ec1124a56582f9f | [
"MIT"
] | null | null | null | #include "plan.h"
Plan::Plan() : Mesh()
{
nbVertices = 4;
nbIndices = 6;
vertices.push_back(VertexData {QVector3D(-1.0f, -1.0f, 0.0f), QVector4D(0.0f, 0.0f, 0.0f, 1.0f)} );
vertices.push_back(VertexData {QVector3D(1.0f, -1.0f, 0.0f), QVector4D(0.0f, 0.0f, 0.0f, 1.0f)} );
vertices.push_back(VertexData {QVector3D(... | 29.409091 | 100 | 0.659969 | Baloululu |
3eb20711b5a82b30e5555bc17e0ea226c4f9158f | 166 | cc | C++ | src/TMPL/test/tstDemo.cc | wawiesel/BOTG-SkeletonRepo | 27b99d7456fba1f23d91fab84762f5227f86131e | [
"MIT"
] | 1 | 2017-03-20T02:56:41.000Z | 2017-03-20T02:56:41.000Z | src/TMPL/test/tstDemo.cc | wawiesel/BOTG-SkeletonRepo | 27b99d7456fba1f23d91fab84762f5227f86131e | [
"MIT"
] | null | null | null | src/TMPL/test/tstDemo.cc | wawiesel/BOTG-SkeletonRepo | 27b99d7456fba1f23d91fab84762f5227f86131e | [
"MIT"
] | null | null | null | #include "TMPL/Demo.hh"
#include "t123/TestFile.hh"
namespace TMPL
{
namespace test
{
TEST( Demo, Basic )
{
EXPECT_EQ( 10, cxx_function(5) );
}
}//test
}//TMPL
| 11.066667 | 37 | 0.656627 | wawiesel |
3eb2ae07475bd19b3d8dcb9057246a43f85a1c7d | 1,261 | cpp | C++ | t1_math/program.cpp | depthBuffer/T1- | 9fdebf931e8dd5edaa7613cc0dd435f8f00106e4 | [
"Apache-2.0"
] | null | null | null | t1_math/program.cpp | depthBuffer/T1- | 9fdebf931e8dd5edaa7613cc0dd435f8f00106e4 | [
"Apache-2.0"
] | null | null | null | t1_math/program.cpp | depthBuffer/T1- | 9fdebf931e8dd5edaa7613cc0dd435f8f00106e4 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include "test/test_vector.h"
#include "test/test_matrix.h"
#include "test/test_operations.h"
#include "test/test_common.h"
#include "test/test_transformations.h"
// todo: check googletest for testing.
bool TEST_SUCCESS = true;
#define TEST(name) \
if (name()) { std::cout << "|O| SUCCESS: "#name... | 25.734694 | 92 | 0.66138 | depthBuffer |
3eb88a500b37d6d747004620ef22a76de60007fd | 307,527 | cpp | C++ | RSDKv4/Drawing.cpp | 0xR00KIE/Decomp-for-S1F | c8ffedd211f25bb46803f9d637baf1b1fc635db0 | [
"Unlicense"
] | 2 | 2022-01-15T05:05:39.000Z | 2022-03-19T07:36:31.000Z | RSDKv4/Drawing.cpp | LittlePlanetCD/Decomp-for-S1F | c8ffedd211f25bb46803f9d637baf1b1fc635db0 | [
"Unlicense"
] | null | null | null | RSDKv4/Drawing.cpp | LittlePlanetCD/Decomp-for-S1F | c8ffedd211f25bb46803f9d637baf1b1fc635db0 | [
"Unlicense"
] | null | null | null | #include "RetroEngine.hpp"
ushort blendLookupTable[BLENDTABLE_SIZE];
ushort subtractLookupTable[BLENDTABLE_SIZE];
ushort tintLookupTable[TINTTABLE_SIZE];
int SCREEN_XSIZE = 426;
int SCREEN_CENTERX = 426 / 2;
int touchWidth = SCREEN_XSIZE;
int touchHeight = SCREEN_YSIZE;
DrawListEntry drawListEntries[DRAWLAYER_CO... | 45.357965 | 150 | 0.500844 | 0xR00KIE |
3ebcc01edad99381289f8cf0fce2666bd9a70fa5 | 1,932 | cpp | C++ | components/rollkit/src/session_manager.cpp | NeilBetham/rollk | e82026397c892b5f0d3b53891d5efa51d941fd9d | [
"MIT"
] | 4 | 2018-06-12T21:48:01.000Z | 2021-04-01T15:18:50.000Z | components/rollkit/src/session_manager.cpp | NeilBetham/rollk | e82026397c892b5f0d3b53891d5efa51d941fd9d | [
"MIT"
] | null | null | null | components/rollkit/src/session_manager.cpp | NeilBetham/rollk | e82026397c892b5f0d3b53891d5efa51d941fd9d | [
"MIT"
] | 1 | 2018-08-18T13:05:31.000Z | 2018-08-18T13:05:31.000Z | #include "rollkit/session_manager.hpp"
#include <string>
#include <cstring>
#include <utility>
#include <functional>
#include <esp_log.h>
#include "rollkit/request.hpp"
using namespace std;
namespace rollkit {
SessionManager::SessionManager(interfaces::ISessionDelegate* delegate) : _session_delegate(delegate) {}
... | 25.421053 | 110 | 0.65942 | NeilBetham |
3ebde6284f9fa389e0896782e2c4b0b5ee1bbe47 | 7,115 | cpp | C++ | calculus/if.cpp | lilissun/spa | d44974c51017691ff4ada29c212c54bb0ee931c2 | [
"Apache-2.0"
] | null | null | null | calculus/if.cpp | lilissun/spa | d44974c51017691ff4ada29c212c54bb0ee931c2 | [
"Apache-2.0"
] | null | null | null | calculus/if.cpp | lilissun/spa | d44974c51017691ff4ada29c212c54bb0ee931c2 | [
"Apache-2.0"
] | 1 | 2020-04-24T02:28:32.000Z | 2020-04-24T02:28:32.000Z | //
// if.cpp
// calculus
//
// Created by Li Li on 9/5/15.
// Copyright (c) 2015 Lilissun. All rights reserved.
//
#include "if.h"
#include <sstream>
#include "common/iostream.h"
#include "common/debug.h"
#include "symbolic/term.h"
#include "symbolic/function.h"
#include "symbolic/tuple.h"
#include "symbolic/gua... | 48.401361 | 232 | 0.568096 | lilissun |
3ebe87f68766be6b33877ebc316614bf278c657c | 1,029 | cpp | C++ | TorentMakerConsoleApplication/Geometry/QuadStripFltIdx.cpp | sssr33/TorrentMaker | 75dc4b7b45c3c277342470f705e4a35264f942f7 | [
"MIT"
] | null | null | null | TorentMakerConsoleApplication/Geometry/QuadStripFltIdx.cpp | sssr33/TorrentMaker | 75dc4b7b45c3c277342470f705e4a35264f942f7 | [
"MIT"
] | null | null | null | TorentMakerConsoleApplication/Geometry/QuadStripFltIdx.cpp | sssr33/TorrentMaker | 75dc4b7b45c3c277342470f705e4a35264f942f7 | [
"MIT"
] | null | null | null | #include "QuadStripFltIdx.h"
QuadStripFltIdx::QuadStripFltIdx(ID3D11Device *d3dDev) {
HRESULT hr = S_OK;
float idx[] = { 0, 1, 2, 3 };
D3D11_BUFFER_DESC bufDesc;
D3D11_SUBRESOURCE_DATA subResData;
bufDesc.ByteWidth = sizeof(idx);
bufDesc.Usage = D3D11_USAGE_IMMUTABLE;
bufDesc.BindFlags = D3D11_BIND_VERTEX_BUFF... | 27.810811 | 91 | 0.773567 | sssr33 |
3ebecb308309f9ce85e2a139966937a055cf05f6 | 2,005 | cpp | C++ | DeepSpace/src/main/cpp/commands/ElevatorCalibrate.cpp | NorthernForce/DeepSpace | b8446f0fb732e7df030970332574e13d94e79df9 | [
"MIT"
] | 3 | 2019-01-08T00:09:56.000Z | 2020-03-12T03:05:20.000Z | DeepSpace/src/main/cpp/commands/ElevatorCalibrate.cpp | NorthernForce/DeepSpace | b8446f0fb732e7df030970332574e13d94e79df9 | [
"MIT"
] | 12 | 2019-01-17T00:33:54.000Z | 2019-06-27T01:56:18.000Z | DeepSpace/src/main/cpp/commands/ElevatorCalibrate.cpp | NorthernForce/DeepSpace | b8446f0fb732e7df030970332574e13d94e79df9 | [
"MIT"
] | null | null | null | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. 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... | 35.175439 | 80 | 0.64788 | NorthernForce |
3ebfa308b44bd8a4d3895e4629214ed2b078eeb7 | 4,775 | hh | C++ | src/dev/i2cbus.hh | alianmohammad/pd-gem5-latest | cfcf6aa004c168d6abdfedcd595de4b30f5e88ee | [
"BSD-3-Clause"
] | 1 | 2019-01-26T10:34:02.000Z | 2019-01-26T10:34:02.000Z | src/dev/i2cbus.hh | alianmohammad/pd-gem5-latest | cfcf6aa004c168d6abdfedcd595de4b30f5e88ee | [
"BSD-3-Clause"
] | null | null | null | src/dev/i2cbus.hh | alianmohammad/pd-gem5-latest | cfcf6aa004c168d6abdfedcd595de4b30f5e88ee | [
"BSD-3-Clause"
] | 1 | 2021-07-06T10:40:34.000Z | 2021-07-06T10:40:34.000Z | /*
* Copyright (c) 2012 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the funct... | 31.006494 | 78 | 0.693194 | alianmohammad |
3ec63a1fde71f47b2fb21825c682d2e1656e24ee | 907 | hpp | C++ | TGEngine/util/Math.hpp | ThePixly/TGEngine | aff5d5f42c3094dcc37253f4a3f5e09db560a4eb | [
"Apache-2.0"
] | null | null | null | TGEngine/util/Math.hpp | ThePixly/TGEngine | aff5d5f42c3094dcc37253f4a3f5e09db560a4eb | [
"Apache-2.0"
] | null | null | null | TGEngine/util/Math.hpp | ThePixly/TGEngine | aff5d5f42c3094dcc37253f4a3f5e09db560a4eb | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "Annotations.hpp"
#include <cstdint>
#include <cmath>
#include "glm/glm.hpp"
#include "TGVertex.hpp"
#define PI 3.14159265358979323846
#define PIx2 6.28318530717958647692
#define SQRT_PIx2 2.506628274631
#define EULER 2.71828182845904523536
namespace math {
SINCE(0, 0, 4)
TGVertex midpoint(T... | 21.093023 | 81 | 0.696803 | ThePixly |
3ec9ff88e59abe6a310b2da6722b4dfcd01dcd8f | 10,043 | cxx | C++ | proto/modbuscpp.cxx | trotill/11parts_CPP | 53a69d516fdcb5c92b591b5dadc49dfdd2a3b26b | [
"MIT"
] | null | null | null | proto/modbuscpp.cxx | trotill/11parts_CPP | 53a69d516fdcb5c92b591b5dadc49dfdd2a3b26b | [
"MIT"
] | null | null | null | proto/modbuscpp.cxx | trotill/11parts_CPP | 53a69d516fdcb5c92b591b5dadc49dfdd2a3b26b | [
"MIT"
] | null | null | null | /*
* modbuscpp.cxx
*
* Created on: 14.11.2018
* Author: root
*/
#include "modbuscpp.h"
eErrorTp modbuscpp_client::ReadHoldingReg(u8 slave_addr,u32 addr,u32 countItem,buffer & buf,u8 try_count){
buf.create(countItem*2);
eErrorTp err= Read(slave_addr,addr,countItem,(u16*)buf.p(),MBUS_REGISTER,try_count);
... | 26.852941 | 115 | 0.683859 | trotill |
a793348f214ca91b580846531917c1fe86847081 | 643 | hpp | C++ | src/org/apache/poi/poifs/filesystem/Entry.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/poifs/filesystem/Entry.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/poifs/filesystem/Entry.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/poifs/filesystem/Entry.java
#pragma once
#include <fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <org/apache/poi/poifs/filesystem/fwd-POI.hpp>
#include <java/lang/Object.hpp>
struct poi::poifs::filesystem::Entry
: public virtual ::java::lang::Object
{
virtu... | 27.956522 | 70 | 0.681182 | pebble2015 |
a794963a552a3ead31fa6f4b00eb7fda25e2cf2a | 1,155 | cpp | C++ | src/SoundManager.cpp | StianAndreOlsen/ColorVario | c10dbf13dcef09121bf1817a6d07606ef5a89da4 | [
"MIT"
] | 1 | 2021-05-05T21:37:55.000Z | 2021-05-05T21:37:55.000Z | src/SoundManager.cpp | StianAndreOlsen/ColorVario | c10dbf13dcef09121bf1817a6d07606ef5a89da4 | [
"MIT"
] | null | null | null | src/SoundManager.cpp | StianAndreOlsen/ColorVario | c10dbf13dcef09121bf1817a6d07606ef5a89da4 | [
"MIT"
] | 4 | 2019-11-06T06:25:47.000Z | 2021-05-05T21:39:12.000Z | #include "SoundManager.h"
#include "dlog.h"
#include "TizenError.h"
Kystsoft::SoundManager::~SoundManager() noexcept
{
try { setVolume(initialVolume); }
catch (std::exception& e) { dlog(DLOG_ERROR) << e.what(); }
}
double Kystsoft::SoundManager::volume() const
{
int ivolume = 0;
int error = sound_ma... | 27.5 | 66 | 0.707359 | StianAndreOlsen |
a795e580fe7c436cfa6e66c50ccf996b6e7590d7 | 709 | cpp | C++ | src/MintFunction.cpp | ice-bit/Mint | 20622a0acc278cf732f7e8bfa293a6ca2af265e0 | [
"MIT"
] | null | null | null | src/MintFunction.cpp | ice-bit/Mint | 20622a0acc278cf732f7e8bfa293a6ca2af265e0 | [
"MIT"
] | null | null | null | src/MintFunction.cpp | ice-bit/Mint | 20622a0acc278cf732f7e8bfa293a6ca2af265e0 | [
"MIT"
] | 1 | 2022-03-26T13:29:18.000Z | 2022-03-26T13:29:18.000Z | #include "MintFunction.h"
#include "Environment.h"
#include "Interpreter.h"
std::string MintFunction::to_string() {
return std::string("<fn " + declaration->name.lexeme + ">");
}
unsigned short MintFunction::arity() {
return declaration->params.size();
}
std::any MintFunction::call(Interpreter &interpreter, ... | 25.321429 | 88 | 0.667137 | ice-bit |
a79708b48b309ba70208147c72f08cf2057126e7 | 10,561 | cpp | C++ | src/mongo/s/write_ops/batched_insert_request.cpp | fjonath1/mongodb-ros-osx | 31a58cab426b68ce85ef231200ff45d4bd691d32 | [
"Apache-2.0"
] | null | null | null | src/mongo/s/write_ops/batched_insert_request.cpp | fjonath1/mongodb-ros-osx | 31a58cab426b68ce85ef231200ff45d4bd691d32 | [
"Apache-2.0"
] | null | null | null | src/mongo/s/write_ops/batched_insert_request.cpp | fjonath1/mongodb-ros-osx | 31a58cab426b68ce85ef231200ff45d4bd691d32 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2013 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful... | 31.061765 | 92 | 0.646908 | fjonath1 |
a79857f6640f9bccb3d865e51d1730d80a9300d2 | 15,716 | cpp | C++ | src/ves/Testing/TestDrawPlane.cpp | Eduardop/VES | 1d4163989a734f273d46af3b2f88339121d2bfee | [
"Apache-2.0"
] | 3 | 2016-07-21T19:48:47.000Z | 2022-03-16T11:19:07.000Z | src/ves/Testing/TestDrawPlane.cpp | Eduardop/VES | 1d4163989a734f273d46af3b2f88339121d2bfee | [
"Apache-2.0"
] | 1 | 2021-04-07T08:05:47.000Z | 2021-04-07T08:05:47.000Z | src/ves/Testing/TestDrawPlane.cpp | Eduardop/VES | 1d4163989a734f273d46af3b2f88339121d2bfee | [
"Apache-2.0"
] | 2 | 2016-03-16T15:36:54.000Z | 2018-01-07T07:23:30.000Z | /*========================================================================
VES --- VTK OpenGL ES Rendering Toolkit
http://www.kitware.com/ves
Copyright 2011 Kitware, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Y... | 27.57193 | 128 | 0.63833 | Eduardop |
a79c04e33fcd9f4875515c9d5c272e2713de807b | 2,647 | cpp | C++ | src/lib/codegen/builtin/datatypes.cpp | foozea/isana-lang | 14f931552d9416005a95a8e7fd76682b8b7dfa74 | [
"BSD-3-Clause"
] | 1 | 2015-11-07T11:55:50.000Z | 2015-11-07T11:55:50.000Z | src/lib/codegen/builtin/datatypes.cpp | foozea/isana-lang | 14f931552d9416005a95a8e7fd76682b8b7dfa74 | [
"BSD-3-Clause"
] | null | null | null | src/lib/codegen/builtin/datatypes.cpp | foozea/isana-lang | 14f931552d9416005a95a8e7fd76682b8b7dfa74 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2012-, Tetsuo Fujii
* 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 list o... | 31.891566 | 78 | 0.715905 | foozea |
a79de9153ef882d450f75595f2691ad08c0a3729 | 4,032 | cpp | C++ | modules/galaxy/tasks/milkywaypointsconversiontask.cpp | hedbergj/OpenSpace | 0125fb7a3be4d6e6529781522f5d9e9a826241fb | [
"MIT"
] | null | null | null | modules/galaxy/tasks/milkywaypointsconversiontask.cpp | hedbergj/OpenSpace | 0125fb7a3be4d6e6529781522f5d9e9a826241fb | [
"MIT"
] | null | null | null | modules/galaxy/tasks/milkywaypointsconversiontask.cpp | hedbergj/OpenSpace | 0125fb7a3be4d6e6529781522f5d9e9a826241fb | [
"MIT"
] | null | null | null | /*****************************************************************************************
* *
* OpenSpace *
* ... | 41.142857 | 90 | 0.506944 | hedbergj |
a79f1f8cd9775cf047c2b4e58c6a3971c470ef6a | 5,680 | cpp | C++ | adapters-stk/test/periodic_bcs/periodic_mesh_nosubcells.cpp | hillyuan/Tianxin | 57c7a5ed2466dda99471dec41cd85878335774d7 | [
"BSD-3-Clause"
] | 1 | 2022-03-22T03:49:50.000Z | 2022-03-22T03:49:50.000Z | adapters-stk/test/periodic_bcs/periodic_mesh_nosubcells.cpp | hillyuan/Tianxin | 57c7a5ed2466dda99471dec41cd85878335774d7 | [
"BSD-3-Clause"
] | null | null | null | adapters-stk/test/periodic_bcs/periodic_mesh_nosubcells.cpp | hillyuan/Tianxin | 57c7a5ed2466dda99471dec41cd85878335774d7 | [
"BSD-3-Clause"
] | null | null | null | // @HEADER
// ***********************************************************************
//
// Panzer: A partial differential equation assembly
// engine for strongly coupled complex multiphysics systems
// Copyright (2011) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85... | 36.178344 | 98 | 0.689437 | hillyuan |
a7aa5ff4bd5cac47b4390d829efc5c2e899ac3d5 | 873 | hpp | C++ | src/geometry/include/geometry/point.hpp | snailbaron/rooms | 03496c3cd30e2020e1b0f1ad7d96bfba4e000eaa | [
"MIT"
] | null | null | null | src/geometry/include/geometry/point.hpp | snailbaron/rooms | 03496c3cd30e2020e1b0f1ad7d96bfba4e000eaa | [
"MIT"
] | null | null | null | src/geometry/include/geometry/point.hpp | snailbaron/rooms | 03496c3cd30e2020e1b0f1ad7d96bfba4e000eaa | [
"MIT"
] | null | null | null | #pragma once
#include "geometry/vector.hpp"
#include <ostream>
#include <type_traits>
#include <utility>
namespace geometry {
template <class T>
struct Point {
Point() : x(), y() {}
Point(T x, T y) : x(std::move(x)), y(std::move(y)) {}
template <class U, class = std::enable_if_t<std::is_convertible_v<U... | 20.785714 | 77 | 0.592211 | snailbaron |
a7aa92dd2ae44577d3019d8539a6a1b4836d5afb | 1,281 | cpp | C++ | tests/basic_formatting.cpp | nscooling/embedded-fmt | 1773fb9b0ff3e2c5883a0566cd678b541c0a4734 | [
"MIT"
] | null | null | null | tests/basic_formatting.cpp | nscooling/embedded-fmt | 1773fb9b0ff3e2c5883a0566cd678b541c0a4734 | [
"MIT"
] | null | null | null | tests/basic_formatting.cpp | nscooling/embedded-fmt | 1773fb9b0ff3e2c5883a0566cd678b541c0a4734 | [
"MIT"
] | null | null | null | #include <cassert>
#include <iostream>
#include <string>
std::string test_string{};
auto Putstr = [&str = test_string](auto c) { str += c; };
[[maybe_unused]] auto print_test_string = [](auto &str) {
for (auto c : str) {
putchar('.'), putchar(c);
}
};
#define Putchar(x) Putstr(x)
#include "efmt.hpp"
using na... | 23.290909 | 57 | 0.59719 | nscooling |
a7ad259cba03629312907ea529c87ce975df8d36 | 6,204 | cpp | C++ | src/main.cpp | Erriez/ESP8266UbidotsSensors | 498d932aca5c0a4d9f3f2a701e60f22ee068669d | [
"MIT"
] | null | null | null | src/main.cpp | Erriez/ESP8266UbidotsSensors | 498d932aca5c0a4d9f3f2a701e60f22ee068669d | [
"MIT"
] | null | null | null | src/main.cpp | Erriez/ESP8266UbidotsSensors | 498d932aca5c0a4d9f3f2a701e60f22ee068669d | [
"MIT"
] | 2 | 2020-01-30T18:35:58.000Z | 2021-12-02T14:22:53.000Z | /*
* MIT License
*
* Copyright (c) 2018 Erriez
*
* 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, copy, modify, m... | 24.619048 | 81 | 0.613314 | Erriez |
a7aed24972d8209b2100978b046af873c65481ec | 1,137 | cpp | C++ | GameEngine/GameEngine/main.cpp | MrMaguila/SelfMadeGameEngine | c941ea122ec25c1130f113e64c05b2a6a90e9f65 | [
"Apache-2.0"
] | null | null | null | GameEngine/GameEngine/main.cpp | MrMaguila/SelfMadeGameEngine | c941ea122ec25c1130f113e64c05b2a6a90e9f65 | [
"Apache-2.0"
] | null | null | null | GameEngine/GameEngine/main.cpp | MrMaguila/SelfMadeGameEngine | c941ea122ec25c1130f113e64c05b2a6a90e9f65 | [
"Apache-2.0"
] | null | null | null | //#############################################################################################
/*
Copyright[2020][Gabriel G. Fernandes]
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.... | 25.266667 | 95 | 0.614776 | MrMaguila |
a7b04a57fe77237e60c0588c93e941445d071e98 | 22,834 | cpp | C++ | tests/A32/fuzz_thumb.cpp | liushuyu/dynarmic | 40afbe19279820e59382b7460643c62398ba0fb8 | [
"0BSD"
] | 77 | 2021-09-03T09:40:01.000Z | 2022-03-30T05:18:36.000Z | tests/A32/fuzz_thumb.cpp | xerpi/dynarmic | bcfe377aaa5138af740e90af5be7a7dff7b62a52 | [
"0BSD"
] | 16 | 2021-09-03T13:13:54.000Z | 2022-03-30T20:07:38.000Z | tests/A32/fuzz_thumb.cpp | xerpi/dynarmic | bcfe377aaa5138af740e90af5be7a7dff7b62a52 | [
"0BSD"
] | 15 | 2021-09-01T11:19:26.000Z | 2022-03-27T09:19:14.000Z | /* This file is part of the dynarmic project.
* Copyright (c) 2016 MerryMage
* SPDX-License-Identifier: 0BSD
*/
#include <algorithm>
#include <array>
#include <cinttypes>
#include <cstdio>
#include <cstring>
#include <functional>
#include <string_view>
#include <tuple>
#include <catch2/catch.hpp>
#include "../ran... | 42.207024 | 227 | 0.565954 | liushuyu |
a7b1a21036ce1199fb62765ff60e6fe749008b02 | 5,224 | cpp | C++ | src/main/MessageConsumer.cpp | jane3030/pyactivemq | 5525cb0b849483a304b550d8884fed445a93c1b1 | [
"Apache-2.0"
] | 5 | 2015-04-02T11:46:52.000Z | 2020-12-31T07:44:13.000Z | src/main/MessageConsumer.cpp | jane3030/pyactivemq | 5525cb0b849483a304b550d8884fed445a93c1b1 | [
"Apache-2.0"
] | null | null | null | src/main/MessageConsumer.cpp | jane3030/pyactivemq | 5525cb0b849483a304b550d8884fed445a93c1b1 | [
"Apache-2.0"
] | 5 | 2017-06-21T03:40:06.000Z | 2020-02-17T07:21:53.000Z | /*
Copyright 2007 Albert Strasheim <fullung@gmail.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.apache.org/licenses/LICENSE-2.0
Unless required by applicable law ... | 42.471545 | 132 | 0.694678 | jane3030 |
a7b288a24dc2931580aec2350cf01e91ed44152e | 4,363 | cpp | C++ | CtrlLib/TrayIconWin32.cpp | koz4k/soccer | 7bceea654b50c5c0e18effd38e79249bd295e0a4 | [
"MIT"
] | 1 | 2018-09-28T17:04:11.000Z | 2018-09-28T17:04:11.000Z | CtrlLib/TrayIconWin32.cpp | koz4k/soccer | 7bceea654b50c5c0e18effd38e79249bd295e0a4 | [
"MIT"
] | 1 | 2021-04-06T21:57:39.000Z | 2021-04-06T21:57:39.000Z | CtrlLib/TrayIconWin32.cpp | koz4k/soccer | 7bceea654b50c5c0e18effd38e79249bd295e0a4 | [
"MIT"
] | 3 | 2017-08-26T12:06:05.000Z | 2019-11-22T16:57:47.000Z | #include "CtrlLib.h"
#ifdef GUI_WIN
#ifndef PLATFORM_WINCE
#include <commdlg.h>
#include <cderr.h>
#include <shellapi.h>
#endif
#endif
namespace Upp {
#ifdef GUI_WIN
#ifndef PLATFORM_WINCE
#define LLOG(x)
enum {
UM_TASKBAR_ = WM_USER + 1024,
NIN_BALLOONSHOW_ = WM_USER + 2,
NIN_BALLOONHIDE_ = WM_USER + 3,
NI... | 19.742081 | 103 | 0.682558 | koz4k |
a7b5d5ed71a92ed79e022f2642eebf9d79c3855a | 1,946 | cpp | C++ | test/main.cpp | lydiazoghbi/Project-X---EcoBot | 81d53383634dccdf6e5c82655ca53ccf3c65fda0 | [
"Apache-2.0"
] | null | null | null | test/main.cpp | lydiazoghbi/Project-X---EcoBot | 81d53383634dccdf6e5c82655ca53ccf3c65fda0 | [
"Apache-2.0"
] | 1 | 2019-12-09T20:44:47.000Z | 2019-12-09T20:44:47.000Z | test/main.cpp | lydiazoghbi/project_x_ecobot | 81d53383634dccdf6e5c82655ca53ccf3c65fda0 | [
"Apache-2.0"
] | null | null | null | /*
*
* Copyright 2019 Lydia Zoghbi and Ryan Bates.
*
* 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 ... | 25.605263 | 76 | 0.709147 | lydiazoghbi |
a7b64a11725b6cb0e3071b9dc90270e195de4598 | 1,884 | cpp | C++ | mastermind/util.cpp | MartinMSPedersen/Cplusplus-snippets | ae34e7afff40456cea6dc0ecd3d4729d19fcebe3 | [
"BSD-2-Clause"
] | null | null | null | mastermind/util.cpp | MartinMSPedersen/Cplusplus-snippets | ae34e7afff40456cea6dc0ecd3d4729d19fcebe3 | [
"BSD-2-Clause"
] | null | null | null | mastermind/util.cpp | MartinMSPedersen/Cplusplus-snippets | ae34e7afff40456cea6dc0ecd3d4729d19fcebe3 | [
"BSD-2-Clause"
] | null | null | null | /*
Mon Jan 2 01:58:29 CET 2017
version 0.1
All source under GPL version 3
(GNU General Public License - http://www.gnu.org/)
contact traxplayer@gmail.com for more information about this code
*/
#include <vector>
#include <string>
#include <iostream>
#include <cassert>
#include <cstdlib>
#include <unistd.h>
#inc... | 16.972973 | 103 | 0.640127 | MartinMSPedersen |
a7b8f763b4fdfb7b9b10b098cdaa0ed63745f72c | 5,602 | cpp | C++ | projects/luabot/bot.cpp | JackSAE/SaltBot | 0e3cce557daadd224d6120e98ef7b7bdce38cdfc | [
"MIT"
] | null | null | null | projects/luabot/bot.cpp | JackSAE/SaltBot | 0e3cce557daadd224d6120e98ef7b7bdce38cdfc | [
"MIT"
] | null | null | null | projects/luabot/bot.cpp | JackSAE/SaltBot | 0e3cce557daadd224d6120e98ef7b7bdce38cdfc | [
"MIT"
] | null | null | null | #include "bot.h"
#include "time.h"
#include "kf/kf_log.h"
extern "C"
{
BotInterface BOT_API *CreateBot()
{
return new LuaBot();
}
}
int luaPrint(lua_State *l)
{
const char *temp=lua_tostring(l, -1);
kf_log("Lua:"<<temp);
return 0;
}
LuaBot::LuaBot()
{
kf::LogSystem::getDefault().addCout();
m_rand(time(0)+(... | 26.932692 | 98 | 0.675295 | JackSAE |
a7bee457f1a216aa908a80525b520c3712d323ea | 2,415 | cpp | C++ | test/Temple/Cache.cpp | Dom1L/molassembler | dafc656b1aa846b65b1fd1e06f3740ceedcf22db | [
"BSD-3-Clause"
] | 17 | 2020-11-27T14:59:34.000Z | 2022-03-28T10:31:25.000Z | test/Temple/Cache.cpp | Dom1L/molassembler | dafc656b1aa846b65b1fd1e06f3740ceedcf22db | [
"BSD-3-Clause"
] | null | null | null | test/Temple/Cache.cpp | Dom1L/molassembler | dafc656b1aa846b65b1fd1e06f3740ceedcf22db | [
"BSD-3-Clause"
] | 6 | 2020-12-09T09:21:53.000Z | 2021-08-22T15:42:21.000Z | /*!@file
* @copyright This code is licensed under the 3-clause BSD license.
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.
* See LICENSE.txt for details.
*/
#include <boost/test/unit_test.hpp>
#include "Molassembler/Temple/Cache.h"
using namespace Scine::Molassembler;
unsigned int a... | 20.818966 | 87 | 0.595031 | Dom1L |
a7c04f702e2f96b193ecaa49cc3b9d8a57417ee5 | 1,713 | cpp | C++ | src/playerDriver.cpp | jacobrs/risk-game | 29ed2a58a9d5cf2fd28881876e1fabe4ed0e8ee5 | [
"MIT"
] | null | null | null | src/playerDriver.cpp | jacobrs/risk-game | 29ed2a58a9d5cf2fd28881876e1fabe4ed0e8ee5 | [
"MIT"
] | null | null | null | src/playerDriver.cpp | jacobrs/risk-game | 29ed2a58a9d5cf2fd28881876e1fabe4ed0e8ee5 | [
"MIT"
] | null | null | null | #include "headers/Country.h"
#include "headers/Player.h"
#include <stdio.h>
#include <iostream>
#include <stdlib.h>
#include <time.h>
using namespace std;
int main(int args, char** argv){
srand (time(NULL));
string name = "";
int numberOfDice = 0;
int player1NumberOfDice = 0;
int num... | 33.588235 | 155 | 0.611208 | jacobrs |
a7c140b163443b78c5b1557c8da80952dece5eb7 | 9,328 | cpp | C++ | source/rpgss/TokenParser.cpp | kyuu/dynrpg-rpgss | ee534373b41728e282fc20691b6c94279df5e4c9 | [
"MIT"
] | 5 | 2015-10-07T15:09:59.000Z | 2021-12-16T06:15:23.000Z | source/rpgss/TokenParser.cpp | kyuu/dynrpg-rpgss | ee534373b41728e282fc20691b6c94279df5e4c9 | [
"MIT"
] | null | null | null | source/rpgss/TokenParser.cpp | kyuu/dynrpg-rpgss | ee534373b41728e282fc20691b6c94279df5e4c9 | [
"MIT"
] | 2 | 2016-12-09T10:06:28.000Z | 2018-10-05T01:42:43.000Z | /*
The MIT License (MIT)
Copyright (c) 2014 Anatoli Steinmark
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
... | 38.229508 | 101 | 0.37039 | kyuu |
a7c156e5df68ae9aff1a6b49a3208ae16caf7c63 | 2,364 | cpp | C++ | Source/AllProjects/CQCMEng/CQCMEng_ThisFacility.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 51 | 2020-12-26T18:17:16.000Z | 2022-03-15T04:29:35.000Z | Source/AllProjects/CQCMEng/CQCMEng_ThisFacility.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | null | null | null | Source/AllProjects/CQCMEng/CQCMEng_ThisFacility.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 4 | 2020-12-28T07:24:39.000Z | 2021-12-29T12:09:37.000Z | //
// FILE NAME: CQCMEng_ThisFacility.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 06/24/2015
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://op... | 27.811765 | 78 | 0.460237 | MarkStega |
a7c45e68a2cdc5c8955d5628893eecc69ea0f9b3 | 365 | cpp | C++ | LectureCode/Review/review.cpp | wsun23/ncstate_ece566_spring2022 | 419d05720622d9886ebb32bb1ed41c4036913d5b | [
"MIT"
] | 5 | 2022-01-27T21:11:55.000Z | 2022-02-16T03:35:40.000Z | LectureCode/Review/review.cpp | wsun23/ncstate_ece566_spring2022 | 419d05720622d9886ebb32bb1ed41c4036913d5b | [
"MIT"
] | null | null | null | LectureCode/Review/review.cpp | wsun23/ncstate_ece566_spring2022 | 419d05720622d9886ebb32bb1ed41c4036913d5b | [
"MIT"
] | 13 | 2022-01-13T22:48:48.000Z | 2022-03-18T21:56:00.000Z | // review
#include <stdio.h>
enum Opcode {
ADD = 0,
SUB = 1
};
enum Register {
R0 = 0,
R1 = 1,
R2 = 2
};
typedef struct {
Opcode opcode;
Register dest; // int means the register number
Register src1;
Register src2;
} Instruction;
int main()
{
Instruction add = { ADD, R0, R1, R2 };
Instructio... | 11.774194 | 49 | 0.589041 | wsun23 |
a7c6eb53b9d9e041c6d01efd7a5c55684cd5bc6b | 32,076 | cpp | C++ | src/elektronika/websrv.cpp | aestesis/elektronika | 870f72ca7f64942f8316b3cd8f733f43c7d2d117 | [
"Apache-2.0"
] | 14 | 2016-05-09T01:14:03.000Z | 2021-10-12T21:41:02.000Z | src/elektronika/websrv.cpp | aestesis/elektronika | 870f72ca7f64942f8316b3cd8f733f43c7d2d117 | [
"Apache-2.0"
] | null | null | null | src/elektronika/websrv.cpp | aestesis/elektronika | 870f72ca7f64942f8316b3cd8f733f43c7d2d117 | [
"Apache-2.0"
] | 6 | 2015-08-19T01:28:54.000Z | 2020-10-25T05:17:08.000Z | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// WEBSRV.CPP (c) YoY'01 WEB: www.aestesis.org
//
/////////... | 32.269618 | 140 | 0.384587 | aestesis |
a7c7ab218b9e312f69f2058ff1f75db3d3bfc347 | 5,824 | cpp | C++ | src/compsys/MetaComponent.cpp | Oberon00/jd | 0724e059cfa56615afb0a50c27ce9885faa54ed6 | [
"BSD-2-Clause"
] | 1 | 2015-10-10T14:05:56.000Z | 2015-10-10T14:05:56.000Z | src/compsys/MetaComponent.cpp | Oberon00/jd | 0724e059cfa56615afb0a50c27ce9885faa54ed6 | [
"BSD-2-Clause"
] | null | null | null | src/compsys/MetaComponent.cpp | Oberon00/jd | 0724e059cfa56615afb0a50c27ce9885faa54ed6 | [
"BSD-2-Clause"
] | null | null | null | // Part of the Jade Engine -- Copyright (c) Christian Neumüller 2012--2013
// This file is subject to the terms of the BSD 2-Clause License.
// See LICENSE.txt or http://opensource.org/licenses/BSD-2-Clause
#include "compsys/MetaComponent.hpp"
#include "ComponentRegistry.hpp"
#include "compsys/Component.hpp"
#include... | 31.144385 | 102 | 0.648695 | Oberon00 |
a7c8b1b07ffc4670b951bf8ee5e40dc286580097 | 16,425 | ipp | C++ | include/fvm/implementation/component/UVWKernels.ipp | thorbenlouw/CUP-CFD | d06f7673a1ed12bef24de4f1b828ef864fa45958 | [
"MIT"
] | 3 | 2021-06-24T10:20:12.000Z | 2021-07-18T14:43:19.000Z | include/fvm/implementation/component/UVWKernels.ipp | thorbenlouw/CUP-CFD | d06f7673a1ed12bef24de4f1b828ef864fa45958 | [
"MIT"
] | 2 | 2021-07-22T15:31:03.000Z | 2021-07-28T14:27:28.000Z | include/fvm/implementation/component/UVWKernels.ipp | thorbenlouw/CUP-CFD | d06f7673a1ed12bef24de4f1b828ef864fa45958 | [
"MIT"
] | 1 | 2021-07-22T15:24:24.000Z | 2021-07-22T15:24:24.000Z | /*
* @file
* @author University of Warwick
* @version 1.0
*
* @section LICENSE
* These kernels were ported to C++/derived from Dolfyn:
* Copyright 2003-2009 Henk Krus, Cyclone Fluid Dynamics BV
* All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this f... | 29.918033 | 128 | 0.561157 | thorbenlouw |
a7cb9a2c143254217942cbfb71b3dbaf38a32baf | 47 | hpp | C++ | src/boost_property_tree_string_path.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_property_tree_string_path.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_property_tree_string_path.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/property_tree/string_path.hpp>
| 23.5 | 46 | 0.829787 | miathedev |
a7d138fd1dede1938dc88228a1f8a601b9c3d419 | 32,104 | cpp | C++ | src/IL/ILInstr.cpp | fencl/Crs | 902f6f293bcf33ff71ca6cfc306d8b833d1e0e63 | [
"MIT"
] | null | null | null | src/IL/ILInstr.cpp | fencl/Crs | 902f6f293bcf33ff71ca6cfc306d8b833d1e0e63 | [
"MIT"
] | null | null | null | src/IL/ILInstr.cpp | fencl/Crs | 902f6f293bcf33ff71ca6cfc306d8b833d1e0e63 | [
"MIT"
] | null | null | null | #include "IL.hpp"
namespace Crs {
using il_l_itr = std::vector<std::uint8_t>::iterator&;
using il_b = ILBlock*&;
struct il_no_pass { };
#define il_exec static errvoid exec(ILInstruction instr,il_l_itr it, il_b block, il_no_pass& pass) {
#define il_print static errvoid print(ILInstruction instr,il_l_itr it, il... | 36.234763 | 158 | 0.675523 | fencl |
a7d481f6cabea71f16c779dff2e5a52a3d6dbc2d | 2,351 | cpp | C++ | tests/failed/main.cpp | igagis/testy | a38281336816bec1651d818fa7aad89ecade17b2 | [
"MIT"
] | 8 | 2021-04-16T13:17:20.000Z | 2022-01-05T09:14:03.000Z | tests/failed/main.cpp | igagis/testy | a38281336816bec1651d818fa7aad89ecade17b2 | [
"MIT"
] | 16 | 2021-04-19T07:59:52.000Z | 2022-02-07T11:14:55.000Z | tests/failed/main.cpp | igagis/testy | a38281336816bec1651d818fa7aad89ecade17b2 | [
"MIT"
] | 3 | 2021-04-17T02:33:46.000Z | 2022-02-21T15:37:55.000Z | #include "../../src/tst/application.hpp"
#include "../../src/tst/check.hpp"
#include "../harness/testees.hpp"
namespace{
class fixture{
public:
fixture() = default;
fixture(const std::pair<int, int>& p) :
a(p.first)
{}
fixture(const fixture&) = delete;
int a = 10;
};
}
namespace{
struct some_unknown_excep... | 20.094017 | 78 | 0.58741 | igagis |
a7dbf77fd95783f96e05334686015efffabffc10 | 3,006 | cpp | C++ | caffe/src/caffe/test/test_solver.cpp | blitzingeagle/DeepEmbeddedClustering | cbc648fc9271f74c3bb257f57f0f78e1a1a66459 | [
"MIT"
] | 408 | 2015-11-19T21:50:16.000Z | 2022-03-22T08:17:26.000Z | caffe/src/caffe/test/test_solver.cpp | blitzingeagle/DeepEmbeddedClustering | cbc648fc9271f74c3bb257f57f0f78e1a1a66459 | [
"MIT"
] | 29 | 2016-05-18T10:24:00.000Z | 2021-09-26T21:43:46.000Z | caffe/src/caffe/test/test_solver.cpp | blitzingeagle/DeepEmbeddedClustering | cbc648fc9271f74c3bb257f57f0f78e1a1a66459 | [
"MIT"
] | 152 | 2015-11-24T17:30:36.000Z | 2021-11-11T07:17:03.000Z | #include <string>
#include <utility>
#include <vector>
#include "google/protobuf/text_format.h"
#include "gtest/gtest.h"
#include "caffe/common.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe/solver.hpp"
#include "caffe/test/test_caffe_main.hpp"
using std::ostringstream;
namespace caffe {
template <typenam... | 27.833333 | 72 | 0.576181 | blitzingeagle |
a7dcf745a43afc34281af88fd981a2f6559de471 | 48 | hpp | C++ | src/boost_algorithm_string_iter_find.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_algorithm_string_iter_find.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_algorithm_string_iter_find.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/algorithm/string/iter_find.hpp>
| 24 | 47 | 0.8125 | miathedev |
a7dec5eba5baa52eaf6befc87719d1aec27d3ea9 | 5,026 | hpp | C++ | include/eve/concept/value.hpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | null | null | null | include/eve/concept/value.hpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | null | null | null | include/eve/concept/value.hpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | null | null | null | //==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#pr... | 33.959459 | 117 | 0.39037 | leha-bot |
a7e2c5bd51a09198b501c9aa1463f25b95a82b50 | 1,531 | cpp | C++ | Singleton.cpp | kanirudh/design_patterns | 79a289299d65b672d8362920898c810e92c840f3 | [
"MIT"
] | null | null | null | Singleton.cpp | kanirudh/design_patterns | 79a289299d65b672d8362920898c810e92c840f3 | [
"MIT"
] | null | null | null | Singleton.cpp | kanirudh/design_patterns | 79a289299d65b672d8362920898c810e92c840f3 | [
"MIT"
] | null | null | null | /*
* So lets say in your pgroam, there is one object
* that should preform the function.
*
* This is many times called an Anti-Pattern.
*
* Why to do this
* 1. It is easy to implement
* 2. It is to share the object in the program
*
* Destruction of dependent Singletons, use the atexit()
*
* References:
* 1... | 23.19697 | 88 | 0.629001 | kanirudh |
a7e5076b591151ae983e0fec51ea1bd12d490940 | 1,142 | cpp | C++ | examples/advanced/mockAdvanced.cpp | mcci-catena/arduinounit | 6c54942ab58653bd0780a4041a016596dae1128e | [
"MIT"
] | null | null | null | examples/advanced/mockAdvanced.cpp | mcci-catena/arduinounit | 6c54942ab58653bd0780a4041a016596dae1128e | [
"MIT"
] | null | null | null | examples/advanced/mockAdvanced.cpp | mcci-catena/arduinounit | 6c54942ab58653bd0780a4041a016596dae1128e | [
"MIT"
] | 1 | 2022-03-09T09:54:03.000Z | 2022-03-09T09:54:03.000Z | #if !defined(ARDUINO)
// only used for "en vitro" tests (not on actual board)
#include <stdlib.h>
#include <sys/time.h>
#include <time.h>
#include "ArduinoUnit.h"
#include "ArduinoUnitMock.h"
int random(int n) {
static bool setup = false;
if (!setup) {
srand(time(0));
setup = true;
}
return rand() % ... | 19.355932 | 69 | 0.56042 | mcci-catena |
a7e5e8019d48e31c4be866729b5938626c6dec35 | 234 | cpp | C++ | EscapeRoomZ/item.cpp | ermario/ScapeRoomZ | 2ec78b353248347cc5ad70e47daa06bc72c033b0 | [
"MIT"
] | null | null | null | EscapeRoomZ/item.cpp | ermario/ScapeRoomZ | 2ec78b353248347cc5ad70e47daa06bc72c033b0 | [
"MIT"
] | null | null | null | EscapeRoomZ/item.cpp | ermario/ScapeRoomZ | 2ec78b353248347cc5ad70e47daa06bc72c033b0 | [
"MIT"
] | null | null | null | #include <iostream>
#include "item.h"
Item::Item(const char* title, const char* description, Entity* prev, ItemType item_type) :
Entity(title, description, prev), item_type(item_type)
{
type = EntityType::ITEM;
}
Item::~Item()
{}
| 19.5 | 90 | 0.709402 | ermario |
a7e81123f763f6adaed0a1135c901f72bb076e6e | 8,516 | cpp | C++ | source/Lys/GUIModule/GUI_Manager_Loader.cpp | Tigole/Lys-Framework | c7a51261b78c69fbfd823c1d20617ef13ca83a39 | [
"MIT"
] | null | null | null | source/Lys/GUIModule/GUI_Manager_Loader.cpp | Tigole/Lys-Framework | c7a51261b78c69fbfd823c1d20617ef13ca83a39 | [
"MIT"
] | null | null | null | source/Lys/GUIModule/GUI_Manager_Loader.cpp | Tigole/Lys-Framework | c7a51261b78c69fbfd823c1d20617ef13ca83a39 | [
"MIT"
] | null | null | null | #include "Lys/GUIModule/GUI_Manager_Loader.hpp"
/*
#include "XMLFileLoader.hpp"
#include "GUI_Manager.hpp"
#include "GUI_Element.hpp"
#include "Elements/GUI_Button.hpp"
#include "Elements/GUI_Layout.hpp"
#include "GUI_Interface.hpp"
#include "Environment.hpp"
GUI_Manager_Interface_Loader::~GUI_Manager_Interface_Load... | 24.684058 | 171 | 0.764443 | Tigole |
a7eafcd0ddd64f4cfe98c427867d583888e69abb | 18,157 | hpp | C++ | rocsolver/clients/include/testing_larfb.hpp | LuckyBoyDE/rocSOLVER | 6431459ce3f68b5a4c14b28b4ec35c25d664f0bc | [
"BSD-2-Clause"
] | null | null | null | rocsolver/clients/include/testing_larfb.hpp | LuckyBoyDE/rocSOLVER | 6431459ce3f68b5a4c14b28b4ec35c25d664f0bc | [
"BSD-2-Clause"
] | null | null | null | rocsolver/clients/include/testing_larfb.hpp | LuckyBoyDE/rocSOLVER | 6431459ce3f68b5a4c14b28b4ec35c25d664f0bc | [
"BSD-2-Clause"
] | null | null | null | /* ************************************************************************
* Copyright (c) 2020 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include "cblas_interface.h"
#include "clientcommon.hpp"
#include "norm.hpp"
#include "rocsolver.hpp"
#include "r... | 37.748441 | 101 | 0.482514 | LuckyBoyDE |
a7f1f9671cf16c0899d22de32fe6b728ec5d6c51 | 4,302 | cxx | C++ | PipelineCLIBridge/qSlicerPipelineCLIBridgeModule.cxx | Connor-Bowley/SlicerPipelines | 2fe92230fc6333951b7d99c272f3f2c34739624d | [
"Apache-2.0"
] | null | null | null | PipelineCLIBridge/qSlicerPipelineCLIBridgeModule.cxx | Connor-Bowley/SlicerPipelines | 2fe92230fc6333951b7d99c272f3f2c34739624d | [
"Apache-2.0"
] | 9 | 2021-11-08T20:42:49.000Z | 2022-03-11T19:05:00.000Z | PipelineCLIBridge/qSlicerPipelineCLIBridgeModule.cxx | Connor-Bowley/SlicerPipelines | 2fe92230fc6333951b7d99c272f3f2c34739624d | [
"Apache-2.0"
] | 2 | 2022-01-21T09:13:40.000Z | 2022-02-09T21:16:31.000Z | /*==============================================================================
Program: 3D Slicer
Portions (c) Copyright Brigham and Women's Hospital (BWH) All Rights Reserved.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Unless required by applicable law or agreed to ... | 36.151261 | 118 | 0.522315 | Connor-Bowley |
a7fc3545226d6ccd62720062406be187cfdd28ff | 31,824 | cpp | C++ | iceoryx_posh/test/moduletests/test_roudi_portmanager_client_server.cpp | andre-nguyen/iceoryx | 1efa29a0fa5816bf3529b873b6618cade013c623 | [
"Apache-2.0"
] | null | null | null | iceoryx_posh/test/moduletests/test_roudi_portmanager_client_server.cpp | andre-nguyen/iceoryx | 1efa29a0fa5816bf3529b873b6618cade013c623 | [
"Apache-2.0"
] | null | null | null | iceoryx_posh/test/moduletests/test_roudi_portmanager_client_server.cpp | andre-nguyen/iceoryx | 1efa29a0fa5816bf3529b873b6618cade013c623 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2022 by Apex.AI Inc. 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 by ap... | 42.375499 | 120 | 0.763009 | andre-nguyen |
c501e558740a8553e011fff44a46c859952b9830 | 165 | hpp | C++ | GameAutomatic.hpp | CLA-TC1030/s4t3.sye | 4718be3e4387be95c28bb908f575f6e78e160d4f | [
"MIT"
] | null | null | null | GameAutomatic.hpp | CLA-TC1030/s4t3.sye | 4718be3e4387be95c28bb908f575f6e78e160d4f | [
"MIT"
] | null | null | null | GameAutomatic.hpp | CLA-TC1030/s4t3.sye | 4718be3e4387be95c28bb908f575f6e78e160d4f | [
"MIT"
] | null | null | null | #pragma once
#include "Game.hpp"
class GameAutomatic:public Game {
protected:
std::string getInput();
public:
GameAutomatic(std::string, bool, bool);
}; | 16.5 | 43 | 0.690909 | CLA-TC1030 |
c503dd4e8a0c722fd1729d6c136b6a7d958becd8 | 40,067 | cpp | C++ | integrate/property_system/property_system/source/property_system/serialization/sr_property_json_de_serializer.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | 5 | 2019-12-02T12:28:57.000Z | 2021-04-07T21:21:13.000Z | integrate/property_system/property_system/source/property_system/serialization/sr_property_json_de_serializer.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | null | null | null | integrate/property_system/property_system/source/property_system/serialization/sr_property_json_de_serializer.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | 1 | 2020-01-09T14:25:42.000Z | 2020-01-09T14:25:42.000Z | #include "sr_pch.h"
#include <inttypes.h> // PRIu64 etc...
#include <cstdlib>
#include <nlohmann/json.hpp>
#include <core/base/types/sr_enum.h>
#include "property_system/sr_meta_object.h"
#include "property_system/sr_meta_property.h"
#include "property_system/sr_meta_prototype.h"
#include "property_system/serializati... | 35.67854 | 146 | 0.493498 | BoneCrasher |
c50492357198a9359be285c244895f3f3d5d7c3c | 6,954 | cpp | C++ | src/morda/util/key.cpp | igagis/morda | dd7b58f7cb2689d56b7796cc9b6b9302aad1a529 | [
"MIT"
] | 69 | 2016-12-07T05:56:53.000Z | 2020-11-27T20:59:05.000Z | src/morda/util/key.cpp | igagis/morda | dd7b58f7cb2689d56b7796cc9b6b9302aad1a529 | [
"MIT"
] | 103 | 2015-07-10T14:42:21.000Z | 2020-09-09T16:16:21.000Z | src/morda/util/key.cpp | igagis/morda | dd7b58f7cb2689d56b7796cc9b6b9302aad1a529 | [
"MIT"
] | 18 | 2016-11-22T14:41:37.000Z | 2020-04-22T18:16:10.000Z | /*
morda - GUI framework
Copyright (C) 2012-2021 Ivan Gagis <igagis@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version... | 23.896907 | 83 | 0.616336 | igagis |
c5057e33c2052dc4c28ea90172d9bc071ee3aab1 | 3,638 | hpp | C++ | include/Oculus/Spatializer/Propagation/MaterialProperty.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/Oculus/Spatializer/Propagation/MaterialProperty.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/Oculus/Spatializer/Propagation/MaterialProperty.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"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.Enum
#include "System/Enum.h... | 51.971429 | 131 | 0.752886 | RedBrumbler |
c506f34afec97b348679d5ca3e4c5ec6ddaac37e | 19,959 | hpp | C++ | segmatch_ros/include/segmatch_ros/common.hpp | Oofs/segmap | 98f1fddc15b863c781b78f59c65487be5e0dc497 | [
"BSD-3-Clause"
] | 771 | 2018-04-21T06:47:18.000Z | 2022-03-30T11:49:32.000Z | segmatch_ros/include/segmatch_ros/common.hpp | Oofs/segmap | 98f1fddc15b863c781b78f59c65487be5e0dc497 | [
"BSD-3-Clause"
] | 111 | 2018-04-22T10:11:50.000Z | 2022-03-21T02:16:12.000Z | segmatch_ros/include/segmatch_ros/common.hpp | Oofs/segmap | 98f1fddc15b863c781b78f59c65487be5e0dc497 | [
"BSD-3-Clause"
] | 287 | 2018-04-21T06:43:23.000Z | 2022-03-24T17:45:05.000Z | #ifndef SEGMATCH_ROS_COMMON_HPP_
#define SEGMATCH_ROS_COMMON_HPP_
#include <math.h>
#include <interactive_markers/interactive_marker_server.h>
#include <laser_slam/common.hpp>
#include <nav_msgs/Path.h>
#include <pcl_conversions/pcl_conversions.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <ro... | 38.680233 | 95 | 0.699785 | Oofs |
c50a9a9a532a1e45cee1fef10d231e8ed4d48297 | 14,049 | cpp | C++ | groups/bsl/bslalg/bslalg_autoscalardestructor.t.cpp | hughesr/bde | d593e3213918b9292c25e08cfc5b6651bacdea0d | [
"Apache-2.0"
] | 1 | 2019-01-22T19:44:05.000Z | 2019-01-22T19:44:05.000Z | groups/bsl/bslalg/bslalg_autoscalardestructor.t.cpp | anuranrc/bde | d593e3213918b9292c25e08cfc5b6651bacdea0d | [
"Apache-2.0"
] | null | null | null | groups/bsl/bslalg/bslalg_autoscalardestructor.t.cpp | anuranrc/bde | d593e3213918b9292c25e08cfc5b6651bacdea0d | [
"Apache-2.0"
] | null | null | null | // bslalg_autoscalardestructor.t.cpp -*-C++-*-
#include <bslalg_autoscalardestructor.h>
#include <bslma_allocator.h> // for testing only
#include <bslma_default.h> // for testing only
#include <bslma_testallocator.h> // for test... | 33.771635 | 79 | 0.476475 | hughesr |
c50e80cc1c33bf401b2d13279b27854e7c368d5a | 23,679 | cpp | C++ | src/stage/batched/host/KokkosKernels_Test_Gemm.cpp | crtrott/kokkos-kernels | 0dba50f62188eb82da35bb4fe0211c7783300903 | [
"BSD-3-Clause"
] | null | null | null | src/stage/batched/host/KokkosKernels_Test_Gemm.cpp | crtrott/kokkos-kernels | 0dba50f62188eb82da35bb4fe0211c7783300903 | [
"BSD-3-Clause"
] | null | null | null | src/stage/batched/host/KokkosKernels_Test_Gemm.cpp | crtrott/kokkos-kernels | 0dba50f62188eb82da35bb4fe0211c7783300903 | [
"BSD-3-Clause"
] | null | null | null | /// \author Kyungjoo Kim (kyukim@sandia.gov)
#include <iomanip>
#if defined(__KOKKOSKERNELS_LIBXSMM__)
#include "libxsmm.h"
#endif
#if defined(__KOKKOSKERNELS_INTEL_MKL__)
#include "mkl.h"
#endif
#include "Kokkos_Core.hpp"
#include "impl/Kokkos_Timer.hpp"
#include "KokkosKernels_Vector.hpp"
#include "KokkosKernels... | 34.976366 | 148 | 0.476287 | crtrott |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.