hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
108
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
330k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
0.99
author_id
stringlengths
2
40
b0403fdd503b27edd43428b0fd39059b82553bfc
3,866
cxx
C++
dcwapd.arrisxb3/tr181_configuration_provider.cxx
ewsi/dcwapd
7faad274fff41de58f1678cdc2c10c34a05981f2
[ "Apache-2.0" ]
null
null
null
dcwapd.arrisxb3/tr181_configuration_provider.cxx
ewsi/dcwapd
7faad274fff41de58f1678cdc2c10c34a05981f2
[ "Apache-2.0" ]
7
2019-09-25T15:45:40.000Z
2020-07-04T16:02:46.000Z
dcwapd.arrisxb3/tr181_configuration_provider.cxx
ewsi/dcwapd
7faad274fff41de58f1678cdc2c10c34a05981f2
[ "Apache-2.0" ]
1
2019-09-17T17:35:24.000Z
2019-09-17T17:35:24.000Z
#include "./tr181_configuration_provider.h" #include "ccspwrapper/tr181_collection_registry.h" #include "dcw/dcwlog.h" #include <cstring> Tr181ConfigurationProvider::Tr181ConfigurationProvider() : _stationTelemetry(_singleNetwork), _ccspAbstractor("dcwapd.ccsp.cfg.xml", *this), Xb3(_singleNetwork, _ccspAbstr...
32.216667
130
0.755044
ewsi
b044d6e87799bd12afb1357043ed4ef81fb6a52d
1,271
cpp
C++
Doom/src/Doom/FileDialogs/FileDialogs.cpp
Shturm0weak/OpenGL_Engine
6e6570f8dd9000724274942fff5a100f0998b780
[ "MIT" ]
126
2020-10-20T21:39:53.000Z
2022-01-25T14:43:44.000Z
Doom/src/Doom/FileDialogs/FileDialogs.cpp
Shturm0weak/2D_OpenGL_Engine
6e6570f8dd9000724274942fff5a100f0998b780
[ "MIT" ]
2
2021-01-07T17:29:19.000Z
2021-08-14T14:04:28.000Z
Doom/src/Doom/FileDialogs/FileDialogs.cpp
Shturm0weak/2D_OpenGL_Engine
6e6570f8dd9000724274942fff5a100f0998b780
[ "MIT" ]
16
2021-01-09T09:08:40.000Z
2022-01-25T14:43:46.000Z
#include "pch.h" #include "FileDialogs.h" #include <sstream> #include <commdlg.h> std::optional<std::string> Doom::FileDialogs::OpenFile(const char* filter) { OPENFILENAMEA ofn; CHAR szFile[260] = { 0 }; ZeroMemory(&ofn, sizeof(OPENFILENAME)); ofn.lStructSize = sizeof(OPENFILENAME); ofn.hwndOwner = glfwGetWin32Wi...
31
74
0.737215
Shturm0weak
b04b67a4acc949e8bda6b37225dae5735bd6c651
16,487
cpp
C++
detection/src/asms/colotracker.cpp
yongheng1991/multiple_object_tracking_in_RGB-D_camera_network
88143b437df2198a50ef7b223db58ed35b0bcfa4
[ "BSD-3-Clause" ]
1
2021-05-14T08:48:43.000Z
2021-05-14T08:48:43.000Z
detection/src/asms/colotracker.cpp
yongheng1991/multiple_object_tracking_in_RGB-D_camera_network
88143b437df2198a50ef7b223db58ed35b0bcfa4
[ "BSD-3-Clause" ]
null
null
null
detection/src/asms/colotracker.cpp
yongheng1991/multiple_object_tracking_in_RGB-D_camera_network
88143b437df2198a50ef7b223db58ed35b0bcfa4
[ "BSD-3-Clause" ]
null
null
null
#include "open_ptrack/asms/colotracker.h" #include <iostream> #include <fstream> void ColorTracker::init(cv::Mat & img, int x1, int y1, int x2, int y2) { im1 = cv::Mat( img.rows, img.cols, CV_8UC1 ); im2 = cv::Mat( img.rows, img.cols, CV_8UC1 ); im3 = cv::Mat( img.rows, img.cols, CV_8UC1 ); //boundary...
31.46374
143
0.510827
yongheng1991
b053530e4184652fd53cba035bd19de4dbba1bbb
171
hpp
C++
include/DefaultConstructible.hpp
jharmer95/cpp_named_concepts
6cf81562f893b03baf365d5a9dc8b3f0f828fd1a
[ "CC0-1.0" ]
null
null
null
include/DefaultConstructible.hpp
jharmer95/cpp_named_concepts
6cf81562f893b03baf365d5a9dc8b3f0f828fd1a
[ "CC0-1.0" ]
null
null
null
include/DefaultConstructible.hpp
jharmer95/cpp_named_concepts
6cf81562f893b03baf365d5a9dc8b3f0f828fd1a
[ "CC0-1.0" ]
null
null
null
#pragma once #include <type_traits> namespace concepts { template<typename T> concept DefaultConstructible = std::is_default_constructible_v<T>; } // namespace concepts
17.1
66
0.795322
jharmer95
b05567b443dac3a182659a082d26c6f3cf55f145
2,763
cpp
C++
app/src/main/jni/SourceFiles/Vertices.cpp
simonides/OpenGL_ES_Example
be193e2dcc5c308cc8341b27e0051b347878670a
[ "Apache-2.0" ]
null
null
null
app/src/main/jni/SourceFiles/Vertices.cpp
simonides/OpenGL_ES_Example
be193e2dcc5c308cc8341b27e0051b347878670a
[ "Apache-2.0" ]
null
null
null
app/src/main/jni/SourceFiles/Vertices.cpp
simonides/OpenGL_ES_Example
be193e2dcc5c308cc8341b27e0051b347878670a
[ "Apache-2.0" ]
null
null
null
// // Created by Simon on 15.04.2016. // #include "../HeaderFiles/Vertices.h" const GLfloat cubeColoredVertex[] = { // X y z u v r g b //back -1, -1, -1, 1.0f, 1.0f, 1.f, 0.f, 0.f, +1, -1, -1, 0.0f, 1.0f, 1.f, 0.f, 0.f, +1, +1, -1, 0.0f, 0.0f,...
32.127907
55
0.336229
simonides
b056edf7320c15d9f6c5f0fdea9eaebbf41b03a7
422
cpp
C++
src/engine/sound.cpp
nekitu/shmup
2d2c24ff8a0fc363dbac261be52a6664d586a46a
[ "MIT" ]
2
2019-03-05T13:10:14.000Z
2019-11-28T11:02:00.000Z
src/engine/sound.cpp
nekitu/shmup
2d2c24ff8a0fc363dbac261be52a6664d586a46a
[ "MIT" ]
13
2020-02-05T10:08:45.000Z
2020-05-08T00:43:13.000Z
src/engine/sound.cpp
nekitu/shmup
2d2c24ff8a0fc363dbac261be52a6664d586a46a
[ "MIT" ]
null
null
null
#include "sound.h" #include <SDL_mixer.h> #include "resources/sound_resource.h" namespace engine { bool Sound::play(int loops) { if (!soundResource) return false; if (Mix_PlayChannel((int)channel, soundResource->wave, loops) == -1) return false; return true; } void Sound::stop() { Mix_Hal...
14.551724
70
0.656398
nekitu
b0585d4146358f7b86fc3ea99c932ecc4129e36a
260
cpp
C++
QCURL.cpp
quantumcheese/CFRaii
397b38ba5138cd3896ce4d9842918e7fb57e0198
[ "MIT" ]
3
2015-01-05T00:57:03.000Z
2015-11-09T14:08:40.000Z
QCURL.cpp
quantumcheese/CFRaii
397b38ba5138cd3896ce4d9842918e7fb57e0198
[ "MIT" ]
null
null
null
QCURL.cpp
quantumcheese/CFRaii
397b38ba5138cd3896ce4d9842918e7fb57e0198
[ "MIT" ]
null
null
null
/* * QCURL.cpp * CFRaii * * Copyright (c) 2009-2010 Richard A. Brown * * See license.txt for licensing terms and conditions. */ #include "QCURL.h" BEGIN_QC_NAMESPACE void QCURL::show() const { #ifndef NDEBUG CFShow(url); #endif } END_QC_NAMESPACE
12.380952
54
0.688462
quantumcheese
b05febfd4ca05121787ac43ab391d49fbf37c5c5
11,066
cpp
C++
examples/DSP module plugin demo/Source/PluginProcessor.cpp
jpcima/DISTRHO-JUCE
08c983c6dc718b7bbdba8c0625d7a4ee2a837f4c
[ "ISC" ]
1
2020-10-23T05:31:32.000Z
2020-10-23T05:31:32.000Z
examples/DSP module plugin demo/Source/PluginProcessor.cpp
pierreguillot/JUCE-LV2
b12aa69c81f496d07066a603b5320601aa93fcc0
[ "ISC" ]
null
null
null
examples/DSP module plugin demo/Source/PluginProcessor.cpp
pierreguillot/JUCE-LV2
b12aa69c81f496d07066a603b5320601aa93fcc0
[ "ISC" ]
null
null
null
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2017 - ROLI Ltd. JUCE is an open source library subject to commercial or open-source licensing. By using JUCE, you agree to the terms of both the JUCE 5 End...
38.557491
154
0.624345
jpcima
b064449e68eee31da68fc94e8f901c7a360f2ec0
3,049
cpp
C++
Necromancer/Necromancer.cpp
myffx36/RenderingEngine
38df29966b3126744fb40c2a97775ae44cea92f9
[ "MIT" ]
null
null
null
Necromancer/Necromancer.cpp
myffx36/RenderingEngine
38df29966b3126744fb40c2a97775ae44cea92f9
[ "MIT" ]
null
null
null
Necromancer/Necromancer.cpp
myffx36/RenderingEngine
38df29966b3126744fb40c2a97775ae44cea92f9
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "Necromancer.h" #include "PIL.h" #include "RenderingEngine.h" #include "PhysicsEngine.h" #include "AnimationEngine.h" #include "GameWorld.h" #include "HID.h" //#include "ScriptInterpreter.h" #include "Timer.h" #include "Logger.h" #include "Configuration.h" #include "PILFactory.h" namespa...
25.198347
72
0.725156
myffx36
b06af60b7841c5c7ea67f1fd237a7d615b2f67b7
3,405
cpp
C++
src/PathSet.cpp
georgedeath/TAsK
14c4abb3b3f9918accd59e9987e9403bd8a0470c
[ "MIT" ]
28
2015-03-05T04:12:58.000Z
2021-12-16T22:24:41.000Z
src/PathSet.cpp
joshchea/TAsK
d66d0c7561e30b45308aabcf08f584326779f4ae
[ "MIT" ]
2
2017-02-07T15:37:37.000Z
2020-06-26T14:06:00.000Z
src/PathSet.cpp
joshchea/TAsK
d66d0c7561e30b45308aabcf08f584326779f4ae
[ "MIT" ]
15
2015-07-09T11:53:16.000Z
2022-02-22T04:01:19.000Z
#include "PathSet.h" #include "ODSetWithStep.h" #include "ODSetGPApp3.h" #include "Error.h" #include "Origin.h" #include "Path.h" #include "ODMatrix.h" #include "AONAssignment.h" #include <cassert> #include <sstream> PathSet::PathSet(ODSetType setType, StarNetwork *net, ODMatrix *mat, ShortestPath *shPath, PathCos...
30.954545
96
0.685169
georgedeath
b06c67a001e98f5124c2f0acdecba1d20b8f06ef
2,546
cpp
C++
Builder/main.cpp
dominhhai/CppDesignPatterns
61d218f26ef00533346b2db31694eb8470f83358
[ "MIT" ]
3
2018-10-25T06:49:40.000Z
2018-10-26T03:47:00.000Z
Builder/main.cpp
dominhhai/CppDesignPatterns
61d218f26ef00533346b2db31694eb8470f83358
[ "MIT" ]
1
2018-10-26T03:46:50.000Z
2018-10-26T03:46:50.000Z
Builder/main.cpp
dominhhai/CppDesignPatterns
61d218f26ef00533346b2db31694eb8470f83358
[ "MIT" ]
1
2020-05-19T03:15:19.000Z
2020-05-19T03:15:19.000Z
#include <iostream> #include <memory> #include <string> #include <vector> class Packing { public: virtual std::string Pack() = 0; }; class Item { public: virtual std::string Name() = 0; virtual Packing* DoPacking() = 0; virtual float Price() = 0; }; class Wrapper : public Packing { public: std::string P...
20.047244
68
0.604478
dominhhai
b0705e3ffe0a9c79cf8b59ba34df7016acc3552d
505
cpp
C++
SimCore/model/Ecu/Ecu.cpp
kino-6/BuiltInSystemSimulator
63d447f89c0c9166b93a96844d2d103f9d00a4b2
[ "Apache-2.0" ]
null
null
null
SimCore/model/Ecu/Ecu.cpp
kino-6/BuiltInSystemSimulator
63d447f89c0c9166b93a96844d2d103f9d00a4b2
[ "Apache-2.0" ]
null
null
null
SimCore/model/Ecu/Ecu.cpp
kino-6/BuiltInSystemSimulator
63d447f89c0c9166b93a96844d2d103f9d00a4b2
[ "Apache-2.0" ]
null
null
null
#include "Ecu.h" Ecu::Ecu(void){ this->Reset(); } Ecu::~Ecu(void) { } void Ecu::Main() { this->timer->Main(); this->task->Main(this->timer); this->chip->Main(); this->power->Main(); } void Ecu::Reset(){ this->timer = new Timer(); this->task = new Task(); this->chip = new Chip(); ...
14.428571
34
0.510891
kino-6
b071dad3d818b885f1f2af6b7f4a5bb31d8c4de1
7,413
hpp
C++
src/batteries/assert.hpp
tonyastolfi/batteries
67349930e54785f44eab84f1e56da6c78c66a5f9
[ "Apache-2.0" ]
1
2022-01-04T20:28:17.000Z
2022-01-04T20:28:17.000Z
src/batteries/assert.hpp
mihir-thakkar/batteries
67349930e54785f44eab84f1e56da6c78c66a5f9
[ "Apache-2.0" ]
2
2020-06-04T14:02:24.000Z
2020-06-04T14:03:18.000Z
src/batteries/assert.hpp
mihir-thakkar/batteries
67349930e54785f44eab84f1e56da6c78c66a5f9
[ "Apache-2.0" ]
1
2022-01-03T20:24:31.000Z
2022-01-03T20:24:31.000Z
// Copyright 2021-2022 Anthony Paul Astolfi // #pragma once #ifdef BOOST_STACKTRACE_USE_NOOP #undef BOOST_STACKTRACE_USE_NOOP #endif // BOOST_STACKTRACE_USE_NOOP #include <batteries/config.hpp> #include <batteries/hint.hpp> #include <batteries/int_types.hpp> #include <batteries/type_traits.hpp> #include <batteries/u...
43.605882
110
0.550924
tonyastolfi
b079735868bb7ce1144f7af64d9e9ad1f18e4fd6
3,060
hpp
C++
gui_stack/Telemetry/include/Telemetry/qnode.hpp
dyutimoy/kraken_3.0
4bbf2450b0df7405035bc88966d9b8e2244e5c74
[ "BSD-3-Clause-Clear" ]
33
2015-02-24T09:41:20.000Z
2021-05-17T05:10:58.000Z
gui_stack/Telemetry/include/Telemetry/qnode.hpp
dyutimoy/kraken_3.0
4bbf2450b0df7405035bc88966d9b8e2244e5c74
[ "BSD-3-Clause-Clear" ]
81
2015-03-26T22:14:13.000Z
2019-08-29T11:08:48.000Z
gui_stack/Telemetry/include/Telemetry/qnode.hpp
dyutimoy/kraken_3.0
4bbf2450b0df7405035bc88966d9b8e2244e5c74
[ "BSD-3-Clause-Clear" ]
51
2015-02-24T09:41:24.000Z
2020-09-06T07:45:53.000Z
/** * @file /include/App/qnode.hpp * * @brief Communications central! * * @date February 2011 **/ /***************************************************************************** ** Ifdefs *****************************************************************************/ #ifndef App_QNODE_HPP_ #define App_QNODE_HPP_ ...
34.772727
86
0.622549
dyutimoy
b07ca91b9d92856516db7dab2551cd31790586b9
746
cpp
C++
hardwork/leetcode/575. Distribute Candies.cpp
jskyzero/Cplusplus.Playground
b4a82bb32af04efcffb6e251ac8956a3cc316174
[ "MIT" ]
null
null
null
hardwork/leetcode/575. Distribute Candies.cpp
jskyzero/Cplusplus.Playground
b4a82bb32af04efcffb6e251ac8956a3cc316174
[ "MIT" ]
null
null
null
hardwork/leetcode/575. Distribute Candies.cpp
jskyzero/Cplusplus.Playground
b4a82bb32af04efcffb6e251ac8956a3cc316174
[ "MIT" ]
null
null
null
/* * leetcode solution * * jskyzero * * */ // universal header file #include <algorithm> #include <ciso646> #include <cassert> #include <iostream> #include <memory> #include <vector> #include <set> using namespace std; // for debug output #ifndef LEET_CODE_DEBUG #define LEET_CODE_DEBUG 1 #endif class Solution ...
18.65
54
0.620643
jskyzero
b07e4c0ebd57d3040c30631fb447f6fca731fb41
102,088
cpp
C++
I want to go/Library/Il2cppBuildCache/WebGL/il2cppOutput/Il2CppCCalculateFieldValues1.cpp
Bithellio/IWantToGo
966c8b941c386827f78e37d514b5ae4155ab3037
[ "Apache-2.0" ]
null
null
null
I want to go/Library/Il2cppBuildCache/WebGL/il2cppOutput/Il2CppCCalculateFieldValues1.cpp
Bithellio/IWantToGo
966c8b941c386827f78e37d514b5ae4155ab3037
[ "Apache-2.0" ]
null
null
null
I want to go/Library/Il2cppBuildCache/WebGL/il2cppOutput/Il2CppCCalculateFieldValues1.cpp
Bithellio/IWantToGo
966c8b941c386827f78e37d514b5ae4155ab3037
[ "Apache-2.0" ]
null
null
null
#include "pch-cpp.hpp" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include <limits> // System.Collections.Generic.List`1<ResolutionItem> struct List_1_tFCF114D2CBC4A3284C0B982FF61972A503FD5775; // System.Collections.Generic.List`1<UnityEngine.U2D.IK.Solver2D> stru...
51.611729
224
0.850149
Bithellio
b082588a08706f8b0082922299c7c4e1df79ab02
2,106
cpp
C++
test/unittests/ws/ProtocolVersionTest.cpp
kyonRay/bcos-cpp-sdk
994db78f5216e9e565bd6c4ce50c5c915c0b2097
[ "Apache-2.0" ]
2
2022-01-19T04:56:52.000Z
2022-01-19T04:56:56.000Z
test/unittests/ws/ProtocolVersionTest.cpp
kyonRay/bcos-cpp-sdk
994db78f5216e9e565bd6c4ce50c5c915c0b2097
[ "Apache-2.0" ]
null
null
null
test/unittests/ws/ProtocolVersionTest.cpp
kyonRay/bcos-cpp-sdk
994db78f5216e9e565bd6c4ce50c5c915c0b2097
[ "Apache-2.0" ]
3
2021-08-30T02:26:22.000Z
2022-01-07T10:17:42.000Z
/* * Copyright (C) 2021 FISCO BCOS. * SPDX-License-Identifier: Apache-2.0 * 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 * * Unl...
31.909091
78
0.707977
kyonRay
b087206405424fdfca134449f6bfc091f097af9a
5,644
cpp
C++
09-sorting-and-searching-arrays/9.08-parallel-arrays/old-solution.cpp
trangnart/cis22a
498a7b37d12a13efa7749849dc95d9892d1786be
[ "MIT" ]
2
2020-09-04T22:06:06.000Z
2020-09-09T04:00:25.000Z
09-sorting-and-searching-arrays/9.08-parallel-arrays/old-solution.cpp
trangnart/cis22a
498a7b37d12a13efa7749849dc95d9892d1786be
[ "MIT" ]
14
2020-08-24T01:44:36.000Z
2021-01-01T08:44:17.000Z
09-sorting-and-searching-arrays/9.08-parallel-arrays/old-solution.cpp
trangnart/cis22a
498a7b37d12a13efa7749849dc95d9892d1786be
[ "MIT" ]
1
2020-09-04T22:13:13.000Z
2020-09-04T22:13:13.000Z
/* FUNCTIONS, FILES, and ARRAYS Project Exam Statistics // Trang Tran */ #include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; const int MAX_SIZE = 100; void printWelcomeMesg(); string genOutputFileName(string fileName); bool getNameAndScore(string line, string& name...
25.309417
92
0.613926
trangnart
b08adccc7a7bd90f021d8c1dec25ae0b0e58a818
4,302
hpp
C++
include/chucho/sliding_numbered_file_roller.hpp
mexicowilly/Chucho
f4235420437eb2078ab592540c0d729b7b9a3c10
[ "Apache-2.0" ]
4
2016-12-06T05:33:29.000Z
2017-12-17T17:04:25.000Z
include/chucho/sliding_numbered_file_roller.hpp
mexicowilly/Chucho
f4235420437eb2078ab592540c0d729b7b9a3c10
[ "Apache-2.0" ]
147
2016-09-05T14:00:46.000Z
2021-08-24T14:43:07.000Z
include/chucho/sliding_numbered_file_roller.hpp
mexicowilly/Chucho
f4235420437eb2078ab592540c0d729b7b9a3c10
[ "Apache-2.0" ]
4
2017-11-08T04:12:39.000Z
2022-01-04T06:40:16.000Z
/* * Copyright 2013-2021 Will Mason * * 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 applicab...
30.94964
121
0.676662
mexicowilly
b08c2d9b94f9a8cef21f7bcbc89603e67b1674c9
605
cpp
C++
For_Offer/Data_Structure/Tree/04-SymmetricTree.cpp
authetic-x/PAT-Advanced-Level-Practice
57a40853fab96a73e0c5ff377b2f12a5a553e11f
[ "MIT" ]
null
null
null
For_Offer/Data_Structure/Tree/04-SymmetricTree.cpp
authetic-x/PAT-Advanced-Level-Practice
57a40853fab96a73e0c5ff377b2f12a5a553e11f
[ "MIT" ]
null
null
null
For_Offer/Data_Structure/Tree/04-SymmetricTree.cpp
authetic-x/PAT-Advanced-Level-Practice
57a40853fab96a73e0c5ff377b2f12a5a553e11f
[ "MIT" ]
null
null
null
// // Created by authetic on 2019/4/3. // /* * 判断二叉树是否是对称二叉树 * 模拟前序遍历的不同方式 */ #include <iostream> using namespace std; struct Tree { int value; Tree* left; Tree* right; }; bool isSymmetrical(Tree* root1, Tree* root2) { if (root1 == nullptr && root2 == nullptr) return true; if (root1 == nullpt...
20.166667
59
0.638017
authetic-x
b08c39d9daaa0a2a80ad4d1f78c6eaafc83c3a41
156
cpp
C++
Source/Game/GameState/GameState.cpp
Crazykingjammy/bkbotz
6cdaa4164ff02e40f2909982f6dacad161c7d6cf
[ "Unlicense" ]
null
null
null
Source/Game/GameState/GameState.cpp
Crazykingjammy/bkbotz
6cdaa4164ff02e40f2909982f6dacad161c7d6cf
[ "Unlicense" ]
null
null
null
Source/Game/GameState/GameState.cpp
Crazykingjammy/bkbotz
6cdaa4164ff02e40f2909982f6dacad161c7d6cf
[ "Unlicense" ]
null
null
null
#include "gamestate.h" void CBaseGameState::ChangeState(Game* game,CBaseGameState* newstate) { //Change the games State. game->ChangeState(newstate); }
17.333333
69
0.75641
Crazykingjammy
b08c8b41c3af49dc91ec344776e54101dda7da9e
96,312
cpp
C++
Tests/SweepHangTests.cpp
erwinbonsma/BusyBeaverFinder
e83caa11d93ebbc46f4d92e5de96ad5dcfdc977f
[ "MIT" ]
null
null
null
Tests/SweepHangTests.cpp
erwinbonsma/BusyBeaverFinder
e83caa11d93ebbc46f4d92e5de96ad5dcfdc977f
[ "MIT" ]
null
null
null
Tests/SweepHangTests.cpp
erwinbonsma/BusyBeaverFinder
e83caa11d93ebbc46f4d92e5de96ad5dcfdc977f
[ "MIT" ]
null
null
null
// // SweepHangTests.cpp // BusyBeaverFinder // // Created by Erwin on 03/02/19. // Copyright © 2019 Erwin Bonsma. // #include <stdio.h> #include "catch.hpp" #include "ExhaustiveSearcher.h" #include "SweepHangDetector.h" TEST_CASE( "5x5 Sweep Hang tests", "[hang][sweep][regular][5x5]" ) { ExhaustiveSearcher ...
44.527046
100
0.562433
erwinbonsma
b08d4ccab831184d370a776168aae83390d4e715
758
cc
C++
source/pkgsrc/comms/estic/patches/patch-spunk_password.cc
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/comms/estic/patches/patch-spunk_password.cc
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/comms/estic/patches/patch-spunk_password.cc
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-spunk_password.cc,v 1.1 2012/11/16 00:37:47 joerg Exp $ --- spunk/password.cc.orig 1996-11-07 18:06:48.000000000 +0000 +++ spunk/password.cc @@ -525,14 +525,14 @@ LINK (PasswordColl, ID_PasswordColl); -static void EntryEditor (PasswordEntry* E, int& Abort, int& Changed) +void EntryEditor (Password...
30.32
70
0.622691
Scottx86-64
b08f5946ab7db9285e6f3add63dbf35929a189b5
8,778
cpp
C++
sample/src/DX12/renderer.cpp
GPUOpen-Effects/FidelityFX-ParallelSort
0c539948c8d196ae338d91efbc8ca495f1ea0d1d
[ "MIT" ]
49
2020-11-25T04:57:33.000Z
2022-03-22T07:58:35.000Z
sample/src/DX12/renderer.cpp
fstrugar/FidelityFX-ParallelSort
c5bea6cd7f599645ca7a4a1bc8d2c6964c57b528
[ "MIT" ]
1
2021-10-06T14:00:33.000Z
2021-10-06T14:00:33.000Z
sample/src/DX12/renderer.cpp
fstrugar/FidelityFX-ParallelSort
c5bea6cd7f599645ca7a4a1bc8d2c6964c57b528
[ "MIT" ]
3
2021-06-01T23:18:01.000Z
2021-12-18T00:40:02.000Z
// samplerenderer.cpp // // Copyright(c) 2021 Advanced Micro Devices, Inc.All rights reserved. // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files(the "Software"), to deal // in the Software without restriction, including without limita...
43.455446
182
0.65254
GPUOpen-Effects
b0915349f9635b369aa3e76a465ffbc2788bd99d
1,057
cpp
C++
Sid's Levels/Level - 3/Greedy Algorithms/Minimum Number Of Arrows To Burst Balloons.cpp
Tiger-Team-01/DSA-A-Z-Practice
e08284ffdb1409c08158dd4e90dc75dc3a3c5b18
[ "MIT" ]
14
2021-08-22T18:21:14.000Z
2022-03-08T12:04:23.000Z
Sid's Levels/Level - 3/Greedy Algorithms/Minimum Number Of Arrows To Burst Balloons.cpp
Tiger-Team-01/DSA-A-Z-Practice
e08284ffdb1409c08158dd4e90dc75dc3a3c5b18
[ "MIT" ]
1
2021-10-17T18:47:17.000Z
2021-10-17T18:47:17.000Z
Sid's Levels/Level - 3/Greedy Algorithms/Minimum Number Of Arrows To Burst Balloons.cpp
Tiger-Team-01/DSA-A-Z-Practice
e08284ffdb1409c08158dd4e90dc75dc3a3c5b18
[ "MIT" ]
5
2021-09-01T08:21:12.000Z
2022-03-09T12:13:39.000Z
class Solution { public: int findMinArrowShots(vector<vector<int>>& points) { //OM GAN GANAPATHAYE NAMO NAMAH //JAI SHRI RAM //JAI BAJRANGBALI //AMME NARAYANA, DEVI NARAYANA, LAKSHMI NARAYANA, BHADRE NARAYANA int i = 0, j = 0; vector<pair<int, int>> p; for(...
32.030303
153
0.476821
Tiger-Team-01
b09e252b9d36fea142944a040a23d090bd82b066
714
cpp
C++
src/EndGameState.cpp
syanush/rhotetris
4f85da828e966a2679e8160c5f810cde6b19419c
[ "MIT" ]
null
null
null
src/EndGameState.cpp
syanush/rhotetris
4f85da828e966a2679e8160c5f810cde6b19419c
[ "MIT" ]
null
null
null
src/EndGameState.cpp
syanush/rhotetris
4f85da828e966a2679e8160c5f810cde6b19419c
[ "MIT" ]
null
null
null
#include "EndGameState.hpp" #include "Helpers.hpp" using namespace RhoTetris; EndGameState::EndGameState(Game& game) : GameState(game) { setText(); } void EndGameState::update(sf::Time Delta) {} void EndGameState::draw(sf::RenderWindow& window) { window.draw(m_text); } void EndGameState::setText() { m_text.setF...
26.444444
74
0.72409
syanush
b09e59187645f77d2478a35e2d526ee21b39260c
700
cpp
C++
directfire_github/trunk/uilib/actions/scaleeffectaction.cpp
zhwsh00/DirectFire-android
10c757e1be0b25dee951f9ba3a0e1f6d5c04a938
[ "MIT" ]
1
2015-08-12T04:05:33.000Z
2015-08-12T04:05:33.000Z
directfire_github/trunk/uilib/actions/scaleeffectaction.cpp
zhwsh00/DirectFire-android
10c757e1be0b25dee951f9ba3a0e1f6d5c04a938
[ "MIT" ]
null
null
null
directfire_github/trunk/uilib/actions/scaleeffectaction.cpp
zhwsh00/DirectFire-android
10c757e1be0b25dee951f9ba3a0e1f6d5c04a938
[ "MIT" ]
null
null
null
#include "scaleeffectaction.h" #include "../base/touchnode.h" namespace uilib { ScaleEffectAction::ScaleEffectAction() { } ScaleEffectAction::~ScaleEffectAction() { } void ScaleEffectAction::doAction(TouchNode *node,bool enable) { if(m_running == enable){ return; } m_running = enable; if(m_ru...
21.875
107
0.651429
zhwsh00
b09f6926118a73305d49d87d9ae42aa504bc8ccc
12,912
hpp
C++
ZetaChain/source/include/io/serialisation.hpp
FTLChain/BlockchainCpp
504cdf344e168d15572f328d400def08a1f1fac2
[ "MIT" ]
1
2020-02-02T19:42:39.000Z
2020-02-02T19:42:39.000Z
ZetaChain/source/include/io/serialisation.hpp
FTLChain/BlockchainCpp
504cdf344e168d15572f328d400def08a1f1fac2
[ "MIT" ]
14
2017-09-29T13:45:21.000Z
2020-06-16T22:37:01.000Z
ZetaChain/source/include/io/serialisation.hpp
FTLChain/BlockchainCpp
504cdf344e168d15572f328d400def08a1f1fac2
[ "MIT" ]
null
null
null
#pragma once /* MIT License Copyright (c) 2017 ZetaChain_Native Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
38.774775
152
0.721035
FTLChain
b09f79305a9ac11de1665cb1236c19c890f378ab
43,604
cc
C++
src/Pulses/PulDANTE.cc
pygamma-mrs/gamma
c83a7c242c481d2ecdfd49ba394fea3d5816bccb
[ "BSD-3-Clause" ]
4
2021-03-15T10:02:13.000Z
2022-01-16T11:06:28.000Z
src/Pulses/PulDANTE.cc
pygamma-mrs/gamma
c83a7c242c481d2ecdfd49ba394fea3d5816bccb
[ "BSD-3-Clause" ]
1
2022-01-27T15:35:03.000Z
2022-01-27T15:35:03.000Z
src/Pulses/PulDANTE.cc
pygamma-mrs/gamma
c83a7c242c481d2ecdfd49ba394fea3d5816bccb
[ "BSD-3-Clause" ]
null
null
null
/* PulDANTE.cc *************************************************-*-c++-*-* ** ** ** G A M M A ** ** ** ** DANTE Pulse ...
37.752381
91
0.528896
pygamma-mrs
b0a9be86f1491a8017f246b4f2baa37d056ef2fd
6,092
hpp
C++
cplus/libcfint/cfintobj/CFIntTopProjectEditObj.hpp
msobkow/cfint_2_13
63ff9dfc85647066d0c8d61469ada572362e2b48
[ "Apache-2.0" ]
null
null
null
cplus/libcfint/cfintobj/CFIntTopProjectEditObj.hpp
msobkow/cfint_2_13
63ff9dfc85647066d0c8d61469ada572362e2b48
[ "Apache-2.0" ]
null
null
null
cplus/libcfint/cfintobj/CFIntTopProjectEditObj.hpp
msobkow/cfint_2_13
63ff9dfc85647066d0c8d61469ada572362e2b48
[ "Apache-2.0" ]
null
null
null
#pragma once // Description: C++18 edit object instance specification for CFInt TopProject. /* * org.msscf.msscf.CFInt * * Copyright (c) 2020 Mark Stephen Sobkow * * MSS Code Factory CFInt 2.13 Internet Essentials * * Copyright 2020-2021 Mark Stephen Sobkow * * This file is part of MSS Code Factory. * ...
34.224719
112
0.761162
msobkow
b0aa3ade2a70b5ecd0ddb16e4fa03311770790fe
1,393
hpp
C++
src/detail/ilog2.hpp
nicolastagliani/memory
4016412f422bc8c53d266081ab5744caceec502c
[ "Zlib" ]
1
2018-11-01T02:42:01.000Z
2018-11-01T02:42:01.000Z
src/detail/ilog2.hpp
nicolastagliani/memory
4016412f422bc8c53d266081ab5744caceec502c
[ "Zlib" ]
null
null
null
src/detail/ilog2.hpp
nicolastagliani/memory
4016412f422bc8c53d266081ab5744caceec502c
[ "Zlib" ]
1
2019-11-16T20:52:21.000Z
2019-11-16T20:52:21.000Z
// Copyright (C) 2015-2016 Jonathan Müller <jonathanmueller.dev@gmail.com> // This file is subject to the license terms in the LICENSE file // found in the top-level directory of this distribution. #ifndef FOONATHAN_MEMORY_SRC_DETAIL_ILOG2_HPP_INCLUDED #define FOONATHAN_MEMORY_SRC_DETAIL_ILOG2_HPP_INCLUDED #include "...
30.282609
74
0.613065
nicolastagliani
b0acbb072efd130a19d43b860630a5dfe83fe219
1,209
cpp
C++
src/time/time_slice_gps.cpp
sp2ong/si5351-beacon
1b92bfee80663b89928faf0b14387a88bacd918a
[ "MIT" ]
null
null
null
src/time/time_slice_gps.cpp
sp2ong/si5351-beacon
1b92bfee80663b89928faf0b14387a88bacd918a
[ "MIT" ]
null
null
null
src/time/time_slice_gps.cpp
sp2ong/si5351-beacon
1b92bfee80663b89928faf0b14387a88bacd918a
[ "MIT" ]
null
null
null
// // Author: Alexander Sholohov <ra9yer@yahoo.com> // // License: MIT // #include "time_slice_gps.h" #include "rtc_datetime.h" #include <Stream.h> //--------------------------------------------------------------------------------- TimeSliceGPS::TimeSliceGPS(Stream& serial) : m_gpsDataExtract(serial) , m_valid...
22.811321
83
0.428453
sp2ong
b0af2ac429ad4a452350e5e58b17bc1cbaa24c8d
773
hpp
C++
libsnes/bsnes/snes/chip/sdd1/sdd1.hpp
ircluzar/BizhawkLegacy-Vanguard
cd8b6dfe881f3c9d322b73c29f0d71df2ce3178e
[ "MIT" ]
null
null
null
libsnes/bsnes/snes/chip/sdd1/sdd1.hpp
ircluzar/BizhawkLegacy-Vanguard
cd8b6dfe881f3c9d322b73c29f0d71df2ce3178e
[ "MIT" ]
null
null
null
libsnes/bsnes/snes/chip/sdd1/sdd1.hpp
ircluzar/BizhawkLegacy-Vanguard
cd8b6dfe881f3c9d322b73c29f0d71df2ce3178e
[ "MIT" ]
null
null
null
class SDD1 { public: void init(); void load(); void unload(); void power(); void reset(); uint8 mmio_read(unsigned addr); void mmio_write(unsigned addr, uint8 data); uint8 rom_read(unsigned addr); uint8 mcu_read(unsigned addr); void mcu_write(unsigned addr, uint8 data); void serialize(serialize...
20.891892
63
0.672704
ircluzar
b0b000093adb642f54735ea2a74fe24287fb0e96
8,291
cpp
C++
Engine/Output/File/FileStatic.cpp
gregory-vovchok/YEngine
e28552e52588bd90db01dd53e5fc817d0a26d146
[ "BSD-2-Clause" ]
null
null
null
Engine/Output/File/FileStatic.cpp
gregory-vovchok/YEngine
e28552e52588bd90db01dd53e5fc817d0a26d146
[ "BSD-2-Clause" ]
null
null
null
Engine/Output/File/FileStatic.cpp
gregory-vovchok/YEngine
e28552e52588bd90db01dd53e5fc817d0a26d146
[ "BSD-2-Clause" ]
1
2020-12-04T08:57:03.000Z
2020-12-04T08:57:03.000Z
#include "File.h" #include <stdio.h> #include <io.h> #include <stdarg.h> #include <windows.h> bool File::_IsExist(StringANSI _pathToFile) { if(access(_pathToFile.c_str(), 0) == 0) { return true; } return false; } bool File::_CreateFile(StringANSI _pathToFile) { if(_IsExist(_pathToFile)) { return true; ...
15.129562
117
0.643228
gregory-vovchok
b0b348de18d63bf8d117f4d56cce92132db6995f
2,779
cc
C++
SDL2pp/Rect.cc
Ritan/libSDL2pp
466d9a1683c155ae7cabf67870983e0fe04574ee
[ "Zlib" ]
null
null
null
SDL2pp/Rect.cc
Ritan/libSDL2pp
466d9a1683c155ae7cabf67870983e0fe04574ee
[ "Zlib" ]
null
null
null
SDL2pp/Rect.cc
Ritan/libSDL2pp
466d9a1683c155ae7cabf67870983e0fe04574ee
[ "Zlib" ]
null
null
null
/* libSDL2pp - C++ wrapper for libSDL2 Copyright (C) 2013 Dmitry Marakasov <amdmi3@amdmi3.ru> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to u...
20.137681
76
0.654552
Ritan
b0b7279e622677830a90cbfd44755ebd8aca4d67
201,370
cpp
C++
src/objs/Ambiguity.cpp
nasa-jpl/Cassini_RADAR_Software
93a5be34d013c2913cf74f06e01c59b625bb4a17
[ "Apache-2.0" ]
4
2021-08-12T23:55:41.000Z
2022-02-23T03:32:46.000Z
src/objs/Ambiguity.cpp
nasa-jpl/Cassini_RADAR_Software
93a5be34d013c2913cf74f06e01c59b625bb4a17
[ "Apache-2.0" ]
null
null
null
src/objs/Ambiguity.cpp
nasa-jpl/Cassini_RADAR_Software
93a5be34d013c2913cf74f06e01c59b625bb4a17
[ "Apache-2.0" ]
null
null
null
//========================================================== // calculate surface geomtric factors at time t and sc attitude //========================================================== //--------------- // Spice routines //--------------- #include <SpiceUsr.h> //--------------- // Other includes //--------------- ...
33.505824
151
0.622466
nasa-jpl
b0b79cce1ac1108fbe7231b4a4cfec719081fb68
2,657
cpp
C++
constrdestr.cpp
jollie-fin/cpp_lessons
f7aed25215b890236660ec2b9a63a41ba65d978e
[ "MIT" ]
null
null
null
constrdestr.cpp
jollie-fin/cpp_lessons
f7aed25215b890236660ec2b9a63a41ba65d978e
[ "MIT" ]
null
null
null
constrdestr.cpp
jollie-fin/cpp_lessons
f7aed25215b890236660ec2b9a63a41ba65d978e
[ "MIT" ]
null
null
null
#include <map> #include <set> #include <string> #include <iostream> #include <deque> struct Obj { Obj() { i_ = current_id_++; std::cout << "Construct Obj(" << i_ << ")\n"; } Obj(const Obj& obj) { i_ = current_id_++; std::cout << "Construct Obj(" << i_ << ") from Obj...
18.19863
80
0.461423
jollie-fin
b0b7b9cc6b240d485ab97b3be250e625f2725c82
8,084
cpp
C++
Button.cpp
jrullan/Touchscreen_GUI
6512ef057f4bbe674b0c01d3739304f0a65f533a
[ "MIT" ]
2
2015-06-30T17:08:32.000Z
2020-05-26T18:07:30.000Z
Button.cpp
jrullan/Touchscreen_GUI
6512ef057f4bbe674b0c01d3739304f0a65f533a
[ "MIT" ]
null
null
null
Button.cpp
jrullan/Touchscreen_GUI
6512ef057f4bbe674b0c01d3739304f0a65f533a
[ "MIT" ]
null
null
null
/////////////////////////////////////////////////////////// // Button.cpp // Implementation of the Class Button // Created on: 02-Mar-2015 9:17:12 PM /////////////////////////////////////////////////////////// /* * Sensible defaults mods: * 1. Provide simple constructor, no parameters * 2. Allow to...
23.568513
135
0.62766
jrullan
b0b86610e0e469bdcdd3845db6e3c6aa3cd2453e
10,385
hpp
C++
mpmissions/Altis_Life.Altis/dialog/smartphone.hpp
Mateuus/A3UndeadBRLife
2c4558c3cf66795bcfa126e3fe460a9b671d3ca9
[ "OpenSSL" ]
null
null
null
mpmissions/Altis_Life.Altis/dialog/smartphone.hpp
Mateuus/A3UndeadBRLife
2c4558c3cf66795bcfa126e3fe460a9b671d3ca9
[ "OpenSSL" ]
null
null
null
mpmissions/Altis_Life.Altis/dialog/smartphone.hpp
Mateuus/A3UndeadBRLife
2c4558c3cf66795bcfa126e3fe460a9b671d3ca9
[ "OpenSSL" ]
null
null
null
class smartphone { idd = 90000; movingEnable = false; enableSimulation = false; class controlsBackground { class Life_RscPicture_1200: Life_RscPictureKeepAspect{ idc = 1200; text = "icons\Background.paa"; x = -0.0625; y = -0.3; w = 1.1375; h = 1.5; colorBackground[] = {0, 0, 0, 0}; }; class Life_R...
29.841954
232
0.63091
Mateuus
b0ba6d80e3955d731be8a444f46606eb28695367
13,588
cpp
C++
lib/UtilsGL.cpp
ToolsOnAir/gl-frame-bender
f2c24ad3ddaeea50b6d69f50890c09a5d59a3a18
[ "MIT" ]
6
2015-03-20T00:46:06.000Z
2021-02-01T09:04:59.000Z
lib/UtilsGL.cpp
ToolsOnAir/gl-frame-bender
f2c24ad3ddaeea50b6d69f50890c09a5d59a3a18
[ "MIT" ]
null
null
null
lib/UtilsGL.cpp
ToolsOnAir/gl-frame-bender
f2c24ad3ddaeea50b6d69f50890c09a5d59a3a18
[ "MIT" ]
2
2016-11-28T20:26:17.000Z
2021-02-01T09:05:00.000Z
/* Copyright (c) 2015 Heinrich Fink <hfink@toolsonair.com> * Copyright (c) 2014 ToolsOnAir Broadcast Engineering GmbH * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restrictio...
31.165138
178
0.651604
ToolsOnAir
b0bb3b25e1e4d5899ce7a828510dabbd1f9964f6
3,431
hpp
C++
rtb/base/include/base/json/Json.hpp
SMelanko/rtb
9bc909ea1ea169043661f2c89cb91415fec73065
[ "MIT" ]
null
null
null
rtb/base/include/base/json/Json.hpp
SMelanko/rtb
9bc909ea1ea169043661f2c89cb91415fec73065
[ "MIT" ]
null
null
null
rtb/base/include/base/json/Json.hpp
SMelanko/rtb
9bc909ea1ea169043661f2c89cb91415fec73065
[ "MIT" ]
1
2018-12-31T21:52:19.000Z
2018-12-31T21:52:19.000Z
#pragma once #include "base/stl/String.hpp" #include "base/Type.hpp" #include <rapidjson/document.h> #include <fmt/format.h> namespace json { using Document = rapidjson::Document; using Object = rapidjson::Value; json::Document Str2Json(base::StringView str); template<class T> void ExtBool(const json::Object& j,...
29.076271
110
0.578257
SMelanko
b0bd295fa9381d383e32799b94cb1ed12aa80e84
302
cpp
C++
toy_compiler/munster/ast/decl/dot_decl.cpp
Wmbat/toy_compiler
370a2e76aaaa874de5fb6c25e0755638dd84b8b4
[ "MIT" ]
null
null
null
toy_compiler/munster/ast/decl/dot_decl.cpp
Wmbat/toy_compiler
370a2e76aaaa874de5fb6c25e0755638dd84b8b4
[ "MIT" ]
null
null
null
toy_compiler/munster/ast/decl/dot_decl.cpp
Wmbat/toy_compiler
370a2e76aaaa874de5fb6c25e0755638dd84b8b4
[ "MIT" ]
null
null
null
#include <toy_compiler/munster/ast/decl/dot_decl.hpp> namespace munster::ast { dot_decl::dot_decl(const std::string& lexeme, const source_location& location) : decl{lexeme, location} {} auto dot_decl::to_string() const -> std::string { return "dot_decl"; } } // namespace munster::ast
27.454545
83
0.705298
Wmbat
b0be422c7ce645a8d0c9d8a5e55bd7ccb7146312
1,286
cpp
C++
N0239-Sliding-Window-Maximum/solution1.cpp
loyio/leetcode
366393c29a434a621592ef6674a45795a3086184
[ "CC0-1.0" ]
null
null
null
N0239-Sliding-Window-Maximum/solution1.cpp
loyio/leetcode
366393c29a434a621592ef6674a45795a3086184
[ "CC0-1.0" ]
null
null
null
N0239-Sliding-Window-Maximum/solution1.cpp
loyio/leetcode
366393c29a434a621592ef6674a45795a3086184
[ "CC0-1.0" ]
2
2022-01-25T05:31:31.000Z
2022-02-26T07:22:23.000Z
// // main.cpp // LeetCode-Solution // // Created by Loyio Hex on 3/1/22. // #include <iostream> #include <chrono> #include <vector> #include <queue> using namespace std; using namespace std::chrono; class Solution { public: vector<int> maxSlidingWindow(vector<int>& nums, int k){ int len = nums.size()...
23.381818
74
0.540435
loyio
b0c03be262009bc94b875ea9c452bc95b26b89cf
2,000
cpp
C++
Graphs/Hopcroft-Karp.cpp
4eyes4u/Algorithms
afd8363ee39e5b7c499741f56922f16f4f50dc09
[ "MIT" ]
2
2019-02-16T13:13:40.000Z
2019-03-19T20:05:42.000Z
Graphs/Hopcroft-Karp.cpp
4eyes4u/Algorithms
afd8363ee39e5b7c499741f56922f16f4f50dc09
[ "MIT" ]
null
null
null
Graphs/Hopcroft-Karp.cpp
4eyes4u/Algorithms
afd8363ee39e5b7c499741f56922f16f4f50dc09
[ "MIT" ]
1
2020-07-03T06:15:41.000Z
2020-07-03T06:15:41.000Z
/* Name: Hopcroft-Karp algorithm Time complexity: O(M * sqrt(N)) Space complexity: O(N + M) * * * Test problem: https://www.spoj.com/problems/MATCHING/ */ #include <vector> #include <iostream> #include <queue> const int N = 1e5 + 10; const int INF = 1e9; // NONE is sentinel for unpaired nodes const int ...
21.505376
66
0.4415
4eyes4u
b0c1b09926888446e3f7d6329238c2b5c508d4b9
15,475
cpp
C++
Engine/Source/Runtime/Slate/Private/Framework/Text/TextEditHelper.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
null
null
null
Engine/Source/Runtime/Slate/Private/Framework/Text/TextEditHelper.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
2
2015-06-21T17:38:11.000Z
2015-06-22T20:54:42.000Z
Engine/Source/Runtime/Slate/Private/Framework/Text/TextEditHelper.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
null
null
null
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #include "SlatePrivatePCH.h" #include "TextEditHelper.h" /** * Ensure that text transactions are always completed. * i.e. never forget to call FinishChangingText(); */ struct FScopedTextTransaction { explicit FScopedTextTransaction( const TSharedRef< IT...
33.27957
179
0.714249
PopCap
b0c250756c8a7941663028640a1e00abff96e269
45,648
cpp
C++
src/cli.cpp
tschiemer/midimessage
d4cd58712a8f2db0c0b8326db64f913ca24165ba
[ "MIT" ]
1
2021-12-21T17:08:25.000Z
2021-12-21T17:08:25.000Z
src/cli.cpp
tschiemer/midimessage
d4cd58712a8f2db0c0b8326db64f913ca24165ba
[ "MIT" ]
null
null
null
src/cli.cpp
tschiemer/midimessage
d4cd58712a8f2db0c0b8326db64f913ca24165ba
[ "MIT" ]
1
2021-11-05T16:43:46.000Z
2021-11-05T16:43:46.000Z
/** * */ #include <stdio.h> //#include <cstdarg> #include <stdlib.h> //#include <stdlib.h> //#include <string.h> #include <string.h> #include <unistd.h> #include <getopt.h> #include <sys/time.h> #include <time.h> #include <util-hex.h> #include <midimessage/midimessage.h> #include <midimessage/stringifier.h> #inclu...
41.878899
652
0.556717
tschiemer
b0c2eefad0385367e54922a37c72185354cc7853
2,870
cpp
C++
game/scripts/CollisionTracker.cpp
Khuongnb1997/game-aladdin
74b13ffcd623de0d6f799b0669c7e8917eef3b14
[ "MIT" ]
2
2017-11-08T16:27:25.000Z
2018-08-10T09:08:35.000Z
game/scripts/CollisionTracker.cpp
Khuongnb1997/game-aladdin
74b13ffcd623de0d6f799b0669c7e8917eef3b14
[ "MIT" ]
null
null
null
game/scripts/CollisionTracker.cpp
Khuongnb1997/game-aladdin
74b13ffcd623de0d6f799b0669c7e8917eef3b14
[ "MIT" ]
4
2017-11-08T16:25:30.000Z
2021-05-23T06:14:59.000Z
#include "CollisionTracker.h" USING_NAMESPACE_ALA; ALA_CLASS_SOURCE_1(CollisionTracker, ala::GameObjectComponent) CollisionTracker::CollisionTracker( ala::GameObject* gameObject, const std::string& name ) : GameObjectComponent( gameObject, name ), _collidedObjectFlags( 0 ), _collidedColliderFlags( 0 ) {} void Col...
34.578313
102
0.738676
Khuongnb1997
b0c3b7ca1633fc7b98c4b66ee1d1839f7d2682bd
2,675
cpp
C++
examples/04_execution_policies.cpp
JoelFilho/TDP
7609cca96afc60a29156d622756cb95b27aee7f2
[ "BSL-1.0" ]
81
2020-05-19T18:09:24.000Z
2022-03-21T12:29:41.000Z
examples/04_execution_policies.cpp
JoelFilho/TDP
7609cca96afc60a29156d622756cb95b27aee7f2
[ "BSL-1.0" ]
6
2020-05-20T22:27:20.000Z
2021-06-19T04:34:54.000Z
examples/04_execution_policies.cpp
JoelFilho/TDP
7609cca96afc60a29156d622756cb95b27aee7f2
[ "BSL-1.0" ]
2
2020-05-20T03:08:05.000Z
2021-03-25T09:05:09.000Z
#include <iostream> #include "tdp/pipeline.hpp" //--------------------------------------------------------------------------------------------------------------------- // This example shows how to use execution policies with TDP // // An execution policy defines the internal data structure utilized for thread communi...
42.460317
119
0.584299
JoelFilho
b0c5a7c44c00642aa70ba27256110af67366dccb
327
cpp
C++
2017-08-15/E.cpp
tangjz/Three-Investigators
46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52
[ "MIT" ]
3
2018-04-02T06:00:51.000Z
2018-05-29T04:46:29.000Z
2017-08-15/E.cpp
tangjz/Three-Investigators
46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52
[ "MIT" ]
2
2018-03-31T17:54:30.000Z
2018-05-02T11:31:06.000Z
2017-08-15/E.cpp
tangjz/Three-Investigators
46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52
[ "MIT" ]
2
2018-10-07T00:08:06.000Z
2021-06-28T11:02:59.000Z
#include<bits/stdc++.h> using namespace std; #define pb push_back #define mkp make_pair #define fi first #define se second #define ll long long #define M 1000000007 #define all(a) a.begin(), a.end() int T, a; int main(){ scanf("%d", &T); while(T--){ scanf("%d", &a); printf("%d\n", (a - 1) / 2 + 2); } retur...
14.863636
35
0.608563
tangjz
b0c60846d340c6248c25ddb6de6d51e7740a7512
2,226
cpp
C++
tests/unit/ReturnedMessageTests.cpp
djsavic1988/rabbitmq-cxx
f1807fe82ddabe4c604b116fff8e84c45539d7e6
[ "MIT" ]
1
2021-05-17T07:51:24.000Z
2021-05-17T07:51:24.000Z
tests/unit/ReturnedMessageTests.cpp
djsavic1988/rabbitmq-cxx
f1807fe82ddabe4c604b116fff8e84c45539d7e6
[ "MIT" ]
null
null
null
tests/unit/ReturnedMessageTests.cpp
djsavic1988/rabbitmq-cxx
f1807fe82ddabe4c604b116fff8e84c45539d7e6
[ "MIT" ]
null
null
null
/* Project: rabbitmq-cxx <https://github.com/djsavic1988/rabbitmq-cxx> Licensed under the MIT License <http://opensource.org/licenses/MIT>. SPDX-License-Identifier: MIT Copyright (c) 2021 Djordje Savic <djordje.savic.1988@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this...
34.246154
156
0.769542
djsavic1988
b0c8d9b8a08fb65b1d5fb741e3bc058c5acbae5a
2,392
cpp
C++
tests/testVerlet.cpp
cmoser8892/MoleDymCode
9077289a670c6cb0ed9e1daac5a03b51c83bc6fb
[ "MIT" ]
null
null
null
tests/testVerlet.cpp
cmoser8892/MoleDymCode
9077289a670c6cb0ed9e1daac5a03b51c83bc6fb
[ "MIT" ]
null
null
null
tests/testVerlet.cpp
cmoser8892/MoleDymCode
9077289a670c6cb0ed9e1daac5a03b51c83bc6fb
[ "MIT" ]
null
null
null
// // Created by cm on 06.05.21. // #include <gtest/gtest.h> #include "Headerfiles/verlet.h" /** * Info: * Use EXPECT_NEAR or ASSERT_NEAR bc double!! */ TEST(VerletTest, IntegratorCheckConstantForceXYZDirectionSingleAtom) { //single Atom test int nbAtoms = 1; Positions_t positions(3,nbAtoms); Velo...
27.181818
79
0.63587
cmoser8892
b0c8f95970a8bf48cfa317a1b8c6249df109532f
724
cpp
C++
test/src/CallStack_test.cpp
andrsd/godzilla
da2dd8918450d7d28e8f1897466eb82f2a65a467
[ "MIT" ]
null
null
null
test/src/CallStack_test.cpp
andrsd/godzilla
da2dd8918450d7d28e8f1897466eb82f2a65a467
[ "MIT" ]
24
2021-11-13T01:32:41.000Z
2021-12-11T14:16:24.000Z
test/src/CallStack_test.cpp
andrsd/godzilla
da2dd8918450d7d28e8f1897466eb82f2a65a467
[ "MIT" ]
null
null
null
#include "GodzillaApp_test.h" #include "CallStack.h" #include "gmock/gmock.h" #include <unistd.h> #include <signal.h> using namespace godzilla; TEST(CallStackTest, abort) { _F_; pid_t my_pid = getpid(); EXPECT_EXIT(kill(my_pid, SIGABRT), ::testing::ExitedWithCode(254), "Ca...
19.567568
61
0.633978
andrsd
37df4ad8f38bbbebb2b6161fa2f8c3d68c075a8c
1,894
cpp
C++
src/aadcUser/src/HSOG_Runtime/a2o/worldmodel/objectdetection/PointCloudWorker.cpp
AppliedAutonomyOffenburg/AADC_2015_A2O
19a2ac67d743ad23e5a259ca70aed6b3d1f2e3ac
[ "BSD-4-Clause" ]
1
2018-09-09T21:39:29.000Z
2018-09-09T21:39:29.000Z
src/aadcUser/src/HSOG_Runtime/a2o/worldmodel/objectdetection/PointCloudWorker.cpp
TeamAutonomousCarOffenburg/A2O_2015
19a2ac67d743ad23e5a259ca70aed6b3d1f2e3ac
[ "BSD-4-Clause" ]
null
null
null
src/aadcUser/src/HSOG_Runtime/a2o/worldmodel/objectdetection/PointCloudWorker.cpp
TeamAutonomousCarOffenburg/A2O_2015
19a2ac67d743ad23e5a259ca70aed6b3d1f2e3ac
[ "BSD-4-Clause" ]
1
2016-04-05T06:34:08.000Z
2016-04-05T06:34:08.000Z
#include "PointCloudWorker.h" #define FRAMES_PER_SECOND 2 typedef std::chrono::duration<int, std::ratio<1, FRAMES_PER_SECOND>> frame_duration; using namespace A2O; using namespace pcl; PointCloudWorker::PointCloudWorker(IResource *resource) : _resource(resource) { } PointCloudWorker::~PointCloudWorker() { } vo...
26.676056
85
0.705385
AppliedAutonomyOffenburg
37e05306dec92c916a64ff679190375c161b73dc
12,334
cpp
C++
src/nodejs/NodeJsHelper.cpp
Bhaskers-Blu-Org2/pmod
92e3c0ecff25763dcfabab0c1fb86d58e60cbb1a
[ "MIT" ]
19
2019-06-16T02:29:24.000Z
2022-03-01T23:20:25.000Z
src/nodejs/NodeJsHelper.cpp
microsoft/pmod
92e3c0ecff25763dcfabab0c1fb86d58e60cbb1a
[ "MIT" ]
null
null
null
src/nodejs/NodeJsHelper.cpp
microsoft/pmod
92e3c0ecff25763dcfabab0c1fb86d58e60cbb1a
[ "MIT" ]
5
2019-11-03T11:40:25.000Z
2020-08-05T14:56:13.000Z
/*** * Copyright (C) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. * * File:NodeJsHelper.cpp ****/ #include "pch.h" #include "NodeJsHelper.h" #include "DictionaryWrap.h" #include "DispatcherWrap.h" #include "ObservableO...
31.225316
139
0.622588
Bhaskers-Blu-Org2
37e2673f2999bd31119a861aafa20330ee138ccc
701
cpp
C++
Part_DepoisonerState.cpp
sknjpn/SyLife
b215cba87096db52ac63931db64c967f906b9172
[ "MIT" ]
5
2022-01-05T10:04:40.000Z
2022-01-11T13:23:43.000Z
Part_DepoisonerState.cpp
sknjpn/SyLife
b215cba87096db52ac63931db64c967f906b9172
[ "MIT" ]
1
2022-01-05T10:51:42.000Z
2022-01-05T13:25:41.000Z
Part_DepoisonerState.cpp
sknjpn/SyLife
b215cba87096db52ac63931db64c967f906b9172
[ "MIT" ]
null
null
null
#include "Part_DepoisonerState.h" #include "CellState.h" #include "PartConfig.h" #include "Part_DepoisonerAsset.h" #include "World.h" Part_DepoisonerState::Part_DepoisonerState( const std::shared_ptr<PartConfig>& partConfig) : PartState(partConfig) , m_Part_DepoisonerAsset(std::dynamic_pointer_cast<Part_D...
36.894737
120
0.787447
sknjpn
37e2e89963b7a1e5f29561f4ff21412c1268223a
78
cpp
C++
Source/FSD/Private/EliminationTarget.cpp
trumank/DRG-Mods
2febc879f2ffe83498ac913c114d0e933427e93e
[ "MIT" ]
8
2021-07-10T20:06:05.000Z
2022-03-04T19:03:50.000Z
Source/FSD/Private/EliminationTarget.cpp
trumank/DRG-Mods
2febc879f2ffe83498ac913c114d0e933427e93e
[ "MIT" ]
9
2022-01-13T20:49:44.000Z
2022-03-27T22:56:48.000Z
Source/FSD/Private/EliminationTarget.cpp
trumank/DRG-Mods
2febc879f2ffe83498ac913c114d0e933427e93e
[ "MIT" ]
2
2021-07-10T20:05:42.000Z
2022-03-14T17:05:35.000Z
#include "EliminationTarget.h" FEliminationTarget::FEliminationTarget() { }
13
42
0.782051
trumank
37ea94a49b9aedbecf2e924bb8b9fe8d0deee2f6
1,336
cpp
C++
examples/validator/motor.cpp
sandsmark/qt1
e62eef42291be80065a7f824530aa42b79917a8d
[ "Xnet", "X11" ]
18
2018-02-16T16:57:26.000Z
2022-02-10T21:23:47.000Z
examples/validator/motor.cpp
sandsmark/qt1
e62eef42291be80065a7f824530aa42b79917a8d
[ "Xnet", "X11" ]
2
2018-08-12T12:46:38.000Z
2020-06-19T16:30:06.000Z
examples/validator/motor.cpp
sandsmark/qt1
e62eef42291be80065a7f824530aa42b79917a8d
[ "Xnet", "X11" ]
7
2018-06-22T01:17:58.000Z
2021-09-02T21:05:28.000Z
/**************************************************************************** ** $Id: motor.cpp,v 1.9 1998/06/16 11:39:35 warwick Exp $ ** ** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved. ** ** This file is part of an example program for Qt. This example ** program may be used, distributed and modified ...
24.290909
78
0.574102
sandsmark
37eb73693e5abb77b33a4a488a23c93b3f2f57f7
2,056
cpp
C++
src/Entity.cpp
xDUDSSx/bomberman
693a6aae2dba44662ceb1599d1cbdb47f1a9240c
[ "MIT" ]
1
2022-01-14T02:12:01.000Z
2022-01-14T02:12:01.000Z
src/Entity.cpp
xDUDSSx/bomberman
693a6aae2dba44662ceb1599d1cbdb47f1a9240c
[ "MIT" ]
null
null
null
src/Entity.cpp
xDUDSSx/bomberman
693a6aae2dba44662ceb1599d1cbdb47f1a9240c
[ "MIT" ]
1
2021-02-02T19:31:12.000Z
2021-02-02T19:31:12.000Z
#include "Entity.h" #include "Game.h" #include "Utils.h" Entity::Entity(SDL_Texture* texture, int initialX, int initialY, int width, int height) : sprite(Sprite(texture)), position(Utils::createSDLRect(initialX, initialY, width, height)) { } Entity::~Entity() = default; void Entity::update(Game* game) { sprite.u...
17.724138
87
0.712062
xDUDSSx
37ed7b523f4dc9697c7f99da7152d2297a5c44c8
608
cpp
C++
MMOCoreORB/src/server/zone/objects/creature/ai/bt/NonDeterministicBehavior.cpp
V-Fib/FlurryClone
40e0ca7245ec31b3815eb6459329fd9e70f88936
[ "Zlib", "OpenSSL" ]
18
2017-02-09T15:36:05.000Z
2021-12-21T04:22:15.000Z
MMOCoreORB/src/server/zone/objects/creature/ai/bt/NonDeterministicBehavior.cpp
V-Fib/FlurryClone
40e0ca7245ec31b3815eb6459329fd9e70f88936
[ "Zlib", "OpenSSL" ]
61
2016-12-30T21:51:10.000Z
2021-12-10T20:25:56.000Z
MMOCoreORB/src/server/zone/objects/creature/ai/bt/NonDeterministicBehavior.cpp
V-Fib/FlurryClone
40e0ca7245ec31b3815eb6459329fd9e70f88936
[ "Zlib", "OpenSSL" ]
71
2017-01-01T05:34:38.000Z
2022-03-29T01:04:00.000Z
/* * NonDeterministicBehavior.cpp * * Created on: Jun 11, 2014 * Author: swgemu */ #include "NonDeterministicBehavior.h" NonDeterministicBehavior::NonDeterministicBehavior(AiAgent* _agent, const String& className) : CompositeBehavior(_agent, className) { } void NonDeterministicBehavior::start() { // thi...
21.714286
133
0.694079
V-Fib
37ee1f67008ca221a39d5a7b74e1c87cdca16fc6
4,077
cpp
C++
Engine/Modules/Core/Source/Logger/CoreLog.cpp
wanghaiwei/VisReal
e60158e65bae2ee838e73e5009d68c26da84ae74
[ "MIT" ]
1
2020-11-24T09:28:20.000Z
2020-11-24T09:28:20.000Z
Engine/Modules/Core/Source/Logger/CoreLog.cpp
wanghaiwei/VisReal
e60158e65bae2ee838e73e5009d68c26da84ae74
[ "MIT" ]
null
null
null
Engine/Modules/Core/Source/Logger/CoreLog.cpp
wanghaiwei/VisReal
e60158e65bae2ee838e73e5009d68c26da84ae74
[ "MIT" ]
null
null
null
/** * Created by rayfalling on 2020/10/12. * */ // ReSharper disable CppMemberFunctionMayBeStatic #pragma warning(disable:4068) #pragma clang diagnostic push #pragma ide diagnostic ignored "readability-convert-member-functions-to-static" #pragma clang diagnostic push #pragma ide diagnostic ignored "exit-time-destru...
27.924658
120
0.728477
wanghaiwei
37f0efb7c3bb71c19676c685efa8eb431dee489b
2,191
cc
C++
test/unit/neuroscience/param_test.cc
geektoni/biodynamo
09e3673043a7b1888b8e8a47c7b98a393b9d9d29
[ "Apache-2.0" ]
1
2019-03-28T22:53:58.000Z
2019-03-28T22:53:58.000Z
test/unit/neuroscience/param_test.cc
geektoni/biodynamo
09e3673043a7b1888b8e8a47c7b98a393b9d9d29
[ "Apache-2.0" ]
null
null
null
test/unit/neuroscience/param_test.cc
geektoni/biodynamo
09e3673043a7b1888b8e8a47c7b98a393b9d9d29
[ "Apache-2.0" ]
2
2021-05-04T02:40:35.000Z
2021-10-30T21:58:31.000Z
// ----------------------------------------------------------------------------- // // Copyright (C) The BioDynaMo Project. // 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. // // See the LICENSE file distrib...
32.701493
80
0.682793
geektoni
37f17141b450f0bdfeca80563a7ef57ed20a7801
2,534
cpp
C++
usaco/C2/231maze1.cpp
dk00/old-stuff
e1184684c85fe9bbd1ceba58b94d4da84c67784e
[ "Unlicense" ]
null
null
null
usaco/C2/231maze1.cpp
dk00/old-stuff
e1184684c85fe9bbd1ceba58b94d4da84c67784e
[ "Unlicense" ]
null
null
null
usaco/C2/231maze1.cpp
dk00/old-stuff
e1184684c85fe9bbd1ceba58b94d4da84c67784e
[ "Unlicense" ]
null
null
null
/* ID: s0000151 PROG: maze1 LANG: C++ */ #include<stdio.h> #define DEBUG 0 #define FIN {freopen("maze1.in","r",stdin); #define FOUT freopen("maze1.out","w",stdout);} #define Pause scanf(" "); #define N 1 #define E 2 #define W 4 #define S 8 struct Q{ int x:8; int y:7; }; main(){ if(!DEBUG) FIN FOUT char line[10...
22.828829
65
0.416338
dk00
37f23cd8f16088179f668b03ec66f38430db3276
162
cpp
C++
CppPrimer/CppPrimer-Exercises/CppPrimer-Ch02/Exercise2.39.cpp
alaxion/Learning
4b12b1603419252103cd933fdbfc4b2faffb6d00
[ "MIT" ]
null
null
null
CppPrimer/CppPrimer-Exercises/CppPrimer-Ch02/Exercise2.39.cpp
alaxion/Learning
4b12b1603419252103cd933fdbfc4b2faffb6d00
[ "MIT" ]
null
null
null
CppPrimer/CppPrimer-Exercises/CppPrimer-Ch02/Exercise2.39.cpp
alaxion/Learning
4b12b1603419252103cd933fdbfc4b2faffb6d00
[ "MIT" ]
null
null
null
// Exercise2.39.cpp // Ad // Compile the following code. #include <iostream> struct Foo { } int main() { // Pause std::cin.get(); return 0; }
10.8
31
0.561728
alaxion
37f41bf06fcd598c57e1ca1d18765ed35988c355
523
cpp
C++
GeeksForGeeks/DS/3. Array/20.maximum-difference-between-two-elements.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
36
2019-12-27T08:23:08.000Z
2022-01-24T20:35:47.000Z
GeeksForGeeks/DS/3. Array/20.maximum-difference-between-two-elements.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
10
2019-11-13T02:55:18.000Z
2021-10-13T23:28:09.000Z
GeeksForGeeks/DS/3. Array/20.maximum-difference-between-two-elements.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
53
2020-08-15T11:08:40.000Z
2021-10-09T15:51:38.000Z
// http://www.geeksforgeeks.org/maximum-difference-between-two-elements/ #include <iostream> #include "array.h" int maxDiff(int *a, int n){ int minNo = a[0]; int maxDiff = 0; for(int i=1; i<n; i++){ if(a[i] < minNo){ minNo = a[i]; } else{ int diff = a[i] - minNo; if(diff > maxDiff) maxDiff = dif...
18.034483
72
0.58891
Ashwanigupta9125
37f5c617ea45fe410bc18b2cfdbddd49e86da526
750
hpp
C++
neat/phenotype/feed_forward.hpp
madcato/neat-libtorch
b486b01606a9a6951f595c6a17d6dd1a576afed0
[ "BSL-1.0" ]
null
null
null
neat/phenotype/feed_forward.hpp
madcato/neat-libtorch
b486b01606a9a6951f595c6a17d6dd1a576afed0
[ "BSL-1.0" ]
null
null
null
neat/phenotype/feed_forward.hpp
madcato/neat-libtorch
b486b01606a9a6951f595c6a17d6dd1a576afed0
[ "BSL-1.0" ]
null
null
null
#ifndef FEED_FORWARD_HPP_ #define FEED_FORWARD_HPP_ #include <memory> #include <torch/torch.h> #include <vector> #include "neat/unit.hpp" #include "neat/experiments/config.hpp" #include "neat/genotype/genome.hpp" class FeedForwardImpl: public torch::nn::Module { public: FeedForwardImpl(const Genome& genome, st...
23.4375
104
0.726667
madcato
37f64f9f66a727dfb9a4ec52ddc621a65b50bec2
485
cpp
C++
kactl/stress-tests/number-theory/ModSqrt.cpp
prince776/CodeBook
874fc7f94011ad1d25a55bcd91fecd2a11eb5a9b
[ "CC0-1.0" ]
17
2021-01-25T12:07:17.000Z
2022-02-26T17:20:31.000Z
kactl/stress-tests/number-theory/ModSqrt.cpp
NavneelSinghal/CodeBook
ff60ace9107dd19ef8ba81e175003f567d2a9070
[ "CC0-1.0" ]
null
null
null
kactl/stress-tests/number-theory/ModSqrt.cpp
NavneelSinghal/CodeBook
ff60ace9107dd19ef8ba81e175003f567d2a9070
[ "CC0-1.0" ]
4
2021-02-28T11:13:44.000Z
2021-11-20T12:56:20.000Z
#include "../utilities/template.h" ll modpow(ll a, ll e, ll mod) { if (e == 0) return 1; ll x = modpow(a * a % mod, e >> 1, mod); return e & 1 ? x * a % mod : x; } #include "../../content/number-theory/ModSqrt.h" int main() { rep(p,2,10000) { rep(i,2,p) if (p % i == 0) goto next; rep(a,0,p) { if (p != 2 &...
20.208333
56
0.496907
prince776
37fcc57fb905dc1dc416279dc54350590d56ba33
417
cpp
C++
Common/src/interrupt_lock.cpp
foxostro/FlapjackOS
34bd2cc9b0983b917a089efe2055ca8f78d56d9a
[ "BSD-2-Clause" ]
null
null
null
Common/src/interrupt_lock.cpp
foxostro/FlapjackOS
34bd2cc9b0983b917a089efe2055ca8f78d56d9a
[ "BSD-2-Clause" ]
null
null
null
Common/src/interrupt_lock.cpp
foxostro/FlapjackOS
34bd2cc9b0983b917a089efe2055ca8f78d56d9a
[ "BSD-2-Clause" ]
null
null
null
#include <common/interrupt_lock.hpp> std::atomic<int> InterruptLock::count_{0}; static void nop() {} void (*InterruptLock::enable_interrupts)() = ::nop; void (*InterruptLock::disable_interrupts)() = ::nop; void InterruptLock::lock() { if (count_.fetch_add(1) == 0) { disable_interrupts(); } } void In...
18.954545
52
0.640288
foxostro
53010b31adb85b493126efb276e2c9c51e373cc7
305
hpp
C++
ParamedicCommander.hpp
avichai1221/WarGame
884002a45ce42a1d6e54193cb4cffc03c4d138cf
[ "MIT" ]
null
null
null
ParamedicCommander.hpp
avichai1221/WarGame
884002a45ce42a1d6e54193cb4cffc03c4d138cf
[ "MIT" ]
null
null
null
ParamedicCommander.hpp
avichai1221/WarGame
884002a45ce42a1d6e54193cb4cffc03c4d138cf
[ "MIT" ]
null
null
null
#include "Soldier.hpp" //namespace WarGame { class ParamedicCommander : public Soldier { public: explicit ParamedicCommander(int teamNum): Soldier(200, -1, teamNum) {} void attack (std::vector<std::vector<Soldier*>> &board, int first, int second) override ; }; //};
15.25
97
0.636066
avichai1221
53015506c754de23ffd5710da172d6e55b0dd625
2,075
hpp
C++
include/turbo/Component.hpp
mariusvn/turbo-engine
63cc2b76bc1aff7de9655916553a03bd768f5879
[ "MIT" ]
2
2021-02-12T13:05:02.000Z
2021-02-22T14:25:00.000Z
include/turbo/Component.hpp
mariusvn/turbo-engine
63cc2b76bc1aff7de9655916553a03bd768f5879
[ "MIT" ]
null
null
null
include/turbo/Component.hpp
mariusvn/turbo-engine
63cc2b76bc1aff7de9655916553a03bd768f5879
[ "MIT" ]
null
null
null
#ifndef __TURBO_COMPONENT_HPP__ #define __TURBO_COMPONENT_HPP__ #include "debug_menus/Inspector.hpp" #include <vector> namespace turbo { class GameObject; /** * @brief Components who defines the behaviour of a GameObject */ class Component { public: /** * @brief Construct ...
24.702381
77
0.553253
mariusvn
53017c9f6e6579d49c2818de202792ba01c7cf62
871
cpp
C++
components/addons/social/facebook/sources/platform/default/default_platform.cpp
untgames/funner
c91614cda55fd00f5631d2bd11c4ab91f53573a3
[ "MIT" ]
7
2016-03-30T17:00:39.000Z
2017-03-27T16:04:04.000Z
components/addons/social/facebook/sources/platform/default/default_platform.cpp
untgames/Funner
c91614cda55fd00f5631d2bd11c4ab91f53573a3
[ "MIT" ]
4
2017-11-21T11:25:49.000Z
2018-09-20T17:59:27.000Z
components/addons/social/facebook/sources/platform/default/default_platform.cpp
untgames/Funner
c91614cda55fd00f5631d2bd11c4ab91f53573a3
[ "MIT" ]
4
2016-11-29T15:18:40.000Z
2017-03-27T16:04:08.000Z
#include "shared.h" using namespace social; using namespace social::facebook; /* Default platform */ /* Login (returns true, if platform-specific login flow was started) */ void DefaultPlatform::Login (const char* app_id, const PlatformLoginCallback& callback, const common::PropertyMap& propertie...
17.078431
127
0.690011
untgames
5302d17a2103207a314f4bc91e41d11166f70945
1,833
hpp
C++
vlc_linux/vlc-3.0.16/modules/demux/adaptive/Time.hpp
Brook1711/biubiu_Qt6
5c4d22a1d1beef63bc6c7738dce6c477c4642803
[ "MIT" ]
null
null
null
vlc_linux/vlc-3.0.16/modules/demux/adaptive/Time.hpp
Brook1711/biubiu_Qt6
5c4d22a1d1beef63bc6c7738dce6c477c4642803
[ "MIT" ]
null
null
null
vlc_linux/vlc-3.0.16/modules/demux/adaptive/Time.hpp
Brook1711/biubiu_Qt6
5c4d22a1d1beef63bc6c7738dce6c477c4642803
[ "MIT" ]
null
null
null
/***************************************************************************** * Time.hpp: Adaptative streaming time definitions ***************************************************************************** * Copyright © 2015 - VideoLAN and VLC Authors * * This program is free software; you can redistribute it and...
32.157895
79
0.562466
Brook1711
530576de74db4807e890a711837e190b5c70328f
6,561
cpp
C++
media/codec2/hidl/1.0/utils/Configurable.cpp
Dreadwyrm/lhos_frameworks_av
62c63ccfdf5c79a3ad9be4836f473da9398c671b
[ "Apache-2.0" ]
null
null
null
media/codec2/hidl/1.0/utils/Configurable.cpp
Dreadwyrm/lhos_frameworks_av
62c63ccfdf5c79a3ad9be4836f473da9398c671b
[ "Apache-2.0" ]
null
null
null
media/codec2/hidl/1.0/utils/Configurable.cpp
Dreadwyrm/lhos_frameworks_av
62c63ccfdf5c79a3ad9be4836f473da9398c671b
[ "Apache-2.0" ]
2
2021-07-08T07:42:11.000Z
2021-07-09T21:56:10.000Z
/* * Copyright 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 applica...
33.304569
83
0.630697
Dreadwyrm
530d42d108873966bf80b4f4ff0a5d704cf1e903
8,761
cpp
C++
src/FastaParser.cpp
Daria2002/bioinformatics_project
f201007e78ad6880b7874a9a0aca672eaa14da9e
[ "MIT" ]
null
null
null
src/FastaParser.cpp
Daria2002/bioinformatics_project
f201007e78ad6880b7874a9a0aca672eaa14da9e
[ "MIT" ]
null
null
null
src/FastaParser.cpp
Daria2002/bioinformatics_project
f201007e78ad6880b7874a9a0aca672eaa14da9e
[ "MIT" ]
null
null
null
#include "FastaParser.h" #include <stdio.h> #include <string.h> #include <iostream> FastaParser::FastaParser(std::string input_file, int K) : fasta_stream(input_file), K(K) { cout << "FastaParser() - Initialized stream: " << input_file << endl; } FastaParser::~FastaParser() { } // parse kmers from fasta file unor...
31.974453
108
0.663509
Daria2002
530f673d25b94437552041801354c478377090d5
6,400
cpp
C++
resource/src/OCUtilities.cpp
mandeepshetty/iotivity
fea1aa7f7088fdf206ebc3ff587766da96836708
[ "Apache-2.0" ]
null
null
null
resource/src/OCUtilities.cpp
mandeepshetty/iotivity
fea1aa7f7088fdf206ebc3ff587766da96836708
[ "Apache-2.0" ]
null
null
null
resource/src/OCUtilities.cpp
mandeepshetty/iotivity
fea1aa7f7088fdf206ebc3ff587766da96836708
[ "Apache-2.0" ]
1
2022-01-22T19:42:20.000Z
2022-01-22T19:42:20.000Z
//****************************************************************** // // Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except ...
29.493088
232
0.578125
mandeepshetty
530ff0e4c13d737d67847a8709a2b16f180d34c6
1,357
hpp
C++
__unit_tests/gv_base_unit_test/unit_test_stack.hpp
dragonsn/gv_game_engine
dca6c1fb1f8d96e9a244f157a63f8a69da084b0f
[ "MIT" ]
2
2018-12-03T13:17:31.000Z
2020-04-08T07:00:02.000Z
__unit_tests/gv_base_unit_test/unit_test_stack.hpp
dragonsn/gv_game_engine
dca6c1fb1f8d96e9a244f157a63f8a69da084b0f
[ "MIT" ]
null
null
null
__unit_tests/gv_base_unit_test/unit_test_stack.hpp
dragonsn/gv_game_engine
dca6c1fb1f8d96e9a244f157a63f8a69da084b0f
[ "MIT" ]
null
null
null
namespace unit_test_stack { void main(gvt_array< gv_string >& args) { { gvt_stack< int > array; GV_TEST_PRINT_FUNC(array.push(2), test_log()); GV_TEST_PRINT_FUNC(array.push(1), test_log()); GV_TEST_PRINT_FUNC(array.push(3), test_log()); GV_TEST_PRINT_FUNC(array.push(22), test_log()); // std::copy(array.be...
38.771429
109
0.68902
dragonsn
5311219ae58959ef49f0b4cda80eab3270e15931
2,775
cpp
C++
RenderingEngine/Mesh.cpp
Tidus-Zheng/ray-tracing
ebafcbafd15488ec16e94d7785ea79d3b0904529
[ "MIT" ]
null
null
null
RenderingEngine/Mesh.cpp
Tidus-Zheng/ray-tracing
ebafcbafd15488ec16e94d7785ea79d3b0904529
[ "MIT" ]
null
null
null
RenderingEngine/Mesh.cpp
Tidus-Zheng/ray-tracing
ebafcbafd15488ec16e94d7785ea79d3b0904529
[ "MIT" ]
null
null
null
#include "Mesh.h" #include "Scene.h" void Mesh::setupMesh() { glGenVertexArrays(1, &VAO); glGenBuffers(1, &VBO); glGenBuffers(1, &EBO); glBindVertexArray(VAO); glBindBuffer(GL_ARRAY_BUFFER, VBO); glBufferData(GL_ARRAY_BUFFER, vertices.size() * sizeof(Vertex), &vertices[0], GL_STATIC_DRAW); glBindBuffer(GL_EL...
37
118
0.763604
Tidus-Zheng
5312d19f48d9bc3055e871c27d722498ce848720
919
cpp
C++
events/masterpiece_created_food.cpp
BenLubar/weblegends
0eea0239c57ffc2540adc4d312f446cafafeb2c5
[ "Zlib" ]
16
2018-02-05T17:44:12.000Z
2022-03-03T13:37:06.000Z
events/masterpiece_created_food.cpp
BenLubar/weblegends
0eea0239c57ffc2540adc4d312f446cafafeb2c5
[ "Zlib" ]
12
2017-10-25T13:25:22.000Z
2022-03-12T19:27:54.000Z
events/masterpiece_created_food.cpp
BenLubar/weblegends
0eea0239c57ffc2540adc4d312f446cafafeb2c5
[ "Zlib" ]
5
2017-10-25T13:30:45.000Z
2018-08-03T12:51:40.000Z
#include "../helpers_event.h" #include "df/history_event_masterpiece_created_foodst.h" #include "df/itemdef_foodst.h" void do_event(std::ostream & s, const event_context & context, df::history_event_masterpiece_created_foodst *event) { auto maker = df::historical_figure::find(event->maker); auto maker_entity ...
24.837838
115
0.621328
BenLubar
5316af963e84f336552cc7371f37632be366451c
3,877
cpp
C++
pose_state_time/src/examples/rotation_test.cpp
andreucm/btr-libs
a887a78fc4c63a74311e2745b810b8b0dd9f48cb
[ "BSD-2-Clause-FreeBSD" ]
1
2015-06-21T19:50:11.000Z
2015-06-21T19:50:11.000Z
pose_state_time/src/examples/rotation_test.cpp
beta-robots/btr-libs
a887a78fc4c63a74311e2745b810b8b0dd9f48cb
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pose_state_time/src/examples/rotation_test.cpp
beta-robots/btr-libs
a887a78fc4c63a74311e2745b810b8b0dd9f48cb
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
#include <cstdlib> #include "rotation.h" int main(int argc, char** argv) { Crotation rt1, rt2, rt3; Cquaternion qt1; dlib::matrix<double,3,3> rM1; dlib::matrix<double,3,1> axis; double angle; unsigned ii,jj,kk; double euH, euP, euR; //euler angles; int testId = atoi(arg...
41.688172
163
0.354656
andreucm
53187eddeef33c499c5827564312ad67977da07a
73,878
cpp
C++
tenncor/test/test_query.cpp
mingkaic/tenncor
f2fa9652e55e9ca206de5e9741fe41bde43791c1
[ "BSL-1.0", "MIT" ]
1
2020-12-29T20:38:08.000Z
2020-12-29T20:38:08.000Z
tenncor/test/test_query.cpp
mingkaic/tenncor
f2fa9652e55e9ca206de5e9741fe41bde43791c1
[ "BSL-1.0", "MIT" ]
16
2018-01-28T04:20:19.000Z
2021-01-23T09:38:52.000Z
tenncor/test/test_query.cpp
mingkaic/tenncor
f2fa9652e55e9ca206de5e9741fe41bde43791c1
[ "BSL-1.0", "MIT" ]
null
null
null
#ifndef DISABLE_TENNCOR_QUERY_TEST #include "gtest/gtest.h" #include "exam/exam.hpp" #include "testutil/tutil.hpp" #include "tenncor/distr/mock/mock.hpp" #include "internal/query/querier.hpp" #include "internal/query/parse.hpp" #include "tenncor/tenncor.hpp" static eteq::ETensor tc_tanh (const eteq::ETensor& ...
50.428669
143
0.618087
mingkaic
5318df4a684b41ad4df96806afb0e062fe3295dd
577
cpp
C++
Source/GameObject.cpp
yuhongyi/HazelEngine
fad6eb1f42ad7ac06b8a0e9e2d3154147b3a7c9c
[ "MIT" ]
null
null
null
Source/GameObject.cpp
yuhongyi/HazelEngine
fad6eb1f42ad7ac06b8a0e9e2d3154147b3a7c9c
[ "MIT" ]
null
null
null
Source/GameObject.cpp
yuhongyi/HazelEngine
fad6eb1f42ad7ac06b8a0e9e2d3154147b3a7c9c
[ "MIT" ]
null
null
null
#include "Globals.h" #include "GameObject.h" GameObject::GameObject() : mId(-1), mPosition(-1.f, -1.f), mSize(0.f, 0.f) { } GameObject::GameObject(Vector2D size): mId(-1), mPosition(-1.f, -1.f), mSize(size) { } int GameObject::GetID() { return mId; } void GameObject::SetID(int id) { mId = id; } Vector2D Ga...
12.543478
50
0.684575
yuhongyi
531c08890565ae5fbcf5f3b9eb7a1579fa752078
521
cpp
C++
ConsoleCentre/CentreText.cpp
uaineteine/ConsoleCentre
fb4d25d14ea33bc55dc41f8bf4d7c83c55d4892b
[ "MIT" ]
null
null
null
ConsoleCentre/CentreText.cpp
uaineteine/ConsoleCentre
fb4d25d14ea33bc55dc41f8bf4d7c83c55d4892b
[ "MIT" ]
null
null
null
ConsoleCentre/CentreText.cpp
uaineteine/ConsoleCentre
fb4d25d14ea33bc55dc41f8bf4d7c83c55d4892b
[ "MIT" ]
null
null
null
#include "CentreText.h" void centreText(char * input, int consoleSize) { int l = strlen(input); int pos = (int)((consoleSize - l) / 2); for (int i = 0; i < pos; i++) cout << " "; cout << input << endl; } void centreText(char * input) { centreText(input, defConsoleSize); } void centreText(string input, int co...
17.965517
46
0.667946
uaineteine
531ef2e82a2b3ab9ccf9c0ec5cd05783bd8f2051
1,867
cpp
C++
BeakJoon/c++/solved/2000/2573.cpp
heeboy007/PS-MyAnswers
e5e02972ab64279d96eb43e85941a46b82315fbd
[ "MIT" ]
null
null
null
BeakJoon/c++/solved/2000/2573.cpp
heeboy007/PS-MyAnswers
e5e02972ab64279d96eb43e85941a46b82315fbd
[ "MIT" ]
null
null
null
BeakJoon/c++/solved/2000/2573.cpp
heeboy007/PS-MyAnswers
e5e02972ab64279d96eb43e85941a46b82315fbd
[ "MIT" ]
null
null
null
#include<iostream> #include<queue> #include<vector> #include<algorithm> #include<cstring> using namespace std; int n, m; int map[301][301]; bool is_visited[301][301]; void bfs(int sx, int sy){ queue<pair<int, int>> q; q.push({sx, sy}); is_visited[sx][sy] = true; while(!q.empty()){ int x = q.f...
24.246753
83
0.384039
heeboy007
531f0512da634f223450b2c7d9f5daaa2b90f999
2,226
hh
C++
nox/src/nox/netapps/authenticator/flow_fn_map.hh
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
28
2015-02-04T13:59:25.000Z
2021-12-29T03:44:47.000Z
nox/src/nox/netapps/authenticator/flow_fn_map.hh
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
552
2015-01-05T18:25:54.000Z
2022-03-16T18:51:13.000Z
nox/src/nox/netapps/authenticator/flow_fn_map.hh
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
25
2015-02-04T18:48:20.000Z
2020-06-18T15:51:05.000Z
/* Copyright 2008, 2009 (C) Nicira, Inc. * * This file is part of NOX. * * NOX is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. ...
30.493151
87
0.704403
ayjazz
5321fded148608d23581ef9702c96cc16a25c029
3,118
hpp
C++
include/caffe/data_transformer.hpp
ChenglongChen/caffe-windows
c72d55e5258a05f88c02e8ae636838c43b11187f
[ "BSD-2-Clause" ]
110
2015-02-28T10:48:57.000Z
2020-01-30T14:34:39.000Z
include/caffe/data_transformer.hpp
ChenglongChen/caffe-windows
c72d55e5258a05f88c02e8ae636838c43b11187f
[ "BSD-2-Clause" ]
7
2015-05-21T00:25:02.000Z
2018-04-03T12:59:46.000Z
include/caffe/data_transformer.hpp
ChenglongChen/caffe-windows
c72d55e5258a05f88c02e8ae636838c43b11187f
[ "BSD-2-Clause" ]
64
2015-03-05T13:50:14.000Z
2019-09-16T11:24:32.000Z
#ifndef CAFFE_DATA_TRANSFORMER_HPP #define CAFFE_DATA_TRANSFORMER_HPP #include "caffe/common.hpp" #include "caffe/proto/caffe.pb.h" #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/highgui/highgui_c.h> #include <opencv2/imgproc/imgproc.hpp> using namespace cv; namespace caff...
33.170213
85
0.635022
ChenglongChen
5322a91e4ff5540324dff3fb142e9898f90bee6d
10,726
cpp
C++
src/Texture.cpp
m-iDev-0792/HJGraphics
dedd324c6fd6a5b9549fcabad7e5225aefa15e00
[ "MIT" ]
3
2019-07-08T12:11:59.000Z
2019-07-10T13:23:14.000Z
src/Texture.cpp
m-iDev-0792/HJGraphics
dedd324c6fd6a5b9549fcabad7e5225aefa15e00
[ "MIT" ]
null
null
null
src/Texture.cpp
m-iDev-0792/HJGraphics
dedd324c6fd6a5b9549fcabad7e5225aefa15e00
[ "MIT" ]
1
2020-12-30T13:27:14.000Z
2020-12-30T13:27:14.000Z
// // Created by bytedance on 2021/6/19. // #define STB_IMAGE_IMPLEMENTATION #include "Texture.h" #include "stb/stb_image.h" /* * Implementation of Texture2D */ HJGraphics::Texture::Texture(GLuint _type,GLuint _texN) { type=_type; textureN=_texN; } HJGraphics::Texture::~Texture() { } /* * Implementation o...
39.725926
185
0.703711
m-iDev-0792
53284498f6f44255c342617dc9729b1dc82d0492
1,540
cpp
C++
URI/Hyperprimes.cpp
aajjbb/contest-files
b8842681b96017063a7baeac52ae1318bf59d74d
[ "Apache-2.0" ]
1
2018-08-28T19:58:40.000Z
2018-08-28T19:58:40.000Z
URI/Hyperprimes.cpp
aajjbb/contest-files
b8842681b96017063a7baeac52ae1318bf59d74d
[ "Apache-2.0" ]
2
2017-04-16T00:48:05.000Z
2017-08-03T20:12:26.000Z
URI/Hyperprimes.cpp
aajjbb/contest-files
b8842681b96017063a7baeac52ae1318bf59d74d
[ "Apache-2.0" ]
4
2016-03-04T19:42:00.000Z
2018-01-08T11:42:00.000Z
#include <bits/stdc++.h> template<typename T> T gcd(T a, T b) { if(!b) return a; return gcd(b, a % b); } template<typename T> T lcm(T a, T b) { return a * b / gcd(a, b); } template<typename T> void chmin(T& a, T b) { a = (a > b) ? b : a; } template<typename T> void chmax(T& a, T b) { a = (a < b) ? b : a; ...
16.210526
67
0.461688
aajjbb
53286c3bc3ac71c5dda85f0cd6f9884a26e8fdf9
4,130
cpp
C++
Source/UprisingServer/Private/GameMode/GGameMode.cpp
jwoo1601/Unknown-Planet-Zeropist
745ed270c9450c81d90a833c22c7845c6536173f
[ "BSD-3-Clause" ]
null
null
null
Source/UprisingServer/Private/GameMode/GGameMode.cpp
jwoo1601/Unknown-Planet-Zeropist
745ed270c9450c81d90a833c22c7845c6536173f
[ "BSD-3-Clause" ]
null
null
null
Source/UprisingServer/Private/GameMode/GGameMode.cpp
jwoo1601/Unknown-Planet-Zeropist
745ed270c9450c81d90a833c22c7845c6536173f
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2017 Ground Breaking Games. All Rights Reserved. #include "ZGameMode.h" #include "Client.h" #include "Hero/HeroCharacter.h" #include "Player/ZPlayerController.h" #include "Team/Team.h" #include "Team/TeamStart.h" #include "UI/ZPlayerHUD.h" AZGameMode::AZGameMode(const FObjectInitializer &ObjectInitialize...
22.445652
175
0.7046
jwoo1601
532b91581776db7560e14dd99ad7f06c05c2b7c0
2,535
hxx
C++
tfm/tfdum/ServerSubscriptionEvent.hxx
dulton/reSipServer
ac4241df81c1e3eef2e678271ffef4dda1fc6747
[ "Apache-2.0" ]
1
2019-04-15T14:10:58.000Z
2019-04-15T14:10:58.000Z
tfm/tfdum/ServerSubscriptionEvent.hxx
dulton/reSipServer
ac4241df81c1e3eef2e678271ffef4dda1fc6747
[ "Apache-2.0" ]
null
null
null
tfm/tfdum/ServerSubscriptionEvent.hxx
dulton/reSipServer
ac4241df81c1e3eef2e678271ffef4dda1fc6747
[ "Apache-2.0" ]
2
2019-10-31T09:11:09.000Z
2021-09-17T01:00:49.000Z
#if !defined ServerSubscriptionEvent_hxx #define ServerSubscriptionEvent_hxx #include "resip/stack/SipMessage.hxx" #include "tfm/Event.hxx" #include "tfm/tfdum/DumEvent.hxx" class DumUserAgent; typedef enum { ServerSubscription_Refresh, ServerSubscription_Published, ServerSubscription_Error, ServerSubscr...
26.684211
130
0.671006
dulton
53301a662c0912356694b6ed44f6610dd044c5ca
4,823
hpp
C++
include/nall/mosaic/parser.hpp
wareya/kotareci
14c87d1364d442456f93cebe73a288f85b79ba74
[ "Libpng" ]
4
2015-08-02T06:48:46.000Z
2017-10-15T14:46:35.000Z
nall/mosaic/parser.hpp
apollolux/hello-phoenix
71510b5f329804c525a9576fb0367fe8ab2487cd
[ "MIT" ]
null
null
null
nall/mosaic/parser.hpp
apollolux/hello-phoenix
71510b5f329804c525a9576fb0367fe8ab2487cd
[ "MIT" ]
null
null
null
#ifdef NALL_MOSAIC_INTERNAL_HPP namespace nall { namespace mosaic { struct parser { image canvas; //export from bitstream to canvas void load(bitstream& stream, uint64_t offset, context& ctx, unsigned width, unsigned height) { canvas.allocate(width, height); canvas.clear(ctx.paddingColor); parse(1,...
37.976378
128
0.552146
wareya
5330b94b5be962779212ce9869de6963ddc889cc
525
cpp
C++
make/glue/bullet/BulletCollision/CollisionShapes/btCollisionShape.cpp
blm768/BulletD
dac62f9f8dadd8eaf7169c58ac3a2b2fbc77cb92
[ "BSL-1.0" ]
3
2016-02-23T19:19:37.000Z
2020-01-20T13:05:15.000Z
make/glue/bullet/BulletCollision/CollisionShapes/btCollisionShape.cpp
MeinMein/BulletD
dac62f9f8dadd8eaf7169c58ac3a2b2fbc77cb92
[ "BSL-1.0" ]
1
2016-05-25T20:39:38.000Z
2016-05-25T21:21:46.000Z
make/glue/bullet/BulletCollision/CollisionShapes/btCollisionShape.cpp
blm768/BulletD
dac62f9f8dadd8eaf7169c58ac3a2b2fbc77cb92
[ "BSL-1.0" ]
null
null
null
#include <new> #include <BulletCollision/CollisionShapes/btCollisionShape.h> extern "C" void _glue_10827548791891431243(btCollisionShape* _this) { delete _this; } extern "C" void _glue_3352658093558691985(btCollisionShape* _this, float a0, btVector3& a1) { return _this->calculateLocalInertia(a0, a1); } extern "C" ...
27.631579
93
0.779048
blm768
5330c67a87da40fea55ab86e4b06870e1ab18b36
5,121
cpp
C++
src/datagrabber/dataelements/PointProjector.cpp
guthom/ropose_datagrabber
addcbb844c78d908a60fe0ce29cc45109c274910
[ "MIT" ]
null
null
null
src/datagrabber/dataelements/PointProjector.cpp
guthom/ropose_datagrabber
addcbb844c78d908a60fe0ce29cc45109c274910
[ "MIT" ]
null
null
null
src/datagrabber/dataelements/PointProjector.cpp
guthom/ropose_datagrabber
addcbb844c78d908a60fe0ce29cc45109c274910
[ "MIT" ]
null
null
null
// // Created by thomas on 5/23/17. // #include "PointProjector.h" #include <boost/filesystem.hpp> #include <boost/property_tree/json_parser.hpp> #include "opencv2/calib3d/calib3d.hpp" namespace RoposeGrabber { PointProjector::PointProjector(std::string name, std::string path, std::vector<std::string> transform...
38.503759
118
0.535052
guthom
533114fc8cb1758d7a57e6adb4ce8cda80bcaa99
9,691
cpp
C++
CesiumGltfReader/test/TestImageManipulation.cpp
SC-One/cesium-native
a8232ad039db1bb83ad2204c40c6dfb5d8207bb6
[ "Apache-2.0" ]
2
2021-10-02T17:45:12.000Z
2021-10-02T17:45:15.000Z
CesiumGltfReader/test/TestImageManipulation.cpp
SC-One/cesium-native
a8232ad039db1bb83ad2204c40c6dfb5d8207bb6
[ "Apache-2.0" ]
null
null
null
CesiumGltfReader/test/TestImageManipulation.cpp
SC-One/cesium-native
a8232ad039db1bb83ad2204c40c6dfb5d8207bb6
[ "Apache-2.0" ]
null
null
null
#include "CesiumGltf/ImageCesium.h" #include "CesiumGltf/ImageManipulation.h" #include <catch2/catch.hpp> #include <algorithm> using namespace CesiumGltf; TEST_CASE("ImageManipulation::unsafeBlitImage entire image") { size_t width = 10; size_t height = 10; size_t imagePixels = width * height; size_t bufferP...
29.01497
79
0.638943
SC-One
533653cbc99f4611e91dfaea752a763092af799f
224
cpp
C++
hiro/reference/widget/vertical-scroller.cpp
mp-lee/higan
c38a771f2272c3ee10fcb99f031e982989c08c60
[ "Intel", "ISC" ]
38
2018-04-05T05:00:05.000Z
2022-02-06T00:02:02.000Z
hiro/reference/widget/vertical-scroller.cpp
ameer-bauer/higan-097
a4a28968173ead8251cfa7cd6b5bf963ee68308f
[ "Info-ZIP" ]
2
2015-10-06T14:59:48.000Z
2022-01-27T08:57:57.000Z
hiro/reference/widget/vertical-scroller.cpp
ameer-bauer/higan-097
a4a28968173ead8251cfa7cd6b5bf963ee68308f
[ "Info-ZIP" ]
8
2018-04-16T22:37:46.000Z
2021-02-10T07:37:03.000Z
namespace phoenix { void pVerticalScroller::setLength(unsigned length) { } void pVerticalScroller::setPosition(unsigned position) { } void pVerticalScroller::constructor() { } void pVerticalScroller::destructor() { } }
14
56
0.763393
mp-lee
5337ccd9768e1f6fa072a5d765e6df411bfb6d93
1,364
cpp
C++
test_package/test_package.cpp
igor-sadchenko/conan-restclient-cpp
e82e92596dd92356c0c4acd99df0ffd9e21e9642
[ "MIT" ]
null
null
null
test_package/test_package.cpp
igor-sadchenko/conan-restclient-cpp
e82e92596dd92356c0c4acd99df0ffd9e21e9642
[ "MIT" ]
null
null
null
test_package/test_package.cpp
igor-sadchenko/conan-restclient-cpp
e82e92596dd92356c0c4acd99df0ffd9e21e9642
[ "MIT" ]
null
null
null
#include <iostream> #include <restclient-cpp/restclient.h> #define EXPECT_TRUE(arg) \ do { \ if(!(arg)) { \ std::cerr << "Unexpected false at " \ << __FILE__ << ", " << __LINE__ << ", " << __func__ << ": " << #arg << ": \033[31mFAILED\033[0m\n"; \ ...
31
125
0.535924
igor-sadchenko
533ae909406622ba2751b4c46ee7e66037e1b81a
2,964
cpp
C++
src/Circuit.cpp
4rzael/quantum-cuda
6c03d79f4ef68f6350e0659a1ef5a556d7915968
[ "MIT" ]
6
2018-07-05T12:22:01.000Z
2019-08-05T05:28:42.000Z
src/Circuit.cpp
4rzael/quantum-cuda
6c03d79f4ef68f6350e0659a1ef5a556d7915968
[ "MIT" ]
null
null
null
src/Circuit.cpp
4rzael/quantum-cuda
6c03d79f4ef68f6350e0659a1ef5a556d7915968
[ "MIT" ]
1
2018-11-14T17:58:11.000Z
2018-11-14T17:58:11.000Z
/** * @Author: Maxime Agor (4rzael) * @Date: Mon Jul 16 2018 * @Email: maxime.agor23@gmail.com * @Project: CUDA-Based Simulator of Quantum Systems * @Filename: Circuit.cpp * @Last modified by: 4rzael * @Last modified time: Mon Jul 16 2018, 23:09:20 * @License: MIT License */ #include <algorithm> #includ...
32.571429
119
0.639339
4rzael
533cd8d5968a07ae265b02c48b19967d32366403
93
cpp
C++
src/core/logging/debug_error.cpp
imnetcat/cout
f188c1b345b9c95f4bfcd5b928845465f048ff6e
[ "MIT" ]
2
2020-06-22T07:01:28.000Z
2020-09-08T18:16:23.000Z
src/core/logging/debug_error.cpp
imnetcat/email-client
f188c1b345b9c95f4bfcd5b928845465f048ff6e
[ "MIT" ]
48
2020-05-29T06:16:26.000Z
2020-09-10T07:29:39.000Z
src/core/logging/debug_error.cpp
imnetcat/cout
f188c1b345b9c95f4bfcd5b928845465f048ff6e
[ "MIT" ]
2
2020-05-03T08:00:41.000Z
2020-06-06T13:13:41.000Z
#include "debug_error.h" Cout::Core::Logging::DebugError::DebugError() : Error("[DEBUG]") { }
46.5
68
0.688172
imnetcat
5340597e7983b385ce917d85be34cdc1100140ad
1,029
cpp
C++
watchman/time.cpp
mathewhodson/watchman
7e831f2fe71deb6429819aa1f7856a5335b0111e
[ "Apache-2.0" ]
null
null
null
watchman/time.cpp
mathewhodson/watchman
7e831f2fe71deb6429819aa1f7856a5335b0111e
[ "Apache-2.0" ]
null
null
null
watchman/time.cpp
mathewhodson/watchman
7e831f2fe71deb6429819aa1f7856a5335b0111e
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
32.15625
76
0.724004
mathewhodson
5343a765b7998ccab45c7ae5cc1d1241c2cd238d
185
hpp
C++
src/trew/actions/Actor.hpp
yavl/pm
03a49aa82794a42edef851456ff111156157112c
[ "MIT" ]
1
2021-04-07T11:15:03.000Z
2021-04-07T11:15:03.000Z
src/trew/actions/Actor.hpp
yavl/trewlib
03a49aa82794a42edef851456ff111156157112c
[ "MIT" ]
null
null
null
src/trew/actions/Actor.hpp
yavl/trewlib
03a49aa82794a42edef851456ff111156157112c
[ "MIT" ]
null
null
null
#pragma once namespace trew { class Action; class Actor { public: virtual ~Actor() = default; virtual void act(float dt) = 0; virtual void addAction(Action* action) = 0; }; }
16.818182
45
0.67027
yavl
5343c60dd5223fd84900d7afc5bd2ba20316e4fb
2,361
cpp
C++
00355_design-twitter/201108-1.cpp
yanlinlin82/leetcode
ddcc0b9606d951cff9c08d1f7dfbc202067c8d65
[ "MIT" ]
6
2019-10-23T01:07:29.000Z
2021-12-05T01:51:16.000Z
00355_design-twitter/201108-1.cpp
yanlinlin82/leetcode
ddcc0b9606d951cff9c08d1f7dfbc202067c8d65
[ "MIT" ]
null
null
null
00355_design-twitter/201108-1.cpp
yanlinlin82/leetcode
ddcc0b9606d951cff9c08d1f7dfbc202067c8d65
[ "MIT" ]
1
2021-12-03T06:54:57.000Z
2021-12-03T06:54:57.000Z
// https://leetcode-cn.com/problems/design-twitter/ #include <iostream> #include <utility> #include <vector> #include <list> #include <unordered_set> #include <unordered_map> using namespace std; class Twitter { public: /** Initialize your data structure here. */ Twitter() { } /** Compose a new tweet....
27.776471
227
0.647607
yanlinlin82
5346ef52993bb699417d638c9859cd8aa0453dd7
4,161
hh
C++
src/sdk/valve/cmodelinfo.hh
numero69/sapphire-csgo-linux
51fa92b4295692af8026307a574a76cc7c3d3dfc
[ "MIT" ]
35
2019-10-05T15:37:03.000Z
2021-12-14T23:59:19.000Z
src/sdk/valve/cmodelinfo.hh
numero69/sapphire-csgo-linux
51fa92b4295692af8026307a574a76cc7c3d3dfc
[ "MIT" ]
1
2019-10-27T21:12:00.000Z
2019-10-27T21:12:00.000Z
src/sdk/valve/cmodelinfo.hh
numero69/sapphire-csgo-linux
51fa92b4295692af8026307a574a76cc7c3d3dfc
[ "MIT" ]
17
2019-10-06T14:19:37.000Z
2021-05-08T21:36:25.000Z
// // ruvi base // #pragma once // includes #include "sdk/memory/memory.hh" #include "sdk/vector/matrix3x4.hh" #include "sdk/vector/vector.hh" #include <string_view> struct model_t; class i_material; typedef float quaternion[4]; typedef float radian_euler[3]; struct mstudiobone_t { int name_index; inline co...
23.508475
78
0.656333
numero69