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
2e6e177ecabb8032e0cbfe6ca574ed9bc19f6566
421
cpp
C++
archive/codevs.1010.cpp
woshiluo/oi
5637fb81b0e25013314783dc387f7fc93bf9d4b9
[ "Apache-2.0" ]
null
null
null
archive/codevs.1010.cpp
woshiluo/oi
5637fb81b0e25013314783dc387f7fc93bf9d4b9
[ "Apache-2.0" ]
null
null
null
archive/codevs.1010.cpp
woshiluo/oi
5637fb81b0e25013314783dc387f7fc93bf9d4b9
[ "Apache-2.0" ]
null
null
null
#include <cstdio> using namespace std; long long dx[8]={+2,+2,-2,-2,+1,+1,-1,-1}; long long dy[8]={+1,-1,+1,-1,+2,-2,+2,-2}; long long f[20][20],n,m,x,y; int main(){ scanf("%d%d%d%d",&n,&m,&x,&y); for(int i=x;i<=n;i++){ for(int j=y;j<=m;j++){ for(int k=0;k<8;k++){ long lon...
20.047619
42
0.384798
woshiluo
2e730121679a0e9825893bb04949e16672d017f5
1,324
cpp
C++
src/SensorPaths.cpp
serve-bh-bmc/dbus-sensors
f69fbf998745bf006748c3b6ba6558443b560d21
[ "Apache-2.0" ]
15
2019-02-26T03:44:55.000Z
2021-11-04T23:58:51.000Z
src/SensorPaths.cpp
serve-bh-bmc/dbus-sensors
f69fbf998745bf006748c3b6ba6558443b560d21
[ "Apache-2.0" ]
17
2019-01-23T19:47:44.000Z
2022-03-31T23:03:43.000Z
src/SensorPaths.cpp
serve-bh-bmc/dbus-sensors
f69fbf998745bf006748c3b6ba6558443b560d21
[ "Apache-2.0" ]
21
2019-08-07T03:32:20.000Z
2022-01-27T09:40:22.000Z
#include <SensorPaths.hpp> #include <cstring> #include <regex> #include <string> namespace sensor_paths { // This is an allowlist of the units a sensor can measure. Should be in sync // with // phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Sensor/Value.interface.yaml#L35 std::string getPathForUnits(const...
21.704918
91
0.570242
serve-bh-bmc
2e7413220b0009c6df42a9faafc50ddcc1cfd62b
18,049
cpp
C++
silkworm/db/chaindb.cpp
gcolvin/silkworm
11cb3ea2aa215185eb96a460f87c67f83bdc6620
[ "Apache-2.0" ]
null
null
null
silkworm/db/chaindb.cpp
gcolvin/silkworm
11cb3ea2aa215185eb96a460f87c67f83bdc6620
[ "Apache-2.0" ]
null
null
null
silkworm/db/chaindb.cpp
gcolvin/silkworm
11cb3ea2aa215185eb96a460f87c67f83bdc6620
[ "Apache-2.0" ]
null
null
null
/* Copyright 2020 The Silkworm Authors 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 ...
32.230357
115
0.653499
gcolvin
2e785579f8d9d1af563bbe8c74a7144bb21d7a33
2,136
hpp
C++
xs/src/boost/range/detail/iterator.hpp
born2b/Slic3r
589a0b3ac1a50f84de694b89cc10abcac45c0ae6
[ "CC-BY-3.0" ]
460
2016-01-13T12:49:34.000Z
2022-02-20T04:10:40.000Z
xs/src/boost/range/detail/iterator.hpp
born2b/Slic3r
589a0b3ac1a50f84de694b89cc10abcac45c0ae6
[ "CC-BY-3.0" ]
197
2017-07-06T16:53:59.000Z
2019-05-31T17:57:51.000Z
xs/src/boost/range/detail/iterator.hpp
born2b/Slic3r
589a0b3ac1a50f84de694b89cc10abcac45c0ae6
[ "CC-BY-3.0" ]
148
2016-01-17T03:16:43.000Z
2022-03-17T12:20:36.000Z
// Boost.Range library // // Copyright Thorsten Ottosen 2003-2004. Use, modification and // distribution is subject to 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) // // For more information, see http://www.boost.org/li...
27.037975
106
0.519195
born2b
2e848f245b5f81110c8b662c0796f425a6e459c0
13,740
cpp
C++
src/renderer/displayer/raster/raster.cpp
lPrimemaster/Liquid
72c11bf96cccb3f93725f46f0e0756a1b732163c
[ "MIT" ]
null
null
null
src/renderer/displayer/raster/raster.cpp
lPrimemaster/Liquid
72c11bf96cccb3f93725f46f0e0756a1b732163c
[ "MIT" ]
null
null
null
src/renderer/displayer/raster/raster.cpp
lPrimemaster/Liquid
72c11bf96cccb3f93725f46f0e0756a1b732163c
[ "MIT" ]
null
null
null
#include "raster.h" #include "../../raycaster/geometry.h" #include "../overlay.h" #include "../../../utils/shaderloader.h" #include "../../raycaster/hittable/model.h" #include <vector> #include <tuple> #include <unordered_map> internal Vector3 rasterCamFront; internal Vector3 rasterCamPos; internal Vector3 rasterCamUp...
32.40566
108
0.586681
lPrimemaster
2e872c91eabd0911e4d5b6946e678ef4b55d4e8d
10,809
cpp
C++
G/GeographicLibWrapper/src/GeographicLibWrapper.cpp
sharanry/Yggdrasil
d89cb4ffdc8e96ad39b6242b3574c59561c1b546
[ "MIT" ]
195
2018-09-14T22:41:36.000Z
2022-03-16T03:35:17.000Z
G/GeographicLibWrapper/src/GeographicLibWrapper.cpp
sharanry/Yggdrasil
d89cb4ffdc8e96ad39b6242b3574c59561c1b546
[ "MIT" ]
2,176
2018-12-20T07:05:43.000Z
2022-03-31T21:39:20.000Z
G/GeographicLibWrapper/src/GeographicLibWrapper.cpp
sharanry/Yggdrasil
d89cb4ffdc8e96ad39b6242b3574c59561c1b546
[ "MIT" ]
455
2018-09-27T21:28:33.000Z
2022-03-23T06:27:44.000Z
#include "jlcxx/jlcxx.hpp" #include <GeographicLib/Geocentric.hpp> #include <GeographicLib/Geoid.hpp> #include <GeographicLib/GravityCircle.hpp> #include <GeographicLib/GravityModel.hpp> #include <GeographicLib/MagneticCircle.hpp> #include <GeographicLib/MagneticModel.hpp> #include <GeographicLib/Math.hpp> #include <G...
50.746479
80
0.626515
sharanry
2e89af6e23e822c321ff6dde00197c26eb6568a0
476
cpp
C++
TC4/application/torpedo.cpp
rhuancaetano/openGL
796845b31f0d0b84ac28aabc1c9bf5365648831e
[ "MIT" ]
null
null
null
TC4/application/torpedo.cpp
rhuancaetano/openGL
796845b31f0d0b84ac28aabc1c9bf5365648831e
[ "MIT" ]
null
null
null
TC4/application/torpedo.cpp
rhuancaetano/openGL
796845b31f0d0b84ac28aabc1c9bf5365648831e
[ "MIT" ]
null
null
null
#include <GL/glut.h> #include "torpedo.h" void desenhaTorpedo(double radius){ glColor3f( 0.0, 0.0, 0.35); glBegin(GL_QUADS); glVertex2f( -radius*0.1, radius*0.3); glVertex2f( -radius*0.1, -radius*0.3); glVertex2f( radius*0.1, -radius*0.3); glVertex2f( radius*0.1, radius*0.3); glEnd(); } void Torpedo::drawTo...
25.052632
40
0.663866
rhuancaetano
2e8a12096e876a21e1bff433bf4669d7fa9ff9c4
1,265
cc
C++
FlavoEngine/src/entityx/Entity.cc
Thirrash/FlavoEngine
fc3e867dc726d1a37ddd81bb6a1691833014703a
[ "MIT" ]
null
null
null
FlavoEngine/src/entityx/Entity.cc
Thirrash/FlavoEngine
fc3e867dc726d1a37ddd81bb6a1691833014703a
[ "MIT" ]
null
null
null
FlavoEngine/src/entityx/Entity.cc
Thirrash/FlavoEngine
fc3e867dc726d1a37ddd81bb6a1691833014703a
[ "MIT" ]
null
null
null
/* * Copyright (C) 2012 Alec Thomas <alec@swapoff.org> * All rights reserved. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. * * Author: Alec Thomas <alec@swapoff.org> */ #include <algorithm> #include "entityx/Entity.h" namespace ...
21.810345
91
0.72253
Thirrash
2e9b2a25a5037805bf27928d511bd9136237cf6c
1,104
cpp
C++
src/bubblesort.cpp
jtanisha-ee/data_s
864bdcbaac861e50d3262b0f651e809962fba2f6
[ "MIT" ]
null
null
null
src/bubblesort.cpp
jtanisha-ee/data_s
864bdcbaac861e50d3262b0f651e809962fba2f6
[ "MIT" ]
null
null
null
src/bubblesort.cpp
jtanisha-ee/data_s
864bdcbaac861e50d3262b0f651e809962fba2f6
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; #include <array> /* In the first pass, once the largest element is reached,it keeps on being swapped until it gets to the last position of the sequence. In the second pass, once the second largest element is reached, it keeps on being swapped until it gets to the second-to-las...
20.830189
82
0.655797
jtanisha-ee
2e9b63c03a4058027d44cbc03d6036f140b0986f
7,616
cpp
C++
cpp/mlp_cpu/mlp.cpp
julitopower/LearnMachineLearning
47526dd1fb52293c8199cc11207978144513bf5c
[ "BSD-2-Clause" ]
null
null
null
cpp/mlp_cpu/mlp.cpp
julitopower/LearnMachineLearning
47526dd1fb52293c8199cc11207978144513bf5c
[ "BSD-2-Clause" ]
null
null
null
cpp/mlp_cpu/mlp.cpp
julitopower/LearnMachineLearning
47526dd1fb52293c8199cc11207978144513bf5c
[ "BSD-2-Clause" ]
1
2020-07-19T11:31:10.000Z
2020-07-19T11:31:10.000Z
#include <iostream> #include <fstream> #include <vector> #include <map> #include <string> #include <chrono> #include <thread> #include "mlp.hpp" namespace { namespace mx = mxnet::cpp; namespace ch = std::chrono; // The names of the model and params files are // fixed const std::string MODEL_FILENAME {"mode...
31.60166
96
0.637999
julitopower
2ea740c58f2e94ecc087bfb77d6d2c9bdb5c5d9e
6,287
cpp
C++
SerialPrograms/Source/PokemonSwSh/Options/EncounterFilter/PokemonSwSh_EncounterFilterOverride.cpp
pifopi/Arduino-Source
e926d9f9154a27a33d976240ae956c9460e64cf9
[ "MIT" ]
9
2021-03-06T20:37:22.000Z
2022-03-09T02:34:47.000Z
SerialPrograms/Source/PokemonSwSh/Options/EncounterFilter/PokemonSwSh_EncounterFilterOverride.cpp
pifopi/Arduino-Source
e926d9f9154a27a33d976240ae956c9460e64cf9
[ "MIT" ]
44
2021-05-31T21:33:14.000Z
2022-02-25T17:40:50.000Z
SerialPrograms/Source/PokemonSwSh/Options/EncounterFilter/PokemonSwSh_EncounterFilterOverride.cpp
pifopi/Arduino-Source
e926d9f9154a27a33d976240ae956c9460e64cf9
[ "MIT" ]
16
2021-03-21T16:00:21.000Z
2022-03-26T08:02:11.000Z
/* Encounter Filter * * From: https://github.com/PokemonAutomation/Arduino-Source * */ #include <QtGlobal> #include "Common/Cpp/Exception.h" #include "Common/Qt/QtJsonTools.h" #include "Common/Qt/NoWheelComboBox.h" #include "Pokemon/Resources/Pokemon_PokeballNames.h" #include "Pokemon/Resources/Pokemo...
34.168478
99
0.627803
pifopi
2ea765d3f49e91c0220d188cdf92d6192629e78c
9,293
cpp
C++
Source/System/Math/Algebra/Vector2.cpp
arian153/Engine-5
34f85433bc0a74a7ebe7da350d3f3698de77226e
[ "MIT" ]
2
2020-01-09T07:48:24.000Z
2020-01-09T07:48:26.000Z
Source/System/Math/Algebra/Vector2.cpp
arian153/Engine-5
34f85433bc0a74a7ebe7da350d3f3698de77226e
[ "MIT" ]
null
null
null
Source/System/Math/Algebra/Vector2.cpp
arian153/Engine-5
34f85433bc0a74a7ebe7da350d3f3698de77226e
[ "MIT" ]
null
null
null
#include "Vector2.hpp" #include "..//Utility/Utility.hpp" #include <ostream> #include "Matrix22.hpp" #include "Vector3.hpp" #include "Vector4.hpp" #include "../Utility/VectorDef.hpp" namespace Engine5 { Vector2::Vector2(Real x, Real y) : x(x), y(y) { } Vector2::Vector2(Real arr[2]) : ...
21.216895
127
0.512213
arian153
2eabd19caedf684dddacc7e02a50132630e3b801
828
cpp
C++
daily_challenge/February_LeetCoding_Challenge_2021/longestWordInDictionaryThroughDeleting.cpp
archit-1997/LeetCode
7c0f74da0836d3b0855f09bae8960f81a384f3f3
[ "MIT" ]
1
2021-01-27T16:37:36.000Z
2021-01-27T16:37:36.000Z
daily_challenge/February_LeetCoding_Challenge_2021/longestWordInDictionaryThroughDeleting.cpp
archit-1997/LeetCode
7c0f74da0836d3b0855f09bae8960f81a384f3f3
[ "MIT" ]
null
null
null
daily_challenge/February_LeetCoding_Challenge_2021/longestWordInDictionaryThroughDeleting.cpp
archit-1997/LeetCode
7c0f74da0836d3b0855f09bae8960f81a384f3f3
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; bool compare(string &a, string &b) { if (a.size() == b.size()) return a < b; return a.size() > b.size(); } class Solution { public: bool find(string &a, string &b, int i, int j) { // if we have found the string if (i == a.size()) return true; /...
21.789474
64
0.539855
archit-1997
2eaf65447a7e7a2f0cf95263fbca227bef909f12
1,563
cpp
C++
Project/Source/Panels/PanelAudioMixer.cpp
TBD-org/TBD-Engine
8b45d5a2a92e26bd0ec034047b8188e871fab0f9
[ "MIT" ]
7
2021-04-26T21:32:12.000Z
2022-02-14T13:48:53.000Z
Project/Source/Panels/PanelAudioMixer.cpp
TBD-org/RealBugEngine
0131fde0abc2d86137500acd6f63ed8f0fc2835f
[ "MIT" ]
66
2021-04-24T10:08:07.000Z
2021-10-05T16:52:56.000Z
Project/Source/Panels/PanelAudioMixer.cpp
TBD-org/TBD-Engine
8b45d5a2a92e26bd0ec034047b8188e871fab0f9
[ "MIT" ]
1
2021-07-13T21:26:13.000Z
2021-07-13T21:26:13.000Z
#include "PanelAudioMixer.h" #include "Application.h" #include "Modules/ModuleEditor.h" #include "Modules/ModuleScene.h" #include "Modules/ModuleAudio.h" #include "Utils/Pool.h" #include "Scene.h" #include "imgui.h" #include "IconsForkAwesome.h" #include <string> #include "Utils/Logging.h" #include "Utils/Leaks.h" ...
31.26
85
0.715291
TBD-org
2eb35dba0a0e6768130e3de707821abe5197840a
2,305
cpp
C++
interleaving-string/main.cpp
rickytan/LeetCode
7df9a47928552babaf5d2abf1d153bd92d44be09
[ "MIT" ]
1
2015-04-04T18:32:31.000Z
2015-04-04T18:32:31.000Z
interleaving-string/main.cpp
rickytan/LeetCode
7df9a47928552babaf5d2abf1d153bd92d44be09
[ "MIT" ]
null
null
null
interleaving-string/main.cpp
rickytan/LeetCode
7df9a47928552babaf5d2abf1d153bd92d44be09
[ "MIT" ]
null
null
null
#include <string> #include <iostream> #include <map> #include <stack> #include <vector> using namespace std; class Solution { public: bool isInterleave(string s1, string s2, string s3) { if(s3.length() != s1.length() + s2.length()) return false; vector<vector<bool> > table(s1.length()...
32.464789
439
0.465944
rickytan
2eb515a61c830996042031068e594e344273b81c
22,273
cc
C++
pdb/src/storageManager/headers/PDBStorageManagerFrontendTemplate.cc
SeraphL/plinycompute
7788bc2b01d83f4ff579c13441d0ba90734b54a2
[ "Apache-2.0" ]
3
2019-05-04T05:17:30.000Z
2020-02-21T05:01:59.000Z
pdb/src/storageManager/headers/PDBStorageManagerFrontendTemplate.cc
dcbdan/plinycompute
a6f1c8ac8f75c09615f08752c82179f33cfc6d89
[ "Apache-2.0" ]
3
2020-02-20T19:50:46.000Z
2020-06-25T14:31:51.000Z
pdb/src/storageManager/headers/PDBStorageManagerFrontendTemplate.cc
dcbdan/plinycompute
a6f1c8ac8f75c09615f08752c82179f33cfc6d89
[ "Apache-2.0" ]
5
2019-02-19T23:17:24.000Z
2020-08-03T01:08:04.000Z
// // Created by dimitrije on 2/17/19. // #ifndef PDB_PDBSTORAGEMANAGERFRONTENDTEMPLATE_H #define PDB_PDBSTORAGEMANAGERFRONTENDTEMPLATE_H #include <PDBStorageManagerFrontend.h> #include <HeapRequestHandler.h> #include <StoDispatchData.h> #include <PDBBufferManagerInterface.h> #include <PDBBufferManagerFrontEnd.h> #in...
30.510959
178
0.690387
SeraphL
e481bbb449f85fb3a4e5d64d1e86a9035bc0c598
537
cpp
C++
third_party/boost/libs/gil/toolbox/test/is_similar.cpp
Jackarain/tinyrpc
07060e3466776aa992df8574ded6c1616a1a31af
[ "BSL-1.0" ]
32
2019-02-27T06:57:07.000Z
2021-08-29T10:56:19.000Z
third_party/boost/libs/gil/toolbox/test/is_similar.cpp
avplayer/cxxrpc
7049b4079fac78b3828e68f787d04d699ce52f6d
[ "BSL-1.0" ]
1
2019-04-04T18:00:00.000Z
2019-04-04T18:00:00.000Z
third_party/boost/libs/gil/toolbox/test/is_similar.cpp
avplayer/cxxrpc
7049b4079fac78b3828e68f787d04d699ce52f6d
[ "BSL-1.0" ]
5
2019-08-20T13:45:04.000Z
2022-03-01T18:23:49.000Z
// // Copyright 2013 Christian Henning // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // #include <boost/gil.hpp> #include <boost/gil/extension/toolbox/metafunctions/is_similar.hpp> #include <boost/te...
22.375
68
0.735568
Jackarain
e487f3b200f80540bf1d3f7c13fe1cea9a296a27
25,748
cpp
C++
Libraries/RobsJuceModules/rosic/legacy/HighOrderEqualizer.cpp
RobinSchmidt/RS-MET-Preliminary
6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe
[ "FTL" ]
34
2017-04-19T18:26:02.000Z
2022-02-15T17:47:26.000Z
Libraries/RobsJuceModules/rosic/legacy/HighOrderEqualizer.cpp
RobinSchmidt/RS-MET-Preliminary
6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe
[ "FTL" ]
307
2017-05-04T21:45:01.000Z
2022-02-03T00:59:01.000Z
Libraries/RobsJuceModules/rosic/legacy/HighOrderEqualizer.cpp
RobinSchmidt/RS-MET-Preliminary
6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe
[ "FTL" ]
4
2017-09-05T17:04:31.000Z
2021-12-15T21:24:28.000Z
#include "HighOrderEqualizer.h" //---------------------------------------------------------------------------- // construction/destruction: HighOrderEqualizer::HighOrderEqualizer() { // init member variables: sampleRate = 44100.0; stereoMode = STEREO_LINKED; bypassAll = false; int s, c, k; // indices for eq-st...
27.131718
82
0.596901
RobinSchmidt
e490a1deae2b20f9c9a4f2a9cb1cff04bb35e725
2,840
cpp
C++
lang_sim_main.cpp
crabster15/LangEvolve
76991783ba6ab24b28a62aefdc3d42fc09299cc5
[ "MIT" ]
null
null
null
lang_sim_main.cpp
crabster15/LangEvolve
76991783ba6ab24b28a62aefdc3d42fc09299cc5
[ "MIT" ]
null
null
null
lang_sim_main.cpp
crabster15/LangEvolve
76991783ba6ab24b28a62aefdc3d42fc09299cc5
[ "MIT" ]
null
null
null
#include "Base_word.h" #include "wordMod.hpp" #include "xmlhandler.h" #include <iostream> #include "Constants.h" #include <vector> #include <memory> std::vector<std::shared_ptr<Word>> RunGeneration(std::vector<std::shared_ptr<Word>> Wordlist, std::string characterSet, std::string vowelSet, MeaningHandle* mhandle){ st...
41.764706
179
0.721127
crabster15
e499a4ee0d6914d7563b9ba5ede631c8412527bf
881
cpp
C++
src/terminal/gui/Rectangle.cpp
KeinR/Etermal
9bf66f6be6ae8585b763dd902701e72013a5abcc
[ "MIT" ]
null
null
null
src/terminal/gui/Rectangle.cpp
KeinR/Etermal
9bf66f6be6ae8585b763dd902701e72013a5abcc
[ "MIT" ]
null
null
null
src/terminal/gui/Rectangle.cpp
KeinR/Etermal
9bf66f6be6ae8585b763dd902701e72013a5abcc
[ "MIT" ]
null
null
null
#include "Rectangle.h" #include "../Resources.h" etm::Rectangle::Rectangle(Resources *res): res(res) { } void etm::Rectangle::setColor(const Color &color) { this->color = color; } void etm::Rectangle::setX(float x) { model.x = x; } void etm::Rectangle::setY(float y) { model.y = y; } void etm::Rectangle:...
18.744681
53
0.649262
KeinR
e49b5a592e2cadde1a9f4149115932db038c2c73
4,265
hpp
C++
include/lol/def/LolLootPlayerLoot.hpp
Maufeat/LeagueAPI
be7cb5093aab3f27d95b3c0e1d5700aa50126c47
[ "BSD-3-Clause" ]
1
2020-07-22T11:14:55.000Z
2020-07-22T11:14:55.000Z
include/lol/def/LolLootPlayerLoot.hpp
Maufeat/LeagueAPI
be7cb5093aab3f27d95b3c0e1d5700aa50126c47
[ "BSD-3-Clause" ]
null
null
null
include/lol/def/LolLootPlayerLoot.hpp
Maufeat/LeagueAPI
be7cb5093aab3f27d95b3c0e1d5700aa50126c47
[ "BSD-3-Clause" ]
4
2018-12-01T22:48:21.000Z
2020-07-22T11:14:56.000Z
#pragma once #include "../base_def.hpp" #include "LolLootItemOwnershipStatus.hpp" #include "LolLootRedeemableStatus.hpp" namespace lol { struct LolLootPlayerLoot { std::string lootName; std::string lootId; std::string refId; std::string localizedName; std::string localizedDescription; std::s...
40.619048
85
0.652052
Maufeat
e49e32a2edcd3104e05757da2a954d8d12b00832
2,181
cpp
C++
Raytracer/src/driver.cpp
rickyguerin/Animated-Ray-Tracer
cc1afe776c904b2280e5552f5c4654391658382a
[ "MIT" ]
null
null
null
Raytracer/src/driver.cpp
rickyguerin/Animated-Ray-Tracer
cc1afe776c904b2280e5552f5c4654391658382a
[ "MIT" ]
null
null
null
Raytracer/src/driver.cpp
rickyguerin/Animated-Ray-Tracer
cc1afe776c904b2280e5552f5c4654391658382a
[ "MIT" ]
null
null
null
#include <vector> #include <string> #include <iostream> #include "../header/world.h" #include "../header/camera.h" #include "../header/WorldProgram/cameraProgram.h" // Turn i into a string padded with 0s up to length n std::string padInt(int i, int n) { int numZeros = n - 1; int copy = i / 10; while (copy > 0) {...
30.291667
99
0.715727
rickyguerin
e49f9f60bdb3636f69eff0e4436372a34ed41a15
1,424
cpp
C++
36.cpp
Alex-Amber/LeetCode
c8d09e86cee52648f84ca2afed8dd0f13e51ab58
[ "MIT" ]
null
null
null
36.cpp
Alex-Amber/LeetCode
c8d09e86cee52648f84ca2afed8dd0f13e51ab58
[ "MIT" ]
null
null
null
36.cpp
Alex-Amber/LeetCode
c8d09e86cee52648f84ca2afed8dd0f13e51ab58
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; using ull = uint64_t; using ll = int64_t; using ld = long double; class Solution { public: const int num = 9; const int num_sub = 3; bool isValidSudoku(vector< vector<char> >& board) { bitset<10> record; // Use a bitset to record whether an integer repeats // Che...
19.506849
74
0.496489
Alex-Amber
e4a0875f9ff2c13cb24aa40b14e0842a8e73b35b
2,188
cpp
C++
graph_data_analytic/src/randLocalGraph.cpp
bxtx999/gm_scripts
de1e7a7d5717caf09f9b81fd627ac95ab01e1924
[ "MIT" ]
null
null
null
graph_data_analytic/src/randLocalGraph.cpp
bxtx999/gm_scripts
de1e7a7d5717caf09f9b81fd627ac95ab01e1924
[ "MIT" ]
null
null
null
graph_data_analytic/src/randLocalGraph.cpp
bxtx999/gm_scripts
de1e7a7d5717caf09f9b81fd627ac95ab01e1924
[ "MIT" ]
null
null
null
#include "parseCommandLine.h" #include "graphIO.h" #include "utils.h" #include "parallel.h" using namespace benchIO; // Generates an undirected graph with n vertices with approximately degree // neighbors per vertex. // Edges are distributed so they appear to come from // a dim-dimensional space. In par...
35.290323
81
0.531536
bxtx999
e4a0adec3a081726617c249772a237b663b5ac4b
568
hh
C++
src/Zynga/Framework/StorableObject/V1/Test/Mock/Broken/ValidButHasConstructorArgs.hh
chintan-j-patel/zynga-hacklang-framework
d9893b8873e3c8c7223772fd3c94d2531760172a
[ "MIT" ]
19
2018-04-23T09:30:48.000Z
2022-03-06T21:35:18.000Z
src/Zynga/Framework/StorableObject/V1/Test/Mock/Broken/ValidButHasConstructorArgs.hh
chintan-j-patel/zynga-hacklang-framework
d9893b8873e3c8c7223772fd3c94d2531760172a
[ "MIT" ]
22
2017-11-27T23:39:25.000Z
2019-08-09T08:56:57.000Z
src/Zynga/Framework/StorableObject/V1/Test/Mock/Broken/ValidButHasConstructorArgs.hh
chintan-j-patel/zynga-hacklang-framework
d9893b8873e3c8c7223772fd3c94d2531760172a
[ "MIT" ]
28
2017-11-16T20:53:56.000Z
2021-01-04T11:13:17.000Z
<?hh // strict namespace Zynga\Framework\StorableObject\V1\Test\Mock\Broken; use Zynga\Framework\StorableObject\V1\Interfaces\FieldsInterface; use Zynga\Framework\StorableObject\V1\Test\Mock\Valid; class ValidButHasConstructorArgs extends Valid { public function __construct(string $myPrettyArg) { parent::__c...
25.818182
81
0.735915
chintan-j-patel
e4a4bcfee6d925db8fdb261b96b3d77acaa3cb88
771
hpp
C++
libraries/chain/include/scorum/chain/database/process_user_activity.hpp
scorum/scorum
1da00651f2fa14bcf8292da34e1cbee06250ae78
[ "MIT" ]
53
2017-10-28T22:10:35.000Z
2022-02-18T02:20:48.000Z
libraries/chain/include/scorum/chain/database/process_user_activity.hpp
Scorum/Scorum
fb4aa0b0960119b97828865d7a5b4d0409af7876
[ "MIT" ]
38
2017-11-25T09:06:51.000Z
2018-10-31T09:17:22.000Z
libraries/chain/include/scorum/chain/database/process_user_activity.hpp
Scorum/Scorum
fb4aa0b0960119b97828865d7a5b4d0409af7876
[ "MIT" ]
27
2018-01-08T19:43:35.000Z
2022-01-14T10:50:42.000Z
#pragma once #include <scorum/chain/tasks_base.hpp> #include <scorum/protocol/transaction.hpp> #include <scorum/protocol/types.hpp> namespace scorum { namespace chain { namespace database_ns { using scorum::protocol::signed_transaction; class user_activity_context { public: explicit user_activity_context(data...
17.930233
96
0.743191
scorum
e4aa7bc5caa16ee5b317585d134715ca1860f424
1,997
cpp
C++
data_structure/DISJOINT.cpp
searchstar2017/acmtool
03392b8909a3d45f10c2711ca4ad9ba69f64a481
[ "MIT" ]
null
null
null
data_structure/DISJOINT.cpp
searchstar2017/acmtool
03392b8909a3d45f10c2711ca4ad9ba69f64a481
[ "MIT" ]
null
null
null
data_structure/DISJOINT.cpp
searchstar2017/acmtool
03392b8909a3d45f10c2711ca4ad9ba69f64a481
[ "MIT" ]
null
null
null
struct DISJOINT { //static const int maxn = MAXN; int s[maxn]; void Init(int n){ memset(s, -1, (n+1) * sizeof(s[0])); } int FindRoot(int a){ return s[a] < 0 ? a : (s[a] = FindRoot(s[a])); } void Union(int a, int b){ UnionRoot(FindRoot(a), FindRoot(b)); } void...
21.706522
54
0.440661
searchstar2017
e4ac58e1fef53241e76504df4f18e0de6b8294fc
3,650
cpp
C++
src/gui_scrollframe_glues.cpp
cschreib/lxgui
b317774d9b4296dda8a70b994950987378a05678
[ "MIT" ]
50
2015-01-15T10:00:31.000Z
2022-02-04T20:45:25.000Z
src/gui_scrollframe_glues.cpp
cschreib/lxgui
b317774d9b4296dda8a70b994950987378a05678
[ "MIT" ]
88
2020-03-15T17:40:04.000Z
2022-03-15T08:21:44.000Z
src/gui_scrollframe_glues.cpp
cschreib/lxgui
b317774d9b4296dda8a70b994950987378a05678
[ "MIT" ]
19
2017-03-11T04:32:01.000Z
2022-01-12T22:47:12.000Z
#include "lxgui/gui_scrollframe.hpp" #include "lxgui/gui_uiobject_tpl.hpp" #include "lxgui/gui_frame.hpp" #include "lxgui/gui_out.hpp" #include "lxgui/gui_manager.hpp" #include <sol/state.hpp> /** A @{Frame} with scrollable content. * This frame has a special child frame, the "scroll child". The scroll ...
38.020833
119
0.704932
cschreib
e4b1fe8725e8463861252d0160580b68ddaf3698
3,071
cpp
C++
src/OISBState.cpp
fire-archive/oisb
2e1a1a5f58dee986122a1aef8a98e5e610a845a4
[ "Zlib" ]
null
null
null
src/OISBState.cpp
fire-archive/oisb
2e1a1a5f58dee986122a1aef8a98e5e610a845a4
[ "Zlib" ]
null
null
null
src/OISBState.cpp
fire-archive/oisb
2e1a1a5f58dee986122a1aef8a98e5e610a845a4
[ "Zlib" ]
null
null
null
/* The zlib/libpng License Copyright (c) 2009-2010 Martin Preisler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpos...
24.96748
101
0.592966
fire-archive
e4b25daf69025b5c61391c1080fe95f41af759d9
7,098
cpp
C++
src/Ethereum/ABI/ParamFactory.cpp
Khaos-Labs/khaos-wallet-core
2c06d49fddf978e0815b208dddef50ee2011c551
[ "MIT" ]
2
2020-11-16T08:06:30.000Z
2021-06-18T03:21:44.000Z
src/Ethereum/ABI/ParamFactory.cpp
Khaos-Labs/khaos-wallet-core
2c06d49fddf978e0815b208dddef50ee2011c551
[ "MIT" ]
null
null
null
src/Ethereum/ABI/ParamFactory.cpp
Khaos-Labs/khaos-wallet-core
2c06d49fddf978e0815b208dddef50ee2011c551
[ "MIT" ]
null
null
null
// Copyright © 2017-2020 Khaos Wallet. // // This file is part of Trust. The full Trust copyright notice, including // terms governing use, modification, and redistribution, is contained in the // file LICENSE at the root of the source code distribution tree. #include "ParamFactory.h" #include "HexCoding.h" #include ...
39.653631
120
0.615807
Khaos-Labs
e4b675eaf8699a46535ae1317fdafc07483d5fb8
3,426
hh
C++
include/ignition/transport/TopicUtils.hh
amtj/ign-transport
3b386bf46efd2fc0b847aa7fd3911b1d9d27546c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
include/ignition/transport/TopicUtils.hh
amtj/ign-transport
3b386bf46efd2fc0b847aa7fd3911b1d9d27546c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
include/ignition/transport/TopicUtils.hh
amtj/ign-transport
3b386bf46efd2fc0b847aa7fd3911b1d9d27546c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
/* * Copyright (C) 2014 Open Source Robotics Foundation * * 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 appl...
42.296296
79
0.665791
amtj
e4b93506670e4671f2ce9f66df16fe12be3a11c1
4,653
inl
C++
lib/NoesisGUI-2.2.0/Include/NsCore/Queue.inl
guillaume-haerinck/imac-tower-defense
365a32642ea0d3ad8b2b7d63347d585c44d9f670
[ "MIT" ]
44
2019-06-06T21:33:30.000Z
2022-03-26T06:18:23.000Z
lib/NoesisGUI-2.2.0/Include/NsCore/Queue.inl
guillaume-haerinck/imac-tower-defense
365a32642ea0d3ad8b2b7d63347d585c44d9f670
[ "MIT" ]
1
2019-09-27T12:04:52.000Z
2019-09-29T13:30:42.000Z
lib/NoesisGUI-2.2.0/Include/NsCore/Queue.inl
guillaume-haerinck/imac-tower-defense
365a32642ea0d3ad8b2b7d63347d585c44d9f670
[ "MIT" ]
8
2019-07-26T16:44:26.000Z
2020-11-24T17:56:18.000Z
//////////////////////////////////////////////////////////////////////////////////////////////////// // NoesisGUI - http://www.noesisengine.com // Copyright (c) 2013 Noesis Technologies S.L. All Rights Reserved. //////////////////////////////////////////////////////////////////////////////////////////////////// //////...
34.984962
100
0.381689
guillaume-haerinck
e4b941a9020b7231e60ddc242dab3041593dd531
6,630
cpp
C++
Source/Parsing/ParsingAutomaton_EPDA.cpp
milizhang/Vlpp
34a1217c1738587d0c723ed3227a79777636faf1
[ "MS-PL" ]
2
2020-04-16T15:51:41.000Z
2021-06-05T06:38:20.000Z
Source/Parsing/ParsingAutomaton_EPDA.cpp
milizhang/Vlpp
34a1217c1738587d0c723ed3227a79777636faf1
[ "MS-PL" ]
null
null
null
Source/Parsing/ParsingAutomaton_EPDA.cpp
milizhang/Vlpp
34a1217c1738587d0c723ed3227a79777636faf1
[ "MS-PL" ]
null
null
null
#include "ParsingAutomaton.h" #include "../Collections/Operation.h" namespace vl { namespace parsing { using namespace collections; using namespace definitions; namespace analyzing { /*********************************************************************** CreateEpsilonPDAVisitor ***************************...
37.247191
204
0.679638
milizhang
e4baccba4b6fc73c24c6a806d6f405465c6e3878
33,016
cxx
C++
drs4monitor/src/MonitorFrame.cxx
CMSROMA/DRS4_DAQ
8ff60a58a1a254d56b2afedaf788ecf5afc67afc
[ "MIT" ]
null
null
null
drs4monitor/src/MonitorFrame.cxx
CMSROMA/DRS4_DAQ
8ff60a58a1a254d56b2afedaf788ecf5afc67afc
[ "MIT" ]
null
null
null
drs4monitor/src/MonitorFrame.cxx
CMSROMA/DRS4_DAQ
8ff60a58a1a254d56b2afedaf788ecf5afc67afc
[ "MIT" ]
null
null
null
/* * MonitorFrame.cxx * * Created on: Apr 16, 2017 * Author: S. Lukic */ #include "TApplication.h" #include <TGClient.h> #include "TGButton.h" #include "TGTextView.h" #include "TGText.h" #include "TGTextEntry.h" #include "TGTextBuffer.h" #include "TGComboBox.h" #include "TGLabel.h" #include "TGProgressBar.h...
30.884939
196
0.634026
CMSROMA
e4bae3cb7fcc5f993c72157ed02a0e4b90e716e5
2,829
cpp
C++
targets/all/io/tests/pipes/Pipes.cpp
minuteos/lib
288fe4f9221fb431e15792421e21084f29dccdce
[ "MIT" ]
null
null
null
targets/all/io/tests/pipes/Pipes.cpp
minuteos/lib
288fe4f9221fb431e15792421e21084f29dccdce
[ "MIT" ]
null
null
null
targets/all/io/tests/pipes/Pipes.cpp
minuteos/lib
288fe4f9221fb431e15792421e21084f29dccdce
[ "MIT" ]
null
null
null
/* * Copyright (c) 2019 triaxis s.r.o. * Licensed under the MIT license. See LICENSE.txt file in the repository root * for full license information. * * io/tests/pipes/Pipes.cpp */ #include <testrunner/TestCase.h> #include <kernel/kernel.h> #include <io/io.h> namespace { using namespace io; using namespace ke...
20.207143
78
0.481796
minuteos
e4bd71f54771127f3de4aae60424d5533a82ef8b
1,460
cpp
C++
07-functions/7.22-optional-rectangles-sizes/solution.cpp
trangnart/cis22a
498a7b37d12a13efa7749849dc95d9892d1786be
[ "MIT" ]
2
2020-09-04T22:06:06.000Z
2020-09-09T04:00:25.000Z
07-functions/7.22-optional-rectangles-sizes/solution.cpp
trangnart/cis22a
498a7b37d12a13efa7749849dc95d9892d1786be
[ "MIT" ]
14
2020-08-24T01:44:36.000Z
2021-01-01T08:44:17.000Z
07-functions/7.22-optional-rectangles-sizes/solution.cpp
trangnart/cis22a
498a7b37d12a13efa7749849dc95d9892d1786be
[ "MIT" ]
1
2020-09-04T22:13:13.000Z
2020-09-04T22:13:13.000Z
#include <iostream> #include <string> #include <fstream> using namespace std; bool FirstRectangleSmaller(int, int, int, int, int, int, int, int); void CompareRectangles(const string &); int main() { const string FILENAME = "input.txt"; // cout << FirstRectangleSmaller(1,1,2,3,0,0,10,10) << endl; Compar...
24.333333
81
0.506849
trangnart
e4bf33e81a6c08724e9ee4bc7a8ee96aa8056c78
12,582
hpp
C++
include/message_logger/log/log_messages_ros.hpp
ANYbotics/message_logger
66f9f0795f3a6395b6ee2ab7ac5f0df2ffd05f42
[ "BSD-3-Clause" ]
5
2019-12-27T02:04:55.000Z
2022-01-11T13:29:27.000Z
include/message_logger/log/log_messages_ros.hpp
ANYbotics/message_logger
66f9f0795f3a6395b6ee2ab7ac5f0df2ffd05f42
[ "BSD-3-Clause" ]
1
2020-10-22T16:36:03.000Z
2020-10-23T05:53:12.000Z
include/message_logger/log/log_messages_ros.hpp
ANYbotics/message_logger
66f9f0795f3a6395b6ee2ab7ac5f0df2ffd05f42
[ "BSD-3-Clause" ]
4
2019-12-27T02:04:57.000Z
2020-10-22T16:19:18.000Z
/********************************************************************** * Software License Agreement (BSD License) * * Copyright (c) 2014, Christian Gehring * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following co...
40.456592
239
0.57924
ANYbotics
e4c2c8ef4dd7da05aa38ce489af1310c13e1027f
77
cpp
C++
Ardulib2d/Arduboy2D.cpp
madya121/Ardulib2d
dc93424975c6a0a584b0d32d115b099bf9d0fbd1
[ "MIT" ]
null
null
null
Ardulib2d/Arduboy2D.cpp
madya121/Ardulib2d
dc93424975c6a0a584b0d32d115b099bf9d0fbd1
[ "MIT" ]
null
null
null
Ardulib2d/Arduboy2D.cpp
madya121/Ardulib2d
dc93424975c6a0a584b0d32d115b099bf9d0fbd1
[ "MIT" ]
null
null
null
#include "Arduboy2D.h" Arduboy2D::Arduboy2D() { camera = new Camera(); }
11
24
0.649351
madya121
e4c2d6719bb14bdc1338819e4e17506f48316526
1,983
hpp
C++
srcs/common/trackgrouptypebox.hpp
Reflectioner/heif
bdac2fc9c66d8c1e8994eaf81f1a5db116b863ab
[ "BSD-3-Clause" ]
null
null
null
srcs/common/trackgrouptypebox.hpp
Reflectioner/heif
bdac2fc9c66d8c1e8994eaf81f1a5db116b863ab
[ "BSD-3-Clause" ]
null
null
null
srcs/common/trackgrouptypebox.hpp
Reflectioner/heif
bdac2fc9c66d8c1e8994eaf81f1a5db116b863ab
[ "BSD-3-Clause" ]
null
null
null
/* This file is part of Nokia HEIF library * * Copyright (c) 2015-2020 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. * * Contact: heif@nokia.com * * This software, including documentation, is protected by copyright controlled by Nokia Corporation and/ or its * subsidiaries. All rights are r...
35.410714
115
0.732728
Reflectioner
e4c2e59d9d0f2f2f0dab3bc91641611aaa7602a6
4,575
cxx
C++
Code/Filter/vtkMimxComputeNormalsFromPolydataFilter.cxx
Piyusha23/IAFEMesh
e91b34c9eaa9c8ecc4ebb5d16f4c13f330d75c9f
[ "BSD-4-Clause-UC" ]
null
null
null
Code/Filter/vtkMimxComputeNormalsFromPolydataFilter.cxx
Piyusha23/IAFEMesh
e91b34c9eaa9c8ecc4ebb5d16f4c13f330d75c9f
[ "BSD-4-Clause-UC" ]
null
null
null
Code/Filter/vtkMimxComputeNormalsFromPolydataFilter.cxx
Piyusha23/IAFEMesh
e91b34c9eaa9c8ecc4ebb5d16f4c13f330d75c9f
[ "BSD-4-Clause-UC" ]
null
null
null
/*========================================================================= Program: MIMX Meshing Toolkit Module: $RCSfile: vtkMimxComputeNormalsFromPolydataFilter.cxx,v $ Language: C++ Date: $Date: 2012/12/07 19:08:59 $ Version: $Revision: 1.1.1.1 $ Musculoskeletal Imaging, Modelling and Experimentatio...
29.707792
86
0.637377
Piyusha23
e4c4b8226a759244643383bef43e7f5f911968fa
616
hpp
C++
SDL2Cpp/SDL2Cpp/include/SDL2Cpp/Thread.hpp
jasonwnorris/SDL2Cpp
ece3bc247adab1b127303340d8463cb19d585d81
[ "MIT" ]
3
2015-02-04T20:35:10.000Z
2015-10-26T16:45:27.000Z
SDL2Cpp/SDL2Cpp/include/SDL2Cpp/Thread.hpp
jasonwnorris/SDL2Cpp
ece3bc247adab1b127303340d8463cb19d585d81
[ "MIT" ]
null
null
null
SDL2Cpp/SDL2Cpp/include/SDL2Cpp/Thread.hpp
jasonwnorris/SDL2Cpp
ece3bc247adab1b127303340d8463cb19d585d81
[ "MIT" ]
null
null
null
// Thread.hpp #ifndef __SDL2_THREAD_H__ #define __SDL2_THREAD_H__ // SDL Includes #include <SDL.h> namespace SDL2 { class Thread { public: Thread(); virtual ~Thread(); void Start(Uint32 pDelay = 0); void Stop(); void Wait(); void StopAndWait(); void SetPriority(SDL_ThreadPriority pPriority)...
15.02439
50
0.663961
jasonwnorris
e4c870af5a321951fa3ff9bc318e87486b09b59e
365
cpp
C++
code/main.cpp
fawkesLi-lhh/Vagrant
15adbf52fb55235f68b3d576c5a8433cf8ee5b41
[ "Apache-2.0" ]
3
2021-02-19T14:06:26.000Z
2021-03-11T13:28:03.000Z
code/main.cpp
fawkesLi-lhh/Vagrant
15adbf52fb55235f68b3d576c5a8433cf8ee5b41
[ "Apache-2.0" ]
null
null
null
code/main.cpp
fawkesLi-lhh/Vagrant
15adbf52fb55235f68b3d576c5a8433cf8ee5b41
[ "Apache-2.0" ]
null
null
null
#include <vector> #include <cstdlib> #include <iostream> #include <set> #include <string> #include <cstring> #include <algorithm> #include <dirent.h> #include <unistd.h> #include "Vagrant/vagrant.h" #include "Vagrant/server/Server.h" #include "Classes/Login.h" signed main() { Server server; server.addUrl(new ...
17.380952
34
0.687671
fawkesLi-lhh
e4c9b2e839a3a6a8eb1df537cd50049a27d07002
514
cc
C++
src/tsl_array_map.cc
agutikov/hash-table-shootout
fb98881843b8a3510ff0a9d90a6bf1ba8dbd9690
[ "CC0-1.0" ]
null
null
null
src/tsl_array_map.cc
agutikov/hash-table-shootout
fb98881843b8a3510ff0a9d90a6bf1ba8dbd9690
[ "CC0-1.0" ]
null
null
null
src/tsl_array_map.cc
agutikov/hash-table-shootout
fb98881843b8a3510ff0a9d90a6bf1ba8dbd9690
[ "CC0-1.0" ]
null
null
null
#include <inttypes.h> #include <string> #include <tsl/array_map.h> #include <string_view> template<class CharT> struct str_hash { std::size_t operator()(const CharT* key, std::size_t key_size) const { return std::hash<std::string_view>()(std::string_view(key, key_size)); } }; typedef tsl::array_map<ch...
24.47619
78
0.733463
agutikov
e4ced3dbe4972567aa73cf3489254377ce7ed420
8,558
cpp
C++
src/Evaluator.cpp
bmhowe34/qwixxmaster
106d1da67c8c0e6378b7f55757f84396d124b05b
[ "MIT" ]
2
2019-04-09T10:27:48.000Z
2020-04-19T23:35:34.000Z
src/Evaluator.cpp
bmhowe34/qwixxmaster
106d1da67c8c0e6378b7f55757f84396d124b05b
[ "MIT" ]
2
2020-04-20T01:01:20.000Z
2020-04-22T21:52:53.000Z
src/Evaluator.cpp
bmhowe34/qwixxmaster
106d1da67c8c0e6378b7f55757f84396d124b05b
[ "MIT" ]
1
2020-04-22T01:10:28.000Z
2020-04-22T01:10:28.000Z
#include "Evaluator.h" #include <algorithm> #include <iostream> #include <memory> #include "State.h" #include "RandomDice.h" #include "BruteForceRollGenerator.h" #include "StringUtils.h" #include "MemoryManager.h" namespace{ size_t encode_min_max_0_based(size_t first, size_t second){ size_t max=std::max(fir...
33.042471
161
0.636364
bmhowe34
e4cfad283dd9d846667f11cde2626250066208e2
49,214
cpp
C++
src/isbiad.cpp
nporsche/fastbit
91d06c68b9f4a0a0cc39da737d1c880ab21fe947
[ "BSD-3-Clause-LBNL" ]
null
null
null
src/isbiad.cpp
nporsche/fastbit
91d06c68b9f4a0a0cc39da737d1c880ab21fe947
[ "BSD-3-Clause-LBNL" ]
null
null
null
src/isbiad.cpp
nporsche/fastbit
91d06c68b9f4a0a0cc39da737d1c880ab21fe947
[ "BSD-3-Clause-LBNL" ]
null
null
null
// $Id$ // Author: John Wu <John.Wu at ACM.org> // Copyright (c) 2000-2015 the Regents of the University of California // // This file contains the implementation of the class called ibis::sbiad. // // The word sbiad is the Italian translation of the English word fade. // // fade -- multicomponent range-encoded bitmap...
27.310766
79
0.538201
nporsche
e4dc1de71d07d72be3859246a17fed274a348476
1,317
hpp
C++
swizzle/lexer/FileInfo.hpp
SenorAgosto/Swizzle
52c221de9fa293b0006f07a41b140d2afcc1a9ed
[ "BSD-4-Clause" ]
null
null
null
swizzle/lexer/FileInfo.hpp
SenorAgosto/Swizzle
52c221de9fa293b0006f07a41b140d2afcc1a9ed
[ "BSD-4-Clause" ]
null
null
null
swizzle/lexer/FileInfo.hpp
SenorAgosto/Swizzle
52c221de9fa293b0006f07a41b140d2afcc1a9ed
[ "BSD-4-Clause" ]
null
null
null
#pragma once #include <swizzle/lexer/LineInfo.hpp> #include <cstddef> #include <string> namespace swizzle { namespace lexer { class Token; }} namespace swizzle { namespace lexer { // Information about where a token starts and ends class FileInfo { public: FileInfo(); FileInfo(co...
27.4375
90
0.607441
SenorAgosto
e4de834d0e9f197ec43b12a7b93efad5ce83e3bc
2,627
cpp
C++
src/utils/fileio/SkeletonFile.cpp
Ibujah/compactskel
8a54b5f0123490c4e8120537ae2b56d5ec2a34c9
[ "MIT" ]
4
2019-04-15T08:50:30.000Z
2021-02-03T10:44:03.000Z
src/utils/fileio/SkeletonFile.cpp
Ibujah/compactskel
8a54b5f0123490c4e8120537ae2b56d5ec2a34c9
[ "MIT" ]
null
null
null
src/utils/fileio/SkeletonFile.cpp
Ibujah/compactskel
8a54b5f0123490c4e8120537ae2b56d5ec2a34c9
[ "MIT" ]
null
null
null
/* Copyright (c) 2016 Bastien Durix 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, s...
31.650602
126
0.669204
Ibujah
e4dfdfde7542f9293ddd30e45076d4a208f9cc6b
524
cpp
C++
cpp/0238_productExceptSelf.cpp
linhx25/leetcode
9cf1d6d2372fd8777825c8107780b7f3c934fe20
[ "MIT" ]
1
2021-04-16T12:54:56.000Z
2021-04-16T12:54:56.000Z
cpp/0238_productExceptSelf.cpp
linhx25/leetcode
9cf1d6d2372fd8777825c8107780b7f3c934fe20
[ "MIT" ]
null
null
null
cpp/0238_productExceptSelf.cpp
linhx25/leetcode
9cf1d6d2372fd8777825c8107780b7f3c934fe20
[ "MIT" ]
1
2021-04-26T13:20:41.000Z
2021-04-26T13:20:41.000Z
// 1.最简单做法:遍历一遍得到连乘,每个元素单独除一遍即可; // 2.不能使用除法: // (1)先遍历一遍,得到每个位置的左连乘(不包括该位置) // (2)从右边开始遍历,获得右连乘,随后更新每个位置的左连乘 class Solution { public: vector<int> productExceptSelf(vector<int>& nums) { vector<int> res(nums.size()); int right=1; res[0]=1; for(auto i=1;i<nums.size();i++) r...
23.818182
54
0.51145
linhx25
e4e2f28c025a45a5b1d530ad4f16d9ea7beea7a6
928
cpp
C++
src/examples/textured_triangle/textured_triangle_shader.cpp
DavidSlayback/megaverse
6ce21c9df5ee4d157f4a69b98de3ef1569bc8ccc
[ "MIT" ]
149
2021-06-09T01:28:57.000Z
2022-03-30T20:31:25.000Z
src/examples/textured_triangle/textured_triangle_shader.cpp
DavidSlayback/megaverse
6ce21c9df5ee4d157f4a69b98de3ef1569bc8ccc
[ "MIT" ]
4
2021-06-30T17:06:18.000Z
2022-02-17T21:58:13.000Z
src/examples/textured_triangle/textured_triangle_shader.cpp
DavidSlayback/megaverse
6ce21c9df5ee4d157f4a69b98de3ef1569bc8ccc
[ "MIT" ]
13
2021-07-10T06:49:24.000Z
2022-03-08T05:11:35.000Z
#include "textured_triangle_shader.hpp" #include <Corrade/Containers/Reference.h> #include <Corrade/Utility/Resource.h> #include <Magnum/GL/Context.h> #include <Magnum/GL/Shader.h> #include <Magnum/GL/Version.h> namespace Magnum { TexturedTriangleShader::TexturedTriangleShader() { MAGNUM_ASSERT_GL_VERSION_SUPPOR...
28.121212
70
0.738147
DavidSlayback
e4e3ca21e90fde907f4e39a80b029a65935ce82f
954
cpp
C++
emulator/Hardware.cpp
arturmazurek/dcpu
0647fc521b04ba71b793eedeb62c7add3111576c
[ "MIT" ]
null
null
null
emulator/Hardware.cpp
arturmazurek/dcpu
0647fc521b04ba71b793eedeb62c7add3111576c
[ "MIT" ]
null
null
null
emulator/Hardware.cpp
arturmazurek/dcpu
0647fc521b04ba71b793eedeb62c7add3111576c
[ "MIT" ]
null
null
null
// // Hardware.cpp // dcpu // // Created by Artur Mazurek on 08.09.2013. // Copyright (c) 2013 Artur Mazurek. All rights reserved. // #include "Hardware.h" #include <cassert> #include "Core.h" #include "DCPUException.h" Hardware::Hardware(uint32_t hardwareId, uint16_t version, uint32_t manufacturer) : m_hardwar...
19.875
82
0.708595
arturmazurek
e4e62835e3211e21adfb136995ef2f08a3b6901d
1,397
cpp
C++
snippets/cpp/VS_Snippets_CLR_System/system.Runtime.InteropServices.TypelibConverter.ConvertAssemblyToTypelib1/CPP/convert2.cpp
BohdanMosiyuk/samples
59d435ba9e61e0fc19f5176c96b1cdbd53596142
[ "CC-BY-4.0", "MIT" ]
2
2020-02-22T09:30:21.000Z
2021-08-02T23:44:31.000Z
snippets/cpp/VS_Snippets_CLR_System/system.Runtime.InteropServices.TypelibConverter.ConvertAssemblyToTypelib1/CPP/convert2.cpp
BohdanMosiyuk/samples
59d435ba9e61e0fc19f5176c96b1cdbd53596142
[ "CC-BY-4.0", "MIT" ]
555
2019-09-23T22:22:58.000Z
2021-07-15T18:51:12.000Z
snippets/cpp/VS_Snippets_CLR_System/system.Runtime.InteropServices.TypelibConverter.ConvertAssemblyToTypelib1/CPP/convert2.cpp
BohdanMosiyuk/samples
59d435ba9e61e0fc19f5176c96b1cdbd53596142
[ "CC-BY-4.0", "MIT" ]
3
2020-01-29T16:31:15.000Z
2021-08-24T07:00:15.000Z
// <snippet1> using namespace System; using namespace System::Reflection; using namespace System::Reflection::Emit; using namespace System::Runtime::InteropServices; [ComImport, GuidAttribute("00020406-0000-0000-C000-000000000046"), InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown), ComVisible(false)] int...
27.94
180
0.745168
BohdanMosiyuk
e4e7b247b69c9c62b595db1d8ecd9171b15a29fd
1,094
cc
C++
cpp/Offline_sampling.cc
iskhanba/epicode
fda752e5e016ab64011083450be91bec9ee8358a
[ "MIT" ]
null
null
null
cpp/Offline_sampling.cc
iskhanba/epicode
fda752e5e016ab64011083450be91bec9ee8358a
[ "MIT" ]
null
null
null
cpp/Offline_sampling.cc
iskhanba/epicode
fda752e5e016ab64011083450be91bec9ee8358a
[ "MIT" ]
null
null
null
// Copyright (c) 2015 Elements of Programming Interviews. All rights reserved. #include <algorithm> #include <cassert> #include <iostream> #include <random> #include <vector> #include "./Offline_sampling.h" using std::cout; using std::default_random_engine; using std::endl; using std::random_device; using std::swap;...
24.311111
78
0.571298
iskhanba
e4e98a060da8913c927916cc83c32fbb5b508fe6
4,339
cpp
C++
10-11/VmWriter.cpp
jomiller/nand2tetris
4be20996e1b5185654ef4de5234a9543f957d6fc
[ "MIT" ]
1
2020-10-13T07:06:37.000Z
2020-10-13T07:06:37.000Z
10-11/VmWriter.cpp
jomiller/nand2tetris
4be20996e1b5185654ef4de5234a9543f957d6fc
[ "MIT" ]
null
null
null
10-11/VmWriter.cpp
jomiller/nand2tetris
4be20996e1b5185654ef4de5234a9543f957d6fc
[ "MIT" ]
null
null
null
/* * This file is part of Nand2Tetris. * * Copyright © 2013-2020 Jonathan Miller * * 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...
29.924138
107
0.651302
jomiller
e4f2bb925d5c929687a8c10830eae36f2b56c563
66,448
cpp
C++
Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp
gSpera/serenity
5eb0f63c5463ad69286868978ce65fa4705a457c
[ "BSD-2-Clause" ]
2
2022-02-08T09:18:50.000Z
2022-02-21T17:57:23.000Z
Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp
gSpera/serenity
5eb0f63c5463ad69286868978ce65fa4705a457c
[ "BSD-2-Clause" ]
null
null
null
Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp
gSpera/serenity
5eb0f63c5463ad69286868978ce65fa4705a457c
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright (c) 2021, Andreas Kling <kling@serenityos.org> * Copyright (c) 2021, Linus Groh <linusg@serenityos.org> * Copyright (c) 2021, Gunnar Beutner <gbeutner@serenityos.org> * Copyright (c) 2021, Marcin Gasperowicz <xnooga@gmail.com> * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/Format.h> #i...
41.220844
267
0.660532
gSpera
e4f40cc473b23988ba0cc7e6ab9abe4bcd889592
1,437
cpp
C++
tests/unrepresentable_operation_error.test.cpp
atimholt/rational_geometry
2738ac352dc527b2c2d5f4d3197692161a0d34b1
[ "MIT" ]
null
null
null
tests/unrepresentable_operation_error.test.cpp
atimholt/rational_geometry
2738ac352dc527b2c2d5f4d3197692161a0d34b1
[ "MIT" ]
null
null
null
tests/unrepresentable_operation_error.test.cpp
atimholt/rational_geometry
2738ac352dc527b2c2d5f4d3197692161a0d34b1
[ "MIT" ]
null
null
null
#include "../src/rational_geometry/unrepresentable_operation_error.hpp" #include "doctest.h" #include <ostream> #include <string> #include <typeinfo> namespace rational_geometry { TEST_CASE("Testing unrepresentable_operation_error.hpp") { SUBCASE("class unrepresentable_operation_error") { SUBCASE("Constru...
21.447761
78
0.631176
atimholt
e4fd7df13e2271077ed77daa1a65b22b8ed19a5d
685
hpp
C++
include/server/service/utils.hpp
jhermsmeier/osrm-backend
7b11cd3a11c939c957eeff71af7feddaa86e7f82
[ "BSD-2-Clause" ]
13
2019-02-21T02:02:41.000Z
2021-09-09T13:49:31.000Z
include/server/service/utils.hpp
serarca/osrm-backend
3b4e2e83ef85983df1381dbeacd0ea5d4b9bbbcb
[ "BSD-2-Clause" ]
288
2019-02-21T01:34:04.000Z
2021-03-27T12:19:10.000Z
include/server/service/utils.hpp
serarca/osrm-backend
3b4e2e83ef85983df1381dbeacd0ea5d4b9bbbcb
[ "BSD-2-Clause" ]
4
2019-06-21T20:51:59.000Z
2021-01-13T09:22:24.000Z
#include <boost/format.hpp> namespace osrm { namespace server { namespace service { const constexpr char PARAMETER_SIZE_MISMATCH_MSG[] = "Number of elements in %1% size %2% does not match coordinate size %3%"; template <typename ParamT> bool constrainParamSize(const char *msg_template, co...
22.833333
87
0.583942
jhermsmeier
9000fb3b8702118f57f3a3a312660835ace9ec11
1,746
cpp
C++
CCSDSlib/source/PacketFixedLength.cpp
nhaflinger/CCSDSlib
23bd332078c6c8a1a3e70bacdb9a81f0da9403a3
[ "MIT" ]
1
2021-06-10T13:14:27.000Z
2021-06-10T13:14:27.000Z
CCSDSlib/source/PacketFixedLength.cpp
nhaflinger/CCSDSlib
23bd332078c6c8a1a3e70bacdb9a81f0da9403a3
[ "MIT" ]
null
null
null
CCSDSlib/source/PacketFixedLength.cpp
nhaflinger/CCSDSlib
23bd332078c6c8a1a3e70bacdb9a81f0da9403a3
[ "MIT" ]
null
null
null
#ifdef __linux__ //linux code goes here #elif defined(_WIN32) || defined(WIN32) #define WIN32_LEAN_AND_MEAN #include <windows.h> #endif #include "PacketFixedLength.h" using namespace std; PacketFixedLength::PacketFixedLength() { } PacketFixedLength::~PacketFixedLength() { } map<string, string> P...
22.101266
106
0.71764
nhaflinger
07e5868483e4085ce759c4c9760a7f4a5e01bf3b
15,061
cpp
C++
pizjuce/image/src/imagePlugin.cpp
nonameentername/pizmidi
a985e3d2bf8f02e3c0a87300dfbb82c35608bbd2
[ "BSD-Source-Code" ]
null
null
null
pizjuce/image/src/imagePlugin.cpp
nonameentername/pizmidi
a985e3d2bf8f02e3c0a87300dfbb82c35608bbd2
[ "BSD-Source-Code" ]
null
null
null
pizjuce/image/src/imagePlugin.cpp
nonameentername/pizmidi
a985e3d2bf8f02e3c0a87300dfbb82c35608bbd2
[ "BSD-Source-Code" ]
1
2021-01-26T12:25:01.000Z
2021-01-26T12:25:01.000Z
#include "imagePlugin.h" #include "imagePluginEditor.h" //============================================================================== /* This function must be implemented to create the actual plugin object that you want to use. */ PizAudioProcessor* JUCE_CALLTYPE createPluginFilter() { return new image...
36.291566
147
0.66795
nonameentername
07f164fc4e58f06307a47c51638aa3831438f707
28,524
cxx
C++
reduce_includes/reduce_includes.cxx
linev/misc
4627ab0e62da1e66c3c4d656498463724713e891
[ "MIT" ]
null
null
null
reduce_includes/reduce_includes.cxx
linev/misc
4627ab0e62da1e66c3c4d656498463724713e891
[ "MIT" ]
null
null
null
reduce_includes/reduce_includes.cxx
linev/misc
4627ab0e62da1e66c3c4d656498463724713e891
[ "MIT" ]
1
2019-07-05T09:42:45.000Z
2019-07-05T09:42:45.000Z
#include <cstdio> #include <string> #include <fstream> #include <streambuf> #include <cstdlib> #include <cstring> #include <streambuf> #include <vector> #include <algorithm> #include <stdio.h> std::string ReadFile(const char *fname) { std::ifstream t(fname, std::ios::binary); std::string str; t.seekg(0, std:...
33.957143
135
0.534743
linev
07f1fda9b0cbc86c226ca508d9ff756a62166e8e
2,868
cpp
C++
src/model.cpp
nek0bit/LoopCube
882296f32bfe3a8b1765950a9b8c9e24af75d009
[ "MIT" ]
9
2020-04-03T21:20:02.000Z
2021-08-23T19:57:57.000Z
src/model.cpp
nek0bit/LoopCube
882296f32bfe3a8b1765950a9b8c9e24af75d009
[ "MIT" ]
2
2020-12-05T01:05:58.000Z
2021-01-23T04:41:24.000Z
src/model.cpp
nek0bit/LoopCube
882296f32bfe3a8b1765950a9b8c9e24af75d009
[ "MIT" ]
4
2020-07-04T13:47:33.000Z
2021-09-11T15:29:08.000Z
#include "model.hpp" Model::Model(const GLuint shader, const std::vector<Vertex>& vertices) : refCount{std::make_shared<int>(1)}, vao{0}, vbo{0}, size{0}, shader{shader} { if (shader != 0) { glGenVertexArrays(1, &vao); glGenBuffers(1, &vbo); if (vert...
26.803738
93
0.623431
nek0bit
07f86e762d5471c705dde7af207b48bd25e576bf
6,958
hpp
C++
Engine/Code/Engine/Input/KeyCode.hpp
cugone/Abrams2022
54efe5fdd7d2d9697f005ee45a171ecea68d0df8
[ "MIT" ]
1
2020-07-14T06:58:50.000Z
2020-07-14T06:58:50.000Z
Engine/Code/Engine/Input/KeyCode.hpp
cugone/Abrams2022
54efe5fdd7d2d9697f005ee45a171ecea68d0df8
[ "MIT" ]
20
2021-11-29T14:09:33.000Z
2022-03-26T20:12:44.000Z
Engine/Code/Engine/Input/KeyCode.hpp
cugone/Abrams2022
54efe5fdd7d2d9697f005ee45a171ecea68d0df8
[ "MIT" ]
2
2019-05-01T21:49:33.000Z
2021-04-01T08:22:21.000Z
#pragma once #include "Engine/Core/TypeUtils.hpp" // clang-format off enum class KeyCode : int { FirstMouseButton_ /* Internal use only. */ , LButton = FirstMouseButton_ /* Left Mouse Button */ , RButton /* Right Mouse Button */ , Cancel /* Control-break processing */ , MButton /* Middle Mouse But...
24.761566
80
0.564817
cugone
07f9c3bc8ecb9210aff979cedcb847b59ef9df89
8,809
cpp
C++
LightPOV/ModeTest/communication.cpp
BensonYang1999/sciyen-ES-Lux
071ce2c29f48eaab45be56208ed88512eb685349
[ "BSD-3-Clause" ]
5
2021-04-17T10:58:35.000Z
2021-04-17T11:02:55.000Z
LightPOV/ModeTest/communication.cpp
BensonYang1999/sciyen-ES-Lux
071ce2c29f48eaab45be56208ed88512eb685349
[ "BSD-3-Clause" ]
null
null
null
LightPOV/ModeTest/communication.cpp
BensonYang1999/sciyen-ES-Lux
071ce2c29f48eaab45be56208ed88512eb685349
[ "BSD-3-Clause" ]
29
2021-01-30T10:19:03.000Z
2021-04-18T17:40:11.000Z
#include "communication.h" extern TaskHandle_t LED_UPDATE; extern TaskHandle_t WIFI_HANDLE; HTTPClient http; Communication::Communication(){ } void Communication::init(){ connect(); OTA(); } void Communication::OTA() { ArduinoOTA.onStart([]() { vTaskDelete(WIFI_HANDLE); ...
30.375862
86
0.493927
BensonYang1999
07fb9f152e1646e4c63386a2261cfbb1b146f90a
1,221
cpp
C++
vcplotbase.cpp
GalacticSoft/DikuEd
135f49bba7ce2faf5faac12a355da9813c28d0fa
[ "MIT" ]
null
null
null
vcplotbase.cpp
GalacticSoft/DikuEd
135f49bba7ce2faf5faac12a355da9813c28d0fa
[ "MIT" ]
null
null
null
vcplotbase.cpp
GalacticSoft/DikuEd
135f49bba7ce2faf5faac12a355da9813c28d0fa
[ "MIT" ]
null
null
null
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++ // NOTE: Do not modify the contents of this file. If this class is regenerated by // Microsoft Visual C++, your modifications will be overwritten. #include "stdafx.h" #include "vcplotbase.h" // Dispatch interfaces referenced by this ...
24.918367
82
0.660934
GalacticSoft
07fda40a6914f30179570bb04f38921be010988b
657
cpp
C++
legacy/src/physics/collider.cpp
benkyd/Minecraft
ae8b69b96dcecd669f90aa2c7bb675e5f9b37615
[ "MIT" ]
19
2020-07-18T18:52:39.000Z
2022-02-27T19:42:06.000Z
legacy/src/physics/collider.cpp
benkyd/Minecraft
ae8b69b96dcecd669f90aa2c7bb675e5f9b37615
[ "MIT" ]
null
null
null
legacy/src/physics/collider.cpp
benkyd/Minecraft
ae8b69b96dcecd669f90aa2c7bb675e5f9b37615
[ "MIT" ]
4
2021-03-27T18:36:13.000Z
2022-03-26T18:59:09.000Z
#include "collider.hpp" EntityCollider::EntityCollider() { } glm::vec3 EntityCollider::TerrainCollide(std::vector<uint8_t> terrain) { } bool EntityCollider::m_aabb(ColliderBox a, ColliderBox b) { return { (a.Min.x <= b.Min.x + b.Max.x && a.Min.x + a.Max.x >= b.Min.x) && (a.Min.y <= b.Min.y ...
18.25
74
0.61035
benkyd
5800a6131a27023eead1edfcc8fd7c825bc88ff6
1,673
cpp
C++
misc/cpp/HandleThreadExceptions.cpp
ryanorz/code-camp
041eb6443a3f0963a7778d3ddfb03a7557257094
[ "Apache-2.0" ]
null
null
null
misc/cpp/HandleThreadExceptions.cpp
ryanorz/code-camp
041eb6443a3f0963a7778d3ddfb03a7557257094
[ "Apache-2.0" ]
null
null
null
misc/cpp/HandleThreadExceptions.cpp
ryanorz/code-camp
041eb6443a3f0963a7778d3ddfb03a7557257094
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <thread> #include <mutex> #include <condition_variable> #include <queue> #include <vector> #include <stdexcept> using namespace std; mutex g_lock_cout; mutex g_lock_queue; condition_variable g_queuecheck; queue<exception_ptr> g_exceptions; bool g_workerdone = false; void worker(int id) {...
24.602941
72
0.57621
ryanorz
580533c77032abf202b792f08b0473169aac9cac
1,346
cpp
C++
archsim/src/arch/risc-v/RiscVDecodeContext.cpp
tspink/GenSim
1c2c608d97ef8a90253b6f0567b43724ba553c6b
[ "MIT" ]
10
2020-07-14T22:09:30.000Z
2022-01-11T09:57:52.000Z
archsim/src/arch/risc-v/RiscVDecodeContext.cpp
tspink/GenSim
1c2c608d97ef8a90253b6f0567b43724ba553c6b
[ "MIT" ]
6
2020-07-09T12:01:57.000Z
2021-04-27T10:23:58.000Z
archsim/src/arch/risc-v/RiscVDecodeContext.cpp
tspink/GenSim
1c2c608d97ef8a90253b6f0567b43724ba553c6b
[ "MIT" ]
10
2020-07-29T17:05:26.000Z
2021-12-04T14:57:15.000Z
/* This file is Copyright University of Edinburgh 2018. For license details, see LICENSE. */ #include "gensim/gensim_decode_context.h" #include "arch/risc-v/RiscVDecodeContext.h" #include "util/ComponentManager.h" #include "core/thread/ThreadInstance.h" using namespace archsim::arch::riscv; uint32_t RiscVDecodeConte...
36.378378
168
0.788262
tspink
5806c40c787757626339588a6e7ac820babf956f
1,470
cpp
C++
code/aoce_vulkan_extra/layer/VkVisualEffectLayer.cpp
msqljj/aoce
b15320acbb9454fb461501c8cf0c598d1b15c495
[ "MIT" ]
71
2020-10-15T03:13:50.000Z
2022-03-30T02:04:28.000Z
code/aoce_vulkan_extra/layer/VkVisualEffectLayer.cpp
msqljj/aoce
b15320acbb9454fb461501c8cf0c598d1b15c495
[ "MIT" ]
9
2021-02-20T10:30:10.000Z
2022-03-04T07:59:58.000Z
code/aoce_vulkan_extra/layer/VkVisualEffectLayer.cpp
msqljj/aoce
b15320acbb9454fb461501c8cf0c598d1b15c495
[ "MIT" ]
19
2021-01-01T12:03:02.000Z
2022-03-21T07:59:59.000Z
#include "VkVisualEffectLayer.hpp" namespace aoce { namespace vulkan { namespace layer { VkPosterizeLayer::VkPosterizeLayer(/* args */) { glslPath = "glsl/posterize.comp.spv"; setUBOSize(sizeof(paramet), true); paramet = 10; updateUBO(&paramet); } VkPosterizeLayer::~VkPosterizeLayer() {} VkVignetteL...
22.615385
56
0.682993
msqljj
580acac172ba189fac037a3a09a978185eed69ba
265
cpp
C++
Clase1/suma.cpp
diegostaPy/compuFiuna
e69acd09803f4dacd49d5c6cb1a3173a8fef9cbc
[ "MIT" ]
null
null
null
Clase1/suma.cpp
diegostaPy/compuFiuna
e69acd09803f4dacd49d5c6cb1a3173a8fef9cbc
[ "MIT" ]
null
null
null
Clase1/suma.cpp
diegostaPy/compuFiuna
e69acd09803f4dacd49d5c6cb1a3173a8fef9cbc
[ "MIT" ]
null
null
null
#include<iostream> using namespace std; int main() { int a,b,s; cout<<"Programa para sumar dos numeros introducidos por teclado"<<endl; cout<<"Ingrese el numero 1: "; cin>>a; cout<<"Ingrese el numero 2: "; cin>>b; s = a+b; cout<<"La suma es: "<<s<<endl; }
18.928571
72
0.641509
diegostaPy
580c66cb987903da8c6ca071e4efa2f688fcf6fd
1,076
hpp
C++
include/licon/optim/sgd.hpp
wzppengpeng/LittleConv
12aab4cfbbe965fa8b4053bb464db1165cc4ec31
[ "MIT" ]
93
2017-10-25T07:48:42.000Z
2022-02-02T15:18:11.000Z
include/licon/optim/sgd.hpp
wzppengpeng/LittleConv
12aab4cfbbe965fa8b4053bb464db1165cc4ec31
[ "MIT" ]
null
null
null
include/licon/optim/sgd.hpp
wzppengpeng/LittleConv
12aab4cfbbe965fa8b4053bb464db1165cc4ec31
[ "MIT" ]
20
2018-02-06T10:01:36.000Z
2019-07-07T09:26:40.000Z
#ifndef LICON_OPTIM_SGD_HPP_ #define LICON_OPTIM_SGD_HPP_ #include <unordered_map> #include "licon/optim/optim.hpp" #include "licon/utils/etensor.hpp" namespace licon { namespace optim { /** * the class of SGD optimizer */ class SGD : public Optimizer { public: // the creator of SGD optimizer static st...
21.098039
130
0.681227
wzppengpeng
580f9ce7d6e2cb4ef71f548df011e4608e401d6d
9,975
cpp
C++
src/optim/nelder_mead_module.cpp
bigginlab/chap
17de36442e2e80cb01432e84050c4dfce31fc3a2
[ "MIT" ]
10
2018-06-28T00:21:46.000Z
2022-03-30T03:31:32.000Z
src/optim/nelder_mead_module.cpp
bigginlab/chap
17de36442e2e80cb01432e84050c4dfce31fc3a2
[ "MIT" ]
35
2019-03-19T21:54:46.000Z
2022-03-17T02:20:42.000Z
src/optim/nelder_mead_module.cpp
bigginlab/chap
17de36442e2e80cb01432e84050c4dfce31fc3a2
[ "MIT" ]
8
2018-10-27T19:35:13.000Z
2022-01-06T01:10:39.000Z
// CHAP - The Channel Annotation Package // // Copyright (c) 2016 - 2018 Gianni Klesse, Shanlin Rao, Mark S. P. Sansom, and // Stephen J. Tucker // // 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 th...
30.504587
97
0.613534
bigginlab
58107e4f921de95082e14fcb6e78d8c628d6a427
3,519
cpp
C++
Runtime/World/CMarkerGrid.cpp
RetroView/RetroCommon
a413a010b50a53ebc6b0c726203181fc179d3370
[ "MIT" ]
106
2021-04-09T19:42:56.000Z
2022-03-30T09:13:28.000Z
Runtime/World/CMarkerGrid.cpp
Austint30/metaforce
a491e2e9f229c8db92544b275cd1baa80bacfd17
[ "MIT" ]
58
2021-04-09T12:48:58.000Z
2022-03-22T00:11:42.000Z
Runtime/World/CMarkerGrid.cpp
Austint30/metaforce
a491e2e9f229c8db92544b275cd1baa80bacfd17
[ "MIT" ]
13
2021-04-06T23:23:20.000Z
2022-03-16T02:09:48.000Z
#include "Runtime/World/CMarkerGrid.hpp" namespace metaforce { CMarkerGrid::CMarkerGrid(const zeus::CAABox& bounds) : x0_bounds(bounds) { x18_gridUnits = zeus::CVector3f((bounds.max - bounds.min) * 0.0625f); x24_gridState.resize(0x400); } void CMarkerGrid::MarkCells(const zeus::CSphere& area, u32 val) { int wid...
40.448276
111
0.608411
RetroView
58168a80cfb9a97c1621a0ed52f2c5daa219039b
3,797
cpp
C++
src/level_set/RelaxationLSBcCoefs.cpp
hongk45/IBAMR
698d419fc6688470a8b9400822ba893da9d07ae2
[ "BSD-3-Clause" ]
null
null
null
src/level_set/RelaxationLSBcCoefs.cpp
hongk45/IBAMR
698d419fc6688470a8b9400822ba893da9d07ae2
[ "BSD-3-Clause" ]
1
2020-11-30T14:22:45.000Z
2020-12-01T21:28:24.000Z
src/level_set/RelaxationLSBcCoefs.cpp
hongk45/IBAMR
698d419fc6688470a8b9400822ba893da9d07ae2
[ "BSD-3-Clause" ]
null
null
null
// --------------------------------------------------------------------- // // Copyright (c) 2018 - 2019 by the IBAMR developers // All rights reserved. // // This file is part of IBAMR. // // IBAMR is free software and is distributed under the 3-clause BSD // license. The full text of the license can be found in the f...
30.134921
105
0.500395
hongk45
5817d21a902758a2d814667fff36a5afe49922cc
1,298
cpp
C++
CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/Lab 3 (Operator Overloading)/complex(17).cpp
diptu/Teaching
20655bb2c688ae29566b0a914df4a3e5936a2f61
[ "MIT" ]
null
null
null
CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/Lab 3 (Operator Overloading)/complex(17).cpp
diptu/Teaching
20655bb2c688ae29566b0a914df4a3e5936a2f61
[ "MIT" ]
null
null
null
CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/Lab 3 (Operator Overloading)/complex(17).cpp
diptu/Teaching
20655bb2c688ae29566b0a914df4a3e5936a2f61
[ "MIT" ]
null
null
null
#include "complex.h" Complex::Complex (float r, float i){ real_ = r; imaginary_ = i; } Complex Complex::operator= (const Complex& rhs){ real_ = rhs.real_; imaginary_ = rhs.imaginary_; return *this; } Complex Complex::operator+ (const Complex& rhs) const{ Complex result = *this; result.real_ +...
27.617021
118
0.600154
diptu
58189ec61b157d53ce90fb63d0476546bac6f851
7,728
cpp
C++
src/framework/kmdf/src/dma/base/fxcommonbufferapi.cpp
IT-Enthusiast-Nepal/Windows-Driver-Frameworks
bfee6134f30f92a90dbf96e98d54582ecb993996
[ "MIT" ]
994
2015-03-18T21:37:07.000Z
2019-04-26T04:04:14.000Z
src/framework/kmdf/src/dma/base/fxcommonbufferapi.cpp
IT-Enthusiast-Nepal/Windows-Driver-Frameworks
bfee6134f30f92a90dbf96e98d54582ecb993996
[ "MIT" ]
13
2019-06-13T15:58:03.000Z
2022-02-18T22:53:35.000Z
src/framework/kmdf/src/dma/base/fxcommonbufferapi.cpp
IT-Enthusiast-Nepal/Windows-Driver-Frameworks
bfee6134f30f92a90dbf96e98d54582ecb993996
[ "MIT" ]
350
2015-03-19T04:29:46.000Z
2019-05-05T23:26:50.000Z
/*++ Copyright (c) Microsoft Corporation Module Name: FxCommonBufferAPI.cpp Abstract: Base for WDF CommonBuffer APIs Environment: Kernel mode only. Notes: Revision History: --*/ #include "FxDmaPCH.hpp" extern "C" { #include "FxCommonBufferAPI.tmh" } // // Extern "C" the entire file // extern "...
25.421053
79
0.607013
IT-Enthusiast-Nepal
5819329cbc183c156d879117a551fa279dfba621
6,770
cpp
C++
ModEPP.cpp
hiqsol/reclient
02c2f0c21a4378a5dbcc058f468d98c34e1d1190
[ "BSD-3-Clause" ]
2
2018-11-14T11:18:49.000Z
2018-11-17T05:13:52.000Z
ModEPP.cpp
hiqsol/reclient
02c2f0c21a4378a5dbcc058f468d98c34e1d1190
[ "BSD-3-Clause" ]
null
null
null
ModEPP.cpp
hiqsol/reclient
02c2f0c21a4378a5dbcc058f468d98c34e1d1190
[ "BSD-3-Clause" ]
null
null
null
// (c) Andrii Vasyliev // ModEPP #include "reclient/ModEPP.h" namespace re { Hash<EPP> ModEPP::sessions; data_type ModEPP::init (data_cref a) { sessions.set(a.getLine("session",0),EPP(a.getLine("host"),a.getIntN("port"),a.getLine("certificate"),a.getLine("cacertfile"),a.getLine("cacertdir"))); if (a.has("serial")...
83.580247
151
0.742984
hiqsol
581964349ff52128d383dc60f9b26897ee810c0d
1,024
cc
C++
simulation/functional-sim/libss-vpi/lib.src/sim_main.cc
anycore/anycore-pisa
b4dcd040d2850fb19adb1502c3c03bf73ca06c35
[ "BSD-3-Clause" ]
null
null
null
simulation/functional-sim/libss-vpi/lib.src/sim_main.cc
anycore/anycore-pisa
b4dcd040d2850fb19adb1502c3c03bf73ca06c35
[ "BSD-3-Clause" ]
null
null
null
simulation/functional-sim/libss-vpi/lib.src/sim_main.cc
anycore/anycore-pisa
b4dcd040d2850fb19adb1502c3c03bf73ca06c35
[ "BSD-3-Clause" ]
3
2017-10-14T00:51:39.000Z
2021-03-25T16:37:11.000Z
#include <stdio.h> #include <string.h> #include <math.h> #include <assert.h> #include "misc.h" #include "mt_trace_consume.h" #include "Thread.h" #include "global_vars.h" ///////////////////////////////////////////////////////////////////// void sim_config(FILE *stream) { } /* exit when this becomes non-zero */ int s...
19.692308
69
0.482422
anycore
5823aa62b92115ca96ff4014c9c5b9f0e6d9c619
973
cpp
C++
Uva-11677 - Alarm Clock.cpp
Samim-Arefin/UVa-Problem-Solution
8556639b9e718299f4a52920034dfa0264e06f8e
[ "MIT" ]
1
2020-11-02T22:18:22.000Z
2020-11-02T22:18:22.000Z
Uva-11677 - Alarm Clock.cpp
Samim-Arefin/UVa-Problem-Solution
8556639b9e718299f4a52920034dfa0264e06f8e
[ "MIT" ]
null
null
null
Uva-11677 - Alarm Clock.cpp
Samim-Arefin/UVa-Problem-Solution
8556639b9e718299f4a52920034dfa0264e06f8e
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; int main() { int H1, M1, H2, M2; while (cin >> H1 >> M1 >> H2 >> M2) { if (H1 == 0 && H2 == 0 && M1 == 0 && M2 == 0) { break; } else if (H1 > H2) { if (M1 > M2) { int temp = (60 + M2 - M1) + (60 * (24 + H2 - H1 - 1)); cout << temp << '\n'; } ...
18.358491
58
0.362795
Samim-Arefin
5824b9f76541e35107a905386262bfc985a1aac8
222
cpp
C++
src/DesktopCore/System/Services/TimerKillerService.cpp
lurume84/blink-desktop
d6d01f8dc461edd22192a521fbd49669bfa8f684
[ "MIT" ]
75
2019-03-08T14:15:49.000Z
2022-01-05T17:30:43.000Z
src/DesktopCore/System/Services/TimerKillerService.cpp
lurume84/blink-desktop
d6d01f8dc461edd22192a521fbd49669bfa8f684
[ "MIT" ]
55
2019-02-17T01:34:12.000Z
2022-02-26T21:07:33.000Z
src/DesktopCore/System/Services/TimerKillerService.cpp
lurume84/blink-desktop
d6d01f8dc461edd22192a521fbd49669bfa8f684
[ "MIT" ]
20
2019-05-21T19:02:31.000Z
2022-03-28T07:29:28.000Z
#include "TimerKillerService.h" namespace desktop { namespace core { namespace service { void TimerKillerService::kill() { std::unique_lock<std::mutex> lock(m_mutex); m_terminate = true; m_cv.notify_all(); } }}}
20.181818
56
0.716216
lurume84
5826c19e29f2924c6e3478834a6d68c2073aa17e
859
cpp
C++
LeetCode/NonDecreasingArray.cpp
SelvorWhim/competitive
b9daaf21920d6f7669dc0c525e903949f4e33b62
[ "Unlicense" ]
null
null
null
LeetCode/NonDecreasingArray.cpp
SelvorWhim/competitive
b9daaf21920d6f7669dc0c525e903949f4e33b62
[ "Unlicense" ]
null
null
null
LeetCode/NonDecreasingArray.cpp
SelvorWhim/competitive
b9daaf21920d6f7669dc0c525e903949f4e33b62
[ "Unlicense" ]
null
null
null
class Solution { public: bool checkPossibility(vector<int>& nums) { bool found_violation = false; for (int i = 1; i < nums.size(); i++) { if (nums[i] < nums[i-1]) { if (found_violation) { // 2nd case of decreasing, can't be fixed by changing one elemen...
37.347826
113
0.447031
SelvorWhim
582ac84325bc1c07a2c9f19ac7e79109a53e495a
631
hpp
C++
include/game/skirmish/meta/boardmetaclass.hpp
namelessvoid/qrwar
bbc4036cd3bab6b0edcaccbc95286379ef51f12b
[ "MIT" ]
3
2015-03-28T02:51:58.000Z
2018-11-08T16:49:53.000Z
include/game/skirmish/meta/boardmetaclass.hpp
namelessvoid/qrwar
bbc4036cd3bab6b0edcaccbc95286379ef51f12b
[ "MIT" ]
39
2015-05-18T08:29:16.000Z
2020-07-18T21:17:44.000Z
include/game/skirmish/meta/boardmetaclass.hpp
namelessvoid/qrwar
bbc4036cd3bab6b0edcaccbc95286379ef51f12b
[ "MIT" ]
null
null
null
#ifndef QRW_BOARDMETACLASS_HPP #define QRW_BOARDMETACLASS_HPP #include "meta/metaclass.hpp" #include "meta/properties/iproperty.hpp" #include "engine/board.hpp" namespace qrw { class BoardMetaClass final : public MetaClass { public: BoardMetaClass(const MetaManager& metaManager); ~BoardMetaClass() override...
21.033333
92
0.767036
namelessvoid
582b616e9b1b1ae42b7f74c0a6d865ca2723b72a
412
cpp
C++
Lecture7/ArrayStudy/ArrayStudy/main.cpp
sgajaejung/API-Lecture
904be7efdcc0e2eb40fbb9e4aa600b6598921392
[ "MIT" ]
2
2015-11-27T07:24:49.000Z
2017-09-07T09:33:14.000Z
Lecture7/ArrayStudy/ArrayStudy/main.cpp
sgajaejung/API-Lecture
904be7efdcc0e2eb40fbb9e4aa600b6598921392
[ "MIT" ]
null
null
null
Lecture7/ArrayStudy/ArrayStudy/main.cpp
sgajaejung/API-Lecture
904be7efdcc0e2eb40fbb9e4aa600b6598921392
[ "MIT" ]
1
2021-02-09T15:49:37.000Z
2021-02-09T15:49:37.000Z
#include <iostream> using namespace std; void main() { int ar1[10][10] = { {1, 2, 3}, {4, 5, 6}, {7, 8, 9} }; int **ar2; ar2 = new int*[ 10]; for (int i=0; i < 10; ++i) { ar2[ i] = new int[ 10]; } ar2[ 0][ 0] = 1; ar2[ 0][ 1] = 2; cout << ar1[ 0][ 0] << endl; cout << ar2[ 0][ 0] << endl; cou...
12.875
35
0.444175
sgajaejung
582bfcd91b38d45c90dec277ec1fa53a01f3365f
824
cpp
C++
C++/tests/problems/0150_search_suggestions_system_test.cpp
oxone-999/algorithms
52dc527111e7422923a0e25684d8f4837e81a09b
[ "MIT" ]
6
2019-03-20T22:23:26.000Z
2020-08-28T03:10:27.000Z
C++/tests/problems/0150_search_suggestions_system_test.cpp
oxone-999/algorithms
52dc527111e7422923a0e25684d8f4837e81a09b
[ "MIT" ]
15
2019-10-13T20:53:53.000Z
2022-03-31T02:01:35.000Z
C++/tests/problems/0150_search_suggestions_system_test.cpp
oxone-999/algorithms
52dc527111e7422923a0e25684d8f4837e81a09b
[ "MIT" ]
3
2019-03-11T10:57:46.000Z
2020-02-26T21:13:21.000Z
#include "../../problems/0150_search_suggestions_system.hpp" #include <bits/stdc++.h> #include "../../frameworks/catch.hpp" #include "../../frameworks/asserts.hpp" using namespace std; TEST_CASE( "Search Suggestions System" ) { Solution sol; vector<string> products1 = {"mobile","mouse","moneypot","monito...
43.368421
166
0.669903
oxone-999
58312b795a02f436a5b1ebe26a7f9d64d2b6db4a
256
cpp
C++
Notes_Week8/Exception/stdException.cpp
WeiChienHsu/CS165
65e95efc90415c8acc707e2d544eb384d3982e18
[ "MIT" ]
1
2019-01-06T22:36:01.000Z
2019-01-06T22:36:01.000Z
Notes_Week8/Exception/stdException.cpp
WeiChienHsu/CS165
65e95efc90415c8acc707e2d544eb384d3982e18
[ "MIT" ]
null
null
null
Notes_Week8/Exception/stdException.cpp
WeiChienHsu/CS165
65e95efc90415c8acc707e2d544eb384d3982e18
[ "MIT" ]
null
null
null
#include <iostream> #include <stdexcept> #include <vector> int main() { std::vector<int> v; v.push_back(10); try { std::cout << v.at(15) << std::endl; } catch(std::out_of_range e) { std::cout << e.what() << std::endl; } return 0; }
17.066667
41
0.566406
WeiChienHsu
5831d734eb7eefb0d9bf00be7c1cad236df1df65
543
hh
C++
wcd/include/world.hh
lagoproject/sims
bc34510b803136c770ecd9c789dc7cfade2ccbbd
[ "BSD-3-Clause" ]
null
null
null
wcd/include/world.hh
lagoproject/sims
bc34510b803136c770ecd9c789dc7cfade2ccbbd
[ "BSD-3-Clause" ]
null
null
null
wcd/include/world.hh
lagoproject/sims
bc34510b803136c770ecd9c789dc7cfade2ccbbd
[ "BSD-3-Clause" ]
null
null
null
#ifndef world_h #define world_h 1 // Geant4 Libraries // #include "G4Material.hh" #include "G4LogicalVolume.hh" #include "G4PVPlacement.hh" #include "G4Box.hh" // Local Libraries // class world { public: world(); virtual ~world(); void DefineMaterials(); void buildDetector(G4bool* overLaps); ...
15.083333
41
0.697974
lagoproject
58329699f0f654ba61c1a53bb753f8ea5a77d38e
651
cpp
C++
s01-installation-openframeworks-basics/01-basics/src/main.cpp
pkmital/MTIID-MTEC-616-01-2017
c5f7f24c531cda3a48dbd974f46c08fa504dd06d
[ "Apache-2.0" ]
13
2017-01-16T07:16:51.000Z
2019-07-19T04:11:36.000Z
s01-installation-openframeworks-basics/01-basics/src/main.cpp
pkmital/MTIID-MTEC-616-01-2017
c5f7f24c531cda3a48dbd974f46c08fa504dd06d
[ "Apache-2.0" ]
null
null
null
s01-installation-openframeworks-basics/01-basics/src/main.cpp
pkmital/MTIID-MTEC-616-01-2017
c5f7f24c531cda3a48dbd974f46c08fa504dd06d
[ "Apache-2.0" ]
4
2017-05-29T15:43:45.000Z
2019-07-19T04:11:42.000Z
#include "ofMain.h" class ofApp : public ofBaseApp{ public: void setup() { cam.setup(width, height); ofSetWindowShape(width, height); ofSetFrameRate(60); } void update() { cam.update(); } void draw() { cam.draw(0, 0, ofGetWidth(), ofGetHeight()); ...
16.275
52
0.519201
pkmital
5837fb7499389925fc6205caa772c3f38acc3d6a
8,762
cpp
C++
sycl/test/basic_tests/buffer/subbuffer_interop.cpp
jcranmer-intel/llvm-sycl
45dbbd128e4793681ed9d40a3c018f44c17449ec
[ "Apache-2.0" ]
null
null
null
sycl/test/basic_tests/buffer/subbuffer_interop.cpp
jcranmer-intel/llvm-sycl
45dbbd128e4793681ed9d40a3c018f44c17449ec
[ "Apache-2.0" ]
null
null
null
sycl/test/basic_tests/buffer/subbuffer_interop.cpp
jcranmer-intel/llvm-sycl
45dbbd128e4793681ed9d40a3c018f44c17449ec
[ "Apache-2.0" ]
null
null
null
// RUN: %clangxx -fsycl %s -o %t.out -lOpenCL // RUN: %CPU_RUN_PLACEHOLDER %t.out // RUN: %GPU_RUN_PLACEHOLDER %t.out // RUN: %ACC_RUN_PLACEHOLDER %t.out //==------------ subbuffer_interop.cpp - SYCL buffer basic test ------------==// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. /...
30.74386
85
0.548505
jcranmer-intel
58382202eab09296fbd2a8c829b3ee6d9344e0c4
2,533
cpp
C++
src/types/Range.cpp
LumpBloom7/cligCore
ddd26787128fbed1724dba66e90673ffa8b5ed2e
[ "MIT" ]
null
null
null
src/types/Range.cpp
LumpBloom7/cligCore
ddd26787128fbed1724dba66e90673ffa8b5ed2e
[ "MIT" ]
7
2018-04-03T07:48:22.000Z
2018-07-19T12:34:19.000Z
src/types/Range.cpp
LumpBloom7/cligCore
ddd26787128fbed1724dba66e90673ffa8b5ed2e
[ "MIT" ]
1
2018-01-07T05:30:11.000Z
2018-01-07T05:30:11.000Z
#include "Types/Range.h" namespace cligCore::types { Range::Range() : _lower(0), _upper(10), _current(0), _isSelectable(false) {} Range::Range(int lowerBounds, int upperBounds, bool isSelectable) { // Differentiate the smaller value from the bigger value to ease processing and to avoid any potential bugs. ...
37.80597
143
0.591788
LumpBloom7
583a6ed68848eabcc419798f3c580e6c187de8d6
2,515
cpp
C++
src/bitsyc.cpp
SimplyDanny/bitsy-llvm
125e404388ef65847eac8cb533c5321a2289bb85
[ "MIT" ]
4
2021-01-07T10:29:49.000Z
2021-07-17T22:10:54.000Z
src/bitsyc.cpp
SimplyDanny/bitsy-llvm
125e404388ef65847eac8cb533c5321a2289bb85
[ "MIT" ]
null
null
null
src/bitsyc.cpp
SimplyDanny/bitsy-llvm
125e404388ef65847eac8cb533c5321a2289bb85
[ "MIT" ]
2
2021-02-07T21:15:20.000Z
2021-07-17T22:10:55.000Z
#include "ast/ASTPrinter.hpp" #include "codegen/CodeGenerator.hpp" #include "codegen/ModuleBuilder.hpp" #include "execution/ModuleProcessor.hpp" #include "lexer/Lexer.hpp" #include "parser/Parser.hpp" #include "llvm/Support/CommandLine.h" #include <fstream> #include <iostream> #include <iterator> namespace cl = llvm...
32.662338
107
0.612326
SimplyDanny
5842b0de946b88bc341d1ff11a4285f995e5a432
2,860
cpp
C++
tests/TestProgress/TestProgress.cpp
deniskropp/llyx
33c7dd40921563d116363bd3e0b411aaa61ca29e
[ "MIT" ]
null
null
null
tests/TestProgress/TestProgress.cpp
deniskropp/llyx
33c7dd40921563d116363bd3e0b411aaa61ca29e
[ "MIT" ]
null
null
null
tests/TestProgress/TestProgress.cpp
deniskropp/llyx
33c7dd40921563d116363bd3e0b411aaa61ca29e
[ "MIT" ]
null
null
null
/* TestProgress - llyx test */ #include <SFML/Graphics.hpp> #include <llyx/BaseView.hpp> #include <llyx/ButtonView.hpp> #include <llyx/FPSView.hpp> #include <llyx/ProgressView.hpp> #include <llyx/RootView.hpp> #include <llyx/TextView.hpp> class TestView : public llyx::RootView { private: lli::...
19.861111
90
0.61014
deniskropp
5843f6db4edc12739e39e69d457870313b4b64f7
287
cpp
C++
homomorphic_evaluation/ntl-11.3.2/src/CheckBUILTIN_CLZL.cpp
dklee0501/PLDI_20_242_artifact_publication
f2b73df9165c76e8b521d8ebd639d68321e3862b
[ "MIT" ]
160
2016-05-11T09:45:56.000Z
2022-03-06T09:32:19.000Z
homomorphic_evaluation/ntl-11.3.2/src/CheckBUILTIN_CLZL.cpp
dklee0501/Lobster
f2b73df9165c76e8b521d8ebd639d68321e3862b
[ "MIT" ]
57
2016-12-26T07:02:12.000Z
2022-03-06T16:34:31.000Z
homomorphic_evaluation/ntl-11.3.2/src/CheckBUILTIN_CLZL.cpp
dklee0501/Lobster
f2b73df9165c76e8b521d8ebd639d68321e3862b
[ "MIT" ]
67
2016-10-10T17:56:22.000Z
2022-03-15T22:56:39.000Z
#include <NTL/mach_desc.h> #include <cstdlib> using namespace std; long CountLeadingZeros(unsigned long x) { return __builtin_clzl(x); } int main() { unsigned long x = atoi("3"); if (CountLeadingZeros(x) == NTL_BITS_PER_LONG-2) return 0; else return -1; }
12.478261
51
0.651568
dklee0501
5846d4044eaf5a2e4149ff144927bbf99a979009
15,060
hpp
C++
core123/include/core123/counter_based_engine.hpp
fennm/fs123
559b97659352620ce16030824f9acd26f590f4e1
[ "BSD-3-Clause" ]
22
2019-04-10T18:05:35.000Z
2021-12-30T12:26:39.000Z
core123/include/core123/counter_based_engine.hpp
fennm/fs123
559b97659352620ce16030824f9acd26f590f4e1
[ "BSD-3-Clause" ]
13
2019-04-09T00:19:29.000Z
2021-11-04T15:57:13.000Z
core123/include/core123/counter_based_engine.hpp
fennm/fs123
559b97659352620ce16030824f9acd26f590f4e1
[ "BSD-3-Clause" ]
4
2019-04-07T16:33:44.000Z
2020-07-02T02:58:51.000Z
// counter_based_engine: An adapter that turns a 'psuedo random // function' (e.g., core123::threefry or core123::philox) into a bona // fide standard C++ "Random Number Engine", satisfying the // requirements in [rand.req.eng] for a result_type, constructors, // seed methods, discard, equality and inequality operators...
39.015544
132
0.626494
fennm
58482df3ccc4569c7e1e37a2ca2d070e0aec3f9c
237
cpp
C++
src/eepp/window/cclipboard.cpp
dogtwelve/eepp
dd672ff0e108ae1e08449ca918dc144018fb4ba4
[ "MIT" ]
null
null
null
src/eepp/window/cclipboard.cpp
dogtwelve/eepp
dd672ff0e108ae1e08449ca918dc144018fb4ba4
[ "MIT" ]
null
null
null
src/eepp/window/cclipboard.cpp
dogtwelve/eepp
dd672ff0e108ae1e08449ca918dc144018fb4ba4
[ "MIT" ]
null
null
null
#include <eepp/window/cclipboard.hpp> namespace EE { namespace Window { cClipboard::cClipboard( cWindow * window ) : mWindow( window ) {} cClipboard::~cClipboard() {} cWindow * cClipboard::GetWindow() const { return mWindow; } }}
14.8125
44
0.700422
dogtwelve
584d8245c86266445eb507f78bf1b2a3379d40e9
215
cpp
C++
2/sum_array.cpp
cwaffles/CMPT225Labs
c4c6c2ff90e99ec3a5938a63f48c41dab4a8190b
[ "MIT" ]
1
2016-06-04T07:39:21.000Z
2016-06-04T07:39:21.000Z
2/sum_array.cpp
cwaffles/CMPT225Labs
c4c6c2ff90e99ec3a5938a63f48c41dab4a8190b
[ "MIT" ]
null
null
null
2/sum_array.cpp
cwaffles/CMPT225Labs
c4c6c2ff90e99ec3a5938a63f48c41dab4a8190b
[ "MIT" ]
null
null
null
// // Created by eric on 24/05/16. // #include "sum_array.h" int sumArray(int arr[], int arrSize) { int runningTotal = 0; for(int i = 0; i < arrSize; i++) { runningTotal += arr[i]; } return runningTotal; }
13.4375
36
0.613953
cwaffles
584dd318e960a40948b1b69fde2d4208ae1cb8e9
278
cpp
C++
Pacman_ASCII/src/Pacman.cpp
SebGrenier/Pacman_ASCII
6eb6fea809d1bd97d41dee973149b8656fc01846
[ "MIT" ]
null
null
null
Pacman_ASCII/src/Pacman.cpp
SebGrenier/Pacman_ASCII
6eb6fea809d1bd97d41dee973149b8656fc01846
[ "MIT" ]
null
null
null
Pacman_ASCII/src/Pacman.cpp
SebGrenier/Pacman_ASCII
6eb6fea809d1bd97d41dee973149b8656fc01846
[ "MIT" ]
null
null
null
#include "Pacman.h" #include "ConsoleUtils.h" #include <iostream> using namespace std; Pacman::Pacman(char chr) : _character(chr) { } Pacman::~Pacman(void) {} void Pacman::Draw(void) const { ConsoleUtils::SetCursorPosition(_position.x, _position.y); cout << _character; }
15.444444
59
0.719424
SebGrenier
584fc3905dd2668afa845d2413808a746a79175f
1,183
cpp
C++
Framework/Sources/o2/Utils/Editor/EditorScope.cpp
zenkovich/o2
cdbf10271f1bf0f3198c8005b13b66e6ca13a9db
[ "MIT" ]
181
2015-12-09T08:53:36.000Z
2022-03-26T20:48:39.000Z
Framework/Sources/o2/Utils/Editor/EditorScope.cpp
zenkovich/o2
cdbf10271f1bf0f3198c8005b13b66e6ca13a9db
[ "MIT" ]
29
2016-04-22T08:24:04.000Z
2022-03-06T07:06:28.000Z
Framework/Sources/o2/Utils/Editor/EditorScope.cpp
zenkovich/o2
cdbf10271f1bf0f3198c8005b13b66e6ca13a9db
[ "MIT" ]
13
2018-04-24T17:12:04.000Z
2021-11-12T23:49:53.000Z
#include "o2/stdafx.h" #include "EditorScope.h" #include "o2/Events/EventSystem.h" #include "o2/Utils/Debug/Assert.h" namespace o2 { void EditorScope::Enter(int count /*= 1*/) { if (count > 0) { Actor::SetDefaultCreationMode(ActorCreateMode::NotInScene); mDepth += count; } } void EditorScope::Exit(i...
17.144928
67
0.688926
zenkovich
58574d6340b50c1ba19eb70b6efdb91541ddc805
11,669
cpp
C++
tests/cuda4.1sdk/tests/simpleTexture3D/simpleTexture3D.cpp
florianjacob/gpuocelot
fa63920ee7c5f9a86e264cd8acd4264657cbd190
[ "BSD-3-Clause" ]
221
2015-03-29T02:05:49.000Z
2022-03-25T01:45:36.000Z
tests/cuda4.1sdk/tests/simpleTexture3D/simpleTexture3D.cpp
mprevot/gpuocelot
d9277ef05a110e941aef77031382d0260ff115ef
[ "BSD-3-Clause" ]
106
2015-03-29T01:28:42.000Z
2022-02-15T19:38:23.000Z
tests/cuda4.1sdk/tests/simpleTexture3D/simpleTexture3D.cpp
mprevot/gpuocelot
d9277ef05a110e941aef77031382d0260ff115ef
[ "BSD-3-Clause" ]
83
2015-07-10T23:09:57.000Z
2022-03-25T03:01:00.000Z
/* * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
27.200466
150
0.649327
florianjacob
5858ba9538f6b2012a8c637ee0f63e3f56f64114
15,197
cpp
C++
Proj_Android/app/src/main/cpp/FPolyPath.cpp
nraptis/Metal_OpenGL_MobileGameEngine
cc36682676a9797df8b3a7ee235b99be3ae2f666
[ "MIT" ]
3
2019-10-10T19:25:42.000Z
2019-12-17T10:51:23.000Z
Framework/[C++ Core]/FPolyPath.cpp
nraptis/Metal_OpenGL_MobileGameEngine
cc36682676a9797df8b3a7ee235b99be3ae2f666
[ "MIT" ]
null
null
null
Framework/[C++ Core]/FPolyPath.cpp
nraptis/Metal_OpenGL_MobileGameEngine
cc36682676a9797df8b3a7ee235b99be3ae2f666
[ "MIT" ]
1
2021-11-16T15:29:40.000Z
2021-11-16T15:29:40.000Z
// // FPolyPath.cpp // DigMMMac // // Created by Nicholas Raptis on 3/30/15. // Copyright (c) 2015 Nick Raptis. All rights reserved. // #include "FPolyPath.hpp" #include "FApp.hpp" #include "core_includes.h" FPolyPathInterp::FPolyPathInterp() { mValid = false; mIndexStart = -1; mIndexEnd = -1; mP...
26.02226
90
0.447852
nraptis
5858c55105c62a1eb7e1866d773e0fce05d55ee4
5,159
hpp
C++
includes/netflex/http/request.hpp
deguangchow/NetFlex
8fbdee6601dcbaa5be12e467bee82f1f648cd63b
[ "MIT" ]
null
null
null
includes/netflex/http/request.hpp
deguangchow/NetFlex
8fbdee6601dcbaa5be12e467bee82f1f648cd63b
[ "MIT" ]
null
null
null
includes/netflex/http/request.hpp
deguangchow/NetFlex
8fbdee6601dcbaa5be12e467bee82f1f648cd63b
[ "MIT" ]
null
null
null
// The MIT License (MIT) // // Copyright (c) 2015-2017 Simon Ninon <simon.ninon@gmail.com> // // 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 limitat...
21.953191
80
0.65284
deguangchow
585c0172f41d5ac958063fd49843ba3aa5457fca
19,964
cpp
C++
src/aspell-60/modules/filter/sgml.cpp
reydajp/build-spell
a88ffbb9ffedae3f20933b187c95851e47e0e4c3
[ "MIT" ]
31
2016-11-08T05:13:02.000Z
2022-02-23T19:13:01.000Z
src/aspell-60/modules/filter/sgml.cpp
reydajp/build-spell
a88ffbb9ffedae3f20933b187c95851e47e0e4c3
[ "MIT" ]
6
2017-01-17T20:21:55.000Z
2021-09-02T07:36:18.000Z
src/aspell-60/modules/filter/sgml.cpp
reydajp/build-spell
a88ffbb9ffedae3f20933b187c95851e47e0e4c3
[ "MIT" ]
5
2017-07-11T11:10:55.000Z
2022-02-14T01:55:16.000Z
// This file is part of The New Aspell // Copyright (C) 2004 by Tom Snyder // Copyright (C) 2001-2004 by Kevin Atkinson under the GNU LGPL license // version 2.0 or 2.1. You should have received a copy of the LGPL // license along with this library if you did not you can find // it at http://www.gnu.org/. // // The or...
32.998347
101
0.586806
reydajp
585d27f2b0c775e3daf59590674a2556dc83baf8
83,348
cpp
C++
game/shared/cstrike15/gametypes.cpp
DannyParker0001/Kisak-Strike
99ed85927336fe3aff2efd9b9382b2b32eb1d05d
[ "Unlicense" ]
252
2020-12-16T15:34:43.000Z
2022-03-31T23:21:37.000Z
cstrike15_src/game/shared/cstrike15/gametypes.cpp
bahadiraraz/Counter-Strike-Global-Offensive
9a0534100cb98ffa1cf0c32e138f0e7971e910d3
[ "MIT" ]
23
2020-12-20T18:02:54.000Z
2022-03-28T16:58:32.000Z
cstrike15_src/game/shared/cstrike15/gametypes.cpp
bahadiraraz/Counter-Strike-Global-Offensive
9a0534100cb98ffa1cf0c32e138f0e7971e910d3
[ "MIT" ]
42
2020-12-19T04:32:33.000Z
2022-03-30T06:00:28.000Z
//========= Copyright (c) 1996-2011, Valve Corporation, All rights reserved. ============// // // Purpose: Game types and modes // // $NoKeywords: $ //=============================================================================// // // NOTE: This is horrible design to have this file included in multiple projects (cl...
31.251594
180
0.584837
DannyParker0001