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
952a3563cf948c4b22142babed8fe5ecfe16cd60
341
cpp
C++
src/frontg8/error.cpp
frontg8/frontg8lib
c1c6a436ae6ddd6ad15b0270ac233cd9d19f33d8
[ "BSD-3-Clause" ]
3
2016-08-29T09:17:57.000Z
2016-10-18T05:01:25.000Z
src/frontg8/error.cpp
frontg8/frontg8lib
c1c6a436ae6ddd6ad15b0270ac233cd9d19f33d8
[ "BSD-3-Clause" ]
null
null
null
src/frontg8/error.cpp
frontg8/frontg8lib
c1c6a436ae6ddd6ad15b0270ac233cd9d19f33d8
[ "BSD-3-Clause" ]
null
null
null
#include "impl/error.hpp" #include "frontg8/error.h" extern "C" { FG8_DLL_EXPORT char const * fg8_error_message(fg8_error_t const error) { if(error) { return error->message.c_str(); } return NULL; } FG8_DLL_EXPORT void fg8_error_destroy(fg8_error_t const error) { dele...
14.826087
72
0.627566
frontg8
952cbc7eb26169d59db76921164bf6e0e80be9be
9,238
cpp
C++
test/decompiler/test_FormExpressionBuild2.cpp
joegoldin/jak-project
9969445cf78b43745b5910a2b09dbe6672f0ec92
[ "0BSD" ]
null
null
null
test/decompiler/test_FormExpressionBuild2.cpp
joegoldin/jak-project
9969445cf78b43745b5910a2b09dbe6672f0ec92
[ "0BSD" ]
null
null
null
test/decompiler/test_FormExpressionBuild2.cpp
joegoldin/jak-project
9969445cf78b43745b5910a2b09dbe6672f0ec92
[ "0BSD" ]
null
null
null
#include "gtest/gtest.h" #include "FormRegressionTest.h" using namespace decompiler; // tests stack variables TEST_F(FormRegressionTest, MatrixPMult) { std::string func = "sll r0, r0, 0\n" " daddiu sp, sp, -112\n" " sd ra, 0(sp)\n" " sq s5, 80(sp)\n" " sq gp, 96(sp)\n" ...
28.164634
94
0.38688
joegoldin
95327f0344b50e233bd4726c36c37b26d2e6fe74
5,608
cc
C++
tests/client.cc
kborkows/libiqxmlrpc
046ac8a55b1b674f7406442dee533e1ecbfbb88d
[ "BSD-2-Clause" ]
null
null
null
tests/client.cc
kborkows/libiqxmlrpc
046ac8a55b1b674f7406442dee533e1ecbfbb88d
[ "BSD-2-Clause" ]
null
null
null
tests/client.cc
kborkows/libiqxmlrpc
046ac8a55b1b674f7406442dee533e1ecbfbb88d
[ "BSD-2-Clause" ]
null
null
null
#define BOOST_TEST_MODULE test_client #include <stdlib.h> #include <openssl/md5.h> #include <iostream> #include <memory> #include <boost/test/test_tools.hpp> #include <boost/test/unit_test.hpp> #include "libiqxmlrpc/libiqxmlrpc.h" #include "libiqxmlrpc/http_client.h" #include "libiqxmlrpc/http_errors.h" #include "clien...
26.832536
96
0.709522
kborkows
953511a713690c1077b6f8891cdbe53b0f124127
9,760
cpp
C++
jme3-bullet-native/src/native/cpp/jmePhysicsSpace.cpp
MeFisto94/test-bot-1
c761210e199fc2e3cae5db0b2fbf13043d8d4b48
[ "BSD-3-Clause" ]
3
2020-11-08T14:55:48.000Z
2021-09-28T08:33:26.000Z
jme3-bullet-native/src/native/cpp/jmePhysicsSpace.cpp
MeFisto94/test-bot-1
c761210e199fc2e3cae5db0b2fbf13043d8d4b48
[ "BSD-3-Clause" ]
2
2020-09-24T22:09:36.000Z
2020-09-24T22:29:30.000Z
jme3-bullet-native/src/native/cpp/jmePhysicsSpace.cpp
Akshita-tewatia/jmonkeyengine
ff4b8d6a3b953a6899e31b787cb91094bced9ae6
[ "BSD-3-Clause" ]
1
2017-08-31T15:17:31.000Z
2017-08-31T15:17:31.000Z
/* * Copyright (c) 2009-2019 jMonkeyEngine * 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 of ...
43.766816
189
0.665984
MeFisto94
95388ef254ece677e4b85484eb47258c1b9b592a
931
cpp
C++
codes/TEAMSCODE/2020/TC_MOCK/2/9.cpp
chessbot108/solved-problems
0945be829a8ea9f0d5896c89331460d70d076691
[ "MIT" ]
2
2021-03-07T03:34:02.000Z
2021-03-09T01:22:21.000Z
codes/TEAMSCODE/2020/TC_MOCK/2/9.cpp
chessbot108/solved-problems
0945be829a8ea9f0d5896c89331460d70d076691
[ "MIT" ]
1
2021-03-27T15:01:23.000Z
2021-03-27T15:55:34.000Z
codes/TEAMSCODE/2020/TC_MOCK/2/9.cpp
chessbot108/solved-problems
0945be829a8ea9f0d5896c89331460d70d076691
[ "MIT" ]
1
2021-03-27T05:02:33.000Z
2021-03-27T05:02:33.000Z
//code by daniel. aaron worked on this, but daniel's code was much cleaner #include <iostream> #include <vector> using namespace std; string s1, s2; string multiply(){ int len1 = s1.length(); int len2 = s2.length(); if (len1 == 0 || len2 == 0){ return "0"; } vector<int> v(len1 + len2, 0); int i1 = ...
14.777778
74
0.459721
chessbot108
9541c1871a6635bb284608e103d81e3fd8c2e37a
3,316
cc
C++
code/SuffixArray_new.cc
tulsyan/ACM-ICPC-Handbook
fbadfd66017991d264071af3f2fa8e050e4f8e40
[ "MIT" ]
32
2017-12-24T20:00:47.000Z
2021-04-09T14:53:25.000Z
code/SuffixArray_new.cc
Zindastart/ACM-ICPC-Handbook
fbadfd66017991d264071af3f2fa8e050e4f8e40
[ "MIT" ]
null
null
null
code/SuffixArray_new.cc
Zindastart/ACM-ICPC-Handbook
fbadfd66017991d264071af3f2fa8e050e4f8e40
[ "MIT" ]
16
2017-12-13T14:35:27.000Z
2021-12-24T04:40:32.000Z
// Begins Suffix Arrays implementation // O(n log n) - Manber and Myers algorithm // SA = The suffix array. Contains the n suffixes of txt sorted in lexicographical order. // Each suffix is represented as a single integer (the SAition of txt where it starts). // iSA = The inverse of the suffix array. iSA[i] = th...
28.834783
95
0.528347
tulsyan
9542f2fa62e1c13870b3484a6ff2e59dd95a364b
1,939
cpp
C++
module04/ex03/main.cpp
mathias-mrsn/CPP_modules
726bb5bd25f5e366550c79e5f01aed1d3d95c7fc
[ "MIT" ]
null
null
null
module04/ex03/main.cpp
mathias-mrsn/CPP_modules
726bb5bd25f5e366550c79e5f01aed1d3d95c7fc
[ "MIT" ]
null
null
null
module04/ex03/main.cpp
mathias-mrsn/CPP_modules
726bb5bd25f5e366550c79e5f01aed1d3d95c7fc
[ "MIT" ]
null
null
null
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.cpp :+: :+: :+: ...
29.830769
80
0.407942
mathias-mrsn
95454efe95736a10e0c0eb54ae565a60cf4f32a5
5,442
hpp
C++
src/ivorium_core/Instancing/Instance.hpp
ivorne/ivorium
1d876b6dcabe29b3110d3058f997e59c40cd6a2b
[ "Apache-2.0" ]
3
2021-02-26T02:59:09.000Z
2022-02-08T16:44:21.000Z
src/ivorium_core/Instancing/Instance.hpp
ivorne/ivorium
1d876b6dcabe29b3110d3058f997e59c40cd6a2b
[ "Apache-2.0" ]
null
null
null
src/ivorium_core/Instancing/Instance.hpp
ivorne/ivorium
1d876b6dcabe29b3110d3058f997e59c40cd6a2b
[ "Apache-2.0" ]
null
null
null
#pragma once #include "../Basics/LogId.hpp" #include "../Basics/SrcInfo.hpp" #include "../Basics/volatile_set.hpp" #include "../Basics/StringIO_defs.hpp" #include <unordered_set> #include <string> #include <sstream> #include <type_traits> #include <vector> #include <functional> #include <typeindex> #include <list> #i...
36.52349
143
0.564866
ivorne
954c6b17697851a69064cb4947dde42d3c6fb6ad
2,094
cpp
C++
DlgDocGe.cpp
RDamman/SpeakerWorkshop
87a38d04197a07a9a7878b3f60d5e0706782163c
[ "OML" ]
12
2019-06-07T10:06:41.000Z
2021-03-22T22:13:59.000Z
DlgDocGe.cpp
RDamman/SpeakerWorkshop
87a38d04197a07a9a7878b3f60d5e0706782163c
[ "OML" ]
1
2019-05-09T07:38:12.000Z
2019-07-10T04:20:55.000Z
DlgDocGe.cpp
RDamman/SpeakerWorkshop
87a38d04197a07a9a7878b3f60d5e0706782163c
[ "OML" ]
3
2020-09-08T08:27:33.000Z
2021-05-13T09:25:43.000Z
// DlgDocGe.cpp : implementation file // #include "stdafx.h" #include "audtest.h" #include "DlgDocGe.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CDlgDocGeneral property page IMPLEM...
19.942857
77
0.674308
RDamman
9553172cdf814db84af12100ee8324f8ba0d0472
1,879
cpp
C++
Src/MapEditor/vehiclepath.cpp
vox-1/MapEditor
f1b8a3df64c91e9c3aef7ee21e997f4f1163fa0e
[ "MIT" ]
null
null
null
Src/MapEditor/vehiclepath.cpp
vox-1/MapEditor
f1b8a3df64c91e9c3aef7ee21e997f4f1163fa0e
[ "MIT" ]
null
null
null
Src/MapEditor/vehiclepath.cpp
vox-1/MapEditor
f1b8a3df64c91e9c3aef7ee21e997f4f1163fa0e
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "vehiclepath.h" using namespace graphic; using namespace tms; cVehiclePath::cVehiclePath() : m_idx(0) , m_velocity(10) , m_incTime(0) , m_initialDirection(0,0,1) , m_rotTime(0.333f) { m_path.reserve(32); } cVehiclePath::~cVehiclePath() { } bool cVehiclePath::SetPath(const vecto...
17.398148
83
0.653539
vox-1
9554eeba67fee4a1c1a7e99ea09a32575706a32e
539
cpp
C++
Samsung SW Expert Academy/2071.cpp
SiverPineValley/algo
29c75c6b226fdb15a3b6695e763ee49d4871094e
[ "Apache-2.0" ]
null
null
null
Samsung SW Expert Academy/2071.cpp
SiverPineValley/algo
29c75c6b226fdb15a3b6695e763ee49d4871094e
[ "Apache-2.0" ]
null
null
null
Samsung SW Expert Academy/2071.cpp
SiverPineValley/algo
29c75c6b226fdb15a3b6695e763ee49d4871094e
[ "Apache-2.0" ]
null
null
null
// 2071. 평균값 구하기 #include <iostream> #include <cmath> using namespace std; int main(void) { int n; cin >> n; for(int t = 1; t <= n; t++) { float temp2; int ans, temp; float sum = 0; for(int i = 0; i < 10; i++) { cin >> temp; sum += temp; ...
19.962963
47
0.397032
SiverPineValley
95585e6b406ae394657489a38412eb01de9cfdae
2,316
cc
C++
src/codegen/codegen_function.cc
nitnelave/hopper
2d71fe2c9944b9cc8bc29ef8c4b9e068e7a54881
[ "BSD-3-Clause" ]
2
2017-07-27T14:08:43.000Z
2021-11-12T17:30:58.000Z
src/codegen/codegen_function.cc
nitnelave/hopper
2d71fe2c9944b9cc8bc29ef8c4b9e068e7a54881
[ "BSD-3-Clause" ]
61
2017-05-22T12:38:28.000Z
2017-09-21T08:10:46.000Z
src/codegen/codegen_function.cc
nitnelave/hopper
2d71fe2c9944b9cc8bc29ef8c4b9e068e7a54881
[ "BSD-3-Clause" ]
null
null
null
#include "codegen/codegen.h" #include "llvm/IR/CallingConv.h" #include "llvm/IR/DerivedTypes.h" #include "llvm/IR/Function.h" #include "ast/block_statement.h" #include "ast/function_call.h" #include "ast/function_declaration.h" #include "ast/return_statement.h" #include "ast/value.h" #include "ast/value_statement.h" ...
34.567164
80
0.685233
nitnelave
955c5571cb638173671c0632373109fd6717acb1
10,020
cpp
C++
src/main.cpp
lishi0927/BRDF
d9d2fc44b3d70d57a375dd85cb3624462874326a
[ "MIT" ]
null
null
null
src/main.cpp
lishi0927/BRDF
d9d2fc44b3d70d57a375dd85cb3624462874326a
[ "MIT" ]
null
null
null
src/main.cpp
lishi0927/BRDF
d9d2fc44b3d70d57a375dd85cb3624462874326a
[ "MIT" ]
null
null
null
// Include standard headers #include <stdio.h> #include <stdlib.h> #include <iostream> #include <vector> // Include GLEW #include <GL/glew.h> // Include GLFW #include <glfw3.h> GLFWwindow* window; // Include GLM #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> using namespace glm; #include "ground.h" ...
25.561224
144
0.694511
lishi0927
95637a52191c30ceb46b0bb053029d76d08f1ef3
1,709
cpp
C++
src/etc/subclassing.cpp
rosasurfer/mt4-expander
dc2fb04aaaa62f4ba575d7c16a266169daac417a
[ "WTFPL" ]
25
2017-02-16T16:58:18.000Z
2021-12-06T06:42:54.000Z
src/etc/subclassing.cpp
rosasurfer/mt4-expander
dc2fb04aaaa62f4ba575d7c16a266169daac417a
[ "WTFPL" ]
5
2016-12-13T05:58:11.000Z
2020-09-23T17:49:33.000Z
src/etc/subclassing.cpp
rosasurfer/mt4-expander
dc2fb04aaaa62f4ba575d7c16a266169daac417a
[ "WTFPL" ]
26
2017-02-08T13:34:28.000Z
2022-03-12T10:53:41.000Z
#include "expander.h" HWND last_hWnd; WNDPROC origWndProc; /** * Custom window procedure */ LRESULT WINAPI CustomWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { debug("hWnd=%d, msg=%d, wParam=%p, lParam=%p", hWnd, msg, wParam, lParam); return(CallWindowProc(origWndProc, hWnd, msg, wParam, ...
31.648148
137
0.705091
rosasurfer
956a84f757664515ab460661f16b9a12aafdd4cd
1,476
cpp
C++
tests.boost/write_xml_with_property_tree.cpp
virgiliosanz/Tests
f24f210b7ef3ef8c8a6b3e915c33ce4f9cf26694
[ "Unlicense" ]
null
null
null
tests.boost/write_xml_with_property_tree.cpp
virgiliosanz/Tests
f24f210b7ef3ef8c8a6b3e915c33ce4f9cf26694
[ "Unlicense" ]
null
null
null
tests.boost/write_xml_with_property_tree.cpp
virgiliosanz/Tests
f24f210b7ef3ef8c8a6b3e915c33ce4f9cf26694
[ "Unlicense" ]
null
null
null
#include <boost/property_tree/ptree.hpp> #include <boost/property_tree/xml_parser.hpp> //<Root> // <Set Name="1"> // <Field Name="Hello 1"/> // <Field Name="World 1"/> // </Set> // <Set Name="2"> // <Field Name="Hello 2"/> // <Field Name="World 2"/> // </Set> //</Root> int main(int argc, char*...
28.941176
76
0.638211
virgiliosanz
956f75011ae92a722898e80f4d7008a1d951494b
382
cpp
C++
VeshApiBattle/battle.cpp
FireAlfa/VeshApi-BattleSystem
03356f77a61b69597870d7f4773f6744fd78c360
[ "MIT" ]
null
null
null
VeshApiBattle/battle.cpp
FireAlfa/VeshApi-BattleSystem
03356f77a61b69597870d7f4773f6744fd78c360
[ "MIT" ]
null
null
null
VeshApiBattle/battle.cpp
FireAlfa/VeshApi-BattleSystem
03356f77a61b69597870d7f4773f6744fd78c360
[ "MIT" ]
null
null
null
#include "battle.h" Battle::Battle(std::string _name) : name(_name) { } Battle::~Battle() { } void Battle::AddPlayer(Player* p) { if (!playerCreated) { players.insert(players.begin(), p); } playerCreated = true; } void Battle::CreateEnemy(std::string _name) { Player* p = new Player(_name); AddEnemy(p);...
11.575758
47
0.659686
FireAlfa
9570cc112d93525ede31d9eddaa9df7c358de5f0
433
cpp
C++
SOCTestProject/SOCTestProject/Code/main.cpp
Jin02/SOCEngine
7a04d914149783f54aecf2fbbc4e78a7325f0fbd
[ "MIT" ]
14
2015-12-24T03:08:59.000Z
2021-12-13T13:29:07.000Z
SOCTestProject/SOCTestProject/Code/main.cpp
Jin02/SOCEngine
7a04d914149783f54aecf2fbbc4e78a7325f0fbd
[ "MIT" ]
106
2015-08-16T10:32:47.000Z
2018-10-08T19:01:44.000Z
SOCTestProject/SOCTestProject/Code/main.cpp
Jin02/SOCEngine
7a04d914149783f54aecf2fbbc4e78a7325f0fbd
[ "MIT" ]
2
2018-03-02T06:17:08.000Z
2020-02-11T11:19:41.000Z
#include "Launcher.h" #include "TestScene.h" using namespace Core; using namespace Device; INT WINAPI wWinMain( HINSTANCE hInst, HINSTANCE, LPWSTR, INT ) { WinApp::Desc desc; { desc.rect = Rect<uint>(0, 0, 800, 600); desc.instance = hInst; desc.name = "Refactoring"; desc.windowMode = true; desc.isCh...
20.619048
62
0.681293
Jin02
9577a841090e2aca4c6844b31c2bee77695e9685
223
cpp
C++
src/kasm/externalLoaders.cpp
knoxaramav2/KASM
e678374e579768cc2c9654ee53225684198b00ad
[ "MIT" ]
null
null
null
src/kasm/externalLoaders.cpp
knoxaramav2/KASM
e678374e579768cc2c9654ee53225684198b00ad
[ "MIT" ]
null
null
null
src/kasm/externalLoaders.cpp
knoxaramav2/KASM
e678374e579768cc2c9654ee53225684198b00ad
[ "MIT" ]
null
null
null
#include "externalLoaders.hpp" #include "instructionRegistery.hpp" #include "controller.hpp" #include "graphics.hpp" void KASM::LoadGraphics(KASM::AsmController&ctrl){ KASM::GRAPHICS::InitGraphics(ctrl); }
24.777778
51
0.726457
knoxaramav2
9579502c15e235c8d916c537e50edde00da63ec2
419
cpp
C++
Plugins/VisCreationHelper/Source/VisCreationHelper/Private/PerfomanceStats/VCHTimerCounter.cpp
Mihalo15z/VisCreationHelper
dcac82b304542a7d4768b2a292cc2408118bf4aa
[ "MIT" ]
null
null
null
Plugins/VisCreationHelper/Source/VisCreationHelper/Private/PerfomanceStats/VCHTimerCounter.cpp
Mihalo15z/VisCreationHelper
dcac82b304542a7d4768b2a292cc2408118bf4aa
[ "MIT" ]
null
null
null
Plugins/VisCreationHelper/Source/VisCreationHelper/Private/PerfomanceStats/VCHTimerCounter.cpp
Mihalo15z/VisCreationHelper
dcac82b304542a7d4768b2a292cc2408118bf4aa
[ "MIT" ]
1
2022-01-17T10:07:17.000Z
2022-01-17T10:07:17.000Z
#include "PerfomanceStats/VCHTimerCounter.h" DECLARE_LOG_CATEGORY_CLASS(VCH_PerfomansceLog, Log, All); FVCHTimeConter::FVCHTimeConter(const FString & InCounterInfo) :CounterInfo(InCounterInfo) { StartCicles = FPlatformTime::Cycles(); } FVCHTimeConter::~FVCHTimeConter() { UE_LOG(VCH_PerfomansceLog, Log, TEXT("%s: t...
29.928571
140
0.782816
Mihalo15z
957d6b554cc3aabcff4165c63897e11974d3a6fc
250
hpp
C++
dali/sasha/saxref.hpp
miguelvazq/HPCC-Platform
22ad8e5fcb59626abfd8febecbdfccb1e9fb0aa5
[ "Apache-2.0" ]
286
2015-01-03T12:45:17.000Z
2022-03-25T18:12:57.000Z
dali/sasha/saxref.hpp
miguelvazq/HPCC-Platform
22ad8e5fcb59626abfd8febecbdfccb1e9fb0aa5
[ "Apache-2.0" ]
9,034
2015-01-02T08:49:19.000Z
2022-03-31T20:34:44.000Z
dali/sasha/saxref.hpp
cloLN/HPCC-Platform
42ffb763a1cdcf611d3900831973d0a68e722bbe
[ "Apache-2.0" ]
208
2015-01-02T03:27:28.000Z
2022-02-11T05:54:52.000Z
#ifndef SAXREFIF_HPP #define SAXREFIF_HPP interface ISashaServer; interface ISashaCommand; extern ISashaServer *createSashaXrefServer(); extern void processXRefRequest(ISashaCommand *cmd); extern ISashaServer *createSashaFileExpiryServer(); #endif
22.727273
51
0.848
miguelvazq
9582a7a99cc88a427c7710ab064a6b9116c05ba3
428
hpp
C++
Source/Shader.hpp
claytonkanderson/Fractus
c4012cc40ee81ac042edcc5461c48e02456bcbd0
[ "MIT" ]
null
null
null
Source/Shader.hpp
claytonkanderson/Fractus
c4012cc40ee81ac042edcc5461c48e02456bcbd0
[ "MIT" ]
null
null
null
Source/Shader.hpp
claytonkanderson/Fractus
c4012cc40ee81ac042edcc5461c48e02456bcbd0
[ "MIT" ]
null
null
null
// // Shader.hpp // Fracturing // // Created by Clayton Anderson on 4/16/17. // Copyright © 2017 Clayton Anderson. All rights reserved. // #pragma once #include <fstream> #include <iostream> #include <string> #include <vector> #include <GL/glew.h> #include <GLFW/glfw3.h> #include <glm/mat4x4.hpp> #include <glm/g...
20.380952
82
0.726636
claytonkanderson
9582df70e25512b93c6c1d0601032a3c4562f57f
14,410
cpp
C++
tools/quantization/opttools/quantized_model_optimize.cpp
JujuDel/MNN
8a82f5c5a7ae37192784c2dbd6dfc8ca8833565a
[ "Apache-2.0" ]
2
2020-12-15T13:56:31.000Z
2022-01-26T03:20:28.000Z
tools/quantization/opttools/quantized_model_optimize.cpp
JujuDel/MNN
8a82f5c5a7ae37192784c2dbd6dfc8ca8833565a
[ "Apache-2.0" ]
null
null
null
tools/quantization/opttools/quantized_model_optimize.cpp
JujuDel/MNN
8a82f5c5a7ae37192784c2dbd6dfc8ca8833565a
[ "Apache-2.0" ]
1
2021-11-24T06:26:27.000Z
2021-11-24T06:26:27.000Z
#include "MNN_generated.h" #include <MNN/MNNDefine.h> #include <fstream> #include <sstream> #include <memory> #include <map> #include <queue> #include <set> using namespace MNN; //#define OPT_SHAPE_TRANSFORM static bool reIndex(MNN::NetT* mNet) { std::map<int, int> usefulTensorIndexMap; std::vector<std::string>...
39.264305
119
0.540389
JujuDel
9585b39d1666335cf42c47767b455d9ffda41564
3,525
cpp
C++
DeferredShading/DeferredShading/Renderer.cpp
yanghyunchan/2014_OperationBluehole
188b61dea134d4f8e37aff514cda3601f5f2a294
[ "MIT" ]
null
null
null
DeferredShading/DeferredShading/Renderer.cpp
yanghyunchan/2014_OperationBluehole
188b61dea134d4f8e37aff514cda3601f5f2a294
[ "MIT" ]
null
null
null
DeferredShading/DeferredShading/Renderer.cpp
yanghyunchan/2014_OperationBluehole
188b61dea134d4f8e37aff514cda3601f5f2a294
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "Renderer.h" #include "App.h" #include "Logger.h" #include "RSManager.h" #include "LightManager.h" Renderer::Renderer() { } Renderer::~Renderer() { DestroyDevice(); } BOOL Renderer::Init() { HWND hWnd = App::GetInstance()->GetHandleMainWindow(); if (!CreateDevic...
23.344371
114
0.704397
yanghyunchan
9587752c5a95185648b09b1a5feef0e5bc73ee54
8,501
cpp
C++
Chapter3/GL01_APIWrapping/src/GLAPITrace.cpp
adoug/3D-Graphics-Rendering-Cookbook
dabffed670b8be5a619f0f62b10e0cc8ccdd5a36
[ "MIT" ]
399
2021-06-03T02:42:20.000Z
2022-03-27T23:23:15.000Z
Chapter3/GL01_APIWrapping/src/GLAPITrace.cpp
adoug/3D-Graphics-Rendering-Cookbook
dabffed670b8be5a619f0f62b10e0cc8ccdd5a36
[ "MIT" ]
7
2021-07-13T02:36:01.000Z
2022-03-26T03:46:37.000Z
Chapter3/GL01_APIWrapping/src/GLAPITrace.cpp
adoug/3D-Graphics-Rendering-Cookbook
dabffed670b8be5a619f0f62b10e0cc8ccdd5a36
[ "MIT" ]
53
2021-06-02T20:02:24.000Z
2022-03-29T15:36:30.000Z
#include <assert.h> #include "GL.h" #include "GLAPITrace.h" #define W( en ) if ( e == en ) return #en; std::string Enum2String(GLenum e) { /* BeginMode */ W(GL_POINTS); W(GL_LINES); W(GL_LINE_LOOP); W(GL_LINE_STRIP); W(GL_TRIANGLES); W(GL_TRIANGLE_STRIP); W(GL_TRIANGLE_FAN); /* BlendingFactorDest */ W(GL...
20.683698
52
0.764616
adoug
9590f35960698ec5baec6d3f40b7936858cd28b8
1,683
cpp
C++
enshellcode.cpp
3gstudent/Shellcode-Generater
ca992ef1a5493e908bce18327c3efc1aeeb4c5f4
[ "BSD-3-Clause" ]
61
2017-01-19T07:40:24.000Z
2022-03-14T18:56:27.000Z
enshellcode.cpp
3gstudent/Shellcode-Generater
ca992ef1a5493e908bce18327c3efc1aeeb4c5f4
[ "BSD-3-Clause" ]
null
null
null
enshellcode.cpp
3gstudent/Shellcode-Generater
ca992ef1a5493e908bce18327c3efc1aeeb4c5f4
[ "BSD-3-Clause" ]
35
2017-01-19T07:40:30.000Z
2022-03-14T18:56:30.000Z
#include <windows.h> size_t GetSize(char * szFilePath) { size_t size; FILE* f = fopen(szFilePath, "rb"); fseek(f, 0, SEEK_END); size = ftell(f); rewind(f); fclose(f); return size; } unsigned char* ReadBinaryFile(char *szFilePath, size_t *size) { unsigned char *p = NULL; FILE* f = NULL; size_t r...
21.0375
99
0.586453
3gstudent
d2e60056a68e23bf365edb4411447e7794d5552f
6,434
cpp
C++
tests/test_vec3.cpp
stephen-sorley/obvi
ead96e23dfd9ffba35590b3a035556eeb093d9a8
[ "MIT" ]
null
null
null
tests/test_vec3.cpp
stephen-sorley/obvi
ead96e23dfd9ffba35590b3a035556eeb093d9a8
[ "MIT" ]
null
null
null
tests/test_vec3.cpp
stephen-sorley/obvi
ead96e23dfd9ffba35590b3a035556eeb093d9a8
[ "MIT" ]
null
null
null
/* Unit tests for vec3 (util library). * * * * * * * * * * * * * * The MIT License (MIT) * * Copyright (c) 2019 Stephen Sorley * * 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 Softw...
28.981982
91
0.494871
stephen-sorley
d2e7346e5842d06158d5b731f4695a17f846f84c
1,080
cc
C++
src/commands/heapdump/heap_snapshot.cc
rickyes/xprofiler
536160b955daa36b6953f3856e11149218ef1390
[ "BSD-2-Clause" ]
249
2020-05-22T14:25:36.000Z
2022-03-29T02:30:18.000Z
src/commands/heapdump/heap_snapshot.cc
rickyes/xprofiler
536160b955daa36b6953f3856e11149218ef1390
[ "BSD-2-Clause" ]
97
2020-05-29T06:10:04.000Z
2022-03-31T10:14:59.000Z
src/commands/heapdump/heap_snapshot.cc
rickyes/xprofiler
536160b955daa36b6953f3856e11149218ef1390
[ "BSD-2-Clause" ]
39
2020-06-11T08:45:35.000Z
2022-03-15T07:29:53.000Z
#include "heap_snapshot.h" #include "../../library/writer.h" #include "../../logger.h" namespace xprofiler { using v8::OutputStream; class FileOutputStream : public OutputStream { public: FileOutputStream(FILE *stream) : stream_(stream) {} virtual int GetChunkSize() { return 65536; // big chunks == faster...
24
72
0.660185
rickyes
d2e7839d96e9324465863c5e0aeebbe4e48d3442
9,579
cpp
C++
build/moc/moc_VideoReceiver.cpp
UNIST-ESCL/UNIST_GCS
f61f0c12bbb028869e4494f507ea8ab52c8c79c2
[ "Apache-2.0" ]
1
2018-11-07T06:10:53.000Z
2018-11-07T06:10:53.000Z
build/moc/moc_VideoReceiver.cpp
UNIST-ESCL/UNIST_GCS
f61f0c12bbb028869e4494f507ea8ab52c8c79c2
[ "Apache-2.0" ]
null
null
null
build/moc/moc_VideoReceiver.cpp
UNIST-ESCL/UNIST_GCS
f61f0c12bbb028869e4494f507ea8ab52c8c79c2
[ "Apache-2.0" ]
1
2018-11-07T06:10:47.000Z
2018-11-07T06:10:47.000Z
/**************************************************************************** ** Meta object code from reading C++ file 'VideoReceiver.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.3) ** ** WARNING! All changes made in this file will be lost! *******************************************************...
33.493007
107
0.598288
UNIST-ESCL
d2e91391e42c5312372509b2bb141c1a7d383ec3
4,090
cpp
C++
src/gdb_server.cpp
Cytosine2020/neutron
1c3db597d8a4027a03f1201c0ffb255a831a246c
[ "MIT" ]
2
2020-09-03T13:36:55.000Z
2022-03-19T17:54:36.000Z
src/gdb_server.cpp
Cytosine2020/neutron
1c3db597d8a4027a03f1201c0ffb255a831a246c
[ "MIT" ]
null
null
null
src/gdb_server.cpp
Cytosine2020/neutron
1c3db597d8a4027a03f1201c0ffb255a831a246c
[ "MIT" ]
null
null
null
#include "gdb_server.hpp" #include <unistd.h> #include <sys/socket.h> #include <netinet/in.h> #include <ostream> #include "neutron_utility.hpp" namespace neutron { bool GDBServer::Buffer::receive(int socket) { if (begin_ < end_ && begin_ > 0) { for (usize i = begin_; i < end_; ++i) { array[...
25.72327
96
0.51198
Cytosine2020
d2ea4e3b00573bdd4382469a615e62247c72b75d
645
hpp
C++
modules/procedural/source/blub/procedural/log/global.hpp
qwertzui11/voxelTerrain
05038fb261893dd044ae82fab96b7708ea5ed623
[ "MIT" ]
96
2015-02-02T20:01:24.000Z
2021-11-14T20:33:29.000Z
modules/procedural/source/blub/procedural/log/global.hpp
qwertzui11/voxelTerrain
05038fb261893dd044ae82fab96b7708ea5ed623
[ "MIT" ]
12
2016-06-04T15:45:30.000Z
2020-02-04T11:10:51.000Z
modules/procedural/source/blub/procedural/log/global.hpp
qwertzui11/voxelTerrain
05038fb261893dd044ae82fab96b7708ea5ed623
[ "MIT" ]
19
2015-09-22T01:21:45.000Z
2020-09-30T09:52:27.000Z
#ifndef BLUB_PROCEDURAL_LOG_GLOBAL_HPP #define BLUB_PROCEDURAL_LOG_GLOBAL_HPP #include "blub/log/global.hpp" #include "blub/log/globalLogger.hpp" #include "blub/log/logger.hpp" #include "blub/log/predecl.hpp" namespace blub { namespace procedural { namespace log { BLUB_LOG_GLOBAL_LOGGER(global, blub::log::logger) } ...
23.035714
95
0.795349
qwertzui11
d2ee01391bcdf7ee82c7a630fc56fcefc34731e7
7,327
cpp
C++
tester/g_ult/unit_tests/cpu/test_cases/cpu_layer_softmax.cpp
davenso/idlf
df34a6b88c1ff1880fbb2b58caccd6075dd414a5
[ "BSD-3-Clause" ]
1
2015-12-04T21:01:27.000Z
2015-12-04T21:01:27.000Z
tester/g_ult/unit_tests/cpu/test_cases/cpu_layer_softmax.cpp
davenso/idlf
df34a6b88c1ff1880fbb2b58caccd6075dd414a5
[ "BSD-3-Clause" ]
null
null
null
tester/g_ult/unit_tests/cpu/test_cases/cpu_layer_softmax.cpp
davenso/idlf
df34a6b88c1ff1880fbb2b58caccd6075dd414a5
[ "BSD-3-Clause" ]
null
null
null
/* Copyright (c) 2014, Intel Corporation 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 following disclaime...
31.718615
134
0.653746
davenso
d2f1e8a9a135b0da04a661fa80c256bcac7c48c1
9,611
cpp
C++
src/main.cpp
csc-std/routine
16e74628eb4815a816fb8eecbbe8e5fe2ad55daa
[ "MIT" ]
null
null
null
src/main.cpp
csc-std/routine
16e74628eb4815a816fb8eecbbe8e5fe2ad55daa
[ "MIT" ]
null
null
null
src/main.cpp
csc-std/routine
16e74628eb4815a816fb8eecbbe8e5fe2ad55daa
[ "MIT" ]
null
null
null
#include "util.h" using namespace UNITTEST ; namespace UNITTEST { template <class U> struct GN_sqrt_mFirstY { DOUBLE mFirstY ; Scope<GN_sqrt_mFirstY> mHandle ; explicit GN_sqrt_mFirstY (VREF<SyntaxTree> me) { me.mark_as_iteration () ; me.then (Function<void> ([&] () { mFirstY = me.later (TYPEAS<DOUBLE>::...
30.511111
103
0.655499
csc-std
d2f25c92265d7d680c5b5fb7187d406c4b75d3d4
3,451
cpp
C++
Sources/engine/engine/private/engine/Engine.cpp
Zino2201/ZinoEngine
519d34a1d2b09412c8e2cba6b685b4556ec2c2ac
[ "MIT" ]
20
2019-12-22T20:40:22.000Z
2021-07-06T00:23:45.000Z
Sources/engine/engine/private/engine/Engine.cpp
Zino2201/ZinoEngine
519d34a1d2b09412c8e2cba6b685b4556ec2c2ac
[ "MIT" ]
32
2020-07-11T15:51:13.000Z
2021-06-07T10:25:07.000Z
Sources/engine/engine/private/engine/Engine.cpp
Zino2201/ZinoEngine
519d34a1d2b09412c8e2cba6b685b4556ec2c2ac
[ "MIT" ]
3
2019-12-19T17:04:04.000Z
2021-05-17T01:49:59.000Z
#include "engine/Engine.h" #include "module/Module.h" #include "module/ModuleManager.h" #include "engine/TickSystem.h" #include "profiling/Profiling.h" #include "console/Console.h" #include <SDL.h> #include "engine/InputSystem.h" #include "module/Module.h" #include "assetdatabase/AssetDatabase.h" namespace ze { stati...
22.121795
133
0.722689
Zino2201
d2f2a2afd2e868f8c599c400ab9fbbe6f347e299
12,000
hpp
C++
src/utility.hpp
bkentel/boken-old
8967856be5f283989d0c10843bcb739728423152
[ "MIT" ]
null
null
null
src/utility.hpp
bkentel/boken-old
8967856be5f283989d0c10843bcb739728423152
[ "MIT" ]
null
null
null
src/utility.hpp
bkentel/boken-old
8967856be5f283989d0c10843bcb739728423152
[ "MIT" ]
1
2020-04-11T12:20:00.000Z
2020-04-11T12:20:00.000Z
#pragma once #include "config.hpp" //string_view #include <bkassert/assert.hpp> #include <type_traits> #include <algorithm> #include <array> #include <functional> #include <utility> #include <memory> #include <cstddef> #include <cstdint> namespace boken { namespace detail { template <typename Container, typename C...
28.436019
101
0.6165
bkentel
d2f79d0ccf37336b91b25491691596d601dca514
49
cxx
C++
libs/cg_nui/surfel_container.cxx
IXDdev/IXD_engine
497c1fee90e486c19debc5347b740b56b1fef416
[ "BSD-3-Clause" ]
11
2017-09-30T12:21:55.000Z
2021-04-29T21:31:57.000Z
libs/cg_nui/surfel_container.cxx
IXDdev/IXD_engine
497c1fee90e486c19debc5347b740b56b1fef416
[ "BSD-3-Clause" ]
2
2017-07-11T11:20:08.000Z
2018-03-27T12:09:02.000Z
libs/cg_nui/surfel_container.cxx
IXDdev/IXD_engine
497c1fee90e486c19debc5347b740b56b1fef416
[ "BSD-3-Clause" ]
24
2018-03-27T11:46:16.000Z
2021-05-01T20:28:34.000Z
#include "surfel_container.h" // TODO: implement
16.333333
29
0.755102
IXDdev
d2f9e5afc7cd122b4ed8de4a0ecd19ae123b127a
1,416
cpp
C++
AlphaEngine/Source/Scripting/LuaVar.cpp
Sh1ft0/alpha
6726d366f0c8d2e1434b87f815b2644ebf170adf
[ "Apache-2.0" ]
null
null
null
AlphaEngine/Source/Scripting/LuaVar.cpp
Sh1ft0/alpha
6726d366f0c8d2e1434b87f815b2644ebf170adf
[ "Apache-2.0" ]
null
null
null
AlphaEngine/Source/Scripting/LuaVar.cpp
Sh1ft0/alpha
6726d366f0c8d2e1434b87f815b2644ebf170adf
[ "Apache-2.0" ]
null
null
null
/** Copyright 2014-2015 Jason R. Wendlandt 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 in writing, sof...
27.230769
84
0.664548
Sh1ft0
d2fb38a80612a4f2ad85fa926c0fe4112c7295b9
716
hpp
C++
include/molecular.hpp
grasingerm/port-authority
51db6b09d6a1545eafeaf6be037a23d47313c490
[ "MIT" ]
null
null
null
include/molecular.hpp
grasingerm/port-authority
51db6b09d6a1545eafeaf6be037a23d47313c490
[ "MIT" ]
null
null
null
include/molecular.hpp
grasingerm/port-authority
51db6b09d6a1545eafeaf6be037a23d47313c490
[ "MIT" ]
null
null
null
#ifndef __MOLECULAR_HPP__ #define __MOLECULAR_HPP__ #include "pauth_types.hpp" #include "unordered_pair.hpp" #include <unordered_map> namespace pauth { enum class molecular_id { Ar, Cu, H, O, C, Test, Test1, Test2 }; using molecular_name_map = std::unordered_map<std::string, molecular_id>; extern const molecular_na...
25.571429
82
0.74162
grasingerm
d2fe497101c59db89f5e757c5201f8312f339003
226
cpp
C++
acwing/0717.cpp
zyzisyz/OJ
55221a55515231182b6bd133edbdb55501a565fc
[ "Apache-2.0" ]
null
null
null
acwing/0717.cpp
zyzisyz/OJ
55221a55515231182b6bd133edbdb55501a565fc
[ "Apache-2.0" ]
null
null
null
acwing/0717.cpp
zyzisyz/OJ
55221a55515231182b6bd133edbdb55501a565fc
[ "Apache-2.0" ]
2
2020-01-01T13:49:08.000Z
2021-03-06T06:54:26.000Z
#include<iostream> using namespace std; int f[50]; int main(void){ int n; cin>>n; f[0] = 0; f[1] = 1; for(int i=2; i<n; i++){ f[i] = f[i-1]+f[i-2]; } for(int i=0; i<n; i++){ cout<<f[i]<<" "; } cout<<endl; }
9.826087
24
0.473451
zyzisyz
9603f5ed110e157362f45ee4f58cb664d4919beb
3,149
cc
C++
src/automaton/tests/crypto/test_Keccak_256_cryptopp.cc
automaton-network/automaton
34f6df278dc71d11340084c3487564ab58b04c2e
[ "MIT" ]
2
2018-12-19T18:01:14.000Z
2019-03-29T12:54:41.000Z
src/automaton/tests/crypto/test_Keccak_256_cryptopp.cc
automaton-network/automaton
34f6df278dc71d11340084c3487564ab58b04c2e
[ "MIT" ]
3
2018-12-20T17:44:31.000Z
2020-03-25T16:45:04.000Z
src/automaton/tests/crypto/test_Keccak_256_cryptopp.cc
automaton-network/automaton
34f6df278dc71d11340084c3487564ab58b04c2e
[ "MIT" ]
2
2020-03-12T13:33:10.000Z
2020-03-22T00:48:51.000Z
#include <cryptopp/cryptlib.h> #include <cryptopp/keccak.h> #include <cryptopp/hex.h> #include <cryptopp/filters.h> #include <string> #include "automaton/core/crypto/cryptopp/Keccak_256_cryptopp.h" #include "automaton/core/crypto/hash_transformation.h" #include "automaton/core/io/io.h" #include "gtest/gtest.h" usin...
34.988889
89
0.755478
automaton-network
960634c731a2413e1e4df7fb0f6868ec71e19018
1,715
cxx
C++
Testing/selxDataManager.cxx
FBerendsen/SuperElastix-1
69d97589e34f6f2109621e917792ce18e32442fe
[ "Apache-2.0" ]
null
null
null
Testing/selxDataManager.cxx
FBerendsen/SuperElastix-1
69d97589e34f6f2109621e917792ce18e32442fe
[ "Apache-2.0" ]
null
null
null
Testing/selxDataManager.cxx
FBerendsen/SuperElastix-1
69d97589e34f6f2109621e917792ce18e32442fe
[ "Apache-2.0" ]
null
null
null
/*========================================================================= * * Copyright Leiden University Medical Center, Erasmus University Medical * Center and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License...
30.087719
101
0.674636
FBerendsen
9609b68b248bbcf6790467bdbacdb5302ab865da
1,396
cpp
C++
Chapter-6-Functions/Review Questions and Exercises/Programming Challenges/23.cpp
jesushilarioh/C-Plus-Plus
bbff921460ac4267af48558f040c7d82ccf42d5e
[ "MIT" ]
3
2019-10-28T01:12:46.000Z
2021-10-16T09:16:31.000Z
Chapter-6-Functions/Review Questions and Exercises/Programming Challenges/23.cpp
jesushilarioh/C-Plus-Plus
bbff921460ac4267af48558f040c7d82ccf42d5e
[ "MIT" ]
null
null
null
Chapter-6-Functions/Review Questions and Exercises/Programming Challenges/23.cpp
jesushilarioh/C-Plus-Plus
bbff921460ac4267af48558f040c7d82ccf42d5e
[ "MIT" ]
4
2020-04-10T17:22:17.000Z
2021-11-04T14:34:00.000Z
/************************************************************ * * 23. Prime Number List * * Use the isPrime function that you wrote in Programming * Challenge 22 in a program that stores a list of all * the prime numbers from 1 through 100 in a file. * * Jesus Hilario Hernandez * December...
22.885246
63
0.437679
jesushilarioh
960d1fd91f48fbeb3609a53dcb4c3fdb9b09bf4d
476
cc
C++
sieve2015/src/tst_sieve_bit_table.cc
mhdeleglise/Gh
21a0b9bd53ae9de17f8b99040cac95cd6e1897e4
[ "MIT" ]
null
null
null
sieve2015/src/tst_sieve_bit_table.cc
mhdeleglise/Gh
21a0b9bd53ae9de17f8b99040cac95cd6e1897e4
[ "MIT" ]
null
null
null
sieve2015/src/tst_sieve_bit_table.cc
mhdeleglise/Gh
21a0b9bd53ae9de17f8b99040cac95cd6e1897e4
[ "MIT" ]
null
null
null
#include<mylib.h> #include"../Include/sieve_slices.h" int main(int argc, char* argv[]) { long32 wsize = (argc==2)? atoi(argv[1]) : 100; presieved_primes::init_prime_table(1000,3); cout << "Sieve par tranche avec crible d'Eratosthène automatique\n"; sieve_by_slice<bit_table,long64> sl(2,1,wsize,0,6, AUTO_SIEVE...
25.052632
70
0.644958
mhdeleglise
961569204d83b05767f48e91acd8cd62dd6563b8
1,588
hpp
C++
include/mbgl/geometry/geometry.hpp
free1978/mapbox-gl-native
2a50fccd24e762d0de5a53bac358e5ddfea8d213
[ "BSD-2-Clause" ]
2
2017-02-28T22:41:54.000Z
2020-02-13T20:54:55.000Z
include/mbgl/geometry/geometry.hpp
free1978/mapbox-gl-native
2a50fccd24e762d0de5a53bac358e5ddfea8d213
[ "BSD-2-Clause" ]
null
null
null
include/mbgl/geometry/geometry.hpp
free1978/mapbox-gl-native
2a50fccd24e762d0de5a53bac358e5ddfea8d213
[ "BSD-2-Clause" ]
null
null
null
#ifndef MBGL_GEOMETRY_GEOMETRY #define MBGL_GEOMETRY_GEOMETRY #include <mbgl/util/pbf.hpp> #include <mbgl/util/noncopyable.hpp> #include <cstdlib> namespace mbgl { class Geometry : private util::noncopyable { public: inline explicit Geometry(pbf& data); enum command : uint8_t { end = 0, mo...
20.358974
71
0.493703
free1978
9617e0b6a859f09ae2edac9f830c28ff03cd67c9
4,998
cpp
C++
lib/cover/cover.cpp
spookey/full_power
a1c603da0ec552d15ee79ff1806e32619424a332
[ "MIT" ]
null
null
null
lib/cover/cover.cpp
spookey/full_power
a1c603da0ec552d15ee79ff1806e32619424a332
[ "MIT" ]
null
null
null
lib/cover/cover.cpp
spookey/full_power
a1c603da0ec552d15ee79ff1806e32619424a332
[ "MIT" ]
null
null
null
#include "cover.hpp" Cover::Cover(Cable& txt, Shell& exe, Flash& ini) : txt(txt), exe(exe), ini(ini) {} void Cover::setup(void) { if (!WiFi.mode(WIFI_STA)) { this->txt.sos("wifi error", true); } this->apply(); this->exe.add(this, &Cover::cmd_dialup, "wdial", "wifi dialup"); this->exe.add(this, &Cover:...
35.446809
70
0.572429
spookey
961a80fab4c34c5d50cfbb2aabb1c5c8c59f5a4f
8,222
cpp
C++
gui/tool-bar.cpp
lukas-ke/faint-graphics-editor
33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf
[ "Apache-2.0" ]
10
2016-12-28T22:06:31.000Z
2021-05-24T13:42:30.000Z
gui/tool-bar.cpp
lukas-ke/faint-graphics-editor
33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf
[ "Apache-2.0" ]
4
2015-10-09T23:55:10.000Z
2020-04-04T08:09:22.000Z
gui/tool-bar.cpp
lukas-ke/faint-graphics-editor
33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf
[ "Apache-2.0" ]
null
null
null
// -*- coding: us-ascii-unix -*- // Copyright 2012 Lukas Kemmer // // 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 a...
27.406667
80
0.658721
lukas-ke
961da7e11f5eb214302d009f5624b574a4979a27
414
hpp
C++
trader/tools/PreprocessorOptions.hpp
joshuakarbi/trader
07f3ecf1f0eefd800464e2dfe9ee27b58c15254f
[ "MIT" ]
11
2019-01-10T19:34:14.000Z
2019-09-24T05:30:03.000Z
trader/tools/PreprocessorOptions.hpp
joshuakarbi/trader
07f3ecf1f0eefd800464e2dfe9ee27b58c15254f
[ "MIT" ]
8
2019-01-10T21:18:23.000Z
2019-02-12T20:11:56.000Z
trader/tools/PreprocessorOptions.hpp
joshuakarbi/trader
07f3ecf1f0eefd800464e2dfe9ee27b58c15254f
[ "MIT" ]
2
2019-01-10T19:37:10.000Z
2019-07-12T01:49:18.000Z
#include <exception> // override rapidjson assertions to throw exceptions instead // this is better #ifndef RAPIDJSON_ASSERT #define RAPIDJSON_ASSERT(x) if(!(x)){ \ throw std::runtime_error("ERROR: rapidjson internal assertion failure: " #x); } #endif // required for paper trading vs. real url to be used #define P...
24.352941
81
0.743961
joshuakarbi
9620151bddeb826f190047268d1a0e3323664403
2,121
cpp
C++
Projetos/Aula16/main.cpp
chaua/programacao-avancada
4f580006d6e7e79e1bb6b32a62702eda3daa5874
[ "MIT" ]
15
2018-04-05T00:15:01.000Z
2022-03-26T00:08:32.000Z
Projetos/Aula16/main.cpp
chaua/programacao-avancada
4f580006d6e7e79e1bb6b32a62702eda3daa5874
[ "MIT" ]
null
null
null
Projetos/Aula16/main.cpp
chaua/programacao-avancada
4f580006d6e7e79e1bb6b32a62702eda3daa5874
[ "MIT" ]
7
2018-03-23T00:11:56.000Z
2020-05-05T02:55:44.000Z
#include <iostream> #include <fstream> #include <string> #include "data.h" #include "data_dao.h" using namespace std; // ARQUIVOS // - Caminho Absoluto: // - Realiza a busca do arquivo a partir da raiz do sistema operacional // - Utiliza o caminho inteiro do arquivo // - Precisa conhecer a estrutura ...
25.554217
76
0.548326
chaua
9628f2598883bdefd15c3295e6e4514d01cff0af
8,569
hpp
C++
include/MCTS/MCTS.hpp
gress2/symreg
345071111bf2f030ff42d7f1325151abf78eca12
[ "MIT" ]
null
null
null
include/MCTS/MCTS.hpp
gress2/symreg
345071111bf2f030ff42d7f1325151abf78eca12
[ "MIT" ]
null
null
null
include/MCTS/MCTS.hpp
gress2/symreg
345071111bf2f030ff42d7f1325151abf78eca12
[ "MIT" ]
null
null
null
#pragma once #include <algorithm> #include <fstream> #include <iostream> #include <map> #include <memory> #include <queue> #include <random> #include <unordered_map> #include <vector> #include "brick.hpp" #include "dataset.hpp" #include "loss.hpp" #include "training_example.hpp" #include "util.hpp" #include "MCTS/sc...
26.204893
81
0.681993
gress2
962aa251123eb7fb2b26abbdccd127e06b9aa338
4,707
hpp
C++
src/ngraph/runtime/cpu/pass/cpu_fusion.hpp
tzerrell/ngraph
b02b0812745ca1cb5f73d426ae9e0ad729eb0bbd
[ "Apache-2.0" ]
null
null
null
src/ngraph/runtime/cpu/pass/cpu_fusion.hpp
tzerrell/ngraph
b02b0812745ca1cb5f73d426ae9e0ad729eb0bbd
[ "Apache-2.0" ]
null
null
null
src/ngraph/runtime/cpu/pass/cpu_fusion.hpp
tzerrell/ngraph
b02b0812745ca1cb5f73d426ae9e0ad729eb0bbd
[ "Apache-2.0" ]
null
null
null
//***************************************************************************** // Copyright 2017-2019 Intel Corporation // // 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://w...
34.357664
100
0.657106
tzerrell
96335137b48dde4b2aea5a746e46240bcb2b8698
7,495
cpp
C++
simulation/Simulation.cpp
walachey/football-worldcup-simulator
36e6f80e3498b4a4dc7b8bf18d45af6c95a8fbe7
[ "MIT" ]
1
2018-08-14T08:15:47.000Z
2018-08-14T08:15:47.000Z
simulation/Simulation.cpp
walachey/football-worldcup-simulator
36e6f80e3498b4a4dc7b8bf18d45af6c95a8fbe7
[ "MIT" ]
2
2020-01-22T07:17:46.000Z
2020-01-22T07:17:54.000Z
simulation/Simulation.cpp
walachey/football-worldcup-simulator
36e6f80e3498b4a4dc7b8bf18d45af6c95a8fbe7
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "Simulation.h" #include <thread> #include <chrono> namespace sim { Simulation *Simulation::singleton = nullptr; void Simulation::reset() { assert(Simulation::singleton == nullptr); Simulation::singleton = this; numberOfThreads = 1; tournamentID = 0; randomSeed = (unsigned int)std:...
29.050388
117
0.70567
walachey
963ce0e2c4978bd9501a55fe22131ebff42e7a01
3,539
cpp
C++
Jamma/src/Main.cpp
malisimo/Jamma
69831e79a64e652e82aa41f8141e082c3899896b
[ "MIT" ]
null
null
null
Jamma/src/Main.cpp
malisimo/Jamma
69831e79a64e652e82aa41f8141e082c3899896b
[ "MIT" ]
null
null
null
Jamma/src/Main.cpp
malisimo/Jamma
69831e79a64e652e82aa41f8141e082c3899896b
[ "MIT" ]
null
null
null
/////////////////////////////////////////////////////////// // // Copyright(c) 2018-2019 Matt Jones // Subject to the MIT license, see LICENSE file. // /////////////////////////////////////////////////////////// #include "Main.h" #include "Window.h" #include "PathUtils.h" #include "../io/TextReadWriter.h" #include ".....
21.579268
102
0.659226
malisimo
9640e1097c204a196f850ce686d3ad76fd9b5e4d
1,048
hpp
C++
src/CError.hpp
Vince0789/SA-MP-MySQL
9524fcc9088004948770ddd6e05a6074581d3095
[ "BSD-3-Clause" ]
182
2015-01-17T09:55:05.000Z
2022-03-30T13:08:48.000Z
src/CError.hpp
Tuise233/SA-MP-MySQL
a8113cd3a7b5dcee1002622c5901ff78e3e6e3fe
[ "BSD-3-Clause" ]
226
2015-01-01T12:22:11.000Z
2022-02-18T20:36:37.000Z
src/CError.hpp
Tuise233/SA-MP-MySQL
a8113cd3a7b5dcee1002622c5901ff78e3e6e3fe
[ "BSD-3-Clause" ]
149
2015-01-05T16:42:45.000Z
2022-03-26T22:04:24.000Z
#pragma once #include <string> #include <fmt/format.h> using std::string; template<typename T> class CError { using ErrorType = typename T::Error; public: CError() : m_Type(ErrorType::NONE) { } CError(ErrorType type, string &&msg) : m_Type(type), m_Message(std::move(msg)) { } template<typename... Args> ...
16.903226
69
0.659351
Vince0789
9644b8367042090055f72412600c5c3445ee6bd0
1,188
cpp
C++
src/prod/src/ServiceModel/ProvisionedFabricCodeVersionQueryResultItem.cpp
vishnuk007/service-fabric
d0afdea185ae932cc3c9eacf179692e6fddbc630
[ "MIT" ]
2,542
2018-03-14T21:56:12.000Z
2019-05-06T01:18:20.000Z
src/prod/src/ServiceModel/ProvisionedFabricCodeVersionQueryResultItem.cpp
vishnuk007/service-fabric
d0afdea185ae932cc3c9eacf179692e6fddbc630
[ "MIT" ]
994
2019-05-07T02:39:30.000Z
2022-03-31T13:23:04.000Z
src/prod/src/ServiceModel/ProvisionedFabricCodeVersionQueryResultItem.cpp
vishnuk007/service-fabric
d0afdea185ae932cc3c9eacf179692e6fddbc630
[ "MIT" ]
300
2018-03-14T21:57:17.000Z
2019-05-06T20:07:00.000Z
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" using nam...
31.263158
117
0.714646
vishnuk007
9647fe7c5acc92e8db0b91caa67a37662d46364d
2,141
cc
C++
flare/testing/redis_mock_test.cc
AriCheng/flare
b2c84588fe4ac52f0875791d22284d7e063fd057
[ "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
868
2021-05-28T04:00:22.000Z
2022-03-31T08:57:14.000Z
flare/testing/redis_mock_test.cc
AriCheng/flare
b2c84588fe4ac52f0875791d22284d7e063fd057
[ "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
33
2021-05-28T08:44:47.000Z
2021-09-26T13:09:21.000Z
flare/testing/redis_mock_test.cc
AriCheng/flare
b2c84588fe4ac52f0875791d22284d7e063fd057
[ "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
122
2021-05-28T08:22:23.000Z
2022-03-29T09:52:09.000Z
// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this // file except in compliance with the License. You may obtain a copy of the // License at // // https://opensource.org/licenses/BSD-3-Clause // // Unless req...
33.453125
80
0.726296
AriCheng
964a78c866872ed3ebf3a5f76e755e953c6044af
784
cpp
C++
Recursion/39. Combination Sum/Soluition.cpp
VarunSAthreya/LeetCode-Solutions
aeab92df5bca208c2442ffdb1487fe5e3aadb3de
[ "MIT" ]
1
2021-11-24T16:20:32.000Z
2021-11-24T16:20:32.000Z
Recursion/39. Combination Sum/Soluition.cpp
VarunSAthreya/LeetCode-Solutions
aeab92df5bca208c2442ffdb1487fe5e3aadb3de
[ "MIT" ]
null
null
null
Recursion/39. Combination Sum/Soluition.cpp
VarunSAthreya/LeetCode-Solutions
aeab92df5bca208c2442ffdb1487fe5e3aadb3de
[ "MIT" ]
3
2021-09-03T15:14:12.000Z
2022-03-07T04:04:32.000Z
class Solution { public: vector<vector<int>> combinationSum(vector<int> &candidates, int target) { vector<vector<int>> res; if (candidates.size() == 0) return res; vector<int> ds; solve(candidates, target, res, ds, 0); return res; } void solve(vector<i...
26.133333
103
0.510204
VarunSAthreya
964cd89b95b7fcf7e07190110fc208074d425ec7
376
cpp
C++
kikilib/TimerEventService.cpp
YukangLiu/kikilib
a6b5d43e720186ac290eb9953f9c03ce4bb5386b
[ "MIT" ]
46
2019-12-05T16:35:59.000Z
2022-03-26T14:23:19.000Z
kikilib/TimerEventService.cpp
WoBuShiXiaoKang/kikilib
a6b5d43e720186ac290eb9953f9c03ce4bb5386b
[ "MIT" ]
1
2019-12-11T08:02:04.000Z
2019-12-19T14:28:05.000Z
kikilib/TimerEventService.cpp
WoBuShiXiaoKang/kikilib
a6b5d43e720186ac290eb9953f9c03ce4bb5386b
[ "MIT" ]
8
2019-12-06T11:08:19.000Z
2022-03-05T02:30:51.000Z
//@Author Liu Yukang #include "TimerEventService.h" using namespace kikilib; TimerEventService::TimerEventService(Socket& sock, EventManager* evMgr) : EventService(sock, evMgr) { } TimerEventService::TimerEventService(Socket&& sock, EventManager* evMgr) : EventService(std::move(sock), evMgr) { } void TimerEventS...
20.888889
72
0.757979
YukangLiu
965810bd0b47a5e8a4cbdff646c20d655fce0973
6,344
cpp
C++
Wing.cpp
ancientlore/wing
7a86926729a72f603b1ea43a4dd5c2e45a230c64
[ "MIT" ]
1
2021-09-19T21:48:40.000Z
2021-09-19T21:48:40.000Z
Wing.cpp
ancientlore/wing
7a86926729a72f603b1ea43a4dd5c2e45a230c64
[ "MIT" ]
null
null
null
Wing.cpp
ancientlore/wing
7a86926729a72f603b1ea43a4dd5c2e45a230c64
[ "MIT" ]
null
null
null
// Wing.cpp : main source file for Wing.exe // #include "stdafx.h" #include <atlframe.h> #include <atlctrls.h> #include <atldlgs.h> #include "resource.h" #include "LayeredWindow.h" volatile bool gTimeToQuit = false; typedef struct { UCHAR Ttl; UCHAR Tos; UCHAR Flags; UCHAR OptionsSize; PUCH...
26
183
0.667718
ancientlore
9659a1d55c8d410e0f909cb9c9dbdeac8964cafb
285
cc
C++
9_Palindrome_Number/Solution.cc
Samukawa-T1/LeetCode-Diary
551329796e7b6e8f9176d8cf85dc658b9211b7e9
[ "Apache-2.0" ]
null
null
null
9_Palindrome_Number/Solution.cc
Samukawa-T1/LeetCode-Diary
551329796e7b6e8f9176d8cf85dc658b9211b7e9
[ "Apache-2.0" ]
null
null
null
9_Palindrome_Number/Solution.cc
Samukawa-T1/LeetCode-Diary
551329796e7b6e8f9176d8cf85dc658b9211b7e9
[ "Apache-2.0" ]
null
null
null
class Solution { public: bool isPalindrome(int x){ if(x < 0 || (x % 10 == 0 && x != 0)) { return false; } int rev_last = 0; while(x > rev_last) { rev_last = rev_last * 10 + x % 10; x /= 10; } return x == rev_last || x == rev_last/10; } };
19
45
0.477193
Samukawa-T1
965a8b567a6db0c4dbb4aa4a9f8a2776971ad3d6
1,298
hpp
C++
tests/performance/point_type.hpp
Roboauto/spatial
fe652631eb5ec23a719bf1788c68cbd67060e12b
[ "BSL-1.0" ]
7
2015-12-07T02:10:23.000Z
2022-01-01T05:39:05.000Z
tests/performance/point_type.hpp
Roboauto/spatial
fe652631eb5ec23a719bf1788c68cbd67060e12b
[ "BSL-1.0" ]
1
2021-01-28T15:07:42.000Z
2021-01-28T15:07:42.000Z
tests/performance/point_type.hpp
Roboauto/spatial
fe652631eb5ec23a719bf1788c68cbd67060e12b
[ "BSL-1.0" ]
2
2016-08-31T13:30:18.000Z
2021-07-07T07:22:03.000Z
// -*- C++ -*- #ifndef SPATIAL_EXAMPLE_POINT_TYPE_HPP #define SPATIAL_EXAMPLE_POINT_TYPE_HPP #include <algorithm> // std::fill struct point3_type { typedef double value_type; point3_type() { } explicit point3_type (double value) { std::fill(values, values + 3, value); } template <typename Distribution> ex...
30.904762
74
0.680277
Roboauto
96612d790217efb5f7cdcedda512e8fffc06ad98
2,840
cpp
C++
math/power_of_two.cpp
Phonbopit/C-Plus-Plus
37a29008e6b77921a97a89ca8b7fd9e700aeccd0
[ "MIT" ]
2
2022-02-21T06:59:21.000Z
2022-02-21T06:59:24.000Z
math/power_of_two.cpp
Phonbopit/C-Plus-Plus
37a29008e6b77921a97a89ca8b7fd9e700aeccd0
[ "MIT" ]
null
null
null
math/power_of_two.cpp
Phonbopit/C-Plus-Plus
37a29008e6b77921a97a89ca8b7fd9e700aeccd0
[ "MIT" ]
1
2022-03-10T11:13:20.000Z
2022-03-10T11:13:20.000Z
/** * @file * @brief Implementation to check whether a number is a power of 2 or not. * * @details * This algorithm uses bit manipulation to check if a number is a power of 2 or * not. * * ### Algorithm * Let the input number be n, then the bitwise and between n and n-1 will let us * know whether the number i...
26.542056
80
0.616197
Phonbopit
96630164ccb876c0a4cea1fee916558013e2eae4
4,445
hpp
C++
include/xaos/detail/function.hpp
grisumbras/xaos
9d8a93911b9284a826ad43ba133a2febf960481c
[ "BSL-1.0" ]
null
null
null
include/xaos/detail/function.hpp
grisumbras/xaos
9d8a93911b9284a826ad43ba133a2febf960481c
[ "BSL-1.0" ]
null
null
null
include/xaos/detail/function.hpp
grisumbras/xaos
9d8a93911b9284a826ad43ba133a2febf960481c
[ "BSL-1.0" ]
null
null
null
#ifndef XAOS_DETAIL_FUNCTION_HPP #define XAOS_DETAIL_FUNCTION_HPP #include <xaos/detail/backend_pointer.hpp> #include <xaos/detail/function_alloc.hpp> #include <xaos/detail/function_overloads.hpp> #include <boost/core/empty_value.hpp> #include <boost/mp11/algorithm.hpp> #include <boost/mp11/list.hpp> #include <boost...
30.033784
79
0.728459
grisumbras
96666edbd8b62ccc00d0e736df792c1f29a392b4
1,695
hpp
C++
i23dSFM/stl/indexed_sort.hpp
zyxrrr/GraphSfM
1af22ec17950ffc8a5c737a6a46f4465c40aa470
[ "BSD-3-Clause" ]
null
null
null
i23dSFM/stl/indexed_sort.hpp
zyxrrr/GraphSfM
1af22ec17950ffc8a5c737a6a46f4465c40aa470
[ "BSD-3-Clause" ]
null
null
null
i23dSFM/stl/indexed_sort.hpp
zyxrrr/GraphSfM
1af22ec17950ffc8a5c737a6a46f4465c40aa470
[ "BSD-3-Clause" ]
1
2019-02-18T09:49:32.000Z
2019-02-18T09:49:32.000Z
// Copyright (c) 2012, 2013 Pierre MOULON. // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #ifndef I23DSFM_STL_INDEXED_SORT_H #define I23DSFM_STL_INDEXED_SORT_H n...
25.298507
101
0.658997
zyxrrr
966a393e324b20538af1df465413e035a8bfd3ab
3,157
cpp
C++
YorozuyaGSLib/source/CAsyncLogger.cpp
lemkova/Yorozuya
f445d800078d9aba5de28f122cedfa03f26a38e4
[ "MIT" ]
29
2017-07-01T23:08:31.000Z
2022-02-19T10:22:45.000Z
YorozuyaGSLib/source/CAsyncLogger.cpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
90
2017-10-18T21:24:51.000Z
2019-06-06T02:30:33.000Z
YorozuyaGSLib/source/CAsyncLogger.cpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
44
2017-12-19T08:02:59.000Z
2022-02-24T23:15:01.000Z
#include <CAsyncLogger.hpp> START_ATF_NAMESPACE CAsyncLogger::CAsyncLogger() { using org_ptr = void (WINAPIV*)(struct CAsyncLogger*); (org_ptr(0x1403bda40L))(this); }; void CAsyncLogger::ctor_CAsyncLogger() { using org_ptr = void (WINAPIV*)(struct CAsyncLogger*); (o...
33.585106
145
0.623377
lemkova
966e73f6d241e6fedffd21ef27bebb3bfc9b294f
476
hpp
C++
Engine/src/ecs/components/Renderable.hpp
dabbertorres/LinuxOpenGL
0dba561244d720e64bea4c839c95db036d479bdf
[ "MIT" ]
null
null
null
Engine/src/ecs/components/Renderable.hpp
dabbertorres/LinuxOpenGL
0dba561244d720e64bea4c839c95db036d479bdf
[ "MIT" ]
1
2016-05-05T00:51:58.000Z
2016-05-05T00:51:58.000Z
Engine/src/ecs/components/Renderable.hpp
dabbertorres/LinuxOpenGL
0dba561244d720e64bea4c839c95db036d479bdf
[ "MIT" ]
null
null
null
#ifndef DBR_ENG_ECS_RENDERABLE_HPP #define DBR_ENG_ECS_RENDERABLE_HPP #include "Graphics/Types.hpp" #include "ecs/Component.hpp" namespace dbr { namespace eng { namespace ecs { class Renderable : public Component { public: Renderable(Id id, gfx::H...
17
61
0.548319
dabbertorres
96718ec412d1399e1c17c97b461e1635829bfd2d
255
hpp
C++
lab07/3.2_vehicle/vehicle/Car.hpp
AlexanderFadeev/oop
62ea584b2c49dea5457b9e520866bfd7a0d883c7
[ "MIT" ]
null
null
null
lab07/3.2_vehicle/vehicle/Car.hpp
AlexanderFadeev/oop
62ea584b2c49dea5457b9e520866bfd7a0d883c7
[ "MIT" ]
18
2018-02-07T07:10:18.000Z
2018-05-23T08:11:28.000Z
lab07/3.2_vehicle/vehicle/Car.hpp
AlexanderFadeev/oop
62ea584b2c49dea5457b9e520866bfd7a0d883c7
[ "MIT" ]
null
null
null
#pragma once #include "CarBrand.h" template <typename CVehicle> class CCar : public CVehicle { public: using Brand = CarBrand; CCar(size_t seatsCount, Brand brand); Brand GetBrand() const override; private: Brand m_brand; }; #include "Car.ipp"
12.142857
38
0.72549
AlexanderFadeev
9675dfae28287c0efd9e911cd002c91a2cf54f50
2,267
hpp
C++
src/utils/block.hpp
ktrianta/jacobi-svd-evd
8162562c631c3d1541e23b1fa38ec7600a5032af
[ "MIT" ]
3
2019-03-09T14:22:26.000Z
2021-04-24T05:40:44.000Z
src/utils/block.hpp
ktrianta/jacobi-svd-evd
8162562c631c3d1541e23b1fa38ec7600a5032af
[ "MIT" ]
35
2019-03-17T14:02:55.000Z
2019-06-12T13:15:19.000Z
src/utils/block.hpp
ktrianta/jacobi-svd-evd
8162562c631c3d1541e23b1fa38ec7600a5032af
[ "MIT" ]
4
2019-03-09T14:22:30.000Z
2020-09-28T19:36:42.000Z
#pragma once #include <cstdlib> #include "matrix.hpp" // perform C = AB void mult_block(struct matrix_t Amat, size_t blockA_row, size_t blockA_col, struct matrix_t Bmat, size_t blockB_row, size_t blockB_col, struct matrix_t Cmat, size_t blockC_row, size_t blockC_col, size_t block_size); // perform D = ...
70.84375
120
0.672695
ktrianta
9679b0ab04f8dfedb329c8aa0d72085a7c26fa22
5,991
cpp
C++
tcb/src/v20180608/model/DescribeCloudBaseRunServerDomainNameResponse.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
null
null
null
tcb/src/v20180608/model/DescribeCloudBaseRunServerDomainNameResponse.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
null
null
null
tcb/src/v20180608/model/DescribeCloudBaseRunServerDomainNameResponse.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
34.431034
132
0.698381
suluner
9679c785626b7b81aa1da6d3092fe2867f87aef5
2,391
cpp
C++
Medium/3-longestsubnorep.cpp
mzhou08/Leetcode
b186f6cb4ecc6efb30d4da96be7f3ca15d7c4e59
[ "Apache-2.0" ]
null
null
null
Medium/3-longestsubnorep.cpp
mzhou08/Leetcode
b186f6cb4ecc6efb30d4da96be7f3ca15d7c4e59
[ "Apache-2.0" ]
null
null
null
Medium/3-longestsubnorep.cpp
mzhou08/Leetcode
b186f6cb4ecc6efb30d4da96be7f3ca15d7c4e59
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <string> #include <vector> using namespace std; /* Submission Statistics: Runtime: 132 ms, faster than 11.94% of C++ online submissions for Longest Substring Without Repeating Characters. Memory Usage: 104.4 MB, less than 9.22% of C++ online submissions for Longest Substring Without Repea...
30.653846
117
0.495609
mzhou08
9679ec86b80d94cf8f31dda3a9705ef7ce836464
526
cpp
C++
63.cpp
bodhiye/Offer
c723210d3052bebd6cd9adfc2959c4aa2b8a2e0c
[ "MIT" ]
1
2018-05-08T01:35:49.000Z
2018-05-08T01:35:49.000Z
63.cpp
bodhiye/Offer
c723210d3052bebd6cd9adfc2959c4aa2b8a2e0c
[ "MIT" ]
null
null
null
63.cpp
bodhiye/Offer
c723210d3052bebd6cd9adfc2959c4aa2b8a2e0c
[ "MIT" ]
1
2021-07-24T02:15:42.000Z
2021-07-24T02:15:42.000Z
#include <iostream> #include <vector> #include <algorithm> using namespace std; vector<int> v; int n; void Insert(int num) { v.push_back(num); n = v.size(); for (int i = n - 1; i > 0 && v[i] < v[i - 1]; --i) swap(v[i], v[i - 1]); } double GetMedian() { return (v[(n - 1) >> 1] + v[n >> 1]) / ...
16.4375
54
0.480989
bodhiye
967d120b5ae8b09b1288d1eea9d8a330f4b30149
687
cpp
C++
Zork/globals.cpp
Mefiso/zork
1eb26348f88edcd1cb168ce8061c5ccd5610d1f3
[ "MIT" ]
null
null
null
Zork/globals.cpp
Mefiso/zork
1eb26348f88edcd1cb168ce8061c5ccd5610d1f3
[ "MIT" ]
null
null
null
Zork/globals.cpp
Mefiso/zork
1eb26348f88edcd1cb168ce8061c5ccd5610d1f3
[ "MIT" ]
null
null
null
#include "globals.h" //using namespace std; // ------------------------------------------------- bool Same(const string& a, const string& b) { return _stricmp(a.c_str(), b.c_str()) == 0; } bool Same(const char* a, const string& b) { return _stricmp(a, b.c_str()) == 0; } bool Same(const string& a, const char* b) {...
17.175
60
0.554585
Mefiso
9681341aeca47a0444b1ae3e72e447cba5b786ab
1,767
hh
C++
src/c++/include/reference/Seed.hh
Illumina/Isaac4
0924fba8b467868da92e1c48323b15d7cbca17dd
[ "BSD-3-Clause" ]
13
2018-02-09T22:59:39.000Z
2021-11-29T06:33:22.000Z
src/c++/include/reference/Seed.hh
Illumina/Isaac4
0924fba8b467868da92e1c48323b15d7cbca17dd
[ "BSD-3-Clause" ]
17
2018-01-26T11:36:07.000Z
2022-02-03T18:48:43.000Z
src/c++/include/reference/Seed.hh
Illumina/Isaac4
0924fba8b467868da92e1c48323b15d7cbca17dd
[ "BSD-3-Clause" ]
4
2018-10-19T20:00:00.000Z
2020-10-29T14:44:06.000Z
/** ** Isaac Genome Alignment Software ** Copyright (c) 2010-2017 Illumina, Inc. ** All rights reserved. ** ** This software is provided under the terms and conditions of the ** GNU GENERAL PUBLIC LICENSE Version 3 ** ** You should have received a copy of the GNU GENERAL PUBLIC LICENSE Version 3 ** along with ...
26.772727
175
0.710243
Illumina
9681401242d880547108b3a6efc748f5bbeafd16
408
hpp
C++
include/RED4ext/Scripting/Natives/Generated/ent/VertexAnimationMapperSourceType.hpp
jackhumbert/RED4ext.SDK
2c55eccb83beabbbe02abae7945af8efce638fca
[ "MIT" ]
42
2020-12-25T08:33:00.000Z
2022-03-22T14:47:07.000Z
include/RED4ext/Scripting/Natives/Generated/ent/VertexAnimationMapperSourceType.hpp
jackhumbert/RED4ext.SDK
2c55eccb83beabbbe02abae7945af8efce638fca
[ "MIT" ]
38
2020-12-28T22:36:06.000Z
2022-02-16T11:25:47.000Z
include/RED4ext/Scripting/Natives/Generated/ent/VertexAnimationMapperSourceType.hpp
jackhumbert/RED4ext.SDK
2c55eccb83beabbbe02abae7945af8efce638fca
[ "MIT" ]
20
2020-12-28T22:17:38.000Z
2022-03-22T17:19:01.000Z
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> namespace RED4ext { namespace ent { enum class VertexAnimationMapperSourceType : uint32_t { FloatTrack = 0, TranslationX = 1, TranslationY = 2, TranslationZ = 3, RotationQuatX = 4, RotationQuatY = 5, ...
18.545455
57
0.683824
jackhumbert
96818053ea161b7b0fc284b9617776c30bc8af05
334
hpp
C++
include/mio/unordered_set.hpp
inie0722/mio
205411c2a24fe216c9f981b6a974cdb0118f7560
[ "BSL-1.0" ]
null
null
null
include/mio/unordered_set.hpp
inie0722/mio
205411c2a24fe216c9f981b6a974cdb0118f7560
[ "BSL-1.0" ]
null
null
null
include/mio/unordered_set.hpp
inie0722/mio
205411c2a24fe216c9f981b6a974cdb0118f7560
[ "BSL-1.0" ]
null
null
null
#pragma once #include <parallel_hashmap/phmap.h> namespace mio { template <class T, class Hash = phmap::priv::hash_default_hash<T>, class Eq = phmap::priv::hash_default_eq<T>, class Alloc = phmap::priv::Allocator<T>> using unordered_set = phmap::node_hash_set<T, Hash,...
27.833333
67
0.628743
inie0722
9683818f3d590400aa4d5b74a6a713ade34d187d
1,453
cpp
C++
led_tutorial/src/rgb_led.cpp
PigeonSensei/raspberry_pi_ros_tutorial
07f824bf43f304ebe328f1e557ca7fa5c9cad44c
[ "MIT" ]
null
null
null
led_tutorial/src/rgb_led.cpp
PigeonSensei/raspberry_pi_ros_tutorial
07f824bf43f304ebe328f1e557ca7fa5c9cad44c
[ "MIT" ]
null
null
null
led_tutorial/src/rgb_led.cpp
PigeonSensei/raspberry_pi_ros_tutorial
07f824bf43f304ebe328f1e557ca7fa5c9cad44c
[ "MIT" ]
3
2021-11-15T00:34:08.000Z
2022-02-28T09:55:38.000Z
#include <ros/ros.h> #include <wiringPi.h> #include "led_tutorial/SetRGBDigital.h" bool R = true; bool G = true; bool B = true; bool SetRGBDigitalCallBack(led_tutorial::SetRGBDigital::Request &req, led_tutorial::SetRGBDigital::Response &res) { R = req.R; G = req.G; B = req.B; res....
21.367647
117
0.623538
PigeonSensei
96876780bfc31d4afa27bc75d31ba62b9af5b9fe
1,567
hpp
C++
include/tweedledee/quil/ast/nodes/decl_parameter.hpp
boschmitt/tweedledee
a7f5041681350601469b38311b9654e2c22643c0
[ "MIT" ]
4
2018-07-21T08:11:56.000Z
2019-05-30T20:06:43.000Z
include/tweedledee/quil/ast/nodes/decl_parameter.hpp
boschmitt/tweedledee
a7f5041681350601469b38311b9654e2c22643c0
[ "MIT" ]
null
null
null
include/tweedledee/quil/ast/nodes/decl_parameter.hpp
boschmitt/tweedledee
a7f5041681350601469b38311b9654e2c22643c0
[ "MIT" ]
1
2019-05-15T14:11:28.000Z
2019-05-15T14:11:28.000Z
/*------------------------------------------------------------------------------------------------- | This file is distributed under the MIT License. | See accompanying file /LICENSE for details. *------------------------------------------------------------------------------------------------*/ #pragma once #include "...
24.484375
99
0.627313
boschmitt
9687d82b43d145ca22f54e7219ac6f0a49256427
1,665
cpp
C++
1098/main.cpp
Heliovic/PAT_Solutions
7c5dd554654045308f2341713c3e52cc790beb59
[ "MIT" ]
2
2019-03-18T12:55:38.000Z
2019-09-07T10:11:26.000Z
1098/main.cpp
Heliovic/My_PAT_Answer
7c5dd554654045308f2341713c3e52cc790beb59
[ "MIT" ]
null
null
null
1098/main.cpp
Heliovic/My_PAT_Answer
7c5dd554654045308f2341713c3e52cc790beb59
[ "MIT" ]
null
null
null
#include <cstdio> #include <algorithm> #include <cstring> #define MAX_N 128 using namespace std; int orignum[MAX_N]; int tempnum[MAX_N]; int destnum[MAX_N]; int N; bool check() { for (int i = 1 ; i <= N; i++) if (destnum[i] != tempnum[i]) return false; return true; } bool insertion() { ...
17.526316
54
0.417417
Heliovic
96891869ad7149c5ddad7a946e73f1393c97b885
4,613
cpp
C++
src/kernels/cpu/reference/convolution.cpp
louareg/nncase
0125654eb57b7ff753fe9c396c84b264c01f34d3
[ "Apache-2.0" ]
null
null
null
src/kernels/cpu/reference/convolution.cpp
louareg/nncase
0125654eb57b7ff753fe9c396c84b264c01f34d3
[ "Apache-2.0" ]
null
null
null
src/kernels/cpu/reference/convolution.cpp
louareg/nncase
0125654eb57b7ff753fe9c396c84b264c01f34d3
[ "Apache-2.0" ]
null
null
null
/* Copyright 2019-2021 Canaan 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 agreed t...
49.074468
147
0.567743
louareg
f7b2d83e65c0ecda36a39fc44adf55e2c50a6c75
1,443
cpp
C++
ex02-find-extremes/ExtremesMain.cpp
kglogins/bitl-ds-workspace-cpp
0999247f3da9f63d77faebbdef7ba2c6a554f9dd
[ "MIT" ]
null
null
null
ex02-find-extremes/ExtremesMain.cpp
kglogins/bitl-ds-workspace-cpp
0999247f3da9f63d77faebbdef7ba2c6a554f9dd
[ "MIT" ]
null
null
null
ex02-find-extremes/ExtremesMain.cpp
kglogins/bitl-ds-workspace-cpp
0999247f3da9f63d77faebbdef7ba2c6a554f9dd
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <string> #include <sstream> #include <iomanip> #include "Student.h" using namespace std; using namespace ds_course; Student getMin(Student *ss, int count); Student getMax(Student *ss, int count); int main() { int studentsCount; cin >> studentsCount; Studen...
19.5
91
0.580735
kglogins
f7b747f64abc6d158a6f781eec3c64a96b511b81
1,218
hpp
C++
src/3rd party/boost/boost/python/detail/construct.hpp
OLR-xray/OLR-3.0
b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611
[ "Apache-2.0" ]
8
2016-01-25T20:18:51.000Z
2019-03-06T07:00:04.000Z
src/3rd party/boost/boost/python/detail/construct.hpp
OLR-xray/OLR-3.0
b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611
[ "Apache-2.0" ]
null
null
null
src/3rd party/boost/boost/python/detail/construct.hpp
OLR-xray/OLR-3.0
b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611
[ "Apache-2.0" ]
3
2016-02-14T01:20:43.000Z
2021-02-03T11:19:11.000Z
// Copyright David Abrahams 2002. Permission to copy, use, // modify, sell and distribute this software is granted provided this // copyright notice appears in all copies. This software is provided // "as is" without express or implied warranty, and with no claim as // to its suitability for any purpose. #ifndef CONSTR...
27.681818
69
0.697865
OLR-xray
f7b8f01a1a001a3314d1d9bb7234a9b98b3fa2b0
1,436
cpp
C++
1101-9999/1654. Minimum Jumps to Reach Home.cpp
erichuang1994/leetcode-solution
d5b3bb3ce2a428a3108f7369715a3700e2ba699d
[ "MIT" ]
null
null
null
1101-9999/1654. Minimum Jumps to Reach Home.cpp
erichuang1994/leetcode-solution
d5b3bb3ce2a428a3108f7369715a3700e2ba699d
[ "MIT" ]
null
null
null
1101-9999/1654. Minimum Jumps to Reach Home.cpp
erichuang1994/leetcode-solution
d5b3bb3ce2a428a3108f7369715a3700e2ba699d
[ "MIT" ]
null
null
null
class Solution { public: int minimumJumps(vector<int> &forbidden, int a, int b, int x) { // int left = min(0,x-2*a-1); // int right = x+2*b+1; int left = -1; int right = 4001; unordered_set<int> f; for (auto &n : forbidden) { f.insert(n); } unordered_set<string> visited; ...
24.758621
106
0.460306
erichuang1994
f7bdc65129288c8bda92e00828a0ec72e4bf69bf
1,682
hpp
C++
include/fixed_containers/string_literal.hpp
alexkaratarakis/fixed-containers
f845532e9cc5f79a651e22a679ff4a77b5e4967a
[ "MIT" ]
32
2021-06-29T03:07:49.000Z
2022-03-30T06:13:09.000Z
include/fixed_containers/string_literal.hpp
alexkaratarakis/fixed-containers
f845532e9cc5f79a651e22a679ff4a77b5e4967a
[ "MIT" ]
1
2021-11-10T20:20:04.000Z
2021-11-22T22:49:25.000Z
include/fixed_containers/string_literal.hpp
alexkaratarakis/fixed-containers
f845532e9cc5f79a651e22a679ff4a77b5e4967a
[ "MIT" ]
4
2021-10-11T02:47:57.000Z
2022-01-23T18:38:45.000Z
#pragma once #include <cassert> #include <cstddef> #include <string_view> namespace fixed_containers { /** * Fully constexpr implementation of a compile-time literal null-terminated string. * StringLiteral is trivially_copyable and standard_layout. Furthermore, all functions are * constexpr. * * Compare: * <ul>...
29.508772
94
0.670036
alexkaratarakis
f7c4e3bf0308c996f826b4fa1fb4ba17ef1a22e1
1,111
cpp
C++
src/svgdom/elements/gradients.cpp
JaimeIvanCervantes/svgdom
8339d6d84a573cbeb0e235f4c828f4f898d67a6c
[ "MIT" ]
null
null
null
src/svgdom/elements/gradients.cpp
JaimeIvanCervantes/svgdom
8339d6d84a573cbeb0e235f4c828f4f898d67a6c
[ "MIT" ]
null
null
null
src/svgdom/elements/gradients.cpp
JaimeIvanCervantes/svgdom
8339d6d84a573cbeb0e235f4c828f4f898d67a6c
[ "MIT" ]
null
null
null
#include "gradients.hpp" #include <utki/debug.hpp> #include "../util.hxx" #include "../visitor.hpp" using namespace svgdom; const std::string gradient::stop_element::tag = "stop"; const std::string linear_gradient_element::tag = "linearGradient"; const std::string radial_gradient_element::tag = "radialGradient"; v...
21.784314
66
0.729973
JaimeIvanCervantes
f7c842142c324965ab1574612727cd99a68a97ad
2,418
cpp
C++
CsPlugin/Source/CsCore/Public/Managers/Sense/CsSenseInfo.cpp
closedsum/core
c3cae44a177b9684585043a275130f9c7b67fef0
[ "Unlicense" ]
2
2019-03-17T10:43:53.000Z
2021-04-20T21:24:19.000Z
CsPlugin/Source/CsCore/Public/Managers/Sense/CsSenseInfo.cpp
closedsum/core
c3cae44a177b9684585043a275130f9c7b67fef0
[ "Unlicense" ]
null
null
null
CsPlugin/Source/CsCore/Public/Managers/Sense/CsSenseInfo.cpp
closedsum/core
c3cae44a177b9684585043a275130f9c7b67fef0
[ "Unlicense" ]
null
null
null
// Copyright 2017-2021 Closed Sum Games, LLC. All Rights Reserved. #include "Managers/Sense/CsSenseInfo.h" #include "CsCore.h" #include "Managers/Sense/CsSensingObject.h" // ICsSenseInfo #pragma region const FCsSensedObject& FCsSenseInfo::GetObject() const { return Object; } void FCsSenseInfo::SetObject(ICsSensedO...
23.940594
84
0.696857
closedsum
f7cb2b54a8491271663c4b9d4b25c7c89fb86598
6,558
cpp
C++
src/main.cpp
DawidPietrykowski/GPURayTracer
66f150441d68587ddb3d4d73a7620310c5e26959
[ "MIT" ]
null
null
null
src/main.cpp
DawidPietrykowski/GPURayTracer
66f150441d68587ddb3d4d73a7620310c5e26959
[ "MIT" ]
null
null
null
src/main.cpp
DawidPietrykowski/GPURayTracer
66f150441d68587ddb3d4d73a7620310c5e26959
[ "MIT" ]
null
null
null
#include <array> #include <string> #include <vector> #include <iostream> #include <ComputeEngine.h> #include "Utils.h" #include "DataStructures.h" #include "Config.h" #include "Scene.h" #define UPDATE_OBJECT_BUFFERS 0 void UpdateKeys(ComputeEngine& renderer, CameraData& camera, std::vector<SceneObject>& objects, Sh...
33.28934
166
0.660415
DawidPietrykowski
f7cdb776f05cded77cea56aa65bec9d95207d44c
1,647
cpp
C++
src/ButtonInfoBar.cpp
xaviarmengol/M5Stack-GUI
ae7ad8897a0d695b0784f4a25cc5469c9e8a14ce
[ "MIT" ]
71
2018-03-17T17:38:48.000Z
2022-02-18T04:43:41.000Z
src/ButtonInfoBar.cpp
xaviarmengol/M5Stack-GUI
ae7ad8897a0d695b0784f4a25cc5469c9e8a14ce
[ "MIT" ]
6
2018-09-03T18:47:51.000Z
2021-01-18T10:03:33.000Z
src/ButtonInfoBar.cpp
xaviarmengol/M5Stack-GUI
ae7ad8897a0d695b0784f4a25cc5469c9e8a14ce
[ "MIT" ]
20
2018-04-28T23:06:31.000Z
2022-02-17T23:56:14.000Z
#include "ButtonInfoBar.h" using namespace Codingfield::UI; void ButtonInfoBar::SetButtonAText(const std::string& t) { if(btnAText != t) { oldBtnAText = btnAText; btnAText = t; } } void ButtonInfoBar::SetButtonBText(const std::string& t) { if(btnBText != t) { oldBtnBText = btnBText; btnBText = ...
26.564516
96
0.663024
xaviarmengol
f7d173e94c252ca127e58a36ec96a85202fd959c
6,737
hpp
C++
include/engine/script/luascriptsystem.hpp
eXl-Nic/eXl
a5a0f77f47db3179365c107a184bb38b80280279
[ "MIT" ]
null
null
null
include/engine/script/luascriptsystem.hpp
eXl-Nic/eXl
a5a0f77f47db3179365c107a184bb38b80280279
[ "MIT" ]
null
null
null
include/engine/script/luascriptsystem.hpp
eXl-Nic/eXl
a5a0f77f47db3179365c107a184bb38b80280279
[ "MIT" ]
null
null
null
/* Copyright 2009-2021 Nicolas Colombe 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, publish, distribute...
32.863415
460
0.658008
eXl-Nic
f7d189fd792cf2f5f514da97367a04b17e389bca
1,349
cpp
C++
Demo/src/main.cpp
billy4479/BillyEngine
df7d519f740d5862c4743872dbf89b3654eeb423
[ "MIT" ]
1
2021-09-05T20:50:59.000Z
2021-09-05T20:50:59.000Z
Demo/src/main.cpp
billy4479/sdl-tests
df7d519f740d5862c4743872dbf89b3654eeb423
[ "MIT" ]
null
null
null
Demo/src/main.cpp
billy4479/sdl-tests
df7d519f740d5862c4743872dbf89b3654eeb423
[ "MIT" ]
null
null
null
#include <BillyEngine.hpp> #include "FPSCounter.hpp" #include "MouseChaser.hpp" #include "Spawner.hpp" #include "SpinningQuad.hpp" int main() { BillyEngine::AppConfig appConfig; appConfig.Maximized = true; appConfig.AssetsPath = "assets"; BillyEngine::Application app(appConfig); app.LoadFont("Open...
32.119048
80
0.644181
billy4479
f7d2d0746c75afa58e6d8203f21176da0de199d4
6,181
cpp
C++
jam/src/Mesh.cpp
gzito/jamengine
451ab1e1d74231a3239a56aed4c40dc445fa6db8
[ "MIT" ]
null
null
null
jam/src/Mesh.cpp
gzito/jamengine
451ab1e1d74231a3239a56aed4c40dc445fa6db8
[ "MIT" ]
null
null
null
jam/src/Mesh.cpp
gzito/jamengine
451ab1e1d74231a3239a56aed4c40dc445fa6db8
[ "MIT" ]
null
null
null
/********************************************************************************** * * Mesh.cpp * * This file is part of Jam * * Copyright (c) 2014-2019 Giovanni Zito. * Copyright (c) 2014-2019 Jam contributors (cf. AUTHORS.md) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of t...
25.861925
114
0.671089
gzito
f7d970d0ec992544da3f6ca5196ae68e4bd81195
7,381
hpp
C++
Old/tests/fept_test.hpp
waterswims/MC_HAMR
eb0492bc12a6eb67ec1709e5b59bdd53ee999892
[ "MIT" ]
1
2021-08-02T23:14:45.000Z
2021-08-02T23:14:45.000Z
Old/tests/fept_test.hpp
waterswims/MC_HAMR
eb0492bc12a6eb67ec1709e5b59bdd53ee999892
[ "MIT" ]
null
null
null
Old/tests/fept_test.hpp
waterswims/MC_HAMR
eb0492bc12a6eb67ec1709e5b59bdd53ee999892
[ "MIT" ]
1
2021-08-02T23:14:45.000Z
2021-08-02T23:14:45.000Z
#ifndef _FEPTTEST #define _FEPTTEST #include "test_functions.hpp" /////////////////////////////////////////////////////// // FePt model tests - 3D /////////////////////////////////////////////////////// TEST(FePt, 3d_energy_zero_field) { field_3d_h field = gen_3d_heis_fm(1, 0, 0); ham_FePt hamil; hamil.i...
27.438662
62
0.606151
waterswims
f7dbce953e61954bc8871fe27a97e70b08f5e4d2
3,757
cc
C++
src/mesh/mesh_moab/test/test_hex_2x2x1.cc
ajkhattak/amanzi
fed8cae6af3f9dfa5984381d34b98401c3b47655
[ "RSA-MD" ]
1
2021-02-23T18:34:47.000Z
2021-02-23T18:34:47.000Z
src/mesh/mesh_moab/test/test_hex_2x2x1.cc
ajkhattak/amanzi
fed8cae6af3f9dfa5984381d34b98401c3b47655
[ "RSA-MD" ]
null
null
null
src/mesh/mesh_moab/test/test_hex_2x2x1.cc
ajkhattak/amanzi
fed8cae6af3f9dfa5984381d34b98401c3b47655
[ "RSA-MD" ]
null
null
null
#include <iostream> #include "Epetra_Map.h" #include "mpi.h" #include "UnitTest++.h" #include "AmanziComm.hh" #include "../Mesh_MOAB.hh" TEST(MOAB_HEX_2x2x1) { int i, j, k, nc, nf, nv; Amanzi::AmanziMesh::Entity_ID_List faces, cnodes, fnodes; std::vector<int> facedirs; std::vector<Amanzi::AmanziGeometry::Po...
25.910345
92
0.519031
ajkhattak
f7e0c6d004b5f8e9f0805e3566a8a2c6f6d75b4c
935
cpp
C++
Broccoli/src/Broccoli/Renderer/Texture.cpp
tross2552/broccoli
d7afc472e076fa801d0e7745e209553b73c34486
[ "Apache-2.0" ]
1
2021-08-03T01:38:41.000Z
2021-08-03T01:38:41.000Z
Broccoli/src/Broccoli/Renderer/Texture.cpp
tross2552/broccoli
d7afc472e076fa801d0e7745e209553b73c34486
[ "Apache-2.0" ]
null
null
null
Broccoli/src/Broccoli/Renderer/Texture.cpp
tross2552/broccoli
d7afc472e076fa801d0e7745e209553b73c34486
[ "Apache-2.0" ]
null
null
null
#include "brclpch.h" #include "Texture.h" #include "Renderer.h" #include "Platform/OpenGL/OpenGLTexture2D.h" namespace brcl { std::unique_ptr<Texture2D> Texture2D::Create(uint32_t width, uint32_t height) { switch (renderer::GetAPI()) { case RendererAPI::API::None: BRCL_CORE_ASSERT(false, "RendererAPI::No...
26.714286
123
0.727273
tross2552
f7e8b11ae57f39a2e2bbadad65377a146cf1e02d
570
cpp
C++
Classes/Hole.cpp
khanhdrag9/TetrisHole
d2773cb9da0756c4d8a2f0e8ef7823fb7de8584c
[ "MIT" ]
null
null
null
Classes/Hole.cpp
khanhdrag9/TetrisHole
d2773cb9da0756c4d8a2f0e8ef7823fb7de8584c
[ "MIT" ]
null
null
null
Classes/Hole.cpp
khanhdrag9/TetrisHole
d2773cb9da0756c4d8a2f0e8ef7823fb7de8584c
[ "MIT" ]
null
null
null
#include "Hole.h" #include "Skill.h" #include "Board.h" #include "Templates.h" Hole::Hole(): _spriteNode(nullptr), _boardParrent(nullptr), _skill(nullptr) { _spriteNode = Node::create(); } Hole::~Hole() { CC_SAFE_DELETE(_spriteNode); _boardParrent = nullptr; _skill = nullptr; } void Hole::useSkill(fl...
15.405405
70
0.659649
khanhdrag9
f7e8b64b0a7a4fe217770f73ffee035b4abcf3b0
871
cpp
C++
Snippets/lazy-segtree.cpp
KerakTelor86/CP-Stuff
31269195a913d55826fd2e34b091d0cd186c7af9
[ "Unlicense" ]
null
null
null
Snippets/lazy-segtree.cpp
KerakTelor86/CP-Stuff
31269195a913d55826fd2e34b091d0cd186c7af9
[ "Unlicense" ]
null
null
null
Snippets/lazy-segtree.cpp
KerakTelor86/CP-Stuff
31269195a913d55826fd2e34b091d0cd186c7af9
[ "Unlicense" ]
null
null
null
int n; vector<ll> seg,lazy; void propagate(int idx,int l,int r) { if(!lazy[idx]) return; int lc=(idx<<1)+1,rc=lc+1; seg[idx]+=(r-l+1)*lazy[idx]; if(l!=r) { lazy[lc]+=lazy[idx]; lazy[rc]+=lazy[idx]; } lazy[idx]=0; } void update(int u,int v,int w,int idx=0,int l=0,int...
18.934783
58
0.482204
KerakTelor86
f7edf5ec82381548ad4ebc4bcaadecd56b8535b6
622
cpp
C++
Cpp/1008.construct-binary-search-tree-from-preorder-traversal.cpp
zszyellow/leetcode
2ef6be04c3008068f8116bf28d70586e613a48c2
[ "MIT" ]
1
2015-12-19T23:05:35.000Z
2015-12-19T23:05:35.000Z
Cpp/1008.construct-binary-search-tree-from-preorder-traversal.cpp
zszyellow/leetcode
2ef6be04c3008068f8116bf28d70586e613a48c2
[ "MIT" ]
null
null
null
Cpp/1008.construct-binary-search-tree-from-preorder-traversal.cpp
zszyellow/leetcode
2ef6be04c3008068f8116bf28d70586e613a48c2
[ "MIT" ]
null
null
null
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: TreeNode* bstFromPreorder(vector<int>& preorder) { int i = 0; return build(preo...
25.916667
59
0.538585
zszyellow
f7edf703c84b774df1e0f62b471141fb40d93d3c
643
cpp
C++
0001-0100/3-longest-substring-without-repeating-characters/main.cpp
janreggie/leetcode
c59718e127b598c4de7d07c9c93064eb12b2e5c9
[ "MIT", "Unlicense" ]
null
null
null
0001-0100/3-longest-substring-without-repeating-characters/main.cpp
janreggie/leetcode
c59718e127b598c4de7d07c9c93064eb12b2e5c9
[ "MIT", "Unlicense" ]
null
null
null
0001-0100/3-longest-substring-without-repeating-characters/main.cpp
janreggie/leetcode
c59718e127b598c4de7d07c9c93064eb12b2e5c9
[ "MIT", "Unlicense" ]
null
null
null
#include <algorithm> #include <string> #include <unordered_set> class Solution { public: int lengthOfLongestSubstring(const std::string& s) { std::unordered_map<char, size_t> inds; // inds[c] = last index of c size_t a = 0, b = 0; size_t record = 0; // largest b-a // Now what is our loop condition? while ...
19.484848
79
0.562986
janreggie
f7f6eaf345aa924b4e1543e79c311b0c9ee1eb7c
806
cpp
C++
control_app/main.cpp
houcy/wall-e-1
b159d05b0afa343cb161f60ec98974bc2f063afd
[ "MIT" ]
1
2021-05-05T14:11:03.000Z
2021-05-05T14:11:03.000Z
control_app/main.cpp
houcy/wall-e-1
b159d05b0afa343cb161f60ec98974bc2f063afd
[ "MIT" ]
null
null
null
control_app/main.cpp
houcy/wall-e-1
b159d05b0afa343cb161f60ec98974bc2f063afd
[ "MIT" ]
null
null
null
#include "main_widget.h" #include "tcp_server.h" #include "log.h" #include "common.h" #include <QApplication> #ifdef Q_WS_QWS #include <QAbstractSlider> #include <QWSServer> #endif void outOfMemHandler() { fatal("Failed to allocate memory"); } int main(int argc, char *argv[]) { std::set_new_handler(outOfMemHa...
21.783784
84
0.729529
houcy
f7f6fd54f4469ad46aeab6dcf21e8350579fe795
6,306
cpp
C++
source/hydra_next/source/graphics/debug_renderer.cpp
JorenJoestar/DataDrivenRendering
b9078ea3d2d63d1c2cbc6f9ed655e49e23747969
[ "Zlib" ]
164
2019-06-30T18:14:38.000Z
2022-03-13T14:36:10.000Z
source/hydra_next/source/graphics/debug_renderer.cpp
JorenJoestar/DataDrivenRendering
b9078ea3d2d63d1c2cbc6f9ed655e49e23747969
[ "Zlib" ]
null
null
null
source/hydra_next/source/graphics/debug_renderer.cpp
JorenJoestar/DataDrivenRendering
b9078ea3d2d63d1c2cbc6f9ed655e49e23747969
[ "Zlib" ]
11
2019-09-11T13:40:59.000Z
2022-01-28T09:24:24.000Z
#include "graphics/debug_renderer.hpp" #include "graphics/camera.hpp" #include "graphics/command_buffer.hpp" namespace hydra { namespace gfx { // // struct LineVertex { vec3s position; hydra::Color color; void set( vec3s position_, h...
37.094118
159
0.606565
JorenJoestar
f7f87dc0a12162cb19956915ef45c3e62742b8b2
6,307
cc
C++
extern/glow/src/glow/data/TextureData.cc
rovedit/Fort-Candle
445fb94852df56c279c71b95c820500e7fb33cf7
[ "MIT" ]
null
null
null
extern/glow/src/glow/data/TextureData.cc
rovedit/Fort-Candle
445fb94852df56c279c71b95c820500e7fb33cf7
[ "MIT" ]
null
null
null
extern/glow/src/glow/data/TextureData.cc
rovedit/Fort-Candle
445fb94852df56c279c71b95c820500e7fb33cf7
[ "MIT" ]
null
null
null
#include "TextureData.hh" #include "SurfaceData.hh" #include <glow/common/log.hh> #include <glow/common/profiling.hh> #include <glow/common/str_utils.hh> using namespace glow; TextureData::LoadFromFileFunc TextureData::sLoadFunc = nullptr; TextureData::TextureData() {} void TextureData::addSurface(const SharedSur...
32.510309
170
0.526875
rovedit
f7fb115b479020ffcfe3b5a245ce14ac2fa31d00
1,735
cpp
C++
Recursion and Backtracking/Kpartition.cpp
Ankitlenka26/IP2021
99322c9c84a8a9c9178a505afbffdcebd312b059
[ "MIT" ]
null
null
null
Recursion and Backtracking/Kpartition.cpp
Ankitlenka26/IP2021
99322c9c84a8a9c9178a505afbffdcebd312b059
[ "MIT" ]
null
null
null
Recursion and Backtracking/Kpartition.cpp
Ankitlenka26/IP2021
99322c9c84a8a9c9178a505afbffdcebd312b059
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using namespace std; static int counter = 0; void solution(int i, int n, int k, int cones, vector<vector<int>> &ans) { //write your code here if (i > n) { // cout << "Hello" << endl; if (cones == k) { counter++; cout << c...
23.445946
71
0.358501
Ankitlenka26
f7fb5fd609bee157b8671ec92c5644458c59ca62
4,913
hpp
C++
sparta/cache/LineData.hpp
debjyoti0891/map
abdae67964420d7d36255dcbf83e4240a1ef4295
[ "MIT" ]
44
2019-12-13T06:39:13.000Z
2022-03-29T23:09:28.000Z
sparta/cache/LineData.hpp
debjyoti0891/map
abdae67964420d7d36255dcbf83e4240a1ef4295
[ "MIT" ]
222
2020-01-14T21:58:56.000Z
2022-03-31T20:05:12.000Z
sparta/cache/LineData.hpp
debjyoti0891/map
abdae67964420d7d36255dcbf83e4240a1ef4295
[ "MIT" ]
19
2020-01-03T19:03:22.000Z
2022-01-09T08:36:20.000Z
#pragma once #include <cstring> #include "sparta/utils/ByteOrder.hpp" #include "sparta/utils/SpartaException.hpp" #include "cache/BasicCacheItem.hpp" namespace sparta { namespace cache { class LineData : public BasicCacheItem { public: // Constructor LineDa...
32.753333
83
0.483004
debjyoti0891