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
f2c4f513a27d0efdebd86c6f81a250a73c0c4342
6,038
cpp
C++
dlls/shall/fog.cpp
malortie/hl-shall
a091eb80fbaae400b5a085a68a85fcf11233262f
[ "Apache-2.0" ]
null
null
null
dlls/shall/fog.cpp
malortie/hl-shall
a091eb80fbaae400b5a085a68a85fcf11233262f
[ "Apache-2.0" ]
null
null
null
dlls/shall/fog.cpp
malortie/hl-shall
a091eb80fbaae400b5a085a68a85fcf11233262f
[ "Apache-2.0" ]
null
null
null
/*** * * Copyright (c) 1996-2002, Valve LLC. All rights reserved. * * This product contains software technology licensed from Id * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. * All Rights Reserved. * * Use, distribution, and modification of this source code and/or resulting * object ...
24.152
102
0.721597
malortie
f2c655dcf63e3038e546fe7d1a034f3e967855ac
1,057
cc
C++
lib/semaphore.cc
kjdv/krc
b3e2150faa225d9ef5bf01d29410176815d9413e
[ "MIT" ]
null
null
null
lib/semaphore.cc
kjdv/krc
b3e2150faa225d9ef5bf01d29410176815d9413e
[ "MIT" ]
null
null
null
lib/semaphore.cc
kjdv/krc
b3e2150faa225d9ef5bf01d29410176815d9413e
[ "MIT" ]
1
2019-06-26T19:37:38.000Z
2019-06-26T19:37:38.000Z
#include "internal/semaphore.hh" #include "executor.hh" #include "debug.hh" using namespace std; namespace krc { namespace internal { binary_semaphore::binary_semaphore(bool init) : d_notified(init) {} void binary_semaphore::wait() { auto& exec = executor::instance(); while (!try_wait()) exec.y...
16.015152
65
0.683065
kjdv
f2c898378388e0e3a0e09b8ef1d111059938d3ed
935
hpp
C++
SDK/ARKSurvivalEvolved_C4Tripwire_classes.hpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
10
2020-02-17T19:08:46.000Z
2021-07-31T11:07:19.000Z
SDK/ARKSurvivalEvolved_C4Tripwire_classes.hpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
9
2020-02-17T18:15:41.000Z
2021-06-06T19:17:34.000Z
SDK/ARKSurvivalEvolved_C4Tripwire_classes.hpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
3
2020-07-22T17:42:07.000Z
2021-06-19T17:16:13.000Z
#pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_C4Tripwire_structs.hpp" namespace sdk { //--------------------------------------------------------------------------- //Classes //--------------------------------------------------------------...
22.804878
179
0.591444
2bite
f2cafc17363d142c5cac840aba1d068c85be8e31
1,273
hpp
C++
include/Microsoft/Extensions/Logging/ILogger.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
include/Microsoft/Extensions/Logging/ILogger.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
include/Microsoft/Extensions/Logging/ILogger.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes // Completed includes // Begin il2cpp-utils forward declares struct Il2CppString; // Completed il2cpp-utils forward declares // Type namespace: ...
38.575758
109
0.681068
darknight1050
f2cdccac86cd2b75f5a8466ef45d54b9242a09f6
263
hpp
C++
libecole/include/ecole/scip/col.hpp
mbp28/ecole
e9522ef138cd52de3859b15433b02e07cd43f2b2
[ "BSD-3-Clause" ]
234
2019-11-22T15:50:52.000Z
2022-03-28T15:03:02.000Z
libecole/include/ecole/scip/col.hpp
mbp28/ecole
e9522ef138cd52de3859b15433b02e07cd43f2b2
[ "BSD-3-Clause" ]
179
2019-12-04T19:19:04.000Z
2022-03-24T14:20:01.000Z
libecole/include/ecole/scip/col.hpp
mbp28/ecole
e9522ef138cd52de3859b15433b02e07cd43f2b2
[ "BSD-3-Clause" ]
47
2020-01-29T19:48:24.000Z
2022-03-31T08:42:09.000Z
#pragma once #include <nonstd/span.hpp> #include <scip/scip.h> namespace ecole::scip { auto get_rows(SCIP_COL const* col) noexcept -> nonstd::span<SCIP_ROW*>; auto get_vals(SCIP_COL const* col) noexcept -> nonstd::span<SCIP_Real>; } // namespace ecole::scip
21.916667
71
0.726236
mbp28
f2ce7e708c9fbdde7b06426f6c9cccd4bed5060c
748
cpp
C++
codeforce1/17A. Noldbach problem.cpp
khaled-farouk/My_problem_solving_solutions
46ed6481fc9b424d0714bc717cd0ba050a6638ef
[ "MIT" ]
null
null
null
codeforce1/17A. Noldbach problem.cpp
khaled-farouk/My_problem_solving_solutions
46ed6481fc9b424d0714bc717cd0ba050a6638ef
[ "MIT" ]
null
null
null
codeforce1/17A. Noldbach problem.cpp
khaled-farouk/My_problem_solving_solutions
46ed6481fc9b424d0714bc717cd0ba050a6638ef
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int const MAX = 1000001; bitset<MAX> prime; int n, k, primes[MAX], cnt; void sieve_of_eratosthenes() { prime.set(); prime[0] = prime[1] = 0; for(int i = 4; i < MAX; i += 2) prime[i] = 0; for(int i = 3; i * i < MAX; i += 2) if(prime[i]) for(int j = i * i; j <...
14.96
51
0.497326
khaled-farouk
f2d0fdeb0e78a623e95d994af3d5ef0c38fd88f4
7,891
cpp
C++
src/xmlreader.cpp
Xfufu/PaintingRecipe
b7d189ee117c203f8e51a37541b5227997197785
[ "Beerware" ]
null
null
null
src/xmlreader.cpp
Xfufu/PaintingRecipe
b7d189ee117c203f8e51a37541b5227997197785
[ "Beerware" ]
null
null
null
src/xmlreader.cpp
Xfufu/PaintingRecipe
b7d189ee117c203f8e51a37541b5227997197785
[ "Beerware" ]
null
null
null
/* * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * <david.lapiere@gmail.com> wrote this file. As long as you retain this notice you * can do whatever you want with this stuff. If we meet some day, and you think * this stuff is worth it, you ...
36.364055
120
0.539222
Xfufu
f2d491ec81e7df5e2a282f73d20339cc4df5e0aa
163
hpp
C++
cccc/src/include/expressions/primary.hpp
DasNaCl/old-university-projects
af1c82afec4805ea672e0c353369035b394cb69d
[ "Apache-2.0" ]
null
null
null
cccc/src/include/expressions/primary.hpp
DasNaCl/old-university-projects
af1c82afec4805ea672e0c353369035b394cb69d
[ "Apache-2.0" ]
null
null
null
cccc/src/include/expressions/primary.hpp
DasNaCl/old-university-projects
af1c82afec4805ea672e0c353369035b394cb69d
[ "Apache-2.0" ]
null
null
null
#pragma once #include <expressions/expression.hpp> #include <lex/token.hpp> namespace mhc4 { namespace expressions { expression::ptr primary(token tok); } }
9.588235
37
0.736196
DasNaCl
f2d4f8b462ddc165a19322eace7c11d5dcae459c
619
cpp
C++
TemplateRPG/Character/spells/spell.cpp
davideberdin/Text-Turn-based-RPG-Template
3b1e88b6498b7473b3928e7188157a7d7f1ba844
[ "MIT" ]
1
2015-11-29T04:47:29.000Z
2015-11-29T04:47:29.000Z
TemplateRPG/Character/spells/spell.cpp
davideberdin/Text-Turn-based-RPG-Template
3b1e88b6498b7473b3928e7188157a7d7f1ba844
[ "MIT" ]
null
null
null
TemplateRPG/Character/spells/spell.cpp
davideberdin/Text-Turn-based-RPG-Template
3b1e88b6498b7473b3928e7188157a7d7f1ba844
[ "MIT" ]
null
null
null
// // spell.cpp // TemplateRPG // // Created by Davide Berdin on 29/11/15. // Copyright © 2015 Davide Berdin. All rights reserved. // #include "spell.hpp" Spell::Spell(std::string n) : name(n) { } Spell::Spell(const Spell& it): name(it.name) { } Spell::~Spell() { } Spell& Spell::operator=(const Spell& item) { ...
18.205882
56
0.610662
davideberdin
f2d5ecd58591249f77baec026ef6197c6318d01b
2,919
cpp
C++
src/runner/aoc_tests.cpp
bcooperstl/advent-of-code-2015
0aac084b72aeb45ca01a6ec52e0a71502dfa28e0
[ "MIT" ]
11
2020-11-21T20:34:46.000Z
2021-11-26T16:42:20.000Z
src/runner/aoc_tests.cpp
bcooperstl/advent-of-code-2015
0aac084b72aeb45ca01a6ec52e0a71502dfa28e0
[ "MIT" ]
null
null
null
src/runner/aoc_tests.cpp
bcooperstl/advent-of-code-2015
0aac084b72aeb45ca01a6ec52e0a71502dfa28e0
[ "MIT" ]
1
2021-12-06T10:06:46.000Z
2021-12-06T10:06:46.000Z
#include <iostream> #include <vector> #include "aoc_tests.h" #include "aoc_test.h" #include "constants.h" #include "file_utils.h" using namespace std; AocTests::AocTests() { } AocTests::~AocTests() { } string AocTests::base_directory(string filename) { size_t found; found=filename.find_last_of("/\\"); ...
26.779817
136
0.62864
bcooperstl
f2d8fb820cbbc0b7ae2a63121de34c4292aa702a
310
hpp
C++
imposc-service/imposc-cpp/charts/include/charts.hpp
FelixDux/imposccpp
c8c612df87a53ddaca6260816c913ade44adbe6d
[ "MIT" ]
null
null
null
imposc-service/imposc-cpp/charts/include/charts.hpp
FelixDux/imposccpp
c8c612df87a53ddaca6260816c913ade44adbe6d
[ "MIT" ]
1
2021-03-22T17:27:17.000Z
2021-07-02T07:31:39.000Z
imposc-service/imposc-cpp/charts/include/charts.hpp
FelixDux/imposccpp
c8c612df87a53ddaca6260816c913ade44adbe6d
[ "MIT" ]
null
null
null
#ifndef IMPOSC_CHARTS_CHARTS_HPP #define IMPOSC_CHARTS_CHARTS_HPP #include "impact.hpp" #include "dynamics.hpp" #include <vector> #include <string> namespace charts { void plot_impacts(const std::vector<dynamics::Impact> &impacts, const std::string &outfile, const dynamics::Parameters &params); } #endif
19.375
129
0.777419
FelixDux
f2dc0b1012fabecfbb2e6679b0676aa346526570
9,289
cpp
C++
E-Runner/GameEngine.cpp
appcrashwin7/E-Runner
74331e8d36d4f545c5489208cba0bf3f986bd032
[ "BSD-2-Clause" ]
null
null
null
E-Runner/GameEngine.cpp
appcrashwin7/E-Runner
74331e8d36d4f545c5489208cba0bf3f986bd032
[ "BSD-2-Clause" ]
null
null
null
E-Runner/GameEngine.cpp
appcrashwin7/E-Runner
74331e8d36d4f545c5489208cba0bf3f986bd032
[ "BSD-2-Clause" ]
null
null
null
#include "GameEngine.hpp" #include "move_type.hpp" #include "IOoperator.hpp" #include "keyEvents.hpp" #include "textbox.hpp" #include <sstream> void GameEngine::configureEngine(sf::RenderWindow & twindow, sf::Vector2u windowSize, unsigned int framerate) { gameFont.loadFromFile("arial.ttf"); targetWindow = &twindow;...
20.642222
115
0.672301
appcrashwin7
f2df2e2ecefbc707bbc10cab15b01ac76f71e15a
2,597
cpp
C++
gui/widgets/models/fwModel.cpp
erythrocyte/bleqt
4abd7b2991e77d2cc344ecf3a1c3ee47d9d559d5
[ "MIT" ]
null
null
null
gui/widgets/models/fwModel.cpp
erythrocyte/bleqt
4abd7b2991e77d2cc344ecf3a1c3ee47d9d559d5
[ "MIT" ]
71
2020-09-04T13:52:54.000Z
2022-01-04T20:19:49.000Z
gui/widgets/models/fwModel.cpp
erythrocyte/ble
b9e00bd02a3493de24fdb8d4edff4effcd62daa8
[ "MIT" ]
null
null
null
#include "fwModel.hpp" #include "common/models/commonVals.hpp" namespace ble::gui::widgets::models { FwModel::FwModel( const std::vector<std::shared_ptr<src::common::models::FwData>>& data, QObject* parent) { m_data = data; empty_val = src::common::models::CommonVals::EMPTY_VAL; } QVariant FwModel::data...
24.733333
91
0.568348
erythrocyte
f2e3183b279b1d367ae7e62ae8939aa3ba8a2828
13,091
cpp
C++
src/prod/src/Management/ImageStore/AzureImageStore.cpp
AnthonyM/service-fabric
c396ea918714ea52eab9c94fd62e018cc2e09a68
[ "MIT" ]
2,542
2018-03-14T21:56:12.000Z
2019-05-06T01:18:20.000Z
src/prod/src/Management/ImageStore/AzureImageStore.cpp
AnthonyM/service-fabric
c396ea918714ea52eab9c94fd62e018cc2e09a68
[ "MIT" ]
994
2019-05-07T02:39:30.000Z
2022-03-31T13:23:04.000Z
src/prod/src/Management/ImageStore/AzureImageStore.cpp
AnthonyM/service-fabric
c396ea918714ea52eab9c94fd62e018cc2e09a68
[ "MIT" ]
300
2018-03-14T21:57:17.000Z
2019-05-06T20:07:00.000Z
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" using nam...
31.774272
165
0.617982
AnthonyM
f2e5711eadb35441c220554c6c96c838f6d295f8
153
hpp
C++
mcpputil/include/mcpputil/mcpputil/warning_wrapper_pop.hpp
garyfurnish/mcpputil
7eda34d3852515e21e76683e0884c0d3a11d1b5f
[ "MIT" ]
null
null
null
mcpputil/include/mcpputil/mcpputil/warning_wrapper_pop.hpp
garyfurnish/mcpputil
7eda34d3852515e21e76683e0884c0d3a11d1b5f
[ "MIT" ]
null
null
null
mcpputil/include/mcpputil/mcpputil/warning_wrapper_pop.hpp
garyfurnish/mcpputil
7eda34d3852515e21e76683e0884c0d3a11d1b5f
[ "MIT" ]
null
null
null
#ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __GNUC__ #pragma GCC diagnostic pop #endif #if defined(_MSC_VER) #pragma warning(pop) #endif
15.3
28
0.79085
garyfurnish
f2eebd4ebfabeeb742cecb908ffedd9094f0f2bb
1,640
cpp
C++
src/test/TestAutoCleanupFileFolder.cpp
vividos/UlibCpp
d96348844348a00523b7742b3e7a5c9764613877
[ "BSD-2-Clause" ]
null
null
null
src/test/TestAutoCleanupFileFolder.cpp
vividos/UlibCpp
d96348844348a00523b7742b3e7a5c9764613877
[ "BSD-2-Clause" ]
null
null
null
src/test/TestAutoCleanupFileFolder.cpp
vividos/UlibCpp
d96348844348a00523b7742b3e7a5c9764613877
[ "BSD-2-Clause" ]
null
null
null
// // ulib - a collection of useful classes // Copyright (C) 2006,2007,2008,2009,2012,2017 Michael Fink // /// \file TestAutoCleanupFileFolder.cpp tests for AutoCleanupFile and AutoCleanupFolder classes // #include "stdafx.h" #include "CppUnitTest.h" #include <ulib/unittest/AutoCleanupFolder.hpp> #include <ulib/unitte...
27.79661
95
0.641463
vividos
f2f259b3796916a61e09a27e1e49060067768900
758
cpp
C++
Ch 15/15.39_40/queryresult.cpp
Felon03/CppPrimer
7dc2daf59f0ae7ec5670def15cb5fab174fe9780
[ "Apache-2.0" ]
null
null
null
Ch 15/15.39_40/queryresult.cpp
Felon03/CppPrimer
7dc2daf59f0ae7ec5670def15cb5fab174fe9780
[ "Apache-2.0" ]
null
null
null
Ch 15/15.39_40/queryresult.cpp
Felon03/CppPrimer
7dc2daf59f0ae7ec5670def15cb5fab174fe9780
[ "Apache-2.0" ]
null
null
null
#include "queryresult.h" std::ostream &print(std::ostream &os, const QueryResult &qr) { // TODO: 在此处插入 return 语句 os << qr.sought << " occurs " << qr.sp_lines->size() << " " << "times" << "\n"; // print each line in which word appears for (auto &index : *qr.sp_lines) { os << "\t(line " << index + 1 << ") "; ...
22.969697
66
0.555409
Felon03
f2f5dc61ab377293c7b08fc0121f0020ea08117c
22,437
cpp
C++
Seidon/src/Core/ResourceManager.cpp
Soarex/Seidon
65a59783e6fddb02670b1ba8c4f1e2e231a06f50
[ "Apache-2.0" ]
null
null
null
Seidon/src/Core/ResourceManager.cpp
Soarex/Seidon
65a59783e6fddb02670b1ba8c4f1e2e231a06f50
[ "Apache-2.0" ]
null
null
null
Seidon/src/Core/ResourceManager.cpp
Soarex/Seidon
65a59783e6fddb02670b1ba8c4f1e2e231a06f50
[ "Apache-2.0" ]
null
null
null
#include "ResourceManager.h" #include <unordered_set> #include <iostream> #include <fstream> namespace Seidon { void ResourceManager::Init() { stbi_set_flip_vertically_on_load(true); unsigned char white[] = { 255, 255, 255}; unsigned char grey[] = { 255 / 2, 255 / 2, 255 / 2}; ...
25.908776
97
0.549539
Soarex
f2f69667d9cf4085d3920f670818bb77723c70ed
1,904
cpp
C++
Editor/ActorEditor/ActorEditor.cpp
ixray-team/xray-vss-archive
b245c8601dcefb505b4b51f58142da6769d4dc92
[ "Linux-OpenIB" ]
1
2022-03-26T17:00:19.000Z
2022-03-26T17:00:19.000Z
Editor/ActorEditor/ActorEditor.cpp
ixray-team/xray-vss-archive
b245c8601dcefb505b4b51f58142da6769d4dc92
[ "Linux-OpenIB" ]
null
null
null
Editor/ActorEditor/ActorEditor.cpp
ixray-team/xray-vss-archive
b245c8601dcefb505b4b51f58142da6769d4dc92
[ "Linux-OpenIB" ]
1
2022-03-26T17:00:21.000Z
2022-03-26T17:00:21.000Z
#include "stdafx.h" #pragma hdrstop USEFORM("BottomBar.cpp", fraBottomBar); USEFORM("EditorPref.cpp", frmEditorPreferences); USEFORM("Splash.cpp", frmSplash); USEFORM("main.cpp", frmMain); USEFORM("LeftBar.cpp", fraLeftBar); /* TFrame: File Type */ USEFORM("LogForm.cpp", frmLog); USEFORM("Editor\ChoseForm.cpp",...
30.709677
84
0.58666
ixray-team
8400d68f149f7fdb9a915e503de5c8b974b1180f
2,027
cpp
C++
Libs/Visualization/VTK/Widgets/Plugins/ctkVTKScalarBarWidgetPlugin.cpp
kraehlit/CTK
6557c5779d20b78f501f1fd6ce1063d0f219cca6
[ "Apache-2.0" ]
515
2015-01-13T05:42:10.000Z
2022-03-29T03:10:01.000Z
Libs/Visualization/VTK/Widgets/Plugins/ctkVTKScalarBarWidgetPlugin.cpp
kraehlit/CTK
6557c5779d20b78f501f1fd6ce1063d0f219cca6
[ "Apache-2.0" ]
425
2015-01-06T05:28:38.000Z
2022-03-08T19:42:18.000Z
Libs/Visualization/VTK/Widgets/Plugins/ctkVTKScalarBarWidgetPlugin.cpp
kraehlit/CTK
6557c5779d20b78f501f1fd6ce1063d0f219cca6
[ "Apache-2.0" ]
341
2015-01-08T06:18:17.000Z
2022-03-29T21:47:49.000Z
/*========================================================================= Library: CTK Copyright (c) Kitware Inc. 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.ap...
32.693548
91
0.525407
kraehlit
84019731220c01eea5126696c76cc719f36c1f17
11,720
hpp
C++
src/msa/msa.hpp
jinnaiyuu/15puzzle
142a6765123699a999c1b6414252bb30f8766c08
[ "MIT" ]
1
2017-12-18T07:57:42.000Z
2017-12-18T07:57:42.000Z
src/msa/msa.hpp
jinnaiyuu/15puzzle
142a6765123699a999c1b6414252bb30f8766c08
[ "MIT" ]
59
2015-01-01T13:50:25.000Z
2015-07-28T05:49:33.000Z
src/msa/msa.hpp
jinnaiyuu/Hash-Distributed-Astar
142a6765123699a999c1b6414252bb30f8766c08
[ "MIT" ]
null
null
null
// Copyright 2012 Ethan Burns. All rights reserved. // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file. #include "../search.hpp" #include "../fatal.hpp" #include "../hashtbl.hpp" #include "../dist_hash.hpp" #include "zobrist.hpp" #include <cstdio> #include <cstdlib>...
23.96728
107
0.552218
jinnaiyuu
84057d10678f0bd3c8f6eb7f5ba2b2194137587f
466
cpp
C++
LeetCode/[Practice Problems]/reverse_integer.cpp
Alecs-Li/Competitive-Programming
39941ff8e2c8994abbae8c96a1ed0a04b10058b8
[ "MIT" ]
1
2021-07-06T02:14:03.000Z
2021-07-06T02:14:03.000Z
LeetCode/[Practice Problems]/reverse_integer.cpp
Alex01890-creator/competitive-programming
39941ff8e2c8994abbae8c96a1ed0a04b10058b8
[ "MIT" ]
null
null
null
LeetCode/[Practice Problems]/reverse_integer.cpp
Alex01890-creator/competitive-programming
39941ff8e2c8994abbae8c96a1ed0a04b10058b8
[ "MIT" ]
null
null
null
class Solution { public: int reverse(int x) { string s = to_string(abs(x)); int p1 = 0, p2 = s.length()-1; while(p1 < p2){ swap(s[p1], s[p2]); p1++; p2--; } long long ans = 0; if(x < 0){ ans = stoll(s) * -1; } else { ...
21.181818
54
0.354077
Alecs-Li
840b0c17eabff7656bfd34837bd1be18e7fe6267
746
cpp
C++
igvc_perception/src/pointcloud_filter/radius_filter/radius_filter.cpp
jiajunmao/igvc-software
ea1b11d9bb20e85e5f47aa03f930e9b65877d80c
[ "MIT" ]
100
2015-01-28T23:53:27.000Z
2022-01-27T05:31:36.000Z
igvc_perception/src/pointcloud_filter/radius_filter/radius_filter.cpp
jiajunmao/igvc-software
ea1b11d9bb20e85e5f47aa03f930e9b65877d80c
[ "MIT" ]
600
2015-01-11T20:27:06.000Z
2022-02-20T21:53:01.000Z
igvc_perception/src/pointcloud_filter/radius_filter/radius_filter.cpp
jiajunmao/igvc-software
ea1b11d9bb20e85e5f47aa03f930e9b65877d80c
[ "MIT" ]
157
2015-01-29T00:02:27.000Z
2022-01-13T01:12:20.000Z
#include <pointcloud_filter/radius_filter/radius_filter.h> namespace pointcloud_filter { RadiusFilter::RadiusFilter(const ros::NodeHandle& nh) : config_{ nh } { } void RadiusFilter::filter(pointcloud_filter::Bundle& bundle) { const auto& radius_squared = config_.radius_squared; PointCloud filtered_pc; filtered...
26.642857
72
0.738606
jiajunmao
840b319c34f068524d22a396f1077c24352d39d2
425
hpp
C++
libs/renderer/include/sge/renderer/index/const_proxy_fwd.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
2
2016-01-27T13:18:14.000Z
2018-05-11T01:11:32.000Z
libs/renderer/include/sge/renderer/index/const_proxy_fwd.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
null
null
null
libs/renderer/include/sge/renderer/index/const_proxy_fwd.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
3
2018-05-11T01:11:34.000Z
2021-04-24T19:47:45.000Z
// Copyright Carl Philipp Reh 2006 - 2019. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef SGE_RENDERER_INDEX_CONST_PROXY_FWD_HPP_INCLUDED #define SGE_RENDERER_INDEX_CONST_PROXY_FWD_...
23.611111
61
0.76
cpreh
840ca7124cce150cffb7a68d352a7389c96a9a77
3,687
cpp
C++
PhysicsProject/Highscores.cpp
SuperiorJacob/boostrapTest
326389e0eddc9bfbb7752b70b624d1fa4024f992
[ "MIT" ]
null
null
null
PhysicsProject/Highscores.cpp
SuperiorJacob/boostrapTest
326389e0eddc9bfbb7752b70b624d1fa4024f992
[ "MIT" ]
null
null
null
PhysicsProject/Highscores.cpp
SuperiorJacob/boostrapTest
326389e0eddc9bfbb7752b70b624d1fa4024f992
[ "MIT" ]
null
null
null
#include "Highscores.h" #include <iostream> #include <fstream> #include <direct.h> #include <windows.h> #include <Lmcons.h> #define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING 1; #include <experimental/filesystem> // Experimental, probably fucked. std::vector<std::string> get_filenames(std::experimental::fi...
20.713483
108
0.684025
SuperiorJacob
840d8de099c4776e990922fc6c072330f968bb51
1,382
hpp
C++
pouf/core/graph_data.hpp
maxime-tournier/cpp
303def38a523f0e5699ef389182974f4f50d10fb
[ "MIT" ]
null
null
null
pouf/core/graph_data.hpp
maxime-tournier/cpp
303def38a523f0e5699ef389182974f4f50d10fb
[ "MIT" ]
null
null
null
pouf/core/graph_data.hpp
maxime-tournier/cpp
303def38a523f0e5699ef389182974f4f50d10fb
[ "MIT" ]
null
null
null
#ifndef GRAPH_DATA_HPP #define GRAPH_DATA_HPP #include "stack.hpp" #include "slice.hpp" // TODO we probably want a tag phantom type here to get stricter // typechecking // abstracts a data stack by managing an array of stack frames, one // for each graph vertex class graph_data { stack storage; std::vector<sta...
16.650602
67
0.624457
maxime-tournier
840f329edca37ce2b4c7da3a04dd8daebcf39c5a
11,533
cc
C++
Cassie_Example/opt_two_step/gen/opt/distance_pelvis_to_stance_toe_RightStance.cc
prem-chand/Cassie_CFROST
da4bd51442f86e852cbb630cc91c9a380a10b66d
[ "BSD-3-Clause" ]
null
null
null
Cassie_Example/opt_two_step/gen/opt/distance_pelvis_to_stance_toe_RightStance.cc
prem-chand/Cassie_CFROST
da4bd51442f86e852cbb630cc91c9a380a10b66d
[ "BSD-3-Clause" ]
null
null
null
Cassie_Example/opt_two_step/gen/opt/distance_pelvis_to_stance_toe_RightStance.cc
prem-chand/Cassie_CFROST
da4bd51442f86e852cbb630cc91c9a380a10b66d
[ "BSD-3-Clause" ]
null
null
null
/* * Automatically Generated from Mathematica. * Thu 14 Oct 2021 09:54:23 GMT-04:00 */ #ifdef MATLAB_MEX_FILE #include <stdexcept> #include <cmath> #include<math.h> /** * Copied from Wolfram Mathematica C Definitions file mdefs.hpp * Changed marcos to inline functions (Eric Cousineau) */ inline double Power(doub...
23.346154
1,142
0.643805
prem-chand
84109424c344c4ca7ba4452acb5a98facb1cce88
2,162
cpp
C++
phosphor-ldap-mapper/ldap_mapper_entry.cpp
ratagupt/phosphor-user-manager
88f1753cd6680a5f1952736bfc1663d4ec06918b
[ "Apache-2.0" ]
14
2021-11-04T07:47:37.000Z
2022-03-21T10:10:30.000Z
phosphor-ldap-mapper/ldap_mapper_entry.cpp
ratagupt/phosphor-user-manager
88f1753cd6680a5f1952736bfc1663d4ec06918b
[ "Apache-2.0" ]
null
null
null
phosphor-ldap-mapper/ldap_mapper_entry.cpp
ratagupt/phosphor-user-manager
88f1753cd6680a5f1952736bfc1663d4ec06918b
[ "Apache-2.0" ]
6
2021-11-02T10:56:19.000Z
2022-03-06T11:58:20.000Z
#include <experimental/filesystem> #include <xyz/openbmc_project/Common/error.hpp> #include <xyz/openbmc_project/User/Common/error.hpp> #include <phosphor-logging/log.hpp> #include <phosphor-logging/elog.hpp> #include <phosphor-logging/elog-errors.hpp> #include "config.h" #include "ldap_mapper_entry.hpp" #include "ldap...
28.077922
79
0.665125
ratagupt
841390a3cebc7f2f627d459a42f833f5159fa8ae
3,804
cc
C++
perf.cc
sinisa-susnjar/tuple_vector
1d9f1e4202f03bb5392c0ea64698b37e16dbd915
[ "MIT" ]
2
2019-04-14T06:02:25.000Z
2019-04-14T13:35:35.000Z
perf.cc
sinisa-susnjar/tuple_vector
1d9f1e4202f03bb5392c0ea64698b37e16dbd915
[ "MIT" ]
null
null
null
perf.cc
sinisa-susnjar/tuple_vector
1d9f1e4202f03bb5392c0ea64698b37e16dbd915
[ "MIT" ]
null
null
null
#include <algorithm> #include <iostream> #include <array> #include <vector> #include <map> // please also clone my cppbench library ( https://github.com/sinisa-susnjar/cppbench.git ) #include "../cppbench/cppbench.h" #include "tuple_vector.h" #include "common.h" using namespace std; /** * \brief Specialised output...
36.228571
126
0.656677
sinisa-susnjar
841576ff4b89168c3e327f70db7bce06618e8d7a
7,502
cc
C++
tests/testggl_chem_MoleculeGroups.cc
michaelapeterka/GGL
99e585b773ad8f33e39160d2cbd71c00e036fa37
[ "MIT" ]
20
2017-05-09T15:37:04.000Z
2021-11-24T10:51:02.000Z
tests/testggl_chem_MoleculeGroups.cc
michaelapeterka/GGL
99e585b773ad8f33e39160d2cbd71c00e036fa37
[ "MIT" ]
2
2017-05-24T08:00:25.000Z
2017-05-24T08:01:01.000Z
tests/testggl_chem_MoleculeGroups.cc
michaelapeterka/GGL
99e585b773ad8f33e39160d2cbd71c00e036fa37
[ "MIT" ]
7
2017-05-29T10:55:18.000Z
2020-12-04T14:24:51.000Z
#include <iostream> #include <sstream> #include "ggl/chem/MoleculeComponent.hh" #include "ggl/chem/MoleculeComponent_GMLparser.hh" #include "ggl/chem/SMILESparser.hh" #include "ggl/chem/SMILESwriter.hh" #include "ggl/chem/MoleculeUtil.hh" #include "sgm/Graph_boost.hh" #include "utilPrintGraph_Interface.icc" using ...
30.745902
95
0.530125
michaelapeterka
8415a2d95199fe0751816c33b80e9e281ad12af4
1,125
cpp
C++
MMOCoreORB/src/server/zone/objects/intangible/components/UnpackStructureComponent.cpp
V-Fib/FlurryClone
40e0ca7245ec31b3815eb6459329fd9e70f88936
[ "Zlib", "OpenSSL" ]
18
2017-02-09T15:36:05.000Z
2021-12-21T04:22:15.000Z
MMOCoreORB/src/server/zone/objects/intangible/components/UnpackStructureComponent.cpp
V-Fib/FlurryClone
40e0ca7245ec31b3815eb6459329fd9e70f88936
[ "Zlib", "OpenSSL" ]
61
2016-12-30T21:51:10.000Z
2021-12-10T20:25:56.000Z
MMOCoreORB/src/server/zone/objects/intangible/components/UnpackStructureComponent.cpp
V-Fib/FlurryClone
40e0ca7245ec31b3815eb6459329fd9e70f88936
[ "Zlib", "OpenSSL" ]
71
2017-01-01T05:34:38.000Z
2022-03-29T01:04:00.000Z
/* * UnpackStructureComponent.cpp */ #include "UnpackStructureComponent.h" #include "server/zone/objects/creature/CreatureObject.h" #include "server/zone/managers/structure/StructureManager.h" #include "server/zone/objects/structure/StructureObject.h" #include "server/zone/objects/intangible/StructureControlDevice....
33.088235
141
0.798222
V-Fib
84223a4fdda02e4766908c43c579b1d4712d0243
260
hpp
C++
extern/magnetic-force/fmmtl_minimum/fmmtl/meta/dimension.hpp
hg2120223/SPlisHSPlasH
b1596c6dfde914533367f7d3124b46997a833af2
[ "MIT" ]
52
2019-10-06T17:25:39.000Z
2022-01-20T23:01:13.000Z
extern/magnetic-force/fmmtl_minimum/fmmtl/meta/dimension.hpp
hg2120223/SPlisHSPlasH
b1596c6dfde914533367f7d3124b46997a833af2
[ "MIT" ]
1
2019-10-08T18:44:41.000Z
2019-10-09T07:48:31.000Z
extern/magnetic-force/fmmtl_minimum/fmmtl/meta/dimension.hpp
hg2120223/SPlisHSPlasH
b1596c6dfde914533367f7d3124b46997a833af2
[ "MIT" ]
10
2019-10-07T16:33:24.000Z
2020-10-21T01:09:47.000Z
#pragma once namespace fmmtl { template <typename T> struct dimension; template <> struct dimension<double> { const static std::size_t value = 1; }; template <> struct dimension<float> { const static std::size_t value = 1; }; } // end namepsace fmmtl
13.684211
37
0.7
hg2120223
842258a2eff65ae94044a58ed90cf6ae1ad745b9
2,137
hpp
C++
src/axom/core/numerics/eigen_sort.hpp
bmhan12/axom
fbee125aec6357340f35b6fd5d0d4a62a3c80733
[ "BSD-3-Clause" ]
86
2019-04-12T20:39:37.000Z
2022-01-28T17:06:08.000Z
src/axom/core/numerics/eigen_sort.hpp
bmhan12/axom
fbee125aec6357340f35b6fd5d0d4a62a3c80733
[ "BSD-3-Clause" ]
597
2019-04-25T22:36:16.000Z
2022-03-31T20:21:54.000Z
src/axom/core/numerics/eigen_sort.hpp
bmhan12/axom
fbee125aec6357340f35b6fd5d0d4a62a3c80733
[ "BSD-3-Clause" ]
21
2019-06-27T15:53:08.000Z
2021-09-30T20:17:41.000Z
// Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and // other Axom Project Developers. See the top-level LICENSE file for details. // // SPDX-License-Identifier: (BSD-3-Clause) #ifndef AXOM_EIGEN_SORT_HPP_ #define AXOM_EIGEN_SORT_HPP_ // Axom includes #include "axom/core/utilities/Utilities.hpp" ...
26.7125
80
0.620028
bmhan12
84229489419ead3b8422cb55122a67ac87f3449d
631
cpp
C++
rotate_img.cpp
Saahitya/pipeline_design_pattern
afe027f1674ce5d17c7c1e2f8f45c883aee643f4
[ "MIT" ]
null
null
null
rotate_img.cpp
Saahitya/pipeline_design_pattern
afe027f1674ce5d17c7c1e2f8f45c883aee643f4
[ "MIT" ]
null
null
null
rotate_img.cpp
Saahitya/pipeline_design_pattern
afe027f1674ce5d17c7c1e2f8f45c883aee643f4
[ "MIT" ]
null
null
null
#include "rotate_img.h" #include "payload.h" #include <iostream> #include <opencv2/highgui/highgui.hpp> #include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <cstdlib> using namespace cv; using namespace std; RotateImg::RotateImg() { } Payload* RotateImg::stage_op(Payload *ele) { cout...
19.121212
79
0.66878
Saahitya
84265865500befa0ad52da5599e2e6b12da26529
272
cpp
C++
c++/maratona/salario com bonus/salario com bonus.cpp
felipeMachado92/programas-em-C-
55d675110e495c7bcceb2b1bf2d32d582a445b40
[ "MIT" ]
null
null
null
c++/maratona/salario com bonus/salario com bonus.cpp
felipeMachado92/programas-em-C-
55d675110e495c7bcceb2b1bf2d32d582a445b40
[ "MIT" ]
null
null
null
c++/maratona/salario com bonus/salario com bonus.cpp
felipeMachado92/programas-em-C-
55d675110e495c7bcceb2b1bf2d32d582a445b40
[ "MIT" ]
null
null
null
#include<iostream> using namespace std; int main(){ string nomeFuncionario; float salario; float totalVendas; cin>>nomeFuncionario; cin>>salario; cin>>totalVendas; cout.precision(2); cout<<"TOTAL = R$ "<<fixed<<salario+(totalVendas * 0.15)<<endl; return 0; }
16
64
0.702206
felipeMachado92
8431863a67ce855124ee7fb7ec196329a47324b4
2,372
hpp
C++
src/open_viii/graphics/background/Tile1.hpp
Sebanisu/VIIIcppTest
59565ae2d32ea302401402544a70d3b37fab7351
[ "MIT" ]
2
2020-04-30T22:12:06.000Z
2020-05-01T07:06:26.000Z
src/open_viii/graphics/background/Tile1.hpp
Sebanisu/VIIIcppTest
59565ae2d32ea302401402544a70d3b37fab7351
[ "MIT" ]
9
2020-04-26T01:52:21.000Z
2020-05-20T21:10:28.000Z
src/open_viii/graphics/background/Tile1.hpp
Sebanisu/VIIIcppTest
59565ae2d32ea302401402544a70d3b37fab7351
[ "MIT" ]
null
null
null
// This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be usefu...
40.896552
79
0.663153
Sebanisu
84374264f4364fd537ae53582a45d63f46f3cbda
3,832
cpp
C++
hot_reload/source/server/server.cpp
dumheter/hot_reload
6a24cfc2f9c6c424e7394169379513b6f80304fe
[ "MIT" ]
1
2018-11-12T04:00:47.000Z
2018-11-12T04:00:47.000Z
hot_reload/source/server/server.cpp
dumheter/hot_reload
6a24cfc2f9c6c424e7394169379513b6f80304fe
[ "MIT" ]
null
null
null
hot_reload/source/server/server.cpp
dumheter/hot_reload
6a24cfc2f9c6c424e7394169379513b6f80304fe
[ "MIT" ]
null
null
null
// ============================================================ // // Headers // ============================================================ // #include "server.hpp" #include <exception> // ============================================================ // // Class Implementation // ====================================...
31.154472
99
0.503392
dumheter
844330d87538ec51f0ab5733da4b1ff5c3efdb95
302
cpp
C++
tests/testSparkVio.cpp
tonioteran/Kimera-VIO
fe3ab9554a30fdff760da53d5ad22ee45f91c498
[ "BSD-2-Clause" ]
2
2019-12-18T12:38:24.000Z
2019-12-25T08:18:02.000Z
tests/testKimeraVIO.cpp
omarosamahu/Kimera-VIO
a652739af937200a2b82da86c217fec28334f146
[ "BSD-2-Clause" ]
null
null
null
tests/testKimeraVIO.cpp
omarosamahu/Kimera-VIO
a652739af937200a2b82da86c217fec28334f146
[ "BSD-2-Clause" ]
1
2020-01-18T09:52:52.000Z
2020-01-18T09:52:52.000Z
#include <gflags/gflags.h> #include <glog/logging.h> #include <gtest/gtest.h> DEFINE_string(test_data_path, "../tests/data", "Path to data for unit tests."); int main(int argc, char **argv) { ::testing::InitGoogleTest(&argc, argv); google::InitGoogleLogging(argv[0]); return RUN_ALL_TESTS(); }
25.166667
79
0.705298
tonioteran
8443e32f0827078f1263ac40cfabed96eb5e36c8
59,878
cxx
C++
Source/Applications/PointsBuilder/pqCMBLIDARReaderManager.cxx
developkits/cmb
caaf9cd7ffe0b7c1ac3be9edbce0f9430068d2cb
[ "BSD-3-Clause" ]
null
null
null
Source/Applications/PointsBuilder/pqCMBLIDARReaderManager.cxx
developkits/cmb
caaf9cd7ffe0b7c1ac3be9edbce0f9430068d2cb
[ "BSD-3-Clause" ]
null
null
null
Source/Applications/PointsBuilder/pqCMBLIDARReaderManager.cxx
developkits/cmb
caaf9cd7ffe0b7c1ac3be9edbce0f9430068d2cb
[ "BSD-3-Clause" ]
null
null
null
//========================================================================= // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURPOSE...
34.95505
100
0.715906
developkits
8447119d6c8279442afbf8e080b827a793b46d51
2,234
hh
C++
src/json/include/public/dt/json/container.hh
Oaticus/Deltatron
88ac3b56d7e46fd66c3dcaeab5861c7f8016a736
[ "BSD-2-Clause" ]
null
null
null
src/json/include/public/dt/json/container.hh
Oaticus/Deltatron
88ac3b56d7e46fd66c3dcaeab5861c7f8016a736
[ "BSD-2-Clause" ]
null
null
null
src/json/include/public/dt/json/container.hh
Oaticus/Deltatron
88ac3b56d7e46fd66c3dcaeab5861c7f8016a736
[ "BSD-2-Clause" ]
null
null
null
#pragma once #include <optional> #include <string> #include <cstdint> // std::size_t namespace dt { class json; class json_container_imp; class json_container final { friend class json; json_container_imp& _container; public: bool is_object() const noexcept; bool is_array() const noexcept; auto objec...
42.961538
103
0.722023
Oaticus
844bded3e7b54589d7e93ead4d04026cd9329226
1,852
cpp
C++
701-800/788-Rotated_Digits-e.cpp
ysmiles/leetcode-cpp
e7e6ef11224c7383071ed8efbe2feac313824a71
[ "BSD-3-Clause" ]
1
2018-10-02T22:44:52.000Z
2018-10-02T22:44:52.000Z
701-800/788-Rotated_Digits-e.cpp
ysmiles/leetcode-cpp
e7e6ef11224c7383071ed8efbe2feac313824a71
[ "BSD-3-Clause" ]
null
null
null
701-800/788-Rotated_Digits-e.cpp
ysmiles/leetcode-cpp
e7e6ef11224c7383071ed8efbe2feac313824a71
[ "BSD-3-Clause" ]
null
null
null
// X is a good number if after rotating each digit individually by 180 degrees, // we get a valid number that is different from X. Each digit must be rotated - // we cannot choose to leave it alone. // A number is valid if each digit remains a digit after rotation. 0, 1, and 8 // rotate to themselves; 2 and 5 rotate ...
27.235294
80
0.511879
ysmiles
e0fa85de8330fc507d144120be3b5ebe9ea6436f
963
cpp
C++
code/878.cpp
Nightwish-cn/my_leetcode
40f206e346f3f734fb28f52b9cde0e0041436973
[ "MIT" ]
23
2020-03-30T05:44:56.000Z
2021-09-04T16:00:57.000Z
code/878.cpp
Nightwish-cn/my_leetcode
40f206e346f3f734fb28f52b9cde0e0041436973
[ "MIT" ]
1
2020-05-10T15:04:05.000Z
2020-06-14T01:21:44.000Z
code/878.cpp
Nightwish-cn/my_leetcode
40f206e346f3f734fb28f52b9cde0e0041436973
[ "MIT" ]
6
2020-03-30T05:45:04.000Z
2020-08-13T10:01:39.000Z
#include <bits/stdc++.h> #define INF 2000000000 using namespace std; typedef long long ll; int read(){ int f = 1, x = 0; char c = getchar(); while(c < '0' || c > '9'){if(c == '-') f = -f; c = getchar();} while(c >= '0' && c <= '9')x = x * 10 + c - '0', c = getchar(); return f * x; } class Solution { public: i...
21.4
64
0.426791
Nightwish-cn
46001d11e323218cbde994b861add21189d7ac7e
2,497
cpp
C++
Simulator/test/rules_creator_test.cpp
zpervan/GameOfLife
5de94ef837ada33e700b5e9e5b14b9371c00fe43
[ "MIT" ]
3
2020-12-12T15:49:03.000Z
2021-05-22T02:04:02.000Z
Simulator/test/rules_creator_test.cpp
zpervan/GameOfLife
5de94ef837ada33e700b5e9e5b14b9371c00fe43
[ "MIT" ]
null
null
null
Simulator/test/rules_creator_test.cpp
zpervan/GameOfLife
5de94ef837ada33e700b5e9e5b14b9371c00fe43
[ "MIT" ]
null
null
null
#include "Simulator/src/rules_creator.h" #include "Simulator/test/test_utility.h" #include "gtest/gtest.h" TEST(RulesTest, GivenCallToBasicRulesCreation_WhenCreated_ThenRulesCorrectlyCreated) { constexpr std::size_t expected_size{256}; const auto &rules{RulesCreator::CreateListOfRules()}; ASSERT_EQ(rule...
48.960784
116
0.659992
zpervan
4603c70291591525409f34aba08d05dfe2142cf6
2,442
cpp
C++
Example/Application/DICOMViewer/main.cpp
X1aoyueyue/KVS
ad47d62bef4fdd9ddd3412a26ee6557b63f0543b
[ "BSD-3-Clause" ]
null
null
null
Example/Application/DICOMViewer/main.cpp
X1aoyueyue/KVS
ad47d62bef4fdd9ddd3412a26ee6557b63f0543b
[ "BSD-3-Clause" ]
null
null
null
Example/Application/DICOMViewer/main.cpp
X1aoyueyue/KVS
ad47d62bef4fdd9ddd3412a26ee6557b63f0543b
[ "BSD-3-Clause" ]
null
null
null
/*****************************************************************************/ /** * @file main.cpp * @brief DICOM viewer * @author Naohisa Sakamoto * * Compile:\ * \code * % kvsmake -G * % kvsmake * \endcode * * Usage:\n * \code * % ./DICOMViewer [-h|--help] <DICOM file or directory> * \e...
28.395349
79
0.536036
X1aoyueyue
4603d8bbc76de49ae0a1001e425bad2a1c228b9d
1,254
cpp
C++
demo/serialize/test_obj_serialize.cpp
hobby/neiku
6858066323be7c36db1e1f2930cd55faec83dad5
[ "MIT" ]
null
null
null
demo/serialize/test_obj_serialize.cpp
hobby/neiku
6858066323be7c36db1e1f2930cd55faec83dad5
[ "MIT" ]
null
null
null
demo/serialize/test_obj_serialize.cpp
hobby/neiku
6858066323be7c36db1e1f2930cd55faec83dad5
[ "MIT" ]
null
null
null
#include <vector> #include "neiku/log.h" #include "neiku/serialize.h" using namespace neiku; class CPerson { public: int32_t id; std::string name; std::string addr; std::string wechat; bool flag; std::vector<int> list; std::vector<std::string> strs; public: CPerson(): id(0), flag(fa...
19.59375
39
0.57815
hobby
4604b0a9422538ab035f55898d3c14d72c023aa9
2,968
cpp
C++
Beta5.8_050422/test_tcp/device03_dialog.cpp
KomKGT/LTN_Comunication
ee57eb3909df3955df1af0c9cc6b980914fd2d52
[ "MIT" ]
null
null
null
Beta5.8_050422/test_tcp/device03_dialog.cpp
KomKGT/LTN_Comunication
ee57eb3909df3955df1af0c9cc6b980914fd2d52
[ "MIT" ]
null
null
null
Beta5.8_050422/test_tcp/device03_dialog.cpp
KomKGT/LTN_Comunication
ee57eb3909df3955df1af0c9cc6b980914fd2d52
[ "MIT" ]
null
null
null
#include "device03_dialog.h" #include "ui_device03_dialog.h" #include <QSettings> Device03_Dialog::Device03_Dialog(QWidget *parent) : QDialog(parent), ui(new Ui::Device03_Dialog) { ui->setupUi(this); } Device03_Dialog::~Device03_Dialog() { delete ui; } QString Device03_Dialog::IPV4_Sele...
25.808696
73
0.670822
KomKGT
461a0972f67b783892ea1cc4b256f97bf139538d
1,108
hpp
C++
src/split_predicate.hpp
Mogby/DataStructure
84e5444971ecc7e79509c72ffe4b04ffe410bd4a
[ "BSD-3-Clause", "MIT" ]
null
null
null
src/split_predicate.hpp
Mogby/DataStructure
84e5444971ecc7e79509c72ffe4b04ffe410bd4a
[ "BSD-3-Clause", "MIT" ]
null
null
null
src/split_predicate.hpp
Mogby/DataStructure
84e5444971ecc7e79509c72ffe4b04ffe410bd4a
[ "BSD-3-Clause", "MIT" ]
null
null
null
#pragma once #ifndef DATASTRUCTURE_SPLIT_PREDICATE_HPP #define DATASTRUCTURE_SPLIT_PREDICATE_HPP #include "typedefs.hpp" class TreapNode; class SplitPredicate { public: virtual bool operator()(const TreapNode &node) = 0; virtual void goLeft(const TreapNode &node) {}; virtual void goRight(const TreapN...
17.046154
98
0.738267
Mogby
461dd696480f50348bebc2e4e26383bccd2277bb
1,468
cpp
C++
Engine/src/Util/icTime.cpp
binofet/ice
dee91da76df8b4f46ed4727d901819d8d20aefe3
[ "MIT" ]
null
null
null
Engine/src/Util/icTime.cpp
binofet/ice
dee91da76df8b4f46ed4727d901819d8d20aefe3
[ "MIT" ]
null
null
null
Engine/src/Util/icTime.cpp
binofet/ice
dee91da76df8b4f46ed4727d901819d8d20aefe3
[ "MIT" ]
null
null
null
#include "Util/icTime.h" #ifdef WIN32 #ifdef WIN32 #include <windows.h> #else #include <Xtl.h> #endif LARGE_INTEGER __ic_freq; void icSysTimeInit(void) { QueryPerformanceFrequency(&__ic_freq); } #else #include <sys/time.h> void icSysTimeInit(void) { } #endif /*! c'tor **/ icTimer::icTimer(void) { #ifdef WIN32 Query...
18.582278
88
0.715259
binofet
4621e0dfec109ff3d522bae6b824a2aad4c29380
2,116
cpp
C++
src/obproxy/proxy/api/ob_session_plugin.cpp
stutiredboy/obproxy
b5f98a6e1c45e6a878376df49b9c10b4249d3626
[ "Apache-2.0" ]
74
2021-05-31T15:23:49.000Z
2022-03-12T04:46:39.000Z
src/obproxy/proxy/api/ob_session_plugin.cpp
stutiredboy/obproxy
b5f98a6e1c45e6a878376df49b9c10b4249d3626
[ "Apache-2.0" ]
16
2021-05-31T15:26:38.000Z
2022-03-30T06:02:43.000Z
src/obproxy/proxy/api/ob_session_plugin.cpp
stutiredboy/obproxy
b5f98a6e1c45e6a878376df49b9c10b4249d3626
[ "Apache-2.0" ]
64
2021-05-31T15:25:36.000Z
2022-02-23T08:43:58.000Z
/** * Copyright (c) 2021 OceanBase * OceanBase Database Proxy(ODP) is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ...
31.58209
88
0.740548
stutiredboy
4629afa0d17a101afcdfd81f430242e5f4938c9e
2,225
hpp
C++
include/LuaPlugins.hpp
vexyl/MCHawk2
9c69795181c5a59ff6c57c36e77d71623df4db8b
[ "MIT" ]
5
2020-09-02T06:58:15.000Z
2021-12-26T02:29:35.000Z
include/LuaPlugins.hpp
vexyl/MCHawk2
9c69795181c5a59ff6c57c36e77d71623df4db8b
[ "MIT" ]
10
2021-11-23T16:10:38.000Z
2021-12-30T16:05:52.000Z
include/LuaPlugins.hpp
vexyl/MCHawk2
9c69795181c5a59ff6c57c36e77d71623df4db8b
[ "MIT" ]
1
2021-07-13T16:55:53.000Z
2021-07-13T16:55:53.000Z
#ifndef LUAPLUGINS_H_ #define LUAPLUGINS_H_ #include "ServerAPI.hpp" #include "Net/Client.hpp" #include "Player.hpp" #include "Net/ClassicProtocol.hpp" #include <sol/sol.hpp> #include <memory> #include <cstdint> #pragma comment(lib, "LuaLib.lib") class IPlugin { public: virtual void Init() = 0; virtual void Tick...
25
116
0.738876
vexyl
462e1a542be8f091f70e3b3921e818da08091eff
1,313
cpp
C++
potato/libgame/source/arcball.cpp
seanmiddleditch/grimm
9f47fc5d7aa0af19a3a7c82a38b7f7c59b83fbf5
[ "MIT" ]
null
null
null
potato/libgame/source/arcball.cpp
seanmiddleditch/grimm
9f47fc5d7aa0af19a3a7c82a38b7f7c59b83fbf5
[ "MIT" ]
null
null
null
potato/libgame/source/arcball.cpp
seanmiddleditch/grimm
9f47fc5d7aa0af19a3a7c82a38b7f7c59b83fbf5
[ "MIT" ]
null
null
null
// Copyright by Potato Engine contributors. See accompanying License.txt for copyright details. #include "potato/game/arcball.h" #include <glm/common.hpp> #include <glm/geometric.hpp> #include <glm/gtx/rotate_vector.hpp> #include <cmath> void up::ArcBall::handleInput(glm::vec3 relativeMovement, glm::vec3 relativeMot...
38.617647
111
0.661081
seanmiddleditch
462ea4f5d7d348d410e6ef3d95628e80e53f495d
1,956
hh
C++
src/fml/cpu/copy.hh
wrathematics/fml
e6db9c67a530b31f80a7fc0fe16d0f88c1d9a18e
[ "BSL-1.0" ]
15
2020-01-29T08:59:34.000Z
2020-01-31T04:21:52.000Z
src/fml/cpu/copy.hh
wrathematics/fml
e6db9c67a530b31f80a7fc0fe16d0f88c1d9a18e
[ "BSL-1.0" ]
null
null
null
src/fml/cpu/copy.hh
wrathematics/fml
e6db9c67a530b31f80a7fc0fe16d0f88c1d9a18e
[ "BSL-1.0" ]
null
null
null
// This file is part of fml which is released under the Boost Software // License, Version 1.0. See accompanying file LICENSE or copy at // https://www.boost.org/LICENSE_1_0.txt #ifndef FML_CPU_COPY_H #define FML_CPU_COPY_H #pragma once #include <stdexcept> #include "../_internals/arraytools/src/arraytools.hpp" #i...
24.148148
79
0.683538
wrathematics
4635d890bddde70a535f1e43bcb08a424932a070
1,498
hpp
C++
src/include/client/graphical/object_renderer.hpp
arthurmco/familyline
849eee40cff266af9a3f848395ed139b7ce66197
[ "MIT" ]
6
2018-05-11T23:16:02.000Z
2019-06-13T01:35:07.000Z
src/include/client/graphical/object_renderer.hpp
arthurmco/familyline
849eee40cff266af9a3f848395ed139b7ce66197
[ "MIT" ]
33
2018-05-11T14:12:22.000Z
2022-03-12T00:55:25.000Z
src/include/client/graphical/object_renderer.hpp
arthurmco/familyline
849eee40cff266af9a3f848395ed139b7ce66197
[ "MIT" ]
1
2018-12-06T23:39:55.000Z
2018-12-06T23:39:55.000Z
#pragma once /** * Renders objects by sending it to the graphics engine * * It is a "bridge" class between the logic and the graphical engine */ #include <common/logic/terrain.hpp> #include <common/logic/game_object.hpp> #include <common/logic/object_components.hpp> #include <map> #include <memory> #include <vect...
25.827586
99
0.704272
arthurmco
463bae8ba71c26226d39fbfc805a2b8e3eccdac9
10,279
cpp
C++
src/wall.cpp
SiriusTR/dle-experimental
2ee17b4277b68eef57960d5cf9762dd986eaa0d9
[ "MIT" ]
null
null
null
src/wall.cpp
SiriusTR/dle-experimental
2ee17b4277b68eef57960d5cf9762dd986eaa0d9
[ "MIT" ]
3
2019-09-10T03:50:40.000Z
2019-09-23T04:20:14.000Z
src/wall.cpp
SiriusTR/dle-experimental
2ee17b4277b68eef57960d5cf9762dd986eaa0d9
[ "MIT" ]
1
2021-10-02T14:16:28.000Z
2021-10-02T14:16:28.000Z
#include "stdafx.h" #include <malloc.h> #include <stdlib.h> #undef abs #include <math.h> #include <mmsystem.h> #include <stdio.h> #include "mine.h" #include "dle-xp.h" //------------------------------------------------------------------------------ ubyte animClipTable [NUM_OF_CLIPS_D2] = { 0, 1, 3, 4, 5, 6, ...
27.856369
103
0.486429
SiriusTR
4641b5b41ec7d2d62ef0585016cf707148d1074d
2,018
cpp
C++
cali-linker/modules/binary_module.cpp
cali-library-isolation/Cali-library-isolation
550893293f66b0428a7b66e1ab80d9f5b7a4bbf4
[ "Apache-2.0" ]
7
2021-03-26T06:52:31.000Z
2022-03-11T09:42:57.000Z
cali-linker/modules/binary_module.cpp
cali-library-isolation/Cali-library-isolation
550893293f66b0428a7b66e1ab80d9f5b7a4bbf4
[ "Apache-2.0" ]
null
null
null
cali-linker/modules/binary_module.cpp
cali-library-isolation/Cali-library-isolation
550893293f66b0428a7b66e1ab80d9f5b7a4bbf4
[ "Apache-2.0" ]
1
2022-02-25T06:57:17.000Z
2022-02-25T06:57:17.000Z
#include "ipc_module.h" #include <iostream> #include <sstream> namespace ipcrewriter { using namespace std; static std::string exec(std::string cmd) { std::array<char, 128> buffer; std::string result; std::shared_ptr<FILE> pipe(popen(cmd.c_str(), "r"), pclose); if (!pipe) throw std::runtime_error("popen() ...
31.53125
154
0.621903
cali-library-isolation
464223bfc03a13465e8fb344d3288023c7c83f1d
464
cpp
C++
Source/WOTS_MerkleTreePrivateKey.cpp
Mar-Alex/hash-based-signature
7476e3b1862133fdc8f0346e7e4d1f74992742ad
[ "Apache-2.0" ]
null
null
null
Source/WOTS_MerkleTreePrivateKey.cpp
Mar-Alex/hash-based-signature
7476e3b1862133fdc8f0346e7e4d1f74992742ad
[ "Apache-2.0" ]
null
null
null
Source/WOTS_MerkleTreePrivateKey.cpp
Mar-Alex/hash-based-signature
7476e3b1862133fdc8f0346e7e4d1f74992742ad
[ "Apache-2.0" ]
null
null
null
#include "WOTS_MerkleTreePrivateKey.h" WOTS_MerkleTreePrivateKey::WOTS_MerkleTreePrivateKey(int w, int treeSize) { this->N = treeSize; this->w = w; WOTS_PrivateKeys.resize(treeSize); WOTS_PublicKeys.resize(treeSize); keysForExpansion.resize(treeSize); } WOTS_MerkleTreePrivateKey::~WOTS_MerkleTreePrivateKey() { ...
22.095238
75
0.747845
Mar-Alex
464730ca0908fb49cbb62ec31bcb08df018e69f2
4,104
cpp
C++
DirectX11_Starter_2015/DirectX11_Starter/Transform.cpp
QRayarch/ShootyBally
c98d2cdccbc34a346f59d1cedfc4dbd1571e0a46
[ "MIT" ]
1
2016-03-14T01:58:26.000Z
2016-03-14T01:58:26.000Z
DirectX11_Starter_2015/DirectX11_Starter/Transform.cpp
QRayarch/ShootyBally
c98d2cdccbc34a346f59d1cedfc4dbd1571e0a46
[ "MIT" ]
null
null
null
DirectX11_Starter_2015/DirectX11_Starter/Transform.cpp
QRayarch/ShootyBally
c98d2cdccbc34a346f59d1cedfc4dbd1571e0a46
[ "MIT" ]
null
null
null
#include "Transform.h" Transform::Transform() { isDirty = true; parent = nullptr; position = XMFLOAT3(0, 0, 0); rotation = XMFLOAT3(0, 0, 0); scale = XMFLOAT3(1, 1, 1); XMStoreFloat4x4(&worldMatrix, XMMatrixIdentity()); } Transform::Transform(const Transform & other) { isDirty = other.isDirty; parent = other...
25.974684
142
0.743908
QRayarch
464b7c780a3e782a8a1fd690d8e92222b9ee7eff
3,206
cpp
C++
src/Domain/Block.cpp
marissawalker/spectre
afc8205e2f697de5e8e4f05e881499e05c9fd8a0
[ "MIT" ]
null
null
null
src/Domain/Block.cpp
marissawalker/spectre
afc8205e2f697de5e8e4f05e881499e05c9fd8a0
[ "MIT" ]
null
null
null
src/Domain/Block.cpp
marissawalker/spectre
afc8205e2f697de5e8e4f05e881499e05c9fd8a0
[ "MIT" ]
null
null
null
// Distributed under the MIT License. // See LICENSE.txt for details. #include "Domain/Block.hpp" #include <pup.h> // IWYU pragma: keep #include "Parallel/PupStlCpp11.hpp" // IWYU pragma: keep #include "Utilities/GenerateInstantiations.hpp" namespace Frame { struct Grid; struct Inertial; struct Logical; } // nam...
37.717647
80
0.631316
marissawalker
4657d98476cc2211e8ce20f965e88eeab5f86c81
862
cpp
C++
src/QtFinderAppCreater.cpp
paopaol/QtFinder
e71d7b5f3eba56d1039ca3c6ad912712f51bebad
[ "MIT" ]
1
2019-09-04T06:24:36.000Z
2019-09-04T06:24:36.000Z
src/QtFinderAppCreater.cpp
paopaol/QtFinder
e71d7b5f3eba56d1039ca3c6ad912712f51bebad
[ "MIT" ]
null
null
null
src/QtFinderAppCreater.cpp
paopaol/QtFinder
e71d7b5f3eba56d1039ca3c6ad912712f51bebad
[ "MIT" ]
null
null
null
#include "DesktopServiceImpl.h" #include "FileSystemScannerImpl.h" #include "QtFinderToolImpl.h" #include "QtFinderWindowImpl.h" #include <QtFinderApp.h> std::unique_ptr<QtFinderApp> QtFinderApp::newApp(QWidget *parent) { std::unique_ptr<QtFinderApp> app = std::make_unique<QtFinderApp>(parent); QScopedPointer<Abs...
34.48
77
0.781903
paopaol
465996fe240a93b6bbc0d98e28197e485d654c5c
1,066
cpp
C++
exam/answer/03.1.cpp
AlexDyuba/first-semester-practice
9a7bbb9e2576f260e667f1bb94effbfeadac434b
[ "Apache-2.0" ]
null
null
null
exam/answer/03.1.cpp
AlexDyuba/first-semester-practice
9a7bbb9e2576f260e667f1bb94effbfeadac434b
[ "Apache-2.0" ]
null
null
null
exam/answer/03.1.cpp
AlexDyuba/first-semester-practice
9a7bbb9e2576f260e667f1bb94effbfeadac434b
[ "Apache-2.0" ]
null
null
null
void func(int* a, int* b, int n); int main() { int *a, *b, n; scanf_s("%d", &n); a = (int*)malloc(n * sizeof(int*)); int i, j = 0; int k; for (i = 0; i < n; i++) { scanf_s("%d", &a[i]); j = i; k = a[i]; c[i][j] += a[i1][j1] * b[i2][j2]; j1++; ...
21.755102
42
0.277674
AlexDyuba
465a3999665ace8ad16af276e1828114c9575d2d
6,023
cpp
C++
QXlsx/zip_utils/examples/simple/simple.cpp
vvck/QXlsx
281fcb41ec186167ee3bbbe57572746f3c9c09be
[ "MIT" ]
null
null
null
QXlsx/zip_utils/examples/simple/simple.cpp
vvck/QXlsx
281fcb41ec186167ee3bbbe57572746f3c9c09be
[ "MIT" ]
null
null
null
QXlsx/zip_utils/examples/simple/simple.cpp
vvck/QXlsx
281fcb41ec186167ee3bbbe57572746f3c9c09be
[ "MIT" ]
null
null
null
#include <windows.h> #include <tchar.h> #include <stdio.h> #include "../../zip.h" #include "../../unzip.h" void CreateFiles(); // will create "\\simple.bmp" and "\\simple.txt" for subsequent zipping void main() { CreateFiles(); HZIP hz; DWORD writ; // EXAMPLE 1 - create a zipfile from existing files hz = Crea...
39.625
142
0.701644
vvck
465dec87988b068c96fc4d548c8548bb6c21ef35
431
cpp
C++
winbuild/dirname.cpp
otrempe/watchman
155d656ca218ca8d677638b8cdd3d9196d68a2d2
[ "Apache-2.0" ]
1
2019-06-19T18:12:38.000Z
2019-06-19T18:12:38.000Z
winbuild/dirname.c
sunshowers/watchman
8f48ffbb3ab28c04f37b0a6e8676a5639dd46f45
[ "Apache-2.0" ]
3
2020-09-07T02:58:18.000Z
2021-05-10T11:19:55.000Z
winbuild/dirname.c
sunshowers/watchman
8f48ffbb3ab28c04f37b0a6e8676a5639dd46f45
[ "Apache-2.0" ]
null
null
null
/* Copyright 2012-present Facebook, Inc. * Licensed under the Apache License, Version 2.0 */ #include "watchman.h" char *dirname(char *path) { char *end; uint32_t len = strlen_uint32(path); if (len == 0) { return path; } end = path + len - 1; while (end > path && *end != '/' && *end != '\\') { ...
15.392857
53
0.510441
otrempe
465edbc39716a418ba802caace166921e1b4d642
641
cpp
C++
YorozuyaGSLib/source/_pt_notify_final_decision.cpp
lemkova/Yorozuya
f445d800078d9aba5de28f122cedfa03f26a38e4
[ "MIT" ]
29
2017-07-01T23:08:31.000Z
2022-02-19T10:22:45.000Z
YorozuyaGSLib/source/_pt_notify_final_decision.cpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
90
2017-10-18T21:24:51.000Z
2019-06-06T02:30:33.000Z
YorozuyaGSLib/source/_pt_notify_final_decision.cpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
44
2017-12-19T08:02:59.000Z
2022-02-24T23:15:01.000Z
#include <_pt_notify_final_decision.hpp> START_ATF_NAMESPACE _pt_notify_final_decision::_pt_notify_final_decision() { using org_ptr = void (WINAPIV*)(struct _pt_notify_final_decision*); (org_ptr(0x1402be420L))(this); }; void _pt_notify_final_decision::ctor__pt_notify_final_decision() ...
30.52381
75
0.698908
lemkova
465f31dab3f720a23b1c291baf28214c8165b37b
833
cpp
C++
VGP332/02_HelloFSMSample/GameState.cpp
amyrhzhao/CooEngine
8d467cc53fd8fe3806d726cfe4d7482ad0aca06a
[ "MIT" ]
3
2020-07-23T02:50:11.000Z
2020-10-20T14:49:40.000Z
VGP332/02_HelloFSMSample/GameState.cpp
amyrhzhao/CooEngine
8d467cc53fd8fe3806d726cfe4d7482ad0aca06a
[ "MIT" ]
null
null
null
VGP332/02_HelloFSMSample/GameState.cpp
amyrhzhao/CooEngine
8d467cc53fd8fe3806d726cfe4d7482ad0aca06a
[ "MIT" ]
null
null
null
#include "GameState.h" using namespace Coo::Graphics; void GameState::Initialize() { mDude.Initialize(); mDude.stateMachine->AddState<RunState>(); mDude.stateMachine->AddState<DanceState>(); auto tm = TextureManager::Get(); //tm->SetRootPath(L"../../Assets/Images/"); mTextureId = tm->LoadTexture(L"sto...
21.358974
45
0.679472
amyrhzhao
465fe3e5e483239a1b5c458dacc061d3a0447bb5
1,824
cpp
C++
lectures/10-RecursiveBacktracking2/code/permutationSet/src/permutationSet.cpp
tofergregg/cs106X-website-spring-2017
1c1f4bab672248a77bdb881e818dee49b48c0070
[ "MIT" ]
null
null
null
lectures/10-RecursiveBacktracking2/code/permutationSet/src/permutationSet.cpp
tofergregg/cs106X-website-spring-2017
1c1f4bab672248a77bdb881e818dee49b48c0070
[ "MIT" ]
null
null
null
lectures/10-RecursiveBacktracking2/code/permutationSet/src/permutationSet.cpp
tofergregg/cs106X-website-spring-2017
1c1f4bab672248a77bdb881e818dee49b48c0070
[ "MIT" ]
null
null
null
// This program demonstrates how to use overloaded // functions, and how to use a helper function // to perform recursion // By: Chris Gregg // Date: February 1, 2017 #include <iostream> #include "console.h" #include "set.h" #include "simpio.h" using namespace std; // function prototypes Set<string> permute(string ...
28.952381
103
0.624452
tofergregg
4662e331d8083fce257dede8688f67d6bea105bf
6,033
cpp
C++
src/appleseed/renderer/modeling/postprocessingstage/chromaticaberrationpostprocessingstage.cpp
jamornsriwasansak/appleseed
390d5cda99593db21082fefa4fd93a8be0ba3b4b
[ "MIT" ]
1,907
2015-01-04T00:13:22.000Z
2022-03-30T15:14:00.000Z
src/appleseed/renderer/modeling/postprocessingstage/chromaticaberrationpostprocessingstage.cpp
jamornsriwasansak/appleseed
390d5cda99593db21082fefa4fd93a8be0ba3b4b
[ "MIT" ]
1,196
2015-01-04T10:50:01.000Z
2022-03-04T09:18:22.000Z
src/appleseed/renderer/modeling/postprocessingstage/chromaticaberrationpostprocessingstage.cpp
jamornsriwasansak/appleseed
390d5cda99593db21082fefa4fd93a8be0ba3b4b
[ "MIT" ]
373
2015-01-06T10:08:53.000Z
2022-03-12T10:25:57.000Z
// // This source file is part of appleseed. // Visit https://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2020 Tiago Chaves, The appleseedhq Organization // // Permission is hereby granted, free of charge, to any person obtaining...
31.097938
117
0.635505
jamornsriwasansak
466460aaca329a67437ab81193bde0c6e921d6a4
6,654
hpp
C++
addons/main/CfgAmmo.hpp
johnb432/Weapons-Balance-IFA
7d33e6f498bc22c10db0835bba71398bcb923e08
[ "MIT" ]
null
null
null
addons/main/CfgAmmo.hpp
johnb432/Weapons-Balance-IFA
7d33e6f498bc22c10db0835bba71398bcb923e08
[ "MIT" ]
null
null
null
addons/main/CfgAmmo.hpp
johnb432/Weapons-Balance-IFA
7d33e6f498bc22c10db0835bba71398bcb923e08
[ "MIT" ]
null
null
null
class CfgAmmo { /* Example: .30-06 ACE_barrelLengths[] = {n, m, o}; array of floats with typical barrel lengths ACE_bulletLength = 85 - 63 * 4/5 = 35; Overall length of round - length of cartridge * 4/5 ACE_caliber = 7.8; Bullet diameter */ class LIB_Bullet_base; class LIB_B_45ACP_Ball: LIB...
43.776316
131
0.619026
johnb432
466787e8d6945bbf910ad038f25168eb2f9c72cc
2,500
cpp
C++
src/RE/C/ColorUtil.cpp
tossaponk/CommonLibSSE
18c724dbc1128f11a581de16a9d372988ea0c8ce
[ "MIT" ]
1
2022-02-21T21:31:27.000Z
2022-02-21T21:31:27.000Z
src/RE/C/ColorUtil.cpp
tossaponk/CommonLibSSE
18c724dbc1128f11a581de16a9d372988ea0c8ce
[ "MIT" ]
null
null
null
src/RE/C/ColorUtil.cpp
tossaponk/CommonLibSSE
18c724dbc1128f11a581de16a9d372988ea0c8ce
[ "MIT" ]
1
2022-02-21T21:31:29.000Z
2022-02-21T21:31:29.000Z
#include "RE/C/ColorUtil.h" namespace RE { namespace ColorUtil { NiColor Blend(const NiColor& a_src, const NiColor& a_dest, BLEND_MODE a_mode, float a_alpha) { NiColor color; switch (a_mode) { case BLEND_MODE::kDarken: color = detail::darken(a_src, a_dest); break; case BLEND_MODE::kMultiply:...
26.315789
94
0.6692
tossaponk
4673e16fb0a35f1aea10785c7c9e7e3cbce0bfb5
1,601
hpp
C++
cbits/Audio.hpp
lynnard/cocos2d-hs
1f0c2d31c73fecff333c0ee576fb06611f777872
[ "BSD-3-Clause" ]
3
2016-09-22T05:10:06.000Z
2018-06-03T08:54:56.000Z
cbits/Audio.hpp
lynnard/cocos2d-hs
1f0c2d31c73fecff333c0ee576fb06611f777872
[ "BSD-3-Clause" ]
null
null
null
cbits/Audio.hpp
lynnard/cocos2d-hs
1f0c2d31c73fecff333c0ee576fb06611f777872
[ "BSD-3-Clause" ]
null
null
null
////////// GENERATED FILE, EDITS WILL BE LOST ////////// #ifndef HOPPY_MODULE_cocos2d_audio #define HOPPY_MODULE_cocos2d_audio #include <memory> #include <string> extern "C" { class AudioFinishCallback_impl { public: explicit AudioFinishCallback_impl(void(*)(int, std::string const*), void(*)(void(*)()), bool); ...
27.603448
98
0.721424
lynnard
4678ec218d55762ba456e2188a4f32db702f5e85
41,599
inl
C++
src/fonts/stb_font_arial_bold_20_latin1.inl
stetre/moonfonts
5c8010c02ea62edcf42902e09478b0cd14af56ea
[ "MIT" ]
3
2018-03-13T12:51:57.000Z
2021-10-11T11:32:17.000Z
src/fonts/stb_font_arial_bold_20_latin1.inl
stetre/moonfonts
5c8010c02ea62edcf42902e09478b0cd14af56ea
[ "MIT" ]
null
null
null
src/fonts/stb_font_arial_bold_20_latin1.inl
stetre/moonfonts
5c8010c02ea62edcf42902e09478b0cd14af56ea
[ "MIT" ]
null
null
null
// Font generated by stb_font_inl_generator.c (4/1 bpp) // // Following instructions show how to use the only included font, whatever it is, in // a generic way so you can replace it with any other font by changing the include. // To use multiple fonts, replace STB_SOMEFONT_* below with STB_FONT_arial_bold_20_latin...
65.304553
125
0.778144
stetre
467a822b5836a598834a49959028d9825b557fd4
780
hpp
C++
src/physics/Raycaster.hpp
xuzebin/GFrame
5449f800d16beccada27e8baa6a29b37b506dfa3
[ "MIT" ]
1
2018-03-08T05:48:38.000Z
2018-03-08T05:48:38.000Z
src/physics/Raycaster.hpp
xuzebin/GLFramework
5449f800d16beccada27e8baa6a29b37b506dfa3
[ "MIT" ]
8
2017-03-24T03:49:17.000Z
2017-12-31T20:06:05.000Z
src/physics/Raycaster.hpp
xuzebin/GLFramework
5449f800d16beccada27e8baa6a29b37b506dfa3
[ "MIT" ]
null
null
null
#ifndef Raycaster_hpp #define Raycaster_hpp #include "../base/cvec.h" #include "../base/matrix4.h" class Camera; /** * Currently only support ray sphere intersection. */ class Raycaster { public: Raycaster(); ~Raycaster(); bool isPicked(int x, int y, int screenWidth, int screenHeight, const Matrix4& p...
28.888889
206
0.738462
xuzebin
46876821efc693a6a6453042c912d6bbb53c23ae
1,568
cpp
C++
19.1. Friendship and inheritance/main.cpp
joaovmalheiros/Exercicios-Para-Revisao-Cplusplus
b9d523f863fd112b2b7fe72142a7128d5d95badc
[ "MIT" ]
null
null
null
19.1. Friendship and inheritance/main.cpp
joaovmalheiros/Exercicios-Para-Revisao-Cplusplus
b9d523f863fd112b2b7fe72142a7128d5d95badc
[ "MIT" ]
null
null
null
19.1. Friendship and inheritance/main.cpp
joaovmalheiros/Exercicios-Para-Revisao-Cplusplus
b9d523f863fd112b2b7fe72142a7128d5d95badc
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; //Friend classes: //Similar to friend functions, a friend class is a class whose members have access to the private or protected members of //another class: //Empty declaration of class Square is necessary because class Rectangle uses Square(as a parameter in member convert)...
27.508772
123
0.741071
joaovmalheiros
468778008f8bc1c0a155a7ff8f600eb685a39f72
2,630
hpp
C++
nanocv/math/quadratic.hpp
0x0all/nanocv
dc58dea6b4eb7be2089b168d39c2b02aa2730741
[ "MIT" ]
null
null
null
nanocv/math/quadratic.hpp
0x0all/nanocv
dc58dea6b4eb7be2089b168d39c2b02aa2730741
[ "MIT" ]
null
null
null
nanocv/math/quadratic.hpp
0x0all/nanocv
dc58dea6b4eb7be2089b168d39c2b02aa2730741
[ "MIT" ]
1
2018-08-02T02:41:37.000Z
2018-08-02T02:41:37.000Z
#pragma once #include <cmath> namespace ncv { /// /// \brief quadratic: a x^2 + b x + c /// template < typename tscalar > class quadratic_t { public: /// /// \brief constructor /// ...
29.222222
115
0.319392
0x0all
468c516437a4026aa2f8b2d0a26d7d4847f3b238
272
cpp
C++
soj/3960.cpp
huangshenno1/project_euler
8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d
[ "MIT" ]
null
null
null
soj/3960.cpp
huangshenno1/project_euler
8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d
[ "MIT" ]
null
null
null
soj/3960.cpp
huangshenno1/project_euler
8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d
[ "MIT" ]
null
null
null
#include <stdio.h> int main() {     int n;     while (scanf("%d",&n)==1)     {         bool cow[250]={1};         int p=0;         while (!cow[(p+p+1)%n])         {             p=(p+p+1)%n;             cow[p]=1;         }         printf("%d\n",p+1);     }     return 0; }
15.111111
31
0.338235
huangshenno1
46a0f2ba16c1ce9c749e130c6173c716d443f079
1,254
cpp
C++
vendor/boost-process/libs/process/example/win32_startup.cpp
Flusspferd/flusspferd
f2a070c4805e0bdbae4b5f528e94a9a36ceb80c5
[ "MIT" ]
7
2015-06-08T09:59:36.000Z
2021-02-27T18:45:17.000Z
externals/process/libs/process/example/win32_startup.cpp
STEllAR-GROUP/octopus
a1f910d63380e4ebf91198ac2bc2896505ce6146
[ "BSL-1.0" ]
null
null
null
externals/process/libs/process/example/win32_startup.cpp
STEllAR-GROUP/octopus
a1f910d63380e4ebf91198ac2bc2896505ce6146
[ "BSL-1.0" ]
3
2016-07-06T20:47:01.000Z
2021-06-30T19:09:47.000Z
// // Boost.Process // ~~~~~~~~~~~~~ // // Copyright (c) 2006, 2007 Julio M. Merino Vidal // Copyright (c) 2008 Boris Schaeling // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <boost/proces...
22.392857
80
0.616427
Flusspferd
46aa4d3ebceff3a4fb6fd7bfa4ae7d725756854b
3,282
cc
C++
src/compilation/DotVisitor.cc
laurent-xu/proceCUDA-generator
37bf6d9dd0e63d1bbdf147bb025a8bf6a1e68d56
[ "MIT" ]
null
null
null
src/compilation/DotVisitor.cc
laurent-xu/proceCUDA-generator
37bf6d9dd0e63d1bbdf147bb025a8bf6a1e68d56
[ "MIT" ]
null
null
null
src/compilation/DotVisitor.cc
laurent-xu/proceCUDA-generator
37bf6d9dd0e63d1bbdf147bb025a8bf6a1e68d56
[ "MIT" ]
null
null
null
#include <compilation/DotVisitor.hh> namespace { std::string instantiate_node(Node& n, const std::vector<std::string>& params = {}) { auto result = n.output_name + "[shape=rect " "label=<<B>" + n.output_name + "</B><br/>"; for (auto& param: p...
27.579832
77
0.618221
laurent-xu
9e5c85b05287f48cae877ec69f42ae2f2e7e8cd5
2,216
cpp
C++
eeprom-rw/src/main.cpp
trojanc/learn-arduino
a01ef134134963e57a1b6b42ed3e0e3342ad9b6a
[ "MIT" ]
1
2015-12-10T23:54:07.000Z
2015-12-10T23:54:07.000Z
eeprom-rw/src/main.cpp
trojanc/learn-arduino
a01ef134134963e57a1b6b42ed3e0e3342ad9b6a
[ "MIT" ]
1
2018-04-22T10:59:53.000Z
2018-04-22T10:59:53.000Z
eeprom-rw/src/main.cpp
trojanc/learn-arduino
a01ef134134963e57a1b6b42ed3e0e3342ad9b6a
[ "MIT" ]
null
null
null
/** * Author : Charl Thiem * Created : 2015-07-13 * Description : A simple program to demonstrate how to read and write to EEPROM */ /* * Include the Arduino header, as well as the EEPROM library */ #include <Arduino.h> #include <EEPROM.h> /** * This function will print the first 10 b...
25.471264
89
0.650271
trojanc
9e60af7af76ce2573bf7f329067ef122bd66a03f
1,532
cpp
C++
src/linalg/Abs.cpp
j9263178/Cytnx
cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b
[ "Apache-2.0" ]
11
2020-04-14T15:45:42.000Z
2022-03-31T14:37:03.000Z
src/linalg/Abs.cpp
j9263178/Cytnx
cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b
[ "Apache-2.0" ]
38
2019-08-02T15:15:51.000Z
2022-03-04T19:07:02.000Z
src/linalg/Abs.cpp
j9263178/Cytnx
cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b
[ "Apache-2.0" ]
7
2019-07-17T07:50:55.000Z
2021-07-03T06:44:52.000Z
#include "linalg.hpp" #include "linalg_internal_interface.hpp" #include "Tensor.hpp" namespace cytnx{ namespace linalg{ Tensor Abs(const Tensor &Tin){ Tensor out; // if the type is unsigned, clone and return. if(Type.is_unsigned(Tin.dtype())){ out = Tin.cl...
35.627907
160
0.556136
j9263178
9e624b156f2ec43faee1e0f3e55c5cbd618c7efa
3,471
hpp
C++
src/peerblock/wfp.hpp
MANICX100/peerblock
2be5c6da1b7b531e1d273b4c359bcceca788eb6e
[ "Zlib" ]
29
2015-05-09T02:35:53.000Z
2022-03-25T14:30:22.000Z
src/peerblock/wfp.hpp
efi789/peerblock
88087e34d3268169970fc417c062e91a7e4016f4
[ "Zlib" ]
3
2017-02-24T19:10:37.000Z
2018-01-29T09:45:46.000Z
src/peerblock/wfp.hpp
efi789/peerblock
88087e34d3268169970fc417c062e91a7e4016f4
[ "Zlib" ]
16
2015-04-27T18:13:27.000Z
2022-03-25T14:24:46.000Z
/* Original code copyright (C) 2004-2005 Cory Nelson PeerBlock modifications copyright (C) 2009-2011 PeerBlock, LLC Based on the original work by Tim Leonard This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising fro...
31.27027
102
0.718813
MANICX100
9e6f2ecb6bb24f4f6117041989a64021426dff9e
2,284
cpp
C++
Catch2/include/internal/catch_enum_values_registry.cpp
TheBlindMick/MPU6050
66880369fa7a73755846e60568137dfc07da1b5c
[ "BSL-1.0" ]
67
2020-04-09T23:36:26.000Z
2022-03-24T06:55:38.000Z
Catch2/include/internal/catch_enum_values_registry.cpp
TheBlindMick/MPU6050
66880369fa7a73755846e60568137dfc07da1b5c
[ "BSL-1.0" ]
79
2018-08-01T11:50:45.000Z
2020-11-17T13:40:06.000Z
Catch2/include/internal/catch_enum_values_registry.cpp
TheBlindMick/MPU6050
66880369fa7a73755846e60568137dfc07da1b5c
[ "BSL-1.0" ]
24
2020-01-17T13:47:49.000Z
2022-03-29T21:09:23.000Z
/* * Created by Phil on 4/4/2019. * Copyright 2019 Two Blue Cubes Ltd. All rights reserved. * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #include "catch_enum_values_registry.h" #include "catch_string...
34.606061
137
0.595009
TheBlindMick
9e712bc26cd7c998deea99530ac7ea40191fbe0d
779
cpp
C++
ui_project_backup/server_window/server_window.cpp
fb029ed/scrcpy-opencv-SQ
4ec40dcce2426e7aa8c93d639cf2de7bf0821bbc
[ "Apache-2.0" ]
15
2021-03-30T02:08:31.000Z
2022-02-26T04:09:18.000Z
ui_project_backup/server_window/server_window.cpp
fb029ed/scrcpy-opencv-SQ
4ec40dcce2426e7aa8c93d639cf2de7bf0821bbc
[ "Apache-2.0" ]
1
2021-04-13T15:46:36.000Z
2021-04-16T01:38:29.000Z
ui_project_backup/server_window/server_window.cpp
fb029ed/scrcpy-opencv-SQ
4ec40dcce2426e7aa8c93d639cf2de7bf0821bbc
[ "Apache-2.0" ]
1
2022-02-26T20:48:45.000Z
2022-02-26T20:48:45.000Z
#include "server_window.h" #include "./ui_server_window.h" ServerWindow::ServerWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::ServerWindow) { ui->setupUi(this); } ServerWindow::~ServerWindow() { delete ui; } void ServerWindow::on_ComboBox_bitrate_currentIndexChanged(const QString &arg1) ...
13.910714
82
0.767651
fb029ed
9e72b5da8a5f1cd9cc11cc3a22b721791dccc380
723
cpp
C++
LeetCode/Merge-binary-trees(recursive).cpp
abusomani/DS-Algo
b81b592b4ccb6c1c8a1c5275f1411ba4e91977ba
[ "Unlicense" ]
null
null
null
LeetCode/Merge-binary-trees(recursive).cpp
abusomani/DS-Algo
b81b592b4ccb6c1c8a1c5275f1411ba4e91977ba
[ "Unlicense" ]
null
null
null
LeetCode/Merge-binary-trees(recursive).cpp
abusomani/DS-Algo
b81b592b4ccb6c1c8a1c5275f1411ba4e91977ba
[ "Unlicense" ]
null
null
null
//Sometimes I feel like giving up, then I remember I have a lot of motherfuckers to prove wrong! //@BEGIN OF SOURCE CODE ( By Abhishek Somani) #include <bits/stdc++.h> using namespace std; // Definition for a binary tree node. struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) ...
23.322581
96
0.600277
abusomani
9e78673e38df2391ead0d1160cc72e820941e52a
4,910
tcc
C++
cpp/src/circuitry/gadgets/sha256_512_bits.tcc
appliedblockchain/k0
9c77205ac973f1172f935e2764de3919939dc873
[ "MIT" ]
63
2019-07-10T01:31:44.000Z
2022-01-11T10:53:11.000Z
cpp/src/circuitry/gadgets/sha256_512_bits.tcc
appliedblockchain/k0
9c77205ac973f1172f935e2764de3919939dc873
[ "MIT" ]
null
null
null
cpp/src/circuitry/gadgets/sha256_512_bits.tcc
appliedblockchain/k0
9c77205ac973f1172f935e2764de3919939dc873
[ "MIT" ]
2
2019-07-11T10:28:44.000Z
2020-09-07T20:29:35.000Z
#ifndef K0_GADGETS_SHA256_512_BITS_TCC #define K0_GADGETS_SHA256_512_BITS_TCC // Adapted from the commitment gadget in ZCash template<typename FieldT> pb_variable_array<FieldT> from_bits(std::vector<bool> bits, pb_variable<FieldT> &ZERO) { pb_variable_array<FieldT> acc; for (bool bit : bits) { acc.e...
36.641791
79
0.400407
appliedblockchain
9e84bdd1cb79d684f871513f097c021ab723544d
3,448
cpp
C++
Rent-A-Car/src/GraphicElements/mainwindow.cpp
KeynerG/Project-2-Image-Recovery-Rent-a-Car
6a96598328b30549875e5ddda7ce96eb5a429f59
[ "W3C" ]
null
null
null
Rent-A-Car/src/GraphicElements/mainwindow.cpp
KeynerG/Project-2-Image-Recovery-Rent-a-Car
6a96598328b30549875e5ddda7ce96eb5a429f59
[ "W3C" ]
null
null
null
Rent-A-Car/src/GraphicElements/mainwindow.cpp
KeynerG/Project-2-Image-Recovery-Rent-a-Car
6a96598328b30549875e5ddda7ce96eb5a429f59
[ "W3C" ]
null
null
null
#include "mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { //Setting initial window configurations setWindowTitle("Rent a Car"); setFixedSize(400, 400); setStyleSheet("background-color:#001010"); //Title title = new QLabel("Rent A Car", this); title->setAlignme...
40.564706
236
0.677784
KeynerG
9e8c781b1463fd34ae35bc981620a208450cb9e4
2,637
cpp
C++
ClientSide/Sources/Utils/FileSystem.cpp
Smipe-a/RacingWorld
930a273746a4ea9fb10b8f344fa37ff65df40338
[ "Apache-2.0" ]
3
2020-12-16T22:04:55.000Z
2021-05-10T13:30:37.000Z
ClientSide/Sources/Utils/FileSystem.cpp
Plyasunkov/RacingWorld
cf8ec9cdac5d3ec734010867846e1858c7ad9ed5
[ "Apache-2.0" ]
null
null
null
ClientSide/Sources/Utils/FileSystem.cpp
Plyasunkov/RacingWorld
cf8ec9cdac5d3ec734010867846e1858c7ad9ed5
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2018 Vladimir Balun * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
29.3
136
0.720516
Smipe-a
9e942bf98980f334431d68071f3d6e6f7c4308cc
2,345
cpp
C++
engine/source/wide/edition/plugin/edition_plugin.cpp
skarab/coffee-master
6c3ff71b7f15735e41c9859b6db981b94414c783
[ "MIT" ]
null
null
null
engine/source/wide/edition/plugin/edition_plugin.cpp
skarab/coffee-master
6c3ff71b7f15735e41c9859b6db981b94414c783
[ "MIT" ]
null
null
null
engine/source/wide/edition/plugin/edition_plugin.cpp
skarab/coffee-master
6c3ff71b7f15735e41c9859b6db981b94414c783
[ "MIT" ]
null
null
null
#include "wide/edition/plugin/edition_plugin.h" #include "wide/application/application.h" namespace coffee { //-META---------------------------------------------------------------------------------------// COFFEE_BeginType(edition::Plugin); COFFEE_Ancestor(ApplicationControl); COFFEE_EndType(); n...
29.683544
100
0.411087
skarab
9e953a5002d8685c764ee0ddb5b14e23592687a1
2,202
cpp
C++
iphoneos/AngryMetal/AngryKit/game_over_screen.cpp
ivan-ushakov/AngryMetal
0e358be545efe50fbe83664676a9f1fcd03b8825
[ "Apache-2.0" ]
null
null
null
iphoneos/AngryMetal/AngryKit/game_over_screen.cpp
ivan-ushakov/AngryMetal
0e358be545efe50fbe83664676a9f1fcd03b8825
[ "Apache-2.0" ]
null
null
null
iphoneos/AngryMetal/AngryKit/game_over_screen.cpp
ivan-ushakov/AngryMetal
0e358be545efe50fbe83664676a9f1fcd03b8825
[ "Apache-2.0" ]
null
null
null
// // game_over_screen.cpp // AngryKit // // Created by  Ivan Ushakov on 10.02.2022. // #include "game_over_screen.hpp" #include <imgui.h> #include "input_component.hpp" #include "on_exit.hpp" #include "scene.hpp" using namespace angry::ui; void GameOverScreen::reset() { _total_time = 0.0f; } void GameOver...
26.853659
101
0.681653
ivan-ushakov
9e9913da0b80fd8928974e4c24d748a13308e7e7
2,050
cpp
C++
BaikalStandalone/Bakder/GenerateLMPos.cpp
WindyPaper/RadeonProRender-Baikal
ef331accb6b11a154a40762af47a936f89281833
[ "MIT" ]
null
null
null
BaikalStandalone/Bakder/GenerateLMPos.cpp
WindyPaper/RadeonProRender-Baikal
ef331accb6b11a154a40762af47a936f89281833
[ "MIT" ]
null
null
null
BaikalStandalone/Bakder/GenerateLMPos.cpp
WindyPaper/RadeonProRender-Baikal
ef331accb6b11a154a40762af47a936f89281833
[ "MIT" ]
null
null
null
#include "GenerateLMPos.h" #include <assert.h> //#include "mesh.h" //#include "texture.h" #define CHECK_GL_ERROR assert(glGetError() == 0) GenerateLMPos::GenerateLMPos() { } GenerateLMPos::~GenerateLMPos() { } Baikal::Texture* GenerateLMPos::GenerateLMPosTexture(const Baikal::Mesh *mesh) { //light map size, onl...
25.625
114
0.755122
WindyPaper
9e9bdd2201f76fae03c4567ad487bb12dbe5e126
1,519
hpp
C++
p1/Productos.hpp
DavidSolanas/APD
431670b737898fd0148b9400967a93404b70b40d
[ "MIT" ]
null
null
null
p1/Productos.hpp
DavidSolanas/APD
431670b737898fd0148b9400967a93404b70b40d
[ "MIT" ]
null
null
null
p1/Productos.hpp
DavidSolanas/APD
431670b737898fd0148b9400967a93404b70b40d
[ "MIT" ]
1
2021-01-05T13:01:37.000Z
2021-01-05T13:01:37.000Z
/************************************************ * Autores: Santiago Buey, David Solanas * * Fichero: Productos.hpp * * Práctica 1 - APD * ************************************************/ #ifndef PRODUCTOS_HPP #define PRODUCTOS_HPP #include <iostream> /*...
23.369231
125
0.589862
DavidSolanas
9e9c546dd8b99adb9b42ccce5feb7f09fa8f1f21
3,109
cpp
C++
contract/lite-client/crypto/openssl/rand.cpp
TONCommunity/ton-sync-payments-channel
2e5cd4902406923fdba32b8309ab8c40db3ae5bc
[ "MIT" ]
5
2019-10-15T18:26:06.000Z
2020-05-09T14:09:49.000Z
contract/lite-client/crypto/openssl/rand.cpp
TONCommunity/ton-sync-payments-channel
2e5cd4902406923fdba32b8309ab8c40db3ae5bc
[ "MIT" ]
null
null
null
contract/lite-client/crypto/openssl/rand.cpp
TONCommunity/ton-sync-payments-channel
2e5cd4902406923fdba32b8309ab8c40db3ae5bc
[ "MIT" ]
2
2020-07-24T16:09:02.000Z
2021-08-18T17:08:28.000Z
/* This file is part of TON Blockchain Library. TON Blockchain Library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later ver...
25.276423
106
0.649727
TONCommunity
9eaba3b5afcd97e04f58ba7b420ca8b7df8482bf
5,439
cpp
C++
test/zoneserver.test/PartyTest.cpp
mark-online/server
ca24898e2e5a9ccbaa11ef1ade57bb25260b717f
[ "MIT" ]
null
null
null
test/zoneserver.test/PartyTest.cpp
mark-online/server
ca24898e2e5a9ccbaa11ef1ade57bb25260b717f
[ "MIT" ]
null
null
null
test/zoneserver.test/PartyTest.cpp
mark-online/server
ca24898e2e5a9ccbaa11ef1ade57bb25260b717f
[ "MIT" ]
null
null
null
#include "ZoneServerTestPCH.h" #include "GameTestFixture.h" #include "MockGameTimer.h" #include "MockNpcController.h" #include "MockPlayerCastController.h" #include "MockPlayerPartyController.h" #include "MockPlayerController.h" #include "MockPlayerMoveController.h" #include "MockZoneCommunityServerProxy.h" #include "Z...
36.019868
102
0.728443
mark-online
9ead1b4bf605a7753ce9fb0f12301bbefbb664df
1,171
cpp
C++
atcoder/abc100/D/main.cpp
xirc/cp-algorithm
89c67cff2f00459c5bb020ab44bff5ae419a1728
[ "Apache-2.0" ]
8
2020-12-23T07:54:53.000Z
2021-11-23T02:46:35.000Z
atcoder/abc100/D/main.cpp
xirc/cp-algorithm
89c67cff2f00459c5bb020ab44bff5ae419a1728
[ "Apache-2.0" ]
1
2020-11-07T13:22:29.000Z
2020-12-20T12:54:00.000Z
atcoder/abc100/D/main.cpp
xirc/cp-algorithm
89c67cff2f00459c5bb020ab44bff5ae419a1728
[ "Apache-2.0" ]
1
2021-01-16T03:40:10.000Z
2021-01-16T03:40:10.000Z
#include <bits/stdc++.h> using namespace std; using ll = long long; int N, M; vector<vector<ll>> xyz; ll solve() { ll ans = 0; for (int k = 0; k < 8; ++k) { auto const less = [&](auto& lhs, auto& rhs) { ll ls = 0, rs = 0; for (int i = 0; i < 3; ++i) { if ((k >>...
23.42
53
0.363792
xirc
9eb17c5cb08353f1aafa9d82ce5b0d6a1a92da77
111
cpp
C++
examples/RegressionPainter/main.cpp
OuluLinux/ConvNetCpp
48854357b49b35d6599fb8ae42be01f4ba1903a6
[ "MIT" ]
7
2017-05-04T17:20:10.000Z
2019-10-02T13:08:33.000Z
examples/RegressionPainter/main.cpp
sppp/ConvNetC-
48854357b49b35d6599fb8ae42be01f4ba1903a6
[ "MIT" ]
null
null
null
examples/RegressionPainter/main.cpp
sppp/ConvNetC-
48854357b49b35d6599fb8ae42be01f4ba1903a6
[ "MIT" ]
3
2017-04-13T06:29:23.000Z
2018-01-09T07:44:09.000Z
#include "RegressionPainter.h" GUI_APP_MAIN { RegressionPainter().Run(); Thread::ShutdownThreads(); }
15.857143
31
0.702703
OuluLinux
9ebb3dcfd4d45fcff6a704d3cde6e663b177719f
7,601
cpp
C++
src/LogFormat.cpp
abel-msk/Logger
e613b2abf26136299a22eb699bce94153f7a71bf
[ "Apache-2.0" ]
null
null
null
src/LogFormat.cpp
abel-msk/Logger
e613b2abf26136299a22eb699bce94153f7a71bf
[ "Apache-2.0" ]
null
null
null
src/LogFormat.cpp
abel-msk/Logger
e613b2abf26136299a22eb699bce94153f7a71bf
[ "Apache-2.0" ]
null
null
null
#include "LogFormat.h" #include "LogLevels.h" #ifdef __DEBUG_ESP_MEM_LEAK__ #include <esp.h> #endif #ifdef __DEBUG_X64_GCC___ #include <iostream> #endif // #include "FElement.h" char* appendStr(char* buff, const char* token) { unsigned int bLen = strlen(buff); unsigned int tLen = strlen(token); if ((...
28.36194
117
0.535456
abel-msk
9ebba4a6083eeb9430a691a3f7611a764c1e9641
5,975
hpp
C++
VVOSCQueryProtocol/WSPPServer.hpp
Vidvox/VVOSCQueryProtocol
c2e259569c45f976a0153aa3eb1dc2006a31c6f4
[ "BSD-3-Clause" ]
11
2018-07-31T23:15:02.000Z
2021-03-25T10:21:07.000Z
VVOSCQueryProtocol/WSPPServer.hpp
mrRay/VVOSCQueryProtocol
c2e259569c45f976a0153aa3eb1dc2006a31c6f4
[ "BSD-3-Clause" ]
2
2021-07-04T01:08:59.000Z
2021-07-04T03:43:23.000Z
VVOSCQueryProtocol/WSPPServer.hpp
Vidvox/VVOSCQueryProtocol
c2e259569c45f976a0153aa3eb1dc2006a31c6f4
[ "BSD-3-Clause" ]
null
null
null
#ifndef WPPServer_hpp #define WPPServer_hpp #include <stdio.h> #include <string> #include "WSPPQueryReply.hpp" /* this class exists because i want to use websocket++ to implement the OSCQuery specification's backend in an objective-c framework. i chose to do this as a pure c++ class so it can potentially be re...
53.828829
261
0.774561
Vidvox
9ece7c35201e08b1af8861577ccef469978e0f45
4,537
cpp
C++
soccer/vision/robot/WorldRobot.cpp
AniruddhaG123/robocup-software
0eb3b3957428894f2f39341594800be803665f44
[ "Apache-2.0" ]
1
2019-09-24T22:59:25.000Z
2019-09-24T22:59:25.000Z
soccer/vision/robot/WorldRobot.cpp
ananth-kumar01/robocup-software
4043a7f9590d02f617d8e9a762697e4aaa27f1a6
[ "Apache-2.0" ]
null
null
null
soccer/vision/robot/WorldRobot.cpp
ananth-kumar01/robocup-software
4043a7f9590d02f617d8e9a762697e4aaa27f1a6
[ "Apache-2.0" ]
null
null
null
#include "WorldRobot.hpp" #include <iostream> #include <cmath> REGISTER_CONFIGURABLE(WorldRobot) ConfigDouble* WorldRobot::robot_merger_power; void WorldRobot::createConfiguration(Configuration* cfg) { robot_merger_power = new ConfigDouble(cfg, "VisionFilter/WorldRobot/robot_merger_power", 1.5); } WorldRobot::W...
30.655405
120
0.633899
AniruddhaG123
19b3f5dc9da847cd889d3182db5ee67514964b70
589
cc
C++
src/mpm.cc
parduino/mpm
c850bffc48a2e1cb2dc65a87f6facbfb4359e778
[ "MIT" ]
1
2021-01-28T17:46:15.000Z
2021-01-28T17:46:15.000Z
src/mpm.cc
parduino/mpm
c850bffc48a2e1cb2dc65a87f6facbfb4359e778
[ "MIT" ]
1
2020-06-02T02:46:33.000Z
2020-06-02T02:47:55.000Z
src/mpm.cc
yliang-sn/mpm
d9365ad651e08bb927ace457c7755a89160c732d
[ "MIT" ]
2
2019-10-23T13:25:02.000Z
2021-09-03T07:31:59.000Z
#include <memory> #include "factory.h" #include "io.h" #include "mpm.h" #include "mpm_explicit.h" namespace mpm { // Stress update method std::map<std::string, StressUpdate> stress_update = { {"usf", StressUpdate::USF}, {"usl", StressUpdate::USL}, {"musl", StressUpdate::MUSL}}; } // namespace mpm // 2D ...
25.608696
79
0.687606
parduino
19b77c4d4a0131264ce57abc1229b3c84334f71f
441
cpp
C++
C++_files/reverse_of_string.cpp
SouvikSSG/C-Programming
e5ae8b4b0ab0ca39532ed4d25e1d997b793f669c
[ "Apache-2.0" ]
null
null
null
C++_files/reverse_of_string.cpp
SouvikSSG/C-Programming
e5ae8b4b0ab0ca39532ed4d25e1d997b793f669c
[ "Apache-2.0" ]
null
null
null
C++_files/reverse_of_string.cpp
SouvikSSG/C-Programming
e5ae8b4b0ab0ca39532ed4d25e1d997b793f669c
[ "Apache-2.0" ]
null
null
null
#include <iostream> using namespace std; int main() { int i, length = 0; char s[20], reverse_s[20]; cout << "Enter the string: "; cin >> s; for (i = 0; s[i] != '\0'; i++) { length++; } for (i = length - 1; i >= 0; i--) { reverse_s[length - 1 - i] = s[i]; } reverse_s[length] = '\0'; co...
16.961538
38
0.478458
SouvikSSG
19c0645692f5f5062e58cad26adebdc5fa6e85ff
2,214
cpp
C++
latte-dock/app/settings/tools/settingstools.cpp
VaughnValle/lush-pop
cdfe9d7b6a7ebb89ba036ab9a4f07d8db6817355
[ "MIT" ]
64
2020-07-08T18:49:29.000Z
2022-03-23T22:58:49.000Z
latte-dock/app/settings/tools/settingstools.cpp
VaughnValle/kanji-pop
0153059f0c62a8aeb809545c040225da5d249bb8
[ "MIT" ]
1
2021-04-02T04:39:45.000Z
2021-09-25T11:53:18.000Z
latte-dock/app/settings/tools/settingstools.cpp
VaughnValle/kanji-pop
0153059f0c62a8aeb809545c040225da5d249bb8
[ "MIT" ]
11
2020-12-04T18:19:11.000Z
2022-01-10T08:50:08.000Z
/* * Copyright 2019 Michail Vourlakos <mvourlakos@gmail.com> * * This file is part of Latte-Dock * * Latte-Dock is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (a...
21.288462
79
0.669377
VaughnValle
19c46442f0d2de1a5c073e62bf79aa44d828046f
1,529
cpp
C++
46. Permutations.cpp
NeoYY/Leetcode-Solution
0f067973d3c296ac7f2fa85a89dbdd5295b0b037
[ "MIT" ]
null
null
null
46. Permutations.cpp
NeoYY/Leetcode-Solution
0f067973d3c296ac7f2fa85a89dbdd5295b0b037
[ "MIT" ]
null
null
null
46. Permutations.cpp
NeoYY/Leetcode-Solution
0f067973d3c296ac7f2fa85a89dbdd5295b0b037
[ "MIT" ]
null
null
null
/* Given a collection of distinct integers, return all possible permutations. Example: Input: [1,2,3] Output: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1] ] Solution one is Recursive DFS */ class Solution { public: vector<vector<int>> permute(vector<int>& nums) { vector<vector<int...
21.236111
109
0.46828
NeoYY