hexsha
stringlengths
40
40
size
int64
19
11.4M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
270
max_stars_repo_name
stringlengths
5
110
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
float64
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
3
270
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
9
max_issues_count
float64
1
67k
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
3
270
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
9
max_forks_count
float64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
19
11.4M
avg_line_length
float64
1.93
229k
max_line_length
int64
12
688k
alphanum_fraction
float64
0.07
0.99
matches
listlengths
1
10
9f1e831ffc7ea56f2674d9b55b759e17de77f7e2
1,507
cpp
C++
android-31/android/nfc/tech/NfcA.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
12
2020-03-26T02:38:56.000Z
2022-03-14T08:17:26.000Z
android-31/android/nfc/tech/NfcA.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
1
2021-01-27T06:07:45.000Z
2021-11-13T19:19:43.000Z
android-29/android/nfc/tech/NfcA.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
3
2021-02-02T12:34:55.000Z
2022-03-08T07:45:57.000Z
#include "../../../JByteArray.hpp" #include "../Tag.hpp" #include "./NfcA.hpp" namespace android::nfc::tech { // Fields // QJniObject forward NfcA::NfcA(QJniObject obj) : JObject(obj) {} // Constructors // Methods android::nfc::tech::NfcA NfcA::get(android::nfc::Tag arg0) { return callStaticObjectMethod...
15.377551
59
0.603849
[ "object" ]
9f24e63640e68e98020c97989bcee79fb94e1cf9
542
cpp
C++
C++/minimum-number-of-steps-to-make-two-strings-anagram.cpp
jaiskid/LeetCode-Solutions
a8075fd69087c5463f02d74e6cea2488fdd4efd1
[ "MIT" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
C++/minimum-number-of-steps-to-make-two-strings-anagram.cpp
jaiskid/LeetCode-Solutions
a8075fd69087c5463f02d74e6cea2488fdd4efd1
[ "MIT" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
C++/minimum-number-of-steps-to-make-two-strings-anagram.cpp
jaiskid/LeetCode-Solutions
a8075fd69087c5463f02d74e6cea2488fdd4efd1
[ "MIT" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
// Time: O(n) // Space: O(1) class Solution { public: int minSteps(string s, string t) { const auto& count1 = counter(s); const auto& count2 = counter(t); int result = 0; for (int i = 0; i < count1.size(); ++i) { result += max(count1[i] - count2[i], 0); } ...
21.68
52
0.47417
[ "vector" ]
9f36366efce0bc76c02536d978c0d7efefda3f36
4,470
cpp
C++
src/multithread-win.cpp
omega-graphics/common
8e5202b2b0f93b5d40eb56a77e888181fb30e02d
[ "Apache-2.0" ]
null
null
null
src/multithread-win.cpp
omega-graphics/common
8e5202b2b0f93b5d40eb56a77e888181fb30e02d
[ "Apache-2.0" ]
null
null
null
src/multithread-win.cpp
omega-graphics/common
8e5202b2b0f93b5d40eb56a77e888181fb30e02d
[ "Apache-2.0" ]
null
null
null
#include "omega-common/multithread.h" namespace OmegaCommon { Semaphore::Semaphore(int initalValue){ sem = CreateSemaphoreA(NULL,initalValue,initalValue,NULL); }; void Semaphore::get(){ BOOL block = TRUE; while(block) { DWORD signal = WaitForSingleObject(sem,0L); ...
30.202703
171
0.619911
[ "vector" ]
9f3f7f4443d77c47bf9957f8bca5070c4659d649
2,138
cpp
C++
codechef/acpc_replay/Gwalior2018/TALETRI.cpp
dhwanisanmukhani/competitive-coding
5392dea65b6ac370ac641c993120d7f252f5b1ac
[ "MIT" ]
null
null
null
codechef/acpc_replay/Gwalior2018/TALETRI.cpp
dhwanisanmukhani/competitive-coding
5392dea65b6ac370ac641c993120d7f252f5b1ac
[ "MIT" ]
null
null
null
codechef/acpc_replay/Gwalior2018/TALETRI.cpp
dhwanisanmukhani/competitive-coding
5392dea65b6ac370ac641c993120d7f252f5b1ac
[ "MIT" ]
null
null
null
#include <iostream> #include <cstdio> #include <algorithm> #include <vector> using namespace std; #define icin(x) scanf("%d", &x) #define lcin(x) scanf("%lld", &x) typedef long long ll; int main(){ int t; icin(t); while(t--){ int a, b, c, d, e, f, l, r; icin(a), icin(b), icin(c), icin(d), icin(e), icin(f), icin...
20.557692
73
0.492516
[ "vector" ]
9f414f9c60ccb776fffb9bff3200387bdd08d002
2,563
cpp
C++
DirectX3D11/Objects/Model/Character.cpp
GyumLee/DirectX3D11
6158874aa12e790747e6fd8a53de608071c49574
[ "Apache-2.0" ]
null
null
null
DirectX3D11/Objects/Model/Character.cpp
GyumLee/DirectX3D11
6158874aa12e790747e6fd8a53de608071c49574
[ "Apache-2.0" ]
null
null
null
DirectX3D11/Objects/Model/Character.cpp
GyumLee/DirectX3D11
6158874aa12e790747e6fd8a53de608071c49574
[ "Apache-2.0" ]
null
null
null
#include "Framework.h" Character::Character() : ModelAnimator("Character"), state(IDLE), moveSpeed(10.0f), rotSpeed(5.0f), gravity(9.8f), jumpPower(0.0f) { ReadClip("idle", 1); ReadClip("run", 1); ReadClip("jump", 1); Load(); } Character::~Character() { } void Character::Update() { Control(); Move(); Rotat...
15.439759
65
0.638705
[ "render", "vector" ]
9f5131565c7f9981ee63831c88d289bad2228a92
29,448
cpp
C++
src/contexts.cpp
b1f6c1c4/cfg-enum
1a08071bde87f578ceaf834004c01b593db9bce8
[ "BSD-3-Clause" ]
4
2021-06-11T07:34:50.000Z
2022-03-30T15:32:07.000Z
src/contexts.cpp
b1f6c1c4/cfg-enum
1a08071bde87f578ceaf834004c01b593db9bce8
[ "BSD-3-Clause" ]
null
null
null
src/contexts.cpp
b1f6c1c4/cfg-enum
1a08071bde87f578ceaf834004c01b593db9bce8
[ "BSD-3-Clause" ]
2
2021-11-16T09:13:46.000Z
2021-12-20T14:53:57.000Z
#include "contexts.h" #include <cstdlib> #include <iostream> #include <cassert> #include "model.h" #include "wpr.h" #include "solve.h" using namespace std; using smt::expr; int name_counter = 1; string name(iden basename) { return "x" + to_string(rand()) + "_" + iden_to_string(basename) + "__" + to_string(n...
31.76699
143
0.652031
[ "vector", "model" ]
9f56e93b92823ed0b529bd7967347fa330254e36
22,238
cpp
C++
src/currency_core/gpu_miner.cpp
Virie/Virie
fc5ad5816678b06b88d08a6842e43d4205915b39
[ "MIT" ]
1
2021-03-07T13:26:43.000Z
2021-03-07T13:26:43.000Z
src/currency_core/gpu_miner.cpp
Virie/Virie
fc5ad5816678b06b88d08a6842e43d4205915b39
[ "MIT" ]
null
null
null
src/currency_core/gpu_miner.cpp
Virie/Virie
fc5ad5816678b06b88d08a6842e43d4205915b39
[ "MIT" ]
null
null
null
// Copyright (c) 2014-2020 The Virie Project // Copyright (c) 2012-2013 The Cryptonote developers // Copyright (c) 2012-2013 The Boolberry developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifdef USE_OPENCL #includ...
40.432727
296
0.5916
[ "vector" ]
9f6ad6a92e04723f1bf5b3bc9313913b0a9cb9b8
15,352
cpp
C++
src/cpp/orbprop/gravity.cpp
HiTMonitor/ginan
f348e2683507cfeca65bb58880b3abc2f9c36bcf
[ "Apache-2.0" ]
null
null
null
src/cpp/orbprop/gravity.cpp
HiTMonitor/ginan
f348e2683507cfeca65bb58880b3abc2f9c36bcf
[ "Apache-2.0" ]
null
null
null
src/cpp/orbprop/gravity.cpp
HiTMonitor/ginan
f348e2683507cfeca65bb58880b3abc2f9c36bcf
[ "Apache-2.0" ]
null
null
null
// #pragma GCC optimize ("O0") #include "navigation.hpp" #include "instrument.hpp" #include "constants.hpp" #include "satRefSys.hpp" #include "acsConfig.hpp" #include "gravity.hpp" #include "jplEph.hpp" #include "common.hpp" #include "sofa.hpp" Vector3d CalcPolarAngles( Vector3d mVec) { /* Norm of vector */ dou...
27.611511
218
0.568851
[ "vector", "solid" ]
9f726557c9a2958b01c2b5d0502bcc6e89852042
38,821
cpp
C++
euhatrtsplib/src/main/jni/euhatrtsp/livevideo/RtspOp.cpp
euhat/EuhatRtsp
f5d9919adff27b06e185d4469671e7aababcb941
[ "Apache-2.0" ]
11
2019-06-15T06:28:51.000Z
2020-11-11T09:21:18.000Z
euhatrtsplib/src/main/jni/euhatrtsp/livevideo/RtspOp.cpp
baechirhoon/EuhatRtsp
f5d9919adff27b06e185d4469671e7aababcb941
[ "Apache-2.0" ]
2
2019-07-17T08:38:01.000Z
2020-05-07T00:41:52.000Z
euhatrtsplib/src/main/jni/euhatrtsp/livevideo/RtspOp.cpp
baechirhoon/EuhatRtsp
f5d9919adff27b06e185d4469671e7aababcb941
[ "Apache-2.0" ]
8
2019-05-28T04:04:50.000Z
2021-07-30T14:29:58.000Z
/* * EuhatRtsp * library and sample to play and acquire rtsp stream on Android device * * Copyright (c) 2014-2018 Euhat.com euhat@hotmail.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of th...
32.216598
1,316
0.602045
[ "object" ]
9f792d821a2a2631c53d0f5c9e3b31e1dd07c0d7
943
cc
C++
Author/Precious_Pots_of_LPU/main.cc
aniruddha0pandey/Code-Archive
f347aa17ef3f43d6b5a3ce95f9be25d2a6cb6965
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
Author/Precious_Pots_of_LPU/main.cc
aniruddha0pandey/Code-Archive
f347aa17ef3f43d6b5a3ce95f9be25d2a6cb6965
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
Author/Precious_Pots_of_LPU/main.cc
aniruddha0pandey/Code-Archive
f347aa17ef3f43d6b5a3ce95f9be25d2a6cb6965
[ "Apache-2.0", "CC-BY-4.0" ]
1
2020-08-16T05:48:55.000Z
2020-08-16T05:48:55.000Z
#include <bits/stdc++.h> std::vector<int> arrange ( std::vector<int> pots, std::vector<int> broken_pots ) { std::vector<int> arranged_pots(pots); for ( int i = 0; i < broken_pots.size(); ++i ) { for ( int j = 0; j < pots.size(); ++j ) { if ( broken_pots[i] == pots[j] ) { pots.erase(pots.begin() + j); p...
21.431818
65
0.545069
[ "vector" ]
9f84e3deecbe6287cd6ac212de2b4910ee2f6722
3,004
cpp
C++
examples/distributed-map/entry-processor/main.cpp
yuce/hazelcast-cpp-client
027d56df46d770d8e2225693e4bbc91703451757
[ "Apache-2.0" ]
78
2015-10-23T13:50:12.000Z
2021-12-17T11:22:58.000Z
examples/distributed-map/entry-processor/main.cpp
yuce/hazelcast-cpp-client
027d56df46d770d8e2225693e4bbc91703451757
[ "Apache-2.0" ]
949
2015-10-26T12:18:38.000Z
2022-03-31T15:49:08.000Z
examples/distributed-map/entry-processor/main.cpp
yuce/hazelcast-cpp-client
027d56df46d770d8e2225693e4bbc91703451757
[ "Apache-2.0" ]
49
2015-10-23T13:51:52.000Z
2021-09-01T00:26:45.000Z
/* * Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
39.526316
135
0.653129
[ "vector" ]
9f87c151a3480fc3d4add0edc264293bcf7152f5
3,895
cpp
C++
lib/src/calibration/calibrationOnlineAlgorithm.cpp
tlalexander/stitchEm
cdff821ad2c500703e6cb237ec61139fce7bf11c
[ "MIT" ]
182
2019-04-19T12:38:30.000Z
2022-03-20T16:48:20.000Z
lib/src/calibration/calibrationOnlineAlgorithm.cpp
doymcc/stitchEm
20693a55fa522d7a196b92635e7a82df9917c2e2
[ "MIT" ]
107
2019-04-23T10:49:35.000Z
2022-03-02T18:12:28.000Z
lib/src/calibration/calibrationOnlineAlgorithm.cpp
doymcc/stitchEm
20693a55fa522d7a196b92635e7a82df9917c2e2
[ "MIT" ]
59
2019-06-04T11:27:25.000Z
2022-03-17T23:49:49.000Z
// Copyright (c) 2012-2017 VideoStitch SAS // Copyright (c) 2018 stitchEm #include "calibrationOnlineAlgorithm.hpp" #include "calibration.hpp" #include "cvImage.hpp" #include "calibrationProgress.hpp" #include "core/controllerInputFrames.hpp" #include "util/registeredAlgo.hpp" #include "cuda/memory.hpp" #include "g...
34.469027
118
0.724775
[ "vector" ]
9f8e618ba280069e1629c2a01f52a3f12d84298c
2,830
cpp
C++
src/caffe/layers/duplicate_layer.cpp
schnaitterm/caffe
26c57bb54ec3aafcfe3acc6004053ac8a4a3c4d2
[ "Intel", "BSD-2-Clause" ]
14
2018-11-02T22:41:14.000Z
2020-05-17T09:32:00.000Z
src/caffe/layers/duplicate_layer.cpp
schnaitterm/caffe
26c57bb54ec3aafcfe3acc6004053ac8a4a3c4d2
[ "Intel", "BSD-2-Clause" ]
2
2018-08-01T08:28:31.000Z
2018-10-01T15:34:36.000Z
src/caffe/layers/duplicate_layer.cpp
schnaitterm/caffe
26c57bb54ec3aafcfe3acc6004053ac8a4a3c4d2
[ "Intel", "BSD-2-Clause" ]
5
2018-08-25T19:51:03.000Z
2020-05-17T09:39:19.000Z
#include <vector> #include "caffe/layers/duplicate_layer.hpp" namespace caffe { template<typename Dtype> void DuplicateLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { DuplicateParameter param = this->layer_param_.duplicate_param(); ...
35.375
80
0.5947
[ "shape", "vector" ]
9f9159de96c295e373c8fc7932b112a515ccb2ad
9,630
cpp
C++
src/viewer.cpp
codemusings/reversing-starmada
c77ae51104d6c3a2ddae42749bda4e8899573050
[ "MIT" ]
null
null
null
src/viewer.cpp
codemusings/reversing-starmada
c77ae51104d6c3a2ddae42749bda4e8899573050
[ "MIT" ]
null
null
null
src/viewer.cpp
codemusings/reversing-starmada
c77ae51104d6c3a2ddae42749bda4e8899573050
[ "MIT" ]
null
null
null
#include <iostream> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> //#define STB_IMAGE_IMPLEMENTATION //#include <stb_image.h> #include "model.hpp" #include "sod.h" #include "shader.hpp" #include "viewer.hpp" #define WIDTH 800 #define HEIGHT 600 static float z_offset...
35.018182
105
0.600519
[ "mesh", "model" ]
9f94f8cf7bb8aaee582e90db82bfdd1d700a949c
15,222
cpp
C++
Common/ac/spritecache.cpp
adventuregamestudio/ags
8aff3708e25a17bb762604f4ef55eb6b0f0fc2e1
[ "Artistic-2.0" ]
450
2015-01-12T22:45:54.000Z
2022-03-16T00:28:25.000Z
Common/ac/spritecache.cpp
adventuregamestudio/ags
8aff3708e25a17bb762604f4ef55eb6b0f0fc2e1
[ "Artistic-2.0" ]
1,162
2015-01-03T09:57:17.000Z
2022-03-31T20:28:56.000Z
Common/ac/spritecache.cpp
adventuregamestudio/ags
8aff3708e25a17bb762604f4ef55eb6b0f0fc2e1
[ "Artistic-2.0" ]
121
2015-02-20T14:36:40.000Z
2022-03-08T14:01:35.000Z
//============================================================================= // // Adventure Game Studio (AGS) // // Copyright (C) 1999-2011 Chris Jones and 2011-20xx others // The full list of copyright holders can be found in the Copyright.txt // file, which is part of this source code distribution. // // The AGS ...
29.273077
165
0.642557
[ "vector" ]
7a06dcdbbdf0f01c5cd656f879ef96c5d235becc
1,213
hpp
C++
tests/mghfuns/brown_badly_scaled.hpp
ptillet/umintl
605da5703d36c2150fd1c2b979ff6e631b4cad47
[ "MIT" ]
null
null
null
tests/mghfuns/brown_badly_scaled.hpp
ptillet/umintl
605da5703d36c2150fd1c2b979ff6e631b4cad47
[ "MIT" ]
null
null
null
tests/mghfuns/brown_badly_scaled.hpp
ptillet/umintl
605da5703d36c2150fd1c2b979ff6e631b4cad47
[ "MIT" ]
null
null
null
/* =========================== Copyright (c) 2013 Philippe Tillet UMinTL - Unconstrained Minimization Template Library License : MIT X11 - See the LICENSE file in the root folder * ===========================*/ #ifndef UMINTL_BROWN_BADLY_SCALED_HPP_ #define UMINTL_BROWN_BADLY_SCALED_HPP_ #include <cmath> #inc...
26.369565
67
0.601814
[ "vector" ]
7a090307887d4077deb773d71fb026750537ee70
11,681
cpp
C++
beowolf/W_Common.cpp
JarateKing/Beowolf-Engine
b7ad1ed18ecb5ce7ca4e43d46ee96ed615300e85
[ "MIT" ]
3
2019-01-21T15:18:41.000Z
2020-04-16T18:21:29.000Z
beowolf/W_Common.cpp
JarateKing/Beowolf-Engine
b7ad1ed18ecb5ce7ca4e43d46ee96ed615300e85
[ "MIT" ]
1
2020-03-10T18:22:08.000Z
2020-03-10T18:22:08.000Z
beowolf/W_Common.cpp
JarateKing/Beowolf-Engine
b7ad1ed18ecb5ce7ca4e43d46ee96ed615300e85
[ "MIT" ]
1
2021-12-30T11:38:36.000Z
2021-12-30T11:38:36.000Z
//----------------------------------------------------------------------------- // File: W_Common.cpp // Original Author: Gordon Wood // // See header for notes //----------------------------------------------------------------------------- #include "W_Common.h" #include "W_Types.h" namespace wolf { //-------------...
24.386221
124
0.641298
[ "object" ]
7a188cb4749213b1a852f2e8385d638dad9dbf9f
2,997
cc
C++
CommBasicObjects/smartsoft/src-gen/CommBasicObjects/CommUltrasonicScanACE.cc
canonical-robots/DomainModelsRepositories
68b9286d84837e5feb7b200833b158ab9c2922a4
[ "BSD-3-Clause" ]
null
null
null
CommBasicObjects/smartsoft/src-gen/CommBasicObjects/CommUltrasonicScanACE.cc
canonical-robots/DomainModelsRepositories
68b9286d84837e5feb7b200833b158ab9c2922a4
[ "BSD-3-Clause" ]
2
2020-08-20T14:49:47.000Z
2020-10-07T16:10:07.000Z
CommBasicObjects/smartsoft/src-gen/CommBasicObjects/CommUltrasonicScanACE.cc
canonical-robots/DomainModelsRepositories
68b9286d84837e5feb7b200833b158ab9c2922a4
[ "BSD-3-Clause" ]
8
2018-06-25T08:41:28.000Z
2020-08-13T10:39:30.000Z
//-------------------------------------------------------------------------- // Code generated by the SmartSoft MDSD Toolchain // The SmartSoft Toolchain has been developed by: // // Service Robotics Research Center // University of Applied Sciences Ulm // Prittwitzstr. 10 // 89075 Ulm (Germany) // // Information abo...
39.96
112
0.736737
[ "vector" ]
7a319be94372f3050142ffe6916f0b47fb0836b3
7,999
cpp
C++
AutoJoin/autojoin.cpp
JateNensvold/logcabin
6966ab07e8780de4ee2c706df4c2530922f7d265
[ "ISC" ]
null
null
null
AutoJoin/autojoin.cpp
JateNensvold/logcabin
6966ab07e8780de4ee2c706df4c2530922f7d265
[ "ISC" ]
null
null
null
AutoJoin/autojoin.cpp
JateNensvold/logcabin
6966ab07e8780de4ee2c706df4c2530922f7d265
[ "ISC" ]
null
null
null
#include "autojoin.h" vector<string> autojoin::parseString(string input, char delimeter) { vector<string> returnlist = vector<string>(); int length = (int)input.length(); string temp = ""; for (int index = 0; index < length; index++) { if (input[index] == delimeter && temp != "") {...
31.616601
118
0.471059
[ "vector" ]
7a3b74b0933e6b68989b413d32b9de091010d1f8
10,053
cpp
C++
main.cpp
mediapark-pk/bip39-cxx
6bc635f58d36dea715a2fbf3b12313eb6db5585e
[ "MIT" ]
1
2021-04-17T11:52:20.000Z
2021-04-17T11:52:20.000Z
main.cpp
mediapark-pk/bip39-cxx
6bc635f58d36dea715a2fbf3b12313eb6db5585e
[ "MIT" ]
null
null
null
main.cpp
mediapark-pk/bip39-cxx
6bc635f58d36dea715a2fbf3b12313eb6db5585e
[ "MIT" ]
2
2020-04-05T16:27:52.000Z
2021-02-08T16:48:15.000Z
#include <cassert> #include <cstdio> #include "src/bip39.h" #include "src/mnemonic.h" #include "src/utils.h" static std::string joined_mnemonic(const std::vector<std::string>& s) { return BIP39_Utils::Join(s, " "); } void TestEntropyToMnemnoic( const std::string& entropy, const std::string& expectedMnemonic,...
51.030457
100
0.765841
[ "mesh", "vector" ]
7a405f979cf85f52ba6c610a691495a56a749929
864
hpp
C++
include/litesql/updatequery.hpp
aijle/litesql
547dd41435dd3fb5761de386e24c0116c7f52ad7
[ "BSD-3-Clause" ]
11
2019-04-12T08:49:18.000Z
2021-10-12T03:29:43.000Z
include/litesql/updatequery.hpp
aijle/litesql
547dd41435dd3fb5761de386e24c0116c7f52ad7
[ "BSD-3-Clause" ]
4
2019-12-17T01:15:11.000Z
2021-05-17T13:10:18.000Z
include/litesql/updatequery.hpp
aijle/litesql
547dd41435dd3fb5761de386e24c0116c7f52ad7
[ "BSD-3-Clause" ]
5
2019-08-31T17:07:08.000Z
2022-03-21T06:57:39.000Z
/* LiteSQL * * The list of contributors at http://litesql.sf.net/ * * See LICENSE for copyright information. */ #ifndef _litesql_updatequery_hpp #define _litesql_updatequery_hpp #include "litesql/utils.hpp" #include "litesql/expr.hpp" /** \file updatequery.hpp contains UpdateQuery-class. */ namespace lite...
26.181818
73
0.69213
[ "vector" ]
7a41a69accbcb9a16104077ac8e650eda57d6e89
5,177
hpp
C++
plugins/xml/node.hpp
Flusspferd/flusspferd
f2a070c4805e0bdbae4b5f528e94a9a36ceb80c5
[ "MIT" ]
7
2015-06-08T09:59:36.000Z
2021-02-27T18:45:17.000Z
plugins/xml/node.hpp
Flusspferd/flusspferd
f2a070c4805e0bdbae4b5f528e94a9a36ceb80c5
[ "MIT" ]
null
null
null
plugins/xml/node.hpp
Flusspferd/flusspferd
f2a070c4805e0bdbae4b5f528e94a9a36ceb80c5
[ "MIT" ]
3
2016-07-06T20:47:01.000Z
2021-06-30T19:09:47.000Z
// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp: /* The MIT License Copyright (c) 2008, 2009 Flusspferd contributors (see "CONTRIBUTORS" or http://flusspferd.org/contributors.txt) Permission is hereby granted, free of charge, to any person obtaining a copy of this software an...
34.513333
85
0.723392
[ "object" ]
7a56d4da7cf1eb19c055f588d3cbc6a62fcbbe77
6,081
cpp
C++
tests/unittest/test_queue_ctors.cpp
digital-stage/eventpp
a0978f91f9d74a5943ed668b3fe15d64b0675b5c
[ "Apache-2.0" ]
685
2018-05-13T03:59:19.000Z
2022-03-31T22:43:43.000Z
tests/unittest/test_queue_ctors.cpp
digital-stage/eventpp
a0978f91f9d74a5943ed668b3fe15d64b0675b5c
[ "Apache-2.0" ]
32
2018-06-01T03:15:13.000Z
2022-01-18T09:23:06.000Z
tests/unittest/test_queue_ctors.cpp
digital-stage/eventpp
a0978f91f9d74a5943ed668b3fe15d64b0675b5c
[ "Apache-2.0" ]
128
2018-05-13T06:41:58.000Z
2022-03-30T16:58:10.000Z
// eventpp library // Copyright (C) 2018 Wang Qi (wqking) // Github: https://github.com/wqking/eventpp // 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/LIC...
26.098712
75
0.68788
[ "vector" ]
7a5cb40d6d82b4394f895f7746a1e3e8fadc4261
8,298
hpp
C++
pyoptsparse/pyNOMAD/source/nomad_src/Parameter_Entry.hpp
robfalck/pyoptsparse
c99f4bfe8961492d0a1879f9ecff7a2fbb3c8c1d
[ "CNRI-Python" ]
26
2020-08-25T16:16:21.000Z
2022-03-10T08:23:57.000Z
pyoptsparse/pyNOMAD/source/nomad_src/Parameter_Entry.hpp
robfalck/pyoptsparse
c99f4bfe8961492d0a1879f9ecff7a2fbb3c8c1d
[ "CNRI-Python" ]
90
2020-08-24T23:02:47.000Z
2022-03-29T13:48:15.000Z
pyoptsparse/pyNOMAD/source/nomad_src/Parameter_Entry.hpp
robfalck/pyoptsparse
c99f4bfe8961492d0a1879f9ecff7a2fbb3c8c1d
[ "CNRI-Python" ]
25
2020-08-24T19:28:24.000Z
2022-01-27T21:17:37.000Z
/*-------------------------------------------------------------------------------------*/ /* NOMAD - Nonlinear Optimization by Mesh Adaptive Direct search - version 3.7.1 */ /* */ /* Copyright (C) 2001-2015 Mark Abramson ...
41.49
91
0.498313
[ "mesh", "object" ]
7a5f8fc6bfddd955be4dc61a11528e6bd72e971f
26,796
cpp
C++
platform/windows/Corona.Simulator/Simulator.cpp
pouwelsjochem/corona
86ffe9002e42721b4bb2c386024111d995e7b27c
[ "MIT" ]
null
null
null
platform/windows/Corona.Simulator/Simulator.cpp
pouwelsjochem/corona
86ffe9002e42721b4bb2c386024111d995e7b27c
[ "MIT" ]
null
null
null
platform/windows/Corona.Simulator/Simulator.cpp
pouwelsjochem/corona
86ffe9002e42721b4bb2c386024111d995e7b27c
[ "MIT" ]
null
null
null
////////////////////////////////////////////////////////////////////////////// // // This file is part of the Corona game engine. // For overview and more information on licensing please refer to README.md // Home page: https://github.com/coronalabs/corona // Contact: support@coronalabs.com // ////////////////////////...
35.304348
133
0.697343
[ "object" ]
7a62458a50c4e86ff49a1577f06c4beae79bd752
1,925
cpp
C++
tests/src/utf16_string_test.cpp
friendlyanon/daw_json_link
7456a8a69a307e63e8063765a67ceba051958b10
[ "BSL-1.0" ]
null
null
null
tests/src/utf16_string_test.cpp
friendlyanon/daw_json_link
7456a8a69a307e63e8063765a67ceba051958b10
[ "BSL-1.0" ]
null
null
null
tests/src/utf16_string_test.cpp
friendlyanon/daw_json_link
7456a8a69a307e63e8063765a67ceba051958b10
[ "BSL-1.0" ]
1
2021-08-06T10:13:11.000Z
2021-08-06T10:13:11.000Z
// Copyright (c) Darrell Wright // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt) // // Official repository: https://github.com/beached/daw_json_link // #include <daw/json/daw_json_link.h> #include <utf8/unchecked.h> #in...
27.898551
79
0.664416
[ "vector" ]
7a69ee58b1ff4663820a50fbe366f0c0eaacea91
7,080
cpp
C++
src/manipulations/task2/filters.cpp
Specu3800/image-manipulator
3290ede9ace4a104ba79274c42c82ff66cf4e367
[ "MIT" ]
null
null
null
src/manipulations/task2/filters.cpp
Specu3800/image-manipulator
3290ede9ace4a104ba79274c42c82ff66cf4e367
[ "MIT" ]
null
null
null
src/manipulations/task2/filters.cpp
Specu3800/image-manipulator
3290ede9ace4a104ba79274c42c82ff66cf4e367
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <algorithm> #include "lib/CImg.templ" #include "helpers.h" #include "filters.h" #include "histogram.h" using namespace std; using namespace cimg_library; CImg<int>& applyExponentialPDF(CImg<int> &original, int Gmin, int Gmax, Histogram &histogram){ if (Gmax == 0) {co...
41.647059
207
0.500847
[ "vector" ]
7a708463a24b2592454f793638f74aaffc658f86
7,600
hpp
C++
external/mapnik/include/mapnik/geometry_adapters.hpp
baiyicanggou/mapnik_mvt
9bde52fa9958d81361c015c816858534ec0931bb
[ "Apache-2.0" ]
null
null
null
external/mapnik/include/mapnik/geometry_adapters.hpp
baiyicanggou/mapnik_mvt
9bde52fa9958d81361c015c816858534ec0931bb
[ "Apache-2.0" ]
null
null
null
external/mapnik/include/mapnik/geometry_adapters.hpp
baiyicanggou/mapnik_mvt
9bde52fa9958d81361c015c816858534ec0931bb
[ "Apache-2.0" ]
null
null
null
/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2015 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as p...
34.38914
124
0.739737
[ "geometry" ]
7a7ac88c278c4488b426c5dca0176c54fc32278f
4,167
cpp
C++
src/Serialization/BinaryInputStreamSerializer.cpp
JacopoDT/numerare-core
a98b32150a9b2e6ea7535d12b7e8e1aac0589e2f
[ "MIT-0" ]
null
null
null
src/Serialization/BinaryInputStreamSerializer.cpp
JacopoDT/numerare-core
a98b32150a9b2e6ea7535d12b7e8e1aac0589e2f
[ "MIT-0" ]
null
null
null
src/Serialization/BinaryInputStreamSerializer.cpp
JacopoDT/numerare-core
a98b32150a9b2e6ea7535d12b7e8e1aac0589e2f
[ "MIT-0" ]
null
null
null
/*** MIT License Copyright (c) 2018 NUMERARE 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, publis...
28.9375
109
0.758579
[ "vector" ]
7a7e3eb1434178c1e4795bb73eb014a22b6711e4
644
cpp
C++
cpp-std/demo12b01-data-race-single.cpp
thanhit95/multi-threading
30e745b6a6c52e56a8d8e3826ce7a97b51944caa
[ "BSD-3-Clause" ]
15
2021-06-15T09:27:35.000Z
2022-03-25T02:01:45.000Z
cpp-std/demo12b01-data-race-single.cpp
thanhit95/multi-threads
30e745b6a6c52e56a8d8e3826ce7a97b51944caa
[ "BSD-3-Clause" ]
null
null
null
cpp-std/demo12b01-data-race-single.cpp
thanhit95/multi-threads
30e745b6a6c52e56a8d8e3826ce7a97b51944caa
[ "BSD-3-Clause" ]
5
2021-07-15T14:31:33.000Z
2022-03-29T06:19:34.000Z
/* DATA RACES Version 01: Without multithreading */ #include <iostream> #include <vector> #include <numeric> #include <thread> using namespace std; int getResult(int N) { vector<bool> a; a.resize(N + 1, false); for (int i = 1; i <= N; ++i) if (0 == i % 2 || 0 == i % 3) a[i] = true;...
16.947368
85
0.568323
[ "vector" ]
7a83c84546f3fdc7efe909eb53bbcdbed2427cea
4,408
cpp
C++
src/main.cpp
Flongy/Shape-Drawer
249b51ee0d080d92884a9b5578656793503643d3
[ "MIT" ]
null
null
null
src/main.cpp
Flongy/Shape-Drawer
249b51ee0d080d92884a9b5578656793503643d3
[ "MIT" ]
null
null
null
src/main.cpp
Flongy/Shape-Drawer
249b51ee0d080d92884a9b5578656793503643d3
[ "MIT" ]
null
null
null
#include <cstdint> #include <iostream> #include <vector> #include <GLFW/glfw3.h> #include "Shapes.h" #include "Scene.h" #include "MemoryCheck.h" constexpr uint32_t INITIAL_WIDTH = 1280; constexpr uint32_t INITIAL_HEIGHT = 720; struct KeyStates { bool switch_to_test_scene{}; bool switch_to_random_scene{}; bool ...
26.715152
99
0.744102
[ "render", "shape", "vector" ]
18562cdd7eae465906cb14cc3cb1ad2cb8a826af
1,238
cc
C++
tools/djsettest.cc
drewnoakes/bold-humanoid
6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335
[ "Apache-2.0" ]
null
null
null
tools/djsettest.cc
drewnoakes/bold-humanoid
6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335
[ "Apache-2.0" ]
null
null
null
tools/djsettest.cc
drewnoakes/bold-humanoid
6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335
[ "Apache-2.0" ]
null
null
null
#include "../DisjointSet/disjointset.hh" #include <iostream> #include <cmath> using namespace bold; using namespace std; #define N 1000000 bool flipCoin() { return (rand() % 20) == 0; } int main() { // TODO convert this into unit tests DisjointSet<int> set; vector<int> ints(N); iota(ints.begin(), ints.e...
19.650794
60
0.568659
[ "vector" ]
185e467c12da68051d7ac609eed286f59a7f9b10
3,807
cpp
C++
wireframe-conway/src/ofApp.cpp
graham-riches/sketches
026be227193e84859aedcd350e7fcfc4b87e43d2
[ "MIT" ]
null
null
null
wireframe-conway/src/ofApp.cpp
graham-riches/sketches
026be227193e84859aedcd350e7fcfc4b87e43d2
[ "MIT" ]
null
null
null
wireframe-conway/src/ofApp.cpp
graham-riches/sketches
026be227193e84859aedcd350e7fcfc4b87e43d2
[ "MIT" ]
null
null
null
/** * \file ofApp.cpp * \author Graham Riches (graham.riches@live.com) * \brief definitions for a simple open frameworks sketch app * \version 0.1 * \date 2021-02-10 * * @copyright Copyright (c) 2021 * */ #include "ofApp.h" #include <algorithm> #include <filesystem> /** * \brief constructor for game of l...
29.976378
108
0.676386
[ "render" ]
1860a0ad6d35fa2123aa5815662421e476d95700
791
cpp
C++
docs/atl-mfc-shared/reference/codesnippet/CPP/cfile-class_2.cpp
bobbrow/cpp-docs
769b186399141c4ea93400863a7d8463987bf667
[ "CC-BY-4.0", "MIT" ]
965
2017-06-25T23:57:11.000Z
2022-03-31T14:17:32.000Z
docs/atl-mfc-shared/reference/codesnippet/CPP/cfile-class_2.cpp
bobbrow/cpp-docs
769b186399141c4ea93400863a7d8463987bf667
[ "CC-BY-4.0", "MIT" ]
3,272
2017-06-24T00:26:34.000Z
2022-03-31T22:14:07.000Z
docs/atl-mfc-shared/reference/codesnippet/CPP/cfile-class_2.cpp
bobbrow/cpp-docs
769b186399141c4ea93400863a7d8463987bf667
[ "CC-BY-4.0", "MIT" ]
951
2017-06-25T12:36:14.000Z
2022-03-26T22:49:06.000Z
HANDLE hFile = CreateFile(_T("CFile_File.dat"), GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { AfxMessageBox(_T("Couldn't create the file!")); } else { ...
35.954545
80
0.547408
[ "object" ]
18634066e4e890c0300db063f255d86ea249e853
7,089
cpp
C++
src/kbase/string_format.cpp
oceancx/kbase-cmake
dae59db030a2e0c118e627cad0dcbdc9863480bf
[ "MIT" ]
20
2016-05-16T07:02:09.000Z
2021-06-07T10:21:24.000Z
src/kbase/string_format.cpp
oceancx/kbase-cmake
dae59db030a2e0c118e627cad0dcbdc9863480bf
[ "MIT" ]
1
2020-07-09T02:00:36.000Z
2020-07-11T03:46:52.000Z
src/kbase/string_format.cpp
oceancx/kbase-cmake
dae59db030a2e0c118e627cad0dcbdc9863480bf
[ "MIT" ]
13
2016-03-09T09:52:17.000Z
2021-09-09T14:50:13.000Z
/* @ 0xCCCCCCCC */ #include "kbase/string_format.h" #include "kbase/basic_macros.h" #include "kbase/scope_guard.h" #if defined(OS_POSIX) #include <cstdarg> #endif namespace { using kbase::FormatError; using kbase::NotReached; using kbase::internal::FormatTraits; using kbase::internal::Placeholder; using kbase::in...
27.909449
107
0.613345
[ "vector" ]
18705f9a9197f4242cd674c8357b91dea828bcdf
1,909
cpp
C++
jni_call.cpp
XiXiLocked/cheatsheet
bb472344a38d6e8b87cc7f078a2d6e9ccfb349b6
[ "MIT" ]
null
null
null
jni_call.cpp
XiXiLocked/cheatsheet
bb472344a38d6e8b87cc7f078a2d6e9ccfb349b6
[ "MIT" ]
null
null
null
jni_call.cpp
XiXiLocked/cheatsheet
bb472344a38d6e8b87cc7f078a2d6e9ccfb349b6
[ "MIT" ]
null
null
null
//jni_call.cpp // equivalent java code /* package com.example.it; public class ClassA{ public class ClassB{ public float f; public float g; } public void addsomething(vector<ClassB_cpp> data) { ArrayList<ClassB_cpp> array = new ArrayList(); ...
34.089286
113
0.624935
[ "object", "vector" ]
18756108c52083345035329819a5debddeb0ac2f
40,890
cpp
C++
Compiler/rexlang_compiler/CST2ASTConvert.cpp
RonxBulld/RexLang
6b11e5a5cc0e27b6c722db3c164e94d072710b7d
[ "Apache-2.0" ]
4
2020-09-24T06:15:15.000Z
2021-07-21T14:50:40.000Z
Compiler/rexlang_compiler/CST2ASTConvert.cpp
RonxBulld/RexLang
6b11e5a5cc0e27b6c722db3c164e94d072710b7d
[ "Apache-2.0" ]
null
null
null
Compiler/rexlang_compiler/CST2ASTConvert.cpp
RonxBulld/RexLang
6b11e5a5cc0e27b6c722db3c164e94d072710b7d
[ "Apache-2.0" ]
null
null
null
// // Created by rex on 2020/1/23. // #include <cstring> #include "gen/rexLangLexer.h" #include "gen/rexLangParser.h" #include "gen/rexLangVisitor.h" #include "CST2ASTConvert.h" #include "NodeDecl.h" #include "ASTContext.h" namespace rexlang { void CST2ASTConvert::RemoveRoundQuotes(TString &tString) const { ...
55.860656
156
0.707777
[ "vector" ]
187e1e1cc87d33798df9aca42049833d319d6800
5,156
cpp
C++
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/internal/os/SomeArgs.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
7
2017-07-13T10:34:54.000Z
2021-04-16T05:40:35.000Z
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/internal/os/SomeArgs.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
null
null
null
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/internal/os/SomeArgs.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
9
2017-07-13T12:33:20.000Z
2021-06-19T02:46:48.000Z
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // ...
21.940426
75
0.505625
[ "object" ]
187ea38249b9c0105d9a2acf61b98bed6a7de036
38,094
cpp
C++
EngineLayer/NonSpecificEnzymeSearch/NonSpecificEnzymeSearchEngine.cpp
edgargabriel/HPCMetaMorpheus
160cc269464b8e563fa2f62f6843690b6a2533ee
[ "MIT" ]
2
2020-09-10T19:14:20.000Z
2021-09-11T16:36:56.000Z
EngineLayer/NonSpecificEnzymeSearch/NonSpecificEnzymeSearchEngine.cpp
edgargabriel/HPCMetaMorpheus
160cc269464b8e563fa2f62f6843690b6a2533ee
[ "MIT" ]
null
null
null
EngineLayer/NonSpecificEnzymeSearch/NonSpecificEnzymeSearchEngine.cpp
edgargabriel/HPCMetaMorpheus
160cc269464b8e563fa2f62f6843690b6a2533ee
[ "MIT" ]
3
2020-09-11T01:19:47.000Z
2021-09-02T02:05:01.000Z
#include <optional> #include "NonSpecificEnzymeSearchEngine.h" #include "../PeptideSpectralMatch.h" #include "../CommonParameters.h" #include "../Ms2ScanWithSpecificMass.h" #include "../PrecursorSearchModes/MassDiffAcceptor.h" #include "../MetaMorpheusEngineResults.h" #include "../EventArgs/ProgressEventArgs.h" #incl...
56.268833
243
0.450858
[ "vector" ]
18a91a61bac089f2c43e126cef47a058bc603e32
7,868
cpp
C++
plugins/community/repos/Autodafe/src/FormantFilter.cpp
guillaume-plantevin/VeeSeeVSTRack
76fafc8e721613669d6f5ae82a0f58ce923a91e1
[ "Zlib", "BSD-3-Clause" ]
233
2018-07-02T16:49:36.000Z
2022-02-27T21:45:39.000Z
plugins/community/repos/Autodafe/src/FormantFilter.cpp
guillaume-plantevin/VeeSeeVSTRack
76fafc8e721613669d6f5ae82a0f58ce923a91e1
[ "Zlib", "BSD-3-Clause" ]
24
2018-07-09T11:32:15.000Z
2022-01-07T01:45:43.000Z
plugins/community/repos/Autodafe/src/FormantFilter.cpp
guillaume-plantevin/VeeSeeVSTRack
76fafc8e721613669d6f5ae82a0f58ce923a91e1
[ "Zlib", "BSD-3-Clause" ]
24
2018-07-14T21:55:30.000Z
2021-05-04T04:20:34.000Z
//************************************************************************************** //Formant Filter Module for VCV Rack by Autodafe http://www.autodafe.net // //And part of code Public source code by alex@smartelectronix.com //on musicdsp.org: http://www.musicdsp.org/showArchiveComment.php?ArchiveID=110 //*****...
32.783333
120
0.596085
[ "model" ]
18ae872a9fb998408154c285917dab0dacf7fb3a
2,851
cpp
C++
src/higgs/effective_theory/wilson_coefficients.cpp
dulatf/ihixs
316d5cdf3e88f2ba69cc43668d66b4f69ff833ce
[ "MIT" ]
1
2019-02-08T13:50:24.000Z
2019-02-08T13:50:24.000Z
src/higgs/effective_theory/wilson_coefficients.cpp
dulatf/ihixs
316d5cdf3e88f2ba69cc43668d66b4f69ff833ce
[ "MIT" ]
null
null
null
src/higgs/effective_theory/wilson_coefficients.cpp
dulatf/ihixs
316d5cdf3e88f2ba69cc43668d66b4f69ff833ce
[ "MIT" ]
null
null
null
#include "wilson_coefficients.h" #include "constants.h" // the wilson coeff depends on the scheme used for the top mass // we have implemented below the wilson coefficients using the decoupling coeff. // of hep-ph/0512058 (Steinhauser and Schroder) // Note that one has to express their WC's in terms of the 5 flavor a_...
36.088608
102
0.478779
[ "model" ]
18af3c153cf6e9b313710341203ae7db0523ad64
4,493
cpp
C++
src/assembler/MultiModel.cpp
danielepanozzo/polyfem
34a7719c2a3874b7ecc865c28d8b3d9bbdf7d0ba
[ "MIT" ]
228
2018-11-23T19:32:42.000Z
2022-03-25T10:30:51.000Z
src/assembler/MultiModel.cpp
danielepanozzo/polyfem
34a7719c2a3874b7ecc865c28d8b3d9bbdf7d0ba
[ "MIT" ]
14
2019-03-11T22:44:14.000Z
2022-03-16T14:50:35.000Z
src/assembler/MultiModel.cpp
danielepanozzo/polyfem
34a7719c2a3874b7ecc865c28d8b3d9bbdf7d0ba
[ "MIT" ]
45
2018-12-31T02:04:57.000Z
2022-03-08T02:42:01.000Z
// #define EIGEN_STACK_ALLOCATION_LIMIT 0 #include <polyfem/MultiModel.hpp> #include <polyfem/Basis.hpp> #include <polyfem/auto_elasticity_rhs.hpp> #include <igl/Timer.h> namespace polyfem { void MultiModel::set_size(const int size) { size_ = size; // saint_venant_.set_size(size); neo_hookean_.set_size(siz...
31.640845
214
0.73136
[ "model" ]
18b40087aa30381a6bbf98686ed904363bc9012f
26,541
cpp
C++
IP/src/iProlog/Engine.cpp
Group5SE/PrologVM
7abbd8e419f18d2bd33fbac7c95cc9fefafb972c
[ "Apache-2.0" ]
2
2019-08-26T11:52:50.000Z
2021-11-18T17:53:57.000Z
IP/src/iProlog/Engine.cpp
Group5SE/PrologVM
7abbd8e419f18d2bd33fbac7c95cc9fefafb972c
[ "Apache-2.0" ]
null
null
null
IP/src/iProlog/Engine.cpp
Group5SE/PrologVM
7abbd8e419f18d2bd33fbac7c95cc9fefafb972c
[ "Apache-2.0" ]
1
2017-09-14T20:47:29.000Z
2017-09-14T20:47:29.000Z
/* ============================================================================================== Author: Karthik Venkataramana Pemmaraju. Compilation:g++ Engine.cpp IntStack.cpp IntList.cpp IMap.cpp IntMap.cpp ObStack.cpp Spine.cpp Clause.cpp -std=c++11 -c Written on 11/25/2017 ========================================...
24.804673
290
0.554915
[ "object", "vector" ]
18b6d908e8dda903ebdfe6e3cd4d7b76f9e79415
4,541
hpp
C++
pkgs/libdynd-0.7.2-0/include/dynd/dispatch_map.hpp
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
pkgs/libdynd-0.7.2-0/include/dynd/dispatch_map.hpp
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
pkgs/libdynd-0.7.2-0/include/dynd/dispatch_map.hpp
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
namespace dynd { bool supercedes(type_id_t lhs, type_id_t rhs) { return is_base_id_of(rhs, lhs); } template <size_t N> bool supercedes(const std::array<type_id_t, N> &lhs, const std::array<type_id_t, N> &rhs) { for (size_t i = 0; i < N; ++i) { if (!is_base_id_of(rhs[i], lhs[i])) { return false; } }...
27.689024
114
0.631579
[ "vector" ]
18ba372c731b1938fb63b90997e180c906f737a4
239
hpp
C++
XGF/Include/Xinput.hpp
kadds/XGF
610c98a93c0f287546f97efc654b95dc846721ad
[ "MIT" ]
5
2017-11-09T05:02:52.000Z
2020-06-23T09:50:25.000Z
XGF/Include/Xinput.hpp
kadds/XGF
610c98a93c0f287546f97efc654b95dc846721ad
[ "MIT" ]
null
null
null
XGF/Include/Xinput.hpp
kadds/XGF
610c98a93c0f287546f97efc654b95dc846721ad
[ "MIT" ]
null
null
null
#pragma once #include "Defines.hpp" #include <Xinput.h> #include <vector> namespace XGF::Input { class XInput { public: void Initialize(); void Shutdown(); private: std::pair<bool, XINPUT_STATE> mState[XUSER_MAX_COUNT]; }; }
14.058824
56
0.690377
[ "vector" ]
18bac9a02d1e0a6b241734f227565ee1ed81d8f9
505
cpp
C++
1301-1400/1365-How Many Numbers Are Smaller Than the Current Number/1365-How Many Numbers Are Smaller Than the Current Number.cpp
jiadaizhao/LeetCode
4ddea0a532fe7c5d053ffbd6870174ec99fc2d60
[ "MIT" ]
49
2018-05-05T02:53:10.000Z
2022-03-30T12:08:09.000Z
1301-1400/1365-How Many Numbers Are Smaller Than the Current Number/1365-How Many Numbers Are Smaller Than the Current Number.cpp
jolly-fellow/LeetCode
ab20b3ec137ed05fad1edda1c30db04ab355486f
[ "MIT" ]
11
2017-12-15T22:31:44.000Z
2020-10-02T12:42:49.000Z
1301-1400/1365-How Many Numbers Are Smaller Than the Current Number/1365-How Many Numbers Are Smaller Than the Current Number.cpp
jolly-fellow/LeetCode
ab20b3ec137ed05fad1edda1c30db04ab355486f
[ "MIT" ]
28
2017-12-05T10:56:51.000Z
2022-01-26T18:18:27.000Z
class Solution { public: vector<int> smallerNumbersThanCurrent(vector<int>& nums) { vector<int> presum(101); for (int num : nums) { ++presum[num]; } for (int i = 1; i <= 100; ++i) { presum[i] += presum[i - 1]; } vector<int> result(nums.size());...
25.25
62
0.423762
[ "vector" ]
18bbea050d3816ebfa890a39c7f9b04f272586d8
9,453
cc
C++
components/viz/service/display/gl_renderer_copier_unittest.cc
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
components/viz/service/display/gl_renderer_copier_unittest.cc
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
components/viz/service/display/gl_renderer_copier_unittest.cc
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/viz/service/display/gl_renderer_copier.h" #include <stdint.h> #include <iterator> #include <memory> #include "base/bind.h" #includ...
38.116935
80
0.713636
[ "geometry" ]
18becaab1d40dc9c9ed4c0e72c59b5bc47a93aed
3,449
cpp
C++
dev/g++/projects/beaglebone/beagleboneLcd/test/testlib.cpp
YannGarcia/repo
0f3de24c71d942c752ada03c10861e83853fdf71
[ "MIT" ]
null
null
null
dev/g++/projects/beaglebone/beagleboneLcd/test/testlib.cpp
YannGarcia/repo
0f3de24c71d942c752ada03c10861e83853fdf71
[ "MIT" ]
null
null
null
dev/g++/projects/beaglebone/beagleboneLcd/test/testlib.cpp
YannGarcia/repo
0f3de24c71d942c752ada03c10861e83853fdf71
[ "MIT" ]
1
2017-01-27T12:53:50.000Z
2017-01-27T12:53:50.000Z
//============================================================================ // Name : HelloWorld.cpp // Author : Yann Garcia // Version : // Copyright : No copyright // Description : beagleboneCommlibrary demonstrator/test application in C++, Ansi-style //===========================================...
30.254386
152
0.599884
[ "vector" ]
18cb516093dc72576b838328e9f41d3dcde2bec9
2,925
cpp
C++
src/parametrization/SO3.cpp
leoneed03/reconstrutor
5e6417ed2b090617202cad1a10010141e4ce6615
[ "MIT" ]
null
null
null
src/parametrization/SO3.cpp
leoneed03/reconstrutor
5e6417ed2b090617202cad1a10010141e4ce6615
[ "MIT" ]
1
2021-05-21T15:52:37.000Z
2021-05-24T11:34:46.000Z
src/parametrization/SO3.cpp
leoneed03/reconstrutor
5e6417ed2b090617202cad1a10010141e4ce6615
[ "MIT" ]
null
null
null
// // Copyright (c) Leonid Seniukov. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for details. // #include "parametrization/SO3.h" #include <iomanip> namespace gdr { SO3::SO3(const Eigen::Matrix3d &rotationEigenMatrix) { rotationInner = Sophus::SO3d::fitTo...
29.25
98
0.623248
[ "vector" ]
18d6e7cebb6eb3712e6f8ba9bc565b028cb5161a
8,409
cpp
C++
src/gui/settings.cpp
vlabella/GLE
ff6b424fda75d674c6a9f270ccdade3ab149e24f
[ "BSD-3-Clause" ]
3
2022-03-03T06:48:33.000Z
2022-03-13T21:18:11.000Z
src/gui/settings.cpp
vlabella/GLE
ff6b424fda75d674c6a9f270ccdade3ab149e24f
[ "BSD-3-Clause" ]
1
2022-03-14T13:01:29.000Z
2022-03-14T13:13:23.000Z
src/gui/settings.cpp
vlabella/GLE
ff6b424fda75d674c6a9f270ccdade3ab149e24f
[ "BSD-3-Clause" ]
1
2021-12-21T23:14:06.000Z
2021-12-21T23:14:06.000Z
/*********************************************************************************** * QGLE - A Graphical Interface to GLE * * Copyright (C) 2006 A. S. Budden & J. Struyf * * ...
63.225564
99
0.709478
[ "object" ]
18dae198903056f8136774d4c20b231383811370
3,345
cpp
C++
Tests/UnitTests/VolumeParticleEmitter2Tests.cpp
ADMTec/CubbyFlow
c71457fd04ccfaf3ef22772bab9bcec4a0a3b611
[ "MIT" ]
216
2017-01-25T04:34:30.000Z
2021-07-15T12:36:06.000Z
Tests/UnitTests/VolumeParticleEmitter2Tests.cpp
ADMTec/CubbyFlow
c71457fd04ccfaf3ef22772bab9bcec4a0a3b611
[ "MIT" ]
323
2017-01-26T13:53:13.000Z
2021-07-14T16:03:38.000Z
Tests/UnitTests/VolumeParticleEmitter2Tests.cpp
ADMTec/CubbyFlow
c71457fd04ccfaf3ef22772bab9bcec4a0a3b611
[ "MIT" ]
33
2017-01-25T05:05:49.000Z
2021-06-17T17:30:56.000Z
#include "UnitTestsUtils.hpp" #include "gtest/gtest.h" #include <Core/Animation/Frame.hpp> #include <Core/Emitter/VolumeParticleEmitter2.hpp> #include <Core/Geometry/Sphere.hpp> #include <Core/Geometry/SurfaceToImplicit.hpp> using namespace CubbyFlow; TEST(VolumeParticleEmitter2, Constructors) { auto sphere = st...
33.118812
77
0.634978
[ "geometry" ]
18dca0b773fa5601b3399fccfac87e9c8e9d39e0
445
hpp
C++
libs/render/include/hamon/render/front_face.hpp
shibainuudon/HamonEngine
508a69b0cf589ccb2e5d403ce9e78ff2b85cc058
[ "MIT" ]
null
null
null
libs/render/include/hamon/render/front_face.hpp
shibainuudon/HamonEngine
508a69b0cf589ccb2e5d403ce9e78ff2b85cc058
[ "MIT" ]
21
2022-03-02T13:11:59.000Z
2022-03-30T15:12:41.000Z
libs/render/include/hamon/render/front_face.hpp
shibainuudon/HamonEngine
508a69b0cf589ccb2e5d403ce9e78ff2b85cc058
[ "MIT" ]
null
null
null
/** * @file front_face.hpp * * @brief FrontFace */ #ifndef HAMON_RENDER_FRONT_FACE_HPP #define HAMON_RENDER_FRONT_FACE_HPP #include <cstdint> namespace hamon { inline namespace render { enum class FrontFace : std::uint32_t { Clockwise, CounterClockwise, // alias CW = Clockwise, C...
13.484848
38
0.678652
[ "render" ]
18dcef18b5dba5911a887bc60b4dfb6c28f10a30
1,936
cpp
C++
td/telegram/GroupCallVideoPayload.cpp
ByeCoder/td
609eb0a53cbb1ba05f11b17fff0d78e6082390c5
[ "BSL-1.0" ]
null
null
null
td/telegram/GroupCallVideoPayload.cpp
ByeCoder/td
609eb0a53cbb1ba05f11b17fff0d78e6082390c5
[ "BSL-1.0" ]
null
null
null
td/telegram/GroupCallVideoPayload.cpp
ByeCoder/td
609eb0a53cbb1ba05f11b17fff0d78e6082390c5
[ "BSL-1.0" ]
null
null
null
// // Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2021 // // 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 "td/telegram/GroupCallVideoPayload.h" #include "td/...
39.510204
119
0.779959
[ "vector", "transform" ]
18de8486973d07c739f8ba3783b1eeb5e6d04218
9,303
hpp
C++
libogre/src/PriorityDownloadPlanner.hpp
sirikata/sirikata
3a0d54a8c4778ad6e25ef031d461b2bc3e264860
[ "BSD-3-Clause" ]
31
2015-01-28T17:01:10.000Z
2021-11-04T08:30:37.000Z
libogre/src/PriorityDownloadPlanner.hpp
sirikata/sirikata
3a0d54a8c4778ad6e25ef031d461b2bc3e264860
[ "BSD-3-Clause" ]
null
null
null
libogre/src/PriorityDownloadPlanner.hpp
sirikata/sirikata
3a0d54a8c4778ad6e25ef031d461b2bc3e264860
[ "BSD-3-Clause" ]
9
2015-08-02T18:39:49.000Z
2019-10-11T10:32:30.000Z
// Copyright (c) 2009 Sirikata Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can // be found in the LICENSE file. #ifndef _SIRIKATA_OGRE_PRIORITY_DOWNLOAD_PLANNER_HPP #define _SIRIKATA_OGRE_PRIORITY_DOWNLOAD_PLANNER_HPP #include <sirikata/ogre/ResourceDownloadPlanner...
36.916667
109
0.705149
[ "mesh", "object", "vector" ]
18e3bbda141a634640df51e3ed5133d8626a435c
2,074
hpp
C++
include/codegen/include/UnityEngine/ProBuilder/MeshOperations/MeshValidation_--c__DisplayClass5_0.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
1
2021-11-12T09:29:31.000Z
2021-11-12T09:29:31.000Z
include/codegen/include/UnityEngine/ProBuilder/MeshOperations/MeshValidation_--c__DisplayClass5_0.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
null
null
null
include/codegen/include/UnityEngine/ProBuilder/MeshOperations/MeshValidation_--c__DisplayClass5_0.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
2
2021-10-03T02:14:20.000Z
2021-11-12T09:29:36.000Z
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:22 PM // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "utils/typedefs.h" // Including type: System.Object #include "System/Object.hpp" // Including type...
44.12766
183
0.74108
[ "object" ]
18ee90c30b00ce716bbf98c8a771decae32a87f8
8,009
cpp
C++
Main.cpp
hogsy/Bin2Obj
b0593c6149105c9cdff0bb148a543de8dae37c82
[ "MIT" ]
3
2021-01-12T09:57:00.000Z
2021-05-20T21:24:35.000Z
Main.cpp
hogsy/Bin2Obj
b0593c6149105c9cdff0bb148a543de8dae37c82
[ "MIT" ]
null
null
null
Main.cpp
hogsy/Bin2Obj
b0593c6149105c9cdff0bb148a543de8dae37c82
[ "MIT" ]
null
null
null
/* MIT License Copyright (c) 2021 Mark E Sowden <hogsy@oldtimes-software.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 limitation the rights to use, ...
35.754464
114
0.654514
[ "vector" ]
18f2d8b3e885c099443bc3fc0aa2c0165258fc0f
364
hpp
C++
Board.hpp
marwanhresh/board-b
bcb17b9ab8602a8ffba76ab53c062c5dd4c67c5f
[ "MIT" ]
null
null
null
Board.hpp
marwanhresh/board-b
bcb17b9ab8602a8ffba76ab53c062c5dd4c67c5f
[ "MIT" ]
null
null
null
Board.hpp
marwanhresh/board-b
bcb17b9ab8602a8ffba76ab53c062c5dd4c67c5f
[ "MIT" ]
null
null
null
#include<iostream> #include"Direction.hpp" #include<vector> using namespace std; namespace ariel { class Board { vector<string>board; public: Board(){ } void post (unsigned int row ,unsigned int column,Direction d,string s); string read(unsigned int row , unsigned int column,Direction d...
21.411765
86
0.675824
[ "vector" ]
18f640e3dcbdad667c45f1c389c576a937414fb2
6,599
cpp
C++
IR/IR.cpp
Yveh/Compiler-Mx_star
e00164537528858ed128dbc5a5c4cf7006d6276e
[ "MIT" ]
1
2020-01-23T14:34:11.000Z
2020-01-23T14:34:11.000Z
IR/IR.cpp
Yveh/Compiler-Mx_star
e00164537528858ed128dbc5a5c4cf7006d6276e
[ "MIT" ]
null
null
null
IR/IR.cpp
Yveh/Compiler-Mx_star
e00164537528858ed128dbc5a5c4cf7006d6276e
[ "MIT" ]
null
null
null
#include "IR.h" IROperand IROPerandVoid() {return IROperand(IROperand::Void);} IROperand IROperandReg32(int _id, bool _pointer) {return IROperand(IROperand::Reg32, _id, _pointer);} IROperand IROperandReg8(int _id, bool _pointer) {return IROperand(IROperand::Reg8, _id, _pointer);} IROperand IROperandImm32(int _id, bool...
30.836449
139
0.586756
[ "vector" ]
18f85a3c1f7e175829d854f19a7a6e8486d89ad9
1,673
hpp
C++
inc/Materials/PhongInstanced.hpp
barne856/3DSWMM
60dd2702c82857dcf4358b8d42a1fb430a568e90
[ "MIT" ]
null
null
null
inc/Materials/PhongInstanced.hpp
barne856/3DSWMM
60dd2702c82857dcf4358b8d42a1fb430a568e90
[ "MIT" ]
null
null
null
inc/Materials/PhongInstanced.hpp
barne856/3DSWMM
60dd2702c82857dcf4358b8d42a1fb430a568e90
[ "MIT" ]
null
null
null
#ifndef PHONG_INSTANCED_MATERIAL #define PHONG_INSTANCED_MATERIAL #include "Application/Material.hpp" class PhongInstanced : public Material { public: PhongInstanced() { material.ambient = glm::vec4(0.1f); material.diffuse = glm::vec4(0.5f); material.specular = glm::vec4(0.0f); ...
30.981481
100
0.617454
[ "render" ]
bb466778b3297db73450847f761a22235a4023a0
3,278
cpp
C++
Online Judges/LightOJ/Dynamic-Programming/1191 - Bar Codes.cpp
moni-roy/COPC
f5918304815413c18574ef4af2e23a604bd9f704
[ "MIT" ]
4
2017-02-20T17:41:14.000Z
2019-07-15T14:15:34.000Z
Online Judges/LightOJ/Dynamic-Programming/1191 - Bar Codes.cpp
moni-roy/COPC
f5918304815413c18574ef4af2e23a604bd9f704
[ "MIT" ]
null
null
null
Online Judges/LightOJ/Dynamic-Programming/1191 - Bar Codes.cpp
moni-roy/COPC
f5918304815413c18574ef4af2e23a604bd9f704
[ "MIT" ]
null
null
null
//1191 - Bar Codes #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long long unsigned llu; typedef double dl; typedef pair<int,int> pii; typedef pair<ll,ll> pll; typedef vector<int> vi; typedef vector<ll> vl; typedef map<int,int> mii; ty...
27.779661
117
0.535998
[ "vector" ]
bb46ac107955d9117ce7a98a0f3e26f2b893c787
8,647
cpp
C++
dev/spark/Gem/Code/Components/ProjectileManagerSystemComponent.cpp
chrisinajar/spark
3c6b30592c00bc38738cc3aaca2144edfc6cc8b2
[ "AML" ]
2
2020-08-20T03:40:24.000Z
2021-02-07T20:31:43.000Z
dev/spark/Gem/Code/Components/ProjectileManagerSystemComponent.cpp
chrisinajar/spark
3c6b30592c00bc38738cc3aaca2144edfc6cc8b2
[ "AML" ]
null
null
null
dev/spark/Gem/Code/Components/ProjectileManagerSystemComponent.cpp
chrisinajar/spark
3c6b30592c00bc38738cc3aaca2144edfc6cc8b2
[ "AML" ]
5
2020-08-27T20:44:18.000Z
2021-08-21T22:54:11.000Z
#include "spark_precompiled.h" #include "ProjectileManagerSystemComponent.h" #include "ProjectileControllerComponent.h" #include "Busses/DynamicSliceManagerBus.h" #include <AzCore/Serialization/EditContext.h> #include <AzFramework/Input/Channels/InputChannel.h> #include <AzFramework/Input/Devices/Keyboard/InputDevi...
35.879668
159
0.791141
[ "shape", "transform" ]
bb477ad6ba9462d0daaad76b24d2010efdfc3b8f
2,099
cpp
C++
lucas/codeforces/1241/cforces1241C.cpp
medeiroslucas/lo-and-behold-pp
d2be16f9b108b501fd9fccf173e741c93350cee4
[ "MIT" ]
2
2019-09-09T00:34:40.000Z
2019-09-09T17:35:19.000Z
lucas/codeforces/1241/cforces1241C.cpp
medeiroslucas/lo-and-behold-pp
d2be16f9b108b501fd9fccf173e741c93350cee4
[ "MIT" ]
null
null
null
lucas/codeforces/1241/cforces1241C.cpp
medeiroslucas/lo-and-behold-pp
d2be16f9b108b501fd9fccf173e741c93350cee4
[ "MIT" ]
null
null
null
/* * author: lucas_medeiros - github.com/medeiroslucas * team: Lo and Behold ++ * created: 06-10-2019 12:33:16 * contest: 1241 * problem: C * solved: False */ #include <bits/stdc++.h> #define DEBUG false #define coutd if(DEBUG) cout #define debugf if(DEBUG) printf #define ff first #define ss second #define...
16.271318
53
0.468318
[ "vector" ]
bb49d501546bf3696beea3874449bf41585526ef
681
cpp
C++
asst7_hil00/uniq.cpp
hibalubbad/hiba.baddie
69001ad56c8a51f6e36a802bae061128d9fd5a71
[ "MIT" ]
null
null
null
asst7_hil00/uniq.cpp
hibalubbad/hiba.baddie
69001ad56c8a51f6e36a802bae061128d9fd5a71
[ "MIT" ]
null
null
null
asst7_hil00/uniq.cpp
hibalubbad/hiba.baddie
69001ad56c8a51f6e36a802bae061128d9fd5a71
[ "MIT" ]
null
null
null
#include <iostream> #include <algorithm> #include <vector> using namespace std; bool uniq(vector <int> v,int i,int j){ if(i>=j) return 1; else { for(int k = i+1;k<=j;k++){ if(v[k]==v[i]) return 0; else{ return uniq(v,i+1,j); } ...
21.28125
106
0.515419
[ "vector" ]
bb511e82cbc96bfcab4b16c389a02c3a645d4aea
561
cpp
C++
167/twosum.cpp
Lixu518/leetcode
f8e868ef6963da92237e6dc6888d7dda0b9bdd19
[ "MIT" ]
1
2018-06-24T13:58:07.000Z
2018-06-24T13:58:07.000Z
167/twosum.cpp
Lixu518/leetcode
f8e868ef6963da92237e6dc6888d7dda0b9bdd19
[ "MIT" ]
null
null
null
167/twosum.cpp
Lixu518/leetcode
f8e868ef6963da92237e6dc6888d7dda0b9bdd19
[ "MIT" ]
null
null
null
#include<iostream> #include<vector> using namespace std; vector<int> twoSum(vector<int>& nums, int target) { vector<int>res; if(nums.empty() || nums.size() <= 1) return res; int left = 0, right = nums.size() - 1; while(nums[left] + nums[right] != target){ if(nums[left] + nums[right] < target) left++; else right...
23.375
51
0.634581
[ "vector" ]
bb59617621e8f25ff43e1c6588fd88b6ba9d3c0e
35,391
cpp
C++
src/CQChartsCorrelationPlot.cpp
SammyEnigma/CQCharts
56433e32c943272b6faaf6771d0652c0507f943e
[ "MIT" ]
14
2018-05-22T15:06:08.000Z
2022-01-20T12:18:28.000Z
src/CQChartsCorrelationPlot.cpp
SammyEnigma/CQCharts
56433e32c943272b6faaf6771d0652c0507f943e
[ "MIT" ]
6
2020-09-04T15:49:24.000Z
2022-01-12T19:06:45.000Z
src/CQChartsCorrelationPlot.cpp
SammyEnigma/CQCharts
56433e32c943272b6faaf6771d0652c0507f943e
[ "MIT" ]
9
2019-04-01T13:10:11.000Z
2022-01-22T01:46:27.000Z
#include <CQChartsCorrelationPlot.h> #include <CQChartsCorrelationModel.h> #include <CQChartsView.h> #include <CQChartsModelDetails.h> #include <CQChartsModelData.h> #include <CQChartsModelUtil.h> #include <CQChartsLoader.h> #include <CQChartsFilterModel.h> #include <CQChartsUtil.h> #include <CQCharts.h> #include <CQCh...
25.046709
100
0.65624
[ "shape", "model" ]
bb5beadbc103f2eda08cde9147657b9b7335b43a
4,754
hpp
C++
src/image_management/image/template/image_basic.hpp
Neckrome/vectorFieldSurface
91afebadf9815e6a2dc658cdce82691fddd603ee
[ "MIT" ]
null
null
null
src/image_management/image/template/image_basic.hpp
Neckrome/vectorFieldSurface
91afebadf9815e6a2dc658cdce82691fddd603ee
[ "MIT" ]
null
null
null
src/image_management/image/template/image_basic.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...
31.276316
91
0.452251
[ "vector" ]
bb6198741b71e694fe84a63be582a79730a54252
639
cpp
C++
src/huntersmanager.cpp
fengjixuchui/memhunter
3f85e66d5d4cf83bd7b5d0d457a8e62c746ba703
[ "MIT" ]
354
2018-08-13T18:19:21.000Z
2022-03-20T10:37:20.000Z
src/huntersmanager.cpp
ZhuHuiBeiShaDiao/memhunter
37ce1488fa041199cc8761e473947affc3286b7b
[ "MIT" ]
3
2019-09-27T11:33:52.000Z
2020-04-21T17:15:28.000Z
src/huntersmanager.cpp
ZhuHuiBeiShaDiao/memhunter
37ce1488fa041199cc8761e473947affc3286b7b
[ "MIT" ]
90
2018-11-15T12:37:51.000Z
2022-02-14T11:12:39.000Z
#include "common.h" //TODO: Add threading support bool HuntersManager::RunHunters(HunterCommon::ProcessCollection &processesToAnalyze, const UINT32 nrThreads) { bool ret = false; if ((!processesToAnalyze.empty()) && (nrThreads > 0)) { for (std::vector<CustomTypes::HunterPtr>::const_iterator hunterIt = m_hunters....
20.612903
108
0.674491
[ "vector" ]
bb62e80ed10b6d8e897369e7f572d427901c7ff5
323
cpp
C++
electives/amh/lab/l1/z1/griewank.cpp
jerry-sky/academic-notebook
be2d350289441b99168ea40412891bc65b9cb431
[ "Unlicense" ]
4
2020-12-28T21:53:00.000Z
2022-03-22T19:24:47.000Z
electives/amh/lab/l1/z1/griewank.cpp
jerry-sky/academic-notebook
be2d350289441b99168ea40412891bc65b9cb431
[ "Unlicense" ]
3
2022-02-13T18:07:10.000Z
2022-02-13T18:16:07.000Z
electives/amh/lab/l1/z1/griewank.cpp
jerry-sky/academic-notebook
be2d350289441b99168ea40412891bc65b9cb431
[ "Unlicense" ]
4
2020-12-28T16:05:35.000Z
2022-03-08T16:20:00.000Z
#include "griewank.h" double Griewank(std::vector<double> x) { double output = 0; for (int i = 0; i < 4; i++) { output += pow(x[i], 2) * 1.0; } output /= 4000; output += 1; double tmp = 1; for (int i = 0; i < 4; i++) { tmp *= cos(x[i] / sqrt(i + 1)); } output -= tmp; return output;...
12.92
38
0.486068
[ "vector" ]
bb662d170a15897bb86503a3f2a31bb4435ce781
1,668
cpp
C++
StarEngine/jni/Actions/DelayedAction.cpp
madhubandubey9/StarEngine
1d0adcf8cfd50bc223be6f333c4f2a0af5260b27
[ "MIT" ]
455
2015-02-04T01:39:12.000Z
2022-03-18T17:28:34.000Z
StarEngine/jni/Actions/DelayedAction.cpp
madhubandubey9/StarEngine
1d0adcf8cfd50bc223be6f333c4f2a0af5260b27
[ "MIT" ]
1
2016-12-25T09:14:12.000Z
2016-12-25T14:48:27.000Z
StarEngine/jni/Actions/DelayedAction.cpp
madhubandubey9/StarEngine
1d0adcf8cfd50bc223be6f333c4f2a0af5260b27
[ "MIT" ]
117
2015-01-30T10:13:54.000Z
2022-03-08T03:46:42.000Z
#include "DelayedAction.h" #include "../Helpers/Helpers.h" #include "../Objects/Object.h" #include "../Scenes/BaseScene.h" namespace star { uint64 DelayedAction::ID_COUNTER = 0; DelayedAction::DelayedAction(float32 seconds) : Action() , m_UniqueID(_T("DA_")) , m_Seconds(seconds) , m_Callback(nu...
17.195876
57
0.601918
[ "object" ]
bb85873d733abcd3f14a3db739cfdf7d0f36f0a7
6,107
cpp
C++
bipedenv/cpp/Render/MyGLFWwindow.cpp
snumrl/DistributedDeepMimic
364d07dbdd5378b6d46d944e472e1632712ef5f6
[ "MIT" ]
null
null
null
bipedenv/cpp/Render/MyGLFWwindow.cpp
snumrl/DistributedDeepMimic
364d07dbdd5378b6d46d944e472e1632712ef5f6
[ "MIT" ]
null
null
null
bipedenv/cpp/Render/MyGLFWwindow.cpp
snumrl/DistributedDeepMimic
364d07dbdd5378b6d46d944e472e1632712ef5f6
[ "MIT" ]
null
null
null
#include "Render/MyGLFWwindow.h" #include "Render/GLFWMain.h" static void initLights(double x = 0, double z = 0, double fx = 0, double fz = 0){ static float ambient[] = {0.02, 0.02, 0.02, 1.0}; static float diffuse[] = {.1, .1, .1, 1.0}; // static float ambient0[] = {.01, .01, ....
34.502825
100
0.688554
[ "render" ]
bb86d5e05c7ee100970d492288c1990eb14d137f
26,971
cpp
C++
trunk/legacy/tools/parsers/tldm_2_sdf/xml2sdf_parser.cpp
Xilinx/merlin-compiler
f47241ccf26186c60bd8aa6e0390c7dd3edabb3c
[ "Apache-2.0" ]
23
2021-09-04T02:12:02.000Z
2022-03-21T01:10:53.000Z
trunk/legacy/tools/parsers/tldm_2_sdf/xml2sdf_parser.cpp
Xilinx/merlin-compiler
f47241ccf26186c60bd8aa6e0390c7dd3edabb3c
[ "Apache-2.0" ]
2
2022-03-04T02:57:29.000Z
2022-03-25T15:58:18.000Z
trunk/legacy/tools/parsers/tldm_2_sdf/xml2sdf_parser.cpp
Xilinx/merlin-compiler
f47241ccf26186c60bd8aa6e0390c7dd3edabb3c
[ "Apache-2.0" ]
12
2021-09-22T10:38:47.000Z
2022-03-28T02:41:56.000Z
// (C) Copyright 2016-2021 Xilinx, Inc. // All Rights Reserved. // // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to yo...
34.711712
80
0.584776
[ "vector" ]
bb875077b5b9c2bdf55875273c61037f93ce8318
10,923
cc
C++
DQMOffline/CalibMuon/src/DTt0DBValidation.cc
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
1
2019-08-09T08:42:11.000Z
2019-08-09T08:42:11.000Z
DQMOffline/CalibMuon/src/DTt0DBValidation.cc
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
DQMOffline/CalibMuon/src/DTt0DBValidation.cc
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
1
2019-03-19T13:44:54.000Z
2019-03-19T13:44:54.000Z
/* * See header file for a description of this class. * * \author G. Mila - INFN Torino */ #include "DQMOffline/CalibMuon/interface/DTt0DBValidation.h" // Framework #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/EventSetup.h" #include "FWCore/Framework/interface/ESHandle.h" ...
37.927083
146
0.658519
[ "geometry", "vector" ]
bb92bb7342f23ab1ba7734af5ebbe74538084197
2,968
cpp
C++
src/regex.cpp
Clyde-Beep/sporks-test
c760d68c23a12dcc5c1a48ee0fc5e26c344f5c07
[ "Apache-2.0" ]
22
2020-01-25T16:50:07.000Z
2022-01-30T02:47:17.000Z
src/regex.cpp
Clyde-Beep/sporks-test
c760d68c23a12dcc5c1a48ee0fc5e26c344f5c07
[ "Apache-2.0" ]
1
2020-10-08T13:37:11.000Z
2020-10-08T13:37:11.000Z
src/regex.cpp
Clyde-Beep/sporks-test
c760d68c23a12dcc5c1a48ee0fc5e26c344f5c07
[ "Apache-2.0" ]
7
2020-03-08T04:57:26.000Z
2022-02-28T21:57:41.000Z
/************************************************************************************ * * Sporks, the learning, scriptable Discord bot! * * Copyright 2019 Craig Edwards <support@sporks.gg> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with t...
36.641975
150
0.68093
[ "vector" ]
bb931e79d193f4d7baeb5c638fb2c1efa7344ed2
893
hpp
C++
tlab/include/tlab/ext/sqlite3/connection.hpp
gwonhyeong/tlabs
ea0f08441f33af40b28235a48ecb9f545186968d
[ "MIT" ]
null
null
null
tlab/include/tlab/ext/sqlite3/connection.hpp
gwonhyeong/tlabs
ea0f08441f33af40b28235a48ecb9f545186968d
[ "MIT" ]
null
null
null
tlab/include/tlab/ext/sqlite3/connection.hpp
gwonhyeong/tlabs
ea0f08441f33af40b28235a48ecb9f545186968d
[ "MIT" ]
null
null
null
/** * @file connection.hpp * @author ghtak * @brief * @version 0.1 * @date 2019-01-17 * * @copyright Copyright (c) 2019 * */ #ifndef __tlab_ext_sqlite3_connection_h__ #define __tlab_ext_sqlite3_connection_h__ #include <tlab/internal.hpp> #include <sqlite3/sqlite3.h> namespace tlab::ext::sqlite3{ /** * @...
14.403226
61
0.56551
[ "object" ]
bba420936abafc266a10698042b07453c19f8aed
2,282
cpp
C++
src/utils/CSVReader.cpp
AFriemann/LowCarb
073e036a5fd6787943c4cbd76ab388dbd830e7d3
[ "MIT" ]
null
null
null
src/utils/CSVReader.cpp
AFriemann/LowCarb
073e036a5fd6787943c4cbd76ab388dbd830e7d3
[ "MIT" ]
1
2018-12-15T13:57:26.000Z
2018-12-15T13:57:26.000Z
src/utils/CSVReader.cpp
AFriemann/LowCarb
073e036a5fd6787943c4cbd76ab388dbd830e7d3
[ "MIT" ]
null
null
null
/** * @file CSVReader.cpp * @author see AUTHORS * @brief CSVReader definitions file. */ #include "CSVReader.hpp" Eigen::MatrixXd CSVReader::read_matrix( const boost::filesystem::path & matrix_csv_path, const int dimension) const { if (!exists(matrix_csv_path)) { throw std::runtime_erro...
27.829268
96
0.616126
[ "vector" ]
bbab0116b02b6546575f671f13aa6919a360ce2c
24,589
cpp
C++
UTSvrBrowser.cpp
chrisoldwood/UTSvrBrowser
341d8b09afdcab5a296df6f074cae47c10637f0f
[ "MIT" ]
3
2017-08-17T15:10:43.000Z
2021-02-27T04:47:49.000Z
UTSvrBrowser.cpp
chrisoldwood/UTSvrBrowser
341d8b09afdcab5a296df6f074cae47c10637f0f
[ "MIT" ]
null
null
null
UTSvrBrowser.cpp
chrisoldwood/UTSvrBrowser
341d8b09afdcab5a296df6f074cae47c10637f0f
[ "MIT" ]
null
null
null
/****************************************************************************** ** (C) Chris Oldwood ** ** MODULE: UTSVRBROWSER.CPP ** COMPONENT: The Application. ** DESCRIPTION: The CUTSvrBrowser class definition. ** ******************************************************************************* */ #include "Common....
27.784181
116
0.581114
[ "object" ]
bbac594935faee40693759c07990847159596515
5,278
cpp
C++
basic/cipher.cpp
senlinzhan/socks5
144d0c18560a81f5617a8b1092902d2ce2a69144
[ "MIT" ]
43
2017-10-07T02:29:00.000Z
2022-03-20T11:39:34.000Z
basic/cipher.cpp
senlinzhan/socks5
144d0c18560a81f5617a8b1092902d2ce2a69144
[ "MIT" ]
1
2020-03-26T16:43:01.000Z
2020-03-26T16:43:01.000Z
basic/cipher.cpp
senlinzhan/socks5
144d0c18560a81f5617a8b1092902d2ce2a69144
[ "MIT" ]
26
2018-01-05T06:20:51.000Z
2022-01-10T06:27:12.000Z
#include "cipher.hpp" #include <assert.h> Cryptor::Cryptor(const std::string &key, const std::string &iv) { assert(key.size() == KEY_SIZE); assert(iv.size() == BLOCK_SIZE); for (int i = 0; i < KEY_SIZE; i++) { key_[i] = static_cast<Byte>(key[i]); } for (int i = 0;...
23.251101
89
0.589996
[ "vector" ]
bbae128fa418d9c8edd72302c7f6784c87b7f6ae
8,871
cpp
C++
mapping/src/octomap/octomap_color.cpp
sameeptandon/sail-car-log
0ee3d598bb09d389bcbd2ebf73cd4b2411e796be
[ "BSD-2-Clause" ]
1
2021-02-24T03:11:13.000Z
2021-02-24T03:11:13.000Z
mapping/src/octomap/octomap_color.cpp
sameeptandon/sail-car-log
0ee3d598bb09d389bcbd2ebf73cd4b2411e796be
[ "BSD-2-Clause" ]
null
null
null
mapping/src/octomap/octomap_color.cpp
sameeptandon/sail-car-log
0ee3d598bb09d389bcbd2ebf73cd4b2411e796be
[ "BSD-2-Clause" ]
3
2015-03-18T14:36:04.000Z
2018-07-04T02:57:24.000Z
#include <string> #include <boost/progress.hpp> #include <pcl/common/transforms.h> #include <octomap/octomap.h> #include "cloud_server.h" #include "parameters.h" #include "../videoreader/VideoReader.h" #include "utils/cv_utils.h" int main(int argc, char** arv) { params().initialize(); int start = params()....
37.910256
137
0.543456
[ "object", "vector", "transform" ]
bbb44504b9499e41355294b9ef389f318ddd5096
11,538
cpp
C++
src/eepp/scene/scenenode.cpp
jayrulez/eepp
09c5c1b6b4c0306bb0a188474778c6949b5df3a7
[ "MIT" ]
37
2020-01-20T06:21:24.000Z
2022-03-21T17:44:50.000Z
src/eepp/scene/scenenode.cpp
jayrulez/eepp
09c5c1b6b4c0306bb0a188474778c6949b5df3a7
[ "MIT" ]
null
null
null
src/eepp/scene/scenenode.cpp
jayrulez/eepp
09c5c1b6b4c0306bb0a188474778c6949b5df3a7
[ "MIT" ]
9
2019-03-22T00:33:07.000Z
2022-03-01T01:35:59.000Z
#include <algorithm> #include <eepp/graphics/framebuffer.hpp> #include <eepp/graphics/globalbatchrenderer.hpp> #include <eepp/graphics/renderer/renderer.hpp> #include <eepp/graphics/textureregion.hpp> #include <eepp/scene/actionmanager.hpp> #include <eepp/scene/scenenode.hpp> #include <eepp/window/cursormanager.hpp> #i...
23.546939
94
0.703935
[ "vector" ]
bbb86daf518fcb7fbcf53247fe12da7c9ac47c21
1,204
cpp
C++
TAI/TP2/src/wav/wavcmp.cpp
lengors/ua-repository
4a2ff60af8b190783e1992fe8edb40fc1147224a
[ "MIT" ]
null
null
null
TAI/TP2/src/wav/wavcmp.cpp
lengors/ua-repository
4a2ff60af8b190783e1992fe8edb40fc1147224a
[ "MIT" ]
null
null
null
TAI/TP2/src/wav/wavcmp.cpp
lengors/ua-repository
4a2ff60af8b190783e1992fe8edb40fc1147224a
[ "MIT" ]
null
null
null
#include <wav/wavcmp.hpp> #include <vector> #include <cmath> std::optional<std::tuple<float, unsigned>> WAV::compare(SndfileHandle &file, SndfileHandle &original, const size_t &buffer_size) { if (file.channels() != original.channels()) return {}; int max = 0; using ld = long double; ...
37.625
129
0.58887
[ "vector" ]
c7e114628a6b681e5a85d8e5242893b918194863
4,982
cpp
C++
metric/modules/distance/k-structured/TWED.cpp
Stepka/telegram_clustering_contest
52a012af2ce821410caa98cba840364710eb4256
[ "Apache-2.0" ]
2
2019-12-03T17:08:04.000Z
2021-08-25T05:06:29.000Z
metric/modules/distance/k-structured/TWED.cpp
Stepka/telegram_clustering_contest
52a012af2ce821410caa98cba840364710eb4256
[ "Apache-2.0" ]
1
2021-09-02T02:25:51.000Z
2021-09-02T02:25:51.000Z
metric/modules/distance/k-structured/TWED.cpp
Stepka/telegram_clustering_contest
52a012af2ce821410caa98cba840364710eb4256
[ "Apache-2.0" ]
null
null
null
/* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. Copyright (c) 2018 Michael Welsch */ #ifndef _METRIC_DISTANCE_K_STRUCTURED_TWED_CPP #define _METRIC_DISTANCE_K_STRUCTURED_T...
35.585714
118
0.539141
[ "vector" ]
c7f31071d92f4dbc3dcaf85b8bcd0fbbddb8b393
16,660
cpp
C++
NEST-14.0-FPGA/nestkernel/model_manager.cpp
OpenHEC/SNN-simulator-on-PYNQcluster
14f86a76edf4e8763b58f84960876e95d4efc43a
[ "MIT" ]
45
2019-12-09T06:45:53.000Z
2022-01-29T12:16:41.000Z
NEST-14.0-FPGA/nestkernel/model_manager.cpp
zlchai/SNN-simulator-on-PYNQcluster
14f86a76edf4e8763b58f84960876e95d4efc43a
[ "MIT" ]
2
2020-05-23T05:34:21.000Z
2021-09-08T02:33:46.000Z
NEST-14.0-FPGA/nestkernel/model_manager.cpp
OpenHEC/SNN-simulator-on-PYNQcluster
14f86a76edf4e8763b58f84960876e95d4efc43a
[ "MIT" ]
10
2019-12-09T06:45:59.000Z
2021-03-25T09:32:56.000Z
/* * model_manager.cpp * * This file is part of NEST. * * Copyright (C) 2004 The NEST Initiative * * NEST 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 2 of the License, or * ...
25.99064
80
0.634454
[ "vector", "model" ]
c7fb2476b62417fe1523191808d980874bf36199
10,712
cpp
C++
storage/diskmgr/frameworks/file_manager_service/src/fms_utils.cpp
peeweep/distributeddatamgr_file
1e624bbc3850815fa1b2642c67123b7785bec6a1
[ "Apache-2.0" ]
null
null
null
storage/diskmgr/frameworks/file_manager_service/src/fms_utils.cpp
peeweep/distributeddatamgr_file
1e624bbc3850815fa1b2642c67123b7785bec6a1
[ "Apache-2.0" ]
null
null
null
storage/diskmgr/frameworks/file_manager_service/src/fms_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 ...
31.139535
110
0.609317
[ "vector" ]
c7fd1bacfa6ad4f8e71aba694ff65f175295df23
78,915
cp
C++
Text/Mod/Models.cp
romiras/Blackbox-fw-playground
6de94dc65513e657a9b86c1772e2c07742b608a8
[ "BSD-2-Clause" ]
1
2016-03-17T08:27:05.000Z
2016-03-17T08:27:05.000Z
Text/Mod/Models.cps
Spirit-of-Oberon/LightBox
8a45ed11dcc02ae97e86f264dcee3e07c910ff9d
[ "BSD-2-Clause" ]
null
null
null
Text/Mod/Models.cps
Spirit-of-Oberon/LightBox
8a45ed11dcc02ae97e86f264dcee3e07c910ff9d
[ "BSD-2-Clause" ]
1
2018-03-14T17:53:27.000Z
2018-03-14T17:53:27.000Z
MODULE TextModels; (** project = "BlackBox" organization = "www.oberon.ch" contributors = "Oberon microsystems" version = "System/Rsrc/About" copyright = "System/Rsrc/About" license = "Docu/BB-License" changes = "" issues = "" **) (* re-check alien attributes: ...
37.686246
135
0.502629
[ "model" ]
2a07062d59c27f7e77ad55893638e9409bf90b11
27,085
cc
C++
ggadget/win32/tests/gdiplus_graphics_test.cc
suzhe/google-gadgets-for-linux
b58baabd8458c8515c9902b8176151a08d240983
[ "Apache-2.0" ]
175
2015-01-01T12:40:33.000Z
2019-05-24T22:33:59.000Z
ggadget/win32/tests/gdiplus_graphics_test.cc
suzhe/google-gadgets-for-linux
b58baabd8458c8515c9902b8176151a08d240983
[ "Apache-2.0" ]
11
2015-01-19T16:30:56.000Z
2018-04-25T01:06:52.000Z
ggadget/win32/tests/gdiplus_graphics_test.cc
suzhe/google-gadgets-for-linux
b58baabd8458c8515c9902b8176151a08d240983
[ "Apache-2.0" ]
97
2015-01-19T15:35:29.000Z
2019-05-15T05:48:02.000Z
/* Copyright 2011 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing...
38.41844
79
0.666937
[ "object" ]
2a088f1dbac7d94d60807e52cadbf2110f3ce791
2,911
hpp
C++
Test/Case01_ActualExamples.hpp
GoPlan/cldeparser
430bd983fa2c448680f3b7452c40ebb4c1ca3048
[ "MIT" ]
null
null
null
Test/Case01_ActualExamples.hpp
GoPlan/cldeparser
430bd983fa2c448680f3b7452c40ebb4c1ca3048
[ "MIT" ]
null
null
null
Test/Case01_ActualExamples.hpp
GoPlan/cldeparser
430bd983fa2c448680f3b7452c40ebb4c1ca3048
[ "MIT" ]
null
null
null
// // Created by LE, Duc Anh on 8/28/15. // #ifndef CLDEPARSER_TEST_CASE01_ACTUALEXAMPLES_HPP #define CLDEPARSER_TEST_CASE01_ACTUALEXAMPLES_HPP #include <fstream> #include "JsonTestFixture.h" #define CUSTOMERMAP_JSON "JsonExamples/CustomerMap.json" namespace CLDEParser { namespace Test { TEST_F(JsonTes...
46.206349
139
0.663346
[ "object" ]
2a0a8f585906645dc204ebeb7f914aedfb9ebc07
732
cpp
C++
coding-blocks/CGPA.cpp
jatin69/Revision-cpp
52742ea76ee2440d92b116252399360fef46e0c7
[ "MIT" ]
4
2020-01-16T14:49:46.000Z
2021-08-23T12:45:19.000Z
coding-blocks/CGPA.cpp
jatin69/coding-practice
52742ea76ee2440d92b116252399360fef46e0c7
[ "MIT" ]
2
2018-06-06T13:08:11.000Z
2018-10-02T19:07:32.000Z
coding-blocks/CGPA.cpp
jatin69/coding-practice
52742ea76ee2440d92b116252399360fef46e0c7
[ "MIT" ]
5
2018-10-02T13:49:16.000Z
2021-08-11T07:29:50.000Z
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<int> A(n); vector<int> B(n); for (int i = 0; i < n; ++i) { cin >> A[i]; B[i] = A[i]; } int count = 0; vector<int> C; bool goforit = false; do { goforit = false; A = B; B = C; sort(A.begin(), A.end()); for (int ...
14.076923
38
0.423497
[ "vector" ]
2a1c68b1cacc0c0687f2560b40b32c1406066c47
452
hpp
C++
src/pge/file.hpp
MichaCzu/p-engine
79666ce4d211c010b082112235f222de87d1e811
[ "MIT" ]
null
null
null
src/pge/file.hpp
MichaCzu/p-engine
79666ce4d211c010b082112235f222de87d1e811
[ "MIT" ]
null
null
null
src/pge/file.hpp
MichaCzu/p-engine
79666ce4d211c010b082112235f222de87d1e811
[ "MIT" ]
null
null
null
//zapisywanie i wczytywanie danych z pliku. ( niby zbędne ale dla czytelności potem ) #pragma once #include <string> #include <vector> namespace pge { namespace file { bool init(); bool close(); bool remove(std::string path); std::wstring read_nextline(std::string path); std::wstring read(std::string path, int mode ...
25.111111
85
0.725664
[ "vector" ]
2a1c862db412b06ce0629026ca79db8e0673cb94
11,660
cpp
C++
src/main.cpp
GbaLog/wad_packer
212af80a8e1e475221be4b5ec241bd77ec126899
[ "MIT" ]
4
2021-09-12T00:13:04.000Z
2022-02-19T11:18:33.000Z
src/main.cpp
GbaLog/wad_packer
212af80a8e1e475221be4b5ec241bd77ec126899
[ "MIT" ]
null
null
null
src/main.cpp
GbaLog/wad_packer
212af80a8e1e475221be4b5ec241bd77ec126899
[ "MIT" ]
null
null
null
#include <fstream> #include <cstring> #include "Tracer.h" #include "MemReader.h" #include "PixMapDecoder.h" #include "WadDecoder.h" #include "BmpEncoder.h" #include "BmpDecoder.h" #include "MemWriter.h" #include "Common.h" //----------------------------------------------------------------------------- bool r...
28.933002
113
0.56964
[ "vector" ]
2a1da8b3e8da92be0480c7883becfddc0eafa878
1,877
hpp
C++
Workspace/src/Animation.hpp
Llemmert/UntitledCatGame
4618cef62d329a90a7387a63cdf87b5b9762097b
[ "MIT" ]
null
null
null
Workspace/src/Animation.hpp
Llemmert/UntitledCatGame
4618cef62d329a90a7387a63cdf87b5b9762097b
[ "MIT" ]
null
null
null
Workspace/src/Animation.hpp
Llemmert/UntitledCatGame
4618cef62d329a90a7387a63cdf87b5b9762097b
[ "MIT" ]
null
null
null
#pragma once #include <vector> #include <fstream> #include <math.h> using namespace std; class AnimationFrame { SDL_Texture *frame; int millis; public: void init(SDL_Texture *newFrame, int newMillis = 100) { frame = newFrame; millis = newMillis; } void read(MediaManager *media...
21.825581
65
0.50293
[ "vector" ]
2a20b3cdd1121343beac23d96e9b8203eb5d06e9
377
cpp
C++
LeetCode/1014.best-sightseeing-pair.ac.cpp
Kresnt/AlgorithmTraining
3dec1e712f525b4f406fe669d97888f322dfca97
[ "MIT" ]
null
null
null
LeetCode/1014.best-sightseeing-pair.ac.cpp
Kresnt/AlgorithmTraining
3dec1e712f525b4f406fe669d97888f322dfca97
[ "MIT" ]
null
null
null
LeetCode/1014.best-sightseeing-pair.ac.cpp
Kresnt/AlgorithmTraining
3dec1e712f525b4f406fe669d97888f322dfca97
[ "MIT" ]
null
null
null
#pragma G++ optimize("O2") class Solution { public: int maxScoreSightseeingPair(vector<int>& A) { const int n = A.size(); int ans(INT_MIN), q(-1); for(int i = n - 1; i >= 0; --i) { if(q != -1 && A[i] + i + A[q] - q > ans) { ans = (A[i] + i + A[q] - q); } if(q == -1 || A[i] - i ...
20.944444
48
0.413793
[ "vector" ]
2a3041e500604793fece73e3b05dccbfbdf1417d
1,881
cpp
C++
boost/bind.cpp
lolyu/aoi
a26e5eb205aafadc7301b2e4acc67915d3bcc935
[ "MIT" ]
null
null
null
boost/bind.cpp
lolyu/aoi
a26e5eb205aafadc7301b2e4acc67915d3bcc935
[ "MIT" ]
null
null
null
boost/bind.cpp
lolyu/aoi
a26e5eb205aafadc7301b2e4acc67915d3bcc935
[ "MIT" ]
null
null
null
// #include <boost/bind.hpp> #include <boost/bind/bind.hpp> #include <iostream> #include <algorithm> using namespace std; int f(int a, int b) { return a + b; } int g(int a, int b, int c) { return a + b + c; } int h(int &a, int &b) { return a++ + b++; } void print(int x) { cout << x << endl; } stru...
25.767123
126
0.461988
[ "object" ]
2a3afbb1d24b7d9b666c365dafb3600be46f242a
7,528
cpp
C++
tilerun/src/scenes/Temple_scene.cpp
PrincenMaxim/gba-sprite-engine
b5d321b84397c2ec7c4aa57d89ace7d78ab8b751
[ "MIT" ]
null
null
null
tilerun/src/scenes/Temple_scene.cpp
PrincenMaxim/gba-sprite-engine
b5d321b84397c2ec7c4aa57d89ace7d78ab8b751
[ "MIT" ]
null
null
null
tilerun/src/scenes/Temple_scene.cpp
PrincenMaxim/gba-sprite-engine
b5d321b84397c2ec7c4aa57d89ace7d78ab8b751
[ "MIT" ]
null
null
null
// // Created by Gebruiker on 23/12/2020. // #include "Temple_scene.h" #include "../backgrounds/temple_input.h" #include "../sprites/pink_guy_sprites.h" #include "../sprites/owlet_sprites.h" #include "../sprites/dude_sprites.h" #include "../sounds/coinsound.h" std::vector<Sprite *> Temple_scene::sprites(){ std...
37.452736
133
0.576382
[ "vector" ]
2a3e1a8a03968dd7982fc18521c7f62289258341
1,003
cc
C++
LeetCode/MS Prep/2008_maxEarnTaxi.cc
ChakreshSinghUC/CPPCodes
d82a3f467303566afbfcc927b660b0f7bf7c0432
[ "MIT" ]
null
null
null
LeetCode/MS Prep/2008_maxEarnTaxi.cc
ChakreshSinghUC/CPPCodes
d82a3f467303566afbfcc927b660b0f7bf7c0432
[ "MIT" ]
null
null
null
LeetCode/MS Prep/2008_maxEarnTaxi.cc
ChakreshSinghUC/CPPCodes
d82a3f467303566afbfcc927b660b0f7bf7c0432
[ "MIT" ]
null
null
null
// https://leetcode.com/problems/maximum-earnings-from-taxi/discuss/1470935/C%2B%2BPython-DP-O(M%2BN)-Clean-and-Concise #include<iostream> #include<set> #include<vector> using namespace std; #define pii pair<int, int> class Solution { public: long long maxTaxiEarnings(int n, vector<vector<int>>& rides) { ...
30.393939
119
0.511466
[ "vector" ]
2a48551d93b797cc2509de75ffcdf7c84712ea57
23,692
cpp
C++
source/edgecollapse.cpp
spockthegray/mantaflow
df72cf235e14ef4f3f8fac9141b5e0a8707406b3
[ "Apache-2.0" ]
158
2018-06-24T17:42:13.000Z
2022-03-12T13:29:43.000Z
source/edgecollapse.cpp
spockthegray/mantaflow
df72cf235e14ef4f3f8fac9141b5e0a8707406b3
[ "Apache-2.0" ]
5
2018-09-05T07:30:48.000Z
2020-07-01T08:56:28.000Z
source/edgecollapse.cpp
spockthegray/mantaflow
df72cf235e14ef4f3f8fac9141b5e0a8707406b3
[ "Apache-2.0" ]
35
2018-06-13T04:05:42.000Z
2022-03-29T16:55:24.000Z
/****************************************************************************** * * MantaFlow fluid solver framework * Copyright 2011 Tobias Pfaff, Nils Thuerey * * This program is free software, distributed under the terms of the * Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 * *...
35.52024
249
0.612992
[ "mesh", "geometry", "vector" ]
2a4cf06cdf800f69fa06d54c4905f9d93ced655c
1,226
cpp
C++
pvio/src/pvio/utility/worker.cpp
vrajur/PVIO
634c023c2d6859dbab4fd47e4ae027e60e47c684
[ "Apache-2.0" ]
244
2020-10-10T07:44:38.000Z
2022-03-05T15:07:47.000Z
pvio/src/pvio/utility/worker.cpp
vrajur/PVIO
634c023c2d6859dbab4fd47e4ae027e60e47c684
[ "Apache-2.0" ]
10
2020-10-10T12:14:42.000Z
2021-07-25T11:12:18.000Z
pvio/src/pvio/utility/worker.cpp
vrajur/PVIO
634c023c2d6859dbab4fd47e4ae027e60e47c684
[ "Apache-2.0" ]
63
2020-10-10T07:44:41.000Z
2022-02-22T07:45:37.000Z
/************************************************************************** * This file is part of PVIO * * Copyright (c) ZJU-SenseTime Joint Lab of 3D Vision. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
32.263158
78
0.598695
[ "3d" ]
2a4df9fef69eb78e78393808c2ed5dc65770aa7f
768
cpp
C++
dataStructure/CAnalyse/src/win/getSubPaths.cpp
Elendeer/homework
b17db0dddc8ce23ce047cb764f759d9ec47f6a8b
[ "MIT" ]
1
2020-10-14T03:45:24.000Z
2020-10-14T03:45:24.000Z
dataStructure/CAnalyse/src/win/getSubPaths.cpp
Elendeer/homework
b17db0dddc8ce23ce047cb764f759d9ec47f6a8b
[ "MIT" ]
null
null
null
dataStructure/CAnalyse/src/win/getSubPaths.cpp
Elendeer/homework
b17db0dddc8ce23ce047cb764f759d9ec47f6a8b
[ "MIT" ]
null
null
null
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(NT) #include "../../inc/AddressParser.hpp" #include <direct.h> #include <io.h> using std::vector; using std::string; vector<string> AddressParser::getSubPaths(string dir_path) { _chdir(dir_path.c_str()); vector<string> paths; _find...
21.942857
76
0.575521
[ "vector" ]
2a52da7c7b8b1c3761981f30e80431a4fc3b4bb8
14,965
cpp
C++
src/emulator.cpp
ttrung149/nes
69d2ba2074a9f1c9d8a64e0e213005e4419bf190
[ "MIT" ]
null
null
null
src/emulator.cpp
ttrung149/nes
69d2ba2074a9f1c9d8a64e0e213005e4419bf190
[ "MIT" ]
null
null
null
src/emulator.cpp
ttrung149/nes
69d2ba2074a9f1c9d8a64e0e213005e4419bf190
[ "MIT" ]
null
null
null
#include "emulator.h" #define OPEN_SANS_FONT_DIR "utils/open-sans.ttf" static const std::chrono::duration<int, std::micro> REFRESH_PERIOD(12000); /* NES resolution */ #define NES_WINDOW_WIDTH 256 #define NES_WINDOW_HEIGHT 240 /* GUI resolution */ #define VIDEO_WIDTH 768 #define VIDEO_HEIGHT 720 /* GUI size (with de...
36.5
89
0.566789
[ "render" ]
2a52fc3cf0a19a7efd06043488553885fadeed69
748
cc
C++
cpp/src/str/canPermutePalindrome.cc
dacozai/algorithm-diary
8ed5e119e4450e92e63276047ef19bbf422c2770
[ "MIT" ]
1
2019-10-17T08:34:55.000Z
2019-10-17T08:34:55.000Z
cpp/src/str/canPermutePalindrome.cc
dacozai/algorithm-diary
8ed5e119e4450e92e63276047ef19bbf422c2770
[ "MIT" ]
1
2020-05-24T08:32:13.000Z
2020-05-24T08:32:13.000Z
cpp/src/str/canPermutePalindrome.cc
dacozai/algorithm-diary
8ed5e119e4450e92e63276047ef19bbf422c2770
[ "MIT" ]
null
null
null
#include "test.h" /** Question no 266 easy Palindrome Permutation * Author : Li-Han, Chen; 陳立瀚 * Date : 3rd, February, 2020 * Source : https://leetcode.com/problems/palindrome-permutation/ * * Implement strStr(). * * Given a string, determine if a permutation of the string could form a palindrome. * */ /*...
21.371429
84
0.564171
[ "vector" ]
2a5a1e79742244b98c5bd570770c94a5ba08bb14
1,075
cpp
C++
R-Recursion/ReplacePi.cpp
riyasingh240601/LearnCPP
5dc75a4d7cd1a1c4519018bc4ef1f54151c0a8ed
[ "MIT" ]
1
2022-03-26T02:34:12.000Z
2022-03-26T02:34:12.000Z
R-Recursion/ReplacePi.cpp
riyasingh240601/LearnCPP
5dc75a4d7cd1a1c4519018bc4ef1f54151c0a8ed
[ "MIT" ]
null
null
null
R-Recursion/ReplacePi.cpp
riyasingh240601/LearnCPP
5dc75a4d7cd1a1c4519018bc4ef1f54151c0a8ed
[ "MIT" ]
null
null
null
//------------------------------------PROBLEM :String Replace PI using Recursion ---------------------------------- #include <bits/stdc++.h> using namespace std; #define ll long long int #define pb push_back #define mp make_pair typedef pair<int, int> pii; typedef pair<ll, ll> pl; typedef vector<int> vi; typedef vect...
17.622951
115
0.544186
[ "vector" ]