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
38d5052dd19e9bdecedcbcd07e14b6cc2dd0fd14
1,649
cpp
C++
skunk/cpp/hello_world.cpp
Cypher1/arcs-experiments
42b7639077718973fe7447a9558c2eb2adbbde04
[ "BSD-3-Clause" ]
1
2021-08-19T00:52:03.000Z
2021-08-19T00:52:03.000Z
skunk/cpp/hello_world.cpp
Cypher1/arcs-experiments
42b7639077718973fe7447a9558c2eb2adbbde04
[ "BSD-3-Clause" ]
2
2022-01-27T04:46:55.000Z
2022-02-02T04:53:30.000Z
skunk/cpp/hello_world.cpp
Cypher1/arcs-experiments
42b7639077718973fe7447a9558c2eb2adbbde04
[ "BSD-3-Clause" ]
1
2022-01-27T01:11:23.000Z
2022-01-27T01:11:23.000Z
#include <string> #include <iostream> #include <tao/pegtl.hpp> namespace pegtl = tao::pegtl; namespace hello { // Parsing rule that matches a literal "Hello, ". struct prefix : pegtl::string< 'H', 'e', 'l', 'l', 'o', ',', ' ' > {}; // Parsing rule that matches a non-empty sequence of // alphab...
23.557143
66
0.607641
Cypher1
38d608bb677010295933dd5dcdc2ba1550e60c16
1,235
hpp
C++
include/bencode/detail/encode.hpp
fbdtemme/bencode
edf7dd5b580c44723821dbf737c8412d628294e4
[ "MIT" ]
25
2020-08-24T01:54:10.000Z
2021-12-22T08:55:54.000Z
include/bencode/detail/encode.hpp
fbdtemme/bencode
edf7dd5b580c44723821dbf737c8412d628294e4
[ "MIT" ]
1
2021-12-29T05:38:56.000Z
2021-12-29T05:38:56.000Z
include/bencode/detail/encode.hpp
fbdtemme/bencode
edf7dd5b580c44723821dbf737c8412d628294e4
[ "MIT" ]
4
2020-08-18T19:31:26.000Z
2022-02-01T18:57:51.000Z
#pragma once #include <string> #include "bencode/detail/events/events.hpp" #include "bencode/detail/events/encode_to.hpp" #include "bencode/detail/concepts.hpp" /// @file namespace bencode { /// Write bencoded representation of value to a string. /// @param value the value to encode /// @returns a string with the...
25.204082
70
0.721457
fbdtemme
38e740a759f1d3f14aef9239e1331dce0cc539b3
690
cpp
C++
static_proc.cpp
Sciss/EmbindTest
607cb4adb92070dbc8f5395db772cc2fd46af828
[ "CC0-1.0" ]
null
null
null
static_proc.cpp
Sciss/EmbindTest
607cb4adb92070dbc8f5395db772cc2fd46af828
[ "CC0-1.0" ]
null
null
null
static_proc.cpp
Sciss/EmbindTest
607cb4adb92070dbc8f5395db772cc2fd46af828
[ "CC0-1.0" ]
null
null
null
#include <emscripten/val.h> #include <stdio.h> #include <math.h> using namespace emscripten; void fillBuffer(emscripten::val ev) { // ok? float data[256]; // void* ptr = &data; // ok? for (int i = 0; i < 256; ++i) { // float in range -1 to 1 double x = (double) rand() / RAND_MAX * 2.0 - 1.0; data[...
25.555556
70
0.594203
Sciss
38f4d735cbba21c549ccc6c6ceb06bf8096c99f8
6,900
hpp
C++
Source/Lightning/LightningShaders/ShaderImageIntrinsics.hpp
JesseMader/PlasmaEngine
ffda8f76b96e83181cfc1f9ec102c4ad0d7fd131
[ "MIT" ]
null
null
null
Source/Lightning/LightningShaders/ShaderImageIntrinsics.hpp
JesseMader/PlasmaEngine
ffda8f76b96e83181cfc1f9ec102c4ad0d7fd131
[ "MIT" ]
null
null
null
Source/Lightning/LightningShaders/ShaderImageIntrinsics.hpp
JesseMader/PlasmaEngine
ffda8f76b96e83181cfc1f9ec102c4ad0d7fd131
[ "MIT" ]
null
null
null
// MIT Licensed (see LICENSE.md). #pragma once namespace Lightning { class Sampler { LightningDeclareType(Sampler, TypeCopyMode::ValueType); }; class Image2d { LightningDeclareType(Image2d, TypeCopyMode::ValueType); }; class StorageImage2d { LightningDeclareType(StorageImage2d, TypeCopyMode::ValueType); }; c...
40.350877
115
0.595507
JesseMader
38f51fae3089311ea346a1c5d997622801f4b733
9,423
hpp
C++
cyberdog_common/common_protocol/include/protocol/can/socket_can_sender.hpp
Karlsx/cyberdog_ros2
26f7c7d77761ed6daa36a2913e0399467c562542
[ "Apache-2.0" ]
9
2021-12-27T02:51:35.000Z
2022-03-07T14:08:28.000Z
cyberdog_common/common_protocol/include/protocol/can/socket_can_sender.hpp
homalozoa/cyberdog_ros2_devel
ca9ba335a19b3b5b0601531c6d6b108ffd98fe26
[ "Apache-2.0" ]
1
2021-12-21T03:05:58.000Z
2021-12-21T03:05:58.000Z
cyberdog_common/common_protocol/include/protocol/can/socket_can_sender.hpp
Karlsx/cyberdog_ros2
26f7c7d77761ed6daa36a2913e0399467c562542
[ "Apache-2.0" ]
3
2021-10-24T01:14:44.000Z
2021-12-20T11:54:41.000Z
// Copyright (c) 2021 Beijing Xiaomi Mobile Software Co., Ltd. All rights reserved. // Copyright 2021 the Autoware Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // ...
38.618852
101
0.670912
Karlsx
38fe30bb8c7cca658dc9a56789cd4c1b4a3f3510
4,972
cc
C++
src/tasks/leaf_solve.cc
Charles-Chao-Chen/fastSolver2
60eed8825f05c29919f7153497a4b57dec1ef76d
[ "MIT" ]
1
2020-11-28T12:41:51.000Z
2020-11-28T12:41:51.000Z
src/tasks/leaf_solve.cc
Charles-Chao-Chen/fastSolver2
60eed8825f05c29919f7153497a4b57dec1ef76d
[ "MIT" ]
2
2017-09-15T23:39:34.000Z
2017-11-21T21:43:00.000Z
src/tasks/leaf_solve.cc
Charles-Chao-Chen/fastSolver2
60eed8825f05c29919f7153497a4b57dec1ef76d
[ "MIT" ]
3
2016-10-04T04:34:32.000Z
2017-09-15T22:16:11.000Z
#include "leaf_solve.hpp" #include "ptr_matrix.hpp" #include "utility.hpp" #include <math.h> static Realm::Logger log_solver_tasks("solver_tasks"); void hsolve (int nrow, int nrhs, int rank, int nPart, int LD, double *K, double *U, double *V); int LeafSolveTask::TASKID; LeafSolveTask::LeafSolveTask(Domain domain...
31.27044
113
0.612631
Charles-Chao-Chen
38feffb6dee8a8d5f46b44435ce6189ec4c93b9e
5,885
cpp
C++
test/OpenSpaceToolkit/Physics/Coordinate/Frame/Providers/TEME.test.cpp
robinpdm/open-space-toolkit-physics
b53e5d4287fa6568d700cb8942c9a56d57b8d7cf
[ "Apache-2.0" ]
5
2018-08-20T06:47:42.000Z
2019-07-15T03:36:52.000Z
test/OpenSpaceToolkit/Physics/Coordinate/Frame/Providers/TEME.test.cpp
robinpdm/open-space-toolkit-physics
b53e5d4287fa6568d700cb8942c9a56d57b8d7cf
[ "Apache-2.0" ]
24
2018-06-25T08:06:39.000Z
2020-01-05T20:34:02.000Z
test/OpenSpaceToolkit/Physics/Coordinate/Frame/Providers/TEME.test.cpp
robinpdm/open-space-toolkit-physics
b53e5d4287fa6568d700cb8942c9a56d57b8d7cf
[ "Apache-2.0" ]
1
2019-09-19T22:44:23.000Z
2019-09-19T22:44:23.000Z
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// @project Open Space Toolkit ▸ Physics /// @file OpenSpaceToolkit/Physics/Coordinate/Frame/Providers/TEME.test.cpp /// @author Luc...
49.872881
228
0.605098
robinpdm
f19f09cae000788cf5cc1260cb9fd0aca935d287
1,039
cpp
C++
Examples/PlatformConstructionCPP/minimalHarness/harness/harness.cpp
emanuellucas2/OVPsimProject
6c9f5bfaaa135fa63d63746bacf5759c6d6c0e9e
[ "TCL" ]
null
null
null
Examples/PlatformConstructionCPP/minimalHarness/harness/harness.cpp
emanuellucas2/OVPsimProject
6c9f5bfaaa135fa63d63746bacf5759c6d6c0e9e
[ "TCL" ]
null
null
null
Examples/PlatformConstructionCPP/minimalHarness/harness/harness.cpp
emanuellucas2/OVPsimProject
6c9f5bfaaa135fa63d63746bacf5759c6d6c0e9e
[ "TCL" ]
null
null
null
/* * * Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com * * The contents of this file are provided under the Software License * Agreement that you accepted before downloading this file. * * This source forms part of the Software and can be used for educational, * training, and demonstration purpos...
23.613636
74
0.683349
emanuellucas2
f1a57efcdca986c80c8d99b0976b6674291782bd
902
cpp
C++
plane.cpp
guilhermealles/raytracer
48f60fa8a15136a208cb0e75dbc5683fea8a6c56
[ "MIT" ]
null
null
null
plane.cpp
guilhermealles/raytracer
48f60fa8a15136a208cb0e75dbc5683fea8a6c56
[ "MIT" ]
null
null
null
plane.cpp
guilhermealles/raytracer
48f60fa8a15136a208cb0e75dbc5683fea8a6c56
[ "MIT" ]
null
null
null
// // plane.cpp // Raytracer // // Created by Isadora Pedrini Possebon on 2/17/15. // Copyright (c) 2015 Isadora Pedrini Possebon. All rights reserved. // #include "plane.h" #include <iostream> #include <math.h> /************************** Sphere **********************************/ Hit Plane::intersect(const Ray...
26.529412
149
0.570953
guilhermealles
f1ad0034ea9456ce1ef973dfdeeb5e3565815d0a
5,378
hpp
C++
library/ATF/MessageMapFunctions.hpp
lemkova/Yorozuya
f445d800078d9aba5de28f122cedfa03f26a38e4
[ "MIT" ]
29
2017-07-01T23:08:31.000Z
2022-02-19T10:22:45.000Z
library/ATF/MessageMapFunctions.hpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
90
2017-10-18T21:24:51.000Z
2019-06-06T02:30:33.000Z
library/ATF/MessageMapFunctions.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> START_ATF_NAMESPACE union MessageMapFunctions { void (WINAPIV *pfn)(CCmdTarget *_this); int (WINAPIV *pfn_b_D)(CCmdTarget *_this, CDC *); ...
63.270588
108
0.655076
lemkova
f1aeb26e083a77ffc9b5100fde86de3102f24147
382
cc
C++
test/test_link.cc
xukl/BASIC-Compiler
3b0f752df5b9301aa116811729e362bfeaa05e58
[ "MIT" ]
null
null
null
test/test_link.cc
xukl/BASIC-Compiler
3b0f752df5b9301aa116811729e362bfeaa05e58
[ "MIT" ]
null
null
null
test/test_link.cc
xukl/BASIC-Compiler
3b0f752df5b9301aa116811729e362bfeaa05e58
[ "MIT" ]
null
null
null
#include "../src/link.hpp" #include <iostream> int main() { try { auto &&prog = statement::read_program(std::cin); auto &&cfg = basic_block::gen_cfg(prog); auto &&obj_code = translate::translate_to_obj_code(cfg); auto &&linked_code = link::link(obj_code); link::print_linked_code(std::cout, linked_code); } ...
21.222222
58
0.657068
xukl
f1af24e67b21242f5aa5e051d8f5b4ad1450b3ce
15,511
cpp
C++
src/fuzzy/fuzzy_tiled.cpp
wiranoid/fuzzy
e5829234a06adda59e8c82dfc4cf159b4087f0e5
[ "MIT" ]
2
2018-11-04T15:39:33.000Z
2020-09-26T15:29:13.000Z
src/fuzzy/fuzzy_tiled.cpp
wiranoid/fuzzy
e5829234a06adda59e8c82dfc4cf159b4087f0e5
[ "MIT" ]
null
null
null
src/fuzzy/fuzzy_tiled.cpp
wiranoid/fuzzy
e5829234a06adda59e8c82dfc4cf159b4087f0e5
[ "MIT" ]
null
null
null
// todo: to make rapidjson work #undef internal #include "rapidjson/document.h" #define internal static #include "fuzzy_tiled.h" #include "fuzzy.h" using namespace rapidjson; #define INVERT_Y(y) -(y) global const char *TILE_LAYER = "tilelayer"; global const char *OBJECT_LAYER = "objectgroup"; typedef GenericDocume...
35.575688
144
0.587261
wiranoid
f1b4507c2cc5b17d563ae1058c41ae9fdb81239d
1,805
cpp
C++
src/tree/tree/examples.cpp
d8euAI8sMs/qa-1-all
f38c282b6c7548373342e03635e9d4673e3eff0b
[ "Apache-2.0" ]
null
null
null
src/tree/tree/examples.cpp
d8euAI8sMs/qa-1-all
f38c282b6c7548373342e03635e9d4673e3eff0b
[ "Apache-2.0" ]
null
null
null
src/tree/tree/examples.cpp
d8euAI8sMs/qa-1-all
f38c282b6c7548373342e03635e9d4673e3eff0b
[ "Apache-2.0" ]
null
null
null
#include <string> #include <iostream> #include <tree/tree.hpp> using namespace treetools; using mytree_t = tree < std::string > ; void main() { auto h = [] (const mytree_t::event & e) { std::cout << "event from [" << e.source->data() << "]: "; switch (e.event_type) { ...
32.232143
119
0.461496
d8euAI8sMs
f1b6c1a3b63b696ef3b0f5aef383ab4803662fe4
465
cpp
C++
120#triangle/solution.cpp
llwwns/leetcode_solutions
e352c9bf6399ab3ee0f23889e70361c9f2a3bd33
[ "MIT" ]
null
null
null
120#triangle/solution.cpp
llwwns/leetcode_solutions
e352c9bf6399ab3ee0f23889e70361c9f2a3bd33
[ "MIT" ]
null
null
null
120#triangle/solution.cpp
llwwns/leetcode_solutions
e352c9bf6399ab3ee0f23889e70361c9f2a3bd33
[ "MIT" ]
null
null
null
class Solution { public: int minimumTotal(vector<vector<int>>& triangle) { int len = triangle.size(); if (len == 0) return 0; vector<int> v(len + 2, 2147483647); v[1] = triangle[0][0]; for (int i = 1; i < len; i ++) { for (int j = i; j >= 0; j--) { ...
31
61
0.423656
llwwns
f1b7d9d9be1cffb675ebaef8d851a688b2498f75
1,361
hpp
C++
include/telebotxx/Update.hpp
JackKek/telebotxx
2fbcdebb9e318af5e3143151ba3879ea6a8e25b2
[ "MIT" ]
6
2016-11-18T22:22:05.000Z
2017-10-14T12:05:21.000Z
include/telebotxx/Update.hpp
JackKek/telebotxx
2fbcdebb9e318af5e3143151ba3879ea6a8e25b2
[ "MIT" ]
null
null
null
include/telebotxx/Update.hpp
JackKek/telebotxx
2fbcdebb9e318af5e3143151ba3879ea6a8e25b2
[ "MIT" ]
1
2021-05-16T23:46:08.000Z
2021-05-16T23:46:08.000Z
#ifndef TELEBOTXX_UPDATE_HPP #define TELEBOTXX_UPDATE_HPP #include "Message.hpp" #include <vector> #include <memory> namespace telebotxx { class Update { public: enum class Type { Message, EditedMessage, InlineQuery, ChosenInlineResult, CallbackQuery }; Update(int id, Type type); Update(...
18.146667
66
0.73255
JackKek
f1ba29f35773b2e6a1acee538b4e84d461390f15
3,947
cpp
C++
MonoNative.Tests/mscorlib/System/Collections/mscorlib_System_Collections_Queue_Fixture.cpp
brunolauze/MonoNative
959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66
[ "BSD-2-Clause" ]
7
2015-03-10T03:36:16.000Z
2021-11-05T01:16:58.000Z
MonoNative.Tests/mscorlib/System/Collections/mscorlib_System_Collections_Queue_Fixture.cpp
brunolauze/MonoNative
959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66
[ "BSD-2-Clause" ]
1
2020-06-23T10:02:33.000Z
2020-06-24T02:05:47.000Z
MonoNative.Tests/mscorlib/System/Collections/mscorlib_System_Collections_Queue_Fixture.cpp
brunolauze/MonoNative
959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66
[ "BSD-2-Clause" ]
null
null
null
// Mono Native Fixture // Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 // Namespace: System.Collections // Name: Queue // C++ Typed Name: mscorlib::System::Collections::Queue #include <gtest/gtest.h> #include <mscorlib/System/Collections/mscorlib_System_Collections_Queue.h> #i...
20.773684
93
0.681784
brunolauze
f1ba71a9e37dfd71a75a8c94ef99711887eb3a9e
1,507
cpp
C++
DP/bitmaskDP.cpp
Rodp63/CP
3fb14cab2cf340a183a77e978029147f59269020
[ "MIT" ]
null
null
null
DP/bitmaskDP.cpp
Rodp63/CP
3fb14cab2cf340a183a77e978029147f59269020
[ "MIT" ]
null
null
null
DP/bitmaskDP.cpp
Rodp63/CP
3fb14cab2cf340a183a77e978029147f59269020
[ "MIT" ]
null
null
null
#include <iostream> #include <stdio.h> #include <vector> #include <queue> #include <stack> #include <algorithm> #include <set> #include <map> #include <deque> #include <math.h> #include <string> #include <iomanip> #include <locale> #include <list> using namespace std; #define FORN(i,m,n) for(ll i=m; i<ll...
23.546875
70
0.524884
Rodp63
f1bb3686b965e6d56ae15f98dd849c03b51815af
273
hpp
C++
src/duke/engine/Frame.hpp
hradec/duke
efacf7139cd1d7c2cd2f5127079721bd263dda50
[ "MIT" ]
51
2015-01-07T18:36:39.000Z
2021-11-30T15:24:44.000Z
src/duke/engine/Frame.hpp
virneo/duke
efacf7139cd1d7c2cd2f5127079721bd263dda50
[ "MIT" ]
1
2015-01-08T10:48:43.000Z
2015-02-11T19:32:14.000Z
src/duke/engine/Frame.hpp
virneo/duke
efacf7139cd1d7c2cd2f5127079721bd263dda50
[ "MIT" ]
18
2015-05-11T12:43:37.000Z
2019-11-29T11:15:41.000Z
#pragma once #include "duke/io/ImageDescription.hpp" #include "duke/io/Attributes.hpp" #include <memory> #include <string> namespace duke { struct Frame { FrameDescription description; Attributes attributes; std::shared_ptr<void> pData; }; } /* namespace duke */
16.058824
39
0.732601
hradec
f1bf11f8ea3a80b43722e4c7afeaacfc3797e0ed
12,392
cpp
C++
src/ioapi.cpp
hara-y/StarROS
03008d8acb46f606bf750cdbb4a9703fae427694
[ "Apache-2.0" ]
2
2020-05-16T03:14:54.000Z
2020-05-16T08:27:24.000Z
src/ioapi.cpp
hara-y/StarROS
03008d8acb46f606bf750cdbb4a9703fae427694
[ "Apache-2.0" ]
null
null
null
src/ioapi.cpp
hara-y/StarROS
03008d8acb46f606bf750cdbb4a9703fae427694
[ "Apache-2.0" ]
3
2020-05-15T09:50:06.000Z
2020-08-26T12:47:05.000Z
/* -*- mode: C++ -*- * All right reserved, Sure_star Coop. * @Technic Support: <sdk@isurestar.com> * $Id$ */ #include <unistd.h> #include <string> #include <sstream> #include <sys/socket.h> #include <arpa/inet.h> #include <poll.h> #include <errno.h> #include <fcntl.h> #include <sys/file.h> #include "ioapi.h" //...
27.90991
119
0.570449
hara-y
f1c4e8edfbe07ba2e5c522c1c3c2c625f0d1bb0c
3,446
cpp
C++
canvas.cpp
sergiosvieira/mog
f23d2b18851bb58c3e60aae9b10deec023f2c9c8
[ "MIT" ]
null
null
null
canvas.cpp
sergiosvieira/mog
f23d2b18851bb58c3e60aae9b10deec023f2c9c8
[ "MIT" ]
null
null
null
canvas.cpp
sergiosvieira/mog
f23d2b18851bb58c3e60aae9b10deec023f2c9c8
[ "MIT" ]
null
null
null
#include "canvas.h" #include <QPainter> #include <cmath> #include "objectcategory.h" #include "taticalmovingobject.h" #include "mapcolor.h" #include "cg.h" //void Canvas::drawAirplane(const TaticalMovingObject& object, const Coordinates& position) //{ // if (this->image) // { // QPainter painter(this->im...
25.909774
99
0.563262
sergiosvieira
f1c81d3713169c15cab975c980c2e80224ef4ce2
1,210
hpp
C++
src/platform/window.hpp
Je06jm/C-OpenGL-OIT
22880e34c292c0c6a4aacfd65beb13b175185c78
[ "MIT" ]
2
2021-06-02T11:51:50.000Z
2022-03-05T18:22:03.000Z
src/platform/window.hpp
Je06jm/C-OpenGL-OIT
22880e34c292c0c6a4aacfd65beb13b175185c78
[ "MIT" ]
null
null
null
src/platform/window.hpp
Je06jm/C-OpenGL-OIT
22880e34c292c0c6a4aacfd65beb13b175185c78
[ "MIT" ]
null
null
null
#pragma once #include "platform/opengl.hpp" #include <glm/glm.hpp> #include <string> // A class to handle the OpenGL context and window class Window { public: /* Creates a window and an OpenGL 4.3 context * @param resX The window width * @param resY The window height * @param title The window title * @...
25.744681
80
0.709917
Je06jm
f1cb44343faddc500ebda0157ce79e653be60553
3,271
hpp
C++
core/file.hpp
apanoo/cper
0b2ad12c2c7705da1c8fb6e076c731f112a14a44
[ "MIT" ]
3
2019-03-22T10:47:43.000Z
2021-12-25T08:03:10.000Z
core/file.hpp
apanoo/cper
0b2ad12c2c7705da1c8fb6e076c731f112a14a44
[ "MIT" ]
4
2020-08-06T03:34:26.000Z
2020-08-06T03:34:27.000Z
core/file.hpp
apanoo/ceditor
0b2ad12c2c7705da1c8fb6e076c731f112a14a44
[ "MIT" ]
null
null
null
#pragma once #include <iostream> #include <string.h> // memset #define STB_IMAGE_IMPLEMENTATION #include "stb/stb_image.h" class FileUtils { public: // release raw data memory static void free_raw(unsigned char* data) { delete[] data; } // read raw data to memory static unsigned char* read...
33.377551
121
0.581779
apanoo
f1d45244e4f40f1cd3b17d986b76190068ffa83b
2,717
cc
C++
audio/linear_filters/crossover.cc
foolish-hungry-b/test
5276d8169f398da068e5694eaf571c1cb1e25e06
[ "Apache-2.0" ]
58
2018-01-20T14:27:07.000Z
2022-01-26T03:09:02.000Z
audio/linear_filters/crossover.cc
chetgnegy/multichannel-audio-tools
b113f27dcc7a9614c578987ce7e3a8490a172267
[ "Apache-2.0" ]
1
2020-10-02T17:18:10.000Z
2020-10-02T17:23:00.000Z
audio/linear_filters/crossover.cc
chetgnegy/multichannel-audio-tools
b113f27dcc7a9614c578987ce7e3a8490a172267
[ "Apache-2.0" ]
30
2018-02-28T16:13:07.000Z
2022-03-31T00:38:54.000Z
/* * Copyright 2020 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
36.226667
79
0.683474
foolish-hungry-b
f1d86fa6dbbfc14df7028fb2f2c16dd7d83550ba
3,712
cc
C++
tests/fsm_passive_close.cc
YukunJ/Sponge-TCP-Protocol
85af1055af278abf945fdf11449b14e699f0a5e9
[ "Apache-2.0" ]
8
2021-02-22T01:10:06.000Z
2022-02-28T13:30:26.000Z
tests/fsm_passive_close.cc
YukunJ/Sponge-TCP-Protocol
85af1055af278abf945fdf11449b14e699f0a5e9
[ "Apache-2.0" ]
null
null
null
tests/fsm_passive_close.cc
YukunJ/Sponge-TCP-Protocol
85af1055af278abf945fdf11449b14e699f0a5e9
[ "Apache-2.0" ]
7
2021-02-22T01:10:16.000Z
2022-02-18T11:49:15.000Z
#include "tcp_config.hh" #include "tcp_expectation.hh" #include "tcp_fsm_test_harness.hh" #include "tcp_header.hh" #include "tcp_segment.hh" #include <cstdlib> #include <exception> #include <iostream> #include <stdexcept> #include <string> using namespace std; using State = TCPTestHarness::State; int main() { tr...
31.726496
119
0.59375
YukunJ
f1df14f6221ba43766968f3e2b35140a4eecc392
5,069
cpp
C++
src/test/operators/print_test.cpp
IanJamesMcKay/InMemoryDB
a267d9522926eca9add2ad4512f8ce352daac879
[ "MIT" ]
1
2021-04-14T11:16:52.000Z
2021-04-14T11:16:52.000Z
src/test/operators/print_test.cpp
IanJamesMcKay/InMemoryDB
a267d9522926eca9add2ad4512f8ce352daac879
[ "MIT" ]
null
null
null
src/test/operators/print_test.cpp
IanJamesMcKay/InMemoryDB
a267d9522926eca9add2ad4512f8ce352daac879
[ "MIT" ]
1
2020-11-30T13:11:04.000Z
2020-11-30T13:11:04.000Z
#include <memory> #include <string> #include <vector> #include "../base_test.hpp" #include "gtest/gtest.h" #include "operators/get_table.hpp" #include "operators/print.hpp" #include "operators/table_wrapper.hpp" #include "storage/storage_manager.hpp" #include "storage/table.hpp" namespace opossum { class OperatorsP...
31.484472
107
0.719274
IanJamesMcKay
f1e61bf71ce830a0dff7d80bb85b858bd2302e97
136,273
cxx
C++
cint/src/decl.cxx
paulwratt/cin-5.34.00
036a8202f11a4a0e29ccb10d3c02f304584cda95
[ "MIT" ]
10
2018-03-26T07:41:44.000Z
2021-11-06T08:33:24.000Z
cint/src/decl.cxx
paulwratt/cin-5.34.00
036a8202f11a4a0e29ccb10d3c02f304584cda95
[ "MIT" ]
null
null
null
cint/src/decl.cxx
paulwratt/cin-5.34.00
036a8202f11a4a0e29ccb10d3c02f304584cda95
[ "MIT" ]
1
2020-11-17T03:17:00.000Z
2020-11-17T03:17:00.000Z
/* /% C %/ */ /*********************************************************************** * cint (C/C++ interpreter) ************************************************************************ * Source file decl.c ************************************************************************ * Description: * Variable declar...
39.069094
204
0.477395
paulwratt
f1ec2be5836a4472faed051fabbcb2b2d5c5882e
1,470
hpp
C++
src/Map.hpp
enebe-nb/SokuLib
e4fdc913b6ce4bfce65d2fa7ccfcbdf9b5a2c910
[ "MIT" ]
2
2021-03-06T08:32:44.000Z
2021-04-18T20:43:42.000Z
src/Map.hpp
enebe-nb/SokuLib
e4fdc913b6ce4bfce65d2fa7ccfcbdf9b5a2c910
[ "MIT" ]
4
2020-11-29T20:25:32.000Z
2021-12-11T14:38:34.000Z
src/Map.hpp
enebe-nb/SokuLib
e4fdc913b6ce4bfce65d2fa7ccfcbdf9b5a2c910
[ "MIT" ]
3
2021-02-18T19:59:14.000Z
2021-09-07T13:23:38.000Z
// // Created by PinkySmile on 22/04/2021. // #ifndef SOKULIB_MAP_HPP #define SOKULIB_MAP_HPP #include <vector> namespace SokuLib { template<typename T, typename T2> struct MapNode { MapNode<T, T2> *prev; MapNode<T, T2> *next; MapNode<T, T2> *head; std::pair<T, T2> data; }; template<typename T, typenam...
22.96875
90
0.64966
enebe-nb
f1ecf4e31d46e8b466b151183214f27fe175167f
960
cpp
C++
UVa Online Judge (UVa)/Volume 100/10099 - The Tourist Guide.cpp
sreejonK19/online-judge-solutions
da65d635cc488c8f305e48b49727ad62649f5671
[ "MIT" ]
null
null
null
UVa Online Judge (UVa)/Volume 100/10099 - The Tourist Guide.cpp
sreejonK19/online-judge-solutions
da65d635cc488c8f305e48b49727ad62649f5671
[ "MIT" ]
null
null
null
UVa Online Judge (UVa)/Volume 100/10099 - The Tourist Guide.cpp
sreejonK19/online-judge-solutions
da65d635cc488c8f305e48b49727ad62649f5671
[ "MIT" ]
2
2018-11-06T19:37:56.000Z
2018-11-09T19:05:46.000Z
#include <cstdio> #include <cmath> #define MAX 105 #define Min(a, b) ((a<b)?(a):(b)) #define Max(a, b) ((a>b)?(a):(b)) int wght[MAX][MAX]; int main() { int N, R, nCase = 1; while( scanf("%d %d", &N, &R)==2 && (N || R) ) { for(int i=0 ; i<MAX ; i++) for(int j=0 ; j<MAX ; j++) wght[i][j...
23.414634
78
0.385417
sreejonK19
f1f1085e34ce508844a4996fcf55329ea54627d9
1,127
cpp
C++
dataset/test/modification/1619_all/11/transformation_1.cpp
Karina5005/Plagiarism
ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb
[ "MIT" ]
3
2022-02-15T00:29:39.000Z
2022-03-15T08:36:44.000Z
dataset/test/modification/1619_all/11/transformation_1.cpp
Kira5005-code/Plagiarism
ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb
[ "MIT" ]
null
null
null
dataset/test/modification/1619_all/11/transformation_1.cpp
Kira5005-code/Plagiarism
ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb
[ "MIT" ]
null
null
null
#include <iomanip> #include <iostream> #include <bits/stdc++.h> #define int long long using namespace std; int32_t main() ; int32_t main() { cin.tie(0); long long g; cin >> g; if (5 > 3) cout << "new code";for ( ; g--; ) /* 'for' inside */ { std::string lyf; cin ...
21.264151
70
0.335404
Karina5005
f1f370314d053c751ee5d7247da5ba71d6e3836f
259
hpp
C++
src/include/main.hpp
openvpn-access/certificate-server
b734affe988d9204dbeccb4b17079c3683b82a52
[ "MIT" ]
4
2020-09-18T05:09:28.000Z
2021-10-01T16:12:14.000Z
src/include/main.hpp
openvpn-access/certificate-server
b734affe988d9204dbeccb4b17079c3683b82a52
[ "MIT" ]
null
null
null
src/include/main.hpp
openvpn-access/certificate-server
b734affe988d9204dbeccb4b17079c3683b82a52
[ "MIT" ]
null
null
null
#ifndef CERTIFICATE_SERVER_MAIN_HPP #define CERTIFICATE_SERVER_MAIN_HPP void print_help(); std::string read_file(const std::string& path); std::map<std::string, std::string> parse_arguments(int argc, char const** argv); #endif //CERTIFICATE_SERVER_MAIN_HPP
28.777778
80
0.799228
openvpn-access
f1f87125bb1c13454043fc4e214787f41c40f86c
15,954
hpp
C++
include/via/http/headers.hpp
kenba/via-httplib
728df42e9b95ee4bfdbce424fef5eb943722ed59
[ "BSL-1.0" ]
41
2015-03-31T02:21:30.000Z
2021-11-04T05:04:04.000Z
include/via/http/headers.hpp
kenba/via-httplib
728df42e9b95ee4bfdbce424fef5eb943722ed59
[ "BSL-1.0" ]
18
2015-04-05T08:39:33.000Z
2018-10-26T16:29:45.000Z
include/via/http/headers.hpp
kenba/via-httplib
728df42e9b95ee4bfdbce424fef5eb943722ed59
[ "BSL-1.0" ]
17
2015-01-20T18:26:18.000Z
2021-11-16T12:48:03.000Z
#ifndef HEADERS_HPP_VIA_HTTPLIB_ #define HEADERS_HPP_VIA_HTTPLIB_ #pragma once ////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2013-2021 Ken Barker // (ken dot barker at via-technology dot co dot uk) // // Distributed under the Boost Software License, Version 1.0. // (S...
34.532468
88
0.556099
kenba
f1fcb1cddb85d9c3211c0bfb22f7ba8000015874
1,310
cpp
C++
Examples/Hypre/src/main_solver.cpp
schreiberx/LibPFASST
7b5ea651df16d190e335c12f3b15b8d231418e02
[ "BSD-3-Clause-LBNL" ]
7
2019-05-22T11:02:55.000Z
2022-01-29T16:16:33.000Z
Examples/Hypre/src/main_solver.cpp
schreiberx/LibPFASST
7b5ea651df16d190e335c12f3b15b8d231418e02
[ "BSD-3-Clause-LBNL" ]
2
2020-01-18T01:46:02.000Z
2022-01-29T16:32:52.000Z
Examples/Hypre/src/main_solver.cpp
schreiberx/LibPFASST
7b5ea651df16d190e335c12f3b15b8d231418e02
[ "BSD-3-Clause-LBNL" ]
7
2019-02-09T09:38:39.000Z
2021-01-25T23:00:05.000Z
#include "hypre_solver.hpp" int main(int argc, char *argv[]) { int num_procs, rank; MPI_Init(NULL, NULL); MPI_Comm_size(MPI_COMM_WORLD, &num_procs); MPI_Comm_rank(MPI_COMM_WORLD, &rank); HypreSolver *hypre_solver; int level_index = 0; int n = 4; int num_grid_points; int arg_index = 0; ...
23.392857
63
0.614504
schreiberx
f1fdfd8d73acb268ab37f31a93e831e245db8d2f
6,264
cxx
C++
STAT/TKDPDF.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
52
2016-12-11T13:04:01.000Z
2022-03-11T11:49:35.000Z
STAT/TKDPDF.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
1,388
2016-11-01T10:27:36.000Z
2022-03-30T15:26:09.000Z
STAT/TKDPDF.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
275
2016-06-21T20:24:05.000Z
2022-03-31T13:06:19.000Z
#include "TKDPDF.h" #include "TKDNodeInfo.h" #include "TClonesArray.h" #include "TTree.h" #include "TH2.h" #include "TObjArray.h" #include "TObjString.h" #include "TBox.h" #include "TGraph.h" #include "TMarker.h" ClassImp(TKDPDF) //_________________________________________________________________ TKDPDF::TKDPDF() ...
32.123077
178
0.667305
AllaMaevskaya
f1ff0e32feaf92521b77df27d502c2c587483acd
39
cpp
C++
lumino/Graphics/src/Rendering/Kanata/KBatch.cpp
lriki/Lumino
1a80430f4a83dbdfbe965b3d5b16064991b3edb0
[ "MIT" ]
30
2016-01-24T05:35:45.000Z
2020-03-03T09:54:27.000Z
lumino/Graphics/src/Rendering/Kanata/KBatch.cpp
lriki/Lumino
1a80430f4a83dbdfbe965b3d5b16064991b3edb0
[ "MIT" ]
35
2016-04-18T06:14:08.000Z
2020-02-09T15:51:58.000Z
lumino/Graphics/src/Rendering/Kanata/KBatch.cpp
lriki/Lumino
1a80430f4a83dbdfbe965b3d5b16064991b3edb0
[ "MIT" ]
5
2016-04-03T02:52:05.000Z
2018-01-02T16:53:06.000Z
 namespace ln { } // namespace ln
4.875
17
0.564103
lriki
7b00d1127951a654795e017852a4e3e95819a1ea
965
cpp
C++
sqlselect/libtoken/operators.cpp
DmytroGerasymchuk/sqlselect
40a882a371ab8171d6e2ffd6f4bf5c77e82b05d6
[ "MIT" ]
null
null
null
sqlselect/libtoken/operators.cpp
DmytroGerasymchuk/sqlselect
40a882a371ab8171d6e2ffd6f4bf5c77e82b05d6
[ "MIT" ]
null
null
null
sqlselect/libtoken/operators.cpp
DmytroGerasymchuk/sqlselect
40a882a371ab8171d6e2ffd6f4bf5c77e82b05d6
[ "MIT" ]
null
null
null
#include "operators.h" namespace libtoken { // output of one token_part ostream& operator << (ostream&os, const token_part& tp) { if (tp.qualified_by) os << tp.qualified_by; if (tp.type == token_part::Type::EOL) os << "\\n"; else os << tp.body; if (tp.qualified_by) os << tp.q...
15.819672
63
0.550259
DmytroGerasymchuk
7b03da456530b4fd3362448f7a9f3c84d5a4020a
8,023
cpp
C++
PCMBlitterLib.cpp
warexify/VoodooHDA
68b8e3f50571092c7c973de36dcca403884e9a5f
[ "AML" ]
5
2018-09-30T07:57:35.000Z
2021-03-07T13:38:08.000Z
PCMBlitterLib.cpp
warexify/VoodooHDA
68b8e3f50571092c7c973de36dcca403884e9a5f
[ "AML" ]
null
null
null
PCMBlitterLib.cpp
warexify/VoodooHDA
68b8e3f50571092c7c973de36dcca403884e9a5f
[ "AML" ]
null
null
null
#include "License.h" #include "PCMBlitterLibDispatch.h" /* This file contains portable int<->float blitters. */ #ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ #define TARGET_OS_MAC 1 #endif #if defined(__i386__) || defined(__x86_64__) #undef TARGET_CPU_X86 #define TARGET_CPU_X86 1 #undef TARGET_RT_LITTLE_END...
28.349823
91
0.64876
warexify
7b04ce03fa329c78ea4abdf916569317d988cfd6
1,111
hpp
C++
game/ui_button.hpp
tamasgoga/SnakeRipoff
a9ca7fbaf7803173e803929f3dbd5dbd43fe223e
[ "MIT" ]
null
null
null
game/ui_button.hpp
tamasgoga/SnakeRipoff
a9ca7fbaf7803173e803929f3dbd5dbd43fe223e
[ "MIT" ]
null
null
null
game/ui_button.hpp
tamasgoga/SnakeRipoff
a9ca7fbaf7803173e803929f3dbd5dbd43fe223e
[ "MIT" ]
null
null
null
#ifndef SNAKE_GAME_UI_BUTTON_HPP #define SNAKE_GAME_UI_BUTTON_HPP //-------------------------------------------------------------- // Button //-------------------------------------------------------------- #include "../core/core_ttf.hpp" #include <SDL2/SDL_rect.h> #include <string> union SDL_Event; class Button {...
18.516667
65
0.634563
tamasgoga
7b0e194b2f94b1a7ddf98b0d24533114c4317cc1
1,535
cpp
C++
sources/gfx/shader-manager.cpp
marcin-sucharski/Train3D
7b271eb15e5479e596307047469ea5582ab062c2
[ "MIT" ]
2
2017-02-07T21:28:37.000Z
2019-07-09T10:55:57.000Z
sources/gfx/shader-manager.cpp
marcin-sucharski/Train3D
7b271eb15e5479e596307047469ea5582ab062c2
[ "MIT" ]
null
null
null
sources/gfx/shader-manager.cpp
marcin-sucharski/Train3D
7b271eb15e5479e596307047469ea5582ab062c2
[ "MIT" ]
null
null
null
#include <functional> #include "shader-manager.h" #include "../env/file.h" using namespace std; using namespace std::placeholders; namespace train { namespace gfx { ShaderManager::ShaderManager() : preprocessor(bind(ShaderManager::loadCode, _1)) { } ShaderProgram &ShaderManager::get( ...
33.369565
101
0.585668
marcin-sucharski
7b1650162e72860f4cc7d230b4df9bb008d420fa
11,353
cpp
C++
src/game.cpp
pannacotta98/DomeDagen
aa5ac6adbc73326e43dfa129eae11c95f7191a1d
[ "BSD-2-Clause" ]
null
null
null
src/game.cpp
pannacotta98/DomeDagen
aa5ac6adbc73326e43dfa129eae11c95f7191a1d
[ "BSD-2-Clause" ]
null
null
null
src/game.cpp
pannacotta98/DomeDagen
aa5ac6adbc73326e43dfa129eae11c95f7191a1d
[ "BSD-2-Clause" ]
null
null
null
#include "game.hpp" //Define instance and id counter Game* Game::mInstance = nullptr; unsigned int Game::mUniqueId = 0; Game::Game() : mMvp{ glm::mat4{1.f} }, mLastFrameTime{ -1 }, mLastSyncedPlayer{ 0 } { for (const std::string& shaderName : allShaderNames) loadShader(shaderName); } void Game::detectCollisions(...
25.743764
111
0.703338
pannacotta98
7b197c972e11d6e1eb5bd843d294735dceb54b9b
11,263
cpp
C++
Game/Source/Deps/Pathfinding.cpp
albertec1/The-random-element
e351646450a93bfd630b0749f2c5e269e20ef0e1
[ "MIT" ]
null
null
null
Game/Source/Deps/Pathfinding.cpp
albertec1/The-random-element
e351646450a93bfd630b0749f2c5e269e20ef0e1
[ "MIT" ]
null
null
null
Game/Source/Deps/Pathfinding.cpp
albertec1/The-random-element
e351646450a93bfd630b0749f2c5e269e20ef0e1
[ "MIT" ]
null
null
null
#include "p2Defs.h" #include "p2Log.h" #include "j1App.h" #include "Pathfinding.h" #include "p2Point.h" #include "j1Map.h" #include "j1Render.h" #include "j1Collision.h" Pathfinding::Pathfinding() : j1Module(), map(NULL), last_path(DEFAULT_PATH_LENGTH), width(0), height(0) { name.create("pathfinding"); } // Destruct...
27.139759
121
0.573293
albertec1
7b1bd3679fafcfcab510af91963bfb5f85dcc77e
984
cpp
C++
EX5/EX5.cpp
abdulmlik/CS115-and-CS215-homework
aefb03a3c8df3e34e55103dc749b94ef9917524f
[ "BSD-2-Clause" ]
null
null
null
EX5/EX5.cpp
abdulmlik/CS115-and-CS215-homework
aefb03a3c8df3e34e55103dc749b94ef9917524f
[ "BSD-2-Clause" ]
null
null
null
EX5/EX5.cpp
abdulmlik/CS115-and-CS215-homework
aefb03a3c8df3e34e55103dc749b94ef9917524f
[ "BSD-2-Clause" ]
null
null
null
#include <iostream> #include <string> #include <fstream> using namespace std; struct person{ string nid, name, passportNo; }; int search(string year) { int X = stoi(year); if( X < 1900 && X > 2020 ) { cerr << "The year is incorrect" << endl; return -1; // } ifstream file("pers...
19.294118
82
0.485772
abdulmlik
7b1e63626fc9809ee9b421c62aacd4b3ffd64b7a
2,823
cpp
C++
src/clotho/configuration_manager/config_manager.cpp
putnampp/clotho
6dbfd82ef37b4265381cd78888cd6da8c61c68c2
[ "ECL-2.0", "Apache-2.0" ]
3
2015-06-16T21:27:57.000Z
2022-01-25T23:26:54.000Z
src/clotho/configuration_manager/config_manager.cpp
putnampp/clotho
6dbfd82ef37b4265381cd78888cd6da8c61c68c2
[ "ECL-2.0", "Apache-2.0" ]
3
2015-06-16T21:12:42.000Z
2015-06-23T12:41:00.000Z
src/clotho/configuration_manager/config_manager.cpp
putnampp/clotho
6dbfd82ef37b4265381cd78888cd6da8c61c68c2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
// Copyright 2015 Patrick Putnam // // 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 o...
31.719101
131
0.63266
putnampp
7b20d85af131cd1fa0e7370b28e3ed4a0160d3ce
82
cpp
C++
src/examples/06_module/02_shapes/line.cpp
acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-blacksea2003
c3e3c7e5d08cd1b397346d209095f67714f76689
[ "MIT" ]
null
null
null
src/examples/06_module/02_shapes/line.cpp
acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-blacksea2003
c3e3c7e5d08cd1b397346d209095f67714f76689
[ "MIT" ]
null
null
null
src/examples/06_module/02_shapes/line.cpp
acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-blacksea2003
c3e3c7e5d08cd1b397346d209095f67714f76689
[ "MIT" ]
null
null
null
//line.cpp #include "line.h" void Line::draw() { std::cout<<"draw line: \n" }
11.714286
30
0.573171
acc-cosc-1337-fall-2020
7b238680fbde29e49fa8b009bc353d2f70a0a2c6
2,589
cpp
C++
src/robot/robot.cpp
JasonThomasData/marsRoverKata
4707852dfb721635cd5426fbf446a12ee0763658
[ "MIT" ]
null
null
null
src/robot/robot.cpp
JasonThomasData/marsRoverKata
4707852dfb721635cd5426fbf446a12ee0763658
[ "MIT" ]
null
null
null
src/robot/robot.cpp
JasonThomasData/marsRoverKata
4707852dfb721635cd5426fbf446a12ee0763658
[ "MIT" ]
null
null
null
#include <sstream> #include <iostream> #include <vector> #include <stdexcept> #include "../configs/robot-config.hpp" #include "../planet/i_planet.hpp" #include "i_message-interpreter.hpp" #include "message-interpreter.hpp" #include "../coordinates.hpp" #include "../directions.hpp" #include "movements.hpp" #include "rob...
39.830769
122
0.678254
JasonThomasData
7b23a4daf1dc2dd3ba2c975a331bee2605af8dae
6,170
hpp
C++
plugins/application_context/include/AppContextAPI.hpp
fuchstraumer/Caelestis
9c4b76288220681bb245d84e5d7bf8c7f69b2716
[ "MIT" ]
5
2018-08-16T00:55:33.000Z
2020-06-19T14:30:17.000Z
plugins/application_context/include/AppContextAPI.hpp
fuchstraumer/Caelestis
9c4b76288220681bb245d84e5d7bf8c7f69b2716
[ "MIT" ]
null
null
null
plugins/application_context/include/AppContextAPI.hpp
fuchstraumer/Caelestis
9c4b76288220681bb245d84e5d7bf8c7f69b2716
[ "MIT" ]
null
null
null
#pragma once #ifndef APPLICATION_CONTEXT_API_HPP #define APPLICATION_CONTEXT_API_HPP #include <cstdint> #include <cstddef> constexpr static uint32_t APPLICATION_CONTEXT_API_ID = 0x920ac193; constexpr static uint32_t FIBER_JOB_SYSTEM_API_ID = 0x2e37eeb4; namespace file_type { enum e : uint32_t { none = 0, ...
43.758865
145
0.697083
fuchstraumer
7b298afd98c12fd0ce490d731afc180e06653ef3
7,233
hpp
C++
NightEngine2/thirdparty/taocpp_json/taocpp_json/include/tao/json/local_time.hpp
rittikornt/NightEngine2
14004b48d1708736373010a3fe47d05d876e0baa
[ "MIT" ]
2
2020-03-09T06:24:46.000Z
2022-02-04T23:09:23.000Z
NightEngine2/thirdparty/taocpp_json/taocpp_json/include/tao/json/local_time.hpp
rittikornt/NightEngine2
14004b48d1708736373010a3fe47d05d876e0baa
[ "MIT" ]
null
null
null
NightEngine2/thirdparty/taocpp_json/taocpp_json/include/tao/json/local_time.hpp
rittikornt/NightEngine2
14004b48d1708736373010a3fe47d05d876e0baa
[ "MIT" ]
2
2020-09-07T03:04:36.000Z
2022-02-04T23:09:24.000Z
// Copyright (c) 2018 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/json/ #ifndef TAO_JSON_LOCAL_TIME_HPP #define TAO_JSON_LOCAL_TIME_HPP #include <cstdint> #include <iomanip> #include <ostream> #include <stdexcept> #include <string> #include <tuple> #include "...
35.455882
178
0.460943
rittikornt
7b30ec3be0e52ddf36adb0a10456645e2eebc830
5,264
hpp
C++
include/ltb/util/uuid.hpp
LoganBarnes/ltb-util
f3439fd5f26a144dd1230c62023d8533b3f31adf
[ "MIT" ]
null
null
null
include/ltb/util/uuid.hpp
LoganBarnes/ltb-util
f3439fd5f26a144dd1230c62023d8533b3f31adf
[ "MIT" ]
null
null
null
include/ltb/util/uuid.hpp
LoganBarnes/ltb-util
f3439fd5f26a144dd1230c62023d8533b3f31adf
[ "MIT" ]
null
null
null
// /////////////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2021 Logan Barnes - All Rights Reserved // /////////////////////////////////////////////////////////////////////////////////////// #pragma once // external #include <boost/lexical_cast.hpp> #include <boost/uuid/...
25.307692
113
0.62709
LoganBarnes
7b33e02726e25ef9660b57bec08cdeee6540f9ef
1,808
cpp
C++
source/Samplers/MultiJittered.cpp
hadryansalles/ray-tracing-from-the-ground-up
4ca02fca2cdd458767b4ab3df15b6cd20cb1f413
[ "MIT" ]
5
2021-09-24T12:22:08.000Z
2022-03-23T06:54:02.000Z
source/Samplers/MultiJittered.cpp
hadryans/ray-tracing-from-the-ground-up
4ca02fca2cdd458767b4ab3df15b6cd20cb1f413
[ "MIT" ]
null
null
null
source/Samplers/MultiJittered.cpp
hadryans/ray-tracing-from-the-ground-up
4ca02fca2cdd458767b4ab3df15b6cd20cb1f413
[ "MIT" ]
5
2021-08-14T22:26:11.000Z
2022-03-04T09:13:39.000Z
#include "MultiJittered.hpp" MultiJittered::MultiJittered(const int num_samples, const int m) : Sampler(num_samples, m) { generate_samples(); } MultiJittered::MultiJittered(const MultiJittered& rhs) : Sampler(rhs) { generate_samples(); } MultiJittered& MultiJittered::operator= (const MultiJittered...
29.639344
103
0.566372
hadryansalles
7b465e617826c39340611b8bb0595fb4842aa6e2
10,640
hh
C++
include/ignition/gazebo/components/LogicalAudio.hh
caioaamaral/ign-gazebo
770ea2ae873d52cd7d867d0a8abbd929602bf3fe
[ "ECL-2.0", "Apache-2.0" ]
198
2020-04-15T16:56:09.000Z
2022-03-27T12:31:08.000Z
include/ignition/gazebo/components/LogicalAudio.hh
caioaamaral/ign-gazebo
770ea2ae873d52cd7d867d0a8abbd929602bf3fe
[ "ECL-2.0", "Apache-2.0" ]
1,220
2020-04-15T18:10:29.000Z
2022-03-31T22:37:06.000Z
include/ignition/gazebo/components/LogicalAudio.hh
caioaamaral/ign-gazebo
770ea2ae873d52cd7d867d0a8abbd929602bf3fe
[ "ECL-2.0", "Apache-2.0" ]
134
2020-04-15T16:59:57.000Z
2022-03-26T08:51:31.000Z
/* * Copyright (C) 2020 Open Source Robotics Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
32.638037
79
0.688346
caioaamaral
0da73b9c843dc4a48c60a2f73072b2b8f7bdf99f
30,374
cpp
C++
Source/Mesh/face.cpp
INM-RAS/INMOST
2846aa63c1fc11c406cb2d558646237223183201
[ "BSD-3-Clause" ]
null
null
null
Source/Mesh/face.cpp
INM-RAS/INMOST
2846aa63c1fc11c406cb2d558646237223183201
[ "BSD-3-Clause" ]
7
2015-01-05T16:41:55.000Z
2015-01-17T11:21:06.000Z
Source/Mesh/face.cpp
INM-RAS/INMOST
2846aa63c1fc11c406cb2d558646237223183201
[ "BSD-3-Clause" ]
null
null
null
#include "inmost.h" #if defined(USE_MESH) namespace INMOST { Cell Face::BackCell() const { assert(GetHandleElementType(GetHandle())==FACE); Mesh * m = GetMeshLink(); if( !GetMeshLink()->HideMarker() ) { adj_type const & hc = m->HighConn(GetHandle()); if( hc.size() > 0 ) return Cell(m,hc[0]); ...
30.867886
108
0.554323
INM-RAS
0da8f8ad635dfbf5c693aecd01e2cbfcc1eb9659
460
cpp
C++
Array/two_sum.cpp
Edith-panda/DSA
7292412be11700ec512d272d923994e371dbfc18
[ "Apache-2.0" ]
null
null
null
Array/two_sum.cpp
Edith-panda/DSA
7292412be11700ec512d272d923994e371dbfc18
[ "Apache-2.0" ]
null
null
null
Array/two_sum.cpp
Edith-panda/DSA
7292412be11700ec512d272d923994e371dbfc18
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <bits/stdc++.h> using namespace std; bool twosum(vector<int> arr, int n , int target){ vector<int> v; for(int i=0;i<n-1;i++){ for(int j=i+1;j<n;j++){ if(arr[i] + arr[j] == target) cout << (arr[i]) << " " << (arr[j]) << endl; } } return...
24.210526
56
0.467391
Edith-panda
0daac3eebddbca97096be444d5ad27a42899f973
326
cpp
C++
Dynamic Programming/Adhoc/Best Time to Buy and Sell Stocks II.cpp
cenation092/InterviewBit-Solutions
ac4510a10d965fb681f7b3c80990407e18bc2668
[ "MIT" ]
7
2019-06-29T08:57:07.000Z
2021-02-13T06:43:40.000Z
Dynamic Programming/Adhoc/Best Time to Buy and Sell Stocks II.cpp
cenation092/InterviewBit-Solutions
ac4510a10d965fb681f7b3c80990407e18bc2668
[ "MIT" ]
null
null
null
Dynamic Programming/Adhoc/Best Time to Buy and Sell Stocks II.cpp
cenation092/InterviewBit-Solutions
ac4510a10d965fb681f7b3c80990407e18bc2668
[ "MIT" ]
3
2020-06-17T04:26:26.000Z
2021-02-12T04:51:40.000Z
int Solution::maxProfit(const vector<int> &A) { int i = 0; int sum = 0; while( i < A.size() ){ while( i < A.size()-1 && A[i] >= A[i+1] )i++; int pay = A[i]; while( i < A.size()-1 && A[i] <= A[i+1] )i++; int get = A[i]; sum += (get-pay); i++; } return s...
23.285714
53
0.395706
cenation092
0db34fb196dcd59ab55edd367a1fff0d15b5e72f
9,508
cpp
C++
frameworks/net/extensions/basic/dmzNetExtPacketCodecObjectBasic.cpp
dmzgroup/dmz
fc2d9ddcb04ed71f4106b8d33539529807b3dea6
[ "MIT" ]
2
2015-11-05T03:03:43.000Z
2017-05-15T12:55:39.000Z
frameworks/net/extensions/basic/dmzNetExtPacketCodecObjectBasic.cpp
dmzgroup/dmz
fc2d9ddcb04ed71f4106b8d33539529807b3dea6
[ "MIT" ]
null
null
null
frameworks/net/extensions/basic/dmzNetExtPacketCodecObjectBasic.cpp
dmzgroup/dmz
fc2d9ddcb04ed71f4106b8d33539529807b3dea6
[ "MIT" ]
null
null
null
#include "dmzNetExtPacketCodecObjectBasic.h" #include <dmzNetModuleAttributeMap.h> #include <dmzObjectConsts.h> #include <dmzObjectModule.h> #include <dmzRuntimeConfig.h> #include <dmzRuntimeConfigToTypesBase.h> #include <dmzRuntimeDefinitions.h> #include <dmzRuntimePluginFactoryLinkSymbol.h> #include <dmzRuntimePlugin...
26.33795
87
0.592238
dmzgroup
0dbb98f84491296944e48e45301c129cb14622bd
6,792
inl
C++
Library/Sources/Stroika/Foundation/Traversal/BidirectionalIterator.inl
SophistSolutions/Stroika
f4e5d84767903a054fba0a6b9c7c4bd1aaefd105
[ "MIT" ]
28
2015-09-22T21:43:32.000Z
2022-02-28T01:35:01.000Z
Library/Sources/Stroika/Foundation/Traversal/BidirectionalIterator.inl
SophistSolutions/Stroika
f4e5d84767903a054fba0a6b9c7c4bd1aaefd105
[ "MIT" ]
98
2015-01-22T03:21:27.000Z
2022-03-02T01:47:00.000Z
Library/Sources/Stroika/Foundation/Traversal/BidirectionalIterator.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_Traversal_BidirectionalIterator_inl_ #define _Stroika_Foundation_Traversal_BidirectionalIterator_inl_ #include "../Debug/Assertions.h" namespace Stroika::Foundation::Traversal { #if 0 /* **************...
33.791045
137
0.526355
SophistSolutions
0dbd68f5ed896bbd845232d82724549fcde3043d
4,114
cpp
C++
intflash/src/test_intflash.cpp
Bergi84/vihaltests
f338e6aff3e389501dc8a018f1dbde862b7971a1
[ "BSD-2-Clause" ]
null
null
null
intflash/src/test_intflash.cpp
Bergi84/vihaltests
f338e6aff3e389501dc8a018f1dbde862b7971a1
[ "BSD-2-Clause" ]
null
null
null
intflash/src/test_intflash.cpp
Bergi84/vihaltests
f338e6aff3e389501dc8a018f1dbde862b7971a1
[ "BSD-2-Clause" ]
2
2022-01-05T01:53:54.000Z
2022-03-14T19:58:29.000Z
/* * file: test_intflash.cpp * brief: Internal Flash write example for NVCM * version: 1.00 * date: 2019-04-06 * authors: nvitya */ #include "stdint.h" #include "stdlib.h" #include "platform.h" #include "hwpins.h" #include "hwuart.h" #include "cppinit.h" #include "clockcnt.h" #include "traces.h...
18.958525
123
0.590909
Bergi84
0dc530b4eb197fbad1ad876729d4ab643c0df745
23,316
hpp
C++
Nacro/SDK/FN_MissionBlueprintFunctionLibrary_parameters.hpp
Milxnor/Nacro
eebabf662bbce6d5af41820ea0342d3567a0aecc
[ "BSD-2-Clause" ]
11
2021-08-08T23:25:10.000Z
2022-02-19T23:07:22.000Z
Nacro/SDK/FN_MissionBlueprintFunctionLibrary_parameters.hpp
Milxnor/Nacro
eebabf662bbce6d5af41820ea0342d3567a0aecc
[ "BSD-2-Clause" ]
1
2022-01-01T22:51:59.000Z
2022-01-08T16:14:15.000Z
Nacro/SDK/FN_MissionBlueprintFunctionLibrary_parameters.hpp
Milxnor/Nacro
eebabf662bbce6d5af41820ea0342d3567a0aecc
[ "BSD-2-Clause" ]
8
2021-08-09T13:51:54.000Z
2022-01-26T20:33:37.000Z
#pragma once // Fortnite (1.8) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "../SDK.hpp" namespace SDK { //--------------------------------------------------------------------------- //Parameters //--------------------------------------------------------------------------- // Function MissionBluepr...
83.569892
163
0.516212
Milxnor
0dc95e6a6c949122b70390ea1c1c98d6d1928ec3
1,301
hxx
C++
include/prevc/pipeline/AST/parameters.hxx
arazeiros/prevc
378f045f57b2e1c9460ac1699951291ac055c078
[ "MIT" ]
3
2018-10-30T20:33:45.000Z
2019-03-06T11:46:31.000Z
include/prevc/pipeline/AST/parameters.hxx
arazeiros/prevc
378f045f57b2e1c9460ac1699951291ac055c078
[ "MIT" ]
null
null
null
include/prevc/pipeline/AST/parameters.hxx
arazeiros/prevc
378f045f57b2e1c9460ac1699951291ac055c078
[ "MIT" ]
null
null
null
#ifndef PREVC_PIPELINE_AST_PARAMETERS_HXX #define PREVC_PIPELINE_AST_PARAMETERS_HXX #include <prevc/pipeline/AST/parameter.hxx> #include <prevc/pipeline/AST/collection-node.hxx> namespace prevc { namespace pipeline { namespace AST { /** * \brief Represent parameters i...
29.568182
112
0.524981
arazeiros
0dcba11d1d1e383bd3fc14b628fbba49d527def8
1,088
cpp
C++
qt/backup2/mainwindow.cpp
darkstar62/tribble-backup
4a50a641684b25a6ff9c2850cad2ede0fa487a00
[ "BSD-3-Clause" ]
null
null
null
qt/backup2/mainwindow.cpp
darkstar62/tribble-backup
4a50a641684b25a6ff9c2850cad2ede0fa487a00
[ "BSD-3-Clause" ]
null
null
null
qt/backup2/mainwindow.cpp
darkstar62/tribble-backup
4a50a641684b25a6ff9c2850cad2ede0fa487a00
[ "BSD-3-Clause" ]
null
null
null
// Copyright (C) 2013 Cory Maccarrone // Author: Cory Maccarrone <darkstar6262@gmail.com> #include <QApplication> #include "qt/backup2/backup_helper.h" #include "qt/backup2/mainwindow.h" #include "qt/backup2/restore_helper.h" #include "qt/backup2/verify_helper.h" #include "ui_mainwindow.h" // NOLINT MainWindow::Ma...
27.897436
54
0.740809
darkstar62
0dcca1be852fac102da8c8c77bfa77c39b1fd095
9,109
cpp
C++
src/qt/bankstatisticspage.cpp
coinkeeper/2015-06-22_19-17_bitcredits
d4902d06d956c78bfdb80d0433c9953c206bd12f
[ "MIT" ]
null
null
null
src/qt/bankstatisticspage.cpp
coinkeeper/2015-06-22_19-17_bitcredits
d4902d06d956c78bfdb80d0433c9953c206bd12f
[ "MIT" ]
null
null
null
src/qt/bankstatisticspage.cpp
coinkeeper/2015-06-22_19-17_bitcredits
d4902d06d956c78bfdb80d0433c9953c206bd12f
[ "MIT" ]
null
null
null
#include "bankstatisticspage.h" #include "ui_bankstatisticspage.h" #include "main.h" #include "wallet.h" #include "init.h" #include "base58.h" #include "bankmath.h" #include "clientmodel.h" #include "rpcserver.h" #include <sstream> #include <string> #include <QWidget> using namespace json_spirit; BankStatisticsPage:...
33.488971
395
0.666045
coinkeeper
0dcd652968a93a0e1bc3647695e4428a4d7c528c
10,639
cpp
C++
src/Core/Platform/PlatformUnix.cpp
SharpnelXu/etterna
8775f74ac9c353320128609d4b4150672e9a6d04
[ "MIT" ]
1
2022-02-22T01:24:02.000Z
2022-02-22T01:24:02.000Z
src/Core/Platform/PlatformUnix.cpp
john-marinelli/etterna
8775f74ac9c353320128609d4b4150672e9a6d04
[ "MIT" ]
1
2019-05-04T02:30:57.000Z
2019-05-04T02:30:57.000Z
src/Core/Platform/PlatformUnix.cpp
john-marinelli/etterna
8775f74ac9c353320128609d4b4150672e9a6d04
[ "MIT" ]
3
2019-05-02T01:50:23.000Z
2020-05-25T01:08:36.000Z
#include "Platform.hpp" #include "Core/Services/Locator.hpp" #include "Etterna/Singletons/PrefsManager.h" #include "Etterna/Globals/global.h" #include <fmt/format.h> #include <string> #include <fstream> #include <X11/Xlib.h> #include <sys/utsname.h> #include <sys/sysinfo.h> #include <unistd.h> #include <cxxabi.h> //...
36.187075
117
0.616317
SharpnelXu
0dd3488851aea2c59ee149083b04aeda5bd4de50
941
hpp
C++
headers/fir.hpp
zjc263/GPU_SDR
a57a29925b915c6eb995eb3c76c4ec34f96c3a0b
[ "Apache-2.0" ]
9
2019-07-23T10:31:18.000Z
2022-03-15T19:29:26.000Z
headers/fir.hpp
zjc263/GPU_SDR
a57a29925b915c6eb995eb3c76c4ec34f96c3a0b
[ "Apache-2.0" ]
5
2019-09-11T22:31:29.000Z
2022-01-25T18:26:56.000Z
headers/fir.hpp
zjc263/GPU_SDR
a57a29925b915c6eb995eb3c76c4ec34f96c3a0b
[ "Apache-2.0" ]
7
2019-08-29T20:47:56.000Z
2021-06-10T15:07:35.000Z
#pragma once #include <stdint.h> #include <cublas_v2.h> class FIR { public: // M is decimation factor // f should be around 8 // M * f is the length of the coefficient vector // nt is the number of input samples the fir will work on FIR(cublasHandle_t handle, cudaStream_t stream, float2 *hcoeff, int M, int f, ...
24.763158
87
0.679065
zjc263
0dd4756af4f82d7619c6586ce577047877757b65
5,797
cc
C++
KalmanTrack/KalBetaCons.cc
brownd1978/FastSim
05f590d72d8e7f71856fd833114a38b84fc7fd48
[ "Apache-2.0" ]
null
null
null
KalmanTrack/KalBetaCons.cc
brownd1978/FastSim
05f590d72d8e7f71856fd833114a38b84fc7fd48
[ "Apache-2.0" ]
null
null
null
KalmanTrack/KalBetaCons.cc
brownd1978/FastSim
05f590d72d8e7f71856fd833114a38b84fc7fd48
[ "Apache-2.0" ]
null
null
null
// ---------------------------------------------------------------------------- // File and Version Information: // $Id: KalBetaCons.cc,v 1.16 2007/09/06 23:12:30 brownd Exp $ // // Description: // Class to describe a constraint on the momentum // into the fit // // Copyright Information: // Copyright (C) 2005 ...
30.036269
142
0.68915
brownd1978
0ddddd0a9d908afb2c5a380c2ac87cdfd68ee883
4,156
cpp
C++
src/Utils.cpp
MarkGillespie/CEPS
3e5f134ea45c3c84d92333c460160a355bb7a50d
[ "MIT" ]
48
2021-08-29T06:13:13.000Z
2022-02-08T18:58:28.000Z
src/Utils.cpp
MarkGillespie/CEPS
3e5f134ea45c3c84d92333c460160a355bb7a50d
[ "MIT" ]
null
null
null
src/Utils.cpp
MarkGillespie/CEPS
3e5f134ea45c3c84d92333c460160a355bb7a50d
[ "MIT" ]
3
2021-09-27T12:19:37.000Z
2022-02-19T19:23:04.000Z
#include "Utils.h" verbose_runtime_error::verbose_runtime_error(const std::string& arg, const char* file, int line) : std::runtime_error(arg) { std::string filePath(file); // stolen from polyscope/utilities.cpp size_t startInd = 0; for (std::string sep...
31.014925
78
0.52358
MarkGillespie
0de26ae1c9b0bacaa1fc47bd5f8bc3d49bd50655
958
cpp
C++
codeforce5/909D. Colorful Points.cpp
khaled-farouk/My_problem_solving_solutions
46ed6481fc9b424d0714bc717cd0ba050a6638ef
[ "MIT" ]
null
null
null
codeforce5/909D. Colorful Points.cpp
khaled-farouk/My_problem_solving_solutions
46ed6481fc9b424d0714bc717cd0ba050a6638ef
[ "MIT" ]
null
null
null
codeforce5/909D. Colorful Points.cpp
khaled-farouk/My_problem_solving_solutions
46ed6481fc9b424d0714bc717cd0ba050a6638ef
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int const N = 1e5 + 1; int ax, ay, bx, by, tx, ty; int n; int xi[N], yi[N]; long double dp[N][2][2]; long double dist(int x1, int y1, int x2, int y2) { return sqrt(pow(x1 - x2, 2.0) + pow(y1 - y2, 2.0)); } long double rec(int idx, bool at, bool bt) { if(idx == n) re...
21.772727
104
0.52714
khaled-farouk
0de4d4d4de4e470b392db6f38a4a3282194c968d
6,446
cpp
C++
example/06net_server/net_client_app.cpp
extester/carbon
ef3e51e35359a648c2b6f1ea119cf5acbcdf15c7
[ "Apache-2.0" ]
1
2019-12-25T17:38:30.000Z
2019-12-25T17:38:30.000Z
example/06net_server/net_client_app.cpp
extester/carbon
ef3e51e35359a648c2b6f1ea119cf5acbcdf15c7
[ "Apache-2.0" ]
null
null
null
example/06net_server/net_client_app.cpp
extester/carbon
ef3e51e35359a648c2b6f1ea119cf5acbcdf15c7
[ "Apache-2.0" ]
null
null
null
/* * Carbon Framework Examples * Network server client * * Copyright (c) 2016 Softland. All rights reserved. * Licensed under the Apache License, Version 2.0 */ /* * Revision history: * * Revision 1.0, 27.06.2016 11:32:45 * Initial revision. */ /* * Example: * * 1) Connect to the remove server ...
25.88755
101
0.550419
extester
0de9ad04548eeb40399a71ecc4fc68c1dbe6faf4
10,670
cpp
C++
timer/Controller/CharacterController.cpp
MaticVrtacnik/ProceduralnaAnimacija
bc47ccc721d1bedb31ed5949eb740892f094897a
[ "MIT" ]
null
null
null
timer/Controller/CharacterController.cpp
MaticVrtacnik/ProceduralnaAnimacija
bc47ccc721d1bedb31ed5949eb740892f094897a
[ "MIT" ]
null
null
null
timer/Controller/CharacterController.cpp
MaticVrtacnik/ProceduralnaAnimacija
bc47ccc721d1bedb31ed5949eb740892f094897a
[ "MIT" ]
null
null
null
/* MIT License Copyright (c) 2019 MaticVrtacnik 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, ...
31.661721
102
0.75492
MaticVrtacnik
0dee154ff3b6cea6fa4071087a339136e1a29578
16,663
cpp
C++
test/core/test_read_switching_forcefield_simulator.cpp
yutakasi634/Mjolnir
ab7a29a47f994111e8b889311c44487463f02116
[ "MIT" ]
12
2017-02-01T08:28:38.000Z
2018-08-25T15:47:51.000Z
test/core/test_read_switching_forcefield_simulator.cpp
Mjolnir-MD/Mjolnir
043df4080720837042c6b67a5495ecae198bc2b3
[ "MIT" ]
60
2019-01-14T08:11:33.000Z
2021-07-29T08:26:36.000Z
test/core/test_read_switching_forcefield_simulator.cpp
yutakasi634/Mjolnir
ab7a29a47f994111e8b889311c44487463f02116
[ "MIT" ]
8
2019-01-13T11:03:31.000Z
2021-08-01T11:38:00.000Z
#define BOOST_TEST_MODULE "test_read_switching_forcefield_simulator" #ifdef BOOST_TEST_DYN_LINK #include <boost/test/unit_test.hpp> #else #include <boost/test/included/unit_test.hpp> #endif #include <test/util/make_empty_input.hpp> #include <mjolnir/input/read_simulator.hpp> BOOST_AUTO_TEST_CASE(read_newtonian_switch...
35.08
96
0.5457
yutakasi634
0df00df517389e016f776d3f7e67e37cafc6e251
2,053
cpp
C++
src/prod/src/Reliability/LoadBalancing/PLBSchedulerActionType.cpp
AnthonyM/service-fabric
c396ea918714ea52eab9c94fd62e018cc2e09a68
[ "MIT" ]
1
2018-03-15T02:09:21.000Z
2018-03-15T02:09:21.000Z
src/prod/src/Reliability/LoadBalancing/PLBSchedulerActionType.cpp
AnthonyM/service-fabric
c396ea918714ea52eab9c94fd62e018cc2e09a68
[ "MIT" ]
null
null
null
src/prod/src/Reliability/LoadBalancing/PLBSchedulerActionType.cpp
AnthonyM/service-fabric
c396ea918714ea52eab9c94fd62e018cc2e09a68
[ "MIT" ]
null
null
null
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" #include "...
34.79661
116
0.677058
AnthonyM
0df4b3329e0de46f9807b95bcf579616af14b7d9
14,900
hpp
C++
include/fibio/concurrent/concurrent_queue.hpp
qicosmos/fibio
9242be982a62d82eefdc489d88ccbdda180d861f
[ "BSD-2-Clause" ]
8
2015-03-29T16:37:47.000Z
2021-11-18T23:53:56.000Z
include/fibio/concurrent/concurrent_queue.hpp
qicosmos/fibio
9242be982a62d82eefdc489d88ccbdda180d861f
[ "BSD-2-Clause" ]
null
null
null
include/fibio/concurrent/concurrent_queue.hpp
qicosmos/fibio
9242be982a62d82eefdc489d88ccbdda180d861f
[ "BSD-2-Clause" ]
2
2015-08-31T02:51:04.000Z
2021-06-02T09:41:04.000Z
// // concurrent_queue.hpp // fibio // // Created by Chen Xu on 14-3-4. // Copyright (c) 2014 0d0a.com. All rights reserved. // #ifndef fibio_concurrent_queue_hpp #define fibio_concurrent_queue_hpp #include <deque> #include <queue> #include <iterator> #include <fibio/fibers/mutex.hpp> #include <fibio/fibers/condi...
32.603939
190
0.493087
qicosmos
0df83f299f88ec7f3dcb1e1d40d9e02ad288c9c9
914
cpp
C++
RangeQuery/SparseTable.cpp
FranciscoThiesen/contest-notebook
e856796e9aeb2cde1623b64efae9716997d6a117
[ "WTFPL" ]
278
2017-03-09T02:41:51.000Z
2022-02-08T23:38:28.000Z
RangeQuery/SparseTable.cpp
vsourav/Algorithm-DataStructures
9399f43dd0d13e5771c42c2540cd36079f5bae43
[ "WTFPL" ]
1
2017-12-30T19:58:00.000Z
2017-12-30T19:58:00.000Z
RangeQuery/SparseTable.cpp
vsourav/Algorithm-DataStructures
9399f43dd0d13e5771c42c2540cd36079f5bae43
[ "WTFPL" ]
87
2017-05-28T17:38:39.000Z
2022-02-10T15:52:31.000Z
#include <iostream> #include <vector> using namespace std; int main() { vector<int> v = {5, 2, 4, 7, 6, 3, 1, 2}; vector<int> log_table(v.size() + 1, 0); for (int i = 2; i < log_table.size(); i++) log_table[i] = log_table[i/2] + 1; vector<vector<int>> sparse_table(log_table.back() + 1, vect...
29.483871
100
0.503282
FranciscoThiesen
0dfc17dd6c5075ecdc4e3149ea614106fe1d641d
793
cpp
C++
source/unitTest/TimeOutTest.cpp
Stephouuu/Epitech-Bomberman
8650071a6a21ba2e0606e4d8e38794de37bdf39f
[ "Unlicense" ]
null
null
null
source/unitTest/TimeOutTest.cpp
Stephouuu/Epitech-Bomberman
8650071a6a21ba2e0606e4d8e38794de37bdf39f
[ "Unlicense" ]
null
null
null
source/unitTest/TimeOutTest.cpp
Stephouuu/Epitech-Bomberman
8650071a6a21ba2e0606e4d8e38794de37bdf39f
[ "Unlicense" ]
null
null
null
// // Game.cpp for in /home/avelin_j/bomberman/source/unitTest // // Made by avelin_j // Login <avelin_j@epitech.net> // // Started on Thu Jun 2 14:26:33 2016 avelin_j // Last update Sat Jun 4 15:53:23 2016 avelin_j // #include "TimeOut.hpp" #include "gtest.h" class TimeOutTest : public::testing::Test { public:...
16.87234
60
0.684741
Stephouuu
0dfc672a36c2ee1e614df999d27ada1e76c73250
3,909
cpp
C++
SysLib/Program/Process_Command.cpp
kravitz/transims4
ea0848bf3dc71440d54724bb3ecba3947b982215
[ "NASA-1.3" ]
2
2018-04-27T11:07:02.000Z
2020-04-24T06:53:21.000Z
SysLib/Program/Process_Command.cpp
idkravitz/transims4
ea0848bf3dc71440d54724bb3ecba3947b982215
[ "NASA-1.3" ]
null
null
null
SysLib/Program/Process_Command.cpp
idkravitz/transims4
ea0848bf3dc71440d54724bb3ecba3947b982215
[ "NASA-1.3" ]
null
null
null
//********************************************************* // Process_Command.cpp - Process a Token Command //********************************************************* #include "User_Program.hpp" //--------------------------------------------------------- // Process_Command //---------------------------------------...
22.465517
83
0.518547
kravitz
df008988f5d069dee83311a710facda450890380
492
cpp
C++
NKZX_NOI_OJ/P1172.cpp
Rose2073/RoseCppSource
bdaf5de04049b07bbe0e1ef976d1fbe72520fa03
[ "Apache-2.0" ]
1
2021-04-05T16:26:00.000Z
2021-04-05T16:26:00.000Z
NKZX_NOI_OJ/P1172.cpp
Rose2073/RoseCppSource
bdaf5de04049b07bbe0e1ef976d1fbe72520fa03
[ "Apache-2.0" ]
null
null
null
NKZX_NOI_OJ/P1172.cpp
Rose2073/RoseCppSource
bdaf5de04049b07bbe0e1ef976d1fbe72520fa03
[ "Apache-2.0" ]
null
null
null
#include<cstdio> int main(){ char a[11]; scanf("%s",a); int lostI=10,v=0; for(int i=0;i<11;i++){ if(a[i]=='?'){ lostI = i; continue; } v += (a[i]!='X'?(a[i]-'0'):10) * (10-i); } int v2 = 0,r=-1; for(;v2 <= (lostI==9?10:9);v2++){ if((v+v...
18.222222
48
0.337398
Rose2073
df018bf2da17112a5fb861c04de1c8869aace43d
53
cpp
C++
libs/Core/src/Syntax/ISyntaxMissingToken.cpp
henrikfroehling/interlinck
d9d947b890d9286c6596c687fcfcf016ef820d6b
[ "MIT" ]
null
null
null
libs/Core/src/Syntax/ISyntaxMissingToken.cpp
henrikfroehling/interlinck
d9d947b890d9286c6596c687fcfcf016ef820d6b
[ "MIT" ]
19
2021-12-01T20:37:23.000Z
2022-02-14T21:05:43.000Z
libs/Core/src/Syntax/ISyntaxMissingToken.cpp
henrikfroehling/interlinck
d9d947b890d9286c6596c687fcfcf016ef820d6b
[ "MIT" ]
null
null
null
#include "argos-Core/Syntax/ISyntaxMissingToken.hpp"
26.5
52
0.830189
henrikfroehling
df057bfaeca0493991746d3e53032367bce8ea9d
1,816
cpp
C++
sesion8/sesion8_casa/ejercicio_14.cpp
dmateos-ugr/FP
6d3ec8eeccbb72582367c8cf97aecb2227cc7b9e
[ "MIT" ]
1
2018-12-11T09:32:59.000Z
2018-12-11T09:32:59.000Z
sesion8/sesion8_casa/ejercicio_14.cpp
dmateos-ugr/FP
6d3ec8eeccbb72582367c8cf97aecb2227cc7b9e
[ "MIT" ]
null
null
null
sesion8/sesion8_casa/ejercicio_14.cpp
dmateos-ugr/FP
6d3ec8eeccbb72582367c8cf97aecb2227cc7b9e
[ "MIT" ]
2
2018-11-13T12:32:35.000Z
2018-11-27T14:43:30.000Z
#include <iostream> using namespace std; const int TAMANO_MAX = 100; struct Matriz{ int filas; int columnas; int elementos[TAMANO_MAX][TAMANO_MAX]; }; Matriz PedirMatriz(){ Matriz matriz; cout << "Introduce el número de las filas de la matriz: "; cin >> matriz.filas; cout << "Introduce el número de las colum...
22.987342
67
0.627203
dmateos-ugr
df080549b395f6418c7a71da5512df62cfb47232
16,240
cpp
C++
src/RFu328_TempSensor.cpp
jeremypoulter/RFu328_TempSensor
e75495720024def346719b7bf0cdc1202a63dad3
[ "Apache-2.0" ]
null
null
null
src/RFu328_TempSensor.cpp
jeremypoulter/RFu328_TempSensor
e75495720024def346719b7bf0cdc1202a63dad3
[ "Apache-2.0" ]
null
null
null
src/RFu328_TempSensor.cpp
jeremypoulter/RFu328_TempSensor
e75495720024def346719b7bf0cdc1202a63dad3
[ "Apache-2.0" ]
null
null
null
/////////////////////////////////////////////////////////////////////////////// // // LLAP very low power example - RFu-328 only // /////////////////////////////////////////////////////////////////////////////// // // Target: Ciseco RFu-328 // version: 0.1 // date: 25 August 2013 // // copyright/left...
29.42029
247
0.623584
jeremypoulter
df0d1733df7abde66106a8823218662cd1ac0d63
778
cpp
C++
190.cpp
nitin-maharana/LeetCode
d5e99fa313df3fda65bf385f46f8a62b6d061306
[ "MIT" ]
4
2016-02-28T17:09:14.000Z
2017-04-15T15:56:08.000Z
190.cpp
nitin-maharana/LeetCode
d5e99fa313df3fda65bf385f46f8a62b6d061306
[ "MIT" ]
null
null
null
190.cpp
nitin-maharana/LeetCode
d5e99fa313df3fda65bf385f46f8a62b6d061306
[ "MIT" ]
null
null
null
/* * Written by Nitin Kumar Maharana * nitin.maharana@gmail.com */ class Solution { public: uint32_t reverseBits1(uint32_t n) { uint32_t result = 0; for(int i = 0; i < 32; i++) { result <<= 1; result |= (n & 1); n >>= 1; } return...
18.52381
39
0.344473
nitin-maharana
df101d60b6e94740546a222c335700d31c342aca
841
cxx
C++
tests/cpp/abstract_types.cxx
Erotemic/misc
6f8460a690d05e7e0117becc6cae9902cbe2cedd
[ "Apache-2.0" ]
5
2021-04-29T21:07:18.000Z
2021-09-29T08:46:08.000Z
tests/cpp/abstract_types.cxx
Erotemic/misc
6f8460a690d05e7e0117becc6cae9902cbe2cedd
[ "Apache-2.0" ]
null
null
null
tests/cpp/abstract_types.cxx
Erotemic/misc
6f8460a690d05e7e0117becc6cae9902cbe2cedd
[ "Apache-2.0" ]
1
2018-04-07T12:26:21.000Z
2018-04-07T12:26:21.000Z
#include <iostream> #include <memory> #include <thread> #include <chrono> #include <mutex> class Parent { public: Parent() : parent(2), foo(42) { } int parent; int foo; }; class Child : public Parent { public: Child() : child(1) { } int child; }; void func(Parent const& p){ //st...
15.574074
62
0.53151
Erotemic
df12161dc158eb84a4d9972e893cf2c2202ed4d2
1,849
hpp
C++
src/color/gray/convert/hwb.hpp
3l0w/color
e42d0933b6b88564807bcd5f49e9c7f66e24990a
[ "Apache-2.0" ]
null
null
null
src/color/gray/convert/hwb.hpp
3l0w/color
e42d0933b6b88564807bcd5f49e9c7f66e24990a
[ "Apache-2.0" ]
null
null
null
src/color/gray/convert/hwb.hpp
3l0w/color
e42d0933b6b88564807bcd5f49e9c7f66e24990a
[ "Apache-2.0" ]
1
2022-03-03T07:55:24.000Z
2022-03-03T07:55:24.000Z
#ifndef color_gray_convert_hwb #define color_gray_convert_hwb #include "../../_internal/convert.hpp" #include "../../_internal/reformat.hpp" #include "../../generic/operation/invert.hpp" namespace color { namespace _internal { template < typename gray_tag_name ,t...
32.438596
195
0.652785
3l0w
df135cf80dc7e96d933353ba68a735378dd7f8ac
275
cpp
C++
tests/NovelRT.Tests/main.cpp
FiniteReality/NovelRT
3d51eceb4f5fc630db3ea51fe3981febcc10c578
[ "MIT" ]
null
null
null
tests/NovelRT.Tests/main.cpp
FiniteReality/NovelRT
3d51eceb4f5fc630db3ea51fe3981febcc10c578
[ "MIT" ]
null
null
null
tests/NovelRT.Tests/main.cpp
FiniteReality/NovelRT
3d51eceb4f5fc630db3ea51fe3981febcc10c578
[ "MIT" ]
null
null
null
// Copyright © Matt Jones and Contributors. Licensed under the MIT License (MIT). See LICENCE.md in the repository root for more information. #include "gtest/gtest.h" int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }
27.5
141
0.723636
FiniteReality
df1465d0d49e96fc0e304080eb2e18470105efef
5,267
cpp
C++
cadscene_gl.cpp
maximum-wong6/nvpro-samplesn
1e3ded90acc0466ca4f80f5158cf1fb786d27029
[ "Apache-2.0" ]
165
2016-02-16T14:29:09.000Z
2022-03-19T09:35:19.000Z
cadscene_gl.cpp
maximum-wong6/nvpro-samplesn
1e3ded90acc0466ca4f80f5158cf1fb786d27029
[ "Apache-2.0" ]
12
2016-02-16T22:26:59.000Z
2021-05-18T20:57:51.000Z
cadscene_gl.cpp
maximum-wong6/nvpro-samplesn
1e3ded90acc0466ca4f80f5158cf1fb786d27029
[ "Apache-2.0" ]
40
2016-02-16T15:01:26.000Z
2021-03-06T04:59:13.000Z
/* * Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
30.445087
130
0.681413
maximum-wong6
df1e0a20b6bcd9fc6969fcefaa9825a4e013598e
9,099
hpp
C++
include/boost/test/unit_test_gui.hpp
udoe/DebugViewPP
92d9308d9f1052530bc8eec9167a9fdafe672f21
[ "BSL-1.0" ]
572
2017-09-18T13:57:16.000Z
2022-03-30T06:54:05.000Z
include/boost/test/unit_test_gui.hpp
udoe/DebugViewPP
92d9308d9f1052530bc8eec9167a9fdafe672f21
[ "BSL-1.0" ]
165
2015-01-06T12:59:17.000Z
2017-09-14T12:19:29.000Z
include/boost/test/unit_test_gui.hpp
udoe/DebugViewPP
92d9308d9f1052530bc8eec9167a9fdafe672f21
[ "BSL-1.0" ]
91
2017-10-17T09:15:18.000Z
2022-03-27T17:30:32.000Z
// (C) Copyright Gert-Jan de Vos 2012. // 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) // See http://boosttestui.wordpress.com/ for the boosttestui home page. #ifndef BOOST_TEST_UNIT_TEST_GUI_HPP ...
24.928767
110
0.62941
udoe
df1e767307db5d5544657987f94b33d9b8ca9c8d
4,514
cpp
C++
Level1_SensorNode/sensor_all/i2c_basics.cpp
srnrtkmh/RoomSeeker
b0b61a7008cd81fbde7280d6f2965ea1b31e0ed8
[ "BSD-3-Clause" ]
null
null
null
Level1_SensorNode/sensor_all/i2c_basics.cpp
srnrtkmh/RoomSeeker
b0b61a7008cd81fbde7280d6f2965ea1b31e0ed8
[ "BSD-3-Clause" ]
null
null
null
Level1_SensorNode/sensor_all/i2c_basics.cpp
srnrtkmh/RoomSeeker
b0b61a7008cd81fbde7280d6f2965ea1b31e0ed8
[ "BSD-3-Clause" ]
null
null
null
//================================================================================================// // // // FILE : i2c_basics.cpp // // MEMO : This li...
69.446154
100
0.285335
srnrtkmh
df215d6723eff9270951f8cdc4fb4b0470b04e54
3,800
cpp
C++
src/components/EventQueue.cpp
KirmesBude/REGoth-bs
2e13dc3b9005744fccd7cea9c7e7cc1f94809e4a
[ "MIT" ]
399
2019-01-06T17:55:18.000Z
2022-03-21T17:41:18.000Z
src/components/EventQueue.cpp
KirmesBude/REGoth-bs
2e13dc3b9005744fccd7cea9c7e7cc1f94809e4a
[ "MIT" ]
101
2019-04-18T21:03:53.000Z
2022-01-08T13:27:01.000Z
src/components/EventQueue.cpp
KirmesBude/REGoth-bs
2e13dc3b9005744fccd7cea9c7e7cc1f94809e4a
[ "MIT" ]
56
2019-04-10T10:18:27.000Z
2022-02-08T01:23:31.000Z
#include "EventQueue.hpp" #include <RTTI/RTTI_EventQueue.hpp> #include <Scene/BsSceneObject.h> #include <exception/Throw.hpp> namespace REGoth { using SharedEMessage = EventQueue::SharedEMessage; EventQueue::EventQueue(const bs::HSceneObject& parent) : bs::Component(parent) { } void EventQueue::handl...
24.203822
98
0.647368
KirmesBude
afffab2e5fd8138aa9793d36670bea612e3a5040
1,981
cpp
C++
src/Entity/Bullet.cpp
ikkentim/arduino-game
e7de46066dbd740397268a5d4a7fa2c191573f4d
[ "Apache-2.0" ]
null
null
null
src/Entity/Bullet.cpp
ikkentim/arduino-game
e7de46066dbd740397268a5d4a7fa2c191573f4d
[ "Apache-2.0" ]
null
null
null
src/Entity/Bullet.cpp
ikkentim/arduino-game
e7de46066dbd740397268a5d4a7fa2c191573f4d
[ "Apache-2.0" ]
null
null
null
#include "Bullet.h" #include "../FastMath.h" #include <avr/pgmspace.h> #include "Player.h" #include "Asteroid.h" #include "../Random.h" #define DEFAULT_VELOCITY 300.0f const int8_t bulletShape[] PROGMEM = { 0, 2, 0, 0 }; Bullet::Bullet(Game *game, Level *level, Player *player) : BaseEntity(game, level) { ...
31.951613
112
0.664816
ikkentim
b30013f97237b7ffa7678f4d9983384f82fd956d
639
cpp
C++
android-31/android/provider/SyncStateContract_Constants.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
12
2020-03-26T02:38:56.000Z
2022-03-14T08:17:26.000Z
android-31/android/provider/SyncStateContract_Constants.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
1
2021-01-27T06:07:45.000Z
2021-11-13T19:19:43.000Z
android-29/android/provider/SyncStateContract_Constants.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
3
2021-02-02T12:34:55.000Z
2022-03-08T07:45:57.000Z
#include "../../JString.hpp" #include "./SyncStateContract_Constants.hpp" namespace android::provider { // Fields JString SyncStateContract_Constants::CONTENT_DIRECTORY() { return getStaticObjectField( "android.provider.SyncStateContract$Constants", "CONTENT_DIRECTORY", "Ljava/lang/String;" ); } //...
22.034483
91
0.741784
YJBeetle
b301fe7bf72a1055fe17018cbb06aa0e985641d7
3,146
cpp
C++
rpidrone/src/parsers/arduino_config_parser.cpp
Krenol/RPiDrone
8cd78e2af74da7afc3400dd1e31f51c312457ea3
[ "MIT" ]
null
null
null
rpidrone/src/parsers/arduino_config_parser.cpp
Krenol/RPiDrone
8cd78e2af74da7afc3400dd1e31f51c312457ea3
[ "MIT" ]
null
null
null
rpidrone/src/parsers/arduino_config_parser.cpp
Krenol/RPiDrone
8cd78e2af74da7afc3400dd1e31f51c312457ea3
[ "MIT" ]
null
null
null
#include "arduino_config_parser.hpp" #include "misc.hpp" namespace drone { void parse_config(const Config &config, std::string &out) { out = CONFIG_TOKEN; //controllers //roll out += (TO_STRING<double>(config.controls.escs.roll_rate.k_p, 2) + DELIM_VAL + TO_STRING<double>(confi...
87.388889
174
0.696758
Krenol
b302031818a421c0fa70b1e99b468c09ca9aa26a
1,168
cpp
C++
Source/Catastrophe/Characters/Caterpiller/CaterpillarAiController.cpp
Enderderder/CatastropheGame
251888d384ae59966788cce7bbbc98c3c0be7433
[ "MIT" ]
null
null
null
Source/Catastrophe/Characters/Caterpiller/CaterpillarAiController.cpp
Enderderder/CatastropheGame
251888d384ae59966788cce7bbbc98c3c0be7433
[ "MIT" ]
null
null
null
Source/Catastrophe/Characters/Caterpiller/CaterpillarAiController.cpp
Enderderder/CatastropheGame
251888d384ae59966788cce7bbbc98c3c0be7433
[ "MIT" ]
null
null
null
// Fill out your copyright notice in the Description page of Project Settings. #include "CaterpillarAiController.h" #include "Classes/BehaviorTree/BlackboardComponent.h" #include "Caterpillar.h" #include "DebugUtility/CatastropheDebug.h" ACaterpillarAiController::ACaterpillarAiController() { } void ACaterpillar...
22.901961
125
0.780822
Enderderder
b30ca370ebe03c77723c8468cc2dcafed72faba6
401
cpp
C++
DSA Crack Sheet/solutions/165. Diameter of Binary Tree.cpp
sumanthbolle/DataStructures-Algorithms
d04edbcdd0794f5668e26bd003b46548150eccbc
[ "MIT" ]
1
2021-02-11T15:07:17.000Z
2021-02-11T15:07:17.000Z
DSA Crack Sheet/solutions/165. Diameter of Binary Tree.cpp
sumanthbolle/DataStructures-Algorithms
d04edbcdd0794f5668e26bd003b46548150eccbc
[ "MIT" ]
null
null
null
DSA Crack Sheet/solutions/165. Diameter of Binary Tree.cpp
sumanthbolle/DataStructures-Algorithms
d04edbcdd0794f5668e26bd003b46548150eccbc
[ "MIT" ]
null
null
null
int height(Node *root, int &ans) { if (root == NULL) return 0; int left_height = height(root->left, ans); int right_height = height(root->right, ans); ans = max(ans, 1 + left_height + right_height); return 1 + max(left_height, right_height); } int diameter(Node *root) { if (root == NULL) return 0...
19.095238
49
0.643392
sumanthbolle
b30d6efffa222aeda2100b64e9d226fa57daf5d2
1,733
cpp
C++
aws-cpp-sdk-network-firewall/source/model/Attachment.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2022-02-10T08:06:54.000Z
2022-02-10T08:06:54.000Z
aws-cpp-sdk-network-firewall/source/model/Attachment.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2021-10-14T16:57:00.000Z
2021-10-18T10:47:24.000Z
aws-cpp-sdk-network-firewall/source/model/Attachment.cpp
ravindra-wagh/aws-sdk-cpp
7d5ff01b3c3b872f31ca98fb4ce868cd01e97696
[ "Apache-2.0" ]
1
2021-11-09T12:02:58.000Z
2021-11-09T12:02:58.000Z
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/network-firewall/model/Attachment.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { n...
19.043956
97
0.725332
perfectrecall
b30eebda955429ea07e199a47ae2348298d0f4a4
605
cpp
C++
515. Find Largest Value in Each Tree Row.cpp
qinenergy/leetCode
79f960795445470a16a4755b05aa05f99e5c616b
[ "MIT" ]
3
2017-02-22T14:28:27.000Z
2017-04-26T16:26:06.000Z
515. Find Largest Value in Each Tree Row.cpp
qinenergy/leetCode
79f960795445470a16a4755b05aa05f99e5c616b
[ "MIT" ]
null
null
null
515. Find Largest Value in Each Tree Row.cpp
qinenergy/leetCode
79f960795445470a16a4755b05aa05f99e5c616b
[ "MIT" ]
null
null
null
class Solution2 { public: vector<int> largestValues(TreeNode* root) { queue<TreeNode*> q; int cnt1(0), cnt2(0), max(INT_MIN); vector<int> rst; if (root == nullptr) return rst; q.push(root); cnt1 = 1; while (!q.empty()) { max = INT_MIN; while (cnt1--) { auto node = q.front(); q.pop(...
19.516129
47
0.522314
qinenergy
b31a5ccefd50659cd5a0a1e54356cd431ac35173
1,928
cpp
C++
tests/performance/performance_tests.cpp
EDCBlockchain/blockchain
41c74b981658d79d770b075191cfb14faeb84dab
[ "MIT" ]
12
2019-10-31T13:24:21.000Z
2021-12-29T22:02:22.000Z
tests/performance/performance_tests.cpp
DONOVA28/blockchain
41c74b981658d79d770b075191cfb14faeb84dab
[ "MIT" ]
null
null
null
tests/performance/performance_tests.cpp
DONOVA28/blockchain
41c74b981658d79d770b075191cfb14faeb84dab
[ "MIT" ]
11
2019-07-24T12:46:29.000Z
2021-11-27T04:41:48.000Z
// see LICENSE.txt #include <boost/test/unit_test.hpp> #include <graphene/chain/database.hpp> #include <graphene/chain/account_object.hpp> #include <graphene/chain/asset_object.hpp> #include <graphene/chain/proposal_object.hpp> #include <graphene/db/simple_index.hpp> #include <fc/crypto/digest.hpp> #include "../co...
30.603175
80
0.696058
EDCBlockchain
b31aefe730c5cdafb68b6ed964a14cf3c2de7b60
672
hpp
C++
include/lol/def/NetworkTestingGameLatencyExperimentResults.hpp
Maufeat/LeagueAPI
be7cb5093aab3f27d95b3c0e1d5700aa50126c47
[ "BSD-3-Clause" ]
1
2020-07-22T11:14:55.000Z
2020-07-22T11:14:55.000Z
include/lol/def/NetworkTestingGameLatencyExperimentResults.hpp
Maufeat/LeagueAPI
be7cb5093aab3f27d95b3c0e1d5700aa50126c47
[ "BSD-3-Clause" ]
null
null
null
include/lol/def/NetworkTestingGameLatencyExperimentResults.hpp
Maufeat/LeagueAPI
be7cb5093aab3f27d95b3c0e1d5700aa50126c47
[ "BSD-3-Clause" ]
4
2018-12-01T22:48:21.000Z
2020-07-22T11:14:56.000Z
#pragma once #include "../base_def.hpp" #include "NetworkTestingGameLatencyExperimentResult.hpp" namespace lol { struct NetworkTestingGameLatencyExperimentResults { std::vector<NetworkTestingGameLatencyExperimentResult> results; std::string timestamp; }; inline void to_json(json& j, const NetworkTestin...
39.529412
95
0.739583
Maufeat
b32209b3c6dbfcef1be3ed675f3d716ae6a534af
4,478
hh
C++
tests/OptionParsingTest.hh
azjezz/hh-clilib
ef39116c527ac2496c985657f93af0253c9d8227
[ "MIT" ]
null
null
null
tests/OptionParsingTest.hh
azjezz/hh-clilib
ef39116c527ac2496c985657f93af0253c9d8227
[ "MIT" ]
null
null
null
tests/OptionParsingTest.hh
azjezz/hh-clilib
ef39116c527ac2496c985657f93af0253c9d8227
[ "MIT" ]
null
null
null
<?hh // strict /* * Copyright (c) 2017-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ namespace Facebook\CLILib; use namespace HH\Lib\Vec; use function Facebook\FBExpect\expect...
29.460526
76
0.627959
azjezz
b3255eaf3e90c598f2185df962b6fe55e14c78c3
1,299
hpp
C++
fileid/document/excel/structures/ColRelU.hpp
DBHeise/fileid
3e3bacf859445020999d0fc30301ac86973c3737
[ "MIT" ]
13
2016-03-13T17:57:46.000Z
2021-12-21T12:11:41.000Z
fileid/document/excel/structures/ColRelU.hpp
DBHeise/fileid
3e3bacf859445020999d0fc30301ac86973c3737
[ "MIT" ]
9
2016-04-07T13:07:58.000Z
2020-05-30T13:31:59.000Z
fileid/document/excel/structures/ColRelU.hpp
DBHeise/fileid
3e3bacf859445020999d0fc30301ac86973c3737
[ "MIT" ]
5
2017-04-20T14:47:55.000Z
2021-03-08T03:27:17.000Z
#pragma once #include <string> #include "../../../common.hpp" #include "../IParsable.hpp" #include "../MSExcel.common.hpp" namespace oless { namespace excel { namespace structures { // see: https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-xls/6e5eed10-5b77-43d6-8dd0-37345f8654ad //...
34.184211
169
0.633564
DBHeise
b328529ac3b775cbfb9770aea5999ae9ff89f121
3,353
cpp
C++
VM Project/PEInjector.cpp
levisre/x86-Code-Virtualizer
0a5ec3309d9e1418ab3385e1e80eb3a8494cb6fa
[ "MIT" ]
128
2020-09-02T21:25:07.000Z
2022-03-21T08:26:05.000Z
VM Project/PEInjector.cpp
kao-was-here/x86-Code-Virtualizer
0a5ec3309d9e1418ab3385e1e80eb3a8494cb6fa
[ "MIT" ]
null
null
null
VM Project/PEInjector.cpp
kao-was-here/x86-Code-Virtualizer
0a5ec3309d9e1418ab3385e1e80eb3a8494cb6fa
[ "MIT" ]
29
2020-09-03T02:33:00.000Z
2022-02-03T05:51:53.000Z
#include "stdafx.h" #include "PEInjector.h" // This Class Used to Read PE data and add some data to it // this data can stored as new section or any thing else CPEInjector::CPEInjector(void) { pPEBytes=0; pOverlay=0; OverlaySize=0; PEFileSize=0; } CPEInjector::~CPEInjector(void) { } void ...
27.710744
156
0.749776
levisre
b32e9cc7aa0abe777de6de131d7f8d074233ea23
1,204
hh
C++
include/FG/PowerInfoComponent.hh
gczuczy/sfticks
fe03086473aab62dd3560ef93efd322d312ff33a
[ "Beerware" ]
null
null
null
include/FG/PowerInfoComponent.hh
gczuczy/sfticks
fe03086473aab62dd3560ef93efd322d312ff33a
[ "Beerware" ]
null
null
null
include/FG/PowerInfoComponent.hh
gczuczy/sfticks
fe03086473aab62dd3560ef93efd322d312ff33a
[ "Beerware" ]
null
null
null
#ifndef SFT_FGPOWERINFOCOMPONENT_H #define SFT_FGPOWERINFOCOMPONENT_H #include "FG/Component.hh" #include <set> namespace FG { class PowerInfoComponent: public Component { public: PowerInfoComponent() = delete; PowerInfoComponent(Reader& _reader, ObjectHeader& _fgoh); virtual ~PowerInfoComponent()=...
26.173913
84
0.756645
gczuczy
b3379f517a0c7f86f88cc9bdca98f8638a6ab4b3
1,183
cpp
C++
Only G UVA/Prims.cpp
TiwariAnil/Algorithmic_Puzzles
13a6b2ed8e8fd0176b9b58c073b2e9847e7ba774
[ "MIT" ]
null
null
null
Only G UVA/Prims.cpp
TiwariAnil/Algorithmic_Puzzles
13a6b2ed8e8fd0176b9b58c073b2e9847e7ba774
[ "MIT" ]
null
null
null
Only G UVA/Prims.cpp
TiwariAnil/Algorithmic_Puzzles
13a6b2ed8e8fd0176b9b58c073b2e9847e7ba774
[ "MIT" ]
null
null
null
typedef struct { int v; /* neighboring vertex */ int weight; /* edge weight */ } edge; typedef struct { edge edges[MAXV+1][MAXDEGREE]; /* adjacency info */ int degree[MAXV+1]; /* outdegree of each vertex */ int nvertices; /* number of vertices in graph */ int nedges; /* number of edges in graph */ } graph; prim(...
21.509091
53
0.573964
TiwariAnil
b33b1ba313d10b61b00cf8ad2b1feb7795ce86f4
9,091
cpp
C++
Bonepick/projects/chain/Main.cpp
dodgelafnitz/Bonepick
1a12193e5d0cf5d4061d0d3cbd1529a206ed38f4
[ "MIT" ]
3
2018-10-09T02:08:57.000Z
2020-08-12T20:26:29.000Z
Bonepick/projects/chain/Main.cpp
dodgelafnitz/Bonepick
1a12193e5d0cf5d4061d0d3cbd1529a206ed38f4
[ "MIT" ]
1
2018-09-30T02:42:39.000Z
2018-09-30T02:42:39.000Z
Bonepick/projects/chain/Main.cpp
dodgelafnitz/Bonepick
1a12193e5d0cf5d4061d0d3cbd1529a206ed38f4
[ "MIT" ]
null
null
null
#include "system/EntityManager.h" #include "utility/math/Vector.h" #include "utility/math/VectorMath.h" #include "io/ascii/Graphics.h" #include "io/ascii/Input.h" #include <algorithm> using namespace Ascii; namespace { struct LinkData { LinkData(int previous) : prevLinkedId(previous), nextLinkedI...
26.048711
80
0.578044
dodgelafnitz
b33bf59bb9f2f43327d554f513c45cb971c3d52a
10,234
cpp
C++
cubemapPacker.cpp
xkong/envtools
682eeac42a7f173e24333ec4e94f87251ce6d579
[ "MIT" ]
68
2015-01-22T14:26:42.000Z
2022-02-17T23:39:20.000Z
cubemapPacker.cpp
xkong/envtools
682eeac42a7f173e24333ec4e94f87251ce6d579
[ "MIT" ]
10
2015-03-15T19:34:25.000Z
2019-01-29T09:46:02.000Z
cubemapPacker.cpp
xkong/envtools
682eeac42a7f173e24333ec4e94f87251ce6d579
[ "MIT" ]
11
2016-06-03T16:20:23.000Z
2020-07-13T11:29:42.000Z
#include <iostream> #include <getopt.h> #include <cstdlib> #include <sstream> #include <unistd.h> #include <limits> #include <algorithm> #include <cmath> #include <cstdio> #include <OpenImageIO/imageio.h> #include <OpenImageIO/filter.h> #include <OpenImageIO/imagebuf.h> #include <OpenImageIO/imagebufalgo.h> #include ...
30.01173
155
0.499707
xkong