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
1a3bccad1ad3d1786610dd85c77794be9d17408b
5,254
hpp
C++
smartenum.hpp
therocode/smartenum
aba73929deb45d53ae2bb6cfccddbad080c365bd
[ "MIT" ]
65
2015-10-06T15:56:25.000Z
2022-02-22T09:57:35.000Z
src/Smartenum.hpp
dalyl-zero/prAIg
de1184873424e72c94ad463f24b5744769b791de
[ "MIT" ]
4
2015-10-06T18:14:04.000Z
2018-03-06T11:24:54.000Z
src/Smartenum.hpp
dalyl-zero/prAIg
de1184873424e72c94ad463f24b5744769b791de
[ "MIT" ]
14
2015-10-06T16:58:02.000Z
2020-05-09T09:21:30.000Z
#pragma once #include <string> #include <unordered_map> #include <vector> #include <cstdint> #include <iostream> namespace smart_enum { inline std::string trimWhitespace(std::string str) { // trim trailing whitespace size_t endPos = str.find_last_not_of(" \t"); if(std::string::npos != e...
31.650602
118
0.606585
therocode
1a3bed8cf05e05d2b2bbc5c1da0cb75f6d255c46
27,836
hpp
C++
alpaka/include/alpaka/pltf/PltfGenericSycl.hpp
ComputationalRadiationPhysics/mallocMC
bb2b32a4a56f7c892e14454bf6aa373a4870c32c
[ "MIT" ]
25
2015-01-30T12:19:48.000Z
2020-10-30T07:52:45.000Z
alpaka/include/alpaka/pltf/PltfGenericSycl.hpp
ComputationalRadiationPhysics/mallocMC
bb2b32a4a56f7c892e14454bf6aa373a4870c32c
[ "MIT" ]
101
2015-01-06T11:31:26.000Z
2020-11-09T13:51:19.000Z
alpaka/include/alpaka/pltf/PltfGenericSycl.hpp
ComputationalRadiationPhysics/mallocMC
bb2b32a4a56f7c892e14454bf6aa373a4870c32c
[ "MIT" ]
10
2015-06-10T07:54:30.000Z
2020-05-06T10:07:39.000Z
/* Copyright 2022 Jan Stephan * * This file is part of Alpaka. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #pragma once #ifdef ALPAKA_ACC_SYCL_ENABLED ...
40.459302
118
0.48854
ComputationalRadiationPhysics
1a3c09925f96cbafc46b55a1d1437f6f778604a1
2,218
inl
C++
src/Point.inl
Leon0402/Project-Hexapod
98aebd80282560fb7ac86d72b78a798e78f86ab1
[ "MIT" ]
6
2018-08-10T14:29:16.000Z
2022-03-31T12:53:28.000Z
src/Point.inl
Leon0402/Project-Hexapod
98aebd80282560fb7ac86d72b78a798e78f86ab1
[ "MIT" ]
null
null
null
src/Point.inl
Leon0402/Project-Hexapod
98aebd80282560fb7ac86d72b78a798e78f86ab1
[ "MIT" ]
1
2020-06-18T17:23:14.000Z
2020-06-18T17:23:14.000Z
#ifndef POINT_INL #define POINT_INL #ifndef X86_64 #include <math.h> #else #include <cmath> #endif template <typename T> Point<T>::Point(T x, T y , T z) : x {x}, y {y}, z {z} {} template <typename T> void Point<T>::rotateX(T angle) { T y0 = this->y; T z0 = this->z; this->y = y0*cos(angle*M_PI/180.0f) - z0*...
35.774194
153
0.638864
Leon0402
1a3fa08aa466b6184c7583bef0b7cef7f17b41fc
967
cpp
C++
Rosewood/src/Rosewood/Benchmark/Benchmark.cpp
dovker/Rosewood
5131a061632732222ce68e5da5a257b8bda36ea5
[ "Apache-2.0" ]
1
2020-10-02T15:59:00.000Z
2020-10-02T15:59:00.000Z
Rosewood/src/Rosewood/Benchmark/Benchmark.cpp
dovker/Rosewood
5131a061632732222ce68e5da5a257b8bda36ea5
[ "Apache-2.0" ]
null
null
null
Rosewood/src/Rosewood/Benchmark/Benchmark.cpp
dovker/Rosewood
5131a061632732222ce68e5da5a257b8bda36ea5
[ "Apache-2.0" ]
null
null
null
#include "rwpch.h" #include "Benchmark.h" namespace Rosewood { static std::vector<std::pair<std::string, double>> s_Benchmarks; void Benchmark::Init() { s_Benchmarks = std::vector<std::pair<std::string, double>>(); s_Benchmarks.reserve(20); } void Benchmark::Reset() { s...
24.794872
129
0.574974
dovker
1a4146d8664e6013d2c5eee9254de4306392b91d
7,685
cpp
C++
src/App.cpp
GabrielRavier/nx-fontgen
c9af580a22a3e12deb2746cd61a384f9de39c28a
[ "MIT" ]
1
2021-07-14T11:16:05.000Z
2021-07-14T11:16:05.000Z
src/App.cpp
GabrielRavier/nx-fontgen
c9af580a22a3e12deb2746cd61a384f9de39c28a
[ "MIT" ]
null
null
null
src/App.cpp
GabrielRavier/nx-fontgen
c9af580a22a3e12deb2746cd61a384f9de39c28a
[ "MIT" ]
1
2018-08-13T16:06:15.000Z
2018-08-13T16:06:15.000Z
#include "App.h" #include "ProgramOptions.h" #include <SDL.h> #include <string> #include <fstream> #include <array> #include <limits> #include <algorithm> #include <iomanip> #include <iostream> #include "sdlSavePng/savepng.h" #include "FontInfo.h" std::vector<rbp::RectSize> App::getSrcRects(const Glyphs &glyphs, int a...
32.702128
135
0.572154
GabrielRavier
1a426c9d20ce8d13da6473e2d49c68acc0c96fc3
282
hpp
C++
src/service/parse/abstract_object_parser.hpp
JustSlavic/gl2
1b4752d3273a1e401c970e18ae7151bba004a4ec
[ "MIT" ]
null
null
null
src/service/parse/abstract_object_parser.hpp
JustSlavic/gl2
1b4752d3273a1e401c970e18ae7151bba004a4ec
[ "MIT" ]
2
2021-05-29T20:34:50.000Z
2021-05-29T20:39:25.000Z
src/service/parse/abstract_object_parser.hpp
JustSlavic/gl2
1b4752d3273a1e401c970e18ae7151bba004a4ec
[ "MIT" ]
null
null
null
#pragma once #include <defines.h> #include <service/abstract_object.hpp> namespace service { struct abstract_object_parser { void* impl = nullptr; void initialize (const char* text, size_t size); void terminate (); abstract_object parse (); }; } // service
13.428571
52
0.684397
JustSlavic
1a4601e614ca78c5835226f8de71526bee8eae00
5,039
cpp
C++
src/vk/device.cpp
fur-id/sample
8c68498ad14cc5f8869df2b9ea4ff2a91be9b558
[ "MIT" ]
null
null
null
src/vk/device.cpp
fur-id/sample
8c68498ad14cc5f8869df2b9ea4ff2a91be9b558
[ "MIT" ]
null
null
null
src/vk/device.cpp
fur-id/sample
8c68498ad14cc5f8869df2b9ea4ff2a91be9b558
[ "MIT" ]
null
null
null
#include "vk_private.h" #include <set> void createDevice(std::function<void(VkPhysicalDevice pdev, VkPhysicalDeviceFeatures& enabledFeatures)> validator) { uint32_t count; vkcall(vkEnumeratePhysicalDevices(ctx.instance, &count, nullptr)); std::vector<VkPhysicalDevice> physicalDevices(count); vkcall(vk...
42.70339
116
0.631078
fur-id
1a4696dd04340b3c8f7c672dd53fd73cfb828e81
8,556
cc
C++
src/cards.cc
thomasmarsh/monkey
de79536cad78371cf25ea0c26a492f700e2c92f8
[ "MIT" ]
6
2016-08-31T06:26:32.000Z
2022-02-10T23:28:29.000Z
src/cards.cc
thomasmarsh/monkey
de79536cad78371cf25ea0c26a492f700e2c92f8
[ "MIT" ]
1
2017-04-26T16:37:35.000Z
2017-04-26T16:37:35.000Z
src/cards.cc
thomasmarsh/monkey
de79536cad78371cf25ea0c26a492f700e2c92f8
[ "MIT" ]
null
null
null
#include "cards.h" #include "log.h" #include <json11.hpp> #include <fstream> using namespace json11; using CardTable = std::vector<Card>; std::map<Action,std::string> CARD_ACTION_DESC; CardTable CARD_TABLE_PROTO; CardTable CARD_TABLE; const Card& Card::Get(CardRef card) { return CARD_TABLE[card]; } std::strin...
35.65
84
0.584385
thomasmarsh
1a477ec810c4ef21fd2a882989d812e1ddbfa0af
1,048
cpp
C++
test/unit/property_map.cpp
hotgloupi/configure
888cf725c93df5a1cf01794cc0a581586a82855c
[ "BSD-3-Clause" ]
1
2015-11-13T10:37:35.000Z
2015-11-13T10:37:35.000Z
test/unit/property_map.cpp
hotgloupi/configure
888cf725c93df5a1cf01794cc0a581586a82855c
[ "BSD-3-Clause" ]
19
2015-02-10T17:18:58.000Z
2015-07-11T11:31:08.000Z
test/unit/property_map.cpp
hotgloupi/configure
888cf725c93df5a1cf01794cc0a581586a82855c
[ "BSD-3-Clause" ]
null
null
null
#include <configure/PropertyMap.hpp> BOOST_AUTO_TEST_CASE(dirtyness) { configure::PropertyMap m; BOOST_CHECK_EQUAL(m.dirty(), false); m.set<std::string>("test", "lol"); BOOST_CHECK_EQUAL(m.dirty(), true); m.mark_clean(); BOOST_CHECK_EQUAL(m.dirty(), false); m.set<std::string>("test", "lol"); BOOST_CHECK_E...
24.372093
43
0.693702
hotgloupi
1a47b95dfd18ccdecdf8f894674599ae22fcf099
61,234
cpp
C++
src/ciyam_files.cpp
Aloz1/ciyam
424b47fd73fa1f6a1a076f8908ae7086eeeeedc5
[ "MIT" ]
null
null
null
src/ciyam_files.cpp
Aloz1/ciyam
424b47fd73fa1f6a1a076f8908ae7086eeeeedc5
[ "MIT" ]
null
null
null
src/ciyam_files.cpp
Aloz1/ciyam
424b47fd73fa1f6a1a076f8908ae7086eeeeedc5
[ "MIT" ]
null
null
null
// Copyright (c) 2013-2018 CIYAM Developers // // Distributed under the MIT/X11 software license, please refer to the file license.txt // in the root project directory or http://www.opensource.org/licenses/mit-license.php. #ifdef PRECOMPILE_H # include "precompile.h" #endif #pragma hdrstop #ifndef HAS_PRECOMPILED_ST...
27.833636
126
0.58461
Aloz1
1a4b7ecf70b457d612bc520e986269c3a6a51fab
1,285
cpp
C++
src/scene/controls/scroll_pane.cpp
tralf-strues/simple-gui-library
cf72b11d0d245d1a1fefbae10e4aa7fb9e763bff
[ "MIT" ]
null
null
null
src/scene/controls/scroll_pane.cpp
tralf-strues/simple-gui-library
cf72b11d0d245d1a1fefbae10e4aa7fb9e763bff
[ "MIT" ]
null
null
null
src/scene/controls/scroll_pane.cpp
tralf-strues/simple-gui-library
cf72b11d0d245d1a1fefbae10e4aa7fb9e763bff
[ "MIT" ]
null
null
null
/** * @author Nikita Mochalov (github.com/tralf-strues) * @file scroll_pane.cpp * @date 2021-12-13 * * @copyright Copyright (c) 2021 */ #include "scene/controls/scroll_pane.h" #include "scene/style/default_skins.h" using namespace Sgl; ScrollPane::ScrollPane() { m_DefaultSkin = new DefaultSkins::ScrollPan...
35.694444
96
0.752529
tralf-strues
1a4e5fc1e6a911d08568bddefbaeb8fad7302c39
1,139
cpp
C++
Engine/src/platform/OpenGL/OpenGLContext.cpp
PalliativeX/GameEngine
704cf5f3ebc81fdf5e3e514908c3ac47305ccd33
[ "Apache-2.0" ]
null
null
null
Engine/src/platform/OpenGL/OpenGLContext.cpp
PalliativeX/GameEngine
704cf5f3ebc81fdf5e3e514908c3ac47305ccd33
[ "Apache-2.0" ]
null
null
null
Engine/src/platform/OpenGL/OpenGLContext.cpp
PalliativeX/GameEngine
704cf5f3ebc81fdf5e3e514908c3ac47305ccd33
[ "Apache-2.0" ]
null
null
null
#include "enginepch.h" #include "OpenGLContext.h" #include "GLFW/glfw3.h" #include "glad/glad.h" namespace Engine { OpenGLContext::OpenGLContext(GLFWwindow* WindowHandle) : windowHandle(WindowHandle) { ENGINE_ASSERT(windowHandle, "Window Handle is null!"); } void OpenGLContext::init() { ENGINE_PROFILE_...
23.729167
127
0.738367
PalliativeX
1a4f344a2f2171bbd28f19018eefcb49febfbce1
195
cpp
C++
source/procedural_objects/unknown_operation.cpp
diegoarjz/selector
976abd0d9e721639e6314e2599ef7e6f3dafdc4f
[ "MIT" ]
12
2019-04-16T17:35:53.000Z
2020-04-12T14:37:27.000Z
source/procedural_objects/unknown_operation.cpp
diegoarjz/selector
976abd0d9e721639e6314e2599ef7e6f3dafdc4f
[ "MIT" ]
47
2019-05-27T15:24:43.000Z
2020-04-27T17:54:54.000Z
source/procedural_objects/unknown_operation.cpp
diegoarjz/selector
976abd0d9e721639e6314e2599ef7e6f3dafdc4f
[ "MIT" ]
null
null
null
#include "unknown_operation.h" namespace pagoda { UnknownOperation::UnknownOperation(const std::string operationName) : Exception("Unknown operation " + operationName) {} } // namespace pagoda
27.857143
120
0.779487
diegoarjz
1a53556f26b6c5c800edb92945b3ebba9cc99c43
2,935
cpp
C++
TestCases/TestCase_007-Input/InputEffect.cpp
freehyan/Cooler
4940cec6f98730187cf5131f0c523ff8bbb3f8c1
[ "MIT" ]
12
2017-07-05T11:45:44.000Z
2019-03-27T11:43:50.000Z
TestCases/TestCase_007-Input/InputEffect.cpp
freehyan/Cooler
4940cec6f98730187cf5131f0c523ff8bbb3f8c1
[ "MIT" ]
null
null
null
TestCases/TestCase_007-Input/InputEffect.cpp
freehyan/Cooler
4940cec6f98730187cf5131f0c523ff8bbb3f8c1
[ "MIT" ]
null
null
null
#include "InputEffect.h" #include <GLM/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <SOIL/SOIL.h> #include "../../Cooler/Cooler/ProductFactory.h" #include "../../Cooler/Cooler/GraphicsInterface.h" #include "../../Cooler/Cooler/InputTransformer.h" Cooler::CProductFactory<CInputEffect> theCreater("INPUT_EFF...
29.35
102
0.649404
freehyan
1a58b353db84ada41094f87d7595a143ed0b1794
8,325
hpp
C++
include/tudocomp/compressors/lz78/CedarTrie.hpp
JZentgraf/tudocomp
3a4522e3089716e4483b935e74aaae56cc547589
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
include/tudocomp/compressors/lz78/CedarTrie.hpp
JZentgraf/tudocomp
3a4522e3089716e4483b935e74aaae56cc547589
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
include/tudocomp/compressors/lz78/CedarTrie.hpp
JZentgraf/tudocomp
3a4522e3089716e4483b935e74aaae56cc547589
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#pragma once #include <vector> #include <tudocomp/compressors/lz78/LZ78Trie.hpp> #include <tudocomp/Algorithm.hpp> #include "cedar.hpp" namespace tdc { namespace lz78 { using cedar_factorid_t = lz78::factorid_t; using cedar_t = cedar::da<cedar_factorid_t>; const cedar_factorid_t CEDAR_NO_VALUE = static_cast<cedar_...
29.521277
107
0.476637
JZentgraf
1a5e1fb6c203da8aced8c0df7630596f2d06bc90
1,662
hpp
C++
modules/NVS/prefs.hpp
tobozo/ESP32-SIDView
51e6ba7fee6cb6dcda2bf6c78ac7cb235cf3dc3a
[ "MIT" ]
7
2020-06-02T13:04:46.000Z
2021-03-27T18:09:19.000Z
modules/NVS/prefs.hpp
tobozo/ESP32-SIDView
51e6ba7fee6cb6dcda2bf6c78ac7cb235cf3dc3a
[ "MIT" ]
null
null
null
modules/NVS/prefs.hpp
tobozo/ESP32-SIDView
51e6ba7fee6cb6dcda2bf6c78ac7cb235cf3dc3a
[ "MIT" ]
null
null
null
/*\ ESP32-SIDView https://github.com/tobozo/ESP32-SIDView MIT License Copyright (c) 2020 tobozo 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 with...
28.169492
80
0.700361
tobozo
1a62e4c119256e49870fad3695d4d353e091dd2d
761
hpp
C++
Video/VideoMode.hpp
Phles/PhlesOSPlayground
ab19eb1293a452bf73a6289f3e1198ce90444be9
[ "MIT" ]
2
2021-03-03T05:11:09.000Z
2021-03-03T05:11:19.000Z
Video/VideoMode.hpp
Phles/PhlesOSPlayground
ab19eb1293a452bf73a6289f3e1198ce90444be9
[ "MIT" ]
null
null
null
Video/VideoMode.hpp
Phles/PhlesOSPlayground
ab19eb1293a452bf73a6289f3e1198ce90444be9
[ "MIT" ]
null
null
null
//Information about VideoModes #ifndef VIDEOMODE #define VIDEOMODE //Class for the video mode of the monitor enum class VideoMode{ EGA, //Enhanced Grahpics Adapter Standard Text Mode(console color mode with ASCII text) RGB, //Direct Red Green Blue Color mode Palette //Color mode using a color palette }; st...
31.708333
103
0.725361
Phles
1a67246c8def15bb0ccafc32bc38f04e05835cd4
254
hpp
C++
poo_basic/methods/TestObject_destrutores/TestObject.hpp
stemDaniel/ufmg-pds2
4dbb536a0926b617d04d133cbd3f7a5a223e113e
[ "MIT" ]
null
null
null
poo_basic/methods/TestObject_destrutores/TestObject.hpp
stemDaniel/ufmg-pds2
4dbb536a0926b617d04d133cbd3f7a5a223e113e
[ "MIT" ]
null
null
null
poo_basic/methods/TestObject_destrutores/TestObject.hpp
stemDaniel/ufmg-pds2
4dbb536a0926b617d04d133cbd3f7a5a223e113e
[ "MIT" ]
null
null
null
#ifndef TESTOBJECT #define TESTOBJECT #include <iostream> using namespace std; class TestObject { int atributo; public: TestObject(int valor) : atributo(valor) {} ~TestObject() { cout << "~TestObject" << atributo << endl; } }; #endif
13.368421
45
0.661417
stemDaniel
1a685bc4b1a6e5e39a3c6a99ca76ae11b8296a57
2,383
cpp
C++
Day_07/03_Trapping_Rain_Water.cpp
premnaaath/SDE-180
6d7cc2404d310600a81adaa652049172f2e10ed8
[ "MIT" ]
null
null
null
Day_07/03_Trapping_Rain_Water.cpp
premnaaath/SDE-180
6d7cc2404d310600a81adaa652049172f2e10ed8
[ "MIT" ]
null
null
null
Day_07/03_Trapping_Rain_Water.cpp
premnaaath/SDE-180
6d7cc2404d310600a81adaa652049172f2e10ed8
[ "MIT" ]
null
null
null
// Problem Link: // https://leetcode.com/problems/trapping-rain-water/ // Approach 1: (Brute Force) // TC: O(n^2) // SC: O(1) // Approach 2: (PrefixMax SuffixMax) // TC: O(n) // SC: O(n) // Approach 3: (2 Pointer) // TC: O(n) // SC: O(1) #include <bits/stdc++.h> using namespace std; #define ll long long #define de...
20.543103
85
0.480067
premnaaath
1a6be117bcc32e34e93f90d0e3723ceaa8fdcf7d
2,248
hpp
C++
src/utils/safe_queue.hpp
pashinov/falcon2
08a7e5973b23927fc686ff73423099d00f14bf58
[ "MIT" ]
1
2021-05-07T06:32:45.000Z
2021-05-07T06:32:45.000Z
src/utils/safe_queue.hpp
pashinov/falcon2
08a7e5973b23927fc686ff73423099d00f14bf58
[ "MIT" ]
5
2019-04-29T12:45:35.000Z
2019-05-01T14:10:53.000Z
src/utils/safe_queue.hpp
pashinov/amsp
08a7e5973b23927fc686ff73423099d00f14bf58
[ "MIT" ]
null
null
null
// // Created by Alexey Pashinov on 20/08/20 // #pragma once #include <chrono> #include <condition_variable> #include <mutex> #include <queue> /// Thread Safe Queue template <typename T> class safe_queue { public: /// /// \brief Push a new instance of T at the back of the deque /// \param value void ...
22.938776
95
0.558719
pashinov
2b3ae58eaa4c31cf472573ce0710920085137b2c
2,092
cpp
C++
src/gamelib/main/checkentcfg.cpp
mall0c/GameLib
df4116b53c39be7b178dd87f7eb0fe32a94d00d3
[ "MIT" ]
1
2020-02-17T09:53:36.000Z
2020-02-17T09:53:36.000Z
src/gamelib/main/checkentcfg.cpp
mall0c/GameLib
df4116b53c39be7b178dd87f7eb0fe32a94d00d3
[ "MIT" ]
null
null
null
src/gamelib/main/checkentcfg.cpp
mall0c/GameLib
df4116b53c39be7b178dd87f7eb0fe32a94d00d3
[ "MIT" ]
null
null
null
#include <iostream> #include <cstring> #include "gamelib/core/ecs/serialization.hpp" #include "gamelib/Engine.hpp" #include "gamelib/core/Game.hpp" #include "gamelib/json/json-file.hpp" #include "gamelib/json/json-utils.hpp" using namespace std; int main(int argc, char *argv[]) { if (argc <= 1) { cout...
26.481013
100
0.5674
mall0c
2b3df9f569e2b721d87ed8283126713bc6bc4f99
1,468
cpp
C++
Ejercicios_basicos_Agen/main.cpp
Zayk01/Arboles-Generales
4854d5c0fa9e5e6e2c09fe25d56f6a1d2766417f
[ "MIT" ]
null
null
null
Ejercicios_basicos_Agen/main.cpp
Zayk01/Arboles-Generales
4854d5c0fa9e5e6e2c09fe25d56f6a1d2766417f
[ "MIT" ]
null
null
null
Ejercicios_basicos_Agen/main.cpp
Zayk01/Arboles-Generales
4854d5c0fa9e5e6e2c09fe25d56f6a1d2766417f
[ "MIT" ]
null
null
null
#include <iostream> #include "../I-O_Agen/I_O_Agen.hpp" #include "Ejercicios_basicos_Agen.hpp" using namespace std; typedef char T_elem; T_elem fin='#'; int main() { Agen<T_elem> A,B; /*********************************************Leer Arbol General en agen.dat***************************************/ if...
33.363636
120
0.536104
Zayk01
2b3fd7f7ecfe4d98aaece49b4f8b3139eae7275c
2,077
cpp
C++
src/backend/benchmark/ycsb/ycsb.cpp
saurabhkadekodi/peloton-p3
e0d84cdf59c0724850ad2d6b187fdb2ef1730369
[ "Apache-2.0" ]
1
2021-02-28T19:37:04.000Z
2021-02-28T19:37:04.000Z
src/backend/benchmark/ycsb/ycsb.cpp
saurabhkadekodi/peloton-p3
e0d84cdf59c0724850ad2d6b187fdb2ef1730369
[ "Apache-2.0" ]
1
2016-05-06T05:07:37.000Z
2016-05-09T23:40:50.000Z
src/backend/benchmark/ycsb/ycsb.cpp
saurabhkadekodi/peloton-p3
e0d84cdf59c0724850ad2d6b187fdb2ef1730369
[ "Apache-2.0" ]
null
null
null
//===----------------------------------------------------------------------===// // // PelotonDB // // ycsb.cpp // // Identification: benchmark/ycsb/ycsb.cpp // // Copyright (c) 2015, Carnegie Mellon University Database Group // //===--------------------------------------------------------------...
25.329268
80
0.564275
saurabhkadekodi
2b40b95e243e4965aa8ce0d4ba9a228dfa885871
2,114
hpp
C++
src/arkesia_plugins.hpp
zerotri/arkesia
a5105a93dab18ab3c40dc8dc06b801797155d1c1
[ "MIT" ]
null
null
null
src/arkesia_plugins.hpp
zerotri/arkesia
a5105a93dab18ab3c40dc8dc06b801797155d1c1
[ "MIT" ]
null
null
null
src/arkesia_plugins.hpp
zerotri/arkesia
a5105a93dab18ab3c40dc8dc06b801797155d1c1
[ "MIT" ]
null
null
null
#include <dlfcn.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <functional> #include <iostream> namespace ark { namespace plugin { template <typename Signature> Signature* dl_cast(void* f) { return reinterpret_cast<Signature*>(f); } struct...
36.448276
109
0.529801
zerotri
2b44c08828f91cadc9068071366c9c5a8e6edb8c
5,259
cpp
C++
States/settingsstate.cpp
lukasz-bielerzewski/Project-Arena-Fighter
15e4cac998020256cf9e131ff140d0b8a2f6b72e
[ "MIT" ]
null
null
null
States/settingsstate.cpp
lukasz-bielerzewski/Project-Arena-Fighter
15e4cac998020256cf9e131ff140d0b8a2f6b72e
[ "MIT" ]
null
null
null
States/settingsstate.cpp
lukasz-bielerzewski/Project-Arena-Fighter
15e4cac998020256cf9e131ff140d0b8a2f6b72e
[ "MIT" ]
null
null
null
#include "Source_Files/precompiled_header.h" #include "settingsstate.h" //Initialzer functions void SettingsState::initVariables() { this->modes = sf::VideoMode::getFullscreenModes(); } void SettingsState::initBackground() { this->background.setSize(sf::Vector2f (static_cast<float>(this->window->get...
25.779412
138
0.618939
lukasz-bielerzewski
2b46d3ae6243a148d96656b8f18b87c19dd7d2a8
118
cpp
C++
src/terrain/mountain.cpp
JoiNNewtany/LETI-Game
51d31a2b0b212f8bbd11c1562af4ef23d34437b6
[ "Unlicense" ]
2
2021-11-15T19:27:32.000Z
2021-12-10T20:51:37.000Z
src/terrain/mountain.cpp
JoiNNewtany/LETI-Game
51d31a2b0b212f8bbd11c1562af4ef23d34437b6
[ "Unlicense" ]
null
null
null
src/terrain/mountain.cpp
JoiNNewtany/LETI-Game
51d31a2b0b212f8bbd11c1562af4ef23d34437b6
[ "Unlicense" ]
null
null
null
#include "mountain.hpp" #include "unit/unit.hpp" void Mountain::affect(Unit&) { } void Mountain::restore(Unit&) { }
16.857143
33
0.686441
JoiNNewtany
2b48739a8eeb34b9fc41a8b70b4c9cd1ed83ff93
3,735
cpp
C++
main.cpp
Yveh/Compiler-Mx_star
e00164537528858ed128dbc5a5c4cf7006d6276e
[ "MIT" ]
1
2020-01-23T14:34:11.000Z
2020-01-23T14:34:11.000Z
main.cpp
Yveh/Compiler-Mx_star
e00164537528858ed128dbc5a5c4cf7006d6276e
[ "MIT" ]
null
null
null
main.cpp
Yveh/Compiler-Mx_star
e00164537528858ed128dbc5a5c4cf7006d6276e
[ "MIT" ]
null
null
null
#include <iostream> #include <DominatorTree.h> #include <cstring> #include "antlr4-runtime.h" #include "Mx_starLexer.h" #include "Mx_starParser.h" #include "ASTBuilder.h" #include "TypeChecker.h" #include "SemanticIssue.h" #include "Builtin.h" #include "IRBuilder.h" #include "IRProgram.h" #include "RVProgram.h" #inclu...
28.730769
93
0.637216
Yveh
2b4a4bb097547d2ee9abf66b282121323f00209c
1,329
cpp
C++
benchmark/storage/dispatch.single.cpp
BRevzin/dyno
76dcd0cc29cfa0e48f893e1ac32b6380b35437e0
[ "BSL-1.0" ]
739
2017-03-17T15:02:08.000Z
2022-03-29T03:25:32.000Z
benchmark/storage/dispatch.single.cpp
BRevzin/dyno
76dcd0cc29cfa0e48f893e1ac32b6380b35437e0
[ "BSL-1.0" ]
41
2017-03-09T07:04:13.000Z
2021-05-27T20:05:24.000Z
benchmark/storage/dispatch.single.cpp
BRevzin/dyno
76dcd0cc29cfa0e48f893e1ac32b6380b35437e0
[ "BSL-1.0" ]
43
2017-04-08T07:23:33.000Z
2021-08-20T14:20:49.000Z
// Copyright Louis Dionne 2017 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) #include "model.hpp" #include <dyno.hpp> #include <benchmark/benchmark.h> #include <cstddef> #include <type_traits> #include <utility> // T...
32.414634
81
0.756208
BRevzin
2b4e3e809af4fcfbb8e3cf4dacb73652e6c34cf4
2,124
cpp
C++
code-demo/tree/bst_k19lesson15.cpp
kzhereb/knu-is-progr2019
6a85b3659103800d8ec4a8097df2a547d6c8dda4
[ "MIT" ]
null
null
null
code-demo/tree/bst_k19lesson15.cpp
kzhereb/knu-is-progr2019
6a85b3659103800d8ec4a8097df2a547d6c8dda4
[ "MIT" ]
null
null
null
code-demo/tree/bst_k19lesson15.cpp
kzhereb/knu-is-progr2019
6a85b3659103800d8ec4a8097df2a547d6c8dda4
[ "MIT" ]
null
null
null
#include <iostream> #include <cassert> using std::cout; using std::endl; struct TreeNode { int value; TreeNode* left; TreeNode* right; TreeNode(int val, TreeNode* lef=nullptr, TreeNode* rig=nullptr) { value = val; left = lef; right = rig; } }; bool insert(TreeNode** root, int val) { i...
19.135135
67
0.564972
kzhereb
2b554c72c9fdc4a063e68a30251f0e9cdd51b183
2,860
cc
C++
deps/winpty/misc/IsNewConsole.cc
qualityhackrunner/node-pty
027d972e714c3ad65ab5d7cf55a8c14a3eaa1f77
[ "MIT" ]
1,090
2015-01-03T19:33:27.000Z
2022-03-29T01:20:10.000Z
deps/winpty/misc/IsNewConsole.cc
qualityhackrunner/node-pty
027d972e714c3ad65ab5d7cf55a8c14a3eaa1f77
[ "MIT" ]
213
2019-05-07T03:12:13.000Z
2022-03-31T21:11:52.000Z
node_modules_native/node_modules_forked/node-pty/deps/winpty/misc/IsNewConsole.cc
atlsecsrv-com/B82B787C-E596
4e3e58a84e5a5ffb4bf1b6e88a12d06be953e450
[ "MIT" ]
147
2015-01-06T22:14:29.000Z
2022-03-03T09:31:53.000Z
// Determines whether this is a new console by testing whether MARK moves the // cursor. // // WARNING: This test program may behave erratically if run under winpty. // #include <windows.h> #include <stdio.h> #include <string.h> #include "TestUtil.cc" const int SC_CONSOLE_MARK = 0xFFF2; const int SC_CONSOLE_SELECT_...
32.5
79
0.682517
qualityhackrunner
2b5f06bd8c2dc78435339639ef6469dd97a202f6
2,393
cpp
C++
vpc/src/v2/model/ListVpcRoutesResponse.cpp
yangzhaofeng/huaweicloud-sdk-cpp-v3
4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23
[ "Apache-2.0" ]
5
2021-03-03T08:23:43.000Z
2022-02-16T02:16:39.000Z
vpc/src/v2/model/ListVpcRoutesResponse.cpp
yangzhaofeng/huaweicloud-sdk-cpp-v3
4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23
[ "Apache-2.0" ]
null
null
null
vpc/src/v2/model/ListVpcRoutesResponse.cpp
yangzhaofeng/huaweicloud-sdk-cpp-v3
4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23
[ "Apache-2.0" ]
7
2021-02-26T13:53:35.000Z
2022-03-18T02:36:43.000Z
#include "huaweicloud/vpc/v2/model/ListVpcRoutesResponse.h" namespace HuaweiCloud { namespace Sdk { namespace Vpc { namespace V2 { namespace Model { ListVpcRoutesResponse::ListVpcRoutesResponse() { routesIsSet_ = false; routesLinksIsSet_ = false; } ListVpcRoutesResponse::~ListVpcRoutesResponse() = defau...
20.808696
103
0.678646
yangzhaofeng
2b5f111ea9d499fccf486d2ecad2f3d75ec7441b
2,459
cpp
C++
src/meta/processors/admin/ClearSpaceProcessor.cpp
wenhaocs/nebula
326b856cdf44fcaf67d3883073dc9412a9e3eebd
[ "Apache-2.0" ]
null
null
null
src/meta/processors/admin/ClearSpaceProcessor.cpp
wenhaocs/nebula
326b856cdf44fcaf67d3883073dc9412a9e3eebd
[ "Apache-2.0" ]
null
null
null
src/meta/processors/admin/ClearSpaceProcessor.cpp
wenhaocs/nebula
326b856cdf44fcaf67d3883073dc9412a9e3eebd
[ "Apache-2.0" ]
null
null
null
/* Copyright (c) 2022 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License. */ #include "meta/processors/admin/ClearSpaceProcessor.h" namespace nebula { namespace meta { void ClearSpaceProcessor::process(const cpp2::ClearSpaceReq& req) { GraphSpaceID spaceId; std::vector<...
29.626506
89
0.629931
wenhaocs
2b609e13786eea05ea2896d4b25c08a18f48da32
449
cpp
C++
10-19/15. Lattice paths.cpp
swapagarwal/ProjectEuler
34465b5a87166942e4bad3ce815a79a88567d3fd
[ "MIT" ]
1
2018-02-24T07:52:10.000Z
2018-02-24T07:52:10.000Z
10-19/15. Lattice paths.cpp
swapagarwal/ProjectEuler
34465b5a87166942e4bad3ce815a79a88567d3fd
[ "MIT" ]
null
null
null
10-19/15. Lattice paths.cpp
swapagarwal/ProjectEuler
34465b5a87166942e4bad3ce815a79a88567d3fd
[ "MIT" ]
3
2015-03-27T17:23:16.000Z
2021-06-07T15:44:10.000Z
/* Project Euler Problem 15: Lattice paths * Starting in the top left corner of a 2×2 grid, and only being able to move to the right and down, there are exactly 6 routes to the bottom right corner. * How many such routes are there through a 20×20 grid? */ #include <iostream> using namespace std; int main() { ...
21.380952
155
0.632517
swapagarwal
2b62850ee36c124fbe7f261764d45039547620d5
746
hpp
C++
src/MemoryManager.hpp
zwimer/Memory-Management-Simulator
9aacfd962459a62ca878dbf5370fdda4bf770bb6
[ "MIT" ]
null
null
null
src/MemoryManager.hpp
zwimer/Memory-Management-Simulator
9aacfd962459a62ca878dbf5370fdda4bf770bb6
[ "MIT" ]
null
null
null
src/MemoryManager.hpp
zwimer/Memory-Management-Simulator
9aacfd962459a62ca878dbf5370fdda4bf770bb6
[ "MIT" ]
null
null
null
/* Operating Systems Project 2 * Alex Slanski, Owen Stenson, Zac Wimer */ #ifndef MEMORY_MANAGER_HPP #define MEMORY_MANAGER_HPP #include "main.hpp" #include "HardDrive.hpp" #include <string> //An abstract class to represent a MemoryManager class Contiguous::MemoryManager { public: //Constructor MemoryManag...
18.65
51
0.723861
zwimer
2b64503e1a0f06d18f83d931281ee2cb34563dea
518
cpp
C++
2-Structural/11.Flyweight/src/Flyweight/LandMine.cpp
gfa99/gof_design_patterns
a33ee7f344f8e382bb9fc676b77b22a5a123bca0
[ "Apache-2.0" ]
21
2017-11-08T11:32:48.000Z
2021-03-29T08:58:04.000Z
2-Structural/11.Flyweight/src/Flyweight/LandMine.cpp
gfa99/gof_design_patterns
a33ee7f344f8e382bb9fc676b77b22a5a123bca0
[ "Apache-2.0" ]
null
null
null
2-Structural/11.Flyweight/src/Flyweight/LandMine.cpp
gfa99/gof_design_patterns
a33ee7f344f8e382bb9fc676b77b22a5a123bca0
[ "Apache-2.0" ]
8
2017-11-26T13:57:50.000Z
2021-08-23T06:52:57.000Z
#include <iostream> #include "Flyweight/LandMine.h" namespace GoF { namespace Flyweight { LandMine::LandMine() : AbstractItem('@') { std::cout << "\nCreating a LandMine .." << std::endl; } void LandMine::display(const Point & point) { s...
20.72
69
0.478764
gfa99
2b6711798e3e3c57d83fe480b8420e0deddfc0b2
1,054
cpp
C++
PhysicsEngine/ModuleSceneIntro.cpp
bielrabasa/PhysicsEngine
ef3bc64c419a6da4ae234873e3d9da8c196197ec
[ "MIT" ]
1
2021-12-27T15:12:27.000Z
2021-12-27T15:12:27.000Z
PhysicsEngine/ModuleSceneIntro.cpp
bielrabasa/PhysicsEngine
ef3bc64c419a6da4ae234873e3d9da8c196197ec
[ "MIT" ]
null
null
null
PhysicsEngine/ModuleSceneIntro.cpp
bielrabasa/PhysicsEngine
ef3bc64c419a6da4ae234873e3d9da8c196197ec
[ "MIT" ]
null
null
null
#include "Globals.h" #include "Application.h" #include "ModuleSceneIntro.h" ModuleSceneIntro::ModuleSceneIntro(Application* app, bool start_enabled) : Module(app, start_enabled) { } ModuleSceneIntro::~ModuleSceneIntro() {} // Load assets bool ModuleSceneIntro::Start() { LOG("Loading Intro assets"); bool ret = t...
21.510204
101
0.724858
bielrabasa
2b6cd4d2bfd05e2134970ed07e8e1ca76f7409d9
2,086
cpp
C++
src/ConfigParser.cpp
mpajkowski/puzzle_solver
9d145cb42f46f4eea6be2f0219f47d573e51d0bc
[ "MIT" ]
2
2018-10-23T22:16:36.000Z
2018-12-18T23:41:21.000Z
src/ConfigParser.cpp
mpajkowski/puzzle_solver
9d145cb42f46f4eea6be2f0219f47d573e51d0bc
[ "MIT" ]
5
2018-10-22T23:03:30.000Z
2018-11-05T20:11:54.000Z
src/ConfigParser.cpp
mpajkowski/puzzle_solver
9d145cb42f46f4eea6be2f0219f47d573e51d0bc
[ "MIT" ]
null
null
null
#include "ConfigParser.hpp" #include "State.hpp" #include <stdexcept> #include <unordered_set> ConfigParser::ConfigParser(int argc, char** argv) { for (int i = 0; i < argc; ++i) { envs.push_back(argv[i]); } } auto ConfigParser::createConfig() -> Config { auto cfg = Config{}; auto envIterator = ++std::begi...
23.704545
85
0.644295
mpajkowski
2b772e9251f0600bb9a059d9521ff8c2dd21a2a8
7,589
cpp
C++
fbpcf/scheduler/test/benchmarks/SchedulerBenchmark.cpp
SumitKT31/fbpcf
75f1edc939684d1ac29824cbc3e519d689b01377
[ "MIT" ]
null
null
null
fbpcf/scheduler/test/benchmarks/SchedulerBenchmark.cpp
SumitKT31/fbpcf
75f1edc939684d1ac29824cbc3e519d689b01377
[ "MIT" ]
null
null
null
fbpcf/scheduler/test/benchmarks/SchedulerBenchmark.cpp
SumitKT31/fbpcf
75f1edc939684d1ac29824cbc3e519d689b01377
[ "MIT" ]
null
null
null
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <folly/Benchmark.h> #include "common/init/Init.h" #include "fbpcf/engine/communication/IPartyCommunicationAgentFactory...
29.188462
80
0.742786
SumitKT31
2b79768fdc76b175932865656b702963e755b973
2,835
cpp
C++
src/main.cpp
Wittmaxi/baumhaus
1474a39414691253c8340e95f8b43d043bc56b74
[ "Apache-2.0" ]
1
2018-10-02T21:47:13.000Z
2018-10-02T21:47:13.000Z
src/main.cpp
Wittmaxi/baumhaus
1474a39414691253c8340e95f8b43d043bc56b74
[ "Apache-2.0" ]
null
null
null
src/main.cpp
Wittmaxi/baumhaus
1474a39414691253c8340e95f8b43d043bc56b74
[ "Apache-2.0" ]
null
null
null
#include "baumhausengine.h" //the actual engine #include "CPipe.h" //the pipe between the engine and the UI #include <iostream> #include <cstring> /* Baumhaus Engine 2017 By publishing this engine, you agree to publish the code with it. This code comes with no warranty at all; not even the warranty to work properl...
24.230769
146
0.613051
Wittmaxi
2b7da6bd42ac068071496ce9914262738fd6a99d
10,921
cpp
C++
gameSource/musicPlayer2.cpp
Valaras/OneLife
0f83ffb8edf8362ff3bf0ca87a73bba21be20446
[ "Linux-OpenIB" ]
69
2018-10-05T23:29:10.000Z
2022-03-29T22:34:24.000Z
gameSource/musicPlayer2.cpp
Valaras/OneLife
0f83ffb8edf8362ff3bf0ca87a73bba21be20446
[ "Linux-OpenIB" ]
62
2018-11-08T14:14:40.000Z
2022-03-01T20:38:01.000Z
gameSource/musicPlayer2.cpp
Valaras/OneLife
0f83ffb8edf8362ff3bf0ca87a73bba21be20446
[ "Linux-OpenIB" ]
24
2018-10-11T09:20:27.000Z
2021-11-06T19:23:17.000Z
#include "minorGems/game/game.h" #include <math.h> #include "ageControl.h" // loudness of music that we're currently playing at static double musicLoudnessLive = 0; static double musicTargetLoudness = 0; extern double musicHeadroom; // set so that a full 0-to-1 loudness transition happens // in 1 second static ...
23.638528
79
0.558008
Valaras
2b816c429398620c1f893ca77b4f034380aab27a
1,650
hpp
C++
include/boost/numpy/python/make_tuple_from_container.hpp
IceCube-SPNO/BoostNumpy
66538c0b6e38e2f985e0b44d8191c878cea0332d
[ "BSL-1.0" ]
6
2015-01-07T17:29:40.000Z
2019-03-28T15:18:27.000Z
include/boost/numpy/python/make_tuple_from_container.hpp
IceCube-SPNO/BoostNumpy
66538c0b6e38e2f985e0b44d8191c878cea0332d
[ "BSL-1.0" ]
2
2017-04-12T19:01:21.000Z
2017-04-14T16:18:38.000Z
include/boost/numpy/python/make_tuple_from_container.hpp
IceCube-SPNO/BoostNumpy
66538c0b6e38e2f985e0b44d8191c878cea0332d
[ "BSL-1.0" ]
2
2018-01-15T07:32:24.000Z
2020-10-14T02:55:55.000Z
/** * $Id$ * * Copyright (C) * 2015 - $Date$ * Martin Wolf <boostnumpy@martin-wolf.org> * * @file boost/numpy/python/make_tuple_from_container.hpp * @version $Revision$ * @date $Date$ * @author Martin Wolf <boostnumpy@martin-wolf.org> * * @brief This file defines the boost::python::make_tuple_fro...
27.04918
78
0.689091
IceCube-SPNO
2b82335a60e9e9a7b8510c376830084946961a54
932
cpp
C++
EOlymp/00009.cpp
vdshk/algos
8896c9edd30225acbdb51fa2e9760c0cc4adf307
[ "MIT" ]
null
null
null
EOlymp/00009.cpp
vdshk/algos
8896c9edd30225acbdb51fa2e9760c0cc4adf307
[ "MIT" ]
null
null
null
EOlymp/00009.cpp
vdshk/algos
8896c9edd30225acbdb51fa2e9760c0cc4adf307
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define fi first #define se second #define pb push_back #define all(a) a.begin(), a.end() #define rall(a) a.rbegin(), a.rend() #define len(a) (int)a.size() using namespace std; typedef vector<int> vint; typedef long double ld; typedef long long ll; typedef string str; int main() { ios_b...
22.190476
46
0.504292
vdshk
2b82dd7976887f9783be5baba9ea1e08b0f9c5d8
1,860
hpp
C++
include/boost/sweater/threading/futex.hpp
microblink/sweater
f64e68a086c1748690b928108511b4eb692f152b
[ "MIT" ]
1
2017-11-21T22:48:30.000Z
2017-11-21T22:48:30.000Z
include/boost/sweater/threading/futex.hpp
microblink/sweater
f64e68a086c1748690b928108511b4eb692f152b
[ "MIT" ]
null
null
null
include/boost/sweater/threading/futex.hpp
microblink/sweater
f64e68a086c1748690b928108511b4eb692f152b
[ "MIT" ]
null
null
null
//////////////////////////////////////////////////////////////////////////////// /// /// \file futex.hpp /// --------------- /// /// (c) Copyright Domagoj Saric 2021. /// /// Use, modification and distribution are subject to the /// Boost Software License, Version 1.0. (See accompanying file /// LICENSE_1_0.txt or c...
35.09434
80
0.363441
microblink
2b8dbb67bc7e32410bdf3a1faea3f665f1aaf6ba
2,691
cpp
C++
with_qt/qtsource/qtmain.cpp
vladsopen/umon1stl
c1e7d9b198c6ce493ca1dcf31d778d633be48f88
[ "MIT" ]
null
null
null
with_qt/qtsource/qtmain.cpp
vladsopen/umon1stl
c1e7d9b198c6ce493ca1dcf31d778d633be48f88
[ "MIT" ]
null
null
null
with_qt/qtsource/qtmain.cpp
vladsopen/umon1stl
c1e7d9b198c6ce493ca1dcf31d778d633be48f88
[ "MIT" ]
null
null
null
/** * MIT license: * * Copyright (c) 2019 vlads * * 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, ...
30.235955
82
0.662207
vladsopen
2b8f7f7f0e914ea8c5b5e7a7fe141c3b39274bc5
4,007
cpp
C++
src/tile.cpp
plefebvre91/puzzle
a97f7d3384fad616cb99d390861a6e8be804cf21
[ "MIT" ]
null
null
null
src/tile.cpp
plefebvre91/puzzle
a97f7d3384fad616cb99d390861a6e8be804cf21
[ "MIT" ]
null
null
null
src/tile.cpp
plefebvre91/puzzle
a97f7d3384fad616cb99d390861a6e8be804cf21
[ "MIT" ]
null
null
null
/* MIT License Copyright (c) 2019 Pierre Lefebvre Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
25.04375
80
0.681807
plefebvre91
2b97f75ab9a727612f3c52a05ee9d2b6f03e9756
1,388
cpp
C++
src/transport/impl/upgrader_session.cpp
Alexey-N-Chernyshov/cpp-libp2p
8b52253f9658560a4b1311b3ba327f02284a42a6
[ "Apache-2.0", "MIT" ]
135
2020-06-13T08:57:36.000Z
2022-03-27T05:26:11.000Z
src/transport/impl/upgrader_session.cpp
igor-egorov/cpp-libp2p
7c9d83bf0760a5f653d86ddbb00645414c61d4fc
[ "Apache-2.0", "MIT" ]
41
2020-06-12T15:45:05.000Z
2022-03-07T23:10:33.000Z
src/transport/impl/upgrader_session.cpp
igor-egorov/cpp-libp2p
7c9d83bf0760a5f653d86ddbb00645414c61d4fc
[ "Apache-2.0", "MIT" ]
43
2020-06-15T10:12:45.000Z
2022-03-21T03:04:50.000Z
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #include <libp2p/transport/impl/upgrader_session.hpp> namespace libp2p::transport { UpgraderSession::UpgraderSession( std::shared_ptr<transport::Upgrader> upgrader, std::shared_ptr<connection::RawConnec...
31.545455
79
0.62464
Alexey-N-Chernyshov
2b98e6bdfc82f840ebaaa5d76fdf641b27ea151d
4,296
hpp
C++
include/UnityEngine/Light.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
include/UnityEngine/Light.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
include/UnityEngine/Light.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" // Including type: UnityEngine.Behaviour #include "UnityEngine/Behaviour.hpp" // Complet...
42.96
177
0.716248
darknight1050
2ba1271d0ceb854b465475cc82f34ef39149eb72
282
cpp
C++
infowindow/InfoWindow.cpp
Kollos2k/fnfTagReader
d3e0b841299d2ee568a6c160acd75a0e9c605d39
[ "MIT" ]
null
null
null
infowindow/InfoWindow.cpp
Kollos2k/fnfTagReader
d3e0b841299d2ee568a6c160acd75a0e9c605d39
[ "MIT" ]
null
null
null
infowindow/InfoWindow.cpp
Kollos2k/fnfTagReader
d3e0b841299d2ee568a6c160acd75a0e9c605d39
[ "MIT" ]
null
null
null
#include "InfoWindow.h" #include "ui_InfoWindow.h" InfoWindow::InfoWindow(QWidget *parent) : QDialog(parent), ui(new Ui::InfoWindow){ ui->setupUi(this); } InfoWindow::~InfoWindow(){ delete ui; } void InfoWindow::on_buttonClose_clicked(){ this->close(); }
20.142857
83
0.666667
Kollos2k
2ba1a76ee72ce737d8e3c5895b63b04957c52d02
1,368
cpp
C++
source/unittest/main_yaml.cpp
nahzz/EliteQuant_Cpp
4ff6f493f36b87a590b715e245e12399ae04d4fa
[ "Apache-2.0" ]
10
2020-08-16T06:26:19.000Z
2022-03-16T07:24:02.000Z
source/unittest/main_yaml.cpp
saminfante/EliteQuant_Cpp
4ff6f493f36b87a590b715e245e12399ae04d4fa
[ "Apache-2.0" ]
null
null
null
source/unittest/main_yaml.cpp
saminfante/EliteQuant_Cpp
4ff6f493f36b87a590b715e245e12399ae04d4fa
[ "Apache-2.0" ]
4
2020-10-11T03:55:07.000Z
2021-04-24T13:13:46.000Z
#include <yaml-cpp/yaml.h> #include <fstream> #include <iostream> #include <string> #include <vector> using namespace std; int main() { { YAML::Node node; // starts out as null node["key"] = "value"; // it now is a map node node["seq"].push_back("first element"); // node["seq"] automatically becomes a seque...
34.2
101
0.650585
nahzz
2ba37712e886e3f5824f3fd0cce1e2b272f59881
2,224
cpp
C++
src/Plaszczyzna.cpp
KPO-2020-2021/zad5_3-jmeko1214
6c59e182b409c39e02c5a0e37d3e983ed1b3e0ba
[ "Unlicense" ]
null
null
null
src/Plaszczyzna.cpp
KPO-2020-2021/zad5_3-jmeko1214
6c59e182b409c39e02c5a0e37d3e983ed1b3e0ba
[ "Unlicense" ]
null
null
null
src/Plaszczyzna.cpp
KPO-2020-2021/zad5_3-jmeko1214
6c59e182b409c39e02c5a0e37d3e983ed1b3e0ba
[ "Unlicense" ]
null
null
null
#include "Plaszczyzna.hh" /****************************************************************************** | Konstruktor parametryczny klasy Plaszczyzna. | | Argumenty: | | dlugosc - dlugosc plaszczyzny ...
36.459016
126
0.392086
KPO-2020-2021
2ba3a418618538fce91e880a2f86582a7228ff61
335
cpp
C++
video_media_metadata.cpp
mexicowilly/Espadin
f33580d2c77c5efe92c05de0816ec194e87906f0
[ "Apache-2.0" ]
null
null
null
video_media_metadata.cpp
mexicowilly/Espadin
f33580d2c77c5efe92c05de0816ec194e87906f0
[ "Apache-2.0" ]
null
null
null
video_media_metadata.cpp
mexicowilly/Espadin
f33580d2c77c5efe92c05de0816ec194e87906f0
[ "Apache-2.0" ]
null
null
null
#include <espadin/video_media_metadata.hpp> #include "cjson_util.hpp" namespace espadin { video_media_metadata::video_media_metadata(const cJSON& json) { cjson::util ju(const_cast<cJSON&>(json)); ju.set_number("width", width_); ju.set_number("height", height_); ju.set_number("durationMillis", duration...
22.333333
61
0.737313
mexicowilly
ad93762e548f55ea8b703ab4a80950d09d3953a3
345
hpp
C++
src/Headers/Exception.hpp
guiteixeirapimentel/NQueens
aab4ecd14b82eafc3fa8de509803a8e25181942f
[ "MIT" ]
null
null
null
src/Headers/Exception.hpp
guiteixeirapimentel/NQueens
aab4ecd14b82eafc3fa8de509803a8e25181942f
[ "MIT" ]
null
null
null
src/Headers/Exception.hpp
guiteixeirapimentel/NQueens
aab4ecd14b82eafc3fa8de509803a8e25181942f
[ "MIT" ]
null
null
null
#pragma once #include <exception> #include <string> class Exception : public std::exception { public: Exception(const std::string &msg) : cMsg(msg){}; ~Exception() {} Exception(std::string &&msg) : cMsg(msg){}; inline std::string getMsg() const { return cMsg; } private:...
17.25
39
0.588406
guiteixeirapimentel
ad9b68b033c2497eb8b19aacf81a29202d3c0442
241
cpp
C++
models/wallet/Wallet.cpp
Mateus-Franceschina/cpp-stocks-wallet
71969491938e166d6b5053b9c6b0d27d55320fa3
[ "MIT" ]
null
null
null
models/wallet/Wallet.cpp
Mateus-Franceschina/cpp-stocks-wallet
71969491938e166d6b5053b9c6b0d27d55320fa3
[ "MIT" ]
null
null
null
models/wallet/Wallet.cpp
Mateus-Franceschina/cpp-stocks-wallet
71969491938e166d6b5053b9c6b0d27d55320fa3
[ "MIT" ]
null
null
null
#pragma once #include "Wallet.hpp" #include <iostream> using namespace std; Wallet :: Wallet() { string test = this->getString(); cout << test << " ou ola mundo" << endl; } string Wallet :: getString() { return this->hello; }
16.066667
44
0.626556
Mateus-Franceschina
ada0d3eff0c163d659d896f81ac5c484dadf0410
315
cxx
C++
CSES/1094_Increasing_Array.cxx
daniel-cr/CProgramming
3ce8a134c18258e28eb3ce610da21309f6e01b53
[ "MIT" ]
null
null
null
CSES/1094_Increasing_Array.cxx
daniel-cr/CProgramming
3ce8a134c18258e28eb3ce610da21309f6e01b53
[ "MIT" ]
null
null
null
CSES/1094_Increasing_Array.cxx
daniel-cr/CProgramming
3ce8a134c18258e28eb3ce610da21309f6e01b53
[ "MIT" ]
null
null
null
#include <iostream> #include <string> using namespace std; int main(){ int n; cin >> n; long long res = 0; int m = 0; while(n--) { int x; cin >> x; m = max(m, x); if (x < m) { res += m - x; } } cout << res << "\n"; return 0; }
15
25
0.384127
daniel-cr
ada6e74a0bd8814b73d1fe6faa7ded7913f12d77
875
hpp
C++
028. Implement strStr()/Solution.hpp
husy8/LeetCode
49aab298a4bbf36434a414e64486ed8f842a1556
[ "MIT" ]
null
null
null
028. Implement strStr()/Solution.hpp
husy8/LeetCode
49aab298a4bbf36434a414e64486ed8f842a1556
[ "MIT" ]
null
null
null
028. Implement strStr()/Solution.hpp
husy8/LeetCode
49aab298a4bbf36434a414e64486ed8f842a1556
[ "MIT" ]
null
null
null
#include <string> class Solution { public: int strStr(const std::string &haystack, const std::string &needle) { if (haystack.empty() && needle.empty()) { return 0; } if (haystack.size() < needle.size()) { return -1; } for (auto ...
25
96
0.462857
husy8
ada9c8f9c20f331df19d7fb0745913c3cf7cf8cf
736
cc
C++
main.cc
jerrytfleung/Ctor
96637d136d32b3e06f39fb018281948a5480c622
[ "Apache-2.0" ]
null
null
null
main.cc
jerrytfleung/Ctor
96637d136d32b3e06f39fb018281948a5480c622
[ "Apache-2.0" ]
null
null
null
main.cc
jerrytfleung/Ctor
96637d136d32b3e06f39fb018281948a5480c622
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <initializer_list> using namespace std; template<class T> class object { public: object() { cout << "Default ctor!" << endl; } object(T size, T default_value) { cout << "Parameterized ctor!" << endl; } object(initializer_list<T> init) { cout << "Initializer list ctor!" << endl; } ...
23
90
0.589674
jerrytfleung
adaa16e4739a43ebc4771d2f94f4122350e63069
10,562
cpp
C++
src/lib/operators/insert.cpp
IanJamesMcKay/InMemoryDB
a267d9522926eca9add2ad4512f8ce352daac879
[ "MIT" ]
1
2021-04-14T11:16:52.000Z
2021-04-14T11:16:52.000Z
src/lib/operators/insert.cpp
IanJamesMcKay/InMemoryDB
a267d9522926eca9add2ad4512f8ce352daac879
[ "MIT" ]
null
null
null
src/lib/operators/insert.cpp
IanJamesMcKay/InMemoryDB
a267d9522926eca9add2ad4512f8ce352daac879
[ "MIT" ]
1
2020-11-30T13:11:04.000Z
2020-11-30T13:11:04.000Z
#include "insert.hpp" #include <algorithm> #include <memory> #include <string> #include <vector> #include "concurrency/transaction_context.hpp" #include "resolve_type.hpp" #include "storage/base_encoded_column.hpp" #include "storage/storage_manager.hpp" #include "storage/value_column.hpp" #include "type_cast.hpp" #in...
44.008333
120
0.708862
IanJamesMcKay
adb258c3e8d37724ae9b3f84fd51d3ab9becc6c8
7,787
cpp
C++
test/AST/expression/or_expr_test.cpp
przestaw/vecc_SimpleLanguage
a48bb8c0e53cc5f256c926cdb28cf39b107d66ee
[ "MIT" ]
null
null
null
test/AST/expression/or_expr_test.cpp
przestaw/vecc_SimpleLanguage
a48bb8c0e53cc5f256c926cdb28cf39b107d66ee
[ "MIT" ]
null
null
null
test/AST/expression/or_expr_test.cpp
przestaw/vecc_SimpleLanguage
a48bb8c0e53cc5f256c926cdb28cf39b107d66ee
[ "MIT" ]
null
null
null
// // Created by przemek on 27.03.2020. // #include <AST/expression/base_math_expr.h> #include <AST/expression/or_logic_expr.h> #include <boost/test/unit_test.hpp> #include <error/exeception.h> using namespace vecc; using namespace vecc::ast; using std::make_unique; using std::move; using std::unique_ptr; BOOST_AUT...
33.277778
67
0.766791
przestaw
adb52401b7c370bdb1a9bd60e1b2319590a5c63c
1,344
cpp
C++
solved-uva/12700.cpp
Maruf-Tuhin/Online_Judge
cf9b2a522e8b1a9623d3996a632caad7fd67f751
[ "MIT" ]
1
2019-03-31T05:47:30.000Z
2019-03-31T05:47:30.000Z
solved-uva/12700.cpp
the-redback/competitive-programming
cf9b2a522e8b1a9623d3996a632caad7fd67f751
[ "MIT" ]
null
null
null
solved-uva/12700.cpp
the-redback/competitive-programming
cf9b2a522e8b1a9623d3996a632caad7fd67f751
[ "MIT" ]
null
null
null
#include<cstdio> #include<cstring> #include<cstdlib> #include<cctype> #include<cmath> #include<iostream> #include<fstream> #include<string> #include<vector> #include<queue> #include<map> #include<algorithm> #include<set> #include<sstream> #include<stack> using namespace std; main() { char a[10000]; int tc,t=1; ...
22.4
51
0.385417
Maruf-Tuhin
adbdac9bd89cc32f2ea168461c2e7726a776d24c
671
cpp
C++
common/tests/MathTest.cpp
alexandru-andronache/adventofcode
ee41d82bae8b705818fda5bd43e9962bb0686fec
[ "Apache-2.0" ]
3
2021-07-01T14:31:06.000Z
2022-03-29T20:41:21.000Z
common/tests/MathTest.cpp
alexandru-andronache/adventofcode
ee41d82bae8b705818fda5bd43e9962bb0686fec
[ "Apache-2.0" ]
null
null
null
common/tests/MathTest.cpp
alexandru-andronache/adventofcode
ee41d82bae8b705818fda5bd43e9962bb0686fec
[ "Apache-2.0" ]
null
null
null
#include "MathTest.h" #include "math_util.h" using namespace math; TEST_F(MathTest, modular_inverse) { ASSERT_EQ(modularInverse(75, 119315717514047), 106588707645882); ASSERT_EQ(modularInverse(33, 119315717514047), 3615627803456); } TEST_F(MathTest, power_test) { ASSERT_EQ(modular_power(41443368465112, 1...
29.173913
95
0.76006
alexandru-andronache
adc3810adafa5d197de88f793d8c0a885ecf474d
3,210
cpp
C++
datastructures/singlylinkedlists/clone_random_ptr.cpp
oishikm12/cpp-collection
4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97
[ "MIT" ]
5
2021-05-17T12:32:42.000Z
2021-12-12T21:09:55.000Z
datastructures/singlylinkedlists/clone_random_ptr.cpp
oishikm12/cpp-collection
4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97
[ "MIT" ]
null
null
null
datastructures/singlylinkedlists/clone_random_ptr.cpp
oishikm12/cpp-collection
4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97
[ "MIT" ]
1
2021-05-13T20:29:57.000Z
2021-05-13T20:29:57.000Z
#include <iostream> #include <vector> #include <unordered_map> using namespace std; class Node { public: int data; Node *next, *arb; Node(int val = 0, Node *lfwd = NULL, Node *larb = NULL) : data(val), next(lfwd), arb(larb) {}; ~Node() { delete arb, delete next; } }; int main() { ...
26.097561
102
0.557009
oishikm12
adc4ce449c1d15228c35f8504c32441ade82be89
177
hpp
C++
shared/detail/no_move.hpp
playday3008/herby
3ab4594588c4776182f18edf89d461adef583614
[ "MIT" ]
null
null
null
shared/detail/no_move.hpp
playday3008/herby
3ab4594588c4776182f18edf89d461adef583614
[ "MIT" ]
null
null
null
shared/detail/no_move.hpp
playday3008/herby
3ab4594588c4776182f18edf89d461adef583614
[ "MIT" ]
null
null
null
#pragma once namespace shared::detail { class NoMove { protected: NoMove() = default; NoMove(NoMove&&) = delete; protected: NoMove& operator=(NoMove&&) = delete; }; }
14.75
39
0.661017
playday3008
ade4684b84d7d892ff5d6739af7c577cd02999b6
735
cpp
C++
Remixed/Win32Window.cpp
LukeRoss00/Revive
09b1c59dfbff8abc06194809ec680b990b2cf21c
[ "MIT" ]
1
2021-10-18T19:43:06.000Z
2021-10-18T19:43:06.000Z
Remixed/Win32Window.cpp
LukeRoss00/Revive
09b1c59dfbff8abc06194809ec680b990b2cf21c
[ "MIT" ]
null
null
null
Remixed/Win32Window.cpp
LukeRoss00/Revive
09b1c59dfbff8abc06194809ec680b990b2cf21c
[ "MIT" ]
1
2020-02-03T22:45:41.000Z
2020-02-03T22:45:41.000Z
#include "Win32Window.h" #include <Windows.h> #include <thread> extern HMODULE revModule; static LRESULT CALLBACK WindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) { return DefWindowProcW(hWnd, Msg, wParam, lParam); } Win32Window::Win32Window() { WNDCLASSW wc; memset(&wc, 0, sizeof(wc)); wc.hInstanc...
20.416667
89
0.727891
LukeRoss00
ade655eac7a18a742a4cdeaa2ccab5583b49ab04
1,224
cpp
C++
Util/NameValuePair.cpp
okean/cpputils
812cf41f04d66c28a5eb46dedab6e782c49e0f7a
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2019-08-30T02:34:29.000Z
2019-08-30T02:34:29.000Z
Util/NameValuePair.cpp
okean/cpputils
812cf41f04d66c28a5eb46dedab6e782c49e0f7a
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
Util/NameValuePair.cpp
okean/cpputils
812cf41f04d66c28a5eb46dedab6e782c49e0f7a
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
#include "stdafx.h" #include "NameValuePair.h" #include <Util/Text.h> using namespace Util; NameValuePair::NameValuePair( const std::string & name, const std::string & value) : _name(name) , _value(value) { } NameValuePair::NameValuePair( const std::string &str, const char & separator, bo...
17
65
0.615196
okean
adec19b875bb6aca9e652cbc18c3112b711967d0
766
cpp
C++
comp/cses/intro/g_knights.cpp
imbush/practice
05116375a7361fb0acc477a22ff0745e41aad825
[ "MIT" ]
null
null
null
comp/cses/intro/g_knights.cpp
imbush/practice
05116375a7361fb0acc477a22ff0745e41aad825
[ "MIT" ]
null
null
null
comp/cses/intro/g_knights.cpp
imbush/practice
05116375a7361fb0acc477a22ff0745e41aad825
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; typedef long long ll; int main() { ll n; ll sum = 0; cin >> n; cout << sum << "\n"; for (ll i = 2; i <= n; i ++) { sum += (2 * i - 1) * (2 * i - 2) / 2; // The outside interactions if (i > 2) { sum -= 4; } sum +=...
23.212121
78
0.292428
imbush
adec9a93e349f2f3f7fd0bce130dac2c0a0b65de
8,350
cpp
C++
lib/MatrixClasses/IndexMatrix.cpp
xschrodingerscat/kspaceFirstOrder
99f326d420a5488693bcf9fdd633d2eff7447cca
[ "RSA-MD" ]
null
null
null
lib/MatrixClasses/IndexMatrix.cpp
xschrodingerscat/kspaceFirstOrder
99f326d420a5488693bcf9fdd633d2eff7447cca
[ "RSA-MD" ]
null
null
null
lib/MatrixClasses/IndexMatrix.cpp
xschrodingerscat/kspaceFirstOrder
99f326d420a5488693bcf9fdd633d2eff7447cca
[ "RSA-MD" ]
null
null
null
/** * @file IndexMatrix.cpp * * @author Jiri Jaros \n * Faculty of Information Technology \n * Brno University of Technology \n * jarosjir@fit.vutbr.cz * * @brief The implementation file containing the class for 64b integer index matrices. * * @version kspaceFirs...
36.462882
120
0.513293
xschrodingerscat
aded5e6bfc57c45c06c80910e053eb380b33da18
208
cpp
C++
Source/MultiplayerLab/MultiplayerLab.cpp
AnupamSahu/UnrealMultiplayerLab
fae050ffa1589154e3a073de34e95988f569e105
[ "MIT" ]
null
null
null
Source/MultiplayerLab/MultiplayerLab.cpp
AnupamSahu/UnrealMultiplayerLab
fae050ffa1589154e3a073de34e95988f569e105
[ "MIT" ]
null
null
null
Source/MultiplayerLab/MultiplayerLab.cpp
AnupamSahu/UnrealMultiplayerLab
fae050ffa1589154e3a073de34e95988f569e105
[ "MIT" ]
null
null
null
// Copyright Epic Games, Inc. All Rights Reserved. #include "MultiplayerLab.h" #include "Modules/ModuleManager.h" IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, MultiplayerLab, "MultiplayerLab" );
29.714286
90
0.802885
AnupamSahu
adef6dd29f07ea7b0e0f5acb5072ee99d2e3cee6
6,307
cpp
C++
Plugins/org.mitk.lancet.robot/src/api/vega/capisample/CAPIcommon/src/SystemAlert.cpp
zhaomengxiao/MITK
a09fd849a4328276806008bfa92487f83a9e2437
[ "BSD-3-Clause" ]
null
null
null
Plugins/org.mitk.lancet.robot/src/api/vega/capisample/CAPIcommon/src/SystemAlert.cpp
zhaomengxiao/MITK
a09fd849a4328276806008bfa92487f83a9e2437
[ "BSD-3-Clause" ]
1
2021-12-22T10:19:02.000Z
2021-12-22T10:19:02.000Z
Plugins/org.mitk.lancet.robot/src/api/vega/capisample/CAPIcommon/src/SystemAlert.cpp
zhaomengxiao/MITK_lancet
a09fd849a4328276806008bfa92487f83a9e2437
[ "BSD-3-Clause" ]
null
null
null
//---------------------------------------------------------------------------- // // Copyright (C) 2017, Northern Digital Inc. All rights reserved. // // All Northern Digital Inc. ("NDI") Media and/or Sample Code and/or Sample Code // Documentation (collectively referred to as "Sample Code") is licensed and provided...
39.173913
95
0.738386
zhaomengxiao
adf2be6fccab7a20a6f7bfe7eaa3ed009a3b2420
8,223
cc
C++
tutorial/4_graphics/transparency.cc
tdelame/Graphics-Origin
27b7d6ac72c4cb1858fc85dc18fe864de1496c6d
[ "MIT" ]
null
null
null
tutorial/4_graphics/transparency.cc
tdelame/Graphics-Origin
27b7d6ac72c4cb1858fc85dc18fe864de1496c6d
[ "MIT" ]
null
null
null
tutorial/4_graphics/transparency.cc
tdelame/Graphics-Origin
27b7d6ac72c4cb1858fc85dc18fe864de1496c6d
[ "MIT" ]
null
null
null
/* Created on: May 22, 2016 * Author: T. Delame (tdelame@gmail.com) */ /** * The main differences between the files of this application and the one of * the tutorial 3_simple_gl_applications are: * - the definition of a transparent windows renderable, that we will use to * have some transparency in the scen...
39.917476
143
0.670801
tdelame
adf6aec19503004f072eefc7932978ecd9b307fc
1,328
cpp
C++
Prova di Esame/TerzoFile/main.cpp
LucaMazzei88/CefiCourse
1ed516b6cdbd72fd5197c7fe876005fbb27dea71
[ "Apache-2.0" ]
null
null
null
Prova di Esame/TerzoFile/main.cpp
LucaMazzei88/CefiCourse
1ed516b6cdbd72fd5197c7fe876005fbb27dea71
[ "Apache-2.0" ]
null
null
null
Prova di Esame/TerzoFile/main.cpp
LucaMazzei88/CefiCourse
1ed516b6cdbd72fd5197c7fe876005fbb27dea71
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <stdlib.h> #include <stdio.h> #include <set> #include <vector> using namespace std; vector<int>* leggiFile(FILE* id); int main() { FILE* dato1=fopen("dato1.txt","r"); FILE* dato2=fopen("dato2.txt","r"); if(dato1==NULL ||dato2==NULL){ cout<<"File non trovato"<<endl; ...
24.592593
74
0.584337
LucaMazzei88
adf6bd3fa78b9c2fb46fc743bbbaf44636634a9c
518
cpp
C++
src/gamebase/src/impl/geom/Intersection.cpp
TheMrButcher/opengl_lessons
76ac96c45773a54a85d49c6994770b0c3496303f
[ "MIT" ]
1
2016-10-25T21:15:16.000Z
2016-10-25T21:15:16.000Z
src/gamebase/src/impl/geom/Intersection.cpp
TheMrButcher/gamebase
76ac96c45773a54a85d49c6994770b0c3496303f
[ "MIT" ]
375
2016-06-04T11:27:40.000Z
2019-04-14T17:11:09.000Z
src/gamebase/src/impl/geom/Intersection.cpp
TheMrButcher/gamebase
76ac96c45773a54a85d49c6994770b0c3496303f
[ "MIT" ]
null
null
null
/** * Copyright (c) 2018 Slavnejshev Filipp * This file is licensed under the terms of the MIT license. */ #include <stdafx.h> #include <gamebase/impl/geom/Intersection.h> namespace gamebase { namespace impl { bool isPointInTriangle(const Vec2& point, const Vec2& p1, const Vec2& p2, const Vec2& p3) { floa...
24.666667
72
0.596525
TheMrButcher
adfa7dbafd88f6becdb57d74e732da0f1d411aaa
484
cxx
C++
source/opengl/vao.cxx
bjadamson/BoomHS
60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4
[ "MIT" ]
2
2016-07-22T10:09:21.000Z
2017-09-16T06:50:01.000Z
source/opengl/vao.cxx
bjadamson/BoomHS
60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4
[ "MIT" ]
14
2016-08-13T22:45:56.000Z
2018-12-16T03:56:36.000Z
source/opengl/vao.cxx
bjadamson/BoomHS
60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4
[ "MIT" ]
null
null
null
#include <extlibs/fmt.hpp> #include <opengl/vao.hpp> namespace opengl { VAO& VAO::operator=(VAO&& other) { vao_ = other.vao_; debug_check = MOVE(other.debug_check); other.vao_ = 0; return *this; } std::string VAO::to_string() const { return fmt::sprintf("(VAO) NUM_BUFFERS: %li, raw: %u", VAO::NUM_B...
15.612903
91
0.657025
bjadamson
adfabe803f73d3dd23e56d1cfe6923e2a641435b
4,415
cpp
C++
tests/comm/interface/component/BroadcastTests.cpp
thorbenlouw/CUP-CFD
d06f7673a1ed12bef24de4f1b828ef864fa45958
[ "MIT" ]
3
2021-06-24T10:20:12.000Z
2021-07-18T14:43:19.000Z
tests/comm/interface/component/BroadcastTests.cpp
thorbenlouw/CUP-CFD
d06f7673a1ed12bef24de4f1b828ef864fa45958
[ "MIT" ]
2
2021-07-22T15:31:03.000Z
2021-07-28T14:27:28.000Z
tests/comm/interface/component/BroadcastTests.cpp
thorbenlouw/CUP-CFD
d06f7673a1ed12bef24de4f1b828ef864fa45958
[ "MIT" ]
1
2021-07-22T15:24:24.000Z
2021-07-22T15:24:24.000Z
/* * @file * @author University of Warwick * @version 1.0 * * @section LICENSE * * @section DESCRIPTION * */ #define BOOST_TEST_MODULE Broadcast #include <boost/test/unit_test.hpp> #include <boost/test/output_test_stream.hpp> #include <stdexcept> #include "Broadcast.h" #include "mpi.h" #include <iostream> #i...
23.994565
79
0.655266
thorbenlouw
adfc8d2d3a732dcc06a337515b55c77d75e36db1
9,701
cpp
C++
thermal/main.cpp
naohaq/pezy-mokumoku
aede78653c401db30cccf1b891e27587098c8b55
[ "BSD-3-Clause" ]
null
null
null
thermal/main.cpp
naohaq/pezy-mokumoku
aede78653c401db30cccf1b891e27587098c8b55
[ "BSD-3-Clause" ]
null
null
null
thermal/main.cpp
naohaq/pezy-mokumoku
aede78653c401db30cccf1b891e27587098c8b55
[ "BSD-3-Clause" ]
null
null
null
/*! * @author Naoyuki MORITA * @date 2019 * @copyright BSD-3-Clause */ #define __CL_ENABLE_EXCEPTIONS #include <CL/cl.hpp> #include <cassert> #include <cstdio> #include <fstream> #include <iostream> #include <random> #include <sstream> #include <stdexcept> #include <vector> #include "sim_conf.hh" #includ...
32.122517
139
0.608082
naohaq
adfd79ba9cd318052834c7a076229dd164210e01
3,386
cpp
C++
Problemas/Problemas de programacion dinamica/Atravesar_Cuadracity/Solucion/Atravesar_Cuadracity_OPT.cpp
AlexCabezas2018/Algoritmia
12b2b20168e598852ac66e01a6004a0701cf9c95
[ "MIT" ]
4
2019-01-26T11:14:14.000Z
2019-10-28T19:16:12.000Z
Problemas/Problemas de programacion dinamica/Atravesar_Cuadracity/Solucion/Atravesar_Cuadracity_OPT.cpp
AlexCabezas2018/Algoritmia
12b2b20168e598852ac66e01a6004a0701cf9c95
[ "MIT" ]
null
null
null
Problemas/Problemas de programacion dinamica/Atravesar_Cuadracity/Solucion/Atravesar_Cuadracity_OPT.cpp
AlexCabezas2018/Algoritmia
12b2b20168e598852ac66e01a6004a0701cf9c95
[ "MIT" ]
1
2019-10-28T23:21:16.000Z
2019-10-28T23:21:16.000Z
// Alejandro Cabezas Garriguez // TAIS26 #include <iostream> #include <iomanip> #include <fstream> #include <vector> #include <string> #include <algorithm> /* El problema consiste en encontrar el numero de caminos que logran llevar desde el punto de inicio que se encuentra en la esquina superior izquierda, al fina...
32.247619
115
0.676019
AlexCabezas2018
bc0634f0d6a1b93ce95416974212c5e847037331
1,647
cpp
C++
os/arch/i386/gdt.cpp
akiszka/anthrax-os
2d7f1e88041b4f381240fdcd4b7888eada393738
[ "MIT" ]
null
null
null
os/arch/i386/gdt.cpp
akiszka/anthrax-os
2d7f1e88041b4f381240fdcd4b7888eada393738
[ "MIT" ]
null
null
null
os/arch/i386/gdt.cpp
akiszka/anthrax-os
2d7f1e88041b4f381240fdcd4b7888eada393738
[ "MIT" ]
null
null
null
#include <string.hpp> #include <stdio.hpp> #include "gdt.hpp" struct gdt::descriptor _gdt [gdt::MAX_DESCRIPTORS]; struct gdt::gdtr _gdtr; void gdt::set_descriptor(u16 i, u32 base, u32 limit, u8 access, u8 flags) { if (i > MAX_DESCRIPTORS) return; // null out the descriptor memset ((void*)&_gdt[i], 0, siz...
27
83
0.649666
akiszka
bc0726d090d95743a93a458774f400b7d2276d54
2,064
hpp
C++
Source/opennwa/details/Configuration.hpp
jusito/WALi-OpenNWA
2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99
[ "MIT" ]
15
2015-03-07T17:25:57.000Z
2022-02-04T20:17:00.000Z
src/wpds/Source/opennwa/details/Configuration.hpp
ucd-plse/mpi-error-prop
4367df88bcdc4d82c9a65b181d0e639d04962503
[ "BSD-3-Clause" ]
1
2018-03-03T05:58:55.000Z
2018-03-03T12:26:10.000Z
src/wpds/Source/opennwa/details/Configuration.hpp
ucd-plse/mpi-error-prop
4367df88bcdc4d82c9a65b181d0e639d04962503
[ "BSD-3-Clause" ]
15
2015-09-25T17:44:35.000Z
2021-07-18T18:25:38.000Z
#ifndef wali_nwa_CONFIGURATION_HPP #define wali_nwa_CONFIGURATION_HPP #include "opennwa/NwaFwd.hpp" #include <ios> #include <vector> namespace opennwa { namespace details { struct Configuration { State state; std::vector<State> callPredecessors; ...
32.25
121
0.492248
jusito
bc07c94749494a504e4323ca678a90a6227c25d9
503
cpp
C++
HackerRank/November/WeekOfCode1/ArmyGame.cpp
seeva92/Competitive-Programming
69061c5409bb806148616fe7d86543e94bf76edd
[ "Apache-2.0" ]
null
null
null
HackerRank/November/WeekOfCode1/ArmyGame.cpp
seeva92/Competitive-Programming
69061c5409bb806148616fe7d86543e94bf76edd
[ "Apache-2.0" ]
null
null
null
HackerRank/November/WeekOfCode1/ArmyGame.cpp
seeva92/Competitive-Programming
69061c5409bb806148616fe7d86543e94bf76edd
[ "Apache-2.0" ]
null
null
null
#include <bits/stdc++.h> typedef long long ll; const int mod = 1e9 + 7; const int MAX = 1e5 + 7; using namespace std; typedef vector<int> vi; int n, m; int main() { #ifndef ONLINE_JUDGE freopen("/Users/seeva92/Workspace/Contests/1.txt", "r", stdin); freopen("/Users/seeva92/Workspace/Contests/2.txt", "w", stdout); #en...
19.346154
65
0.59841
seeva92
bc0e84aca9c719b8018288132238535ebbd65f30
1,424
cpp
C++
message-broker/src/user-cache.cpp
Spheniscida/cHaTTP
6f8cdb2a466bc83af5e0e0e8ddd764aba6ff6747
[ "MIT" ]
4
2015-03-14T10:17:31.000Z
2020-08-08T17:53:54.000Z
message-broker/src/user-cache.cpp
Spheniscida/cHaTTP
6f8cdb2a466bc83af5e0e0e8ddd764aba6ff6747
[ "MIT" ]
null
null
null
message-broker/src/user-cache.cpp
Spheniscida/cHaTTP
6f8cdb2a466bc83af5e0e0e8ddd764aba6ff6747
[ "MIT" ]
2
2016-04-08T15:56:06.000Z
2018-12-08T21:03:50.000Z
# include "user-cache.hpp" # include "error.hpp" void UserCache::addForUser(const std::string& user_name, const chattp::PersistenceResponse::UserLocation& loc) { if ( global_broker_settings.getClusteredMode() ) return; lock_guard<mutex> lock(map_mutex); if ( debugging_mode ) debug_log("Added user locat...
26.867925
139
0.734551
Spheniscida
bc153dedf9c9b8c6c95512f5d2b97654370fdac0
200,671
inl
C++
2d_samples/pmj02_175.inl
st-ario/rayme
315c57c23f4aa4934a8a80e84e3243acd3400808
[ "MIT" ]
1
2021-12-10T23:35:04.000Z
2021-12-10T23:35:04.000Z
2d_samples/pmj02_175.inl
st-ario/rayme
315c57c23f4aa4934a8a80e84e3243acd3400808
[ "MIT" ]
null
null
null
2d_samples/pmj02_175.inl
st-ario/rayme
315c57c23f4aa4934a8a80e84e3243acd3400808
[ "MIT" ]
null
null
null
{std::array<float,2>{0.929466844f, 0.574518383f}, std::array<float,2>{0.479066133f, 0.436022788f}, std::array<float,2>{0.140452042f, 0.855014622f}, std::array<float,2>{0.690937757f, 0.108673006f}, std::array<float,2>{0.548150361f, 0.988475919f}, std::array<float,2>{0.00603156351f, 0.245992929f}, std::array<float,2>{0.3...
48.991943
52
0.73465
st-ario
bc154cb2af5e2d832e892627f11e6c4338a213ad
1,010
hpp
C++
src/exception/ih/exc_exception_impl.hpp
lpea/cppinclude
dc126c6057d2fe30569e6e86f66d2c8eebb50212
[ "MIT" ]
177
2020-08-24T19:20:35.000Z
2022-03-27T01:58:04.000Z
src/exception/ih/exc_exception_impl.hpp
lpea/cppinclude
dc126c6057d2fe30569e6e86f66d2c8eebb50212
[ "MIT" ]
15
2020-08-30T17:59:42.000Z
2022-01-12T11:14:10.000Z
src/exception/ih/exc_exception_impl.hpp
lpea/cppinclude
dc126c6057d2fe30569e6e86f66d2c8eebb50212
[ "MIT" ]
11
2020-09-17T23:31:10.000Z
2022-03-04T13:15:21.000Z
#pragma once #include "exception/api/exc_exception.hpp" #include <string> //------------------------------------------------------------------------------ namespace exception { //------------------------------------------------------------------------------ template< class _BaseException > class ExceptionImpl : pu...
19.056604
80
0.513861
lpea
bc23277ac662ec37d8fd672d602836d87bcdfcc8
963
cpp
C++
Week 4/practise/seven.cpp
sugamkarki/NAMI-Year-II-Term-I-Software_Engineering
39182816b670dcb75ec322e24b346a4cfeb80be0
[ "Apache-2.0" ]
null
null
null
Week 4/practise/seven.cpp
sugamkarki/NAMI-Year-II-Term-I-Software_Engineering
39182816b670dcb75ec322e24b346a4cfeb80be0
[ "Apache-2.0" ]
null
null
null
Week 4/practise/seven.cpp
sugamkarki/NAMI-Year-II-Term-I-Software_Engineering
39182816b670dcb75ec322e24b346a4cfeb80be0
[ "Apache-2.0" ]
null
null
null
#include <iostream> using namespace std; bool sameSet(int[], int[]); int main() { int a[] = {1,12,15,18, 4,16, 9, 7, 4}; int b[] = { 7, 9, 16, 4, 1}; bool isSame = sameSet(a, b); // if(isSame){ // cout<<"the arrays are identical"<<endl; // } // else{ // cout<<"the arrays are not ...
22.395349
54
0.433022
sugamkarki
bc243bbf7fc9f745bffffab32bd1666691158c6f
743
cpp
C++
900C.cpp
basuki57/Codeforces
5227c3deecf13d90e5ea45dab0dfc16b44bd028c
[ "MIT" ]
null
null
null
900C.cpp
basuki57/Codeforces
5227c3deecf13d90e5ea45dab0dfc16b44bd028c
[ "MIT" ]
null
null
null
900C.cpp
basuki57/Codeforces
5227c3deecf13d90e5ea45dab0dfc16b44bd028c
[ "MIT" ]
2
2020-10-03T04:52:14.000Z
2020-10-03T05:19:12.000Z
#include<bits/stdc++.h> using namespace std; typedef long long int ll; void solve(){ ll n; cin >> n; ll a[n], cnt[n+1] = {0}; for(ll i = 0; i < n; ++i) cin >> a[i]; set<ll> s; for(ll i = 0; i < n; ++i){ s.insert(a[i]); auto x = s.upper_bound(a[i]); ll k = *s.rbegin(); ...
22.515152
46
0.421265
basuki57
bc26de50827ca6bb101e9e58fa8300b9d9b94441
519
cpp
C++
lib/src/Utils/Platform.cpp
ProjectPhysX/OpenCL-SDK
f3e8600cfb6c0266c121d7e1f8b2e5dba9c5fab1
[ "Apache-2.0" ]
null
null
null
lib/src/Utils/Platform.cpp
ProjectPhysX/OpenCL-SDK
f3e8600cfb6c0266c121d7e1f8b2e5dba9c5fab1
[ "Apache-2.0" ]
1
2021-11-16T16:30:14.000Z
2021-11-19T13:01:43.000Z
lib/src/Utils/Platform.cpp
ProjectPhysX/OpenCL-SDK
f3e8600cfb6c0266c121d7e1f8b2e5dba9c5fab1
[ "Apache-2.0" ]
null
null
null
#include <CL/Utils/Platform.hpp> bool cl::util::supports_extension(const cl::Platform& platform, const cl::string& extension) { return platform.getInfo<CL_PLATFORM_EXTENSIONS>().find(extension) != cl::string::npos; } bool cl::util::platform_version_contains(const cl::Plat...
34.6
76
0.626204
ProjectPhysX
bc2a6f7aa29e5b6bf350b84a196514ed9cf3182a
3,080
hpp
C++
include/owlcpp/rdf/map_node_literal_crtpb.hpp
GreyMerlin/owl_cpp
ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6
[ "BSL-1.0" ]
10
2017-12-21T05:20:40.000Z
2021-09-18T05:14:01.000Z
include/owlcpp/rdf/map_node_literal_crtpb.hpp
GreyMerlin/owl_cpp
ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6
[ "BSL-1.0" ]
2
2017-12-21T07:31:54.000Z
2021-06-23T08:52:35.000Z
include/owlcpp/rdf/map_node_literal_crtpb.hpp
GreyMerlin/owl_cpp
ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6
[ "BSL-1.0" ]
7
2016-02-17T13:20:31.000Z
2021-11-08T09:30:43.000Z
/** @file "/owlcpp/include/owlcpp/rdf/map_node_literal_crtpb.hpp" part of owlcpp project. @n @n Distributed under the Boost Software License, Version 1.0; see doc/license.txt. @n Copyright Mikhail K Levin 2012 *******************************************************************************/ #ifndef MAP_NODE_LITERAL_CRT...
32.421053
85
0.637338
GreyMerlin
bc2c61975a9bcad5f5af9b7607ec4b46f24d92cf
110,302
cc
C++
test/smoke/issue_apps_001/lulesh.cc
illuhad/aomp
94078df8f6f1eb9ff54dd535a8c980b21526e74a
[ "Apache-2.0" ]
13
2016-12-17T03:13:09.000Z
2020-11-17T17:32:14.000Z
test/smoke/issue_apps_001/lulesh.cc
illuhad/aomp
94078df8f6f1eb9ff54dd535a8c980b21526e74a
[ "Apache-2.0" ]
2
2019-12-09T16:24:26.000Z
2019-12-09T16:27:55.000Z
test/smoke/issue_apps_001/lulesh.cc
illuhad/aomp
94078df8f6f1eb9ff54dd535a8c980b21526e74a
[ "Apache-2.0" ]
1
2016-12-21T22:59:03.000Z
2016-12-21T22:59:03.000Z
/******************************************************************************* Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of so...
33.323867
134
0.522701
illuhad
bc2efaaec69fe78cba8e47f7a322b20769a42df5
1,659
cpp
C++
leetcode/leetcode101.cpp
KevinYang515/C-Projects
1bf95a09a0ffc18102f12263c9163619ce6dba55
[ "MIT" ]
null
null
null
leetcode/leetcode101.cpp
KevinYang515/C-Projects
1bf95a09a0ffc18102f12263c9163619ce6dba55
[ "MIT" ]
null
null
null
leetcode/leetcode101.cpp
KevinYang515/C-Projects
1bf95a09a0ffc18102f12263c9163619ce6dba55
[ "MIT" ]
null
null
null
#include "TreeNode.h" #include <iostream> #include <vector> #include <queue> using namespace std; bool isSymmetric_r(TreeNode* root); bool helper_r(TreeNode* left, TreeNode* right); bool isSymmetric_i(TreeNode* root); int main(){ vector<TreeNode*> root_v = {new TreeNode(1, new TreeNode(2, new TreeNode(3), new Tr...
27.65
151
0.590717
KevinYang515
bc2fec11cba95a1405674cf6de30b8a67e523a78
267
hpp
C++
Algorithm_C/Algorithm_C/First/TwoNumbersWithSum/TwoNumbersWithSum.hpp
chm994483868/HMDailyLearningRecord
95ff0a5347927ce4527bcdd70374e5be22bfc60d
[ "MIT" ]
2
2021-06-26T08:07:04.000Z
2021-08-03T06:05:40.000Z
Algorithm_C/Algorithm_C/First/TwoNumbersWithSum/TwoNumbersWithSum.hpp
chm994483868/HMDailyLearningRecord
95ff0a5347927ce4527bcdd70374e5be22bfc60d
[ "MIT" ]
null
null
null
Algorithm_C/Algorithm_C/First/TwoNumbersWithSum/TwoNumbersWithSum.hpp
chm994483868/HMDailyLearningRecord
95ff0a5347927ce4527bcdd70374e5be22bfc60d
[ "MIT" ]
null
null
null
// // TwoNumbersWithSum.hpp // Algorithm_C // // Created by HM C on 2020/7/25. // Copyright © 2020 CHM. All rights reserved. // #ifndef TwoNumbersWithSum_hpp #define TwoNumbersWithSum_hpp #include <stdio.h> #include <cstdio> #endif /* TwoNumbersWithSum_hpp */
16.6875
46
0.715356
chm994483868
bc3179909b54464c1c9f35348232bd976393a55f
1,711
cpp
C++
src/lib/file.cpp
bunsanorg/bacs_system
22149ecfaac913b820dbda52933bf8ea9fecd723
[ "Apache-2.0" ]
null
null
null
src/lib/file.cpp
bunsanorg/bacs_system
22149ecfaac913b820dbda52933bf8ea9fecd723
[ "Apache-2.0" ]
null
null
null
src/lib/file.cpp
bunsanorg/bacs_system
22149ecfaac913b820dbda52933bf8ea9fecd723
[ "Apache-2.0" ]
null
null
null
#include <bacs/system/file.hpp> #include <bunsan/filesystem/fstream.hpp> namespace bacs { namespace system { namespace file { std::string read(const boost::filesystem::path &path, const bacs::file::Range &range) { std::string data; bunsan::filesystem::ifstream fin(path, std::ios::binary); BUNS...
30.017544
79
0.611923
bunsanorg
bc336cc94eac64bb0476caa4d364444886e37ec1
2,140
cpp
C++
src/MapGenerator/randomMine.cpp
KujouRinka/minesweeper
c75fdbb874283c5440d534102fed6f894070a873
[ "MIT" ]
3
2021-04-24T02:45:36.000Z
2021-05-31T16:05:17.000Z
src/MapGenerator/randomMine.cpp
KujouRinka/minesweeper
c75fdbb874283c5440d534102fed6f894070a873
[ "MIT" ]
null
null
null
src/MapGenerator/randomMine.cpp
KujouRinka/minesweeper
c75fdbb874283c5440d534102fed6f894070a873
[ "MIT" ]
null
null
null
// // Created by KujouRinka on 2021/4/5. // #include <random> #include <ctime> #include "MapGenerator.h" /** * Use random library to generate some mines. * Write a totally initialize map to Controller::minefield * * @param emptyField * A pointer of MField which just initialize map size. * */ void MapGenerator::...
31.940299
92
0.589252
KujouRinka
bc40e87e6b3b8780161cd36ad72967eb7340391d
318
cpp
C++
src/color.cpp
rubot813/wsp_solver
a2918ad2eb37c083d1af405f298bc014303c62aa
[ "Apache-2.0" ]
null
null
null
src/color.cpp
rubot813/wsp_solver
a2918ad2eb37c083d1af405f298bc014303c62aa
[ "Apache-2.0" ]
null
null
null
src/color.cpp
rubot813/wsp_solver
a2918ad2eb37c083d1af405f298bc014303c62aa
[ "Apache-2.0" ]
1
2021-01-04T20:19:47.000Z
2021-01-04T20:19:47.000Z
#include "color.h" std::string color_to_string( color_e c ) { std::string str; switch ( c ) { case empty: str = "empty"; break; case red: str = "red"; break; case green: str = "green"; break; case blue: str = "blue"; break; default: str = "unknown. add to color_to_string"; } return str; }
13.826087
42
0.603774
rubot813
bc4327620163a0bcda1c9ed1d07c09220c0fdc3c
127
hpp
C++
shared/shared.hpp
Binary-Song/MetaParser
fb59cecfd11aef81d1afad1261a6c58c8ef11d6b
[ "MIT" ]
null
null
null
shared/shared.hpp
Binary-Song/MetaParser
fb59cecfd11aef81d1afad1261a6c58c8ef11d6b
[ "MIT" ]
null
null
null
shared/shared.hpp
Binary-Song/MetaParser
fb59cecfd11aef81d1afad1261a6c58c8ef11d6b
[ "MIT" ]
null
null
null
#ifndef _SHARED_H_ #define _SHARED_H_ #include "rules.hpp" #include "utils.hpp" #include "local_path.hpp" #endif // _SHARED_H_
18.142857
25
0.76378
Binary-Song
a4b946cafcc06834e5d16d00cb773748aa7e5198
494
cpp
C++
Bit Manipulation/AllRepeatingExcept2.cpp
Ankitlenka26/IP2021
99322c9c84a8a9c9178a505afbffdcebd312b059
[ "MIT" ]
null
null
null
Bit Manipulation/AllRepeatingExcept2.cpp
Ankitlenka26/IP2021
99322c9c84a8a9c9178a505afbffdcebd312b059
[ "MIT" ]
null
null
null
Bit Manipulation/AllRepeatingExcept2.cpp
Ankitlenka26/IP2021
99322c9c84a8a9c9178a505afbffdcebd312b059
[ "MIT" ]
null
null
null
#include<iostream> #include<vector> #include<string> using namespace std; int main(){ int n ; cin >> n ; int *arr = new int[n]; int xxory = 0; for(int i=0 ;i<n ;i++){ cin >> arr[i]; xxory ^= arr[i]; } int rmsb = xxory & (-xxory); int x =0 , y=0 ; for(int i=0 ;i<n ;i++){ if((arr[i] & rmsb) == 0){ ...
14.529412
30
0.47166
Ankitlenka26
a4c3b43bdd7f9e3a1ce9eff51400362eb8ad8ca4
624
cxx
C++
attic/src/tests/compose_test.cxx
yamasdais/asaki-yumemishi
d6220e489da613a634e6ce474a869f5d2932f89d
[ "BSL-1.0" ]
null
null
null
attic/src/tests/compose_test.cxx
yamasdais/asaki-yumemishi
d6220e489da613a634e6ce474a869f5d2932f89d
[ "BSL-1.0" ]
8
2017-09-28T14:39:37.000Z
2021-03-09T22:55:55.000Z
attic/src/tests/compose_test.cxx
yamasdais/asaki-yumemishi
d6220e489da613a634e6ce474a869f5d2932f89d
[ "BSL-1.0" ]
null
null
null
#include <utility> #include <type_traits> #include <gtest/gtest.h> #include <fmp/primitive.hpp> #include <fmp/values.hpp> #include <fmp_test.hpp> using namespace fmp; using cr0 = curry<noarg>; using cr1 = curry<id>; using cr2 = curry<std::add_const>; using ComposeTypeTarget = ::testing::Types< p<true_type, appl...
23.111111
72
0.724359
yamasdais
a4c66ffbdfb868b312f1fa8cfaea023e1e8d26d4
115
hpp
C++
Include/FishEngine/Internal/LogType.hpp
yushroom/FishEngine_-Experiment
81e4c06f20f6b94dc561b358f8a11a092678aeeb
[ "MIT" ]
240
2017-02-17T10:08:19.000Z
2022-03-25T14:45:29.000Z
Include/FishEngine/Internal/LogType.hpp
yushroom/FishEngine_-Experiment
81e4c06f20f6b94dc561b358f8a11a092678aeeb
[ "MIT" ]
2
2016-10-12T07:08:38.000Z
2017-04-05T01:56:30.000Z
Include/FishEngine/Internal/LogType.hpp
yushroom/FishEngine_-Experiment
81e4c06f20f6b94dc561b358f8a11a092678aeeb
[ "MIT" ]
39
2017-03-02T09:40:07.000Z
2021-12-04T07:28:53.000Z
#pragma once namespace FishEngine { enum class LogType { Error, Assert, Warning, Log, Exception }; }
8.214286
20
0.652174
yushroom
a4c8656abe5470fe626dc0f7c71adec0637a2076
1,343
cpp
C++
00057_insert-interval/191231-1.cpp
yanlinlin82/leetcode
ddcc0b9606d951cff9c08d1f7dfbc202067c8d65
[ "MIT" ]
6
2019-10-23T01:07:29.000Z
2021-12-05T01:51:16.000Z
00057_insert-interval/191231-1.cpp
yanlinlin82/leetcode
ddcc0b9606d951cff9c08d1f7dfbc202067c8d65
[ "MIT" ]
null
null
null
00057_insert-interval/191231-1.cpp
yanlinlin82/leetcode
ddcc0b9606d951cff9c08d1f7dfbc202067c8d65
[ "MIT" ]
1
2021-12-03T06:54:57.000Z
2021-12-03T06:54:57.000Z
// https://leetcode-cn.com/problems/insert-interval/ #include <cstdio> #include <vector> using namespace std; class Solution { public: vector<vector<int>> insert(vector<vector<int>>& intervals, vector<int>& newInterval) { insert(intervals, newInterval[0], newInterval[1]); return intervals; } private: void in...
23.561404
90
0.511541
yanlinlin82
a4cc9162e73775f0d512cd6923e17ada0ff79bfb
141
hpp
C++
linux/include/common.hpp
BaronKhan/gitgudcommit
cfc5f20339c61f3928871bea375608f7eefb8138
[ "MIT" ]
1
2021-02-22T15:06:39.000Z
2021-02-22T15:06:39.000Z
linux/include/common.hpp
BaronKhan/gitgudcommit
cfc5f20339c61f3928871bea375608f7eefb8138
[ "MIT" ]
null
null
null
linux/include/common.hpp
BaronKhan/gitgudcommit
cfc5f20339c61f3928871bea375608f7eefb8138
[ "MIT" ]
1
2021-02-22T15:06:41.000Z
2021-02-22T15:06:41.000Z
#ifndef GITGUD_COMMON_HPP_ #define GITGUD_COMMON_HPP_ #include <string> namespace GitGud { std::string exec(const char* cmd); } #endif
10.846154
36
0.751773
BaronKhan
a4ccacded3b5dc2f4c41430e27fdadb755ac6598
2,081
cpp
C++
mod/memlite/watcher/watcher.cpp
kniz/wrd
a8c9e8bd2f7b240ff64a3b80e7ebc7aff2775ba6
[ "MIT" ]
7
2019-03-12T03:04:32.000Z
2021-12-26T04:33:44.000Z
mod/memlite/watcher/watcher.cpp
kniz/wrd
a8c9e8bd2f7b240ff64a3b80e7ebc7aff2775ba6
[ "MIT" ]
25
2016-09-23T16:36:19.000Z
2019-02-12T14:14:32.000Z
mod/memlite/watcher/watcher.cpp
kniz/World
13b0c8c7fdc6280efcb2135dc3902754a34e6d06
[ "MIT" ]
null
null
null
#include "watcher.hpp" namespace wrd { WRD_DEF_ME(watcher, chunk) me::watcher() : chunk(sizeof(watchCell), false) {} watchCell& me::operator[](widx n) { return get(n); } watchCell& me::operator[](id newId) { return get(newId); } watchCell& me::get(widx n) { return *(watchCell*)_get(n); } w...
31.059701
99
0.560308
kniz
a4d21d9bd36d3a10c25892080190fbccf0e3438b
5,643
cpp
C++
src/direct_method/mask.cpp
pariasm/estadeo-seq
2198df08b50cc7f4fc1fdbf43387eb166e3627ac
[ "BSD-2-Clause" ]
null
null
null
src/direct_method/mask.cpp
pariasm/estadeo-seq
2198df08b50cc7f4fc1fdbf43387eb166e3627ac
[ "BSD-2-Clause" ]
null
null
null
src/direct_method/mask.cpp
pariasm/estadeo-seq
2198df08b50cc7f4fc1fdbf43387eb166e3627ac
[ "BSD-2-Clause" ]
null
null
null
// This program is free software: you can use, modify and/or redistribute it // under the terms of the simplified BSD License. You should have received a // copy of this license along this program. If not, see // <http://www.opensource.org/licenses/bsd-license.html>. // // Copyright (C) 2015, Javier Sánchez Pérez <jsan...
25.65
76
0.460748
pariasm
a4d276c676749f1e6f8f89edc865fc560d5578e9
4,337
cpp
C++
src/ioHandler.cpp
JonasRock/ARXML_LanguageServer
f31cc0b2ca9233ac544cf10aee6d799ea9e55320
[ "Apache-2.0" ]
1
2021-09-11T06:28:35.000Z
2021-09-11T06:28:35.000Z
src/ioHandler.cpp
JonasRock/ARXML_LanguageServer
f31cc0b2ca9233ac544cf10aee6d799ea9e55320
[ "Apache-2.0" ]
1
2022-01-27T08:47:22.000Z
2022-01-27T12:23:57.000Z
src/ioHandler.cpp
JonasRock/ARXML_LanguageServer
f31cc0b2ca9233ac544cf10aee6d799ea9e55320
[ "Apache-2.0" ]
null
null
null
#include "ioHandler.hpp" #include <iostream> #include <string> #include <thread> #include <chrono> #include "boost/asio.hpp" #include "boost/lexical_cast.hpp" using namespace boost; lsp::IOHandler::IOHandler(const std::string &address, uint32_t port) : ioc_(), endpoint_(asio::ip::address::from_string(address), ...
34.696
207
0.646991
JonasRock