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
108
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
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
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
adda7cd4ba0b6c9524cbd404bda33be23d56c6c8
569
cpp
C++
CPP/ch07/fun_ptr.cpp
jerryhanjj/cpp
3efc23951f8a97d18516e8dbd911b3d2547899bd
[ "BSD-3-Clause" ]
null
null
null
CPP/ch07/fun_ptr.cpp
jerryhanjj/cpp
3efc23951f8a97d18516e8dbd911b3d2547899bd
[ "BSD-3-Clause" ]
null
null
null
CPP/ch07/fun_ptr.cpp
jerryhanjj/cpp
3efc23951f8a97d18516e8dbd911b3d2547899bd
[ "BSD-3-Clause" ]
null
null
null
// fun_ptr.cpp -- pointers to functions #include <iostream> using namespace std; double betsy(int lns) { return 0.05*lns; } double pam(int lns) { return 0.03*lns + 0.004*lns*lns; } void estimate(int lines, double(*pf)(int)) { cout << lines << " lines will take.\n"; cout << (*pf)(lines) << " hours\n";...
18.354839
51
0.588752
jerryhanjj
addb4edc94d3327ac204268521cb908980079cfc
3,109
cpp
C++
src/SolARModuleOpengv.cpp
SolarFramework/SolARModuleOpenGV
c02dee04380b45788e6a83433b4327dfc6763036
[ "Apache-2.0" ]
1
2019-12-23T07:48:01.000Z
2019-12-23T07:48:01.000Z
src/SolARModuleOpengv.cpp
SolarFramework/SolARModuleOpenGV
c02dee04380b45788e6a83433b4327dfc6763036
[ "Apache-2.0" ]
null
null
null
src/SolARModuleOpengv.cpp
SolarFramework/SolARModuleOpenGV
c02dee04380b45788e6a83433b4327dfc6763036
[ "Apache-2.0" ]
1
2019-07-24T15:03:48.000Z
2019-07-24T15:03:48.000Z
/** * @copyright Copyright (c) 2015 All Right Reserved, B-com http://www.b-com.com/ * * This file is subject to the B<>Com License. * All other rights reserved. * * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * IMPL...
33.430108
157
0.743326
SolarFramework
addd99c020d0467a20e10392498f1d3aa0c505c3
1,040
cpp
C++
CBallMove.cpp
CongYun2022/Lux
c47526c5b80b83ce5518164158f3702fa765bf9a
[ "MIT" ]
1
2022-03-31T03:23:06.000Z
2022-03-31T03:23:06.000Z
CBallMove.cpp
CongYun2022/Lux
c47526c5b80b83ce5518164158f3702fa765bf9a
[ "MIT" ]
null
null
null
CBallMove.cpp
CongYun2022/Lux
c47526c5b80b83ce5518164158f3702fa765bf9a
[ "MIT" ]
null
null
null
#include "CBallMove.h" #include "AActor.h" #include "Game.h" #include "SPhys.h" #include "ATarget.h" #include "ABall.h" CBallMove::CBallMove(AActor* owner) :CMove(owner) { } void CBallMove::Update(float deltaTime) { // Construct segment in direction of travel const float segmentLength = 30.0f; Vector3 start = mOw...
23.636364
58
0.698077
CongYun2022
adddfd9956228d0f36b42de398233e6c2f5bdd54
51,210
cpp
C++
src/unit_test/opt_tpl_jega_test.cpp
jnnccc/Dakota-orb
96488e723be9c67f0f85be8162b7af52c312b770
[ "MIT" ]
null
null
null
src/unit_test/opt_tpl_jega_test.cpp
jnnccc/Dakota-orb
96488e723be9c67f0f85be8162b7af52c312b770
[ "MIT" ]
null
null
null
src/unit_test/opt_tpl_jega_test.cpp
jnnccc/Dakota-orb
96488e723be9c67f0f85be8162b7af52c312b770
[ "MIT" ]
null
null
null
#include "APPSOptimizer.hpp" #include "opt_tpl_test.hpp" #include <string> #include <map> #include <Teuchos_UnitTestHarness.hpp> using namespace Dakota; //---------------------------------------------------------------- TEUCHOS_UNIT_TEST(opt_soga,cyl_head_1) { /// Default Dakota input string: static const ...
29.030612
92
0.63015
jnnccc
ade034b80ff7c8600becddcf94f66fb44c9ac63a
211
cpp
C++
ZER0/001.cpp
applevinc/Project-Euler
2755a00df43e65b99b964587e29621cc8ebcc50a
[ "MIT" ]
null
null
null
ZER0/001.cpp
applevinc/Project-Euler
2755a00df43e65b99b964587e29621cc8ebcc50a
[ "MIT" ]
null
null
null
ZER0/001.cpp
applevinc/Project-Euler
2755a00df43e65b99b964587e29621cc8ebcc50a
[ "MIT" ]
1
2021-03-17T07:19:55.000Z
2021-03-17T07:19:55.000Z
#include <iostream> using namespace std; int main() { int max = 1000; int sum = 0; for(int i = 1; i < max; ++i) { if((i % 3 == 0) || (i % 5 == 0)) { sum += i; } } cout << sum << endl; // 233168 }
13.1875
36
0.464455
applevinc
ade0c861cfebf9a6dee4a727cd28adb1519b6682
21,970
cpp
C++
tiledlighting11/src/RSMRenderer.cpp
isabella232/TiledLighting11
8ee93c04f28bc731e823b4f47a45655664ee514f
[ "MIT" ]
69
2016-01-26T13:48:35.000Z
2022-01-13T10:38:03.000Z
tiledlighting11/src/RSMRenderer.cpp
GPUOpen-LibrariesAndSDKs/TiledLighting11
8ee93c04f28bc731e823b4f47a45655664ee514f
[ "MIT" ]
1
2021-04-03T09:49:17.000Z
2021-04-03T09:49:17.000Z
tiledlighting11/src/RSMRenderer.cpp
isabella232/TiledLighting11
8ee93c04f28bc731e823b4f47a45655664ee514f
[ "MIT" ]
18
2016-01-27T01:45:24.000Z
2021-04-03T09:49:01.000Z
// // Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved. // // 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 rig...
43.94
196
0.653163
isabella232
ade3e324f2c80185851a9218ee64532498dd4622
16,643
cpp
C++
src/GCNDenoiser/GCNDenoiser/PatchData.cpp
ZJUGAPS-YYGroup/GCN-Denoiser
5d3ee62fdbf8bf56f5399c1717d4d7176924f809
[ "MIT" ]
15
2021-08-15T13:13:26.000Z
2022-03-22T13:02:46.000Z
src/GCNDenoiser/GCNDenoiser/PatchData.cpp
ZJUGAPS-YYGroup/GCN-Denoiser
5d3ee62fdbf8bf56f5399c1717d4d7176924f809
[ "MIT" ]
1
2021-10-20T02:34:58.000Z
2021-10-20T02:34:58.000Z
src/GCNDenoiser/GCNDenoiser/PatchData.cpp
ZJUGAPS-YYGroup/GCN-Denoiser
5d3ee62fdbf8bf56f5399c1717d4d7176924f809
[ "MIT" ]
4
2021-08-06T01:37:56.000Z
2022-01-20T06:54:58.000Z
#include "PatchData.h" #include <Eigen/Core> #include <Eigen/Eigenvalues> #include <set> PatchData::PatchData(TriMesh &mesh, std::vector<std::vector<TriMesh::FaceHandle>> &all_face_neighbor, std::vector<double> &face_area, std::vector<TriMesh::Point> &face_centroid, TriMesh::FaceIter &iter_face, shen::Geometry::Eas...
34.890985
178
0.681007
ZJUGAPS-YYGroup
ade6dcdc8a8b9adff82ce67fe2723e0ea74b4918
8,073
cpp
C++
src/turtlebot2_src/src/orocos-bayesian-filtering/orocos_bfl/src/filter/SRiteratedextendedkalmanfilter.cpp
alexoterno/turtlebot2_with_head
ac714f77379dd0f47ddb76d83896fdabee269a03
[ "MIT" ]
null
null
null
src/turtlebot2_src/src/orocos-bayesian-filtering/orocos_bfl/src/filter/SRiteratedextendedkalmanfilter.cpp
alexoterno/turtlebot2_with_head
ac714f77379dd0f47ddb76d83896fdabee269a03
[ "MIT" ]
null
null
null
src/turtlebot2_src/src/orocos-bayesian-filtering/orocos_bfl/src/filter/SRiteratedextendedkalmanfilter.cpp
alexoterno/turtlebot2_with_head
ac714f77379dd0f47ddb76d83896fdabee269a03
[ "MIT" ]
null
null
null
// $Id$ // Copyright (C) 2003 Klaas Gadeyne <first dot last at gmail dot com> // Peter Slaets <peter dot slaets at mech dot kuleuven dot ac dot be> // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published b...
34.648069
210
0.689954
alexoterno
ade7bc572d3c09f6e5a9747e8496e662b92b87ff
809
cpp
C++
codes/Leetcode/leetcode151.cpp
JeraKrs/ACM
edcd61ec6764b8cd804bf1538dfde53d0ff572b5
[ "Apache-2.0" ]
null
null
null
codes/Leetcode/leetcode151.cpp
JeraKrs/ACM
edcd61ec6764b8cd804bf1538dfde53d0ff572b5
[ "Apache-2.0" ]
null
null
null
codes/Leetcode/leetcode151.cpp
JeraKrs/ACM
edcd61ec6764b8cd804bf1538dfde53d0ff572b5
[ "Apache-2.0" ]
null
null
null
class Solution { public: string reverseWords(string s) { string ans; int r = -1; bool first = true; for (int i = s.size() - 1; i >= 0; --i) { if (s[i] != ' ') { if (r != -1) { continue; } else { r = i...
23.794118
50
0.233622
JeraKrs
ade7daa0fef00142aa8c176b6719febf444e2f9a
3,502
cpp
C++
AI/Common/misc/iniFileLoaderBase.cpp
martinkro/gamedevelop-ai
78815089b96dff11e50a0ffb1880320acd22b109
[ "MIT" ]
null
null
null
AI/Common/misc/iniFileLoaderBase.cpp
martinkro/gamedevelop-ai
78815089b96dff11e50a0ffb1880320acd22b109
[ "MIT" ]
null
null
null
AI/Common/misc/iniFileLoaderBase.cpp
martinkro/gamedevelop-ai
78815089b96dff11e50a0ffb1880320acd22b109
[ "MIT" ]
null
null
null
#include "misc/iniFileLoaderBase.h" using std::string; //removes any commenting from a line of text void RemoveCommentingFromLine(string& line) { //search for any comment and remove string::size_type idx = line.find('//'); if (idx != string::npos) { //cut out the comment line = lin...
25.194245
80
0.564535
martinkro
ade9191978ed1d32e8f4f6dc32f5939eaaa99b16
260
cpp
C++
src/UnsignedVariable.cpp
andremmvgabriel/boolean_circuit_generator
21a36e04072b4ce388b22992d3ca35643b967fc9
[ "MIT" ]
1
2021-09-03T14:03:28.000Z
2021-09-03T14:03:28.000Z
src/UnsignedVariable.cpp
andremmvgabriel/boolean_circuit_generator
21a36e04072b4ce388b22992d3ca35643b967fc9
[ "MIT" ]
null
null
null
src/UnsignedVariable.cpp
andremmvgabriel/boolean_circuit_generator
21a36e04072b4ce388b22992d3ca35643b967fc9
[ "MIT" ]
null
null
null
#include <UnsignedVariable.hpp> gabe::circuits::UnsignedVariable::UnsignedVariable() : Variable() {} gabe::circuits::UnsignedVariable::UnsignedVariable(uint8_t number_bits) : Variable(number_bits) {} gabe::circuits::UnsignedVariable::~UnsignedVariable() {}
32.5
98
0.780769
andremmvgabriel
adec650c8fb682f6d9ffa560ff5813eb78c86585
9,455
cpp
C++
DFRobot_VL6180X.cpp
DFRobot/DFRobot_VL6180X
735b5a5d94fc210c659b7cb978320e7847fc54e8
[ "MIT" ]
null
null
null
DFRobot_VL6180X.cpp
DFRobot/DFRobot_VL6180X
735b5a5d94fc210c659b7cb978320e7847fc54e8
[ "MIT" ]
null
null
null
DFRobot_VL6180X.cpp
DFRobot/DFRobot_VL6180X
735b5a5d94fc210c659b7cb978320e7847fc54e8
[ "MIT" ]
null
null
null
/*! * @file DFRobot_VL6180X.cpp * @brief Implementation of DFRobot_VL6180X class * @copyright Copyright (c) 2010 DFRobot Co.Ltd (http://www.dfrobot.com) * @SKU SEN0427 * @licence The MIT License (MIT) * @author [yangfeng]<feng.yang@dfrobot.com> * @version V1.0 * @date 2021-02-08 * @url https://github.com/DFRo...
25.833333
100
0.734109
DFRobot
adedbef5f36d506a3ec8d3a81161210cbd91e21c
906
cpp
C++
AIC/AIC'20 - Level 1 Training Contests/Contest #6 (Online)/I.cpp
MaGnsio/CP-Problems
a7f518a20ba470f554b6d54a414b84043bf209c5
[ "Unlicense" ]
3
2020-11-01T06:31:30.000Z
2022-02-21T20:37:51.000Z
AIC/AIC'20 - Level 1 Training Contests/Contest #6 (Online)/I.cpp
MaGnsio/CP-Problems
a7f518a20ba470f554b6d54a414b84043bf209c5
[ "Unlicense" ]
null
null
null
AIC/AIC'20 - Level 1 Training Contests/Contest #6 (Online)/I.cpp
MaGnsio/CP-Problems
a7f518a20ba470f554b6d54a414b84043bf209c5
[ "Unlicense" ]
1
2021-05-05T18:56:31.000Z
2021-05-05T18:56:31.000Z
//https://codeforces.com/group/aDFQm4ed6d/contest/274872/problem/I #include <bits/stdc++.h> using namespace std; #define F first #define S second typedef long long ll; typedef long double ld; ll mod = 1e9 + 7; ll chk (string s, string w) { ll cnt = 0; for (ll i = 0; i < s.size (); ++i) { if (w[i] ...
22.097561
66
0.470199
MaGnsio
adedc64f5ab71d7857a6679c343c65325f95d598
3,750
cpp
C++
IDAArchitecture.cpp
fjqisba/E-Decompiler
f598c4205d8b9e4d29172dab0bb2672c75e48af9
[ "MIT" ]
74
2021-03-04T08:12:43.000Z
2022-03-14T13:50:20.000Z
IDAArchitecture.cpp
fjqisba/E-Decompiler
f598c4205d8b9e4d29172dab0bb2672c75e48af9
[ "MIT" ]
10
2021-03-05T09:52:10.000Z
2021-07-05T13:48:33.000Z
IDAArchitecture.cpp
fjqisba/E-Decompiler
f598c4205d8b9e4d29172dab0bb2672c75e48af9
[ "MIT" ]
15
2021-04-06T14:22:39.000Z
2022-03-29T13:14:47.000Z
#include "IDAArchitecture.h" #include "IDALoader.h" #include "IDATypeManager.h" #include "IDAScope.h" #include "EazyAction.h" IDAArchitecture::IDAArchitecture(const string& targ): SleighArchitecture("ida", targ, &m_err), m_ScanAction(Action::rule_onceperfunc, "ESCAN") { } IDAArchitecture::~IDAArchit...
27.573529
108
0.697067
fjqisba
adee9a8d0d591a8f45dde7d668002114f1da1aaa
284
cpp
C++
leetcode/169_Majority-Element/MajorityElement.cpp
chasingegg/Online_Judge
8a3f4b5b207cbeda921c743a527a25bf9c7b6248
[ "MIT" ]
1
2017-10-13T10:34:46.000Z
2017-10-13T10:34:46.000Z
leetcode/169_Majority-Element/MajorityElement.cpp
chasingegg/Online_Judge
8a3f4b5b207cbeda921c743a527a25bf9c7b6248
[ "MIT" ]
null
null
null
leetcode/169_Majority-Element/MajorityElement.cpp
chasingegg/Online_Judge
8a3f4b5b207cbeda921c743a527a25bf9c7b6248
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <algorithm> using namespace std; class Solution { public: int majorityElement(vector<int>& nums) { int n = nums.size(); if (n <= 0) return 0; sort(nums.begin(), nums.end()); return nums[n/2]; } };
20.285714
44
0.584507
chasingegg
adf2a37e040ea7f2c98f09eb81ae8fe985069be4
607
hpp
C++
packages/motionPlanning/include/int/cAllActions.hpp
Falcons-Robocup/code
2281a8569e7f11cbd3238b7cc7341c09e2e16249
[ "Apache-2.0" ]
2
2021-01-15T13:27:19.000Z
2021-08-04T08:40:52.000Z
packages/motionPlanning/include/int/cAllActions.hpp
Falcons-Robocup/code
2281a8569e7f11cbd3238b7cc7341c09e2e16249
[ "Apache-2.0" ]
null
null
null
packages/motionPlanning/include/int/cAllActions.hpp
Falcons-Robocup/code
2281a8569e7f11cbd3238b7cc7341c09e2e16249
[ "Apache-2.0" ]
5
2018-05-01T10:39:31.000Z
2022-03-25T03:02:35.000Z
// Copyright 2017-2020 Jan Feitsma (Falcons) // SPDX-License-Identifier: Apache-2.0 /* * cAllActions.hpp * * Created on: Nov 18, 2017 * Author: Jan Feitsma */ #ifndef CALLACTIONS_HPP_ #define CALLACTIONS_HPP_ #include "MP_AbstractAction.hpp" #include "MP_ActionGetBall.hpp" #include "MP_ActionKeeperMove.hpp...
23.346154
44
0.772652
Falcons-Robocup
adf7ad8f5d45cefc5eca2088a2d0c763e52f8531
511
cpp
C++
Examples/BCB/GlobalTestLibrary/Src/JsonVclUtils.cpp
alexzhornyak/UscxmlCLib
3f763db4f7b8061309593a97c238bf2801984a66
[ "BSD-3-Clause" ]
1
2020-04-05T19:21:08.000Z
2020-04-05T19:21:08.000Z
Examples/BCB/GlobalTestLibrary/Src/JsonVclUtils.cpp
alexzhornyak/UscxmlCLib
3f763db4f7b8061309593a97c238bf2801984a66
[ "BSD-3-Clause" ]
null
null
null
Examples/BCB/GlobalTestLibrary/Src/JsonVclUtils.cpp
alexzhornyak/UscxmlCLib
3f763db4f7b8061309593a97c238bf2801984a66
[ "BSD-3-Clause" ]
1
2021-04-13T16:04:42.000Z
2021-04-13T16:04:42.000Z
//--------------------------------------------------------------------------- #include <vcl.h> #pragma hdrstop #include "JsonVclUtils.h" #include <boost/regex.hpp> //--------------------------------------------------------------------------- #pragma package(smart_init) namespace Jsonutils { const UnicodeString J...
24.333333
81
0.457926
alexzhornyak
adf8519c529cbcbfd26024ff22c1e7aa5dca5b67
229
cpp
C++
Misc/[Siruri] Numarul maxim/main.cpp
Al3x76/cpp
08a0977d777e63e0d36d87fcdea777de154697b7
[ "MIT" ]
7
2019-01-06T19:10:14.000Z
2021-10-16T06:41:23.000Z
Misc/[Siruri] Numarul maxim/main.cpp
Al3x76/cpp
08a0977d777e63e0d36d87fcdea777de154697b7
[ "MIT" ]
null
null
null
Misc/[Siruri] Numarul maxim/main.cpp
Al3x76/cpp
08a0977d777e63e0d36d87fcdea777de154697b7
[ "MIT" ]
6
2019-01-06T19:17:30.000Z
2020-02-12T22:29:17.000Z
#include <iostream> using namespace std; int main(){ int n, x, prec=0, maxim; cin>>n; for(int i=1; i<=n; i++){ cin>>x; prec=x; if(x>prec) maxim=x; } cout<<maxim; return 0; }
13.470588
28
0.467249
Al3x76
adfb38cf3bef51869e9be95a1a2836145971bcae
7,604
cpp
C++
src/ivorium_systems/ConfigFileSystem/ConfigFileSystem.cpp
ivorne/ivorium
1d876b6dcabe29b3110d3058f997e59c40cd6a2b
[ "Apache-2.0" ]
3
2021-02-26T02:59:09.000Z
2022-02-08T16:44:21.000Z
src/ivorium_systems/ConfigFileSystem/ConfigFileSystem.cpp
ivorne/ivorium
1d876b6dcabe29b3110d3058f997e59c40cd6a2b
[ "Apache-2.0" ]
null
null
null
src/ivorium_systems/ConfigFileSystem/ConfigFileSystem.cpp
ivorne/ivorium
1d876b6dcabe29b3110d3058f997e59c40cd6a2b
[ "Apache-2.0" ]
null
null
null
#include "ConfigFileSystem.hpp" #include <fstream> namespace iv { //================================================================================ //--------------------- ConfigStream --------------------------------------------- ConfigStream::ConfigStream( Instance * inst, std::string const & name ) : cm( inst...
28.162963
141
0.574435
ivorne
adfb822edf4fa1eac7d4551f00d69add0e3675c5
970
hpp
C++
am/linear/mat4x4.hpp
komiga/am
4ce4cc5539c3fd5b1ff1ccf5bf843e6c484e94aa
[ "MIT" ]
1
2015-01-16T18:56:01.000Z
2015-01-16T18:56:01.000Z
am/linear/mat4x4.hpp
komiga/am
4ce4cc5539c3fd5b1ff1ccf5bf843e6c484e94aa
[ "MIT" ]
null
null
null
am/linear/mat4x4.hpp
komiga/am
4ce4cc5539c3fd5b1ff1ccf5bf843e6c484e94aa
[ "MIT" ]
null
null
null
/** @copyright MIT license; see @ref index or the accompanying LICENSE file. @file @brief 4x4 matrix. */ #pragma once #include "../config.hpp" #include "../arithmetic_types.hpp" #include "../detail/linear/tmat4x4.hpp" #include "./vec4.hpp" #ifdef AM_CONFIG_IMPLICIT_LINEAR_INTERFACE #include "../detail/linear/tmat4...
16.724138
72
0.68866
komiga
bc01cfa4c8790ef8a3802b77cb8bbc7c20471def
4,158
cpp
C++
lib/src/parser/parser.cpp
Corralx/leviathan
508e1108cd5351760146ac8374154b2ba09113db
[ "BSD-3-Clause" ]
8
2015-07-29T16:15:37.000Z
2020-02-28T23:21:19.000Z
lib/src/parser/parser.cpp
teodorov/leviathan
508e1108cd5351760146ac8374154b2ba09113db
[ "BSD-3-Clause" ]
2
2021-02-04T15:48:56.000Z
2021-02-08T10:47:17.000Z
lib/src/parser/parser.cpp
teodorov/leviathan
508e1108cd5351760146ac8374154b2ba09113db
[ "BSD-3-Clause" ]
4
2017-03-15T02:58:30.000Z
2021-12-10T10:18:14.000Z
/* Copyright (c) 2014, Nicola Gigante All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
23.625
78
0.663059
Corralx
bc049bfe1115aa354b386bdb6e68760ed8f1d689
1,685
hpp
C++
System/pthread/pthread7/pthread.hpp
Mr-Hunter/Linux
dc222abe4e961a65282d7bc8ac6a301657386ddc
[ "Apache-2.0" ]
2
2018-10-30T08:06:57.000Z
2019-12-12T03:05:58.000Z
System/pthread/pthread7/pthread.hpp
Mr-Hunter/Linux
dc222abe4e961a65282d7bc8ac6a301657386ddc
[ "Apache-2.0" ]
null
null
null
System/pthread/pthread7/pthread.hpp
Mr-Hunter/Linux
dc222abe4e961a65282d7bc8ac6a301657386ddc
[ "Apache-2.0" ]
null
null
null
#ifndef __HPP_H__ #define __HPP_H__ #include <iostream> #include <pthread.h> #include <unistd.h> #include <queue> #include <time.h> using namespace std; class BlockQueue { private: queue<int> bq; int _cap; pthread_mutex_t mutex; pthread_cond_t p_cond;//empty pthread_cond_t c_cond;//full...
14.911504
46
0.550742
Mr-Hunter
bc05c2502489e30096ac1c7102b38123da2b2c2d
6,041
hpp
C++
src/include/cpputils/functional/opt_ext.hpp
alessandro90/cpputils
45ebd28be73cabc3a38f09cfc08779f72f518772
[ "MIT" ]
null
null
null
src/include/cpputils/functional/opt_ext.hpp
alessandro90/cpputils
45ebd28be73cabc3a38f09cfc08779f72f518772
[ "MIT" ]
3
2022-02-26T23:37:11.000Z
2022-03-13T17:48:03.000Z
src/include/cpputils/functional/opt_ext.hpp
alessandro90/cpputils
45ebd28be73cabc3a38f09cfc08779f72f518772
[ "MIT" ]
null
null
null
#ifndef CPPUTILS_OPTIONAL_EXTENSION_HPP #define CPPUTILS_OPTIONAL_EXTENSION_HPP #include "../traits/cpputils_concepts.hpp" #include "../traits/is_specialization_of.hpp" // #include "expected.hpp" #include <functional> #include <optional> #include <type_traits> #include <utility> // Utility macros. #undef'd at end of ...
37.521739
213
0.609833
alessandro90
bc082583b0cd0d18a932f76b12d96f220283d934
202
cxx
C++
tests/template_type/references/global.cxx
UltimateScript/FOG
edc96d916fc299f0a822f8c534a4e7487c0e3ea2
[ "BSD-3-Clause" ]
null
null
null
tests/template_type/references/global.cxx
UltimateScript/FOG
edc96d916fc299f0a822f8c534a4e7487c0e3ea2
[ "BSD-3-Clause" ]
2
2021-07-07T17:31:49.000Z
2021-07-16T11:40:38.000Z
tests/template_type/references/global.cxx
OuluLinux/FOG
edc96d916fc299f0a822f8c534a4e7487c0e3ea2
[ "BSD-3-Clause" ]
null
null
null
#ifndef GLOBAL_CXX #define GLOBAL_CXX #ifndef GLOBAL_HXX #include <global.hxx> #endif A < b < c, (d > e) > f2 = 0; A < A < c, d > , e > f3 = 0; A < g > f4 = 0; A < A < c, d > (e), g > f5 = 0; #endif
14.428571
31
0.514851
UltimateScript
bc08d75474efba4671bec10379b984c8b307f2cc
1,731
cpp
C++
src/boxRemoveDuplicates.cpp
Sensenzhl/RCNN-NVDLA
e6b8a7ef2af061676d406d2f51dcd1ab809b5a1d
[ "Vim" ]
5
2019-06-26T07:50:43.000Z
2021-12-17T08:52:39.000Z
src/boxRemoveDuplicates.cpp
Sensenzhl/RCNN-NVDLA
e6b8a7ef2af061676d406d2f51dcd1ab809b5a1d
[ "Vim" ]
1
2019-11-28T06:57:49.000Z
2019-11-28T06:57:49.000Z
src/boxRemoveDuplicates.cpp
Sensenzhl/RCNN-NVDLA
e6b8a7ef2af061676d406d2f51dcd1ab809b5a1d
[ "Vim" ]
1
2020-05-27T06:11:17.000Z
2020-05-27T06:11:17.000Z
#include "defines.hpp" #include "boxRemoveDuplicates.hpp" //using namespace cv; //using namespace std; CvMat *BoxRemoveDuplicates(CvMat *boxes) { int length_index_reserved = boxes->rows; int * index_reserved = new int[length_index_reserved]; int offset = 0; float * ptr; float * ptr_out; int flag_exist =...
26.630769
141
0.623339
Sensenzhl
bc0910a21ad39e38dde3c63025bc68e1cb2011fd
987
cpp
C++
test/cut/FilterTest.cpp
liyongshun/cut
9be179526a2376bcba7593b7d4604e47d943d71d
[ "MIT" ]
1
2021-01-06T11:17:43.000Z
2021-01-06T11:17:43.000Z
test/cut/FilterTest.cpp
liyongshun/cut
9be179526a2376bcba7593b7d4604e47d943d71d
[ "MIT" ]
null
null
null
test/cut/FilterTest.cpp
liyongshun/cut
9be179526a2376bcba7593b7d4604e47d943d71d
[ "MIT" ]
null
null
null
#include <cut/cut.hpp> #include <cut/startup/TestOptions.h> #include <regex> #include <cpo/core/Args.h> USING_CUT_NS USING_CUM_NS USING_CUB_NS FIXTURE(FilterTest) { TestOptions &options = RUNTIME(TestOptions); TEARDOWN() { options.clear(); } template <typename Asserter> void given_options_then(const std...
20.142857
83
0.597771
liyongshun
bc098db418b1564c0282e6249dec4817a3fe3f81
888
cpp
C++
Deitel/Chapter08/examples/8.12/fig08_12.cpp
SebastianTirado/Cpp-Learning-Archive
fb83379d0cc3f9b2390cef00119464ec946753f4
[ "MIT" ]
19
2019-09-15T12:23:51.000Z
2020-06-18T08:31:26.000Z
Deitel/Chapter08/examples/8.12/fig08_12.cpp
eirichan/CppLearingArchive
07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac
[ "MIT" ]
15
2021-12-07T06:46:03.000Z
2022-01-31T07:55:32.000Z
Deitel/Chapter08/examples/8.12/fig08_12.cpp
eirichan/CppLearingArchive
07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac
[ "MIT" ]
13
2019-06-29T02:58:27.000Z
2020-05-07T08:52:22.000Z
/* * ===================================================================================== * * Filename: * * Description: * * Version: 1.0 * Created: Thanks to github you know it * Revision: none * Compiler: g++ * * Author: Mahmut Erdem ÖZGEN m.erdemozgen...
25.371429
88
0.45045
SebastianTirado
bc0f2f780330a7bc43f01b9a735fb1400d4abbb4
554
hpp
C++
legacy/include/distconv/tensor/algorithms/reduce_sum.hpp
benson31/DiHydrogen
f12d1e0281ae58e40eadf98b3e2209208c82f5e2
[ "ECL-2.0", "Apache-2.0" ]
3
2020-01-06T17:26:58.000Z
2021-12-11T01:17:43.000Z
legacy/include/distconv/tensor/algorithms/reduce_sum.hpp
benson31/DiHydrogen
f12d1e0281ae58e40eadf98b3e2209208c82f5e2
[ "ECL-2.0", "Apache-2.0" ]
7
2020-02-26T06:07:42.000Z
2022-02-15T22:51:36.000Z
legacy/include/distconv/tensor/algorithms/reduce_sum.hpp
benson31/DiHydrogen
f12d1e0281ae58e40eadf98b3e2209208c82f5e2
[ "ECL-2.0", "Apache-2.0" ]
6
2020-01-06T18:08:42.000Z
2021-07-26T14:53:07.000Z
#pragma once #include "distconv/tensor/tensor.hpp" #include "distconv/tensor/algorithms/common.hpp" #include <type_traits> namespace distconv { namespace tensor { namespace algorithms { } // namespace algorithms template <typename DataType, typename Locale, typename Allocator> typename std::enable_if< std::is_s...
20.518519
65
0.736462
benson31
bc0f6eb49fc250b6f230f52978faa79ae4252db4
2,280
cpp
C++
core/src/system/KeyMovement.cpp
Floriantoine/MyHunter_Sfml
8744e1b03d9d5fb621f9cba7619d9d5dd943e428
[ "MIT" ]
null
null
null
core/src/system/KeyMovement.cpp
Floriantoine/MyHunter_Sfml
8744e1b03d9d5fb621f9cba7619d9d5dd943e428
[ "MIT" ]
null
null
null
core/src/system/KeyMovement.cpp
Floriantoine/MyHunter_Sfml
8744e1b03d9d5fb621f9cba7619d9d5dd943e428
[ "MIT" ]
null
null
null
#include "system/KeyMovement.hpp" #include "Game.hpp" #include "components/Direction.hpp" #include "components/KeyMovement.hpp" #include "observer/ObserverManager.hpp" namespace systems { KeyMovement::KeyMovement() : ASystem() { _observers = Observer{ [&](KeyPressed const &event) { this->_dire...
33.529412
76
0.551754
Floriantoine
bc113f70fc9dadf23060b650737a60d952be1727
37,512
cpp
C++
packages/pathPlanning/tst/pathPlanningTest.cpp
Falcons-Robocup/code
2281a8569e7f11cbd3238b7cc7341c09e2e16249
[ "Apache-2.0" ]
2
2021-01-15T13:27:19.000Z
2021-08-04T08:40:52.000Z
packages/pathPlanning/tst/pathPlanningTest.cpp
Falcons-Robocup/code
2281a8569e7f11cbd3238b7cc7341c09e2e16249
[ "Apache-2.0" ]
null
null
null
packages/pathPlanning/tst/pathPlanningTest.cpp
Falcons-Robocup/code
2281a8569e7f11cbd3238b7cc7341c09e2e16249
[ "Apache-2.0" ]
5
2018-05-01T10:39:31.000Z
2022-03-25T03:02:35.000Z
// Copyright 2019-2020 Jan Feitsma (Falcons) // SPDX-License-Identifier: Apache-2.0 /* * pathPlanningTest.cpp * * Created on: July 2019 * Author: Jan Feitsma */ // Include testframework #include "gtest/gtest.h" #include "gmock/gmock.h" using namespace ::testing; #include <memory> #include <boost/algorithm...
36.776471
204
0.662055
Falcons-Robocup
bc121a8c51cfb10999b18e72a7cb9a115a7a81e3
2,118
cpp
C++
tc 160+/FoxMakingDiceEasy.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
3
2015-05-25T06:24:37.000Z
2016-09-10T07:58:00.000Z
tc 160+/FoxMakingDiceEasy.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
null
null
null
tc 160+/FoxMakingDiceEasy.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
5
2015-05-25T06:24:40.000Z
2021-08-19T19:22:29.000Z
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; class FoxMakingDiceEasy { public: int theCount(int N, int K) { if (N < 6) { return 0; } int sol ...
37.157895
309
0.550047
ibudiselic
bc17a03ea329fa5c5f1edbecb8784fa46aa8de3f
658
cpp
C++
src/cpp/connections.cpp
MayaPosch/NymphMQTT
10707ba763606424ab2b81e310cb53a38fa66687
[ "BSD-3-Clause" ]
14
2019-11-15T18:19:35.000Z
2022-02-03T12:09:14.000Z
src/cpp/connections.cpp
MayaPosch/NymphMQTT
10707ba763606424ab2b81e310cb53a38fa66687
[ "BSD-3-Clause" ]
null
null
null
src/cpp/connections.cpp
MayaPosch/NymphMQTT
10707ba763606424ab2b81e310cb53a38fa66687
[ "BSD-3-Clause" ]
1
2020-03-20T22:45:14.000Z
2020-03-20T22:45:14.000Z
/* connections.cpp - Impplementation of the NymphMQTT Connections class. Revision 0 Features: - Static class to enable the global management of connections. Notes: - 2019/05/08 - Maya Posch */ #include "connections.h" // Static declarations. std::map<int, NymphSocket> NmqttConnections::socke...
17.315789
70
0.68845
MayaPosch
bc1c952462638c5e08bf9709092f5b97013ed20f
7,093
cpp
C++
src/OpcUaStackCore/Certificate/CryptoHMAC_SHA.cpp
gianricardo/OpcUaStack
ccdef574175ffe8b7e82b886abc5e5403968b280
[ "Apache-2.0" ]
108
2018-10-08T17:03:32.000Z
2022-03-21T00:52:26.000Z
src/OpcUaStackCore/Certificate/CryptoHMAC_SHA.cpp
gianricardo/OpcUaStack
ccdef574175ffe8b7e82b886abc5e5403968b280
[ "Apache-2.0" ]
287
2018-09-18T14:59:12.000Z
2022-01-13T12:28:23.000Z
src/OpcUaStackCore/Certificate/CryptoHMAC_SHA.cpp
gianricardo/OpcUaStack
ccdef574175ffe8b7e82b886abc5e5403968b280
[ "Apache-2.0" ]
32
2018-10-19T14:35:03.000Z
2021-11-12T09:36:46.000Z
/* Copyright 2018 Kai Huebl (kai@huebl-sgh.de) Lizenziert gemäß Apache Licence Version 2.0 (die „Lizenz“); Nutzung dieser Datei nur in Übereinstimmung mit der Lizenz erlaubt. Eine Kopie der Lizenz erhalten Sie auf http://www.apache.org/licenses/LICENSE-2.0. Sofern nicht gemäß geltendem Recht vorgeschri...
24.714286
86
0.648245
gianricardo
bc21d56409c7cdff18a8fabaf266472463bc4091
655
cpp
C++
luogu/1151.cpp
swwind/code
25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0
[ "WTFPL" ]
3
2017-09-17T09:12:50.000Z
2018-04-06T01:18:17.000Z
luogu/1151.cpp
swwind/code
25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0
[ "WTFPL" ]
null
null
null
luogu/1151.cpp
swwind/code
25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0
[ "WTFPL" ]
null
null
null
#include <bits/stdc++.h> #define N 100020 #define ll long long using namespace std; inline int read(){ int x=0,f=1;char ch=getchar(); while(ch>'9'||ch<'0')ch=='-'&&(f=0)||(ch=getchar()); while(ch<='9'&&ch>='0')x=(x<<3)+(x<<1)+ch-'0',ch=getchar(); return f?x:-x; } int main(int argc, char const *argv[]) { int s = re...
27.291667
60
0.505344
swwind
bc2837476c23d9e0b39b50e66926d4c8fe397a58
2,256
cpp
C++
src/Common/ArgParser.cpp
baisai/LightInkLLM
7f984bf5f3afa3ccfc2c04e8d41948cf3a9bb4b2
[ "MIT" ]
1
2017-11-16T16:29:01.000Z
2017-11-16T16:29:01.000Z
src/Common/ArgParser.cpp
baisai/LightInkLLM
7f984bf5f3afa3ccfc2c04e8d41948cf3a9bb4b2
[ "MIT" ]
null
null
null
src/Common/ArgParser.cpp
baisai/LightInkLLM
7f984bf5f3afa3ccfc2c04e8d41948cf3a9bb4b2
[ "MIT" ]
1
2018-12-29T06:51:42.000Z
2018-12-29T06:51:42.000Z
/* Copyright ChenDong(Wilbur), email <baisaichen@live.com>. All rights reserved. * * 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...
25.931034
111
0.664894
baisai
bc2c2324e4bbdeef3224ca5055cf480d4efa879f
5,969
cpp
C++
runtime/structseq-builtins.cpp
creativemindplus/skybison
d1740e08d8de85a0a56b650675717da67de171a0
[ "CNRI-Python-GPL-Compatible" ]
278
2021-08-31T00:46:51.000Z
2022-02-13T19:43:28.000Z
runtime/structseq-builtins.cpp
creativemindplus/skybison
d1740e08d8de85a0a56b650675717da67de171a0
[ "CNRI-Python-GPL-Compatible" ]
9
2021-11-05T22:28:43.000Z
2021-11-23T08:39:04.000Z
runtime/structseq-builtins.cpp
tekknolagi/skybison
bea8fc2af0a70e7203b4c19f36c14a745512a335
[ "CNRI-Python-GPL-Compatible" ]
12
2021-08-31T07:49:54.000Z
2021-10-08T01:09:01.000Z
// Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com) #include "structseq-builtins.h" #include "dict-builtins.h" #include "module-builtins.h" #include "runtime.h" #include "str-builtins.h" #include "type-builtins.h" namespace py { static const word kUserTupleFields = UserTupleBase::kSize / kP...
39.269737
79
0.689395
creativemindplus
bc2dcf4a13ef322da40e560250acb2eeb14a86fe
669
hpp
C++
assets/Logic/Effects/TurbulenceWobble.hpp
egomeh/floaty-boaty-go-go
a011db6f1f8712bf3caa85becc1fd83ac5bf1996
[ "MIT" ]
2
2018-01-12T10:26:07.000Z
2018-02-02T19:03:00.000Z
assets/Logic/Effects/TurbulenceWobble.hpp
egomeh/floaty-boaty-go-go
a011db6f1f8712bf3caa85becc1fd83ac5bf1996
[ "MIT" ]
null
null
null
assets/Logic/Effects/TurbulenceWobble.hpp
egomeh/floaty-boaty-go-go
a011db6f1f8712bf3caa85becc1fd83ac5bf1996
[ "MIT" ]
null
null
null
#pragma once #include "logic.hpp" #include <random> class TurbulenceWobble : public LogicComponent { public: TurbulenceWobble(); void Update() override; void Start() override; template<typename SerializerType> void Deserialize(SerializerType serializer) { DESERIALIZE(m_WobbleTime, s...
17.153846
71
0.702541
egomeh
bc2e9e014ec2c76a4e2cbf2d1ee0714d75458d39
3,809
hpp
C++
module-services/service-db/agents/settings/Settings_queries.hpp
bitigchi/MuditaOS
425d23e454e09fd6ae274b00f8d19c57a577aa94
[ "BSL-1.0" ]
369
2021-11-10T09:20:29.000Z
2022-03-30T06:36:58.000Z
module-services/service-db/agents/settings/Settings_queries.hpp
bitigchi/MuditaOS
425d23e454e09fd6ae274b00f8d19c57a577aa94
[ "BSL-1.0" ]
149
2021-11-10T08:38:35.000Z
2022-03-31T23:01:52.000Z
module-services/service-db/agents/settings/Settings_queries.hpp
bitigchi/MuditaOS
425d23e454e09fd6ae274b00f8d19c57a577aa94
[ "BSL-1.0" ]
41
2021-11-10T08:30:37.000Z
2022-03-29T08:12:46.000Z
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #pragma once namespace settings::Statements { constexpr auto getValue = R"sql( SELECT value FROM settings_tab AS ST ...
37.712871
94
0.451037
bitigchi
bc2ec40ad2a277063e1d845ed7ebe7010f3bcbbb
31,596
cpp
C++
SubstringWithConcatenationOfAllWords.cpp
hgfeaon/leetcode
1e2a562bd8341fc57a02ecff042379989f3361ea
[ "BSD-3-Clause" ]
null
null
null
SubstringWithConcatenationOfAllWords.cpp
hgfeaon/leetcode
1e2a562bd8341fc57a02ecff042379989f3361ea
[ "BSD-3-Clause" ]
null
null
null
SubstringWithConcatenationOfAllWords.cpp
hgfeaon/leetcode
1e2a562bd8341fc57a02ecff042379989f3361ea
[ "BSD-3-Clause" ]
null
null
null
#include <iostream> #include <cstdlib> #include <vector> #include <utility> #include <map> #include <unordered_map> using namespace std; class Solution { public: vector<int> findSubstring(string S, vector<string> &L) { vector<int> res; unordered_map<string, int> stat; unordered_map<string, int> run; ...
114.478261
20,032
0.402931
hgfeaon
bc2ed4836266b657965cecfa0b7eedd9a5adb190
184
cpp
C++
lib/Statistical/EigenFactoryAbstract.cpp
hlp2/EnjoLib
6bb69d0b00e367a800b0ef2804808fd1303648f4
[ "BSD-3-Clause" ]
3
2021-06-14T15:36:46.000Z
2022-02-28T15:16:08.000Z
lib/Statistical/EigenFactoryAbstract.cpp
hlp2/EnjoLib
6bb69d0b00e367a800b0ef2804808fd1303648f4
[ "BSD-3-Clause" ]
1
2021-07-17T07:52:15.000Z
2021-07-17T07:52:15.000Z
lib/Statistical/EigenFactoryAbstract.cpp
hlp2/EnjoLib
6bb69d0b00e367a800b0ef2804808fd1303648f4
[ "BSD-3-Clause" ]
3
2021-07-12T14:52:38.000Z
2021-11-28T17:10:33.000Z
#include "EigenFactoryAbstract.hpp" using namespace EnjoLib; EigenFactoryAbstract::EigenFactoryAbstract() { //ctor } EigenFactoryAbstract::~EigenFactoryAbstract() { //dtor }
14.153846
45
0.755435
hlp2
bc309620f8518942860fa071c25781607de8c21d
13,019
hpp
C++
engine/includes/graphics/device/graphics_device.hpp
StuartDAdams/neon
d08a63b853801aec94390e50f2988d0217438061
[ "MIT" ]
1
2019-08-22T14:43:18.000Z
2019-08-22T14:43:18.000Z
engine/includes/graphics/device/graphics_device.hpp
StuartDAdams/neon
d08a63b853801aec94390e50f2988d0217438061
[ "MIT" ]
null
null
null
engine/includes/graphics/device/graphics_device.hpp
StuartDAdams/neon
d08a63b853801aec94390e50f2988d0217438061
[ "MIT" ]
null
null
null
/* =========================================================================== Moka Source Code Copyright 2019 Stuart Adams. All rights reserved. https://github.com/stuartdadams/moka stuartdadams | linkedin.com/in/stuartdadams This file is part of the Moka Real-Time Physically-Based Rendering Project. Permission is h...
36.063712
144
0.629618
StuartDAdams
bc413d8227dd01daa4955f5696c24db69ce098c7
304
cpp
C++
DP/CountingBits.cpp
utkarshbajpai28/LeetCode-Solutions
58b3107f1cf3d1bf9f0686f0cb7f98684a34017a
[ "MIT" ]
33
2020-06-16T14:28:50.000Z
2021-06-21T14:35:39.000Z
DP/CountingBits.cpp
utkarshbajpai28/LeetCode-Solutions
58b3107f1cf3d1bf9f0686f0cb7f98684a34017a
[ "MIT" ]
1
2020-10-01T12:18:39.000Z
2020-10-01T12:18:39.000Z
DP/CountingBits.cpp
utkarshbajpai28/LeetCode-Solutions
58b3107f1cf3d1bf9f0686f0cb7f98684a34017a
[ "MIT" ]
18
2020-06-18T16:18:55.000Z
2021-05-19T18:41:50.000Z
class Solution { public: vector<int> countBits(int num) { vector<int> dp(num+1); dp[0] = 0; for(int i = 1; i <= num; i++ ) { if(i % 2 == 0) dp[i] = dp[i/2]; else dp[i] = dp[i-1]+1; } return dp; } };
20.266667
40
0.351974
utkarshbajpai28
bc4384e4e2d9d62b31fc500172fc6b755eac5bf1
1,873
hpp
C++
Hashing/HashAdaptor.hpp
jaredmulconry/HashingSupport
5f1b08b4a52be0ccd0181ef20adf1180fd8211a3
[ "MIT" ]
null
null
null
Hashing/HashAdaptor.hpp
jaredmulconry/HashingSupport
5f1b08b4a52be0ccd0181ef20adf1180fd8211a3
[ "MIT" ]
null
null
null
Hashing/HashAdaptor.hpp
jaredmulconry/HashingSupport
5f1b08b4a52be0ccd0181ef20adf1180fd8211a3
[ "MIT" ]
null
null
null
#pragma once #include <cstddef> #include <type_traits> #include <utility> namespace JMlib { namespace hashing { namespace detail { template<typename T> constexpr bool is_trivially_hashable() noexcept { return std::is_integral<T>::value ...
27.544118
132
0.561666
jaredmulconry
bc4423852f87de5ca14e664a04da09c318da795e
1,491
cpp
C++
2.Constructor&Destructor/i-Design/Q4/User.cpp
Concept-Team/e-box-UTA018
a6caf487c9f27a5ca30a00847ed49a163049f67e
[ "MIT" ]
26
2021-03-17T03:15:22.000Z
2021-06-09T13:29:41.000Z
2.Constructor&Destructor/i-Design/Q4/User.cpp
Servatom/e-box-UTA018
a6caf487c9f27a5ca30a00847ed49a163049f67e
[ "MIT" ]
6
2021-03-16T19:04:05.000Z
2021-06-03T13:41:04.000Z
2.Constructor&Destructor/i-Design/Q4/User.cpp
Concept-Team/e-box-UTA018
a6caf487c9f27a5ca30a00847ed49a163049f67e
[ "MIT" ]
42
2021-03-17T03:16:22.000Z
2021-06-14T21:11:20.000Z
#include <iostream> #include<string.h> using namespace std; class User{ private: string name; string userName; string password; public: User() { } User(string n,string un,string p) { name=n; userName=un; ...
22.938462
63
0.429913
Concept-Team
a4ba2992bee5525a483855f858ba4fb099780541
541
cpp
C++
src/lib/Target/MipsSupport.cpp
cgsdfc/Optimize
f3a28ccd5caf01d2a306859d641a1cb5aa0d36f3
[ "MIT" ]
1
2019-07-13T16:40:47.000Z
2019-07-13T16:40:47.000Z
src/lib/Target/MipsSupport.cpp
cgsdfc/simplecc
f3a28ccd5caf01d2a306859d641a1cb5aa0d36f3
[ "MIT" ]
null
null
null
src/lib/Target/MipsSupport.cpp
cgsdfc/simplecc
f3a28ccd5caf01d2a306859d641a1cb5aa0d36f3
[ "MIT" ]
null
null
null
#include "simplecc/Target/MipsSupport.h" using namespace simplecc; void AsciizLabel::FormatImpl(std::ostream &O) const { O << "string_" << StringID; } void JumpTargetLabel::FormatImpl(std::ostream &O) const { O << ParentName << "_label_" << Target; } void ReturnLabel::FormatImpl(std::ostream &O) const { O << ...
21.64
66
0.634011
cgsdfc
a4bb1de6e7fd814276a4b3f1b09031b445cf2f6c
1,197
cpp
C++
src/beanmachine/graph/proposer/from_probability_to_dirichlet_proposer_adapter.cpp
horizon-blue/beanmachine-1
b13e4e3e28ffb860947eb8046863b0cabb581222
[ "MIT" ]
177
2021-12-12T14:19:05.000Z
2022-03-24T05:48:10.000Z
src/beanmachine/graph/proposer/from_probability_to_dirichlet_proposer_adapter.cpp
horizon-blue/beanmachine-1
b13e4e3e28ffb860947eb8046863b0cabb581222
[ "MIT" ]
171
2021-12-11T06:12:05.000Z
2022-03-31T20:26:29.000Z
src/beanmachine/graph/proposer/from_probability_to_dirichlet_proposer_adapter.cpp
horizon-blue/beanmachine-1
b13e4e3e28ffb860947eb8046863b0cabb581222
[ "MIT" ]
31
2021-12-11T06:27:19.000Z
2022-03-25T13:31:56.000Z
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <memory> #include "beanmachine/graph/graph.h" #include "beanmachine/graph/proposer/from_probability_to_dirichlet_propos...
29.925
86
0.756892
horizon-blue
a4bb87fa124984e4cc3b38ca7761354efb5f5742
340
hpp
C++
oreilly_ws/install/interfaces/include/interfaces/srv/word_count.hpp
brand25/ros2_tuto
9fc1dd4f130baa5ad6376227ea6869549b09e66c
[ "Apache-2.0" ]
1
2022-02-02T07:50:55.000Z
2022-02-02T07:50:55.000Z
oreilly_ws/install/interfaces/include/interfaces/srv/word_count.hpp
brand25/ros2_tuto
9fc1dd4f130baa5ad6376227ea6869549b09e66c
[ "Apache-2.0" ]
null
null
null
oreilly_ws/install/interfaces/include/interfaces/srv/word_count.hpp
brand25/ros2_tuto
9fc1dd4f130baa5ad6376227ea6869549b09e66c
[ "Apache-2.0" ]
null
null
null
// generated from rosidl_generator_cpp/resource/idl.hpp.em // generated code does not contain a copyright notice #ifndef INTERFACES__SRV__WORD_COUNT_HPP_ #define INTERFACES__SRV__WORD_COUNT_HPP_ #include "interfaces/srv/word_count__struct.hpp" #include "interfaces/srv/word_count__traits.hpp" #endif // INTERFACES__S...
30.909091
58
0.844118
brand25
a4c00031cc6bea04fe54aebe8a65b12917d967bc
368
cpp
C++
Codeforces/A_Beautiful_year.cpp
Rakib1604060/Problem_Solving
0408ceff24834df9b3d2d9fddd8a56a5a9dc4592
[ "MIT" ]
null
null
null
Codeforces/A_Beautiful_year.cpp
Rakib1604060/Problem_Solving
0408ceff24834df9b3d2d9fddd8a56a5a9dc4592
[ "MIT" ]
null
null
null
Codeforces/A_Beautiful_year.cpp
Rakib1604060/Problem_Solving
0408ceff24834df9b3d2d9fddd8a56a5a9dc4592
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; int main(int argc, char const *argv[]) { int year; cin>>year; int a,b,c,d; while(true){ year++; a=year%10; b=year/10%10; c=year/100%10; d=year/1000; if (a!=b&&a!=c&&a!=d&&b!=c&&b!=d&&c!=d) { break; ...
13.142857
47
0.453804
Rakib1604060
a4c049da92f06e0e62934f8d8e7623ca8ed63616
3,022
cpp
C++
euhat/os/linux/EuhatChildWnd.cpp
euhat/EuhatExpert
3932238a0bd72a8f12b4ae6ced1ade6482228fe0
[ "BSD-2-Clause" ]
null
null
null
euhat/os/linux/EuhatChildWnd.cpp
euhat/EuhatExpert
3932238a0bd72a8f12b4ae6ced1ade6482228fe0
[ "BSD-2-Clause" ]
null
null
null
euhat/os/linux/EuhatChildWnd.cpp
euhat/EuhatExpert
3932238a0bd72a8f12b4ae6ced1ade6482228fe0
[ "BSD-2-Clause" ]
null
null
null
#include "EuhatChildWnd.h" #include <gtk/gtk.h> static gboolean configureEventCb(GtkWidget *widget, GdkEventConfigure *event, gpointer data) { EuhatChildWnd *pThis = (EuhatChildWnd *)data; if (NULL != pThis->surface_) cairo_surface_destroy(pThis->surface_); pThis->surface_ = gdk_window_create_similar_surface(gt...
24.176
186
0.742555
euhat
a4c1ec23664c30c3770e66faddf47493fe5140bb
276
cpp
C++
Cpp/Strings/Medium/Strings.cpp
Justin-Teng/HackerRank
bb501715d4fb0322ccffa70b75c4d6df1463a334
[ "MIT" ]
null
null
null
Cpp/Strings/Medium/Strings.cpp
Justin-Teng/HackerRank
bb501715d4fb0322ccffa70b75c4d6df1463a334
[ "MIT" ]
null
null
null
Cpp/Strings/Medium/Strings.cpp
Justin-Teng/HackerRank
bb501715d4fb0322ccffa70b75c4d6df1463a334
[ "MIT" ]
null
null
null
#include <iostream> #include <string> using namespace std; int main() { string a, b; cin >> a >> b; cout << a.size() << ' ' << b.size() << '\n'; cout << a << b << '\n'; cout << b.at(0) << a.substr(1) << ' ' << a.at(0) << b.substr(1) << '\n'; return 0; }
21.230769
76
0.445652
Justin-Teng
a4c382ee3838318ae38a166956f9fb31326acf7e
1,068
cpp
C++
tests/PhiCore/unittests/src/type_traits/to_safe.test.cpp
AMS21/Phi
d62d7235dc5307dd18607ade0f95432ae3a73dfd
[ "MIT" ]
3
2020-12-21T13:47:35.000Z
2022-03-16T23:53:21.000Z
tests/PhiCore/unittests/src/type_traits/to_safe.test.cpp
AMS21/Phi
d62d7235dc5307dd18607ade0f95432ae3a73dfd
[ "MIT" ]
53
2020-08-07T07:46:57.000Z
2022-02-12T11:07:08.000Z
tests/PhiCore/unittests/src/type_traits/to_safe.test.cpp
AMS21/Phi
d62d7235dc5307dd18607ade0f95432ae3a73dfd
[ "MIT" ]
1
2020-08-19T15:50:02.000Z
2020-08-19T15:50:02.000Z
#include <phi/test/test_macros.hpp> #include "constexpr_helper.hpp" #include <phi/core/boolean.hpp> #include <phi/core/floating_point.hpp> #include <phi/core/integer.hpp> #include <phi/core/move.hpp> #include <phi/type_traits/to_safe.hpp> TEST_CASE("to_safe") { // boolean STATIC_REQUIRE((phi::to_safe(true) ==...
32.363636
85
0.667603
AMS21
a4c59046e83cc756b750abb60eac654dc030ec7c
31
cpp
C++
llarp/util/timerqueue.cpp
braveheart12/loki-19-08-2019
cf68a9b87eb52b88c964fcbd41620fc2256859a4
[ "Zlib" ]
1
2019-05-01T11:06:52.000Z
2019-05-01T11:06:52.000Z
llarp/util/timerqueue.cpp
braveheart12/loki-19-08-2019
cf68a9b87eb52b88c964fcbd41620fc2256859a4
[ "Zlib" ]
2
2019-12-19T15:37:07.000Z
2020-01-31T19:42:28.000Z
llarp/util/timerqueue.cpp
braveheart12/loki-19-08-2019
cf68a9b87eb52b88c964fcbd41620fc2256859a4
[ "Zlib" ]
1
2019-04-21T17:53:56.000Z
2019-04-21T17:53:56.000Z
#include <util/timerqueue.hpp>
15.5
30
0.774194
braveheart12
a4c95e09184eee5f176d214a179ef157604c9bb3
5,969
hpp
C++
src/nrlib/trend/trendstorage.hpp
equinor/gaussianfft
3865dcd02fdba566be7be662da77f653950b51ac
[ "BSD-2-Clause" ]
null
null
null
src/nrlib/trend/trendstorage.hpp
equinor/gaussianfft
3865dcd02fdba566be7be662da77f653950b51ac
[ "BSD-2-Clause" ]
1
2021-09-24T14:03:33.000Z
2021-09-24T14:03:33.000Z
src/nrlib/trend/trendstorage.hpp
equinor/gaussianfft
3865dcd02fdba566be7be662da77f653950b51ac
[ "BSD-2-Clause" ]
null
null
null
// $Id: trendstorage.hpp 1499 2017-05-29 19:01:53Z perroe $ #ifndef NRLIB_TRENDSTORAGE_HPP #define NRLIB_TRENDSTORAGE_HPP #include "trend.hpp" #include <stdio.h> #include <string> namespace NRLib { class TrendStorage { public: TrendStorage(); virtual ~TrendStorage(); virtual TrendStorage * Clone() const...
44.544776
146
0.448819
equinor
a4c9f52e96233d81407e409c048a03ac31ac90b6
125,136
cpp
C++
foo_playlist_tree/foo_ui_playlist_tree.cpp
cwbowron/foobar2000-plugins
6ba30d7b3afc0ee85f5cc2903012c1dfcee132bd
[ "WTFPL" ]
13
2015-12-26T02:38:32.000Z
2021-08-24T17:08:50.000Z
foo_playlist_tree/foo_ui_playlist_tree.cpp
cwbowron/foobar2000-plugins
6ba30d7b3afc0ee85f5cc2903012c1dfcee132bd
[ "WTFPL" ]
null
null
null
foo_playlist_tree/foo_ui_playlist_tree.cpp
cwbowron/foobar2000-plugins
6ba30d7b3afc0ee85f5cc2903012c1dfcee132bd
[ "WTFPL" ]
5
2016-07-28T07:26:37.000Z
2021-12-07T05:20:23.000Z
#define VERSION ("3.0.5 [" __DATE__ " - " __TIME__ "]") #pragma warning(disable:4018) // don't warn about signed/unsigned #pragma warning(disable:4065) // don't warn about default case #pragma warning(disable:4800) // don't warn about forcing int to bool #pragma warning(disable:4244) // disable warning convert f...
29.31272
215
0.530814
cwbowron
a4ccdbf46dd6de2789bb3919eefbd84a6fa01fa1
3,412
cpp
C++
Code/Engine/Tools/FBX.cpp
ntaylorbishop/Copycat
c02f2881f0700a33a2630fd18bc409177d80b8cd
[ "MIT" ]
2
2017-10-02T03:18:55.000Z
2018-11-21T16:30:36.000Z
Code/Engine/Tools/FBX.cpp
ntaylorbishop/Copycat
c02f2881f0700a33a2630fd18bc409177d80b8cd
[ "MIT" ]
null
null
null
Code/Engine/Tools/FBX.cpp
ntaylorbishop/Copycat
c02f2881f0700a33a2630fd18bc409177d80b8cd
[ "MIT" ]
null
null
null
#pragma once #include "Engine/General/Core/EngineCommon.hpp" #include "Engine/Utils/ErrorWarningAssert.hpp" #include "Engine/General/Core/BeirusEngine.hpp" #include "Engine/Console/Command.hpp" #include "Engine/Console/Console.hpp" #if defined(TOOLS_BUILD) #include <fbxsdk.h> #pragma comment(lib, "libfbxsdk-md.lib")...
31.018182
125
0.505275
ntaylorbishop
a4ce1d66d89ee509a9a44a5fb854ccf340431624
1,082
cpp
C++
src/classwork/03_assign/decision.cpp
acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-JustinBrewer22
5756943881ca972a5f2f4fc634dde8b65158e3d5
[ "MIT" ]
null
null
null
src/classwork/03_assign/decision.cpp
acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-JustinBrewer22
5756943881ca972a5f2f4fc634dde8b65158e3d5
[ "MIT" ]
null
null
null
src/classwork/03_assign/decision.cpp
acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-JustinBrewer22
5756943881ca972a5f2f4fc634dde8b65158e3d5
[ "MIT" ]
null
null
null
//cpp #include "decision.h" using namespace std; string get_letter_grade_using_if(int numgrade) { string letter_grade; if(numgrade >= 90 && numgrade <= 100) { letter_grade = "A"; } else if(numgrade >=80 && numgrade <= 89) { letter_grade = "B"; } else if(numgrade >=70 &&...
19.321429
60
0.519409
acc-cosc-1337-spring-2021
a4ce462b790cc483b5cb4831c65be26470486fd2
24,241
cc
C++
mysql-server/mysys/lf_hash.cc
silenc3502/MYSQL-Arch-Doc-Summary
fcc6bb65f72a385b9f56debc9b2c00cee5914bae
[ "MIT" ]
null
null
null
mysql-server/mysys/lf_hash.cc
silenc3502/MYSQL-Arch-Doc-Summary
fcc6bb65f72a385b9f56debc9b2c00cee5914bae
[ "MIT" ]
null
null
null
mysql-server/mysys/lf_hash.cc
silenc3502/MYSQL-Arch-Doc-Summary
fcc6bb65f72a385b9f56debc9b2c00cee5914bae
[ "MIT" ]
null
null
null
/* Copyright (c) 2006, 2020, Oracle and/or its affiliates. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with certain software (including...
31.896053
80
0.63603
silenc3502
a4d3327774c3aace858a0b4e4aa543fdf22f3995
4,283
cxx
C++
main/accessibility/source/standard/vclxaccessibletabpagewindow.cxx
Alan-love/openoffice
09be380f1ebba053dbf269468ff884f5d26ce1e4
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/accessibility/source/standard/vclxaccessibletabpagewindow.cxx
Alan-love/openoffice
09be380f1ebba053dbf269468ff884f5d26ce1e4
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/accessibility/source/standard/vclxaccessibletabpagewindow.cxx
Alan-love/openoffice
09be380f1ebba053dbf269468ff884f5d26ce1e4
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * 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...
31.036232
102
0.565025
Alan-love
a4d4e3753fb7c2897c61dfdc53edd8ef7aaccdbf
13,718
cpp
C++
Src/ViceConnect.cpp
Sakrac/Step6502
3b8c3058a7997a2ff739e1d2c85fd150c3c33e5e
[ "MIT" ]
8
2017-02-13T06:53:00.000Z
2021-05-21T20:35:56.000Z
Src/ViceConnect.cpp
Sakrac/Step6502
3b8c3058a7997a2ff739e1d2c85fd150c3c33e5e
[ "MIT" ]
null
null
null
Src/ViceConnect.cpp
Sakrac/Step6502
3b8c3058a7997a2ff739e1d2c85fd150c3c33e5e
[ "MIT" ]
null
null
null
// start a telnet connection with a local instance of VICE #include "stdafx.h" #include "winsock2.h" #include <ws2tcpip.h> #include <inttypes.h> #include "machine.h" #include "MainFrm.h" #include "Step6502.h" #include "Expressions.h" #include "Sym.h" class ViceConnect { public: enum { RECEIVE_SIZE = 4096 }; ViceCon...
25.834275
104
0.598411
Sakrac
a4d4f6fa4f23f412e87b29fed7588fea4e356445
688
cc
C++
03_MoreBasics/SceneSimulation/main.cc
franneck94/UdemyCppExercises
862d3e3df198ef8f3c7b850bbeead6161700f9d1
[ "MIT" ]
null
null
null
03_MoreBasics/SceneSimulation/main.cc
franneck94/UdemyCppExercises
862d3e3df198ef8f3c7b850bbeead6161700f9d1
[ "MIT" ]
null
null
null
03_MoreBasics/SceneSimulation/main.cc
franneck94/UdemyCppExercises
862d3e3df198ef8f3c7b850bbeead6161700f9d1
[ "MIT" ]
5
2022-02-06T20:05:07.000Z
2022-03-10T12:48:58.000Z
#include <cstring> #include <iostream> #include <numeric> #include "AdFunctions.hpp" #include "AdTypes.hpp" int main() { VehicleType ego_vehicle{}; NeighborVehiclesType vehicles{}; init_ego_vehicle(ego_vehicle); init_vehicles(vehicles); print_vehicle(ego_vehicle); print_neighbor_vehicles(veh...
19.111111
55
0.639535
franneck94
a4d86f8d122ee0dec820b941e42c8af4899e6e7a
26,544
cpp
C++
src/libcore/src/ccm/io/File.cpp
sparkoss/ccm
9ed67a7cbdc9c69f4182e72be8e8b6b23d7c3c8d
[ "Apache-2.0" ]
6
2018-05-08T10:08:21.000Z
2021-11-13T13:22:58.000Z
src/libcore/src/ccm/io/File.cpp
sparkoss/ccm
9ed67a7cbdc9c69f4182e72be8e8b6b23d7c3c8d
[ "Apache-2.0" ]
1
2018-05-08T10:20:17.000Z
2018-07-23T05:19:19.000Z
src/libcore/src/ccm/io/File.cpp
sparkoss/ccm
9ed67a7cbdc9c69f4182e72be8e8b6b23d7c3c8d
[ "Apache-2.0" ]
4
2018-03-13T06:21:11.000Z
2021-06-19T02:48:07.000Z
//========================================================================= // Copyright (C) 2018 The C++ Component Model(CCM) 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 Lic...
25.376673
105
0.600437
sparkoss
a4db2913c015221a0cd18007c7249df6f7c4b09e
4,822
cpp
C++
examples_c++/FrameworkDemo/FrameworkDemo_AGK/jugiAppAGK.cpp
Jugilus/jugimapAPI
93fba7827b16169f858f7bd88c87236c5cf27183
[ "MIT" ]
8
2020-11-23T23:34:39.000Z
2022-02-23T12:14:02.000Z
examples_c++/FrameworkDemo/FrameworkDemo_AGK/jugiAppAGK.cpp
Jugilus/jugimapAPI
93fba7827b16169f858f7bd88c87236c5cf27183
[ "MIT" ]
null
null
null
examples_c++/FrameworkDemo/FrameworkDemo_AGK/jugiAppAGK.cpp
Jugilus/jugimapAPI
93fba7827b16169f858f7bd88c87236c5cf27183
[ "MIT" ]
3
2019-12-19T13:44:43.000Z
2020-05-15T01:02:10.000Z
#include <chrono> #include <assert.h> #include "jugiAppAGK.h" namespace jugiApp{ using namespace jugimap; bool PlatformerSceneAGK::Init() { if(PlatformerScene::Init()==false){ return false; } //--- agk::SetPhysicsGravity(0, 500); return true; } void PlatformerSceneAGK::SetDynam...
34.442857
175
0.603899
Jugilus
a4dcee36b0802530e41244e649eac495452b6879
530
cpp
C++
Software Eng (1)/Library/Bee/artifacts/WebGL/il2cpp/master_WebGL_wasm/ccge_Win321.lump.cpp
HealthSouthern48/Unity-project
ad1956e23f55910dd6f51710d11413ecbf5b7b6d
[ "MIT" ]
null
null
null
Software Eng (1)/Library/Bee/artifacts/WebGL/il2cpp/master_WebGL_wasm/ccge_Win321.lump.cpp
HealthSouthern48/Unity-project
ad1956e23f55910dd6f51710d11413ecbf5b7b6d
[ "MIT" ]
null
null
null
Software Eng (1)/Library/Bee/artifacts/WebGL/il2cpp/master_WebGL_wasm/ccge_Win321.lump.cpp
HealthSouthern48/Unity-project
ad1956e23f55910dd6f51710d11413ecbf5b7b6d
[ "MIT" ]
null
null
null
//Generated lump file. generated by Bee.NativeProgramSupport.Lumping #include "C:/Users/19022/Downloads/Unity/Editor/Data/il2cpp/libil2cpp/os/Win32/Console.cpp" #include "C:/Users/19022/Downloads/Unity/Editor/Data/il2cpp/libil2cpp/os/Win32/Encoding.cpp" #include "C:/Users/19022/Downloads/Unity/Editor/Data/il2cpp/lib...
75.714286
93
0.798113
HealthSouthern48
a4dd7c27eaf1ce01375c74cccfb0447fed95bfe0
1,647
hpp
C++
srcs/boxpp/boxpp/base/opacities/vsprintf.hpp
whoamiho1006/boxpp
5de2c5f9b2303ac6f539192f6407e9acf9144f8b
[ "MIT" ]
2
2019-11-13T13:57:37.000Z
2019-11-25T09:55:17.000Z
srcs/boxpp/boxpp/base/opacities/vsprintf.hpp
whoamiho1006/boxpp
5de2c5f9b2303ac6f539192f6407e9acf9144f8b
[ "MIT" ]
null
null
null
srcs/boxpp/boxpp/base/opacities/vsprintf.hpp
whoamiho1006/boxpp
5de2c5f9b2303ac6f539192f6407e9acf9144f8b
[ "MIT" ]
null
null
null
#pragma once #include <boxpp/base/BaseMacros.hpp> #include <boxpp/base/BaseTypes.hpp> #include <stdio.h> #include <string.h> #include <stdarg.h> #include <wchar.h> namespace boxpp { template<typename CharType> struct TVsprintf { FASTINLINE static void Vsprintf(CharType* Buffer, const CharType* Format, ...) { } ...
21.115385
85
0.654523
whoamiho1006
a4ddef8ecbf4d42c3cb6625128211139122a44da
2,836
hxx
C++
opencascade/Message_LazyProgressScope.hxx
mgreminger/OCP
92eacb99497cd52b419c8a4a8ab0abab2330ed42
[ "Apache-2.0" ]
null
null
null
opencascade/Message_LazyProgressScope.hxx
mgreminger/OCP
92eacb99497cd52b419c8a4a8ab0abab2330ed42
[ "Apache-2.0" ]
null
null
null
opencascade/Message_LazyProgressScope.hxx
mgreminger/OCP
92eacb99497cd52b419c8a4a8ab0abab2330ed42
[ "Apache-2.0" ]
null
null
null
// Copyright (c) 2017-2021 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with spe...
35.012346
115
0.724612
mgreminger
a4dfea183b548fd49d6dc76f8bd7d894538f695e
2,285
cpp
C++
Aven-core/src/math/vec2.cpp
icedmetal57/Aven
3c33b74382a7a6ea4aaaa8b33d000573af80fe3e
[ "Apache-2.0" ]
null
null
null
Aven-core/src/math/vec2.cpp
icedmetal57/Aven
3c33b74382a7a6ea4aaaa8b33d000573af80fe3e
[ "Apache-2.0" ]
null
null
null
Aven-core/src/math/vec2.cpp
icedmetal57/Aven
3c33b74382a7a6ea4aaaa8b33d000573af80fe3e
[ "Apache-2.0" ]
null
null
null
#include "vec2.h" namespace aven { namespace math { Vec2::Vec2() { x = 0.0f; y = 0.0f; } Vec2::Vec2(const float& x, const float& y) { this->x = x; this->y = y; } Vec2::Vec2(const Vec3& vector) { this->x = vector.x; this->y = vector.y; } Vec2& Vec2::add(const Vec2& other) { ...
15.650685
68
0.565427
icedmetal57
a4e8167f596cd0a443d997d45fbe860dffe70a9a
1,818
cpp
C++
modules/arithmetic/bench/scalar/mod.cpp
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
1
2022-03-24T03:35:10.000Z
2022-03-24T03:35:10.000Z
modules/arithmetic/bench/scalar/mod.cpp
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
null
null
null
modules/arithmetic/bench/scalar/mod.cpp
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
null
null
null
////////////////////////////////////////////////////////////////////////////// /// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand /// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI /// /// Distributed under the Boost Software License, Version 1.0 /// ...
50.5
82
0.510451
brycelelbach
a4e94d09929308ce4eaadf2203ffed49ad2e6eec
7,705
hpp
C++
include/fl/model/sensor/joint_sensor_id.hpp
aeolusbot-tommyliu/fl
a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02
[ "MIT" ]
17
2015-07-03T06:53:05.000Z
2021-05-15T20:55:12.000Z
include/fl/model/sensor/joint_sensor_id.hpp
aeolusbot-tommyliu/fl
a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02
[ "MIT" ]
3
2015-02-20T12:48:17.000Z
2019-12-18T08:45:13.000Z
include/fl/model/sensor/joint_sensor_id.hpp
aeolusbot-tommyliu/fl
a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02
[ "MIT" ]
15
2015-02-20T11:34:14.000Z
2021-05-15T20:55:13.000Z
/* * This is part of the fl library, a C++ Bayesian filtering library * (https://github.com/filtering-library) * * Copyright (c) 2015 Max Planck Society, * Autonomous Motion Department, * Institute for Intelligent Systems * * This Source Code Form is subject to the terms of the MIT License (MIT). ...
28.537037
80
0.599351
aeolusbot-tommyliu
a4ed1f669a47913cdfb4af459dcd443f9e60e325
6,990
cpp
C++
implementations/ugene/src/plugins/workflow_designer/src/util/SaveSchemaImageUtils.cpp
r-barnes/sw_comparison
1ac2c9cc10a32badd6b8fb1e96516c97f7800176
[ "BSD-Source-Code" ]
null
null
null
implementations/ugene/src/plugins/workflow_designer/src/util/SaveSchemaImageUtils.cpp
r-barnes/sw_comparison
1ac2c9cc10a32badd6b8fb1e96516c97f7800176
[ "BSD-Source-Code" ]
null
null
null
implementations/ugene/src/plugins/workflow_designer/src/util/SaveSchemaImageUtils.cpp
r-barnes/sw_comparison
1ac2c9cc10a32badd6b8fb1e96516c97f7800176
[ "BSD-Source-Code" ]
null
null
null
/** * UGENE - Integrated Bioinformatics Tools. * Copyright (C) 2008-2020 UniPro <ugene@unipro.ru> * http://ugene.net * * 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 2 * ...
33.605769
119
0.667525
r-barnes
a4f221156c37615332f096032d4a305a1fdc5c8e
1,548
cpp
C++
core/src/main/java/site/ycsb/data_gen/Graph_gen/Graph_gen/glib-adv/rdbms.cpp
qiuhere/Bench
80f15facb81120b754547586cf3a7e5f46ca1551
[ "Apache-2.0" ]
null
null
null
core/src/main/java/site/ycsb/data_gen/Graph_gen/Graph_gen/glib-adv/rdbms.cpp
qiuhere/Bench
80f15facb81120b754547586cf3a7e5f46ca1551
[ "Apache-2.0" ]
null
null
null
core/src/main/java/site/ycsb/data_gen/Graph_gen/Graph_gen/glib-adv/rdbms.cpp
qiuhere/Bench
80f15facb81120b754547586cf3a7e5f46ca1551
[ "Apache-2.0" ]
null
null
null
///////////////////////////////////////////////// // Includes #include "rdbms.h" ///////////////////////////////////////////////// // Rdbms TRdbms::TRdbms(char* FNm){ printf("Load Library\n"); hRdbmsLib= LoadLibrary(TEXT(FNm)); assert(hRdbmsLib!=NULL); printf("Creating Links to DLL functions\n"); ForgetS...
29.207547
98
0.72416
qiuhere
a4f4a5166c36b0f77e9c80e323c1733396bfd8c8
8,724
cpp
C++
examples/datatable.cpp
netcan/meta-value-list
772bb0c091a5b5ea6070f7c6e4f5503d1fccb26a
[ "MIT" ]
24
2021-11-05T16:24:57.000Z
2021-11-08T11:18:02.000Z
examples/datatable.cpp
netcan/meta-value-list
772bb0c091a5b5ea6070f7c6e4f5503d1fccb26a
[ "MIT" ]
null
null
null
examples/datatable.cpp
netcan/meta-value-list
772bb0c091a5b5ea6070f7c6e4f5503d1fccb26a
[ "MIT" ]
null
null
null
// // Created by netcan on 2021/11/7. // #include <meta-list/type.hpp> #include <meta-list/algorithm.hpp> #include <cstdint> #include <concepts> #include <bitset> #include <algorithm> #include <cassert> using namespace META_LIST_NS; /////////////////////////////////////////////////////////////////////////////// // fo...
37.766234
107
0.527052
netcan
a4f6bb9ad9743130fcd33b7f80151efa962de7ac
625
cpp
C++
RG-Lab3/Neon/src/Scene/Components.cpp
FilipHusnjak/ComputerGraphics-Labs
5f923735d2dbf9551675a704724e8a5d7128025a
[ "Apache-2.0" ]
3
2021-01-23T20:19:55.000Z
2021-01-25T16:15:46.000Z
RG-Lab3/Neon/src/Scene/Components.cpp
FilipHusnjak/ComputerGraphics-Labs
5f923735d2dbf9551675a704724e8a5d7128025a
[ "Apache-2.0" ]
null
null
null
RG-Lab3/Neon/src/Scene/Components.cpp
FilipHusnjak/ComputerGraphics-Labs
5f923735d2dbf9551675a704724e8a5d7128025a
[ "Apache-2.0" ]
null
null
null
// // Created by Filip on 21.8.2020.. // #include "Components.h" #include <Renderer/VulkanRenderer.h> Neon::WaterRenderer::WaterRenderer() { VulkanRenderer::CreateFrameBuffers( refractionReflectionResolution, m_RefractionSampledColorTextureImage, m_RefractionSampledDepthTextureImage, m_RefractionColorTextureImag...
32.894737
71
0.8528
FilipHusnjak
a4f8b40e939cef7a84843f406d47ea39c2e4bb8c
16,816
cpp
C++
Sources/SolarTears/Rendering/Vulkan/VulkanSharedDescriptorDatabaseBuilder.cpp
Sixshaman/SolarTears
97d07730f876508fce8bf93c9dc90f051c230580
[ "BSD-3-Clause" ]
4
2021-06-30T16:00:20.000Z
2021-10-13T06:17:56.000Z
Sources/SolarTears/Rendering/Vulkan/VulkanSharedDescriptorDatabaseBuilder.cpp
Sixshaman/SolarTears
97d07730f876508fce8bf93c9dc90f051c230580
[ "BSD-3-Clause" ]
null
null
null
Sources/SolarTears/Rendering/Vulkan/VulkanSharedDescriptorDatabaseBuilder.cpp
Sixshaman/SolarTears
97d07730f876508fce8bf93c9dc90f051c230580
[ "BSD-3-Clause" ]
null
null
null
#include "VulkanSharedDescriptorDatabaseBuilder.hpp" #include "VulkanDescriptors.hpp" #include "VulkanSamplers.hpp" #include "Scene/VulkanScene.hpp" #include "VulkanUtils.hpp" #include "VulkanFunctions.hpp" #include <VulkanGenericStructures.h> #include <span> #include <vector> #include <algorithm> Vulkan::SharedDescri...
46.711111
301
0.802212
Sixshaman
a4f8e48d27750830a388d1eb6fa4e9ceb463fc0a
11,619
cpp
C++
src/main.cpp
mnltake/soracom_iotstarter_kit_for_arduino
cbb5baedcc13472c92aa3997b57df3677cec8e9c
[ "MIT" ]
null
null
null
src/main.cpp
mnltake/soracom_iotstarter_kit_for_arduino
cbb5baedcc13472c92aa3997b57df3677cec8e9c
[ "MIT" ]
null
null
null
src/main.cpp
mnltake/soracom_iotstarter_kit_for_arduino
cbb5baedcc13472c92aa3997b57df3677cec8e9c
[ "MIT" ]
1
2021-02-10T04:05:51.000Z
2021-02-10T04:05:51.000Z
#include "main.h" void setup() { pinMode(LIGHTSENSORPIN, INPUT); pinMode(SOUNDSENSORPIN, INPUT); pinMode(VOLUMEPIN, INPUT); pinMode(BUTTONPIN, INPUT); pinMode(BG96_RESETPIN, OUTPUT); pinMode(LED_BUILTIN, OUTPUT); pinMode(LEDPIN, OUTPUT); digitalWrite(BG96_RESETPIN, HIGH);//modem reset u8x8.begin(); ...
23.760736
117
0.623031
mnltake
a4fa9de161df7de310b8f8ce01e2b2f4154d8155
682
cpp
C++
Source/Engine/Scene/Scene.cpp
amerkoleci/alimer
f47b80e0790a42a65366c88c3024a0dfdafb1e1b
[ "MIT" ]
291
2017-09-30T09:07:49.000Z
2022-03-22T13:09:21.000Z
Source/Engine/Scene/Scene.cpp
amerkoleci/alimer
f47b80e0790a42a65366c88c3024a0dfdafb1e1b
[ "MIT" ]
12
2018-01-14T01:54:53.000Z
2021-02-19T06:14:01.000Z
Source/Engine/Scene/Scene.cpp
amerkoleci/alimer
f47b80e0790a42a65366c88c3024a0dfdafb1e1b
[ "MIT" ]
16
2018-05-03T08:15:31.000Z
2022-02-25T09:03:16.000Z
// Copyright © Amer Koleci and Contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. #include "Scene/Scene.h" #include "Scene/Camera.h" #include "Core/Log.h" #include "Core/Assert.h" using namespace Alimer; void Scene::Register() { RegisterFactory<Scene>(...
17.487179
97
0.652493
amerkoleci
a4faefb10fd7a4068cbfe7b05d43658a5133fc14
1,010
hpp
C++
include/apex/mixin/singleton.hpp
slurps-mad-rips/apex
8d88e6167e460a74e2c42a4d11d7f8e70adb5102
[ "Apache-2.0" ]
4
2020-12-14T18:07:28.000Z
2021-04-21T18:10:26.000Z
include/apex/mixin/singleton.hpp
slurps-mad-rips/apex
8d88e6167e460a74e2c42a4d11d7f8e70adb5102
[ "Apache-2.0" ]
11
2020-07-21T03:27:10.000Z
2021-03-22T20:24:44.000Z
include/apex/mixin/singleton.hpp
slurps-mad-rips/apex
8d88e6167e460a74e2c42a4d11d7f8e70adb5102
[ "Apache-2.0" ]
3
2020-12-14T17:40:07.000Z
2022-03-18T15:43:10.000Z
#ifndef APEX_MIXIN_SINGLETON_HPP #define APEX_MIXIN_SINGLETON_HPP #include <apex/core/concepts.hpp> // This requires more work. The singleton<T> type should, honestly, be hidden // behind a detail:: namespace. Additionally, this isn't really a mixin, is it? namespace apex { template <default_initializable T> struct...
25.897436
79
0.70495
slurps-mad-rips
a4fb3f6781692611339b9075179d1560c2cbb4ce
686
cpp
C++
solutions-hackerrank/cpp/classes/stringstream/Solution.cpp
marcosmcb/uri-solutions
440c5b0f7a68a24573d93f6414f357713085d1e1
[ "Apache-2.0" ]
null
null
null
solutions-hackerrank/cpp/classes/stringstream/Solution.cpp
marcosmcb/uri-solutions
440c5b0f7a68a24573d93f6414f357713085d1e1
[ "Apache-2.0" ]
null
null
null
solutions-hackerrank/cpp/classes/stringstream/Solution.cpp
marcosmcb/uri-solutions
440c5b0f7a68a24573d93f6414f357713085d1e1
[ "Apache-2.0" ]
null
null
null
#include <sstream> #include <vector> #include <iostream> using namespace std; vector<int> parseInts(string str) { vector<int> myVector; int j=0; string aux; for(int i=0; i < str.size(); i++) if(str[i] != ',') aux+=str[i]; else { myVector.insert(myVec...
20.787879
64
0.502915
marcosmcb
a4fdcf90b936fc9fbfefdc8d112c836b4e068651
471
cpp
C++
Algorithms/Linear-search/Linear_Search.cpp
TeacherManoj0131/HacktoberFest2020-Contributions
c7119202fdf211b8a6fc1eadd0760dbb706a679b
[ "MIT" ]
256
2020-09-30T19:31:34.000Z
2021-11-20T18:09:15.000Z
Algorithms/Linear-search/Linear_Search.cpp
TeacherManoj0131/HacktoberFest2020-Contributions
c7119202fdf211b8a6fc1eadd0760dbb706a679b
[ "MIT" ]
293
2020-09-30T19:14:54.000Z
2021-06-06T02:34:47.000Z
Algorithms/Linear-search/Linear_Search.cpp
TeacherManoj0131/HacktoberFest2020-Contributions
c7119202fdf211b8a6fc1eadd0760dbb706a679b
[ "MIT" ]
1,620
2020-09-30T18:37:44.000Z
2022-03-03T20:54:22.000Z
//This code returns the index at which element to be searched is present. #include<iostream> #include<bits/stdc++.h> using namespace std; int linearsearch(arr[],size,element) { for(int i=0,i<size;i++) { if(arr[i]==element) return i; } return -1; } //Let n is the size of the array and k is the elment t...
13.457143
73
0.63482
TeacherManoj0131
a4fe03dbbdc97bff6e4ebed1fdafacd93514b286
1,740
cc
C++
EgammaAnalysis/ElectronTools/src/SimpleElectron.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
EgammaAnalysis/ElectronTools/src/SimpleElectron.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
EgammaAnalysis/ElectronTools/src/SimpleElectron.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
#ifndef SimpleElectron_STANDALONE #include "EgammaAnalysis/ElectronTools/interface/SimpleElectron.h" SimpleElectron::SimpleElectron(const reco::GsfElectron &in, unsigned int runNumber, bool isMC) : run_(runNumber), eClass_(int(in.classification())), r9_(in.full5x5_r9()), scEnergy_(in.superCluster(...
47.027027
105
0.683333
ckamtsikis
a4fec632caff18d927af87f6ca59e8201feedb02
2,383
cpp
C++
source/Window.cpp
amanb014/NxReader
f7c74b78e3c676cab29da78079d4c2d12c9065a1
[ "MIT" ]
3
2018-12-14T17:36:21.000Z
2020-11-06T19:29:49.000Z
source/Window.cpp
amanb014/NxReader
f7c74b78e3c676cab29da78079d4c2d12c9065a1
[ "MIT" ]
null
null
null
source/Window.cpp
amanb014/NxReader
f7c74b78e3c676cab29da78079d4c2d12c9065a1
[ "MIT" ]
null
null
null
#include "Window.hpp" #include "Util.hpp" #include <SDL2/SDL.h> #include <SDL2/SDL_ttf.h> // TODO TEMP includes to be moved #include <SDL2/SDL_events.h> #include <SDL2/SDL_image.h> #include <SDL2/SDL_ttf.h> #include <SDL2/SDL_mixer.h> Window::Window() { createBaseWindow(); setWidthHeight(); // _textureTarget ...
29.060976
135
0.74444
amanb014
3503f732497576c6a15602d4af2a3d06e4bf08bc
9,635
cpp
C++
source/code/programs/examples/glut/dissolve/main.cpp
luxe/CodeLang-compiler
78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a
[ "MIT" ]
33
2019-05-30T07:43:32.000Z
2021-12-30T13:12:32.000Z
source/code/programs/examples/glut/dissolve/main.cpp
luxe/CodeLang-compiler
78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a
[ "MIT" ]
371
2019-05-16T15:23:50.000Z
2021-09-04T15:45:27.000Z
source/code/programs/examples/glut/dissolve/main.cpp
UniLang/compiler
c338ee92994600af801033a37dfb2f1a0c9ca897
[ "MIT" ]
6
2019-08-22T17:37:36.000Z
2020-11-07T07:15:32.000Z
/* dissolve.c - by Tom McReynolds, SGI */ /* An Example of dissolve, using stencil */ /* Drag with left mouse button to dissolve to the 3D background, Drag with middle mouse button to dissolve to checkerboard, and use right button for menu to clear stencil. */ #include <GL/glut.h> #include <stdlib.h> #include...
21.897727
82
0.650752
luxe
3509806415982eeb65e91c945313c5fab47ecaf9
705
cc
C++
components/sync/model/model_error.cc
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
components/sync/model/model_error.cc
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
components/sync/model/model_error.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/sync/model/model_error.h" namespace syncer { ModelError::ModelError(const base::Location& location, const st...
25.178571
73
0.702128
zipated
350e5dd28931f6876f9da660c1cf7d1bf0fde934
7,962
cpp
C++
tutoriales_basicos/src/robot_cleaner_ios.cpp
lfzarazuaa/LiderSeguidorA
5714ac3c025ab2f7b83f427004c05071ed3f3689
[ "MIT" ]
1
2020-05-09T23:07:36.000Z
2020-05-09T23:07:36.000Z
tutoriales_basicos/src/robot_cleaner_ios.cpp
lfzarazuaa/LiderSeguidorA
5714ac3c025ab2f7b83f427004c05071ed3f3689
[ "MIT" ]
null
null
null
tutoriales_basicos/src/robot_cleaner_ios.cpp
lfzarazuaa/LiderSeguidorA
5714ac3c025ab2f7b83f427004c05071ed3f3689
[ "MIT" ]
null
null
null
#include "ros/ros.h" #include "geometry_msgs/Twist.h" #include "turtlesim/Pose.h" #include <sstream> ros::Publisher velocity_publisher; ros::Subscriber pose_subscriber; turtlesim::Pose turtlesim_pose; using namespace std; const double x_min = 0.0; const double y_min = 0.0; const double x_max = 11.0; const double y_ma...
29.164835
112
0.670686
lfzarazuaa
35108408ce10a4a1282a885c7e0c7ff11f96969d
2,838
cpp
C++
Graphs/HackerRank/Roads and Libraries/main.cpp
bimalka98/Data-Structures-and-Algorithms
7d358a816561551a5b04af8de378141becda42bd
[ "MIT" ]
1
2021-03-21T07:54:08.000Z
2021-03-21T07:54:08.000Z
Graphs/HackerRank/Roads and Libraries/main.cpp
bimalka98/Data-Structures-and-Algorithms
7d358a816561551a5b04af8de378141becda42bd
[ "MIT" ]
null
null
null
Graphs/HackerRank/Roads and Libraries/main.cpp
bimalka98/Data-Structures-and-Algorithms
7d358a816561551a5b04af8de378141becda42bd
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; // int n, int c_lib, int c_road; // n = 3;c_lib = 2; c_road = 1; //long roadsAndLibraries(int n, int c_lib, int c_road, vector<vector<int>> cities) { /* * int n: integer, the number of cities * int c_lib: integer, the cost to build a library * int c_road: integer, t...
29.873684
94
0.594433
bimalka98
3512232f23d2202e09a7ba3ae318510366c305c3
513
cpp
C++
test/parser_unittest.cpp
sequoia-mso/sequoia-core
d2a6a461ffbe38dc8abb005b2c8f1f3bc1dc2bbe
[ "Apache-2.0" ]
7
2016-11-12T17:55:03.000Z
2021-04-28T20:23:27.000Z
test/parser_unittest.cpp
sequoia-mso/sequoia-core
d2a6a461ffbe38dc8abb005b2c8f1f3bc1dc2bbe
[ "Apache-2.0" ]
null
null
null
test/parser_unittest.cpp
sequoia-mso/sequoia-core
d2a6a461ffbe38dc8abb005b2c8f1f3bc1dc2bbe
[ "Apache-2.0" ]
4
2015-05-12T13:51:54.000Z
2020-06-07T22:01:28.000Z
#include "parseformula.h" #include "logic/vocabulary.h" #include "gtest/gtest.h" #include <iostream> using namespace sequoia; TEST(ParserTests, ParserTest) { Vocabulary *voc = new Vocabulary(); voc->add_symbol(new Symbol("adj", 2, false, 0)); Formula* res = NULL; res = parse_file(voc, "parser_unittes...
23.318182
52
0.664717
sequoia-mso
3516bf85134286ef18a966d3238903a5112d45cc
1,650
hpp
C++
usebitcoins/price_oracle.hpp
fakecoinbase/proprietaryslashusebitcoins
fcfa5c37ca1b037b45d09f5040eb1d79e72f62c6
[ "Apache-2.0" ]
2
2020-08-05T17:19:12.000Z
2022-01-07T14:37:10.000Z
usebitcoins/price_oracle.hpp
fakecoinbase/proprietaryslashusebitcoins
fcfa5c37ca1b037b45d09f5040eb1d79e72f62c6
[ "Apache-2.0" ]
null
null
null
usebitcoins/price_oracle.hpp
fakecoinbase/proprietaryslashusebitcoins
fcfa5c37ca1b037b45d09f5040eb1d79e72f62c6
[ "Apache-2.0" ]
null
null
null
#ifndef _USEBITCOINS_PRICE_ORACLE_HPP #define _USEBITCOINS_PRICE_ORACLE_HPP #include <chrono> #include <cstdint> #include <string> #include <vector> namespace usebitcoins { namespace price_oracle { /// Price is encoded in cents of local currency e.g. USD using fiat_price_t = uint64_t; /// ISO-4217 currency codes //...
20.886076
91
0.729697
fakecoinbase
3518f496ffdae095bb56a78ce51c1156f596ecb5
231
hpp
C++
src/kalman/numerical.hpp
ENGN2912B-2018/EE-A
f3017265535b0f619c06f54167fd4b8939195a8f
[ "MIT" ]
null
null
null
src/kalman/numerical.hpp
ENGN2912B-2018/EE-A
f3017265535b0f619c06f54167fd4b8939195a8f
[ "MIT" ]
null
null
null
src/kalman/numerical.hpp
ENGN2912B-2018/EE-A
f3017265535b0f619c06f54167fd4b8939195a8f
[ "MIT" ]
null
null
null
#ifndef NUM_INT #define NUM_INT // Performs numerical integration on data. // Implementation performs two stage integration where // area is represented as float * numerical_int(float* data); #endif /* end of include guard: */
23.1
54
0.753247
ENGN2912B-2018
3519db8d64709170a19c33f9b3a7447d56648ded
813
cpp
C++
test/unit/math/opencl/prim/divide_test.cpp
tiagocabaco/math
1b300c592b680fbfde289f08dc75d1da9c61901d
[ "BSD-3-Clause" ]
null
null
null
test/unit/math/opencl/prim/divide_test.cpp
tiagocabaco/math
1b300c592b680fbfde289f08dc75d1da9c61901d
[ "BSD-3-Clause" ]
null
null
null
test/unit/math/opencl/prim/divide_test.cpp
tiagocabaco/math
1b300c592b680fbfde289f08dc75d1da9c61901d
[ "BSD-3-Clause" ]
null
null
null
#ifdef STAN_OPENCL #include <stan/math/prim.hpp> #include <stan/math/opencl/opencl.hpp> #include <gtest/gtest.h> #include <algorithm> #define EXPECT_MATRIX_NEAR(A, B, DELTA) \ for (int i = 0; i < A.size(); i++) \ EXPECT_NEAR(A(i), B(i), DELTA); TEST(MathMatrixCL, divide_exception_pass) { stan::math::matrix...
29.035714
71
0.664207
tiagocabaco
351aa40e384d37c12d020a6b8e88d1d968fb0179
1,930
cpp
C++
Plugins/MyPhysXVehicles/Source/MyPhysXVehiclesEditor/Private/MyPhysXVehiclesEditorPlugin.cpp
vinjn/rac
b3b1f82b6cd2e841f804d4c4e2ace94c0ab1208b
[ "MIT" ]
null
null
null
Plugins/MyPhysXVehicles/Source/MyPhysXVehiclesEditor/Private/MyPhysXVehiclesEditorPlugin.cpp
vinjn/rac
b3b1f82b6cd2e841f804d4c4e2ace94c0ab1208b
[ "MIT" ]
null
null
null
Plugins/MyPhysXVehicles/Source/MyPhysXVehiclesEditor/Private/MyPhysXVehiclesEditorPlugin.cpp
vinjn/rac
b3b1f82b6cd2e841f804d4c4e2ace94c0ab1208b
[ "MIT" ]
null
null
null
// Copyright Epic Games, Inc. All Rights Reserved. #include "MyPhysXVehiclesEditorPlugin.h" #include "CoreMinimal.h" #include "UObject/Class.h" #include "MyWheeledVehicleMovementComponent4WDetails.h" #include "PropertyEditorModule.h" #include "MyVehicleTransmissionDataCustomization.h" #include "Modules/ModuleM...
39.387755
189
0.82228
vinjn
3523f3f3378b03f88908215cd6b157ba958a4f36
2,591
cpp
C++
Engine/src/engine/Object.cpp
katoun/kg_engine
fdcc6ec01b191d07cedf7a8d6c274166e25401a8
[ "Unlicense" ]
2
2015-04-21T05:36:12.000Z
2017-04-16T19:31:26.000Z
Engine/src/engine/Object.cpp
katoun/kg_engine
fdcc6ec01b191d07cedf7a8d6c274166e25401a8
[ "Unlicense" ]
null
null
null
Engine/src/engine/Object.cpp
katoun/kg_engine
fdcc6ec01b191d07cedf7a8d6c274166e25401a8
[ "Unlicense" ]
null
null
null
/* ----------------------------------------------------------------------------- KG game engine (http://katoun.github.com/kg_engine) is made available under the MIT License. Copyright (c) 2006-2013 Catalin Alexandru Nastase Permission is hereby granted, free of charge, to any person obtaining a copy of this software ...
22.530435
92
0.710536
katoun
3524f93c5154338efa1b3be6badc23ff0e0fe496
4,469
hpp
C++
Nacro/SDK/FN_PlayerZoneTeamScoreContributionWidget_classes.hpp
Milxnor/Nacro
eebabf662bbce6d5af41820ea0342d3567a0aecc
[ "BSD-2-Clause" ]
11
2021-08-08T23:25:10.000Z
2022-02-19T23:07:22.000Z
Nacro/SDK/FN_PlayerZoneTeamScoreContributionWidget_classes.hpp
Milxnor/Nacro
eebabf662bbce6d5af41820ea0342d3567a0aecc
[ "BSD-2-Clause" ]
1
2022-01-01T22:51:59.000Z
2022-01-08T16:14:15.000Z
Nacro/SDK/FN_PlayerZoneTeamScoreContributionWidget_classes.hpp
Milxnor/Nacro
eebabf662bbce6d5af41820ea0342d3567a0aecc
[ "BSD-2-Clause" ]
8
2021-08-09T13:51:54.000Z
2022-01-26T20:33:37.000Z
#pragma once // Fortnite (1.8) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif namespace SDK { //--------------------------------------------------------------------------- //Classes //--------------------------------------------------------------------------- // WidgetBlueprintGeneratedClass PlayerZoneTeamScor...
95.085106
663
0.741105
Milxnor
352b5c20dc5d8dff5f960434d8b520a665fde2d0
50
hpp
C++
src/boost_mpl_map_aux__value_type_impl.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
10
2018-03-17T00:58:42.000Z
2021-07-06T02:48:49.000Z
src/boost_mpl_map_aux__value_type_impl.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
2
2021-03-26T15:17:35.000Z
2021-05-20T23:55:08.000Z
src/boost_mpl_map_aux__value_type_impl.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
4
2019-05-28T21:06:37.000Z
2021-07-06T03:06:52.000Z
#include <boost/mpl/map/aux_/value_type_impl.hpp>
25
49
0.8
miathedev
352b88bd8c2363c2ffa41feaeb7eb0ab26d1e02c
4,007
cpp
C++
WSELib/WSEPlayerOperationsContext.cpp
Swyter/wse
3ad901f1a463139b320c30ea08bdc343358ea6b6
[ "WTFPL" ]
null
null
null
WSELib/WSEPlayerOperationsContext.cpp
Swyter/wse
3ad901f1a463139b320c30ea08bdc343358ea6b6
[ "WTFPL" ]
null
null
null
WSELib/WSEPlayerOperationsContext.cpp
Swyter/wse
3ad901f1a463139b320c30ea08bdc343358ea6b6
[ "WTFPL" ]
null
null
null
#include "WSEPlayerOperationsContext.h" #include "WSE.h" #include "warband.h" void PlayerGetFaceKeys(WSEPlayerOperationsContext *context) { int fkreg, player_no; context->ExtractRegister(fkreg); context->ExtractPlayerNo(player_no); WSE->SkinOperations.m_face_key_registers[fkreg] = warband->multiplay...
26.361842
107
0.723484
Swyter
352d80f37ef171785ef7ad40b04d619efa20c252
234
cpp
C++
libraries/chain/required_action_evaluator.cpp
DunnCreativeSS/ccd
83531f2c902a7e8bea351c86c4ca0e4b03820d5b
[ "MIT" ]
1
2021-09-02T16:09:26.000Z
2021-09-02T16:09:26.000Z
libraries/chain/required_action_evaluator.cpp
DunnCreativeSS/ccd
83531f2c902a7e8bea351c86c4ca0e4b03820d5b
[ "MIT" ]
null
null
null
libraries/chain/required_action_evaluator.cpp
DunnCreativeSS/ccd
83531f2c902a7e8bea351c86c4ca0e4b03820d5b
[ "MIT" ]
null
null
null
#include <CreateCoin/chain/required_action_evaluator.hpp> namespace CreateCoin { namespace chain { #ifdef IS_TEST_NET void example_required_evaluator::do_apply( const example_required_action& a ) {} #endif } } //CreateCoin::chain
21.272727
80
0.794872
DunnCreativeSS
352e741876f7c31f71cfbd478681aefbd9ff8827
3,877
cpp
C++
main/src/vtr_path_tracker/src/robust_mpc/optimization/mpc_solver_base.cpp
utiasASRL/vtr3
b4edca56a19484666d3cdb25a032c424bdc6f19d
[ "Apache-2.0" ]
32
2021-09-15T03:42:42.000Z
2022-03-26T10:40:01.000Z
main/src/vtr_path_tracker/src/robust_mpc/optimization/mpc_solver_base.cpp
shimp-t/vtr3
bdcad784ffe26fabfa737d0e195bcb3bacb930c3
[ "Apache-2.0" ]
7
2021-09-18T19:18:15.000Z
2022-02-02T11:15:40.000Z
main/src/vtr_path_tracker/src/robust_mpc/optimization/mpc_solver_base.cpp
shimp-t/vtr3
bdcad784ffe26fabfa737d0e195bcb3bacb930c3
[ "Apache-2.0" ]
7
2021-09-18T01:31:28.000Z
2022-03-14T05:09:37.000Z
// Copyright 2021, Autonomous Space Robotics Lab (ASRL) // // 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 appli...
34.309735
80
0.706216
utiasASRL
352fea63e27040680eb3f800049e7b5a9b271d69
3,707
cpp
C++
src/dxvk/dxvk_buffer_res.cpp
0x8080/dxvk
92f3648efab8406924a5737e8f988a07d5923826
[ "Zlib" ]
3
2018-10-06T19:02:08.000Z
2021-06-27T16:17:08.000Z
src/dxvk/dxvk_buffer_res.cpp
0x8080/dxvk
92f3648efab8406924a5737e8f988a07d5923826
[ "Zlib" ]
null
null
null
src/dxvk/dxvk_buffer_res.cpp
0x8080/dxvk
92f3648efab8406924a5737e8f988a07d5923826
[ "Zlib" ]
null
null
null
#include "dxvk_buffer_res.h" namespace dxvk { DxvkPhysicalBuffer::DxvkPhysicalBuffer( const Rc<vk::DeviceFn>& vkd, const DxvkBufferCreateInfo& createInfo, DxvkMemoryAllocator& memAlloc, VkMemoryPropertyFlags memFlags) : m_vkd(vkd) { VkBufferCreateInfo info; info.sTy...
37.07
108
0.683032
0x8080
3533e969325f4ed52fad605a7ee812258dd6ac42
6,451
cpp
C++
src/SolarFlare.cpp
bitwitch/Prototype
c05e9c9fb5cf862de8d907354bd068d6191d9e19
[ "MIT" ]
73
2015-02-01T17:58:34.000Z
2022-02-07T07:49:16.000Z
src/SolarFlare.cpp
bitwitch/Prototype
c05e9c9fb5cf862de8d907354bd068d6191d9e19
[ "MIT" ]
1
2018-06-05T19:48:54.000Z
2018-06-05T20:48:22.000Z
src/SolarFlare.cpp
bitwitch/Prototype
c05e9c9fb5cf862de8d907354bd068d6191d9e19
[ "MIT" ]
24
2015-02-09T02:04:39.000Z
2022-02-01T01:41:22.000Z
#include "SolarFlare.h" #include "Engine.h" SolarFlare::SolarFlare() { IsActive = false; fRotation = 0; } //================================================================================================// /******************* ** SolarFlare spawn ** ********************/ //========================...
28.170306
107
0.486281
bitwitch
3536989b267560ba80054d3d9240397e51b16f34
1,653
cpp
C++
tests/test-semaphore.cpp
fabricetriboix/semaphore
dc2f4c2a9a74444ccdb2396535151f3031d7805a
[ "Unlicense" ]
null
null
null
tests/test-semaphore.cpp
fabricetriboix/semaphore
dc2f4c2a9a74444ccdb2396535151f3031d7805a
[ "Unlicense" ]
null
null
null
tests/test-semaphore.cpp
fabricetriboix/semaphore
dc2f4c2a9a74444ccdb2396535151f3031d7805a
[ "Unlicense" ]
null
null
null
#include "semaphore.hpp" #include <thread> #include <gtest/gtest.h> TEST(Semaphore, ShouldUnlockThread) { ft::semaphore_t sem; bool taken = false; std::thread thread( [&sem, &taken] () { sem.take(); taken = true; }); std::this_thread...
22.04
63
0.554749
fabricetriboix
3536e9847412dfa411a7b2fa4796b2b7df22139d
699
cpp
C++
src/sparse_hashtable/sparse_hashtable.cpp
maumueller/pqtable
66a92edfa7b95b94153f645e87e748f93a49bbeb
[ "MIT" ]
49
2017-04-24T21:00:29.000Z
2022-03-27T08:35:54.000Z
src/sparse_hashtable/sparse_hashtable.cpp
maumueller/pqtable
66a92edfa7b95b94153f645e87e748f93a49bbeb
[ "MIT" ]
1
2017-12-08T08:54:20.000Z
2018-02-25T17:33:23.000Z
src/sparse_hashtable/sparse_hashtable.cpp
maumueller/pqtable
66a92edfa7b95b94153f645e87e748f93a49bbeb
[ "MIT" ]
11
2017-04-25T16:13:22.000Z
2021-07-22T06:42:05.000Z
#include "sparse_hashtable.h" const int SparseHashtable::MAX_B = 37; SparseHashtable::SparseHashtable() { table = NULL; size = 0; b = 0; } int SparseHashtable::init(int _b) { b = _b; if (b < 5 || b > MAX_B || b > sizeof(UINT64)*8) return 1; size = UINT64_1 << (b-5); // size = 2 ^...
21.181818
61
0.610873
maumueller
35389fb30feba5bd78465f1e56266cfcd2103ea7
4,663
cpp
C++
CodeChef/ZCO12002.cpp
ravirathee/Competitive-Programming
20a0bfda9f04ed186e2f475644e44f14f934b533
[ "Unlicense" ]
6
2018-11-26T02:38:07.000Z
2021-07-28T00:16:41.000Z
CodeChef/ZCO12002.cpp
ravirathee/Competitive-Programming
20a0bfda9f04ed186e2f475644e44f14f934b533
[ "Unlicense" ]
1
2021-05-30T09:25:53.000Z
2021-06-05T08:33:56.000Z
CodeChef/ZCO12002.cpp
ravirathee/Competitive-Programming
20a0bfda9f04ed186e2f475644e44f14f934b533
[ "Unlicense" ]
4
2020-04-16T07:15:01.000Z
2020-12-04T06:26:07.000Z
/*Zonal Computing Olympiad 2012, 26 Nov 2011 The year is 2102 and today is the day of ZCO. This year there are N contests and the starting and ending times of each contest is known to you. You have to participate in exactly one of these contests. Different contests may overlap. The duration of different contests might...
47.581633
669
0.706627
ravirathee