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
4d7827ef6aaed40723c3bf8aba84df5e6b037875
986
cpp
C++
src/Score.cpp
Pyr0x1/Memory
e73f68554b1707bccd984e9d3725e597aee7c82a
[ "MIT" ]
1
2016-01-15T04:45:26.000Z
2016-01-15T04:45:26.000Z
src/Score.cpp
Pyr0x1/Memory
e73f68554b1707bccd984e9d3725e597aee7c82a
[ "MIT" ]
null
null
null
src/Score.cpp
Pyr0x1/Memory
e73f68554b1707bccd984e9d3725e597aee7c82a
[ "MIT" ]
null
null
null
#include <iostream> #include <sstream> #include "Score.h" Score::Score (std::string fontPath, SDL_Color fontColor, int size) { this->font = TTF_OpenFont (fontPath.c_str(), size); if(!this->font) printf("TTF_OpenFont: %s\n", TTF_GetError()); this->color = fontColor; this->value = 0; } void Score::write (SDL_Re...
20.541667
83
0.691684
Pyr0x1
4d7efa0da1d3e666c546b9ac7a3b9361d9965cb9
19,300
hpp
C++
src/projects/lja/multi_graph.hpp
fedarko/LJA
f20c85395d741b0f94f6d0172c7451d72d7c8713
[ "BSD-3-Clause" ]
null
null
null
src/projects/lja/multi_graph.hpp
fedarko/LJA
f20c85395d741b0f94f6d0172c7451d72d7c8713
[ "BSD-3-Clause" ]
null
null
null
src/projects/lja/multi_graph.hpp
fedarko/LJA
f20c85395d741b0f94f6d0172c7451d72d7c8713
[ "BSD-3-Clause" ]
null
null
null
#pragma once #include <sequences/sequence.hpp> #include <unordered_set> #include <unordered_map> #include <experimental/filesystem> #include <fstream> #include <common/string_utils.hpp> #include <sequences/contigs.hpp> namespace multigraph { class Edge; struct Vertex { Sequence seq; int id; ...
38.067061
135
0.412642
fedarko
4d7f0085ce495c58f5b980a403b741030b0fab38
274
cpp
C++
src/unit_tests/main.cpp
tyrbedarf/LumixEngine
0ec51d724abcc06f297c3e189282763a630f7eb5
[ "MIT" ]
3
2021-05-27T10:43:33.000Z
2021-05-27T10:44:02.000Z
src/unit_tests/main.cpp
tyrbedarf/LumixEngine
0ec51d724abcc06f297c3e189282763a630f7eb5
[ "MIT" ]
null
null
null
src/unit_tests/main.cpp
tyrbedarf/LumixEngine
0ec51d724abcc06f297c3e189282763a630f7eb5
[ "MIT" ]
3
2021-05-27T10:44:15.000Z
2021-11-18T09:20:10.000Z
#include "engine/lumix.h" #include "engine/debug/floating_points.h" #include "unit_tests/suite/unit_test_app.h" int main(int argc, const char * argv[]) { Lumix::enableFloatingPointTraps(true); Lumix::UnitTest::App app; app.init(); app.run(argc, argv); app.exit(); }
18.266667
43
0.715328
tyrbedarf
4d8118e6f98fdefb970263985e8e6be4cbdd5f19
396
hpp
C++
est/include/est/est_io_cb.hpp
dungeonsnd/lite-libs
38f84bd1cf6f1a43836f43e57fcd1d22b18d706b
[ "FSFAP" ]
null
null
null
est/include/est/est_io_cb.hpp
dungeonsnd/lite-libs
38f84bd1cf6f1a43836f43e57fcd1d22b18d706b
[ "FSFAP" ]
null
null
null
est/include/est/est_io_cb.hpp
dungeonsnd/lite-libs
38f84bd1cf6f1a43836f43e57fcd1d22b18d706b
[ "FSFAP" ]
null
null
null
#ifndef _HEADER_FILE_EST_IO_CB_HPP_ #define _HEADER_FILE_EST_IO_CB_HPP_ typedef void (*est_funcIocb) (bufferevent *bev, void *arg); typedef void (*est_funcErrorcb) (bufferevent *bev,short event, void *arg); typedef void (*est_funcTimecb) (int fd,short event, void *arg); typedef void (*est_funcAcceptcb) (evutil_socket_...
39.6
84
0.790404
dungeonsnd
4d871ec0231e6e547b55a7c9b30da5c58d55674f
3,125
cc
C++
CodeChef/SNACKDOWN/16/Pre-Elimination A/Problem F/F.cc
VastoLorde95/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
170
2017-07-25T14:47:29.000Z
2022-01-26T19:16:31.000Z
CodeChef/SNACKDOWN/16/Pre-Elimination A/Problem F/F.cc
navodit15/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
null
null
null
CodeChef/SNACKDOWN/16/Pre-Elimination A/Problem F/F.cc
navodit15/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
55
2017-07-28T06:17:33.000Z
2021-10-31T03:06:22.000Z
#include <bits/stdc++.h> #define sd(x) scanf("%d",&x) #define sd2(x,y) scanf("%d%d",&x,&y) #define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z) #define fi first #define se second #define pb push_back #define mp make_pair #define foreach(it, v) for(__typeof((v).begin()) it=(v).begin(); it != (v).end(); ++it) #define meta __FUN...
21.258503
97
0.52608
VastoLorde95
4d902c774febb89d40c247919b0b3fb95f63f778
584
cpp
C++
BOJ_CPP/22477.cpp
tnsgh9603/BOJ_CPP
432b1350f6c67cce83aec3e723e30a3c6b5dbfda
[ "MIT" ]
null
null
null
BOJ_CPP/22477.cpp
tnsgh9603/BOJ_CPP
432b1350f6c67cce83aec3e723e30a3c6b5dbfda
[ "MIT" ]
null
null
null
BOJ_CPP/22477.cpp
tnsgh9603/BOJ_CPP
432b1350f6c67cce83aec3e723e30a3c6b5dbfda
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define fastio ios::sync_with_stdio(0), cin.tie(0), cout.tie(0) using namespace std; int main() { fastio; int n, m; cin >> n; string s; map<string, int> mp; for (int i = 0; i < n; ++i) { cin >> s; mp[s] = 1; } cin >> m; bool flag = 1; fo...
20.137931
63
0.409247
tnsgh9603
4d94f198f30b3eafebb4779688b9ef5713d30f9a
406
cpp
C++
luogu/c++/P5727.cpp
Crabtime/cpp-project
1d79aab95be18d704e431efc5eff94d11e6096d3
[ "CC0-1.0" ]
1
2020-08-09T01:35:17.000Z
2020-08-09T01:35:17.000Z
luogu/c++/P5727.cpp
Crabtime/cpp-project
1d79aab95be18d704e431efc5eff94d11e6096d3
[ "CC0-1.0" ]
null
null
null
luogu/c++/P5727.cpp
Crabtime/cpp-project
1d79aab95be18d704e431efc5eff94d11e6096d3
[ "CC0-1.0" ]
null
null
null
#include<iostream> #pragma GCC optimize(3) using namespace std; void bingbao(long long n) { if (n == 1) { std:: cout << 1 << ' '; return; } if (n%2 == 0) { bingbao(n/2); } else { bingbao(n*3+1); } std:: cout << n << ' '; } i...
14
32
0.399015
Crabtime
4d97a8916b1bf346f3c89869d6f1819a06d42ab7
648
hh
C++
include/ThreadRun.hh
phirippu/instrument-simulation
0a7cec84d8945a6f11e0ddca00f1e8fc0d32d7f8
[ "CC-BY-4.0" ]
null
null
null
include/ThreadRun.hh
phirippu/instrument-simulation
0a7cec84d8945a6f11e0ddca00f1e8fc0d32d7f8
[ "CC-BY-4.0" ]
null
null
null
include/ThreadRun.hh
phirippu/instrument-simulation
0a7cec84d8945a6f11e0ddca00f1e8fc0d32d7f8
[ "CC-BY-4.0" ]
1
2021-03-08T16:01:14.000Z
2021-03-08T16:01:14.000Z
// // Created by phil on 5/17/18. // #ifndef THREADRUN_HH #define THREADRUN_HH #include <G4Run.hh> #include <map> #include <G4ToolsAnalysisManager.hh> #include "SensitiveDetector.hh" #include "DetectorConstruction.hh" class ThreadRun : public G4Run { public: explicit ThreadRun(const G4String &rootFileName); ...
18.514286
54
0.736111
phirippu
4d99cffcb437d087031789496c36ba21685621ea
5,851
cc
C++
jjOpenCLBasic.cc
ied206/NPKICracker
72052835fd97286525051036d6148a55bf594f72
[ "MIT" ]
10
2015-12-05T02:56:04.000Z
2020-05-28T02:41:32.000Z
jjOpenCLBasic.cc
ied206/NPKICracker
72052835fd97286525051036d6148a55bf594f72
[ "MIT" ]
null
null
null
jjOpenCLBasic.cc
ied206/NPKICracker
72052835fd97286525051036d6148a55bf594f72
[ "MIT" ]
4
2015-11-27T13:23:51.000Z
2021-07-22T08:32:48.000Z
#include "jjOpenCLBasic.hpp" cl_context createContext() { cl_int errNum; JJ_CL_PLATFORMS platformsInformations; cl_context context = NULL; errNum = jjOpenCLPlatformInitialize(&platformsInformations, true); cl_context_properties contextProperties[] = { CL_CONTEXT_PLATFORM, (cl_context_properties)platformsInfor...
39.802721
170
0.727055
ied206
4d9b94c441c12910416148b948cea09e639df2a9
2,572
cpp
C++
src/Algorithm/bellman_ford.cpp
petuzk/PAMSI-2
473e7e57823a01de3464c0cac9f795f024c1c9bf
[ "MIT" ]
null
null
null
src/Algorithm/bellman_ford.cpp
petuzk/PAMSI-2
473e7e57823a01de3464c0cac9f795f024c1c9bf
[ "MIT" ]
null
null
null
src/Algorithm/bellman_ford.cpp
petuzk/PAMSI-2
473e7e57823a01de3464c0cac9f795f024c1c9bf
[ "MIT" ]
null
null
null
#include "inc/Algorithm/bellman_ford.hpp" template <typename VIT, typename EIT> void bellman_ford(const IVGraph<VIT, EIT>& graph, IVGraph<VIT, EIT>& tree, const Vertex<VIT>* start, EIT zero_cost, EIT max_cost) { // Pobierz tablicę wierzchołków const auto graph_vertices = graph.vertices(); std::size_t num_vertices =...
30.987952
131
0.670684
petuzk
4da00025d02c6016049b4ae806c28fd07ea05119
1,139
cpp
C++
src/mesh.cpp
mfirmin/c5sc
66b06061bf0f1a53c435f4109cd7fa636466c353
[ "MIT" ]
1
2015-01-05T07:49:33.000Z
2015-01-05T07:49:33.000Z
src/mesh.cpp
mfirmin/c5sc
66b06061bf0f1a53c435f4109cd7fa636466c353
[ "MIT" ]
null
null
null
src/mesh.cpp
mfirmin/c5sc
66b06061bf0f1a53c435f4109cd7fa636466c353
[ "MIT" ]
null
null
null
#include <boost/geometry.hpp> #include <boost/geometry/geometries/point_xy.hpp> #include <boost/geometry/multi/geometries/multi_point.hpp> #include <iostream> #include <vector> #include "mesh.h" #include "component.h" #include "vertex.h" void Mesh::createHull(int c_num) { using boost::geometry::append; using bo...
27.780488
172
0.697981
mfirmin
4da1d3528ae1af961618792d29711b3ad89f55ff
2,352
cpp
C++
src/algos/tree.cpp
mhough/braingl
53e2078adc10731ee62feec11dcb767c4c6c0d35
[ "MIT" ]
5
2016-03-17T07:02:11.000Z
2021-12-12T14:43:58.000Z
src/algos/tree.cpp
mhough/braingl
53e2078adc10731ee62feec11dcb767c4c6c0d35
[ "MIT" ]
null
null
null
src/algos/tree.cpp
mhough/braingl
53e2078adc10731ee62feec11dcb767c4c6c0d35
[ "MIT" ]
3
2015-10-29T15:21:01.000Z
2020-11-25T09:41:21.000Z
/* * tree.cpp * * Created on: 17.09.2013 * Author: Ralph */ #include "tree.h" #include <QDebug> Tree::Tree( int id, float value ) : m_id( id ), m_value( value ), m_texturePosition( QVector3D( 0, 0, 0 ) ), m_parent( 0 ) { QColor color1( 255, 0, 0 ); QColor color2(...
17.684211
83
0.520833
mhough
4da20923bcfa8a49967d6d80ae93d584b57e07d4
3,425
cpp
C++
samples/snippets/cpp/VS_Snippets_CLR_System/system.Security.Permissions.FileIOPermission/CPP/remarks.cpp
hamarb123/dotnet-api-docs
6aeb55784944a2f1f5e773b657791cbd73a92dd4
[ "CC-BY-4.0", "MIT" ]
421
2018-04-01T01:57:50.000Z
2022-03-28T15:24:42.000Z
samples/snippets/cpp/VS_Snippets_CLR_System/system.Security.Permissions.FileIOPermission/CPP/remarks.cpp
hamarb123/dotnet-api-docs
6aeb55784944a2f1f5e773b657791cbd73a92dd4
[ "CC-BY-4.0", "MIT" ]
5,797
2018-04-02T21:12:23.000Z
2022-03-31T23:54:38.000Z
samples/snippets/cpp/VS_Snippets_CLR_System/system.Security.Permissions.FileIOPermission/CPP/remarks.cpp
hamarb123/dotnet-api-docs
6aeb55784944a2f1f5e773b657791cbd73a92dd4
[ "CC-BY-4.0", "MIT" ]
1,482
2018-03-31T11:26:20.000Z
2022-03-30T22:36:45.000Z
 using namespace System; using namespace System::Security; using namespace System::Security::Permissions; int main() { try { FileIOPermission^ fileIOPerm1; fileIOPerm1 = gcnew FileIOPermission(PermissionState::Unrestricted); // Tests for: SetPathList(FileIOPermissionAccess...
36.052632
117
0.597372
hamarb123
4da2ad46b72c9c6a89fba8cbf75af5eca1e0d36a
566
hxx
C++
Legolas/Matrix/tst/ArbitraryPrecision/APFloat.hxx
LaurentPlagne/Legolas
fdf533528baf7ab5fcb1db15d95d2387b3e3723c
[ "MIT" ]
null
null
null
Legolas/Matrix/tst/ArbitraryPrecision/APFloat.hxx
LaurentPlagne/Legolas
fdf533528baf7ab5fcb1db15d95d2387b3e3723c
[ "MIT" ]
null
null
null
Legolas/Matrix/tst/ArbitraryPrecision/APFloat.hxx
LaurentPlagne/Legolas
fdf533528baf7ab5fcb1db15d95d2387b3e3723c
[ "MIT" ]
1
2021-02-11T14:43:25.000Z
2021-02-11T14:43:25.000Z
/** * project DESCARTES * * @file APFloat.hxx * * @author Laurent PLAGNE * @date june 2004 - january 2005 * * @par Modifications * - author date object * * (c) Copyright EDF R&D - CEA 2001-2005 */ #ifndef __LEGOLAS_APFLOAT_HXX__ #define __LEGOLAS_APFLOAT_HXX__ #include "apfloat.h" #include "apcp...
15.722222
49
0.660777
LaurentPlagne
4da474db05c2e6b20c92184ccd98bc28b6686d82
415
hpp
C++
Etaler/Algorithms/Anomaly.hpp
mewpull/Etaler
fcc88a96ec05af34d7c1717beef0e35671015152
[ "BSD-3-Clause" ]
1
2020-04-19T17:23:49.000Z
2020-04-19T17:23:49.000Z
Etaler/Algorithms/Anomaly.hpp
mewpull/Etaler
fcc88a96ec05af34d7c1717beef0e35671015152
[ "BSD-3-Clause" ]
null
null
null
Etaler/Algorithms/Anomaly.hpp
mewpull/Etaler
fcc88a96ec05af34d7c1717beef0e35671015152
[ "BSD-3-Clause" ]
null
null
null
#pragma once #include <Etaler/Core/Tensor.hpp> namespace et { static float anomaly(const Tensor& pred, const Tensor& real) { et_assert(real.dtype() == DType::Bool); et_assert(pred.dtype() == DType::Bool); et_assert(real.shape() == pred.shape()); Tensor should_predict = sum(real); Tensor not_predicted = sum(!pr...
21.842105
62
0.703614
mewpull
4da85f9f4aeae3f72f131919678d630c30d6e6cf
6,408
cpp
C++
QP/v5.4.2/qpcpp/examples/win32/comp_qm/alarm.cpp
hyller/GladiatorCots
36a69df68675bb40b562081c531e6674037192a8
[ "Unlicense" ]
null
null
null
QP/v5.4.2/qpcpp/examples/win32/comp_qm/alarm.cpp
hyller/GladiatorCots
36a69df68675bb40b562081c531e6674037192a8
[ "Unlicense" ]
null
null
null
QP/v5.4.2/qpcpp/examples/win32/comp_qm/alarm.cpp
hyller/GladiatorCots
36a69df68675bb40b562081c531e6674037192a8
[ "Unlicense" ]
null
null
null
//**************************************************************************** // Model: comp.qm // File: ./alarm.cpp // // This code has been generated by QM tool (see state-machine.com/qm). // DO NOT EDIT THIS FILE MANUALLY. All your changes will be lost. // // This program is open source software: you can redistrib...
35.798883
84
0.50515
hyller
4dad07d32ef5afd291098b79cbf7d4e087488044
747
hpp
C++
test/data-tests/include/common.hpp
zhaitianduo/libosmium
42fc3238f942baac47d8520425664376478718b1
[ "BSL-1.0" ]
4,526
2015-01-01T15:31:00.000Z
2022-03-31T17:33:49.000Z
test/data-tests/include/common.hpp
zhaitianduo/libosmium
42fc3238f942baac47d8520425664376478718b1
[ "BSL-1.0" ]
4,497
2015-01-01T15:29:12.000Z
2022-03-31T19:19:35.000Z
test/data-tests/include/common.hpp
zhaitianduo/libosmium
42fc3238f942baac47d8520425664376478718b1
[ "BSL-1.0" ]
3,023
2015-01-01T18:40:53.000Z
2022-03-30T13:30:46.000Z
#ifndef COMMON_HPP #define COMMON_HPP #include <osmium/index/map/dummy.hpp> #include <osmium/index/map/sparse_mem_array.hpp> #include <osmium/geom/wkt.hpp> #include <osmium/handler.hpp> #include <osmium/handler/node_locations_for_ways.hpp> #include <osmium/io/xml_input.hpp> #include <osmium/visitor.hpp> using index_...
32.478261
109
0.803213
zhaitianduo
4dae1d24938f250fb960ddb05d89a72f274f2652
5,755
cpp
C++
src/FeedController.cpp
JadedCtrl/rifen
eddbc45d987abe6524715a25ed56e09e8c349300
[ "MIT" ]
4
2021-03-22T06:38:33.000Z
2021-03-23T04:57:44.000Z
src/FeedController.cpp
JadedCtrl/rifen
eddbc45d987abe6524715a25ed56e09e8c349300
[ "MIT" ]
12
2021-02-25T22:13:36.000Z
2021-05-03T01:21:50.000Z
src/FeedController.cpp
JadedCtrl/rifen
eddbc45d987abe6524715a25ed56e09e8c349300
[ "MIT" ]
1
2021-10-11T06:40:06.000Z
2021-10-11T06:40:06.000Z
/* * Copyright 2020, Jaidyn Levesque <jadedctrl@teknik.io> * All rights reserved. Distributed under the terms of the MIT license. */ #include "FeedController.h" #include <iostream> #include <Catalog.h> #include <Directory.h> #include <FindDirectory.h> #include <Message.h> #include <MessageRunner.h> #include <Noti...
23.205645
82
0.699913
JadedCtrl
4db0b6eeb82823b53363ac6c2a5cd5b8bce8c6d4
4,859
cpp
C++
toonz/sources/stdfx/igs_perlin_noise.cpp
wofogen/tahoma2d
ce5a89a7b1027b2c1769accb91184a2ee6442b4d
[ "BSD-3-Clause" ]
36
2020-05-18T22:26:35.000Z
2022-02-19T00:09:25.000Z
toonz/sources/stdfx/igs_perlin_noise.cpp
LibrePhone/opentoonz
cb95a29db4c47ab1f36a6e85a039c4c9c901f88a
[ "BSD-3-Clause" ]
22
2017-03-16T18:52:36.000Z
2019-09-09T06:02:53.000Z
toonz/sources/stdfx/igs_perlin_noise.cpp
LibrePhone/opentoonz
cb95a29db4c47ab1f36a6e85a039c4c9c901f88a
[ "BSD-3-Clause" ]
9
2019-05-27T02:48:16.000Z
2022-03-29T12:32:04.000Z
#include <cmath> // pow() #include "iwa_noise1234.h" namespace { double perlin_noise_3d_(const double x, const double y, const double z, const int octaves_start // 0<= , const int octaves_end // 0<= , ...
36.810606
80
0.529739
wofogen
4db6989b183d07f065f757f7901cdeda556dacae
97
hpp
C++
Vega/Source/Vega/Vendor/Imgui.hpp
killdaNME/RyZen7m-3000apu
a5d2ce7966f2c9e5cc7f64d9d5bfaa5986cd7b48
[ "MIT" ]
1
2020-12-13T15:31:53.000Z
2020-12-13T15:31:53.000Z
Vega/Source/Vega/Vendor/Imgui.hpp
killdaNME/RyZen7m-3000apu
a5d2ce7966f2c9e5cc7f64d9d5bfaa5986cd7b48
[ "MIT" ]
null
null
null
Vega/Source/Vega/Vendor/Imgui.hpp
killdaNME/RyZen7m-3000apu
a5d2ce7966f2c9e5cc7f64d9d5bfaa5986cd7b48
[ "MIT" ]
null
null
null
#include <imgui.h> #include <examples/imgui_impl_glfw.h> #include <examples/imgui_impl_opengl3.h>
32.333333
40
0.804124
killdaNME
4dbaab39ff1bdd4141f38cbb132cabba06db39ec
1,468
cpp
C++
src/game/server/tf/bot/behavior/tf_bot_dead.cpp
cstom4994/SourceEngineRebuild
edfd7f8ce8af13e9d23586318350319a2e193c08
[ "MIT" ]
6
2022-01-23T09:40:33.000Z
2022-03-20T20:53:25.000Z
src/game/server/tf/bot/behavior/tf_bot_dead.cpp
cstom4994/SourceEngineRebuild
edfd7f8ce8af13e9d23586318350319a2e193c08
[ "MIT" ]
null
null
null
src/game/server/tf/bot/behavior/tf_bot_dead.cpp
cstom4994/SourceEngineRebuild
edfd7f8ce8af13e9d23586318350319a2e193c08
[ "MIT" ]
1
2022-02-06T21:05:23.000Z
2022-02-06T21:05:23.000Z
//========= Copyright Valve Corporation, All rights reserved. ============// // tf_bot_dead.cpp // Push up daisies // Michael Booth, May 2009 #include "cbase.h" #include "tf_player.h" #include "tf_gamerules.h" #include "bot/tf_bot.h" #include "bot/behavior/tf_bot_dead.h" #include "bot/behavior/tf_bot_behavior.h" #in...
24.881356
95
0.586512
cstom4994
4dbc0c2ce513bc772629df94d9f629a56438e820
5,865
hpp
C++
src/_cmsis_rtos/memorypool.hpp
ombre5733/weos
2c3edef042fa80baa7c8fb968ba3104b7119cf2d
[ "BSD-2-Clause" ]
11
2015-10-06T21:00:30.000Z
2021-07-27T05:54:44.000Z
src/_cmsis_rtos/memorypool.hpp
ombre5733/weos
2c3edef042fa80baa7c8fb968ba3104b7119cf2d
[ "BSD-2-Clause" ]
null
null
null
src/_cmsis_rtos/memorypool.hpp
ombre5733/weos
2c3edef042fa80baa7c8fb968ba3104b7119cf2d
[ "BSD-2-Clause" ]
1
2015-10-03T03:51:28.000Z
2015-10-03T03:51:28.000Z
/******************************************************************************* WEOS - Wrapper for embedded operating systems Copyright (c) 2013-2016, Manuel Freiberger All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the foll...
36.886792
86
0.665644
ombre5733
4dbd800d25a8dd4bc28e1185068f0870dde9120c
1,033
cpp
C++
src/engine/mt/asmjs/task.cpp
unrealeg4825/Test-engine
12ce46dbbfd9c738e015a2d549df46c7bb4ffad0
[ "MIT" ]
3
2021-05-27T10:43:33.000Z
2021-05-27T10:44:02.000Z
src/engine/mt/asmjs/task.cpp
unrealeg4825/Test-engine
12ce46dbbfd9c738e015a2d549df46c7bb4ffad0
[ "MIT" ]
null
null
null
src/engine/mt/asmjs/task.cpp
unrealeg4825/Test-engine
12ce46dbbfd9c738e015a2d549df46c7bb4ffad0
[ "MIT" ]
3
2021-05-27T10:44:15.000Z
2021-11-18T09:20:10.000Z
#include "engine/lumix.h" #include "engine/iallocator.h" #include "engine/mt/task.h" #include "engine/mt/thread.h" #include "engine/profiler.h" #if !LUMIX_SINGLE_THREAD() namespace Lumix { namespace MT { struct TaskImpl { IAllocator& allocator; }; Task::Task(IAllocator& allocator) { m_implementation = LUMIX_NEW...
12.297619
63
0.713456
unrealeg4825
4dc0304f7b8e101917ccb84d856e3b3aeb88e361
4,406
cpp
C++
AudioKit/Common/Internals/CoreAudio/Apple Code/ParameterRamper.cpp
ethi1989/AudioKit
97acc8da6dfb75408b2276998073de7a4511d480
[ "MIT" ]
206
2020-10-28T12:47:49.000Z
2022-03-26T14:09:30.000Z
AudioKit/Common/Internals/CoreAudio/Apple Code/ParameterRamper.cpp
ethi1989/AudioKit
97acc8da6dfb75408b2276998073de7a4511d480
[ "MIT" ]
7
2020-10-29T10:29:23.000Z
2021-08-07T00:22:03.000Z
AudioKit/Common/Internals/CoreAudio/Apple Code/ParameterRamper.cpp
ethi1989/AudioKit
97acc8da6dfb75408b2276998073de7a4511d480
[ "MIT" ]
30
2020-10-28T16:11:40.000Z
2021-12-28T01:15:23.000Z
// // ParameterRamper.cpp // AudioKit // // Utility class to manage DSP parameters which can change value smoothly (be ramped) while rendering, without introducing clicks or other distortion into the signal. // // Originally based on Apple sample code, but significantly altered by Aurelius Prochazka // // Copyright © ...
23.816216
166
0.666364
ethi1989
4dc31fa2013a4e4f26d845ffc650475ae5c17a75
971
hpp
C++
include/RED4ext/Types/generated/move/SecureFootingResult.hpp
Cyberpunk-Extended-Development-Team/RED4ext.SDK
2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae
[ "MIT" ]
1
2021-02-01T23:07:50.000Z
2021-02-01T23:07:50.000Z
include/RED4ext/Types/generated/move/SecureFootingResult.hpp
Cyberpunk-Extended-Development-Team/RED4ext.SDK
2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae
[ "MIT" ]
null
null
null
include/RED4ext/Types/generated/move/SecureFootingResult.hpp
Cyberpunk-Extended-Development-Team/RED4ext.SDK
2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae
[ "MIT" ]
null
null
null
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/REDhash.hpp> #include <RED4ext/Types/generated/Vector4.hpp> #include <RED4ext/Types/generated/move/SecureFootingFailureReason.hpp> #include <RED4ext/Types/generated/move/SecureFoot...
30.34375
70
0.763131
Cyberpunk-Extended-Development-Team
4dc84041d81d3b9596b1329997eea6ca6c632c99
836
cpp
C++
solutions/286.walls-and-gates.290509829.ac.cpp
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
78
2020-10-22T11:31:53.000Z
2022-02-22T13:27:49.000Z
solutions/286.walls-and-gates.290509829.ac.cpp
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
null
null
null
solutions/286.walls-and-gates.290509829.ac.cpp
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
26
2020-10-23T15:10:44.000Z
2021-11-07T16:13:50.000Z
int dx[] = {0, 0, 1, -1}; int dy[] = {1, -1, 0, 0}; class Solution { public: void wallsAndGates(vector<vector<int>> &rooms) { int n = rooms.size(); if (!n) return; int m = rooms[0].size(); int INF = 2147483647; queue<pair<int, int>> q; int dist = 1; for (int i = 0; i < n; i++) ...
19.904762
73
0.379187
satu0king
4dc9e8d23f7f7057ceed6069c74b022b4f460758
7,726
cc
C++
arcane/src/arcane/parallel/VariableParallelOperationBase.cc
cedricga91/framework
143eeccb5bf375df4a3f11b888681f84f60380c6
[ "Apache-2.0" ]
16
2021-09-20T12:37:01.000Z
2022-03-18T09:19:14.000Z
arcane/src/arcane/parallel/VariableParallelOperationBase.cc
cedricga91/framework
143eeccb5bf375df4a3f11b888681f84f60380c6
[ "Apache-2.0" ]
66
2021-09-17T13:49:39.000Z
2022-03-30T16:24:07.000Z
arcane/src/arcane/parallel/VariableParallelOperationBase.cc
cedricga91/framework
143eeccb5bf375df4a3f11b888681f84f60380c6
[ "Apache-2.0" ]
11
2021-09-27T16:48:55.000Z
2022-03-23T19:06:56.000Z
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*- //----------------------------------------------------------------------------- // Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com) // See the top-level COPYRIGHT file for details. // SPDX-License-Identifier: Apache-2...
34.959276
112
0.533653
cedricga91
4dcae401a0a9fd9e61c47e7b21e73ed4a66fe5a0
496
cpp
C++
ambiguity-resolution2.cpp
rsds8540/cpp-solved-problems
cbd63e0743d7653d8e06401026c16aa1dd5f775b
[ "Apache-2.0" ]
1
2021-04-27T18:23:05.000Z
2021-04-27T18:23:05.000Z
ambiguity-resolution2.cpp
rsds8540/cpp-solved-problems
cbd63e0743d7653d8e06401026c16aa1dd5f775b
[ "Apache-2.0" ]
null
null
null
ambiguity-resolution2.cpp
rsds8540/cpp-solved-problems
cbd63e0743d7653d8e06401026c16aa1dd5f775b
[ "Apache-2.0" ]
null
null
null
#include<bits/stdc++.h> using namespace std; class base { public: void greet() { cout<<"hello"<<endl; } }; class derived: public base { public: void greet() //this function will be overwritten after creation of the object of derived class { cout<<"Namaste"<<endl; } }; ...
16.533333
99
0.59879
rsds8540
4dcb9316f4240fe4d35e9519ce700a08ccbf8bb9
64,874
cpp
C++
DiscImageCreator/outputScsiCmdLog.cpp
tungol/DiscImageCreator
0dbe5e86402848c56fa2aca7c993eabdaed2e0bb
[ "Apache-2.0" ]
null
null
null
DiscImageCreator/outputScsiCmdLog.cpp
tungol/DiscImageCreator
0dbe5e86402848c56fa2aca7c993eabdaed2e0bb
[ "Apache-2.0" ]
null
null
null
DiscImageCreator/outputScsiCmdLog.cpp
tungol/DiscImageCreator
0dbe5e86402848c56fa2aca7c993eabdaed2e0bb
[ "Apache-2.0" ]
null
null
null
/** * Copyright 2011-2018 sarami * * 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 ...
33.268718
120
0.688735
tungol
4dce6c9ece96363ecd1f5bd5b0888a1db9332d9d
1,896
hpp
C++
include/type_tools.hpp
ne0ndrag0n/BlastBASIC
f38f05c27fe5532f9ea52f4599f72d6a5353e15c
[ "MIT" ]
2
2021-01-26T11:58:08.000Z
2021-05-26T22:12:19.000Z
include/type_tools.hpp
ne0ndrag0n/GoldScorpion
f38f05c27fe5532f9ea52f4599f72d6a5353e15c
[ "MIT" ]
null
null
null
include/type_tools.hpp
ne0ndrag0n/GoldScorpion
f38f05c27fe5532f9ea52f4599f72d6a5353e15c
[ "MIT" ]
null
null
null
#pragma once #include "token.hpp" #include "result_type.hpp" #include "symbol.hpp" #include "ast.hpp" #include <string> #include <optional> namespace GoldScorpion { struct SymbolTypeSettings { std::string fileId; SymbolResolver& symbols; }; using SymbolTypeResult = Result< SymbolType, std:...
34.472727
103
0.741561
ne0ndrag0n
4dd0fe514094f2a11e71db7d7051e1d553bbf0e5
876
cpp
C++
src/gb-lib/mem/mirrorbank.cpp
johannes51/GBEmu
bb85debc8191d7eaa3917c2d441172f97731374c
[ "MIT" ]
null
null
null
src/gb-lib/mem/mirrorbank.cpp
johannes51/GBEmu
bb85debc8191d7eaa3917c2d441172f97731374c
[ "MIT" ]
null
null
null
src/gb-lib/mem/mirrorbank.cpp
johannes51/GBEmu
bb85debc8191d7eaa3917c2d441172f97731374c
[ "MIT" ]
null
null
null
#include "mirrorbank.h" #include <stdexcept> #include "location/location.h" #include "mem_tools.h" MirrorBank::MirrorBank(const MemoryArea& mirrorArea, const MemoryArea& originalArea, IMemoryManagerSP mirrored) : SingleAreaManager(mirrorArea) , offset_(originalArea.from - mirrorArea.from) , mirrored_(std...
31.285714
111
0.756849
johannes51
4dd3a1cd09f0812fe436090c41b6f88e69478e24
1,231
cc
C++
fbstab/components/dense_data.cc
tcunis/fbstab
25d5259f683427867f140567d739a55ed7359aca
[ "BSD-3-Clause" ]
16
2019-08-09T18:43:17.000Z
2022-01-07T12:38:27.000Z
fbstab/components/dense_data.cc
tcunis/fbstab
25d5259f683427867f140567d739a55ed7359aca
[ "BSD-3-Clause" ]
12
2019-08-14T17:33:29.000Z
2021-02-01T12:03:36.000Z
fbstab/components/dense_data.cc
tcunis/fbstab
25d5259f683427867f140567d739a55ed7359aca
[ "BSD-3-Clause" ]
3
2019-08-09T19:03:23.000Z
2020-05-07T23:03:33.000Z
#include "fbstab/components/dense_data.h" #include <Eigen/Dense> #include <cmath> #include <stdexcept> namespace fbstab { using MatrixXd = Eigen::MatrixXd; using VectorXd = Eigen::VectorXd; void DenseData::gemvH(const Eigen::VectorXd &x, double a, double b, Eigen::VectorXd *y) const { *y = a...
27.977273
75
0.576767
tcunis
4dd441fd93d7ec0f5533639612df4b552c50b987
2,661
cpp
C++
gueepo2D/engine/core/GameObject/GameWorld.cpp
guilhermepo2/gueepo2D
deb03ff39c871710c07d36c366b53b34dbfebf08
[ "MIT" ]
1
2022-02-03T19:24:47.000Z
2022-02-03T19:24:47.000Z
gueepo2D/engine/core/GameObject/GameWorld.cpp
guilhermepo2/gueepo2D
deb03ff39c871710c07d36c366b53b34dbfebf08
[ "MIT" ]
4
2021-10-30T19:03:07.000Z
2022-02-10T01:06:02.000Z
gueepo2D/engine/core/GameObject/GameWorld.cpp
guilhermepo2/gueepo2D
deb03ff39c871710c07d36c366b53b34dbfebf08
[ "MIT" ]
1
2021-10-01T03:08:21.000Z
2021-10-01T03:08:21.000Z
#include "gueepo2Dpch.h" #include "GameWorld.h" #include "Entity.h" #include "GameObject.h" namespace gueepo { GameWorld* GameWorld::s_instance = nullptr; GameWorld::GameWorld() { if (s_instance != nullptr) { LOG_ERROR("trying to create a second instance of the game world?!"); return; } s_instance = ...
23.972973
108
0.668546
guilhermepo2
4dd48978ce7b6d77a579bc94675ba8937c4c8aee
148,518
cpp
C++
src/source.cpp
jlangvand/jucipp
0a3102f13e62d78a329d488fb1eb8812181e448e
[ "MIT" ]
null
null
null
src/source.cpp
jlangvand/jucipp
0a3102f13e62d78a329d488fb1eb8812181e448e
[ "MIT" ]
null
null
null
src/source.cpp
jlangvand/jucipp
0a3102f13e62d78a329d488fb1eb8812181e448e
[ "MIT" ]
null
null
null
#include "source.hpp" #include "config.hpp" #include "ctags.hpp" #include "directories.hpp" #include "filesystem.hpp" #include "git.hpp" #include "info.hpp" #include "json.hpp" #include "menu.hpp" #include "selection_dialog.hpp" #include "terminal.hpp" #include "utility.hpp" #include <algorithm> #include <boost/spirit/...
38.706802
280
0.583916
jlangvand
4de1e6ea25fb7a5f8a2ac2988c1414c88e5a2021
4,504
cpp
C++
tdmq/src/v20200217/model/ModifyRocketMQNamespaceRequest.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
1
2022-01-27T09:27:34.000Z
2022-01-27T09:27:34.000Z
tdmq/src/v20200217/model/ModifyRocketMQNamespaceRequest.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
null
null
null
tdmq/src/v20200217/model/ModifyRocketMQNamespaceRequest.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * 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 ...
26.494118
96
0.732682
suluner
4de31b71452a6d5c691aae0e7af3f36e6ee435b6
34,119
cpp
C++
src/AmpleObject.cpp
elmindreda/Ample
7366b8591d8cd1f09ae03a6dd728130769891ba5
[ "BSD-3-Clause" ]
4
2015-02-25T17:43:10.000Z
2016-07-29T14:14:02.000Z
src/AmpleObject.cpp
elmindreda/Ample
7366b8591d8cd1f09ae03a6dd728130769891ba5
[ "BSD-3-Clause" ]
null
null
null
src/AmpleObject.cpp
elmindreda/Ample
7366b8591d8cd1f09ae03a6dd728130769891ba5
[ "BSD-3-Clause" ]
null
null
null
//--------------------------------------------------------------------- // Simple C++ retained mode library for Verse // Copyright (c) PDC, KTH // Written by Camilla Berglund <elmindreda@elmindreda.org> //--------------------------------------------------------------------- #include <verse.h> #include <Ample.h> name...
27.100079
191
0.615698
elmindreda
4e2e3d639888fdbe1725897136f1919eb1da7d9f
2,806
cpp
C++
WS01/w1_p2.cpp
Rainbow1nTheDark/OOP345
1d56e8875ab2c1c8b31b5c520add799ebf8d8ec5
[ "Apache-2.0" ]
null
null
null
WS01/w1_p2.cpp
Rainbow1nTheDark/OOP345
1d56e8875ab2c1c8b31b5c520add799ebf8d8ec5
[ "Apache-2.0" ]
null
null
null
WS01/w1_p2.cpp
Rainbow1nTheDark/OOP345
1d56e8875ab2c1c8b31b5c520add799ebf8d8ec5
[ "Apache-2.0" ]
null
null
null
// Workshop 1 - Linkage, Storage Duration, Namespaces, and OS Interface // Cornel - 2020/01/08 #include <iostream> #include <fstream> #include "event.h" #include "event.h" /* input file format: a coma separated set of fields; some fields have a single parameter T175,SComputer Starting,P, codes T - time (parameter: a...
26.471698
106
0.619031
Rainbow1nTheDark
4e32ab1e4d494dbca1f82cc38c383ae0abad06fe
761
hpp
C++
include/react/sandbox/requirements_of.hpp
ldionne/react
57b51d179661a9c21bc1f987d124722ac36399ac
[ "BSL-1.0" ]
6
2015-06-05T17:48:12.000Z
2020-10-04T03:45:18.000Z
include/react/sandbox/requirements_of.hpp
ldionne/react
57b51d179661a9c21bc1f987d124722ac36399ac
[ "BSL-1.0" ]
1
2021-06-23T05:51:46.000Z
2021-06-23T05:51:46.000Z
include/react/sandbox/requirements_of.hpp
ldionne/react
57b51d179661a9c21bc1f987d124722ac36399ac
[ "BSL-1.0" ]
2
2016-05-06T06:55:40.000Z
2020-03-25T19:19:14.000Z
/*! * @file * Defines `react::requirements_of`. */ #ifndef REACT_REQUIREMENTS_OF_HPP #define REACT_REQUIREMENTS_OF_HPP #include <react/sandbox/detail/fetch_nested.hpp> #include <boost/mpl/set.hpp> namespace react { #ifdef REACT_DOXYGEN_INVOKED /*! * Returns the requirements of a computation. * ...
23.060606
73
0.701708
ldionne
4e34a6899ffd8a6bc8f021318f42eb10f1be54e0
11,206
cpp
C++
source/code/scxsystemlib/common/scxsmbios.cpp
snchennapragada/pal
9ee3e116dc2fadb44efa0938de7f0b737784fe16
[ "MIT" ]
37
2016-04-14T20:06:15.000Z
2019-05-06T17:30:17.000Z
source/code/scxsystemlib/common/scxsmbios.cpp
snchennapragada/pal
9ee3e116dc2fadb44efa0938de7f0b737784fe16
[ "MIT" ]
37
2016-03-11T20:47:11.000Z
2019-04-01T22:53:04.000Z
source/code/scxsystemlib/common/scxsmbios.cpp
snchennapragada/pal
9ee3e116dc2fadb44efa0938de7f0b737784fe16
[ "MIT" ]
20
2016-05-26T23:53:01.000Z
2019-05-06T08:54:08.000Z
/*-------------------------------------------------------------------------------- Copyright (c) Microsoft Corporation. All rights reserved. See license.txt for license information. */ /** \file \brief This file contains the abstraction of the smbios on Linux and Solaris x86. \...
38.245734
172
0.536766
snchennapragada
4e37ef49b7148400b6417ea85f769e43e8c40861
3,950
cpp
C++
Source/Motor2D/j1TextUI.cpp
Needlesslord/PaintWars_by_BrainDeadStudios
578985b1a41ab9f0b8c5dd087ba3bc3d3ffd2edf
[ "MIT" ]
2
2020-03-06T11:32:40.000Z
2020-03-20T12:17:30.000Z
Source/Motor2D/j1TextUI.cpp
Needlesslord/Heathen_Games
578985b1a41ab9f0b8c5dd087ba3bc3d3ffd2edf
[ "MIT" ]
2
2020-03-03T09:56:57.000Z
2020-05-02T15:50:45.000Z
Source/Motor2D/j1TextUI.cpp
Needlesslord/Heathen_Games
578985b1a41ab9f0b8c5dd087ba3bc3d3ffd2edf
[ "MIT" ]
1
2020-03-17T18:50:53.000Z
2020-03-17T18:50:53.000Z
#include "j1UIElements.h" #include "j1UI_Manager.h" #include "j1App.h" #include "j1FontsUI.h" #include "j1Render.h" #include "j1Textures.h" #include "j1Input.h" #include "j1Window.h" #include "j1TextUI.h" j1TextUI::j1TextUI() { this->type = TypeOfUI::GUI_LABEL; } j1TextUI::~j1TextUI() { } bool j1TextUI::Start() {...
33.193277
167
0.766076
Needlesslord
4e448891d7d94daa75f5f8e8c717194279ea91e4
5,463
cpp
C++
renderer.cpp
nvpro-samples/gl_cadscene_rendertechniques
70becfc08318c54c2de45f1791e6c7f821144029
[ "Apache-2.0" ]
134
2015-01-09T13:00:56.000Z
2022-02-06T06:23:25.000Z
renderer.cpp
nvpro-samples/gl_cadscene_rendertechniques
70becfc08318c54c2de45f1791e6c7f821144029
[ "Apache-2.0" ]
4
2015-08-23T17:44:59.000Z
2019-11-14T14:08:27.000Z
renderer.cpp
nvpro-samples/gl_cadscene_rendertechniques
70becfc08318c54c2de45f1791e6c7f821144029
[ "Apache-2.0" ]
38
2015-02-13T22:27:09.000Z
2021-10-16T00:36:26.000Z
/* * Copyright (c) 2014-2021, NVIDIA CORPORATION. All rights reserved. * * 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 ...
29.52973
164
0.630789
nvpro-samples
4e458759d26deebe795d4939bb6305e76105278c
728
cpp
C++
aoc2017/aoc170201.cpp
jiayuehua/adventOfCode
fd47ddefd286fe94db204a9850110f8d1d74d15b
[ "Unlicense" ]
null
null
null
aoc2017/aoc170201.cpp
jiayuehua/adventOfCode
fd47ddefd286fe94db204a9850110f8d1d74d15b
[ "Unlicense" ]
null
null
null
aoc2017/aoc170201.cpp
jiayuehua/adventOfCode
fd47ddefd286fe94db204a9850110f8d1d74d15b
[ "Unlicense" ]
null
null
null
#include <boost/circular_buffer.hpp> #include <iostream> #include <fstream> #include <sstream> #include <algorithm> #include <range/v3/algorithm.hpp> #include <range/v3/numeric.hpp> #include <range/v3/view.hpp> namespace views = ranges::views; int main(int argc, char **argv) { if (argc > 1) { std::ifstream ifs(a...
26
66
0.614011
jiayuehua
4e46dc1c41aee16314813d8300b5ba6fc7137fe2
25,402
cpp
C++
src/chain_action/self_pass_generator.cpp
sanmit/HFO-benchmark
0104ff7527485c8a7c159e6bf16c410eded72c0a
[ "MIT" ]
1
2018-11-22T16:04:55.000Z
2018-11-22T16:04:55.000Z
allejos2d/src/chain_action/self_pass_generator.cpp
PmecSimulation/Allejos2D
d0b3cb48e88f44b509e7dfe0329bb035bab748ce
[ "Apache-2.0" ]
null
null
null
allejos2d/src/chain_action/self_pass_generator.cpp
PmecSimulation/Allejos2D
d0b3cb48e88f44b509e7dfe0329bb035bab748ce
[ "Apache-2.0" ]
null
null
null
// -*-c++-*- /*! \file self_pass_generator.cpp \brief self pass generator Source File */ /* *Copyright: Copyright (C) Hidehisa AKIYAMA This code 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 ...
32.692407
114
0.459846
sanmit
4e4c666994ce0cc1b2c2f139e3cd877a6d192ace
1,866
cpp
C++
src/api/api-example.cpp
knzm/kytea
e29eaf9933cc31f4461a8e726cff5141253a9727
[ "Apache-2.0" ]
1
2018-10-25T07:49:10.000Z
2018-10-25T07:49:10.000Z
src/api/api-example.cpp
knzm/kytea
e29eaf9933cc31f4461a8e726cff5141253a9727
[ "Apache-2.0" ]
null
null
null
src/api/api-example.cpp
knzm/kytea
e29eaf9933cc31f4461a8e726cff5141253a9727
[ "Apache-2.0" ]
null
null
null
#include <iostream> // a file including the main program #include "kytea/kytea.h" // a file including sentence, word, and pronunciation objects #include "kytea/kytea-struct.h" using namespace std; using namespace kytea; int main(int argc, char** argv) { // Create an instance of the Kytea program Kytea kytea...
32.736842
78
0.606109
knzm
4e54adde281a096d1950fd62bbc8c1b4f49accf0
6,893
cpp
C++
Day 22 Part 2/main.cpp
Miroslav-Cetojevic/aoc-2015
2807fcd3fc684843ae4222b25af6fd086fac77f5
[ "Unlicense" ]
1
2019-11-19T20:19:18.000Z
2019-11-19T20:19:18.000Z
Day 22 Part 2/main.cpp
Miroslav-Cetojevic/aoc-2015
2807fcd3fc684843ae4222b25af6fd086fac77f5
[ "Unlicense" ]
null
null
null
Day 22 Part 2/main.cpp
Miroslav-Cetojevic/aoc-2015
2807fcd3fc684843ae4222b25af6fd086fac77f5
[ "Unlicense" ]
null
null
null
#include <algorithm> #include <iostream> #include <vector> // ======== // Entities // ======== struct Hero { std::int64_t health; std::uint64_t mana; std::uint64_t armor; }; struct Boss { std::int64_t health; std::uint64_t damage; }; // ================ // Spells & Effects // ================ // need to forwa...
23.130872
96
0.673582
Miroslav-Cetojevic
4e5682a1650bc6673e1e26c04f80e9b921f3ca6a
15,398
cpp
C++
NOLF/Shared/SharedMission.cpp
rastrup/no-one-lives-forever
dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54
[ "Unlicense" ]
65
2015-02-28T03:35:14.000Z
2021-09-23T05:43:33.000Z
NOLF/Shared/SharedMission.cpp
rastrup/no-one-lives-forever
dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54
[ "Unlicense" ]
null
null
null
NOLF/Shared/SharedMission.cpp
rastrup/no-one-lives-forever
dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54
[ "Unlicense" ]
27
2015-02-28T07:42:01.000Z
2022-02-11T01:35:20.000Z
// ----------------------------------------------------------------------- // // // MODULE : SharedMission.cpp // // PURPOSE : SharedMission implementation - shared mission summary stuff // // CREATED : 9/16/99 // // (c) 1999 Monolith Productions, Inc. All Rights Reserved // // -----------------------------...
33.257019
87
0.584167
rastrup
4e5cb6c13d0ce471472e6712fb9bc163b8cb8cfb
20,676
cpp
C++
libraries/ine-vm/tests/spec/call_indirect_tests.cpp
inery-blockchain/inery
2823539f76a0debae22b6783781b1374c63a59d8
[ "MIT" ]
null
null
null
libraries/ine-vm/tests/spec/call_indirect_tests.cpp
inery-blockchain/inery
2823539f76a0debae22b6783781b1374c63a59d8
[ "MIT" ]
null
null
null
libraries/ine-vm/tests/spec/call_indirect_tests.cpp
inery-blockchain/inery
2823539f76a0debae22b6783781b1374c63a59d8
[ "MIT" ]
null
null
null
#include <algorithm> #include <vector> #include <iostream> #include <iterator> #include <cmath> #include <cstdlib> #include <catch2/catch.hpp> #include <utils.hpp> #include <wasm_config.hpp> #include <inery/vm/backend.hpp> using namespace inery; using namespace inery::vm; extern wasm_allocator wa; BACKEND_TEST_CASE( ...
75.736264
172
0.725285
inery-blockchain
4e5ce4235b7297fb7247875394ab7857c7d331eb
13,717
cpp
C++
src/drivers/goindol.cpp
gameblabla/mame_nspire
83dfe1606aba906bd28608f2cb8f0754492ac3da
[ "Unlicense" ]
33
2015-08-10T11:13:47.000Z
2021-08-30T10:00:46.000Z
src/drivers/goindol.cpp
gameblabla/mame_nspire
83dfe1606aba906bd28608f2cb8f0754492ac3da
[ "Unlicense" ]
13
2015-08-25T03:53:08.000Z
2022-03-30T18:02:35.000Z
src/drivers/goindol.cpp
gameblabla/mame_nspire
83dfe1606aba906bd28608f2cb8f0754492ac3da
[ "Unlicense" ]
40
2015-08-25T05:09:21.000Z
2022-02-08T05:02:30.000Z
#include "../vidhrdw/goindol.cpp" /*************************************************************************** GOINDOL Driver provided by Jarek Parchanski (jpdev@friko6.onet.pl) ***************************************************************************/ #include "driver.h" int goindol_vh_start(void); void goi...
32.504739
119
0.680469
gameblabla
4e63569fff87e19a34116a1204caea2bb1375857
172
hpp
C++
src/controllers/hotkeys/HotkeyHelpers.hpp
agenttud/chatterino7
b40763c5f847c017106115f92b864b40b3a20501
[ "MIT" ]
200
2017-01-24T11:23:03.000Z
2019-05-15T19:31:18.000Z
src/controllers/hotkeys/HotkeyHelpers.hpp
agenttud/chatterino7
b40763c5f847c017106115f92b864b40b3a20501
[ "MIT" ]
878
2017-02-06T13:25:24.000Z
2019-05-18T16:15:21.000Z
src/controllers/hotkeys/HotkeyHelpers.hpp
agenttud/chatterino7
b40763c5f847c017106115f92b864b40b3a20501
[ "MIT" ]
138
2017-02-07T18:01:49.000Z
2019-05-18T19:00:03.000Z
#pragma once #include <QString> #include <vector> namespace chatterino { std::vector<QString> parseHotkeyArguments(QString argumentString); } // namespace chatterino
14.333333
66
0.767442
agenttud
4e6665fe6dbf02a5fb4af8c55d94b849798b8836
4,826
cpp
C++
src/Screens/MusicSelect/Drawables/ControlPanels.cpp
Subject38/jujube
664b995cc65fa6045433b4837d765c62fe6490b4
[ "MIT" ]
19
2020-02-28T20:34:12.000Z
2022-01-28T20:18:25.000Z
src/Screens/MusicSelect/Drawables/ControlPanels.cpp
Subject38/jujube
664b995cc65fa6045433b4837d765c62fe6490b4
[ "MIT" ]
7
2019-10-22T09:43:16.000Z
2022-03-12T00:15:13.000Z
src/Screens/MusicSelect/Drawables/ControlPanels.cpp
Subject38/jujube
664b995cc65fa6045433b4837d765c62fe6490b4
[ "MIT" ]
5
2019-10-22T08:14:57.000Z
2021-03-13T06:32:04.000Z
#include "ControlPanels.hpp" #include "../../../Toolkit/SFMLHelpers.hpp" namespace MusicSelect { void LeftButton::draw(sf::RenderTarget& target, sf::RenderStates states) const { states.transform *= getTransform(); sf::CircleShape circle{get_panel_size()*0.4f}; circle.setFillColor(sf::Color...
43.477477
87
0.648363
Subject38
4e6ae5947b7e3480f74525a74eceeda1ab1347ef
752
cpp
C++
lib/DBMS/DBMS.cpp
travisolbrich/315-P1-DBMS
84168bbb3f5fe7518cbb212baa01d54ca7e6815d
[ "MIT" ]
null
null
null
lib/DBMS/DBMS.cpp
travisolbrich/315-P1-DBMS
84168bbb3f5fe7518cbb212baa01d54ca7e6815d
[ "MIT" ]
null
null
null
lib/DBMS/DBMS.cpp
travisolbrich/315-P1-DBMS
84168bbb3f5fe7518cbb212baa01d54ca7e6815d
[ "MIT" ]
3
2016-02-15T22:32:31.000Z
2021-01-10T14:41:14.000Z
#include "../SqlTokenizer/SqlTokenizer.h" #include "../SqlTokenizer/Token.h" #include "../SqlParser/SqlParser.h" #include "../DBMSEngine/Relation.h" #include "../DBMSEngine/Engine.h" #include "DBMS.h" #include <string> #include <vector> /** Returns: 0: valid answer 1: Exception 2: Exit called **/ int DBMS::execut...
18.341463
52
0.660904
travisolbrich
4e6af3670917df035958d0dbc1368177dd4e0669
157
cpp
C++
problem-2/main.cpp
ProgrammingLanguagesClass/Assignment-2
a65ff25decee4da401660a0c85bb3467f065e119
[ "MIT" ]
1
2019-12-10T11:03:59.000Z
2019-12-10T11:03:59.000Z
problem-2/main.cpp
ProgrammingLanguagesClass/Assignment-2
a65ff25decee4da401660a0c85bb3467f065e119
[ "MIT" ]
null
null
null
problem-2/main.cpp
ProgrammingLanguagesClass/Assignment-2
a65ff25decee4da401660a0c85bb3467f065e119
[ "MIT" ]
1
2019-01-03T11:00:30.000Z
2019-01-03T11:00:30.000Z
#include <iostream> #include "main.h" using namespace std; string getGrade(int score) { string grade; // Write your code here return grade; }
12.076923
27
0.66879
ProgrammingLanguagesClass
4e6c736bb84dcefe43dc1cdebe261f47dc437c97
6,678
cpp
C++
test/distribution/joint_distribution_iid_test.cpp
aeolusbot-tommyliu/fl
a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02
[ "MIT" ]
17
2015-07-03T06:53:05.000Z
2021-05-15T20:55:12.000Z
test/distribution/joint_distribution_iid_test.cpp
aeolusbot-tommyliu/fl
a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02
[ "MIT" ]
3
2015-02-20T12:48:17.000Z
2019-12-18T08:45:13.000Z
test/distribution/joint_distribution_iid_test.cpp
aeolusbot-tommyliu/fl
a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02
[ "MIT" ]
15
2015-02-20T11:34:14.000Z
2021-05-15T20:55:13.000Z
/* * Software License Agreement (BSD License) * * Copyright (c) 2014 Max-Planck-Institute for Intelligent Systems, * University of Southern California * Jan Issac (jan.issac@gmail.com) * Manuel Wuthrich (manuel.wuthrich@gmail.com) * * * * Redistribution and use in source and binary...
33.727273
81
0.686733
aeolusbot-tommyliu
4e6d1fa6994a4c3374ff41e672058f0baf99e5ab
576
cpp
C++
Opportunity.ChakraBridge.WinRT/Value/JsString.cpp
OpportunityLiu/ChakraBridge
38e3eb058a94fb2f8bab0aed19af2dbfdbb556f3
[ "MIT" ]
null
null
null
Opportunity.ChakraBridge.WinRT/Value/JsString.cpp
OpportunityLiu/ChakraBridge
38e3eb058a94fb2f8bab0aed19af2dbfdbb556f3
[ "MIT" ]
null
null
null
Opportunity.ChakraBridge.WinRT/Value/JsString.cpp
OpportunityLiu/ChakraBridge
38e3eb058a94fb2f8bab0aed19af2dbfdbb556f3
[ "MIT" ]
null
null
null
#include "pch.h" #include "JsString.h" using namespace Opportunity::ChakraBridge::WinRT; JsStringImpl::~JsStringImpl() { // ignore error. JsRelease(Reference.Ref, nullptr); } JsStringImpl::JsStringImpl(RawValue ref) :JsValueImpl(std::move(ref)) { Reference.AddRef(); } uint32 JsStringImpl::Length::ge...
18
73
0.704861
OpportunityLiu
4e70497236b5f181b81da3ed17ebe1bd946a0c23
382
hpp
C++
src/geocode/protocol_mapquest.hpp
stephaneyfx/geocode-cpp
18ec8f62cbd71953f200c41887408028a03cd8a5
[ "MIT" ]
null
null
null
src/geocode/protocol_mapquest.hpp
stephaneyfx/geocode-cpp
18ec8f62cbd71953f200c41887408028a03cd8a5
[ "MIT" ]
null
null
null
src/geocode/protocol_mapquest.hpp
stephaneyfx/geocode-cpp
18ec8f62cbd71953f200c41887408028a03cd8a5
[ "MIT" ]
null
null
null
// Copyright (C) 2018 Stephane Raux. Distributed under the MIT license. #pragma once #include "protocol.hpp" #include <string> class ProtocolMapQuest { public: explicit ProtocolMapQuest(std::string key); std::string host() const; Coordinates parse(const Response& resp) const; Request request(const st...
21.222222
71
0.719895
stephaneyfx
4e73d28eaf35e20955ff67c5a9a70c97c9781d65
1,318
cpp
C++
raizes_equacao.cpp
Institutionoffoz/Teste1
cfb5c67b8b93daf0a777caed15f8fcefa1fce51d
[ "MIT" ]
null
null
null
raizes_equacao.cpp
Institutionoffoz/Teste1
cfb5c67b8b93daf0a777caed15f8fcefa1fce51d
[ "MIT" ]
null
null
null
raizes_equacao.cpp
Institutionoffoz/Teste1
cfb5c67b8b93daf0a777caed15f8fcefa1fce51d
[ "MIT" ]
null
null
null
#include <stdio.h> #include <stdlib.h> #include <math.h> int raizes(double a, double b, double c, double *px1, double *px2) { double delta; if(a == 0.0) { *px1 = *px2 = -c/b; } else { delta = b * b - 4 * a * c; if(delta < 0) { *px1 = *px2 = -3.141592...
19.671642
78
0.403642
Institutionoffoz
4e81115ab7d2f1b129ff498bd35b15abddc3dcb6
710
cpp
C++
src/Evolution/Systems/Burgers/BoundaryConditions/RegisterDerivedWithCharm.cpp
macedo22/spectre
97b2b7ae356cf86830258cb5f689f1191fdb6ddd
[ "MIT" ]
1
2018-10-01T06:07:16.000Z
2018-10-01T06:07:16.000Z
src/Evolution/Systems/Burgers/BoundaryConditions/RegisterDerivedWithCharm.cpp
macedo22/spectre
97b2b7ae356cf86830258cb5f689f1191fdb6ddd
[ "MIT" ]
4
2018-06-04T20:26:40.000Z
2018-07-27T14:54:55.000Z
src/Evolution/Systems/Burgers/BoundaryConditions/RegisterDerivedWithCharm.cpp
macedo22/spectre
97b2b7ae356cf86830258cb5f689f1191fdb6ddd
[ "MIT" ]
null
null
null
// Distributed under the MIT License. // See LICENSE.txt for details. #include "Evolution/Systems/Burgers/BoundaryConditions/RegisterDerivedWithCharm.hpp" #include "Evolution/Systems/Burgers/BoundaryConditions/BoundaryCondition.hpp" #include "Evolution/Systems/Burgers/BoundaryConditions/Dirichlet.hpp" #include "Evolu...
41.764706
84
0.840845
macedo22
4e829278fb9227290b2d2fe71b937f2cd66e3766
10,357
cpp
C++
src/driveshaft-config.cpp
tlalexan/driveshaft
122422e78e561053ec859015a4de5990f97a297b
[ "MIT" ]
43
2015-09-22T21:07:56.000Z
2020-08-05T16:10:03.000Z
src/driveshaft-config.cpp
tlalexan/driveshaft
122422e78e561053ec859015a4de5990f97a297b
[ "MIT" ]
16
2015-09-22T15:53:18.000Z
2020-08-10T16:22:48.000Z
src/driveshaft-config.cpp
tlalexan/driveshaft
122422e78e561053ec859015a4de5990f97a297b
[ "MIT" ]
11
2015-09-21T20:36:37.000Z
2020-06-16T13:40:05.000Z
#include <fstream> #include <boost/range/algorithm/copy.hpp> #include <boost/range/adaptors.hpp> #include <boost/filesystem.hpp> #include "driveshaft-config.h" namespace Driveshaft { namespace cfgkeys { static std::string GEARMAN_SERVERS_LIST = "gearman_servers_list"; static std::string POOLS_LIST = "pools_list"; sta...
38.359259
115
0.615043
tlalexan
4e849a62bed6f7e3b8b87854d60e114f1c5e8169
2,282
cpp
C++
src/Client/States/Game/AuthenticationState.cpp
ImperatorS79/BurgWar
5d8282513945e8f25e30d8491639eb297bfc0317
[ "MIT" ]
null
null
null
src/Client/States/Game/AuthenticationState.cpp
ImperatorS79/BurgWar
5d8282513945e8f25e30d8491639eb297bfc0317
[ "MIT" ]
null
null
null
src/Client/States/Game/AuthenticationState.cpp
ImperatorS79/BurgWar
5d8282513945e8f25e30d8491639eb297bfc0317
[ "MIT" ]
null
null
null
// Copyright (C) 2020 Jérôme Leclercq // This file is part of the "Burgwar" project // For conditions of distribution and use, see copyright notice in LICENSE #include <Client/States/Game/AuthenticationState.hpp> #include <Client/ClientApp.hpp> #include <Client/States/LoginState.hpp> #include <Client/States/Game/Asset...
29.636364
127
0.73532
ImperatorS79
4e8c4643c574217df23249e076d4a0f507de4d5c
3,026
cpp
C++
engine/engine.cpp
geefr/vulkan-learning
47018427bb3322f8d6fd6c74ac4b8f0ff670b583
[ "BSD-3-Clause" ]
null
null
null
engine/engine.cpp
geefr/vulkan-learning
47018427bb3322f8d6fd6c74ac4b8f0ff670b583
[ "BSD-3-Clause" ]
null
null
null
engine/engine.cpp
geefr/vulkan-learning
47018427bb3322f8d6fd6c74ac4b8f0ff670b583
[ "BSD-3-Clause" ]
null
null
null
/* * Provided under the BSD 3-Clause License, see LICENSE. * * Copyright (c) 2020, Gareth Francis * All rights reserved. */ #include "engine.h" #include "renderer.h" #include "node.h" Engine::Engine() : mRend(new Renderer(*this)) , mNodeGraph(new Node()) , mQuit(false) {} Engine::~Engine() {} void Engine...
26.778761
118
0.665235
geefr
4e8c6449fdf88de8b6820f9925ebd7946112ca71
2,095
cpp
C++
Vic2ToHoI4/Source/HOI4World/Technologies.cpp
CarbonY26/Vic2ToHoI4
af3684d6aaaafea81aaadfb64a21a2b696f618e1
[ "MIT" ]
25
2018-12-10T03:41:49.000Z
2021-10-04T10:42:36.000Z
Vic2ToHoI4/Source/HOI4World/Technologies.cpp
CarbonY26/Vic2ToHoI4
af3684d6aaaafea81aaadfb64a21a2b696f618e1
[ "MIT" ]
739
2018-12-13T02:01:20.000Z
2022-03-28T02:57:13.000Z
Vic2ToHoI4/Source/HOI4World/Technologies.cpp
CarbonY26/Vic2ToHoI4
af3684d6aaaafea81aaadfb64a21a2b696f618e1
[ "MIT" ]
43
2018-12-10T03:41:58.000Z
2022-03-22T23:55:41.000Z
#include "Technologies.h" HoI4::technologies::technologies(const Mappers::TechMapper& techMapper, const Mappers::ResearchBonusMapper& researchBonusMapper, const std::set<std::string>& oldTechnologiesAndInventions) { for (const auto& techMapping: techMapper.getTechMappings()) { bool requirementViolated = fals...
22.526882
99
0.717422
CarbonY26
4e8f378117d7cf1af642fddb5a300b0e295ecb84
11,861
cc
C++
ACAP_linux/3rd/CoMISo/NSolver/NewtonSolver.cc
shubhMaheshwari/Automatic-Unpaired-Shape-Deformation-Transfer
8c9afe017769f9554706bcd267b6861c4c144999
[ "MIT" ]
216
2018-09-09T11:53:56.000Z
2022-03-19T13:41:35.000Z
ACAP_linux/3rd/CoMISo/NSolver/NewtonSolver.cc
gaolinorange/Automatic-Unpaired-Shape-Deformation-Transfer
8c9afe017769f9554706bcd267b6861c4c144999
[ "MIT" ]
13
2018-10-23T08:29:09.000Z
2021-09-08T06:45:34.000Z
ACAP_linux/3rd/CoMISo/NSolver/NewtonSolver.cc
shubhMaheshwari/Automatic-Unpaired-Shape-Deformation-Transfer
8c9afe017769f9554706bcd267b6861c4c144999
[ "MIT" ]
41
2018-09-13T08:50:41.000Z
2022-02-23T00:33:54.000Z
//============================================================================= // // CLASS NewtonSolver - IMPLEMENTATION // //============================================================================= //== INCLUDES ================================================================= #include "NewtonSolver.hh" #incl...
27.329493
136
0.579715
shubhMaheshwari
4e9d9f7a9a6f5f95ca34946c0031440deee25059
2,086
cpp
C++
2015/9.cpp
wgevaert/AOC
aaa9c06f9817e338cca01bbf37b6ba81256dd5ba
[ "WTFPL" ]
2
2020-08-06T22:14:51.000Z
2020-08-10T19:42:36.000Z
2015/9.cpp
wgevaert/AOC
aaa9c06f9817e338cca01bbf37b6ba81256dd5ba
[ "WTFPL" ]
null
null
null
2015/9.cpp
wgevaert/AOC
aaa9c06f9817e338cca01bbf37b6ba81256dd5ba
[ "WTFPL" ]
null
null
null
#include <iostream> #include <string> #include <algorithm> int index(std::string location) { switch(location[0]) { case 'F': return 2; case 'N': return 3; case 'A': switch(location[1]) { case 'l':return 0; case 'r':return 1; } break; case 'S': switch(location[1]) { ca...
24.833333
103
0.5628
wgevaert
4ea17060b3ee1a6c462fd96f99afe957f375c45a
7,740
cpp
C++
tests/ip/address_v4.cpp
chriskohlhoff/ip-address
38251ff2f9a2cb5e4152c7314e14d2e65e69f27d
[ "BSL-1.0" ]
31
2015-01-25T13:09:27.000Z
2021-04-22T04:58:14.000Z
tests/ip/address_v4.cpp
chriskohlhoff/ip-address
38251ff2f9a2cb5e4152c7314e14d2e65e69f27d
[ "BSL-1.0" ]
1
2018-12-06T07:06:53.000Z
2018-12-06T07:06:53.000Z
tests/ip/address_v4.cpp
chriskohlhoff/ip-address
38251ff2f9a2cb5e4152c7314e14d2e65e69f27d
[ "BSL-1.0" ]
7
2016-01-10T07:20:12.000Z
2021-08-07T01:22:07.000Z
// // address_v4.cpp // ~~~~~~~~~~~~~~ // // Copyright (c) 2003-2012 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // 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) // // Test that header file is self-contai...
30.352941
80
0.669121
chriskohlhoff
4ea7caa0902b92b741a1d815d0e82c3879e9dc0f
306
cpp
C++
Wumpus.cpp
GoldenMean58/wumpus
51d7b850523383f1f1d4304c8fc763d58205f641
[ "Apache-2.0" ]
null
null
null
Wumpus.cpp
GoldenMean58/wumpus
51d7b850523383f1f1d4304c8fc763d58205f641
[ "Apache-2.0" ]
null
null
null
Wumpus.cpp
GoldenMean58/wumpus
51d7b850523383f1f1d4304c8fc763d58205f641
[ "Apache-2.0" ]
null
null
null
#include "Wumpus.h" Wumpus::Wumpus() : _dead(false) { this->_type = ObjectType::WumpusType; } Wumpus::Wumpus(int x, int y) : _dead(false) { this->_x = x; this->_y = y; this->_type = ObjectType::WumpusType; } bool Wumpus::is_dead() { return this->_dead; } void Wumpus::kill() { this->_dead = true; }
27.818182
73
0.643791
GoldenMean58
4eaa821ea34976f9846029924a4311c94415d791
514
cpp
C++
src/OpenLoco/Map/SurfaceTile.cpp
JimmyAllnighter/OpenLoco
dda8245be39a033db5cadfa455f1679a3f24ff24
[ "MIT" ]
180
2018-01-18T07:56:44.000Z
2019-02-18T21:33:45.000Z
src/OpenLoco/Map/SurfaceTile.cpp
JimmyAllnighter/OpenLoco
dda8245be39a033db5cadfa455f1679a3f24ff24
[ "MIT" ]
186
2018-01-18T13:17:58.000Z
2019-02-10T12:28:35.000Z
src/OpenLoco/Map/SurfaceTile.cpp
JimmyAllnighter/OpenLoco
dda8245be39a033db5cadfa455f1679a3f24ff24
[ "MIT" ]
35
2018-01-18T12:38:26.000Z
2018-11-14T16:01:32.000Z
#include "../TownManager.h" #include "../ViewportManager.h" #include "TileManager.h" namespace OpenLoco::Map { void SurfaceElement::removeIndustry(const Map::Pos2& pos) { if (hasHighTypeFlag()) { setHighTypeFlag(false); setVar6SLR5(0); setIndustry(IndustryId(...
25.7
79
0.568093
JimmyAllnighter
4eaadad1ebb68857cb29ffd0c08d0f1b294c64be
1,309
cpp
C++
Arcane/src/Arcane/Graphics/IBL/ReflectionProbe.cpp
flygod1159/Arcane-Engine
bfb95cc6734a25e5737d4195c2b9e92e03117707
[ "MIT" ]
387
2016-10-04T03:30:38.000Z
2022-03-31T15:42:29.000Z
Arcane/src/Arcane/Graphics/IBL/ReflectionProbe.cpp
flygod1159/Arcane-Engine
bfb95cc6734a25e5737d4195c2b9e92e03117707
[ "MIT" ]
9
2017-04-04T04:23:47.000Z
2020-07-11T05:05:54.000Z
Arcane/src/Arcane/Graphics/IBL/ReflectionProbe.cpp
flygod1159/Arcane-Engine
bfb95cc6734a25e5737d4195c2b9e92e03117707
[ "MIT" ]
36
2017-07-02T07:11:40.000Z
2022-03-08T01:49:24.000Z
#include "arcpch.h" #include "ReflectionProbe.h" #include <Arcane/Graphics/Shader.h> #include <Arcane/Graphics/Texture/Texture.h> #include <Arcane/Graphics/Texture/Cubemap.h> namespace Arcane { Texture* ReflectionProbe::s_BRDF_LUT = nullptr; ReflectionProbe::ReflectionProbe(glm::vec3 &probePosition, glm::vec2 &pro...
29.75
162
0.760886
flygod1159
4eb1e5f442196822ac2f9b707c440f7676220cab
593
cpp
C++
src/problem132/Solution.cpp
MyYaYa/leetcode
d779c215516ede594267b15abdfba5a47dc879dd
[ "Apache-2.0" ]
1
2016-09-29T14:23:59.000Z
2016-09-29T14:23:59.000Z
src/problem132/Solution.cpp
MyYaYa/leetcode
d779c215516ede594267b15abdfba5a47dc879dd
[ "Apache-2.0" ]
null
null
null
src/problem132/Solution.cpp
MyYaYa/leetcode
d779c215516ede594267b15abdfba5a47dc879dd
[ "Apache-2.0" ]
null
null
null
class Solution { public: int minCut(string s) { if (s == "") return 0; vector<int> dp(s.size() + 1, 0); dp[s.size()] = -1; vector<vector<bool>> bm(s.size(), vector<bool>(s.size(), false)); for (int i = s.size() - 1; i >= 0; --i) { dp[i] = INT_MAX; ...
28.238095
73
0.338954
MyYaYa
4ebb6cda05e82a436aa0724f8a471ce93d50e1b4
4,537
cpp
C++
src/core/LoaderComponent.cpp
talesm/glBoilerplate
46d8f418408290698e3f889b8cc053ac7ce4c824
[ "MIT" ]
null
null
null
src/core/LoaderComponent.cpp
talesm/glBoilerplate
46d8f418408290698e3f889b8cc053ac7ce4c824
[ "MIT" ]
null
null
null
src/core/LoaderComponent.cpp
talesm/glBoilerplate
46d8f418408290698e3f889b8cc053ac7ce4c824
[ "MIT" ]
null
null
null
#include "LoaderComponent.hpp" #include "Camera.hpp" #include "SceneDetail.hpp" #include "util/fastMath.hpp" using namespace std; inline int getAreaToReload(int offset) { int areaToReload = abs(offset) - (CHUNK_HALF_SIDE - CHUNK_LOAD_DELTA); int remaining = areaToReload % CHUNK_LOAD_DELTA; if (remaining) { ...
33.116788
77
0.616046
talesm
4ec06cb47d3b5f9e5853c6ee73687c2ec1d8cfff
226,398
cpp
C++
test/grapheme_iterator_06.cpp
eightysquirrels/text
d935545648777786dc196a75346cde8906da846a
[ "BSL-1.0" ]
null
null
null
test/grapheme_iterator_06.cpp
eightysquirrels/text
d935545648777786dc196a75346cde8906da846a
[ "BSL-1.0" ]
1
2021-03-05T12:56:59.000Z
2021-03-05T13:11:53.000Z
test/grapheme_iterator_06.cpp
eightysquirrels/text
d935545648777786dc196a75346cde8906da846a
[ "BSL-1.0" ]
3
2019-10-30T18:38:15.000Z
2021-03-05T12:10:13.000Z
// Warning! This file is autogenerated. #include <boost/text/grapheme_iterator.hpp> #include <boost/text/transcode_iterator.hpp> #include <gtest/gtest.h> #include <algorithm> TEST(grapheme, iterator_06_0_fwd) { // ÷ 0903 ÷ AC01 ÷ // ÷ [0.2] DEVANAGARI SIGN VISARGA (SpacingMark) ÷ [999.0] HANGUL SYLLABLE G...
28.148452
157
0.502959
eightysquirrels
4ec2ce4271211ca8b20a2ff6db692b3ce2e98d99
5,994
cpp
C++
src/joystick.cpp
allender/emulator
8310afee84b74cff7d91ecd78f7976264a8df900
[ "MIT" ]
53
2017-01-19T08:08:40.000Z
2022-01-26T03:01:24.000Z
src/joystick.cpp
allender/emulator
8310afee84b74cff7d91ecd78f7976264a8df900
[ "MIT" ]
15
2017-03-10T22:55:53.000Z
2021-04-14T13:29:38.000Z
src/joystick.cpp
allender/emulator
8310afee84b74cff7d91ecd78f7976264a8df900
[ "MIT" ]
1
2019-07-09T07:19:53.000Z
2019-07-09T07:19:53.000Z
/* MIT License Copyright (c) 2016-2017 Mark Allender Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pu...
35.467456
120
0.72973
allender
4ec80fde7b7c5457c8fbd6f93bd04ec2013f1625
100,040
cpp
C++
src/parallel/PetscSolverFeti.cpp
spraetor/amdis2
53c45c81a65752a8fafbb54f9ae6724a86639dcd
[ "MIT" ]
2
2018-07-04T16:44:04.000Z
2021-01-03T07:26:27.000Z
src/parallel/PetscSolverFeti.cpp
spraetor/amdis2
53c45c81a65752a8fafbb54f9ae6724a86639dcd
[ "MIT" ]
null
null
null
src/parallel/PetscSolverFeti.cpp
spraetor/amdis2
53c45c81a65752a8fafbb54f9ae6724a86639dcd
[ "MIT" ]
null
null
null
/****************************************************************************** * * AMDiS - Adaptive multidimensional simulations * * Copyright (C) 2013 Dresden University of Technology. All Rights Reserved. * Web: https://fusionforge.zih.tu-dresden.de/projects/amdis * * Authors: * Simon Vey, Thomas Witkowski, ...
33.683502
121
0.602279
spraetor
4eca6a6280a9c00c8567b67e506ae22dc21604c6
13,055
cpp
C++
src/UIController.cpp
nselikoff/Cinder-MinimalUI
f5ace74b8e514a372869d7211e5d76122d573241
[ "MIT" ]
6
2015-03-12T12:33:49.000Z
2018-04-20T18:30:28.000Z
src/UIController.cpp
nselikoff/Cinder-MinimalUI
f5ace74b8e514a372869d7211e5d76122d573241
[ "MIT" ]
null
null
null
src/UIController.cpp
nselikoff/Cinder-MinimalUI
f5ace74b8e514a372869d7211e5d76122d573241
[ "MIT" ]
3
2020-04-20T21:34:16.000Z
2020-05-06T19:24:42.000Z
#include "UIController.h" #include "UIElement.h" #include "Slider.h" #include "Button.h" #include "Label.h" #include "Image.h" #include "Graph.h" using namespace ci; using namespace ci::app; using namespace std; using namespace MinimalUI; class FontStyleExc; int UIController::DEFAULT_PANEL_WIDTH = 216; int UIControl...
31.841463
231
0.704175
nselikoff
4ecf3705018615222bf6a218551f06d534fbf648
24,170
hpp
C++
code/vpp/docs/conceptual/headers/vppContainers.hpp
maikebing/vpp
efa6c32f898e103d749764ce3a0b7dc29d6e9a51
[ "BSD-2-Clause" ]
null
null
null
code/vpp/docs/conceptual/headers/vppContainers.hpp
maikebing/vpp
efa6c32f898e103d749764ce3a0b7dc29d6e9a51
[ "BSD-2-Clause" ]
null
null
null
code/vpp/docs/conceptual/headers/vppContainers.hpp
maikebing/vpp
efa6c32f898e103d749764ce3a0b7dc29d6e9a51
[ "BSD-2-Clause" ]
null
null
null
/* Copyright 2016-2018 SOFT-ERG, Przemek Kuczmierczyk (www.softerg.com) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above...
40.690236
94
0.631485
maikebing
4ed8a96a4bd9643062f1c037ba2a03316ae436d7
7,229
cpp
C++
src/notifybyaudio_canberra.cpp
pasnox/knotifications
ef2871b2a485be5abe393e61c6cd93867420f896
[ "BSD-3-Clause" ]
1
2019-11-02T03:54:16.000Z
2019-11-02T03:54:16.000Z
src/notifybyaudio_canberra.cpp
pasnox/knotifications
ef2871b2a485be5abe393e61c6cd93867420f896
[ "BSD-3-Clause" ]
2
2019-10-27T23:06:33.000Z
2020-01-11T00:44:07.000Z
src/notifybyaudio_canberra.cpp
brute4s99/knotifications
bc01688f99fcbdc2d3ceb4ad9475da1359441408
[ "BSD-3-Clause" ]
null
null
null
/* This file is part of the KDE libraries Copyright (C) 2014-2015 by Martin Klapetek <mklapetek@kde.org> Copyright (C) 2018 Kai Uwe Broulik <kde@privat.broulik.de> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as publishe...
34.922705
150
0.678794
pasnox
4de56c2f1e5fa72d6ec33aeb6d98a3908b10cd9f
844
cc
C++
test/test_split.cc
embeddedawesome/cpp-subprocess
62635b57456baf41547315f4a5a8dd77cdf2c381
[ "MIT" ]
331
2016-03-19T12:19:14.000Z
2022-03-31T08:59:01.000Z
test/test_split.cc
mr132001/cpp-subprocess
f1ce916fdc52648da9481a386a24c221bf703f1d
[ "MIT" ]
50
2016-03-21T12:03:46.000Z
2022-03-15T17:37:31.000Z
test/test_split.cc
mr132001/cpp-subprocess
f1ce916fdc52648da9481a386a24c221bf703f1d
[ "MIT" ]
79
2016-03-20T19:58:10.000Z
2022-03-31T13:07:53.000Z
#include <iostream> #include <string> #include <vector> std::vector<std::string> split(const std::string& str, const std::string& delims=" \t") { std::vector<std::string> res; size_t init = 0; while (true) { auto pos = str.find_first_of(delims, init); if (pos == std::string::npos) { re...
19.627907
62
0.567536
embeddedawesome
4de57c438d087a5af5c53c646a0d9761a0d914c3
4,587
cpp
C++
IPCDemo/IPCPort.cpp
Celemony/ARA_Examples
24239cf5176b9b230ddd7aa2b9053b6e582cdb2a
[ "Apache-2.0" ]
2
2021-04-27T07:08:07.000Z
2021-05-20T16:08:51.000Z
IPCDemo/IPCPort.cpp
Celemony/ARA_Examples
24239cf5176b9b230ddd7aa2b9053b6e582cdb2a
[ "Apache-2.0" ]
null
null
null
IPCDemo/IPCPort.cpp
Celemony/ARA_Examples
24239cf5176b9b230ddd7aa2b9053b6e582cdb2a
[ "Apache-2.0" ]
null
null
null
//------------------------------------------------------------------------------ //! \file IPCMessage.cpp //! messaging used for IPC in SDK IPC demo example //! \project ARA SDK Examples //! \copyright Copyright (c) 2012-2021, Celemony Software GmbH, All Rights Reserved. //! \license Licensed u...
39.205128
154
0.669937
Celemony
4de81c0a7fe7af2277b25493cb4ad06339c8c6ab
5,053
cpp
C++
Data Structures/Trees/Threaded Binary Tree/Threaded_Binary_Tree_all.cpp
sejalsingh417/Open-DSA
dd2228abd3022f0899ded08ff3f710e51b74649f
[ "MIT" ]
1
2021-10-05T15:45:42.000Z
2021-10-05T15:45:42.000Z
Data Structures/Trees/Threaded Binary Tree/Threaded_Binary_Tree_all.cpp
sejalsingh417/Open-DSA
dd2228abd3022f0899ded08ff3f710e51b74649f
[ "MIT" ]
17
2021-10-05T13:47:01.000Z
2021-11-06T13:15:42.000Z
Data Structures/Trees/Threaded Binary Tree/Threaded_Binary_Tree_all.cpp
sejalsingh417/Open-DSA
dd2228abd3022f0899ded08ff3f710e51b74649f
[ "MIT" ]
9
2021-10-05T07:21:09.000Z
2021-10-20T08:31:03.000Z
#include <iostream> #include <cstdlib> #define MAX_VALUE 65536 using namespace std; class N { //node declaration public: int k; N *l, *r; bool leftTh, rightTh; }; class ThreadedBinaryTree { private: N *root; public: ThreadedBinaryTree() { //constructor to initialize the variables root= ...
24.293269
67
0.435385
sejalsingh417
4de9be458ee5e8a5a1fbceee7a061b00ba7112cf
633
cpp
C++
GummiShip/lazer.cpp
fonicartist/GummiShip
1977f3b4360321fc78da0b124ce1e57797e8911c
[ "MIT" ]
null
null
null
GummiShip/lazer.cpp
fonicartist/GummiShip
1977f3b4360321fc78da0b124ce1e57797e8911c
[ "MIT" ]
null
null
null
GummiShip/lazer.cpp
fonicartist/GummiShip
1977f3b4360321fc78da0b124ce1e57797e8911c
[ "MIT" ]
null
null
null
#include "lazer.h" Lazer::Lazer(float pos, float x, float y, int direction) { sprite.setPosition(pos, 640); velocity = sf::Vector2f(x, y); hit = false; printf("New lazer created at (%d,%d).\n", pos, 700); loadAssets(direction); } void Lazer::loadAssets(int direction) { texture.loadFromFile("..\\assets\\sprites\...
21.1
63
0.666667
fonicartist
4deb7026a232745d63f2132aa2f8693ead309392
577
cpp
C++
runtime/fpga/software/runtime/run_elf_zcu102.cpp
caesr-uwaterloo/MapleBoard
4687854d230ef6ca16270fc0168f8c627c7e7eac
[ "MIT" ]
1
2022-02-19T13:12:08.000Z
2022-02-19T13:12:08.000Z
runtime/fpga/software/runtime/run_elf_zcu102.cpp
caesr-uwaterloo/MapleBoard
4687854d230ef6ca16270fc0168f8c627c7e7eac
[ "MIT" ]
null
null
null
runtime/fpga/software/runtime/run_elf_zcu102.cpp
caesr-uwaterloo/MapleBoard
4687854d230ef6ca16270fc0168f8c627c7e7eac
[ "MIT" ]
null
null
null
#include "common.h" #include <iostream> #include <cstring> #include "loguru.hpp" using namespace std::chrono_literals; int main(int argc, char** argv) { _argc = argc; _argv = argv; std::cout << "ZCU102 Real Board" << std::endl; int exit_code; // NOTE: this function will launch a new thread test_main(&e...
19.233333
54
0.691508
caesr-uwaterloo
4ded86b2ab65bb903d7588cb593b902c90bf6c66
3,049
cxx
C++
Modules/Numerics/Statistics/test/itkProbabilityDistributionTest.cxx
itkvideo/ITK
5882452373df23463c2e9410c50bc9882ca1e8de
[ "Apache-2.0" ]
1
2015-10-12T00:14:09.000Z
2015-10-12T00:14:09.000Z
Modules/Numerics/Statistics/test/itkProbabilityDistributionTest.cxx
itkvideo/ITK
5882452373df23463c2e9410c50bc9882ca1e8de
[ "Apache-2.0" ]
null
null
null
Modules/Numerics/Statistics/test/itkProbabilityDistributionTest.cxx
itkvideo/ITK
5882452373df23463c2e9410c50bc9882ca1e8de
[ "Apache-2.0" ]
null
null
null
/*========================================================================= * * Copyright Insight Software 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 * * h...
38.1125
103
0.677927
itkvideo
4df15c604af1d762325a2f9c0a991157880794fb
9,012
hpp
C++
include/xll/detail/type_text.hpp
jbuonagurio/libxll
2e91163dbcbeeef3644add6ac583ee98a37b5aac
[ "BSL-1.0" ]
1
2021-03-23T12:40:56.000Z
2021-03-23T12:40:56.000Z
include/xll/detail/type_text.hpp
jbuonagurio/libxll
2e91163dbcbeeef3644add6ac583ee98a37b5aac
[ "BSL-1.0" ]
1
2022-03-15T04:23:18.000Z
2022-03-15T04:23:56.000Z
include/xll/detail/type_text.hpp
jbuonagurio/libxll
2e91163dbcbeeef3644add6ac583ee98a37b5aac
[ "BSL-1.0" ]
null
null
null
// Copyright 2020 John Buonagurio // // 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 #pragma once /** * \file type_text.hpp * Compile-time mapping from primitive type to pxTypeText identifier wchar array...
32.770909
99
0.694075
jbuonagurio
4df22f2837c6aee3c237eb2f94000fe2612f137c
477
cpp
C++
Main.cpp
shaCode256/Cpp-Ex1-Do-You-Want-To-Code-A-Snowman
6c7f6a260553a55bd95b400d286de4a76615429a
[ "MIT" ]
null
null
null
Main.cpp
shaCode256/Cpp-Ex1-Do-You-Want-To-Code-A-Snowman
6c7f6a260553a55bd95b400d286de4a76615429a
[ "MIT" ]
null
null
null
Main.cpp
shaCode256/Cpp-Ex1-Do-You-Want-To-Code-A-Snowman
6c7f6a260553a55bd95b400d286de4a76615429a
[ "MIT" ]
null
null
null
/** * Main Demo program for snowman exercise. * * Author: Shavit Luzon * Since : 2021-03 */ #include "snowman.hpp" #include <iostream> #include <stdexcept> using namespace std; using namespace ariel; int main() { int number; cout << "Type a number which represent a snowman: "; // Type a number...
22.714286
86
0.654088
shaCode256
4df3827815083eaaad9b713dbca753c12115665f
304
cpp
C++
C++ STL/Memberfunction_template_OutsideClass.cpp
junior-geek04/C-Stl
d7731c52616810f5067162453557075b524690a5
[ "Apache-2.0" ]
2
2021-05-27T12:18:32.000Z
2021-05-27T17:33:03.000Z
C++ STL/Memberfunction_template_OutsideClass.cpp
junior-geek04/C-Stl
d7731c52616810f5067162453557075b524690a5
[ "Apache-2.0" ]
null
null
null
C++ STL/Memberfunction_template_OutsideClass.cpp
junior-geek04/C-Stl
d7731c52616810f5067162453557075b524690a5
[ "Apache-2.0" ]
null
null
null
#include<bits/stdc++.h> using namespace std; template<class t> class enjoy {public: t data; enjoy(t a) { data=a; } void display(); }; template<class t> void enjoy<t>::display() { cout<<data; } int main() { enjoy<int> e(94); cout<<e.data<<"\n"; e.display(); }
12.16
25
0.546053
junior-geek04
4df446b0d6258e7c84e7ea316ebba019ed3867cd
973
cpp
C++
libhydrosphere/source/common/compiler/memcpy.cpp
Kaenbyo/Hydrosphere
123143da54329dc678eea3ac3451bd9275a5513d
[ "Apache-2.0", "MIT" ]
17
2019-08-05T07:11:04.000Z
2019-11-27T11:55:04.000Z
libhydrosphere/source/common/compiler/memcpy.cpp
Kaenbyo/Hydrosphere
123143da54329dc678eea3ac3451bd9275a5513d
[ "Apache-2.0", "MIT" ]
1
2019-09-15T11:42:50.000Z
2019-09-15T11:42:50.000Z
libhydrosphere/source/common/compiler/memcpy.cpp
Kaenbyo/Hydrosphere
123143da54329dc678eea3ac3451bd9275a5513d
[ "Apache-2.0", "MIT" ]
3
2019-08-27T09:54:38.000Z
2019-09-11T09:50:08.000Z
/* * Copyright (c) 2019 Hydrosphère Developers * * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or * http://www.apache.org/licenses/LICENSE-2.0> or the MIT license * <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your * option. This file may not be copied, modified, or distributed * ex...
31.387097
71
0.67112
Kaenbyo
15006fe04e62b248d130fe4904f72e3bfa5b0bdb
5,635
cpp
C++
pikoc/src/Frontend/PipeASTVisitor.cpp
piko-dev/piko-public
8d7ab461de155992ca75e839f406670279fb6bad
[ "BSD-3-Clause" ]
15
2015-05-19T08:23:26.000Z
2021-11-26T02:59:36.000Z
pikoc/src/Frontend/PipeASTVisitor.cpp
piko-dev/piko-public
8d7ab461de155992ca75e839f406670279fb6bad
[ "BSD-3-Clause" ]
null
null
null
pikoc/src/Frontend/PipeASTVisitor.cpp
piko-dev/piko-public
8d7ab461de155992ca75e839f406670279fb6bad
[ "BSD-3-Clause" ]
4
2015-10-06T15:14:43.000Z
2020-02-20T13:17:11.000Z
#include "Frontend/clangUtilities.hpp" #include "Frontend/PipeASTVisitor.hpp" #include "Frontend/StageASTVisitor.hpp" bool PipeASTVisitor::VisitCXXRecordDecl(clang::CXXRecordDecl *decl) { // Stop if errors have occurred in compilation if(context.getDiagnostics().hasErrorOccurred()) { llvm::errs() << "Compilation ...
24.714912
87
0.670453
piko-dev
1501554ff5b6f85c1379ffba8a4dee83c4c569a2
4,266
cpp
C++
TestSuite/url_unittest.cpp
w20089527/Net
ca40f0d4a5aa94c64abb8ccc7306bc66bdf12584
[ "MIT" ]
1
2019-08-10T20:29:13.000Z
2019-08-10T20:29:13.000Z
TestSuite/url_unittest.cpp
whrool/Net
ca40f0d4a5aa94c64abb8ccc7306bc66bdf12584
[ "MIT" ]
null
null
null
TestSuite/url_unittest.cpp
whrool/Net
ca40f0d4a5aa94c64abb8ccc7306bc66bdf12584
[ "MIT" ]
null
null
null
// The MIT License (MIT) // // Copyright(c) 2015 huan.wang // // 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, m...
42.66
129
0.592827
w20089527
1503c4b0cda665eac97f9160dbf3473cf56e5229
14,328
cpp
C++
src/tool/editor_file/editor.cpp
FoFabien/SF2DEngine
3d10964cbdae439584c10ab427ade394d720713f
[ "Zlib" ]
null
null
null
src/tool/editor_file/editor.cpp
FoFabien/SF2DEngine
3d10964cbdae439584c10ab427ade394d720713f
[ "Zlib" ]
null
null
null
src/tool/editor_file/editor.cpp
FoFabien/SF2DEngine
3d10964cbdae439584c10ab427ade394d720713f
[ "Zlib" ]
null
null
null
#include "editor.hpp" #include "../../engine/mlib/mlib.hpp" #include "../../version.h" #include <wx/notebook.h> #define L_TEXT_X 3 #define L_TEXT_Y 3 #define E_V1 0x31307645 #define ENTITY_VERSION 0x32307645 #define ENGINE_SFML_VERSION "SFML v2.4.1" BEGIN_EVENT_TABLE(Editor, wxFrame) EVT_BUTTON(ID_BTN_AS_NEW, E...
33.633803
166
0.624023
FoFabien
1509db1e1ae5ea5bcc9111b295734a2cb8ce4779
1,242
hpp
C++
includes/Dataset.hpp
arghyatiger/HighPerformanceCNN
166701ae53885199c4f06c97e127cba688cbe1c3
[ "MIT" ]
null
null
null
includes/Dataset.hpp
arghyatiger/HighPerformanceCNN
166701ae53885199c4f06c97e127cba688cbe1c3
[ "MIT" ]
null
null
null
includes/Dataset.hpp
arghyatiger/HighPerformanceCNN
166701ae53885199c4f06c97e127cba688cbe1c3
[ "MIT" ]
null
null
null
#pragma once #include <Layer.hpp> #include <iostream> #include <memory> #include <string> #include <utility> #include <vector> class DataSet : public Layer { public: explicit DataSet(std::string data_path, bool shuffle = false); //constructor void reset(); //setting train indexes to zero void forward(int bat...
30.292683
130
0.728663
arghyatiger
150bc8341f423db902b170fbbeae552438b65b85
8,010
cpp
C++
src/lunar-master/precess2.cpp
TehSnappy/lib_lunar_ex
a4cd4a3cdec44c2adaefbf1791b8863db568cbbd
[ "MIT" ]
1
2019-03-11T14:46:04.000Z
2019-03-11T14:46:04.000Z
lib/net/src/nrun/astro/precess2.cpp
lcityd/paragon
47a43872a5656a8c431c774d353ed214f9d0ed1d
[ "MIT" ]
null
null
null
lib/net/src/nrun/astro/precess2.cpp
lcityd/paragon
47a43872a5656a8c431c774d353ed214f9d0ed1d
[ "MIT" ]
1
2019-10-12T03:23:41.000Z
2019-10-12T03:23:41.000Z
/* precess2.cpp: (deprecated version of) functions for computing Earth precession; see precess.cpp for current version, and 'changes.txt' for info on why this is deprecated Copyright (C) 2010, Project Pluto This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Pu...
32.693878
83
0.576404
TehSnappy
150f91c9bdd785d55e82bf1dec95e6a732972e20
377
cpp
C++
DataStructures/Graphs/Union_Find.cpp
allenli873/USACO_Materials
62540bf22268619283863e624d06b2588961e0a4
[ "MIT" ]
2
2020-05-30T22:24:43.000Z
2020-05-30T23:35:15.000Z
DataStructures/Graphs/Union_Find.cpp
allenli873/USACO_Materials
62540bf22268619283863e624d06b2588961e0a4
[ "MIT" ]
null
null
null
DataStructures/Graphs/Union_Find.cpp
allenli873/USACO_Materials
62540bf22268619283863e624d06b2588961e0a4
[ "MIT" ]
null
null
null
template<int SZ> struct DSU { int par[SZ], ranks[SZ]; DSU() { iota(par, par + SZ, 0); } int find(int curr) { return par[curr] == curr ? curr : (par[curr] = find(par[curr])); } void unite(int n1, int n2) { int f1 = find(n1); int f2 = find(n2); if(ranks[f1] > ranks[f2]) { par[f2] = f1; ranks[f1]...
15.708333
66
0.517241
allenli873
15190683b6207230f0df6041ffdcfaf3ecfb50af
1,109
cpp
C++
CsPlugin/Source/CsCore/Public/Managers/Pool/Payload/CsPayload_PooledObjectImpl.cpp
closedsum/core
c3cae44a177b9684585043a275130f9c7b67fef0
[ "Unlicense" ]
2
2019-03-17T10:43:53.000Z
2021-04-20T21:24:19.000Z
CsPlugin/Source/CsCore/Public/Managers/Pool/Payload/CsPayload_PooledObjectImpl.cpp
closedsum/core
c3cae44a177b9684585043a275130f9c7b67fef0
[ "Unlicense" ]
null
null
null
CsPlugin/Source/CsCore/Public/Managers/Pool/Payload/CsPayload_PooledObjectImpl.cpp
closedsum/core
c3cae44a177b9684585043a275130f9c7b67fef0
[ "Unlicense" ]
null
null
null
// Copyright 2017-2021 Closed Sum Games, LLC. All Rights Reserved. #include "Managers/Pool/Payload/CsPayload_PooledObjectImpl.h" #include "Containers/CsInterfaceMap.h" const FName NCsPooledObject::NPayload::FImpl::Name = FName("NCsPooledObject::NPayload::FImpl"); namespace NCsPooledObject { namespace NPayload { ...
20.163636
95
0.699729
closedsum
151deaa252ded8f32e97a3a98dcf327dcbb26263
3,763
cpp
C++
vlcdemo/vlc/vlc.cpp
liyuzhao/QWidgetDemo
a056894da7b7385e37a523ea4825cea48c82d297
[ "MulanPSL-1.0" ]
3,095
2019-10-11T03:00:33.000Z
2022-03-31T08:15:13.000Z
vlcdemo/vlc/vlc.cpp
liyuzhao/QWidgetDemo
a056894da7b7385e37a523ea4825cea48c82d297
[ "MulanPSL-1.0" ]
28
2019-11-12T07:24:06.000Z
2022-02-28T02:04:48.000Z
vlcdemo/vlc/vlc.cpp
liyuzhao/QWidgetDemo
a056894da7b7385e37a523ea4825cea48c82d297
[ "MulanPSL-1.0" ]
1,023
2019-10-09T12:54:07.000Z
2022-03-30T04:02:07.000Z
#include "vlc.h" VlcThread::VlcThread(QObject *parent) : QThread(parent) { setObjectName("VlcThread"); stopped = false; isPlay = false; url = "rtsp://192.168.1.200:554/1"; vlcInst = NULL; vlcMedia = NULL; vlcPlayer = NULL; static bool isInit = false; if (!isInit) { isIn...
19.805263
171
0.597661
liyuzhao
151f3dd67175a7f64d3fbc91bb474512ea823b11
457
cpp
C++
chapter_05/BitLevelOperations.cpp
Kevin-Oudai/my_cpp_solutions
a0f5f533ee4825f5b2d88cacc936d80276062ca4
[ "MIT" ]
null
null
null
chapter_05/BitLevelOperations.cpp
Kevin-Oudai/my_cpp_solutions
a0f5f533ee4825f5b2d88cacc936d80276062ca4
[ "MIT" ]
31
2021-05-14T03:37:24.000Z
2022-03-13T17:38:32.000Z
chapter_05/BitLevelOperations.cpp
Kevin-Oudai/my_cpp_solutions
a0f5f533ee4825f5b2d88cacc936d80276062ca4
[ "MIT" ]
null
null
null
// Exercise 5.46 - Computer Architecture: Bit-level operations // I am not sure of this solution it is not mine I need to understand this program. #include <iostream> int main() { std::cout << "Enter an integer: "; int value, mask = 1, temp, bit; std::cin >> value; std::cout << "The bits are "; fo...
21.761905
83
0.553611
Kevin-Oudai
151f6553975810ceb7a1cebbc794e9528eaeaac5
418
cpp
C++
Competitive Programming/leetcode/Number-of-Good-Pairs.cpp
JcsnP/My-Playground
683600bd32ee7050bbe2cfca8eaf96eb1cdf039c
[ "Unlicense" ]
2
2020-12-31T09:30:57.000Z
2021-03-15T05:04:18.000Z
Competitive Programming/leetcode/Number-of-Good-Pairs.cpp
JcsnP/My-Playground
683600bd32ee7050bbe2cfca8eaf96eb1cdf039c
[ "Unlicense" ]
null
null
null
Competitive Programming/leetcode/Number-of-Good-Pairs.cpp
JcsnP/My-Playground
683600bd32ee7050bbe2cfca8eaf96eb1cdf039c
[ "Unlicense" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int numIdenticalPairs(vector<int>& nums){ unsigned int pairs = 0; for(unsigned int i = 0; i < nums.size(); i++){ for(unsigned int j = 0; j < nums.size(); j++){ if(nums[i] == nums[j] and i < j){ ++pairs; } } } return pairs; } int main...
19
50
0.552632
JcsnP
1526cf54858f8c6ff963783c1a303c91e54e44a7
653
hpp
C++
cpp/include/core/https/HttpsClient.hpp
nawbar23/fleetmgr
e5f93877fa373841845941dacf37cfcd4364f69c
[ "MIT" ]
null
null
null
cpp/include/core/https/HttpsClient.hpp
nawbar23/fleetmgr
e5f93877fa373841845941dacf37cfcd4364f69c
[ "MIT" ]
null
null
null
cpp/include/core/https/HttpsClient.hpp
nawbar23/fleetmgr
e5f93877fa373841845941dacf37cfcd4364f69c
[ "MIT" ]
null
null
null
#ifndef FM_CORE_HTTPS_HTTPSCLIENT_HPP #define FM_CORE_HTTPS_HTTPSCLIENT_HPP #include <string> namespace fm { namespace core { namespace https { /** * Created by: Bartosz Nawrot * Date: 2018-11-27 * Description: */ class HttpsClient { public: enum Method { POST, PUT, GET, ...
13.604167
78
0.644717
nawbar23
1530acbd09e58deb3f6305bdb938900452df6334
528
hpp
C++
examples/02Physics/LevelEnd.hpp
Galhad/firestorm
3c1584b1e5b95f21d963b9cf226f6ec1a469d7af
[ "MIT" ]
null
null
null
examples/02Physics/LevelEnd.hpp
Galhad/firestorm
3c1584b1e5b95f21d963b9cf226f6ec1a469d7af
[ "MIT" ]
null
null
null
examples/02Physics/LevelEnd.hpp
Galhad/firestorm
3c1584b1e5b95f21d963b9cf226f6ec1a469d7af
[ "MIT" ]
null
null
null
#ifndef FIRESTORM_LEVELEND_HPP #define FIRESTORM_LEVELEND_HPP #include "scene/SceneNode.hpp" #include <memory> namespace fs::scene { class LevelEnd : public SceneNode { public: LevelEnd() = default; ~LevelEnd() override = default; void create(io::InputManager& inputManager, physics::PhysicsManager& p...
18.206897
118
0.725379
Galhad
15322fdd0929ad0f55e4421424f3146d31247b4c
4,211
cpp
C++
modules/task_3/kharunova_a_algorithm_of_strongin/main.cpp
Gurgen-Arm/pp_2021_autumn
ad549e49d765612c4544f34b04c9eb9432ac0dc7
[ "BSD-3-Clause" ]
null
null
null
modules/task_3/kharunova_a_algorithm_of_strongin/main.cpp
Gurgen-Arm/pp_2021_autumn
ad549e49d765612c4544f34b04c9eb9432ac0dc7
[ "BSD-3-Clause" ]
null
null
null
modules/task_3/kharunova_a_algorithm_of_strongin/main.cpp
Gurgen-Arm/pp_2021_autumn
ad549e49d765612c4544f34b04c9eb9432ac0dc7
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2021 Kharunova Alina #include <gtest/gtest.h> #include "./algorithm_of_strongin.h" #include <gtest-mpi-listener.hpp> TEST(Parallel_Operations_MPI, parallel_sum_in_10_elements_matrix) { int rank; MPI_Comm_rank(MPI_COMM_WORLD, &rank); double start, end, timeLin, timeParal; if (rank == 0) { sta...
28.452703
76
0.625742
Gurgen-Arm
15343d244e983291fce531f0643c5f70262e8831
571
hpp
C++
upgrade/boot_loader/VerifierRsa.hpp
oguzcanphilips/embeddedinfralib
f1b083d61a34d123d34ab7cd51267377aa2f7855
[ "Unlicense" ]
54
2019-04-02T14:42:54.000Z
2022-03-20T23:02:19.000Z
upgrade/boot_loader/VerifierRsa.hpp
oguzcanphilips/embeddedinfralib
f1b083d61a34d123d34ab7cd51267377aa2f7855
[ "Unlicense" ]
32
2019-03-26T06:57:29.000Z
2022-03-25T00:04:44.000Z
upgrade/boot_loader/VerifierRsa.hpp
oguzcanphilips/embeddedinfralib
f1b083d61a34d123d34ab7cd51267377aa2f7855
[ "Unlicense" ]
20
2019-03-25T15:49:49.000Z
2022-03-20T23:02:22.000Z
#ifndef UPGRADE_VERIFIER_RSA_HPP #define UPGRADE_VERIFIER_RSA_HPP #include "upgrade/boot_loader/Verifier.hpp" namespace application { class VerifierRsa : public Verifier { public: VerifierRsa(infra::ConstByteRange publicKeyN, infra::ConstByteRange publicKeyE); virtual bool IsValid...
24.826087
163
0.730298
oguzcanphilips
15361ff688031e211c11b637af0b229804760345
2,494
cpp
C++
src/Services/FunctionManagementService.cpp
ACubeSAT/ecss-services
92d81c1ff455d9baef9417e656388c98ec552751
[ "MIT" ]
null
null
null
src/Services/FunctionManagementService.cpp
ACubeSAT/ecss-services
92d81c1ff455d9baef9417e656388c98ec552751
[ "MIT" ]
null
null
null
src/Services/FunctionManagementService.cpp
ACubeSAT/ecss-services
92d81c1ff455d9baef9417e656388c98ec552751
[ "MIT" ]
null
null
null
#include "ECSS_Configuration.hpp" #ifdef SERVICE_FUNCTION #include "Services/FunctionManagementService.hpp" void FunctionManagementService::call(Message& msg) { msg.resetRead(); ErrorHandler::assertRequest(msg.packetType == Message::TC, msg, ErrorHandler::AcceptanceErrorType::Unacceptab...
37.223881
112
0.761427
ACubeSAT