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
272bd67d4ec53667ae654159aebdca7a03c5a766
2,666
hpp
C++
P-ART/HashTable.hpp
yuhao-su/RECIPE-TEST
43eda6df8afe29a3eeefdda7b78f6c61d0c38073
[ "Apache-2.0" ]
null
null
null
P-ART/HashTable.hpp
yuhao-su/RECIPE-TEST
43eda6df8afe29a3eeefdda7b78f6c61d0c38073
[ "Apache-2.0" ]
null
null
null
P-ART/HashTable.hpp
yuhao-su/RECIPE-TEST
43eda6df8afe29a3eeefdda7b78f6c61d0c38073
[ "Apache-2.0" ]
null
null
null
#include <cstdlib> #include <atomic> static inline void lock(bool* lkp) { while(!__sync_bool_compare_and_swap(lkp, 0, 1)){ } } static inline void unlock(bool* lkp) { *(lkp) = 0; } static inline bool try_lock(bool* lkp) { return __sync_bool_compare_and_swap(lkp, 0, 1); } const uint64_t CACHE...
26.929293
80
0.607652
yuhao-su
273145b94560f24ca3759a3c5e522abc375befa1
639
cpp
C++
Operating Systems - C++/Assignment1/hw1.cpp
lameimpala/university-code-samples
dc81154ab6350ddd3c19cb2917c840d4e79eaa2f
[ "Unlicense" ]
null
null
null
Operating Systems - C++/Assignment1/hw1.cpp
lameimpala/university-code-samples
dc81154ab6350ddd3c19cb2917c840d4e79eaa2f
[ "Unlicense" ]
null
null
null
Operating Systems - C++/Assignment1/hw1.cpp
lameimpala/university-code-samples
dc81154ab6350ddd3c19cb2917c840d4e79eaa2f
[ "Unlicense" ]
null
null
null
/* CSCI 480-2 Assignment 1 Reid Wixom z1693990 Due on February 14, 2017 Purpose This program utilizes a class named 'Processor' which handles querying system files to answer questions. Execution ./hw1.exe [filename] [filename] points to /cpu/cpuinfo by default */ ...
19.363636
65
0.629108
lameimpala
27319f293d47c9e5ace28724dcedca551fdbae89
7,313
cpp
C++
src/UnitTest.Library.Desktop/WorldScopeEntityTest.cpp
jnighlight/DataDrivenGameEngine
10720cd2606cc75dac95213ff453bf3320ae3050
[ "MIT" ]
null
null
null
src/UnitTest.Library.Desktop/WorldScopeEntityTest.cpp
jnighlight/DataDrivenGameEngine
10720cd2606cc75dac95213ff453bf3320ae3050
[ "MIT" ]
null
null
null
src/UnitTest.Library.Desktop/WorldScopeEntityTest.cpp
jnighlight/DataDrivenGameEngine
10720cd2606cc75dac95213ff453bf3320ae3050
[ "MIT" ]
null
null
null
#include "pch.h" using namespace Microsoft::VisualStudio::CppUnitTestFramework; namespace Library { class FooEntity : public Entity { public: virtual FooEntity::~FooEntity() {}; void FooEntity::Update(WorldState& worldState) override { UNREFERENCED_PARAMETER(worldState); } }; CONCRETE_FACTORY(FooEntity,...
25.75
102
0.719267
jnighlight
27391c994b566c4bd8e607729ccd8f96c8d2440b
14,636
hpp
C++
sdl/Hypergraph/BestPathString.hpp
sdl-research/hyp
d39f388f9cd283bcfa2f035f399b466407c30173
[ "Apache-2.0" ]
29
2015-01-26T21:49:51.000Z
2021-06-18T18:09:42.000Z
sdl/Hypergraph/BestPathString.hpp
hypergraphs/hyp
d39f388f9cd283bcfa2f035f399b466407c30173
[ "Apache-2.0" ]
1
2015-12-08T15:03:15.000Z
2016-01-26T14:31:06.000Z
sdl/Hypergraph/BestPathString.hpp
hypergraphs/hyp
d39f388f9cd283bcfa2f035f399b466407c30173
[ "Apache-2.0" ]
4
2015-11-21T14:25:38.000Z
2017-10-30T22:22:00.000Z
// Copyright 2014-2015 SDL plc // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing,...
36.59
115
0.662134
sdl-research
274200ae203ee2dad78f5246c20420d430b50edd
4,101
cpp
C++
rute/qt_cpp/auto/margins.cpp
emoon/Rute
b8981fa9fb0508691399b0aa9a565686ebcc0a69
[ "Apache-2.0", "MIT" ]
42
2018-05-04T08:57:57.000Z
2021-11-08T13:05:23.000Z
rute/qt_cpp/auto/margins.cpp
emoon/Rute
b8981fa9fb0508691399b0aa9a565686ebcc0a69
[ "Apache-2.0", "MIT" ]
18
2018-05-31T12:11:35.000Z
2021-02-08T04:14:55.000Z
rute/qt_cpp/auto/margins.cpp
emoon/ui_gen
b8981fa9fb0508691399b0aa9a565686ebcc0a69
[ "Apache-2.0", "MIT" ]
2
2019-04-17T04:54:15.000Z
2021-03-19T17:38:05.000Z
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // This file is auto-generated by rute_gen. DO NOT EDIT /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #include "../rute_base.h" ...
35.051282
123
0.405023
emoon
2747466f400285cc761eba800c2816ccce45f122
1,284
cpp
C++
sdk/core/azure-core/test/ut/extendable_enumeration_test.cpp
JinmingHu-MSFT/azure-sdk-for-cpp
933486385a54a5a09a7444dbd823425f145ad75a
[ "MIT" ]
1
2022-01-19T22:54:41.000Z
2022-01-19T22:54:41.000Z
sdk/core/azure-core/test/ut/extendable_enumeration_test.cpp
LarryOsterman/azure-sdk-for-cpp
d96216f50909a2bd39b555c9088f685bf0f7d6e6
[ "MIT" ]
null
null
null
sdk/core/azure-core/test/ut/extendable_enumeration_test.cpp
LarryOsterman/azure-sdk-for-cpp
d96216f50909a2bd39b555c9088f685bf0f7d6e6
[ "MIT" ]
null
null
null
// Copyright (c) Microsoft Corporation. All rights reserved. // SPDX-License-Identifier: MIT #include <azure/core/internal/extendable_enumeration.hpp> #include <gtest/gtest.h> #include <string> using namespace Azure::Core; class MyEnum : public Azure::Core::_internal::ExtendableEnumeration<MyEnum> { public: MyEnum...
22.137931
86
0.696262
JinmingHu-MSFT
2747c4ce09ea82240ca76b6ef6eec2a9c77ed3b2
148
cpp
C++
kernel/src/program.cpp
pradosh-arduino/pradoshOS
b7c2a8b238261fc61460e609fd8352aa62b5f32e
[ "MIT" ]
9
2021-11-17T10:27:18.000Z
2022-03-16T09:43:24.000Z
kernel/src/program.cpp
pradosh-arduino/pradoshOS
b7c2a8b238261fc61460e609fd8352aa62b5f32e
[ "MIT" ]
1
2022-03-17T08:31:05.000Z
2022-03-28T02:50:59.000Z
kernel/src/program.cpp
pradosh-arduino/pradoshOS
b7c2a8b238261fc61460e609fd8352aa62b5f32e
[ "MIT" ]
1
2021-12-21T09:49:02.000Z
2021-12-21T09:49:02.000Z
#include "mtask.h" extern "C" void programASM(); void program(){ lock_scheduler(); schedule(); unlock_scheduler(); programASM(); }
14.8
29
0.628378
pradosh-arduino
274abdcb400bdaf7c6b3f288d1f934a8b0911318
2,031
cpp
C++
samples/RenderTargets/Source/Main.cpp
bitsauce/NibbleSauce3D
79792388eaad659c241a292c470ee9fa6413d354
[ "MIT" ]
null
null
null
samples/RenderTargets/Source/Main.cpp
bitsauce/NibbleSauce3D
79792388eaad659c241a292c470ee9fa6413d354
[ "MIT" ]
null
null
null
samples/RenderTargets/Source/Main.cpp
bitsauce/NibbleSauce3D
79792388eaad659c241a292c470ee9fa6413d354
[ "MIT" ]
1
2021-04-25T09:58:46.000Z
2021-04-25T09:58:46.000Z
#include <Sauce/Sauce.h> using namespace sauce; class RenderTargetsGame : public Game { RenderTarget2D *m_renderTarget; RenderTarget2D *m_renderTarget2; Texture2DRef m_texture; public: void onStart(GameEvent *e) { GraphicsContext *graphicsContext = getWindow()->getGraphicsContext(); m_renderTarget = graphic...
32.758065
125
0.754801
bitsauce
274bd5416727fdd152318c5929a28dedbeb4a6d4
1,375
cpp
C++
src/mod/robot/standable_heads.cpp
fugueinheels/sigsegv-mvm
092a69d44a3ed9aacd14886037f4093a27ff816b
[ "BSD-2-Clause" ]
33
2016-02-18T04:27:53.000Z
2022-01-15T18:59:53.000Z
src/mod/robot/standable_heads.cpp
fugueinheels/sigsegv-mvm
092a69d44a3ed9aacd14886037f4093a27ff816b
[ "BSD-2-Clause" ]
5
2018-01-10T18:41:38.000Z
2020-10-01T13:34:53.000Z
src/mod/robot/standable_heads.cpp
fugueinheels/sigsegv-mvm
092a69d44a3ed9aacd14886037f4093a27ff816b
[ "BSD-2-Clause" ]
14
2017-08-06T23:02:49.000Z
2021-08-24T00:24:16.000Z
#include "mod.h" #include "util/scope.h" #include "stub/gamerules.h" #include "stub/tfplayer.h" namespace Mod::Robot::Standable_Heads { RefCount rc_TFPlayerThink; DETOUR_DECL_MEMBER(void, CTFPlayer_TFPlayerThink) { SCOPED_INCREMENT(rc_TFPlayerThink); DETOUR_MEMBER_CALL(CTFPlayer_TFPlayerThink)(); ...
28.061224
99
0.704
fugueinheels
274c366cb552ef6604cf69aa7cb0255b76ae1ec9
3,011
hpp
C++
descriptors/rsd.hpp
vbillys/pose-estimation
e1b57da68d9c961358a6f8fd37706ed521c5c256
[ "MIT" ]
63
2017-03-30T23:56:47.000Z
2022-03-20T10:30:32.000Z
descriptors/rsd.hpp
vbillys/pose-estimation
e1b57da68d9c961358a6f8fd37706ed521c5c256
[ "MIT" ]
2
2017-07-10T14:14:50.000Z
2020-07-10T10:08:04.000Z
descriptors/rsd.hpp
aviate/pose-estimation
e1b57da68d9c961358a6f8fd37706ed521c5c256
[ "MIT" ]
15
2017-03-30T23:56:52.000Z
2021-10-12T12:08:20.000Z
#pragma once #include <pcl/features/rsd.h> #include "../types.h" #include "../parameter.h" #include "../featuredescription.hpp" #include "../utils.hpp" namespace PoseEstimation { /** #include "../utils.hpp" * @brief Feature Description using Radius-based Surface Descriptor (RSD) */ template<typ...
37.6375
148
0.647957
vbillys
27526103430b6e891e83753413540e0d771ddc63
3,808
hpp
C++
src/common/make-unique.hpp
bsc-ssrg/NORNS
4fd2d181019eceadb8b1b04a94e3756476326239
[ "MIT" ]
2
2019-11-11T11:34:56.000Z
2020-12-08T02:13:48.000Z
src/common/make-unique.hpp
bsc-ssrg/NORNS
4fd2d181019eceadb8b1b04a94e3756476326239
[ "MIT" ]
null
null
null
src/common/make-unique.hpp
bsc-ssrg/NORNS
4fd2d181019eceadb8b1b04a94e3756476326239
[ "MIT" ]
null
null
null
/************************************************************************* * Copyright (C) 2017-2019 Barcelona Supercomputing Center * * Centro Nacional de Supercomputacion * * All rights reserved. * * ...
49.454545
75
0.508666
bsc-ssrg
2753b2c79c89beed8c6ae3d91178e3abc861104c
1,207
cpp
C++
Dynamic Programming/SPOJ M3TILE/Code.cpp
adelnobel/Training-for-ACM-ICPC-problems
8030d24ab3ce1f50821b22647bf9195b41f932b1
[ "MIT" ]
1
2020-03-05T09:09:36.000Z
2020-03-05T09:09:36.000Z
Dynamic Programming/SPOJ M3TILE/Code.cpp
adelnobel/Training-for-ACM-ICPC-problems
8030d24ab3ce1f50821b22647bf9195b41f932b1
[ "MIT" ]
null
null
null
Dynamic Programming/SPOJ M3TILE/Code.cpp
adelnobel/Training-for-ACM-ICPC-problems
8030d24ab3ce1f50821b22647bf9195b41f932b1
[ "MIT" ]
null
null
null
#include <cstring> #include <algorithm> #include <functional> #include <vector> #include <map> #include <set> #include <fstream> #include <stdio.h> #include <iostream> #include <string> #include <sstream> #include <cmath> #include <queue> using namespace std; int arr[31][8]; int n, tot; int solve(int y, int mask) ...
15.474359
60
0.444905
adelnobel
2754756f8bf2f8290f42b63f91c2f5a47a8fc2e8
1,250
cpp
C++
Leetcode/Day040/last_lex_substr.cpp
SujalAhrodia/Practice_2020
59b371ada245ed8253d12327f18deee3e47f31d6
[ "MIT" ]
null
null
null
Leetcode/Day040/last_lex_substr.cpp
SujalAhrodia/Practice_2020
59b371ada245ed8253d12327f18deee3e47f31d6
[ "MIT" ]
null
null
null
Leetcode/Day040/last_lex_substr.cpp
SujalAhrodia/Practice_2020
59b371ada245ed8253d12327f18deee3e47f31d6
[ "MIT" ]
null
null
null
/* first solution (slow but simple) string_view:? The idea is always to store a pair of pointer-to-first-element and size of some existing data array or string. Such a view-handle class could be passed around cheaply by value and would offer cheap substringing operations (which can be implemented as simple pointer ...
21.551724
111
0.4784
SujalAhrodia
275a0511389b782b772b9814035ef0f653abad82
861
cpp
C++
Game/Scorpio/src/PhysicsSimulation/PS_EulerIntegrator.cpp
hackerlank/SourceCode
b702c9e0a9ca5d86933f3c827abb02a18ffc9a59
[ "MIT" ]
4
2021-07-31T13:56:01.000Z
2021-11-13T02:55:10.000Z
Game/Scorpio/src/PhysicsSimulation/PS_EulerIntegrator.cpp
shacojx/SourceCodeGameTLBB
e3cea615b06761c2098a05427a5f41c236b71bf7
[ "MIT" ]
null
null
null
Game/Scorpio/src/PhysicsSimulation/PS_EulerIntegrator.cpp
shacojx/SourceCodeGameTLBB
e3cea615b06761c2098a05427a5f41c236b71bf7
[ "MIT" ]
7
2021-08-31T14:34:23.000Z
2022-01-19T08:25:58.000Z
#include "PS_EulerIntegrator.h" PS_EulerIntegrator::PS_EulerIntegrator(void) { } PS_EulerIntegrator::~PS_EulerIntegrator() { } void PS_EulerIntegrator::prepare(size_t count, const PS_Mass* masses, const PS_Motion* motions) { mForces.resize(count, PS_Force::ZERO); } void PS_EulerIntegrator::update(PS_Scalar dt, ...
26.90625
103
0.59698
hackerlank
275e38506dee3dc090ef320fba3ace26c8219c4d
428
cpp
C++
practice/231-power-of-two/LeetCode_231_0144.cpp
manajay/algorithm-list
828b0baed25a743fdb010427f873b29af9587951
[ "MIT" ]
null
null
null
practice/231-power-of-two/LeetCode_231_0144.cpp
manajay/algorithm-list
828b0baed25a743fdb010427f873b29af9587951
[ "MIT" ]
null
null
null
practice/231-power-of-two/LeetCode_231_0144.cpp
manajay/algorithm-list
828b0baed25a743fdb010427f873b29af9587951
[ "MIT" ]
null
null
null
/** 给定一个整数,编写一个函数来判断它是否是 2 的幂次方。 示例 1: 输入: 1 输出: true 解释: 20 = 1 示例 2: 输入: 16 输出: true 解释: 24 = 16 示例 3: 输入: 218 输出: false 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/power-of-two 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。 题解见我的博客 https://www.todayios.com/bit-operation/ * */ class Solution { public: bool i...
12.969697
56
0.61215
manajay
2768b58d8fb23940622e0aded98666695794580e
313
cpp
C++
source/entrypoint.cpp
KaixoCode/Collecto
2d71294c85a906b2c2099a10116389c90ff1beab
[ "MIT" ]
null
null
null
source/entrypoint.cpp
KaixoCode/Collecto
2d71294c85a906b2c2099a10116389c90ff1beab
[ "MIT" ]
null
null
null
source/entrypoint.cpp
KaixoCode/Collecto
2d71294c85a906b2c2099a10116389c90ff1beab
[ "MIT" ]
null
null
null
#include "Controller.hpp" // -------------------------------------------------------------------------- \\ // --------------------------- Entry Point ---------------------------------- \\ // -------------------------------------------------------------------------- \\ void main() { Controller _c; _c.Run(); }
28.454545
80
0.175719
KaixoCode
2769a1b7463a7e8a326925731c3696e0068df4cc
4,977
cpp
C++
ChronicleLogger/src/main/com/sowrov/util/logsystem/format/Html.cpp
sowrov/ChronicleLogger
50678be7e2987211ab976d105fcd8549e5b8744b
[ "Apache-2.0" ]
1
2020-03-05T10:36:48.000Z
2020-03-05T10:36:48.000Z
ChronicleLogger/src/main/com/sowrov/util/logsystem/format/Html.cpp
sowrov/ChronicleLogger
50678be7e2987211ab976d105fcd8549e5b8744b
[ "Apache-2.0" ]
null
null
null
ChronicleLogger/src/main/com/sowrov/util/logsystem/format/Html.cpp
sowrov/ChronicleLogger
50678be7e2987211ab976d105fcd8549e5b8744b
[ "Apache-2.0" ]
null
null
null
#include "Html.h" namespace com { namespace sowrov { namespace util { namespace logsystem { namespace format { std::string Html::getIntroFormat() { std::string intro = "<html><head><title>"; intro += Calendar::getCalendar ().getFormattedDate ("D d F Y H:i:s"); intro += "</title><style type=\"text/css\">\ <!-...
26.194737
134
0.63693
sowrov
276bdc8e3a736de42366e4038a7ba0bd733e1a38
1,942
hpp
C++
include/openpose/utilities/profiler.hpp
meiwanlanjun/openpose
71078eb1b7571789c7589cf6c8de1786c3227a90
[ "DOC", "MIT-CMU" ]
717
2018-10-31T16:52:42.000Z
2022-03-31T16:13:47.000Z
include/openpose/utilities/profiler.hpp
Mainvooid/openpose
e4a021228b5949150c9446e31ec9f36f0f50a21c
[ "DOC", "MIT-CMU" ]
48
2018-11-08T12:16:43.000Z
2020-08-10T00:24:50.000Z
include/openpose/utilities/profiler.hpp
Mainvooid/openpose
e4a021228b5949150c9446e31ec9f36f0f50a21c
[ "DOC", "MIT-CMU" ]
180
2018-10-31T18:41:33.000Z
2022-03-27T23:49:06.000Z
#ifndef OPENPOSE_UTILITIES_PROFILER_HPP #define OPENPOSE_UTILITIES_PROFILER_HPP #include <string> #include <openpose/core/macros.hpp> // Enable PROFILER_ENABLED on Makefile.config in order to use this function. Otherwise nothing will be outputted. // How to use - example: // For GPU - It can only be applied in the m...
42.217391
115
0.647786
meiwanlanjun
276d637d707c22088359eb3ceecf2e402d9aca07
794
cpp
C++
Source/WarpX_py.cpp
ablelly/WarpX
fd031b1cfcb1827a5cd6a4d905fe0ded76693411
[ "BSD-3-Clause-LBNL" ]
1
2019-11-14T19:27:03.000Z
2019-11-14T19:27:03.000Z
Source/WarpX_py.cpp
ablelly/WarpX
fd031b1cfcb1827a5cd6a4d905fe0ded76693411
[ "BSD-3-Clause-LBNL" ]
40
2019-08-30T15:49:07.000Z
2022-03-09T00:57:09.000Z
Source/WarpX_py.cpp
ablelly/WarpX
fd031b1cfcb1827a5cd6a4d905fe0ded76693411
[ "BSD-3-Clause-LBNL" ]
4
2020-04-20T22:29:45.000Z
2020-05-26T21:00:52.000Z
#include <WarpX_py.H> extern "C" { WARPX_CALLBACK_PY_FUNC_0 warpx_py_afterinit = nullptr; WARPX_CALLBACK_PY_FUNC_0 warpx_py_beforeEsolve = nullptr; WARPX_CALLBACK_PY_FUNC_0 warpx_py_afterEsolve = nullptr; WARPX_CALLBACK_PY_FUNC_0 warpx_py_beforedeposition = nullptr; WARPX_CALLBACK_PY_FUNC_0 warpx_...
39.7
66
0.826196
ablelly
276d7a0b38fb6c95d07b4ece92492bda8e71d159
1,157
cpp
C++
verify/verify-yosupo-ds/yosupo-point-add-rectangle-sum-abstruct-range-tree.test.cpp
NachiaVivias/library
73091ddbb00bc59328509c8f6e662fea2b772994
[ "CC0-1.0" ]
69
2020-11-06T05:21:42.000Z
2022-03-29T03:38:35.000Z
verify/verify-yosupo-ds/yosupo-point-add-rectangle-sum-abstruct-range-tree.test.cpp
NachiaVivias/library
73091ddbb00bc59328509c8f6e662fea2b772994
[ "CC0-1.0" ]
21
2020-07-25T04:47:12.000Z
2022-02-01T14:39:29.000Z
verify/verify-yosupo-ds/yosupo-point-add-rectangle-sum-abstruct-range-tree.test.cpp
NachiaVivias/library
73091ddbb00bc59328509c8f6e662fea2b772994
[ "CC0-1.0" ]
9
2020-11-06T11:55:10.000Z
2022-03-20T04:45:31.000Z
#define PROBLEM "https://judge.yosupo.jp/problem/point_add_rectangle_sum" #include "../../template/template.hpp" #include "../../data-structure-2d/abstract-range-tree.hpp" #include "../../data-structure/binary-indexed-tree.hpp" #include "../../misc/compress.hpp" #include "../../misc/fastio.hpp" using namespace Nyaan;...
26.906977
73
0.522904
NachiaVivias
2776c904a2808e0d0569acc89a474c47ad01434d
1,507
hpp
C++
src/GameObjects/projectile.hpp
toni-lyttinen/spacedude3
d06a4f80f29a4a88056250d66e63b59e8523c434
[ "MIT" ]
2
2020-01-21T15:05:43.000Z
2020-01-25T17:00:55.000Z
src/GameObjects/projectile.hpp
tlmoni/spacedude3
d06a4f80f29a4a88056250d66e63b59e8523c434
[ "MIT" ]
null
null
null
src/GameObjects/projectile.hpp
tlmoni/spacedude3
d06a4f80f29a4a88056250d66e63b59e8523c434
[ "MIT" ]
null
null
null
#pragma once #include <iostream> #include "gameobject.hpp" struct Bullet { std::string texture; RectHitbox hitbox; int type; float max_speed; float acceleration; float damage; PhysicsVector origin; }; const static Bullet plasma = {"src/Textures/bullet.png", RectHitbox(20.f, 20.f), BULLET,...
36.756098
128
0.693431
toni-lyttinen
27781a44849e2750b62069a2e104de4eb6ac2729
1,993
hpp
C++
src/constants.hpp
kewin1983/transient-pipeline-flow
4ffe0b61d3d40d9bcb82a3743b2c2e403521835d
[ "MIT" ]
1
2021-03-26T03:30:07.000Z
2021-03-26T03:30:07.000Z
src/constants.hpp
kewin1983/transient-pipeline-flow
4ffe0b61d3d40d9bcb82a3743b2c2e403521835d
[ "MIT" ]
null
null
null
src/constants.hpp
kewin1983/transient-pipeline-flow
4ffe0b61d3d40d9bcb82a3743b2c2e403521835d
[ "MIT" ]
null
null
null
#pragma once #include <cmath> /*! * This namespace contains a lot of useful constants. */ namespace constants { //! The ratio of a circle's circumference to its diameter. static const double pi = 4.0*std::atan(1.0); //! The zero point of the Kelvin scale [degrees C]. static const double kelvin = 27...
38.326923
141
0.678374
kewin1983
277b8d26262480bf35b11b120d90411d563f7df1
539
hh
C++
tests/opbox/unit/support/default_config_string.hh
faodel/faodel
ef2bd8ff335433e695eb561d7ecd44f233e58bf0
[ "MIT" ]
2
2019-01-25T21:21:07.000Z
2021-04-29T17:24:00.000Z
tests/opbox/unit/support/default_config_string.hh
faodel/faodel
ef2bd8ff335433e695eb561d7ecd44f233e58bf0
[ "MIT" ]
8
2018-10-09T14:35:30.000Z
2020-09-30T20:09:42.000Z
tests/opbox/unit/support/default_config_string.hh
faodel/faodel
ef2bd8ff335433e695eb561d7ecd44f233e58bf0
[ "MIT" ]
2
2019-04-23T19:01:36.000Z
2021-05-11T07:44:55.000Z
// Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC // (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. #ifndef FAODEL_DEFAULT_CONFIG_STRING_HH #define FAODEL_DEFAULT_CONFIG_STRING_HH std::string default_config_st...
20.730769
76
0.784787
faodel
277e30b013a2c1c3d376d600dca003632d1672b6
2,990
cpp
C++
src/StressTool/StressTool.cpp
Stormancer/sample-server-app
4a91e8e728ead7149b34444ea43217ce47f92529
[ "MIT" ]
1
2021-07-16T15:00:39.000Z
2021-07-16T15:00:39.000Z
src/StressTool/StressTool.cpp
Stormancer/sample-server-app
4a91e8e728ead7149b34444ea43217ce47f92529
[ "MIT" ]
null
null
null
src/StressTool/StressTool.cpp
Stormancer/sample-server-app
4a91e8e728ead7149b34444ea43217ce47f92529
[ "MIT" ]
null
null
null
// StressTool.cpp : Ce fichier contient la fonction 'main'. L'exécution du programme commence et se termine à cet endroit. // #define NOMINMAX #include <iostream> #include "Worker.h" #include "Timer.h" struct Stats { double avg; double max; double min; double successRate; }; Stats stats(std::vector<St...
30.510204
182
0.566221
Stormancer
959ba0553179756cb6956e7fad7691b3c61e99cc
2,127
hpp
C++
stok_contracts/contracts/eosio.stok/include/eosio.stok/eosio.stok.hpp
eoseoul/eosio.stok
cf7bab0b8e171791e3d43fb4870bdfe7ab89fa5b
[ "MIT" ]
null
null
null
stok_contracts/contracts/eosio.stok/include/eosio.stok/eosio.stok.hpp
eoseoul/eosio.stok
cf7bab0b8e171791e3d43fb4870bdfe7ab89fa5b
[ "MIT" ]
null
null
null
stok_contracts/contracts/eosio.stok/include/eosio.stok/eosio.stok.hpp
eoseoul/eosio.stok
cf7bab0b8e171791e3d43fb4870bdfe7ab89fa5b
[ "MIT" ]
null
null
null
/** * @file * @copyright defined in eos/LICENSE.txt */ #pragma once #include <eosio/asset.hpp> #include <eosio/eosio.hpp> #include <string> namespace eosiosystem { class system_contract; } namespace eosio { using std::string; class [[eosio::contract("eosio.stok")]] token : public contract { pu...
27.623377
105
0.550071
eoseoul
959d81edd183bb9a596cbea777ff1aa0d4e7b3bc
5,875
cpp
C++
test/test-window-function.cpp
rimio/specgram
4b9517a148bcd6f47cc2f20a83355093811cc04b
[ "MIT" ]
4
2020-12-29T21:52:57.000Z
2022-02-07T09:44:37.000Z
test/test-window-function.cpp
rimio/specgram
4b9517a148bcd6f47cc2f20a83355093811cc04b
[ "MIT" ]
24
2020-12-29T20:23:09.000Z
2021-11-01T14:01:20.000Z
test/test-window-function.cpp
rimio/specgram
4b9517a148bcd6f47cc2f20a83355093811cc04b
[ "MIT" ]
1
2021-09-22T12:39:59.000Z
2021-09-22T12:39:59.000Z
/* * Copyright (c) 2020-2021 Vasile Vilvoiu <vasi@vilvoiu.ro> * * specgram is free software; you can redistribute it and/or modify * it under the terms of the MIT license. See LICENSE for details. */ #include "test.hpp" #include "../src/window-function.hpp" #include <list> static std::vector<WindowFunctionType> A...
43.843284
90
0.573447
rimio
95a689c4b863d71f1f66bdafa9d52396ad7db715
1,150
cpp
C++
t/60-merged-option.cpp
ih8celery/liboptparse
60d323718eae934be2da42a5dbf6a64cb2353966
[ "MIT" ]
3
2018-06-20T14:57:19.000Z
2018-09-27T11:41:01.000Z
t/60-merged-option.cpp
ih8celery/libcmdparse
60d323718eae934be2da42a5dbf6a64cb2353966
[ "MIT" ]
null
null
null
t/60-merged-option.cpp
ih8celery/libcmdparse
60d323718eae934be2da42a5dbf6a64cb2353966
[ "MIT" ]
null
null
null
/** * \file 60-merged-option.cpp * \author Adam Marshall (ih8celery) * \brief test the use of merged options */ #define WANT_TEST_EXTRAS #include <tap++.h> #include "cmdparse.h" using namespace TAP; using namespace cli; int main() { Command cmd; Info info; cmd.configure("merged_opt"); cmd.option("d|-du...
19.491525
82
0.586957
ih8celery
95a8b06db8ec20151c319e31f3996d5a29473036
33,263
cpp
C++
3dc/avp/savegame.cpp
Melanikus/AvP
9d61eb974a23538e32bf2ef1b738643a018935a0
[ "BSD-3-Clause" ]
null
null
null
3dc/avp/savegame.cpp
Melanikus/AvP
9d61eb974a23538e32bf2ef1b738643a018935a0
[ "BSD-3-Clause" ]
null
null
null
3dc/avp/savegame.cpp
Melanikus/AvP
9d61eb974a23538e32bf2ef1b738643a018935a0
[ "BSD-3-Clause" ]
null
null
null
#include "3dc.h" #include "inline.h" #include "module.h" #include "strategy_def.h" #include "gamedef.h" #include "bh_types.h" #include "compiled_shapes.h" #include "dynblock.h" #include "bh_alien.h" #include "pvisible.h" #include "bh_predator.h" #include "bh_xeno.h" #include "bh_paq.h" #include "bh_queen.h" #include "b...
24.767684
141
0.759312
Melanikus
95ae9fea11011ae96794eb16b7cf9972115530ca
807
cpp
C++
src/chapter_07_concurrency/problem_062_parallel_minmax_with_threads.cpp
rturrado/TheModernCppChallenge
648284fb417b6aaa43c21ea2b12a5a21c8cb9269
[ "MIT" ]
null
null
null
src/chapter_07_concurrency/problem_062_parallel_minmax_with_threads.cpp
rturrado/TheModernCppChallenge
648284fb417b6aaa43c21ea2b12a5a21c8cb9269
[ "MIT" ]
null
null
null
src/chapter_07_concurrency/problem_062_parallel_minmax_with_threads.cpp
rturrado/TheModernCppChallenge
648284fb417b6aaa43c21ea2b12a5a21c8cb9269
[ "MIT" ]
null
null
null
#include "chapter_07_concurrency/problem_062_parallel_minmax_with_threads.h" #include "parallel_minmax.h" #include <ostream> #include <vector> void problem_62_main(std::ostream& os) { parallel_minmax( os, [](auto first, auto last) { return tmcppc::algorithm::thread::parallel_min(first, last); }, ...
35.086957
131
0.739777
rturrado
95afe1b3093151b40e79f796de05d780d4aae00e
14,529
cpp
C++
gui/ctrl/std_dialogs.cpp
r3dl3g/guipp
3d3179be3022935b46b59f1b988a029abeabfcbf
[ "MIT" ]
null
null
null
gui/ctrl/std_dialogs.cpp
r3dl3g/guipp
3d3179be3022935b46b59f1b988a029abeabfcbf
[ "MIT" ]
null
null
null
gui/ctrl/std_dialogs.cpp
r3dl3g/guipp
3d3179be3022935b46b59f1b988a029abeabfcbf
[ "MIT" ]
null
null
null
/** * @copyright (c) 2016-2021 Ing. Buero Rothfuss * Riedlinger Str. 8 * 70327 Stuttgart * Germany * http://www.rothfuss-web.de * * @author <a href="mailto:armin@rothfuss-web.de">Armin Rothfuss</a> * * Projec...
40.358333
162
0.527015
r3dl3g
95b0af0fd0dcf58558a4436ff5802b7fae3edc04
79
cpp
C++
cppcheck/data/c_files/81.cpp
awsm-research/LineVul
246baf18c1932094564a10c9b81efb21914b2978
[ "MIT" ]
2
2022-03-23T12:16:20.000Z
2022-03-31T06:19:40.000Z
cppcheck/data/c_files/81.cpp
awsm-research/LineVul
246baf18c1932094564a10c9b81efb21914b2978
[ "MIT" ]
null
null
null
cppcheck/data/c_files/81.cpp
awsm-research/LineVul
246baf18c1932094564a10c9b81efb21914b2978
[ "MIT" ]
null
null
null
bool Block::IsInvisible() const { return bool(int(m_flags & 0x08) != 0); }
15.8
42
0.632911
awsm-research
95c70abfe86f45087ff11e71a2ed265c2c81e27d
2,730
hh
C++
src/GSPH/Policies/PureReplaceFieldList.hh
jmikeowen/Spheral
3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
22
2018-07-31T21:38:22.000Z
2020-06-29T08:58:33.000Z
src/GSPH/Policies/PureReplaceFieldList.hh
jmikeowen/Spheral
3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
17
2020-01-05T08:41:46.000Z
2020-09-18T00:08:32.000Z
src/GSPH/Policies/PureReplaceFieldList.hh
jmikeowen/Spheral
3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
7
2019-12-01T07:00:06.000Z
2020-09-15T21:12:39.000Z
//---------------------------------Spheral++----------------------------------// // PureReplaceFieldList -- replaces one fieldlists values with those of // another specified by its key // // J.M. Pearl 2022 //----------------------------------------------------------------------------// #ifnde...
43.333333
225
0.672894
jmikeowen
95cb7d81d7bfdeb835c76c529c37cbd9f95d214b
188
hpp
C++
Server/include/conn/Connection.hpp
BartekBanachowicz/distributed-matrix-multiplication
af9022284bc364640414973b0e6dee4b5a6373bc
[ "MIT" ]
null
null
null
Server/include/conn/Connection.hpp
BartekBanachowicz/distributed-matrix-multiplication
af9022284bc364640414973b0e6dee4b5a6373bc
[ "MIT" ]
null
null
null
Server/include/conn/Connection.hpp
BartekBanachowicz/distributed-matrix-multiplication
af9022284bc364640414973b0e6dee4b5a6373bc
[ "MIT" ]
null
null
null
#pragma once #include <string> #include <conn/Type.hpp> namespace mm_server::conn { struct Connection { Type type = Type::unassigned; std::string address; }; }
13.428571
37
0.62234
BartekBanachowicz
95d5535cfa001fd4e859fa243fc413192a221ec9
5,472
cpp
C++
src/core/imported/rdf/rdfg/src/rdfg.cpp
GPUOpen-Drivers/pal
bcec463efe5260776d486a5e3da0c549bc0a75d2
[ "MIT" ]
268
2017-12-22T11:03:10.000Z
2022-03-31T15:37:31.000Z
src/core/imported/rdf/rdfg/src/rdfg.cpp
GPUOpen-Drivers/pal
bcec463efe5260776d486a5e3da0c549bc0a75d2
[ "MIT" ]
79
2017-12-22T12:26:52.000Z
2022-03-30T13:06:30.000Z
src/core/imported/rdf/rdfg/src/rdfg.cpp
GPUOpen-Drivers/pal
bcec463efe5260776d486a5e3da0c549bc0a75d2
[ "MIT" ]
92
2017-12-22T12:21:16.000Z
2022-03-29T22:34:17.000Z
/* *********************************************************************************************************************** * * 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 ...
32.963855
120
0.552814
GPUOpen-Drivers
95d98baa7b1353c2b43c127d3ab27c82591d2496
127
cpp
C++
tensorflow-yolo-ios/dependencies/eigen/doc/snippets/Cwise_times_equal.cpp
initialz/tensorflow-yolo-face-ios
ba74cf39168d0128e91318e65a1b88ce4d65a167
[ "MIT" ]
27
2017-06-07T19:07:32.000Z
2020-10-15T10:09:12.000Z
tensorflow-yolo-ios/dependencies/eigen/doc/snippets/Cwise_times_equal.cpp
initialz/tensorflow-yolo-face-ios
ba74cf39168d0128e91318e65a1b88ce4d65a167
[ "MIT" ]
3
2017-08-25T17:39:46.000Z
2017-11-18T03:40:55.000Z
tensorflow-yolo-ios/dependencies/eigen/doc/snippets/Cwise_times_equal.cpp
initialz/tensorflow-yolo-face-ios
ba74cf39168d0128e91318e65a1b88ce4d65a167
[ "MIT" ]
10
2017-06-16T18:04:45.000Z
2018-07-05T17:33:01.000Z
version https://git-lfs.github.com/spec/v1 oid sha256:a4b326b5770327f2e387ada112e34935d3142a19898ce83a28cb9d9d783811e5 size 55
31.75
75
0.88189
initialz
95dfc67653c8b1d38e15cadd7b238cefebd3bf69
2,217
cpp
C++
practical_2/main.cpp
40330977/Games_Engineering_1
3a01f8fb31707cdabe657a7900992b8624ec38b7
[ "MIT" ]
null
null
null
practical_2/main.cpp
40330977/Games_Engineering_1
3a01f8fb31707cdabe657a7900992b8624ec38b7
[ "MIT" ]
null
null
null
practical_2/main.cpp
40330977/Games_Engineering_1
3a01f8fb31707cdabe657a7900992b8624ec38b7
[ "MIT" ]
null
null
null
#include <iostream> #include <SFML/Graphics.hpp> #include "ship.h" #include "bullet.h" #include "game.h" using namespace sf; using namespace std; sf::Texture spritesheet; sf::Sprite invader; std::vector<Ship *> ships; Player *player = new Player(); //void Load(); //const int gameWidth = 800; //const int gameHei...
18.788136
105
0.644114
40330977
95e03477843c64cc266c3ed2526d625bcd91774a
94
cpp
C++
cppevents/src/subject.cpp
rcktscnc/examples
e46b154eac17405a3bc8fc401150692e74559c6d
[ "MIT" ]
null
null
null
cppevents/src/subject.cpp
rcktscnc/examples
e46b154eac17405a3bc8fc401150692e74559c6d
[ "MIT" ]
null
null
null
cppevents/src/subject.cpp
rcktscnc/examples
e46b154eac17405a3bc8fc401150692e74559c6d
[ "MIT" ]
null
null
null
#include <subject.h> util::lambda_event<std::string, const std::string&> Subject::on_request;
31.333333
72
0.755319
rcktscnc
95e072ffb7f9663cf31f5b25802362e929955853
13,139
cpp
C++
src/gui/selection_details_widget/net_details_widget.cpp
citypw/hal
c906c8fc34b8623533725d240aebcbce2d5a1c68
[ "MIT" ]
null
null
null
src/gui/selection_details_widget/net_details_widget.cpp
citypw/hal
c906c8fc34b8623533725d240aebcbce2d5a1c68
[ "MIT" ]
null
null
null
src/gui/selection_details_widget/net_details_widget.cpp
citypw/hal
c906c8fc34b8623533725d240aebcbce2d5a1c68
[ "MIT" ]
1
2020-01-09T23:38:55.000Z
2020-01-09T23:38:55.000Z
#include "selection_details_widget/net_details_widget.h" #include "gui_globals.h" #include "netlist/gate.h" #include "netlist/module.h" #include "netlist/net.h" #include <QHeaderView> #include <QLabel> #include <QScrollArea> #include <QTableWidget> #include <QTableWidgetItem> #include <QTreeWidget> #include <QTreeWidge...
34.216146
120
0.690464
citypw
95e361c29eb913675d83f9c703d85280ce907cba
3,840
cpp
C++
Source/GA/GAPowerUp.cpp
JackHarb89/ga2014
2d63e0f423ede52071605039a64eed4db792cb43
[ "Apache-2.0" ]
1
2015-04-09T20:19:27.000Z
2015-04-09T20:19:27.000Z
Source/GA/GAPowerUp.cpp
JackHarb89/ga2014
2d63e0f423ede52071605039a64eed4db792cb43
[ "Apache-2.0" ]
null
null
null
Source/GA/GAPowerUp.cpp
JackHarb89/ga2014
2d63e0f423ede52071605039a64eed4db792cb43
[ "Apache-2.0" ]
null
null
null
#include "GA.h" #include "GAPowerUp.h" #include "GACharacter.h" #include "GAAudioManager.h" #include "Net/UnrealNetwork.h" AGAPowerUp::AGAPowerUp(const class FPostConstructInitializeProperties& PCIP) : Super(PCIP) { IsInit = false; IsPowerUpActive = false; EffectRadius = 1000; IsAffectingAll =...
27.234043
122
0.710156
JackHarb89
95ec51983ce99aaaf24d5de3db3adf3945136adc
1,220
cpp
C++
src/euler/046.cpp
mikf/euler
2d202c51518b9383731417ffc70cfb71980b1822
[ "Unlicense" ]
1
2015-04-11T20:52:30.000Z
2015-04-11T20:52:30.000Z
src/euler/046.cpp
mikf/euler
2d202c51518b9383731417ffc70cfb71980b1822
[ "Unlicense" ]
null
null
null
src/euler/046.cpp
mikf/euler
2d202c51518b9383731417ffc70cfb71980b1822
[ "Unlicense" ]
null
null
null
#include "euler.h" #include "math/primes.h" #include "util/range.h" #include <array> using namespace util; using namespace math; // It was proposed by Christian Goldbach that every odd composite number can be // written as the sum of a prime and twice a square. // // 9 = 7 + 2 × 1^2 // 15 = 7 + 2 × 2^2 //...
20.677966
79
0.527869
mikf
95ecda8aca6846c47981609cdaac10e2d3d768ed
166
cc
C++
build/x86/python/m5/internal/param_InvalidateGenerator.i_init.cc
billionshang/gem5
18cc4294f32315595f865d07d1f33434e92b06b2
[ "BSD-3-Clause" ]
null
null
null
build/x86/python/m5/internal/param_InvalidateGenerator.i_init.cc
billionshang/gem5
18cc4294f32315595f865d07d1f33434e92b06b2
[ "BSD-3-Clause" ]
1
2020-08-20T05:53:30.000Z
2020-08-20T05:53:30.000Z
build/X86_MESI_Two_Level/python/m5/internal/param_InvalidateGenerator.i_init.cc
hoho20000000/gem5-fy
b59f6feed22896d6752331652c4d8a41a4ca4435
[ "BSD-3-Clause" ]
null
null
null
#include "sim/init.hh" extern "C" { void init_param_InvalidateGenerator(); } EmbeddedSwig embed_swig_param_InvalidateGenerator(init_param_InvalidateGenerator);
20.75
82
0.813253
billionshang
95ed620dedca8c3757674b9d11e426bf4fb8c919
5,478
hpp
C++
include/assets/metadata/MeshMetadata.hpp
manvis/IYFEngine
741a8d0dcc9b3e3ff8a8adb92850633523516604
[ "BSD-3-Clause" ]
5
2018-07-03T17:05:43.000Z
2020-02-03T00:23:46.000Z
include/assets/metadata/MeshMetadata.hpp
manvis/IYFEngine
741a8d0dcc9b3e3ff8a8adb92850633523516604
[ "BSD-3-Clause" ]
null
null
null
include/assets/metadata/MeshMetadata.hpp
manvis/IYFEngine
741a8d0dcc9b3e3ff8a8adb92850633523516604
[ "BSD-3-Clause" ]
null
null
null
// The IYFEngine // // Copyright (C) 2015-2018, Manvydas Šliamka // // Redistribution and use in source and binary forms, with or without modification, are // permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, this list of // condi...
38.307692
108
0.654984
manvis
95f126b7246e8e060d8c92783e8a66ed6839b1d4
2,380
cpp
C++
src/Discovery.cpp
moostrik/ofxVimba
ba34a2da27eb4d1fe418e27b29889fb71351cf02
[ "MIT" ]
null
null
null
src/Discovery.cpp
moostrik/ofxVimba
ba34a2da27eb4d1fe418e27b29889fb71351cf02
[ "MIT" ]
null
null
null
src/Discovery.cpp
moostrik/ofxVimba
ba34a2da27eb4d1fe418e27b29889fb71351cf02
[ "MIT" ]
1
2022-01-28T15:49:19.000Z
2022-01-28T15:49:19.000Z
#include "Discovery.h" using namespace ofxVimba; Discovery::Discovery() : logger("Discovery"), system(System::getInstance()){}; Discovery::~Discovery() { stop(); } bool Discovery::start() { if (!SP_ISNULL(observer)) return true; if (!system->isAvailable()) { logger.error("Failed to set up discovery, system u...
27.356322
78
0.680252
moostrik
95f2e59cb10f0abbdb9086c92fdbcd7542559025
3,075
cc
C++
atmosphere/measurement/measured_atmosphere_test.cc
IanMaquignaz/clear-sky-models
a8168f6b17b817c0fd76eb819f01a75be728f3b8
[ "BSD-3-Clause" ]
78
2016-12-28T05:05:03.000Z
2022-03-21T21:54:44.000Z
atmosphere/measurement/measured_atmosphere_test.cc
IanMaquignaz/clear-sky-models
a8168f6b17b817c0fd76eb819f01a75be728f3b8
[ "BSD-3-Clause" ]
4
2017-11-25T00:34:19.000Z
2020-09-30T13:02:27.000Z
atmosphere/measurement/measured_atmosphere_test.cc
IanMaquignaz/clear-sky-models
a8168f6b17b817c0fd76eb819f01a75be728f3b8
[ "BSD-3-Clause" ]
22
2017-04-25T14:36:06.000Z
2022-03-21T21:54:58.000Z
/** Copyright (c) 2015 Eric Bruneton All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follo...
45.895522
79
0.734959
IanMaquignaz
2501ab5ba286ec1983407e0257a9a59a3be056b0
355
hpp
C++
Code/include/OE/Misc/MatrixStack.hpp
mlomb/OrbitEngine
41f053626f05782e81c2e48f5c87b04972f9be2c
[ "Apache-2.0" ]
21
2018-06-26T16:37:36.000Z
2022-01-11T01:19:42.000Z
Code/include/OE/Misc/MatrixStack.hpp
mlomb/OrbitEngine
41f053626f05782e81c2e48f5c87b04972f9be2c
[ "Apache-2.0" ]
null
null
null
Code/include/OE/Misc/MatrixStack.hpp
mlomb/OrbitEngine
41f053626f05782e81c2e48f5c87b04972f9be2c
[ "Apache-2.0" ]
3
2019-10-01T14:10:50.000Z
2021-11-19T20:30:18.000Z
#ifndef MISC_MAXTRIX_STACK_HPP #define MISC_MAXTRIX_STACK_HPP #include "OE/Misc/BaseStack.hpp" #include "OE/Math/Mat4.hpp" namespace OrbitEngine { namespace Misc { class MatrixStack : public BaseStack<Math::Mat4> { protected: Math::Mat4 nextStack(const Math::Mat4& old, const Math::Mat4& added) override { retur...
22.1875
81
0.732394
mlomb
2504c1b82713e4a3e41321d0090575c5da771c5a
2,639
hpp
C++
libbrufs/include/BuildInfo.hpp
cmpsb/brufs
83a9cc296653f99042190e968a1499b3191dc8d2
[ "MIT" ]
null
null
null
libbrufs/include/BuildInfo.hpp
cmpsb/brufs
83a9cc296653f99042190e968a1499b3191dc8d2
[ "MIT" ]
null
null
null
libbrufs/include/BuildInfo.hpp
cmpsb/brufs
83a9cc296653f99042190e968a1499b3191dc8d2
[ "MIT" ]
null
null
null
/* * Copyright (c) 2017-2018 Luc Everse <luc@wukl.net> * * 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, mod...
31.416667
95
0.687761
cmpsb
25082270c7544b1f5f851861b7ba42e440180e9d
506
cpp
C++
Cpp/1642.furthest-buiding-you-can-reach.cpp
zszyellow/leetcode
2ef6be04c3008068f8116bf28d70586e613a48c2
[ "MIT" ]
1
2015-12-19T23:05:35.000Z
2015-12-19T23:05:35.000Z
Cpp/1642.furthest-buiding-you-can-reach.cpp
zszyellow/leetcode
2ef6be04c3008068f8116bf28d70586e613a48c2
[ "MIT" ]
null
null
null
Cpp/1642.furthest-buiding-you-can-reach.cpp
zszyellow/leetcode
2ef6be04c3008068f8116bf28d70586e613a48c2
[ "MIT" ]
null
null
null
class Solution { public: int furthestBuilding(vector<int>& heights, int bricks, int ladders) { priority_queue<int, vector<int>, greater<int>> pq; for (int i = 0; i < heights.size()-1; ++i) { int diff = heights[i+1] - heights[i]; if (diff > 0) pq.push(diff); if (pq...
31.625
73
0.472332
zszyellow
25086c8647ad5945c4095538770a4f18427f0835
5,278
cc
C++
src/exapi/okex/RestRequest.cc
XFone/exapi
05660e8b27dfa75aa0996342ee5b6b253b09c477
[ "Apache-2.0" ]
1
2020-04-11T06:06:40.000Z
2020-04-11T06:06:40.000Z
src/exapi/okex/RestRequest.cc
XFone/exapi
05660e8b27dfa75aa0996342ee5b6b253b09c477
[ "Apache-2.0" ]
null
null
null
src/exapi/okex/RestRequest.cc
XFone/exapi
05660e8b27dfa75aa0996342ee5b6b253b09c477
[ "Apache-2.0" ]
null
null
null
/* * $Id: $ * * RestRequest class implementation for OKex * * Copyright (c) 2014-2018 Zerone.IO . All rights reserved. * * $Log: $ * */ #include "Base.h" #include "Log.h" #include "Trace.h" #include "DumpFunc.h" #include "JsonUtils.h" #include "HttpRestClient.h" #include "detail/RestClientImpl_restbed.ipp" ...
29.819209
124
0.616142
XFone
25131105a35af07b15da8a84e14c0c77966ac966
951
hh
C++
CaloReco/inc/CaloPulseCache.hh
bonventre/Offline
77db9d6368f27ab9401c690c2c2a4257ade6c231
[ "Apache-2.0" ]
1
2021-06-25T00:00:12.000Z
2021-06-25T00:00:12.000Z
CaloReco/inc/CaloPulseCache.hh
bonventre/Offline
77db9d6368f27ab9401c690c2c2a4257ade6c231
[ "Apache-2.0" ]
1
2019-11-22T14:45:51.000Z
2019-11-22T14:50:03.000Z
CaloReco/inc/CaloPulseCache.hh
bonventre/Offline
77db9d6368f27ab9401c690c2c2a4257ade6c231
[ "Apache-2.0" ]
2
2019-10-14T17:46:58.000Z
2020-03-30T21:05:15.000Z
#ifndef CaloPulseCache_HH #define CaloPulseCache_HH #include "ConditionsService/inc/CalorimeterCalibrations.hh" #include <vector> #include <string> namespace mu2e { class CaloPulseCache { public: CaloPulseCache(); ~CaloPulseCache() {}; void initialize(); double eval...
23.195122
74
0.504732
bonventre
2515e6be572b70e77fa5b63453caeb2d6fe283de
1,216
cpp
C++
src/sampapi/0.3.7-R3-1/CAudio.cpp
kin4stat/SAMP-API
94eb9a0d8218038b7ea0c1132e37b6420e576dbf
[ "MIT" ]
25
2020-01-02T06:13:58.000Z
2022-03-15T12:23:04.000Z
src/sampapi/0.3.7-R3-1/CAudio.cpp
kin4stat/SAMP-API
94eb9a0d8218038b7ea0c1132e37b6420e576dbf
[ "MIT" ]
null
null
null
src/sampapi/0.3.7-R3-1/CAudio.cpp
kin4stat/SAMP-API
94eb9a0d8218038b7ea0c1132e37b6420e576dbf
[ "MIT" ]
29
2019-07-07T15:37:03.000Z
2022-02-23T18:36:16.000Z
/* This is a SAMP (0.3.7-R3) API project file. Developer: LUCHARE <luchare.dev@gmail.com> See more here https://github.com/LUCHARE/SAMP-API Copyright (c) 2018 BlastHack Team <BlastHack.Net>. All rights reserved. */ #include "sampapi/0.3.7-R3-1/CAudio.h" SAMPAPI_BEGIN_V037R3_1 int CAudio::GetRadioStation() { ...
25.87234
92
0.708882
kin4stat
25161296d9797000ef0ce7470c3df6f98ec192cc
1,284
cpp
C++
SLL/base.cpp
ddeflyer/CodeExamples
5f8951f394025c263a5090f4c9c6e88026a571b2
[ "Apache-2.0" ]
null
null
null
SLL/base.cpp
ddeflyer/CodeExamples
5f8951f394025c263a5090f4c9c6e88026a571b2
[ "Apache-2.0" ]
null
null
null
SLL/base.cpp
ddeflyer/CodeExamples
5f8951f394025c263a5090f4c9c6e88026a571b2
[ "Apache-2.0" ]
null
null
null
#include "base.hpp" #include <iostream> template <typename T> void SinglyLinkedList<T>::pretty_print() { std::shared_ptr<typename SinglyLinkedList<T>::element> curr_ele = this->head; while (curr_ele) { std::cout << curr_ele->value << "\n"; curr_ele = curr_ele->next; } } template <typename T> void S...
22.526316
79
0.665109
ddeflyer
2516ec480e66bb2f10d8984dcbe30143d50a2130
65
cpp
C++
Source/RTS/Plugins/RTSPlugin/Source/RTSPlugin/Private/RTSFloatingCombatTextData.cpp
ajbetteridge/ue4-rts
d7923fa694f6b6a04d8301a65019f85512fcb359
[ "MIT" ]
3
2020-08-24T03:36:07.000Z
2021-12-28T03:40:02.000Z
Source/RTS/Plugins/RTSPlugin/Source/RTSPlugin/Private/RTSFloatingCombatTextData.cpp
ajbetteridge/ue4-rts
d7923fa694f6b6a04d8301a65019f85512fcb359
[ "MIT" ]
null
null
null
Source/RTS/Plugins/RTSPlugin/Source/RTSPlugin/Private/RTSFloatingCombatTextData.cpp
ajbetteridge/ue4-rts
d7923fa694f6b6a04d8301a65019f85512fcb359
[ "MIT" ]
1
2019-10-20T10:08:29.000Z
2019-10-20T10:08:29.000Z
#include "RTSPluginPCH.h" #include "RTSFloatingCombatTextData.h"
21.666667
38
0.815385
ajbetteridge
2518b47eee18e22b4b8c2914ad012ed02e8387e6
956
cpp
C++
src/ntfs_streams/shaker.cpp
shtirlitz-dev/ntfs_file_stream
a537efcf7e6ec9b8807c74d3bea2c82a4255719c
[ "MIT" ]
2
2020-02-25T11:00:47.000Z
2021-12-30T11:44:04.000Z
src/ntfs_streams/shaker.cpp
shtirlitz-dev/ntfs_file_stream
a537efcf7e6ec9b8807c74d3bea2c82a4255719c
[ "MIT" ]
null
null
null
src/ntfs_streams/shaker.cpp
shtirlitz-dev/ntfs_file_stream
a537efcf7e6ec9b8807c74d3bea2c82a4255719c
[ "MIT" ]
null
null
null
#include "pch.h" #include "shaker.h" #include <utility> Shaker::Shaker(const uint8_t* key20) { for (int i = 0; i < 32; ++i) enc_seq[i] = i; // shuffle uint8_t k; // current key byte int bits = 0; // remaining bits in k; for (int i = 0; i < 32; ++i) { int n = 0; if (bits >= 5) { n = k; k >>= 5; b...
18.037736
80
0.533473
shtirlitz-dev
2519ccf5e254205ab5d2bc97f14a12a5c01e82b7
213
cpp
C++
fcpp/palindromes_count1.cpp
iddoroshenko/Team-Reference-document-ICPC-2019
6c2146e2598ccf91d556201c4672063344ba0aae
[ "MIT" ]
null
null
null
fcpp/palindromes_count1.cpp
iddoroshenko/Team-Reference-document-ICPC-2019
6c2146e2598ccf91d556201c4672063344ba0aae
[ "MIT" ]
null
null
null
fcpp/palindromes_count1.cpp
iddoroshenko/Team-Reference-document-ICPC-2019
6c2146e2598ccf91d556201c4672063344ba0aae
[ "MIT" ]
1
2020-01-10T19:53:06.000Z
2020-01-10T19:53:06.000Z
vector<int> d1 (n); int l=0, r=-1; for (int i=0; i<n; ++i) { int k = (i>r ? 0 : min (d1[l+r-i], r-i)) + 1; while (i+k < n && i-k >= 0 && s[i+k] == s[i-k]) ++k; d1[i] = k--; if (i+k > r) l = i-k, r = i+k; }
23.666667
54
0.380282
iddoroshenko
2520ed840bbe7ea76ba22ed5ff776b592118b930
6,320
cpp
C++
tests/gvar/src_pers/PersTst_src.cpp
TonyBrewer/OpenHT
63898397de4d303ba514d88b621cc91367ffe2a6
[ "BSD-3-Clause" ]
13
2015-02-26T22:46:18.000Z
2020-03-24T11:53:06.000Z
tests/gvar/src_pers/PersTst_src.cpp
PacificBiosciences/OpenHT
63898397de4d303ba514d88b621cc91367ffe2a6
[ "BSD-3-Clause" ]
5
2016-02-25T17:08:19.000Z
2018-01-20T15:24:36.000Z
tests/gvar/src_pers/PersTst_src.cpp
TonyBrewer/OpenHT
63898397de4d303ba514d88b621cc91367ffe2a6
[ "BSD-3-Clause" ]
12
2015-04-13T21:39:54.000Z
2021-01-15T01:00:13.000Z
#include "Ht.h" #include "PersTst.h" // Test global variable references // Test 1R/1W (same module) // 1. tst: MifWr+InstRd (tst) // 2. tst: InstWr+InstRd (tst) // 3. tst: MifWr+InstRd (tst3) // 4. tst: InstWr+InstRd (tst3) // Test...
37.176471
72
0.559019
TonyBrewer
25302d625293e3357e779dce8e54237f98337450
10,075
cc
C++
test/test_ampfat.cc
Ampless/afat
23c76c28e85941cb26d8e6ec5a12a407fa96e7b9
[ "BSD-3-Clause" ]
null
null
null
test/test_ampfat.cc
Ampless/afat
23c76c28e85941cb26d8e6ec5a12a407fa96e7b9
[ "BSD-3-Clause" ]
null
null
null
test/test_ampfat.cc
Ampless/afat
23c76c28e85941cb26d8e6ec5a12a407fa96e7b9
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2012-2013, Nathan Dumont * Copyright (c) 2021, Chris Häußler * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above ...
34.268707
121
0.544318
Ampless
2530948c30a58f72cc1b3a3bd113ffce47d81109
4,243
cpp
C++
src/UiCtlPanelIcon.cpp
codenamecpp/GrimLandsKeeper
a2207e2a459a254cbc703306ef92a09ecf714090
[ "MIT" ]
14
2020-06-27T18:51:41.000Z
2022-03-30T18:20:02.000Z
src/UiCtlPanelIcon.cpp
codenamecpp/GLKeeper
a2207e2a459a254cbc703306ef92a09ecf714090
[ "MIT" ]
1
2020-06-07T09:48:11.000Z
2020-06-07T09:48:11.000Z
src/UiCtlPanelIcon.cpp
codenamecpp/GrimLandsKeeper
a2207e2a459a254cbc703306ef92a09ecf714090
[ "MIT" ]
2
2020-08-27T09:38:10.000Z
2021-08-12T01:17:30.000Z
#include "pch.h" #include "UiCtlPanelIcon.h" #include "GuiButton.h" #include "GuiWidget.h" #include "GuiEvent.h" #include "GuiHelpers.h" #include "GuiPictureBox.h" #include "TexturesManager.h" #include "ScenarioDefs.h" UiCtlPanelIcon::UiCtlPanelIcon(GuiWidget* control) : mControl(control) { debug_...
24.812865
111
0.650955
codenamecpp
2538ad693284afde82b730d555e1d289f6293119
2,523
cpp
C++
Libs/Widgets/ctkCheckableComboBoxEventPlayer.cpp
kraehlit/CTK
6557c5779d20b78f501f1fd6ce1063d0f219cca6
[ "Apache-2.0" ]
515
2015-01-13T05:42:10.000Z
2022-03-29T03:10:01.000Z
Libs/Widgets/ctkCheckableComboBoxEventPlayer.cpp
kraehlit/CTK
6557c5779d20b78f501f1fd6ce1063d0f219cca6
[ "Apache-2.0" ]
425
2015-01-06T05:28:38.000Z
2022-03-08T19:42:18.000Z
Libs/Widgets/ctkCheckableComboBoxEventPlayer.cpp
kraehlit/CTK
6557c5779d20b78f501f1fd6ce1063d0f219cca6
[ "Apache-2.0" ]
341
2015-01-08T06:18:17.000Z
2022-03-29T21:47:49.000Z
/*========================================================================= Library: CTK Copyright (c) Kitware Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.ap...
30.768293
88
0.550535
kraehlit
253afc2de1e8651c9c11b46b49e5ee4496a17265
280
cpp
C++
740-delete-and-earn/740-delete-and-earn.cpp
gupabhi100/Leetcode-
a0bb35c57efb17dc2c5105287582b4f680eacf82
[ "MIT" ]
null
null
null
740-delete-and-earn/740-delete-and-earn.cpp
gupabhi100/Leetcode-
a0bb35c57efb17dc2c5105287582b4f680eacf82
[ "MIT" ]
null
null
null
740-delete-and-earn/740-delete-and-earn.cpp
gupabhi100/Leetcode-
a0bb35c57efb17dc2c5105287582b4f680eacf82
[ "MIT" ]
null
null
null
class Solution { public: int deleteAndEarn(vector<int>& nums) { vector<int> freq(100001, 0); vector<int> dp(100001, 0); for (auto i : nums) freq[i]++; dp[1] = freq[1]; for (int i=2; i<100001; i++) dp[i] = max(dp[i-2]+i*freq[i], dp[i-1]); return dp[100000]; } };
18.666667
44
0.575
gupabhi100
25412176c36e9d7bf64723913dc8f9eeafe78540
1,389
hpp
C++
packages/monte_carlo/collision/native/src/MonteCarlo_CoherentScatteringDistributionFactory.hpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
packages/monte_carlo/collision/native/src/MonteCarlo_CoherentScatteringDistributionFactory.hpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
packages/monte_carlo/collision/native/src/MonteCarlo_CoherentScatteringDistributionFactory.hpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
//---------------------------------------------------------------------------// //! //! \file MonteCarlo_CoherentScatteringDistributionFactory.hpp //! \author Alex Robinson //! \brief The coherent scattering distribution factory base class decl. //! //-----------------------------------------------------------------...
30.866667
79
0.614831
lkersting
8583c6e22ef47140b1e2ff3e088c8453326c855c
11,720
hpp
C++
include/sdl2pp/window.hpp
NathanSWard/sdl2pp
fdf9b009f845957451f16a463c3bb03f890a4d16
[ "Unlicense" ]
null
null
null
include/sdl2pp/window.hpp
NathanSWard/sdl2pp
fdf9b009f845957451f16a463c3bb03f890a4d16
[ "Unlicense" ]
null
null
null
include/sdl2pp/window.hpp
NathanSWard/sdl2pp
fdf9b009f845957451f16a463c3bb03f890a4d16
[ "Unlicense" ]
null
null
null
#pragma once #include <SDL2/SDL.h> #include <SDL2/SDL_syswm.h> #include "enums.hpp" #include "shapes.hpp" #include "surface.hpp" #include "util.hpp" #include <array> #include <cstdint> #include <optional> #include <span> #include <string_view> namespace sdl2 { /** * @brief A wrapper around an SDL_Window structure...
29.59596
135
0.637372
NathanSWard
8589c6b3475d6201acddd28a2c98a5662b2a1c77
6,505
cpp
C++
qws/src/gui/QColorDialog.cpp
keera-studios/hsQt
8aa71a585cbec40005354d0ee43bce9794a55a9a
[ "BSD-2-Clause" ]
42
2015-02-16T19:29:16.000Z
2021-07-25T11:09:03.000Z
qws/src/gui/QColorDialog.cpp
keera-studios/hsQt
8aa71a585cbec40005354d0ee43bce9794a55a9a
[ "BSD-2-Clause" ]
1
2017-11-23T12:49:25.000Z
2017-11-23T12:49:25.000Z
qws/src/gui/QColorDialog.cpp
keera-studios/hsQt
8aa71a585cbec40005354d0ee43bce9794a55a9a
[ "BSD-2-Clause" ]
5
2015-10-15T21:25:30.000Z
2017-11-22T13:18:24.000Z
///////////////////////////////////////////////////////////////////////////// // // File : QColorDialog.cpp // Copyright : (c) David Harley 2010 // Project : qtHaskell // Version : 1.1.4 // Modified : 2010-09-02 17:02:04 // // Warning : this file is machine generate...
40.65625
124
0.655496
keera-studios
858a4f4519b745398dee15976fe27c8611c258fb
11,383
hpp
C++
libraries/protocol/include/deip/protocol/config.hpp
DEIPworld/deip-chain
d3fdcfdde179f700156156ea87522a807ec52532
[ "MIT" ]
1
2021-08-16T12:44:43.000Z
2021-08-16T12:44:43.000Z
libraries/protocol/include/deip/protocol/config.hpp
DEIPworld/deip-chain
d3fdcfdde179f700156156ea87522a807ec52532
[ "MIT" ]
null
null
null
libraries/protocol/include/deip/protocol/config.hpp
DEIPworld/deip-chain
d3fdcfdde179f700156156ea87522a807ec52532
[ "MIT" ]
2
2021-08-16T12:44:46.000Z
2021-12-31T17:09:45.000Z
/* * Copyright (c) 2016 Steemit, Inc., and contributors. */ // clang-format off #pragma once #define DAYS_TO_SECONDS(X) (60*60*24*X) #define DEIP_BLOCKCHAIN_VERSION ( version(0, 1, 0) ) #define DEIP_BLOCKCHAIN_HARDFORK_VERSION ( hardfork_version( DEIP_BLOCKCHAIN_VERSION ) ) #...
47.827731
194
0.685672
DEIPworld
85924ac19abbb0bec4d2afbe86a3eaeaed975a8f
6,538
cpp
C++
Game/Level/StaticObject.cpp
RMDarth/Chewman-Vulkan
7ebd3fb378b78c67844055c5bf1dc51c54a48324
[ "MIT" ]
65
2019-10-22T01:06:07.000Z
2022-03-26T14:41:28.000Z
Game/Level/StaticObject.cpp
heitaoflower/Chewman-Vulkan
dfd4d8b4e58b8a01e5f41f256795ec6e0d2b633e
[ "MIT" ]
9
2019-09-24T15:51:14.000Z
2021-08-19T09:52:03.000Z
Game/Level/StaticObject.cpp
heitaoflower/Chewman-Vulkan
dfd4d8b4e58b8a01e5f41f256795ec6e0d2b633e
[ "MIT" ]
6
2020-01-31T08:51:14.000Z
2021-01-08T05:49:47.000Z
// Chewman Vulkan game // Copyright (c) 2018-2019, Igor Barinov // Licensed under the MIT License #include "StaticObject.h" #include "GameMap.h" #include "GameUtils.h" #include "SVE/Engine.h" #include "SVE/SceneManager.h" #include <glm/gtc/matrix_transform.hpp> #include <Game/Game.h> namespace Chewman { namespace { ...
33.187817
124
0.596666
RMDarth
859684dd686a0f5f8e89deeae650eb9275255a91
279
hpp
C++
Axis/Util/UniqueFile.hpp
hannes-harnisch/Axis
8d57527c855d751ca5267ebcc4ab5d137b4fc51c
[ "MIT" ]
3
2022-02-09T14:59:31.000Z
2022-02-15T21:24:19.000Z
Axis/Util/UniqueFile.hpp
hannes-harnisch/Axis
8d57527c855d751ca5267ebcc4ab5d137b4fc51c
[ "MIT" ]
null
null
null
Axis/Util/UniqueFile.hpp
hannes-harnisch/Axis
8d57527c855d751ca5267ebcc4ab5d137b4fc51c
[ "MIT" ]
null
null
null
#pragma once #include <cstdio> #include <memory> namespace ax { struct FileCloser { void operator()(FILE* file) const { if(file != stdout && file != stderr && file != stdin) std::fclose(file); } }; using UniqueFile = std::unique_ptr<std::FILE, FileCloser>; }
14.684211
59
0.634409
hannes-harnisch
859eed2ff05bb0febf5dccd1eeaa69849df0c39c
170
cpp
C++
chapter 7/exercise /q2.cpp
realme72/beginning
9c6c5abaf675a53f88552dbc7fbf44c6bc94087c
[ "MIT" ]
2
2018-07-01T07:39:44.000Z
2020-05-17T07:26:26.000Z
chapter 7/exercise /q2.cpp
realme72/beginning
9c6c5abaf675a53f88552dbc7fbf44c6bc94087c
[ "MIT" ]
null
null
null
chapter 7/exercise /q2.cpp
realme72/beginning
9c6c5abaf675a53f88552dbc7fbf44c6bc94087c
[ "MIT" ]
null
null
null
#include <stdio.h> int func(int a,int b); int main() { printf("%d\n",func(3,8)); return 0; } int func(int a,int b) { if(a>b) return 1000; return a+func(a+1,b); }
10.625
26
0.582353
realme72
859eee3aac32fe1aa6906db5da3b536a2f615dfc
197
cpp
C++
src/Core/p2/iMemMgr.cpp
stravant/bfbbdecomp
2126be355a6bb8171b850f829c1f2731c8b5de08
[ "OLDAP-2.7" ]
1
2021-01-05T11:28:55.000Z
2021-01-05T11:28:55.000Z
src/Core/p2/iMemMgr.cpp
sonich2401/bfbbdecomp
5f58b62505f8929a72ccf2aa118a1539eb3a5bd6
[ "OLDAP-2.7" ]
null
null
null
src/Core/p2/iMemMgr.cpp
sonich2401/bfbbdecomp
5f58b62505f8929a72ccf2aa118a1539eb3a5bd6
[ "OLDAP-2.7" ]
1
2022-03-30T15:15:08.000Z
2022-03-30T15:15:08.000Z
#include "iMemMgr.h" #include <types.h> // func_800C6360 #pragma GLOBAL_ASM("asm/Core/p2/iMemMgr.s", "iMemInit__Fv") // func_800C646C #pragma GLOBAL_ASM("asm/Core/p2/iMemMgr.s", "iMemExit__Fv")
19.7
59
0.730964
stravant
85a12aba0247ffd375be571961b20fbf6448870d
819
hpp
C++
gloom/src/overkill/graphics_internal/VertexArray.hpp
Stektpotet/gloom
fcb6e031d573be029dd829d8e4fc0a97feb22687
[ "MIT" ]
null
null
null
gloom/src/overkill/graphics_internal/VertexArray.hpp
Stektpotet/gloom
fcb6e031d573be029dd829d8e4fc0a97feb22687
[ "MIT" ]
null
null
null
gloom/src/overkill/graphics_internal/VertexArray.hpp
Stektpotet/gloom
fcb6e031d573be029dd829d8e4fc0a97feb22687
[ "MIT" ]
null
null
null
#pragma once #include <vector> #include <unordered_map> #include <set> #include "../gfx.h" #include "VertexLayout.hpp" class VertexArray { public: VertexArray(); inline bool valid() const { return id != 0; } inline GLuint ID() const { return id; } inline void bind() const { GFX_...
21.552632
71
0.614164
Stektpotet
85a19a7ffebb252504016bcc1c0cfc1c8d49c976
318
hh
C++
Engine/spcImgLoader/imgloaderexport.hh
marcellfischbach/SpiceEngine
e25e1e4145b7afaea9179bb8e33e4d184bd407c4
[ "BSD-3-Clause" ]
null
null
null
Engine/spcImgLoader/imgloaderexport.hh
marcellfischbach/SpiceEngine
e25e1e4145b7afaea9179bb8e33e4d184bd407c4
[ "BSD-3-Clause" ]
1
2021-09-09T12:51:56.000Z
2021-09-09T12:51:56.000Z
Engine/spcImgLoader/imgloaderexport.hh
marcellfischbach/SpiceEngine
e25e1e4145b7afaea9179bb8e33e4d184bd407c4
[ "BSD-3-Clause" ]
null
null
null
#pragma once #ifdef SPC_WIN32 #pragma warning( disable : 4530) #pragma warning( disable : 4577) #ifdef SPC_IMGLOADER_EXPORT #define SPC_IMGLOADER_API __declspec(dllexport) #else #define SPC_IMGLOADER_API __declspec(dllimport) #endif #pragma warning( disable : 4251 ) #else #define SPC_IMGLOADER_API #endif
12.230769
47
0.773585
marcellfischbach
85ab6cc2da48ed398ab6b075e5c1322d88e8fb78
494
hpp
C++
ReactNativeFrontend/ios/Pods/boost/boost/parameter/aux_/preprocessor/nullptr.hpp
Harshitha91/Tmdb-react-native-node
e06e3f25a7ee6946ef07a1f524fdf62e48424293
[ "Apache-2.0" ]
12,278
2015-01-29T17:11:33.000Z
2022-03-31T21:12:00.000Z
ReactNativeFrontend/ios/Pods/boost/boost/parameter/aux_/preprocessor/nullptr.hpp
Harshitha91/Tmdb-react-native-node
e06e3f25a7ee6946ef07a1f524fdf62e48424293
[ "Apache-2.0" ]
9,469
2015-01-30T05:33:07.000Z
2022-03-31T16:17:21.000Z
ReactNativeFrontend/ios/Pods/boost/boost/parameter/aux_/preprocessor/nullptr.hpp
Harshitha91/Tmdb-react-native-node
e06e3f25a7ee6946ef07a1f524fdf62e48424293
[ "Apache-2.0" ]
892
2015-01-29T16:26:19.000Z
2022-03-20T07:44:30.000Z
// Copyright Cromwell D. Enage 2019. // 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 BOOST_PARAMETER_AUX_PREPROCESSOR_NULLPTR_HPP #define BOOST_PARAMETER_AUX_PREPROCESSOR_NULLPTR_HPP #include <boost/con...
26
61
0.815789
Harshitha91
85b1b81d117df35d9173d9d95c947baa3da1ed2a
532
hpp
C++
include/hydro/hydro.hpp
shockazoid/HydroLanguage
25071995477406245911989584cb3e6f036229c0
[ "Apache-2.0" ]
null
null
null
include/hydro/hydro.hpp
shockazoid/HydroLanguage
25071995477406245911989584cb3e6f036229c0
[ "Apache-2.0" ]
null
null
null
include/hydro/hydro.hpp
shockazoid/HydroLanguage
25071995477406245911989584cb3e6f036229c0
[ "Apache-2.0" ]
null
null
null
// // __ __ __ // / / / /__ __ ____/ /_____ ____ // / /_/ // / / // __ // ___// __ \ // / __ // /_/ // /_/ // / / /_/ / // /_/ /_/ \__, / \__,_//_/ \____/ // /____/ // // ...
24.181818
50
0.368421
shockazoid
85b5bd3bb8f7baa70835979541b1636f1fefec08
5,663
cpp
C++
Developments/solidity-develop/test/ExecutionFramework.cpp
jansenbarabona/NFT-Game-Development
49bf6593925123f0212dac13badd609be3866561
[ "MIT" ]
null
null
null
Developments/solidity-develop/test/ExecutionFramework.cpp
jansenbarabona/NFT-Game-Development
49bf6593925123f0212dac13badd609be3866561
[ "MIT" ]
null
null
null
Developments/solidity-develop/test/ExecutionFramework.cpp
jansenbarabona/NFT-Game-Development
49bf6593925123f0212dac13badd609be3866561
[ "MIT" ]
null
null
null
/* This file is part of solidity. solidity 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. solidity is distributed in the hope that i...
29.494792
104
0.70475
jansenbarabona
85b6c729067df7094d1065298dd1895670dabb04
3,522
inl
C++
Library/Sources/Stroika/Foundation/IO/Network/HTTP/Cookie.inl
SophistSolutions/Stroika
f4e5d84767903a054fba0a6b9c7c4bd1aaefd105
[ "MIT" ]
28
2015-09-22T21:43:32.000Z
2022-02-28T01:35:01.000Z
Library/Sources/Stroika/Foundation/IO/Network/HTTP/Cookie.inl
SophistSolutions/Stroika
f4e5d84767903a054fba0a6b9c7c4bd1aaefd105
[ "MIT" ]
98
2015-01-22T03:21:27.000Z
2022-03-02T01:47:00.000Z
Library/Sources/Stroika/Foundation/IO/Network/HTTP/Cookie.inl
SophistSolutions/Stroika
f4e5d84767903a054fba0a6b9c7c4bd1aaefd105
[ "MIT" ]
4
2019-02-21T16:45:25.000Z
2022-02-18T13:40:04.000Z
/* * Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved */ #ifndef _Stroika_Foundation_IO_Network_HTTP_Cookie_inl_ #define _Stroika_Foundation_IO_Network_HTTP_Cookie_inl_ 1 /* ******************************************************************************** ***************************** Implementa...
33.865385
115
0.509938
SophistSolutions
85bca9ce08d3a8a8d75f442430522d43f89be4b3
2,344
cc
C++
sdk/src/utils/FileSystemUtils.cc
OpenInspur/inspur-oss-cpp-sdk
a0932232aaf46aab7c5a2079f72d80cc5d634ba2
[ "Apache-2.0" ]
null
null
null
sdk/src/utils/FileSystemUtils.cc
OpenInspur/inspur-oss-cpp-sdk
a0932232aaf46aab7c5a2079f72d80cc5d634ba2
[ "Apache-2.0" ]
null
null
null
sdk/src/utils/FileSystemUtils.cc
OpenInspur/inspur-oss-cpp-sdk
a0932232aaf46aab7c5a2079f72d80cc5d634ba2
[ "Apache-2.0" ]
null
null
null
#include <string> #include <map> #include <ctime> #include <iostream> #include <inspurcloud/oss/Types.h> #include "FileSystemUtils.h" #include <inspurcloud/oss/Const.h> #ifdef _WIN32 #include <direct.h> #include <io.h> #include <sys/stat.h> #define oss_access(a) ::_access((a), 0) #define oss_mkdir(a) ::_mkdir(a) ...
26.337079
94
0.619881
OpenInspur
85c2bad0effbba401a4515e4912a8c43fc69df8e
1,688
cpp
C++
vui/src/application.cpp
vastamat/vulkan_interface
f4cb382d8943fb11fd24080310a568bffae3ea47
[ "MIT" ]
null
null
null
vui/src/application.cpp
vastamat/vulkan_interface
f4cb382d8943fb11fd24080310a568bffae3ea47
[ "MIT" ]
null
null
null
vui/src/application.cpp
vastamat/vulkan_interface
f4cb382d8943fb11fd24080310a568bffae3ea47
[ "MIT" ]
null
null
null
#include "application.h" #include "graphics.h" #include "window.h" #include "vulkan_renderer.h" #include "timer.h" #include <thread> // Variable Render frame limiter (runs as quick as possible with a set limit) // Must be more than the fixed update, or the sleep will disrupt the fixed timer constexpr int c_MillisPer...
25.19403
81
0.658175
vastamat
85ca0aab118f2a78bf25023241c16507e0001e59
6,607
cc
C++
src/detective.cc
nih-at/ckmame
6315a1e14532f0eb1c64a27c3fb1657f4cb5e39f
[ "BSD-3-Clause" ]
8
2018-01-17T21:21:24.000Z
2020-10-19T18:30:45.000Z
src/detective.cc
nih-at/ckmame
6315a1e14532f0eb1c64a27c3fb1657f4cb5e39f
[ "BSD-3-Clause" ]
2
2018-12-11T06:12:35.000Z
2021-06-20T09:28:44.000Z
src/detective.cc
nih-at/ckmame
6315a1e14532f0eb1c64a27c3fb1657f4cb5e39f
[ "BSD-3-Clause" ]
2
2018-09-18T23:45:22.000Z
2020-02-27T18:32:47.000Z
/* detective.c -- list files from zip archive with headers skipped Copyright (C) 2007-2014 Dieter Baron and Thomas Klausner This file is part of ckmame, a program to check rom sets for MAME. The authors can be contacted at <ckmame@nih.at> Redistribution and use in source and binary forms, with or without ...
29.627803
175
0.621462
nih-at
85ce995fd726e30eea6ed78df7b1fdaa5b661d23
7,856
cpp
C++
Src/webbase/WebKitSensorConnector.cpp
ericblade/luna-sysmgr
82d5d7ced4ba21d3802eb2c8ae063236b6562331
[ "Apache-2.0" ]
3
2018-11-16T14:51:17.000Z
2019-11-21T10:55:24.000Z
Src/webbase/WebKitSensorConnector.cpp
penk/luna-sysmgr
60c7056a734cdb55a718507f3a739839c9d74edf
[ "Apache-2.0" ]
1
2021-02-20T13:12:15.000Z
2021-02-20T13:12:15.000Z
Src/webbase/WebKitSensorConnector.cpp
ericblade/luna-sysmgr
82d5d7ced4ba21d3802eb2c8ae063236b6562331
[ "Apache-2.0" ]
null
null
null
/* @@@LICENSE * * Copyright (c) 2011-2012 Hewlett-Packard Development Company, L.P. * * 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...
25.26045
171
0.627164
ericblade
85d67506cfdcf85dcc9a8a6dec3be654b96bd84f
821
cpp
C++
kernel/gdt/gdt.cpp
Andrej123456789/LockOS
5b95088146ec9c64a575ac099f6d09ccc0fe935b
[ "MIT" ]
25
2021-11-23T12:29:18.000Z
2022-02-28T17:32:21.000Z
kernel/gdt/gdt.cpp
ringwormGO-organization/ringOS
5b95088146ec9c64a575ac099f6d09ccc0fe935b
[ "MIT" ]
25
2021-11-18T09:08:52.000Z
2022-03-18T12:01:37.000Z
kernel/gdt/gdt.cpp
Andrej123456789/ringOS
46848843c41396e7e5c5cb82b5f0f784b3c8ffc9
[ "MIT" ]
4
2021-12-05T14:59:13.000Z
2022-01-22T13:24:16.000Z
#include "gdt.hpp" void create_descriptor() { uint32_t base; uint32_t limit; uint16_t flag; uint64_t descriptor; // Create the high 32 bit segment descriptor = limit & 0x000F0000; // set limit bits 19:16 descriptor |= (flag << 8) & 0x00F0FF00; // set type, p, dpl, s, g, ...
31.576923
101
0.571255
Andrej123456789
85e3050699b0d283afe20e2c292a925f493b6341
9,816
hpp
C++
src/unit_cell/atom_symmetry_class.hpp
simonpp/SIRIUS
f4b5c4810af2a3ea1e67992d65750535227da84b
[ "BSD-2-Clause" ]
1
2019-05-10T08:48:55.000Z
2019-05-10T08:48:55.000Z
src/unit_cell/atom_symmetry_class.hpp
simonpintarelli/SIRIUS
f4b5c4810af2a3ea1e67992d65750535227da84b
[ "BSD-2-Clause" ]
null
null
null
src/unit_cell/atom_symmetry_class.hpp
simonpintarelli/SIRIUS
f4b5c4810af2a3ea1e67992d65750535227da84b
[ "BSD-2-Clause" ]
null
null
null
// Copyright (c) 2013-2016 Anton Kozhevnikov, Thomas Schulthess // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are permitted provided that // the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, ...
32.39604
117
0.687653
simonpp
85e4e7a1af47cb3868fc4915c8817bfeb154ba15
39,760
cpp
C++
ortc/services/cpp/services_DHKeyDomain.cpp
ortclib/ortclib-services-cpp
f770d97044b1ffbff04b61fa1488eedc8ddc66e4
[ "BSD-2-Clause" ]
2
2016-10-12T09:16:32.000Z
2016-10-13T03:49:47.000Z
ortc/services/cpp/services_DHKeyDomain.cpp
ortclib/ortclib-services-cpp
f770d97044b1ffbff04b61fa1488eedc8ddc66e4
[ "BSD-2-Clause" ]
2
2017-11-24T09:18:45.000Z
2017-11-24T09:20:53.000Z
ortc/services/cpp/services_DHKeyDomain.cpp
ortclib/ortclib-services-cpp
f770d97044b1ffbff04b61fa1488eedc8ddc66e4
[ "BSD-2-Clause" ]
null
null
null
/* Copyright (c) 2014, Hookflash Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the fol...
45.44
224
0.617329
ortclib
85e775ca102104c226b60ec5f0442c1e88b31b1d
820
cpp
C++
iceoryx_utils/source/cxx/helplets.cpp
surendra210/iceoryx
f964c2435f65585784b2d77af0ce39f88670fb36
[ "Apache-2.0" ]
null
null
null
iceoryx_utils/source/cxx/helplets.cpp
surendra210/iceoryx
f964c2435f65585784b2d77af0ce39f88670fb36
[ "Apache-2.0" ]
null
null
null
iceoryx_utils/source/cxx/helplets.cpp
surendra210/iceoryx
f964c2435f65585784b2d77af0ce39f88670fb36
[ "Apache-2.0" ]
1
2020-04-06T04:56:24.000Z
2020-04-06T04:56:24.000Z
#include "iceoryx_utils/cxx/helplets.hpp" namespace iox { namespace cxx { void* alignedAlloc(const uint64_t alignment, const uint64_t size) noexcept { // -1 == since the max alignment addition is alignment - 1 otherwise the // memory is already aligned and we have to do nothing uint64_t memory = reinterpre...
26.451613
95
0.678049
surendra210
85ead77ea53a923e8bf2340f8691d7658f844f7c
479
cc
C++
unit_tests/test_hash_table.cc
maihd/riku
daca9172f4ee0e303060796e86859247e4306dcc
[ "Unlicense" ]
2
2019-03-22T05:01:03.000Z
2020-05-07T11:26:03.000Z
unit_tests/test_hash_table.cc
maihd/riku
daca9172f4ee0e303060796e86859247e4306dcc
[ "Unlicense" ]
null
null
null
unit_tests/test_hash_table.cc
maihd/riku
daca9172f4ee0e303060796e86859247e4306dcc
[ "Unlicense" ]
null
null
null
// Copyright (c) 2019, MaiHD. All right reversed. // License: Unlicensed #include <riku/hash_table.h> #include "./unit_test.h" TEST_CASE("HashTable", "[hash_table]") { HashTable<int> hash_table; REQUIRE(hash_table.set(10, 10)); REQUIRE(hash_table.set(11, 10)); REQUIRE(hash_table.set(12, 10)); REQ...
23.95
49
0.655532
maihd
85f19483070af937ed75b8f665717cf6aee2daab
932
hpp
C++
tmpl/stack5assign.hpp
angusoutlook/OOProgrammingInCpp
42c66b2652d4814e4f8b31d060189bd853cce416
[ "FSFAP" ]
null
null
null
tmpl/stack5assign.hpp
angusoutlook/OOProgrammingInCpp
42c66b2652d4814e4f8b31d060189bd853cce416
[ "FSFAP" ]
null
null
null
tmpl/stack5assign.hpp
angusoutlook/OOProgrammingInCpp
42c66b2652d4814e4f8b31d060189bd853cce416
[ "FSFAP" ]
null
null
null
/* The following code example is taken from the book * "Object-Oriented Programming in C++" * by Nicolai M. Josuttis, Wiley, 2002 * * (C) Copyright Nicolai M. Josuttis 2002. * Permission to copy, use, modify, sell and distribute this software * is granted provided this copyright notice appears in all copies. * T...
33.285714
75
0.633047
angusoutlook
85f817c640d1d8ffefc8eceef637c85ec48697db
1,771
cpp
C++
gp/core/GameEngine.cpp
kymani37299/GraphicsPlayground
f39eac719d7473d2c99255c7a600d52507921728
[ "MIT" ]
null
null
null
gp/core/GameEngine.cpp
kymani37299/GraphicsPlayground
f39eac719d7473d2c99255c7a600d52507921728
[ "MIT" ]
null
null
null
gp/core/GameEngine.cpp
kymani37299/GraphicsPlayground
f39eac719d7473d2c99255c7a600d52507921728
[ "MIT" ]
null
null
null
#include "GameEngine.h" #include <chrono> #include "Common.h" #include "core/Window.h" #include "core/Renderer.h" #include "core/Controller.h" #include "core/Loading.h" #include "gfx/GfxDevice.h" namespace GP { LoadingThread* g_LoadingThread; PoisonPillTask* PoisonPillTask::s_Instance = nullptr; GameEngine::Game...
18.642105
76
0.689441
kymani37299
c803a5fbdef106b5d5e4328258d52d493bcdd90a
532
cpp
C++
tests/filesystem/get_umask.cpp
sugawaray/filemanager
3dcb908d4c1e0c36de0c60e1b2e1291eec986cb1
[ "MIT" ]
null
null
null
tests/filesystem/get_umask.cpp
sugawaray/filemanager
3dcb908d4c1e0c36de0c60e1b2e1291eec986cb1
[ "MIT" ]
null
null
null
tests/filesystem/get_umask.cpp
sugawaray/filemanager
3dcb908d4c1e0c36de0c60e1b2e1291eec986cb1
[ "MIT" ]
null
null
null
#include <sys/types.h> #include <sys/stat.h> #include <filesystem.h> #include "get_umask.h" using fs::get_umask; START_TEST(should_get_umask) { mode_t m(get_umask()); mode_t expected(umask(0)); fail_unless(m == expected, "value 1"); umask(expected); get_umask(); m = get_umask(); fail_unless(m == expected, "va...
16.121212
45
0.699248
sugawaray
659fab3988ab51597ab3392e29f2e90b410c6056
990
cpp
C++
luogu/problems/P3174.cpp
songhn233/ACM_Steps
6f2edeca9bf4fc999a8148bc90b2d8d0e59d48fe
[ "CC0-1.0" ]
1
2020-08-10T21:40:21.000Z
2020-08-10T21:40:21.000Z
luogu/problems/P3174.cpp
songhn233/Algorithm-Packages
56d6f3c2467c175ab8a19b82bdfb25fc881e2206
[ "CC0-1.0" ]
null
null
null
luogu/problems/P3174.cpp
songhn233/Algorithm-Packages
56d6f3c2467c175ab8a19b82bdfb25fc881e2206
[ "CC0-1.0" ]
null
null
null
#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int maxn=600050; int n,m; int f[maxn]; int head[maxn],num,ans; struct node{ int v,nex; }e[maxn]; inline int read() { int x=0,t=1;char ch=getchar(); while(ch>'9'||ch<'0'){if(ch=='-')t=-1;ch=getchar();} while(ch>='0'&...
16.229508
65
0.566667
songhn233
65a60c1e7871a26a1b12748387f5dce3eec8f220
956
cpp
C++
c++/leetcode/0463-Island_Perimeter-E.cpp
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
1
2020-03-02T10:56:22.000Z
2020-03-02T10:56:22.000Z
c++/leetcode/0463-Island_Perimeter-E.cpp
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
null
null
null
c++/leetcode/0463-Island_Perimeter-E.cpp
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
null
null
null
// 463 Island Perimeter // https://leetcode.com/problems/island-perimeter // version: 1; create time: 2020-02-08 15:48:08; class Solution { public: int islandPerimeter(vector<vector<int>>& grid) { int perimeter = 0; for (int i = 0; i < grid.size(); ++i) { for (int j = 0; j < grid[0].siz...
34.142857
92
0.365063
levendlee
65a733433c0e7f437e72975fca0ce5767a723e03
3,391
cpp
C++
src/plugins/dbusmanager/tasks.cpp
MellonQ/leechcraft
71cbb238d2dade56b3865278a6a8e6a58c217fc5
[ "BSL-1.0" ]
1
2017-01-12T07:05:45.000Z
2017-01-12T07:05:45.000Z
src/plugins/dbusmanager/tasks.cpp
MellonQ/leechcraft
71cbb238d2dade56b3865278a6a8e6a58c217fc5
[ "BSL-1.0" ]
null
null
null
src/plugins/dbusmanager/tasks.cpp
MellonQ/leechcraft
71cbb238d2dade56b3865278a6a8e6a58c217fc5
[ "BSL-1.0" ]
null
null
null
/********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2006-2014 Georg Rudoy * * Boost Software License - Version 1.0 - August 17th, 2003 * * Permission is hereby granted, free of charge, to any person or organiz...
33.91
78
0.688293
MellonQ
65aa362ec6d9b7d97a8d5eb1893a58dc4d2a3ddd
894
cpp
C++
arti_base_control/test/test_wheel.cpp
ARTI-Robots/base_control
858edf33452ee6058b77299dc0e32ea7d7028778
[ "BSD-2-Clause" ]
null
null
null
arti_base_control/test/test_wheel.cpp
ARTI-Robots/base_control
858edf33452ee6058b77299dc0e32ea7d7028778
[ "BSD-2-Clause" ]
null
null
null
arti_base_control/test/test_wheel.cpp
ARTI-Robots/base_control
858edf33452ee6058b77299dc0e32ea7d7028778
[ "BSD-2-Clause" ]
null
null
null
// // Created by abuchegger on 08.07.18. // #include <gtest/gtest.h> #include <cmath> #include <memory> #include <arti_base_control/steering.h> #include <arti_base_control/wheel.h> TEST(WheelTest, SimpleFrontWheelTest) { const arti_base_control::Wheel wheel(1.0, 0.0, 0.0, 0.5, std::make_shared<arti_base_control::Ide...
35.76
125
0.695749
ARTI-Robots
65acad13067b8ba75d80e2e38ed286736746ad85
840
cpp
C++
lib/test/AddressTest.cpp
glbwsk/oop
7856a909bfdd197dc13c0f6945ef9c6e00aaa889
[ "MIT" ]
1
2020-07-02T17:16:29.000Z
2020-07-02T17:16:29.000Z
lib/test/AddressTest.cpp
glbwsk/oop
7856a909bfdd197dc13c0f6945ef9c6e00aaa889
[ "MIT" ]
null
null
null
lib/test/AddressTest.cpp
glbwsk/oop
7856a909bfdd197dc13c0f6945ef9c6e00aaa889
[ "MIT" ]
1
2021-05-28T13:13:19.000Z
2021-05-28T13:13:19.000Z
#include <boost/test/unit_test.hpp> #include "Address.hpp" /* Unit tests for Adress.hpp */ /* correct */ BOOST_AUTO_TEST_SUITE( AddressSuiteCorrect ) BOOST_AUTO_TEST_CASE( ctor_default ) { Address newAddress1; BOOST_CHECK_EQUAL( newAddress1.getStreet(), "null" ); BOOST_CHECK_EQUAL( newAddress...
28.965517
63
0.695238
glbwsk
65ba7bd9b3e2f7083f5f5fc2ffa8c9d9f3c1a275
1,258
cc
C++
examples/boil/test/test.cc
BvB93/noodles
7547471baa18a11b8020c017388a7e208d194ef4
[ "Apache-2.0" ]
22
2016-07-26T20:42:08.000Z
2022-02-08T16:04:25.000Z
examples/boil/test/test.cc
BvB93/noodles
7547471baa18a11b8020c017388a7e208d194ef4
[ "Apache-2.0" ]
71
2015-12-24T18:44:32.000Z
2022-02-11T11:31:08.000Z
examples/boil/test/test.cc
BvB93/noodles
7547471baa18a11b8020c017388a7e208d194ef4
[ "Apache-2.0" ]
8
2016-12-22T10:14:28.000Z
2020-06-05T21:01:51.000Z
#include "test.hh" #include <iostream> #include <sstream> int __assert_fail(std::string const &expr, std::string const &file, int lineno) { std::ostringstream oss; oss << file << ":" << lineno << ": Assertion failed: " << expr; throw oss.str(); return 0; } std::unique_ptr<std::map<std::string, Test co...
20.290323
79
0.605723
BvB93
65bc96015615bc4e8c669184bd1bb2b8efb0839d
2,237
cpp
C++
src/pd/dm300.cpp
mtribiere/Pixel-dungeon-CPP
ed930aaeefd1f08eed73ced928acae6e1fe34fa4
[ "MIT" ]
null
null
null
src/pd/dm300.cpp
mtribiere/Pixel-dungeon-CPP
ed930aaeefd1f08eed73ced928acae6e1fe34fa4
[ "MIT" ]
null
null
null
src/pd/dm300.cpp
mtribiere/Pixel-dungeon-CPP
ed930aaeefd1f08eed73ced928acae6e1fe34fa4
[ "MIT" ]
null
null
null
#include "dm300.h" #include "mobsprite.h" #include "dungeon.h" #include "statistics.h" #include "terrain.h" #include "glog.h" #include "cellemitter.h" #include "speck.h" #include "gamescene.h" #include "hero.h" CharSprite* DM300::Sprite() { return new DM300Sprite(); } Mob* DM300::CreateDM300() { r...
20.153153
74
0.604828
mtribiere
65c6c290347b74ee5c793d221cf5b1185a7ff330
4,131
hpp
C++
lib/include/drivers/spi/detail/write_dma.hpp
niclasberg/asfw
f836de1c0d6350541e3253863dedab6a3eb81df7
[ "MIT" ]
null
null
null
lib/include/drivers/spi/detail/write_dma.hpp
niclasberg/asfw
f836de1c0d6350541e3253863dedab6a3eb81df7
[ "MIT" ]
null
null
null
lib/include/drivers/spi/detail/write_dma.hpp
niclasberg/asfw
f836de1c0d6350541e3253863dedab6a3eb81df7
[ "MIT" ]
null
null
null
#pragma once #include "async/receiver.hpp" #include "async/sender.hpp" #include "async/scheduler.hpp" #include "drivers/dma/dma_concepts.hpp" #include "drivers/dma/dma_signal.hpp" #include "../spi_error.hpp" #include <array> #include "delegate.hpp" #include "reg/bit_is_set.hpp" namespace drivers::spi::detail { te...
30.6
119
0.567417
niclasberg
65cc1feeba9da9203c3d9f35aeca46d8f72c56e8
2,437
cpp
C++
DesignPatern/src/Behavioral/Visitor/file_visitor.cpp
behnamasadi/design_pattern
461d5bf75f5528ef9f01102299c0387b623d0d7c
[ "BSD-3-Clause" ]
3
2019-07-20T06:22:32.000Z
2020-05-31T07:49:06.000Z
DesignPatern/src/Behavioral/Visitor/file_visitor.cpp
behnamasadi/design_pattern
461d5bf75f5528ef9f01102299c0387b623d0d7c
[ "BSD-3-Clause" ]
null
null
null
DesignPatern/src/Behavioral/Visitor/file_visitor.cpp
behnamasadi/design_pattern
461d5bf75f5528ef9f01102299c0387b623d0d7c
[ "BSD-3-Clause" ]
1
2020-05-31T02:00:08.000Z
2020-05-31T02:00:08.000Z
#include <iostream> #include <vector> class AbstractDispatcher; // Forward declare AbstractDispatcher class File { // Parent class for the elements (ArchivedFile, SplitFile and // ExtractedFile) public: // This function accepts an object of any class derived from // AbstractDispatcher and must be...
27.077778
75
0.704555
behnamasadi
65d338d6ab14ae8801e0e50658e11f0462e1f430
176
cpp
C++
sources/main.cpp
LemuriiL/Lab8HTTP-Part2
858a86294f2edbf38c45f6d5b8335d49ef18ea89
[ "MIT" ]
null
null
null
sources/main.cpp
LemuriiL/Lab8HTTP-Part2
858a86294f2edbf38c45f6d5b8335d49ef18ea89
[ "MIT" ]
null
null
null
sources/main.cpp
LemuriiL/Lab8HTTP-Part2
858a86294f2edbf38c45f6d5b8335d49ef18ea89
[ "MIT" ]
null
null
null
// Copyright 2021 LemuriiL <nice.duble@mail.ru> #include <Client.hpp> int main(int argc, [[maybe_unused]] char **argv) { Client A(argc, argv); return A.clientRequest(); }
22
50
0.6875
LemuriiL
65d41b74fb202447f45e4e7d4f8b06628d4c7734
4,546
cpp
C++
lmeditor/src/app/states/gui.cpp
Lawrencemm/LM-Engine
9c5e59e64e2a5a24c347538fa49046ab5a88d1f5
[ "MIT" ]
40
2020-03-13T06:12:11.000Z
2022-01-16T21:05:34.000Z
lmeditor/src/app/states/gui.cpp
Lawrencemm/LM-Engine
9c5e59e64e2a5a24c347538fa49046ab5a88d1f5
[ "MIT" ]
31
2020-02-09T06:25:12.000Z
2021-12-31T04:37:08.000Z
lmeditor/src/app/states/gui.cpp
Lawrencemm/LM-Engine
9c5e59e64e2a5a24c347538fa49046ab5a88d1f5
[ "MIT" ]
2
2020-03-13T06:12:12.000Z
2020-11-21T15:41:17.000Z
#include "../app.h" #include <lmeditor/model/selection.h> #include <lmlib/variant_visitor.h> #include <lmng/name.h> #include <lmtk/char_field.h> namespace lmeditor { bool editor_app::gui_state::handle( editor_app &app, lmtk::input_event const &input_event) { if ( input_event >> lm::variant_visitor{...
31.79021
80
0.481082
Lawrencemm
65dd99af9cfd4a51ce7538639e44547cb1d1ff16
9,100
cc
C++
src/router/inputoutputqueued/Router.cc
hkustliqi/SuperSim
7cff887d485b784c99b37b78a7adaedb4fde8da6
[ "Apache-2.0" ]
null
null
null
src/router/inputoutputqueued/Router.cc
hkustliqi/SuperSim
7cff887d485b784c99b37b78a7adaedb4fde8da6
[ "Apache-2.0" ]
null
null
null
src/router/inputoutputqueued/Router.cc
hkustliqi/SuperSim
7cff887d485b784c99b37b78a7adaedb4fde8da6
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2016 Hewlett Packard Enterprise Development LP * * 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 a...
36.25498
79
0.705934
hkustliqi
65de98f78a21794106a94efe619f9eb38e4b70ef
4,575
hpp
C++
src/elx_conv_wino_trans_weights.hpp
weizix/Deep-learning-math-kernel-research
383db01893d81872e2129a8c060dbe61934910d8
[ "Apache-2.0" ]
33
2019-06-13T00:45:58.000Z
2021-12-15T08:17:21.000Z
src/elx_conv_wino_trans_weights.hpp
uyongw/Deep-learning-math-kernel-research
6d65b8f2df7ab6d6db8f02066dae8bc59691ae58
[ "Apache-2.0" ]
2
2019-09-19T04:31:05.000Z
2019-10-21T10:16:00.000Z
src/elx_conv_wino_trans_weights.hpp
uyongw/Deep-learning-math-kernel-research
6d65b8f2df7ab6d6db8f02066dae8bc59691ae58
[ "Apache-2.0" ]
25
2019-08-30T05:39:36.000Z
2022-03-17T04:32:14.000Z
#pragma once #include "euler.hpp" #include "el_def.hpp" #include "el_utils.hpp" #include "elx_conv.hpp" #include "kernel/elk_conv_wino.hpp" #include "kernel/elk_conv_wino_2x2_3x3_weights.hxx" #include "kernel/elk_conv_wino_3x3_3x3_weights.hxx" #include "kernel/elk_conv_wino_4x4_3x3_weights.hxx" #include "kernel/elk_c...
32.21831
82
0.738798
weizix
65deaa11ff9f18bed58c8a1da8da4bd74dfcd015
462
hpp
C++
shapes/Thing.hpp
PabloMorenoUm/Projekt
ebd5b4bfbd5da0e86ade850ce0cd701e8eff2e83
[ "MIT" ]
null
null
null
shapes/Thing.hpp
PabloMorenoUm/Projekt
ebd5b4bfbd5da0e86ade850ce0cd701e8eff2e83
[ "MIT" ]
9
2021-06-30T14:58:40.000Z
2021-08-22T22:36:31.000Z
shapes/Thing.hpp
PabloMorenoUm/Projekt
ebd5b4bfbd5da0e86ade850ce0cd701e8eff2e83
[ "MIT" ]
null
null
null
// // Created by Pablo Moreno Um on 22.07.21. // #ifndef PROJEKT_THING_HPP #define PROJEKT_THING_HPP #include "Basic.hpp" class Thing: public Basic { protected: sf::Vector2f m_Position; void setPosition(const float& posX, const float& posY); public: Thing(); Thing(const float &posX, const float &posY...
20.086957
77
0.701299
PabloMorenoUm
65ebcf03b15d0b9a4a8e3199da0aab79e039dfb2
1,443
cpp
C++
src/hybrid_a_star_planner.cpp
JialiangHan/path_planner
2a995f6527872e6bd0e3fe6c9a6e0e2744a2de29
[ "BSD-3-Clause" ]
null
null
null
src/hybrid_a_star_planner.cpp
JialiangHan/path_planner
2a995f6527872e6bd0e3fe6c9a6e0e2744a2de29
[ "BSD-3-Clause" ]
null
null
null
src/hybrid_a_star_planner.cpp
JialiangHan/path_planner
2a995f6527872e6bd0e3fe6c9a6e0e2744a2de29
[ "BSD-3-Clause" ]
null
null
null
#include <pluginlib/class_list_macros.h> #include "hybrid_a_star_planner.h" // register this planner as a BaseGlobalPlanner plugin PLUGINLIB_EXPORT_CLASS(HybridAStar::HybridAStarPlanner, nav_core::BaseGlobalPlanner) using namespace std; // Default Constructor namespace HybridAStar { HybridAStarPlanner::HybridAS...
30.0625
165
0.656272
JialiangHan