hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
108
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
float64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
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
float64
1
77k
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
float64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
653k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
1
d84b98c24c424c30b717045c425aeaf4f67144fc
941
cpp
C++
Leetcode/res/Binary Tree Paths/1.cpp
AllanNozomu/CompetitiveProgramming
ac560ab5784d2e2861016434a97e6dcc44e26dc8
[ "MIT" ]
1
2022-03-04T16:06:41.000Z
2022-03-04T16:06:41.000Z
Leetcode/res/Binary Tree Paths/1.cpp
AllanNozomu/CompetitiveProgramming
ac560ab5784d2e2861016434a97e6dcc44e26dc8
[ "MIT" ]
null
null
null
Leetcode/res/Binary Tree Paths/1.cpp
AllanNozomu/CompetitiveProgramming
ac560ab5784d2e2861016434a97e6dcc44e26dc8
[ "MIT" ]
null
null
null
\* Author: allannozomu Runtime: 4 ms Memory: 11.5 MB*\ /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: void binaryTreecPathsRec(TreeNode* root...
27.676471
88
0.563231
d84e5a28b50382247dd241e3f938307d2ea248f5
2,015
cpp
C++
src/parser/expression_defs.cpp
pmenon/noisepage
73d50cdfa2e15b5d45e61b51e34672d10a851e14
[ "MIT" ]
971
2020-09-13T10:24:02.000Z
2022-03-31T07:02:51.000Z
src/parser/expression_defs.cpp
pmenon/noisepage
73d50cdfa2e15b5d45e61b51e34672d10a851e14
[ "MIT" ]
1,019
2018-07-20T23:11:10.000Z
2020-09-10T06:41:42.000Z
src/parser/expression_defs.cpp
pmenon/noisepage
73d50cdfa2e15b5d45e61b51e34672d10a851e14
[ "MIT" ]
318
2018-07-23T16:48:16.000Z
2020-09-07T09:46:31.000Z
#include "parser/expression_defs.h" #include <string> namespace noisepage::parser { std::string ExpressionTypeToShortString(ExpressionType type) { switch (type) { // clang-format off case ExpressionType::OPERATOR_PLUS: return "+"; case ExpressionType::OPERATOR_MINUS: ...
51.666667
86
0.598015
d8509208a3026d9a17a883853aeb591c29e8bda5
12,341
cpp
C++
sourceCode/textures/imgLoaderSaver.cpp
mdecourse/CoppeliaSimLib
934e65b4b6ea5a07d08919ae35c50fd3ae960ef2
[ "RSA-MD" ]
null
null
null
sourceCode/textures/imgLoaderSaver.cpp
mdecourse/CoppeliaSimLib
934e65b4b6ea5a07d08919ae35c50fd3ae960ef2
[ "RSA-MD" ]
null
null
null
sourceCode/textures/imgLoaderSaver.cpp
mdecourse/CoppeliaSimLib
934e65b4b6ea5a07d08919ae35c50fd3ae960ef2
[ "RSA-MD" ]
null
null
null
#include "imgLoaderSaver.h" #ifdef SIM_WITH_QT #include "tGAFormat.h" #include "stb_image.h" #include "ttUtil.h" #include "vVarious.h" #include <QImage> #include <QImageWriter> #include <QColor> #include <QtCore/QBuffer> #endif unsigned char* CImageLoaderSaver::load(const char* filename...
33.444444
159
0.51333
d851b73d72148dc84f24876dd7036dca78269130
9,947
cpp
C++
ortc/services/cpp/services_DHPublicKey.cpp
ortclib/ortclib-services-cpp
f770d97044b1ffbff04b61fa1488eedc8ddc66e4
[ "BSD-2-Clause" ]
2
2016-10-12T09:16:32.000Z
2016-10-13T03:49:47.000Z
ortc/services/cpp/services_DHPublicKey.cpp
ortclib/ortclib-services-cpp
f770d97044b1ffbff04b61fa1488eedc8ddc66e4
[ "BSD-2-Clause" ]
2
2017-11-24T09:18:45.000Z
2017-11-24T09:20:53.000Z
ortc/services/cpp/services_DHPublicKey.cpp
ortclib/ortclib-services-cpp
f770d97044b1ffbff04b61fa1488eedc8ddc66e4
[ "BSD-2-Clause" ]
null
null
null
/* Copyright (c) 2014, Hookflash Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the fol...
39.472222
113
0.41701
d85306e3e2c87156f925039aeee4b27cf7bb7a15
3,509
cc
C++
test/unit/Eval/EvalSubgoalTest.cc
mnowotnik/fovris
82f692743fa6c96fef05041e686d716b03c22f07
[ "BSD-3-Clause" ]
4
2017-01-04T17:22:55.000Z
2018-12-08T02:10:18.000Z
test/unit/Eval/EvalSubgoalTest.cc
Mike-Now/fovris
82f692743fa6c96fef05041e686d716b03c22f07
[ "BSD-3-Clause" ]
null
null
null
test/unit/Eval/EvalSubgoalTest.cc
Mike-Now/fovris
82f692743fa6c96fef05041e686d716b03c22f07
[ "BSD-3-Clause" ]
1
2022-03-24T05:26:13.000Z
2022-03-24T05:26:13.000Z
#include "KB/KBHeadLiteral.h" #include "Eval/EvalSubgoal.h" #include "Eval/TestUtils.h" #include "thirdparty/Catch/include/catch.hpp" #include <string> using namespace fovris; TEST_CASE("Check subgoal evaluation result", "[EvalSubgoal]") { // given unsigned relId = 0xDEADBEEF; KBRelation relation{ ...
34.401961
78
0.588487
d855695e7f9b2b5d51d12e6e80b1e1bbd4a7b389
1,362
cpp
C++
SDIZO_Graphs/my_graph.cpp
michaltkacz/SDIZO_Graphs
085a9be87ff96826ca2a6dec1f7206ebabaca341
[ "MIT" ]
null
null
null
SDIZO_Graphs/my_graph.cpp
michaltkacz/SDIZO_Graphs
085a9be87ff96826ca2a6dec1f7206ebabaca341
[ "MIT" ]
null
null
null
SDIZO_Graphs/my_graph.cpp
michaltkacz/SDIZO_Graphs
085a9be87ff96826ca2a6dec1f7206ebabaca341
[ "MIT" ]
null
null
null
#include "my_graph.h" #include "graph_exception.h" #include "my_rand.h" #include <fstream> #include <iomanip> void my_graph::random() { const int v_number = my_rand::random_int(min_vert, max_vert); const int density = my_rand::random_int(min_dens, max_dens); random(v_number, density); } void my_graph::random(int...
17.921053
62
0.61674
d858b4d2863db23ed4f62818c5eaf13a6d571930
2,115
cpp
C++
uppsrc/ide/Debuggers/GdbUtils.cpp
UltimateScript/Forgotten
ac59ad21767af9628994c0eecc91e9e0e5680d95
[ "BSD-3-Clause" ]
null
null
null
uppsrc/ide/Debuggers/GdbUtils.cpp
UltimateScript/Forgotten
ac59ad21767af9628994c0eecc91e9e0e5680d95
[ "BSD-3-Clause" ]
null
null
null
uppsrc/ide/Debuggers/GdbUtils.cpp
UltimateScript/Forgotten
ac59ad21767af9628994c0eecc91e9e0e5680d95
[ "BSD-3-Clause" ]
null
null
null
#include "GdbUtils.h" #include <memory> #include <ide/Core/Logger.h> #include <ide/Common/CommandLineOptions.h> using namespace Upp; One<IGdbUtils> GdbUtilsFactory::Create() { #if defined(PLATFORM_WIN32) return MakeOne<GdbWindowsUtils>(); #elif defined(PLATFORM_POSIX) return MakeOne<GdbPosixUtils>(); ...
24.593023
120
0.661466
d858f20cd9418ed569a886d53eecf7466c64150e
4,141
hpp
C++
include/seqan3/core/simd/simd.hpp
FirstLoveLife/seqan3
ac2e983e0a576515c13ebb2c851c43c1eba1ece1
[ "BSD-3-Clause" ]
null
null
null
include/seqan3/core/simd/simd.hpp
FirstLoveLife/seqan3
ac2e983e0a576515c13ebb2c851c43c1eba1ece1
[ "BSD-3-Clause" ]
null
null
null
include/seqan3/core/simd/simd.hpp
FirstLoveLife/seqan3
ac2e983e0a576515c13ebb2c851c43c1eba1ece1
[ "BSD-3-Clause" ]
null
null
null
// ============================================================================ // SeqAn - The Library for Sequence Analysis // ============================================================================ // // Copyright (c) 2006-2018, Knut Reinert & Freie Universitaet Berlin // Copyright (c) 2016-2018,...
45.505495
126
0.702729
d85f4240e7e6152924206d62980c7e33f3069942
5,010
cpp
C++
src/raspberry_pi/receiver/home/vr360_view/src/main.cpp
sisinn/raspi_telexistence_vr-
09adb1160c86c2d4573d69f432790c312b4f0279
[ "MIT" ]
2
2018-10-04T05:27:11.000Z
2020-02-10T02:15:00.000Z
src/raspberry_pi/receiver/home/vr360_view/src/main.cpp
sisinn/raspi_telexistence_vr
09adb1160c86c2d4573d69f432790c312b4f0279
[ "MIT" ]
null
null
null
src/raspberry_pi/receiver/home/vr360_view/src/main.cpp
sisinn/raspi_telexistence_vr
09adb1160c86c2d4573d69f432790c312b4f0279
[ "MIT" ]
null
null
null
#include "ofMain.h" #include "ofApp.h" #include "unistd.h" int main(int argc, char *argv[]) { int opt; int qopt = 0; char qparam[128] = ""; int topt = 0; char tparam[128] = ""; int fopt = 0; char fparam[128] = ""; int ropt = 0; char rparam[128] = ""; int sopt = 0; char spara...
24.679803
132
0.353493
d85f4e78725f54a82f55b1a2fa66d9ee72a4c7f3
3,978
cpp
C++
src/threads.cpp
yanmingsohu/PlayJS
2f9e015d0ec38f9613aa6915c5289a815bb5a52f
[ "Apache-2.0" ]
1
2019-09-03T19:13:54.000Z
2019-09-03T19:13:54.000Z
src/threads.cpp
yanmingsohu/PlayJS
2f9e015d0ec38f9613aa6915c5289a815bb5a52f
[ "Apache-2.0" ]
null
null
null
src/threads.cpp
yanmingsohu/PlayJS
2f9e015d0ec38f9613aa6915c5289a815bb5a52f
[ "Apache-2.0" ]
null
null
null
#include "threads.h" #include "export-js.h" #include "fs.h" #include "util.h" #include "vm.h" #include <map> #include <mutex> using std::map; using std::thread; using std::string; using std::mutex; using std::lock_guard; typedef map<threadId, thread*> ThreadMap; static volatile int nextId = 0x10; static mutex lock_...
25.177215
90
0.616642
d8711fe5a8b2142a73751d6580651b63e075013b
9,749
cpp
C++
src/wrappers/src/mfx_gst_frame_constructor.cpp
AntonGrishin/gstreamer-plugins
6d86897e02b525da4bf1d3f8b4bb6472cc72eb2b
[ "BSD-3-Clause" ]
20
2016-08-06T02:31:53.000Z
2022-01-24T13:29:41.000Z
src/wrappers/src/mfx_gst_frame_constructor.cpp
AntonGrishin/gstreamer-plugins
6d86897e02b525da4bf1d3f8b4bb6472cc72eb2b
[ "BSD-3-Clause" ]
5
2016-08-01T15:35:36.000Z
2021-07-15T10:33:59.000Z
src/wrappers/src/mfx_gst_frame_constructor.cpp
AntonGrishin/gstreamer-plugins
6d86897e02b525da4bf1d3f8b4bb6472cc72eb2b
[ "BSD-3-Clause" ]
14
2016-08-18T23:42:06.000Z
2021-05-16T22:06:59.000Z
/********************************************************************************** Copyright (C) 2005-2019 Intel Corporation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of sourc...
28.673529
122
0.637296
d871c04714b3c998d4d0f8f20d2f85a9bd6f8ce3
206
cpp
C++
Object Oriented Algo Design in C++/practice/height_heap.cpp
aishwaryamallampati/BTech-IIITDM
4cfc25a4e6e066b848361cb92770cad3260c7d48
[ "MIT" ]
null
null
null
Object Oriented Algo Design in C++/practice/height_heap.cpp
aishwaryamallampati/BTech-IIITDM
4cfc25a4e6e066b848361cb92770cad3260c7d48
[ "MIT" ]
null
null
null
Object Oriented Algo Design in C++/practice/height_heap.cpp
aishwaryamallampati/BTech-IIITDM
4cfc25a4e6e066b848361cb92770cad3260c7d48
[ "MIT" ]
null
null
null
int height(int i,int size) { int l,r; if(i>size) return 0; else { l=height(2*i,size); r=height(((2*i)+1),size); if(l>r) { l=l+1; return l; } else { r=r+1; return r; } } }
9.363636
27
0.475728
d872dad72aa20ff0381e61a47744ec79c79d5686
4,281
hpp
C++
src/nnfusion/core/kernels/cpu/eigen/softmax.hpp
lynex/nnfusion
6332697c71b6614ca6f04c0dac8614636882630d
[ "MIT" ]
639
2020-09-05T10:00:59.000Z
2022-03-30T08:42:39.000Z
src/nnfusion/core/kernels/cpu/eigen/softmax.hpp
QPC-database/nnfusion
99ada47c50f355ca278001f11bc752d1c7abcee2
[ "MIT" ]
252
2020-09-09T05:35:36.000Z
2022-03-29T04:58:41.000Z
src/nnfusion/core/kernels/cpu/eigen/softmax.hpp
QPC-database/nnfusion
99ada47c50f355ca278001f11bc752d1c7abcee2
[ "MIT" ]
104
2020-09-05T10:01:08.000Z
2022-03-23T10:59:13.000Z
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #pragma once #include "../cpu_kernel_emitter.hpp" #include "nnfusion/core/operators/generic_op/generic_op.hpp" namespace nnfusion { namespace kernels { namespace cpu { template <typename ElementType> ...
38.223214
100
0.443354
d874fed91ddb84f034e8e97d57a87d232bd6e028
2,108
hpp
C++
Core/DescriptorSet.hpp
Shmaug/vkCAVE
e502aedaf172047557f0454acb170a46b9d350f8
[ "MIT" ]
2
2019-10-01T22:55:47.000Z
2019-10-04T20:25:29.000Z
Core/DescriptorSet.hpp
Shmaug/vkCAVE
e502aedaf172047557f0454acb170a46b9d350f8
[ "MIT" ]
null
null
null
Core/DescriptorSet.hpp
Shmaug/vkCAVE
e502aedaf172047557f0454acb170a46b9d350f8
[ "MIT" ]
null
null
null
#pragma once #include <Util/Util.hpp> class Device; class Texture; class Buffer; class Sampler; class DescriptorSet { public: ENGINE_EXPORT DescriptorSet(const std::string& name, Device* device, VkDescriptorSetLayout layout); ENGINE_EXPORT ~DescriptorSet(); ENGINE_EXPORT void CreateStorageBufferDescriptor(Buffer...
45.826087
168
0.833491
d875c03131f5d23004d3af46de9f475a03d9e566
2,102
cc
C++
TC-programs/STUFF/sort_excitationsa.cc
sklinkusch/scripts
a717cadb559db823a0d5172545661d5afa2715e7
[ "MIT" ]
null
null
null
TC-programs/STUFF/sort_excitationsa.cc
sklinkusch/scripts
a717cadb559db823a0d5172545661d5afa2715e7
[ "MIT" ]
null
null
null
TC-programs/STUFF/sort_excitationsa.cc
sklinkusch/scripts
a717cadb559db823a0d5172545661d5afa2715e7
[ "MIT" ]
null
null
null
# include <iostream> # include <fstream> # include <string.h> # include <stdio.h> # include <stdlib.h> # include <sstream> # include <math.h> using namespace std; void swap_line(int &froma, int &toa, double &coeffa, int &fromb, int &tob, double &coeffb){ int tempfrom, tempto; double tempcoeff; tempfrom = ...
26.607595
103
0.519029
d877e2908aa3d9ea6e7a4a3a17d62b6954741c44
1,481
cpp
C++
src/cpp/UTILS/DistilleryExceptionCode.cpp
IBMStreams/OSStreams
c6287bd9ec4323f567d2faf59125baba8604e1db
[ "Apache-2.0" ]
10
2021-02-19T20:19:24.000Z
2021-09-16T05:11:50.000Z
src/cpp/UTILS/DistilleryExceptionCode.cpp
xguerin/openstreams
7000370b81a7f8778db283b2ba9f9ead984b7439
[ "Apache-2.0" ]
7
2021-02-20T01:17:12.000Z
2021-06-08T14:56:34.000Z
src/cpp/UTILS/DistilleryExceptionCode.cpp
IBMStreams/OSStreams
c6287bd9ec4323f567d2faf59125baba8604e1db
[ "Apache-2.0" ]
4
2021-02-19T18:43:10.000Z
2022-02-23T14:18:16.000Z
/* * Copyright 2021 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
29.039216
83
0.766374
d8795b1764abefc1e1b3e6a06455b268e65532f0
522
cpp
C++
CodingInterviews/cpp/56_get_missing_number.cpp
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
CodingInterviews/cpp/56_get_missing_number.cpp
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
CodingInterviews/cpp/56_get_missing_number.cpp
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using namespace std; class Solution { public: int getMissingNumber(vector<int>& nums) { int left = 0, right = nums.size(); while (left < right) { int mid = left + (right - left) / 2; if (mid == nums[mid]) left = mid + 1; els...
18.642857
49
0.519157
f21d904334a6c51d4a57974b32bc4313dfb92ad1
1,929
hpp
C++
src/pyprx/visualization/three_js_group_py.hpp
aravindsiv/ML4KP
064015a7545e1713cbcad3e79807b5cec0849f54
[ "MIT" ]
3
2021-05-31T11:28:03.000Z
2021-05-31T13:49:30.000Z
src/pyprx/visualization/three_js_group_py.hpp
aravindsiv/ML4KP
064015a7545e1713cbcad3e79807b5cec0849f54
[ "MIT" ]
1
2021-09-03T09:39:32.000Z
2021-12-10T22:17:56.000Z
src/pyprx/visualization/three_js_group_py.hpp
aravindsiv/ML4KP
064015a7545e1713cbcad3e79807b5cec0849f54
[ "MIT" ]
2
2021-09-03T09:17:45.000Z
2021-10-04T15:52:58.000Z
#include <iostream> #include <boost/python.hpp> #include "prx/visualization/three_js_group.hpp" void (prx::three_js_group_t::*update_vis_infos_1_1)(prx::info_geometry_t, const prx::trajectory_t&, std::string, prx::space_t*, std::string color) = &prx::three_js_group_t::add_vis_infos; void (prx::three_js_group_t::*upd...
53.583333
191
0.6817
f21f1628be052c4ba093baefeb32dbf6eae4df4b
13,324
cc
C++
agp-7.1.0-alpha01/tools/base/profiler/native/perfd/profiler_service_test.cc
jomof/CppBuildCacheWorkInProgress
9e3475f6d94cb3239f27ed8f8ee81b0abde4ef51
[ "Apache-2.0" ]
1
2020-10-04T19:30:22.000Z
2020-10-04T19:30:22.000Z
agp-7.1.0-alpha01/tools/base/profiler/native/perfd/profiler_service_test.cc
jomof/CppBuildCacheWorkInProgress
9e3475f6d94cb3239f27ed8f8ee81b0abde4ef51
[ "Apache-2.0" ]
null
null
null
agp-7.1.0-alpha01/tools/base/profiler/native/perfd/profiler_service_test.cc
jomof/CppBuildCacheWorkInProgress
9e3475f6d94cb3239f27ed8f8ee81b0abde4ef51
[ "Apache-2.0" ]
2
2020-10-04T19:30:24.000Z
2020-11-04T05:58:17.000Z
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
33.31
78
0.707896
f22135104eb6c134a71fbbb52d41a9b1c7f155c1
20,275
cpp
C++
src/textnet_nextbasket.cpp
pl8787/textnet-release
c85a4162c55b4cfe22eab6f8f0c8b615854f9b8f
[ "Apache-2.0" ]
114
2017-06-14T07:05:31.000Z
2021-06-13T05:30:49.000Z
src/textnet_nextbasket.cpp
pl8787/textnet-release
c85a4162c55b4cfe22eab6f8f0c8b615854f9b8f
[ "Apache-2.0" ]
7
2017-11-17T08:16:55.000Z
2019-10-05T00:09:20.000Z
src/textnet_nextbasket.cpp
pl8787/textnet-release
c85a4162c55b4cfe22eab6f8f0c8b615854f9b8f
[ "Apache-2.0" ]
40
2017-06-15T03:21:10.000Z
2021-10-31T15:03:30.000Z
#define _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_DEPRECATE #include <iostream> #include <fstream> #include <ctime> #include <string> #include <cstring> #include <vector> #include <map> #include <climits> #include "./layer/layer.h" #include "./io/json/json.h" #include "global.h" #include <cassert>...
38.472486
123
0.612429
f22dfd860b4d10bf32ddef2f1593e46d9b44ea93
3,276
cpp
C++
src/util/node.cpp
markhary/ctci
eb96014b779e2a7eca1229644300bae18caf328d
[ "Unlicense" ]
1
2021-11-17T16:50:54.000Z
2021-11-17T16:50:54.000Z
src/util/node.cpp
markhary/ctci
eb96014b779e2a7eca1229644300bae18caf328d
[ "Unlicense" ]
null
null
null
src/util/node.cpp
markhary/ctci
eb96014b779e2a7eca1229644300bae18caf328d
[ "Unlicense" ]
1
2020-06-15T13:54:04.000Z
2020-06-15T13:54:04.000Z
// Node object // #include <iostream> #include <vector> #include <gtest/gtest.h> #include "args.h" #include "macros.h" #include "util/node.h" using namespace std; using namespace ctci; using namespace ctci::util; TEST(Node, Initialize) { int value = 5; Node<int> node(value); ASSERT_EQ(node.value, val...
25.395349
106
0.654762
f23084bf6073bb48b042bc99e01b044d35f4d297
600
cpp
C++
Tau/src/core/Midi/MidiEvent.cpp
cymheart/tau
1881046c7e362451e8d4f5d4b885e9011dade319
[ "MIT" ]
7
2021-10-05T07:07:45.000Z
2022-03-01T07:28:34.000Z
Tau/src/core/Midi/MidiEvent.cpp
cymheart/tau
1881046c7e362451e8d4f5d4b885e9011dade319
[ "MIT" ]
1
2021-09-21T07:25:53.000Z
2021-10-02T02:02:10.000Z
Tau/src/core/Midi/MidiEvent.cpp
cymheart/ventrue
57219117a40077ffdde76c7183ea744c0ac2a08f
[ "MIT" ]
1
2022-02-24T21:24:27.000Z
2022-02-24T21:24:27.000Z
#include"MidiEvent.h" namespace tau { SysexEvent::~SysexEvent() { free(data); } void SysexEvent::CreateData(byte* d, size_t len) { if (len <= 0) return; try { data = (byte*)malloc(len); if (data != nullptr) memcpy(data, d, len); this->size = len; } catch (exception) { } } Unk...
12
51
0.558333
f23107e929ed9d288e7d9d15b2b4f334ffea79a3
3,679
cpp
C++
src/main.cpp
fixstars/cRTOS-loader
d3da5738d2511b497a56d320eafe1f3dc628347b
[ "Apache-2.0" ]
null
null
null
src/main.cpp
fixstars/cRTOS-loader
d3da5738d2511b497a56d320eafe1f3dc628347b
[ "Apache-2.0" ]
null
null
null
src/main.cpp
fixstars/cRTOS-loader
d3da5738d2511b497a56d320eafe1f3dc628347b
[ "Apache-2.0" ]
null
null
null
/* Copyright (c) 2020 Yang, Chung-Fan @ Fixstars corporation * <chungfan.yang@fixstars.com> * 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 ...
25.908451
100
0.608046
f239b20b515adeda1a89ac106b609cd22e0fef40
2,474
cpp
C++
app/src/main/cpp/Feature_Extraction/RSMelFilterBank.cpp
PetrFlajsingr/SpeechRecognition
23c675c7389b9ad97b18a8ba3739dceb04f42856
[ "Apache-2.0" ]
1
2019-04-18T06:33:09.000Z
2019-04-18T06:33:09.000Z
app/src/main/cpp/Feature_Extraction/RSMelFilterBank.cpp
PetrFlajsingr/SpeechRecognition
23c675c7389b9ad97b18a8ba3739dceb04f42856
[ "Apache-2.0" ]
null
null
null
app/src/main/cpp/Feature_Extraction/RSMelFilterBank.cpp
PetrFlajsingr/SpeechRecognition
23c675c7389b9ad97b18a8ba3739dceb04f42856
[ "Apache-2.0" ]
null
null
null
/* * Class providing interface to renderscript implementation of mel bank filters. * * Created by Petr Flajsingr on 15/12/2017. */ #include <RSMelFilterBank.h> #include <constants.h> SpeechRecognition::Feature_Extraction::RSMelFilterBank::RSMelFilterBank(const char* cacheDir) { this->renderScriptObject = new...
38.65625
134
0.657639
f23a61df028c4bc3fb7cfed62a551939ce5ec547
634
cpp
C++
Estrutura de Dados/Sorts/SelectionSort/Source.cpp
boveloco/Puc
cbc3308fac104098b030dadebdd036fe288bbe0c
[ "MIT" ]
null
null
null
Estrutura de Dados/Sorts/SelectionSort/Source.cpp
boveloco/Puc
cbc3308fac104098b030dadebdd036fe288bbe0c
[ "MIT" ]
null
null
null
Estrutura de Dados/Sorts/SelectionSort/Source.cpp
boveloco/Puc
cbc3308fac104098b030dadebdd036fe288bbe0c
[ "MIT" ]
null
null
null
#pragma once #include "Array.h" #include "SelectionSort.h" #include "Inimigos.h" #include <iostream> int compararEnergiaInimigos(Inimigos a, Inimigos b); int main(){ Array<Inimigos> numbs(5); numbs[0].energia = 13; numbs[1].energia = 30; numbs[2].energia = 20; numbs[3].energia = 10; numbs[4].energia = 5; sel...
19.212121
69
0.657729
f2413268101c11fe61c3d43e27f20111c77f31f4
5,553
cpp
C++
04_Sample/TowerDefence/Source/Tower.cpp
mcodegeeks/OpenKODE-Framework
d4382d781da7f488a0e7667362a89e8e389468dd
[ "MIT" ]
2
2017-08-03T07:15:00.000Z
2018-06-18T10:32:53.000Z
04_Sample/TowerDefence/Source/Tower.cpp
mcodegeeks/OpenKODE-Framework
d4382d781da7f488a0e7667362a89e8e389468dd
[ "MIT" ]
null
null
null
04_Sample/TowerDefence/Source/Tower.cpp
mcodegeeks/OpenKODE-Framework
d4382d781da7f488a0e7667362a89e8e389468dd
[ "MIT" ]
2
2019-03-04T22:57:42.000Z
2020-03-06T01:32:26.000Z
/* -------------------------------------------------------------------------- * * File Tower.cpp * Description * * Ported By Young-Hwan Mun * Contact xmsoft77@gmail.com * * Created By Kirill Muzykov on 8/22/13. * * ---------------------------------...
29.073298
128
0.591572
f2460ca1daec1f6e64ac04dc64574fc70288c57d
2,121
hpp
C++
include/open-bo-api-crc64.hpp
sokoliko/open-bo-api
ddcad19163532543ad13a0398f0b0119e55d4c3d
[ "MIT" ]
6
2020-02-09T06:40:03.000Z
2021-09-08T09:38:19.000Z
include/open-bo-api-crc64.hpp
sokoliko/open-bo-api
ddcad19163532543ad13a0398f0b0119e55d4c3d
[ "MIT" ]
3
2020-02-28T11:30:43.000Z
2020-06-05T12:50:33.000Z
include/open-bo-api-crc64.hpp
sokoliko/open-bo-api
ddcad19163532543ad13a0398f0b0119e55d4c3d
[ "MIT" ]
7
2020-03-24T22:31:25.000Z
2021-11-24T17:13:56.000Z
/* * open-bo-api - C++ API for working with binary options brokers * * Copyright (c) 2020 Elektro Yar. Email: git.electroyar@gmail.com * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software withou...
32.630769
89
0.704856
f2465b2f9af69a8637fdd2e79279b20b1fc4ee81
986
cpp
C++
LeetCode/23. Merge k Sorted Lists/Solution.cpp
nik3212/challenges
b127bc66ffa27bfdef87ac402dc080f933dad893
[ "MIT" ]
1
2021-06-15T12:48:47.000Z
2021-06-15T12:48:47.000Z
LeetCode/23. Merge k Sorted Lists/Solution.cpp
nik3212/challenges
b127bc66ffa27bfdef87ac402dc080f933dad893
[ "MIT" ]
null
null
null
LeetCode/23. Merge k Sorted Lists/Solution.cpp
nik3212/challenges
b127bc66ffa27bfdef87ac402dc080f933dad893
[ "MIT" ]
null
null
null
/* 23. Merge k Sorted Lists Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Example: Input: [ 1->4->5, 1->3->4, 2->6 ] Output: 1->1->2->3->4->4->5->6 */ /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; ...
17.927273
98
0.51217
f24a6059fe50be8a4a5f21d303f9a8b110248f99
233
cpp
C++
src/caller/executor/executor.cpp
czhj/caller
1f749bc039e731478a2a2f766445b8a14ac13063
[ "MIT" ]
1
2022-03-09T01:02:25.000Z
2022-03-09T01:02:25.000Z
src/caller/executor/executor.cpp
czhj/caller
1f749bc039e731478a2a2f766445b8a14ac13063
[ "MIT" ]
null
null
null
src/caller/executor/executor.cpp
czhj/caller
1f749bc039e731478a2a2f766445b8a14ac13063
[ "MIT" ]
null
null
null
#include <caller/executor/executor.hpp> CALLER_BEGIN ExecutionContext::ExecutionContext() { } ExecutionContext::~ExecutionContext() { } Executor::Executor() { } Executor::~Executor() { } CALLER_END
8.961538
40
0.643777
f24f3f3faf0695de76ce2b2b4d575af04e5f9c12
70,427
hpp
C++
Evolutionary_Strategy_Vulkan.hpp
Harri-Renney/Survival_of_the_Synthesis-GPU_Accelerated_Frequency_Modulation_Parameter_Matcher
c70f8f2f2961148a7639fad05b3cf0d87f895c0c
[ "MIT" ]
null
null
null
Evolutionary_Strategy_Vulkan.hpp
Harri-Renney/Survival_of_the_Synthesis-GPU_Accelerated_Frequency_Modulation_Parameter_Matcher
c70f8f2f2961148a7639fad05b3cf0d87f895c0c
[ "MIT" ]
null
null
null
Evolutionary_Strategy_Vulkan.hpp
Harri-Renney/Survival_of_the_Synthesis-GPU_Accelerated_Frequency_Modulation_Parameter_Matcher
c70f8f2f2961148a7639fad05b3cf0d87f895c0c
[ "MIT" ]
null
null
null
#ifndef EVOLUTIONARY_STRATEGY_VULKAN_HPP #define EVOLUTIONARY_STRATEGY_VULKAN_HPP #include <math.h> #include <array> #include <random> #include <chrono> #define GLFW_INCLUDE_VULKAN #include <GLFW/glfw3.h> //Graphic math types and functions// #include <glm\glm.hpp> #include "Evolutionary_Strategy.hpp" #include "Benc...
48.738408
458
0.799906
f25211b062c96bd4607d269177d7eee4e4c09c4a
7,227
cpp
C++
Final/Dataset/B2016_Z2_Z3/student4982.cpp
Team-PyRated/PyRated
1df171c8a5a98977b7a96ee298a288314d1b1b96
[ "MIT" ]
null
null
null
Final/Dataset/B2016_Z2_Z3/student4982.cpp
Team-PyRated/PyRated
1df171c8a5a98977b7a96ee298a288314d1b1b96
[ "MIT" ]
null
null
null
Final/Dataset/B2016_Z2_Z3/student4982.cpp
Team-PyRated/PyRated
1df171c8a5a98977b7a96ee298a288314d1b1b96
[ "MIT" ]
null
null
null
#include <iostream> #include <stdexcept> #include <vector> #include <deque> #include <type_traits> #include <cmath> #include <algorithm> #include <iomanip> int SumaCifara(long long int x) { int suma=0; while(x!=0) { suma+=std::abs(x%10); x=x/10; } return suma; } int SumaDjelilaca(long lon...
22.100917
164
0.5705
f255aecf55b084a234b0747fedf0e3de15bf4980
7,619
cpp
C++
Necromancer/Terrain.cpp
myffx36/RenderingEngine
38df29966b3126744fb40c2a97775ae44cea92f9
[ "MIT" ]
null
null
null
Necromancer/Terrain.cpp
myffx36/RenderingEngine
38df29966b3126744fb40c2a97775ae44cea92f9
[ "MIT" ]
null
null
null
Necromancer/Terrain.cpp
myffx36/RenderingEngine
38df29966b3126744fb40c2a97775ae44cea92f9
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "Terrain.h" const float height_base = 200.0f; namespace Necromancer { Terrain::Terrain(const char* file_name, ID3D11Device* device) { std::fstream terrain_file; terrain_file.open(file_name, std::ios::binary | std::ios::in); terrain_file.seekg(0, std::ios::beg); auto start_poi...
35.110599
88
0.708229
f25c4187bd60703c16fbcb4709293a8ec00f1145
101
cpp
C++
code/code-complete/test.cpp
peter-can-talk/cpp-london
e232bf98f28b1d8b56af3af23d43a3f565221ab0
[ "MIT" ]
3
2017-02-20T23:24:47.000Z
2019-09-09T19:15:07.000Z
code/code-complete/test.cpp
peter-can-talk/cpp-london-2017
e232bf98f28b1d8b56af3af23d43a3f565221ab0
[ "MIT" ]
null
null
null
code/code-complete/test.cpp
peter-can-talk/cpp-london-2017
e232bf98f28b1d8b56af3af23d43a3f565221ab0
[ "MIT" ]
null
null
null
struct X { /** * foo does things. */ void foo(int x) { } }; int main() { X x; x. }
7.214286
21
0.405941
f2609badd8ff348904efaae8ae92b3112507f4fc
8,628
cpp
C++
PersonDetection/PersonDetector.cpp
vohoaiviet/Human-Detection
e34acdab5af81fc2e99d686ada470a114ae3de63
[ "MIT" ]
28
2015-04-28T08:45:43.000Z
2021-11-15T12:10:12.000Z
PersonDetection/PersonDetector.cpp
vohoaiviet/Human-Detection
e34acdab5af81fc2e99d686ada470a114ae3de63
[ "MIT" ]
null
null
null
PersonDetection/PersonDetector.cpp
vohoaiviet/Human-Detection
e34acdab5af81fc2e99d686ada470a114ae3de63
[ "MIT" ]
28
2015-04-07T04:02:07.000Z
2019-03-31T17:55:42.000Z
#include "StdAfx.h" #include "PersonDetector.h" #include <math.h> PersonDetector::PersonDetector() { m_cell = cvSize(8, 8); m_block = cvSize(2, 2); m_winSize = cvSize(64, 128); m_stepOverlap = 1; classifier.SetParams(m_cell, m_block , m_stepOverlap); startScale = 1; scaleStep = 1.5; m_widthStep = 8; m_heigth...
28.104235
186
0.663421
f260cce44c1ea4cd63b4a99908bfd536b9922ccb
618
cpp
C++
src/game/LevelListLoader.cpp
ArthurSonzogni/InTheCube
c4a35096d962d23f6211802970ee44f77d29e38a
[ "MIT" ]
4
2019-12-31T07:58:54.000Z
2021-09-07T18:16:51.000Z
src/game/LevelListLoader.cpp
ArthurSonzogni/InTheCube
c4a35096d962d23f6211802970ee44f77d29e38a
[ "MIT" ]
null
null
null
src/game/LevelListLoader.cpp
ArthurSonzogni/InTheCube
c4a35096d962d23f6211802970ee44f77d29e38a
[ "MIT" ]
2
2020-02-17T12:47:33.000Z
2021-09-07T18:16:52.000Z
// Copyright 2020 Arthur Sonzogni. All rights reserved. // Use of this source code is governed by the MIT license that can be found in // the LICENSE file. #include "game/LevelListLoader.hpp" #include <fstream> #include <iostream> #include "game/Resource.hpp" std::vector<std::string> LevelListLoader() { std::ifst...
23.769231
78
0.669903
f26663b27836b964aeaa957327dbff9365075dc0
12,757
cpp
C++
bin/windows/cpp/obj/src/openfl/display/Tilesheet.cpp
DrSkipper/twogames
916e8af6cd45cf85fbca4a6ea8ee12e24dd6689b
[ "MIT" ]
null
null
null
bin/windows/cpp/obj/src/openfl/display/Tilesheet.cpp
DrSkipper/twogames
916e8af6cd45cf85fbca4a6ea8ee12e24dd6689b
[ "MIT" ]
null
null
null
bin/windows/cpp/obj/src/openfl/display/Tilesheet.cpp
DrSkipper/twogames
916e8af6cd45cf85fbca4a6ea8ee12e24dd6689b
[ "MIT" ]
null
null
null
#include <hxcpp.h> #ifndef INCLUDED_flash_Lib #include <flash/Lib.h> #endif #ifndef INCLUDED_flash_display_BitmapData #include <flash/display/BitmapData.h> #endif #ifndef INCLUDED_flash_display_Graphics #include <flash/display/Graphics.h> #endif #ifndef INCLUDED_flash_display_IBitmapDrawable #include <flash/display/IB...
35.143251
300
0.767108
f26798529f0a2c0bbae58fdf5292113f7510975c
431
cpp
C++
src/mesh/mesh.cpp
ycjungSubhuman/Kinect-Face
b582bd8572e998617b5a0d197b4ac9bd4a9b42be
[ "CNRI-Python" ]
7
2018-08-12T22:05:26.000Z
2021-05-14T08:39:32.000Z
src/mesh/mesh.cpp
ycjungSubhuman/Kinect-Face
b582bd8572e998617b5a0d197b4ac9bd4a9b42be
[ "CNRI-Python" ]
null
null
null
src/mesh/mesh.cpp
ycjungSubhuman/Kinect-Face
b582bd8572e998617b5a0d197b4ac9bd4a9b42be
[ "CNRI-Python" ]
2
2019-02-14T08:29:16.000Z
2019-03-01T07:11:17.000Z
#include <Eigen/Core> #include <Eigen/Geometry> #include "mesh/mesh.h" namespace telef::mesh { void ColorMesh::applyTransform(Eigen::MatrixXf transform) { Eigen::Map<Eigen::Matrix3Xf> v(position.data(), 3, position.size() / 3); Eigen::Matrix3Xf result = (transform * v.colwise().homogeneous()).colwise().hnor...
33.153846
74
0.698376
f26b97db07cd2c2457a94eb2ed16d8becd085010
963
cpp
C++
package/statistics/statistics_gateway/deprecated/btp_deprecated_gateway_multiton.cpp
mambaru/wfc_core
0c3e7fba82a9bb1580582968efae02ef7fabc87a
[ "MIT" ]
null
null
null
package/statistics/statistics_gateway/deprecated/btp_deprecated_gateway_multiton.cpp
mambaru/wfc_core
0c3e7fba82a9bb1580582968efae02ef7fabc87a
[ "MIT" ]
5
2019-12-06T01:01:01.000Z
2021-04-20T21:16:34.000Z
package/statistics/statistics_gateway/deprecated/btp_deprecated_gateway_multiton.cpp
mambaru/wfc_core
0c3e7fba82a9bb1580582968efae02ef7fabc87a
[ "MIT" ]
null
null
null
// // Author: Vladimir Migashko <migashko@gmail.com>, (C) 2013-2015 // // Copyright: See COPYING file that comes with this distribution // #include "btp_deprecated_gateway_multiton.hpp" #include "btp_deprecated_gateway.hpp" #include <wfc/module/multiton.hpp> #include <wfc/module/instance.hpp> #include <wfc/name.hpp> ...
20.934783
66
0.695742
f26c536c9a9135d1e2875932cd0d32332bcb451f
3,571
cpp
C++
game-emu-common/src/binarytreememorymap.cpp
Dudejoe870/game-emu
153b7f9b7bc56042cc6d41187688aa1d9a612830
[ "MIT" ]
1
2022-03-28T21:03:10.000Z
2022-03-28T21:03:10.000Z
game-emu-common/src/binarytreememorymap.cpp
Dudejoe870/game-emu
153b7f9b7bc56042cc6d41187688aa1d9a612830
[ "MIT" ]
null
null
null
game-emu-common/src/binarytreememorymap.cpp
Dudejoe870/game-emu
153b7f9b7bc56042cc6d41187688aa1d9a612830
[ "MIT" ]
null
null
null
#include <game-emu/common/physicalmemorymap.h> namespace GameEmu::Common { PhysicalMemoryMap::Entry* BinaryTreeMemoryMap::Map(u8* hostReadMemory, u8* hostWriteMemory, u64 size, u64 baseAddress, Entry::ReadEventFunction readEvent, Entry::WriteEventFunction writeEvent) { entries.push_back(Entry(baseAddress &addres...
25.147887
150
0.720806
f26e1bf69404f9ff4878ce369c1a86cdd8c60546
5,364
hpp
C++
patterns/2020_10_19/prefab/include/prefab/IEntity.hpp
liff-engineer/articles
ad3386ef9cda5083793f485e309a9f85ab36f664
[ "MIT" ]
2
2020-12-01T06:44:41.000Z
2021-11-22T06:07:52.000Z
patterns/2020_10_19/prefab/include/prefab/IEntity.hpp
liff-engineer/articles
ad3386ef9cda5083793f485e309a9f85ab36f664
[ "MIT" ]
null
null
null
patterns/2020_10_19/prefab/include/prefab/IEntity.hpp
liff-engineer/articles
ad3386ef9cda5083793f485e309a9f85ab36f664
[ "MIT" ]
null
null
null
#pragma once #include <vector> #include <tuple> #include <memory> #include "IComponent.hpp" namespace prefab { //用来操作tuple的foreach算法 template <typename Tuple, typename F, std::size_t ...Indices> void for_each_impl(Tuple&& tuple, F&& f, std::index_sequence<Indices...>) { using swallow = int[]; ...
27.228426
89
0.543624
f271842da1c802a66058f6006e2a868b865d0c12
2,388
hpp
C++
include/Network/Session.hpp
Lisoph/MORL
f1c4f9a1c16df236495666fd46d76da6ac9a32af
[ "MIT" ]
1
2015-05-24T17:20:06.000Z
2015-05-24T17:20:06.000Z
include/Network/Session.hpp
Lisoph/MORL
f1c4f9a1c16df236495666fd46d76da6ac9a32af
[ "MIT" ]
1
2015-05-15T20:29:58.000Z
2015-05-15T20:29:58.000Z
include/Network/Session.hpp
Lisoph/MORL
f1c4f9a1c16df236495666fd46d76da6ac9a32af
[ "MIT" ]
null
null
null
#pragma once #include "UdpSocket.hpp" #include "IPEndpoint.hpp" #include "Network/SessionState.hpp" #include <cstdint> #include <functional> #include <stack> namespace MORL { class Game; namespace Network { class Session; class StateNotRunning : public SessionState { public: StateNotRunning(S...
22.528302
66
0.588358
f275bc1ce15ec5440151d3e7013dd7a10fdc3923
152
cpp
C++
12_Sorting/HighScoreEntry.cpp
alyoshenka/CodeDesign
beb8bbf79b14cbf1cad26b1e8f58fd47c417ccdd
[ "MIT" ]
null
null
null
12_Sorting/HighScoreEntry.cpp
alyoshenka/CodeDesign
beb8bbf79b14cbf1cad26b1e8f58fd47c417ccdd
[ "MIT" ]
null
null
null
12_Sorting/HighScoreEntry.cpp
alyoshenka/CodeDesign
beb8bbf79b14cbf1cad26b1e8f58fd47c417ccdd
[ "MIT" ]
null
null
null
#include "HighScoreEntry.h" HighScoreEntry::HighScoreEntry() { name = "noName"; score = -1; level = -1; } HighScoreEntry::~HighScoreEntry() { }
9.5
33
0.657895
f27a190e89511dc1e7eaf4ac352322b7f0cc9244
9,108
cpp
C++
src/Player.cpp
osbixaodaunb/RGBender-2.0
9c5e33cba50541b8288e29f56562820b3d7b0e55
[ "MIT" ]
4
2017-05-15T19:33:28.000Z
2017-05-15T23:33:04.000Z
src/Player.cpp
osbixaodaunb/RGBender-2.0
9c5e33cba50541b8288e29f56562820b3d7b0e55
[ "MIT" ]
4
2017-10-04T14:29:18.000Z
2017-10-04T14:43:52.000Z
src/Player.cpp
unbgames/RGBender
9c5e33cba50541b8288e29f56562820b3d7b0e55
[ "MIT" ]
4
2017-05-15T19:33:37.000Z
2017-08-18T14:12:41.000Z
#include "Player.h" #include "SDLGameObject.h" #include "LoaderParams.h" #include "InputHandler.h" #include "Bullet.h" #include "Game.h" #include "Log.h" #include "Enemy.h" #include "PlayState.h" #include "Physics.h" #include "AudioManager.h" #include "GameOverState.h" #include "Childmaiden.h" #include "Timer.h" #incl...
26.553936
181
0.664361
f27b60e26acb014e0db888dda596bbfd2c3c660b
6,813
cpp
C++
tester/main-db-tester.cpp
hihi-dev/linphone
45814404943a0c8a4e341dbebf5da71fc6e44b67
[ "BSD-2-Clause" ]
null
null
null
tester/main-db-tester.cpp
hihi-dev/linphone
45814404943a0c8a4e341dbebf5da71fc6e44b67
[ "BSD-2-Clause" ]
null
null
null
tester/main-db-tester.cpp
hihi-dev/linphone
45814404943a0c8a4e341dbebf5da71fc6e44b67
[ "BSD-2-Clause" ]
null
null
null
/* * main-db-tester.cpp * Copyright (C) 2017 Belledonne Communications SARL * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any l...
34.583756
115
0.719507
f27b70324b23c204b5ef974c72beaadd47255450
414
cpp
C++
lecture5/task_6.cpp
zaneta-skiba/cpp
b02ce4252f9cf894370358fded7cfbfa3a317ead
[ "MIT" ]
null
null
null
lecture5/task_6.cpp
zaneta-skiba/cpp
b02ce4252f9cf894370358fded7cfbfa3a317ead
[ "MIT" ]
null
null
null
lecture5/task_6.cpp
zaneta-skiba/cpp
b02ce4252f9cf894370358fded7cfbfa3a317ead
[ "MIT" ]
null
null
null
#include<iostream> using namespace std; int main() { string names[4]; cout << "Enter 4 names:" << endl; for (int i = 0; i < 4; i++) // user enters the names { cout << "name " << i+1 <<": "; cin >> names[i]; } for (int i = 0; i < 4; i++) { cout <<...
15.923077
79
0.417874
f27b75f9a9f11ae8ad2f1dd03714e6a1cfdb2357
132
cpp
C++
flower_equals_win/logic/Minus.cpp
Garoli/flower-equals-win-game
c6965b9dfa38de124e3e8991a0d92509a54365df
[ "Unlicense", "MIT" ]
null
null
null
flower_equals_win/logic/Minus.cpp
Garoli/flower-equals-win-game
c6965b9dfa38de124e3e8991a0d92509a54365df
[ "Unlicense", "MIT" ]
null
null
null
flower_equals_win/logic/Minus.cpp
Garoli/flower-equals-win-game
c6965b9dfa38de124e3e8991a0d92509a54365df
[ "Unlicense", "MIT" ]
null
null
null
#include "Minus.h" Minus::Minus(char s) : Operator(s) { setImage("../flower_equals_win/meshes/textures/blocks/block_minus.png"); }
26.4
74
0.727273
f27b977245640cf13e6e45289e2901f7b0c05bd8
4,087
cpp
C++
Libs/DICOM/Core/Testing/Cpp/ctkDICOMTesterTest1.cpp
ntoussaint/CTK
fc7a5f78fff4c4394ee5ede2f21975c6a44dfea4
[ "Apache-2.0" ]
515
2015-01-13T05:42:10.000Z
2022-03-29T03:10:01.000Z
Libs/DICOM/Core/Testing/Cpp/ctkDICOMTesterTest1.cpp
ntoussaint/CTK
fc7a5f78fff4c4394ee5ede2f21975c6a44dfea4
[ "Apache-2.0" ]
425
2015-01-06T05:28:38.000Z
2022-03-08T19:42:18.000Z
Libs/DICOM/Core/Testing/Cpp/ctkDICOMTesterTest1.cpp
ntoussaint/CTK
fc7a5f78fff4c4394ee5ede2f21975c6a44dfea4
[ "Apache-2.0" ]
341
2015-01-08T06:18:17.000Z
2022-03-29T21:47:49.000Z
/*========================================================================= Library: CTK Copyright (c) Kitware Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.ap...
28.985816
79
0.571324
f27be8659b0b452d8f4a3c58fde153b08c488f8c
101
hpp
C++
source/windows.hpp
phwitti/elevate
00e4718bcfbf2d5490a3059451d850d17c30d9b0
[ "Unlicense" ]
4
2021-02-24T23:50:18.000Z
2021-08-08T11:56:49.000Z
src/shared/windows.hpp
phwitti/cmdhere
a8e7635780b043efb3e220c65366255d8529b615
[ "Unlicense" ]
null
null
null
src/shared/windows.hpp
phwitti/cmdhere
a8e7635780b043efb3e220c65366255d8529b615
[ "Unlicense" ]
null
null
null
#ifndef __PW_WINDOWS_HPP__ #define __PW_WINDOWS_HPP__ #define NOMINMAX #include <Windows.h> #endif
12.625
26
0.811881
f27f8336710722dff65995ed0278c5e1a93f3a07
926
cpp
C++
ITK19_Summer_Training _2021/PreQNOI/21_08_21/e.cpp
hoanghai1803/CP_Training
03495a21509fb3ab7fc64674b9a1b0c7d4327ecb
[ "MIT" ]
4
2021-08-25T10:53:32.000Z
2021-09-30T03:25:50.000Z
ITK19_Summer_Training _2021/PreQNOI/21_08_21/e.cpp
hoanghai1803/CP_Training
03495a21509fb3ab7fc64674b9a1b0c7d4327ecb
[ "MIT" ]
null
null
null
ITK19_Summer_Training _2021/PreQNOI/21_08_21/e.cpp
hoanghai1803/CP_Training
03495a21509fb3ab7fc64674b9a1b0c7d4327ecb
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main() { long long x, y, l, r; cin >> x >> y >> l >> r; long long powX = 1, powY = 1; vector<long long> vecX, vecY, vecSum; while (1) { vecX.push_back(powX); if (r / x < powX) break; powX *= x; } while (...
21.045455
79
0.413607
f28194fb10280e78290c1e8fd063a8815c6bae80
209
cpp
C++
src/stream/DirectStream.cpp
Lyatus/L
0b594d722200d5ee0198b5d7b9ee72a5d1e12611
[ "Unlicense" ]
45
2018-08-24T12:57:38.000Z
2021-11-12T11:21:49.000Z
src/stream/DirectStream.cpp
Lyatus/L
0b594d722200d5ee0198b5d7b9ee72a5d1e12611
[ "Unlicense" ]
null
null
null
src/stream/DirectStream.cpp
Lyatus/L
0b594d722200d5ee0198b5d7b9ee72a5d1e12611
[ "Unlicense" ]
4
2019-09-16T02:48:42.000Z
2020-07-10T03:50:31.000Z
#include "DirectStream.h" #include "../container/Buffer.h" using namespace L; Buffer DirectStream::read_into_buffer() { Buffer buffer(size()); seek(0); read(buffer, buffer.size()); return buffer; }
16.076923
41
0.69378
f28b6c86a411b6fa3e1472f751d8e4235d6aa694
1,294
cpp
C++
src/Editor/Dynamic/Fields/TexturePathEditor.cpp
Tristeon/Tristeon
9052e87b743f1122ed4c81952f2bffda96599447
[ "MIT" ]
32
2018-06-16T20:50:15.000Z
2022-03-26T16:57:15.000Z
src/Editor/Dynamic/Fields/TexturePathEditor.cpp
Tristeon/Tristeon2D
9052e87b743f1122ed4c81952f2bffda96599447
[ "MIT" ]
2
2018-10-07T17:41:39.000Z
2021-01-08T03:14:19.000Z
src/Editor/Dynamic/Fields/TexturePathEditor.cpp
Tristeon/Tristeon2D
9052e87b743f1122ed4c81952f2bffda96599447
[ "MIT" ]
9
2018-06-12T21:00:58.000Z
2021-01-08T02:18:30.000Z
#include "TexturePathEditor.h" #include <qboxlayout.h> #include <qdir.h> #include <qfiledialog.h> #include <Settings.h> #include <AssetManagement/AssetDatabase.h> namespace TristeonEditor { TexturePathEditor::TexturePathEditor(const nlohmann::json& pValue, const std::function<void(nlohmann::json)>& pCallback) : Abs...
31.560976
178
0.697836
f290e9b9e1dfe6750502d56b139da0c12d11eefb
2,707
cpp
C++
competitive_programming_3/2_data_structures_and_libraries/2.3_Non-Linear_DS_with_Built-in_Libraries/map(treemap)/978_Lemmings_Battle.cpp
FranciscoPigretti/onlinejudge_solutions
ec9368ade1faa403d0d26ad9321b030e128ae099
[ "MIT" ]
null
null
null
competitive_programming_3/2_data_structures_and_libraries/2.3_Non-Linear_DS_with_Built-in_Libraries/map(treemap)/978_Lemmings_Battle.cpp
FranciscoPigretti/onlinejudge_solutions
ec9368ade1faa403d0d26ad9321b030e128ae099
[ "MIT" ]
null
null
null
competitive_programming_3/2_data_structures_and_libraries/2.3_Non-Linear_DS_with_Built-in_Libraries/map(treemap)/978_Lemmings_Battle.cpp
FranciscoPigretti/onlinejudge_solutions
ec9368ade1faa403d0d26ad9321b030e128ae099
[ "MIT" ]
null
null
null
#include <iostream> // cin, cout #include <set> #include <iterator> using namespace std; int main() { int test_cases; scanf("%d", &test_cases); int B, SG, SB, current; multiset <int, greater <int> > greens, blues; multiset <int, greater <int> > temp_greens, temp_blues; mult...
27.907216
70
0.362763
f294481ff7e6dc8c20b6e4ea9d130ef1c07a09a1
12,105
cpp
C++
runtests.cpp
fguitton/mdipp
a79d207daa3bf6b2b730653d39cd270cf6295859
[ "BSD-3-Clause" ]
2
2017-11-01T16:45:16.000Z
2021-02-24T08:29:14.000Z
runtests.cpp
fguitton/mdipp
a79d207daa3bf6b2b730653d39cd270cf6295859
[ "BSD-3-Clause" ]
null
null
null
runtests.cpp
fguitton/mdipp
a79d207daa3bf6b2b730653d39cd270cf6295859
[ "BSD-3-Clause" ]
2
2018-03-22T16:40:51.000Z
2018-07-16T13:05:10.000Z
#include <fstream> #include <iostream> #include <memory> #include <Eigen/Dense> #include "datatypes.hpp" #include "utility.hpp" std::default_random_engine generator; template<typename T> void writeCsvMatrix (std::ostream &fd, const Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> &data, const Eigen::VectorXi &a...
26.546053
86
0.585378
f295975d8918914e50a1a1e82b5b1f9a728aa1ff
254
cpp
C++
ImportantExample/QIconEditorDemo/main.cpp
xiaohaijin/Qt
54d961c6a8123d8e4daf405b7996aba4be9ab7ed
[ "MIT" ]
3
2018-12-24T19:35:52.000Z
2022-02-04T14:45:59.000Z
ImportantExample/QIconEditorDemo/main.cpp
xiaohaijin/Qt
54d961c6a8123d8e4daf405b7996aba4be9ab7ed
[ "MIT" ]
null
null
null
ImportantExample/QIconEditorDemo/main.cpp
xiaohaijin/Qt
54d961c6a8123d8e4daf405b7996aba4be9ab7ed
[ "MIT" ]
1
2019-05-09T02:42:40.000Z
2019-05-09T02:42:40.000Z
#include "iconeditor.h" #include <QIcon> #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); QImage icon(":/images/mouse.png"); IconEditor w; w.setIconImage(icon); w.show(); return a.exec(); }
16.933333
38
0.629921
f29fee79be5f44a0dd5e04a95fd2201638ea63c1
4,862
cpp
C++
src/ECS/Systems/UpdateEntityPositionSystem.cpp
novuscore/NovusCore-World
4c0639e251cac9ae0cef601b814c575a1bfb4f2e
[ "MIT" ]
null
null
null
src/ECS/Systems/UpdateEntityPositionSystem.cpp
novuscore/NovusCore-World
4c0639e251cac9ae0cef601b814c575a1bfb4f2e
[ "MIT" ]
null
null
null
src/ECS/Systems/UpdateEntityPositionSystem.cpp
novuscore/NovusCore-World
4c0639e251cac9ae0cef601b814c575a1bfb4f2e
[ "MIT" ]
2
2021-12-20T22:16:11.000Z
2022-03-10T20:59:10.000Z
#include "UpdateEntityPositionSystem.h" #include <entt.hpp> #include <tracy/Tracy.hpp> #include <Utils/DebugHandler.h> #include "../../Utils/ServiceLocator.h" #include "../Components/Singletons/MapSingleton.h" #include "../Components/Network/ConnectionComponent.h" #include <Gameplay/Network/PacketWriter.h> #include <...
37.4
127
0.567668
f29feff2635c02f4971e24e5d2cf9f452cda5ce7
4,298
cc
C++
gpu/command_buffer/tests/gl_unallocated_texture_unittest.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
gpu/command_buffer/tests/gl_unallocated_texture_unittest.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
gpu/command_buffer/tests/gl_unallocated_texture_unittest.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <GLES2/gl2.h> #include <GLES2/gl2ext.h> #include <stddef.h> #include <stdint.h> #include "gpu/GLES2/gl2extchromium.h" #include "gpu/command_buff...
35.520661
79
0.744067
f2a21670e5d0d880491c390727879e089abf1476
7,027
cpp
C++
Operations/albaOpImporterLandmark.cpp
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
9
2018-11-19T10:15:29.000Z
2021-08-30T11:52:07.000Z
Operations/albaOpImporterLandmark.cpp
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
Operations/albaOpImporterLandmark.cpp
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
3
2018-06-10T22:56:29.000Z
2019-12-12T06:22:56.000Z
/*========================================================================= Program: ALBA (Agile Library for Biomedical Applications) Module: albaOpImporterLandmark Authors: Daniele Giunchi, Simone Brazzale Copyright (c) BIC All rights reserved. See Copyright.txt or This software is distributed WITHOUT ANY W...
25.18638
128
0.588587
f2a38d65b98167a68d5ffc9639eab636bee17c11
324
cpp
C++
cpp/example/src/ContainerWithMostH2O/containerWithMostH2O.cpp
zcemycl/algoTest
9518fb2b60fd83c85aeb2ab809ff647aaf643f0a
[ "MIT" ]
1
2022-01-26T16:33:45.000Z
2022-01-26T16:33:45.000Z
cpp/example/src/ContainerWithMostH2O/containerWithMostH2O.cpp
zcemycl/algoTest
9518fb2b60fd83c85aeb2ab809ff647aaf643f0a
[ "MIT" ]
null
null
null
cpp/example/src/ContainerWithMostH2O/containerWithMostH2O.cpp
zcemycl/algoTest
9518fb2b60fd83c85aeb2ab809ff647aaf643f0a
[ "MIT" ]
1
2022-01-26T16:35:44.000Z
2022-01-26T16:35:44.000Z
#include "containerWithMostH2O.h" int containerWithMostH2O::naive(vector<int>& height){ int l=0;int r=height.size()-1; int maxV = min(height[l],height[r])*r; while (l<r){ if (height[l]>=height[r])r-=1; else l+=1; maxV = max(maxV,min(height[l],height[r])*(r-l)); } return maxV...
24.923077
56
0.57716
f2a96756f9c5581c82820de3bde9780e0eaad7de
3,500
cpp
C++
09/smoke_basin.t.cpp
ComicSansMS/AdventOfCode2021
60902d14c356c3375266703e85aca991241afc84
[ "Unlicense" ]
null
null
null
09/smoke_basin.t.cpp
ComicSansMS/AdventOfCode2021
60902d14c356c3375266703e85aca991241afc84
[ "Unlicense" ]
null
null
null
09/smoke_basin.t.cpp
ComicSansMS/AdventOfCode2021
60902d14c356c3375266703e85aca991241afc84
[ "Unlicense" ]
null
null
null
#include <smoke_basin.hpp> #include <catch.hpp> #include <sstream> TEST_CASE("Smoke Basin") { char const sample_input[] = "2199943210" "\n" "3987894921" "\n" "9856789892" "\n" "8767896789" "\n" ...
31.25
69
0.369429
f2ae2ff61ab14da82b661a799256e159355fbb26
1,054
cpp
C++
Source/PracticeVeter/Characters/Animations/BaseCharacterAnimInstance.cpp
mile634/ExperimentalUE
20a7b13af43c79e7b53920b25b451da9212429e3
[ "MIT" ]
null
null
null
Source/PracticeVeter/Characters/Animations/BaseCharacterAnimInstance.cpp
mile634/ExperimentalUE
20a7b13af43c79e7b53920b25b451da9212429e3
[ "MIT" ]
null
null
null
Source/PracticeVeter/Characters/Animations/BaseCharacterAnimInstance.cpp
mile634/ExperimentalUE
20a7b13af43c79e7b53920b25b451da9212429e3
[ "MIT" ]
null
null
null
// Fill out your copyright notice in the Description page of Project Settings. #include "BaseCharacterAnimInstance.h" #include "PracticeVeter/Characters/BaseCharacter.h" #include "PracticeVeter/Components/MovementComponents/MyBaseCharacterMovementComponent.h" void UBaseCharacterAnimInstance::NativeBeginPlay() { Su...
31.939394
113
0.805503
f2b21addfdadd2d17c3507ad5a4b634ba8889390
741
cpp
C++
DataStructure/c++/Linked-list/Remove loop in Linked List.cpp
Sauradip07/DataStructures-and-Algorithm
d782e2e5cf2caedce7202c4aac43ee0ca3a0c285
[ "MIT" ]
17
2021-09-13T14:50:29.000Z
2022-01-07T10:53:35.000Z
DataStructure/c++/Linked-list/Remove loop in Linked List.cpp
Manish4Kumar/DataStructures-and-Algorithm
7f3b156af8b380a0a2785782e6437a6cc5835448
[ "MIT" ]
15
2021-10-01T04:13:32.000Z
2021-11-05T07:49:55.000Z
DataStructure/c++/Linked-list/Remove loop in Linked List.cpp
Manish4Kumar/DataStructures-and-Algorithm
7f3b156af8b380a0a2785782e6437a6cc5835448
[ "MIT" ]
11
2021-09-23T14:37:03.000Z
2021-11-04T13:22:17.000Z
Remove loop in Linked List : https://practice.geeksforgeeks.org/problems/remove-loop-in-linked-list/1# solution: void removeLoop(Node* head) { Node* low=head; Node* high=head; while(low!=NULL and high!=NULL and high->next!=NULL){ low=low->next; high=high-...
25.551724
102
0.453441
f2b290c54fb16b4f60d60b2c9d8596e02023abc1
2,542
cxx
C++
periphery/gpio.cxx
trotill/11parts_CPP
53a69d516fdcb5c92b591b5dadc49dfdd2a3b26b
[ "MIT" ]
null
null
null
periphery/gpio.cxx
trotill/11parts_CPP
53a69d516fdcb5c92b591b5dadc49dfdd2a3b26b
[ "MIT" ]
null
null
null
periphery/gpio.cxx
trotill/11parts_CPP
53a69d516fdcb5c92b591b5dadc49dfdd2a3b26b
[ "MIT" ]
null
null
null
/* * gpio.cxx * * Created on: 30 июля 2014 г. * Author: root */ #include "gpio.h" eErrorTp GpioInInit(u8 gpio) { string str; str= "echo \"" + intToString(gpio) + "\"> /sys/class/gpio/export"; printf("%s\n",str.c_str()); system(str.c_str()); str= "echo \"in\" > /sys/class/gpio/gpio"+intToString(gpio)+...
21.542373
103
0.623131
f2b2de4d4bf075da5c949471babdd2fb1f2affed
96
cpp
C++
Hololens_Demos/SpatialSoundPlayer/SpatialAudioPlayer.cpp
dvroegop/hololens_helpers
1d3f4cca336758e6a1a1e66739da770c9d936b59
[ "MIT" ]
null
null
null
Hololens_Demos/SpatialSoundPlayer/SpatialAudioPlayer.cpp
dvroegop/hololens_helpers
1d3f4cca336758e6a1a1e66739da770c9d936b59
[ "MIT" ]
null
null
null
Hololens_Demos/SpatialSoundPlayer/SpatialAudioPlayer.cpp
dvroegop/hololens_helpers
1d3f4cca336758e6a1a1e66739da770c9d936b59
[ "MIT" ]
null
null
null
#include "pch.h" #include "SpatialAudioPlayer.h" SpatialAudioPlayer::SpatialAudioPlayer() { }
12
40
0.760417
f2b73aff2628270efc7aad6f35bc915ff0db6efe
791
cpp
C++
test_storage.cpp
squeek502/sol2
f4434393ce820dca0bcbc3a5e74bd3100dbe51b9
[ "MIT" ]
1
2022-01-15T21:38:38.000Z
2022-01-15T21:38:38.000Z
test_storage.cpp
squeek502/sol2
f4434393ce820dca0bcbc3a5e74bd3100dbe51b9
[ "MIT" ]
null
null
null
test_storage.cpp
squeek502/sol2
f4434393ce820dca0bcbc3a5e74bd3100dbe51b9
[ "MIT" ]
null
null
null
#define SOL_CHECK_ARGUMENTS #include <catch.hpp> #include <sol.hpp> TEST_CASE("storage/registry=construction", "ensure entries from the registry can be retrieved") { const auto& script = R"( function f() return 2 end )"; sol::state lua; sol::function f = lua["f"]; sol::reference r = lua["f"]; sol::function ...
22.6
119
0.676359
f2bb6efe0f31897af8c8c46b56d5e298bf6d645d
385
hpp
C++
library/ATF/tagLITEM.hpp
lemkova/Yorozuya
f445d800078d9aba5de28f122cedfa03f26a38e4
[ "MIT" ]
29
2017-07-01T23:08:31.000Z
2022-02-19T10:22:45.000Z
library/ATF/tagLITEM.hpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
90
2017-10-18T21:24:51.000Z
2019-06-06T02:30:33.000Z
library/ATF/tagLITEM.hpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
44
2017-12-19T08:02:59.000Z
2022-02-24T23:15:01.000Z
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> START_ATF_NAMESPACE struct tagLITEM { unsigned int mask; int iLink; unsigned int state; unsigned int stateMask; wchar_t...
20.263158
108
0.657143
f2bcb1eb081756a5c394ddceead203a6b2b9a8fe
515
hpp
C++
Engine/Code/Engine/Math/Ray2.hpp
tonyatpeking/SmuSpecialTopic
b61d44e4efacb3c504847deb4d00234601bca49c
[ "MIT" ]
null
null
null
Engine/Code/Engine/Math/Ray2.hpp
tonyatpeking/SmuSpecialTopic
b61d44e4efacb3c504847deb4d00234601bca49c
[ "MIT" ]
null
null
null
Engine/Code/Engine/Math/Ray2.hpp
tonyatpeking/SmuSpecialTopic
b61d44e4efacb3c504847deb4d00234601bca49c
[ "MIT" ]
1
2019-10-02T01:48:54.000Z
2019-10-02T01:48:54.000Z
#pragma once #include "Engine/Math/Vec2.hpp" class Ray3; class Ray2 { public: // This is not normalized so that the Evaluate T will match with the 3D version static Ray2 FromRay3XZ( const Ray3& ray3 ); Ray2() {}; Ray2( const Vec2& point, const Vec2& dir ); ~Ray2() {}; void SetStartEnd( const ...
21.458333
83
0.642718
f2bec613e0307a903f3c93b54430727aa51028ac
583
cpp
C++
src/actions/ActionableObject.cpp
MiKlTA/Lust_The_Game
aabe4a951ffd7305526466d378ba8b6769c555e8
[ "MIT" ]
null
null
null
src/actions/ActionableObject.cpp
MiKlTA/Lust_The_Game
aabe4a951ffd7305526466d378ba8b6769c555e8
[ "MIT" ]
null
null
null
src/actions/ActionableObject.cpp
MiKlTA/Lust_The_Game
aabe4a951ffd7305526466d378ba8b6769c555e8
[ "MIT" ]
null
null
null
#include "Action.h" #include "ActionableObject.h" namespace lust { void ActionableObject::addAction(Action *action) { m_dependentActions.insert(action); } void ActionableObject::removeAction(const Action *action) { auto found = std::find( m_dependentActions.begin(), m_dependentActions.en...
15.342105
76
0.620926
f2c02db8e7fd5f2bcfd0e65349df14eaf893ed56
13,140
cpp
C++
src/parser/parser.cpp
toebsen/angreal
772f0b2499ef9b121322f80f2dacdb8754180c38
[ "MIT" ]
4
2020-08-30T21:10:47.000Z
2021-12-28T13:13:21.000Z
src/parser/parser.cpp
toebsen/angreal
772f0b2499ef9b121322f80f2dacdb8754180c38
[ "MIT" ]
12
2020-05-14T12:25:54.000Z
2021-08-01T11:01:23.000Z
src/parser/parser.cpp
toebsen/angreal
772f0b2499ef9b121322f80f2dacdb8754180c38
[ "MIT" ]
null
null
null
// // Created by bichlmaier on 07.02.2020. // #include "parser.h" namespace angreal::parser { Parser::Parser(const error_handler_t& error_handler) : error_handler_(error_handler) {} template <typename Type, typename... Args> std::shared_ptr<Type> Parser::MakeASTNode(Args&&... args) { { ...
31.211401
81
0.59863
f2c03315b9f772048e9285a63a30d5021f782a3e
1,800
cpp
C++
client/src/user_interface/game_over.cpp
dima1997/PORTAL_2D_copy
7618d970feded3fc05fda0c422a5d76a1d3056c7
[ "MIT" ]
null
null
null
client/src/user_interface/game_over.cpp
dima1997/PORTAL_2D_copy
7618d970feded3fc05fda0c422a5d76a1d3056c7
[ "MIT" ]
null
null
null
client/src/user_interface/game_over.cpp
dima1997/PORTAL_2D_copy
7618d970feded3fc05fda0c422a5d76a1d3056c7
[ "MIT" ]
null
null
null
#include "../../includes/user_interface/game_over.h" #include "ui_GameOver.h" #include "../../includes/threads/play_result.h" #include <QWidget> #include <QDesktopWidget> #include <string> #define WINDOW_WIDTH 640 #define WINDOW_HEIGHT 480 /* PRE: Recibe un resultado de juego. POST:Iniicaliza una ventana de fin d...
28.571429
80
0.707778
f2c0b8fb27d8d25f924b9a57f850141d94ee4687
9,663
cp
C++
MacOS/Sources/Application/Preferences_Dialog/Sub-panels/Account_Panels/Authentication_Panels/CPrefsAccountAuth.cp
mulberry-mail/mulberry4-client
cdaae15c51dd759110b4fbdb2063d0e3d5202103
[ "ECL-2.0", "Apache-2.0" ]
12
2015-04-21T16:10:43.000Z
2021-11-05T13:41:46.000Z
MacOS/Sources/Application/Preferences_Dialog/Sub-panels/Account_Panels/Authentication_Panels/CPrefsAccountAuth.cp
mulberry-mail/mulberry4-client
cdaae15c51dd759110b4fbdb2063d0e3d5202103
[ "ECL-2.0", "Apache-2.0" ]
2
2015-11-02T13:32:11.000Z
2019-07-10T21:11:21.000Z
MacOS/Sources/Application/Preferences_Dialog/Sub-panels/Account_Panels/Authentication_Panels/CPrefsAccountAuth.cp
mulberry-mail/mulberry4-client
cdaae15c51dd759110b4fbdb2063d0e3d5202103
[ "ECL-2.0", "Apache-2.0" ]
6
2015-01-12T08:49:12.000Z
2021-03-27T09:11:10.000Z
/* Copyright (c) 2007 Cyrus Daboo. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless re...
26.841667
107
0.732381
f2c10f99fbebf3fd599e1bcd8fd28bbbfa8ac15a
676
cpp
C++
binary-tree/check-if-subtree.cpp
Strider-7/code
e096c0d0633b53a07bf3f295cb3bd685b694d4ce
[ "MIT" ]
null
null
null
binary-tree/check-if-subtree.cpp
Strider-7/code
e096c0d0633b53a07bf3f295cb3bd685b694d4ce
[ "MIT" ]
null
null
null
binary-tree/check-if-subtree.cpp
Strider-7/code
e096c0d0633b53a07bf3f295cb3bd685b694d4ce
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; struct Node { int data; Node *left; Node *right; Node(int x) { data = x; left = nullptr; right = nullptr; } }; bool isIdentical(Node* T, Node* S) { if (!T && !S) return true; if (!T || !S...
18.27027
99
0.486686
f2c43230a7babcb209a2c7b93636ad6da4111bc2
755
cpp
C++
ReeeEngine/src/ReeeEngine/Rendering/Context/SampleState.cpp
Lewisscrivens/ReeeEngine
abb31ef7e1adb553fafe02c4f9bd60ceb520acbf
[ "MIT" ]
null
null
null
ReeeEngine/src/ReeeEngine/Rendering/Context/SampleState.cpp
Lewisscrivens/ReeeEngine
abb31ef7e1adb553fafe02c4f9bd60ceb520acbf
[ "MIT" ]
null
null
null
ReeeEngine/src/ReeeEngine/Rendering/Context/SampleState.cpp
Lewisscrivens/ReeeEngine
abb31ef7e1adb553fafe02c4f9bd60ceb520acbf
[ "MIT" ]
null
null
null
#include "SampleState.h" namespace ReeeEngine { SampleState::SampleState(Graphics& graphics) { // Create sampler default options for UV read type. D3D11_SAMPLER_DESC samplerOptions = {}; samplerOptions.Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR; samplerOptions.AddressU = D3D11_TEXTURE_ADDRESS_WRAP; samplerOp...
31.458333
86
0.778808
f2c4b177991326df24f69a82d0f92a72c44a23c9
3,632
cpp
C++
03/minik/src/target_x86/x86_conv.cpp
nokia-wroclaw/nokia-book
dd397958b5db039a2f53e555c2becfc419065264
[ "MIT" ]
104
2015-06-30T07:41:42.000Z
2022-02-28T08:56:37.000Z
03/minik/src/target_x86/x86_conv.cpp
nokia-wroclaw/nokia-book
dd397958b5db039a2f53e555c2becfc419065264
[ "MIT" ]
null
null
null
03/minik/src/target_x86/x86_conv.cpp
nokia-wroclaw/nokia-book
dd397958b5db039a2f53e555c2becfc419065264
[ "MIT" ]
22
2015-06-11T14:40:49.000Z
2021-12-27T19:13:11.000Z
#include "analysis/control_flow_graph.hpp" #include "analysis/live_variables.hpp" #include "ir/ir_printer.hpp" #include "x86_assembler.hpp" #include "x86_conv.hpp" #include "utils/headers.hpp" #include <list> #include <iostream> namespace { Ir::Block rewrite_block(SymbolTable &st, const Ir::Block &_block) { Ir:...
27.725191
122
0.528359
f2c4dc83ec8d1f9807509068206be97a0cce3eb0
407
cc
C++
examples/Example3/main.cc
stognini/AdePT
9a106b83f421938ad8f4d8567d199c84f339e6c9
[ "Apache-2.0" ]
null
null
null
examples/Example3/main.cc
stognini/AdePT
9a106b83f421938ad8f4d8567d199c84f339e6c9
[ "Apache-2.0" ]
null
null
null
examples/Example3/main.cc
stognini/AdePT
9a106b83f421938ad8f4d8567d199c84f339e6c9
[ "Apache-2.0" ]
null
null
null
// SPDX-FileCopyrightText: 2020 CERN // SPDX-License-Identifier: Apache-2.0 #include "common.h" #include "loop.h" #include <iostream> int main(int argc, char **argv) { if (argc != 2) { std::cout << "Usage: " << argv[0] << " nparticles" << std::endl; return 0; } int nparticles = std::atoi(argv[1]); #ifndef _...
15.653846
66
0.653563
f2d318974ca25caa783bfda28c4121b7d15a1c02
354
cpp
C++
src/L/L1226.cpp
wlhcode/lscct
7fd112a9d1851ddcf41886d3084381a52e84a3ce
[ "MIT" ]
null
null
null
src/L/L1226.cpp
wlhcode/lscct
7fd112a9d1851ddcf41886d3084381a52e84a3ce
[ "MIT" ]
null
null
null
src/L/L1226.cpp
wlhcode/lscct
7fd112a9d1851ddcf41886d3084381a52e84a3ce
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; string s; string o; main(){ long long a; bool first=true; cin>>a; s+=to_string(a); sort(s.begin(),s.end()); for(int i=2;i<=9;i++){ o.clear(); o+=to_string(a*i); sort(o.begin(),o.end()); if(s==o){ if(!first) cout<<" "; cout<<i; first=false; } } if(f...
14.16
26
0.553672
f2d7680e1d2d38fcd1f235c4d44731acfc3b1834
11,285
hpp
C++
src/core/TChem_KineticModelGasConstData.hpp
sandialabs/TChem
c9d00d7d283c8687a5aa4549161e29a08d3d39d6
[ "BSD-2-Clause" ]
30
2020-10-28T08:07:36.000Z
2022-03-29T15:22:30.000Z
src/core/TChem_KineticModelGasConstData.hpp
sandialabs/TChem
c9d00d7d283c8687a5aa4549161e29a08d3d39d6
[ "BSD-2-Clause" ]
2
2021-02-22T21:47:47.000Z
2022-03-16T16:38:07.000Z
src/core/TChem_KineticModelGasConstData.hpp
sandialabs/TChem
c9d00d7d283c8687a5aa4549161e29a08d3d39d6
[ "BSD-2-Clause" ]
10
2020-10-28T01:11:41.000Z
2021-06-16T08:15:28.000Z
/* ===================================================================================== TChem version 2.0 Copyright (2020) NTESS https://github.com/sandialabs/TChem Copyright 2020 National Technology & Engineering Solutions of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Governme...
38.780069
104
0.718121
f2dddfbc6249d58b917232fc7819daa05d380ca0
1,276
hpp
C++
include/tdc/util/lcp.hpp
herlez/tdc
3b85ae183c21410e65f1e739736287df46c38d1d
[ "MIT" ]
1
2021-05-06T13:39:22.000Z
2021-05-06T13:39:22.000Z
include/tdc/util/lcp.hpp
herlez/tdc
3b85ae183c21410e65f1e739736287df46c38d1d
[ "MIT" ]
1
2020-03-07T08:05:20.000Z
2020-03-07T08:05:20.000Z
include/tdc/util/lcp.hpp
herlez/tdc
3b85ae183c21410e65f1e739736287df46c38d1d
[ "MIT" ]
2
2020-05-27T07:54:43.000Z
2021-11-18T13:29:14.000Z
#pragma once namespace tdc { /// \brief Computes the LCP array from the suffix array using Kasai's algorithm. /// \tparam char_t the character type /// \tparam idx_t the suffix/LCP array entry type /// \param text the input text, assuming to be zero-terminated /// \param n the length of the input text including the z...
29
111
0.554859
f2de2cd3f4565129763b927dfd000cad5c946085
58
hpp
C++
src/boost_mpl_aux__preprocessed_no_ctps_vector.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
10
2018-03-17T00:58:42.000Z
2021-07-06T02:48:49.000Z
src/boost_mpl_aux__preprocessed_no_ctps_vector.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
2
2021-03-26T15:17:35.000Z
2021-05-20T23:55:08.000Z
src/boost_mpl_aux__preprocessed_no_ctps_vector.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
4
2019-05-28T21:06:37.000Z
2021-07-06T03:06:52.000Z
#include <boost/mpl/aux_/preprocessed/no_ctps/vector.hpp>
29
57
0.810345
f2deba7cbaf90053e5c47ad9cee572e1fc63afc3
18,693
cpp
C++
src/lua/state.cpp
degarashi/revenant
9e671320a5c8790f6bdd1b14934f81c37819f7b3
[ "MIT" ]
null
null
null
src/lua/state.cpp
degarashi/revenant
9e671320a5c8790f6bdd1b14934f81c37819f7b3
[ "MIT" ]
null
null
null
src/lua/state.cpp
degarashi/revenant
9e671320a5c8790f6bdd1b14934f81c37819f7b3
[ "MIT" ]
null
null
null
#include "lcv.hpp" #include "lvalue.hpp" #include "../sdl/rw.hpp" #include "../apppath.hpp" #include "rewindtop.hpp" #include "lubee/src/freelist.hpp" extern "C" { #include <lauxlib.h> #include <lualib.h> } namespace rev { // ----------------- LuaState::Exceptions ----------------- LuaState::EBase::EBase(const std...
27.530191
102
0.658375
f2e0665b349d0a8c37d7175641a280c3b4fb2069
4,199
cpp
C++
runChip-8/main.cpp
badlydrawnrod/Chip-8
a31b30af5eb6a3948831a951c230c1b967cc3a7e
[ "Apache-2.0" ]
null
null
null
runChip-8/main.cpp
badlydrawnrod/Chip-8
a31b30af5eb6a3948831a951c230c1b967cc3a7e
[ "Apache-2.0" ]
null
null
null
runChip-8/main.cpp
badlydrawnrod/Chip-8
a31b30af5eb6a3948831a951c230c1b967cc3a7e
[ "Apache-2.0" ]
null
null
null
#include <fstream> #include <iostream> #include <memory> #include <SDL.h> #include <libChip-8/include/chip8vm.hpp> using namespace std; // Screen dimensions. const int SCALING = 16; const int SCREEN_WIDTH = Chip8VM::SCREEN_WIDTH * SCALING; const int SCREEN_HEIGHT = Chip8VM::SCREEN_HEIGHT * SCALING; enum { SUCCEED...
23.327778
133
0.69326
f2e7dfd0dc05993a7fe9ccf12d63dcea44e78dc0
412
cc
C++
src/code_complete_cache.cc
Gei0r/cquery
6ff8273e8b8624016f9363f444acfee30c4bbf64
[ "MIT" ]
null
null
null
src/code_complete_cache.cc
Gei0r/cquery
6ff8273e8b8624016f9363f444acfee30c4bbf64
[ "MIT" ]
null
null
null
src/code_complete_cache.cc
Gei0r/cquery
6ff8273e8b8624016f9363f444acfee30c4bbf64
[ "MIT" ]
null
null
null
#include "code_complete_cache.h" void CodeCompleteCache::WithLock(std::function<void()> action) { std::lock_guard<std::mutex> lock(mutex_); action(); } bool CodeCompleteCache::IsCacheValid(lsTextDocumentPositionParams position) { std::lock_guard<std::mutex> lock(mutex_); return cached_path_ == position.textDo...
34.333333
77
0.759709
f2e9881742fc1b942ac3a60416ebf51b41d9dfbe
829
cpp
C++
Olamundo/freq_0502/main.cpp
tosantos1/LIP
7dbc045afa02729f4e2f2f1d3b29baebf5be72ad
[ "MIT" ]
null
null
null
Olamundo/freq_0502/main.cpp
tosantos1/LIP
7dbc045afa02729f4e2f2f1d3b29baebf5be72ad
[ "MIT" ]
null
null
null
Olamundo/freq_0502/main.cpp
tosantos1/LIP
7dbc045afa02729f4e2f2f1d3b29baebf5be72ad
[ "MIT" ]
null
null
null
#include <iostream> /*Ordenação por referência  Complete o programa dado para que com apenas uma chamada para o procedimento ordenarTres, os valores das variáveis a, b e c sejam colocados em ordem crescente. Note que nenhuma alteração da função main nem do procedimento ordenarTres é necessária.*/ using namespace std...
18.840909
102
0.640531
f2e9b05f3c16a26d7f319ac7e9a8750d8943d941
8,390
cpp
C++
Testbeds/GTests/twEventTest.cpp
microqq/TwinkleGraphics
e3975dc6dad5b6b8d5db1d54e30e815072db162e
[ "MIT" ]
null
null
null
Testbeds/GTests/twEventTest.cpp
microqq/TwinkleGraphics
e3975dc6dad5b6b8d5db1d54e30e815072db162e
[ "MIT" ]
1
2020-07-03T03:13:39.000Z
2020-07-03T03:13:39.000Z
Testbeds/GTests/twEventTest.cpp
microqq/TwinkleGraphics
e3975dc6dad5b6b8d5db1d54e30e815072db162e
[ "MIT" ]
null
null
null
#include <functional> #include <string> #include <gtest/gtest.h> #include "twEventHandler.h" #include "twEventManager.h" #include "twConsoleLog.h" using namespace TwinkleGraphics; class SampleListener { public: SampleListener(){} ~SampleListener(){} void OnBaseEvent(Object::Ptr sender, BaseEventArgs::P...
33.031496
152
0.682956
f2eb90d197927bf0fca32e905d2d4bdd65d653b2
10,624
cpp
C++
src/pyscal/atom.cpp
srmnitc/SteinhardtTools
b73865bbc35e88773126a952be653e382e5fbf3c
[ "BSD-3-Clause" ]
22
2019-10-17T13:21:19.000Z
2021-07-06T12:11:21.000Z
src/pyscal/atom.cpp
aazocar/pyscal
d0a393fc0462fdc6d23599a9e2bcc85ac9b212b2
[ "BSD-3-Clause" ]
68
2019-09-07T22:28:06.000Z
2021-10-17T15:24:23.000Z
src/pyscal/atom.cpp
aazocar/pyscal
d0a393fc0462fdc6d23599a9e2bcc85ac9b212b2
[ "BSD-3-Clause" ]
10
2019-11-01T20:29:07.000Z
2021-10-04T19:09:29.000Z
#include "atom.h" #include <iostream> #include <iomanip> #include <algorithm> #include <stdio.h> #include "string.h" #include <chrono> #include <pybind11/stl.h> #include <complex> //------------------------------------------------------- // Constructor, Destructor //----------------------------------------...
23.400881
76
0.483622
f2edbea3f6ac2b4c696a67227a8cf853d76b3482
4,716
cpp
C++
src/vi/vi_db.cpp
liulixinkerry/ripple
330522a61bcf1cf290c100ce4686ed62dcdc5cab
[ "Unlicense" ]
7
2021-01-25T04:28:38.000Z
2021-11-20T04:14:14.000Z
src/vi/vi_db.cpp
Xingquan-Li/ripple
330522a61bcf1cf290c100ce4686ed62dcdc5cab
[ "Unlicense" ]
3
2021-02-25T08:13:41.000Z
2022-02-25T16:37:16.000Z
src/vi/vi_db.cpp
Xingquan-Li/ripple
330522a61bcf1cf290c100ce4686ed62dcdc5cab
[ "Unlicense" ]
8
2021-02-27T13:52:25.000Z
2021-11-15T08:01:02.000Z
#include "../db/db.h" using namespace db; #include "vi.h" using namespace vi; #include "../ut/utils.h" void Geometry::draw(Visualizer* v, const Layer& L) const { if ((L.rIndex >= 0 || L.cIndex >= 0) && layer != L) { return; } if (layer.rIndex >= 0) { v->setFillColor(v->scheme.metalFill[l...
28.756098
84
0.516327
f2ef082ffdb2d2c0b7d783d0c5183936fe35c4aa
543
hpp
C++
OptionsState.hpp
nathiss/ticTacToe
e51866b66dda3fe92e82450a7732ad175eb1c96c
[ "MIT" ]
null
null
null
OptionsState.hpp
nathiss/ticTacToe
e51866b66dda3fe92e82450a7732ad175eb1c96c
[ "MIT" ]
null
null
null
OptionsState.hpp
nathiss/ticTacToe
e51866b66dda3fe92e82450a7732ad175eb1c96c
[ "MIT" ]
null
null
null
#pragma once #include <array> #include <SFML/Graphics.hpp> #include "State.hpp" #include "SettingsBag.hpp" #include "MapCell.hpp" class OptionsState : public State { public: OptionsState(std::shared_ptr<sf::RenderWindow>); ~OptionsState(); static uint8_t player; static uint8_t computer; virtua...
20.884615
52
0.694291
f2f3834523da7253561a9831549f255536882d88
4,689
inl
C++
include/quadtree.inl
MaxAlzner/libtree
80501e15fdec77e1f1824b46ebd3ae1c1cedd7f8
[ "MIT" ]
null
null
null
include/quadtree.inl
MaxAlzner/libtree
80501e15fdec77e1f1824b46ebd3ae1c1cedd7f8
[ "MIT" ]
null
null
null
include/quadtree.inl
MaxAlzner/libtree
80501e15fdec77e1f1824b46ebd3ae1c1cedd7f8
[ "MIT" ]
null
null
null
#pragma once template <typename T> inline bool quadnode_t<T>::empty() const { return this->_tree == 0 || this->_ring < 0 || this->_branch < 0; } template <typename T> inline size_t quadnode_t<T>::index() const { return tree_index(this->_ring, this->_branch, 4); } template <typename T> inline quaditerator_t<T> quad...
26.342697
126
0.656856
f2f99b32899966a08f5aa199583f70adc9ac009d
3,575
tcc
C++
src/utils/json/parser.tcc
unbornchikken/reflect-cpp
1a9a3d107c952406d3b7cae4bc5a6a23d566ea4f
[ "BSD-2-Clause" ]
45
2015-03-24T09:35:46.000Z
2021-05-06T11:50:34.000Z
src/utils/json/parser.tcc
unbornchikken/reflect-cpp
1a9a3d107c952406d3b7cae4bc5a6a23d566ea4f
[ "BSD-2-Clause" ]
null
null
null
src/utils/json/parser.tcc
unbornchikken/reflect-cpp
1a9a3d107c952406d3b7cae4bc5a6a23d566ea4f
[ "BSD-2-Clause" ]
11
2015-01-27T12:08:21.000Z
2020-08-29T16:34:13.000Z
/* parser.tcc -*- C++ -*- Rémi Attab (remi.attab@gmail.com), 12 Apr 2015 FreeBSD-style copyright and disclaimer apply */ #include "json.h" #pragma once namespace reflect { namespace json { /******************************************************************************/ /* GENER...
23.064516
80
0.53958
f2f9f2b8b37680de67e251215bbab012254aa65a
290
hpp
C++
src/Game.hpp
ara159/snake
c65b25ab50a4b867f941c0a5406a11071ff80b78
[ "MIT" ]
null
null
null
src/Game.hpp
ara159/snake
c65b25ab50a4b867f941c0a5406a11071ff80b78
[ "MIT" ]
null
null
null
src/Game.hpp
ara159/snake
c65b25ab50a4b867f941c0a5406a11071ff80b78
[ "MIT" ]
null
null
null
#ifndef GAME_H #define GAME_H 1 #include "SFML/Graphics.hpp" #include "Snake.hpp" using namespace sf; class Game { private: RenderWindow * window; void run(); void event_handler(); void draw(); Snake snake; public: Game(); ~Game(); void start(); }; #endif
13.181818
28
0.627586
f2fa9b0bf14591422adab530b477db47bd3dab0a
14,020
cpp
C++
Source/Native/MouriOptimizationPlugin/MoManageCompactOS.cpp
bryanwills/NSudo
54ebd8092c3b2d4a89576d669ed123e23651ae77
[ "MIT" ]
1,363
2016-06-30T07:16:09.000Z
2022-03-30T09:50:08.000Z
Source/Native/MouriOptimizationPlugin/MoManageCompactOS.cpp
bryanwills/NSudo
54ebd8092c3b2d4a89576d669ed123e23651ae77
[ "MIT" ]
70
2017-04-29T11:17:33.000Z
2022-03-26T06:31:11.000Z
Source/Native/MouriOptimizationPlugin/MoManageCompactOS.cpp
bryanwills/NSudo
54ebd8092c3b2d4a89576d669ed123e23651ae77
[ "MIT" ]
206
2016-07-03T02:22:05.000Z
2022-03-25T02:47:24.000Z
/* * PROJECT: Mouri Optimization Plugin * FILE: MoManageCompactOS.cpp * PURPOSE: Implementation for Manage Compact OS * * LICENSE: The MIT License * * DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com) */ #include "MouriOptimizationPlugin.h" #include <string> #include <vector> namespace { ...
32.155963
79
0.414194
f2ffc7cc13c60374f92699e9abddec3f51196fdc
3,184
cpp
C++
dynamic programming/dp3-27 gfg-leetcode/dp3 - 300. Longest Increasing Subsequence.cpp
ankithans/dsa
32aeeff1b4eeebcc8c18fdb1b95ee1dd123f8443
[ "MIT" ]
1
2021-09-16T07:01:46.000Z
2021-09-16T07:01:46.000Z
dynamic programming/dp3-27 gfg-leetcode/dp3 - 300. Longest Increasing Subsequence.cpp
ankithans/dsa
32aeeff1b4eeebcc8c18fdb1b95ee1dd123f8443
[ "MIT" ]
null
null
null
dynamic programming/dp3-27 gfg-leetcode/dp3 - 300. Longest Increasing Subsequence.cpp
ankithans/dsa
32aeeff1b4eeebcc8c18fdb1b95ee1dd123f8443
[ "MIT" ]
1
2021-10-19T06:48:48.000Z
2021-10-19T06:48:48.000Z
// 0 1 2 3 4 5 6 7 // [10,9,2,5,3,7,101,18] // o/p = 4 [2,3,7,101] // idx -> f -> LIS // (0, []) // 2 (1, [10]) (1, []) // (2,[10]) (2,[9]) (2,[]) // (3,[10]) ...
26.983051
143
0.47142
f2ffca4a66451085ebad8884a6f3a40914c630c0
759
cpp
C++
src/506.cpp
MoRunChang2015/LeetCode
d046083b952811dfbf5f8fb646060836a3e937ce
[ "Apache-2.0" ]
null
null
null
src/506.cpp
MoRunChang2015/LeetCode
d046083b952811dfbf5f8fb646060836a3e937ce
[ "Apache-2.0" ]
null
null
null
src/506.cpp
MoRunChang2015/LeetCode
d046083b952811dfbf5f8fb646060836a3e937ce
[ "Apache-2.0" ]
null
null
null
class Solution { public: vector<string> findRelativeRanks(vector<int>& nums) { vector<pair<int, int>> v; for (int i = 0; i < nums.size(); ++i) { v.push_back({nums[i], i}); } sort(v.begin(), v.end()); vector<string> ans(nums.size()); for (int i = 0; i < num...
31.625
62
0.417655
8402cf8233496ce59dc4677557df3e787ed7dc5c
7,948
cc
C++
src/comm/communicator_collective.cc
akkaze/rdc
76e85e3fe441e3ba968a190d9496f467b9d4d2e6
[ "BSD-3-Clause" ]
52
2018-10-08T01:56:15.000Z
2021-03-14T12:19:51.000Z
src/comm/communicator_collective.cc
akkaze/rdc
76e85e3fe441e3ba968a190d9496f467b9d4d2e6
[ "BSD-3-Clause" ]
null
null
null
src/comm/communicator_collective.cc
akkaze/rdc
76e85e3fe441e3ba968a190d9496f467b9d4d2e6
[ "BSD-3-Clause" ]
3
2019-01-02T05:17:28.000Z
2020-01-06T03:53:12.000Z
#include "comm/communicator_base.h" #include "comm/communicator_manager.h" namespace rdc { namespace comm { void Communicator::TryAllreduce(Buffer sendrecvbuf, ReduceFunction reducer) { if (sendrecvbuf.size_in_bytes() > CommunicatorManager::Get()->reduce_ring_mincount()) { return this->TryAllreduce...
38.582524
78
0.612355
8404279ffd536f25360485833c7e0df1f9a555f5
2,249
cpp
C++
src/minhook_api.cpp
MG4vQIs7Fv/PerformanceOverhaulCyberpunk
4fb6e34752ce7c286357cf148d0b4096d4ca32ea
[ "MIT" ]
26
2019-10-28T00:14:18.000Z
2022-03-05T22:26:46.000Z
src/minhook_api.cpp
MG4vQIs7Fv/PerformanceOverhaulCyberpunk
4fb6e34752ce7c286357cf148d0b4096d4ca32ea
[ "MIT" ]
null
null
null
src/minhook_api.cpp
MG4vQIs7Fv/PerformanceOverhaulCyberpunk
4fb6e34752ce7c286357cf148d0b4096d4ca32ea
[ "MIT" ]
7
2019-10-28T03:21:19.000Z
2022-03-25T11:05:43.000Z
#include "common.hpp" #include "minhook_api.hpp" #include "minhook.h" namespace minhook_api { #if defined(USE_MINHOOK) && (USE_MINHOOK == 1) void init() { if(MH_Initialize() != MH_OK) { DEBUG_TRACE("MH_Initialize : failed\n"); } } void cleanup() { MH_Uninitialize(); } #else void init() {} void cl...
28.833333
142
0.638061
8405943d2334623503f09655d041c70e5d8bc794
483
cpp
C++
C++ STL Programming/C++_STL_Programming/Operator_Overloading/06_PlusOperatorFuncion.cpp
devgunho/Cpp_AtoZ
4d87f22671a4eab06ca35b32c9b7f8f9abadb2bc
[ "MIT" ]
1
2022-03-25T06:11:06.000Z
2022-03-25T06:11:06.000Z
C++ STL Programming/C++_STL_Programming/Operator_Overloading/06_PlusOperatorFuncion.cpp
devgunho/Cpp_AtoZ
4d87f22671a4eab06ca35b32c9b7f8f9abadb2bc
[ "MIT" ]
null
null
null
C++ STL Programming/C++_STL_Programming/Operator_Overloading/06_PlusOperatorFuncion.cpp
devgunho/Cpp_AtoZ
4d87f22671a4eab06ca35b32c9b7f8f9abadb2bc
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; class Point { int x; int y; public: Point(int _x = 0, int _y = 0) :x(_x), y(_y) {} void Print() const { cout << x << ',' << y << endl; } const Point operator+(const Point& arg) const { Point pt; pt.x = this->x + arg.x; pt.y = this->y + arg.y; return pt; } }; in...
16.1
54
0.554865
8406a1d0255cf5abbe189d3c0beeb27a9a93973a
389
hpp
C++
src/firmware/src/websocket/socket_server.hpp
geaz/tableDisco
1f081a0372da835150881da245dc69d97dcaabe3
[ "MIT" ]
1
2020-05-26T01:45:04.000Z
2020-05-26T01:45:04.000Z
src/firmware/src/websocket/socket_server.hpp
geaz/tableDisco
1f081a0372da835150881da245dc69d97dcaabe3
[ "MIT" ]
null
null
null
src/firmware/src/websocket/socket_server.hpp
geaz/tableDisco
1f081a0372da835150881da245dc69d97dcaabe3
[ "MIT" ]
null
null
null
#pragma once #ifndef SOCKETSERVER_H #define SOCKETSERVER_H #include <WebSocketsServer.h> namespace TableDisco { class SocketServer { public: SocketServer(); void loop(); void broadcast(String data); private: WebSocketsServer...
17.681818
62
0.586118
8406dca80a0a5d0c040e297255c6eae5b07d4f27
2,391
cpp
C++
src/index_handler/index_file_handler.cpp
robinren03/database2021
50074b6fdab2bcd5d4c95870f247cfb430804081
[ "Apache-2.0" ]
null
null
null
src/index_handler/index_file_handler.cpp
robinren03/database2021
50074b6fdab2bcd5d4c95870f247cfb430804081
[ "Apache-2.0" ]
null
null
null
src/index_handler/index_file_handler.cpp
robinren03/database2021
50074b6fdab2bcd5d4c95870f247cfb430804081
[ "Apache-2.0" ]
1
2022-01-11T08:20:41.000Z
2022-01-11T08:20:41.000Z
#include "index_file_handler.h" #include <assert.h> IndexFileHandler::IndexFileHandler(BufManager* _bm){ bm = _bm; header = new IndexFileHeader; } void IndexFileHandler::openFile(const char* fileName){ fileID = bm->openFile(fileName); int headerIndex; if (fileID == -1){ bm->createFile(fileN...
29.158537
98
0.634044
840c144708b1a8d9abcb758af72c07ae85187df7
2,833
cpp
C++
misc/fexcept/execdump/xxlib/Std/mu_case.cpp
MKadaner/FarManager
c99a14c12e3481dd25ce71451ecd264656f631bb
[ "BSD-3-Clause" ]
1,256
2015-07-07T12:19:17.000Z
2022-03-31T18:41:41.000Z
misc/fexcept/execdump/xxlib/Std/mu_case.cpp
MKadaner/FarManager
c99a14c12e3481dd25ce71451ecd264656f631bb
[ "BSD-3-Clause" ]
305
2017-11-01T18:58:50.000Z
2022-03-22T11:07:23.000Z
misc/fexcept/execdump/xxlib/Std/mu_case.cpp
MKadaner/FarManager
c99a14c12e3481dd25ce71451ecd264656f631bb
[ "BSD-3-Clause" ]
183
2017-10-28T11:31:14.000Z
2022-03-30T16:46:24.000Z
#include <all_lib.h> #pragma hdrstop #if defined(__MYPACKAGE__) #pragma package(smart_init) #endif #if !defined(__HWIN__) static char *lwrChars = "йцукенгшщзхъфывапролджэячсмитьбю"; static char *uprChars = "ЙЦУКЕНГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ"; char MYRTLEXP ToUpper( char ch ) { if ( ch >= 'A' && ch <= 'Z' ) retu...
24.850877
68
0.491705
840cc9b4774d397c3f63b506e10cd5e32c5a3893
655
cpp
C++
test.cpp
ZaMaZaN4iK/iex_example
57717f34f39ceadf1407bdd6b925f6b8c894533c
[ "MIT" ]
1
2020-04-25T14:16:03.000Z
2020-04-25T14:16:03.000Z
test.cpp
ZaMaZaN4iK/iex_example
57717f34f39ceadf1407bdd6b925f6b8c894533c
[ "MIT" ]
null
null
null
test.cpp
ZaMaZaN4iK/iex_example
57717f34f39ceadf1407bdd6b925f6b8c894533c
[ "MIT" ]
1
2020-04-25T14:17:49.000Z
2020-04-25T14:17:49.000Z
#define CATCH_CONFIG_MAIN #include <catch.hpp> #include "CompanyPriceDataStorage.h" /* That's a sample test case */ TEST_CASE( "Company price data is stored and selecte3d", "[storage]" ) { CompanyPriceData etalonData{0, "1", "2", "3", "4"} CompanyPriceDataStorage storage("test.db"); const int id = stora...
32.75
72
0.732824
8411ec0587bd6d49d94bee2f8e3e0d32ae5148d6
5,231
cpp
C++
source/options/OptionDialog.cpp
Mauzerov/wxPacman
9fe599b1588d6143ff563ae8a3e5c2f31f69a5c3
[ "Unlicense" ]
1
2021-05-02T10:38:03.000Z
2021-05-02T10:38:03.000Z
source/options/OptionDialog.cpp
Mauzerov/wxPacman
9fe599b1588d6143ff563ae8a3e5c2f31f69a5c3
[ "Unlicense" ]
null
null
null
source/options/OptionDialog.cpp
Mauzerov/wxPacman
9fe599b1588d6143ff563ae8a3e5c2f31f69a5c3
[ "Unlicense" ]
null
null
null
#include "OptionDialog.h" #include <iostream> //(*InternalHeaders(OptionDialog) #include <wx/font.h> #include <wx/intl.h> #include <wx/settings.h> #include <wx/string.h> //*) //(*IdInit(OptionDialog) const long OptionDialog::ID_BUTTONSAVE = wxNewId(); const long OptionDialog::ID_KEYCHOICE = wxNewId(); const l...
52.31
182
0.761422