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
108
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
67k
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
d8e949088456e3247276d296f1708ac31c5076aa
14,635
cpp
C++
gcsdk/sqlaccess/schemafull.cpp
DannyParker0001/Kisak-Strike
99ed85927336fe3aff2efd9b9382b2b32eb1d05d
[ "Unlicense" ]
252
2020-12-16T15:34:43.000Z
2022-03-31T23:21:37.000Z
tf2_src/gcsdk/sqlaccess/schemafull.cpp
Counter2828/TeamFortress2
1b81dded673d49adebf4d0958e52236ecc28a956
[ "MIT" ]
23
2020-12-20T18:02:54.000Z
2022-03-28T16:58:32.000Z
tf2_src/gcsdk/sqlaccess/schemafull.cpp
Counter2828/TeamFortress2
1b81dded673d49adebf4d0958e52236ecc28a956
[ "MIT" ]
42
2020-12-19T04:32:33.000Z
2022-03-30T06:00:28.000Z
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ //============================================================================= #include "stdafx.h" // memdbgon must be the last include file in a .cpp file!!! #include "tier0/memdbgon.h" namespace GCSDK...
35.695122
164
0.553946
DannyParker0001
d8eb7288ba741f466815cc973fa5a71c6f977d4c
11,165
cc
C++
xentrace.cc
chonghw/xenpwn
de3f3c2f839cd18099042585fa9900097082a314
[ "MIT" ]
150
2016-08-04T02:00:20.000Z
2021-11-23T08:04:35.000Z
xentrace.cc
chonghw/xenpwn
de3f3c2f839cd18099042585fa9900097082a314
[ "MIT" ]
2
2016-11-02T08:53:20.000Z
2020-07-16T14:11:42.000Z
xentrace.cc
felixwilhelm/xenpwn
de3f3c2f839cd18099042585fa9900097082a314
[ "MIT" ]
29
2016-08-04T04:23:33.000Z
2021-11-23T08:04:36.000Z
#include <iostream> #include <set> #include "spdlog/spdlog.h" #include "cmdline/cmdline.h" #include "utils.h" #include "error.h" #include "state.h" #include "events.h" #include "vmi_helper.h" void main_loop(std::string log, int debug, std::string vmid); std::vector<std::pair<addr_t, uint16_t>> get_domains(State* s); ...
32.456395
80
0.593372
chonghw
d8f21da4c84a6dd612f22d65ae1c51b36ddcde88
345
hpp
C++
libs/dkutil/include/dkutil_cli_misc.hpp
Goreli/DKCPPDEV
9436183d8b92fe62f32c3d227fa044c429724129
[ "MIT" ]
1
2019-10-27T13:26:55.000Z
2019-10-27T13:26:55.000Z
libs/dkutil/include/dkutil_cli_misc.hpp
Goreli/DKCPPDEV
9436183d8b92fe62f32c3d227fa044c429724129
[ "MIT" ]
null
null
null
libs/dkutil/include/dkutil_cli_misc.hpp
Goreli/DKCPPDEV
9436183d8b92fe62f32c3d227fa044c429724129
[ "MIT" ]
null
null
null
/* dkutil_cli_misc.hpp Declares miscellaneous CLI routines. Copyright(c) 2019 David Krikheli Modification history: 10/May/2020 - David Krikheli created the module. */ #ifndef dkutil_cli_misc_hpp #define dkutil_cli_misc_hpp namespace dk { void forceThousandsSeparators(std::ostream& os); }; // namespace dk #endi...
20.294118
52
0.782609
Goreli
d8ff2323cb6ebbe292edc75c077f5b44e7d63f1c
554
cpp
C++
CodeForces/192A- Funky Numbers.cpp
tanishq1g/cp_codes
80b8ccc9e195a66d6d317076fdd54a02cd21275b
[ "MIT" ]
null
null
null
CodeForces/192A- Funky Numbers.cpp
tanishq1g/cp_codes
80b8ccc9e195a66d6d317076fdd54a02cd21275b
[ "MIT" ]
null
null
null
CodeForces/192A- Funky Numbers.cpp
tanishq1g/cp_codes
80b8ccc9e195a66d6d317076fdd54a02cd21275b
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include <vector> #include <locale> #include <algorithm> #include <cmath> using namespace std; int main(){ long long int n, x; cin >> n; int l = sqrt(2 * n); for(int i = 1, j = l; i <= j;){ x = i * (i + 1) / 2 + j * (j + 1) / 2; // cout << i << ' ' ...
19.103448
51
0.379061
tanishq1g
2b0598174c39b67861a29d77ea3399356b64de82
1,327
cc
C++
be/src/exprs/timestamp-literal.cc
Altiscale/Impala
1a57d938ff616669a3111256c548807b10e0bff6
[ "Apache-2.0" ]
2
2015-11-17T16:58:47.000Z
2017-01-10T04:15:05.000Z
be/src/exprs/timestamp-literal.cc
Altiscale/Impala
1a57d938ff616669a3111256c548807b10e0bff6
[ "Apache-2.0" ]
1
2016-03-10T16:34:10.000Z
2016-03-10T16:34:10.000Z
be/src/exprs/timestamp-literal.cc
Altiscale/Impala
1a57d938ff616669a3111256c548807b10e0bff6
[ "Apache-2.0" ]
6
2015-12-22T14:52:38.000Z
2019-07-06T08:34:23.000Z
// Copyright 2012 Cloudera 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 wr...
27.645833
86
0.741522
Altiscale
2b05a4e19bc257b76b62efd11e94c950102aa0b7
752
cpp
C++
csgocheat/menu/framework/c_text.cpp
garryhvh420/e_xyz
668d8c8c2b7ccfc3bae9e321b1a50379a5e33ec9
[ "Apache-2.0" ]
4
2020-08-13T11:11:31.000Z
2021-09-24T16:55:42.000Z
csgocheat/menu/framework/c_text.cpp
garryhvh420/e_xyz
668d8c8c2b7ccfc3bae9e321b1a50379a5e33ec9
[ "Apache-2.0" ]
null
null
null
csgocheat/menu/framework/c_text.cpp
garryhvh420/e_xyz
668d8c8c2b7ccfc3bae9e321b1a50379a5e33ec9
[ "Apache-2.0" ]
6
2020-07-15T17:00:14.000Z
2022-03-25T07:45:13.000Z
#include "c_text.h" #include "../../hooks/idirect3ddevice9.h" c_text::c_text(const std::pair<std::string, char> text, const c_color color, const uint32_t font, const uint8_t flags, const bool centered) : c_drawable(c_vector2d()), text(text), color(color), font(font), flags(flags), centered(centered) { _rt(txt, text)...
25.066667
141
0.702128
garryhvh420
2b0692c93e469e48bb4bd0a63cc77a20faa6b285
4,976
cpp
C++
tests/prison.cpp
Qt-Widgets/prison-QRCode-and-DataMatrix-barcodes-Generator
7fa0884055fb52ae4cdbb7191f44420312cc74c0
[ "MIT" ]
1
2021-05-08T17:15:19.000Z
2021-05-08T17:15:19.000Z
tests/prison.cpp
Qt-Widgets/prison-QRCode-and-DataMatrix-barcodes-Generator
7fa0884055fb52ae4cdbb7191f44420312cc74c0
[ "MIT" ]
null
null
null
tests/prison.cpp
Qt-Widgets/prison-QRCode-and-DataMatrix-barcodes-Generator
7fa0884055fb52ae4cdbb7191f44420312cc74c0
[ "MIT" ]
null
null
null
/* Copyright (c) 2010-2016 Sune Vuorela <sune@vuorela.dk> 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, ...
32.953642
85
0.705185
Qt-Widgets
2b06f4bbfb0a0e3b6618de85ead334359ba0504a
134
cpp
C++
GameIntegration/Random.cpp
AdiBaby/NetworkingGame
31b3ec1acd3711bdb43c609a74076e0650dea642
[ "FSFAP" ]
null
null
null
GameIntegration/Random.cpp
AdiBaby/NetworkingGame
31b3ec1acd3711bdb43c609a74076e0650dea642
[ "FSFAP" ]
null
null
null
GameIntegration/Random.cpp
AdiBaby/NetworkingGame
31b3ec1acd3711bdb43c609a74076e0650dea642
[ "FSFAP" ]
null
null
null
#include "Random.h" #include <chrono> std::mt19937 Random::generator(std::chrono::system_clock::now().time_since_epoch().count());
33.5
92
0.723881
AdiBaby
2b09d138df8e2662826497db9ec577feb8a0ad54
13,131
cpp
C++
GCS_UTM.cpp
ClaudioLelis/UTM_TestBed
fee8d42cf481125f944ea5f70b31a13ec29fa378
[ "MIT" ]
null
null
null
GCS_UTM.cpp
ClaudioLelis/UTM_TestBed
fee8d42cf481125f944ea5f70b31a13ec29fa378
[ "MIT" ]
null
null
null
GCS_UTM.cpp
ClaudioLelis/UTM_TestBed
fee8d42cf481125f944ea5f70b31a13ec29fa378
[ "MIT" ]
1
2021-09-03T21:33:52.000Z
2021-09-03T21:33:52.000Z
#include "GCS_UTM.h" void GCS_UTM::updateSlots() { for (auto company : CompanyList) { for (auto const& [key, uav] : company->UAV_MAP) { //Update UAV Data Coord uavGridPos = geoToGrid(Geo( uav->lat, uav->lon), gconf); ...
35.975342
153
0.444749
ClaudioLelis
2b0dde5ff26e2c98a3c8f43e4c6b32770d9fb5d4
7,233
cpp
C++
test/planner/plan_node_test.cpp
AndiLynn/terrier
6002f8a902d3d0d19bc67998514098f8b41ca264
[ "MIT" ]
null
null
null
test/planner/plan_node_test.cpp
AndiLynn/terrier
6002f8a902d3d0d19bc67998514098f8b41ca264
[ "MIT" ]
5
2019-04-08T20:47:46.000Z
2019-04-24T22:11:28.000Z
test/planner/plan_node_test.cpp
AndiLynn/terrier
6002f8a902d3d0d19bc67998514098f8b41ca264
[ "MIT" ]
1
2021-10-08T01:22:25.000Z
2021-10-08T01:22:25.000Z
#include <memory> #include <random> #include <string> #include <utility> #include <vector> #include "parser/expression/comparison_expression.h" #include "parser/expression/star_expression.h" #include "parser/expression/tuple_value_expression.h" #include "parser/postgresparser.h" #include "planner/plannodes/create_datab...
46.365385
118
0.671644
AndiLynn
2b0e4b24d3a6ca701c0c5a056bd29ad0f28a6991
981
hpp
C++
VMIGameEngine/include/VMIGame/Keyboard.hpp
bakerjm24450/EE142
71ac007fe6850ced5b57336edfd9ddbae37f28c3
[ "MIT" ]
null
null
null
VMIGameEngine/include/VMIGame/Keyboard.hpp
bakerjm24450/EE142
71ac007fe6850ced5b57336edfd9ddbae37f28c3
[ "MIT" ]
null
null
null
VMIGameEngine/include/VMIGame/Keyboard.hpp
bakerjm24450/EE142
71ac007fe6850ced5b57336edfd9ddbae37f28c3
[ "MIT" ]
null
null
null
#pragma once #ifndef VMI_GAME_KEYBOARD_H #define VMI_GAME_KEYBOARD_H namespace vmi { // Define the keycodes. Note that we're just // copying the definition from SFML so that we can // simply pass the keycode on to the SFML function. enum class Key { Unknown = -1, A = 0, B, C, D, E, F, G, H, I, J, K, ...
23.357143
52
0.643221
bakerjm24450
2b0f3782869ab3f2daa2eb156205c19b5ac442a6
3,847
cpp
C++
ExtraLifeEngine/Obsolete/RemovedVoxel/Voxel/Neutral/GreedyMesh/GreedyMesh.cpp
paulburgess1357/ExtraLifeEngine
e0d1f95fa57ea9e5016d1e3800815cdb24b1eb0f
[ "MIT" ]
1
2020-11-13T05:39:46.000Z
2020-11-13T05:39:46.000Z
ExtraLifeEngine/Obsolete/RemovedVoxel/Voxel/Neutral/GreedyMesh/GreedyMesh.cpp
paulburgess1357/ExtraLifeEngine
e0d1f95fa57ea9e5016d1e3800815cdb24b1eb0f
[ "MIT" ]
null
null
null
ExtraLifeEngine/Obsolete/RemovedVoxel/Voxel/Neutral/GreedyMesh/GreedyMesh.cpp
paulburgess1357/ExtraLifeEngine
e0d1f95fa57ea9e5016d1e3800815cdb24b1eb0f
[ "MIT" ]
null
null
null
#include "GreedyMesh.h" namespace ExtraLife { std::vector<Face> GreedyMesh::vertex_vector_to_face_vector(const std::vector<VertexAndNormals>& vertex){ std::vector<Face> face_vector; face_vector.reserve(vertex.size() / 6); for(size_t i = 0; i < vertex.size(); i+=6){ face_vector.push_back(get_face(vertex, i)); ...
31.276423
158
0.737198
paulburgess1357
2b13351b82d798a74f23709e50aea49f8087165f
1,756
cpp
C++
src/game/GameState.cpp
ciscprocess/pe-econ-sim
0d33507a451aace0d8157b45c29bfc582e6b3c18
[ "Apache-2.0" ]
null
null
null
src/game/GameState.cpp
ciscprocess/pe-econ-sim
0d33507a451aace0d8157b45c29bfc582e6b3c18
[ "Apache-2.0" ]
5
2015-07-14T02:30:37.000Z
2015-07-26T22:11:28.000Z
src/game/GameState.cpp
ciscprocess/pe-econ-sim
0d33507a451aace0d8157b45c29bfc582e6b3c18
[ "Apache-2.0" ]
null
null
null
// // Created by Nathan on 7/10/2015. // #include <numeric/Random.h> #include "game/GameState.h" namespace undocked { namespace game { using world::CellularBoard; extern numeric::Random random; void GameState::tick() { for (std::map<void*, GameActionQueue>::iterator i = actions...
29.762712
107
0.470387
ciscprocess
2b1385fbfc701e9357ed02fed578927d086e89de
2,431
cc
C++
src/cpu/vpred/lvp.cc
surya00060/ece-565-course-project
cb96f9be0aa21b6e1a5e10fa62bbb119f3c3a1cd
[ "BSD-3-Clause" ]
null
null
null
src/cpu/vpred/lvp.cc
surya00060/ece-565-course-project
cb96f9be0aa21b6e1a5e10fa62bbb119f3c3a1cd
[ "BSD-3-Clause" ]
null
null
null
src/cpu/vpred/lvp.cc
surya00060/ece-565-course-project
cb96f9be0aa21b6e1a5e10fa62bbb119f3c3a1cd
[ "BSD-3-Clause" ]
1
2020-12-15T20:53:56.000Z
2020-12-15T20:53:56.000Z
#include "cpu/vpred/lvp.hh" #include "base/intmath.hh" // #include "base/logging.hh" // #include "base/trace.hh" // #include "debug/Fetch.hh" #include "iostream" LVP::LVP(const LVPParams *params) : VPredUnit(params), lastPredictorSize(params->lastPredictorSize), lastCtrBits(params->lastCtrBits), ...
23.152381
111
0.642123
surya00060
2b13fd65e3b42d8bdc2baed02661e2f9a49ef0a8
16,715
cpp
C++
src/utils/ofxInfiniteCanvas.cpp
radamchin/ofxNCKinect
ddfae48497e6303cd167f2972601db5cfd90eab7
[ "MIT" ]
58
2019-03-18T14:38:09.000Z
2021-08-03T19:24:07.000Z
src/utils/ofxInfiniteCanvas.cpp
radamchin/ofxNCKinect
ddfae48497e6303cd167f2972601db5cfd90eab7
[ "MIT" ]
1
2016-08-22T18:38:44.000Z
2016-08-23T09:08:40.000Z
src/utils/ofxInfiniteCanvas.cpp
radamchin/ofxNCKinect
ddfae48497e6303cd167f2972601db5cfd90eab7
[ "MIT" ]
7
2016-08-22T15:35:58.000Z
2020-02-11T17:40:31.000Z
// // ofxInfiniteCanvas.cpp // ofxInfiniteCanvas // // Created by Roy Macdonald on 27-06-15. // // #include "ofxInfiniteCanvas.h" ofMatrix4x4 ofxInfiniteCanvas::FM = ofMatrix4x4( 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, ...
36.898455
163
0.516183
radamchin
2b141b20cca6e54a940f73c3f58294c65c341742
6,533
cpp
C++
Core/commonCore.cpp
glwagner/Exasim
ee4540443435f958fa2ca78d59cbf9cff0fe69de
[ "MIT" ]
37
2020-12-09T20:24:36.000Z
2022-02-18T17:19:23.000Z
Core/commonCore.cpp
glwagner/Exasim
ee4540443435f958fa2ca78d59cbf9cff0fe69de
[ "MIT" ]
25
2020-11-25T20:37:33.000Z
2022-02-25T15:53:11.000Z
Core/commonCore.cpp
glwagner/Exasim
ee4540443435f958fa2ca78d59cbf9cff0fe69de
[ "MIT" ]
8
2020-11-30T15:34:06.000Z
2022-01-09T21:06:00.000Z
#ifndef __COMMONCORE #define __COMMONCORE #include <math.h> #include <algorithm> void faceindex2(int *in1, int *in2, int *facecon, int npf, int ncu, int npe, int nc, int f1, int f2) { int nf = f2-f1; int ndf = npf*ncu; int N = ndf*nf; for (int idx = 0; idx<N; idx++) { int i...
27.682203
121
0.452931
glwagner
2b1434a159cfdc742584ef0c9277adf6aaebf973
316
cpp
C++
Level 1/Conditions avancees, operateurs booleens/Nombre de personnes a la fete/main.cpp
Wurlosh/France-ioi
f5fb36003cbfc56a2e7cf64ad43c4452f086f198
[ "MIT" ]
31
2018-10-30T09:54:23.000Z
2022-03-02T21:45:51.000Z
Level 1/Conditions avancees, operateurs booleens/Nombre de personnes a la fete/main.cpp
Wurlosh/France-ioi
f5fb36003cbfc56a2e7cf64ad43c4452f086f198
[ "MIT" ]
2
2016-12-24T23:39:20.000Z
2017-07-02T22:51:28.000Z
Level 1/Conditions avancees, operateurs booleens/Nombre de personnes a la fete/main.cpp
Wurlosh/France-ioi
f5fb36003cbfc56a2e7cf64ad43c4452f086f198
[ "MIT" ]
30
2018-10-25T12:28:36.000Z
2022-01-31T14:31:02.000Z
#include <iostream> using namespace std; int main() { int n,a; cin>>n; int cnt=0; int maximum=0; for(int i=0;i<2*n;++i) { cin>>a; if(a>0) cnt++; else cnt--; maximum=(maximum>cnt)?maximum:cnt; } cout<<maximum<<endl; return 0; }
15.047619
42
0.458861
Wurlosh
2b19122acf80e931a12bcd2425e74039efb3079e
2,782
cpp
C++
Core/Renderer/OpenGL/src/OGLFramebuffer.cpp
SDurand7/AVLIT-Engine
c7a8e361d91e57fb96acfc1c96a88c3b480bb256
[ "MIT" ]
null
null
null
Core/Renderer/OpenGL/src/OGLFramebuffer.cpp
SDurand7/AVLIT-Engine
c7a8e361d91e57fb96acfc1c96a88c3b480bb256
[ "MIT" ]
null
null
null
Core/Renderer/OpenGL/src/OGLFramebuffer.cpp
SDurand7/AVLIT-Engine
c7a8e361d91e57fb96acfc1c96a88c3b480bb256
[ "MIT" ]
null
null
null
#include "OGLFramebuffer.hpp" #include <random> #include <cmath> #include <Core/Base/include/Math.hpp> #include <Core/Renderer/OpenGL/include/OGLTexture.hpp> #include "bluenoise.h" namespace AVLIT { GLint OGLFramebuffer::m_defaultID = -1; OGLFramebuffer::OGLFramebuffer(GLuint textureCount) : m_textures(textu...
33.119048
120
0.723221
SDurand7
2b22643ace63cb46c2d6a23877f2a46d29b493b6
6,285
hpp
C++
Algorithm/arcsim/adaptiveCloth/mesh.hpp
dolphin-li/ClothDesigner
82b186d6db320b645ac67a4d32d7746cc9bdd391
[ "MIT" ]
32
2016-12-13T05:49:12.000Z
2022-02-04T06:15:47.000Z
Algorithm/arcsim/adaptiveCloth/mesh.hpp
dolphin-li/ClothDesigner
82b186d6db320b645ac67a4d32d7746cc9bdd391
[ "MIT" ]
2
2019-07-30T02:01:16.000Z
2020-03-12T15:06:51.000Z
Algorithm/arcsim/adaptiveCloth/mesh.hpp
dolphin-li/ClothDesigner
82b186d6db320b645ac67a4d32d7746cc9bdd391
[ "MIT" ]
18
2017-11-16T13:37:06.000Z
2022-03-11T08:13:46.000Z
/* Copyright ©2013 The Regents of the University of California (Regents). All Rights Reserved. Permission to use, copy, modify, and distribute this software and its documentation for educational, research, and not-for-profit purposes, without fee and without a signed licensing agreement, is hereby granted, pr...
29.78673
78
0.689578
dolphin-li
2b230c57699fdf09df76b5eb1898060440304bb2
3,413
cpp
C++
Core/MAGESLAM/Source/MageUtil.cpp
syntheticmagus/mageslam
ba79a4e6315689c072c29749de18d70279a4c5e4
[ "MIT" ]
70
2020-05-07T03:09:09.000Z
2022-02-11T01:04:54.000Z
Core/MAGESLAM/Source/MageUtil.cpp
syntheticmagus/mageslam
ba79a4e6315689c072c29749de18d70279a4c5e4
[ "MIT" ]
3
2020-06-01T00:34:01.000Z
2020-10-08T07:43:32.000Z
Core/MAGESLAM/Source/MageUtil.cpp
syntheticmagus/mageslam
ba79a4e6315689c072c29749de18d70279a4c5e4
[ "MIT" ]
16
2020-05-07T03:09:13.000Z
2022-03-31T15:36:49.000Z
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include "MageUtil.h" #include "Utils/cv.h" #include "Utils/Logging.h" #include "Tracking/Reprojection.h" #include "Device/CameraCalibration.h" namespace mage { mage::Rect CalculateOverlapCropSourceInTarget(const mage::Matrix& targetToSou...
59.877193
180
0.709054
syntheticmagus
2b26b4294c8d04f99834a54b1e9e1e2b96c1dd17
3,582
cpp
C++
Project/ProjectView.cpp
nfyfamr/Graphing-Calculator
45205b61f7e8714a9b077affc92ab42dc802a30b
[ "MIT" ]
null
null
null
Project/ProjectView.cpp
nfyfamr/Graphing-Calculator
45205b61f7e8714a9b077affc92ab42dc802a30b
[ "MIT" ]
null
null
null
Project/ProjectView.cpp
nfyfamr/Graphing-Calculator
45205b61f7e8714a9b077affc92ab42dc802a30b
[ "MIT" ]
null
null
null
// ProjectView.cpp : implementation of the CProjectView class // #include "stdafx.h" #include "Project.h" #include "ProjectDoc.h" #include "ProjectView.h" #include "Graph.h" #include "Calculator.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif CCa...
24.534247
78
0.647125
nfyfamr
2b27f8859bea3d25f4eec2d0ab240222b52d7a9b
22,056
cpp
C++
Universal-Physics-mod/src/simulation/elements/STKM.cpp
AllSafeCyberSecur1ty/Nuclear-Engineering
302d6dcc7c0a85a9191098366b076cf9cb5a9f6e
[ "MIT" ]
1
2022-03-26T20:01:13.000Z
2022-03-26T20:01:13.000Z
Universal-Physics-mod/src/simulation/elements/STKM.cpp
AllSafeCyberSecur1ty/Nuclear-Engineering
302d6dcc7c0a85a9191098366b076cf9cb5a9f6e
[ "MIT" ]
null
null
null
Universal-Physics-mod/src/simulation/elements/STKM.cpp
AllSafeCyberSecur1ty/Nuclear-Engineering
302d6dcc7c0a85a9191098366b076cf9cb5a9f6e
[ "MIT" ]
1
2022-03-26T19:59:13.000Z
2022-03-26T19:59:13.000Z
#include "simulation/ElementCommon.h" static int update(UPDATE_FUNC_ARGS); int Element_STKM_graphics(GRAPHICS_FUNC_ARGS); static void create(ELEMENT_CREATE_FUNC_ARGS); static bool createAllowed(ELEMENT_CREATE_ALLOWED_FUNC_ARGS); static void changeType(ELEMENT_CHANGETYPE_FUNC_ARGS); void Element_STKM_init_legs(Simulati...
29.765182
227
0.599429
AllSafeCyberSecur1ty
1a745efb8bd232ce0910c1a88350c5075d5d606b
16,766
cc
C++
src/node/node.cc
MIXALER/raft
3bd2a829a2973bda7227430c38e295a8d8c7fe85
[ "MIT" ]
null
null
null
src/node/node.cc
MIXALER/raft
3bd2a829a2973bda7227430c38e295a8d8c7fe85
[ "MIT" ]
null
null
null
src/node/node.cc
MIXALER/raft
3bd2a829a2973bda7227430c38e295a8d8c7fe85
[ "MIT" ]
null
null
null
#include "node.h" #include "common/constants.h" #include "common/logging.h" namespace raftcpp::node { RaftNode::RaftNode(std::shared_ptr<StateMachine> state_machine, rest_rpc::rpc_service::rpc_server &rpc_server, const common::Config &config, RaftcppLogLevel severity) : time...
46.572222
90
0.609209
MIXALER
1a7477a5d631d204099e7db6edafb9c8ac0f7161
5,255
cpp
C++
src/setops/ii/ii-setops.cpp
daboyuka/PIQUE
d0e2ba4cc47aaeaf364b3c76339306e1795adb5e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/setops/ii/ii-setops.cpp
daboyuka/PIQUE
d0e2ba4cc47aaeaf364b3c76339306e1795adb5e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/setops/ii/ii-setops.cpp
daboyuka/PIQUE
d0e2ba4cc47aaeaf364b3c76339306e1795adb5e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
/* * Copyright 2015 David A. Boyuka II * * 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 ...
31.848485
133
0.72902
daboyuka
1a7560bb6d50c829230220d5225446360b3b2fdc
593
cpp
C++
ParallelForLoopBenchmark/StopWatch.cpp
shaovoon/vcpp_parallel_loops
93a45f640073cfec76b1fd8ca568470230b2e735
[ "MIT" ]
2
2018-11-19T12:54:17.000Z
2020-01-11T02:43:35.000Z
ParallelForLoopBenchmark/StopWatch.cpp
shaovoon/vcpp_parallel_loops
93a45f640073cfec76b1fd8ca568470230b2e735
[ "MIT" ]
null
null
null
ParallelForLoopBenchmark/StopWatch.cpp
shaovoon/vcpp_parallel_loops
93a45f640073cfec76b1fd8ca568470230b2e735
[ "MIT" ]
1
2020-01-11T02:43:37.000Z
2020-01-11T02:43:37.000Z
#include "StdAfx.h" #include "StopWatch.h" #define TARGET_RESOLUTION 1 // 1-millisecond target resolution StopWatch::StopWatch(void) { TIMECAPS tc; if (timeGetDevCaps(&tc, sizeof(TIMECAPS)) != TIMERR_NOERROR) { // Error; application can't continue. } m_wTimerRes = min(max(tc.wPeriodMin, TARGET_RESOL...
16.472222
73
0.715008
shaovoon
1a7569e528464edeee8ea37a226f6a88a5f8741a
16,376
hpp
C++
include/json.hpp
smbss1/FoxJson
c4aa06d8ff062ff99c1c6776f1e50b46a5266973
[ "MIT" ]
2
2021-05-25T12:26:50.000Z
2021-05-25T12:27:36.000Z
include/json.hpp
smbss1/FoxJson
c4aa06d8ff062ff99c1c6776f1e50b46a5266973
[ "MIT" ]
null
null
null
include/json.hpp
smbss1/FoxJson
c4aa06d8ff062ff99c1c6776f1e50b46a5266973
[ "MIT" ]
null
null
null
#ifndef FOX_JSON_HPP_ #define FOX_JSON_HPP_ #include <assert.h> #include <string> #include <vector> #include <unordered_map> #include <iostream> namespace fox { namespace json { enum json_type { null, object, array, string, number_i...
33.082828
122
0.418234
smbss1
1a788384cf911e2c31c529730a7dfd0e7adada29
654
cpp
C++
learn_cpp/exception_handling_6.cpp
xufor/dsa-hustle
00ca691ddc4794a5a7b4439a59c463c4f0444a7a
[ "MIT" ]
null
null
null
learn_cpp/exception_handling_6.cpp
xufor/dsa-hustle
00ca691ddc4794a5a7b4439a59c463c4f0444a7a
[ "MIT" ]
null
null
null
learn_cpp/exception_handling_6.cpp
xufor/dsa-hustle
00ca691ddc4794a5a7b4439a59c463c4f0444a7a
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; class ZeroDivisionError: public exception { public: string what() { return "The divisor cannot be zero!"; } }; float division(float a, float b) { if(b == 0) throw ZeroDivisionError(); return a/b; } int main() { int a,b; ...
19.818182
84
0.522936
xufor
1a7e91735629263f7f87154abcad0e7ae29da8ff
44
hpp
C++
contracts/beoslib/beos_privileged.hpp
terradacs/beos-core
31e19170bcad573b1d498811284e62babd478f92
[ "MIT" ]
9
2019-04-04T18:46:14.000Z
2022-03-03T16:22:56.000Z
contracts/beoslib/beos_privileged.hpp
terradacs/beos-core
31e19170bcad573b1d498811284e62babd478f92
[ "MIT" ]
null
null
null
contracts/beoslib/beos_privileged.hpp
terradacs/beos-core
31e19170bcad573b1d498811284e62babd478f92
[ "MIT" ]
3
2019-03-19T17:45:08.000Z
2021-03-22T21:45:35.000Z
#pragma once #include "beos_privileged.h"
8.8
28
0.75
terradacs
1a861fcc3d51dd79c5e7554eeb735f4290c85e41
390
hpp
C++
src/version.hpp
pmenzel/kiq
61c62917abc4392d6c79540762a7941b69f69945
[ "MIT" ]
5
2018-12-11T12:12:48.000Z
2019-02-26T10:47:23.000Z
src/version.hpp
pmenzel/kiq
61c62917abc4392d6c79540762a7941b69f69945
[ "MIT" ]
1
2019-01-10T16:31:58.000Z
2019-01-11T09:43:10.000Z
src/version.hpp
pmenzel/kiq
61c62917abc4392d6c79540762a7941b69f69945
[ "MIT" ]
null
null
null
#pragma once #define KIQ_VERSION_MAJOR 0 #define KIQ_VERSION_MINOR 2 #define KIQ_VERSION_PATCH 0 #define KIQ_VERSION_SUFFIX "" #define KIQ_STR_HELPER(x) #x #define KIQ_STR(x) KIQ_STR_HELPER(x) #define KIQ_VERSION_STRING \ (KIQ_STR(KIQ_VERSION_MAJOR) "." KIQ_STR(KIQ_VE...
24.375
75
0.694872
pmenzel
1a8a5c0f12a459fb6c74177405da68e35bfd3be5
4,501
cpp
C++
log/src/LogColorizer.cpp
Arthapz/StormKit
7c8dead874734d04b97776287b25bf2ebe9be617
[ "MIT" ]
17
2019-02-12T14:40:06.000Z
2021-12-21T12:54:17.000Z
log/src/LogColorizer.cpp
Arthapz/StormKit
7c8dead874734d04b97776287b25bf2ebe9be617
[ "MIT" ]
null
null
null
log/src/LogColorizer.cpp
Arthapz/StormKit
7c8dead874734d04b97776287b25bf2ebe9be617
[ "MIT" ]
2
2019-02-21T10:07:42.000Z
2020-05-08T19:49:10.000Z
// Copyright (C) 2021 Arthur LAURENT <arthur.laurent4@gmail.com> // This file is subject to the license terms in the LICENSE file // found in the top-level of this distribution #include <storm/log/LogColorizer.hpp> #include <storm/core/Platform.hpp> using namespace storm; using namespace storm::log; #if ...
39.831858
95
0.532548
Arthapz
1a8db25027951d689fafc646dea2503f5645a35e
1,116
hpp
C++
sprig/policy/detail/is_policy_any_of_check_impl.hpp
bolero-MURAKAMI/Sprig
51ce4db4f4d093dee659a136f47249e4fe91fc7a
[ "BSL-1.0" ]
2
2017-10-24T13:56:24.000Z
2018-09-28T13:21:22.000Z
sprig/policy/detail/is_policy_any_of_check_impl.hpp
bolero-MURAKAMI/Sprig
51ce4db4f4d093dee659a136f47249e4fe91fc7a
[ "BSL-1.0" ]
null
null
null
sprig/policy/detail/is_policy_any_of_check_impl.hpp
bolero-MURAKAMI/Sprig
51ce4db4f4d093dee659a136f47249e4fe91fc7a
[ "BSL-1.0" ]
2
2016-04-12T03:26:06.000Z
2018-09-28T13:21:22.000Z
/*============================================================================= Copyright (c) 2010-2016 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprig 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) ===...
33.818182
79
0.678315
bolero-MURAKAMI
1a9050a0d4ac590539f03eaa8042c00718db0393
3,745
cpp
C++
components/json-comp/json-comp.cpp
chegewara/esp32sx-c-plus-wrappers
dcc61fc057d6d07b354b4bd352956240707ca482
[ "MIT" ]
3
2021-12-15T10:24:08.000Z
2022-03-10T14:34:10.000Z
components/json-comp/json-comp.cpp
chegewara/esp32sx-c-plus-wrappers
dcc61fc057d6d07b354b4bd352956240707ca482
[ "MIT" ]
null
null
null
components/json-comp/json-comp.cpp
chegewara/esp32sx-c-plus-wrappers
dcc61fc057d6d07b354b4bd352956240707ca482
[ "MIT" ]
null
null
null
#include <stdio.h> #include "cJSON.h" #include "json.h" JSON::JSON(const char *obj) { root = cJSON_Parse(obj); } JSON::JSON(cJSON *obj) { root = cJSON_Duplicate(obj, true); } JSON::JSON(uint8_t type) { switch (type) { case cJSON_False: root = cJSON_CreateFalse(); break; case ...
17.665094
67
0.624299
chegewara
1a91061e9e20d97192d6a681f4fc61e79a0c97f4
6,683
cpp
C++
src/readCSV.cpp
Fs2a/fs2a
d860ca2e6e4abd938a1ddba809b5332ccfbdfb34
[ "BSD-3-Clause" ]
null
null
null
src/readCSV.cpp
Fs2a/fs2a
d860ca2e6e4abd938a1ddba809b5332ccfbdfb34
[ "BSD-3-Clause" ]
null
null
null
src/readCSV.cpp
Fs2a/fs2a
d860ca2e6e4abd938a1ddba809b5332ccfbdfb34
[ "BSD-3-Clause" ]
null
null
null
/* BSD 3-Clause License * * Copyright (c) 2020, Fs2a, Simon de Hartog <simon@fs2a.pro> * 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...
28.682403
106
0.617088
Fs2a
1a92d09bc8c493a9f7a0e50fab7dfc9ab951a78e
2,229
cpp
C++
GpuMiner/XDagCore/XFee.cpp
swordlet/DaggerAOCLminer
f4fa5b5aec4942863c234463d3aeb244c472eae4
[ "MIT" ]
5
2019-03-08T11:26:35.000Z
2022-01-15T12:53:57.000Z
GpuMiner/XDagCore/XFee.cpp
swordlet/DaggerAOCLminer
f4fa5b5aec4942863c234463d3aeb244c472eae4
[ "MIT" ]
null
null
null
GpuMiner/XDagCore/XFee.cpp
swordlet/DaggerAOCLminer
f4fa5b5aec4942863c234463d3aeb244c472eae4
[ "MIT" ]
6
2019-03-07T08:46:33.000Z
2022-02-15T17:38:18.000Z
// Implementation of fee // Author: Evgeniy Sukhomlinov // 2018 // Licensed under GNU General Public License, Version 3. See the LICENSE file. #include "XFee.h" #include "Core/Log.h" #ifdef _DEBUG #define FEE_PERIOD 4 const std::string GpuDevAddress = "YMB0XWN1vxY5jLiZwSDeTDQTRO2NVEW9"; #else #define FE...
25.044944
121
0.656797
swordlet
1a93da20f884d28297c65880ee825abe5305f220
560
hpp
C++
lib/src/cpu/cpu_median.hpp
akowalew/cuda-imgproc
5d8f8b13ff94e9d914e9106cd6cdefee2ee549ff
[ "MIT" ]
null
null
null
lib/src/cpu/cpu_median.hpp
akowalew/cuda-imgproc
5d8f8b13ff94e9d914e9106cd6cdefee2ee549ff
[ "MIT" ]
null
null
null
lib/src/cpu/cpu_median.hpp
akowalew/cuda-imgproc
5d8f8b13ff94e9d914e9106cd6cdefee2ee549ff
[ "MIT" ]
null
null
null
/////////////////////////////////////////////////////////////////////////////// // cpu_median.hpp // // Contains declarations for CPU median filterer /////////////////////////////////////////////////////////////////////////////// #pragma once #include "image.hpp" // // Public declarations // void cpu_median(Image& ...
21.538462
79
0.496429
akowalew
1a967e76f5f3550eeec84559fb675372cb1f298d
4,225
cpp
C++
tests/expr_test.cpp
ambrop72/aprinter
b97c3111dad96aedf653c40b976317d73ac91715
[ "BSD-2-Clause" ]
133
2015-02-02T04:20:19.000Z
2021-02-28T22:21:49.000Z
tests/expr_test.cpp
ambrop72/aprinter
b97c3111dad96aedf653c40b976317d73ac91715
[ "BSD-2-Clause" ]
20
2015-01-06T08:41:26.000Z
2019-07-25T07:10:26.000Z
tests/expr_test.cpp
ambrop72/aprinter
b97c3111dad96aedf653c40b976317d73ac91715
[ "BSD-2-Clause" ]
46
2015-01-05T11:26:21.000Z
2020-06-22T04:58:23.000Z
/* * Copyright (c) 2015 Ambroz Bizjak * 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 copyright * notice, this list of conditio...
42.25
82
0.717396
ambrop72
1a9a826a51abd6ccadd0d3876dfdc9f9463bb9b2
2,950
cpp
C++
.upstream-tests/test/std/language.support/cmp/cmp.common/common_comparison_category.pass.cpp
clayne/libcudacxx
b6908c62833db1f0bb5ae06944f6613f23d814b3
[ "Apache-2.0" ]
null
null
null
.upstream-tests/test/std/language.support/cmp/cmp.common/common_comparison_category.pass.cpp
clayne/libcudacxx
b6908c62833db1f0bb5ae06944f6613f23d814b3
[ "Apache-2.0" ]
null
null
null
.upstream-tests/test/std/language.support/cmp/cmp.common/common_comparison_category.pass.cpp
clayne/libcudacxx
b6908c62833db1f0bb5ae06944f6613f23d814b3
[ "Apache-2.0" ]
1
2021-11-12T21:19:28.000Z
2021-11-12T21:19:28.000Z
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
31.052632
103
0.617288
clayne
1a9d421505c12c352499a2a69177f61a421ccf3f
965
hpp
C++
src/Commands/RemoveDirCommand.hpp
lucastarche/HacknetPlusPlus
9221be47157da5402ea7a0cc1f769ddeb4eca5c0
[ "MIT" ]
1
2021-12-15T17:24:17.000Z
2021-12-15T17:24:17.000Z
src/Commands/RemoveDirCommand.hpp
lucastarche/HacknetPlusPlus
9221be47157da5402ea7a0cc1f769ddeb4eca5c0
[ "MIT" ]
2
2020-11-26T14:05:36.000Z
2021-02-17T23:16:28.000Z
src/Commands/RemoveDirCommand.hpp
lucastarche/HacknetPlusPlus
9221be47157da5402ea7a0cc1f769ddeb4eca5c0
[ "MIT" ]
4
2020-11-26T03:19:07.000Z
2021-02-16T21:15:01.000Z
#pragma once #include "Command.hpp" class RemoveDirCommand : public Command { public: void run(const std::vector<std::string> &args) override { if (!hasExactArguments(2, args)) return; GameManager *game = GameManager::getInstance(); FileSystemElement* elem = game->getDi...
33.275862
80
0.47772
lucastarche
1aa011bbb55992c21f0f6dfae0f06c10fce80157
71
hpp
C++
src/zerocopy/args.hpp
ZaidQureshi/comm_scope
a3dc1a117c30e7f453c9be5dcc68cd979bd852d8
[ "Apache-2.0" ]
12
2020-05-07T20:48:01.000Z
2021-11-24T17:57:28.000Z
src/zerocopy/args.hpp
ZaidQureshi/comm_scope
a3dc1a117c30e7f453c9be5dcc68cd979bd852d8
[ "Apache-2.0" ]
41
2018-09-03T21:18:49.000Z
2021-03-05T21:55:27.000Z
src/zerocopy/args.hpp
ZaidQureshi/comm_scope
a3dc1a117c30e7f453c9be5dcc68cd979bd852d8
[ "Apache-2.0" ]
5
2019-12-14T19:38:47.000Z
2022-02-20T12:50:24.000Z
#pragma once #define ARGS() DenseRange(10, 33, 1)->ArgName("log2(N)")
17.75
56
0.661972
ZaidQureshi
1aa644e52a3c05f7a6478536636e0d9ee02c2e2b
833
hpp
C++
include/public/coherence/lang/Runnable.hpp
chpatel3/coherence-cpp-extend-client
4ea5267eae32064dff1e73339aa3fbc9347ef0f6
[ "UPL-1.0", "Apache-2.0" ]
6
2020-07-01T21:38:30.000Z
2021-11-03T01:35:11.000Z
include/public/coherence/lang/Runnable.hpp
chpatel3/coherence-cpp-extend-client
4ea5267eae32064dff1e73339aa3fbc9347ef0f6
[ "UPL-1.0", "Apache-2.0" ]
1
2020-07-24T17:29:22.000Z
2020-07-24T18:29:04.000Z
include/public/coherence/lang/Runnable.hpp
chpatel3/coherence-cpp-extend-client
4ea5267eae32064dff1e73339aa3fbc9347ef0f6
[ "UPL-1.0", "Apache-2.0" ]
6
2020-07-10T18:40:58.000Z
2022-02-18T01:23:40.000Z
/* * Copyright (c) 2000, 2020, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ #ifndef COH_RUNNABLE_HPP #define COH_RUNNABLE_HPP #include "coherence/lang/compatibility.hpp" #include "coherence/lang/interface_spec.hpp" #i...
21.358974
77
0.654262
chpatel3
1aa81052438d8c556bd7dab6e8bb63bef581c130
2,223
cpp
C++
ql/experimental/compoundoption/compoundoption.cpp
quantosaurosProject/quantLib
84b49913d3940cf80d6de8f70185867373f45e8d
[ "BSD-3-Clause" ]
null
null
null
ql/experimental/compoundoption/compoundoption.cpp
quantosaurosProject/quantLib
84b49913d3940cf80d6de8f70185867373f45e8d
[ "BSD-3-Clause" ]
null
null
null
ql/experimental/compoundoption/compoundoption.cpp
quantosaurosProject/quantLib
84b49913d3940cf80d6de8f70185867373f45e8d
[ "BSD-3-Clause" ]
1
2022-03-29T05:44:27.000Z
2022-03-29T05:44:27.000Z
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2009 Dimitri Reiswich This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it an...
37.677966
79
0.689159
quantosaurosProject
1aaadfec6f8daab0b0ff59a6614b1bbb1aa4186c
1,152
hpp
C++
mpskit/point_functions.hpp
f-koehler/dmrg
335250d066170e7da6f1ee80b9ec1d30e80570c5
[ "MIT" ]
null
null
null
mpskit/point_functions.hpp
f-koehler/dmrg
335250d066170e7da6f1ee80b9ec1d30e80570c5
[ "MIT" ]
null
null
null
mpskit/point_functions.hpp
f-koehler/dmrg
335250d066170e7da6f1ee80b9ec1d30e80570c5
[ "MIT" ]
null
null
null
#ifndef MPSKIT_POINT_FUNCTIONS #define MPSKIT_POINT_FUNCTIONS #include <itensor/itensor.h> #include <itensor/mps/mps.h> #include <itensor/mps/siteset.h> #include <string> #include "types.hpp" namespace itensor { class MPS; } // namespace itensor struct OnePointFunction { protected: int m_index; Real m_pre...
22.588235
108
0.689236
f-koehler
1aafe7be8b7c7e50491925c56c7bf405e4865fb0
1,739
cpp
C++
Instances/Matrix_Chain.cpp
namespace-Pt/Algorithm
59f70e4b82107ae37b3a06338e8ac73be6937d3f
[ "MIT" ]
null
null
null
Instances/Matrix_Chain.cpp
namespace-Pt/Algorithm
59f70e4b82107ae37b3a06338e8ac73be6937d3f
[ "MIT" ]
null
null
null
Instances/Matrix_Chain.cpp
namespace-Pt/Algorithm
59f70e4b82107ae37b3a06338e8ac73be6937d3f
[ "MIT" ]
null
null
null
#include<iostream> #include<limits.h> using namespace std; // 备忘录法自顶向下实现动态规划 int Lookup_Chain(int **M,int ** S,int *p,int i,int j){ // 如果值不是初始化的最大值,则返回 // O(1) if(M[i][j] < INT_MAX){ return M[i][j]; } // 如果只有一个矩阵,直接返回0 // O(1) if(i == j){ return 0; } else ...
20.702381
91
0.454284
namespace-Pt
1ab0ed75e9791507451522ba592fac64dc1d0a3f
61,944
cc
C++
ns-3-dev/src/tap-bridge/model/tap-bridge.cc
maxvonhippel/snake
0805773dc34e1480dffaae40174aa1f82d1c6ce8
[ "BSD-3-Clause" ]
11
2015-11-24T11:07:28.000Z
2021-12-23T04:10:29.000Z
ns-3-dev/src/tap-bridge/model/tap-bridge.cc
maxvonhippel/snake
0805773dc34e1480dffaae40174aa1f82d1c6ce8
[ "BSD-3-Clause" ]
null
null
null
ns-3-dev/src/tap-bridge/model/tap-bridge.cc
maxvonhippel/snake
0805773dc34e1480dffaae40174aa1f82d1c6ce8
[ "BSD-3-Clause" ]
6
2016-03-01T06:32:21.000Z
2022-03-24T19:31:41.000Z
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2009 University of Washington * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This pro...
33.142857
141
0.66565
maxvonhippel
1ab6644027464810395b1b9eccd8b93007ed7f1b
474
cpp
C++
books/tech/cpp/std-17/i_cukic-func_progr_in_cpp/ch_11-tmpl_metaprogr/03-pattern_matching_at_compile-time-1.cpp
ordinary-developer/education
1b1f40dacab873b28ee01dfa33a9bd3ec4cfed58
[ "MIT" ]
null
null
null
books/tech/cpp/std-17/i_cukic-func_progr_in_cpp/ch_11-tmpl_metaprogr/03-pattern_matching_at_compile-time-1.cpp
ordinary-developer/education
1b1f40dacab873b28ee01dfa33a9bd3ec4cfed58
[ "MIT" ]
null
null
null
books/tech/cpp/std-17/i_cukic-func_progr_in_cpp/ch_11-tmpl_metaprogr/03-pattern_matching_at_compile-time-1.cpp
ordinary-developer/education
1b1f40dacab873b28ee01dfa33a9bd3ec4cfed58
[ "MIT" ]
null
null
null
#include <type_traits> #include <string> namespace workspace { template <typename T1, typename T2> struct my_is_same : std::false_type{}; template <typename T> struct my_is_same<T, T> : std::true_type{}; void run() { static_assert(my_is_same<int, int>{}, "int and int are the same"); sta...
18.230769
53
0.637131
ordinary-developer
1ab6ea1872aad39e999a7ea632870dc7fa0339d9
7,804
cpp
C++
CS_162/Assignment_2/class-restaurant.cpp
A4ABATTERY/year-1-uni
8aa66ce9b5b572b21d8ff405bb612ff9f0798b30
[ "MIT" ]
null
null
null
CS_162/Assignment_2/class-restaurant.cpp
A4ABATTERY/year-1-uni
8aa66ce9b5b572b21d8ff405bb612ff9f0798b30
[ "MIT" ]
null
null
null
CS_162/Assignment_2/class-restaurant.cpp
A4ABATTERY/year-1-uni
8aa66ce9b5b572b21d8ff405bb612ff9f0798b30
[ "MIT" ]
null
null
null
#pragma once #include "class-menu.h" #include "class-restaurant.h" #include "class-pizza.h" #include <string.h> #include <cstdlib> #include <iostream> #include <fstream> #include "functions.h" using std::string; restaurant::restaurant(){ name = ""; phone = ""; address = ""; week = NULL; employee...
32.92827
133
0.521399
A4ABATTERY
1ab8541df84826ee5693bceb147fcfb43deaa5f2
1,614
cpp
C++
examples/depends/sdk/test/sb_splitter.cpp
sergeyrachev/neuon
71db22ac607cdd14ad51678b437d70ff08395a28
[ "MIT" ]
9
2018-06-06T03:00:59.000Z
2022-01-22T19:44:32.000Z
test/sb_splitter.cpp
sergeyrachev/mementor
91efdd9237f2ee0460a6ea9ca8fd587718e33139
[ "MIT" ]
null
null
null
test/sb_splitter.cpp
sergeyrachev/mementor
91efdd9237f2ee0460a6ea9ca8fd587718e33139
[ "MIT" ]
null
null
null
#include "extraction.h" #include "version.h" #include "birthday.h" #include "options.h" #include "sighandler.h" #include "spdlog/spdlog.h" #include <string> #include <iostream> #include <csignal> #include <boost/program_options.hpp> int main(int argc, char *argv[]) { std::string media_filename; std::cout <...
31.647059
114
0.622057
sergeyrachev
1abb1f5affa4d04b9cdebaa179cddf9c4fc5fba7
1,642
cpp
C++
test/unit-test/src/test-csv-001.cpp
solosTec/cyng
3862a6b7a2b536d1f00fef20700e64170772dcff
[ "MIT" ]
null
null
null
test/unit-test/src/test-csv-001.cpp
solosTec/cyng
3862a6b7a2b536d1f00fef20700e64170772dcff
[ "MIT" ]
null
null
null
test/unit-test/src/test-csv-001.cpp
solosTec/cyng
3862a6b7a2b536d1f00fef20700e64170772dcff
[ "MIT" ]
null
null
null
/* * The MIT License (MIT) * * Copyright (c) 2019 Sylko Olzscher * */ #include "test-csv-001.h" #include <iostream> #include <boost/test/unit_test.hpp> #include <cyng/csv.h> #include <cyng/object.h> #include <cyng/factory.h> #include <cyng/io/serializer.h> #include <boost/uuid/random_generator.hpp> #include <...
22.493151
130
0.626066
solosTec
1abc0d539e4c61a4d8e9c24e37782e2ea62e0370
14,185
cc
C++
src/test/testanom.cc
gitrah/cuMatrix
cab0239d0ec141528c7832275bac9c7daefdebf4
[ "Unlicense" ]
null
null
null
src/test/testanom.cc
gitrah/cuMatrix
cab0239d0ec141528c7832275bac9c7daefdebf4
[ "Unlicense" ]
null
null
null
src/test/testanom.cc
gitrah/cuMatrix
cab0239d0ec141528c7832275bac9c7daefdebf4
[ "Unlicense" ]
null
null
null
/* * testanom.cc * * Created on: Sep 6, 2012 * Author: reid */ #include "../CuMatrix.h" #include "../util.h" #include "../AnomalyDetection.h" #include "tests.h" const char* ANOMDET_SAMPLES_FILE = "ex8data1.txt"; const char* ANOMDET_SAMPLES2_FILE = "ex8data2.txt"; const char* REDWINE_SAMPLES_FILE = "winequ...
35.820707
110
0.6865
gitrah
1abc792b90764a91ee35efa988a490c7cbc236f6
2,269
cxx
C++
MITK/Modules/OpenCV/Features/mitkSurfTester.cxx
NifTK/NifTK
2358b333c89ff1bba1c232eecbbcdc8003305dfe
[ "BSD-3-Clause" ]
13
2018-07-28T13:36:38.000Z
2021-11-01T19:17:39.000Z
MITK/Modules/OpenCV/Features/mitkSurfTester.cxx
NifTK/NifTK
2358b333c89ff1bba1c232eecbbcdc8003305dfe
[ "BSD-3-Clause" ]
null
null
null
MITK/Modules/OpenCV/Features/mitkSurfTester.cxx
NifTK/NifTK
2358b333c89ff1bba1c232eecbbcdc8003305dfe
[ "BSD-3-Clause" ]
10
2018-08-20T07:06:00.000Z
2021-07-07T07:55:27.000Z
/*============================================================================= NifTK: A software platform for medical image computing. Copyright (c) University College London (UCL). All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY o...
28.721519
127
0.581313
NifTK
1abc9329ee60b68bf9cf8b25914a1af930021064
5,098
cpp
C++
SurgSim/DataStructures/DataGroupBuilder.cpp
dbungert/opensurgsim
bd30629f2fd83f823632293959b7654275552fa9
[ "Apache-2.0" ]
24
2015-01-19T16:18:59.000Z
2022-03-13T03:29:11.000Z
SurgSim/DataStructures/DataGroupBuilder.cpp
dbungert/opensurgsim
bd30629f2fd83f823632293959b7654275552fa9
[ "Apache-2.0" ]
3
2018-12-21T14:54:08.000Z
2022-03-14T12:38:07.000Z
SurgSim/DataStructures/DataGroupBuilder.cpp
dbungert/opensurgsim
bd30629f2fd83f823632293959b7654275552fa9
[ "Apache-2.0" ]
8
2015-04-10T19:45:36.000Z
2022-02-02T17:00:59.000Z
// This file is a part of the OpenSurgSim project. // Copyright 2012-2013, SimQuest Solutions 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...
24.04717
95
0.764417
dbungert
1abdc6707530839ae47867e71ec1459b8c89c32a
13,453
cpp
C++
GameServer/Source/ItemUpgradeJewels.cpp
sp3cialk/MU-S8EP2-Repack
202856a74c905c203b9b2795fd161f564ca8b257
[ "MIT" ]
10
2019-04-09T23:36:43.000Z
2022-02-10T19:20:52.000Z
GameServer/Source/ItemUpgradeJewels.cpp
microvn/mu-s8ep2-repack
202856a74c905c203b9b2795fd161f564ca8b257
[ "MIT" ]
1
2019-09-25T17:12:36.000Z
2019-09-25T17:12:36.000Z
GameServer/Source/ItemUpgradeJewels.cpp
microvn/mu-s8ep2-repack
202856a74c905c203b9b2795fd161f564ca8b257
[ "MIT" ]
9
2019-09-25T17:12:57.000Z
2021-08-18T01:21:25.000Z
#include "stdafx.h" #include "ItemUpgradeJewels.h" #include "..\pugixml\pugixml.hpp" #include "logproc.h" #include "GameMain.h" #include "..\common\SetItemOption.h" using namespace pugi; ItemUpgradeJewels g_ItemUpgradeJewels; ItemUpgradeJewels::ItemUpgradeJewels() { } ItemUpgradeJewels::~ItemUpgradeJewels() { } v...
26.021277
153
0.674125
sp3cialk
1aca62a6651e8f9190f6a2ae74382f16ce03107e
4,465
cpp
C++
ctp2_code/ui/aui_sdl/aui_sdlsurface.cpp
xiaolanchong/call_to_power2
39f19d18b363cefb151bbbf050c6b672ee544117
[ "DOC" ]
null
null
null
ctp2_code/ui/aui_sdl/aui_sdlsurface.cpp
xiaolanchong/call_to_power2
39f19d18b363cefb151bbbf050c6b672ee544117
[ "DOC" ]
null
null
null
ctp2_code/ui/aui_sdl/aui_sdlsurface.cpp
xiaolanchong/call_to_power2
39f19d18b363cefb151bbbf050c6b672ee544117
[ "DOC" ]
null
null
null
#include "ctp2_config.h" #include "c3.h" #ifdef __AUI_USE_SDL__ #include "aui_ui.h" #include "aui_uniqueid.h" #include "aui_sdlsurface.h" #include <SDL.h> #include <SDL_thread.h> uint32 aui_SDLSurface::m_SDLSurfaceClassId = aui_UniqueId(); aui_SDLSurface::aui_SDLSurface( AUI_ERRCODE *retval, sint32 width, sint32...
24.944134
128
0.654199
xiaolanchong
1ad143769b25d61f79dc4f586e188da3149be318
342
cpp
C++
Easy/169_Majority_Element.cpp
ShehabMMohamed/LeetCodeCPP
684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780
[ "MIT" ]
1
2021-03-15T10:02:10.000Z
2021-03-15T10:02:10.000Z
Easy/169_Majority_Element.cpp
ShehabMMohamed/LeetCodeCPP
684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780
[ "MIT" ]
null
null
null
Easy/169_Majority_Element.cpp
ShehabMMohamed/LeetCodeCPP
684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780
[ "MIT" ]
null
null
null
class Solution { public: int majorityElement(vector<int>& nums) { unordered_map<int, int> freq; for(int& n : nums) freq[n]++; int major = nums[0]; for(auto it : freq) { if(it.second > floor(nums.size() / 2)) major = it.first; } ...
24.428571
50
0.473684
ShehabMMohamed
1ad418a38a314be3ba44b9ed3a9cd93639f4325e
8,578
cpp
C++
ch09/9.exercise.12.cpp
0p3r4t4/PPPUCPP2nd
cf1bd23bb22ee00a77172e43678b7eaa91f592e0
[ "MIT" ]
51
2017-03-24T06:08:11.000Z
2022-03-18T00:28:14.000Z
ch09/9.exercise.12.cpp
0p3r4t4/PPPUCPP2nd
cf1bd23bb22ee00a77172e43678b7eaa91f592e0
[ "MIT" ]
1
2019-06-23T07:33:42.000Z
2019-12-12T13:14:04.000Z
ch09/9.exercise.12.cpp
0p3r4t4/PPPUCPP2nd
cf1bd23bb22ee00a77172e43678b7eaa91f592e0
[ "MIT" ]
25
2017-04-07T13:22:45.000Z
2022-03-18T00:28:15.000Z
// 9.exercise.12.cpp // // Change the representation of a Date to be the number of days since January // 1, 1970 (known as day 0), represented as a long int, and re-implement the // functions from §9.8. Be sure to reject dates outside the range we can // represent that way (feel free to reject days before day 0, i....
40.084112
80
0.646887
0p3r4t4
1ada697321cc4bc20111abc71c345f2f1004c128
427
cpp
C++
src/sensors/clocks/DS3231.cpp
el-fuego/Arduino-devices
2bc0fa1a9cbc3343f118eda73387e71d59ae4657
[ "MIT" ]
null
null
null
src/sensors/clocks/DS3231.cpp
el-fuego/Arduino-devices
2bc0fa1a9cbc3343f118eda73387e71d59ae4657
[ "MIT" ]
null
null
null
src/sensors/clocks/DS3231.cpp
el-fuego/Arduino-devices
2bc0fa1a9cbc3343f118eda73387e71d59ae4657
[ "MIT" ]
null
null
null
#include <Arduino.h> #include "Sodaq_DS3231.h" #include "./DS3231.h" void DS3231_Sensor::init() { rtc.begin(); }; void DS3231_Sensor::update() { dateTime = rtc.now(); } // hours and minutes in int unsigned int DS3231_Sensor::getIntTime() { return dateTime.hour() * 60 + dateTime.minute(); } // number of minut...
17.791667
50
0.688525
el-fuego
1adae47791a697f55008d1f91d23c22e7b6700fc
6,204
cc
C++
chrome/browser/chromeos/policy/user_cloud_external_data_manager_browsertest.cc
nagineni/chromium-crosswalk
5725642f1c67d0f97e8613ec1c3e8107ab53fdf8
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/browser/chromeos/policy/user_cloud_external_data_manager_browsertest.cc
nagineni/chromium-crosswalk
5725642f1c67d0f97e8613ec1c3e8107ab53fdf8
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/browser/chromeos/policy/user_cloud_external_data_manager_browsertest.cc
nagineni/chromium-crosswalk
5725642f1c67d0f97e8613ec1c3e8107ab53fdf8
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <string> #include "base/basictypes.h" #include "base/bind.h" #include "base/callback.h" #include "base/file_util.h" #include "base/files/file_pa...
39.769231
86
0.742263
nagineni
1adbf8327f2b36a7e8438a71c87935d5cda96b3e
1,720
cc
C++
SimG4Core/CustomPhysics/src/CustomParticle.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
SimG4Core/CustomPhysics/src/CustomParticle.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
SimG4Core/CustomPhysics/src/CustomParticle.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
#include "SimG4Core/CustomPhysics/interface/CustomParticle.h" // ###################################################################### // ### CustomParticle ### // ###################################################################### CustomParticle::CustomParticle(con...
41.95122
73
0.273256
ckamtsikis
1ae352af7b11e11c919a0a4d658a3b9f14a1e01c
181
hpp
C++
src/2d/Layout.hpp
kochol/ari2
ca185191531acc1954cd4acfec2137e32fdb5c2d
[ "MIT" ]
81
2018-12-11T20:48:41.000Z
2022-03-18T22:24:11.000Z
src/2d/Layout.hpp
kochol/ari2
ca185191531acc1954cd4acfec2137e32fdb5c2d
[ "MIT" ]
7
2020-04-19T11:50:39.000Z
2021-11-12T16:08:53.000Z
src/2d/Layout.hpp
kochol/ari2
ca185191531acc1954cd4acfec2137e32fdb5c2d
[ "MIT" ]
4
2019-04-24T11:51:29.000Z
2021-03-10T05:26:33.000Z
#pragma once #include "Node2D.hpp" namespace ari::en { struct Layout : public Node2D { ARI_COMPONENT_CHILD(Layout, Node2D) }; } // namespace ari::en
12.928571
43
0.60221
kochol
1aeada443644154ed8f45a2520a105c3c26dd70e
1,087
cpp
C++
week5/MergeIntervals2.cpp
AngelaJubeJudy/Algorithms
3a6eef59fd2fcb54d80013c067273d73bc6e79b9
[ "MIT" ]
null
null
null
week5/MergeIntervals2.cpp
AngelaJubeJudy/Algorithms
3a6eef59fd2fcb54d80013c067273d73bc6e79b9
[ "MIT" ]
null
null
null
week5/MergeIntervals2.cpp
AngelaJubeJudy/Algorithms
3a6eef59fd2fcb54d80013c067273d73bc6e79b9
[ "MIT" ]
null
null
null
class MergeIntervals2 { public: vector<vector<int>> merge(vector<vector<int>>& intervals) { // 双关键字排序:2个长为2的数组的比较 sort(intervals.begin(), intervals.end(), [](vector<int>& a, vector<int>& b){ return a[0] < b[0] || (a[0] == b[0] && a[1] < b[1]); }); // “差分” ...
31.057143
85
0.471021
AngelaJubeJudy
1aed0b851cb2e031ea5d299a24131e599aabb08b
4,060
cpp
C++
transaction/tests/LockTable_unittest.cpp
spring-operator/quickstep
3e98776002eb5db7154031fd6ef1a7f000a89d81
[ "Apache-2.0" ]
31
2016-01-20T05:43:46.000Z
2022-02-07T09:14:06.000Z
transaction/tests/LockTable_unittest.cpp
spring-operator/quickstep
3e98776002eb5db7154031fd6ef1a7f000a89d81
[ "Apache-2.0" ]
221
2016-01-20T18:25:10.000Z
2016-06-26T02:58:12.000Z
transaction/tests/LockTable_unittest.cpp
spring-operator/quickstep
3e98776002eb5db7154031fd6ef1a7f000a89d81
[ "Apache-2.0" ]
17
2016-01-20T04:00:21.000Z
2019-03-12T02:41:25.000Z
/** * Copyright 2016, Quickstep Research Group, Computer Sciences Department, * University of Wisconsin—Madison. * * 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 * * ...
35.304348
79
0.637192
spring-operator
1aed3c3b7ed91ce81f1e583b2234041f53772e1d
24,638
cc
C++
src/biharmonic/biharmonic_preconditioner.cc
pkeuchel/oomph-lib
37c1c61425d6b9ea1c2ddceef63a68a228af6fa4
[ "RSA-MD" ]
4
2020-11-16T12:25:09.000Z
2021-06-29T08:53:25.000Z
src/biharmonic/biharmonic_preconditioner.cc
pkeuchel/oomph-lib
37c1c61425d6b9ea1c2ddceef63a68a228af6fa4
[ "RSA-MD" ]
2
2020-05-05T22:41:37.000Z
2020-05-10T14:14:17.000Z
src/biharmonic/biharmonic_preconditioner.cc
pkeuchel/oomph-lib
37c1c61425d6b9ea1c2ddceef63a68a228af6fa4
[ "RSA-MD" ]
3
2021-01-31T14:09:20.000Z
2021-06-07T07:20:51.000Z
// LIC// ==================================================================== // LIC// This file forms part of oomph-lib, the object-oriented, // LIC// multi-physics finite-element library, available // LIC// at http://www.oomph-lib.org. // LIC// // LIC// Copyright (C) 2006-2021 Matthias Heil and Andrew Hazel // LIC// ...
35.348637
81
0.60496
pkeuchel
1aeed8bde00b3dfdbdb3d99ce7a0c572d2956660
5,944
cpp
C++
ql/models/marketmodels/products/multistep/multistepvolswap.cpp
universe1987/QuantLib
bbb0145aff285853755b9f6ed013f53a41163acb
[ "BSD-3-Clause" ]
4
2016-03-28T15:05:23.000Z
2020-02-17T23:05:57.000Z
ql/models/marketmodels/products/multistep/multistepvolswap.cpp
universe1987/QuantLib
bbb0145aff285853755b9f6ed013f53a41163acb
[ "BSD-3-Clause" ]
1
2015-02-02T20:32:43.000Z
2015-02-02T20:32:43.000Z
ql/models/marketmodels/products/multistep/multistepvolswap.cpp
pcaspers/quantlib
bbb0145aff285853755b9f6ed013f53a41163acb
[ "BSD-3-Clause" ]
10
2015-01-26T14:50:24.000Z
2015-10-23T07:41:30.000Z
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2012 Peter Caspers This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it and/o...
47.935484
251
0.728129
universe1987
8c19629bba9b92700937ef7313aefa4480840d3b
807
cpp
C++
Catch2/include/internal/catch_decomposer.cpp
TheBlindMick/MPU6050
66880369fa7a73755846e60568137dfc07da1b5c
[ "BSL-1.0" ]
1,461
2022-02-25T17:44:34.000Z
2022-03-30T06:18:29.000Z
Catch2/include/internal/catch_decomposer.cpp
TheBlindMick/MPU6050
66880369fa7a73755846e60568137dfc07da1b5c
[ "BSL-1.0" ]
116
2021-05-29T16:32:51.000Z
2021-08-13T16:05:29.000Z
Catch2/include/internal/catch_decomposer.cpp
TheBlindMick/MPU6050
66880369fa7a73755846e60568137dfc07da1b5c
[ "BSL-1.0" ]
135
2019-04-16T09:10:13.000Z
2022-03-18T10:22:40.000Z
/* * Created by Phil Nash on 8/8/2017. * Copyright 2017 Two Blue Cubes Ltd. All rights reserved. * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #include "catch_decomposer.h" #include "catch_config.hpp...
32.28
122
0.583643
TheBlindMick
8c1acde0ba3220cecca6826e47a8dab7bf4b91e2
7,335
cpp
C++
src/BabylonCpp/src/core/logging/log_message.cpp
sacceus/BabylonCpp
94669cf7cbe3214ec6e905cbf249fa0c9daf6222
[ "Apache-2.0" ]
277
2017-05-18T08:27:10.000Z
2022-03-26T01:31:37.000Z
src/BabylonCpp/src/core/logging/log_message.cpp
sacceus/BabylonCpp
94669cf7cbe3214ec6e905cbf249fa0c9daf6222
[ "Apache-2.0" ]
77
2017-09-03T15:35:02.000Z
2022-03-28T18:47:20.000Z
src/BabylonCpp/src/core/logging/log_message.cpp
sacceus/BabylonCpp
94669cf7cbe3214ec6e905cbf249fa0c9daf6222
[ "Apache-2.0" ]
37
2017-03-30T03:36:24.000Z
2022-01-28T08:28:36.000Z
#include <babylon/core/logging/log_message.h> #include <babylon/core/time.h> #include <cstdarg> #include <thread> namespace BABYLON { LogMessage::LogMessage(unsigned int level, const std::string& context) : _level{level}, _context{context} { // Set timestamp _timestamp = Time::systemTimepointNow(...
26.384892
81
0.608998
sacceus
8c1bf2b4549b3ff3e548af905dcf22df75e7c4ea
581
cpp
C++
MET/main.cpp
elem-azar-unis/Redis-RPQ
96cb520a1985a01ab67069ab2a2bc22e656c7583
[ "BSD-3-Clause" ]
2
2018-07-11T03:06:10.000Z
2018-07-19T06:12:47.000Z
MET/main.cpp
elem-azar-unis/Redis-RPQ
96cb520a1985a01ab67069ab2a2bc22e656c7583
[ "BSD-3-Clause" ]
null
null
null
MET/main.cpp
elem-azar-unis/Redis-RPQ
96cb520a1985a01ab67069ab2a2bc22e656c7583
[ "BSD-3-Clause" ]
null
null
null
#include "exp_runner.h" int main() { std::ios::sync_with_stdio(false); std::cin.tie(nullptr); // run<rpq_op_script, rpq_oracle>("TLA/rwf_rpq/rwf_rpq_2_4.script"); // run<rpq_op_script, rpq_oracle>("TLA/rwf_rpq/rwf_rpq_3_3.script"); std::ofstream out_2_4("out_2_4.script"); run<list_op_script, ...
29.05
82
0.702238
elem-azar-unis
8c1c1bd6337aac99a4e87cb820358c91841b9427
1,485
cpp
C++
src/stage/dungeon.cpp
djoyahoy/eng
848f7f5e5ed9cfca4703b69fb6af8c2e24721619
[ "MIT" ]
null
null
null
src/stage/dungeon.cpp
djoyahoy/eng
848f7f5e5ed9cfca4703b69fb6af8c2e24721619
[ "MIT" ]
null
null
null
src/stage/dungeon.cpp
djoyahoy/eng
848f7f5e5ed9cfca4703b69fb6af8c2e24721619
[ "MIT" ]
null
null
null
#include <stdexcept> #include "stage/dungeon.h" #include "enemy_maker.h" #include "json/json.h" #include "prop_maker.h" namespace stage { Dungeon::Dungeon(std::unique_ptr<Zone> zone, enemy::EnemyVec enemies, prop::PropVec props) : zone(std::move(zone)), enemies(std::move(enemies)), props(std::move(props)) { ...
28.557692
94
0.606061
djoyahoy
8c1ff35a75e8080a833ed2cf6bf180de312fa147
1,897
cpp
C++
src/gps/tk/RecordGrid.cpp
KIT-IAI/GMLToolbox-gps
c8953e08431a2a945f7fc03f3cff114222826ece
[ "Apache-2.0" ]
1
2021-05-04T06:22:54.000Z
2021-05-04T06:22:54.000Z
src/gps/tk/RecordGrid.cpp
KIT-IAI/GPS-Toolkit
c8953e08431a2a945f7fc03f3cff114222826ece
[ "Apache-2.0" ]
null
null
null
src/gps/tk/RecordGrid.cpp
KIT-IAI/GPS-Toolkit
c8953e08431a2a945f7fc03f3cff114222826ece
[ "Apache-2.0" ]
1
2021-05-04T06:22:57.000Z
2021-05-04T06:22:57.000Z
#include "RecordGrid.hpp" namespace gps { namespace tk { RecordGrid::RecordGrid() { } RecordGrid::RecordGrid(std::size_t id, const std::wstring& name, ProjectionType projection, ProjectionUnit unit, std::size_t datum) : numId(id), strName(name), numProjection(projec...
37.94
139
0.598313
KIT-IAI
8c22679a999ae85e2f2c14d641656edc6e84e8fe
1,180
cpp
C++
YorozuyaGSLib/source/_darkhole_job_pass_inform_zoclDetail.cpp
lemkova/Yorozuya
f445d800078d9aba5de28f122cedfa03f26a38e4
[ "MIT" ]
29
2017-07-01T23:08:31.000Z
2022-02-19T10:22:45.000Z
YorozuyaGSLib/source/_darkhole_job_pass_inform_zoclDetail.cpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
90
2017-10-18T21:24:51.000Z
2019-06-06T02:30:33.000Z
YorozuyaGSLib/source/_darkhole_job_pass_inform_zoclDetail.cpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
44
2017-12-19T08:02:59.000Z
2022-02-24T23:15:01.000Z
#include <_darkhole_job_pass_inform_zoclDetail.hpp> #include <common/ATFCore.hpp> START_ATF_NAMESPACE namespace Detail { Info::_darkhole_job_pass_inform_zoclsize2_ptr _darkhole_job_pass_inform_zoclsize2_next(nullptr); Info::_darkhole_job_pass_inform_zoclsize2_clbk _darkhole_job_pass_inform_zoc...
42.142857
126
0.714407
lemkova
8c2699b8e11dce7408442feff0d0d8aef640e163
1,018
cpp
C++
src/termui/signals.cpp
numerodix/bmon-cpp
fae0613776b879a33e327f9ccf1d3819383634dd
[ "MIT" ]
1
2020-07-31T01:34:47.000Z
2020-07-31T01:34:47.000Z
src/termui/signals.cpp
numerodix/bmon-cpp
fae0613776b879a33e327f9ccf1d3819383634dd
[ "MIT" ]
null
null
null
src/termui/signals.cpp
numerodix/bmon-cpp
fae0613776b879a33e327f9ccf1d3819383634dd
[ "MIT" ]
null
null
null
#include <csignal> #include <stdexcept> #include "except.hpp" #include "signals.hpp" namespace bandwit { namespace termui { void SignalSuspender::suspend() { sigset_t mask; sigemptyset(&mask); for (auto signo : signums_) { sigaddset(&mask, signo); } if (sigprocmask(SIG_BLOCK, &mask, nul...
22.622222
79
0.631631
numerodix
8c26cbcb6331a66d4505aacefefcb753af02cddc
5,432
cpp
C++
ros/src/computing/planning/decision/packages/decision_maker/nodes/decision_maker/decision_maker_node_core.cpp
Wentaobi/Autoware
9c6cfcfd21d9d9bba5e3b6ab79dbc1724bef3bca
[ "BSD-3-Clause" ]
3
2017-07-31T20:47:46.000Z
2018-06-30T01:21:40.000Z
ros/src/computing/planning/decision/packages/decision_maker/nodes/decision_maker/decision_maker_node_core.cpp
Dianpeng-Wang/autoware
5ff7722f56146a45dc244c1390228e75789ce81c
[ "BSD-3-Clause" ]
null
null
null
ros/src/computing/planning/decision/packages/decision_maker/nodes/decision_maker/decision_maker_node_core.cpp
Dianpeng-Wang/autoware
5ff7722f56146a45dc244c1390228e75789ce81c
[ "BSD-3-Clause" ]
7
2017-08-13T05:39:20.000Z
2020-08-25T14:14:04.000Z
#include <ros/ros.h> #include <ros/spinner.h> #include <std_msgs/Float64.h> #include <std_msgs/Float64MultiArray.h> #include <std_msgs/String.h> #include <stdio.h> #include <tf/transform_listener.h> // lib #include <euclidean_space.hpp> #include <state.hpp> #include <state_context.hpp> #include <decision_maker_node.h...
25.383178
115
0.62813
Wentaobi
8c270662d8d19761de9afb067f5555a66d383f34
342
hpp
C++
mge_v17_student_version/src/mge/core/World.hpp
Noixas/Engine_Algorithms
a723cd6a8e9c720557942e7165942974f5a941a3
[ "Apache-2.0" ]
1
2020-02-26T06:22:33.000Z
2020-02-26T06:22:33.000Z
mge_v17_student_version/src/mge/core/World.hpp
Noixas/Engine_Algorithms
a723cd6a8e9c720557942e7165942974f5a941a3
[ "Apache-2.0" ]
null
null
null
mge_v17_student_version/src/mge/core/World.hpp
Noixas/Engine_Algorithms
a723cd6a8e9c720557942e7165942974f5a941a3
[ "Apache-2.0" ]
null
null
null
#ifndef WORLD_H #define WORLD_H #include "mge/core/GameObject.hpp" class Camera; class World : public GameObject { public: World(); void setMainCamera (Camera* pCamera); Camera* getMainCamera(); private: Camera* _mainCamera; World(const World&); World& operator=(const World&); }...
13.68
39
0.654971
Noixas
8c2b424387a1f74c1059ca6adba94eb9e7f0ecfd
3,292
hpp
C++
source/hougfx/include/hou/gfx/vertex2.hpp
DavideCorradiDev/houzi-game-engine
d704aa9c5b024300578aafe410b7299c4af4fcec
[ "MIT" ]
2
2018-04-12T20:59:20.000Z
2018-07-26T16:04:07.000Z
source/hougfx/include/hou/gfx/vertex2.hpp
DavideCorradiDev/houzi-game-engine
d704aa9c5b024300578aafe410b7299c4af4fcec
[ "MIT" ]
null
null
null
source/hougfx/include/hou/gfx/vertex2.hpp
DavideCorradiDev/houzi-game-engine
d704aa9c5b024300578aafe410b7299c4af4fcec
[ "MIT" ]
null
null
null
// Houzi Game Engine // Copyright (c) 2018 Davide Corradi // Licensed under the MIT license. #ifndef HOU_GFX_VERTEX_2_HPP #define HOU_GFX_VERTEX_2_HPP #include "hou/gfx/gfx_config.hpp" #include "hou/cor/pragmas.hpp" #include "hou/gl/open_gl.hpp" #include "hou/mth/matrix.hpp" #include "hou/sys/color.hpp" namesp...
21.946667
77
0.70079
DavideCorradiDev
8c2bdc13fa7d0c0196bba8d7d51f7c0978e1f90d
42
cpp
C++
test/autogen/smp@list@swap_index.cpp
jonathanpoelen/jln.mp
e5f05fc4467f14ac0047e3bdc75a04076e689985
[ "MIT" ]
9
2020-07-04T16:46:13.000Z
2022-01-09T21:59:31.000Z
test/autogen/smp@list@swap_index.cpp
jonathanpoelen/jln.mp
e5f05fc4467f14ac0047e3bdc75a04076e689985
[ "MIT" ]
null
null
null
test/autogen/smp@list@swap_index.cpp
jonathanpoelen/jln.mp
e5f05fc4467f14ac0047e3bdc75a04076e689985
[ "MIT" ]
1
2021-05-23T13:37:40.000Z
2021-05-23T13:37:40.000Z
#include "jln/mp/smp/list/swap_index.hpp"
21
41
0.761905
jonathanpoelen
8c2e32682e810154c5e8a4a9d5593809a86fd2b6
621
cpp
C++
Codeforces/899C/math.cpp
codgician/ACM
391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4
[ "MIT" ]
2
2018-02-14T01:59:31.000Z
2018-03-28T03:30:45.000Z
Codeforces/899C/math.cpp
codgician/ACM
391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4
[ "MIT" ]
null
null
null
Codeforces/899C/math.cpp
codgician/ACM
391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4
[ "MIT" ]
2
2017-12-30T02:46:35.000Z
2018-03-28T03:30:49.000Z
#include <iostream> #include <cstdio> #include <cmath> #include <algorithm> #include <cstring> #include <string> #include <iomanip> #include <climits> using namespace std; int ans[4] = {0, 1, 1, 0}, dArr[4] = {0, 1, 1, 2}, iArr[4] = {2, 1, 2, 1}; int main() { ios::sync_with_stdio(false); int n; cin >> n; ...
17.25
74
0.47504
codgician
8c2e80256dc1d307b36cc46d3a0946b82454a733
393
cpp
C++
Injectora/AboutWindow.cpp
fengjixuchui/Injectora
4bc3443e5b49168422c6448add9d9176333d8478
[ "MIT" ]
83
2016-06-10T05:24:53.000Z
2021-11-19T07:25:15.000Z
Injectora/AboutWindow.cpp
zorftw/Injectora
63cbc23aa3aa2d59e1b078f79c8d858ecf1dd5c3
[ "MIT" ]
null
null
null
Injectora/AboutWindow.cpp
zorftw/Injectora
63cbc23aa3aa2d59e1b078f79c8d858ecf1dd5c3
[ "MIT" ]
59
2016-05-27T21:11:46.000Z
2021-09-02T04:23:21.000Z
#include "AboutWindow.h" AboutWindow::AboutWindow() : DocumentWindow("About", Colours::white, DocumentWindow::closeButton) { aboutComponent = new AboutComponent(); setContentOwned(aboutComponent, true); centreWithSize(getWidth(), getHeight()); setVisible(false); } AboutWindow::~AboutWindow() { aboutComponent = n...
20.684211
97
0.75827
fengjixuchui
8c30e66776645c6e4e9ea3cc2bc0a27408de8d91
603
cpp
C++
multimedia/directx/dplay/dplay8/guids/guids.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
multimedia/directx/dplay/dplay8/guids/guids.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
multimedia/directx/dplay/dplay8/guids/guids.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
#include "dpnbuild.h" #include <objbase.h> #include <initguid.h> #include "dplay8.h" #include "dpaddr.h" #include "dplobby8.h" #include "dpsp8.h" #include "dpprot.h" #include "dpnsdef.h" #ifndef DPNBUILD_NOVOICE #include "dvoice.h" #endif // !DPNBUILD_NOVOICE #ifndef WINCE #include "dplegacyguid.h" #end...
25.125
61
0.699834
npocmaka
8c323418ba1817ed1d0831df8f896cfffdf45a18
3,805
cpp
C++
src/DlgQueryMsgID.cpp
taviso/mpgravity
f6a2a7a02014b19047e44db76ae551bd689c16ac
[ "BSD-3-Clause" ]
9
2020-04-01T04:15:22.000Z
2021-09-26T21:03:47.000Z
src/DlgQueryMsgID.cpp
taviso/mpgravity
f6a2a7a02014b19047e44db76ae551bd689c16ac
[ "BSD-3-Clause" ]
17
2020-04-02T19:38:40.000Z
2020-04-12T05:47:08.000Z
src/DlgQueryMsgID.cpp
taviso/mpgravity
f6a2a7a02014b19047e44db76ae551bd689c16ac
[ "BSD-3-Clause" ]
null
null
null
/*****************************************************************************/ /* SOURCE CONTROL VERSIONS */ /*---------------------------------------------------------------------------*/ /* ...
36.586538
85
0.561104
taviso
8c36c165d0deb2ec37a64655ac16a8ccf282f4ff
5,333
cpp
C++
src/qif191cli/QifResourcesDocument.cpp
QualityInformationFramework/QIFResourcesEditor
4ff1de9d1dd20d9c43eaa9cc320caeff1c57760e
[ "BSL-1.0" ]
null
null
null
src/qif191cli/QifResourcesDocument.cpp
QualityInformationFramework/QIFResourcesEditor
4ff1de9d1dd20d9c43eaa9cc320caeff1c57760e
[ "BSL-1.0" ]
null
null
null
src/qif191cli/QifResourcesDocument.cpp
QualityInformationFramework/QIFResourcesEditor
4ff1de9d1dd20d9c43eaa9cc320caeff1c57760e
[ "BSL-1.0" ]
null
null
null
/////////////////////////////////////////////////////////////////////////////// /// /// Copyright 2018-2020, Capvidia, Metrosage, and project contributors /// https://www.capvidia.com/ /// /// This software is provided for free use to the QIF Community under the /// following license: /// /// Boost Software License ...
38.644928
146
0.690606
QualityInformationFramework
8c3a10e9ab95092cb653556449fcc3508eedb399
259
cc
C++
CondFormats/EcalObjects/src/EcalTPGPhysicsConst.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
CondFormats/EcalObjects/src/EcalTPGPhysicsConst.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
CondFormats/EcalObjects/src/EcalTPGPhysicsConst.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
#include "CondFormats/EcalObjects/interface/EcalTPGPhysicsConst.h" EcalTPGPhysicsConst::EcalTPGPhysicsConst() {} EcalTPGPhysicsConst::~EcalTPGPhysicsConst() {} void EcalTPGPhysicsConst::setValue(const uint32_t& id, const Item& value) { map_[id] = value; }
32.375
95
0.791506
ckamtsikis
8c3c211a0a3318551c74865ed4bcb98c0ad363fe
5,596
cpp
C++
src/beastsofchaos/Ungors.cpp
rweyrauch/AoSSimulator
d2bfbbe0fab904cc543f1a01e62e0b82cf67c27b
[ "MIT" ]
5
2019-02-01T01:41:19.000Z
2021-06-17T02:16:13.000Z
src/beastsofchaos/Ungors.cpp
rweyrauch/AoSSimulator
d2bfbbe0fab904cc543f1a01e62e0b82cf67c27b
[ "MIT" ]
2
2020-01-14T16:57:42.000Z
2021-04-01T00:53:18.000Z
src/beastsofchaos/Ungors.cpp
rweyrauch/AoSSimulator
d2bfbbe0fab904cc543f1a01e62e0b82cf67c27b
[ "MIT" ]
1
2019-03-02T20:03:51.000Z
2019-03-02T20:03:51.000Z
/* * Warhammer Age of Sigmar battle simulator. * * Copyright (C) 2019 by Rick Weyrauch - rpweyrauch@gmail.com * * This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) */ #include <beastsofchaos/Ungors.h> #include <UnitFactory.h> #include "BeastsOfChaosPrivate.h" namespace Beast...
40.258993
120
0.603109
rweyrauch
8c43119fcee98f18627b9ab872a7ae95ea011d85
5,294
cc
C++
ndash/src/mpd/content_protections_builder.cc
google/ndash
1465e2fb851ee17fd235280bdbbbf256e5af8044
[ "Apache-2.0" ]
41
2017-04-19T19:38:10.000Z
2021-09-07T02:40:27.000Z
ndash/src/mpd/content_protections_builder.cc
google/ndash
1465e2fb851ee17fd235280bdbbbf256e5af8044
[ "Apache-2.0" ]
8
2017-04-21T16:40:09.000Z
2019-12-09T19:48:40.000Z
ndash/src/mpd/content_protections_builder.cc
google/ndash
1465e2fb851ee17fd235280bdbbbf256e5af8044
[ "Apache-2.0" ]
19
2017-04-24T14:43:18.000Z
2022-03-17T19:13:45.000Z
/* * Copyright 2017 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...
37.28169
77
0.697393
google
8c432690893a0fe12d02abddaea7cc348c177fb9
676
hpp
C++
Loyalty/ApiServer/Managers/ClientsManagerDB.hpp
uno-labs-solana-hackathon/core-server
fdbdefd32e12fcaa19227f56154e0163c18a35cb
[ "Apache-2.0" ]
null
null
null
Loyalty/ApiServer/Managers/ClientsManagerDB.hpp
uno-labs-solana-hackathon/core-server
fdbdefd32e12fcaa19227f56154e0163c18a35cb
[ "Apache-2.0" ]
1
2021-03-06T11:38:01.000Z
2021-03-15T21:33:16.000Z
Loyalty/ApiServer/Managers/ClientsManagerDB.hpp
uno-labs-solana-hackathon/core-server
fdbdefd32e12fcaa19227f56154e0163c18a35cb
[ "Apache-2.0" ]
null
null
null
#pragma once #include "../ApiServer_global.hpp" namespace Sol::Loyalty::API::RPC { class ClientsManagerDB { CLASS_REMOVE_CTRS(ClientsManagerDB); using ClientDescT = Sol::Loyalty::DataModel::ClientDesc; using SelectResT = std::tuple<ClientDescT::SP, SInt64/*version*/>; public: static SelectResT SSelectById ...
27.04
67
0.680473
uno-labs-solana-hackathon
8c43fe4e52fc2be1ed2dd56b6a4ddbb46ac9acdf
2,228
cpp
C++
test/types/ds/test_priority_queue.cpp
iamantony/CppNotes
2707db6560ad80b0e5e286a04b2d46e5c0280b3f
[ "MIT" ]
2
2020-07-31T14:13:56.000Z
2021-02-03T09:51:43.000Z
test/types/ds/test_priority_queue.cpp
iamantony/CppNotes
2707db6560ad80b0e5e286a04b2d46e5c0280b3f
[ "MIT" ]
28
2015-09-22T07:38:21.000Z
2018-10-02T11:00:58.000Z
test/types/ds/test_priority_queue.cpp
iamantony/CppNotes
2707db6560ad80b0e5e286a04b2d46e5c0280b3f
[ "MIT" ]
2
2018-10-11T14:10:50.000Z
2021-02-27T08:53:50.000Z
#include <boost/test/unit_test.hpp> #include "types/ds/priority_queue.hpp" BOOST_AUTO_TEST_SUITE(DSPriorityQueue) BOOST_AUTO_TEST_CASE(create_empty_pq) { { Types::DS::PriorityQueue<int> pq(Types::DS::PriorityQueue<int>::Type::MAX); BOOST_CHECK(pq.size() == 0); BOOST_CHECK(pq.isEmpty()); ...
21.219048
83
0.586176
iamantony
8c49d6557e119ddce3db1420594d1eaf02d1c0ea
3,113
cpp
C++
RWracesDBII/RWracesDBII.prj/LocationPrefTbl.cpp
rrvt/RWracesDB
4f01fed973df7dfb7ec516b2969b20fc6744d7fe
[ "MIT" ]
null
null
null
RWracesDBII/RWracesDBII.prj/LocationPrefTbl.cpp
rrvt/RWracesDB
4f01fed973df7dfb7ec516b2969b20fc6744d7fe
[ "MIT" ]
null
null
null
RWracesDBII/RWracesDBII.prj/LocationPrefTbl.cpp
rrvt/RWracesDB
4f01fed973df7dfb7ec516b2969b20fc6744d7fe
[ "MIT" ]
null
null
null
// LocationPref Table #include "stdafx.h" #include "LocationPrefTbl.h" #include "DAOfields.h" #include "DAOrecords.h" #include "NotePad.h" #include "Utilities.h" bool LocationPrefTbl::load(DAOtable* daoTable) { DAOrcdsIter iter(daoTable); FieldsP fields; int count; for (count = 0, fields = iter(DAOde...
23.583333
114
0.609059
rrvt
8c4af24c1d86a6b4129e4ee3a0348640660b0869
2,577
cpp
C++
samples/simple/simple/simple.cpp
techsoft3d/exchange-polygonica-bridge
e626fdbe61738c28a76e04f22c0ae409da1b1d32
[ "MIT" ]
1
2021-07-13T21:07:08.000Z
2021-07-13T21:07:08.000Z
samples/simple/simple/simple.cpp
techsoft3d/exchange-polygonica-bridge
e626fdbe61738c28a76e04f22c0ae409da1b1d32
[ "MIT" ]
null
null
null
samples/simple/simple/simple.cpp
techsoft3d/exchange-polygonica-bridge
e626fdbe61738c28a76e04f22c0ae409da1b1d32
[ "MIT" ]
1
2020-06-05T19:22:52.000Z
2020-06-05T19:22:52.000Z
// simple.cpp : This file contains the 'main' function. Program execution begins and ends there. // // Loads a file using HOOPS Exchange, converts part into a Polygonica Solid and saves to an STL. // #include <iostream> #include "pgapi.h" #include "pgkey.h" #include "../../src/ExchangePolygonicaBridge.h" PTEnvironm...
27.126316
96
0.737679
techsoft3d
8c4db07f270e0e95ace4caf00003970f51de7e2f
158
cpp
C++
DimensionServer/test/CatchMain.cpp
maspe36/Dimension
d780f7f9973d8b87eabc0740ffbf055d13f77b8c
[ "MIT" ]
null
null
null
DimensionServer/test/CatchMain.cpp
maspe36/Dimension
d780f7f9973d8b87eabc0740ffbf055d13f77b8c
[ "MIT" ]
null
null
null
DimensionServer/test/CatchMain.cpp
maspe36/Dimension
d780f7f9973d8b87eabc0740ffbf055d13f77b8c
[ "MIT" ]
null
null
null
// // Created by Sam on 10/21/2018. // // This tells Catch to provide a main() - only do this in one cpp file #define CATCH_CONFIG_MAIN #include <catch.hpp>
19.75
70
0.696203
maspe36
8c51e4b9441d8e80bd8b6bde671c8f40a716f820
10,059
cpp
C++
MSVC/14.24.28314/atlmfc/src/mfc/afxheaderctrl.cpp
825126369/UCRT
8853304fdc2a5c216658d08b6dbbe716aa2a7b1f
[ "MIT" ]
2
2021-01-27T10:19:30.000Z
2021-02-09T06:24:30.000Z
MSVC/14.24.28314/atlmfc/src/mfc/afxheaderctrl.cpp
825126369/UCRT
8853304fdc2a5c216658d08b6dbbe716aa2a7b1f
[ "MIT" ]
null
null
null
MSVC/14.24.28314/atlmfc/src/mfc/afxheaderctrl.cpp
825126369/UCRT
8853304fdc2a5c216658d08b6dbbe716aa2a7b1f
[ "MIT" ]
1
2021-01-27T10:19:36.000Z
2021-01-27T10:19:36.000Z
// This is a part of the Microsoft Foundation Classes C++ library. // Copyright (C) Microsoft Corporation // All rights reserved. // // This source code is only intended as a supplement to the // Microsoft Foundation Classes Reference and related // electronic documentation provided with the library. // See these sourc...
19.087287
134
0.689532
825126369
8c5491ac41eb6cbb41d2cb6f5ec1207bebae42bd
1,074
cpp
C++
Math/SieveOfEratosthenes/SieveOfEratosthenes.cpp
PrachieNaik/DSA
083522bb3c8a0694adec1f2856d4d4cd0fb51722
[ "MIT" ]
null
null
null
Math/SieveOfEratosthenes/SieveOfEratosthenes.cpp
PrachieNaik/DSA
083522bb3c8a0694adec1f2856d4d4cd0fb51722
[ "MIT" ]
null
null
null
Math/SieveOfEratosthenes/SieveOfEratosthenes.cpp
PrachieNaik/DSA
083522bb3c8a0694adec1f2856d4d4cd0fb51722
[ "MIT" ]
null
null
null
/* Problem statement: Sieve of Eratosthenes Given a number N, calculate the prime numbers up to N using Sieve of Eratosthenes. Example 1: Input: N = 10 Output: 2 3 5 7 Explanation: Prime numbers less than equal to N are 2 3 5 and 7. Time Complexity: O(NloglogN) Auxiliary Space: O(N) */ void SieveOfEratosthen...
23.866667
161
0.588454
PrachieNaik
8c601e951081e0e55a02bf93a7ae5f9aad8e5035
3,325
cpp
C++
LearnOpenGLTuto/src/utils.cpp
Epono/LearnOpenGL
4b56efd5738238dd2722903e689de18ec8e297a1
[ "MIT" ]
null
null
null
LearnOpenGLTuto/src/utils.cpp
Epono/LearnOpenGL
4b56efd5738238dd2722903e689de18ec8e297a1
[ "MIT" ]
null
null
null
LearnOpenGLTuto/src/utils.cpp
Epono/LearnOpenGL
4b56efd5738238dd2722903e689de18ec8e297a1
[ "MIT" ]
null
null
null
#include <utils.h> void showImguiDemo() { static int counter = 0; // position the controls widget in the top-right corner with some margin ImGui::SetNextWindowPos(ImVec2(10, 10), ImGuiCond_FirstUseEver); ImGui::SetNextWindowSize(ImVec2(200, 100), ImGuiCond_FirstUseEver); // create the window and append into it...
34.278351
114
0.686316
Epono
8c66312d8fd432d3b74dd1d092ce79aeab2b76f1
782
cpp
C++
tic-tac-toe/services/PlayerService.cpp
abdul699/Machine_Coding
7e71397aa25a77d7d96c4117eda8b473af341d4a
[ "MIT" ]
null
null
null
tic-tac-toe/services/PlayerService.cpp
abdul699/Machine_Coding
7e71397aa25a77d7d96c4117eda8b473af341d4a
[ "MIT" ]
null
null
null
tic-tac-toe/services/PlayerService.cpp
abdul699/Machine_Coding
7e71397aa25a77d7d96c4117eda8b473af341d4a
[ "MIT" ]
null
null
null
#include "PlayerService.h" #include "../models/Board.h" bool PlayerService :: winCurrentPlayer(Board br) { for(int i=0; i<3; i++) { if(br.getValueAt(i, 0) == br.getValueAt(i, 1) && br.getValueAt(i, 1)== br.getValueAt(i, 2) && br.getValueAt(i, 1) != '-') return true; } // check column for(int i=0; i<3; i++) ...
46
141
0.595908
abdul699
8c6bc415f0259bec7335ab400804698917383d23
1,092
cc
C++
chrome/browser/ui/webui/web_footer_experiment_ui.cc
mghgroup/Glide-Browser
6a4c1eaa6632ec55014fee87781c6bbbb92a2af5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
575
2015-06-18T23:58:20.000Z
2022-03-23T09:32:39.000Z
chrome/browser/ui/webui/web_footer_experiment_ui.cc
mghgroup/Glide-Browser
6a4c1eaa6632ec55014fee87781c6bbbb92a2af5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
chrome/browser/ui/webui/web_footer_experiment_ui.cc
DamieFC/chromium
54ce2d3c77723697efd22cfdb02aea38f9dfa25c
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
52
2015-07-14T10:40:50.000Z
2022-03-15T01:11:49.000Z
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/webui/web_footer_experiment_ui.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/ui/webui/managed_ui_h...
40.444444
73
0.795788
mghgroup
8c6d03b968444fee066833f7fa325c3446d15eed
1,033
cc
C++
content/renderer/render_frame_impl.cc
hujiajie/pa-chromium
1816ff80336a6efd1616f9e936880af460b1e105
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2020-05-03T06:33:56.000Z
2021-11-14T18:39:42.000Z
content/renderer/render_frame_impl.cc
hujiajie/pa-chromium
1816ff80336a6efd1616f9e936880af460b1e105
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
content/renderer/render_frame_impl.cc
hujiajie/pa-chromium
1816ff80336a6efd1616f9e936880af460b1e105
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/renderer/render_frame_impl.h" #include "content/renderer/render_thread_impl.h" #include "content/renderer/render_view_impl.h" namespac...
31.30303
77
0.765731
hujiajie
8c70c2a8ca9bb611b6577a084fdd2ddc57acb178
923
cpp
C++
test/dag_to_dot.cpp
mdsudara/percy
b593922b98c9c20fe0a3e4726e50401e54b9cb09
[ "MIT" ]
14
2018-03-10T21:50:20.000Z
2021-11-22T04:09:09.000Z
test/dag_to_dot.cpp
mdsudara/percy
b593922b98c9c20fe0a3e4726e50401e54b9cb09
[ "MIT" ]
3
2018-06-12T15:17:22.000Z
2019-06-20T12:00:45.000Z
test/dag_to_dot.cpp
mdsudara/percy
b593922b98c9c20fe0a3e4726e50401e54b9cb09
[ "MIT" ]
12
2018-03-10T17:02:07.000Z
2022-01-09T16:04:56.000Z
#include <percy/percy.hpp> #include <percy/io.hpp> #include <cstdio> #include <fstream> using namespace percy; /******************************************************************************* Verifies that the DAG to .dot conversion works properly. *****************************************************************...
20.511111
80
0.423619
mdsudara
8c7122d5ebd3acbefd3caeadd18c26e6092602a9
1,967
cc
C++
benchmark/rtti_benchmark.cc
royvandam/r
6450874cf442684f2129021e1b23cc16b5f7fed0
[ "MIT" ]
11
2020-12-03T21:57:34.000Z
2020-12-18T15:16:35.000Z
benchmark/rtti_benchmark.cc
royvandam/r
6450874cf442684f2129021e1b23cc16b5f7fed0
[ "MIT" ]
null
null
null
benchmark/rtti_benchmark.cc
royvandam/r
6450874cf442684f2129021e1b23cc16b5f7fed0
[ "MIT" ]
2
2020-12-04T12:41:43.000Z
2021-08-15T12:24:51.000Z
#include <benchmark/benchmark.h> #include <rtti.hh> struct GrandParent : virtual RTTI::Enable { RTTI_DECLARE_TYPEINFO(GrandParent); }; struct ParentA : virtual GrandParent { RTTI_DECLARE_TYPEINFO(ParentA, GrandParent); }; struct ParentB : virtual GrandParent { RTTI_DECLARE_TYPEINFO(ParentB, GrandParent)...
24.898734
75
0.635994
royvandam
8c71a3bbebe556870f5434f7c41c4258870c7e28
311
cpp
C++
sum_digit_using_recursion/main.cpp
narendrajethi220/Getting-Started
fd1b910228b6cfb30b82f50f52f6c32e79437ea3
[ "MIT" ]
null
null
null
sum_digit_using_recursion/main.cpp
narendrajethi220/Getting-Started
fd1b910228b6cfb30b82f50f52f6c32e79437ea3
[ "MIT" ]
null
null
null
sum_digit_using_recursion/main.cpp
narendrajethi220/Getting-Started
fd1b910228b6cfb30b82f50f52f6c32e79437ea3
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int s(int num,int sum) { if(num==0) return sum; sum+=num%10; return s(num/10,sum); } int main() { int digit; cout<<"Enter digit "; cin>>digit; int sum=0; cout<<"Sum of digit is "<<s(digit,sum); return 0; }
15.55
44
0.5209
narendrajethi220
8c726e57467af13f972449e486392ade7c675836
1,896
cpp
C++
tests/network/http/websocket_test.cpp
jmjatlanta/bitshares-fc
8b571580c8646c487def1b4b517401e58fa82c9e
[ "Zlib", "Apache-2.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
2
2020-08-20T01:13:55.000Z
2020-08-20T01:24:06.000Z
tests/network/http/websocket_test.cpp
jmjatlanta/bitshares-fc
8b571580c8646c487def1b4b517401e58fa82c9e
[ "Zlib", "Apache-2.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
null
null
null
tests/network/http/websocket_test.cpp
jmjatlanta/bitshares-fc
8b571580c8646c487def1b4b517401e58fa82c9e
[ "Zlib", "Apache-2.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
null
null
null
#include <boost/test/unit_test.hpp> #include <fc/network/http/websocket.hpp> #include <iostream> BOOST_AUTO_TEST_SUITE(fc_network) BOOST_AUTO_TEST_CASE(websocket_test) { fc::http::websocket_client client; fc::http::websocket_connection_ptr s_conn, c_conn; int port; { fc::http::websocket_ser...
32.689655
96
0.582806
jmjatlanta
8c7754958d70ba7980e976379ed4c3d0d4bc5712
1,505
hh
C++
primer/examples/factory.hh
CaffeineViking/concepts-primer
041cec40fa4a25cd954ce91da6d9d10ee31499a3
[ "MIT" ]
17
2019-05-01T21:49:43.000Z
2022-02-25T06:50:47.000Z
primer/examples/factory.hh
CaffeineViking/concepts-primer
041cec40fa4a25cd954ce91da6d9d10ee31499a3
[ "MIT" ]
null
null
null
primer/examples/factory.hh
CaffeineViking/concepts-primer
041cec40fa4a25cd954ce91da6d9d10ee31499a3
[ "MIT" ]
null
null
null
#ifndef FACTORY_HH #define FACTORY_HH #include <type_traits> #if false struct NumberFactory { enum { INTEGRAL, FLOATING } number_type; template<typename T, typename = std::enable_if< std::is_integral_v<T>>> NumberFactory(T) : number_type { INTEGRAL } {} int create_number()...
20.616438
62
0.628571
CaffeineViking
8c779250ea01a82b13be6db32fe4149db75a62a3
1,737
cpp
C++
Sandbox/src/Sandbox3D.cpp
Kingalidj/Atlas
a4a6a1315b18bd72637702e76d148de912377482
[ "Apache-2.0" ]
3
2021-07-29T19:15:46.000Z
2021-09-28T15:29:57.000Z
Sandbox/src/Sandbox3D.cpp
Kingalidj/Atlas
a4a6a1315b18bd72637702e76d148de912377482
[ "Apache-2.0" ]
null
null
null
Sandbox/src/Sandbox3D.cpp
Kingalidj/Atlas
a4a6a1315b18bd72637702e76d148de912377482
[ "Apache-2.0" ]
null
null
null
#include "Sandbox3D.h" #include "ImGui/imgui.h" #include <memory> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include "Atlas/Renderer/Mesh.h" using namespace Atlas; Sandbox3D::Sandbox3D() : Layer("Sandbox3D") {} void Sandbox3D::OnAttach() { Ref<Scene> scene = Applic...
29.948276
135
0.724237
Kingalidj
8c7d8ab0ae45d844ca727f7313ccc3fb8f680623
3,434
cpp
C++
src/particles/GLParticleReplay.cpp
prraoo/particle-collision
34c684cda50c497e90482b30adf12d361eae0960
[ "MIT" ]
null
null
null
src/particles/GLParticleReplay.cpp
prraoo/particle-collision
34c684cda50c497e90482b30adf12d361eae0960
[ "MIT" ]
null
null
null
src/particles/GLParticleReplay.cpp
prraoo/particle-collision
34c684cda50c497e90482b30adf12d361eae0960
[ "MIT" ]
null
null
null
#include <algorithm> #include <GL/error.h> #include "GLParticleReplay.h" namespace { std::vector<float> init_position(std::size_t num_particles, const float* position) { std::vector<float> position_data; position_data.reserve(4 * num_particles); for (std::size_t i = 0; i < num_particles; ++...
32.704762
220
0.725976
prraoo