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
3793223b4ec6e9ef4e22e8ca887ab535ff0580dd
321
cpp
C++
SVAF/layer/ICPEstimateLayer.cpp
Ewenwan/RVAF
4f6dd3e3fa0ca55b43582995b8eff83c864163eb
[ "BSD-2-Clause" ]
null
null
null
SVAF/layer/ICPEstimateLayer.cpp
Ewenwan/RVAF
4f6dd3e3fa0ca55b43582995b8eff83c864163eb
[ "BSD-2-Clause" ]
null
null
null
SVAF/layer/ICPEstimateLayer.cpp
Ewenwan/RVAF
4f6dd3e3fa0ca55b43582995b8eff83c864163eb
[ "BSD-2-Clause" ]
1
2019-09-18T06:56:55.000Z
2019-09-18T06:56:55.000Z
#include "ICPEstimateLayer.h" namespace svaf{ ICPEstimateLayer::ICPEstimateLayer(LayerParameter& layer) : StereoLayer(layer) { } ICPEstimateLayer::~ICPEstimateLayer() { } bool ICPEstimateLayer::Run(vector<Block>& images, vector<Block>& disp, LayerParameter& layer, void* param){ return true; } } ...
16.894737
108
0.713396
Ewenwan
3794edcf7df1f9337c3a59405d7b01c19ac47473
27,441
cpp
C++
EventManager.cpp
fredenigma/VesselBuilder1
4f332ec4e6fa80e1a63d8d920bb50e033c5b67f6
[ "MIT" ]
null
null
null
EventManager.cpp
fredenigma/VesselBuilder1
4f332ec4e6fa80e1a63d8d920bb50e033c5b67f6
[ "MIT" ]
null
null
null
EventManager.cpp
fredenigma/VesselBuilder1
4f332ec4e6fa80e1a63d8d920bb50e033c5b67f6
[ "MIT" ]
null
null
null
#include "VesselBuilder1.h" #include "DialogControl.h" #include "EventManager.h" #include "MeshManager.h" #include "AnimationManager.h" #include "MET.h" #include "ConfigurationManager.h" #include <Windows.h> #pragma comment (lib, "winmm.lib") Event::Event(VesselBuilder1 *_VB1) { VB1 = _VB1; Trigger.Type = TRIGGER::...
24.479037
245
0.698845
fredenigma
3794faa7d3354e109bf0ec34929b8c36b94d2603
1,249
cpp
C++
1828. Queries on Number of Points Inside a Circle/solution.cpp
ChrisKonstantinou/leetcode
f5ff58e4040a2352053c9db6106da3d94a3cf1e5
[ "MIT" ]
null
null
null
1828. Queries on Number of Points Inside a Circle/solution.cpp
ChrisKonstantinou/leetcode
f5ff58e4040a2352053c9db6106da3d94a3cf1e5
[ "MIT" ]
7
2022-02-20T14:18:22.000Z
2022-03-13T20:29:06.000Z
1828. Queries on Number of Points Inside a Circle/solution.cpp
ChrisKonstantinou/leetcode
f5ff58e4040a2352053c9db6106da3d94a3cf1e5
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <math.h> using namespace std; class Solution { public: bool isInside(vector<int>& point, vector<int>& circle) { // point[0] = x coord, point[1] = y coord // circle[0] = x center coord, circle[1] = y circle coord, circle[2] = radius ...
27.755556
91
0.52522
ChrisKonstantinou
3797df9a4c8f35ae692e28c8b658fc637ddf7087
1,006
hpp
C++
machiavelli/src/character_card_factory.hpp
robhendriks/avans-cpp2
beaae5650d4446cd271f7f9b07b0e90deb80d994
[ "WTFPL" ]
null
null
null
machiavelli/src/character_card_factory.hpp
robhendriks/avans-cpp2
beaae5650d4446cd271f7f9b07b0e90deb80d994
[ "WTFPL" ]
null
null
null
machiavelli/src/character_card_factory.hpp
robhendriks/avans-cpp2
beaae5650d4446cd271f7f9b07b0e90deb80d994
[ "WTFPL" ]
null
null
null
#ifndef character_card_factory_h #define character_card_factory_h #include <memory> #include <map> #include "character_card.hpp" namespace machiavelli { class character_card_factory { std::map<int, std::shared_ptr<character_card>> m_characters; public: character_card_factory() : m_...
29.588235
89
0.671968
robhendriks
379aa88d0fd8b835dfac8525c194d99f492b523a
877
cpp
C++
Lavio/Lavio/Source/World.cpp
landon912/Lavio
c726f43ed98f630d68ea6bc234f367b67578c918
[ "MIT" ]
1
2021-04-29T12:43:59.000Z
2021-04-29T12:43:59.000Z
Lavio/Lavio/Source/World.cpp
landon912/Lavio
c726f43ed98f630d68ea6bc234f367b67578c918
[ "MIT" ]
null
null
null
Lavio/Lavio/Source/World.cpp
landon912/Lavio
c726f43ed98f630d68ea6bc234f367b67578c918
[ "MIT" ]
null
null
null
// **************************************** Lavio Engine **************************************** // **************************** Copyright (c) 2017 All Rights Reserved ************************** // ***************************** Landon Kirk (landonaddison@yahoo.com) ************************** #include "World.h" #inclu...
25.057143
97
0.549601
landon912
379f04c5eedbb1337c257086c7490d6ab37b31f1
240
cpp
C++
qscoj/The 16th UESTC Programming Contest Warmup # 2/data.cpp
emengdeath/acmcode
cc1b0e067464e754d125856004a991d6eb92a2cd
[ "MIT" ]
null
null
null
qscoj/The 16th UESTC Programming Contest Warmup # 2/data.cpp
emengdeath/acmcode
cc1b0e067464e754d125856004a991d6eb92a2cd
[ "MIT" ]
null
null
null
qscoj/The 16th UESTC Programming Contest Warmup # 2/data.cpp
emengdeath/acmcode
cc1b0e067464e754d125856004a991d6eb92a2cd
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; int main(){ // freopen("j.in","w",stdout); srand((int)time(0)); int n=100; cout<<n<<endl; for (int i=1;i<=n;i++){ int x=rand()%10000; // if (rand()&1)x=-x; cout<<x<<' '; } return 0; }
16
30
0.545833
emengdeath
37a053f8b73053329a2969d5247bcc914ff93211
3,255
cpp
C++
src/autowiring/test/DtorCorrectnessTest.cpp
CaseyCarter/autowiring
48e95a71308318c8ffb7ed1348e034fd9110f70c
[ "Apache-2.0" ]
87
2015-01-18T00:43:06.000Z
2022-02-11T17:40:50.000Z
src/autowiring/test/DtorCorrectnessTest.cpp
CaseyCarter/autowiring
48e95a71308318c8ffb7ed1348e034fd9110f70c
[ "Apache-2.0" ]
274
2015-01-03T04:50:49.000Z
2021-03-08T09:01:09.000Z
src/autowiring/test/DtorCorrectnessTest.cpp
CaseyCarter/autowiring
48e95a71308318c8ffb7ed1348e034fd9110f70c
[ "Apache-2.0" ]
15
2015-09-30T20:58:43.000Z
2020-12-19T21:24:56.000Z
// Copyright (C) 2012-2018 Leap Motion, Inc. All rights reserved. #include "stdafx.h" #include <autowiring/CoreThread.h> #include ATOMIC_HEADER using namespace std; class CtorDtorListener; template<int i> class MyCtorDtorListenerN; class DtorCorrectnessTest : public testing::Test { public: DtorCorrectnessTest(vo...
26.463415
140
0.745008
CaseyCarter
37a05ea2d6f3a57b95a6bdf3ad31ea6489f607a5
1,350
cpp
C++
dynamic_programming/basic/codeforces/F1363B/Solution.cpp
ashtishad/problem-solving
5dfb71b04c2334c2cce53afd089ae1634b7e8100
[ "MIT" ]
17
2020-11-12T17:41:41.000Z
2021-10-01T13:19:42.000Z
dynamic_programming/basic/codeforces/F1363B/Solution.cpp
ashtishad/problem-solving
5dfb71b04c2334c2cce53afd089ae1634b7e8100
[ "MIT" ]
15
2019-09-23T06:33:47.000Z
2020-06-04T18:55:45.000Z
dynamic_programming/basic/codeforces/F1363B/Solution.cpp
ashtishad/problem-solving
5dfb71b04c2334c2cce53afd089ae1634b7e8100
[ "MIT" ]
16
2019-09-21T23:19:58.000Z
2020-06-18T07:26:39.000Z
// problem name: Subsequence Hate // problem link: https://codeforces.com/contest/1363/problem/B // contest link: https://codeforces.com/contest/1363 // time: (?) // author: reyad // other_tags: data structures, brute force, strings, implementation // difficulty_level: beginner #include <bits/stdc++.h> ...
25
79
0.508889
ashtishad
37a1124543c026461cc4d855173c2bf58440d67b
5,716
cpp
C++
IndieLib/tutorials/basic/03_IND_Image/Tutorial03.cpp
DarthMike/indielib-crossplatform
473a589ae050b6d1c274cf58adf08731e63ae870
[ "Zlib" ]
29
2015-03-05T08:11:23.000Z
2020-11-11T08:27:22.000Z
IndieLib/tutorials/basic/03_IND_Image/Tutorial03.cpp
PowerOlive/indielib-crossplatform
473a589ae050b6d1c274cf58adf08731e63ae870
[ "Zlib" ]
1
2019-04-03T18:59:01.000Z
2019-04-14T11:46:45.000Z
IndieLib/tutorials/basic/03_IND_Image/Tutorial03.cpp
PowerOlive/indielib-crossplatform
473a589ae050b6d1c274cf58adf08731e63ae870
[ "Zlib" ]
9
2015-03-05T08:17:10.000Z
2021-08-09T07:15:37.000Z
/***************************************************************************************** * Desc: Tutorial a) 03 Ind_Image *****************************************************************************************/ /*********************************** The zlib License ************************************ * * Copyr...
37.116883
102
0.675297
DarthMike
37a112fa7652063fbe656f38c8492f2670566def
23,614
cpp
C++
test/test.cpp
bb107/Certificate
161cbf04132a437718a338f378672cfd0010c244
[ "Apache-2.0" ]
2
2019-11-20T18:23:04.000Z
2020-09-23T03:14:19.000Z
test/test.cpp
bb107/Certificate
161cbf04132a437718a338f378672cfd0010c244
[ "Apache-2.0" ]
null
null
null
test/test.cpp
bb107/Certificate
161cbf04132a437718a338f378672cfd0010c244
[ "Apache-2.0" ]
null
null
null
#include "../Certificate/stdafx.h" #include <cstdio> #pragma warning(disable:4996) LPCSTR ekus[] = { szOID_PKIX_KP_SERVER_AUTH, szOID_PKIX_KP_CLIENT_AUTH, szOID_PKIX_KP_CODE_SIGNING, szOID_PKIX_KP_EMAIL_PROTECTION, szOID_PKIX_KP_IPSEC_END_SYSTEM, szOID_PKIX_KP_IPSEC_TUNNEL, szOID_PKIX_KP_IPSEC_USER, szOID_PKIX_KP_TIME...
30.119898
151
0.76425
bb107
37ad0e0fc07e22114787a54cd5df7e28c3de5468
1,441
cpp
C++
networklib/src/request.cpp
zina1995/Twitter-API-C-Library
87b29c63b89be6feb05adbe05ebed0213aa67f9b
[ "MIT" ]
null
null
null
networklib/src/request.cpp
zina1995/Twitter-API-C-Library
87b29c63b89be6feb05adbe05ebed0213aa67f9b
[ "MIT" ]
null
null
null
networklib/src/request.cpp
zina1995/Twitter-API-C-Library
87b29c63b89be6feb05adbe05ebed0213aa67f9b
[ "MIT" ]
null
null
null
#include <networklib/request.hpp> #include <ostream> #include <sstream> #include <string> #include <networklib/detail/encode.hpp> namespace network { auto to_string(Request const& x) -> std::string { constexpr char const* CR = "\r\n"; auto encoded_body = detail::key_value_encode(x.messages); auto resul...
27.711538
76
0.650243
zina1995
37ad35a16ede8eb936bcc03102047f13a9632826
1,848
cpp
C++
src/format.cpp
SusannaMaria/CppND-System-Monitor-Project-Updated
a07c51465107c38c51fb7ee12122b87068d9c7e0
[ "MIT" ]
null
null
null
src/format.cpp
SusannaMaria/CppND-System-Monitor-Project-Updated
a07c51465107c38c51fb7ee12122b87068d9c7e0
[ "MIT" ]
null
null
null
src/format.cpp
SusannaMaria/CppND-System-Monitor-Project-Updated
a07c51465107c38c51fb7ee12122b87068d9c7e0
[ "MIT" ]
null
null
null
/** * @file format.cpp * @author Susanna Maria, David Silver * @brief Implementation of Helper function to print out Strings of monitor in * NCurses UI * @version 1.0 * @date 2020-06-21 * * @copyright MIT License * */ #include "format.h" #include <iomanip> #include <sstream> #include <string> using namespac...
24
79
0.645563
SusannaMaria
37b112b16b98220f644b2b135a7a83815ee1630b
2,008
cpp
C++
main.cpp
chenillax/E4C_Challenge_Carbozer
3c23b9f106d6b148b84ff2af7e87f8a4ece8b771
[ "Apache-2.0" ]
null
null
null
main.cpp
chenillax/E4C_Challenge_Carbozer
3c23b9f106d6b148b84ff2af7e87f8a4ece8b771
[ "Apache-2.0" ]
null
null
null
main.cpp
chenillax/E4C_Challenge_Carbozer
3c23b9f106d6b148b84ff2af7e87f8a4ece8b771
[ "Apache-2.0" ]
null
null
null
#include <cstdio> #include <cstdlib> #include <iostream> #include <string> #include "user.hpp" #include "datacenter.hpp" #include "view.hpp" #include "video.hpp" int main(){ //First Example : Sylvain watching Squeezie's FAQ DataCenter datacenter = DataCenter(); std::string name_video = "CECI EST UNE FOIRE ...
51.487179
315
0.669323
chenillax
37b4f8a260b833543e131848f43871ed9cfae0fd
2,351
hpp
C++
src/opengl/glengine/MenuItem.hpp
Sebanisu/Field-Map-Editor
2f37986459785a78766de34e38fc3e21db8b6f14
[ "Unlicense" ]
null
null
null
src/opengl/glengine/MenuItem.hpp
Sebanisu/Field-Map-Editor
2f37986459785a78766de34e38fc3e21db8b6f14
[ "Unlicense" ]
66
2021-09-27T23:58:02.000Z
2022-01-10T20:41:36.000Z
src/opengl/glengine/MenuItem.hpp
Sebanisu/Field-Map-Editor
2f37986459785a78766de34e38fc3e21db8b6f14
[ "Unlicense" ]
null
null
null
// // Created by pcvii on 11/29/2021. // #ifndef MYPROJECT_MenuItem_HPP #define MYPROJECT_MenuItem_HPP #include "Event/EventItem.hpp" namespace glengine { class MenuItem { private: class MenuItemConcept { protected: MenuItemConcept() = default; MenuItemConcept(const MenuItemCon...
25.554348
70
0.652063
Sebanisu
37b965098d66d69d9435a42b9861493cf1c18dbe
8,674
cc
C++
recorder/src/test/cpp/test_syslog_tsdb_metric_formatter.cc
Flipkart/fk-prof
ed801c32a8c3704204be670e16c6465297431e1a
[ "Apache-2.0", "MIT" ]
7
2017-01-17T11:29:08.000Z
2021-06-07T10:36:59.000Z
recorder/src/test/cpp/test_syslog_tsdb_metric_formatter.cc
Flipkart/fk-prof
ed801c32a8c3704204be670e16c6465297431e1a
[ "Apache-2.0", "MIT" ]
106
2017-01-12T04:38:40.000Z
2017-10-04T11:12:54.000Z
recorder/src/test/cpp/test_syslog_tsdb_metric_formatter.cc
Flipkart/fk-prof
ed801c32a8c3704204be670e16c6465297431e1a
[ "Apache-2.0", "MIT" ]
4
2016-12-22T08:56:27.000Z
2018-07-26T17:13:42.000Z
#include "../../main/cpp/metric_formatter.hh" #include "test.hh" #include <ctime> #include <regex> #include <string> #include <unistd.h> #include <limits.h> std::string time_now() { std::time_t t = std::time(nullptr); std::tm tm = *std::localtime(&t); char buffer[120]; strftime(buffer, sizeof(buffer),...
32.245353
298
0.669587
Flipkart
37b9cddabec7230c94acef3117814b66c3bdae1d
9,972
cpp
C++
libraries/model/src/ModelTransformer.cpp
Dream-maerD/ELL-master
9554afa876cc9e8e87529df3f3d99220abc711d6
[ "MIT" ]
null
null
null
libraries/model/src/ModelTransformer.cpp
Dream-maerD/ELL-master
9554afa876cc9e8e87529df3f3d99220abc711d6
[ "MIT" ]
null
null
null
libraries/model/src/ModelTransformer.cpp
Dream-maerD/ELL-master
9554afa876cc9e8e87529df3f3d99220abc711d6
[ "MIT" ]
null
null
null
//////////////////////////////////////////////////////////////////////////////////////////////////// // // Project: Embedded Learning Library (ELL) // File: ModelTransformer.cpp (model) // Authors: Chuck Jacobs // /////////////////////////////////////////////////////////////////////////////////////////////////...
35.112676
173
0.596169
Dream-maerD
37ba15b1ec8e073b656f3d253374420a9ebd6803
1,796
cpp
C++
HDUOJ/3452/dp_tree.cpp
codgician/ACM
391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4
[ "MIT" ]
2
2018-02-14T01:59:31.000Z
2018-03-28T03:30:45.000Z
HDUOJ/3452/dp_tree.cpp
codgician/ACM
391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4
[ "MIT" ]
null
null
null
HDUOJ/3452/dp_tree.cpp
codgician/ACM
391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4
[ "MIT" ]
2
2017-12-30T02:46:35.000Z
2018-03-28T03:30:49.000Z
#include <iostream> #include <cstdio> #include <algorithm> #include <cmath> #include <string> #include <cstring> #include <iomanip> #include <climits> #include <stack> #include <queue> #include <vector> #include <set> #include <map> #include <functional> #include <iterator> #include <cassert> using name...
19.311828
56
0.490535
codgician
37be33dbf8395c489cc1daa664a0908997bcc1bb
185
cpp
C++
zerojudge/a004.cpp
yangszwei/notes
a144981b42fb268832eb69926c0076cc28c82e26
[ "MIT" ]
null
null
null
zerojudge/a004.cpp
yangszwei/notes
a144981b42fb268832eb69926c0076cc28c82e26
[ "MIT" ]
null
null
null
zerojudge/a004.cpp
yangszwei/notes
a144981b42fb268832eb69926c0076cc28c82e26
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int main() { int y; while (cin >> y) { cout << (((y % 4 == 0 && y % 100 != 0) || y % 400 == 0) ? "閏年" : "平年") << endl; } }
18.5
87
0.416216
yangszwei
37bf269a10fe76efc66400ed4c75b58005f56f01
357
cpp
C++
world/source/unit_tests/World_test.cpp
sidav/shadow-of-the-wyrm
747afdeebed885b1a4f7ab42f04f9f756afd3e52
[ "MIT" ]
60
2019-08-21T04:08:41.000Z
2022-03-10T13:48:04.000Z
world/source/unit_tests/World_test.cpp
cleancoindev/shadow-of-the-wyrm
51b23e98285ecb8336324bfd41ebf00f67b30389
[ "MIT" ]
3
2021-03-18T15:11:14.000Z
2021-10-20T12:13:07.000Z
world/source/unit_tests/World_test.cpp
cleancoindev/shadow-of-the-wyrm
51b23e98285ecb8336324bfd41ebf00f67b30389
[ "MIT" ]
8
2019-11-16T06:29:05.000Z
2022-01-23T17:33:43.000Z
#include "gtest/gtest.h" TEST(SW_World_World, serialization_id) { World world; EXPECT_EQ(ClassIdentifier::CLASS_ID_WORLD, world.get_class_identifier()); } TEST(SW_World_World, saveload) { World world, world2; ostringstream ss; world.serialize(ss); istringstream iss(ss.str()); world2.deserialize(iss)...
15.521739
75
0.731092
sidav
37c186e43ee4d07994abbdca287027346a790c61
2,179
hpp
C++
src/execute.hpp
sld-columbia/hl5
3170ec9bbab5234d0d2c883ed5cb41a177fcb0c6
[ "Apache-2.0" ]
20
2020-02-20T22:04:59.000Z
2022-02-27T00:26:11.000Z
src/execute.hpp
sld-columbia/hl5
3170ec9bbab5234d0d2c883ed5cb41a177fcb0c6
[ "Apache-2.0" ]
null
null
null
src/execute.hpp
sld-columbia/hl5
3170ec9bbab5234d0d2c883ed5cb41a177fcb0c6
[ "Apache-2.0" ]
11
2020-09-23T23:46:55.000Z
2021-12-26T07:53:06.000Z
/* Copyright 2017 Columbia University, SLD Group */ // // execute.h - Robert Margelli // execute stage header file. // // Division algorithm for DIV, DIVU, REM, REMU instructions. Division by zero // and overflow semantics are compliant with the RISC-V specs (page 32). // #include <systemc.h> #include "cynw_flex_chan...
23.945055
184
0.727857
sld-columbia
37c22dded8aaef2d3b0e3182da08d1aec6dd8897
11,736
cpp
C++
Source/ThirdParty/ANGLE/src/tests/perf_tests/TracePerfTest.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Source/ThirdParty/ANGLE/src/tests/perf_tests/TracePerfTest.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Source/ThirdParty/ANGLE/src/tests/perf_tests/TracePerfTest.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
// // Copyright 2020 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // TracePerf: // Performance test for ANGLE replaying traces. // #include <gtest/gtest.h> #include "common/PackedEnums.h" #include "common/sy...
30.965699
100
0.679277
jacadcaps
37c2a64b88c868bbf773b3640a6d79f75be43a0a
3,518
cpp
C++
test/unittests/lib/parser/test_ParserFuncType.cpp
WasmVM/wass
e35962e1637a1445ab8ad97e5a06ee4d59b49fd7
[ "BSD-3-Clause" ]
null
null
null
test/unittests/lib/parser/test_ParserFuncType.cpp
WasmVM/wass
e35962e1637a1445ab8ad97e5a06ee4d59b49fd7
[ "BSD-3-Clause" ]
null
null
null
test/unittests/lib/parser/test_ParserFuncType.cpp
WasmVM/wass
e35962e1637a1445ab8ad97e5a06ee4d59b49fd7
[ "BSD-3-Clause" ]
null
null
null
#include <gtest/gtest.h> #include <any> #include <vector> #include <Error.hpp> #include <structure/FuncType.hpp> #include <parser/ParserContext.hpp> #include <parser/ParserFuncType.hpp> #include <Helper.hpp> TEST(unittest_ParserFuncType, empty){ std::vector<char> data(create_char_vector("(func)")); ParserContext ...
36.268041
93
0.73394
WasmVM
37c44b9eb8e5081e2dff69fae128a98ac4500c9e
5,072
hh
C++
include/GB01BOptrChangeCrossSection.hh
BahHas/VParticles
3548dffdebfde0634b8c1b649a1d6dcacfaf12bb
[ "Unlicense" ]
null
null
null
include/GB01BOptrChangeCrossSection.hh
BahHas/VParticles
3548dffdebfde0634b8c1b649a1d6dcacfaf12bb
[ "Unlicense" ]
null
null
null
include/GB01BOptrChangeCrossSection.hh
BahHas/VParticles
3548dffdebfde0634b8c1b649a1d6dcacfaf12bb
[ "Unlicense" ]
null
null
null
// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration...
47.849057
98
0.581625
BahHas
37c5a322be381b13ec2a502c4e1a2f5ca962a7a7
775
cpp
C++
src/gtp_lz_stub.cpp
wentaol/zero-problem
887e61826225137b5c7e40feea8ae932bdcf333b
[ "CC0-1.0" ]
5
2018-12-12T01:53:27.000Z
2022-03-17T00:58:12.000Z
src/gtp_lz_stub.cpp
wentaol/zero-problem
887e61826225137b5c7e40feea8ae932bdcf333b
[ "CC0-1.0" ]
null
null
null
src/gtp_lz_stub.cpp
wentaol/zero-problem
887e61826225137b5c7e40feea8ae932bdcf333b
[ "CC0-1.0" ]
1
2020-01-11T00:12:25.000Z
2020-01-11T00:12:25.000Z
#include "gtp_lz_stub.h" #include "log_file.h" GtpLzStub::GtpLzStub(const std::string& e) : ess(e) { } std::string GtpLzStub::getLine() { std::string line; if (ess && std::getline(ess, line)) { Log(line); return line; } return std::string(); } std::string GtpLzStub::getLine(const std::str...
15.816327
53
0.576774
wentaol
37c8e7aeba8519b984ca241594fb3e79ff0df195
2,352
cpp
C++
dprof/libdprof/dprof/ipc/ipc_message.cpp
openharmony-gitee-mirror/ark_runtime_core
2e6f195caf482dc9607efda7cfb5cc5f98da5598
[ "Apache-2.0" ]
1
2021-09-09T03:17:23.000Z
2021-09-09T03:17:23.000Z
dprof/libdprof/dprof/ipc/ipc_message.cpp
openharmony-gitee-mirror/ark_runtime_core
2e6f195caf482dc9607efda7cfb5cc5f98da5598
[ "Apache-2.0" ]
null
null
null
dprof/libdprof/dprof/ipc/ipc_message.cpp
openharmony-gitee-mirror/ark_runtime_core
2e6f195caf482dc9607efda7cfb5cc5f98da5598
[ "Apache-2.0" ]
1
2021-09-13T11:21:57.000Z
2021-09-13T11:21:57.000Z
/* * Copyright (c) 2021 Huawei Device Co., 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 a...
29.037037
85
0.617772
openharmony-gitee-mirror
37c9801635037205743d7450780d028b62468482
6,813
cpp
C++
3dbody/util/ConfigMap.cpp
GuangfuWang/threedbody
31c544c25e524cecf107a505c3b4438fc04cd766
[ "BSD-2-Clause" ]
null
null
null
3dbody/util/ConfigMap.cpp
GuangfuWang/threedbody
31c544c25e524cecf107a505c3b4438fc04cd766
[ "BSD-2-Clause" ]
null
null
null
3dbody/util/ConfigMap.cpp
GuangfuWang/threedbody
31c544c25e524cecf107a505c3b4438fc04cd766
[ "BSD-2-Clause" ]
null
null
null
#include "util/ConfigMap.h" #include "util/StringHelper.h" #include "util/Log.h" #include <fstream> namespace gf { BasicInfoMap *BasicInfoMap::instance = nullptr; ConfigMap *ConfigMap::instance = nullptr; BasicInfoMap::BasicInfoMap() { init(); } Ref_Unique<BasicInfoMap> BasicInfoMa...
35.857895
76
0.530016
GuangfuWang
37cb62a0450c24ec6ba7f0f2275726b800a2a5a7
3,699
hpp
C++
Sisyphe/interpreter/plugins/libpdbPlg/interpreter/src/IDiaSourceFilePtrInterpreter.hpp
tedi21/SisypheReview
f7c05bad1ccc036f45870535149d9685e1120c2c
[ "Unlicense" ]
null
null
null
Sisyphe/interpreter/plugins/libpdbPlg/interpreter/src/IDiaSourceFilePtrInterpreter.hpp
tedi21/SisypheReview
f7c05bad1ccc036f45870535149d9685e1120c2c
[ "Unlicense" ]
null
null
null
Sisyphe/interpreter/plugins/libpdbPlg/interpreter/src/IDiaSourceFilePtrInterpreter.hpp
tedi21/SisypheReview
f7c05bad1ccc036f45870535149d9685e1120c2c
[ "Unlicense" ]
null
null
null
/* * IDiaSourceFilePtrInterpreter.hpp * * * @date 12-07-2020 * @author Teddy DIDE * @version 1.00 * Pdb Interpreter generated by gensources. */ #ifndef _IDIASOURCEFILEPTR_INTERPRETER_H_ #define _IDIASOURCEFILEPTR_INTERPRETER_H_ #include "config.hpp" #include "Macros.hpp" #include "Base.hpp" #i...
36.99
190
0.751825
tedi21
56ccc437d9941ea64853c24f60763cfe9b20a828
1,529
cpp
C++
engine/src/components/image.cpp
fernand0aguilar/BomberAliens
17516bd24d74568945ecfe809f6582a85704c093
[ "MIT" ]
null
null
null
engine/src/components/image.cpp
fernand0aguilar/BomberAliens
17516bd24d74568945ecfe809f6582a85704c093
[ "MIT" ]
null
null
null
engine/src/components/image.cpp
fernand0aguilar/BomberAliens
17516bd24d74568945ecfe809f6582a85704c093
[ "MIT" ]
null
null
null
#include "components/image.hpp" #include "game.hpp" using namespace engine; bool ImageComponent::init(){ Log::instance.info("Iniciando componente de imagem: " + main_path); if(main_path == ""){ Log::instance.error("Caminho inválido!"); return false; } SDL_Surface *image = IMG_Load(ma...
26.824561
92
0.676259
fernand0aguilar
56cf4f24bed86827a04a480155555715398fe165
3,391
cpp
C++
a4hist/src/axis.cpp
a4/a4
e1de89260cb3894908f1d01dfacea125abc79da9
[ "BSL-1.0" ]
4
2015-04-07T20:25:16.000Z
2019-04-27T15:04:02.000Z
a4hist/src/axis.cpp
a4/a4
e1de89260cb3894908f1d01dfacea125abc79da9
[ "BSL-1.0" ]
null
null
null
a4hist/src/axis.cpp
a4/a4
e1de89260cb3894908f1d01dfacea125abc79da9
[ "BSL-1.0" ]
1
2021-06-02T17:22:35.000Z
2021-06-02T17:22:35.000Z
#include <algorithm> #include <iostream> #include <limits> #include <a4/axis.h> #include <a4/hist/Histograms.pb.h> namespace a4{ namespace hist{ UNIQUE<Axis> Axis::clone() const { UNIQUE<pb::Axis> pb = get_proto(); return from_proto(*pb); }; UNIQUE<Axis> Axis::from_proto(const pb::Axis& msg) { if (msg....
20.932099
83
0.609555
a4
56d2efb9bdf40aae8eab3718799d648f20dd27dd
1,215
cpp
C++
Scheduling/FCFS/DiffArrivalTime/fcfs.cpp
Gurubalan-GIT/OS-Algorithms
0a5906b8e36343fe54e50094cf256dfea51422fd
[ "BSD-3-Clause" ]
null
null
null
Scheduling/FCFS/DiffArrivalTime/fcfs.cpp
Gurubalan-GIT/OS-Algorithms
0a5906b8e36343fe54e50094cf256dfea51422fd
[ "BSD-3-Clause" ]
null
null
null
Scheduling/FCFS/DiffArrivalTime/fcfs.cpp
Gurubalan-GIT/OS-Algorithms
0a5906b8e36343fe54e50094cf256dfea51422fd
[ "BSD-3-Clause" ]
null
null
null
/* * Created Date: Tuesday April 9th 2019 * Author: Gurubalan Harikrishnan * Email-ID: gurubalan.work@gmail.com * ----- * Copyright (c) 2019 Gurubalan Harikrishnan */ #include<iostream> using namespace std; int main(){ int n,twt,ttat,temp1,temp2=0; int bt[100],at[100],wt[100],tat[100],st[100]; cout<<"...
22.924528
89
0.451852
Gurubalan-GIT
56dad6d7b7c06f5cd24f25ba619ccbb13e08632f
629
cpp
C++
04_template_meta_programming/18_type_list_00_head_tail.cpp
cpptt-book/2nd
d710af6df9ed2561bc7432be7b0b0b93dafecb0a
[ "CC0-1.0" ]
17
2015-01-07T08:10:09.000Z
2021-06-21T13:07:25.000Z
04_template_meta_programming/18_type_list_00_head_tail.cpp
cpptt-book/2nd
d710af6df9ed2561bc7432be7b0b0b93dafecb0a
[ "CC0-1.0" ]
null
null
null
04_template_meta_programming/18_type_list_00_head_tail.cpp
cpptt-book/2nd
d710af6df9ed2561bc7432be7b0b0b93dafecb0a
[ "CC0-1.0" ]
5
2015-05-02T19:07:43.000Z
2021-11-14T21:21:32.000Z
// Copyright (c) 2014 // Akira Takahashi, Fumiki Fukuda. // Released under the CC0 1.0 Universal license. #include <tuple> #include <type_traits> template <class Head, class... Tail> struct g { typedef Head head; typedef std::tuple<Tail...> tail; }; template <class... List> struct f { typedef typename g<List.....
18.5
48
0.669316
cpptt-book
56e4377256c65cc3aa5aacec8896da81819d5f70
6,789
cpp
C++
library/L2_HAL/sensors/battery/test/ltc4150_test.cpp
diarkia124/SJSU-Dev2
3385f034690d281c2720e17b0a6bdbe51a65113c
[ "Apache-2.0" ]
1
2019-11-25T20:31:07.000Z
2019-11-25T20:31:07.000Z
library/L2_HAL/sensors/battery/test/ltc4150_test.cpp
diarkia124/SJSU-Dev2
3385f034690d281c2720e17b0a6bdbe51a65113c
[ "Apache-2.0" ]
null
null
null
library/L2_HAL/sensors/battery/test/ltc4150_test.cpp
diarkia124/SJSU-Dev2
3385f034690d281c2720e17b0a6bdbe51a65113c
[ "Apache-2.0" ]
null
null
null
#include "L2_HAL/sensors/battery/ltc4150.hpp" #include "L2_HAL/sensors/battery/coulomb_counter.hpp" #include "L4_Testing/testing_frameworks.hpp" #include "L1_Peripheral/interrupt.hpp" #include "L1_Peripheral/gpio.hpp" #include "utility/units.hpp" #include "utility/log.hpp" namespace sjsu { auto GetLambda(InterruptCall...
43.242038
78
0.689498
diarkia124
56e55b0923b91eb87e368bfb46b4a39c12d3c740
2,868
cc
C++
ppapi/cpp/dev/audio_output_dev.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
ppapi/cpp/dev/audio_output_dev.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
ppapi/cpp/dev/audio_output_dev.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
// Copyright (c) 2017 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 "ppapi/cpp/dev/audio_output_dev.h" #include "ppapi/c/pp_bool.h" #include "ppapi/c/pp_errors.h" #include "ppapi/cpp/instance_handle.h" #inclu...
28.969697
80
0.723849
zealoussnow
56e8b254a097294d2995fcb3d9b47fac023e8cb5
1,101
hpp
C++
include/gbAudio/Exceptions.hpp
ComicSansMS/GhulbusAudio
895ed529d98f10cdbd68dcbcc5a5de655bb099d1
[ "MIT" ]
null
null
null
include/gbAudio/Exceptions.hpp
ComicSansMS/GhulbusAudio
895ed529d98f10cdbd68dcbcc5a5de655bb099d1
[ "MIT" ]
null
null
null
include/gbAudio/Exceptions.hpp
ComicSansMS/GhulbusAudio
895ed529d98f10cdbd68dcbcc5a5de655bb099d1
[ "MIT" ]
null
null
null
#ifndef GHULBUS_LIBRARY_INCLUDE_GUARD_AUDIO_EXCEPTIONS_HPP #define GHULBUS_LIBRARY_INCLUDE_GUARD_AUDIO_EXCEPTIONS_HPP /** @file * * @brief Exceptions. * @author Andreas Weis (der_ghulbus@ghulbus-inc.de) */ #include <gbAudio/config.hpp> #include <gbBase/Exception.hpp> namespace GHULBUS_AUDIO_NAMESPACE { /** Exceptio...
21.588235
98
0.703906
ComicSansMS
56e8f2b7b825adca7e275ce0b965086df5386b65
6,607
cpp
C++
c++/src/lac.cpp
LGDEMO/lac
49416fc738daa3d3e131b130242f2ab6eb84fb68
[ "Apache-2.0" ]
1
2021-08-05T12:12:57.000Z
2021-08-05T12:12:57.000Z
c++/src/lac.cpp
gokunwu/lac
407b5566f6c6aa6d9a43362871b71cf97d33a813
[ "Apache-2.0" ]
null
null
null
c++/src/lac.cpp
gokunwu/lac
407b5566f6c6aa6d9a43362871b71cf97d33a813
[ "Apache-2.0" ]
1
2021-08-09T12:37:39.000Z
2021-08-09T12:37:39.000Z
/* Copyright (c) 2020 Baidu, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
32.870647
119
0.629938
LGDEMO
56ecadb4f44795f155bdbd14acf2e0da84b92d2b
6,948
cxx
C++
smtk/mesh/moab/Readers.cxx
jcfr/SMTK
0069ea37f8f71a440b8f10a157b84a56ca004551
[ "BSD-3-Clause-Clear" ]
40
2015-02-21T19:55:54.000Z
2022-01-06T13:13:05.000Z
smtk/mesh/moab/Readers.cxx
jcfr/SMTK
0069ea37f8f71a440b8f10a157b84a56ca004551
[ "BSD-3-Clause-Clear" ]
127
2015-01-15T20:55:45.000Z
2021-08-19T17:34:15.000Z
smtk/mesh/moab/Readers.cxx
jcfr/SMTK
0069ea37f8f71a440b8f10a157b84a56ca004551
[ "BSD-3-Clause-Clear" ]
27
2015-03-04T14:17:51.000Z
2021-12-23T01:05:42.000Z
//============================================================================= // // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // ...
31.156951
95
0.691278
jcfr
56eddb4248c2f08e2b86c3ec34cb5fcc8617340c
383
hpp
C++
2015/Day18/src/Light.hpp
Xav83/AdventOfCode
7e305b89abe0a497efdab0f1a3bfe2bfc24b36d5
[ "MIT" ]
2
2019-11-14T18:11:02.000Z
2020-01-20T22:40:31.000Z
2015/Day18/src/Light.hpp
Xav83/AdventOfCode
7e305b89abe0a497efdab0f1a3bfe2bfc24b36d5
[ "MIT" ]
null
null
null
2015/Day18/src/Light.hpp
Xav83/AdventOfCode
7e305b89abe0a497efdab0f1a3bfe2bfc24b36d5
[ "MIT" ]
null
null
null
#pragma once #include <vector> using LightState = bool; class Light { public: Light(LightState initialState); ~Light(); virtual bool isOn() const; virtual bool isOff() const; void prepareNextState(const std::vector<std::reference_wrapper<Light>> &neighbors); void nextState(); private: LightState ...
15.958333
80
0.720627
Xav83
56ee8abe8ec1f8f557be87b17f55f4c777e23c09
4,926
hpp
C++
src/lib/include/black/logic/lex.hpp
black-sat/black
80902240987312fb0e6f00227a06e9f9c9728a67
[ "MIT" ]
4
2020-09-30T15:16:22.000Z
2021-09-20T15:02:39.000Z
src/lib/include/black/logic/lex.hpp
teodorov/black
4de280ded5e99cc515141b4acc35137ba32c2469
[ "MIT" ]
42
2020-07-15T13:46:11.000Z
2022-03-10T09:42:43.000Z
src/lib/include/black/logic/lex.hpp
teodorov/black
4de280ded5e99cc515141b4acc35137ba32c2469
[ "MIT" ]
3
2020-03-30T14:39:17.000Z
2022-03-18T14:05:33.000Z
// // BLACK - Bounded Ltl sAtisfiability ChecKer // // (C) 2019 Nicola Gigante // // 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 righ...
29.147929
80
0.623427
black-sat
56f96c06b18d4aa54fbee65911eed499bd335632
735
cpp
C++
File Processing/sequentialFile.cpp
jc-andrade/cpp-exercises
8cb6234c29d4d0d5bb588bdd168d30517e60e185
[ "MIT" ]
null
null
null
File Processing/sequentialFile.cpp
jc-andrade/cpp-exercises
8cb6234c29d4d0d5bb588bdd168d30517e60e185
[ "MIT" ]
null
null
null
File Processing/sequentialFile.cpp
jc-andrade/cpp-exercises
8cb6234c29d4d0d5bb588bdd168d30517e60e185
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include <fstream> // file stream #include <cstdlib> using namespace std; int main() { // ofsstream constructor opens file ofstream outClientFile("clients.txt", ios::out); // exit program if unable to create file if (!outClientFile) // overloaded ! operator { cerr << "Fi...
21
68
0.642177
jc-andrade
56febbfe632bd6e647d854a40fdacbeee91131b0
2,052
cxx
C++
test/mpi/cxx/comm/commname2.cxx
OpenCMISS-Dependencies/mpich2
cc5f4d3fd0f8c9f2774d10deaebdced77985d839
[ "Unlicense" ]
7
2015-12-31T03:15:50.000Z
2020-08-15T00:54:47.000Z
test/mpi/cxx/comm/commname2.cxx
grondo/mvapich2-cce
ec084d8e07db1cf2ac1352ee4c604ae7dbae55cb
[ "Intel", "mpich2", "Unlicense" ]
3
2015-12-30T22:28:15.000Z
2017-05-16T19:17:42.000Z
test/mpi/cxx/comm/commname2.cxx
grondo/mvapich2-cce
ec084d8e07db1cf2ac1352ee4c604ae7dbae55cb
[ "Intel", "mpich2", "Unlicense" ]
3
2015-12-29T22:14:56.000Z
2019-06-13T07:23:35.000Z
/* -*- Mode: C++; c-basic-offset:4 ; -*- */ /* * * (C) 2003 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ #include "mpi.h" #include "mpitestconf.h" #ifdef HAVE_IOSTREAM // Not all C++ compilers have iostream instead of iostream.h #include <iostream> #ifdef HAVE_NAMESPACE_STD // Th...
24.428571
71
0.575049
OpenCMISS-Dependencies
56fee6d8c1122247e1eeced1fadf0074045897e6
57
cpp
C++
Tga3D/Source/tga2dcore/tga2d/math/CommonMath.cpp
sarisman84/C-CommonUtilities
a3649c32232ec342c25b804001c16c295885ce0c
[ "MIT" ]
1
2022-03-10T11:43:24.000Z
2022-03-10T11:43:24.000Z
Tga3D/Source/tga2dcore/tga2d/math/CommonMath.cpp
sarisman84/C-CommonUtilities
a3649c32232ec342c25b804001c16c295885ce0c
[ "MIT" ]
null
null
null
Tga3D/Source/tga2dcore/tga2d/math/CommonMath.cpp
sarisman84/C-CommonUtilities
a3649c32232ec342c25b804001c16c295885ce0c
[ "MIT" ]
null
null
null
#include "stdafx.h" #include <tga2d/math/CommonMath.h>
19
35
0.719298
sarisman84
7102c1e66822922c85dd02983bbc02586b572c14
3,564
cpp
C++
Source/UnrealGT/Private/Streamers/GTThreadedTCPStreamer.cpp
charleshamesse/unrealgt
04f72c344b468a39337a2e6b2f12576f501bccfa
[ "MIT" ]
13
2020-04-19T22:30:54.000Z
2022-03-28T11:39:37.000Z
Source/UnrealGT/Private/Streamers/GTThreadedTCPStreamer.cpp
charleshamesse/unrealgt
04f72c344b468a39337a2e6b2f12576f501bccfa
[ "MIT" ]
9
2020-03-30T22:27:38.000Z
2022-03-24T16:49:37.000Z
Source/UnrealGT/Private/Streamers/GTThreadedTCPStreamer.cpp
charleshamesse/unrealgt
04f72c344b468a39337a2e6b2f12576f501bccfa
[ "MIT" ]
4
2020-05-10T18:41:16.000Z
2022-03-16T07:01:13.000Z
// Fill out your copyright notice in the Description page of Project Settings. #include "Streamers/GTThreadedTCPStreamer.h" #include <IPAddress.h> #include <SocketSubsystem.h> #include <Sockets.h> FGTThreadedTCPStreamer::FGTThreadedTCPStreamer(FString IPAddress, uint32 Port) : Socket(nullptr) , IPAddress(IPA...
28.741935
93
0.60578
charleshamesse
7105f4fbb57497a242234d787da69363763021c0
934
cc
C++
cpp/leetcode/151.reverse-words-in-a-string.cc
liubang/laboratory
747f239a123cd0c2e5eeba893b9a4d1536555b1e
[ "MIT" ]
3
2021-03-03T13:18:23.000Z
2022-02-09T07:49:24.000Z
cpp/leetcode/151.reverse-words-in-a-string.cc
liubang/laboratory
747f239a123cd0c2e5eeba893b9a4d1536555b1e
[ "MIT" ]
null
null
null
cpp/leetcode/151.reverse-words-in-a-string.cc
liubang/laboratory
747f239a123cd0c2e5eeba893b9a4d1536555b1e
[ "MIT" ]
1
2021-03-29T15:21:42.000Z
2021-03-29T15:21:42.000Z
#include <gtest/gtest.h> #include <string> namespace { class Solution { public: std::string reverseWords(const std::string& s) { int len = s.length(); if (len == 0 || len == 1) { return s; } std::string ret; int i = 0; while (s[i] == ' ' && i < len) { i++; } for (; i < l...
19.87234
52
0.512848
liubang
7106aa0f7cf7dae1a83d5fe0a0125962605fb522
10,698
cc
C++
src/box/memtx_rtree.cc
Mons/tarantool
35daf23419c88e12758d49c7c60d2cc5f8a00ad1
[ "BSD-2-Clause" ]
null
null
null
src/box/memtx_rtree.cc
Mons/tarantool
35daf23419c88e12758d49c7c60d2cc5f8a00ad1
[ "BSD-2-Clause" ]
null
null
null
src/box/memtx_rtree.cc
Mons/tarantool
35daf23419c88e12758d49c7c60d2cc5f8a00ad1
[ "BSD-2-Clause" ]
null
null
null
/* * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * conditions are met: * * 1. Redistributions of source code must retain the above * copyright notice, this list of conditions and the * following disclaimer. * * 2. Redistribu...
28.376658
85
0.645915
Mons
710924e57ad5a3ef8fe8fe0b2e58fea9253663d7
760
hpp
C++
include/telnetpp/options/suppress_ga/server.hpp
KazDragon/telnetpp
c9b49588fca2c2186189421d2711c0e4febe13ed
[ "MIT" ]
49
2015-12-15T22:35:32.000Z
2022-03-30T16:08:10.000Z
include/telnetpp/options/suppress_ga/server.hpp
KazDragon/telnetpp
c9b49588fca2c2186189421d2711c0e4febe13ed
[ "MIT" ]
188
2015-10-02T16:07:30.000Z
2022-03-08T06:53:29.000Z
include/telnetpp/options/suppress_ga/server.hpp
KazDragon/telnetpp
c9b49588fca2c2186189421d2711c0e4febe13ed
[ "MIT" ]
15
2015-10-02T06:56:36.000Z
2021-05-21T18:59:26.000Z
#pragma once #include "telnetpp/core.hpp" #include "telnetpp/options/basic_server.hpp" #include "telnetpp/options/suppress_ga/detail/protocol.hpp" namespace telnetpp { namespace options { namespace suppress_ga { //* ========================================================================= /// \class telnetpp::option...
30.4
77
0.594737
KazDragon
710b8e2cfdb05fdfdce2f0daf2aa35f19074c384
6,930
hpp
C++
RobotCode/src/objects/subsystems/chassis.hpp
ajcarney/VexCode2021-2022
d17a29ff2533046c283c12a6bff31f719565c3a6
[ "MIT" ]
null
null
null
RobotCode/src/objects/subsystems/chassis.hpp
ajcarney/VexCode2021-2022
d17a29ff2533046c283c12a6bff31f719565c3a6
[ "MIT" ]
null
null
null
RobotCode/src/objects/subsystems/chassis.hpp
ajcarney/VexCode2021-2022
d17a29ff2533046c283c12a6bff31f719565c3a6
[ "MIT" ]
null
null
null
/** * @file: ./RobotCode/src/objects/subsystems/chassis.hpp * @author: Aiden Carney * @reviewed_on: 2/16/2020 * @reviewed_by: Aiden Carney * * Contains class for the chassis subsystem * has methods for driving during autonomous including turning and driving straight */ #ifndef __CHASSIS_HPP__ #define __CHASSIS...
34.65
232
0.67518
ajcarney
710cb1c683fa7a3e4cfd85c312408a4967ead364
9,480
cpp
C++
src/controller/manager/ControllerManagerCache.cpp
seanngpack/swag-scanner-c-
afc905cbba40de424488d2b60bb0b506e5fee5f2
[ "MIT" ]
8
2020-09-03T21:39:27.000Z
2022-02-21T07:18:24.000Z
src/controller/manager/ControllerManagerCache.cpp
seanngpack/swag-scanner-c-
afc905cbba40de424488d2b60bb0b506e5fee5f2
[ "MIT" ]
13
2020-05-05T18:33:03.000Z
2020-10-27T06:04:00.000Z
src/controller/manager/ControllerManagerCache.cpp
seanngpack/swag-scanner-c-
afc905cbba40de424488d2b60bb0b506e5fee5f2
[ "MIT" ]
2
2020-11-29T18:04:03.000Z
2020-12-20T01:34:58.000Z
#include "ControllerManagerCache.h" #include "SR305.h" #include "Arduino.h" #include "CalibrationModel.h" #include "ScanModel.h" #include "ProcessingModel.h" #include "Visualizer.h" #include "CalibrationController.h" #include "ProcessingController.h" #include "ProcessingControllerGUI.h" #include "MoveMethod.h" #include...
37.768924
120
0.62827
seanngpack
710cd7933ad09da9ec2884f6dd2d4cc0a6f6858b
12,596
cpp
C++
Source/Render/RenderData/RenderLight.cpp
PolyAH/RealTimeGI
372638568ff22a4dea9c1ff448cec42e3e25aaf2
[ "MIT" ]
6
2021-10-31T14:43:04.000Z
2022-03-12T12:56:27.000Z
Source/Render/RenderData/RenderLight.cpp
PolyAH/RealTimeGI
372638568ff22a4dea9c1ff448cec42e3e25aaf2
[ "MIT" ]
null
null
null
Source/Render/RenderData/RenderLight.cpp
PolyAH/RealTimeGI
372638568ff22a4dea9c1ff448cec42e3e25aaf2
[ "MIT" ]
null
null
null
// Copyright (c) 2021 Ammar Herzallah // // 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, publis...
32.050891
115
0.753652
PolyAH
710e796ba96f393c07dc05a94e53bedbd64dbc21
5,904
cpp
C++
src/tablestore/core/impl/sync_client.cpp
TimeExceed/aliyun-tablestore-cpp-sdk
f8d2fdf500badf70073dff4e21a5d2d7aa7d3853
[ "BSD-3-Clause" ]
2
2020-02-24T06:51:55.000Z
2020-04-24T14:40:10.000Z
src/tablestore/core/impl/sync_client.cpp
TimeExceed/aliyun-tablestore-cpp-sdk
f8d2fdf500badf70073dff4e21a5d2d7aa7d3853
[ "BSD-3-Clause" ]
null
null
null
src/tablestore/core/impl/sync_client.cpp
TimeExceed/aliyun-tablestore-cpp-sdk
f8d2fdf500badf70073dff4e21a5d2d7aa7d3853
[ "BSD-3-Clause" ]
1
2020-02-24T06:51:57.000Z
2020-02-24T06:51:57.000Z
/* BSD 3-Clause License Copyright (c) 2017, Alibaba Cloud 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 above copyright notice, this list of conditi...
29.668342
91
0.747121
TimeExceed
7116d4f2d25eb3519c6fe7e70d5d8418c62dcecb
3,155
cpp
C++
PLatformner/Motor2D/j2LifeItem.cpp
AdrianFR99/Raider-of-the-Lost-World
6684f25ad98a9870a4b02767c1912e0984b6ccd5
[ "MIT" ]
1
2020-06-07T14:41:18.000Z
2020-06-07T14:41:18.000Z
PLatformner/Motor2D/j2LifeItem.cpp
AdrianFR99/Raider-of-the-Lost-World
6684f25ad98a9870a4b02767c1912e0984b6ccd5
[ "MIT" ]
null
null
null
PLatformner/Motor2D/j2LifeItem.cpp
AdrianFR99/Raider-of-the-Lost-World
6684f25ad98a9870a4b02767c1912e0984b6ccd5
[ "MIT" ]
null
null
null
#include "j2LifeItem.h" #include "j1App.h" #include "j1Textures.h" #include "j1Render.h" #include "j2Collision.h" #include "j2EntityManager.h" #include "j1Audio.h" #include "j2Player.h" j2LifeItem::j2LifeItem():j2StaticEntity() { name = "RedGem"; pugi::xml_parse_result result2 = config.load_file("config.xml"); Pa...
19.968354
125
0.689699
AdrianFR99
711e5739b829f17754c8990508504e7fafebec08
2,573
cpp
C++
src/data/RtMotion.cpp
cdla/murfi2
45dba5eb90e7f573f01706a50e584265f0f8ffa7
[ "Apache-2.0" ]
null
null
null
src/data/RtMotion.cpp
cdla/murfi2
45dba5eb90e7f573f01706a50e584265f0f8ffa7
[ "Apache-2.0" ]
null
null
null
src/data/RtMotion.cpp
cdla/murfi2
45dba5eb90e7f573f01706a50e584265f0f8ffa7
[ "Apache-2.0" ]
null
null
null
/*========================================================================= * RtMotion.cpp defines a class to store subject motion * * Copyright 2007-2013, the MURFI dev team. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License....
26.802083
77
0.650214
cdla
711ff260a7014389e2ce176840478ecd3f06dccf
868
hpp
C++
contrib/autoboost/autoboost/thread/csbl/memory/default_delete.hpp
CaseyCarter/autowiring
48e95a71308318c8ffb7ed1348e034fd9110f70c
[ "Apache-2.0" ]
87
2015-01-18T00:43:06.000Z
2022-02-11T17:40:50.000Z
contrib/autoboost/autoboost/thread/csbl/memory/default_delete.hpp
CaseyCarter/autowiring
48e95a71308318c8ffb7ed1348e034fd9110f70c
[ "Apache-2.0" ]
274
2015-01-03T04:50:49.000Z
2021-03-08T09:01:09.000Z
contrib/autoboost/autoboost/thread/csbl/memory/default_delete.hpp
CaseyCarter/autowiring
48e95a71308318c8ffb7ed1348e034fd9110f70c
[ "Apache-2.0" ]
15
2015-09-30T20:58:43.000Z
2020-12-19T21:24:56.000Z
// Copyright (C) 2013 Vicente J. Botet Escriba // // 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) // // 2013/10 Vicente J. Botet Escriba // Creation. #ifndef AUTOBOOST_CSBL_MEMORY_DEFAULT_DELETE_HPP #define AUT...
20.666667
80
0.753456
CaseyCarter
7122a27c62d75f08fe9887ebd7be1890f04d04bd
2,387
cxx
C++
examples/microservice.cxx
dmxvlx/microplugins
563dd6dd8c3331eb48872104b343cf5f53787d23
[ "BSL-1.0" ]
38
2018-08-26T16:39:21.000Z
2022-01-24T06:08:59.000Z
examples/microservice.cxx
dmxvlx/microplugins
563dd6dd8c3331eb48872104b343cf5f53787d23
[ "BSL-1.0" ]
1
2019-05-07T13:40:32.000Z
2019-05-07T17:57:26.000Z
examples/microservice.cxx
dmxvlx/microplugins
563dd6dd8c3331eb48872104b343cf5f53787d23
[ "BSL-1.0" ]
11
2018-09-07T03:02:21.000Z
2021-11-22T11:12:57.000Z
#ifndef MICROSERVICE_CXX #define MICROSERVICE_CXX // uncoment for disable debug information // #define NDEBUG #include "plugins.hpp" #include <csignal> static std::any service(std::any a1) { int ret = 0; std::shared_ptr<micro::plugins<>> manager = std::any_cast<std::shared_ptr<micro::plugins<>>>(a1); // we c...
31.826667
114
0.63008
dmxvlx
712350123414e9a6632a4ec8d73bf2669626945a
708
hpp
C++
src/core/Game.hpp
cstegel/opengl-fireworks
5acc2e2e937cae632bf2cf8074d209ea22d719c8
[ "MIT" ]
1
2017-10-09T06:56:17.000Z
2017-10-09T06:56:17.000Z
src/core/Game.hpp
cstegel/opengl-fireworks
5acc2e2e937cae632bf2cf8074d209ea22d719c8
[ "MIT" ]
null
null
null
src/core/Game.hpp
cstegel/opengl-fireworks
5acc2e2e937cae632bf2cf8074d209ea22d719c8
[ "MIT" ]
null
null
null
#pragma once #include "graphics/GraphicsManager.hpp" #include "core/InputManager.hpp" #include "game/GameLogic.hpp" #include "audio/AudioManager.hpp" #include "physics/PhysicsManager.hpp" #include "Common.hpp" #include <Ecs.hh> #include <glm/glm.hpp> namespace fw { class Game { public: Game(); ~Game(); int...
16.090909
39
0.716102
cstegel
7126919675c0c597ed2c142d3199384f6460458a
8,528
hpp
C++
global/matrix.hpp
thorfdbg/ssim
7d9d1b3c2b8e4338d8cec34088d948025c23e559
[ "Zlib" ]
9
2017-04-13T19:18:03.000Z
2021-01-21T15:29:48.000Z
global/matrix.hpp
thorfdbg/ssim
7d9d1b3c2b8e4338d8cec34088d948025c23e559
[ "Zlib" ]
1
2019-11-25T12:58:01.000Z
2019-12-05T18:15:55.000Z
global/matrix.hpp
thorfdbg/ssim
7d9d1b3c2b8e4338d8cec34088d948025c23e559
[ "Zlib" ]
1
2017-12-31T06:57:00.000Z
2017-12-31T06:57:00.000Z
/************************************************************************************ ** Copyright (C) 2005-2007 TU Berlin, Felix Oum, Thomas Richter ** ** ** ** This software is provided 'as-is', without any express or...
30.134276
86
0.57493
thorfdbg
71273727389b20c5b0dce353fe6b1beafe9bb1c7
436
cpp
C++
Hallowen.cpp
OrlykM/Algotester
6d0702b191610795beb959d378ab1feef6191b68
[ "CC0-1.0" ]
null
null
null
Hallowen.cpp
OrlykM/Algotester
6d0702b191610795beb959d378ab1feef6191b68
[ "CC0-1.0" ]
null
null
null
Hallowen.cpp
OrlykM/Algotester
6d0702b191610795beb959d378ab1feef6191b68
[ "CC0-1.0" ]
null
null
null
#include <iostream> using namespace std; int main() { int n; int k = 0; cin >> n; if (n >= 1 && n <= 100) { for (int i = 0; i < n; i++) { int j; cin >> j; if (j >= 1 && j <= 100) { if (j <= 2) { k++; } else if(j >= 3 && j <= 7) { k += 2; } else if(j >= 8 && j <...
11.473684
30
0.321101
OrlykM
71292e82dbe5711bf4bad6b22bda2db965c51bb8
2,721
cc
C++
example/unicode.cc
ColinH/PEGTL-0.32
b8b2d4cbc0568936709775b9fc83a2eb34bdc0c3
[ "MIT" ]
1
2015-02-13T02:03:29.000Z
2015-02-13T02:03:29.000Z
example/unicode.cc
ColinH/PEGTL-0.32
b8b2d4cbc0568936709775b9fc83a2eb34bdc0c3
[ "MIT" ]
null
null
null
example/unicode.cc
ColinH/PEGTL-0.32
b8b2d4cbc0568936709775b9fc83a2eb34bdc0c3
[ "MIT" ]
1
2020-04-25T16:40:49.000Z
2020-04-25T16:40:49.000Z
// Copyright (c) 2008 Dr. Colin Hirsch // Please see license.txt for license. // Include the only public header file for the PEGTL. #include <pegtl.hh> namespace example { using namespace pegtl; // This example defines a rule for quoted strings with C-style backslash-escapes // that is compatible with UTF-...
42.515625
88
0.689085
ColinH
7129ba1cac8fe3dbb25c08ceecc5361797527916
625
cpp
C++
components/math/vecmath/tests/matrix08.cpp
untgames/funner
c91614cda55fd00f5631d2bd11c4ab91f53573a3
[ "MIT" ]
7
2016-03-30T17:00:39.000Z
2017-03-27T16:04:04.000Z
components/math/vecmath/tests/matrix08.cpp
untgames/Funner
c91614cda55fd00f5631d2bd11c4ab91f53573a3
[ "MIT" ]
4
2017-11-21T11:25:49.000Z
2018-09-20T17:59:27.000Z
components/math/vecmath/tests/matrix08.cpp
untgames/Funner
c91614cda55fd00f5631d2bd11c4ab91f53573a3
[ "MIT" ]
4
2016-11-29T15:18:40.000Z
2017-03-27T16:04:08.000Z
#include "shared.h" int main () { printf ("Results of matrix08_test:\n"); const float values1 [] = {1.0f, 3.0f, 5.0f, 7.0f, 11.0f, 13.0f, 17.0f, 19.0f, 23.0f, 29.0f, 31.0f, 37.0f, 41.0f, 43.0f, 49.0f, 53.0f}; ...
28.409091
71
0.48
untgames
712bed93e84a9d281f53ab7658c70d6a2336b84b
1,075
hpp
C++
lib/simulator/Simulator.hpp
ademuri/colordance-circle
fd680a45c32d6ebc2289cd8a8f6fc8bba2d0a43e
[ "Apache-2.0" ]
2
2020-03-07T05:14:06.000Z
2021-02-22T17:53:40.000Z
lib/simulator/Simulator.hpp
ademuri/colordance-circle
fd680a45c32d6ebc2289cd8a8f6fc8bba2d0a43e
[ "Apache-2.0" ]
1
2020-03-08T05:53:04.000Z
2020-03-08T05:56:37.000Z
lib/simulator/Simulator.hpp
ademuri/colordance-circle
fd680a45c32d6ebc2289cd8a8f6fc8bba2d0a43e
[ "Apache-2.0" ]
1
2020-03-08T05:48:28.000Z
2020-03-08T05:48:28.000Z
#ifndef __SIMULATOR_HPP__ #define __SIMULATOR_HPP__ #include <OgreApplicationContext.h> #include <OgreInput.h> #include <OgreLight.h> #include <OgreRoot.h> #include <algorithm> #include <map> #include <set> #include <string> #include <vector> #include "Effect.hpp" #include "SimulatorLightController.hpp" class Simul...
24.431818
73
0.749767
ademuri
712cf1460217261a12438584199be219918a7d94
4,471
cpp
C++
routing/routing_tests/bfs_tests.cpp
kudlav/organicmaps
390236365749e0525b9229684132c2888d11369d
[ "Apache-2.0" ]
4,879
2015-09-30T10:56:36.000Z
2022-03-31T18:43:03.000Z
routing/routing_tests/bfs_tests.cpp
mbrukman/omim
d22fe2b6e0beee697f096e931df97a64f9db9dc1
[ "Apache-2.0" ]
7,549
2015-09-30T10:52:53.000Z
2022-03-31T22:04:22.000Z
routing/routing_tests/bfs_tests.cpp
mbrukman/omim
d22fe2b6e0beee697f096e931df97a64f9db9dc1
[ "Apache-2.0" ]
1,493
2015-09-30T10:43:06.000Z
2022-03-21T09:16:49.000Z
#include "testing/testing.hpp" #include "routing/base/bfs.hpp" #include "routing/routing_tests/routing_algorithm.hpp" #include <cstdint> #include <set> #include <vector> namespace { using namespace routing_test; double constexpr kWeight = 1.0; UndirectedGraph BuildUndirectedGraph() { UndirectedGraph graph; /...
25.117978
90
0.656676
kudlav
7132edb812a11a6f1314b361630635d9c3662138
3,684
cpp
C++
3rdparty/webkit/Source/WebCore/Modules/indexeddb/IDBKeyRangeData.cpp
mchiasson/PhaserNative
f867454602c395484bf730a7c43b9c586c102ac2
[ "MIT" ]
null
null
null
3rdparty/webkit/Source/WebCore/Modules/indexeddb/IDBKeyRangeData.cpp
mchiasson/PhaserNative
f867454602c395484bf730a7c43b9c586c102ac2
[ "MIT" ]
9
2020-04-18T18:47:18.000Z
2020-04-18T18:52:41.000Z
Source/WebCore/Modules/indexeddb/IDBKeyRangeData.cpp
ijsf/DeniseEmbeddableWebKit
57dfc6783d60f8f59b7129874e60f84d8c8556c9
[ "BSD-3-Clause" ]
1
2019-01-25T13:55:25.000Z
2019-01-25T13:55:25.000Z
/* * Copyright (C) 2014 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
27.909091
137
0.685939
mchiasson
713754a11deb2e6a4204c255a7edf503b1a6992a
6,347
cc
C++
src/visualisers/Boundaries.cc
b8raoult/magics
eb2c86ec6e392e89c90044128dc671f22283d6ad
[ "ECL-2.0", "Apache-2.0" ]
41
2018-12-07T23:10:50.000Z
2022-02-19T03:01:49.000Z
src/visualisers/Boundaries.cc
b8raoult/magics
eb2c86ec6e392e89c90044128dc671f22283d6ad
[ "ECL-2.0", "Apache-2.0" ]
59
2019-01-04T15:43:30.000Z
2022-03-31T09:48:15.000Z
src/visualisers/Boundaries.cc
b8raoult/magics
eb2c86ec6e392e89c90044128dc671f22283d6ad
[ "ECL-2.0", "Apache-2.0" ]
13
2019-01-07T14:36:33.000Z
2021-09-06T14:48:36.000Z
/* * (C) Copyright 1996-2016 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an in...
36.0625
142
0.577911
b8raoult
713a86b5355b6558b4897d56ebf95155705376c9
1,506
cpp
C++
test/client.cpp
adanselm/pbRPCpp
55ee89608bfd3d8e32d3880fd5f1f7c3386f167a
[ "BSL-1.0" ]
26
2015-03-31T05:57:21.000Z
2021-12-07T04:37:05.000Z
test/client.cpp
adanselm/pbRPCpp
55ee89608bfd3d8e32d3880fd5f1f7c3386f167a
[ "BSL-1.0" ]
2
2016-11-23T19:44:08.000Z
2019-05-29T08:37:03.000Z
test/client.cpp
adanselm/pbRPCpp
55ee89608bfd3d8e32d3880fd5f1f7c3386f167a
[ "BSL-1.0" ]
10
2015-07-19T13:02:14.000Z
2020-05-26T12:17:09.000Z
/** * Copyright Springbeats Sarl 2013. * 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) */ //#include "TcpRpcChannel.hpp" #include "RpcController.hpp" //#include "TcpRpcServer.hpp" //#inc...
26.421053
94
0.641434
adanselm
713d391ef7c1a65d613ba283cc791df6dda00ec9
33,836
cpp
C++
Tracing/MDL/Integratedskel.cpp
tostathaina/farsight
7e9d6d15688735f34f7ca272e4e715acd11473ff
[ "Apache-2.0" ]
8
2016-07-22T11:24:19.000Z
2021-04-10T04:22:31.000Z
Tracing/MDL/Integratedskel.cpp
YanXuHappygela/Farsight
1711b2a1458c7e035edd21fe0019a1f7d23fcafa
[ "Apache-2.0" ]
null
null
null
Tracing/MDL/Integratedskel.cpp
YanXuHappygela/Farsight
1711b2a1458c7e035edd21fe0019a1f7d23fcafa
[ "Apache-2.0" ]
7
2016-07-21T07:39:17.000Z
2020-01-29T02:03:27.000Z
/*========================================================================= Copyright 2009 Rensselaer Polytechnic Institute 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/lice...
29.996454
142
0.497251
tostathaina
7141b83a2b5eb78f1e48c55fc710376df72a6ee8
674
cpp
C++
tests/fuzzing/direct.cpp
graves501/arma3-unix-launcher
7f034833389af122da7a3948cf869124827216ba
[ "MIT" ]
161
2016-11-22T09:36:00.000Z
2022-03-25T06:14:51.000Z
tests/fuzzing/direct.cpp
graves501/arma3-unix-launcher
7f034833389af122da7a3948cf869124827216ba
[ "MIT" ]
138
2017-01-28T16:46:37.000Z
2022-03-30T05:36:53.000Z
tests/fuzzing/direct.cpp
graves501/arma3-unix-launcher
7f034833389af122da7a3948cf869124827216ba
[ "MIT" ]
36
2016-12-28T12:23:48.000Z
2022-03-31T22:17:32.000Z
#include <filesystem> #include <fstream> #include <string> #include <fmt/format.h> std::string FileReadAllText(std::filesystem::path const &path) { std::ifstream file(path); std::stringstream str; str << file.rdbuf(); return str.str(); } extern "C" int LLVMFuzzerTestOneInput(uint8_t const *data, size...
21.741935
74
0.639466
graves501
71451e6f29660f350443856e18d9d76536d5659a
1,850
cpp
C++
src/render/frame_buffer.cpp
Tuebel/scigl_render
ec790d54ca4a14546348a5dd2f799d5abcc4bd36
[ "MIT" ]
null
null
null
src/render/frame_buffer.cpp
Tuebel/scigl_render
ec790d54ca4a14546348a5dd2f799d5abcc4bd36
[ "MIT" ]
null
null
null
src/render/frame_buffer.cpp
Tuebel/scigl_render
ec790d54ca4a14546348a5dd2f799d5abcc4bd36
[ "MIT" ]
null
null
null
#include <scigl_render/render/frame_buffer.hpp> #include <iostream> #include <stdexcept> namespace scigl_render { FrameBuffer::FrameBuffer(int width, int height, GLenum internal_format) { this->width = width; this->height = height; // Create framebuffer with renderbuffer attachements glGenFramebuffers(1, &fbo)...
30.833333
77
0.757297
Tuebel
7145c53aec322c29c1822bf7d66f8ef651378e37
642
hpp
C++
converter/src/mapConverter/mapConverter.hpp
redthing1/Tiled2GBA
2272309292c6a2a0dee2a4e7cc81c2e97fab6157
[ "MIT" ]
14
2018-06-25T09:22:21.000Z
2021-12-11T20:06:25.000Z
converter/src/mapConverter/mapConverter.hpp
redthing1/Tiled2GBA
2272309292c6a2a0dee2a4e7cc81c2e97fab6157
[ "MIT" ]
20
2018-06-23T21:36:35.000Z
2021-05-25T16:21:14.000Z
converter/src/mapConverter/mapConverter.hpp
redthing1/Tiled2GBA
2272309292c6a2a0dee2a4e7cc81c2e97fab6157
[ "MIT" ]
2
2020-02-26T13:51:31.000Z
2021-09-30T07:02:33.000Z
#ifndef MAP_CONVERTER_H #define MAP_CONVERTER_H #include "../lib/tmxlite/Map.hpp" #include "../gba/gbaMap/gbaMap.hpp" #include "../lib/tmxlite/TileLayer.hpp" using namespace std; /** * Converts a TMX Map to a GBA Map. */ class MapConverter { public: /** * Convert a TMX Map. * @param tmxMap The TMX Ma...
23.777778
91
0.679128
redthing1
7149a2e8b478439251df700081c674d7e70a4893
21,244
cpp
C++
src/nes6502.cpp
karangovil/nes6502
4abef3c303cbcc37870c72bcaf57c29d0b8fea21
[ "MIT" ]
null
null
null
src/nes6502.cpp
karangovil/nes6502
4abef3c303cbcc37870c72bcaf57c29d0b8fea21
[ "MIT" ]
null
null
null
src/nes6502.cpp
karangovil/nes6502
4abef3c303cbcc37870c72bcaf57c29d0b8fea21
[ "MIT" ]
null
null
null
#include "nes6502.h" #include "Bus.h" #include "utils.h" nes6502::nes6502() = default; nes6502::~nes6502() = default; uint8_t nes6502::read(uint16_t addr) { return bus->cpuRead(addr, false); } void nes6502::write(uint16_t addr, uint8_t data) { bus->cpuWrite(addr, data); } void nes6502::clock() { if (cycles =...
19.597786
93
0.602241
karangovil
714b6117d61a2f5a55e09d5a87a01b7f0f6c7637
240
cpp
C++
src/UOJ_1573 - (1176543) Accepted.cpp
miguelarauj1o/UOJ
eb195754829c42c3dcf1a68616e63da1386cb5a9
[ "MIT" ]
80
2015-01-07T01:18:40.000Z
2021-05-04T15:23:18.000Z
src/UOJ_1573 - (1176543) Accepted.cpp
miguelarauj1o/OJ
eb195754829c42c3dcf1a68616e63da1386cb5a9
[ "MIT" ]
1
2019-01-07T01:13:32.000Z
2019-01-07T01:13:32.000Z
src/UOJ_1573 - (1176543) Accepted.cpp
miguelarauj1o/OJ
eb195754829c42c3dcf1a68616e63da1386cb5a9
[ "MIT" ]
28
2015-03-05T11:53:23.000Z
2020-07-05T15:50:42.000Z
#include <cstdio> #include <cmath> using namespace std; int main() { int a, b, c, v, x; while(scanf("%i %i %i", &a, &b, &c) && (a || b || c)) { v = a * b * c; x = (int) cbrt(v); printf("%i\n", x); } return 0; }
14.117647
55
0.4375
miguelarauj1o
714cbe8cbe08e6901ef39d3946e4cd1883002c88
36,686
cc
C++
google/cloud/bigtable/examples/data_snippets.cc
cclauss/google-cloud-cpp
43ff41d67e22371e2a376ec119f7f7167022450d
[ "Apache-2.0" ]
null
null
null
google/cloud/bigtable/examples/data_snippets.cc
cclauss/google-cloud-cpp
43ff41d67e22371e2a376ec119f7f7167022450d
[ "Apache-2.0" ]
null
null
null
google/cloud/bigtable/examples/data_snippets.cc
cclauss/google-cloud-cpp
43ff41d67e22371e2a376ec119f7f7167022450d
[ "Apache-2.0" ]
null
null
null
// Copyright 2018 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
35.241114
80
0.607889
cclauss
714fc9a6851a4d4a365fec9a68ddd461a34428b5
3,797
hpp
C++
adaptivlib/include/adaptiv/utility/input/numeric_parsers.hpp
seriouslyhypersonic/adaptiv_co
2421d7dc91d0291dd45702a2a2ddadab9adda91d
[ "BSL-1.0" ]
null
null
null
adaptivlib/include/adaptiv/utility/input/numeric_parsers.hpp
seriouslyhypersonic/adaptiv_co
2421d7dc91d0291dd45702a2a2ddadab9adda91d
[ "BSL-1.0" ]
null
null
null
adaptivlib/include/adaptiv/utility/input/numeric_parsers.hpp
seriouslyhypersonic/adaptiv_co
2421d7dc91d0291dd45702a2a2ddadab9adda91d
[ "BSL-1.0" ]
null
null
null
/* * Copyright (c) Nuno Alves de Sousa 2019 * * Use, modification and distribution is subject to 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 ADAPTIV_NUMERIC_PARSERS_HPP #define ADAPTIV_NUMERIC_PARSERS_HPP #include...
26.186207
79
0.70108
seriouslyhypersonic
71527f3e27262169c4f065b3b95d2fb683121ece
1,263
cpp
C++
src/services/DeviceService.cpp
nick-lrg/microSDC
a0a95edcf74164cfecf699f77e57d7f84a9c0b68
[ "BSD-3-Clause" ]
null
null
null
src/services/DeviceService.cpp
nick-lrg/microSDC
a0a95edcf74164cfecf699f77e57d7f84a9c0b68
[ "BSD-3-Clause" ]
null
null
null
src/services/DeviceService.cpp
nick-lrg/microSDC
a0a95edcf74164cfecf699f77e57d7f84a9c0b68
[ "BSD-3-Clause" ]
null
null
null
#include "services/DeviceService.hpp" #include "Log.hpp" #include "WebServer/Request.hpp" #include "datamodel/MDPWSConstants.hpp" #include "dpws/MetadataProvider.hpp" #include "services/SoapFault.hpp" static constexpr const char* TAG = "DeviceService"; DeviceService::DeviceService(std::shared_ptr<const MetadataProvid...
30.071429
96
0.751386
nick-lrg
7153c4e74b00f6d07fba4d1526954845e06075a9
2,473
cc
C++
quickstart/MinimumPathSum.cc
shortthirdman/code-eval-challenges
27d8f2474a95d4836397b3c5970dcabd5e2bff5e
[ "MIT" ]
2
2018-06-24T17:09:16.000Z
2020-08-03T11:44:54.000Z
quickstart/MinimumPathSum.cc
shortthirdman/code-eval-challenges
27d8f2474a95d4836397b3c5970dcabd5e2bff5e
[ "MIT" ]
null
null
null
quickstart/MinimumPathSum.cc
shortthirdman/code-eval-challenges
27d8f2474a95d4836397b3c5970dcabd5e2bff5e
[ "MIT" ]
null
null
null
/* Minimum Path Sum Share on LinkedIn Description: You are given an n*n matrix of integers. You can move only right and down. Calculate the minimal path sum from the top left to the bottom right Input sample: Your program should accept as its first argument a path to a filename. The first line will have t...
23.778846
284
0.500202
shortthirdman
715c27336801fe475132011ce3ac8c396049937c
172
cpp
C++
src/util/dumpstack/enable_dump.cpp
HouQiming/ama
b7dddb425892e1d4d95312b330061911489e242b
[ "BSD-2-Clause" ]
24
2022-01-06T20:26:42.000Z
2022-02-18T07:56:44.000Z
src/util/dumpstack/enable_dump.cpp
HouQiming/ama
b7dddb425892e1d4d95312b330061911489e242b
[ "BSD-2-Clause" ]
null
null
null
src/util/dumpstack/enable_dump.cpp
HouQiming/ama
b7dddb425892e1d4d95312b330061911489e242b
[ "BSD-2-Clause" ]
4
2022-01-06T20:26:44.000Z
2022-01-14T06:59:48.000Z
#include "./dumpstack.h" #pragma no_auto_header() struct AutoEnableStackDump { AutoEnableStackDump() {DumpStack::EnableDump();} }; static AutoEnableStackDump enabler{};
19.111111
49
0.767442
HouQiming
715d37bebeb9a4807c3716b840a4e813bc966c76
1,123
cpp
C++
KTLT_doan1/boss.cpp
ipupro2/KTLTr-Project-1
1ee29823a75b9518d6cc4d0b94edebc2a46ec63c
[ "MIT" ]
null
null
null
KTLT_doan1/boss.cpp
ipupro2/KTLTr-Project-1
1ee29823a75b9518d6cc4d0b94edebc2a46ec63c
[ "MIT" ]
null
null
null
KTLT_doan1/boss.cpp
ipupro2/KTLTr-Project-1
1ee29823a75b9518d6cc4d0b94edebc2a46ec63c
[ "MIT" ]
null
null
null
#include "boss.h" static const string BossSprite[] = { " _____|___|_|___|_____ ", " |___________________| ", " |___________________| ", " |=|=====|===|=====|=| ", " |=|======\\=/======|=| ", " V V V " }; void DrawBoss(position bossPos) { for (int i = 0; i < 6; i++) { for (int...
19.701754
70
0.524488
ipupro2
71607c0b126b17b699da2ddec025aa4613500ddf
2,430
cpp
C++
src/native/qgsnative.cpp
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
src/native/qgsnative.cpp
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
src/native/qgsnative.cpp
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
1
2021-12-25T08:40:30.000Z
2021-12-25T08:40:30.000Z
/*************************************************************************** qgsnative.cpp - abstracted interface to native system calls ------------------- begin : January 2017 copyright : (C) 2017 by Matthias Kuhn email : matthias@o...
25.051546
130
0.523868
dyna-mis
7160fea73f7e7a0a7a7d0bd4a0e4d74c7ac46d66
5,612
cpp
C++
Ambit/Source/Ambit/Actors/SpawnedObjectConfigs/SpawnedObjectConfig.spec.cpp
aws-samples/aws-ambit-scenario-designer-ue4
96843bccab3325a36dff6451b7e46837a9e918de
[ "Apache-2.0" ]
32
2021-12-01T04:28:53.000Z
2022-03-12T18:22:56.000Z
Ambit/Source/Ambit/Actors/SpawnedObjectConfigs/SpawnedObjectConfig.spec.cpp
aws-samples/aws-ambit-scenario-designer-ue4
96843bccab3325a36dff6451b7e46837a9e918de
[ "Apache-2.0" ]
10
2021-12-01T18:35:26.000Z
2022-02-15T00:32:00.000Z
Ambit/Source/Ambit/Actors/SpawnedObjectConfigs/SpawnedObjectConfig.spec.cpp
aws-samples/aws-ambit-scenario-designer-ue4
96843bccab3325a36dff6451b7e46837a9e918de
[ "Apache-2.0" ]
10
2021-12-01T06:59:41.000Z
2022-02-23T23:37:44.000Z
// Copyright 2022 Amazon.com, Inc. or its affiliates. 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...
47.159664
119
0.593906
aws-samples
7161a0f8fcdf17e561d47746b676481f4e038093
6,251
cpp
C++
jogo/pacman.cpp
eduardo-gomes/cefet-public
559b55194c425b3df83e85c78ed7ede424b9537d
[ "Unlicense" ]
null
null
null
jogo/pacman.cpp
eduardo-gomes/cefet-public
559b55194c425b3df83e85c78ed7ede424b9537d
[ "Unlicense" ]
7
2019-11-12T00:58:09.000Z
2019-11-19T19:34:49.000Z
jogo/pacman.cpp
eduardo-gomes/cefet-public
559b55194c425b3df83e85c78ed7ede424b9537d
[ "Unlicense" ]
null
null
null
#include <bits/stdc++.h> #include <ncurses.h> using namespace std; /*int mapa[9][7] = { {-1, -1, -1,-1, -1, -1, -1}, {-1, 0, 0, 0, 0, 0, -1}, {-1, 0, -1, 0, -1, 0, -1}, {0, 0, -1, 0, -1, 0, 0}, {-1, 0, -1, 0, -1, 0, -1}, {0, 0, -1, 0, -1, 0, 0}, {-1, 0, -1, -1, -1, 0, -1}, {-1, 0, 0, 0, 0, 0, -1}, {-1, -1, -1, -1, -1, ...
27.060606
174
0.457047
eduardo-gomes
7163c05fbd33c380d05762503c4a7049858c886b
4,897
cpp
C++
src/linux64_syscall.cpp
sci4me/Stella
220416ea25e72bd7db4bc3602c04c5451ed59deb
[ "MIT" ]
1
2020-11-23T06:16:25.000Z
2020-11-23T06:16:25.000Z
src/linux64_syscall.cpp
sci4me/Stella
220416ea25e72bd7db4bc3602c04c5451ed59deb
[ "MIT" ]
null
null
null
src/linux64_syscall.cpp
sci4me/Stella
220416ea25e72bd7db4bc3602c04c5451ed59deb
[ "MIT" ]
null
null
null
// TODO: Would be nice to remove these? Or remove the defines... er.... eyeyaydhweh #include <sys/fcntl.h> #include <sys/stat.h> #include <sys/inotify.h> #include "common.hpp" extern "C" { void* syscall0(void*); void* syscall1(void*, void*); void* syscall2(void*, void*, void*); void* syscall3(void*, void*, void*,...
29.859756
116
0.693077
sci4me
71664a740a2612fe99b3b9b1565430e119262db6
613
cpp
C++
src/cpp-leetcode/List.cpp
17hao/algorithm
0e96883a4638b33182bd590fffd12fd6ba0783c8
[ "Apache-2.0" ]
null
null
null
src/cpp-leetcode/List.cpp
17hao/algorithm
0e96883a4638b33182bd590fffd12fd6ba0783c8
[ "Apache-2.0" ]
1
2019-03-25T15:17:54.000Z
2019-03-25T15:20:30.000Z
src/cpp-leetcode/List.cpp
17hao/algorithm
0e96883a4638b33182bd590fffd12fd6ba0783c8
[ "Apache-2.0" ]
null
null
null
#include "List.h" #include <cstdlib> #include <iostream> #include <vector> ListNode *List::linkedList(std::vector<int> &vec) { ListNode *dummy = new ListNode{-1}; ListNode *cur = dummy; for (int i : vec) { ListNode *node = new ListNode{i}; cur->next = node; cur = node; } re...
21.892857
51
0.533442
17hao
7166c7bdd8636e29675296a987aefc0546dd38bc
25,742
hxx
C++
GOOSE_FatWaterDecomposition/optnet/_base/point.hxx
pdaude/CREAM_PDFF
56bc7639b3e027f6656ac33720863d0953a85b45
[ "Apache-2.0" ]
null
null
null
GOOSE_FatWaterDecomposition/optnet/_base/point.hxx
pdaude/CREAM_PDFF
56bc7639b3e027f6656ac33720863d0953a85b45
[ "Apache-2.0" ]
null
null
null
GOOSE_FatWaterDecomposition/optnet/_base/point.hxx
pdaude/CREAM_PDFF
56bc7639b3e027f6656ac33720863d0953a85b45
[ "Apache-2.0" ]
null
null
null
/* ========================================================================== | | $Id: point.hxx 2137 2007-07-02 03:26:31Z kangli $ | | Written by Kang Li <kangl@cmu.edu> | Department of Electrical and Computer Engineering | Carnegie Mellon University | ===========================================...
35.555249
75
0.461153
pdaude
716f8c352d69ca4d89dd5982b0fea39a9beb78d1
2,184
cpp
C++
mpas_permBack/src/permBack.cpp
trainsn/GNN-Surrogate
9e953884d888edb13d0981639206f69398ae0a8c
[ "MIT" ]
3
2022-02-21T12:49:40.000Z
2022-03-19T07:11:22.000Z
mpas_permBack/src/permBack.cpp
trainsn/GNN-Surrogate
9e953884d888edb13d0981639206f69398ae0a8c
[ "MIT" ]
null
null
null
mpas_permBack/src/permBack.cpp
trainsn/GNN-Surrogate
9e953884d888edb13d0981639206f69398ae0a8c
[ "MIT" ]
null
null
null
#include <iostream> #include <fstream> #include <vector> #include "def.h" #include "mesh.h" using namespace std; int main(int argc, char **argv) { char input_root[1024]; sprintf(input_root, argv[1]); char output_root[1024]; sprintf(output_root, argv[2]); char filename[1024]; s...
31.2
134
0.679487
trainsn
7176b56b20914f7d98308e9c403a8a0b18a40fcb
14,985
cpp
C++
src/Window.cpp
lintopher0315/gadget
9bcd399aa087f6e82a9353e883d004c50d92c9d5
[ "MIT" ]
9
2021-03-14T05:49:21.000Z
2021-12-13T12:46:00.000Z
src/Window.cpp
lintopher0315/gadget
9bcd399aa087f6e82a9353e883d004c50d92c9d5
[ "MIT" ]
null
null
null
src/Window.cpp
lintopher0315/gadget
9bcd399aa087f6e82a9353e883d004c50d92c9d5
[ "MIT" ]
null
null
null
#include "Window.h" #include "Frame.h" #include "FileHelper.h" Window::Window(wxWindow *parent) : wxWindow(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize) { SetMinClientSize(wxSize(500, 100)); sizer = new wxBoxSizer(wxVERTICAL); panel = new Panel(this); statusBar = new StatusBar(this); commandBa...
22.299107
140
0.630764
lintopher0315
7181f9f71594b5923244ec06e7db453364d345e4
13,978
cpp
C++
src/behavior_tree.cpp
HappyFacade/sts_bt_library
d6617cb460b810010a8178c8be4697d49c5c8164
[ "MIT" ]
23
2020-04-01T09:46:10.000Z
2021-10-08T06:07:43.000Z
src/behavior_tree.cpp
HappyFacade/sts_bt_library
d6617cb460b810010a8178c8be4697d49c5c8164
[ "MIT" ]
1
2020-04-01T09:48:06.000Z
2020-04-01T09:48:06.000Z
src/behavior_tree.cpp
HappyFacade/sts_bt_library
d6617cb460b810010a8178c8be4697d49c5c8164
[ "MIT" ]
3
2020-04-01T14:12:10.000Z
2021-10-06T13:55:20.000Z
/* Copyright (C) 2015-2017 Michele Colledanchise - All Rights Reserved * Modified work Copyright (C) 2019-2020 Sebastian Mueller, Nick Fiege, Robert Rudolph * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), * to de...
43.141975
205
0.661396
HappyFacade
71822d5fc3114e6d14285b01a710e83ed9738d73
1,579
cpp
C++
01-Array/03-Kth-max-min.cpp
satputesagar/450-Coding-Question
1fc3f00756090e079aa591d1ad1c0b5992e5e9c7
[ "MIT" ]
null
null
null
01-Array/03-Kth-max-min.cpp
satputesagar/450-Coding-Question
1fc3f00756090e079aa591d1ad1c0b5992e5e9c7
[ "MIT" ]
null
null
null
01-Array/03-Kth-max-min.cpp
satputesagar/450-Coding-Question
1fc3f00756090e079aa591d1ad1c0b5992e5e9c7
[ "MIT" ]
null
null
null
//Kth smallest element /* Given an array arr[] and a number K where K is smaller than size of array, the task is to find the Kth smallest element in the given array. It is given that all array elements are distinct. /* COMPLEXITY - O(n) SAMPLE INPUT 2 6 7 10 4 3 20 15 3 5 7 10 4 20 15 4 OUTPUT 7 15 */ /* Complexity ...
19.024096
189
0.552248
satputesagar
71886609110068a50145e918b8650e1fa1e90b77
1,996
cpp
C++
Examples/Primes/LibPrimes_component/Implementations/Cpp/Stub/libprimes_sievecalculator.cpp
tristanbarback/AutomaticComponentToolkit
8fe5406a06c5bcec87a1ebb025cb92ee30bc11bd
[ "BSD-2-Clause" ]
null
null
null
Examples/Primes/LibPrimes_component/Implementations/Cpp/Stub/libprimes_sievecalculator.cpp
tristanbarback/AutomaticComponentToolkit
8fe5406a06c5bcec87a1ebb025cb92ee30bc11bd
[ "BSD-2-Clause" ]
null
null
null
Examples/Primes/LibPrimes_component/Implementations/Cpp/Stub/libprimes_sievecalculator.cpp
tristanbarback/AutomaticComponentToolkit
8fe5406a06c5bcec87a1ebb025cb92ee30bc11bd
[ "BSD-2-Clause" ]
null
null
null
/*++ Copyright (C) 2018 Automatic Component Toolkit Developers All rights reserved. Abstract: This is a stub class definition of CLibPrimesSieveCalculator */ #include "libprimes_sievecalculator.hpp" #include "libprimes_interfaceexception.hpp" // Include custom headers here. #include <cmath> using namespace LibP...
24.341463
151
0.608216
tristanbarback
7189ceb04b5b8188a8eb871306786cfc8eeeb6a8
1,094
cpp
C++
data_structures/Linked_list/CPP/reverse-list-in-groups.cpp
CarbonDDR/al-go-rithms
8e65affbe812931b7dde0e2933eb06c0f44b4130
[ "CC0-1.0" ]
1,253
2017-06-06T07:19:25.000Z
2022-03-30T17:07:58.000Z
data_structures/Linked_list/CPP/reverse-list-in-groups.cpp
CarbonDDR/al-go-rithms
8e65affbe812931b7dde0e2933eb06c0f44b4130
[ "CC0-1.0" ]
554
2017-09-29T18:56:01.000Z
2022-02-21T15:48:13.000Z
data_structures/Linked_list/CPP/reverse-list-in-groups.cpp
CarbonDDR/al-go-rithms
8e65affbe812931b7dde0e2933eb06c0f44b4130
[ "CC0-1.0" ]
2,226
2017-09-29T19:59:59.000Z
2022-03-25T08:59:55.000Z
we will reverse in sublists of sizes k each Reverse the first sub-list of size k. While reversing keep track of the next node and previous node. Let the pointer to the next node be next and pointer to the previous node be prev. head->next = reverse(next, k) ( Recursively call for rest of the list and link ...
27.35
100
0.565814
CarbonDDR
718ddf1c9f0eb61a1a7155b13e2a1b33e1023e6b
7,065
cpp
C++
src/NodeHive.cpp
dwarfofdawn/Ant_Game
3a4ea222d5ae9fea991e7e5cf5063ea9fcec9906
[ "MIT" ]
null
null
null
src/NodeHive.cpp
dwarfofdawn/Ant_Game
3a4ea222d5ae9fea991e7e5cf5063ea9fcec9906
[ "MIT" ]
null
null
null
src/NodeHive.cpp
dwarfofdawn/Ant_Game
3a4ea222d5ae9fea991e7e5cf5063ea9fcec9906
[ "MIT" ]
null
null
null
#include "NodeHive.h" #include "warp/Renderer.h" #include "WorldClient.h" #include "TaskConquer.h" #include "Options.h" #include "Client.h" #include "Server.h" #include <cstring> #include <cmath> namespace ant{ warp::Color hiveColor(1, 0, 0, 1); // controls spead of heartbeat TODO(florian): make this dynamic a...
31.681614
253
0.618117
dwarfofdawn
718f95d0b00bda03156101f80b3cc958c7df7480
330
hpp
C++
lib/inc/pxp-agent/action_output.hpp
Dorin-Pleava/pxp-agent
eef236da8046fc185e0ca39d0a479cf00b9c60ad
[ "Apache-2.0" ]
28
2015-10-09T04:48:31.000Z
2022-01-31T15:04:01.000Z
lib/inc/pxp-agent/action_output.hpp
Dorin-Pleava/pxp-agent
eef236da8046fc185e0ca39d0a479cf00b9c60ad
[ "Apache-2.0" ]
495
2015-10-05T18:47:47.000Z
2021-11-01T23:40:01.000Z
lib/inc/pxp-agent/action_output.hpp
Dorin-Pleava/pxp-agent
eef236da8046fc185e0ca39d0a479cf00b9c60ad
[ "Apache-2.0" ]
67
2015-10-06T03:28:16.000Z
2022-03-31T17:25:37.000Z
#ifndef SRC_AGENT_ACTION_OUTPUT_HPP #define SRC_AGENT_ACTION_OUTPUT_HPP #include <leatherman/json_container/json_container.hpp> #include <string> namespace PXPAgent { struct ActionOutput { int exitcode; std::string std_out; std::string std_err; }; } // namespace PXPAgent #endif // SRC_AGENT_ACTION_O...
17.368421
55
0.769697
Dorin-Pleava
718fc3bff445a4885e244a44e7a9f9a7c85dcc8f
2,447
hpp
C++
include/ads/basis_data.hpp
Pan-Maciek/iga-ads
4744829c98cba4e9505c5c996070119e73ba18fa
[ "MIT" ]
7
2018-01-19T00:19:19.000Z
2021-06-22T00:53:00.000Z
include/ads/basis_data.hpp
Pan-Maciek/iga-ads
4744829c98cba4e9505c5c996070119e73ba18fa
[ "MIT" ]
66
2021-06-22T22:44:21.000Z
2022-03-16T15:18:00.000Z
include/ads/basis_data.hpp
Pan-Maciek/iga-ads
4744829c98cba4e9505c5c996070119e73ba18fa
[ "MIT" ]
6
2017-04-13T19:42:27.000Z
2022-03-26T18:46:24.000Z
// SPDX-FileCopyrightText: 2015 - 2021 Marcin Łoś <marcin.los.91@gmail.com> // SPDX-License-Identifier: MIT #ifndef ADS_BASIS_DATA_HPP #define ADS_BASIS_DATA_HPP #include <utility> #include <vector> #include <boost/range/counting_range.hpp> #include "ads/bspline/bspline.hpp" namespace ads { using element_id = int...
26.89011
96
0.655088
Pan-Maciek
719120079fa53295a9123dd95107cdf7de7a5185
6,114
cpp
C++
Tests/CPP_Bindings/Source/TextureProperty.cpp
alexanderoster/lib3mf
30d5c2e0e8ed7febb5c10a84dc2db9d53fee6d05
[ "BSD-2-Clause" ]
171
2015-04-30T21:54:02.000Z
2022-03-13T13:33:59.000Z
Tests/CPP_Bindings/Source/TextureProperty.cpp
alexanderoster/lib3mf
30d5c2e0e8ed7febb5c10a84dc2db9d53fee6d05
[ "BSD-2-Clause" ]
190
2015-07-21T22:15:54.000Z
2022-03-30T15:48:37.000Z
Tests/CPP_Bindings/Source/TextureProperty.cpp
alexanderoster/lib3mf
30d5c2e0e8ed7febb5c10a84dc2db9d53fee6d05
[ "BSD-2-Clause" ]
80
2015-04-30T22:15:54.000Z
2022-03-09T12:38:49.000Z
/*++ Copyright (C) 2019 3MF Consortium All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the followi...
41.310811
149
0.74632
alexanderoster
719b2e2e242ac6050345a20260344dea8b72cd2d
3,633
cpp
C++
BFS/127. Word Ladder.cpp
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
138
2020-02-08T05:25:26.000Z
2021-11-04T11:59:28.000Z
BFS/127. Word Ladder.cpp
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
null
null
null
BFS/127. Word Ladder.cpp
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
24
2021-01-02T07:18:43.000Z
2022-03-20T08:17:54.000Z
/* 127. Word Ladder Time Space Difficulty O(n * d) O(d) Medium Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence from beginWord to endWord, such that: Only one letter can be changed at a time. Each transformed word must exist in the w...
32.72973
161
0.504542
beckswu
719c060dc5ed31dfe4bad61ae6336adc82223860
4,318
cpp
C++
src/Instrument.cpp
devinacker/decomposer
32a7b5b5972ffe795bd56312c34a7bcc3283dd2d
[ "MIT" ]
6
2016-04-19T03:23:48.000Z
2019-07-12T00:40:23.000Z
src/Instrument.cpp
devinacker/decomposer
32a7b5b5972ffe795bd56312c34a7bcc3283dd2d
[ "MIT" ]
null
null
null
src/Instrument.cpp
devinacker/decomposer
32a7b5b5972ffe795bd56312c34a7bcc3283dd2d
[ "MIT" ]
null
null
null
#include "Instrument.h" Instrument* Instrument::channelInstruments[16] = {0}; void Instrument::send(int time, MIDIOutput *out, quint8 data0, quint8 data1, quint8 data2) { if (!out || channel > 15) return; // always play MIDI events on this instrument's channel if (data0 & 0x80) data0 = EVENT_REROUTE(data0, chan...
26.9875
99
0.557202
devinacker
719e12ed749446677019364e9eda830d14cf36c2
2,578
cpp
C++
src/OctreeVisualization.cpp
Tsarpf/procgen
1701358649838fb3cc8804d3f1fcb6a8f74ad1bc
[ "WTFPL" ]
6
2019-11-13T07:42:34.000Z
2021-02-05T09:33:58.000Z
src/OctreeVisualization.cpp
Tsarpf/procgen
1701358649838fb3cc8804d3f1fcb6a8f74ad1bc
[ "WTFPL" ]
null
null
null
src/OctreeVisualization.cpp
Tsarpf/procgen
1701358649838fb3cc8804d3f1fcb6a8f74ad1bc
[ "WTFPL" ]
2
2019-11-13T07:37:22.000Z
2020-07-24T13:01:42.000Z
#include "OctreeVisualization.h" #include "Octree.h" #include "utils.h" #include <GL/glew.h> OctreeVisualization::OctreeVisualization(GLuint program) : m_program(program) { } OctreeVisualization::~OctreeVisualization() { } void OctreeVisualization::Initialize() { auto [vao, vbo] = createCubeVAO(m_cubePoints); m...
25.029126
102
0.665632
Tsarpf
719f0341e883b08ce02119c83a223584750def0c
1,380
cpp
C++
SkeletalAnimation/SkeletalAnimation/Re/Graphics/Gui/GuiCheckBox.cpp
Risist/Project-skeletal-animation
1f39d572521bfa0fef7ce9aebf32152608e3dc33
[ "MIT" ]
null
null
null
SkeletalAnimation/SkeletalAnimation/Re/Graphics/Gui/GuiCheckBox.cpp
Risist/Project-skeletal-animation
1f39d572521bfa0fef7ce9aebf32152608e3dc33
[ "MIT" ]
null
null
null
SkeletalAnimation/SkeletalAnimation/Re/Graphics/Gui/GuiCheckBox.cpp
Risist/Project-skeletal-animation
1f39d572521bfa0fef7ce9aebf32152608e3dc33
[ "MIT" ]
null
null
null
/// Code from ReEngine library /// all rights belongs to Risist (Maciej Dominiak) (risistt@gmail.com) #include <Re\Graphics\Gui\GuiCheckBox.h> namespace Gui { CheckBox::CheckBox() : value(false) { } void Gui::CheckBox::onUpdate(RenderTarget & target, RenderStates states) { shortKey.reset(); mouseKey.reset(...
20.294118
88
0.684058
Risist
71a0ac418ae00368e51c23f844c280e66c4c84db
1,375
hpp
C++
android-29/android/R_color.hpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
12
2020-03-26T02:38:56.000Z
2022-03-14T08:17:26.000Z
android-28/android/R_color.hpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
1
2021-01-27T06:07:45.000Z
2021-11-13T19:19:43.000Z
android-30/android/R_color.hpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
3
2021-02-02T12:34:55.000Z
2022-03-08T07:45:57.000Z
#pragma once #include "../JObject.hpp" namespace android { class R_color : public JObject { public: // Fields static jint background_dark(); static jint background_light(); static jint black(); static jint darker_gray(); static jint holo_blue_bright(); static jint holo_blue_dark(); static jint holo...
26.960784
148
0.737455
YJBeetle
71a0c0c4af7740e10ec0713d89bb48d5e3c59abe
3,918
cc
C++
bin/mediaplayer/graph/types/stream_type.cc
PowerOlive/garnet
16b5b38b765195699f41ccb6684cc58dd3512793
[ "BSD-3-Clause" ]
null
null
null
bin/mediaplayer/graph/types/stream_type.cc
PowerOlive/garnet
16b5b38b765195699f41ccb6684cc58dd3512793
[ "BSD-3-Clause" ]
null
null
null
bin/mediaplayer/graph/types/stream_type.cc
PowerOlive/garnet
16b5b38b765195699f41ccb6684cc58dd3512793
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2016 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 "garnet/bin/mediaplayer/graph/types/stream_type.h" #include "garnet/bin/mediaplayer/util/safe_clone.h" #include "lib/fxl/logging.h" namespace me...
34.069565
77
0.738642
PowerOlive
71a23f27e910daad70c2f1f23e4fab61a1e00c04
378
cpp
C++
components/input/low_level/tests/driver1.cpp
untgames/funner
c91614cda55fd00f5631d2bd11c4ab91f53573a3
[ "MIT" ]
7
2016-03-30T17:00:39.000Z
2017-03-27T16:04:04.000Z
components/input/low_level/tests/driver1.cpp
untgames/Funner
c91614cda55fd00f5631d2bd11c4ab91f53573a3
[ "MIT" ]
4
2017-11-21T11:25:49.000Z
2018-09-20T17:59:27.000Z
components/input/low_level/tests/driver1.cpp
untgames/Funner
c91614cda55fd00f5631d2bd11c4ab91f53573a3
[ "MIT" ]
4
2016-11-29T15:18:40.000Z
2017-03-27T16:04:08.000Z
#include "shared.h" int main () { printf ("Results of driver1_test:\n"); try { DriverManager::RegisterDriver ("test_drv", xtl::com_ptr<IDriver> (new TestDriver, false).get ()); DriverManager::CreateDevice ("*_drv", "*"); } catch (std::exception& exception) { printf ("exce...
18.9
103
0.574074
untgames
71a400354ce7509ec4549fbfc5a58bfe820d0197
21,181
cpp
C++
src/contrib/tbingmann/malloc_tracker.cpp
kit-algo/TCPSPSuite
01499b4fb0f28bda72115a699cd762c70d7fff63
[ "MIT" ]
3
2018-05-02T11:45:57.000Z
2020-09-14T08:35:43.000Z
src/contrib/tbingmann/malloc_tracker.cpp
kit-algo/TCPSPSuite
01499b4fb0f28bda72115a699cd762c70d7fff63
[ "MIT" ]
null
null
null
src/contrib/tbingmann/malloc_tracker.cpp
kit-algo/TCPSPSuite
01499b4fb0f28bda72115a699cd762c70d7fff63
[ "MIT" ]
null
null
null
/******************************************************************************* * thrill/mem/malloc_tracker.cpp * * Part of Project Thrill - http://project-thrill.org * * Copyright (C) 2013-2016 Timo Bingmann <tb@panthema.net> * * All rights reserved. Published under the BSD-2 license in the LICENSE file. ****...
27.615385
104
0.654691
kit-algo
71a6b1f7cfe63e3a5fb261d9efa1e38222d28f59
11,719
cpp
C++
src/swrast_setup/old/ss_vb.cpp
OS2World/LIB-GRAPHICS-The_Mesa_3D_Graphics_Library
c0e0cfaeefa9e87e4978101fbac7d0372c39f1a3
[ "MIT" ]
null
null
null
src/swrast_setup/old/ss_vb.cpp
OS2World/LIB-GRAPHICS-The_Mesa_3D_Graphics_Library
c0e0cfaeefa9e87e4978101fbac7d0372c39f1a3
[ "MIT" ]
null
null
null
src/swrast_setup/old/ss_vb.cpp
OS2World/LIB-GRAPHICS-The_Mesa_3D_Graphics_Library
c0e0cfaeefa9e87e4978101fbac7d0372c39f1a3
[ "MIT" ]
null
null
null
/* $Id: ss_vb.c,v 1.22 2002/10/29 20:29:00 brianp Exp $ */ /* * Mesa 3-D graphics library * Version: 4.1 * * Copyright (C) 1999-2002 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "So...
26.217002
78
0.650397
OS2World