hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
109
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
int64
1
48.5k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
330k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
0.99
author_id
stringlengths
2
40
a5a55785d16c0776771febb562ea2df534e17a29
1,573
cpp
C++
src/propertybrowser/propertymanager/charpropertymanager.cpp
bitdewy/Ya
9e075712b311a2403b4cc0ef5be24b05f523be3e
[ "BSD-3-Clause" ]
null
null
null
src/propertybrowser/propertymanager/charpropertymanager.cpp
bitdewy/Ya
9e075712b311a2403b4cc0ef5be24b05f523be3e
[ "BSD-3-Clause" ]
null
null
null
src/propertybrowser/propertymanager/charpropertymanager.cpp
bitdewy/Ya
9e075712b311a2403b4cc0ef5be24b05f523be3e
[ "BSD-3-Clause" ]
null
null
null
/**************************************************************************** ** ** BSD 3-Clause License ** ** Copyright (c) 2017, bitdewy ** All rights reserved. ** ****************************************************************************/ #include "charpropertymanager.h" #include "private/charpropertyma...
26.661017
83
0.623013
bitdewy
a5a9c867cf4eda233717bc988bf4a5fd7b8a4292
561
cpp
C++
temp/c.cpp
tysm/cpsols
262212646203e516d1706edf962290de93762611
[ "MIT" ]
4
2020-10-05T19:24:10.000Z
2021-07-15T00:45:43.000Z
temp/c.cpp
tysm/cpsols
262212646203e516d1706edf962290de93762611
[ "MIT" ]
null
null
null
temp/c.cpp
tysm/cpsols
262212646203e516d1706edf962290de93762611
[ "MIT" ]
null
null
null
#include <cpplib/stdinc.hpp> int32_t main(){ desync(); int n, m, h; cin >> n >> m >> h; n--; int sum = 0, hx; for(int i=1; i<=m; ++i){ int x; cin >> x; if(i != h) sum += x; else hx = x-1; } if(sum+hx< n) cout << -1 << endl;...
18.7
43
0.354724
tysm
a5aa23843fee02aae0544ba7b1a526be89c1cecd
270
cpp
C++
tests/codegen/if_variable.cpp
xuchunmei000/bpftrace
44c6cbd4f8d40c64a74b4a3ffad22532c5c05385
[ "Apache-2.0" ]
5,119
2018-10-08T15:19:24.000Z
2022-03-31T15:03:48.000Z
tests/codegen/if_variable.cpp
xuchunmei000/bpftrace
44c6cbd4f8d40c64a74b4a3ffad22532c5c05385
[ "Apache-2.0" ]
1,568
2018-10-08T19:14:25.000Z
2022-03-31T01:44:41.000Z
tests/codegen/if_variable.cpp
xuchunmei000/bpftrace
44c6cbd4f8d40c64a74b4a3ffad22532c5c05385
[ "Apache-2.0" ]
838
2018-10-08T20:16:47.000Z
2022-03-31T06:15:58.000Z
#include "common.h" namespace bpftrace { namespace test { namespace codegen { TEST(codegen, if_variable) { test("kprobe:f { if (pid > 10000) { $s = 10 } printf(\"s = %d\", $s); }", NAME); } } // namespace codegen } // namespace test } // namespace bpftrace
15.882353
75
0.611111
xuchunmei000
a5aa33d3951374a6818c8cf07d6ab2da282b8942
992
cpp
C++
Algorithms/Warmup/time-conversion.cpp
vishu006/Hackerrank
927bc370b668aa568d17ee96ac2a3728568d437e
[ "CC-BY-4.0" ]
1
2017-08-12T19:18:12.000Z
2017-08-12T19:18:12.000Z
Algorithms/Warmup/time-conversion.cpp
vishu006/Hackerrank
927bc370b668aa568d17ee96ac2a3728568d437e
[ "CC-BY-4.0" ]
null
null
null
Algorithms/Warmup/time-conversion.cpp
vishu006/Hackerrank
927bc370b668aa568d17ee96ac2a3728568d437e
[ "CC-BY-4.0" ]
null
null
null
// Author : Rajanikant Tenguria #include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main() { string x; cin>>x; if (x[8]=='A'){ int y=int(x[0])-48; int a=int(x[1])-48; int b=10*y+a; if(b>11){ cou...
19.84
80
0.365927
vishu006
a5add4ca0e653a8ee608e04897de74ebb669a221
85,693
cc
C++
wrappers/7.0.0/vtkInformationWrap.cc
axkibe/node-vtk
900ad7b5500f672519da5aa24c99aa5a96466ef3
[ "BSD-3-Clause" ]
6
2016-02-03T12:48:36.000Z
2020-09-16T15:07:51.000Z
wrappers/7.0.0/vtkInformationWrap.cc
axkibe/node-vtk
900ad7b5500f672519da5aa24c99aa5a96466ef3
[ "BSD-3-Clause" ]
4
2016-02-13T01:30:43.000Z
2020-03-30T16:59:32.000Z
wrappers/7.0.0/vtkInformationWrap.cc
axkibe/node-vtk
900ad7b5500f672519da5aa24c99aa5a96466ef3
[ "BSD-3-Clause" ]
null
null
null
/* this file has been autogenerated by vtkNodeJsWrap */ /* editing this might proof futile */ #define VTK_WRAPPING_CXX #define VTK_STREAMS_FWD_ONLY #include <nan.h> #include "vtkObjectWrap.h" #include "vtkInformationWrap.h" #include "vtkInformationKeyWrap.h" #include "vtkInformationDataObjectKeyWrap.h" #include "vtkI...
33.486909
133
0.673906
axkibe
a5ae6638be528e85f34b267112c39cd0ebbff566
234
cpp
C++
Leetcode/1837.cpp
prameetu/CP_codes
41f8cfc188d2e08a8091bc5134247d05ba8a78f5
[ "MIT" ]
null
null
null
Leetcode/1837.cpp
prameetu/CP_codes
41f8cfc188d2e08a8091bc5134247d05ba8a78f5
[ "MIT" ]
null
null
null
Leetcode/1837.cpp
prameetu/CP_codes
41f8cfc188d2e08a8091bc5134247d05ba8a78f5
[ "MIT" ]
null
null
null
//leetcode - 1837 // Sum of Digits in Base K #include<bits/stdc++.h> using namespace std; int sumBase(int n, int k) { int ans(0); while(n) { ans += n%k; n = n/k; } return ans; }
13
27
0.474359
prameetu
a5b2b548a83801ae31d9f88a3effd20f13e606b5
4,033
cpp
C++
backtracking/setCover.cpp
SiverPineValley/algo
29c75c6b226fdb15a3b6695e763ee49d4871094e
[ "Apache-2.0" ]
null
null
null
backtracking/setCover.cpp
SiverPineValley/algo
29c75c6b226fdb15a3b6695e763ee49d4871094e
[ "Apache-2.0" ]
null
null
null
backtracking/setCover.cpp
SiverPineValley/algo
29c75c6b226fdb15a3b6695e763ee49d4871094e
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <cstdio> #include <cstdlib> #include <algorithm> #include <vector> #include <set> #include <functional> #include <stack> #include <cstring> using namespace std; // Array에서 사용할 Swap #define SWAP(x, y, temp) ( temp=x, x=y, y=temp ) /* 각 Subset들의 개수를 세는 함수 */ void calSets( vector<set<int>...
19.113744
83
0.547979
SiverPineValley
a5b3faeb8428232eda5bba0024247d8a7bb14053
3,269
cpp
C++
src/main/screens/notification_list.cpp
LeonMatthes/WatchyOS
d6a62695c8c7ca7fa26c13f4505b7f06b13e2fb9
[ "MIT" ]
2
2022-01-22T07:30:28.000Z
2022-01-27T14:03:35.000Z
src/main/screens/notification_list.cpp
LeonMatthes/WatchyOS
d6a62695c8c7ca7fa26c13f4505b7f06b13e2fb9
[ "MIT" ]
2
2022-02-02T14:22:44.000Z
2022-02-02T14:59:51.000Z
src/main/screens/notification_list.cpp
LeonMatthes/WatchyOS
d6a62695c8c7ca7fa26c13f4505b7f06b13e2fb9
[ "MIT" ]
1
2022-02-02T20:52:20.000Z
2022-02-02T20:52:20.000Z
#include "notification_list.h" #include "screens.h" #include <cstddef> #include <sstream> #include <esp_attr.h> #include <e_ink.h> using namespace e_ink; #include <event_queue.h> #include <notifications.h> #include <res/fonts/Inconsolata_Bold10pt7b.h> #include <res/fonts/Inconsolata_Bold7pt7b.h> #include <res/font...
25.146154
96
0.667177
LeonMatthes
a5b5806e67fbf11e74102992d8975b4e2c15d3a4
796
hh
C++
DezynePatterns/cyclic-io-pattern/src/cpp_impl/InputCpp.hh
dezyne/DezyneCommunity
08b33e13cbd36c1db5cbe94de0f51c207289eb4a
[ "MIT" ]
5
2017-11-07T09:09:28.000Z
2021-12-15T05:34:46.000Z
DezynePatterns/cyclic-io-pattern/src/cpp_impl/InputCpp.hh
dezyne/DezyneCommunity
08b33e13cbd36c1db5cbe94de0f51c207289eb4a
[ "MIT" ]
2
2019-05-22T10:12:23.000Z
2019-07-15T14:25:34.000Z
DezynePatterns/cyclic-io-pattern/src/cpp_impl/InputCpp.hh
dezyne/DezyneCommunity
08b33e13cbd36c1db5cbe94de0f51c207289eb4a
[ "MIT" ]
5
2017-12-04T13:02:07.000Z
2021-12-15T05:33:53.000Z
#pragma once #include "InputCpp.hh" class InputCpp : public skel::InputCpp { public: explicit InputCpp(const dzn::locator& dzn_locator) : skel::InputCpp(dzn_locator), _channel(nullptr), state(IInput::eState::idle) { _previous = _channel; } void setChannel(bool* channel) { _channel = channel;...
15.607843
56
0.614322
dezyne
a5c57a0d26939ba5a514f84d34d793836cee3472
11,365
cpp
C++
gerenciador.cpp
Mauriverti/trabalho3
b41493c938f7e0f08eb467c1bba474e88c1a8a3c
[ "MIT" ]
null
null
null
gerenciador.cpp
Mauriverti/trabalho3
b41493c938f7e0f08eb467c1bba474e88c1a8a3c
[ "MIT" ]
null
null
null
gerenciador.cpp
Mauriverti/trabalho3
b41493c938f7e0f08eb467c1bba474e88c1a8a3c
[ "MIT" ]
null
null
null
#include "gerenciador.h" Gerenciador::Gerenciador() { } string Gerenciador::getNomeDisco() { return this->nomeDisco.toStdString(); } void Gerenciador::setNomeDisco(string nome) { this->nomeDisco = QString::fromStdString(nome); } void Gerenciador::abrirDisco(QString nome) { QByteArray b...
34.755352
108
0.519754
Mauriverti
a5c7d0857637e8ef2fbc3dacb801320c48feae30
9,454
hxx
C++
opencascade/SelectMgr_TriangularFrustum.hxx
mgreminger/OCP
92eacb99497cd52b419c8a4a8ab0abab2330ed42
[ "Apache-2.0" ]
null
null
null
opencascade/SelectMgr_TriangularFrustum.hxx
mgreminger/OCP
92eacb99497cd52b419c8a4a8ab0abab2330ed42
[ "Apache-2.0" ]
null
null
null
opencascade/SelectMgr_TriangularFrustum.hxx
mgreminger/OCP
92eacb99497cd52b419c8a4a8ab0abab2330ed42
[ "Apache-2.0" ]
null
null
null
// Created on: 2014-05-22 // Created by: Varvara POSKONINA // Copyright (c) 2005-2014 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....
55.940828
155
0.628094
mgreminger
a5ca0fc2533e9031bfb9a0e419e2f0b0de107748
4,326
hpp
C++
mangrove_master/include/Inference/CheckTernaryMonotony.hpp
mangrove-univr/Mangrove
3d95096c7adfad5eb27625b020c222487e91ab4e
[ "MIT" ]
1
2019-12-28T09:30:24.000Z
2019-12-28T09:30:24.000Z
mangrove_master/include/Inference/CheckTernaryMonotony.hpp
mangrove-univr/Mangrove
3d95096c7adfad5eb27625b020c222487e91ab4e
[ "MIT" ]
1
2020-08-25T10:57:11.000Z
2020-08-25T10:57:11.000Z
mangrove_master/include/Inference/CheckTernaryMonotony.hpp
mangrove-univr/Mangrove
3d95096c7adfad5eb27625b020c222487e91ab4e
[ "MIT" ]
null
null
null
#pragma once #include "Inference/ResultCollector.hpp" #include <chrono> #include <random> #include <iostream> namespace mangrove { template <int F_INDEX> struct TEST_TERNARY_INVARIANT { inline static void ApplyT (numeric_t x1, numeric_t x2_1, numeric_t x2_2, int *mo...
42.831683
102
0.51988
mangrove-univr
a5cd308b5b67dd34784988aad2a49d19e3ee9bda
3,086
cpp
C++
tests/unit/sdf/actions/delayfile.cpp
qedalab/vcd_assert
40da307e60600fc4a814d4bba4679001f49f4375
[ "BSD-2-Clause" ]
1
2019-04-30T17:56:23.000Z
2019-04-30T17:56:23.000Z
tests/unit/sdf/actions/delayfile.cpp
qedalab/vcd_assert
40da307e60600fc4a814d4bba4679001f49f4375
[ "BSD-2-Clause" ]
null
null
null
tests/unit/sdf/actions/delayfile.cpp
qedalab/vcd_assert
40da307e60600fc4a814d4bba4679001f49f4375
[ "BSD-2-Clause" ]
4
2018-08-01T08:32:00.000Z
2019-12-18T06:34:33.000Z
#include "../types/delayfile.hpp" #include <parse/test/parse.hpp> using namespace Parse::Test; #include <sdf/grammar/delayfile.hpp> #include <sdf/actions/delayfile.hpp> #include <sdf/types/delayfile.hpp> #include <sdf/serialize/delayfile.hpp> // using namespace SDF; // using namespace SDF::Test; // constexpr auto p...
30.254902
77
0.681141
qedalab
a5ce785045b6cc7415884e3c722a14f962db9b86
25,799
cpp
C++
lib/Runtimes/Tracer/Tracer.cpp
seec-team/seec
4b92456011e86b70f9d88833a95c1f655a21cf1a
[ "MIT" ]
7
2018-06-25T12:06:13.000Z
2022-01-18T09:20:13.000Z
lib/Runtimes/Tracer/Tracer.cpp
seec-team/seec
4b92456011e86b70f9d88833a95c1f655a21cf1a
[ "MIT" ]
20
2016-12-01T23:46:12.000Z
2019-08-11T02:41:04.000Z
lib/Runtimes/Tracer/Tracer.cpp
seec-team/seec
4b92456011e86b70f9d88833a95c1f655a21cf1a
[ "MIT" ]
1
2020-10-19T03:20:05.000Z
2020-10-19T03:20:05.000Z
//===- lib/Runtimes/Tracer/Tracer.cpp -------------------------------------===// // // SeeC // // This file is distributed under The MIT License (MIT). See LICENSE.TXT for // details. // //===----------------------------------------------------------------------===// /// /// \file ///...
32.615676
80
0.656111
seec-team
a5d00e0de34eb91df41e4eff8d6d2902ae15fd93
1,336
cpp
C++
Contests/Codeforces/CF912/d.cpp
SYCstudio/OI
6e9bfc17dbd4b43467af9b19aa2aed41e28972fa
[ "MIT" ]
4
2017-10-31T14:25:18.000Z
2018-06-10T16:10:17.000Z
Contests/Codeforces/CF912/d.cpp
SYCstudio/OI
6e9bfc17dbd4b43467af9b19aa2aed41e28972fa
[ "MIT" ]
null
null
null
Contests/Codeforces/CF912/d.cpp
SYCstudio/OI
6e9bfc17dbd4b43467af9b19aa2aed41e28972fa
[ "MIT" ]
null
null
null
#include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<algorithm> #include<queue> #include<cmath> using namespace std; #define mem(Arr,x) memset(Arr,x,sizeof(Arr)) #define ld long double const int maxN=10001; const int F1[5]={0,0,0,1,-1}; const int F2[5]={0,1,-1,0,0}; const int inf=214748364...
18.054054
100
0.545659
SYCstudio
a5d0e7b600424ca694873f487010cad7eca3bff2
3,768
hpp
C++
src/backends/opengl/OpenglBuffer.hpp
AntonHakansson/KvantEngine
f101fc771a8e9eca8ced59a084b9be0169e95649
[ "MIT" ]
null
null
null
src/backends/opengl/OpenglBuffer.hpp
AntonHakansson/KvantEngine
f101fc771a8e9eca8ced59a084b9be0169e95649
[ "MIT" ]
2
2017-04-05T01:50:13.000Z
2017-08-10T00:58:26.000Z
src/backends/opengl/OpenglBuffer.hpp
AntonHakansson/KvantEngine
f101fc771a8e9eca8ced59a084b9be0169e95649
[ "MIT" ]
null
null
null
#ifndef OPENGL_BUFFER_HPP_INCLUDED #define OPENGL_BUFFER_HPP_INCLUDED #include <vector> #include "core/Context.hpp" #include "core/Loader.hpp" #include "utils/Checks.hpp" namespace Kvant::graphics::opengl { template <typename B> struct OpenglColorBuffer { static int counter; GLuint tex; GLuint unit; unsigne...
30.144
80
0.711518
AntonHakansson
a5d40c64c9e77d24d58e51f957a1fe981eaac386
978
cpp
C++
Day9_MaximumWidthOfBinaryTree.cpp
SuYuxi/July-LeetCoding-Challenge
8a1b3893d4a5869bac483eefe97650e754e7298b
[ "MIT" ]
null
null
null
Day9_MaximumWidthOfBinaryTree.cpp
SuYuxi/July-LeetCoding-Challenge
8a1b3893d4a5869bac483eefe97650e754e7298b
[ "MIT" ]
null
null
null
Day9_MaximumWidthOfBinaryTree.cpp
SuYuxi/July-LeetCoding-Challenge
8a1b3893d4a5869bac483eefe97650e754e7298b
[ "MIT" ]
null
null
null
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), right(nullptr) {} * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} * TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l...
30.5625
93
0.576687
SuYuxi
a5d9e0b684c88126bee2455d0224bfe6cadeea05
3,107
cpp
C++
anno/LabelDefinition.cpp
urobots-io/anno
8e240185e6fc0908687b15a39c892814a6bddee6
[ "MIT" ]
9
2020-07-17T05:28:52.000Z
2022-03-03T18:26:12.000Z
anno/LabelDefinition.cpp
urobots-io/anno
8e240185e6fc0908687b15a39c892814a6bddee6
[ "MIT" ]
null
null
null
anno/LabelDefinition.cpp
urobots-io/anno
8e240185e6fc0908687b15a39c892814a6bddee6
[ "MIT" ]
null
null
null
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com // // Anno Labeling Tool // 2020-2021 (c) urobots GmbH, https://urobots.io #include "LabelDefinition.h" #include "FileModel.h" #include "PropertyDatabas...
29.311321
164
0.668491
urobots-io
7774424b3dae089ee08c67ae44dfe55abf728814
8,539
cc
C++
fib.cc
yhirose/fiblang
af5b9dec8831e85119b214249942217e13877397
[ "MIT" ]
null
null
null
fib.cc
yhirose/fiblang
af5b9dec8831e85119b214249942217e13877397
[ "MIT" ]
null
null
null
fib.cc
yhirose/fiblang
af5b9dec8831e85119b214249942217e13877397
[ "MIT" ]
null
null
null
// // FibLang // A Programming Language just for writing Fibonacci number program. :) // // Copyright (c) 2021 Yuji Hirose. All rights reserved. MIT License // MIT License // #include <fstream> #include <variant> #include "peglib.h" using namespace std; using namespace peg; using namespace peg::udl; //---------...
26.936909
79
0.494437
yhirose
77759896e92425900c15df9621f476c1f3859cfb
10,769
hpp
C++
include/util/sorted.hpp
sourcechris/util
79f190df7b42130e28dfd8ac830241144c1b5fe7
[ "MIT" ]
null
null
null
include/util/sorted.hpp
sourcechris/util
79f190df7b42130e28dfd8ac830241144c1b5fe7
[ "MIT" ]
null
null
null
include/util/sorted.hpp
sourcechris/util
79f190df7b42130e28dfd8ac830241144c1b5fe7
[ "MIT" ]
1
2021-06-07T20:41:23.000Z
2021-06-07T20:41:23.000Z
// SPDX-FileCopyrightText: 2021 Christian Göhring <mostsig@gmail.com> // SPDX-License-Identifier: MIT #ifndef THAT_THIS_UTIL_SORTED_HEADER_IS_ALREADY_INCLUDED #define THAT_THIS_UTIL_SORTED_HEADER_IS_ALREADY_INCLUDED #include <algorithm> #include <array> #include <forward_list> #include <functional> #include <list> #i...
33.548287
99
0.694865
sourcechris
77769a710f836504bd6def77d5b409fba8c7f64e
3,628
cc
C++
src/DataOutput/RestartableObject.cc
jmikeowen/Spheral
3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
22
2018-07-31T21:38:22.000Z
2020-06-29T08:58:33.000Z
src/DataOutput/RestartableObject.cc
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
41
2020-09-28T23:14:27.000Z
2022-03-28T17:01:33.000Z
src/DataOutput/RestartableObject.cc
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
7
2019-12-01T07:00:06.000Z
2020-09-15T21:12:39.000Z
//---------------------------------Spheral++----------------------------------// // RestartableObject // This is an object that handles registering it's descendents with the // RestartRegistrar. The idea here is you just inherit from this bad boy, // and blamo you're restartable. // This is intended solely for use m...
37.402062
113
0.54548
jmikeowen
77779a2674b18d0efd2901918439a4b0c7221463
992
cpp
C++
BZOJ/3111/std.cpp
sjj118/OI-Code
964ea6e799d14010f305c7e4aee269d860a781f7
[ "MIT" ]
null
null
null
BZOJ/3111/std.cpp
sjj118/OI-Code
964ea6e799d14010f305c7e4aee269d860a781f7
[ "MIT" ]
null
null
null
BZOJ/3111/std.cpp
sjj118/OI-Code
964ea6e799d14010f305c7e4aee269d860a781f7
[ "MIT" ]
null
null
null
#include <stdio.h> #include <string.h> #include <algorithm> #include <iostream> using namespace std; #define inf 1000000000 const int maxn=120; int n,m,k,ans,a[maxn][maxn],f[maxn][25][maxn],g[maxn][25][maxn][2],s[maxn][maxn]; int main(){ scanf("%d%d%d",&n,&m,&k); k=k*2+1; for (int i=1;i<=n;i++) fo...
26.105263
81
0.454637
sjj118
777f0c84ed9b688e6f9a2134a0f4c50c334b8220
1,016
hpp
C++
program/kmeans.hpp
yk-tanigawa/201503_clustering
43a11e707c08f1576e5765824c74330b6730e7e9
[ "MIT" ]
null
null
null
program/kmeans.hpp
yk-tanigawa/201503_clustering
43a11e707c08f1576e5765824c74330b6730e7e9
[ "MIT" ]
2
2015-02-26T16:52:41.000Z
2015-02-26T16:53:14.000Z
program/kmeans.hpp
yk-tanigawa/201503_clustering
43a11e707c08f1576e5765824c74330b6730e7e9
[ "MIT" ]
null
null
null
#ifndef _UBLAS_ #define _UBLAS_ #include <boost/numeric/ublas/matrix.hpp> #include <boost/numeric/ublas/vector.hpp> #include <boost/numeric/ublas/matrix_proxy.hpp> #include <boost/numeric/ublas/io.hpp> #endif #ifndef _KMEANS_ #define _KMEANS_ using namespace boost::numeric::ublas; using namespace boost::numeric; d...
22.577778
71
0.644685
yk-tanigawa
777f9906eb214b6b704e9155b88c1faa227fe0b3
6,493
cpp
C++
Code/IntroGame/DemoScreens/DemoScreenParticleActors.cpp
EvGamer/midspace
c16f39d7e59ff4bf51dff9de1a135ddf321e2f32
[ "BSD-3-Clause" ]
171
2015-01-08T10:35:56.000Z
2021-07-03T12:35:10.000Z
Code/IntroGame/DemoScreens/DemoScreenParticleActors.cpp
EvGamer/midspace
c16f39d7e59ff4bf51dff9de1a135ddf321e2f32
[ "BSD-3-Clause" ]
11
2015-01-30T05:30:54.000Z
2017-04-08T23:34:33.000Z
Code/IntroGame/DemoScreens/DemoScreenParticleActors.cpp
EvGamer/midspace
c16f39d7e59ff4bf51dff9de1a135ddf321e2f32
[ "BSD-3-Clause" ]
59
2015-02-01T03:43:00.000Z
2020-12-01T02:08:57.000Z
////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2008-2014, Shane Liesegang // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redist...
40.836478
98
0.703527
EvGamer
7783b630dbb68c531fc4febda0b67d0ef4e4fa65
23
cpp
C++
src/boardgame/move_list.cpp
edersasch/boardgames
48c24e6796d46e106723551688d2bb1c7d6aac36
[ "MIT" ]
4
2019-04-17T09:19:31.000Z
2020-12-30T04:11:08.000Z
src/boardgame/move_list.cpp
edersasch/boardgames
48c24e6796d46e106723551688d2bb1c7d6aac36
[ "MIT" ]
1
2019-04-16T20:04:01.000Z
2019-04-16T20:04:01.000Z
src/boardgame/move_list.cpp
edersasch/boardgames
48c24e6796d46e106723551688d2bb1c7d6aac36
[ "MIT" ]
1
2019-04-15T09:21:01.000Z
2019-04-15T09:21:01.000Z
#include "move_list.h"
11.5
22
0.73913
edersasch
77848e1270c78f4820e603c71016029de5f4304e
1,544
hpp
C++
Sockets/Base/MSSocket.hpp
MihaelShevchuk/MSSocketLibrary
6ec75fea90221026a5a5ec302b56b93b83bfbf01
[ "BSD-2-Clause" ]
null
null
null
Sockets/Base/MSSocket.hpp
MihaelShevchuk/MSSocketLibrary
6ec75fea90221026a5a5ec302b56b93b83bfbf01
[ "BSD-2-Clause" ]
null
null
null
Sockets/Base/MSSocket.hpp
MihaelShevchuk/MSSocketLibrary
6ec75fea90221026a5a5ec302b56b93b83bfbf01
[ "BSD-2-Clause" ]
null
null
null
// // MSSocket.hpp // MSSocketLibrary // // Created by Mihail Shevchuk on 15.01.18. // Copyright © 2018 Mihail Shevchuk. All rights reserved. // #ifndef MSSocket_hpp #define MSSocket_hpp #include "MSErrorManager.hpp" class MSSocket { public: MSSocket(MSEventType type, pChar ip, uint32_t port, uint32_t sizeBu...
24.125
77
0.696891
MihaelShevchuk
7784b18f9934a659e614743e3a40f4325807d468
1,250
cc
C++
src/twpipe/ensemble.cc
hjian42/twpipe
d18e4a507f110a0d006aebc2f46553bd28c81db7
[ "MIT" ]
31
2018-04-13T14:52:24.000Z
2021-08-02T07:13:07.000Z
src/twpipe/ensemble.cc
hjian42/twpipe
d18e4a507f110a0d006aebc2f46553bd28c81db7
[ "MIT" ]
8
2018-07-05T01:58:20.000Z
2019-08-09T06:07:27.000Z
src/twpipe/ensemble.cc
hjian42/twpipe
d18e4a507f110a0d006aebc2f46553bd28c81db7
[ "MIT" ]
6
2018-07-04T17:57:29.000Z
2022-01-15T17:47:50.000Z
#include "ensemble.h" #include "json.hpp" #include <iostream> #include <fstream> namespace twpipe { const char* EnsembleInstance::id_name = "id"; const char* EnsembleInstance::category_name = "category"; const char* EnsembleInstance::prob_name = "prob"; EnsembleInstance::EnsembleInstance(unsigned id, ...
34.722222
124
0.6384
hjian42
77859fe085a63f10c2f76cd33b11a2609e04f5af
429
hh
C++
succosim/include/Analysis.hh
mattiasoldani/succosim_22_desy_preshower
d326bee8875c8f85b3730e20e9257b722a8f5313
[ "MIT" ]
null
null
null
succosim/include/Analysis.hh
mattiasoldani/succosim_22_desy_preshower
d326bee8875c8f85b3730e20e9257b722a8f5313
[ "MIT" ]
null
null
null
succosim/include/Analysis.hh
mattiasoldani/succosim_22_desy_preshower
d326bee8875c8f85b3730e20e9257b722a8f5313
[ "MIT" ]
null
null
null
#ifndef ANALYSIS_HH #define ANALYSIS_HH using namespace std; // header for all the analysis & data output stuff // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv // select the output data file format here by including the proper header (only 1 at a time) // note: CSV format does not support custom file path & na...
26.8125
92
0.67366
mattiasoldani
7787f43ff6163a0a9e65ed62ef42ee749fa5a99b
50,404
cpp
C++
vm/external_libs/llvm/lib/Target/ARM/ARMRegisterInfo.cpp
marnen/rubinius
05b3f9789d01bada0604a7f09921c956bc9487e7
[ "BSD-3-Clause" ]
1
2016-05-08T16:58:14.000Z
2016-05-08T16:58:14.000Z
vm/external_libs/llvm/lib/Target/ARM/ARMRegisterInfo.cpp
taf2/rubinius
493bfa2351fc509ca33d3bb03991c2e9c2b6dafa
[ "BSD-3-Clause" ]
null
null
null
vm/external_libs/llvm/lib/Target/ARM/ARMRegisterInfo.cpp
taf2/rubinius
493bfa2351fc509ca33d3bb03991c2e9c2b6dafa
[ "BSD-3-Clause" ]
null
null
null
//===- ARMRegisterInfo.cpp - ARM Register Information -----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
36.314121
84
0.613463
marnen
779074fbbffbc7357b8cd6be45810012719a662a
1,861
cpp
C++
source/Ch05/Sajat/sajat_drill5.cpp
BuganBarna/UDProg-Introduction
506c61e41e8651371b02299602b521e4c3e267eb
[ "CC0-1.0" ]
null
null
null
source/Ch05/Sajat/sajat_drill5.cpp
BuganBarna/UDProg-Introduction
506c61e41e8651371b02299602b521e4c3e267eb
[ "CC0-1.0" ]
null
null
null
source/Ch05/Sajat/sajat_drill5.cpp
BuganBarna/UDProg-Introduction
506c61e41e8651371b02299602b521e4c3e267eb
[ "CC0-1.0" ]
null
null
null
#include "std_lib_facilities.h" int main() try{ //cout << " Success!\n "; //cout << " Success!\n"; //cout << " Success " << "!\n "; //cout << "success" << '\n'; //int res = 7; vector<int> v(10); v[5] = res; cout << " Success!\n " ; //vector<int> v(10); v[5] = 7; if (v[5]==7) cout << " Success!\n " ; //bool cond...
42.295455
80
0.484686
BuganBarna
7791671bd3577ac27dbf86e718c0abcd5fc52105
9,945
cpp
C++
src/database.cpp
ZyperPL/TVCTL
a0ebd73fc1307c59a4846be3a12d1b30f031e185
[ "MIT" ]
null
null
null
src/database.cpp
ZyperPL/TVCTL
a0ebd73fc1307c59a4846be3a12d1b30f031e185
[ "MIT" ]
null
null
null
src/database.cpp
ZyperPL/TVCTL
a0ebd73fc1307c59a4846be3a12d1b30f031e185
[ "MIT" ]
null
null
null
#include "database.h" Database::Database() { } Database::~Database() { for (size_t i = 0; i < this->list.size(); i++) { delete (this->list.at(i)); } } bool Database::addSeries(std::string data) { rapidxml::xml_document<> doc; doc.parse<0>((char *)data.c_str()); rapidxml::xml_node<> *node = doc.firs...
28.826087
221
0.533937
ZyperPL
7791cb2049c025493a73c5008186d04d3cc81230
3,939
cpp
C++
1066.campus-bikes-ii.cpp
bsmsnd/LeetCode-CharlieChen
db72f0a3463c9e723aac800cdbe38218b36aa639
[ "MIT" ]
null
null
null
1066.campus-bikes-ii.cpp
bsmsnd/LeetCode-CharlieChen
db72f0a3463c9e723aac800cdbe38218b36aa639
[ "MIT" ]
null
null
null
1066.campus-bikes-ii.cpp
bsmsnd/LeetCode-CharlieChen
db72f0a3463c9e723aac800cdbe38218b36aa639
[ "MIT" ]
null
null
null
/* * @lc app=leetcode id=1066 lang=cpp * * [1066] Campus Bikes II */ // @lc code=start // class Solution { // public: // int dist[12][12]; // int dp[1024][1024]; // // int N, M; // int assignBikes(vector<vector<int>>& workers, vector<vector<int>>& bikes) { // const int N = workers.size(); ...
37.514286
179
0.370145
bsmsnd
7795e0b81fa8628b39a413e6fd2280c73ad3e4a4
5,331
cpp
C++
PendingNameEngine/ModuleCamera3D.cpp
GuillemD/PendingNameEngine-3D
37454931f14b4b278de1d2898d032c822f754618
[ "MIT" ]
null
null
null
PendingNameEngine/ModuleCamera3D.cpp
GuillemD/PendingNameEngine-3D
37454931f14b4b278de1d2898d032c822f754618
[ "MIT" ]
null
null
null
PendingNameEngine/ModuleCamera3D.cpp
GuillemD/PendingNameEngine-3D
37454931f14b4b278de1d2898d032c822f754618
[ "MIT" ]
null
null
null
#include "Globals.h" #include "Application.h" #include "ModuleCamera3D.h" ModuleCamera3D::ModuleCamera3D(Application* app, bool start_enabled) : Module(start_enabled) { CalculateViewMatrix(); X = vec3(1.0f, 0.0f, 0.0f); Y = vec3(0.0f, 1.0f, 0.0f); Z = vec3(0.0f, 0.0f, 1.0f); Position = vec3(0.0f, 0.0f, 5.0f); ...
23.077922
147
0.575877
GuillemD
77a87c176ea569acdd576dd7abaf9b768be02a78
3,323
cpp
C++
src/dale/Form/Proc/Token/Token.cpp
ChengCat/dale
4a764895611679cd1670d9a43ffdbee136661759
[ "BSD-3-Clause" ]
1,083
2015-03-18T09:42:49.000Z
2022-03-29T03:17:47.000Z
src/dale/Form/Proc/Token/Token.cpp
ChengCat/dale
4a764895611679cd1670d9a43ffdbee136661759
[ "BSD-3-Clause" ]
195
2015-01-04T03:06:41.000Z
2022-03-18T18:16:27.000Z
src/dale/Form/Proc/Token/Token.cpp
ChengCat/dale
4a764895611679cd1670d9a43ffdbee136661759
[ "BSD-3-Clause" ]
56
2015-03-18T20:02:13.000Z
2022-01-22T19:35:27.000Z
#include "Token.h" #include <cstdio> #include <string> #include "../../../llvmUtils/llvmUtils.h" #include "../../Literal/Literal.h" using namespace dale::ErrorInst; namespace dale { void parseVariableLiteral(Context *ctx, llvm::BasicBlock *block, Node *node, bool get_address, ...
29.669643
72
0.543786
ChengCat
77aad21385da384b45e18359fea0eff151c200ad
6,998
hxx
C++
include/Mapper.hxx
broken-bytes/ControllerKit
1045d304c613455f3564d7d225b8a6ed90c8a48a
[ "MIT" ]
null
null
null
include/Mapper.hxx
broken-bytes/ControllerKit
1045d304c613455f3564d7d225b8a6ed90c8a48a
[ "MIT" ]
null
null
null
include/Mapper.hxx
broken-bytes/ControllerKit
1045d304c613455f3564d7d225b8a6ed90c8a48a
[ "MIT" ]
1
2020-12-03T09:55:03.000Z
2020-12-03T09:55:03.000Z
#pragma once #include <bitset> #include <map> #include <memory> #include <winrt/Windows.Gaming.Input.h> #include "ControllerKit.hxx" using namespace winrt::Windows::Gaming::Input; namespace BrokenBytes::ControllerKit::Mapping { /// <summary> /// Holds the raw bianry values for each DPad state on DualSense and Dual...
30.034335
92
0.698485
broken-bytes
77b3359f6740744239f4f502c8d07931b3ed1eec
994
cpp
C++
src/losses/MeanSquareLoss.cpp
AvocadoML/Avocado
9595cc5994d916f0ecb24873a5afa98437977fb5
[ "Apache-2.0" ]
null
null
null
src/losses/MeanSquareLoss.cpp
AvocadoML/Avocado
9595cc5994d916f0ecb24873a5afa98437977fb5
[ "Apache-2.0" ]
null
null
null
src/losses/MeanSquareLoss.cpp
AvocadoML/Avocado
9595cc5994d916f0ecb24873a5afa98437977fb5
[ "Apache-2.0" ]
null
null
null
/* * MeanSquareLoss.cpp * * Created on: Feb 16, 2021 * Author: Maciej Kozarzewski */ #include <Avocado/losses/MeanSquareLoss.hpp> #include <Avocado/core/Scalar.hpp> #include <Avocado/math/training.hpp> #include <Avocado/utils/json.hpp> #include <Avocado/utils/static_block.hpp> namespace avocado { static_b...
24.243902
125
0.739437
AvocadoML
77b38b5f9951d4f59d7dffe1272a9e9c5fe7ee3d
516
hpp
C++
include/RED4ext/Types/generated/FunctionalTestsGameEngine.hpp
Sombra0xCC/RED4ext.SDK
218b411991ed0b7cb7acd5efdddd784f31c66f20
[ "MIT" ]
1
2021-02-01T23:07:50.000Z
2021-02-01T23:07:50.000Z
include/RED4ext/Types/generated/FunctionalTestsGameEngine.hpp
Sombra0xCC/RED4ext.SDK
218b411991ed0b7cb7acd5efdddd784f31c66f20
[ "MIT" ]
null
null
null
include/RED4ext/Types/generated/FunctionalTestsGameEngine.hpp
Sombra0xCC/RED4ext.SDK
218b411991ed0b7cb7acd5efdddd784f31c66f20
[ "MIT" ]
null
null
null
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/REDhash.hpp> #include <RED4ext/Types/generated/CGameEngine.hpp> namespace RED4ext { struct FunctionalTestsGameEngine : CGameEngine { static constexpr const char* NAME = "Funct...
24.571429
68
0.765504
Sombra0xCC
77b8dad5cca440350383b113d361b111af2ac779
1,289
cpp
C++
eclipse/sdblib/src/SDBString.cpp
ccpgh/example1
2c84b56455ce1cacac69db20b4081fc9c073270d
[ "MIT" ]
null
null
null
eclipse/sdblib/src/SDBString.cpp
ccpgh/example1
2c84b56455ce1cacac69db20b4081fc9c073270d
[ "MIT" ]
null
null
null
eclipse/sdblib/src/SDBString.cpp
ccpgh/example1
2c84b56455ce1cacac69db20b4081fc9c073270d
[ "MIT" ]
null
null
null
#include <algorithm> #include <functional> #include <cstring> #include <memory> #include "SDBString.h" namespace sdblib { std::string SDBString::ltrim(const std::string& string) { std::string s{string}; s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<int, int>(std::isspac...
21.131148
78
0.647789
ccpgh
77b98cd865fcc85db3290e37cecf2f64851a2165
3,454
hpp
C++
include/cppdevtk/config/architecture.hpp
CoSoSys/cppdevtk
99d6c3d328c05a55dae54e82fcbedad93d0cfaa0
[ "BSL-1.0", "Apache-2.0" ]
null
null
null
include/cppdevtk/config/architecture.hpp
CoSoSys/cppdevtk
99d6c3d328c05a55dae54e82fcbedad93d0cfaa0
[ "BSL-1.0", "Apache-2.0" ]
null
null
null
include/cppdevtk/config/architecture.hpp
CoSoSys/cppdevtk
99d6c3d328c05a55dae54e82fcbedad93d0cfaa0
[ "BSL-1.0", "Apache-2.0" ]
null
null
null
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// \file /// /// \copyright Copyright (C) 2015 - 2020 CoSoSys Ltd <info@cososys.com>\n /// Licensed under the Apache License, Version 2.0 (the "License");\n /// you may not use this file e...
28.545455
126
0.644181
CoSoSys
77c5503f7f07bc722fbdfc93fe3833bd108f0109
2,647
cpp
C++
src/db/block.cpp
WeeJang/fish-db
4dc50568e0f531c76b8f44e531d0db8e1f6d158a
[ "MIT" ]
2
2017-12-12T07:54:38.000Z
2021-12-21T15:17:36.000Z
src/db/block.cpp
WeeJang/fish-db
4dc50568e0f531c76b8f44e531d0db8e1f6d158a
[ "MIT" ]
null
null
null
src/db/block.cpp
WeeJang/fish-db
4dc50568e0f531c76b8f44e531d0db8e1f6d158a
[ "MIT" ]
null
null
null
#include "block.h" namespace db { void BlockData::write(const char* p_data, size_t data_size) { assert(data_size <= BLOCK_DATA_SIZE_LIMIT); init(); memcpy(data_, p_data, data_size); } // NOTE: this constexpr char Block::BLOCK_MAGIC_NUM[8]; void Block::dump(const std::string& filename) { strcpy(magic_num_, B...
29.087912
79
0.628636
WeeJang
77c731cf41282d3b347a67fc41ca33fb1a05b294
7,070
cpp
C++
sedit.cpp
Llewellynvdm/id3
b6413124856b1eb170f81b2f66cecf1f13235673
[ "BSD-2-Clause" ]
108
2015-01-16T16:05:07.000Z
2022-03-31T12:13:51.000Z
sedit.cpp
Llewellynvdm/id3
b6413124856b1eb170f81b2f66cecf1f13235673
[ "BSD-2-Clause" ]
26
2015-05-27T00:00:51.000Z
2022-02-20T15:03:44.000Z
sedit.cpp
Llewellynvdm/id3
b6413124856b1eb170f81b2f66cecf1f13235673
[ "BSD-2-Clause" ]
11
2016-07-18T22:15:22.000Z
2022-03-13T00:45:31.000Z
#include <string> #include <vector> #include <algorithm> #include <cwctype> #include <cctype> #include "sedit.h" /* copyright (c) 2006 squell <squell@alumina.nl> use, modification, copying and distribution of this software is permitted under the conditions described in the file 'COPYING'. */ using namespace ...
26.984733
90
0.478784
Llewellynvdm
77cd6560740b74eb056658a8309fa7d61fb11c3a
3,516
cpp
C++
test/utils/Configuration.cpp
hpc/hxhim
1a2224a200cb5a9fae33da13720e68beb5bee746
[ "BSD-3-Clause" ]
2
2020-11-25T17:45:58.000Z
2021-12-21T02:01:16.000Z
test/utils/Configuration.cpp
hpc/hxhim
1a2224a200cb5a9fae33da13720e68beb5bee746
[ "BSD-3-Clause" ]
null
null
null
test/utils/Configuration.cpp
hpc/hxhim
1a2224a200cb5a9fae33da13720e68beb5bee746
[ "BSD-3-Clause" ]
1
2021-10-11T19:54:05.000Z
2021-10-11T19:54:05.000Z
#include <sstream> #include <gtest/gtest.h> #include "utils/Configuration.hpp" // Context for reading configuration from a string class ConfigOnePair : public Config::Reader { public: ConfigOnePair(const std::string &src) : Config::Reader(), src(src) {} bool pro...
27.685039
69
0.643629
hpc
77ce52941a47394c9e715143cdc9d25c574f6c93
542
cpp
C++
algo2.cpp
zyfjeff/utils_code
034b1a0ff9ae4f7cebafdd7cfa464cc52119ab24
[ "Apache-2.0" ]
null
null
null
algo2.cpp
zyfjeff/utils_code
034b1a0ff9ae4f7cebafdd7cfa464cc52119ab24
[ "Apache-2.0" ]
null
null
null
algo2.cpp
zyfjeff/utils_code
034b1a0ff9ae4f7cebafdd7cfa464cc52119ab24
[ "Apache-2.0" ]
1
2020-02-21T17:16:50.000Z
2020-02-21T17:16:50.000Z
#include <cinttypes> #include <iostream> #include <vector> using namespace std; int main(int argc,char* argv[]) { using IntVector = vector<int32_t>; using IntVectorIterator = IntVector::iterator; IntVector myVector{5,0}; int32_t value{0}; for(IntVectorIterator iter = myVector.begin();iter != myVector.end();++it...
20.074074
76
0.671587
zyfjeff
77ce69163fc01cb61bc487c0a282f69b98d495be
2,070
hpp
C++
test/TestDatastore.hpp
hpc/hxhim
1a2224a200cb5a9fae33da13720e68beb5bee746
[ "BSD-3-Clause" ]
2
2020-11-25T17:45:58.000Z
2021-12-21T02:01:16.000Z
test/TestDatastore.hpp
hpc/hxhim
1a2224a200cb5a9fae33da13720e68beb5bee746
[ "BSD-3-Clause" ]
null
null
null
test/TestDatastore.hpp
hpc/hxhim
1a2224a200cb5a9fae33da13720e68beb5bee746
[ "BSD-3-Clause" ]
1
2021-10-11T19:54:05.000Z
2021-10-11T19:54:05.000Z
#ifndef TEST_DATASTORE_HPP #define TEST_DATASTORE_HPP #include <map> #include "datastore/datastore.hpp" const std::chrono::microseconds PUT_TIME(123); const std::chrono::microseconds GET_TIME(456); const uint64_t PUT_TIME_UINT64 = std::chrono::duration_cast<std::chrono::nanoseconds>(PUT_TIME).count(); const uint64_t...
35.084746
104
0.617391
hpc
77d57415ada825d8bcbb793de03e0056c4eea7e7
377
cpp
C++
TongueQT/TongueQT/src/ColorTable/Colortable.cpp
lrkk1234/TongueSimulation
347cf38452aa62d1173da1c4935f691456255e46
[ "MIT" ]
2
2020-03-28T03:15:49.000Z
2020-09-09T02:54:33.000Z
TongueQT/TongueQT/src/ColorTable/Colortable.cpp
lrkk1234/TongueSimulation
347cf38452aa62d1173da1c4935f691456255e46
[ "MIT" ]
null
null
null
TongueQT/TongueQT/src/ColorTable/Colortable.cpp
lrkk1234/TongueSimulation
347cf38452aa62d1173da1c4935f691456255e46
[ "MIT" ]
2
2020-09-08T19:28:19.000Z
2021-07-25T00:35:26.000Z
#include "Colortable.h" int getColor(int index, double* colors) { int tablesize = sizeof(colortable) / sizeof(float)/3; index %= tablesize; colors[0] = colortable[index * 3 + 0]; colors[1] = colortable[index * 3 + 1]; colors[2] = colortable[index * 3 + 2]; return 0; } int getColorSize() { int tablesize = sizeo...
19.842105
56
0.668435
lrkk1234
77d636a01dd3ac962f7cc3689ccda991d9924013
20,444
hpp
C++
old.sets.hpp
JanX2/red-black-and-interval-trees
4b78646b63ac95dfaac5c3756cfd1ebf4d165a32
[ "BSD-3-Clause" ]
null
null
null
old.sets.hpp
JanX2/red-black-and-interval-trees
4b78646b63ac95dfaac5c3756cfd1ebf4d165a32
[ "BSD-3-Clause" ]
1
2018-10-30T21:19:23.000Z
2018-10-30T21:19:23.000Z
old.sets.hpp
JanX2/red-black-and-interval-trees
4b78646b63ac95dfaac5c3756cfd1ebf4d165a32
[ "BSD-3-Clause" ]
null
null
null
// Note that until the bug in egcs-2.90.27 980315 (egcs-1.0.2 release) // gets fixed this file needs to be compiled with -fguiding-decls. // Trying to fix the warning caused by compiling without -fguiding-decls // causes an internal compiler error. #ifndef _INC_SETS_DOT_H #define _INC_SETS_DOT_H #include<stdio.h> ...
31.117199
86
0.676042
JanX2
77da78662c025ba2b6db6c4ff67e4fdeadd85fb0
453
hpp
C++
src/include/XEUI/widgets/UIElement.hpp
devxkh/FrankE
72faca02759b54aaec842831f3c7a051e7cf5335
[ "MIT" ]
11
2017-01-17T15:02:25.000Z
2020-11-27T16:54:42.000Z
src/include/XEUI/widgets/UIElement.hpp
devxkh/FrankE
72faca02759b54aaec842831f3c7a051e7cf5335
[ "MIT" ]
9
2016-10-23T20:15:38.000Z
2018-02-06T11:23:17.000Z
src/include/XEUI/widgets/UIElement.hpp
devxkh/FrankE
72faca02759b54aaec842831f3c7a051e7cf5335
[ "MIT" ]
2
2019-08-29T10:23:51.000Z
2020-04-03T06:08:34.000Z
#ifndef UI_ELEMENT_HPP #define UI_ELEMENT_HPP #include <XEOSConfig.hpp> #include <XEUI/Object.hpp> #include <XESystem/XEMemory/XEMemoryPrerequisites.hpp> namespace XE { namespace UI { class UIElement : public Object { public: UIElement(Uint32 id) { mID = id; } Uint32 getID(){ return mID; } private: Uint32 mID...
16.178571
54
0.719647
devxkh
77dc4d0f84511377a00b22287cf6d593d2ce2937
4,053
hpp
C++
slope/slope/math/quat.hpp
muleax/slope
254138703163705b57332fc7490dd2eea0082b57
[ "MIT" ]
6
2022-02-05T23:28:12.000Z
2022-02-24T11:08:04.000Z
slope/slope/math/quat.hpp
muleax/slope
254138703163705b57332fc7490dd2eea0082b57
[ "MIT" ]
null
null
null
slope/slope/math/quat.hpp
muleax/slope
254138703163705b57332fc7490dd2eea0082b57
[ "MIT" ]
null
null
null
#pragma once #include "slope/math/vector4.hpp" namespace slope { class mat33; class mat44; class quat { public: static quat rotation(const vec3& axis, float angle); static quat shortest_arc(const vec3& from, const vec3& to, const vec3& spin_axis); constexpr quat() :...
31.418605
106
0.551443
muleax
77e6ec459efd277db5f79e49a1018eeb50d78e65
2,419
cpp
C++
src/material.cpp
dylangentile/path_tracer
6393bb806a30e377f5d12ffc5f61b004f5a7ce8e
[ "MIT" ]
null
null
null
src/material.cpp
dylangentile/path_tracer
6393bb806a30e377f5d12ffc5f61b004f5a7ce8e
[ "MIT" ]
null
null
null
src/material.cpp
dylangentile/path_tracer
6393bb806a30e377f5d12ffc5f61b004f5a7ce8e
[ "MIT" ]
null
null
null
#include "material.h" #include "object.h" Material::Material() { } Material::~Material(){} Color Material::emitted(double u, double v, const Point3& p) const { return Color(0.0, 0.0, 0.0); //by default materials don't emit light } Lambertian::Lambertian(const Color& a) : m_albedo(a) {} Lambertian::~Lambertian(){...
25.197917
100
0.710624
dylangentile
77e7b26d510a83dde1d86b0bdbbadda9d386e9e0
511
hpp
C++
include/ananasgfx/ui/design/material/ButtonFlat.hpp
pcbaecker/ananasgfx
0637554bf82b990713314a24e4a6ead299be949a
[ "MIT" ]
1
2019-01-28T13:48:17.000Z
2019-01-28T13:48:17.000Z
include/ananasgfx/ui/design/material/ButtonFlat.hpp
pcbaecker/ananasgfx
0637554bf82b990713314a24e4a6ead299be949a
[ "MIT" ]
11
2019-01-28T13:59:36.000Z
2019-02-09T14:59:23.000Z
include/ananasgfx/ui/design/material/ButtonFlat.hpp
pcbaecker/ananasgfx
0637554bf82b990713314a24e4a6ead299be949a
[ "MIT" ]
null
null
null
#ifndef UI_DESIGN_MATERIAL_BUTTONFLAT_H #define UI_DESIGN_MATERIAL_BUTTONFLAT_H #include <ananasgfx/ui/TextButton.hpp> namespace ui::design::material { class ButtonFlat : public ui::TextButton { public: std::optional<d2::Node *> getBackgroundBlur() noexcept override; std::optional<d2::Node *...
24.333333
80
0.726027
pcbaecker
77ed2059f1f007c7044f711d64248fa69c18f8b2
478
cpp
C++
Algorithms/Cpp-bubble_sort.cpp
IffatAzam/Ds-algo
2a864f8c1ad71c50730431ebb8f9ba4825e89aaa
[ "MIT" ]
6
2020-10-02T17:15:57.000Z
2020-10-11T21:09:28.000Z
Algorithms/Cpp-bubble_sort.cpp
IffatAzam/Ds-algo
2a864f8c1ad71c50730431ebb8f9ba4825e89aaa
[ "MIT" ]
5
2020-10-02T15:01:12.000Z
2020-10-20T04:55:41.000Z
Algorithms/Cpp-bubble_sort.cpp
IffatAzam/Ds-algo
2a864f8c1ad71c50730431ebb8f9ba4825e89aaa
[ "MIT" ]
28
2020-10-02T15:34:04.000Z
2020-10-29T03:29:08.000Z
#include <iostream> #include <vector> using namespace std; vector<int> bubble_sort(vector<int> arr) { int n=arr.size(); for (int i = 0; i < n-1; i++) { for (int j = i + 1; j < n; j++) { if (arr[i] > arr[j]) { int aux = arr[j]; arr[j] = arr[i]; arr[i] = aux; } } } return arr; } int ...
14.058824
55
0.481172
IffatAzam
77ed965e84bf66469c07af8082a8e32a67a12bcf
602
cpp
C++
src/URI_2061 - (4663412) - Accepted.cpp
miguelarauj1o/UOJ
eb195754829c42c3dcf1a68616e63da1386cb5a9
[ "MIT" ]
80
2015-01-07T01:18:40.000Z
2021-05-04T15:23:18.000Z
src/URI_2061 - (4663412) - Accepted.cpp
miguelarauj1o/OJ
eb195754829c42c3dcf1a68616e63da1386cb5a9
[ "MIT" ]
1
2019-01-07T01:13:32.000Z
2019-01-07T01:13:32.000Z
src/URI_2061 - (4663412) - Accepted.cpp
miguelarauj1o/OJ
eb195754829c42c3dcf1a68616e63da1386cb5a9
[ "MIT" ]
28
2015-03-05T11:53:23.000Z
2020-07-05T15:50:42.000Z
#include <iostream> #include <cstring> using namespace std; int main(int argc, char const *argv[]) { int n, m, sum = 0; string s; cin >> n >> m; sum = n; for (int i = 0; i < m; i++) { cin >> s; if (s == "fechou") sum++; else sum--; } cout << sum << endl; return 0; }#include <iostream>...
16.27027
41
0.498339
miguelarauj1o
77f36468b41e64c685ba3b62caac9c81f7d8e15d
587
cpp
C++
src/GameHost.cpp
nicoaw/netroids-prototype
ac8b4c75efc136fbd04f27bdb7cc028d5a02f06c
[ "MIT" ]
null
null
null
src/GameHost.cpp
nicoaw/netroids-prototype
ac8b4c75efc136fbd04f27bdb7cc028d5a02f06c
[ "MIT" ]
null
null
null
src/GameHost.cpp
nicoaw/netroids-prototype
ac8b4c75efc136fbd04f27bdb7cc028d5a02f06c
[ "MIT" ]
null
null
null
#include "GameHost.h" GameHost::GameHost() : time(0) { bounds.max = glm::vec2(400.0f, 300.0f); bounds.min = glm::vec2(-400.0f, -300.0f); /*input.forward = false; input.left = false; input.right = false;*/ } GameHost::~GameHost() { if (host != nullptr) enet_host_destroy(host); } void GameHost::flush() { en...
14.675
54
0.67121
nicoaw
af7ebdd6ca1dc2a99dfd1371018700892e4d9eb4
2,530
hxx
C++
include/usagi/http/exception.hxx
usagi/usagi
2d57d21eeb92eadfdf4154a3e470aebfc3e388e5
[ "MIT" ]
2
2016-11-20T04:59:17.000Z
2017-02-13T01:44:37.000Z
include/usagi/http/exception.hxx
usagi/usagi
2d57d21eeb92eadfdf4154a3e470aebfc3e388e5
[ "MIT" ]
3
2015-09-28T12:00:02.000Z
2015-09-28T12:03:21.000Z
include/usagi/http/exception.hxx
usagi/usagi
2d57d21eeb92eadfdf4154a3e470aebfc3e388e5
[ "MIT" ]
3
2017-07-02T06:09:47.000Z
2018-07-09T01:00:57.000Z
#pragma once #include <stdexcept> #include <string> namespace usagi::http { struct http_error : std::runtime_error { static constexpr unsigned redirection_count_over_value = 996u; static constexpr unsigned response_has_no_location_header_value = 997u; static constexpr unsigned response_ha...
39.53125
88
0.647431
usagi
af7f33c21a06dae6922403607fb573c63d4ca03f
2,478
cc
C++
tests/sync/oneshot.cc
ddxy18/xyco
7682652f17b82e2370fa7af17635c5d0c470efe0
[ "MIT" ]
null
null
null
tests/sync/oneshot.cc
ddxy18/xyco
7682652f17b82e2370fa7af17635c5d0c470efe0
[ "MIT" ]
17
2021-10-30T06:10:46.000Z
2022-03-18T06:16:15.000Z
tests/sync/oneshot.cc
ddxy18/xyco
7682652f17b82e2370fa7af17635c5d0c470efe0
[ "MIT" ]
null
null
null
#include "sync/oneshot.h" #include <gtest/gtest.h> #include <unistd.h> #include <chrono> #include <thread> #include <utility> #include "utils.h" TEST(OneshotTest, success) { TestRuntimeCtx::co_run([]() -> xyco::runtime::Future<void> { auto [sender, receiver] = xyco::sync::oneshot::channel<int>(); auto sen...
27.842697
71
0.658999
ddxy18
af7f9709d1dc21350c587768a1b21f5d62e9bc97
3,984
cpp
C++
src/aimp_dotnet/SDK/MusicLibrary/AimpFileList.cpp
Smartoteka/aimp_dotnet
544502b8d080c9280ba11917ef0cc3e8dec44234
[ "Apache-2.0" ]
52
2015-04-14T14:39:30.000Z
2022-02-07T07:16:05.000Z
src/aimp_dotnet/SDK/MusicLibrary/AimpFileList.cpp
Smartoteka/aimp_dotnet
544502b8d080c9280ba11917ef0cc3e8dec44234
[ "Apache-2.0" ]
11
2015-04-02T10:45:55.000Z
2022-02-03T07:21:53.000Z
src/aimp_dotnet/SDK/MusicLibrary/AimpFileList.cpp
Smartoteka/aimp_dotnet
544502b8d080c9280ba11917ef0cc3e8dec44234
[ "Apache-2.0" ]
9
2015-04-05T18:25:57.000Z
2022-02-07T07:20:23.000Z
// ---------------------------------------------------- // AIMP DotNet SDK // Copyright (c) 2014 - 2020 Evgeniy Bogdan // https://github.com/martin211/aimp_dotnet // Mail: mail4evgeniy@gmail.com // ---------------------------------------------------- #include "Stdafx.h" #include "AimpFileList.h" using namespace AIMP...
27.102041
112
0.634287
Smartoteka
af863aa0c5412c7f5ca9f7159916a0a14fd4f706
5,658
cpp
C++
ws/ws_cobra_to_statsd.cpp
matt-deboer/IXWebSocket
779b1e6077e909f64e5ff2569876f29f4d33da46
[ "BSD-3-Clause" ]
null
null
null
ws/ws_cobra_to_statsd.cpp
matt-deboer/IXWebSocket
779b1e6077e909f64e5ff2569876f29f4d33da46
[ "BSD-3-Clause" ]
null
null
null
ws/ws_cobra_to_statsd.cpp
matt-deboer/IXWebSocket
779b1e6077e909f64e5ff2569876f29f4d33da46
[ "BSD-3-Clause" ]
null
null
null
/* * ws_cobra_to_statsd.cpp * Author: Benjamin Sergeant * Copyright (c) 2019 Machine Zone, Inc. All rights reserved. */ #include <atomic> #include <chrono> #include <iostream> #include <ixcobra/IXCobraConnection.h> #include <spdlog/spdlog.h> #include <sstream> #include <thread> #include <vector> #ifndef _WIN32...
33.47929
98
0.454578
matt-deboer
af88b6e751960f69fa8adb0c1f3537c8e0d4b4e9
13,509
cc
C++
engine/game/gameBase.cc
ClayHanson/B4v21-Public-Repo
c812aa7bf2ecb267e02969c85f0c9c2a29be0d28
[ "MIT" ]
1
2020-08-18T19:45:34.000Z
2020-08-18T19:45:34.000Z
engine/game/gameBase.cc
ClayHanson/B4v21-Launcher-Public-Repo
c812aa7bf2ecb267e02969c85f0c9c2a29be0d28
[ "MIT" ]
null
null
null
engine/game/gameBase.cc
ClayHanson/B4v21-Launcher-Public-Repo
c812aa7bf2ecb267e02969c85f0c9c2a29be0d28
[ "MIT" ]
null
null
null
//----------------------------------------------------------------------------- // Torque Game Engine // Copyright (C) GarageGames.com, Inc. //----------------------------------------------------------------------------- #include "platform/platform.h" #include "game/gameBase.h" #include "console/consoleTypes.h" #inclu...
26.028902
116
0.578873
ClayHanson
af89c1de559be83ecbc03f0d3be755ad7582c4bf
318
cpp
C++
src/vedaEMailClient/settings_account.cpp
vedatech/Veda_platform
5592cb0e43666b04df12eed1849a2a655de6feff
[ "MIT" ]
null
null
null
src/vedaEMailClient/settings_account.cpp
vedatech/Veda_platform
5592cb0e43666b04df12eed1849a2a655de6feff
[ "MIT" ]
null
null
null
src/vedaEMailClient/settings_account.cpp
vedatech/Veda_platform
5592cb0e43666b04df12eed1849a2a655de6feff
[ "MIT" ]
null
null
null
#include "settings_account.h" #include "ui_settings_account.h" settings_account::settings_account(QWidget *parent) : QWidget(parent), ui(new Ui::settings_account) { ui->setupUi(this); //beta ui->clear_local_address_book_Button->hide(); } settings_account::~settings_account() { delete ui; }
17.666667
53
0.710692
vedatech
af8bd51ac60d96ba5167d9e684a6b64744e214e6
1,002
hpp
C++
libs/core/render/include/bksge/core/render/gl/detail/sampler.hpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
4
2018-06-10T13:35:32.000Z
2021-06-03T14:27:41.000Z
libs/core/render/include/bksge/core/render/gl/detail/sampler.hpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
566
2017-01-31T05:36:09.000Z
2022-02-09T05:04:37.000Z
libs/core/render/include/bksge/core/render/gl/detail/sampler.hpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
1
2018-07-05T04:40:53.000Z
2018-07-05T04:40:53.000Z
/** * @file sampler.hpp * * @brief Sampler クラスの定義 * * @author myoukaku */ #ifndef BKSGE_CORE_RENDER_GL_DETAIL_SAMPLER_HPP #define BKSGE_CORE_RENDER_GL_DETAIL_SAMPLER_HPP #include <bksge/core/render/gl/detail/fwd/sampler_fwd.hpp> #include <bksge/core/render/gl/detail/gl_h.hpp> #include <bksge/core/...
17.275862
59
0.699601
myoukaku
af8ca990220f75bca38fb154debb8ec8f7d3b3e9
390
cpp
C++
zerojudge_code/a007-1.cpp
SeanHsu-pub/zerojudge_practice
97061bb7e313541a46fbb2f9b7a401563ada3fda
[ "MIT" ]
null
null
null
zerojudge_code/a007-1.cpp
SeanHsu-pub/zerojudge_practice
97061bb7e313541a46fbb2f9b7a401563ada3fda
[ "MIT" ]
null
null
null
zerojudge_code/a007-1.cpp
SeanHsu-pub/zerojudge_practice
97061bb7e313541a46fbb2f9b7a401563ada3fda
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> #define endl "\n" using namespace std; int main(void){ int n=0; vector<int> a; a.push_back(2); for(int i=3; i<=2147483647; i++){ bool is=false; for(int j=0; j<a.size(); j++){ if(i%a[j]==0){ is=true; } } if(is==false){ a.push_back(i); } } for(vector<int>::iterator it=...
16.25
60
0.54359
SeanHsu-pub
af97284edc1e06cd209fe95b68d6ca65cc671169
999
hpp
C++
ares/n64/ai/ai.hpp
moon-chilled/Ares
909fb098c292f8336d0502dc677050312d8b5c81
[ "0BSD" ]
7
2020-07-25T11:44:39.000Z
2021-01-29T13:21:31.000Z
ares/n64/ai/ai.hpp
jchw-forks/ares
d78298a1e95fd0ce65feabfd4f13b60e31210a7a
[ "0BSD" ]
null
null
null
ares/n64/ai/ai.hpp
jchw-forks/ares
d78298a1e95fd0ce65feabfd4f13b60e31210a7a
[ "0BSD" ]
1
2021-03-22T16:15:30.000Z
2021-03-22T16:15:30.000Z
//Audio Interface struct AI : Thread, Memory::IO<AI> { Node::Component node; Node::Stream stream; struct Debugger { //debugger.cpp auto load(Node::Object) -> void; auto io(string_view) -> void; struct Tracer { Node::Notification io; } tracer; } debugger; //ai.cpp auto load(Node...
18.849057
48
0.595596
moon-chilled
af98550e21c78ddadca91514a494785f60806f6f
15,363
cpp
C++
src/data_manipulation.cpp
fenguoerbian/seurat
ca69686e741b3b0d72debd182dbacdb5e81e58c1
[ "MIT" ]
1,507
2015-05-28T16:02:47.000Z
2022-03-31T22:08:42.000Z
src/data_manipulation.cpp
fenguoerbian/seurat
ca69686e741b3b0d72debd182dbacdb5e81e58c1
[ "MIT" ]
5,186
2015-10-21T15:08:58.000Z
2022-03-31T23:38:29.000Z
src/data_manipulation.cpp
fenguoerbian/seurat
ca69686e741b3b0d72debd182dbacdb5e81e58c1
[ "MIT" ]
857
2015-05-28T16:03:42.000Z
2022-03-31T10:04:51.000Z
#include <RcppEigen.h> #include <progress.hpp> #include <cmath> #include <unordered_map> #include <fstream> #include <string> #include <Rinternals.h> using namespace Rcpp; // [[Rcpp::depends(RcppEigen)]] // [[Rcpp::depends(RcppProgress)]] // [[Rcpp::export]] Eigen::SparseMatrix<double> RunUMISampling(Eigen::SparseM...
33.03871
188
0.596303
fenguoerbian
af99fe7f95aae2d47ee282d24a85f696eceb1cda
2,237
cpp
C++
sakura_core/env/CTagJumpManager.cpp
HoppingTappy/sakura
a2db8d55911af12f8364c4ff744d5ded3ce5643b
[ "Zlib" ]
953
2018-05-20T07:09:12.000Z
2022-03-30T13:23:38.000Z
sakura_core/env/CTagJumpManager.cpp
HoppingTappy/sakura
a2db8d55911af12f8364c4ff744d5ded3ce5643b
[ "Zlib" ]
1,679
2018-05-21T05:44:34.000Z
2022-03-28T04:19:31.000Z
sakura_core/env/CTagJumpManager.cpp
HoppingTappy/sakura
a2db8d55911af12f8364c4ff744d5ded3ce5643b
[ "Zlib" ]
190
2018-05-23T02:53:34.000Z
2022-03-11T08:35:54.000Z
/*! @file */ /* 2008.05.18 kobake CShareData から分離 */ /* Copyright (C) 2008, kobake Copyright (C) 2018-2021, Sakura Editor Organization This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. ...
26.630952
90
0.750112
HoppingTappy
af9bf362f81065ad70a1ae3e61a68eb8a0aa224d
2,154
cpp
C++
wliotproxy-src-base/libVDIL/src/xml/SubProgramInternalBlocksParser.cpp
ooolms/wl_iot_framework
77f5d577105d505fd1c5a21940f29b72eb3391ea
[ "Apache-2.0" ]
null
null
null
wliotproxy-src-base/libVDIL/src/xml/SubProgramInternalBlocksParser.cpp
ooolms/wl_iot_framework
77f5d577105d505fd1c5a21940f29b72eb3391ea
[ "Apache-2.0" ]
null
null
null
wliotproxy-src-base/libVDIL/src/xml/SubProgramInternalBlocksParser.cpp
ooolms/wl_iot_framework
77f5d577105d505fd1c5a21940f29b72eb3391ea
[ "Apache-2.0" ]
null
null
null
/******************************************* Copyright 2017 OOO "LMS" 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 ...
36.508475
102
0.788765
ooolms
afa9b0d667cdb05843073b61a1659cdf2b7f2423
3,105
cpp
C++
main.cpp
Qengineering/Face-detection-Landmark-Raspberry-Pi-32-64-bits
0ec1a6a5287aceab34d5f0f089ebd1f4052b13db
[ "BSD-3-Clause" ]
3
2021-02-24T00:11:38.000Z
2021-02-24T18:28:28.000Z
main.cpp
Qengineering/Face-detection-Landmark-Raspberry-Pi-32-64-bits
0ec1a6a5287aceab34d5f0f089ebd1f4052b13db
[ "BSD-3-Clause" ]
null
null
null
main.cpp
Qengineering/Face-detection-Landmark-Raspberry-Pi-32-64-bits
0ec1a6a5287aceab34d5f0f089ebd1f4052b13db
[ "BSD-3-Clause" ]
1
2021-05-14T01:10:11.000Z
2021-05-14T01:10:11.000Z
#include <iostream> #include <opencv2/opencv.hpp> #include "FaceDetector.h" using namespace std; int main(int argc, char **argv) { float f; float FPS[16]; int i, Fcnt=0; cv::Mat frame; const int max_side = 320; //some timing chrono::steady_clock::time_point Tbegin, Tend; for(i=0...
38.333333
169
0.561031
Qengineering
afad74146eedc9507cd1eeaee63132b546cb7f43
2,046
cpp
C++
Net/ThreadPool.cpp
Txhua/IOLoop
710fb914ac7fd65a874e2866f0f38ab38b7858f3
[ "Apache-2.0" ]
null
null
null
Net/ThreadPool.cpp
Txhua/IOLoop
710fb914ac7fd65a874e2866f0f38ab38b7858f3
[ "Apache-2.0" ]
2
2021-08-23T06:24:32.000Z
2021-08-23T06:27:31.000Z
Net/ThreadPool.cpp
Txhua/IOLoop
710fb914ac7fd65a874e2866f0f38ab38b7858f3
[ "Apache-2.0" ]
null
null
null
#include "ThreadPool.h" #include <assert.h> #include <glog/logging.h> namespace IOEvent { ThreadPool::ThreadPool(const std::string &name) :name_(name), maxQueueSize_(0), runing_(false) { } ThreadPool::~ThreadPool() { if (runing_) { stop(); } } void ThreadPool::setmaxQueueSize(int32_t m...
17.193277
98
0.596774
Txhua
afaf420c56422e9a2bb396d248c2f85d4848be81
1,035
cpp
C++
LuckyPurchase/LuckyPurchase.cpp
HPCCS/Computation-Kernel-Dataset
5a184c7846c1abff39426a7f53fb837de8ba36e3
[ "MIT" ]
1
2019-05-03T19:37:24.000Z
2019-05-03T19:37:24.000Z
LuckyPurchase/LuckyPurchase.cpp
HPCCS/Computation-Kernel-Dataset
5a184c7846c1abff39426a7f53fb837de8ba36e3
[ "MIT" ]
null
null
null
LuckyPurchase/LuckyPurchase.cpp
HPCCS/Computation-Kernel-Dataset
5a184c7846c1abff39426a7f53fb837de8ba36e3
[ "MIT" ]
null
null
null
// problem statement is in https://www.hackerrank.com/contests/w35/challenges/lucky-purchase/problem #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main() { freopen("../input_files/LuckyPurchase", "r", stdin); /* Ent...
19.528302
100
0.439614
HPCCS
afaf790c6680da8ae9323b40e16a04b9b48f024f
693
hpp
C++
math/mod_sqrt.hpp
hotman78/cpplib
c2f85c8741cdd0b731a5aa828b28b38c70c8d699
[ "CC0-1.0" ]
null
null
null
math/mod_sqrt.hpp
hotman78/cpplib
c2f85c8741cdd0b731a5aa828b28b38c70c8d699
[ "CC0-1.0" ]
null
null
null
math/mod_sqrt.hpp
hotman78/cpplib
c2f85c8741cdd0b731a5aa828b28b38c70c8d699
[ "CC0-1.0" ]
null
null
null
#include<tuple> #include"mod_pow.hpp" #include"../util/random_gen.hpp" /** * @brief ModSqrt */ long long mod_sqrt(long long a,long long mod){ if(mod==2||a==0)return a; if(mod_pow(a,(mod-1)/2,mod)!=1)return -1; if(mod%4==3)return mod_pow(a,(mod+1)/4,mod); long long q=(mod-1),s=0; while(q%2==0)q/=...
28.875
82
0.580087
hotman78
afb2c1e102f49c56caf64e4c4f1d6017528cdcc6
856
cpp
C++
examples/google-code-jam/hustsxh/b.cpp
rbenic-fer/progauthfp
d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675
[ "MIT" ]
null
null
null
examples/google-code-jam/hustsxh/b.cpp
rbenic-fer/progauthfp
d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675
[ "MIT" ]
null
null
null
examples/google-code-jam/hustsxh/b.cpp
rbenic-fer/progauthfp
d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675
[ "MIT" ]
null
null
null
#include <cstdio> #include <iostream> using namespace std; int a[100][100]; bool check(int n, int m) { for (int i = 0; i < n; ++i) { for (int j = 0; j < m; ++j) { bool col = false, row = false; for (int k = 0; k < n; ++k) { if (a[k][j] > a[i][j]) { col = true; } } for (int k = 0; k < m; +...
15.563636
35
0.421729
rbenic-fer
afbcb634b16cb6fdd0f460d10b9741487ac6f087
7,519
cpp
C++
libairt/aerotoolsGimbalMessageProcessor.cpp
AiRT-Software/ocs
2d6056a1260ac9ac75cfd507fb1a77db3b26298a
[ "BSD-4-Clause" ]
1
2019-02-07T12:24:51.000Z
2019-02-07T12:24:51.000Z
libairt/aerotoolsGimbalMessageProcessor.cpp
AiRT-Software/ocs
2d6056a1260ac9ac75cfd507fb1a77db3b26298a
[ "BSD-4-Clause" ]
null
null
null
libairt/aerotoolsGimbalMessageProcessor.cpp
AiRT-Software/ocs
2d6056a1260ac9ac75cfd507fb1a77db3b26298a
[ "BSD-4-Clause" ]
1
2020-07-06T10:33:10.000Z
2020-07-06T10:33:10.000Z
#include <cstring> #include <cassert> //#include "../atreyu/include/fcsmodule.h" #include "aerotoolsGimbalMessageProcessor.h" #include "stdMessage.h" #ifdef TESTING #include "dummySerial.h" #else #include "serial.h" #endif #include "log.h" #include "utils.h" #define MAX_MSG_LENGTH 64 #define SYNC1 0xb5 #define SYNC...
28.266917
163
0.637053
AiRT-Software
afbe2948c86a6d57117993141ede06fed06951e9
179
cpp
C++
ural/1876.cpp
jffifa/algo-solution
af2400d6071ee8f777f9473d6a34698ceef08355
[ "MIT" ]
5
2015-07-14T10:29:25.000Z
2016-10-11T12:45:18.000Z
ural/1876.cpp
jffifa/algo-solution
af2400d6071ee8f777f9473d6a34698ceef08355
[ "MIT" ]
null
null
null
ural/1876.cpp
jffifa/algo-solution
af2400d6071ee8f777f9473d6a34698ceef08355
[ "MIT" ]
3
2016-08-23T01:05:26.000Z
2017-05-28T02:04:20.000Z
#include <cstdio> #include <cstring> #include <algorithm> using namespace std; int a, b; int main() { scanf("%d%d", &a, &b); printf("%d\n", max(2*b+40, 2*a+39)); return 0; }
12.785714
37
0.597765
jffifa
afc3b8d5f63225653ac6f6628d6338957f3037cd
10,458
cpp
C++
libraries/AXP192/AXP192.cpp
vanvuongngo/Maixduino
aa6543538ccfb54a89e9922dd38f5b4710a9c2a4
[ "Apache-2.0" ]
195
2019-04-02T02:28:34.000Z
2022-03-23T07:45:31.000Z
libraries/AXP192/AXP192.cpp
vanvuongngo/Maixduino
aa6543538ccfb54a89e9922dd38f5b4710a9c2a4
[ "Apache-2.0" ]
106
2019-04-03T12:27:01.000Z
2022-03-25T12:59:33.000Z
libraries/AXP192/AXP192.cpp
vanvuongngo/Maixduino
aa6543538ccfb54a89e9922dd38f5b4710a9c2a4
[ "Apache-2.0" ]
101
2019-04-03T06:14:04.000Z
2022-03-15T06:31:58.000Z
#include "AXP192.h" AXP192::AXP192() { } void AXP192::begin(bool isInited) { if(!isInited){ Wire.begin((uint8_t) SDA, (uint8_t) SCL, 400000); } Write1Byte(0x46, 0xFF); //Clear interupts Write1Byte(0x23, 0x08); //Set DC-DC2 (VCore) to 0V9 Write1Byte(0x33, 0xC0); //Set Bat Charging Volta...
24.377622
108
0.633295
vanvuongngo
afc4bf4b963c5dd49becb5584f83ccf3439a8bed
3,896
cpp
C++
Java-and-C++/AnalyticFunctions/NthValue.cpp
vietnguyen1989/UDx-Examples
4b72aaa7402c93890500d37c1b888230cc6524e2
[ "BSD-3-Clause" ]
12
2017-08-16T09:58:50.000Z
2020-05-08T12:03:57.000Z
Java-and-C++/AnalyticFunctions/NthValue.cpp
vietnguyen1989/UDx-Examples
4b72aaa7402c93890500d37c1b888230cc6524e2
[ "BSD-3-Clause" ]
1
2021-04-21T21:39:03.000Z
2021-04-21T21:39:03.000Z
Java-and-C++/AnalyticFunctions/NthValue.cpp
vietnguyen1989/UDx-Examples
4b72aaa7402c93890500d37c1b888230cc6524e2
[ "BSD-3-Clause" ]
15
2016-12-21T09:57:22.000Z
2021-11-25T22:30:24.000Z
/* Copyright (c) 2005 - 2016 Hewlett Packard Enterprise Development LP -*- C++ -*-*/ /* * Description: Example User Defined Analytic Function nth_value to output the value of the nth row. * * Create Date: Mar 13, 2014 */ #include "Vertica.h" #include <sstream> using namespace Vertica; /* * The analytic functio...
39.755102
131
0.598563
vietnguyen1989
afc6ce2b22fd60ed9f924af7018858602daff4e2
3,389
hpp
C++
engine/includes/asset_importer/texture_importer.hpp
StuartDAdams/neon
d08a63b853801aec94390e50f2988d0217438061
[ "MIT" ]
1
2019-08-22T14:43:18.000Z
2019-08-22T14:43:18.000Z
engine/includes/asset_importer/texture_importer.hpp
StuartDAdams/neon
d08a63b853801aec94390e50f2988d0217438061
[ "MIT" ]
null
null
null
engine/includes/asset_importer/texture_importer.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...
45.186667
116
0.697551
StuartDAdams
afc888c91ca6936a0b4a9a6c029b9c2056c6c592
1,038
cpp
C++
src/gamebase/src/impl/graphics/LineProgram.cpp
TheMrButcher/opengl_lessons
76ac96c45773a54a85d49c6994770b0c3496303f
[ "MIT" ]
1
2016-10-25T21:15:16.000Z
2016-10-25T21:15:16.000Z
src/gamebase/src/impl/graphics/LineProgram.cpp
TheMrButcher/gamebase
76ac96c45773a54a85d49c6994770b0c3496303f
[ "MIT" ]
375
2016-06-04T11:27:40.000Z
2019-04-14T17:11:09.000Z
src/gamebase/src/impl/graphics/LineProgram.cpp
TheMrButcher/gamebase
76ac96c45773a54a85d49c6994770b0c3496303f
[ "MIT" ]
null
null
null
/** * Copyright (c) 2018 Slavnejshev Filipp * This file is licensed under the terms of the MIT license. */ #include <stdafx.h> #include <gamebase/impl/graphics/LineProgram.h> #include "State.h" #include "src/impl/global/Config.h" namespace gamebase { namespace impl { LineProgram::LineProgram() : OneColorProgr...
22.565217
73
0.684008
TheMrButcher
afcd5238b502b1281d4e74cb8bc0c9c3663229d0
41,674
cpp
C++
plugin_sa/game_sa/CTheScripts.cpp
gta-chaos-mod/plugin-sdk
e3bf176337774a2afc797a47825f81adde78e899
[ "Zlib" ]
368
2015-01-01T21:42:00.000Z
2022-03-29T06:22:22.000Z
plugin_sa/game_sa/CTheScripts.cpp
SteepCheat/plugin-sdk
a17c5d933cb8b06e4959b370092828a6a7aa00ef
[ "Zlib" ]
89
2016-05-08T06:42:36.000Z
2022-03-29T06:49:09.000Z
plugin_sa/game_sa/CTheScripts.cpp
SteepCheat/plugin-sdk
a17c5d933cb8b06e4959b370092828a6a7aa00ef
[ "Zlib" ]
179
2015-02-03T23:41:17.000Z
2022-03-26T08:27:16.000Z
/* Plugin-SDK (Grand Theft Auto San Andreas) source file Authors: GTA Community. See more here https://github.com/DK22Pac/plugin-sdk Do not delete this comment block. Respect others' work! */ #include "CTheScripts.h" PLUGIN_SOURCE_FILE PLUGIN_VARIABLE bool &CTheScripts::DbgFlag = *reinterpret_cast<bool *>(GLOBAL_ADDR...
67.983687
253
0.788957
gta-chaos-mod
afce2ed6cbffc0e37a0a3db2aa73e00228940513
1,807
cpp
C++
HI/HI_L3/WINAPI/main.cpp
sandyre/ifmo_course3
f697b2308acec149c67b1fbba326e2264da88f29
[ "MIT" ]
3
2017-06-19T20:39:26.000Z
2020-09-14T04:15:53.000Z
HI/HI_L3/WINAPI/main.cpp
sandyre/ifmo_course3
f697b2308acec149c67b1fbba326e2264da88f29
[ "MIT" ]
null
null
null
HI/HI_L3/WINAPI/main.cpp
sandyre/ifmo_course3
f697b2308acec149c67b1fbba326e2264da88f29
[ "MIT" ]
2
2018-11-12T18:42:09.000Z
2019-12-20T03:12:34.000Z
#include <Windows.h> #include "bitmap.hpp" LRESULT CALLBACK WindowProc(HWND, UINT, WPARAM, LPARAM); HDC hdc; Bitmap * pBITMAP; int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { std::wstring filename = L"c:\\Users\\sandyre\\Desktop\\resulted.bmp"; pBITMAP = n...
24.753425
73
0.618705
sandyre
afd249c15ea370269f946c1248413b061e66a6cd
4,033
cpp
C++
src/query/data/MinQuery.cpp
LouieBHLu/LemonDB-Self-Designed-Multithread-Database
ae0ad7f97ef114f7517a368a779e60fb90aa4115
[ "MIT" ]
1
2022-01-21T09:49:44.000Z
2022-01-21T09:49:44.000Z
src/query/data/MinQuery.cpp
LouieBHLu/LemonDB-Self-Designed-Multithread-Database
ae0ad7f97ef114f7517a368a779e60fb90aa4115
[ "MIT" ]
null
null
null
src/query/data/MinQuery.cpp
LouieBHLu/LemonDB-Self-Designed-Multithread-Database
ae0ad7f97ef114f7517a368a779e60fb90aa4115
[ "MIT" ]
null
null
null
#include "MinQuery.h" #include "../../db/Database.h" #include "../QueryResult.h" #include "../../threads/thread.h" #include <algorithm> using namespace std; constexpr const char *MinQuery::qname; static long thread_num; static long range; static bool exist; static Table* table; static MinQuery* p; static ve...
35.069565
111
0.529135
LouieBHLu
afd8c2bb263a99ae1ed367320478cb3bee31e4b6
3,424
cpp
C++
src/main.cpp
ZhouYixuanRobtic/NursingRobot
1372e4af40a3315b754d1b6273b5a00d09c4def6
[ "MIT" ]
1
2020-12-09T01:32:13.000Z
2020-12-09T01:32:13.000Z
src/main.cpp
ZhouYixuanRobtic/NursingRobot
1372e4af40a3315b754d1b6273b5a00d09c4def6
[ "MIT" ]
null
null
null
src/main.cpp
ZhouYixuanRobtic/NursingRobot
1372e4af40a3315b754d1b6273b5a00d09c4def6
[ "MIT" ]
1
2021-04-15T15:29:08.000Z
2021-04-15T15:29:08.000Z
#define EIGEN_USE_MKL_ALL #include "util/logger.hpp" #include <ros/ros.h> #include "collision_detection/MoveItCollisionHelper.h" #include <moveit_visual_tools/moveit_visual_tools.h> #include <tf2_eigen/tf2_eigen.h> #include "Kinematics/custom_kinematics.hpp" #include "planner/CartesianPlanner.h" #include "planner/Plan...
51.878788
146
0.593458
ZhouYixuanRobtic
afd9e00f9dfef07b0204def29edd1aece79c7cc3
909
hpp
C++
common/perf.hpp
DimitrisVlachos/sorting_algo_playground
98f386b52dc08f61e5f08d150540369c075f3d06
[ "MIT" ]
null
null
null
common/perf.hpp
DimitrisVlachos/sorting_algo_playground
98f386b52dc08f61e5f08d150540369c075f3d06
[ "MIT" ]
null
null
null
common/perf.hpp
DimitrisVlachos/sorting_algo_playground
98f386b52dc08f61e5f08d150540369c075f3d06
[ "MIT" ]
null
null
null
#pragma once #include "license_hdr.hpp" #include "base_includes.hpp" class c_perf { private: std::chrono::high_resolution_clock::time_point t1; std::string m_desc; public: c_perf(const std::string& desc) : m_desc(desc) { std::cout << "Starting perf: " << desc << "\n"; t1 = std::ch...
36.36
185
0.584158
DimitrisVlachos
afdadc62f2a9ba6726e52a19ab70637d90a813a8
2,280
cpp
C++
src/solver/eigen/eigen_solver_factory.cpp
dbeurle/neon
63cd2929a6eaaa0e1654c729cd35a9a52a706962
[ "MIT" ]
9
2018-07-12T17:06:33.000Z
2021-11-20T23:13:26.000Z
src/solver/eigen/eigen_solver_factory.cpp
dbeurle/neon
63cd2929a6eaaa0e1654c729cd35a9a52a706962
[ "MIT" ]
119
2016-06-22T07:36:04.000Z
2019-03-10T19:38:12.000Z
src/solver/eigen/eigen_solver_factory.cpp
dbeurle/neon
63cd2929a6eaaa0e1654c729cd35a9a52a706962
[ "MIT" ]
9
2017-10-08T16:51:38.000Z
2021-03-15T08:08:04.000Z
#include "solver/eigen/eigen_solver_factory.hpp" #include "io/json.hpp" #include "solver/eigen/arpack.hpp" #include "solver/eigen/lanczos_ocl.hpp" #include "solver/eigen/power_iteration.hpp" namespace neon { std::unique_ptr<eigen_solver> make_eigen_solver(json const& solver_data) { if (solver_data.find("type") ...
28.860759
96
0.589474
dbeurle
afde834ed01f4ebfc956fa6aadbd769d8bba877e
806
cpp
C++
notebook/mutsim/src/hist.cpp
johnsmith2077/kevlar
3ed06dae62479e89ccd200391728c416d4df8052
[ "MIT" ]
24
2016-12-07T07:59:09.000Z
2019-03-11T02:05:36.000Z
notebook/mutsim/src/hist.cpp
johnsmith2077/kevlar
3ed06dae62479e89ccd200391728c416d4df8052
[ "MIT" ]
325
2016-12-07T07:37:17.000Z
2019-03-12T19:01:40.000Z
notebook/mutsim/src/hist.cpp
standage/kevlar
622d1869266550422e91a60119ddc7261eea434a
[ "MIT" ]
8
2017-08-17T01:37:39.000Z
2019-03-01T16:17:44.000Z
#include <assert.h> #include <iostream> #include "hist.hpp" Histogram::Histogram(uint max) : maxbin(max) { while (hist.size() < maxbin + 1) { hist.push_back(0); } } void Histogram::increment(uint bin, uint by) { if (bin > maxbin) { bin = maxbin; } hist[bin] += by; } ulong Histogra...
17.148936
66
0.533499
johnsmith2077
afdee6f8c366470c85766ed237ec7e8e7ca54353
5,233
cpp
C++
pal/crypto/hash.test.cpp
svens/pal
5e73ef39dad32bba2d42c6e1a3af6a3c66725ee7
[ "MIT" ]
null
null
null
pal/crypto/hash.test.cpp
svens/pal
5e73ef39dad32bba2d42c6e1a3af6a3c66725ee7
[ "MIT" ]
null
null
null
pal/crypto/hash.test.cpp
svens/pal
5e73ef39dad32bba2d42c6e1a3af6a3c66725ee7
[ "MIT" ]
null
null
null
#include <pal/crypto/hash> #include <pal/crypto/test> #include <catch2/catch_template_test_macros.hpp> #include <unordered_map> namespace { static const std::string empty = "", lazy_dog = "The quick brown fox jumps over the lazy dog", lazy_cog = "The quick brown fox jumps over the lazy cog"; struct md5: pal::c...
26.974227
158
0.726543
svens
afe1bac24100ab5af8a6e0e8d6f5cf5f6916d0f0
383
cpp
C++
Sandbox/src/SandboxApp.cpp
Tomzopo/parabol
2e11a78ba11726c01af2cd320f0a6769f221758f
[ "Apache-2.0" ]
null
null
null
Sandbox/src/SandboxApp.cpp
Tomzopo/parabol
2e11a78ba11726c01af2cd320f0a6769f221758f
[ "Apache-2.0" ]
null
null
null
Sandbox/src/SandboxApp.cpp
Tomzopo/parabol
2e11a78ba11726c01af2cd320f0a6769f221758f
[ "Apache-2.0" ]
null
null
null
#include <Parabol.h> #include <Parabol/Core/EntryPoint.h> #include "Sandbox2D.h" #include "ExampleLayer.h" class Sandbox : public Parabol::Application { public: Sandbox() { // PushLayer(new ExampleLayer()); PushLayer(new Sandbox2D()); } ~Sandbox() override = default; }; Parabol::Applicati...
19.15
52
0.665796
Tomzopo
afe6178f052d24211dbfb8c4626b2f6a420ad1e5
1,608
cpp
C++
test/memorymap.cpp
davidwed/sqlrelay_rudiments
6ccffdfc5fa29f8c0226f3edc2aa888aa1008347
[ "BSD-2-Clause-NetBSD" ]
null
null
null
test/memorymap.cpp
davidwed/sqlrelay_rudiments
6ccffdfc5fa29f8c0226f3edc2aa888aa1008347
[ "BSD-2-Clause-NetBSD" ]
null
null
null
test/memorymap.cpp
davidwed/sqlrelay_rudiments
6ccffdfc5fa29f8c0226f3edc2aa888aa1008347
[ "BSD-2-Clause-NetBSD" ]
null
null
null
// Copyright (c) 2003 David Muse // See the file COPYING for more information #include <rudiments/file.h> #include <rudiments/permissions.h> #include <rudiments/sys.h> #include <rudiments/charstring.h> #include <rudiments/memorymap.h> #include <rudiments/process.h> #include <rudiments/error.h> #include <rudiments/std...
22.333333
50
0.655473
davidwed
aff68a3cef0621faf45ad85bedee92e1e70637d9
7,100
cc
C++
tests/phi/tests/util.cc
juliusnehring/arcana-samples
b5d71c114f353b278323b96450b1bfcd947336b7
[ "MIT" ]
null
null
null
tests/phi/tests/util.cc
juliusnehring/arcana-samples
b5d71c114f353b278323b96450b1bfcd947336b7
[ "MIT" ]
null
null
null
tests/phi/tests/util.cc
juliusnehring/arcana-samples
b5d71c114f353b278323b96450b1bfcd947336b7
[ "MIT" ]
1
2020-01-22T18:04:53.000Z
2020-01-22T18:04:53.000Z
#include <nexus/fuzz_test.hh> #include <rich-log/log.hh> #include <phantasm-hardware-interface/common/byte_util.hh> #include <phantasm-hardware-interface/util.hh> TEST("mipsize utils") { // simple pow2 square auto const pow2_square = tg::isize2{1024, 1024}; CHECK(phi::util::get_num_mips(pow2_square) == 1...
50
156
0.644648
juliusnehring
aff723ff1f7e7351a95306834fbb423395593760
1,770
cpp
C++
chapter04/problem_33/main.cpp
AhmedShaban94/the_modern_cpp_challenge_solutions
c5ea164ecc224389ee35db12126eeee2bc459564
[ "MIT" ]
1
2021-07-08T15:34:14.000Z
2021-07-08T15:34:14.000Z
chapter04/problem_33/main.cpp
AhmedShaban94/the_modern_cpp_challenge_solutions
c5ea164ecc224389ee35db12126eeee2bc459564
[ "MIT" ]
null
null
null
chapter04/problem_33/main.cpp
AhmedShaban94/the_modern_cpp_challenge_solutions
c5ea164ecc224389ee35db12126eeee2bc459564
[ "MIT" ]
null
null
null
#include <algorithm> #include <iomanip> #include <iostream> #include <string> #include <vector> enum class STATUS { RUNNING, SUSPENDED }; enum class PLATFORM { x32_BIT, x64_BIT }; struct ProcessInfo { std::string name; std::size_t pid; STATUS status; std::string accountName; std::s...
31.052632
127
0.607345
AhmedShaban94
affcec9412fd718924399d20facc0a82fd4d6b2f
1,487
cpp
C++
Trees/InternalNode.cpp
shujianyang/btrForensics
5206e3253778169b954986c38b020f0783bdfc58
[ "MIT" ]
17
2016-07-25T13:33:31.000Z
2022-02-18T00:52:43.000Z
Trees/InternalNode.cpp
shujianyang/btrForensics
5206e3253778169b954986c38b020f0783bdfc58
[ "MIT" ]
2
2019-03-03T02:21:49.000Z
2019-07-30T13:39:39.000Z
Trees/InternalNode.cpp
shujianyang/btrForensics
5206e3253778169b954986c38b020f0783bdfc58
[ "MIT" ]
null
null
null
//! \file //! \author Shujian Yang //! //! Implementation of class InternalNode. #include <sstream> #include "InternalNode.h" namespace btrForensics{ //! Constructor of btrfs leaf node. //! //! \param img Image file. //! \param imgOffset Offset to the partition. //! \param header Pointer to header of a node. //! \pa...
22.530303
73
0.626093
shujianyang
9b7f11dd91c1fda4cc8ef591f19593234e6aa989
7,549
hpp
C++
include/utils/io.hpp
alexd2580/statorange
02bdbe96273108964f9ec947c331f7f22a66d5c8
[ "MIT" ]
1
2016-02-26T01:14:26.000Z
2016-02-26T01:14:26.000Z
include/utils/io.hpp
alexd2580/statorange
02bdbe96273108964f9ec947c331f7f22a66d5c8
[ "MIT" ]
6
2015-12-06T22:23:29.000Z
2015-12-11T14:56:55.000Z
include/utils/io.hpp
alexd2580/statorange
02bdbe96273108964f9ec947c331f7f22a66d5c8
[ "MIT" ]
null
null
null
#ifndef UTILS_IO_HPP #define UTILS_IO_HPP #include <memory> #include <ostream> #include <string> #include <type_traits> #include <cstddef> #include <cstdio> #include <sys/socket.h> #include "Address.hpp" #include "utils/exception.hpp" #include "utils/resource.hpp" // Returns true if input becomes available on a no...
62.908333
120
0.358988
alexd2580
9b80cf95eb234e124ac98f1a981affc93348c214
3,723
hpp
C++
radial_menu_rviz/include/radial_menu_rviz/display_base.hpp
yoshito-n-students/mvc_menu_ros
03871da1a964f2253f0a35df8cb077ffbb4a64b9
[ "MIT" ]
14
2020-07-19T18:30:28.000Z
2021-07-26T10:24:24.000Z
radial_menu_rviz/include/radial_menu_rviz/display_base.hpp
yoshito-n-students/mvc_menu_ros
03871da1a964f2253f0a35df8cb077ffbb4a64b9
[ "MIT" ]
null
null
null
radial_menu_rviz/include/radial_menu_rviz/display_base.hpp
yoshito-n-students/mvc_menu_ros
03871da1a964f2253f0a35df8cb077ffbb4a64b9
[ "MIT" ]
2
2020-09-05T02:18:01.000Z
2020-11-01T05:24:10.000Z
#ifndef RADIAL_MENU_RVIZ_DISPLAY_BASE_HPP #define RADIAL_MENU_RVIZ_DISPLAY_BASE_HPP #include <memory> #include <radial_menu_model/model.hpp> #include <radial_menu_msgs/State.h> #include <radial_menu_rviz/image_overlay.hpp> #include <radial_menu_rviz/properties.hpp> #include <ros/console.h> #include <ros/exception.h> ...
29.547619
92
0.701585
yoshito-n-students
9b827f393bca7a9f7e5e33585c856549637422e2
412
hpp
C++
include/awl/backends/windows/cursor/convert_predefined.hpp
freundlich/libawl
0d51f388a6b662373058cb51a24ef25ed826fa0f
[ "BSL-1.0" ]
null
null
null
include/awl/backends/windows/cursor/convert_predefined.hpp
freundlich/libawl
0d51f388a6b662373058cb51a24ef25ed826fa0f
[ "BSL-1.0" ]
null
null
null
include/awl/backends/windows/cursor/convert_predefined.hpp
freundlich/libawl
0d51f388a6b662373058cb51a24ef25ed826fa0f
[ "BSL-1.0" ]
null
null
null
#ifndef AWL_BACKENDS_WINDOWS_CURSOR_CONVERT_PREDEFINED_HPP_INCLUDED #define AWL_BACKENDS_WINDOWS_CURSOR_CONVERT_PREDEFINED_HPP_INCLUDED #include <awl/cursor/type_fwd.hpp> #include <awl/detail/symbol.hpp> #include <fcppt/char_type.hpp> namespace awl { namespace backends { namespace windows { namespace cursor { AWL_DE...
15.846154
67
0.820388
freundlich
9b86206ad70bb122a452b61b6e40c23067127a31
231
cpp
C++
30_days_of_code/scope.cpp
williamfdevine/hackerrank
80045f708d84feafd9af9094c02ce5b08ba43797
[ "MIT" ]
null
null
null
30_days_of_code/scope.cpp
williamfdevine/hackerrank
80045f708d84feafd9af9094c02ce5b08ba43797
[ "MIT" ]
null
null
null
30_days_of_code/scope.cpp
williamfdevine/hackerrank
80045f708d84feafd9af9094c02ce5b08ba43797
[ "MIT" ]
null
null
null
/** @file scope.cpp */ Difference(std::vector<int> element_list): elements(element_list) {;} void computeDifference(void) { std::sort(elements.begin(), elements.end()); maximumDifference = elements.back() - elements.front(); }
21
69
0.709957
williamfdevine
9b88ff40df4e0712115961d7447c79717dce908e
944
cpp
C++
cmygraphicsview.cpp
njfever/njCsSprite
c1aa6c148f837c8e46fe9bc69977fe9b220ede54
[ "Zlib" ]
null
null
null
cmygraphicsview.cpp
njfever/njCsSprite
c1aa6c148f837c8e46fe9bc69977fe9b220ede54
[ "Zlib" ]
null
null
null
cmygraphicsview.cpp
njfever/njCsSprite
c1aa6c148f837c8e46fe9bc69977fe9b220ede54
[ "Zlib" ]
null
null
null
/* Copyright (C) 2013-2014 njfever@163.com For conditions of distribution and use, see copyright notice in dataDefine.h */ #include "cmygraphicsview.h" #include "csprite.h" #include <QScrollBar> CMyGraphicsView::CMyGraphicsView(QWidget * parent) : QGraphicsView(parent) { setViewportUpdateMode(...
26.222222
106
0.71822
njfever
9b8ade16965c1ec11c912e5e1f84680598130462
736
cc
C++
L9/1 - P28318 - Files i columnes/ex1.cc
angelgomezsa/Cplusplus
9fd1ed5b1beffcf253019e8376b2bd41dac6e449
[ "MIT" ]
null
null
null
L9/1 - P28318 - Files i columnes/ex1.cc
angelgomezsa/Cplusplus
9fd1ed5b1beffcf253019e8376b2bd41dac6e449
[ "MIT" ]
null
null
null
L9/1 - P28318 - Files i columnes/ex1.cc
angelgomezsa/Cplusplus
9fd1ed5b1beffcf253019e8376b2bd41dac6e449
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using namespace std; typedef vector<int> row; typedef vector<row> matrix; int main() { int n,m; cin >> n >> m; matrix matrix(n,row(m)); for (int i=0;i<n;i++) { for(int j=0;j<m;j++) { cin >> matrix[i][j]; } } string p; int x,y; while (cin >> p) { if (p == "f...
16.727273
44
0.425272
angelgomezsa
9b8bbe3a0bed388e00a6f26b7f5f54c9d6327c6c
1,836
cpp
C++
src/Tests/OutlineTest.cpp
Neko-Box-Coder/ssGUI
25e218fd79fea105a30737a63381cf8d0be943f6
[ "Apache-2.0" ]
15
2022-01-21T10:48:04.000Z
2022-03-27T17:55:11.000Z
src/Tests/OutlineTest.cpp
Neko-Box-Coder/ssGUI
25e218fd79fea105a30737a63381cf8d0be943f6
[ "Apache-2.0" ]
null
null
null
src/Tests/OutlineTest.cpp
Neko-Box-Coder/ssGUI
25e218fd79fea105a30737a63381cf8d0be943f6
[ "Apache-2.0" ]
4
2022-01-21T10:48:05.000Z
2022-01-22T15:42:34.000Z
#include "ssGUI/HeaderGroups/StandardGroup.hpp" #include "ssGUI/Extensions/Outline.hpp" #include "ssGUI/Extensions/RoundedCorners.hpp" #include "ssGUI/Extensions/Shape.hpp" //Outline test int main() { //Create the main window ssGUI::MainWindow mainWindow; mainWindow.SetSize(glm::ivec2(800, 800)); main...
36
103
0.697712
Neko-Box-Coder
9b8ced1c8026ce715aa55a8fe95196ff9ecbb9a4
1,487
cpp
C++
client/src/ui/explosion.cpp
gabyrobles93/worms-game-remake
b97781f39369f807ae8c8316f7f313353d7a2df7
[ "MIT" ]
2
2019-04-24T18:27:29.000Z
2020-04-06T17:15:34.000Z
client/src/ui/explosion.cpp
gabyrobles93/tp-final-taller
b97781f39369f807ae8c8316f7f313353d7a2df7
[ "MIT" ]
null
null
null
client/src/ui/explosion.cpp
gabyrobles93/tp-final-taller
b97781f39369f807ae8c8316f7f313353d7a2df7
[ "MIT" ]
null
null
null
#include "explosion.h" View::Explosion::Explosion(SDL_Renderer * r, int ratio, std::string weapon) : sprite(EXPLOSION_FPC, ONLY_GOING) { this->texture.loadFromFile(gPath.PATH_EXPLOSION_EFFECT, r); this->width = ratio * 2; this->height = ratio * 2; this->x = 0; this->y = 0; this->sprite.setSpriteSheet(&t...
23.603175
92
0.661735
gabyrobles93
9b8e56ad441dd00df92e688a1d36bd8665da47d0
2,213
cc
C++
33-print-table-of-processes/print-table-of-processes.cc
yans0ng/coding-is-life
1a6842e60adee914e49c3d8dc88d1000566d9561
[ "MIT" ]
null
null
null
33-print-table-of-processes/print-table-of-processes.cc
yans0ng/coding-is-life
1a6842e60adee914e49c3d8dc88d1000566d9561
[ "MIT" ]
null
null
null
33-print-table-of-processes/print-table-of-processes.cc
yans0ng/coding-is-life
1a6842e60adee914e49c3d8dc88d1000566d9561
[ "MIT" ]
null
null
null
#include <algorithm> #include <iomanip> #include <iostream> #include <string> #include <vector> enum class ProcessStatus { SUSPENDED, RUNNING }; std::ostream &operator<<(std::ostream &os, const ProcessStatus &status) { if (status == ProcessStatus::SUSPENDED) { os << "suspended"; } else if (status == ProcessS...
33.530303
103
0.60732
yans0ng
9b91ffcdc766074ad64803a2c277634348734c52
8,454
cpp
C++
raven/graphics/VulkanSwapChain.cpp
nielsuiterwijk/vulkan
b2d5c7d23f7a16d9fdb9ba2796051da4d9e66e05
[ "MIT" ]
2
2019-11-28T12:42:44.000Z
2021-07-02T12:50:20.000Z
raven/graphics/VulkanSwapChain.cpp
nielsuiterwijk/vulkan
b2d5c7d23f7a16d9fdb9ba2796051da4d9e66e05
[ "MIT" ]
null
null
null
raven/graphics/VulkanSwapChain.cpp
nielsuiterwijk/vulkan
b2d5c7d23f7a16d9fdb9ba2796051da4d9e66e05
[ "MIT" ]
null
null
null
#include "VulkanSwapChain.h" #include "GraphicsDevice.h" #include "VulkanInstance.h" #include "graphics\GraphicsContext.h" #include "helpers\VulkanHelpers.h" #include "vec2.hpp" #include <algorithm> VulkanSwapChain::VulkanSwapChain() : surface( GraphicsContext::VulkanInstance->GetNative(), vkDestroySurfaceKHR, Grap...
30.085409
199
0.763071
nielsuiterwijk
9b9fa50de1c25a3022e43e54baadf28e6d5128bd
595
hpp
C++
FaceLandmarking/math/point.hpp
TomaszRewak/FaceLandmarking
74bc5cbcdb61cd9835e5bfc61e978fad256940f4
[ "MIT" ]
78
2018-02-09T14:30:06.000Z
2020-10-01T08:43:32.000Z
FaceLandmarking/math/point.hpp
YoungerGao/Face-Landmarking
74bc5cbcdb61cd9835e5bfc61e978fad256940f4
[ "MIT" ]
1
2019-03-20T00:16:47.000Z
2019-03-24T09:12:25.000Z
FaceLandmarking/math/point.hpp
YoungerGao/Face-Landmarking
74bc5cbcdb61cd9835e5bfc61e978fad256940f4
[ "MIT" ]
8
2019-03-03T11:57:43.000Z
2021-07-01T09:27:20.000Z
#pragma once #include "vector.hpp" namespace FaceLandmarking::Math { template<typename T> struct Point { T x; T y; Point() { } Point(T x, T y): x(x), y(y) { } Point<T> operator+(const Vector<T>& vector) const { return Point<T>(x + vector.x, y + vector.y); } void operator+=(const Ve...
14.875
51
0.566387
TomaszRewak