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
a5b236b6cb8db861e5fde0f54ae936edf0c32709
4,375
hpp
C++
experiments/util/benchmark_util.hpp
keszocze/abo
2d59ac20832b308ef5f90744fc98752797a4f4ba
[ "MIT" ]
null
null
null
experiments/util/benchmark_util.hpp
keszocze/abo
2d59ac20832b308ef5f90744fc98752797a4f4ba
[ "MIT" ]
null
null
null
experiments/util/benchmark_util.hpp
keszocze/abo
2d59ac20832b308ef5f90744fc98752797a4f4ba
[ "MIT" ]
1
2020-03-11T14:50:31.000Z
2020-03-11T14:50:31.000Z
#ifndef BENCHMARK_UTIL_H #define BENCHMARK_UTIL_H #include <cudd/cplusplus/cuddObj.hh> #include <string> #include <vector> namespace abo::benchmark { enum class ErrorMetric { WORST_CASE, WORST_CASE_RELATIVE_APPROX, WORST_CASE_RELATIVE_BINARY_SEARCH, WORST_CASE_RELATIVE_RANDOMIZED, WORST_CASE_RELA...
28.782895
100
0.709257
keszocze
a5b3bfd9a2e0f91548f241f2dfab0c95df20e437
615
cpp
C++
DearPyGui/src/ui/AppItems/widget_handlers/mvToggledOpenHandler.cpp
BadSugar/DearPyGui
95f3f86e2efb7fbe31d76c52a1a7965d96ee9151
[ "MIT" ]
7,471
2020-08-12T13:36:38.000Z
2022-03-31T14:50:37.000Z
DearPyGui/src/ui/AppItems/widget_handlers/mvToggledOpenHandler.cpp
BadSugar/DearPyGui
95f3f86e2efb7fbe31d76c52a1a7965d96ee9151
[ "MIT" ]
922
2020-08-12T21:03:42.000Z
2022-03-31T01:19:10.000Z
DearPyGui/src/ui/AppItems/widget_handlers/mvToggledOpenHandler.cpp
BadSugar/DearPyGui
95f3f86e2efb7fbe31d76c52a1a7965d96ee9151
[ "MIT" ]
550
2020-08-12T21:58:55.000Z
2022-03-30T09:09:58.000Z
#include "mvToggledOpenHandler.h" #include "mvLog.h" #include "mvItemRegistry.h" #include "mvPythonExceptions.h" #include "mvUtilities.h" namespace Marvel { mvToggledOpenHandler::mvToggledOpenHandler(mvUUID uuid) : mvAppItem(uuid) { } void mvToggledOpenHandler::customAction(void* data) { if (static_cast...
19.83871
85
0.700813
BadSugar
a5b5f6c80e4282aaa7efc01261996209d533ca83
10
cpp
C++
greedy-algorithms/basic-principles/tempCodeRunnerFile.cpp
dushimsam/deep-dive-in-algorithms
0c6a04b3115ba789ab4aca68cce51c9a3c3a075a
[ "MIT" ]
null
null
null
greedy-algorithms/basic-principles/tempCodeRunnerFile.cpp
dushimsam/deep-dive-in-algorithms
0c6a04b3115ba789ab4aca68cce51c9a3c3a075a
[ "MIT" ]
null
null
null
greedy-algorithms/basic-principles/tempCodeRunnerFile.cpp
dushimsam/deep-dive-in-algorithms
0c6a04b3115ba789ab4aca68cce51c9a3c3a075a
[ "MIT" ]
null
null
null
int min(){
10
10
0.6
dushimsam
a5b6f00b1d7d88b4738a8210393a59c3b0c44b3a
7,048
cpp
C++
tests/unit/SummaryBuilder.cpp
keithmendozasr/mimeographer
84a2b99b27830b8679d4f35f8cc913bf69be842a
[ "Apache-2.0" ]
1
2021-05-01T14:49:09.000Z
2021-05-01T14:49:09.000Z
tests/unit/SummaryBuilder.cpp
keithmendozasr/mimeographer
84a2b99b27830b8679d4f35f8cc913bf69be842a
[ "Apache-2.0" ]
null
null
null
tests/unit/SummaryBuilder.cpp
keithmendozasr/mimeographer
84a2b99b27830b8679d4f35f8cc913bf69be842a
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2017 Keith Mendoza * * 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...
33.722488
94
0.644296
keithmendozasr
a5bf5522e582265fcf94446cc08e82e5bceec868
4,397
cpp
C++
Mirror/event.cpp
Maxul/sgx_vmx_protocol
b18dcdd6cbbf10c7d609649295676f0163dd9a5e
[ "MIT" ]
null
null
null
Mirror/event.cpp
Maxul/sgx_vmx_protocol
b18dcdd6cbbf10c7d609649295676f0163dd9a5e
[ "MIT" ]
null
null
null
Mirror/event.cpp
Maxul/sgx_vmx_protocol
b18dcdd6cbbf10c7d609649295676f0163dd9a5e
[ "MIT" ]
null
null
null
/* * event.cpp * This file is part of SVMOS * * Copyright (C) 2017 - Ecular, Maxul * * VmOs is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your opti...
24.292818
77
0.634069
Maxul
a5c5a1dab21e48bf25ebd79c6dfe1a7301bca52c
226
hpp
C++
examples/05_with_textureManager_and_gameObject/TextureManager.hpp
nathandaven/sdl-vscode-template
098125e250ede58eeaa6cd06738d76c2983cdb58
[ "MIT" ]
null
null
null
examples/05_with_textureManager_and_gameObject/TextureManager.hpp
nathandaven/sdl-vscode-template
098125e250ede58eeaa6cd06738d76c2983cdb58
[ "MIT" ]
null
null
null
examples/05_with_textureManager_and_gameObject/TextureManager.hpp
nathandaven/sdl-vscode-template
098125e250ede58eeaa6cd06738d76c2983cdb58
[ "MIT" ]
null
null
null
#ifndef TextureManager_hpp #define TextureManager_hpp #include "Game.hpp" class TextureManager { public: static SDL_Texture *LoadTexture(const char *textureFile, SDL_Renderer *renderer); }; #endif /* TextureManager_hpp */
18.833333
83
0.787611
nathandaven
a5cb7df08d1faf5661ca2d65b58cc93300724f23
2,150
cpp
C++
tests/DataHelpers.cpp
michaelwillis/sfizz
0461f6e5e288da71aeccf7b7dfd71302bf0ba175
[ "BSD-2-Clause" ]
281
2019-06-06T05:58:59.000Z
2022-03-06T12:20:09.000Z
tests/DataHelpers.cpp
michaelwillis/sfizz
0461f6e5e288da71aeccf7b7dfd71302bf0ba175
[ "BSD-2-Clause" ]
590
2019-09-22T00:26:10.000Z
2022-03-31T19:21:58.000Z
tests/DataHelpers.cpp
michaelwillis/sfizz
0461f6e5e288da71aeccf7b7dfd71302bf0ba175
[ "BSD-2-Clause" ]
44
2019-10-08T08:24:20.000Z
2022-02-26T04:21:44.000Z
// SPDX-License-Identifier: BSD-2-Clause // This code is part of the sfizz library and is licensed under a BSD 2-clause // license. You should have receive a LICENSE.md file along with the code. // If not, contact the sfizz maintainers at https://github.com/sfztools/sfizz #include "DataHelpers.h" #include <string> #i...
23.626374
78
0.506977
michaelwillis
a5cf9abc34ce8a74718244dfcdc33bf6f4554973
281
cpp
C++
OJ/PT/PT23.cpp
doan201203/truong_doan
68350b7a24ea266320cd41e1a4878e8a58b3f707
[ "Apache-2.0" ]
null
null
null
OJ/PT/PT23.cpp
doan201203/truong_doan
68350b7a24ea266320cd41e1a4878e8a58b3f707
[ "Apache-2.0" ]
null
null
null
OJ/PT/PT23.cpp
doan201203/truong_doan
68350b7a24ea266320cd41e1a4878e8a58b3f707
[ "Apache-2.0" ]
null
null
null
#include <bits/stdc++.h> using namespace std; #define ll long long int main(){ int n; cin>>n; for(int i =1 ; i<= n ; i++){ int le = 1 , chan = 0; for(int j = i-1 ; j >= 0 ; j--){ if(j%2 ==0){ cout<<le; }else{ cout<<chan; } }cout<<"\n"; } }
16.529412
37
0.448399
doan201203
a5d1707ea6bea6172e65ca2ecb1fe489760f3d30
8,011
cpp
C++
msj_archives/code/MSJApr97.src/MSN Case Study/container/events.cpp
sarangbaheti/misc-code
d47a8d1cc41f19701ce628c9f15976bb5baa239d
[ "Unlicense" ]
1
2020-10-22T12:58:55.000Z
2020-10-22T12:58:55.000Z
msj_archives/code/MSJApr97.src/MSN Case Study/container/events.cpp
sarangbaheti/misc-code
d47a8d1cc41f19701ce628c9f15976bb5baa239d
[ "Unlicense" ]
null
null
null
msj_archives/code/MSJApr97.src/MSN Case Study/container/events.cpp
sarangbaheti/misc-code
d47a8d1cc41f19701ce628c9f15976bb5baa239d
[ "Unlicense" ]
2
2020-10-19T23:36:26.000Z
2020-10-22T12:59:37.000Z
#define STRICT #include <windows.h> #include <windowsx.h> #include <crtdbg.h> #include <olectl.h> #include <docobj.h> #include <servprov.h> #include <exdisp.h> #include <exdispid.h> #include "winmain.h" #include "events.h" #include "ctr.h" //+---------------------------------------------------------------------------...
25.676282
79
0.524154
sarangbaheti
a5d862c6542161b62284ad873485e857d51b4428
280
cpp
C++
Kreator/implementation/GUI/ImguiBuild.cpp
ashish1009/Kreator
68ff5073faef22ade314772a5127dd1cc98060b7
[ "Apache-2.0" ]
null
null
null
Kreator/implementation/GUI/ImguiBuild.cpp
ashish1009/Kreator
68ff5073faef22ade314772a5127dd1cc98060b7
[ "Apache-2.0" ]
null
null
null
Kreator/implementation/GUI/ImguiBuild.cpp
ashish1009/Kreator
68ff5073faef22ade314772a5127dd1cc98060b7
[ "Apache-2.0" ]
null
null
null
// // ImguiBuild.cpp // Kreator // // Created by iKan on 10/04/22. // /// Include the Imgui example .cpp files for implementation of Imgui functionality #define IMGUI_IMPL_OPENGL_LOADER_GLAD #include <examples/imgui_impl_opengl3.cpp> #include <examples/imgui_impl_glfw.cpp>
20
82
0.757143
ashish1009
a5da5baa671dd355d2e84acfa11c54bd792d1e61
302
cpp
C++
mod.cpp
Soliders-in-Arms-Arma-3-Group/-SIA-Additional-Factions-V2
3631a42eb51e7296d8da40b9b9d088c03ba29dca
[ "MIT" ]
null
null
null
mod.cpp
Soliders-in-Arms-Arma-3-Group/-SIA-Additional-Factions-V2
3631a42eb51e7296d8da40b9b9d088c03ba29dca
[ "MIT" ]
5
2022-01-23T01:26:54.000Z
2022-03-07T21:54:25.000Z
mod.cpp
Soliders-in-Arms-Arma-3-Group/-SIA-Additional-Factions-V2
3631a42eb51e7296d8da40b9b9d088c03ba29dca
[ "MIT" ]
null
null
null
name = "SIA Additional Factions v2 (DEV)"; author = "Solders in Arms"; picture = "picture.paa"; logoSmall = "LogoSmall.paa"; logo = "Logo.paa"; logoOver = "LogoOver.paa"; action = "https://github.com/Soliders-in-Arms-Arma-3-Group/SIA-Additional-Factions-V2.git"; overview = "Adds additional factions.";
37.75
91
0.718543
Soliders-in-Arms-Arma-3-Group
777c4dd8526447fc554e07d6a8d0984956084ba7
2,878
hpp
C++
csf_workspace/ec/src/device_io/ec_device_io/hi/conf/hisys_conf.hpp
Kitty-Kitty/csf_library
011e56fb8b687818d20b9998a0cdb72332375534
[ "BSD-2-Clause" ]
2
2019-12-17T13:16:48.000Z
2019-12-17T13:16:51.000Z
csf_workspace/ec/src/device_io/ec_device_io/hi/conf/hisys_conf.hpp
Kitty-Kitty/csf_library
011e56fb8b687818d20b9998a0cdb72332375534
[ "BSD-2-Clause" ]
null
null
null
csf_workspace/ec/src/device_io/ec_device_io/hi/conf/hisys_conf.hpp
Kitty-Kitty/csf_library
011e56fb8b687818d20b9998a0cdb72332375534
[ "BSD-2-Clause" ]
null
null
null
/******************************************************************************* * *Copyright: armuxinxian@aliyun.com * *Author: f * *File name: hisys_conf.hpp * *Version: 1.0 * *Date: 03-12月-2019 13:31:48 * *Description: Class(hisys_conf) 表示海思系统配置信息 * *Others: * *History: * *******************************************...
16.078212
81
0.548297
Kitty-Kitty
777c52e72ebed23d33736a4dcd95a1cf838aaf70
1,655
cc
C++
src/utils/cpputils/cxxutils.cc
Apraso/iSulad_test
c9bb9b9e2787275f6147c9353f279e49f6a4a086
[ "MulanPSL-1.0" ]
34
2020-03-09T11:57:08.000Z
2022-03-29T12:18:33.000Z
src/utils/cpputils/cxxutils.cc
Apraso/iSulad_test
c9bb9b9e2787275f6147c9353f279e49f6a4a086
[ "MulanPSL-1.0" ]
null
null
null
src/utils/cpputils/cxxutils.cc
Apraso/iSulad_test
c9bb9b9e2787275f6147c9353f279e49f6a4a086
[ "MulanPSL-1.0" ]
8
2020-03-21T02:36:22.000Z
2021-11-13T18:15:43.000Z
/****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2019. All rights reserved. * iSulad licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan P...
38.488372
99
0.626586
Apraso
777e920a31b860baa3c65afb6739afcd33ca9ad9
15,689
cpp
C++
Source/API/Vulkan/RenderPassVk.cpp
KawBuma/Buma3D
73b1c7a99c979492f072d4ead89f2d357d5e048a
[ "MIT" ]
5
2020-11-25T05:05:13.000Z
2022-02-09T09:35:21.000Z
Source/API/Vulkan/RenderPassVk.cpp
KawBuma/Buma3D
73b1c7a99c979492f072d4ead89f2d357d5e048a
[ "MIT" ]
5
2020-11-11T09:52:59.000Z
2021-12-15T13:27:37.000Z
Source/API/Vulkan/RenderPassVk.cpp
KawBuma/Buma3D
73b1c7a99c979492f072d4ead89f2d357d5e048a
[ "MIT" ]
null
null
null
#include "Buma3DPCH.h" #include "RenderPassVk.h" namespace buma3d { B3D_APIENTRY RenderPassVk::RenderPassVk() : ref_count { 1 } , name {} , device {} , desc {} , vkdevice {} , inspfn {} , devpfn {} , render_pass{} { } B3D_APIENTRY RenderPassVk::~RenderPassV...
36.401392
198
0.668494
KawBuma
7780a2bb3fadcf96cff5553681afeb03cd2d908c
4,260
hpp
C++
include/doll/Core/Defs.hpp
axia-sw/Doll
a5846a6553d9809e9a0ea50db2dc18b95eb21921
[ "Zlib" ]
1
2021-07-19T14:40:15.000Z
2021-07-19T14:40:15.000Z
include/doll/Core/Defs.hpp
axia-sw/Doll
a5846a6553d9809e9a0ea50db2dc18b95eb21921
[ "Zlib" ]
null
null
null
include/doll/Core/Defs.hpp
axia-sw/Doll
a5846a6553d9809e9a0ea50db2dc18b95eb21921
[ "Zlib" ]
null
null
null
#pragma once #include "../AxlibConfig.h" #include "ax_intdatetime.h" #include "ax_platform.h" #include "ax_types.h" #include "ax_printf.h" #include "ax_string.h" #include "ax_logger.h" #include "ax_assert.h" #include "ax_thread.h" #include "ax_memory.h" #include "ax_time.h" #include "ax_thread.h...
18.283262
71
0.594131
axia-sw
7781058b8b8d65e96ddce388b2d90d175d7d9928
2,858
hpp
C++
include/core/p_render/PRender.hpp
jabronicus/P-Engine
7786c2f97d19bd2913b706f6afe5087a392b1a3c
[ "MIT" ]
null
null
null
include/core/p_render/PRender.hpp
jabronicus/P-Engine
7786c2f97d19bd2913b706f6afe5087a392b1a3c
[ "MIT" ]
null
null
null
include/core/p_render/PRender.hpp
jabronicus/P-Engine
7786c2f97d19bd2913b706f6afe5087a392b1a3c
[ "MIT" ]
1
2021-08-24T05:43:01.000Z
2021-08-24T05:43:01.000Z
#pragma once #include "./backend/wsi/WindowSystem.hpp" #include "../../core/thread_pool/job_queue/JobQueue.hpp" // gui #include "./backend/gui/VulkanGUIHandler.hpp" // render graph #include "./render_graph/RenderGraph.hpp" // scene (TODO) #include "./scene/Scene.hpp" #include "../../imgui/imgui.h" #include "../../...
25.070175
140
0.719384
jabronicus
77865066b102246f82e4fae912b640f51938294d
5,145
cpp
C++
src/PihaTime.cpp
jbitoniau/Piha
9f346066bf09a93abc5753b5dd996c7f598c9d38
[ "MIT" ]
null
null
null
src/PihaTime.cpp
jbitoniau/Piha
9f346066bf09a93abc5753b5dd996c7f598c9d38
[ "MIT" ]
null
null
null
src/PihaTime.cpp
jbitoniau/Piha
9f346066bf09a93abc5753b5dd996c7f598c9d38
[ "MIT" ]
null
null
null
#include "PihaTime.h" #ifdef _WIN32 #include <Windows.h> #else #include <cstddef> // For NULL //#include <sys/time.h> #include <time.h> #endif #include <assert.h> namespace Piha { #ifdef _WIN32 /* TimeInternals (Windows platform) On Windows, there are many time functions available. - the standard ftime fu...
25.097561
126
0.762488
jbitoniau
778ac59364ca39996a94bab0a60e012c55311fb2
3,865
cc
C++
build/x86/mem/ruby/network/garnet/fixed-pipeline/GarnetLink_d.py.cc
billionshang/gem5
18cc4294f32315595f865d07d1f33434e92b06b2
[ "BSD-3-Clause" ]
null
null
null
build/x86/mem/ruby/network/garnet/fixed-pipeline/GarnetLink_d.py.cc
billionshang/gem5
18cc4294f32315595f865d07d1f33434e92b06b2
[ "BSD-3-Clause" ]
null
null
null
build/x86/mem/ruby/network/garnet/fixed-pipeline/GarnetLink_d.py.cc
billionshang/gem5
18cc4294f32315595f865d07d1f33434e92b06b2
[ "BSD-3-Clause" ]
null
null
null
#include "sim/init.hh" namespace { const uint8_t data_m5_objects_GarnetLink_d[] = { 120,156,205,86,89,111,211,64,16,30,59,247,1,173,80,27, 110,225,7,30,44,164,96,14,21,132,4,8,81,33,132,132, 0,185,8,137,188,88,142,119,147,56,241,17,121,183,77,242, 192,83,249,13,252,93,152,25,219,105,10,5,193,83,201,49...
52.945205
113
0.670634
billionshang
778af2c718d92503d298664a4dc92c936eed001b
7,306
cpp
C++
tests/AnimationManagerTests.cpp
longhorndude08/dhorn
d5a4c26ad1ee5f461fffe6db625d652cd94472cd
[ "MIT" ]
null
null
null
tests/AnimationManagerTests.cpp
longhorndude08/dhorn
d5a4c26ad1ee5f461fffe6db625d652cd94472cd
[ "MIT" ]
null
null
null
tests/AnimationManagerTests.cpp
longhorndude08/dhorn
d5a4c26ad1ee5f461fffe6db625d652cd94472cd
[ "MIT" ]
1
2019-06-22T02:39:23.000Z
2019-06-22T02:39:23.000Z
/* * Duncan Horn * * UnitsTests.cpp * * Tests for the animation_manager.h types/functions */ #include "stdafx.h" #include <dhorn/experimental/animation_manager.h> using namespace Microsoft::VisualStudio::CppUnitTestFramework; namespace dhorn { namespace tests { TEST_CLASS(AnimationManagerTests)...
35.294686
117
0.48905
longhorndude08
7792740acaea29b5e23cd242afb692f3945686af
498
hpp
C++
visualisation/sensors/gyroscope.hpp
kwikius/ArduIMU
e741d2896425fa398c9a7ee19b986d1f6b31418f
[ "CC0-1.0" ]
null
null
null
visualisation/sensors/gyroscope.hpp
kwikius/ArduIMU
e741d2896425fa398c9a7ee19b986d1f6b31418f
[ "CC0-1.0" ]
null
null
null
visualisation/sensors/gyroscope.hpp
kwikius/ArduIMU
e741d2896425fa398c9a7ee19b986d1f6b31418f
[ "CC0-1.0" ]
1
2021-12-22T07:01:16.000Z
2021-12-22T07:01:16.000Z
#ifndef ARDUIMU_VISUALISATION_GYROSCOPE_HPP_INCLUDED #define ARDUIMU_VISUALISATION_GYROSCOPE_HPP_INCLUDED #include <quan/three_d/vect.hpp> #include <quan/reciprocal_time.hpp> #include <quan/angle.hpp> quan::three_d::vect< quan::reciprocal_time_< quan::angle::deg >::per_s > get_gyroscope(); void set_gyro...
21.652174
54
0.726908
kwikius
7792a1082bf8019894311fd989b4766c94970307
1,963
cpp
C++
src/Platform.Cocoa/MouseCocoa.cpp
bis83/pomdog
133a9262958d539ae6d93664e6cb2207b5b6c7ff
[ "MIT" ]
null
null
null
src/Platform.Cocoa/MouseCocoa.cpp
bis83/pomdog
133a9262958d539ae6d93664e6cb2207b5b6c7ff
[ "MIT" ]
null
null
null
src/Platform.Cocoa/MouseCocoa.cpp
bis83/pomdog
133a9262958d539ae6d93664e6cb2207b5b6c7ff
[ "MIT" ]
null
null
null
// Copyright (c) 2013-2015 mogemimi. // Distributed under the MIT license. See LICENSE.md file for details. #include "MouseCocoa.hpp" #include <type_traits> namespace Pomdog { namespace Detail { namespace Cocoa { //----------------------------------------------------------------------- MouseCocoa::MouseCocoa() : scro...
32.180328
86
0.464086
bis83
77953649de1f1064d89f8c61642717fe310407f2
11,224
cpp
C++
engine/cl_splitscreen.cpp
DannyParker0001/Kisak-Strike
99ed85927336fe3aff2efd9b9382b2b32eb1d05d
[ "Unlicense" ]
252
2020-12-16T15:34:43.000Z
2022-03-31T23:21:37.000Z
cstrike15_src/engine/cl_splitscreen.cpp
bahadiraraz/Counter-Strike-Global-Offensive
9a0534100cb98ffa1cf0c32e138f0e7971e910d3
[ "MIT" ]
23
2020-12-20T18:02:54.000Z
2022-03-28T16:58:32.000Z
cstrike15_src/engine/cl_splitscreen.cpp
bahadiraraz/Counter-Strike-Global-Offensive
9a0534100cb98ffa1cf0c32e138f0e7971e910d3
[ "MIT" ]
42
2020-12-19T04:32:33.000Z
2022-03-30T06:00:28.000Z
#include "client_pch.h" #include "cl_splitscreen.h" #if defined( _PS3 ) #include "tls_ps3.h" #define m_SplitSlot reinterpret_cast< SplitSlot_t *& >(GetTLSGlobals()->pEngineSplitSlot) #endif // _PS3 // memdbgon must be the last include file in a .cpp file!!! #include "tier0/memdbgon.h" class CSplitScreen : public ISp...
26.787589
164
0.733428
DannyParker0001
7798421161971d4c29008ced6e9b718cfc0ff5ca
679
cpp
C++
day06/part2.cpp
Moremar/advent_of_code_2016
dea264671fc2c31baa42b1282751dfd1ae071a7d
[ "Apache-2.0" ]
null
null
null
day06/part2.cpp
Moremar/advent_of_code_2016
dea264671fc2c31baa42b1282751dfd1ae071a7d
[ "Apache-2.0" ]
null
null
null
day06/part2.cpp
Moremar/advent_of_code_2016
dea264671fc2c31baa42b1282751dfd1ae071a7d
[ "Apache-2.0" ]
null
null
null
#include "part1.hpp" #include "part2.hpp" using namespace std; string Part2::solve(const vector<string> &signals) { vector<map<char, int>> freqs = Part1::getFreqs(signals); // pick the least popular letter for each position string corrected = ""; for (const auto freq : freqs) { vector<pair<ch...
32.333333
94
0.60972
Moremar
7799a55d53c8ef71110728812322ddeb84cd0ec8
1,910
hpp
C++
SpaceWars2/skills/Laser.hpp
su8ru/SpaceWars2
1aa9ecd7ab8217ae5df8c6499597c8cbc7ab9f40
[ "Apache-2.0" ]
2
2020-02-01T08:47:10.000Z
2020-02-01T08:51:05.000Z
SpaceWars2/skills/Laser.hpp
subaru2003/SpaceWars2
1aa9ecd7ab8217ae5df8c6499597c8cbc7ab9f40
[ "Apache-2.0" ]
44
2019-06-03T11:46:56.000Z
2019-08-06T16:20:15.000Z
SpaceWars2/skills/Laser.hpp
su8ru/SpaceWars2
1aa9ecd7ab8217ae5df8c6499597c8cbc7ab9f40
[ "Apache-2.0" ]
3
2019-06-13T17:42:12.000Z
2019-06-14T23:36:45.000Z
#pragma once #include <Siv3D.hpp> #include "Bullet.hpp" #include "../Scenes/Game.hpp" class Laser final : public Bullet { private: bool isCharging = true; int energy = 1; Vec2 myPos; bool isLeft; bool isLInvalid = false; bool isRInvalid = false; static bool isLShooting; static bool isRShooting; static Option...
28.507463
104
0.68534
su8ru
779a7d4470804b9abcde7bb29dd24179ad47b79d
1,112
hpp
C++
contrib/autoboost/autoboost/context/fcontext.hpp
CaseyCarter/autowiring
48e95a71308318c8ffb7ed1348e034fd9110f70c
[ "Apache-2.0" ]
87
2015-01-18T00:43:06.000Z
2022-02-11T17:40:50.000Z
contrib/autoboost/autoboost/context/fcontext.hpp
CaseyCarter/autowiring
48e95a71308318c8ffb7ed1348e034fd9110f70c
[ "Apache-2.0" ]
274
2015-01-03T04:50:49.000Z
2021-03-08T09:01:09.000Z
contrib/autoboost/autoboost/context/fcontext.hpp
CaseyCarter/autowiring
48e95a71308318c8ffb7ed1348e034fd9110f70c
[ "Apache-2.0" ]
15
2015-09-30T20:58:43.000Z
2020-12-19T21:24:56.000Z
// Copyright Oliver Kowalke 2009. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef AUTOBOOST_CONTEXT_FCONTEXT_H #define AUTOBOOST_CONTEXT_FCONTEXT_H #if defined(__PGI) #include <std...
24.173913
107
0.747302
CaseyCarter
77a0048f0fe674428e66ebd07ce03d67b0051e93
970
hpp
C++
src/afk/renderer/Model.hpp
christocs/ModelAnimation
d32941dec8f2ef54e96086319a00ca5cf783e2fa
[ "0BSD" ]
null
null
null
src/afk/renderer/Model.hpp
christocs/ModelAnimation
d32941dec8f2ef54e96086319a00ca5cf783e2fa
[ "0BSD" ]
null
null
null
src/afk/renderer/Model.hpp
christocs/ModelAnimation
d32941dec8f2ef54e96086319a00ca5cf783e2fa
[ "0BSD" ]
null
null
null
#pragma once #include <filesystem> #include <glob.h> #include <vector> #include <assimp/scene.h> #include "afk/renderer/Animation.hpp" #include "afk/renderer/Bone.hpp" #include "afk/renderer/Mesh.hpp" #include "afk/renderer/ModelNode.hpp" #include "afk/renderer/Texture.hpp" namespace Afk { struct Model { usi...
23.658537
69
0.630928
christocs
77a095bceba23eb22b7c337086cacc6130a19a8d
2,177
cc
C++
history_gtest.cc
doj/few
cdaa53b08f73a901cd07022b92e20f02e9b7b91b
[ "MIT" ]
2
2015-04-05T20:15:31.000Z
2021-07-14T19:36:03.000Z
history_gtest.cc
doj/few
cdaa53b08f73a901cd07022b92e20f02e9b7b91b
[ "MIT" ]
null
null
null
history_gtest.cc
doj/few
cdaa53b08f73a901cd07022b92e20f02e9b7b91b
[ "MIT" ]
null
null
null
/* -*- mode: C++; c-basic-offset: 4; tab-width: 8; -*- * vi: set shiftwidth=4 tabstop=8: * :indentSize=4:tabSize=8: */ #include "gtest/gtest.h" #include "history.h" #if defined(_WIN32) #include <io.h> #include <stdio.h> namespace { int unlink(const std::string& fn) { return _unlink(fn.c_str()); } i...
22.915789
64
0.582912
doj
77a2348dafc26ce71fc4ba976e5697322317c65e
2,067
cpp
C++
src/draw/ArcProgress.cpp
charanyaarvind/StratifyAPI
adfd1bc8354489378d53c6acd77ebedad5790b4f
[ "BSD-3-Clause" ]
null
null
null
src/draw/ArcProgress.cpp
charanyaarvind/StratifyAPI
adfd1bc8354489378d53c6acd77ebedad5790b4f
[ "BSD-3-Clause" ]
null
null
null
src/draw/ArcProgress.cpp
charanyaarvind/StratifyAPI
adfd1bc8354489378d53c6acd77ebedad5790b4f
[ "BSD-3-Clause" ]
null
null
null
/*! \file */ //Copyright 2011-2018 Tyler Gilbert; All Rights Reserved #include <cmath> #include "sgfx.hpp" #include "draw/ArcProgress.hpp" using namespace draw; ArcProgress::ArcProgress() { m_offset = 0; m_direction = 1; } void ArcProgress::draw_to_scale(const DrawingScaledAttr & attr){ //draw the progress bar on...
19.5
71
0.62119
charanyaarvind
77aa54d0679caf80d7343fbd65cd3b94af1a8b13
3,063
cpp
C++
src/oems/oems_sorter.cpp
ref2401/oems
00a295d01280211c3298ddacda0e0937471917ab
[ "MIT" ]
3
2019-12-10T05:53:40.000Z
2021-09-13T17:54:30.000Z
src/oems/oems_sorter.cpp
ref2401/oems
00a295d01280211c3298ddacda0e0937471917ab
[ "MIT" ]
1
2017-10-23T12:12:22.000Z
2017-10-23T12:12:22.000Z
src/oems/oems_sorter.cpp
ref2401/oems
00a295d01280211c3298ddacda0e0937471917ab
[ "MIT" ]
null
null
null
#include "oems/oems_sorter.h" #include <cassert> namespace { using namespace oems; void copy_data_from_gpu(ID3D11Device* p_device, ID3D11DeviceContext* p_ctx, ID3D11Buffer* p_buffer_src, float* p_dest, size_t byte_count) { assert(p_device); assert(p_ctx); assert(p_buffer_src); assert(p_dest); ...
29.737864
103
0.726086
ref2401
77acf87696718a89aa33813c79f6336f94a157d4
508
hpp
C++
src/ir/nodes.hpp
traplol/malang
3c02f4f483b7580a557841c31a65bf190fd1228f
[ "MIT" ]
4
2017-10-31T14:01:58.000Z
2019-07-16T04:53:32.000Z
src/ir/nodes.hpp
traplol/malang
3c02f4f483b7580a557841c31a65bf190fd1228f
[ "MIT" ]
null
null
null
src/ir/nodes.hpp
traplol/malang
3c02f4f483b7580a557841c31a65bf190fd1228f
[ "MIT" ]
2
2018-01-23T12:59:07.000Z
2019-07-16T04:53:39.000Z
#ifndef MALANG_IR_NODES_HPP #define MALANG_IR_NODES_HPP #include "ir.hpp" #include "ir_noop.hpp" #include "ir_block.hpp" #include "ir_assignment.hpp" #include "ir_binary_ops.hpp" #include "ir_branch.hpp" #include "ir_call.hpp" #include "ir_label.hpp" #include "ir_memory.hpp" #include "ir_primitives.hpp" #include "ir_r...
23.090909
32
0.777559
traplol
77bee52477c3f9529bafa7fafcfe5311d8d08699
5,391
cpp
C++
tests/unit/offload/OffloadFreeListTest.cpp
gjerecze/daqdb
ebab10f3ef2a64d541043b7378a951af294d44cb
[ "Apache-2.0" ]
22
2019-02-08T17:23:12.000Z
2021-10-12T06:35:37.000Z
tests/unit/offload/OffloadFreeListTest.cpp
gjerecze/daqdb
ebab10f3ef2a64d541043b7378a951af294d44cb
[ "Apache-2.0" ]
8
2019-02-11T06:30:47.000Z
2020-04-22T09:49:44.000Z
tests/unit/offload/OffloadFreeListTest.cpp
gjerecze/daqdb
ebab10f3ef2a64d541043b7378a951af294d44cb
[ "Apache-2.0" ]
10
2019-02-11T10:26:52.000Z
2019-09-16T20:49:25.000Z
/** * Copyright (c) 2019 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
32.089286
79
0.717863
gjerecze
77cbbdd518320c2ccef95b126826213b3f82d59e
14,526
cpp
C++
src/terrain/sources/proland/dem/ResidualProducer.cpp
stormbirds/Proland-4.0
fdff3642e36c56af8ec5f9299166a3d4bf36d33a
[ "Unlicense" ]
99
2015-01-14T21:18:20.000Z
2021-12-01T09:42:15.000Z
src/terrain/sources/proland/dem/ResidualProducer.cpp
stormbirds/Proland-4.0
fdff3642e36c56af8ec5f9299166a3d4bf36d33a
[ "Unlicense" ]
null
null
null
src/terrain/sources/proland/dem/ResidualProducer.cpp
stormbirds/Proland-4.0
fdff3642e36c56af8ec5f9299166a3d4bf36d33a
[ "Unlicense" ]
46
2015-04-03T12:38:31.000Z
2021-09-26T02:38:56.000Z
/* * Proland: a procedural landscape rendering library. * Copyright (c) 2008-2011 INRIA * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your op...
33.088838
143
0.547226
stormbirds
77d413c3e92109973099b4dd060302a7b5cece06
1,366
cpp
C++
Src/Source/GoToLineWindow.cpp
Sylvain78/BeTeX
4624602987dd0f2790280c69f380661a03a03180
[ "MIT" ]
null
null
null
Src/Source/GoToLineWindow.cpp
Sylvain78/BeTeX
4624602987dd0f2790280c69f380661a03a03180
[ "MIT" ]
null
null
null
Src/Source/GoToLineWindow.cpp
Sylvain78/BeTeX
4624602987dd0f2790280c69f380661a03a03180
[ "MIT" ]
null
null
null
#include "GoToLineWindow.h" using namespace InterfaceConstants; GoToLineWindow::GoToLineWindow(BRect r,BMessenger* messenger) : BWindow(r,"Go To Line...",B_FLOATING_WINDOW,B_NOT_ZOOMABLE|B_NOT_RESIZABLE) { SetFeel(B_NORMAL_WINDOW_FEEL); parent = new BView(Bounds(),"parent",B_FOLLOW_ALL_SIDES,B_WILL_DRAW); parent...
22.032258
139
0.691069
Sylvain78
77e18c4760e88a5beeacc54db569ee874a580847
1,501
cpp
C++
leetcode/Array Pair Sum Divisibility Problem.cpp
vkashkumar/Competitive-Programming
c457e745208c0ca3e45b1ffce254a21504533f51
[ "MIT" ]
2
2019-01-30T12:45:18.000Z
2021-05-06T19:02:51.000Z
leetcode/Array Pair Sum Divisibility Problem.cpp
vkashkumar/Competitive-Programming
c457e745208c0ca3e45b1ffce254a21504533f51
[ "MIT" ]
null
null
null
leetcode/Array Pair Sum Divisibility Problem.cpp
vkashkumar/Competitive-Programming
c457e745208c0ca3e45b1ffce254a21504533f51
[ "MIT" ]
3
2020-10-02T15:42:04.000Z
2022-03-27T15:14:16.000Z
// https://practice.geeksforgeeks.org/problems/array-pair-sum-divisibility-problem/0 #include<bits/stdc++.h> using namespace std; #define fast ios::sync_with_stdio(false);cin.tie(0) #define pb push_back #define digit(x) floor(log10(x))+1 #define mod 1000000007 #define endl "\n" #define int long long #define matrix vec...
26.803571
84
0.471019
vkashkumar
77eeb386d98a76d27a7d0f3e4f754033926db7a4
1,703
cpp
C++
ae5b2.cpp
ohmyjons/SPOJ-1
870ae3b072a3fbc89149b35fe5649a74512a8f60
[ "Unlicense" ]
264
2015-01-08T10:07:01.000Z
2022-03-26T04:11:51.000Z
ae5b2.cpp
ohmyjons/SPOJ-1
870ae3b072a3fbc89149b35fe5649a74512a8f60
[ "Unlicense" ]
17
2016-04-15T03:38:07.000Z
2020-10-30T00:33:57.000Z
ae5b2.cpp
ohmyjons/SPOJ-1
870ae3b072a3fbc89149b35fe5649a74512a8f60
[ "Unlicense" ]
127
2015-01-08T04:56:44.000Z
2022-02-25T18:40:37.000Z
// 2009-12-30 //Dynamic max prefix sum query with segment tree. O((n+m) lg n) #include <iostream> #include <algorithm> #include <functional> using namespace std; static int sum[1000000]; static int max_psum[1000000]; void recalc(int root) { sum[root]=sum[root<<1]+sum[1+(root<<1)]; max_psum[root]=max(max_psum[root<<1]...
18.117021
63
0.590722
ohmyjons
77efb79e999805f6584f5ca06d8ee4d49512a27d
4,299
cpp
C++
TDD/tdd_instance_json.cpp
gxhblues/TDD
a1f0dce58a5caeb67e21cf79513df10879a7926a
[ "MIT" ]
null
null
null
TDD/tdd_instance_json.cpp
gxhblues/TDD
a1f0dce58a5caeb67e21cf79513df10879a7926a
[ "MIT" ]
null
null
null
TDD/tdd_instance_json.cpp
gxhblues/TDD
a1f0dce58a5caeb67e21cf79513df10879a7926a
[ "MIT" ]
null
null
null
#include "pch.h" #include "tdd_instance.h" #include "tdd_shape_box.h" #include "tdd_shape_connection.h" #include "tdd_shape_text.h" #include "tdd_shape_free.h" #include "tdd_shape_table.h" #include "tdd_shape_qrcode.h" #include "tdd_instance_action.h" using namespace std; namespace TDD { void to_json(json& j, const I...
23.883333
92
0.442661
gxhblues
77f07abc258021fb1166525aaa4eef7de6d406ca
453
hh
C++
cc/data-fix-guile.hh
acorg/acmacs-whocc
af508bd4651ffb565cd4cf771200540918b1b2bd
[ "MIT" ]
null
null
null
cc/data-fix-guile.hh
acorg/acmacs-whocc
af508bd4651ffb565cd4cf771200540918b1b2bd
[ "MIT" ]
null
null
null
cc/data-fix-guile.hh
acorg/acmacs-whocc
af508bd4651ffb565cd4cf771200540918b1b2bd
[ "MIT" ]
null
null
null
#pragma once #include "acmacs-base/guile.hh" // ---------------------------------------------------------------------- namespace acmacs::data_fix::inline v1 { // pass pointer to this function to guile::init() void guile_defines(); } // namespace acmacs::data_fix::inline v1 // ------------------------------...
25.166667
73
0.456954
acorg
77f375dc872dc2f4556b13a9381d538524984220
2,280
hpp
C++
tests/testServer/ServiceComplexTypeRpcs.hpp
hermannolafs/gWhisper
2c7efe80337fad6d7ebe65597d97b2e430ab4cb6
[ "Apache-2.0" ]
47
2019-03-07T18:49:09.000Z
2022-03-16T17:02:20.000Z
tests/testServer/ServiceComplexTypeRpcs.hpp
hermannolafs/gWhisper
2c7efe80337fad6d7ebe65597d97b2e430ab4cb6
[ "Apache-2.0" ]
97
2019-03-06T15:10:50.000Z
2022-03-16T16:30:18.000Z
tests/testServer/ServiceComplexTypeRpcs.hpp
hermannolafs/gWhisper
2c7efe80337fad6d7ebe65597d97b2e430ab4cb6
[ "Apache-2.0" ]
13
2019-03-07T18:49:13.000Z
2022-02-03T07:22:13.000Z
// Copyright 2019 IBM Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
36.190476
78
0.644298
hermannolafs
77f4a89af8b7d867e75c778ec1916caf14ee76a4
2,668
cc
C++
cefclient/browser/window_test_win.cc
githubzhaoliang/sdkdemoapp_windows
e267ea8ec91f7101f323a6b72ad32bedbb1f034b
[ "BSD-3-Clause" ]
27
2015-01-20T10:25:14.000Z
2018-11-30T08:42:13.000Z
cef/tests/cefclient/browser/window_test_win.cc
lovewitty/miniblink49
c8cb0b50636915d748235eea95a57e24805dc43e
[ "Apache-2.0" ]
2
2019-01-14T00:17:19.000Z
2019-02-03T08:18:49.000Z
cef/tests/cefclient/browser/window_test_win.cc
lovewitty/miniblink49
c8cb0b50636915d748235eea95a57e24805dc43e
[ "Apache-2.0" ]
23
2015-01-09T10:51:00.000Z
2021-01-06T13:06:20.000Z
// Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. #include "cefclient/browser/window_test.h" namespace client { namespace window_test { namespace { HWND GetRootHwnd(CefRefPtr<Cef...
31.761905
80
0.723763
githubzhaoliang
af90d3a5e6bbf5d6bb27288b8c1db00e0520d99f
143
cpp
C++
GoFish/Card.cpp
uaineteine/GoFish
8140428e8ebb4a2cdb07b65c4e2f90a2236b0cca
[ "MIT" ]
null
null
null
GoFish/Card.cpp
uaineteine/GoFish
8140428e8ebb4a2cdb07b65c4e2f90a2236b0cca
[ "MIT" ]
null
null
null
GoFish/Card.cpp
uaineteine/GoFish
8140428e8ebb4a2cdb07b65c4e2f90a2236b0cca
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "Card.h" Card::Card(int value, int suit) { Num = value; Suit = suit; } Card::~Card() { } int Num; int Suit;
8.411765
31
0.601399
uaineteine
af90fcc67631fc6346ca4ef1f70c0e6b5d069d23
331
cpp
C++
Difficulty 3/alex_and_barb.cpp
BrynjarGeir/Kattis
a151972cbae3db04a8e6764d5fa468d0146c862b
[ "MIT" ]
null
null
null
Difficulty 3/alex_and_barb.cpp
BrynjarGeir/Kattis
a151972cbae3db04a8e6764d5fa468d0146c862b
[ "MIT" ]
null
null
null
Difficulty 3/alex_and_barb.cpp
BrynjarGeir/Kattis
a151972cbae3db04a8e6764d5fa468d0146c862b
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int main() { int k, m, n; bool alexs_turn = true; cin >> k >> m >> n; while(k) { if(k >= m + n) k -= m; else if(k > n) k -= n; else k = 0; alexs_turn = !alexs_turn; } if(!alexs_turn) cout << "Barb"; else cout << "Ale...
16.55
35
0.453172
BrynjarGeir
af96a56d2b84496b743017abe3f9e85dd8052cd3
11,760
ipp
C++
include/External/stlib/packages/numerical/random/discrete/DiscreteGeneratorBinned.ipp
bxl295/m4extreme
2a4a20ebb5b4e971698f7c981de140d31a5e550c
[ "BSD-3-Clause" ]
null
null
null
include/External/stlib/packages/numerical/random/discrete/DiscreteGeneratorBinned.ipp
bxl295/m4extreme
2a4a20ebb5b4e971698f7c981de140d31a5e550c
[ "BSD-3-Clause" ]
null
null
null
include/External/stlib/packages/numerical/random/discrete/DiscreteGeneratorBinned.ipp
bxl295/m4extreme
2a4a20ebb5b4e971698f7c981de140d31a5e550c
[ "BSD-3-Clause" ]
null
null
null
// -*- C++ -*- #if !defined(__numerical_random_DiscreteGeneratorBinned_ipp__) #error This file is an implementation detail of DiscreteGeneratorBinned. #endif namespace numerical { template<class Generator> inline typename DiscreteGeneratorBinned<Generator>::result_type DiscreteGeneratorBinned<Generator>::...
31.36
80
0.597789
bxl295
af97bbd12365e535c1e9f5f1944b6c55bb3b4b92
1,375
cpp
C++
LeetCode/Problems/0145_Binary_Tree_Postorder_Traversal/binary_tree_postorder_traversal.cpp
jocodoma/coding-interview-prep
f7f06be0bc5687c376b753ba3fa46b07412eeb80
[ "MIT" ]
null
null
null
LeetCode/Problems/0145_Binary_Tree_Postorder_Traversal/binary_tree_postorder_traversal.cpp
jocodoma/coding-interview-prep
f7f06be0bc5687c376b753ba3fa46b07412eeb80
[ "MIT" ]
null
null
null
LeetCode/Problems/0145_Binary_Tree_Postorder_Traversal/binary_tree_postorder_traversal.cpp
jocodoma/coding-interview-prep
f7f06be0bc5687c376b753ba3fa46b07412eeb80
[ "MIT" ]
null
null
null
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: vector<int> postorderTraversal(TreeNode* root) { // return recursiveTraversal(root); ...
24.553571
75
0.550545
jocodoma
af9e5c8a0b386c5ed63691799377fca378e9db67
4,648
cpp
C++
src/prod/src/Management/healthmanager/IHealthJobItem.cpp
vishnuk007/service-fabric
d0afdea185ae932cc3c9eacf179692e6fddbc630
[ "MIT" ]
2,542
2018-03-14T21:56:12.000Z
2019-05-06T01:18:20.000Z
src/prod/src/Management/healthmanager/IHealthJobItem.cpp
vishnuk007/service-fabric
d0afdea185ae932cc3c9eacf179692e6fddbc630
[ "MIT" ]
994
2019-05-07T02:39:30.000Z
2022-03-31T13:23:04.000Z
src/prod/src/Management/healthmanager/IHealthJobItem.cpp
vishnuk007/service-fabric
d0afdea185ae932cc3c9eacf179692e6fddbc630
[ "MIT" ]
300
2018-03-14T21:57:17.000Z
2019-05-06T20:07:00.000Z
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" using nam...
28.169697
99
0.655336
vishnuk007
afa2e52436d604e6dc03ea87d6e467a6820e18ef
799
cpp
C++
luogu/codes/P1051.cpp
Tony031218/OI
562f5f45d0448f4eab77643b99b825405a123d92
[ "MIT" ]
1
2021-02-22T03:39:24.000Z
2021-02-22T03:39:24.000Z
luogu/codes/P1051.cpp
Tony031218/OI
562f5f45d0448f4eab77643b99b825405a123d92
[ "MIT" ]
null
null
null
luogu/codes/P1051.cpp
Tony031218/OI
562f5f45d0448f4eab77643b99b825405a123d92
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; struct node { string xm; int qm, bj; char bgb, xb; int lw; int ans; int sum; }a[101]; int n, tot = 0; bool cmp(node x, node y) { if(x.ans == y.ans) return x.sum < y.sum; else return x.ans > y.ans; } int main() { scanf("%d",&n); for...
19.975
67
0.46433
Tony031218
afa4ab28c45c8aeeaaafca429fff5b40960c5361
4,595
cpp
C++
src/asset-archiver/asset-archiver.cpp
scp-studios/scp-game-framework
17ffb68a50d834e490d387028f05add9f5391ea5
[ "MIT" ]
1
2022-01-31T22:20:01.000Z
2022-01-31T22:20:01.000Z
src/asset-archiver/asset-archiver.cpp
scp-studios/scp-game-framework
17ffb68a50d834e490d387028f05add9f5391ea5
[ "MIT" ]
null
null
null
src/asset-archiver/asset-archiver.cpp
scp-studios/scp-game-framework
17ffb68a50d834e490d387028f05add9f5391ea5
[ "MIT" ]
null
null
null
#include <fstream> #include <iostream> #include <vector> #include <string> #include <filesystem> #include <sstream> // Hello. This is a simple command line utility for packaging assets into a si- // ngle file. It works recursively. namespace stdfs = std::filesystem; // Unused argument suppressor #define UNUSED_ARG(x...
30.838926
102
0.605658
scp-studios
afae263cd3a9e957a7500eb9a1e18a3b3adea3f3
2,053
cpp
C++
tests/swats_test.cpp
ElianeBriand/ensmallen
0f634056d054d100b2a70cb8f15ea9fa38680d10
[ "BSL-1.0", "BSD-3-Clause" ]
null
null
null
tests/swats_test.cpp
ElianeBriand/ensmallen
0f634056d054d100b2a70cb8f15ea9fa38680d10
[ "BSL-1.0", "BSD-3-Clause" ]
null
null
null
tests/swats_test.cpp
ElianeBriand/ensmallen
0f634056d054d100b2a70cb8f15ea9fa38680d10
[ "BSL-1.0", "BSD-3-Clause" ]
1
2019-01-16T16:21:59.000Z
2019-01-16T16:21:59.000Z
/** * @file swats_test.cpp * @author Marcus Edel * * Test file for the SWATS optimizer. * * ensmallen is free software; you may redistribute it and/or modify it under * the terms of the 3-clause BSD license. You should have received a copy of * the 3-clause BSD license along with ensmallen. If not, see * htt...
29.328571
79
0.71018
ElianeBriand
afafe01bc52f52d0237b360d94f7692b8943bb7d
1,233
cpp
C++
src/bounce/Bounce.cpp
Gigi1237/Bounce
6e674dd7babda0192b930cc532f692c75219d1fd
[ "MIT" ]
null
null
null
src/bounce/Bounce.cpp
Gigi1237/Bounce
6e674dd7babda0192b930cc532f692c75219d1fd
[ "MIT" ]
2
2015-02-11T02:46:15.000Z
2015-02-26T14:41:30.000Z
src/bounce/Bounce.cpp
Gigi1237/Bounce
6e674dd7babda0192b930cc532f692c75219d1fd
[ "MIT" ]
null
null
null
#include "Bounce.h" #include <iostream> //#include <intrin.h> - Not needed on linux World *world; void ClearScreen() { std::cout << std::string(100, '\n'); } void handleUp(int action) { //if (action == 1){ ClearScreen(); World::setGravity(World::getGravity() + 0.5f); std::cout << Worl...
20.55
62
0.622871
Gigi1237
afb142fff97a1c2d73ccad2dabee4c031dd69a8f
991
cpp
C++
luogu/codes/P1311.cpp
Tony031218/OI
562f5f45d0448f4eab77643b99b825405a123d92
[ "MIT" ]
1
2021-02-22T03:39:24.000Z
2021-02-22T03:39:24.000Z
luogu/codes/P1311.cpp
Tony031218/OI
562f5f45d0448f4eab77643b99b825405a123d92
[ "MIT" ]
null
null
null
luogu/codes/P1311.cpp
Tony031218/OI
562f5f45d0448f4eab77643b99b825405a123d92
[ "MIT" ]
null
null
null
/************************************************************* * > File Name : P1311.cpp * > Author : Tony * > Created Time : 2019/10/20 19:31:08 * > Algorithm : **************************************************************/ #include <bits/stdc++.h> using namespace std; inline in...
26.078947
65
0.379415
Tony031218
afb258add685e6ea7e2995fbc57674ba17d6b48f
677
hpp
C++
TheMachine/include/TheMachine/utils.hpp
adepierre/TheMachine
96df7775a4a6745802ab76649a63a4d16641a54b
[ "MIT" ]
1
2021-09-24T10:05:52.000Z
2021-09-24T10:05:52.000Z
TheMachine/include/TheMachine/utils.hpp
adepierre/TheMachine
96df7775a4a6745802ab76649a63a4d16641a54b
[ "MIT" ]
null
null
null
TheMachine/include/TheMachine/utils.hpp
adepierre/TheMachine
96df7775a4a6745802ab76649a63a4d16641a54b
[ "MIT" ]
null
null
null
#pragma once #include <opencv2/core.hpp> struct Detection { float x1, y1, x2, y2; float score; int cls; }; void DrawRectangle(cv::Mat& img, const Detection& d, const cv::Scalar& color); void DrawDetection(cv::Mat& img, const Detection& d, const cv::Scalar& color); void DrawPerson(cv::Mat& img, const Detection& ...
27.08
100
0.713442
adepierre
afbeb2766cd84485a0e217549e064cb65b22fda5
109
hpp
C++
inc/receive_msg.hpp
os-chat/Chat
71d4750030a285fe5dab466d52f6d18f8f70ef07
[ "MIT" ]
null
null
null
inc/receive_msg.hpp
os-chat/Chat
71d4750030a285fe5dab466d52f6d18f8f70ef07
[ "MIT" ]
null
null
null
inc/receive_msg.hpp
os-chat/Chat
71d4750030a285fe5dab466d52f6d18f8f70ef07
[ "MIT" ]
null
null
null
#ifndef RECEIVE_MSG_HPP #define RECEIVE_MSG_HPP #include "common.hpp" void *receive_msg(void *ptr); #endif
13.625
29
0.779817
os-chat
afc0d98a7d0cbb89cdb834e40f8505129adeb8d5
4,137
tpp
C++
base/serialization.tpp
BowenforGit/Grasper
268468d6eb0a56e9a4815c0c1d7660b06bf8a1f7
[ "Apache-2.0" ]
29
2019-11-18T14:25:05.000Z
2022-02-10T07:21:48.000Z
base/serialization.tpp
BowenforGit/Grasper
268468d6eb0a56e9a4815c0c1d7660b06bf8a1f7
[ "Apache-2.0" ]
2
2021-03-17T03:17:38.000Z
2021-04-11T04:06:23.000Z
base/serialization.tpp
BowenforGit/Grasper
268468d6eb0a56e9a4815c0c1d7660b06bf8a1f7
[ "Apache-2.0" ]
6
2019-11-21T18:04:15.000Z
2022-03-01T02:48:50.000Z
/* Copyright 2019 Husky Data Lab, CUHK Authors: Created by Hongzhi Chen (hzchen@cse.cuhk.edu.hk) */ template <class T> ibinstream& operator<<(ibinstream& m, const T* p) { return m << *p; } template <class T> ibinstream& operator<<(ibinstream& m, const vector<T>& v) { m << v.size(); for (typename vector<T...
22.483696
105
0.539521
BowenforGit
afc86f98606a6be02eecf6dc0f15664affe8a493
841
cc
C++
libmat/test/src/test_cr_cColItr_all.cc
stiegerc/winterface
b6d501df1d0c015f2cd7126ac6b4e746d541c80c
[ "BSD-2-Clause" ]
2
2020-10-06T09:14:23.000Z
2020-11-25T06:08:54.000Z
libmat/test/src/test_cr_cColItr_all.cc
stiegerc/Winterface
b6d501df1d0c015f2cd7126ac6b4e746d541c80c
[ "BSD-2-Clause" ]
1
2020-12-23T04:20:33.000Z
2020-12-23T04:20:33.000Z
libmat/test/src/test_cr_cColItr_all.cc
stiegerc/Winterface
b6d501df1d0c015f2cd7126ac6b4e746d541c80c
[ "BSD-2-Clause" ]
1
2020-07-14T13:53:32.000Z
2020-07-14T13:53:32.000Z
// 2014-2019, ETH Zurich, Integrated Systems Laboratory // Authors: Christian Stieger #include "testTools.h" #include "test_cr_tVecItr_all.h" #include "test_cr_tVecItr_all.cc" template<> void test_cr_tVecItr_all<CPX__,RE__,CPX__,lm_tCol<CPX__,RE__,CPX__>>::test_dereference() { const size_t M = genRndST(); const ...
24.735294
97
0.72176
stiegerc
afcc23ae27949774542c6cb63d9a826e503cce32
7,678
cpp
C++
2/second-lab/second-lab/app.cpp
i582/HLProgramming
4d2da80c69f8e1014cbf7be9087bdec6b2c05d45
[ "MIT" ]
null
null
null
2/second-lab/second-lab/app.cpp
i582/HLProgramming
4d2da80c69f8e1014cbf7be9087bdec6b2c05d45
[ "MIT" ]
null
null
null
2/second-lab/second-lab/app.cpp
i582/HLProgramming
4d2da80c69f8e1014cbf7be9087bdec6b2c05d45
[ "MIT" ]
null
null
null
#include "app.h" App::App() { this->window = nullptr; this->renderer = nullptr; this->e = {}; this->running = true; } App::~App() { SDL_RemoveTimer(repeatOnceFunctionTimer); SDL_RemoveTimer(customEventFunctionTimer); SDL_Log("Старт разрушения окна"); SDL_DestroyWindow(window); SDL_Log("разрушение окна успе...
23.057057
163
0.711383
i582
afcdcc50e1f4f31417bb60aa43ec84ee85e55e0b
2,779
hpp
C++
src/CAghostnodes.hpp
streeve/ExaCA
f6bd298d9719edfe948ce629369f02ac7c18c65b
[ "MIT" ]
13
2021-06-04T14:50:33.000Z
2022-03-26T03:21:17.000Z
src/CAghostnodes.hpp
streeve/ExaCA
f6bd298d9719edfe948ce629369f02ac7c18c65b
[ "MIT" ]
30
2021-07-21T23:13:34.000Z
2022-03-29T18:37:19.000Z
src/CAghostnodes.hpp
streeve/ExaCA
f6bd298d9719edfe948ce629369f02ac7c18c65b
[ "MIT" ]
5
2021-07-21T23:36:12.000Z
2022-03-11T00:52:15.000Z
// Copyright 2021 Lawrence Livermore National Security, LLC and other ExaCA Project Developers. // See the top-level LICENSE file for details. // // SPDX-License-Identifier: MIT #ifndef EXACA_GHOST_HPP #define EXACA_GHOST_HPP #include "CAtypes.hpp" #include <Kokkos_Core.hpp> void GhostNodesInit(int, int, int Decomp...
73.131579
120
0.732997
streeve
afd03638568c09eb7f19f3eaa4843bdc98beca12
10,745
hpp
C++
include/Library/Astrodynamics/Trajectory/Orbit/Models/Kepler.hpp
cowlicks/library-astrodynamics
aec161a1e5a1294820a90e1a74633b5a71d59a33
[ "Apache-2.0" ]
null
null
null
include/Library/Astrodynamics/Trajectory/Orbit/Models/Kepler.hpp
cowlicks/library-astrodynamics
aec161a1e5a1294820a90e1a74633b5a71d59a33
[ "Apache-2.0" ]
null
null
null
include/Library/Astrodynamics/Trajectory/Orbit/Models/Kepler.hpp
cowlicks/library-astrodynamics
aec161a1e5a1294820a90e1a74633b5a71d59a33
[ "Apache-2.0" ]
null
null
null
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// @project Library/Astrodynamics /// @file Library/Astrodynamics/Trajectory/Orbit/Models/Kepler.hpp /// @author Lucas Brémond <luca...
62.47093
189
0.304514
cowlicks
afd146c0ac57d6534ef3fe0cfe39762f126d39fb
6,793
cpp
C++
frameworks/lua/libs/kernel/dmzLuaKernelHandle.cpp
ashok/dmz
2f8d4bced646f25abf2e98bdc0d378dafb4b32ed
[ "MIT" ]
1
2015-11-05T03:03:31.000Z
2015-11-05T03:03:31.000Z
frameworks/lua/libs/kernel/dmzLuaKernelHandle.cpp
ashok/dmz
2f8d4bced646f25abf2e98bdc0d378dafb4b32ed
[ "MIT" ]
null
null
null
frameworks/lua/libs/kernel/dmzLuaKernelHandle.cpp
ashok/dmz
2f8d4bced646f25abf2e98bdc0d378dafb4b32ed
[ "MIT" ]
null
null
null
#include <dmzLuaKernel.h> #include "dmzLuaKernelPrivate.h" #include <dmzLuaKernelValidate.h> #include <dmzRuntimeDefinitions.h> #include <dmzSystem.h> #include <dmzTypesHashTableHandleTemplate.h> #include <dmzTypesString.h> #include <luacpp.h> using namespace dmz; namespace { static const char HandleName[] = "dmz.ty...
20.901538
85
0.596055
ashok
afdafc445a97e97903270769867114615ec67fd1
268
cpp
C++
timus/2100.cpp
y-wan/OJ
5dea140dbaaec98e440ad4b1c10fa5072f1ceea7
[ "MIT" ]
null
null
null
timus/2100.cpp
y-wan/OJ
5dea140dbaaec98e440ad4b1c10fa5072f1ceea7
[ "MIT" ]
null
null
null
timus/2100.cpp
y-wan/OJ
5dea140dbaaec98e440ad4b1c10fa5072f1ceea7
[ "MIT" ]
null
null
null
#include <iostream> #include <string> using namespace std; int main() { int n; string s; cin >> n; int sum = n + 2; for (int i = 0; i < n; i++) { cin >> s; if (s[s.size() - 4] == '+') sum++; } if (sum == 13) sum++; cout << 100 * sum << endl; return 0; }
14.888889
36
0.496269
y-wan
afdc73c0e5a987e35e16416b60dd714a5847b7ee
1,657
cpp
C++
test/src/MISC/Common/LongRunningOperation.cpp
theoremprover/cpp-parser
543cd50acc9e08aadf278b9c970d4db6c332887a
[ "BSD-3-Clause" ]
18
2018-05-10T18:50:06.000Z
2022-01-11T17:11:34.000Z
test/src/MISC/Common/LongRunningOperation.cpp
theoremprover/cpp-parser
543cd50acc9e08aadf278b9c970d4db6c332887a
[ "BSD-3-Clause" ]
24
2018-06-14T17:54:17.000Z
2022-03-11T23:21:29.000Z
test/src/MISC/Common/LongRunningOperation.cpp
theoremprover/cpp-parser
543cd50acc9e08aadf278b9c970d4db6c332887a
[ "BSD-3-Clause" ]
4
2019-04-02T16:04:34.000Z
2022-01-10T11:44:43.000Z
// This file is part of Notepad++ project // Copyright (C)2003 Don HO <don.h@free.fr> // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either // version 2 of the License, or (at your option...
33.816327
76
0.754375
theoremprover
afe2e3508b335766c62fc986f31dba7fb2f00ecf
911
cpp
C++
cppPrime/cppBrowse_c02/test_10.cpp
ilvcr/cpplgproject
d3dc492b37c3754e35669eee2dd96d83de63ead4
[ "Apache-2.0" ]
null
null
null
cppPrime/cppBrowse_c02/test_10.cpp
ilvcr/cpplgproject
d3dc492b37c3754e35669eee2dd96d83de63ead4
[ "Apache-2.0" ]
null
null
null
cppPrime/cppBrowse_c02/test_10.cpp
ilvcr/cpplgproject
d3dc492b37c3754e35669eee2dd96d83de63ead4
[ "Apache-2.0" ]
null
null
null
/************************************************************************* > File Name: test_10.cpp > Author: @Yoghourt->ilvcr, Cn,Sx,Ty > Mail: ilvcr@outlook.com || liyaoliu@foxmail.com > Created Time: 2018年06月21日 星期四 23时30分40秒 > Description: 将泛型算法应用到vector类对象上 ***********************************************...
23.358974
74
0.512623
ilvcr
afedea283c5bfd25ca1256f4f676b4c187dc5e08
7,233
cpp
C++
src/lz4mt_result.cpp
1shekhar/lz4mt-cpp
a01631c2a5496c8d6335801d270b3d8688da078d
[ "BSD-2-Clause" ]
140
2015-01-08T03:42:50.000Z
2022-02-15T13:08:27.000Z
src/lz4mt_result.cpp
1shekhar/lz4mt-cpp
a01631c2a5496c8d6335801d270b3d8688da078d
[ "BSD-2-Clause" ]
15
2015-01-29T21:00:39.000Z
2021-11-25T14:20:12.000Z
src/lz4mt_result.cpp
1shekhar/lz4mt-cpp
a01631c2a5496c8d6335801d270b3d8688da078d
[ "BSD-2-Clause" ]
40
2015-01-13T07:19:05.000Z
2022-01-12T18:24:30.000Z
#include "lz4mt.h" extern "C" const char* lz4mtResultToString(Lz4MtResult result) { const char* s = "???"; switch(result) { case LZ4MT_RESULT_OK: s = "OK"; break; case LZ4MT_RESULT_ERROR: s = "ERROR"; break; case LZ4MT_RESULT_INVALID_MAGIC_NUMBER: s = "INVALID_MAGIC_NUMBER"; break; case LZ4MT_RESULT...
26.690037
161
0.718651
1shekhar
aff3322e251c03dea97c9a0bedf81187344ccea0
475
cc
C++
actions.cc
amadio/g4run
05dbfd0ec30567d0a60513d3002994094cd51af3
[ "BSD-2-Clause" ]
2
2020-08-18T12:22:13.000Z
2022-03-12T17:01:05.000Z
actions.cc
amadio/g4run
05dbfd0ec30567d0a60513d3002994094cd51af3
[ "BSD-2-Clause" ]
null
null
null
actions.cc
amadio/g4run
05dbfd0ec30567d0a60513d3002994094cd51af3
[ "BSD-2-Clause" ]
null
null
null
#include "actions.h" G4Run* RunAction::GenerateRun() { return nullptr; } void RunAction::BeginOfRunAction(const G4Run*) { } void RunAction::EndOfRunAction(const G4Run*) { } void EventAction::BeginOfEventAction(const G4Event*) { } void EventAction::EndOfEventAction(const G4Event*) { } void TrackingAction::PreUserTrac...
33.928571
63
0.772632
amadio
aff434f15dd46c9df3ed72ad489bfa072dcf1e37
3,332
cpp
C++
src/poll.cpp
TheClonerx/cppnet
1d282824d227542a3b130c37ef068ebddb212fa5
[ "MIT" ]
7
2019-03-03T05:43:52.000Z
2021-08-28T01:24:44.000Z
src/poll.cpp
TheClonerx/cppnet
1d282824d227542a3b130c37ef068ebddb212fa5
[ "MIT" ]
null
null
null
src/poll.cpp
TheClonerx/cppnet
1d282824d227542a3b130c37ef068ebddb212fa5
[ "MIT" ]
1
2020-01-02T05:47:12.000Z
2020-01-02T05:47:12.000Z
#include <cppnet/poll.hpp> #include <algorithm> bool net::poll::add(socket::native_handle_type fd, int eventmask) { if (fd < 0) return false; auto it = std::find_if(fds.begin(), fds.end(), [fd](const pollfd& p) { return p.fd == fd; }); if (it != fds.end()) return false; fds...
28.724138
128
0.604142
TheClonerx
aff5a97359496a813dfb2ec91f1506e5a4b269e0
537
hpp
C++
src/Enclave/binary/logic.hpp
dove-project/dove-backend
e9f4f6211181ccc9072416816d65793dc137444b
[ "MIT" ]
null
null
null
src/Enclave/binary/logic.hpp
dove-project/dove-backend
e9f4f6211181ccc9072416816d65793dc137444b
[ "MIT" ]
null
null
null
src/Enclave/binary/logic.hpp
dove-project/dove-backend
e9f4f6211181ccc9072416816d65793dc137444b
[ "MIT" ]
null
null
null
#ifndef _LOGIC_HPP #define _LOGIC_HPP #include "../binary_op.hpp" #ifdef LIB_FTFP class BitwiseAndOp: public BinaryOp { void call(fixed scalar1, fixed scalar2, fixed *result); }; class BitwiseOrOp: public BinaryOp { void call(fixed scalar1, fixed scalar2, fixed *result); }; #else class BitwiseAndOp: public Binary...
23.347826
60
0.73743
dove-project
aff78f49864e880352a13d5671ccc2629f72f429
742
hpp
C++
TypeTraits/IsMemberPointer.hpp
jlandess/LandessDevCore
3319c36c3232415d6bdba7da8b4896c0638badf2
[ "BSD-3-Clause" ]
2
2021-06-09T00:38:46.000Z
2021-09-04T21:55:33.000Z
TypeTraits/IsMemberPointer.hpp
jlandess/LandessDevCore
3319c36c3232415d6bdba7da8b4896c0638badf2
[ "BSD-3-Clause" ]
null
null
null
TypeTraits/IsMemberPointer.hpp
jlandess/LandessDevCore
3319c36c3232415d6bdba7da8b4896c0638badf2
[ "BSD-3-Clause" ]
1
2021-08-30T00:46:12.000Z
2021-08-30T00:46:12.000Z
// // Created by phoenixflower on 10/12/19. // #ifndef LANDESSDEVDATASTRUCTURES_ISMEMBERPOINTER_H #define LANDESSDEVDATASTRUCTURES_ISMEMBERPOINTER_H //#include "Definitions/Common.hpp" namespace LD { namespace Detail { template< class T > struct is_member_pointer_helper : LD::FalseType...
26.5
84
0.685984
jlandess
affad5f7b825cc3df186ffecf55dc0b8ae2b88d8
1,513
cpp
C++
arduino-libs/Pacman/src/AmbushState.cpp
taylorsmithatnominet/BSidesCBR-2021-Badge
df3f13d780d6fb1b6d03d08e9bdd72f507f69aa6
[ "MIT" ]
null
null
null
arduino-libs/Pacman/src/AmbushState.cpp
taylorsmithatnominet/BSidesCBR-2021-Badge
df3f13d780d6fb1b6d03d08e9bdd72f507f69aa6
[ "MIT" ]
null
null
null
arduino-libs/Pacman/src/AmbushState.cpp
taylorsmithatnominet/BSidesCBR-2021-Badge
df3f13d780d6fb1b6d03d08e9bdd72f507f69aa6
[ "MIT" ]
null
null
null
#include "AmbushState.h" #include "Level.h" #include "MovementModule.h" #include "Player.h" #include "PathFinderModule.h" #include "Config.h" namespace pacman { Vect2 AmbushState::GetNextTarget() { Vect2 next = *m_playerwPtr->GetPos(); m_datawPtr->m_levelwPtr->NextIntersection(next, m_playerwPtr->GetDirection());...
20.445946
88
0.727693
taylorsmithatnominet
affb2458f5b7d83a31f0e74be076cbaf4cb652fa
3,405
cpp
C++
Source/DemoScene/DX9Vector3.cpp
ookumaneko/PC-Psp-Cross-Platform-Demoscene
0c192f9ecf5a4fd9db3c9a2c9998b365bf480c1e
[ "MIT" ]
null
null
null
Source/DemoScene/DX9Vector3.cpp
ookumaneko/PC-Psp-Cross-Platform-Demoscene
0c192f9ecf5a4fd9db3c9a2c9998b365bf480c1e
[ "MIT" ]
null
null
null
Source/DemoScene/DX9Vector3.cpp
ookumaneko/PC-Psp-Cross-Platform-Demoscene
0c192f9ecf5a4fd9db3c9a2c9998b365bf480c1e
[ "MIT" ]
null
null
null
#ifndef _PSP_VER #include "Vector3.h" Vector3& Vector3::operator =(const Vector3 &rhs) { _vec = rhs._vec; return *this; } Vector3 Vector3::operator +(const Vector3& rhs) const { Vector3 ret; D3DXVec3Add( &ret._vec, &_vec, &rhs._vec ); return ret; } Vector3 Vector3::operator- (const Vector3& rhs) const { Vecto...
19.346591
82
0.684288
ookumaneko
9b7c242e21a2a00dc1e56060aba426bdbd26aa2f
884
cpp
C++
src/npf/layout/rows.cpp
yeSpud/Tumblr-cpp
0f69846abf47495384077488fda49a2b17dfc439
[ "MIT" ]
1
2021-07-16T04:25:02.000Z
2021-07-16T04:25:02.000Z
src/npf/layout/rows.cpp
yeSpud/Tumblr-cpp
0f69846abf47495384077488fda49a2b17dfc439
[ "MIT" ]
4
2021-09-16T08:46:40.000Z
2022-03-12T05:12:20.000Z
src/npf/layout/rows.cpp
yeSpud/Tumblr-cpp
0f69846abf47495384077488fda49a2b17dfc439
[ "MIT" ]
null
null
null
// // Created by Spud on 7/16/21. // #include "npf/layout/rows.hpp" void Rows::populateBlocks(const JSON_ARRAY &array) { // TODO Comments display = std::vector<std::vector<int>>(array.Size()); for (JSON_ARRAY_ENTRY &entry : array) { if (entry.IsObject()) { JSON_OBJECT object = entry.GetObj(); POPULATE_AR...
23.891892
86
0.670814
yeSpud
9b805aa696c8ec98cb29950c14711a0a32d847bd
433
cpp
C++
competitive_programming/programming_contests/uri/handball.cpp
LeandroTk/Algorithms
569ed68eba3eeff902f8078992099c28ce4d7cd6
[ "MIT" ]
205
2018-12-01T17:49:49.000Z
2021-12-22T07:02:27.000Z
competitive_programming/programming_contests/uri/handball.cpp
LeandroTk/Algorithms
569ed68eba3eeff902f8078992099c28ce4d7cd6
[ "MIT" ]
2
2020-01-01T16:34:29.000Z
2020-04-26T19:11:13.000Z
competitive_programming/programming_contests/uri/handball.cpp
LeandroTk/Algorithms
569ed68eba3eeff902f8078992099c28ce4d7cd6
[ "MIT" ]
50
2018-11-28T20:51:36.000Z
2021-11-29T04:08:25.000Z
// https://www.urionlinejudge.com.br/judge/en/problems/view/1715 #include <iostream> using namespace std; int main() { int players, matches, p; while (cin >> players >> matches) { int counter = 0; for (int i = 0; i < players; i++) { bool scored = true; for (int j = 0; j < matches; j++) { cin >> p;...
16.037037
64
0.56351
LeandroTk
9b8245efdb7e9da180d5eab0976e5c7db2a2d9b3
1,903
cpp
C++
example-Sprite/src/CustomSpriteA.cpp
selflash/ofxSelflash
087a263b2d4de970edd75ecab2c2a48b7b58e62d
[ "MIT" ]
19
2015-05-14T09:57:38.000Z
2022-01-10T23:32:28.000Z
example-Sprite/src/CustomSpriteA.cpp
selflash/ofxSelflash
087a263b2d4de970edd75ecab2c2a48b7b58e62d
[ "MIT" ]
3
2015-08-04T09:07:26.000Z
2018-01-18T07:14:35.000Z
example-Sprite/src/CustomSpriteA.cpp
selflash/ofxSelflash
087a263b2d4de970edd75ecab2c2a48b7b58e62d
[ "MIT" ]
1
2015-08-04T09:05:22.000Z
2015-08-04T09:05:22.000Z
#include "CustomSpriteA.h" //============================================================== // Constructor / Destructor //============================================================== //-------------------------------------------------------------- CustomSpriteA::CustomSpriteA() { ofLog() << "[CustomSpriteA]Cust...
29.276923
64
0.257488
selflash
9b85c208fc178f98f0861559d9f07fda788d569f
702
cpp
C++
TriviallyCopyable.cpp
haxpor/cpp_st
43d1492266c6e01e6e243c834fba26eedf1ab9f3
[ "MIT" ]
2
2021-06-10T22:05:01.000Z
2021-09-17T08:21:20.000Z
TriviallyCopyable.cpp
haxpor/cpp_st
43d1492266c6e01e6e243c834fba26eedf1ab9f3
[ "MIT" ]
null
null
null
TriviallyCopyable.cpp
haxpor/cpp_st
43d1492266c6e01e6e243c834fba26eedf1ab9f3
[ "MIT" ]
1
2020-02-25T04:26:52.000Z
2020-02-25T04:26:52.000Z
/** * Testbed on checking whether std::vector<scalar-type> is trivially copyable or not via * type traits. * * Read more about trivially copyable at Notes section in https://en.cppreference.com/w/cpp/types/is_trivially_copyable */ #include <type_traits> #include <iostream> #include <vector> std::vector<unsigned i...
30.521739
119
0.702279
haxpor
9b8833ba7e7bdfcedd0db0682b215621dc48e04b
14,489
cpp
C++
src/gtirb_pprinter/AArch64PrettyPrinter.cpp
binrats/gtirb-pprinter
864640a62fe41068a80e0ef295da9d0522402aab
[ "MIT" ]
null
null
null
src/gtirb_pprinter/AArch64PrettyPrinter.cpp
binrats/gtirb-pprinter
864640a62fe41068a80e0ef295da9d0522402aab
[ "MIT" ]
null
null
null
src/gtirb_pprinter/AArch64PrettyPrinter.cpp
binrats/gtirb-pprinter
864640a62fe41068a80e0ef295da9d0522402aab
[ "MIT" ]
null
null
null
//===- AArch64PrettyPrinter.cpp ---------------------------------*- C++ -*-===// // // Copyright (c) 2020, The Binrat Developers. // // This code is licensed under the GNU Affero General Public License // as published by the Free Software Foundation, either version 3 of // the License, or (at your option) any later...
30.697034
139
0.549934
binrats
9b8a17ad719aea690882161969571456622fe051
864
cpp
C++
microsoft/15.cpp
19yetnoob/-6Companies30days
93f8dc6370cae7a8907d02b3ac8de610b73b8d9f
[ "MIT" ]
null
null
null
microsoft/15.cpp
19yetnoob/-6Companies30days
93f8dc6370cae7a8907d02b3ac8de610b73b8d9f
[ "MIT" ]
null
null
null
microsoft/15.cpp
19yetnoob/-6Companies30days
93f8dc6370cae7a8907d02b3ac8de610b73b8d9f
[ "MIT" ]
null
null
null
void dfs(int node,set<int>s[],vector<int>&visit,string &ans){ visit[node]=1; for(auto a:s[node]){ if(visit[a]==-1) dfs(a,s,visit,ans); } ans=(char)('a'+node)+ans; } string findOrder(string dict[], int N, int K) { set<int>v[26]; for(...
27.870968
62
0.359954
19yetnoob
9b8fe593b7c252f51a2afe8fca6f8835d8851af0
9,551
cpp
C++
src/Task.cpp
tehilinski/MTBMPI
5d8fa590c6708c6ef412c6d2959f04e125f2d9e0
[ "Apache-2.0" ]
null
null
null
src/Task.cpp
tehilinski/MTBMPI
5d8fa590c6708c6ef412c6d2959f04e125f2d9e0
[ "Apache-2.0" ]
null
null
null
src/Task.cpp
tehilinski/MTBMPI
5d8fa590c6708c6ef412c6d2959f04e125f2d9e0
[ "Apache-2.0" ]
null
null
null
/*------------------------------------------------------------------------------------------------------------ file Task.cpp class mtbmpi::Task brief Class to control a single concurrent task. details Tasks are created by the TaskFactory and owns a work task object as a TaskAdapter. The work tasks are derived...
23.8775
110
0.597424
tehilinski
9b91494bfc8e3d744f2c88529dcbe3779ce83d77
4,158
cpp
C++
ChangeJournal/VolumeOptions.cpp
ambray/Ntfs
c610315b007d0d0d1666d878e4f9c955deb86077
[ "MIT" ]
20
2016-02-04T12:23:39.000Z
2021-12-30T04:17:49.000Z
ChangeJournal/VolumeOptions.cpp
c3358/Ntfs
c610315b007d0d0d1666d878e4f9c955deb86077
[ "MIT" ]
null
null
null
ChangeJournal/VolumeOptions.cpp
c3358/Ntfs
c610315b007d0d0d1666d878e4f9c955deb86077
[ "MIT" ]
6
2015-07-15T04:29:07.000Z
2020-12-21T22:35:17.000Z
#include "VolumeOptions.hpp" ntfs::VolOps::VolOps(std::shared_ptr<void> volHandle) : vhandle(volHandle) { } void ntfs::VolOps::setVolHandle(std::shared_ptr<void> vh) { if(vhandle) vhandle.reset(); vhandle = vh; } std::shared_ptr<void> ntfs::VolOps::getVolHandle() { return vhandle; } std::tuple<std::string, s...
30.573529
142
0.746994
ambray
9b9527084fade5933b613150bacd7da8f99aed7b
949
hpp
C++
include/actl/operation/scalar/comparison/less.hpp
AlCash07/ACTL
15de4e2783d8e39dbd8e10cd635aaab328ca4f5b
[ "BSL-1.0" ]
17
2018-08-22T06:48:20.000Z
2022-02-22T21:20:09.000Z
include/actl/operation/scalar/comparison/less.hpp
AlCash07/ACTL
15de4e2783d8e39dbd8e10cd635aaab328ca4f5b
[ "BSL-1.0" ]
null
null
null
include/actl/operation/scalar/comparison/less.hpp
AlCash07/ACTL
15de4e2783d8e39dbd8e10cd635aaab328ca4f5b
[ "BSL-1.0" ]
null
null
null
// Copyright 2020 Oleksandr Bacherikov. // // Distributed under the Boost Software License, Version 1.0 // (see accompanying file LICENSE.txt or copy at // http://www.boost.org/LICENSE_1_0.txt). #pragma once #include <actl/operation/scalar/scalar_operation.hpp> namespace ac { namespace scalar { struct less_f : s...
21.088889
60
0.702845
AlCash07
9b9ad6d38e874528617dd5edf39aeb0e92fe366b
4,443
cxx
C++
ITS/ITSbase/AliITSdigitSSD.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
52
2016-12-11T13:04:01.000Z
2022-03-11T11:49:35.000Z
ITS/ITSbase/AliITSdigitSSD.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
1,388
2016-11-01T10:27:36.000Z
2022-03-30T15:26:09.000Z
ITS/ITSbase/AliITSdigitSSD.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
275
2016-06-21T20:24:05.000Z
2022-03-31T13:06:19.000Z
/************************************************************************** * Copyright(c) 2004-2006, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors ...
38.634783
79
0.597569
AllaMaevskaya
9b9b04e6df390c202915d081bc3ff390efa01033
2,072
cpp
C++
MPAGSCipher/CaesarCipher.cpp
tomlatham/mpags-day-3-JamesDownsLab
1bd5cddd53ec798440aec77978668f5056bd3d18
[ "MIT" ]
null
null
null
MPAGSCipher/CaesarCipher.cpp
tomlatham/mpags-day-3-JamesDownsLab
1bd5cddd53ec798440aec77978668f5056bd3d18
[ "MIT" ]
1
2019-11-06T14:17:01.000Z
2019-11-06T14:17:01.000Z
MPAGSCipher/CaesarCipher.cpp
tomlatham/mpags-day-3-JamesDownsLab
1bd5cddd53ec798440aec77978668f5056bd3d18
[ "MIT" ]
1
2019-11-06T11:39:22.000Z
2019-11-06T11:39:22.000Z
// // Created by james on 01/11/2019. // #include "CaesarCipher.hpp" #include <iostream> #include <string> #include <vector> CaesarCipher::CaesarCipher(const size_t key): key_{key} {} CaesarCipher::CaesarCipher(const std::string& key): key_{0} { // check to see whether string can be parsed as a number ...
31.393939
151
0.585907
tomlatham
9b9e9d3e6bc01f9e16184354f5272b9a263ae466
1,065
hpp
C++
src/JSON/JSONSerialiser.hpp
ilyaskurikhin/beesim
f30a8fad0d784074400e48055d69823717cae623
[ "DOC" ]
null
null
null
src/JSON/JSONSerialiser.hpp
ilyaskurikhin/beesim
f30a8fad0d784074400e48055d69823717cae623
[ "DOC" ]
null
null
null
src/JSON/JSONSerialiser.hpp
ilyaskurikhin/beesim
f30a8fad0d784074400e48055d69823717cae623
[ "DOC" ]
null
null
null
/* * prjsv 2015, 2016 * 2014, 2016 * Marco Antognini */ #ifndef INFOSV_JSONSERIALISER_HPP #define INFOSV_JSONSERIALISER_HPP #include <JSON/JSON.hpp> #include <stdexcept> #include <string> namespace j { class BadPayload : public std::runtime_error { public: BadPayload(std::string const& msg); }; class NoSu...
22.1875
68
0.748357
ilyaskurikhin
9b9f91932f7933f31ad51495f9796c4c7e1a3c1a
1,538
cpp
C++
src/sound/load_music.cpp
Damdoshi/LibLapin
800e0f17ed8f3c47797c48feea4c280bb0e4bdc9
[ "BSD-3-Clause" ]
38
2016-07-30T09:35:19.000Z
2022-03-04T10:13:48.000Z
src/sound/load_music.cpp
Elania-Marvers/LibLapin
800e0f17ed8f3c47797c48feea4c280bb0e4bdc9
[ "BSD-3-Clause" ]
15
2017-02-12T19:20:52.000Z
2021-06-09T09:30:52.000Z
src/sound/load_music.cpp
Elania-Marvers/LibLapin
800e0f17ed8f3c47797c48feea4c280bb0e4bdc9
[ "BSD-3-Clause" ]
12
2016-10-06T09:06:59.000Z
2022-03-04T10:14:00.000Z
// Jason Brillante "Damdoshi" // Hanged Bunny Studio 2014-2018 // // Bibliotheque Lapin #include <string.h> #include "lapin_private.h" #define PATTERN "%s -> %p" t_bunny_music *bunny_read_music(t_bunny_configuration *cnf) { t_bunny_sound *pc = NULL; if (bunny_set_sound_attribute(NULL, &pc, &cnf, true) ==...
23.30303
93
0.659948
Damdoshi
9ba04a333b68ffc1f035a2a6455d3a1c9e7b685c
1,500
cpp
C++
Source/PyramidMath/ExplorerMovementComponent.cpp
andriuchap/summer-ue4jam-2019
125a67cffe6b98d5d6a04b762a07e2c75256d86b
[ "Apache-2.0" ]
null
null
null
Source/PyramidMath/ExplorerMovementComponent.cpp
andriuchap/summer-ue4jam-2019
125a67cffe6b98d5d6a04b762a07e2c75256d86b
[ "Apache-2.0" ]
null
null
null
Source/PyramidMath/ExplorerMovementComponent.cpp
andriuchap/summer-ue4jam-2019
125a67cffe6b98d5d6a04b762a07e2c75256d86b
[ "Apache-2.0" ]
null
null
null
// Fill out your copyright notice in the Description page of Project Settings. #include "ExplorerMovementComponent.h" #include "GameFramework/PhysicsVolume.h" UExplorerMovementComponent::UExplorerMovementComponent(const FObjectInitializer &ObjInitializer) { FallingGravityScale = 2.0F; FallingThreshold = 100.0F; } ...
30.612245
130
0.76
andriuchap
9ba04e7228cd06789745eb3286b692d96b630416
281
cpp
C++
CSES-Problemset/sorting and searching/distinct_numbers.cpp
rranjan14/cp-solutions
9614508efbed1e4ee8b970b5eed535d782a5783f
[ "MIT" ]
null
null
null
CSES-Problemset/sorting and searching/distinct_numbers.cpp
rranjan14/cp-solutions
9614508efbed1e4ee8b970b5eed535d782a5783f
[ "MIT" ]
null
null
null
CSES-Problemset/sorting and searching/distinct_numbers.cpp
rranjan14/cp-solutions
9614508efbed1e4ee8b970b5eed535d782a5783f
[ "MIT" ]
null
null
null
#include <iostream> #include <set> #define lli long long int using namespace std; int main() { lli n, x; cin >> n; set<int, greater<int>> s; for (lli i = 0; i < n; i++) { cin >> x; s.insert(x); } cout << s.size() << "\n"; return 0; }
16.529412
31
0.480427
rranjan14
9ba227d5b892261ae49a495c23d4152e89d695a5
4,976
hpp
C++
core/boards/stm32l073xx/include/dma.hpp
azuwey/hexos
746901a86d664c44c03cd46bb2370975f6a11542
[ "MIT" ]
null
null
null
core/boards/stm32l073xx/include/dma.hpp
azuwey/hexos
746901a86d664c44c03cd46bb2370975f6a11542
[ "MIT" ]
null
null
null
core/boards/stm32l073xx/include/dma.hpp
azuwey/hexos
746901a86d664c44c03cd46bb2370975f6a11542
[ "MIT" ]
null
null
null
#ifndef __STM32L073XX_DMA #define __STM32L073XX_DMA #include "common_types.hpp" namespace DMA { namespace ADDRESSES { const inline t_uint32 BASE_ADDRESS = ((t_uint32)0x40020000U); } // namespace ADDRESSES namespace TYPEDEFS { typedef union { struct __attribute__((packed)) { __R t_uint32 GIF1 : 0x01U; ...
26.897297
93
0.610732
azuwey
9ba729f79b09d9da86be71e67339b928a0abb3c9
10,229
cpp
C++
cVRP/Individual.cpp
Frown00/evolutionary-algorithm
1ae279d904910be70c473c0ec6a9b9dc1395190e
[ "MIT" ]
null
null
null
cVRP/Individual.cpp
Frown00/evolutionary-algorithm
1ae279d904910be70c473c0ec6a9b9dc1395190e
[ "MIT" ]
null
null
null
cVRP/Individual.cpp
Frown00/evolutionary-algorithm
1ae279d904910be70c473c0ec6a9b9dc1395190e
[ "MIT" ]
null
null
null
#include "Individual.h" #include "utils.cpp" Individual::Individual(int t_dimension) { m_dimension = t_dimension; m_fitness = -1; } Individual::Individual(Individual* other) { m_genotype = other->m_genotype; m_fitness = other->m_fitness; m_dimension = other->m_dimension; m_genotype_text = other->m_genotyp...
30.810241
111
0.655196
Frown00
9ba7ebc605fc3a841bc949e22916bb82cca3a365
2,081
cpp
C++
tests/msg_feed_id/test.cpp
morgenm/PMC-Game
ae09b3df200bd1cf47bcf8888939112e5ac42d38
[ "MIT" ]
null
null
null
tests/msg_feed_id/test.cpp
morgenm/PMC-Game
ae09b3df200bd1cf47bcf8888939112e5ac42d38
[ "MIT" ]
null
null
null
tests/msg_feed_id/test.cpp
morgenm/PMC-Game
ae09b3df200bd1cf47bcf8888939112e5ac42d38
[ "MIT" ]
null
null
null
#include "msg_sys/msg_feed_id.h" #include <iostream> void TryEquals() { MessageFeedID lhs; MessageFeedID rhs; rhs.NewID(); if( lhs == rhs ) { std::cout << "MessageFeedID TryEquals Bad Test: FAILED!\n"; } else { std::cout << "MessageFeedID TryEquals Bad Test: Passed.\n"; } ...
21.905263
73
0.583373
morgenm
9baa88af4a23983b1d79e18b1992c91ec4dc3c21
1,207
hh
C++
libs/core/include/singleton.hh
no111u3/laptop_control
92f25ef61511dfacd5edeff3dedf06f31a347a9f
[ "Apache-2.0" ]
1
2019-04-30T13:46:51.000Z
2019-04-30T13:46:51.000Z
libs/core/include/singleton.hh
no111u3/laptop_control
92f25ef61511dfacd5edeff3dedf06f31a347a9f
[ "Apache-2.0" ]
null
null
null
libs/core/include/singleton.hh
no111u3/laptop_control
92f25ef61511dfacd5edeff3dedf06f31a347a9f
[ "Apache-2.0" ]
null
null
null
/** Copyright 2019 Boris Vinogradov <no111u3@gmail.com> 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 ...
28.738095
75
0.651201
no111u3
9bb32ea99deda845c13b99b27305e1a56d6f0444
1,196
hxx
C++
ImageSharpOpenJpegNative/src/openjpeg.mct.hxx
cinderblocks/ImageSharp.OpenJpeg
bf5c976a6dbfa0d2666be566c845a7410440cea2
[ "Apache-2.0" ]
null
null
null
ImageSharpOpenJpegNative/src/openjpeg.mct.hxx
cinderblocks/ImageSharp.OpenJpeg
bf5c976a6dbfa0d2666be566c845a7410440cea2
[ "Apache-2.0" ]
null
null
null
ImageSharpOpenJpegNative/src/openjpeg.mct.hxx
cinderblocks/ImageSharp.OpenJpeg
bf5c976a6dbfa0d2666be566c845a7410440cea2
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2022 Sjofn LLC. 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 applicab...
38.580645
90
0.698997
cinderblocks
9bb6ef5eb90e150ed1c7d1a90646c8202a54213e
14,412
cpp
C++
project/src/bytecode_vm/vm.cpp
Jeff-Mott-OR/cpplox
6b2b771c50fd3d0121283d1f2e54860e1d263bca
[ "MIT" ]
57
2018-04-18T11:06:31.000Z
2022-01-26T22:15:01.000Z
project/src/bytecode_vm/vm.cpp
Jeff-Mott-OR/cpplox
6b2b771c50fd3d0121283d1f2e54860e1d263bca
[ "MIT" ]
24
2018-04-20T04:24:39.000Z
2018-11-13T06:11:37.000Z
project/src/bytecode_vm/vm.cpp
Jeff-Mott-OR/cpplox
6b2b771c50fd3d0121283d1f2e54860e1d263bca
[ "MIT" ]
6
2018-04-19T03:25:35.000Z
2020-02-20T03:22:52.000Z
#include "vm.hpp" #include <chrono> #include <cstddef> #include <cstdint> #include <iostream> #include <utility> #include <gsl/gsl_util> #include "compiler.hpp" #include "debug.hpp" using std::chrono::duration_cast; using std::chrono::seconds; using std::chrono::system_clock; using std::cout; using std::move; using...
33.594406
136
0.490425
Jeff-Mott-OR
9bb8bc9b7e857f3e82af6939d8ca22a11a54b4d9
2,147
hpp
C++
search.hpp
dasapon/cappuccino
e198a495d8061b01ab34eb202415db2b28bce619
[ "MIT" ]
2
2018-02-14T15:10:41.000Z
2018-02-19T23:46:45.000Z
search.hpp
dasapon/cappuccino
e198a495d8061b01ab34eb202415db2b28bce619
[ "MIT" ]
null
null
null
search.hpp
dasapon/cappuccino
e198a495d8061b01ab34eb202415db2b28bce619
[ "MIT" ]
null
null
null
#pragma once #include "position.hpp" #include "state.hpp" #include "hash_table.hpp" #include "time.hpp" constexpr int max_ply = 128; using PV = sheena::Array<Move, max_ply>; enum { RPSDepth = 4 * depth_scale, }; class KillerMove : public sheena::Array<Move, 2>{ public: void update(Move m){ if((*this)[0] != m){...
23.855556
98
0.704704
dasapon
9bbc054ea09ab3a7ff30d0248cdf6e577f52a1f9
15,964
hpp
C++
examples/example_utils.hpp
ROCmMathLibrariesBot/hipCUB
003a5b2b791dc01e88d0c0caaaf1de9ae53ad638
[ "BSD-3-Clause" ]
36
2019-05-14T09:27:57.000Z
2022-03-03T09:19:11.000Z
examples/example_utils.hpp
ROCmMathLibrariesBot/hipCUB
003a5b2b791dc01e88d0c0caaaf1de9ae53ad638
[ "BSD-3-Clause" ]
70
2019-05-06T23:07:53.000Z
2022-03-17T08:24:22.000Z
examples/example_utils.hpp
ROCmMathLibrariesBot/hipCUB
003a5b2b791dc01e88d0c0caaaf1de9ae53ad638
[ "BSD-3-Clause" ]
25
2019-05-03T19:45:13.000Z
2022-03-31T08:14:38.000Z
#ifndef EXAMPLES_EXAMPLE_UTILS_HPP #define EXAMPLES_EXAMPLE_UTILS_HPP #include "mersenne.h" #include <vector> #include <sstream> #include <iostream> #include <hipcub/util_type.hpp> #include <hipcub/util_allocator.hpp> #include <hipcub/iterator/discard_output_iterator.hpp> #define AssertEquals(a, b) if ((a) != (b)) { ...
26.343234
120
0.502255
ROCmMathLibrariesBot
9bbf252752ae1ef4d98f83d5c6ede747e24e2b01
164
cpp
C++
code/random-stuff/dzien-probny/test.cpp
tonowak/acmlib
ec295b8c76c588914475ad42cff81a64a6f2ebd5
[ "MIT" ]
6
2019-06-25T14:07:08.000Z
2022-01-04T12:28:55.000Z
code/random-stuff/dzien-probny/test.cpp
tonowak/acmlib
ec295b8c76c588914475ad42cff81a64a6f2ebd5
[ "MIT" ]
null
null
null
code/random-stuff/dzien-probny/test.cpp
tonowak/acmlib
ec295b8c76c588914475ad42cff81a64a6f2ebd5
[ "MIT" ]
1
2021-11-12T01:40:38.000Z
2021-11-12T01:40:38.000Z
#include "../../utils/testing/test-wrapper.cpp" #include "main.cpp" void test() { test_int128(); //test_float128(); test_clock(); test_rd(); test_policy(); }
14.909091
47
0.652439
tonowak
9bc25f05c0413407d9bdc1438266b84d865d8b20
3,588
cpp
C++
tests/src/surface.cpp
viennagrid/viennagrid-dev
6e47c8d098a0b691d6b9988f2444cd11d440f4c2
[ "MIT" ]
7
2015-09-13T03:50:58.000Z
2019-06-27T14:24:49.000Z
tests/src/surface.cpp
viennagrid/viennagrid-dev
6e47c8d098a0b691d6b9988f2444cd11d440f4c2
[ "MIT" ]
null
null
null
tests/src/surface.cpp
viennagrid/viennagrid-dev
6e47c8d098a0b691d6b9988f2444cd11d440f4c2
[ "MIT" ]
5
2015-07-03T07:14:15.000Z
2021-05-20T00:51:58.000Z
/* ======================================================================= Copyright (c) 2011-2014, Institute for Microelectronics, Institute for Analysis and Scientific Computing, TU Wien. ----------------- Vie...
35.88
99
0.582776
viennagrid
9be2a8fc174178052e2e78a680976dde0f7f33f4
2,556
cpp
C++
project2D/GameStateManager.cpp
PancakesMan/GameStateProject
09a2587d96759768f04c521585b90bd961ef1758
[ "MIT" ]
null
null
null
project2D/GameStateManager.cpp
PancakesMan/GameStateProject
09a2587d96759768f04c521585b90bd961ef1758
[ "MIT" ]
null
null
null
project2D/GameStateManager.cpp
PancakesMan/GameStateProject
09a2587d96759768f04c521585b90bd961ef1758
[ "MIT" ]
null
null
null
#pragma once #include "GameStateManager.h" #include "IGameState.h" #include <assert.h> GameStateManager::GameStateManager() { } GameStateManager::~GameStateManager() { for (auto iter = m_registeredStates.begin(); iter != m_registeredStates.end(); iter++) delete iter->value; m_registeredStates.clear(); } void Gam...
21.478992
106
0.704617
PancakesMan
9bea79b4d6457b629dcc50a10d23dd97ac76bd3e
5,418
hh
C++
include/threadmap.hh
GYJQTYL2/DoubleTake
cdcd0200bb364b5343beae72756420e6c3954a6f
[ "MIT" ]
19
2015-09-17T18:10:14.000Z
2021-08-16T11:26:33.000Z
include/threadmap.hh
GYJQTYL2/DoubleTake
cdcd0200bb364b5343beae72756420e6c3954a6f
[ "MIT" ]
17
2015-04-27T14:33:42.000Z
2016-05-23T20:15:48.000Z
include/threadmap.hh
plasma-umass/DoubleTake
cdcd0200bb364b5343beae72756420e6c3954a6f
[ "MIT" ]
13
2015-07-29T15:15:00.000Z
2021-01-15T04:53:21.000Z
#if !defined(DOUBLETAKE_THREADMAP_H) #define DOUBLETAKE_THREADMAP_H /* * @file threadmap.h * @brief Mapping between pthread_t and internal thread information. * @author Tongping Liu <http://www.cs.umass.edu/~tonyliu> */ #include <assert.h> #include <pthread.h> #include <stdint.h> #include <stdlib.h> #include ...
27.226131
100
0.66076
GYJQTYL2
9bf043771fc2395d6f34fef93afb03bac9e92ee6
193
hpp
C++
samples/chalet/app.hpp
YiJiangFengYun/vulkan-graphics-examples
e7b788b8f47dd238b08840c019940c7c52335a54
[ "MIT" ]
1
2018-03-01T01:05:25.000Z
2018-03-01T01:05:25.000Z
samples/chalet/app.hpp
YiJiangFengYun/vulkan-graphics-examples
e7b788b8f47dd238b08840c019940c7c52335a54
[ "MIT" ]
null
null
null
samples/chalet/app.hpp
YiJiangFengYun/vulkan-graphics-examples
e7b788b8f47dd238b08840c019940c7c52335a54
[ "MIT" ]
null
null
null
#ifndef APP_H #define APP_H #include "sampleslib/app.hpp" namespace chalet { class App : public sampleslib::App { public: App(); private: }; } #endif // !APP_H
10.157895
38
0.585492
YiJiangFengYun
9bf410394e8999d85ded440780dd5e1122aa13e2
659
cpp
C++
laboratorios/lab_04/02_funcao_seno.cpp
sueyvid/Atividade_de_programacao_cpp
691941fc94125eddd4e5466862d5a1fe04dfb520
[ "MIT" ]
null
null
null
laboratorios/lab_04/02_funcao_seno.cpp
sueyvid/Atividade_de_programacao_cpp
691941fc94125eddd4e5466862d5a1fe04dfb520
[ "MIT" ]
null
null
null
laboratorios/lab_04/02_funcao_seno.cpp
sueyvid/Atividade_de_programacao_cpp
691941fc94125eddd4e5466862d5a1fe04dfb520
[ "MIT" ]
null
null
null
#include <iostream> #include <cmath> using namespace std; float qual_seno_do_angulo(float x, int n); int qual_o_fatorial(int y); int main() { float alfa; int num_termos; cin >> alfa >> num_termos; cout << qual_seno_do_angulo(alfa, num_termos); return 0; } int qual_o_fatorial(int y){ int j, ...
17.342105
59
0.54173
sueyvid
9bf61b1cc4954f6bf3f3beeb571039004faac9da
19,537
cpp
C++
simMolView3D.cpp
neelsoumya/cycells
a3a6e632addf0a91c75c0a579ad0d41ad9d7a089
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
simMolView3D.cpp
neelsoumya/cycells
a3a6e632addf0a91c75c0a579ad0d41ad9d7a089
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
simMolView3D.cpp
neelsoumya/cycells
a3a6e632addf0a91c75c0a579ad0d41ad9d7a089
[ "Naumen", "Condor-1.1", "MS-PL" ]
3
2018-06-20T21:55:11.000Z
2020-10-21T19:04:54.000Z
/************************************************************************ * * * Copyright (C) 2007 Christina Warrender and Drew Levin * * * * This file is part of ...
38.840954
131
0.417004
neelsoumya
5009bc05bc1e84f9f371cc010c7b05ea1e65b80e
3,978
cpp
C++
src/Npfs/Resources/StdStringFile.cpp
joluxer/NpfsCpp
f19d422b9ab4fa67e35c1e0c29dfa2abc8b0d78f
[ "Zlib" ]
null
null
null
src/Npfs/Resources/StdStringFile.cpp
joluxer/NpfsCpp
f19d422b9ab4fa67e35c1e0c29dfa2abc8b0d78f
[ "Zlib" ]
null
null
null
src/Npfs/Resources/StdStringFile.cpp
joluxer/NpfsCpp
f19d422b9ab4fa67e35c1e0c29dfa2abc8b0d78f
[ "Zlib" ]
null
null
null
/* * StdStringFile.cpp * */ #include "StdStringFile.h" #include <string.h> #include <assert.h> namespace Npfs { StdStringFile::StdStringFile(const char* filename, Npfs::Directory* parent, std::string& storage, uint16_t umask) : Npfs::Resource(filename, parent), fileData(storage), updateHandler(0), changeHandl...
21.857143
199
0.672448
joluxer
500b7fdd8572a9a1a4b1f2b78aba99ab17a8ab64
361
cpp
C++
util.cpp
fightling/decklink-debugger
796be29a62a02593cf7b53e695b2f53f04a2fc75
[ "MIT" ]
18
2018-01-07T19:19:59.000Z
2021-12-27T14:11:32.000Z
util.cpp
fightling/decklink-debugger
796be29a62a02593cf7b53e695b2f53f04a2fc75
[ "MIT" ]
8
2018-01-10T23:28:11.000Z
2021-07-15T22:12:50.000Z
util.cpp
fightling/decklink-debugger
796be29a62a02593cf7b53e695b2f53f04a2fc75
[ "MIT" ]
10
2018-05-10T19:53:30.000Z
2020-12-05T11:54:20.000Z
#include "util.h" #include "log.h" void throwIfNotOk(HRESULT result, const char* message) { if(result != S_OK) { LOG(ERROR) << "result (=0x" << std::hex << result << ") != S_OK, " << message; throw message; } } void throwIfNull(void* ptr, const char* message) { if(ptr == nullptr) { LOG(ERROR) << "ptr == null...
19
80
0.603878
fightling
50149195e681700189c64bb8a73d45c5fd83539a
63,015
cpp
C++
Dodo-Engine/code/renderer/Renderer.cpp
TKscoot/Dodo-Engine
ba6c56a898d2e07e0fd7e89161cbdafd8bc02abd
[ "MIT" ]
null
null
null
Dodo-Engine/code/renderer/Renderer.cpp
TKscoot/Dodo-Engine
ba6c56a898d2e07e0fd7e89161cbdafd8bc02abd
[ "MIT" ]
null
null
null
Dodo-Engine/code/renderer/Renderer.cpp
TKscoot/Dodo-Engine
ba6c56a898d2e07e0fd7e89161cbdafd8bc02abd
[ "MIT" ]
null
null
null
#include "dodopch.h" #include "Renderer.h" using namespace Dodo::Environment; bool Dodo::Rendering::CRenderer::m_bFramebufferResized = false; DodoError Dodo::Rendering::CRenderer::Initialize(std::shared_ptr<VKIntegration> _integration, std::shared_ptr<CWindow> _window) { m_pIntegration = _integration; m_pWindow ...
36.87244
226
0.786162
TKscoot