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
292259f17d45341387aadc8c84fce601edf136de
1,058
cpp
C++
Nage/Nage/Source/Entity.cpp
DanielCordell/AsteroidsGame
32e07e25463e62b56f854e7d53e2cbf28f10f73d
[ "Unlicense" ]
null
null
null
Nage/Nage/Source/Entity.cpp
DanielCordell/AsteroidsGame
32e07e25463e62b56f854e7d53e2cbf28f10f73d
[ "Unlicense" ]
null
null
null
Nage/Nage/Source/Entity.cpp
DanielCordell/AsteroidsGame
32e07e25463e62b56f854e7d53e2cbf28f10f73d
[ "Unlicense" ]
null
null
null
#include "Includes/Entity.h" #include <SFML/Graphics/RenderTarget.hpp> void Entity::WrapAround() { //Adjust position if off screen sf::Vector2f positionChange(0, 0); if (sprite.getPosition().x + sprite.getGlobalBounds().width / 2.f < 0) { positionChange.x += (sprite.getGlobalBounds().width / 2.f + windowSize.x); ...
34.129032
91
0.691871
DanielCordell
29238efbca302f063699da98bc2afa55ff8a833a
1,072
cpp
C++
modules/oskin_g_equation/test/test_equation.cpp
BalovaElena/devtools-course-practice
f8d5774dbb78ec50200c45fd17665ed40fc8c4c5
[ "CC-BY-4.0" ]
null
null
null
modules/oskin_g_equation/test/test_equation.cpp
BalovaElena/devtools-course-practice
f8d5774dbb78ec50200c45fd17665ed40fc8c4c5
[ "CC-BY-4.0" ]
null
null
null
modules/oskin_g_equation/test/test_equation.cpp
BalovaElena/devtools-course-practice
f8d5774dbb78ec50200c45fd17665ed40fc8c4c5
[ "CC-BY-4.0" ]
null
null
null
// Copyright 2022 Oskin Georgii #include <gtest/gtest.h> #include "include/equation.h" TEST(EqConstructor, Constructor_WO_Params) { ASSERT_NO_THROW(Equation eq); } TEST(EqConstructor, Constructor_W_Params) { ASSERT_NO_THROW(Equation eq(2.0, 5.0, 3.0)); } TEST(EqConstructor, Constructor_W_Minus) { ASSERT...
21.44
51
0.624067
BalovaElena
a098e607da0241c126eabb341a038013723d156c
831
cpp
C++
4_session_sql.cpp
BarretRen/XDevAPIWithCpp
11bf8bae98294476f90c21bf477e1c58467d4985
[ "MIT" ]
null
null
null
4_session_sql.cpp
BarretRen/XDevAPIWithCpp
11bf8bae98294476f90c21bf477e1c58467d4985
[ "MIT" ]
null
null
null
4_session_sql.cpp
BarretRen/XDevAPIWithCpp
11bf8bae98294476f90c21bf477e1c58467d4985
[ "MIT" ]
null
null
null
//使用session的sql函数,执行原始SQL语句 #include <iostream> #include <mysqlx/xdevapi.h> using namespace std; using namespace mysqlx; int main() { try { Session sess("localhost", 33060, "barret", "shidandan1230"); cout << "Session accepted, creating collection..." << endl; sess.sql("use world_x").e...
27.7
97
0.525872
BarretRen
a09cf6043a333f8383b247466d22bb156b8575cf
2,258
cpp
C++
code/Motor2D/LogoScene.cpp
paupedra/Sprite-Ordering-and-Camera-Culling
2774bad9d751df665dc78fbf8c34a27393efa35f
[ "MIT" ]
null
null
null
code/Motor2D/LogoScene.cpp
paupedra/Sprite-Ordering-and-Camera-Culling
2774bad9d751df665dc78fbf8c34a27393efa35f
[ "MIT" ]
null
null
null
code/Motor2D/LogoScene.cpp
paupedra/Sprite-Ordering-and-Camera-Culling
2774bad9d751df665dc78fbf8c34a27393efa35f
[ "MIT" ]
null
null
null
#include "Application.h" #include "Window.h" #include "Fonts.h" #include "Input.h" #include "Gui.h" #include "UI.h" #include "UI_Button.h" #include "SceneManager.h" #include "TransitionManager.h" #include "Textures.h" #include "Audio.h" #include "LogoScene.h" LogoScene::LogoScene() : Scene(SCENES::LOGO_SCENE) { } ...
18.064
99
0.705492
paupedra
a0adb46f8f1fe83b91218dcefac0bb2b171351fd
3,815
cpp
C++
Example/Source/Examples/Private/Renderer/Compositor/Compositor.cpp
cofenberg/unrimp
90310657f106eb83f3a9688329b78619255a1042
[ "MIT" ]
187
2015-11-02T21:27:57.000Z
2022-02-17T21:39:17.000Z
Example/Source/Examples/Private/Renderer/Compositor/Compositor.cpp
cofenberg/unrimp
90310657f106eb83f3a9688329b78619255a1042
[ "MIT" ]
null
null
null
Example/Source/Examples/Private/Renderer/Compositor/Compositor.cpp
cofenberg/unrimp
90310657f106eb83f3a9688329b78619255a1042
[ "MIT" ]
20
2015-11-04T19:17:01.000Z
2021-11-18T11:23:25.000Z
/*********************************************************\ * Copyright (c) 2012-2021 The Unrimp Team * * 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 wit...
41.021505
136
0.603408
cofenberg
a0ae72d73dae68582a579fcd83697a6842ef1dc8
267
hpp
C++
inc/format/DateTimeFormat.hpp
Xenovia02/CppLogging
892959b17d96c93310cc0a876471de9d60990298
[ "MIT" ]
null
null
null
inc/format/DateTimeFormat.hpp
Xenovia02/CppLogging
892959b17d96c93310cc0a876471de9d60990298
[ "MIT" ]
null
null
null
inc/format/DateTimeFormat.hpp
Xenovia02/CppLogging
892959b17d96c93310cc0a876471de9d60990298
[ "MIT" ]
null
null
null
#ifndef X_LOG_FORMAT_DATETIMEFORMAT_HPP #define X_LOG_FORMAT_DATETIMEFORMAT_HPP namespace xlog { struct DateTimeFormat final { string_t time; string_t date; string_t datetime = ""; string_t get_dtime() const; }; } #endif
16.6875
39
0.670412
Xenovia02
a0b030a2e93add85e9b839142fa2c64c6ddacb43
73,262
cpp
C++
tests/tests/force_settle_match_tests.cpp
blockops-de/bitshares-core
ac1cfc058633de8cfd0355fad207e5fa6e9d65f3
[ "MIT" ]
147
2015-10-13T02:46:23.000Z
2017-01-12T14:42:32.000Z
tests/tests/force_settle_match_tests.cpp
blockops-de/bitshares-core
ac1cfc058633de8cfd0355fad207e5fa6e9d65f3
[ "MIT" ]
35
2015-11-02T15:50:00.000Z
2017-01-17T22:11:01.000Z
tests/tests/force_settle_match_tests.cpp
blockchainprojects/bitshares-core
ac1cfc058633de8cfd0355fad207e5fa6e9d65f3
[ "MIT" ]
67
2015-10-14T21:26:18.000Z
2017-01-16T14:20:45.000Z
/* * Copyright (c) 2021 Abit More, and contributors. * * The MIT License * * 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 ...
49.434548
117
0.731539
blockops-de
a0b0722900e3b641d8553d08479aa37507119426
3,561
hpp
C++
lumino/RuntimeCore/include/LuminoEngine/Base/Builder.hpp
GameDevery/Lumino
abce2ddca4b7678b04dbfd0ae5348e196c3c9379
[ "MIT" ]
113
2020-03-05T01:27:59.000Z
2022-03-28T13:20:51.000Z
lumino/RuntimeCore/include/LuminoEngine/Base/Builder.hpp
GameDevery/Lumino
abce2ddca4b7678b04dbfd0ae5348e196c3c9379
[ "MIT" ]
35
2016-04-18T06:14:08.000Z
2020-02-09T15:51:58.000Z
lumino/RuntimeCore/include/LuminoEngine/Base/Builder.hpp
GameDevery/Lumino
abce2ddca4b7678b04dbfd0ae5348e196c3c9379
[ "MIT" ]
12
2020-12-21T12:03:59.000Z
2021-12-15T02:07:49.000Z
 #pragma once namespace ln { template<class T> struct BuilderVariant; struct AbstractBuilderDetails; //==================== template<class T, class B, class D> struct AbstractBuilder { public: Ref<T> build() const; protected: virtual ~AbstractBuilder() = default; AbstractBuilder() { m_detail = std::m...
20.824561
120
0.635496
GameDevery
a0b2968e354d20c395efe155bf0b76f08543a567
1,074
hpp
C++
ERapGBC/registers.hpp
erap320/ERapGBC
9904193ba32e6b92e4c6e9b8c9b92e9bc00c9fb3
[ "MIT" ]
null
null
null
ERapGBC/registers.hpp
erap320/ERapGBC
9904193ba32e6b92e4c6e9b8c9b92e9bc00c9fb3
[ "MIT" ]
null
null
null
ERapGBC/registers.hpp
erap320/ERapGBC
9904193ba32e6b92e4c6e9b8c9b92e9bc00c9fb3
[ "MIT" ]
null
null
null
#pragma once ///////Addresses of notable registers that reside in ram //Port/Mode Registers #define P1 0xFF00 #define SB 0xFF01 #define SC 0xFF02 #define DIV 0xFF04 #define TIMA 0xFF05 #define TMA 0xFF06 #define TAC 0xFF07 #define KEY1 0xFF4D #define RP 0xFF56 //Bank Control Registers #define VBK 0xFF4F #define SVBK...
20.264151
56
0.798883
erap320
a0bb57233cf2cb5de92c52988638ac62a7c65060
361
cpp
C++
string_parse.cpp
shirishbahirat/algorithm
ec743d4c16ab4f429f22bd6f71540341b3905b3b
[ "Apache-2.0" ]
null
null
null
string_parse.cpp
shirishbahirat/algorithm
ec743d4c16ab4f429f22bd6f71540341b3905b3b
[ "Apache-2.0" ]
null
null
null
string_parse.cpp
shirishbahirat/algorithm
ec743d4c16ab4f429f22bd6f71540341b3905b3b
[ "Apache-2.0" ]
null
null
null
#include <iostream> using namespace std; int main(int argc, char const *argv[]) { char name[] = "John Smith"; char updated[5] = ""; char *pname = &name[0]; string aname = "Alice"; char xname[] = "Bob"; for (int i = 0; i < 6; i++) { updated[i] = name[i]; cout << updated << " " << pname << " ...
15.041667
63
0.518006
shirishbahirat
a0bcc167ae8712321cd9a7bb4fb0dd8d4178d50f
2,243
cpp
C++
tests/src/gain.cpp
nospi/synth2
f4548e01753a74e826f4155685259750cfe2581f
[ "Unlicense" ]
1
2021-07-14T07:49:46.000Z
2021-07-14T07:49:46.000Z
tests/src/gain.cpp
nospi/synth2
f4548e01753a74e826f4155685259750cfe2581f
[ "Unlicense" ]
null
null
null
tests/src/gain.cpp
nospi/synth2
f4548e01753a74e826f4155685259750cfe2581f
[ "Unlicense" ]
null
null
null
#include <catch.hpp> #include <dsp.h> using namespace dsp; /* * * Data derived using desmos graphing calculator: * * https://www.desmos.com/calculator/ywqrbxl2gy * * 1.14 and 29.353 are the intersection points of * the conversion functions; where input ~= output. * * following the voltage gain weighting: * a 50% att...
31.591549
68
0.669193
nospi
a0c24891f735d67cedfe9f2a4f66786dcc5e2890
4,592
cpp
C++
samples/examples/classify_with_RF.cpp
v4r-tuwien/v4r
ff3fbd6d2b298b83268ba4737868bab258262a40
[ "BSD-1-Clause", "BSD-2-Clause" ]
2
2021-02-22T11:36:33.000Z
2021-07-20T11:31:08.000Z
samples/examples/classify_with_RF.cpp
v4r-tuwien/v4r
ff3fbd6d2b298b83268ba4737868bab258262a40
[ "BSD-1-Clause", "BSD-2-Clause" ]
null
null
null
samples/examples/classify_with_RF.cpp
v4r-tuwien/v4r
ff3fbd6d2b298b83268ba4737868bab258262a40
[ "BSD-1-Clause", "BSD-2-Clause" ]
3
2018-10-19T10:39:23.000Z
2021-04-07T13:39:03.000Z
#include <iostream> #include <pcl/console/parse.h> #include <boost/filesystem.hpp> #include <v4r/io/filesystem.h> #include <v4r/ml/forest.h> #include <v4r/ml/node.h> /* * Directory structure of training data: mytrainingdirectory - 0001.data - 0002.data - 0003.data ... - 1242.data - categories.txt -> for e...
30.818792
120
0.647213
v4r-tuwien
a0c784a01bd96526aca42962d4e7a7b6fe781a88
7,904
hpp
C++
include/RootMotion/FinalIK/Recoil_RecoilOffset.hpp
Fernthedev/BeatSaber-Quest-Codegen
716e4ff3f8608f7ed5b83e2af3be805f69e26d9e
[ "Unlicense" ]
null
null
null
include/RootMotion/FinalIK/Recoil_RecoilOffset.hpp
Fernthedev/BeatSaber-Quest-Codegen
716e4ff3f8608f7ed5b83e2af3be805f69e26d9e
[ "Unlicense" ]
null
null
null
include/RootMotion/FinalIK/Recoil_RecoilOffset.hpp
Fernthedev/BeatSaber-Quest-Codegen
716e4ff3f8608f7ed5b83e2af3be805f69e26d9e
[ "Unlicense" ]
null
null
null
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Including type: RootMotion.Fin...
55.272727
469
0.726974
Fernthedev
a0c7e753907336265f81e8e6c37f557fc36cb283
9,250
cpp
C++
cppbind/zprotowire.cpp
findstr/zproto
be310b698b993a9018e64c56aabb000da836df97
[ "MIT" ]
8
2017-06-02T12:12:10.000Z
2020-09-19T11:25:51.000Z
cppbind/zprotowire.cpp
findstr/zproto
be310b698b993a9018e64c56aabb000da836df97
[ "MIT" ]
null
null
null
cppbind/zprotowire.cpp
findstr/zproto
be310b698b993a9018e64c56aabb000da836df97
[ "MIT" ]
6
2016-01-09T14:23:13.000Z
2020-11-17T07:23:55.000Z
#include <assert.h> #include <stdint.h> #include <string.h> #include "zproto.hpp" #include "zprotowire.h" namespace zprotobuf { #define BUFFSZ (64) static int encode_cb(struct zproto_args *arg) { wire *w = (wire *)arg->ud; return w->_encode_proxy(arg); } static int decode_cb(struct zproto_args *...
18.137255
82
0.633946
findstr
a0c8468d83deae43b33f73a51bba11fd99f6cb90
1,049
cpp
C++
src/datatypes/raster/export_yuv.cpp
EmanuelHerrendorf/mapping-core
d28d85547e8ed08df37dad1da142594d3f07a366
[ "MIT" ]
null
null
null
src/datatypes/raster/export_yuv.cpp
EmanuelHerrendorf/mapping-core
d28d85547e8ed08df37dad1da142594d3f07a366
[ "MIT" ]
10
2018-03-02T13:58:32.000Z
2020-06-05T11:12:42.000Z
src/datatypes/raster/export_yuv.cpp
EmanuelHerrendorf/mapping-core
d28d85547e8ed08df37dad1da142594d3f07a366
[ "MIT" ]
3
2018-02-26T14:01:43.000Z
2019-12-09T10:03:17.000Z
#include "datatypes/raster/raster_priv.h" #include <stdio.h> template<typename T> void Raster2D<T>::toYUV(const char *filename) { if (!dd.unit.hasMinMax()) throw ConverterException("Cannot export as YUV because the unit does not have finite min/max"); FILE *file = fopen(filename, "w"); if (!file) throw Expor...
22.804348
97
0.656816
EmanuelHerrendorf
a0c8d2d7922b25c87d84ff319e64c026b0a60833
9,497
cpp
C++
Extensions/PhysicsBehavior/JsExtension.cpp
mohajain/GDevelop
8e8d96dd3a5957221fb3d0ec28a694620149d835
[ "MIT" ]
1
2019-08-27T21:49:05.000Z
2019-08-27T21:49:05.000Z
Extensions/PhysicsBehavior/JsExtension.cpp
mohajain/GDevelop
8e8d96dd3a5957221fb3d0ec28a694620149d835
[ "MIT" ]
9
2020-04-04T19:26:47.000Z
2022-03-25T18:41:20.000Z
Extensions/PhysicsBehavior/JsExtension.cpp
mohajain/GDevelop
8e8d96dd3a5957221fb3d0ec28a694620149d835
[ "MIT" ]
2
2020-03-02T05:20:41.000Z
2021-05-10T03:59:05.000Z
/** GDevelop - Physics Behavior Extension Copyright (c) 2010-2016 Florian Rival (Florian.Rival@gmail.com) This project is released under the MIT License. */ #if defined(GD_IDE_ONLY) #include "GDCore/Extensions/PlatformExtension.h" #include "GDCore/Tools/Localization.h" void DeclarePhysicsBehaviorExtension(gd::Platfor...
49.722513
130
0.681268
mohajain
a0ca4a760a00408d1a8c4301076523d96ede866e
2,655
hpp
C++
src/cppruntime/include/runtime/pj_barrier.hpp
a-thoma/processj
fbd6c9bacad7e47eab765c9f10c398a9d03d6455
[ "Apache-2.0" ]
null
null
null
src/cppruntime/include/runtime/pj_barrier.hpp
a-thoma/processj
fbd6c9bacad7e47eab765c9f10c398a9d03d6455
[ "Apache-2.0" ]
null
null
null
src/cppruntime/include/runtime/pj_barrier.hpp
a-thoma/processj
fbd6c9bacad7e47eab765c9f10c398a9d03d6455
[ "Apache-2.0" ]
null
null
null
#ifndef PJ_BARRIER_HPP #define PJ_BARRIER_HPP #include <runtime/pj_process.hpp> #include <iostream> #include <vector> #include <queue> #include <sys/types.h> /* (from ProcessJ java impl) * ProcessJ code will have something of this sort: * * enroll(b): ...
33.1875
132
0.287382
a-thoma
a0cc6d6cbc32bb112a8b93a57c7aa159d7e1fde0
2,954
cpp
C++
Dx9Wrapper_v0.2.0/RenderingManager.cpp
Yamamoto0773/Amaoto
a7fca6b25bb56138dfbb664e9b729c7835597493
[ "BSD-2-Clause" ]
null
null
null
Dx9Wrapper_v0.2.0/RenderingManager.cpp
Yamamoto0773/Amaoto
a7fca6b25bb56138dfbb664e9b729c7835597493
[ "BSD-2-Clause" ]
null
null
null
Dx9Wrapper_v0.2.0/RenderingManager.cpp
Yamamoto0773/Amaoto
a7fca6b25bb56138dfbb664e9b729c7835597493
[ "BSD-2-Clause" ]
null
null
null
#include "RenderingManager.hpp" namespace dx9 { namespace renderer { bool RenderingManager::CreateRenderingTarget(IDirect3DDevice9 * device, RenderingTarget & rt, size_t w, size_t h) { auto &fac = RenderingTargetFactory::GetInstance(); rt = fac.CreateRT(device, w, h); if (rt == nullptr) { return f...
21.720588
117
0.689235
Yamamoto0773
a0cc7ad5e5506f6a1e3b03da74bdeb248f40ad3e
2,255
cc
C++
src/unittest/Date_test.cc
imulilla/openMSX_TSXadv_nofork
4ee003d87a44633c14c054bd59ec2bfd866e5d9f
[ "Naumen", "Condor-1.1", "MS-PL" ]
4
2015-06-19T04:49:29.000Z
2022-02-16T15:02:04.000Z
src/unittest/Date_test.cc
imulilla/openMSX_TSXadv_nofork
4ee003d87a44633c14c054bd59ec2bfd866e5d9f
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2016-01-02T15:55:29.000Z
2016-01-02T15:55:29.000Z
src/unittest/Date_test.cc
imulilla/openMSX_TSXadv_nofork
4ee003d87a44633c14c054bd59ec2bfd866e5d9f
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2020-01-17T02:06:13.000Z
2021-06-10T17:13:07.000Z
#include "catch.hpp" #include "Date.hh" #include <cstring> using namespace openmsx; static void test(time_t t, const char* s) { REQUIRE(strlen(s) >= 24); // precondition CHECK(Date::fromString(s) == t); CHECK(Date::toString(t) == s); } TEST_CASE("Date") { putenv(const_cast<char*>("TZ=UTC")); tzset(); test( ...
40.267857
68
0.646563
imulilla
a0ced41e98ee41d9987a6787d48d49e8cc9b7c23
2,301
cpp
C++
Game/States/PauseState.cpp
Mateusz00/Space-Invasion
a5c2b501454377f7496db91abbdebcb97ab3c814
[ "BSD-2-Clause" ]
null
null
null
Game/States/PauseState.cpp
Mateusz00/Space-Invasion
a5c2b501454377f7496db91abbdebcb97ab3c814
[ "BSD-2-Clause" ]
1
2018-11-18T14:48:56.000Z
2018-11-26T19:21:07.000Z
Game/States/PauseState.cpp
Mateusz00/2D-Fighter-Jet-Game
a5c2b501454377f7496db91abbdebcb97ab3c814
[ "BSD-2-Clause" ]
null
null
null
#include "PauseState.hpp" #include "../ResourcesID.hpp" #include "../MusicPlayer.hpp" #include "../GUI/GUIButton.hpp" #include <SFML/Graphics/RectangleShape.hpp> PauseState::PauseState(Context context, StateStack& stateStack, bool isNetworked) : State(context, stateStack), mWindow(context.window), mIsN...
29.883117
106
0.691439
Mateusz00
a0d16543e45670a4862a0076771eae7d013cf0d9
15,527
cc
C++
computer.cc
MJoergen/gomuko
404193bb0baafec2da079dac51399f5cbcde2635
[ "MIT" ]
null
null
null
computer.cc
MJoergen/gomuko
404193bb0baafec2da079dac51399f5cbcde2635
[ "MIT" ]
null
null
null
computer.cc
MJoergen/gomuko
404193bb0baafec2da079dac51399f5cbcde2635
[ "MIT" ]
null
null
null
/***************************************************************************** * * Author: Michael Joergensen * * Abstract: * This file contains the implementation of the generic * computerized board playing agent. * * It uses the alpha-beta search algorithm. * With time, it will inclu...
25.878333
135
0.55587
MJoergen
a0da409715a5b29ce467dae6c98e45f1e540c414
834
cpp
C++
Codeforces/Rounds/Educational Codeforces Round 118 (Rated for Div. 2)/C.cpp
MaGnsio/CP-Problems
a7f518a20ba470f554b6d54a414b84043bf209c5
[ "Unlicense" ]
3
2020-11-01T06:31:30.000Z
2022-02-21T20:37:51.000Z
Codeforces/Rounds/Educational Codeforces Round 118 (Rated for Div. 2)/C.cpp
MaGnsio/CP-Problems
a7f518a20ba470f554b6d54a414b84043bf209c5
[ "Unlicense" ]
null
null
null
Codeforces/Rounds/Educational Codeforces Round 118 (Rated for Div. 2)/C.cpp
MaGnsio/CP-Problems
a7f518a20ba470f554b6d54a414b84043bf209c5
[ "Unlicense" ]
1
2021-05-05T18:56:31.000Z
2021-05-05T18:56:31.000Z
/** * author: MaGnsi0 * created: 01.12.2021 16:24:11 **/ #include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int T; cin >> T; while (T--) { int n; long long h; cin >> n >> h; vector<long long> a(n); ...
21.384615
58
0.318945
MaGnsio
a0dbcd938528f4e14e5fcc5f8d09f8764f7426f5
522
hpp
C++
src/hashes/PCompressBla.hpp
funkysash/catena-variants
5baf9c34b96e495a52f8ded6612187c7f0033efb
[ "MIT" ]
4
2015-04-18T14:33:27.000Z
2016-02-20T11:11:25.000Z
src/hashes/PCompressBla.hpp
funkysash/catena-variants
5baf9c34b96e495a52f8ded6612187c7f0033efb
[ "MIT" ]
null
null
null
src/hashes/PCompressBla.hpp
funkysash/catena-variants
5baf9c34b96e495a52f8ded6612187c7f0033efb
[ "MIT" ]
3
2015-04-18T07:10:43.000Z
2018-03-26T13:55:16.000Z
#pragma once #include "../hashfast.hpp" namespace Catena_Variants{ class PCompressBla : public HashFast<PCompressBla> { public: PCompressBla(); ~PCompressBla() = default; PCompressBla(PCompressBla const&) = default; PCompressBla& operator=(PCompressBla const&) = default; virtual void Hash(int vindex, c...
17.4
70
0.708812
funkysash
a0e0d8c7b148e94d4706830fc7bf25f7c0e52bf8
20,470
hpp
C++
src/Providers/UNIXProviders/Printer/UNIX_Printer_ZOS.hpp
brunolauze/openpegasus-providers-old
b00f1aad575bae144b8538bf57ba5fd5582a4ec7
[ "MIT" ]
1
2020-10-12T09:00:09.000Z
2020-10-12T09:00:09.000Z
src/Providers/UNIXProviders/Printer/UNIX_Printer_ZOS.hpp
brunolauze/openpegasus-providers-old
b00f1aad575bae144b8538bf57ba5fd5582a4ec7
[ "MIT" ]
null
null
null
src/Providers/UNIXProviders/Printer/UNIX_Printer_ZOS.hpp
brunolauze/openpegasus-providers-old
b00f1aad575bae144b8538bf57ba5fd5582a4ec7
[ "MIT" ]
null
null
null
//%LICENSE//////////////////////////////////////////////////////////////// // // Licensed to The Open Group (TOG) under one or more contributor license // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with // this work for additional information regarding copyright ownership. // Each contributor lice...
20.697674
101
0.764924
brunolauze
a0eb6958b6a6058f0ff7afe2dfb824656f5621ac
4,559
cpp
C++
test/syntax_test.cpp
Mankalas/qcron
35c611a0f191e9a0ff01fe9dacdb9b9d9a597428
[ "MIT" ]
24
2016-12-27T14:52:32.000Z
2022-02-11T18:03:08.000Z
test/syntax_test.cpp
Mankalas/qcron
35c611a0f191e9a0ff01fe9dacdb9b9d9a597428
[ "MIT" ]
null
null
null
test/syntax_test.cpp
Mankalas/qcron
35c611a0f191e9a0ff01fe9dacdb9b9d9a597428
[ "MIT" ]
16
2017-03-05T16:19:24.000Z
2022-03-24T12:44:36.000Z
#include "syntax_test.hpp" #include <qcron.hpp> #include <QDebug> #include <QTest> /******************************************************************************/ QString SyntaxTest:: buildPattern(int pattern_idx, QString val) { QString res; for (int i = 0; i < 6; ++i) { if (i == pattern_idx) ...
25.757062
93
0.428164
Mankalas
a0f28a1c1e3faa1899424c2fcc67f8a8d4b78b8a
13,180
cpp
C++
src/toolchain/core/Pass/ILOptimizer.cpp
layerzero/cc0
fa3f8f1f7bbc38ca5b6b8864c80223191b3b1f09
[ "BSD-2-Clause" ]
null
null
null
src/toolchain/core/Pass/ILOptimizer.cpp
layerzero/cc0
fa3f8f1f7bbc38ca5b6b8864c80223191b3b1f09
[ "BSD-2-Clause" ]
null
null
null
src/toolchain/core/Pass/ILOptimizer.cpp
layerzero/cc0
fa3f8f1f7bbc38ca5b6b8864c80223191b3b1f09
[ "BSD-2-Clause" ]
2
2015-03-03T04:36:51.000Z
2018-10-01T03:04:11.000Z
#include <cstdlib> #include <iostream> #include <core/Core.h> #include <core/IL/ILProgram.h> #include "ILOptimizer.h" ILOptimizer::ILOptimizer() { } ILOptimizer::~ILOptimizer() { } int ILOptimizer::OperandUsedTwice(ILFunction* f, IL::ILOperand* opr) { int n = 0; for (std::vector<IL>::iterator iit = f-...
40.182927
172
0.435888
layerzero
a0fb402b051977efff2188a041bd1a46b2183aca
3,380
cpp
C++
WhBelt/final-task/project_template.cpp
Bytan97/CpSpec
31ec3c960c2f9446c3f3928ce08b24a872eb288b
[ "Unlicense" ]
null
null
null
WhBelt/final-task/project_template.cpp
Bytan97/CpSpec
31ec3c960c2f9446c3f3928ce08b24a872eb288b
[ "Unlicense" ]
null
null
null
WhBelt/final-task/project_template.cpp
Bytan97/CpSpec
31ec3c960c2f9446c3f3928ce08b24a872eb288b
[ "Unlicense" ]
null
null
null
#include <algorithm> #include <iomanip> #include <iostream> #include <map> #include <set> #include <sstream> #include <string> #include <vector> using namespace std; class Date { private: int day; int month; int year; public: Date(string date) { stringstream ss(date); char d1, d2; int y, m, d; ...
23.636364
76
0.511834
Bytan97
a0fd423b54d099477afac6c477b1487ca0acf219
519
cpp
C++
atcoder/abc/32/D.cpp
utgw/programming-contest
eb7f28ae913296c6f4f9a8136dca8bd321e01e79
[ "MIT" ]
null
null
null
atcoder/abc/32/D.cpp
utgw/programming-contest
eb7f28ae913296c6f4f9a8136dca8bd321e01e79
[ "MIT" ]
null
null
null
atcoder/abc/32/D.cpp
utgw/programming-contest
eb7f28ae913296c6f4f9a8136dca8bd321e01e79
[ "MIT" ]
null
null
null
//TODO #include<bits/stdc++.h> #define FOR(i,m,n) for(int i=m;i<(n);i++) #define REP(i,n) FOR(i,0,n) #define ALL(x) (x).begin(),(x).end() using namespace std; typedef long long ll; const ll inf = INT_MAX; const double eps = 1e-8; const double pi = acos(-1.0); ll dp[201][600001]; int main(void){ int N,W;cin>>N>>W; ...
21.625
53
0.56262
utgw
9d08738bed0ff681dfd96ea06650e0d3cdb87bbb
3,712
cpp
C++
UVA Solved Problem/523 - Minimum Transport Cost/523 - Minimum Transport Cost.cpp
ahmed-dinar/UVA
5cb43864744475ed7ac94e6cb6cae50ad80603c7
[ "MIT" ]
null
null
null
UVA Solved Problem/523 - Minimum Transport Cost/523 - Minimum Transport Cost.cpp
ahmed-dinar/UVA
5cb43864744475ed7ac94e6cb6cae50ad80603c7
[ "MIT" ]
null
null
null
UVA Solved Problem/523 - Minimum Transport Cost/523 - Minimum Transport Cost.cpp
ahmed-dinar/UVA
5cb43864744475ed7ac94e6cb6cae50ad80603c7
[ "MIT" ]
null
null
null
#include<cstdio> #include<sstream> #include<cstdlib> #include<cctype> #include<cmath> #include<algorithm> #include<set> #include<queue> #include<stack> #include<list> #include<iostream> #include<fstream> #include<numeric> #include<string> #include<vector> #include<cstring> #include<map> #include<iterat...
24.582781
103
0.450162
ahmed-dinar
9d096b0408a202ab451fd69f92edb6418c6107c7
708
hpp
C++
libvfs/include/vfs_bundle_def.hpp
mbenniston/vfs
24aa9fa15ff8aab9a4235dd16a7a889aa1868b7c
[ "MIT" ]
1
2021-09-18T06:59:29.000Z
2021-09-18T06:59:29.000Z
libvfs/include/vfs_bundle_def.hpp
mbenniston/vfs
24aa9fa15ff8aab9a4235dd16a7a889aa1868b7c
[ "MIT" ]
null
null
null
libvfs/include/vfs_bundle_def.hpp
mbenniston/vfs
24aa9fa15ff8aab9a4235dd16a7a889aa1868b7c
[ "MIT" ]
null
null
null
/** * @file vfs_bundle_def.hpp * @brief Contains Bundle structure definition */ #pragma once #include <span> #include <unordered_map> #include <string> #include "vfs_base.hpp" namespace vfs { /** * @brief The location of a file within a bundle data blob */ struct FileTableEntry { std...
21.454545
117
0.638418
mbenniston
9d0be8d3ce56141e372840c620742349de32d1d9
2,097
cpp
C++
Source/FactoryGame/FGSaveSession.cpp
iam-Legend/Project-Assembly
1ff3587704232d5e330515bc0d2aceb64ff09a7f
[ "MIT" ]
null
null
null
Source/FactoryGame/FGSaveSession.cpp
iam-Legend/Project-Assembly
1ff3587704232d5e330515bc0d2aceb64ff09a7f
[ "MIT" ]
null
null
null
Source/FactoryGame/FGSaveSession.cpp
iam-Legend/Project-Assembly
1ff3587704232d5e330515bc0d2aceb64ff09a7f
[ "MIT" ]
null
null
null
// This file has been automatically generated by the Unreal Header Implementation tool #include "FGSaveSession.h" UFGSaveSession::UFGSaveSession(){ } UFGSaveSession::~UFGSaveSession(){ } void UFGSaveSession::Init( bool willLoad){ } UFGSaveSession* UFGSaveSession::Get( UWorld* world){ return nullptr; } UFGSaveSession...
63.545455
115
0.797806
iam-Legend
9d0df3741396b83cfabc17d7e82e4c93b15b5370
31,497
cpp
C++
src/modules/cl/cl_filter_functions.cpp
Reza-Najafi/rpp
26b21762d4fbc4971b03f939fe00ae8bcf49fef9
[ "MIT" ]
null
null
null
src/modules/cl/cl_filter_functions.cpp
Reza-Najafi/rpp
26b21762d4fbc4971b03f939fe00ae8bcf49fef9
[ "MIT" ]
null
null
null
src/modules/cl/cl_filter_functions.cpp
Reza-Najafi/rpp
26b21762d4fbc4971b03f939fe00ae8bcf49fef9
[ "MIT" ]
null
null
null
#include <cl/rpp_cl_common.hpp> #include "cl_declarations.hpp" /********************** Sobel ************************/ RppStatus sobel_filter_cl ( cl_mem srcPtr, RppiSize srcSize, cl_mem dstPtr, Rpp32u sobelType, RppiChnFormat chnFormat, unsigned int channel, rpp::Handle& handle) { if(chnFormat == RPPI...
55.550265
168
0.399975
Reza-Najafi
9d0f73447df0cc7991b9e9c513b700f5a38262e9
1,310
cpp
C++
src/calculator/drift_diffusion/drift_diffusion_vector_calculator.cpp
SlaybaughLab/Transport
8eb32cb8ae50c92875526a7540350ef9a85bc050
[ "MIT" ]
12
2018-03-14T12:30:53.000Z
2022-01-23T14:46:44.000Z
src/calculator/drift_diffusion/drift_diffusion_vector_calculator.cpp
SlaybaughLab/Transport
8eb32cb8ae50c92875526a7540350ef9a85bc050
[ "MIT" ]
194
2017-07-07T01:38:15.000Z
2021-05-19T18:21:19.000Z
src/calculator/drift_diffusion/drift_diffusion_vector_calculator.cpp
SlaybaughLab/Transport
8eb32cb8ae50c92875526a7540350ef9a85bc050
[ "MIT" ]
10
2017-07-06T22:58:59.000Z
2021-03-15T07:01:21.000Z
#include "calculator/drift_diffusion/drift_diffusion_vector_calculator.hpp" #include "calculator/drift_diffusion/factory.hpp" namespace bart::calculator::drift_diffusion { template <int dim> bool DriftDiffusionVectorCalculator<dim>::is_registered_ = DriftDiffusionVectorCalculatorIFactory<dim>::get() .Reg...
46.785714
116
0.661069
SlaybaughLab
9d0fdd8e5c260421a0c8b486ce01d423d1ee2154
15,272
cc
C++
login_manager/system_utils_impl.cc
dgreid/platform2
9b8b30df70623c94f1c8aa634dba94195343f37b
[ "BSD-3-Clause" ]
4
2020-07-24T06:54:16.000Z
2021-06-16T17:13:53.000Z
login_manager/system_utils_impl.cc
dgreid/platform2
9b8b30df70623c94f1c8aa634dba94195343f37b
[ "BSD-3-Clause" ]
1
2021-04-02T17:35:07.000Z
2021-04-02T17:35:07.000Z
login_manager/system_utils_impl.cc
dgreid/platform2
9b8b30df70623c94f1c8aa634dba94195343f37b
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "login_manager/system_utils_impl.h" #include <errno.h> #include <grp.h> #include <pwd.h> #include <sched.h> #include <signal.h> #include ...
31.949791
80
0.648311
dgreid
9d10058ecc17547bc5daf3bab9a3ff557f0456c8
3,584
inl
C++
src/gfx/graphics/command_list.inl
johannes-braun/graphics_utilities
191772a3ff1c14eea74b9b5614b6226cf1f8abb7
[ "MIT" ]
null
null
null
src/gfx/graphics/command_list.inl
johannes-braun/graphics_utilities
191772a3ff1c14eea74b9b5614b6226cf1f8abb7
[ "MIT" ]
null
null
null
src/gfx/graphics/command_list.inl
johannes-braun/graphics_utilities
191772a3ff1c14eea74b9b5614b6226cf1f8abb7
[ "MIT" ]
null
null
null
#pragma once namespace gfx { namespace v1 { template<template <typename> class Buffer, typename T, typename> void commands::bind_vertex_buffer(const Buffer<T>& buffer, u32 binding, i64 offset) const { implementation()->bind_vertex_buffer(buffer.api_handle(), binding, offset); } template<template <typename>...
42.666667
141
0.731306
johannes-braun
9d163ab1862cd40a704c59db81a89f9140e9620c
29,897
cxx
C++
src/impex/gif.cxx
sstefan/vigra
f8826fa4de4293efb95582367f4bf42cc8ba8c11
[ "MIT" ]
1
2017-01-23T11:27:56.000Z
2017-01-23T11:27:56.000Z
src/impex/gif.cxx
tikroeger/vigra
981d1ebc3ee85464a0d2ace693ad41606b475e2f
[ "MIT" ]
null
null
null
src/impex/gif.cxx
tikroeger/vigra
981d1ebc3ee85464a0d2ace693ad41606b475e2f
[ "MIT" ]
3
2015-12-09T13:47:13.000Z
2019-04-06T21:28:59.000Z
/************************************************************************/ /* */ /* Copyright 2002 by Ullrich Koethe */ /* */ /* This file is p...
27.759517
92
0.463291
sstefan
1dda1742064c69b2ca878295f58577603d80fb77
3,347
hpp
C++
src/Emulators/nestopiaue/core/NstVideoFilterHqX.hpp
slajerek/RetroDebugger
e761e4f9efd103a05e65ef283423b142fa4324c7
[ "Apache-2.0", "MIT" ]
34
2021-05-29T07:04:17.000Z
2022-03-10T20:16:03.000Z
src/Emulators/nestopiaue/core/NstVideoFilterHqX.hpp
slajerek/RetroDebugger
e761e4f9efd103a05e65ef283423b142fa4324c7
[ "Apache-2.0", "MIT" ]
6
2021-12-25T13:05:21.000Z
2022-01-19T17:35:17.000Z
src/Emulators/nestopiaue/core/NstVideoFilterHqX.hpp
slajerek/RetroDebugger
e761e4f9efd103a05e65ef283423b142fa4324c7
[ "Apache-2.0", "MIT" ]
6
2021-12-24T18:37:41.000Z
2022-02-06T23:06:02.000Z
//////////////////////////////////////////////////////////////////////////////////////// // // Nestopia - NES/Famicom emulator written in C++ // // Copyright (C) 2003 MaxSt ( maxst@hiend3d.com ) // Copyright (C) 2003-2008 Martin Freij // // This file is part of Nestopia. // // Nestopia is free software; you ca...
31.575472
89
0.640574
slajerek
1de651ff1e9fd654e5f6de85ceb447c107dc9864
5,826
hpp
C++
src/MemoryMappedOpenAddressingHashTable.hpp
iosonofabio/ExpressionMatrix2
a6fc6938fe857fe1bd6a9200071957691295ba3c
[ "MIT" ]
null
null
null
src/MemoryMappedOpenAddressingHashTable.hpp
iosonofabio/ExpressionMatrix2
a6fc6938fe857fe1bd6a9200071957691295ba3c
[ "MIT" ]
null
null
null
src/MemoryMappedOpenAddressingHashTable.hpp
iosonofabio/ExpressionMatrix2
a6fc6938fe857fe1bd6a9200071957691295ba3c
[ "MIT" ]
null
null
null
#ifndef CZI_EXPRESSION_MATRIX2_MEMORY_MAPPED_OPEN_ADDRESSING_HASH_TABLE_HPP #define CZI_EXPRESSION_MATRIX2_MEMORY_MAPPED_OPEN_ADDRESSING_HASH_TABLE_HPP // Template class MemoryMapped::OpenAddressingHashTable implements a simple hash table // with open addressing and linear probing stored in a memory mapped file // (us...
30.502618
139
0.670443
iosonofabio
1deca6aba276bd14962a87a2d645fe1b8ccd5dd6
14,610
cpp
C++
src/main.cpp
watsaig/pressure-regulator
ccee3f40b3c9511ac5089c9d699aaaf0c5b9ad31
[ "MIT" ]
2
2020-04-21T16:53:34.000Z
2021-09-18T21:20:38.000Z
src/main.cpp
freeheel3r/pressure-regulator
5b18e6c2f3fbbfba198cc67bc7d2a3abcd9a3408
[ "MIT" ]
1
2021-04-16T03:37:00.000Z
2021-04-16T21:08:16.000Z
src/main.cpp
freeheel3r/pressure-regulator
5b18e6c2f3fbbfba198cc67bc7d2a3abcd9a3408
[ "MIT" ]
2
2020-11-04T11:13:26.000Z
2021-01-06T18:51:57.000Z
/* * Pressure regulator * Author: Craig F. Watson (craig.watson@case.edu) * Created on 2018-05-29 * Code is licensed under MIT license. * * * The microcontroller used is an Atmega32u4, running at 8MHz / 3.3V. * This is the same as the Sparkfun Pro Micro 8MHz/3.3V, so presets for that board * can be used. * Do not use t...
30.123711
126
0.683847
watsaig
1df0161a88078a156a93be2443b6540090a59747
1,786
cc
C++
src/CallGraph.cc
mpsm/spyc
60c2f53941c30aaf688b0966bd87978bc511342e
[ "MIT" ]
null
null
null
src/CallGraph.cc
mpsm/spyc
60c2f53941c30aaf688b0966bd87978bc511342e
[ "MIT" ]
null
null
null
src/CallGraph.cc
mpsm/spyc
60c2f53941c30aaf688b0966bd87978bc511342e
[ "MIT" ]
null
null
null
#include "CallGraph.hh" #include "Call.hh" #include "Method.hh" #include <functional> #include <stdexcept> #include <utility> using namespace spyc; CallGraph::CallGraph(const Method& root) : _root(root) { loadNode(this->_root); } const Method& CallGraph::getRoot() const noexcept { return this->_root; } con...
17.86
77
0.666293
mpsm
1df1a3a355a77e0b5ae75b09fff4f0dc48831f28
2,070
hpp
C++
EasyTcp/EasyTcpServer2.1/CellMsgBuffer.hpp
zklmiao/CppNet
f32de93ddff8a2d49194840111a181edc8ae0293
[ "BSD-3-Clause" ]
null
null
null
EasyTcp/EasyTcpServer2.1/CellMsgBuffer.hpp
zklmiao/CppNet
f32de93ddff8a2d49194840111a181edc8ae0293
[ "BSD-3-Clause" ]
null
null
null
EasyTcp/EasyTcpServer2.1/CellMsgBuffer.hpp
zklmiao/CppNet
f32de93ddff8a2d49194840111a181edc8ae0293
[ "BSD-3-Clause" ]
null
null
null
#ifndef _CELLMSGBUFFER_HPP_ #define _CELLMSGBUFFER_HPP_ #include "PublicLib.hpp" class CellBuffer { public: CellBuffer(int nSize = 8192) { _nSize = nSize; _pBuff = new char[_nSize]; } ~CellBuffer() { if (!_pBuff) { delete[] _pBuff; _pBuff = nullptr; } } void setSize(int nSize = 8192) { _n...
15
60
0.589855
zklmiao
1dff2267024a860b5482b4f6d9f88abc79e1c7d4
16,706
cpp
C++
tests/Unit/ParallelAlgorithms/Events/Test_ObserveFields.cpp
desperadoshi/spectre
b61c12dce108a98a875a1e9476e5630bea634119
[ "MIT" ]
null
null
null
tests/Unit/ParallelAlgorithms/Events/Test_ObserveFields.cpp
desperadoshi/spectre
b61c12dce108a98a875a1e9476e5630bea634119
[ "MIT" ]
null
null
null
tests/Unit/ParallelAlgorithms/Events/Test_ObserveFields.cpp
desperadoshi/spectre
b61c12dce108a98a875a1e9476e5630bea634119
[ "MIT" ]
null
null
null
// Distributed under the MIT License. // See LICENSE.txt for details. #include "Framework/TestingFramework.hpp" #include <array> #include <cstddef> #include <memory> #include <numeric> #include <string> #include <type_traits> #include <utility> #include <vector> #include "DataStructures/DataBox/DataBox.hpp" #include...
39.308235
82
0.700287
desperadoshi
3800b46559cb2bb72e44587749cf5d64c2c2d4f9
797
cpp
C++
src/AdventOfCode2019/Day01-TyrannyOfTheRocket/Day01-Main.cpp
dbartok/advent-of-code-cpp
c8c2df7a21980f8f3e42128f7bc5df8288f18490
[ "MIT" ]
null
null
null
src/AdventOfCode2019/Day01-TyrannyOfTheRocket/Day01-Main.cpp
dbartok/advent-of-code-cpp
c8c2df7a21980f8f3e42128f7bc5df8288f18490
[ "MIT" ]
null
null
null
src/AdventOfCode2019/Day01-TyrannyOfTheRocket/Day01-Main.cpp
dbartok/advent-of-code-cpp
c8c2df7a21980f8f3e42128f7bc5df8288f18490
[ "MIT" ]
null
null
null
#include "Day01-TyrannyOfTheRocket.h" #include <AdventOfCodeCommon/DisableLibraryWarningsMacros.h> __BEGIN_LIBRARIES_DISABLE_WARNINGS #include <fstream> #include <iostream> #include <vector> #include <string> __END_LIBRARIES_DISABLE_WARNINGS int main() { namespace CurrentDay = AdventOfCode::Year2019::Day01; ...
27.482759
119
0.726474
dbartok
3802535e12ea4a0ea5988647cc89e310141b6fc0
3,197
cpp
C++
SysLib/Utility/Vehicle_Shape.cpp
kravitz/transims4
ea0848bf3dc71440d54724bb3ecba3947b982215
[ "NASA-1.3" ]
2
2018-04-27T11:07:02.000Z
2020-04-24T06:53:21.000Z
SysLib/Utility/Vehicle_Shape.cpp
idkravitz/transims4
ea0848bf3dc71440d54724bb3ecba3947b982215
[ "NASA-1.3" ]
null
null
null
SysLib/Utility/Vehicle_Shape.cpp
idkravitz/transims4
ea0848bf3dc71440d54724bb3ecba3947b982215
[ "NASA-1.3" ]
null
null
null
//********************************************************* // Vehicle_Shape.cpp - vehicle polygon function //********************************************************* #include "Vehicle_Shape.hpp" #include <stdlib.h> #include <math.h> bool Vehicle_Shape (XYZ_Point p1, XYZ_Point p2, double width, Point_Data *points) ...
17.662983
81
0.46919
kravitz
3808533cdc6f643e2f32b59d27b75ec9080ed44e
515
cpp
C++
LibLeap/RecognitionConfiguration/TrainingStaticRecConf.cpp
uiuyuty/vsfh
49f83a7bf043f7ae872dd759a0d32336d90cf1b4
[ "MIT" ]
36
2015-03-02T09:30:35.000Z
2020-06-11T07:07:57.000Z
LibLeap/RecognitionConfiguration/TrainingStaticRecConf.cpp
uiuyuty/vsfh
49f83a7bf043f7ae872dd759a0d32336d90cf1b4
[ "MIT" ]
3
2016-04-01T21:28:24.000Z
2018-03-30T21:39:28.000Z
LibLeap/RecognitionConfiguration/TrainingStaticRecConf.cpp
uiuyuty/vsfh
49f83a7bf043f7ae872dd759a0d32336d90cf1b4
[ "MIT" ]
17
2015-03-02T18:48:45.000Z
2019-03-12T06:44:08.000Z
#include "TrainingStaticRecConf.h" TrainingStaticRecConf::TrainingStaticRecConf(std::string configurationPath, std::string configurationName, bool saveDatasetFile, bool saveScaleFile, StaticRecFeatureVersion featureSetVersion, int kCrossValParam) { this->configurationPath = configurationPath; this->configuration...
36.785714
75
0.827184
uiuyuty
380ca2854c069262b897d6ffe2b345178aa365cf
2,439
cpp
C++
src/library/idx_metavar.cpp
leodemoura/lean_clone
cc077554b584d39bab55c360bc12a6fe7957afe6
[ "Apache-2.0" ]
130
2016-12-02T22:46:10.000Z
2022-03-22T01:09:48.000Z
src/library/idx_metavar.cpp
soonhokong/lean
38607e3eb57f57f77c0ac114ad169e9e4262e24f
[ "Apache-2.0" ]
8
2017-05-03T01:21:08.000Z
2020-02-25T11:38:05.000Z
src/library/idx_metavar.cpp
soonhokong/lean
38607e3eb57f57f77c0ac114ad169e9e4262e24f
[ "Apache-2.0" ]
28
2016-12-02T22:46:20.000Z
2022-03-18T21:28:20.000Z
/* Copyright (c) 2015 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #include "util/interrupt.h" #include "kernel/for_each_fn.h" #include "library/idx_metavar.h" #ifndef LEAN_INSTANTIATE_METAIDX_CACHE_CAPACITY #define LEAN_I...
27.1
117
0.633456
leodemoura
380f6d9e7121af282660a5b1cc11f60c525fefa4
2,893
hpp
C++
include/Nazara/OpenGLRenderer/Wrapper/WGL/WGLContext.hpp
jayrulez/NazaraEngine
e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99
[ "BSD-3-Clause-Clear", "Apache-2.0", "MIT" ]
11
2019-11-27T00:40:43.000Z
2020-01-29T14:31:52.000Z
include/Nazara/OpenGLRenderer/Wrapper/WGL/WGLContext.hpp
jayrulez/NazaraEngine
e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99
[ "BSD-3-Clause-Clear", "Apache-2.0", "MIT" ]
7
2019-11-27T00:29:08.000Z
2020-01-08T18:53:39.000Z
include/Nazara/OpenGLRenderer/Wrapper/WGL/WGLContext.hpp
jayrulez/NazaraEngine
e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99
[ "BSD-3-Clause-Clear", "Apache-2.0", "MIT" ]
7
2019-11-27T10:27:40.000Z
2020-01-15T17:43:33.000Z
// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com) // This file is part of the "Nazara Engine - OpenGL renderer" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_OPENGLRENDERER_WRAPPER_WGL_WGLCONTEXT_HPP #define NAZARA_OPENGLRENDERER_WRAPPER_WGL...
34.035294
165
0.791566
jayrulez
381011f6e3364685aaf70a01d1ac33a73fc6ad61
31,351
cpp
C++
isis/src/qisis/objs/CnetEditorWidget/CnetEditorWidget.cpp
kdl222/ISIS3
aab0e63088046690e6c031881825596c1c2cc380
[ "CC0-1.0" ]
134
2018-01-18T00:16:24.000Z
2022-03-24T03:53:33.000Z
isis/src/qisis/objs/CnetEditorWidget/CnetEditorWidget.cpp
kdl222/ISIS3
aab0e63088046690e6c031881825596c1c2cc380
[ "CC0-1.0" ]
3,825
2017-12-11T21:27:34.000Z
2022-03-31T21:45:20.000Z
isis/src/qisis/objs/CnetEditorWidget/CnetEditorWidget.cpp
jlaura/isis3
2c40e08caed09968ea01d5a767a676172ad20080
[ "CC0-1.0" ]
164
2017-11-30T21:15:44.000Z
2022-03-23T10:22:29.000Z
/** This is free and unencumbered software released into the public domain. The authors of ISIS do not claim copyright on the contents of this file. For more details about the LICENSE terms and the AUTHORS, you will find files of those names at the top level of this repository. **/ /* SPDX-License-Identifier: CC0-1.0...
29.21808
101
0.666199
kdl222
3812795be5bbcbc72e03a84d061542f2b522fc19
56,605
cc
C++
gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/check_value.cc
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/check_value.cc
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/check_value.cc
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__ -ffp-contract=off" } // Copyright (C) 2016-2017 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the G...
29.102828
74
0.656815
best08618
3812d1ff2f68a33b306c4869e7a62a873cd88e35
753
cpp
C++
Nov2020/17Nov/AGameOfNumbers.cpp
shivanisbp/6monthsOfCoding
26dc53e3160c7b313dff974b957c81350bf9f1a1
[ "MIT" ]
null
null
null
Nov2020/17Nov/AGameOfNumbers.cpp
shivanisbp/6monthsOfCoding
26dc53e3160c7b313dff974b957c81350bf9f1a1
[ "MIT" ]
null
null
null
Nov2020/17Nov/AGameOfNumbers.cpp
shivanisbp/6monthsOfCoding
26dc53e3160c7b313dff974b957c81350bf9f1a1
[ "MIT" ]
null
null
null
/* Problem Name: A Game of Numbers Problem Link: https://www.hackerearth.com/practice/data-structures/stacks/basics-of-stacks/practice-problems/algorithm/a-game-of-numbers-1-5d3a8cb3/ */ #include<bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(0); cin.tie(0); int n; ...
20.351351
148
0.427623
shivanisbp
3816b4c6fce46dde1980a553f539c47e69a5ce0b
2,942
cpp
C++
example/rtsp_server.cpp
iamscottxu/RtspServer
c08da08e79c5cb735f969f4341201ca41bae5a61
[ "MIT" ]
1
2021-02-03T04:06:01.000Z
2021-02-03T04:06:01.000Z
example/rtsp_server.cpp
iamscottxu/RtspServer
c08da08e79c5cb735f969f4341201ca41bae5a61
[ "MIT" ]
null
null
null
example/rtsp_server.cpp
iamscottxu/RtspServer
c08da08e79c5cb735f969f4341201ca41bae5a61
[ "MIT" ]
1
2020-11-03T03:36:45.000Z
2020-11-03T03:36:45.000Z
// RTSP Server #include "xop/RtspServer.h" #include "net/Timer.h" #include <thread> #include <memory> #include <iostream> #include <string> void SendFrameThread(xop::RtspServer* rtsp_server, xop::MediaSessionId session_id, int& clients); int main(int argc, char **argv) { int clients = 0; std::strin...
31.978261
106
0.626445
iamscottxu
381763bfdd952d03d56069732061f47ae5cc4a8b
20,234
cpp
C++
main/sensors/RTClib.cpp
KerstenSchaller/sonos-buttons
3f7567c2d19d86738bd40fd705571bf51739c4d2
[ "MIT" ]
null
null
null
main/sensors/RTClib.cpp
KerstenSchaller/sonos-buttons
3f7567c2d19d86738bd40fd705571bf51739c4d2
[ "MIT" ]
null
null
null
main/sensors/RTClib.cpp
KerstenSchaller/sonos-buttons
3f7567c2d19d86738bd40fd705571bf51739c4d2
[ "MIT" ]
null
null
null
// Code by JeeLabs http://news.jeelabs.org/code/ // Released to the public domain! Enjoy! //- #include <Wire.h> #include "sensors/Wire.h" #include "RTClib.h" #ifdef __AVR__ #include <avr/pgmspace.h> #define WIRE Wire #else #define PROGMEM #define pgm_read_byte(addr) (*(const unsigned char *)(addr)) //- #define WI...
26.243839
140
0.641643
KerstenSchaller
381af0a0305d6dc624ea45d48d08dadd31a06e75
237
cpp
C++
lib/Saver/PdmSaver/LuaEntry.cpp
digirea/HIVE
8896b0cc858c1ad0683888b925f71c0f0d71bf9d
[ "MIT" ]
null
null
null
lib/Saver/PdmSaver/LuaEntry.cpp
digirea/HIVE
8896b0cc858c1ad0683888b925f71c0f0d71bf9d
[ "MIT" ]
null
null
null
lib/Saver/PdmSaver/LuaEntry.cpp
digirea/HIVE
8896b0cc858c1ad0683888b925f71c0f0d71bf9d
[ "MIT" ]
null
null
null
#include "LuaUtil.h" #include "PdmSaver_Lua.h" extern "C" { int luaopen_PdmSaver(lua_State* L) { LUA_SCRIPTCLASS_REGISTER(L, PDMSaver_Lua); lua_pushcfunction(L, LUA_SCRIPTCLASS_NEW_FUNCTION(PDMSaver_Lua)); return 1; } }
14.8125
69
0.729958
digirea
3820cfe2018df5a2a3cab58f58a1d4e181bc013b
213
cpp
C++
Framework/Sources/o2/Scene/ActorCreationMode.cpp
zenkovich/o2
cdbf10271f1bf0f3198c8005b13b66e6ca13a9db
[ "MIT" ]
181
2015-12-09T08:53:36.000Z
2022-03-26T20:48:39.000Z
Framework/Sources/o2/Scene/ActorCreationMode.cpp
zenkovich/o2
cdbf10271f1bf0f3198c8005b13b66e6ca13a9db
[ "MIT" ]
29
2016-04-22T08:24:04.000Z
2022-03-06T07:06:28.000Z
Framework/Sources/o2/Scene/ActorCreationMode.cpp
zenkovich/o2
cdbf10271f1bf0f3198c8005b13b66e6ca13a9db
[ "MIT" ]
13
2018-04-24T17:12:04.000Z
2021-11-12T23:49:53.000Z
#include "o2/stdafx.h" #include "ActorCreationMode.h" #include "o2/Utils/Reflection/Type.h" ENUM_META(o2::ActorCreateMode) { ENUM_ENTRY(Default); ENUM_ENTRY(InScene); ENUM_ENTRY(NotInScene); } END_ENUM_META;
16.384615
37
0.765258
zenkovich
3822a1fe75abc2d1c4b3d62015d83a97cd30c6ea
328
cpp
C++
mrJudge/problems/swappingcats (205)/swappingcats.cpp
object-oriented-human/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
2
2021-07-27T10:46:47.000Z
2021-07-27T10:47:57.000Z
mrJudge/problems/swappingcats (205)/swappingcats.cpp
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
mrJudge/problems/swappingcats (205)/swappingcats.cpp
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main() { int n, s; cin >> n >> s; vector<int> v; for (int i = 0; i < n; i++) { v.push_back(i); } for (int i = 0; i < s; i++) { int a, b; cin >> a >> b; swap(v[a], v[b]); } for (int x: v) { cout << x << '\n';...
17.263158
33
0.381098
object-oriented-human
382537d1a87850f35e95953e61e758412b8b46f3
10,775
cpp
C++
build/source/NxOgreX.cpp
betajaen/nxogre
ab2fb93754fa5876191de2e27a416b501f480180
[ "MIT" ]
22
2015-03-11T20:32:30.000Z
2022-03-05T23:16:10.000Z
build/source/NxOgreX.cpp
betajaen/nxogre
ab2fb93754fa5876191de2e27a416b501f480180
[ "MIT" ]
1
2021-07-03T14:13:14.000Z
2021-07-03T14:13:14.000Z
build/source/NxOgreX.cpp
betajaen/nxogre
ab2fb93754fa5876191de2e27a416b501f480180
[ "MIT" ]
13
2015-02-09T14:30:24.000Z
2020-03-20T11:51:55.000Z
/** This file is part of NxOgre. Copyright (c) 2009 Robin Southern, http://www.nxogre.org 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 witho...
27.842377
149
0.625244
betajaen
3828b93546f24cdedc14aa98020db6f30f12bdef
4,816
cpp
C++
LG/P7196_v1.cpp
ImChinaNB/code
9c6940093cb480bd381c17557db87078e0efd740
[ "MIT" ]
null
null
null
LG/P7196_v1.cpp
ImChinaNB/code
9c6940093cb480bd381c17557db87078e0efd740
[ "MIT" ]
null
null
null
LG/P7196_v1.cpp
ImChinaNB/code
9c6940093cb480bd381c17557db87078e0efd740
[ "MIT" ]
null
null
null
#include <cstdio> #include <vector> #include <algorithm> struct D { // Direction int i; static constexpr int d[4][2] = { {0, 1}, {1, 0}, {0, -1}, {-1, 0} }; static constexpr int g[4] = { 1, 2, 3, 0 }; inline D left() const { return {(i + 1) % 4}; } inline D right() const { return {(...
23.724138
91
0.423173
ImChinaNB
382ff6e5c79cc7fec83ea8b77dda1cddcece003b
11,713
cpp
C++
Kha/Backends/Kore/khacpp/project/libs/nekoapi/NekoAPI.cpp
5Mixer/GGJ20
a12a14d596ab150e8d96dda5a21defcd176f251f
[ "MIT" ]
null
null
null
Kha/Backends/Kore/khacpp/project/libs/nekoapi/NekoAPI.cpp
5Mixer/GGJ20
a12a14d596ab150e8d96dda5a21defcd176f251f
[ "MIT" ]
null
null
null
Kha/Backends/Kore/khacpp/project/libs/nekoapi/NekoAPI.cpp
5Mixer/GGJ20
a12a14d596ab150e8d96dda5a21defcd176f251f
[ "MIT" ]
null
null
null
// Get headers etc. // //#define HAVE_NEKO_TYPES typedef struct _vkind *vkind; typedef struct _value *value; typedef struct _buffer *buffer; #define IGNORE_CFFI_API_H #include <hx/CFFI.h> #include "string.h" extern "C" { // Proto-type the functions #define DEFFUNC(name,r,b,c) r api_##name b; #...
17.964724
90
0.685734
5Mixer
383569d890250f6f2ba481b6f8741482a53def5a
9,177
cpp
C++
Source/ComponentCamera.cpp
rogerta97/3D_Motor
78553e6c38a63e1f22e473eefe8ae718e16c33c0
[ "MIT" ]
1
2018-06-11T05:55:15.000Z
2018-06-11T05:55:15.000Z
Source/ComponentCamera.cpp
rogerta97/3D_Motor
78553e6c38a63e1f22e473eefe8ae718e16c33c0
[ "MIT" ]
null
null
null
Source/ComponentCamera.cpp
rogerta97/3D_Motor
78553e6c38a63e1f22e473eefe8ae718e16c33c0
[ "MIT" ]
null
null
null
#include "ComponentCamera.h" #include "Color.h" #include "DebugDraw.h" #include "ComponentTransform.h" #include "ModuleSceneIntro.h" #include "Application.h" #include "GameObject.h" #include "JSON.h" ComponentCamera::ComponentCamera(GameObject* _parent, float far_plane, float near_plane, float fov, float aspect_ratio)...
24.342175
129
0.727798
rogerta97
38488982a74eb326019176074cab77e44a29861d
6,342
cpp
C++
src/ConnectionSTREAM_UNITE/ConnectionSTREAM_UNITEEntry.cpp
atlantis07/LimeSuite
9c365b144dc8fcc277a77843adf7dd4d55ba6406
[ "Apache-2.0" ]
null
null
null
src/ConnectionSTREAM_UNITE/ConnectionSTREAM_UNITEEntry.cpp
atlantis07/LimeSuite
9c365b144dc8fcc277a77843adf7dd4d55ba6406
[ "Apache-2.0" ]
null
null
null
src/ConnectionSTREAM_UNITE/ConnectionSTREAM_UNITEEntry.cpp
atlantis07/LimeSuite
9c365b144dc8fcc277a77843adf7dd4d55ba6406
[ "Apache-2.0" ]
null
null
null
/** @file ConnectionSTREAMEntry.cpp @author Lime Microsystems @brief Implementation of STREAM board connection. */ #include "ConnectionSTREAM_UNITE.h" #include <fstream> #include <stdio.h> using namespace lime; //! make a static-initialized entry in the registry void __loadConnectionSTREAM_UNITEEntry(void...
35.830508
141
0.666824
atlantis07
384ef9fa7ebe55fef9ddee99969d097120915143
20,540
cpp
C++
src/mainwindow.cpp
SuperEndermanSM/stockball
7f3a0f4ae26cf3c387efd223bc7dd3a470113871
[ "MIT" ]
10
2021-08-19T23:09:52.000Z
2022-03-25T09:20:32.000Z
src/mainwindow.cpp
SuperEndermanSM/stockball
7f3a0f4ae26cf3c387efd223bc7dd3a470113871
[ "MIT" ]
1
2021-04-08T03:53:04.000Z
2021-04-08T03:53:54.000Z
src/mainwindow.cpp
SuperEndermanSM/stockball
7f3a0f4ae26cf3c387efd223bc7dd3a470113871
[ "MIT" ]
3
2021-08-19T23:09:59.000Z
2022-03-11T06:49:28.000Z
#include "mainwindow.h" #include "ui_mainwindow.h" #include "application.h" #include "addmoneywidget.h" #include "signalm.h" #include "stackstock.h" #include "updatemygpdialog.h" #include "stockView/stockcanvas.h" #include <QString> #include <QSystemTrayIcon> #include <QNetworkRequest> #include <QNetworkAccessManager>...
37.550274
131
0.608763
SuperEndermanSM
38528f848b7a2aa09b2db8eb60e4ed5ae1015ca5
951
cpp
C++
STL/maps.cpp
SanatankrMishra/MITMuz2020
e1d8007a0d3332ad32ce7aeba58780b7a6469442
[ "MIT" ]
null
null
null
STL/maps.cpp
SanatankrMishra/MITMuz2020
e1d8007a0d3332ad32ce7aeba58780b7a6469442
[ "MIT" ]
null
null
null
STL/maps.cpp
SanatankrMishra/MITMuz2020
e1d8007a0d3332ad32ce7aeba58780b7a6469442
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main(){ map<int,string> m; m[3]="cde"; m[2]="bcd"; m[1]="abc"; m.insert({4, "def"}); // m.insert(make_pair(4, "def")); // map<int,string> :: iterator it; // for(it= m.begin(); it != m.end(); ++it){ // cout<< (*it).first << " "...
23.195122
93
0.477392
SanatankrMishra
3853576a8109909eb2998eef68c64f1f69a244da
12,446
hpp
C++
SOLVER/src/core/element/crd/CoordTransformSpherical.hpp
chaindl/AxiSEM-3D
0251f301c79c676fb37792209d6e24f107773b3d
[ "MIT" ]
null
null
null
SOLVER/src/core/element/crd/CoordTransformSpherical.hpp
chaindl/AxiSEM-3D
0251f301c79c676fb37792209d6e24f107773b3d
[ "MIT" ]
null
null
null
SOLVER/src/core/element/crd/CoordTransformSpherical.hpp
chaindl/AxiSEM-3D
0251f301c79c676fb37792209d6e24f107773b3d
[ "MIT" ]
null
null
null
// // CoordTransformSpherical.hpp // AxiSEM3D // // Created by Kuangdai Leng on 3/10/19. // Copyright © 2019 Kuangdai Leng. All rights reserved. // // coordinate transform between (s,phi,z) and (R,T,Z) // for vector and 2nd-order tensor fields #ifndef CoordTransformSpherical_hpp #define CoordTransformSpherical_...
36.075362
75
0.515427
chaindl
3855926922807695b31aa97e373c95188ce3d370
432
cpp
C++
plugins/Example/plugin.cpp
fredldotme/ut-nfcd-p2p-demo
9d454bd1a19325f7e19288640176a98ba17529d7
[ "BSD-3-Clause" ]
7
2021-05-13T17:50:43.000Z
2022-02-23T03:53:43.000Z
plugins/Example/plugin.cpp
fredldotme/ut-nfcd-p2p-demo
9d454bd1a19325f7e19288640176a98ba17529d7
[ "BSD-3-Clause" ]
null
null
null
plugins/Example/plugin.cpp
fredldotme/ut-nfcd-p2p-demo
9d454bd1a19325f7e19288640176a98ba17529d7
[ "BSD-3-Clause" ]
1
2021-05-14T10:39:10.000Z
2021-05-14T10:39:10.000Z
#include <QtQml> #include <QtQml/QQmlContext> #include "plugin.h" #include "reader.h" #include "service.h" void ExamplePlugin::registerTypes(const char *uri) { //@uri Example qmlRegisterSingletonType<Reader>(uri, 1, 0, "Reader", [](QQmlEngine*, QJSEngine*) -> QObject* { return new Reader; }); qmlRegisterS...
33.230769
125
0.6875
fredldotme
38563bd6ca2d1ab2791151c36de931bf1941db1c
490
cpp
C++
src/midi/sysex.cpp
ompu/ompu
c45d292a0af1b50039db9aa79e444fb7019615e9
[ "MIT" ]
4
2017-09-28T13:53:32.000Z
2018-02-14T21:29:25.000Z
src/midi/sysex.cpp
ompu/ompu
c45d292a0af1b50039db9aa79e444fb7019615e9
[ "MIT" ]
null
null
null
src/midi/sysex.cpp
ompu/ompu
c45d292a0af1b50039db9aa79e444fb7019615e9
[ "MIT" ]
null
null
null
#if 0 #include "ompu/midi/sysex.hpp" #include <boost/preprocessor/seq/for_each.hpp> #include <boost/preprocessor/seq/enum.hpp> #include <boost/preprocessor/tuple/elem.hpp> #include <boost/preprocessor/punctuation/paren.hpp> namespace ompu { namespace midi { #include "ompu/def_helper.hpp" Sysex::Sysex( OMPU_DE...
18.846154
61
0.783673
ompu
ee2c635cd391fa9e55509fe9575ca55bba1358aa
527
cpp
C++
isuniqchars.cpp
atishbits/101
4b4a8e56d82fe2706f065ded7877deebe8f6164f
[ "MIT" ]
null
null
null
isuniqchars.cpp
atishbits/101
4b4a8e56d82fe2706f065ded7877deebe8f6164f
[ "MIT" ]
null
null
null
isuniqchars.cpp
atishbits/101
4b4a8e56d82fe2706f065ded7877deebe8f6164f
[ "MIT" ]
null
null
null
#include <iostream> bool isUniqueChars(std::string str) { int checker = 0; for (int i = 0; i < str.size(); ++i) { int val = str.at(i) - 'a'; if((checker & (1<<val)) > 0) { std::cout << "returning false " << str.at(i) << std::endl; return false; } checker |= (1<<val); std::cout << " value of ch...
19.518519
68
0.531309
atishbits
ee3064bff65f51daccb1af9e8b4d6b2af0ddcb0d
12,599
cpp
C++
src/window_x11.cpp
Liyara/JWin
4e6a32195106c5f4bb07fb0fe6382daec7ddcf8f
[ "Zlib" ]
null
null
null
src/window_x11.cpp
Liyara/JWin
4e6a32195106c5f4bb07fb0fe6382daec7ddcf8f
[ "Zlib" ]
null
null
null
src/window_x11.cpp
Liyara/JWin
4e6a32195106c5f4bb07fb0fe6382daec7ddcf8f
[ "Zlib" ]
null
null
null
#include <JWin/jwin_x11.h> #ifdef JUTIL_LINUX #include <JUtil/Core/Thread.h> #include <stdlib.h> namespace jwin { namespace window_manager { jutil::Queue<Handle> registeredWindows; const long WINDOW_EVENT_MASK = ExposureMask | ButtonPressMask | KeyPressMask | KeyReleaseMask | But...
28.896789
127
0.65021
Liyara
ee31273a33d99f9661de94ab3a84999f1d688fd5
5,996
hpp
C++
engine/graphics/mesh.hpp
danielytics/gou
fa7eea77a46a238793cbfdff58265139ca8f4f6c
[ "MIT" ]
null
null
null
engine/graphics/mesh.hpp
danielytics/gou
fa7eea77a46a238793cbfdff58265139ca8f4f6c
[ "MIT" ]
null
null
null
engine/graphics/mesh.hpp
danielytics/gou
fa7eea77a46a238793cbfdff58265139ca8f4f6c
[ "MIT" ]
null
null
null
#pragma once /** * Define a mesh of vertices and their attributes, stored in VBO's and attached to a VAO * Meshes can be used for many purposes: tile maps, sprites */ #include <gou_engine.hpp> #include "shader.hpp" namespace graphics { namespace detail { template <typename T> struct VBOCompon...
34.068182
156
0.57505
danielytics
ee344680f83ba33dce7c8aecea0ed17bc5c7609d
2,317
cpp
C++
lib/src/Human.cpp
Kylerchrdsn/OOP-Strategoo
da182252ed37eca4c30d7aefa513434abb4a2ff2
[ "MIT" ]
null
null
null
lib/src/Human.cpp
Kylerchrdsn/OOP-Strategoo
da182252ed37eca4c30d7aefa513434abb4a2ff2
[ "MIT" ]
null
null
null
lib/src/Human.cpp
Kylerchrdsn/OOP-Strategoo
da182252ed37eca4c30d7aefa513434abb4a2ff2
[ "MIT" ]
null
null
null
/****************************************************** Human.cpp This is the implementation file for the Human class. ******************************************************/ #include "headers/Human.h" //***************************************************** Human::Human() : Player(0){ setName(" "); st...
28.9625
92
0.434614
Kylerchrdsn
ee398e9a22a9f089c64990fe1890868225a61e97
2,955
cc
C++
src/interface/EGLNativeInterface.cc
binouz/node-skia
27c24135e34b12777db9b63fcaeeabe2f25a27c6
[ "Apache-2.0" ]
14
2016-11-03T09:57:12.000Z
2021-04-08T02:15:49.000Z
src/interface/EGLNativeInterface.cc
binouz/node-skia
27c24135e34b12777db9b63fcaeeabe2f25a27c6
[ "Apache-2.0" ]
null
null
null
src/interface/EGLNativeInterface.cc
binouz/node-skia
27c24135e34b12777db9b63fcaeeabe2f25a27c6
[ "Apache-2.0" ]
4
2016-12-04T07:34:15.000Z
2020-07-10T06:18:45.000Z
// Copyright 2017 Aubin REBILLAT <rebillat.aubin@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 a...
24.831933
83
0.718443
binouz
ee42ab2408a76cd6ea0241d8baf4c47b38ee09c1
1,952
cpp
C++
dev/test/so_5/testing/v1/testenv_ping_pong/main.cpp
ZaMaZaN4iK/sobjectizer
afe9fc4d9fac6157860ec4459ac7a129223be87c
[ "BSD-3-Clause" ]
272
2019-05-16T11:45:54.000Z
2022-03-28T09:32:14.000Z
dev/test/so_5/testing/v1/testenv_ping_pong/main.cpp
ZaMaZaN4iK/sobjectizer
afe9fc4d9fac6157860ec4459ac7a129223be87c
[ "BSD-3-Clause" ]
40
2019-10-29T18:19:18.000Z
2022-03-30T09:02:49.000Z
dev/test/so_5/testing/v1/testenv_ping_pong/main.cpp
ZaMaZaN4iK/sobjectizer
afe9fc4d9fac6157860ec4459ac7a129223be87c
[ "BSD-3-Clause" ]
29
2019-05-16T12:05:32.000Z
2022-03-19T12:28:33.000Z
#include <so_5/experimental/testing/v1/all.hpp> #include <test/3rd_party/various_helpers/time_limited_execution.hpp> #include <test/3rd_party/various_helpers/ensure.hpp> #include <test/3rd_party/utest_helper/helper.hpp> namespace tests = so_5::experimental::testing::v1; struct ping final : public so_5::signal_t {};...
20.765957
68
0.648053
ZaMaZaN4iK
ee49ec61a4d9d6d05626cd567b318a18810abb85
1,388
cc
C++
src/caffe2/operator/cout_op.cc
TimmvonderMehden/caffe2_cpp_tutorial
d207768adaf13ae6bc8e49ba0868234001a43ce9
[ "BSD-2-Clause" ]
23
2020-09-10T14:33:18.000Z
2022-03-09T09:07:30.000Z
src/caffe2/operator/cout_op.cc
TimmvonderMehden/caffe2_cpp_tutorial
d207768adaf13ae6bc8e49ba0868234001a43ce9
[ "BSD-2-Clause" ]
2
2020-09-11T03:01:20.000Z
2020-09-30T03:04:19.000Z
src/caffe2/operator/cout_op.cc
TimmvonderMehden/caffe2_cpp_tutorial
d207768adaf13ae6bc8e49ba0868234001a43ce9
[ "BSD-2-Clause" ]
7
2020-09-17T20:53:50.000Z
2021-11-19T15:32:49.000Z
#include "caffe2/operator/cout_op.h" #include "caffe2/util/tensor.h" #ifdef WITH_CUDA #include <caffe2/core/context_gpu.h> #endif namespace caffe2 { void print(const TensorCPU &tensor, const std::string &name, int max = 100) { const auto &data = tensor.data<float>(); if (name.length() > 0) std::cout << name << ...
23.525424
80
0.619597
TimmvonderMehden
ee4d9d01bc9a851530e0be3fdafd2fb9a73f5376
1,034
cpp
C++
Codeforces/490A-team-olympiad.cpp
SusmoySenGupta/online-judge-solutions
8735a1bc71a05dc46255664c3ec6f47f042bfa6c
[ "MIT" ]
null
null
null
Codeforces/490A-team-olympiad.cpp
SusmoySenGupta/online-judge-solutions
8735a1bc71a05dc46255664c3ec6f47f042bfa6c
[ "MIT" ]
null
null
null
Codeforces/490A-team-olympiad.cpp
SusmoySenGupta/online-judge-solutions
8735a1bc71a05dc46255664c3ec6f47f042bfa6c
[ "MIT" ]
null
null
null
/* author: Susmoy Sen Gupta email: susmoy.cse@gmail.com github: github.com/SusmoySenGupta Judge: Codeforces problem no: 490A problem name: Team Olympiad problem link: https://codeforces.com/problemset/problem/490/A Status: __Solved__ Solved at: Jul/22/2021 11:16 */ #include <iostream> #define INF (int)1e9 ...
16.95082
70
0.553191
SusmoySenGupta
ee4ecb830bb8fd171918abdc5f9d8056f1c15802
21,289
cpp
C++
test/buffer/buffer_pool_manager_concurrency_test.cpp
gkai1998/bustub
50c8c27c056cca755271a440e03fff485814ed13
[ "MIT" ]
null
null
null
test/buffer/buffer_pool_manager_concurrency_test.cpp
gkai1998/bustub
50c8c27c056cca755271a440e03fff485814ed13
[ "MIT" ]
null
null
null
test/buffer/buffer_pool_manager_concurrency_test.cpp
gkai1998/bustub
50c8c27c056cca755271a440e03fff485814ed13
[ "MIT" ]
null
null
null
//===----------------------------------------------------------------------===// // // BusTub // // buffer_pool_manager_concurrency_test.cpp // // Identification: test/buffer/buffer_pool_manager_concurrency_test.cpp // // Copyright (c) 2015-2019, Carnegie Mellon University Database Group...
35.840067
119
0.559491
gkai1998
ee4ed3a6142ab11e5fc242e3c62e2df6c5e17f37
294
cpp
C++
Source/examples/not-inlined.cpp
nojhan/leathers
d8a2867a477baab515affdf320d872896e01a797
[ "BSD-2-Clause" ]
86
2015-05-11T22:47:52.000Z
2021-09-05T11:26:05.000Z
Source/examples/not-inlined.cpp
nojhan/leathers
d8a2867a477baab515affdf320d872896e01a797
[ "BSD-2-Clause" ]
6
2015-07-03T12:34:26.000Z
2020-03-08T09:01:51.000Z
Source/examples/not-inlined.cpp
nojhan/leathers
d8a2867a477baab515affdf320d872896e01a797
[ "BSD-2-Clause" ]
12
2015-09-01T11:36:37.000Z
2021-12-01T12:56:44.000Z
// Copyright (c) 2014, Ruslan Baratov // All rights reserved. #include <leathers/push> #include <leathers/padded> #include <leathers/behavior-change> #if !defined(SHOW_WARNINGS) # include <leathers/not-inlined> #endif # include <iostream> #include <leathers/pop> int main() { }
19.6
38
0.697279
nojhan
ee4edb44c6e3d998c826bae0dfcb3ee415b98b1a
1,058
cpp
C++
Phase 1 Placement Specific/15. Bit Manipulation/15.1 Basic concepts/basic_concepts.cpp
priyanshd2510/CPP-DSA
00f5d1018ae2bd4e3d9c20a8b9d06c8ea862190f
[ "Apache-2.0" ]
42
2021-01-03T17:54:59.000Z
2022-03-26T15:57:01.000Z
Phase 1 Placement Specific/15. Bit Manipulation/15.1 Basic concepts/basic_concepts.cpp
sauhard2701/CPP-DSA
1e9202c7b6a15e13aff9edd9220f362e0d84abc6
[ "Apache-2.0" ]
26
2021-04-05T07:54:21.000Z
2021-12-10T07:35:39.000Z
Phase 1 Placement Specific/15. Bit Manipulation/15.1 Basic concepts/basic_concepts.cpp
sauhard2701/CPP-DSA
1e9202c7b6a15e13aff9edd9220f362e0d84abc6
[ "Apache-2.0" ]
56
2020-12-24T17:06:33.000Z
2022-02-06T18:21:33.000Z
#include <bits/stdc++.h> //please star the repo, i update daily using namespace std; //getBit means what is value of n number at pos position,it can be 1 or 0 only(bits) int getBit(int n,int pos){ return (n & (1<<pos)) != 0; } //setBit means put 1 in n number at pos position int setBit(int n, int pos){ return ...
27.128205
97
0.62949
priyanshd2510
ee52191ca888a282ef8ca24a1610c80d44e0a158
300
cpp
C++
problemas-resolvidos/neps-academy/programacao-basica-competicoes-c++/c++/Soma_do_vetor.cpp
Ramo-UERJ/competitive-programming
7f2b821862853a7ebc1de5454914bcc9ea626083
[ "MIT" ]
null
null
null
problemas-resolvidos/neps-academy/programacao-basica-competicoes-c++/c++/Soma_do_vetor.cpp
Ramo-UERJ/competitive-programming
7f2b821862853a7ebc1de5454914bcc9ea626083
[ "MIT" ]
1
2020-07-29T13:23:25.000Z
2020-07-29T13:23:25.000Z
problemas-resolvidos/neps-academy/programacao-basica-competicoes-c++/c++/Soma_do_vetor.cpp
ieee-uerj/competitive-programming
7f2b821862853a7ebc1de5454914bcc9ea626083
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int soma_vetor(int n, int v[]){ int soma = 0; while (n > 0) { soma += v[n - 1]; n--; } return soma; } int main(){ int n, v[100100]; cin >> n; for(int i=0;i<n;i++) cin >> v[i]; cout << soma_vetor(n,v) << "\n"; }
11.538462
33
0.47
Ramo-UERJ
ee56c60fdf7fad8820efbdd900caa244d43bb07c
1,038
cpp
C++
interview_cost.cpp
shirishbahirat/code_examples
ebc8bb743b7b0a4ad1e01164cd85afc0bfe7f107
[ "MIT" ]
null
null
null
interview_cost.cpp
shirishbahirat/code_examples
ebc8bb743b7b0a4ad1e01164cd85afc0bfe7f107
[ "MIT" ]
null
null
null
interview_cost.cpp
shirishbahirat/code_examples
ebc8bb743b7b0a4ad1e01164cd85afc0bfe7f107
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using namespace std; class Solution { private: static int diff(vector<int> &x) { return x[1] - x[0]; } static bool cmpfunc(vector<int> &lhs, vector<int> &rhs) { return diff(lhs) > diff(rhs); } void printCosts(vector<vector<int>> &costs) { for (int i = 0; i < cos...
19.961538
70
0.563584
shirishbahirat
ee5ac3da0f0376c87231616b05b095be10f350ec
731
cpp
C++
leetcode.com/0378 Kth Smallest Element in a Sorted Matrix/main.cpp
sky-bro/AC
29bfa3f13994612887e18065fa6e854b9a29633d
[ "MIT" ]
1
2020-08-20T11:02:49.000Z
2020-08-20T11:02:49.000Z
leetcode.com/0378 Kth Smallest Element in a Sorted Matrix/main.cpp
sky-bro/AC
29bfa3f13994612887e18065fa6e854b9a29633d
[ "MIT" ]
null
null
null
leetcode.com/0378 Kth Smallest Element in a Sorted Matrix/main.cpp
sky-bro/AC
29bfa3f13994612887e18065fa6e854b9a29633d
[ "MIT" ]
1
2022-01-01T23:23:13.000Z
2022-01-01T23:23:13.000Z
#include <algorithm> #include <iostream> #include <vector> using namespace std; // ref: // https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/discuss/85182/My-solution-using-Binary-Search-in-C%2B%2B class Solution { public: int kthSmallest(vector<vector<int>>& matrix, int k) { int n = matrix...
25.206897
129
0.529412
sky-bro
ee68056f6b782b9bb851f465bb5b88625094ecda
4,665
hh
C++
input/specification.hh
MiaoDragon/planet
54238a892ddf78ac3327665f4c6859681c6d4142
[ "MIT" ]
7
2020-10-11T08:23:42.000Z
2022-03-03T10:23:55.000Z
input/specification.hh
MiaoDragon/planet
54238a892ddf78ac3327665f4c6859681c6d4142
[ "MIT" ]
null
null
null
input/specification.hh
MiaoDragon/planet
54238a892ddf78ac3327665f4c6859681c6d4142
[ "MIT" ]
1
2020-06-17T21:03:46.000Z
2020-06-17T21:03:46.000Z
#pragma once #ifndef SPECIFICATION_HH #define SPECIFICATION_HH #include <algorithm> #include <memory> #include <optional> #include <string> #include <tuple> #include <utility> #include "common.hh" #define SEXPRESSO_OPT_OUT_PIKESTYLE #ifndef SEXPRESSO_HEADER #include "sexpresso.hpp" #endif #include <boost/dynamic_b...
35.884615
98
0.730761
MiaoDragon
ee6a27f728b8ab0e3324416bc27c49fa8304066b
1,229
cpp
C++
PRATICA3/ExemplosAdicionaisTypeId/Exemplo1.cpp
JP-Clemente/INF213_UFV
8d6b3afd02212a0ba58ddaec04df5bb87aef9f5d
[ "MIT" ]
2
2020-11-29T08:06:31.000Z
2020-12-04T13:35:17.000Z
PRATICA3/ExemplosAdicionaisTypeId/Exemplo1.cpp
JP-Clemente/INF213_UFV
8d6b3afd02212a0ba58ddaec04df5bb87aef9f5d
[ "MIT" ]
null
null
null
PRATICA3/ExemplosAdicionaisTypeId/Exemplo1.cpp
JP-Clemente/INF213_UFV
8d6b3afd02212a0ba58ddaec04df5bb87aef9f5d
[ "MIT" ]
null
null
null
/********************************************************************* Filename: dyncast.cpp Compiler: Borland C++ Version 5.1 Summer 1997 Ira Pohl Copyright May 1997 Normally a safe cast that is portable A supplemental example showing the use of dynamic_cast See p 347 section 10.9...
22.345455
80
0.472742
JP-Clemente
ee7d9579c3204afffeab1a6b9655cd6b339e2e95
1,898
cc
C++
ext/spyglass/point.cc
andremedeiros/spyglass
6975234f677d19ecee481c0d9deae17219c6887e
[ "MIT" ]
5
2015-03-17T04:10:12.000Z
2016-06-21T07:26:45.000Z
ext/spyglass/point.cc
andremedeiros/spyglass
6975234f677d19ecee481c0d9deae17219c6887e
[ "MIT" ]
null
null
null
ext/spyglass/point.cc
andremedeiros/spyglass
6975234f677d19ecee481c0d9deae17219c6887e
[ "MIT" ]
null
null
null
#include "point.h" extern VALUE rb_mSpyglass; VALUE rb_cPoint = Qnil; void rb_point_init() { // Class definition rb_cPoint = rb_define_class_under(rb_mSpyglass, "Point", rb_cObject); rb_define_alloc_func(rb_cPoint, rb_point_alloc); rb_define_method(rb_cPoint, "initialize", RUBY_METHOD_FUNC(rb_point_initializ...
21.816092
86
0.726554
andremedeiros
ee811c1b85a408062214577fd56978cc4b8e444f
362
cpp
C++
3sizeof.cpp
Ankitahazra-1906/cpp
31412ffc844cbafb6dd8a64e031676b48acadfe2
[ "MIT" ]
2
2021-11-11T19:18:16.000Z
2021-11-13T11:23:03.000Z
3sizeof.cpp
Ankitahazra-1906/cp
24ab374184e440c17b467967995b2f6324baa2a6
[ "MIT" ]
null
null
null
3sizeof.cpp
Ankitahazra-1906/cp
24ab374184e440c17b467967995b2f6324baa2a6
[ "MIT" ]
null
null
null
/*To find the size of int,float,char,double*/ #include<iostream> using namespace std; int main() { cout<<"Size of char is: "<<sizeof(char)<< " byte"<<endl; cout<<"Size of int is: "<<sizeof(int)<< " bytes"<<endl; cout<<"Size of float is: "<<sizeof(float)<< " bytes"<<endl; cout<<"Size of double is...
32.909091
66
0.593923
Ankitahazra-1906
ee8378152e74aecf4412c0650e92c7a504f4cf66
7,866
cc
C++
src/Capture/RawHelper.cc
tmq902005/RealSenseID
b6882748cc7f47e041089c09a40eab6b0043fc9f
[ "Apache-2.0" ]
63
2020-12-27T16:56:36.000Z
2022-03-25T06:20:36.000Z
src/Capture/RawHelper.cc
tmq902005/RealSenseID
b6882748cc7f47e041089c09a40eab6b0043fc9f
[ "Apache-2.0" ]
122
2021-01-14T11:14:28.000Z
2022-03-08T06:15:29.000Z
src/Capture/RawHelper.cc
Surfndez/RealSenseID
f29171b8a5aba828d40e0ab120550730e5fbc080
[ "Apache-2.0" ]
39
2020-12-30T09:58:24.000Z
2022-03-18T01:58:40.000Z
// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2020-2021 Intel Corporation. All Rights Reserved. #include "RawHelper.h" #include <bitset> #include <cstdint> #include <cstring> namespace RealSenseID { namespace Capture { inline uint8_t Raw8Value(const uint8_t* src, int baseoff, int mod5) ...
27.030928
113
0.5239
tmq902005
ee8b8995be0ba11c1266ff6bcefff4ba89889803
177
cpp
C++
test/snippet/alignment/configuration/align_cfg_global_mode_example.cpp
marehr/nomchop
a88bfb6f5d4a291a71b6b3192eeac81fdc450d43
[ "CC-BY-4.0", "CC0-1.0" ]
4
2018-03-09T09:37:51.000Z
2020-07-28T04:52:01.000Z
test/snippet/alignment/configuration/align_cfg_global_mode_example.cpp
simonsasse/seqan3
0ff2e117952743f081735df9956be4c512f4ccba
[ "CC0-1.0", "CC-BY-4.0" ]
2
2017-05-17T07:16:19.000Z
2020-02-13T16:10:10.000Z
test/snippet/alignment/configuration/align_cfg_global_mode_example.cpp
simonsasse/seqan3
0ff2e117952743f081735df9956be4c512f4ccba
[ "CC0-1.0", "CC-BY-4.0" ]
1
2018-03-09T09:37:54.000Z
2018-03-09T09:37:54.000Z
#include <seqan3/alignment/configuration/align_config_mode.hpp> int main() { // Select the global mode. seqan3::align_cfg::mode cfg_global{seqan3::global_alignment}; }
22.125
65
0.745763
marehr
ee8cff8ce18fb5cc14dc179913b2f9393397593f
1,184
hpp
C++
cslibs_ndt_2d/include/cslibs_ndt_2d/serialization/static_maps/gridmap.hpp
doge-of-the-day/cslibs_ndt
f326d05d5bde9750ad595790849eb2ac9a747123
[ "BSD-3-Clause" ]
36
2018-10-17T07:00:23.000Z
2021-12-22T15:41:50.000Z
cslibs_ndt_2d/include/cslibs_ndt_2d/serialization/static_maps/gridmap.hpp
doge-of-the-day/cslibs_ndt
f326d05d5bde9750ad595790849eb2ac9a747123
[ "BSD-3-Clause" ]
4
2018-10-04T14:16:28.000Z
2020-11-26T10:03:14.000Z
cslibs_ndt_2d/include/cslibs_ndt_2d/serialization/static_maps/gridmap.hpp
doge-of-the-day/cslibs_ndt
f326d05d5bde9750ad595790849eb2ac9a747123
[ "BSD-3-Clause" ]
18
2018-07-15T14:39:56.000Z
2021-05-05T11:12:51.000Z
#ifndef CSLIBS_NDT_2D_SERIALIZATION_STATIC_MAPS_GRIDMAP_HPP #define CSLIBS_NDT_2D_SERIALIZATION_STATIC_MAPS_GRIDMAP_HPP #include <cslibs_ndt_2d/static_maps/gridmap.hpp> #include <cslibs_ndt/serialization/map.hpp> namespace cslibs_ndt_2d { namespace static_maps { template <typename T> inline bool saveBinary(const typ...
33.828571
127
0.744932
doge-of-the-day
ee8fe6ce6f8863646dd1534f2e7ed0c0d62ca88a
571
cpp
C++
hihocoder/Contest/27/B/make.cpp
sjj118/OI-Code
964ea6e799d14010f305c7e4aee269d860a781f7
[ "MIT" ]
null
null
null
hihocoder/Contest/27/B/make.cpp
sjj118/OI-Code
964ea6e799d14010f305c7e4aee269d860a781f7
[ "MIT" ]
null
null
null
hihocoder/Contest/27/B/make.cpp
sjj118/OI-Code
964ea6e799d14010f305c7e4aee269d860a781f7
[ "MIT" ]
null
null
null
#include<iostream> #include<cstdio> #include<cstdlib> #include<ctime> #define rg register #define rep(i,x,y) for(int i=(x);i<=(y);++i) #define per(i,x,y) for(int i=(x);i>=(y);--i) const int N=1e5+10; struct Edge{ int u,v; Edge(){} Edge(int u,int v):u(u),v(v){} void output(){printf("%d %d\n",u,v);} }e[N]; int main()...
20.392857
50
0.574431
sjj118
ee8ff2dd9038495873e055086feb1aeaa89a2857
2,250
cpp
C++
src/hlhapiutil.cpp
onehundredfeet/hl-houdiniengine
551405ef318f04848ab584d7f655eb15f4436503
[ "BSD-3-Clause" ]
null
null
null
src/hlhapiutil.cpp
onehundredfeet/hl-houdiniengine
551405ef318f04848ab584d7f655eb15f4436503
[ "BSD-3-Clause" ]
null
null
null
src/hlhapiutil.cpp
onehundredfeet/hl-houdiniengine
551405ef318f04848ab584d7f655eb15f4436503
[ "BSD-3-Clause" ]
null
null
null
#include "hlhapiutil.hpp" #include "hl_string_helpers.h" namespace Houdini { // vdynamic *GetLastError(HAPI_Result code, HAPI_Session* session, HAPI_StatusType statusType) { int buffer_length = 0; auto x = HAPI_GetStatusStringBufLength(nullptr, statusType, HAPI_STATUSVERBOSITY_ERRORS, &buffer_length ) ...
27.777778
111
0.661778
onehundredfeet
ee92832859cda58151d7c307a8e46a74957e9f1b
2,175
cpp
C++
src/GFilePipe.cpp
GinoBogo/gLIB
e39f2f4f3614c5250e8fcecc292831e1ff5011f3
[ "MIT" ]
1
2022-03-15T01:58:09.000Z
2022-03-15T01:58:09.000Z
src/GFilePipe.cpp
TanfLuo/gLIB
b4960b9e467e6add881760f3ba7f3ba2d91c7fb7
[ "MIT" ]
null
null
null
src/GFilePipe.cpp
TanfLuo/gLIB
b4960b9e467e6add881760f3ba7f3ba2d91c7fb7
[ "MIT" ]
1
2022-03-15T01:57:44.000Z
2022-03-15T01:57:44.000Z
//////////////////////////////////////////////////////////////////////////////// /// \file GFilePipe.cpp /// \version 0.2 /// \date December 2020 /// \author Gino Francesco Bogo /// \copyright This file is released under the MIT license ////////////////////////////////////////////////////////////////////...
35.655738
132
0.576092
GinoBogo
ee9946e45e4a403662e11cd54ff91bcbdef8bf66
11,805
cpp
C++
libinendi/src/PVMineset.cpp
inendi-inspector/inspector
9b9a00222d8a73cb0817ca56790ee9155db61cc4
[ "MIT" ]
null
null
null
libinendi/src/PVMineset.cpp
inendi-inspector/inspector
9b9a00222d8a73cb0817ca56790ee9155db61cc4
[ "MIT" ]
null
null
null
libinendi/src/PVMineset.cpp
inendi-inspector/inspector
9b9a00222d8a73cb0817ca56790ee9155db61cc4
[ "MIT" ]
null
null
null
// // MIT License // // © ESI Group, 2015 // // 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, pu...
31.648794
100
0.702838
inendi-inspector
ee9d3a9edf49676a34941f695bcadd2f332f206c
93
hpp
C++
external/oqpi/include/oqpi/threading.hpp
ehei1/orbit
f990a7f9abb7d330e93d0d20018a62869890f04e
[ "BSD-2-Clause" ]
44
2017-01-07T18:33:32.000Z
2021-01-28T03:30:27.000Z
external/oqpi/include/oqpi/threading.hpp
ehei1/orbit
f990a7f9abb7d330e93d0d20018a62869890f04e
[ "BSD-2-Clause" ]
3
2022-02-15T02:46:06.000Z
2022-02-28T01:28:39.000Z
external/oqpi/include/oqpi/threading.hpp
ehei1/orbit
f990a7f9abb7d330e93d0d20018a62869890f04e
[ "BSD-2-Clause" ]
6
2017-01-14T19:04:50.000Z
2021-04-18T17:42:23.000Z
#pragma once #include "oqpi/threading/thread.hpp" #include "oqpi/threading/this_thread.hpp"
18.6
41
0.784946
ehei1
eea76530b02bd7e8f92434b875cb47d23880bcf7
1,066
cpp
C++
Ejercicio 44-Punta-de-venta-parte-V/productos.cpp
Kenpa16/cpp
6b6a266c3f2c02888829a1919cea68bbf9d2d106
[ "MIT" ]
null
null
null
Ejercicio 44-Punta-de-venta-parte-V/productos.cpp
Kenpa16/cpp
6b6a266c3f2c02888829a1919cea68bbf9d2d106
[ "MIT" ]
null
null
null
Ejercicio 44-Punta-de-venta-parte-V/productos.cpp
Kenpa16/cpp
6b6a266c3f2c02888829a1919cea68bbf9d2d106
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; extern void agregarProductos(string descripcion, int cantidad, double precio); void productos (int opcion) { system ("cls"); int opcionProducto=0; switch (opcion) { case 1: { cout <<"BEBIDAS CALIENTES"<<endl; cout <<"*****************"<<...
14.60274
79
0.505629
Kenpa16
eea88a84f78ee813cab63bf56356f4f59396ce38
997
hpp
C++
include/arg_parser.hpp
Panky-codes/MoxC
cf14ae38c221dea7c71c4b17e2b80ea099e6e181
[ "MIT" ]
null
null
null
include/arg_parser.hpp
Panky-codes/MoxC
cf14ae38c221dea7c71c4b17e2b80ea099e6e181
[ "MIT" ]
null
null
null
include/arg_parser.hpp
Panky-codes/MoxC
cf14ae38c221dea7c71c4b17e2b80ea099e6e181
[ "MIT" ]
null
null
null
#ifndef ARG_PARSER_HPP #define ARG_PARSER_HPP // Own header #include "data_types.hpp" // System header #include <tuple> // Third-party header #include "argparse/argparse.hpp" class ArgParser { public: explicit ArgParser(const std::string &exe_name); void parseArgs(int argc, char *argv[]); // NOLINT void config...
29.323529
71
0.737212
Panky-codes
eeac3b9bbc21a9d1301246563fed91b0be67adc5
291
cpp
C++
URI/Beginner/Parity.cpp
Mhmd-Hisham/Problem-Solving
7ce0955b697e735c5ccb37347d9bec83e57339b5
[ "MIT" ]
null
null
null
URI/Beginner/Parity.cpp
Mhmd-Hisham/Problem-Solving
7ce0955b697e735c5ccb37347d9bec83e57339b5
[ "MIT" ]
null
null
null
URI/Beginner/Parity.cpp
Mhmd-Hisham/Problem-Solving
7ce0955b697e735c5ccb37347d9bec83e57339b5
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int n = 0; string s = ""; int main () { cin >> s; for (int i = 0;i < s.length(); i++){ if (s[i] == '1') n++; } s += (n%2 == 0)? '0' : '1'; cout << s << '\n'; return 0; } /* input:- ----------- output:- ----------- Problem: */
10.034483
37
0.398625
Mhmd-Hisham
eeafa1f1363b53f858ae5f939383b22523df1e95
3,001
cpp
C++
FusionYield.cpp
MylesKelly/MCTrans
9d38178d3150d4c1dcde16489a2df3cca2d49c74
[ "BSD-3-Clause" ]
2
2022-02-10T15:55:10.000Z
2022-02-10T15:56:00.000Z
FusionYield.cpp
MylesKelly/MCTrans
9d38178d3150d4c1dcde16489a2df3cca2d49c74
[ "BSD-3-Clause" ]
7
2021-05-25T20:06:08.000Z
2021-09-02T05:58:49.000Z
FusionYield.cpp
MylesKelly/MCTrans
9d38178d3150d4c1dcde16489a2df3cca2d49c74
[ "BSD-3-Clause" ]
1
2022-01-05T19:55:49.000Z
2022-01-05T19:55:49.000Z
#include "FusionYield.hpp" #include "MirrorPlasma.hpp" #include <cmath> double FusionReactions::SigmaAverageDT( double Ti ) { // From plasma formulary // Note n_e is in units of 10^20/m^3, Formulary is in particles per cc // we keep intermediate result in cm^3/s return 3.68e-12 * ::pow( Ti, -2./3. ) * ::exp( -19....
35.305882
157
0.723759
MylesKelly
eeb3054917700e6945f26696852209514a5922ff
1,715
cpp
C++
algorithms/cpp/Problems 101-200/_173_BinarySearchTreeIterator.cpp
shivamacs/LeetCode
f8f8b4e9872c47fbaaf9196c422f7e04986e6c3a
[ "MIT" ]
null
null
null
algorithms/cpp/Problems 101-200/_173_BinarySearchTreeIterator.cpp
shivamacs/LeetCode
f8f8b4e9872c47fbaaf9196c422f7e04986e6c3a
[ "MIT" ]
null
null
null
algorithms/cpp/Problems 101-200/_173_BinarySearchTreeIterator.cpp
shivamacs/LeetCode
f8f8b4e9872c47fbaaf9196c422f7e04986e6c3a
[ "MIT" ]
null
null
null
/* Source - https://leetcode.com/problems/binary-search-tree-iterator/ Author - Shivam Arora */ #include <bits/stdc++.h> using namespace std; struct TreeNode { int val; TreeNode* left, *right; TreeNode(int v) { val = v; left = right = NULL; } }; class BSTIterator { stack<TreeNo...
25.220588
70
0.533528
shivamacs
eeb7f45db129a55bb5f1c64eb9f3287d3e9855f4
742
cpp
C++
src/practice/src/hackerrank/src/abbreviation.cpp
behnamasadi/data_structure_algorithm
ba58f96b4cb1f9a4c4b2dc748aed75370747cbe7
[ "BSD-3-Clause" ]
1
2020-05-31T02:01:17.000Z
2020-05-31T02:01:17.000Z
src/practice/src/hackerrank/src/abbreviation.cpp
behnamasadi/data_structure_algorithm
ba58f96b4cb1f9a4c4b2dc748aed75370747cbe7
[ "BSD-3-Clause" ]
null
null
null
src/practice/src/hackerrank/src/abbreviation.cpp
behnamasadi/data_structure_algorithm
ba58f96b4cb1f9a4c4b2dc748aed75370747cbe7
[ "BSD-3-Clause" ]
null
null
null
#include <bits/stdc++.h> using namespace std; bool recursiveAbbreviation(string a, string b) { if(a.at(0)==b.at(0)) //return recursiveAbbreviation(a.substr(1), b); return true; return false; } // Complete the abbreviation function below. string abbreviation(string a, string b) { ...
16.130435
56
0.559299
behnamasadi
eeb8f93da68ca135d06a1b01f1a6d6df5347e139
1,553
cpp
C++
sources/core/entities_manager.cpp
wonderwombatgames/hydrogine
c44c113090a7a3e9357775c69b3e94adb9d6569d
[ "MIT" ]
null
null
null
sources/core/entities_manager.cpp
wonderwombatgames/hydrogine
c44c113090a7a3e9357775c69b3e94adb9d6569d
[ "MIT" ]
null
null
null
sources/core/entities_manager.cpp
wonderwombatgames/hydrogine
c44c113090a7a3e9357775c69b3e94adb9d6569d
[ "MIT" ]
null
null
null
/** * */ #include "base/entities_manager.hpp" #include "systems/interface.hpp" namespace W2E { using namespace System; // // EntitiesManager Methods // EntitiesManager* EntitiesManager::instance() { LOCAL_PERSISTENT EntitiesManager* sinstance_ = nullptr; if(nullptr == sinstance_) { sinstance_ = new E...
19.4125
71
0.674179
wonderwombatgames
eebee8e33396f3002ee059dbcdd49e2edc5a4f6e
840
hpp
C++
src/gameworld/gameworld/other/fb/rolefbzhanshendian.hpp
mage-game/metagame-xm-server
193b67389262803fe0eae742800b1e878b5b3087
[ "MIT" ]
3
2021-12-16T13:57:28.000Z
2022-03-26T07:50:08.000Z
src/gameworld/gameworld/other/fb/rolefbzhanshendian.hpp
mage-game/metagame-xm-server
193b67389262803fe0eae742800b1e878b5b3087
[ "MIT" ]
null
null
null
src/gameworld/gameworld/other/fb/rolefbzhanshendian.hpp
mage-game/metagame-xm-server
193b67389262803fe0eae742800b1e878b5b3087
[ "MIT" ]
1
2022-03-26T07:50:11.000Z
2022-03-26T07:50:11.000Z
#ifndef _ROLEZHANSHENDIAN_HPP_ #define _ROLEZHANSHENDIAN_HPP_ #include "obj/character/attribute.hpp" class Role; class RoleZhanshenDian { public: RoleZhanshenDian(); ~RoleZhanshenDian(); void SetRole(Role *role) { m_role = role; } void Init(Role *role, short zhanshendian_pass_level, short yesterday_pass_level,...
21.538462
123
0.80119
mage-game
eec10c89b363a44fbbdc80115118f86a6bc4fcee
454
cpp
C++
WebAssembly/fpzip/src/version.cpp
jvo203/FITSWEBQLSE
3b2b3c74d623c3510cfa81a4e30ac5bd0af48cb0
[ "MIT" ]
60
2020-01-03T20:12:39.000Z
2022-03-14T19:46:22.000Z
WebAssembly/fpzip/src/version.cpp
jvo203/FITSWEBQLSE
3b2b3c74d623c3510cfa81a4e30ac5bd0af48cb0
[ "MIT" ]
4
2020-06-05T16:59:29.000Z
2021-06-16T09:06:02.000Z
WebAssembly/fpzip/src/version.cpp
jvo203/FITSWEBQLSE
3b2b3c74d623c3510cfa81a4e30ac5bd0af48cb0
[ "MIT" ]
5
2020-03-13T10:18:17.000Z
2021-08-28T18:04:41.000Z
#include "fpzip.h" #include "types.h" const unsigned int fpzip_codec_version = FPZIP_CODEC; const unsigned int fpzip_library_version = FPZIP_VERSION; const char* const fpzip_version_string = "fpzip version " FPZIP_VERSION_STRING " (December 20, 2019)"; const unsigned int fpzip_data_model = (unsigned int)( ((sizeof(u...
34.923077
102
0.69163
jvo203