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
93d67275e08e18194da1dba3056880692518b30a
773
cpp
C++
src/example/tests/test.cpp
TheLongRunSmoke/utility-boilerplate-qt
0671e8e40a8dbd1b2571e45cafddcb30f595b1df
[ "Apache-2.0" ]
21
2021-09-14T12:42:07.000Z
2022-02-21T00:20:14.000Z
src/example/tests/test.cpp
TheLongRunSmoke/utility-boilerplate-qt
0671e8e40a8dbd1b2571e45cafddcb30f595b1df
[ "Apache-2.0" ]
null
null
null
src/example/tests/test.cpp
TheLongRunSmoke/utility-boilerplate-qt
0671e8e40a8dbd1b2571e45cafddcb30f595b1df
[ "Apache-2.0" ]
2
2021-09-16T00:33:19.000Z
2021-09-29T13:08:10.000Z
#include <gtest/gtest.h> #include "fixtures.hpp" #include "mainwindow.hpp" namespace appTestSuit { /** * Check for environment integrity. */ TEST(Smoke, CheckEnvironment) { // NOLINT(cert-err58-cpp) ASSERT_EQ(MainWindow::objectId(), QString::number(1000, 10)); } /** * Check t...
27.607143
100
0.648124
TheLongRunSmoke
93d9525d45f267e9fb26e8fc1d6864b0a795ef4b
1,044
cpp
C++
src/utils/timerfd.cpp
jhweintraub/boki
65f3c713211c41329878f0057d8659a89243b388
[ "Apache-2.0" ]
26
2021-09-02T13:11:26.000Z
2022-03-25T09:38:40.000Z
src/utils/timerfd.cpp
jhweintraub/boki
65f3c713211c41329878f0057d8659a89243b388
[ "Apache-2.0" ]
null
null
null
src/utils/timerfd.cpp
jhweintraub/boki
65f3c713211c41329878f0057d8659a89243b388
[ "Apache-2.0" ]
4
2021-09-02T13:11:29.000Z
2022-02-09T20:54:11.000Z
#include "utils/timerfd.h" #include <sys/types.h> #include <sys/timerfd.h> namespace faas { namespace io_utils { int CreateTimerFd() { int fd = timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC); if (fd == -1) { PLOG(ERROR) << "Failed to create timerfd"; return -1; } return fd; } bool Setu...
24.857143
84
0.643678
jhweintraub
93dc599373b6ad27c8e299716ca22deaf2d2b963
590
cpp
C++
src/parser/ClassInfo.cpp
shgli/cpp-protobuf
2544ff76950c7546f4c597db2992ac0be12376d1
[ "Apache-2.0" ]
6
2015-06-25T11:03:17.000Z
2021-03-30T12:22:20.000Z
src/parser/ClassInfo.cpp
shgli/cpp-protobuf
2544ff76950c7546f4c597db2992ac0be12376d1
[ "Apache-2.0" ]
null
null
null
src/parser/ClassInfo.cpp
shgli/cpp-protobuf
2544ff76950c7546f4c597db2992ac0be12376d1
[ "Apache-2.0" ]
4
2015-11-06T03:50:03.000Z
2020-12-09T03:51:32.000Z
#include <cassert> #include "ClassInfo.h" #include "Utils.h" #include "FieldInfo.h" ClassInfo::ClassInfo(tree type) :mIsSerializable(false) ,mSyntaxTree(type) ,mIsCurrentUnit(false) ,mIsCollected(false) { assert(nullptr != mSyntaxTree); std::memset(mMethodInfos,0,sizeof(mMethodInfos)); if(nu...
21.851852
55
0.677966
shgli
93dd5f926ba34df8b40a79e747cd6fa8f64e49ed
3,149
cpp
C++
src/gameaudio/WavDecoder.cpp
YosukeM/GameAudio
49d4f5b56058b6f99d3f33438139adc07f56547a
[ "Unlicense", "MIT" ]
2
2015-06-21T09:49:21.000Z
2015-11-12T01:13:41.000Z
src/gameaudio/WavDecoder.cpp
YosukeM/GameAudio
49d4f5b56058b6f99d3f33438139adc07f56547a
[ "Unlicense", "MIT" ]
null
null
null
src/gameaudio/WavDecoder.cpp
YosukeM/GameAudio
49d4f5b56058b6f99d3f33438139adc07f56547a
[ "Unlicense", "MIT" ]
null
null
null
#include "WavDecoder.h" #include "../../include/gameaudio/IFileReader.h" using namespace gameaudio; namespace { bool rescmp(const char* buf, const char* name) { for (unsigned i = 0; i < 4; ++i) { if (buf[i] != name[i]) return false; } return true; } unsigned read4(const char* buf) { unsigned data = 0; ...
21.568493
91
0.640838
YosukeM
93e13c2a09c86ed8d21d0c8bbb02af606d8349e3
1,556
cpp
C++
samples/visiome/MotionInducedPositionShift.cpp
HosokawaKenchi/PsychlopsJS
3209442e6dbda57dbdf5e0ed6ffefc55972fb8fb
[ "MIT" ]
null
null
null
samples/visiome/MotionInducedPositionShift.cpp
HosokawaKenchi/PsychlopsJS
3209442e6dbda57dbdf5e0ed6ffefc55972fb8fb
[ "MIT" ]
3
2020-06-06T04:16:06.000Z
2020-07-24T07:36:06.000Z
samples/visiome/MotionInducedPositionShift.cpp
psychlopsdev/PsychlopsJS
3209442e6dbda57dbdf5e0ed6ffefc55972fb8fb
[ "MIT" ]
1
2018-12-17T04:59:11.000Z
2018-12-17T04:59:11.000Z
#include <psychlops.h> using namespace Psychlops; void psychlops_main() { AppInfo::expname = "MotionInducedPositionShift"; Canvas::useNoisyBit(true); Canvas cnvs(Canvas::fullscreen); Color::setGammaValue(); double pxr = cnvs.getPixelRatio(); Clock before, after, exam_start, exam_end; int DISPLAYE...
25.096774
87
0.606041
HosokawaKenchi
93e17e803cc7e4195a7abd0adb5555addb119659
703
cpp
C++
cgcollector/test/CGSimpleTester.cpp
sebastiankreutzer/MetaCG
380728352e63e659103696974e5d3bde372dfdbf
[ "BSD-3-Clause" ]
21
2020-08-24T12:11:21.000Z
2021-12-21T09:53:18.000Z
cgcollector/test/CGSimpleTester.cpp
sebastiankreutzer/MetaCG
380728352e63e659103696974e5d3bde372dfdbf
[ "BSD-3-Clause" ]
1
2021-10-19T08:29:22.000Z
2021-10-19T11:35:58.000Z
cgcollector/test/CGSimpleTester.cpp
sebastiankreutzer/MetaCG
380728352e63e659103696974e5d3bde372dfdbf
[ "BSD-3-Clause" ]
4
2020-11-21T07:12:30.000Z
2021-11-08T12:09:03.000Z
#include "nlohmann/json.hpp" #include <fstream> #include <iostream> int main(int argc, char **argv) { if (argc != 3) { std::cerr << "Usage: " << argv[0] << " groundtruth.json collector-result.ipcg" << std::endl; return -1; } std::cout << "Running test for " << argv[1] << " == " << argv[2] << std::endl;...
19.527778
96
0.573257
sebastiankreutzer
93e3405367b66a88c6e9a568ac4640bd480be791
5,074
cpp
C++
samples/snippets/cpp/VS_Snippets_Winforms/BindingManagerBase.CancelCurrentEdit Example/CPP/canceledit.cpp
hamarb123/dotnet-api-docs
6aeb55784944a2f1f5e773b657791cbd73a92dd4
[ "CC-BY-4.0", "MIT" ]
421
2018-04-01T01:57:50.000Z
2022-03-28T15:24:42.000Z
samples/snippets/cpp/VS_Snippets_Winforms/BindingManagerBase.CancelCurrentEdit Example/CPP/canceledit.cpp
hamarb123/dotnet-api-docs
6aeb55784944a2f1f5e773b657791cbd73a92dd4
[ "CC-BY-4.0", "MIT" ]
5,797
2018-04-02T21:12:23.000Z
2022-03-31T23:54:38.000Z
samples/snippets/cpp/VS_Snippets_Winforms/BindingManagerBase.CancelCurrentEdit Example/CPP/canceledit.cpp
hamarb123/dotnet-api-docs
6aeb55784944a2f1f5e773b657791cbd73a92dd4
[ "CC-BY-4.0", "MIT" ]
1,482
2018-03-31T11:26:20.000Z
2022-03-30T22:36:45.000Z
#using <System.Data.dll> #using <System.Xml.dll> #using <System.Windows.Forms.dll> #using <System.dll> #using <System.Drawing.dll> using namespace System; using namespace System::Drawing; using namespace System::Collections; using namespace System::ComponentModel; using namespace System::Windows::Forms; ...
31.320988
99
0.560505
hamarb123
93e369e7eaae321695a79ac1d67defd9be1bc230
9,612
cpp
C++
source/OPS_Core/IO.cpp
czen/open-ops
b1ab8da354c4aecc0fe76a562395f5861bffc207
[ "BSD-3-Clause" ]
23
2017-08-01T14:29:48.000Z
2019-10-09T22:27:38.000Z
source/OPS_Core/IO.cpp
czen/open-ops
b1ab8da354c4aecc0fe76a562395f5861bffc207
[ "BSD-3-Clause" ]
2
2017-08-06T08:34:18.000Z
2017-08-08T16:27:38.000Z
source/OPS_Core/IO.cpp
czen/open-ops
b1ab8da354c4aecc0fe76a562395f5861bffc207
[ "BSD-3-Clause" ]
2
2017-08-08T12:25:06.000Z
2019-09-16T15:18:18.000Z
#include "OPS_Core/IO.h" #include "OPS_Core/Exceptions.h" #include "OPS_Core/Strings.h" #if OPS_PLATFORM_IS_WIN32 #include <direct.h> #endif #include <fstream> #include <streambuf> #include <sys/stat.h> #include "OPS_Core/Exceptions.h" #include <stdlib.h> namespace OPS { namespace IO { std::wstring getFileName(const ...
26.334247
128
0.581669
czen
93e68da8e250ae91808a117bd5986ece53289be8
676
hpp
C++
src/utility/rtn_status.hpp
hhhHanqing/bias
ac409978ac0bfc6bc4cf8570bf7ce7509e81a219
[ "Apache-2.0" ]
5
2020-07-23T18:59:08.000Z
2021-12-14T02:56:12.000Z
src/utility/rtn_status.hpp
hhhHanqing/bias
ac409978ac0bfc6bc4cf8570bf7ce7509e81a219
[ "Apache-2.0" ]
4
2020-08-30T13:55:22.000Z
2022-03-24T21:14:15.000Z
src/utility/rtn_status.hpp
hhhHanqing/bias
ac409978ac0bfc6bc4cf8570bf7ce7509e81a219
[ "Apache-2.0" ]
3
2020-10-04T17:53:15.000Z
2022-02-24T05:55:53.000Z
#ifndef BIAS_RTN_STATUS_HPP #define BIAS_RTN_STATUS_HPP #include <QString> namespace bias { class RtnStatus { public: RtnStatus() { success=true; message=QString(""); } void appendMessage(QString moreMessage) { if (message.isEmpty...
20.484848
79
0.442308
hhhHanqing
93e7e8716d0bd646d900186bb458fa1b0ea51a14
13,941
cpp
C++
src/shader_compiler.cpp
nyamadan/shader_editor
477aa7165a6f6d721466a4d2fe4d326cf8c9b5df
[ "MIT" ]
4
2019-01-29T07:31:00.000Z
2020-02-18T16:19:08.000Z
src/shader_compiler.cpp
nyamadan/shader_editor
477aa7165a6f6d721466a4d2fe4d326cf8c9b5df
[ "MIT" ]
8
2019-02-03T14:15:15.000Z
2020-07-06T02:46:32.000Z
src/shader_compiler.cpp
nyamadan/shader_editor
477aa7165a6f6d721466a4d2fe4d326cf8c9b5df
[ "MIT" ]
null
null
null
#include "shader_compiler.hpp" #include <array> #include <sstream> #include <string> #include <utility> #include <vector> #include "../glslang/SPIRV/GlslangToSpv.h" #include "../glslang/SPIRV/disassemble.h" #include "../glslang/glslang/Include/ShHandle.h" #include "../glslang/StandAlone/ResourceLimits.h" #include "....
34.002439
80
0.614662
nyamadan
93e9a7948c67c6cb0e3bdccf9efc6e71eda02817
335
hpp
C++
src/armnn/backends/CpuTensorHandleFwd.hpp
KevinRodrigues05/armnn_caffe2_parser
c577f2c6a3b4ddb6ba87a882723c53a248afbeba
[ "MIT" ]
1
2019-03-19T08:44:28.000Z
2019-03-19T08:44:28.000Z
src/armnn/backends/CpuTensorHandleFwd.hpp
KevinRodrigues05/armnn_caffe2_parser
c577f2c6a3b4ddb6ba87a882723c53a248afbeba
[ "MIT" ]
null
null
null
src/armnn/backends/CpuTensorHandleFwd.hpp
KevinRodrigues05/armnn_caffe2_parser
c577f2c6a3b4ddb6ba87a882723c53a248afbeba
[ "MIT" ]
1
2019-10-11T05:58:56.000Z
2019-10-11T05:58:56.000Z
// // Copyright © 2017 Arm Ltd. All rights reserved. // See LICENSE file in the project root for full license information. // #pragma once namespace armnn { class ConstCpuTensorHandle; class CpuTensorHandle; class ScopedCpuTensorHandle; class PassthroughCpuTensorHandle; class ConstPassthroughCpuTensorHandle; } // n...
19.705882
69
0.797015
KevinRodrigues05
93ea88495872c303e011efd58ee8858ee67628f7
46
hpp
C++
src/boost_container_node_allocator.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
10
2018-03-17T00:58:42.000Z
2021-07-06T02:48:49.000Z
src/boost_container_node_allocator.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
2
2021-03-26T15:17:35.000Z
2021-05-20T23:55:08.000Z
src/boost_container_node_allocator.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
4
2019-05-28T21:06:37.000Z
2021-07-06T03:06:52.000Z
#include <boost/container/node_allocator.hpp>
23
45
0.826087
miathedev
93eb4c46c8e0f904b27c347caf188f2b66e1215b
2,605
cpp
C++
projects/3_theory_info/theory_info_5/mainwindow.cpp
GodBastardNeil/somethings
56a25ab2a3150658356924b00fed7d97ad76a9cb
[ "BSD-3-Clause" ]
null
null
null
projects/3_theory_info/theory_info_5/mainwindow.cpp
GodBastardNeil/somethings
56a25ab2a3150658356924b00fed7d97ad76a9cb
[ "BSD-3-Clause" ]
null
null
null
projects/3_theory_info/theory_info_5/mainwindow.cpp
GodBastardNeil/somethings
56a25ab2a3150658356924b00fed7d97ad76a9cb
[ "BSD-3-Clause" ]
null
null
null
#include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); } MainWindow::~MainWindow() { delete ui; } void MainWindow::get_g() { bit tmp ("1"+std::string(n-1, '0')+"1"); int siz = g_table.size(); for ...
24.575472
118
0.450288
GodBastardNeil
93eca9512ca8921a876625cf2761ff758385e324
1,993
hpp
C++
include/libecs-cpp/Container.hpp
metaverse-systems/libecs-cpp
508a7a091fc7a47560f9d3f551b8d36584471359
[ "MIT" ]
null
null
null
include/libecs-cpp/Container.hpp
metaverse-systems/libecs-cpp
508a7a091fc7a47560f9d3f551b8d36584471359
[ "MIT" ]
null
null
null
include/libecs-cpp/Container.hpp
metaverse-systems/libecs-cpp
508a7a091fc7a47560f9d3f551b8d36584471359
[ "MIT" ]
null
null
null
#pragma once #include <json/json.h> #include <string> #include <vector> #include <unordered_map> #if _WIN32 #include <mingw.thread.h> #else #include <thread> #endif #include <unistd.h> #include <libecs-cpp/Resource.hpp> #include <libecs-cpp/Component.hpp> namespace ecs { class Manager; class System; ...
28.884058
85
0.627195
metaverse-systems
93f11f77bdfc7ed3c26930198779488ccf94b91e
2,377
cpp
C++
core/inst_c0b.cpp
autch/piemu
bf15030757c49325c155a853871aee45b616717a
[ "Zlib" ]
10
2017-07-04T03:05:42.000Z
2022-01-20T17:37:06.000Z
core/inst_c0b.cpp
autch/piemu
bf15030757c49325c155a853871aee45b616717a
[ "Zlib" ]
2
2020-06-29T13:32:15.000Z
2021-12-22T23:04:43.000Z
core/inst_c0b.cpp
autch/piemu
bf15030757c49325c155a853871aee45b616717a
[ "Zlib" ]
5
2021-08-28T02:21:56.000Z
2022-01-16T21:39:16.000Z
#include "inst.h" /**************************************************************************** * CLASS 0B ****************************************************************************/ #undef INST #define INST INST_CLASS_0B C33_OP(jrgt_sign8) { c33word cc, addr; cc = !(PSR.n ^ PSR.v) && !PSR.z; addr = ext_...
18.145038
78
0.515776
autch
93f905cd33be8511b71230545ad2c9d72746d009
527
cpp
C++
tools/clang/test/CXX/class.derived/class.abstract/p16.cpp
nettrino/IntFlow
0400aef5da2c154268d8b020e393c950435395b3
[ "Unlicense" ]
16
2015-09-08T08:49:11.000Z
2019-07-20T14:46:20.000Z
tools/clang/test/CXX/class.derived/class.abstract/p16.cpp
nettrino/IntFlow
0400aef5da2c154268d8b020e393c950435395b3
[ "Unlicense" ]
1
2019-02-10T08:27:48.000Z
2019-02-10T08:27:48.000Z
tools/clang/test/CXX/class.derived/class.abstract/p16.cpp
nettrino/IntFlow
0400aef5da2c154268d8b020e393c950435395b3
[ "Unlicense" ]
7
2016-05-26T17:31:46.000Z
2020-11-04T06:39:23.000Z
// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s struct A { virtual void a(); // expected-note{{overridden virtual function is here}} virtual void b() = delete; // expected-note{{overridden virtual function is here}} }; struct B: A { virtual void a() = delete; // expected-error{{deleted function 'a' canno...
31
109
0.681214
nettrino
9e020548ad731466526ac2940992cec5a0bed40f
243
cpp
C++
01. Basic Syntax/Basic Syntax/04. 1 to N/04. 1toN.cpp
lubomirv999/CPlusPlus-Fundamentals
e370546c819635132478943f658e26bbc4604c8f
[ "MIT" ]
1
2019-01-11T11:50:42.000Z
2019-01-11T11:50:42.000Z
01. Basic Syntax/Basic Syntax/04. 1 to N/04. 1toN.cpp
lubomirv999/CPlusPlus-Fundamentals
e370546c819635132478943f658e26bbc4604c8f
[ "MIT" ]
null
null
null
01. Basic Syntax/Basic Syntax/04. 1 to N/04. 1toN.cpp
lubomirv999/CPlusPlus-Fundamentals
e370546c819635132478943f658e26bbc4604c8f
[ "MIT" ]
null
null
null
#include "stdafx.h" #include <iostream> #include <iomanip> #include <string> #include <math.h> #include <cmath> using namespace std; int main() { int nums; cin >> nums; for (int i = 1; i <= nums; i++) cout << i << " "; return 0; }
12.789474
32
0.592593
lubomirv999
9e05e5e31f4f8f67492ca8d014b2edd80e140060
4,168
cpp
C++
src/engine/route_parameters.cpp
mortada/osrm-backend
aae02cd1be7e99eb75117c7d8c9f39b858ad9019
[ "BSD-2-Clause" ]
null
null
null
src/engine/route_parameters.cpp
mortada/osrm-backend
aae02cd1be7e99eb75117c7d8c9f39b858ad9019
[ "BSD-2-Clause" ]
null
null
null
src/engine/route_parameters.cpp
mortada/osrm-backend
aae02cd1be7e99eb75117c7d8c9f39b858ad9019
[ "BSD-2-Clause" ]
1
2019-09-20T00:55:14.000Z
2019-09-20T00:55:14.000Z
#include "engine/route_parameters.hpp" #include "util/coordinate.hpp" #include "engine/polyline_compressor.hpp" #include <string> #include <utility> namespace osrm { namespace engine { RouteParameters::RouteParameters() : zoom_level(18), print_instructions(false), alternate_route(true), geometry(true), co...
27.602649
100
0.71857
mortada
9e0742c6ea88ffdc3283249a006d7902fec477ba
3,864
cpp
C++
src/wham/Estimator_F_x_y.cpp
seanmarks/wham
3ffdfcd46d165836c236588c6444acc0cb01fa6b
[ "MIT" ]
1
2020-10-12T19:32:33.000Z
2020-10-12T19:32:33.000Z
src/wham/Estimator_F_x_y.cpp
seanmarks/wham
3ffdfcd46d165836c236588c6444acc0cb01fa6b
[ "MIT" ]
null
null
null
src/wham/Estimator_F_x_y.cpp
seanmarks/wham
3ffdfcd46d165836c236588c6444acc0cb01fa6b
[ "MIT" ]
1
2020-10-15T19:02:21.000Z
2020-10-15T19:02:21.000Z
// AUTHOR: Sean M. Marks (https://github.com/seanmarks) #include "Estimator_F_x_y.hpp" Estimator_F_x_y::Estimator_F_x_y( const OrderParameter& x, const OrderParameter& y ): x_(x), y_(y) { } void Estimator_F_x_y::calculateUsingStoredWeights( const Wham& wham ) { // Sort samples by bin const auto& bins_x = ...
30.666667
113
0.64001
seanmarks
9e076a78e350a8ff255c411cb0e8998146831d5c
1,777
hpp
C++
SDK/ARKSurvivalEvolved_Buff_ParaWarningAlert_parameters.hpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
10
2020-02-17T19:08:46.000Z
2021-07-31T11:07:19.000Z
SDK/ARKSurvivalEvolved_Buff_ParaWarningAlert_parameters.hpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
9
2020-02-17T18:15:41.000Z
2021-06-06T19:17:34.000Z
SDK/ARKSurvivalEvolved_Buff_ParaWarningAlert_parameters.hpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
3
2020-07-22T17:42:07.000Z
2021-06-19T17:16:13.000Z
#pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_Buff_ParaWarningAlert_classes.hpp" namespace sdk { //--------------------------------------------------------------------------- //Parameters //------------------------------------------------...
34.843137
160
0.615644
2bite
9e0c33564befe8d701101d812bf8fc3c95e66a38
6,847
cpp
C++
ext/include/osgEarthFeatures/FeatureSource.cpp
energonQuest/dtEarth
47b04bb272ec8781702dea46f5ee9a03d4a22196
[ "MIT" ]
6
2015-09-26T15:33:41.000Z
2021-06-13T13:21:50.000Z
ext/include/osgEarthFeatures/FeatureSource.cpp
energonQuest/dtEarth
47b04bb272ec8781702dea46f5ee9a03d4a22196
[ "MIT" ]
null
null
null
ext/include/osgEarthFeatures/FeatureSource.cpp
energonQuest/dtEarth
47b04bb272ec8781702dea46f5ee9a03d4a22196
[ "MIT" ]
5
2015-05-04T09:02:23.000Z
2019-06-17T11:34:12.000Z
/* -*-c++-*- */ /* osgEarth - Dynamic map generation toolkit for OpenSceneGraph * Copyright 2008-2013 Pelican Mapping * http://osgearth.org * * osgEarth is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundat...
30.030702
108
0.616182
energonQuest
9e0ee1b9697bd86d513ed652a89531193f941d38
20,405
cpp
C++
src/Level.cpp
ArionasMC/Asteroids
b5a81f833af1615ede2706bfe41baa8b661fa209
[ "Apache-2.0" ]
null
null
null
src/Level.cpp
ArionasMC/Asteroids
b5a81f833af1615ede2706bfe41baa8b661fa209
[ "Apache-2.0" ]
null
null
null
src/Level.cpp
ArionasMC/Asteroids
b5a81f833af1615ede2706bfe41baa8b661fa209
[ "Apache-2.0" ]
null
null
null
#include "Level.h" #include "Game.h" #include "TextureManager.h" #include "GameObject.h" #include "Player.h" #include "Bullet.h" #include "Asteroid.h" #include <stdlib.h> #include <iostream> #include <vector> #include <time.h> #include <fstream> using namespace std; Player* player; vector<Asteroid*>...
32.184543
186
0.4642
ArionasMC
9e13d19cfccf28abd6fa8441e8a49dc649826fff
1,313
cpp
C++
0833-Process Sequence/0833-Process Sequence.cpp
nmdis1999/LintCode-1
316fa395c9a6de9bfac1d9c9cf58acb5ffb384a6
[ "MIT" ]
77
2017-12-30T13:33:37.000Z
2022-01-16T23:47:08.000Z
0801-0900/0833-Process Sequence/0833-Process Sequence.cpp
jxhangithub/LintCode-1
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
1
2018-05-14T14:15:40.000Z
2018-05-14T14:15:40.000Z
0801-0900/0833-Process Sequence/0833-Process Sequence.cpp
jxhangithub/LintCode-1
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
39
2017-12-07T14:36:25.000Z
2022-03-10T23:05:37.000Z
/** * Definition of Interval: * class Interval { * int start, end; * Interval(int start, int end) { * this->start = start; * this->end = end; * } */ class Solution { public: /** * @param logs: Sequence of processes * @param queries: Sequence of queries * @return: R...
25.25
81
0.456207
nmdis1999
9e14fb3566580a8879e63a7bd91a852157dbefd6
452
hpp
C++
src/texture.hpp
jlburgos/simple-game
5e1e7cf24bad3d6c8303924f68ff74aed7096317
[ "Zlib" ]
null
null
null
src/texture.hpp
jlburgos/simple-game
5e1e7cf24bad3d6c8303924f68ff74aed7096317
[ "Zlib" ]
1
2021-12-02T01:41:30.000Z
2021-12-02T01:41:30.000Z
src/texture.hpp
jlburgos/simple-game
5e1e7cf24bad3d6c8303924f68ff74aed7096317
[ "Zlib" ]
null
null
null
/** * @file texture.hpp * @author Juan Burgos * @brief * @version 0.1 * @date 2021-11-24 * * @copyright Copyright (c) 2021 * */ #ifndef __TEXTURE_HPP #define __TEXTURE_HPP #include "headers.hpp" class Texture { private: SDL_Texture *texture; public: Texture();...
16.142857
39
0.564159
jlburgos
9e16276d4fcd9a71be9e9e3b4001a00ef8d541f9
3,334
cpp
C++
display/imageUtils.cpp
zlab-pub/mousetouch
72c18ad4c96de5a07a16400cad0430cee9f4135a
[ "Apache-2.0" ]
null
null
null
display/imageUtils.cpp
zlab-pub/mousetouch
72c18ad4c96de5a07a16400cad0430cee9f4135a
[ "Apache-2.0" ]
null
null
null
display/imageUtils.cpp
zlab-pub/mousetouch
72c18ad4c96de5a07a16400cad0430cee9f4135a
[ "Apache-2.0" ]
null
null
null
#include "imageUtils.h" #include "common.h" #include <memory> #include <string> #include <opencv2/core.hpp> #include <opencv2/imgproc.hpp> #include <opencv2/highgui.hpp> unsigned int makeTexture(unsigned char *buffer, int width, int height, int channel) { //only for BGR or BGRA image with 8bit fixed point depth. ...
34.729167
129
0.745051
zlab-pub
9e166f6534324b868e0641c51d8d9fc26774b8f8
1,165
cpp
C++
cpp/godot-cpp/src/gen/Path.cpp
GDNative-Gradle/proof-of-concept
162f467430760cf959f68f1638adc663fd05c5fd
[ "MIT" ]
1
2021-03-16T09:51:00.000Z
2021-03-16T09:51:00.000Z
cpp/godot-cpp/src/gen/Path.cpp
GDNative-Gradle/proof-of-concept
162f467430760cf959f68f1638adc663fd05c5fd
[ "MIT" ]
null
null
null
cpp/godot-cpp/src/gen/Path.cpp
GDNative-Gradle/proof-of-concept
162f467430760cf959f68f1638adc663fd05c5fd
[ "MIT" ]
null
null
null
#include "Path.hpp" #include <core/GodotGlobal.hpp> #include <core/CoreTypes.hpp> #include <core/Ref.hpp> #include <core/Godot.hpp> #include "__icalls.hpp" #include "Curve3D.hpp" namespace godot { Path::___method_bindings Path::___mb = {}; void Path::___init_method_bindings() { ___mb.mb__curve_changed = godo...
27.738095
189
0.758798
GDNative-Gradle
9e1a7ce7f5643f9110f8e733fdbe90d834c991b4
1,669
cpp
C++
lib/mark3c/test/ut_mark3c.cpp
moslevin/Mark3
780aeae99d47cb0ddae611b80597305ec852e588
[ "BSD-3-Clause" ]
11
2018-09-13T12:12:18.000Z
2021-05-12T23:11:09.000Z
lib/mark3c/test/ut_mark3c.cpp
moslevin/Mark3
780aeae99d47cb0ddae611b80597305ec852e588
[ "BSD-3-Clause" ]
1
2019-02-18T20:37:22.000Z
2019-02-18T20:37:22.000Z
lib/mark3c/test/ut_mark3c.cpp
moslevin/Mark3
780aeae99d47cb0ddae611b80597305ec852e588
[ "BSD-3-Clause" ]
8
2018-09-13T12:12:27.000Z
2021-07-04T10:59:44.000Z
#include "mark3.h" #include "mark3c.h" #include "ut_platform.h" namespace Mark3 { //--------------------------------------------------------------------------- TEST(ut_mark3c_object_sizes) { // Mark3c is pretty simple - it relies on static allocations of "Fake" objects // that are essentially raw memory blobs,...
45.108108
82
0.626723
moslevin
9e1e6d4b72f69ea1934051afe0d26fd673ff9915
6,280
cpp
C++
Samples/Win7Samples/dataaccess/oledb_conformance/modulecore/src/csuperlog.cpp
windows-development/Windows-classic-samples
96f883e4c900948e39660ec14a200a5164a3c7b7
[ "MIT" ]
8
2017-04-30T17:38:27.000Z
2021-11-29T00:59:03.000Z
Samples/Win7Samples/dataaccess/oledb_conformance/modulecore/src/csuperlog.cpp
TomeSq/Windows-classic-samples
96f883e4c900948e39660ec14a200a5164a3c7b7
[ "MIT" ]
null
null
null
Samples/Win7Samples/dataaccess/oledb_conformance/modulecore/src/csuperlog.cpp
TomeSq/Windows-classic-samples
96f883e4c900948e39660ec14a200a5164a3c7b7
[ "MIT" ]
2
2020-08-11T13:21:49.000Z
2021-09-01T10:41:51.000Z
//----------------------------------------------------------------------------- // Microsoft Local Test Manager (LTM) // Copyright (C) 1997 - 1999 By Microsoft Corporation. // // @doc // // @module CSUPERLOG.CPP // //------------------------------------------------------------------------------...
21.433447
111
0.577866
windows-development
9e2d10e2c3992b8fdb53000a0ddcb85809aee826
1,029
cpp
C++
Render/i0rPrograms/Shadow.cpp
i0r/i0rTech
c74b327345e6e9e1a08c6b5631e84383431f2661
[ "BSD-3-Clause" ]
null
null
null
Render/i0rPrograms/Shadow.cpp
i0r/i0rTech
c74b327345e6e9e1a08c6b5631e84383431f2661
[ "BSD-3-Clause" ]
null
null
null
Render/i0rPrograms/Shadow.cpp
i0r/i0rTech
c74b327345e6e9e1a08c6b5631e84383431f2661
[ "BSD-3-Clause" ]
null
null
null
#include "../Common.hpp" #include <i0rRender/Mesh.hpp> #include <i0rRender/Lod.hpp> #include "Shadow.hpp" Shadow::Shadow(): m_OrthoNear( 1.0f ), m_OrthoFar( 16.0f ) { } Shadow::~Shadow() { } bool Shadow::Initialize() { m_Shader = Instance.ShaderManager->GetShader( "DepthDebug", SHADER_STAGE_VERTEX | SHADER_STAGE_...
24.5
107
0.733722
i0r
9e300ed1733fce8b6e3d10caa0aec22a7d1b3ef8
645
cpp
C++
ctpParticle/HelloTriangleApplication/Mouse.cpp
lbondi7/CTP
79c7b74764ce32b4a7918174768a486ea9cb9815
[ "MIT" ]
1
2020-05-31T11:37:24.000Z
2020-05-31T11:37:24.000Z
ctpParticle/HelloTriangleApplication/Mouse.cpp
lbondi7/CTP
79c7b74764ce32b4a7918174768a486ea9cb9815
[ "MIT" ]
null
null
null
ctpParticle/HelloTriangleApplication/Mouse.cpp
lbondi7/CTP
79c7b74764ce32b4a7918174768a486ea9cb9815
[ "MIT" ]
null
null
null
#include "Mouse.h" #include "Locator.h" #include "Keyboard.h" Mouse::Mouse(GLFWwindow* _window) : window(_window) { } Mouse::~Mouse() { } void Mouse::Update() { //if (!first_update) //{ // last_mouse_pos = mouse_pos; //} //first_update = false; last_mouse_pos = mouse_pos; double x_pos, y_pos; glfwGetCur...
16.125
96
0.682171
lbondi7
9e32ecae90ec9a73e39d2e949e3a1bdfbbc20cdd
773
cpp
C++
src/14000/14921.cpp14.cpp
upple/BOJ
e6dbf9fd17fa2b458c6a781d803123b14c18e6f1
[ "MIT" ]
8
2018-04-12T15:54:09.000Z
2020-06-05T07:41:15.000Z
src/14000/14921.cpp14.cpp
upple/BOJ
e6dbf9fd17fa2b458c6a781d803123b14c18e6f1
[ "MIT" ]
null
null
null
src/14000/14921.cpp14.cpp
upple/BOJ
e6dbf9fd17fa2b458c6a781d803123b14c18e6f1
[ "MIT" ]
null
null
null
#include <cstdio> #include <algorithm> #include <set> using namespace std; int main() { int ans = 222222222; int n, num; multiset<int> S; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%d", &num); S.insert(num); } if (*S.begin() >= 0) { printf("%d", *S.begin() + *(++S.begin())); return 0; } ...
13.803571
44
0.482536
upple
9e3982032f2fa798953c3507d906b5eba6cbeed3
1,077
cpp
C++
LeetCodeCPP/135. Candy/main.cpp
18600130137/leetcode
fd2dc72c0b85da50269732f0fcf91326c4787d3a
[ "Apache-2.0" ]
1
2019-03-29T03:33:56.000Z
2019-03-29T03:33:56.000Z
LeetCodeCPP/135. Candy/main.cpp
18600130137/leetcode
fd2dc72c0b85da50269732f0fcf91326c4787d3a
[ "Apache-2.0" ]
null
null
null
LeetCodeCPP/135. Candy/main.cpp
18600130137/leetcode
fd2dc72c0b85da50269732f0fcf91326c4787d3a
[ "Apache-2.0" ]
null
null
null
// // main.cpp // 135. Candy // // Created by admin on 2019/4/30. // Copyright © 2019年 liu. All rights reserved. // #include <iostream> #include <vector> using namespace std; auto speed=[]() { std::ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); return nullptr; }(); class Soluti...
19.232143
58
0.465181
18600130137
9e3c23f3e2b7a4862508c612df2634850ed7f311
1,097
cpp
C++
source/ion/gfx/gl/vertex_array.cpp
dvdbrink/ion
a5fe2aba7927b7a90e913cbf72325a04172fc494
[ "MIT" ]
null
null
null
source/ion/gfx/gl/vertex_array.cpp
dvdbrink/ion
a5fe2aba7927b7a90e913cbf72325a04172fc494
[ "MIT" ]
null
null
null
source/ion/gfx/gl/vertex_array.cpp
dvdbrink/ion
a5fe2aba7927b7a90e913cbf72325a04172fc494
[ "MIT" ]
null
null
null
#include <ion/gfx/gl/vertex_array.hpp> #include <ion/gfx/gl/vertex_buffer.hpp> #include <ion/gfx/gl/index_buffer.hpp> #include "error.hpp" #include "extensions.h" #include "map.hpp" #include <cassert> namespace ion { namespace gfx { namespace gl { VertexArray::VertexArray() : Resource(glGenVertexArrays, glDelet...
32.264706
177
0.713765
dvdbrink
9e47ee5e81714cfbfe096530079217566b8d7f2f
345
cc
C++
doxy_exmpl/inheritance/inheritance_main.cc
dustinksi/DoxygenExmaple
a9c714ec189dd25943b71222f15e2ef8801dc75e
[ "Apache-2.0" ]
null
null
null
doxy_exmpl/inheritance/inheritance_main.cc
dustinksi/DoxygenExmaple
a9c714ec189dd25943b71222f15e2ef8801dc75e
[ "Apache-2.0" ]
null
null
null
doxy_exmpl/inheritance/inheritance_main.cc
dustinksi/DoxygenExmaple
a9c714ec189dd25943b71222f15e2ef8801dc75e
[ "Apache-2.0" ]
null
null
null
#include "doxy_exmpl/inheritance/base.h" #include "doxy_exmpl/inheritance/impl.h" int main(int argc, const char **argv) { dustin::GeometryBase *ptr; ptr = new dustin::Circle(); ptr->DoSomething(); ptr = new dustin::Rect(); ptr->DoSomething(); ptr = new dustin::Triangle(); ptr->DoSome...
19.166667
40
0.628986
dustinksi
9e4a1d28196438c456f7296d554dbc006689a6a7
2,655
cpp
C++
analyticGeometry/Point.cpp
yingquelou/cpp
616392d07295e4ad62efc5c7e939da18dce3edb9
[ "BSD-3-Clause" ]
null
null
null
analyticGeometry/Point.cpp
yingquelou/cpp
616392d07295e4ad62efc5c7e939da18dce3edb9
[ "BSD-3-Clause" ]
null
null
null
analyticGeometry/Point.cpp
yingquelou/cpp
616392d07295e4ad62efc5c7e939da18dce3edb9
[ "BSD-3-Clause" ]
null
null
null
#pragma once #include "Point.h" Point::Point() : x(0), y(0) {} Point::Point(const double &a, const double &b) : x(a), y(b) {} Point::Point(const Point &P) : x(P.x), y(P.y) {} Point::Point(const Point &P, const double &a, const double &b) { x = a * P.x; y = b * P.y; } Point Point::operator-() const { return ...
21.24
71
0.577401
yingquelou
eafa9de2300a507af33d85b4050868ac1b39eb38
2,482
cpp
C++
src/Core/Components/Camera.cpp
HyperionDH/Tristeon
8475df94b9dbd4e3b4cc82b89c6d4bab45acef29
[ "MIT" ]
38
2017-12-04T10:48:28.000Z
2018-05-11T09:59:41.000Z
src/Core/Components/Camera.cpp
Tristeon/Tristeon3D
8475df94b9dbd4e3b4cc82b89c6d4bab45acef29
[ "MIT" ]
9
2017-12-04T09:58:55.000Z
2018-02-05T00:06:41.000Z
src/Core/Components/Camera.cpp
Tristeon/Tristeon3D
8475df94b9dbd4e3b4cc82b89c6d4bab45acef29
[ "MIT" ]
3
2018-01-10T13:39:12.000Z
2018-03-17T20:53:22.000Z
#include "Camera.h" #include "Core/GameObject.h" #include "Core/Transform.h" #include "Core/MessageBus.h" #include <Math/Vector3.h> #include "Core/Message.h" #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include "Core/Rendering/RenderManager.h" #include <XPlatform/typename.h> namespace Tristeon { ...
24.333333
99
0.660355
HyperionDH
d8057cce827e794ee5a408af321235a0a21e721c
733
cpp
C++
Two City Scheduling.cpp
chaitanyks/fuzzy-disco
bc52f779c68da3f259f116cc1f41c464db290fbf
[ "MIT" ]
1
2021-12-12T05:55:44.000Z
2021-12-12T05:55:44.000Z
Two City Scheduling.cpp
chaitanyks/fuzzy-disco
bc52f779c68da3f259f116cc1f41c464db290fbf
[ "MIT" ]
null
null
null
Two City Scheduling.cpp
chaitanyks/fuzzy-disco
bc52f779c68da3f259f116cc1f41c464db290fbf
[ "MIT" ]
null
null
null
// https://leetcode.com/problems/two-city-scheduling/ // 1029. Two City Scheduling class Solution { public: int twoCitySchedCost(vector<vector<int>>& costs) { priority_queue<pair<int,int>> pq; int n = costs.size(); for(int i=0;i<n;i++) pq.push({costs[i][1] - costs[i][0]...
22.212121
54
0.405184
chaitanyks
d808e6389a6730f42684de08da224cebc60f8c84
4,352
cc
C++
libcef_dll/cpptoc/sslinfo_cpptoc.cc
janseM3319/cef
c992ef9d5796cc371a24fc9163d4e215ecbe1721
[ "BSD-3-Clause" ]
5
2017-04-18T06:00:47.000Z
2020-12-26T06:36:36.000Z
libcef_dll/cpptoc/sslinfo_cpptoc.cc
janseM3319/cef
c992ef9d5796cc371a24fc9163d4e215ecbe1721
[ "BSD-3-Clause" ]
null
null
null
libcef_dll/cpptoc/sslinfo_cpptoc.cc
janseM3319/cef
c992ef9d5796cc371a24fc9163d4e215ecbe1721
[ "BSD-3-Clause" ]
8
2016-04-08T22:29:28.000Z
2020-11-03T17:00:35.000Z
// Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. // // --------------------------------------------------------------------------- // // This file was generated by the CEF translato...
27.544304
79
0.733686
janseM3319
d80968375673419f9b6a8425610be5999166f57e
7,583
cpp
C++
src/ligand.cpp
HongjianLi/RF-Score
91108539c19b22660bbb27b767ac27c2ca87d9eb
[ "Apache-2.0" ]
16
2015-08-24T00:15:20.000Z
2021-01-21T08:56:46.000Z
src/ligand.cpp
gianlucampos/RF-Score
91108539c19b22660bbb27b767ac27c2ca87d9eb
[ "Apache-2.0" ]
1
2017-12-26T03:00:23.000Z
2018-02-26T02:19:39.000Z
src/ligand.cpp
gianlucampos/RF-Score
91108539c19b22660bbb27b767ac27c2ca87d9eb
[ "Apache-2.0" ]
9
2015-11-12T11:35:51.000Z
2022-03-04T03:27:00.000Z
#include <string> #include <fstream> #include <cassert> #include <algorithm> #include "ligand.hpp" /// Represents a ROOT or a BRANCH in PDBQT structure. class frame { public: size_t parent; ///< Frame array index pointing to the parent of current frame. For ROOT frame, this field is not used. size_t rotor...
32.685345
149
0.613873
HongjianLi
d80a3895ab0b4211ab876323eae67065c3e80dbf
337
cpp
C++
serial_comm/src/serial_param.cpp
hackath/autocar_ws
c8a6bdf4011787b2ba3169c3a0f60d1900e68a87
[ "MIT" ]
null
null
null
serial_comm/src/serial_param.cpp
hackath/autocar_ws
c8a6bdf4011787b2ba3169c3a0f60d1900e68a87
[ "MIT" ]
null
null
null
serial_comm/src/serial_param.cpp
hackath/autocar_ws
c8a6bdf4011787b2ba3169c3a0f60d1900e68a87
[ "MIT" ]
null
null
null
#include "serial_param.h" namespace autocar { namespace serial_mul { serial_param::serial_param() { read_params(); } void serial_param::read_params() { //serial_mul cv::FileNode serial_mul = root["serial_mul"]; serial_port = (std::string)serial_mul["serial_port"]; serial_baudrate = (int)serial_mul["serial_b...
16.047619
55
0.727003
hackath
d80a8e97aaa0d2ee1cb6f594b28f83baa3257a50
3,306
cpp
C++
src/main/cpp/RobotContainer.cpp
WCR-FRC-2016/2022rep
4a58a7469b621d1d2a3baa365c87fa25e8120d7e
[ "BSD-3-Clause" ]
1
2022-02-08T20:22:33.000Z
2022-02-08T20:22:33.000Z
src/main/cpp/RobotContainer.cpp
WCR-FRC-2016/2022rep
4a58a7469b621d1d2a3baa365c87fa25e8120d7e
[ "BSD-3-Clause" ]
null
null
null
src/main/cpp/RobotContainer.cpp
WCR-FRC-2016/2022rep
4a58a7469b621d1d2a3baa365c87fa25e8120d7e
[ "BSD-3-Clause" ]
null
null
null
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2019 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
26.66129
116
0.589534
WCR-FRC-2016
d80b4b6acc1cdd399e1c0943b50ca809885c4c89
4,174
cpp
C++
samples/01_programming 101/2019-20_kn/pstack.cpp
code-hunger/lecture-notes
0200c57a4c2539b4d8b7cb172c2b6e4f5c689268
[ "MIT" ]
32
2016-11-24T01:40:21.000Z
2021-11-01T19:24:22.000Z
samples/01_programming 101/2019-20_kn/pstack.cpp
code-hunger/lecture-notes
0200c57a4c2539b4d8b7cb172c2b6e4f5c689268
[ "MIT" ]
6
2016-10-15T05:57:00.000Z
2021-08-13T12:29:24.000Z
samples/01_programming 101/2019-20_kn/pstack.cpp
code-hunger/lecture-notes
0200c57a4c2539b4d8b7cb172c2b6e4f5c689268
[ "MIT" ]
49
2016-01-26T13:36:02.000Z
2022-03-16T10:24:41.000Z
#include <iostream> #include <cassert> #include <cmath> using namespace std; void printSeq (int N) { cout << N << " "; if (N > 0) { printSeq (N-1); } cout << "(" << N << ")"; } int mydiv (int x, int y, int *r) { *r = x - (x/y)*y; return x/y; } void printAll (int a[3], size_t n) { ...
19.87619
66
0.427408
code-hunger
d80e0feb28a7abe99e456416449989310070615d
2,162
cpp
C++
binary tree/Binary Tree to DLL.cpp
BhavinRaichura/algo
126f4063383a0942f6829a54090d72893ce188a4
[ "MIT" ]
null
null
null
binary tree/Binary Tree to DLL.cpp
BhavinRaichura/algo
126f4063383a0942f6829a54090d72893ce188a4
[ "MIT" ]
null
null
null
binary tree/Binary Tree to DLL.cpp
BhavinRaichura/algo
126f4063383a0942f6829a54090d72893ce188a4
[ "MIT" ]
null
null
null
// gfg // Binary Tree to DLL // https://practice.geeksforgeeks.org/problems/binary-tree-to-dll/1 /* Given a Binary Tree (BT), convert it to a Doubly Linked List(DLL) In-Place. The left and right pointers in nodes are to be used as previous and next pointers respectively in converted DLL. The order of nodes in DLL must ...
24.850575
356
0.591582
BhavinRaichura
d81713e7167533bdf3786ad23a5380c5b9b6ca48
1,843
cpp
C++
src/xray/editor/world/sources/property_combo_box.cpp
ixray-team/ixray-2.0
85c3a544175842323fc82f42efd96c66f0fc5abb
[ "Linux-OpenIB" ]
3
2021-10-30T09:36:14.000Z
2022-03-26T17:00:06.000Z
src/xray/editor/world/sources/property_combo_box.cpp
acidicMercury8/ixray-2.0
85c3a544175842323fc82f42efd96c66f0fc5abb
[ "Linux-OpenIB" ]
null
null
null
src/xray/editor/world/sources/property_combo_box.cpp
acidicMercury8/ixray-2.0
85c3a544175842323fc82f42efd96c66f0fc5abb
[ "Linux-OpenIB" ]
1
2022-03-26T17:00:08.000Z
2022-03-26T17:00:08.000Z
//////////////////////////////////////////////////////////////////////////// // Created : 13.05.2010 // Author : Evgeniy Obertyukh // Copyright (C) GSC Game World - 2010 //////////////////////////////////////////////////////////////////////////// #include "pch.h" #include "property_combo_box.h" using names...
22.47561
77
0.632664
ixray-team
d81ca55789101f2b8c246858cf8b53b3f22ba992
11,838
cpp
C++
Projects/Proto-8_Template/P8Panel.cpp
marshalltaylorSFE/Proto-8
c56c0ae2259f1a8994c5765c683befa7d233ffc4
[ "MIT" ]
14
2017-01-20T03:38:40.000Z
2022-03-12T14:19:20.000Z
Projects/Proto-8_Template/P8Panel.cpp
marshalltaylorSFE/Proto-8
c56c0ae2259f1a8994c5765c683befa7d233ffc4
[ "MIT" ]
1
2017-05-11T00:35:16.000Z
2017-05-11T00:35:16.000Z
Projects/Proto-8_Template/P8Panel.cpp
marshalltaylorSFE/Proto-8
c56c0ae2259f1a8994c5765c683befa7d233ffc4
[ "MIT" ]
4
2016-11-03T04:57:48.000Z
2021-03-02T06:40:44.000Z
//**********************************************************************// // // Template for the full Proto-8 // // Provides panel interfaces for: // 4 audio osc // 2 lfo // 2 Bendvelopes // 5 patchbays // master tune // // Written by: Marshall Taylor // April 3, 2017 // //****************************...
34.017241
136
0.709326
marshalltaylorSFE
d81e67b48d68ad29b446c3d44b1afc241a986edb
550
hpp
C++
Remote-PC-Monitoring-Tool/server/GPUUsageSensor.hpp
profezzional/Remote-PC-Monitoring-Tool
1c583edbeb6b9844f12979e4dfe121f4aa97a5a9
[ "MIT" ]
8
2020-07-27T04:01:34.000Z
2021-06-23T17:35:50.000Z
Remote-PC-Monitoring-Tool/server/GPUUsageSensor.hpp
profezzional/Remote-PC-Monitoring-Tool
1c583edbeb6b9844f12979e4dfe121f4aa97a5a9
[ "MIT" ]
10
2020-07-27T04:06:51.000Z
2020-07-30T00:49:30.000Z
Remote-PC-Monitoring-Tool/server/GPUUsageSensor.hpp
profezzional/Remote-PC-Monitoring-Tool
1c583edbeb6b9844f12979e4dfe121f4aa97a5a9
[ "MIT" ]
1
2020-07-27T14:10:27.000Z
2020-07-27T14:10:27.000Z
#pragma once #include "Sensor.hpp" class GPUUsageSensor : public Sensor { public: std::string_view getName() override { return "gpuUsage"; } std::string_view getPrettyName() override { return "GPU Usage"; } UnitEnum getUnit() override { return UnitEnum::Percentage; } nlohmann::j...
16.176471
65
0.636364
profezzional
d8302525e511f56b17d64f58830b95d9787946c6
9,721
cpp
C++
src/Technosoftware/Server/Da/DaEnumItemAttributes.cpp
AkatorMr/opc-daae-server
7d56e4603064b53476d3c0971a4d873066fba65f
[ "Info-ZIP" ]
null
null
null
src/Technosoftware/Server/Da/DaEnumItemAttributes.cpp
AkatorMr/opc-daae-server
7d56e4603064b53476d3c0971a4d873066fba65f
[ "Info-ZIP" ]
null
null
null
src/Technosoftware/Server/Da/DaEnumItemAttributes.cpp
AkatorMr/opc-daae-server
7d56e4603064b53476d3c0971a4d873066fba65f
[ "Info-ZIP" ]
1
2021-04-15T01:08:29.000Z
2021-04-15T01:08:29.000Z
/* * Copyright (c) 2020 Technosoftware GmbH. All rights reserved * Web: https://technosoftware.com * * The source code in this file is covered under a dual-license scenario: * - Owner of a purchased license: SCLA 1.0 * - GPL V3: everybody else * * SCLA license terms accompanied with this source code. * S...
28.176812
91
0.523094
AkatorMr
d83149cf15a7497bec8415ffd0d937160754584d
2,831
hpp
C++
Engine/Source/Platform/OpenGL/Rendering/OpenGLVertexArray.hpp
Matthew-Krueger/GEOGL
aae6adbd3d9cfadb4fe65b961d018636e42ddecc
[ "Zlib" ]
null
null
null
Engine/Source/Platform/OpenGL/Rendering/OpenGLVertexArray.hpp
Matthew-Krueger/GEOGL
aae6adbd3d9cfadb4fe65b961d018636e42ddecc
[ "Zlib" ]
null
null
null
Engine/Source/Platform/OpenGL/Rendering/OpenGLVertexArray.hpp
Matthew-Krueger/GEOGL
aae6adbd3d9cfadb4fe65b961d018636e42ddecc
[ "Zlib" ]
null
null
null
/******************************************************************************* * Copyright (c) 2020 Matthew Krueger * * * * This software is provided 'as-is', without any express or implied ...
49.666667
121
0.480749
Matthew-Krueger
d8399639f977aa2709b5035806b88e97c63e5033
2,348
cpp
C++
WxPrototype/GridViewFrame.cpp
cpshah1507/WxPrototype
e4514ab434a07f2d035445bf6066fc29b1c95eab
[ "MIT" ]
1
2021-08-01T09:31:52.000Z
2021-08-01T09:31:52.000Z
WxPrototype/GridViewFrame.cpp
cpshah1507/WxPrototype
e4514ab434a07f2d035445bf6066fc29b1c95eab
[ "MIT" ]
null
null
null
WxPrototype/GridViewFrame.cpp
cpshah1507/WxPrototype
e4514ab434a07f2d035445bf6066fc29b1c95eab
[ "MIT" ]
null
null
null
#include "GridViewFrame.h" #include <random> //#include "wx/wrapsizer.h" #define UPDATE_DATA_TIMER_ID 1 #define COL_SIZE 5 #define ROW_SIZE 10 wxBEGIN_EVENT_TABLE(GridViewFrame, wxFrame) EVT_CLOSE(GridViewFrame::OnClose) EVT_TIMER(UPDATE_DATA_TIMER_ID, GridViewFrame::UpdateData) wxEND_EVENT_TABLE() /* This frame d...
25.802198
153
0.724446
cpshah1507
d83a8d3c1058c609cbcf016879bcc6eea92e674d
10,752
cpp
C++
packages/monte_carlo/collision/native/src/MonteCarlo_PhotonDataFluorescence.cpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
packages/monte_carlo/collision/native/src/MonteCarlo_PhotonDataFluorescence.cpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
packages/monte_carlo/collision/native/src/MonteCarlo_PhotonDataFluorescence.cpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
//---------------------------------------------------------------------------// //! //! \file MonteCarlo_PhotonDataFluorescence.cpp //! \author Alex Robinson //! \brief PhotonDataFluorescence class definition //! //---------------------------------------------------------------------------// // Std Lib Includes #in...
33.917981
123
0.705915
lkersting
d842f883f38745709325aa1e3fcd95aac73a7339
1,568
hh
C++
nox/src/nox/netapps/topology/pytopology.hh
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
28
2015-02-04T13:59:25.000Z
2021-12-29T03:44:47.000Z
nox/src/nox/netapps/topology/pytopology.hh
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
552
2015-01-05T18:25:54.000Z
2022-03-16T18:51:13.000Z
nox/src/nox/netapps/topology/pytopology.hh
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
25
2015-02-04T18:48:20.000Z
2020-06-18T15:51:05.000Z
/* Copyright 2008 (C) Nicira, Inc. * * This file is part of NOX. * * NOX is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * N...
24.888889
82
0.712372
ayjazz
d849b2c94ad1f6b42d7193529f513ba682b08c30
1,413
cpp
C++
data-structures/graph/cats.cpp
dhwanisanmukhani/competitive-coding
5392dea65b6ac370ac641c993120d7f252f5b1ac
[ "MIT" ]
null
null
null
data-structures/graph/cats.cpp
dhwanisanmukhani/competitive-coding
5392dea65b6ac370ac641c993120d7f252f5b1ac
[ "MIT" ]
null
null
null
data-structures/graph/cats.cpp
dhwanisanmukhani/competitive-coding
5392dea65b6ac370ac641c993120d7f252f5b1ac
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using namespace std; typedef pair<int,int> ii; typedef vector<ii> vii; typedef std::vector<int> vi; void tour(vi& flag, vector<vector<int> >& graph, vii& dp, vi& visit, int i) { /*if(visit[i]==1) { return; }*/ visit[i]=1; for(int j=0;j<graph[i].size();j++) { if(visit[gr...
16.623529
75
0.550602
dhwanisanmukhani
d851173c2ec0ffcf3bfec05d515ee322c7227d2c
2,107
cpp
C++
src/orderparameters/SwitchingFunction_Indus_r.cpp
seanmarks/indus
a25012d79d5cb94986a3210a0c7f21b6d427ce5b
[ "MIT" ]
6
2019-01-14T16:03:19.000Z
2021-06-28T06:10:33.000Z
src/orderparameters/SwitchingFunction_Indus_r.cpp
seanmarks/indus
a25012d79d5cb94986a3210a0c7f21b6d427ce5b
[ "MIT" ]
3
2020-01-25T21:46:15.000Z
2021-08-17T15:31:53.000Z
src/orderparameters/SwitchingFunction_Indus_r.cpp
seanmarks/indus
a25012d79d5cb94986a3210a0c7f21b6d427ce5b
[ "MIT" ]
2
2021-01-29T16:53:19.000Z
2021-10-29T19:05:08.000Z
// SwitchingFunction_Indus_r #include "SwitchingFunction_Indus_r.h" SwitchingFunction_Indus_r::SwitchingFunction_Indus_r( const double r_max, const double sigma, const double alpha_c ) : SwitchingFunction_Indus(sigma, alpha_c), r_max_(r_max) { this->set_r_max(r_max_); ...
26.012346
101
0.637874
seanmarks
d856d2a2bcb5dc795a598d1d7d67acd6c98c7213
390
cpp
C++
CPP.Part_2/week_1/helpers/demangling/main.cpp
DGolgovsky/Courses
01e2dedc06f677bcdb1cbfd02ccc08a89cc932a0
[ "Unlicense" ]
4
2017-11-17T12:02:21.000Z
2021-02-08T11:24:16.000Z
CPP.Part_2/week_1/helpers/demangling/main.cpp
DGolgovsky/Courses
01e2dedc06f677bcdb1cbfd02ccc08a89cc932a0
[ "Unlicense" ]
null
null
null
CPP.Part_2/week_1/helpers/demangling/main.cpp
DGolgovsky/Courses
01e2dedc06f677bcdb1cbfd02ccc08a89cc932a0
[ "Unlicense" ]
null
null
null
#include <iostream> #include "type.hpp" struct Base { virtual ~Base() {} }; struct Derived : public Base { }; int main() { Base* ptr_base = new Derived(); // Please use smart pointers in YOUR code! std::cout << "Type of ptr_base: " << type(ptr_base) << std::endl; std::cout << "Type of pointee: " <<...
15.6
78
0.6
DGolgovsky
d85961834c7c533bd73406866c1e20952a7345c3
2,347
cpp
C++
RenderEngine/material/Glossy.cpp
voldemarz/OppositeRenderer
691817c5ea67b0f5b81c1a2680e07e0e8cd05f13
[ "MIT" ]
5
2018-05-10T06:16:57.000Z
2021-11-19T11:40:43.000Z
RenderEngine/material/Glossy.cpp
voldemarz/OppositeRenderer
691817c5ea67b0f5b81c1a2680e07e0e8cd05f13
[ "MIT" ]
null
null
null
RenderEngine/material/Glossy.cpp
voldemarz/OppositeRenderer
691817c5ea67b0f5b81c1a2680e07e0e8cd05f13
[ "MIT" ]
2
2018-02-18T12:36:12.000Z
2021-11-19T01:52:53.000Z
/* * Copyright (c) 2014 Opposite Renderer * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. * * Contributions: Valdis Vilcans */ #include "Glossy.h" #include "renderer/RayType.h" #include <optixu/optixu_math_namespace.h> ...
35.560606
140
0.714955
voldemarz
d85b0c6c5a4db3c656c430143475155ea52d59d7
788
hpp
C++
include/blackhole/wrapper.hpp
JakariaBlaine/blackhole
e340329c6e2e3166858d8466656ad12300b686bd
[ "MIT" ]
193
2015-01-05T08:48:05.000Z
2022-01-31T22:04:01.000Z
include/blackhole/wrapper.hpp
JakariaBlaine/blackhole
e340329c6e2e3166858d8466656ad12300b686bd
[ "MIT" ]
135
2015-01-13T13:02:49.000Z
2022-01-12T15:06:48.000Z
include/blackhole/wrapper.hpp
JakariaBlaine/blackhole
e340329c6e2e3166858d8466656ad12300b686bd
[ "MIT" ]
40
2015-01-21T16:37:30.000Z
2022-01-25T15:54:04.000Z
#pragma once #include "blackhole/logger.hpp" #include "blackhole/attribute.hpp" namespace blackhole { inline namespace v1 { class wrapper_t : public logger_t { logger_t& inner; attributes_t storage; view_of<attributes_t>::type attributes_view; public: wrapper_t(logger_t& log, attributes_t attribute...
25.419355
95
0.717005
JakariaBlaine
d85f5129233dc7d7d0e166f774d71a52615362f4
22,468
cpp
C++
fpsgame/graphics/Model.cpp
mrlitong/CPP-Game-engine-usage
95697c4bfb507cfb38dbe0f632740e2a7eac71fb
[ "MIT" ]
186
2017-07-26T12:53:29.000Z
2021-09-10T04:00:39.000Z
fpsgame/graphics/Model.cpp
mrlitong/CPP-Game-engine-usage
95697c4bfb507cfb38dbe0f632740e2a7eac71fb
[ "MIT" ]
1
2017-08-15T13:12:27.000Z
2017-08-16T06:14:57.000Z
fpsgame/graphics/Model.cpp
mrlitong/CPP-Game-engine-usage
95697c4bfb507cfb38dbe0f632740e2a7eac71fb
[ "MIT" ]
6
2017-02-15T10:19:26.000Z
2017-03-15T03:17:15.000Z
/* Copyright (C) 2016 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. *...
33.187592
166
0.667038
mrlitong
d866c11325ba71e6a237ed550df2bc9178283d61
853
cpp
C++
CppPrimer/CppPrimer-Exercises/CppPrimer-Ch13/Exercise13.19.cpp
alaxion/Learning
4b12b1603419252103cd933fdbfc4b2faffb6d00
[ "MIT" ]
null
null
null
CppPrimer/CppPrimer-Exercises/CppPrimer-Ch13/Exercise13.19.cpp
alaxion/Learning
4b12b1603419252103cd933fdbfc4b2faffb6d00
[ "MIT" ]
null
null
null
CppPrimer/CppPrimer-Exercises/CppPrimer-Ch13/Exercise13.19.cpp
alaxion/Learning
4b12b1603419252103cd933fdbfc4b2faffb6d00
[ "MIT" ]
null
null
null
// Exercise13.19.cpp // Ad // Does your Employee class need to define its own versions of the copy-control members? // If so, why? // Implement whatever copy-control members you think Employee needs. #include <iostream> #include <string> // class =======================================================================...
21.871795
88
0.532239
alaxion
d86a68b68ef55a9e9728cfad94ea840773ab5aeb
9,682
cpp
C++
src/hri_person_manager.cpp
ros4hri/hri_person_manager
848e7fcdb5d6bac67f7e2d6a116c75b8d59367a9
[ "BSD-3-Clause" ]
null
null
null
src/hri_person_manager.cpp
ros4hri/hri_person_manager
848e7fcdb5d6bac67f7e2d6a116c75b8d59367a9
[ "BSD-3-Clause" ]
null
null
null
src/hri_person_manager.cpp
ros4hri/hri_person_manager
848e7fcdb5d6bac67f7e2d6a116c75b8d59367a9
[ "BSD-3-Clause" ]
null
null
null
#include <std_msgs/String.h> #include <std_msgs/Bool.h> #include <std_msgs/Float32.h> #include <hri_msgs/IdsMatch.h> #include <hri_msgs/IdsList.h> #include <std_srvs/Empty.h> #include <ros/ros.h> #include <geometry_msgs/TransformStamped.h> #include <tf2_ros/transform_listener.h> #include <hri/hri.h> #include <hri/base....
26.598901
106
0.643565
ros4hri
f21d21ec15ff035c890099c19efb1c14619fe269
518
cpp
C++
1036.cpp
barroslipe/urionlinejudge
a20d8199d9a92b30ea394a6c949967d2fc51aa34
[ "MIT" ]
null
null
null
1036.cpp
barroslipe/urionlinejudge
a20d8199d9a92b30ea394a6c949967d2fc51aa34
[ "MIT" ]
null
null
null
1036.cpp
barroslipe/urionlinejudge
a20d8199d9a92b30ea394a6c949967d2fc51aa34
[ "MIT" ]
null
null
null
#include <iostream> #include <math.h> #include <iomanip> using namespace std; int main() { double a, b, c, delta, x1, x2; cin >> a >> b >> c; if ( a == 0 ) cout << "Impossivel calcular\n"; else { delta = b * b - 4 * a * c; if( delta < 0) cout << "Impossivel calcular\n"; else { x1 = ((- b) ...
14.388889
40
0.46332
barroslipe
f2209c716086aa2c8cf455741cd4d3c891a6e8cd
70
cpp
C++
GameEngine/src/GameEngine/Renderer/Geometry/Primitives.cpp
Mevelec/GameEngine
70195139dcf74170ed34282ce1918160364a441f
[ "Apache-2.0" ]
null
null
null
GameEngine/src/GameEngine/Renderer/Geometry/Primitives.cpp
Mevelec/GameEngine
70195139dcf74170ed34282ce1918160364a441f
[ "Apache-2.0" ]
null
null
null
GameEngine/src/GameEngine/Renderer/Geometry/Primitives.cpp
Mevelec/GameEngine
70195139dcf74170ed34282ce1918160364a441f
[ "Apache-2.0" ]
null
null
null
#include "hzpch.h" #include "Primitives.h" namespace GameEngine { }
10
23
0.714286
Mevelec
f22183ecdb484b944fa0133af1eb324ba95a0a83
4,905
cpp
C++
physicsEngine/src/shape/CollisionCapsuleShape.cpp
petitg1987/urchinEngine
a14a57ac49a19237d748d2eafc7c2a38a45b95d6
[ "BSL-1.0" ]
18
2020-06-12T00:04:46.000Z
2022-01-11T14:56:19.000Z
physicsEngine/src/shape/CollisionCapsuleShape.cpp
petitg1987/urchinEngine
a14a57ac49a19237d748d2eafc7c2a38a45b95d6
[ "BSL-1.0" ]
null
null
null
physicsEngine/src/shape/CollisionCapsuleShape.cpp
petitg1987/urchinEngine
a14a57ac49a19237d748d2eafc7c2a38a45b95d6
[ "BSL-1.0" ]
6
2020-08-16T15:58:41.000Z
2022-03-05T13:17:50.000Z
#include <shape/CollisionCapsuleShape.h> #include <object/CollisionCapsuleObject.h> namespace urchin { CollisionCapsuleShape::CollisionCapsuleShape(float radius, float cylinderHeight, CapsuleShape<float>::CapsuleOrientation capsuleOrientation) : CollisionShape3D(), capsuleShape(std::make_u...
48.564356
173
0.714577
petitg1987
f22d130453566ca9f1e2679136a34fbb5567205a
6,847
hpp
C++
reto_parte_3.hpp
Ignacio-Moral-22/TC1031_Reto
5a7fe2400e8235d0868bd33c80359f43dfc4b23f
[ "MIT" ]
null
null
null
reto_parte_3.hpp
Ignacio-Moral-22/TC1031_Reto
5a7fe2400e8235d0868bd33c80359f43dfc4b23f
[ "MIT" ]
null
null
null
reto_parte_3.hpp
Ignacio-Moral-22/TC1031_Reto
5a7fe2400e8235d0868bd33c80359f43dfc4b23f
[ "MIT" ]
null
null
null
#ifndef reto_parte_3_hpp #define reto_parte_3_hpp #include <iostream> #include <fstream> #include <map> #include <set> #include <string> #include <vector> #include <iterator> #include <algorithm> #include "clase_archivo.hpp" #include "ConexionesComputadoras.hpp" //Checar anomalias en conexionesSalientes de las IPs vo...
34.580808
191
0.599533
Ignacio-Moral-22
f22d1b1aeed75668af2bf38c0270e421e5351b69
439
cpp
C++
Chapter 05/005.cpp
jesushilarioh/Starting-Out-With-C-Programming-Challenges
34fd6ac3d95c4da934a739f8aeac9b3e078ef898
[ "MIT" ]
7
2019-08-03T10:36:55.000Z
2022-03-01T09:31:14.000Z
Chapter 05/005.cpp
jesushilarioh/Starting-Out-With-C-Programming-Challenges
34fd6ac3d95c4da934a739f8aeac9b3e078ef898
[ "MIT" ]
null
null
null
Chapter 05/005.cpp
jesushilarioh/Starting-Out-With-C-Programming-Challenges
34fd6ac3d95c4da934a739f8aeac9b3e078ef898
[ "MIT" ]
6
2019-07-04T05:59:19.000Z
2022-01-26T03:33:03.000Z
#include <iostream> using namespace std; int main() { const float CURRENT_CHARGE_PER_YEAR = 2500, INCREASE_PERCENTAGE_PER_YEAR = .04; float fee = CURRENT_CHARGE_PER_YEAR; for(int i = 0; i < 6; i++) { cout << "Fee for year " << (i + 1) << " = " << fee << endl; // fee += (fee * INCREASE_...
19.954545
49
0.610478
jesushilarioh
f22e8aeefad2042dcaff8990c064c37e828e1911
31,146
cpp
C++
modules/encode/src/video/video_encoder/video_encoder_mlu300.cpp
HFauto/CNStream
1d4847327fff83eedbc8de6911855c5f7bb2bf22
[ "Apache-2.0" ]
null
null
null
modules/encode/src/video/video_encoder/video_encoder_mlu300.cpp
HFauto/CNStream
1d4847327fff83eedbc8de6911855c5f7bb2bf22
[ "Apache-2.0" ]
null
null
null
modules/encode/src/video/video_encoder/video_encoder_mlu300.cpp
HFauto/CNStream
1d4847327fff83eedbc8de6911855c5f7bb2bf22
[ "Apache-2.0" ]
null
null
null
/************************************************************************* * Copyright (C) [2020] by Cambricon, Inc. All rights reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License a...
39.475285
117
0.675881
HFauto
f23878a030ce0200dd97e5ab978e613a02b6b1a5
2,498
cpp
C++
smalldrop/smalldrop_toolpath/src/smalldrop_toolpath/zigzag.cpp
blackchacal/Master-Thesis----Software
9a9858ede3086eee99d1fc969e32b4fb13278f00
[ "MIT" ]
1
2020-08-16T14:37:09.000Z
2020-08-16T14:37:09.000Z
smalldrop/smalldrop_toolpath/src/smalldrop_toolpath/zigzag.cpp
blackchacal/Master-Thesis----Software
9a9858ede3086eee99d1fc969e32b4fb13278f00
[ "MIT" ]
1
2020-06-26T09:14:45.000Z
2020-07-18T08:46:50.000Z
smalldrop/smalldrop_toolpath/src/smalldrop_toolpath/zigzag.cpp
blackchacal/smalldrop
9a9858ede3086eee99d1fc969e32b4fb13278f00
[ "MIT" ]
null
null
null
// Copyright (c) 2019-2020 Ricardo Tonet // Use of this source code is governed by the MIT license, see LICENSE /** * \file zigzag.cpp * \brief Defines ZigZag class for robot arm wound filling printing path planning. */ #include <smalldrop_toolpath/zigzag.h> namespace smalldrop { namespace smalldrop_toolpath { /*...
33.306667
115
0.651321
blackchacal
f238874e5e7d468a7155fa3168015d6437220c5d
3,887
hpp
C++
src/include/polo/encoder/topk.hpp
aytekinar/polo
da682618e98755738905fd19e55e5271af937661
[ "MIT" ]
8
2018-10-12T09:54:25.000Z
2020-06-18T12:04:44.000Z
src/include/polo/encoder/topk.hpp
aytekinar/polo
da682618e98755738905fd19e55e5271af937661
[ "MIT" ]
10
2018-10-10T10:28:23.000Z
2019-03-14T11:36:03.000Z
src/include/polo/encoder/topk.hpp
aytekinar/polo
da682618e98755738905fd19e55e5271af937661
[ "MIT" ]
null
null
null
#ifndef POLO_ENCODER_TOPK_HPP_ #define POLO_ENCODER_TOPK_HPP_ #include <algorithm> #include <cmath> #include <queue> #include <utility> #include <vector> #include "cereal/types/vector.hpp" namespace polo { namespace encoder { template <class value_t, class index_t> class topk { struct result_t { result_t() = d...
25.913333
80
0.574479
aytekinar
f23b6a84d3a33cdc79234f5d3b89e33523bc3a19
2,089
cpp
C++
test/mock_test.cpp
iorate/nonsugar
5e6c3a566ed45f771a9c8e4f0f69d51707e3e1a9
[ "BSL-1.0" ]
10
2016-12-26T14:36:16.000Z
2022-03-31T01:59:24.000Z
test/mock_test.cpp
iorate/nonsugar
5e6c3a566ed45f771a9c8e4f0f69d51707e3e1a9
[ "BSL-1.0" ]
null
null
null
test/mock_test.cpp
iorate/nonsugar
5e6c3a566ed45f771a9c8e4f0f69d51707e3e1a9
[ "BSL-1.0" ]
null
null
null
// nonsugar // // Copyright iorate 2016-2017. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE mock_test #include <boost/test/unit_test.hpp> #include <memo...
36.017241
91
0.553375
iorate
f24a53b579b34679274f30bb9984187ebd5edd1c
961
cpp
C++
00027_remove-element/191118-1.cpp
yanlinlin82/leetcode
ddcc0b9606d951cff9c08d1f7dfbc202067c8d65
[ "MIT" ]
6
2019-10-23T01:07:29.000Z
2021-12-05T01:51:16.000Z
00027_remove-element/191118-1.cpp
yanlinlin82/leetcode
ddcc0b9606d951cff9c08d1f7dfbc202067c8d65
[ "MIT" ]
null
null
null
00027_remove-element/191118-1.cpp
yanlinlin82/leetcode
ddcc0b9606d951cff9c08d1f7dfbc202067c8d65
[ "MIT" ]
1
2021-12-03T06:54:57.000Z
2021-12-03T06:54:57.000Z
// https://leetcode-cn.com/problems/remove-element/ #include <cstdio> #include <vector> using namespace std; class Solution { public: int removeElement(vector<int>& nums, int val) { if (nums.empty()) return 0; int n = nums.size(); int i = 0; int j = n - 1; while (i < j) { if (nums[j] == val) { --j; ...
17.472727
51
0.528616
yanlinlin82
f24bb7b31a44eb8526db84ba9b77c23715638f61
2,955
cpp
C++
app/gui/parameter_model.cpp
saccharios/FollowMeFly
07f8d90f8abf75b18860a9a895aed85689c422db
[ "MIT" ]
null
null
null
app/gui/parameter_model.cpp
saccharios/FollowMeFly
07f8d90f8abf75b18860a9a895aed85689c422db
[ "MIT" ]
null
null
null
app/gui/parameter_model.cpp
saccharios/FollowMeFly
07f8d90f8abf75b18860a9a895aed85689c422db
[ "MIT" ]
null
null
null
#include "parameter_model.h" #include <QColor> ParameterModel::ParameterModel(std::vector<TOCElement> const & tocElements, QObject *parent): Base(tocElements, parent) { // Is already added by the bas class // _header[Columns::Index] = QString("Index"); // _header[Columns::Group] = QString("Group"); // ...
27.110092
93
0.615228
saccharios
f24fc1a963822ad12032ed4a43ab8ccf453aba5a
3,638
hpp
C++
include/GlobalNamespace/LeaderboardsModelLegacyWrapper_HMAsyncRequestWithCancellationToken.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
include/GlobalNamespace/LeaderboardsModelLegacyWrapper_HMAsyncRequestWithCancellationToken.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
include/GlobalNamespace/LeaderboardsModelLegacyWrapper_HMAsyncRequestWithCancellationToken.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" // Including type: LeaderboardsModelLegacyWrapper #include "GlobalNamespace/LeaderboardsM...
57.746032
250
0.771303
darknight1050
f252f548fbd6b414b99f07e171ed4dbf7594b30b
1,963
hpp
C++
common/string_text_view.hpp
lchannng/moon
e0784ebccdf4df870873314a120a3daa90a47b03
[ "MIT" ]
405
2018-06-26T02:04:00.000Z
2022-03-28T02:22:36.000Z
common/string_text_view.hpp
sunjinopensource/moon
d8942126ae0f9dc0f7d072b1d38fd33865c399ca
[ "MIT" ]
9
2018-08-13T11:03:43.000Z
2022-03-17T04:06:55.000Z
common/string_text_view.hpp
sunjinopensource/moon
d8942126ae0f9dc0f7d072b1d38fd33865c399ca
[ "MIT" ]
104
2018-08-08T10:35:10.000Z
2022-03-30T20:35:20.000Z
#pragma once #include<string_view> class string_text_view_iterator_sentinel {}; template<typename StringTextView> class string_text_view_iterator { std::string_view::iterator iter_; const StringTextView& stv_; public: explicit string_text_view_iterator(std::string_view::iterator it, const StringTextView& ...
20.663158
103
0.564952
lchannng
f255d4c6961f6dc27ef5e64ccd0b9c9a1998222b
725
hpp
C++
include/doll/Script/Parser.hpp
axia-sw/Doll
a5846a6553d9809e9a0ea50db2dc18b95eb21921
[ "Zlib" ]
1
2021-07-19T14:40:15.000Z
2021-07-19T14:40:15.000Z
include/doll/Script/Parser.hpp
axia-sw/Doll
a5846a6553d9809e9a0ea50db2dc18b95eb21921
[ "Zlib" ]
null
null
null
include/doll/Script/Parser.hpp
axia-sw/Doll
a5846a6553d9809e9a0ea50db2dc18b95eb21921
[ "Zlib" ]
null
null
null
#pragma once #include "../Core/Defs.hpp" #include "Lexer.hpp" namespace doll { namespace script { class StmtSeq; class Expr; class ExprSeq; struct SToken; struct SOperator; class CParser { CLexer &m_lexer; Expr *parseTerminal(); Expr *parseNameTerminal(); Expr *parseUnaryExpression( TArr<SO...
17.682927
71
0.670345
axia-sw
f25b5d822b17ac7c0108168c88615f7f11215602
1,010
cpp
C++
src/effects/EffectSequence.cpp
DAbramau/baseboard_leds_fw
cb533becb16d351b54aa1340e2c8dfaa72e736cd
[ "MIT" ]
null
null
null
src/effects/EffectSequence.cpp
DAbramau/baseboard_leds_fw
cb533becb16d351b54aa1340e2c8dfaa72e736cd
[ "MIT" ]
null
null
null
src/effects/EffectSequence.cpp
DAbramau/baseboard_leds_fw
cb533becb16d351b54aa1340e2c8dfaa72e736cd
[ "MIT" ]
null
null
null
#include "EffectSequence.h" EffectSequence::EffectSequence( uint32_t led_num, uint32_t step_period, const RgbColor* color_list, uint32_t color_list_size) : _led_num(led_num), _step_period(step_period), _color_list(color_list), _color_list_size(color_list_size), _color_index(0), _fr...
22.444444
100
0.569307
DAbramau
f26577820639e5004a48bf8f594f8ad0bc3c109b
1,099
cpp
C++
examples/bmp_enlarger.cpp
mrc-tech/Bitmap
57a52a8d4f1d21e6ba45396ea9930778636808e9
[ "Unlicense" ]
6
2021-08-09T02:06:30.000Z
2022-03-02T13:58:32.000Z
examples/bmp_enlarger.cpp
mrc-tech/Bitmap
57a52a8d4f1d21e6ba45396ea9930778636808e9
[ "Unlicense" ]
10
2021-06-25T12:12:45.000Z
2022-03-02T15:25:46.000Z
examples/bmp_enlarger.cpp
mrc-tech/Bitmap
57a52a8d4f1d21e6ba45396ea9930778636808e9
[ "Unlicense" ]
1
2021-12-08T13:22:55.000Z
2021-12-08T13:22:55.000Z
/* creates a bigger version of a BMP file */ #include "../include/Image.hpp" #include "../include/imageFunctions/upSample.h" int main(int argc, char **argv) { unsigned mul = 5; // multiply coefficient (default = 5) Image input; std::string fName; if(argc < 2){ std::cout << "Bitmap file enlarger - (c) 2021 M...
26.166667
96
0.624204
mrc-tech
f265c879e52f42324e93646999cf3aeda04c06ef
6,449
cpp
C++
aliSystemTest/test_aliSystemThreadingPool.cpp
hendrik-brower/ali
c9d8740fecdb486b7be00b4257ce6d79ea45aead
[ "MIT" ]
null
null
null
aliSystemTest/test_aliSystemThreadingPool.cpp
hendrik-brower/ali
c9d8740fecdb486b7be00b4257ce6d79ea45aead
[ "MIT" ]
null
null
null
aliSystemTest/test_aliSystemThreadingPool.cpp
hendrik-brower/ali
c9d8740fecdb486b7be00b4257ce6d79ea45aead
[ "MIT" ]
null
null
null
#include "gtest/gtest.h" #include <aliSystem.hpp> #include <vector> namespace { const double ms = 0.001; // 1 ms using Time = aliSystem::Time; using TVec = std::vector<Time::TP>; using TVecPtr = std::shared_ptr<TVec>; using Stats = aliSystem::Stats; using Pool = aliSystem::Threading::Pool; u...
38.386905
113
0.626919
hendrik-brower
f26a1d00fbd128be7e595856cbaa25cf35e39e3e
4,966
cpp
C++
cmdstan/stan/lib/stan_math/test/unit/math/fwd/mat/fun/tail_test.cpp
yizhang-cae/torsten
dc82080ca032325040844cbabe81c9a2b5e046f9
[ "BSD-3-Clause" ]
null
null
null
cmdstan/stan/lib/stan_math/test/unit/math/fwd/mat/fun/tail_test.cpp
yizhang-cae/torsten
dc82080ca032325040844cbabe81c9a2b5e046f9
[ "BSD-3-Clause" ]
null
null
null
cmdstan/stan/lib/stan_math/test/unit/math/fwd/mat/fun/tail_test.cpp
yizhang-cae/torsten
dc82080ca032325040844cbabe81c9a2b5e046f9
[ "BSD-3-Clause" ]
null
null
null
#include <stan/math/fwd/mat.hpp> #include <gtest/gtest.h> #include <stdexcept> using stan::math::fvar; TEST(AgradFwdMatrixTail,TailVector1_fd) { using stan::math::tail; stan::math::vector_fd v(3); v << 1, 2, 3; EXPECT_EQ(0, tail(v,0).size()); } TEST(AgradFwdMatrixTail,TailVector2_fd) { using stan::math::tai...
26.843243
55
0.653443
yizhang-cae
f2709bb58be16e3c5f896773862c759541af8211
60
cpp
C++
ecs/Component.cpp
sg-p4x347/binding-of-ryesaac
f4b4b3e8f29c5fa2dda184691358605c41f539d5
[ "MIT" ]
null
null
null
ecs/Component.cpp
sg-p4x347/binding-of-ryesaac
f4b4b3e8f29c5fa2dda184691358605c41f539d5
[ "MIT" ]
6
2019-11-29T16:42:12.000Z
2019-12-08T07:03:23.000Z
ecs/Component.cpp
sg-p4x347/binding-of-ryesaac
f4b4b3e8f29c5fa2dda184691358605c41f539d5
[ "MIT" ]
null
null
null
#include "pch.h" #include "Component.h" namespace ecs { }
8.571429
22
0.666667
sg-p4x347
f2773d3cc2b24751786a650ff1431dd4885f7a84
5,511
cpp
C++
DynamicMapping/DynamicMapping/main.cpp
denizkenankilic/computerVision-dynamic-mapping
3e266bae7e5968f192de7f49177e27f56e79cf6b
[ "MIT" ]
null
null
null
DynamicMapping/DynamicMapping/main.cpp
denizkenankilic/computerVision-dynamic-mapping
3e266bae7e5968f192de7f49177e27f56e79cf6b
[ "MIT" ]
null
null
null
DynamicMapping/DynamicMapping/main.cpp
denizkenankilic/computerVision-dynamic-mapping
3e266bae7e5968f192de7f49177e27f56e79cf6b
[ "MIT" ]
null
null
null
#include <QCoreApplication> #include <stdio.h> #include <iostream> #include "opencv2/core/core.hpp" #include "opencv2/features2d/features2d.hpp" #include "opencv2/nonfree/features2d.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/nonfree/nonfree.hpp" #include "opencv2/legacy/legacy.hpp" #include "vector"...
26.242857
122
0.549991
denizkenankilic
f277f76d835fcad47044a819198ea81c18a1ec2c
1,188
cpp
C++
engine/src/Rendering/Core/RenderingManager.cpp
codekrafter/CodekraftEngine
c0965b74dc4926e4612e1ff953be248acceb3198
[ "MIT" ]
null
null
null
engine/src/Rendering/Core/RenderingManager.cpp
codekrafter/CodekraftEngine
c0965b74dc4926e4612e1ff953be248acceb3198
[ "MIT" ]
1
2018-06-26T14:00:35.000Z
2018-06-26T14:00:57.000Z
engine/src/Rendering/Core/RenderingManager.cpp
codekrafter/CodekraftEngine
c0965b74dc4926e4612e1ff953be248acceb3198
[ "MIT" ]
1
2018-03-28T18:19:19.000Z
2018-03-28T18:19:19.000Z
#include "RenderingManager.hpp" #include "Core/Engine.hpp" #include "Rendering/GLFW/GLFWWindow.hpp" #include "Rendering/OpenGL/OpenGLRenderer.hpp" #include "Logging.hpp" namespace ck { RenderingManager::RenderingManager(RenderingConfig rc) { switch (rc.draw) { case DrawType::OPENGL: renderer = new...
19.47541
81
0.643098
codekrafter
f279c6cd67f04ba8b2b935ae396e5757ace0bd3f
3,787
cpp
C++
MyFiles/MULTQ3.cpp
manishSRM/solvedProblems
78492e51488605e46fd19bba472736825a2faf32
[ "Apache-2.0" ]
null
null
null
MyFiles/MULTQ3.cpp
manishSRM/solvedProblems
78492e51488605e46fd19bba472736825a2faf32
[ "Apache-2.0" ]
null
null
null
MyFiles/MULTQ3.cpp
manishSRM/solvedProblems
78492e51488605e46fd19bba472736825a2faf32
[ "Apache-2.0" ]
null
null
null
#include <cstdio> #include <iostream> #define MAX 100000 using namespace std; #define _DEBUG 1 #if _DEBUG #define trace1(x) cout << #x << ": " << x << endl; #define trace2(x, y) cout << #x << ": " << x << " | " << #y << ": " << y << endl; #define trace3(x, y, z) cout << #x << ": ...
31.040984
205
0.514919
manishSRM
f2802a839b910229e53fca931a2b7173451a43cf
745
cpp
C++
oldlib/segment/dynamic_2dsegment.cpp
hotman78/cpplib
c2f85c8741cdd0b731a5aa828b28b38c70c8d699
[ "CC0-1.0" ]
null
null
null
oldlib/segment/dynamic_2dsegment.cpp
hotman78/cpplib
c2f85c8741cdd0b731a5aa828b28b38c70c8d699
[ "CC0-1.0" ]
null
null
null
oldlib/segment/dynamic_2dsegment.cpp
hotman78/cpplib
c2f85c8741cdd0b731a5aa828b28b38c70c8d699
[ "CC0-1.0" ]
null
null
null
#include"./dynamic_segment.cpp" template<typename T> struct segment2d{ dynamic_segment<dynamic_segment<T,T,T>,T,T> seg; lint n,sz=1; segment2d(lint n=1LL<<30):n(n){ auto f=[](auto s,auto t){return min(s,t);}; while(sz<=n)sz*=2; } void update(int64_t x,int64_t y,T val){ auto...
31.041667
81
0.542282
hotman78
f282824c5805bfce5f95ff57a2ac37ca2ca1e9fb
6,842
hpp
C++
kv/doubleint-singular.hpp
soonho-tri/kv
4963be6560d8600cdc9ff22d004b2b965ae7b1df
[ "MIT" ]
67
2017-01-04T15:30:54.000Z
2022-03-31T05:45:02.000Z
kv/doubleint-singular.hpp
soonho-tri/kv
4963be6560d8600cdc9ff22d004b2b965ae7b1df
[ "MIT" ]
4
2017-02-10T02:59:45.000Z
2019-10-10T14:17:08.000Z
kv/doubleint-singular.hpp
soonho-tri/kv
4963be6560d8600cdc9ff22d004b2b965ae7b1df
[ "MIT" ]
5
2021-09-29T02:27:46.000Z
2022-03-31T05:45:04.000Z
/* * Copyright (c) 2019 Masahide Kashiwagi (kashi@waseda.jp) */ #ifndef DOUBLEINT_SINGULAR_HPP #define DOUBLEINT_SINGULAR_HPP #include <kv/defint-singular.hpp> namespace kv { /* * helper functions for double integral with singular edge */ // Reverse Time with argument 1 : convert f(x, y) to f(-x, y) template <...
27.700405
199
0.625402
soonho-tri
f282ac6f3f69f458d58ab39372444ca6d3028ed5
363
cpp
C++
binarysearch.io/easy/Length-of-a-linked-list.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
18
2020-08-27T05:27:50.000Z
2022-03-08T02:56:48.000Z
binarysearch.io/easy/Length-of-a-linked-list.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
null
null
null
binarysearch.io/easy/Length-of-a-linked-list.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
1
2020-10-13T05:23:58.000Z
2020-10-13T05:23:58.000Z
#include "solution.hpp" using namespace std; /** * class LLNode { * public: * int val; * LLNode *next; * }; */ class Solution { public: int solve(LLNode* node) { if(node==NULL) return 0; int ans=1; while(node->next){ ans++; node=node->ne...
15.782609
32
0.4573
wingkwong
f282d072cbc2110f223173877b28339e5e9cfdef
7,939
hpp
C++
src/xalanc/XPath/XObjectFactory.hpp
rherardi/xml-xalan-c-src_1_10_0
24e6653a617a244e4def60d67b57e70a192a5d4d
[ "Apache-2.0" ]
null
null
null
src/xalanc/XPath/XObjectFactory.hpp
rherardi/xml-xalan-c-src_1_10_0
24e6653a617a244e4def60d67b57e70a192a5d4d
[ "Apache-2.0" ]
null
null
null
src/xalanc/XPath/XObjectFactory.hpp
rherardi/xml-xalan-c-src_1_10_0
24e6653a617a244e4def60d67b57e70a192a5d4d
[ "Apache-2.0" ]
null
null
null
/* * Copyright 1999-2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
23.418879
95
0.681698
rherardi
f2899759a14992011c0b017ba11e55c8b506b05c
857
cpp
C++
dep/stormlib/src/wdk/sources-cpp.cpp
avennstrom/NovusCore-Common
f0687f0df75c0651137d11bb14aba6fede918d93
[ "MIT" ]
427
2015-01-07T23:08:21.000Z
2022-03-30T19:12:05.000Z
src/wdk/sources-cpp.cpp
nvs/StormLib
173d20cefa14b1c3b17ee874bcc0f7d5a21c5b0f
[ "MIT" ]
170
2015-02-02T22:31:17.000Z
2022-03-16T09:20:39.000Z
src/wdk/sources-cpp.cpp
nvs/StormLib
173d20cefa14b1c3b17ee874bcc0f7d5a21c5b0f
[ "MIT" ]
209
2015-01-27T06:42:47.000Z
2022-03-29T01:12:41.000Z
// This is a source file for WDK build of StormLib // It is copied to the root folder during the build process #include "src\adpcm\adpcm.cpp" #include "src\huffman\huff.cpp" #include "src\sparse\sparse.cpp" #include "src\FileStream.cpp" #include "src\SBaseCommon.cpp" #include "src\SBaseDumpData.cpp" #include "src\SBa...
31.740741
59
0.782964
avennstrom
f28bc85ae622302d30bfc1462d8437c760413bce
193
cpp
C++
Goldman Sachs/squares_in_chessboard.cpp
pilipi-puu-puu/6companies30Days
9dd3e60f06a6e09483f64b79ccf918a6dd725239
[ "MIT" ]
3
2022-01-09T13:16:32.000Z
2022-01-25T15:23:44.000Z
Goldman Sachs/squares_in_chessboard.cpp
pilipi-puu-puu/6companies30Days
9dd3e60f06a6e09483f64b79ccf918a6dd725239
[ "MIT" ]
null
null
null
Goldman Sachs/squares_in_chessboard.cpp
pilipi-puu-puu/6companies30Days
9dd3e60f06a6e09483f64b79ccf918a6dd725239
[ "MIT" ]
1
2022-01-08T09:47:13.000Z
2022-01-08T09:47:13.000Z
#include <bits/stdc++.h> using namespace std; int store(int n) { return(n*(n+1)/2) * (2*n+1)/3; } int main() { int n; cin>>n; cout<<store(n)<<endl; return 0; }
13.785714
35
0.492228
pilipi-puu-puu
f298dabdc705902d5b0489064d0d22e00dfb2323
2,366
cpp
C++
SatisfactoryPlanner/InputCallback.cpp
yeshjho/SatisfactoryPlanner
15b1bbe22959fb8d89f0c2508cca969062c9cd6e
[ "MIT" ]
null
null
null
SatisfactoryPlanner/InputCallback.cpp
yeshjho/SatisfactoryPlanner
15b1bbe22959fb8d89f0c2508cca969062c9cd6e
[ "MIT" ]
null
null
null
SatisfactoryPlanner/InputCallback.cpp
yeshjho/SatisfactoryPlanner
15b1bbe22959fb8d89f0c2508cca969062c9cd6e
[ "MIT" ]
null
null
null
#include "InputCallback.h" InputCallback::InputCallback(const EInputType inputType, std::function<void(float, float)>&& callback) : mInputType(inputType) { if (inputType == EInputType::MOUSE_MOVE) { mCallbackHandle = InputManager::AddMouseMoveCallback(std::move(callback)); } else if (inputType == EInputType::...
26.886364
158
0.758242
yeshjho
f29b1d6feebe10a60a717109601da70e0dbab6b5
8,936
hpp
C++
source/utils/h2_stringify.hpp
lingjf/h2unit
5a55c718bc22ba52bd4500997b2df18939996efa
[ "Apache-2.0" ]
5
2015-03-02T22:29:00.000Z
2020-06-28T08:52:00.000Z
source/utils/h2_stringify.hpp
lingjf/h2unit
5a55c718bc22ba52bd4500997b2df18939996efa
[ "Apache-2.0" ]
5
2019-05-10T02:28:00.000Z
2021-07-17T00:53:18.000Z
source/utils/h2_stringify.hpp
lingjf/h2unit
5a55c718bc22ba52bd4500997b2df18939996efa
[ "Apache-2.0" ]
5
2016-05-25T07:31:16.000Z
2021-08-29T04:25:18.000Z
template <typename T, typename = void> struct h2_stringify_impl { static h2_line print(const T&, bool = false) { return "?"; } }; #define H2_TOSTRING_ABLE(tostring) \ template <typename T> struct h2_##tostring##_able { ...
49.644444
229
0.672337
lingjf
f29d5af31ded7d047f087a65f8f499bb37fae7bb
454
cpp
C++
Array/fascinating_number.cpp
ayushid549/DSA_Marathon
504c7cd7d153da10bbab3273c38d3368b72f946a
[ "MIT" ]
24
2021-09-14T13:16:58.000Z
2022-02-25T18:54:26.000Z
Array/fascinating_number.cpp
ayushid549/DSA_Marathon
504c7cd7d153da10bbab3273c38d3368b72f946a
[ "MIT" ]
11
2021-09-13T15:27:48.000Z
2021-10-05T21:56:02.000Z
Array/fascinating_number.cpp
ayushid549/DSA_Marathon
504c7cd7d153da10bbab3273c38d3368b72f946a
[ "MIT" ]
22
2021-09-13T13:37:55.000Z
2021-10-17T05:12:35.000Z
#include<bits/stdc++.h> using namespace std; /* ***************************************************** */ bool fascinating(int n){ string st=to_string(n)+to_string(n*2)+to_string(n*3); int arr[10]={0}; for(int i=0;i<st.length();i++){ arr[st[i]-'0']++; } for(int i=1;i<10;i++){ if (arr[i] != 1) return false;...
16.214286
59
0.526432
ayushid549
f2a22ee57700a32efae669c796732af99c18348f
2,006
cpp
C++
src/All2DEngine/All2D/AppGameController.cpp
ldornbusch/All2D_Base
c790293b3030de97f65d62f6617222c42d18fa6a
[ "Apache-2.0" ]
null
null
null
src/All2DEngine/All2D/AppGameController.cpp
ldornbusch/All2D_Base
c790293b3030de97f65d62f6617222c42d18fa6a
[ "Apache-2.0" ]
null
null
null
src/All2DEngine/All2D/AppGameController.cpp
ldornbusch/All2D_Base
c790293b3030de97f65d62f6617222c42d18fa6a
[ "Apache-2.0" ]
null
null
null
// GameController.cpp: Implementierung der Klasse GameControler. // ////////////////////////////////////////////////////////////////////// #include "AppGameController.h" #include "All2D_Events/MessageManager.h" #include "All2D_System.h" ////////////////////////////////////////////////////////////////////// /...
25.075
82
0.65005
ldornbusch
f2a47a9fa885e8b41520b046ed6fa1cee2b300ef
1,711
cpp
C++
SarkLibrary/BasicScene.cpp
alleysark/SarkEngine_forExperiment
9e27ddc37242cf739d67ee7efc2ff2b24d3c4811
[ "Apache-2.0" ]
2
2015-07-20T08:57:02.000Z
2018-11-02T13:42:49.000Z
SarkLibrary/BasicScene.cpp
alleysark/SarkEngine_forExperiment
9e27ddc37242cf739d67ee7efc2ff2b24d3c4811
[ "Apache-2.0" ]
null
null
null
SarkLibrary/BasicScene.cpp
alleysark/SarkEngine_forExperiment
9e27ddc37242cf739d67ee7efc2ff2b24d3c4811
[ "Apache-2.0" ]
null
null
null
#include "BasicScene.h" #include "ALight.h" #include "AModel.h" #include "Material.h" #include "Input.h" namespace sark { BasicScene::BasicScene() { // make basic layer. mLayers.push_back(Layer()); //LAYER_MODEL_RENDER mLayers.push_back(Layer()); //LAYER_LIGHT // make basic camera and set as main mCameras...
23.438356
75
0.686733
alleysark
f2a57f38c3c35396f14c95b0f94db7ba7e0a88d0
14,129
cpp
C++
caffe-fast-rcnn/src/caffe/IVS/layers/base_IVS_layer.cpp
apple35932003/IVS-Caffe
54bb78daab04a8188d0df9ef5b8f4855082e0da5
[ "BSD-2-Clause" ]
null
null
null
caffe-fast-rcnn/src/caffe/IVS/layers/base_IVS_layer.cpp
apple35932003/IVS-Caffe
54bb78daab04a8188d0df9ef5b8f4855082e0da5
[ "BSD-2-Clause" ]
null
null
null
caffe-fast-rcnn/src/caffe/IVS/layers/base_IVS_layer.cpp
apple35932003/IVS-Caffe
54bb78daab04a8188d0df9ef5b8f4855082e0da5
[ "BSD-2-Clause" ]
null
null
null
#include <math.h> #include <algorithm> #include <stdlib.h> #include <time.h> #include <float.h> #include "IVS/base_IVS_layer.hpp" namespace caffe { template <typename Dtype> BaseIVSLayer<Dtype>::BaseIVSLayer() { // Initialize random number generator srand(time(NULL)); } template <typename Dtype> void BaseIVSLay...
36.321337
91
0.698139
apple35932003
f2a81d5b43613066e7c895b1344e841a48a3a83d
873
cpp
C++
Utils/Profiler.cpp
brendankeesing/Collision-Detection
cac654a32cebd1985f6510fc935a844885aa33bf
[ "Unlicense" ]
null
null
null
Utils/Profiler.cpp
brendankeesing/Collision-Detection
cac654a32cebd1985f6510fc935a844885aa33bf
[ "Unlicense" ]
null
null
null
Utils/Profiler.cpp
brendankeesing/Collision-Detection
cac654a32cebd1985f6510fc935a844885aa33bf
[ "Unlicense" ]
null
null
null
#include "Profiler.h" #include <string> void Profiler::Start(const char* name) { _currentprofiles[name] = Timer(); }; void Profiler::End(const char* name) { auto it = _currentprofiles.find(name); // if not found if (it == _currentprofiles.end()) return; _finishedprofiles[name] = it->second.GetSeconds(); _cu...
17.816327
51
0.694158
brendankeesing
f2ae86e77bf69879479edd1f48a75ba2c685daeb
1,334
cpp
C++
binary search/167 Two Sum II - Input array is sorted.cpp
CoderQuinnYoung/leetcode
6ea15c68124b16824bab9ed2e0e5a40c72eb3db1
[ "BSD-3-Clause" ]
null
null
null
binary search/167 Two Sum II - Input array is sorted.cpp
CoderQuinnYoung/leetcode
6ea15c68124b16824bab9ed2e0e5a40c72eb3db1
[ "BSD-3-Clause" ]
null
null
null
binary search/167 Two Sum II - Input array is sorted.cpp
CoderQuinnYoung/leetcode
6ea15c68124b16824bab9ed2e0e5a40c72eb3db1
[ "BSD-3-Clause" ]
null
null
null
// // Two Sum II - Input array is sorted.cpp // Leetcode // // Created by Quinn on 2020/8/4. // Copyright © 2020 Quinn. All rights reserved. // #include <vector> using namespace std; // binary search class Solution { public: vector<int> twoSum(vector<int>& numbers, int target) { for (int i = 0; i < nu...
23.403509
61
0.408546
CoderQuinnYoung
f2ae8b018d92c9bf0c7635739d0c99aae003698f
949
cpp
C++
simple/7_reverse_integer.cpp
czla/leetcode-solution
bee4bc1588b270ca580199d23ab83c939b7e17b8
[ "MIT" ]
3
2019-05-01T08:23:37.000Z
2019-08-03T01:35:28.000Z
simple/7_reverse_integer.cpp
czla/leetcode-solution
bee4bc1588b270ca580199d23ab83c939b7e17b8
[ "MIT" ]
null
null
null
simple/7_reverse_integer.cpp
czla/leetcode-solution
bee4bc1588b270ca580199d23ab83c939b7e17b8
[ "MIT" ]
null
null
null
// Description: 给出一个 32 位的有符号整数,你需要将这个整数中每位上的数字进行反转。 // 假设我们的环境只能存储得下 32 位的有符号整数,则其数值范围为 [−2^31, 2^31 − 1]。 // 请根据这个假设,如果反转后整数溢出那么就返回 0。 // // Examples: 输入: 123, 输出: 321 // 输入: -123, 输出: -321 // 输入: 120, 输出: 21 // // Difficulty: Simple // Author: ...
25.648649
69
0.458377
czla
f2b0644813202ad6e027d9a7d657a96245254abd
1,130
cpp
C++
tools/unittests/Runtime/TransposeTest.cpp
balckwilliam/onnc
aa517a28a671362ef60b42f7714bf12b85d25ffe
[ "BSD-3-Clause" ]
null
null
null
tools/unittests/Runtime/TransposeTest.cpp
balckwilliam/onnc
aa517a28a671362ef60b42f7714bf12b85d25ffe
[ "BSD-3-Clause" ]
null
null
null
tools/unittests/Runtime/TransposeTest.cpp
balckwilliam/onnc
aa517a28a671362ef60b42f7714bf12b85d25ffe
[ "BSD-3-Clause" ]
null
null
null
#include <skypat/skypat.h> #include <cstdlib> #include <ctime> #include <cmath> #define restrict __restrict__ extern "C"{ #include <operator/transpose.h> } #undef restrict SKYPAT_F(Operator_Transpose, non_broadcast){ // Prepare srand(time(NULL)); int32_t dims[3]{3, 3, 3}; float A[27]{ 000....
19.824561
44
0.484956
balckwilliam
f2b24fcf95d25fa674a7bb0c206a66406cb5ba5d
7,188
cpp
C++
quart_freq/src/HDTCountingLeaf.cpp
maryamrabiee/quco
ce063c2c0e2d03f58c883b1a7a25fb368d94cfef
[ "Apache-2.0" ]
2
2017-09-30T03:16:07.000Z
2020-12-16T11:26:37.000Z
quart_freq/src/HDTCountingLeaf.cpp
maryamrabiee/quco
ce063c2c0e2d03f58c883b1a7a25fb368d94cfef
[ "Apache-2.0" ]
6
2015-02-26T03:50:11.000Z
2015-06-07T21:40:43.000Z
quart_freq/src/HDTCountingLeaf.cpp
maryamrabiee/quco
ce063c2c0e2d03f58c883b1a7a25fb368d94cfef
[ "Apache-2.0" ]
1
2020-12-16T11:26:41.000Z
2020-12-16T11:26:41.000Z
#include <cstdlib> // for exit #include "hdt.h" #include "rooted_tree.h" #include "hdt_factory.h" #include "counting_linked_list.h" void HDT::handleLeaf() { INC_RUNTIME_COUNTER // This is a leaf! // Triplets if (link == NULL) { countingVars->num = 0; countingVars->n_i = numZeroes; } else {...
29.702479
55
0.751948
maryamrabiee
f2ba2b4f37abf90d11d64ac4154271a50be4171f
239
hpp
C++
new_software/microcontroller/BiasVoltage.hpp
feklee/stm
ad08964db80819fb3b0415d3840178a077554c94
[ "WTFPL" ]
10
2016-06-26T14:19:38.000Z
2021-11-17T11:40:21.000Z
new_software/microcontroller/BiasVoltage.hpp
feklee/stm
ad08964db80819fb3b0415d3840178a077554c94
[ "WTFPL" ]
4
2015-11-17T11:46:52.000Z
2016-01-18T21:33:38.000Z
new_software/microcontroller/BiasVoltage.hpp
feklee/stm
ad08964db80819fb3b0415d3840178a077554c94
[ "WTFPL" ]
5
2017-06-01T00:33:45.000Z
2020-12-31T23:19:10.000Z
#pragma once #include <Arduino.h> class BiasVoltage { const uint8_t chipSelectPin_ = 8; const uint8_t measurePin_ = A3; void setFactor(float); public: void setup(); void set(float); float measuredValue(); void print(); };
14.9375
35
0.690377
feklee
f2c07ba0ce988a48ef41091077678c4262686e92
3,218
cpp
C++
unstructure_data/MeshProvider.cpp
schism-dev/schism_visit_plugin
51c4b8c840d401b98ad6094c91ca2e7b9e01b513
[ "Apache-2.0" ]
1
2021-09-05T17:10:02.000Z
2021-09-05T17:10:02.000Z
unstructure_data/MeshProvider.cpp
schism-dev/schism_visit_plugin
51c4b8c840d401b98ad6094c91ca2e7b9e01b513
[ "Apache-2.0" ]
1
2021-08-03T03:38:48.000Z
2021-08-03T03:38:48.000Z
unstructure_data/MeshProvider.cpp
schism-dev/schism_visit_plugin
51c4b8c840d401b98ad6094c91ca2e7b9e01b513
[ "Apache-2.0" ]
null
null
null
#include "MeshProvider.h" #include "MeshConstants.h" MeshProvider::MeshProvider(const std::string & a_fileHasMeshData):m_data_file(a_fileHasMeshData), m_mesh_loaded(false), m_number_element(-9999), m_number_node(-9999...
19.04142
97
0.716594
schism-dev