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
92fd3892f8ba4a2fc53f95059b82150b7caf1a3e
1,248
hpp
C++
extensions/cli/src/basic_interactive_terminal.hpp
pxscope-swkang/perfkit
a30b56fdeb6975dbd253e85da5f79865d16d9d80
[ "MIT" ]
null
null
null
extensions/cli/src/basic_interactive_terminal.hpp
pxscope-swkang/perfkit
a30b56fdeb6975dbd253e85da5f79865d16d9d80
[ "MIT" ]
null
null
null
extensions/cli/src/basic_interactive_terminal.hpp
pxscope-swkang/perfkit
a30b56fdeb6975dbd253e85da5f79865d16d9d80
[ "MIT" ]
1
2021-08-28T07:10:56.000Z
2021-08-28T07:10:56.000Z
// // Created by Seungwoo on 2021-09-25. // #pragma once #include <future> #include <list> #include "perfkit/common/circular_queue.hxx" #include "perfkit/detail/commands.hpp" #include "perfkit/terminal.h" namespace perfkit { class basic_interactive_terminal : public if_terminal { public: basic_interactive_ter...
27.130435
76
0.713942
pxscope-swkang
1300a0b256fdbdf6885168d3e2471b63795ca7dd
13,964
cpp
C++
src/client/communication/client_protocol.cpp
Santoi/quantum-chess
a2f5a0f322c6aa51488c52c8ebacbe0ad75ca9f9
[ "MIT" ]
9
2021-12-22T02:10:34.000Z
2021-12-30T17:14:25.000Z
src/client/communication/client_protocol.cpp
Santoi/quantum-chess
a2f5a0f322c6aa51488c52c8ebacbe0ad75ca9f9
[ "MIT" ]
null
null
null
src/client/communication/client_protocol.cpp
Santoi/quantum-chess
a2f5a0f322c6aa51488c52c8ebacbe0ad75ca9f9
[ "MIT" ]
null
null
null
#include <string> #include <unistd.h> #include <arpa/inet.h> #include <map> #include <vector> #include <list> #include <utility> #include "../../common/unique_ptr.h" #include "client_protocol.h" #include "../../common/client_data.h" #include "chessman_data.h" #include "../../common/socket_closed.h" std::map<uint16_t, ...
36.082687
80
0.655758
Santoi
13022bae3d38f95e25a88dfd2e86d7f3a7a935b9
2,922
cpp
C++
EngineLuke/src/ML_ENGINE/ML_ENGINE/ML/Utilities/Statistics.cpp
speed0606/team.luke
6354d8237227276316a8f1e4bb10486a9ab968bf
[ "MIT" ]
3
2016-12-03T08:24:51.000Z
2017-02-26T21:28:29.000Z
EngineLuke/src/ML_ENGINE/ML_ENGINE/ML/Utilities/Statistics.cpp
dk-seo/team.luke
6354d8237227276316a8f1e4bb10486a9ab968bf
[ "MIT" ]
null
null
null
EngineLuke/src/ML_ENGINE/ML_ENGINE/ML/Utilities/Statistics.cpp
dk-seo/team.luke
6354d8237227276316a8f1e4bb10486a9ab968bf
[ "MIT" ]
2
2017-02-19T23:41:27.000Z
2017-02-26T21:28:31.000Z
#include "Similarity.h" #include "../Dataframe/Dataframe.h" #include <algorithm> #include "Statistics.h" double CalculateMean( const std::vector<Instance*>& instances, size_t attributeIdx) { if (instances.size() == 0) return 0.0; double mean = 0.0f; for (auto instance : instances) mean += double(instance->Get...
26.807339
96
0.709788
speed0606
13029a4976338faf7e38f2672316abeedd4bcdb5
118
cpp
C++
main.cpp
Ruixues/Judo
47925aec22edb49d41846e21a4add11411380ffb
[ "Apache-2.0" ]
9
2020-09-14T15:16:47.000Z
2021-06-05T07:36:32.000Z
main.cpp
Ruixues/Judo
47925aec22edb49d41846e21a4add11411380ffb
[ "Apache-2.0" ]
1
2020-12-28T04:06:58.000Z
2020-12-28T04:06:58.000Z
main.cpp
Ruixues/Judo
47925aec22edb49d41846e21a4add11411380ffb
[ "Apache-2.0" ]
1
2020-12-20T09:42:16.000Z
2020-12-20T09:42:16.000Z
#include "args.h" #include <iostream> int main(int argc, char *argv[]) { HandleInput(argc, argv); return 0; }
16.857143
34
0.635593
Ruixues
1303c7a7f4741f4c42fa49ee45fd19c7d22ca865
969
cpp
C++
dev/g++/projects/ttcn3/internal_tci/src/tci_type_impl.cpp
YannGarcia/repo
0f3de24c71d942c752ada03c10861e83853fdf71
[ "MIT" ]
null
null
null
dev/g++/projects/ttcn3/internal_tci/src/tci_type_impl.cpp
YannGarcia/repo
0f3de24c71d942c752ada03c10861e83853fdf71
[ "MIT" ]
null
null
null
dev/g++/projects/ttcn3/internal_tci/src/tci_type_impl.cpp
YannGarcia/repo
0f3de24c71d942c752ada03c10861e83853fdf71
[ "MIT" ]
1
2017-01-27T12:53:50.000Z
2017-01-27T12:53:50.000Z
/** * @file tci_type_impl.h * @brief Main implementation file for the tci_type_impl class. * @author garciay.yann@gmail.com * @copyright Copyright (c) 2015 ygarcia. All rights reserved * @license This project is released under the MIT License * @version 0.1 */ #include "tci_module_id_impl.h" namespace inte...
26.916667
65
0.652219
YannGarcia
1306b7f69ccf390d57496a769ff2857a16e27893
1,447
cpp
C++
src/vector.cpp
S-VIN/GraphicLib
c57e6828a51f29ca06281e9ac2a8759565298f20
[ "MIT" ]
null
null
null
src/vector.cpp
S-VIN/GraphicLib
c57e6828a51f29ca06281e9ac2a8759565298f20
[ "MIT" ]
null
null
null
src/vector.cpp
S-VIN/GraphicLib
c57e6828a51f29ca06281e9ac2a8759565298f20
[ "MIT" ]
null
null
null
#include "../headers/vector.h" Vector::Vector() {} Vector::~Vector() {} void Vector:: addFigure(Figure* figure){ figures.push_back(figure); }; void Vector:: deleteFigure(int i){ figures.erase(figures.begin() + i); } bool Vector:: isSquareHere(Point point, Square* square){ if(point.x <= square->zeroPoint...
21.924242
67
0.516932
S-VIN
130c6d8312e00e0b2128a3d0361f18d9bc7e0e7c
1,479
hpp
C++
code/libuipf/src/include/data/opencv.hpp
jdkuhnke/uipf
a944237e71cc61be29c641f7320e8ee3a0f0624f
[ "BSD-2-Clause" ]
4
2017-03-26T05:56:57.000Z
2020-02-04T23:14:13.000Z
code/libuipf/src/include/data/opencv.hpp
jdkuhnke/uipf
a944237e71cc61be29c641f7320e8ee3a0f0624f
[ "BSD-2-Clause" ]
3
2017-05-13T21:30:39.000Z
2018-03-20T17:00:52.000Z
code/libuipf/src/include/data/opencv.hpp
jdkuhnke/uipf
a944237e71cc61be29c641f7320e8ee3a0f0624f
[ "BSD-2-Clause" ]
3
2017-11-29T10:26:13.000Z
2021-06-15T13:14:04.000Z
#ifndef LIBUIPF_DATA_OPENCV_HPP #define LIBUIPF_DATA_OPENCV_HPP #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <map> #include <string> #include "../data.hpp" #include "list.hpp" namespace uipf { namespace data { // create types for OpenCV if built with OpenCV support UIPF_DAT...
25.5
87
0.705882
jdkuhnke
130c8f6ba144264ea19fe6be78d592faecf81d78
1,674
hpp
C++
src/vendor/cget/include/pqrs/osx/system_preferences/system_preferences.hpp
egelwan/Karabiner-Elements
896439dd2130904275553282063dd7fe4852e1a8
[ "Unlicense" ]
5,422
2019-10-27T17:51:04.000Z
2022-03-31T15:45:41.000Z
src/vendor/cget/include/pqrs/osx/system_preferences/system_preferences.hpp
XXXalice/Karabiner-Elements
52f579cbf60251cf18915bd938eb4431360b763b
[ "Unlicense" ]
1,310
2019-10-28T04:57:24.000Z
2022-03-31T04:55:37.000Z
src/vendor/cget/include/pqrs/osx/system_preferences/system_preferences.hpp
XXXalice/Karabiner-Elements
52f579cbf60251cf18915bd938eb4431360b763b
[ "Unlicense" ]
282
2019-10-28T02:36:04.000Z
2022-03-19T06:18:54.000Z
#pragma once // (C) Copyright Takayama Fumihiko 2019. // Distributed under the Boost Software License, Version 1.0. // (See http://www.boost.org/LICENSE_1_0.txt) #include "keyboard_type_key.hpp" #include <pqrs/cf/number.hpp> namespace pqrs { namespace osx { namespace system_preferences { inline std::optional<bool> f...
27.9
89
0.642772
egelwan
130cf73bec693b1d4720ecd16c3ac0ca97a10a14
5,740
hpp
C++
ZeroLibraries/Common/Containers/HashSet.hpp
jodavis42/ZeroPhysicsTestbed
e84a3f6faf16b7a4242dc049121b5338e80039f8
[ "MIT" ]
52
2018-09-11T17:18:35.000Z
2022-03-13T15:28:21.000Z
ZeroLibraries/Common/Containers/HashSet.hpp
jodavis42/ZeroPhysicsTestbed
e84a3f6faf16b7a4242dc049121b5338e80039f8
[ "MIT" ]
1,409
2018-09-19T18:03:43.000Z
2021-06-09T08:33:33.000Z
ZeroLibraries/Common/Containers/HashSet.hpp
jodavis42/ZeroPhysicsTestbed
e84a3f6faf16b7a4242dc049121b5338e80039f8
[ "MIT" ]
26
2018-09-11T17:16:32.000Z
2021-11-22T06:21:19.000Z
/////////////////////////////////////////////////////////////////////////////// /// /// \file HashSet.hpp /// Definition of the HashSet associative container. /// /// Authors: Chris Peters /// Copyright 2010-2011, DigiPen Institute of Technology /// //////////////////////////////////////////////////////////////...
28
158
0.63101
jodavis42
1310d125c3eb1723d3bc97c7388de8b5b03a1ab5
9,392
cpp
C++
openbr/plugins/validate.cpp
clcarwin/openbr
00700cc8c3d19df5ff08045ef1b19bacfbe22b25
[ "Apache-2.0" ]
1
2015-11-06T05:29:35.000Z
2015-11-06T05:29:35.000Z
openbr/plugins/validate.cpp
guker/openbr
20fd2aaec557a51ad46b47d55dea9cf7e364818a
[ "Apache-2.0" ]
null
null
null
openbr/plugins/validate.cpp
guker/openbr
20fd2aaec557a51ad46b47d55dea9cf7e364818a
[ "Apache-2.0" ]
null
null
null
#include <QFutureSynchronizer> #include <QtConcurrentRun> #include "openbr_internal.h" #include "openbr/core/common.h" #include <openbr/core/qtutils.h> namespace br { static void _train(Transform *transform, TemplateList data) // think data has to be a copy -cao { transform->train(data); } /*! * \ingroup transf...
34.529412
132
0.592845
clcarwin
131182ee70ef5f641dbb8f99ef45aa1e0922ad6e
2,118
cpp
C++
Part1/Chapter5/P5731.cpp
flics04/SSQCbook-Base-Luogu
c7ddbcfec58d6cc8f6396309daa8b511b6c8673d
[ "MIT" ]
null
null
null
Part1/Chapter5/P5731.cpp
flics04/SSQCbook-Base-Luogu
c7ddbcfec58d6cc8f6396309daa8b511b6c8673d
[ "MIT" ]
null
null
null
Part1/Chapter5/P5731.cpp
flics04/SSQCbook-Base-Luogu
c7ddbcfec58d6cc8f6396309daa8b511b6c8673d
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int n; int main() { cin >> n; if (n == 1) cout << " 1\n"; if (n == 2) cout << " 1 2\n 4 3\n"; if (n == 3) { cout << " 1 2 3\n"; cout << " 8 9 4\n"; cout << " 7 6 5\n"; } if (n == 4) { cout <<...
30.257143
48
0.383853
flics04
13155166fd496ef370cc43ab6e3115a972db7527
52,758
cpp
C++
src/3dstool.cpp
dnasdw/3dstool
29ca751fef5edc6c865ced64777b4141d43fa433
[ "MIT" ]
281
2015-01-01T03:53:15.000Z
2022-03-22T11:08:31.000Z
src/3dstool.cpp
dnasdw/3dstool-circleci
878549e5a0b53f84c12d91ead2dff54f606c98e5
[ "MIT" ]
21
2016-11-10T02:09:28.000Z
2022-01-04T14:52:25.000Z
src/3dstool.cpp
PMArkive/3dstool
29ca751fef5edc6c865ced64777b4141d43fa433
[ "MIT" ]
38
2015-03-12T05:56:37.000Z
2021-12-29T15:25:01.000Z
#include "3dstool.h" #include "3dscrypt.h" #include "backwardlz77.h" #include "banner.h" #include "code.h" #include "exefs.h" #include "huffman.h" #include "lz77.h" #include "ncch.h" #include "ncsd.h" #include "patch.h" #include "romfs.h" #include "runlength.h" #include "url_manager.h" #include "yaz0.h" C3dsTool::SOpt...
28.318841
193
0.668335
dnasdw
1316383c5bd61321c42690abd0d076610a9dc2aa
151
cpp
C++
2739.cpp
devlphj/BaekjoonOJ
ecf715ece2a81bb69aa2e2b045e53acec01d3736
[ "MIT" ]
null
null
null
2739.cpp
devlphj/BaekjoonOJ
ecf715ece2a81bb69aa2e2b045e53acec01d3736
[ "MIT" ]
null
null
null
2739.cpp
devlphj/BaekjoonOJ
ecf715ece2a81bb69aa2e2b045e53acec01d3736
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int main() { int N; cin >> N; for(int i=1; i<=9; i++) cout << N << " * " << i << " = " << N*i << endl; }
16.777778
50
0.463576
devlphj
1317396c49bcc72492e971e9540e11a806b4fbe6
406
hpp
C++
Giga_v1/src/ui/KDUIUnitCommunication.hpp
azarashi2931/Giga-Project
2acbd937bec01e6042453fe777f4182b6d67d9b7
[ "MIT" ]
null
null
null
Giga_v1/src/ui/KDUIUnitCommunication.hpp
azarashi2931/Giga-Project
2acbd937bec01e6042453fe777f4182b6d67d9b7
[ "MIT" ]
null
null
null
Giga_v1/src/ui/KDUIUnitCommunication.hpp
azarashi2931/Giga-Project
2acbd937bec01e6042453fe777f4182b6d67d9b7
[ "MIT" ]
null
null
null
#ifndef KD_UI_UNIT_COMMUNICATION_h #define KD_UI_UNIT_COMMUNICATION_h class KDUIUnitCommunication { public: KDUIUnitCommunication(HardwareSerial *serialInstance) : _serialInstance(serialInstance) {} void init(); void reset(); int read(); void printValue(); private: HardwareSerial *_serialI...
21.368421
94
0.729064
azarashi2931
1317f90e28428d14ce6522fac3da086d5bec7b55
3,402
cpp
C++
sources/modules/levelset/SpatialDerivative/UpwindFirst/UpwindFirstWENO5.cpp
mdoshi96/beacls
860426ed1336d9539dea195987efcdd8a8276a1c
[ "BSD-2-Clause", "BSD-2-Clause-FreeBSD" ]
30
2017-12-17T22:57:50.000Z
2022-01-30T17:06:34.000Z
sources/modules/levelset/SpatialDerivative/UpwindFirst/UpwindFirstWENO5.cpp
codingblazes/beacls
6c1d685ee00e3b39d8100c4a170a850682679abc
[ "BSD-2-Clause", "BSD-2-Clause-FreeBSD" ]
2
2017-03-24T06:18:16.000Z
2017-04-04T16:16:06.000Z
sources/modules/levelset/SpatialDerivative/UpwindFirst/UpwindFirstWENO5.cpp
codingblazes/beacls
6c1d685ee00e3b39d8100c4a170a850682679abc
[ "BSD-2-Clause", "BSD-2-Clause-FreeBSD" ]
8
2018-07-06T01:47:21.000Z
2021-07-23T15:50:34.000Z
#include <vector> #include <cstdint> #include <cmath> #include <typeinfo> #include <levelset/SpatialDerivative/UpwindFirst/UpwindFirstWENO5.hpp> #include <levelset/SpatialDerivative/UpwindFirst/UpwindFirstWENO5a.hpp> #include "UpwindFirstWENO5_impl.hpp" using namespace levelset; UpwindFirstWENO5_impl::UpwindFirstWENO5...
29.842105
177
0.762787
mdoshi96
131d1ed752dbfa1f44199ace6533d5b45b7b9af1
929
hpp
C++
include/ashespp/Enum/DescriptorPoolCreateFlags.hpp
DragonJoker/Ashes
a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e
[ "MIT" ]
227
2018-09-17T16:03:35.000Z
2022-03-19T02:02:45.000Z
include/ashespp/Enum/DescriptorPoolCreateFlags.hpp
DragonJoker/RendererLib
0f8ad8edec1b0929ebd10247d3dd0a9ee8f8c91a
[ "MIT" ]
39
2018-02-06T22:22:24.000Z
2018-08-29T07:11:06.000Z
include/ashespp/Enum/DescriptorPoolCreateFlags.hpp
DragonJoker/Ashes
a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e
[ "MIT" ]
8
2019-05-04T10:33:32.000Z
2021-04-05T13:19:27.000Z
/* This file belongs to Ashes. See LICENSE file in root folder. */ #ifndef ___AshesPP_DescriptorPoolCreateFlags_HPP___ #define ___AshesPP_DescriptorPoolCreateFlags_HPP___ #pragma once namespace ashes { /** *\brief * Gets the name of the given element type. *\param[in] value * The element type. *\return * The na...
23.225
68
0.779333
DragonJoker
131f72a4fbffcc6341dff9bbeec5b34a62484d5a
751
cpp
C++
Almond/src/Platform/OpenGL/OpenGLContext.cpp
joshrudesill/Almond
aab1e74eb5f85b9e06d5159ff3d429b728f7ac5e
[ "Apache-2.0" ]
null
null
null
Almond/src/Platform/OpenGL/OpenGLContext.cpp
joshrudesill/Almond
aab1e74eb5f85b9e06d5159ff3d429b728f7ac5e
[ "Apache-2.0" ]
null
null
null
Almond/src/Platform/OpenGL/OpenGLContext.cpp
joshrudesill/Almond
aab1e74eb5f85b9e06d5159ff3d429b728f7ac5e
[ "Apache-2.0" ]
null
null
null
#include "hzpch.h" #include "OpenGLContext.h" #include <GLFW/glfw3.h> #include "glad/glad.h" namespace Almond { OpenGLContext::OpenGLContext(GLFWwindow* windowHandle) :m_WindowHandle(windowHandle) { AL_CORE_ASSERT(windowHandle, "Handle is null."); } void OpenGLContext::init() { glfwMakeContextCurrent(m_Wind...
27.814815
67
0.733688
joshrudesill
13208b68947bb2b80288b77122f4eb365debe157
8,191
hpp
C++
src/messaging_implementation/ZmqZmfMessagingServiceImplementation.hpp
zeroSDN/ZeroModuleFramework
a2262a77891b9c6b34d33dc6ff1b9734175fdcce
[ "Apache-2.0" ]
null
null
null
src/messaging_implementation/ZmqZmfMessagingServiceImplementation.hpp
zeroSDN/ZeroModuleFramework
a2262a77891b9c6b34d33dc6ff1b9734175fdcce
[ "Apache-2.0" ]
null
null
null
src/messaging_implementation/ZmqZmfMessagingServiceImplementation.hpp
zeroSDN/ZeroModuleFramework
a2262a77891b9c6b34d33dc6ff1b9734175fdcce
[ "Apache-2.0" ]
null
null
null
#ifndef ZMF_ZMQ_SERVICE_H #define ZMF_ZMQ_SERVICE_H #include "ModuleHandle.hpp" #include "../messaging/IZmfMessagingService.hpp" #include "ExternalRequestIdentity.hpp" #include "../messaging/IZmfMessagingCoreInterface.hpp" #include "../proto/FrameworkProto.pb.h" #include <zmqpp/message.hpp> #include <zmqpp/poller.hpp>...
30.677903
116
0.54511
zeroSDN
1321fa202f00669ce132cf5d976a7df88fb940b6
4,130
cpp
C++
QP/v5.4.2/qpcpp/source/qs_fp.cpp
hyller/GladiatorCots
36a69df68675bb40b562081c531e6674037192a8
[ "Unlicense" ]
null
null
null
QP/v5.4.2/qpcpp/source/qs_fp.cpp
hyller/GladiatorCots
36a69df68675bb40b562081c531e6674037192a8
[ "Unlicense" ]
null
null
null
QP/v5.4.2/qpcpp/source/qs_fp.cpp
hyller/GladiatorCots
36a69df68675bb40b562081c531e6674037192a8
[ "Unlicense" ]
null
null
null
/// @file /// @brief QS floating point output implementation /// @ingroup qs /// @cond ///*************************************************************************** /// Product: QS/C++ /// Last updated for version 5.4.0 /// Last updated on 2015-04-29 /// /// Q u a n t u m L e a P s /// ...
35.913043
78
0.584988
hyller
1325537386dd8318d1360a7b92335ef2017989b4
11,543
cpp
C++
test/marshall/shared_buffer_test.cpp
oxenran/utility-rack
5d757feea65e9e83375f4be0a770225ebf39d019
[ "BSL-1.0" ]
null
null
null
test/marshall/shared_buffer_test.cpp
oxenran/utility-rack
5d757feea65e9e83375f4be0a770225ebf39d019
[ "BSL-1.0" ]
null
null
null
test/marshall/shared_buffer_test.cpp
oxenran/utility-rack
5d757feea65e9e83375f4be0a770225ebf39d019
[ "BSL-1.0" ]
null
null
null
/** @file * * @ingroup test_module * * @brief Test scenarios for @c mutable_shared_buffer and * @c const_shared_buffer classes. * * @author Cliff Green * * Copyright (c) 2017-2018 by Cliff Green * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE.txt or co...
33.361272
101
0.616737
oxenran
132ba4a63a21d9dfff4b8e474b90818c8214b51c
5,187
cpp
C++
Common/IniFile.cpp
wolfgang1991/CommonLibraries
949251019cc8dd532938d16ab85a4e772eb6817e
[ "Zlib" ]
null
null
null
Common/IniFile.cpp
wolfgang1991/CommonLibraries
949251019cc8dd532938d16ab85a4e772eb6817e
[ "Zlib" ]
1
2020-07-31T13:20:54.000Z
2020-08-06T15:45:39.000Z
Common/IniFile.cpp
wolfgang1991/CommonLibraries
949251019cc8dd532938d16ab85a4e772eb6817e
[ "Zlib" ]
null
null
null
#include <IniFile.h> #include <IniIterator.h> #include <IniParser.h> #include <iostream> #include <cstring> #include <cassert> #include <string> #include <map> #include <fstream> #include <sstream> using namespace std; static const char characters[] = { '\n', '\\', '#', ';', ' ', '\t', '[', ']', '=', '\r'}; static c...
25.551724
123
0.644496
wolfgang1991
132bcb5535c6c01c1332eb6f41d2efb4c34ab682
3,037
cc
C++
lib/jxl/bits_test.cc
jxl-bot/libjxl
44778c6902084bd239c5fb8eaa53bfd90dd9face
[ "Apache-2.0" ]
1
2021-08-05T12:14:05.000Z
2021-08-05T12:14:05.000Z
lib/jxl/bits_test.cc
jxl-bot/libjxl
44778c6902084bd239c5fb8eaa53bfd90dd9face
[ "Apache-2.0" ]
null
null
null
lib/jxl/bits_test.cc
jxl-bot/libjxl
44778c6902084bd239c5fb8eaa53bfd90dd9face
[ "Apache-2.0" ]
null
null
null
// Copyright (c) the JPEG XL 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 applicable law or agree...
34.123596
75
0.726045
jxl-bot
132f355fe8e539026d9ba7a8464fb28294042b51
1,703
cpp
C++
src/planner/interface/goal_interface.cpp
anuranbaka/Vulcan
56339f77f6cf64b5fda876445a33e72cd15ce028
[ "MIT" ]
3
2020-03-05T23:56:14.000Z
2021-02-17T19:06:50.000Z
src/planner/interface/goal_interface.cpp
anuranbaka/Vulcan
56339f77f6cf64b5fda876445a33e72cd15ce028
[ "MIT" ]
1
2021-03-07T01:23:47.000Z
2021-03-07T01:23:47.000Z
src/planner/interface/goal_interface.cpp
anuranbaka/Vulcan
56339f77f6cf64b5fda876445a33e72cd15ce028
[ "MIT" ]
1
2021-03-03T07:54:16.000Z
2021-03-03T07:54:16.000Z
/* Copyright (C) 2010-2019, The Regents of The University of Michigan. All rights reserved. This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an MIT-style License that can be foun...
24.328571
106
0.660012
anuranbaka
132ff6aded62f2d54d7817a6fad24398df1e71f1
311
cpp
C++
src/fe/subsystems/scripting/tableHandler.cpp
TheCandianVendingMachine/TCVM_Flat_Engine
13797b91f6f4199d569f80baa29e2584652fc4b5
[ "MIT" ]
1
2018-06-15T23:49:37.000Z
2018-06-15T23:49:37.000Z
src/fe/subsystems/scripting/tableHandler.cpp
TheCandianVendingMachine/TCVM_Flat_Engine
13797b91f6f4199d569f80baa29e2584652fc4b5
[ "MIT" ]
5
2017-04-23T03:25:10.000Z
2018-02-23T07:48:16.000Z
src/fe/subsystems/scripting/tableHandler.cpp
TheCandianVendingMachine/TCVM_Flat_Engine
13797b91f6f4199d569f80baa29e2584652fc4b5
[ "MIT" ]
null
null
null
#include "fe/subsystems/scripting/tableHandler.hpp" #include "fe/subsystems/scripting/scriptHelpers.hpp" fe::tableHandler::tableHandler(sol::state &state) : m_state(state) { } sol::table fe::tableHandler::getTable(const char *path) { return fe::imp::getTableFromPath(path, m_state); }
25.916667
66
0.70418
TheCandianVendingMachine
133146c26ff37c5deed5f187fa747066237395af
4,834
cpp
C++
3rdParty/iresearch/core/store/data_output.cpp
specimen151/arangodb
1a3a31dace16293426a19364eb4d93c8f17c0d68
[ "BSL-1.0", "Zlib", "Apache-2.0" ]
null
null
null
3rdParty/iresearch/core/store/data_output.cpp
specimen151/arangodb
1a3a31dace16293426a19364eb4d93c8f17c0d68
[ "BSL-1.0", "Zlib", "Apache-2.0" ]
null
null
null
3rdParty/iresearch/core/store/data_output.cpp
specimen151/arangodb
1a3a31dace16293426a19364eb4d93c8f17c0d68
[ "BSL-1.0", "Zlib", "Apache-2.0" ]
null
null
null
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2016 by EMC Corporation, 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...
26.271739
80
0.542201
specimen151
1331e825b4644c1d0da7f3b11954ec2cad7201df
61,827
cpp
C++
src/electionguard/election.cpp
msprotz/electionguard-cpp
206002a8873450141451c9b6f3da6cd389ee5c05
[ "MIT" ]
null
null
null
src/electionguard/election.cpp
msprotz/electionguard-cpp
206002a8873450141451c9b6f3da6cd389ee5c05
[ "MIT" ]
null
null
null
src/electionguard/election.cpp
msprotz/electionguard-cpp
206002a8873450141451c9b6f3da6cd389ee5c05
[ "MIT" ]
null
null
null
#include "electionguard/election.hpp" #include "electionguard/hash.hpp" #include "log.hpp" #include "serialize.hpp" #include <cstring> #include <iostream> #include <utility> using std::make_unique; using std::map; using std::move; using std::out_of_range; using std::ref; using std::reference_wrapper; using std::stri...
37
100
0.646481
msprotz
1335e4bcd9bf40fb7bf1b663775829b57b2d3ac0
1,907
cc
C++
src/MEPED_SteppingAction.cc
kbyando/meped-etelescope
cb1805cb8d1662a561fb1b7a405aecbfffac8f2c
[ "Apache-2.0" ]
null
null
null
src/MEPED_SteppingAction.cc
kbyando/meped-etelescope
cb1805cb8d1662a561fb1b7a405aecbfffac8f2c
[ "Apache-2.0" ]
null
null
null
src/MEPED_SteppingAction.cc
kbyando/meped-etelescope
cb1805cb8d1662a561fb1b7a405aecbfffac8f2c
[ "Apache-2.0" ]
null
null
null
// NOAA POES Monte Carlo Simulation v1.4, 03/07/2010e // MEPED :: Electron Telescope // Karl Yando, Professor Robyn Millan // Dartmouth College, 2008 // // "MEPED_SteppingAction.cc" #include "MEPED_SteppingAction.hh" #include "MEPED_DetectorConstruction.hh" #include "MEPED_EventAction.hh" #include "G4Step.hh" MEPED...
33.45614
99
0.712638
kbyando
13366cb9cf1dba78fb79af64657a9770aaa04e69
2,217
cpp
C++
src/raspberry/bridge_wiringpi.cpp
OpenWinch/test-workflow
bb2dc7ae955d5b6f248518182ec78dd02fc8e7e4
[ "Apache-2.0" ]
null
null
null
src/raspberry/bridge_wiringpi.cpp
OpenWinch/test-workflow
bb2dc7ae955d5b6f248518182ec78dd02fc8e7e4
[ "Apache-2.0" ]
null
null
null
src/raspberry/bridge_wiringpi.cpp
OpenWinch/test-workflow
bb2dc7ae955d5b6f248518182ec78dd02fc8e7e4
[ "Apache-2.0" ]
null
null
null
/** * @file bridge_.cpp * @author Mickael GAILLARD (mick.gaillard@gmail.com) * @brief OpenWinch Project * * @copyright Copyright © 2020 */ #include "openwinch.hpp" #include "bridge_io.hpp" #ifdef OW_BD_PI #ifdef OW_BG_WIRINGPI #ifdef __cplusplus extern "C" { #endif #include <wiringPi.h> #include <softPwm.h> #...
17.595238
73
0.664862
OpenWinch
133aa04b1f093de1358e9fe5e042ee83e61a4cc5
1,869
cpp
C++
source/cxx/src/princomp.cpp
RBigData/coral2
1d20dde80319277cf59f84e9d1e47aeb9a1038f5
[ "BSD-2-Clause" ]
null
null
null
source/cxx/src/princomp.cpp
RBigData/coral2
1d20dde80319277cf59f84e9d1e47aeb9a1038f5
[ "BSD-2-Clause" ]
null
null
null
source/cxx/src/princomp.cpp
RBigData/coral2
1d20dde80319277cf59f84e9d1e47aeb9a1038f5
[ "BSD-2-Clause" ]
null
null
null
#define ARMA_DONT_USE_WRAPPER #include <armadillo> #include <cstdio> #include <mpi.h> #include <string> #define ALLREDUCE(X) MPI_Allreduce(MPI_IN_PLACE, X.memptr(), X.n_elem, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD) class Shaq { public: Shaq() { MPI_Comm_rank(MPI_COMM_WORLD, &rank); }; void ...
19.268041
127
0.59176
RBigData
133b45b975ea6f0a8ed32025afd2259f9248e408
2,380
cpp
C++
src/butil/class_name.cpp
wu-hanqing/incubator-brpc
7de0d7eaf6fca2b73b9f6018eb1b9128ce0a8f21
[ "Apache-2.0" ]
5,379
2019-03-02T14:35:09.000Z
2022-03-31T14:19:19.000Z
src/butil/class_name.cpp
RichPure/incubator-brpc
846f7998799dd3c9103ef743fecc3c75d6dcb7ef
[ "BSL-1.0", "Apache-2.0" ]
921
2019-03-02T00:57:34.000Z
2022-03-30T08:58:23.000Z
src/butil/class_name.cpp
RichPure/incubator-brpc
846f7998799dd3c9103ef743fecc3c75d6dcb7ef
[ "BSL-1.0", "Apache-2.0" ]
1,641
2019-03-02T06:53:17.000Z
2022-03-31T11:35:07.000Z
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
38.387097
72
0.65
wu-hanqing
1340445bddb6a9819e70226bb542b7aff2478b6b
7,531
cc
C++
tests/route_UT.cc
KnochJ/bus-sim
5c736ad74200e4e69b73e730661a66f355b6daaf
[ "FSFAP" ]
null
null
null
tests/route_UT.cc
KnochJ/bus-sim
5c736ad74200e4e69b73e730661a66f355b6daaf
[ "FSFAP" ]
null
null
null
tests/route_UT.cc
KnochJ/bus-sim
5c736ad74200e4e69b73e730661a66f355b6daaf
[ "FSFAP" ]
null
null
null
/* * Please note, the assessment tests for grading, will use the same include * files, class names, and function names for accessing students' code that you * find in this file. So students, if you write your code so that it passes * these feedback tests, you can be assured that the auto-grader will at least * be...
36.558252
113
0.636303
KnochJ
13431a63a4004bbabf286b936771d2ea19b0e147
3,475
cpp
C++
niv/src/exchange/shared_memory.cpp
HBPVIS/nest-in-situ-vis
289956a9a352dcf76f3fa8a8c694a1b044df1b41
[ "Apache-2.0" ]
null
null
null
niv/src/exchange/shared_memory.cpp
HBPVIS/nest-in-situ-vis
289956a9a352dcf76f3fa8a8c694a1b044df1b41
[ "Apache-2.0" ]
null
null
null
niv/src/exchange/shared_memory.cpp
HBPVIS/nest-in-situ-vis
289956a9a352dcf76f3fa8a8c694a1b044df1b41
[ "Apache-2.0" ]
null
null
null
//------------------------------------------------------------------------------ // nest in situ vis // // Copyright (c) 2017-2018 RWTH Aachen University, Germany, // Virtual Reality & Immersive Visualisation Group. //------------------------------------------------------------------------------ // ...
33.737864
80
0.69554
HBPVIS
134373ddd6377308c009d166499412c05d2ec103
5,632
cc
C++
shell/common/gin_converters/gfx_converter.cc
jdwalker/electron
69be9fa798dbb8d49a6550cdb287be900db13ac1
[ "MIT" ]
16
2020-11-08T21:58:19.000Z
2022-03-23T20:11:13.000Z
shell/common/gin_converters/gfx_converter.cc
jdwalker/electron
69be9fa798dbb8d49a6550cdb287be900db13ac1
[ "MIT" ]
350
2020-09-02T21:26:05.000Z
2022-03-31T20:18:55.000Z
shell/common/gin_converters/gfx_converter.cc
ColleenKeegan/electron
f3dc3997b10fd79439ad22ff5973b3d3541d8e9d
[ "MIT" ]
5
2020-12-14T23:25:47.000Z
2021-08-12T02:31:25.000Z
// Copyright (c) 2019 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "shell/common/gin_converters/gfx_converter.h" #include "shell/common/gin_helper/dictionary.h" #include "ui/display/display.h" #include "ui/display/screen.h" #include "ui/gfx/...
34.552147
79
0.604936
jdwalker
13472aaad9749a0f86cdc35b3343d8f7b37281fe
570
cpp
C++
2. Yellow/Week 5/01. Inheritance/main.cpp
AmaterasuOmikami/The-art-of-modern-Cpp-development
4f0958197da92d216ee526384a6f7386a0fe62a0
[ "MIT" ]
1
2022-02-17T10:58:58.000Z
2022-02-17T10:58:58.000Z
2. Yellow/Week 5/01. Inheritance/main.cpp
AmaterasuOmikami/The-art-of-modern-Cpp-development
4f0958197da92d216ee526384a6f7386a0fe62a0
[ "MIT" ]
null
null
null
2. Yellow/Week 5/01. Inheritance/main.cpp
AmaterasuOmikami/The-art-of-modern-Cpp-development
4f0958197da92d216ee526384a6f7386a0fe62a0
[ "MIT" ]
null
null
null
/* * Определите до конца тела классов, соблюдая следующие требования: * - Класс Dog должен являться наследником класса Animal. * - Конструктор класса Dog должен принимать параметр типа string и * инициализировать им поле Name в классе Animal. */ #include <iostream> using namespace std; class Animal { public: ...
20.357143
67
0.673684
AmaterasuOmikami
13487b34f87a8e2378695c946db6ebcecde63d41
3,466
cpp
C++
hi_sampler/sampler/MachFiveImporter.cpp
MIDIculous/HISE
cb4c567bacb02c6bf7ca46a78daa06d3ce0b2b78
[ "Intel", "MIT" ]
1
2021-03-04T19:37:06.000Z
2021-03-04T19:37:06.000Z
hi_sampler/sampler/MachFiveImporter.cpp
psobot/HISE
cb97378039bae22c8eade3d4b699931bfd65c7d1
[ "Intel", "MIT" ]
null
null
null
hi_sampler/sampler/MachFiveImporter.cpp
psobot/HISE
cb97378039bae22c8eade3d4b699931bfd65c7d1
[ "Intel", "MIT" ]
null
null
null
namespace hise { using namespace juce; StringArray MachFiveImporter::getLayerNames(const File &machFiveFile) { ScopedPointer<XmlElement> rootXml = XmlDocument::parse(machFiveFile); if (rootXml != nullptr) { ValueTree root = ValueTree::fromXml(*rootXml); ValueTree layers = root.getChildWithName("Program").get...
32.392523
103
0.746682
MIDIculous
1349f07778caeaa9029f1de1d08bfbab60742c03
2,871
cpp
C++
src/as/multithread_task/task_interface.cpp
asmith-git/multithread-task
4b09b854aff2cf24651fd75bbed8d3019f8be379
[ "Apache-2.0" ]
null
null
null
src/as/multithread_task/task_interface.cpp
asmith-git/multithread-task
4b09b854aff2cf24651fd75bbed8d3019f8be379
[ "Apache-2.0" ]
null
null
null
src/as/multithread_task/task_interface.cpp
asmith-git/multithread-task
4b09b854aff2cf24651fd75bbed8d3019f8be379
[ "Apache-2.0" ]
null
null
null
// Copyright 2017 Adam Smith // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
27.605769
113
0.730408
asmith-git
134c1ecf57b5efca1a1c1ac5178f89108e77076e
1,450
cpp
C++
test/catch/map-test.cpp
malachi-iot/estdlib
b455315c567ede54cea02eee5174036170d8fd26
[ "MIT" ]
11
2019-01-04T12:02:02.000Z
2021-06-17T01:38:56.000Z
test/catch/map-test.cpp
malachi-iot/estdlib
b455315c567ede54cea02eee5174036170d8fd26
[ "MIT" ]
5
2020-01-01T06:12:48.000Z
2022-03-29T20:49:21.000Z
test/catch/map-test.cpp
malachi-iot/estdlib
b455315c567ede54cea02eee5174036170d8fd26
[ "MIT" ]
1
2020-10-19T11:10:13.000Z
2020-10-19T11:10:13.000Z
#include <catch.hpp> #include <estd/map.h> #include <estd/string.h> #include "mem.h" using namespace estd; TEST_CASE("map-test") { SECTION("layer 1 map") { typedef layer1::map<int, int, 4> map_t; estd::array<map_t::value_type, 4> buf; #ifdef FEATURE_ESTD_LEGACY_ARRAY buf[0].first = ...
18.589744
53
0.428276
malachi-iot
134f18a3ab88ec3a236b4a635c131977d6789cb3
4,708
cpp
C++
src/main.cpp
FranciscoPDNeto/mpi-sum-reduction
0221b0ccada6de85be8c28a3745ba56d7942ec78
[ "MIT" ]
null
null
null
src/main.cpp
FranciscoPDNeto/mpi-sum-reduction
0221b0ccada6de85be8c28a3745ba56d7942ec78
[ "MIT" ]
null
null
null
src/main.cpp
FranciscoPDNeto/mpi-sum-reduction
0221b0ccada6de85be8c28a3745ba56d7942ec78
[ "MIT" ]
null
null
null
#include <mpi.h> #include <cassert> #include <chrono> #include <cmath> #include <iomanip> #include <iostream> #include <string> #include <vector> #define MAINPROC 0 int main(int argc, char** argv) { int numProcessors; int myRank; MPI_Init(NULL, NULL); MPI_Comm_size(MPI_COMM_WORLD, &numProcessors); MPI_Comm_...
30.973684
99
0.620221
FranciscoPDNeto
13538a7b4390c75483f9bb78940212f8a49151ec
56
hpp
C++
src/boost_graph_planar_detail_face_iterators.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
10
2018-03-17T00:58:42.000Z
2021-07-06T02:48:49.000Z
src/boost_graph_planar_detail_face_iterators.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
2
2021-03-26T15:17:35.000Z
2021-05-20T23:55:08.000Z
src/boost_graph_planar_detail_face_iterators.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
4
2019-05-28T21:06:37.000Z
2021-07-06T03:06:52.000Z
#include <boost/graph/planar_detail/face_iterators.hpp>
28
55
0.839286
miathedev
13548d3a2be2e80e5cff44b2291af10f5cc2cef4
1,383
cpp
C++
helpers/tail.cpp
ideeinc/Deepagent
5d37ecf8e196d54d3914edc0c7b309377f772c1f
[ "BSD-3-Clause" ]
null
null
null
helpers/tail.cpp
ideeinc/Deepagent
5d37ecf8e196d54d3914edc0c7b309377f772c1f
[ "BSD-3-Clause" ]
null
null
null
helpers/tail.cpp
ideeinc/Deepagent
5d37ecf8e196d54d3914edc0c7b309377f772c1f
[ "BSD-3-Clause" ]
null
null
null
#include <QFileInfo> #include <unistd.h> #include <fcntl.h> #include <sys/mman.h> #include "tail.h" Tail::Tail(const QString &filePath) : ApplicationHelper(), path(filePath) { } QByteArray Tail::tail(int maxlen, qint64 offset) const { static const qint64 BUFSIZE = sysconf(_SC_PAGE_SIZE); QByteArray ret...
24.263158
96
0.556038
ideeinc
135618d3fdccbe5f47a6caa7b342baab54481a4c
11,285
cpp
C++
games/games/BrickBash/BrickBash.cpp
timskillman/pico-arcade
9c036f8507319bd6e4552e86a6d7211ed74a2670
[ "MIT" ]
1
2022-02-27T15:46:13.000Z
2022-02-27T15:46:13.000Z
games/games/BrickBash/BrickBash.cpp
timskillman/pico-arcade
9c036f8507319bd6e4552e86a6d7211ed74a2670
[ "MIT" ]
null
null
null
games/games/BrickBash/BrickBash.cpp
timskillman/pico-arcade
9c036f8507319bd6e4552e86a6d7211ed74a2670
[ "MIT" ]
null
null
null
#include "BrickBash.h" #include "hardware/adc.h" #include "pico/stdlib.h" // stdlib #include "hardware/irq.h" // interrupts #include "hardware/pwm.h" // pwm #include "hardware/sync.h" // wait for interrupt // Audio PIN is to match some of the design guide shields. #define AUDIO_PIN 28 // you can change this ...
30.41779
116
0.606646
timskillman
13571219a31c25d46c896598bd3a1081c8f966fe
332
hpp
C++
contracts/eosio.system/include/eosio.system/get_trx_id.hpp
eosnationftw/geojsonpoint
e5b38051753d760cbe2759d542e5c9b92a70c002
[ "MIT" ]
null
null
null
contracts/eosio.system/include/eosio.system/get_trx_id.hpp
eosnationftw/geojsonpoint
e5b38051753d760cbe2759d542e5c9b92a70c002
[ "MIT" ]
null
null
null
contracts/eosio.system/include/eosio.system/get_trx_id.hpp
eosnationftw/geojsonpoint
e5b38051753d760cbe2759d542e5c9b92a70c002
[ "MIT" ]
2
2019-08-12T10:55:42.000Z
2021-04-13T14:09:39.000Z
#include <eosio/transaction.hpp> #include <eosio/crypto.hpp> namespace eosiosystem { checksum256 get_trx_id() { size_t size = eosio::transaction_size(); char buf[size]; size_t read = eosio::read_transaction( buf, size ); check( size == read, "read_transaction failed"); return eosio::sha256( buf, r...
20.75
55
0.683735
eosnationftw
135875e079e7cce7cf5cfab249e7d6f607d47fd6
324
hpp
C++
include/IClickable.hpp
Zouizoui78/memory
2023ea9b17e676b0cdeaa37f692f50cfbda908a5
[ "MIT" ]
null
null
null
include/IClickable.hpp
Zouizoui78/memory
2023ea9b17e676b0cdeaa37f692f50cfbda908a5
[ "MIT" ]
null
null
null
include/IClickable.hpp
Zouizoui78/memory
2023ea9b17e676b0cdeaa37f692f50cfbda908a5
[ "MIT" ]
null
null
null
#ifndef ICLICKABLE #define ICLICKABLE #include <functional> template <class T> class IClickable { public: virtual void setCallback(std::function<bool (T* clicked)>) = 0; virtual bool click() = 0; virtual void setClickable(bool clickable) = 0; virtual bool isClickable() = 0; }; #endif // ICLICK...
17.052632
67
0.685185
Zouizoui78
135bc60e0e07cc17e6ca1c8ec363298aad8e9f9c
3,015
cxx
C++
Modules/Wrappers/ApplicationEngine/test/otbWrapperImageInterface.cxx
heralex/OTB
c52b504b64dc89c8fe9cac8af39b8067ca2c3a57
[ "Apache-2.0" ]
null
null
null
Modules/Wrappers/ApplicationEngine/test/otbWrapperImageInterface.cxx
heralex/OTB
c52b504b64dc89c8fe9cac8af39b8067ca2c3a57
[ "Apache-2.0" ]
null
null
null
Modules/Wrappers/ApplicationEngine/test/otbWrapperImageInterface.cxx
heralex/OTB
c52b504b64dc89c8fe9cac8af39b8067ca2c3a57
[ "Apache-2.0" ]
1
2020-10-15T09:37:30.000Z
2020-10-15T09:37:30.000Z
/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
31.736842
122
0.66335
heralex
135f2a7c8306398982674a90b91a9af0bcca1b8e
6,409
cpp
C++
SourceCode/case studies/String Manipulation/Program 10-24.cpp
aceiro/poo2019
0f93d22296f43a8b024a346f510c00314817d2cf
[ "MIT" ]
1
2019-04-09T18:29:38.000Z
2019-04-09T18:29:38.000Z
SourceCode/case studies/String Manipulation/Program 10-24.cpp
aceiro/poo2019
0f93d22296f43a8b024a346f510c00314817d2cf
[ "MIT" ]
null
null
null
SourceCode/case studies/String Manipulation/Program 10-24.cpp
aceiro/poo2019
0f93d22296f43a8b024a346f510c00314817d2cf
[ "MIT" ]
null
null
null
// This program prints a simple form letter reminding a customer // of an overdue account balance. #include <iostream> #include <cctype> #include <cstring> using namespace std; // Function Prototypes void printLetter(char *, char *, char *, char *, char *); void getInfo(char *, char *, char *, char *, char *); void ge...
32.866667
71
0.561554
aceiro
1367ad766b1b8a682f2f33cf1a57bab0d8938afc
2,203
cpp
C++
src/condvartest.cpp
sda1969/cpptest
068b8401664e3c13f969abcfc93ea4f60028a73a
[ "Unlicense" ]
null
null
null
src/condvartest.cpp
sda1969/cpptest
068b8401664e3c13f969abcfc93ea4f60028a73a
[ "Unlicense" ]
null
null
null
src/condvartest.cpp
sda1969/cpptest
068b8401664e3c13f969abcfc93ea4f60028a73a
[ "Unlicense" ]
null
null
null
/* * condvartest.cpp * * Created on: 16 февр. 2017 г. * Author: dmitry */ // condition_variable example #include <iostream> // std::cout #include <thread> // std::thread #include <mutex> // std::mutex, std::unique_lock #include <condition_variable> // std::condition_variab...
27.886076
89
0.597367
sda1969
1368ef09c31178285277be45e38842472ec0401e
2,704
cc
C++
xapian-core_scws-1.2.18/api/leafpostlist.cc
iveteran/xapian-scws
670d0475f61bb4ff7cf1b1979abc4dea5d3acddf
[ "BSD-2-Clause" ]
null
null
null
xapian-core_scws-1.2.18/api/leafpostlist.cc
iveteran/xapian-scws
670d0475f61bb4ff7cf1b1979abc4dea5d3acddf
[ "BSD-2-Clause" ]
null
null
null
xapian-core_scws-1.2.18/api/leafpostlist.cc
iveteran/xapian-scws
670d0475f61bb4ff7cf1b1979abc4dea5d3acddf
[ "BSD-2-Clause" ]
null
null
null
/** @file leafpostlist.cc * @brief Abstract base class for leaf postlists. */ /* Copyright (C) 2007,2009,2014 Olly Betts * Copyright (C) 2009 Lemur Consulting Ltd * * 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 ...
25.271028
83
0.723003
iveteran
136e614a75587e9782ff17aa740f653a1b73a52c
734
hpp
C++
cmdstan/stan/lib/stan_math/stan/math/fwd/arr/fun/log_sum_exp.hpp
yizhang-cae/torsten
dc82080ca032325040844cbabe81c9a2b5e046f9
[ "BSD-3-Clause" ]
null
null
null
cmdstan/stan/lib/stan_math/stan/math/fwd/arr/fun/log_sum_exp.hpp
yizhang-cae/torsten
dc82080ca032325040844cbabe81c9a2b5e046f9
[ "BSD-3-Clause" ]
null
null
null
cmdstan/stan/lib/stan_math/stan/math/fwd/arr/fun/log_sum_exp.hpp
yizhang-cae/torsten
dc82080ca032325040844cbabe81c9a2b5e046f9
[ "BSD-3-Clause" ]
null
null
null
#ifndef STAN_MATH_FWD_ARR_FUN_LOG_SUM_EXP_HPP #define STAN_MATH_FWD_ARR_FUN_LOG_SUM_EXP_HPP #include <stan/math/fwd/core.hpp> #include <stan/math/prim/arr/fun/log_sum_exp.hpp> #include <vector> namespace stan { namespace math { template <typename T> fvar<T> log_sum_exp(const std::vector<fvar<T> >& v) {...
23.677419
61
0.592643
yizhang-cae
13744c9a458373e2aad9e6b728cbf65601543950
6,311
inl
C++
include/vke/Core/Utils/inl/TCSmartPtr.inl
przemyslaw-szymanski/vke
1d8fb139e0e995e330db6b8873dfc49463ec312c
[ "MIT" ]
1
2018-01-06T04:44:36.000Z
2018-01-06T04:44:36.000Z
include/vke/Core/Utils/inl/TCSmartPtr.inl
przemyslaw-szymanski/vke
1d8fb139e0e995e330db6b8873dfc49463ec312c
[ "MIT" ]
null
null
null
include/vke/Core/Utils/inl/TCSmartPtr.inl
przemyslaw-szymanski/vke
1d8fb139e0e995e330db6b8873dfc49463ec312c
[ "MIT" ]
null
null
null
template<typename T> void TCWeakPtr< T >::operator=(const TCWeakPtr& o) { m_pPtr = o.m_pPtr; } template<typename T> void TCWeakPtr< T >::operator=(TCWeakPtr&& o) { m_pPtr = o.Release(); } template<typename T> void TCWeakPtr< T >::operator=(T* pPtr) { m_pPtr = pPtr; } template<typename T> bool TCWeakPtr<...
19.783699
98
0.638409
przemyslaw-szymanski
1375987a353fde0ef47dae9e1c4b2925e49302d8
308
cpp
C++
src/detector.cpp
fntlnz/id-extractor
0c6ccfb2e6f16c932635a9a945d2664872906aa8
[ "MIT" ]
1
2015-07-21T06:24:37.000Z
2015-07-21T06:24:37.000Z
src/detector.cpp
fntlnz/id-extractor
0c6ccfb2e6f16c932635a9a945d2664872906aa8
[ "MIT" ]
null
null
null
src/detector.cpp
fntlnz/id-extractor
0c6ccfb2e6f16c932635a9a945d2664872906aa8
[ "MIT" ]
null
null
null
#include "detector.h" Detector::Detector(cv::Mat img, double hessianThreshold) { this->img = img; this->opencv_detector = cv::xfeatures2d::SURF::create(hessianThreshold); } void Detector::detect() { this->opencv_detector->detectAndCompute(this->img, cv::Mat(), this->keypoints, this->descriptors); }
28
100
0.724026
fntlnz
137cb6be59724ac6ca269e106e19843daa4539d5
1,599
cpp
C++
src/dockerswarm.cpp
MassGrid/MassGrid
5634dda1b9997c3d230678b1b19b6af17b590a3d
[ "MIT" ]
18
2018-01-31T10:02:27.000Z
2021-04-16T14:22:31.000Z
src/dockerswarm.cpp
MassGrid/MassGrid
5634dda1b9997c3d230678b1b19b6af17b590a3d
[ "MIT" ]
null
null
null
src/dockerswarm.cpp
MassGrid/MassGrid
5634dda1b9997c3d230678b1b19b6af17b590a3d
[ "MIT" ]
14
2018-02-11T02:07:00.000Z
2022-03-18T10:28:06.000Z
#include "dockerswarm.h" void Swarm::DockerSwarm(const string& swarmData,Swarm &swarms) { // LogPrint("docker","Swarm::DockerSwarm docker json node\n"); try{ UniValue data(UniValue::VARR); if(!data.read(swarmData)){ LogPrint("docker","Swarm::DockerSwarm docker json error\n"); ...
39
99
0.58349
MassGrid
137dc9387be538a2a7f018b2c3cdc19334e0c56c
11,734
cpp
C++
src/drivers/yiear.cpp
gameblabla/mame_nspire
83dfe1606aba906bd28608f2cb8f0754492ac3da
[ "Unlicense" ]
8
2020-05-01T15:15:16.000Z
2021-05-30T18:49:15.000Z
src/drivers/yiear.cpp
gameblabla/mame_nspire
83dfe1606aba906bd28608f2cb8f0754492ac3da
[ "Unlicense" ]
null
null
null
src/drivers/yiear.cpp
gameblabla/mame_nspire
83dfe1606aba906bd28608f2cb8f0754492ac3da
[ "Unlicense" ]
5
2020-05-07T18:38:11.000Z
2021-08-03T12:57:41.000Z
#include "../vidhrdw/yiear.cpp" /*************************************************************************** Yie Ar Kung-Fu memory map (preliminary) enrique.sanchez@cs.us.es CPU: Motorola 6809 Normal 6809 IRQs must be generated each video frame (60 fps). The 6809 NMI is used for sound timing. 0000 R VLM50...
31.124668
117
0.654679
gameblabla
137df95e69ab968dd3d0dc1181671129253bb7d7
451
cpp
C++
src/tools/tools.cpp
InspectorSolaris/nd-engine
a8d63fe4bc0e57a96317adf015534d2e779ffcbb
[ "WTFPL" ]
null
null
null
src/tools/tools.cpp
InspectorSolaris/nd-engine
a8d63fe4bc0e57a96317adf015534d2e779ffcbb
[ "WTFPL" ]
null
null
null
src/tools/tools.cpp
InspectorSolaris/nd-engine
a8d63fe4bc0e57a96317adf015534d2e779ffcbb
[ "WTFPL" ]
null
null
null
#include "tools.hpp" namespace nd::src::tools { f64 getDt(const f64 min) noexcept { using namespace std; using namespace std::chrono; static auto time = high_resolution_clock::now(); const auto now = high_resolution_clock::now(); const auto dt = duration_cast<seco...
21.47619
68
0.603104
InspectorSolaris
13802e4d3b9dadc78a5fca529f7b05b9e18dc077
658
cpp
C++
sample/joystick/MyApp.cpp
RockyRocks/glbase
0b03e5216e5efd3060a5ddd8cf61fb733319af17
[ "IJG" ]
null
null
null
sample/joystick/MyApp.cpp
RockyRocks/glbase
0b03e5216e5efd3060a5ddd8cf61fb733319af17
[ "IJG" ]
null
null
null
sample/joystick/MyApp.cpp
RockyRocks/glbase
0b03e5216e5efd3060a5ddd8cf61fb733319af17
[ "IJG" ]
null
null
null
#include "MyApp.h" // single, static instance of our application static MyApp theApp; void MyApp::OnCreate() { if (!m_joystick.Open()) MsgPrintf("This sample needs a joystick!"); position[0]=position[1]=0.0f; for (int n=0;n<MAX_BUTTON;n++) button[n]=false; }//OnCreate MyApp & MyApp::Get() { return theApp; ...
19.939394
51
0.674772
RockyRocks
1385a43ee760faba8fc02144787193b5528ec1a8
1,323
hpp
C++
app/create_trading_db/include/offcenter/trading/createtradingdb/CreateTradingDBOptions.hpp
CodeRancher/offcenter_trading
68526fdc0f27d611f748b2fa20f49e743d3ee5eb
[ "Apache-2.0" ]
null
null
null
app/create_trading_db/include/offcenter/trading/createtradingdb/CreateTradingDBOptions.hpp
CodeRancher/offcenter_trading
68526fdc0f27d611f748b2fa20f49e743d3ee5eb
[ "Apache-2.0" ]
4
2021-12-27T17:56:21.000Z
2022-01-05T00:05:01.000Z
app/create_trading_db/include/offcenter/trading/createtradingdb/CreateTradingDBOptions.hpp
CodeRancher/offcenter_trading
68526fdc0f27d611f748b2fa20f49e743d3ee5eb
[ "Apache-2.0" ]
null
null
null
/** * Copyright 2021 Scott Brauer * * Licensed under the Apache License, Version 2.0 (the ); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writ...
24.962264
75
0.762661
CodeRancher
1385e5cf9d2f3c4326a8a419ca0c2f77393da857
4,977
cpp
C++
src/client.cpp
rafaelppires/sgx_lightweight_mapreruce
a25b58d5ad69d61e32546a43dc604e720ef95bb8
[ "Apache-2.0" ]
1
2020-12-11T03:15:58.000Z
2020-12-11T03:15:58.000Z
src/client.cpp
rafaelppires/sgx_lightweight_mapreruce
a25b58d5ad69d61e32546a43dc604e720ef95bb8
[ "Apache-2.0" ]
null
null
null
src/client.cpp
rafaelppires/sgx_lightweight_mapreruce
a25b58d5ad69d61e32546a43dc604e720ef95bb8
[ "Apache-2.0" ]
1
2019-09-03T02:31:08.000Z
2019-09-03T02:31:08.000Z
/** * MapReduce client - Subscribe reducced data * Publish code for Map, Reduce and Data **/ #include <iostream> #include <fstream> #include <sstream> #include <stdlib.h> #include <message.h> #include <client_protocol.h> #include <mrprotocol.h> #include <zhelpers.h> #include <argp.h> //-----...
35.297872
94
0.494876
rafaelppires
138670db81488c5a39eea0295f349114ab17dfeb
910
hpp
C++
src/bqt_layer.hpp
JadeMatrix/BQTDraw
329b015c45d8f151fde09b8f26aa7e0e8151b604
[ "Zlib" ]
null
null
null
src/bqt_layer.hpp
JadeMatrix/BQTDraw
329b015c45d8f151fde09b8f26aa7e0e8151b604
[ "Zlib" ]
null
null
null
src/bqt_layer.hpp
JadeMatrix/BQTDraw
329b015c45d8f151fde09b8f26aa7e0e8151b604
[ "Zlib" ]
null
null
null
#ifndef BQT_LAYER_HPP #define BQT_LAYER_HPP /* * bqt_sketch.hpp * * About * */ /* INCLUDES *******************************************************************//******************************************************************************/ #include "bqt_datastructures.hpp" #include <vector> #include "bqt_s...
21.666667
160
0.295604
JadeMatrix
138a86ccc0b99e677e84fa61c56cb460691d68a3
16,508
cpp
C++
packages/CLPBN/horus/HorusYap.cpp
denys-duchier/yap-6.3
97163fa150ba570e4ba2881646363e9877a07bcb
[ "Artistic-1.0-Perl", "ClArtistic" ]
2
2015-11-01T07:38:31.000Z
2016-03-30T18:05:28.000Z
packages/CLPBN/horus/HorusYap.cpp
denys-duchier/yap-6.3
97163fa150ba570e4ba2881646363e9877a07bcb
[ "Artistic-1.0-Perl", "ClArtistic" ]
null
null
null
packages/CLPBN/horus/HorusYap.cpp
denys-duchier/yap-6.3
97163fa150ba570e4ba2881646363e9877a07bcb
[ "Artistic-1.0-Perl", "ClArtistic" ]
null
null
null
#include <cstdlib> #include <vector> #include <iostream> #include <sstream> #include <YapInterface.h> #include "ParfactorList.h" #include "FactorGraph.h" #include "LiftedVe.h" #include "VarElim.h" #include "LiftedBp.h" #include "CountingBp.h" #include "BeliefProp.h" #include "ElimGraph.h" #include "BayesBall.h" u...
29.851718
78
0.65544
denys-duchier
138a9738117224552305d9f8005c5e6a02a06754
588
hpp
C++
MATLAB/Utilities/IO/VarianCBCT/XimPara.hpp
tsadakane/TIGRE
a853cd2d4a6bc9509c01414b85ca75b4448fd700
[ "BSD-3-Clause" ]
326
2016-07-01T10:48:09.000Z
2022-03-20T07:34:52.000Z
MATLAB/Utilities/IO/VarianCBCT/XimPara.hpp
tsadakane/TIGRE
a853cd2d4a6bc9509c01414b85ca75b4448fd700
[ "BSD-3-Clause" ]
311
2016-07-05T16:00:06.000Z
2022-03-30T12:14:55.000Z
MATLAB/Utilities/IO/VarianCBCT/XimPara.hpp
tsadakane/TIGRE
a853cd2d4a6bc9509c01414b85ca75b4448fd700
[ "BSD-3-Clause" ]
157
2016-08-08T12:13:09.000Z
2022-03-17T00:37:45.000Z
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <iostream> //typedef struct XimPara #ifndef STR_XIM #define STR_XIM //struct XimPara typedef struct XimPara { char FileName[256]; int ImgWidth; // Image Width int ImgHeight; // Image Height int PixelNO; int BytesPerPixel; // Determine how ...
20.275862
65
0.732993
tsadakane
138b7b6196c41532498823ac52122a6f08c69992
174
hpp
C++
headers/Simulators/ModelLoadSimulator.hpp
Gilqamesh/GameEngineDemo
796bb107df5c01b875c2ae73fcfd44e7c07e3a87
[ "MIT" ]
null
null
null
headers/Simulators/ModelLoadSimulator.hpp
Gilqamesh/GameEngineDemo
796bb107df5c01b875c2ae73fcfd44e7c07e3a87
[ "MIT" ]
null
null
null
headers/Simulators/ModelLoadSimulator.hpp
Gilqamesh/GameEngineDemo
796bb107df5c01b875c2ae73fcfd44e7c07e3a87
[ "MIT" ]
null
null
null
#ifndef MODELLOADSIMULATOR_HPP # define MODELLOADSIMULATOR_HPP # include "pch.hpp" namespace NAMESPACE { class ModelLoadSimulator { public: void main(); }; } #endif
9.666667
31
0.741379
Gilqamesh
ca5e0cf257dfdc1192f76a784250ddac75476081
2,803
cpp
C++
LibAudio/WASAPIDevice.cpp
ebragge/LibAudio
7848f257ba0ab83307e0498384c99469d7dedccb
[ "BSD-3-Clause" ]
2
2016-01-28T10:47:42.000Z
2016-05-10T07:45:39.000Z
LibAudio/WASAPIDevice.cpp
ebragge/LibAudio
7848f257ba0ab83307e0498384c99469d7dedccb
[ "BSD-3-Clause" ]
null
null
null
LibAudio/WASAPIDevice.cpp
ebragge/LibAudio
7848f257ba0ab83307e0498384c99469d7dedccb
[ "BSD-3-Clause" ]
null
null
null
#include "pch.h" #include "WASAPIDevice.h" using namespace LibAudio; WASAPIDevice::WASAPIDevice() : m_initialized(false) { } void WASAPIDevice::StopAsync() { if (Capture != nullptr) { Capture->StopCaptureAsync(); } } void WASAPIDevice::InitCaptureDevice(size_t id, DataCollector^ collector) { ...
24.80531
143
0.693899
ebragge
ca60f968abc4cb1646b9e36b4768f1389ad4d002
613
cpp
C++
src/logging/formatting_channel_logging.cpp
gbellizio/poco_showcase
f8974002d01a89149a6a50b4f676f421605f4524
[ "MIT" ]
null
null
null
src/logging/formatting_channel_logging.cpp
gbellizio/poco_showcase
f8974002d01a89149a6a50b4f676f421605f4524
[ "MIT" ]
null
null
null
src/logging/formatting_channel_logging.cpp
gbellizio/poco_showcase
f8974002d01a89149a6a50b4f676f421605f4524
[ "MIT" ]
null
null
null
// // Created by gennaro on 27/11/20. // #include <Poco/ConsoleChannel.h> #include <Poco/FormattingChannel.h> #include <Poco/Logger.h> #include <Poco/PatternFormatter.h> int main(int argc, char **argv) { auto &logger = Poco::Logger::get("SampleApp"); auto pattern = new Poco::PatternForma...
32.263158
96
0.672104
gbellizio
ca661eaf8e55b7f188391d1a3146e13ddfe93ccb
34,374
cpp
C++
tapi-master/unittests/libtapi/LinkerInterfaceFileTest_TBD_v1.cpp
JunyiXie/ld64
ffaa615b31ff1baa5d6249e4d9a6a21c2ae603ae
[ "Apache-2.0" ]
null
null
null
tapi-master/unittests/libtapi/LinkerInterfaceFileTest_TBD_v1.cpp
JunyiXie/ld64
ffaa615b31ff1baa5d6249e4d9a6a21c2ae603ae
[ "Apache-2.0" ]
null
null
null
tapi-master/unittests/libtapi/LinkerInterfaceFileTest_TBD_v1.cpp
JunyiXie/ld64
ffaa615b31ff1baa5d6249e4d9a6a21c2ae603ae
[ "Apache-2.0" ]
null
null
null
//===-- LinkerInterfaceFileTest_TBD_v1.cpp - Linker Interface File Test ---===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
43.732824
80
0.602141
JunyiXie
ca6840f3bfe127d7d52a92e48e146582ae9b9bf1
4,599
cpp
C++
src/Eigen-3.3/unsupported/test/cxx11_tensor_volume_patch.cpp
shareq2005/CarND-MPC-Project
f4094e8b446d2fac2ca0a4c5054d5058621595b0
[ "MIT" ]
3,457
2018-06-09T15:36:42.000Z
2020-06-01T22:09:25.000Z
src/Eigen-3.3/unsupported/test/cxx11_tensor_volume_patch.cpp
shareq2005/CarND-MPC-Project
f4094e8b446d2fac2ca0a4c5054d5058621595b0
[ "MIT" ]
1,057
2015-04-27T04:27:57.000Z
2022-03-31T13:14:59.000Z
src/Eigen-3.3/unsupported/test/cxx11_tensor_volume_patch.cpp
shareq2005/CarND-MPC-Project
f4094e8b446d2fac2ca0a4c5054d5058621595b0
[ "MIT" ]
1,380
2017-06-12T23:58:23.000Z
2022-03-31T14:52:48.000Z
#include "main.h" #include <Eigen/CXX11/Tensor> using Eigen::Tensor; static void test_single_voxel_patch() { Tensor<float, 5> tensor(4,2,3,5,7); tensor.setRandom(); Tensor<float, 5, RowMajor> tensor_row_major = tensor.swap_layout(); Tensor<float, 6> single_voxel_patch; single_voxel_patch = tensor.extract_...
40.699115
109
0.676451
shareq2005
ca6a0b6d9a2e68b8167525fa71d6a140769658d1
424
cpp
C++
reversevec.cpp
Mohamed742/C-AIMS-SA-2018
a59ba718872dfae0f8ee216b10dbb66db3e8a921
[ "Apache-2.0" ]
null
null
null
reversevec.cpp
Mohamed742/C-AIMS-SA-2018
a59ba718872dfae0f8ee216b10dbb66db3e8a921
[ "Apache-2.0" ]
null
null
null
reversevec.cpp
Mohamed742/C-AIMS-SA-2018
a59ba718872dfae0f8ee216b10dbb66db3e8a921
[ "Apache-2.0" ]
null
null
null
#include<iostream> #include <vector> #include <algorithm> #include<cmath> using namespace std; double rev1(vector<int>v) { vector<int> w; { for (int i = v.size()-1 ; 0<=i ;i--) w.push_back(v[i]); v = w; } for(auto &k : w) cout << k << endl; } int main() { vector<int> vec14...
14.62069
42
0.528302
Mohamed742
ca77deeb672f63241c5ea023db003d8cc0a21581
520
cpp
C++
plugins/Ninjas/scratchpad/find_nearest.cpp
rghvdberg/ninjas
089b7766c3a8c0ab66421c3d6e97e0a06908e4cc
[ "0BSD" ]
22
2017-11-11T10:29:37.000Z
2021-10-16T16:42:39.000Z
plugins/Ninjas/scratchpad/find_nearest.cpp
rghvdberg/ninjas
089b7766c3a8c0ab66421c3d6e97e0a06908e4cc
[ "0BSD" ]
26
2017-11-11T08:52:59.000Z
2018-01-18T11:34:12.000Z
plugins/Ninjas/scratchpad/find_nearest.cpp
rghvdberg/ninjas
089b7766c3a8c0ab66421c3d6e97e0a06908e4cc
[ "0BSD" ]
3
2017-11-30T20:30:58.000Z
2018-04-03T19:31:36.000Z
#include <iostream> #include <vector> #include <algorithm> template <typename T, typename U> auto find_nearest(T&& haystack, U&& needle) { auto distance_to_needle_comparator = [&](auto&& a, auto&& b) { return abs(a - needle) < abs(b - needle); }; return std::min_element(std::begin(haystack), s...
23.636364
69
0.6
rghvdberg
ca78933fd78339a655916b36910a5312220263ec
10,902
cpp
C++
gdal/frmts/pcidsk/sdk/segment/vecsegdataindex.cpp
cartosquare/gdal
c2ce185366e6276e77bbebbe9fe509055ed6d0fd
[ "MIT" ]
null
null
null
gdal/frmts/pcidsk/sdk/segment/vecsegdataindex.cpp
cartosquare/gdal
c2ce185366e6276e77bbebbe9fe509055ed6d0fd
[ "MIT" ]
null
null
null
gdal/frmts/pcidsk/sdk/segment/vecsegdataindex.cpp
cartosquare/gdal
c2ce185366e6276e77bbebbe9fe509055ed6d0fd
[ "MIT" ]
1
2021-11-21T02:33:51.000Z
2021-11-21T02:33:51.000Z
/****************************************************************************** * * Purpose: Implementation of the VecSegIndex class. * * This class is used to manage a vector segment data block index. There * will be two instances created, one for the record data (sec_record) and * one for the vertices (sec_ve...
34.830671
81
0.436801
cartosquare
ca7c17c03f468111787a73a6781f59c8fe223090
1,739
cpp
C++
oxygine/src/oxygine/Font.cpp
on-three/oxygine-framework
12afd02e155cfd502523bb76c9dc94ff59cafd53
[ "MIT" ]
null
null
null
oxygine/src/oxygine/Font.cpp
on-three/oxygine-framework
12afd02e155cfd502523bb76c9dc94ff59cafd53
[ "MIT" ]
null
null
null
oxygine/src/oxygine/Font.cpp
on-three/oxygine-framework
12afd02e155cfd502523bb76c9dc94ff59cafd53
[ "MIT" ]
null
null
null
#include "Font.h" #include "core/NativeTexture.h" namespace oxygine { Font::Font() : _ignoreOptions(true), _scale(1.0f), _sdf(false), _size(0), _baselineDistance(0) { } Font::~Font() { } void Font::init(const char* name, int realSize, int baselineDistance, int lineHeight, bool sdf) { ...
19.761364
99
0.525014
on-three
ca7fc3404e1bd3f3ba84676bfee89a0dc2975794
465
cpp
C++
Drakhtar/Telemetria/TrackerEvents/RoundEndEvent.cpp
CarlosMGM/Drakhtar_Telemetria
551e2e6bd1893f6d5e7d627838a71775ad0f4a41
[ "MIT" ]
null
null
null
Drakhtar/Telemetria/TrackerEvents/RoundEndEvent.cpp
CarlosMGM/Drakhtar_Telemetria
551e2e6bd1893f6d5e7d627838a71775ad0f4a41
[ "MIT" ]
null
null
null
Drakhtar/Telemetria/TrackerEvents/RoundEndEvent.cpp
CarlosMGM/Drakhtar_Telemetria
551e2e6bd1893f6d5e7d627838a71775ad0f4a41
[ "MIT" ]
null
null
null
#include "RoundEndEvent.h" RoundEndEvent::RoundEndEvent() : EndEvent(ROUND_END) {} std::string RoundEndEvent::toJson() { std::string str = ",\n"; str += " {\n"; str += R"( "Event Type": "Round End Event",)"; str += "\n" + EndEvent::toJson() + +",\n"; str += R"( "Round#": )" + std::to_string(rou...
25.833333
69
0.587097
CarlosMGM
ca8b90f8ccf2d1c7e64d954811cedb4ca3b5e287
170
cpp
C++
Tests/Tests/all_tests.cpp
CaptainKant/RottenFish
32f205b3447ddc1f8f569fcf282f5123dbd0f25d
[ "MIT" ]
null
null
null
Tests/Tests/all_tests.cpp
CaptainKant/RottenFish
32f205b3447ddc1f8f569fcf282f5123dbd0f25d
[ "MIT" ]
null
null
null
Tests/Tests/all_tests.cpp
CaptainKant/RottenFish
32f205b3447ddc1f8f569fcf282f5123dbd0f25d
[ "MIT" ]
null
null
null
// // Created by Emmanuel Cervetti on 03/10/2016. // #include "loading_check.cpp" #include "log2_check.cpp" #include "random_check.cpp" #include "rottenfish_check.cpp"
17
46
0.741176
CaptainKant
ca8fdd50fde80e3f8aa6586bcfb952c5ba5cb9e0
1,930
hpp
C++
src/RateLimiter.hpp
spebern/cpp-burst-pool-node
0cbf0759cd166ef7c3f850059180d3a8ceb158eb
[ "MIT" ]
null
null
null
src/RateLimiter.hpp
spebern/cpp-burst-pool-node
0cbf0759cd166ef7c3f850059180d3a8ceb158eb
[ "MIT" ]
null
null
null
src/RateLimiter.hpp
spebern/cpp-burst-pool-node
0cbf0759cd166ef7c3f850059180d3a8ceb158eb
[ "MIT" ]
2
2018-09-20T16:11:14.000Z
2018-12-12T08:46:30.000Z
#pragma once #include <unordered_map> #include <string> #include <memory> #include <boost/thread/thread.hpp> #include <stdint.h> #include <atomic> #include <chrono> class Bucket { private: std::atomic<double> _zero_time; public: Bucket(double zero_time = 0.0) : _zero_time(zero_time) {}; bool aquir...
30.15625
83
0.61658
spebern
ca926beadc631709832830a3bd0023f2b60577f2
51,586
cpp
C++
opencv/build/modules/rgbd/opencl_kernels_rgbd.cpp
soyyuz/opencv-contrib-ARM64
25386df773f88a071532ec69ff541c31e62ec8f2
[ "Apache-2.0" ]
null
null
null
opencv/build/modules/rgbd/opencl_kernels_rgbd.cpp
soyyuz/opencv-contrib-ARM64
25386df773f88a071532ec69ff541c31e62ec8f2
[ "Apache-2.0" ]
null
null
null
opencv/build/modules/rgbd/opencl_kernels_rgbd.cpp
soyyuz/opencv-contrib-ARM64
25386df773f88a071532ec69ff541c31e62ec8f2
[ "Apache-2.0" ]
1
2022-03-27T03:35:07.000Z
2022-03-27T03:35:07.000Z
// This file is auto-generated. Do not edit! #include "opencv2/core.hpp" #include "cvconfig.h" #include "opencl_kernels_rgbd.hpp" #ifdef HAVE_OPENCL namespace cv { namespace ocl { namespace rgbd { static const char* const moduleName = "rgbd"; struct cv::ocl::internal::ProgramEntry hash_tsdf_oclsrc={moduleName, "ha...
32.34232
133
0.64975
soyyuz
ca98e3df57f42bdc0418d395557fa9adc1abf9e7
13,242
hpp
C++
include/codegen/include/UnityEngine/RenderTexture.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
1
2021-11-12T09:29:31.000Z
2021-11-12T09:29:31.000Z
include/codegen/include/UnityEngine/RenderTexture.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
null
null
null
include/codegen/include/UnityEngine/RenderTexture.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
2
2021-10-03T02:14:20.000Z
2021-11-12T09:29:36.000Z
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:28 PM // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes // Including type: UnityEngine.Texture #include "UnityEngine/Texture.hpp" #include "utils/il2cpp-utils.hpp"...
58.078947
336
0.771485
Futuremappermydud
ca9af8873ded9de65dd6fb8ab5628b0e1d876763
3,489
cpp
C++
TensorShaderAvxBackend/Convolution/Dense/transposedense.cpp
tk-yoshimura/TensorShaderAVX
de47428efbeaa4df694e4a3584b0397162e711d9
[ "MIT" ]
null
null
null
TensorShaderAvxBackend/Convolution/Dense/transposedense.cpp
tk-yoshimura/TensorShaderAVX
de47428efbeaa4df694e4a3584b0397162e711d9
[ "MIT" ]
null
null
null
TensorShaderAvxBackend/Convolution/Dense/transposedense.cpp
tk-yoshimura/TensorShaderAVX
de47428efbeaa4df694e4a3584b0397162e711d9
[ "MIT" ]
null
null
null
#include "../../TensorShaderAvxBackend.h" using namespace System; __forceinline __m128 _mm256d_sum(__m256d hi, __m256d lo) { __m256d u = _mm256_hadd_pd(lo, hi); __m256d v = _mm256_hadd_pd(u, _mm256_setzero_pd()); __m128d w = _mm_add_pd(_mm256_extractf128_pd(v, 1), _mm256_castpd256_pd128(v)); return _...
44.164557
145
0.658068
tk-yoshimura
ca9b0401dbb5383b690a3430e65ded8f96ca0571
7,562
cpp
C++
src/ChildProcess.Native/Exports.cpp
asmichi/ChildProcess
f40fa535dd475cf45c003265a1e428a30bf5b005
[ "MIT" ]
16
2019-05-09T01:31:01.000Z
2022-02-24T12:31:50.000Z
src/ChildProcess.Native/Exports.cpp
asmichi/ChildProcess
f40fa535dd475cf45c003265a1e428a30bf5b005
[ "MIT" ]
null
null
null
src/ChildProcess.Native/Exports.cpp
asmichi/ChildProcess
f40fa535dd475cf45c003265a1e428a30bf5b005
[ "MIT" ]
2
2020-12-13T03:08:01.000Z
2021-01-30T21:54:41.000Z
// Copyright (c) @asmichi (https://github.com/asmichi). Licensed under the MIT License. See LICENCE in the project root for details. // Interface for the managed implementation. #include "AncillaryDataSocket.hpp" #include "Base.hpp" #include "MiscHelpers.hpp" #include "Request.hpp" #include "Service.hpp" #include "So...
24.472492
154
0.640571
asmichi
ca9bcae4b24183b5a47599116f02d13eafcca560
22,049
cpp
C++
12/moon_simulator.t.cpp
ComicSansMS/AdventOfCode2019
7ca0c57bf28ee8edab04c31a36dbd34d66d7f816
[ "Unlicense" ]
3
2019-12-01T17:37:33.000Z
2021-12-14T10:12:09.000Z
12/moon_simulator.t.cpp
ComicSansMS/AdventOfCode2019
7ca0c57bf28ee8edab04c31a36dbd34d66d7f816
[ "Unlicense" ]
null
null
null
12/moon_simulator.t.cpp
ComicSansMS/AdventOfCode2019
7ca0c57bf28ee8edab04c31a36dbd34d66d7f816
[ "Unlicense" ]
null
null
null
#include <moon_simulator.hpp> #include <catch.hpp> #include <sstream> #include <vector> TEST_CASE("Moon Simulator") { SECTION("Vector3 Construction") { CHECK(Vector3().x == 0); CHECK(Vector3().y == 0); CHECK(Vector3().z == 0); CHECK(Vector3(1, 2, 3).x == 1); CHECK(Vec...
42.813592
81
0.42655
ComicSansMS
ca9eb80224812236843df2cf2cf9f84ba3b99322
10,588
cc
C++
modules/planning/planning_base.cc
Ngugisenior/apollo
b752a7fa8d63e398cd8ab70ba12f879c11e1039d
[ "Apache-2.0" ]
null
null
null
modules/planning/planning_base.cc
Ngugisenior/apollo
b752a7fa8d63e398cd8ab70ba12f879c11e1039d
[ "Apache-2.0" ]
null
null
null
modules/planning/planning_base.cc
Ngugisenior/apollo
b752a7fa8d63e398cd8ab70ba12f879c11e1039d
[ "Apache-2.0" ]
null
null
null
/****************************************************************************** * Copyright 2018 The Apollo Authors. 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 ...
38.926471
80
0.694277
Ngugisenior
ca9fbff61a38c4235ec462243c039a6f5a9d092a
1,224
cpp
C++
src/hssh/global_topological/global_place.cpp
anuranbaka/Vulcan
56339f77f6cf64b5fda876445a33e72cd15ce028
[ "MIT" ]
3
2020-03-05T23:56:14.000Z
2021-02-17T19:06:50.000Z
src/hssh/global_topological/global_place.cpp
anuranbaka/Vulcan
56339f77f6cf64b5fda876445a33e72cd15ce028
[ "MIT" ]
1
2021-03-07T01:23:47.000Z
2021-03-07T01:23:47.000Z
src/hssh/global_topological/global_place.cpp
anuranbaka/Vulcan
56339f77f6cf64b5fda876445a33e72cd15ce028
[ "MIT" ]
1
2021-03-03T07:54:16.000Z
2021-03-03T07:54:16.000Z
/* Copyright (C) 2010-2019, The Regents of The University of Michigan. All rights reserved. This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an MIT-style License that can be foun...
23.09434
103
0.72549
anuranbaka
caa0a1713e1b14054ef2f12045dde429df23fb45
8,647
cc
C++
example/http_c++/http_server.cc
flare-rpc/flare-cpp
c1630c7eb8bae0a0b0cee6ec3f13f1babeaef950
[ "Apache-2.0" ]
3
2022-01-23T17:55:24.000Z
2022-03-23T12:55:18.000Z
example/http_c++/http_server.cc
flare-rpc/flare-cpp
c1630c7eb8bae0a0b0cee6ec3f13f1babeaef950
[ "Apache-2.0" ]
null
null
null
example/http_c++/http_server.cc
flare-rpc/flare-cpp
c1630c7eb8bae0a0b0cee6ec3f13f1babeaef950
[ "Apache-2.0" ]
null
null
null
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
40.218605
94
0.588412
flare-rpc
caa511c164e2846dfa02c78c7cdaa3d3c69cd6a1
1,648
hpp
C++
Sources/inc/Boss.hpp
Tifox/Grog-Knight
377a661286cda7ee3b2b2d0099641897938c2f8f
[ "Apache-2.0" ]
null
null
null
Sources/inc/Boss.hpp
Tifox/Grog-Knight
377a661286cda7ee3b2b2d0099641897938c2f8f
[ "Apache-2.0" ]
null
null
null
Sources/inc/Boss.hpp
Tifox/Grog-Knight
377a661286cda7ee3b2b2d0099641897938c2f8f
[ "Apache-2.0" ]
null
null
null
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
27.932203
64
0.716626
Tifox
caa7720cf58d7a104c82067b4594b30a42332992
3,750
cpp
C++
src/Window/Mouse.cpp
razerx100/Gaia
4e58cbb00d5f8b5d1c27fae461c6136ff54bee9b
[ "MIT" ]
null
null
null
src/Window/Mouse.cpp
razerx100/Gaia
4e58cbb00d5f8b5d1c27fae461c6136ff54bee9b
[ "MIT" ]
null
null
null
src/Window/Mouse.cpp
razerx100/Gaia
4e58cbb00d5f8b5d1c27fae461c6136ff54bee9b
[ "MIT" ]
null
null
null
#include <Mouse.hpp> Mouse::Mouse() : m_x(0), m_y(0), m_inWindow(false), m_leftPressed(false), m_middlePressed(false), m_rightPressed(false), m_wheelDeltaCarry(0), m_rawEnabled(false) {} std::pair<int, int> Mouse::GetPos() const noexcept { return { m_x, m_y }; } int Mouse::GetPosX() const no...
20.604396
71
0.6736
razerx100
caaa38fe5b8afff309e02056ead5e2c6d1ca38eb
574
cpp
C++
code/save_before/13.cpp
EGyeom/BlogMaker
7b319a19bb23786c55a0539be86e1c3246e62240
[ "MIT" ]
1
2021-06-03T13:44:27.000Z
2021-06-03T13:44:27.000Z
code/save_before/13.cpp
EGyeom/BlogMaker
7b319a19bb23786c55a0539be86e1c3246e62240
[ "MIT" ]
null
null
null
code/save_before/13.cpp
EGyeom/BlogMaker
7b319a19bb23786c55a0539be86e1c3246e62240
[ "MIT" ]
null
null
null
// 두 정수 a, b가 주어졌을 때 a와 b 사이에 속한 모든 정수의 합을 리턴하는 함수, solution을 완성하세요. // 예를 들어 a = 3, b = 5인 경우, 3 + 4 + 5 = 12이므로 12를 리턴합니다. // 제한 조건 // a와 b가 같은 경우는 둘 중 아무 수나 리턴하세요. // a와 b는 -10,000,000 이상 10,000,000 이하인 정수입니다. // a와 b의 대소관계는 정해져있지 않습니다. // 입출력 예 // a b return // 3 5 12 // 3 3 3 // 5 3 12 #include <stdio.h> #includ...
18.516129
68
0.503484
EGyeom
caab14b7f57a17bd957577fe5e79794b26f09e20
1,668
cpp
C++
ysu/lib/rate_limiting.cpp
lik2129/ysu_coin
47e40ed5d4000fc59566099929bd08a9ae16a4c1
[ "BSD-3-Clause" ]
null
null
null
ysu/lib/rate_limiting.cpp
lik2129/ysu_coin
47e40ed5d4000fc59566099929bd08a9ae16a4c1
[ "BSD-3-Clause" ]
null
null
null
ysu/lib/rate_limiting.cpp
lik2129/ysu_coin
47e40ed5d4000fc59566099929bd08a9ae16a4c1
[ "BSD-3-Clause" ]
null
null
null
#include <ysu/lib/locks.hpp> #include <ysu/lib/rate_limiting.hpp> #include <ysu/lib/utility.hpp> #include <limits> ysu::rate::token_bucket::token_bucket (size_t max_token_count_a, size_t refill_rate_a) { // A token count of 0 indicates unlimited capacity. We use 1e9 as // a sentinel, allowing largest burst to still...
30.888889
146
0.736811
lik2129
caaeda5398432aa0d6b25f1e45394e0dc2a92fd0
44,238
cpp
C++
third_party/houdini/gusd/GT_Utils.cpp
mistafunk/USD
be1a80f8cb91133ac75e1fc2a2e1832cd10d91c8
[ "BSD-2-Clause" ]
2
2020-02-17T11:13:02.000Z
2020-02-17T14:51:01.000Z
third_party/houdini/gusd/GT_Utils.cpp
mistafunk/USD
be1a80f8cb91133ac75e1fc2a2e1832cd10d91c8
[ "BSD-2-Clause" ]
null
null
null
third_party/houdini/gusd/GT_Utils.cpp
mistafunk/USD
be1a80f8cb91133ac75e1fc2a2e1832cd10d91c8
[ "BSD-2-Clause" ]
null
null
null
// // Copyright 2017 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
33.615502
89
0.602988
mistafunk
cab07ed8404b350afd07da4e95586d614cdaa107
870
hpp
C++
include/miok/package.hpp
michaelbrockus/bunny-package-cpp
50774a65dad10dda3e61f803898659a6eca5ec58
[ "Apache-2.0" ]
null
null
null
include/miok/package.hpp
michaelbrockus/bunny-package-cpp
50774a65dad10dda3e61f803898659a6eca5ec58
[ "Apache-2.0" ]
null
null
null
include/miok/package.hpp
michaelbrockus/bunny-package-cpp
50774a65dad10dda3e61f803898659a6eca5ec58
[ "Apache-2.0" ]
null
null
null
// // file: package.hpp // author: Michael Brockus // gmail: <michaelbrockus@gmail.com> #ifndef MIOK_PACKAGE_HPP #define MIOK_PACKAGE_HPP // // Macros to control the visibility of functions provided by this package // #ifdef BUILDING_MIOK_PACKAGE #define MIOK_PUBLIC __attribute__((visibility("default"))) #else #defin...
24.857143
73
0.726437
michaelbrockus
cab2eadca09249fd737bc573bef98b810765ddec
164,513
cxx
C++
PWGCF/FEMTOSCOPY/PLamAnalysisPP/AliAnalysisTaskPLFemto.cxx
wiechula/AliPhysics
6c5c45a5c985747ee82328d8fd59222b34529895
[ "BSD-3-Clause" ]
null
null
null
PWGCF/FEMTOSCOPY/PLamAnalysisPP/AliAnalysisTaskPLFemto.cxx
wiechula/AliPhysics
6c5c45a5c985747ee82328d8fd59222b34529895
[ "BSD-3-Clause" ]
null
null
null
PWGCF/FEMTOSCOPY/PLamAnalysisPP/AliAnalysisTaskPLFemto.cxx
wiechula/AliPhysics
6c5c45a5c985747ee82328d8fd59222b34529895
[ "BSD-3-Clause" ]
null
null
null
/* ************************************************************************** * Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributo...
39.470489
206
0.699015
wiechula
cabe427a88dc37e6fb397f850445d187c81bc709
2,578
hpp
C++
src/mlpack/methods/ann/activation_functions/tanh_exponential_function.hpp
laszlzso/mlpack
52e123e56792638c957d0229b001ae14a9e94a75
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
4
2019-07-09T21:52:01.000Z
2020-07-29T19:14:33.000Z
src/mlpack/methods/ann/activation_functions/tanh_exponential_function.hpp
laszlzso/mlpack
52e123e56792638c957d0229b001ae14a9e94a75
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
4
2020-06-21T17:36:46.000Z
2020-08-07T07:16:01.000Z
src/mlpack/methods/ann/activation_functions/tanh_exponential_function.hpp
laszlzso/mlpack
52e123e56792638c957d0229b001ae14a9e94a75
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
/** * @file methods/ann/activation_functions/tanh_exponential_function.hpp * @author Mayank Raj * * Definition and implementation of the Tanh exponential function. * * For more information see the following paper * * @code * @misc{The Institution of Engineering and Technology 2015 , * title = {TanhExp: A ...
26.57732
114
0.658262
laszlzso
cabfa7f78fc24b397244116e491be2fb8227f008
5,127
cc
C++
design_patterns/algorithms/algorithm.cc
fetaxyu/design-patterns
4e1a4d07ab928ca72ec370608cadf0824c41915e
[ "Apache-2.0" ]
null
null
null
design_patterns/algorithms/algorithm.cc
fetaxyu/design-patterns
4e1a4d07ab928ca72ec370608cadf0824c41915e
[ "Apache-2.0" ]
null
null
null
design_patterns/algorithms/algorithm.cc
fetaxyu/design-patterns
4e1a4d07ab928ca72ec370608cadf0824c41915e
[ "Apache-2.0" ]
null
null
null
/* Copyleft 2018 The design-patterns Authors. Some Rights Reserved. @Author: fetaxyu @Date: 2018-11-14 Email: fetaxyu@gmail.com ===============================================================*/ #include <iostream> #include "design_patterns/algorithms/algorithm.h" namespace solution { bool Find(int target, std::vec...
17.989474
77
0.55237
fetaxyu
cac1147091236a13651345a043bd327a58d9b656
488
cpp
C++
problems/codeforces/1260/c-infinite-fence/code.cpp
brunodccarvalho/competitive
4177c439174fbe749293b9da3445ce7303bd23c2
[ "MIT" ]
7
2020-10-15T22:37:10.000Z
2022-02-26T17:23:49.000Z
problems/codeforces/1260/c-infinite-fence/code.cpp
brunodccarvalho/competitive
4177c439174fbe749293b9da3445ce7303bd23c2
[ "MIT" ]
null
null
null
problems/codeforces/1260/c-infinite-fence/code.cpp
brunodccarvalho/competitive
4177c439174fbe749293b9da3445ce7303bd23c2
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; #define long int64_t // ***** auto solve() { long r, b, k; cin >> r >> b >> k; long g = gcd(r, b); if (r > (k - 1) * b + g || b > (k - 1) * r + g) { return false; } else { return true; } } // ***** int main() { ios::sync_wit...
15.741935
53
0.428279
brunodccarvalho
cac29ccbd066c0503ed280bd4b47577e260c6605
6,422
cpp
C++
src/TextField.cpp
moebiussurfing/ofxSimpleFloatingGui
67777c46c9aea920a81bc7510be69b1865adb390
[ "MIT" ]
4
2019-08-21T05:01:51.000Z
2020-05-10T21:50:32.000Z
src/TextField.cpp
moebiussurfing/ofxSimpleFloatingGui
67777c46c9aea920a81bc7510be69b1865adb390
[ "MIT" ]
null
null
null
src/TextField.cpp
moebiussurfing/ofxSimpleFloatingGui
67777c46c9aea920a81bc7510be69b1865adb390
[ "MIT" ]
1
2020-05-08T19:49:45.000Z
2020-05-08T19:49:45.000Z
#include "TextField.h" TextField::TextField() { } /// setup methods void TextField::setup(ofTrueTypeFont _stringFont){ setup(10, _stringFont); } void TextField::setup(int _maxChar, ofTrueTypeFont _stringFont){ setup(" ", _maxChar, _stringFont); } void TextField::setup(string _displayedString, int _maxChar,...
30.436019
153
0.605263
moebiussurfing
cac3badb523262663820b93e2527588f49be4923
5,311
cc
C++
mace/ops/arm/fp32/activation.cc
WeipengChan/mace
a610d506592892007be538e71ca1daef07c7857b
[ "Apache-2.0" ]
1
2018-12-19T02:48:20.000Z
2018-12-19T02:48:20.000Z
mace/ops/arm/fp32/activation.cc
WeipengChan/mace
a610d506592892007be538e71ca1daef07c7857b
[ "Apache-2.0" ]
null
null
null
mace/ops/arm/fp32/activation.cc
WeipengChan/mace
a610d506592892007be538e71ca1daef07c7857b
[ "Apache-2.0" ]
null
null
null
// Copyright 2019 The MACE Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
28.86413
79
0.555639
WeipengChan
cac3c63af218479a2bac860d436966698c990997
5,114
cpp
C++
EOSAI/EOSAIDesire2.cpp
BritClousing/EOSAI
c147500d223c361dce2e32d6547aaa234c07d472
[ "MIT" ]
1
2019-05-22T12:41:38.000Z
2019-05-22T12:41:38.000Z
EOSAI/EOSAIDesire2.cpp
BritClousing/EOSAI
c147500d223c361dce2e32d6547aaa234c07d472
[ "MIT" ]
null
null
null
EOSAI/EOSAIDesire2.cpp
BritClousing/EOSAI
c147500d223c361dce2e32d6547aaa234c07d472
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "EOSAIDesire2.h" #include "EOSAIUnitTemplate.h" //#include "WorldDescPlayer.h" //#include "WorldDescServer.h" //#include "WorldDescPlayerProxy.h" #include "EOSAIBrain.h" #include "EOSAICommonData.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #en...
27.945355
133
0.779625
BritClousing
cac62a1d81e44e4996699a7abf2c890e742df79b
6,100
cpp
C++
utilities/msmonitor/gui/QMSMFormMeasurementAbstract.cpp
akiml/ampehre
383a863442574ea2e6a6ac853a9b99e153daeccf
[ "BSD-2-Clause" ]
3
2016-01-20T13:41:52.000Z
2018-04-10T17:50:49.000Z
utilities/msmonitor/gui/QMSMFormMeasurementAbstract.cpp
akiml/ampehre
383a863442574ea2e6a6ac853a9b99e153daeccf
[ "BSD-2-Clause" ]
null
null
null
utilities/msmonitor/gui/QMSMFormMeasurementAbstract.cpp
akiml/ampehre
383a863442574ea2e6a6ac853a9b99e153daeccf
[ "BSD-2-Clause" ]
null
null
null
/* * QMSMFormMeasurementAbstract.cpp * * Copyright (C) 2015, Achim Lösch <achim.loesch@upb.de>, Christoph Knorr <cknorr@mail.uni-paderborn.de> * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. * * encoding: UTF-8 ...
29.61165
114
0.715902
akiml
cac72302c62640db650770ad51b5ea40af7e9a44
11,092
hpp
C++
agency/cuda/execution/detail/kernel/bulk_then_execute_kernel.hpp
ccecka/agency
729f5346e842c9cef3ad6f34d18d17a96a001a75
[ "BSD-3-Clause" ]
null
null
null
agency/cuda/execution/detail/kernel/bulk_then_execute_kernel.hpp
ccecka/agency
729f5346e842c9cef3ad6f34d18d17a96a001a75
[ "BSD-3-Clause" ]
null
null
null
agency/cuda/execution/detail/kernel/bulk_then_execute_kernel.hpp
ccecka/agency
729f5346e842c9cef3ad6f34d18d17a96a001a75
[ "BSD-3-Clause" ]
null
null
null
#pragma once #include <agency/detail/config.hpp> #include <agency/cuda/execution/detail/kernel/launch_kernel.hpp> #include <agency/cuda/execution/detail/kernel/on_chip_shared_parameter.hpp> #include <agency/cuda/device.hpp> #include <agency/cuda/detail/future/async_future.hpp> #include <memory> namespace agency { nam...
48.017316
261
0.79625
ccecka
cac731ec9bad23c1f9d2a6d5ce9afce112c96f03
1,602
cpp
C++
src/blocks/shovel.cpp
ondralukes/OpenGLCraft
8384fc70c02dddcf593a2e6aab6c1cd7d0ba38a3
[ "MIT" ]
1
2020-01-27T18:11:13.000Z
2020-01-27T18:11:13.000Z
src/blocks/shovel.cpp
ondralukes/OpenGLCraft
8384fc70c02dddcf593a2e6aab6c1cd7d0ba38a3
[ "MIT" ]
12
2020-01-22T09:16:29.000Z
2020-02-10T21:37:50.000Z
src/blocks/shovel.cpp
ondralukes/OpenGLCraft
8384fc70c02dddcf593a2e6aab6c1cd7d0ba38a3
[ "MIT" ]
null
null
null
#include "shovel.hpp" using namespace Blocks; WoodenShovel::WoodenShovel() : Block("textures/woodenShovel.dds"){ data.type = WOODEN_SHOVEL; toolType = SHOVEL; toolLevel = 1.0f; hp = 50; maxStack = 1; drawFlat = true; fuelValue = 0.15f; } void WoodenShovel::save(){ if(data.dataPos == 0){ data.data...
18.847059
69
0.654806
ondralukes
cac85812ef474b9f1ddf4c50d8e5d72e6462bd81
2,860
cpp
C++
graph-source-code/225-D/12319993.cpp
AmrARaouf/algorithm-detection
59f3028d2298804870b32729415d71eec6116557
[ "MIT" ]
null
null
null
graph-source-code/225-D/12319993.cpp
AmrARaouf/algorithm-detection
59f3028d2298804870b32729415d71eec6116557
[ "MIT" ]
null
null
null
graph-source-code/225-D/12319993.cpp
AmrARaouf/algorithm-detection
59f3028d2298804870b32729415d71eec6116557
[ "MIT" ]
null
null
null
//Language: GNU C++ #include <stdio.h> #include <set> #include <queue> #include <algorithm> using namespace std; int n,m,res=-1; int dx[4]={1,0,-1,0}; int dy[4]={0,1,0,-1}; set<int> v; struct State{ int steps; char a[15][15]; int hash(){ int res=0; for(int i=0;i<n;i+...
23.636364
68
0.334965
AmrARaouf
cacb1e31443fab418f88f96d7d86e355005af0be
579
cpp
C++
src/page_02/task076.cpp
berlios/pe
5edd686481666c86a14804cfeae354a267d468be
[ "MIT" ]
null
null
null
src/page_02/task076.cpp
berlios/pe
5edd686481666c86a14804cfeae354a267d468be
[ "MIT" ]
null
null
null
src/page_02/task076.cpp
berlios/pe
5edd686481666c86a14804cfeae354a267d468be
[ "MIT" ]
null
null
null
#include <vector> #include "base/task.h" int CountNumberOfPartitions(int remaining, std::vector<int>* sequence) { if (remaining == 0) { return 1; } int sum = 0; int max = sequence->back(); for (int i = 1; i <= max && i <= remaining; ++i) { sequence->push_back(i); sum += CountNumberOfPartitions(...
19.965517
72
0.599309
berlios
cace21609f44f0cb375f10b09fdf0a83c31efd60
107
cpp
C++
src/server.cpp
MlsDmitry/RakNet-samples
05873aecb5c8dac0c0f822845c764bd5f8dc6a6d
[ "MIT" ]
null
null
null
src/server.cpp
MlsDmitry/RakNet-samples
05873aecb5c8dac0c0f822845c764bd5f8dc6a6d
[ "MIT" ]
null
null
null
src/server.cpp
MlsDmitry/RakNet-samples
05873aecb5c8dac0c0f822845c764bd5f8dc6a6d
[ "MIT" ]
null
null
null
// // server.cpp // cserver // // Created by Dmitry Molokovich on 02/04/2021. // #include "server.hpp"
11.888889
47
0.626168
MlsDmitry
caceeab17b19fa90797e3aba166b0bb867d0c05e
35,618
cpp
C++
LGTV Companion Service/Service.cpp
dechamps/LGTVCompanion
9c68d79c3a1314c7064bcebb712684dbd1a305c7
[ "MIT" ]
null
null
null
LGTV Companion Service/Service.cpp
dechamps/LGTVCompanion
9c68d79c3a1314c7064bcebb712684dbd1a305c7
[ "MIT" ]
null
null
null
LGTV Companion Service/Service.cpp
dechamps/LGTVCompanion
9c68d79c3a1314c7064bcebb712684dbd1a305c7
[ "MIT" ]
null
null
null
// See LGTV Companion UI.cpp for additional details #include "Service.h" using namespace std; using json = nlohmann::json; //globals SERVICE_STATUS gSvcStatus; SERVICE_STATUS_HANDLE gSvcStatusHandle; HANDLE ghSvcStopEvent = NULL; HPOWERNOTIFY gPs1; json jsonP...
32.707071
201
0.539952
dechamps
cad5b9bee2ed5bd54759e2842da259afa0d13d30
648
cpp
C++
src/display_diff_example.cpp
meconlen/stringAlgorithms
102357edc78845a361b8420791b353699acdd4fb
[ "BSD-2-Clause" ]
1
2018-01-21T13:36:49.000Z
2018-01-21T13:36:49.000Z
src/display_diff_example.cpp
meconlen/stringAlgorithms
102357edc78845a361b8420791b353699acdd4fb
[ "BSD-2-Clause" ]
null
null
null
src/display_diff_example.cpp
meconlen/stringAlgorithms
102357edc78845a361b8420791b353699acdd4fb
[ "BSD-2-Clause" ]
null
null
null
#include <config.h> #include <string> #include <vector> #include "needlemanwunsch.hpp" #include "stringoutput.hpp" using stringAlgorithms::NeedlemanWunsch; using stringAlgorithms::display_diff; using stringAlgorithms::scoring::plus_minus_one; int main(int argc, char *argv[]) { std::vector<uint64_t> x = { 1, 2,...
24
139
0.679012
meconlen