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
0c53928bad53d5810ef753c621ba45a1a950bc38
2,482
cpp
C++
utils.cpp
Yujian-Fu/ivf-hnsw
4bd2b46d7b1436e1ed3b03641bd9d53535a5d776
[ "MIT" ]
138
2017-12-17T14:18:53.000Z
2022-03-10T06:49:43.000Z
utils.cpp
Yujian-Fu/ivf-hnsw
4bd2b46d7b1436e1ed3b03641bd9d53535a5d776
[ "MIT" ]
5
2018-09-18T13:16:42.000Z
2020-12-21T06:41:03.000Z
utils.cpp
Yujian-Fu/ivf-hnsw
4bd2b46d7b1436e1ed3b03641bd9d53535a5d776
[ "MIT" ]
23
2018-05-05T16:14:26.000Z
2022-03-08T05:08:55.000Z
#include "utils.h" namespace ivfhnsw { void random_subset(const float *x, float *x_out, size_t d, size_t nx, size_t sub_nx) { long seed = 1234; std::vector<int> perm(nx); faiss::rand_perm(perm.data(), nx, seed); for (size_t i = 0; i < sub_nx; i++) memcpy(x_out + i * d...
27.577778
114
0.471797
Yujian-Fu
0c60d0060c5e470062679c88ac50a6f18f9e621f
11,035
cpp
C++
src/Simul.cpp
loicseguin/spinify
6be4afa3c400cefcedc6b3bf4370a224bbfa44f6
[ "BSD-3-Clause" ]
null
null
null
src/Simul.cpp
loicseguin/spinify
6be4afa3c400cefcedc6b3bf4370a224bbfa44f6
[ "BSD-3-Clause" ]
null
null
null
src/Simul.cpp
loicseguin/spinify
6be4afa3c400cefcedc6b3bf4370a224bbfa44f6
[ "BSD-3-Clause" ]
null
null
null
/* * Simul.cpp * spinify * * Created by Loïc Séguin-Charbonneau on 10-01-01. * Copyright 2010, 2011 Loïc Séguin-Charbonneau. All rights reserved. * */ #include <algorithm> #include <cmath> #include <fstream> #include <iostream> #include "Maths.h" #include "Simul.h" #ifdef _WIN32 #include "win32/tezuka.h" ...
26.849148
84
0.617309
loicseguin
0c6a61ee12591f3d9097bb271f8fcd4f3b9a5780
221
cpp
C++
ArUco/ArUco_Functions/aruco_picking/src/aruco_picking_Node.cpp
davideferrari95/ArUco_Controller
d1f0d1527c0a0e0ada2c68f3f8fb7fee3e9adf50
[ "BSD-3-Clause" ]
1
2021-09-03T19:34:40.000Z
2021-09-03T19:34:40.000Z
ArUco/ArUco_Functions/aruco_picking/src/aruco_picking_Node.cpp
davideferrari95/ArUco_Controller
d1f0d1527c0a0e0ada2c68f3f8fb7fee3e9adf50
[ "BSD-3-Clause" ]
null
null
null
ArUco/ArUco_Functions/aruco_picking/src/aruco_picking_Node.cpp
davideferrari95/ArUco_Controller
d1f0d1527c0a0e0ada2c68f3f8fb7fee3e9adf50
[ "BSD-3-Clause" ]
null
null
null
#include "aruco_picking.h" int main(int argc, char **argv) { ros::init(argc, argv, "ArUco_Picking"); aruco_picking ap; while (ros::ok()) { ap.pick(); ros::shutdown(); } return 0; }
11.631579
43
0.542986
davideferrari95
0c6b7b7182ea7178feec4fc75c2815fdaba404c0
1,622
cpp
C++
Assignment2_SarfarazSyed/SDL_Project/UI02.cpp
adityadutta/Assignment2_GAME203
ff15cd91f0d2bea3b74433e0877569515d0f18ea
[ "MIT" ]
null
null
null
Assignment2_SarfarazSyed/SDL_Project/UI02.cpp
adityadutta/Assignment2_GAME203
ff15cd91f0d2bea3b74433e0877569515d0f18ea
[ "MIT" ]
null
null
null
Assignment2_SarfarazSyed/SDL_Project/UI02.cpp
adityadutta/Assignment2_GAME203
ff15cd91f0d2bea3b74433e0877569515d0f18ea
[ "MIT" ]
null
null
null
//#include "UI02.h" // // // // //UI02::UI02() { // //} // //bool UI02::onCreate() { // // uiBodies.push_back ( new Body("RPGMap.png", Vec3(26.5f, 35.0f, 0.0f))); // uiBodies.push_back ( new Body("Health.png", Vec3(-3.0f, -15.0f, 0.0f))); // uiBodies.push_back ( new Body("RpgCharacter.png", Vec3(29.0f, 17.5f, 0.0f))); ...
22.219178
112
0.609741
adityadutta
0c6e915510e103c23ce2dca7f1ce4fdc914c1f12
1,299
cpp
C++
src/algebra.cpp
rgcv/libcgal-julia
8d5bc5f13d3c9c6160cfff795d2a0bbe1e473d94
[ "MIT" ]
5
2020-01-22T14:06:29.000Z
2021-09-23T11:29:18.000Z
src/algebra.cpp
rgcv/libcgal-julia
8d5bc5f13d3c9c6160cfff795d2a0bbe1e473d94
[ "MIT" ]
null
null
null
src/algebra.cpp
rgcv/libcgal-julia
8d5bc5f13d3c9c6160cfff795d2a0bbe1e473d94
[ "MIT" ]
2
2021-02-16T13:56:02.000Z
2022-03-14T17:17:30.000Z
#include <CGAL/number_utils.h> #include <jlcxx/module.hpp> #include <julia.h> #include "kernel.hpp" namespace jlcgal { void wrap_algebra(jlcxx::Module& cgal) { typedef Kernel::FT NT; // missing functions that involve EuclideanRing concept: // div, div_mod, mod #ifdef JLCGAL_EXACT_CONSTRUCTIONS cgal.set_ov...
31.682927
85
0.671286
rgcv
0c73f3e7cc82dc40064c8435ffec41d8ceafbdf0
550
cpp
C++
ArduIMU/sensors/acc_sensor.cpp
kwikius/ArduIMU
e741d2896425fa398c9a7ee19b986d1f6b31418f
[ "CC0-1.0" ]
null
null
null
ArduIMU/sensors/acc_sensor.cpp
kwikius/ArduIMU
e741d2896425fa398c9a7ee19b986d1f6b31418f
[ "CC0-1.0" ]
null
null
null
ArduIMU/sensors/acc_sensor.cpp
kwikius/ArduIMU
e741d2896425fa398c9a7ee19b986d1f6b31418f
[ "CC0-1.0" ]
1
2021-12-22T07:01:16.000Z
2021-12-22T07:01:16.000Z
#include "acc_sensor.h" #include "../devices/MPU6000.h" acc_sensor::update_callback acc_sensor::m_update_callback = nullptr; bool acc_sensor::init() { MPU6000init(); return true; } bool acc_sensor::update(quan::time_<uint32_t>::ms const & timeStamp) { if ( MPU6000AccDataReady()){ quan::three_d::vect...
22
71
0.645455
kwikius
0c7de377e03f3dab6f22ec7c5c158cf60be68b8c
2,204
cpp
C++
acwing/第12场周赛/c.cpp
tempure/algorithm-advance
38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b
[ "MIT" ]
3
2020-11-16T08:58:30.000Z
2020-11-16T08:58:33.000Z
acwing/第12场周赛/c.cpp
tempure/algorithm-advance
38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b
[ "MIT" ]
null
null
null
acwing/第12场周赛/c.cpp
tempure/algorithm-advance
38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b
[ "MIT" ]
null
null
null
#include <iostream> #include <cstdlib> #include <string> #include <algorithm> typedef long long LL; using namespace std; struct vertex { LL his, min; }; vertex tree[200000 * 4 + 4]; inline LL min(const LL a, const LL b) { if (a < b) return a; else return b; } LL up; void update(int v, ...
20.990476
107
0.373866
tempure
0c818a062afe1ae83496f8d5ba76c9dabc283676
388
cpp
C++
Practical/03-Loops/sum-of-First-N-Natural-Numbers.cpp
Coddict-Community/Free-CPP-Classes
4a4228bcd683c23821ffb407eeb45346591ef546
[ "MIT" ]
1
2021-11-06T13:50:42.000Z
2021-11-06T13:50:42.000Z
Practical/03-Loops/sum-of-First-N-Natural-Numbers.cpp
Coddict-Community/Free-CPP-Classes
4a4228bcd683c23821ffb407eeb45346591ef546
[ "MIT" ]
null
null
null
Practical/03-Loops/sum-of-First-N-Natural-Numbers.cpp
Coddict-Community/Free-CPP-Classes
4a4228bcd683c23821ffb407eeb45346591ef546
[ "MIT" ]
1
2021-11-11T14:39:03.000Z
2021-11-11T14:39:03.000Z
#include <bits/stdc++.h> //#include <iostream> using namespace std; int main() { int a, b, c = 0; cout << "Enter no.of natural no.s you need:-"; cin >> a; for (b = 1; b <= a; b++) { cout << b << " "; c += b; } cout << "\nTotal sum is" << c; cout << "\nAverage of first " ...
20.421053
85
0.458763
Coddict-Community
0c81a26d12e05a06e6594a9a3d32fe7c259bacdf
1,476
cpp
C++
src/ECS/StairComponent.cpp
MajorArkwolf/stonks
5671f7811f19af33450e5fd07ab61c700f71ee69
[ "0BSD" ]
null
null
null
src/ECS/StairComponent.cpp
MajorArkwolf/stonks
5671f7811f19af33450e5fd07ab61c700f71ee69
[ "0BSD" ]
null
null
null
src/ECS/StairComponent.cpp
MajorArkwolf/stonks
5671f7811f19af33450e5fd07ab61c700f71ee69
[ "0BSD" ]
null
null
null
#include "StairComponent.hpp" /** * @brief Modifies the slope * @return if the stair case has been activated */ bool StairComponent::checkStairActive() { return stairCaseActivate; } /** * @brief Sets the staircase to active * */ void StairComponent::SetStairActive() { stairCaseActivate = true; } /** ...
25.448276
73
0.657859
MajorArkwolf
0c81ed8b1910540b973c701639f54fdcb8212a23
2,993
cpp
C++
SRM629/CandyMaking.cpp
CanoeFZH/SRM
02e3eeaa6044b14640e450725f68684e392009cb
[ "MIT" ]
null
null
null
SRM629/CandyMaking.cpp
CanoeFZH/SRM
02e3eeaa6044b14640e450725f68684e392009cb
[ "MIT" ]
null
null
null
SRM629/CandyMaking.cpp
CanoeFZH/SRM
02e3eeaa6044b14640e450725f68684e392009cb
[ "MIT" ]
null
null
null
// BEGIN CUT HERE // END CUT HERE #include <sstream> #include <cstdio> #include <cstdlib> #include <iostream> #include <cstring> #include <algorithm> #include <cmath> #include <vector> #include <map> #include <string> #include <set> #include <algorithm> using namespace std; class CandyMaking { public: do...
61.081633
432
0.634815
CanoeFZH
0c89fd85ecf908e598be25067c3eaf1e5b3606a0
1,246
cpp
C++
srcs/cpp/src/python/init.cpp
jmsalamy/KungFu
063ccaae3c0a2c6411f26d3641da262abd4eeab3
[ "Apache-2.0" ]
null
null
null
srcs/cpp/src/python/init.cpp
jmsalamy/KungFu
063ccaae3c0a2c6411f26d3641da262abd4eeab3
[ "Apache-2.0" ]
null
null
null
srcs/cpp/src/python/init.cpp
jmsalamy/KungFu
063ccaae3c0a2c6411f26d3641da262abd4eeab3
[ "Apache-2.0" ]
null
null
null
#include <cstdio> #include <kungfu.h> #include <kungfu/python/init.h> std::unique_ptr<kungfu_world> _kungfu_world; void kungfu_python_init() { _kungfu_world.reset(new kungfu_world); } void kungfu_python_finialize() { _kungfu_world.reset(nullptr); } int kungfu_rank() { return _kungfu_world->Rank(); } int kungfu_lo...
24.92
73
0.699839
jmsalamy
0c93656f237783c301a9d68af97c67b79df1ae62
445
hpp
C++
src/standard/bits/DD_iterator_definitions.hpp
iDingDong/libDDCPP-old
841260fecc84330ff3bfffba7263f5318f0b4655
[ "BSD-3-Clause" ]
1
2018-06-01T03:29:34.000Z
2018-06-01T03:29:34.000Z
src/standard/bits/DD_iterator_definitions.hpp
iDingDong/libDDCPP-old
841260fecc84330ff3bfffba7263f5318f0b4655
[ "BSD-3-Clause" ]
null
null
null
src/standard/bits/DD_iterator_definitions.hpp
iDingDong/libDDCPP-old
841260fecc84330ff3bfffba7263f5318f0b4655
[ "BSD-3-Clause" ]
null
null
null
// DDCPP/standard/bits/DD_list_definitions,hpp #ifndef DD_LIST_DEFINITIONS_HPP_INCLUDED_ # define DD_LIST_DEFINITIONS_HPP_INCLUDED_ 1 # include "DD_global_definitions.hpp" # define DD_ITERATOR_DECLARATIONS\ DD_ALIAS(ConstValueType, ValueType const);\ DD_ALIAS(ReferenceType, ValueType&);\ DD_ALIAS(ConstRefer...
21.190476
49
0.8
iDingDong
0c9d12194d273f629c69e01cafafa47c127329cc
196
cpp
C++
Signal.cpp
PORT-INC/cicada
18730fa951ebf1b92a3116c13ddc75f786595dd1
[ "MIT" ]
null
null
null
Signal.cpp
PORT-INC/cicada
18730fa951ebf1b92a3116c13ddc75f786595dd1
[ "MIT" ]
null
null
null
Signal.cpp
PORT-INC/cicada
18730fa951ebf1b92a3116c13ddc75f786595dd1
[ "MIT" ]
null
null
null
// © 2016 PORT INC. #include <csignal> namespace Signal { volatile std::sig_atomic_t flg {0}; std::sig_atomic_t getFlg() { return flg; } void handler(std::sig_atomic_t arg) { flg = 0x1; } }
17.818182
51
0.673469
PORT-INC
0c9ee495053b13a5febe9e58855bd86e1188aec6
785
cpp
C++
FireBullet.cpp
LeonidFedorenko/SpaceBattle
ab8a1e70e02ec5fd6ff486d4f5af55ca85825f5f
[ "MIT" ]
null
null
null
FireBullet.cpp
LeonidFedorenko/SpaceBattle
ab8a1e70e02ec5fd6ff486d4f5af55ca85825f5f
[ "MIT" ]
null
null
null
FireBullet.cpp
LeonidFedorenko/SpaceBattle
ab8a1e70e02ec5fd6ff486d4f5af55ca85825f5f
[ "MIT" ]
null
null
null
#include "FireBullet.hpp" FireBullet::FireBullet() { } FireBullet::FireBullet(sf::Texture *texture, float pos_x, float pos_y, float d_X, float d_Y, float move_Bullet_Speed) { // параметры для каждого снаряда (передаю) this->shape.setTexture(*texture); this->shape.setPosition(pos_x, pos_y); this->bulletDirection.x ...
26.166667
117
0.741401
LeonidFedorenko
0ca18f54652f7e327214f732d61cd11e5483e9a7
1,315
cpp
C++
BankingSystem/Account.cpp
theoryofcpp/BankingSystem-Source-Code
ac24b31f1083c39293a7bbcd58d2c92d3085fbcf
[ "MIT" ]
null
null
null
BankingSystem/Account.cpp
theoryofcpp/BankingSystem-Source-Code
ac24b31f1083c39293a7bbcd58d2c92d3085fbcf
[ "MIT" ]
null
null
null
BankingSystem/Account.cpp
theoryofcpp/BankingSystem-Source-Code
ac24b31f1083c39293a7bbcd58d2c92d3085fbcf
[ "MIT" ]
null
null
null
#include "pch.h" #include <iostream> #include <iomanip> // parametric manipulators #include "Account.h" using namespace std; void Account::create_account() { cout << "\nEnter the Account No. "; cin >> acno; cout << "\nEnter the Name of Account Holder: "; cin.ignore(); cin.getline(name, 50); cout << "\nEnter th...
29.222222
98
0.638783
theoryofcpp
0ca509001ff7f66f95d2c8650589a55451e77720
91
cpp
C++
ShinToyScript/BuiltinFunction.cpp
KenKenhehe/ShinToyScript
936ad6eb46377c02fbed00ebb03f98188b77e1b9
[ "Apache-2.0" ]
null
null
null
ShinToyScript/BuiltinFunction.cpp
KenKenhehe/ShinToyScript
936ad6eb46377c02fbed00ebb03f98188b77e1b9
[ "Apache-2.0" ]
null
null
null
ShinToyScript/BuiltinFunction.cpp
KenKenhehe/ShinToyScript
936ad6eb46377c02fbed00ebb03f98188b77e1b9
[ "Apache-2.0" ]
null
null
null
#include "BuiltinFunction.h" Value* BuiltinFunction::ExecutePrint() { return nullptr; }
11.375
38
0.747253
KenKenhehe
0cb0097f7fbbded6692c872671622a49fd53a1e4
17,806
cpp
C++
rootex/vendor/Effekseer/effekseer/src/3rdParty/LLGI/examples/GPUParticle/GPUParticle.cpp
ChronicallySerious/Rootex
bf2a0997b6aa5be84dbfc0e7826c31ff693ca0f1
[ "MIT" ]
166
2019-06-19T19:51:45.000Z
2022-03-24T13:03:29.000Z
rootex/vendor/Effekseer/effekseer/src/3rdParty/LLGI/examples/GPUParticle/GPUParticle.cpp
rahil627/Rootex
44f827d469bddc7167b34dedf80d7a8b984fdf20
[ "MIT" ]
312
2019-06-13T19:39:25.000Z
2022-03-02T18:37:22.000Z
rootex/vendor/Effekseer/effekseer/src/3rdParty/LLGI/examples/GPUParticle/GPUParticle.cpp
rahil627/Rootex
44f827d469bddc7167b34dedf80d7a8b984fdf20
[ "MIT" ]
23
2019-10-04T11:02:21.000Z
2021-12-24T16:34:52.000Z
#include <LLGI.CommandList.h> #include <LLGI.Graphics.h> #include <LLGI.Platform.h> #include <LLGI.Shader.h> #include <LLGI.Compiler.h> #include <LLGI.VertexBuffer.h> #include <LLGI.IndexBuffer.h> #include <LLGI.PipelineState.h> #include <LLGI.Texture.h> #include <LLGI.ConstantBuffer.h> #include "GPUParticle.h" //===...
34.642023
167
0.704538
ChronicallySerious
0cb202a3ce2ed7b5929c40739f48d54847469aff
1,330
cpp
C++
src/Base.cpp
jeizenga/shasta
0948628124ba5c3dd9dcd071e88017ee453b4c54
[ "MIT" ]
null
null
null
src/Base.cpp
jeizenga/shasta
0948628124ba5c3dd9dcd071e88017ee453b4c54
[ "MIT" ]
null
null
null
src/Base.cpp
jeizenga/shasta
0948628124ba5c3dd9dcd071e88017ee453b4c54
[ "MIT" ]
null
null
null
#include "Base.hpp" using namespace ChanZuckerberg; using namespace shasta; #include "algorithm.hpp" BaseInitializer BaseInitializer::singleton; std::array<uint8_t, 256> BaseInitializer::table; BaseInitializer::BaseInitializer() { fill(table.begin(), table.end(), 255); table['A'] = 0; table['C'] = 1; ...
22.166667
57
0.593985
jeizenga
0cb4ff2d9ef9bc9d9651601db3495d947aec20f5
4,970
cpp
C++
StartupTask.cpp
eportelli/win-iot-I2C-CPP
dbfef0bf5859675c7089c53f6863654352ff8752
[ "MIT" ]
null
null
null
StartupTask.cpp
eportelli/win-iot-I2C-CPP
dbfef0bf5859675c7089c53f6863654352ff8752
[ "MIT" ]
null
null
null
StartupTask.cpp
eportelli/win-iot-I2C-CPP
dbfef0bf5859675c7089c53f6863654352ff8752
[ "MIT" ]
null
null
null
// Copyright (c) Microsoft. All rights reserved. #include "pch.h" #include "StartupTask.h" using namespace BlinkyHeadlessCpp; using namespace Platform; using namespace Windows::ApplicationModel::Background; using namespace Windows::Foundation; using namespace Windows::Devices::Gpio; using namespace Windows::Devices:...
26.296296
163
0.719115
eportelli
0cb7f921a8f37d427ee66f8311b98411096e93d2
2,982
cpp
C++
test/test_timer.cpp
melven/pitts
491f503a99a7d1161a27672955ae53ca6b5d3412
[ "BSD-3-Clause" ]
2
2021-12-31T08:28:17.000Z
2022-01-12T14:48:49.000Z
test/test_timer.cpp
melven/pitts
491f503a99a7d1161a27672955ae53ca6b5d3412
[ "BSD-3-Clause" ]
null
null
null
test/test_timer.cpp
melven/pitts
491f503a99a7d1161a27672955ae53ca6b5d3412
[ "BSD-3-Clause" ]
null
null
null
#include <gtest/gtest.h> #include "pitts_timer.hpp" namespace { void simpleFunction(int x, int y) { const auto timer = PITTS::timing::createScopedTimer(); printf("x+y: %d\n", x+y); } void simpleFunctionWithType(int x, int y) { const auto timer = PITTS::timing::createScopedTimer<int>(); print...
27.611111
71
0.714956
melven
0cb8e8387c5e372c39f4dd57cb2888e3278984b0
1,558
cpp
C++
PointerTest.cpp
Boid-team/Boid
944350fa72cd6a0ce6332ec9b5320fa0691a91dd
[ "MIT" ]
null
null
null
PointerTest.cpp
Boid-team/Boid
944350fa72cd6a0ce6332ec9b5320fa0691a91dd
[ "MIT" ]
null
null
null
PointerTest.cpp
Boid-team/Boid
944350fa72cd6a0ce6332ec9b5320fa0691a91dd
[ "MIT" ]
null
null
null
#include <sstream> #include <ncurses.h> #include "Object.h" #include "Bird.h" #include "Fish.h" #include "Functions.cpp" #include <string> #include <iostream> using namespace std; int main(){ Object ** array = new Object* [1];; int n = 5; string choice = "Fish"; if(choice == "Fish"){ array[...
19
83
0.515404
Boid-team
0cb96ad6d7e98b45b0df9b57f84815ed5a35d769
745
cpp
C++
LeetCode/sum-of-squares-of-dig-1.cpp
abusomani/DS-Algo
b81b592b4ccb6c1c8a1c5275f1411ba4e91977ba
[ "Unlicense" ]
null
null
null
LeetCode/sum-of-squares-of-dig-1.cpp
abusomani/DS-Algo
b81b592b4ccb6c1c8a1c5275f1411ba4e91977ba
[ "Unlicense" ]
null
null
null
LeetCode/sum-of-squares-of-dig-1.cpp
abusomani/DS-Algo
b81b592b4ccb6c1c8a1c5275f1411ba4e91977ba
[ "Unlicense" ]
null
null
null
//Sometimes I feel like giving up, then I remember I have a lot of motherfuckers to prove wrong! //@BEGIN OF SOURCE CODE ( By Abhishek Somani) #include <bits/stdc++.h> using namespace std; class Solution { public: static int digitSqSum(int n) { int ans = 0; while (n) { ans +...
21.911765
96
0.463087
abusomani
0cb9c02de1a2d13cbe39e986a1168a1bcf4298b5
218,717
cpp
C++
thirdparty/LAStools/src/lasinfo.cpp
Wkkkkk/protype
3b0d77d545c177b86b8812be1a6e5392a6f7e367
[ "BSL-1.0" ]
9
2018-12-26T08:35:46.000Z
2021-11-08T08:51:10.000Z
thirdparty/LAStools/src/lasinfo.cpp
Wkkkkk/protype
3b0d77d545c177b86b8812be1a6e5392a6f7e367
[ "BSL-1.0" ]
null
null
null
thirdparty/LAStools/src/lasinfo.cpp
Wkkkkk/protype
3b0d77d545c177b86b8812be1a6e5392a6f7e367
[ "BSL-1.0" ]
7
2018-12-27T13:55:47.000Z
2021-04-23T08:45:04.000Z
/* =============================================================================== FILE: lasinfo.cpp CONTENTS: This tool reads a LIDAR file in LAS or LAZ format and prints out the info from the standard header. It also prints out info from any variable length headers and gives detailed info on any ...
51.6451
932
0.571684
Wkkkkk
0cbc8400829d39d1141558e3a9007bcfca487fd7
3,333
hpp
C++
include/misccpp/lowlevelcom/transport/transport_usb.hpp
lukier/misccpp
bf557404be271b83310d636ce8ac9f5747e50fc7
[ "BSD-3-Clause" ]
1
2017-06-01T09:18:19.000Z
2017-06-01T09:18:19.000Z
include/misccpp/lowlevelcom/transport/transport_usb.hpp
lukier/misccpp
bf557404be271b83310d636ce8ac9f5747e50fc7
[ "BSD-3-Clause" ]
null
null
null
include/misccpp/lowlevelcom/transport/transport_usb.hpp
lukier/misccpp
bf557404be271b83310d636ce8ac9f5747e50fc7
[ "BSD-3-Clause" ]
null
null
null
/** * **************************************************************************** * Copyright (c) 2017, Robert Lukierski. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributi...
33
96
0.682868
lukier
0cc01bd9a40f573151d18ad604c42a4d44a3bdf1
394
hpp
C++
library/ATF/tagBINDPTR.hpp
lemkova/Yorozuya
f445d800078d9aba5de28f122cedfa03f26a38e4
[ "MIT" ]
29
2017-07-01T23:08:31.000Z
2022-02-19T10:22:45.000Z
library/ATF/tagBINDPTR.hpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
90
2017-10-18T21:24:51.000Z
2019-06-06T02:30:33.000Z
library/ATF/tagBINDPTR.hpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
44
2017-12-19T08:02:59.000Z
2022-02-24T23:15:01.000Z
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> #include <ITypeComp.hpp> #include <tagFUNCDESC.hpp> #include <tagVARDESC.hpp> START_ATF_NAMESPACE union tagBINDPTR { tagFUNCDESC *lpfuncdesc; ta...
21.888889
108
0.715736
lemkova
0ccc2ac76f0b10669a98551d1ddc1d73ceb33087
7,285
cpp
C++
src/plugins/imagepng/plugin.cpp
osen/openradiant
47f0b65006e3e3325003f65cddbc7f1c78b5f138
[ "BSD-3-Clause" ]
11
2021-01-04T16:27:48.000Z
2022-01-22T00:37:31.000Z
src/plugins/imagepng/plugin.cpp
osen/openradiant
47f0b65006e3e3325003f65cddbc7f1c78b5f138
[ "BSD-3-Clause" ]
6
2021-01-05T04:47:45.000Z
2021-11-30T09:25:11.000Z
src/plugins/imagepng/plugin.cpp
osen/openradiant
47f0b65006e3e3325003f65cddbc7f1c78b5f138
[ "BSD-3-Clause" ]
1
2021-04-01T20:57:22.000Z
2021-04-01T20:57:22.000Z
/* Copyright (C) 1999-2007 id Software, Inc. and contributors. For a list of contributors, see the accompanying CONTRIBUTORS file. This file is part of GtkRadiant. GtkRadiant is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by ...
29.856557
109
0.704736
osen
0cce2228506d11eec1aecf8779df0ac1b4911dd2
694
cpp
C++
31-next-permutation/31-next-permutation.cpp
Jatin-Shihora/LeetCode-Solutions
8e6fc84971ec96ec1263ba5ba2a8ae09e6404398
[ "MIT" ]
1
2022-01-02T10:29:32.000Z
2022-01-02T10:29:32.000Z
31-next-permutation/31-next-permutation.cpp
Jatin-Shihora/LeetCode-Solutions
8e6fc84971ec96ec1263ba5ba2a8ae09e6404398
[ "MIT" ]
null
null
null
31-next-permutation/31-next-permutation.cpp
Jatin-Shihora/LeetCode-Solutions
8e6fc84971ec96ec1263ba5ba2a8ae09e6404398
[ "MIT" ]
1
2022-03-04T12:44:14.000Z
2022-03-04T12:44:14.000Z
class Solution { public: void nextPermutation(vector<int>& nums) { int n = nums.size(),k , l ; //k=break point //Finding the break point for(k=n-2;k>=0;k--){ if(nums[k]<nums[k+1]) break; } if(k<0) { reverse(nums.begin(),...
27.76
56
0.440922
Jatin-Shihora
0cd053315afc302934855442c303acb00d4585a0
27,146
hpp
C++
src/standard/bits/DD_List.hpp
iDingDong/libDDCPP-old
841260fecc84330ff3bfffba7263f5318f0b4655
[ "BSD-3-Clause" ]
1
2018-06-01T03:29:34.000Z
2018-06-01T03:29:34.000Z
src/standard/bits/DD_List.hpp
iDingDong/libDDCPP-old
841260fecc84330ff3bfffba7263f5318f0b4655
[ "BSD-3-Clause" ]
null
null
null
src/standard/bits/DD_List.hpp
iDingDong/libDDCPP-old
841260fecc84330ff3bfffba7263f5318f0b4655
[ "BSD-3-Clause" ]
null
null
null
// standard/bits/DD_List.hpp #ifndef DD_LIST_HPP_ # define DD_LIST_HPP_ 1 # include "DD_IteratorNested.hpp" # include "DD_NeedInstance.hpp" # include "DD_IteratorReverse.hpp" # if __cplusplus >= 201103L # include "DD_forward.hpp" # endif # include "DD_address_of.hpp" # include "DD_Allocateable.hpp" # include "DD_In...
24.588768
135
0.753518
iDingDong
7b49e46358e8c3c7494be9f394d685c2588e74a7
871
hpp
C++
wave_optimization/include/wave/optimization/ceres/local_params/null_SE3_translation_only.hpp
Jebediah/libwave
c04998c964f0dc7d414783c6e8cf989a2716ad54
[ "MIT" ]
2
2019-06-13T13:47:18.000Z
2019-06-13T14:54:35.000Z
wave_optimization/include/wave/optimization/ceres/local_params/null_SE3_translation_only.hpp
Jebediah/libwave
c04998c964f0dc7d414783c6e8cf989a2716ad54
[ "MIT" ]
null
null
null
wave_optimization/include/wave/optimization/ceres/local_params/null_SE3_translation_only.hpp
Jebediah/libwave
c04998c964f0dc7d414783c6e8cf989a2716ad54
[ "MIT" ]
1
2020-02-13T02:27:29.000Z
2020-02-13T02:27:29.000Z
#ifndef WAVE_NULL_SE3_TRANSLATION_ONLY_HPP #define WAVE_NULL_SE3_TRANSLATION_ONLY_HPP #include <ceres/ceres.h> #include <ceres/local_parameterization.h> namespace wave { /** * This parameterization is a bit of a hack because Ceres * doesn't have an option to specify Jacobians directly wrt local parameterizations. ...
31.107143
88
0.768083
Jebediah
7b4b6b1bef209e979c112adb5adbe20939f18cd2
7,353
cpp
C++
se2_planning/test/GridMapLazyStateValidatorTest.cpp
Idate96/se2_navigation
0fabe002742add5e4d716776b13704aa9c1aa339
[ "BSD-3-Clause" ]
216
2020-04-14T22:32:45.000Z
2022-03-30T17:56:12.000Z
se2_planning/test/GridMapLazyStateValidatorTest.cpp
Idate96/se2_navigation
0fabe002742add5e4d716776b13704aa9c1aa339
[ "BSD-3-Clause" ]
5
2020-09-23T08:41:38.000Z
2021-11-11T09:58:00.000Z
se2_planning/test/GridMapLazyStateValidatorTest.cpp
Idate96/se2_navigation
0fabe002742add5e4d716776b13704aa9c1aa339
[ "BSD-3-Clause" ]
56
2020-04-29T00:26:20.000Z
2022-03-30T17:27:55.000Z
/* * GridMapLazyStateValidatorTest.cpp * * Created on: Apr 27, 2020 * Author: jelavice */ #include <gtest/gtest.h> // Math #include <cmath> #include "se2_planning/GridMapLazyStateValidator.hpp" #include "test_helpers.hpp" #include "grid_map_core/GridMap.hpp" #include "grid_map_core/iterators/GridMapIterato...
31.831169
100
0.661907
Idate96
7b4db8ec65efa482a60a990a2edef309076135af
5,570
cpp
C++
newsfeed/newsfeed.cpp
linux4sam/egt-samples
a76905398fbd05423c6525eb2a953412889b2d60
[ "Apache-2.0" ]
null
null
null
newsfeed/newsfeed.cpp
linux4sam/egt-samples
a76905398fbd05423c6525eb2a953412889b2d60
[ "Apache-2.0" ]
1
2020-09-21T14:18:56.000Z
2020-09-28T10:06:15.000Z
newsfeed/newsfeed.cpp
linux4sam/egt-samples
a76905398fbd05423c6525eb2a953412889b2d60
[ "Apache-2.0" ]
1
2020-06-02T12:04:10.000Z
2020-06-02T12:04:10.000Z
/* * Copyright (C) 2018 Microchip Technology Inc. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 */ #include <egt/detail/filesystem.h> #include <egt/detail/imagecache.h> #include <egt/detail/string.h> #include <egt/network/http.h> #include <egt/ui> #include <iostream> #include <rapidxml.hpp> #include...
26.52381
97
0.554039
linux4sam
7b4eab8fa69c6792b3ed63b9f533bd88c87432b4
1,658
hpp
C++
minimal_sdk/public/vtf.hpp
vocweb/cso2-launcher
abc144acaa3dfb5b0c9acd61cd75970cac012617
[ "MIT" ]
55
2018-09-01T17:52:17.000Z
2019-09-23T10:30:49.000Z
minimal_sdk/public/vtf.hpp
RedheatWei/cso2-launcher
4cebbb98d51d33bd24c9a86a1d3fc311686d5011
[ "MIT" ]
70
2018-08-22T05:53:34.000Z
2019-09-23T15:11:39.000Z
minimal_sdk/public/vtf.hpp
RedheatWei/cso2-launcher
4cebbb98d51d33bd24c9a86a1d3fc311686d5011
[ "MIT" ]
39
2018-09-01T21:42:50.000Z
2019-09-23T18:38:07.000Z
#pragma once enum CompiledVtfFlags { // flags from the *.txt config file TEXTUREFLAGS_POINTSAMPLE = 0x00000001, TEXTUREFLAGS_TRILINEAR = 0x00000002, TEXTUREFLAGS_CLAMPS = 0x00000004, TEXTUREFLAGS_CLAMPT = 0x00000008, TEXTUREFLAGS_ANISOTROPIC = 0x00000010, TEXTUREFLAGS_HINT_DXT5 = 0x00000020...
31.884615
76
0.769602
vocweb
7b541476d52019a08e04285ba433661bcafe9200
3,227
cpp
C++
src/main.cpp
rodri042/piugba
bb3aae80c3a74d87531a825eba35a032f45c42a3
[ "TU-Berlin-1.0", "MIT" ]
37
2020-03-29T03:55:17.000Z
2022-01-12T02:12:14.000Z
src/main.cpp
rodri042/piugba
bb3aae80c3a74d87531a825eba35a032f45c42a3
[ "TU-Berlin-1.0", "MIT" ]
2
2020-06-27T16:49:33.000Z
2020-07-20T04:55:07.000Z
src/main.cpp
rodri042/piugba
bb3aae80c3a74d87531a825eba35a032f45c42a3
[ "TU-Berlin-1.0", "MIT" ]
2
2021-05-31T00:39:38.000Z
2021-07-12T21:01:23.000Z
#include <libgba-sprite-engine/gba_engine.h> #include <tonc.h> #include "gameplay/Sequence.h" #include "gameplay/debug/DebugTools.h" #include "gameplay/multiplayer/Syncer.h" #include "player/PlaybackState.h" #include "utils/SceneUtils.h" extern "C" { #include "player/player.h" } // Emulators and flashcarts use this ...
25.611111
80
0.62225
rodri042
7b6635db1a061a6ea2dc5bab59e1760ffe2ba2bc
14,667
hpp
C++
AbstractHardware/Registers/STM32F407/FieldValues/uart8fieldvalues.hpp
snorkysnark/CortexLib
0db035332ebdfbebf21ca36e5e04b78a5a908a49
[ "MIT" ]
22
2019-09-07T22:38:01.000Z
2022-01-31T21:35:55.000Z
AbstractHardware/Registers/STM32F407/FieldValues/uart8fieldvalues.hpp
snorkysnark/CortexLib
0db035332ebdfbebf21ca36e5e04b78a5a908a49
[ "MIT" ]
null
null
null
AbstractHardware/Registers/STM32F407/FieldValues/uart8fieldvalues.hpp
snorkysnark/CortexLib
0db035332ebdfbebf21ca36e5e04b78a5a908a49
[ "MIT" ]
9
2019-09-22T11:26:24.000Z
2022-03-21T10:53:15.000Z
/******************************************************************************* * Filename : uart8fieldvalues.hpp * * Details : Enumerations related with UART8 peripheral. This header file * is auto-generated for STM32F407 device. * * *********************************************************...
46.561905
92
0.772073
snorkysnark
7b66f84307a7c44e90fd4081fd2e1225428f6f01
5,953
cpp
C++
src/base/Table_test.cpp
abliss/ekam
2ff0ff164508fd25a04997881227e9cf4312f754
[ "Apache-2.0" ]
177
2015-01-20T22:26:25.000Z
2018-08-20T07:55:42.000Z
src/base/Table_test.cpp
abliss/ekam
2ff0ff164508fd25a04997881227e9cf4312f754
[ "Apache-2.0" ]
32
2019-05-22T23:37:29.000Z
2022-02-28T22:16:51.000Z
src/base/Table_test.cpp
abliss/ekam
2ff0ff164508fd25a04997881227e9cf4312f754
[ "Apache-2.0" ]
16
2015-04-01T18:57:01.000Z
2018-04-11T19:31:37.000Z
// Ekam Build System // Author: Kenton Varda (kenton@sandstorm.io) // Copyright (c) 2010-2015 Kenton Varda, Google Inc., and contributors. // // 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 ...
25.659483
89
0.543423
abliss
7b6849b2e6e87ae91f5af8e87bbb6767ef3068bb
2,789
cc
C++
build/X86_MESI_Two_Level/dev/virtio/VirtIO.py.cc
hoho20000000/gem5-fy
b59f6feed22896d6752331652c4d8a41a4ca4435
[ "BSD-3-Clause" ]
null
null
null
build/X86_MESI_Two_Level/dev/virtio/VirtIO.py.cc
hoho20000000/gem5-fy
b59f6feed22896d6752331652c4d8a41a4ca4435
[ "BSD-3-Clause" ]
1
2020-08-20T05:53:30.000Z
2020-08-20T05:53:30.000Z
build/X86_MESI_Two_Level/dev/virtio/VirtIO.py.cc
hoho20000000/gem5-fy
b59f6feed22896d6752331652c4d8a41a4ca4435
[ "BSD-3-Clause" ]
null
null
null
#include "sim/init.hh" namespace { const uint8_t data_m5_objects_VirtIO[] = { 120,156,165,83,77,111,218,64,16,29,27,48,95,73,75,211, 170,135,158,56,162,74,193,185,68,202,33,170,26,146,11,135, 54,200,164,145,234,11,50,246,38,108,193,54,242,46,40,244, 74,127,114,239,237,188,93,12,233,161,167,248,99,60,2...
48.929825
67
0.667981
hoho20000000
7b6a655ff058794a16ec285294283b80f3da7abe
538
hpp
C++
libs/core/include/fcppt/signal/detail/concrete_connection_fwd.hpp
pmiddend/fcppt
9f437acbb10258e6df6982a550213a05815eb2be
[ "BSL-1.0" ]
null
null
null
libs/core/include/fcppt/signal/detail/concrete_connection_fwd.hpp
pmiddend/fcppt
9f437acbb10258e6df6982a550213a05815eb2be
[ "BSL-1.0" ]
null
null
null
libs/core/include/fcppt/signal/detail/concrete_connection_fwd.hpp
pmiddend/fcppt
9f437acbb10258e6df6982a550213a05815eb2be
[ "BSL-1.0" ]
null
null
null
// Copyright Carl Philipp Reh 2009 - 2017. // Copyright Philipp Middendorf 2009 - 2017. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef FCPPT_SIGNAL_DETAIL_CONCRETE_CONNECT...
18.551724
64
0.750929
pmiddend
7b6b3a7dff553d76af975ea3a75f4ee241f4a64c
379
cpp
C++
codeforces/1150A.cpp
sgrade/cpptest
84ade6ec03ea394d4a4489c7559d12b4799c0b62
[ "MIT" ]
null
null
null
codeforces/1150A.cpp
sgrade/cpptest
84ade6ec03ea394d4a4489c7559d12b4799c0b62
[ "MIT" ]
null
null
null
codeforces/1150A.cpp
sgrade/cpptest
84ade6ec03ea394d4a4489c7559d12b4799c0b62
[ "MIT" ]
null
null
null
// A. Stock Arbitraging #include <iostream> #include <algorithm> using namespace std; int main(){ int n, m, r; cin >> n >> m >> r; int s[n], b[m]; for (auto &el: s) cin >> el; for (auto &el: b) cin >> el; sort(s, s+n); sort(b, b+m); int ans = r / s[0] * b[m-1] + r % s[0]; if (...
15.16
43
0.469657
sgrade
7b6f7a88027b0435b67c8e8022c131beabe90e8d
5,264
hpp
C++
include/se/algorithms/filter.hpp
cdcseacave/supereight_octree
db7f7acdb77d66c9b24b2f65cac1b92e34ee0423
[ "MIT" ]
3
2021-02-08T12:14:41.000Z
2022-01-26T07:13:36.000Z
include/se/algorithms/filter.hpp
cdcseacave/supereight_octree
db7f7acdb77d66c9b24b2f65cac1b92e34ee0423
[ "MIT" ]
null
null
null
include/se/algorithms/filter.hpp
cdcseacave/supereight_octree
db7f7acdb77d66c9b24b2f65cac1b92e34ee0423
[ "MIT" ]
4
2021-04-08T04:54:44.000Z
2021-10-04T02:02:49.000Z
/* * Copyright 2016 Emanuele Vespa, Imperial College London * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and t...
40.806202
91
0.654445
cdcseacave
7b73bf2382e15eb9434f4a5a05175643adaac9a2
3,008
hpp
C++
include/boost/simd/trigonometric.hpp
yaeldarmon/boost.simd
561316cc54bdc6353ca78f3b6d7e9120acd11144
[ "BSL-1.0" ]
null
null
null
include/boost/simd/trigonometric.hpp
yaeldarmon/boost.simd
561316cc54bdc6353ca78f3b6d7e9120acd11144
[ "BSL-1.0" ]
null
null
null
include/boost/simd/trigonometric.hpp
yaeldarmon/boost.simd
561316cc54bdc6353ca78f3b6d7e9120acd11144
[ "BSL-1.0" ]
null
null
null
//================================================================================================== /*! @file @copyright 2015 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) **/ //=========================...
35.809524
100
0.723737
yaeldarmon
7b77396225065f55f6b6721f9405d503760252ba
242
cpp
C++
test/cmp_test.cpp
KEGEStudios/Moon
0e6aa078c8bf876c60aafe875ef53217ebdc74f1
[ "MIT" ]
null
null
null
test/cmp_test.cpp
KEGEStudios/Moon
0e6aa078c8bf876c60aafe875ef53217ebdc74f1
[ "MIT" ]
null
null
null
test/cmp_test.cpp
KEGEStudios/Moon
0e6aa078c8bf876c60aafe875ef53217ebdc74f1
[ "MIT" ]
1
2021-02-21T08:26:40.000Z
2021-02-21T08:26:40.000Z
#include <iostream> #include <gtest/gtest.h> #include <core/cmp/cmp.tpp> TEST(Test, example) { struct CMP_TEST_t : Moon::Core::Component_t<CMP_TEST_t> { /* data */ }; EXPECT_EQ(1, CMP_TEST_t::getComponentType()); }
16.133333
59
0.632231
KEGEStudios
7b7b2be86a3f49acd4bd1c411a4dcd0c7fb0ea60
894
cpp
C++
src/core/ofxLaserPoint.cpp
suaretjorge/laser_ofx
42d733489947c95cc83505f5708e89309f7d856f
[ "MIT" ]
228
2015-08-19T06:33:13.000Z
2022-03-21T13:38:47.000Z
src/core/ofxLaserPoint.cpp
suaretjorge/laser_ofx
42d733489947c95cc83505f5708e89309f7d856f
[ "MIT" ]
19
2018-06-29T17:22:39.000Z
2022-03-11T17:48:42.000Z
src/core/ofxLaserPoint.cpp
suaretjorge/laser_ofx
42d733489947c95cc83505f5708e89309f7d856f
[ "MIT" ]
27
2015-11-21T02:31:51.000Z
2022-03-20T02:25:55.000Z
// // ofxLaserPoint.h // // Created by Seb Lee-Delisle on 20/05/2021. // // #include "ofxLaserPoint.h" using namespace ofxLaser; ofxLaser :: Point :: Point() { x = y = z = 0; r = g = b = 0; useCalibration = true; //intensity = 1; } ofxLaser :: Point :: Point(ofPoint p, ofColor c, bool usecali...
17.529412
72
0.561521
suaretjorge
7b7bbd7c5be9e2485aa69b0e181e1c4baf640638
8,089
cpp
C++
BookSamples/Capitolo10/Pa_RegaliaMitra2/Pa_RegaliaMitra/streamcontroller.cpp
mscarpiniti/ArtBook
ca74c773c7312d22329cc453f4a5a799fe2dd587
[ "MIT" ]
null
null
null
BookSamples/Capitolo10/Pa_RegaliaMitra2/Pa_RegaliaMitra/streamcontroller.cpp
mscarpiniti/ArtBook
ca74c773c7312d22329cc453f4a5a799fe2dd587
[ "MIT" ]
null
null
null
BookSamples/Capitolo10/Pa_RegaliaMitra2/Pa_RegaliaMitra/streamcontroller.cpp
mscarpiniti/ArtBook
ca74c773c7312d22329cc453f4a5a799fe2dd587
[ "MIT" ]
null
null
null
#include "streamcontroller.h" StreamController::StreamController(QObject *parent) : QObject(parent) { m_globalParams = new GlobalParameters(); } StreamController* StreamController::m_thisInstance = NULL; int StreamController::paCallback(const void* p_inputBuffer, void* p_outputBuffer, ...
36.436937
188
0.640376
mscarpiniti
7b7bd88d2e2dd2df660acab4e40a0b3dbf490226
314
hpp
C++
heuristic.hpp
AutoProving/3TST
82de4ea29570c13ba5f810bcf1e9532c6ffaab49
[ "MIT" ]
2
2021-07-29T16:08:30.000Z
2021-08-16T10:32:12.000Z
heuristic.hpp
AutoProving/3TST
82de4ea29570c13ba5f810bcf1e9532c6ffaab49
[ "MIT" ]
null
null
null
heuristic.hpp
AutoProving/3TST
82de4ea29570c13ba5f810bcf1e9532c6ffaab49
[ "MIT" ]
null
null
null
#pragma once #include <chrono> #include "init.hpp" #include "opt.hpp" pair<Tree, Weight> complet_heuristic( const Graph &G, const vector<int> &terminalsMap, const vector<Vertex> &terminals, bool random_init, const std::chrono::time_point<std::chrono::high_resolution_clock> &general_start);
24.153846
69
0.719745
AutoProving
7b84f4d38e03f796ae2aa4e07eed6e3411f4fe37
4,501
hpp
C++
src/image_management/lib/3d/vec3.hpp
Neckrome/vectorFieldSurface
91afebadf9815e6a2dc658cdce82691fddd603ee
[ "MIT" ]
null
null
null
src/image_management/lib/3d/vec3.hpp
Neckrome/vectorFieldSurface
91afebadf9815e6a2dc658cdce82691fddd603ee
[ "MIT" ]
null
null
null
src/image_management/lib/3d/vec3.hpp
Neckrome/vectorFieldSurface
91afebadf9815e6a2dc658cdce82691fddd603ee
[ "MIT" ]
null
null
null
/* ** TP CPE Lyon ** Copyright (C) 2015 Damien Rohmer ** ** This program is free software: you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by ** the Free Software Foundation, either version 3 of the License, or ** (at your option) any later ve...
26.168605
75
0.526772
Neckrome
7b86a5059ded2d6f1ec73af08d35a7db4abec32f
370
cpp
C++
IoTSensorLP/Spreadsheet.cpp
A3yuu/IoT-Sensor-CO2
dc06b53c906e9d852a77fb9ac97fdfad78668180
[ "MIT" ]
null
null
null
IoTSensorLP/Spreadsheet.cpp
A3yuu/IoT-Sensor-CO2
dc06b53c906e9d852a77fb9ac97fdfad78668180
[ "MIT" ]
1
2021-08-01T11:21:36.000Z
2021-08-01T11:50:59.000Z
IoTSensorLP/Spreadsheet.cpp
A3yuu/IoT-Sensor
dc06b53c906e9d852a77fb9ac97fdfad78668180
[ "MIT" ]
null
null
null
#include <HTTPClient.h> #include "Spreadsheet.h" String spreadsheetPut(String uri, String data) { String ret = ""; HTTPClient http; http.begin(uri); int httpCode = http.POST(data); if (httpCode > 0) { if (httpCode == HTTP_CODE_OK) { ret = http.getString(); } } else { ret = http.errorToSt...
18.5
48
0.624324
A3yuu
7b89f578f1cdaea702adcd6d4a462eb0e01540bd
1,871
cpp
C++
source/neighborhood_brute_force.cpp
cg-tuwien/APBF
139bd44552f038edefac631fe9ab2f4729187917
[ "MIT" ]
1
2020-07-20T19:04:52.000Z
2020-07-20T19:04:52.000Z
source/neighborhood_brute_force.cpp
cg-tuwien/APBF
139bd44552f038edefac631fe9ab2f4729187917
[ "MIT" ]
null
null
null
source/neighborhood_brute_force.cpp
cg-tuwien/APBF
139bd44552f038edefac631fe9ab2f4729187917
[ "MIT" ]
null
null
null
#include "neighborhood_brute_force.h" #include "measurements.h" #include "settings.h" pbd::neighborhood_brute_force& pbd::neighborhood_brute_force::set_data(particles* aParticles, const gpu_list<sizeof(float)>* aRange, neighbors* aNeighbors) { mParticles = aParticles; mRange = aRange; mNeighbors = aNeighbor...
42.522727
208
0.749332
cg-tuwien
7b8b28a1428e989eacf3427704cd44923c5186d7
489
hpp
C++
src/headers/FibonacciP.hpp
AdrianBZG/Framework_Divide-and-Conquer
2dd3f19af7369b48f941fb562eaffd2f1cbf05ca
[ "Apache-2.0" ]
6
2016-03-10T21:33:40.000Z
2016-04-11T17:15:16.000Z
src/headers/FibonacciP.hpp
AdrianBZG/Framework_Divide-and-Conquer
2dd3f19af7369b48f941fb562eaffd2f1cbf05ca
[ "Apache-2.0" ]
null
null
null
src/headers/FibonacciP.hpp
AdrianBZG/Framework_Divide-and-Conquer
2dd3f19af7369b48f941fb562eaffd2f1cbf05ca
[ "Apache-2.0" ]
null
null
null
/* Author: Adrián Rodríguez Bazaga Contact: arodriba@ull.edu.es / alu0100826456@ull.edu.es Date: 05/03/2016 */ #ifndef _FIBONACCIP_HPP_ #define _FIBONACCIP_HPP_ #include "Problem.hpp" #include "FibonacciS.hpp" class FibonacciP: public Problem { private: int _n; public: FibonacciP(...
18.111111
59
0.662577
AdrianBZG
7b8bc2b94e2fc735b083208e1accc619cc6d55ee
7,265
cpp
C++
code/Physics/Manifold.cpp
Voxiit/DemoPhysicsEngine
35555740ab616e12bb14eda2c22ed1fdda0e10b0
[ "CC0-1.0" ]
1
2021-11-14T04:07:16.000Z
2021-11-14T04:07:16.000Z
code/Physics/Manifold.cpp
Voxiit/DemoPhysicsEngine
35555740ab616e12bb14eda2c22ed1fdda0e10b0
[ "CC0-1.0" ]
null
null
null
code/Physics/Manifold.cpp
Voxiit/DemoPhysicsEngine
35555740ab616e12bb14eda2c22ed1fdda0e10b0
[ "CC0-1.0" ]
null
null
null
// // Manifold.cpp // #include "Manifold.h" /* ================================================================================================ ManifoldCollector ================================================================================================ */ /* ================================ ManifoldCollecto...
24.795222
99
0.593255
Voxiit
7b920a441b0d8f29ab1a52aacc5d4a222bf04b67
5,035
cpp
C++
player.cpp
tanayrastogi-repo/AI_3DTicTacToe
63fdbf2efbda417473e08923af5684833253b5cb
[ "Unlicense" ]
null
null
null
player.cpp
tanayrastogi-repo/AI_3DTicTacToe
63fdbf2efbda417473e08923af5684833253b5cb
[ "Unlicense" ]
null
null
null
player.cpp
tanayrastogi-repo/AI_3DTicTacToe
63fdbf2efbda417473e08923af5684833253b5cb
[ "Unlicense" ]
null
null
null
#include "player.hpp" #include <cstdlib> #include <algorithm> #include <math.h> namespace TICTACTOE3D { double infinity = 100000000; double update(int num_x, int num_o); GameState Player::play(const GameState &pState,const Deadline &pDue) { //std::cerr << "Processing " << pState.toMessage() << std::endl; // Uti...
21.702586
103
0.50566
tanayrastogi-repo
7b92bab05d86458e4ef2a1c805391646679002f5
450
cpp
C++
Haleon/Graphics/Backend/Direct3D12/D3D12DeviceWrapper.cpp
Shadax-stack/HaleonEngine
fef92adcd3198ee22be491a1dd5d50947dcb841c
[ "MIT" ]
2
2021-04-05T13:30:40.000Z
2021-04-05T13:32:13.000Z
Haleon/Graphics/Backend/Direct3D12/D3D12DeviceWrapper.cpp
Shadax-stack/HaleonEngine
fef92adcd3198ee22be491a1dd5d50947dcb841c
[ "MIT" ]
null
null
null
Haleon/Graphics/Backend/Direct3D12/D3D12DeviceWrapper.cpp
Shadax-stack/HaleonEngine
fef92adcd3198ee22be491a1dd5d50947dcb841c
[ "MIT" ]
null
null
null
#include "D3D12DeviceWrapper.h" namespace Haleon { ID3D12Device* DeviceWrapper::operator->(void) { return operator ID3D12Device * (); } DeviceWrapper::operator ID3D12Device* (void) { return Device; } DescriptorSizeInfo* DeviceWrapper::GetDescriptorSizes(void) { return &DescriptorSizes; } UINT DeviceWr...
18
62
0.735556
Shadax-stack
7b95cabd6cd8409c7e5cd97dbed0b40d4e884d4c
2,119
cpp
C++
tests/qt59/src/main.cpp
cain-kilgore/hifi
51bf3c1466f4e7fe783a81baae4dd96912560c92
[ "Apache-2.0" ]
null
null
null
tests/qt59/src/main.cpp
cain-kilgore/hifi
51bf3c1466f4e7fe783a81baae4dd96912560c92
[ "Apache-2.0" ]
null
null
null
tests/qt59/src/main.cpp
cain-kilgore/hifi
51bf3c1466f4e7fe783a81baae4dd96912560c92
[ "Apache-2.0" ]
null
null
null
// // Created by Bradley Austin Davis on 2017/06/06 // Copyright 2013-2017 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include <mutex> #include <QtCore/QCoreApplication> #include <NodeList...
27.881579
106
0.727702
cain-kilgore
7b974113ceb1c78021a9d1cc024fde89393666ad
3,019
hh
C++
osprey/testsuite/cases/cern/geant4/G4Mag/G4Mag_UsualEqRhs.hh
sharugupta/OpenUH
daddd76858a53035f5d713f648d13373c22506e8
[ "BSD-2-Clause" ]
null
null
null
osprey/testsuite/cases/cern/geant4/G4Mag/G4Mag_UsualEqRhs.hh
sharugupta/OpenUH
daddd76858a53035f5d713f648d13373c22506e8
[ "BSD-2-Clause" ]
null
null
null
osprey/testsuite/cases/cern/geant4/G4Mag/G4Mag_UsualEqRhs.hh
sharugupta/OpenUH
daddd76858a53035f5d713f648d13373c22506e8
[ "BSD-2-Clause" ]
null
null
null
// // ******************************************************************** // * DISCLAIMER * // * * // * The following disclaimer summarizes all the specific disclaimers * // * of contributors to this ...
40.253333
80
0.497516
sharugupta
7b982e7634551fdca22bf88fe563ee99711dbd58
9,475
cpp
C++
components/libm8r/littlefs/MLittleFS.cpp
cmarrin/libm8r
2261a52d74a814541ca1a00c23f68a5695f06f99
[ "MIT" ]
null
null
null
components/libm8r/littlefs/MLittleFS.cpp
cmarrin/libm8r
2261a52d74a814541ca1a00c23f68a5695f06f99
[ "MIT" ]
null
null
null
components/libm8r/littlefs/MLittleFS.cpp
cmarrin/libm8r
2261a52d74a814541ca1a00c23f68a5695f06f99
[ "MIT" ]
null
null
null
/*------------------------------------------------------------------------- This source file is a part of m8rscript For the latest info, see http:www.marrin.org/ Copyright (c) 2018-2019, Chris Marrin All rights reserved. Use of this source code is governed by the MIT license that can be found in...
27.384393
153
0.604855
cmarrin
7b9f16fad1a4753778459b383033fcb43d5ddec1
1,414
cpp
C++
features/09-loops/main.cpp
linksgo2011/modern-cpp-server-boilerplate
fc3ef131475b1571f3568aa94dc9b7b328748ed3
[ "Apache-2.0" ]
1
2022-03-02T07:31:42.000Z
2022-03-02T07:31:42.000Z
features/09-loops/main.cpp
linksgo2011/modern-cpp-server-boilerplate
fc3ef131475b1571f3568aa94dc9b7b328748ed3
[ "Apache-2.0" ]
null
null
null
features/09-loops/main.cpp
linksgo2011/modern-cpp-server-boilerplate
fc3ef131475b1571f3568aa94dc9b7b328748ed3
[ "Apache-2.0" ]
null
null
null
#include <iostream> using namespace std; void whileExercise() { // 局部变量声明 int a = 10; // while 循环执行 while (a < 20) { cout << "a 的值:" << a << endl; a++; } } void forExercise() { // for 循环执行 for (int a = 10; a < 20; a = a + 1) { cout << "a 的值:" << a << endl; } }...
16.44186
41
0.374116
linksgo2011
7ba00365682e80bd345fb6fd612f1bfff188e656
6,331
hpp
C++
matrix.hpp
pubby/2d
92a17042734a0f31d8f4424ef42e355cc90b3bf0
[ "MIT" ]
null
null
null
matrix.hpp
pubby/2d
92a17042734a0f31d8f4424ef42e355cc90b3bf0
[ "MIT" ]
null
null
null
matrix.hpp
pubby/2d
92a17042734a0f31d8f4424ef42e355cc90b3bf0
[ "MIT" ]
null
null
null
#ifndef INT2D_MATRIX_HPP #define INT2D_MATRIX_HPP // Some very crude matrix types. // Functionality is added as-needed; YAGNI! #include <array> #include <cassert> #include "geometry.hpp" #include "units.hpp" namespace int2d { namespace impl { // Simplifies a number of quarter turns into an equivalent direction...
22.371025
74
0.515874
pubby
7ba42813b273821159b271d8401f664cf66f0875
2,188
cpp
C++
Hieroglyph3/Source/Rendering/EntityParameterDX11.cpp
xzwang2005/DX11_tutorials_with_hieroglyph3
611e273dafe099875e86222e75420920ca2c49bf
[ "MIT" ]
5
2016-02-16T15:32:51.000Z
2021-09-08T15:44:39.000Z
Hieroglyph3/Source/Rendering/EntityParameterDX11.cpp
xzwang2005/DX11_tutorials_with_hieroglyph3
611e273dafe099875e86222e75420920ca2c49bf
[ "MIT" ]
null
null
null
Hieroglyph3/Source/Rendering/EntityParameterDX11.cpp
xzwang2005/DX11_tutorials_with_hieroglyph3
611e273dafe099875e86222e75420920ca2c49bf
[ "MIT" ]
3
2017-01-08T11:17:37.000Z
2021-09-08T15:44:41.000Z
//-------------------------------------------------------------------------------- // This file is a portion of the Hieroglyph 3 Rendering Engine. It is distributed // under the MIT License, available in the root of this distribution and // at the following URL: // // http://www.opensource.org/licenses/mit-license.ph...
37.724138
101
0.404479
xzwang2005
7ba688af31f1c5f2af2122aa270f6616ccfb4662
4,011
hpp
C++
src/math/include/math/vector.hpp
Sampas/cavez
b89185554477b92bf987c9e5d26b0a8abe1ae568
[ "MIT" ]
2
2019-03-11T11:26:52.000Z
2019-09-26T07:50:55.000Z
src/math/include/math/vector.hpp
Sampas/cavez
b89185554477b92bf987c9e5d26b0a8abe1ae568
[ "MIT" ]
1
2020-10-29T15:44:47.000Z
2020-10-29T15:44:47.000Z
src/math/include/math/vector.hpp
Sampas/cavez
b89185554477b92bf987c9e5d26b0a8abe1ae568
[ "MIT" ]
1
2020-10-28T18:56:46.000Z
2020-10-28T18:56:46.000Z
/// Copyright (c) 2019 Joni Louhela /// /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documentation files (the "Software"), to /// deal in the Software without restriction, including without limitation the /// rights to use, copy, modify, merge, pub...
26.388158
80
0.681127
Sampas
7baf64fee9f6f5cf07fde40c77374d5a1e0507b9
886
cpp
C++
3dEngine/src/scene/renderer3d/landscape/sky/SkyContainer.cpp
petitg1987/UrchinEngine
32d4b62b1ab7e2aa781c99de11331e3738078b0c
[ "MIT" ]
24
2015-10-05T00:13:57.000Z
2020-05-06T20:14:06.000Z
3dEngine/src/scene/renderer3d/landscape/sky/SkyContainer.cpp
petitg1987/UrchinEngine
32d4b62b1ab7e2aa781c99de11331e3738078b0c
[ "MIT" ]
1
2019-11-01T08:00:55.000Z
2019-11-01T08:00:55.000Z
3dEngine/src/scene/renderer3d/landscape/sky/SkyContainer.cpp
petitg1987/UrchinEngine
32d4b62b1ab7e2aa781c99de11331e3738078b0c
[ "MIT" ]
10
2015-11-25T07:33:13.000Z
2020-03-02T08:21:10.000Z
#include <scene/renderer3d/landscape/sky/SkyContainer.h> namespace urchin { SkyContainer::SkyContainer(RenderTarget& renderTarget) : renderTarget(renderTarget), skybox(nullptr) { } void SkyContainer::setSkybox(std::shared_ptr<Skybox> skybox) { ScopeProfiler sp(Profiler::gr...
29.533333
157
0.65237
petitg1987
7bb023ef3e441a2f644d388eeac4f743e4a1de39
378
cpp
C++
node_modules/lzz-gyp/lzz-source/gram_CharBlock.cpp
SuperDizor/dizornator
9f57dbb3f6af80283b4d977612c95190a3d47900
[ "ISC" ]
3
2019-09-18T16:44:33.000Z
2021-03-29T13:45:27.000Z
node_modules/lzz-gyp/lzz-source/gram_CharBlock.cpp
SuperDizor/dizornator
9f57dbb3f6af80283b4d977612c95190a3d47900
[ "ISC" ]
null
null
null
node_modules/lzz-gyp/lzz-source/gram_CharBlock.cpp
SuperDizor/dizornator
9f57dbb3f6af80283b4d977612c95190a3d47900
[ "ISC" ]
2
2019-03-29T01:06:38.000Z
2019-09-18T16:44:34.000Z
// gram_CharBlock.cpp // #include "gram_CharBlock.h" #ifndef LZZ_ENABLE_INLINE #include "gram_CharBlock.inl" #endif #define LZZ_INLINE inline namespace gram { CharBlock::CharBlock (util::Loc const & loc) : Block (BlockImplPtr (new CharBlockImpl (loc))) {} } namespace gram { CharBlock::CharBlock (Block cons...
17.181818
52
0.703704
SuperDizor
7bb2bb1765f1ab531288c8be27b8586a97a95ae2
1,732
cpp
C++
codes/c++/95.cpp
YuanweiZHANG/Leetcode
14a083528431bc65ada8f8265a5ef9d0fae40ecd
[ "MIT" ]
null
null
null
codes/c++/95.cpp
YuanweiZHANG/Leetcode
14a083528431bc65ada8f8265a5ef9d0fae40ecd
[ "MIT" ]
null
null
null
codes/c++/95.cpp
YuanweiZHANG/Leetcode
14a083528431bc65ada8f8265a5ef9d0fae40ecd
[ "MIT" ]
null
null
null
#include <iostream> #include <queue> #include <vector> using namespace std; /** * 2020-05-09 * Veronica */ struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} }; class Solution { private: public: vector<TreeNode*> generateTrees(int n) { if (n == 0) ...
18.041667
61
0.602194
YuanweiZHANG
7bb2ca94a7836bdc23104de7d4775b5520610c25
4,509
cc
C++
src/base/tests/lru_cache_map.cc
Kledsky/s3fuse
2f2670f16a926ed128ca7bd326e27f43da673d61
[ "Apache-2.0" ]
2
2016-05-26T14:58:48.000Z
2016-10-05T18:46:23.000Z
src/base/tests/lru_cache_map.cc
Kledsky/s3fuse
2f2670f16a926ed128ca7bd326e27f43da673d61
[ "Apache-2.0" ]
5
2016-03-08T05:06:12.000Z
2017-11-13T07:30:55.000Z
src/base/tests/lru_cache_map.cc
Kledsky/s3fuse
2f2670f16a926ed128ca7bd326e27f43da673d61
[ "Apache-2.0" ]
2
2018-04-02T09:09:20.000Z
2022-01-20T11:55:29.000Z
#include <string> #include <boost/bind.hpp> #include <gtest/gtest.h> #include "base/lru_cache_map.h" using boost::bind; using std::string; using s3::base::lru_cache_map; inline bool remove_if_over_100(const int &i) { return (i > 100); } void append_to_string(const string &key, const int &i, string *str) { *str...
26.215116
72
0.600133
Kledsky
7bb8cd34ef9334871feee0ed7f873d59e157dc19
8,967
cxx
C++
scintilla/lexers/LexAsymptote.cxx
smzhzy/notepad2
cb3a2a87161a3664fada205cba21d7f73f01ceb2
[ "MIT" ]
null
null
null
scintilla/lexers/LexAsymptote.cxx
smzhzy/notepad2
cb3a2a87161a3664fada205cba21d7f73f01ceb2
[ "MIT" ]
null
null
null
scintilla/lexers/LexAsymptote.cxx
smzhzy/notepad2
cb3a2a87161a3664fada205cba21d7f73f01ceb2
[ "MIT" ]
null
null
null
// This file is part of Notepad2. // See License.txt for details about distribution and modification. //! Lexer for Asymptote. #include <cassert> #include <cstring> #include <string> #include <string_view> #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h...
26.142857
131
0.662206
smzhzy
7bbd0badf164b836111db0776c12709a2b82f23d
2,043
cpp
C++
src/new_firmware/phoenix_imu.cpp
luziato/soccer-18-19
7fcae4f192ce7fecdb940b47ae37e5c40b96d8ee
[ "MIT" ]
1
2018-10-08T14:15:45.000Z
2018-10-08T14:15:45.000Z
src/new_firmware/phoenix_imu.cpp
luziato/soccer-18-19
7fcae4f192ce7fecdb940b47ae37e5c40b96d8ee
[ "MIT" ]
null
null
null
src/new_firmware/phoenix_imu.cpp
luziato/soccer-18-19
7fcae4f192ce7fecdb940b47ae37e5c40b96d8ee
[ "MIT" ]
null
null
null
//mine #include "phoenix_imu.h" /** * Inizializza la struttura m (PhoenixImu*) tramite la seguente procedura: * azzera heading_attuale, heading_target, heading_offset, errore, errore_pid * Inizializza imu (BNO055*) nel seguente modo: * 1) imposta imu->i2c_addr uguale a BNO055_I2C_ADDR * 2) imposta imu->op uguale...
25.5375
77
0.707293
luziato
7bbdd1451957867c58af7dd0b2cd952c8a0d0ca8
4,004
hpp
C++
src/modes/create_materials_table/create_materials_table.hpp
tractortractor/tractor-converter
470b9b8a83661d9b08696fb0f6a54d89f7c5adfa
[ "MIT" ]
2
2019-04-08T19:53:25.000Z
2019-04-09T21:09:47.000Z
src/modes/create_materials_table/create_materials_table.hpp
tractortractor/tractor-converter
470b9b8a83661d9b08696fb0f6a54d89f7c5adfa
[ "MIT" ]
null
null
null
src/modes/create_materials_table/create_materials_table.hpp
tractortractor/tractor-converter
470b9b8a83661d9b08696fb0f6a54d89f7c5adfa
[ "MIT" ]
1
2020-02-26T18:48:19.000Z
2020-02-26T18:48:19.000Z
#ifndef TRACTOR_CONVERTER_CREATE_MATERIALS_TABLE_H #define TRACTOR_CONVERTER_CREATE_MATERIALS_TABLE_H #include "defines.hpp" #include "tga_constants.hpp" #include "vangers_3d_model_constants.hpp" #include "hex.hpp" #include "check_option.hpp" #include "get_option.hpp" #include "parse_mtl_body_offs.hpp" #in...
26.872483
78
0.685065
tractortractor
7bbf4c5ae1b18f167e3365e7a955943ba5be0f84
3,576
hpp
C++
src/guitest/polygon.hpp
nyorain/tokonoma
b3a4264ef4f9f40487c2f3280812bf7513b914bb
[ "MIT" ]
23
2019-07-11T14:47:39.000Z
2021-12-24T09:56:24.000Z
src/guitest/polygon.hpp
nyorain/tokonoma
b3a4264ef4f9f40487c2f3280812bf7513b914bb
[ "MIT" ]
null
null
null
src/guitest/polygon.hpp
nyorain/tokonoma
b3a4264ef4f9f40487c2f3280812bf7513b914bb
[ "MIT" ]
4
2021-04-06T18:20:43.000Z
2022-01-15T09:20:45.000Z
#pragma once #include "draw.hpp" #include <nytl/matOps.hpp> namespace rvg2 { // NOTE: only works for convex polygons at the moment. // For non-convex ones you can triangulate them and manually // use the VertexPool + IndexPool api. /// Specifies in which way a polygon can be drawn. struct DrawMode { /// Whether po...
29.073171
74
0.713087
nyorain
7bc01706e15805404933e9ad5ba0bd38a1e6a016
1,965
hpp
C++
src/Random.hpp
sk409/HPC2018
d189e7ff20f78e186b05079e5b4108fdbeccd890
[ "FSFAP" ]
null
null
null
src/Random.hpp
sk409/HPC2018
d189e7ff20f78e186b05079e5b4108fdbeccd890
[ "FSFAP" ]
null
null
null
src/Random.hpp
sk409/HPC2018
d189e7ff20f78e186b05079e5b4108fdbeccd890
[ "FSFAP" ]
null
null
null
//------------------------------------------------------------------------------ /// @file /// @author ハル研究所プログラミングコンテスト実行委員会 /// /// @copyright Copyright (c) 2018 HAL Laboratory, Inc. /// @attention このファイルの利用は、同梱のREADMEにある /// 利用条件に従ってください。 //-----------------------------------------------------------...
25.855263
81
0.473791
sk409
7bc725ba4d76df6c12adb8db13bb3bf2d900fa27
1,518
cpp
C++
virtual functions.cpp
adityamangal1/Advanced-Cpp
b44faa17176d7268eeb5814af02f8ba9ec0ec03a
[ "MIT" ]
6
2020-10-02T11:16:30.000Z
2021-08-01T07:01:19.000Z
virtual functions.txt
jaffarabbas/Advanced-Cpp
74080471d13c23cf0dcbb9fb21026443d88a618d
[ "MIT" ]
null
null
null
virtual functions.txt
jaffarabbas/Advanced-Cpp
74080471d13c23cf0dcbb9fb21026443d88a618d
[ "MIT" ]
1
2020-10-09T07:51:24.000Z
2020-10-09T07:51:24.000Z
#include<iostream> using namespace std; /* Inheritance: student -->test [Done] student-->sports [Done] test --> result [Done] sports --> result [Done] */ class Student{ protected: int roll_no; public: void set_number(int a){ roll_no = a; } void print_number(void){ ...
20.513514
56
0.496706
adityamangal1
dcf432ec6a1530c27039e6bac5eff92d265c56e4
3,206
cpp
C++
strings_package/src/GroupConcat.cpp
dmankins/Vertica-Extension-Packages
cbde495dfa9ba4a5197e89f9b14cb667aef0576f
[ "BSD-2-Clause" ]
null
null
null
strings_package/src/GroupConcat.cpp
dmankins/Vertica-Extension-Packages
cbde495dfa9ba4a5197e89f9b14cb667aef0576f
[ "BSD-2-Clause" ]
null
null
null
strings_package/src/GroupConcat.cpp
dmankins/Vertica-Extension-Packages
cbde495dfa9ba4a5197e89f9b14cb667aef0576f
[ "BSD-2-Clause" ]
1
2020-09-10T07:50:49.000Z
2020-09-10T07:50:49.000Z
/* Copyright (c) 2005 - 2011 Vertica, an HP company -*- C++ -*- */ /* * Description: User Defined Transform Function: for each partition, output a * comma-separated list in a string * * Create Date: Dec 15, 2011 */ #include "Vertica.h" #include <sstream> using namespace Vertica; using namespace std; #define LIN...
32.714286
115
0.574548
dmankins
dcf4d0911e1973abec5007f2ee62c8928536ea80
4,929
cc
C++
modules/video/avcodec/PiiVideoFileReader.cc
topiolli/into
f0a47736f5c93dd32e89e7aad34152ae1afc5583
[ "BSD-3-Clause" ]
14
2015-01-19T22:14:18.000Z
2020-04-13T23:27:20.000Z
modules/video/avcodec/PiiVideoFileReader.cc
topiolli/into
f0a47736f5c93dd32e89e7aad34152ae1afc5583
[ "BSD-3-Clause" ]
null
null
null
modules/video/avcodec/PiiVideoFileReader.cc
topiolli/into
f0a47736f5c93dd32e89e7aad34152ae1afc5583
[ "BSD-3-Clause" ]
14
2015-01-16T05:43:15.000Z
2019-01-29T07:57:11.000Z
/* This file is part of Into. * Copyright (C) Intopii 2013. * All rights reserved. * * Licensees holding a commercial Into license may use this file in * accordance with the commercial license agreement. Please see * LICENSE.commercial for commercial licensing terms. * * Alternatively, this file may be used und...
27.847458
102
0.673565
topiolli
dcf626ca888fb5d42aad17ec04cfd6a263ea8e24
1,074
cpp
C++
jp.atcoder/abc107/abc107_b/11478620.cpp
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc107/abc107_b/11478620.cpp
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc107/abc107_b/11478620.cpp
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int h, w; cin >> h >> w; vector<vector<char>> res(h, vector<char>(w)); for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { cin >> res[i][j]; } } int k = 0; for (i...
18.517241
48
0.336127
kagemeka
dcff1e916d8bc5fd2060b5a496fede3b2ff24293
2,115
cpp
C++
src_db/base_io_stream/exceptions.cpp
alinous-core/codable-cash
32a86a152a146c592bcfd8cc712f4e8cb38ee1a0
[ "MIT" ]
6
2019-01-06T05:02:39.000Z
2020-10-01T11:45:32.000Z
src_db/base_io_stream/exceptions.cpp
Codablecash/codablecash
8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9
[ "MIT" ]
209
2018-05-18T03:07:02.000Z
2022-03-26T11:42:41.000Z
src_db/base_io_stream/exceptions.cpp
Codablecash/codablecash
8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9
[ "MIT" ]
3
2019-07-06T09:16:36.000Z
2020-10-15T08:23:28.000Z
/* * exceptions.cpp * * Created on: 2018/04/25 * Author: iizuka */ #include "base_io_stream/exceptions.h" #include "base/UnicodeString.h" namespace alinous { const wchar_t* FileOpenException::defaultMessage = L"Failed in Opening File "; FileOpenException::FileOpenException(const char* srcfile, int srclin...
39.166667
169
0.770686
alinous-core
dcff421837154d1d1f138d037ec56835aef3b508
84
hpp
C++
src/Graphics/ShaderLoader.hpp
ryu-raptor/amf
33a42cf1025ea512f23c4769a5be27d6a0c335bc
[ "MIT" ]
1
2020-05-31T02:25:39.000Z
2020-05-31T02:25:39.000Z
src/Graphics/ShaderLoader.hpp
ryu-raptor/amf
33a42cf1025ea512f23c4769a5be27d6a0c335bc
[ "MIT" ]
null
null
null
src/Graphics/ShaderLoader.hpp
ryu-raptor/amf
33a42cf1025ea512f23c4769a5be27d6a0c335bc
[ "MIT" ]
null
null
null
#pragma once #include <GLFW/glfw3.h> GLuint loadShaders(const char*, const char*);
16.8
45
0.738095
ryu-raptor
0d038fee9a47815b093ec53c64c95b1216f4a784
43,736
cpp
C++
src/Atan.cpp
ndickson/MathFunctions
4781cabf39b14ed025a8000988385c494616aa32
[ "MIT" ]
null
null
null
src/Atan.cpp
ndickson/MathFunctions
4781cabf39b14ed025a8000988385c494616aa32
[ "MIT" ]
null
null
null
src/Atan.cpp
ndickson/MathFunctions
4781cabf39b14ed025a8000988385c494616aa32
[ "MIT" ]
null
null
null
#include "Atan.h" #include <stdint.h> #include <fenv.h> #include <limits> static const double atan_eighth_coeffs_low[128][8] = { {2.3158656769252482684e-13, 2.1534361111052781935e-17, -2.5296996938534819769e-08, 3.1404097582121295763e-18, 4.9735919716217286829e-03, -1.6384368483746724039e-37, 4.0056120047108912695e-...
113.895833
195
0.798267
ndickson
0d0c06a8d535d74c6659b9894f6c4c5d6ca1c1b6
4,706
cpp
C++
Days/4/main.cpp
hero101111/aoc-2018
b2d400e37400852ac1c0c9e09404588c09875d32
[ "MIT" ]
null
null
null
Days/4/main.cpp
hero101111/aoc-2018
b2d400e37400852ac1c0c9e09404588c09875d32
[ "MIT" ]
null
null
null
Days/4/main.cpp
hero101111/aoc-2018
b2d400e37400852ac1c0c9e09404588c09875d32
[ "MIT" ]
null
null
null
// // main.cpp // aoc1 // // Created by Gabriel on 01/12/2018. // Copyright © 2018 Gabriel. All rights reserved. // #include "pch.h" #include <iostream> #include <vector> #include <string> #include <fstream> #include <map> #include <regex> #include <set> #include <algorithm> #include <numeric> using namespace std...
20.197425
124
0.610285
hero101111
0d14d49c7d0ff95b8f803f210ce6a5430d4c36cd
560
hpp
C++
src/gui/RenderVectorLines.hpp
AdamSiekierski/visualsorting
64ff06a37ccf790e01481ee56ca19650bbdaa1be
[ "WTFPL", "MIT" ]
3
2021-12-24T10:03:13.000Z
2021-12-24T16:40:35.000Z
src/gui/RenderVectorLines.hpp
AdamSiekierski/visualsorting
64ff06a37ccf790e01481ee56ca19650bbdaa1be
[ "WTFPL", "MIT" ]
null
null
null
src/gui/RenderVectorLines.hpp
AdamSiekierski/visualsorting
64ff06a37ccf790e01481ee56ca19650bbdaa1be
[ "WTFPL", "MIT" ]
null
null
null
// // RenderVectorLines.hpp // VisualSorting // // Created by Adam Siekierski on 26/12/2021. // Copyright © 2021 Adam Siekierski. All rights reserved. // #ifndef RenderVectorLines_hpp #define RenderVectorLines_hpp #include <stdio.h> #include <vector> #include <SFML/Graphics.hpp> #include <SFML/Audio.hpp> #include...
23.333333
88
0.733929
AdamSiekierski
0d165f54940c03bc844f6ddee84dcd496b51385f
1,879
cpp
C++
frameworks/lua/libs/kernel/dmzLuaKernelTime.cpp
tongli/dmz
f2242027a17ea804259f9412b07d69f719a527c5
[ "MIT" ]
1
2016-05-08T22:02:35.000Z
2016-05-08T22:02:35.000Z
frameworks/lua/libs/kernel/dmzLuaKernelTime.cpp
tongli/dmz
f2242027a17ea804259f9412b07d69f719a527c5
[ "MIT" ]
null
null
null
frameworks/lua/libs/kernel/dmzLuaKernelTime.cpp
tongli/dmz
f2242027a17ea804259f9412b07d69f719a527c5
[ "MIT" ]
null
null
null
#include <dmzLuaKernel.h> #include "dmzLuaKernelPrivate.h" #include <dmzLuaKernelValidate.h> #include <dmzSystem.h> #include <dmzTypesString.h> #include <dmzRuntimeTime.h> #include <luacpp.h> using namespace dmz; namespace { static int time_frame_time (lua_State *L) { Time time (lua_get_runtime_context (L)); ...
17.560748
60
0.686535
tongli
0d19185319c0c911b0ae19da1699df045432daae
1,144
cpp
C++
solutions/0290.word-pattern/0290.word-pattern.1548213124.cpp
nettee/leetcode
19aa8d54d64cce3679db5878ee0194fad95d8fa1
[ "MIT" ]
1
2021-01-14T06:01:02.000Z
2021-01-14T06:01:02.000Z
solutions/0290.word-pattern/0290.word-pattern.1548213124.cpp
nettee/leetcode
19aa8d54d64cce3679db5878ee0194fad95d8fa1
[ "MIT" ]
8
2018-03-27T11:47:19.000Z
2018-11-12T06:02:12.000Z
solutions/0290.word-pattern/0290.word-pattern.1548213124.cpp
nettee/leetcode
19aa8d54d64cce3679db5878ee0194fad95d8fa1
[ "MIT" ]
2
2020-04-30T09:47:01.000Z
2020-12-03T09:34:08.000Z
class Solution { public: bool wordPattern(string pattern, string str) { vector<string> words = split(str); if (pattern.length() != words.size()) { return false; } int N = pattern.length(); unordered_map<char, string> m; for (int i = 0; i < N; i++) { ...
26
50
0.369755
nettee
0d35b25938e2b746a8c8eb07cc14785a41c33bfe
4,535
cpp
C++
SP0211/Restaurant 1.cpp
Satwikan/StudyPods-v2.0
cd5afd8f88ed00c192077fe79886f26e2c8aa5e6
[ "MIT" ]
1
2021-09-25T13:42:08.000Z
2021-09-25T13:42:08.000Z
SP0211/Restaurant 1.cpp
Satwikan/StudyPods-v2.0
cd5afd8f88ed00c192077fe79886f26e2c8aa5e6
[ "MIT" ]
12
2021-07-26T06:13:48.000Z
2021-09-03T12:54:15.000Z
SP0211/Restaurant 1.cpp
Satwikan/StudyPods-v2.0
cd5afd8f88ed00c192077fe79886f26e2c8aa5e6
[ "MIT" ]
36
2021-07-26T05:59:29.000Z
2021-09-06T18:57:40.000Z
#include<iostream> #include<iomanip> #include<stdlib.h> using namespace std; struct menu { string name; int price; }arr[30]; int limit, sum = 0, orders, o, extra, orderno, check[15]; int j = 0; void welcome(void) { cout << "\n \t \t |______Welcome to our Restaurant______| \n \n"; } void printmenu...
20.802752
132
0.457332
Satwikan
0d3609113e0c9d164f3fc095d4e995bf03f960d1
1,758
cpp
C++
main.cpp
EvanMcBroom/ioctl-parser
447788ae63e1096656a103b0ad6411f9f6057a87
[ "MIT" ]
1
2022-03-07T21:30:21.000Z
2022-03-07T21:30:21.000Z
main.cpp
EvanMcBroom/ioctl-parser
447788ae63e1096656a103b0ad6411f9f6057a87
[ "MIT" ]
null
null
null
main.cpp
EvanMcBroom/ioctl-parser
447788ae63e1096656a103b0ad6411f9f6057a87
[ "MIT" ]
null
null
null
#include <MainWindow.hpp> #include <QApplication> #include <QFont> #include <QFile> #include <QFileInfo> #include <QSettings> namespace { void AddToDeviceMap(DeviceMap& deviceMap, const QString& path) { QSettings settings{ path, QSettings::IniFormat }; foreach (const QString& device, sett...
35.16
93
0.568259
EvanMcBroom
0d3714e6ebfe4404b6a1f1d75c362688e666aea1
11,090
cpp
C++
main.cpp
xSpyro/small_ncurses_tests
5cac922b3a50e6cdd5de9cd25d10acee429f0e36
[ "Apache-2.0" ]
null
null
null
main.cpp
xSpyro/small_ncurses_tests
5cac922b3a50e6cdd5de9cd25d10acee429f0e36
[ "Apache-2.0" ]
null
null
null
main.cpp
xSpyro/small_ncurses_tests
5cac922b3a50e6cdd5de9cd25d10acee429f0e36
[ "Apache-2.0" ]
null
null
null
#include <stdio.h> #include <ncurses.h> #include <chrono> #include <ratio> #include <thread> // Mein key kodez #define VL_MLBUTTON 0 #define VL_MRBUTTON 1 #define VL_MMBUTTON 2 #define VL_ACTION_PRESS 0 #define VL_ACTION_MOVE 1 #define VL_ACTION_RELEASE 2 #define VL_KEY_SPACE 32 #define VL_KEY_DEL 12...
18.989726
119
0.647791
xSpyro
0d37e32281c9886a3ddf1cce55beeef4db38716d
38,821
hpp
C++
include/mmtf/structure_data.hpp
gtauriello/mmtf-cpp
bec9cea0cf5cd9c6a9b97b4bd05a87560dbda9f6
[ "MIT" ]
19
2017-06-08T09:55:34.000Z
2021-11-08T11:24:58.000Z
include/mmtf/structure_data.hpp
RosettaCommons/mmtf-cpp
ee4b855cf53b4a3ee7a40cc62d57195875fe84a5
[ "MIT" ]
42
2017-03-03T17:15:31.000Z
2021-03-10T19:26:36.000Z
include/mmtf/structure_data.hpp
RosettaCommons/mmtf-cpp
ee4b855cf53b4a3ee7a40cc62d57195875fe84a5
[ "MIT" ]
20
2017-03-03T16:13:00.000Z
2021-07-20T22:36:19.000Z
// ************************************************************************* // // Licensed under the MIT License (see accompanying LICENSE file). // // The authors of this code are: Gabriel Studer, Gerardo Tauriello, // Daniel Farrell. // // Based on mmtf_c developed by Julien Ferte (http://www.julienferte.com/), // ...
33.180342
98
0.600422
gtauriello
0d3b7e22e68246d44ea47dab0124ad87d51a8517
2,182
cpp
C++
source/planet/grid/tile.cpp
vraid/earthgen-old
e2c72b1dd06e6809fa93b42be737f39fabd02daf
[ "MIT" ]
215
2015-01-01T17:22:43.000Z
2022-03-12T21:14:26.000Z
source/planet/grid/tile.cpp
vraid/earthgen-old
e2c72b1dd06e6809fa93b42be737f39fabd02daf
[ "MIT" ]
null
null
null
source/planet/grid/tile.cpp
vraid/earthgen-old
e2c72b1dd06e6809fa93b42be737f39fabd02daf
[ "MIT" ]
47
2015-03-04T13:18:41.000Z
2022-03-12T21:14:27.000Z
#include "tile.h" #include "corner.h" #include "../../math/math_common.h" Tile::Tile (int i, int e) : id (i), edge_count (e) { tiles.resize(edge_count, nullptr); corners.resize(edge_count, nullptr); edges.resize(edge_count, nullptr); } int position (const Tile& t, const Tile* n) { for (int i=0; i<t.edge_count; i...
25.08046
78
0.616407
vraid
0d3c8c43ba7ec557500969400bb6b2d6fa2ebf60
3,544
cpp
C++
Cracking Fenwick Tree to the root V1/Solutions/red_maple/E/main.cpp
gmeligio/axon_training
657f181b732265856c71e97697bfde2062744e5a
[ "MIT" ]
null
null
null
Cracking Fenwick Tree to the root V1/Solutions/red_maple/E/main.cpp
gmeligio/axon_training
657f181b732265856c71e97697bfde2062744e5a
[ "MIT" ]
5
2019-04-30T22:31:36.000Z
2019-05-07T00:15:23.000Z
Cracking Fenwick Tree to the root V1/Solutions/red_maple/E/main.cpp
gmeligio/axon_training
657f181b732265856c71e97697bfde2062744e5a
[ "MIT" ]
5
2019-05-01T05:08:43.000Z
2019-05-07T18:13:18.000Z
#include <bits/stdc++.h> #include <limits.h> #include <algorithm> #include <numeric> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; #define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] " #define endl '\n' using ll = long long; const int precision = 16; cons...
23.626667
87
0.441591
gmeligio
0d55e36c80703fe8442cb8bc05d1ceaf7b877bce
833
cpp
C++
max_pairwise_product/max_pairwise_product/algorithm_pair.cpp
felippe-trigueiro/Cpp_Codes
9ddf5f6b5c3a47e5563c7f0895b6254c0a94f49c
[ "MIT" ]
null
null
null
max_pairwise_product/max_pairwise_product/algorithm_pair.cpp
felippe-trigueiro/Cpp_Codes
9ddf5f6b5c3a47e5563c7f0895b6254c0a94f49c
[ "MIT" ]
null
null
null
max_pairwise_product/max_pairwise_product/algorithm_pair.cpp
felippe-trigueiro/Cpp_Codes
9ddf5f6b5c3a47e5563c7f0895b6254c0a94f49c
[ "MIT" ]
null
null
null
#include <vector> using std::vector; long long MaxPairwiseProduct(const vector<int>& numbers) { long long result = 0; int n = numbers.size(); long long maior[] = { -1, 0 }; long long seg_maior = -1; for (int j = 0; j < 2; ++j) { for (int i = 0; i < n; ++i) { if (numbers[i] > maior[0] && j == 0) { mai...
23.138889
83
0.564226
felippe-trigueiro
0d5715ddac545eb9f424ef6ebd606f8b22286c40
919
cc
C++
source/IRTKSimple2/geometry++/src/irtkPoint.cc
gordon-n-stevenson/fetalReconstruction
6a1e4a15bdf92e86439791d836d1b20ede793293
[ "Zlib", "Unlicense", "Intel", "MIT" ]
null
null
null
source/IRTKSimple2/geometry++/src/irtkPoint.cc
gordon-n-stevenson/fetalReconstruction
6a1e4a15bdf92e86439791d836d1b20ede793293
[ "Zlib", "Unlicense", "Intel", "MIT" ]
null
null
null
source/IRTKSimple2/geometry++/src/irtkPoint.cc
gordon-n-stevenson/fetalReconstruction
6a1e4a15bdf92e86439791d836d1b20ede793293
[ "Zlib", "Unlicense", "Intel", "MIT" ]
null
null
null
/*========================================================================= Library : Image Registration Toolkit (IRTK) Module : $Id: irtkPoint.cc 2 2008-12-23 12:40:14Z dr $ Copyright : Imperial College, Department of Computing Visual Information Processing (VIP), 2008 onwards Date : $...
25.527778
75
0.433079
gordon-n-stevenson
0d5788ce1205e4b86999e6a5df030f47b1643459
12,558
cpp
C++
storage/diskmgr/services/storage_service/utils/src/storage_utils.cpp
peeweep/distributeddatamgr_file
1e624bbc3850815fa1b2642c67123b7785bec6a1
[ "Apache-2.0" ]
null
null
null
storage/diskmgr/services/storage_service/utils/src/storage_utils.cpp
peeweep/distributeddatamgr_file
1e624bbc3850815fa1b2642c67123b7785bec6a1
[ "Apache-2.0" ]
null
null
null
storage/diskmgr/services/storage_service/utils/src/storage_utils.cpp
peeweep/distributeddatamgr_file
1e624bbc3850815fa1b2642c67123b7785bec6a1
[ "Apache-2.0" ]
5
2021-09-13T11:18:04.000Z
2021-11-25T14:12:15.000Z
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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 ...
26.493671
108
0.577958
peeweep
0d6184ed124bb098a7437ec24959e1683a46fd11
543
cpp
C++
utils/firmware_tool/commands/bootctx.cpp
libpull/libpull
27dd186ff795559e8ec6f4c560a5b2f6b88c0bdf
[ "MIT" ]
40
2018-03-29T00:07:42.000Z
2019-07-20T14:31:44.000Z
utils/firmware_tool/commands/bootctx.cpp
libpull/libpull
27dd186ff795559e8ec6f4c560a5b2f6b88c0bdf
[ "MIT" ]
68
2018-05-17T09:39:26.000Z
2018-10-24T14:16:18.000Z
utils/firmware_tool/commands/bootctx.cpp
libpull/libpull
27dd186ff795559e8ec6f4c560a5b2f6b88c0bdf
[ "MIT" ]
3
2018-05-23T13:36:46.000Z
2018-10-09T13:16:45.000Z
#include "commands.hpp" #include <libpull_agents/bootloader_ctx.h> #include <iostream> #include <fstream> IMPLEMENT(bootctx) int bootctx_generate_command(Context ctx) { bootloader_ctx bctx = {}; bctx.startup_flags = FIRST_BOOT; std::ofstream out(ctx.get_out_file(), std::ios_base::binary | std::ios_base::...
27.15
87
0.67035
libpull
0d65432d57e169f3bb8432c6e07da8877a678b3c
18,752
cpp
C++
Src/LTFSCharter.cpp
izne/LiveTraffic
f6a7da13599510cda51b1cc4d74d50446617beed
[ "MIT" ]
null
null
null
Src/LTFSCharter.cpp
izne/LiveTraffic
f6a7da13599510cda51b1cc4d74d50446617beed
[ "MIT" ]
null
null
null
Src/LTFSCharter.cpp
izne/LiveTraffic
f6a7da13599510cda51b1cc4d74d50446617beed
[ "MIT" ]
null
null
null
/// @file LTFSCharter.cpp /// @brief FSCharter: Requests and processes FSC tracking data /// @see https://fscharter.net/ /// @details Implements FSCConnection:\n /// - Takes care of login (OAuth)\n /// - Provides a proper REST-conform URL\n /// - Interprets the r...
36.41165
106
0.588897
izne
0d6d05c5554381ed2e9fe0c9c7ca76ce1d51472b
8,384
cc
C++
src/graphics/viewTable.cc
RichardRanft/Torque6
db6cd08f18f4917e0c6557b2766fb40d8e2bee39
[ "MIT" ]
312
2015-02-17T15:07:28.000Z
2022-03-12T07:09:56.000Z
src/graphics/viewTable.cc
lukaspj/Torque6
db6cd08f18f4917e0c6557b2766fb40d8e2bee39
[ "MIT" ]
23
2015-03-30T14:47:37.000Z
2020-11-02T00:00:24.000Z
src/graphics/viewTable.cc
lukaspj/Torque6
db6cd08f18f4917e0c6557b2766fb40d8e2bee39
[ "MIT" ]
73
2015-02-17T15:07:30.000Z
2021-10-02T03:11:59.000Z
//----------------------------------------------------------------------------- // Copyright (c) 2015 Andrew Mac // // 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, inc...
29.730496
113
0.561069
RichardRanft
0d76420b128734b5ff1c0ca558784c42a90d80c2
703
hpp
C++
include/srpc/net/server/Server.hpp
ISSuh/SimpleRPC
429f14d26a783ff092f326a49576d945f82ad610
[ "MIT" ]
null
null
null
include/srpc/net/server/Server.hpp
ISSuh/SimpleRPC
429f14d26a783ff092f326a49576d945f82ad610
[ "MIT" ]
null
null
null
include/srpc/net/server/Server.hpp
ISSuh/SimpleRPC
429f14d26a783ff092f326a49576d945f82ad610
[ "MIT" ]
null
null
null
/** * * Copyright: Copyright (c) 2020, ISSuh * */ #ifndef SRPC_NET_SERVER_SERVER_HPP_ #define SRPC_NET_SERVER_SERVER_HPP_ #include <string> #include "../../helper/Common.hpp" #include "../session/Session.hpp" namespace srpc { class Server { public: Server() = default; virtual ~Server() = default; v...
19
89
0.692745
ISSuh
0d7cbeaad5906f77b8be1c626b9a32490bdfa04d
385
cpp
C++
Competitions/Codechef/TSTIND16/Mahasena.cpp
cnm06/Competitive-Programming
94242ae458570d503b8218f37624b88cc5020d23
[ "MIT" ]
994
2017-02-28T06:13:47.000Z
2022-03-31T10:49:00.000Z
Competitions/Codechef/TSTIND16/Mahasena.cpp
Quadrified/Competitive-Programming
bccb69952cc5260fb3647b3301ddac1023dacac8
[ "MIT" ]
16
2018-01-01T02:59:55.000Z
2021-11-22T12:49:16.000Z
Competitions/Codechef/TSTIND16/Mahasena.cpp
Quadrified/Competitive-Programming
bccb69952cc5260fb3647b3301ddac1023dacac8
[ "MIT" ]
325
2017-06-15T03:32:43.000Z
2022-03-28T22:43:42.000Z
#include <bits/stdc++.h> using namespace std; long long int n, a, b, temp, i; int main() { cin>>n; a=0; b=0; for(i=0;i<n;i++){ cin>>temp; if(temp%2==0){ a++; } else { b++; } } if(a>b){ cout<<"READY FOR BATTLE"<<endl; } ...
14.807692
39
0.387013
cnm06
0d840ee0ad0b17dd21fef1040875b14daf10f1f3
325
cpp
C++
Level_3/10_NumberSum/numberSum.cpp
LeeHeungrok/BaekjoonAlgorithm
fca6ce5729938df64099074e9276325ca5e11c8a
[ "MIT" ]
null
null
null
Level_3/10_NumberSum/numberSum.cpp
LeeHeungrok/BaekjoonAlgorithm
fca6ce5729938df64099074e9276325ca5e11c8a
[ "MIT" ]
null
null
null
Level_3/10_NumberSum/numberSum.cpp
LeeHeungrok/BaekjoonAlgorithm
fca6ce5729938df64099074e9276325ca5e11c8a
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int main(void){ int inputLength; string inputNumber; int result = 0; cin>>inputLength; cin>>inputNumber; for(int index = 0; index < inputLength; index ++){ result += (int) inputNumber.at(index) - 48; } cout<<result<<endl; return ...
15.47619
54
0.6
LeeHeungrok
0d84734ff6ca42a0df23ecbbdecaf4ae0e92456e
6,077
hpp
C++
compiler/src/ast/type/ast_qualtypes.hpp
TuplexLanguage/tuplex
fc436c78224522663e40e09d36f83570fd76ba2d
[ "Apache-2.0" ]
15
2017-08-15T20:46:44.000Z
2021-12-15T02:51:13.000Z
compiler/src/ast/type/ast_qualtypes.hpp
TuplexLanguage/tuplex
fc436c78224522663e40e09d36f83570fd76ba2d
[ "Apache-2.0" ]
null
null
null
compiler/src/ast/type/ast_qualtypes.hpp
TuplexLanguage/tuplex
fc436c78224522663e40e09d36f83570fd76ba2d
[ "Apache-2.0" ]
1
2017-09-28T14:48:15.000Z
2017-09-28T14:48:15.000Z
#pragma once #include "ast_typeexpr_node.hpp" #include "symbol/qual_type.hpp" #include "tx_logging.hpp" #include "tx_error.hpp" /** Represents a qualified type, i.e. a type with potentially added qualifiers. * This base class defines a qualified type with the same qualifiers as the wrapped type expression. */ class...
35.127168
127
0.703637
TuplexLanguage
0d85d836bde7a17feeb17c578f042622930748e8
5,384
cpp
C++
Tuniac1/TuniacApp/LibraryPlaylist.cpp
Harteex/Tuniac
dac98a68c1b801b7fc82874aad16cc8adcabb606
[ "BSD-3-Clause" ]
3
2022-01-05T08:47:51.000Z
2022-01-06T12:42:18.000Z
Tuniac1/TuniacApp/LibraryPlaylist.cpp
Harteex/Tuniac
dac98a68c1b801b7fc82874aad16cc8adcabb606
[ "BSD-3-Clause" ]
null
null
null
Tuniac1/TuniacApp/LibraryPlaylist.cpp
Harteex/Tuniac
dac98a68c1b801b7fc82874aad16cc8adcabb606
[ "BSD-3-Clause" ]
1
2022-01-06T16:12:58.000Z
2022-01-06T16:12:58.000Z
/* Copyright (C) 2003-2008 Tony Million 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 purpose, including commerci...
26.392157
234
0.714153
Harteex
0d90a238d787240b94c93cdc5dcf7b8dc9988194
1,478
cpp
C++
presto-native-execution/presto_cpp/main/tests/HttpServerWrapper.cpp
ugurmeet/presto
8fe1a05443463aa239a7297c3fb3566254c77f89
[ "Apache-2.0" ]
null
null
null
presto-native-execution/presto_cpp/main/tests/HttpServerWrapper.cpp
ugurmeet/presto
8fe1a05443463aa239a7297c3fb3566254c77f89
[ "Apache-2.0" ]
null
null
null
presto-native-execution/presto_cpp/main/tests/HttpServerWrapper.cpp
ugurmeet/presto
8fe1a05443463aa239a7297c3fb3566254c77f89
[ "Apache-2.0" ]
null
null
null
/* * 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, software * distribut...
32.130435
78
0.713126
ugurmeet
0d93292d5ea32561fea018a6f0997fb1a645115c
343
cpp
C++
host-bmc/dbus/linkreset.cpp
raviteja-b/pldm
413866955ff9b3dca362d8f9c7a77cd7670f37dc
[ "Apache-2.0" ]
null
null
null
host-bmc/dbus/linkreset.cpp
raviteja-b/pldm
413866955ff9b3dca362d8f9c7a77cd7670f37dc
[ "Apache-2.0" ]
null
null
null
host-bmc/dbus/linkreset.cpp
raviteja-b/pldm
413866955ff9b3dca362d8f9c7a77cd7670f37dc
[ "Apache-2.0" ]
null
null
null
#include "linkreset.hpp" namespace pldm { namespace dbus { bool link::linkReset(bool value) { return sdbusplus::com::ibm::Control::Host::server::PCIeLink::linkReset( value); } bool link::linkReset() const { return sdbusplus::com::ibm::Control::Host::server::PCIeLink::linkReset(); } } // namespace db...
16.333333
77
0.682216
raviteja-b
0d9b4a8bf51381fb66dd421121bf0694957c808b
3,383
hpp
C++
giop/include/morbid/giop/forward_back_insert_iterator.hpp
felipealmeida/mORBid
3ebc133f9dbe8af1c5cfb39349a0fbf5c125229b
[ "BSL-1.0" ]
2
2018-01-31T07:06:23.000Z
2021-02-18T00:49:05.000Z
giop/include/morbid/giop/forward_back_insert_iterator.hpp
felipealmeida/mORBid
3ebc133f9dbe8af1c5cfb39349a0fbf5c125229b
[ "BSL-1.0" ]
null
null
null
giop/include/morbid/giop/forward_back_insert_iterator.hpp
felipealmeida/mORBid
3ebc133f9dbe8af1c5cfb39349a0fbf5c125229b
[ "BSL-1.0" ]
null
null
null
/* (c) Copyright 2012 Felipe Magno de Almeida * * Distributed under the Boost Software License, Version 1.0. (See * accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) */ #ifndef MORBID_GIOP_FORWARD_BACK_INSERT_ITERATOR_HPP #define MORBID_GIOP_FORWARD_BACK_INSERT_ITERATOR_HPP nam...
28.428571
122
0.74431
felipealmeida
d3fac80316c764735a20474759a4f9551604c7c5
554
cpp
C++
1695-maximum-erasure-value/1695-maximum-erasure-value.cpp
shreydevep/SpojList
c6436525fc26824e7d3b604aba40640d9b25aed2
[ "MIT" ]
null
null
null
1695-maximum-erasure-value/1695-maximum-erasure-value.cpp
shreydevep/SpojList
c6436525fc26824e7d3b604aba40640d9b25aed2
[ "MIT" ]
null
null
null
1695-maximum-erasure-value/1695-maximum-erasure-value.cpp
shreydevep/SpojList
c6436525fc26824e7d3b604aba40640d9b25aed2
[ "MIT" ]
null
null
null
class Solution { public: int maximumUniqueSubarray(vector<int>& nums) { int result = 0; unordered_set<int> hash; int i = 0; int j = 0; int score = 0; for (int j=0; j < nums.size(); j++) { while (hash.find(nums[j]) != hash.end()) { hash.erase...
25.181818
54
0.415162
shreydevep
d3fbec89b5313b6a650ca8366b183436bb4c60dc
2,616
cc
C++
apps/MagMLInterpretor/magml.cc
adanese88/magics
8b42a13686dac3b111f1fe217d839d0f1718011f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
apps/MagMLInterpretor/magml.cc
adanese88/magics
8b42a13686dac3b111f1fe217d839d0f1718011f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
apps/MagMLInterpretor/magml.cc
adanese88/magics
8b42a13686dac3b111f1fe217d839d0f1718011f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
/******************************** LICENSE ******************************** Copyright 2007 European Centre for Medium-Range Weather Forecasts (ECMWF) 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 Li...
21.096774
105
0.617737
adanese88