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
bbb1648c52e622191533db49eef76b1e528b96eb
1,661
hpp
C++
modules/test/src/Test/gmTestController.hpp
GraphMIC/GraphMIC
8fc2aeb0143ee1292c6757f010fc9e8c68823e2b
[ "BSD-3-Clause" ]
43
2016-04-11T11:34:05.000Z
2022-03-31T03:37:57.000Z
modules/test/src/Test/gmTestController.hpp
kevinlq/GraphMIC
8fc2aeb0143ee1292c6757f010fc9e8c68823e2b
[ "BSD-3-Clause" ]
1
2016-05-17T12:58:16.000Z
2016-05-17T12:58:16.000Z
modules/test/src/Test/gmTestController.hpp
kevinlq/GraphMIC
8fc2aeb0143ee1292c6757f010fc9e8c68823e2b
[ "BSD-3-Clause" ]
14
2016-05-13T20:23:16.000Z
2021-12-20T10:33:19.000Z
#pragma once #include <QQmlListProperty> #include <QObject> #include <QHash> namespace gm { namespace Node { class Object; } namespace Test { class List; class Instance; class Unit; class Controller : public QObject { Q_OBJE...
29.660714
103
0.556893
GraphMIC
bbb535048b0ade82e5d9714ad923177fb19a9c26
2,007
cpp
C++
library/dynamicProgramming/optimizationKnuth.cpp
bluedawnstar/algorithm_library
4c7f64ec61fc2ba059b64ad7ba20fcb5b838ced6
[ "Unlicense" ]
40
2017-11-26T05:29:18.000Z
2020-11-13T00:29:26.000Z
library/dynamicProgramming/optimizationKnuth.cpp
bluedawnstar/algorithm_library
4c7f64ec61fc2ba059b64ad7ba20fcb5b838ced6
[ "Unlicense" ]
101
2019-02-09T06:06:09.000Z
2021-12-25T16:55:37.000Z
library/dynamicProgramming/optimizationKnuth.cpp
bluedawnstar/algorithm_library
4c7f64ec61fc2ba059b64ad7ba20fcb5b838ced6
[ "Unlicense" ]
6
2017-01-03T14:17:58.000Z
2021-01-22T10:37:04.000Z
#include <cmath> #include <vector> #include <algorithm> using namespace std; #include "optimizationKnuth.h" /////////// For Testing /////////////////////////////////////////////////////// #include <time.h> #include <cassert> #include <string> #include <iostream> #include "../common/iostreamhelper.h" #include "../c...
25.0875
88
0.464873
bluedawnstar
bbb8814fee3e67a4ae25eb23997d9acb4616ef5f
1,180
cpp
C++
oop2_project/GameScreen.cpp
akivagold/Robbery-in-the-Depths
e4a2a1434dbe13af70635483c9c2098afdc0d93c
[ "Apache-2.0" ]
2
2020-08-19T10:19:22.000Z
2021-08-15T15:29:47.000Z
oop2_project/GameScreen.cpp
akivagold/Robbery-in-the-Depths
e4a2a1434dbe13af70635483c9c2098afdc0d93c
[ "Apache-2.0" ]
null
null
null
oop2_project/GameScreen.cpp
akivagold/Robbery-in-the-Depths
e4a2a1434dbe13af70635483c9c2098afdc0d93c
[ "Apache-2.0" ]
2
2020-10-06T08:42:04.000Z
2020-12-24T11:03:35.000Z
#include "GameScreen.h" GameScreen::GameScreen(sf::RenderWindow& window) : BaseScreen(window), m_gameMenu(std::make_shared<GameMenu>(window)), m_world(std::make_shared<World>(window)) { init(); } void GameScreen::loadLevel(const LevelInfo& levelInfo) { // play level music if include const string& backMusicNam...
28.095238
85
0.716949
akivagold
bbb89a697d12dbf8a53f98a4a0b5dbaf2407429f
2,403
cpp
C++
C++CodeSnippets/LCM of n numbers [With Prime and mod].cpp
Maruf-Tuhin/Online_Judge
cf9b2a522e8b1a9623d3996a632caad7fd67f751
[ "MIT" ]
1
2019-03-31T05:47:30.000Z
2019-03-31T05:47:30.000Z
C++CodeSnippets/LCM of n numbers [With Prime and mod].cpp
the-redback/competitive-programming
cf9b2a522e8b1a9623d3996a632caad7fd67f751
[ "MIT" ]
null
null
null
C++CodeSnippets/LCM of n numbers [With Prime and mod].cpp
the-redback/competitive-programming
cf9b2a522e8b1a9623d3996a632caad7fd67f751
[ "MIT" ]
null
null
null
/** * @author : Maruf Tuhin * @School : CUET CSE 11 * @Topcoder : the_redback * @CodeForces : the_redback * @UVA : the_redback * @link : http://www.fb.com/maruf.2hin */ #include <bits/stdc++.h> using namespace std; #define mp make_pair #define pb(x) push_back(...
18.92126
65
0.426966
Maruf-Tuhin
c7e2caa53e1a1d18aed65f4758726fec42e18bdd
815
cpp
C++
GCC/rule_30.cpp
rondon1947/Zero-to-Hero
c08b036196f0eec016693375a8785c8ec97e940f
[ "MIT" ]
1
2019-11-19T13:22:56.000Z
2019-11-19T13:22:56.000Z
GCC/rule_30.cpp
rondon1947/Zero-to-Hero
c08b036196f0eec016693375a8785c8ec97e940f
[ "MIT" ]
null
null
null
GCC/rule_30.cpp
rondon1947/Zero-to-Hero
c08b036196f0eec016693375a8785c8ec97e940f
[ "MIT" ]
1
2020-06-16T20:11:30.000Z
2020-06-16T20:11:30.000Z
#include <map> #include<iostream> using namespace std; // an implementation of rule 30: // https://en.wikipedia.org/wiki/Rule_30 string step(string level, map<string, string> rules){ level = " " + level + " "; string result = ""; for (int i = 0; i < level.length() - 2; i++) { result = result +...
18.953488
55
0.483436
rondon1947
c7e7498ee65ed3804a1600b57e14b587727f7a80
379
cpp
C++
src/impl/matrix/populators.cpp
chiku/cmatrix
6fb7cdbe45abc3b0e0c5c4eea7793b0be36e72e8
[ "MIT" ]
2
2015-02-02T01:55:47.000Z
2017-03-25T11:53:16.000Z
src/impl/matrix/populators.cpp
chiku/cmatrix
6fb7cdbe45abc3b0e0c5c4eea7793b0be36e72e8
[ "MIT" ]
null
null
null
src/impl/matrix/populators.cpp
chiku/cmatrix
6fb7cdbe45abc3b0e0c5c4eea7793b0be36e72e8
[ "MIT" ]
null
null
null
// Written by : Chirantan Mitra namespace cmatrix { template <class Type> void Matrix<Type>::fillWith(Type value) { for (long int i = 0; i < rows(); i++) { for (long int j = 0; j < columns(); j++) { access(i, j) = value; } } } template <class Type> inline void Matrix<Type>::fi...
16.478261
50
0.564644
chiku
c7e775dcdd725f94aabb1fe12db1d3af946dee86
1,477
hpp
C++
StoryWriter/NumberSourceDataModel.hpp
hojjatabdollahi/StoryWriter
5df36618ebfa237f826a9965ff2699b7b2422177
[ "MIT" ]
null
null
null
StoryWriter/NumberSourceDataModel.hpp
hojjatabdollahi/StoryWriter
5df36618ebfa237f826a9965ff2699b7b2422177
[ "MIT" ]
null
null
null
StoryWriter/NumberSourceDataModel.hpp
hojjatabdollahi/StoryWriter
5df36618ebfa237f826a9965ff2699b7b2422177
[ "MIT" ]
null
null
null
#pragma once #include <QtCore/QObject> #include <QtWidgets/QLineEdit> #include <nodes/NodeDataModel> #include <iostream> #include "TextEdit/textedit.h" class DecimalData; using QtNodes::PortType; using QtNodes::PortIndex; using QtNodes::NodeData; using QtNodes::NodeDataType; using QtNodes::NodeDataMo...
17.795181
70
0.698037
hojjatabdollahi
c7e7a7ae648fbe9b3ca731d5af3762ef8e022afc
413
cpp
C++
dataStructuresAndAlgorithms/Queue.cpp
ualikhansars/dataStructuresAndAlgorithms
3bf273bd56710579c8725fc509054bb539fe1c1e
[ "MIT" ]
null
null
null
dataStructuresAndAlgorithms/Queue.cpp
ualikhansars/dataStructuresAndAlgorithms
3bf273bd56710579c8725fc509054bb539fe1c1e
[ "MIT" ]
null
null
null
dataStructuresAndAlgorithms/Queue.cpp
ualikhansars/dataStructuresAndAlgorithms
3bf273bd56710579c8725fc509054bb539fe1c1e
[ "MIT" ]
null
null
null
#include <vector> class Queue { std::vector<int> elements; short head = 0; short tail = 0; const short MAX_SIZE = 1000; public: void Enqueue(int newElement) { elements[tail] = newElement; if (tail == MAX_SIZE) { tail = 0; } else { tail += 1; } } int Dequeue() { int element = elements[head]; ...
13.766667
31
0.576271
ualikhansars
c7efffb3caf2529d4ae3da30181910c61d817251
1,024
hpp
C++
include/Camera.hpp
savageking-io/evelengine
f4f31419077e3467db271e82b05164eafa521eb7
[ "Apache-2.0" ]
null
null
null
include/Camera.hpp
savageking-io/evelengine
f4f31419077e3467db271e82b05164eafa521eb7
[ "Apache-2.0" ]
null
null
null
include/Camera.hpp
savageking-io/evelengine
f4f31419077e3467db271e82b05164eafa521eb7
[ "Apache-2.0" ]
null
null
null
#ifndef __EVEL_ENGINE_CAMERA_HPP__ #define __EVEL_ENGINE_CAMERA_HPP__ #include "Velocity.hpp" #include "Geometry.hpp" namespace EvelEngine { class Camera { public: //! Constructor Camera(int w, int h); //! Destructor ~Camera(); //! Update ...
23.813953
75
0.548828
savageking-io
c7f534ca764945ad6d12daa7b552c4d142707b4d
29,745
cpp
C++
Temp/il2cppOutput/il2cppOutput/Bulk_DOTween43_0.cpp
408794550/871AR
3f903d01ae05522413f7be7abb286d1944d00bbb
[ "Apache-2.0" ]
1
2018-08-16T10:43:30.000Z
2018-08-16T10:43:30.000Z
Temp/il2cppOutput/il2cppOutput/Bulk_DOTween43_0.cpp
408794550/871AR
3f903d01ae05522413f7be7abb286d1944d00bbb
[ "Apache-2.0" ]
null
null
null
Temp/il2cppOutput/il2cppOutput/Bulk_DOTween43_0.cpp
408794550/871AR
3f903d01ae05522413f7be7abb286d1944d00bbb
[ "Apache-2.0" ]
null
null
null
ο»Ώ#include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <cstring> #include <string.h> #include <stdio.h> #include <cmath> #include <limits> #include <assert.h> #include "class-internals.h" #include "codegen/il2cpp-codegen.h" #include "mscorlib_System_Array38294689...
67.756264
380
0.830593
408794550
c7f56f8c54a8613c12f591efa6487059481829b5
809
cpp
C++
src/GM_SpecialStage.cpp
MainMemory/CuckySonic
af8e10f3c05b286b830001e73f79d9a7a8edc84e
[ "MIT" ]
2
2020-01-10T06:52:40.000Z
2020-12-17T02:57:30.000Z
src/GM_SpecialStage.cpp
MainMemory/CuckySonic
af8e10f3c05b286b830001e73f79d9a7a8edc84e
[ "MIT" ]
null
null
null
src/GM_SpecialStage.cpp
MainMemory/CuckySonic
af8e10f3c05b286b830001e73f79d9a7a8edc84e
[ "MIT" ]
null
null
null
#include "Game.h" #include "GameConstants.h" #include "Error.h" #include "Log.h" #include "Event.h" #include "Render.h" #include "Fade.h" #include "Input.h" #include "SpecialStage.h" bool GM_SpecialStage(bool *bError) { //Load the special stage SPECIALSTAGE stage("data/SpecialStage/Stage/1"); if (stage.fail != null...
19.261905
110
0.676143
MainMemory
c7fc8ee82e50b9c1192e93c81036e79d1184ecdc
4,091
cc
C++
steam/interfaces/networkdevicemanager.cc
TBK/argonx
0165caad474d83f020fe29d85e802fae9adecc23
[ "BSD-2-Clause" ]
22
2019-01-15T12:18:25.000Z
2022-03-24T03:39:59.000Z
steam/interfaces/networkdevicemanager.cc
TBK/argonx
0165caad474d83f020fe29d85e802fae9adecc23
[ "BSD-2-Clause" ]
3
2019-07-13T16:16:16.000Z
2020-07-30T10:07:30.000Z
steam/interfaces/networkdevicemanager.cc
TBK/argonx
0165caad474d83f020fe29d85e802fae9adecc23
[ "BSD-2-Clause" ]
2
2019-06-19T10:09:32.000Z
2020-06-29T15:16:58.000Z
#include <precompiled.hh> #include "helpers.hh" #include "steamplatform.hh" using namespace Steam; namespace Reference { #include "SteamStructs/IClientNetworkDeviceManager.h" } template <bool isServer> class ClientNetworkDeviceManager : public Reference::IClientNetworkDeviceManager { public: UserHandle userHand...
35.267241
140
0.708384
TBK
2a0653d635765a75c91a08f416967c69fca43747
864
cpp
C++
03Operators/03bitFliag.cpp
CedarChennn/myC
b4de17f332788e3e578d304f2a690d2c9a07c004
[ "Apache-2.0" ]
2
2021-01-13T08:55:41.000Z
2021-04-23T15:14:05.000Z
03Operators/03bitFliag.cpp
CedarChennn/myC
b4de17f332788e3e578d304f2a690d2c9a07c004
[ "Apache-2.0" ]
null
null
null
03Operators/03bitFliag.cpp
CedarChennn/myC
b4de17f332788e3e578d304f2a690d2c9a07c004
[ "Apache-2.0" ]
null
null
null
#include <bitset> #include <iostream> int main1() { std::bitset<4> x { 0b1100 }; std::cout << x << '\n'; std::cout << (x >> 1) << '\n'; // shift right by 1, yielding 0110 std::cout << (x << 1) << '\n'; // shift left by 1, yielding 1000 return 0; } // This prints: // 1100 // 0110 // 1000 /* 0 ...
20.093023
91
0.527778
CedarChennn
2a1ada77767c02ec5fef37f362bc41dab7ea2814
6,352
cpp
C++
src/playpen/upl_playpen_main.cpp
declued/upl
cf320c255555eb6067a5ab34cf8c5a00fb5e8f19
[ "MIT" ]
null
null
null
src/playpen/upl_playpen_main.cpp
declued/upl
cf320c255555eb6067a5ab34cf8c5a00fb5e8f19
[ "MIT" ]
null
null
null
src/playpen/upl_playpen_main.cpp
declued/upl
cf320c255555eb6067a5ab34cf8c5a00fb5e8f19
[ "MIT" ]
null
null
null
//====================================================================== #include <upl/st_code.hpp> #include <upl/lexer.hpp> #include <upl/input.hpp> #include <upl/errors.hpp> #include <upl/common.hpp> #include <cstdint> #include <iostream> //====================================================================== //...
27.617391
124
0.462531
declued
2a1b9ffb29d524f3659a0e8eae06eac3099d3ad2
521
cpp
C++
chapter-13/13.35.cpp
zero4drift/Cpp-Primer-5th-Exercises
d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f
[ "MIT" ]
null
null
null
chapter-13/13.35.cpp
zero4drift/Cpp-Primer-5th-Exercises
d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f
[ "MIT" ]
null
null
null
chapter-13/13.35.cpp
zero4drift/Cpp-Primer-5th-Exercises
d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f
[ "MIT" ]
null
null
null
// is using synthesized version of copy control members: // for copy constructor: no folder contains the pointer which points to this newly constructed Message object; // for destructor: even destructed, folders still contains the pointer which points to the invalid memory space which once stored this destructed objec...
86.833333
197
0.81382
zero4drift
2a1dec4cfa31f6d0e42fbabb4faf4cdf76307bed
4,472
cc
C++
xapian/xapian-core-1.2.13/backends/chert/chert_alldocsmodifiedpostlist.cc
pgs7179/xapian_modified
0229c9efb9eca19be4c9f463cd4b793672f24198
[ "MIT" ]
2
2021-01-13T21:17:42.000Z
2021-01-13T21:17:42.000Z
xapian/xapian-core-1.2.13/backends/chert/chert_alldocsmodifiedpostlist.cc
Loslove55/tailbench
fbbf3f31e3f0af1bb7db7f07c2e7193b84abb1eb
[ "MIT" ]
null
null
null
xapian/xapian-core-1.2.13/backends/chert/chert_alldocsmodifiedpostlist.cc
Loslove55/tailbench
fbbf3f31e3f0af1bb7db7f07c2e7193b84abb1eb
[ "MIT" ]
null
null
null
/** @file chert_alldocsmodifiedpostlist.cc * @brief A ChertAllDocsPostList plus pending modifications. */ /* Copyright (C) 2008 Lemur Consulting Ltd * Copyright (C) 2006,2007,2008,2009,2010 Olly Betts * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General ...
32.882353
112
0.72093
pgs7179
2a1e8f5220dc900d64705852860731371ed7e83d
1,762
cc
C++
src/common/train_sgd.cc
karlmoritz/oxcvsm
02fd78231a8b3c4d48e9e759a3a075d04bcd0529
[ "Apache-2.0" ]
10
2015-02-06T01:41:41.000Z
2017-10-06T15:50:32.000Z
src/common/train_sgd.cc
karlmoritz/oxcvsm
02fd78231a8b3c4d48e9e759a3a075d04bcd0529
[ "Apache-2.0" ]
null
null
null
src/common/train_sgd.cc
karlmoritz/oxcvsm
02fd78231a8b3c4d48e9e759a3a075d04bcd0529
[ "Apache-2.0" ]
4
2015-01-02T10:49:15.000Z
2020-12-30T17:59:22.000Z
// File: train_sgd.cc // Author: Karl Moritz Hermann (mail@karlmoritz.com) // Created: 01-01-2013 // Last Update: Thu 03 Oct 2013 11:48:43 AM BST // STL #include <iostream> #include <cmath> // Boost #include <boost/program_options/variables_map.hpp> #include <boost/program_options/parsers.hpp> #include "shared_defs....
23.184211
87
0.658343
karlmoritz
2a2676124533b55eb30268fcb875cb637d7015f1
886
cpp
C++
03/program.cpp
wtrsltnk/adventofcode17
13ba6bd3a64413973971134ae17465029a884933
[ "MIT" ]
1
2017-12-06T08:00:35.000Z
2017-12-06T08:00:35.000Z
03/program.cpp
wtrsltnk/adventofcode17
13ba6bd3a64413973971134ae17465029a884933
[ "MIT" ]
null
null
null
03/program.cpp
wtrsltnk/adventofcode17
13ba6bd3a64413973971134ae17465029a884933
[ "MIT" ]
null
null
null
#include <iostream> #include <functional> #include <numeric> #include "library.h" int main(int argc, char* argv[]) { std::cout << "Advent of Code - 2017\n"; std::cout << "--- Day 3: Spiral Memory ---\n"; if (argc < 2) { std::cout << "*** ERROR *** No input value given, please provide an integ...
23.945946
102
0.588036
wtrsltnk
2a27473128fb2fb6e83925d8b6b0d2c6f40f98f1
2,389
cpp
C++
android-31/java/io/ObjectStreamClass.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
12
2020-03-26T02:38:56.000Z
2022-03-14T08:17:26.000Z
android-31/java/io/ObjectStreamClass.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
1
2021-01-27T06:07:45.000Z
2021-11-13T19:19:43.000Z
android-29/java/io/ObjectStreamClass.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
3
2021-02-02T12:34:55.000Z
2022-03-08T07:45:57.000Z
#include "../../JByteArray.hpp" #include "../../JArray.hpp" #include "../../JArray.hpp" #include "../../JArray.hpp" #include "../../JObjectArray.hpp" #include "../../JArray.hpp" #include "./ObjectInputStream.hpp" #include "./ObjectOutputStream.hpp" #include "./ObjectStreamField.hpp" #include "../../JClass.hpp" #include...
22.971154
76
0.690247
YJBeetle
2a2bd246011b018516de3b9fd3d93cf1b371a93e
3,421
cc
C++
src/Experimental/rotateContig.cc
sagrudd/amos
47643a1d238bff83421892cb74daaf6fff8d9548
[ "Artistic-1.0" ]
10
2015-03-20T18:25:56.000Z
2020-06-02T22:00:08.000Z
src/Experimental/rotateContig.cc
sagrudd/amos
47643a1d238bff83421892cb74daaf6fff8d9548
[ "Artistic-1.0" ]
5
2015-05-14T17:51:20.000Z
2020-07-19T04:17:47.000Z
src/Experimental/rotateContig.cc
sagrudd/amos
47643a1d238bff83421892cb74daaf6fff8d9548
[ "Artistic-1.0" ]
10
2015-05-17T16:01:23.000Z
2020-05-20T08:13:43.000Z
#include "foundation_AMOS.hh" #include "amp.hh" #include "fasta.hh" // Rotate a contig to a new offset using namespace AMOS; using namespace std; string bank_name; string contigeid; ID_t contigiid = 0; Pos_t gindex = 0; Pos_t uindex = 0; void PrintUsage(const char * name) { cerr << "Usage: " << name << " ...
22.506579
93
0.572347
sagrudd
2a34d9f06e06a293ab34c292c95631e9054625dd
1,461
cpp
C++
graph/shortest_path/sol/wrong_dijkstra_2.cpp
jellc/library-checker-problems
d8570610d79cdbb70ef8af5a669b57c70556ea01
[ "Apache-2.0" ]
290
2019-06-06T22:20:36.000Z
2022-03-27T12:45:04.000Z
graph/shortest_path/sol/wrong_dijkstra_2.cpp
jellc/library-checker-problems
d8570610d79cdbb70ef8af5a669b57c70556ea01
[ "Apache-2.0" ]
536
2019-06-06T18:25:36.000Z
2022-03-29T11:46:36.000Z
graph/shortest_path/sol/wrong_dijkstra_2.cpp
jellc/library-checker-problems
d8570610d79cdbb70ef8af5a669b57c70556ea01
[ "Apache-2.0" ]
82
2019-06-06T18:17:55.000Z
2022-03-21T07:40:31.000Z
#include <stdio.h> #include <vector> #include <queue> #include <utility> #include <stdint.h> #include <inttypes.h> #include <algorithm> int ri() { int n; scanf("%d", &n); return n; } template<typename T> using pqueue_inv = std::priority_queue<T, std::vector<T>, std::greater<T> >; int main() { int n = ri(); int ...
22.476923
97
0.542779
jellc
2a3552f27515c1ae1f70cee690d27f996d263823
5,809
cc
C++
arcane/samples_build/samples/geometry/GeometryModule.cc
JeromeDuboisPro/framework
d88925495e3787fdaf640c29728dcac385160188
[ "Apache-2.0" ]
null
null
null
arcane/samples_build/samples/geometry/GeometryModule.cc
JeromeDuboisPro/framework
d88925495e3787fdaf640c29728dcac385160188
[ "Apache-2.0" ]
null
null
null
arcane/samples_build/samples/geometry/GeometryModule.cc
JeromeDuboisPro/framework
d88925495e3787fdaf640c29728dcac385160188
[ "Apache-2.0" ]
null
null
null
ο»Ώ// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*- //----------------------------------------------------------------------------- // Copyright 2000-2021 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com) // See the top-level COPYRIGHT file for details. // SPDX-License-Identifier: Apache-2...
29.48731
101
0.454295
JeromeDuboisPro
2a38efa9c15239d155abe80adc91997ff68a765b
1,204
cpp
C++
src/homework/tic_tac_toe/tic_tac_toe_data.cpp
acc-cosc-1337-spring-2020-hl/acc-cosc-1337-spring-2020-ThomasGreenway115
3e9ccb09ee62cf1d7649cded3086ec76d9136175
[ "MIT" ]
null
null
null
src/homework/tic_tac_toe/tic_tac_toe_data.cpp
acc-cosc-1337-spring-2020-hl/acc-cosc-1337-spring-2020-ThomasGreenway115
3e9ccb09ee62cf1d7649cded3086ec76d9136175
[ "MIT" ]
null
null
null
src/homework/tic_tac_toe/tic_tac_toe_data.cpp
acc-cosc-1337-spring-2020-hl/acc-cosc-1337-spring-2020-ThomasGreenway115
3e9ccb09ee62cf1d7649cded3086ec76d9136175
[ "MIT" ]
1
2020-04-10T02:20:49.000Z
2020-04-10T02:20:49.000Z
#include "tic_tac_toe_data.h" //cpp void TicTacToeData::save_pegs(const std::vector<std::unique_ptr<TicTacToe>> & games) { std::ofstream file_out(file_name, std::ios_base::trunc); for (auto &game : games) { for (auto peg : game->get_pegs()) { file_out << peg ; } file_out << game->get_winner(); f...
18.523077
84
0.608804
acc-cosc-1337-spring-2020-hl
2a3b6136813cee61b40036863f8625a041787838
10,671
cpp
C++
source/option/h2_option.cpp
lingjf/h2un
7735c2f07f58ea8b92a9e9608c9b45c98c94c670
[ "Apache-2.0" ]
null
null
null
source/option/h2_option.cpp
lingjf/h2un
7735c2f07f58ea8b92a9e9608c9b45c98c94c670
[ "Apache-2.0" ]
null
null
null
source/option/h2_option.cpp
lingjf/h2un
7735c2f07f58ea8b92a9e9608c9b45c98c94c670
[ "Apache-2.0" ]
null
null
null
/* clang-format off */ static inline void usage() { ::printf(" \033[90mhttps://github.com/lingjf/\033[0m\033[32mh2unit\033[0m \033[90mv\033[0m%s \033[90m%s\033[0m\n", H2PP_STR(H2UNIT_VERSION), H2PP_STR(H2UNIT_REVISION)); #define H2_USAGE_BR "\033[90mβ”œβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€...
67.537975
310
0.427608
lingjf
2a3bfe978e50ab0e4945569e99cdd293c412a1da
1,585
cpp
C++
src/main.cpp
jhorisberger/ESP8266RGB_Server
9c4c1ad47234c1d14aa460888c7b4a04c7cb5422
[ "Unlicense" ]
null
null
null
src/main.cpp
jhorisberger/ESP8266RGB_Server
9c4c1ad47234c1d14aa460888c7b4a04c7cb5422
[ "Unlicense" ]
null
null
null
src/main.cpp
jhorisberger/ESP8266RGB_Server
9c4c1ad47234c1d14aa460888c7b4a04c7cb5422
[ "Unlicense" ]
null
null
null
#include <Arduino.h> #include "radio.h" #include "tft.h" EspNow32 radio; CustomTFT tft; struct_payload txdata; const byte numChars = 16; char receivedChars[numChars]; // an array to store the received data int testdata = 0; boolean newData = false; void setup() { // start serial port Serial.begin(115200);...
17.808989
99
0.596845
jhorisberger
2a3de33f980c986b26957204f7e6d3980dc0f709
6,194
cpp
C++
module/mpc-be/SRC/src/apps/mplayerc/controls/FloatEdit.cpp
1aq/PBox
67ced599ee36ceaff097c6584f8100cf96006dfe
[ "MIT" ]
null
null
null
module/mpc-be/SRC/src/apps/mplayerc/controls/FloatEdit.cpp
1aq/PBox
67ced599ee36ceaff097c6584f8100cf96006dfe
[ "MIT" ]
null
null
null
module/mpc-be/SRC/src/apps/mplayerc/controls/FloatEdit.cpp
1aq/PBox
67ced599ee36ceaff097c6584f8100cf96006dfe
[ "MIT" ]
null
null
null
/* * (C) 2003-2006 Gabest * (C) 2006-2018 see Authors.txt * * This file is part of MPC-BE. * * MPC-BE is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your opt...
19.601266
110
0.644172
1aq
2a3de877f88051b9707fc4527d0892e6cf659ea0
1,163
cpp
C++
Source/Entities/Sphere.cpp
Avalix/LittleRaytracer
e70c8629d7dc3d1e273c33ed88b75fc60d9ff65b
[ "MIT" ]
null
null
null
Source/Entities/Sphere.cpp
Avalix/LittleRaytracer
e70c8629d7dc3d1e273c33ed88b75fc60d9ff65b
[ "MIT" ]
null
null
null
Source/Entities/Sphere.cpp
Avalix/LittleRaytracer
e70c8629d7dc3d1e273c33ed88b75fc60d9ff65b
[ "MIT" ]
null
null
null
#include "Base.h" #include "Entities/Sphere.h" #include "Maths/HitResult.h" using namespace LittleRaytracer; bool Sphere::TryHitWithRay(const Ray& ray, float tIntervalMin, float tIntervalMax, HitResult& hitResultOut) const { assert(FMath::Equals(Vector3::Length(ray.Direction), 1.0f)); Vector3 RayOrigToCenter = ...
21.537037
87
0.688736
Avalix
2a3fde90a362a6dbda3f067130a247138e9c87cd
311
cc
C++
urionlinejudge.com.br/iniciante/1014_consumo.cc
andrewcpacifico/programming
bbbd16d41d34ea7316e207b8a82ae76377d80420
[ "Apache-2.0" ]
null
null
null
urionlinejudge.com.br/iniciante/1014_consumo.cc
andrewcpacifico/programming
bbbd16d41d34ea7316e207b8a82ae76377d80420
[ "Apache-2.0" ]
null
null
null
urionlinejudge.com.br/iniciante/1014_consumo.cc
andrewcpacifico/programming
bbbd16d41d34ea7316e207b8a82ae76377d80420
[ "Apache-2.0" ]
null
null
null
/** * Copyright (c) 2015 - Andrew C. Pacifico - All Rights Reserved. * @author Andrew C. Pacifico <andrewcpacifico@gmail.com> */ #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { double c; int d; scanf("%d%lf", &d, &c); printf("%.3lf km/l\n", d/c); return 0; }
17.277778
65
0.585209
andrewcpacifico
2a42b23d9f3ef388041d2dd4d080d5136aac7420
2,244
cc
C++
src/crypto/passwords.cc
Kledsky/s3fuse
2f2670f16a926ed128ca7bd326e27f43da673d61
[ "Apache-2.0" ]
2
2016-05-26T14:58:48.000Z
2016-10-05T18:46:23.000Z
src/crypto/passwords.cc
Kledsky/s3fuse
2f2670f16a926ed128ca7bd326e27f43da673d61
[ "Apache-2.0" ]
5
2016-03-08T05:06:12.000Z
2017-11-13T07:30:55.000Z
src/crypto/passwords.cc
Kledsky/s3fuse
2f2670f16a926ed128ca7bd326e27f43da673d61
[ "Apache-2.0" ]
2
2018-04-02T09:09:20.000Z
2022-01-20T11:55:29.000Z
/* * crypto/passwords.cc * ------------------------------------------------------------------------- * Password management (implementation). * ------------------------------------------------------------------------- * * Copyright (c) 2012, Tarick Bedeir. * * Licensed under the Apache License, Version 2.0 (the...
24.659341
76
0.673797
Kledsky
2a4ae5ba5dc501a750fff134fb7b2507953d9b29
732
hpp
C++
src/wstrip/W4AirContainBox.hpp
goroyabu/sim4py
44ae2a6a4adfe347a7ae899c849936ae6fe7caf3
[ "MIT" ]
null
null
null
src/wstrip/W4AirContainBox.hpp
goroyabu/sim4py
44ae2a6a4adfe347a7ae899c849936ae6fe7caf3
[ "MIT" ]
null
null
null
src/wstrip/W4AirContainBox.hpp
goroyabu/sim4py
44ae2a6a4adfe347a7ae899c849936ae6fe7caf3
[ "MIT" ]
null
null
null
/** @file W4AirContainBox.hpp @author Goro Yabu @date 2020/09/15 **/ #ifndef W4AirContainBox_hpp #define W4AirContainBox_hpp #include <P4PVConstruct.hpp> #include <vector> #include <G4VUserDetectorConstruction.hh> #include <G4ThreeVector.hh> #include <globals.hh> class W4AirContainBox : public ...
15.913043
54
0.659836
goroyabu
2a4bce9a9dddfd999f19e37a1a4e02d7638b318c
6,665
cpp
C++
src/RenderFarmUI/RF_SpreadsheetWizard.cpp
rromanchuk/xptools
deff017fecd406e24f60dfa6aae296a0b30bff56
[ "X11", "MIT" ]
71
2015-12-15T19:32:27.000Z
2022-02-25T04:46:01.000Z
src/RenderFarmUI/RF_SpreadsheetWizard.cpp
rromanchuk/xptools
deff017fecd406e24f60dfa6aae296a0b30bff56
[ "X11", "MIT" ]
19
2016-07-09T19:08:15.000Z
2021-07-29T10:30:20.000Z
src/RenderFarmUI/RF_SpreadsheetWizard.cpp
rromanchuk/xptools
deff017fecd406e24f60dfa6aae296a0b30bff56
[ "X11", "MIT" ]
42
2015-12-14T19:13:02.000Z
2022-03-01T15:15:03.000Z
/* * Copyright (c) 2007, Laminar Research. * * 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, ...
40.150602
161
0.727532
rromanchuk
2a4c32c29ef97e3fe10ce59e9189db2b32de8d7f
8,428
hh
C++
tests/Titon/Http/Server/DownloadResponseTest.hh
ciklon-z/framework
cbf44729173d3a83b91a2b0a217c6b3827512e44
[ "BSD-2-Clause" ]
206
2015-01-02T20:01:12.000Z
2021-04-15T09:49:56.000Z
tests/Titon/Http/Server/DownloadResponseTest.hh
ciklon-z/framework
cbf44729173d3a83b91a2b0a217c6b3827512e44
[ "BSD-2-Clause" ]
44
2015-01-02T06:03:43.000Z
2017-11-20T18:29:06.000Z
tests/Titon/Http/Server/DownloadResponseTest.hh
titon/framework
cbf44729173d3a83b91a2b0a217c6b3827512e44
[ "BSD-2-Clause" ]
27
2015-01-03T05:51:29.000Z
2022-02-21T13:50:40.000Z
<?hh namespace Titon\Http\Server; use Titon\Http\Http; use Titon\Test\TestCase; use Titon\Utility\State\Server; class DownloadResponseTest extends TestCase { protected function setUp(): void { parent::setUp(); $this->vfs()->createDirectory('/http/'); $this->vfs()->createFile('/http/downl...
37.963964
153
0.592667
ciklon-z
2a4fbcb198d254dfe4a9e5a96c8a2cf3d04c60e5
5,688
hpp
C++
include/json/number.hpp
tymonx/json-cxx-dev
9ff8570ab97df4b9cc9e6357d8c8e5762003de83
[ "Apache-2.0" ]
null
null
null
include/json/number.hpp
tymonx/json-cxx-dev
9ff8570ab97df4b9cc9e6357d8c8e5762003de83
[ "Apache-2.0" ]
null
null
null
include/json/number.hpp
tymonx/json-cxx-dev
9ff8570ab97df4b9cc9e6357d8c8e5762003de83
[ "Apache-2.0" ]
null
null
null
/*! * @copyright * Copyright 2017 Tymoteusz Blazejczyk * * @copyright * 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 * * @copyright * http://www.apache.org/licenses/LICENSE-2.0 ...
21.383459
75
0.66192
tymonx
2a51766917c16ca8f17c68ede9ad5756f51cc37d
410
cpp
C++
DenseAlgebra/GEMM_Test_0_0/MatMatMultiply.cpp
hvenugopalan/CS639S20_Demos
52f0d40bedbb212c4287b7ed55b4ca5cb75d0f8b
[ "BSD-2-Clause" ]
17
2020-01-28T20:49:31.000Z
2021-06-17T03:10:53.000Z
DenseAlgebra/GEMM_Test_0_0/MatMatMultiply.cpp
hvenugopalan/CS639S20_Demos
52f0d40bedbb212c4287b7ed55b4ca5cb75d0f8b
[ "BSD-2-Clause" ]
1
2020-02-11T21:13:35.000Z
2020-02-11T21:13:35.000Z
DenseAlgebra/GEMM_Test_0_0/MatMatMultiply.cpp
hvenugopalan/CS639S20_Demos
52f0d40bedbb212c4287b7ed55b4ca5cb75d0f8b
[ "BSD-2-Clause" ]
11
2020-01-28T20:55:52.000Z
2021-04-29T02:15:06.000Z
#include "MatMatMultiply.h" void MatMatMultiply(const float (&A)[MATRIX_SIZE][MATRIX_SIZE], const float (&B)[MATRIX_SIZE][MATRIX_SIZE], float (&C)[MATRIX_SIZE][MATRIX_SIZE]) { #pragma omp parallel for for (int i = 0; i < MATRIX_SIZE; i++) for (int j = 0; j < MATRIX_SIZE; j++) { C[i][j] = 0.; ...
29.285714
85
0.560976
hvenugopalan
2a5490f594d3e8acb7d350b3557b0dc704872aa1
838
cpp
C++
timus/1982v1.cpp
cosmicray001/Online_judge_Solutions-
5dc6f90d3848eb192e6edea8e8c731f41a1761dd
[ "MIT" ]
3
2018-01-08T02:52:51.000Z
2021-03-03T01:08:44.000Z
timus/1982v1.cpp
cosmicray001/Online_judge_Solutions-
5dc6f90d3848eb192e6edea8e8c731f41a1761dd
[ "MIT" ]
null
null
null
timus/1982v1.cpp
cosmicray001/Online_judge_Solutions-
5dc6f90d3848eb192e6edea8e8c731f41a1761dd
[ "MIT" ]
1
2020-08-13T18:07:35.000Z
2020-08-13T18:07:35.000Z
#include <bits/stdc++.h> #define le 103 #define ll long long int using namespace std; ll n[le][le]; int ve[le]; int main(){ //freopen("input.txt", "r", stdin); int e, len; scanf("%d %d", &e, &len); for(int i = 0; i < len; scanf("%d", &ve[i]), i++); for(int i = 0; i < e; i++){ for(int j = 0; j < e; j++) sc...
22.648649
65
0.420048
cosmicray001
2a58188d83430c99020dc8dbe5015fb6531d3285
22,833
cpp
C++
src/activemasternode.cpp
nexalt-project/nexalt-core
e0c2f3f8ee0eb3ab298dfbbdb1e9d5426c65670f
[ "MIT" ]
7
2021-01-30T11:20:46.000Z
2021-12-04T02:21:19.000Z
src/activemasternode.cpp
nexalt-project/nexalt-core
e0c2f3f8ee0eb3ab298dfbbdb1e9d5426c65670f
[ "MIT" ]
null
null
null
src/activemasternode.cpp
nexalt-project/nexalt-core
e0c2f3f8ee0eb3ab298dfbbdb1e9d5426c65670f
[ "MIT" ]
7
2021-01-17T11:48:40.000Z
2021-05-10T12:15:00.000Z
// Copyright (c) 2012-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2018 The Luxcore developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "protocol.h" #include "a...
41.214801
218
0.680068
nexalt-project
3986bf0985dbdec61b5553ea12f2d3ee96b501ca
27,674
cpp
C++
namespace.cpp
JonathanGuthrie/wodin
bef3d5f0fa65f2148e7d8fb52606191689023bb0
[ "Apache-2.0" ]
3
2015-05-06T16:56:14.000Z
2017-03-22T05:25:21.000Z
namespace.cpp
JonathanGuthrie/wodin
bef3d5f0fa65f2148e7d8fb52606191689023bb0
[ "Apache-2.0" ]
null
null
null
namespace.cpp
JonathanGuthrie/wodin
bef3d5f0fa65f2148e7d8fb52606191689023bb0
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2013 Jonathan R. Guthrie * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
36.033854
181
0.71616
JonathanGuthrie
398c8cb9dd1a525947665d657ac0bd0da3edde66
4,461
cpp
C++
lib/regi/sim_metrics_2d/xregImgSimMetric2DBoundaryEdgesCPU.cpp
rg2/xreg
c06440d7995f8a441420e311bb7b6524452843d3
[ "MIT" ]
30
2020-09-29T18:36:13.000Z
2022-03-28T09:25:13.000Z
lib/regi/sim_metrics_2d/xregImgSimMetric2DBoundaryEdgesCPU.cpp
gaocong13/Orthopedic-Robot-Navigation
bf36f7de116c1c99b86c9ba50f111c3796336af0
[ "MIT" ]
3
2020-10-09T01:21:27.000Z
2020-12-10T15:39:44.000Z
lib/regi/sim_metrics_2d/xregImgSimMetric2DBoundaryEdgesCPU.cpp
rg2/xreg
c06440d7995f8a441420e311bb7b6524452843d3
[ "MIT" ]
8
2021-05-25T05:14:48.000Z
2022-02-26T12:29:50.000Z
/* * MIT License * * Copyright (c) 2020 Robert Grupp * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, mod...
30.554795
103
0.654562
rg2
3994a19afa6a3b44787d87d571b673144d9c4b6f
427
cpp
C++
HW1and2/src/IArmyFactory.cpp
2ToThe10th/metaprogramming
34fc080185f5ed17c25651f150030e617d466e64
[ "MIT" ]
null
null
null
HW1and2/src/IArmyFactory.cpp
2ToThe10th/metaprogramming
34fc080185f5ed17c25651f150030e617d466e64
[ "MIT" ]
null
null
null
HW1and2/src/IArmyFactory.cpp
2ToThe10th/metaprogramming
34fc080185f5ed17c25651f150030e617d466e64
[ "MIT" ]
null
null
null
// // Created by 2ToThe10th on 25.04.2021. // #include "IArmyFactory.hpp" #include <utility> Soldier::Soldier(std::string type) : type_(std::move(type)) {} void Soldier::setColor(std::string color) { color_ = std::move(color); } const std::string &Soldier::getColor() { return color_; } Infantry::Infantry() : S...
18.565217
62
0.665105
2ToThe10th
3994a6c6385595ba686f41a443aee9801933e87a
7,355
hh
C++
include/benchmark/all_libraries/flann_test.hh
mlawsonca/benchmarking_suite_range_searching_libraries
85f2e6be47633836e56684636851eeb393c46d7d
[ "MIT" ]
1
2021-10-07T18:46:56.000Z
2021-10-07T18:46:56.000Z
include/benchmark/all_libraries/flann_test.hh
mlawsonca/benchmarking_suite_range_searching_libraries
85f2e6be47633836e56684636851eeb393c46d7d
[ "MIT" ]
null
null
null
include/benchmark/all_libraries/flann_test.hh
mlawsonca/benchmarking_suite_range_searching_libraries
85f2e6be47633836e56684636851eeb393c46d7d
[ "MIT" ]
null
null
null
#ifndef FLANN_TEST_HH #define FLANN_TEST_HH #include <flann/flann.h> using namespace std; namespace TestFLANN { class KDTree : public BboxIntersectionTest { private: flann::KDTreeSingleIndex<flann::L2_Simple<double>> *tree; //produces an error if the data is not kept accessible ...
44.041916
193
0.559211
mlawsonca
399869a8104e74d72feaaeeeea2ca843eeeedb14
5,380
cpp
C++
Engine/SQ/Renderer/RenderContext.cpp
chry003/SqEngine
bb98881a29da48c8c92b33c3534da1fcdd46b92a
[ "MIT" ]
null
null
null
Engine/SQ/Renderer/RenderContext.cpp
chry003/SqEngine
bb98881a29da48c8c92b33c3534da1fcdd46b92a
[ "MIT" ]
null
null
null
Engine/SQ/Renderer/RenderContext.cpp
chry003/SqEngine
bb98881a29da48c8c92b33c3534da1fcdd46b92a
[ "MIT" ]
null
null
null
#include "pch.hpp" #include "RenderContext.hpp" #include "Core/Log.hpp" #include "Event/ApplicationEvent.hpp" #include "Event/KeyEvent.hpp" #include "Event/MouseEvent.hpp" namespace Sq { static bool isGLFWWindowCreated = false; GLFWwindow *RenderContext::m_Window = nullptr; RenderContext::WindowData RenderContex...
27.309645
127
0.610223
chry003
3999905000dcb06b7bd5286edaac38a82a185b4a
3,675
cc
C++
dyn_prog/dyn_partition_set.cc
prashrock/C-
3ed46815d40b3e42cd9f36d23c8ee2a9de742323
[ "MIT" ]
1
2016-12-05T10:42:46.000Z
2016-12-05T10:42:46.000Z
dyn_prog/dyn_partition_set.cc
prashrock/CPP
3ed46815d40b3e42cd9f36d23c8ee2a9de742323
[ "MIT" ]
null
null
null
dyn_prog/dyn_partition_set.cc
prashrock/CPP
3ed46815d40b3e42cd9f36d23c8ee2a9de742323
[ "MIT" ]
null
null
null
#include <iostream> /* std::cout */ #include <iomanip> /* std::setw */ #include <cmath> /* pow */ #include <cassert> /* assert */ #include <algorithm> /* std::max */ #include <vector> /* std:vector */ #include...
36.029412
72
0.530612
prashrock
39a50575ce53464c73c7ba4c42f63f9602b7512d
4,747
hpp
C++
SDX_Display.hpp
ffhighwind/DeferredShading
c8b765c5d1126ef8f337047db50e2eb63308baf9
[ "Apache-2.0" ]
1
2019-10-18T13:45:05.000Z
2019-10-18T13:45:05.000Z
SDX_Display.hpp
ffhighwind/DeferredShading
c8b765c5d1126ef8f337047db50e2eb63308baf9
[ "Apache-2.0" ]
1
2019-10-18T13:44:49.000Z
2019-11-29T23:26:27.000Z
SDX_Display.hpp
ffhighwind/DeferredShading
c8b765c5d1126ef8f337047db50e2eb63308baf9
[ "Apache-2.0" ]
null
null
null
/* * SDX Display classes * * Copyright (c) 2013 Wesley Hamilton * * 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, ...
36.236641
116
0.7668
ffhighwind
39a97a87d8b2d46e3c222a246311d3c79a0092e9
1,176
cpp
C++
engine/Engine.UI/src/ui/widget/button/CheckBox.cpp
Kartikeyapan598/Ghurund
bcdc5e1805bf82b3f9a0543a3bbe22681c5605ea
[ "MIT" ]
null
null
null
engine/Engine.UI/src/ui/widget/button/CheckBox.cpp
Kartikeyapan598/Ghurund
bcdc5e1805bf82b3f9a0543a3bbe22681c5605ea
[ "MIT" ]
10
2018-03-20T21:32:16.000Z
2018-04-23T19:42:59.000Z
engine/Engine.UI/src/ui/widget/button/CheckBox.cpp
Kartikeyapan598/Ghurund
bcdc5e1805bf82b3f9a0543a3bbe22681c5605ea
[ "MIT" ]
null
null
null
#include "ghuipch.h" #include "CheckBox.h" #include "ui/control/ImageView.h" #include "ui/style/Theme.h" namespace Ghurund::UI { const Ghurund::Core::Type& CheckBox::GET_TYPE() { static const auto CONSTRUCTOR = Constructor<CheckBox>(); static const Ghurund::Core::Type TYPE = TypeBuilder<CheckBox>(...
37.935484
125
0.630102
Kartikeyapan598
39a9add9ae261014115b0acbb2e30c457e705782
4,733
cpp
C++
Control Work - 04.04.2022/Project1/Fraction.cpp
ElitProffi/HW2021-2022
375abed060ad5a79e6486af0af367725294730d8
[ "Apache-2.0" ]
null
null
null
Control Work - 04.04.2022/Project1/Fraction.cpp
ElitProffi/HW2021-2022
375abed060ad5a79e6486af0af367725294730d8
[ "Apache-2.0" ]
null
null
null
Control Work - 04.04.2022/Project1/Fraction.cpp
ElitProffi/HW2021-2022
375abed060ad5a79e6486af0af367725294730d8
[ "Apache-2.0" ]
null
null
null
#include "Fraction.h" using namespace std; Fraction::Fraction() { a = 1; b = 1; } Fraction::Fraction(long long a, long long b) : a(a), b(b) {} Fraction::Fraction(const Fraction& fraction) : a(fraction.a), b(fraction.b) {} Fraction::~Fraction() { this->a = 0; this->b = 0; } long long Fraction::getA() { return...
18.781746
84
0.64251
ElitProffi
39b3c33544c2311e3319c6273cf6fff2df26ef10
5,811
hpp
C++
src/ropufu/sequential/cusum.hpp
ropufu/aftermath
ab9364c41672a188879d84ebebb5a23f2d6641ec
[ "MIT" ]
null
null
null
src/ropufu/sequential/cusum.hpp
ropufu/aftermath
ab9364c41672a188879d84ebebb5a23f2d6641ec
[ "MIT" ]
null
null
null
src/ropufu/sequential/cusum.hpp
ropufu/aftermath
ab9364c41672a188879d84ebebb5a23f2d6641ec
[ "MIT" ]
null
null
null
#ifndef ROPUFU_AFTERMATH_SEQUENTIAL_CUSUM_HPP_INCLUDED #define ROPUFU_AFTERMATH_SEQUENTIAL_CUSUM_HPP_INCLUDED #ifndef ROPUFU_NO_JSON #include <nlohmann/json.hpp> #include "../noexcept_json.hpp" #endif #include "../simple_vector.hpp" #include "statistic.hpp" #include <concepts> // std::same_as, std::totally_order...
33.589595
102
0.641714
ropufu
39b3d201c4182d3721dc5b2e71c73c0f2c7e5641
374
cpp
C++
CPP/ex4.4.7virt.cpp
w1ld/StepikExercies
3efe07819a0456aa3846587b2a23bad9dd9710db
[ "MIT" ]
4
2019-05-11T17:26:24.000Z
2022-01-30T17:48:25.000Z
CPP/ex4.4.7virt.cpp
w1ld/StepikExercises
3efe07819a0456aa3846587b2a23bad9dd9710db
[ "MIT" ]
null
null
null
CPP/ex4.4.7virt.cpp
w1ld/StepikExercises
3efe07819a0456aa3846587b2a23bad9dd9710db
[ "MIT" ]
4
2019-01-24T22:15:21.000Z
2020-12-21T10:23:52.000Z
#include "ex4.3.8virt_methods.cpp" #include <iostream> bool check_equals(Expression const *left, Expression const *right) { return *((int**)left) ==*((int**)right); } int main() { Expression * sube = new BinaryOperation(new Number(4.5), '*', new Number(5)); Expression * another = new Number(4.5); st...
24.933333
79
0.641711
w1ld
39b45753ad0befad2e75a1bddde980d432dc82d9
1,865
cpp
C++
main.cpp
SzalonyJohny/STM32_CAN_abstraction
4465c4c9bd8367429db6eed78cce001d294370ff
[ "MIT" ]
null
null
null
main.cpp
SzalonyJohny/STM32_CAN_abstraction
4465c4c9bd8367429db6eed78cce001d294370ff
[ "MIT" ]
null
null
null
main.cpp
SzalonyJohny/STM32_CAN_abstraction
4465c4c9bd8367429db6eed78cce001d294370ff
[ "MIT" ]
null
null
null
#include <cstdint> #include <iostream> #include "can_interface.hpp" using namespace new_can; // global HAL CUBE_MX initialized data CAN_HandleTypeDef hcan1; // global can interface handle Can_interface can; // uint32_t TxMailbox = 3; void interrupt_handler() { Can_rx_message rx{hcan1, 1}; ...
21.686047
85
0.662198
SzalonyJohny
39b65f31eb34d053ae3030b968ec27bc0da5f9cc
601
hpp
C++
main.hpp
GGLinnk/Direct3D-9-Helpers
ac44882a6ebaf8abde2cc8d485dd0c821934aadd
[ "MIT" ]
null
null
null
main.hpp
GGLinnk/Direct3D-9-Helpers
ac44882a6ebaf8abde2cc8d485dd0c821934aadd
[ "MIT" ]
null
null
null
main.hpp
GGLinnk/Direct3D-9-Helpers
ac44882a6ebaf8abde2cc8d485dd0c821934aadd
[ "MIT" ]
null
null
null
#pragma once /// <summary> /// This function compares two D3DDISPLAYMODE allow qsort to sorts them by their width, then by their height and finally by their refresh rate. /// </summary> /// <param name="firstD3dDisplayMode">The first D3DDISPLAYMODE to be compared</param> /// <param name="secondD3dDisplayMode">The se...
46.230769
145
0.727121
GGLinnk
39c22e2c5c798ca313a7c20a2cc54bc809d4352c
3,296
cpp
C++
sdl1/Bejeweled/Engine.cpp
pdpdds/sdldualsystem
d74ea84cbea705fef62868ba8c693bf7d2555636
[ "BSD-2-Clause" ]
null
null
null
sdl1/Bejeweled/Engine.cpp
pdpdds/sdldualsystem
d74ea84cbea705fef62868ba8c693bf7d2555636
[ "BSD-2-Clause" ]
null
null
null
sdl1/Bejeweled/Engine.cpp
pdpdds/sdldualsystem
d74ea84cbea705fef62868ba8c693bf7d2555636
[ "BSD-2-Clause" ]
null
null
null
#include <SDL.h> #include <SDL_image.h> #include <SDL_ttf.h> #include <SDL_mixer.h> #include "Engine.h" #include "GameObject.h" #include "SurfaceProxy.h" #include "GameException.h" #include "GameScene.h" #include "Point.h" namespace bejeweled { const int Engine::GAME_FPS = 10; const string Engine::WINDOW_TITLE = "Bej...
30.238532
125
0.62409
pdpdds
39ca0caf927ec3d7e5548cc3e4fd05462eebfc91
779
cpp
C++
tggdhj2/Game.Avatar.Log.cpp
playdeezgames/tggdhj2
41c76ce27087bb4e53a6adc69c5b3fe7dcfbb7f7
[ "MIT" ]
null
null
null
tggdhj2/Game.Avatar.Log.cpp
playdeezgames/tggdhj2
41c76ce27087bb4e53a6adc69c5b3fe7dcfbb7f7
[ "MIT" ]
null
null
null
tggdhj2/Game.Avatar.Log.cpp
playdeezgames/tggdhj2
41c76ce27087bb4e53a6adc69c5b3fe7dcfbb7f7
[ "MIT" ]
null
null
null
#include "Data.Game.Avatar.Log.h" #include "Game.Avatar.Log.h" #include "Visuals.Data.Colors.h" namespace game::avatar::Log { const std::string WELCOME_TEXT = "Adventure awaits! HUZZAH!!"; const size_t ENTRY_COUNT = 12;//TODO: maybe this could be configurable somewhere? void Reset(const Difficulty&) { data::game...
22.257143
82
0.664955
playdeezgames
39ccd04c3616205c774c2aec3134a8d391f7977d
3,995
cpp
C++
codebook/geometry/point-in-polygon.cpp
nella17/NYCU_gAwr_gurA
e168cafc9e728a2cab2d1cafa90a1cfd433b9f59
[ "CC0-1.0" ]
1
2022-01-23T11:18:52.000Z
2022-01-23T11:18:52.000Z
codebook/geometry/point-in-polygon.cpp
nella17/NYCU_gAwr_gurA
e168cafc9e728a2cab2d1cafa90a1cfd433b9f59
[ "CC0-1.0" ]
null
null
null
codebook/geometry/point-in-polygon.cpp
nella17/NYCU_gAwr_gurA
e168cafc9e728a2cab2d1cafa90a1cfd433b9f59
[ "CC0-1.0" ]
1
2022-02-02T15:24:39.000Z
2022-02-02T15:24:39.000Z
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; template <typename T> using rbt = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>; using Double = __float128; using Point = pair<D...
25.125786
80
0.442053
nella17
39cd5b5f3434757796e0e0b317a69253ea2abc12
1,359
cpp
C++
Engine/src/Managers/Sound.cpp
Proyecto03/Motor
9e7f379f1f64bc911293434fdfb8aa18bb8f99ab
[ "MIT" ]
1
2021-07-24T03:10:38.000Z
2021-07-24T03:10:38.000Z
Engine/src/Managers/Sound.cpp
Proyecto03/Motor
9e7f379f1f64bc911293434fdfb8aa18bb8f99ab
[ "MIT" ]
null
null
null
Engine/src/Managers/Sound.cpp
Proyecto03/Motor
9e7f379f1f64bc911293434fdfb8aa18bb8f99ab
[ "MIT" ]
2
2021-05-11T10:47:37.000Z
2021-07-24T03:10:39.000Z
#include "windows.h" #include "fmod.h" #include "fmod_errors.h" #include ".\sound.h" class Sound { public: Sound(char *fname); ~Sound(void); void createScene(float pos[]); void Sound::play(); void Sound::stop() ; }; FSOUND_SAMPLE *sample; char *filename; int m_channel; Sound::Sound(char *fname) { ...
19.140845
90
0.649007
Proyecto03
39cdacb331070ffa5d245795242cb23aa905b58f
10,165
cpp
C++
VS/Graphics/VS_ShaderValues.cpp
vectorstorm/vectorstorm
7306214108b23fa97d4a1a598197bbaa52c17d3a
[ "Zlib" ]
19
2017-04-03T09:06:21.000Z
2022-03-05T19:06:07.000Z
VS/Graphics/VS_ShaderValues.cpp
vectorstorm/vectorstorm
7306214108b23fa97d4a1a598197bbaa52c17d3a
[ "Zlib" ]
2
2019-05-24T14:40:07.000Z
2020-04-15T01:10:23.000Z
VS/Graphics/VS_ShaderValues.cpp
vectorstorm/vectorstorm
7306214108b23fa97d4a1a598197bbaa52c17d3a
[ "Zlib" ]
2
2020-03-08T07:14:49.000Z
2020-03-09T10:39:52.000Z
/* * VS_ShaderValues.cpp * VectorStorm * * Created by Trevor Powell on 28/08/2015 * Copyright 2015 Trevor Powell. All rights reserved. * */ #include "VS_ShaderValues.h" #include "VS_Shader.h" #include "VS_ShaderUniformRegistry.h" #include "VS_OpenGL.h" #include "VS_Matrix.h" vsShaderValues::vsShaderValues...
20.535354
81
0.64545
vectorstorm
39d31304a259f436a2d731216f4bd68cc3e988e2
2,365
cpp
C++
Gemastik/PenulisSoal/PenulisSoal-dewnan98.cpp
ajisubarkah/Programming-Event
6cb645ec24cb5c826b41c11334270fd3d0ece474
[ "MIT" ]
1
2018-09-18T06:28:45.000Z
2018-09-18T06:28:45.000Z
Gemastik/PenulisSoal/PenulisSoal-dewnan98.cpp
ajisubarkah/Programming-Event
6cb645ec24cb5c826b41c11334270fd3d0ece474
[ "MIT" ]
null
null
null
Gemastik/PenulisSoal/PenulisSoal-dewnan98.cpp
ajisubarkah/Programming-Event
6cb645ec24cb5c826b41c11334270fd3d0ece474
[ "MIT" ]
1
2018-09-05T06:34:04.000Z
2018-09-05T06:34:04.000Z
#include <iostream> #include <vector> using namespace std; void printVector(vector <int> vec) { cout<<"VECTOR : "; for (int a = 0 ; a<vec.size();a++) { cout<<vec[a]<<" | "; } cout<<endl; } bool vectorContain (vector<int>vec , int angka) { for (int a = 0 ; a<vec.size();a++) {...
17.518519
88
0.454545
ajisubarkah
39db23b2a097a8136d98305dcc25df7d06506428
5,693
cpp
C++
src/ray.cpp
Chongyao/Monte-Carlo-Ray-Tracing
d175300f089a4ed61c9548e5a2587e63cd843403
[ "MIT" ]
null
null
null
src/ray.cpp
Chongyao/Monte-Carlo-Ray-Tracing
d175300f089a4ed61c9548e5a2587e63cd843403
[ "MIT" ]
null
null
null
src/ray.cpp
Chongyao/Monte-Carlo-Ray-Tracing
d175300f089a4ed61c9548e5a2587e63cd843403
[ "MIT" ]
null
null
null
#include "ray.h" #include <limits> #include <iostream> using namespace std; using namespace Eigen; const double MAX_DOUBLE = std::numeric_limits<double>::max(); Ray::Ray(const vec& origin, const vec& dire): origin_(origin), dire_(dire),final_offset_(MAX_DOUBLE){} enum axis{x, y, z}; bool project_dim(const Eigen::Vect...
28.465
113
0.553311
Chongyao
39db87dbebd70cdc4705d1b588dcadb3462eb85a
11,723
cpp
C++
src/LLVMBackend/CtModule.cpp
CristianDragu/sparrow
49844c2329ac001c3a0779baae7a2f02743c4494
[ "MIT" ]
80
2015-05-05T12:21:50.000Z
2022-03-30T18:38:48.000Z
src/LLVMBackend/CtModule.cpp
CristianDragu/sparrow
49844c2329ac001c3a0779baae7a2f02743c4494
[ "MIT" ]
51
2016-09-09T13:44:50.000Z
2021-11-28T07:03:02.000Z
src/LLVMBackend/CtModule.cpp
CristianDragu/sparrow
49844c2329ac001c3a0779baae7a2f02743c4494
[ "MIT" ]
8
2015-07-28T11:34:15.000Z
2020-02-01T21:54:06.000Z
#include <StdInc.h> #include "CtModule.h" #include "Generator.h" #include <Tr/TrTopLevel.h> #include <Tr/TrFunction.h> #include <Tr/TrType.h> #include <Tr/GlobalContext.h> #include <Tr/PrepareTranslate.h> #include "Feather/Utils/FeatherUtils.hpp" #include "Feather/Utils/cppif/FeatherTypes.hpp" #include "Nest/Api/Node...
34.581121
100
0.65026
CristianDragu
39dbbae00ab1559d100daffd161095531451746f
1,061
hpp
C++
include/mizuiro/color/detail/dynamic/channel_to_pos.hpp
cpreh/mizuiro
5ab15bde4e72e3a4978c034b8ff5700352932485
[ "BSL-1.0" ]
1
2015-08-22T04:19:39.000Z
2015-08-22T04:19:39.000Z
include/mizuiro/color/detail/dynamic/channel_to_pos.hpp
freundlich/mizuiro
5ab15bde4e72e3a4978c034b8ff5700352932485
[ "BSL-1.0" ]
null
null
null
include/mizuiro/color/detail/dynamic/channel_to_pos.hpp
freundlich/mizuiro
5ab15bde4e72e3a4978c034b8ff5700352932485
[ "BSL-1.0" ]
null
null
null
// Copyright Carl Philipp Reh 2009 - 2016. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef MIZUIRO_COLOR_DETAIL_DYNAMIC_CHANNEL_TO_POS_HPP_INCLUDED #define MIZUIRO_COLOR_DETAIL_DYNAM...
31.205882
87
0.777568
cpreh
39e18ce4e00f29614d9b35f8612c0c1eea12bbf8
54,767
cpp
C++
qflexprop.cpp
totalspectrum/qflexprop
ab3ca23b4f61b2c100acf7e917bacab18ee9614e
[ "BSD-3-Clause" ]
2
2022-02-09T02:25:29.000Z
2022-03-30T01:06:45.000Z
qflexprop.cpp
totalspectrum/qflexprop
ab3ca23b4f61b2c100acf7e917bacab18ee9614e
[ "BSD-3-Clause" ]
2
2021-03-09T17:39:15.000Z
2021-03-09T17:39:39.000Z
qflexprop.cpp
totalspectrum/qflexprop
ab3ca23b4f61b2c100acf7e917bacab18ee9614e
[ "BSD-3-Clause" ]
2
2021-03-07T18:40:11.000Z
2021-04-14T23:44:32.000Z
/***************************************************************************** * * Qt5 Propeller 2 main window for editor, compiler, terminal * * Copyright Β© 2021 JΓΌrgen BuchmΓΌller <pullmoll@t-online.de> * * See the file LICENSE for the details of the BSD-3-Clause terms. * **************************************...
28.215868
110
0.676904
totalspectrum
39e7819d4d441b831187d72d793aa13fcc428837
1,112
cpp
C++
03_generic_programming/04_selection_sort.cpp
cpptt-book/2nd
d710af6df9ed2561bc7432be7b0b0b93dafecb0a
[ "CC0-1.0" ]
17
2015-01-07T08:10:09.000Z
2021-06-21T13:07:25.000Z
03_generic_programming/04_selection_sort.cpp
cpptt-book/2nd
d710af6df9ed2561bc7432be7b0b0b93dafecb0a
[ "CC0-1.0" ]
null
null
null
03_generic_programming/04_selection_sort.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. template <class Iterator> void selection_sort(Iterator first, Iterator last) { for (Iterator p = first; p != last; ++p) { Iterator min_position = p; for (Iterator q = p; q != last; ++q) { if (*min_...
21.803922
72
0.57464
cpptt-book
39e992056afed351c59751163b7e23bba8fbe410
1,527
hpp
C++
src/verbatim_bone_state.hpp
faemiyah/faemiyah-demoscene_2016-08_80k-intro_ghosts_of_mars
69a79a8cb68591c834989e89be530a1a94fb02c2
[ "BSD-3-Clause" ]
null
null
null
src/verbatim_bone_state.hpp
faemiyah/faemiyah-demoscene_2016-08_80k-intro_ghosts_of_mars
69a79a8cb68591c834989e89be530a1a94fb02c2
[ "BSD-3-Clause" ]
null
null
null
src/verbatim_bone_state.hpp
faemiyah/faemiyah-demoscene_2016-08_80k-intro_ghosts_of_mars
69a79a8cb68591c834989e89be530a1a94fb02c2
[ "BSD-3-Clause" ]
null
null
null
#ifndef VERBATIM_BONE_STATE_HPP #define VERBATIM_BONE_STATE_HPP #include "verbatim_mat4.hpp" /// One position of bone. /// /// Can be neutral position. class BoneState { private: /// Position data (neutral). vec3 m_pos; /// Quaternion data (neutral). quat m_rot; public: /// Empty constructor...
17.551724
72
0.568435
faemiyah
39eaafd2f5a38ebd835824908cd7cfedca3fe3a8
5,796
cpp
C++
camera.cpp
fvcaputo/openglframework
4b57547325297169c0412e06d7f2320731570d00
[ "MIT" ]
1
2016-01-26T02:44:28.000Z
2016-01-26T02:44:28.000Z
camera.cpp
fvcaputo/openglframework
4b57547325297169c0412e06d7f2320731570d00
[ "MIT" ]
null
null
null
camera.cpp
fvcaputo/openglframework
4b57547325297169c0412e06d7f2320731570d00
[ "MIT" ]
1
2021-11-08T15:02:38.000Z
2021-11-08T15:02:38.000Z
/* * camera.cpp * * Set up the camera. * * Authors: Felipe Victorino Caputo * */ #include "camera.h" /* * Camera * * INPUT: * type - the type of the projection. * * DESCRIPTION: * This is this class constructor. It creates a camera * with some default values (centered at the ori...
20.848921
85
0.613527
fvcaputo
39eb749edadd33e99099d326d463887048d607ce
390
hpp
C++
sources/_headers_std_cv_ogl.hpp
unvrtool/unvrtool
1f9601f1b3f7db16244cec6064e648a3df45d2f6
[ "BSD-3-Clause" ]
null
null
null
sources/_headers_std_cv_ogl.hpp
unvrtool/unvrtool
1f9601f1b3f7db16244cec6064e648a3df45d2f6
[ "BSD-3-Clause" ]
null
null
null
sources/_headers_std_cv_ogl.hpp
unvrtool/unvrtool
1f9601f1b3f7db16244cec6064e648a3df45d2f6
[ "BSD-3-Clause" ]
null
null
null
// // Copyright (c) 2020, Jan Ove Haaland, all rights reserved. // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. #pragma once #include "_headers_std_cv.hpp" #include <glad/glad.h> #include <GLFW/glfw3.h> #include <glm/glm.hpp> #inc...
21.666667
72
0.733333
unvrtool
39f35f565f9c51c01fe191002eefe2a5aa9e61f5
9,887
cpp
C++
audio/common/Reasoning/jhcAssocMem.cpp
jconnell11/ALIA
f7a6c9dfd775fbd41239051aeed7775adb878b0a
[ "Apache-2.0" ]
null
null
null
audio/common/Reasoning/jhcAssocMem.cpp
jconnell11/ALIA
f7a6c9dfd775fbd41239051aeed7775adb878b0a
[ "Apache-2.0" ]
null
null
null
audio/common/Reasoning/jhcAssocMem.cpp
jconnell11/ALIA
f7a6c9dfd775fbd41239051aeed7775adb878b0a
[ "Apache-2.0" ]
null
null
null
// jhcAssocMem.cpp : deductive rules for use in halo of ALIA system // // Written by Jonathan H. Connell, jconnell@alum.mit.edu // /////////////////////////////////////////////////////////////////////////// // // Copyright 2017-2019 IBM Corporation // Copyright 2020-2021 Etaoin Systems // // Licensed under the Apache L...
26.506702
101
0.533731
jconnell11
39f711193ec635d02d99c505ed9ce89ff864ab32
1,334
cpp
C++
lge/2014/oct/1-2/jang1-2.cpp
seirion/code
3b8bf79764107255185061cec33decbc2235d03a
[ "Apache-2.0" ]
13
2015-06-07T09:26:26.000Z
2019-05-01T13:23:38.000Z
lge/2014/oct/1-2/jang1-2.cpp
seirion/code
3b8bf79764107255185061cec33decbc2235d03a
[ "Apache-2.0" ]
null
null
null
lge/2014/oct/1-2/jang1-2.cpp
seirion/code
3b8bf79764107255185061cec33decbc2235d03a
[ "Apache-2.0" ]
4
2016-03-05T06:21:05.000Z
2017-02-17T15:34:18.000Z
// hyungyu.jang@lge.com // 1-2 #include <iostream> #include <cstdio> #include <cstring> #include <vector> using namespace std; const int MAXNUM = 1000 * 1000 * 1000; enum { NOW = 0, PRE, SAME, }; enum { LEFT = 0, RIGHT, }; int size; void solve() { int from(1), to, pre, now, check; scanf("%d %d", &to, &size)...
22.610169
58
0.447526
seirion
39f9fe1e1a8bf964be71b0f351308d2c7503dd93
5,089
cpp
C++
Tests/TEST_Innovation.cpp
Georg-S/Neuro-Evolution
64e7b3c2bf3c1654d595f03d55fd6b24153ed171
[ "BSD-3-Clause" ]
null
null
null
Tests/TEST_Innovation.cpp
Georg-S/Neuro-Evolution
64e7b3c2bf3c1654d595f03d55fd6b24153ed171
[ "BSD-3-Clause" ]
null
null
null
Tests/TEST_Innovation.cpp
Georg-S/Neuro-Evolution
64e7b3c2bf3c1654d595f03d55fd6b24153ed171
[ "BSD-3-Clause" ]
null
null
null
#include <gtest/gtest.h> #include <Innovation.h> #include <Genotype.h> TEST(TEST_Innovation, 0by0GenotypeCreates0Innovations) { nev::Innovation inno = nev::Innovation(); nev::Genotype geno = nev::Genotype(inno, 0, 0, 1); EXPECT_EQ(inno.getTotalInnovationsCount(), 0); } TEST(TEST_Innovation, 1by1GenotypeCreates2I...
33.701987
92
0.744351
Georg-S
39fd82a8faf3c1338584adf0d2ea4d05e9ee19ff
280
cc
C++
06/25/25.cc
williamgherman/cpp-solutions
cf947b3b8f49fa3071fbee96f522a4228e4207b8
[ "BSD-Source-Code" ]
5
2019-08-01T07:52:27.000Z
2022-03-27T08:09:35.000Z
06/25/25.cc
williamgherman/cpp-solutions
cf947b3b8f49fa3071fbee96f522a4228e4207b8
[ "BSD-Source-Code" ]
1
2020-10-03T17:29:59.000Z
2020-11-17T10:03:10.000Z
06/25/25.cc
williamgherman/cpp-solutions
cf947b3b8f49fa3071fbee96f522a4228e4207b8
[ "BSD-Source-Code" ]
6
2019-08-24T08:55:56.000Z
2022-02-09T08:41:44.000Z
#include <cstdlib> #include <iostream> int main(int argc, char **argv) { if (argc != 3) { std::cout << "Usage: " << argv[0] << " STR1 STR2" << std::endl; return EXIT_FAILURE; } std::cout << argv[1] << argv[2] << std::endl; return EXIT_SUCCESS; }
20
71
0.535714
williamgherman
260640db0c41959f956b8cdd1eef6ad62d63e702
1,955
cpp
C++
Client/src/common/FileManifest.cpp
kluete/ddt3
b8bf3b6daf275ec025b0c4a6401576560b671a3d
[ "Apache-2.0" ]
6
2020-04-20T04:54:44.000Z
2022-02-13T01:24:10.000Z
Client/src/common/FileManifest.cpp
kluete/ddt3
b8bf3b6daf275ec025b0c4a6401576560b671a3d
[ "Apache-2.0" ]
null
null
null
Client/src/common/FileManifest.cpp
kluete/ddt3
b8bf3b6daf275ec025b0c4a6401576560b671a3d
[ "Apache-2.0" ]
1
2022-02-13T01:24:35.000Z
2022-02-13T01:24:35.000Z
// ddt common File Manifest class (wx-free for daemon) #include <cassert> #include <algorithm> #include <iomanip> // stream formatting flags (for MD5) #include <sstream> #include <fstream> #include "ddt/FileSystem.h" #include "ddt/FileManifest.h" using namespace std; using namespace LX; //---- vanilla CTOR ------...
25.064103
87
0.595908
kluete
260a3b1d9acb9403aaebe09c78128752132790c6
6,505
cpp
C++
Operations/albaOpReparentTo.cpp
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
9
2018-11-19T10:15:29.000Z
2021-08-30T11:52:07.000Z
Operations/albaOpReparentTo.cpp
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
Operations/albaOpReparentTo.cpp
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
3
2018-06-10T22:56:29.000Z
2019-12-12T06:22:56.000Z
/*========================================================================= Program: ALBA (Agile Library for Biomedical Applications) Module: albaOpReparentTo Authors: Paolo Quadrani Copyright (c) BIC All rights reserved. See Copyright.txt or This software is distributed WITHOUT ANY WARRANTY; without even t...
30.829384
133
0.517294
IOR-BIC
260abcb4b2833b6184df0480368fe78d3b3cf5d6
41,222
cpp
C++
Code/Engine/Render/Renderers/WorldRenderer.cpp
JuanluMorales/KRG
f3a11de469586a4ef0db835af4bc4589e6b70779
[ "MIT" ]
419
2022-01-27T19:37:43.000Z
2022-03-31T06:14:22.000Z
Code/Engine/Render/Renderers/WorldRenderer.cpp
jagt/KRG
ba20cd8798997b0450491b0cc04dc817c4a4bc76
[ "MIT" ]
2
2022-01-28T20:35:33.000Z
2022-03-13T17:42:52.000Z
Code/Engine/Render/Renderers/WorldRenderer.cpp
jagt/KRG
ba20cd8798997b0450491b0cc04dc817c4a4bc76
[ "MIT" ]
20
2022-01-27T20:41:02.000Z
2022-03-26T16:16:57.000Z
#include "WorldRenderer.h" #include "Engine/Render/Components/Component_EnvironmentMaps.h" #include "Engine/Render/Components/Component_Lights.h" #include "Engine/Render/Components/Component_StaticMesh.h" #include "Engine/Render/Components/Component_SkeletalMesh.h" #include "Engine/Render/Shaders/EngineShaders.h" #incl...
46.949886
206
0.631265
JuanluMorales
260cab96b4ac4c4611732dd55651a505ed14ef0a
1,299
hpp
C++
src/include/database.hpp
mjgerdes/cg
be378b140df7d7e9bd16512a1d9a54d3439b03f7
[ "MIT" ]
null
null
null
src/include/database.hpp
mjgerdes/cg
be378b140df7d7e9bd16512a1d9a54d3439b03f7
[ "MIT" ]
null
null
null
src/include/database.hpp
mjgerdes/cg
be378b140df7d7e9bd16512a1d9a54d3439b03f7
[ "MIT" ]
null
null
null
#ifndef __DB_DATABASE_HPP__ #define __DB_DATABASE_HPP__ #include <string> #include <memory> // std::auto_ptr #include <cstdlib> // std::exit #include <iostream> #include <odb/connection.hxx> #include <odb/transaction.hxx> #include <odb/schema-catalog.hxx> #include <odb/database.hxx> #if defined(DATABASE_MYSQL) ...
21.295082
72
0.745958
mjgerdes
2610fd7c51ddeb5bee360a3bff2075b8c642f833
2,520
hpp
C++
sprig/reference_holder.hpp
bolero-MURAKAMI/Sprig
51ce4db4f4d093dee659a136f47249e4fe91fc7a
[ "BSL-1.0" ]
2
2017-10-24T13:56:24.000Z
2018-09-28T13:21:22.000Z
sprig/reference_holder.hpp
bolero-MURAKAMI/Sprig
51ce4db4f4d093dee659a136f47249e4fe91fc7a
[ "BSL-1.0" ]
null
null
null
sprig/reference_holder.hpp
bolero-MURAKAMI/Sprig
51ce4db4f4d093dee659a136f47249e4fe91fc7a
[ "BSL-1.0" ]
2
2016-04-12T03:26:06.000Z
2018-09-28T13:21:22.000Z
/*============================================================================= Copyright (c) 2010-2016 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprig 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) ===...
22.909091
84
0.671429
bolero-MURAKAMI
26150332f445e811b38dea683b9f5007c4adb465
2,991
cpp
C++
ManagedScripts/MConversationMgrClass.cpp
mpforums/RenSharp
5b3fb8bff2a1772a82a4148bcf3e1265a11aa097
[ "Apache-2.0" ]
1
2021-10-04T02:34:33.000Z
2021-10-04T02:34:33.000Z
ManagedScripts/MConversationMgrClass.cpp
TheUnstoppable/RenSharp
2a123c6018c18f3fc73501737d600e291ac3afa7
[ "Apache-2.0" ]
9
2019-07-03T19:19:59.000Z
2020-03-02T22:00:21.000Z
ManagedScripts/MConversationMgrClass.cpp
TheUnstoppable/RenSharp
2a123c6018c18f3fc73501737d600e291ac3afa7
[ "Apache-2.0" ]
2
2019-08-14T08:37:36.000Z
2020-09-29T06:44:26.000Z
/* Copyright 2020 Neijwiert Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distribu...
25.347458
111
0.774657
mpforums
261755edb23d44a8eafffd27aa079fcfbf08eeb2
1,353
cpp
C++
Data Structure/Trees/Binary Trees/Diameter_of_Tree.cpp
Rupali409/CPP-Questions-and-Solutions
a42664302f18b7d99aac2501bcf956950e3cc61a
[ "MIT" ]
42
2021-09-26T18:02:52.000Z
2022-03-15T01:52:15.000Z
Data Structure/Trees/Binary Trees/Diameter_of_Tree.cpp
Rupali409/CPP-Questions-and-Solutions
a42664302f18b7d99aac2501bcf956950e3cc61a
[ "MIT" ]
404
2021-09-24T19:55:10.000Z
2021-11-03T05:47:47.000Z
Data Structure/Trees/Binary Trees/Diameter_of_Tree.cpp
Rupali409/CPP-Questions-and-Solutions
a42664302f18b7d99aac2501bcf956950e3cc61a
[ "MIT" ]
140
2021-09-22T20:50:04.000Z
2022-01-22T16:59:09.000Z
// 4. Calculate Diamter of a Binary Tree #include <bits/stdc++.h> using namespace std; struct Node { int data; Node* left; Node* right; Node(int d) { data = d; left = NULL; right = NULL; } }; // Function to calculate height of the tree int HeightOfTree(Node* root) { if (!root) ...
19.608696
68
0.613452
Rupali409
261c5a92e4189690b8fac14ecbaa719d096eda73
3,601
hpp
C++
Graphics/DearImGUI/TreeNode.hpp
jlandess/LandessDevCore
3319c36c3232415d6bdba7da8b4896c0638badf2
[ "BSD-3-Clause" ]
2
2021-06-09T00:38:46.000Z
2021-09-04T21:55:33.000Z
Graphics/DearImGUI/TreeNode.hpp
jlandess/LandessDevCore
3319c36c3232415d6bdba7da8b4896c0638badf2
[ "BSD-3-Clause" ]
null
null
null
Graphics/DearImGUI/TreeNode.hpp
jlandess/LandessDevCore
3319c36c3232415d6bdba7da8b4896c0638badf2
[ "BSD-3-Clause" ]
1
2021-08-30T00:46:12.000Z
2021-08-30T00:46:12.000Z
#ifndef LANDESSDEVCORE_GRAPHICS_IMGUI_TREE_NODE_HPP #define LANDESSDEVCORE_GRAPHICS_IMGUI_TREE_NODE_HPP #include "Graphics/DearImGUI/imgui.h" #include "TypeTraits/Detection.hpp" //#include "Definitions/Common.hpp" #include "Memory/ElementReference.h" #include "Graphics/DearImGUI/imgui.h" #include "Primitives/General/Co...
43.385542
218
0.49764
jlandess
261e607662e74d1f121e01dafee0d42b5eeeaa02
2,469
hpp
C++
src/gl_utils/FrameBufferObject.hpp
gchatelet/gl_utils
8691b8c4719efc6ec0a8ee4c0d4e1f1c8c141eac
[ "MIT" ]
2
2018-08-05T13:57:57.000Z
2020-01-08T16:11:37.000Z
src/gl_utils/FrameBufferObject.hpp
gchatelet/gl_utils
8691b8c4719efc6ec0a8ee4c0d4e1f1c8c141eac
[ "MIT" ]
null
null
null
src/gl_utils/FrameBufferObject.hpp
gchatelet/gl_utils
8691b8c4719efc6ec0a8ee4c0d4e1f1c8c141eac
[ "MIT" ]
null
null
null
//////////////////////////////////////////////////////////////////////////////// // /// Class to perform the management of an opengl FBO /// Typical use : Render to Texture /// Typical usage : /// GlFrameBufferObject fbo; /// fbo.bind(); /// fbo.attachTexture(GL_COLOR_ATTACHMENT0_EXT,... texId0); /// fb...
37.409091
116
0.601458
gchatelet
261ee0107040e37094dbdc4bcca389c25ed9af9e
2,365
cpp
C++
Stack/Stack_20_Minimum_of_Stack_Constant_Space.cpp
compl3xX/ROAD-TO-DSA
2261c112135a51d9d88c4b57e6f062f6b32550a7
[ "MIT" ]
null
null
null
Stack/Stack_20_Minimum_of_Stack_Constant_Space.cpp
compl3xX/ROAD-TO-DSA
2261c112135a51d9d88c4b57e6f062f6b32550a7
[ "MIT" ]
null
null
null
Stack/Stack_20_Minimum_of_Stack_Constant_Space.cpp
compl3xX/ROAD-TO-DSA
2261c112135a51d9d88c4b57e6f062f6b32550a7
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include <stack> using namespace std; class MinStack { stack<int> data; int minVal; public: int size() { return data.size(); } public: void push(int val) { if (data.size() == 0) { data.push(val); minVa...
16.77305
46
0.329387
compl3xX
2626924aa395369a68b7fdbf66e294e4afbc8bf0
431
hpp
C++
app/src/main/cpp/linux/LinuxFilesManager.hpp
simonppg/break_it_all
95e8f2df935e35a3aa851bc981f81e06623c49f6
[ "MIT" ]
null
null
null
app/src/main/cpp/linux/LinuxFilesManager.hpp
simonppg/break_it_all
95e8f2df935e35a3aa851bc981f81e06623c49f6
[ "MIT" ]
15
2021-09-23T23:46:54.000Z
2022-03-02T06:04:51.000Z
app/src/main/cpp/linux/LinuxFilesManager.hpp
simonppg/break_it_all
95e8f2df935e35a3aa851bc981f81e06623c49f6
[ "MIT" ]
2
2019-05-23T23:03:06.000Z
2020-06-14T15:33:59.000Z
// Copyright (c) 2021 Simon Puente #ifndef APP_SRC_MAIN_CPP_LINUX_LINUXFILESMANAGER_HPP_ #define APP_SRC_MAIN_CPP_LINUX_LINUXFILESMANAGER_HPP_ #include "../shared/FilesManager.hpp" class LinuxFilesManager : public FilesManager { private: const char *projectPath; public: explicit LinuxFilesManager(const char *proj...
25.352941
55
0.816705
simonppg
262a7a8d15925fdb781b302671f8684aa1c65168
567
cpp
C++
0441_Arranging Coins.cpp
RickTseng/Cpp_LeetCode
6a710b8abc268eba767bc17d91d046b90a7e34a9
[ "MIT" ]
1
2021-09-13T00:58:59.000Z
2021-09-13T00:58:59.000Z
0441_Arranging Coins.cpp
RickTseng/Cpp_LeetCode
6a710b8abc268eba767bc17d91d046b90a7e34a9
[ "MIT" ]
null
null
null
0441_Arranging Coins.cpp
RickTseng/Cpp_LeetCode
6a710b8abc268eba767bc17d91d046b90a7e34a9
[ "MIT" ]
null
null
null
#include <vector> #include <stdio.h> #include <stdlib.h> #include <string> #include <map> #include <algorithm> #include <stack> #include <queue> #include <iostream> using namespace std; class Solution { public: int arrangeCoins(int n) { long long b = 1; int count = 0; while (n>=0) ...
14.175
43
0.488536
RickTseng
1c7b69efd635431047df4beb5774ef6d48f577c8
4,566
cc
C++
test/rtc_call_test.cc
lichao2014/rtc_call
3084df96c4986d0fa37f476f72e4c2cdc05857ca
[ "Apache-2.0" ]
3
2018-07-24T08:16:38.000Z
2018-08-03T02:16:11.000Z
test/rtc_call_test.cc
lichao2014/rtc_call
3084df96c4986d0fa37f476f72e4c2cdc05857ca
[ "Apache-2.0" ]
null
null
null
test/rtc_call_test.cc
lichao2014/rtc_call
3084df96c4986d0fa37f476f72e4c2cdc05857ca
[ "Apache-2.0" ]
1
2018-07-24T08:16:44.000Z
2018-07-24T08:16:44.000Z
#include <iostream> #include <thread> #include <chrono> #include <atomic> #include "rtc_base/flags.h" #include "rtc_base/logging.h" #include "rtc_base/logsinks.h" #include "rtc_base/fileutils.h" #include "rtc_call_interface.h" #include "render/interface.h" #include "render/sdl_util.h" DEFINE_bool(help,...
29.458065
122
0.627464
lichao2014
1c7f4e86667ac807cb4c5f74a7eaeec045733185
2,812
cpp
C++
tcpip/tcpip_tx.cpp
UndefeatedSunny/sc-platform
5897c460bf7a4b9694324f09d2492f5e157a3955
[ "Apache-2.0" ]
8
2021-06-03T15:22:26.000Z
2022-03-18T19:09:10.000Z
tcpip/tcpip_tx.cpp
UndefeatedSunny/sc-platform
5897c460bf7a4b9694324f09d2492f5e157a3955
[ "Apache-2.0" ]
null
null
null
tcpip/tcpip_tx.cpp
UndefeatedSunny/sc-platform
5897c460bf7a4b9694324f09d2492f5e157a3955
[ "Apache-2.0" ]
1
2021-11-17T15:01:44.000Z
2021-11-17T15:01:44.000Z
#include "tcpip/tcpip_tx.hpp" // Nothing here except syntax check and self-test/example #ifdef TCPIP_EXAMPLE using namespace std; using namespace sc_core; #include "tcpip/tcpip_tx.hpp" #include "report/report.hpp" #include "report/summary.hpp" #include <iostream> SC_MODULE( Top_module ) { char const * const MSGID...
29.6
89
0.46266
UndefeatedSunny
1c82aabc0d002270385ca99dbfd43f78cab9c264
1,364
cpp
C++
Source/MultiverseLegends/Private/Ability Core/Ability Types/MLGameplayAbility.cpp
yasinallahdev/multiverse-legends
62b1562078b5c4882b581088b51ec153ec81dd2d
[ "MIT" ]
1
2020-05-26T14:09:09.000Z
2020-05-26T14:09:09.000Z
Source/MultiverseLegends/Private/Ability Core/Ability Types/MLGameplayAbility.cpp
yasinallahdev/multiverse-legends
62b1562078b5c4882b581088b51ec153ec81dd2d
[ "MIT" ]
null
null
null
Source/MultiverseLegends/Private/Ability Core/Ability Types/MLGameplayAbility.cpp
yasinallahdev/multiverse-legends
62b1562078b5c4882b581088b51ec153ec81dd2d
[ "MIT" ]
null
null
null
// Fill out your copyright notice in the Description page of Project Settings. #include "MLGameplayAbility.h" #include "Ability Core/Cooldown Effects/CooldownGameplayEffect.h" #include "Ability Core/Cost Effects/CostGameplayEffect.h" UMLGameplayAbility::UMLGameplayAbility() { CooldownGameplayEffectClass = UCoold...
37.888889
185
0.821114
yasinallahdev
1c84ebace2d4909d2da93c09981367b4ad73af5b
12,986
cpp
C++
src/engine/core.cpp
beyerleinf/3d-raycasting-game
03ffbe9efd5034f4cfcb22bcf87a6d38ea4f572e
[ "MIT" ]
null
null
null
src/engine/core.cpp
beyerleinf/3d-raycasting-game
03ffbe9efd5034f4cfcb22bcf87a6d38ea4f572e
[ "MIT" ]
null
null
null
src/engine/core.cpp
beyerleinf/3d-raycasting-game
03ffbe9efd5034f4cfcb22bcf87a6d38ea4f572e
[ "MIT" ]
null
null
null
#include "engine/core.hpp" #include <stdio.h> namespace ray3d { Core::Core(SDL_Renderer *r, int screenW, int screenH) { player = new Player(22, 12, -1, 0); world = new World(); world->load(); screenWidth = screenW; screenHeight = screenH; renderer = r; } Core::~Core() { SDL_DestroyTextur...
30.627358
116
0.530263
beyerleinf
1c88ee1c406eef134f226eb0f22f8ce10108bfcd
3,515
cpp
C++
firing_char_single_img/main.cpp
phao/topshooter_xp
e5cc75e47751fa116ca106580b5b4d46cf781c4c
[ "MIT" ]
4
2018-07-09T19:38:27.000Z
2021-03-02T19:31:38.000Z
firing_char_single_img/main.cpp
phao/topshooter_xp
e5cc75e47751fa116ca106580b5b4d46cf781c4c
[ "MIT" ]
null
null
null
firing_char_single_img/main.cpp
phao/topshooter_xp
e5cc75e47751fa116ca106580b5b4d46cf781c4c
[ "MIT" ]
2
2020-04-25T18:05:30.000Z
2020-07-14T21:19:17.000Z
#include <ctime> #include <cstdlib> #include <cstdint> #include <stdexcept> #include <cmath> #include <algorithm> #include <iostream> #include "xSDL.hpp" #include "xSDL_image.hpp" #include "Graphical.hpp" #include "EngCharacter.hpp" #include "ParticlesSystem.hpp" #include "Atlas.hpp" #include "EngSkeleton.hpp" #includ...
23.590604
79
0.574395
phao
1c92482aefeade06c671c07d3a2e4461c6bd3af5
14,094
cpp
C++
Engine/Types/source/Types/CapModel.capnp.cpp
Pursche/PurEngine
9bc82309ee2773241e07ef1ec3335bbe449a791c
[ "MIT" ]
null
null
null
Engine/Types/source/Types/CapModel.capnp.cpp
Pursche/PurEngine
9bc82309ee2773241e07ef1ec3335bbe449a791c
[ "MIT" ]
null
null
null
Engine/Types/source/Types/CapModel.capnp.cpp
Pursche/PurEngine
9bc82309ee2773241e07ef1ec3335bbe449a791c
[ "MIT" ]
null
null
null
// Generated by Cap'n Proto compiler, DO NOT EDIT // source: CapModel.capnp #include "CapModel.capnp.h" namespace capnp { namespace schemas { static const ::capnp::_::AlignedData<63> b_b747ed917331d47a = { { 0, 0, 0, 0, 5, 0, 6, 0, 122, 212, 49, 115, 145, 237, 71, 183, 21, 0, 0, 0, ...
42.451807
102
0.371009
Pursche
1c94471cc1b91180aeb24553afdba4a5eb90d328
7,391
cpp
C++
clang/lib/CILToLLVM/CILToLLVMTypeConverter.cpp
compiler-tree-technologies/cil
195acc33e14715da9f5a1746b489814d56c015f7
[ "BSD-2-Clause" ]
21
2021-02-08T15:42:18.000Z
2022-02-23T03:25:10.000Z
clang/lib/CILToLLVM/CILToLLVMTypeConverter.cpp
compiler-tree-technologies/cil
195acc33e14715da9f5a1746b489814d56c015f7
[ "BSD-2-Clause" ]
3
2021-02-20T14:24:45.000Z
2021-08-04T04:20:05.000Z
clang/lib/CILToLLVM/CILToLLVMTypeConverter.cpp
compiler-tree-technologies/cil
195acc33e14715da9f5a1746b489814d56c015f7
[ "BSD-2-Clause" ]
6
2021-02-08T16:57:07.000Z
2022-01-13T11:32:34.000Z
// Copyright (c) 2019, Compiler Tree Technologies Pvt Ltd. // 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, // th...
37.328283
80
0.715059
compiler-tree-technologies
1c9509e71c4bc3c9bc797d4a653467b18bc66302
1,212
hpp
C++
20/regex_labyrinth.hpp
ComicSansMS/AdventOfCode2018
936ebf5dad7a0317ed3db0f58a16d88c4a00eabb
[ "Unlicense" ]
null
null
null
20/regex_labyrinth.hpp
ComicSansMS/AdventOfCode2018
936ebf5dad7a0317ed3db0f58a16d88c4a00eabb
[ "Unlicense" ]
null
null
null
20/regex_labyrinth.hpp
ComicSansMS/AdventOfCode2018
936ebf5dad7a0317ed3db0f58a16d88c4a00eabb
[ "Unlicense" ]
null
null
null
#ifndef ADVENT_OF_CODE_20_REGEX_LABYRINTH_HPP_INCLUDE_GUARD #define ADVENT_OF_CODE_20_REGEX_LABYRINTH_HPP_INCLUDE_GUARD #include <array> #include <functional> #include <iosfwd> #include <string_view> #include <tuple> #include <unordered_map> #include <vector> struct Vec2 { int x; int y; Vec2() = default;...
18.9375
111
0.65264
ComicSansMS
1c9eee87f1d2157545d40f8037e138b9e4584038
691
hpp
C++
third_party/boost/libs/throw_exception/test/lib2_throw.hpp
Jackarain/tinyrpc
07060e3466776aa992df8574ded6c1616a1a31af
[ "BSL-1.0" ]
32
2019-02-27T06:57:07.000Z
2021-08-29T10:56:19.000Z
third_party/boost/libs/throw_exception/test/lib2_throw.hpp
avplayer/cxxrpc
7049b4079fac78b3828e68f787d04d699ce52f6d
[ "BSL-1.0" ]
1
2019-04-04T18:00:00.000Z
2019-04-04T18:00:00.000Z
third_party/boost/libs/throw_exception/test/lib2_throw.hpp
avplayer/cxxrpc
7049b4079fac78b3828e68f787d04d699ce52f6d
[ "BSL-1.0" ]
5
2019-08-20T13:45:04.000Z
2022-03-01T18:23:49.000Z
#ifndef LIB2_THROW_HPP_INCLUDED #define LIB2_THROW_HPP_INCLUDED // Copyright 2018 Peter Dimov // // 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 <boost/config.hpp> #include <exception> #...
19.194444
62
0.732272
Jackarain
1caf4b346c1651e1f388febc9153362d258f74ec
2,584
cxx
C++
source/common/log.cxx
bjadamson/BoomHS
60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4
[ "MIT" ]
2
2016-07-22T10:09:21.000Z
2017-09-16T06:50:01.000Z
source/common/log.cxx
bjadamson/BoomHS
60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4
[ "MIT" ]
14
2016-08-13T22:45:56.000Z
2018-12-16T03:56:36.000Z
source/common/log.cxx
bjadamson/BoomHS
60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4
[ "MIT" ]
null
null
null
#include <common/algorithm.hpp> #include <common/compiler.hpp> #include <common/log.hpp> #include <common/type_macros.hpp> #include <iostream> #include <memory> using namespace common; using namespace common::impl; namespace { auto threadunsafe_sink(char const* file_path) { // use single-threaded spdlog sink us...
25.84
98
0.694272
bjadamson
1cb17087c5744fc15685f61512d6ac28e2e27bae
363
cpp
C++
codeshef/SUMPOS.cpp
sonuKumar03/data-structure-and-algorithm
d1fd3cad494cbcc91ce7ff37ec611752369b50b6
[ "MIT" ]
null
null
null
codeshef/SUMPOS.cpp
sonuKumar03/data-structure-and-algorithm
d1fd3cad494cbcc91ce7ff37ec611752369b50b6
[ "MIT" ]
null
null
null
codeshef/SUMPOS.cpp
sonuKumar03/data-structure-and-algorithm
d1fd3cad494cbcc91ce7ff37ec611752369b50b6
[ "MIT" ]
null
null
null
#include<iostream> #include<queue> #include<vector> #include<algorithm> #include<climits> #include<math.h> using namespace std; typedef long long ll ; void solve(){ ll x,y,z; cin>>x>>y>>z; if(x+y ==z || x+z ==y || z+y==x ){ cout<<"YES\n"; }else{ cout<<"NO\n"; } } int main() { ll t; cin>>t; ...
12.1
37
0.545455
sonuKumar03
1cb80edd1b2de8683ffddb8ed7d8bc6fc382913a
950
cpp
C++
docs/parallel/concrt/codesnippet/CPP/cancellation-in-the-ppl_9.cpp
bobbrow/cpp-docs
769b186399141c4ea93400863a7d8463987bf667
[ "CC-BY-4.0", "MIT" ]
965
2017-06-25T23:57:11.000Z
2022-03-31T14:17:32.000Z
docs/parallel/concrt/codesnippet/CPP/cancellation-in-the-ppl_9.cpp
bobbrow/cpp-docs
769b186399141c4ea93400863a7d8463987bf667
[ "CC-BY-4.0", "MIT" ]
3,272
2017-06-24T00:26:34.000Z
2022-03-31T22:14:07.000Z
docs/parallel/concrt/codesnippet/CPP/cancellation-in-the-ppl_9.cpp
bobbrow/cpp-docs
769b186399141c4ea93400863a7d8463987bf667
[ "CC-BY-4.0", "MIT" ]
951
2017-06-25T12:36:14.000Z
2022-03-26T22:49:06.000Z
structured_task_group tg2; // Create a child task. auto t4 = make_task([&] { // Perform work in a loop. for (int i = 0; i < 1000; ++i) { // Call a function to perform work. // If the work function fails, throw an exception to ...
25.675676
73
0.454737
bobbrow
1cb821c0849832889abe41ff99312eedeb1837a0
660
cpp
C++
teas/iostream/iostream/iostream.cpp
benman64/buildhl
137f53d3817928d67b898653b612bbaa669d0112
[ "MIT" ]
null
null
null
teas/iostream/iostream/iostream.cpp
benman64/buildhl
137f53d3817928d67b898653b612bbaa669d0112
[ "MIT" ]
null
null
null
teas/iostream/iostream/iostream.cpp
benman64/buildhl
137f53d3817928d67b898653b612bbaa669d0112
[ "MIT" ]
null
null
null
#include "iostream.hpp" namespace ios { bout_ostream::bout_ostream() { mFile = stdout; } std::streamsize bout_ostream::write(const void*data, std::streamsize size) { return fwrite(data, 1, size, mFile); } void bout_ostream::flush() { fflush(mFile); } bin_istream::bin_istream() { mFile = stdin; } std::st...
18.857143
76
0.69697
benman64
1cc6b226eea195cfc51cde987cf6d117754e4563
1,759
cpp
C++
7.Templates/i-Design/Q5/Main.cpp
Concept-Team/e-box-UTA018
a6caf487c9f27a5ca30a00847ed49a163049f67e
[ "MIT" ]
26
2021-03-17T03:15:22.000Z
2021-06-09T13:29:41.000Z
7.Templates/i-Design/Q5/Main.cpp
Servatom/e-box-UTA018
a6caf487c9f27a5ca30a00847ed49a163049f67e
[ "MIT" ]
6
2021-03-16T19:04:05.000Z
2021-06-03T13:41:04.000Z
7.Templates/i-Design/Q5/Main.cpp
Concept-Team/e-box-UTA018
a6caf487c9f27a5ca30a00847ed49a163049f67e
[ "MIT" ]
42
2021-03-17T03:16:22.000Z
2021-06-14T21:11:20.000Z
#include<iostream> #include<cstdlib> using std::cin; using std::cout; using std::endl; using std::string; template<class T> class Stack { private: int top; T *arr; int maxsize; public: Stack(int s){ maxsize=s; arr=new T[maxsize]; top=-1; } void push(T val){ ...
17.07767
53
0.436043
Concept-Team
1ccb38f5558314586f831fafeb058fff81af0538
2,147
hpp
C++
test/unittest/rtps/flowcontrol/FlowControllerPublishModesTests.hpp
DimaRU/Fast-DDS
4874d11575f396f7787c0f93254a989e7f523e68
[ "Apache-2.0" ]
575
2015-01-22T20:05:04.000Z
2020-06-01T10:06:12.000Z
test/unittest/rtps/flowcontrol/FlowControllerPublishModesTests.hpp
DimaRU/Fast-DDS
4874d11575f396f7787c0f93254a989e7f523e68
[ "Apache-2.0" ]
1,110
2015-04-20T19:30:34.000Z
2020-06-01T08:13:52.000Z
test/unittest/rtps/flowcontrol/FlowControllerPublishModesTests.hpp
DimaRU/Fast-DDS
4874d11575f396f7787c0f93254a989e7f523e68
[ "Apache-2.0" ]
273
2015-08-10T23:34:42.000Z
2020-05-28T13:03:32.000Z
#ifndef _UNITTEST_RTPS_FLOWCONTROL_FLOWCONTROLLERPUBLISHMODESTESTS_HPP_ #define _UNITTEST_RTPS_FLOWCONTROL_FLOWCONTROLLERPUBLISHMODESTESTS_HPP_ #include <rtps/flowcontrol/FlowControllerImpl.hpp> #include <fastdds/rtps/flowcontrol/FlowControllerDescriptor.hpp> #include <gtest/gtest.h> namespace eprosima { namespace f...
30.239437
88
0.721006
DimaRU
1cd0cf5ecbbe8841e0e7e2590602d3beb871fa74
23,191
cpp
C++
RenderCore/Assets/RawMaterial.cpp
pocketgems/XLE2
82771e9ab1fc3b12927f1687bbe05d4f7dce8765
[ "MIT" ]
3
2018-05-17T08:39:39.000Z
2020-12-09T13:20:26.000Z
RenderCore/Assets/RawMaterial.cpp
pocketgems/XLE2
82771e9ab1fc3b12927f1687bbe05d4f7dce8765
[ "MIT" ]
null
null
null
RenderCore/Assets/RawMaterial.cpp
pocketgems/XLE2
82771e9ab1fc3b12927f1687bbe05d4f7dce8765
[ "MIT" ]
1
2021-11-14T08:50:15.000Z
2021-11-14T08:50:15.000Z
// Copyright 2015 XLGAMES Inc. // // Distributed under the MIT License (See // accompanying file "LICENSE" or the website // http://www.opensource.org/licenses/mit-license.php) #include "RawMaterial.h" #include "../StateDesc.h" #include "../../Assets/Assets.h" #include "../../Assets/IntermediateAssets.h" // (for GetD...
38.395695
152
0.61291
pocketgems
1cd0fba7ad7b9b9b41979c4fc1838b36feb30c63
1,719
cpp
C++
source/main.cpp
MatthewScholefield/musidy-app
24b1007619e3137bf97ad9e3917d3560fbbd9f21
[ "MIT" ]
null
null
null
source/main.cpp
MatthewScholefield/musidy-app
24b1007619e3137bf97ad9e3917d3560fbbd9f21
[ "MIT" ]
null
null
null
source/main.cpp
MatthewScholefield/musidy-app
24b1007619e3137bf97ad9e3917d3560fbbd9f21
[ "MIT" ]
null
null
null
#include <SDL_events.h> #include <iostream> #include "Renderer.hpp" #include "Instrument.hpp" #include "CLI11.hpp" #include "songCreation/ScorePlayer.hpp" #include "Interface.hpp" #include "SoundSystem.hpp" struct Arguments { Arguments(int argc, char **argv) : app("Dynamic Music Generation App") { app.ign...
30.157895
108
0.63758
MatthewScholefield
1cd20ea69db65faa31c7758f34d5bd55d3601cd3
2,219
cc
C++
src/search_local/index_storage/common/shmem.cc
jdisearch/isearch1
272bd4ab0dc82d9e33c8543474b1294569947bb3
[ "Apache-2.0" ]
3
2021-08-18T09:59:42.000Z
2021-09-07T03:11:28.000Z
src/search_local/index_storage/common/shmem.cc
jdisearch/isearch1
272bd4ab0dc82d9e33c8543474b1294569947bb3
[ "Apache-2.0" ]
null
null
null
src/search_local/index_storage/common/shmem.cc
jdisearch/isearch1
272bd4ab0dc82d9e33c8543474b1294569947bb3
[ "Apache-2.0" ]
null
null
null
/* * ===================================================================================== * * Filename: sheme.cc * * Description: * * Version: 1.0 * Created: 09/08/2020 10:02:05 PM * Revision: none * Compiler: gcc * * Author: qiulu, choulu@jd.com * ...
16.07971
88
0.553853
jdisearch
1cd7023f82b12ca43c163864d644d886b6650211
359
cpp
C++
Raven/src/Application.cpp
IridescentRose/Raven-Client
e39a88eef8d56067387acaaad19ec44ddaab3869
[ "MIT" ]
10
2020-10-05T23:11:25.000Z
2022-01-30T13:22:33.000Z
Raven/src/Application.cpp
IridescentRose/Raven-Client
e39a88eef8d56067387acaaad19ec44ddaab3869
[ "MIT" ]
3
2020-07-09T16:08:54.000Z
2020-08-05T19:58:41.000Z
Raven/src/Application.cpp
NT-Bourgeois-Iridescence-Technologies/Raven-Client
e39a88eef8d56067387acaaad19ec44ddaab3869
[ "MIT" ]
2
2021-02-06T08:01:26.000Z
2021-06-19T07:39:59.000Z
#include "Application.h" #include "States/Logo.h" Application::Application() { stateMan = new Core::GameStateManager(); } Application::~Application() { } void Application::init() { Logo* logo = new Logo(); logo->init(); stateMan->addState(logo); } void Application::update() { stateMan->update(); } void Appl...
11.580645
41
0.668524
IridescentRose
1cd7199367381b631390d66b84fbe8c2737220d6
2,084
cc
C++
src/q_51_100/q0094.cc
vNaonLu/daily-leetcode
2830c2cd413d950abe7c6d9b833c771f784443b0
[ "MIT" ]
2
2021-09-28T18:41:03.000Z
2021-09-28T18:42:57.000Z
src/q_51_100/q0094.cc
vNaonLu/Daily_LeetCode
30024b561611d390931cef1b22afd6a5060cf586
[ "MIT" ]
16
2021-09-26T11:44:20.000Z
2021-11-28T06:44:02.000Z
src/q_51_100/q0094.cc
vNaonLu/daily-leetcode
2830c2cd413d950abe7c6d9b833c771f784443b0
[ "MIT" ]
1
2021-11-22T09:11:36.000Z
2021-11-22T09:11:36.000Z
#include <gtest/gtest.h> #include <iostream> #include <leetcode/treenode.hpp> #include <vector> using namespace std; /** * This file is generated by leetcode_add.py v1.0 * * 94. * Binary Tree Inorder Traversal * * ––––––––––––––––––––––––––––– Description ––––––––––––––––––––––––––––– * * Given the β€˜roo...
24.517647
74
0.608925
vNaonLu
1cdccb774695f7fb9de9e7019b2cddf6a32e8cb5
1,556
hh
C++
mimosa/http/crud-handler.hh
abique/mimosa
42c0041b570b55a24c606a7da79c70c9933c07d4
[ "MIT" ]
24
2015-01-19T16:38:24.000Z
2022-01-15T01:25:30.000Z
mimosa/http/crud-handler.hh
abique/mimosa
42c0041b570b55a24c606a7da79c70c9933c07d4
[ "MIT" ]
2
2017-01-07T10:47:06.000Z
2018-01-16T07:19:57.000Z
mimosa/http/crud-handler.hh
abique/mimosa
42c0041b570b55a24c606a7da79c70c9933c07d4
[ "MIT" ]
7
2015-01-19T16:38:31.000Z
2020-12-12T19:10:30.000Z
#pragma once # include "handler.hh" namespace mimosa { namespace http { /** * This handler helps you to map CRUD web services. * You have to override methods you wish to implement, * and the other ones will reply 501 (NotImplemented). */ class CrudHandler : public Handler { pub...
27.785714
74
0.582262
abique