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
88aa8f8162f404c5188ab4c4539da22493499105
2,286
cpp
C++
PropertiesModule/propertypromise.cpp
HowCanidothis-zz/DevLib
d3d7f4ef7b2b3f1c9559ca6bd56743e5aeff06ee
[ "MIT" ]
null
null
null
PropertiesModule/propertypromise.cpp
HowCanidothis-zz/DevLib
d3d7f4ef7b2b3f1c9559ca6bd56743e5aeff06ee
[ "MIT" ]
null
null
null
PropertiesModule/propertypromise.cpp
HowCanidothis-zz/DevLib
d3d7f4ef7b2b3f1c9559ca6bd56743e5aeff06ee
[ "MIT" ]
1
2020-07-27T02:23:38.000Z
2020-07-27T02:23:38.000Z
#include "propertypromise.h" #include "propertiesscope.h" PropertyPromiseBase::PropertyPromiseBase() : m_isValid([]{ return false; }) { } PropertyPromiseBase::PropertyPromiseBase(const Name& name, const Name& scopeName) { Assign(name, scopeName); } PropertyPromiseBase::PropertyPromiseBase(Prope...
33.617647
127
0.629921
HowCanidothis-zz
88ac3d0c985c0048cd501bd6ff89bf72f1f6a6e0
2,184
cpp
C++
UNIX/UNIXDllLoader.cpp
ddag/mylib
f2275a5a32c6255b41b27036dc792192e85e392c
[ "MIT" ]
1
2019-03-13T14:28:05.000Z
2019-03-13T14:28:05.000Z
UNIX/UNIXDllLoader.cpp
ddag/mylib
f2275a5a32c6255b41b27036dc792192e85e392c
[ "MIT" ]
null
null
null
UNIX/UNIXDllLoader.cpp
ddag/mylib
f2275a5a32c6255b41b27036dc792192e85e392c
[ "MIT" ]
null
null
null
/************************************************************************** Copyright (c) 2003 Donald Gobin 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 t...
42
115
0.71337
ddag
88b182521bc717f41872ea155cebb86332895115
841
hpp
C++
core/include/bind/emu/edi_yank.hpp
pit-ray/win-vind
7386f6f7528d015ce7f1a5ae230d6e63f9492df9
[ "MIT" ]
731
2020-05-07T06:22:59.000Z
2022-03-31T16:36:03.000Z
core/include/bind/emu/edi_yank.hpp
pit-ray/win-vind
7386f6f7528d015ce7f1a5ae230d6e63f9492df9
[ "MIT" ]
67
2020-07-20T19:46:42.000Z
2022-03-31T15:34:47.000Z
core/include/bind/emu/edi_yank.hpp
pit-ray/win-vind
7386f6f7528d015ce7f1a5ae230d6e63f9492df9
[ "MIT" ]
15
2021-01-29T04:49:11.000Z
2022-03-04T22:16:31.000Z
#ifndef _EDI_YANK_HPP #define _EDI_YANK_HPP #include "bind/binded_func_creator.hpp" namespace vind { namespace textanalyze { struct SelRes ; } //Copy struct YankHighlightText : public BindedFuncCreator<YankHighlightText> { explicit YankHighlightText() ; static vo...
27.129032
77
0.636147
pit-ray
88b6d5d42d5d976656c5104f16a125c44678b7f3
1,171
cpp
C++
src/runtime/PolicyRoundRobin.cpp
ixiDev/iris
23514bc1b724597afa880c67355d86efd3e37631
[ "BSD-3-Clause" ]
14
2020-10-15T16:02:24.000Z
2022-02-18T03:50:35.000Z
src/runtime/PolicyRoundRobin.cpp
ixiDev/iris
23514bc1b724597afa880c67355d86efd3e37631
[ "BSD-3-Clause" ]
7
2021-11-05T22:31:58.000Z
2022-03-25T19:56:53.000Z
src/runtime/PolicyRoundRobin.cpp
ixiDev/iris
23514bc1b724597afa880c67355d86efd3e37631
[ "BSD-3-Clause" ]
5
2020-12-13T02:42:22.000Z
2022-03-24T17:46:19.000Z
#include "PolicyRoundRobin.h" #include "Debug.h" #include "Device.h" #include "Scheduler.h" #include "Task.h" #include <stdlib.h> #include <time.h> #include <unistd.h> #include <limits.h> namespace brisbane { namespace rt { PolicyRoundRobin::PolicyRoundRobin(Scheduler* scheduler) { SetScheduler(scheduler); index_...
22.960784
77
0.649872
ixiDev
88b8dc1f5808560321c54ec6ea95566daafef330
9,685
cpp
C++
src/Game.cpp
hellopuza/Minecraft-plus-plus
a5acf2d43775c1bdbe9bf5123de4cf0a7ca17eb4
[ "MIT" ]
1
2021-11-06T17:30:34.000Z
2021-11-06T17:30:34.000Z
src/Game.cpp
hellopuza/Minecraft-plus-plus
a5acf2d43775c1bdbe9bf5123de4cf0a7ca17eb4
[ "MIT" ]
null
null
null
src/Game.cpp
hellopuza/Minecraft-plus-plus
a5acf2d43775c1bdbe9bf5123de4cf0a7ca17eb4
[ "MIT" ]
null
null
null
#include "Game.h" namespace puza { Game::Game() : winsizes_ ({ DEFAULT_WIDTH, DEFAULT_HEIGHT }), window_ (sf::VideoMode(winsizes_.x, winsizes_.y), TITLE_STRING), person_ (DEFAULT_CAMERA_FOV, static_cast<float>(winsizes_.x) / static_cast<float>(winsizes_.y), world...
39.210526
133
0.567579
hellopuza
88ba87e332ef0d567bfe63aa8b3f5c174e020607
313
cpp
C++
exampleStandalone/src/main.cpp
Ant1r/POF
b80210527454484f64003b7a09c8e7f9f8a09ac3
[ "BSD-2-Clause" ]
64
2015-03-26T00:03:34.000Z
2021-12-30T12:27:49.000Z
exampleStandalone/src/main.cpp
Ant1r/POF
b80210527454484f64003b7a09c8e7f9f8a09ac3
[ "BSD-2-Clause" ]
7
2015-03-27T09:26:29.000Z
2021-05-08T22:59:52.000Z
exampleStandalone/src/main.cpp
Ant1r/POF
b80210527454484f64003b7a09c8e7f9f8a09ac3
[ "BSD-2-Clause" ]
7
2015-07-02T11:00:36.000Z
2020-04-05T18:48:38.000Z
#include "ofMain.h" #include "testApp.h" //======================================================================== int main(int argc, char *argv[]){ ofSetupOpenGL(400, 400, OF_WINDOW); ofSetFrameRate(50); testApp *app = new testApp(); app->arguments = vector<string>(argv, argv + argc); ofRunApp(app); }
24.076923
74
0.517572
Ant1r
88bdaf18e502f03eb441f27df478c85350580762
463
hpp
C++
GD4GameWorld/Include/Book/Node/ShapeNode.hpp
Alex-Jay/2d_sfml_game
3872c92d1e17b68c2bf2c78f13e32b2bf80a605a
[ "MIT" ]
1
2018-12-18T12:00:57.000Z
2018-12-18T12:00:57.000Z
GD4GameWorld/Include/Book/Node/ShapeNode.hpp
Alex-Jay/k-arnage_2d_sfml_game
3872c92d1e17b68c2bf2c78f13e32b2bf80a605a
[ "MIT" ]
null
null
null
GD4GameWorld/Include/Book/Node/ShapeNode.hpp
Alex-Jay/k-arnage_2d_sfml_game
3872c92d1e17b68c2bf2c78f13e32b2bf80a605a
[ "MIT" ]
null
null
null
#pragma once #include "Structural/ResourceHolder.hpp" #include "Structural/ResourceIdentifiers.hpp" #include "Node/SceneNode.hpp" #include "SFML/Graphics/RectangleShape.hpp" class ShapeNode : public SceneNode { public: explicit ShapeNode(sf::Color fillColor); void setFillColor(sf::Color color); void setSize(int x,...
23.15
83
0.777538
Alex-Jay
88bfa9e8d2bbcdf1933cdda854f2a40c46256465
1,196
cpp
C++
leetcode/648. Replace Words/s1.cpp
zhuohuwu0603/leetcode_cpp_lzl124631x
6a579328810ef4651de00fde0505934d3028d9c7
[ "Fair" ]
787
2017-05-12T05:19:57.000Z
2022-03-30T12:19:52.000Z
leetcode/648. Replace Words/s1.cpp
aerlokesh494/LeetCode
0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f
[ "Fair" ]
8
2020-03-16T05:55:38.000Z
2022-03-09T17:19:17.000Z
leetcode/648. Replace Words/s1.cpp
aerlokesh494/LeetCode
0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f
[ "Fair" ]
247
2017-04-30T15:07:50.000Z
2022-03-30T09:58:57.000Z
// OJ: https://leetcode.com/problems/replace-words/ // Author: github.com/lzl124631x // Time: O(D + S) where D is size of all contents in dictionary, S is size of all contents in sentence // Space: O(D) class TrieNode { public: TrieNode *next[26] = {}; bool isWord = false; }; class Trie { private: TrieNode ...
27.813953
102
0.522575
zhuohuwu0603
88bfedee72477d207646b1385250a0285624a13a
852
cpp
C++
acm-template/4 Math/Euler.cpp
joshua-xia/noip
0603a75c7be6e9b21fcabbba4260153cf776c32f
[ "Apache-2.0" ]
null
null
null
acm-template/4 Math/Euler.cpp
joshua-xia/noip
0603a75c7be6e9b21fcabbba4260153cf776c32f
[ "Apache-2.0" ]
null
null
null
acm-template/4 Math/Euler.cpp
joshua-xia/noip
0603a75c7be6e9b21fcabbba4260153cf776c32f
[ "Apache-2.0" ]
null
null
null
#### 欧拉函数打表 O(nlog(n)) ``` const int maxn = 1e6+100; int phi[maxn],Prime[maxn]; void init2(int n){ for(int i = 1;i <= n; ++i) phi[i] = i; for(int i = 2;i <= n; ++i){ if(i == phi[i]){ for(int j = i; j <= n; j += i) phi[j] = phi[j]/i*(i-1); } } } ``` 线性筛 O(n) ``` const int maxn = 1e6+100; b...
18.12766
63
0.440141
joshua-xia
88c5c9e3ec6a081a6a21053bb29d0ba0d7c88526
12,274
hpp
C++
H01indexedCSVdatabase/H01indexedCSVdatabaseQuery.hpp
baxterai/H01localConnectome
52118d10edc4d6d5534ee39c43a4db3b588481de
[ "MIT" ]
null
null
null
H01indexedCSVdatabase/H01indexedCSVdatabaseQuery.hpp
baxterai/H01localConnectome
52118d10edc4d6d5534ee39c43a4db3b588481de
[ "MIT" ]
null
null
null
H01indexedCSVdatabase/H01indexedCSVdatabaseQuery.hpp
baxterai/H01localConnectome
52118d10edc4d6d5534ee39c43a4db3b588481de
[ "MIT" ]
null
null
null
/******************************************************************************* * * File Name: H01indexedCSVdatabaseQuery.hpp * Author: Richard Bruce Baxter - Copyright (c) 2021 Baxter AI (baxterai.com) * License: MIT License * Project: H01LocalConnectome * Requirements: requires H01 indexed CSV database to have...
105.810345
819
0.854326
baxterai
88c78ea7ee36d13932a82afa16117718d0baea1d
2,885
cpp
C++
docs/tema4/sesion30.10.20/sable-laser-alumnos.cpp
GabJL/FI2020
2541622ecc2ce4f4db66ae2006006827dac90217
[ "MIT" ]
null
null
null
docs/tema4/sesion30.10.20/sable-laser-alumnos.cpp
GabJL/FI2020
2541622ecc2ce4f4db66ae2006006827dac90217
[ "MIT" ]
null
null
null
docs/tema4/sesion30.10.20/sable-laser-alumnos.cpp
GabJL/FI2020
2541622ecc2ce4f4db66ae2006006827dac90217
[ "MIT" ]
null
null
null
#include <iostream> #include "utils.hpp" using namespace std; int main(){ int color, alto, tipo; limpiarPantalla(); cout << "Crea tu propia sable laser (v1.0)" << endl << endl; // Lectura de la longitud del sable láser // Es un valor entre 4-8 o 0 para indicar que está apagada /// TODO: Usando un do-while repit...
33.941176
93
0.610052
GabJL
88c86b1fcd02b37f6756015b5e74f22fbdd69f98
998
cpp
C++
Kernel/Arch/aarch64/Panic.cpp
Anon1428/serenity
0daf5cc434e7a998da15330bd8b4d46ae1759485
[ "BSD-2-Clause" ]
2
2022-02-16T02:12:38.000Z
2022-02-20T18:40:41.000Z
Kernel/Arch/aarch64/Panic.cpp
Anon1428/serenity
0daf5cc434e7a998da15330bd8b4d46ae1759485
[ "BSD-2-Clause" ]
null
null
null
Kernel/Arch/aarch64/Panic.cpp
Anon1428/serenity
0daf5cc434e7a998da15330bd8b4d46ae1759485
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright (c) 2022, Timon Kruiper <timonkruiper@gmail.com> * * SPDX-License-Identifier: BSD-2-Clause */ #include <Kernel/Arch/Processor.h> #include <Kernel/KSyms.h> #include <Kernel/Panic.h> // FIXME: Merge the code in this file with Kernel/Panic.cpp once the proper abstractions are in place. // Note: This ...
30.242424
104
0.703407
Anon1428
88c987fe8b5fd8e7cc66446b29cf9cac356b8f87
13,678
cpp
C++
Synergy Editor TGC/Synergy Editor/Utilities.cpp
domydev/Dark-Basic-Pro
237fd8d859782cb27b9d5994f3c34bc5372b6c04
[ "MIT" ]
231
2018-01-28T00:06:56.000Z
2022-03-31T21:39:56.000Z
Synergy Editor TGC/Synergy Editor/Utilities.cpp
domydev/Dark-Basic-Pro
237fd8d859782cb27b9d5994f3c34bc5372b6c04
[ "MIT" ]
9
2016-02-10T10:46:16.000Z
2017-12-06T17:27:51.000Z
Synergy Editor TGC/Synergy Editor/Utilities.cpp
domydev/Dark-Basic-Pro
237fd8d859782cb27b9d5994f3c34bc5372b6c04
[ "MIT" ]
66
2018-01-28T21:54:52.000Z
2022-02-16T22:50:57.000Z
#include "StdAfx.h" #include "Utilities.h" #include "Variables.h" #include "Settings.h" // For GoToLine #include "View.h" #include "Doc.h" #include "Synergy Editor.h" WORD Utilities::r; WORD Utilities::c1; WORD Utilities::c2; DWORD Utilities::sum; // Extracts the filename from the fully qualified path CString Utilit...
21.075501
139
0.663036
domydev
88c99948f613446a465273d51fab13dbcb66ac31
3,092
hpp
C++
16th Study/src/expression/SArray.hpp
jongchae/CppTemplateStudy
976b9b8ef0bc899ccc5b7840d2e2f6bc2a9a3757
[ "MIT" ]
84
2017-12-11T04:33:29.000Z
2022-03-27T07:27:06.000Z
16th Study/src/expression/SArray.hpp
jongchae/CppTemplateStudy
976b9b8ef0bc899ccc5b7840d2e2f6bc2a9a3757
[ "MIT" ]
2
2018-04-05T14:26:56.000Z
2018-05-18T13:59:59.000Z
16th Study/src/expression/SArray.hpp
jongchae/CppTemplateStudy
976b9b8ef0bc899ccc5b7840d2e2f6bc2a9a3757
[ "MIT" ]
25
2018-01-13T01:50:32.000Z
2021-05-01T11:05:13.000Z
#pragma once #include <cassert> #include <cstddef> template <typename T> class SArray { private: T *data_; size_t size_; public: /* ---------------------------------------------------------- CONSTRUCTORS ---------------------------------------------------------- */ // CAPACITY CONSTRUCTOR ...
21.929078
69
0.435964
jongchae
88d2473be06db9d59e558dc403d742be6fc61cd6
2,938
cpp
C++
tests/opencl/BlackScholes/oclBlackScholes_gold.cpp
siliconarts/vortex
93232f0e9416779e8a85b08f0a3a8182af30099e
[ "BSD-3-Clause" ]
546
2020-08-17T12:01:13.000Z
2022-03-31T05:59:05.000Z
tests/opencl/BlackScholes/oclBlackScholes_gold.cpp
siliconarts/vortex
93232f0e9416779e8a85b08f0a3a8182af30099e
[ "BSD-3-Clause" ]
34
2020-10-07T15:58:19.000Z
2022-03-29T07:40:50.000Z
tests/opencl/BlackScholes/oclBlackScholes_gold.cpp
siliconarts/vortex
93232f0e9416779e8a85b08f0a3a8182af30099e
[ "BSD-3-Clause" ]
90
2020-09-30T23:02:21.000Z
2022-03-22T09:42:45.000Z
/* * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
31.591398
80
0.487406
siliconarts
88d582ba82ca8fca92ed409d78c66eb510ac2bf7
374
cpp
C++
src/compression.cpp
BertrandKevin/Save-IMU-s-Data-Reach-RTK
5c58081c44e14fb864df39da43879e271baf3a16
[ "MIT" ]
null
null
null
src/compression.cpp
BertrandKevin/Save-IMU-s-Data-Reach-RTK
5c58081c44e14fb864df39da43879e271baf3a16
[ "MIT" ]
null
null
null
src/compression.cpp
BertrandKevin/Save-IMU-s-Data-Reach-RTK
5c58081c44e14fb864df39da43879e271baf3a16
[ "MIT" ]
1
2019-02-28T02:22:52.000Z
2019-02-28T02:22:52.000Z
// // compression.cpp // Wifi-Client // // Created by Kevin Bertrand on 17/07/18. // Copyright © 2018 KevinBertrand. All rights reserved. // #include <stdlib.h> #include <string.h> #include "../includes/getData.h" #include "../includes/MPU9250.h" using namespace std; void compression(string path) { string a...
17
56
0.668449
BertrandKevin
88d878c87839f70b6e026ab2db50355d42362a57
16,623
hpp
C++
src/packet_writer.hpp
epic-astronomy/bifrost
9bc7000ce1b42a55b70dff56a2e03253358ba8eb
[ "BSD-3-Clause" ]
1
2021-05-05T16:20:57.000Z
2021-05-05T16:20:57.000Z
src/packet_writer.hpp
epic-astronomy/bifrost
9bc7000ce1b42a55b70dff56a2e03253358ba8eb
[ "BSD-3-Clause" ]
6
2020-03-18T05:36:54.000Z
2021-12-16T17:34:09.000Z
src/packet_writer.hpp
epic-astronomy/bifrost
9bc7000ce1b42a55b70dff56a2e03253358ba8eb
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2019-2020, The Bifrost Authors. 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 retain the above copyright * notice, this list o...
40.152174
130
0.565843
epic-astronomy
88dbe01ae5e44619dc66952d334d9b42802521b7
10,668
cpp
C++
source/Components/LogicComponent.cpp
dom380/IMAT3606-Coursework-2
36f50b25823cd3170a403a2e2ef50e3019fcd73b
[ "FTL", "Zlib", "Apache-2.0", "MIT" ]
null
null
null
source/Components/LogicComponent.cpp
dom380/IMAT3606-Coursework-2
36f50b25823cd3170a403a2e2ef50e3019fcd73b
[ "FTL", "Zlib", "Apache-2.0", "MIT" ]
null
null
null
source/Components/LogicComponent.cpp
dom380/IMAT3606-Coursework-2
36f50b25823cd3170a403a2e2ef50e3019fcd73b
[ "FTL", "Zlib", "Apache-2.0", "MIT" ]
null
null
null
#include "Components\LogicComponent.h" #include <Scripting\ScriptEngine.h> #include <utils/Utilities.h> LogicComponent::LogicComponent() : Component(ComponentType::LOGIC), updateFunc(luaState), recieveMsgFunc(luaState), params(luaState) { } LogicComponent::LogicComponent(std::weak_ptr<GameObject> owner, std::weak_ptr...
30.135593
247
0.729565
dom380
88e0d00077ed9bea403773f2105b6424c60ac46f
78
cxx
C++
Modules/ThirdParty/VNL/src/vxl/core/vnl/Templates/vnl_matrix_fixed+double.3.6-.cxx
rdsouza10/ITK
07cb23f9866768b5f4ee48ebec8766b6e19efc69
[ "Apache-2.0" ]
3
2019-11-19T09:47:25.000Z
2022-02-24T00:32:31.000Z
Modules/ThirdParty/VNL/src/vxl/core/vnl/Templates/vnl_matrix_fixed+double.3.6-.cxx
rdsouza10/ITK
07cb23f9866768b5f4ee48ebec8766b6e19efc69
[ "Apache-2.0" ]
1
2019-03-18T14:19:49.000Z
2020-01-11T13:54:33.000Z
Modules/ThirdParty/VNL/src/vxl/core/vnl/Templates/vnl_matrix_fixed+double.3.6-.cxx
rdsouza10/ITK
07cb23f9866768b5f4ee48ebec8766b6e19efc69
[ "Apache-2.0" ]
1
2022-02-24T00:32:36.000Z
2022-02-24T00:32:36.000Z
#include <vnl/vnl_matrix_fixed.hxx> VNL_MATRIX_FIXED_INSTANTIATE(double,3,6);
26
41
0.833333
rdsouza10
88e5cc61591e7f785b36d6e6adc0f3bf9be2d790
1,303
cpp
C++
test/realsense/open_cam.cpp
ashikari/MarbleFlow
10d054f1b84ba06c373cde2e759cc4917e765f4e
[ "Unlicense" ]
null
null
null
test/realsense/open_cam.cpp
ashikari/MarbleFlow
10d054f1b84ba06c373cde2e759cc4917e765f4e
[ "Unlicense" ]
null
null
null
test/realsense/open_cam.cpp
ashikari/MarbleFlow
10d054f1b84ba06c373cde2e759cc4917e765f4e
[ "Unlicense" ]
null
null
null
#include <opencv2/opencv.hpp> #include <iostream> #include <librealsense2/rs.hpp> using namespace cv; using namespace rs2; int main() { //Contruct a pipeline which abstracts the device rs2::pipeline pipe; //Create a configuration for configuring the pipeline with a non default profile rs2::config cf...
23.690909
99
0.665388
ashikari
88ef553bea2e7e40094c8b58a1c7078585e51bf2
687
cpp
C++
.LHP/.Lop11/.HSG/.T.Hung/Week 1/11136/11136/11136.cpp
sxweetlollipop2912/MaCode
661d77a2096e4d772fda2b6a7f80c84113b2cde9
[ "MIT" ]
null
null
null
.LHP/.Lop11/.HSG/.T.Hung/Week 1/11136/11136/11136.cpp
sxweetlollipop2912/MaCode
661d77a2096e4d772fda2b6a7f80c84113b2cde9
[ "MIT" ]
null
null
null
.LHP/.Lop11/.HSG/.T.Hung/Week 1/11136/11136/11136.cpp
sxweetlollipop2912/MaCode
661d77a2096e4d772fda2b6a7f80c84113b2cde9
[ "MIT" ]
null
null
null
#include <iostream> #include <algorithm> #include <cstdio> #include <set> #define maxN 1000001 typedef long maxn; typedef long long maxa; typedef std::multiset <maxa> mset_t; maxn day; maxa res; mset_t set; void Process() { res = 0; set.clear(); while (day--) { maxn n; std::cin >> n; maxa a; while (n--) ...
15.976744
58
0.596798
sxweetlollipop2912
88ef70f2e6d9697c9556f5025e9ed811d15e281e
14,814
cpp
C++
examples/clientserver1/client3WAny.cpp
JohanVanslembrouck/corolib
0ebbabfe368c29901bf96ae1d3b6e989e3ff82c9
[ "MIT" ]
1
2021-08-19T13:49:01.000Z
2021-08-19T13:49:01.000Z
examples/clientserver1/client3WAny.cpp
JohanVanslembrouck/corolib
0ebbabfe368c29901bf96ae1d3b6e989e3ff82c9
[ "MIT" ]
null
null
null
examples/clientserver1/client3WAny.cpp
JohanVanslembrouck/corolib
0ebbabfe368c29901bf96ae1d3b6e989e3ff82c9
[ "MIT" ]
null
null
null
/** * @file client3WAny.cpp * @brief * This example illustrates the use of coroutines * in combination with Boost ASIO to implement CommClient. * This example uses 3 CommClient1 objects. * It also uses a wait_any_awaitable type that allows awaiting the completion of 1 of N asychronous operations. * * @author J...
33.591837
111
0.64331
JohanVanslembrouck
88f13baa6426fe695708884f021510015e59e2c2
1,907
hpp
C++
include/vk/descriptor_set.hpp
K1llByte/kazan
8023d23b305ee8d3ef47c3bbfa0baae1a2685689
[ "Apache-2.0" ]
null
null
null
include/vk/descriptor_set.hpp
K1llByte/kazan
8023d23b305ee8d3ef47c3bbfa0baae1a2685689
[ "Apache-2.0" ]
1
2021-12-28T23:50:46.000Z
2021-12-28T23:50:46.000Z
include/vk/descriptor_set.hpp
K1llByte/kazan
8023d23b305ee8d3ef47c3bbfa0baae1a2685689
[ "Apache-2.0" ]
null
null
null
#ifndef KZN_VK_DESCRIPTOR_SET_HPP #define KZN_VK_DESCRIPTOR_SET_HPP #include "vk/device.hpp" namespace kzn::vk { class DescriptorSetLayout { friend class DescriptorSetLayoutBuilder; public: ~DescriptorSetLayout(); VkDescriptorSetLayout vk_descriptor_set_layout() { return vkset_lay...
25.092105
84
0.648663
K1llByte
88f1c26bdf504a987de6f445e4320215d3bd90b4
2,190
cpp
C++
sample/HAIROWorld/controller/TiltCameraJoystickController.cpp
k38-suzuki/hairo-world-plugin
031375812b278d88116f92320d8c5ce74eba7a0a
[ "MIT" ]
5
2020-12-16T22:18:46.000Z
2022-03-26T08:39:51.000Z
sample/HAIROWorld/controller/TiltCameraJoystickController.cpp
k38-suzuki/hairo-world-plugin
031375812b278d88116f92320d8c5ce74eba7a0a
[ "MIT" ]
2
2021-06-29T04:03:15.000Z
2021-06-29T05:46:15.000Z
sample/HAIROWorld/controller/TiltCameraJoystickController.cpp
k38-suzuki/hairo-world-plugin
031375812b278d88116f92320d8c5ce74eba7a0a
[ "MIT" ]
2
2021-06-19T17:11:12.000Z
2021-07-09T06:58:47.000Z
/** TiltCamera Controller @author Kenta Suzuki */ #include <cnoid/Camera> #include <cnoid/EigenUtil> #include <cnoid/Joystick> #include <cnoid/SimpleController> using namespace cnoid; class TiltCameraJoystickController : public SimpleController { SimpleControllerIO* io; Link* turret; double qref; ...
23.548387
78
0.528767
k38-suzuki
88f7cd551b4cdf303bd6566da003e44bdd90a6d9
13,004
cpp
C++
core/impl/render/gl/gl_helper.cpp
auyunli/enhance
ca99530c80b42842e713ed4b62e40d12e56ee24a
[ "BSD-2-Clause" ]
null
null
null
core/impl/render/gl/gl_helper.cpp
auyunli/enhance
ca99530c80b42842e713ed4b62e40d12e56ee24a
[ "BSD-2-Clause" ]
null
null
null
core/impl/render/gl/gl_helper.cpp
auyunli/enhance
ca99530c80b42842e713ed4b62e40d12e56ee24a
[ "BSD-2-Clause" ]
null
null
null
#include <cassert> #include <iostream> #include <cstdio> #include "gl_includes.hpp" #include "gl_helper.hpp" #include "text_read_write.hpp" namespace e2 { namespace render { namespace gl { bool gl_helper::compile_shader_from_string( GLuint * shader, char const * source, GLSLShaderType type ){ bool ret; if( n...
29.091723
139
0.644033
auyunli
88fb5a2514afb24be9e76bef3cc0141b0c002801
3,220
cpp
C++
Blake2/Test/TestUtils.cpp
Steppenwolfe65/Blake2
9444e194323f98bb797816bc774d202276d17243
[ "Intel", "MIT" ]
1
2016-11-09T05:34:58.000Z
2016-11-09T05:34:58.000Z
Blake2/Test/TestUtils.cpp
Steppenwolfe65/Blake2
9444e194323f98bb797816bc774d202276d17243
[ "Intel", "MIT" ]
null
null
null
Blake2/Test/TestUtils.cpp
Steppenwolfe65/Blake2
9444e194323f98bb797816bc774d202276d17243
[ "Intel", "MIT" ]
null
null
null
#include "TestUtils.h" #include "TestException.h" #include "../Blake2/CexDomain.h" #include "../Blake2/CSP.h" #if defined(_WIN32) # include <Windows.h> #else # include <sys/types.h> # include <sys/time.h> #endif #include <algorithm> #include <fstream> #include <iostream> namespace Test { using CEX::Provider::CSP; v...
21.756757
138
0.646273
Steppenwolfe65
88fc192fb39fb2a1b8d8c6bb70ed35df34bdec02
177
hpp
C++
NWNXLib/API/Mac/API/CExoArrayListTemplatedchar.hpp
acaos/nwnxee-unified
0e4c318ede64028c1825319f39c012e168e0482c
[ "MIT" ]
1
2019-06-04T04:30:24.000Z
2019-06-04T04:30:24.000Z
NWNXLib/API/Mac/API/CExoArrayListTemplatedchar.hpp
presscad/nwnee
0f36b281524e0b7e9796bcf30f924792bf9b8a38
[ "MIT" ]
null
null
null
NWNXLib/API/Mac/API/CExoArrayListTemplatedchar.hpp
presscad/nwnee
0f36b281524e0b7e9796bcf30f924792bf9b8a38
[ "MIT" ]
1
2019-10-20T07:54:45.000Z
2019-10-20T07:54:45.000Z
#pragma once #include <cstdint> namespace NWNXLib { namespace API { struct CExoArrayListTemplatedchar { char* element; int32_t num; int32_t array_size; }; } }
9.315789
33
0.689266
acaos
0000aca1794a79cf75dd578d24948d8694943b37
4,340
cpp
C++
3rdParty/Aria/src/ArFileDeviceConnection.cpp
bellonemauro/myARIAtestApp
8223b5833ccf37cf9f503337858a46544d36a19c
[ "Linux-OpenIB" ]
null
null
null
3rdParty/Aria/src/ArFileDeviceConnection.cpp
bellonemauro/myARIAtestApp
8223b5833ccf37cf9f503337858a46544d36a19c
[ "Linux-OpenIB" ]
null
null
null
3rdParty/Aria/src/ArFileDeviceConnection.cpp
bellonemauro/myARIAtestApp
8223b5833ccf37cf9f503337858a46544d36a19c
[ "Linux-OpenIB" ]
null
null
null
/* Adept MobileRobots Robotics Interface for Applications (ARIA) Copyright (C) 2004-2005 ActivMedia Robotics LLC Copyright (C) 2006-2010 MobileRobots Inc. Copyright (C) 2011-2015 Adept Technology, Inc. Copyright (C) 2016 Omron Adept Technologies, Inc. This program is free software; you can redistribute it and/or ...
26.956522
125
0.721198
bellonemauro
3231c4dcd936dc29d2cebeafad8f7c3498c80284
1,374
cpp
C++
src/common/mesh_utils.cpp
jandrej/serac
6a19ae5c0cb6ca127d8e897640f7e0c1d5d91ee3
[ "BSD-3-Clause" ]
null
null
null
src/common/mesh_utils.cpp
jandrej/serac
6a19ae5c0cb6ca127d8e897640f7e0c1d5d91ee3
[ "BSD-3-Clause" ]
null
null
null
src/common/mesh_utils.cpp
jandrej/serac
6a19ae5c0cb6ca127d8e897640f7e0c1d5d91ee3
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2019-2020, Lawrence Livermore National Security, LLC and // other Serac Project Developers. See the top-level LICENSE file for // details. // // SPDX-License-Identifier: (BSD-3-Clause) #include "mesh_utils.hpp" #include "common/logger.hpp" #include "fmt/fmt.hpp" namespace serac { std::shared_ptr<mf...
26.941176
103
0.658661
jandrej
323fedbf41575e057b9fb083123e5a62bc031cde
23,977
cpp
C++
Tools/RemoteProtocolBridge/Source/ProtocolProcessor/OSCProtocolProcessor/SenderAwareOSCReceiver.cpp
dbaudio-soundscape/Support-Generic-OSC-DiGiCo
54943f3d797844665644215da70bf7ee3a5bee64
[ "Xnet", "RSA-MD", "X11" ]
null
null
null
Tools/RemoteProtocolBridge/Source/ProtocolProcessor/OSCProtocolProcessor/SenderAwareOSCReceiver.cpp
dbaudio-soundscape/Support-Generic-OSC-DiGiCo
54943f3d797844665644215da70bf7ee3a5bee64
[ "Xnet", "RSA-MD", "X11" ]
null
null
null
Tools/RemoteProtocolBridge/Source/ProtocolProcessor/OSCProtocolProcessor/SenderAwareOSCReceiver.cpp
dbaudio-soundscape/Support-Generic-OSC-DiGiCo
54943f3d797844665644215da70bf7ee3a5bee64
[ "Xnet", "RSA-MD", "X11" ]
null
null
null
/* =============================================================================== Copyright (C) 2019 d&b audiotechnik GmbH & Co. KG. All Rights Reserved. This file is part of RemoteProtocolBridge. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the follo...
31.548684
146
0.643408
dbaudio-soundscape
3241a892c48085ce63e9e44d75ef0c0e59863597
232
cpp
C++
AtCoder/abc189/a/main.cpp
H-Tatsuhiro/Com_Pro-Cpp
fd79f7821a76b11f4a6f83bbb26a034db577a877
[ "MIT" ]
null
null
null
AtCoder/abc189/a/main.cpp
H-Tatsuhiro/Com_Pro-Cpp
fd79f7821a76b11f4a6f83bbb26a034db577a877
[ "MIT" ]
1
2021-10-19T08:47:23.000Z
2022-03-07T05:23:56.000Z
AtCoder/abc189/a/main.cpp
H-Tatsuhiro/Com_Pro-Cpp
fd79f7821a76b11f4a6f83bbb26a034db577a877
[ "MIT" ]
null
null
null
#include <iostream> #include <cmath> #include <algorithm> #include <vector> using namespace std; int main() { char a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << "Won" << endl; else cout << "Lost" << endl; }
21.090909
48
0.543103
H-Tatsuhiro
3249e51c1a5b24abe217395fc251242472a546eb
1,373
cpp
C++
03/spiralsquare.t.cpp
ComicSansMS/AdventOfCode2017
238460dd82dae182d78b8460578b7f615cf99fd0
[ "Unlicense" ]
null
null
null
03/spiralsquare.t.cpp
ComicSansMS/AdventOfCode2017
238460dd82dae182d78b8460578b7f615cf99fd0
[ "Unlicense" ]
null
null
null
03/spiralsquare.t.cpp
ComicSansMS/AdventOfCode2017
238460dd82dae182d78b8460578b7f615cf99fd0
[ "Unlicense" ]
null
null
null
#include <catch.hpp> #include <spiralsquare.hpp> #include <iostream> TEST_CASE("Spiralsquare") { SECTION("Determine Ring") { CHECK(getRing(1) == 1); CHECK(getRing(8) == 3); CHECK(getRing(11) == 5); CHECK(getRing(18) == 5); } SECTION("Check distance") { CH...
25.425926
51
0.541151
ComicSansMS
324beca6e5532de8238fffbeaa9288b7b30c6364
1,070
cpp
C++
A2OnlineJudge/Ladder_1400_1499/GargariAndBishops.cpp
seeva92/Competitive-Programming
69061c5409bb806148616fe7d86543e94bf76edd
[ "Apache-2.0" ]
null
null
null
A2OnlineJudge/Ladder_1400_1499/GargariAndBishops.cpp
seeva92/Competitive-Programming
69061c5409bb806148616fe7d86543e94bf76edd
[ "Apache-2.0" ]
null
null
null
A2OnlineJudge/Ladder_1400_1499/GargariAndBishops.cpp
seeva92/Competitive-Programming
69061c5409bb806148616fe7d86543e94bf76edd
[ "Apache-2.0" ]
null
null
null
#include <bits/stdc++.h> typedef long long ll; const int mod = 1e9 + 7; const int MAX = 1e5 + 7; using namespace std; typedef vector<int> vi; ll arr[2007][2007]; ll diag1[2 * 2007], diag2[2 * 2007]; int n; struct soln { ll val, i, j; }; soln sols[2]; int main() { #ifndef ONLINE_JUDGE freopen("/Users/seeva92/Workspace...
26.75
79
0.507477
seeva92
324d9008bf81c4a99c2741b28ac055602ed1d524
2,557
cpp
C++
src/frame-counter.cpp
longlonghands/fps-challenge
020c133a782285364d52b1c98e9661c9aedfd96d
[ "MIT" ]
null
null
null
src/frame-counter.cpp
longlonghands/fps-challenge
020c133a782285364d52b1c98e9661c9aedfd96d
[ "MIT" ]
null
null
null
src/frame-counter.cpp
longlonghands/fps-challenge
020c133a782285364d52b1c98e9661c9aedfd96d
[ "MIT" ]
null
null
null
#include "frame-coutner.hpp" #include "packet-source.hpp" #include <spdlog/spdlog.h> namespace challenge { namespace media { FrameCounter::FrameCounter(int duration) : PacketSourceSubscriber(50) , m_durations(15) , m_targetDuration(duration) , m_fps(0.0) , m_frameCounts(-1) ,...
30.440476
106
0.599922
longlonghands
3269fd6a68173d2b376df0f394218affa6d0cf4a
4,445
hpp
C++
include/expsum/fitting/function_fitter.hpp
hide-ikeno/expsum
7b1be33b7c342f875d6d5e5c0cd8df9ec62abbda
[ "MIT" ]
null
null
null
include/expsum/fitting/function_fitter.hpp
hide-ikeno/expsum
7b1be33b7c342f875d6d5e5c0cd8df9ec62abbda
[ "MIT" ]
null
null
null
include/expsum/fitting/function_fitter.hpp
hide-ikeno/expsum
7b1be33b7c342f875d6d5e5c0cd8df9ec62abbda
[ "MIT" ]
null
null
null
#ifndef EXPSUM_FUNCTION_FITTER_HPP #define EXPSUM_FUNCTION_FITTER_HPP #include <type_traits> #include "expsum/fitting/fast_esprit.hpp" namespace expsum { template <typename T> class function_fitter { public: using esprit_type = expsum::fast_esprit<T>; using size_type = typename esprit_type::size_type; ...
24.832402
75
0.604499
hide-ikeno
326f00c546dad683986278036c47676f5a404cf8
616
cpp
C++
solutions/316.remove-duplicate-letters.250689698.ac.cpp
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
78
2020-10-22T11:31:53.000Z
2022-02-22T13:27:49.000Z
solutions/316.remove-duplicate-letters.250689698.ac.cpp
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
null
null
null
solutions/316.remove-duplicate-letters.250689698.ac.cpp
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
26
2020-10-23T15:10:44.000Z
2021-11-07T16:13:50.000Z
class Solution { public: string removeDuplicateLetters(string s) { unordered_map<char, int> map; unordered_set<char> set; for (char c : s) map[c]++; vector<char> stack; unordered_set<char> done; for (char c : s) { while (!done.count(c) && stack.size() && stack.back() >= c && ...
18.666667
67
0.501623
satu0king
326f044c6e5051da1ca410dacdf5f74719f290c4
1,976
cc
C++
test/common/network/configurator_test.cc
jpsim/envoy-mobile
29855f6416b0af1c5b70db2a790212ce6d405946
[ "Apache-2.0" ]
1
2022-01-28T06:19:49.000Z
2022-01-28T06:19:49.000Z
test/common/network/configurator_test.cc
jpsim/envoy-mobile
29855f6416b0af1c5b70db2a790212ce6d405946
[ "Apache-2.0" ]
null
null
null
test/common/network/configurator_test.cc
jpsim/envoy-mobile
29855f6416b0af1c5b70db2a790212ce6d405946
[ "Apache-2.0" ]
1
2022-02-02T14:38:36.000Z
2022-02-02T14:38:36.000Z
#include <net/if.h> #include "test/extensions/common/dynamic_forward_proxy/mocks.h" #include "gtest/gtest.h" #include "library/common/network/configurator.h" using testing::_; using testing::Return; namespace Envoy { namespace Network { class ConfiguratorTest : public testing::Test { public: ConfiguratorTest() ...
32.933333
90
0.771255
jpsim
327c45516859cedb1d7e360f7477bd0b6b4e2996
164
cpp
C++
codechef_problems/PRESENTS.cpp
Ankitahazra-1906/cpp
31412ffc844cbafb6dd8a64e031676b48acadfe2
[ "MIT" ]
2
2021-11-11T19:18:16.000Z
2021-11-13T11:23:03.000Z
codechef_problems/PRESENTS.cpp
Ankitahazra-1906/cp
24ab374184e440c17b467967995b2f6324baa2a6
[ "MIT" ]
null
null
null
codechef_problems/PRESENTS.cpp
Ankitahazra-1906/cp
24ab374184e440c17b467967995b2f6324baa2a6
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int main() { // your code goes here int t,n; cin>>t; while(t--){ cin>>n; cout<<n-n/5<<endl; } return 0; }
11.714286
23
0.560976
Ankitahazra-1906
32821babd81aacd718ff17fa62c07f08858fcc71
2,784
hpp
C++
libs/boost_1_72_0/boost/proto/detail/poly_function_traits.hpp
henrywarhurst/matrix
317a2a7c35c1c7e3730986668ad2270dc19809ef
[ "BSD-3-Clause" ]
null
null
null
libs/boost_1_72_0/boost/proto/detail/poly_function_traits.hpp
henrywarhurst/matrix
317a2a7c35c1c7e3730986668ad2270dc19809ef
[ "BSD-3-Clause" ]
null
null
null
libs/boost_1_72_0/boost/proto/detail/poly_function_traits.hpp
henrywarhurst/matrix
317a2a7c35c1c7e3730986668ad2270dc19809ef
[ "BSD-3-Clause" ]
null
null
null
#if !defined(BOOST_PROTO_DONT_USE_PREPROCESSED_FILES) #include <boost/proto/detail/preprocessed/poly_function_traits.hpp> #elif !defined(BOOST_PP_IS_ITERATING) #if defined(__WAVE__) && defined(BOOST_PROTO_CREATE_PREPROCESSED_FILES) #pragma wave option(preserve : 2, line : 0, output \ ...
40.941176
96
0.603807
henrywarhurst
328a1d2464768465685d9c3436881e9f899cad16
573
cpp
C++
Challenge-2020-07/all_paths_from_source_to_target.cpp
qiufengyu/LetsCode
196fae0bf5c78ee20d05798a9439596e702fdb24
[ "MIT" ]
null
null
null
Challenge-2020-07/all_paths_from_source_to_target.cpp
qiufengyu/LetsCode
196fae0bf5c78ee20d05798a9439596e702fdb24
[ "MIT" ]
null
null
null
Challenge-2020-07/all_paths_from_source_to_target.cpp
qiufengyu/LetsCode
196fae0bf5c78ee20d05798a9439596e702fdb24
[ "MIT" ]
null
null
null
#include "../header.h" class Solution { public: vector<vector<int>> allPathsSourceTarget(vector<vector<int>>& graph) { vector<vector<int>> res; helper(graph, 0, {}, res); return res; } void helper(vector<vector<int>> &graph, int current, vector<int> path, vector<vector<int>> &res) ...
27.285714
102
0.530541
qiufengyu
32917aefba32c304ba8b2b520e7f293542bb3d93
731
cpp
C++
solutions/URI_1042 - (2302638) - Accepted.cpp
KelwinKomka/URI-Online-Judge-1
3d6e37ebe3aa145f47dfcad8b219e53c3cae50f6
[ "MIT" ]
null
null
null
solutions/URI_1042 - (2302638) - Accepted.cpp
KelwinKomka/URI-Online-Judge-1
3d6e37ebe3aa145f47dfcad8b219e53c3cae50f6
[ "MIT" ]
null
null
null
solutions/URI_1042 - (2302638) - Accepted.cpp
KelwinKomka/URI-Online-Judge-1
3d6e37ebe3aa145f47dfcad8b219e53c3cae50f6
[ "MIT" ]
null
null
null
#include <iostream> #include <cmath> using namespace std; int main(int argc, const char * argv[]) { int x, y, z; while(cin >> x >> y >> z){ if(x < y) if(x < z) if(y < z) cout << x << endl << y << endl << z << endl; else cout << x << endl << z << e...
22.151515
58
0.372093
KelwinKomka
3292d242f9b1942d38fa8eae8294b8b5c1bbbf5d
29,618
inl
C++
src/fonts/stb_font_consolas_26_usascii.inl
stetre/moonfonts
5c8010c02ea62edcf42902e09478b0cd14af56ea
[ "MIT" ]
3
2018-03-13T12:51:57.000Z
2021-10-11T11:32:17.000Z
src/fonts/stb_font_consolas_26_usascii.inl
stetre/moonfonts
5c8010c02ea62edcf42902e09478b0cd14af56ea
[ "MIT" ]
null
null
null
src/fonts/stb_font_consolas_26_usascii.inl
stetre/moonfonts
5c8010c02ea62edcf42902e09478b0cd14af56ea
[ "MIT" ]
null
null
null
// Font generated by stb_font_inl_generator.c (4/1 bpp) // // Following instructions show how to use the only included font, whatever it is, in // a generic way so you can replace it with any other font by changing the include. // To use multiple fonts, replace STB_SOMEFONT_* below with STB_FONT_consolas_26_usascii...
63.151386
123
0.774597
stetre
32948c9fb3458d490ccadd7ef77747a6f558d59e
23,892
hpp
C++
test/testheader/cmath_test.hpp
onihusube/spook
a25c49e9fb7320faf1e718a2dc8f35545d3f4a40
[ "BSL-1.0" ]
1
2019-09-22T11:27:46.000Z
2019-09-22T11:27:46.000Z
test/testheader/cmath_test.hpp
onihusube/spook
a25c49e9fb7320faf1e718a2dc8f35545d3f4a40
[ "BSL-1.0" ]
2
2019-08-01T06:05:36.000Z
2019-08-01T06:11:20.000Z
test/testheader/cmath_test.hpp
onihusube/spook
a25c49e9fb7320faf1e718a2dc8f35545d3f4a40
[ "BSL-1.0" ]
null
null
null
#include "doctest/doctest.h" #include <cmath> #include "spook.hpp" namespace spook_test::cmath { TEST_CASE("isinf test") { constexpr auto inf = std::numeric_limits<double>::infinity(); CHECK_UNARY(spook::isinf(inf)); CHECK_UNARY(spook::isinf(-inf)); CHECK_UNARY_FALSE(spook::isinf(0.0)); CHECK_UNARY_FA...
25.885157
80
0.639084
onihusube
32978f2c96f85d14786f950106852d31493ef573
12,880
cpp
C++
src/MainWindow.cpp
dankrusi/optimal-lunar-landing-analysis
ba23b718a4ce6e8277a28ef1da3ae89abd95e399
[ "MIT" ]
5
2016-07-18T18:58:51.000Z
2021-11-17T11:24:44.000Z
src/MainWindow.cpp
dankrusi/optimal-lunar-landing-analysis
ba23b718a4ce6e8277a28ef1da3ae89abd95e399
[ "MIT" ]
null
null
null
src/MainWindow.cpp
dankrusi/optimal-lunar-landing-analysis
ba23b718a4ce6e8277a28ef1da3ae89abd95e399
[ "MIT" ]
1
2019-05-18T15:30:08.000Z
2019-05-18T15:30:08.000Z
/* * Optimal Lunar Landing Analysis * https://github.com/dankrusi/optimal-lunar-landing-analysis * * Contributor(s): * Dan Krusi <dan.krusi@nerves.ch> (original author) * Stephan Krusi <stephan.krusi@gmail> (co-author) * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software a...
33.11054
164
0.711724
dankrusi
32a8a84b70f8851bf17b3da0cf3441abda7c7c0a
1,345
cpp
C++
Chapter5/Exercise-5-14/main.cpp
kozborn/programing-principles-and-practise-using-cpp
7fefba8765e26af83f138e660861fe5b90adcda4
[ "MIT" ]
null
null
null
Chapter5/Exercise-5-14/main.cpp
kozborn/programing-principles-and-practise-using-cpp
7fefba8765e26af83f138e660861fe5b90adcda4
[ "MIT" ]
null
null
null
Chapter5/Exercise-5-14/main.cpp
kozborn/programing-principles-and-practise-using-cpp
7fefba8765e26af83f138e660861fe5b90adcda4
[ "MIT" ]
null
null
null
#include "../../std_lib_facilities.h" void print_vector(const vector<int> &vec) { for (auto const &a : vec) { cout << a << endl; } } int main() { cout << "Enter pairs (day temp) " << endl; string day; int temp; vector<int> pon; vector<int> tue; vector<int> wed; vector<int> thu...
23.189655
71
0.501115
kozborn
32aa6db4c59c08b5644f26fc487a56ac5f556f41
4,246
cpp
C++
src/widgets/keyboard.cpp
Windrill/GuiLite
6577199c1c56626ac2436af2392ddf65bb50e761
[ "Apache-2.0" ]
6,304
2017-09-23T04:22:51.000Z
2022-03-31T05:49:57.000Z
src/widgets/keyboard.cpp
Windrill/GuiLite
6577199c1c56626ac2436af2392ddf65bb50e761
[ "Apache-2.0" ]
41
2017-12-01T13:36:21.000Z
2022-03-22T08:16:13.000Z
src/widgets/keyboard.cpp
Windrill/GuiLite
6577199c1c56626ac2436af2392ddf65bb50e761
[ "Apache-2.0" ]
764
2017-09-26T15:12:11.000Z
2022-03-31T08:49:25.000Z
#include "../widgets_include/keyboard.h" #ifdef GUILITE_ON static c_keyboard_button s_key_0, s_key_1, s_key_2, s_key_3, s_key_4, s_key_5, s_key_6, s_key_7, s_key_8, s_key_9; static c_keyboard_button s_key_A, s_key_B, s_key_C, s_key_D, s_key_E, s_key_F, s_key_G, s_key_H, s_key_I, s_key_J; static c_keyboard_button s_ke...
55.868421
114
0.639425
Windrill
32af9a775e68698e366e0b194d7ea26ff17ee7b2
402
cpp
C++
374 Big Mod.cpp
zihadboss/UVA-Solutions
020fdcb09da79dc0a0411b04026ce3617c09cd27
[ "Apache-2.0" ]
86
2016-01-20T11:36:50.000Z
2022-03-06T19:43:14.000Z
374 Big Mod.cpp
Mehedishihab/UVA-Solutions
474fe3d9d9ba574b97fd40ca5abb22ada95654a1
[ "Apache-2.0" ]
null
null
null
374 Big Mod.cpp
Mehedishihab/UVA-Solutions
474fe3d9d9ba574b97fd40ca5abb22ada95654a1
[ "Apache-2.0" ]
113
2015-12-04T06:40:57.000Z
2022-02-11T02:14:28.000Z
#include <iostream> using namespace std; // Don't need to use long long because the mod^2 is still containable by a signed int int myPow(int b, int p, int m) { b = b % m; int total = 1; while (p) { if (p & 1) total = (total * b) % m; b = (b * b) % m; p >>= 1; } return total; } int main() { in...
12.181818
85
0.50995
zihadboss
32b17590918c4e6468ac9424a0b02e24a4cb98db
700
hpp
C++
Jimbo/Jimbo/graphics/renderer.hpp
BenStorey/Jimbo
937ff92a432fea2cb9a8e837d0e6839405f1a6c6
[ "MIT" ]
3
2017-05-29T15:44:13.000Z
2019-08-24T09:15:09.000Z
Jimbo/Jimbo/graphics/renderer.hpp
BenStorey/Jimbo
937ff92a432fea2cb9a8e837d0e6839405f1a6c6
[ "MIT" ]
null
null
null
Jimbo/Jimbo/graphics/renderer.hpp
BenStorey/Jimbo
937ff92a432fea2cb9a8e837d0e6839405f1a6c6
[ "MIT" ]
null
null
null
#ifndef JIMBO_GRAPHICS_RENDERER_HPP #define JIMBO_GRAPHICS_RENDERER_HPP ///////////////////////////////////////////////////////// // Renderer.h // // Ben Storey // // More of a placeholder right now. The void* is obviously not ideal, but I don't want to build // a whole lot of subclasses to implement a Renderer inter...
22.580645
118
0.568571
BenStorey
32b1a798b47ff61b1923e607f021ec86034d2b65
781
cpp
C++
cpp/071-080/Minimum Window Substring.cpp
KaiyuWei/leetcode
fd61f5df60cfc7086f7e85774704bacacb4aaa5c
[ "MIT" ]
150
2015-04-04T06:53:49.000Z
2022-03-21T13:32:08.000Z
cpp/071-080/Minimum Window Substring.cpp
yizhu1012/leetcode
d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7
[ "MIT" ]
1
2015-04-13T15:15:40.000Z
2015-04-21T20:23:16.000Z
cpp/071-080/Minimum Window Substring.cpp
yizhu1012/leetcode
d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7
[ "MIT" ]
64
2015-06-30T08:00:07.000Z
2022-01-01T16:44:14.000Z
class Solution { public: string minWindow(string s, string t) { unordered_map<char, int> dict; int cnt = 0, start = 0, len = INT_MAX, first = 0; for (char c : t) { dict[c]++; } for (int i = 0; i < s.size(); i++) { dict[s[i]]--; if (dict[s[i...
26.931034
58
0.326504
KaiyuWei
32c67479a8a81724719a8da3447b38bfd7363513
2,166
cpp
C++
day01.cpp
Sayansree/gfg30
2cd4c1a2a553c045e660ab974b8054d3bce0df2b
[ "MIT" ]
1
2021-02-05T13:41:58.000Z
2021-02-05T13:41:58.000Z
day01.cpp
Sayansree/gfg30
2cd4c1a2a553c045e660ab974b8054d3bce0df2b
[ "MIT" ]
null
null
null
day01.cpp
Sayansree/gfg30
2cd4c1a2a553c045e660ab974b8054d3bce0df2b
[ "MIT" ]
null
null
null
/* /*Geek and his classmates are playing a prank on their Computer Science teacher. They change places every time the teacher turns to look at the blackboard. Each of the N students in the class can be identified by a unique roll number X and each desk has a number i associated with it. Only one student can sit on on...
24.337079
248
0.625115
Sayansree
32c8a86c58698e9d82358e4bf5fae3444fffe33b
1,227
cpp
C++
c++/containers/list_remove.cpp
DevNaga/c_cpp_book
c08ac6c62a98c701d512ac432df77385b51af97b
[ "Apache-2.0" ]
1
2020-11-25T02:06:23.000Z
2020-11-25T02:06:23.000Z
c++/containers/list_remove.cpp
madmax440/c_cpp_book
c08ac6c62a98c701d512ac432df77385b51af97b
[ "Apache-2.0" ]
null
null
null
c++/containers/list_remove.cpp
madmax440/c_cpp_book
c08ac6c62a98c701d512ac432df77385b51af97b
[ "Apache-2.0" ]
null
null
null
/** * Author Devendra Naga (devendra.aaru@gmail.com) * * License apache */ #include <list> #include <string> #include <iostream> std::list<std::string>::const_iterator find_element(std::list<std::string> &s, std::string _s) { std::list <std::string> :: const_iterator it; for (it = s.begin(); it != s.end()...
18.876923
60
0.485738
DevNaga
32c8e0b6add848dc51e92f9445faa589e79c2556
3,640
cpp
C++
WRK-V1.2/csharp/shared/positiondata.cpp
intj-t/openvmsft
0d17fbce8607ab2b880be976c2e86d8cfc3e83bb
[ "Intel" ]
null
null
null
WRK-V1.2/csharp/shared/positiondata.cpp
intj-t/openvmsft
0d17fbce8607ab2b880be976c2e86d8cfc3e83bb
[ "Intel" ]
null
null
null
WRK-V1.2/csharp/shared/positiondata.cpp
intj-t/openvmsft
0d17fbce8607ab2b880be976c2e86d8cfc3e83bb
[ "Intel" ]
null
null
null
// ==++== // // // Copyright (c) 2006 Microsoft Corporation. All rights reserved. // // The use and distribution terms for this software are contained in the file // named license.txt, which can be found in the root of this distribution. // By using this software in any fashion, you are agreeing to ...
26.962963
95
0.437912
intj-t
32d3f75905f8f741f8b7216d7922fb313d8e1a88
1,023
cpp
C++
shared_model/backend/protobuf/commands/impl/proto_grant_permission.cpp
akshatkarani/iroha
5acef9dd74720c6185360d951e9b11be4ef73260
[ "Apache-2.0" ]
1,467
2016-10-25T12:27:19.000Z
2022-03-28T04:32:05.000Z
shared_model/backend/protobuf/commands/impl/proto_grant_permission.cpp
akshatkarani/iroha
5acef9dd74720c6185360d951e9b11be4ef73260
[ "Apache-2.0" ]
2,366
2016-10-25T10:07:57.000Z
2022-03-31T22:03:24.000Z
shared_model/backend/protobuf/commands/impl/proto_grant_permission.cpp
akshatkarani/iroha
5acef9dd74720c6185360d951e9b11be4ef73260
[ "Apache-2.0" ]
662
2016-10-26T04:41:22.000Z
2022-03-31T04:15:02.000Z
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #include "backend/protobuf/commands/proto_grant_permission.hpp" #include "backend/protobuf/permissions.hpp" namespace shared_model { namespace proto { GrantPermission::GrantPermission(iroha::protocol::Command ...
30.088235
79
0.703812
akshatkarani
32d6c9fe109f8499a3ac3e150d6766a1336f79e6
1,256
cpp
C++
NbrhdNash/Scenes/scene_GameOver.cpp
OlavJDigranes/groupD
1d1fdd4ec0117162d777d0c020cbf4ae1718cf5f
[ "MIT" ]
null
null
null
NbrhdNash/Scenes/scene_GameOver.cpp
OlavJDigranes/groupD
1d1fdd4ec0117162d777d0c020cbf4ae1718cf5f
[ "MIT" ]
null
null
null
NbrhdNash/Scenes/scene_GameOver.cpp
OlavJDigranes/groupD
1d1fdd4ec0117162d777d0c020cbf4ae1718cf5f
[ "MIT" ]
null
null
null
#include <iostream> #include <thread> #include "LevelSystem.h" #include "scene_GameOver.h" #include "scene_Level1.h" #include "../lib_ecm/components/cmp_text.h" #include "../game.h" #include "SFML/Window.hpp" #include "SFML/Window/Joystick.hpp" using namespace std; using namespace sf; void GameOver::Load() { tag = ...
22.836364
94
0.710987
OlavJDigranes
32d9f30702116a90f8debd4ccd6330e2fdf285bc
13,540
cpp
C++
src/ncorr/Data2D.cpp
relinc/ncorr_cpp
1c04e78617d9354fbc9a3c07e28ef2bf98474b6f
[ "BSD-3-Clause" ]
null
null
null
src/ncorr/Data2D.cpp
relinc/ncorr_cpp
1c04e78617d9354fbc9a3c07e28ef2bf98474b6f
[ "BSD-3-Clause" ]
1
2017-11-22T00:08:35.000Z
2017-11-22T12:42:17.000Z
src/ncorr/Data2D.cpp
relinc/ncorr_cpp
1c04e78617d9354fbc9a3c07e28ef2bf98474b6f
[ "BSD-3-Clause" ]
2
2019-07-17T07:27:48.000Z
2020-01-07T06:31:48.000Z
/* * File: Data2D.cpp * Author: justin * * Created on February 28, 2015, 8:57 PM */ #include "Data2D.h" namespace ncorr { // Additional constructors ---------------------------------------------------// Data2D::Data2D(Array2D<double> A, const ROI2D &roi, difference_type scalefactor) : scalefactor(...
42.180685
196
0.579321
relinc
32dc351944aab16c6866c138c56ef662f56fa005
935
cpp
C++
extern/llvm/tools/clang/test/SemaCXX/address-of.cpp
chip5441/clReflect
d366cced2fff9aefcfc5ec6a0c97ed6c827263eb
[ "MIT" ]
null
null
null
extern/llvm/tools/clang/test/SemaCXX/address-of.cpp
chip5441/clReflect
d366cced2fff9aefcfc5ec6a0c97ed6c827263eb
[ "MIT" ]
1
2020-02-22T09:59:21.000Z
2020-02-22T09:59:21.000Z
extern/llvm/tools/clang/test/SemaCXX/address-of.cpp
chip5441/clReflect
d366cced2fff9aefcfc5ec6a0c97ed6c827263eb
[ "MIT" ]
null
null
null
// RUN: %clang_cc1 -fsyntax-only -verify %s // PR clang/3175 void bar(int*); class c { int var; static int svar; void foo() { bar(&var); bar(&svar); } static void wibble() { bar(&var); // expected-error{{invalid use of member 'var' in static member function}} bar(&svar); ...
19.893617
129
0.608556
chip5441
77f900ea0cbd3fa5929d03bbd8b665a4d75c541f
5,959
cpp
C++
lib/storage/in_memory_storage.cpp
pmqtt/pmq
49f4b87c6c6dc5adfe7feab4ef3b2b73e0c435fb
[ "Apache-2.0" ]
2
2019-09-08T11:59:05.000Z
2019-12-04T09:29:43.000Z
lib/storage/in_memory_storage.cpp
pmqtt/pmq
49f4b87c6c6dc5adfe7feab4ef3b2b73e0c435fb
[ "Apache-2.0" ]
11
2019-06-08T20:13:58.000Z
2019-12-17T12:03:01.000Z
lib/storage/in_memory_storage.cpp
pmqtt/pmq
49f4b87c6c6dc5adfe7feab4ef3b2b73e0c435fb
[ "Apache-2.0" ]
2
2019-12-04T08:06:27.000Z
2021-06-03T21:24:40.000Z
// // Created by pmqtt on 2019-06-29. // #include <algorithm> #include <lib/storage/in_memory_storage.hpp> #include <lib/detail/string.hpp> #include <lib/mqtt/message.hpp> #include <random> namespace { std::random_device dev; std::mt19937 rng(dev()); std::uniform_int_distribution<std::mt19937::result_type> ...
34.051429
123
0.662359
pmqtt
77fbdc4b43634e29fd10db24ec0ecc4ad9f82a1d
72
cpp
C++
SCRambl/AutoOperation.cpp
Deji69/SCRambl
cf6eb64272b4126094c77a720c2402ed47822a50
[ "MIT" ]
5
2015-07-10T18:31:14.000Z
2021-12-31T18:35:10.000Z
SCRambl/AutoOperation.cpp
Deji69/SCRambl
cf6eb64272b4126094c77a720c2402ed47822a50
[ "MIT" ]
null
null
null
SCRambl/AutoOperation.cpp
Deji69/SCRambl
cf6eb64272b4126094c77a720c2402ed47822a50
[ "MIT" ]
2
2015-03-21T20:03:24.000Z
2021-09-18T02:46:26.000Z
#include "stdafx.h" #include "AutoOperation.h" using namespace SCRambl;
18
26
0.777778
Deji69
77ffb249731477fc03a1b1070ef129922d35b186
13,987
cc
C++
tests/system/src/subsystem_tests.cc
xiallc/pixie_sdk
a6cf38b0a0d73a55955f4f906f789ee16eb848d4
[ "Apache-2.0" ]
2
2021-04-14T13:58:50.000Z
2021-08-09T19:42:25.000Z
tests/system/src/subsystem_tests.cc
xiallc/pixie_sdk
a6cf38b0a0d73a55955f4f906f789ee16eb848d4
[ "Apache-2.0" ]
1
2021-08-31T10:32:07.000Z
2021-09-03T15:03:00.000Z
tests/system/src/subsystem_tests.cc
xiallc/pixie_sdk
a6cf38b0a0d73a55955f4f906f789ee16eb848d4
[ "Apache-2.0" ]
1
2022-03-25T12:32:52.000Z
2022-03-25T12:32:52.000Z
/* SPDX-License-Identifier: Apache-2.0 */ /* * Copyright 2021 XIA LLC, All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
33.223278
121
0.514692
xiallc
ae03c6442bc05122a457ba2559a07dbe6589544b
1,603
cc
C++
sejf.cc
maaku33/jnp-zadanie3
d84c93ed5328f03df1c4a5d9389a701091df9882
[ "MIT" ]
null
null
null
sejf.cc
maaku33/jnp-zadanie3
d84c93ed5328f03df1c4a5d9389a701091df9882
[ "MIT" ]
null
null
null
sejf.cc
maaku33/jnp-zadanie3
d84c93ed5328f03df1c4a5d9389a701091df9882
[ "MIT" ]
null
null
null
#include "sejf.h" #include <iostream> #include <utility> Sejf::Sejf (const std::string& napis, unsigned liczba) : zawartosc(napis) , dostepy(liczba) , zmanipulowany(false) , wlamanie(false) {} Sejf::Sejf (std::string&& napis, unsigned liczba) : zawartosc(std::move(napis)) , dostepy(liczba)...
21.092105
54
0.588272
maaku33
ae065777706151d545fb3fe7ad598225be100161
4,827
hpp
C++
spline.hpp
mdimura/SplineApprox
de558dcdf906d0a556e6ec0fa01bc9a039596c89
[ "MIT" ]
1
2019-03-27T15:30:07.000Z
2019-03-27T15:30:07.000Z
spline.hpp
mdimura/SplineApprox
de558dcdf906d0a556e6ec0fa01bc9a039596c89
[ "MIT" ]
null
null
null
spline.hpp
mdimura/SplineApprox
de558dcdf906d0a556e6ec0fa01bc9a039596c89
[ "MIT" ]
null
null
null
#ifndef SPLINE_H #define SPLINE_H //#pragma GCC optimize("O3") #include "polynomial.hpp" #include <Eigen/Dense> template <unsigned Deg> class Spline { private: using MatrixDXf = Eigen::Matrix<float,Deg+1,Eigen::Dynamic>; using MatrixXDf = Eigen::Matrix<float,Eigen::Dynamic,Deg+1>; MatrixDXf c; float xmin, xmax; ...
24.135
93
0.654029
mdimura
ae0827467f5f3e39a9af5981761d64270a540ebe
4,601
cc
C++
comm/fiu_engine.cc
wahidHarb/rdp-1
73a0813d9a08f0aad34b56ba678167e6387b5e74
[ "Apache-2.0" ]
112
2018-12-05T07:45:42.000Z
2022-01-24T11:28:11.000Z
comm/fiu_engine.cc
wahidHarb/rdp-1
73a0813d9a08f0aad34b56ba678167e6387b5e74
[ "Apache-2.0" ]
2
2020-02-29T02:34:59.000Z
2020-05-12T06:34:29.000Z
comm/fiu_engine.cc
wahidHarb/rdp-1
73a0813d9a08f0aad34b56ba678167e6387b5e74
[ "Apache-2.0" ]
88
2018-12-16T07:35:10.000Z
2022-03-09T17:41:16.000Z
// //Copyright 2018 vip.com. // //Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with //the License. You may obtain a copy of the License at // //http://www.apache.org/licenses/LICENSE-2.0 // //Unless required by applicable law or agreed to in writing, sof...
26.595376
117
0.656162
wahidHarb
ae0b7717db104999a6dcf04f8819f7f54ba85dc6
7,707
cpp
C++
examples/file_server/main.cpp
Garcia6l20/g6-web
6e9a1f9d85f26a977407d4c895f357e5f045efb9
[ "MIT" ]
3
2021-05-16T11:37:59.000Z
2022-01-30T13:52:59.000Z
examples/file_server/main.cpp
Garcia6l20/g6-web
6e9a1f9d85f26a977407d4c895f357e5f045efb9
[ "MIT" ]
null
null
null
examples/file_server/main.cpp
Garcia6l20/g6-web
6e9a1f9d85f26a977407d4c895f357e5f045efb9
[ "MIT" ]
1
2021-11-06T12:36:37.000Z
2021-11-06T12:36:37.000Z
#include <spdlog/spdlog.h> #include <g6/http/client.hpp> #include <g6/http/router.hpp> #include <g6/http/server.hpp> #include <g6/io/context.hpp> #include <unifex/scope_guard.hpp> #include <unifex/sync_wait.hpp> #include <unifex/task.hpp> #include <unifex/when_all.hpp> #include <ranges> using namespace g6; namespac...
46.709091
218
0.563124
Garcia6l20
ae0df01395046443388103c3066066d2a57dd2c5
1,981
hpp
C++
3rdparty/libkdtree++_0.7.0/kdtree++/function.hpp
rukletsov/bo
bfece9e8f910b0c8f522733854405bf0a801b0e8
[ "BSD-2-Clause" ]
3
2016-09-14T03:30:30.000Z
2021-11-16T10:53:32.000Z
3rdparty/libkdtree++_0.7.0/kdtree++/function.hpp
rukletsov/bo
bfece9e8f910b0c8f522733854405bf0a801b0e8
[ "BSD-2-Clause" ]
null
null
null
3rdparty/libkdtree++_0.7.0/kdtree++/function.hpp
rukletsov/bo
bfece9e8f910b0c8f522733854405bf0a801b0e8
[ "BSD-2-Clause" ]
null
null
null
/** \file * Defines the various functors and interfaces used for KDTree. * * \author Martin F. Krafft <libkdtree@pobox.madduck.net> * \author Sylvain Bougerel <sylvain.bougerel.devel@gmail.com> */ #ifndef INCLUDE_KDTREE_ACCESSOR_HPP #define INCLUDE_KDTREE_ACCESSOR_HPP #include <cstddef> namespace bo { templa...
22.011111
80
0.675416
rukletsov
ae19aa502a598910a401212d8974069928d643ee
4,025
hpp
C++
SOLVER/src/preloop/se_model/quad/mapping/MappingSpherical.hpp
nicklinyi/AxiSEM-3D
cd11299605cd6b92eb867d4109d2e6a8f15e6b4d
[ "MIT" ]
8
2020-06-05T01:13:20.000Z
2022-02-24T05:11:50.000Z
SOLVER/src/preloop/se_model/quad/mapping/MappingSpherical.hpp
nicklinyi/AxiSEM-3D
cd11299605cd6b92eb867d4109d2e6a8f15e6b4d
[ "MIT" ]
24
2020-10-21T19:03:38.000Z
2021-11-17T21:32:02.000Z
SOLVER/src/preloop/se_model/quad/mapping/MappingSpherical.hpp
nicklinyi/AxiSEM-3D
cd11299605cd6b92eb867d4109d2e6a8f15e6b4d
[ "MIT" ]
5
2020-06-21T11:54:22.000Z
2021-06-23T01:02:39.000Z
// // MappingSpherical.hpp // AxiSEM3D // // Created by Kuangdai Leng on 3/21/20. // Copyright © 2020 Kuangdai Leng. All rights reserved. // // spherical mapping #ifndef MappingSpherical_hpp #define MappingSpherical_hpp #include "Mapping.hpp" class MappingSpherical: public Mapping { public: // constructor ...
35.307018
78
0.514037
nicklinyi
ae1ed36c0059f7a8cc530a23594460647283b8a1
1,023
hpp
C++
dep/myvk/PipelineLayout.hpp
lilesper/SparseVoxelOctree
9c4c79ab746758d21070bb733dafe4f78438e4b5
[ "MIT" ]
338
2019-08-02T03:57:05.000Z
2022-03-29T20:49:21.000Z
dep/myvk/PipelineLayout.hpp
lilesper/SparseVoxelOctree
9c4c79ab746758d21070bb733dafe4f78438e4b5
[ "MIT" ]
12
2020-01-10T09:03:22.000Z
2022-03-25T02:03:23.000Z
dep/myvk/PipelineLayout.hpp
lilesper/SparseVoxelOctree
9c4c79ab746758d21070bb733dafe4f78438e4b5
[ "MIT" ]
36
2019-08-08T11:15:23.000Z
2022-02-26T00:31:13.000Z
#ifndef MYVK_PIPELINE_LAYOUT_HPP #define MYVK_PIPELINE_LAYOUT_HPP #include "DescriptorSetLayout.hpp" #include "DeviceObjectBase.hpp" #include <volk.h> #include <memory> #include <vector> namespace myvk { class PipelineLayout : public DeviceObjectBase { private: std::shared_ptr<Device> m_device_ptr; std::vector<st...
26.230769
88
0.783969
lilesper
ae20672553d21f207de6a05069c8d47071eb504e
2,467
cpp
C++
pixmap_art.cpp
gulesh/pixmap-ops
573afdd349d7e4913d7dbc60f0b9d3edd33b39ca
[ "MIT" ]
null
null
null
pixmap_art.cpp
gulesh/pixmap-ops
573afdd349d7e4913d7dbc60f0b9d3edd33b39ca
[ "MIT" ]
null
null
null
pixmap_art.cpp
gulesh/pixmap-ops
573afdd349d7e4913d7dbc60f0b9d3edd33b39ca
[ "MIT" ]
null
null
null
#include <iostream> #include "ppm_image.h" #include <string> #include <fstream> #include <iostream> #include <cmath> #include <algorithm> using namespace agl; using namespace std; int main(int argc, char** argv) { ppm_image image; image.load("../images/imagePart5.ppm"); image.save("imagePart5.ppm"); // s...
32.038961
84
0.717471
gulesh
ae2213166f4c876c2494f5dffc276b8deb45929d
361
hpp
C++
src/behavior/stochasticgames/madynamicprogramming/SG_backup_operator.hpp
MarkieMark/fastrl
e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e
[ "Apache-2.0" ]
4
2019-04-19T00:11:36.000Z
2020-04-08T09:50:37.000Z
src/behavior/stochasticgames/madynamicprogramming/SG_backup_operator.hpp
MarkieMark/fastrl
e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e
[ "Apache-2.0" ]
null
null
null
src/behavior/stochasticgames/madynamicprogramming/SG_backup_operator.hpp
MarkieMark/fastrl
e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e
[ "Apache-2.0" ]
null
null
null
/* * Mark Benjamin 6th March 2019 * Copyright (c) 2019 Mark Benjamin */ #ifndef FASTRL_BEHAVIOR_STOCHASTICGAMES_MADYNAMICPROGRAMMING_SG_BACKUP_OPERATOR_HPP #define FASTRL_BEHAVIOR_STOCHASTICGAMES_MADYNAMICPROGRAMMING_SG_BACKUP_OPERATOR_HPP class SGBackupOperator { }; #endif //FASTRL_BEHAVIOR_STOCHASTICGAMES_MAD...
24.066667
84
0.867036
MarkieMark
ae27dd19824a12b5c45f441b3024c297d3d02262
502
cpp
C++
solutions/AtCoder/cpsco2019_s2/B.cpp
yumeno-ukihashi/competitive-programming
5cc3a7938b62133d8dc71a179cb11dfe985315d3
[ "Unlicense" ]
null
null
null
solutions/AtCoder/cpsco2019_s2/B.cpp
yumeno-ukihashi/competitive-programming
5cc3a7938b62133d8dc71a179cb11dfe985315d3
[ "Unlicense" ]
null
null
null
solutions/AtCoder/cpsco2019_s2/B.cpp
yumeno-ukihashi/competitive-programming
5cc3a7938b62133d8dc71a179cb11dfe985315d3
[ "Unlicense" ]
null
null
null
#include<bits/stdc++.h> #define REP(x,y,z) for(int x=y;x<=z;x++) #define MSET(x,y) memset(x,y,sizeof(x)) #define M 1005 using namespace std; int n,in[M]; char c[M]; int main() { char buf[3]; while (~scanf("%d",&n)) { REP(i,1,n) { scanf("%s %d",buf,&in[i]); c[i] = buf[0]; ...
19.307692
57
0.438247
yumeno-ukihashi
ae2a14e49f45f1fc5456da010e3fa29dab9904a6
4,519
hh
C++
src/include/JsonItem.hh
websurfer5/json-schema-enforcer
99211a602b1c8177d9f9e67cd7773015f74a4080
[ "Apache-2.0" ]
null
null
null
src/include/JsonItem.hh
websurfer5/json-schema-enforcer
99211a602b1c8177d9f9e67cd7773015f74a4080
[ "Apache-2.0" ]
null
null
null
src/include/JsonItem.hh
websurfer5/json-schema-enforcer
99211a602b1c8177d9f9e67cd7773015f74a4080
[ "Apache-2.0" ]
null
null
null
// JsonItem.hh // // Copyright 2018 Jeffrey Kintscher <websurfer@surf2c.net> // // 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...
32.278571
101
0.571808
websurfer5
ae2fe37caeafd9619d0202873f643d4a2331fcff
34,977
inl
C++
nTA/Source/std_Rect.inl
loganjones/nTA-Total-Annihilation-Clone
d7d0e4d33f1d452d17cf2fed2b2bcb7f6d7d4d14
[ "MIT" ]
2
2020-05-09T20:50:12.000Z
2021-06-20T08:34:58.000Z
nTA/Source/std_Rect.inl
loganjones/nTA-Total-Annihilation-Clone
d7d0e4d33f1d452d17cf2fed2b2bcb7f6d7d4d14
[ "MIT" ]
null
null
null
nTA/Source/std_Rect.inl
loganjones/nTA-Total-Annihilation-Clone
d7d0e4d33f1d452d17cf2fed2b2bcb7f6d7d4d14
[ "MIT" ]
2
2018-01-08T00:12:04.000Z
2020-06-14T10:56:50.000Z
// std_Rect.inl // \author Logan Jones ///////////////// \date 10/3/2001 /// \file /// \brief ... ///////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// // ...
34.090643
106
0.305029
loganjones
ae34fe188210b8b2951d1aa684b082a4c440e5f0
2,533
cpp
C++
src/View.cpp
Djamel-Ali/card-games-framework
8fc529b3a565dab7da2437e11d82236c0d6ccdc9
[ "MIT" ]
null
null
null
src/View.cpp
Djamel-Ali/card-games-framework
8fc529b3a565dab7da2437e11d82236c0d6ccdc9
[ "MIT" ]
null
null
null
src/View.cpp
Djamel-Ali/card-games-framework
8fc529b3a565dab7da2437e11d82236c0d6ccdc9
[ "MIT" ]
null
null
null
#include "View.hpp" #include <limits> View::View() { } View::~View() { delete game; } int View::rejouer() { int choice; cout << "\n----------------------------------" << endl; cout << "LA PARTIE EST TERMINÉE" << endl; cout << "\n----------------------------------\n" << endl; ...
21.649573
81
0.439005
Djamel-Ali
ae3a275095d7783b4c468c2fe502df0af89beba5
9,614
cxx
C++
libs/preprocessor/test/array.cxx
ballisticwhisper/boost
f72119ab640b564c4b983bd457457046b52af9ee
[ "BSL-1.0" ]
2
2015-01-02T14:24:56.000Z
2015-01-02T14:25:17.000Z
libs/preprocessor/test/array.cxx
ballisticwhisper/boost
f72119ab640b564c4b983bd457457046b52af9ee
[ "BSL-1.0" ]
2
2019-01-13T23:45:51.000Z
2019-02-03T08:13:26.000Z
libs/preprocessor/test/array.cxx
ballisticwhisper/boost
f72119ab640b564c4b983bd457457046b52af9ee
[ "BSL-1.0" ]
1
2016-05-29T13:41:15.000Z
2016-05-29T13:41:15.000Z
# /* ************************************************************************** # * * # * (C) Copyright Paul Mensonides 2002. # * Distributed under the Boost Software License, Version 1.0. (See # * accompanying file LICENSE_1_0.txt...
60.0875
322
0.670481
ballisticwhisper
ae3c1965221e7fa96d5c6255e0e4e3bfd33ab1fe
2,081
inl
C++
include/as/as-mat4.inl
pr0g/as
5698ded06abca884385b9deebe8a2e702e8a66a8
[ "MIT" ]
6
2019-06-16T22:20:55.000Z
2021-11-13T17:16:16.000Z
include/as/as-mat4.inl
pr0g/as
5698ded06abca884385b9deebe8a2e702e8a66a8
[ "MIT" ]
null
null
null
include/as/as-mat4.inl
pr0g/as
5698ded06abca884385b9deebe8a2e702e8a66a8
[ "MIT" ]
1
2020-04-11T14:24:13.000Z
2020-04-11T14:24:13.000Z
namespace as { template<typename T> AS_API constexpr index mat<T, 4>::dim() { return 4; } template<typename T> AS_API constexpr index mat<T, 4>::size() { return 16; } template<typename T> AS_API constexpr index mat<T, 4>::rows() { return mat<T, 4>::dim(); } template<typename T> AS_API constexpr index mat<T, 4...
20.81
75
0.597309
pr0g
ae43870a4b7d9e60b7937bebb98b0d4be22ebcd2
166
cpp
C++
test/chapter_03_strings_and_regular_expressions/url.cpp
rturrado/TheModernCppChallenge
648284fb417b6aaa43c21ea2b12a5a21c8cb9269
[ "MIT" ]
null
null
null
test/chapter_03_strings_and_regular_expressions/url.cpp
rturrado/TheModernCppChallenge
648284fb417b6aaa43c21ea2b12a5a21c8cb9269
[ "MIT" ]
null
null
null
test/chapter_03_strings_and_regular_expressions/url.cpp
rturrado/TheModernCppChallenge
648284fb417b6aaa43c21ea2b12a5a21c8cb9269
[ "MIT" ]
null
null
null
#include "chapter_03_strings_and_regular_expressions/url.h" #include <gmock/gmock.h> #include <gtest/gtest.h> #include <sstream> // istringstream, ostringstream
18.444444
59
0.777108
rturrado
ae44c2e864673aa663e746d75050a8a0a7c7c263
2,227
cpp
C++
rev/tools/const_string.cpp
Roman-Skabin/REV
adfa0a742525784d66f98ff5b0d157343e5f1cf4
[ "BSD-4-Clause" ]
2
2020-12-12T20:37:32.000Z
2022-01-06T22:20:30.000Z
rev/tools/const_string.cpp
Roman-Skabin/REV
adfa0a742525784d66f98ff5b0d157343e5f1cf4
[ "BSD-4-Clause" ]
2
2020-02-22T21:27:59.000Z
2020-11-27T23:43:01.000Z
engine/tools/const_string.cpp
Roman-Skabin/cengine
12c99a571246d3a7325d1d6a97e98d3c2c912bcb
[ "BSD-4-Clause" ]
null
null
null
// Copyright (c) 2020-2021, Roman-Skabin // All rights reserved. // // This source code is licensed under the BSD-style license found in the // LICENSE.md file in the root directory of this source tree. #include "core/pch.h" #include "tools/const_string.h" #include "tools/string.h" namespace REV { ConstString Cons...
21.209524
125
0.572968
Roman-Skabin
ae51cb024404c0b50b45bdb8fe0b32a15be78c02
11,783
cpp
C++
sdk/sdk/share/opencv/cxcore/src/cxswitcher.cpp
doyaGu/C0501Q_HWJL01
07a71328bd9038453cbb1cf9c276a3dd1e416d63
[ "MIT" ]
1
2021-10-09T08:05:50.000Z
2021-10-09T08:05:50.000Z
sdk/sdk/share/opencv/cxcore/src/cxswitcher.cpp
doyaGu/C0501Q_HWJL01
07a71328bd9038453cbb1cf9c276a3dd1e416d63
[ "MIT" ]
null
null
null
sdk/sdk/share/opencv/cxcore/src/cxswitcher.cpp
doyaGu/C0501Q_HWJL01
07a71328bd9038453cbb1cf9c276a3dd1e416d63
[ "MIT" ]
null
null
null
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
28.054762
101
0.588051
doyaGu
ae565493c82dcf171038ae864da5221c651b740e
18,794
cpp
C++
i8086sim/KExec_Arithm.cpp
koutheir/i8086sim
c47fe1ad1cfe8121a7cd6c66f673097c283d2af6
[ "BSD-3-Clause" ]
3
2018-08-25T00:03:42.000Z
2020-01-06T12:37:04.000Z
i8086sim/KExec_Arithm.cpp
koutheir/i8086sim
c47fe1ad1cfe8121a7cd6c66f673097c283d2af6
[ "BSD-3-Clause" ]
null
null
null
i8086sim/KExec_Arithm.cpp
koutheir/i8086sim
c47fe1ad1cfe8121a7cd6c66f673097c283d2af6
[ "BSD-3-Clause" ]
null
null
null
#include "i8086sim.h" /* Bit set: 11 10 9 8 7 6 5 4 3 2 1 0 [OF] [DF] [IF] [TF] [SF] [ZF] [0] [AF] [0] [PF] [1] [CF] */ bool K8086VM::Execute_ADD_ADC_INC(K8086VM *VM, KInstructionID &II) { char mod, mem_reg_code, reg_code; byte DispSize=0; byte *REG, *EA, c; us...
24.187902
107
0.554166
koutheir
ae5a9c3dd3c3b13e66de9d54513e8a8e506d69d4
19,008
cpp
C++
src/mediasystem/util/StateMachine.cpp
m1keall1son/ofxMediaSystem
c4b1619111b43996aabcb5c123af90824f8eee63
[ "MIT" ]
6
2018-06-15T11:50:38.000Z
2018-09-13T19:44:12.000Z
src/mediasystem/util/StateMachine.cpp
m1keall1son/ofxMediaSystem
c4b1619111b43996aabcb5c123af90824f8eee63
[ "MIT" ]
null
null
null
src/mediasystem/util/StateMachine.cpp
m1keall1son/ofxMediaSystem
c4b1619111b43996aabcb5c123af90824f8eee63
[ "MIT" ]
1
2018-06-28T16:39:17.000Z
2018-06-28T16:39:17.000Z
// // StateMachine.c // Aerialtronics // // Created by Michael Allison on 8/16/18. // #include "StateMachine.h" #include "ofMain.h" namespace mediasystem { StateMachine::Transition::Transition(float dur): duration(dur) {} void StateMachine::addState(State&& state) { auto name = st...
41.321739
138
0.373264
m1keall1son
ae5d5dafb6faf03dbd226a01d524543818e70295
1,706
cpp
C++
Leetcode/Dynamic Programming/burst-balloons.cpp
susantabiswas/competitive_coding
49163ecdc81b68f5c1bd90988cc0dfac34ad5a31
[ "MIT" ]
2
2021-04-29T14:44:17.000Z
2021-10-01T17:33:22.000Z
Leetcode/Dynamic Programming/burst-balloons.cpp
adibyte95/competitive_coding
a6f084d71644606c21840875bad78d99f678a89d
[ "MIT" ]
null
null
null
Leetcode/Dynamic Programming/burst-balloons.cpp
adibyte95/competitive_coding
a6f084d71644606c21840875bad78d99f678a89d
[ "MIT" ]
1
2021-10-01T17:33:29.000Z
2021-10-01T17:33:29.000Z
/* https://leetcode.com/problems/burst-balloons/ */ class Solution { public: // iterative DP bottom up solution int maxCoinsTabular(vector<int>& nums) { if(nums.empty()) return 0; const int N = nums.size(); // since nums[-1] = nums[N] = 1, pad the original nums ...
39.674419
104
0.512896
susantabiswas
ae6c22913deb9e610762e0a680a819fe7e878c3c
655
cpp
C++
doubling/abc167_d2.cpp
Takumi1122/data-structure-algorithm
6b9f26e4dbba981f034518a972ecfc698b86d837
[ "MIT" ]
null
null
null
doubling/abc167_d2.cpp
Takumi1122/data-structure-algorithm
6b9f26e4dbba981f034518a972ecfc698b86d837
[ "MIT" ]
null
null
null
doubling/abc167_d2.cpp
Takumi1122/data-structure-algorithm
6b9f26e4dbba981f034518a972ecfc698b86d837
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; // ダブリング /* 参考リンク ABC 167 D - Teleporter https://atcoder.jp/contests/abc167/tasks/abc167_d */ const int D = 60; const int MAX_N = 200005; int to[D][MAX_N]; int ...
15.595238
61
0.465649
Takumi1122
ae7c1014fe0d193a48a403d10670665db9cf211e
1,023
cpp
C++
Server/Player.cpp
jackv24/NetworkingAIE
bb8ae376f18e4c2cee9681dbe61e0f67180232cf
[ "MIT" ]
null
null
null
Server/Player.cpp
jackv24/NetworkingAIE
bb8ae376f18e4c2cee9681dbe61e0f67180232cf
[ "MIT" ]
null
null
null
Server/Player.cpp
jackv24/NetworkingAIE
bb8ae376f18e4c2cee9681dbe61e0f67180232cf
[ "MIT" ]
null
null
null
#include <iostream> #include <BitStream.h> #include "GameMessages.h" #include "GameConstants.h" #include "Player.h" Player::Player() { } Player::~Player() { } void Player::Move(float deltaTime) { if (moveDir != 0) { yPos += PADDLE_SPEED * moveDir * deltaTime; if (yPos > STAGE_HEIGHT - PADDLE_HEIGHT) yPos ...
21.765957
104
0.718475
jackv24
ae7c62774f36043f53012cd72b37ec76c33aa925
5,150
cpp
C++
class/app/widget_editor_color.cpp
TheMarlboroMan/go-fgj6
fa1cdfcd5ecaf4f0ea25b23890310e76fd2504bd
[ "Beerware" ]
null
null
null
class/app/widget_editor_color.cpp
TheMarlboroMan/go-fgj6
fa1cdfcd5ecaf4f0ea25b23890310e76fd2504bd
[ "Beerware" ]
null
null
null
class/app/widget_editor_color.cpp
TheMarlboroMan/go-fgj6
fa1cdfcd5ecaf4f0ea25b23890310e76fd2504bd
[ "Beerware" ]
null
null
null
#include "widget_editor_color.h" #include "framework_impl/input.h" #include <def_video.h> #include "definiciones.h" #ifdef WINCOMPIL /* Localización del parche mingw32... Esto debería estar en otro lado, supongo. */ #include <templates/parches_compat.h> #endif using namespace App; Widget_editor_color::Widget_edito...
26.546392
136
0.747379
TheMarlboroMan
ae826301e65217141d886d5c9cecc1330e2f9b2f
1,265
hpp
C++
src/utils/objectloader.hpp
vi3itor/Blunted2
318af452e51174a3a4634f3fe19b314385838992
[ "Unlicense" ]
56
2020-07-22T22:11:06.000Z
2022-03-09T08:11:43.000Z
GameplayFootball/src/utils/objectloader.hpp
ElsevierSoftwareX/SOFTX-D-20-00016
48c28adb72aa167a251636bc92111b3c43c0be67
[ "MIT" ]
9
2021-04-22T07:06:25.000Z
2022-01-22T12:54:52.000Z
GameplayFootball/src/utils/objectloader.hpp
ElsevierSoftwareX/SOFTX-D-20-00016
48c28adb72aa167a251636bc92111b3c43c0be67
[ "MIT" ]
20
2017-11-07T16:52:32.000Z
2022-01-25T02:42:48.000Z
// written by bastiaan konings schuiling 2008 - 2014 // this work is public domain. the code is undocumented, scruffy, untested, and should generally not be used for anything important. // i do not offer support, so don't ask. to be used for inspiration :) #ifndef _HPP_UTILS_OBJECTLOADER #define _HPP_UTILS_OBJECTLOADE...
35.138889
169
0.745455
vi3itor
ae84f1baee40d30a7bea10b0f4dcaa5056ed6a55
881
hpp
C++
app/app/render/line.hpp
muleax/slope
254138703163705b57332fc7490dd2eea0082b57
[ "MIT" ]
6
2022-02-05T23:28:12.000Z
2022-02-24T11:08:04.000Z
app/app/render/line.hpp
muleax/slope
254138703163705b57332fc7490dd2eea0082b57
[ "MIT" ]
null
null
null
app/app/render/line.hpp
muleax/slope
254138703163705b57332fc7490dd2eea0082b57
[ "MIT" ]
null
null
null
#pragma once #include "app/render/config.hpp" #include "app/render/shader.hpp" namespace slope::app { struct LinePoint { vec3 position; vec3 color; }; class LineShader : public Shader { public: struct AttributeLayout { static constexpr uint32_t POSITION = 0; static constexpr uint32_t ...
19.152174
87
0.681044
muleax
ae86bf29878b03576c927d65956b6048a6fcb50e
360
cpp
C++
openjudge/01/06/09.cpp
TheBadZhang/OJ
b5407f2483aa630068343b412ecaf3a9e3303f7e
[ "Apache-2.0" ]
1
2020-07-22T16:54:07.000Z
2020-07-22T16:54:07.000Z
openjudge/01/06/09.cpp
TheBadZhang/OJ
b5407f2483aa630068343b412ecaf3a9e3303f7e
[ "Apache-2.0" ]
1
2018-05-12T12:53:06.000Z
2018-05-12T12:53:06.000Z
openjudge/01/06/09.cpp
TheBadZhang/OJ
b5407f2483aa630068343b412ecaf3a9e3303f7e
[ "Apache-2.0" ]
null
null
null
#include <cstdio> int main () { int n; scanf ("%d", &n); int *A = new int [n]; int *B = new int [n]; for (int a = 0; a < n; a += 1) { scanf ("%d", &A [a]); } for (int a = 0; a < n; a += 1) { scanf ("%d", &B [a]); } long long int result = 0; for (int a = 0; a < n; a += 1) { result += B [a] * A [a]; }...
16.363636
33
0.430556
TheBadZhang
ae87f8438828385e5a6786957c55a6ecdf0f3cbe
704
cc
C++
src/rvg.cc
jacquelineCelia/lexicon_discovery
1a46f885ad24d2c510ae42f096b054cc6f216fcd
[ "MIT" ]
12
2016-01-05T08:34:52.000Z
2020-11-23T22:46:39.000Z
src/rvg.cc
jacquelineCelia/lexicon_discovery
1a46f885ad24d2c510ae42f096b054cc6f216fcd
[ "MIT" ]
null
null
null
src/rvg.cc
jacquelineCelia/lexicon_discovery
1a46f885ad24d2c510ae42f096b054cc6f216fcd
[ "MIT" ]
4
2016-08-11T22:16:40.000Z
2020-11-23T22:46:49.000Z
#include "rvg.h" using namespace std; using namespace boost; using namespace boost::random; RandomVarGen::RandomVarGen() { // size_t SEED = time(0); size_t SEED = 0; generator.seed(SEED); } /* float RandomVarGen::GetGammaSample(float a, float b) { gamma_distribution<> dist(a, b); return dist(gene...
19.555556
55
0.65625
jacquelineCelia
ae8cd842181a439275b5c6bca94af9b1e5b600fa
9,171
cpp
C++
src/modules/ROOTObjectReader/ROOTObjectReaderModule.cpp
schmidtseb/allpix-squared
f0e47c35a4db405d4d49887e4e8eaffe69176bfa
[ "MIT" ]
null
null
null
src/modules/ROOTObjectReader/ROOTObjectReaderModule.cpp
schmidtseb/allpix-squared
f0e47c35a4db405d4d49887e4e8eaffe69176bfa
[ "MIT" ]
null
null
null
src/modules/ROOTObjectReader/ROOTObjectReaderModule.cpp
schmidtseb/allpix-squared
f0e47c35a4db405d4d49887e4e8eaffe69176bfa
[ "MIT" ]
null
null
null
/** * @file * @brief Implementation of ROOT data file reader module * @copyright Copyright (c) 2017 CERN and the Allpix Squared authors. * This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md". * In applying this license, CERN does not waive the privileges and im...
37.896694
124
0.61858
schmidtseb
ae8f8b92df0a7dec15e55b569a602f4dfcc2235f
384
cpp
C++
aashishgahlawat/codeforces/A/560-A/560-A-30841187.cpp
aashishgahlawat/CompetetiveProgramming
12d6b2682765ae05b622968b9a26b0b519e170aa
[ "MIT" ]
null
null
null
aashishgahlawat/codeforces/A/560-A/560-A-30841187.cpp
aashishgahlawat/CompetetiveProgramming
12d6b2682765ae05b622968b9a26b0b519e170aa
[ "MIT" ]
null
null
null
aashishgahlawat/codeforces/A/560-A/560-A-30841187.cpp
aashishgahlawat/CompetetiveProgramming
12d6b2682765ae05b622968b9a26b0b519e170aa
[ "MIT" ]
null
null
null
#include <iostream> #include <bits/stdc++.h> #define endl '\n' using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); // your code goes here int numberOfNotes; cin>>numberOfNotes; int noteValue; while(numberOfNotes--){ cin>>noteValue; if(noteValue==1){ ...
18.285714
37
0.611979
aashishgahlawat
ae91f1e1dfbd5c1f5278c1b2f99c649786c9a1a7
667
cpp
C++
WindowsOpenGLC++/SpaceInvaders/SpaceInvaders.cpp
BenjaminNitschke/MobileCourse
802ce81f7cd9ee44b35f13e4da302a9fbd29a2b6
[ "Apache-2.0" ]
1
2015-06-20T09:09:29.000Z
2015-06-20T09:09:29.000Z
WindowsOpenGLC++/SpaceInvaders/SpaceInvaders.cpp
BenjaminNitschke/MobileCourse
802ce81f7cd9ee44b35f13e4da302a9fbd29a2b6
[ "Apache-2.0" ]
null
null
null
WindowsOpenGLC++/SpaceInvaders/SpaceInvaders.cpp
BenjaminNitschke/MobileCourse
802ce81f7cd9ee44b35f13e4da302a9fbd29a2b6
[ "Apache-2.0" ]
null
null
null
#include "stdafx.h" #include "SpaceGame.h" #include "SpaceInvadersVisualTests.h" using namespace SpaceInvaders; int _stdcall WinMain(struct HINSTANCE__ *hInstance, struct HINSTANCE__ *hPrevInstance, char *lpszCmdLine, int nCmdShow) { //SpaceInvadersVisualTests().ShowEmptyWindow(); //SpaceInvadersVisualTests().Show...
33.35
86
0.790105
BenjaminNitschke
ae97d894cdfbb1543ac236fd19ccf9dc78e8d58c
2,136
hpp
C++
include/GamePlay.hpp
wooseokyourself/shmup
9174208561043210f86f3d4c411589ac5a9aa417
[ "MIT" ]
null
null
null
include/GamePlay.hpp
wooseokyourself/shmup
9174208561043210f86f3d4c411589ac5a9aa417
[ "MIT" ]
25
2021-03-19T11:32:35.000Z
2021-06-17T09:06:45.000Z
include/GamePlay.hpp
wooseokyourself/shmup
9174208561043210f86f3d4c411589ac5a9aa417
[ "MIT" ]
null
null
null
#ifndef __GAMEPLAY__ #define __GAMEPLAY__ #include <iostream> #include <vector> #include <queue> #include "core/Object.hpp" #include "Constants.hpp" #include "World.hpp" #include "Aircraft.hpp" #include "StraightMovingObjectManager.hpp" #include "Planetary.hpp" #include "Ai.hpp" #include "Hud.hpp" #include "Sun.hpp" ...
24.551724
100
0.725655
wooseokyourself
ae9f9dbab06028fa0a59e71146ede96412826983
404
cpp
C++
cse419/LightOJ/1216/12044153_AC_0ms_1688kB.cpp
cosmicray001/academic
6aa142baeba4bb1ad73b8669e37305ca0b5102a7
[ "MIT" ]
2
2020-09-02T12:07:47.000Z
2020-11-17T11:17:16.000Z
cse419/LightOJ/1216/12044153_AC_0ms_1688kB.cpp
cosmicray001/academic
6aa142baeba4bb1ad73b8669e37305ca0b5102a7
[ "MIT" ]
null
null
null
cse419/LightOJ/1216/12044153_AC_0ms_1688kB.cpp
cosmicray001/academic
6aa142baeba4bb1ad73b8669e37305ca0b5102a7
[ "MIT" ]
4
2020-08-11T14:23:34.000Z
2020-11-17T10:52:31.000Z
#include <bits/stdc++.h> #define pi acos(-1.0) using namespace std; int main() { int t, c = 0; double h, p, r1, r2, r3; scanf("%d", &t); while(t--){ scanf("%lf %lf %lf %lf", &r1, &r2, &h, &p); r3 = r1 - (((r1 - r2) * (h - p)) / h); double vol = (pi * p * (r2 * r2 + r3 * r3 + r2...
20.2
68
0.418317
cosmicray001
aea084551163eacf3fbed4826d3d54edba61b5c7
877
cpp
C++
3 - Branches/3.2 - Relational If-else/print_car_info.cpp
aTonyXiao/Zybook
36cd05a436c6ca007cdd14638cf5ee2a7724b889
[ "MIT" ]
11
2017-11-17T07:31:44.000Z
2020-12-05T14:46:56.000Z
3 - Branches/3.2 - Relational If-else/print_car_info.cpp
aTonyXiao/Zybook
36cd05a436c6ca007cdd14638cf5ee2a7724b889
[ "MIT" ]
null
null
null
3 - Branches/3.2 - Relational If-else/print_car_info.cpp
aTonyXiao/Zybook
36cd05a436c6ca007cdd14638cf5ee2a7724b889
[ "MIT" ]
1
2019-10-15T20:58:51.000Z
2019-10-15T20:58:51.000Z
#include <iostream> using namespace std; /* Write multiple if statements. If carYear is 1969 or earlier, print "Probably has few safety features." If 1970 or higher, print "Probably has seat belts." If 1990 or higher, print "Probably has anti-lock brakes." If 2000 or higher, print "Probably has air bags." End each ph...
24.361111
331
0.659065
aTonyXiao
0004016749c1318eecbc8c43e9b35cbe9facbbae
187
hpp
C++
Include/NinjaParty/Vertex.hpp
ThirdPartyNinjas/NinjaParty
320665104158d7ad0c7b0d3841870e23f37213a7
[ "MIT" ]
null
null
null
Include/NinjaParty/Vertex.hpp
ThirdPartyNinjas/NinjaParty
320665104158d7ad0c7b0d3841870e23f37213a7
[ "MIT" ]
null
null
null
Include/NinjaParty/Vertex.hpp
ThirdPartyNinjas/NinjaParty
320665104158d7ad0c7b0d3841870e23f37213a7
[ "MIT" ]
1
2018-07-27T15:09:49.000Z
2018-07-27T15:09:49.000Z
#ifndef NINJAPARTY_VERTEX_HPP #define NINJAPARTY_VERTEX_HPP namespace NinjaParty { struct Vertex { float x, y; float u, v; float r, g, b, a; }; } #endif//NINJAPARTY_VERTEX_HPP
12.466667
29
0.716578
ThirdPartyNinjas
00087f5a6e0d31e4d1b28698e0328ec0d08730c2
380
cc
C++
racional/src/racional_funk.cc
ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-Shao486
35573801b8adc5a419d2787e22227daa3e5ad190
[ "MIT" ]
null
null
null
racional/src/racional_funk.cc
ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-Shao486
35573801b8adc5a419d2787e22227daa3e5ad190
[ "MIT" ]
null
null
null
racional/src/racional_funk.cc
ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-Shao486
35573801b8adc5a419d2787e22227daa3e5ad190
[ "MIT" ]
null
null
null
/** * Universidad de La Laguna * Escuela Superior de Ingeniería y Tecnología * Grado en Ingeniería Informática * Informática Básica Grupo 2 * @author Shaowei Weng * @date 06/01/2021 * @brief * @see */ #include <iostream> //std::cout, std::endl #include <string> //std::string #i...
21.111111
55
0.610526
ULL-ESIT-IB-2020-2021
001364af0d16817926fd6ebbfab1cfb942a95dc6
1,538
cpp
C++
Builder/main.cpp
fawcio/design_patters_examples
9393b53ca542255970bfdb7ce8e3978e55398cd0
[ "MIT" ]
null
null
null
Builder/main.cpp
fawcio/design_patters_examples
9393b53ca542255970bfdb7ce8e3978e55398cd0
[ "MIT" ]
null
null
null
Builder/main.cpp
fawcio/design_patters_examples
9393b53ca542255970bfdb7ce8e3978e55398cd0
[ "MIT" ]
null
null
null
#include <iostream> #include <memory> #include <sstream> #include <vector> #include "XMLBuilder.hpp" #include "GroovyStyleHTMLBuilder.hpp" #include "PersonBuilder/PersonAddressBuilder.hpp" #include "PersonBuilder/PersonBuilder.hpp" #include "PersonBuilder/PersonJobBuilder.hpp" // clang-format off int main() { //...
26.517241
76
0.594928
fawcio
0016ddeb84202d6249f47a6996d2d59f00300bf8
7,064
hpp
C++
src/Process.hpp
zlin888/irispl
ee2228eb1155c4cffb906a327b7257fb1d360590
[ "MIT" ]
4
2020-04-01T05:45:30.000Z
2020-05-14T06:38:25.000Z
src/Process.hpp
zlin888/typed-scheme
ee2228eb1155c4cffb906a327b7257fb1d360590
[ "MIT" ]
null
null
null
src/Process.hpp
zlin888/typed-scheme
ee2228eb1155c4cffb906a327b7257fb1d360590
[ "MIT" ]
null
null
null
#ifndef PROCESS_HPP #define PROCESS_HPP #include <string> #include <utility> #include <vector> #include <map> #include <stdexcept> #include <memory> #include "Instruction.hpp" #include "Utils.hpp" #include "ModuleLoader.hpp" #include "IrisObject.hpp" #include "Heap.hpp" using namespace std; typedef int PID; enum cl...
31.535714
122
0.640997
zlin888
00178c1eb5e14c62d5fbe1e65d87d819c45e1e7d
2,622
c++
C++
fm/fmHand.c++
camilleg/vss
27f1c8f73f8d7ef2d4e5de077e4b2ed7e4f72803
[ "MIT" ]
null
null
null
fm/fmHand.c++
camilleg/vss
27f1c8f73f8d7ef2d4e5de077e4b2ed7e4f72803
[ "MIT" ]
null
null
null
fm/fmHand.c++
camilleg/vss
27f1c8f73f8d7ef2d4e5de077e4b2ed7e4f72803
[ "MIT" ]
null
null
null
#include "fm.h" fmHand::fmHand(fmAlg* alg): VHandler(alg) { setTypeName("fmHand"); } int fmHand::receiveMessage(const char* Message) { CommandFromMessage(Message); if (CommandIs("SetFreq")) { ifFF(z,z2, setCarrierFreq(z, z2) ); ifF(z, setCarrierFreq(z) ); return Uncatch(); } if (CommandIs("SetCarFreq")...
20.645669
88
0.636537
camilleg
0018deb8b7b6b1d0b5e54d218af4939858594eb3
576
cpp
C++
engine/kotek.core.containers.unordered_set/src/main_core_containers_unordered_set_dll.cpp
wh1t3lord/kotek
1e3eb61569974538661ad121ed8eb28c9e608ae6
[ "Apache-2.0" ]
null
null
null
engine/kotek.core.containers.unordered_set/src/main_core_containers_unordered_set_dll.cpp
wh1t3lord/kotek
1e3eb61569974538661ad121ed8eb28c9e608ae6
[ "Apache-2.0" ]
null
null
null
engine/kotek.core.containers.unordered_set/src/main_core_containers_unordered_set_dll.cpp
wh1t3lord/kotek
1e3eb61569974538661ad121ed8eb28c9e608ae6
[ "Apache-2.0" ]
null
null
null
#include "../include/kotek_core_containers_unordered_set.h" namespace Kotek { namespace Core { bool InitializeModule_Core_Containers_Unordered_Set( ktkMainManager* p_manager) { return true; } bool SerializeModule_Core_Containers_Unordered_Set( ktkMainManager* p_manager) { return true; } b...
18.580645
59
0.753472
wh1t3lord
001b21579d46ae51d210924388e89b1fb1f89b2f
4,833
cpp
C++
ChipsEninge/02_Script/Deprecated/ColliderComponents/ACollider.cpp
jerrypoiu/DX11_ChipsEngine2021
a558fb0013259a380d68b66142fc48b575208980
[ "MIT" ]
1
2021-01-25T11:38:21.000Z
2021-01-25T11:38:21.000Z
ChipsEninge/02_Script/Deprecated/ColliderComponents/ACollider.cpp
jerrypoiu/ChipsEngine
a558fb0013259a380d68b66142fc48b575208980
[ "MIT" ]
null
null
null
ChipsEninge/02_Script/Deprecated/ColliderComponents/ACollider.cpp
jerrypoiu/ChipsEngine
a558fb0013259a380d68b66142fc48b575208980
[ "MIT" ]
null
null
null
#include "ChipsSystem/Components/ColliderComponents/ACollider.h" #include "ChipsSystem/Global/Global.h" #include "ChipsSystem/Camera/Camera.h" #include "ChipsSystem/Etc/Mathf.h" #include "ChipsSystem/Etc/Debug.h" #include "DirectX/Effects/Effects.h" #include "DirectX/Effects/RenderStates.h" namespace ChipsEngine { AC...
31.588235
136
0.740741
jerrypoiu