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
c637af69d097f5019a95a19120f626dc1e8250aa
663
hpp
C++
extras/CAEN/include/CAENFlashException.hpp
flagarde/YAODAQ
851df4aa32b8695c4706bb3ec9f353f4461c9cad
[ "MIT" ]
null
null
null
extras/CAEN/include/CAENFlashException.hpp
flagarde/YAODAQ
851df4aa32b8695c4706bb3ec9f353f4461c9cad
[ "MIT" ]
11
2021-05-14T19:50:27.000Z
2022-03-31T07:19:41.000Z
extras/CAEN/include/CAENFlashException.hpp
flagarde/YAODAQ
851df4aa32b8695c4706bb3ec9f353f4461c9cad
[ "MIT" ]
5
2021-05-11T13:30:30.000Z
2021-05-26T19:57:22.000Z
#pragma once #include "Exception.hpp" namespace CAEN { enum FLASH_API_ERROR_CODES : int_least32_t { SUCCESS = 0, ACCESS_FAILED = -1, PARAMETER_NOT_ALLOWED = -2, FILE_OPEN_ERROR = -3, MALLOC_ERROR = -4, UNINITIALIZED = -5, NOT_IMPLEMENTED ...
22.1
110
0.656109
flagarde
c639773af75377d6274e825e3cbaafc1df93caeb
662
cpp
C++
luogu/codes/P1226.cpp
Tony031218/OI
562f5f45d0448f4eab77643b99b825405a123d92
[ "MIT" ]
1
2021-02-22T03:39:24.000Z
2021-02-22T03:39:24.000Z
luogu/codes/P1226.cpp
Tony031218/OI
562f5f45d0448f4eab77643b99b825405a123d92
[ "MIT" ]
null
null
null
luogu/codes/P1226.cpp
Tony031218/OI
562f5f45d0448f4eab77643b99b825405a123d92
[ "MIT" ]
null
null
null
/************************************************************* * > File Name : P1226.cpp * > Author : Tony * > Created Time : 2019/05/07 15:29:41 **************************************************************/ #include <bits/stdc++.h> using namespace std; typedef long long LL; LL b, p, k; ...
26.48
65
0.39426
Tony031218
c63a3fcc62e822c9df1a52f796b4cdf04490ed5b
289
cpp
C++
Backup/testappBackup.cpp
erzu12/Minerva-Engine
8e280946d561d31a0e09fe9d576dfca1412cd9e3
[ "Apache-2.0" ]
null
null
null
Backup/testappBackup.cpp
erzu12/Minerva-Engine
8e280946d561d31a0e09fe9d576dfca1412cd9e3
[ "Apache-2.0" ]
null
null
null
Backup/testappBackup.cpp
erzu12/Minerva-Engine
8e280946d561d31a0e09fe9d576dfca1412cd9e3
[ "Apache-2.0" ]
null
null
null
#include "minerva.h" #include <iostream> class Testapp : public Core { public: Testapp() { } ~Testapp() { } Log log; void Update(UpdateEvent* updateEvent) override { } // void Start(StartEvent* startEvent) override // { // } }; Core* GameInit(){ return new Testapp(); }
10.321429
47
0.633218
erzu12
c63b2e19b704532e353fd351a3ea4ee464e5c16d
14,753
hpp
C++
src/game.hpp
assasinwar9/Barony
c67c01de1168db1c5a2edad98b23cfff9f999187
[ "FTL", "Zlib", "MIT" ]
373
2016-06-28T06:56:46.000Z
2022-03-23T02:32:54.000Z
src/game.hpp
assasinwar9/Barony
c67c01de1168db1c5a2edad98b23cfff9f999187
[ "FTL", "Zlib", "MIT" ]
361
2016-07-06T19:09:25.000Z
2022-03-26T14:14:19.000Z
src/game.hpp
addictgamer/Barony
c67c01de1168db1c5a2edad98b23cfff9f999187
[ "FTL", "Zlib", "MIT" ]
129
2016-06-29T09:02:49.000Z
2022-01-23T09:56:06.000Z
/*------------------------------------------------------------------------------- BARONY File: game.hpp Desc: header file for the game Copyright 2013-2016 (c) Turning Wheel LLC, all rights reserved. See LICENSE for details. -------------------------------------------------------------------------------*/ #prag...
30.607884
164
0.793601
assasinwar9
c63b3390ffb324c52fedcfe538c9dc06eceb630b
21,772
cpp
C++
src/evolve_eas_multi_objective.cpp
mihaioltean/evolve-algorithms
16c86b21effc137483040838162a18579bf76fc2
[ "MIT" ]
1
2021-09-29T13:07:47.000Z
2021-09-29T13:07:47.000Z
src/evolve_eas_multi_objective.cpp
mihaioltean/evolve-algorithms
16c86b21effc137483040838162a18579bf76fc2
[ "MIT" ]
null
null
null
src/evolve_eas_multi_objective.cpp
mihaioltean/evolve-algorithms
16c86b21effc137483040838162a18579bf76fc2
[ "MIT" ]
null
null
null
//--------------------------------------------------------------------------- // Evolving Evolutionary Algorithms for MultiObjective problems // Copyright (C) 2016, Mihai Oltean (mihai.oltean@gmail.com) // Version 2016.12.26.1 // Compiled with Microsoft Visual C++ 2013 // Just create a console application a...
39.158273
224
0.638894
mihaioltean
c63e90a89646c8cb2b4c62a1d55fee5b927f722d
112
cpp
C++
algorithms/default.cpp
kosmaz/HackerRank
1107804c8213d169070a5529de26b97eb190e06c
[ "MIT" ]
1
2015-03-21T20:08:28.000Z
2015-03-21T20:08:28.000Z
algorithms/default.cpp
kosmaz/HackerRank
1107804c8213d169070a5529de26b97eb190e06c
[ "MIT" ]
null
null
null
algorithms/default.cpp
kosmaz/HackerRank
1107804c8213d169070a5529de26b97eb190e06c
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; void Run() { return; } int main() { Run(); return 0; }
8.615385
21
0.553571
kosmaz
c647e1588ab85979651918406ec9a2d73a6df0ab
225
cpp
C++
coin2xml.cpp
milasudril/coin
3e2d4778560894a36dfec9fc6cc245faae7301ae
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
coin2xml.cpp
milasudril/coin
3e2d4778560894a36dfec9fc6cc245faae7301ae
[ "BSD-2-Clause-FreeBSD" ]
3
2018-01-21T08:39:47.000Z
2018-01-21T08:42:18.000Z
coin2xml.cpp
milasudril/coin
3e2d4778560894a36dfec9fc6cc245faae7301ae
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
//@ {"targets":[{"name":"coin2xml","type":"application"}]} #include "input.hpp" #include "writerxml.hpp" #include "lexercoin.hpp" int main() { read(stdin, CoIN::LexerCoIN{}, CoIN::WriterXML<FILE*>(stdout)); return 0; }
18.75
64
0.648889
milasudril
c6495482a87babd49bb27f4964c179ea7f9aa3b1
1,856
cpp
C++
src/app/app_cmd_parser.cpp
yyh12345685/libnbf
64f6fa1b37b88f673ead8577291b10a30cac4040
[ "Apache-2.0" ]
null
null
null
src/app/app_cmd_parser.cpp
yyh12345685/libnbf
64f6fa1b37b88f673ead8577291b10a30cac4040
[ "Apache-2.0" ]
null
null
null
src/app/app_cmd_parser.cpp
yyh12345685/libnbf
64f6fa1b37b88f673ead8577291b10a30cac4040
[ "Apache-2.0" ]
1
2021-10-13T01:35:07.000Z
2021-10-13T01:35:07.000Z
#include <string.h> #include <iostream> #include "app/app_cmd_parser.h" #ifndef __APP_VERSION__ #define __APP_VERSION__ "(date: 22:25:00 2019/12/15 +0800)" #endif namespace bdf{ static void UsageInner(const char *exe, bool help){ std::cerr << "Copyright 2019 by yyh," << " Basic Net Framework Model" << std::en...
22.91358
76
0.543642
yyh12345685
c65132082e64302e29b178bd5c1a5db607bae6a9
991
cpp
C++
DataStructures/Trie/Contacts/contacts.cpp
suzyz/HackerRank
e97f76c4b39aa448e43e30b479d9718b8b88b2d2
[ "MIT" ]
null
null
null
DataStructures/Trie/Contacts/contacts.cpp
suzyz/HackerRank
e97f76c4b39aa448e43e30b479d9718b8b88b2d2
[ "MIT" ]
null
null
null
DataStructures/Trie/Contacts/contacts.cpp
suzyz/HackerRank
e97f76c4b39aa448e43e30b479d9718b8b88b2d2
[ "MIT" ]
null
null
null
#include <iostream> #include <cstring> #include <algorithm> using namespace std; class Trie { public: int count; Trie *p[26]; Trie() { count = 0; memset(p,0,sizeof(p)); } ~Trie(); void add(string name); int find(string prefix); }; void Trie::add(string name) { Trie *ch = this; for (int i = 0; i < na...
13.391892
42
0.543895
suzyz
c65447f8c5916a9cc3c384b5f68039ec7392a483
1,715
cpp
C++
merge_sort/main.cpp
215559085/AlogrithmAndDatastructrue
00b24b150fea29d2339d6a1797768174e955fc05
[ "MIT" ]
null
null
null
merge_sort/main.cpp
215559085/AlogrithmAndDatastructrue
00b24b150fea29d2339d6a1797768174e955fc05
[ "MIT" ]
null
null
null
merge_sort/main.cpp
215559085/AlogrithmAndDatastructrue
00b24b150fea29d2339d6a1797768174e955fc05
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using namespace std; vector<int> merge_twins(vector<vector<int>>* twin_group){ auto* tg = twin_group; int i = 1; do{ vector<int> result; vector<int> Vs1 = (*tg)[i-1]; vector<int> Vs2 = (*tg)[i]; for(int a=0,b=0;a<Vs1.size()||b<Vs2.size();...
29.568966
115
0.486297
215559085
c65655ea0fc5628ef66eb4ebe9c8ab24b4d58a30
482
cpp
C++
src/RE/NetImmerse/NiRefObject/NiObject/NiColorData.cpp
thallada/CommonLibSSE
b092c699c3ccd1af6d58d05f677f2977ec054cfe
[ "MIT" ]
1
2021-08-30T20:33:43.000Z
2021-08-30T20:33:43.000Z
src/RE/NetImmerse/NiRefObject/NiObject/NiColorData.cpp
thallada/CommonLibSSE
b092c699c3ccd1af6d58d05f677f2977ec054cfe
[ "MIT" ]
null
null
null
src/RE/NetImmerse/NiRefObject/NiObject/NiColorData.cpp
thallada/CommonLibSSE
b092c699c3ccd1af6d58d05f677f2977ec054cfe
[ "MIT" ]
1
2020-10-08T02:48:33.000Z
2020-10-08T02:48:33.000Z
#include "RE/NetImmerse/NiRefObject/NiObject/NiColorData.h" namespace RE { NiColorData::NiColorData() : numKeys(0), pad14(0), keys(nullptr), type(KeyType::kNoInterp), keySize(0), pad25(0), pad26(0) {} std::uint32_t NiColorData::GetNumKeys() const { return numKeys; } NiColorKey* NiColorData::...
15.548387
104
0.682573
thallada
c6567048e511e42f403afd7a4dd35ed2a879183f
7,055
cpp
C++
src/pgen/dusty_soundwave.cpp
PinghuiHuang/athena-pp-dustfluids
fce21992cc107aa553e83dd76b8d03ae90e990c7
[ "BSD-3-Clause" ]
2
2020-07-02T09:48:49.000Z
2020-08-25T02:37:21.000Z
src/pgen/dusty_soundwave.cpp
PinghuiHuang/athena-pp-dustfluids
fce21992cc107aa553e83dd76b8d03ae90e990c7
[ "BSD-3-Clause" ]
null
null
null
src/pgen/dusty_soundwave.cpp
PinghuiHuang/athena-pp-dustfluids
fce21992cc107aa553e83dd76b8d03ae90e990c7
[ "BSD-3-Clause" ]
1
2021-11-12T13:39:48.000Z
2021-11-12T13:39:48.000Z
//======================================================================================== // Athena++ astrophysical MHD code // Copyright(C) 2014 James M. Stone <jmstone@princeton.edu> and other code contributors // Licensed under the 3-clause BSD License, see LICENSE file for details //===============================...
36.937173
101
0.617576
PinghuiHuang
c65d17798602b9ca5256d8dfa64085cebf993067
28,893
cpp
C++
UnrealMvvmTests/Source/UnrealMvvmTests/Private/ListenManager.spec.cpp
druhasu/UnrealMvvm
3ab5a2e98a36583c74c72c0a76c1669f37ff1820
[ "MIT" ]
5
2021-11-28T17:09:25.000Z
2022-03-14T08:55:03.000Z
UnrealMvvmTests/Source/UnrealMvvmTests/Private/ListenManager.spec.cpp
druhasu/UnrealMvvm
3ab5a2e98a36583c74c72c0a76c1669f37ff1820
[ "MIT" ]
null
null
null
UnrealMvvmTests/Source/UnrealMvvmTests/Private/ListenManager.spec.cpp
druhasu/UnrealMvvm
3ab5a2e98a36583c74c72c0a76c1669f37ff1820
[ "MIT" ]
2
2021-12-23T14:10:28.000Z
2022-03-27T15:34:10.000Z
// Copyright Andrei Sudarikov. All Rights Reserved. #include "Misc/AutomationTest.h" #include "Mvvm/ListenManager.h" #include "TestListener.h" BEGIN_DEFINE_SPEC(ListenManagerSpec, "UnrealMvvm.ListenManager", EAutomationTestFlags::ClientContext | EAutomationTestFlags::EditorContext | EAutomationTestFlags::ServerCont...
41.692641
214
0.582736
druhasu
c6607ed75baf7e2ae95be4b8afdba08de2d70c57
5,159
cpp
C++
src/editable_graph.cpp
jlwitthuhn/cycles-shader-editor
0d6771801402ca7ecff006f399be90b1beea2884
[ "MIT" ]
11
2018-04-05T06:52:17.000Z
2021-12-14T07:02:52.000Z
src/editable_graph.cpp
jlwitthuhn/cycles-shader-editor
0d6771801402ca7ecff006f399be90b1beea2884
[ "MIT" ]
2
2018-01-18T04:30:58.000Z
2020-07-25T09:49:23.000Z
src/editable_graph.cpp
jlwitthuhn/cycles-shader-editor
0d6771801402ca7ecff006f399be90b1beea2884
[ "MIT" ]
4
2018-04-02T13:36:40.000Z
2021-08-21T21:23:23.000Z
#include "editable_graph.h" #include "node_outputs.h" #include "sockets.h" #include "util_vector.h" cse::EditableGraph::EditableGraph(const ShaderGraphType type) { reset(type); } void cse::EditableGraph::add_node(std::shared_ptr<EditableNode>& node, const Float2 world_pos) { if (node.use_count() == 0) { return; ...
24.684211
134
0.718356
jlwitthuhn
c660c618ee8ef913577bbbda3f560db160ae2d42
1,188
cpp
C++
Source/Core/Geometry/HittableList.cpp
T-rvw/RayTracingRender
941782dc070b27db381976650aa6bddd8e6f45a1
[ "MIT" ]
null
null
null
Source/Core/Geometry/HittableList.cpp
T-rvw/RayTracingRender
941782dc070b27db381976650aa6bddd8e6f45a1
[ "MIT" ]
null
null
null
Source/Core/Geometry/HittableList.cpp
T-rvw/RayTracingRender
941782dc070b27db381976650aa6bddd8e6f45a1
[ "MIT" ]
null
null
null
#include "HittableList.h" std::optional<HitRecord> HittableList::hit(const Ray& ray, double minT, double maxT) const { bool hitAnything = false; double closestT = maxT; std::optional<HitRecord> finalResult = std::nullopt; for (const auto& pHittableObject : m_vecHittableObjects) { std::opti...
26.4
90
0.598485
T-rvw
c661be2d8619ef8cca0232b790ae6157d71518b7
1,725
hpp
C++
HttpServer/include/Http/HttpStatusCode.hpp
WoozChucky/cpp-webserver-eventdriven
5ea96b299f7f948e45a7591b4aa46b3e6e895373
[ "MIT" ]
1
2021-04-13T18:36:38.000Z
2021-04-13T18:36:38.000Z
HttpServer/include/Http/HttpStatusCode.hpp
WoozChucky/cpp-webserver-eventdriven
5ea96b299f7f948e45a7591b4aa46b3e6e895373
[ "MIT" ]
1
2022-03-02T00:24:24.000Z
2022-03-02T00:24:24.000Z
HttpServer/include/Http/HttpStatusCode.hpp
WoozChucky/cpp-webserver-eventdriven
5ea96b299f7f948e45a7591b4aa46b3e6e895373
[ "MIT" ]
null
null
null
// // Created by Nuno Levezinho Silva on 17/09/2019. // #ifndef HTTPSTATUSCODE_HPP #define HTTPSTATUSCODE_HPP #include <Abstractions/Types.hpp> enum HttpStatusCode : U16 { /* 1xx Status Codes */ CONTINUE = 100, SWITCHING_PROTOCOLS = 101, EARLY_HINTS = 103, /* 2xx Status Codes */ OK = 200, ...
23.310811
49
0.669565
WoozChucky
c6620ab873aefa1315e7443326b824fab893e6ac
949
cpp
C++
Dice_throw.cpp
shivamkrs89/DYNAMIC-PROGRAMMING
7284918d61107ed9ac8092349b5289c69e628e2d
[ "MIT" ]
2
2021-05-27T14:56:52.000Z
2021-05-27T15:08:02.000Z
Dice_throw.cpp
shivamkrs89/DYNAMIC-PROGRAMMING
7284918d61107ed9ac8092349b5289c69e628e2d
[ "MIT" ]
null
null
null
Dice_throw.cpp
shivamkrs89/DYNAMIC-PROGRAMMING
7284918d61107ed9ac8092349b5289c69e628e2d
[ "MIT" ]
null
null
null
Given integers n, faces, and total, return the number of ways it is possible to throw n dice with faces faces each to get total. Mod the result by 10 ** 9 + 7. Constraints 1 โ‰ค n, faces, total โ‰ค 100 Example 1 Input n = 2 faces = 6 total = 7 Output 6 Explanation There are 6 ways to make 7 with 2 6-sided di...
15.306452
128
0.582719
shivamkrs89
c664f6a8ac1667c36a3a4c5bc1fb915baf952536
949
cpp
C++
arm/src/dynamixel_hand_control.cpp
AvatarQuest/AVA-ros
3e945d859155f559761f47040b1431e0e9ee8da1
[ "MIT" ]
null
null
null
arm/src/dynamixel_hand_control.cpp
AvatarQuest/AVA-ros
3e945d859155f559761f47040b1431e0e9ee8da1
[ "MIT" ]
null
null
null
arm/src/dynamixel_hand_control.cpp
AvatarQuest/AVA-ros
3e945d859155f559761f47040b1431e0e9ee8da1
[ "MIT" ]
null
null
null
#include "ros/ros.h" #include <geometry_msgs/Vector3.h> #define AXIS y double states[5]; void pinkyCB(const geometry_msgs::Vector3::ConstPtr& msg) { } void ringCB(const geometry_msgs::Vector3::ConstPtr& msg) { } void indexCB(const geometry_msgs::Vector3::ConstPtr& msg) { } void middleCB(const geometry_msgs...
23.146341
69
0.689146
AvatarQuest
c6655ba5c3b1ea97fca8c409457b22d999f41bdb
7,068
hh
C++
core/bootstrap/srpc.hh
HXLLL/rlibv2
a9165e5863dae9c54e0fe80e682f75ec31d858c6
[ "Apache-2.0" ]
17
2020-06-27T01:01:25.000Z
2022-02-26T00:20:20.000Z
core/bootstrap/srpc.hh
HXLLL/rlibv2
a9165e5863dae9c54e0fe80e682f75ec31d858c6
[ "Apache-2.0" ]
null
null
null
core/bootstrap/srpc.hh
HXLLL/rlibv2
a9165e5863dae9c54e0fe80e682f75ec31d858c6
[ "Apache-2.0" ]
6
2020-07-08T02:18:09.000Z
2022-02-16T01:36:13.000Z
#pragma once #include <mutex> // lock #include <utility> // std::pair #include "./channel.hh" #include "./multi_msg.hh" #include "./proto.hh" namespace rdmaio { namespace bootstrap { using namespace proto; enum CallStatus : u8 { Ok = 0, Nop, WrongReply, NotMatch, FatalErr, }; struct __attribute__((pa...
27.826772
84
0.604697
HXLLL
c66d7bd2cd24a9b86b2c0a2054db11807b7ad3e3
420
cpp
C++
ContainerWithMostWater/ContainerWithMostWater.cpp
yergen/leetcode
7b6dac49ac44e0bf43a4ecb4795ea8cfe6afa4ab
[ "MIT" ]
null
null
null
ContainerWithMostWater/ContainerWithMostWater.cpp
yergen/leetcode
7b6dac49ac44e0bf43a4ecb4795ea8cfe6afa4ab
[ "MIT" ]
null
null
null
ContainerWithMostWater/ContainerWithMostWater.cpp
yergen/leetcode
7b6dac49ac44e0bf43a4ecb4795ea8cfe6afa4ab
[ "MIT" ]
null
null
null
#include<vector> #include<iostream> #include<algorithm> using namespace::std; class Solution { public: int maxArea(vector<int>& height) { int m = 0, n = height.size(); for (int i = 0; i < n; ++i) for (int j = i + 1; j < n;++j) { m = max(min(height[i], height[j])*(j - i),m); } return m; } }; int main...
16.153846
48
0.566667
yergen
c66d9feab8bf43eb3a8d932bc2b5b85b71c95fab
816
cpp
C++
2out/NamedTest.cpp
DBrutski/2out
28aecd80496250641672638c9ab2cfdc9e5df36d
[ "MIT" ]
null
null
null
2out/NamedTest.cpp
DBrutski/2out
28aecd80496250641672638c9ab2cfdc9e5df36d
[ "MIT" ]
null
null
null
2out/NamedTest.cpp
DBrutski/2out
28aecd80496250641672638c9ab2cfdc9e5df36d
[ "MIT" ]
null
null
null
// Copyright (c) 2017-2020 Andrey Valyaev <dron.valyaev@gmail.com> // // This software may be modified and distributed under the terms // of the MIT license. See the LICENSE file for details. #include "NamedTest.h" #include "NamedResult.h" #include "SuiteTest.h" using namespace std; using namespace oout; NamedTest:...
25.5
83
0.746324
DBrutski
c670d9031f90bb661f04de19db1931e8af596364
4,039
cxx
C++
test/mpi/cxx/io/fileerrx.cxx
OpenCMISS-Dependencies/mpich2
cc5f4d3fd0f8c9f2774d10deaebdced77985d839
[ "Unlicense" ]
7
2015-12-31T03:15:50.000Z
2020-08-15T00:54:47.000Z
test/mpi/cxx/io/fileerrx.cxx
grondo/mvapich2-cce
ec084d8e07db1cf2ac1352ee4c604ae7dbae55cb
[ "Intel", "mpich2", "Unlicense" ]
3
2015-12-30T22:28:15.000Z
2017-05-16T19:17:42.000Z
test/mpi/cxx/io/fileerrx.cxx
grondo/mvapich2-cce
ec084d8e07db1cf2ac1352ee4c604ae7dbae55cb
[ "Intel", "mpich2", "Unlicense" ]
3
2015-12-29T22:14:56.000Z
2019-06-13T07:23:35.000Z
/* -*- Mode: C++; c-basic-offset:4 ; -*- */ /* * * (C) 2003 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ #include "mpi.h" #include "mpitestconf.h" #ifdef HAVE_IOSTREAM // Not all C++ compilers have iostream instead of iostream.h #include <iostream> #ifdef HAVE_NAMESPACE_STD // Th...
25.726115
78
0.607824
OpenCMISS-Dependencies
c690da46c5286e03571a740c0c5831a7dd3d8697
11,222
cpp
C++
src/uml/src_gen/uml/impl/TypeImpl.cpp
MichaelBranz/MDE4CPP
5b918850a37e9cee54f6c3b92f381b0458451724
[ "MIT" ]
null
null
null
src/uml/src_gen/uml/impl/TypeImpl.cpp
MichaelBranz/MDE4CPP
5b918850a37e9cee54f6c3b92f381b0458451724
[ "MIT" ]
1
2019-03-01T00:54:13.000Z
2019-03-04T02:15:50.000Z
src/uml/src_gen/uml/impl/TypeImpl.cpp
vallesch/MDE4CPP
7f8a01dd6642820913b2214d255bef2ea76be309
[ "MIT" ]
null
null
null
#include "uml/impl/TypeImpl.hpp" #ifdef NDEBUG #define DEBUG_MESSAGE(a) /**/ #else #define DEBUG_MESSAGE(a) a #endif #ifdef ACTIVITY_DEBUG_ON #define ACT_DEBUG(a) a #else #define ACT_DEBUG(a) /**/ #endif //#include "util/ProfileCallCount.hpp" #include <cassert> #include <iostream> #include <sstream> #inc...
25.105145
303
0.671894
MichaelBranz
c691771b3d95c6170f28ab814ecfc5b04c35fbad
4,732
cpp
C++
terrain_generator/src/gen/Document.cpp
marek-cel/fightersfs-tools
e692a8af7e44cfae6e35ecfa916d3ffdc46a9eb3
[ "CC0-1.0" ]
null
null
null
terrain_generator/src/gen/Document.cpp
marek-cel/fightersfs-tools
e692a8af7e44cfae6e35ecfa916d3ffdc46a9eb3
[ "CC0-1.0" ]
null
null
null
terrain_generator/src/gen/Document.cpp
marek-cel/fightersfs-tools
e692a8af7e44cfae6e35ecfa916d3ffdc46a9eb3
[ "CC0-1.0" ]
1
2021-02-22T21:22:33.000Z
2021-02-22T21:22:33.000Z
/****************************************************************************//* * Copyright (C) 2020 Marek M. Cel * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, ...
28.506024
80
0.531488
marek-cel
c691d6ee70928d2af3c4fda40cc2abc5dbe0c2bd
402
cpp
C++
Codebreaker/problems/prefixsums/prefixsums.cpp
object-oriented-human/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
2
2021-07-27T10:46:47.000Z
2021-07-27T10:47:57.000Z
Codebreaker/problems/prefixsums/prefixsums.cpp
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
Codebreaker/problems/prefixsums/prefixsums.cpp
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n, q, l, r; cin >> n >> q; long long arr[n], pre[n+1]; pre[0] = 0; for (int i = 0; i < n; i++) { cin >> arr[i]; pre[i+1] = pre[i] + arr[i]; } while...
18.272727
42
0.41791
object-oriented-human
c696f7511726ba3926ab439ccffe30451927f2ee
265
cpp
C++
codeforce1/68A. Irrational problem.cpp
khaled-farouk/My_problem_solving_solutions
46ed6481fc9b424d0714bc717cd0ba050a6638ef
[ "MIT" ]
null
null
null
codeforce1/68A. Irrational problem.cpp
khaled-farouk/My_problem_solving_solutions
46ed6481fc9b424d0714bc717cd0ba050a6638ef
[ "MIT" ]
null
null
null
codeforce1/68A. Irrational problem.cpp
khaled-farouk/My_problem_solving_solutions
46ed6481fc9b424d0714bc717cd0ba050a6638ef
[ "MIT" ]
null
null
null
#include <stdio.h> using namespace std; int main() { int p1, p2, p3, p4, a, b, res = 0; scanf("%d %d %d %d %d %d", &p1, &p2, &p3, &p4, &a, &b); for(int i = a; i <= b; ++i) if(i == (((i % p1) % p2) % p3) % p4) ++res; printf("%d\n", res); return 0; }
17.666667
56
0.449057
khaled-farouk
c6978ccc95c5107ae3b593a395d45c7448526eca
7,899
cpp
C++
Examples/Tutorial1.cpp
haskellstudio/belle_old
a5ce86954b61dbacde1d1bf24472d95246be45e5
[ "BSD-2-Clause" ]
null
null
null
Examples/Tutorial1.cpp
haskellstudio/belle_old
a5ce86954b61dbacde1d1bf24472d95246be45e5
[ "BSD-2-Clause" ]
null
null
null
Examples/Tutorial1.cpp
haskellstudio/belle_old
a5ce86954b61dbacde1d1bf24472d95246be45e5
[ "BSD-2-Clause" ]
null
null
null
/* ============================================================================== Copyright 2007-2013 William Andrew Burnson. 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. Redistribut...
39.298507
80
0.677681
haskellstudio
57927aac4a22c9f89ac86a3479e6d473a5015e39
998
cpp
C++
Hacker Rank/Equal_Stacks.cpp
aryabharat/ONLINE_CODING
3f3318c5e660d9b30c14618db8068816ba902d0f
[ "Apache-2.0" ]
1
2019-03-17T09:30:08.000Z
2019-03-17T09:30:08.000Z
Hacker Rank/Equal_Stacks.cpp
aryabharat/ONLINE_CODING
3f3318c5e660d9b30c14618db8068816ba902d0f
[ "Apache-2.0" ]
null
null
null
Hacker Rank/Equal_Stacks.cpp
aryabharat/ONLINE_CODING
3f3318c5e660d9b30c14618db8068816ba902d0f
[ "Apache-2.0" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main() { int n1,n2,n3; cin >> n1 >> n2 >> n3; vector <int> a (n1); vector <int> b (n2); vector <int> c (n3); int s1=0,s2=0,s3=0; for(int i=0;i<n1;i++) { cin >> a[i]; s1+=a[i]; } for(int i=0;i<n2;i++) { ...
16.633333
68
0.298597
aryabharat
5792f109530c70a22aa33a23ff491e5c56d6fcc2
718
cpp
C++
src/regularizers/regularizer_l1_l2.cpp
Seraphid/eddl
f627585a05edb91aaf991b898163cbe8cca66caf
[ "MIT" ]
null
null
null
src/regularizers/regularizer_l1_l2.cpp
Seraphid/eddl
f627585a05edb91aaf991b898163cbe8cca66caf
[ "MIT" ]
null
null
null
src/regularizers/regularizer_l1_l2.cpp
Seraphid/eddl
f627585a05edb91aaf991b898163cbe8cca66caf
[ "MIT" ]
null
null
null
/* * EDDL Library - European Distributed Deep Learning Library. * Version: 0.3 * copyright (c) 2019, Universidad Politรฉcnica de Valencia (UPV), PRHLT Research Centre * Date: October 2019 * Author: PRHLT Research Centre, UPV, (rparedes@prhlt.upv.es), (jon@prhlt.upv.es) * All rights reserved */ #include <stdio.h> #incl...
19.405405
86
0.643454
Seraphid
57953b4740e7cbf56e605f36e0e47547f20abe2e
1,935
cpp
C++
Ds18b20.cpp
konkers/mcp
4b926e886cb812177b3755f915bf53e866675c5d
[ "Apache-2.0" ]
null
null
null
Ds18b20.cpp
konkers/mcp
4b926e886cb812177b3755f915bf53e866675c5d
[ "Apache-2.0" ]
null
null
null
Ds18b20.cpp
konkers/mcp
4b926e886cb812177b3755f915bf53e866675c5d
[ "Apache-2.0" ]
null
null
null
// Copyright 2013 Erik Gilling <konkers@konkers.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 // // Unless required by applicab...
26.875
97
0.694057
konkers
579588c078078f70999774e00fd4cab4ecd210d1
2,055
hpp
C++
Tests/Tests.hpp
bbercovici/RigidBodyKinematics
110d30cc20251081a4558f6851bdfd5abc0fdd82
[ "MIT" ]
null
null
null
Tests/Tests.hpp
bbercovici/RigidBodyKinematics
110d30cc20251081a4558f6851bdfd5abc0fdd82
[ "MIT" ]
null
null
null
Tests/Tests.hpp
bbercovici/RigidBodyKinematics
110d30cc20251081a4558f6851bdfd5abc0fdd82
[ "MIT" ]
null
null
null
// MIT License // Copyright (c) 2018 Benjamin Bercovici // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, mod...
35.431034
81
0.771776
bbercovici
579a8f2bcac59e5a1b4c8cd04e1db176cfddd175
5,233
cpp
C++
src/thread.cpp
corehacker/ch-cpp-utils
4b03045fbecc867f7c6b088eabd8aa4cc30f1170
[ "MIT" ]
5
2017-11-05T11:41:42.000Z
2020-09-03T07:49:12.000Z
src/thread.cpp
corehacker/ch-cpp-utils
4b03045fbecc867f7c6b088eabd8aa4cc30f1170
[ "MIT" ]
1
2017-11-14T02:50:16.000Z
2017-11-14T02:50:16.000Z
src/thread.cpp
corehacker/ch-cpp-utils
4b03045fbecc867f7c6b088eabd8aa4cc30f1170
[ "MIT" ]
null
null
null
/******************************************************************************* * * BSD 2-Clause License * * Copyright (c) 2017, Sandeep Prakash * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following c...
26.974227
85
0.590101
corehacker
579cf96ef36d30823a70b491cc0015e6813be116
7,562
cpp
C++
src/gpu/GrTextureParamsAdjuster.cpp
Perspex/skia
e25fe5a294e9cee8f23207eef63fad6cffa9ced4
[ "Apache-2.0" ]
2
2019-07-19T17:40:28.000Z
2020-05-09T11:58:41.000Z
src/gpu/GrTextureParamsAdjuster.cpp
AvaloniaUI/skia
e25fe5a294e9cee8f23207eef63fad6cffa9ced4
[ "Apache-2.0" ]
null
null
null
src/gpu/GrTextureParamsAdjuster.cpp
AvaloniaUI/skia
e25fe5a294e9cee8f23207eef63fad6cffa9ced4
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrTextureParamsAdjuster.h" #include "GrCaps.h" #include "GrContext.h" #include "GrDrawContext.h" #include "GrGpu.h" #include "GrGpuResourcePriv.h" #include "GrResou...
36.009524
100
0.609627
Perspex
579e193ddcadad859910cb1a513699ace70c2912
4,623
cpp
C++
Kamek/src/music.cpp
RedStoneMatt/SuperLuigiLandWii
8b98f3b16a1e5d99681ac382d5e603248a1c53db
[ "MIT" ]
4
2021-01-18T18:14:18.000Z
2022-02-20T13:08:28.000Z
Kamek/src/music.cpp
RedStoneMatt/SuperLuigiLandWii
8b98f3b16a1e5d99681ac382d5e603248a1c53db
[ "MIT" ]
null
null
null
Kamek/src/music.cpp
RedStoneMatt/SuperLuigiLandWii
8b98f3b16a1e5d99681ac382d5e603248a1c53db
[ "MIT" ]
null
null
null
#include <game.h> #include <sfx.h> #include "music.h" bool isTrailerMode; struct HijackedStream { //const char *original; //const char *originalFast; u32 stringOffset; u32 stringOffsetFast; u32 infoOffset; u8 originalID; int streamID; }; struct Hijacker { HijackedStream stream[2]; u8 currentStream; u8 curr...
23
134
0.687432
RedStoneMatt
57a458bbb8d961b2c92c33c797a509351c88222e
865
hpp
C++
src/Net.hpp
edelkas/pfdb
f492767cb1fce18e737cdd6beeca23293a6acab4
[ "MIT" ]
null
null
null
src/Net.hpp
edelkas/pfdb
f492767cb1fce18e737cdd6beeca23293a6acab4
[ "MIT" ]
null
null
null
src/Net.hpp
edelkas/pfdb
f492767cb1fce18e737cdd6beeca23293a6acab4
[ "MIT" ]
null
null
null
#pragma once #include "Downloader.hpp" #include "Parser.hpp" enum Website { NONE, IMDB, FILMAFFINITY }; enum UrlType { MOVIE, SEARCH }; /** * Class for downloading and parsing movies and movies searches. * * Each supported website is implemented as a namespace. It is extensible. * This class is a singleton, only...
22.763158
74
0.684393
edelkas
57a56c63473220c2da0c8dbe4d200fbadf9efd18
3,049
cpp
C++
SoundManager.cpp
thuxtable/thomas-was-late-tutorial
e9d333a62a903d5d951917b35b84268ceb1831df
[ "MIT" ]
null
null
null
SoundManager.cpp
thuxtable/thomas-was-late-tutorial
e9d333a62a903d5d951917b35b84268ceb1831df
[ "MIT" ]
null
null
null
SoundManager.cpp
thuxtable/thomas-was-late-tutorial
e9d333a62a903d5d951917b35b84268ceb1831df
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "SoundManager.h" #include <SFML/Audio.hpp> using namespace sf; SoundManager::SoundManager() { //Load the sound in the buffers m_FireBuffer.loadFromFile("sound/fire1.wav"); m_FallInFireBuffer.loadFromFile("sound/fallinfire.wav"); m_FallInWaterBuffer.loadFromFile("sound/fallin...
27.718182
83
0.740899
thuxtable
57a5b85097776bebb42f508452cdfc7592037f12
541
cpp
C++
Codeforces/118A String Task.cpp
sreejonK19/online-judge-solutions
da65d635cc488c8f305e48b49727ad62649f5671
[ "MIT" ]
null
null
null
Codeforces/118A String Task.cpp
sreejonK19/online-judge-solutions
da65d635cc488c8f305e48b49727ad62649f5671
[ "MIT" ]
null
null
null
Codeforces/118A String Task.cpp
sreejonK19/online-judge-solutions
da65d635cc488c8f305e48b49727ad62649f5671
[ "MIT" ]
2
2018-11-06T19:37:56.000Z
2018-11-09T19:05:46.000Z
#include <bits/stdc++.h> using namespace std; char str[102]; int main( int argc, char ** argv ) { scanf( "%s", str ); int len = strlen( str ); for( int i = 0 ; i < len ; i++ ) { if( str[i] >= 'A' && str[i] <='Z' ) { str[i] = 'a' + (str[i] - 'A'); } } for( int i = 0 ; ...
23.521739
114
0.358595
sreejonK19
57ac3fb47e1ebac7f43a3a91551508cf2387b2b8
8,114
hpp
C++
adaptors/fftw/mpi.hpp
correaa/b-multi
1e961f877662aa7a26933834f9064d2ec8b00b4a
[ "Intel" ]
null
null
null
adaptors/fftw/mpi.hpp
correaa/b-multi
1e961f877662aa7a26933834f9064d2ec8b00b4a
[ "Intel" ]
11
2020-05-09T20:57:21.000Z
2020-06-10T00:00:17.000Z
adaptors/fftw/mpi.hpp
correaa/b-multi
1e961f877662aa7a26933834f9064d2ec8b00b4a
[ "Intel" ]
null
null
null
#if COMPILATION// -*-indent-tabs-mode:t;c-basic-offset:4;tab-width:4;-*- ln -sf $0 $0.cpp;mpicxx -g -I$HOME/prj/alf $0.cpp -o $0x -lfftw3 -lfftw3_mpi&&time mpirun -n 4 $0x&&rm $0x $0.cpp;exit #ln -sf $0 $0.cpp;mpicxx -g -I$HOME/prj/alf $0.cpp -o $0x -lfftw3 -lfftw3_mpi&&time mpirun -n 4 valgrind --leak-check=full --tr...
39.009615
287
0.678087
correaa
57adea372917bbbcf7eae81f58b06a7d8bd1f7ac
1,038
hpp
C++
engine/Engine.hpp
InfiniBrains/mobagen
262fa833195cd1b32f82ee4d825b0a39e7ebe4cb
[ "WTFPL" ]
32
2017-12-29T16:44:35.000Z
2021-08-06T23:10:28.000Z
engine/Engine.hpp
InfiniBrains/mobagen
262fa833195cd1b32f82ee4d825b0a39e7ebe4cb
[ "WTFPL" ]
66
2017-12-29T16:37:35.000Z
2019-04-19T23:57:20.000Z
engine/Engine.hpp
InfiniBrains/mobagen
262fa833195cd1b32f82ee4d825b0a39e7ebe4cb
[ "WTFPL" ]
7
2017-12-29T16:49:53.000Z
2021-08-06T23:10:35.000Z
#pragma once #include <chrono> #include "GLManager.hpp" #include "Window.hpp" #include "GLEWManager.hpp" #include "PhysicsManager.hpp" #include "Game.hpp" #include "Input.hpp" namespace mobagen { class Engine { public: Engine(Game *game, char *windowTitle, glm::vec2 windowSize); ~Engine(void); #ifdef...
19.961538
76
0.714836
InfiniBrains
57aeafc36db70ae263debb875f1aab33a499d4d9
7,683
cpp
C++
src/ppu.cpp
ceanrim/CarmiNES
f0f20b95dba916893b4c4eb41f4b15e4fd075df1
[ "BSD-2-Clause" ]
2
2018-02-15T07:40:35.000Z
2018-09-22T21:17:33.000Z
src/ppu.cpp
ceanrim/CarmiNES
f0f20b95dba916893b4c4eb41f4b15e4fd075df1
[ "BSD-2-Clause" ]
null
null
null
src/ppu.cpp
ceanrim/CarmiNES
f0f20b95dba916893b4c4eb41f4b15e4fd075df1
[ "BSD-2-Clause" ]
null
null
null
/* ======================================================================== File: Date: Revision: Creator: Carmine Foggia ======================================================================== */ /*TODO: *Simulate PPU registers completely and properly *Emulate read/write buffering *Emulate sp...
28.246324
86
0.411948
ceanrim
57aedb8e4e426e87a08dd158627d2962880dc56f
14,662
cpp
C++
Eudora71/EuShlExt/ShellHookImpl.cpp
dusong7/eudora-win
850a6619e6b0d5abc770bca8eb5f3b9001b7ccd2
[ "BSD-3-Clause-Clear" ]
10
2018-05-23T10:43:48.000Z
2021-12-02T17:59:48.000Z
Eudora71/EuShlExt/ShellHookImpl.cpp
ivanagui2/hermesmail-code
34387722d5364163c71b577fc508b567de56c5f6
[ "BSD-3-Clause-Clear" ]
1
2019-03-19T03:56:36.000Z
2021-05-26T18:36:03.000Z
Eudora71/EuShlExt/ShellHookImpl.cpp
ivanagui2/hermesmail-code
34387722d5364163c71b577fc508b567de56c5f6
[ "BSD-3-Clause-Clear" ]
11
2018-05-23T10:43:53.000Z
2021-12-27T15:42:58.000Z
#include "windows.h" #include <stdio.h> #include "ShellHookImpl.h" #include "tchar.h" #include "time.h" #include "resource.h" extern unsigned int g_cRefThisDll; extern DWORD TlsIndex; extern HANDLE g_hModule; // The Shell Factory Class CShellExtClassFactory::CShellExtClassFactory() { //DumpLogInformation("CSh...
25.49913
145
0.666417
dusong7
57afb922aa05a8271d69066a46ac26b34dcdad8f
947
hpp
C++
include/xvega/grammar/config/error_band_config.hpp
domoritz/xvega
3754dee3e7e38e79282ba267cd86c3885807a4cd
[ "BSD-3-Clause" ]
34
2020-08-14T14:32:51.000Z
2022-02-16T23:20:02.000Z
include/xvega/grammar/config/error_band_config.hpp
domoritz/xvega
3754dee3e7e38e79282ba267cd86c3885807a4cd
[ "BSD-3-Clause" ]
19
2020-08-20T20:04:39.000Z
2022-02-28T14:34:37.000Z
include/xvega/grammar/config/error_band_config.hpp
domoritz/xvega
3754dee3e7e38e79282ba267cd86c3885807a4cd
[ "BSD-3-Clause" ]
7
2020-08-14T14:18:17.000Z
2022-02-01T10:59:24.000Z
// Copyright (c) 2020, QuantStack and XVega Contributors // // Distributed under the terms of the BSD 3-Clause License. // // The full license is in the file LICENSE, distributed with this software. #ifndef XVEGA_ERROR_BAND_CONFIG_HPP #define XVEGA_ERROR_BAND_CONFIG_HPP #include "./mark_config.hpp" namespace xv { ...
33.821429
85
0.7434
domoritz
57b2e3f8c0c66b13c2c56059e8b73489931844a4
903
cpp
C++
0013_Roman_to_Integer/solution.cpp
Heliovic/LeetCode_Solutions
73d5a7aaffe62da9a9cd8a80288b260085fda08f
[ "MIT" ]
2
2019-02-18T15:32:57.000Z
2019-03-18T12:55:35.000Z
0013_Roman_to_Integer/solution.cpp
Heliovic/LeetCode_Solutions
73d5a7aaffe62da9a9cd8a80288b260085fda08f
[ "MIT" ]
null
null
null
0013_Roman_to_Integer/solution.cpp
Heliovic/LeetCode_Solutions
73d5a7aaffe62da9a9cd8a80288b260085fda08f
[ "MIT" ]
null
null
null
class Solution { public: map<char, int> mp; int romanToInt(string s) { mp['I'] = 1; mp['V'] = 5; mp['X'] = 10; mp['L'] = 50; mp['C'] = 100; mp['D'] = 500; mp['M'] = 1000; int ans = 0; for (int i = 0; i < s.size(); i++) ...
27.363636
61
0.311185
Heliovic
57b451a9b4fd704c703280407af46606c21b24e8
894
cpp
C++
tests/simple_pputil.cpp
crapp/pputil
d38edd744f3f998dd4957e659641cab2fa5c6a40
[ "MIT" ]
null
null
null
tests/simple_pputil.cpp
crapp/pputil
d38edd744f3f998dd4957e659641cab2fa5c6a40
[ "MIT" ]
null
null
null
tests/simple_pputil.cpp
crapp/pputil
d38edd744f3f998dd4957e659641cab2fa5c6a40
[ "MIT" ]
null
null
null
#include <iostream> #include "pputil.hpp" #include "simple_pputil.hpp" namespace ut = pputil; StreamOp::StreamOp(){}; StreamOp::StreamOp(std::string s) : mystring(std::move(s)){}; StreamOp::~StreamOp(){}; void StreamOp::setMyString(std::string mystring) { this->mystring = std::move(mystring); } std::string St...
25.542857
81
0.657718
crapp
57b5d5e9433f6463eccbfc6bb319306cc083cfff
8,478
cpp
C++
src/robot_model.cpp
mayataka/invariant-ekf
775d9ab5ac7599fe2fd983b8a907c241c7d3a8e0
[ "BSD-3-Clause" ]
1
2022-03-28T12:38:09.000Z
2022-03-28T12:38:09.000Z
src/robot_model.cpp
mayataka/inekf
775d9ab5ac7599fe2fd983b8a907c241c7d3a8e0
[ "BSD-3-Clause" ]
null
null
null
src/robot_model.cpp
mayataka/inekf
775d9ab5ac7599fe2fd983b8a907c241c7d3a8e0
[ "BSD-3-Clause" ]
null
null
null
#include "inekf/robot_model.hpp" namespace inekf { pinocchio::Model RobotModel::buildFloatingBaseModel( const std::string& path_to_urdf) { pinocchio::Model pin_model; pinocchio::urdf::buildModel(path_to_urdf, pinocchio::JointModelFreeFlyer(), pin_model); return pin_model; } ...
31.054945
107
0.612173
mayataka
57bdf8636eacaf95435fb2340cc319a7ba07f6d5
4,727
cpp
C++
WebKit2-7534.57.7/WebKit2-7534.57.7/Platform/qt/SharedMemorySymbian.cpp
mlcldh/appleWebKit2
39cc42a4710c9319c8da269621844493ab2ccdd6
[ "MIT" ]
1
2021-05-27T07:29:31.000Z
2021-05-27T07:29:31.000Z
WebKit2-7534.57.7/WebKit2-7534.57.7/Platform/qt/SharedMemorySymbian.cpp
mlcldh/appleWebKit2
39cc42a4710c9319c8da269621844493ab2ccdd6
[ "MIT" ]
null
null
null
WebKit2-7534.57.7/WebKit2-7534.57.7/Platform/qt/SharedMemorySymbian.cpp
mlcldh/appleWebKit2
39cc42a4710c9319c8da269621844493ab2ccdd6
[ "MIT" ]
null
null
null
/* Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) an...
28.305389
104
0.697271
mlcldh
57be0c35fcf710e6e160fa71ecdaa7a3a5a7475d
10,400
cc
C++
source/tracking/pyG4VSteppingVerbose.cc
yu22mal/geant4_pybind
ff7efc322fe53f39c7ae7ed140861052a92479fd
[ "Unlicense" ]
6
2021-08-08T08:40:13.000Z
2022-03-23T03:05:15.000Z
source/tracking/pyG4VSteppingVerbose.cc
yu22mal/geant4_pybind
ff7efc322fe53f39c7ae7ed140861052a92479fd
[ "Unlicense" ]
3
2021-12-01T14:38:06.000Z
2022-02-10T11:28:28.000Z
source/tracking/pyG4VSteppingVerbose.cc
yu22mal/geant4_pybind
ff7efc322fe53f39c7ae7ed140861052a92479fd
[ "Unlicense" ]
3
2021-07-16T13:57:34.000Z
2022-02-07T11:17:19.000Z
#include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <G4VSteppingVerbose.hh> #include <G4SteppingVerbose.hh> #include <G4SteppingManager.hh> #include <G4Navigator.hh> #include <G4VPhysicalVolume.hh> #include <G4VSensitiveDetector.hh> #include <G4ProcessVector.hh> #include <G4SteppingManager.hh> #include <...
47.058824
114
0.793846
yu22mal
57c2d05e086d53b3dd0832a7a37a3583a84af4f6
10,687
hpp
C++
include/strf/to_string.hpp
robhz786/strf
72163cb10f5cc725788bbce74ce16e4024489734
[ "BSL-1.0" ]
49
2019-12-16T10:39:22.000Z
2022-03-28T02:32:47.000Z
include/strf/to_string.hpp
ckerr/strf
72163cb10f5cc725788bbce74ce16e4024489734
[ "BSL-1.0" ]
36
2019-12-13T00:31:22.000Z
2022-03-13T18:22:14.000Z
include/strf/to_string.hpp
ckerr/strf
72163cb10f5cc725788bbce74ce16e4024489734
[ "BSL-1.0" ]
3
2019-12-07T20:05:51.000Z
2021-11-30T02:45:35.000Z
#ifndef STRF_DETAIL_OUTPUT_TYPES_STD_STRING_HPP #define STRF_DETAIL_OUTPUT_TYPES_STD_STRING_HPP // Copyright (C) (See commit logs on github.com/robhz786/strf) // 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) ...
29.199454
98
0.669879
robhz786
57c966f2fc476239a6d8772ac677792003b36486
735
cpp
C++
src/reference.cpp
cscheid/guitar
b6ae866f3724822e151d6e9ecedfabcf13860c48
[ "Apache-2.0" ]
2
2015-01-08T00:08:48.000Z
2018-10-24T22:15:27.000Z
src/reference.cpp
cscheid/guitar
b6ae866f3724822e151d6e9ecedfabcf13860c48
[ "Apache-2.0" ]
null
null
null
src/reference.cpp
cscheid/guitar
b6ae866f3724822e151d6e9ecedfabcf13860c48
[ "Apache-2.0" ]
1
2018-10-24T22:15:28.000Z
2018-10-24T22:15:28.000Z
#include "reference.h" #include "entry_points.h" using namespace Rcpp; GitReference::GitReference(git_reference *_ref) { ref = boost::shared_ptr<git_reference>(_ref, git_reference_free); } bool GitReference::has_log() { return git_reference_has_log(ref.get()); } SEXP GitReference::peel(unsigned int otype) {...
22.272727
72
0.693878
cscheid
57ce35b77d04cbea2b6b75b272998f6a8a49f8e9
1,895
cpp
C++
Includes/font.cpp
dracc/NevolutionX
a1a9495282cc5516ff17521cd57dc46dfa52b85d
[ "MIT" ]
72
2019-03-28T19:23:52.000Z
2022-03-12T05:58:19.000Z
Includes/font.cpp
dracc/NevolutionX
a1a9495282cc5516ff17521cd57dc46dfa52b85d
[ "MIT" ]
94
2019-04-30T06:59:43.000Z
2022-02-20T23:06:25.000Z
Includes/font.cpp
dracc/NevolutionX
a1a9495282cc5516ff17521cd57dc46dfa52b85d
[ "MIT" ]
26
2019-04-27T14:11:11.000Z
2022-03-27T03:18:47.000Z
#include "font.h" #include <cassert> #include "3rdparty/SDL_FontCache/SDL_FontCache.h" #include "infoLog.h" Font::Font(Renderer& renderer, const char* path) : renderer(renderer) { fcFont = FC_CreateFont(); assert(fcFont); bool load_success = FC_LoadFont(fcFont, renderer.getRenderer(), path, 20, ...
36.442308
90
0.614248
dracc
57ce4fb7cb3d20c09ecb466270ed13f31ea84b47
6,046
cpp
C++
src/HPMeshGen2/main.cpp
DanielZint/hpmeshgen
cdfb9163ed92523fcf41a127c8173097e935c0a3
[ "MIT" ]
2
2022-02-09T08:51:16.000Z
2022-02-09T08:51:27.000Z
src/HPMeshGen2/main.cpp
DanielZint/hpmeshgen
cdfb9163ed92523fcf41a127c8173097e935c0a3
[ "MIT" ]
null
null
null
src/HPMeshGen2/main.cpp
DanielZint/hpmeshgen
cdfb9163ed92523fcf41a127c8173097e935c0a3
[ "MIT" ]
null
null
null
#include <experimental/filesystem> // glog #include <glog/logging.h> #include "Config.h" #include "BsgGenerator.h" // Mesh Function #include "MeshFunctions.h" #include "Simplificator.h" #include "DMO/Solver.h" #include "GridEvaluation/eval.h" #include "baseDirectory.h" #include "Simplify.h" #include "ScalarField/...
36.421687
169
0.700298
DanielZint
57ce95504d7b142d41b21bd26ed2768dde5ff27c
712
hpp
C++
jobin/atomic.hpp
Marcos30004347/jobin
40eec7bf9579002426320253eae6eaaea6b50d10
[ "Apache-2.0" ]
2
2020-09-30T05:12:09.000Z
2020-10-12T23:40:32.000Z
jobin/atomic.hpp
Marcos30004347/Jobin
40eec7bf9579002426320253eae6eaaea6b50d10
[ "Apache-2.0" ]
null
null
null
jobin/atomic.hpp
Marcos30004347/Jobin
40eec7bf9579002426320253eae6eaaea6b50d10
[ "Apache-2.0" ]
null
null
null
#ifndef JOBIN_ATOMIC_H #define JOBIN_ATOMIC_H #include <atomic> template <typename T> class atomic { private: std::atomic<T> _atomic; public: atomic(T initial): _atomic(initial) {} atomic() {} ~atomic() {} bool compare_exchange_strong(T current_value, T new_value){ return _atomic.compare...
17.8
73
0.65309
Marcos30004347
57d3f68de943e8499169642d2af602d257560edb
2,589
cpp
C++
source/aoc/src/aoc2018/d08/solver.cpp
daduraro/aoc
9029de9d6e703fa1b20a466c1286b74ce9a7b23c
[ "BSD-2-Clause" ]
1
2019-12-06T11:29:14.000Z
2019-12-06T11:29:14.000Z
source/aoc/src/aoc2018/d08/solver.cpp
daduraro/aoc
9029de9d6e703fa1b20a466c1286b74ce9a7b23c
[ "BSD-2-Clause" ]
null
null
null
source/aoc/src/aoc2018/d08/solver.cpp
daduraro/aoc
9029de9d6e703fa1b20a466c1286b74ce9a7b23c
[ "BSD-2-Clause" ]
null
null
null
#include "aoc/solver.h" #include <memory> #include <iostream> #include <string> #include <vector> #include <array> #include <algorithm> #include <numeric> #include <iterator> #include <limits> #include <type_traits> #include <cassert> #include <ddr/data/tree.h> namespace { using namespace aoc; constexpr std:...
30.458824
107
0.555041
daduraro
57d47d9749c836f8aa60d9357a9d746672aa9e99
11,710
cpp
C++
src/kerberos/Kerberos.cpp
wollars/kerberos-machinery
95c648133a7229b94b78af74283b3a8a1574922b
[ "Unlicense" ]
1
2018-06-12T21:48:53.000Z
2018-06-12T21:48:53.000Z
src/kerberos/Kerberos.cpp
wollars/kerberos-machinery
95c648133a7229b94b78af74283b3a8a1574922b
[ "Unlicense" ]
null
null
null
src/kerberos/Kerberos.cpp
wollars/kerberos-machinery
95c648133a7229b94b78af74283b3a8a1574922b
[ "Unlicense" ]
null
null
null
#include "Kerberos.h" namespace kerberos { void Kerberos::bootstrap(StringMap & parameters) { // -------------------------------- // Set parameters from command-line setParameters(parameters); // --------------------- // Initialize kerberos ...
30.336788
110
0.453288
wollars
57d851ae0017539de24973dbefb1403309175015
3,234
hh
C++
surfaces/CenteredSphere.hh
celeritas-project/orange-port
9aa2d36984a24a02ed6d14688a889d4266f7b1af
[ "Apache-2.0", "MIT" ]
null
null
null
surfaces/CenteredSphere.hh
celeritas-project/orange-port
9aa2d36984a24a02ed6d14688a889d4266f7b1af
[ "Apache-2.0", "MIT" ]
null
null
null
surfaces/CenteredSphere.hh
celeritas-project/orange-port
9aa2d36984a24a02ed6d14688a889d4266f7b1af
[ "Apache-2.0", "MIT" ]
null
null
null
//---------------------------------*-C++-*-----------------------------------// /*! * \file surfaces/CenteredSphere.hh * \brief CenteredCenteredSphere class declaration * \note Copyright (c) 2020 Oak Ridge National Laboratory, UT-Battelle, LLC. */ //----------------------------------------------------------------...
31.096154
85
0.552876
celeritas-project
57dcecfb55e531f906d765c095cf588fe4d9794e
9,684
cpp
C++
Libraries/Utility/JSON.cpp
xycsoscyx/gekengine
cb9c933c6646169c0af9c7e49be444ff6f97835d
[ "MIT" ]
1
2019-04-22T00:10:49.000Z
2019-04-22T00:10:49.000Z
Libraries/Utility/JSON.cpp
xycsoscyx/gekengine
cb9c933c6646169c0af9c7e49be444ff6f97835d
[ "MIT" ]
null
null
null
Libraries/Utility/JSON.cpp
xycsoscyx/gekengine
cb9c933c6646169c0af9c7e49be444ff6f97835d
[ "MIT" ]
2
2017-10-16T15:40:55.000Z
2019-04-22T00:10:50.000Z
#include <jsoncons/json.hpp> #include "GEK/Utility/JSON.hpp" #include "GEK/Utility/FileSystem.hpp" #include "GEK/Utility/Context.hpp" namespace Gek { const JSON::Array JSON::EmptyArray = JSON::Array(); const JSON::Object JSON::EmptyObject = JSON::Object(); const JSON JSON::Empty = JSON(); JSON GetFrom...
28.821429
169
0.491119
xycsoscyx
57e07c8bb6d9a6242cd4d2c8d2a11f9aed8cbe87
2,730
cpp
C++
week5/code/btree_tree_print.cpp
hj02/Vor2015
675641f12773229e242c6e0bde290bdd537bf830
[ "MIT" ]
null
null
null
week5/code/btree_tree_print.cpp
hj02/Vor2015
675641f12773229e242c6e0bde290bdd537bf830
[ "MIT" ]
null
null
null
week5/code/btree_tree_print.cpp
hj02/Vor2015
675641f12773229e242c6e0bde290bdd537bf830
[ "MIT" ]
null
null
null
#include <iostream> #include <cstdio> using namespace std; struct TreeNode { int data; TreeNode* left; TreeNode* right; bool is_leaf(); }; bool TreeNode::is_leaf() { return (left == NULL && right == NULL); } typedef TreeNode* NodePtr; NodePtr parse_tree() { char c; cin >> c; // Read ( ...
18.571429
78
0.558974
hj02
57e25bcc359aa95ba9adf31c0df0fca12ef8f594
8,760
cc
C++
src/vw/GPU/TexAlloc.cc
tkeemon/visionworkbench
df59fcb31191e1fc4fecfe1901963da1614a52b1
[ "NASA-1.3" ]
1
2020-06-02T04:06:43.000Z
2020-06-02T04:06:43.000Z
src/vw/GPU/TexAlloc.cc
tkeemon/visionworkbench
df59fcb31191e1fc4fecfe1901963da1614a52b1
[ "NASA-1.3" ]
null
null
null
src/vw/GPU/TexAlloc.cc
tkeemon/visionworkbench
df59fcb31191e1fc4fecfe1901963da1614a52b1
[ "NASA-1.3" ]
null
null
null
// __BEGIN_LICENSE__ // Copyright (C) 2006-2010 United States Government as represented by // the Administrator of the National Aeronautics and Space Administration. // All Rights Reserved. // __END_LICENSE__ #include <vw/GPU/TexAlloc.h> namespace vw { namespace GPU { //###########################################...
39.459459
157
0.575571
tkeemon
57e2fcceba37ff5cc50f347e505114f0dc1297b5
1,162
hpp
C++
include/mettle/driver/subprocess_test_runner.hpp
JohnGalbraith/mettle
38b70fe1dc0f30e98b768a37108196328182b5f4
[ "BSD-3-Clause" ]
1
2019-06-07T08:03:33.000Z
2019-06-07T08:03:33.000Z
include/mettle/driver/subprocess_test_runner.hpp
JohnGalbraith/mettle
38b70fe1dc0f30e98b768a37108196328182b5f4
[ "BSD-3-Clause" ]
null
null
null
include/mettle/driver/subprocess_test_runner.hpp
JohnGalbraith/mettle
38b70fe1dc0f30e98b768a37108196328182b5f4
[ "BSD-3-Clause" ]
2
2018-07-02T19:28:43.000Z
2019-06-07T08:03:35.000Z
#ifndef INC_METTLE_DRIVER_SUBPROCESS_TEST_RUNNER_HPP #define INC_METTLE_DRIVER_SUBPROCESS_TEST_RUNNER_HPP #include <chrono> #include <optional> #ifdef _WIN32 # include <wtypes.h> #endif #include <mettle/suite/compiled_suite.hpp> #include <mettle/driver/log/core.hpp> #include <mettle/driver/detail/export.hpp> names...
21.924528
77
0.74957
JohnGalbraith
57e89dd379394574585b82b36dc6d3096913ef18
155
cc
C++
Emscripten/file_io/file_io.cc
stephenfire/Book-DISO-WebAssembly
35054b59caa4284680d7dd73bf2637de5631caa7
[ "MIT" ]
57
2018-02-14T02:12:00.000Z
2022-03-04T09:12:26.000Z
Emscripten/file_io/file_io.cc
stephenfire/Book-DISO-WebAssembly
35054b59caa4284680d7dd73bf2637de5631caa7
[ "MIT" ]
15
2018-08-23T12:37:53.000Z
2021-05-09T10:22:27.000Z
Emscripten/file_io/file_io.cc
stephenfire/Book-DISO-WebAssembly
35054b59caa4284680d7dd73bf2637de5631caa7
[ "MIT" ]
15
2019-01-27T09:35:19.000Z
2022-02-03T13:56:03.000Z
#include <iostream> using namespace std; int main(int argc, char **argv) { char _t; cin >> _t; cout << _t << endl; cerr << _t << endl; return 0; }
14.090909
33
0.593548
stephenfire
57f3c03fc5ddc707c1aec4b9ddec71cd50503ead
8,879
inl
C++
Synergy/src/Synergy/System/System.inl
nmrsmn/synergy
7f77c70c131debe66d2e91e00827fd30e736cf81
[ "MIT" ]
null
null
null
Synergy/src/Synergy/System/System.inl
nmrsmn/synergy
7f77c70c131debe66d2e91e00827fd30e736cf81
[ "MIT" ]
25
2020-04-05T11:05:08.000Z
2020-06-07T12:48:58.000Z
Synergy/src/Synergy/System/System.inl
nmrsmn/synergy
7f77c70c131debe66d2e91e00827fd30e736cf81
[ "MIT" ]
null
null
null
// Created by Niels Marsman on 15-05-2020. // Copyright ยฉ 2020 Niels Marsman. All rights reserved. #ifndef SYNERGY_SYSTEM_SYSTEM_INLINE #define SYNERGY_SYSTEM_SYSTEM_INLINE template <typename T> template <typename... Args> inline Synergy::System<T>::System(Synergy::Scene& scene, const std::string& name, Args&&... arg...
25.368571
110
0.718212
nmrsmn
57f9db00d28f16b0c941d0263caa49e29c65dc9f
1,065
cpp
C++
src/Network/Nodes/CallbackNode.cpp
dmalysiak/Lazarus
925d92843e311d2cd5afd437766563d0d5ab9052
[ "Apache-2.0" ]
1
2019-04-29T05:31:32.000Z
2019-04-29T05:31:32.000Z
src/Network/Nodes/CallbackNode.cpp
dmalysiak/Lazarus
925d92843e311d2cd5afd437766563d0d5ab9052
[ "Apache-2.0" ]
null
null
null
src/Network/Nodes/CallbackNode.cpp
dmalysiak/Lazarus
925d92843e311d2cd5afd437766563d0d5ab9052
[ "Apache-2.0" ]
null
null
null
/* * CallbackNode.cpp * * Created on: Aug 24, 2013 * Author: Darius Malysiak */ #include "CallbackNode.h" namespace Lazarus { CallbackNode::CallbackNode(unsigned int nodeID, Frame* frame) { m_communication_in_progress = false; mp_frame = frame; mp_com_callback = NULL; pthread_mutex_init(&m_mutex,NULL...
14.391892
69
0.749296
dmalysiak
57fe0e840b0d57f682a7a81320a4a8437b8c5cec
2,008
cpp
C++
SimpleCalculator/GlobalMgr.cpp
KeNorizon/SimpleCalculator
3e0cdc9b96d9474f4ff0279612fbd7bbb933306a
[ "BSD-2-Clause" ]
1
2019-10-30T16:16:50.000Z
2019-10-30T16:16:50.000Z
SimpleCalculator/GlobalMgr.cpp
KeNorizon/SimpleCalculator
3e0cdc9b96d9474f4ff0279612fbd7bbb933306a
[ "BSD-2-Clause" ]
null
null
null
SimpleCalculator/GlobalMgr.cpp
KeNorizon/SimpleCalculator
3e0cdc9b96d9474f4ff0279612fbd7bbb933306a
[ "BSD-2-Clause" ]
null
null
null
#include "GlobalMgr.h" #include <iostream> #include "ResultPanel.h" #include <QPoint> GlobalMgr *g_Data = nullptr; GlobalMgr::GlobalMgr() { g_Data = this; Visual.updateParamCache(); RootExpr = new HorizontalExpression(nullptr); Cursor.setWithoutBrighten(RootExpr, 0); Config.readFromFile(); markExprDirty(); ...
16.325203
55
0.725598
KeNorizon
57fff938372a00d8ffcd417e27f78b46016b987b
711
cpp
C++
core/geometry/GpuProgramManager.cpp
billhj/Etoile2015
c9311fc2a901cd60b2aeead5462ca8d6f7c5aa3a
[ "Apache-2.0" ]
null
null
null
core/geometry/GpuProgramManager.cpp
billhj/Etoile2015
c9311fc2a901cd60b2aeead5462ca8d6f7c5aa3a
[ "Apache-2.0" ]
null
null
null
core/geometry/GpuProgramManager.cpp
billhj/Etoile2015
c9311fc2a901cd60b2aeead5462ca8d6f7c5aa3a
[ "Apache-2.0" ]
null
null
null
/** * Copyright(C) 2009-2012 * @author Jing HUANG * @file GpuProgramManager.cpp * @brief * @date 1/2/2011 */ #include "GpuProgramManager.h" #include "GpuProgram.h" #include <assert.h> /** * @brief For tracking memory leaks under windows using the crtdbg */ #if ( defined( _DEBUG ) || defined( DEBUG ) ...
18.230769
78
0.700422
billhj
5204b80bbd7f0f5d2e6165e56866d28c617d7b03
666
cpp
C++
C++/TheFirst/CODE FILES/Numbers/simpleCalculator.cpp
Lakshmivallala/CPP
374bcdedd15a76fc4fa7b9d6c9dd3a140db859f1
[ "MIT" ]
null
null
null
C++/TheFirst/CODE FILES/Numbers/simpleCalculator.cpp
Lakshmivallala/CPP
374bcdedd15a76fc4fa7b9d6c9dd3a140db859f1
[ "MIT" ]
null
null
null
C++/TheFirst/CODE FILES/Numbers/simpleCalculator.cpp
Lakshmivallala/CPP
374bcdedd15a76fc4fa7b9d6c9dd3a140db859f1
[ "MIT" ]
null
null
null
#include <iostream> #include <cmath> using namespace std; int main() //function { int a,b; cout<<"Enter two integer numbers: "<<endl; cin>>a>>b; cout<<a+b<<endl; //try inputing float numbers cout<<a-b<<endl; cout<<a*b<<endl; cout<<a/b<<endl; cout<<a%b<<endl; //observe: give the inputs...
20.181818
168
0.585586
Lakshmivallala
5209275a8a103556ebdfbab109b834e49e3bd8b5
53
cpp
C++
Code/EditorPlugins/PhysX/EnginePluginPhysX/EnginePluginPhysX.cpp
Tekh-ops/ezEngine
d6a5887d8709f267bf8f2943ef15054e29f6d3d5
[ "MIT" ]
703
2015-03-07T15:30:40.000Z
2022-03-30T00:12:40.000Z
Code/EditorPlugins/PhysX/EnginePluginPhysX/EnginePluginPhysX.cpp
Tekh-ops/ezEngine
d6a5887d8709f267bf8f2943ef15054e29f6d3d5
[ "MIT" ]
233
2015-01-11T16:54:32.000Z
2022-03-19T18:00:47.000Z
Code/EditorPlugins/PhysX/EnginePluginPhysX/EnginePluginPhysX.cpp
Tekh-ops/ezEngine
d6a5887d8709f267bf8f2943ef15054e29f6d3d5
[ "MIT" ]
101
2016-10-28T14:05:10.000Z
2022-03-30T19:00:59.000Z
#include <EnginePluginPhysX/EnginePluginPhysXPCH.h>
17.666667
51
0.849057
Tekh-ops
520c12bbeb830c25bcb727fb4c5275901b6acc88
249
hpp
C++
src/Camera/Camera2D.hpp
fqhd/Sokuban
1b41fb6c6e7c865447824eaffce0dff8c7efafa4
[ "MIT" ]
1
2021-11-17T07:52:45.000Z
2021-11-17T07:52:45.000Z
src/Camera/Camera2D.hpp
fqhd/Sokuban
1b41fb6c6e7c865447824eaffce0dff8c7efafa4
[ "MIT" ]
null
null
null
src/Camera/Camera2D.hpp
fqhd/Sokuban
1b41fb6c6e7c865447824eaffce0dff8c7efafa4
[ "MIT" ]
null
null
null
#ifndef CAMERA2D_H #define CAMERA2D_H #include <glm/gtc/matrix_transform.hpp> class Camera2D { public: void init(unsigned int width, unsigned int height); const glm::mat4& getMatrix(); private: glm::mat4 m_matrix; }; #endif
11.318182
56
0.690763
fqhd
648f699375d91de2bb01c878a24392fb07b2a727
1,828
cpp
C++
Dll/Monoblock/Monoblock.cpp
buzyaba/SimEngine
e5469f927154de43ea52ad74c0ca4a0af9a7b721
[ "MIT" ]
5
2019-10-21T11:38:56.000Z
2020-05-30T04:50:50.000Z
Dll/Monoblock/Monoblock.cpp
buzyaba/SimEngine
e5469f927154de43ea52ad74c0ca4a0af9a7b721
[ "MIT" ]
2
2020-03-16T13:16:27.000Z
2020-10-10T07:35:15.000Z
Dll/Monoblock/Monoblock.cpp
buzyaba/SimEngine
e5469f927154de43ea52ad74c0ca4a0af9a7b721
[ "MIT" ]
3
2019-10-10T15:10:57.000Z
2020-02-14T13:11:50.000Z
#include "Monoblock.h" #include <random> // static std::random_device rd; // static std::mt19937 gen(rd()); // static std::bernoulli_distribution d(0.02); TMonoblock::TMonoblock(std::string _name) : TObjectOfObservation(_name) { properties.insert( {"IsWork", new TProperties({{"IsWork", 2}}, true, "IsWork")});...
29.967213
80
0.603392
buzyaba
64942fb5d9162df6456c0e6a21199f8274a974e3
6,637
cc
C++
node_modules/aerospike/src/main/client.cc
EnriqueSampaio/aero-livechat
29af57560e022a5958379445852def2cab94aca0
[ "MIT" ]
null
null
null
node_modules/aerospike/src/main/client.cc
EnriqueSampaio/aero-livechat
29af57560e022a5958379445852def2cab94aca0
[ "MIT" ]
null
null
null
node_modules/aerospike/src/main/client.cc
EnriqueSampaio/aero-livechat
29af57560e022a5958379445852def2cab94aca0
[ "MIT" ]
null
null
null
/******************************************************************************* * Copyright 2013-2014 Aerospike, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://ww...
33.862245
95
0.612024
EnriqueSampaio
6495723b7e66913921e9e390dec342a7f8cd962c
14,381
cpp
C++
lib/ModbusAPI.cpp
mensinda/modbusSMA
0c2ddd28123ee6a3032fc82d5be8e9c6cfd9a979
[ "Apache-2.0" ]
1
2020-03-15T18:53:26.000Z
2020-03-15T18:53:26.000Z
lib/ModbusAPI.cpp
mensinda/modbusSMA
0c2ddd28123ee6a3032fc82d5be8e9c6cfd9a979
[ "Apache-2.0" ]
null
null
null
lib/ModbusAPI.cpp
mensinda/modbusSMA
0c2ddd28123ee6a3032fc82d5be8e9c6cfd9a979
[ "Apache-2.0" ]
1
2022-03-14T11:06:26.000Z
2022-03-14T11:06:26.000Z
/* * Copyright (C) 2018 Daniel Mensinger * * 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 agree...
31.331155
120
0.655448
mensinda
649c19757cdfa81157581520e6f501a82479ee44
911
cpp
C++
cpp/src/network/broker-add.cpp
zlnov/quick-pack
4fffcc56045852b034b60a1185901a001eff87a7
[ "MIT" ]
null
null
null
cpp/src/network/broker-add.cpp
zlnov/quick-pack
4fffcc56045852b034b60a1185901a001eff87a7
[ "MIT" ]
null
null
null
cpp/src/network/broker-add.cpp
zlnov/quick-pack
4fffcc56045852b034b60a1185901a001eff87a7
[ "MIT" ]
null
null
null
#include "broker.hpp" namespace quick_pack{ uint32_t Broker::add_internal_socket(const std::string &p_host, const std::string &p_port, bool p_is_ipv6){ auto sock = new SocketDetail(); sock->bind(p_host, p_port, p_is_ipv6); return this->m_internal_socket_detail_manager.add_socket(sock); } uint32_t Broker::add_ex...
35.038462
107
0.782656
zlnov
64a12540259cae2d8ccbd0733f9f922d530d0f46
1,069
hpp
C++
include/bglgen_app.hpp
magicmoremagic/bglgen
aa47b41a2212d7af9c7121ca036dc87389e10e6d
[ "MIT" ]
null
null
null
include/bglgen_app.hpp
magicmoremagic/bglgen
aa47b41a2212d7af9c7121ca036dc87389e10e6d
[ "MIT" ]
null
null
null
include/bglgen_app.hpp
magicmoremagic/bglgen
aa47b41a2212d7af9c7121ca036dc87389e10e6d
[ "MIT" ]
null
null
null
#pragma once #ifndef BE_BGLGEN_BGLGEN_APP_HPP_ #define BE_BGLGEN_BGLGEN_APP_HPP_ #include "lexer.hpp" #include <be/core/lifecycle.hpp> #include <be/core/filesystem.hpp> #include <be/belua/context.hpp> #include <be/sqlite/db.hpp> #include <be/sqlite/static_stmt_cache.hpp> namespace be::bglgen { //////////////////////...
20.960784
79
0.664172
magicmoremagic
64a179c03a46437a203c78593d8711ecf0484346
819
cpp
C++
engine/entity.cpp
jarreed0/ArchGE
c995caf86b11f89f45fcfe1027c6068662dfcde0
[ "Apache-2.0" ]
12
2017-02-09T21:03:41.000Z
2021-04-26T14:50:20.000Z
engine/entity.cpp
jarreed0/ArchGE
c995caf86b11f89f45fcfe1027c6068662dfcde0
[ "Apache-2.0" ]
null
null
null
engine/entity.cpp
jarreed0/ArchGE
c995caf86b11f89f45fcfe1027c6068662dfcde0
[ "Apache-2.0" ]
null
null
null
#include "entity.h" Entity::Entity() {} Entity::~Entity() {} void Entity::damage(double d) { health -= d; if(health >= 0) { health = 0; kill(); } } void Entity::heal(double h) { health += h; if(h > maxHealth) { health = maxHealth; } } void Entity::kill() { setHealth(0); deactivate(); } v...
16.058824
46
0.608059
jarreed0
64a402fb135380ba4476648e6f73fbaabbad02e7
1,871
cpp
C++
src/lab_m1/Tema3/SpotLight.cpp
octaviantorcea/EGC
55dfe03a5be17de1853803a9fde19db7929fdf93
[ "MIT", "BSD-3-Clause" ]
null
null
null
src/lab_m1/Tema3/SpotLight.cpp
octaviantorcea/EGC
55dfe03a5be17de1853803a9fde19db7929fdf93
[ "MIT", "BSD-3-Clause" ]
null
null
null
src/lab_m1/Tema3/SpotLight.cpp
octaviantorcea/EGC
55dfe03a5be17de1853803a9fde19db7929fdf93
[ "MIT", "BSD-3-Clause" ]
null
null
null
#include "SpotLight.h" tema3::SpotLight::SpotLight(glm::vec3 position) { this->position = position; this->direction = glm::vec3(0, -1, 0); this->cutoffAngle = 14.03f; this->color = glm::vec3((float)(rand() % 256) / 256, (float)(rand() % 256) / 256, (float)(rand() % 256) / 256); this->intensity = 3.5f; th...
25.630137
113
0.652592
octaviantorcea
64aa3c32e332ace5f6889bb4d95a5223c541cbe5
3,826
cpp
C++
trace_server/dock/dockmanagermodel.cpp
mojmir-svoboda/DbgToolkit
590887987d0856032be906068a3103b6ce31d21c
[ "MIT" ]
null
null
null
trace_server/dock/dockmanagermodel.cpp
mojmir-svoboda/DbgToolkit
590887987d0856032be906068a3103b6ce31d21c
[ "MIT" ]
null
null
null
trace_server/dock/dockmanagermodel.cpp
mojmir-svoboda/DbgToolkit
590887987d0856032be906068a3103b6ce31d21c
[ "MIT" ]
null
null
null
#include "dockmanagermodel.h" #include <QString> #include <QMainWindow> #include "dockmanager.h" #include "dock.h" DockManagerModel::DockManagerModel (DockManager & mgr, QObject * parent, tree_data_t * data) : TreeModel<DockedInfo>(parent, data) , m_manager(mgr) { qDebug("%s", __FUNCTION__); } DockManagerModel::~D...
27.724638
97
0.717721
mojmir-svoboda
64b2ee47e183ef510bfa1b03149072d61a16d279
2,118
cpp
C++
AnimationEditor/Model.cpp
RavioliFinoli/AnimationEditor
d106371c1307661611d6783d8891e9ac52ffd1a9
[ "MIT" ]
null
null
null
AnimationEditor/Model.cpp
RavioliFinoli/AnimationEditor
d106371c1307661611d6783d8891e9ac52ffd1a9
[ "MIT" ]
null
null
null
AnimationEditor/Model.cpp
RavioliFinoli/AnimationEditor
d106371c1307661611d6783d8891e9ac52ffd1a9
[ "MIT" ]
null
null
null
#include "Model.h" #define CLIP(x) (x.clip) namespace AE { Model::Model() { using namespace DirectX; m_InputLayout->Release(); m_VertexBuffer->Release(); m_Translation = { 0.0f, 0.0f, 0.0f, 1.0f }; m_RotationQuaternion = { 0.0f, 0.0f, 0.0f, 1.0f }; m_Scale = { 1.0f, 1.0f, 1.0f, 0.0f }; XMStoreFl...
19.611111
188
0.695467
RavioliFinoli
64cbbd932adae5e4ba8c99bedcf37305053e919f
1,129
hpp
C++
ch12/Queue.hpp
bashell/CppStandardLibrary
2aae03019288132c911036aeb9ba36edc56e510b
[ "MIT" ]
null
null
null
ch12/Queue.hpp
bashell/CppStandardLibrary
2aae03019288132c911036aeb9ba36edc56e510b
[ "MIT" ]
null
null
null
ch12/Queue.hpp
bashell/CppStandardLibrary
2aae03019288132c911036aeb9ba36edc56e510b
[ "MIT" ]
null
null
null
#ifndef QUEUE_HPP #define QUEUE_HPP #include <deque> #include <exception> template <typename T> class Queue { protected: std::deque<T> c; // container for the elements public: // exception class for pop() and front() with empty queue class ReadEmptyQueue : public std::exception { public: ...
20.160714
62
0.545616
bashell
64cbf46dc282a5b8b420948d0cb48f6f1718aa3b
5,764
cpp
C++
src/Broadcaster2006/Manager/HDView.cpp
pedroroque/DigitalBroadcaster
279e65b348421dcd8db53ebb588154b85dc169e9
[ "MIT" ]
null
null
null
src/Broadcaster2006/Manager/HDView.cpp
pedroroque/DigitalBroadcaster
279e65b348421dcd8db53ebb588154b85dc169e9
[ "MIT" ]
null
null
null
src/Broadcaster2006/Manager/HDView.cpp
pedroroque/DigitalBroadcaster
279e65b348421dcd8db53ebb588154b85dc169e9
[ "MIT" ]
null
null
null
// HDView.cpp : implementation file // #include "stdafx.h" #include "Manager.h" #include "HDView.h" #include "Folder.h" #include "..\include\rspath.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif extern CString g_strMainConnect; extern CImageList *g_ilTree; ///////...
21.669173
135
0.6466
pedroroque
64ce8846ecf5e0b61a7aced169974e31679ab830
533
hpp
C++
include/ampi/coro/stdcoro.hpp
palebedev/ampi
a7feb7f4b51469fd24ff0fa2c8a9b8592cbf309a
[ "Apache-2.0" ]
null
null
null
include/ampi/coro/stdcoro.hpp
palebedev/ampi
a7feb7f4b51469fd24ff0fa2c8a9b8592cbf309a
[ "Apache-2.0" ]
null
null
null
include/ampi/coro/stdcoro.hpp
palebedev/ampi
a7feb7f4b51469fd24ff0fa2c8a9b8592cbf309a
[ "Apache-2.0" ]
1
2021-03-30T15:49:55.000Z
2021-03-30T15:49:55.000Z
// Copyright 2021 Pavel A. Lebedev // Licensed under the Apache License, Version 2.0. // (See accompanying file LICENSE.txt or copy at // http://www.apache.org/licenses/LICENSE-2.0) // SPDX-License-Identifier: Apache-2.0 #ifndef UUID_2B9E0A06_885B_41B9_B4DB_2D184249766E #define UUID_2B9E0A06_885B_41B9_B4DB_2D18424976...
28.052632
57
0.778612
palebedev
64d87c98347348152c2e9be766e005bdba090924
4,085
cpp
C++
rai/GeoOptim/geoOptim.cpp
bgheneti/rai
4ac7c8444da0c30b141cf40ffed4414ef1ca3e81
[ "MIT" ]
null
null
null
rai/GeoOptim/geoOptim.cpp
bgheneti/rai
4ac7c8444da0c30b141cf40ffed4414ef1ca3e81
[ "MIT" ]
null
null
null
rai/GeoOptim/geoOptim.cpp
bgheneti/rai
4ac7c8444da0c30b141cf40ffed4414ef1ca3e81
[ "MIT" ]
null
null
null
/* ------------------------------------------------------------------ Copyright (c) 2017 Marc Toussaint email: marc.toussaint@informatik.uni-stuttgart.de This code is distributed under the MIT License. Please see <root-path>/LICENSE for details. ----------------------------------------------------...
27.979452
123
0.4541
bgheneti
64db3a57e57ff0f5e78c5cec2c324e672ce06a6d
1,172
cpp
C++
Helios/src/Window.cpp
rgracari/helio_test
2d516d16da4252c8f92f5c265b6151c6e87bc907
[ "Apache-2.0" ]
null
null
null
Helios/src/Window.cpp
rgracari/helio_test
2d516d16da4252c8f92f5c265b6151c6e87bc907
[ "Apache-2.0" ]
null
null
null
Helios/src/Window.cpp
rgracari/helio_test
2d516d16da4252c8f92f5c265b6151c6e87bc907
[ "Apache-2.0" ]
null
null
null
#include "Window.hpp" namespace Helio { Window::Window(const std::string& windowName) { Init(); std::cout << "Window Created" << std::endl; window = SDL_CreateWindow( windowName.c_str(), SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE); ...
20.561404
99
0.617747
rgracari
64e59e601ecc79a53e407c06f521aeee35395376
180
cpp
C++
src/sfHelperControl.cpp
ArthurClemens/SoundField
645f0a421ba719f253938c030dd1b4feb7ee6097
[ "MIT" ]
2
2018-07-02T04:00:02.000Z
2020-02-19T09:04:40.000Z
src/sfHelperControl.cpp
ArthurClemens/SoundField
645f0a421ba719f253938c030dd1b4feb7ee6097
[ "MIT" ]
null
null
null
src/sfHelperControl.cpp
ArthurClemens/SoundField
645f0a421ba719f253938c030dd1b4feb7ee6097
[ "MIT" ]
null
null
null
#include "sfHelperControl.h" void sfHelperControl::setLoc(ofPoint inLoc) { loc = inLoc; } void sfHelperControl::setClickLoc(ofPoint inClickLoc) { offset = inClickLoc - loc; }
16.363636
55
0.744444
ArthurClemens
64f98d0fa33a59839306941618e3547b1c8a5b20
1,263
hpp
C++
topbar.hpp
mehhdiii/OOP-Game-City-Builder-CS-224-Spring-2020
91d74519505cb39b551a6fd18485516dbac2ec9c
[ "FTL" ]
1
2022-01-14T01:31:33.000Z
2022-01-14T01:31:33.000Z
topbar.hpp
mehhdiii/OOP-Game-City-Builder-CS-224-Spring-2020
91d74519505cb39b551a6fd18485516dbac2ec9c
[ "FTL" ]
null
null
null
topbar.hpp
mehhdiii/OOP-Game-City-Builder-CS-224-Spring-2020
91d74519505cb39b551a6fd18485516dbac2ec9c
[ "FTL" ]
2
2020-07-25T07:59:54.000Z
2022-03-29T02:35:51.000Z
#include "SDL.h" #include "unit.hpp" #include<string> #include<iostream> #include<vector> #include"draw_text.hpp" #pragma once class Topbar: public Unit{ private: int number_of_bars=4; // different number of sliders we can have int transition_in_stat_sprite =5; // indicates the number of stat...
34.135135
95
0.669834
mehhdiii
8f01886c94162a358ee1a2c2033f824f111a561f
701
cpp
C++
tests/src/ScopedTimerTests.cpp
TemporalResearch/trlang
3bfb98e074cfcfd7f3f3dfe49afc7931f2366405
[ "MIT" ]
null
null
null
tests/src/ScopedTimerTests.cpp
TemporalResearch/trlang
3bfb98e074cfcfd7f3f3dfe49afc7931f2366405
[ "MIT" ]
null
null
null
tests/src/ScopedTimerTests.cpp
TemporalResearch/trlang
3bfb98e074cfcfd7f3f3dfe49afc7931f2366405
[ "MIT" ]
null
null
null
// // Created by Michael Lynch on 21/06/2021. // #include <trlang/timers/ScopedTimer.hpp> #include <auto_test.hpp> #include <catch2/catch.hpp> TRL_TIMER_GROUP( TEST_1, TEST_2); TEST_CASE("shouldDoSomething", "[ManualTest]") { trl::ScopedTimer<>::initTimers(); { trl::ScopedTimer<> tim...
18.447368
59
0.584879
TemporalResearch
8f09e9b0635be12ac9421df7c5e8dc6a531570c3
4,418
hpp
C++
Test/Service/Memory/Memory/Test/PoolShared.hpp
KonstantinTomashevich/Emergence
83b1d52bb62bf619f9402e3081dd9de6b0cb232c
[ "Apache-2.0" ]
3
2021-06-02T05:06:48.000Z
2022-01-26T09:39:44.000Z
Test/Service/Memory/Memory/Test/PoolShared.hpp
KonstantinTomashevich/Emergence
83b1d52bb62bf619f9402e3081dd9de6b0cb232c
[ "Apache-2.0" ]
null
null
null
Test/Service/Memory/Memory/Test/PoolShared.hpp
KonstantinTomashevich/Emergence
83b1d52bb62bf619f9402e3081dd9de6b0cb232c
[ "Apache-2.0" ]
null
null
null
#include <vector> #include <Testing/Testing.hpp> namespace Emergence::Memory::Test::Pool { struct TestItem { uint64_t integer; float floating; bool flag; }; template <typename Pool> struct FullPoolContext { static constexpr std::size_t PAGE_CAPACITY = 8u; static constexpr std::size_t PAGES_TO_FIL...
33.984615
120
0.585785
KonstantinTomashevich
557ce8f8b281fcc504e999b28331a0bac59a68a2
1,653
cpp
C++
thirdparty/AngelCode/sdk/tests/test_build_performance/source/test_basic.cpp
kcat/XLEngine
0e735ad67fa40632add3872e0cbe5a244689cbe5
[ "MIT" ]
1
2021-07-25T15:10:39.000Z
2021-07-25T15:10:39.000Z
thirdparty/AngelCode/sdk/tests/test_build_performance/source/test_basic.cpp
kcat/XLEngine
0e735ad67fa40632add3872e0cbe5a244689cbe5
[ "MIT" ]
null
null
null
thirdparty/AngelCode/sdk/tests/test_build_performance/source/test_basic.cpp
kcat/XLEngine
0e735ad67fa40632add3872e0cbe5a244689cbe5
[ "MIT" ]
null
null
null
// // Test author: Andreas Jonsson // #include "utils.h" #include <string> using std::string; namespace TestBasic { #define TESTNAME "TestBasic" static const char *scriptBegin = "void main() \n" "{ ...
23.956522
83
0.506352
kcat
55888732f06171bdbcd4fcf63b7c1339a50da931
6,727
hpp
C++
cmake-build-debug/test/unit/mechanisms/test_kinlva.hpp
anstaf/arbsimd
c4ba87b02b26a47ef33d0a3eba78a4f330c88073
[ "BSD-3-Clause" ]
null
null
null
cmake-build-debug/test/unit/mechanisms/test_kinlva.hpp
anstaf/arbsimd
c4ba87b02b26a47ef33d0a3eba78a4f330c88073
[ "BSD-3-Clause" ]
null
null
null
cmake-build-debug/test/unit/mechanisms/test_kinlva.hpp
anstaf/arbsimd
c4ba87b02b26a47ef33d0a3eba78a4f330c88073
[ "BSD-3-Clause" ]
null
null
null
#pragma once #include <cmath> #include <arbor/mechanism_abi.h> extern "C" { arb_mechanism_type make_testing_test_kinlva() { // Tables static arb_field_info globals[] = { { "gbar", "S / cm2", 0.0002, -179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458...
149.488889
707
0.888658
anstaf
55959369f97f125187ae85b7f187fa7af918a52e
1,681
cpp
C++
src/shared/engine/Check_Win_Command.cpp
Kuga23/Projet-M2
85c879b8fd1ed4fdf89eedd9f89841cbd7a1e433
[ "MIT" ]
null
null
null
src/shared/engine/Check_Win_Command.cpp
Kuga23/Projet-M2
85c879b8fd1ed4fdf89eedd9f89841cbd7a1e433
[ "MIT" ]
null
null
null
src/shared/engine/Check_Win_Command.cpp
Kuga23/Projet-M2
85c879b8fd1ed4fdf89eedd9f89841cbd7a1e433
[ "MIT" ]
null
null
null
#include "Check_Win_Command.h" // to use console #include <iostream> using namespace engine; using namespace state; using namespace std; Check_Win_Command::Check_Win_Command() { Id = CHECK_WIN; } Check_Win_Command::~Check_Win_Command() { } void Check_Win_Command::exec(state::State &state) { int winnedID...
25.089552
80
0.618679
Kuga23
559627849abb1ac1d1cbe07b22feb3443a6085a6
11,204
cpp
C++
source/compiler/transform.cpp
ChillMagic/ICM
a0ee83e5bbd2aef216cc28faa5d5dad36c99d606
[ "Apache-2.0" ]
9
2016-06-14T15:38:42.000Z
2017-09-03T09:08:17.000Z
source/compiler/transform.cpp
ChillMagic/ICM
a0ee83e5bbd2aef216cc28faa5d5dad36c99d606
[ "Apache-2.0" ]
1
2018-01-17T09:22:30.000Z
2018-01-17T10:10:42.000Z
source/compiler/transform.cpp
ChillMagic/ICM
a0ee83e5bbd2aef216cc28faa5d5dad36c99d606
[ "Apache-2.0" ]
null
null
null
#include "basic.h" #include "compiler/transform.h" #include "compiler/analysisbase.h" //#include "runtime/objectdef.h" #include "temp-getelement.h" namespace ICM { namespace Compiler { bool PrintCompilingProcess = false; class PreliminaryCompile : private AnalysisBase { public: PreliminaryCompile(NodeTa...
27.94015
86
0.598447
ChillMagic
559e18fcbd587c713d5bafd32b8bafa73cdafe63
1,372
cpp
C++
src/runtime_src/core/pcie/linux/plugin/xdp/hal_device_offload.cpp
Pratyushxilinx/XRT
3f5d02ce9fed8d75ff5135f27a82522e7ab3d388
[ "Apache-2.0" ]
null
null
null
src/runtime_src/core/pcie/linux/plugin/xdp/hal_device_offload.cpp
Pratyushxilinx/XRT
3f5d02ce9fed8d75ff5135f27a82522e7ab3d388
[ "Apache-2.0" ]
null
null
null
src/runtime_src/core/pcie/linux/plugin/xdp/hal_device_offload.cpp
Pratyushxilinx/XRT
3f5d02ce9fed8d75ff5135f27a82522e7ab3d388
[ "Apache-2.0" ]
null
null
null
#include <functional> #include "hal_device_offload.h" #include "core/common/module_loader.h" #include "core/common/dlfcn.h" namespace xdphaldeviceoffload { void load_xdp_hal_device_offload() { static xrt_core::module_loader xdp_hal_device_offload_loader("xdp_hal_device_offload_plugin", registe...
24.5
76
0.710641
Pratyushxilinx
55acc3d36186c74d1d9667fa4eca2e53abba5d4f
468
cpp
C++
src/brew/math/Math.cpp
grrrrunz/brew
13e17e2f6c9fb0f612c3a0bcabd233085ca15867
[ "MIT" ]
1
2018-02-09T16:20:50.000Z
2018-02-09T16:20:50.000Z
src/brew/math/Math.cpp
grrrrunz/brew
13e17e2f6c9fb0f612c3a0bcabd233085ca15867
[ "MIT" ]
null
null
null
src/brew/math/Math.cpp
grrrrunz/brew
13e17e2f6c9fb0f612c3a0bcabd233085ca15867
[ "MIT" ]
null
null
null
/** * * |_ _ _ * |_)| (/_VV * * Copyright 2015-2018 Marcus v. Keil * * Created on: Feb 11, 2016 * */ #include <brew/math/Math.h> namespace brew { namespace math { const Real EPSILON = std::numeric_limits<Real>::epsilon(); const Real PI = 3.1415926535897932f; const Real HALF_PI = PI * 0.5f; const Real T...
16.137931
58
0.619658
grrrrunz
55aec24ae07d08e6bb68efa367b9513e9ea6d164
9,205
cpp
C++
profiler/src/ProfilerEngine/Datadog.Profiler.Native/StackFramesCollectorBase.cpp
cwe1ss/dd-trace-dotnet
ed74cf794cb02fb698567052caae973870b82428
[ "Apache-2.0" ]
null
null
null
profiler/src/ProfilerEngine/Datadog.Profiler.Native/StackFramesCollectorBase.cpp
cwe1ss/dd-trace-dotnet
ed74cf794cb02fb698567052caae973870b82428
[ "Apache-2.0" ]
2
2022-02-10T06:13:13.000Z
2022-02-17T01:31:15.000Z
profiler/src/ProfilerEngine/Datadog.Profiler.Native/StackFramesCollectorBase.cpp
Kielek/signalfx-dotnet-tracing
80c65ca936748788629287472401fa9f31b79410
[ "Apache-2.0" ]
null
null
null
// Unless explicitly stated otherwise all files in this repository are licensed under the Apache 2 License. // This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2022 Datadog, Inc. #include "StackFramesCollectorBase.h" #include <assert.h> #include <chrono> #include <condition_...
41.463964
145
0.726996
cwe1ss
55b9edc87798a7028096212e073eaf233408fc4b
285
cpp
C++
src/fem/maplocal.cpp
XiaoMaResearch/hybrid_tsunamic_plane_stress
574988edfcd4839f680b85cde2bf818936e86b78
[ "MIT" ]
6
2019-04-12T19:51:23.000Z
2021-09-16T07:12:57.000Z
src/fem/maplocal.cpp
XiaoMaResearch/hybrid_tsunamic_plane_stress
574988edfcd4839f680b85cde2bf818936e86b78
[ "MIT" ]
null
null
null
src/fem/maplocal.cpp
XiaoMaResearch/hybrid_tsunamic_plane_stress
574988edfcd4839f680b85cde2bf818936e86b78
[ "MIT" ]
1
2019-07-07T07:23:58.000Z
2019-07-07T07:23:58.000Z
// // maplocal.cpp // hybrid_fem_bie // // Created by Max on 2/6/18. // // #include "maplocal.hpp" void maplocal(const ArrayXi &index, const VectorXd &u_global , VectorXd & u_local) { for (int i=0;i<u_local.size();i++) { u_local(i)=u_global(index(i)); } }
15.833333
82
0.592982
XiaoMaResearch
55bc13b31463ccc08047dbe384fb2d272c8e33da
8,156
cpp
C++
RT/RT/Impl/JsonSerialization.cpp
heyx3/heyx3RT
4dd476a33e658bc19fde239f2c6e22bdcd598e27
[ "Unlicense", "MIT" ]
null
null
null
RT/RT/Impl/JsonSerialization.cpp
heyx3/heyx3RT
4dd476a33e658bc19fde239f2c6e22bdcd598e27
[ "Unlicense", "MIT" ]
null
null
null
RT/RT/Impl/JsonSerialization.cpp
heyx3/heyx3RT
4dd476a33e658bc19fde239f2c6e22bdcd598e27
[ "Unlicense", "MIT" ]
null
null
null
#include "../Headers/JsonSerialization.h" #include "../Headers/ThirdParty/base64.h" #include <fstream> using namespace RT; #pragma warning( disable : 4996 ) bool RT_API JsonSerialization::ToJSONFile(const String& filePath, const IWritable& toWrite, bool compact, String& o...
27.461279
101
0.611574
heyx3
55bcc14b851caec9910c7842d229687cbc189cee
2,802
cpp
C++
examples/client/qtest1.cpp
pauldotknopf/grpc-qt
c6e0e38ea4130ac2b8ae5f441bd78dd7ead274e4
[ "MIT" ]
null
null
null
examples/client/qtest1.cpp
pauldotknopf/grpc-qt
c6e0e38ea4130ac2b8ae5f441bd78dd7ead274e4
[ "MIT" ]
null
null
null
examples/client/qtest1.cpp
pauldotknopf/grpc-qt
c6e0e38ea4130ac2b8ae5f441bd78dd7ead274e4
[ "MIT" ]
null
null
null
#include "qtest1.h" #include "proto/gen.grpc.pb.h" #include <grpc++/grpc++.h> #include <QDebug> class QTest1Private { public: QTest1Private() : objectId(0) { } std::unique_ptr<Tests::Test1ObjectService::Stub> test1ObjectService; grpc::ClientContext objectRequestContext; std::unique_ptr<grpc::Clien...
31.133333
106
0.662384
pauldotknopf
55be8c3075caa2afc85c290ec5c232c092b2dfea
682
cpp
C++
Chapter7-Quicksort/quicksort.cpp
wr47h/CLRS_Algorithms
91193e8382cd54398ab1ca397ef72069754a1dc6
[ "MIT" ]
null
null
null
Chapter7-Quicksort/quicksort.cpp
wr47h/CLRS_Algorithms
91193e8382cd54398ab1ca397ef72069754a1dc6
[ "MIT" ]
null
null
null
Chapter7-Quicksort/quicksort.cpp
wr47h/CLRS_Algorithms
91193e8382cd54398ab1ca397ef72069754a1dc6
[ "MIT" ]
1
2019-10-05T08:07:06.000Z
2019-10-05T08:07:06.000Z
#include <iostream> using namespace std; int partitionAr(int a[], int p, int r) { int x = a[r-1]; int i = p-1; for(int j=p; j<r-1; j++) { if(a[j]<x) { i = i+1; swap(a[i], a[j]); } } swap(a[i+1], a[r-1]); return i+1; } void quicksort(int a[], int p, int ...
17.487179
40
0.422287
wr47h
55c259700f72ab9818969086f7640bcd55729c9c
723
cpp
C++
ACM-ICPC/9095.cpp
KimBoWoon/ACM-ICPC
146c36999488af9234d73f7b4b0c10d78486604f
[ "MIT" ]
null
null
null
ACM-ICPC/9095.cpp
KimBoWoon/ACM-ICPC
146c36999488af9234d73f7b4b0c10d78486604f
[ "MIT" ]
null
null
null
ACM-ICPC/9095.cpp
KimBoWoon/ACM-ICPC
146c36999488af9234d73f7b4b0c10d78486604f
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> int t, n; int dp[101]; // 1, 2, 3์„ ๋”ํ•ด์„œ n์„ ํ‘œํ˜„ํ•˜๋Š” ๋ฐฉ๋ฒ•์˜ ๊ฐ€์ง€์ˆ˜๋ฅผ d[n] // dp[x๋ฅผ 1๋กœ ๋งŒ๋“œ๋Š” ๊ฒฝ์šฐ์˜ ์ˆ˜] // dp[x๋ฅผ 2๋กœ ๋งŒ๋“œ๋Š” ๊ฒฝ์šฐ์˜ ์ˆ˜] // dp[x๋ฅผ 3๋กœ ๋งŒ๋“œ๋Š” ๊ฒฝ์šฐ์˜ ์ˆ˜] // ์ „๋ถ€ ๋” ํ•˜๋ฉด ๋œ๋‹ค int topDown(int x) { if (x == 0) { dp[x] = 1; } if (x == 1) { dp[x] = 1; } if (x == 2) { dp[x] = 2; } if (x >= 3) { ...
15.717391
60
0.427386
KimBoWoon
55ccb4ada59dd2d371ffe65fbd7676ba1663dd12
4,503
cpp
C++
third_party/libosmium/test/t/geom/test_wkt.cpp
peterkist-tinker/osrm-backend-appveyor-test
1891d7379c1d524ea6dc5a8d95e93f4023481a07
[ "BSD-2-Clause" ]
1
2017-04-15T22:58:23.000Z
2017-04-15T22:58:23.000Z
third_party/libosmium/test/t/geom/test_wkt.cpp
peterkist-tinker/osrm-backend-appveyor-test
1891d7379c1d524ea6dc5a8d95e93f4023481a07
[ "BSD-2-Clause" ]
1
2019-11-21T09:59:27.000Z
2019-11-21T09:59:27.000Z
osrm-ch/third_party/libosmium/test/t/geom/test_wkt.cpp
dingchunda/osrm-backend
8750749b83bd9193ca3481c630eefda689ecb73c
[ "BSD-2-Clause" ]
1
2021-08-04T02:32:10.000Z
2021-08-04T02:32:10.000Z
#include "catch.hpp" #include <osmium/geom/wkt.hpp> #include "area_helper.hpp" #include "wnl_helper.hpp" TEST_CASE("WKT_Geometry") { SECTION("point") { osmium::geom::WKTFactory<> factory; std::string wkt {factory.create_point(osmium::Location(3.2, 4.2))}; REQUIRE(std::string{"POINT(3.2 4.2)"} == wkt); ...
32.868613
171
0.663113
peterkist-tinker
55d92902035bee0e07c3f8779565175d56239f57
752
hpp
C++
boost/network/protocol/http/traits/connection_keepalive.hpp
antoinelefloch/cpp-netlib
5eb9b5550a10d06f064ee9883c7d942d3426f31b
[ "BSL-1.0" ]
3
2015-02-10T22:08:08.000Z
2021-11-13T20:59:25.000Z
include/boost/network/protocol/http/traits/connection_keepalive.hpp
waTeim/boost
eb3850fae8c037d632244cf15cf6905197d64d39
[ "BSL-1.0" ]
1
2018-08-10T04:47:12.000Z
2018-08-10T13:54:57.000Z
include/boost/network/protocol/http/traits/connection_keepalive.hpp
waTeim/boost
eb3850fae8c037d632244cf15cf6905197d64d39
[ "BSL-1.0" ]
5
2017-12-28T12:42:25.000Z
2021-07-01T07:41:53.000Z
// Copyright (c) Dean Michael Berris 2010. // 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 BOOST_NETWORK_PROTOCOL_HTTP_TRAITS_CONECTION_KEEPALIVE_20091218 #define BOOST_NETWORK_PRO...
30.08
73
0.74734
antoinelefloch
55da0c41e5c7d7bfafb4e9ad99bc5234ce32a6d8
1,433
cpp
C++
generated/src/ModuleInterface.cpp
MMX-World/vnx-base
c806599e630e17928e8c2d9271e896797a069ba2
[ "Apache-2.0" ]
null
null
null
generated/src/ModuleInterface.cpp
MMX-World/vnx-base
c806599e630e17928e8c2d9271e896797a069ba2
[ "Apache-2.0" ]
2
2022-02-07T05:19:09.000Z
2022-03-24T18:44:37.000Z
generated/src/ModuleInterface.cpp
MMX-World/vnx-base
c806599e630e17928e8c2d9271e896797a069ba2
[ "Apache-2.0" ]
1
2022-01-22T21:30:26.000Z
2022-01-22T21:30:26.000Z
// AUTO GENERATED by vnxcppcodegen #include <vnx/package.hxx> #include <vnx/ModuleInterface.hxx> #include <vnx/ModuleInfo.hxx> #include <vnx/ModuleInterface_vnx_get_config.hxx> #include <vnx/ModuleInterface_vnx_get_config_return.hxx> #include <vnx/ModuleInterface_vnx_get_config_object.hxx> #include <vnx/ModuleInterfa...
32.568182
72
0.836706
MMX-World