hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
108
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
330k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
0.99
author_id
stringlengths
2
40
6699f1c26ec120757725350b3486fceea61819c9
489
cpp
C++
chapter2/LinkList/practice/Search_K.cpp
verfallen/wang-dao
ac25e16010f675fa3cee9fe07de394d111ff61f5
[ "MIT" ]
null
null
null
chapter2/LinkList/practice/Search_K.cpp
verfallen/wang-dao
ac25e16010f675fa3cee9fe07de394d111ff61f5
[ "MIT" ]
null
null
null
chapter2/LinkList/practice/Search_K.cpp
verfallen/wang-dao
ac25e16010f675fa3cee9fe07de394d111ff61f5
[ "MIT" ]
null
null
null
#include <stdio.h> #include <stdbool.h> #include <stdlib.h> #include <iostream> using namespace std; /** * 2.3节 21题 * 思路:定义p,q 两个指针 相差k,当p指向尾结点时,q指向倒数第k个结点 */ typedef struct LNode { int data; LNode *Link; } LNode, *LinkList; int Search_X(LinkList L, int k) { LNode *p = L->Link, *q; int count = 0; while ...
13.971429
40
0.564417
verfallen
669c2a2a22e4a849d9f5328f1bcd57d44dee6cb1
1,167
cpp
C++
vbox/src/VBox/NetworkServices/Dhcpd/TimeStamp.cpp
Nurzamal/rest_api_docker
a9cc01dfc235467d490d9663755b33ef6990bdd8
[ "MIT" ]
null
null
null
vbox/src/VBox/NetworkServices/Dhcpd/TimeStamp.cpp
Nurzamal/rest_api_docker
a9cc01dfc235467d490d9663755b33ef6990bdd8
[ "MIT" ]
null
null
null
vbox/src/VBox/NetworkServices/Dhcpd/TimeStamp.cpp
Nurzamal/rest_api_docker
a9cc01dfc235467d490d9663755b33ef6990bdd8
[ "MIT" ]
null
null
null
/* $Id: TimeStamp.cpp 70836 2018-01-31 14:55:44Z vboxsync $ */ /** @file * DHCP server - timestamps */ /* * Copyright (C) 2017-2018 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute ...
31.540541
81
0.666667
Nurzamal
669ec1ce9734b66f47aceae90ed46923043f9497
4,157
hpp
C++
stapl_release/stapl/runtime/immutable_shared.hpp
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
stapl_release/stapl/runtime/immutable_shared.hpp
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
stapl_release/stapl/runtime/immutable_shared.hpp
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
/* // Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a // component of the Texas A&M University System. // All rights reserved. // The information and source code contained herein is the exclusive // property of TEES and may not be disclosed, examined or reproduced // in whole or in part withou...
26.647436
80
0.620159
parasol-ppl
66a1909d52bf9cd1f3642a73ab453ebaa4e5ef9f
3,384
cpp
C++
src/cube/src/syntax/cubepl/CubePL0Driver.cpp
OpenCMISS-Dependencies/cube
bb425e6f75ee5dbdf665fa94b241b48deee11505
[ "Cube" ]
null
null
null
src/cube/src/syntax/cubepl/CubePL0Driver.cpp
OpenCMISS-Dependencies/cube
bb425e6f75ee5dbdf665fa94b241b48deee11505
[ "Cube" ]
null
null
null
src/cube/src/syntax/cubepl/CubePL0Driver.cpp
OpenCMISS-Dependencies/cube
bb425e6f75ee5dbdf665fa94b241b48deee11505
[ "Cube" ]
2
2016-09-19T00:16:05.000Z
2021-03-29T22:06:45.000Z
/**************************************************************************** ** CUBE http://www.scalasca.org/ ** ***************************************************************************** ** Copyright (c) 1998-2016 ** ** Fors...
28.677966
114
0.568262
OpenCMISS-Dependencies
66a4b30447dfe20b2fab17a11a44a32c5e02122c
2,381
cpp
C++
src/kitchen.cpp
skvark/JuveFood
fed694f93ca2998a3cf77f0d83e246bb272ffcbf
[ "MIT" ]
1
2015-02-05T20:00:04.000Z
2015-02-05T20:00:04.000Z
src/kitchen.cpp
skvark/JuveFood
fed694f93ca2998a3cf77f0d83e246bb272ffcbf
[ "MIT" ]
null
null
null
src/kitchen.cpp
skvark/JuveFood
fed694f93ca2998a3cf77f0d83e246bb272ffcbf
[ "MIT" ]
1
2019-07-03T12:13:37.000Z
2019-07-03T12:13:37.000Z
#include "kitchen.h" #include <QDebug> Kitchen::Kitchen(unsigned int kitchenId, unsigned int kitchenInfoId, unsigned int openInfoId, unsigned int menuTypeId, QString name, QString shortName): kitchenId_(kitchenId), ...
29.7625
89
0.636287
skvark
66a5894397b27f269470b3163bf8479836b1ba61
169
cpp
C++
Spades Game/Game/CardView/CardEventListener.cpp
jmasterx/StemwaterSpades
05e5d7c6d380d2f5986bd91269887f16c3e71962
[ "Unlicense" ]
6
2017-01-04T22:40:50.000Z
2019-11-24T15:37:46.000Z
Spades Game/Game/CardView/CardEventListener.cpp
jmasterx/StemwaterSpades
05e5d7c6d380d2f5986bd91269887f16c3e71962
[ "Unlicense" ]
1
2016-09-18T19:10:01.000Z
2017-08-04T23:53:38.000Z
Spades Game/Game/CardView/CardEventListener.cpp
jmasterx/StemwaterSpades
05e5d7c6d380d2f5986bd91269887f16c3e71962
[ "Unlicense" ]
2
2015-11-21T16:42:18.000Z
2019-04-21T20:41:39.000Z
#include "Game/CardView/CardEventListener.hpp" namespace cge { CardEventListener::CardEventListener(void) { } CardEventListener::~CardEventListener(void) { } }
12.071429
46
0.751479
jmasterx
66a8770cc6fdb72f5d207cc282d3b380fd2a58e4
573
cpp
C++
main/libs/common/src/network.cpp
ttgc/ThunderSiege6-Chat
1a1601c2d18429baadc3b6d3d0f9b1354246c1f1
[ "MIT" ]
null
null
null
main/libs/common/src/network.cpp
ttgc/ThunderSiege6-Chat
1a1601c2d18429baadc3b6d3d0f9b1354246c1f1
[ "MIT" ]
null
null
null
main/libs/common/src/network.cpp
ttgc/ThunderSiege6-Chat
1a1601c2d18429baadc3b6d3d0f9b1354246c1f1
[ "MIT" ]
null
null
null
#include <algorithm> #include "network.hpp" namespace network { void setNonBlockingSocket(SOCKET& s) { #ifdef _WIN32 u_long nonBlocking = 1; ioctlsocket(s, FIONBIO, &nonBlocking); #else // _WIN32 int flags = fcntl(s, F_GETFL, 0); flags = (flags | O_NONBLOCK); fcntl(s, F_SETFL, flags); #endif ...
20.464286
64
0.636998
ttgc
66a9d84797a5a1b2f533c3b2e2e47d8de382191d
8,405
cc
C++
CCA/Components/Arches/PropertyModelsV2/CCVel.cc
QuocAnh90/Uintah_Aalto
802c236c331b7eb705d408c352969037e4c5b153
[ "MIT" ]
3
2020-06-10T08:21:31.000Z
2020-06-23T18:33:16.000Z
CCA/Components/Arches/PropertyModelsV2/CCVel.cc
QuocAnh90/Uintah_Aalto
802c236c331b7eb705d408c352969037e4c5b153
[ "MIT" ]
null
null
null
CCA/Components/Arches/PropertyModelsV2/CCVel.cc
QuocAnh90/Uintah_Aalto
802c236c331b7eb705d408c352969037e4c5b153
[ "MIT" ]
2
2019-12-30T05:48:30.000Z
2020-02-12T16:24:16.000Z
#include <CCA/Components/Arches/PropertyModelsV2/CCVel.h> #include <CCA/Components/Arches/UPSHelper.h> using namespace Uintah; using namespace ArchesCore; //-------------------------------------------------------------------------------------------------- CCVel::CCVel( std::string task_name, int matl_index ) : TaskIn...
46.181319
124
0.657228
QuocAnh90
66abaeb0cd6e5f14cecc43cc598ea64f44436c40
2,501
cpp
C++
Game/Source/EntityManager.cpp
Hydeon-git/Project2_RPG
bed3f6ba412b4f533d6b8c9e401182259fcb43e5
[ "MIT" ]
4
2021-02-23T20:18:27.000Z
2021-04-17T22:43:01.000Z
Game/Source/EntityManager.cpp
Hydeon-git/Project2_RPG
bed3f6ba412b4f533d6b8c9e401182259fcb43e5
[ "MIT" ]
1
2021-02-25T11:10:11.000Z
2021-02-25T11:10:11.000Z
Game/Source/EntityManager.cpp
Hydeon-git/Project2_RPG
bed3f6ba412b4f533d6b8c9e401182259fcb43e5
[ "MIT" ]
null
null
null
#include "EntityManager.h" #include "Player.h" #include "Enemy.h" #include "FlyingEnemy.h" #include "NPC1.h" #include "NPC2.h" #include "NPC3.h" #include "NPC4.h" #include "NPC5.h" #include "Enemy1.h" #include "Enemy2.h" #include "Enemy3.h" #include "ModuleParticles.h" #include "App.h" #include "Scene.h" #include "De...
18.804511
65
0.664534
Hydeon-git
66ac5ad2a9bea6ff2347c86d4ff84c82f4ae94f8
32,689
cpp
C++
TAO/tao/PortableServer/Active_Object_Map.cpp
cflowe/ACE
5ff60b41adbe1772372d1a43bcc1f2726ff8f810
[ "DOC" ]
36
2015-01-10T07:27:33.000Z
2022-03-07T03:32:08.000Z
TAO/tao/PortableServer/Active_Object_Map.cpp
cflowe/ACE
5ff60b41adbe1772372d1a43bcc1f2726ff8f810
[ "DOC" ]
2
2018-08-13T07:30:51.000Z
2019-02-25T03:04:31.000Z
TAO/tao/PortableServer/Active_Object_Map.cpp
cflowe/ACE
5ff60b41adbe1772372d1a43bcc1f2726ff8f810
[ "DOC" ]
38
2015-01-08T14:12:06.000Z
2022-01-19T08:33:00.000Z
// $Id: Active_Object_Map.cpp 96992 2013-04-11 18:07:48Z huangh $ #include "tao/PortableServer/Active_Object_Map.h" #include "tao/PortableServer/Active_Object_Map_Entry.h" #if !defined (__ACE_INLINE__) # include "tao/PortableServer/Active_Object_Map.inl" #endif /* __ACE_INLINE__ */ #include "tao/SystemException.h" ...
27.150332
96
0.573343
cflowe
66ad1a5b992e32cff0acc9c3e7c85a7e33d4ea7e
3,189
cpp
C++
src/interrupts.cpp
kshitej/HobOs
21cbe04a882389d402f936eaf0e1dd4c15a140be
[ "0BSD" ]
9
2016-07-07T18:12:27.000Z
2022-03-11T06:41:38.000Z
src/interrupts.cpp
solson/spideros
a9c34f3aec10283d5623e821d70c2d9fb5fce843
[ "0BSD" ]
null
null
null
src/interrupts.cpp
solson/spideros
a9c34f3aec10283d5623e821d70c2d9fb5fce843
[ "0BSD" ]
null
null
null
#include "assert.h" #include "interrupts.h" #include "display.h" #include "idt.h" #include "ports.h" // TODO: Deal with the magic numbers in this file. namespace interrupts { template<int n> [[gnu::naked]] void interrupt() { asm volatile("cli"); asm volatile("push %0" : : "i"(n)); asm volatile("jmp interruptCo...
29.803738
79
0.691753
kshitej
66ad2f5ba38ad343a121298d8006a45e31af7c9a
685
cpp
C++
source/Gui/Animation/AnimationHandler.cpp
tillpp/GraphIDE
f88f1ca02a8f9f09fe965b69651ea45fbb1b5d1e
[ "MIT" ]
2
2021-10-10T00:28:03.000Z
2021-11-11T20:33:40.000Z
source/Gui/Animation/AnimationHandler.cpp
tillpp/GraphIDE
f88f1ca02a8f9f09fe965b69651ea45fbb1b5d1e
[ "MIT" ]
null
null
null
source/Gui/Animation/AnimationHandler.cpp
tillpp/GraphIDE
f88f1ca02a8f9f09fe965b69651ea45fbb1b5d1e
[ "MIT" ]
null
null
null
#include "AnimationHandler.h" AnimationHandler::AnimationHandler(GuiComponent& g) :gui(g) { } AnimationHandler::~AnimationHandler() { } Animation* AnimationHandler::createAnimation(std::string name){ if(animations.find(name)!=animations.end()){ return nullptr; } Animation* rv = new Animation(&gui,name); anima...
20.757576
63
0.748905
tillpp
66af9fc1e9530b4bf27d447fb23b1099ea3eac76
2,508
cpp
C++
OpenGL/Lib/source/ShaderLoader.cpp
Hexeption/Dotel
56c3712da58078d7fed6668ed89a7d4c07423d0d
[ "BSD-3-Clause" ]
7
2017-09-26T15:06:20.000Z
2022-01-02T16:35:45.000Z
OpenGL/Lib/source/ShaderLoader.cpp
Hexeption/Dotel
56c3712da58078d7fed6668ed89a7d4c07423d0d
[ "BSD-3-Clause" ]
null
null
null
OpenGL/Lib/source/ShaderLoader.cpp
Hexeption/Dotel
56c3712da58078d7fed6668ed89a7d4c07423d0d
[ "BSD-3-Clause" ]
2
2017-09-02T11:10:25.000Z
2017-09-04T18:09:27.000Z
// // Created by Keirb on 13/11/2017. // #include "ShaderLoader.h" Dotel::ShaderLoader::ShaderLoader(const char *vertexPath, const char *fragmentPath) { vShaderFile.exceptions(std::ifstream::failbit | std::ifstream::badbit); fShaderFile.exceptions(std::ifstream::failbit | std::ifstream::badbit); try ...
27.26087
102
0.600478
Hexeption
66b2ccb790fa0ba656b95c51e46cc07b28f382ad
3,946
hpp
C++
fly/types/concurrency/detail/concurrent_container.hpp
trflynn89/libfly
711352b278314350ffa0d96c48b0af685d9c61b8
[ "MIT" ]
12
2020-12-26T04:40:48.000Z
2022-02-12T17:58:33.000Z
fly/types/concurrency/detail/concurrent_container.hpp
trflynn89/libfly
711352b278314350ffa0d96c48b0af685d9c61b8
[ "MIT" ]
308
2017-09-20T22:19:57.000Z
2022-02-26T00:16:11.000Z
fly/types/concurrency/detail/concurrent_container.hpp
trflynn89/libfly
711352b278314350ffa0d96c48b0af685d9c61b8
[ "MIT" ]
2
2020-12-26T04:41:02.000Z
2021-06-17T18:24:03.000Z
#pragma once #include <chrono> #include <condition_variable> #include <mutex> namespace fly::detail { /** * Wrapper around an STL container to provide thread safe access. * * @author Timothy Flynn (trflynn89@pm.me) * @version July 27, 2016 */ template <typename T, typename Container> class ConcurrentContainer {...
26.306667
100
0.573746
trflynn89
66b539f1171587aeba159dd1f136ed99e95508a5
2,692
cc
C++
math.cc
linyufly/ConjugateGradient
0f160e286fd3282e461adccdc49fb5d27daa463d
[ "MIT" ]
1
2019-05-08T03:36:46.000Z
2019-05-08T03:36:46.000Z
math.cc
linyufly/ConjugateGradient
0f160e286fd3282e461adccdc49fb5d27daa463d
[ "MIT" ]
null
null
null
math.cc
linyufly/ConjugateGradient
0f160e286fd3282e461adccdc49fb5d27daa463d
[ "MIT" ]
null
null
null
// Author: Mingcheng Chen (linyufly@gmail.com) #include "math.h" #include "sparse_matrix.h" #include <cmath> #include <cstdio> #include <algorithm> namespace { const double kEpsilon = 1e-8; // Multiply A^tA with b. void multiply_ata_b( const SparseMatrix &a_trans, const SparseMatrix &a, const double *b, ...
22.621849
78
0.60364
linyufly
66b6221709d6fcd49595b7cdf6de8571f5e71e64
5,543
cpp
C++
src/terrTriDomain.cpp
mnentwig/glTest5
004804482fb5bb72c8f32f50464b7feb8cfa12c3
[ "MIT" ]
null
null
null
src/terrTriDomain.cpp
mnentwig/glTest5
004804482fb5bb72c8f32f50464b7feb8cfa12c3
[ "MIT" ]
null
null
null
src/terrTriDomain.cpp
mnentwig/glTest5
004804482fb5bb72c8f32f50464b7feb8cfa12c3
[ "MIT" ]
null
null
null
#include "terrTriDomain.h" #include "terrTri.h" #include <vector> #include <algorithm> // std::find #include <glm/vec2.hpp> #define GLM_ENABLE_EXPERIMENTAL #include <glm/gtx/intersect.hpp> #include "geomUtils2d.hpp" #include <iostream> terrTriDomain::terrTriDomain(){ this->state_closed = false; } void terrTriDoma...
31.674286
121
0.611041
mnentwig
66b97549d02ce38d4f084c32d7a3ed8d59be8601
6,363
cpp
C++
packages/monte_carlo/collision/native/test/tstAceLaw11NuclearScatteringEnergyDistribution.cpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
packages/monte_carlo/collision/native/test/tstAceLaw11NuclearScatteringEnergyDistribution.cpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
packages/monte_carlo/collision/native/test/tstAceLaw11NuclearScatteringEnergyDistribution.cpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
//---------------------------------------------------------------------------// //! //! \file tstAceLaw5NuclearScatteringEnergyDistribution.cpp //! \author Eli Moll //! \brief Ace law 11 neutron scattering energy distribution unit tests //! //--------------------------------------------------------------------------...
33.666667
116
0.534811
lkersting
66bb25af7ec30d134182e4e14368aa4fccf40ea0
4,249
cpp
C++
VectorTest/Vec3SSE.cpp
albinopapa/VectorTest
bf520ca561a70ef90c3820a797ce60f669693219
[ "MIT" ]
null
null
null
VectorTest/Vec3SSE.cpp
albinopapa/VectorTest
bf520ca561a70ef90c3820a797ce60f669693219
[ "MIT" ]
null
null
null
VectorTest/Vec3SSE.cpp
albinopapa/VectorTest
bf520ca561a70ef90c3820a797ce60f669693219
[ "MIT" ]
null
null
null
#include "Vec3SSE.h" using namespace SSE_Utils::Float4_Utils; Vec3SSE::Vec3SSE() : v(ZeroPS) {} Vec3SSE::Vec3SSE(float S) : v(_mm_set1_ps(S)) // Set all elements to S (S, S, S, S) { // Zero out the last element as it won't be used (v, v, v, 0.0f) //FLOAT4 t = _mm_shuffle_ps(v, _mm_setzero_ps(), _MM_SHUFFLE(0, ...
18.393939
77
0.646976
albinopapa
66bbac435f7a256099554ba9ec37f3814fb5bdef
547
cpp
C++
docs/examples/Bitmap_getAddr32.cpp
mohad12211/skia
042a53aa094715e031ebad4da072524ace316744
[ "BSD-3-Clause" ]
6,304
2015-01-05T23:45:12.000Z
2022-03-31T09:48:13.000Z
docs/examples/Bitmap_getAddr32.cpp
mohad12211/skia
042a53aa094715e031ebad4da072524ace316744
[ "BSD-3-Clause" ]
67
2016-04-18T13:30:02.000Z
2022-03-31T23:06:55.000Z
docs/examples/Bitmap_getAddr32.cpp
mohad12211/skia
042a53aa094715e031ebad4da072524ace316744
[ "BSD-3-Clause" ]
1,231
2015-01-05T03:17:39.000Z
2022-03-31T22:54:58.000Z
// Copyright 2019 Google LLC. // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #include "tools/fiddle/examples.h" // HASH=837a2bcc9fb9ce617a3420956cefc64a REG_FIDDLE(Bitmap_getAddr32, 256, 256, true, 3) { void draw(SkCanvas* canvas) { uint32_t* row0 = source.getAd...
42.076923
100
0.696527
mohad12211
66bc9546b85d0c4f77b87c79cf4bce72b7965ec1
234
c++
C++
10.1.character.c++
Sambitcr-7/DSA-C-
f3c80f54fa6160a99f39a934f330cdf40711de50
[ "Apache-2.0" ]
null
null
null
10.1.character.c++
Sambitcr-7/DSA-C-
f3c80f54fa6160a99f39a934f330cdf40711de50
[ "Apache-2.0" ]
null
null
null
10.1.character.c++
Sambitcr-7/DSA-C-
f3c80f54fa6160a99f39a934f330cdf40711de50
[ "Apache-2.0" ]
null
null
null
#include <iostream> using namespace std; int main() { char arr[100] = "apple"; int i=0; while(arr[i]!='\0') { cout<<arr[i]<<endl; i++; } return 0; }
9.75
29
0.380342
Sambitcr-7
66c438e51bf580136bf8a0c9ec54ee9d9a0180e3
1,192
cpp
C++
Codeforces/GYM/UTPC Contest 10-29-21 Div. 2 (Beginner)/E.cpp
MaGnsio/CP-Problems
a7f518a20ba470f554b6d54a414b84043bf209c5
[ "Unlicense" ]
3
2020-11-01T06:31:30.000Z
2022-02-21T20:37:51.000Z
Codeforces/GYM/UTPC Contest 10-29-21 Div. 2 (Beginner)/E.cpp
MaGnsio/CP-Problems
a7f518a20ba470f554b6d54a414b84043bf209c5
[ "Unlicense" ]
null
null
null
Codeforces/GYM/UTPC Contest 10-29-21 Div. 2 (Beginner)/E.cpp
MaGnsio/CP-Problems
a7f518a20ba470f554b6d54a414b84043bf209c5
[ "Unlicense" ]
1
2021-05-05T18:56:31.000Z
2021-05-05T18:56:31.000Z
/** * author: MaGnsi0 * created: 21.11.2021 15:54:14 **/ #include <bits/stdc++.h> using namespace std; void dfs(vector<vector<int>>& adj, int& x, int& maxd, int v = 0, int curd = 0, int par = -1) { if (curd > maxd) { x = v; maxd = curd; } for (auto& u : adj[v]) { if (u == ...
21.285714
94
0.439597
MaGnsio
66cb64a7e7ab92f4f426ffa12b5634eee9cf3242
4,161
cpp
C++
test/Filesystem.test.cpp
Brett208/nas2d-core
f9506540f32d34f3c60bc83b87b34460d582ae81
[ "Zlib" ]
null
null
null
test/Filesystem.test.cpp
Brett208/nas2d-core
f9506540f32d34f3c60bc83b87b34460d582ae81
[ "Zlib" ]
null
null
null
test/Filesystem.test.cpp
Brett208/nas2d-core
f9506540f32d34f3c60bc83b87b34460d582ae81
[ "Zlib" ]
null
null
null
#include "NAS2D/Filesystem.h" #include <gtest/gtest.h> #include <gmock/gmock.h> TEST(Filesystem, ConstructDestruct) { EXPECT_NO_THROW(NAS2D::Filesystem fs("", "NAS2DUnitTests", "LairWorks")); } class FilesystemTest : public ::testing::Test { protected: static constexpr auto AppName = "NAS2DUnitTests"; static c...
30.595588
85
0.738765
Brett208
66cd26240c0319321dde87beff637e079f6e42fa
1,416
cpp
C++
module-platform/rt1051/src/RT1051Platform.cpp
buk7456/MuditaOS
06ef1e131b27b0f397cc615c96d51bede7050423
[ "BSL-1.0" ]
369
2021-11-10T09:20:29.000Z
2022-03-30T06:36:58.000Z
module-platform/rt1051/src/RT1051Platform.cpp
buk7456/MuditaOS
06ef1e131b27b0f397cc615c96d51bede7050423
[ "BSL-1.0" ]
149
2021-11-10T08:38:35.000Z
2022-03-31T23:01:52.000Z
module-platform/rt1051/src/RT1051Platform.cpp
buk7456/MuditaOS
06ef1e131b27b0f397cc615c96d51bede7050423
[ "BSL-1.0" ]
41
2021-11-10T08:30:37.000Z
2022-03-29T08:12:46.000Z
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include <platform/rt1051/RT1051Platform.hpp> #include "BlockDeviceFactory.hpp" #include <bsp/bsp.hpp> #include <purefs/vfs_subsystem.hpp> #include <exception> #include <Logger.hpp> ...
27.230769
91
0.681497
buk7456
66cd5e1884982ac8ef79ca8479e8f2384f267403
13,977
hpp
C++
glm/detail/type_vec5.hpp
gchunev/Dice4D
f96db406204fdca0155d26db856b66a2afd4e664
[ "MIT" ]
1
2019-05-22T08:53:46.000Z
2019-05-22T08:53:46.000Z
glm/detail/type_vec5.hpp
gchunev/Dice4D
f96db406204fdca0155d26db856b66a2afd4e664
[ "MIT" ]
null
null
null
glm/detail/type_vec5.hpp
gchunev/Dice4D
f96db406204fdca0155d26db856b66a2afd4e664
[ "MIT" ]
null
null
null
/// @ref core /// @file glm/detail/type_vec5.hpp #pragma once #include "qualifier.hpp" #include <cstddef> namespace glm { template<typename T, qualifier Q> struct vec<5, T, Q> { // -- Implementation detail -- typedef T value_type; typedef vec<5, T, Q> type; typedef vec<5, bool, Q> bool_type; // -- Da...
38.717452
110
0.686628
gchunev
66cfd0d171eeeb1358dba701d9c51814d629158d
2,469
cpp
C++
stringext.cpp
AlpsMonaco/BinInCpp
feffcda6ae63b81946aefbaa88dbb1559c22217f
[ "MIT" ]
null
null
null
stringext.cpp
AlpsMonaco/BinInCpp
feffcda6ae63b81946aefbaa88dbb1559c22217f
[ "MIT" ]
null
null
null
stringext.cpp
AlpsMonaco/BinInCpp
feffcda6ae63b81946aefbaa88dbb1559c22217f
[ "MIT" ]
null
null
null
#include "stringext.h" namespace stringext { void ReplaceAll(std::string &s, const std::string &from, const std::string &to) { size_t index = 0; while ((index = s.find(from, index)) != std::string::npos) { s.replace(index, from.length(), to); index += to.length(); } } void ReplaceAll(std::string &s,...
24.69
121
0.603888
AlpsMonaco
66d2e2e4b36375ec233ca1ff385b825f3712d3c7
704
cpp
C++
matu137.cpp
NewtonVan/Fxxk_Y0u_m47u
d303c7f13c074b5462ac8390a9ff94e546099fac
[ "MIT" ]
1
2020-09-26T16:47:16.000Z
2020-09-26T16:47:16.000Z
matu137.cpp
NewtonVan/Fxxk_Y0u_m47u
d303c7f13c074b5462ac8390a9ff94e546099fac
[ "MIT" ]
null
null
null
matu137.cpp
NewtonVan/Fxxk_Y0u_m47u
d303c7f13c074b5462ac8390a9ff94e546099fac
[ "MIT" ]
1
2020-09-26T16:47:40.000Z
2020-09-26T16:47:40.000Z
#include <cstdio> #include <iostream> #include <algorithm> #include <cstring> #include <cmath> using namespace std; class Ctriangle{ double a, b, c; public: Ctriangle(double aa, double bb, double cc) : a(aa), b(bb), c(cc){} Ctriangle(){} void display(); double GetArea(); double GetPerimeter(); }; void Ctriangle...
17.170732
67
0.629261
NewtonVan
202d43b10ae1b8103a0820ce6478817f52ba4094
1,261
cpp
C++
cuda/CudaPartition.cpp
jdinkla/parallel2015_gpucomputing
15654399897d891637bb466bcca0e5aa73c22fce
[ "MIT" ]
1
2020-03-13T18:40:07.000Z
2020-03-13T18:40:07.000Z
cuda/CudaPartition.cpp
jdinkla/parallel2015_gpucomputing
15654399897d891637bb466bcca0e5aa73c22fce
[ "MIT" ]
1
2019-06-09T14:33:31.000Z
2019-06-18T20:35:30.000Z
cuda/CudaPartition.cpp
jdinkla/parallel2015_gpucomputing
15654399897d891637bb466bcca0e5aa73c22fce
[ "MIT" ]
null
null
null
/* * Copyright (c) 2015 by Joern Dinkla, www.dinkla.com, All rights reserved. * * See the LICENSE file in the root directory. */ #include "CudaPartition.h" using namespace std; vector<CudaPartition> calc_partitions(GPUs& gpus, const Extent2& extent) { vector<CudaPartition> partitions; const int nu...
23.792453
132
0.680412
jdinkla
20340d83f323bb09267d40a675a18c7c2f7c80d2
9,849
cpp
C++
windows_agent/TestCollect/SoftwareCollector.cpp
syslist/Syslist
1b8c1051a6423a98bdc09d55904f2de63b3fe95c
[ "MIT" ]
7
2016-08-07T01:11:30.000Z
2021-01-27T11:03:02.000Z
windows_agent/TestCollect/SoftwareCollector.cpp
syslist/Syslist
1b8c1051a6423a98bdc09d55904f2de63b3fe95c
[ "MIT" ]
1
2018-07-02T14:01:04.000Z
2018-07-02T14:01:04.000Z
windows_agent/TestCollect/SoftwareCollector.cpp
syslist/Syslist
1b8c1051a6423a98bdc09d55904f2de63b3fe95c
[ "MIT" ]
6
2016-12-01T02:11:39.000Z
2022-03-26T03:31:27.000Z
#include "stdafx.h" #include "SoftwareCollector.h" #include "KeyDecode.h" #include <sstream> char SW_INFO_PATH[] = "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall"; char SW_MS_OFFICE_PATH[] = "Software\\Microsoft\\Office"; long SW_INFO_PATH_LEN = sizeof (SW_INFO_PATH); char* SWCL_TAG = "SoftwareList...
28.301724
135
0.648797
syslist
2034af4a4cb1026e0b9018e9279b9b6ccf462610
2,168
cpp
C++
Code/Source/Graphics/IBuffer.cpp
christinazavou/Thea
f68293c4a4f5ddc3abda18e2e0b679bcf5163e93
[ "BSD-3-Clause" ]
null
null
null
Code/Source/Graphics/IBuffer.cpp
christinazavou/Thea
f68293c4a4f5ddc3abda18e2e0b679bcf5163e93
[ "BSD-3-Clause" ]
null
null
null
Code/Source/Graphics/IBuffer.cpp
christinazavou/Thea
f68293c4a4f5ddc3abda18e2e0b679bcf5163e93
[ "BSD-3-Clause" ]
null
null
null
//============================================================================ // // This file is part of the Thea toolkit. // // This software is distributed under the BSD license, as detailed in the // accompanying LICENSE.txt file. Portions are derived from other works: // their respective licenses and copyright inf...
61.942857
128
0.673893
christinazavou
203532959ca2a192bf9409770eb25396ad402125
1,599
cpp
C++
window.cpp
lewez/zombie-game
fdfefc312aaac4848a025c150e0862ca37a71fca
[ "MIT" ]
1
2019-04-26T12:57:05.000Z
2019-04-26T12:57:05.000Z
window.cpp
lewez/zombie-game
fdfefc312aaac4848a025c150e0862ca37a71fca
[ "MIT" ]
null
null
null
window.cpp
lewez/zombie-game
fdfefc312aaac4848a025c150e0862ca37a71fca
[ "MIT" ]
null
null
null
/* MIT License Copyright (c) 2019 Lewis Clark Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di...
29.611111
78
0.762977
lewez
2038570c3414f4bccef2da6105fff771dbe0df27
3,083
cpp
C++
p2p/xxx/peer_storage.cpp
akhavr/beam
99e427f6ba0a0ee1a0dbe598d0fa6d642e571d62
[ "Apache-2.0" ]
null
null
null
p2p/xxx/peer_storage.cpp
akhavr/beam
99e427f6ba0a0ee1a0dbe598d0fa6d642e571d62
[ "Apache-2.0" ]
null
null
null
p2p/xxx/peer_storage.cpp
akhavr/beam
99e427f6ba0a0ee1a0dbe598d0fa6d642e571d62
[ "Apache-2.0" ]
null
null
null
// Copyright 2018 The Beam Team // // 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 agre...
24.862903
86
0.600389
akhavr
20388f158cc23ef911a497dc1b64adcf0711815a
8,863
cxx
C++
main/configmgr/source/broadcaster.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/configmgr/source/broadcaster.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/configmgr/source/broadcaster.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
34.756863
80
0.66851
Grosskopf
203a1e29d6c664f030bff9cd2c44a3894a036e38
193
hpp
C++
libs/numeric/mtl/examples/gdbinit_example.hpp
lit-uriy/mtl4-mirror
37cf7c2847165d3537cbc3400cb5fde6f80e3d8b
[ "MTLL" ]
24
2019-03-26T15:25:45.000Z
2022-03-26T10:00:45.000Z
libs/numeric/mtl/examples/gdbinit_example.hpp
lit-uriy/mtl4-mirror
37cf7c2847165d3537cbc3400cb5fde6f80e3d8b
[ "MTLL" ]
2
2020-04-17T12:35:32.000Z
2021-03-03T15:46:25.000Z
libs/numeric/mtl/examples/gdbinit_example.hpp
lit-uriy/mtl4-mirror
37cf7c2847165d3537cbc3400cb5fde6f80e3d8b
[ "MTLL" ]
10
2019-12-01T13:40:30.000Z
2022-01-14T08:39:54.000Z
python import sys # STL support and alike here sys.path.insert(0, '/home/username/tools/gdb_printers/python') from mtl.printers import register_mtl_printers register_mtl_printers (None) end
17.545455
62
0.80829
lit-uriy
20434f68d04e0b4c5475ed4d5fa19016a7e936ce
16,608
cc
C++
cc/layer_tree_host_unittest_occlusion.cc
GnorTech/chromium
e1c7731d5bd099ca5544fcf8eda3867d4ce5bab5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2018-03-10T13:08:49.000Z
2018-03-10T13:08:49.000Z
cc/layer_tree_host_unittest_occlusion.cc
GnorTech/chromium
e1c7731d5bd099ca5544fcf8eda3867d4ce5bab5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
cc/layer_tree_host_unittest_occlusion.cc
GnorTech/chromium
e1c7731d5bd099ca5544fcf8eda3867d4ce5bab5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:19:31.000Z
2020-11-04T07:19:31.000Z
// Copyright 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "cc/layer_tree_host.h" #include "cc/layer.h" #include "cc/test/layer_tree_test_common.h" #include "cc/test/occlusion_tracker_test_common.h" nam...
34.81761
80
0.689788
GnorTech
2044e9c642160319e9658cb48ad579f1efad6561
6,323
cpp
C++
Frameworks/Helmet/Core/src/Plugin/Environment.cpp
hatboysoftware/helmet
97f26d134742fdb732abc6177bb2adaeb67b3187
[ "Zlib" ]
2
2018-02-07T01:19:37.000Z
2018-02-09T14:27:48.000Z
Frameworks/Helmet/Core/src/Plugin/Environment.cpp
hatboysoftware/helmet
97f26d134742fdb732abc6177bb2adaeb67b3187
[ "Zlib" ]
null
null
null
Frameworks/Helmet/Core/src/Plugin/Environment.cpp
hatboysoftware/helmet
97f26d134742fdb732abc6177bb2adaeb67b3187
[ "Zlib" ]
null
null
null
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ // Helmet Software Framework // // Copyright (C) 2018 Hat Boy Software, Inc. // // @author Matthew Alan Gray - <mgray@hatboysoftware.com> //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ #include "Environme...
27.732456
88
0.47177
hatboysoftware
20454b4a1188ce6f0f195b84a5ec271f929c65d9
366
hpp
C++
src/Ast/LessThanCondition.hpp
JCube001/pl0
a6ce723ffc7f639ab64d1a06946990fb6ec295d5
[ "MIT" ]
null
null
null
src/Ast/LessThanCondition.hpp
JCube001/pl0
a6ce723ffc7f639ab64d1a06946990fb6ec295d5
[ "MIT" ]
null
null
null
src/Ast/LessThanCondition.hpp
JCube001/pl0
a6ce723ffc7f639ab64d1a06946990fb6ec295d5
[ "MIT" ]
null
null
null
#ifndef PL0_AST_LESS_THAN_CONDITION_HPP #define PL0_AST_LESS_THAN_CONDITION_HPP #include "Ast/BinaryCondition.hpp" namespace PL0 { namespace Ast { struct LessThanCondition final : public BinaryCondition { void accept(Visitor& visitor) override { visitor.visit(*this); } }; } // namespace Ast } // namespace P...
19.263158
55
0.773224
JCube001
204a893f0e0c67829072d10a9fbc2d3baa2e1675
3,588
hpp
C++
include/chopper/build/read_data_file_and_set_high_level_bins.hpp
Felix-Droop/Chopper
5cc214103b2d088ae400bec0fde8973e03dd3095
[ "BSD-3-Clause" ]
null
null
null
include/chopper/build/read_data_file_and_set_high_level_bins.hpp
Felix-Droop/Chopper
5cc214103b2d088ae400bec0fde8973e03dd3095
[ "BSD-3-Clause" ]
null
null
null
include/chopper/build/read_data_file_and_set_high_level_bins.hpp
Felix-Droop/Chopper
5cc214103b2d088ae400bec0fde8973e03dd3095
[ "BSD-3-Clause" ]
null
null
null
#pragma once #include <cstdlib> #include <set> #include <string> #include <vector> #include <seqan3/std/charconv> #include <chopper/build/build_config.hpp> #include <chopper/build/build_data.hpp> #include <chopper/detail_bin_prefixes.hpp> #include <chopper/detail_parse_chopper_pack_line.hpp> #include <chopper/detail...
39
122
0.578595
Felix-Droop
204cb8a0ba405dd7cac79a70cacfa2fd5a22993a
1,329
hpp
C++
include/literator/internal/filter_iterator_base.hpp
jason2506/literator
452e5d1416bed80093d989c49cb27c3b665c4bba
[ "BSL-1.0" ]
null
null
null
include/literator/internal/filter_iterator_base.hpp
jason2506/literator
452e5d1416bed80093d989c49cb27c3b665c4bba
[ "BSL-1.0" ]
null
null
null
include/literator/internal/filter_iterator_base.hpp
jason2506/literator
452e5d1416bed80093d989c49cb27c3b665c4bba
[ "BSL-1.0" ]
null
null
null
// (c) Copyright David Abrahams 2002. // (c) Copyright Jeremy Siek 2002. // (c) Copyright Thomas Witt 2002. // (c) Copyright Chi-En Wu 2016. // // 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 LITERATOR_I...
26.58
71
0.684725
jason2506
204e41cd089df96cb3a85ace70de165b3d007716
447
cpp
C++
msvcTemplate/vc2010/VC2010DuiLibWizard/Templates/2052/MainFrame.cpp
wenyongfan/DuiLib_DuiEditor
087b0de316b7816a366a278e2439aef7cbc5ed26
[ "BSD-2-Clause" ]
72
2020-02-25T03:59:19.000Z
2022-03-27T23:20:46.000Z
msvcTemplate/vc2010/VC2010DuiLibWizard/Templates/2052/MainFrame.cpp
wenyongfan/DuiLib_DuiEditor
087b0de316b7816a366a278e2439aef7cbc5ed26
[ "BSD-2-Clause" ]
3
2021-03-17T14:42:54.000Z
2022-02-13T09:03:37.000Z
msvcTemplate/vc2010/VC2010DuiLibWizard/Templates/2052/MainFrame.cpp
wenyongfan/DuiLib_DuiEditor
087b0de316b7816a366a278e2439aef7cbc5ed26
[ "BSD-2-Clause" ]
31
2020-03-15T01:57:50.000Z
2022-03-19T11:10:29.000Z
#include "StdAfx.h" #include "MainFrame.h" CMainFrame::CMainFrame(void) { } CMainFrame::~CMainFrame(void) { } void CMainFrame::InitWindow() { } bool CMainFrame::OnCustomMessage(UINT uMsg, WPARAM wParam, LPARAM lParam) { return false; } bool CMainFrame::OnMenuCommand(const MenuCmd *cmd) { return false; } bo...
11.763158
73
0.733781
wenyongfan
204eb679e842f9be8e90207999d270514f8bc630
259
hpp
C++
src/vm/include/nk/vm/interp.hpp
nickl-lang/nickl
bc68fb85b81eea770907ad1dbe8f680178fa9937
[ "BSD-3-Clause" ]
1
2022-02-09T10:56:50.000Z
2022-02-09T10:56:50.000Z
src/vm/include/nk/vm/interp.hpp
nickl-lang/nickl
bc68fb85b81eea770907ad1dbe8f680178fa9937
[ "BSD-3-Clause" ]
null
null
null
src/vm/include/nk/vm/interp.hpp
nickl-lang/nickl
bc68fb85b81eea770907ad1dbe8f680178fa9937
[ "BSD-3-Clause" ]
null
null
null
#ifndef HEADER_GUARD_NK_VM_INTERP #define HEADER_GUARD_NK_VM_INTERP #include "nk/vm/bc.hpp" namespace nk { namespace vm { void interp_invoke(type_t self, value_t ret, value_t args); } // namespace vm } // namespace nk #endif // HEADER_GUARD_NK_VM_INTERP
17.266667
59
0.772201
nickl-lang
204faf8cc4fd0bf00282909c9527af49a36dae68
577
cpp
C++
creating of nodes.cpp
Pratikrocks/linked--lists
7832fed689ba25008b6136da2c7ea17b759fb6e7
[ "MIT" ]
null
null
null
creating of nodes.cpp
Pratikrocks/linked--lists
7832fed689ba25008b6136da2c7ea17b759fb6e7
[ "MIT" ]
null
null
null
creating of nodes.cpp
Pratikrocks/linked--lists
7832fed689ba25008b6136da2c7ea17b759fb6e7
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; struct node { int data; struct node *next; }; void print(struct node*n) { while(n!=NULL) { cout<<n->data<<" "; n=n->next; } } int main() { struct node*head=NULL; struct node*first=NULL; struct node*second=NULL; head=(struct node*)malloc...
16.485714
51
0.632582
Pratikrocks
20535677b711087ee4427ac9aa0624cc0e911a94
223
cpp
C++
allofw-openvr.node/src/allofw_openvr.cpp
donghaoren/AllofwModule
4367327cda0605aad53469294ed8751f8befbdc3
[ "Unlicense" ]
3
2016-05-04T23:23:48.000Z
2021-08-03T21:48:07.000Z
allofw-openvr.node/src/allofw_openvr.cpp
donghaoren/AllofwModule
4367327cda0605aad53469294ed8751f8befbdc3
[ "Unlicense" ]
null
null
null
allofw-openvr.node/src/allofw_openvr.cpp
donghaoren/AllofwModule
4367327cda0605aad53469294ed8751f8befbdc3
[ "Unlicense" ]
2
2016-01-31T04:06:51.000Z
2016-09-30T16:38:36.000Z
#include <node.h> #include <nan.h> #include "node_omnistereo.h" using namespace v8; NAN_MODULE_INIT(NODE_init) { Nan::HandleScope(); NODE_OpenVROmniStereo_init(target); } NODE_MODULE(allofw_openvr, NODE_init);
14.866667
39
0.73991
donghaoren
2059ce04d8c486bd5fa006fa15bae2c79f7b0733
887
cpp
C++
Algorithms/0654.Maximum_Binary_Tree.cpp
metehkaya/LeetCode
52f4a1497758c6f996d515ced151e8783ae4d4d2
[ "MIT" ]
2
2020-07-20T06:40:22.000Z
2021-11-20T01:23:26.000Z
Problems/LeetCode/Problems/0654.Maximum_Binary_Tree.cpp
metehkaya/Algo-Archive
03b5fdcf06f84a03125c57762c36a4e03ca6e756
[ "MIT" ]
null
null
null
Problems/LeetCode/Problems/0654.Maximum_Binary_Tree.cpp
metehkaya/Algo-Archive
03b5fdcf06f84a03125c57762c36a4e03ca6e756
[ "MIT" ]
null
null
null
struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode() : val(0), left(nullptr), right(nullptr) {} TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), left(left), right(right) {} }; class Solution { public: int...
26.878788
90
0.499436
metehkaya
205c63011276c504199caa68bb444b85b1dbb6f4
1,728
cpp
C++
Graphics/Drawing/scale.cpp
YemSalat/jetcat
6fffb814759bb7e46a9967e2c6226df3a1a0eb91
[ "MIT" ]
1
2016-04-20T13:47:20.000Z
2016-04-20T13:47:20.000Z
Graphics/Drawing/scale.cpp
YemSalat/jetcat
6fffb814759bb7e46a9967e2c6226df3a1a0eb91
[ "MIT" ]
null
null
null
Graphics/Drawing/scale.cpp
YemSalat/jetcat
6fffb814759bb7e46a9967e2c6226df3a1a0eb91
[ "MIT" ]
null
null
null
/********************************************************************************/ /* Portable Graphics Library for Embedded Systems * (C) Componentality Oy, 2015 */ /* Initial design and development: Konstantin A. Khait */ /* Support, comments and questions: dev@componentality.com ...
33.230769
82
0.548032
YemSalat
205c891c1bd6ff5bdd8940cb2e0c9c229f9be53a
1,113
cpp
C++
Chapter_5_Mathematics/Probability/kattis_anthony.cpp
BrandonTang89/CP4_Code
5114471f439978dd11f6f2cbf6af20ca654593da
[ "MIT" ]
2
2021-12-29T04:12:59.000Z
2022-03-30T09:32:19.000Z
Chapter_5_Mathematics/Probability/kattis_anthony.cpp
BrandonTang89/CP4_Code
5114471f439978dd11f6f2cbf6af20ca654593da
[ "MIT" ]
null
null
null
Chapter_5_Mathematics/Probability/kattis_anthony.cpp
BrandonTang89/CP4_Code
5114471f439978dd11f6f2cbf6af20ca654593da
[ "MIT" ]
1
2022-03-01T06:12:46.000Z
2022-03-01T06:12:46.000Z
/**Kattis - anthony * A relatively simple probability problem. The neat trick here is that we don't need to use * both c_left and a_left as DP parameters since a_left + c_left = n - game so we can recover * it from a_left and game. * * Time: O(a*(a+c)), Space: O(a*(a+c)) */ #pragma GCC optimize("Ofast") #pragma ...
29.289474
114
0.617251
BrandonTang89
205ed1e8175ec3c7902a7bdf40b42c9a315e7ec6
5,718
ipp
C++
contracts/libc++/upstream/test/support/archetypes.ipp
cubetrain/CubeTrain
b930a3e88e941225c2c54219267f743c790e388f
[ "MIT" ]
null
null
null
contracts/libc++/upstream/test/support/archetypes.ipp
cubetrain/CubeTrain
b930a3e88e941225c2c54219267f743c790e388f
[ "MIT" ]
null
null
null
contracts/libc++/upstream/test/support/archetypes.ipp
cubetrain/CubeTrain
b930a3e88e941225c2c54219267f743c790e388f
[ "MIT" ]
null
null
null
#ifndef DEFINE_BASE #define DEFINE_BASE(Name) ::ArchetypeBases::NullBase #endif #ifndef DEFINE_EXPLICIT #define DEFINE_EXPLICIT #endif #ifndef DEFINE_CONSTEXPR #ifdef TEST_WORKAROUND_EDG_EXPLICIT_CONSTEXPR #define DEFINE_CONSTEXPR #else // TEST_WORKAROUND_EDG_EXPLICIT_CONSTEXPR #define DEFINE_CONSTEXPR cons...
32.862069
86
0.764953
cubetrain
205f2e1b4ac818c618cb2cabdb762fca7fbb673c
14,763
cpp
C++
Test.cpp
Sarah-han/War-game-a-b
7ac91779b294f12fc9616836166a9efde9d711f2
[ "MIT" ]
null
null
null
Test.cpp
Sarah-han/War-game-a-b
7ac91779b294f12fc9616836166a9efde9d711f2
[ "MIT" ]
null
null
null
Test.cpp
Sarah-han/War-game-a-b
7ac91779b294f12fc9616836166a9efde9d711f2
[ "MIT" ]
null
null
null
#include "doctest.h" #include <stdbool.h> #include "Board.hpp" #include "FootCommander.hpp" #include "FootSoldier.hpp" #include "Paramedic.hpp" #include "ParamedicCommander.hpp" #include "Sniper.hpp" #include "SniperCommander.hpp" #include "Soldier.hpp" using namespace WarGame; TEST_CASE("Snipers And Paramedics") { ...
66.800905
156
0.681095
Sarah-han
20619a8f37ec5b930d378502f1fe0deeed17cb8c
33,375
cpp
C++
testing/tests/test_bb.cpp
ddugovic/ToppleChess
79e27f74023ea72463dfdbc6c6760705677dec1a
[ "MIT" ]
null
null
null
testing/tests/test_bb.cpp
ddugovic/ToppleChess
79e27f74023ea72463dfdbc6c6760705677dec1a
[ "MIT" ]
null
null
null
testing/tests/test_bb.cpp
ddugovic/ToppleChess
79e27f74023ea72463dfdbc6c6760705677dec1a
[ "MIT" ]
null
null
null
// // Created by Vincent on 27/09/2017. // #include "../catch.hpp" #include "../util.h" TEST_CASE("Bitboard engine") { SECTION("Table initialisation") { REQUIRE_NOTHROW(init_tables()); } SECTION("General operations") { SECTION("Single bit") { REQUIRE(single_bit(E4) == U64(1) <...
45.470027
105
0.292584
ddugovic
20655d6ec142d8aabab826e5c12e0809b6338ef7
17,930
c++
C++
src/Note.c++
dsvi/NotesTree
e9f932027281f8eb2e53dcd250d99bc48caeeabf
[ "Zlib" ]
null
null
null
src/Note.c++
dsvi/NotesTree
e9f932027281f8eb2e53dcd250d99bc48caeeabf
[ "Zlib" ]
null
null
null
src/Note.c++
dsvi/NotesTree
e9f932027281f8eb2e53dcd250d99bc48caeeabf
[ "Zlib" ]
null
null
null
#include "Note.h" using namespace std; using namespace boost::filesystem; const char Note::delimChar; Note::Note() { } Note::~Note() { } bool Note::hasAttach() { if (parent_) return exists(attachDir()); return false; } QString Note::decodeFromFilename(const boost::filesystem::path &filename) { QString ret; ...
24.002677
115
0.649805
dsvi
2069353ea4fa81075506c54b491868cdc1ece792
3,192
cpp
C++
data_structure/splay/RANK_TREE_SPLAY.cpp
searchstar2017/acmtool
03392b8909a3d45f10c2711ca4ad9ba69f64a481
[ "MIT" ]
null
null
null
data_structure/splay/RANK_TREE_SPLAY.cpp
searchstar2017/acmtool
03392b8909a3d45f10c2711ca4ad9ba69f64a481
[ "MIT" ]
null
null
null
data_structure/splay/RANK_TREE_SPLAY.cpp
searchstar2017/acmtool
03392b8909a3d45f10c2711ca4ad9ba69f64a481
[ "MIT" ]
null
null
null
template<typename T> struct SPLAY { //0 is invalid int c[MAXN][2], fa[MAXN], cnt[MAXN], siz[MAXN], tot, root; T keys[MAXN]; #define ls(rt) c[rt][0] #define rs(rt) c[rt][1] void Init() { root = tot = 0; } bool Side(int rt) { return rt == rc(fa[rt]); } void PushUp(int rt) { siz[rt] = cnt[rt]; if (lc(rt))...
19.703704
59
0.515038
searchstar2017
2069a4e15b5fb0b5fe3c1a28e8f6e453111a30f4
1,563
hpp
C++
src/res/Prefab/ComponentParsing/ParseTransformComponent.hpp
awwdev/MiniSTL
218998f6109a2a42c0017b4255bec48a235998c3
[ "MIT" ]
5
2021-02-10T19:14:32.000Z
2021-11-19T13:29:55.000Z
src/res/Prefab/ComponentParsing/ParseTransformComponent.hpp
awwdev/MiniSTL
218998f6109a2a42c0017b4255bec48a235998c3
[ "MIT" ]
41
2020-05-16T09:56:45.000Z
2020-07-05T15:14:33.000Z
src/res/Prefab/ComponentParsing/ParseTransformComponent.hpp
awwdev/MiniSTL
218998f6109a2a42c0017b4255bec48a235998c3
[ "MIT" ]
2
2021-07-21T22:21:41.000Z
2021-09-06T19:25:11.000Z
//https://github.com/awwdev #pragma once #include "ecs/Components/TransformComponent.hpp" #include "res/Prefab/ComponentParsing/ComponentMember.hpp" namespace rpg::res { inline auto ParseTransformComponent(ComponentMemberPairs const& pairs) { ecs::TransformComponent transformComponent {}; FOR_ARRAY(pairs, i)...
31.897959
98
0.535509
awwdev
206b9a298595565ea89c60d9dd381c847a5f16e2
2,309
cpp
C++
ComTest/main.cpp
iclosure/com422
7279f625ad9dd2e6c374e61608074fdaf206f326
[ "MIT" ]
1
2018-09-20T07:45:43.000Z
2018-09-20T07:45:43.000Z
ComTest/main.cpp
iclosure/com422
7279f625ad9dd2e6c374e61608074fdaf206f326
[ "MIT" ]
null
null
null
ComTest/main.cpp
iclosure/com422
7279f625ad9dd2e6c374e61608074fdaf206f326
[ "MIT" ]
null
null
null
// ComTest.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <stdio.h> //#include "test_comapi_load.h" //#include "test_comapi_speed.h" //#include "test_comm.h" #include "moxa/pcomm.h" #include "serialport/serialport.h" #pragma comment(lib, "moxa/pcomm") #define HR_DEBUG_PRIN...
18.181102
92
0.686011
iclosure
206c0924369f7f61fba6d7cff452682626bf316d
2,353
cpp
C++
RenamerGUI/querylineedit.cpp
eighttails/bRenamer
9cc56c356907ec54faf8ad09d84a7afcc26800ea
[ "BSD-2-Clause" ]
null
null
null
RenamerGUI/querylineedit.cpp
eighttails/bRenamer
9cc56c356907ec54faf8ad09d84a7afcc26800ea
[ "BSD-2-Clause" ]
null
null
null
RenamerGUI/querylineedit.cpp
eighttails/bRenamer
9cc56c356907ec54faf8ad09d84a7afcc26800ea
[ "BSD-2-Clause" ]
null
null
null
/*-------------------------------------------------------------------- Copyright (c) 2011, Tadahito Yao All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the abo...
37.951613
94
0.734807
eighttails
206e2de35f302230e3bf45a92921663d61dcfb6d
51,134
cpp
C++
Applications/SEGUE/qtcolortriangle.cpp
jcfr/RobartsVTK
d711c99b9c5b8a53afd23ee10d84f77a24565a3f
[ "MIT" ]
5
2016-11-17T01:29:25.000Z
2021-11-19T05:24:10.000Z
Applications/SEGUE/qtcolortriangle.cpp
jcfr/RobartsVTK
d711c99b9c5b8a53afd23ee10d84f77a24565a3f
[ "MIT" ]
2
2017-07-20T20:32:24.000Z
2018-03-09T21:53:15.000Z
Applications/SEGUE/qtcolortriangle.cpp
jcfr/RobartsVTK
d711c99b9c5b8a53afd23ee10d84f77a24565a3f
[ "MIT" ]
5
2016-12-19T20:40:34.000Z
2021-08-18T07:59:30.000Z
/**************************************************************************** ** ** This file is part of a Qt Solutions component. ** ** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Qt Software Information (qt-info@nokia.com) ** ** Commercial Usage ** Licensees holding valid Qt...
33.818783
106
0.542535
jcfr
206e4387e1fafaa69f9661d7a1431a3b4e08fe97
306
hpp
C++
Source/BufferConversions.hpp
ncorgan/PothosArrayFire
b2ce286827cefdc45507dbae65879a943e977479
[ "BSD-3-Clause" ]
2
2021-01-19T02:21:48.000Z
2022-03-26T23:05:49.000Z
Source/BufferConversions.hpp
ncorgan/PothosArrayFire
b2ce286827cefdc45507dbae65879a943e977479
[ "BSD-3-Clause" ]
3
2020-07-26T18:48:21.000Z
2020-10-28T00:45:42.000Z
Source/BufferConversions.hpp
pothosware/PothosArrayFire
b2ce286827cefdc45507dbae65879a943e977479
[ "BSD-3-Clause" ]
1
2022-03-24T06:22:20.000Z
2022-03-24T06:22:20.000Z
// Copyright (c) 2019-2020 Nicholas Corgan // SPDX-License-Identifier: BSD-3-Clause #pragma once #include <Pothos/Framework.hpp> #include <arrayfire.h> // // Pothos::BufferChunk <-> af::array // template <typename AfArrayType> Pothos::BufferChunk afArrayTypeToBufferChunk(const AfArrayType& afArray);
19.125
73
0.751634
ncorgan
206ea1f266af27686ef257661c687a374307fd14
1,836
cpp
C++
contrib/server_side/sse/examples/ticker.cpp
gatehouse/cppcms
61da055ffeb349b4eda14bc9ac393af9ce842364
[ "MIT" ]
388
2017-03-01T07:39:21.000Z
2022-03-30T19:38:41.000Z
contrib/server_side/sse/examples/ticker.cpp
gatehouse/cppcms
61da055ffeb349b4eda14bc9ac393af9ce842364
[ "MIT" ]
81
2017-03-08T20:28:00.000Z
2022-01-23T08:19:31.000Z
contrib/server_side/sse/examples/ticker.cpp
gatehouse/cppcms
61da055ffeb349b4eda14bc9ac393af9ce842364
[ "MIT" ]
127
2017-03-05T21:53:40.000Z
2022-02-25T02:31:01.000Z
// // Copyright (C) 2008-2012 Artyom Beilis (Tonkikh) <artyomtnk@yahoo.com> // // See accompanying file COPYING.TXT file for licensing details. // #include "server_sent_events.h" #include <cppcms/application.h> #include <cppcms/applications_pool.h> #include <cppcms/service.h> #include <cppcms/http_context.h> #inclu...
23.844156
90
0.589325
gatehouse
207442aa50ebc1a77ef2169e92d6185ed0b3e4cb
14,376
cpp
C++
NuclearSegmentation/NucleusEditor/Trace.cpp
tostathaina/farsight
7e9d6d15688735f34f7ca272e4e715acd11473ff
[ "Apache-2.0" ]
8
2016-07-22T11:24:19.000Z
2021-04-10T04:22:31.000Z
NuclearSegmentation/NucleusEditor/Trace.cpp
YanXuHappygela/Farsight
1711b2a1458c7e035edd21fe0019a1f7d23fcafa
[ "Apache-2.0" ]
null
null
null
NuclearSegmentation/NucleusEditor/Trace.cpp
YanXuHappygela/Farsight
1711b2a1458c7e035edd21fe0019a1f7d23fcafa
[ "Apache-2.0" ]
7
2016-07-21T07:39:17.000Z
2020-01-29T02:03:27.000Z
#include "Trace.h" #pragma warning(disable:4996) bool TraceObject::ReadFromFeatureTracksFileForKymograph(char *filename,int type_offset=0) { FILE * fp = fopen(filename,"r"); if(fp == NULL) { printf("Could not open %s for reading\n",filename); return false; } int curr_track = -1; TraceLine* curr_line = NULL; ...
27.435115
193
0.65032
tostathaina
2075bcb585d944b48c82d9b8299daafb2440718e
11,733
cpp
C++
src/AudioFrame.cpp
SolarAquarion/ffmpegyag
bb77508afd7dd30b853ff8e56a9a062c01ca8237
[ "MIT" ]
12
2017-09-24T06:27:25.000Z
2022-02-02T09:40:38.000Z
src/AudioFrame.cpp
SolarAquarion/ffmpegyag
bb77508afd7dd30b853ff8e56a9a062c01ca8237
[ "MIT" ]
3
2017-09-24T06:34:06.000Z
2018-06-11T05:31:21.000Z
src/AudioFrame.cpp
SolarAquarion/ffmpegyag
bb77508afd7dd30b853ff8e56a9a062c01ca8237
[ "MIT" ]
4
2018-03-02T15:23:12.000Z
2019-06-05T12:07:13.000Z
#include "AudioFrame.h" AudioFrame::AudioFrame(int64_t FrameTimestamp, int64_t FrameTimecode, int64_t FrameDuration, int FrameSampleRate, int FrameChannels, AVSampleFormat FrameSampleFormat, size_t FrameSampleCount) { Timestamp = FrameTimestamp; Timecode = FrameTimecode; Duration = FrameDuration; Sampl...
37.605769
191
0.534987
SolarAquarion
2078ab0a8052b643b6f058bef4387d0a4ecf618f
44,530
cpp
C++
src/C++/Descriptors/Descriptors.cpp
cesmix-mit/MDP
746e4f4aead5911ddeda77b0d2c117e3b70cc5c4
[ "MIT" ]
1
2021-09-15T03:09:46.000Z
2021-09-15T03:09:46.000Z
src/C++/Descriptors/Descriptors.cpp
cesmix-mit/MDP
746e4f4aead5911ddeda77b0d2c117e3b70cc5c4
[ "MIT" ]
1
2022-01-24T16:11:07.000Z
2022-01-24T16:11:07.000Z
src/C++/Descriptors/Descriptors.cpp
cesmix-mit/MDP
746e4f4aead5911ddeda77b0d2c117e3b70cc5c4
[ "MIT" ]
null
null
null
/*************************************************************************** Molecular Dynamics Potentials (MDP) CESMIX-MIT Project Contributing authors: Ngoc-Cuong Nguyen (cuongng@mit.edu, exapde@gmail.com) ****************************...
51.539352
173
0.521379
cesmix-mit
20886b776887e4f3b83d13e859e9084ae53ee7fb
38,248
cc
C++
src/hooks/dhcp/flex_option/tests/flex_option_unittests.cc
svenauhagen/kea
8a575ad46dee1487364fad394e7a325337200839
[ "Apache-2.0" ]
null
null
null
src/hooks/dhcp/flex_option/tests/flex_option_unittests.cc
svenauhagen/kea
8a575ad46dee1487364fad394e7a325337200839
[ "Apache-2.0" ]
null
null
null
src/hooks/dhcp/flex_option/tests/flex_option_unittests.cc
svenauhagen/kea
8a575ad46dee1487364fad394e7a325337200839
[ "Apache-2.0" ]
null
null
null
// Copyright (C) 2019 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. /// @file This file contains tests which verify fl...
37.242454
82
0.691879
svenauhagen
208879a88dc78097cc46d062421c0b9964318939
101
cpp
C++
gen/DMListener.cpp
Wanket/DM
2b74cbb66ebb7954b48598869cde62aee021c49f
[ "MIT" ]
null
null
null
gen/DMListener.cpp
Wanket/DM
2b74cbb66ebb7954b48598869cde62aee021c49f
[ "MIT" ]
null
null
null
gen/DMListener.cpp
Wanket/DM
2b74cbb66ebb7954b48598869cde62aee021c49f
[ "MIT" ]
null
null
null
// Generated from /home/wanket/Projects/DM/grammar/DM.g4 by ANTLR 4.7.2 #include "DMListener.h"
12.625
71
0.712871
Wanket
208c9c87b731803550534e629c27e52784c2aa37
3,207
hpp
C++
src/webots/vrml/WbFieldModel.hpp
binppo/webots
9ac92fb46265173f25ac2358e052e3a04991cf01
[ "Apache-2.0" ]
null
null
null
src/webots/vrml/WbFieldModel.hpp
binppo/webots
9ac92fb46265173f25ac2358e052e3a04991cf01
[ "Apache-2.0" ]
null
null
null
src/webots/vrml/WbFieldModel.hpp
binppo/webots
9ac92fb46265173f25ac2358e052e3a04991cf01
[ "Apache-2.0" ]
1
2021-09-09T10:34:42.000Z
2021-09-09T10:34:42.000Z
// Copyright 1996-2019 Cyberbotics Ltd. // // 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 agr...
30.836538
108
0.741191
binppo
208e009d0f1045a14240785fd3d86d3cffe85fd9
5,020
cpp
C++
UnitTests/ZilchShaders/RendererShared.cpp
RachelWilSingh/ZeroCore
e9a2f82d395e5c89fb98eceac44ce60d016dbff3
[ "MIT" ]
52
2018-09-11T17:18:35.000Z
2022-03-13T15:28:21.000Z
UnitTests/ZilchShaders/RendererShared.cpp
RachelWilSingh/ZeroCore
e9a2f82d395e5c89fb98eceac44ce60d016dbff3
[ "MIT" ]
1,409
2018-09-19T18:03:43.000Z
2021-06-09T08:33:33.000Z
UnitTests/ZilchShaders/RendererShared.cpp
RachelWilSingh/ZeroCore
e9a2f82d395e5c89fb98eceac44ce60d016dbff3
[ "MIT" ]
26
2018-09-11T17:16:32.000Z
2021-11-22T06:21:19.000Z
/////////////////////////////////////////////////////////////////////////////// /// /// Authors: Joshua Davis /// Copyright 2015, DigiPen Institute of Technology /// /////////////////////////////////////////////////////////////////////////////// #include "Precompiled.hpp" String mFragmentExtension = "zilchfrag...
32.179487
184
0.629681
RachelWilSingh
208ef8e54f0800ecc365ca834868adf9d5b9d3d5
930
cpp
C++
Challenge-2020-07/3_sum.cpp
qiufengyu/LetsCode
196fae0bf5c78ee20d05798a9439596e702fdb24
[ "MIT" ]
null
null
null
Challenge-2020-07/3_sum.cpp
qiufengyu/LetsCode
196fae0bf5c78ee20d05798a9439596e702fdb24
[ "MIT" ]
null
null
null
Challenge-2020-07/3_sum.cpp
qiufengyu/LetsCode
196fae0bf5c78ee20d05798a9439596e702fdb24
[ "MIT" ]
null
null
null
#include "header.h" class Solution { public: vector<vector<int>> threeSum(vector<int>& nums) { vector<vector<int>> res; int size = nums.size(); sort(nums.begin(), nums.end()); for (int i = 0; i < size - 2; i++) { if ( i > 0 && nums[i] > 0) break; if (nums[i] ...
29.0625
64
0.352688
qiufengyu
2092d9f3af99ecdf098a4d38c0c597b3884ff79e
1,256
cc
C++
src/gui/ScreenManager.cc
shiromino/shiromino
10e9bc650417ea05d5990836c64709af3f82ec5e
[ "CC-BY-4.0" ]
23
2020-07-12T22:49:10.000Z
2022-03-15T17:58:22.000Z
src/gui/ScreenManager.cc
shiromino/shiromino
10e9bc650417ea05d5990836c64709af3f82ec5e
[ "CC-BY-4.0" ]
64
2020-07-12T22:27:53.000Z
2022-01-02T23:10:24.000Z
src/gui/ScreenManager.cc
shiromino/shiromino
10e9bc650417ea05d5990836c64709af3f82ec5e
[ "CC-BY-4.0" ]
8
2020-08-30T04:16:17.000Z
2021-06-28T17:12:06.000Z
#include "ScreenManager.h" #include "CoreState.h" #include "game_qs.h" GUIScreen *mainMenu_create(CoreState *cs, ScreenManager *mngr, BitFont& font) { SDL_Rect destRect = {0, 0, 640, 480}; GUIScreen *mainMenu = new GUIScreen {cs, "Main Menu", mainMenuInteractionCallback, destRect}; SDL_Rect pentominoRect ...
27.911111
97
0.599522
shiromino
2096cde2cb4d401e3d8d98efe3743aa451fc3fff
20,092
cpp
C++
tests/unittests/tiglWingGuideCurves.cpp
MarAlder/tigl
76e1f1442a045e1b8b7954119ca6f9c883ea41e2
[ "Apache-2.0" ]
null
null
null
tests/unittests/tiglWingGuideCurves.cpp
MarAlder/tigl
76e1f1442a045e1b8b7954119ca6f9c883ea41e2
[ "Apache-2.0" ]
null
null
null
tests/unittests/tiglWingGuideCurves.cpp
MarAlder/tigl
76e1f1442a045e1b8b7954119ca6f9c883ea41e2
[ "Apache-2.0" ]
null
null
null
/* * Copyright (C) 2007-2014 German Aerospace Center (DLR/SC) * * Created: 2014-02-10 Tobias Stollenwerk <Tobias.Stollenwerk@dlr.de> * * 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 * ...
43.678261
244
0.689578
MarAlder
209738ad9db6b4e407c0e8878036d5abafb69375
4,826
cc
C++
src/MyRunAction.cc
ax3l/GPos
4555cead437f3ca847b6b8a2ce3227a47eb25af7
[ "BSD-3-Clause-LBNL" ]
3
2021-07-30T21:01:23.000Z
2021-08-05T18:49:34.000Z
src/MyRunAction.cc
ax3l/GPos
4555cead437f3ca847b6b8a2ce3227a47eb25af7
[ "BSD-3-Clause-LBNL" ]
3
2022-03-04T18:38:50.000Z
2022-03-04T18:39:03.000Z
src/MyRunAction.cc
ax3l/GPos
4555cead437f3ca847b6b8a2ce3227a47eb25af7
[ "BSD-3-Clause-LBNL" ]
2
2021-07-30T19:20:46.000Z
2021-09-17T14:56:10.000Z
/** * @file MyRunAction.cc * @author Ligia Diana Amorim * @date 06/2021 * @copyright GPos 2021 LBNL */ #include "MyRunAction.hpp" /** * Constructor, where memory size for particle data storage is allocated to ensure code doesn't run * into memory load issues and tfoil parallel min/max values are initialized. ...
30.544304
100
0.640075
ax3l
2098ec4d8fdccefe938aa81571c5dcb93d2384c6
28,136
cpp
C++
tools/geomc/main.cpp
tonipes/wargrid
2458f3f606f28fe6892c67eb736d5c8282d02c85
[ "MIT" ]
null
null
null
tools/geomc/main.cpp
tonipes/wargrid
2458f3f606f28fe6892c67eb736d5c8282d02c85
[ "MIT" ]
null
null
null
tools/geomc/main.cpp
tonipes/wargrid
2458f3f606f28fe6892c67eb736d5c8282d02c85
[ "MIT" ]
null
null
null
// ============================================================================ // Kimberlite // // Copyright 2020 Toni Pesola. All Rights Reserved. // ============================================================================ #define KB_TOOL_ONLY #include <kb/foundation/core.h> #include <kb/foundation/time.h> ...
39.965909
156
0.634987
tonipes
20a308d486b7a79728cd79ccd05269545e2bae92
8,630
cpp
C++
src/GreenThumbFrame.cpp
captain-igloo/greenthumb
39d62004e6f6b6fa7da52b3f6ff1c198b04e1d72
[ "MIT" ]
3
2019-04-08T19:17:51.000Z
2019-05-21T01:01:29.000Z
src/GreenThumbFrame.cpp
captain-igloo/greenthumb
39d62004e6f6b6fa7da52b3f6ff1c198b04e1d72
[ "MIT" ]
1
2019-04-30T23:39:06.000Z
2019-07-27T00:07:20.000Z
src/GreenThumbFrame.cpp
captain-igloo/greenthumb
39d62004e6f6b6fa7da52b3f6ff1c198b04e1d72
[ "MIT" ]
1
2019-02-28T09:22:18.000Z
2019-02-28T09:22:18.000Z
/** * Copyright 2019 Colin Doig. Distributed under the MIT license. */ #include <time.h> #include <wx/wx.h> #include <wx/menu.h> #include <wx/sizer.h> #include <wx/treectrl.h> #include "dialog/LoginDialog.h" #include "dialog/Settings.h" #include "entity/Config.h" #include "worker/GetAccountDetails.h" #include "w...
33.710938
97
0.696524
captain-igloo
20a3608d9b8d9ca4382e05da72b8563d06559736
1,880
cpp
C++
C++/03-currying_lambda.cpp
duinomaker/LearningStuff
34f8e3338dd2322013d519c19230c12fcb7897d4
[ "CC0-1.0" ]
null
null
null
C++/03-currying_lambda.cpp
duinomaker/LearningStuff
34f8e3338dd2322013d519c19230c12fcb7897d4
[ "CC0-1.0" ]
null
null
null
C++/03-currying_lambda.cpp
duinomaker/LearningStuff
34f8e3338dd2322013d519c19230c12fcb7897d4
[ "CC0-1.0" ]
null
null
null
#include <deque> #include <functional> #include <iostream> #include <iterator> using namespace std; // Automatic Currying template<typename Ret, typename Arg> auto curry_(function<Ret(Arg)> f) { return f; } template<typename Ret, typename Arg, typename ...Args> auto curry_(function<Ret(Arg, Args...)> f) { r...
20.659341
73
0.605319
duinomaker
20a736689f90c32671db6c5206d35bb451770a23
11,784
cpp
C++
src/interpreter.cpp
mujido/moove
380fd0ea2eb2ad59b62a27bb86079ecb8c5b783b
[ "Apache-2.0" ]
null
null
null
src/interpreter.cpp
mujido/moove
380fd0ea2eb2ad59b62a27bb86079ecb8c5b783b
[ "Apache-2.0" ]
null
null
null
src/interpreter.cpp
mujido/moove
380fd0ea2eb2ad59b62a27bb86079ecb8c5b783b
[ "Apache-2.0" ]
null
null
null
#include "interpreter.hpp" #include "reply.hpp" #include "except.hpp" #include "exec_state.hpp" #include "opcodes.hpp" #include "op_map.hpp" #include "op_package.hpp" #include "type_registry.hpp" #include "listvar.hpp" #include "strvar.hpp" #include "intvar.hpp" #include "realvar.hpp" #include <iostream> namespace Mo...
34.761062
129
0.535048
mujido
20a7c5edda5c2d6f6d9acd98ea6904ba7f25d77c
1,488
cpp
C++
318-1.cpp
Alex-Amber/LeetCode
c8d09e86cee52648f84ca2afed8dd0f13e51ab58
[ "MIT" ]
null
null
null
318-1.cpp
Alex-Amber/LeetCode
c8d09e86cee52648f84ca2afed8dd0f13e51ab58
[ "MIT" ]
null
null
null
318-1.cpp
Alex-Amber/LeetCode
c8d09e86cee52648f84ca2afed8dd0f13e51ab58
[ "MIT" ]
null
null
null
class UnionFind { private: vector<int> p, size; public: UnionFind(int N) { p.assign(N, 0); size.assign(N, 1); for (int i = 0; i < N; i++) p[i] = i; } int findSet(int u) { return p[u] == u ? u : p[u] = findSet(p[u]); } bool isSameSet(int u, int v) { ...
26.105263
77
0.373656
Alex-Amber
20acd4d87ed9f4c983a4b3ad07a07fe5507edbb5
563
cpp
C++
problem solving/bear-and-steady-gene.cpp
blog-a1/hackeRRank
72923ee08c8759bd5a10ba6c390b6755fe2bd2e2
[ "MIT" ]
1
2021-01-13T11:52:27.000Z
2021-01-13T11:52:27.000Z
problem solving/bear-and-steady-gene.cpp
blog-a1/hackeRRank
72923ee08c8759bd5a10ba6c390b6755fe2bd2e2
[ "MIT" ]
null
null
null
problem solving/bear-and-steady-gene.cpp
blog-a1/hackeRRank
72923ee08c8759bd5a10ba6c390b6755fe2bd2e2
[ "MIT" ]
null
null
null
#include<iostream> #include<vector> #include<algorithm> #define INT_MAX 1000000000 using namespace std; int main() { int len; string s;cin>>len>>s; int n=s.size(),a=n/4,b=0,c=0,d=0,gene=INT_MAX; vector<int>m(128,0); for(auto i:s) m[i]++; for(int &i:m) { i=max(0,i-...
20.107143
51
0.42984
blog-a1
20acd8cb9b1b1f66f72c62cb38837fc199432b63
22,041
cpp
C++
fileformats/DFFaceTex.cpp
Pickle/XLEngine
c1aa5cf4584cb1940373505e4350336662fecf43
[ "MIT" ]
179
2018-04-04T12:35:07.000Z
2021-11-28T03:53:30.000Z
fileformats/DFFaceTex.cpp
Pickle/XLEngine
c1aa5cf4584cb1940373505e4350336662fecf43
[ "MIT" ]
34
2018-04-04T17:15:40.000Z
2021-11-28T03:01:22.000Z
fileformats/DFFaceTex.cpp
Pickle/XLEngine
c1aa5cf4584cb1940373505e4350336662fecf43
[ "MIT" ]
25
2018-04-04T23:49:46.000Z
2022-02-05T01:02:58.000Z
/*=========================================================================== * * File: DF_3DSTex.CPP * Author: Dave Humphrey (uesp@m0use.net) * Created On: Friday, March 22, 2002 * * Implements 3DS specific texture and material related export functions * for Daggerfall 3D objects. * *===================...
44.89002
132
0.517581
Pickle
20acef1fd0a9644eaf0ffa1eb7422fe27bc42720
1,098
hpp
C++
ringOS-Beta17/src/interrupts/interrupts.hpp
ElectroBoy404NotFound/ringOS
9c109828363f3dc8b957dc58ecdfd5bc8d81e1a4
[ "MIT" ]
1
2021-12-05T15:49:40.000Z
2021-12-05T15:49:40.000Z
ringOS-Beta17/src/interrupts/interrupts.hpp
ElectroBoy404NotFound/ringOS
9c109828363f3dc8b957dc58ecdfd5bc8d81e1a4
[ "MIT" ]
null
null
null
ringOS-Beta17/src/interrupts/interrupts.hpp
ElectroBoy404NotFound/ringOS
9c109828363f3dc8b957dc58ecdfd5bc8d81e1a4
[ "MIT" ]
null
null
null
#pragma once #include "../BasicRenderer.hpp" #include "../userinput/mouse.hpp" #define PIC1_COMMAND 0x20 #define PIC1_DATA 0x21 #define PIC2_COMMAND 0xA0 #define PIC2_DATA 0xA1 #define PIC_EOI 0x20 #define ICW1_INIT 0x10 #define ICW1_ICW4 0x01 #define ICW4_8086 0x01 struct interrupt_frame; __attribute...
40.666667
107
0.802368
ElectroBoy404NotFound
20ad6d8357f4d99a588a0298105fb3ee24537be7
2,009
cpp
C++
Button.cpp
Loptt/pong-game
6f3d2c561b75444ec0a7c39edd553a249168ec22
[ "MIT" ]
null
null
null
Button.cpp
Loptt/pong-game
6f3d2c561b75444ec0a7c39edd553a249168ec22
[ "MIT" ]
null
null
null
Button.cpp
Loptt/pong-game
6f3d2c561b75444ec0a7c39edd553a249168ec22
[ "MIT" ]
null
null
null
// // Created by charles on 6/02/18. // #include "Button.h" #include <iostream> Button::Button() { } Button::Button(sf::Vector2f size, sf::Vector2f position, sf::Color color) { body.setPosition(position); body.setSize(size); body.setFillColor(color); font.loadFromFile("Fonts/arial.ttf"); text....
18.775701
102
0.661025
Loptt
20aebcce7681a909e03b5a3d14bc64bdaf1bb9f7
4,333
cpp
C++
Src/Assets/BVHLoader.cpp
NauhWuun/GPU-Pathtracer
ffd0107ee58c489248b878ce8a7a09a17bb606df
[ "MIT" ]
1
2021-08-07T08:24:48.000Z
2021-08-07T08:24:48.000Z
Src/Assets/BVHLoader.cpp
NauhWuun/GPU-Pathtracer
ffd0107ee58c489248b878ce8a7a09a17bb606df
[ "MIT" ]
null
null
null
Src/Assets/BVHLoader.cpp
NauhWuun/GPU-Pathtracer
ffd0107ee58c489248b878ce8a7a09a17bb606df
[ "MIT" ]
null
null
null
#include "BVHLoader.h" #include "Util/Util.h" struct BVHFileHeader { char filetype_identifier[4]; char filetype_version; // Store settings with which the BVH was created char underlying_bvh_type; bool bvh_is_optimized; int max_primitives_in_leaf; float sah_cost_node; float sah_cost_leaf; int num_triangles...
31.860294
111
0.720286
NauhWuun
20b00b18fb23b183cfc82e65db9b907c4feb165d
755
hpp
C++
baselines/ck-pir/src/puncprf.hpp
eniac/incpir
a7d1bcf45b1bd5a3e98bcb421276ecd09c6eebdd
[ "MIT" ]
3
2021-11-21T05:58:38.000Z
2022-03-19T15:47:40.000Z
baselines/ck-pir/src/puncprf.hpp
eniac/incpir
a7d1bcf45b1bd5a3e98bcb421276ecd09c6eebdd
[ "MIT" ]
null
null
null
baselines/ck-pir/src/puncprf.hpp
eniac/incpir
a7d1bcf45b1bd5a3e98bcb421276ecd09c6eebdd
[ "MIT" ]
null
null
null
#pragma once #ifndef _PUNCPRF #define _PUNCPRF #include <vector> #include <bitset> #include <set> #include <array> #include <tuple> #include <cstring> #include "pir.hpp" using namespace std; #define KeyLen 16 typedef std::array<uint8_t, KeyLen> Key; typedef struct { int height; uint32_t bitvec = 0; // star...
18.414634
76
0.72053
eniac
20b3b3b5c4ec4e5b3633641a674be51d8ea7cd2b
16,421
cpp
C++
OpenGL/src/tests/TestAdvanced.cpp
ilkeraktug/OpenGL
ddf639166e75c96e02864dd92aea7a562cf36a72
[ "MIT" ]
null
null
null
OpenGL/src/tests/TestAdvanced.cpp
ilkeraktug/OpenGL
ddf639166e75c96e02864dd92aea7a562cf36a72
[ "MIT" ]
null
null
null
OpenGL/src/tests/TestAdvanced.cpp
ilkeraktug/OpenGL
ddf639166e75c96e02864dd92aea7a562cf36a72
[ "MIT" ]
null
null
null
#include "TestAdvanced.h" #include "VertexBufferLayout.h" namespace test { TestAdvanced::TestAdvanced() : camera(&m_Proj, &m_View, 1280.0f, 768.0f) { GLCall(glEnable(GL_DEPTH_TEST)); GLCall(glDepthFunc(GL_LESS)); /* glEnable(GL_PROGRAM_POINT_SIZE); GLCall(glEnable(GL_...
44.261456
140
0.552281
ilkeraktug
20b83187f4fb38bb0026e9567dc41efb574b4cd5
17,034
cpp
C++
game/shared/EntityClasses.cpp
xalalau/HLEnhanced
f108222ab7d303c9ed5a8e81269f9e949508e78e
[ "Unlicense" ]
83
2016-06-10T20:49:23.000Z
2022-02-13T18:05:11.000Z
game/shared/EntityClasses.cpp
xalalau/HLEnhanced
f108222ab7d303c9ed5a8e81269f9e949508e78e
[ "Unlicense" ]
26
2016-06-16T22:27:24.000Z
2019-04-30T19:25:51.000Z
game/shared/EntityClasses.cpp
xalalau/HLEnhanced
f108222ab7d303c9ed5a8e81269f9e949508e78e
[ "Unlicense" ]
58
2016-06-10T23:52:33.000Z
2021-12-30T02:30:50.000Z
#include <algorithm> #include <cstdio> #include "extdll.h" #include "util.h" #include "DefaultClassifications.h" #include "EntityClasses.h" //TODO: move to utility header - Solokiller //Taken from cppreference.com documentation for std::lower_bound - Solokiller template<class ForwardIt, class T, class Compare = std...
29.470588
190
0.739345
xalalau
20b9019037c3d7b60afffdd8961acefd1eb81251
206
cpp
C++
atcoder/abc156/b.cpp
yuik46/competition_programming_code
0c47db99ce7fb9bcf6e3b0dbfb8c84d9cfa165fd
[ "MIT" ]
null
null
null
atcoder/abc156/b.cpp
yuik46/competition_programming_code
0c47db99ce7fb9bcf6e3b0dbfb8c84d9cfa165fd
[ "MIT" ]
null
null
null
atcoder/abc156/b.cpp
yuik46/competition_programming_code
0c47db99ce7fb9bcf6e3b0dbfb8c84d9cfa165fd
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int main(){ int n; int k; cin >> n >> k; int result = 0; while(n > 0){ n = n / k; result++; } cout << result << endl; }
13.733333
27
0.446602
yuik46
20b9cb73861ce4198c51dbd83f0cb790d92203d4
32,229
hpp
C++
redemption/src/mod/rdp/channels/rail_session_manager.hpp
DianaAssistant/DIANA
6a4c51c1861f6a936941b21c2c905fc291c229d7
[ "MIT" ]
null
null
null
redemption/src/mod/rdp/channels/rail_session_manager.hpp
DianaAssistant/DIANA
6a4c51c1861f6a936941b21c2c905fc291c229d7
[ "MIT" ]
null
null
null
redemption/src/mod/rdp/channels/rail_session_manager.hpp
DianaAssistant/DIANA
6a4c51c1861f6a936941b21c2c905fc291c229d7
[ "MIT" ]
null
null
null
/* 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) any later version. This program is distributed in the hope that it will ...
39.986352
185
0.58919
DianaAssistant
20ba2f04decb2e79b9054982b3c3ac7cad79d59e
1,631
hh
C++
include/io/rest.hh
king1600/Valk
b376a0dcce522ae03ced7d882835e4dea98df86e
[ "MIT" ]
null
null
null
include/io/rest.hh
king1600/Valk
b376a0dcce522ae03ced7d882835e4dea98df86e
[ "MIT" ]
null
null
null
include/io/rest.hh
king1600/Valk
b376a0dcce522ae03ced7d882835e4dea98df86e
[ "MIT" ]
null
null
null
#pragma once #include "http.hh" namespace io { using RestCallback = std::function<void(const json&)>; static const json JSON_EMPTY = json::parse("{}"); static const RestCallback CB_NONE = [](const json& j){}; class RestRequest { public: json data; std::string method; std::string endpoint; ...
25.092308
72
0.669528
king1600
20ba5330cab4477274432ce6129c724719399f12
922
hpp
C++
plugins/help_mongo/include/help_mongo/help_mongo.hpp
myappbase/myappbase
5a405ca0c1411da48ee755874b11dfb4ee625155
[ "MIT" ]
null
null
null
plugins/help_mongo/include/help_mongo/help_mongo.hpp
myappbase/myappbase
5a405ca0c1411da48ee755874b11dfb4ee625155
[ "MIT" ]
null
null
null
plugins/help_mongo/include/help_mongo/help_mongo.hpp
myappbase/myappbase
5a405ca0c1411da48ee755874b11dfb4ee625155
[ "MIT" ]
null
null
null
/** * @file * @copyright defined in myappbase/LICENSE */ #pragma once #include <string> #include <bsoncxx/builder/basic/kvp.hpp> #include <bsoncxx/builder/basic/document.hpp> #include <bsoncxx/builder/stream/document.hpp> #include <bsoncxx/exception/exception.hpp> #include <bsoncxx/json.hpp> #include <mongocxx/clie...
27.117647
75
0.712581
myappbase
20baf3805dca450bd4450c313df25c6688db4669
1,324
hh
C++
XRADGUI/Sources/RasterImageFile/RasterImageFile.hh
n-kulberg/xrad
3d089cc24d942db4649f1a50defbd69f01739ae2
[ "BSD-3-Clause" ]
1
2021-04-02T16:47:00.000Z
2021-04-02T16:47:00.000Z
XRADGUI/Sources/RasterImageFile/RasterImageFile.hh
n-kulberg/xrad
3d089cc24d942db4649f1a50defbd69f01739ae2
[ "BSD-3-Clause" ]
null
null
null
XRADGUI/Sources/RasterImageFile/RasterImageFile.hh
n-kulberg/xrad
3d089cc24d942db4649f1a50defbd69f01739ae2
[ "BSD-3-Clause" ]
3
2021-08-30T11:26:23.000Z
2021-09-23T09:39:56.000Z
 #ifndef __RasterImageFile_hh //#error This file must be included from "RasterImageFile.h" only #endif XRAD_BEGIN template<class RGB_IMAGE_T> RGB_IMAGE_T RasterImageFile::rgb() { using value_type = typename RGB_IMAGE_T::value_type; ColorImageF64 buffer = rgb_internal(); double scalefactor = scalefactor_calcu...
24.072727
123
0.762085
n-kulberg
20bb811d1aae729460f3e6f60b4cf4d83f0c03e6
742
cpp
C++
docs/mfc/codesnippet/CPP/mfc-activex-controls-creating-an-automation-server_2.cpp
jmittert/cpp-docs
cea5a8ee2b4764b2bac4afe5d386362ffd64e55a
[ "CC-BY-4.0", "MIT" ]
14
2018-01-28T18:10:55.000Z
2021-11-16T13:21:18.000Z
docs/mfc/codesnippet/CPP/mfc-activex-controls-creating-an-automation-server_2.cpp
jmittert/cpp-docs
cea5a8ee2b4764b2bac4afe5d386362ffd64e55a
[ "CC-BY-4.0", "MIT" ]
1
2021-04-01T04:17:07.000Z
2021-04-01T04:17:07.000Z
docs/mfc/codesnippet/CPP/mfc-activex-controls-creating-an-automation-server_2.cpp
jmittert/cpp-docs
cea5a8ee2b4764b2bac4afe5d386362ffd64e55a
[ "CC-BY-4.0", "MIT" ]
2
2018-11-01T12:33:08.000Z
2021-11-16T13:21:19.000Z
void CCircDlg::OnOK() { UpdateData(); // Get the current data from the dialog box. CCirc2 circ; // Create a wrapper class for the ActiveX object. COleException e; // In case of errors // Create the ActiveX object. // The name is the control's progid; look it up using OleView if (circ.CreateDi...
35.333333
68
0.642857
jmittert
20c051b1a532c68c0f76f2ca0f302595f86136cf
1,425
cpp
C++
tests/external/libcxx/array/compare.pass.cpp
GlitterIsMe/libpmemobj-cpp
71c614ca4c8bb769cf8bb01550acc1ca1c76d6bc
[ "BSD-3-Clause" ]
1
2018-11-06T13:09:12.000Z
2018-11-06T13:09:12.000Z
tests/external/libcxx/array/compare.pass.cpp
GlitterIsMe/libpmemobj-cpp
71c614ca4c8bb769cf8bb01550acc1ca1c76d6bc
[ "BSD-3-Clause" ]
null
null
null
tests/external/libcxx/array/compare.pass.cpp
GlitterIsMe/libpmemobj-cpp
71c614ca4c8bb769cf8bb01550acc1ca1c76d6bc
[ "BSD-3-Clause" ]
null
null
null
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
22.619048
80
0.54386
GlitterIsMe
20c3629dd29990b7bdb2273bbc8cef74b2040ff3
289,875
cpp
C++
Development/SDKs/1.7.1/SDK/AIModule_functions.cpp
ResaloliPT/HydroneerReleases
3a3501f04608cea77ccbf7229f94089295128ea7
[ "Unlicense" ]
null
null
null
Development/SDKs/1.7.1/SDK/AIModule_functions.cpp
ResaloliPT/HydroneerReleases
3a3501f04608cea77ccbf7229f94089295128ea7
[ "Unlicense" ]
null
null
null
Development/SDKs/1.7.1/SDK/AIModule_functions.cpp
ResaloliPT/HydroneerReleases
3a3501f04608cea77ccbf7229f94089295128ea7
[ "Unlicense" ]
null
null
null
// Name: Hydroneer, Version: 1.7.1 #include "../pch.h" /*!!DEFINE!!*/ /*!!HELPER_DEF!!*/ /*!!HELPER_INC!!*/ #ifdef _MSC_VER #pragma pack(push, 0x01) #endif namespace CG { //--------------------------------------------------------------------------- // Functions //------------------------------------------------...
36.7815
350
0.689304
ResaloliPT
20c4e2a61e8046783654dd978573fbdee4abd031
19,487
cpp
C++
plugin/flui/controller.cpp
cristivlas/zerobugs
5f080c8645b123d7887fd8a64f60e8d226e3b1d5
[ "BSL-1.0" ]
2
2018-03-19T23:27:47.000Z
2018-06-24T16:15:19.000Z
plugin/flui/controller.cpp
cristivlas/zerobugs
5f080c8645b123d7887fd8a64f60e8d226e3b1d5
[ "BSL-1.0" ]
null
null
null
plugin/flui/controller.cpp
cristivlas/zerobugs
5f080c8645b123d7887fd8a64f60e8d226e3b1d5
[ "BSL-1.0" ]
1
2021-11-28T05:39:05.000Z
2021-11-28T05:39:05.000Z
// -*- tab-width: 4; indent-tabs-mode: nil; -*- // vim: tabstop=4:softtabstop=4:expandtab:shiftwidth=4 // // $Id$ // #include "zdk/breakpoint_util.h" #include "zdk/check_ptr.h" #include "zdk/log.h" #include "zdk/thread_util.h" #include "generic/temporary.h" #include "breakpoint_view.h" #include "const.h" #include "cod...
22.245434
88
0.492687
cristivlas
20c76dcda708b5ad60e471a76e6da3eaa71c0b2b
9,717
cc
C++
src/connectivity/network/tun/network-tun/tun_device.cc
casey/fuchsia
2b965e9a1e8f2ea346db540f3611a5be16bb4d6b
[ "BSD-3-Clause" ]
14
2020-10-25T05:48:36.000Z
2021-09-20T02:46:20.000Z
src/connectivity/network/tun/network-tun/tun_device.cc
DamieFC/fuchsia
f78a4a1326f4a4bb5834500918756173c01bab4f
[ "BSD-2-Clause" ]
1
2022-01-14T23:38:40.000Z
2022-01-14T23:38:40.000Z
src/connectivity/network/tun/network-tun/tun_device.cc
DamieFC/fuchsia
f78a4a1326f4a4bb5834500918756173c01bab4f
[ "BSD-2-Clause" ]
4
2020-12-28T17:04:45.000Z
2022-03-12T03:20:44.000Z
// Copyright 2020 The Fuchsia 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 "tun_device.h" #include <lib/async-loop/default.h> #include <lib/async/cpp/task.h> #include <lib/syslog/global.h> #include <zircon/status.h> #in...
31.754902
100
0.652773
casey
20c8ee434e3d61bfed242485685487def4f3d90c
21,599
cpp
C++
src/modules/hip/kernel/canny_edge_detector.cpp
shobana-mcw/rpp
e4a5eb622b9abd0a5a936bf7174a84a5e2470b59
[ "MIT" ]
26
2019-09-04T17:48:41.000Z
2022-02-23T17:04:24.000Z
src/modules/hip/kernel/canny_edge_detector.cpp
shobana-mcw/rpp
e4a5eb622b9abd0a5a936bf7174a84a5e2470b59
[ "MIT" ]
57
2019-09-06T21:37:34.000Z
2022-03-09T02:13:46.000Z
src/modules/hip/kernel/canny_edge_detector.cpp
shobana-mcw/rpp
e4a5eb622b9abd0a5a936bf7174a84a5e2470b59
[ "MIT" ]
24
2019-09-04T23:12:07.000Z
2022-03-30T02:06:22.000Z
#include <hip/hip_runtime.h> #include "rpp_hip_host_decls.hpp" #define RPPABS(a) ((a < 0) ? (-a) : (a)) #define saturate_8u(value) ((value) > 255 ? 255 : ((value) < 0 ? 0 : (value))) extern "C" __global__ void canny_ced_pln3_to_pln1(unsigned char *input, unsigned char...
36.795571
178
0.499097
shobana-mcw
20c99886879623ac6c6683b1e64e4a062f1d7b4a
3,424
hpp
C++
linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/include/c++/4.6/ext/pb_ds/detail/constructors_destructor_fn_imps.hpp
HelixOS/prebuilts-gcc
b678ca6f7f5494d9e0a4fd76064ccb4227241e48
[ "Apache-2.0" ]
112
2015-02-05T20:18:29.000Z
2022-03-16T07:59:41.000Z
linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/include/c++/4.6/ext/pb_ds/detail/constructors_destructor_fn_imps.hpp
HelixOS/prebuilts-gcc
b678ca6f7f5494d9e0a4fd76064ccb4227241e48
[ "Apache-2.0" ]
9
2015-03-29T03:34:31.000Z
2021-08-05T02:05:58.000Z
linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/include/c++/4.6/ext/pb_ds/detail/constructors_destructor_fn_imps.hpp
HelixOS/prebuilts-gcc
b678ca6f7f5494d9e0a4fd76064ccb4227241e48
[ "Apache-2.0" ]
51
2015-03-26T04:56:06.000Z
2022-02-10T08:54:08.000Z
// -*- C++ -*- // Copyright (C) 2005, 2006, 2009 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library 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 ve...
32.923077
79
0.72868
HelixOS
20ccd2fede826b3d29e1aba3d5e679cb814a3688
6,628
cpp
C++
ModelGenerator/src/model_generator_tests.cpp
adam-lafontaine/AugmentedAI
a4736ce59963ee86313a5936aaf09f0f659e4184
[ "MIT" ]
null
null
null
ModelGenerator/src/model_generator_tests.cpp
adam-lafontaine/AugmentedAI
a4736ce59963ee86313a5936aaf09f0f659e4184
[ "MIT" ]
null
null
null
ModelGenerator/src/model_generator_tests.cpp
adam-lafontaine/AugmentedAI
a4736ce59963ee86313a5936aaf09f0f659e4184
[ "MIT" ]
null
null
null
/* Copyright (c) 2021 Adam Lafontaine */ #include "../src/ModelGenerator.hpp" #include "../src/pixel_conversion.hpp" #include "../../utils/dirhelper.hpp" #include "../../utils/test_dir.hpp" #include <string> #include <iostream> #include <algorithm> #include <numeric> #include <cmath> #include <cstdio> namespace di...
22.855172
80
0.731895
adam-lafontaine
20ce6819d592761e28249c76c99e406d9b1d64ca
1,426
cpp
C++
cpp/arc054_b/main.cpp
kokosabu/atcoder
8d512587d234eb45941a2f6341c4dd003e6c9ad3
[ "Apache-2.0" ]
null
null
null
cpp/arc054_b/main.cpp
kokosabu/atcoder
8d512587d234eb45941a2f6341c4dd003e6c9ad3
[ "Apache-2.0" ]
null
null
null
cpp/arc054_b/main.cpp
kokosabu/atcoder
8d512587d234eb45941a2f6341c4dd003e6c9ad3
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <cmath> #include <iomanip> using namespace std; int main() { long double P; cin >> P; long double left = 0; long double right = P; long double max = P; //while((right-left) < 0.000000001) { long double before = P; //for(int i = 0; i < 1000; i++) { whil...
26.407407
64
0.463534
kokosabu
20cfddaafc69172e6bfe621cc5d77802b557bf0c
315
hpp
C++
library/ATF/PIMAGE_RESOURCE_DIRECTORY_ENTRY.hpp
lemkova/Yorozuya
f445d800078d9aba5de28f122cedfa03f26a38e4
[ "MIT" ]
29
2017-07-01T23:08:31.000Z
2022-02-19T10:22:45.000Z
library/ATF/PIMAGE_RESOURCE_DIRECTORY_ENTRY.hpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
90
2017-10-18T21:24:51.000Z
2019-06-06T02:30:33.000Z
library/ATF/PIMAGE_RESOURCE_DIRECTORY_ENTRY.hpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
44
2017-12-19T08:02:59.000Z
2022-02-24T23:15:01.000Z
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> #include <_IMAGE_RESOURCE_DIRECTORY_ENTRY.hpp> START_ATF_NAMESPACE typedef _IMAGE_RESOURCE_DIRECTORY_ENTRY *PIMAGE_RESOURCE_DIRECTORY_ENTRY; END_ATF_NAMESPACE
28.636364
108
0.828571
lemkova
20d0ec7f70f575369ab03c9eb8e0c00aac6c65dd
17,083
cpp
C++
tests/one/arcus/arcus.cpp
i3D-net/ONE-GameHosting-SDK
060473173136b2c8d9bc43aaad0eb487870dc115
[ "BSD-3-Clause" ]
6
2020-07-03T09:18:04.000Z
2021-01-07T17:50:06.000Z
tests/one/arcus/arcus.cpp
i3D-net/ONE-GameHosting-SDK
060473173136b2c8d9bc43aaad0eb487870dc115
[ "BSD-3-Clause" ]
null
null
null
tests/one/arcus/arcus.cpp
i3D-net/ONE-GameHosting-SDK
060473173136b2c8d9bc43aaad0eb487870dc115
[ "BSD-3-Clause" ]
null
null
null
#include <catch.hpp> #include <tests/one/arcus/util.h> #include <functional> #include <utility> #include <one/arcus/array.h> #include <one/arcus/internal/codec.h> #include <one/arcus/internal/connection.h> #include <one/arcus/internal/socket.h> #include <one/arcus/internal/version.h> #include <one/arcus/error.h> #inc...
35.295455
87
0.667447
i3D-net
20d5b08375dcb27748e86b9323cc50884bb0e90b
84
cpp
C++
src/test/unit/multiple_translation_units1.cpp
drezap/stan
9b319ed125e2a7d14d0c9c246d2f462dad668537
[ "BSD-3-Clause" ]
1
2019-07-05T01:40:40.000Z
2019-07-05T01:40:40.000Z
src/test/unit/multiple_translation_units1.cpp
drezap/stan
9b319ed125e2a7d14d0c9c246d2f462dad668537
[ "BSD-3-Clause" ]
null
null
null
src/test/unit/multiple_translation_units1.cpp
drezap/stan
9b319ed125e2a7d14d0c9c246d2f462dad668537
[ "BSD-3-Clause" ]
1
2018-08-28T12:09:08.000Z
2018-08-28T12:09:08.000Z
#include <stan/model/model_header.hpp> stan::math::var function1() { return 0; }
14
38
0.690476
drezap
20d603ef9954fc79b5eb3e03dd4911a8b7d6748c
2,138
hpp
C++
include/hogl/detail/internal.hpp
maxk-org/hogl
07a714da00075125cbf930bfacb59645493ad313
[ "BSD-2-Clause" ]
14
2015-08-25T20:17:16.000Z
2021-08-24T11:28:02.000Z
include/hogl/detail/internal.hpp
maxk-org/hogl
07a714da00075125cbf930bfacb59645493ad313
[ "BSD-2-Clause" ]
8
2016-06-15T16:49:01.000Z
2019-10-05T19:12:12.000Z
include/hogl/detail/internal.hpp
maxk-org/hogl
07a714da00075125cbf930bfacb59645493ad313
[ "BSD-2-Clause" ]
6
2015-09-30T00:00:12.000Z
2021-08-02T20:43:56.000Z
/* Copyright (c) 2015-2020 Max Krasnyansky <max.krasnyansky@gmail.com> 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 copyr...
27.063291
85
0.755847
maxk-org
20dc8fe5a109dfa4788a33421220bbac0dfb05c7
19,172
cpp
C++
src/main.cpp
mcleary/GentlemansBattle
daf7d702d4259972f500af07921937c47b20b9b2
[ "MIT" ]
null
null
null
src/main.cpp
mcleary/GentlemansBattle
daf7d702d4259972f500af07921937c47b20b9b2
[ "MIT" ]
null
null
null
src/main.cpp
mcleary/GentlemansBattle
daf7d702d4259972f500af07921937c47b20b9b2
[ "MIT" ]
null
null
null
#include <iostream> #include <iomanip> #include <fstream> #include <vector> #include <string> struct ModelInput { double start_army_size; // > 0 Tamanho inicial do exército double start_enemy_size; // > 0 Tamanho inicial do exército inimigo double loose_battle_fract...
40.791489
157
0.562383
mcleary
20ddfc4d3bd4bc8693b5372cce680ca590fb96f5
2,385
cpp
C++
Labs/d6t2.cpp
Chalkydoge/FDU_DS
8d2dec307d8dd641fbe3bcfa633cede9e1a45252
[ "MIT" ]
1
2020-09-16T06:17:14.000Z
2020-09-16T06:17:14.000Z
Labs/d6t2.cpp
Chalkydoge/FDU_DS
8d2dec307d8dd641fbe3bcfa633cede9e1a45252
[ "MIT" ]
null
null
null
Labs/d6t2.cpp
Chalkydoge/FDU_DS
8d2dec307d8dd641fbe3bcfa633cede9e1a45252
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <queue> #include <stack> using namespace std; struct TreeNode{ int val; TreeNode *left, *right; TreeNode(int v) : val(v), left(NULL), right(NULL){} }; TreeNode* buildTree(vector<int>& nums){ if(nums.size() == 0) return NULL; TreeNode *root = ...
22.5
110
0.501468
Chalkydoge