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
8cfc555a8d44601085810b506c3df6bbcc6a6559
10,456
hpp
C++
OpenS4/Renderer/ObjectRenderer/MultiAtlas.hpp
MadShadow-/OpenS4
1b2f69d617406a2a49ed0511d93771d978b6bfc3
[ "MIT" ]
3
2020-08-05T19:54:08.000Z
2021-06-11T12:21:51.000Z
OpenS4/Renderer/ObjectRenderer/MultiAtlas.hpp
MadShadow-/OpenS4
1b2f69d617406a2a49ed0511d93771d978b6bfc3
[ "MIT" ]
null
null
null
OpenS4/Renderer/ObjectRenderer/MultiAtlas.hpp
MadShadow-/OpenS4
1b2f69d617406a2a49ed0511d93771d978b6bfc3
[ "MIT" ]
4
2020-07-20T13:25:13.000Z
2021-08-06T12:44:14.000Z
#pragma once #include <rectpack2D/finders_interface.h> #include <Core/Util.hpp> #include "../../Import/Graphics/Image.hpp" #include "../OpenGL.hpp" namespace OpenS4::Renderer::ObjectRenderer { class Atlas { u32 m_size = 0; std::vector<u32> m_imageBuffer; u32 m_filledPixels = 0; ...
31.21194
80
0.456867
MadShadow-
8cfd9e5ad02a6ac012435edb0e193061a30e2e7b
7,878
cpp
C++
source/msynth/msynth/model/MWave.cpp
MRoc/MSynth
3eb5c6cf0ad6a3d12f555ebca5fbe84c1b255829
[ "MIT" ]
1
2022-01-30T07:40:31.000Z
2022-01-30T07:40:31.000Z
source/msynth/msynth/model/MWave.cpp
MRoc/MSynth
3eb5c6cf0ad6a3d12f555ebca5fbe84c1b255829
[ "MIT" ]
null
null
null
source/msynth/msynth/model/MWave.cpp
MRoc/MSynth
3eb5c6cf0ad6a3d12f555ebca5fbe84c1b255829
[ "MIT" ]
null
null
null
/* MWave (C)2000-2003 MRoc hifiShock TODO: - compare saved wave with cool edit output */ #include "MWave.h" #include <framework/io/MIoException.h> /** * runtime support */ MRtti MWave::gvRtti = MRtti( "MWave", MWave::createInstance ); /** * the attribute name for samplingrate (xml) */ con...
21.291892
99
0.640137
MRoc
ea0374066c2b84cadb62b82644813d7de4e84b02
528
cpp
C++
test/force.cpp
ericjavier/yaml
92d9097fc58602fbc88000fd22e2debc2f90996c
[ "Apache-2.0" ]
1
2015-04-12T19:46:13.000Z
2015-04-12T19:46:13.000Z
test/force.cpp
ericjavier/yaml
92d9097fc58602fbc88000fd22e2debc2f90996c
[ "Apache-2.0" ]
null
null
null
test/force.cpp
ericjavier/yaml
92d9097fc58602fbc88000fd22e2debc2f90996c
[ "Apache-2.0" ]
null
null
null
#include <gtest/gtest.h> #include <yaml/config.hpp> #include <yaml/detail/force.hpp> #include "test_utils.hpp" using namespace YAML_NSP; using namespace DETAIL_NSP; TEST(force, having_type) { expect_std_is_same<std::true_type, force<std::is_same<int, int>>::type>(); expect_std_is_same<std::integral_constant<int,...
27.789474
76
0.725379
ericjavier
ea0cc50397e27731b3767d779a929e80027546e5
549
cpp
C++
elastic-circuits/examples/cordic.cpp
minseongg/dynamatic
268d97690f128569da46e4f39a99346e93ee9d4e
[ "MIT" ]
46
2019-11-16T13:44:07.000Z
2022-03-12T14:28:44.000Z
elastic-circuits/examples/cordic.cpp
minseongg/dynamatic
268d97690f128569da46e4f39a99346e93ee9d4e
[ "MIT" ]
11
2020-05-12T17:20:51.000Z
2022-02-04T10:04:59.000Z
elastic-circuits/examples/cordic.cpp
minseongg/dynamatic
268d97690f128569da46e4f39a99346e93ee9d4e
[ "MIT" ]
22
2020-02-21T21:33:40.000Z
2022-02-24T06:50:41.000Z
float cordic(float theta, float a[2], float cordic_phase[1000], float current_cos, float current_sin) { float factor = 1.0; for (int i = 0; i < 1000; i++) { float sigma = (theta < 0) ? -1.0 : 1.0; float tmp_cos = current_cos; current_cos = current_cos - current_sin * si...
28.894737
82
0.570128
minseongg
ea0de57c2d07776b41483d92e6048a3354aa1758
542
cc
C++
infrt/dialect/init_cinn_dialects.cc
hp03/CINN
2a162037b1665877ce005750691415ddd859d446
[ "Apache-2.0" ]
1
2022-03-05T09:30:02.000Z
2022-03-05T09:30:02.000Z
infrt/dialect/init_cinn_dialects.cc
hp03/CINN
2a162037b1665877ce005750691415ddd859d446
[ "Apache-2.0" ]
null
null
null
infrt/dialect/init_cinn_dialects.cc
hp03/CINN
2a162037b1665877ce005750691415ddd859d446
[ "Apache-2.0" ]
null
null
null
#include "infrt/dialect/init_cinn_dialects.h" #include <glog/logging.h> #include "infrt/dialect/basic_kernels.h" #include "infrt/dialect/cinn_base.h" #include "infrt/dialect/dense_tensor.h" #include "infrt/dialect/pd_ops.h" #include "infrt/dialect/tensor_shape.h" namespace infrt { void RegisterCinnDialects(mlir::Di...
25.809524
60
0.760148
hp03
ea19b5c7f2803fddaba7e991a1039310fb28865f
1,842
cpp
C++
plugins/src/amx/loader.cpp
IllidanS4/YALP
722cfa82ae8db19456e9aa21ea0f26602bda12e6
[ "MIT" ]
12
2018-08-18T19:40:05.000Z
2021-12-21T14:28:52.000Z
plugins/src/amx/loader.cpp
IllidanS4/YALP
722cfa82ae8db19456e9aa21ea0f26602bda12e6
[ "MIT" ]
null
null
null
plugins/src/amx/loader.cpp
IllidanS4/YALP
722cfa82ae8db19456e9aa21ea0f26602bda12e6
[ "MIT" ]
null
null
null
#include "loader.h" #include "sdk/plugincommon.h" extern void **ppData; AMX *last_amx; std::function<void(AMX*, void*)> init_func; bool LoadFilterScriptFromMemory(const char* pFileName, const char* pFileData) { return reinterpret_cast<bool(*)(char*, char*)>(ppData[PLUGIN_DATA_LOADFSCRIPT])(const_cast<char*>(pFileNa...
26.314286
141
0.722584
IllidanS4
ea1c5c716136e8aa56bac1ac11a2edfb3cf134b3
451
cpp
C++
SOURCE/allProjects/Hackerrank_Website/BreakingRecords/BreakingRecords/breakRecord.cpp
llanesjuan/AllMyProjects
5944b248ae8f4f84cfea9fcf379f877909372551
[ "MIT" ]
null
null
null
SOURCE/allProjects/Hackerrank_Website/BreakingRecords/BreakingRecords/breakRecord.cpp
llanesjuan/AllMyProjects
5944b248ae8f4f84cfea9fcf379f877909372551
[ "MIT" ]
null
null
null
SOURCE/allProjects/Hackerrank_Website/BreakingRecords/BreakingRecords/breakRecord.cpp
llanesjuan/AllMyProjects
5944b248ae8f4f84cfea9fcf379f877909372551
[ "MIT" ]
null
null
null
#include "breakRecord.h" void breakRecord::recordBreaker(vector<int>a,int &inc, int & dec) { int scoreInc, scoreDec; scoreInc = scoreDec = a.front(), inc=dec = 0; vector<int>::iterator itr; for (itr = a.begin() + 1; itr != a.end();itr++) { if ((*itr) > scoreInc) { inc++; scoreInc = (*itr); } else ...
13.666667
65
0.580931
llanesjuan
ea2132ff49d9381cf045968ded2cb4e53b48cd53
1,037
hpp
C++
kv/status/fvn_hash.hpp
davidkristola/fluent-hsm-cpp
e4da9bd61607d81bc8d3aa789e5e82dada02d0be
[ "Unlicense" ]
null
null
null
kv/status/fvn_hash.hpp
davidkristola/fluent-hsm-cpp
e4da9bd61607d81bc8d3aa789e5e82dada02d0be
[ "Unlicense" ]
null
null
null
kv/status/fvn_hash.hpp
davidkristola/fluent-hsm-cpp
e4da9bd61607d81bc8d3aa789e5e82dada02d0be
[ "Unlicense" ]
null
null
null
// I, the creator and copyright holder of this source code, release this work // into the public domain. This applies worldwide. // In some jurisdictions this not may be legally possible. In such case I grant // anyone the right to use this work for any purpose, without any conditions, // unless such conditions are req...
32.40625
79
0.698168
davidkristola
ea2634717026bf9eb52fd291beaf8ad915803cc1
23,867
cpp
C++
lib/util/RichardsonEx/exec/richardson.cpp
rmrsk/Chombo-3.3
f2119e396460c1bb19638effd55eb71c2b35119e
[ "BSD-3-Clause-LBNL" ]
null
null
null
lib/util/RichardsonEx/exec/richardson.cpp
rmrsk/Chombo-3.3
f2119e396460c1bb19638effd55eb71c2b35119e
[ "BSD-3-Clause-LBNL" ]
null
null
null
lib/util/RichardsonEx/exec/richardson.cpp
rmrsk/Chombo-3.3
f2119e396460c1bb19638effd55eb71c2b35119e
[ "BSD-3-Clause-LBNL" ]
1
2021-04-13T19:06:43.000Z
2021-04-13T19:06:43.000Z
#ifdef CH_LANG_CC /* * _______ __ * / ___/ / ___ __ _ / / ___ * / /__/ _ \/ _ \/ V \/ _ \/ _ \ * \___/_//_/\___/_/_/_/_.__/\___/ * Please refer to Copyright.txt, in Chombo's root directory. */ #endif #include <iostream> using std::ifstream; using std::ios; // #define HALEM_PR...
28.755422
78
0.497423
rmrsk
ea2830e430c8cffc4e5495093e28a949540c0948
6,584
cpp
C++
Theory/Codes/CPP/Tree/BST.cpp
KongFanJin/Relean-D-A
1a1776c44983aaeb9510077e0674cca21b94a65c
[ "MIT" ]
null
null
null
Theory/Codes/CPP/Tree/BST.cpp
KongFanJin/Relean-D-A
1a1776c44983aaeb9510077e0674cca21b94a65c
[ "MIT" ]
null
null
null
Theory/Codes/CPP/Tree/BST.cpp
KongFanJin/Relean-D-A
1a1776c44983aaeb9510077e0674cca21b94a65c
[ "MIT" ]
null
null
null
#include <cassert> #include <cstddef> #include <iostream> #include <queue> using namespace std; // 二分搜索树 template <typename Key, typename Value> class BST { private: // 二分搜索树中的节点为私有的结构体, 外界不需要了解二分搜索树节点的具体实现 struct Node { Key key; Value value; Node *left; Node *right; Node(Key key, Value value...
21.23871
71
0.555589
KongFanJin
ea294bd1ca13d1d336fd5af1c4d223a7aae17154
2,865
hpp
C++
packages/monte_carlo/collision/native/src/MonteCarlo_IncoherentPhotoatomicReaction.hpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
packages/monte_carlo/collision/native/src/MonteCarlo_IncoherentPhotoatomicReaction.hpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
packages/monte_carlo/collision/native/src/MonteCarlo_IncoherentPhotoatomicReaction.hpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
//---------------------------------------------------------------------------// //! //! \file MonteCarlo_IncoherentPhotoatomicReaction.hpp //! \author Alex Robinson //! \brief The incoherent photoatomic reaction class decl. //! //---------------------------------------------------------------------------// #ifndef...
34.939024
110
0.625829
lkersting
ea31dc88c7300e916fe14df9e8baf07106d26eb0
48,706
hpp
C++
siqk/siqk_quadrature.hpp
ambrad/COMPOSE
0bda7aeaf2b8494c7de8cd179c22e340b08eda6e
[ "BSD-3-Clause" ]
3
2018-12-30T20:01:25.000Z
2020-07-22T23:44:14.000Z
siqk/siqk_quadrature.hpp
E3SM-Project/COMPOSE
0bda7aeaf2b8494c7de8cd179c22e340b08eda6e
[ "BSD-3-Clause" ]
8
2019-02-06T19:08:31.000Z
2020-04-24T03:40:49.000Z
siqk/siqk_quadrature.hpp
ambrad/COMPOSE
0bda7aeaf2b8494c7de8cd179c22e340b08eda6e
[ "BSD-3-Clause" ]
2
2019-01-16T03:58:31.000Z
2019-02-06T22:45:43.000Z
// COMPOSE version 1.0: Copyright 2018 NTESS. This software is released under // the BSD license; see LICENSE in the top-level directory. #ifndef INCLUDE_SIQK_QUADRATURE_HPP #define INCLUDE_SIQK_QUADRATURE_HPP #include "siqk_defs.hpp" namespace siqk { /* For the TRISYM entries, see, e.g., Triangular quadrature...
78.940032
118
0.821254
ambrad
ea31e8d3cdcaa5bd9dd8d9c41c516c2d0492be54
2,474
cpp
C++
week of code 33/palindromic-table_bruteforce.cpp
parthlathiya/HackerRank_Submissions
820d932d4a6849685e8de6eec44609efc1f1a58a
[ "MIT" ]
null
null
null
week of code 33/palindromic-table_bruteforce.cpp
parthlathiya/HackerRank_Submissions
820d932d4a6849685e8de6eec44609efc1f1a58a
[ "MIT" ]
null
null
null
week of code 33/palindromic-table_bruteforce.cpp
parthlathiya/HackerRank_Submissions
820d932d4a6849685e8de6eec44609efc1f1a58a
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; #define rep(i,a,b) for(ll i=a;i<b;i++) #define re(i,b) for(ll i=0;i<b;i++) #define repr(i,n) for(ll i=n-1;i>=0;i--) #define ll long long #define ld long double #define llu long long unsigned #define vll std::vector<ll> #define m...
19.951613
88
0.440582
parthlathiya
ea34a0cc7f17178e946cf0732a997174df9506a1
3,657
cpp
C++
demo/ez.cpp
YuanL12/BATS
35a32facc87e17649b7fc32225c8ffaf0301bbfa
[ "MIT" ]
5
2020-04-24T17:34:54.000Z
2021-04-07T15:56:00.000Z
demo/ez.cpp
YuanL12/BATS
35a32facc87e17649b7fc32225c8ffaf0301bbfa
[ "MIT" ]
5
2021-05-13T14:16:35.000Z
2021-08-15T15:11:55.000Z
demo/ez.cpp
YuanL12/BATS
35a32facc87e17649b7fc32225c8ffaf0301bbfa
[ "MIT" ]
1
2022-02-08T11:51:27.000Z
2022-02-08T11:51:27.000Z
#include <iostream> #include <vector> #include <util/io.hpp> #include <chrono> #include <bats.hpp> #define FT ModP<int, 3> #define VT SparseVector<FT> #define MT ColumnMatrix<VT> using CpxT = bats::LightSimplicialComplex<size_t, std::unordered_map<size_t, size_t>>; // using CpxT = bats::SimplicialComplex; int main(...
27.916031
86
0.546623
YuanL12
ea35df5b8a9a60dde22401de515d4bccabd7461f
8,898
cc
C++
src/io/galaxy_writer.cc
andrewsolis/mpm
c6ea73d3bac177a440f0aa0a5e66829c294a00e5
[ "MIT" ]
null
null
null
src/io/galaxy_writer.cc
andrewsolis/mpm
c6ea73d3bac177a440f0aa0a5e66829c294a00e5
[ "MIT" ]
null
null
null
src/io/galaxy_writer.cc
andrewsolis/mpm
c6ea73d3bac177a440f0aa0a5e66829c294a00e5
[ "MIT" ]
null
null
null
#include "galaxy_writer.h" #ifdef USE_GALAXY GXY_Data::GXY_Data( vtkSmartPointer<vtkPolyData> pdata, const std::string& fieldname, unsigned timestep ) { std::cout << "inside gxy_data constructor" << std::endl; bufhdr *hdr; step = timestep; std::cout << "set step" << std::endl; vtkPoints *pts = pdata->Get...
26.017544
122
0.592043
andrewsolis
ea3978a691a55244402515c65aff3d8d7cc6089e
432
hpp
C++
include/pacman/EventRunner.hpp
197708156EQUJ5/pac-man
30501ac43b9bcdd94b3cbb848c597882fc268492
[ "MIT" ]
null
null
null
include/pacman/EventRunner.hpp
197708156EQUJ5/pac-man
30501ac43b9bcdd94b3cbb848c597882fc268492
[ "MIT" ]
null
null
null
include/pacman/EventRunner.hpp
197708156EQUJ5/pac-man
30501ac43b9bcdd94b3cbb848c597882fc268492
[ "MIT" ]
null
null
null
#pragma once #include "pacman/Board.hpp" #include <iostream> #include <memory> #include <SDL2/SDL.h> #include <SDL2/SDL_image.h> #include <SDL2/SDL_ttf.h> namespace pacman { class EventRunner { public: EventRunner() = default; ~EventRunner(); bool init(); void gameLoop(); private: SD...
12.705882
34
0.648148
197708156EQUJ5
ea407f18a70eaaaed7987adfb399b8d521e6f966
1,240
cpp
C++
Problems/Unknown/1637_Sharp_Eyes/main.cpp
usernameSplash/BOJ
3b76674267aa49e7a604c3ce8df06dbe8869baa3
[ "MIT" ]
2
2020-12-06T15:29:21.000Z
2020-12-07T14:37:14.000Z
Problems/Unknown/1637_Sharp_Eyes/main.cpp
usernameSplash/BOJ
3b76674267aa49e7a604c3ce8df06dbe8869baa3
[ "MIT" ]
1
2020-12-22T14:25:22.000Z
2020-12-22T14:25:22.000Z
Problems/Unknown/1637_Sharp_Eyes/main.cpp
usernameSplash/BOJ
3b76674267aa49e7a604c3ce8df06dbe8869baa3
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <algorithm> #include <queue> #include <stack> using namespace std; void cppIOInitialize() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); } int solve(long long mid, vector<long long> &a, vector<long long> &b, vector<long long> &c) { in...
16.986301
90
0.462903
usernameSplash
ea474563689e5ad1a54fbf1b2e5586280db08ddc
955
cpp
C++
PAT (Advanced Level) Practice/1022 Digital Library (30).cpp
vuzway/PAT
5db8ca9295b51ad9e99c815a46e4ac764d7d06c1
[ "MIT" ]
5
2020-02-10T08:26:19.000Z
2020-07-09T00:11:16.000Z
PAT (Advanced Level) Practice/1022 Digital Library (30).cpp
Assassin2016/zju_data_structures_and_algorithms_in_MOOC
5db8ca9295b51ad9e99c815a46e4ac764d7d06c1
[ "MIT" ]
null
null
null
PAT (Advanced Level) Practice/1022 Digital Library (30).cpp
Assassin2016/zju_data_structures_and_algorithms_in_MOOC
5db8ca9295b51ad9e99c815a46e4ac764d7d06c1
[ "MIT" ]
null
null
null
#include <iostream> #include <set> #include <unordered_map> using namespace std; void query(unordered_map<string, set<int>> &m, string s) { if (m.find(s) == m.end()) printf("Not Found\n"); else for (auto it : m[s]) printf("%07d\n", it); } int main() { int n, id, m, inx; scanf("%d\n", &n); string s; unordered_map<...
21.222222
58
0.55288
vuzway
356c2a2fb2e7f9f6d3578491520d71c8d430933f
4,074
hpp
C++
src/memory/allocator_collection.hpp
AdhocMan/spla
f3a7b565aaf83b4a988084d5e6d30c9715c563e2
[ "BSD-3-Clause" ]
9
2020-10-23T07:47:41.000Z
2021-07-05T10:25:50.000Z
src/memory/allocator_collection.hpp
AdhocMan/spla
f3a7b565aaf83b4a988084d5e6d30c9715c563e2
[ "BSD-3-Clause" ]
5
2020-10-11T19:07:02.000Z
2022-03-15T08:57:12.000Z
src/memory/allocator_collection.hpp
AdhocMan/spla
f3a7b565aaf83b4a988084d5e6d30c9715c563e2
[ "BSD-3-Clause" ]
1
2020-10-11T19:07:38.000Z
2020-10-11T19:07:38.000Z
/* * Copyright (c) 2020 ETH Zurich, Simon Frasch * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the ...
35.736842
97
0.682131
AdhocMan
3571a1e1bc5c613f13d16471ecd3ad3180c16762
1,489
cpp
C++
3DRenderer/3DRenderer/src/Core/Application.cpp
Epics123/3D-Renderer
33cfb800ff19baabfa7c3a3026527abfa16a8417
[ "MIT" ]
null
null
null
3DRenderer/3DRenderer/src/Core/Application.cpp
Epics123/3D-Renderer
33cfb800ff19baabfa7c3a3026527abfa16a8417
[ "MIT" ]
null
null
null
3DRenderer/3DRenderer/src/Core/Application.cpp
Epics123/3D-Renderer
33cfb800ff19baabfa7c3a3026527abfa16a8417
[ "MIT" ]
null
null
null
#include "pch.h" #include "Application.h" #define _USE_MATH_DEFINES #include <math.h> Application::Application() :mWindow(WindowProps("3D Renderer")), mRunning(true) { std::mt19937 rng(std::random_device{}()); std::uniform_real_distribution<float> alignmentDist(0.0f, (float)M_PI * 2.0f); std::uniform_real_distrib...
28.634615
131
0.70047
Epics123
357a6e51fdd3c9cc72fd6daab250b0d25fffa2c0
14,818
cpp
C++
GosuImpl/WindowX.cpp
AmIMeYet/gosu
2c22ba8bdae741c97c90dad747c9163212e82c96
[ "MIT" ]
1
2015-11-05T05:08:26.000Z
2015-11-05T05:08:26.000Z
GosuImpl/WindowX.cpp
AmIMeYet/gosu
2c22ba8bdae741c97c90dad747c9163212e82c96
[ "MIT" ]
null
null
null
GosuImpl/WindowX.cpp
AmIMeYet/gosu
2c22ba8bdae741c97c90dad747c9163212e82c96
[ "MIT" ]
null
null
null
// While (re)writing this file, I have been looking at many other libraries since all the // "official" documentation was horrible, at least those parts that I was able to find. // Kudos to the Pyglet folks (http://www.pyglet.org/) who wrote code that was much easier to // understand than that! --jlnr #include <G...
32.283224
126
0.600216
AmIMeYet
35802720967476602c7805b6dcb5763d5832ca46
347
cpp
C++
src/o3ds/subscriber.cpp
mocap-ca/Open3DStream
e376b359d349e18030aec287c3e8eb68928e24ff
[ "MIT" ]
13
2020-07-26T15:19:18.000Z
2021-11-13T05:05:24.000Z
src/o3ds/subscriber.cpp
pdkyll/Open3DStream
e376b359d349e18030aec287c3e8eb68928e24ff
[ "MIT" ]
null
null
null
src/o3ds/subscriber.cpp
pdkyll/Open3DStream
e376b359d349e18030aec287c3e8eb68928e24ff
[ "MIT" ]
4
2020-07-28T21:26:24.000Z
2022-01-25T18:58:37.000Z
#include "subscriber.h" namespace O3DS { bool Subscriber::start(const char *url) { int ret; ret = nng_sub0_open(&mSocket); if (ret != 0) { return false; } ret = nng_dial(mSocket, url, NULL, 0); if (ret != 0) { return false; } ret = nng_setopt(mSocket, NNG_OPT_SUB_SUBSCRIBE, "", 0); if (ret != 0) { return f...
15.086957
57
0.634006
mocap-ca
3586a9a0e5a3209f796132895044bf8497449303
7,166
cpp
C++
source/Bit/Graphics/OpenGL/OpenGLPostProcessingBloom.cpp
jimmiebergmann/Bit-Engine
39324a9e7fb5ab4b1cf3738f871470e0a9ef7575
[ "Zlib" ]
null
null
null
source/Bit/Graphics/OpenGL/OpenGLPostProcessingBloom.cpp
jimmiebergmann/Bit-Engine
39324a9e7fb5ab4b1cf3738f871470e0a9ef7575
[ "Zlib" ]
null
null
null
source/Bit/Graphics/OpenGL/OpenGLPostProcessingBloom.cpp
jimmiebergmann/Bit-Engine
39324a9e7fb5ab4b1cf3738f871470e0a9ef7575
[ "Zlib" ]
null
null
null
// /////////////////////////////////////////////////////////////////////////// // Copyright (C) 2013 Jimmie Bergmann - jimmiebergmann@gmail.com // // 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 from the use of thi...
27.667954
142
0.67904
jimmiebergmann
3586bcdb39dd8de5ecc787cb44a41ee674f92287
1,891
cpp
C++
SerialCommunication_CS/REF DATA/ApiPrj/04jang/MyTimer/MyTimer.cpp
EIDOSDATA/Awexome_Ray
7e7a38e5b29b2615082ea2e764fccb1ddec620bc
[ "Unlicense" ]
null
null
null
SerialCommunication_CS/REF DATA/ApiPrj/04jang/MyTimer/MyTimer.cpp
EIDOSDATA/Awexome_Ray
7e7a38e5b29b2615082ea2e764fccb1ddec620bc
[ "Unlicense" ]
null
null
null
SerialCommunication_CS/REF DATA/ApiPrj/04jang/MyTimer/MyTimer.cpp
EIDOSDATA/Awexome_Ray
7e7a38e5b29b2615082ea2e764fccb1ddec620bc
[ "Unlicense" ]
null
null
null
#include <windows.h> LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM); HINSTANCE g_hInst; LPSTR lpszClass="MyTimer"; int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance ,LPSTR lpszCmdParam,int nCmdShow) { HWND hWnd; MSG Message; WNDCLASS WndClass; g_hInst=hInstance; WndClass.cbClsExtra=0; Wn...
23.6375
77
0.746166
EIDOSDATA
358900c7bd68db8f2469d6cc987842429f9c3c27
9,682
cpp
C++
labs/2/08-09-problem-solving/code/System.cpp
triffon/oop-2019-20
db199631d59ddefdcc0c8eb3d689de0095618f92
[ "MIT" ]
19
2020-02-21T16:46:50.000Z
2022-01-26T19:59:49.000Z
labs/2/08-09-problem-solving/code/System.cpp
triffon/oop-2019-20
db199631d59ddefdcc0c8eb3d689de0095618f92
[ "MIT" ]
1
2020-03-14T08:09:45.000Z
2020-03-14T08:09:45.000Z
labs/2/08-09-problem-solving/code/System.cpp
triffon/oop-2019-20
db199631d59ddefdcc0c8eb3d689de0095618f92
[ "MIT" ]
11
2020-02-23T12:29:58.000Z
2021-04-11T08:30:12.000Z
#include "System.hpp" #include <fstream> #include <cstring> const char* SAVE_FILE_NAME = "system.bin"; const size_t MAX_INPUT_LEN = 128; System::System() {} System& System::i() { static System sys; return sys; } System::~System() { for (size_t i = 0; i < events.size(); i++) delete events[i];...
28.988024
127
0.489362
triffon
35891dcfff13554385295fb1d5ef019d5bcb52c9
1,322
cpp
C++
HelloTuiLua/frameworks/runtime-src/Classes/tui/TuiBase.cpp
LingJiJian/Tui-x
e00e79109db466143ed2b399a8991be4e5fea28f
[ "MIT" ]
67
2015-02-09T03:20:59.000Z
2022-01-17T05:53:07.000Z
HelloTuiLua/frameworks/runtime-src/Classes/tui/TuiBase.cpp
asbdzxln118/Tui-x
e00e79109db466143ed2b399a8991be4e5fea28f
[ "MIT" ]
3
2015-04-14T01:47:27.000Z
2016-03-15T06:56:04.000Z
HelloTuiLua/frameworks/runtime-src/Classes/tui/TuiBase.cpp
asbdzxln118/Tui-x
e00e79109db466143ed2b399a8991be4e5fea28f
[ "MIT" ]
34
2015-02-18T04:42:07.000Z
2019-08-15T05:34:46.000Z
#include "TuiBase.h" NS_TUI_BEGIN bool TuiBase::init(){ return CSceneExtension::init(); } TuiBase::TuiBase() :m_isAutoRemoveUnusedSpriteFrame(false) { } TuiBase::~TuiBase(){ if(m_isAutoRemoveUnusedSpriteFrame){ removeAllChildrenWithCleanup(true); SpriteFrameCache::getInstance()->removeU...
22.793103
92
0.437973
LingJiJian
358c81c1b8e339ca7d7672b7a5c1f598efb9e769
3,251
cpp
C++
src/Destroyer/WallDestroyer.cpp
KranKRival/BomberManNX
919ec1b0878ddf7fe9f5baecdc0f3a6b71892821
[ "MIT" ]
4
2019-09-30T18:21:44.000Z
2020-06-01T18:32:24.000Z
src/Destroyer/WallDestroyer.cpp
KranKRival/BomberManNX
919ec1b0878ddf7fe9f5baecdc0f3a6b71892821
[ "MIT" ]
null
null
null
src/Destroyer/WallDestroyer.cpp
KranKRival/BomberManNX
919ec1b0878ddf7fe9f5baecdc0f3a6b71892821
[ "MIT" ]
null
null
null
#include "Destroyer/WallDestroyer.h" //#define DEBUG_OUTPUT_WALLDESTROYER #ifdef DEBUG_OUTPUT_WALLDESTROYER #include<iostream> #endif // DEBUG_OUTPUT_WALLDESTROYER #include<cmath> WallDestroyer::WallDestroyer(Map* level, unsigned int start_x, unsigned int st...
38.247059
120
0.634266
KranKRival
358cb9c40c55d9ac209bca683d6287cfb1016c7c
2,023
cc
C++
Sudoku/main.cc
liangwj45/AI-Assignment
bf427eb153210dd0b9e049512d96f28c8b27d388
[ "OLDAP-2.4" ]
null
null
null
Sudoku/main.cc
liangwj45/AI-Assignment
bf427eb153210dd0b9e049512d96f28c8b27d388
[ "OLDAP-2.4" ]
null
null
null
Sudoku/main.cc
liangwj45/AI-Assignment
bf427eb153210dd0b9e049512d96f28c8b27d388
[ "OLDAP-2.4" ]
null
null
null
#include "BacktrackingSearch/BSSudoku.h" #include "ExhaustiveSearch/ESSudoku.h" #include "ForwardChecking/FCSudoku.h" #include "MinimumRemainingValues/MRVSudoku.h" #include <windows.h> #include <cstring> #include <iostream> using std::cout; using std::endl; int main(int argc, char* argv[]) { const char*...
33.716667
73
0.623826
liangwj45
3591c9c260790844fbad82c684d55a6b5fc27a39
8,698
cpp
C++
Sources/Plugins/InputSystem_Win32/Win32InputKeyboard.cpp
jdelezenne/Sonata
fb1b1b64a78874a0ab2809995be4b6f14f9e4d56
[ "MIT" ]
null
null
null
Sources/Plugins/InputSystem_Win32/Win32InputKeyboard.cpp
jdelezenne/Sonata
fb1b1b64a78874a0ab2809995be4b6f14f9e4d56
[ "MIT" ]
null
null
null
Sources/Plugins/InputSystem_Win32/Win32InputKeyboard.cpp
jdelezenne/Sonata
fb1b1b64a78874a0ab2809995be4b6f14f9e4d56
[ "MIT" ]
null
null
null
/*============================================================================= Win32InputKeyboard.cpp Project: Sonata Engine Copyright (c) 2005 Julien Delezenne =============================================================================*/ #include "Win32InputKeyboard.h" #include "Win32InputSystem.h" namespace SE_W...
24.228412
79
0.732352
jdelezenne
3598230b3e623f854e50dfe8e5896af87f1fb52f
342
hpp
C++
VoxelIt/include/VoxelIt/Resource.hpp
Frizlee/VoxelIt
4946c1d3e7847cd0f991e8b3fbe0436486a9958c
[ "MIT" ]
null
null
null
VoxelIt/include/VoxelIt/Resource.hpp
Frizlee/VoxelIt
4946c1d3e7847cd0f991e8b3fbe0436486a9958c
[ "MIT" ]
null
null
null
VoxelIt/include/VoxelIt/Resource.hpp
Frizlee/VoxelIt
4946c1d3e7847cd0f991e8b3fbe0436486a9958c
[ "MIT" ]
null
null
null
#pragma once #include <VoxelIt/Prerequisites.hpp> namespace vit { /// Base abstract resource class. class Resource { public: /// Default constructor. VOXELIT_API Resource(); /// Virtual destructor which also defines this class as abstract class. virtual VOXELIT_API ~Res...
20.117647
79
0.634503
Frizlee
359ab5ed08b46ffc0c4cb595c0c9e4068c9af6ae
4,833
cpp
C++
MapleFreeRTOS1000_pp.cpp
mean00/MapleFreeRTOS1000
14e9a216b530efda6151b397c04e01c35ed020db
[ "MIT" ]
null
null
null
MapleFreeRTOS1000_pp.cpp
mean00/MapleFreeRTOS1000
14e9a216b530efda6151b397c04e01c35ed020db
[ "MIT" ]
1
2021-03-18T07:08:54.000Z
2021-03-18T14:17:40.000Z
MapleFreeRTOS1000_pp.cpp
mean00/MapleFreeRTOS1000
14e9a216b530efda6151b397c04e01c35ed020db
[ "MIT" ]
null
null
null
/* Thin wrapper on top of FreeRTOS to be more C++ friendly */ #include "MapleFreeRTOS1000_pp.h" #define fos_ms2tick(ms) (((ms)+portTICK_PERIOD_MS-1)/portTICK_PERIOD_MS) extern "C" void do_assert(const char *a) { __asm__ ("bkpt 1"); while(1) { }; } #define xAssert(a) if(!(a)) {...
16.957895
91
0.596317
mean00
359bf7e9b9fef685cda4d1bfd1a65d1aeb0624ab
2,534
cpp
C++
examples/i2c_slave/main.cpp
tufty/stm32tl
3f5ef1ca29695236ab9f5d964a1b4be7afc00c8f
[ "MIT" ]
10
2017-04-16T20:54:40.000Z
2022-03-13T13:28:32.000Z
examples/i2c_slave/main.cpp
tufty/stm32tl
3f5ef1ca29695236ab9f5d964a1b4be7afc00c8f
[ "MIT" ]
1
2018-10-04T21:06:37.000Z
2020-01-13T15:22:58.000Z
examples/i2c_slave/main.cpp
tufty/stm32tl
3f5ef1ca29695236ab9f5d964a1b4be7afc00c8f
[ "MIT" ]
4
2019-10-30T07:35:22.000Z
2021-07-23T01:24:27.000Z
#include <clocks.h> #include <tasks.h> #include <gpio.h> #include <i2c.h> #include <usb/usb.h> #include <drivers/cp2102.h> #include <drivers/ringbuffer.h> #ifdef STM32F0xx typedef PLL_T<HSI_RC, 48000000> PLL; #else typedef HSE_OSC_T<> HSE; typedef PLL_T<HSE, 72000000> PLL; #endif typedef SYSCLK_T<PLL> SYSCLK; typedef ...
21.474576
89
0.719021
tufty
359d7146c85c510c647e93cf1cd0526780fd820f
4,113
cpp
C++
mesk-installer/Pages/configurationPage.cpp
aaly/Mesk-Installer
a3e07318c9bb08d02a7adfdda380eee5c829bab2
[ "BSD-3-Clause" ]
2
2019-01-12T06:20:38.000Z
2019-02-05T06:20:58.000Z
mesk-installer/Pages/configurationPage.cpp
aaly/Mesk-Installer
a3e07318c9bb08d02a7adfdda380eee5c829bab2
[ "BSD-3-Clause" ]
null
null
null
mesk-installer/Pages/configurationPage.cpp
aaly/Mesk-Installer
a3e07318c9bb08d02a7adfdda380eee5c829bab2
[ "BSD-3-Clause" ]
null
null
null
/****************************************************** * copyright 2011, 2012, 2013 AbdAllah Aly Saad , aaly90[@]gmail.com * Part of Mesklinux Installer * See LICENSE file for more info ******************************************************/ /* DIALOG $DEFAULT --menu "Configuration" 17 80 10 \ "/etc/host...
25.546584
105
0.617311
aaly
359d986efe40be5d37ed3c9c290c09fef9632714
4,204
cpp
C++
Game/src/game/PelletManager.cpp
franticsoftware/starports
d723404b20383949874868c251c60cfa06120fde
[ "MIT" ]
5
2016-11-13T08:13:57.000Z
2019-03-31T10:22:38.000Z
Game/src/game/PelletManager.cpp
franticsoftware/starports
d723404b20383949874868c251c60cfa06120fde
[ "MIT" ]
null
null
null
Game/src/game/PelletManager.cpp
franticsoftware/starports
d723404b20383949874868c251c60cfa06120fde
[ "MIT" ]
1
2016-12-23T11:25:35.000Z
2016-12-23T11:25:35.000Z
/* Amine Rehioui Created: May 1st 2013 */ #include "Game.h" #include "PelletManager.h" #include "MaterialProvider.h" #include "AIManager.h" #include "GraphicExtensionHandler.h" namespace shoot { DEFINE_OBJECT(PelletManager); //! Constructor PelletManager::PelletManager() : m_fMinCos(0.0f) // properties...
30.686131
122
0.71099
franticsoftware
359e67b835e6caf138b5d57de4836d5b511ee80a
2,777
cpp
C++
fileio_win.cpp
yyjdelete/Leanify
23956525c6d94689a6e6d25f3d55adba22e1e5c5
[ "MIT" ]
null
null
null
fileio_win.cpp
yyjdelete/Leanify
23956525c6d94689a6e6d25f3d55adba22e1e5c5
[ "MIT" ]
null
null
null
fileio_win.cpp
yyjdelete/Leanify
23956525c6d94689a6e6d25f3d55adba22e1e5c5
[ "MIT" ]
null
null
null
#include "fileio.h" #include <cstdio> #include <iostream> using std::cerr; using std::endl; // traverse directory and call Callback() for each file void TraverseDirectory(const wchar_t Dir[], int Callback(const wchar_t file_path[])) { WIN32_FIND_DATA FindFileData; wchar_t DirSpec[MAX_PATH]; // DWORD dwError; ...
26.447619
108
0.666187
yyjdelete
35a96d209514a5b9ed923b5cee62329c1329ff76
1,135
cpp
C++
Sources/editor/editor/private/editor/windows/assets/EffectEditor.cpp
Zino2201/ZinoEngine
519d34a1d2b09412c8e2cba6b685b4556ec2c2ac
[ "MIT" ]
20
2019-12-22T20:40:22.000Z
2021-07-06T00:23:45.000Z
Sources/editor/editor/private/editor/windows/assets/EffectEditor.cpp
Zino2201/ZinoEngine
519d34a1d2b09412c8e2cba6b685b4556ec2c2ac
[ "MIT" ]
32
2020-07-11T15:51:13.000Z
2021-06-07T10:25:07.000Z
Sources/editor/editor/private/editor/windows/assets/EffectEditor.cpp
Zino2201/ZinoEngine
519d34a1d2b09412c8e2cba6b685b4556ec2c2ac
[ "MIT" ]
3
2019-12-19T17:04:04.000Z
2021-05-17T01:49:59.000Z
#include "editor/windows/assets/EffectEditor.h" #include "engine/assets/Effect.h" #include "misc/cpp/imgui_stdlib.h" namespace ze::editor { EffectEditor::EffectEditor(Effect* in_effect, const assetmanager::AssetRequestPtr& in_request_handle) : AssetEditor(in_effect, in_request_handle, in_effect->get_path().stem()....
24.673913
101
0.736564
Zino2201
35aa6f27fd40556a78a657c2eb316d3f5e837a05
3,167
cpp
C++
src/fake/fake_tensorrt.cpp
lengyuner/hyperpose4fly
c9866bce1a0109e1b9c727ca550b5a380eb3ee17
[ "Apache-2.0" ]
null
null
null
src/fake/fake_tensorrt.cpp
lengyuner/hyperpose4fly
c9866bce1a0109e1b9c727ca550b5a380eb3ee17
[ "Apache-2.0" ]
null
null
null
src/fake/fake_tensorrt.cpp
lengyuner/hyperpose4fly
c9866bce1a0109e1b9c727ca550b5a380eb3ee17
[ "Apache-2.0" ]
null
null
null
#include <hyperpose/operator/dnn/tensorrt.hpp> #include <hyperpose/utility/data.hpp> #include "../logging.hpp" #include "../trace.hpp" #include "fake.hpp" #include <algorithm> namespace hyperpose { namespace dnn { template <typename T> struct engine_deleter { void operator()(T* ptr) { ptr->destroy();...
28.276786
101
0.628355
lengyuner
35adc851894b81fd795b6deef405cf23f3a5dbc6
442
hpp
C++
include/nbdl/concept/UpstreamMessage.hpp
ricejasonf/nbdl
ae63717c96ab2c36107bc17b2b00115f96e9d649
[ "BSL-1.0" ]
47
2016-06-20T01:41:24.000Z
2021-11-16T10:53:27.000Z
include/nbdl/concept/UpstreamMessage.hpp
ricejasonf/nbdl
ae63717c96ab2c36107bc17b2b00115f96e9d649
[ "BSL-1.0" ]
21
2015-11-12T23:05:47.000Z
2019-07-17T19:01:40.000Z
include/nbdl/concept/UpstreamMessage.hpp
ricejasonf/nbdl
ae63717c96ab2c36107bc17b2b00115f96e9d649
[ "BSL-1.0" ]
6
2015-11-12T21:23:29.000Z
2019-05-09T17:54:25.000Z
// // Copyright Jason Rice 2016 // 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 NBDL_CONCEPT_UPSTREAM_MESSAGE_HPP #define NBDL_CONCEPT_UPSTREAM_MESSAGE_HPP #include <nbdl/message.hpp> #include <utili...
22.1
66
0.766968
ricejasonf
35b8d03f3243ea70aaed4d597946e02b1461ffb7
1,147
hpp
C++
hodea/core/scoped_enum.hpp
hodea/hodea-core-slib
d5a05443da12a95a02450209eb4fa117a000e871
[ "MIT" ]
null
null
null
hodea/core/scoped_enum.hpp
hodea/hodea-core-slib
d5a05443da12a95a02450209eb4fa117a000e871
[ "MIT" ]
3
2018-01-24T11:40:59.000Z
2018-03-09T08:43:57.000Z
hodea/core/scoped_enum.hpp
hodea/hodea-lib
d5a05443da12a95a02450209eb4fa117a000e871
[ "MIT" ]
null
null
null
// Copyright (c) 2017, Franz Hollerer. // SPDX-License-Identifier: MIT /** * Utilities to make use of scoped enums more convenient. * * \author f.hollerer@hodea.org */ #if !defined HODEA_SCOPED_ENUM_OR_OPERATOR_HPP #define HODEA_SCOPED_ENUM_OR_OPERATOR_HPP #include <type_traits> /** * Cast enum to its underlyin...
28.675
73
0.591979
hodea
35c534f38e95d576ba44fb18175aceb70a26522e
6,705
cpp
C++
ElementEngine/enginelib/src/LogicalDevice.cpp
lbondi7/Element-2.0
ecba7a5f4402167643984d15b7a1b3bcff951907
[ "MIT" ]
null
null
null
ElementEngine/enginelib/src/LogicalDevice.cpp
lbondi7/Element-2.0
ecba7a5f4402167643984d15b7a1b3bcff951907
[ "MIT" ]
null
null
null
ElementEngine/enginelib/src/LogicalDevice.cpp
lbondi7/Element-2.0
ecba7a5f4402167643984d15b7a1b3bcff951907
[ "MIT" ]
null
null
null
#include "LogicalDevice.h" #include "VkFunctions.h" #include <set> #include <stdexcept> Element::LogicalDevice::LogicalDevice(PhysicalDevice* _physicalDevice, VkSurfaceKHR surface) : physicalDevice(_physicalDevice) { CreateLogicalDevice(surface); //queueFamily = Element::VkFunctions::findQueueFamilies(physicalD...
35.289474
159
0.730201
lbondi7
35cc197a066691e85cd3de197db4c7e5b56d8811
15,543
cpp
C++
src/pscs/src_gen/PSCS/Semantics/Actions/impl/CS_SendSignalActionActivationImpl.cpp
MDE4CPP/MDE4CPP
9db9352dd3b1ae26a5f640e614ed3925499b93f1
[ "MIT" ]
12
2017-02-17T10:33:51.000Z
2022-03-01T02:48:10.000Z
src/pscs/src_gen/PSCS/Semantics/Actions/impl/CS_SendSignalActionActivationImpl.cpp
ndongmo/MDE4CPP
9db9352dd3b1ae26a5f640e614ed3925499b93f1
[ "MIT" ]
28
2017-10-17T20:23:52.000Z
2021-03-04T16:07:13.000Z
src/pscs/src_gen/PSCS/Semantics/Actions/impl/CS_SendSignalActionActivationImpl.cpp
ndongmo/MDE4CPP
9db9352dd3b1ae26a5f640e614ed3925499b93f1
[ "MIT" ]
22
2017-03-24T19:03:58.000Z
2022-03-31T12:10:07.000Z
#include "PSCS/Semantics/Actions/impl/CS_SendSignalActionActivationImpl.hpp" #ifdef NDEBUG #define DEBUG_MESSAGE(a) /**/ #else #define DEBUG_MESSAGE(a) a #endif #ifdef ACTIVITY_DEBUG_ON #define ACT_DEBUG(a) a #else #define ACT_DEBUG(a) /**/ #endif //#include "util/ProfileCallCount.hpp" #include <cassert> ...
39.449239
258
0.740591
MDE4CPP
35d321c4e8c654aea54cfcc40662a773bd883dec
1,326
cpp
C++
cpp/cpp/581. Shortest Unsorted Continuous Subarray.cpp
longwangjhu/LeetCode
a5c33e8d67e67aedcd439953d96ac7f443e2817b
[ "MIT" ]
3
2021-08-07T07:01:34.000Z
2021-08-07T07:03:02.000Z
cpp/cpp/581. Shortest Unsorted Continuous Subarray.cpp
longwangjhu/LeetCode
a5c33e8d67e67aedcd439953d96ac7f443e2817b
[ "MIT" ]
null
null
null
cpp/cpp/581. Shortest Unsorted Continuous Subarray.cpp
longwangjhu/LeetCode
a5c33e8d67e67aedcd439953d96ac7f443e2817b
[ "MIT" ]
null
null
null
// https://leetcode.com/problems/shortest-unsorted-continuous-subarray/ // Given an integer array nums, you need to find one continuous subarray that if // you only sort this subarray in ascending order, then the whole array will be // sorted in ascending order. // Return the shortest such subarray and output its len...
34
80
0.512066
longwangjhu
35d51043aee5f486fc068aa7711a895ac84ad1ed
244
cpp
C++
src/components/DeathSentence.cpp
TransNeptunianStudios/Triangulum
7fa5e1948f1085e8d7122dd57ddd7f2efeb2739e
[ "MIT" ]
32
2015-02-09T11:30:51.000Z
2022-02-02T11:29:49.000Z
src/components/DeathSentence.cpp
TransNeptunianStudios/Triangulum
7fa5e1948f1085e8d7122dd57ddd7f2efeb2739e
[ "MIT" ]
null
null
null
src/components/DeathSentence.cpp
TransNeptunianStudios/Triangulum
7fa5e1948f1085e8d7122dd57ddd7f2efeb2739e
[ "MIT" ]
7
2016-04-16T11:02:12.000Z
2020-04-10T04:52:45.000Z
#include "components/DeathSentence.h" DeathSentence::DeathSentence() : timeToExecution(0.0) , haveBeenPrepared(false) { } DeathSentence::DeathSentence(double _timeToExecution) : timeToExecution(_timeToExecution) , haveBeenPrepared(false) { }
17.428571
53
0.79918
TransNeptunianStudios
35db6964f52dbe84804535a912dffeffa15c19b2
538
cc
C++
cses/1674.cc
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
506
2018-08-22T10:30:38.000Z
2022-03-31T10:01:49.000Z
cses/1674.cc
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
13
2019-08-07T18:31:18.000Z
2020-12-15T21:54:41.000Z
cses/1674.cc
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
234
2018-08-06T17:11:41.000Z
2022-03-26T10:56:42.000Z
// https://cses.fi/problemset/task/1674/ #include <bits/stdc++.h> using namespace std; using vi = vector<int>; using vvi = vector<vi>; int n; vi c; vvi g; void dfs(int u) { c[u]++; for (int v : g[u]) { if (!c[v]) dfs(v); c[u] += c[v]; } } int main() { int x; cin >> n; c = vi(n); g = vvi(...
14.540541
40
0.431227
Ashindustry007
35e46963611cb3f9c8c12559f8142ca387204ce7
645
hpp
C++
include/IceEnginePathfindingAgentMotionChangeListener.hpp
icebreakersentertainment/ice_engine
52a8313bc266c053366bdf554b5dc27a54ddcb25
[ "MIT" ]
null
null
null
include/IceEnginePathfindingAgentMotionChangeListener.hpp
icebreakersentertainment/ice_engine
52a8313bc266c053366bdf554b5dc27a54ddcb25
[ "MIT" ]
null
null
null
include/IceEnginePathfindingAgentMotionChangeListener.hpp
icebreakersentertainment/ice_engine
52a8313bc266c053366bdf554b5dc27a54ddcb25
[ "MIT" ]
1
2019-06-11T03:41:48.000Z
2019-06-11T03:41:48.000Z
#ifndef ICEENGINEPATHFINDINGAGENTMOTIONCHANGELISTENER_H_ #define ICEENGINEPATHFINDINGAGENTMOTIONCHANGELISTENER_H_ #include "pathfinding/IAgentMotionChangeListener.hpp" #include "Scene.hpp" namespace ice_engine { class IceEnginePathfindingAgentMotionChangeListener : public pathfinding::IAgentMotionChangeListener { p...
23.888889
100
0.84031
icebreakersentertainment
35e5b5f90342b82416f5b4c6a00ef41e1f398443
1,006
cpp
C++
Crowny/Source/Crowny/Scripting/Bindings/Utils/ScriptLayerMask.cpp
bojosos/Nworc
a59cb18412a45a101f877caedf6ed0025a9e44a9
[ "MIT" ]
null
null
null
Crowny/Source/Crowny/Scripting/Bindings/Utils/ScriptLayerMask.cpp
bojosos/Nworc
a59cb18412a45a101f877caedf6ed0025a9e44a9
[ "MIT" ]
null
null
null
Crowny/Source/Crowny/Scripting/Bindings/Utils/ScriptLayerMask.cpp
bojosos/Nworc
a59cb18412a45a101f877caedf6ed0025a9e44a9
[ "MIT" ]
null
null
null
#include "cwpch.h" #include "Crowny/Scripting/Bindings/Utils/ScriptLayerMask.h" #include "Crowny/Physics/Physics2D.h" namespace Crowny { ScriptLayerMask::ScriptLayerMask() : ScriptObject() {} void ScriptLayerMask::InitRuntimeData() { MetaData.ScriptClass->AddInternalCall("Internal_LayerToName",...
27.944444
100
0.647117
bojosos
e3028fe1fd043e55aee83d69787cfdcac37961d8
7,950
hpp
C++
snark-logic/libs-source/multiprecision/include/nil/crypto3/multiprecision/cpp_int/cpp_int_config.hpp
idealatom/podlodkin-freeton-year-control
6aa96e855fe065c9a75c76da976a87fe2d1668e6
[ "MIT" ]
null
null
null
snark-logic/libs-source/multiprecision/include/nil/crypto3/multiprecision/cpp_int/cpp_int_config.hpp
idealatom/podlodkin-freeton-year-control
6aa96e855fe065c9a75c76da976a87fe2d1668e6
[ "MIT" ]
null
null
null
snark-logic/libs-source/multiprecision/include/nil/crypto3/multiprecision/cpp_int/cpp_int_config.hpp
idealatom/podlodkin-freeton-year-control
6aa96e855fe065c9a75c76da976a87fe2d1668e6
[ "MIT" ]
1
2021-09-15T20:27:27.000Z
2021-09-15T20:27:27.000Z
/////////////////////////////////////////////////////////////// // Copyright 2012 John Maddock. 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 #ifndef BOOST_MP_CPP_INT_CORE_HPP #define BOOST_MP_CPP_INT_CORE_HPP...
45.170455
115
0.507673
idealatom
e302eaa021ca20e03329b998fdd72971975924dd
20,282
cc
C++
server/modules/filter/hintfilter/hintparser.cc
tut-blog/MaxScale
cabd6dba0665cb8025c694acf98cffaa68d10de0
[ "MIT" ]
null
null
null
server/modules/filter/hintfilter/hintparser.cc
tut-blog/MaxScale
cabd6dba0665cb8025c694acf98cffaa68d10de0
[ "MIT" ]
null
null
null
server/modules/filter/hintfilter/hintparser.cc
tut-blog/MaxScale
cabd6dba0665cb8025c694acf98cffaa68d10de0
[ "MIT" ]
null
null
null
/* * Copyright (c) 2016 MariaDB Corporation Ab * * Use of this software is governed by the Business Source License included * in the LICENSE.TXT file and at www.mariadb.com/bsl11. * * Change Date: 2022-01-01 * * On the date above, in accordance with the Business Source License, use * of this software will be g...
25.13259
86
0.453013
tut-blog
e30990f18d6e497b11246684d0ed0be8b2d33262
858
hpp
C++
src/error.hpp
hao-lei/spice-streaming-agent
f65cb5a84bb0fafec38cf738177a9f999211fdaf
[ "Apache-2.0" ]
null
null
null
src/error.hpp
hao-lei/spice-streaming-agent
f65cb5a84bb0fafec38cf738177a9f999211fdaf
[ "Apache-2.0" ]
null
null
null
src/error.hpp
hao-lei/spice-streaming-agent
f65cb5a84bb0fafec38cf738177a9f999211fdaf
[ "Apache-2.0" ]
null
null
null
/* The errors module. * * \copyright * Copyright 2018 Red Hat Inc. All rights reserved. */ #ifndef SPICE_STREAMING_AGENT_ERROR_HPP #define SPICE_STREAMING_AGENT_ERROR_HPP #include <stdexcept> #include <string> #include <syslog.h> namespace spice { namespace streaming_agent { class Error : public std::runtime_e...
15.888889
51
0.713287
hao-lei
e30b8e63a67751f1e21aecd6b35518b733697b87
583
cpp
C++
src/question_2/question2.cpp
juliaholland/acc-cosc-1337-midterm-juliaholland
a6d09518393fd8ee9e88c1a4ae3d468e2bd291c3
[ "MIT" ]
null
null
null
src/question_2/question2.cpp
juliaholland/acc-cosc-1337-midterm-juliaholland
a6d09518393fd8ee9e88c1a4ae3d468e2bd291c3
[ "MIT" ]
null
null
null
src/question_2/question2.cpp
juliaholland/acc-cosc-1337-midterm-juliaholland
a6d09518393fd8ee9e88c1a4ae3d468e2bd291c3
[ "MIT" ]
null
null
null
#include "question2.h" bool test_config() { return true; } string get_rna_from_dna(const string& dna) { string rna; for(std::size_t i = 0; i < dna.size(); i++) { switch (dna[i]) { case 'T': rna+="U"; break; case 'A': rna+="A"; ...
16.657143
47
0.361921
juliaholland
e31966e2993e1c8c23f8d80f2a62979c9169212a
20,013
cpp
C++
Underlight/cParty.cpp
christyganger/ULClient
bc008ab3042ff9b74d47cdda47ce2318311a51db
[ "BSD-3-Clause" ]
5
2018-08-17T17:17:01.000Z
2020-11-14T05:41:31.000Z
Underlight/cParty.cpp
christyganger/ULClient
bc008ab3042ff9b74d47cdda47ce2318311a51db
[ "BSD-3-Clause" ]
16
2018-08-16T15:37:04.000Z
2019-12-24T19:09:19.000Z
Underlight/cParty.cpp
christyganger/ULClient
bc008ab3042ff9b74d47cdda47ce2318311a51db
[ "BSD-3-Clause" ]
5
2018-08-16T15:34:41.000Z
2019-03-04T04:06:11.000Z
// The Party Class // Copyright Lyra LLC, 1996. All rights reserved. #define STRICT #include "cDDraw.h" #include "4dx.h" // for actor box lookup #include "resource.h" #include "Dialogs.h" #include "cGameServer.h" #include "cChat.h" #include "cNeighbor.h" #include "cLevel.h" #include "cPlayer.h" #include "Interface....
26.367589
113
0.697896
christyganger
e32266c1c2d570aa22012842f68e9bfbae463c7e
4,278
cpp
C++
InstrumentFramework/CallTraceInstrPass.cpp
zhangysh1995/llvm-pass
814529e2da40958492f171de4fde8b03f8d60894
[ "MIT" ]
2
2019-10-25T17:14:31.000Z
2020-03-13T13:05:24.000Z
InstrumentFramework/CallTraceInstrPass.cpp
zhangysh1995/llvm-pass
814529e2da40958492f171de4fde8b03f8d60894
[ "MIT" ]
null
null
null
InstrumentFramework/CallTraceInstrPass.cpp
zhangysh1995/llvm-pass
814529e2da40958492f171de4fde8b03f8d60894
[ "MIT" ]
null
null
null
// // Created by zhangysh1995 on 1/25/19. // #include "llvm/Support/raw_ostream.h" #include "llvm/IR/IRBuilder.h" #include "llvm/IR/LegacyPassManager.h" #include "llvm/Transforms/IPO/PassManagerBuilder.h" #include "llvm/Pass.h" #include "llvm/Analysis/CallGraph.h" #include "llvm/IR/InstIterator.h" #include "llvm/IR/Ca...
31.226277
99
0.564282
zhangysh1995
e322d810cccfdac37682cfc9d8ca4554e0b325c1
2,566
cpp
C++
tests/posit/api/ulp.cpp
FloEdelmann/universal
c5b83f251ad91229399b7f97e4eeefcf718819d4
[ "MIT" ]
254
2017-05-24T16:51:57.000Z
2022-03-22T13:07:29.000Z
tests/posit/api/ulp.cpp
jamesquinlan/universal
3b7e6bf37cbb9123425b634d18af18a409c2eccc
[ "MIT" ]
101
2017-11-09T22:57:24.000Z
2022-03-17T12:44:59.000Z
tests/posit/api/ulp.cpp
jamesquinlan/universal
3b7e6bf37cbb9123425b634d18af18a409c2eccc
[ "MIT" ]
55
2017-06-09T10:04:38.000Z
2022-02-01T16:54:56.000Z
// ulp.cpp: testing ulp values and algebra for posit configurations // // Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. #include <universal/utility/directives.hpp> // Configure the posit template envi...
25.919192
106
0.686672
FloEdelmann
e324548aafba46e72a76b4c3884a431df7a183e3
258
cpp
C++
cpp/cpp_primer/chapter10/ex_10_01.cpp
KaiserLancelot/Cpp-Primer
a4791a6765f0b6c864e8881e6a5328e2a3d68974
[ "MIT" ]
2
2019-12-21T00:53:47.000Z
2020-01-01T10:36:30.000Z
cpp/cpp_primer/chapter10/ex_10_01.cpp
KaiserLancelot/Cpp-Primer
a4791a6765f0b6c864e8881e6a5328e2a3d68974
[ "MIT" ]
null
null
null
cpp/cpp_primer/chapter10/ex_10_01.cpp
KaiserLancelot/Cpp-Primer
a4791a6765f0b6c864e8881e6a5328e2a3d68974
[ "MIT" ]
null
null
null
// // Created by kaiser on 18-12-17. // #include <algorithm> #include <cstdint> #include <iostream> #include <vector> int main() { std::vector<std::int32_t> vi{1, 2, 3, 3, 4, 4, 5}; std::cout << std::count(std::cbegin(vi), std::cend(vi), 3) << '\n'; }
18.428571
69
0.593023
KaiserLancelot
e324cdccf4a010ba56eac47e677da40eb6866bff
3,524
cpp
C++
sem19-multiplexing/select_fail.cpp
yuri-pechatnov/caos_2019-2020
692b4245955bc8158fb90138d44526d6fae8444e
[ "MIT" ]
32
2019-10-04T20:02:32.000Z
2020-07-21T17:18:06.000Z
sem19-multiplexing/select_fail.cpp
yuri-pechatnov/caos_2019-2020
692b4245955bc8158fb90138d44526d6fae8444e
[ "MIT" ]
2
2020-04-05T12:52:13.000Z
2020-05-04T23:42:02.000Z
sem19-multiplexing/select_fail.cpp
yuri-pechatnov/caos
616fe20bfc101f5653c6ef162c988503b1842a75
[ "MIT" ]
10
2020-09-03T17:25:42.000Z
2022-02-18T23:36:51.000Z
// %%cpp select_fail.cpp // %run gcc select_fail.cpp -o select_fail.exe // %run ulimit -n 1200 && ./select_fail.exe // %run gcc -DBIG_FD select_fail.cpp -o select_fail.exe // %run ulimit -n 1200 && ./select_fail.exe #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <assert.h> #include <fcntl.h> #incl...
35.59596
218
0.608116
yuri-pechatnov
e32974ca1547f091aea9f88b94776ed62324fa8b
12,680
cpp
C++
installation/installation_scripts/mvs-stereo-code-samples/lib/las_io.cpp
sebasmurphy/iarpa
aca39cc5390a153a9779a636ab2523e65cb6d3b0
[ "MIT" ]
20
2017-02-01T14:54:57.000Z
2022-01-25T06:34:35.000Z
installation/installation_scripts/mvs-stereo-code-samples/lib/las_io.cpp
sebasmurphy/iarpa
aca39cc5390a153a9779a636ab2523e65cb6d3b0
[ "MIT" ]
3
2020-04-21T12:11:26.000Z
2021-01-10T07:00:51.000Z
installation/installation_scripts/mvs-stereo-code-samples/lib/las_io.cpp
sebasmurphy/iarpa
aca39cc5390a153a9779a636ab2523e65cb6d3b0
[ "MIT" ]
10
2017-12-18T18:45:25.000Z
2021-11-22T02:43:03.000Z
// NOTICES // // Copyright (c) 2015 The Johns Hopkins University/ // Applied Physics Laboratory. (JHU/APL) // // This material was developed by JHU/APL under U.S. Government contract. // The U.S. Government has Unlimited Rights in this material per // DFARS 252.227-7013/7014, as appropriate. // // For any other permiss...
30.851582
134
0.636672
sebasmurphy
e32bc4d284e4086da755e2949edf625bc9ea3d64
5,129
cpp
C++
src/protocol/packet/payloads/MessagePayload.cpp
myxor/ceema
e0a9f299fd488da38a9a1492502017995d59e183
[ "Apache-2.0" ]
19
2018-08-31T12:52:13.000Z
2021-08-11T18:05:42.000Z
src/protocol/packet/payloads/MessagePayload.cpp
myxor/ceema
e0a9f299fd488da38a9a1492502017995d59e183
[ "Apache-2.0" ]
4
2019-02-01T09:12:56.000Z
2022-01-14T21:36:17.000Z
src/protocol/packet/payloads/MessagePayload.cpp
myxor/ceema
e0a9f299fd488da38a9a1492502017995d59e183
[ "Apache-2.0" ]
5
2021-03-28T18:06:21.000Z
2022-01-13T17:46:12.000Z
/** * Copyright 2017 Harold Bruintjes * * 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 agre...
49.317308
129
0.673231
myxor
e34302ac2c14d0640b38f108463bbc487912ed02
5,127
cpp
C++
src/base58.cpp
yinchengtsinghua/BitCoinCppChinese
76f64ad8cee5b6c5671b3629f39e7ae4ef84be0a
[ "MIT" ]
13
2019-01-23T04:36:05.000Z
2022-02-21T11:20:25.000Z
src/base58.cpp
yinchengtsinghua/BitCoinCppChinese
76f64ad8cee5b6c5671b3629f39e7ae4ef84be0a
[ "MIT" ]
null
null
null
src/base58.cpp
yinchengtsinghua/BitCoinCppChinese
76f64ad8cee5b6c5671b3629f39e7ae4ef84be0a
[ "MIT" ]
3
2019-01-24T07:48:15.000Z
2021-06-11T13:34:44.000Z
//此源码被清华学神尹成大魔王专业翻译分析并修改 //尹成QQ77025077 //尹成微信18510341407 //尹成所在QQ群721929980 //尹成邮箱 yinc13@mails.tsinghua.edu.cn //尹成毕业于清华大学,微软区块链领域全球最有价值专家 //https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 //版权所有(c)2014-2018比特币核心开发商 //根据MIT软件许可证分发,请参见随附的 //文件复制或http://www.opensource.org/licenses/mit-license.php。 #include <bas...
29.80814
141
0.548274
yinchengtsinghua
e343075f2c554165b7ad5b51cd359be97424f09f
9,743
cpp
C++
src/conf.cpp
ikonopistsev/capstomp
af5b04d59b43008bb093aaa7323623a79b61e6c8
[ "Apache-2.0" ]
1
2020-12-23T07:58:52.000Z
2020-12-23T07:58:52.000Z
src/conf.cpp
ikonopistsev/capstomp
af5b04d59b43008bb093aaa7323623a79b61e6c8
[ "Apache-2.0" ]
1
2021-11-27T07:57:32.000Z
2021-11-27T07:57:32.000Z
src/conf.cpp
ikonopistsev/capstomp
af5b04d59b43008bb093aaa7323623a79b61e6c8
[ "Apache-2.0" ]
null
null
null
#include "conf.hpp" #include "journal.hpp" #include <string> #include <algorithm> #include "mysql.hpp" #include <string.h> namespace capst { using namespace std::literals; void conf::set_timeout(std::size_t value) noexcept { value = std::max(value, timeout_min); value = std::min(value, timeout_max); cap...
23.821516
79
0.594889
ikonopistsev
e344c16ca0e4264a5ccc19678e91001099e698b9
322
cpp
C++
Modbus Poll/CVcCategoryScale.cpp
DHSERVICE56/T3000_Building_Automation_System
77bd47a356211b1c8ad09fb8d785e9f880d3cd26
[ "MIT" ]
1
2019-12-11T05:14:08.000Z
2019-12-11T05:14:08.000Z
Modbus Poll/CVcCategoryScale.cpp
DHSERVICE56/T3000_Building_Automation_System
77bd47a356211b1c8ad09fb8d785e9f880d3cd26
[ "MIT" ]
null
null
null
Modbus Poll/CVcCategoryScale.cpp
DHSERVICE56/T3000_Building_Automation_System
77bd47a356211b1c8ad09fb8d785e9f880d3cd26
[ "MIT" ]
1
2021-05-31T18:56:31.000Z
2021-05-31T18:56:31.000Z
// CVcCategoryScale.cpp : Definition of ActiveX Control wrapper class(es) created by Microsoft Visual C++ #include "stdafx.h" #include "CVcCategoryScale.h" ///////////////////////////////////////////////////////////////////////////// // CVcCategoryScale // CVcCategoryScale properties // CVcCategoryScale operation...
24.769231
106
0.590062
DHSERVICE56
e344fbb6d459346a2a119a1e8030905bfdac5341
1,242
cpp
C++
line.cpp
henry9836/PaintTool
bb7274a4211f51a9d773bd574fd72736f78aa85d
[ "MIT" ]
1
2020-11-09T06:06:18.000Z
2020-11-09T06:06:18.000Z
line.cpp
BerkM125/PaintTool
bb7274a4211f51a9d773bd574fd72736f78aa85d
[ "MIT" ]
null
null
null
line.cpp
BerkM125/PaintTool
bb7274a4211f51a9d773bd574fd72736f78aa85d
[ "MIT" ]
1
2019-04-09T19:12:57.000Z
2019-04-09T19:12:57.000Z
/************************************************************* Bachelor of Software Engineering Media Design School Auckland New Zealand (c) 2018 Media Design School File Name : line.cpp Description : Draws Lines Author : Henry Oliver Mail : henry.oliver@mediadesign.school.nz *******...
21.789474
111
0.607085
henry9836
e3493ec19c8c52ee369f2ab71638da32b4ad9fd9
824
cpp
C++
tests/uri_encode.cpp
tobq/cpp20-internet-client
6bbaccbba8f0f755594ace7bc8fe8d3be03a8f8a
[ "MIT" ]
29
2020-08-19T22:29:22.000Z
2022-03-17T20:05:09.000Z
tests/uri_encode.cpp
avocadoboi/cpp20_http
74ba9f834178419c68c0fd994c8b4734a7f22542
[ "MIT" ]
null
null
null
tests/uri_encode.cpp
avocadoboi/cpp20_http
74ba9f834178419c68c0fd994c8b4734a7f22542
[ "MIT" ]
8
2021-05-21T03:55:30.000Z
2022-03-01T10:47:28.000Z
#include "testing_header.hpp" TEST_CASE("uri_encode #1") { REQUIRE(utils::uri_encode("https://ja.wikipedia.org/wiki/パーセントエンコーディング"sv) == "https://ja.wikipedia.org/wiki/%e3%83%91%e3%83%bc%e3%82%bb%e3%83%b3%e3%83%88%e3%82%a8%e3%83%b3%e3%82%b3%e3" "%83%bc%e3%83%87%e3%82%a3%e3%83%b3%e3%82%b0"); } TES...
37.454545
115
0.668689
tobq
e3512951fac041c5342beb8beb755d8262999e73
3,639
cpp
C++
Arena.cpp
HSHL/Boomberman
e30d7aebf547ecd69693edef8a29eefd324f169b
[ "MIT" ]
null
null
null
Arena.cpp
HSHL/Boomberman
e30d7aebf547ecd69693edef8a29eefd324f169b
[ "MIT" ]
null
null
null
Arena.cpp
HSHL/Boomberman
e30d7aebf547ecd69693edef8a29eefd324f169b
[ "MIT" ]
null
null
null
// Author: R. Schiffers #include "Arena.h" Arena::Arena (int blockSize, int X, int Y) { this->blockSize = blockSize; this->X = X; this->Y = Y; setGame (); } Arena::~Arena () { stopAI (); stopBombs (); delete this; } void Arena::setGame () { setBlocks (); player_1 = new ...
22.325153
84
0.459742
HSHL
e3566510bee7930c42827d5bbf82f25f9cdd7df4
1,023
hpp
C++
components/core/src/streaming_archive/reader/Message.hpp
kirkrodrigues/clp
bb81eec43da218a5fa3f3a367e0a24c144bdf0c8
[ "Apache-2.0" ]
28
2021-07-18T02:21:14.000Z
2021-09-30T22:46:24.000Z
components/core/src/streaming_archive/reader/Message.hpp
kirkrodrigues/clp
bb81eec43da218a5fa3f3a367e0a24c144bdf0c8
[ "Apache-2.0" ]
15
2021-10-12T03:55:07.000Z
2022-03-24T09:04:35.000Z
components/core/src/streaming_archive/reader/Message.hpp
kirkrodrigues/clp
bb81eec43da218a5fa3f3a367e0a24c144bdf0c8
[ "Apache-2.0" ]
11
2021-10-06T11:35:47.000Z
2022-03-20T11:40:49.000Z
#ifndef STREAMING_ARCHIVE_READER_MESSAGE_HPP #define STREAMING_ARCHIVE_READER_MESSAGE_HPP // C++ libraries #include <vector> // Project headers #include "../../Defs.h" namespace streaming_archive { namespace reader { class Message { public: // Methods size_t get_message_number () const; ...
26.921053
65
0.695015
kirkrodrigues
e36377b4f1f021930925440518b078f32790f500
686
cpp
C++
examples/sum/sum_example.cpp
RDCH106/cpplinq_examples
e8db461577ccfe94c5dc358dfbb0bb38f5c090e0
[ "MIT" ]
null
null
null
examples/sum/sum_example.cpp
RDCH106/cpplinq_examples
e8db461577ccfe94c5dc358dfbb0bb38f5c090e0
[ "MIT" ]
4
2018-04-04T10:41:19.000Z
2018-05-29T07:01:04.000Z
examples/sum/sum_example.cpp
RDCH106/cpplinq_examples
e8db461577ccfe94c5dc358dfbb0bb38f5c090e0
[ "MIT" ]
2
2018-04-04T07:16:07.000Z
2018-04-04T08:51:38.000Z
#include <iostream> #include <random> #include <chrono> #include <thread> #include "cpplinq.hpp" using namespace std; using namespace cpplinq; int nListLenght = 20; void SumExample() { cout << "Sum Example"; //Populate the list list<int> lstInteger; for (int i = 1; i < nListLenght; i++) lstInteger.push_back(r...
17.589744
49
0.61516
RDCH106
e363a36ca85a633a5427ffe2c31d081d10f10edc
4,283
hpp
C++
src/extern.hpp
eXpl0it3r/Schiffbruch
a5b6190978f14620e02ff6ed559dbc2e67956b8b
[ "CC-BY-4.0" ]
55
2015-01-14T11:34:13.000Z
2022-03-28T19:19:58.000Z
src/extern.hpp
eXpl0it3r/Schiffbruch
a5b6190978f14620e02ff6ed559dbc2e67956b8b
[ "CC-BY-4.0" ]
12
2017-06-16T22:15:39.000Z
2021-03-20T10:31:10.000Z
src/extern.hpp
eXpl0it3r/Schiffbruch
a5b6190978f14620e02ff6ed559dbc2e67956b8b
[ "CC-BY-4.0" ]
10
2017-08-28T10:01:23.000Z
2021-12-25T16:50:38.000Z
#pragma once #include "headers.hpp" #include "types.hpp" #include <SFML/Audio.hpp> #include <vector> extern int Spielzustand; // in welchem Zustand ist das Spiel? extern bool LAnimation; // Ist die Landschaftanimation angeschaltet? extern bool Gitter; // Gitternetz an/aus extern RECT ScapeGrenze; // Diese Koordinat...
46.053763
94
0.797572
eXpl0it3r
e374ba8570a2ff638d51216e0f256ae9b8728b20
4,402
cpp
C++
VSCleaner/VSCleaner/ResizeCtrl.cpp
SurrealSky/VSCleaner
74243bebf15748493a6fabff2fb33a46b946e43f
[ "MIT" ]
1
2022-02-11T03:49:47.000Z
2022-02-11T03:49:47.000Z
VSCleaner/VSCleaner/ResizeCtrl.cpp
SurrealSky/VSCleaner
74243bebf15748493a6fabff2fb33a46b946e43f
[ "MIT" ]
null
null
null
VSCleaner/VSCleaner/ResizeCtrl.cpp
SurrealSky/VSCleaner
74243bebf15748493a6fabff2fb33a46b946e43f
[ "MIT" ]
null
null
null
////////////////////////////////////////////////////////////////////////// // // File Name : ResizeCtrl.cpp // File Date : 2010-01-20 // Author : DannyLai(L.F.) // Blog : http://blog.csdn.net/laiboy // http://laiboy.cublog.cn // E-mail : laiboy80@21cn.com // Description : main...
28.038217
116
0.534303
SurrealSky
e3758ca25ab7196e97152b2a7d477b06caded6f3
302
cpp
C++
Segunda/Taller1.9.cpp
Jamzeroth/Programacion1
9a2270bcee5134be093f694bb37b46af75fd6619
[ "MIT" ]
null
null
null
Segunda/Taller1.9.cpp
Jamzeroth/Programacion1
9a2270bcee5134be093f694bb37b46af75fd6619
[ "MIT" ]
null
null
null
Segunda/Taller1.9.cpp
Jamzeroth/Programacion1
9a2270bcee5134be093f694bb37b46af75fd6619
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int primo(int num){ int i=2; for(i;i<num;i++) if(num%i==0) return 0; return 1; } int main(){ cout<<"Numeros primos entre 1 y 10000\n"; int i=1; for(i;i<=10000;i++) if(primo(i)) cout<<i<<"\t"; }
15.1
45
0.490066
Jamzeroth
e3776eb664227f953154df7b0badaac190e2c36e
1,046
cpp
C++
src/FE/Core.cpp
Oj18/Ethereal
16a0a167693c27615e5c63044f1c38b5c8d863b2
[ "BSD-3-Clause" ]
null
null
null
src/FE/Core.cpp
Oj18/Ethereal
16a0a167693c27615e5c63044f1c38b5c8d863b2
[ "BSD-3-Clause" ]
null
null
null
src/FE/Core.cpp
Oj18/Ethereal
16a0a167693c27615e5c63044f1c38b5c8d863b2
[ "BSD-3-Clause" ]
null
null
null
/* Copyright (c) 2019, Electrux All rights reserved. Using the BSD 3-Clause license for the project, main LICENSE file resides in project's root directory. Please read that file and understand the license terms before using or altering the project. */ #include <string> #include <cstdarg> #include "Core.hpp" vo...
29.885714
124
0.627151
Oj18
e379f0268f3785c326e32acca1374145c7250445
203
hpp
C++
OpenS4/Core/Types.hpp
MadShadow-/OpenS4
1b2f69d617406a2a49ed0511d93771d978b6bfc3
[ "MIT" ]
3
2020-08-05T19:54:08.000Z
2021-06-11T12:21:51.000Z
OpenS4/Core/Types.hpp
MadShadow-/OpenS4
1b2f69d617406a2a49ed0511d93771d978b6bfc3
[ "MIT" ]
null
null
null
OpenS4/Core/Types.hpp
MadShadow-/OpenS4
1b2f69d617406a2a49ed0511d93771d978b6bfc3
[ "MIT" ]
4
2020-07-20T13:25:13.000Z
2021-08-06T12:44:14.000Z
#pragma once #include <stdint.h> using s8 = int8_t; using s16 = int16_t; using s32 = int32_t; using s64 = int64_t; using u8 = uint8_t; using u16 = uint16_t; using u32 = uint32_t; using u64 = uint64_t;
15.615385
21
0.70936
MadShadow-
e37c6a61088416281fa9e64231793ec421e269ca
6,203
hh
C++
src/Dust/Evaluate/Context.hh
nathandavies91/dust-hh
8d9fd1920dea99e05b8cb93bc25599314a9633e8
[ "MIT" ]
1
2015-03-12T21:00:20.000Z
2015-03-12T21:00:20.000Z
src/Dust/Evaluate/Context.hh
nathandavies91/dust-hh
8d9fd1920dea99e05b8cb93bc25599314a9633e8
[ "MIT" ]
null
null
null
src/Dust/Evaluate/Context.hh
nathandavies91/dust-hh
8d9fd1920dea99e05b8cb93bc25599314a9633e8
[ "MIT" ]
null
null
null
<?hh // strict namespace Dust\Evaluate; use Dust\Ast\Identifier; class Context { /** * @var \Dust\Evaluate\Evaluator */ public Evaluator $evaluator; /** * @var \Dust\Evaluate\Context */ public Context $parent; /** * @var \Dust\Evaluate\State */ public State $head; /** * @var string */ publ...
24.615079
104
0.635821
nathandavies91
e3808c0e6cf8c3f0df63765bbefc832abe515886
1,107
cpp
C++
open-malware/Utils/Process.cpp
Fgroove/open-shamoon
f5650ec83ec3e1ab1a0fb094f78e90b9fae457bc
[ "Apache-2.0" ]
16
2017-04-21T11:43:14.000Z
2021-08-30T19:59:08.000Z
open-malware/Utils/Process.cpp
Fgroove/open-shamoon
f5650ec83ec3e1ab1a0fb094f78e90b9fae457bc
[ "Apache-2.0" ]
1
2019-12-16T19:49:05.000Z
2019-12-16T20:55:27.000Z
open-malware/Utils/Process.cpp
Fgroove/open-shamoon
f5650ec83ec3e1ab1a0fb094f78e90b9fae457bc
[ "Apache-2.0" ]
16
2017-01-29T07:35:12.000Z
2021-09-09T12:35:20.000Z
// Copyright 2015 Christian Roggia. All rights reserved. // Use of this source code is governed by an Apache 2.0 license that can be // found in the LICENSE file. #include "Process.h" #include "String.h" using namespace Shamoon::Utils::String; DWORD Shamoon::Utils::Process::GetProcessID(WCHAR *process_name) { HANDL...
24.065217
93
0.725384
Fgroove
be62ee3586d9efbf3a5d8acdf75617cea90f1a34
8,818
hpp
C++
include/ripple/allocation/allocator.hpp
robclu/ripple
734dfa77e100a86b3c60589d41ca627e41d4a783
[ "MIT" ]
4
2021-04-25T16:38:12.000Z
2021-12-23T08:32:15.000Z
include/ripple/allocation/allocator.hpp
robclu/ripple
734dfa77e100a86b3c60589d41ca627e41d4a783
[ "MIT" ]
null
null
null
include/ripple/allocation/allocator.hpp
robclu/ripple
734dfa77e100a86b3c60589d41ca627e41d4a783
[ "MIT" ]
null
null
null
/**=--- ripple/allocation/allocator.hpp -------------------- -*- C++ -*- ---==** * * Ripple * * Copyright (c) 2019 - 2021 Rob Clucas. * * This file is distributed under the MIT License. See LICENSE for details. * *==-----------------------------------------...
31.380783
80
0.635858
robclu
be65304ce523b571117fdb21ea51eed91414dc57
4,997
cpp
C++
Engine/Code/Engine/Renderer/Renderable.cpp
tonyatpeking/SmuSpecialTopic
b61d44e4efacb3c504847deb4d00234601bca49c
[ "MIT" ]
null
null
null
Engine/Code/Engine/Renderer/Renderable.cpp
tonyatpeking/SmuSpecialTopic
b61d44e4efacb3c504847deb4d00234601bca49c
[ "MIT" ]
null
null
null
Engine/Code/Engine/Renderer/Renderable.cpp
tonyatpeking/SmuSpecialTopic
b61d44e4efacb3c504847deb4d00234601bca49c
[ "MIT" ]
1
2019-10-02T01:48:54.000Z
2019-10-02T01:48:54.000Z
#include "Engine/Renderer/Renderable.hpp" #include "Engine/Renderer/MeshPrimitive.hpp" #include "Engine/Renderer/MeshBuilder.hpp" #include "Engine/Renderer/Mesh.hpp" #include "Engine/Renderer/Material.hpp" #include "Engine/Renderer/ShaderPass.hpp" #include "Engine/Renderer/ShaderProgram.hpp" #include "Engine/Renderer/G...
26.579787
84
0.648789
tonyatpeking
be6b3dff73f3b131438bac216d628213d21eae45
2,504
cpp
C++
source/PlayerManager.cpp
Verch/mirror_sync
9b85ad9e0d52dea8cad7c720947c866f69d68243
[ "Apache-2.0" ]
null
null
null
source/PlayerManager.cpp
Verch/mirror_sync
9b85ad9e0d52dea8cad7c720947c866f69d68243
[ "Apache-2.0" ]
null
null
null
source/PlayerManager.cpp
Verch/mirror_sync
9b85ad9e0d52dea8cad7c720947c866f69d68243
[ "Apache-2.0" ]
null
null
null
#pragma once #include "PlayerManager.h" #include "MyUtiles.h" cPed::cPed(float x, float y, float z, float fInterior, float fSpeed, int keyID, bool bInitPlayerPos) : m_Possitions(x, y, z) , m_fInterior(fInterior) , m_fSpeed(fSpeed) , m_iKeyID(keyID) , m_bInitPlayerPos(bInitPlayerPos) { } cPed::cPed(){} voi...
20.866667
111
0.686102
Verch
be753fce4562bea1ce2f75a1ff9a444aa5206baa
2,980
cpp
C++
gamma/system/Commander.cpp
mbellman/gamma
a11a15492366682c2aec0a4570c6d091a83fe632
[ "Unlicense" ]
null
null
null
gamma/system/Commander.cpp
mbellman/gamma
a11a15492366682c2aec0a4570c6d091a83fe632
[ "Unlicense" ]
null
null
null
gamma/system/Commander.cpp
mbellman/gamma
a11a15492366682c2aec0a4570c6d091a83fe632
[ "Unlicense" ]
null
null
null
#include "system/Commander.h" #include "system/console.h" #include "system/flags.h" namespace Gamma { struct Command { const char* keyword; const char* displayName; GammaFlags flag; }; static Command commands[] = { { "reflect", "Reflections", GammaFlags::RENDER_REFLECTIONS }, { "refract", "R...
30.408163
111
0.625503
mbellman
be8068737d8f51d0ea2bccb5ce83dc543a48b701
18
cpp
C++
src/vcompiler/vlex.cpp
lboss75/vlang
5e58547ce3352374b3e707bb250dad2040cb2e3c
[ "MIT" ]
1
2018-05-14T07:15:21.000Z
2018-05-14T07:15:21.000Z
src/vcompiler/vlex.cpp
lboss75/vlang
5e58547ce3352374b3e707bb250dad2040cb2e3c
[ "MIT" ]
null
null
null
src/vcompiler/vlex.cpp
lboss75/vlang
5e58547ce3352374b3e707bb250dad2040cb2e3c
[ "MIT" ]
null
null
null
#include "vlex.h"
9
17
0.666667
lboss75
be8154c39131849f2565da162241a8218ba77735
1,578
hpp
C++
EasyTcp2.0/depends/include/EasyTcpClient_Epoll.hpp
zklmiao/CppNet
f32de93ddff8a2d49194840111a181edc8ae0293
[ "BSD-3-Clause" ]
null
null
null
EasyTcp2.0/depends/include/EasyTcpClient_Epoll.hpp
zklmiao/CppNet
f32de93ddff8a2d49194840111a181edc8ae0293
[ "BSD-3-Clause" ]
null
null
null
EasyTcp2.0/depends/include/EasyTcpClient_Epoll.hpp
zklmiao/CppNet
f32de93ddff8a2d49194840111a181edc8ae0293
[ "BSD-3-Clause" ]
null
null
null
#ifndef _EasyTcpClient_Epoll_hpp_ #define _EasyTcpClient_Epoll_hpp_ #if __linux__ #include "EasyTcpClient2_4.hpp" #include "CellEpoll.hpp" class EasyTcpClient_Epoll:public EasyTcpClient { public: virtual void OnInitSocket() { _ep.Create(1); _ep.ctl(EPOLL_CTL_ADD,_pClient,EPOLLIN); } void Close() { _ep.de...
18.137931
89
0.579214
zklmiao
be8194c2e548526b8b1c42665e88e59285b2dfd3
738
hh
C++
src/RouterInterface.hh
usox/harst
28eb94eabe35c0820415c734919fe3bb32fa0ad3
[ "MIT" ]
8
2017-09-20T08:55:55.000Z
2020-09-03T18:33:59.000Z
src/RouterInterface.hh
usox/harst
28eb94eabe35c0820415c734919fe3bb32fa0ad3
[ "MIT" ]
6
2017-03-09T09:40:15.000Z
2020-05-15T05:59:52.000Z
src/RouterInterface.hh
usox/harst
28eb94eabe35c0820415c734919fe3bb32fa0ad3
[ "MIT" ]
1
2019-12-03T21:09:17.000Z
2019-12-03T21:09:17.000Z
<?hh // strict namespace Usox\Sharesta; interface RouterInterface { public function register(string $route, (function (RequestInterface): \JsonSerializable) $callback, ?string $http_method = null): void; public function get(string $route, (function (RequestInterface): \JsonSerializable) $callback): void; public ...
36.9
136
0.769648
usox
be81eee3473ab5cd8893b03f9348f68cc9672383
2,956
cpp
C++
src/InputFileParser/WaterSourceParsers/ReservoirExpansionParser.cpp
dgoldri25/WaterPaths
08f098e5f8baf93bc25098aa450650a4632c7eb6
[ "Apache-2.0" ]
11
2018-07-30T01:47:55.000Z
2021-07-28T22:17:07.000Z
src/InputFileParser/WaterSourceParsers/ReservoirExpansionParser.cpp
bernardoct/RevampedTriangleModel
122116eb5b32efd35f4212f09511cd68528462be
[ "Apache-2.0" ]
26
2018-06-26T15:48:20.000Z
2021-01-12T15:48:59.000Z
src/InputFileParser/WaterSourceParsers/ReservoirExpansionParser.cpp
bernardoct/RevampedTriangleModel
122116eb5b32efd35f4212f09511cd68528462be
[ "Apache-2.0" ]
9
2018-12-08T02:47:39.000Z
2021-07-26T15:34:22.000Z
// // Created by Bernardo on 11/27/2019. // #include "ReservoirExpansionParser.h" #include "../../SystemComponents/WaterSources/ReservoirExpansion.h" #include "../AuxDataParser.h" #include "../AuxParserFunctions.h" ReservoirExpansionParser::ReservoirExpansionParser() : WaterSourceParser( "[RESERVOIR EXPANSIO...
45.476923
101
0.541949
dgoldri25
be8721713f039bd60762c7ff4ea25a4cff93ebc3
245
hh
C++
2D/linfunc.hh
pfederl/FEM2D-cracks
f664f7a618a7caa223ad37ed5d9d0f02e1e37ebf
[ "MIT" ]
null
null
null
2D/linfunc.hh
pfederl/FEM2D-cracks
f664f7a618a7caa223ad37ed5d9d0f02e1e37ebf
[ "MIT" ]
null
null
null
2D/linfunc.hh
pfederl/FEM2D-cracks
f664f7a618a7caa223ad37ed5d9d0f02e1e37ebf
[ "MIT" ]
1
2020-04-14T07:34:33.000Z
2020-04-14T07:34:33.000Z
#ifndef __LINFUNC_HH__ #define __LINFUNC_HH__ double linfunc( double x1, double v1, double x2, double v2, double x) { if( x < x1) return v1; if( x > x2) return v2; if( x1 == x2) return v1; return ((x-x1)/(x2-x1)) * (v2-v1) + v1; } #endif
18.846154
71
0.636735
pfederl
be8d03f3af0bc78602b6145cfff6c2ed83537d18
4,760
cxx
C++
STRUCT/AliBODY.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
52
2016-12-11T13:04:01.000Z
2022-03-11T11:49:35.000Z
STRUCT/AliBODY.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
1,388
2016-11-01T10:27:36.000Z
2022-03-30T15:26:09.000Z
STRUCT/AliBODY.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
275
2016-06-21T20:24:05.000Z
2022-03-31T13:06:19.000Z
/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors ...
31.315789
81
0.538655
AllaMaevskaya
be8e4df05d73cb78edbdacee60dacef675b4aefc
5,412
cpp
C++
src/svg/svg.cpp
rl337/bust
c27b3ac242dea33bfcf69b51f2e8161832dc91f0
[ "Apache-2.0" ]
null
null
null
src/svg/svg.cpp
rl337/bust
c27b3ac242dea33bfcf69b51f2e8161832dc91f0
[ "Apache-2.0" ]
null
null
null
src/svg/svg.cpp
rl337/bust
c27b3ac242dea33bfcf69b51f2e8161832dc91f0
[ "Apache-2.0" ]
null
null
null
#include "svg.h" namespace bust::svg { SVG::SVG(std::string title, std::string description, int width, int height, Shape *shapes[], std::size_t n, Style style) : Shape(style), title(title), description(description), width(width), height(height) { for(std::size_t i = 0; i < n; i++) { this->add...
30.404494
211
0.431633
rl337
be978af9da33e9c2cd97aada02f53d731cb1e29b
164
cpp
C++
Part_Five/Add.cpp
ayushpareek179/CPP-course
b2b8b8d2dd06cd772e3c9838abd5b841237bb306
[ "MIT" ]
null
null
null
Part_Five/Add.cpp
ayushpareek179/CPP-course
b2b8b8d2dd06cd772e3c9838abd5b841237bb306
[ "MIT" ]
null
null
null
Part_Five/Add.cpp
ayushpareek179/CPP-course
b2b8b8d2dd06cd772e3c9838abd5b841237bb306
[ "MIT" ]
null
null
null
#include <iostream> int main() { int a,b,c = 0; std::cout<<"Enter two numbers"<<"\n"; std::cin>>a>>b; c = a+b; std::cout<<"The sum is "<<c<<"\n"; return 0; }
14.909091
38
0.530488
ayushpareek179
be9a98d5b159a1062c3a4bd531061c3aebd4576b
1,798
cpp
C++
OJ/LeetCode/leetcode/problems/1154.cpp
ONGOING-Z/DataStructure
9099393d1c7dfabc3e2939586ea6d1d254631eb2
[ "MIT" ]
null
null
null
OJ/LeetCode/leetcode/problems/1154.cpp
ONGOING-Z/DataStructure
9099393d1c7dfabc3e2939586ea6d1d254631eb2
[ "MIT" ]
2
2021-10-31T10:05:45.000Z
2022-02-12T15:17:53.000Z
OJ/LeetCode/leetcode/1154.cpp
ONGOING-Z/Learn-Algorithm-and-DataStructure
3a512bd83cc6ed5035ac4550da2f511298b947c0
[ "MIT" ]
null
null
null
#include <iostream> #include <stdio.h> #include <cstdio> #include <vector> #include <algorithm> #include <map> #include <string> #include <set> #include <stack> #include <cmath> using namespace std; /* Leetcode */ /* Type: math */ /* 题目信息 */ /* *1154. Day of the Year Given a string date representing a Gregorian calen...
17.12381
118
0.552836
ONGOING-Z
be9b653b1aaf399b53db44ab3e9c31e1ad9320a0
906
hpp
C++
Game/game_object.hpp
vhundef/ExtCourseWork
dbdba4800d989a8f0a58e73b17e7f0e5cb589cc7
[ "MIT" ]
null
null
null
Game/game_object.hpp
vhundef/ExtCourseWork
dbdba4800d989a8f0a58e73b17e7f0e5cb589cc7
[ "MIT" ]
null
null
null
Game/game_object.hpp
vhundef/ExtCourseWork
dbdba4800d989a8f0a58e73b17e7f0e5cb589cc7
[ "MIT" ]
null
null
null
// // Created by vhundef on 15.09.2019. // #ifndef TANKSCOURSEWORKRD_GAME_OBJECT_HPP #define TANKSCOURSEWORKRD_GAME_OBJECT_HPP #include <random> class GameObject { public: struct coords { int x1{1}, x2{1}; int y1{1}, y2{1}; }; static int randIntInRange(int min, int max) { std::random_device rd; // only...
18.489796
89
0.69426
vhundef
be9d108223205b7591cccd05c8b224c3e975de2c
2,024
cpp
C++
aws-cpp-sdk-lookoutequipment/source/model/UpdateInferenceSchedulerRequest.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2021-12-06T20:36:35.000Z
2021-12-06T20:36:35.000Z
aws-cpp-sdk-lookoutequipment/source/model/UpdateInferenceSchedulerRequest.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2022-01-03T23:59:37.000Z
2022-01-03T23:59:37.000Z
aws-cpp-sdk-lookoutequipment/source/model/UpdateInferenceSchedulerRequest.cpp
ravindra-wagh/aws-sdk-cpp
7d5ff01b3c3b872f31ca98fb4ce868cd01e97696
[ "Apache-2.0" ]
1
2021-12-30T04:25:33.000Z
2021-12-30T04:25:33.000Z
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/lookoutequipment/model/UpdateInferenceSchedulerRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::LookoutEquipment::Model; using namespa...
25.3
126
0.791008
perfectrecall
be9d721456567c0bb2c208d93446760dfac51e4b
2,958
cpp
C++
coast/modules/Renderer/ImageRenderers.cpp
zer0infinity/CuteForCoast
37d933c5fe2e0ce9a801f51b2aa27c7a18098511
[ "BSD-3-Clause" ]
null
null
null
coast/modules/Renderer/ImageRenderers.cpp
zer0infinity/CuteForCoast
37d933c5fe2e0ce9a801f51b2aa27c7a18098511
[ "BSD-3-Clause" ]
null
null
null
coast/modules/Renderer/ImageRenderers.cpp
zer0infinity/CuteForCoast
37d933c5fe2e0ce9a801f51b2aa27c7a18098511
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland * All rights reserved. * * This library/application is free software; you can redistribute and/or modify it under the terms of * the license that is included with this library/application in the file license.txt....
26.410714
102
0.65213
zer0infinity
bea62853db8abb7dc00304d13cd43eafa8ca0cf2
472
cpp
C++
src/graph.cpp
Algorithms-and-Data-Structures-2021/semester-work-kruskal-11-006
99ccaa99ee33b608a384a5945a62af152478fb07
[ "MIT" ]
1
2021-05-18T12:28:35.000Z
2021-05-18T12:28:35.000Z
src/graph.cpp
Algorithms-and-Data-Structures-2021/semester-work-kruskal-11-006
99ccaa99ee33b608a384a5945a62af152478fb07
[ "MIT" ]
null
null
null
src/graph.cpp
Algorithms-and-Data-Structures-2021/semester-work-kruskal-11-006
99ccaa99ee33b608a384a5945a62af152478fb07
[ "MIT" ]
null
null
null
#include "graph.hpp" namespace itis { Graph::Graph() = default; void Graph::AddEdge(int first_, int second_, int weight_) { // создаем ребро, добавляем его в вектор, увеличичваем количество ребер Edge edge = Edge(first_, second_, weight_); graph.push_back(edge); edge_amount ++; } void Grap...
18.88
75
0.637712
Algorithms-and-Data-Structures-2021
bea7b6713c2ff0ac6f66c0b49648bdf60b40b3e2
1,524
cpp
C++
CrazyCanvas/Source/ECS/Systems/Player/HealthSystem.cpp
IbexOmega/CrazyCanvas
f60f01aaf9c988e4da8990dc1ef3caac20cecf7e
[ "MIT" ]
18
2020-09-04T08:00:54.000Z
2021-08-29T23:04:45.000Z
CrazyCanvas/Source/ECS/Systems/Player/HealthSystem.cpp
IbexOmega/LambdaEngine
f60f01aaf9c988e4da8990dc1ef3caac20cecf7e
[ "MIT" ]
32
2020-09-12T19:24:50.000Z
2020-12-11T14:29:44.000Z
CrazyCanvas/Source/ECS/Systems/Player/HealthSystem.cpp
IbexOmega/LambdaEngine
f60f01aaf9c988e4da8990dc1ef3caac20cecf7e
[ "MIT" ]
2
2020-12-15T15:36:13.000Z
2021-03-27T14:27:02.000Z
#include "ECS/Systems/Player/HealthSystem.h" #include "ECS/Systems/Player/HealthSystemServer.h" #include "ECS/Systems/Player/HealthSystemClient.h" #include "ECS/ECSCore.h" #include "ECS/Components/Player/HealthComponent.h" #include "ECS/Components/Player/Player.h" #include "Events/GameplayEvents.h" #include "Game/Mul...
20.876712
92
0.744751
IbexOmega
beaecf919a0c373e261049e5a507ab6f4169c032
9,914
cc
C++
build/ARM/python/m5/internal/param_CopyEngine.py.cc
Jakgn/gem5_test
0ba7cc5213cf513cf205af7fc995cf679ebc1a3f
[ "BSD-3-Clause" ]
null
null
null
build/ARM/python/m5/internal/param_CopyEngine.py.cc
Jakgn/gem5_test
0ba7cc5213cf513cf205af7fc995cf679ebc1a3f
[ "BSD-3-Clause" ]
null
null
null
build/ARM/python/m5/internal/param_CopyEngine.py.cc
Jakgn/gem5_test
0ba7cc5213cf513cf205af7fc995cf679ebc1a3f
[ "BSD-3-Clause" ]
null
null
null
#include "sim/init.hh" namespace { const uint8_t data_m5_internal_param_CopyEngine[] = { 120,156,189,89,109,115,219,198,17,222,3,72,202,164,69,75, 178,36,203,47,178,69,199,85,205,56,182,212,186,117,211,105, 60,158,218,114,58,73,102,172,184,96,103,236,176,157,162,16, 112,148,64,225,133,5,78,86,152,145,...
57.976608
77
0.665524
Jakgn
beb0f4b064d02e8fc9e86de3f642bd73a01b809f
1,415
cpp
C++
iKan/src/iKan/Renderer/GraphicsContext.cpp
ashish1009/iKan
4823c2798c22c61a7fb959f1f907c8c6de730550
[ "Apache-2.0" ]
null
null
null
iKan/src/iKan/Renderer/GraphicsContext.cpp
ashish1009/iKan
4823c2798c22c61a7fb959f1f907c8c6de730550
[ "Apache-2.0" ]
null
null
null
iKan/src/iKan/Renderer/GraphicsContext.cpp
ashish1009/iKan
4823c2798c22c61a7fb959f1f907c8c6de730550
[ "Apache-2.0" ]
null
null
null
// ****************************************************************************** // File : GraphicsContext.cpp // Description : Implementation Graphics context class interface // Project : iKan : Renderer // // Created by Ashish on 16/04/21. // Copyright © 2021 Ashish. All rights reserved. // ***********...
35.375
100
0.462898
ashish1009
beb2939182c86c2533a70601dbf03f8b6400f97e
7,673
cpp
C++
export/windows/obj/src/openfl/events/TextEvent.cpp
arturspon/zombie-killer
07848c5006916e9079537a3d703ffe3740afaa5a
[ "MIT" ]
null
null
null
export/windows/obj/src/openfl/events/TextEvent.cpp
arturspon/zombie-killer
07848c5006916e9079537a3d703ffe3740afaa5a
[ "MIT" ]
null
null
null
export/windows/obj/src/openfl/events/TextEvent.cpp
arturspon/zombie-killer
07848c5006916e9079537a3d703ffe3740afaa5a
[ "MIT" ]
1
2021-07-16T22:57:01.000Z
2021-07-16T22:57:01.000Z
// Generated by Haxe 4.0.0-rc.2+77068e10c #include <hxcpp.h> #ifndef INCLUDED_openfl_events_Event #include <openfl/events/Event.h> #endif #ifndef INCLUDED_openfl_events_TextEvent #include <openfl/events/TextEvent.h> #endif HX_DEFINE_STACK_FRAME(_hx_pos_a9542994cee360f6_77_new,"openfl.events.TextEvent","new",0x29e5850...
36.023474
184
0.739606
arturspon
beb9a755301f31b1ad87cf6ab882aba23e4b6706
752
cpp
C++
LeetCode/Medium/34-Find-First-and-Last-Position-of-Element-in-Sorted-Array.cpp
gantavya123/competitive-programming
d215329cc20885768c78d5bd4d7a90fdb72b1246
[ "Apache-2.0" ]
6
2021-08-07T12:23:13.000Z
2021-12-24T10:54:29.000Z
LeetCode/Medium/34-Find-First-and-Last-Position-of-Element-in-Sorted-Array.cpp
gantavya123/competitive-programming
d215329cc20885768c78d5bd4d7a90fdb72b1246
[ "Apache-2.0" ]
null
null
null
LeetCode/Medium/34-Find-First-and-Last-Position-of-Element-in-Sorted-Array.cpp
gantavya123/competitive-programming
d215329cc20885768c78d5bd4d7a90fdb72b1246
[ "Apache-2.0" ]
1
2021-10-01T14:31:15.000Z
2021-10-01T14:31:15.000Z
// Time Complexity : O(log n) // Space Complexity : O(1) class Solution { public: vector<int> searchRange(vector<int>& a, int target) { int s = 0, e = a.size()-1; vector<int> ans(2, -1); //first occurrence while(s <= e){ int m = s + (e-s)/2; if(a[m] < target) s = m+1; else if(a[m] > target) ...
14.745098
57
0.4375
gantavya123
bebe9a0e464812e7abe9cddb7b232e4f5429d255
2,467
hpp
C++
DGP/System.hpp
sidch/DGP
20a2d47563b6e36cd89bea0b1326e5267df8e9a6
[ "BSD-3-Clause" ]
14
2016-03-15T16:24:10.000Z
2022-01-06T13:43:17.000Z
a3/src/DGP/System.hpp
meetps/CS-749
f1ddc4ed003b3a9f222f2a724d53076ddec697a6
[ "MIT" ]
null
null
null
a3/src/DGP/System.hpp
meetps/CS-749
f1ddc4ed003b3a9f222f2a724d53076ddec697a6
[ "MIT" ]
5
2017-04-12T17:40:57.000Z
2022-01-06T13:43:20.000Z
//============================================================================ // // DGP: Digital Geometry Processing toolkit // Copyright (C) 2016, Siddhartha Chaudhuri // // This software is covered by a BSD license. Portions derived from other // works are covered by their respective licenses. For full licensing // ...
24.186275
126
0.603972
sidch
bec2190f0bdf5d4d212b8b7226b67f8e7d76795b
1,848
cpp
C++
test/Mesh/Test_CrossMesh.cpp
carlostapiarq/TopoLite
d6eb9125518a88ea546917df5217978f34661b2c
[ "MIT" ]
17
2020-06-10T08:28:32.000Z
2021-12-07T02:55:35.000Z
test/Mesh/Test_CrossMesh.cpp
carlostapiarq/TopoLite
d6eb9125518a88ea546917df5217978f34661b2c
[ "MIT" ]
4
2020-06-08T12:21:49.000Z
2020-06-10T07:56:42.000Z
test/Mesh/Test_CrossMesh.cpp
carlostapiarq/TopoLite
d6eb9125518a88ea546917df5217978f34661b2c
[ "MIT" ]
3
2020-06-22T10:07:31.000Z
2021-10-04T06:02:33.000Z
// // Created by ziqwang on 2020-02-21. // #include <catch2/catch.hpp> #include "Mesh/CrossMesh.h" TEST_CASE("CrossMesh") { shared_ptr<InputVarList> varList = make_shared<InputVarList>(); InitVar(varList.get()); PolyMesh<double> polyMesh(varList); SECTION("read polyhedron") { polyMesh.re...
32.421053
102
0.502706
carlostapiarq
bec22c6b8b38cf17dfa9389378280bdf886074d3
498
cpp
C++
LeetCode/Climbing Stairs.cpp
Rupali409/CPP-Questions-and-Solutions
a42664302f18b7d99aac2501bcf956950e3cc61a
[ "MIT" ]
42
2021-09-26T18:02:52.000Z
2022-03-15T01:52:15.000Z
LeetCode/Climbing Stairs.cpp
Rupali409/CPP-Questions-and-Solutions
a42664302f18b7d99aac2501bcf956950e3cc61a
[ "MIT" ]
404
2021-09-24T19:55:10.000Z
2021-11-03T05:47:47.000Z
LeetCode/Climbing Stairs.cpp
Rupali409/CPP-Questions-and-Solutions
a42664302f18b7d99aac2501bcf956950e3cc61a
[ "MIT" ]
140
2021-09-22T20:50:04.000Z
2022-01-22T16:59:09.000Z
// https://leetcode.com/problems/climbing-stairs/ /* You are climbing a staircase. It takes n steps to reach the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? */ #include<iostream> using namespace std; int main(){ // n = no. of stairs int n; cin>>n; int...
17.172414
96
0.566265
Rupali409
bec6f1fbc1ef93b3ef2eaf0636435901d644810b
1,159
hpp
C++
src/org/apache/poi/ss/formula/SheetRangeIdentifier.hpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
src/org/apache/poi/ss/formula/SheetRangeIdentifier.hpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
src/org/apache/poi/ss/formula/SheetRangeIdentifier.hpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
// Generated from /POI/java/org/apache/poi/ss/formula/SheetRangeIdentifier.java #pragma once #include <java/lang/fwd-POI.hpp> #include <org/apache/poi/ss/formula/fwd-POI.hpp> #include <org/apache/poi/ss/formula/SheetIdentifier.hpp> struct default_init_tag; class poi::ss::formula::SheetRangeIdentifier : public S...
26.953488
132
0.749784
pebble2015
becca69d361d1f246c993727a961e365db6361fe
38,270
cpp
C++
src/vkex/Command.cpp
apazylbe/PorQue4K
209ba90a35f05df0be68df586c9e184183ed8263
[ "Apache-2.0" ]
15
2020-06-12T01:40:34.000Z
2022-03-16T21:52:46.000Z
src/vkex/Command.cpp
apazylbe/PorQue4K
209ba90a35f05df0be68df586c9e184183ed8263
[ "Apache-2.0" ]
4
2020-06-12T23:57:52.000Z
2020-06-24T19:19:16.000Z
src/vkex/Command.cpp
apazylbe/PorQue4K
209ba90a35f05df0be68df586c9e184183ed8263
[ "Apache-2.0" ]
3
2020-06-12T15:02:13.000Z
2020-07-05T17:34:20.000Z
/* Copyright 2018-2019 Google 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.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
32.542517
389
0.750562
apazylbe
becf76e0fb52a946f6606b2e2ba2789e4e116034
7,839
cpp
C++
extrema-sycl/main.cpp
BeauJoh/HeCBench
594b845171d686dc951971ce36ed59cf114dd2b4
[ "BSD-3-Clause" ]
58
2020-08-06T18:53:44.000Z
2021-10-01T07:59:46.000Z
extrema-sycl/main.cpp
BeauJoh/HeCBench
594b845171d686dc951971ce36ed59cf114dd2b4
[ "BSD-3-Clause" ]
2
2020-12-04T12:35:02.000Z
2021-03-04T22:49:25.000Z
extrema-sycl/main.cpp
BeauJoh/HeCBench
594b845171d686dc951971ce36ed59cf114dd2b4
[ "BSD-3-Clause" ]
13
2020-08-19T13:44:18.000Z
2021-09-08T04:25:34.000Z
// Copyright (c) 2019-2020, NVIDIA CORPORATION. // 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 o...
25.701639
91
0.508101
BeauJoh