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
09ca17570bb9565d91ab6cf5341055131d4ca0c2
4,882
cpp
C++
q/src/video/GLES/GLES_Fbo_Wrapper.cpp
jeanleflambeur/silkopter
cdbc67ee2c85f5c95eb4f52e2e0ba24514962dd8
[ "BSD-3-Clause" ]
36
2015-03-09T16:47:14.000Z
2021-02-04T08:32:04.000Z
q/src/video/GLES/GLES_Fbo_Wrapper.cpp
jeanlemotan/silkopter
cdbc67ee2c85f5c95eb4f52e2e0ba24514962dd8
[ "BSD-3-Clause" ]
42
2017-02-11T11:15:51.000Z
2019-12-28T16:00:44.000Z
q/src/video/GLES/GLES_Fbo_Wrapper.cpp
jeanleflambeur/silkopter
cdbc67ee2c85f5c95eb4f52e2e0ba24514962dd8
[ "BSD-3-Clause" ]
5
2015-10-15T05:46:48.000Z
2020-05-11T17:40:36.000Z
#include "QStdAfx.h" #include "video/GLES/GLES_Fbo_Wrapper.h" #include "video/GLES/GLES_Texture.h" #include "video/GLES/GLES_Interface.h" #include "video/GLES/GLES_Command_Stream.h" #include "video/GLES/GLES_Renderer.h" #include "system/System.h" using namespace q; using namespace video; GLES_Fbo_Wrapper...
27.897143
159
0.729619
jeanleflambeur
09cf1bfa45293894f6b4c079a1f773afa3ba75db
870
cpp
C++
jni/libil2cpp-v24/icalls/System/System.Net.NetworkInformation/LinuxNetworkInterface.cpp
battlesteed/IL2CPPDumper-1
877d21fbb82f08d64287e27e96491772c0b35e60
[ "MIT" ]
48
2020-03-25T11:18:58.000Z
2022-02-24T06:03:45.000Z
jni/libil2cpp-v24/icalls/System/System.Net.NetworkInformation/LinuxNetworkInterface.cpp
battlesteed/IL2CPPDumper-1
877d21fbb82f08d64287e27e96491772c0b35e60
[ "MIT" ]
2
2021-01-24T13:49:21.000Z
2021-02-09T01:36:11.000Z
jni/libil2cpp-v24/icalls/System/System.Net.NetworkInformation/LinuxNetworkInterface.cpp
battlesteed/IL2CPPDumper-1
877d21fbb82f08d64287e27e96491772c0b35e60
[ "MIT" ]
30
2020-03-26T19:02:19.000Z
2022-02-16T08:53:33.000Z
#if !NET_4_0 #include "il2cpp-config.h" #include "LinuxNetworkInterface.h" #include "external/xamarin-android/xamarin_getifaddrs.h" namespace il2cpp { namespace icalls { namespace System { namespace System { namespace Net { namespace NetworkInformation { int32_t LinuxNetworkInterface::GetInterfaceAddresses(Il2Cpp...
21.219512
93
0.747126
battlesteed
09cfe3a25c73b5bb8931d88cceb2315d2a6b08d0
994
cpp
C++
q352.cpp
abraxaslee/ACM-ICPC
d8db31a4a2a36258bfba42a806b02bbf3eceaf2b
[ "MIT" ]
1
2018-03-19T05:18:49.000Z
2018-03-19T05:18:49.000Z
q352.cpp
abraxaslee/ACM-ICPC
d8db31a4a2a36258bfba42a806b02bbf3eceaf2b
[ "MIT" ]
null
null
null
q352.cpp
abraxaslee/ACM-ICPC
d8db31a4a2a36258bfba42a806b02bbf3eceaf2b
[ "MIT" ]
null
null
null
//q352.cpp - 2011/11/17 //accepted at //run time = 0.004 c #include <stdio.h> char WARZONE[30][30]; int dx[8] = { -1, -1, 0, 1, 1, 1, 0, -1 }; int dy[8] = { 0, 1, 1, 1, 0, -1, -1, -1}; int dimension; inline void DFS(int x, int y){ WARZONE[x][y] = '0'; int i; for(i=0;i<8;++i){ int nx = x + dx[i];...
18.754717
78
0.5
abraxaslee
09d0b53e1565be867fb7ede01ed9f7094c47ed2f
10,671
cpp
C++
examples/archive3d.cpp
alandefreitas/pareto_fronts
c133aa6c3be682d12e6fcbfa26a80da28ebb8b70
[ "MIT" ]
47
2020-12-02T09:55:12.000Z
2022-03-11T05:27:31.000Z
examples/archive3d.cpp
alandefreitas/pareto_fronts
c133aa6c3be682d12e6fcbfa26a80da28ebb8b70
[ "MIT" ]
3
2020-11-29T23:43:21.000Z
2021-04-08T16:35:02.000Z
examples/archive3d.cpp
alandefreitas/pareto_fronts
c133aa6c3be682d12e6fcbfa26a80da28ebb8b70
[ "MIT" ]
7
2020-12-23T12:24:59.000Z
2021-10-29T18:12:22.000Z
#include <chrono> #include <iostream> #include <map> #include <pareto/archive.h> #include <pareto/kd_tree.h> #include <random> int main() { using std::cout; using std::endl; using namespace pareto; // Constructor size_t capacity = 1000; archive<double, 3, unsigned> ar(capacity, {min, max, min})...
45.216102
140
0.555805
alandefreitas
09da36b454b452d77760964afe1845edf8a2ba2f
92
cpp
C++
src/examples/01_module/01_hello_world/main.cpp
acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-Irvingperez
52f01b57eea81445f5ef13325969a8a1bd868c50
[ "MIT" ]
null
null
null
src/examples/01_module/01_hello_world/main.cpp
acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-Irvingperez
52f01b57eea81445f5ef13325969a8a1bd868c50
[ "MIT" ]
null
null
null
src/examples/01_module/01_hello_world/main.cpp
acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-Irvingperez
52f01b57eea81445f5ef13325969a8a1bd868c50
[ "MIT" ]
null
null
null
#include<iostream> int main() { std::cout<<"Hello World! Irving Hola"; return 0; } } }
9.2
39
0.608696
acc-cosc-1337-fall-2020
09db86750b412315eb65c8fadfe4ac48ae7d6ef7
1,003
cpp
C++
aws-cpp-sdk-networkmanager/source/model/BgpOptions.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2022-02-12T08:09:30.000Z
2022-02-12T08:09:30.000Z
aws-cpp-sdk-networkmanager/source/model/BgpOptions.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2022-01-03T23:59:37.000Z
2022-01-03T23:59:37.000Z
aws-cpp-sdk-networkmanager/source/model/BgpOptions.cpp
ravindra-wagh/aws-sdk-cpp
7d5ff01b3c3b872f31ca98fb4ce868cd01e97696
[ "Apache-2.0" ]
1
2021-11-09T11:58:03.000Z
2021-11-09T11:58:03.000Z
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/networkmanager/model/BgpOptions.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { nam...
16.177419
69
0.708873
perfectrecall
09dbdd284f3dd77a7b2f2282f4a3cc8a5d0b7685
2,801
cpp
C++
camera/src/stereo_pointcloud.cpp
miriamschmelzer/SegSlam
4b4f8226636a0b3e04b2dad0be244681548fd44a
[ "BSD-3-Clause" ]
1
2022-02-11T13:55:52.000Z
2022-02-11T13:55:52.000Z
camera/src/stereo_pointcloud.cpp
miriamschmelzer/SegSlam
4b4f8226636a0b3e04b2dad0be244681548fd44a
[ "BSD-3-Clause" ]
null
null
null
camera/src/stereo_pointcloud.cpp
miriamschmelzer/SegSlam
4b4f8226636a0b3e04b2dad0be244681548fd44a
[ "BSD-3-Clause" ]
null
null
null
#include <stereo_pointcloud.hpp> #include <ros/ros.h> #include <sensor_msgs/PointCloud2.h> #include <tf_conversions/tf_eigen.h> #include <tf/transform_broadcaster.h> #include <tf/transform_listener.h> StereoPointcloud::StereoPointcloud() {} void StereoPointcloud::scanACallback(const sensor_msgs::PointCloud2& cloud_...
33.746988
132
0.69618
miriamschmelzer
09dee8bf9f660a9ce9de1089c71e2cf284940e04
4,300
cpp
C++
samples/02_oop/2018_is/dynarray/dynarray.cpp
code-hunger/lecture-notes
0200c57a4c2539b4d8b7cb172c2b6e4f5c689268
[ "MIT" ]
32
2016-11-24T01:40:21.000Z
2021-11-01T19:24:22.000Z
samples/02_oop/2018_is/dynarray/dynarray.cpp
code-hunger/lecture-notes
0200c57a4c2539b4d8b7cb172c2b6e4f5c689268
[ "MIT" ]
6
2016-10-15T05:57:00.000Z
2021-08-13T12:29:24.000Z
samples/02_oop/2018_is/dynarray/dynarray.cpp
code-hunger/lecture-notes
0200c57a4c2539b4d8b7cb172c2b6e4f5c689268
[ "MIT" ]
49
2016-01-26T13:36:02.000Z
2022-03-16T10:24:41.000Z
#include <iostream> #include <cassert> template <class T> class Array { public: Array () {/* Този метод ще бъде изпълнен автоматично при декларация на обект по следния начин: Array<X> a; */ _size = 0; buffer = nullptr; } /*Array () { }*/ Array (const Array<T> &other) {/* Този ме...
15.412186
53
0.495116
code-hunger
09e2eeddb299028ca65fe9a770a05ff5f05456c5
4,126
hpp
C++
include/kl/reflect_enum.hpp
lhamowski/kl
52f4a4dda7b6444e1f1432f62372d0949ccab6f6
[ "MIT" ]
3
2016-08-20T23:59:28.000Z
2020-03-04T17:49:46.000Z
include/kl/reflect_enum.hpp
lhamowski/kl
52f4a4dda7b6444e1f1432f62372d0949ccab6f6
[ "MIT" ]
5
2020-02-17T12:57:01.000Z
2020-11-02T19:35:48.000Z
include/kl/reflect_enum.hpp
lhamowski/kl
52f4a4dda7b6444e1f1432f62372d0949ccab6f6
[ "MIT" ]
2
2020-02-04T14:04:28.000Z
2020-03-04T17:50:10.000Z
#pragma once #include "kl/detail/macros.hpp" #include <cstddef> /* * Requirements: boost 1.57+, C++14 compiler and preprocessor * Sample usage: namespace ns { enum class enum_ { A, B, C }; KL_REFLECT_ENUM(enum_, A, (B, bb), C) } * First argument is unqualified enum type name * The rest is a list of enum v...
33.008
80
0.598158
lhamowski
09e90b6c36c32183ed58ba30514edab37a7886e6
5,844
cpp
C++
naklibsrc/src/core/MessageHash/conversions.cpp
murphyj8/testNakStructure
fbd9fc0784b6b7ee3b176cb28d2b6e26abd2b48a
[ "Unlicense" ]
1
2021-07-01T02:01:27.000Z
2021-07-01T02:01:27.000Z
naklibsrc/src/core/MessageHash/conversions.cpp
murphyj8/testNakStructure
fbd9fc0784b6b7ee3b176cb28d2b6e26abd2b48a
[ "Unlicense" ]
1
2020-09-23T12:34:34.000Z
2020-09-23T12:34:34.000Z
naklibsrc/src/core/MessageHash/conversions.cpp
murphyj8/testNakStructure
fbd9fc0784b6b7ee3b176cb28d2b6e26abd2b48a
[ "Unlicense" ]
null
null
null
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <iostream> #include <sstream> #include <memory> #include <MessageHash/conversions.h> #define BYTES_PER_GROUP 4 #define GROUPS_PER_LINE 4 /* Don't change these */ #define BYTES_PER_LINE (BYTES_PER_GROUP * GROUPS_PER_LINE) #define ERR_NOT_HEX -1 #def...
23.282869
106
0.503765
murphyj8
09e90d06e9c2ca2c13c5e294b7ebcef3f11f360c
2,270
hh
C++
neb/inc/com/centreon/engine/contactgroup.hh
sdelafond/centreon-broker
21178d98ed8a061ca71317d23c2026dbc4edaca2
[ "Apache-2.0" ]
null
null
null
neb/inc/com/centreon/engine/contactgroup.hh
sdelafond/centreon-broker
21178d98ed8a061ca71317d23c2026dbc4edaca2
[ "Apache-2.0" ]
null
null
null
neb/inc/com/centreon/engine/contactgroup.hh
sdelafond/centreon-broker
21178d98ed8a061ca71317d23c2026dbc4edaca2
[ "Apache-2.0" ]
null
null
null
/* ** Copyright 2011-2019 Centreon ** ** This file is part of Centreon Engine. ** ** Centreon Engine is free software: you can redistribute it and/or ** modify it under the terms of the GNU General Public License version 2 ** as published by the Free Software Foundation. ** ** Centreon Engine is distributed in the hope...
28.024691
75
0.693833
sdelafond
09f01f3a6c48868e935ec6ee36a42cd0cf2dfcb0
1,274
cc
C++
src/vosk/vosk_test.cc
Ma-Dan/vosk-porting
a983ebfd37fb970788a3e12a5eaacb003c2552b4
[ "Apache-2.0" ]
null
null
null
src/vosk/vosk_test.cc
Ma-Dan/vosk-porting
a983ebfd37fb970788a3e12a5eaacb003c2552b4
[ "Apache-2.0" ]
null
null
null
src/vosk/vosk_test.cc
Ma-Dan/vosk-porting
a983ebfd37fb970788a3e12a5eaacb003c2552b4
[ "Apache-2.0" ]
null
null
null
#include <vosk_api.h> #include <stdio.h> #include <signal.h> #define SAMPLE_RATE (1600) #define FRAMES_PER_BUFFER (160) #define NUM_SECONDS (10) #define NUM_CHANNELS (1) #define DITHER_FLAG (0) #define PA_SAMPLE_TYPE paInt16 typedef short SAMPLE; #define SAMPLE_SILENCE (0) #define PRINTF_S_FORMAT "%d" ...
24.980392
84
0.658556
Ma-Dan
09f2ee5862c5512addf10a9ce2ec72511c181044
4,888
cpp
C++
src/functions.cpp
Dcbaas/DAVID_BAAS_stacks_queues
a8f420a9f785bfb1626c388a2080c47353d163c7
[ "MIT" ]
null
null
null
src/functions.cpp
Dcbaas/DAVID_BAAS_stacks_queues
a8f420a9f785bfb1626c388a2080c47353d163c7
[ "MIT" ]
null
null
null
src/functions.cpp
Dcbaas/DAVID_BAAS_stacks_queues
a8f420a9f785bfb1626c388a2080c47353d163c7
[ "MIT" ]
null
null
null
#include "functions.h" #include <iostream> #include <string> #include <vector> #include <stack> //Author: David Baas //Version: 2/19/2018 //Since: 2/13/2018 /********************************************************************** * The balancedSymbols function looks at a string and determines * weather or not ther...
28.254335
74
0.572627
Dcbaas
09f4af43706beb7323119c1a183778758c608657
241
hpp
C++
src/data.hpp
electrumsv/bc-lifehash
5af99e2264146f7be2be05d45e4f569a262c6a0e
[ "BSD-2-Clause-Patent" ]
4
2021-03-05T02:52:50.000Z
2022-01-20T16:31:52.000Z
src/data.hpp
electrumsv/bc-lifehash
5af99e2264146f7be2be05d45e4f569a262c6a0e
[ "BSD-2-Clause-Patent" ]
3
2021-02-12T02:19:05.000Z
2021-10-02T04:31:57.000Z
src/data.hpp
electrumsv/bc-lifehash
5af99e2264146f7be2be05d45e4f569a262c6a0e
[ "BSD-2-Clause-Patent" ]
5
2021-02-15T16:48:04.000Z
2021-11-10T07:27:00.000Z
#ifndef LIFEHASH_DATA_HPP #define LIFEHASH_DATA_HPP #include <stdint.h> #include <vector> namespace LifeHash { // An idiom for a block of data used throughout LifeHash. typedef std::vector<uint8_t> Data; } // namespace LifeHash #endif
14.176471
57
0.759336
electrumsv
67067132e6b8f35dfa7c3093e23a693df00fccd5
1,246
hpp
C++
obs-studio/UI/undo-stack-obs.hpp
noelemahcz/libobspp
029472b973e5a1985f883242f249848385df83a3
[ "MIT" ]
null
null
null
obs-studio/UI/undo-stack-obs.hpp
noelemahcz/libobspp
029472b973e5a1985f883242f249848385df83a3
[ "MIT" ]
null
null
null
obs-studio/UI/undo-stack-obs.hpp
noelemahcz/libobspp
029472b973e5a1985f883242f249848385df83a3
[ "MIT" ]
null
null
null
#pragma once #include <QObject> #include <QString> #include <QTimer> #include <deque> #include <functional> #include <string> #include <memory> #include "ui_OBSBasic.h" class undo_stack : public QObject { Q_OBJECT typedef std::function<void(const std::string &data)> undo_redo_cb; typedef std::function<void(bool...
20.096774
68
0.73114
noelemahcz
670c33a2e7dd0743212ef2e058e0cee07ed0790b
487
cpp
C++
07_class_multiples_test/shooter_test.cpp
acc-cosc-1337-spring-2019/midterm-spring-2019-ChristianVandiver
c9d911e5afd6d091e8d262db3a2990f769b0e525
[ "MIT" ]
null
null
null
07_class_multiples_test/shooter_test.cpp
acc-cosc-1337-spring-2019/midterm-spring-2019-ChristianVandiver
c9d911e5afd6d091e8d262db3a2990f769b0e525
[ "MIT" ]
null
null
null
07_class_multiples_test/shooter_test.cpp
acc-cosc-1337-spring-2019/midterm-spring-2019-ChristianVandiver
c9d911e5afd6d091e8d262db3a2990f769b0e525
[ "MIT" ]
null
null
null
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file #include "catch.hpp" #include"shooter.h" /* Test that shooter returns a Roll and verify that the roll result has one of the following values: Natural Craps Point */ TEST_CASE("Testing shoot function") { Die d1; Die d...
19.48
97
0.702259
acc-cosc-1337-spring-2019
e24e6b8d37ff10311665931adc0cd25b4856f9f8
15,062
cpp
C++
Shader.cpp
ChrSacher/MyEngine
8fe71fd9e84b9536148e0d4ebb4e53751ab49ce8
[ "Apache-2.0" ]
2
2015-10-27T21:36:59.000Z
2017-03-17T21:52:19.000Z
Shader.cpp
ChrSacher/MyEngine
8fe71fd9e84b9536148e0d4ebb4e53751ab49ce8
[ "Apache-2.0" ]
null
null
null
Shader.cpp
ChrSacher/MyEngine
8fe71fd9e84b9536148e0d4ebb4e53751ab49ce8
[ "Apache-2.0" ]
null
null
null
#include "Shader.h" GLuint Shader::currentActiveShader = -1; GLuint Shader::lastActiveShader = -2; Shader::Shader() : _numAttributes(0) { /*create program */ _programID = glCreateProgram(); if(_programID == 0) { fatalError("failed to create programm"); } } Shader::~Shader() { glUseProgram(0); glDeletePr...
25.879725
143
0.681583
ChrSacher
e24f309bc344deea4153d2229b307927de0344cd
1,067
cpp
C++
mod.cpp
Hekkie-MacLean/Legacy-Main-Menu
b3c517ba1a475f9d9d196e43021bf4f854e9cf66
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
mod.cpp
Hekkie-MacLean/Legacy-Main-Menu
b3c517ba1a475f9d9d196e43021bf4f854e9cf66
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2019-12-12T00:00:49.000Z
2019-12-17T16:45:00.000Z
mod.cpp
Hekkie-MacLean/Legacy-Main-Menu
b3c517ba1a475f9d9d196e43021bf4f854e9cf66
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2019-12-11T17:47:41.000Z
2019-12-11T17:47:41.000Z
/// Name of your mod name = "Legacy Main Menu"; /// Picture displayed from the expansions menu/ Optimal size is 2048x1024, other sizes work too /*picture = "\Samples_F\Data_01\Images\picture.paa";*/ /// Display next to the item added by the mod /*logoSmall = "\Samples_F\Data_01\Logos\logo_small.paa";*/ /// Logo ...
38.107143
96
0.698219
Hekkie-MacLean
e24fee74f04ea74da84aca66b3e749c8893da16d
1,173
cpp
C++
6. Advance Recurtion/3_remove_duplicates.cpp
bhavinvirani/Competitive-Programming-coding-ninjas
5e50ae7ad3fc969a4970f91f8d895c986353bb71
[ "MIT" ]
null
null
null
6. Advance Recurtion/3_remove_duplicates.cpp
bhavinvirani/Competitive-Programming-coding-ninjas
5e50ae7ad3fc969a4970f91f8d895c986353bb71
[ "MIT" ]
null
null
null
6. Advance Recurtion/3_remove_duplicates.cpp
bhavinvirani/Competitive-Programming-coding-ninjas
5e50ae7ad3fc969a4970f91f8d895c986353bb71
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; void removeDuplicate(char str[], set<char> s){ if(str[0] == '\0'){ return; } //* unique char (not present in set) if(s.find(str[0]) == s.end()){ s.insert(str[0]); removeDuplicate(str + 1, s); } else { //* duplicate int i...
19.881356
57
0.451833
bhavinvirani
e255a326365d0c4349e2d574943618dccf82a0bf
6,377
cpp
C++
cppLib/code/Generator/Terrain/Painter/AutomaticPainter.cpp
DrYaling/ProcedureContentGenerationForUnity
3c4f1e70b01e4fe2b9f847324b60b15016b9a740
[ "MIT" ]
3
2019-05-14T07:19:59.000Z
2019-05-14T08:08:25.000Z
cppLib/code/Generator/Terrain/Painter/AutomaticPainter.cpp
DrYaling/ProcedureContentGenerationForUnity
3c4f1e70b01e4fe2b9f847324b60b15016b9a740
[ "MIT" ]
null
null
null
cppLib/code/Generator/Terrain/Painter/AutomaticPainter.cpp
DrYaling/ProcedureContentGenerationForUnity
3c4f1e70b01e4fe2b9f847324b60b15016b9a740
[ "MIT" ]
1
2018-08-08T07:39:16.000Z
2018-08-08T07:39:16.000Z
#include "AutomaticPainter.h" #include "SplatPainter.h" #include "Logger/Logger.h" #include "MapGenerator/MapGenerator.h" namespace generator { #define return_if_exit if(MapGenerator::IsStopped()) return AutomaticPainter::AutomaticPainter() : m_pPainter(nullptr) { Switch(generator::PainterType::SplatPainter); }...
24.247148
128
0.631959
DrYaling
e25afeb35c6c94323adb6c2769f40a4b7b9bdfa4
128
cpp
C++
core/platform/CCFileStream.cpp
DelinWorks/adxe
0f1ba3a086d744bb52e157e649fa986ae3c7ab05
[ "MIT" ]
null
null
null
core/platform/CCFileStream.cpp
DelinWorks/adxe
0f1ba3a086d744bb52e157e649fa986ae3c7ab05
[ "MIT" ]
4
2020-10-22T05:45:37.000Z
2020-10-23T12:11:44.000Z
core/platform/CCFileStream.cpp
DelinWorks/adxe
0f1ba3a086d744bb52e157e649fa986ae3c7ab05
[ "MIT" ]
1
2020-10-22T03:17:28.000Z
2020-10-22T03:17:28.000Z
// Copyright (c) 2018-2019 HALX99. // Copyright (c) 2020 C4games Ltd #include "platform/CCFileStream.h" NS_CC_BEGIN NS_CC_END
16
34
0.75
DelinWorks
e25d13de46a1d4952837c507ce516feab80cd6d3
21,400
cpp
C++
Source/AllProjects/CQCIntf/CQCIntfEng/CQCIntfEng_MRItemBrowser.cpp
MarkStega/CQC
c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07
[ "MIT" ]
51
2020-12-26T18:17:16.000Z
2022-03-15T04:29:35.000Z
Source/AllProjects/CQCIntf/CQCIntfEng/CQCIntfEng_MRItemBrowser.cpp
MarkStega/CQC
c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07
[ "MIT" ]
null
null
null
Source/AllProjects/CQCIntf/CQCIntfEng/CQCIntfEng_MRItemBrowser.cpp
MarkStega/CQC
c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07
[ "MIT" ]
4
2020-12-28T07:24:39.000Z
2021-12-29T12:09:37.000Z
// // FILE NAME: CQCIntfEng_MRItemBrowser.cpp // // AUTHOR: Dean Roddey // // CREATED: 12/21/2006 // // COPYRIGHT: Charmed Quark Systems, Ltd @ 2020 // // This software is copyrighted by 'Charmed Quark Systems, Ltd' and // the author (Dean Roddey.) It is licensed under the MIT Open Source // license: // // https://...
30.48433
83
0.535374
MarkStega
e26a31e66256bfe0a7056c7c95f92a6b4d3cb630
2,890
cpp
C++
src/solvers/csp/Types.cpp
tomcreutz/planning-templ
55e35ede362444df9a7def6046f6df06851fe318
[ "BSD-3-Clause" ]
1
2022-03-31T12:15:15.000Z
2022-03-31T12:15:15.000Z
src/solvers/csp/Types.cpp
tomcreutz/planning-templ
55e35ede362444df9a7def6046f6df06851fe318
[ "BSD-3-Clause" ]
null
null
null
src/solvers/csp/Types.cpp
tomcreutz/planning-templ
55e35ede362444df9a7def6046f6df06851fe318
[ "BSD-3-Clause" ]
1
2021-12-29T10:38:07.000Z
2021-12-29T10:38:07.000Z
#include "Types.hpp" #include <base-logging/Logging.hpp> namespace templ { namespace solvers { namespace csp { SpaceTime::Timeline TypeConversion::toTimeline(const AdjacencyList& list, const std::vector<symbols::constants::Location::Ptr>& locations, const std::vector<solvers::temporal::point_...
33.604651
147
0.555709
tomcreutz
e26bab2d2d8dd328a583a0e393da8900a8aaa6e6
747
cpp
C++
src/5000/5635.cpp14.cpp
upple/BOJ
e6dbf9fd17fa2b458c6a781d803123b14c18e6f1
[ "MIT" ]
8
2018-04-12T15:54:09.000Z
2020-06-05T07:41:15.000Z
src/5000/5635.cpp14.cpp
upple/BOJ
e6dbf9fd17fa2b458c6a781d803123b14c18e6f1
[ "MIT" ]
null
null
null
src/5000/5635.cpp14.cpp
upple/BOJ
e6dbf9fd17fa2b458c6a781d803123b14c18e6f1
[ "MIT" ]
null
null
null
#include<iostream> #include<string> using namespace std; class Student { private: string name; int day, month, year, birth; public: Student() { cin >> name >> day >> month >> year; birth = year * 10000 + month * 100 + day; } int getBirth() { return birth; } void printName() { cout << name << end...
14.365385
48
0.585007
upple
e277a7675a9a9acf5f918a794f2f1baef6164009
415
cpp
C++
src/coreclr/src/gc/vxsort/isa_detection_dummy.cpp
swaroop-sridhar/runtime
d0efddd932f6fb94c3e9436ab393fc390c7b2da9
[ "MIT" ]
11
2021-10-21T07:56:23.000Z
2022-03-31T15:08:10.000Z
src/coreclr/src/gc/vxsort/isa_detection_dummy.cpp
swaroop-sridhar/runtime
d0efddd932f6fb94c3e9436ab393fc390c7b2da9
[ "MIT" ]
1
2020-11-17T09:52:30.000Z
2020-11-17T09:52:30.000Z
src/coreclr/src/gc/vxsort/isa_detection_dummy.cpp
swaroop-sridhar/runtime
d0efddd932f6fb94c3e9436ab393fc390c7b2da9
[ "MIT" ]
2
2021-05-17T22:12:46.000Z
2021-05-19T06:21:16.000Z
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include "common.h" #include "do_vxsort.h" #if defined(TARGET_AMD64) && defined(TARGET_WINDOWS) void InitSupportedInstructionSet (int32_t) { } bool IsSupportedInstructionSet (Ins...
20.75
71
0.759036
swaroop-sridhar
e289d67c77050f6a89baa9e764c29304af7518a2
10,562
cpp
C++
Source/04Widget/CustomControl/NetCom/frmtcpserver.cpp
BeyondXinXin/OpenBrowser
0cc0486a36eff5e21a70b514bfc9f15bc9632784
[ "Apache-2.0" ]
1
2021-05-09T13:56:35.000Z
2021-05-09T13:56:35.000Z
Source/04Widget/CustomControl/NetCom/frmtcpserver.cpp
BeyondXinXin/OpenBrowser
0cc0486a36eff5e21a70b514bfc9f15bc9632784
[ "Apache-2.0" ]
null
null
null
Source/04Widget/CustomControl/NetCom/frmtcpserver.cpp
BeyondXinXin/OpenBrowser
0cc0486a36eff5e21a70b514bfc9f15bc9632784
[ "Apache-2.0" ]
null
null
null
//01frame #include "frmtcpserver.h" #include "ui_frmtcpserver.h" #include "quihelper.h" //02control #include "setupini.h" frmTcpServer::frmTcpServer(QWidget *parent) : QWidget(parent), ui(new Ui::frmTcpServer) { ui->setupUi(this); this->initForm(); this->initConfig(); } frmTcpS...
33.00625
115
0.600644
BeyondXinXin
e28bb748950eaca97c5fc91e4cfe1ff54a178805
5,016
cpp
C++
src/value/func.cpp
RauliL/snek
ad530c0485addaf71fd01469860b83a16d16bf9d
[ "BSD-2-Clause" ]
null
null
null
src/value/func.cpp
RauliL/snek
ad530c0485addaf71fd01469860b83a16d16bf9d
[ "BSD-2-Clause" ]
null
null
null
src/value/func.cpp
RauliL/snek
ad530c0485addaf71fd01469860b83a16d16bf9d
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright (c) 2020, Rauli Laine * 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 conditi...
28.827586
79
0.61882
RauliL
e294182e89a1dc6d48f134cc1222f668a4123ae5
2,629
inl
C++
shared/source/helpers/cache_flush_xehp_and_later.inl
troels/compute-runtime
3269e719a3ee7bcd97c50ec2cfe78fc8674adec0
[ "Intel", "MIT" ]
778
2017-09-29T20:02:43.000Z
2022-03-31T15:35:28.000Z
shared/source/helpers/cache_flush_xehp_and_later.inl
troels/compute-runtime
3269e719a3ee7bcd97c50ec2cfe78fc8674adec0
[ "Intel", "MIT" ]
478
2018-01-26T16:06:45.000Z
2022-03-30T10:19:10.000Z
shared/source/helpers/cache_flush_xehp_and_later.inl
troels/compute-runtime
3269e719a3ee7bcd97c50ec2cfe78fc8674adec0
[ "Intel", "MIT" ]
215
2018-01-30T08:39:32.000Z
2022-03-29T11:08:51.000Z
/* * Copyright (C) 2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/command_stream/linear_stream.h" #include "shared/source/helpers/l3_range.h" #include "shared/source/utilities/range.h" #include "hw_cmds.h" namespace NEO { template <typename GfxFamily> inline size_t getSize...
41.730159
140
0.75504
troels
e297b070ae4bbd3b4e3055ec441883449a38c9e1
3,156
hpp
C++
CPP/NutaDev.CppLib/NutaDev.CppLib.Random/Wrappers/CRandom.hpp
tariel36/SnippetsRepository
4632b9a561bb3ecf9a98862ee01bc80f75ff19a3
[ "MIT" ]
1
2022-01-10T06:44:28.000Z
2022-01-10T06:44:28.000Z
CPP/NutaDev.CppLib/NutaDev.CppLib.Random/Wrappers/CRandom.hpp
tariel36/SnippetsRepository
4632b9a561bb3ecf9a98862ee01bc80f75ff19a3
[ "MIT" ]
null
null
null
CPP/NutaDev.CppLib/NutaDev.CppLib.Random/Wrappers/CRandom.hpp
tariel36/SnippetsRepository
4632b9a561bb3ecf9a98862ee01bc80f75ff19a3
[ "MIT" ]
null
null
null
// The MIT License (MIT) // // Copyright (c) 2022 tariel36 // // 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...
38.962963
169
0.573828
tariel36
e29960fe957436423e450a0204cd222d6978fa79
11,876
cpp
C++
co-op/SynchArea.cpp
BartoszMilewski/CodeCoop
7d29f53ccf65b0d29ea7d6781a74507b52c08d0d
[ "MIT" ]
67
2018-03-02T10:50:02.000Z
2022-03-23T18:20:29.000Z
co-op/SynchArea.cpp
BartoszMilewski/CodeCoop
7d29f53ccf65b0d29ea7d6781a74507b52c08d0d
[ "MIT" ]
null
null
null
co-op/SynchArea.cpp
BartoszMilewski/CodeCoop
7d29f53ccf65b0d29ea7d6781a74507b52c08d0d
[ "MIT" ]
9
2018-03-01T16:38:28.000Z
2021-03-02T16:17:09.000Z
//------------------------------------ // (c) Reliable Software, 1997 - 2007 //------------------------------------ #include "precompiled.h" #undef DBG_LOGGING #define DBG_LOGGING false #include "SynchArea.h" #include "ScriptCommands.h" #include "DataBase.h" #include "History.h" #include "PathFind.h" #include "Physi...
24.845188
136
0.677838
BartoszMilewski
e2a0c184a3e76df8a1e3de11d3da39ed1c8ac67b
6,833
cpp
C++
analogRemote.cpp
sohtamei/analogRemote
250f8356db9283465f9d8397c0c33d61312d69f6
[ "Apache-2.0" ]
null
null
null
analogRemote.cpp
sohtamei/analogRemote
250f8356db9283465f9d8397c0c33d61312d69f6
[ "Apache-2.0" ]
null
null
null
analogRemote.cpp
sohtamei/analogRemote
250f8356db9283465f9d8397c0c33d61312d69f6
[ "Apache-2.0" ]
null
null
null
// copyright to SohtaMei 2019. #include <stdint.h> #include <Arduino.h> #ifndef ESP32 #include <avr/interrupt.h> #endif #include "analogRemote.h" static uint8_t port_irrx; static void (*funcLed)(uint8_t onoff) = NULL; enum { STATE_H_IDLE, STATE_H_HDR, STATE_H_BIT, STATE_H_ANALOG, STATE_L_HDR, STATE_L_BIT, S...
22.625828
103
0.626665
sohtamei
e2a17d960da69e14f5934dace3f0fcd322cb00ba
1,814
cpp
C++
LibOpenAL/demo/lec1/lec1.cpp
sim9108/SDKS
2823124fa0a22f8a77d131e7a2fb7f4aba59129c
[ "MIT" ]
2
2015-03-23T01:08:49.000Z
2015-03-23T02:28:17.000Z
LibOpenAL/demo/lec1/lec1.cpp
sim9108/SDKS
2823124fa0a22f8a77d131e7a2fb7f4aba59129c
[ "MIT" ]
null
null
null
LibOpenAL/demo/lec1/lec1.cpp
sim9108/SDKS
2823124fa0a22f8a77d131e7a2fb7f4aba59129c
[ "MIT" ]
null
null
null
// lec1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <cstdlib> #include <cstdio> #include <iostream> #include <cmath> #include <AL/al.h> #include <AL/alc.h> #include <Al/alext.h> #include <AL/alut.h> static void playFile(const char *fileName){ ALenum error; /* Creat...
22.675
75
0.683021
sim9108
e2a180e682ad11ee3c81069a7fbf767a604fc6f0
1,783
cxx
C++
docs/tutorials/code/tableIOin.cxx
pbuehler/analysis-framework
5bcdb96384935d19e02a27d0bbdc2ae6d9e2df3f
[ "MIT" ]
1
2020-08-13T20:07:07.000Z
2020-08-13T20:07:07.000Z
docs/tutorials/code/tableIOin.cxx
pbuehler/analysis-framework
5bcdb96384935d19e02a27d0bbdc2ae6d9e2df3f
[ "MIT" ]
12
2020-07-11T11:43:30.000Z
2022-03-17T11:05:25.000Z
docs/tutorials/code/tableIOin.cxx
pbuehler/analysis-framework
5bcdb96384935d19e02a27d0bbdc2ae6d9e2df3f
[ "MIT" ]
33
2020-07-10T15:33:42.000Z
2022-02-03T20:06:39.000Z
// Copyright CERN and copyright holders of ALICE O2. This software is // distributed under the terms of the GNU General Public License v3 (GPL // Version 3), copied verbatim in the file "COPYING". // // See http://alice-o2.web.cern.ch/license for full licensing information. // // In applying this license CERN does not ...
30.220339
79
0.705552
pbuehler
e2a9408dddc4f95ebc9391791d16d1f9b18da434
1,273
cpp
C++
Arrays/Merge Without Extra Space.cpp
ayushjindal23/450-DSA
8d6fb867c87d534520f51d685477afc446d59b6f
[ "MIT" ]
null
null
null
Arrays/Merge Without Extra Space.cpp
ayushjindal23/450-DSA
8d6fb867c87d534520f51d685477afc446d59b6f
[ "MIT" ]
null
null
null
Arrays/Merge Without Extra Space.cpp
ayushjindal23/450-DSA
8d6fb867c87d534520f51d685477afc446d59b6f
[ "MIT" ]
null
null
null
// Merging two sorted arrays with O(1) // extra space #include <bits/stdc++.h> using namespace std; // Function to find next gap. int nextGap(int gap) { if (gap <= 1) return 0; return (gap / 2) + (gap % 2); } void merge(int* arr1, int* arr2, int n, int m) { int i, j, gap = n + m; for (gap = next...
20.532258
47
0.496465
ayushjindal23
e2ac961e5fdae68da13c2d03702648e7157f7b10
2,037
cpp
C++
src/globals.cpp
AmkG/hl
8695e75389254fe881a6067ecebc70219d7dc7ff
[ "MIT" ]
2
2015-11-05T01:16:28.000Z
2021-12-20T04:30:08.000Z
src/globals.cpp
AmkG/hl
8695e75389254fe881a6067ecebc70219d7dc7ff
[ "MIT" ]
null
null
null
src/globals.cpp
AmkG/hl
8695e75389254fe881a6067ecebc70219d7dc7ff
[ "MIT" ]
null
null
null
#define DEFINE_GLOBALS #include"all_defines.hpp" #ifndef single_threaded bool single_threaded; #endif class Symbol; Symbol* symbol_sym; Symbol* symbol_int; Symbol* symbol_char; Symbol* symbol_cons; Symbol* symbol_pid; Symbol* symbol_fn; Symbol* symbol_string; Symbol* symbol_string_builder; Symbol* symbol_string_poi...
27.90411
63
0.738832
AmkG
e2b0576a1f072f88e1f99fe2fe8748eee383a163
4,279
cc
C++
src/test/flash/html/test_tokenizer.cc
negibokken/toyscopy
f82d7b3e16d2088e74f036aedc7602a84af781e2
[ "MIT" ]
9
2019-12-31T10:33:14.000Z
2021-11-21T00:35:19.000Z
src/test/flash/html/test_tokenizer.cc
negibokken/toyscopy
f82d7b3e16d2088e74f036aedc7602a84af781e2
[ "MIT" ]
18
2019-11-01T16:08:08.000Z
2021-01-09T10:40:39.000Z
src/test/flash/html/test_tokenizer.cc
negibokken/toyscopy
f82d7b3e16d2088e74f036aedc7602a84af781e2
[ "MIT" ]
1
2022-03-16T06:22:41.000Z
2022-03-16T06:22:41.000Z
#include "../../../flash/html/tokenizer.h" #include "gtest/gtest.h" TEST(TokenizerTest, Simple) { Tokenizer::Tokenizer *t = new Tokenizer::Tokenizer("<html>hello</html>"); int tokenNum = 0; while (t->pumpToken()) { if (t->canTakeNextToken()) { t->consumeToken(); tokenNum++; } } // Start ...
26.57764
80
0.617434
negibokken
e2b28776aa129b6f5f077560b43e0a1ef3c23918
6,575
cpp
C++
halfway/list.cpp
s3666874/cpt323_a2
6bf0acab5f5937a986c7a4248d8a1801858f8dc0
[ "MIT" ]
null
null
null
halfway/list.cpp
s3666874/cpt323_a2
6bf0acab5f5937a986c7a4248d8a1801858f8dc0
[ "MIT" ]
null
null
null
halfway/list.cpp
s3666874/cpt323_a2
6bf0acab5f5937a986c7a4248d8a1801858f8dc0
[ "MIT" ]
null
null
null
#include "list.h" void cpt323::list::node::set_next(std::unique_ptr<node>&& newnext) { next = std::move(newnext); } cpt323::list::list::iterator::iterator(cpt323::list::node* anode) : current(anode) { } cpt323::list::list::list(void) : head(nullptr), num_elts(0) { } void cpt323::list::list::add(const std::s...
26.405622
96
0.450494
s3666874
e2b7230c8c27b8028854be09c7ed0a0d2de29fef
5,848
cpp
C++
Source/ModuleProgram.cpp
solidajenjo/Engine
409516f15e0f083e79b749b9c9184f2f04184325
[ "MIT" ]
10
2019-02-25T11:36:23.000Z
2021-11-03T22:51:30.000Z
Source/ModuleProgram.cpp
solidajenjo/Engine
409516f15e0f083e79b749b9c9184f2f04184325
[ "MIT" ]
146
2019-02-05T13:57:33.000Z
2019-11-07T16:21:31.000Z
Source/ModuleProgram.cpp
FractalPuppy/Engine
409516f15e0f083e79b749b9c9184f2f04184325
[ "MIT" ]
3
2019-11-17T20:49:12.000Z
2020-04-19T17:28:28.000Z
#include "Application.h" #include "ModuleProgram.h" #include "ModuleFileSystem.h" #include "ModuleResourceManager.h" #include "GL/glew.h" #include <assert.h> Shader::~Shader() { for (auto program : id) { glDeleteProgram(program.second); } } ModuleProgram::ModuleProgram() { } ModuleProgram::~ModuleProgram() ...
24.26556
100
0.714603
solidajenjo
e2baf43d1512bf8b92c90ba1ab0008ffa968833b
62,292
cpp
C++
src/ChunChunSearcher/mainwindow.cpp
RobbEr929/ChunChunSearcher
1511992282dd87b9eec605606207360e6b50e7f8
[ "MIT" ]
2
2022-02-25T06:28:09.000Z
2022-03-28T09:50:25.000Z
src/ChunChunSearcher/mainwindow.cpp
RobbEr929/ChunChunSearcher
1511992282dd87b9eec605606207360e6b50e7f8
[ "MIT" ]
null
null
null
src/ChunChunSearcher/mainwindow.cpp
RobbEr929/ChunChunSearcher
1511992282dd87b9eec605606207360e6b50e7f8
[ "MIT" ]
null
null
null
#include "mainwindow.h" #include "ui_mainwindow.h" #include <QTimer> #include <QFileInfo> #include <QDesktopServices> #include <QClipboard> #include <QDir> #include <QHeaderView> #include <QFileDialog> #include <QMessageBox> using namespace ccs; MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent) , ui(new...
30.975634
199
0.703252
RobbEr929
e2c2a65a9d61d6c786f887bbeafa449536904918
252
cpp
C++
solutions/Easy/70. Climbing Stairs/solution.cpp
BASARANOMO/leetcode-cpp
f779ec46e672f01cec69077e854d6ba15e451d27
[ "MIT" ]
null
null
null
solutions/Easy/70. Climbing Stairs/solution.cpp
BASARANOMO/leetcode-cpp
f779ec46e672f01cec69077e854d6ba15e451d27
[ "MIT" ]
null
null
null
solutions/Easy/70. Climbing Stairs/solution.cpp
BASARANOMO/leetcode-cpp
f779ec46e672f01cec69077e854d6ba15e451d27
[ "MIT" ]
null
null
null
class Solution { public: int climbStairs(int n) { int val1 = 1, val2 = 1, temp; for (int i = 1; i < n; i++) { temp = val1 + val2; val1 = val2; val2 = temp; } return val2; } };
19.384615
37
0.40873
BASARANOMO
e2cc1aac2ffe34fc42cf6eb140b8b1332f3b48c1
1,290
cpp
C++
DryadVertex/VertexHost/system/classlib/src/DrExecution.cpp
TheWhiteEagle/Dryad
ad28579dd8303925befc6502633949850b7ca550
[ "Apache-2.0" ]
242
2015-01-04T08:08:04.000Z
2022-03-31T02:00:14.000Z
DryadVertex/VertexHost/system/classlib/src/DrExecution.cpp
TheWhiteEagle/Dryad
ad28579dd8303925befc6502633949850b7ca550
[ "Apache-2.0" ]
2
2015-04-30T07:44:42.000Z
2015-05-19T06:24:31.000Z
DryadVertex/VertexHost/system/classlib/src/DrExecution.cpp
TheWhiteEagle/Dryad
ad28579dd8303925befc6502633949850b7ca550
[ "Apache-2.0" ]
50
2015-01-13T20:39:53.000Z
2022-01-09T20:42:34.000Z
/* Copyright (c) Microsoft Corporation All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED *AS IS* BASIS, W...
25.294118
100
0.73876
TheWhiteEagle
e2d57c133d36e6c3298c2eb23e95e0f6de87c72f
3,941
cpp
C++
src/GL/Player.cpp
dritory/Cog6
a73afc1edbb5e9c0b9f8d97490f65e48aa167a79
[ "MIT" ]
null
null
null
src/GL/Player.cpp
dritory/Cog6
a73afc1edbb5e9c0b9f8d97490f65e48aa167a79
[ "MIT" ]
null
null
null
src/GL/Player.cpp
dritory/Cog6
a73afc1edbb5e9c0b9f8d97490f65e48aa167a79
[ "MIT" ]
null
null
null
#include "Player.h" #include "..\PlayState.h" #include "..\TileSystem\Tower.h" #include "..\TileSystem\TileEntity.h" #include "..\TileSystem\Base.h" #include "..\TileSystem\Generator.h" #include "..\EntitySystem\Entities\EntityMob.h" Player::Player() { } Player::~Player() { } bool Player::build(int x, int y, in...
20.210256
162
0.645775
dritory
e2d5a5f946b571cdabe2fe7bf48e361e832d18a4
473
hpp
C++
src/include/cell_move_router/Solver.hpp
jackys940194/2021ICCAD_ProblemB
880ef842d7c78350c5c59cd76a3c919d13a31081
[ "Apache-2.0" ]
9
2021-12-09T13:59:05.000Z
2022-01-17T08:44:39.000Z
src/include/cell_move_router/Solver.hpp
jackys940194/2021ICCAD_ProblemB
880ef842d7c78350c5c59cd76a3c919d13a31081
[ "Apache-2.0" ]
null
null
null
src/include/cell_move_router/Solver.hpp
jackys940194/2021ICCAD_ProblemB
880ef842d7c78350c5c59cd76a3c919d13a31081
[ "Apache-2.0" ]
6
2021-11-21T12:46:51.000Z
2022-01-15T18:02:45.000Z
#pragma once #include "cell_move_router/Grid/GridManager.hpp" #include "cell_move_router/Input/Processed/Input.hpp" namespace cell_move_router { class Solver { const Input::Processed::Input *InputPtr; Grid::GridManager GridManager; public: Solver(const Input::Processed::Input *InputPtr) : InputPtr(InputPt...
29.5625
73
0.758985
jackys940194
e2d9cc3e80190706388a76f3268d739f2c10bf51
130
hpp
C++
include/NasNas/Tween.hpp
Madour/NasNas
c6072d3d34116eca4ebff41899e14141d3009c03
[ "Zlib" ]
148
2020-04-08T13:45:34.000Z
2022-01-29T13:52:10.000Z
include/NasNas/Tween.hpp
Madour/NasNas
c6072d3d34116eca4ebff41899e14141d3009c03
[ "Zlib" ]
5
2020-09-15T12:34:31.000Z
2022-02-14T20:59:12.000Z
include/NasNas/Tween.hpp
Madour/NasNas
c6072d3d34116eca4ebff41899e14141d3009c03
[ "Zlib" ]
3
2020-10-03T22:35:20.000Z
2020-10-05T04:55:45.000Z
// Created by Modar Nasser on 17/07/2021. #pragma once #include "NasNas/tween/Tween.hpp" #include "NasNas/tween/MultiTween.hpp"
18.571429
41
0.746154
Madour
e2db6afa9246f2637012083d9602b80f0e31e924
5,190
hpp
C++
test/diagnostic.hpp
MrTAB/aabGameEngine
dc51c6e443bf087ca10e14e6884e4dfa6caef4a8
[ "MIT" ]
null
null
null
test/diagnostic.hpp
MrTAB/aabGameEngine
dc51c6e443bf087ca10e14e6884e4dfa6caef4a8
[ "MIT" ]
null
null
null
test/diagnostic.hpp
MrTAB/aabGameEngine
dc51c6e443bf087ca10e14e6884e4dfa6caef4a8
[ "MIT" ]
null
null
null
/** * * diagnostic.hpp * * Used for diagnostic printouts that can be omitted entirely from release via * Changing the template to the empty version. **/ #if !defined(AAB_TEST_DIAGNOSTIC_CLASS) #define AAB_TEST_DIAGNOSTIC_CLASS #include<boost/algorithm/string/replace.hpp> #include<string> #include<ios...
16.269592
80
0.574759
MrTAB
e2df9278fc8df656862663c67ae3fbc3c6bb4b55
1,111
cpp
C++
extractor/src/TEXImage.cpp
Dingf/GDCommunityLauncher
43ca2d6fa8024dffad1e0919c609b0d48a3427b7
[ "MIT" ]
null
null
null
extractor/src/TEXImage.cpp
Dingf/GDCommunityLauncher
43ca2d6fa8024dffad1e0919c609b0d48a3427b7
[ "MIT" ]
null
null
null
extractor/src/TEXImage.cpp
Dingf/GDCommunityLauncher
43ca2d6fa8024dffad1e0919c609b0d48a3427b7
[ "MIT" ]
null
null
null
#include "TEXImage.h" #include "Log.h" bool TEXImage::Load(const std::filesystem::path& path) { memset(&_TEXHeader, 0, sizeof(TEXHeader)); FileReader reader(path); if (!reader.HasData()) throw std::runtime_error(Logger::LogMessage(LOG_LEVEL_ERROR, "Failed to open file: \"%\"", path.string().c_str(...
30.027027
123
0.649865
Dingf
e2e7754f721cbfc88cad6ce9f7f204fda121e113
11,394
cpp
C++
Engine/HeightfieldGeom/HeightfieldGeomMaterial.cpp
OGRECave/scape
9c95ec7b6d8372a7a2a4eb6b96dcb5f2219e2bf2
[ "BSD-2-Clause" ]
48
2018-06-18T01:38:41.000Z
2022-03-25T10:29:27.000Z
Engine/HeightfieldGeom/HeightfieldGeomMaterial.cpp
OGRECave/scape
9c95ec7b6d8372a7a2a4eb6b96dcb5f2219e2bf2
[ "BSD-2-Clause" ]
32
2018-07-23T14:17:23.000Z
2020-11-02T23:28:48.000Z
Engine/HeightfieldGeom/HeightfieldGeomMaterial.cpp
OGRECave/scape
9c95ec7b6d8372a7a2a4eb6b96dcb5f2219e2bf2
[ "BSD-2-Clause" ]
7
2018-07-23T09:34:06.000Z
2022-02-15T09:54:16.000Z
/** * Giliam de Carpentier, Copyright (c) 2007. * Licensed under the Simplified BSD license. * See Docs/ScapeLicense.txt for details. */ #include "ScapeEngineStableHeaders.h" #include "HeightfieldGeomMaterial.h" #include "HeightfieldGeom.h" #include "HeightfieldGeomTile.h" #include "HeightfieldBuffer/HeightfieldBu...
48.075949
108
0.620765
OGRECave
e2eaf5dfc42006695145ca2571f35f3fe101acef
331
cxx
C++
src/copy_image.cxx
snfactory/preprocess
9be356dcf64e411d74a080629ffa2ca67974d530
[ "MIT" ]
null
null
null
src/copy_image.cxx
snfactory/preprocess
9be356dcf64e411d74a080629ffa2ca67974d530
[ "MIT" ]
null
null
null
src/copy_image.cxx
snfactory/preprocess
9be356dcf64e411d74a080629ffa2ca67974d530
[ "MIT" ]
null
null
null
#include "image.hxx" int main(int argc, char **argv) { char **argval, **arglabel; set_arglist("-in none -out none"); init_session(argv,argc,&arglabel,&argval); ImageSimple *in = new ImageSimple(argval[0]); ImageSimple *out = new ImageSimple(*in,argval[1],0,1); delete in; delete out; exit_sessio...
16.55
56
0.652568
snfactory
e2ee7f467d792b0998c3c349fcbc70a6233282c9
2,263
cpp
C++
UE4_TechDemos/ZombieShootout/Pickupable.cpp
ericzhou9/PortfolioSnippets
5fcc27210a562ca17c603d80de97e4efd63ed89e
[ "MIT" ]
133
2016-02-05T17:52:04.000Z
2022-01-19T11:29:22.000Z
UE4_TechDemos/ZombieShootout/Pickupable.cpp
ericzhou9/PortfolioSnippets
5fcc27210a562ca17c603d80de97e4efd63ed89e
[ "MIT" ]
null
null
null
UE4_TechDemos/ZombieShootout/Pickupable.cpp
ericzhou9/PortfolioSnippets
5fcc27210a562ca17c603d80de97e4efd63ed89e
[ "MIT" ]
103
2016-02-05T00:48:37.000Z
2022-03-11T08:24:00.000Z
// Fill out your copyright notice in the Description page of Project Settings. #include "RoguelikeSurvival.h" #include "Pickupable.h" // Sets default values APickupable::APickupable() { // Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it. PrimaryActorTi...
29.012821
115
0.780822
ericzhou9
e2f9fecb8beb607f97ffe211e8f6bafe8f73c5bd
4,102
cpp
C++
Source/RopeHabsch/RopeHabschAttachPoint.cpp
GentoGaming/HazelightTEST
159229ba1187bb50bd271f6809337a4efaf06c79
[ "Apache-2.0" ]
null
null
null
Source/RopeHabsch/RopeHabschAttachPoint.cpp
GentoGaming/HazelightTEST
159229ba1187bb50bd271f6809337a4efaf06c79
[ "Apache-2.0" ]
null
null
null
Source/RopeHabsch/RopeHabschAttachPoint.cpp
GentoGaming/HazelightTEST
159229ba1187bb50bd271f6809337a4efaf06c79
[ "Apache-2.0" ]
null
null
null
#include "RopeHabschAttachPoint.h" #include "RopeHabschCharacter.h" #include "Components/ArrowComponent.h" #include "Components/CapsuleComponent.h" #include "Kismet/GameplayStatics.h" #include "Kismet/KismetMathLibrary.h" #include "RopeMechanics/RopeHabschRopeComponent.h" ARopeHabschAttachPoint::ARopeHabschAttachPoin...
25.962025
150
0.773038
GentoGaming
c3adcffd88b15aaded632537e74051b50271ac3c
988
hpp
C++
tloam/include/tloam/publisher/key_frames_publisher.hpp
cuge1995/SC-TLOAM
facb7335f3a8ddfdeed3f87ac7a04362032e5a5b
[ "MIT" ]
3
2021-09-14T05:56:47.000Z
2021-09-17T06:34:23.000Z
tloam/include/tloam/publisher/key_frames_publisher.hpp
cuge1995/SC-TLOAM
facb7335f3a8ddfdeed3f87ac7a04362032e5a5b
[ "MIT" ]
null
null
null
tloam/include/tloam/publisher/key_frames_publisher.hpp
cuge1995/SC-TLOAM
facb7335f3a8ddfdeed3f87ac7a04362032e5a5b
[ "MIT" ]
null
null
null
/** * @Copyright 2020, Wuhan University of Technology * @Author: Pengwei Zhou * @Date: 2020/12/28 上午11:03 * @FileName: key_frames_publisher.hpp * @Description: publish key frames * @License: See LICENSE for the license information */ #ifndef TLOAM_KEY_FRAMES_PUBLISHER_HPP #define TLOAM_KEY_FRAMES_PUBLISHER_HPP ...
21.955556
55
0.706478
cuge1995
c3b518ef061e6cd3171d5580631fcbf302eb17b6
2,745
hpp
C++
include/rrl/oa_event_receiver.hpp
umbreensabirmain/readex-rrl
0cb73b3a3c6948a8dbdce96c240b24d8e992c2fe
[ "BSD-3-Clause" ]
1
2019-10-09T09:15:47.000Z
2019-10-09T09:15:47.000Z
include/rrl/oa_event_receiver.hpp
readex-eu/readex-rrl
ac8722c44f84d65668e2a60e4237ebf51b298c9b
[ "BSD-3-Clause" ]
null
null
null
include/rrl/oa_event_receiver.hpp
readex-eu/readex-rrl
ac8722c44f84d65668e2a60e4237ebf51b298c9b
[ "BSD-3-Clause" ]
1
2018-07-13T11:31:05.000Z
2018-07-13T11:31:05.000Z
/* * Copyright (c) 2015-2016, Technische Universität Dresden, Germany * 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 n...
40.367647
109
0.763934
umbreensabirmain
c3b7622292aa399fe4b5f85068b5daf4e9a70098
8,187
cpp
C++
FaceLibrary/src/main/cpp/UltraFace.cpp
zhu260824/face_mnn
2d734f41e50efc04bbd8c9198b57392f4db66f96
[ "Apache-2.0" ]
18
2020-06-18T09:37:03.000Z
2021-04-25T08:12:23.000Z
FaceLibrary/src/main/cpp/UltraFace.cpp
haozi5205/face_mnn
2d734f41e50efc04bbd8c9198b57392f4db66f96
[ "Apache-2.0" ]
6
2020-06-22T06:59:20.000Z
2021-04-15T14:13:29.000Z
FaceLibrary/src/main/cpp/UltraFace.cpp
haozi5205/face_mnn
2d734f41e50efc04bbd8c9198b57392f4db66f96
[ "Apache-2.0" ]
5
2020-06-22T06:06:56.000Z
2021-05-13T14:29:36.000Z
#define clip(x, y) (x < 0 ? 0 : (x > y ? y : x)) #include "UltraFace.hpp" UltraFace::UltraFace() { } UltraFace::~UltraFace() { ultraface_interpreter->releaseModel(); ultraface_interpreter->releaseSession(ultraface_session); } bool UltraFace::init(const std::string &mnn_path, int resizeWidth, int resizeHeig...
42.863874
100
0.546354
zhu260824
c3c1cce33f217b3b09baef34e39013ea66228689
681
hpp
C++
sprout/string/stretch.hpp
osyo-manga/Sprout
8885b115f739ef255530f772067475d3bc0dcef7
[ "BSL-1.0" ]
1
2020-02-04T05:16:01.000Z
2020-02-04T05:16:01.000Z
sprout/string/stretch.hpp
osyo-manga/Sprout
8885b115f739ef255530f772067475d3bc0dcef7
[ "BSL-1.0" ]
null
null
null
sprout/string/stretch.hpp
osyo-manga/Sprout
8885b115f739ef255530f772067475d3bc0dcef7
[ "BSL-1.0" ]
null
null
null
#ifndef SPROUT_STRING_STRETCH_HPP #define SPROUT_STRING_STRETCH_HPP #include <cstddef> #include <sprout/config.hpp> #include <sprout/string/string.hpp> namespace sprout { // // stretch // template<std::size_t To, typename T, std::size_t N, typename Traits> inline SPROUT_CONSTEXPR sprout::basic_string...
26.192308
70
0.709251
osyo-manga
c3c246217849b4511594e9e90ac9490a25f3a57d
885
cpp
C++
solutions/786.k-th-smallest-prime-fraction.314170350.ac.cpp
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
78
2020-10-22T11:31:53.000Z
2022-02-22T13:27:49.000Z
solutions/786.k-th-smallest-prime-fraction.314170350.ac.cpp
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
null
null
null
solutions/786.k-th-smallest-prime-fraction.314170350.ac.cpp
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
26
2020-10-23T15:10:44.000Z
2021-11-07T16:13:50.000Z
class Solution { public: vector<int> kthSmallestPrimeFraction(vector<int> &nums, int k) { int n = nums.size(); double l = 1.0 * nums[0] / nums[n - 1]; double r = 1; double ep = 1e-5; while (l < r) { double m = (l + r) / 2; int count = 0; int j = 0; double f = 0; ...
19.23913
66
0.380791
satu0king
c3c4dbe570b9cf0a7715e9fec83ac957cb098a99
1,024
hpp
C++
include/cvMatContainer.hpp
zzx9636/BosonUSB_Stereo
270ee5c4ce161c83481fa3b318bfaf6aaa6207b9
[ "MIT" ]
null
null
null
include/cvMatContainer.hpp
zzx9636/BosonUSB_Stereo
270ee5c4ce161c83481fa3b318bfaf6aaa6207b9
[ "MIT" ]
null
null
null
include/cvMatContainer.hpp
zzx9636/BosonUSB_Stereo
270ee5c4ce161c83481fa3b318bfaf6aaa6207b9
[ "MIT" ]
null
null
null
#ifndef MAT_CONTAIN #define MAT_CONTAIN #include <iostream> #include <string> #include <thread> #include <vector> #include <stdio.h> #include <opencv2/opencv.hpp> #include <time.h> using namespace std; class cvMatContainer { public: //constructor cvMatContainer(cv::Mat & input, int index, int tim...
20.897959
131
0.634766
zzx9636
c3c61fc0d91351122a2a118e9059e4ac7aec95e6
6,900
cc
C++
src/semafour.cc
cjihrig/semafour
72c97f8acf820d6b28e9ae0291d33112c6624655
[ "MIT" ]
2
2017-03-12T13:10:05.000Z
2017-03-22T12:16:07.000Z
src/semafour.cc
cjihrig/semafour
72c97f8acf820d6b28e9ae0291d33112c6624655
[ "MIT" ]
4
2018-12-10T13:35:14.000Z
2019-01-02T14:30:27.000Z
src/semafour.cc
continuationlabs/semafour
72c97f8acf820d6b28e9ae0291d33112c6624655
[ "MIT" ]
2
2018-12-06T15:57:59.000Z
2018-12-28T08:16:33.000Z
#include "semafour.h" using v8::Boolean; using v8::Context; using v8::Exception; using v8::False; using v8::Function; using v8::FunctionCallbackInfo; using v8::FunctionTemplate; using v8::Isolate; using v8::Local; using v8::Number; using v8::Object; using v8::Persistent; using v8::String; using v8::True; using v8::Uin...
22.115385
79
0.61087
cjihrig
c3d8e970660e113507bde5c27e73512243ed10ce
602
cpp
C++
Thief/AvoidForce.cpp
T-Scod/AI_ThiefSim
ffc1f13ae2d71578e3bde9d3edf0f188fadfdf97
[ "MIT" ]
null
null
null
Thief/AvoidForce.cpp
T-Scod/AI_ThiefSim
ffc1f13ae2d71578e3bde9d3edf0f188fadfdf97
[ "MIT" ]
null
null
null
Thief/AvoidForce.cpp
T-Scod/AI_ThiefSim
ffc1f13ae2d71578e3bde9d3edf0f188fadfdf97
[ "MIT" ]
null
null
null
#include "AvoidForce.h" #include "GameObject.h" AvoidForce::AvoidForce() { m_obstacle = nullptr; } // sets the obstacle void AvoidForce::setObstacle(Circle* circle) { m_obstacle = circle; } // calculates the force that will move the object away from the obstacle Vector2 AvoidForce::getForce(GameObje...
25.083333
79
0.719269
T-Scod
c3ddafc8eab0f5240d92e60aadba9a8bebd403f7
4,421
cpp
C++
str_bench.cpp
josefschmeisser/ARTSynchronized
dfb42237b0565ca202f353e04e07edf10ea98b05
[ "Apache-2.0" ]
null
null
null
str_bench.cpp
josefschmeisser/ARTSynchronized
dfb42237b0565ca202f353e04e07edf10ea98b05
[ "Apache-2.0" ]
null
null
null
str_bench.cpp
josefschmeisser/ARTSynchronized
dfb42237b0565ca202f353e04e07edf10ea98b05
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <chrono> #include "tbb/tbb.h" using namespace std; #include "OptimisticLockCoupling/Tree.h" #include "ROWEX/Tree.h" #include "ART/Tree.h" #include "third_party/profile.hpp" #include "zipf.hpp" /* void loadKey(TID tid, Key &key) { // Store the key of the tuple into the key vector ...
29.085526
118
0.510066
josefschmeisser
c3dedfbdc9564e4f2ffa55f0d317b590fb4f1110
818
cpp
C++
Few Course Reader Exercises/Cap8-Exercises/Ex14/cap8_ex14.cpp
diogoamvasconcelos/CS106b-eroberts2015-solutions
8964130bb872990b809e74ed489237e0c1c96604
[ "MIT" ]
4
2017-06-26T09:44:28.000Z
2020-01-19T05:42:41.000Z
Few Course Reader Exercises/Cap8-Exercises/Ex14/cap8_ex14.cpp
diogoamvasconcelos/CS106b-eroberts2015-solutions
8964130bb872990b809e74ed489237e0c1c96604
[ "MIT" ]
null
null
null
Few Course Reader Exercises/Cap8-Exercises/Ex14/cap8_ex14.cpp
diogoamvasconcelos/CS106b-eroberts2015-solutions
8964130bb872990b809e74ed489237e0c1c96604
[ "MIT" ]
1
2020-10-08T08:26:07.000Z
2020-10-08T08:26:07.000Z
#include <iostream> #include "console.h" #include "simpio.h" #include "gwindow.h" #include "random.h" using namespace std; void DrawInch(GWindow& gw, double inch_tick, double seg_start, double seg_end); const double HALF_INCH_TICK = 0.2; const int NUMBER_OF_SEGMENTS = 8; int main() { GWindow gw; gw.drawLin...
22.108108
79
0.695599
diogoamvasconcelos
c3e099d553685c8a3ef1592f297598b49eb2ea70
686
cpp
C++
src/ui/cell.cpp
k0dokushi/Conway-s-Game-of-Life
88fc112d24f08fdb571783528abc87a8aa4243a3
[ "MIT" ]
null
null
null
src/ui/cell.cpp
k0dokushi/Conway-s-Game-of-Life
88fc112d24f08fdb571783528abc87a8aa4243a3
[ "MIT" ]
null
null
null
src/ui/cell.cpp
k0dokushi/Conway-s-Game-of-Life
88fc112d24f08fdb571783528abc87a8aa4243a3
[ "MIT" ]
null
null
null
#include "cell.hpp" ui::cell::cell(const float cell_size) :cell_shape_(sf::RectangleShape(sf::Vector2f(cell_size, cell_size))) { cell_shape_.setFillColor(sf::Color::Transparent); } void ui::cell::set_status(const bool status) { status ? cell_shape_.setFillColor(ALIVE_CELL_COLOR) : cell_shape_.setFillColor(DEAD_CELL...
29.826087
106
0.77551
k0dokushi
c3e4bc048e409a33603dd75080b39df20ddc7ed3
4,582
cpp
C++
src/day12.cpp
okkirikomi/advent-2021
3f782d4699573cd9a5a04ffd91b0c3b9521b632f
[ "MIT" ]
null
null
null
src/day12.cpp
okkirikomi/advent-2021
3f782d4699573cd9a5a04ffd91b0c3b9521b632f
[ "MIT" ]
null
null
null
src/day12.cpp
okkirikomi/advent-2021
3f782d4699573cd9a5a04ffd91b0c3b9521b632f
[ "MIT" ]
null
null
null
#include <stdio.h> #include "file.h" #include "strtoint.h" #include "timer.h" static const uint8_t INPUT_MAX = 16; static const uint8_t CONNECTIONS_MAX = 16; // BETTER, check if using the smallest possible array // and having a function to map to an index is faster. // Currently, most of the array is unused, cache i...
26.333333
79
0.608904
okkirikomi
c3e60e027bf3cbfdee7c7ada25c6c2326b29f1f1
3,801
cpp
C++
src/pronet/pro_net/pro_notify_pipe.cpp
libpronet/libpronet
78f52fbe002767915553bdf58fb10453e63bf502
[ "Apache-2.0" ]
35
2018-10-29T06:31:09.000Z
2022-03-21T08:13:39.000Z
src/pronet/pro_net/pro_notify_pipe.cpp
libpronet/libpronet
78f52fbe002767915553bdf58fb10453e63bf502
[ "Apache-2.0" ]
null
null
null
src/pronet/pro_net/pro_notify_pipe.cpp
libpronet/libpronet
78f52fbe002767915553bdf58fb10453e63bf502
[ "Apache-2.0" ]
11
2018-11-03T04:45:29.000Z
2021-11-23T06:09:20.000Z
/* * Copyright (C) 2018-2019 Eric Tung <libpronet@gmail.com> * * 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 app...
22.358824
77
0.599579
libpronet
c3ea425ce060bc435ada053d26fdef31bfef11b3
1,252
cpp
C++
networking/EthernetIIHeader_test/EthernetIIHeader_test.cpp
leighgarbs/toolbox
fd9ceada534916fa8987cfcb5220cece2188b304
[ "MIT" ]
null
null
null
networking/EthernetIIHeader_test/EthernetIIHeader_test.cpp
leighgarbs/toolbox
fd9ceada534916fa8987cfcb5220cece2188b304
[ "MIT" ]
null
null
null
networking/EthernetIIHeader_test/EthernetIIHeader_test.cpp
leighgarbs/toolbox
fd9ceada534916fa8987cfcb5220cece2188b304
[ "MIT" ]
null
null
null
#include "EthernetIIHeader_test.hpp" #include "EthernetIIHeader.hpp" #include "TestMacros.hpp" #include "misc.hpp" TEST_PROGRAM_MAIN(EthernetIIHeader_test); //============================================================================== void EthernetIIHeader_test::addTestCases() { ADD_TEST_CASE(Length); AD...
30.536585
80
0.61262
leighgarbs
c3f41970d643df5220f41f2acbb03a7ee97b6c0d
402
cpp
C++
Codeforces/CF_1104/B.cpp
codemute/cp-sol
e6ea2533adf9f590f5e9d6a6b50031db9d3dca4a
[ "MIT" ]
1
2019-10-06T14:39:34.000Z
2019-10-06T14:39:34.000Z
Codeforces/CF_1104/B.cpp
codemute/cp-sol
e6ea2533adf9f590f5e9d6a6b50031db9d3dca4a
[ "MIT" ]
1
2019-07-12T08:08:50.000Z
2019-10-04T07:56:33.000Z
Codeforces/CF_1104/B.cpp
codemute/cp-sol
e6ea2533adf9f590f5e9d6a6b50031db9d3dca4a
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int n = s.length(); stack<char> st; int cnt = 0; for(int i = 0; i < n; i++) { if(!st.size()) st.push(s[i]); else { if(st.top() == s[i]) { st.pop(); cnt++; } else { st.push(s[i]); } ...
17.478261
34
0.430348
codemute
c3f85347d4e92a48716862718d473b32503adb7c
1,581
cpp
C++
Graphs/Return_all_connected_components.cpp
AkhilSoni0102/Learning-Data-Structures
27f2d4d0b09f2bf47242242d3a6b0e65c149bbf6
[ "MIT" ]
2
2021-04-03T11:50:42.000Z
2021-05-06T16:45:06.000Z
Graphs/Return_all_connected_components.cpp
AkhilSoni0102/Learning-Data-Structures
27f2d4d0b09f2bf47242242d3a6b0e65c149bbf6
[ "MIT" ]
null
null
null
Graphs/Return_all_connected_components.cpp
AkhilSoni0102/Learning-Data-Structures
27f2d4d0b09f2bf47242242d3a6b0e65c149bbf6
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; vector<int>* BFS_return(int** edges, int n, int s, bool* visited){ visited[s] = true; queue<int> pendingNodes; pendingNodes.push(s); vector<int>* v = new vector<int>(); while(!pendingNodes.empty()){ int front = pendingNodes.front(); pendi...
26.35
74
0.472486
AkhilSoni0102
c3fb50e4a3b8a2f5e85906356724d233042fa3d7
259
cpp
C++
cpp/cpp_primer/chapter16/ex_16_05.cpp
KaiserLancelot/Cpp-Primer
a4791a6765f0b6c864e8881e6a5328e2a3d68974
[ "MIT" ]
2
2019-12-21T00:53:47.000Z
2020-01-01T10:36:30.000Z
cpp/cpp_primer/chapter16/ex_16_05.cpp
KaiserLancelot/Cpp-Primer
a4791a6765f0b6c864e8881e6a5328e2a3d68974
[ "MIT" ]
null
null
null
cpp/cpp_primer/chapter16/ex_16_05.cpp
KaiserLancelot/Cpp-Primer
a4791a6765f0b6c864e8881e6a5328e2a3d68974
[ "MIT" ]
null
null
null
// // Created by kaiser on 18-12-27. // #include <iostream> #include <string> template <typename T> void Print(const T& arr) { for (const auto& ele : arr) { std::cout << ele << '\n'; } } int main() { std::string s[]{"a", "b", "c"}; Print(s); }
13.631579
33
0.544402
KaiserLancelot
c3fbd681990b87992dbc8142fe5b2f9b6a98f454
1,002
cpp
C++
p230/p230.cpp
suzyz/leetcode_practice
e22dc5a81e065dc962e5561b14ac84b9a2302e8a
[ "MIT" ]
1
2019-10-07T05:00:21.000Z
2019-10-07T05:00:21.000Z
p230/p230.cpp
suzyz/leetcode_practice
e22dc5a81e065dc962e5561b14ac84b9a2302e8a
[ "MIT" ]
null
null
null
p230/p230.cpp
suzyz/leetcode_practice
e22dc5a81e065dc962e5561b14ac84b9a2302e8a
[ "MIT" ]
null
null
null
// using an array to record the size of each subtree. Too slow. Not necessary. /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: int kthSmallest...
21.782609
78
0.55988
suzyz
c3ff6b76702309a974772e7948d9babbf42c9c92
10,495
cc
C++
src/config/JetStreamConfig.cc
homer6/jetstream
e38818de9d24598ac3b3ad7fc5529142db793aad
[ "MIT" ]
null
null
null
src/config/JetStreamConfig.cc
homer6/jetstream
e38818de9d24598ac3b3ad7fc5529142db793aad
[ "MIT" ]
null
null
null
src/config/JetStreamConfig.cc
homer6/jetstream
e38818de9d24598ac3b3ad7fc5529142db793aad
[ "MIT" ]
null
null
null
#include "config/JetStreamConfig.h" #include "JetStream.h" #include <iostream> #include <iomanip> using std::cout; using std::cerr; using std::endl; namespace jetstream{ namespace config { JetStreamConfig::JetStreamConfig( JetStream *jetstream ) :jetstream(jetstream) { this...
31.996951
132
0.547118
homer6
7f03bf8982f6653f2f5fdd8ba18c91999af98b38
19,638
hpp
C++
third_party/mcts/mcts.hpp
zyw199515/hive-cpp
b4b9f8d9446476f94ffb3ee0fbaec19f232c2879
[ "MIT" ]
null
null
null
third_party/mcts/mcts.hpp
zyw199515/hive-cpp
b4b9f8d9446476f94ffb3ee0fbaec19f232c2879
[ "MIT" ]
null
null
null
third_party/mcts/mcts.hpp
zyw199515/hive-cpp
b4b9f8d9446476f94ffb3ee0fbaec19f232c2879
[ "MIT" ]
null
null
null
// This file is imported from https://github.com/Konijnendijk/cpp-mcts #include <chrono> #include <cmath> #include <cstdlib> #include <iostream> #include <limits> #include <unordered_map> #include <vector> #ifndef CPP_MCTS_MCTS_HPP #define CPP_MCTS_MCTS_HPP using namespace std::chrono; /** * @brief Children of thi...
29.442279
109
0.629748
zyw199515
7f04570eeb0c6972f2583e159fa2cedec4d2b656
1,163
cpp
C++
src/MusicPlayer.cpp
pancakespeople/At-Odds
6d1e56c8b7889f069ca72911f5e77d7ad19e88e2
[ "MIT" ]
7
2021-04-30T06:36:47.000Z
2021-11-14T20:28:25.000Z
src/MusicPlayer.cpp
pancakespeople/At-Odds
6d1e56c8b7889f069ca72911f5e77d7ad19e88e2
[ "MIT" ]
null
null
null
src/MusicPlayer.cpp
pancakespeople/At-Odds
6d1e56c8b7889f069ca72911f5e77d7ad19e88e2
[ "MIT" ]
1
2022-02-18T04:43:20.000Z
2022-02-18T04:43:20.000Z
#include "gamepch.h" #include "MusicPlayer.h" #include "Random.h" #include <filesystem> MusicPlayer::MusicPlayer() { for (auto& file : std::filesystem::directory_iterator("data\\music")) { if (file.path().extension() == ".ogg") { m_musicFilePathsUnplayed.push_back(file.path().string()); } } } void MusicPlay...
29.075
95
0.709372
pancakespeople
7f0eadbe6df3e24313561d662f1363d3bf3af31b
1,244
cpp
C++
week4/Week4_Find_Kth_LargestElement(o(n)).cpp
narendrajethi220/DAA-Assignment
534056c6bbccf05cfdd64f041631468f867b1071
[ "MIT" ]
null
null
null
week4/Week4_Find_Kth_LargestElement(o(n)).cpp
narendrajethi220/DAA-Assignment
534056c6bbccf05cfdd64f041631468f867b1071
[ "MIT" ]
null
null
null
week4/Week4_Find_Kth_LargestElement(o(n)).cpp
narendrajethi220/DAA-Assignment
534056c6bbccf05cfdd64f041631468f867b1071
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; void swap(int * x,int * y) { int temp = *x; * x = * y; * y = temp; } int partition(int arr[],int beg,int end) { int pivot = arr[beg]; int i=beg; int j=end; while(i<j) { while(arr[i]<=pivot) { i++; } while(arr[j]>pivot) { j--; } if(i<j) swap(&ar...
15.746835
60
0.546624
narendrajethi220
7f17edf3d36faee15aae349ba082fb33936d88c0
468
cpp
C++
doxyfiles/examples/HC_12_example.cpp
sanderBoot0/IPASS
7ae07fc5c886bbefdd2664af2160fc620d456f45
[ "BSL-1.0" ]
null
null
null
doxyfiles/examples/HC_12_example.cpp
sanderBoot0/IPASS
7ae07fc5c886bbefdd2664af2160fc620d456f45
[ "BSL-1.0" ]
null
null
null
doxyfiles/examples/HC_12_example.cpp
sanderBoot0/IPASS
7ae07fc5c886bbefdd2664af2160fc620d456f45
[ "BSL-1.0" ]
null
null
null
int main() { auto tx = hwlib::target::pin_out( hwlib::target::pins::d2 ); auto rx = hwlib::target::pin_in( hwlib::target::pins::d3); HC_12_due module(tx, rx); //or HC_12_uno module(tx, rx); // send a char module.send('A'); module.flush(); // send a number module.send(3); m...
22.285714
64
0.58547
sanderBoot0
7f1dc04012a310bbb46fb344b0ea9312ce9a9c39
95
hpp
C++
Include/Offsets.hpp
0xvpr/CPP-Cheat-Template
26ad1665a903f67aced42df13f3b9c116fed26dc
[ "MIT" ]
1
2022-03-29T04:46:44.000Z
2022-03-29T04:46:44.000Z
Include/Offsets.hpp
0xvpr/Cpp-Cheat-Template
26ad1665a903f67aced42df13f3b9c116fed26dc
[ "MIT" ]
null
null
null
Include/Offsets.hpp
0xvpr/Cpp-Cheat-Template
26ad1665a903f67aced42df13f3b9c116fed26dc
[ "MIT" ]
null
null
null
#ifndef OFFSETS_HPP #define OFFSETS_HPP #include <cstddef> // offsets #endif // OFFSETS_HPP
10.555556
21
0.747368
0xvpr
7f1e12b259d3b3f66cb4a86edfaa0c66f87e11c3
259
cpp
C++
srcs/main.cpp
kyoungwhankim/prms
a7ff665ae8c26a451ab1bac24f4a5193fb674f5f
[ "MIT" ]
null
null
null
srcs/main.cpp
kyoungwhankim/prms
a7ff665ae8c26a451ab1bac24f4a5193fb674f5f
[ "MIT" ]
null
null
null
srcs/main.cpp
kyoungwhankim/prms
a7ff665ae8c26a451ab1bac24f4a5193fb674f5f
[ "MIT" ]
null
null
null
#define STB_IMAGE_IMPLEMENTATION #include "Application.h" int main(void) { Application* app = new Application; int appResult = app->AppRun(); delete app; app = nullptr; _CrtDumpMemoryLeaks(); return appResult; }
16.1875
40
0.625483
kyoungwhankim
7f1e4155026bc9b61874679525185b1c60277968
5,669
cpp
C++
source/app/xml_logs/src/EntryLog.cpp
matus-chochlik/eagine-core
5bc2d6b9b053deb3ce6f44f0956dfccd75db4649
[ "BSL-1.0" ]
1
2022-01-25T10:31:51.000Z
2022-01-25T10:31:51.000Z
source/app/xml_logs/src/EntryLog.cpp
matus-chochlik/eagine-core
5bc2d6b9b053deb3ce6f44f0956dfccd75db4649
[ "BSL-1.0" ]
null
null
null
source/app/xml_logs/src/EntryLog.cpp
matus-chochlik/eagine-core
5bc2d6b9b053deb3ce6f44f0956dfccd75db4649
[ "BSL-1.0" ]
null
null
null
/// /// Copyright Matus Chochlik. /// Distributed under the GNU GENERAL PUBLIC LICENSE version 3. /// See http://www.gnu.org/licenses/gpl-3.0.txt /// #include "EntryLog.hpp" #include "Backend.hpp" //------------------------------------------------------------------------------ EntryLog::EntryLog(Backend& backend) : ...
38.828767
80
0.497971
matus-chochlik
7f1e656722775efc637087033ae1fb8e36701a95
2,897
cpp
C++
core/Timestamp.cpp
taylorgigi/reactor
66181a2947d2d153593262e5fa0e42a26208bd5f
[ "Apache-2.0" ]
null
null
null
core/Timestamp.cpp
taylorgigi/reactor
66181a2947d2d153593262e5fa0e42a26208bd5f
[ "Apache-2.0" ]
null
null
null
core/Timestamp.cpp
taylorgigi/reactor
66181a2947d2d153593262e5fa0e42a26208bd5f
[ "Apache-2.0" ]
null
null
null
// // Created by suncx on 2020/8/8. // #include "Timestamp.h" Timestamp::Timestamp(int64_t msSinceEpoch) : microsecond_since_epoch(msSinceEpoch) {} string Timestamp::to_string() const { char buf[32]; memset(buf, 0, sizeof(buf)); int64_t sec = microsecond_since_epoch / microseconds_per_second; int64_...
30.494737
89
0.668623
taylorgigi
7f2499b9aea42658458e128971d7aba097e4278e
993
hpp
C++
RemoteHandsDll/PipeStream/Stream.hpp
AudriusButkevicius/RemoteHands
cd62ae1aaf221ad5587a89b27a5ccb448bac3724
[ "MIT" ]
1
2021-11-17T11:54:18.000Z
2021-11-17T11:54:18.000Z
RemoteHandsDll/PipeStream/Stream.hpp
AudriusButkevicius/RemoteHands
cd62ae1aaf221ad5587a89b27a5ccb448bac3724
[ "MIT" ]
null
null
null
RemoteHandsDll/PipeStream/Stream.hpp
AudriusButkevicius/RemoteHands
cd62ae1aaf221ad5587a89b27a5ccb448bac3724
[ "MIT" ]
null
null
null
#pragma once #include <cstdint> class Stream { public: virtual ~Stream() = default; //--------------------------------------------------------------------------- virtual int Read(uint8_t* buffer, int offset, int count) = 0; //--------------------------------------------------------------------------- ...
29.205882
81
0.332326
AudriusButkevicius
7f26d120a9d9904a623e0f192d04112f13ef95a3
8,918
cpp
C++
BananaScript/ScriptUtils.cpp
kusharami/bananaqt
79327ecddc769e4df0ebe8109c30c5ae74a31a12
[ "MIT" ]
null
null
null
BananaScript/ScriptUtils.cpp
kusharami/bananaqt
79327ecddc769e4df0ebe8109c30c5ae74a31a12
[ "MIT" ]
null
null
null
BananaScript/ScriptUtils.cpp
kusharami/bananaqt
79327ecddc769e4df0ebe8109c30c5ae74a31a12
[ "MIT" ]
null
null
null
/******************************************************************************* Banana Qt Libraries Copyright (c) 2017 Alexandra Cherdantseva 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 with...
24.037736
80
0.673469
kusharami
7f28f8659bc69c92fd265aa195cdf637e0e2d8a0
884
cpp
C++
leetcode/problems/easy/476-number-complement.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
18
2020-08-27T05:27:50.000Z
2022-03-08T02:56:48.000Z
leetcode/problems/easy/476-number-complement.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
null
null
null
leetcode/problems/easy/476-number-complement.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
1
2020-10-13T05:23:58.000Z
2020-10-13T05:23:58.000Z
/* */ class Solution { public: int findComplement(int num) { // input + output = 111..111 (all 1s) int k = 1; // 1 // 11 - (3) - 1*2+1 // -------------- // 111 - (7) - 3*2 +1 // 1111 - (15) - 7*2 +1 while(k<num) k = k*2+1; // 111 (7) ...
20.55814
119
0.384615
wingkwong
b524491542f2843bd0196ee4ec0267e83ee8ef74
1,485
cpp
C++
lib/Dialect/Calyx/Transforms/CalyxHelpers.cpp
ziha0wei/circt
90ae0886aa06020d9f370118bb69dc1d3afbddcb
[ "Apache-2.0" ]
null
null
null
lib/Dialect/Calyx/Transforms/CalyxHelpers.cpp
ziha0wei/circt
90ae0886aa06020d9f370118bb69dc1d3afbddcb
[ "Apache-2.0" ]
null
null
null
lib/Dialect/Calyx/Transforms/CalyxHelpers.cpp
ziha0wei/circt
90ae0886aa06020d9f370118bb69dc1d3afbddcb
[ "Apache-2.0" ]
null
null
null
//===- CalyxHelpers.cpp - Calyx helper methods -----------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------...
39.078947
80
0.574411
ziha0wei
b5289117d8129e9508e3d2190f8a9628f60f6929
590
hpp
C++
src/storage.hpp
thealexhoar/Apollo
60e92729375b6b18944274c62e0e3612b453e33f
[ "MIT" ]
3
2017-09-16T03:57:18.000Z
2018-05-29T22:38:23.000Z
src/storage.hpp
thealexhoar/Apollo
60e92729375b6b18944274c62e0e3612b453e33f
[ "MIT" ]
null
null
null
src/storage.hpp
thealexhoar/Apollo
60e92729375b6b18944274c62e0e3612b453e33f
[ "MIT" ]
null
null
null
// // Created by alex on 25/01/18. // #pragma once #include <memory> #include "entity.hpp" namespace apollo { class GenericStorage { public: virtual bool has_for(const Entity& entity) = 0; virtual bool remove_for(const Entity& entity) = 0; virtual void update() = 0; }; templ...
22.692308
70
0.623729
thealexhoar
b52992a3fdab9b28c2a77ae36018b386537ac5fb
1,786
cpp
C++
src/LabelWidget.cpp
jeanleflambeur/electronicload
15cc1b64710ced214928824e34729e83f260ed7f
[ "MIT" ]
4
2019-02-24T16:09:44.000Z
2019-05-03T08:50:17.000Z
src/LabelWidget.cpp
jeanleflambeur/electronicload
15cc1b64710ced214928824e34729e83f260ed7f
[ "MIT" ]
2
2019-05-17T07:42:16.000Z
2021-02-04T23:34:06.000Z
src/LabelWidget.cpp
jeanleflambeur/electronicload
15cc1b64710ced214928824e34729e83f260ed7f
[ "MIT" ]
2
2019-12-27T00:32:19.000Z
2019-12-28T15:10:11.000Z
#include "LabelWidget.h" LabelWidget::LabelWidget(JLMBackBuffer& gfx, const char* value) : WidgetBase(gfx) { m_value = value ? value : ""; } void LabelWidget::setFont(const GFXfont* font) { m_font = font; m_dirtyFlags |= DirtyFlagGeometry; } void LabelWidget::setTextColor(uint16_t color) { if (m_textColor != colo...
19
63
0.708847
jeanleflambeur
b53bec6b64bd640d6c94be3a3346553b9a2a50e6
575
cpp
C++
chapter03/3.1_Namespace_using_Declarations/3.1_Namespace_using_Declarations.cpp
NorthFacing/step-by-c
bc0e4f0c0fe45042ae367a28a87d03b5c3c787e3
[ "MIT" ]
9
2019-05-10T05:39:21.000Z
2022-02-22T08:04:52.000Z
chapter03/3.1_Namespace_using_Declarations/3.1_Namespace_using_Declarations.cpp
NorthFacing/step-by-c
bc0e4f0c0fe45042ae367a28a87d03b5c3c787e3
[ "MIT" ]
null
null
null
chapter03/3.1_Namespace_using_Declarations/3.1_Namespace_using_Declarations.cpp
NorthFacing/step-by-c
bc0e4f0c0fe45042ae367a28a87d03b5c3c787e3
[ "MIT" ]
6
2019-05-13T13:39:19.000Z
2022-02-22T08:05:01.000Z
/** * 3.1 命名空间的using声明 * @Author Bob * @Eamil 0haizhu0@gmail.com * @Date 2017/7/17 */ #include <iostream> using std::cin; // 命名空间::名称 using std::cout; using std::endl; // 可以一行中定义多个,但必须以引号分割(其实跟多行就一样了) int main() { /** * 格式:using namespace::name */ cout << "Enter two numbers: " << endl; // 直接使用cout 不再需...
19.166667
76
0.6
NorthFacing
b547d7408a0449cacc4b7c4a542ac8ccb93dfe25
1,756
cpp
C++
src/tests/test_utils.cpp
jjbandit/game
c28affd868201d3151ca75a20883e7fb26e09302
[ "WTFPL" ]
null
null
null
src/tests/test_utils.cpp
jjbandit/game
c28affd868201d3151ca75a20883e7fb26e09302
[ "WTFPL" ]
null
null
null
src/tests/test_utils.cpp
jjbandit/game
c28affd868201d3151ca75a20883e7fb26e09302
[ "WTFPL" ]
null
null
null
#include <cstdio> global_variable s32 TestsFailed = 0; global_variable u32 TestsPassed = 0; #define TEST_FIXTURES_PATH "src/tests/fixtures" #define TestThat(condition) \ if (!(condition)) { ...
42.829268
129
0.438497
jjbandit
b548dde7e69a6eefb21c5a8b4038dd06dfe2d562
2,554
cpp
C++
util/pos-info.cpp
lukas-ke/faint-graphics-editor
33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf
[ "Apache-2.0" ]
10
2016-12-28T22:06:31.000Z
2021-05-24T13:42:30.000Z
util/pos-info.cpp
lukas-ke/faint-graphics-editor
33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf
[ "Apache-2.0" ]
4
2015-10-09T23:55:10.000Z
2020-04-04T08:09:22.000Z
util/pos-info.cpp
lukas-ke/faint-graphics-editor
33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf
[ "Apache-2.0" ]
null
null
null
// -*- coding: us-ascii-unix -*- // Copyright 2014 Lukas Kemmer // // Licensed under the Apache License, Version 2.0 (the "License"); you // may not use this file except in compliance with the License. You // may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by a...
23.431193
70
0.742365
lukas-ke
b54bad0f24b899e24060d16ab7d1584515fb30cd
1,880
cpp
C++
OpenTESArena/src/Media/PortraitFile.cpp
pcercuei/OpenTESArena
38804e75bd4cd0d670539d78d26e8da44b46969f
[ "MIT" ]
1
2021-08-18T21:31:48.000Z
2021-08-18T21:31:48.000Z
OpenTESArena/src/Media/PortraitFile.cpp
pcercuei/OpenTESArena
38804e75bd4cd0d670539d78d26e8da44b46969f
[ "MIT" ]
null
null
null
OpenTESArena/src/Media/PortraitFile.cpp
pcercuei/OpenTESArena
38804e75bd4cd0d670539d78d26e8da44b46969f
[ "MIT" ]
null
null
null
#include <cassert> #include <map> #include "PortraitFile.h" #include "../Entities/CharacterGenderName.h" #include "../Entities/CharacterRaceName.h" #include "../Utilities/Debug.h" const std::map<CharacterGenderName, std::string> PortraitFileGenderNames = { { CharacterGenderName::Female, "female" }, { CharacterGend...
30.322581
85
0.720745
pcercuei
b550fb28dfd97ed7a98a6bd614fd1be4867d1cb5
1,828
cc
C++
unittests/message/get_bucket_logging_result_unittest.cc
allisrc/aliyun-oss-cpp-sdk
e2e166ff031552a93baacc105098c67ee4bf448a
[ "Apache-2.0" ]
null
null
null
unittests/message/get_bucket_logging_result_unittest.cc
allisrc/aliyun-oss-cpp-sdk
e2e166ff031552a93baacc105098c67ee4bf448a
[ "Apache-2.0" ]
null
null
null
unittests/message/get_bucket_logging_result_unittest.cc
allisrc/aliyun-oss-cpp-sdk
e2e166ff031552a93baacc105098c67ee4bf448a
[ "Apache-2.0" ]
null
null
null
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
32.642857
80
0.724836
allisrc
b55464677f64146dd16ebf8b1c4fc351e28ce486
878
cpp
C++
SumOfSubarrayMinimums/sum_of_subarray_minimums_2.cpp
suzyz/leetcode_practice
e22dc5a81e065dc962e5561b14ac84b9a2302e8a
[ "MIT" ]
1
2019-10-07T05:00:21.000Z
2019-10-07T05:00:21.000Z
SumOfSubarrayMinimums/sum_of_subarray_minimums_2.cpp
suzyz/leetcode_practice
e22dc5a81e065dc962e5561b14ac84b9a2302e8a
[ "MIT" ]
null
null
null
SumOfSubarrayMinimums/sum_of_subarray_minimums_2.cpp
suzyz/leetcode_practice
e22dc5a81e065dc962e5561b14ac84b9a2302e8a
[ "MIT" ]
null
null
null
// Using stack. class Solution { public: int sumSubarrayMins(vector<int>& A) { const int mo = 1000000007; int n = A.size(), res = 0; vector<int> left(n, 0), right(n, 0); stack<int> s1, s2; for (int i = 0; i < n; ++i) { while (!s1.empty() && A[s1.top()] >= A[i])...
21.414634
56
0.341686
suzyz
b5550b8c5335c021e2b990c02ac4ef0e60c2ef10
8,738
cpp
C++
src/plugPikiKando/aiConstants.cpp
doldecomp/pikmin
8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed
[ "Unlicense" ]
27
2021-09-28T00:33:11.000Z
2021-11-18T19:38:40.000Z
src/plugPikiKando/aiConstants.cpp
doldecomp/pikmin
8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed
[ "Unlicense" ]
null
null
null
src/plugPikiKando/aiConstants.cpp
doldecomp/pikmin
8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed
[ "Unlicense" ]
null
null
null
#include "types.h" /* * --INFO-- * Address: ........ * Size: 00009C */ void _Error(char*, ...) { // UNUSED FUNCTION } /* * --INFO-- * Address: ........ * Size: 0000F0 */ void _Print(char*, ...) { // UNUSED FUNCTION } /* * --INFO-- * Address: 80083E60 * Size: 00004C */ void AIConstant::createInstance() ...
23.239362
42
0.457542
doldecomp
b5592267f3cb27fd8cb050cc6a557ccd12d7de8c
838
cpp
C++
Source/Hyper/src/Hyper/Ast/Expressions/CastExpression.cpp
SkillerRaptor/HyperLang
c7bcabf90462247e388861b4255fe61e74c32fca
[ "MIT" ]
13
2021-08-08T19:17:22.000Z
2022-02-17T10:52:07.000Z
Source/Hyper/src/Hyper/Ast/Expressions/CastExpression.cpp
SkillerRaptor/HyperLang
c7bcabf90462247e388861b4255fe61e74c32fca
[ "MIT" ]
null
null
null
Source/Hyper/src/Hyper/Ast/Expressions/CastExpression.cpp
SkillerRaptor/HyperLang
c7bcabf90462247e388861b4255fe61e74c32fca
[ "MIT" ]
null
null
null
/* * Copyright (c) 2020-2021, SkillerRaptor <skillerraptor@protonmail.com> * * SPDX-License-Identifier: MIT */ #include "Hyper/Ast/Expressions/CastExpression.hpp" #include "Hyper/Validator.hpp" namespace Hyper { CastExpression::CastExpression( SourceRange range, ExpressionPtr expression, Type type) : Ex...
18.622222
73
0.727924
SkillerRaptor
b55dd97397f484d56e7558e4e50faebe002a6cdf
8,401
cpp
C++
kattis_done/wrapping.cpp
heiseish/Competitive-Programming
e4dd4db83c38e8837914562bc84bc8c102e68e34
[ "MIT" ]
5
2019-03-17T01:33:19.000Z
2021-06-25T09:50:45.000Z
kattis_done/wrapping.cpp
heiseish/Competitive-Programming
e4dd4db83c38e8837914562bc84bc8c102e68e34
[ "MIT" ]
null
null
null
kattis_done/wrapping.cpp
heiseish/Competitive-Programming
e4dd4db83c38e8837914562bc84bc8c102e68e34
[ "MIT" ]
null
null
null
/** if you don’t like your destiny, don’t accept it .instead ,have the courage to change it. */ #include <bits/stdc++.h> #define forn(i, l, r) for(int i=l;i<=r;i++) #define all(v) v.begin(),v.end() #define pb push_back #define nd second #define st first #define debug(x) cout<<#x<<" -> "<<x<< endl #define kakim...
37.672646
96
0.55541
heiseish
b56938d14939fb7a0df22da7f7313e6ce0e0fdd5
70
cpp
C++
test/mbed/i2c/main.cpp
malachib/framework-abstraction
8cfd0e8b374cfef16a0519de06e89f3289f22820
[ "MIT" ]
1
2018-08-06T20:15:00.000Z
2018-08-06T20:15:00.000Z
test/mbed/i2c/main.cpp
malachib/framework.abstraction
8cfd0e8b374cfef16a0519de06e89f3289f22820
[ "MIT" ]
null
null
null
test/mbed/i2c/main.cpp
malachib/framework.abstraction
8cfd0e8b374cfef16a0519de06e89f3289f22820
[ "MIT" ]
null
null
null
#include <mbed.h> #include <frab/i2c.h> int main() { return 0; }
8.75
21
0.585714
malachib
b56b6f3aee7ef0d4531188a68beed1b3f3e2df44
3,291
cpp
C++
sem 3 Programs/Data_Structure_Lab/dsa final/se_b_42/assi7.cpp
Sameer411/Second_Year_Lab_Assignment
4481803f463464ae53066feb76028761944af200
[ "MIT" ]
5
2019-12-09T18:15:09.000Z
2021-12-27T13:47:37.000Z
sem 3 Programs/Data_Structure_Lab/dsa final/se_b_42/assi7.cpp
Sameer411/Second_Year_Lab_Assignment
4481803f463464ae53066feb76028761944af200
[ "MIT" ]
null
null
null
sem 3 Programs/Data_Structure_Lab/dsa final/se_b_42/assi7.cpp
Sameer411/Second_Year_Lab_Assignment
4481803f463464ae53066feb76028761944af200
[ "MIT" ]
4
2020-04-18T13:07:33.000Z
2022-02-14T04:09:33.000Z
#include<iostream> using namespace std; class binary; class node { node *prev; bool n; node*next; public: node() { prev=next=NULL; } node(bool b) { n=b; prev=next=NULL; } friend class binary; }; class binary { node *start; public: binary() { start=NULL; } void create_binary(int no); ...
15.306977
115
0.583713
Sameer411
b56fb16e4c8bf78e658421d82abe6d20ed10b9a8
1,360
cpp
C++
main.cpp
cafexd/c-_header_generator
c7b077e3d7ee3a814114eaedae783977e5d99e0d
[ "MIT" ]
1
2020-03-08T14:18:30.000Z
2020-03-08T14:18:30.000Z
main.cpp
cafexd/c-_header_generator
c7b077e3d7ee3a814114eaedae783977e5d99e0d
[ "MIT" ]
null
null
null
main.cpp
cafexd/c-_header_generator
c7b077e3d7ee3a814114eaedae783977e5d99e0d
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <gerador.hpp> using namespace std; int main() { GeradorCpp::Gerador gerador; //classes gerador.adicionarClasse("Drawable", true); gerador.adicionarClasse("Point", false); gerador.adicionarClasse("Figure", true); gerador.adicionarClasse("Square", ...
34.871795
112
0.708824
cafexd
b57ab404eff61b051ccc8ea6c76e4531a245da0e
447
hpp
C++
include/game_state.hpp
crmaykish/dispoozal
343f67c5ee6a2aa5bd7b51ef846901dea8eac6ba
[ "MIT" ]
null
null
null
include/game_state.hpp
crmaykish/dispoozal
343f67c5ee6a2aa5bd7b51ef846901dea8eac6ba
[ "MIT" ]
null
null
null
include/game_state.hpp
crmaykish/dispoozal
343f67c5ee6a2aa5bd7b51ef846901dea8eac6ba
[ "MIT" ]
null
null
null
#ifndef GAME_STATE_H #define GAME_STATE_H #include <vector> #include <memory> #include "user_input.hpp" enum GameStatus { STATUS_UNKNOWN, STATUS_MENU, STATUS_RUNNING, STATUS_GAMEOVER }; struct GameState { UserInputState Input; GameStatus Status = STATUS_UNKNOWN; int Score = 0; int Bes...
15.413793
39
0.693512
crmaykish
b57d4c9c814a43fe5cdd8d23791967b902ae58b3
434
cpp
C++
creational_pattern/simple_factory/product.cpp
heLi0x/design_pattern
91ef376056e90e5de4deb0e6f08573716dc18a19
[ "MIT" ]
1
2020-11-24T07:39:49.000Z
2020-11-24T07:39:49.000Z
creational_pattern/simple_factory/product.cpp
heLi0x/design_pattern
91ef376056e90e5de4deb0e6f08573716dc18a19
[ "MIT" ]
null
null
null
creational_pattern/simple_factory/product.cpp
heLi0x/design_pattern
91ef376056e90e5de4deb0e6f08573716dc18a19
[ "MIT" ]
null
null
null
#include "product.h" Product::Product(){ std::cout<<"Init Product"<<std::endl; } ConcreteProductA::ConcreteProductA(){ std::cout<<"Init ConcreteProductA"<<std::endl; } void ConcreteProductA::use(){ std::cout<<"using ConcreteProductA"<<std::endl; } ConcreteProductB::ConcreteProductB(){ std::cout<<"Init C...
27.125
51
0.695853
heLi0x
b57de5eadd25093ec21b5be105d429e63e4e8129
949
hpp
C++
SpaceInvaders/SpaceInvaders/ArrBase.hpp
CarlosIzarra09/Space_Invaders_Cplusplus
a7bd70fcab5156f23f92505b523140b8123a3ac9
[ "Unlicense" ]
null
null
null
SpaceInvaders/SpaceInvaders/ArrBase.hpp
CarlosIzarra09/Space_Invaders_Cplusplus
a7bd70fcab5156f23f92505b523140b8123a3ac9
[ "Unlicense" ]
null
null
null
SpaceInvaders/SpaceInvaders/ArrBase.hpp
CarlosIzarra09/Space_Invaders_Cplusplus
a7bd70fcab5156f23f92505b523140b8123a3ac9
[ "Unlicense" ]
null
null
null
#ifndef _ArrBase_H_ #define _ArrBase_H_ #include "Base.hpp" #include <vector> using namespace std; class ArrBase { protected: vector<Base*>aux; vector<Base*>arreglo; public: ArrBase(){} ~ArrBase(){} void Add(Base*obj) { arreglo.push_back(obj); } int Retornar_cant() { return arreglo.size(); } void Most...
14.164179
75
0.617492
CarlosIzarra09
b57f3b0848855a5ad303907b847441fcd582b8ec
2,287
hpp
C++
includes/header.hpp
K1ngmar/Plebserv
c23596eb3c3b729d19f1f1016eb7403926a5493d
[ "MIT" ]
5
2021-05-17T19:25:26.000Z
2022-02-16T12:06:42.000Z
includes/header.hpp
K1ngmar/Plebserv
c23596eb3c3b729d19f1f1016eb7403926a5493d
[ "MIT" ]
1
2021-12-24T12:43:36.000Z
2021-12-24T12:43:36.000Z
includes/header.hpp
K1ngmar/Plebserv
c23596eb3c3b729d19f1f1016eb7403926a5493d
[ "MIT" ]
6
2021-05-17T19:14:53.000Z
2022-01-26T11:03:27.000Z
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ /* _ (`-. ('-. .-. .-') .-') ('-. _ .-') (`-. */ /* ( (OO ) _( OO)\ ( OO ) ( OO ). _( OO)( \( -O ) _(OO )_ */ /* _.` \ ,--. (,----...
34.134328
87
0.36467
K1ngmar
b5842bce4577abf25faaf9147007b2d3c9f270ae
1,915
cpp
C++
lib/lsd/CachePage.cpp
nonwill/lsd2dsl
00e2a9832666dff03667b07815d73fab3fa8378e
[ "MIT" ]
66
2015-01-17T16:57:38.000Z
2022-02-06T15:29:54.000Z
dictlsd/CachePage.cpp
al-yakubovich/lsd2dsl
22503988bcbd4ea7006a3ac291e71476f8e20a1a
[ "MIT" ]
19
2015-02-08T15:35:12.000Z
2022-01-26T10:46:11.000Z
dictlsd/CachePage.cpp
al-yakubovich/lsd2dsl
22503988bcbd4ea7006a3ac291e71476f8e20a1a
[ "MIT" ]
18
2015-03-23T07:06:07.000Z
2022-01-15T21:03:04.000Z
#include "CachePage.h" #include "BitStream.h" #include "IDictionaryDecoder.h" namespace dictlsd { bool CachePage::loadHeader(IBitStream &bstr) { _isLeaf = bstr.read(1); _number = bstr.read(16); _prev = bstr.read(16); _parent = bstr.read(16); _next = bstr.read(16); _headingsCount = ...
23.072289
59
0.609399
nonwill