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
9430550d891ef9d922a420e8912800b1f4480008
4,747
cpp
C++
data_structure/data_structure_median.cpp
LuisMBaezCo/cpp-algorithm-snippets
9736f97437cf52b3c8cdf6bfe00de919448d2e50
[ "MIT" ]
7
2020-12-11T00:24:42.000Z
2022-03-14T05:59:35.000Z
data_structure/data_structure_median.cpp
LuisMBaezCo/algorithms-template
6290ee91eb2dd67e6e367887a815a7aac065fe3a
[ "MIT" ]
15
2021-02-04T23:12:46.000Z
2022-03-17T01:07:12.000Z
data_structure/data_structure_median.cpp
LuisMBaezCo/cpp-algorithm-snippets
9736f97437cf52b3c8cdf6bfe00de919448d2e50
[ "MIT" ]
null
null
null
namespace data_structure { template<typename T> T get_min(multiset<T> &st) { assert(!st.empty()); return *st.begin(); } template<typename T> T get_max(multiset<T> &st) { assert(!st.empty()); return *st.rbegin(); } template<typename T> T erase_min(multiset<T> &st) { assert(!st.empty()); T to_return = get_mi...
31.646667
105
0.470402
LuisMBaezCo
9430a004b6c45165eb5abdfbf68ec4abdd050dab
895
hpp
C++
Source/Hyper/include/Hyper/Lexer.hpp
SkillerRaptor/HyperLang
c7bcabf90462247e388861b4255fe61e74c32fca
[ "MIT" ]
13
2021-08-08T19:17:22.000Z
2022-02-17T10:52:07.000Z
Source/Hyper/include/Hyper/Lexer.hpp
SkillerRaptor/HyperLang
c7bcabf90462247e388861b4255fe61e74c32fca
[ "MIT" ]
null
null
null
Source/Hyper/include/Hyper/Lexer.hpp
SkillerRaptor/HyperLang
c7bcabf90462247e388861b4255fe61e74c32fca
[ "MIT" ]
null
null
null
/* * Copyright (c) 2020-2021, SkillerRaptor <skillerraptor@protonmail.com> * * SPDX-License-Identifier: MIT */ #pragma once #include "Hyper/Token.hpp" #include <string> namespace Hyper { class Diagnostics; class Lexer { public: Lexer(Diagnostics &diagnostics, std::string text); Token next_token(); p...
17.54902
72
0.713966
SkillerRaptor
94378968473e84908b44b3b69d2b7fdd6b469493
25,640
cpp
C++
sparse_blas/parsy/symbolic/supernode_detection.cpp
leila68/sympiler
8a7a5a6403f7b261332bd14d27c019a84dbd672a
[ "MIT" ]
30
2018-01-19T08:42:46.000Z
2022-01-25T12:02:24.000Z
sparse_blas/parsy/symbolic/supernode_detection.cpp
leila68/sympiler
8a7a5a6403f7b261332bd14d27c019a84dbd672a
[ "MIT" ]
1
2019-01-05T20:36:42.000Z
2021-04-22T15:17:53.000Z
sparse_blas/parsy/symbolic/supernode_detection.cpp
leila68/sympiler
8a7a5a6403f7b261332bd14d27c019a84dbd672a
[ "MIT" ]
13
2017-11-14T17:12:47.000Z
2022-01-16T11:11:16.000Z
// // Created by kazem on 04/30/21. // #include "symbolic/supernode_detection.h" #include "common/SparseUtils.h" namespace sym_lib { namespace parsy { void subtree(int j, int k, int *Ap, int *Ai, int *Anz, int *SuperMap, int *Sparent, int mark, int sorted, int k1, int *Flag, int *Ls, int ...
34.095745
111
0.483658
leila68
943e45a1f8fdf919a2a2ea691996bef0550a144d
3,404
cpp
C++
src/elona/lua_env/mod_manifest.cpp
XrosFade/ElonaFoobar
c33880080e0b475103ae3ea7d546335f9d4abd02
[ "MIT" ]
null
null
null
src/elona/lua_env/mod_manifest.cpp
XrosFade/ElonaFoobar
c33880080e0b475103ae3ea7d546335f9d4abd02
[ "MIT" ]
null
null
null
src/elona/lua_env/mod_manifest.cpp
XrosFade/ElonaFoobar
c33880080e0b475103ae3ea7d546335f9d4abd02
[ "MIT" ]
null
null
null
#include "mod_manifest.hpp" #include "../hcl.hpp" namespace elona { namespace lua { namespace { std::string _read_mod_name(const hcl::Value& value, const fs::path& path) { std::string result; // TODO: Clean up, as with lua::ConfigTable const hcl::Value* object = value.find("name"); if (object && obj...
24.846715
80
0.509107
XrosFade
943eb38924d56e97cf8e36a1b8c19ebdda38d25c
508
cpp
C++
src/mafu/src/LAF.cpp
metaphaseaudio/audio_file_utility
93c6a5a6cedd379b24712bc1bf4a818f3be4c88d
[ "MIT" ]
null
null
null
src/mafu/src/LAF.cpp
metaphaseaudio/audio_file_utility
93c6a5a6cedd379b24712bc1bf4a818f3be4c88d
[ "MIT" ]
null
null
null
src/mafu/src/LAF.cpp
metaphaseaudio/audio_file_utility
93c6a5a6cedd379b24712bc1bf4a818f3be4c88d
[ "MIT" ]
null
null
null
// // Created by Matt on 8/9/2021. // #include <file_viewer/LAF.h> #include <meta/gooey/WaveformComponent.h> LAF::LAF() : meta::MetaLookAndFeel() { setColour(meta::WaveformComponent::ColourIds::backgroundColourId, juce::Colours::transparentBlack); setColour(meta::WaveformComponent::ColourIds::foregroundCo...
23.090909
103
0.748031
metaphaseaudio
9441a748af77c007a3535f0e3443780e854f1067
23,324
cpp
C++
unit/analyses/variable-sensitivity/value_expression_evaluation/assume.cpp
fanhy2114/cbmc-1
04c83673aaa9888e19a71c62fa5e0c0ffa9de27a
[ "BSD-4-Clause" ]
412
2016-04-02T01:14:27.000Z
2022-03-27T09:24:09.000Z
unit/analyses/variable-sensitivity/value_expression_evaluation/assume.cpp
fanhy2114/cbmc-1
04c83673aaa9888e19a71c62fa5e0c0ffa9de27a
[ "BSD-4-Clause" ]
4,671
2016-02-25T13:52:16.000Z
2022-03-31T22:14:46.000Z
unit/analyses/variable-sensitivity/value_expression_evaluation/assume.cpp
fanhy2114/cbmc-1
04c83673aaa9888e19a71c62fa5e0c0ffa9de27a
[ "BSD-4-Clause" ]
266
2016-02-23T12:48:00.000Z
2022-03-22T18:15:51.000Z
/*******************************************************************\ Module: Unit tests for abstract_environmentt::assume Author: Jez Higgins, jez@jezuk.co.uk \*******************************************************************/ #include <analyses/variable-sensitivity/variable_sensitivity_object_factory.h> #incl...
27.215869
80
0.484222
fanhy2114
9443f790a574b949ab7746181e2ea1eb2942fbb5
4,007
cpp
C++
source/utils/utils.cpp
Gabriellgpc/Sistemas_Roboticos
299fe01b85c3644acb7fa2141d9b095649c5dcef
[ "MIT" ]
4
2021-02-06T09:13:54.000Z
2021-12-14T20:09:23.000Z
source/utils/utils.cpp
Gabriellgpc/Sistemas_Roboticos
299fe01b85c3644acb7fa2141d9b095649c5dcef
[ "MIT" ]
null
null
null
source/utils/utils.cpp
Gabriellgpc/Sistemas_Roboticos
299fe01b85c3644acb7fa2141d9b095649c5dcef
[ "MIT" ]
1
2021-12-30T15:49:42.000Z
2021-12-30T15:49:42.000Z
#include "utils.hpp" // #include "b0RemoteApi.h" // #include "common.hpp" #include <cmath> // função que calcula a integral de linha do polinomio de terceiro grau // aproximação por serie de Taylor double poly3Length(const double coef[], const double l){ const double NumPoints = 1000.0; //dlambda double inte...
32.577236
99
0.499875
Gabriellgpc
9443fabf944b8309fd43c8ee190a352dae6d1ce1
306
cpp
C++
connectionraii.cpp
yuminc1234/web-server
78135002609038708c4a1028de7041b24c4e3d8e
[ "MIT" ]
null
null
null
connectionraii.cpp
yuminc1234/web-server
78135002609038708c4a1028de7041b24c4e3d8e
[ "MIT" ]
null
null
null
connectionraii.cpp
yuminc1234/web-server
78135002609038708c4a1028de7041b24c4e3d8e
[ "MIT" ]
null
null
null
#include "connectionraii.h" ConnectionRAII::ConnectionRAII(MYSQL **mysql, ConnectionPool *conn_pool) { *mysql = conn_pool->get_connection(); mysql_RAII = *mysql; conn_pool_RAII = conn_pool; } ConnectionRAII::~ConnectionRAII() { conn_pool_RAII->release_connection(mysql_RAII); }
23.538462
75
0.715686
yuminc1234
94481db32f8322c73dda454123c927d51f884b87
351
cpp
C++
lib/Gen/IRCodeGenFunction.cpp
StoneLang/Stone
baf74e460b2c7e03a17d4ec1682b0d5beb3ad6a1
[ "MIT" ]
null
null
null
lib/Gen/IRCodeGenFunction.cpp
StoneLang/Stone
baf74e460b2c7e03a17d4ec1682b0d5beb3ad6a1
[ "MIT" ]
null
null
null
lib/Gen/IRCodeGenFunction.cpp
StoneLang/Stone
baf74e460b2c7e03a17d4ec1682b0d5beb3ad6a1
[ "MIT" ]
null
null
null
#include "stone/Gen/IRCodeGenFunction.h" #include "stone/Gen/IRCodeGenModule.h" using namespace stone; IRCodeGenFunction::IRCodeGenFunction(IRCodeGenModule &irCodeGenModule, llvm::Function *llvmFun) : irCodeGenModule(irCodeGenModule), llvmFunction(llvmFunction) {} IRCodeGenFu...
35.1
70
0.723647
StoneLang
944a473f17644f0088321185563102bae145f496
2,146
cpp
C++
Source/Services/Common/xbox_live_context_api.cpp
natiskan/xbox-live-api
9e7e51e0863b5983c2aa334a7b0db579b3bdf1de
[ "MIT" ]
118
2019-05-13T22:56:02.000Z
2022-03-16T06:12:39.000Z
Source/Services/Common/xbox_live_context_api.cpp
aspavlov/xbox-live-api
4bec6f92347d0ad6c85463b601821333de631e3a
[ "MIT" ]
31
2019-05-07T13:09:28.000Z
2022-01-26T10:02:59.000Z
Source/Services/Common/xbox_live_context_api.cpp
aspavlov/xbox-live-api
4bec6f92347d0ad6c85463b601821333de631e3a
[ "MIT" ]
48
2019-05-28T23:55:31.000Z
2021-12-22T03:47:56.000Z
// Copyright (c) Microsoft Corporation // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "pch.h" #include "xbox_live_context_internal.h" #include "xbox_live_app_config_internal.h" using namespace xbox::services; STDAPI XblContextCreateHandle( _In_ XblU...
21.897959
101
0.70876
natiskan
944aae92a4d11cc4fb164fc8543f7698584a2cbd
14,000
hpp
C++
src/poutreImageProcessingLowLevelMorphology/include/poutreImageProcessingEroDilLine.hpp
ThomasRetornaz/poutre
21717ce1da24515dd208f711d6e7c38095ba8ecf
[ "BSL-1.0" ]
null
null
null
src/poutreImageProcessingLowLevelMorphology/include/poutreImageProcessingEroDilLine.hpp
ThomasRetornaz/poutre
21717ce1da24515dd208f711d6e7c38095ba8ecf
[ "BSL-1.0" ]
null
null
null
src/poutreImageProcessingLowLevelMorphology/include/poutreImageProcessingEroDilLine.hpp
ThomasRetornaz/poutre
21717ce1da24515dd208f711d6e7c38095ba8ecf
[ "BSL-1.0" ]
null
null
null
//============================================================================== // Copyright (c) 2015 - Thomas Retornaz // // thomas.retornaz@mines-paris.org // // Distributed under the Boost Software License, Version 1.0. ...
39.325843
111
0.583286
ThomasRetornaz
94596cd37fdc3129ab05483520b67dc919149781
3,243
cpp
C++
triple_temperature_uno/message_reader.cpp
Scottz0r/TripleTemperature
58492e3c40c0ae86ada6868971c7f9809d69bcc8
[ "MIT" ]
null
null
null
triple_temperature_uno/message_reader.cpp
Scottz0r/TripleTemperature
58492e3c40c0ae86ada6868971c7f9809d69bcc8
[ "MIT" ]
null
null
null
triple_temperature_uno/message_reader.cpp
Scottz0r/TripleTemperature
58492e3c40c0ae86ada6868971c7f9809d69bcc8
[ "MIT" ]
null
null
null
#include "message_reader.h" #include <Arduino.h> static constexpr auto REQUEST_MESSAGE_ID = 4; // TODO: Should probably have this in one place for all messages. static constexpr auto REQUEST_MESSAGE_SIZE = 3; namespace scottz0r { namespace temperature { MessageReader::MessageReader(time_type receive_timeout) ...
26.581967
113
0.565834
Scottz0r
9459f3c27c3372662f06f88e02aa77c5fdb11bf1
2,101
cpp
C++
lib/resources/ResourceShader.cpp
maldicion069/monkeybrush-
2bccca097402ff1f5344e356f06de19c8c70065b
[ "MIT" ]
1
2016-11-15T09:04:12.000Z
2016-11-15T09:04:12.000Z
lib/resources/ResourceShader.cpp
maldicion069/monkeybrush-
2bccca097402ff1f5344e356f06de19c8c70065b
[ "MIT" ]
null
null
null
lib/resources/ResourceShader.cpp
maldicion069/monkeybrush-
2bccca097402ff1f5344e356f06de19c8c70065b
[ "MIT" ]
null
null
null
/* * Copyright (c) 2016 maldicion069 * * Authors: Cristian Rodríguez Bernal <ccrisrober@gmail.com> * * This file is part of MonkeyBrushPlusPlus * <https://github.com/maldicion069/monkeybrushplusplus> * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser...
31.358209
100
0.709186
maldicion069
945abe0605d9f07c69a0ed2725b7f6916a8774ac
2,272
cpp
C++
0001-0100/0084.cpp
YKR/LeetCode2019
e4c6346eae5c7b85ba53249c46051700a73dd95e
[ "MIT" ]
null
null
null
0001-0100/0084.cpp
YKR/LeetCode2019
e4c6346eae5c7b85ba53249c46051700a73dd95e
[ "MIT" ]
null
null
null
0001-0100/0084.cpp
YKR/LeetCode2019
e4c6346eae5c7b85ba53249c46051700a73dd95e
[ "MIT" ]
null
null
null
class Solution { public: int largestRectangleAreaWithUnionFind(vector<int>& heights) { if (heights.empty()) return 0; int ans = 0; int order[heights.size()], uf[heights.size()], ufsize[heights.size()]; for (int i = 0; i < heights.size(); ++i) order[i] = uf[i] ...
39.859649
86
0.493838
YKR
9464968677d24215fe3815ec1b7a7b311f3e5198
1,717
hpp
C++
include/Zen/Enterprise/I_ResourceLocation.hpp
indie-zen/zen-enterprise
e8155dc1349b32a5996202edbeee80a168b20a2d
[ "MIT" ]
1
2018-01-28T22:50:54.000Z
2018-01-28T22:50:54.000Z
include/Zen/Enterprise/I_ResourceLocation.hpp
indie-zen/zen-enterprise
e8155dc1349b32a5996202edbeee80a168b20a2d
[ "MIT" ]
null
null
null
include/Zen/Enterprise/I_ResourceLocation.hpp
indie-zen/zen-enterprise
e8155dc1349b32a5996202edbeee80a168b20a2d
[ "MIT" ]
null
null
null
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ // Zen Enterprise Framework // // Copyright (C) 2001 - 2016 Raymond A. Richards //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ #ifndef ZEN_ENTERPRISE_I_RESOURCE_LOCATION_HPP_INCLUDED #define ZEN_ENTE...
27.253968
81
0.455446
indie-zen
94665efc0a06464d0402447828a935bc462b04db
8,686
cpp
C++
imgproc/png.cpp
melowntech/libimgproc
2dc035d12b0d0128f0f97274d2efa62de924b257
[ "BSD-2-Clause" ]
4
2017-06-23T19:16:00.000Z
2019-03-11T08:10:56.000Z
externals/browser/externals/browser/externals/libimgproc/imgproc/png.cpp
HanochZhu/vts-browser-unity-plugin
32a22d41e21b95fb015326f95e401d87756d0374
[ "BSD-2-Clause" ]
null
null
null
externals/browser/externals/browser/externals/libimgproc/imgproc/png.cpp
HanochZhu/vts-browser-unity-plugin
32a22d41e21b95fb015326f95e401d87756d0374
[ "BSD-2-Clause" ]
1
2018-03-16T18:24:48.000Z
2018-03-16T18:24:48.000Z
/** * Copyright (c) 2017 Melown Technologies SE * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the f...
31.585455
79
0.612019
melowntech
9468612075105945699d30c48d8a2379589096c3
2,079
cpp
C++
solved_problems/602B.cpp
archit-1997/codeforces
6f78a3ed5930531159ae22f7b70dc56e37a9e240
[ "MIT" ]
1
2021-01-27T16:37:31.000Z
2021-01-27T16:37:31.000Z
solved_problems/602B.cpp
archit-1997/codeforces
6f78a3ed5930531159ae22f7b70dc56e37a9e240
[ "MIT" ]
null
null
null
solved_problems/602B.cpp
archit-1997/codeforces
6f78a3ed5930531159ae22f7b70dc56e37a9e240
[ "MIT" ]
null
null
null
/*When Xellos was doing a practice course in university, he once had to measure the intensity of an effect that slowly approached equilibrium. A good way to determine the equilibrium intensity would be choosing a sufficiently large number of consecutive data points that seems as constant as possible and taking thei...
27
81
0.659933
archit-1997
946a6cfcd9d1e801e37c60e467b19b8c81849873
1,958
cpp
C++
src/Generator.cpp
egan105/6837FinalProject
60afe2412cf606989c294192b7d6ea817bbc7ddb
[ "MIT" ]
2
2016-03-28T12:57:18.000Z
2016-03-28T12:57:19.000Z
src/Generator.cpp
egan105/6837FinalProject
60afe2412cf606989c294192b7d6ea817bbc7ddb
[ "MIT" ]
null
null
null
src/Generator.cpp
egan105/6837FinalProject
60afe2412cf606989c294192b7d6ea817bbc7ddb
[ "MIT" ]
null
null
null
#include "Generator.h" #include <iostream> using namespace std; #include <math.h> #include <stdio.h> #include <stdlib.h> #ifndef M_PI #define M_PI 3.14159265358979323846 #endif float get_rand(float x, float y) { if (x == 0) { x = 1995; } if (y == 0) { y = 1995; } srand(RAND_SEED * x...
24.17284
67
0.609295
egan105
20e17886de24af029f986479655e722db63a0169
2,527
hpp
C++
include/lxgui/impl/gui_sfml_atlas.hpp
cschreib/lxgui
b317774d9b4296dda8a70b994950987378a05678
[ "MIT" ]
50
2015-01-15T10:00:31.000Z
2022-02-04T20:45:25.000Z
include/lxgui/impl/gui_sfml_atlas.hpp
cschreib/lxgui
b317774d9b4296dda8a70b994950987378a05678
[ "MIT" ]
88
2020-03-15T17:40:04.000Z
2022-03-15T08:21:44.000Z
include/lxgui/impl/gui_sfml_atlas.hpp
cschreib/lxgui
b317774d9b4296dda8a70b994950987378a05678
[ "MIT" ]
19
2017-03-11T04:32:01.000Z
2022-01-12T22:47:12.000Z
#ifndef LXGUI_GUI_SFML_ATLAS_HPP #define LXGUI_GUI_SFML_ATLAS_HPP #include <lxgui/utils.hpp> #include <lxgui/gui_material.hpp> #include <lxgui/gui_atlas.hpp> #include <SFML/Graphics/Texture.hpp> namespace lxgui { namespace gui { namespace sfml { class renderer; /// A single texture holding mu...
30.083333
87
0.610605
cschreib
20e1cddeb44e7d97abac56b71bce59db4471044b
1,567
hpp
C++
hpx/util/apex.hpp
kempj/hpx
ffdbfed5dfa029a0f2e97e7367cb66d12103df67
[ "BSL-1.0" ]
null
null
null
hpx/util/apex.hpp
kempj/hpx
ffdbfed5dfa029a0f2e97e7367cb66d12103df67
[ "BSL-1.0" ]
null
null
null
hpx/util/apex.hpp
kempj/hpx
ffdbfed5dfa029a0f2e97e7367cb66d12103df67
[ "BSL-1.0" ]
null
null
null
// Copyright (c) 2007-2013 Hartmut Kaiser // // 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 <hpx/hpx_fwd.hpp> #ifdef HPX_HAVE_APEX #include <apex.hpp> #endif #ifdef HPX_HAVE_APEX extern bool use_ittn...
19.5875
80
0.553925
kempj
20e4d45250f3668fb3d85a8e1c12ab21af027b8e
2,661
cpp
C++
mayhem/submissions/accepted/answer_jacob.cpp
csecutsc/utscode2
469367528cc5697e0c5c0ccee28420591335d899
[ "Unlicense" ]
4
2018-09-30T15:06:49.000Z
2020-12-09T06:50:25.000Z
mayhem/submissions/accepted/answer_jacob.cpp
csecutsc/utscode2
469367528cc5697e0c5c0ccee28420591335d899
[ "Unlicense" ]
null
null
null
mayhem/submissions/accepted/answer_jacob.cpp
csecutsc/utscode2
469367528cc5697e0c5c0ccee28420591335d899
[ "Unlicense" ]
1
2021-06-17T04:10:51.000Z
2021-06-17T04:10:51.000Z
#define DEBUG 0 #include <algorithm> #include <functional> #include <numeric> #include <iostream> #include <iomanip> #include <cstdio> #include <cmath> #include <complex> #include <cstdlib> #include <ctime> #include <cstring> #include <cassert> #include <string> #include <vector> #include <list> #include <map> #includ...
18.102041
78
0.503946
csecutsc
20e6e5767ee53577c54da21a9b0badce55f2a1a5
552
cpp
C++
kactl/stress-tests/number-theory/ModLog.cpp
prince776/CodeBook
874fc7f94011ad1d25a55bcd91fecd2a11eb5a9b
[ "CC0-1.0" ]
17
2021-01-25T12:07:17.000Z
2022-02-26T17:20:31.000Z
kactl/stress-tests/number-theory/ModLog.cpp
NavneelSinghal/CodeBook
ff60ace9107dd19ef8ba81e175003f567d2a9070
[ "CC0-1.0" ]
null
null
null
kactl/stress-tests/number-theory/ModLog.cpp
NavneelSinghal/CodeBook
ff60ace9107dd19ef8ba81e175003f567d2a9070
[ "CC0-1.0" ]
4
2021-02-28T11:13:44.000Z
2021-11-20T12:56:20.000Z
#include "../utilities/template.h" #include "../../content/number-theory/ModLog.h" int main() { const int lim = 100; rep(m,1,lim) { rep(a,0,lim) { vector<ll> ans(m, -1); ll b = a % m; rep(x,1,max(m,2)) { if (ans[b] == -1) ans[b] = x; b = b * a % m; } rep(b,0,m) { ll res = modLog(a, b, m...
20.444444
109
0.434783
prince776
20e770343290e9d981b4c99a2a289333e88fc035
293
cpp
C++
Src/Context.cpp
PipeRift/rift-core
82e1e287808e78b752fd76f3bee74bfb926859d1
[ "MIT" ]
6
2021-01-22T21:18:12.000Z
2022-02-25T19:16:32.000Z
Src/Context.cpp
PipeRift/rift-core
82e1e287808e78b752fd76f3bee74bfb926859d1
[ "MIT" ]
null
null
null
Src/Context.cpp
PipeRift/rift-core
82e1e287808e78b752fd76f3bee74bfb926859d1
[ "MIT" ]
null
null
null
// Copyright 2015-2021 Piperift - All rights reserved #include "Context.h" namespace Rift { TOwnPtr<Context> globalInstance; TOwnPtr<Context>& GetContextInstance() { return globalInstance; } void ShutdownContext() { if (globalInstance) { globalInstance.Delete(); } } }
12.208333
53
0.699659
PipeRift
20e843efaed4355965f1c13989cd648f30327cc5
79,963
cpp
C++
examples/Vulkan/ExampleUI/VulkanExampleUI.cpp
senthuran-ukr/Native_SDK
2c7f0713cd1af5cb47e2351f83418fa8c7ff49bf
[ "MIT" ]
null
null
null
examples/Vulkan/ExampleUI/VulkanExampleUI.cpp
senthuran-ukr/Native_SDK
2c7f0713cd1af5cb47e2351f83418fa8c7ff49bf
[ "MIT" ]
null
null
null
examples/Vulkan/ExampleUI/VulkanExampleUI.cpp
senthuran-ukr/Native_SDK
2c7f0713cd1af5cb47e2351f83418fa8c7ff49bf
[ "MIT" ]
null
null
null
/*!********************************************************************************************************************* \File VulkanExampleUI.cpp \Title ExampleUI \Author PowerVR by Imagination, Developer Technology Team \Copyright Copyright (c) Imagination Technologies Limited. \brief Dem...
43.316901
179
0.679577
senthuran-ukr
20e9fcaf4d085261658253d6e7976202270795a7
1,261
cpp
C++
Hackerearth/distrubteTheWeight.cpp
sgpritam/DSAlgo
3e0e6b19d4f8978b2fc3be48195705a285dbdce8
[ "MIT" ]
1
2020-03-06T21:05:14.000Z
2020-03-06T21:05:14.000Z
Hackerearth/distrubteTheWeight.cpp
sgpritam/DSAlgo
3e0e6b19d4f8978b2fc3be48195705a285dbdce8
[ "MIT" ]
2
2020-03-09T05:08:14.000Z
2020-03-09T05:14:09.000Z
Hackerearth/distrubteTheWeight.cpp
sgpritam/DSAlgo
3e0e6b19d4f8978b2fc3be48195705a285dbdce8
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; bool part(vector<int> a, int n, int k, long long max_sum){ long long no_part{1}, curr_sum{}; for(int i = 0; i < n; i++){ if(a[i] > max_sum) return false; if(curr_sum+a[i] > max_sum){ curr_sum = 0; ...
18.544118
58
0.417129
sgpritam
20f61e858c00595e302c2ee13815b796ac82e276
4,336
cpp
C++
Sources/ChronoRage/Foes/FoeCommon.cpp
benkaraban/anima-games-engine
8aa7a5368933f1b82c90f24814f1447119346c3b
[ "BSD-3-Clause" ]
2
2015-04-16T01:05:53.000Z
2019-08-26T07:38:43.000Z
Sources/ChronoRage/Foes/FoeCommon.cpp
benkaraban/anima-games-engine
8aa7a5368933f1b82c90f24814f1447119346c3b
[ "BSD-3-Clause" ]
null
null
null
Sources/ChronoRage/Foes/FoeCommon.cpp
benkaraban/anima-games-engine
8aa7a5368933f1b82c90f24814f1447119346c3b
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2010, Anima Games, Benjamin Karaban, Laurent Schneider, * Jérémie Comarmond, Didier Colin. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * - Redistributions of ...
39.063063
123
0.681965
benkaraban
20fb2306cdccf3b572d1f049b473b83c566dc072
22,029
cpp
C++
game_engine_base.cpp
CreativeMetalCat/Top_Down_Shooter_2d
1f8e40080a8118a96d45febc1c01a6caca6143fa
[ "MIT" ]
null
null
null
game_engine_base.cpp
CreativeMetalCat/Top_Down_Shooter_2d
1f8e40080a8118a96d45febc1c01a6caca6143fa
[ "MIT" ]
null
null
null
game_engine_base.cpp
CreativeMetalCat/Top_Down_Shooter_2d
1f8e40080a8118a96d45febc1c01a6caca6143fa
[ "MIT" ]
null
null
null
// game_engine_base.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "game_engine_base.h" #include <WindowRenderingNew.h> #include <WindowRenderingNew.cpp> #include <iostream> #include <fstream> #include <string> #include "Player.h" #include "Drawable.h" #include "Wea...
34.856013
306
0.637206
CreativeMetalCat
20fdc532ea429e88fc490179d8411f36e079501f
381
cpp
C++
leetcode/9.palindrome-number.cpp
frankyao47/Algorithm
c4d331facc15bdfc4f5990aa788647b714799206
[ "MIT" ]
1
2016-02-19T04:16:33.000Z
2016-02-19T04:16:33.000Z
leetcode/9.palindrome-number.cpp
frankyao47/Algorithm
c4d331facc15bdfc4f5990aa788647b714799206
[ "MIT" ]
null
null
null
leetcode/9.palindrome-number.cpp
frankyao47/Algorithm
c4d331facc15bdfc4f5990aa788647b714799206
[ "MIT" ]
null
null
null
class Solution { public: bool isPalindrome(int x) { //use long long or handle overflow //only compare half to avoid overflow if(x < 0 || (x != 0 && x % 10 == 0)) return false; int sum = 0; while(sum < x) { sum = sum * 10 + x % 10; x /= 10; } ...
25.4
58
0.427822
frankyao47
1f01e76581f8c9af268f4c8e059dfbcc9bb5018c
1,165
cpp
C++
source/Tty.cpp
blastrock/flix
86aff484beaadca1263fadd28eae658f2a641029
[ "BSD-2-Clause-FreeBSD" ]
6
2016-10-09T15:36:23.000Z
2021-08-28T01:56:08.000Z
source/Tty.cpp
blastrock/flix
86aff484beaadca1263fadd28eae658f2a641029
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
source/Tty.cpp
blastrock/flix
86aff484beaadca1263fadd28eae658f2a641029
[ "BSD-2-Clause-FreeBSD" ]
1
2018-08-31T15:40:51.000Z
2018-08-31T15:40:51.000Z
#include "Tty.hpp" #include "Screen.hpp" #include "Util.hpp" #include "Debug.hpp" XLL_LOG_CATEGORY("core/tty"); Tty* Tty::getCurrent() { static Tty* tty = new Tty(); return tty; } void Tty::feedInput(char data) { xDeb("Got input"); auto _ = _mutex.getScoped(); if (data == '\b') { if (!_stdin.empty(...
16.180556
48
0.593133
blastrock
1f0499f68375c7f21733175904dcf0c8e10e793e
4,890
cpp
C++
src/examples/imgproc/src/gen_images.cpp
fbaude/activebsp
d867d74e58bde38cc0f816bcb23c6c41a5bb4f81
[ "BSD-3-Clause" ]
null
null
null
src/examples/imgproc/src/gen_images.cpp
fbaude/activebsp
d867d74e58bde38cc0f816bcb23c6c41a5bb4f81
[ "BSD-3-Clause" ]
null
null
null
src/examples/imgproc/src/gen_images.cpp
fbaude/activebsp
d867d74e58bde38cc0f816bcb23c6c41a5bb4f81
[ "BSD-3-Clause" ]
null
null
null
#include <iostream> #include <fstream> #include <random> #include <stdlib.h> #include <string.h> #include <linux/limits.h> using namespace std; void help(char * name) { cout << "Usage : " << name << " n out_dir width height method methodparams..." << std::endl; } void help_rand() { cout << "rand cmd parame...
22.534562
96
0.533129
fbaude
1f0ace197aa68370bdf72714b89eb25e2c82d053
1,637
cpp
C++
AtCoder/AtCoder Regular Contest 076/D.cpp
MaGnsio/CP-Problems
a7f518a20ba470f554b6d54a414b84043bf209c5
[ "Unlicense" ]
3
2020-11-01T06:31:30.000Z
2022-02-21T20:37:51.000Z
AtCoder/AtCoder Regular Contest 076/D.cpp
MaGnsio/CP-Problems
a7f518a20ba470f554b6d54a414b84043bf209c5
[ "Unlicense" ]
null
null
null
AtCoder/AtCoder Regular Contest 076/D.cpp
MaGnsio/CP-Problems
a7f518a20ba470f554b6d54a414b84043bf209c5
[ "Unlicense" ]
1
2021-05-05T18:56:31.000Z
2021-05-05T18:56:31.000Z
/** * author: MaGnsi0 * created: 01/07/2021 19:05:52 **/ #include <bits/stdc++.h> using namespace std; struct edge { int u, v; long long w; bool operator<(edge e) { return (this -> w < e.w); } }; struct DSU { vector<int> parent; vector<int> length; DSU(int N) { par...
22.736111
85
0.443494
MaGnsio
1f0ae265ca009ef8d28454ddd87eb1a2dee6b5bd
916
cpp
C++
ActionRPG/Source/ActionRPG/Private/Abilities/RPGAbilityTypes.cpp
crystal-mesh/scill-unreal-examples
da844cbb4b31f3c39f4d3f1c8a68761f27db1add
[ "MIT" ]
1
2021-12-05T15:00:47.000Z
2021-12-05T15:00:47.000Z
ActionRPG/Source/ActionRPG/Private/Abilities/RPGAbilityTypes.cpp
crystal-mesh/scill-unreal-examples
da844cbb4b31f3c39f4d3f1c8a68761f27db1add
[ "MIT" ]
null
null
null
ActionRPG/Source/ActionRPG/Private/Abilities/RPGAbilityTypes.cpp
crystal-mesh/scill-unreal-examples
da844cbb4b31f3c39f4d3f1c8a68761f27db1add
[ "MIT" ]
3
2021-09-24T15:55:23.000Z
2022-02-17T14:17:09.000Z
// Copyright Epic Games, Inc. All Rights Reserved. #include "Abilities/RPGAbilityTypes.h" #include "Abilities/RPGAbilitySystemComponent.h" #include "AbilitySystemGlobals.h" bool FRPGGameplayEffectContainerSpec::HasValidEffects() const { return TargetGameplayEffectSpecs.Num() > 0; } bool FRPGGameplayEffectContainerS...
29.548387
123
0.800218
crystal-mesh
1f0b724e54c0c2c46c4a5d032a98714b8052becb
2,607
cpp
C++
editor/gui/toolbar_dock.cpp
LASTEXILE-CH/Rootex
685b9bb5763bbc35041f3a5f193a43b3156394a6
[ "MIT" ]
1
2021-03-29T09:46:28.000Z
2021-03-29T09:46:28.000Z
editor/gui/toolbar_dock.cpp
LASTEXILE-CH/Rootex
685b9bb5763bbc35041f3a5f193a43b3156394a6
[ "MIT" ]
null
null
null
editor/gui/toolbar_dock.cpp
LASTEXILE-CH/Rootex
685b9bb5763bbc35041f3a5f193a43b3156394a6
[ "MIT" ]
null
null
null
#include "toolbar_dock.h" #include "editor/editor_application.h" #include "framework/scene_loader.h" #include "framework/system.h" #include "editor/editor_system.h" #include "vendor/ImGUI/imgui.h" #include "vendor/ImGUI/imgui_stdlib.h" #include "vendor/ImGUI/imgui_impl_dx11.h" #include "vendor/ImGUI/imgui_impl_win32...
26.07
133
0.660146
LASTEXILE-CH
1f0f478237cb03941a46cb6bd1bb2ac596856fae
894
cpp
C++
143-reorder-list/143-reorder-list.cpp
SouvikChan/-Leetcode_Souvik
cc4b72cb4a14a1c6b8be8bd8390de047443fe008
[ "MIT" ]
null
null
null
143-reorder-list/143-reorder-list.cpp
SouvikChan/-Leetcode_Souvik
cc4b72cb4a14a1c6b8be8bd8390de047443fe008
[ "MIT" ]
null
null
null
143-reorder-list/143-reorder-list.cpp
SouvikChan/-Leetcode_Souvik
cc4b72cb4a14a1c6b8be8bd8390de047443fe008
[ "MIT" ]
null
null
null
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode *next) : val(x), next(next) {} * }; */ class Solution { public: void reorderList(List...
24.162162
62
0.46085
SouvikChan
1f1504131ed62230aaf89a0cb6c71a30c380a62b
1,941
hpp
C++
include/Wg/LinkLabel.hpp
iSLC/vaca
c9bc3284c2a1325f7056f455fd5ff1e47e7673bc
[ "MIT" ]
null
null
null
include/Wg/LinkLabel.hpp
iSLC/vaca
c9bc3284c2a1325f7056f455fd5ff1e47e7673bc
[ "MIT" ]
null
null
null
include/Wg/LinkLabel.hpp
iSLC/vaca
c9bc3284c2a1325f7056f455fd5ff1e47e7673bc
[ "MIT" ]
null
null
null
// Vaca - Visual Application Components Abstraction // Copyright (c) 2005-2010 David Capello // // This file is distributed under the terms of the MIT license, // please read LICENSE.txt for more information. #pragma once #include "Wg/Base.hpp" #include "Wg/CustomLabel.hpp" namespace Wg { /** A link to Internet ...
21.32967
107
0.683668
iSLC
1f187518a5f869c9acfba6dab6cee431c267f3ac
2,524
cpp
C++
Math/circularPrime.cpp
Bhannasa/CP-DSA
395dbdb6b5eb5896cc4182711ff086e1fb76ef7a
[ "MIT" ]
22
2021-10-01T20:14:15.000Z
2022-02-22T15:27:20.000Z
Math/circularPrime.cpp
Bhannasa/CP-DSA
395dbdb6b5eb5896cc4182711ff086e1fb76ef7a
[ "MIT" ]
15
2021-10-01T20:24:55.000Z
2021-10-31T05:55:14.000Z
Math/circularPrime.cpp
Bhannasa/CP-DSA
395dbdb6b5eb5896cc4182711ff086e1fb76ef7a
[ "MIT" ]
76
2021-10-01T20:01:06.000Z
2022-03-02T16:15:24.000Z
/* problrm statement print total number circular primes below n; The number, 197, is called a circular prime because all rotations of the digits: 197, 971, and 719, are themselves prime. */ #include <bits/stdc++.h> using namespace std; int rev (int c,int n) /* it take a number and rotate its digit by one and...
19.874016
121
0.410856
Bhannasa
1f196cd287196d655907f4ad1852db139f9cd513
1,936
cpp
C++
CustomEngine/CustomEngine/Logic/States/State_Intro.cpp
kaimelis/LuaGame
7a6220a90c00c539b515f36b563d1542b49c1d1b
[ "MIT" ]
null
null
null
CustomEngine/CustomEngine/Logic/States/State_Intro.cpp
kaimelis/LuaGame
7a6220a90c00c539b515f36b563d1542b49c1d1b
[ "MIT" ]
null
null
null
CustomEngine/CustomEngine/Logic/States/State_Intro.cpp
kaimelis/LuaGame
7a6220a90c00c539b515f36b563d1542b49c1d1b
[ "MIT" ]
1
2020-06-29T07:13:57.000Z
2020-06-29T07:13:57.000Z
#include "State_Intro.hpp" #include "../../Core/StateSystem/StateManager.hpp" State_Intro::State_Intro(StateManager* pStateManager) : BaseState(pStateManager) {} State_Intro::~State_Intro() {} void State_Intro::OnCreate() { _timePassed = 0.0f; sf::Vector2u windowSize = _stateMgr->GetContext()->_wind->GetRenderWin...
28.057971
94
0.729855
kaimelis
1f1b3405320bb904f05c3de79fa9563663508dcc
1,907
cpp
C++
winprom/ElevColor_dlg.cpp
Frontline-Processing/winprom
621e1422333a9b4e84cd2f507a412e8bb0e68c46
[ "MIT" ]
17
2015-10-23T13:07:06.000Z
2021-08-25T07:06:13.000Z
winprom/ElevColor_dlg.cpp
Frontline-Processing/winprom
621e1422333a9b4e84cd2f507a412e8bb0e68c46
[ "MIT" ]
null
null
null
winprom/ElevColor_dlg.cpp
Frontline-Processing/winprom
621e1422333a9b4e84cd2f507a412e8bb0e68c46
[ "MIT" ]
3
2016-01-27T22:13:40.000Z
2018-05-09T12:56:02.000Z
// WinProm Copyright 2015 Edward Earl // All rights reserved. // // This software is distributed under a license that is described in // the LICENSE file that accompanies it. // // ElevColor_dlg.cpp : implementation file // #include "stdafx.h" #include "winprom.h" #include "ElevColor_dlg.h" #ifdef _DEBUG #define new ...
22.702381
77
0.686418
Frontline-Processing
1f1d958cd62a80329af3cdf6e99ec95a53ed4cb4
6,701
cpp
C++
src/cmd/domain_commands.cpp
BenjaminFerge/yess
4c8a8fa0c6ba35770140cf9cfa9c7442c7128c38
[ "Apache-2.0" ]
null
null
null
src/cmd/domain_commands.cpp
BenjaminFerge/yess
4c8a8fa0c6ba35770140cf9cfa9c7442c7128c38
[ "Apache-2.0" ]
null
null
null
src/cmd/domain_commands.cpp
BenjaminFerge/yess
4c8a8fa0c6ba35770140cf9cfa9c7442c7128c38
[ "Apache-2.0" ]
null
null
null
#include "domain_commands.hpp" using namespace yess::cmd; Create_stream_req::Create_stream_req(const std::string& type) : type_(type) { } Create_stream::Create_stream(const Action_handler& handler, const Create_stream_req& request) : Domain_command(handler), request_(request) { } Co...
29.519824
80
0.645874
BenjaminFerge
1f1dd18790d9f263bc7da55fb6eeab50eef62b4c
5,539
cpp
C++
obs-studio/test/win/test.cpp
noelemahcz/libobspp
029472b973e5a1985f883242f249848385df83a3
[ "MIT" ]
null
null
null
obs-studio/test/win/test.cpp
noelemahcz/libobspp
029472b973e5a1985f883242f249848385df83a3
[ "MIT" ]
null
null
null
obs-studio/test/win/test.cpp
noelemahcz/libobspp
029472b973e5a1985f883242f249848385df83a3
[ "MIT" ]
null
null
null
#include <stdio.h> #include <time.h> #include <windows.h> #include <util/base.h> #include <graphics/vec2.h> #include <media-io/audio-resampler.h> #include <obs.h> #include <intrin.h> static const int cx = 800; static const int cy = 600; /* --------------------------------------------------- */ class SourceContext ...
23.772532
77
0.609135
noelemahcz
1f26852d4de606d926a6ea0e7ebf280848bf99a5
570
cpp
C++
Source/City/CityGameMode.cpp
chozabu/Procedural-Cities
ed74734e9f9e8000659ed43a2a448416a1b2ee77
[ "MIT" ]
577
2017-05-08T12:10:35.000Z
2022-03-30T11:12:14.000Z
Source/City/CityGameMode.cpp
chozabu/Procedural-Cities
ed74734e9f9e8000659ed43a2a448416a1b2ee77
[ "MIT" ]
16
2017-11-02T02:21:49.000Z
2021-08-30T20:45:45.000Z
Source/City/CityGameMode.cpp
chozabu/Procedural-Cities
ed74734e9f9e8000659ed43a2a448416a1b2ee77
[ "MIT" ]
123
2017-07-26T17:54:20.000Z
2022-01-13T09:39:52.000Z
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #include "City.h" #include "CityGameMode.h" //#include "CityHUD.h" #include "CityCharacter.h" ACityGameMode::ACityGameMode() : Super() { // set default pawn class to our Blueprinted character //static ConstructorHelpers::FObjectFinder<UBluepri...
28.5
125
0.714035
chozabu
1f2bd116524985f8d4182a4a51783da4b2666839
1,480
hh
C++
include/muensterTPCDetectorMessenger.hh
l-althueser/MuensterTPC-Simulation
7a086ab330cd5905f3c78c324936cdc36951e9bd
[ "BSD-2-Clause" ]
null
null
null
include/muensterTPCDetectorMessenger.hh
l-althueser/MuensterTPC-Simulation
7a086ab330cd5905f3c78c324936cdc36951e9bd
[ "BSD-2-Clause" ]
2
2017-01-24T21:18:46.000Z
2017-01-27T13:24:48.000Z
include/muensterTPCDetectorMessenger.hh
l-althueser/MuensterTPC-Simulation
7a086ab330cd5905f3c78c324936cdc36951e9bd
[ "BSD-2-Clause" ]
4
2017-04-28T12:18:58.000Z
2019-04-10T21:15:00.000Z
#ifndef muensterTPCDetectorMessenger_h #define muensterTPCDetectorMessenger_h 1 #include <G4UImessenger.hh> #include <globals.hh> class muensterTPCDetectorConstruction; class G4UIcommand; class G4UIdirectory; class G4UIcmdWithoutParameter; class G4UIcmdWithAString; class G4UIcmdWithADoubleAndUnit; class G4UIcmdWith3...
29.019608
76
0.875
l-althueser
1f34c89d4dea3357f30a34591e2eee569e1f10d9
113
cpp
C++
animation.cpp
Wene/WS2812_animations
c461c9b2783380fd3d6931783096304a8db1b39d
[ "MIT" ]
3
2015-09-25T21:27:52.000Z
2022-01-04T04:29:14.000Z
animation.cpp
Wene/WS2812_animations
c461c9b2783380fd3d6931783096304a8db1b39d
[ "MIT" ]
null
null
null
animation.cpp
Wene/WS2812_animations
c461c9b2783380fd3d6931783096304a8db1b39d
[ "MIT" ]
null
null
null
#include "animation.h" Animation::Animation(CRGB *Leds, int iLeds) { iLedCount = iLeds; pLEDS = Leds; }
14.125
43
0.654867
Wene
1f3a30f9092a2b0f77532cbd6a641625c0218609
14,137
cpp
C++
src/dashplayer/dashplayer.cpp
theuerse/ndn-DemoApps
47310e10dbd15bdac9342250a7b84e99d1693b91
[ "MIT" ]
null
null
null
src/dashplayer/dashplayer.cpp
theuerse/ndn-DemoApps
47310e10dbd15bdac9342250a7b84e99d1693b91
[ "MIT" ]
null
null
null
src/dashplayer/dashplayer.cpp
theuerse/ndn-DemoApps
47310e10dbd15bdac9342250a7b84e99d1693b91
[ "MIT" ]
null
null
null
#include "dashplayer.hpp" using namespace player; DashPlayer::DashPlayer(std::string MPD, string adaptionlogic_name, int interest_lifetime, int run_time, double request_rate, std::string logFileName) { this->adaptionlogic_name = adaptionlogic_name; this->interest_lifetime = interest_lifetime; streaming_a...
28.444668
152
0.654453
theuerse
1f3b95608ad585e2c2d0767b6f56241514e23985
536
hpp
C++
Asciiboard/vendor/ftxui-2.0.0/include/macos/ftxui/component/deprecated.hpp
DanielToby/microtone
10538a23fb67933abe5b492eb4ae771bd646f8d6
[ "MIT" ]
1
2022-01-24T23:53:32.000Z
2022-01-24T23:53:32.000Z
Asciiboard/vendor/ftxui-2.0.0/include/macos/ftxui/component/deprecated.hpp
DanielToby/microtone
10538a23fb67933abe5b492eb4ae771bd646f8d6
[ "MIT" ]
null
null
null
Asciiboard/vendor/ftxui-2.0.0/include/macos/ftxui/component/deprecated.hpp
DanielToby/microtone
10538a23fb67933abe5b492eb4ae771bd646f8d6
[ "MIT" ]
null
null
null
#ifndef FTXUI_COMPONENT_DEPRECATED_HPP #define FTXUI_COMPONENT_DEPRECATED_HPP #include "ftxui/component/component.hpp" namespace ftxui { [[deprecated("use Input with normal std::string instead.")]] Component Input( WideStringRef content, ConstStringRef placeholder, Ref<InputOption> option = {}); } // na...
28.210526
78
0.76306
DanielToby
1f3d271a570bb2d54b4303ec3845e1b27db6e1e4
606
cpp
C++
Sail/src/Sail/entities/systems/render/GUISubmitSystem.cpp
BTH-StoraSpel-DXR/SPLASH
1bf4c9b96cbcce570ed3a97f30a556a992e1ad08
[ "MIT" ]
12
2019-09-11T15:52:31.000Z
2021-11-14T20:33:35.000Z
Sail/src/Sail/entities/systems/render/GUISubmitSystem.cpp
BTH-StoraSpel-DXR/Game
1bf4c9b96cbcce570ed3a97f30a556a992e1ad08
[ "MIT" ]
227
2019-09-11T08:40:24.000Z
2020-06-26T14:12:07.000Z
Sail/src/Sail/entities/systems/render/GUISubmitSystem.cpp
BTH-StoraSpel-DXR/Game
1bf4c9b96cbcce570ed3a97f30a556a992e1ad08
[ "MIT" ]
2
2020-10-26T02:35:18.000Z
2020-10-26T02:36:01.000Z
#include "pch.h" #include "GUISubmitSystem.h" #include "Sail/Application.h" #include "Sail/entities/components/Components.h" GUISubmitSystem::GUISubmitSystem() { registerComponent<GUIComponent>(true, false, false); } GUISubmitSystem::~GUISubmitSystem() {} void GUISubmitSystem::submitAll() { Renderer* renderer = A...
30.3
95
0.739274
BTH-StoraSpel-DXR
1f3e5620b5416ba9eaa9d490120bede5220672e0
5,911
hpp
C++
shisen_cpp/include/shisen_cpp/consumer/capture_setting_consumer.hpp
threeal/shisen
523dbf72a52058df102df077c73efaa6ef7c3466
[ "MIT" ]
null
null
null
shisen_cpp/include/shisen_cpp/consumer/capture_setting_consumer.hpp
threeal/shisen
523dbf72a52058df102df077c73efaa6ef7c3466
[ "MIT" ]
null
null
null
shisen_cpp/include/shisen_cpp/consumer/capture_setting_consumer.hpp
threeal/shisen
523dbf72a52058df102df077c73efaa6ef7c3466
[ "MIT" ]
null
null
null
// Copyright (c) 2021 ICHIRO ITS // // 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, di...
36.042683
99
0.763999
threeal
1f41267b16cd7e806646e7911ed43ab68a5eaa29
10,905
cpp
C++
src/bindings/Scriptdev2/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_skadi.cpp
mfooo/wow
3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d
[ "OpenSSL" ]
1
2017-11-16T19:04:07.000Z
2017-11-16T19:04:07.000Z
src/bindings/Scriptdev2/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_skadi.cpp
mfooo/wow
3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d
[ "OpenSSL" ]
null
null
null
src/bindings/Scriptdev2/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_skadi.cpp
mfooo/wow
3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d
[ "OpenSSL" ]
null
null
null
/* Copyright (C) 2006 - 2010 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * 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 2 of the License, or * (at your option) any l...
34.078125
131
0.580376
mfooo
1f41f02babce5c8174ea2223f4dc7470452fbaf1
2,289
hpp
C++
src/tests/resources_utils.hpp
zagrev/mesos
eefec152dffc4977183089b46fbfe37dbd19e9d7
[ "Apache-2.0" ]
4,537
2015-01-01T03:26:40.000Z
2022-03-31T03:07:00.000Z
src/tests/resources_utils.hpp
zagrev/mesos
eefec152dffc4977183089b46fbfe37dbd19e9d7
[ "Apache-2.0" ]
227
2015-01-29T02:21:39.000Z
2022-03-29T13:35:50.000Z
src/tests/resources_utils.hpp
zagrev/mesos
eefec152dffc4977183089b46fbfe37dbd19e9d7
[ "Apache-2.0" ]
1,992
2015-01-05T12:29:19.000Z
2022-03-31T03:07:07.000Z
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
33.173913
75
0.715159
zagrev
1f42d68cb36aa146cf4fbbbd3b6d66e8d0e563f5
3,148
hpp
C++
src/util/error.hpp
ssameerr/pytubes
6b4a839b7503780930b667cf12053089bc66c027
[ "MIT" ]
null
null
null
src/util/error.hpp
ssameerr/pytubes
6b4a839b7503780930b667cf12053089bc66c027
[ "MIT" ]
null
null
null
src/util/error.hpp
ssameerr/pytubes
6b4a839b7503780930b667cf12053089bc66c027
[ "MIT" ]
null
null
null
#pragma once #include <sstream> #include <ostream> #include <type_traits> #include <typeinfo> #include <new> #include <stdexcept> // This is a micro-optimization based on throws being unlikely // Taken from rapidjson source. #ifndef _SS_ERROR_UNLIKELY #if defined(__GNUC__) || defined(__clang__) #define _SS_ERROR_UNLI...
28.880734
126
0.683291
ssameerr
1f47ca018e6a97bf2d3b7463d96f15570a49f39d
3,189
cpp
C++
ue5/Blink_game/Blink_win32/winpi.cpp
michivo/osd
ccc76aa0d7fa9b62b63d012481dbb318be0f6382
[ "MIT" ]
null
null
null
ue5/Blink_game/Blink_win32/winpi.cpp
michivo/osd
ccc76aa0d7fa9b62b63d012481dbb318be0f6382
[ "MIT" ]
null
null
null
ue5/Blink_game/Blink_win32/winpi.cpp
michivo/osd
ccc76aa0d7fa9b62b63d012481dbb318be0f6382
[ "MIT" ]
null
null
null
#include "winpi.h" #include <thread> #include <stdexcept> #include <iostream> #include "WinpiEmulator.h" std::chrono::time_point<std::chrono::system_clock> start_time; int piHiPri(const int pri) { return 0; } void delay(unsigned int howLong) { std::this_thread::sleep_for(std::chrono::duration<int, std::milli>(how...
14.695853
92
0.688931
michivo
1f5498b92996628930463e2aea3e5b2286d33026
129
cpp
C++
openjudge/01/02/05.cpp
TheBadZhang/OJ
b5407f2483aa630068343b412ecaf3a9e3303f7e
[ "Apache-2.0" ]
1
2020-07-22T16:54:07.000Z
2020-07-22T16:54:07.000Z
openjudge/01/02/05.cpp
TheBadZhang/OJ
b5407f2483aa630068343b412ecaf3a9e3303f7e
[ "Apache-2.0" ]
1
2018-05-12T12:53:06.000Z
2018-05-12T12:53:06.000Z
openjudge/01/02/05.cpp
TheBadZhang/OJ
b5407f2483aa630068343b412ecaf3a9e3303f7e
[ "Apache-2.0" ]
null
null
null
#include <cstdio> int main() { // printf("%.9f %.9f", float(1.000000001), double(1.000000001)); printf("F E"); return 0; }
14.333333
65
0.589147
TheBadZhang
1f5eb9b1a9186d488d2016004132cee6ea30dd7f
379
cpp
C++
Practica1/ProyectosOGREvc15x86/IG2App/EntidadIG.cpp
nicoFdez/PracticasIG2
cae65f0020e9231b5575cabcc86280a26ab3ba6e
[ "MIT" ]
null
null
null
Practica1/ProyectosOGREvc15x86/IG2App/EntidadIG.cpp
nicoFdez/PracticasIG2
cae65f0020e9231b5575cabcc86280a26ab3ba6e
[ "MIT" ]
null
null
null
Practica1/ProyectosOGREvc15x86/IG2App/EntidadIG.cpp
nicoFdez/PracticasIG2
cae65f0020e9231b5575cabcc86280a26ab3ba6e
[ "MIT" ]
null
null
null
#include "EntidadIG.h" std::vector<EntidadIG*> EntidadIG::appListeners = std::vector<EntidadIG*>(0, nullptr); EntidadIG::EntidadIG(SceneNode* nodo) { mNode = nodo; mSM = mNode->getCreator(); } EntidadIG::~EntidadIG() { } void EntidadIG::sendEvent(EntidadIG* entidad, const OgreBites::KeyboardEvent& evt) { for (E...
22.294118
86
0.71504
nicoFdez
1f5fb7f3d930faeb1dbe6876827617597a0a33ac
922
cpp
C++
systems/OutOfBoundsSystem.cpp
deb0ch/R-Type
8bb37cd5ec318efb97119afb87d4996f6bb7644e
[ "WTFPL" ]
5
2016-03-15T20:14:10.000Z
2020-10-30T23:56:24.000Z
systems/OutOfBoundsSystem.cpp
deb0ch/R-Type
8bb37cd5ec318efb97119afb87d4996f6bb7644e
[ "WTFPL" ]
3
2018-12-19T19:12:44.000Z
2020-04-02T13:07:00.000Z
systems/OutOfBoundsSystem.cpp
deb0ch/R-Type
8bb37cd5ec318efb97119afb87d4996f6bb7644e
[ "WTFPL" ]
2
2016-04-11T19:29:28.000Z
2021-11-26T20:53:22.000Z
#include "Pos2DComponent.hh" #include "EntityDeletedEvent.hh" #include "TagComponent.hh" #include "OutOfBoundsSystem.hh" OutOfBoundsSystem::OutOfBoundsSystem() : ASystem("OutOfBoundsSystem") {} OutOfBoundsSystem::~OutOfBoundsSystem() {} //----- ----- Methods ----- ----- // bool OutOfBoundsSystem::canProcess(Entit...
24.918919
70
0.655098
deb0ch
48fb03e7cdaf91128a4436c0fd9cc6c2cb4c0fbc
1,501
cpp
C++
Binary Tree/Traversal_Inorder_MooreTraversal.cpp
susantabiswas/placementPrep
22a7574206ddc63eba89517f7b68a3d2f4d467f5
[ "MIT" ]
19
2018-12-02T05:59:44.000Z
2021-07-24T14:11:54.000Z
Binary Tree/Traversal_Inorder_MooreTraversal.cpp
susantabiswas/placementPrep
22a7574206ddc63eba89517f7b68a3d2f4d467f5
[ "MIT" ]
null
null
null
Binary Tree/Traversal_Inorder_MooreTraversal.cpp
susantabiswas/placementPrep
22a7574206ddc63eba89517f7b68a3d2f4d467f5
[ "MIT" ]
13
2019-04-25T16:20:00.000Z
2021-09-06T19:50:04.000Z
//Inorder traversal using Moore Traversal. /*this method doesn't require stack and is non-recursive. Makes a tree a temporarily a threaded binary tree then it reverts it back to its original form*/ #include<iostream> using namespace std; struct Node { int data; Node *left; Node *right; }; //creates node for the tr...
17.658824
81
0.651566
susantabiswas
48fc359707a9cad58f8a3587d7a0d666a1ed3281
9,438
cc
C++
src/unix/riku_unix_thread.cc
maihd/riku
daca9172f4ee0e303060796e86859247e4306dcc
[ "Unlicense" ]
2
2019-03-22T05:01:03.000Z
2020-05-07T11:26:03.000Z
src/unix/riku_unix_thread.cc
maihd/riku
daca9172f4ee0e303060796e86859247e4306dcc
[ "Unlicense" ]
null
null
null
src/unix/riku_unix_thread.cc
maihd/riku
daca9172f4ee0e303060796e86859247e4306dcc
[ "Unlicense" ]
null
null
null
#include <riku/core.h> #include <riku/thread.h> #include <errno.h> #include <stdlib.h> #include <limits.h> #include <pthread.h> #if PLATFORM_OSX # include <mach/mach.h> # include <mach/task.h> # include <mach/semaphore.h> # include <TargetConditionals.h> #endif Atomic& Atomic::operator=(i64 value) { #ifdef _...
19.182927
107
0.637105
maihd
48febd672eaff92fadac567e9e4e8baa1d95c193
217
cpp
C++
auv_gnc/src/trans_ekf_node.cpp
osu-uwrt/auv_gnc
40dbe4bda0c00fd41ed714cc2ea82f0c319e5e46
[ "BSD-2-Clause" ]
31
2019-08-07T08:04:51.000Z
2022-03-19T10:03:42.000Z
auv_gnc/src/trans_ekf_node.cpp
Chandler-Xu/auv_gnc
9e9efb49fd2a88a76b97c2381bb6138ec7513520
[ "BSD-2-Clause" ]
null
null
null
auv_gnc/src/trans_ekf_node.cpp
Chandler-Xu/auv_gnc
9e9efb49fd2a88a76b97c2381bb6138ec7513520
[ "BSD-2-Clause" ]
11
2019-09-17T14:01:01.000Z
2022-03-16T11:45:33.000Z
#include "auv_gnc/trans_ekf.hpp" #include <ros/ros.h> int main(int argc, char** argv) { ros::init(argc, argv, "trans_ekf"); ros::NodeHandle nh("~"); auv_gnc::TransEKF transEKF(nh); ros::spin(); return 0; }
19.727273
37
0.645161
osu-uwrt
48fec9e4a5f6caeca2df101e56cd6ee97afc3999
1,417
cpp
C++
lib/model/src/initializer.cpp
KaungZawHtet/XMwayLoon
4dd014dc75a209c242bba5d2dc4333af63bcb405
[ "Unlicense" ]
6
2020-03-23T04:20:53.000Z
2020-05-23T00:32:36.000Z
lib/model/src/initializer.cpp
KaungZawHtet/XMwayLoon
4dd014dc75a209c242bba5d2dc4333af63bcb405
[ "Unlicense" ]
null
null
null
lib/model/src/initializer.cpp
KaungZawHtet/XMwayLoon
4dd014dc75a209c242bba5d2dc4333af63bcb405
[ "Unlicense" ]
null
null
null
// // Created by Kaung Zaw Htet on 2020-01-10. // #include <model/db/initializer.h> #include <stdlib.h> #include <dry_comparisons/dry_comparisons.h> namespace fs = std::filesystem; using rollbear::all_of; static int callback(void *NotUsed, int argc, char **argv, char **azColName) { int i; for(i = 0; i<argc; i++...
23.616667
91
0.652788
KaungZawHtet
5b085b2f5ea8800c8a81bdb5257b67ccf45bac5c
2,172
cpp
C++
src/armnn/memory/BlobLifetimeManager.cpp
KevinRodrigues05/armnn_caffe2_parser
c577f2c6a3b4ddb6ba87a882723c53a248afbeba
[ "MIT" ]
null
null
null
src/armnn/memory/BlobLifetimeManager.cpp
KevinRodrigues05/armnn_caffe2_parser
c577f2c6a3b4ddb6ba87a882723c53a248afbeba
[ "MIT" ]
null
null
null
src/armnn/memory/BlobLifetimeManager.cpp
KevinRodrigues05/armnn_caffe2_parser
c577f2c6a3b4ddb6ba87a882723c53a248afbeba
[ "MIT" ]
null
null
null
// // Copyright © 2017 Arm Ltd. All rights reserved. // See LICENSE file in the project root for full license information. // #include "BlobLifetimeManager.hpp" #include "BlobMemoryPool.hpp" #include "arm_compute/runtime/IMemoryGroup.h" #include "boost/assert.hpp" #include <algorithm> namespace armnn { BlobLifetim...
27.493671
117
0.671731
KevinRodrigues05
5b0adc2285836b350247570a65ea4c98505183ee
1,010
cpp
C++
Source/modules/imogen_dsp/Engine/effects/PreHarmony/NoiseGate.cpp
msameen99/imogen
7efd3054a93d91f44f22cc2d6200f550e4aedd4c
[ "MIT" ]
109
2020-11-24T05:17:12.000Z
2022-03-25T17:03:16.000Z
Source/modules/imogen_dsp/Engine/effects/PreHarmony/NoiseGate.cpp
msameen99/imogen
7efd3054a93d91f44f22cc2d6200f550e4aedd4c
[ "MIT" ]
7
2021-02-19T07:22:03.000Z
2022-03-17T17:23:56.000Z
Source/modules/imogen_dsp/Engine/effects/PreHarmony/NoiseGate.cpp
msameen99/imogen
7efd3054a93d91f44f22cc2d6200f550e4aedd4c
[ "MIT" ]
4
2021-04-05T14:11:42.000Z
2021-10-02T15:46:49.000Z
namespace Imogen { template < typename SampleType > NoiseGate< SampleType >::NoiseGate (State& stateToUse) : state (stateToUse) { // static constexpr auto noiseGateAttackMs = 25.0f; // static constexpr auto noiseGateReleaseMs = 100.0f; // static constexpr auto noiseGateFloorRatio = 10.0f; // r...
25.897436
110
0.686139
msameen99
5b1189374e67ed1844515ec8f256e82d817027aa
2,065
cpp
C++
TE2502/src/graphics/framebuffer.cpp
ferthu/TE2502
de801f886713c0b2ef3ce6aa1e41e3fd9a58483e
[ "MIT" ]
null
null
null
TE2502/src/graphics/framebuffer.cpp
ferthu/TE2502
de801f886713c0b2ef3ce6aa1e41e3fd9a58483e
[ "MIT" ]
null
null
null
TE2502/src/graphics/framebuffer.cpp
ferthu/TE2502
de801f886713c0b2ef3ce6aa1e41e3fd9a58483e
[ "MIT" ]
null
null
null
#include <utility> #include "framebuffer.hpp" #include "utilities.hpp" Framebuffer::Framebuffer() { } Framebuffer::Framebuffer(VulkanContext& context) : m_context(&context) { } Framebuffer::~Framebuffer() { destroy(); } Framebuffer::Framebuffer(Framebuffer&& other) { move_from(std::move(other)); } Framebuffer&...
20.858586
130
0.768523
ferthu
5b17d49df7dc31438b3a083f96383cf5c0b08046
1,768
hpp
C++
graphics/shaders/SlGeneratorInstance.hpp
quyse/inanity
a39225c5a41f879abe5aa492bb22b500dbe77433
[ "MIT" ]
26
2015-04-22T05:25:25.000Z
2020-11-15T11:07:56.000Z
graphics/shaders/SlGeneratorInstance.hpp
quyse/inanity
a39225c5a41f879abe5aa492bb22b500dbe77433
[ "MIT" ]
2
2015-01-05T10:41:27.000Z
2015-01-06T20:46:11.000Z
graphics/shaders/SlGeneratorInstance.hpp
quyse/inanity
a39225c5a41f879abe5aa492bb22b500dbe77433
[ "MIT" ]
5
2016-08-02T11:13:57.000Z
2018-10-26T11:19:27.000Z
#ifndef ___INANITY_GRAPHICS_SHADERS_SL_GENERATOR_INSTANCE_HPP___ #define ___INANITY_GRAPHICS_SHADERS_SL_GENERATOR_INSTANCE_HPP___ #include "ShaderType.hpp" #include "../DataType.hpp" #include <vector> #include <unordered_set> #include <unordered_map> #include <sstream> BEGIN_INANITY_SHADERS class Node; class ValueNo...
26.787879
71
0.785633
quyse
5b21661b11762395e96a0d6ce6d4abd1778b9a82
1,309
hpp
C++
include/ER_General.hpp
temken/DaMaSCUS
14be6907230e5ef1b93809a6fb5842330497a7a6
[ "MIT" ]
3
2018-09-13T13:36:50.000Z
2021-10-30T19:35:12.000Z
include/ER_General.hpp
temken/DaMaSCUS
14be6907230e5ef1b93809a6fb5842330497a7a6
[ "MIT" ]
2
2017-06-06T14:43:45.000Z
2022-03-16T13:01:56.000Z
include/ER_General.hpp
temken/DaMaSCUS
14be6907230e5ef1b93809a6fb5842330497a7a6
[ "MIT" ]
1
2017-06-09T09:48:10.000Z
2017-06-09T09:48:10.000Z
//Contains non-detector-specific functions related with direct detection rates. #ifndef __ER_General_hpp_ #define __ER_General_hpp_ #include <vector> //Analytic //Velocity necessary for a DM particle of mass mChi to recoil a nucleus of mass number A with a given recoil energy. extern double vMinimal(double Reco...
46.75
177
0.770053
temken
5b2367504def4f2a406822fb6d44d55bdc5e9d0a
433
cpp
C++
src/classwork/03_assign/loops.cpp
acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-jonsanmigel1
e46a4b98377d10ea989bb656c799d7fcae3d238f
[ "MIT" ]
null
null
null
src/classwork/03_assign/loops.cpp
acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-jonsanmigel1
e46a4b98377d10ea989bb656c799d7fcae3d238f
[ "MIT" ]
null
null
null
src/classwork/03_assign/loops.cpp
acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-jonsanmigel1
e46a4b98377d10ea989bb656c799d7fcae3d238f
[ "MIT" ]
null
null
null
/* WITH LOOP OF YOUR CHOICE: Write code for function factorial that accepts an int num and returns the num's factorial factorial(5); 1*2*3*4*5 returns 120 test after fail to pull 1/31 DON'T FORGET TO WRITE TEST CASE. See file loop_test.cpp */ #include "loops.h" #include <iostream> using namespace std; int factor...
13.53125
57
0.676674
acc-cosc-1337-spring-2020
5b25370e35d54822876f0dfe7ee22bcf366f2e97
4,072
cpp
C++
test_package/tests/unit/geom/GeometryCollectionTest.cpp
insaneFactory/conan-geos
2d682cf59eafe8567e8e5c87897f051355dbb1ca
[ "MIT" ]
null
null
null
test_package/tests/unit/geom/GeometryCollectionTest.cpp
insaneFactory/conan-geos
2d682cf59eafe8567e8e5c87897f051355dbb1ca
[ "MIT" ]
null
null
null
test_package/tests/unit/geom/GeometryCollectionTest.cpp
insaneFactory/conan-geos
2d682cf59eafe8567e8e5c87897f051355dbb1ca
[ "MIT" ]
null
null
null
// // Test Suite for geos::geom::GeometryCollection class. #include <tut/tut.hpp> #include <utility.h> #include <memory> namespace tut { // // Test Group // // Common data used by tests struct test_geometry_collection_data { typedef geos::geom::GeometryFactory GeometryFactory; geos::geom::PrecisionModel p...
27.70068
112
0.699902
insaneFactory
5b2be1da8a5ecb962af366952b1eb4715227fb22
11,135
hxx
C++
include/rtkDaubechiesWaveletsConvolutionImageFilter.hxx
agravgaard/RTK
419f71cdaf0600fcb54e4faca643121b7832ea96
[ "Apache-2.0", "BSD-3-Clause" ]
167
2015-02-26T08:39:33.000Z
2022-03-31T04:40:35.000Z
include/rtkDaubechiesWaveletsConvolutionImageFilter.hxx
agravgaard/RTK
419f71cdaf0600fcb54e4faca643121b7832ea96
[ "Apache-2.0", "BSD-3-Clause" ]
270
2015-02-26T15:34:32.000Z
2022-03-22T09:49:24.000Z
include/rtkDaubechiesWaveletsConvolutionImageFilter.hxx
agravgaard/RTK
419f71cdaf0600fcb54e4faca643121b7832ea96
[ "Apache-2.0", "BSD-3-Clause" ]
117
2015-05-01T14:56:49.000Z
2022-03-11T03:18:26.000Z
/*========================================================================= * * Copyright RTK Consortium * * 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.apa...
33.844985
111
0.680467
agravgaard
5b2c7495d5895c5af81f5d367dd6ffc04e55cacf
1,222
cpp
C++
src/threading/event.cpp
kitsudaiki/libKitsunemimiCommon
65c60deddf9fb813035fc2f3251c5ae5c8f7423f
[ "MIT" ]
null
null
null
src/threading/event.cpp
kitsudaiki/libKitsunemimiCommon
65c60deddf9fb813035fc2f3251c5ae5c8f7423f
[ "MIT" ]
49
2020-08-24T18:09:35.000Z
2022-02-13T22:19:39.000Z
src/threading/event.cpp
tobiasanker/libKitsunemimiCommon
d40d1314db0a6d7e04afded09cb4934e01828ac4
[ "MIT" ]
1
2020-08-29T14:30:41.000Z
2020-08-29T14:30:41.000Z
/** * @file event.cpp * * @author Tobias Anker <tobias.anker@kitsunemimi.moe> * * @copyright MIT License */ #include <libKitsunemimiCommon/threading/event.h> namespace Kitsunemimi { //================================================================================================== // Event //===...
22.218182
100
0.447627
kitsudaiki
5b2cbca166899dc77ae502507f9c60c1b131c9f7
1,849
hh
C++
src/RealmzGlobalData.hh
fuzziqersoftware/realmz_dasm
fbfa118de5f232fd7169fbff13d434164a67ee90
[ "MIT" ]
1
2018-03-20T13:06:16.000Z
2018-03-20T13:06:16.000Z
src/RealmzGlobalData.hh
fuzziqersoftware/realmz_dasm
fbfa118de5f232fd7169fbff13d434164a67ee90
[ "MIT" ]
null
null
null
src/RealmzGlobalData.hh
fuzziqersoftware/realmz_dasm
fbfa118de5f232fd7169fbff13d434164a67ee90
[ "MIT" ]
null
null
null
#pragma once #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <phosg/Image.hh> #include <unordered_map> #include <unordered_set> #include <vector> #include <string> #include "ResourceFile.hh" std::unordered_map<int16_t, Image> rsf_picts(ResourceFile& rf); std::unordered_map<...
29.822581
97
0.742564
fuzziqersoftware
5b32a584839bc1a7311a032afd2ffcefed58cb6b
1,661
cpp
C++
barnpainting/barnpainting.cpp
chenhongqiao/OI-Solutions
009a3c4b713b62658b835b52e0f61f882b5a6ffe
[ "MIT" ]
1
2020-12-15T20:25:21.000Z
2020-12-15T20:25:21.000Z
barnpainting/barnpainting.cpp
chenhongqiao/OI-Solutions
009a3c4b713b62658b835b52e0f61f882b5a6ffe
[ "MIT" ]
null
null
null
barnpainting/barnpainting.cpp
chenhongqiao/OI-Solutions
009a3c4b713b62658b835b52e0f61f882b5a6ffe
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int n, k; int pc[100005]; vector<int> g[100005]; bool v[100005]; const long long mod = 1000000007; int m[4][100005]; long long dfs(int lc, int f) { if (m[lc][f]) { return m[lc][f]; } if (pc[f]) { if (lc == pc[f]) { ret...
21.025316
51
0.33233
chenhongqiao
5b35eb5efe971e3938591788f0a44bfb7b1e1148
502
cpp
C++
src/PAT/P1041.cpp
TDYe123/Algorithm
9c7cc2b2b79db7245846affc5b263049fd866c87
[ "MIT" ]
1
2019-05-04T15:44:41.000Z
2019-05-04T15:44:41.000Z
src/PAT/P1041.cpp
TDYe123/Algorithm
9c7cc2b2b79db7245846affc5b263049fd866c87
[ "MIT" ]
null
null
null
src/PAT/P1041.cpp
TDYe123/Algorithm
9c7cc2b2b79db7245846affc5b263049fd866c87
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; const int maxn = 100010; int n; int arr[maxn]; int temp[maxn]; set<int> st; int main() { scanf("%d", &n); for(int i=0; i<n; i++) { scanf("%d", &arr[i]); temp[i] = arr[i]; } sort(temp, temp+n); for(int i=0; i<n-1; i++) { if(temp[i+1] == temp[i]) { ...
17.310345
36
0.486056
TDYe123
5b3737c5741abe62acbdf725a5a053811bae77b6
6,316
hpp
C++
src/include/AABB.hpp
foxostro/PinkTopaz
cd8275a93ea34a56f640f915d4b6c769e82e9dc2
[ "MIT" ]
1
2017-10-30T22:49:06.000Z
2017-10-30T22:49:06.000Z
src/include/AABB.hpp
foxostro/PinkTopaz
cd8275a93ea34a56f640f915d4b6c769e82e9dc2
[ "MIT" ]
null
null
null
src/include/AABB.hpp
foxostro/PinkTopaz
cd8275a93ea34a56f640f915d4b6c769e82e9dc2
[ "MIT" ]
null
null
null
// // AABB.hpp // PinkTopaz // // Created by Andrew Fox on 3/13/16. // // #ifndef AABB_hpp #define AABB_hpp #include <glm/glm.hpp> #include <glm/gtx/component_wise.hpp> #include <glm/gtx/string_cast.hpp> #include <vector> #include <sstream> #include <array> #include <boost/functional/hash.hpp> #include "CerealGLM....
29.933649
87
0.543382
foxostro
5b382f1b9ed26636288b24926df2b10b73304271
1,962
hpp
C++
include/gl/filtering/filter_blend.hpp
ecarpita93/HPC_projet_1
a2c00e056c03227711c43cf2ad23d75c6afbe698
[ "Xnet", "X11" ]
null
null
null
include/gl/filtering/filter_blend.hpp
ecarpita93/HPC_projet_1
a2c00e056c03227711c43cf2ad23d75c6afbe698
[ "Xnet", "X11" ]
null
null
null
include/gl/filtering/filter_blend.hpp
ecarpita93/HPC_projet_1
a2c00e056c03227711c43cf2ad23d75c6afbe698
[ "Xnet", "X11" ]
null
null
null
/* PICCANTE The hottest HDR imaging library! http://vcg.isti.cnr.it/piccante Copyright (C) 2014 Visual Computing Laboratory - ISTI CNR http://vcg.isti.cnr.it First author: Francesco Banterle 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 ...
23.357143
87
0.583588
ecarpita93
5b3b7d375504021fa1823ae4b0972f64e969d5cd
1,462
hpp
C++
include/mbgl/map/transform_state.hpp
free1978/mapbox-gl-native
2a50fccd24e762d0de5a53bac358e5ddfea8d213
[ "BSD-2-Clause" ]
2
2017-02-28T22:41:54.000Z
2020-02-13T20:54:55.000Z
include/mbgl/map/transform_state.hpp
free1978/mapbox-gl-native
2a50fccd24e762d0de5a53bac358e5ddfea8d213
[ "BSD-2-Clause" ]
null
null
null
include/mbgl/map/transform_state.hpp
free1978/mapbox-gl-native
2a50fccd24e762d0de5a53bac358e5ddfea8d213
[ "BSD-2-Clause" ]
null
null
null
#ifndef MBGL_MAP_TRANSFORM_STATE #define MBGL_MAP_TRANSFORM_STATE #include <mbgl/map/tile.hpp> #include <mbgl/util/mat4.hpp> #include <mbgl/util/vec.hpp> #include <cstdint> #include <array> #include <limits> namespace mbgl { class TransformState { friend class Transform; public: // Matrix void matrixF...
20.305556
67
0.664843
free1978
5b3e3e6c8d7fd573cd433450374f13e1c53089bc
19,088
cpp
C++
kotekan/kotekan.cpp
kotekan/kotekan
c88fe5c4c3ee275542b40ccf17debc2f84695925
[ "MIT" ]
19
2018-12-14T00:51:52.000Z
2022-02-20T02:43:50.000Z
kotekan/kotekan.cpp
kotekan/kotekan
c88fe5c4c3ee275542b40ccf17debc2f84695925
[ "MIT" ]
487
2018-12-13T00:59:53.000Z
2022-02-07T16:12:56.000Z
kotekan/kotekan.cpp
kotekan/kotekan
c88fe5c4c3ee275542b40ccf17debc2f84695925
[ "MIT" ]
5
2019-05-09T19:52:19.000Z
2021-03-27T20:13:21.000Z
#include "Config.hpp" // for Config #include "StageFactory.hpp" // for StageFactoryRegistry, StageMaker #include "basebandApiManager.hpp" // for basebandApiManager #include "errors.h" // for get_error_message, get_exit_code, __enable_syslog, exi... #include "kotekanLogging.hpp" // fo...
37.648915
100
0.593305
kotekan
5b443db36310a5197c157d7f87b33a096003638c
22,026
cpp
C++
KinectV2/KinectV2InputService/m+mKinectV2BlobEventThread.cpp
opendragon/Core_MPlusM
c82bb00761551a86abe50c86e0df1f247704c848
[ "BSD-3-Clause" ]
null
null
null
KinectV2/KinectV2InputService/m+mKinectV2BlobEventThread.cpp
opendragon/Core_MPlusM
c82bb00761551a86abe50c86e0df1f247704c848
[ "BSD-3-Clause" ]
null
null
null
KinectV2/KinectV2InputService/m+mKinectV2BlobEventThread.cpp
opendragon/Core_MPlusM
c82bb00761551a86abe50c86e0df1f247704c848
[ "BSD-3-Clause" ]
null
null
null
//-------------------------------------------------------------------------------------------------- // // File: m+mKinectV2BlobEventThread.cpp // // Project: m+m // // Contains: The class definition for a thread that generates output from Kinect V2 data. // // Written by: Norman Jaffe // // Copyright: ...
37.780446
100
0.596976
opendragon
5b448e15e50d931d5db42b5e4c1798ce6273fa06
457
cpp
C++
chap13/Page532_rvalue_reference.cpp
sjbarigye/CPP_Primer
d9d31a73a45ca46909bae104804fc9503ab242f2
[ "Apache-2.0" ]
50
2016-01-08T14:28:53.000Z
2022-01-21T12:55:00.000Z
chap13/Page532_rvalue_reference.cpp
sjbarigye/CPP_Primer
d9d31a73a45ca46909bae104804fc9503ab242f2
[ "Apache-2.0" ]
2
2017-06-05T16:45:20.000Z
2021-04-17T13:39:24.000Z
chap13/Page532_rvalue_reference.cpp
sjbarigye/CPP_Primer
d9d31a73a45ca46909bae104804fc9503ab242f2
[ "Apache-2.0" ]
18
2016-08-17T15:23:51.000Z
2022-03-26T18:08:43.000Z
// Warning: this is for verification. It cannot compile. // The problem lies in line 7 and 8. int main() { int i = 42; int &r = i; // ok: r refers to i int &&rr = i;// error: cannot bind an rvalue reference to an lvalue int &r2 = i * 42; // error: i * 42 is an rvalue const int &r3 = i * 42; // ok: w...
35.153846
80
0.608315
sjbarigye
5b50bbceb41a7f60e4fed5b55b625caeb5501685
807
cpp
C++
llvm/lib/Transforms/Obfuscation/HelloWorld.cpp
bluesadi/Pluto-Obfuscator
b79a9d7d855dc771bcbd04602a31cf51e6518794
[ "MIT" ]
181
2022-01-24T17:39:42.000Z
2022-03-29T14:39:58.000Z
llvm/lib/Transforms/Obfuscation/HelloWorld.cpp
bluesadi/Pluto-Obfuscator
b79a9d7d855dc771bcbd04602a31cf51e6518794
[ "MIT" ]
9
2022-01-30T14:01:01.000Z
2022-03-30T04:33:20.000Z
llvm/lib/Transforms/Obfuscation/HelloWorld.cpp
bluesadi/Pluto-Obfuscator
b79a9d7d855dc771bcbd04602a31cf51e6518794
[ "MIT" ]
41
2022-01-25T07:12:50.000Z
2022-03-26T06:17:04.000Z
#include "llvm/Transforms/Obfuscation/HelloWorld.h" #include "llvm/Support/raw_ostream.h" #include "llvm/IR/LegacyPassManager.h" #include "llvm/Transforms/IPO/PassManagerBuilder.h" #include "Eigen/Dense" #include <iostream> using namespace Eigen; using namespace llvm; bool HelloWorld::runOnFunction(Function &F){ i...
26.9
54
0.577447
bluesadi
5b51bce57c7c78fa5ef15f2f7efa4a73feaebdf6
726
hpp
C++
Engine/helpers/TaskManager.hpp
JuDelCo/SFML2-Game
b234eb59266c6969d3c57ee5d3833e4090205a90
[ "Zlib" ]
32
2015-07-04T02:47:22.000Z
2022-01-19T00:07:51.000Z
Engine/helpers/TaskManager.hpp
JuDelCo/SFML2-Game
b234eb59266c6969d3c57ee5d3833e4090205a90
[ "Zlib" ]
null
null
null
Engine/helpers/TaskManager.hpp
JuDelCo/SFML2-Game
b234eb59266c6969d3c57ee5d3833e4090205a90
[ "Zlib" ]
11
2016-11-14T15:53:15.000Z
2020-05-29T12:12:54.000Z
// Copyright (c) 2013 Juan Delgado (JuDelCo) // License: zlib/libpng License // zlib/libpng License web page: http://opensource.org/licenses/Zlib #pragma once #ifndef TASK_MANAGER_HPP #define TASK_MANAGER_HPP #include <memory> #include <list> #include "TaskInterface.hpp" class ITaskManager : public ITask { public: ...
22.6875
68
0.725895
JuDelCo
5b557dca11be97d6064cc54b1db78aa1072e4959
2,553
hpp
C++
include/disposer/core/exec_input.hpp
bebuch/disposer
8d065cb5cdcbeaecdbe457f5e4e60ff1ecc84105
[ "BSL-1.0" ]
null
null
null
include/disposer/core/exec_input.hpp
bebuch/disposer
8d065cb5cdcbeaecdbe457f5e4e60ff1ecc84105
[ "BSL-1.0" ]
24
2017-03-10T10:45:36.000Z
2018-07-05T19:38:58.000Z
include/disposer/core/exec_input.hpp
bebuch/disposer
8d065cb5cdcbeaecdbe457f5e4e60ff1ecc84105
[ "BSL-1.0" ]
2
2017-02-21T06:45:42.000Z
2020-04-18T11:22:33.000Z
//----------------------------------------------------------------------------- // Copyright (c) 2015-2018 Benjamin Buch // // https://github.com/bebuch/disposer // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt) /...
25.787879
79
0.650215
bebuch
5b5b4794649f5f3e6c1c811ce35d0c74e2e7aeed
1,254
hpp
C++
include/list_sort.hpp
tjolsen/tmpl
e49e605fe622ed556dab94fb6560b5d3fa46e8e8
[ "BSD-3-Clause" ]
8
2018-02-10T17:44:45.000Z
2022-03-22T18:49:44.000Z
include/list_sort.hpp
tjolsen/tmpl
e49e605fe622ed556dab94fb6560b5d3fa46e8e8
[ "BSD-3-Clause" ]
null
null
null
include/list_sort.hpp
tjolsen/tmpl
e49e605fe622ed556dab94fb6560b5d3fa46e8e8
[ "BSD-3-Clause" ]
1
2019-02-19T14:54:11.000Z
2019-02-19T14:54:11.000Z
// // Created by tyler on 1/14/18. // #ifndef TMPL_LIST_SORT_HPP #define TMPL_LIST_SORT_HPP #include "detail/list_sort_detail.hpp" #include "tmpl_common.hpp" #include "type_list.hpp" #include "value_list.hpp" NAMESPACE_TMPL_OPEN /** * Implementation of constexpr mergesort on value_list using a user-supplied * com...
25.08
76
0.637161
tjolsen
5b6372708d883dc511fced211a6397c029a94a30
1,897
hpp
C++
Engine/Core/Headers/Molten/Utility/FpsTracker.hpp
jimmiebergmann/CurseEngine
74a0502e36327f893c8e4f3e7cbe5b9d38fbe194
[ "MIT" ]
2
2019-11-11T21:17:14.000Z
2019-11-11T22:07:26.000Z
Engine/Core/Headers/Molten/Utility/FpsTracker.hpp
jimmiebergmann/CurseEngine
74a0502e36327f893c8e4f3e7cbe5b9d38fbe194
[ "MIT" ]
null
null
null
Engine/Core/Headers/Molten/Utility/FpsTracker.hpp
jimmiebergmann/CurseEngine
74a0502e36327f893c8e4f3e7cbe5b9d38fbe194
[ "MIT" ]
1
2020-04-05T03:50:57.000Z
2020-04-05T03:50:57.000Z
/* * MIT License * * Copyright (c) 2021 Jimmie Bergmann * * 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, m...
30.596774
80
0.735372
jimmiebergmann
5b64342accd946d8e399f38e53c67df946a40cd9
1,142
cpp
C++
2019/cpp/1915.cpp
Chrinkus/advent-of-code
b2ae137dc7a1d6fc9e20f29549e891404591c47f
[ "MIT" ]
1
2021-12-04T20:55:02.000Z
2021-12-04T20:55:02.000Z
2019/cpp/1915.cpp
Chrinkus/advent-of-code
b2ae137dc7a1d6fc9e20f29549e891404591c47f
[ "MIT" ]
null
null
null
2019/cpp/1915.cpp
Chrinkus/advent-of-code
b2ae137dc7a1d6fc9e20f29549e891404591c47f
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <string> #include <sstream> #include <unordered_map> #include "Intcode_vm.hpp" #include "Point.hpp" class Droid { enum class Dir { north=1, south, west, east }; enum class Status { wall, moved, goal }; public: Droid() = delete; Droid(const std::string& in...
20.392857
79
0.6331
Chrinkus
5b67eb4865fad099f78c58617bc5b6c66dc2a411
6,870
cpp
C++
src/HydroMonitorNetwork.cpp
wvmarle/HydroMonitor
c3f6701bd84d13d74bd5a5f7e6b4b83944f30003
[ "MIT" ]
1
2021-12-31T01:44:38.000Z
2021-12-31T01:44:38.000Z
src/HydroMonitorNetwork.cpp
wvmarle/HydroMonitor
c3f6701bd84d13d74bd5a5f7e6b4b83944f30003
[ "MIT" ]
null
null
null
src/HydroMonitorNetwork.cpp
wvmarle/HydroMonitor
c3f6701bd84d13d74bd5a5f7e6b4b83944f30003
[ "MIT" ]
2
2018-11-12T09:21:33.000Z
2020-07-09T02:35:30.000Z
#include <HydroMonitorNetwork.h> /* Take care of network connections and building up html pages. */ /* The constructor. */ HydroMonitorNetwork::HydroMonitorNetwork() { } /* Start the network services. */ void HydroMonitorNetwork::begin(HydroMonitorCore::SensorData *sd, HydroMonitorLogging *l, ESP8266WebServ...
28.271605
114
0.658661
wvmarle
5b6a7dfb5f80236de8b1327a9f49742dcb2e9809
69,831
cpp
C++
src/engine/rhi/rhi-vulkan.cpp
sgorsten/workbench
5209bb405e0e0f4696b36684bbd1d7ecff7daa2f
[ "Unlicense" ]
16
2015-12-15T17:17:37.000Z
2021-12-07T20:19:38.000Z
src/engine/rhi/rhi-vulkan.cpp
sgorsten/workbench
5209bb405e0e0f4696b36684bbd1d7ecff7daa2f
[ "Unlicense" ]
null
null
null
src/engine/rhi/rhi-vulkan.cpp
sgorsten/workbench
5209bb405e0e0f4696b36684bbd1d7ecff7daa2f
[ "Unlicense" ]
1
2016-03-25T08:04:58.000Z
2016-03-25T08:04:58.000Z
#include "rhi-internal.h" #include <sstream> #include <map> #define GLFW_INCLUDE_NONE #include <vulkan/vulkan.h> #include <GLFW/glfw3.h> #pragma comment(lib, "vulkan-1.lib") #include <queue> #include <set> #include <iostream> auto get_tuple(const VkAttachmentDescription & desc) { return std::tie(desc.flags, desc.for...
50.202013
271
0.736263
sgorsten
5b6b3d330fc7795c7376f20cd88d98e9c4c13851
337
hpp
C++
qltest/Trade.hpp
longztian/cpp
59203f41162f40a46badf69093d287250e5cbab6
[ "MIT" ]
null
null
null
qltest/Trade.hpp
longztian/cpp
59203f41162f40a46badf69093d287250e5cbab6
[ "MIT" ]
null
null
null
qltest/Trade.hpp
longztian/cpp
59203f41162f40a46badf69093d287250e5cbab6
[ "MIT" ]
null
null
null
#ifndef QLTEST_TRADE_HPP_ #define QLTEST_TRADE_HPP_ #include <cstdint> #include <string> namespace QLTest { using std::int32_t; using std::int64_t; struct Trade { int64_t time; int32_t symbolId; int32_t quantity; int32_t price; void load(const char* const record); }; } // namespace QLTest #endif // Q...
14.041667
38
0.732938
longztian
5b6b4a4ff743a6c3140ce7cee6c0fdfd889b0092
12,062
cpp
C++
Samples/JTSP/TSP/Phone.cpp
markjulmar/tsplib3
f58a281ce43f4d57ef10e24d306fd46e6febcc41
[ "MIT" ]
1
2021-02-08T20:31:46.000Z
2021-02-08T20:31:46.000Z
Samples/JTSP/TSP/Phone.cpp
markjulmar/tsplib3
f58a281ce43f4d57ef10e24d306fd46e6febcc41
[ "MIT" ]
null
null
null
Samples/JTSP/TSP/Phone.cpp
markjulmar/tsplib3
f58a281ce43f4d57ef10e24d306fd46e6febcc41
[ "MIT" ]
4
2019-11-14T03:47:33.000Z
2021-03-08T01:18:05.000Z
/*************************************************************************** // // PHONE.CPP // // JulMar Sample TAPI Service provider for TSP++ version 3.00 // Phone management functions // // Copyright (C) 1998 JulMar Entertainment Technology, Inc. // All rights reserved // // This source code is intended only as a s...
39.418301
120
0.615155
markjulmar
5b6b777f04b388ae4557490a1582e747b8e86e94
8,266
hpp
C++
dist/include/ellipsefitter.hpp
vshesh/RUNEtag
800e93fb7c0560ea5a6261ffc60c02638a8cc8c9
[ "MIT" ]
null
null
null
dist/include/ellipsefitter.hpp
vshesh/RUNEtag
800e93fb7c0560ea5a6261ffc60c02638a8cc8c9
[ "MIT" ]
null
null
null
dist/include/ellipsefitter.hpp
vshesh/RUNEtag
800e93fb7c0560ea5a6261ffc60c02638a8cc8c9
[ "MIT" ]
null
null
null
/** * RUNETag fiducial markers library * * ----------------------------------------------------------------------------- * The MIT License (MIT) * * Copyright (c) 2015 Filippo Bergamasco * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation f...
30.167883
295
0.560731
vshesh
5b6e893cff06e65cd751e632fb385bf96966dfa3
253
hh
C++
include/MyPhysicsList.hh
wangshishe/RutherfordScattering
ccc4353501ad7ca4fcc78bf5e4805a358bdaa3ce
[ "MIT" ]
null
null
null
include/MyPhysicsList.hh
wangshishe/RutherfordScattering
ccc4353501ad7ca4fcc78bf5e4805a358bdaa3ce
[ "MIT" ]
null
null
null
include/MyPhysicsList.hh
wangshishe/RutherfordScattering
ccc4353501ad7ca4fcc78bf5e4805a358bdaa3ce
[ "MIT" ]
1
2022-03-15T04:52:09.000Z
2022-03-15T04:52:09.000Z
#ifndef MYPHYSICSLIST_HH #define MYPHYSICSLIST_HH #include "G4VModularPhysicsList.hh" #include "G4EmStandardPhysics_option4.hh" class MyPhysicsList : public G4VModularPhysicsList { public: MyPhysicsList(); virtual ~MyPhysicsList(); }; #endif
16.866667
50
0.786561
wangshishe
5b6ffe51779edb3e815e976863fc26299cf3b2e6
29,795
cpp
C++
dbms/src/Storages/Page/V3/tests/gtest_page_storage.cpp
solotzg/tiflash
66f45c76692e941bc845c01349ea89de0f2cc210
[ "Apache-2.0" ]
4
2022-03-25T21:34:15.000Z
2022-03-25T21:35:12.000Z
dbms/src/Storages/Page/V3/tests/gtest_page_storage.cpp
solotzg/tiflash
66f45c76692e941bc845c01349ea89de0f2cc210
[ "Apache-2.0" ]
null
null
null
dbms/src/Storages/Page/V3/tests/gtest_page_storage.cpp
solotzg/tiflash
66f45c76692e941bc845c01349ea89de0f2cc210
[ "Apache-2.0" ]
8
2022-03-25T10:20:08.000Z
2022-03-31T10:17:25.000Z
// Copyright 2022 PingCAP, Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
31.363158
145
0.618426
solotzg
5b7293b4ca39d3f3817e492ea25bb5dfbb3501e4
15,783
cpp
C++
transport_utils/rpc_delay_measurer.cpp
cd606/tm_examples
5ea8e9774f5070fbcc073c71c39bcb7febef88a7
[ "Apache-2.0" ]
1
2020-05-22T08:47:00.000Z
2020-05-22T08:47:00.000Z
transport_utils/rpc_delay_measurer.cpp
cd606/tm_examples
5ea8e9774f5070fbcc073c71c39bcb7febef88a7
[ "Apache-2.0" ]
null
null
null
transport_utils/rpc_delay_measurer.cpp
cd606/tm_examples
5ea8e9774f5070fbcc073c71c39bcb7febef88a7
[ "Apache-2.0" ]
null
null
null
#include <tm_kit/infra/Environments.hpp> #include <tm_kit/infra/TerminationController.hpp> #include <tm_kit/infra/RealTimeApp.hpp> #include <tm_kit/infra/DeclarativeGraph.hpp> #include <tm_kit/infra/SynchronousRunner.hpp> #include <tm_kit/basic/SpdLoggingComponent.hpp> #include <tm_kit/basic/real_time_clock/ClockCompo...
44.33427
188
0.625356
cd606
ac8bb4964d1ca7a3f3e61140fcc388e923c439ec
36,409
cpp
C++
project/test/algorithm/arithmetic/in_arithmetic_range.cpp
daishe/commander
0a23abcbe406e234a4242e0d508bb89d72b28e25
[ "BSL-1.0" ]
null
null
null
project/test/algorithm/arithmetic/in_arithmetic_range.cpp
daishe/commander
0a23abcbe406e234a4242e0d508bb89d72b28e25
[ "BSL-1.0" ]
null
null
null
project/test/algorithm/arithmetic/in_arithmetic_range.cpp
daishe/commander
0a23abcbe406e234a4242e0d508bb89d72b28e25
[ "BSL-1.0" ]
null
null
null
// Copyright Marek Dalewski 2017 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <commander/algorithm.hpp> #include <boost/test/unit_test.hpp> #include "arithmetic_helpers.hp...
58.62963
112
0.618583
daishe
ac8d04e5823b681f82991d54c539e8a5049e258d
852
cpp
C++
AquaEngine/Core/Allocators/EndAllocator.cpp
tiagovcosta/aquaengine
aea6de9f47ba0243b90c144dee4422efb2389cc7
[ "MIT" ]
55
2015-05-29T20:19:28.000Z
2022-01-18T21:23:15.000Z
AquaEngine/Core/Allocators/EndAllocator.cpp
tiagovcosta/aquaengine
aea6de9f47ba0243b90c144dee4422efb2389cc7
[ "MIT" ]
null
null
null
AquaEngine/Core/Allocators/EndAllocator.cpp
tiagovcosta/aquaengine
aea6de9f47ba0243b90c144dee4422efb2389cc7
[ "MIT" ]
6
2015-09-02T09:51:38.000Z
2020-08-16T07:54:34.000Z
#include "EndAllocator.h" #include "..\..\Utilities\Debug.h" using namespace aqua; EndAllocator::EndAllocator(size_t size, void* start) : FixedLinearAllocator(size, start) { } EndAllocator::~EndAllocator() {} void* EndAllocator::allocate(size_t size, u8 alignment) { ASSERT(size != 0 && alignment != 0); void* ad...
21.3
75
0.732394
tiagovcosta
ac9576c96415e5cf87ba8000379cbe2342a343f6
4,732
cpp
C++
Week14/src/main.cpp
deciduously/SDEV345
1ebe552878fe692126ca1f56046b43d34ae7d3d3
[ "BSD-3-Clause" ]
2
2020-01-14T20:00:37.000Z
2020-04-08T17:59:04.000Z
Week14/src/main.cpp
deciduously/SDEV345
1ebe552878fe692126ca1f56046b43d34ae7d3d3
[ "BSD-3-Clause" ]
null
null
null
Week14/src/main.cpp
deciduously/SDEV345
1ebe552878fe692126ca1f56046b43d34ae7d3d3
[ "BSD-3-Clause" ]
null
null
null
/** * SDEV 345 Week 13 * Hash table * A hash table with a menu-driven CLI using quadratic probing on collisions * Ben Lovy * April 19, 2020 */ #include <algorithm> #include <iostream> #include <string> #include <vector> struct DataMember { std::string data; DataMember() : data("") {} DataMember(const std:...
23.66
96
0.464708
deciduously
aca15fe07310e6416c525c4d76269e7059e87e32
1,204
cpp
C++
Retro3D/src/Component/audio_component.cpp
mlavik1/Retro3D
bb9808444d20ae0fa38cfc9d48c029d70d11c537
[ "MIT" ]
10
2017-06-28T12:43:02.000Z
2022-02-14T12:43:57.000Z
Retro3D/src/Component/audio_component.cpp
mlavik1/Retro3D
bb9808444d20ae0fa38cfc9d48c029d70d11c537
[ "MIT" ]
8
2019-04-07T23:25:28.000Z
2019-04-17T22:19:44.000Z
Retro3D/src/Component/audio_component.cpp
mlavik1/Retro3D
bb9808444d20ae0fa38cfc9d48c029d70d11c537
[ "MIT" ]
4
2019-04-08T15:21:09.000Z
2021-04-06T18:49:20.000Z
#include "audio_component.h" #include "Resource/resource_manager.h" #include "Engine/game_engine.h" #include "Audio/audio_manager.h" namespace Retro3D { AudioTrack* AudioComponent::LoadAudio(std::string arg_file, std::string arg_name) { // TODO: can we do this async? - block until loaded if we try to use the audi...
26.755556
107
0.727575
mlavik1
aca1a1012246e30327bb55a911f71d6659a7ed35
483
cpp
C++
01. Mathematics/05 HCF/05c hcf.cpp
VivekYadav105/Data-Structures-and-Algorithms
7287912da8068c9124e0bb89c93c4d52aa48c51f
[ "MIT" ]
190
2021-02-10T17:01:01.000Z
2022-03-20T00:21:43.000Z
01. Mathematics/05 HCF/05c hcf.cpp
VivekYadav105/Data-Structures-and-Algorithms
7287912da8068c9124e0bb89c93c4d52aa48c51f
[ "MIT" ]
null
null
null
01. Mathematics/05 HCF/05c hcf.cpp
VivekYadav105/Data-Structures-and-Algorithms
7287912da8068c9124e0bb89c93c4d52aa48c51f
[ "MIT" ]
27
2021-03-26T11:35:15.000Z
2022-03-06T07:34:54.000Z
#include<bits/stdc++.h> using namespace std; //Euclid's Theorem Optimised int hcf(int a, int b)//time comp. O(log(min(a,b)) { if (b == 0) { return a; } return hcf(b, a % b); } int hcf_one_liner(int a, int b) { return b == 0 ? a : hcf_one_liner(b, a % b); } int main() { int a1 = 13, b1 = 17; int a2 = 100, b...
15.580645
49
0.573499
VivekYadav105
aca32ea587e7dddea49d8e01dd454a7baad55a98
2,953
cpp
C++
Codes/1340.cpp
whitesimian/URI-Online-Judge
773b8a663d6eb113a030ea72aad3cefe758eed21
[ "MIT" ]
1
2019-10-13T03:43:59.000Z
2019-10-13T03:43:59.000Z
Codes/1340.cpp
rafflezs/URI-Online-Judge
773b8a663d6eb113a030ea72aad3cefe758eed21
[ "MIT" ]
null
null
null
Codes/1340.cpp
rafflezs/URI-Online-Judge
773b8a663d6eb113a030ea72aad3cefe758eed21
[ "MIT" ]
2
2021-02-16T05:47:06.000Z
2021-02-24T14:11:54.000Z
#include <iostream> #include <vector> using namespace std; void inserir(int ordenado[], int tamanho, int elemento){ int i = tamanho - 1; while(elemento<ordenado[i] && i>=0) { ordenado[i+1] = ordenado[i]; i--; } ordenado[i+1] = elemento; } int main() { int n; while(cin...
26.366071
70
0.299695
whitesimian
aca80575d2ab1004076210ff18e94c6451bcd56d
16,644
hpp
C++
include/recompression/util.hpp
christopherosthues/recompression
1932cc5aa77a533d9994dbe0c80dbb889a4d25ec
[ "ECL-2.0", "Apache-2.0" ]
5
2019-07-18T12:48:14.000Z
2022-01-04T13:54:13.000Z
include/recompression/util.hpp
christopherosthues/recompression
1932cc5aa77a533d9994dbe0c80dbb889a4d25ec
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
include/recompression/util.hpp
christopherosthues/recompression
1932cc5aa77a533d9994dbe0c80dbb889a4d25ec
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#pragma once #include <algorithm> #include <cstdlib> #include <fstream> #include <iostream> #include <map> #include <sstream> #include <string> #include <unordered_map> #include <vector> #include "defs.hpp" namespace recomp { namespace util { size_t file_size_in_bytes(std::string& file_name, const size_t prefix_s...
29.251318
116
0.590904
christopherosthues
acafd269bbe698f492c1a0b970cc266ef4d205d2
940
hpp
C++
terminalpp/include/terminalpp/detail/export.hpp
CalielOfSeptem/septem
fe7a615eb6c279d3746ee78de8864b5e07bf7e3e
[ "MIT" ]
1
2017-03-30T14:31:33.000Z
2017-03-30T14:31:33.000Z
terminalpp/include/terminalpp/detail/export.hpp
HoraceWeebler/septem
fe7a615eb6c279d3746ee78de8864b5e07bf7e3e
[ "MIT" ]
null
null
null
terminalpp/include/terminalpp/detail/export.hpp
HoraceWeebler/septem
fe7a615eb6c279d3746ee78de8864b5e07bf7e3e
[ "MIT" ]
null
null
null
#ifndef TERMINALPP_EXPORT_H #define TERMINALPP_EXPORT_H #ifdef TERMINALPP_STATIC_DEFINE # define TERMINALPP_EXPORT # define TERMINALPP_NO_EXPORT #else # ifndef TERMINALPP_EXPORT # ifdef terminalpp_EXPORTS /* We are building this library */ # define TERMINALPP_EXPORT # else /* We are usi...
22.380952
84
0.798936
CalielOfSeptem
acc24b0e7060f555fae6265b12064bb4294690b3
246
cpp
C++
Divisibility_problem.cpp
shalini264/Coding-problem-solutions
77e8b12b771d24e62f4268d6ba8f29f592770bd9
[ "MIT" ]
4
2021-07-11T20:13:56.000Z
2022-02-19T17:22:42.000Z
Divisibility_problem.cpp
shalini264/long-challenge-solutions-in-my-way
77e8b12b771d24e62f4268d6ba8f29f592770bd9
[ "MIT" ]
null
null
null
Divisibility_problem.cpp
shalini264/long-challenge-solutions-in-my-way
77e8b12b771d24e62f4268d6ba8f29f592770bd9
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; int main() {long long int T; cin>>T; while(T) {long long int a,b,x; cin>>a>>b; if(a>=b) {if(a%b==0) x=0; else {x=a%b; x=b-x;}} else x=b-a; cout<<x<<"\n"; T--;} return 0;}
12.3
23
0.5
shalini264
acc371d7edf19a498ee9d1a4ed4d79820e6a22e9
143
cpp
C++
yellow_belt/week_3/3_source_class_declaration/Solution/main.cpp
VladimirYugay/cpp_coursera
d4fc1322757f2ae84991266c408bca02266f1f2a
[ "Unlicense" ]
null
null
null
yellow_belt/week_3/3_source_class_declaration/Solution/main.cpp
VladimirYugay/cpp_coursera
d4fc1322757f2ae84991266c408bca02266f1f2a
[ "Unlicense" ]
null
null
null
yellow_belt/week_3/3_source_class_declaration/Solution/main.cpp
VladimirYugay/cpp_coursera
d4fc1322757f2ae84991266c408bca02266f1f2a
[ "Unlicense" ]
null
null
null
#include <iostream> #include "rectangle.h" using namespace std; int main(){ Rectangle r(0, 0); cout << r.GetArea(); return 0; }
11.916667
24
0.608392
VladimirYugay