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
f47fca44154f5c996e40ad5a3d714e679b3978da
4,705
cpp
C++
src/BFS.cpp
nantha007/frontierExplorer
0660def3de50f043027eaaa453de15699dbc1445
[ "BSD-3-Clause" ]
null
null
null
src/BFS.cpp
nantha007/frontierExplorer
0660def3de50f043027eaaa453de15699dbc1445
[ "BSD-3-Clause" ]
null
null
null
src/BFS.cpp
nantha007/frontierExplorer
0660def3de50f043027eaaa453de15699dbc1445
[ "BSD-3-Clause" ]
null
null
null
/** * BSD 3-Clause License * * Copyright (c) 2018, Nantha Kumar Sunder, Nithish Sanjeev Kumar * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retai...
31.366667
83
0.658448
nantha007
f4801ef55b6ce5e943a5967c98fb3fc32637429a
1,486
cpp
C++
cpp/Dynamic Programming/72. Edit Distance.cpp
baicaihenxiao/LeetCode-Myself
f88fa5b5e76a913d6d9395d75571c8d7c46d37f5
[ "MIT" ]
null
null
null
cpp/Dynamic Programming/72. Edit Distance.cpp
baicaihenxiao/LeetCode-Myself
f88fa5b5e76a913d6d9395d75571c8d7c46d37f5
[ "MIT" ]
6
2021-03-31T02:43:24.000Z
2022-01-04T16:40:26.000Z
cpp/Dynamic Programming/72. Edit Distance.cpp
baicaihenxiao/LeetCode-Myself
f88fa5b5e76a913d6d9395d75571c8d7c46d37f5
[ "MIT" ]
null
null
null
/* 2017-8-16 15:44:21 https://leetcode.com/problems/edit-distance/description/ Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You have the following 3 operations permitted on a word: a) Insert a character b) Delete a ch...
18.810127
140
0.444818
baicaihenxiao
f4842234b20f5b81e377042efcc1904f448ff106
2,333
hpp
C++
Source/Ilum/Renderer/Renderer.hpp
LavenSun/IlumEngine
94841e56af3c5214f04e7a94cb7369f4935c5788
[ "MIT" ]
1
2021-11-20T15:39:09.000Z
2021-11-20T15:39:09.000Z
Source/Ilum/Renderer/Renderer.hpp
LavenSun/IlumEngine
94841e56af3c5214f04e7a94cb7369f4935c5788
[ "MIT" ]
null
null
null
Source/Ilum/Renderer/Renderer.hpp
LavenSun/IlumEngine
94841e56af3c5214f04e7a94cb7369f4935c5788
[ "MIT" ]
null
null
null
#pragma once #include "Utils/PCH.hpp" #include "Camera.hpp" #include "Engine/Context.hpp" #include "Engine/Subsystem.hpp" #include "Eventing/Event.hpp" #include "Graphics/Image/Image.hpp" #include "Graphics/Image/Sampler.hpp" #include "RenderGraph/RenderGraphBuilder.hpp" #include "Loader/ResourceCache.hpp" #inc...
16.905797
70
0.741106
LavenSun
f485fca7569ca3eda76d0090f63eeb1399da7ab9
443
hpp
C++
Axis.SystemBase/foundation/settings/SystemSettings.hpp
renato-yuzup/axis-fem
2e8d325eb9c8e99285f513b4c1218ef53eb0ab22
[ "MIT" ]
2
2021-07-23T08:49:54.000Z
2021-07-29T22:07:30.000Z
Axis.SystemBase/foundation/settings/SystemSettings.hpp
renato-yuzup/axis-fem
2e8d325eb9c8e99285f513b4c1218ef53eb0ab22
[ "MIT" ]
null
null
null
Axis.SystemBase/foundation/settings/SystemSettings.hpp
renato-yuzup/axis-fem
2e8d325eb9c8e99285f513b4c1218ef53eb0ab22
[ "MIT" ]
null
null
null
#pragma once #include "foundation/Axis.SystemBase.hpp" #include "AxisString.hpp" namespace axis { namespace foundation { namespace settings { class AXISSYSTEMBASE_API SystemSettings { private: SystemSettings(void); public: static const axis::String::char_type * DefaultConfigurationFile; s...
20.136364
68
0.717833
renato-yuzup
f48ae3ebb386b40ba1244dfff62c7e97ce48decf
1,699
cpp
C++
Deitel/Chapter20/examples/20.13/fig10_14.cpp
SebastianTirado/Cpp-Learning-Archive
fb83379d0cc3f9b2390cef00119464ec946753f4
[ "MIT" ]
19
2019-09-15T12:23:51.000Z
2020-06-18T08:31:26.000Z
Deitel/Chapter20/examples/20.13/fig10_14.cpp
eirichan/CppLearingArchive
07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac
[ "MIT" ]
15
2021-12-07T06:46:03.000Z
2022-01-31T07:55:32.000Z
Deitel/Chapter20/examples/20.13/fig10_14.cpp
eirichan/CppLearingArchive
07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac
[ "MIT" ]
13
2019-06-29T02:58:27.000Z
2020-05-07T08:52:22.000Z
/* * ===================================================================================== * * Filename: fig10_14.cpp * * Description: Fig. 20.14 - Template Stack class test program. * * Version: 1.0 * Created: 14/03/17 12:49:35 * Revision: none * Compiler: g++ * * ...
26.138462
88
0.52266
SebastianTirado
f48b9b6ab4a64a9143c75f9646cbbda8dd78dd1b
5,060
cc
C++
ns-allinone-2.35/ns-2.35/diffusion3/ns/diffagent.cc
nitishk017/ns2project
f037b796ff10300ffe0422580be5855c37d0b140
[ "MIT" ]
1
2020-05-29T13:04:42.000Z
2020-05-29T13:04:42.000Z
ns-allinone-2.35/ns-2.35/diffusion3/ns/diffagent.cc
nitishk017/ns2project
f037b796ff10300ffe0422580be5855c37d0b140
[ "MIT" ]
1
2019-01-20T17:35:23.000Z
2019-01-22T21:41:38.000Z
ns-allinone-2.35/ns-2.35/diffusion3/ns/diffagent.cc
nitishk017/ns2project
f037b796ff10300ffe0422580be5855c37d0b140
[ "MIT" ]
1
2021-09-29T16:06:57.000Z
2021-09-29T16:06:57.000Z
/* * Copyright (C) 2004-2005 by the University of Southern California * $Id: diffagent.cc,v 1.13 2005/09/13 20:47:34 johnh Exp $ * * 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 Foundati...
27.5
136
0.692688
nitishk017
f48eb52bb436c3babe0ca4c8d6166633ce62db2f
14,544
cpp
C++
Assigment1/Game/Source/Map.cpp
Xavierlm11/Assignment1
78e3004c63923ec15883a22c754e1f403fa5c6cd
[ "MIT" ]
1
2021-12-11T22:51:20.000Z
2021-12-11T22:51:20.000Z
Assigment1/Game/Source/Map.cpp
Xavierlm11/Assignment1
78e3004c63923ec15883a22c754e1f403fa5c6cd
[ "MIT" ]
null
null
null
Assigment1/Game/Source/Map.cpp
Xavierlm11/Assignment1
78e3004c63923ec15883a22c754e1f403fa5c6cd
[ "MIT" ]
null
null
null
#include "App.h" #include "Render.h" #include "Textures.h" #include "Scene.h" #include "Map.h" #include "player.h" #include "ModuleCollisions.h" #include "Defs.h" #include "Log.h" #include <math.h> Map::Map( ) : Module(), mapLoaded(false) { name.Create("map"); } // Destructor Map::~Map() {} int Properties::G...
21.078261
151
0.616268
Xavierlm11
f4909b1bbdabdede884ff53b33e9363f09da4eb2
151
cpp
C++
SingleSource/Regression/C++/BuiltinTypeInfo.cpp
roguedream/llvm-test-suite
48b3213a211d2ae86da8834e8b7322778dd605bf
[ "Apache-2.0" ]
null
null
null
SingleSource/Regression/C++/BuiltinTypeInfo.cpp
roguedream/llvm-test-suite
48b3213a211d2ae86da8834e8b7322778dd605bf
[ "Apache-2.0" ]
null
null
null
SingleSource/Regression/C++/BuiltinTypeInfo.cpp
roguedream/llvm-test-suite
48b3213a211d2ae86da8834e8b7322778dd605bf
[ "Apache-2.0" ]
null
null
null
#include <typeinfo> #include <cstdio> int main() { int iii = 0; for(iii=0;iii<100;iii++){ printf("%d", typeid(int) == typeid(float)); } }
15.1
45
0.562914
roguedream
f4920bbe684b4720b87f96aafcbcf164a10cfe10
1,106
cpp
C++
binarysearch.cpp
Jiwant/Searching-and-Sorting
1cd58af99050bb3af1e6fdd7e729ed554269a370
[ "MIT" ]
null
null
null
binarysearch.cpp
Jiwant/Searching-and-Sorting
1cd58af99050bb3af1e6fdd7e729ed554269a370
[ "MIT" ]
null
null
null
binarysearch.cpp
Jiwant/Searching-and-Sorting
1cd58af99050bb3af1e6fdd7e729ed554269a370
[ "MIT" ]
null
null
null
#include<iostream> using namespace std; void swap(int *x,int *y) { int temp; temp=*y; *y=*x; *x=temp; } class Arr { private: int num; int *arr; public: void getArr(); void dispArr(); int getnum() { return num; } void bsearch(int,int,int); ~Arr() { delete []arr; } }; void Arr::getArr() { cout<...
13.166667
53
0.577758
Jiwant
f496d3b3f1eb351311561d3720d550e4e7514230
487
cpp
C++
src/processor/simple-accumulator-machine/instructions/Jez.cpp
Hiro-Onozawa/Object-oriented-Virtual-Machine
4fc371db12c124fe28140ca9c72c10f3c81686ee
[ "MIT" ]
2
2019-11-02T17:15:19.000Z
2019-11-15T15:19:48.000Z
src/processor/simple-accumulator-machine/instructions/Jez.cpp
Hiro-Onozawa/Object-oriented-Virtual-Machine
4fc371db12c124fe28140ca9c72c10f3c81686ee
[ "MIT" ]
null
null
null
src/processor/simple-accumulator-machine/instructions/Jez.cpp
Hiro-Onozawa/Object-oriented-Virtual-Machine
4fc371db12c124fe28140ca9c72c10f3c81686ee
[ "MIT" ]
null
null
null
#include "../../../core/common.h" #include <sstream> #include "../instructions/common.h" #include "../instructions/Jez.h" namespace SimpleAccumulator { Jez::Jez(OVM::Register pc) : pc(pc) { } OVM::Assembly Jez::toAssembly() const { std::ostringstream oss; oss << "JEZ " << pc; return OVM::Assembly(oss.str...
18.730769
60
0.634497
Hiro-Onozawa
f4a35ca3b149b4b60375e5c984cbb50c03bb48ef
4,044
cpp
C++
Lab2/src/lab2_main.cpp
DavidePistilli173/Computer-Vision
4066a99f6f6fdc941829d3cd3015565ec0046a2f
[ "Apache-2.0" ]
null
null
null
Lab2/src/lab2_main.cpp
DavidePistilli173/Computer-Vision
4066a99f6f6fdc941829d3cd3015565ec0046a2f
[ "Apache-2.0" ]
null
null
null
Lab2/src/lab2_main.cpp
DavidePistilli173/Computer-Vision
4066a99f6f6fdc941829d3cd3015565ec0046a2f
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <opencv2/core.hpp> #include <opencv2/core/utils/filesystem.hpp> #include <opencv2/imgcodecs.hpp> #include <opencv2/imgproc.hpp> #include <opencv2/highgui.hpp> #include <sstream> #include <string_view> #include "CameraCalibrator.hpp" /* List of command line arguments. */ enum class Argumen...
31.348837
118
0.646142
DavidePistilli173
f4aba49c49dbbcc81da9e20edfcac034b5762561
26,597
cc
C++
1-Simulation/source/src/MyPhysListEM.cc
surfound/CXPD
788a125048cc3d79244a0562d94263e48ca22a6a
[ "Apache-2.0" ]
1
2019-08-01T03:48:26.000Z
2019-08-01T03:48:26.000Z
1-Simulation/source/src/MyPhysListEM.cc
surfound/CXPD
788a125048cc3d79244a0562d94263e48ca22a6a
[ "Apache-2.0" ]
null
null
null
1-Simulation/source/src/MyPhysListEM.cc
surfound/CXPD
788a125048cc3d79244a0562d94263e48ca22a6a
[ "Apache-2.0" ]
null
null
null
#include "G4ParticleDefinition.hh" #include "G4ProcessManager.hh" #include "G4PhysicsListHelper.hh" // gamma processes #include "G4PhotoElectricEffect.hh" #include "G4PEEffectFluoModel.hh" #include "G4LivermorePhotoElectricModel.hh" #include "G4PenelopePhotoElectricModel.hh" //# #include "G4PolarizedPhotoElectricEffec...
38.546377
148
0.618867
surfound
f4bb938368c44124cc42be41e439f74a33a7caf0
277
cpp
C++
Modbus Poll/CVcWall.cpp
DHSERVICE56/T3000_Building_Automation_System
77bd47a356211b1c8ad09fb8d785e9f880d3cd26
[ "MIT" ]
1
2019-12-11T05:14:08.000Z
2019-12-11T05:14:08.000Z
Modbus Poll/CVcWall.cpp
DHSERVICE56/T3000_Building_Automation_System
77bd47a356211b1c8ad09fb8d785e9f880d3cd26
[ "MIT" ]
null
null
null
Modbus Poll/CVcWall.cpp
DHSERVICE56/T3000_Building_Automation_System
77bd47a356211b1c8ad09fb8d785e9f880d3cd26
[ "MIT" ]
1
2021-05-31T18:56:31.000Z
2021-05-31T18:56:31.000Z
// CVcWall.cpp : Definition of ActiveX Control wrapper class(es) created by Microsoft Visual C++ #include "stdafx.h" #include "CVcWall.h" ///////////////////////////////////////////////////////////////////////////// // CVcWall // CVcWall properties // CVcWall operations
21.307692
97
0.523466
DHSERVICE56
f4bfe147969eb3d294b88d278ff7ceeda3700b5d
11,909
cpp
C++
src/main.cpp
kaorusha/CarND-Path-Planning-Project
62ec9d76840a18702b70d2de3b8e7a91be88d471
[ "MIT" ]
null
null
null
src/main.cpp
kaorusha/CarND-Path-Planning-Project
62ec9d76840a18702b70d2de3b8e7a91be88d471
[ "MIT" ]
null
null
null
src/main.cpp
kaorusha/CarND-Path-Planning-Project
62ec9d76840a18702b70d2de3b8e7a91be88d471
[ "MIT" ]
null
null
null
#include <uWS/uWS.h> #include <fstream> #include <iostream> #include <string> #include <vector> #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "helpers.h" #include "json.hpp" #include "spline.h" #include "vehicle.h" // for convenience using nlohmann::json; using std::string; ...
36.984472
81
0.522966
kaorusha
f4c0a258944c9dafc6f806128443299bd2717793
4,971
cpp
C++
cppn-neat/NE/HyperNEAT/NEAT/src/NEAT_ModularNetwork.cpp
GiorgosMethe/Soft-Robots-Novelty-Search-Public
f493923e7c16a3cedc018be22ab6373046641001
[ "MIT" ]
null
null
null
cppn-neat/NE/HyperNEAT/NEAT/src/NEAT_ModularNetwork.cpp
GiorgosMethe/Soft-Robots-Novelty-Search-Public
f493923e7c16a3cedc018be22ab6373046641001
[ "MIT" ]
null
null
null
cppn-neat/NE/HyperNEAT/NEAT/src/NEAT_ModularNetwork.cpp
GiorgosMethe/Soft-Robots-Novelty-Search-Public
f493923e7c16a3cedc018be22ab6373046641001
[ "MIT" ]
null
null
null
#include "NEAT_Defines.h" #include "NEAT_ModularNetwork.h" #include "NEAT_Random.h" #include "NEAT_GeneticIndividual.h" #include "NEAT_Globals.h" namespace NEAT { ModularNetwork::ModularNetwork(vector<NetworkNode *> &_nodes,vector<NetworkLink *> &_links) : Network<double>() { for (int a=0;a<(int)_nod...
23.784689
102
0.477369
GiorgosMethe
f4c52cda1cc51706b3cba3fa3f83c7bc963a6093
2,901
cpp
C++
games/XenDemo/Column.cpp
odayibasi/swengine
ef07b7c9125d01596837a423a9f3dcbced1f5aa7
[ "Zlib", "MIT" ]
3
2021-03-01T20:41:13.000Z
2021-07-10T13:45:47.000Z
games/XenDemo/Column.cpp
odayibasi/swengine
ef07b7c9125d01596837a423a9f3dcbced1f5aa7
[ "Zlib", "MIT" ]
null
null
null
games/XenDemo/Column.cpp
odayibasi/swengine
ef07b7c9125d01596837a423a9f3dcbced1f5aa7
[ "Zlib", "MIT" ]
null
null
null
#include "../../include/SWEngine.h" typedef struct xenColumnPart{ int dispID; swRect target; swRect *source; }; int iLayerColumnPart=8; bool bVisibleColumnPart=true; extern int columnPartID; extern int columnBlockID; swRect halfColumnSource={0,0,1,0.5}; //-----------------------------------------------------...
31.879121
108
0.60324
odayibasi
f4c542c90d82a345a64a34812e1ff732da076ba6
553
cpp
C++
source/data/map/RadiationTrigger.cpp
atkurtul/RadixEngine
0eb1c176a25aa9430f54d5a20ce5749360c51381
[ "Zlib" ]
163
2016-08-28T23:24:05.000Z
2022-03-31T04:51:51.000Z
source/data/map/RadiationTrigger.cpp
atkurtul/RadixEngine
0eb1c176a25aa9430f54d5a20ce5749360c51381
[ "Zlib" ]
144
2016-09-10T08:40:06.000Z
2020-12-03T17:20:03.000Z
source/data/map/RadiationTrigger.cpp
atkurtul/RadixEngine
0eb1c176a25aa9430f54d5a20ce5749360c51381
[ "Zlib" ]
88
2016-02-22T08:34:49.000Z
2022-03-05T12:29:19.000Z
#include <radix/data/map/RadiationTrigger.hpp> #include <radix/entities/Player.hpp> #include <radix/entities/Trigger.hpp> #include <radix/core/state/GameStateManager.hpp> #include <radix/World.hpp> using namespace std; namespace radix { const std::string RadiationTrigger::TYPE = "radiation"; void RadiationTrigger:...
25.136364
69
0.739602
atkurtul
f4c798bd11750c119e37bf1c011a358b8b96c268
8,162
cpp
C++
WrecklessEngine/D3D11RenderContext.cpp
ThreadedStream/WrecklessEngine
735ac601914c2445b8eef72a14ec0fcd4d0d12d2
[ "MIT" ]
9
2021-02-07T21:33:41.000Z
2022-03-20T18:48:06.000Z
WrecklessEngine/D3D11RenderContext.cpp
ThreadedStream/WrecklessEngine
735ac601914c2445b8eef72a14ec0fcd4d0d12d2
[ "MIT" ]
null
null
null
WrecklessEngine/D3D11RenderContext.cpp
ThreadedStream/WrecklessEngine
735ac601914c2445b8eef72a14ec0fcd4d0d12d2
[ "MIT" ]
4
2021-02-11T15:05:35.000Z
2022-02-20T15:26:35.000Z
#include "D3D11RenderContext.h" namespace Graphics { D3D11RenderContext::D3D11RenderContext(Microsoft::WRL::ComPtr<ID3D11DeviceContext> pDeviceContext) : m_pDeviceContext(pDeviceContext) { } void D3D11RenderContext::SetOutputTarget(Ref<IRenderTarget> render_target, Ref<IDepthStencilView> depth_stencil) { ID3D...
41.015075
177
0.789757
ThreadedStream
f4cbb3658830a07c9e9ce531a648b34b36d47428
1,592
hh
C++
cxx/satellite/include/PhysList.hh
Zelenyy/phd-code
d5b8bfefd2418a915dde89f7da2cb6683f438556
[ "MIT" ]
null
null
null
cxx/satellite/include/PhysList.hh
Zelenyy/phd-code
d5b8bfefd2418a915dde89f7da2cb6683f438556
[ "MIT" ]
null
null
null
cxx/satellite/include/PhysList.hh
Zelenyy/phd-code
d5b8bfefd2418a915dde89f7da2cb6683f438556
[ "MIT" ]
null
null
null
// // Created by zelenyy on 18.05.2021. // #ifndef PHD_CODE_PHYSLIST_HH #define PHD_CODE_PHYSLIST_HH #include <CLHEP/Units/SystemOfUnits.h> #include "globals.hh" #include "G4ios.hh" #include "G4ProcessManager.hh" #include "G4ProcessVector.hh" #include "G4ParticleTypes.hh" #include "G4ParticleTable.hh" #include "G4Ma...
24.492308
64
0.699749
Zelenyy
f4cc19649fa414e3581930122861545c4d530d6c
1,068
cpp
C++
09.Manipulation/06.insert.cpp
ClaudioDaffra/emjq
c3e6083be1238c23a2e15a63e402659af34b2dfe
[ "MIT" ]
1
2018-03-03T18:07:57.000Z
2018-03-03T18:07:57.000Z
09.Manipulation/06.insert.cpp
ClaudioDaffra/emjq
c3e6083be1238c23a2e15a63e402659af34b2dfe
[ "MIT" ]
null
null
null
09.Manipulation/06.insert.cpp
ClaudioDaffra/emjq
c3e6083be1238c23a2e15a63e402659af34b2dfe
[ "MIT" ]
null
null
null
#include "../lib/emjQuery.hpp" // emcc -O3 06.insert.cpp -o main.js -std=c++11 -s NO_EXIT_RUNTIME=1 -s EMULATE_FUNCTION_POINTER_CASTS=1 -s AGGRESSIVE_VARIABLE_ELIMINATION=1 int main( void ) { $( "<p>XYZ</p>" ).insertAfter( _('.inner') ).insertBefore( _('.inner') ); type::pointer p = $.poi...
23.733333
143
0.493446
ClaudioDaffra
f4ddd227c4c864d57f88c138871ddb4b8bda5b31
1,294
hpp
C++
raytracer/Mesh.hpp
kevin-ye/raytracer
246e986f7c71cd31ce988b61e54ac9b27cede076
[ "MIT" ]
null
null
null
raytracer/Mesh.hpp
kevin-ye/raytracer
246e986f7c71cd31ce988b61e54ac9b27cede076
[ "MIT" ]
null
null
null
raytracer/Mesh.hpp
kevin-ye/raytracer
246e986f7c71cd31ce988b61e54ac9b27cede076
[ "MIT" ]
null
null
null
#pragma once #include <vector> #include <iosfwd> #include <string> #include <glm/glm.hpp> #include "Primitive.hpp" #include "IntersectedPrimitiveInfo.hpp" struct Triangle { size_t v1; size_t v2; size_t v3; Triangle( size_t pv1, size_t pv2, size_t pv3 ) : v1( pv1 ) , v2( pv2 ) , v3( pv3 ) {} }; // A pol...
22.701754
114
0.665379
kevin-ye
f4e937a51d426dcd6c9c13c0a1cd449a358d7ca3
1,114
hpp
C++
src/BayesObservation.hpp
Nolnocn/Bayesian-Inference
76ee29171c6e3a4a69b752c1f68ae3fef2526f92
[ "MIT" ]
1
2021-07-07T02:45:55.000Z
2021-07-07T02:45:55.000Z
src/BayesObservation.hpp
Nolnocn/Bayes-Classifier
76ee29171c6e3a4a69b752c1f68ae3fef2526f92
[ "MIT" ]
null
null
null
src/BayesObservation.hpp
Nolnocn/Bayes-Classifier
76ee29171c6e3a4a69b752c1f68ae3fef2526f92
[ "MIT" ]
null
null
null
#ifndef BayesObservation_hpp #define BayesObservation_hpp #include <vector> #include "BayesOutcomeDefs.h" namespace Bayes { /* * Data container class for values of each condition of a BayesDecider * Used to keep track of data for a decision and store result in decider */ class BayesObservation { public: ...
26.52381
87
0.748654
Nolnocn
f4ecfb8fb44c607dd59bc472156cbe7c79a5d4ff
1,896
cpp
C++
leetcode/341. Flatten Nested List Iterator/s1.cpp
contacttoakhil/LeetCode-1
9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c
[ "Fair" ]
1
2021-02-09T11:38:51.000Z
2021-02-09T11:38:51.000Z
leetcode/341. Flatten Nested List Iterator/s1.cpp
contacttoakhil/LeetCode-1
9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c
[ "Fair" ]
null
null
null
leetcode/341. Flatten Nested List Iterator/s1.cpp
contacttoakhil/LeetCode-1
9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c
[ "Fair" ]
null
null
null
/** * // This is the interface that allows for creating nested lists. * // You should not implement it, or speculate about its implementation * class NestedInteger { * public: * // Return true if this NestedInteger holds a single integer, rather than a nested list. * bool isInteger() const; * * //...
31.081967
100
0.573312
contacttoakhil
f4ed9900f04bd6b7cc935e8e2ca27ea1dc88bb00
3,265
hpp
C++
hlsplaylist.hpp
samkusin/HLSLibrary
45f80ddc9cc7a135bde8321cbc97810825091c77
[ "0BSD" ]
7
2018-03-10T21:51:35.000Z
2021-09-09T15:41:12.000Z
hlsplaylist.hpp
samkusin/HLSLibrary
45f80ddc9cc7a135bde8321cbc97810825091c77
[ "0BSD" ]
1
2019-03-03T18:32:33.000Z
2019-03-03T18:32:33.000Z
hlsplaylist.hpp
samkusin/HLSLibrary
45f80ddc9cc7a135bde8321cbc97810825091c77
[ "0BSD" ]
5
2016-03-12T22:13:01.000Z
2021-02-28T15:51:16.000Z
/** * @file hlsplaylist.hpp * @brief Parsers and containers for HLS playlists. * * @copyright Copyright 2015 Samir Sinha. All rights reserved. * @license This project is released under the ISC license. See LICENSE * for the full text. */ #ifndef CINEK_AVLIB_HLSPLAYLIST_HPP #def...
21.912752
76
0.640735
samkusin
f4ee5e5f8247782d713c30c1a8b406312f860cd2
2,315
cpp
C++
modules/task_1/groshev_n_vec_close_values/vector_close_values.cpp
Stepakrap/pp_2021_autumn
716803a14183172337d51712fb28fe8e86891a3d
[ "BSD-3-Clause" ]
1
2021-12-09T17:20:25.000Z
2021-12-09T17:20:25.000Z
modules/task_1/groshev_n_vec_close_values/vector_close_values.cpp
Stepakrap/pp_2021_autumn
716803a14183172337d51712fb28fe8e86891a3d
[ "BSD-3-Clause" ]
null
null
null
modules/task_1/groshev_n_vec_close_values/vector_close_values.cpp
Stepakrap/pp_2021_autumn
716803a14183172337d51712fb28fe8e86891a3d
[ "BSD-3-Clause" ]
3
2022-02-23T14:20:50.000Z
2022-03-30T09:00:02.000Z
// Copyright 2021 Groshev Nickolay #include <mpi.h> #include <random> #include <vector> #include <cmath> #include <algorithm> #include <climits> #include "../../../modules/task_1/groshev_n_vec_close_values/vector_close_values.h" std::vector<int> getRandomVector(int vecSize) { std::random_device stage; std::vec...
30.866667
94
0.557235
Stepakrap
f4f3c84edd8383ca552104871b1a495402a9198c
474
cpp
C++
DepthFirstSearch/DepthFirstSearch/Constants.cpp
gabrieltavares0123/AlgorithmDesignAndAnalysis
8c19772f0e6805812e4be74f7276637112c9b444
[ "Apache-2.0" ]
null
null
null
DepthFirstSearch/DepthFirstSearch/Constants.cpp
gabrieltavares0123/AlgorithmDesignAndAnalysis
8c19772f0e6805812e4be74f7276637112c9b444
[ "Apache-2.0" ]
null
null
null
DepthFirstSearch/DepthFirstSearch/Constants.cpp
gabrieltavares0123/AlgorithmDesignAndAnalysis
8c19772f0e6805812e4be74f7276637112c9b444
[ "Apache-2.0" ]
null
null
null
// Nodes. int const Oradea = 0; int const Zerind = 1; int const Arad = 2; int const Timisoara = 3; int const Lugoj = 4; int const Mehadia = 5; int const Drobeta = 6; int const Craiova = 7; int const RimnicuVilcea = 8; int const Sibiu = 9; int const Fagaras = 10; int const Pitesti = 11; int const Giurgiu = 12; int const...
22.571429
28
0.696203
gabrieltavares0123
7600995310f32ad69a9a68e594b4193b0e980fdc
629
cpp
C++
CodeForces/Practice/485A.cpp
coderanant/Competitive-Programming
45076af7894251080ac616c9581fbf2dc49604af
[ "MIT" ]
4
2019-06-04T11:03:38.000Z
2020-06-19T23:37:32.000Z
CodeForces/Practice/485A.cpp
coderanant/Competitive-Programming
45076af7894251080ac616c9581fbf2dc49604af
[ "MIT" ]
null
null
null
CodeForces/Practice/485A.cpp
coderanant/Competitive-Programming
45076af7894251080ac616c9581fbf2dc49604af
[ "MIT" ]
null
null
null
/*coderanant*/ #include <bits/stdc++.h> using namespace std; #define int long long #define ll long long #define f1(i,a,b) for(int i=a;i<b;i++) #define f2(i,a,b) for(int i=a;i>=b;i--) #define endl '\n' #define pb push_back #define gp " " #define ff first #define ss second #define mp make_pair const int mod=1000000007;...
16.552632
39
0.540541
coderanant
76018b8a21539b74f3a182da83d97cb5832de763
8,845
cpp
C++
main.cpp
cookish/deeptile
159275b4d63286dd6ad08010a4e457ba9af9ae2d
[ "MIT" ]
null
null
null
main.cpp
cookish/deeptile
159275b4d63286dd6ad08010a4e457ba9af9ae2d
[ "MIT" ]
6
2018-12-04T22:33:59.000Z
2018-12-07T23:07:35.000Z
main.cpp
cookish/deeptile
159275b4d63286dd6ad08010a4e457ba9af9ae2d
[ "MIT" ]
null
null
null
#include "BoardHandler.hh" #include "ExpectiMax.hh" #include "Utility.hh" #include "HeuristicScorer.hh" #include "MLScorer.hh" #include "GameStats.hh" #include "RunStats.hh" #include "JsonStats.hh" #include "Output.hh" #include "Settings.hh" #include <boost/filesystem.hpp> #include <mutex> #include <thread> #include ...
33.25188
100
0.579197
cookish
7603cfdd482d38b8f23a872a2092ae7e39360507
1,650
hpp
C++
create3_coverage/include/create3_coverage/behaviors/rotate-behavior.hpp
iRobotEducation/create3_examples
8f04a57be3d2c8e7e9a4d346b78eaca991b83e84
[ "BSD-3-Clause" ]
2
2021-12-16T16:14:39.000Z
2022-03-10T01:19:06.000Z
create3_coverage/include/create3_coverage/behaviors/rotate-behavior.hpp
iRobotEducation/create3_examples
8f04a57be3d2c8e7e9a4d346b78eaca991b83e84
[ "BSD-3-Clause" ]
7
2021-11-01T18:59:15.000Z
2022-01-14T16:43:55.000Z
create3_coverage/include/create3_coverage/behaviors/rotate-behavior.hpp
iRobotEducation/create3_examples
8f04a57be3d2c8e7e9a4d346b78eaca991b83e84
[ "BSD-3-Clause" ]
1
2021-11-11T20:06:22.000Z
2021-11-11T20:06:22.000Z
// Copyright 2021 iRobot Corporation. All Rights Reserved. #pragma once #include "create3_coverage/behaviors/behavior.hpp" #include "create3_coverage/behaviors/reflex-behavior.hpp" #include "create3_examples_msgs/action/coverage.hpp" #include "geometry_msgs/msg/twist.hpp" #include "rclcpp/rclcpp.hpp" #include "tf2_ge...
27.04918
105
0.725455
iRobotEducation
760be3e00eeee36d5d0e40d2557d701d579e1cea
501
hpp
C++
include/data_types/vec/Vec.hpp
flwende/data_types
2a251345a2d1a1595f4b3f5e49b01311bdd17d42
[ "BSD-2-Clause" ]
null
null
null
include/data_types/vec/Vec.hpp
flwende/data_types
2a251345a2d1a1595f4b3f5e49b01311bdd17d42
[ "BSD-2-Clause" ]
null
null
null
include/data_types/vec/Vec.hpp
flwende/data_types
2a251345a2d1a1595f4b3f5e49b01311bdd17d42
[ "BSD-2-Clause" ]
null
null
null
// Copyright (c) 2017-2019 Florian Wende (flwende@gmail.com) // // Distributed under the BSD 2-clause Software License // (See accompanying file LICENSE) #if !defined(DATA_TYPES_VEC_VEC_HPP) #define DATA_TYPES_VEC_VEC_HPP #if !defined(XXX_NAMESPACE) #define XXX_NAMESPACE fw #endif #include <tuple/Tuple.hpp> #include...
19.269231
60
0.720559
flwende
76114b9bc8badcc0cd05cfe6f4b815555321e0c4
1,466
cpp
C++
jerome/xml/document.cpp
leuski-ict/jerome
6141a21c50903e98a04c79899164e7d0e82fe1c2
[ "Apache-2.0" ]
3
2018-06-11T10:48:54.000Z
2021-05-30T07:10:15.000Z
jerome/xml/document.cpp
leuski-ict/jerome
6141a21c50903e98a04c79899164e7d0e82fe1c2
[ "Apache-2.0" ]
null
null
null
jerome/xml/document.cpp
leuski-ict/jerome
6141a21c50903e98a04c79899164e7d0e82fe1c2
[ "Apache-2.0" ]
null
null
null
// // document.cpp // // Created by Anton Leuski on 8/15/15. // Copyright (c) 2015 Anton Leuski & ICT/USC. All rights reserved. // // This file is part of Jerome. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may o...
23.645161
76
0.686903
leuski-ict
761371997ef47205c1a986e51a751c28ee016882
1,246
cpp
C++
cmdstan/stan/lib/stan_math/test/unit/math/mix/mat/fun/trace_test.cpp
yizhang-cae/torsten
dc82080ca032325040844cbabe81c9a2b5e046f9
[ "BSD-3-Clause" ]
null
null
null
cmdstan/stan/lib/stan_math/test/unit/math/mix/mat/fun/trace_test.cpp
yizhang-cae/torsten
dc82080ca032325040844cbabe81c9a2b5e046f9
[ "BSD-3-Clause" ]
null
null
null
cmdstan/stan/lib/stan_math/test/unit/math/mix/mat/fun/trace_test.cpp
yizhang-cae/torsten
dc82080ca032325040844cbabe81c9a2b5e046f9
[ "BSD-3-Clause" ]
null
null
null
#include <stan/math/mix/mat.hpp> #include <gtest/gtest.h> #include <test/unit/math/rev/mat/fun/util.hpp> TEST(AgradMixMatrixTrace,fv) { using stan::math::trace; using stan::math::matrix_fv; using stan::math::fvar; using stan::math::var; matrix_fv a(2,2); a << -1.0, 2.0, 5.0, 10.0; a(0,0).d_ = 1.0;...
23.074074
61
0.555377
yizhang-cae
761c8fde5ca17eb8395d7f50fec9618cb3d37499
886
hxx
C++
Legolas/BlockMatrix/Structures/Diagonal/DiagonalBlockMatrix.hxx
LaurentPlagne/Legolas
fdf533528baf7ab5fcb1db15d95d2387b3e3723c
[ "MIT" ]
null
null
null
Legolas/BlockMatrix/Structures/Diagonal/DiagonalBlockMatrix.hxx
LaurentPlagne/Legolas
fdf533528baf7ab5fcb1db15d95d2387b3e3723c
[ "MIT" ]
null
null
null
Legolas/BlockMatrix/Structures/Diagonal/DiagonalBlockMatrix.hxx
LaurentPlagne/Legolas
fdf533528baf7ab5fcb1db15d95d2387b3e3723c
[ "MIT" ]
1
2021-02-11T14:43:25.000Z
2021-02-11T14:43:25.000Z
#ifndef __LEGOLAS_DIAGONALBLOCKMATRIX_HXX__ #define __LEGOLAS_DIAGONALBLOCKMATRIX_HXX__ #include "Legolas/BlockMatrix/Matrix.hxx" #include "Legolas/BlockMatrix/Structures/Diagonal/DiagonalVirtualBlockMatrix.hxx" #include "Legolas/BlockMatrix/Structures/Diagonal/DiagonalVirtualSolver.hxx" namespace Legolas{ class...
26.058824
82
0.757336
LaurentPlagne
76202a93a58c86da6c37f826216b9b33fcbdf48e
4,312
cpp
C++
Poker/deck_of_cards.cpp
jairoalejandrogomez/CppTraining
932bc729817213af70c19d5d3525ada44a235116
[ "MIT" ]
null
null
null
Poker/deck_of_cards.cpp
jairoalejandrogomez/CppTraining
932bc729817213af70c19d5d3525ada44a235116
[ "MIT" ]
null
null
null
Poker/deck_of_cards.cpp
jairoalejandrogomez/CppTraining
932bc729817213af70c19d5d3525ada44a235116
[ "MIT" ]
null
null
null
#include "deck_of_cards.h" //-------------------------------------------------------------- using namespace std; //-------------------------------------------------------------- //Class implementation. //-------------------------------------------------------------- deck_of_cards::deck_of_cards(void) { ...
33.6875
148
0.325603
jairoalejandrogomez
762035ad6f88514134248c3644610334f9333b1f
1,288
hpp
C++
libraries/CustomHeaderLibs/device/24LC256.hpp
mskoenz/arduino_crash_course
cc7031e827dd13211cb9ce84f6d758f6e635e6a8
[ "WTFPL" ]
null
null
null
libraries/CustomHeaderLibs/device/24LC256.hpp
mskoenz/arduino_crash_course
cc7031e827dd13211cb9ce84f6d758f6e635e6a8
[ "WTFPL" ]
null
null
null
libraries/CustomHeaderLibs/device/24LC256.hpp
mskoenz/arduino_crash_course
cc7031e827dd13211cb9ce84f6d758f6e635e6a8
[ "WTFPL" ]
null
null
null
// Author: Mario S. Könz <mskoenz@gmx.net> // Date: 19.08.2013 20:44:12 CEST // File: 24LC256.hpp /* This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What The Fuck You Want * To Publ...
33.894737
123
0.610248
mskoenz
76210ddea290fd8ea025985d4cc9fe0713dbeb33
2,232
cpp
C++
src/pipeline/datatype/SpatialImgDetections.cpp
slitcch/depthai-core
b6e5f3bc9ac1473c0a91012611a6f7f9d97c384d
[ "MIT" ]
1
2022-03-22T07:15:47.000Z
2022-03-22T07:15:47.000Z
src/pipeline/datatype/SpatialImgDetections.cpp
slitcch/depthai-core
b6e5f3bc9ac1473c0a91012611a6f7f9d97c384d
[ "MIT" ]
null
null
null
src/pipeline/datatype/SpatialImgDetections.cpp
slitcch/depthai-core
b6e5f3bc9ac1473c0a91012611a6f7f9d97c384d
[ "MIT" ]
null
null
null
#include "depthai/pipeline/datatype/SpatialImgDetections.hpp" namespace dai { std::shared_ptr<RawBuffer> SpatialImgDetections::serialize() const { return raw; } SpatialImgDetections::SpatialImgDetections() : Buffer(std::make_shared<RawSpatialImgDetections>()), dets(*dynamic_cast<RawSpatialImgDetections*>(raw...
44.64
156
0.75672
slitcch
7626b2b7fb37852ca22d0e2fd1f5a702cd2e5732
7,892
cpp
C++
smalldrop/smalldrop_teleoperation/src/smalldrop_teleoperation/spacemouse.cpp
blackchacal/Master-Thesis----Software
9a9858ede3086eee99d1fc969e32b4fb13278f00
[ "MIT" ]
1
2020-08-16T14:37:09.000Z
2020-08-16T14:37:09.000Z
smalldrop/smalldrop_teleoperation/src/smalldrop_teleoperation/spacemouse.cpp
blackchacal/Master-Thesis----Software
9a9858ede3086eee99d1fc969e32b4fb13278f00
[ "MIT" ]
1
2020-06-26T09:14:45.000Z
2020-07-18T08:46:50.000Z
smalldrop/smalldrop_teleoperation/src/smalldrop_teleoperation/spacemouse.cpp
blackchacal/Master-Thesis----Software
9a9858ede3086eee99d1fc969e32b4fb13278f00
[ "MIT" ]
null
null
null
// Copyright (c) 2019-2020 Ricardo Tonet // Use of this source code is governed by the MIT license, see LICENSE /** * \file spacemouse.cpp * \brief Defines class for space mouse remote controller. */ #include <smalldrop_teleoperation/spacemouse.h> namespace smalldrop { namespace smalldrop_teleoperation { /*******...
25.79085
141
0.559934
blackchacal
762fab91db15fbb2818a11c8c6f4ebe0ba4c557b
734
hh
C++
NetworkRelay/RunWorldServer.hh
deb0ch/R-Type
8bb37cd5ec318efb97119afb87d4996f6bb7644e
[ "WTFPL" ]
5
2016-03-15T20:14:10.000Z
2020-10-30T23:56:24.000Z
NetworkRelay/RunWorldServer.hh
deb0ch/R-Type
8bb37cd5ec318efb97119afb87d4996f6bb7644e
[ "WTFPL" ]
3
2018-12-19T19:12:44.000Z
2020-04-02T13:07:00.000Z
NetworkRelay/RunWorldServer.hh
deb0ch/R-Type
8bb37cd5ec318efb97119afb87d4996f6bb7644e
[ "WTFPL" ]
2
2016-04-11T19:29:28.000Z
2021-11-26T20:53:22.000Z
#ifndef RUNWORLDSERVER_H_ # define RUNWORLDSERVER_H_ #include "World.hh" #include "Timer.hh" #include "Any.hpp" class ServerRelay; class RunWorldServer { public: RunWorldServer(ServerRelay *server, const std::string &nameRoom); virtual ~RunWorldServer(); void run(Any); void run(); World *getWorld(); con...
17.47619
67
0.720708
deb0ch
7630207b9ba9003b76ae9a8f7842139996de2f82
390
cpp
C++
EJERCICIOS/EJERCICIO46-Random/random.cpp
AntonioVillatoro/cpp
dbbfcbf7d31c3c0e64399a487d05398e53d9428d
[ "MIT" ]
null
null
null
EJERCICIOS/EJERCICIO46-Random/random.cpp
AntonioVillatoro/cpp
dbbfcbf7d31c3c0e64399a487d05398e53d9428d
[ "MIT" ]
null
null
null
EJERCICIOS/EJERCICIO46-Random/random.cpp
AntonioVillatoro/cpp
dbbfcbf7d31c3c0e64399a487d05398e53d9428d
[ "MIT" ]
null
null
null
#include <iostream> #include <stdlib.h> #include <time.h> using namespace std; int main(int argc, char const *argv[]) { int numero=0; //INICIALIZA EL NUMERO RANDOM srand (time(NULL)); // GENERE UN NUMERO ENTRE 1 Y 10 for (int i = 0; i < 20; i++) { numero= rand ()%5+1; cout << "NUMERO AL...
13
41
0.553846
AntonioVillatoro
7630950fa17aeb6fc006adff8a352a13042e0a44
626
hpp
C++
Include/SA/SDK/Assets/TextureAsset.hpp
SapphireSuite/Engine
f29821853aec6118508f31d3e063e83e603f52dd
[ "MIT" ]
1
2022-01-20T23:17:18.000Z
2022-01-20T23:17:18.000Z
Include/SA/SDK/Assets/TextureAsset.hpp
SapphireSuite/Engine
f29821853aec6118508f31d3e063e83e603f52dd
[ "MIT" ]
null
null
null
Include/SA/SDK/Assets/TextureAsset.hpp
SapphireSuite/Engine
f29821853aec6118508f31d3e063e83e603f52dd
[ "MIT" ]
null
null
null
// Copyright (c) 2021 Sapphire's Suite. All Rights Reserved. #pragma once #ifndef SAPPHIRE_SDK_TEXTURE_ASSET_GUARD #define SAPPHIRE_SDK_TEXTURE_ASSET_GUARD #include <SA/SDK/Assets/AAsset.hpp> #include <SA/Render/Base/Texture/RawTexture.hpp> namespace Sa { class TextureAsset : public AAsset { protected: bool L...
19.5625
66
0.757188
SapphireSuite
7632ebaad4ce19069e1327707a390c7b540d3b55
1,257
cpp
C++
src/objreceiver.cpp
barovig/CyberEye
ab6c5f83a07fcefb18fc796b5602f28b8f471bb3
[ "BSD-3-Clause" ]
null
null
null
src/objreceiver.cpp
barovig/CyberEye
ab6c5f83a07fcefb18fc796b5602f28b8f471bb3
[ "BSD-3-Clause" ]
null
null
null
src/objreceiver.cpp
barovig/CyberEye
ab6c5f83a07fcefb18fc796b5602f28b8f471bb3
[ "BSD-3-Clause" ]
null
null
null
#include "objreceiver.h" #include <boost/archive/binary_iarchive.hpp> #include <boost/archive/binary_oarchive.hpp> namespace ce { ObjReceiver::ObjReceiver(int port) : _port{port}, _acceptor(_ios, boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), _port)) { } void ObjReceiver::receiveObject(P_ImgObj obj) { ...
24.647059
83
0.718377
barovig
763715dbc8488a92005c36c5a9a6261903807fd8
3,261
hpp
C++
include/qflags/string_option.hpp
AlErted/qflags
27b4c193b0ad6121b9389ef4fd7080a806381026
[ "MIT" ]
null
null
null
include/qflags/string_option.hpp
AlErted/qflags
27b4c193b0ad6121b9389ef4fd7080a806381026
[ "MIT" ]
null
null
null
include/qflags/string_option.hpp
AlErted/qflags
27b4c193b0ad6121b9389ef4fd7080a806381026
[ "MIT" ]
null
null
null
// string_option.hpp // #include <qflags/qflags.h> #include <cassert> namespace qflags { //////////////////////////////////////////////////////////////////////////////// /** * */ QFLAGS_INLINE string_option::string_option(char const* name, char const* default_value) : ...
32.939394
94
0.495554
AlErted
7639579bd5f7d070633defc8d8fd5e5e3e20432a
3,461
cpp
C++
filter_stubs/orient_steerable.cpp
flyingfalling/salmap_rv
61827a42f456afcd9c930646de33bc3f9533e3e2
[ "MIT" ]
1
2022-02-17T03:05:40.000Z
2022-02-17T03:05:40.000Z
filter_stubs/orient_steerable.cpp
flyingfalling/salmap_rv
61827a42f456afcd9c930646de33bc3f9533e3e2
[ "MIT" ]
null
null
null
filter_stubs/orient_steerable.cpp
flyingfalling/salmap_rv
61827a42f456afcd9c930646de33bc3f9533e3e2
[ "MIT" ]
null
null
null
auto i = GETINPUT("input"); auto output = GETOUTPUT("output"); if( false == scratch.initialized() ) { float64_t bandwidth_octaves = param_as_float64( params, "bandwidth_octaves" ); float64_t orientation_theta_rad = deg_to_rad( param_as_float64( params, "orient_theta_deg" ) ); fl...
22.92053
382
0.620341
flyingfalling
763d85b0be79d2918d0a9aa7a6ea1853cfa088df
4,400
cpp
C++
src/ValueWidget.cpp
jeanleflambeur/electronicload
15cc1b64710ced214928824e34729e83f260ed7f
[ "MIT" ]
4
2019-02-24T16:09:44.000Z
2019-05-03T08:50:17.000Z
src/ValueWidget.cpp
jeanleflambeur/electronicload
15cc1b64710ced214928824e34729e83f260ed7f
[ "MIT" ]
2
2019-05-17T07:42:16.000Z
2021-02-04T23:34:06.000Z
src/ValueWidget.cpp
jeanleflambeur/electronicload
15cc1b64710ced214928824e34729e83f260ed7f
[ "MIT" ]
2
2019-12-27T00:32:19.000Z
2019-12-28T15:10:11.000Z
#include "ValueWidget.h" ValueWidget::ValueWidget(JLMBackBuffer& gfx, float value, const char* suffix) : WidgetBase(gfx) , m_value(value) { m_suffix = suffix ? suffix : ""; } void ValueWidget::setValueFont(const GFXfont* font) { m_valueFont = font; m_dirtyFlags |= DirtyFlagGeometry; } void ValueWidget::setSuffixF...
20.183486
103
0.673182
jeanleflambeur
764ba7f8fc894ca90ef780dc37de51f7c861d130
243
cpp
C++
gui/widgets/rotationwidget.cpp
r24y/PicoScan
9cd93b162cd2802962c76a3de7740198b9e936ab
[ "BSD-2-Clause" ]
4
2016-11-29T18:33:34.000Z
2018-03-09T01:08:23.000Z
gui/widgets/rotationwidget.cpp
r24y/PicoScan
9cd93b162cd2802962c76a3de7740198b9e936ab
[ "BSD-2-Clause" ]
null
null
null
gui/widgets/rotationwidget.cpp
r24y/PicoScan
9cd93b162cd2802962c76a3de7740198b9e936ab
[ "BSD-2-Clause" ]
4
2015-10-22T11:54:09.000Z
2017-09-07T07:26:01.000Z
#include "rotationwidget.h" #include "ui_rotationwidget.h" RotationWidget::RotationWidget(QWidget *parent) : QWidget(parent), ui(new Ui::RotationWidget) { ui->setupUi(this); } RotationWidget::~RotationWidget() { delete ui; }
16.2
49
0.703704
r24y
765348171cf87dc77937c7e7e5f53e614b95cc03
194,031
hxx
C++
test/convolution/tv_test_data.hxx
sstefan/vigra
f8826fa4de4293efb95582367f4bf42cc8ba8c11
[ "MIT" ]
null
null
null
test/convolution/tv_test_data.hxx
sstefan/vigra
f8826fa4de4293efb95582367f4bf42cc8ba8c11
[ "MIT" ]
null
null
null
test/convolution/tv_test_data.hxx
sstefan/vigra
f8826fa4de4293efb95582367f4bf42cc8ba8c11
[ "MIT" ]
null
null
null
/************************************************************************/ /* */ /* Copyright 2012 by Frank Lenzen & */ /* Ullrich Koethe */ /* ...
648.93311
938
0.86146
sstefan
765cd70f5a96b89546dc72335dfd316028616f4e
1,348
cpp
C++
Accepted_The 2000's ACM-ICPC/P2670 (Euro Efficiency).cpp
peneksglazami/acm-icpc-training
a3c41b65b8f8523713f9859b076f300a12c4e7f3
[ "CC0-1.0" ]
null
null
null
Accepted_The 2000's ACM-ICPC/P2670 (Euro Efficiency).cpp
peneksglazami/acm-icpc-training
a3c41b65b8f8523713f9859b076f300a12c4e7f3
[ "CC0-1.0" ]
null
null
null
Accepted_The 2000's ACM-ICPC/P2670 (Euro Efficiency).cpp
peneksglazami/acm-icpc-training
a3c41b65b8f8523713f9859b076f300a12c4e7f3
[ "CC0-1.0" ]
null
null
null
/************************************ Problem: 2670 - Euro Efficiency Europe - Northwestern - 2002/2003 Solved by Andrey Grigorov ************************************/ #include <stdio.h> #include <string.h> const int maxn = 10000, maxc = 6; int i,j,test,sum,max,a[2*maxn+1],c[maxc],q1[2*maxn+1],q2[2*maxn+1],q1_cn...
21.396825
86
0.445846
peneksglazami
765cd867436a8af3275530578ab62cb5cffd5ff3
1,301
cpp
C++
src/main.cpp
Xpost2000/Killbot
8cc287758e0c26d0350343f383f5adfe0acac0e9
[ "MIT" ]
null
null
null
src/main.cpp
Xpost2000/Killbot
8cc287758e0c26d0350343f383f5adfe0acac0e9
[ "MIT" ]
null
null
null
src/main.cpp
Xpost2000/Killbot
8cc287758e0c26d0350343f383f5adfe0acac0e9
[ "MIT" ]
null
null
null
/* * KILLBOT * * is an open source game about robot survival. * You play as a killbot in a small arena in which * other killbots are sent to destroy you. For the * moment killbots aren't very strong and have strength * in numbers. * * You have a cannon. Use it effectively */ #include "Engine.h" #...
30.97619
80
0.697925
Xpost2000
766558655aec767615863693988008bb3f665d4c
594
hpp
C++
include/menu/menu.hpp
tanacchi/rogue_game
fd8f655f95932513f6aa63e0c413bbe110a4418a
[ "MIT" ]
10
2018-09-13T14:47:07.000Z
2022-01-10T11:46:12.000Z
include/menu/menu.hpp
tanacchi/rogue_game
fd8f655f95932513f6aa63e0c413bbe110a4418a
[ "MIT" ]
13
2018-09-18T19:36:32.000Z
2020-11-12T16:26:22.000Z
include/menu/menu.hpp
tanacchi/rogue_game
fd8f655f95932513f6aa63e0c413bbe110a4418a
[ "MIT" ]
null
null
null
#ifndef INCLUDED_MENU_HPP #define INCLUDED_MENU_HPP #include <functional> #include <memory> #include <map> class GameStatus; class GameMaster; class MenuHandler; class Menu { public: friend MenuHandler; using MenuPtr = std::unique_ptr<Menu>; using ContentType = std::multimap<std::string, std::function<...
20.482759
89
0.739057
tanacchi
7670b032c7e811bd9a5216aa86fb9dd93b453465
1,956
cpp
C++
src/libdbcppp/ValueTableImpl.cpp
jgelinske/dbcppp
ce1b91a7dda0468ac27c6e15c290102bb052d4f8
[ "MIT" ]
null
null
null
src/libdbcppp/ValueTableImpl.cpp
jgelinske/dbcppp
ce1b91a7dda0468ac27c6e15c290102bb052d4f8
[ "MIT" ]
null
null
null
src/libdbcppp/ValueTableImpl.cpp
jgelinske/dbcppp
ce1b91a7dda0468ac27c6e15c290102bb052d4f8
[ "MIT" ]
null
null
null
#include "../../include/dbcppp/Network.h" #include "ValueTableImpl.h" using namespace dbcppp; std::unique_ptr<ValueTable> ValueTable::create( std::string&& name , boost::optional<std::unique_ptr<SignalType>>&& signal_type , std::unordered_map<int64_t, std::string>&& value_encoding_descriptions) { b...
29.19403
113
0.68865
jgelinske
767756c6d1dfd5a1775d08cb4906735249b67ea5
1,596
cpp
C++
cpp/tests/data_structures/ray.cpp
LawrenceRafferty/ray-tracer-challenge
f54dfd4eb717e44c9e313be4bd28f8fad00094d0
[ "MIT" ]
null
null
null
cpp/tests/data_structures/ray.cpp
LawrenceRafferty/ray-tracer-challenge
f54dfd4eb717e44c9e313be4bd28f8fad00094d0
[ "MIT" ]
null
null
null
cpp/tests/data_structures/ray.cpp
LawrenceRafferty/ray-tracer-challenge
f54dfd4eb717e44c9e313be4bd28f8fad00094d0
[ "MIT" ]
null
null
null
#define CATCH_CONFIG_MAIN #include "../framework/catch.hpp" #include "../../src/data_structures/four_tuple/four_tuple.cpp" #include "../../src/data_structures/matrix/matrix.cpp" #include "../../src/data_structures/ray/ray.cpp" using data_structures::four_tuple; using data_structures::matrix; using data_structures::ray...
31.92
71
0.684211
LawrenceRafferty
767e6b89e4818d63cbcce2ea9819112e26c3d0cf
952
cpp
C++
uva/10139.cpp
larc/competitive_programming
deccd7152a14adf217c58546d1cf8ac6b45f1c52
[ "MIT" ]
1
2019-05-23T19:05:39.000Z
2019-05-23T19:05:39.000Z
uva/10139.cpp
larc/oremor
deccd7152a14adf217c58546d1cf8ac6b45f1c52
[ "MIT" ]
null
null
null
uva/10139.cpp
larc/oremor
deccd7152a14adf217c58546d1cf8ac6b45f1c52
[ "MIT" ]
null
null
null
// 10139 - Factovisors #include <cstdio> #define N 46340 int primes[N], n_primes = 0; void sieve() { bool not_prime[N] = { 0 }; primes[n_primes++] = 2; for(int i = 3; i < N ; ++i) if(!not_prime[i]) { primes[n_primes++] = i; for(int j = i * i; j < N; j += (i << 1)) not_prime[j] = 1; } } int fact...
13.222222
62
0.515756
larc
768ba2602a8160d7e2db21f5c03cdc9a19e19fae
2,777
cpp
C++
Algorithms/tree_t(G)/Correctness/bruteForceValidator.cpp
lucaskeiler/AlgoritmosTCC
eccf14c2c872acb9e0728eb8948eee121b274f2e
[ "MIT" ]
null
null
null
Algorithms/tree_t(G)/Correctness/bruteForceValidator.cpp
lucaskeiler/AlgoritmosTCC
eccf14c2c872acb9e0728eb8948eee121b274f2e
[ "MIT" ]
null
null
null
Algorithms/tree_t(G)/Correctness/bruteForceValidator.cpp
lucaskeiler/AlgoritmosTCC
eccf14c2c872acb9e0728eb8948eee121b274f2e
[ "MIT" ]
null
null
null
#include <vector> #include "bruteForceValidator.hpp" #include <string> #include <algorithm> #include <iostream> void cleanInfectedArray(int *infected,int n,std::vector<int> infected_at_0){ for(int i=0;i<=n;i++) infected[i] = -1; for(auto vertex : infected_at_0) infected[vertex] = 0; } int simu...
24.359649
104
0.521066
lucaskeiler
371d97ef72bb564a2b56f6e68fd1e922a1730088
663
cpp
C++
Algorithm/unionfind/unionfind_xwd.cpp
andywu1998/C_and_Cpp
dd1eaed4f2321cca9bb23e91791668e2eb2622cf
[ "MIT" ]
null
null
null
Algorithm/unionfind/unionfind_xwd.cpp
andywu1998/C_and_Cpp
dd1eaed4f2321cca9bb23e91791668e2eb2622cf
[ "MIT" ]
1
2017-12-26T11:47:06.000Z
2017-12-26T11:47:06.000Z
Algorithm/unionfind/unionfind_xwd.cpp
andywu1998/C_and_Cpp
dd1eaed4f2321cca9bb23e91791668e2eb2622cf
[ "MIT" ]
2
2017-12-25T12:32:56.000Z
2017-12-26T15:16:06.000Z
#include <stdio.h> int pre[100]; int find(int x); void unite(int x, int y); int main() { int i, x, y; for (i = 0; i < 100; i++) { pre[i] = i; // printf("%d ", pre[i]); } int t; scanf("%d", &t); while (t--) { scanf("%d%d", &x, &y); unite(x, y); } sc...
15.418605
51
0.363499
andywu1998
37234c4c16d92cdee36d57b50d1381c3e4e672e3
3,044
cpp
C++
tools/converter/source/optimizer/merge/EliminateSqueezeExpandDims.cpp
JujuDel/MNN
8a82f5c5a7ae37192784c2dbd6dfc8ca8833565a
[ "Apache-2.0" ]
6,958
2019-05-06T02:38:02.000Z
2022-03-31T18:08:48.000Z
tools/converter/source/optimizer/merge/EliminateSqueezeExpandDims.cpp
JujuDel/MNN
8a82f5c5a7ae37192784c2dbd6dfc8ca8833565a
[ "Apache-2.0" ]
1,775
2019-05-06T04:40:19.000Z
2022-03-30T15:39:24.000Z
tools/converter/source/optimizer/merge/EliminateSqueezeExpandDims.cpp
JujuDel/MNN
8a82f5c5a7ae37192784c2dbd6dfc8ca8833565a
[ "Apache-2.0" ]
1,511
2019-05-06T02:38:05.000Z
2022-03-31T16:59:39.000Z
// // EliminateSqueezeExpandDims.cpp // MNNConverter // // Created by MNN on 2020/12/03. // Copyright © 2018, Alibaba Group Holding Limited // #include "../TemplateMerge.hpp" #include "MNN/expr/ExprCreator.hpp" #include "MNN_generated.h" namespace MNN { namespace Express { class EliminateSqueezeExpandDims { publ...
31.381443
132
0.563403
JujuDel
37239605b4e641979c520fc3e11b184be411ffcd
4,222
cpp
C++
tests/atomic.cpp
drbobbeaty/DKit
b3ae323449a8ad6c93e46dd4d07443f8fcc1a001
[ "Unlicense" ]
19
2015-01-16T10:11:39.000Z
2022-02-17T01:48:25.000Z
tests/atomic.cpp
drbobbeaty/DKit
b3ae323449a8ad6c93e46dd4d07443f8fcc1a001
[ "Unlicense" ]
null
null
null
tests/atomic.cpp
drbobbeaty/DKit
b3ae323449a8ad6c93e46dd4d07443f8fcc1a001
[ "Unlicense" ]
3
2015-06-28T13:20:15.000Z
2015-12-01T08:35:35.000Z
/** * This is the tests for the atomic integers and boolean values */ // System Headers #include <iostream> #include <string> // Third-Party Headers // Other Headers #include "atomic.h" int main(int argc, char *argv[]) { bool error = false; /** * Check the atomic bool - setting values, flipping values, etc. ...
26.721519
97
0.570346
drbobbeaty
3725f0bb72b44597e4a3159092120954a2dd3e42
343
cpp
C++
Development/Games/Test_Game1/Game1.cpp
AaronAppel/QwerkE_Engine
662a4386b5068066b9139ea24e3c7fb14ed3177d
[ "BSD-3-Clause" ]
1
2018-03-31T18:16:43.000Z
2018-03-31T18:16:43.000Z
Development/Games/Test_Game1/Game1.cpp
AaronAppel/QwerkE_Engine
662a4386b5068066b9139ea24e3c7fb14ed3177d
[ "BSD-3-Clause" ]
null
null
null
Development/Games/Test_Game1/Game1.cpp
AaronAppel/QwerkE_Engine
662a4386b5068066b9139ea24e3c7fb14ed3177d
[ "BSD-3-Clause" ]
null
null
null
#include "Game1.h" // #include "../../../QwerkE_Framework/QwerkE.h" // #include "../../../Source/Engine.h" using namespace QwerkE; int main() { // Engine engine; // engine.Startup(); // // Scenes::AddScene(new GameScene()); // Scenes::SetCurrentScene()->SetIsEnabled(true); // // engine.Run(); // // engine.Te...
17.15
50
0.606414
AaronAppel
37270f79fde9771f1381c6a47baf9d74082fbfbc
516
cpp
C++
UVAprograms/PC12356.cpp
Landon-Brown1/1063-DS-Brown
64220948fbc69f7bfbd1ab234fe22da5de97fa6e
[ "MIT" ]
1
2019-12-23T16:26:20.000Z
2019-12-23T16:26:20.000Z
UVAprograms/PC12356.cpp
Landon-Brown1/1063-DS-Brown
64220948fbc69f7bfbd1ab234fe22da5de97fa6e
[ "MIT" ]
null
null
null
UVAprograms/PC12356.cpp
Landon-Brown1/1063-DS-Brown
64220948fbc69f7bfbd1ab234fe22da5de97fa6e
[ "MIT" ]
null
null
null
#include <iostream> #include <fstream> #include <vector> using namespace std; int main(){ int lineSize = 0; int lossReports = 0; bool new_line = true; ifstream inFile; inFile.open("12356.txt"); while(!inFile.eof()){ if(new_line == true){ inFile >> lineSize; inF...
19.111111
42
0.517442
Landon-Brown1
372c62dc7c3aedcbe1666820c0365408f0572976
678
cpp
C++
src/desktop/core/window/WindowEventHandler.cpp
Yellowkingg/algine
4d1a45cd65eb5569212866bd5470b1f0d3b43064
[ "MIT" ]
1
2022-02-05T21:39:36.000Z
2022-02-05T21:39:36.000Z
src/desktop/core/window/WindowEventHandler.cpp
Yellowkingg/algine
4d1a45cd65eb5569212866bd5470b1f0d3b43064
[ "MIT" ]
null
null
null
src/desktop/core/window/WindowEventHandler.cpp
Yellowkingg/algine
4d1a45cd65eb5569212866bd5470b1f0d3b43064
[ "MIT" ]
null
null
null
#include <algine/core/window/WindowEventHandler.h> namespace algine { // so that you don't need to implement handling of each event void WindowEventHandler::mouseMove(double x, double y) {} void WindowEventHandler::mouseClick(MouseKey key) {} void WindowEventHandler::mouseKeyPress(MouseKey key) {} void WindowEventHan...
37.666667
67
0.803835
Yellowkingg
37319c0319c9beec633d4ef1869cea76b5a6f4ca
4,997
cpp
C++
src/test/rand/main.cpp
WebWorksCollection/treefrog-framework
9da400135c5fa6c4effa878cca395d8f200cf0f0
[ "BSD-3-Clause" ]
null
null
null
src/test/rand/main.cpp
WebWorksCollection/treefrog-framework
9da400135c5fa6c4effa878cca395d8f200cf0f0
[ "BSD-3-Clause" ]
1
2021-09-27T23:44:17.000Z
2021-09-27T23:44:17.000Z
src/test/rand/main.cpp
WebWorksCollection/treefrog-framework
9da400135c5fa6c4effa878cca395d8f200cf0f0
[ "BSD-3-Clause" ]
null
null
null
#include <QTest> #include <QtCore> #include <QHostInfo> #include <tglobal.h> #include <stdio.h> #include <random> static QMutex mutex; static QByteArray randomString() { QByteArray data; data.reserve(128); #if QT_VERSION >= 0x040700 data.append(QByteArray::number(QDateTime::currentMSecsSinceEpoch())); #...
17.782918
88
0.618971
WebWorksCollection
373221d575996760a4e03ecf2738d41cff5db1e7
628
cpp
C++
Data Structures Using C++, Second Edition, D.S. Malik/Chapter 1 - SOFTWARE ENGINEERING PRINCIPLES AND C++ CLASSES/Software Development Phase/pre-1.cpp
jesushilarioh/data-structures-and-algorithms
6c519f81920371a86566a77b4b57995747e71c64
[ "MIT" ]
null
null
null
Data Structures Using C++, Second Edition, D.S. Malik/Chapter 1 - SOFTWARE ENGINEERING PRINCIPLES AND C++ CLASSES/Software Development Phase/pre-1.cpp
jesushilarioh/data-structures-and-algorithms
6c519f81920371a86566a77b4b57995747e71c64
[ "MIT" ]
null
null
null
Data Structures Using C++, Second Edition, D.S. Malik/Chapter 1 - SOFTWARE ENGINEERING PRINCIPLES AND C++ CLASSES/Software Development Phase/pre-1.cpp
jesushilarioh/data-structures-and-algorithms
6c519f81920371a86566a77b4b57995747e71c64
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; // Precondition: The value of inches must be nonnegative. // Postcondition: If the value of inches is < 0, the // function returns -1.0; otherwise, the function // returns the equivalent length in centimeters. double inchesToCentimeters(double inches) { if (inches...
23.259259
69
0.621019
jesushilarioh
373243be3a0f0bb7946ab34f880cdbd482e9e951
1,007
hpp
C++
XmlInterface.hpp
rafaelgc/EasyReceipt
c4dae474fff0bba14f0f64ff485e3e3e19a9f399
[ "MIT" ]
1
2021-07-12T06:36:10.000Z
2021-07-12T06:36:10.000Z
XmlInterface.hpp
rafaelgc/SplitQt
c4dae474fff0bba14f0f64ff485e3e3e19a9f399
[ "MIT" ]
null
null
null
XmlInterface.hpp
rafaelgc/SplitQt
c4dae474fff0bba14f0f64ff485e3e3e19a9f399
[ "MIT" ]
null
null
null
#ifndef XMLINTERFACE_HPP #define XMLINTERFACE_HPP #include <QMessageBox> #include <QInputDialog> #include <QFileDialog> #include "Economy/TicketContainer.hpp" #include "Economy/Ticket.hpp" #include "Persistence/XmlExporter.hpp" #include "Persistence/XmlImporter.hpp" #include "Config.hpp" #include "TicketLoadedListene...
24.560976
84
0.754717
rafaelgc
373ad04fad47d05df1c6c5b5d2d61046989670c6
588
cpp
C++
atcoder/abc082/C/main.cpp
xirc/cp-algorithm
89c67cff2f00459c5bb020ab44bff5ae419a1728
[ "Apache-2.0" ]
8
2020-12-23T07:54:53.000Z
2021-11-23T02:46:35.000Z
atcoder/abc082/C/main.cpp
xirc/cp-algorithm
89c67cff2f00459c5bb020ab44bff5ae419a1728
[ "Apache-2.0" ]
1
2020-11-07T13:22:29.000Z
2020-12-20T12:54:00.000Z
atcoder/abc082/C/main.cpp
xirc/cp-algorithm
89c67cff2f00459c5bb020ab44bff5ae419a1728
[ "Apache-2.0" ]
1
2021-01-16T03:40:10.000Z
2021-01-16T03:40:10.000Z
#include <bits/stdc++.h> using namespace std; int N; vector<int> A; int solve() { map<int,int> M; for (auto ai : A) { ++M[ai]; } int ans = 0; for (auto e : M) { auto v = e.first, c = e.second; if (v < c) { ans += (c - v); } else if (v > c) { ...
15.473684
39
0.411565
xirc
373ae37e35d86789d2c4e8f93a36588181b1ac15
85,817
cpp
C++
layers/image.cpp
ViveStudiosCN/vulkan-openvr-sample
5ad8a610ceb1c4592994fd2ebebd5e99c885dccc
[ "Apache-2.0", "BSD-3-Clause" ]
1
2017-06-03T17:30:24.000Z
2017-06-03T17:30:24.000Z
layers/image.cpp
ViveStudiosCN/vulkan-openvr-sample
5ad8a610ceb1c4592994fd2ebebd5e99c885dccc
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
layers/image.cpp
ViveStudiosCN/vulkan-openvr-sample
5ad8a610ceb1c4592994fd2ebebd5e99c885dccc
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
/* Copyright (c) 2015-2016 The Khronos Group Inc. * Copyright (c) 2015-2016 Valve Corporation * Copyright (c) 2015-2016 LunarG, Inc. * Copyright (C) 2015-2016 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 m...
59.512483
132
0.658331
ViveStudiosCN
373b117f6a75884a889f895a41693f0ca8d20e70
1,229
cpp
C++
src/game/Engine.cpp
jumptohistory/jaymod
92d0a0334ac27da94b12280b0b42b615b8813c23
[ "Apache-2.0" ]
25
2016-05-27T11:53:58.000Z
2021-10-17T00:13:41.000Z
src/game/Engine.cpp
jumptohistory/jaymod
92d0a0334ac27da94b12280b0b42b615b8813c23
[ "Apache-2.0" ]
1
2016-07-09T05:25:03.000Z
2016-07-09T05:25:03.000Z
src/game/Engine.cpp
jumptohistory/jaymod
92d0a0334ac27da94b12280b0b42b615b8813c23
[ "Apache-2.0" ]
16
2016-05-28T23:06:50.000Z
2022-01-26T13:47:12.000Z
#include <bgame/impl.h> /////////////////////////////////////////////////////////////////////////////// namespace { static char argbuf[MAX_STRING_CHARS]; } /////////////////////////////////////////////////////////////////////////////// size_t Engine::argc() { return ptr( G_ARGC ); } ///////////////////////...
20.483333
79
0.369406
jumptohistory
373efcd83c6bc392ddaa79202534dfe9e9e1ffeb
10,749
cpp
C++
src/ta_package_generator.cpp
temoto-framework/temoto_action_assistant
4bfc5683c134763b6f0da8a2f0821bb82e657100
[ "Apache-2.0" ]
1
2019-01-24T14:38:51.000Z
2019-01-24T14:38:51.000Z
src/ta_package_generator.cpp
temoto-telerobotics/temoto_action_assistant
4bfc5683c134763b6f0da8a2f0821bb82e657100
[ "Apache-2.0" ]
null
null
null
src/ta_package_generator.cpp
temoto-telerobotics/temoto_action_assistant
4bfc5683c134763b6f0da8a2f0821bb82e657100
[ "Apache-2.0" ]
null
null
null
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright 2019 TeMoto Telerobotics * * 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://w...
37.848592
127
0.704438
temoto-framework
3740c2da7ab325a306aea76d62eeb8a790c628b3
597
cpp
C++
lib/Direction.cpp
prakashutoledo/pacman-cpp
0d3e46bd79970d722bc83fd5aeb52a34ad6c27e5
[ "Apache-2.0" ]
1
2021-04-19T12:10:01.000Z
2021-04-19T12:10:01.000Z
lib/Direction.cpp
prakashutoledo/pacman-cpp
0d3e46bd79970d722bc83fd5aeb52a34ad6c27e5
[ "Apache-2.0" ]
null
null
null
lib/Direction.cpp
prakashutoledo/pacman-cpp
0d3e46bd79970d722bc83fd5aeb52a34ad6c27e5
[ "Apache-2.0" ]
null
null
null
#include "Direction.h" string Direction::String() { stringstream result; result << "X: " << x << " Y: " << y << " "; return result.str(); } Direction* Direction::GetRandomly(double min_abs) { Direction *new_obj = new Direction(); new_obj->SetRandomly(min_abs); return ...
19.258065
51
0.536013
prakashutoledo
37602fbe5eb07598c10c0661ea94e5507ae8dd8e
11,346
cpp
C++
XPowerControl/FirstSetup.cpp
snowpoke/XPowerControl
a5e4493cde4bdc06df30dba69a9460247074fdcd
[ "MIT" ]
4
2021-11-11T17:03:20.000Z
2022-01-14T18:13:41.000Z
XPowerControl/FirstSetup.cpp
snowpoke/XPowerControl
a5e4493cde4bdc06df30dba69a9460247074fdcd
[ "MIT" ]
1
2022-01-14T00:39:49.000Z
2022-01-14T00:39:49.000Z
XPowerControl/FirstSetup.cpp
snowpoke/XPowerControl
a5e4493cde4bdc06df30dba69a9460247074fdcd
[ "MIT" ]
null
null
null
#define _WINSOCK_DEPRECATED_NO_WARNINGS #include "afxdialogex.h" #include "FirstSetup.h" #include "FirstSetupDlg2.h" #include "FirstSetupDlg3.h" #include "FirstSetupDlg4.h" #include "wstring_transform.h" #include "TokenRetriever.h" #include "Version.h" #include <memory> #include <iostream> #include <string> #include <c...
38.20202
890
0.681738
snowpoke
376321fc2ec835fbfc84816e748a90c2b50a0e89
646
hpp
C++
libs/renderer/include/sge/renderer/texture/scoped_volume_lock.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
2
2016-01-27T13:18:14.000Z
2018-05-11T01:11:32.000Z
libs/renderer/include/sge/renderer/texture/scoped_volume_lock.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
null
null
null
libs/renderer/include/sge/renderer/texture/scoped_volume_lock.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
3
2018-05-11T01:11:34.000Z
2021-04-24T19:47:45.000Z
// Copyright Carl Philipp Reh 2006 - 2019. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef SGE_RENDERER_TEXTURE_SCOPED_VOLUME_LOCK_HPP_INCLUDED #define SGE_RENDERER_TEXTURE_SCOPED_VO...
38
73
0.803406
cpreh
3766313757ecf2bfeabf5864df8634b6c4924128
304
hpp
C++
include/BeatMap.hpp
thejsa/rhythm-run
ab11f97e7552c217bfa4a8392ec96aadf0f9f6b1
[ "CC-BY-3.0" ]
1
2022-02-01T19:33:21.000Z
2022-02-01T19:33:21.000Z
include/BeatMap.hpp
thejsa/rhythm-run
ab11f97e7552c217bfa4a8392ec96aadf0f9f6b1
[ "CC-BY-3.0" ]
null
null
null
include/BeatMap.hpp
thejsa/rhythm-run
ab11f97e7552c217bfa4a8392ec96aadf0f9f6b1
[ "CC-BY-3.0" ]
null
null
null
/* * Rhythm Run for Nintendo 3DS * Lauren Kelly, 2021 */ #pragma once #include <deque> #include <fstream> #include <iostream> class BeatMap { public: float bpm = 150; std::deque<long> beats; BeatMap() {}; BeatMap(std::ifstream& a_file); long peekBeat(); long popBeat(); };
13.818182
35
0.621711
thejsa
376846471bf98a465d05a96852d9b1522f7795af
10,279
cpp
C++
src/qt/qtbase/tests/auto/widgets/graphicsview/qgraphicspolygonitem/tst_qgraphicspolygonitem.cpp
power-electro/phantomjs-Gohstdriver-DIY-openshift
a571d301a9658a4c1b524d07e15658b45f8a0579
[ "BSD-3-Clause" ]
1
2020-04-30T15:47:35.000Z
2020-04-30T15:47:35.000Z
src/qt/qtbase/tests/auto/widgets/graphicsview/qgraphicspolygonitem/tst_qgraphicspolygonitem.cpp
power-electro/phantomjs-Gohstdriver-DIY-openshift
a571d301a9658a4c1b524d07e15658b45f8a0579
[ "BSD-3-Clause" ]
null
null
null
src/qt/qtbase/tests/auto/widgets/graphicsview/qgraphicspolygonitem/tst_qgraphicspolygonitem.cpp
power-electro/phantomjs-Gohstdriver-DIY-openshift
a571d301a9658a4c1b524d07e15658b45f8a0579
[ "BSD-3-Clause" ]
null
null
null
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the test suite of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding valid commercia...
30.055556
120
0.716704
power-electro
37749d961f01c43bf3172501e515b69ebf892a3c
2,808
cpp
C++
gddadrv/extrapi.cpp
SiZiOUS/wcegdda
3c003e2e3d9a7f128c87ebbba540ac247a02fd39
[ "MIT" ]
4
2018-04-08T14:48:52.000Z
2020-03-10T19:55:02.000Z
gddadrv/extrapi.cpp
SiZiOUS/wcegdda
3c003e2e3d9a7f128c87ebbba540ac247a02fd39
[ "MIT" ]
null
null
null
gddadrv/extrapi.cpp
SiZiOUS/wcegdda
3c003e2e3d9a7f128c87ebbba540ac247a02fd39
[ "MIT" ]
2
2018-03-25T17:32:11.000Z
2018-08-23T15:41:10.000Z
#include "extrapi.hpp" /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Function: StrStr Description: Finds the first occurrence of a substring within a string. The comparison is case sensitive. Arguments: LPCTSTR lpFirst - Address of the string being searched. LPCTSTR ...
22.464
99
0.605769
SiZiOUS
3779527e6930d3d8605ce0926ea65da5acf8ca8d
1,485
hpp
C++
include/eve/module/real/core/function/regular/simd/arm/neon/refine_rec.hpp
orao/eve
a8bdc6a9cab06d905e8749354cde63776ab76846
[ "MIT" ]
null
null
null
include/eve/module/real/core/function/regular/simd/arm/neon/refine_rec.hpp
orao/eve
a8bdc6a9cab06d905e8749354cde63776ab76846
[ "MIT" ]
null
null
null
include/eve/module/real/core/function/regular/simd/arm/neon/refine_rec.hpp
orao/eve
a8bdc6a9cab06d905e8749354cde63776ab76846
[ "MIT" ]
null
null
null
//================================================================================================== /** EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT **/ //================================================================================================== #...
36.219512
100
0.506397
orao
37804293d66a8519f002ff1a111e65f7c9fbc8a2
9,345
cpp
C++
Graph.cpp
taniho0707/libmouse
a8ea7ac0a54d798d2010e594a7f60c5af6cbbf1d
[ "MIT" ]
null
null
null
Graph.cpp
taniho0707/libmouse
a8ea7ac0a54d798d2010e594a7f60c5af6cbbf1d
[ "MIT" ]
null
null
null
Graph.cpp
taniho0707/libmouse
a8ea7ac0a54d798d2010e594a7f60c5af6cbbf1d
[ "MIT" ]
null
null
null
#include "Graph.h" using namespace std; Graph::Graph() : WEIGHT_STRAIGHT(90), WEIGHT_DIAGO(63) { nodes = new std::array<Node*, 1986>; for (int i=0; i<(1984+2); ++i) { nodes->at(i) = new Node(i); } resetCosts(); } Graph::~Graph(){ for (int i=0; i<(1984+2); ++i) { delete nodes->at(i); } delete nodes; } ...
29.021739
112
0.617335
taniho0707
3782003357d5a0d68c01be2606319991802725a7
3,288
hpp
C++
src/configure/lua/Type.hpp
hotgloupi/configure
888cf725c93df5a1cf01794cc0a581586a82855c
[ "BSD-3-Clause" ]
1
2015-11-13T10:37:35.000Z
2015-11-13T10:37:35.000Z
src/configure/lua/Type.hpp
hotgloupi/configure
888cf725c93df5a1cf01794cc0a581586a82855c
[ "BSD-3-Clause" ]
19
2015-02-10T17:18:58.000Z
2015-07-11T11:31:08.000Z
src/configure/lua/Type.hpp
hotgloupi/configure
888cf725c93df5a1cf01794cc0a581586a82855c
[ "BSD-3-Clause" ]
null
null
null
#pragma once #include "State.hpp" #include "store_exception.hpp" #include <configure/error.hpp> #include <boost/units/detail/utility.hpp> #include <functional> namespace configure { namespace lua { namespace convert { template<typename T> inline T& to_ref(T& value) { return value; } template<typename T> ...
22.675862
87
0.630474
hotgloupi
37889071201521bff9d3155ea996b928e481dd1e
511
cpp
C++
src/s2mJointIntraBone.cpp
CamWilhelm/biorbd
67d36e77d90cc09aa748c3acf2c2bdff5065d3c9
[ "MIT" ]
null
null
null
src/s2mJointIntraBone.cpp
CamWilhelm/biorbd
67d36e77d90cc09aa748c3acf2c2bdff5065d3c9
[ "MIT" ]
null
null
null
src/s2mJointIntraBone.cpp
CamWilhelm/biorbd
67d36e77d90cc09aa748c3acf2c2bdff5065d3c9
[ "MIT" ]
null
null
null
#define BIORBD_API_EXPORTS #include "../include/s2mJointIntraBone.h" s2mJointIntraBone::s2mJointIntraBone() : Joint() { setType(); //ctor } s2mJointIntraBone::s2mJointIntraBone(RigidBodyDynamics::JointType joint_type) : Joint(joint_type){ setType(); } s2mJointIntraBone::s2mJointIntraBone(Ri...
23.227273
119
0.714286
CamWilhelm
378996174b6f92cff6b5a2057a01377928d7b9c4
1,542
hpp
C++
test/node-gdal-async/src/utils/warp_options.hpp
mmomtchev/yatag
37802e760a33939b65ceaa4379634529d0dc0092
[ "0BSD" ]
42
2021-03-26T17:34:52.000Z
2022-03-18T14:15:31.000Z
test/node-gdal-async/src/utils/warp_options.hpp
mmomtchev/yatag
37802e760a33939b65ceaa4379634529d0dc0092
[ "0BSD" ]
29
2021-06-03T14:24:01.000Z
2022-03-23T15:43:58.000Z
test/node-gdal-async/src/utils/warp_options.hpp
mmomtchev/yatag
37802e760a33939b65ceaa4379634529d0dc0092
[ "0BSD" ]
8
2021-05-14T19:26:37.000Z
2022-03-21T13:44:42.000Z
#ifndef __WARP_OPTIONS_H__ #define __WARP_OPTIONS_H__ // node #include <node.h> // nan #include "../nan-wrapper.h" // gdal #include <gdal_priv.h> #include <gdalwarper.h> #include "../gdal_dataset.hpp" #include "number_list.hpp" #include "string_list.hpp" using namespace v8; namespace node_gdal { // A class for ...
18.804878
76
0.672503
mmomtchev
378dec74cbc6fe09bcd5fdb39d8363a5d569ee54
18,593
cpp
C++
Extern/mssdk_dx7/samples/Multimedia/DPlay/src/DPSlots/client.cpp
Ybalrid/orbiter
7bed82f845ea8347f238011367e07007b0a24099
[ "MIT" ]
1,040
2021-07-27T12:12:06.000Z
2021-08-02T14:24:49.000Z
Extern/mssdk_dx7/samples/Multimedia/DPlay/src/DPSlots/client.cpp
Ybalrid/orbiter
7bed82f845ea8347f238011367e07007b0a24099
[ "MIT" ]
20
2021-07-27T12:25:22.000Z
2021-08-02T12:22:19.000Z
Extern/mssdk_dx7/samples/Multimedia/DPlay/src/DPSlots/client.cpp
Ybalrid/orbiter
7bed82f845ea8347f238011367e07007b0a24099
[ "MIT" ]
71
2021-07-27T14:19:49.000Z
2021-08-02T05:51:52.000Z
//----------------------------------------------------------------------------- // File: Client.cpp // // Desc: Slot machine client DirectPlay. // // Copyright (C) 1996-1999 Microsoft Corporation. All Rights Reserved. //----------------------------------------------------------------------------- #include <windows.h> ...
31.248739
102
0.500834
Ybalrid
378df4622128c9a616d54f2f47b4ba413121e0c7
9,065
cpp
C++
dsp++/src/arch/x86/sse.cpp
andrzejc/dsp-
fd39d2395a37ade36e3b551d261de0177b78296b
[ "MIT" ]
null
null
null
dsp++/src/arch/x86/sse.cpp
andrzejc/dsp-
fd39d2395a37ade36e3b551d261de0177b78296b
[ "MIT" ]
null
null
null
dsp++/src/arch/x86/sse.cpp
andrzejc/dsp-
fd39d2395a37ade36e3b551d261de0177b78296b
[ "MIT" ]
null
null
null
#include <dsp++/platform.h> #ifdef DSP_ARCH_FAMILY_X86 #include <algorithm> #include <dsp++/simd.h> #include "sse.h" #include "sse_utils.h" #include <xmmintrin.h> void* dsp::simd::detail::x86_sse_alloc(int size, int align) { return _mm_malloc(size, align); } void dsp::simd::detail::x86_sse_free(void *p) { _mm_fr...
29.241935
145
0.615996
andrzejc
378e1170828fea2214614aa5942e6ade3016e53f
5,024
hpp
C++
PlayRho/Dynamics/Joints/FunctionalJointVisitor.hpp
ivorne/PlayRho
6ef036f46cd0c901f174f944ce40d56ec052248e
[ "Zlib" ]
null
null
null
PlayRho/Dynamics/Joints/FunctionalJointVisitor.hpp
ivorne/PlayRho
6ef036f46cd0c901f174f944ce40d56ec052248e
[ "Zlib" ]
null
null
null
PlayRho/Dynamics/Joints/FunctionalJointVisitor.hpp
ivorne/PlayRho
6ef036f46cd0c901f174f944ce40d56ec052248e
[ "Zlib" ]
null
null
null
/* * Copyright (c) 2017 Louis Langholtz https://github.com/louis-langholtz/PlayRho * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this...
39.873016
86
0.671377
ivorne
3790d94c9ddbd8c850a24caac5c31df82b0b92c1
482
cpp
C++
main.cpp
dominikbelter/stdThreadExamples
9120beb27a1ffb42223b52362c894872d072f200
[ "MIT" ]
null
null
null
main.cpp
dominikbelter/stdThreadExamples
9120beb27a1ffb42223b52362c894872d072f200
[ "MIT" ]
null
null
null
main.cpp
dominikbelter/stdThreadExamples
9120beb27a1ffb42223b52362c894872d072f200
[ "MIT" ]
null
null
null
#include <thread> #include <iostream> int main() { try { std::cout << "Thread examples. Run demo programs:\n"; std::cout << "threads_demo - single thread\n"; std::cout << "async_demo - asynchronous demo\n"; std::cout << "false_sharing_demo - false sharing demo\n"; std::cout ...
25.368421
65
0.556017
dominikbelter
3791bf11e977b00f496e4eee16b400c2a8151c1e
1,121
hpp
C++
include/RadonFramework/IO/Decoders/ImageDecoder.hpp
tak2004/RF_UI
848518a6defc6bf871f8cd306d6bd5d486ee401f
[ "Apache-2.0" ]
null
null
null
include/RadonFramework/IO/Decoders/ImageDecoder.hpp
tak2004/RF_UI
848518a6defc6bf871f8cd306d6bd5d486ee401f
[ "Apache-2.0" ]
null
null
null
include/RadonFramework/IO/Decoders/ImageDecoder.hpp
tak2004/RF_UI
848518a6defc6bf871f8cd306d6bd5d486ee401f
[ "Apache-2.0" ]
null
null
null
#ifndef RF_IO_DECODERS_IMAGEDECODER_HPP #define RF_IO_DECODERS_IMAGEDECODER_HPP #if _MSC_VER > 1000 #pragma once #endif #include <RadonFramework/Drawing/PixelFormat.hpp> #include <RadonFramework/IO/Decoder.hpp> #include <RadonFramework/Memory/AutoPointerArray.hpp> namespace RadonFramework::Drawing { class Image; } n...
24.369565
66
0.790366
tak2004
3792a28db32c68e4ad8f2e598277e288e4b51fb4
7,556
cpp
C++
estimation/test/test_srukf_imu7z3q_linux.cpp
blobrobots/libs
cc11f56bc4e1112033e8b7352e5653f98f1bfc13
[ "MIT" ]
1
2015-10-21T14:36:43.000Z
2015-10-21T14:36:43.000Z
estimation/test/test_srukf_imu7z3q_linux.cpp
blobrobots/libs
cc11f56bc4e1112033e8b7352e5653f98f1bfc13
[ "MIT" ]
null
null
null
estimation/test/test_srukf_imu7z3q_linux.cpp
blobrobots/libs
cc11f56bc4e1112033e8b7352e5653f98f1bfc13
[ "MIT" ]
null
null
null
/********* blob robotics 2014 ********* * title: test_linux.cpp * brief: test for ukf library (linux) * author: adrian jimenez-gonzalez * e-mail: blob.robotics@gmail.com /*************************************/ #include <iostream> #include <sstream> #include <fstream> #include <math.h> #include <blob/math.h> #i...
29.400778
97
0.426284
blobrobots
3794edcf7df1f9337c3a59405d7b01c19ac47473
27,441
cpp
C++
EventManager.cpp
fredenigma/VesselBuilder1
4f332ec4e6fa80e1a63d8d920bb50e033c5b67f6
[ "MIT" ]
null
null
null
EventManager.cpp
fredenigma/VesselBuilder1
4f332ec4e6fa80e1a63d8d920bb50e033c5b67f6
[ "MIT" ]
null
null
null
EventManager.cpp
fredenigma/VesselBuilder1
4f332ec4e6fa80e1a63d8d920bb50e033c5b67f6
[ "MIT" ]
null
null
null
#include "VesselBuilder1.h" #include "DialogControl.h" #include "EventManager.h" #include "MeshManager.h" #include "AnimationManager.h" #include "MET.h" #include "ConfigurationManager.h" #include <Windows.h> #pragma comment (lib, "winmm.lib") Event::Event(VesselBuilder1 *_VB1) { VB1 = _VB1; Trigger.Type = TRIGGER::...
24.479037
245
0.698845
fredenigma
3794faa7d3354e109bf0ec34929b8c36b94d2603
1,249
cpp
C++
1828. Queries on Number of Points Inside a Circle/solution.cpp
ChrisKonstantinou/leetcode
f5ff58e4040a2352053c9db6106da3d94a3cf1e5
[ "MIT" ]
null
null
null
1828. Queries on Number of Points Inside a Circle/solution.cpp
ChrisKonstantinou/leetcode
f5ff58e4040a2352053c9db6106da3d94a3cf1e5
[ "MIT" ]
7
2022-02-20T14:18:22.000Z
2022-03-13T20:29:06.000Z
1828. Queries on Number of Points Inside a Circle/solution.cpp
ChrisKonstantinou/leetcode
f5ff58e4040a2352053c9db6106da3d94a3cf1e5
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <math.h> using namespace std; class Solution { public: bool isInside(vector<int>& point, vector<int>& circle) { // point[0] = x coord, point[1] = y coord // circle[0] = x center coord, circle[1] = y circle coord, circle[2] = radius ...
27.755556
91
0.52522
ChrisKonstantinou
379aa88d0fd8b835dfac8525c194d99f492b523a
877
cpp
C++
Lavio/Lavio/Source/World.cpp
landon912/Lavio
c726f43ed98f630d68ea6bc234f367b67578c918
[ "MIT" ]
1
2021-04-29T12:43:59.000Z
2021-04-29T12:43:59.000Z
Lavio/Lavio/Source/World.cpp
landon912/Lavio
c726f43ed98f630d68ea6bc234f367b67578c918
[ "MIT" ]
null
null
null
Lavio/Lavio/Source/World.cpp
landon912/Lavio
c726f43ed98f630d68ea6bc234f367b67578c918
[ "MIT" ]
null
null
null
// **************************************** Lavio Engine **************************************** // **************************** Copyright (c) 2017 All Rights Reserved ************************** // ***************************** Landon Kirk (landonaddison@yahoo.com) ************************** #include "World.h" #inclu...
25.057143
97
0.549601
landon912
379f04c5eedbb1337c257086c7490d6ab37b31f1
240
cpp
C++
qscoj/The 16th UESTC Programming Contest Warmup # 2/data.cpp
emengdeath/acmcode
cc1b0e067464e754d125856004a991d6eb92a2cd
[ "MIT" ]
null
null
null
qscoj/The 16th UESTC Programming Contest Warmup # 2/data.cpp
emengdeath/acmcode
cc1b0e067464e754d125856004a991d6eb92a2cd
[ "MIT" ]
null
null
null
qscoj/The 16th UESTC Programming Contest Warmup # 2/data.cpp
emengdeath/acmcode
cc1b0e067464e754d125856004a991d6eb92a2cd
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; int main(){ // freopen("j.in","w",stdout); srand((int)time(0)); int n=100; cout<<n<<endl; for (int i=1;i<=n;i++){ int x=rand()%10000; // if (rand()&1)x=-x; cout<<x<<' '; } return 0; }
16
30
0.545833
emengdeath
37a053f8b73053329a2969d5247bcc914ff93211
3,255
cpp
C++
src/autowiring/test/DtorCorrectnessTest.cpp
CaseyCarter/autowiring
48e95a71308318c8ffb7ed1348e034fd9110f70c
[ "Apache-2.0" ]
87
2015-01-18T00:43:06.000Z
2022-02-11T17:40:50.000Z
src/autowiring/test/DtorCorrectnessTest.cpp
CaseyCarter/autowiring
48e95a71308318c8ffb7ed1348e034fd9110f70c
[ "Apache-2.0" ]
274
2015-01-03T04:50:49.000Z
2021-03-08T09:01:09.000Z
src/autowiring/test/DtorCorrectnessTest.cpp
CaseyCarter/autowiring
48e95a71308318c8ffb7ed1348e034fd9110f70c
[ "Apache-2.0" ]
15
2015-09-30T20:58:43.000Z
2020-12-19T21:24:56.000Z
// Copyright (C) 2012-2018 Leap Motion, Inc. All rights reserved. #include "stdafx.h" #include <autowiring/CoreThread.h> #include ATOMIC_HEADER using namespace std; class CtorDtorListener; template<int i> class MyCtorDtorListenerN; class DtorCorrectnessTest : public testing::Test { public: DtorCorrectnessTest(vo...
26.463415
140
0.745008
CaseyCarter
37a05ea2d6f3a57b95a6bdf3ad31ea6489f607a5
1,350
cpp
C++
dynamic_programming/basic/codeforces/F1363B/Solution.cpp
ashtishad/problem-solving
5dfb71b04c2334c2cce53afd089ae1634b7e8100
[ "MIT" ]
17
2020-11-12T17:41:41.000Z
2021-10-01T13:19:42.000Z
dynamic_programming/basic/codeforces/F1363B/Solution.cpp
ashtishad/problem-solving
5dfb71b04c2334c2cce53afd089ae1634b7e8100
[ "MIT" ]
15
2019-09-23T06:33:47.000Z
2020-06-04T18:55:45.000Z
dynamic_programming/basic/codeforces/F1363B/Solution.cpp
ashtishad/problem-solving
5dfb71b04c2334c2cce53afd089ae1634b7e8100
[ "MIT" ]
16
2019-09-21T23:19:58.000Z
2020-06-18T07:26:39.000Z
// problem name: Subsequence Hate // problem link: https://codeforces.com/contest/1363/problem/B // contest link: https://codeforces.com/contest/1363 // time: (?) // author: reyad // other_tags: data structures, brute force, strings, implementation // difficulty_level: beginner #include <bits/stdc++.h> ...
25
79
0.508889
ashtishad
37a1124543c026461cc4d855173c2bf58440d67b
5,716
cpp
C++
IndieLib/tutorials/basic/03_IND_Image/Tutorial03.cpp
DarthMike/indielib-crossplatform
473a589ae050b6d1c274cf58adf08731e63ae870
[ "Zlib" ]
29
2015-03-05T08:11:23.000Z
2020-11-11T08:27:22.000Z
IndieLib/tutorials/basic/03_IND_Image/Tutorial03.cpp
PowerOlive/indielib-crossplatform
473a589ae050b6d1c274cf58adf08731e63ae870
[ "Zlib" ]
1
2019-04-03T18:59:01.000Z
2019-04-14T11:46:45.000Z
IndieLib/tutorials/basic/03_IND_Image/Tutorial03.cpp
PowerOlive/indielib-crossplatform
473a589ae050b6d1c274cf58adf08731e63ae870
[ "Zlib" ]
9
2015-03-05T08:17:10.000Z
2021-08-09T07:15:37.000Z
/***************************************************************************************** * Desc: Tutorial a) 03 Ind_Image *****************************************************************************************/ /*********************************** The zlib License ************************************ * * Copyr...
37.116883
102
0.675297
DarthMike
37a112fa7652063fbe656f38c8492f2670566def
23,614
cpp
C++
test/test.cpp
bb107/Certificate
161cbf04132a437718a338f378672cfd0010c244
[ "Apache-2.0" ]
2
2019-11-20T18:23:04.000Z
2020-09-23T03:14:19.000Z
test/test.cpp
bb107/Certificate
161cbf04132a437718a338f378672cfd0010c244
[ "Apache-2.0" ]
null
null
null
test/test.cpp
bb107/Certificate
161cbf04132a437718a338f378672cfd0010c244
[ "Apache-2.0" ]
null
null
null
#include "../Certificate/stdafx.h" #include <cstdio> #pragma warning(disable:4996) LPCSTR ekus[] = { szOID_PKIX_KP_SERVER_AUTH, szOID_PKIX_KP_CLIENT_AUTH, szOID_PKIX_KP_CODE_SIGNING, szOID_PKIX_KP_EMAIL_PROTECTION, szOID_PKIX_KP_IPSEC_END_SYSTEM, szOID_PKIX_KP_IPSEC_TUNNEL, szOID_PKIX_KP_IPSEC_USER, szOID_PKIX_KP_TIME...
30.119898
151
0.76425
bb107
37ad0e0fc07e22114787a54cd5df7e28c3de5468
1,441
cpp
C++
networklib/src/request.cpp
zina1995/Twitter-API-C-Library
87b29c63b89be6feb05adbe05ebed0213aa67f9b
[ "MIT" ]
null
null
null
networklib/src/request.cpp
zina1995/Twitter-API-C-Library
87b29c63b89be6feb05adbe05ebed0213aa67f9b
[ "MIT" ]
null
null
null
networklib/src/request.cpp
zina1995/Twitter-API-C-Library
87b29c63b89be6feb05adbe05ebed0213aa67f9b
[ "MIT" ]
null
null
null
#include <networklib/request.hpp> #include <ostream> #include <sstream> #include <string> #include <networklib/detail/encode.hpp> namespace network { auto to_string(Request const& x) -> std::string { constexpr char const* CR = "\r\n"; auto encoded_body = detail::key_value_encode(x.messages); auto resul...
27.711538
76
0.650243
zina1995
37ad35a16ede8eb936bcc03102047f13a9632826
1,848
cpp
C++
src/format.cpp
SusannaMaria/CppND-System-Monitor-Project-Updated
a07c51465107c38c51fb7ee12122b87068d9c7e0
[ "MIT" ]
null
null
null
src/format.cpp
SusannaMaria/CppND-System-Monitor-Project-Updated
a07c51465107c38c51fb7ee12122b87068d9c7e0
[ "MIT" ]
null
null
null
src/format.cpp
SusannaMaria/CppND-System-Monitor-Project-Updated
a07c51465107c38c51fb7ee12122b87068d9c7e0
[ "MIT" ]
null
null
null
/** * @file format.cpp * @author Susanna Maria, David Silver * @brief Implementation of Helper function to print out Strings of monitor in * NCurses UI * @version 1.0 * @date 2020-06-21 * * @copyright MIT License * */ #include "format.h" #include <iomanip> #include <sstream> #include <string> using namespac...
24
79
0.645563
SusannaMaria
37b112b16b98220f644b2b135a7a83815ee1630b
2,008
cpp
C++
main.cpp
chenillax/E4C_Challenge_Carbozer
3c23b9f106d6b148b84ff2af7e87f8a4ece8b771
[ "Apache-2.0" ]
null
null
null
main.cpp
chenillax/E4C_Challenge_Carbozer
3c23b9f106d6b148b84ff2af7e87f8a4ece8b771
[ "Apache-2.0" ]
null
null
null
main.cpp
chenillax/E4C_Challenge_Carbozer
3c23b9f106d6b148b84ff2af7e87f8a4ece8b771
[ "Apache-2.0" ]
null
null
null
#include <cstdio> #include <cstdlib> #include <iostream> #include <string> #include "user.hpp" #include "datacenter.hpp" #include "view.hpp" #include "video.hpp" int main(){ //First Example : Sylvain watching Squeezie's FAQ DataCenter datacenter = DataCenter(); std::string name_video = "CECI EST UNE FOIRE ...
51.487179
315
0.669323
chenillax
37b4f8a260b833543e131848f43871ed9cfae0fd
2,351
hpp
C++
src/opengl/glengine/MenuItem.hpp
Sebanisu/Field-Map-Editor
2f37986459785a78766de34e38fc3e21db8b6f14
[ "Unlicense" ]
null
null
null
src/opengl/glengine/MenuItem.hpp
Sebanisu/Field-Map-Editor
2f37986459785a78766de34e38fc3e21db8b6f14
[ "Unlicense" ]
66
2021-09-27T23:58:02.000Z
2022-01-10T20:41:36.000Z
src/opengl/glengine/MenuItem.hpp
Sebanisu/Field-Map-Editor
2f37986459785a78766de34e38fc3e21db8b6f14
[ "Unlicense" ]
null
null
null
// // Created by pcvii on 11/29/2021. // #ifndef MYPROJECT_MenuItem_HPP #define MYPROJECT_MenuItem_HPP #include "Event/EventItem.hpp" namespace glengine { class MenuItem { private: class MenuItemConcept { protected: MenuItemConcept() = default; MenuItemConcept(const MenuItemCon...
25.554348
70
0.652063
Sebanisu
37ba15b1ec8e073b656f3d253374420a9ebd6803
1,796
cpp
C++
HDUOJ/3452/dp_tree.cpp
codgician/ACM
391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4
[ "MIT" ]
2
2018-02-14T01:59:31.000Z
2018-03-28T03:30:45.000Z
HDUOJ/3452/dp_tree.cpp
codgician/ACM
391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4
[ "MIT" ]
null
null
null
HDUOJ/3452/dp_tree.cpp
codgician/ACM
391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4
[ "MIT" ]
2
2017-12-30T02:46:35.000Z
2018-03-28T03:30:49.000Z
#include <iostream> #include <cstdio> #include <algorithm> #include <cmath> #include <string> #include <cstring> #include <iomanip> #include <climits> #include <stack> #include <queue> #include <vector> #include <set> #include <map> #include <functional> #include <iterator> #include <cassert> using name...
19.311828
56
0.490535
codgician
37be33dbf8395c489cc1daa664a0908997bcc1bb
185
cpp
C++
zerojudge/a004.cpp
yangszwei/notes
a144981b42fb268832eb69926c0076cc28c82e26
[ "MIT" ]
null
null
null
zerojudge/a004.cpp
yangszwei/notes
a144981b42fb268832eb69926c0076cc28c82e26
[ "MIT" ]
null
null
null
zerojudge/a004.cpp
yangszwei/notes
a144981b42fb268832eb69926c0076cc28c82e26
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int main() { int y; while (cin >> y) { cout << (((y % 4 == 0 && y % 100 != 0) || y % 400 == 0) ? "閏年" : "平年") << endl; } }
18.5
87
0.416216
yangszwei
37bf269a10fe76efc66400ed4c75b58005f56f01
357
cpp
C++
world/source/unit_tests/World_test.cpp
sidav/shadow-of-the-wyrm
747afdeebed885b1a4f7ab42f04f9f756afd3e52
[ "MIT" ]
60
2019-08-21T04:08:41.000Z
2022-03-10T13:48:04.000Z
world/source/unit_tests/World_test.cpp
cleancoindev/shadow-of-the-wyrm
51b23e98285ecb8336324bfd41ebf00f67b30389
[ "MIT" ]
3
2021-03-18T15:11:14.000Z
2021-10-20T12:13:07.000Z
world/source/unit_tests/World_test.cpp
cleancoindev/shadow-of-the-wyrm
51b23e98285ecb8336324bfd41ebf00f67b30389
[ "MIT" ]
8
2019-11-16T06:29:05.000Z
2022-01-23T17:33:43.000Z
#include "gtest/gtest.h" TEST(SW_World_World, serialization_id) { World world; EXPECT_EQ(ClassIdentifier::CLASS_ID_WORLD, world.get_class_identifier()); } TEST(SW_World_World, saveload) { World world, world2; ostringstream ss; world.serialize(ss); istringstream iss(ss.str()); world2.deserialize(iss)...
15.521739
75
0.731092
sidav
37c2a64b88c868bbf773b3640a6d79f75be43a0a
3,518
cpp
C++
test/unittests/lib/parser/test_ParserFuncType.cpp
WasmVM/wass
e35962e1637a1445ab8ad97e5a06ee4d59b49fd7
[ "BSD-3-Clause" ]
null
null
null
test/unittests/lib/parser/test_ParserFuncType.cpp
WasmVM/wass
e35962e1637a1445ab8ad97e5a06ee4d59b49fd7
[ "BSD-3-Clause" ]
null
null
null
test/unittests/lib/parser/test_ParserFuncType.cpp
WasmVM/wass
e35962e1637a1445ab8ad97e5a06ee4d59b49fd7
[ "BSD-3-Clause" ]
null
null
null
#include <gtest/gtest.h> #include <any> #include <vector> #include <Error.hpp> #include <structure/FuncType.hpp> #include <parser/ParserContext.hpp> #include <parser/ParserFuncType.hpp> #include <Helper.hpp> TEST(unittest_ParserFuncType, empty){ std::vector<char> data(create_char_vector("(func)")); ParserContext ...
36.268041
93
0.73394
WasmVM
37c44b9eb8e5081e2dff69fae128a98ac4500c9e
5,072
hh
C++
include/GB01BOptrChangeCrossSection.hh
BahHas/VParticles
3548dffdebfde0634b8c1b649a1d6dcacfaf12bb
[ "Unlicense" ]
null
null
null
include/GB01BOptrChangeCrossSection.hh
BahHas/VParticles
3548dffdebfde0634b8c1b649a1d6dcacfaf12bb
[ "Unlicense" ]
null
null
null
include/GB01BOptrChangeCrossSection.hh
BahHas/VParticles
3548dffdebfde0634b8c1b649a1d6dcacfaf12bb
[ "Unlicense" ]
null
null
null
// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration...
47.849057
98
0.581625
BahHas