hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
108
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
330k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
0.99
author_id
stringlengths
2
40
e63bee55ed587adeac07ed6bfe9ee359b3fad55a
1,495
cpp
C++
cpp/src/exercise/e0200/e0134.cpp
ajz34/LeetCodeLearn
70ff8a3c17199a100819b356735cd9b13ff166a7
[ "MIT" ]
null
null
null
cpp/src/exercise/e0200/e0134.cpp
ajz34/LeetCodeLearn
70ff8a3c17199a100819b356735cd9b13ff166a7
[ "MIT" ]
null
null
null
cpp/src/exercise/e0200/e0134.cpp
ajz34/LeetCodeLearn
70ff8a3c17199a100819b356735cd9b13ff166a7
[ "MIT" ]
null
null
null
// https://leetcode-cn.com/problems/gas-station/ #include "extern.h" class S0134 { public: int canCompleteCircuit(vector<int>& gas, vector<int>& cost) { if (gas.empty()) return -1; for (int i = 0; i < gas.size(); ++i) { gas[i] -= cost[i]; } int total = 0; int cn...
28.75
65
0.419398
ajz34
e63c60d0a3e74969e72c64f8268ad43e80071be2
460
cpp
C++
drape/drape_tests/bingind_info_tests.cpp
bowlofstew/omim
8045157c95244aa8f862d47324df42a19b87e335
[ "Apache-2.0" ]
4,879
2015-09-30T10:56:36.000Z
2022-03-31T18:43:03.000Z
drape/drape_tests/bingind_info_tests.cpp
bowlofstew/omim
8045157c95244aa8f862d47324df42a19b87e335
[ "Apache-2.0" ]
7,549
2015-09-30T10:52:53.000Z
2022-03-31T22:04:22.000Z
drape/drape_tests/bingind_info_tests.cpp
bowlofstew/omim
8045157c95244aa8f862d47324df42a19b87e335
[ "Apache-2.0" ]
1,493
2015-09-30T10:43:06.000Z
2022-03-21T09:16:49.000Z
#include "testing/testing.hpp" #include "drape/binding_info.hpp" using namespace dp; UNIT_TEST(BindingInfoIDTest) { { BindingInfo info(1, 1); TEST_EQUAL(info.GetID(), 1, ()); } { BindingInfo info(1); TEST_EQUAL(info.GetID(), 0, ()); } } UNIT_TEST(DynamicHandlingTest) { { BindingInfo i...
14.375
44
0.613043
bowlofstew
e63dfdc5f76e9141f506421913a017b2b57aaf83
2,242
cpp
C++
Viewer/main.cpp
henfredemars/Lamina-Project
4dc547947c28a287714179893d3db75b2288e9b6
[ "MIT" ]
null
null
null
Viewer/main.cpp
henfredemars/Lamina-Project
4dc547947c28a287714179893d3db75b2288e9b6
[ "MIT" ]
null
null
null
Viewer/main.cpp
henfredemars/Lamina-Project
4dc547947c28a287714179893d3db75b2288e9b6
[ "MIT" ]
null
null
null
//******************************************************* /*Lamina Project: Graphic Visualization of Particles I would like to give credit to the tutorials found in the following webpages: http://www.lighthouse3d.com/tutorials/glut-tutorial/ http://lazyfoo.net/tutorials/OpenGL/index.php#Hello OpenGL https://www3.ntu.e...
26.690476
86
0.628903
henfredemars
e63fd302503fcab3eb0a026adde5c4098535f023
4,239
hpp
C++
include/vop.hpp
zhu48/led_strip
f74f0663cbf5a8b68a54f54ce04691c45e03253b
[ "MIT" ]
null
null
null
include/vop.hpp
zhu48/led_strip
f74f0663cbf5a8b68a54f54ce04691c45e03253b
[ "MIT" ]
null
null
null
include/vop.hpp
zhu48/led_strip
f74f0663cbf5a8b68a54f54ce04691c45e03253b
[ "MIT" ]
null
null
null
#ifndef VOP_HPP #define VOP_HPP #include <cstddef> namespace vop { /** * Vector add two containers, putting the result into a third container. * * \tparam itr_l Iterator type of the left-hand-side addition operand container. * \tparam itr_r Iterator type of the right-hand-side addition o...
43.255102
99
0.681529
zhu48
e6441c8b37b7d62746b4b3b37a1f3808926c119f
2,226
hpp
C++
include/eagine/integer_range.hpp
matus-chochlik/eagine-core
5bc2d6b9b053deb3ce6f44f0956dfccd75db4649
[ "BSL-1.0" ]
1
2022-01-25T10:31:51.000Z
2022-01-25T10:31:51.000Z
include/eagine/integer_range.hpp
matus-chochlik/eagine-core
5bc2d6b9b053deb3ce6f44f0956dfccd75db4649
[ "BSL-1.0" ]
null
null
null
include/eagine/integer_range.hpp
matus-chochlik/eagine-core
5bc2d6b9b053deb3ce6f44f0956dfccd75db4649
[ "BSL-1.0" ]
null
null
null
/// @file /// /// Copyright Matus Chochlik. /// 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 EAGINE_INTEGER_RANGE_HPP #define EAGINE_INTEGER_RANGE_HPP #include "iterator.hpp" namespace eagine { /...
27.481481
83
0.660827
matus-chochlik
e6463ce0d96cd56d96d6b0d963dfa3c44edc9660
629
cpp
C++
collision.cpp
CaptainDreamcast/Torchbearer
144a1d8eca66e994dc832fc4116431ea267e00d9
[ "MIT" ]
null
null
null
collision.cpp
CaptainDreamcast/Torchbearer
144a1d8eca66e994dc832fc4116431ea267e00d9
[ "MIT" ]
null
null
null
collision.cpp
CaptainDreamcast/Torchbearer
144a1d8eca66e994dc832fc4116431ea267e00d9
[ "MIT" ]
null
null
null
#include "collision.h" #include <prism/blitz.h> static struct { CollisionListData* mPlayerCollisionList; CollisionListData* mObstacleCollisionList; } gCollisionData; void initCollisions() { gCollisionData.mPlayerCollisionList = addCollisionListToHandler(); gCollisionData.mObstacleCollisionList = addCollisionList...
25.16
102
0.844197
CaptainDreamcast
e646b1207910a2f5c038c30eb2ad659a8e39e21b
7,158
cpp
C++
src/HubLabelStore.cpp
dbahrdt/path_finder
1105966e5b50590acd9aca30ceb6922b0e40c259
[ "Apache-2.0" ]
1
2021-03-12T23:18:30.000Z
2021-03-12T23:18:30.000Z
src/HubLabelStore.cpp
dbahrdt/path_finder
1105966e5b50590acd9aca30ceb6922b0e40c259
[ "Apache-2.0" ]
8
2020-05-27T17:25:58.000Z
2020-05-29T10:39:54.000Z
src/HubLabelStore.cpp
dbahrdt/path_finder
1105966e5b50590acd9aca30ceb6922b0e40c259
[ "Apache-2.0" ]
1
2020-10-19T09:01:09.000Z
2020-10-19T09:01:09.000Z
// // Created by sokol on 23.01.20. // #include "path_finder/storage/HubLabelStore.h" #include <cstring> #include <execution> #include <memory> #include <path_finder/helper/Static.h> #include <sstream> #include <utility> namespace pathFinder { HubLabelStore::HubLabelStore(size_t numberOfLabels) { m_forwardOffset = ...
42.607143
115
0.732886
dbahrdt
e64a81619bd4cf65be3f5b3a96879a0d6555b8c8
4,717
hpp
C++
include/string/string_pool.hpp
Life4gal/galToolbox
14f213b015eba673e702ca0daaac21d35ad2c7e0
[ "Unlicense" ]
null
null
null
include/string/string_pool.hpp
Life4gal/galToolbox
14f213b015eba673e702ca0daaac21d35ad2c7e0
[ "Unlicense" ]
null
null
null
include/string/string_pool.hpp
Life4gal/galToolbox
14f213b015eba673e702ca0daaac21d35ad2c7e0
[ "Unlicense" ]
null
null
null
#pragma once #include <algorithm> #include <memory> #include <string_view> #include <utils/assert.hpp> #include <vector> namespace gal::toolbox::string { template<typename CharType, bool isNullTerminate = true, typename CharTrait = std::char_traits<CharType>> class string_block { public: constexpr static bool i...
24.696335
106
0.679669
Life4gal
e64c1c47e9dd2b799f5cfa689d48ce9a9eef9980
3,871
cpp
C++
src/component/text_component.cpp
equal-games/equal
acaf0d456d7b996dd2a6bc23150cd45ddf618296
[ "BSD-2-Clause", "Apache-2.0" ]
7
2019-08-07T21:27:27.000Z
2020-11-27T16:33:16.000Z
src/component/text_component.cpp
equal-games/equal
acaf0d456d7b996dd2a6bc23150cd45ddf618296
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
src/component/text_component.cpp
equal-games/equal
acaf0d456d7b996dd2a6bc23150cd45ddf618296
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
/* * Copyright 2019 Equal Games * 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 ...
25.136364
99
0.690778
equal-games
e64ca83cd4bd195736713ff544c43021e380e224
3,522
cpp
C++
src/qt/moc_UnivariateRunEditor.cpp
satra/murfi2
95d954a8735c107caae2ab4eec2926fafe420402
[ "Apache-2.0" ]
7
2015-02-10T17:00:49.000Z
2021-07-27T22:09:43.000Z
src/qt/moc_UnivariateRunEditor.cpp
satra/murfi2
95d954a8735c107caae2ab4eec2926fafe420402
[ "Apache-2.0" ]
11
2015-02-22T19:15:53.000Z
2021-08-04T17:26:18.000Z
src/qt/moc_UnivariateRunEditor.cpp
satra/murfi2
95d954a8735c107caae2ab4eec2926fafe420402
[ "Apache-2.0" ]
8
2015-07-06T22:31:51.000Z
2019-04-22T21:22:07.000Z
/**************************************************************************** ** Meta object code from reading C++ file 'UnivariateRunEditor.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.2.1) ** ** WARNING! All changes made in this file will be lost! *************************************************...
30.626087
99
0.632595
satra
e64d514d029ead61d9be0d128d5db871d7ff7a1f
3,173
cpp
C++
tests/nnti/cpp-api/NntiOpVectorTest.cpp
faodel/faodel
ef2bd8ff335433e695eb561d7ecd44f233e58bf0
[ "MIT" ]
2
2019-01-25T21:21:07.000Z
2021-04-29T17:24:00.000Z
tests/nnti/cpp-api/NntiOpVectorTest.cpp
faodel/faodel
ef2bd8ff335433e695eb561d7ecd44f233e58bf0
[ "MIT" ]
8
2018-10-09T14:35:30.000Z
2020-09-30T20:09:42.000Z
tests/nnti/cpp-api/NntiOpVectorTest.cpp
faodel/faodel
ef2bd8ff335433e695eb561d7ecd44f233e58bf0
[ "MIT" ]
2
2019-04-23T19:01:36.000Z
2021-05-11T07:44:55.000Z
// Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC // (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. #include "nnti/nnti_pch.hpp" #include <mpi.h> #include "gtest/gtest.h" #include "faodel-common/Common.hh" #i...
22.034722
78
0.607942
faodel
e6514457bc2b8dd014f85c0b00fe47f067f7155e
283
cpp
C++
tests/test3.cpp
chrisroman/llvm-pass-skeleton
5e0308c38bd8aec7ac33b794f7d9551cfdf01733
[ "MIT" ]
1
2020-10-26T02:45:22.000Z
2020-10-26T02:45:22.000Z
tests/test3.cpp
chrisroman/llvm-pass-skeleton
5e0308c38bd8aec7ac33b794f7d9551cfdf01733
[ "MIT" ]
null
null
null
tests/test3.cpp
chrisroman/llvm-pass-skeleton
5e0308c38bd8aec7ac33b794f7d9551cfdf01733
[ "MIT" ]
null
null
null
#include <stdlib.h> /* exit, EXIT_FAILURE */ #include "track_nullptr.h" void deref_null(int argc) { int *p = nullptr; if (argc == 1) { p = &argc; } *p = 42; } int main(int argc, char** argv) { //escape(&nullp); deref_null(argc); return 0; }
16.647059
48
0.537102
chrisroman
e654beaee6fadb0fdaad20ec16f713cbb088f20b
1,275
hpp
C++
android-31/android/icu/text/DateIntervalInfo.hpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
12
2020-03-26T02:38:56.000Z
2022-03-14T08:17:26.000Z
android-28/android/icu/text/DateIntervalInfo.hpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
1
2021-01-27T06:07:45.000Z
2021-11-13T19:19:43.000Z
android-30/android/icu/text/DateIntervalInfo.hpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
3
2021-02-02T12:34:55.000Z
2022-03-08T07:45:57.000Z
#pragma once #include "../../../JObject.hpp" namespace android::icu::text { class DateIntervalInfo_PatternInfo; } namespace android::icu::util { class ULocale; } class JObject; class JString; namespace java::util { class Locale; } namespace android::icu::text { class DateIntervalInfo : public JObject { public:...
25.5
157
0.737255
YJBeetle
e655ee06e0db284b536e2a0f8e9c737708efaf2e
850
cpp
C++
src/atom.cpp
chiang-yuan/csh4lmp
8a8dff5d2b65ce463e4d58dc52e35a6114b7e597
[ "MIT" ]
9
2019-03-22T03:45:24.000Z
2021-02-18T04:19:12.000Z
src/atom.cpp
Chiang-Yuan/csh4lmp
8a8dff5d2b65ce463e4d58dc52e35a6114b7e597
[ "MIT" ]
null
null
null
src/atom.cpp
Chiang-Yuan/csh4lmp
8a8dff5d2b65ce463e4d58dc52e35a6114b7e597
[ "MIT" ]
1
2022-03-31T11:57:07.000Z
2022-03-31T11:57:07.000Z
#include "atom.h" Atom::Atom() { delete_flag = false; bondNum = 0; bondID = std::vector<bigint>(MAX_BONDS_PER_ATOM); bonds = std::vector<Bond*>(MAX_BONDS_PER_ATOM); angleNum = 0; } Atom::~Atom() { } bool operator==(const Atom& lhs, const Atom& rhs) { return (lhs.id == rhs.id); } bool operator!=(const Atom & l...
19.318182
63
0.625882
chiang-yuan
e65cb69470313025359f0dd0053f56a558f24d34
6,099
cpp
C++
Engine/Core/Sources/Threading/ThreadPool.cpp
makdenis/YetAnotherProject
e43cc3ca2d4a13984f97f0949f88ab17fa6905d3
[ "MIT" ]
1
2018-05-02T10:40:26.000Z
2018-05-02T10:40:26.000Z
Engine/Core/Sources/Threading/ThreadPool.cpp
makdenis/YetAnotherProject
e43cc3ca2d4a13984f97f0949f88ab17fa6905d3
[ "MIT" ]
9
2018-03-26T10:22:07.000Z
2018-05-22T20:43:14.000Z
Engine/Core/Sources/Threading/ThreadPool.cpp
makdenis/YetAnotherProject
e43cc3ca2d4a13984f97f0949f88ab17fa6905d3
[ "MIT" ]
6
2018-04-15T16:03:32.000Z
2018-05-21T22:02:49.000Z
#include "ThreadPool.hpp" #include <assert.h> #define LOCK(MUTEX) std::unique_lock<std::mutex> lock /******************************************************************** * TaskBacket ********************************************************************/ TaskBacket::TaskBacket() { bComplitted = true; } TaskBa...
17.99115
90
0.654697
makdenis
e65ce6a63ac15bef27e6c2c1e18df66fb0a96107
1,381
cpp
C++
Codeforces/1/B.cpp
Mindjolt2406/Competitive-Programming
d000d98bf7005ee4fb809bcea2f110e4c4793b80
[ "MIT" ]
2
2018-12-11T14:37:24.000Z
2022-01-23T18:11:54.000Z
Codeforces/1/B.cpp
Mindjolt2406/Competitive-Programming
d000d98bf7005ee4fb809bcea2f110e4c4793b80
[ "MIT" ]
null
null
null
Codeforces/1/B.cpp
Mindjolt2406/Competitive-Programming
d000d98bf7005ee4fb809bcea2f110e4c4793b80
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> #define mp make_pair #define pu push_back #define mt make_tuple #define INF 1000000001 using namespace std; int check(string s) { if(s[0]!='R') return 0; int boo = 0; for(int i=0;i<s.size();i++) { if(65<=s[i] && s[i]<=90 && boo == 1) return 1; else if(s[i]-'0'<11) boo = 1; } ...
17.481013
50
0.415641
Mindjolt2406
e65ddf9e93182443c1db22f317c886713ade7900
4,028
hpp
C++
include/jitana/analysis/call_graph.hpp
Xbeas/jitana
fc33976cf6f4cbb91263a06bae32e9ad07fc5551
[ "0BSD" ]
31
2017-04-21T03:25:46.000Z
2022-02-20T20:59:23.000Z
include/jitana/analysis/call_graph.hpp
Xbeas/jitana
fc33976cf6f4cbb91263a06bae32e9ad07fc5551
[ "0BSD" ]
3
2020-12-21T09:02:06.000Z
2021-03-16T10:37:38.000Z
include/jitana/analysis/call_graph.hpp
Xbeas/jitana
fc33976cf6f4cbb91263a06bae32e9ad07fc5551
[ "0BSD" ]
9
2017-06-06T19:30:43.000Z
2021-05-19T19:50:03.000Z
/* * Copyright (c) 2015, 2016, Yutaka Tsutano * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTH...
34.724138
80
0.588878
Xbeas
e661ff980e7be9bfb2ab4ac0cca88b59be10469d
1,100
cpp
C++
Libraries/RobsJuceModules/romos/Framework/romos_ProcessingStatus.cpp
RobinSchmidt/RS-MET-Preliminary
6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe
[ "FTL" ]
34
2017-04-19T18:26:02.000Z
2022-02-15T17:47:26.000Z
Libraries/RobsJuceModules/romos/Framework/romos_ProcessingStatus.cpp
RobinSchmidt/RS-MET-Preliminary
6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe
[ "FTL" ]
307
2017-05-04T21:45:01.000Z
2022-02-03T00:59:01.000Z
Libraries/RobsJuceModules/romos/Framework/romos_ProcessingStatus.cpp
RobinSchmidt/RS-MET-Preliminary
6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe
[ "FTL" ]
4
2017-09-05T17:04:31.000Z
2021-12-15T21:24:28.000Z
//#include "romos_ProcessingStatus.h" //using namespace romos; ProcessingStatus processingStatus; // definition of the global object //----------------------------------------------------------------------------------------------------------------------------------------- // construction/destruction: ProcessingStat...
26.190476
139
0.565455
RobinSchmidt
e66291ea7314d2fbde3ac9368ba51effc802e746
636
cpp
C++
String/10_permutations.cpp
ritikrajdev/450DSA
a9efa8c8be781fd7b101407ac807a83b8a0929f4
[ "MIT" ]
null
null
null
String/10_permutations.cpp
ritikrajdev/450DSA
a9efa8c8be781fd7b101407ac807a83b8a0929f4
[ "MIT" ]
null
null
null
String/10_permutations.cpp
ritikrajdev/450DSA
a9efa8c8be781fd7b101407ac807a83b8a0929f4
[ "MIT" ]
null
null
null
#include <algorithm> #include <string> #include <vector> using namespace std; class Solution { void helper(string &S, int l, int r, vector<string> &vec) { if (l == r) { vec.push_back(S); return; } for (int i = l; i <= r; i++) { swap(S[i], S[l]); ...
21.2
63
0.463836
ritikrajdev
e662bb84a95721dbc93162a81e9bd8ec016474b3
1,627
hpp
C++
src/message_service.hpp
madmongo1/blog-october-2020
95968a7c6bc9ed8476f72d0ec107544b5ec26498
[ "BSL-1.0" ]
1
2021-02-12T00:18:55.000Z
2021-02-12T00:18:55.000Z
src/message_service.hpp
madmongo1/blog-october-2020
95968a7c6bc9ed8476f72d0ec107544b5ec26498
[ "BSL-1.0" ]
1
2020-12-21T09:53:31.000Z
2020-12-21T09:53:31.000Z
src/message_service.hpp
madmongo1/blog-october-2020
95968a7c6bc9ed8476f72d0ec107544b5ec26498
[ "BSL-1.0" ]
null
null
null
// // Created by rhodges on 09/11/2020. // #pragma once #include "async_condition_variable.hpp" #include "basic_distributor.hpp" #include "config.hpp" #include <memory> struct message_service_impl { using executor_type = net::strand<net::io_context::executor_type>; message_service_impl(net::io_context::execu...
20.3375
70
0.684696
madmongo1
e6658c75e8f1c293df47c437c86993b0f061e079
1,600
cpp
C++
datasets/github_cpp_10/7/38.cpp
yijunyu/demo-fast
11c0c84081a3181494b9c469bda42a313c457ad2
[ "BSD-2-Clause" ]
1
2019-05-03T19:27:45.000Z
2019-05-03T19:27:45.000Z
datasets/github_cpp_10/7/38.cpp
yijunyu/demo-vscode-fast
11c0c84081a3181494b9c469bda42a313c457ad2
[ "BSD-2-Clause" ]
null
null
null
datasets/github_cpp_10/7/38.cpp
yijunyu/demo-vscode-fast
11c0c84081a3181494b9c469bda42a313c457ad2
[ "BSD-2-Clause" ]
null
null
null
#include <iostream> #include <string> using namespace std; template<class ItemType> void merge(ItemType theArray[], int first, int mid, int last, ItemType tempArray[]) { int first1 = first; int last1 = mid; int first2 = mid + 1; int last2 = last; ...
17.777778
83
0.52
yijunyu
e667671ae23c8ce12de0895757d128bd9b81b96c
2,761
cpp
C++
AAMPJSController.cpp
rdkcmf/rdk-injectedbundle
8eded43baa7ae6d27670b8485c8de145f54b39ef
[ "Apache-2.0" ]
null
null
null
AAMPJSController.cpp
rdkcmf/rdk-injectedbundle
8eded43baa7ae6d27670b8485c8de145f54b39ef
[ "Apache-2.0" ]
null
null
null
AAMPJSController.cpp
rdkcmf/rdk-injectedbundle
8eded43baa7ae6d27670b8485c8de145f54b39ef
[ "Apache-2.0" ]
2
2017-10-04T04:44:13.000Z
2018-08-16T20:45:04.000Z
/* * If not stated otherwise in this file or this component's Licenses.txt file the * following copyright and licenses apply: * * Copyright 2017 RDK Management * * 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 ...
27.888889
99
0.732343
rdkcmf
e667ecb9ae71a5f34cf7f886ad808bd62d96ccbb
5,179
hpp
C++
include/vecl/broadcast.hpp
ethereal-sheep/vecl
519e8e90a1cd2c424f0a666e24da2d2ad3ffdcaf
[ "MIT" ]
1
2021-09-15T13:13:16.000Z
2021-09-15T13:13:16.000Z
include/vecl/broadcast.hpp
ethereal-sheep/vecl
519e8e90a1cd2c424f0a666e24da2d2ad3ffdcaf
[ "MIT" ]
1
2022-01-03T09:52:35.000Z
2022-01-03T09:52:35.000Z
include/vecl/broadcast.hpp
ethereal-sheep/vecl
519e8e90a1cd2c424f0a666e24da2d2ad3ffdcaf
[ "MIT" ]
null
null
null
#ifndef VECL_BROADCAST_H #define VECL_BROADCAST_H #include "config/config.h" #include <memory> #include <functional> #include <vector> #include <memory_resource> namespace vecl { /** * @brief A Broadcast is a smart event-handler that models a * broadcast design pattern. * * The container allows functions t...
24.088372
74
0.674068
ethereal-sheep
e66ccf5db157f828ccdc7aea66caca4da8442d63
320
hpp
C++
include/base64-cpp/detail/decode-common.hpp
contour-terminal/base64-cpp
885789cd7ec427cf63eef867f6c273eaa92b5d88
[ "Apache-2.0" ]
2
2021-07-11T21:03:13.000Z
2021-07-23T23:47:29.000Z
include/base64-cpp/detail/decode-common.hpp
contour-terminal/base64-cpp
885789cd7ec427cf63eef867f6c273eaa92b5d88
[ "Apache-2.0" ]
1
2021-08-03T05:51:53.000Z
2021-08-16T14:32:49.000Z
include/base64-cpp/detail/decode-common.hpp
contour-terminal/base64-cpp
885789cd7ec427cf63eef867f6c273eaa92b5d88
[ "Apache-2.0" ]
null
null
null
#pragma once #include <cstdint> #include <cstdlib> #include <string_view> namespace base64::detail::decoder { auto static const inline alphabet = std::string_view{"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"}; struct invalid_input final { size_t const offset; uint8_t const byte; }; }
16.842105
121
0.76875
contour-terminal
e66d0362b11a8ef129db894387de321567d9e3fc
6,918
cpp
C++
Anime4KCore/src/ACOpenCL.cpp
king350023/Anime4KCPP
659442101b884108c24811de3c669283d2d8b20e
[ "MIT" ]
null
null
null
Anime4KCore/src/ACOpenCL.cpp
king350023/Anime4KCPP
659442101b884108c24811de3c669283d2d8b20e
[ "MIT" ]
null
null
null
Anime4KCore/src/ACOpenCL.cpp
king350023/Anime4KCPP
659442101b884108c24811de3c669283d2d8b20e
[ "MIT" ]
null
null
null
#define DLL #include "ACOpenCL.hpp" Anime4KCPP::OpenCL::GPUList::GPUList( const int platforms, std::vector<int> devices, std::string message ) :platforms(platforms), devices(std::move(devices)), message(std::move(message)) {} int Anime4KCPP::OpenCL::GPUList::operator[](int pID) const { return devices...
29.564103
106
0.60769
king350023
e66d8f43e0402f89403e33ec0325b45b1e0c90de
3,124
cpp
C++
volume_I/acm_1096.cpp
raidenluikang/acm.timus.ru
9b7c99eb03959acff9dd96326eec642a2c31ed04
[ "MIT" ]
null
null
null
volume_I/acm_1096.cpp
raidenluikang/acm.timus.ru
9b7c99eb03959acff9dd96326eec642a2c31ed04
[ "MIT" ]
null
null
null
volume_I/acm_1096.cpp
raidenluikang/acm.timus.ru
9b7c99eb03959acff9dd96326eec642a2c31ed04
[ "MIT" ]
null
null
null
#include <cstdio> char in [ 65536 ]; char const* o; int a[ 1024 ]; int b[ 1024 ]; bool visit[1024] ; int que [ 1024 ] ; int dist[ 1024 ] ; int prv [ 1024 ]; int n; // number of bus int n_q; int nxt[ 2048 ] ; //int dst[ 2028 ] ; int head[2048 ] ; static int readInt() { int u = 0; while(*o && *o <= 32)+...
18.057803
71
0.338668
raidenluikang
e670f1dce1004823bd8f2e342c2e7b076495df78
5,123
cpp
C++
cpp/include/math/matrix.cpp
kyuridenamida/competitive-library
a2bea434c4591359c208b865d2d4dc25574df24d
[ "MIT" ]
3
2017-04-09T10:12:31.000Z
2019-02-11T03:11:27.000Z
cpp/include/math/matrix.cpp
kyuridenamida/competitive-library
a2bea434c4591359c208b865d2d4dc25574df24d
[ "MIT" ]
null
null
null
cpp/include/math/matrix.cpp
kyuridenamida/competitive-library
a2bea434c4591359c208b865d2d4dc25574df24d
[ "MIT" ]
1
2019-11-29T06:11:10.000Z
2019-11-29T06:11:10.000Z
#pragma once #include "../util.hpp" template<typename T> class Vec { protected: using iterator = typename vector<T>::iterator; using const_iterator = typename vector<T>::const_iterator; using reference = T&; using const_reference = const T&; vector<T> v; template<typename Unop> Vec<T> unop_new(Unop op) co...
28.943503
78
0.486824
kyuridenamida
e6747b18e969ed210e3bd2c2b55fee3281fa92c7
1,585
cpp
C++
gameuit-console-game-engine/Player.cpp
phuctm97/console-game-engine
b90f4bc50950d75491c82f18820a004e92fe38fe
[ "MIT" ]
null
null
null
gameuit-console-game-engine/Player.cpp
phuctm97/console-game-engine
b90f4bc50950d75491c82f18820a004e92fe38fe
[ "MIT" ]
null
null
null
gameuit-console-game-engine/Player.cpp
phuctm97/console-game-engine
b90f4bc50950d75491c82f18820a004e92fe38fe
[ "MIT" ]
1
2021-05-23T06:14:25.000Z
2021-05-23T06:14:25.000Z
#include "Player.h" #include "Game.h" Player::Player() { _width = 5; _height = 10; Game::getInstance()->registerInputNotification( CC_CALLBACK_1(Player::processInput, this) ); } Player::~Player() {} void Player::moveUp() { int y = getPositionY(); y -= 1; setPositionY( y ); } void Player::moveDown() { int y...
16.684211
93
0.624606
phuctm97
e677f38a25d5597728f261ea975db366e5d3c20e
2,125
cc
C++
MagneticField/Interpolation/src/binary_ofstream.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
MagneticField/Interpolation/src/binary_ofstream.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
MagneticField/Interpolation/src/binary_ofstream.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
#include "binary_ofstream.h" #include <cstdio> #include <iostream> struct binary_ofstream_error {}; binary_ofstream::binary_ofstream(const char* name) : file_(nullptr) { init(name); } binary_ofstream::binary_ofstream(const std::string& name) : file_(nullptr) { init(name.c_str()); } void binary_ofstream::init(const...
27.24359
119
0.680941
ckamtsikis
e678b7750515d5686bc61f1cc4b4cb2775da02aa
1,708
hpp
C++
src/snapplot/snapplot_mapview.hpp
linz/snap
1505880b282290fc28bbbe0c4d4f69088ad81de0
[ "BSD-3-Clause" ]
7
2018-09-17T06:49:30.000Z
2020-10-10T19:12:31.000Z
src/snapplot/snapplot_mapview.hpp
linz/snap
1505880b282290fc28bbbe0c4d4f69088ad81de0
[ "BSD-3-Clause" ]
81
2016-11-09T01:18:19.000Z
2022-03-31T04:34:12.000Z
src/snapplot/snapplot_mapview.hpp
linz/snap
1505880b282290fc28bbbe0c4d4f69088ad81de0
[ "BSD-3-Clause" ]
5
2017-07-03T03:00:29.000Z
2022-01-25T07:05:08.000Z
#ifndef SNAPPLOT_MAPVIEW_HPP #define SNAPPLOT_MAPVIEW_HPP #include "snapplot_event.hpp" #include "snapplot_dragger.hpp" #include "wxmapwindow.hpp" DECLARE_EVENT_TYPE( WX_MAPVIEW_DISPLAY_COORDS, -1 ) class SnapplotMapView : public wxMapWindow { public: SnapplotMapView( wxWindow *parent ); ~SnapplotMapView()...
27.548387
85
0.70726
linz
e67e6a7eef68204b34ac5e6b2f6ebad8deca1b6d
7,262
cpp
C++
main.cpp
jiangzhuti/DMProxy
0a95e5173079eca6b61e7661b3f4d5d3a2ae08a6
[ "WTFPL" ]
null
null
null
main.cpp
jiangzhuti/DMProxy
0a95e5173079eca6b61e7661b3f4d5d3a2ae08a6
[ "WTFPL" ]
null
null
null
main.cpp
jiangzhuti/DMProxy
0a95e5173079eca6b61e7661b3f4d5d3a2ae08a6
[ "WTFPL" ]
null
null
null
#include <map> #include <set> #include <sstream> #include <memory> #include <utility> #include <tuple> #include <boost/program_options.hpp> #include <boost/asio.hpp> #include <boost/algorithm/string.hpp> #include "network/dmp_cs.hpp" #include "platforms/platforms.hpp" #include "utils/others.hpp" #include "utils/rw_lock...
39.043011
155
0.576012
jiangzhuti
e680e9aa39e997fe9a04909728b929bce7da9ac2
7,386
cpp
C++
src/api/JavaIntegration.cpp
davidcorbin/mygcc-application
9e978e4d6e4cd3d8534bbc73f38c45b205258cc9
[ "MIT" ]
2
2019-01-18T02:33:45.000Z
2019-02-01T23:44:05.000Z
src/api/JavaIntegration.cpp
davidcorbin/mygcc-application
9e978e4d6e4cd3d8534bbc73f38c45b205258cc9
[ "MIT" ]
null
null
null
src/api/JavaIntegration.cpp
davidcorbin/mygcc-application
9e978e4d6e4cd3d8534bbc73f38c45b205258cc9
[ "MIT" ]
null
null
null
/** * Copyright 2018 <David Corbin, Mitchell Harvey> */ #include <include/api/JavaIntegration.hpp> #include <include/FileNotFound.hpp> #include <QDesktopServices> #include <QUrl> #include <QFileInfo> #include <QTextStream> #include <QDebug> #include <QSettings> #include <QApplication> #include <string> #include <alg...
30.647303
78
0.653804
davidcorbin
e697b4d120c2cb38fccd361679dd9388b4d1da22
1,435
cpp
C++
Range Queries/Pizzeria Queries.cpp
DecSP/cses-downloader
12a8f37665a33f6f790bd2c355f84dea8a0e332c
[ "MIT" ]
2
2022-02-12T12:30:13.000Z
2022-02-12T13:59:20.000Z
Range Queries/Pizzeria Queries.cpp
DecSP/cses-downloader
12a8f37665a33f6f790bd2c355f84dea8a0e332c
[ "MIT" ]
2
2022-02-12T11:09:41.000Z
2022-02-12T11:55:49.000Z
Range Queries/Pizzeria Queries.cpp
DecSP/cses-downloader
12a8f37665a33f6f790bd2c355f84dea8a0e332c
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define ll long long using namespace std; const int INF=2e9; void buildTree(int v, int tl, int tr,vector<int>&st,vector<int>&a){ if (tl==tr){ st[v]=a[tl]; return; } int mid = (tl+tr)>>1; buildTree(v*2,tl,mid,st,a); buildTree(v*2+1,mid+1,tr,st,a); st[v]=min(st[v*2],st[v*2+1]); } int ...
22.076923
83
0.570035
DecSP
e697d9198534bd197f46f41fc1ff37d94f8132b4
6,871
cpp
C++
Gems/NvCloth/Code/Tests/UnitTestHelper.cpp
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-09-13T00:01:12.000Z
2021-09-13T00:01:12.000Z
Gems/NvCloth/Code/Tests/UnitTestHelper.cpp
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
null
null
null
Gems/NvCloth/Code/Tests/UnitTestHelper.cpp
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-07-20T11:07:25.000Z
2021-07-20T11:07:25.000Z
/* * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include <UnitTestHelper.h> #include <AzCore/Interface/Interface.h> #include <TriangleInputHelper....
41.896341
176
0.667006
aaarsene
e69af1c7058358166fb3546346080ab385e380b6
2,439
cpp
C++
flow/walker/serial_node_walker.cpp
aconstlink/snakeoil
3c6e02655e1134f8422f01073090efdde80fc109
[ "MIT" ]
1
2017-08-11T19:12:24.000Z
2017-08-11T19:12:24.000Z
flow/walker/serial_node_walker.cpp
aconstlink/snakeoil
3c6e02655e1134f8422f01073090efdde80fc109
[ "MIT" ]
11
2018-07-07T20:09:44.000Z
2020-02-16T22:45:09.000Z
flow/walker/serial_node_walker.cpp
aconstlink/snakeoil
3c6e02655e1134f8422f01073090efdde80fc109
[ "MIT" ]
null
null
null
//------------------------------------------------------------ // snakeoil (c) Alexis Constantin Link // Distributed under the MIT license //------------------------------------------------------------ #include "serial_node_walker.h" using namespace so_flow ; //********************************************************...
32.52
96
0.388684
aconstlink
e69bacf5f2c16dda5a156d178a56479e3dc46657
14,962
hpp
C++
dakota-6.3.0.Windows.x86/include/Teuchos_ArrayViewDecl.hpp
seakers/ExtUtils
b0186098063c39bd410d9decc2a765f24d631b25
[ "BSD-2-Clause" ]
null
null
null
dakota-6.3.0.Windows.x86/include/Teuchos_ArrayViewDecl.hpp
seakers/ExtUtils
b0186098063c39bd410d9decc2a765f24d631b25
[ "BSD-2-Clause" ]
null
null
null
dakota-6.3.0.Windows.x86/include/Teuchos_ArrayViewDecl.hpp
seakers/ExtUtils
b0186098063c39bd410d9decc2a765f24d631b25
[ "BSD-2-Clause" ]
1
2022-03-18T14:13:14.000Z
2022-03-18T14:13:14.000Z
// @HEADER // *********************************************************************** // // Teuchos: Common Tools Package // Copyright (2004) Sandia Corporation // // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive // license for use of this work by or on behalf of...
28.283554
91
0.662478
seakers
e69c6bea04a01f6f89963ff6a688ded77cbf26d1
3,279
hpp
C++
Test/TestCommon/TestFunction.hpp
SpaceGameEngine/SpaceGameEngine
cc7bbadbc3ed9577d1d6c9b4470d2c4926ed5ef8
[ "Apache-2.0" ]
3
2019-11-25T04:08:44.000Z
2020-08-13T09:53:43.000Z
Test/TestCommon/TestFunction.hpp
SpaceGameEngine/SpaceGameEngine
cc7bbadbc3ed9577d1d6c9b4470d2c4926ed5ef8
[ "Apache-2.0" ]
3
2019-07-11T09:20:43.000Z
2021-01-17T10:21:22.000Z
Test/TestCommon/TestFunction.hpp
SpaceGameEngine/SpaceGameEngine
cc7bbadbc3ed9577d1d6c9b4470d2c4926ed5ef8
[ "Apache-2.0" ]
null
null
null
/* Copyright 2021 creatorlxd 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, software distrib...
29.017699
105
0.705398
SpaceGameEngine
e69e9d7b12708f9aaa96c03cfcc653303225302b
16,151
hpp
C++
include/codegen/include/GlobalNamespace/LevelSelectionNavigationController.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
1
2021-11-12T09:29:31.000Z
2021-11-12T09:29:31.000Z
include/codegen/include/GlobalNamespace/LevelSelectionNavigationController.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
null
null
null
include/codegen/include/GlobalNamespace/LevelSelectionNavigationController.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
2
2021-10-03T02:14:20.000Z
2021-11-12T09:29:36.000Z
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" // Including type: HMUI.NavigationController #include "HMUI/NavigationCont...
68.147679
238
0.815925
Futuremappermydud
e69ff09b9fe3e439dfdf90160d2aa3aeeea5129e
3,967
hpp
C++
src/device_model/device.hpp
bburns/cppagent
c1891c631465ebc9b63a4b3c627727ca3da14ee8
[ "Apache-2.0" ]
null
null
null
src/device_model/device.hpp
bburns/cppagent
c1891c631465ebc9b63a4b3c627727ca3da14ee8
[ "Apache-2.0" ]
null
null
null
src/device_model/device.hpp
bburns/cppagent
c1891c631465ebc9b63a4b3c627727ca3da14ee8
[ "Apache-2.0" ]
null
null
null
// // Copyright Copyright 2009-2022, AMT – The Association For Manufacturing Technology (“AMT”) // 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 // // ...
34.798246
100
0.693471
bburns
e6a036880c3a3f663d89be8053627349388e1e82
2,439
cpp
C++
src/mesh/adjacent_table.cpp
ZJUCADGeoSim/hausdorff
df9fdf0294d7efd4ec694ec5135487344e509231
[ "MIT" ]
13
2021-09-06T07:19:28.000Z
2022-03-29T15:48:21.000Z
src/mesh/adjacent_table.cpp
ZJUCADGeoSim/hausdorff
df9fdf0294d7efd4ec694ec5135487344e509231
[ "MIT" ]
null
null
null
src/mesh/adjacent_table.cpp
ZJUCADGeoSim/hausdorff
df9fdf0294d7efd4ec694ec5135487344e509231
[ "MIT" ]
null
null
null
/* State Key Lab of CAD&CG Zhejiang Unv. Author: Yicun Zheng (3130104113@zju.edu.cn) Haoran Sun (hrsun@zju.edu.cn) Jin Huang (hj@cad.zju.edu.cn) Copyright (c) 2004-2021 <Jin Huang> All rights reserved. Licensed under the MIT License. */ #include "adjacent_table.hpp" using namesp...
34.352113
145
0.497745
ZJUCADGeoSim
e6a4978f3667fb150541ef0fd3dd77dbb74beba1
1,601
cpp
C++
src/main.cpp
Benjins/simple-vm
ef31ea36ad698a47da81642c97d718d3415bd133
[ "CC-BY-4.0" ]
null
null
null
src/main.cpp
Benjins/simple-vm
ef31ea36ad698a47da81642c97d718d3415bd133
[ "CC-BY-4.0" ]
null
null
null
src/main.cpp
Benjins/simple-vm
ef31ea36ad698a47da81642c97d718d3415bd133
[ "CC-BY-4.0" ]
null
null
null
#include "../header/VM.h" #include "../header/Instruction.h" #include "../header/Parser.h" #include "../header/AST.h" #include "../header/DLLFile.h" #include <assert.h> #include <iostream> //#include <dlfcn.h> using std::cout; using std::endl; int main(int argc, char** argv){ #if TESTING VM x; bool allPass = tr...
21.065789
61
0.63273
Benjins
e6a94ff699f2a4401b126ee510999617cc827c1e
5,894
cpp
C++
Source/Motor2D/Wall.cpp
BarcinoLechiguino/Project_F
9e40c771f5ce6b821e3d380edd5d92fb129cdf53
[ "MIT" ]
1
2020-04-28T16:09:51.000Z
2020-04-28T16:09:51.000Z
Source/Motor2D/Wall.cpp
Aitorlb7/Project_F
9e40c771f5ce6b821e3d380edd5d92fb129cdf53
[ "MIT" ]
3
2020-03-03T09:57:49.000Z
2020-04-25T16:02:36.000Z
Source/Motor2D/Wall.cpp
BarcinoLechiguino/Project-RTS
9e40c771f5ce6b821e3d380edd5d92fb129cdf53
[ "MIT" ]
1
2020-11-06T22:31:26.000Z
2020-11-06T22:31:26.000Z
#include "Application.h" #include "Render.h" #include "Textures.h" #include "Audio.h" #include "Map.h" #include "Pathfinding.h" #include "Player.h" #include "GuiManager.h" #include "GuiElement.h" #include "GuiHealthbar.h" #include "GuiCreationBar.h" #include "FowManager.h" #include "EntityManager.h" #include "Wall.h" ...
24.661088
192
0.725993
BarcinoLechiguino
e6aa28a55c657282a31df9acaf79c1edf228f159
3,171
cc
C++
charstream.cc
justinleona/capstone
4a525cad12fba07a43452776a0e289148f04a12d
[ "MIT" ]
1
2021-06-26T05:32:43.000Z
2021-06-26T05:32:43.000Z
charstream.cc
justinleona/capstone
4a525cad12fba07a43452776a0e289148f04a12d
[ "MIT" ]
2
2019-10-14T06:46:43.000Z
2019-10-18T04:34:20.000Z
charstream.cc
justinleona/capstone
4a525cad12fba07a43452776a0e289148f04a12d
[ "MIT" ]
null
null
null
#include "charstream.h" #include <iomanip> #include "notimplemented.h" using namespace std; charbuf::charbuf(char* s, size_t n, size_t offset) : offset(offset) { auto begin = s; auto c = s; auto end = s + n; // set begin, current, and end states for reading setg(begin, c, end); setp(begin, end); } strea...
27.815789
102
0.595396
justinleona
e6afcc659277abe69decd9e30b055f3c75b1a6f6
4,007
cpp
C++
Essential Cpp/UserProfile.cpp
HuangJingGitHub/PracMakePert_C
94e570c55d9e391913ccd9c5c72026ab926809b2
[ "Apache-2.0" ]
1
2019-10-17T03:13:29.000Z
2019-10-17T03:13:29.000Z
Essential Cpp/UserProfile.cpp
HuangJingGitHub/PracMakePert_C-Cpp
6ed39e757ad8ba7bdd75fffdaf28d17a294a11e5
[ "Apache-2.0" ]
null
null
null
Essential Cpp/UserProfile.cpp
HuangJingGitHub/PracMakePert_C-Cpp
6ed39e757ad8ba7bdd75fffdaf28d17a294a11e5
[ "Apache-2.0" ]
null
null
null
#include <cstdlib> #include <string> #include <map> #include <iostream> using namespace std; class UserProfile { public: enum uLevel { Beginner, Intermediate, Advanced, Guru }; UserProfile(string login, uLevel = Beginner); UserProfile(); bool operator==(const UserProfile&); bool operator!=(const U...
25.522293
79
0.664837
HuangJingGitHub
e6b2f4dcf87049372bc1672a82aeddf019ace903
4,286
cpp
C++
editor/gui/toolbar_dock.cpp
ChronicallySerious/Rootex
bf2a0997b6aa5be84dbfc0e7826c31ff693ca0f1
[ "MIT" ]
166
2019-06-19T19:51:45.000Z
2022-03-24T13:03:29.000Z
editor/gui/toolbar_dock.cpp
rahil627/Rootex
44f827d469bddc7167b34dedf80d7a8b984fdf20
[ "MIT" ]
312
2019-06-13T19:39:25.000Z
2022-03-02T18:37:22.000Z
editor/gui/toolbar_dock.cpp
rahil627/Rootex
44f827d469bddc7167b34dedf80d7a8b984fdf20
[ "MIT" ]
23
2019-10-04T11:02:21.000Z
2021-12-24T16:34:52.000Z
#include "toolbar_dock.h" #include "editor/editor_application.h" #include "framework/scene_loader.h" #include "framework/system.h" #include "editor/editor_system.h" #include "vendor/ImGUI/imgui.h" #include "vendor/ImGUI/imgui_stdlib.h" #include "vendor/ImGUI/imgui_impl_dx11.h" #include "vendor/ImGUI/imgui_impl_win32...
29.558621
135
0.667755
ChronicallySerious
e6b3c330b8370ad9ccafef3cf97f0dd6b8b6cad9
7,737
cpp
C++
src/ndnSIM/NFD/daemon/table/name-tree-hashtable.cpp
NDNLink/NDN-Chord
cfabf8f56eea2c4ba47052ce145a939ebdc21e57
[ "MIT" ]
1
2021-09-07T04:12:15.000Z
2021-09-07T04:12:15.000Z
src/ndnSIM/NFD/daemon/table/name-tree-hashtable.cpp
NDNLink/NDN-Chord
cfabf8f56eea2c4ba47052ce145a939ebdc21e57
[ "MIT" ]
null
null
null
src/ndnSIM/NFD/daemon/table/name-tree-hashtable.cpp
NDNLink/NDN-Chord
cfabf8f56eea2c4ba47052ce145a939ebdc21e57
[ "MIT" ]
1
2020-07-15T06:21:03.000Z
2020-07-15T06:21:03.000Z
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2014-2017, Regents of the University of California, * Arizona Board of Regents, * Colorado State University, * University Pierre & Marie Curie, Sorbonne...
27.43617
102
0.670156
NDNLink
e6b4455ff486fd573f09a580df66b81d3d7a2207
30,694
cpp
C++
BlackVision/Tools/Triangulator/Source/PolylineValidator.cpp
black-vision-engine/bv-engine
85089d41bb22afeaa9de070646e12aa1777ecedf
[ "MIT" ]
1
2022-01-28T11:43:47.000Z
2022-01-28T11:43:47.000Z
BlackVision/Tools/Triangulator/Source/PolylineValidator.cpp
black-vision-engine/bv-engine
85089d41bb22afeaa9de070646e12aa1777ecedf
[ "MIT" ]
null
null
null
BlackVision/Tools/Triangulator/Source/PolylineValidator.cpp
black-vision-engine/bv-engine
85089d41bb22afeaa9de070646e12aa1777ecedf
[ "MIT" ]
null
null
null
#include "PolylineValidator.h" #include "glm.hpp" #include <algorithm> namespace triangulator { const float epsilon = 0.00001f; bool CompareEvent ( const Event & a, const Event & b ); bool CompareEdge ( p2t::Edge * leftEdge, p2t::Edge * rightEdge, double sweepY ); doub...
30.755511
206
0.530853
black-vision-engine
e6b49ac73d171bdfd88cd61f75bf9d7d7d1d4ba7
5,188
cpp
C++
config_manager.cpp
KA8KPN/keyer-ng
93f07dca6249574e19ee3331bd3c7240ddd5d4a5
[ "Apache-2.0" ]
1
2022-02-22T05:46:49.000Z
2022-02-22T05:46:49.000Z
config_manager.cpp
KA8KPN/keyer-ng
93f07dca6249574e19ee3331bd3c7240ddd5d4a5
[ "Apache-2.0" ]
null
null
null
config_manager.cpp
KA8KPN/keyer-ng
93f07dca6249574e19ee3331bd3c7240ddd5d4a5
[ "Apache-2.0" ]
null
null
null
#include "config_manager.h" #include "paddles.h" #include "display.h" #include "keying.h" #include "memories.h" #include "wpm.h" #include <EEPROM.h> #include <ctype.h> config_manager system_config_manager; #define MAGIC 0x5a0d #define PADDLES_REVERSE_FLAG 0x01 #define SIDETONE_OFF_FLAG 0x02 #...
23.581818
142
0.689476
KA8KPN
e6b4de51daf9e7e954e640ecb6fc2b84cfb19e6f
1,317
cpp
C++
src/memory.cpp
habs1337/hack-lib
4bd4c7182eba5e738d6d1a87daa1d4b37dfae798
[ "MIT" ]
null
null
null
src/memory.cpp
habs1337/hack-lib
4bd4c7182eba5e738d6d1a87daa1d4b37dfae798
[ "MIT" ]
null
null
null
src/memory.cpp
habs1337/hack-lib
4bd4c7182eba5e738d6d1a87daa1d4b37dfae798
[ "MIT" ]
null
null
null
#include "../includes/includes.h" namespace g_mini_crt::memory { wchar_t get_bits(char x) { return g_mini_crt::string::is_digit(x) ? (x - '0') : ((x - 'A') + 0xA); } BYTE get_byts(const char* x) { return ((BYTE)(get_bits(x[0]) << 4 | get_bits(x[1]))); } int mem_cmp(const void* str1, const void* str2, ...
21.95
74
0.589977
habs1337
e6b5a503196e184358448b40b89ad697bfa86120
6,648
cpp
C++
source/gameengine/GameLogic/SCA_GameActuator.cpp
linluofeng/upbge
50bc9bc923a41411461d662c0fddd58d1f0b3ab3
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2022-01-11T10:02:21.000Z
2022-01-11T10:02:21.000Z
source/gameengine/GameLogic/SCA_GameActuator.cpp
linluofeng/upbge
50bc9bc923a41411461d662c0fddd58d1f0b3ab3
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
source/gameengine/GameLogic/SCA_GameActuator.cpp
linluofeng/upbge
50bc9bc923a41411461d662c0fddd58d1f0b3ab3
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
/* * global game stuff * * * ***** BEGIN GPL LICENSE BLOCK ***** * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later versi...
33.074627
92
0.469314
linluofeng
e6b7008f8d531dede9e7f9200cef8af462afd168
24,947
cpp
C++
libspace/plugins/standard/StandardLocationService.cpp
sirikata/sirikata
3a0d54a8c4778ad6e25ef031d461b2bc3e264860
[ "BSD-3-Clause" ]
31
2015-01-28T17:01:10.000Z
2021-11-04T08:30:37.000Z
libspace/plugins/standard/StandardLocationService.cpp
sirikata/sirikata
3a0d54a8c4778ad6e25ef031d461b2bc3e264860
[ "BSD-3-Clause" ]
null
null
null
libspace/plugins/standard/StandardLocationService.cpp
sirikata/sirikata
3a0d54a8c4778ad6e25ef031d461b2bc3e264860
[ "BSD-3-Clause" ]
9
2015-08-02T18:39:49.000Z
2019-10-11T10:32:30.000Z
/* Sirikata * StandardLocationService.cpp * * Copyright (c) 2009, Ewen Cheslack-Postava * 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 r...
44.153982
259
0.678839
sirikata
e6b96c963aaa6ff7916ac2f32554582f6b03240e
1,062
cpp
C++
cpp/tut/main.cpp
VeerabadraLokesh/miniature-guide
057e524ed8ffdac15cfaa9585800235234306225
[ "MIT" ]
null
null
null
cpp/tut/main.cpp
VeerabadraLokesh/miniature-guide
057e524ed8ffdac15cfaa9585800235234306225
[ "MIT" ]
null
null
null
cpp/tut/main.cpp
VeerabadraLokesh/miniature-guide
057e524ed8ffdac15cfaa9585800235234306225
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; // typedef int age; int main() { cout << "Hello world\n"; /* in comment */ cout << "Size of char : " << sizeof(char) << endl; cout << "Size of int : " << sizeof(int) << endl; cout << "Size of short int : " << sizeof(short int) << endl; cout << "Size...
27.947368
153
0.496234
VeerabadraLokesh
e6b9929694ad270fa8eb8773d4405e37393a483b
307
cpp
C++
tapi-master/test/Inputs/CPP3/CPP3.cpp
JunyiXie/ld64
ffaa615b31ff1baa5d6249e4d9a6a21c2ae603ae
[ "Apache-2.0" ]
null
null
null
tapi-master/test/Inputs/CPP3/CPP3.cpp
JunyiXie/ld64
ffaa615b31ff1baa5d6249e4d9a6a21c2ae603ae
[ "Apache-2.0" ]
null
null
null
tapi-master/test/Inputs/CPP3/CPP3.cpp
JunyiXie/ld64
ffaa615b31ff1baa5d6249e4d9a6a21c2ae603ae
[ "Apache-2.0" ]
null
null
null
#include "VTable.h" // VTables void test1::Simple::run() {} void test2::Simple::run() {} void test4::Sub::run() {} void test5::Sub::run() {} void test6::Sub::run() {} void test11::Sub::run3() {} template class test12::Simple<int>; // Weak-Defined RTTI __attribute__((visibility("hidden"))) test7::Sub a;
20.466667
51
0.651466
JunyiXie
e6c2d5cace421836c90ab3fdc38b5e709d856b51
76
cpp
C++
gtest_test/tests/testgtest2.cpp
darkenk/playground
ab1cf2585d27bdda65555bdd52aa7d7dafd9a430
[ "MIT" ]
null
null
null
gtest_test/tests/testgtest2.cpp
darkenk/playground
ab1cf2585d27bdda65555bdd52aa7d7dafd9a430
[ "MIT" ]
null
null
null
gtest_test/tests/testgtest2.cpp
darkenk/playground
ab1cf2585d27bdda65555bdd52aa7d7dafd9a430
[ "MIT" ]
null
null
null
#include "gtest/gtest.h" TEST(SimpleTest2, Test1) { EXPECT_EQ(3, 2); }
10.857143
24
0.644737
darkenk
e6c3773935366bf41cb30bfd9608e9495c028d0c
99
cc
C++
cpp/accelerated_c++/chapter08/my_max.cc
zhouzhiqi/book_and_code
3ffadd6cb721af280a00c1e1f97d509ab4b210ab
[ "Apache-2.0" ]
null
null
null
cpp/accelerated_c++/chapter08/my_max.cc
zhouzhiqi/book_and_code
3ffadd6cb721af280a00c1e1f97d509ab4b210ab
[ "Apache-2.0" ]
null
null
null
cpp/accelerated_c++/chapter08/my_max.cc
zhouzhiqi/book_and_code
3ffadd6cb721af280a00c1e1f97d509ab4b210ab
[ "Apache-2.0" ]
null
null
null
template <class T> T max(const T& left, const T& right) { return left > right ? left : right; }
14.142857
36
0.636364
zhouzhiqi
e6c70fea1a7bfd84c3ff6fd041fb3ef65e4992a2
28,735
cpp
C++
csl/cslbase/arith12.cpp
arthurcnorman/general
5e8fef0cc7999fa8ab75d8fdf79ad5488047282b
[ "BSD-2-Clause" ]
null
null
null
csl/cslbase/arith12.cpp
arthurcnorman/general
5e8fef0cc7999fa8ab75d8fdf79ad5488047282b
[ "BSD-2-Clause" ]
null
null
null
csl/cslbase/arith12.cpp
arthurcnorman/general
5e8fef0cc7999fa8ab75d8fdf79ad5488047282b
[ "BSD-2-Clause" ]
null
null
null
// arith12.cpp Copyright (C) 1990-2020 Codemist // // Arithmetic functions... specials for Reduce (esp. factoriser) // // /************************************************************************** * Copyright (C) 2020, Codemist. A C Norman * * ...
35.344403
94
0.569549
arthurcnorman
e6cc3d65cd87b32abc8cad03dd09a7494a88218b
3,121
cpp
C++
test/enum.cpp
leoetlino/c4core
cfd3060287aa1d8bf0f4de7c427d2fab0f816bd1
[ "MIT" ]
null
null
null
test/enum.cpp
leoetlino/c4core
cfd3060287aa1d8bf0f4de7c427d2fab0f816bd1
[ "MIT" ]
null
null
null
test/enum.cpp
leoetlino/c4core
cfd3060287aa1d8bf0f4de7c427d2fab0f816bd1
[ "MIT" ]
null
null
null
#include <vector> #include <c4/enum.hpp> #include <c4/test.hpp> #include "./enum_common.hpp" #include "c4/libtest/supprwarn_push.hpp" TEST(eoffs, simple_enum) { using namespace c4; EXPECT_EQ(eoffs_cls<MyEnum>(), 0); EXPECT_EQ(eoffs_pfx<MyEnum>(), 0); } TEST(eoffs, scoped_enum) { using namespace c4;...
24.193798
91
0.558475
leoetlino
e6ce22d78d8edf8283a150c8442b93af4b801a54
28,405
cpp
C++
reve/reve/lib/Assignment.cpp
mattulbrich/llreve
68cb958c1c02177fa0db1965a8afd879a97c2fc4
[ "BSD-3-Clause" ]
20
2016-08-11T19:51:13.000Z
2021-09-02T13:10:58.000Z
reve/reve/lib/Assignment.cpp
mattulbrich/llreve
68cb958c1c02177fa0db1965a8afd879a97c2fc4
[ "BSD-3-Clause" ]
9
2016-08-11T11:59:24.000Z
2021-07-16T09:44:28.000Z
reve/reve/lib/Assignment.cpp
mattulbrich/llreve
68cb958c1c02177fa0db1965a8afd879a97c2fc4
[ "BSD-3-Clause" ]
7
2017-08-19T14:42:27.000Z
2020-05-20T16:14:13.000Z
/* * This file is part of * llreve - Automatic regression verification for LLVM programs * * Copyright (C) 2016 Karlsruhe Institute of Technology * * The system is published under a BSD license. * See LICENSE (distributed with this file) for details. */ #include "Assignment.h" #include "Helper.h" #include ...
41.58858
80
0.545256
mattulbrich
e6cf7c3755d1e7d3178d1b78820773d997e35d41
470
hpp
C++
global_kinematic_model/include/kinematic.hpp
Horki/CarND-MPC-Quizzes
236dc2f99a0f641efcbe8eac9cf4aa7e8db06a69
[ "MIT" ]
null
null
null
global_kinematic_model/include/kinematic.hpp
Horki/CarND-MPC-Quizzes
236dc2f99a0f641efcbe8eac9cf4aa7e8db06a69
[ "MIT" ]
null
null
null
global_kinematic_model/include/kinematic.hpp
Horki/CarND-MPC-Quizzes
236dc2f99a0f641efcbe8eac9cf4aa7e8db06a69
[ "MIT" ]
null
null
null
#ifndef KINEMATIC_H_ #define KINEMATIC_H_ #include <Eigen/Core> #include <cmath> using Eigen::VectorXd; constexpr double Lf = 2; // // Helper functions // constexpr double pi() { return M_PI; } double deg2rad(double x) { return x * pi() / 180.0; } double rad2deg(double x) { return x * 180.0 / pi(); }...
20.434783
64
0.642553
Horki
e6d12ea3f53d333c65b074f699c0a1393446eabd
1,121
hpp
C++
include/disccord/models/invite_metadata.hpp
FiniteReality/disccord
1b89cde8031a1d6f9d43fa8f39dbc0959c8639ff
[ "MIT" ]
44
2016-09-19T15:28:25.000Z
2018-08-09T13:17:40.000Z
include/disccord/models/invite_metadata.hpp
FiniteReality/disccord
1b89cde8031a1d6f9d43fa8f39dbc0959c8639ff
[ "MIT" ]
44
2016-11-03T17:27:30.000Z
2017-12-10T16:17:31.000Z
include/disccord/models/invite_metadata.hpp
FiniteReality/disccord
1b89cde8031a1d6f9d43fa8f39dbc0959c8639ff
[ "MIT" ]
13
2016-11-01T00:17:20.000Z
2018-08-03T19:51:16.000Z
#ifndef _invite_metadata_hpp_ #define _invite_metadata_hpp_ #include <disccord/models/entity.hpp> #include <disccord/models/user.hpp> namespace disccord { namespace models { class invite_metadata : public model { public: invite_metadata(); virtual ~i...
26.690476
75
0.531668
FiniteReality
e6d47cd0d1594ea1ed44564eb7577a032c12856e
2,069
cc
C++
flare/base/buffer/zero_copy_stream_test.cc
AriCheng/flare
b2c84588fe4ac52f0875791d22284d7e063fd057
[ "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
868
2021-05-28T04:00:22.000Z
2022-03-31T08:57:14.000Z
flare/base/buffer/zero_copy_stream_test.cc
AriCheng/flare
b2c84588fe4ac52f0875791d22284d7e063fd057
[ "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
33
2021-05-28T08:44:47.000Z
2021-09-26T13:09:21.000Z
flare/base/buffer/zero_copy_stream_test.cc
AriCheng/flare
b2c84588fe4ac52f0875791d22284d7e063fd057
[ "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
122
2021-05-28T08:22:23.000Z
2022-03-29T09:52:09.000Z
// Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this // file except in compliance with the License. You may obtain a copy of the // License at // // https://opensource.org/licenses/BSD-3-Clause // // Unless req...
32.328125
80
0.740938
AriCheng
e6d4a327d3d13fc6a4257f7e90bb4aa25e33cd21
1,707
cpp
C++
scss/class/class3.cpp
chth2116/Faux-Compania
c8bc0e06ee5c67c59334195817b831481b9125ee
[ "MIT" ]
null
null
null
scss/class/class3.cpp
chth2116/Faux-Compania
c8bc0e06ee5c67c59334195817b831481b9125ee
[ "MIT" ]
null
null
null
scss/class/class3.cpp
chth2116/Faux-Compania
c8bc0e06ee5c67c59334195817b831481b9125ee
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; void passByValue(int a){ a++; } void passByPointer(int *ptr){ //this will give same address as that stored in b (ptr and b are pointing to the same location) cout << "address stored in ptr " << ptr << endl; *ptr = *ptr + 1; // this is the same as: (*ptr)++ } int main(...
32.826923
123
0.66198
chth2116
e6d57b6a961401076c6636a468fb3e6a4108a0af
4,065
cpp
C++
common/terrain.cpp
yang-han/EnjoyYourRoad
c2a5926717ac1fbf6eaae8f89f451a601c5b1186
[ "MIT" ]
1
2018-10-30T06:38:55.000Z
2018-10-30T06:38:55.000Z
common/terrain.cpp
sleeepyy/EnjoyYourRoad
c2a5926717ac1fbf6eaae8f89f451a601c5b1186
[ "MIT" ]
null
null
null
common/terrain.cpp
sleeepyy/EnjoyYourRoad
c2a5926717ac1fbf6eaae8f89f451a601c5b1186
[ "MIT" ]
null
null
null
#include <iostream> #include "terrain.hpp" #define PI 3.14159265 std::vector<glm::vec3> terrain; int length; int width; //Set terrain height here float height ( float x, float z ){ if ( x > 60 && x < 70 && z<5 && z>-5 ){ return 1.2f*( x - 60 ); } else if ( x >= 70 && x < 80 && z<5 && z>-5 ){ retu...
34.159664
91
0.546125
yang-han
5c798c111fb83e1cefd54d1eff981c94f1ffdad7
4,499
cc
C++
moui/core/android/device_android.cc
ollix/moui
4a931aa15fac42b308baae170a855c2d78f9ee9f
[ "Apache-2.0" ]
59
2015-01-23T01:02:50.000Z
2021-11-26T00:01:45.000Z
moui/core/android/device_android.cc
ollix/moui
4a931aa15fac42b308baae170a855c2d78f9ee9f
[ "Apache-2.0" ]
2
2017-05-26T15:26:24.000Z
2020-09-25T03:54:01.000Z
moui/core/android/device_android.cc
ollix/moui
4a931aa15fac42b308baae170a855c2d78f9ee9f
[ "Apache-2.0" ]
7
2015-09-25T08:09:20.000Z
2019-11-24T15:24:28.000Z
// Copyright (c) 2014 Ollix. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
33.325926
76
0.728829
ollix
5c7d39a14fee99e4e5118aa6274302513e7e3236
29,733
hh
C++
dune/ax1/acme2/common/acme2_setup.hh
pederpansen/dune-ax1
152153824d95755a55bdd4fba80686863e928196
[ "BSD-3-Clause" ]
null
null
null
dune/ax1/acme2/common/acme2_setup.hh
pederpansen/dune-ax1
152153824d95755a55bdd4fba80686863e928196
[ "BSD-3-Clause" ]
null
null
null
dune/ax1/acme2/common/acme2_setup.hh
pederpansen/dune-ax1
152153824d95755a55bdd4fba80686863e928196
[ "BSD-3-Clause" ]
null
null
null
#ifndef DUNE_AX1_ACME2_SETUP_HH #define DUNE_AX1_ACME2_SETUP_HH #include <dune/common/array.hh> #include <dune/pdelab/backend/istlvectorbackend.hh> //#include<dune/pdelab/finiteelementmap/q12dfem.hh> //#include<dune/pdelab/finiteelementmap/q22dfem.hh> #include <dune/pdelab/common/clock.hh> #include <dune/pdelab/finit...
48.82266
118
0.633908
pederpansen
5c82413d5761ffbcb270d723db59c0aae19fb02d
1,573
cpp
C++
tests/statement_serializator_tests/arithmetic_operators.cpp
tstrutz/sqlite_orm
1ee0a8653fe57ed4d4f69b5a65839b1861c41d32
[ "BSD-3-Clause" ]
1,566
2016-12-20T15:31:04.000Z
2022-03-31T18:17:34.000Z
tests/statement_serializator_tests/arithmetic_operators.cpp
tstrutz/sqlite_orm
1ee0a8653fe57ed4d4f69b5a65839b1861c41d32
[ "BSD-3-Clause" ]
620
2017-01-06T13:53:35.000Z
2022-03-31T12:05:50.000Z
tests/statement_serializator_tests/arithmetic_operators.cpp
tstrutz/sqlite_orm
1ee0a8653fe57ed4d4f69b5a65839b1861c41d32
[ "BSD-3-Clause" ]
274
2017-01-07T05:34:24.000Z
2022-03-27T18:22:47.000Z
#include <sqlite_orm/sqlite_orm.h> #include <catch2/catch.hpp> using namespace sqlite_orm; TEST_CASE("statement_serializator arithmetic operators") { internal::serializator_context_base context; SECTION("add") { std::string value; SECTION("func") { value = serialize(add(3, 5), cont...
26.661017
63
0.479975
tstrutz
5c84be2240a447f3a324bf46e131da0f9d3bbce4
263
cpp
C++
Code full house/buoi19 nguyen dinh trung duc/bai1146A.cpp
ducyb2001/CbyTrungDuc
0e93394dce600876a098b90ae969575bac3788e1
[ "Apache-2.0" ]
null
null
null
Code full house/buoi19 nguyen dinh trung duc/bai1146A.cpp
ducyb2001/CbyTrungDuc
0e93394dce600876a098b90ae969575bac3788e1
[ "Apache-2.0" ]
null
null
null
Code full house/buoi19 nguyen dinh trung duc/bai1146A.cpp
ducyb2001/CbyTrungDuc
0e93394dce600876a098b90ae969575bac3788e1
[ "Apache-2.0" ]
null
null
null
/*bai 1146A*/ #include<stdio.h> #include<string.h> int main(){ char c[100]; scanf("%s",c); int i,cnt=0; int len=strlen(c); for(i=0; i<len;i++){ if((c[i]-'a')==0) cnt++; } if(cnt>(len/2)){ printf("%d",len); return 0; } else printf("%d",2*cnt-1); }
13.842105
27
0.528517
ducyb2001
5c867d124d49f0d0a622157b48250bf937968b74
5,186
cc
C++
tools/graft/graft.cc
fcharlie/git-analyze-sync
1c974ac4b6f695c01ee666aff60d7817f6c0acaf
[ "MIT" ]
1
2021-02-18T06:12:13.000Z
2021-02-18T06:12:13.000Z
tools/graft/graft.cc
fcharlie/git-analyze-sync
1c974ac4b6f695c01ee666aff60d7817f6c0acaf
[ "MIT" ]
1
2021-08-28T14:08:30.000Z
2021-08-28T14:09:32.000Z
tools/graft/graft.cc
fcharlie/git-analyze-sync
1c974ac4b6f695c01ee666aff60d7817f6c0acaf
[ "MIT" ]
1
2021-08-28T14:00:29.000Z
2021-08-28T14:00:29.000Z
/// THIS IS GRAFT COMMAND #include <cstdio> #include <cstdlib> #include <string> #include <string_view> #include <argv.hpp> #include <git.hpp> #include <optional> #include <console.hpp> #include <os.hpp> struct graft_info_t { std::string gitdir{"."}; std::string branch; std::string commitid; std::string messag...
26.324873
79
0.599306
fcharlie
5c882414a57083cd60b3f99239924d5285baf426
1,315
cpp
C++
monitor.cpp
n7jti/Freezer-Monitor-AWS-SNS
3eeb19135582839ae84943cfd0310a6b22a11853
[ "MIT" ]
null
null
null
monitor.cpp
n7jti/Freezer-Monitor-AWS-SNS
3eeb19135582839ae84943cfd0310a6b22a11853
[ "MIT" ]
null
null
null
monitor.cpp
n7jti/Freezer-Monitor-AWS-SNS
3eeb19135582839ae84943cfd0310a6b22a11853
[ "MIT" ]
null
null
null
// monitor.cpp #include <arduino.h> #include "monitor.h" Monitor::Monitor(Trigger *trigger, unsigned int timeout) : _trigger(trigger) , _timeout(timeout) , _state(MONITOR_GREEN) , _stateStartMs(millis()) { } bool Monitor::begin() { return _trigger->begin(); } MONITOR_STATE Monitor::getState()...
18.785714
57
0.571103
n7jti
5c8f9c5ab8dcad47af31d168f5086a6febef5480
633
cpp
C++
leetcode/844. Backspace String Compare/s1.cpp
contacttoakhil/LeetCode-1
9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c
[ "Fair" ]
1
2021-02-09T11:38:51.000Z
2021-02-09T11:38:51.000Z
leetcode/844. Backspace String Compare/s1.cpp
contacttoakhil/LeetCode-1
9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c
[ "Fair" ]
null
null
null
leetcode/844. Backspace String Compare/s1.cpp
contacttoakhil/LeetCode-1
9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c
[ "Fair" ]
null
null
null
// OJ: https://leetcode.com/problems/backspace-string-compare/ // Author: github.com/lzl124631x // Time: O(N) // Space: O(1) class Solution { private: int normalize(string &S) { int length = 0; for (char c : S) { if (c == '#') { if (length) --length; } else S[...
25.32
62
0.478673
contacttoakhil
5c92736f323d3d4510783548178754bf6da786a1
354
cpp
C++
src/common/Client.cpp
jiridanek/cli-cpp
0e79a8a6c7f16849e741c73ce74e90e79f82bff3
[ "Apache-2.0" ]
1
2020-10-13T08:17:20.000Z
2020-10-13T08:17:20.000Z
src/common/Client.cpp
rh-messaging/cli-cpp
73803c7a72fb976ec6e32292115c2a61e7642d8d
[ "Apache-2.0" ]
18
2020-04-05T10:02:09.000Z
2021-11-03T12:04:39.000Z
src/common/Client.cpp
jiridanek/cli-cpp
0e79a8a6c7f16849e741c73ce74e90e79f82bff3
[ "Apache-2.0" ]
2
2018-08-10T08:53:33.000Z
2020-04-05T11:38:04.000Z
/* * Client.cpp * * Created on: Apr 28, 2015 * Author: opiske */ #include "Client.h" using namespace dtests::common; using namespace dtests::common::log; Logger Client::logger = LoggerWrapper::getLogger(); Client::Client() { // TODO Auto-generated constructor stub } Client::~Client() { // TODO ...
13.615385
51
0.663842
jiridanek
5c9346e219ecf37ed5bee4f71d4d5f7e0d45ec47
642
cpp
C++
test/blob.cpp
detunized/lastpass-cpp
d938cb142abee6c6f19b5f35a70da802d8a41ffa
[ "MIT" ]
5
2015-12-11T14:49:59.000Z
2019-10-10T17:02:18.000Z
test/blob.cpp
detunized/lastpass-cpp
d938cb142abee6c6f19b5f35a70da802d8a41ffa
[ "MIT" ]
null
null
null
test/blob.cpp
detunized/lastpass-cpp
d938cb142abee6c6f19b5f35a70da802d8a41ffa
[ "MIT" ]
null
null
null
// Copyright (C) 2014 Dmitry Yakimenko (detunized@gmail.com). // Licensed under the terms of the MIT license. See LICENCE for details. #include "test.h" namespace { using namespace lastpass; using namespace test; auto const BLOB_BYTES = "\x4c\x50\x41\x56\x00\x00\x00\x03\x31\x31\x38"_s; int const KEY_ITERATION_COUNT...
20.709677
73
0.76324
detunized
5c97bbc3bf52ba514bb696920cb6b0b0f6d832af
4,904
hpp
C++
include/argot/case/detail/as_constant.hpp
mattcalabrese/argot
97349baaf27659c9dc4d67cf8963b2e871eaedae
[ "BSL-1.0" ]
49
2018-05-09T23:17:45.000Z
2021-07-21T10:05:19.000Z
include/argot/case/detail/as_constant.hpp
mattcalabrese/argot
97349baaf27659c9dc4d67cf8963b2e871eaedae
[ "BSL-1.0" ]
null
null
null
include/argot/case/detail/as_constant.hpp
mattcalabrese/argot
97349baaf27659c9dc4d67cf8963b2e871eaedae
[ "BSL-1.0" ]
2
2019-08-04T03:51:36.000Z
2020-12-28T06:53:29.000Z
/*============================================================================== Copyright (c) 2017, 2018 Matt Calabrese 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) =============================================...
31.844156
90
0.727977
mattcalabrese
5c9a2e881e4074428205f84ee26402159f5a20a7
5,794
hpp
C++
INCLUDE/Vcl/dblocal.hpp
earthsiege2/borland-cpp-ide
09bcecc811841444338e81b9c9930c0e686f9530
[ "Unlicense", "FSFAP", "Apache-1.1" ]
1
2022-01-13T01:03:55.000Z
2022-01-13T01:03:55.000Z
INCLUDE/Vcl/dblocal.hpp
earthsiege2/borland-cpp-ide
09bcecc811841444338e81b9c9930c0e686f9530
[ "Unlicense", "FSFAP", "Apache-1.1" ]
null
null
null
INCLUDE/Vcl/dblocal.hpp
earthsiege2/borland-cpp-ide
09bcecc811841444338e81b9c9930c0e686f9530
[ "Unlicense", "FSFAP", "Apache-1.1" ]
null
null
null
// Borland C++ Builder // Copyright (c) 1995, 2002 by Borland Software Corporation // All rights reserved // (DO NOT EDIT: machine generated header) 'DBLocal.pas' rev: 6.00 #ifndef DBLocalHPP #define DBLocalHPP #pragma delphiheader begin #pragma option push -w- #pragma option push -Vx #include <Provider....
38.626667
127
0.746634
earthsiege2
5ca31c5a46250b493e1cee0dddb8f66a9f62e8c5
6,713
cxx
C++
Testing/Code/BasicFilters/itkDiffusionTensor3DReconstructionImageFilterTest.cxx
kiranhs/ITKv4FEM-Kiran
0e4ab3b61b5fc4c736f04a73dd19e41390f20152
[ "BSD-3-Clause" ]
1
2018-04-15T13:32:43.000Z
2018-04-15T13:32:43.000Z
Testing/Code/BasicFilters/itkDiffusionTensor3DReconstructionImageFilterTest.cxx
kiranhs/ITKv4FEM-Kiran
0e4ab3b61b5fc4c736f04a73dd19e41390f20152
[ "BSD-3-Clause" ]
null
null
null
Testing/Code/BasicFilters/itkDiffusionTensor3DReconstructionImageFilterTest.cxx
kiranhs/ITKv4FEM-Kiran
0e4ab3b61b5fc4c736f04a73dd19e41390f20152
[ "BSD-3-Clause" ]
null
null
null
/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkDiffusionTensor3DReconstructionImageFilterTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights r...
37.294444
107
0.669
kiranhs
5ca36a3257ea70050ddcc68b9a46f3ad7cd8660b
479
cpp
C++
MonoNative.Tests/mscorlib/System/mscorlib_System_IDisposable_Fixture.cpp
brunolauze/MonoNative
959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66
[ "BSD-2-Clause" ]
7
2015-03-10T03:36:16.000Z
2021-11-05T01:16:58.000Z
MonoNative.Tests/mscorlib/System/mscorlib_System_IDisposable_Fixture.cpp
brunolauze/MonoNative
959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66
[ "BSD-2-Clause" ]
1
2020-06-23T10:02:33.000Z
2020-06-24T02:05:47.000Z
MonoNative.Tests/mscorlib/System/mscorlib_System_IDisposable_Fixture.cpp
brunolauze/MonoNative
959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66
[ "BSD-2-Clause" ]
null
null
null
// Mono Native Fixture // Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 // Namespace: System // Name: IDisposable // C++ Typed Name: mscorlib::System::IDisposable #include <gtest/gtest.h> #include <mscorlib/System/mscorlib_System_IDisposable.h> namespace mscorlib { namespac...
15.451613
88
0.716075
brunolauze
5ca6e5bcac7c9d5625a7186af86632f2520fbd60
498
hpp
C++
src/entt/container/fwd.hpp
pgruenbacher/entt
2f06d1ce3c99c49ef61d7bc2080a16cdaa08e3ef
[ "MIT" ]
6,792
2017-03-27T19:05:19.000Z
2022-03-31T20:21:26.000Z
src/entt/container/fwd.hpp
pgruenbacher/entt
2f06d1ce3c99c49ef61d7bc2080a16cdaa08e3ef
[ "MIT" ]
764
2017-05-22T18:48:53.000Z
2022-03-31T22:04:27.000Z
src/entt/container/fwd.hpp
pgruenbacher/entt
2f06d1ce3c99c49ef61d7bc2080a16cdaa08e3ef
[ "MIT" ]
811
2017-03-27T19:52:48.000Z
2022-03-30T11:32:57.000Z
#ifndef ENTT_CONTAINER_FWD_HPP #define ENTT_CONTAINER_FWD_HPP #include <functional> #include <memory> namespace entt { template< typename Key, typename Type, typename = std::hash<Key>, typename = std::equal_to<Key>, typename = std::allocator<std::pair<const Key, Type>>> class dense_hash_map; templat...
19.153846
58
0.704819
pgruenbacher
5ca741fad11fb3d8ee2d4f66b22341592e24067b
15,004
cc
C++
test/src/derived_unit_tests/inductance_tests.cc
sthagen/cpp-si-units
a0332b0deab26f31955fc2a8f8ba48af2515ab14
[ "MIT" ]
366
2019-02-09T10:10:25.000Z
2022-03-31T13:53:35.000Z
test/src/derived_unit_tests/inductance_tests.cc
sthagen/cpp-si-units
a0332b0deab26f31955fc2a8f8ba48af2515ab14
[ "MIT" ]
22
2019-03-01T12:04:23.000Z
2022-02-14T06:19:43.000Z
test/src/derived_unit_tests/inductance_tests.cc
sthagen/cpp-si-units
a0332b0deab26f31955fc2a8f8ba48af2515ab14
[ "MIT" ]
27
2019-03-01T07:53:38.000Z
2022-03-17T21:53:05.000Z
#include <catch2/catch.hpp> #include <SI/electric_current.h> #include <SI/inductance.h> #include <SI/magnetic_flux.h> #include <SI/stream.h> #include <sstream> using namespace SI::literals; TEST_CASE("GIVEN a value WHEN constructed with literal _aH THEN result is a " "inductance type AND ratio 1 to 10^15") ...
31.72093
80
0.640229
sthagen
5ca9418b9d86fad740b69a9d12e1020a3f255d4a
8,042
cpp
C++
src/util/navigator.cpp
Caprica666/vixen
b71e9415bbfa5f080aee30a831e3b0c8f70fcc7d
[ "BSD-2-Clause" ]
1
2019-02-13T15:39:56.000Z
2019-02-13T15:39:56.000Z
src/util/navigator.cpp
Caprica666/vixen
b71e9415bbfa5f080aee30a831e3b0c8f70fcc7d
[ "BSD-2-Clause" ]
null
null
null
src/util/navigator.cpp
Caprica666/vixen
b71e9415bbfa5f080aee30a831e3b0c8f70fcc7d
[ "BSD-2-Clause" ]
2
2017-11-09T12:06:41.000Z
2019-02-13T15:40:02.000Z
#include "vixen.h" #include "vxutil.h" namespace Vixen { VX_IMPLEMENT_CLASSID(Navigator, MouseEngine, VX_Navigator); VX_IMPLEMENT_CLASSID(NavRecorder, Engine, VX_NavRecorder); Navigator::Navigator() : MouseEngine() { m_kForward = m_kBack = m_kLeft = m_kRight = m_kCtrl = m_kUp = m_kDown = false; m_TurnSpeed = 0.05...
22.653521
98
0.624098
Caprica666
5caeeae20745c281ad0900ab77352ccee7b88938
900
hpp
C++
src/compiler/ir_passes/construct_cssa.hpp
mbeckem/tiro
b3d729fce46243f25119767c412c6db234c2d938
[ "MIT" ]
10
2020-01-23T20:41:19.000Z
2021-12-28T20:24:44.000Z
src/compiler/ir_passes/construct_cssa.hpp
mbeckem/tiro
b3d729fce46243f25119767c412c6db234c2d938
[ "MIT" ]
22
2021-03-25T16:22:08.000Z
2022-03-17T12:50:38.000Z
src/compiler/ir_passes/construct_cssa.hpp
mbeckem/tiro
b3d729fce46243f25119767c412c6db234c2d938
[ "MIT" ]
null
null
null
#ifndef TIRO_COMPILER_IR_PASSES_CONSTRUCT_CSSA_HPP #define TIRO_COMPILER_IR_PASSES_CONSTRUCT_CSSA_HPP #include "compiler/ir/fwd.hpp" namespace tiro::ir { /// Ensures that the function is in CSSA form (no phi function arguments /// with interfering lifetime). /// /// Returns true if the cfg was modified. /// /// Refe...
31.034483
85
0.723333
mbeckem
5cb2afe04a1385e3bf48002caed61488d8e6606a
1,556
cc
C++
tensorflow/security/fuzzing/stringprintf_fuzz.cc
yage99/tensorflow
c7fa71b32a3635eb25596ae80d007b41007769c4
[ "Apache-2.0" ]
4
2020-06-28T08:25:36.000Z
2021-08-12T12:41:34.000Z
tensorflow/security/fuzzing/stringprintf_fuzz.cc
yage99/tensorflow
c7fa71b32a3635eb25596ae80d007b41007769c4
[ "Apache-2.0" ]
5
2020-07-17T17:36:44.000Z
2020-08-05T20:18:02.000Z
tensorflow/security/fuzzing/stringprintf_fuzz.cc
yage99/tensorflow
c7fa71b32a3635eb25596ae80d007b41007769c4
[ "Apache-2.0" ]
4
2019-11-28T12:18:07.000Z
2021-08-01T16:12:17.000Z
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
33.826087
80
0.715938
yage99
5cb3d4ae03cc8637ad4683e5135e03d5df085949
6,129
cpp
C++
libraries/u3shell/relative_branching.cpp
nd-nuclear-theory/spncci
18b30e63ca62bfeea9bfadaf2bad3bfb166ce3e4
[ "MIT" ]
1
2021-10-17T22:58:31.000Z
2021-10-17T22:58:31.000Z
libraries/u3shell/relative_branching.cpp
nd-nuclear-theory/spncci
18b30e63ca62bfeea9bfadaf2bad3bfb166ce3e4
[ "MIT" ]
1
2021-02-16T03:16:31.000Z
2021-02-16T19:46:18.000Z
libraries/u3shell/relative_branching.cpp
nd-nuclear-theory/spncci
18b30e63ca62bfeea9bfadaf2bad3bfb166ce3e4
[ "MIT" ]
2
2019-04-27T17:26:59.000Z
2021-04-28T17:04:07.000Z
/**************************************************************** relative_branching.cpp ****************************************************************/ #include "u3shell/relative_branching.h" #include "am/wigner_gsl.h" #include "cppformat/format.h" extern double zero_threshold; namespace u3shell { void Branch...
37.601227
135
0.589329
nd-nuclear-theory
5cb429be3b171e7be46b1642a3a7b3584e8828c7
398
cpp
C++
sourceCode/template/sceneObjects/dummy.cpp
mdecourse/CoppeliaSimLib
934e65b4b6ea5a07d08919ae35c50fd3ae960ef2
[ "RSA-MD" ]
null
null
null
sourceCode/template/sceneObjects/dummy.cpp
mdecourse/CoppeliaSimLib
934e65b4b6ea5a07d08919ae35c50fd3ae960ef2
[ "RSA-MD" ]
null
null
null
sourceCode/template/sceneObjects/dummy.cpp
mdecourse/CoppeliaSimLib
934e65b4b6ea5a07d08919ae35c50fd3ae960ef2
[ "RSA-MD" ]
null
null
null
#include "dummy.h" #include "app.h" int CDummy::cnt=0; CDummy::CDummy() { cnt++; std::string tmp("dummy created (total: "); tmp+=std::to_string(cnt)+")"; simAddLog("Sync",sim_verbosity_debug,tmp.c_str()); } CDummy::~CDummy() { cnt--; std::string tmp("dummy destroyed (total: "); tmp+=std::...
18.090909
54
0.610553
mdecourse
5cb857f907b589bbfea31f9fc79c3dbc46b0dcfd
1,006
hpp
C++
src/XmlNya.hpp
Akela1101/nya_qt
a305158af3a764b6856d977f4d95fa2c5649793c
[ "MIT" ]
null
null
null
src/XmlNya.hpp
Akela1101/nya_qt
a305158af3a764b6856d977f4d95fa2c5649793c
[ "MIT" ]
null
null
null
src/XmlNya.hpp
Akela1101/nya_qt
a305158af3a764b6856d977f4d95fa2c5649793c
[ "MIT" ]
null
null
null
#ifndef XMLNYA_H #define XMLNYA_H /* Usage: while( ss.ReadNextChild() ) { QStringRef s = ss.name(); if( s == "a1" ) a1 = ss.ReadElement().toLatin1(); else if( s == "a2" ) a2 = ss.ReadElement().toDouble(); // ... else ss.SkipElement(); } */ #include <QXmlStreamReader> #include <QHash> typedef QXmlStream...
21.404255
97
0.709742
Akela1101
5cb91695732aa84f8905c95a4ece0afaff29221b
10,181
cxx
C++
smtk/task/testing/cxx/TestTaskJSON.cxx
jcfr/SMTK
0069ea37f8f71a440b8f10a157b84a56ca004551
[ "BSD-3-Clause-Clear" ]
40
2015-02-21T19:55:54.000Z
2022-01-06T13:13:05.000Z
smtk/task/testing/cxx/TestTaskJSON.cxx
jcfr/SMTK
0069ea37f8f71a440b8f10a157b84a56ca004551
[ "BSD-3-Clause-Clear" ]
127
2015-01-15T20:55:45.000Z
2021-08-19T17:34:15.000Z
smtk/task/testing/cxx/TestTaskJSON.cxx
jcfr/SMTK
0069ea37f8f71a440b8f10a157b84a56ca004551
[ "BSD-3-Clause-Clear" ]
27
2015-03-04T14:17:51.000Z
2021-12-23T01:05:42.000Z
//========================================================================= // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURPOSE...
36.622302
99
0.663982
jcfr
5cba5821036a75b51b930ef28ed3d58167ff16a5
3,802
cpp
C++
volume_II/acm_1103.cpp
raidenluikang/acm.timus.ru
9b7c99eb03959acff9dd96326eec642a2c31ed04
[ "MIT" ]
null
null
null
volume_II/acm_1103.cpp
raidenluikang/acm.timus.ru
9b7c99eb03959acff9dd96326eec642a2c31ed04
[ "MIT" ]
null
null
null
volume_II/acm_1103.cpp
raidenluikang/acm.timus.ru
9b7c99eb03959acff9dd96326eec642a2c31ed04
[ "MIT" ]
null
null
null
/* acm.timus.ru 1103. Pencils and Circles * * Strategy: * Pick two points on the convex hull of the point set. If we form a circle with some other point, * the largest such circle will encompass all points, the second largest will encompass all points * except for one, etc. The angle formed by the two static poin...
21.480226
98
0.477117
raidenluikang
5cc12a461f6665742765d93cfcce70a8df291a5f
17,569
hpp
C++
delaunay.hpp
GoldFeniks/delaunay
a96621d28a57bd6c73fbecf0ae5347714a3ed07e
[ "MIT" ]
null
null
null
delaunay.hpp
GoldFeniks/delaunay
a96621d28a57bd6c73fbecf0ae5347714a3ed07e
[ "MIT" ]
1
2021-01-31T11:20:44.000Z
2021-02-01T00:16:53.000Z
delaunay.hpp
GoldFeniks/delaunay
a96621d28a57bd6c73fbecf0ae5347714a3ed07e
[ "MIT" ]
null
null
null
#pragma once #include <list> #include <tuple> #include <cmath> #include <limits> #include <vector> #include <cstddef> #include <utility> #include <algorithm> template<typename T> class delaunay_triangulation { private: class edge; class point; class triangle; template<typename V> class data_valu...
31.655856
133
0.499516
GoldFeniks
5cc1cf304df5d0e0ab2a5b795ba88053dd55eb2e
881
cpp
C++
src/Renderer/FE_GPU_Info.cpp
antsouchlos/OxygenEngine
11ecc13e60f8e1e3a89dee18d07b25ac5e1b0e48
[ "MIT" ]
null
null
null
src/Renderer/FE_GPU_Info.cpp
antsouchlos/OxygenEngine
11ecc13e60f8e1e3a89dee18d07b25ac5e1b0e48
[ "MIT" ]
null
null
null
src/Renderer/FE_GPU_Info.cpp
antsouchlos/OxygenEngine
11ecc13e60f8e1e3a89dee18d07b25ac5e1b0e48
[ "MIT" ]
null
null
null
#include "FE_GPU_Info.h" FE_GPU_Info::FE_GPU_Info() { //ctor } FE_GPU_Info::~FE_GPU_Info() { //dtor } // find GPU objects by name easily size_t FE_GPU_Info::findVBO(string a_name){ //cout << vbos.size() << endl; for(size_t x =0; x < vbos.size(); x++) if(vbos[x].name == a_name){ return x; ...
19.577778
47
0.582293
antsouchlos
5cc5db16ce60312d7f6ae4895481330439fce15c
6,643
hpp
C++
nn_runtime/nnrt/permute_vector.hpp
phytec-mirrors/nn-imx
58525bf968e8d90004f6d782ad37cea28991a439
[ "MIT" ]
null
null
null
nn_runtime/nnrt/permute_vector.hpp
phytec-mirrors/nn-imx
58525bf968e8d90004f6d782ad37cea28991a439
[ "MIT" ]
null
null
null
nn_runtime/nnrt/permute_vector.hpp
phytec-mirrors/nn-imx
58525bf968e8d90004f6d782ad37cea28991a439
[ "MIT" ]
null
null
null
/**************************************************************************** * * Copyright (c) 2020 Vivante Corporation * * 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 ...
30.195455
100
0.592353
phytec-mirrors
5cc7322147dd8620e402bf38cd61f60b86f22026
7,022
cpp
C++
Lib/src/PropertyExtractor/Greens.cpp
undisputed-seraphim/TBTK
45a0875a11da951f900b6fd5e0773ccdf8462915
[ "Apache-2.0" ]
96
2016-04-21T16:46:56.000Z
2022-01-15T21:40:25.000Z
Lib/src/PropertyExtractor/Greens.cpp
undisputed-seraphim/TBTK
45a0875a11da951f900b6fd5e0773ccdf8462915
[ "Apache-2.0" ]
4
2016-10-19T16:56:20.000Z
2020-04-14T01:31:40.000Z
Lib/src/PropertyExtractor/Greens.cpp
undisputed-seraphim/TBTK
45a0875a11da951f900b6fd5e0773ccdf8462915
[ "Apache-2.0" ]
19
2016-10-19T14:21:58.000Z
2021-04-15T13:52:09.000Z
/* Copyright 2018 Kristofer Björnson * * 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...
23.174917
75
0.722159
undisputed-seraphim
5ccc2ae6acfeabfdc89ea685ee02dff9a26be907
2,459
cpp
C++
taco-oopsla2017/src/io/tns_file_format.cpp
peterahrens/FillEstimationIPDPS2017
857b6ee8866a2950aa5721d575d2d7d0797c4302
[ "BSD-3-Clause" ]
null
null
null
taco-oopsla2017/src/io/tns_file_format.cpp
peterahrens/FillEstimationIPDPS2017
857b6ee8866a2950aa5721d575d2d7d0797c4302
[ "BSD-3-Clause" ]
null
null
null
taco-oopsla2017/src/io/tns_file_format.cpp
peterahrens/FillEstimationIPDPS2017
857b6ee8866a2950aa5721d575d2d7d0797c4302
[ "BSD-3-Clause" ]
null
null
null
#include "taco/io/tns_file_format.h" #include <iostream> #include <fstream> #include <cstdlib> #include <algorithm> #include <vector> #include <cmath> #include <limits.h> #include "taco/tensor.h" #include "taco/format.h" #include "taco/error.h" #include "taco/util/strings.h" using namespace std; namespace taco { na...
24.838384
80
0.647824
peterahrens
5ccee7478fd0e8a053cba7962f9c04078dc9395c
760
cpp
C++
TypesetWidget/commanddeletetext.cpp
Math-Collection/YAWYSIWYGEE-Qt-Equation-Editor-Widget
c4e177bff5edff8122ec73a7ed8f325b42fc74b4
[ "MIT" ]
2
2020-03-28T15:35:08.000Z
2021-01-10T06:50:05.000Z
TypesetWidget/commanddeletetext.cpp
Qt-Widgets/YAWYSIWYGEE-Qt-Equation-Editor-Widget
040383a8db795bb863c451caf4022018181afaf1
[ "MIT" ]
null
null
null
TypesetWidget/commanddeletetext.cpp
Qt-Widgets/YAWYSIWYGEE-Qt-Equation-Editor-Widget
040383a8db795bb863c451caf4022018181afaf1
[ "MIT" ]
null
null
null
#include "commanddeletetext.h" #include "cursor.h" namespace Typeset{ CommandDeleteText::CommandDeleteText(Cursor& cursor, Text* t, QTextCursor cL, QTextCursor cR) : cursor(cursor), t(t) { pL = cL.position(); pR = cR.position(); c = cL; c.setPosition(cR.position(), QTextCursor::KeepAnchor);...
21.714286
93
0.643421
Math-Collection
5cd323e2d31d861165bfadfdce0e6c41f0e91ca8
4,970
tcc
C++
flens/blas/level1/raxpy.tcc
stip/FLENS
80495fa97dda42a0acafc8f83fc9639ae36d2e10
[ "BSD-3-Clause" ]
98
2015-01-26T20:31:37.000Z
2021-09-09T15:51:37.000Z
flens/blas/level1/raxpy.tcc
stip/FLENS
80495fa97dda42a0acafc8f83fc9639ae36d2e10
[ "BSD-3-Clause" ]
16
2015-01-21T07:43:45.000Z
2021-12-06T12:08:36.000Z
flens/blas/level1/raxpy.tcc
stip/FLENS
80495fa97dda42a0acafc8f83fc9639ae36d2e10
[ "BSD-3-Clause" ]
31
2015-01-05T08:06:45.000Z
2022-01-26T20:12:00.000Z
/* * Copyright (c) 2012, Michael Lehn * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1) Redistributions of source code must retain the above copyright * notice,...
30.121212
78
0.645272
stip
5cd3570a357b9a4becdc314a42657c5218f9cf78
309
cpp
C++
examples/qcor_demos/pnnl_tutorials/1_kernels/ccnot_qfast.cpp
vetter/qcor
6f86835737277a26071593bb10dd8627c29d74a3
[ "BSD-3-Clause" ]
59
2019-08-22T18:40:38.000Z
2022-03-09T04:12:42.000Z
examples/qcor_demos/pnnl_tutorials/1_kernels/ccnot_qfast.cpp
vetter/qcor
6f86835737277a26071593bb10dd8627c29d74a3
[ "BSD-3-Clause" ]
137
2019-09-13T15:50:18.000Z
2021-12-06T14:19:46.000Z
examples/qcor_demos/pnnl_tutorials/1_kernels/ccnot_qfast.cpp
vetter/qcor
6f86835737277a26071593bb10dd8627c29d74a3
[ "BSD-3-Clause" ]
26
2019-07-08T17:30:35.000Z
2021-12-03T16:24:12.000Z
__qpu__ void ccnot(qreg q) { decompose { UnitaryMatrix ccnot_mat = UnitaryMatrix::Identity(8, 8); ccnot_mat(6, 6) = 0.0; ccnot_mat(7, 7) = 0.0; ccnot_mat(6, 7) = 1.0; ccnot_mat(7, 6) = 1.0; } (q, QFAST); } int main() { auto q = qalloc(3); ccnot::print_kernel(q); return 0; }
17.166667
60
0.572816
vetter
5cd48f36f264bf9e2c1f1cfbe788d0b70faf89f6
267
cc
C++
benchmarks/0000.10m_size_t/strings/size_t/fmtformat_int.cc
EwoutH/fast_io
1393ef01b82dffa87f3008ec0898431865870a1f
[ "MIT" ]
2
2020-07-20T06:07:20.000Z
2020-10-21T08:53:49.000Z
benchmarks/0000.10m_size_t/strings/size_t/fmtformat_int.cc
EwoutH/fast_io
1393ef01b82dffa87f3008ec0898431865870a1f
[ "MIT" ]
null
null
null
benchmarks/0000.10m_size_t/strings/size_t/fmtformat_int.cc
EwoutH/fast_io
1393ef01b82dffa87f3008ec0898431865870a1f
[ "MIT" ]
null
null
null
#include"../../../timer.h" #include<fmt/format.h> int main() { constexpr std::size_t N(200000000); std::size_t value{}; { fast_io::timer t("fmt::format_int"); for(std::size_t i{};i!=N;++i) value+=fmt::format_int(i).str().size(); } println("value:",value); }
19.071429
41
0.614232
EwoutH
5cd51a933cc3bfa003384ad5feff282e29ac0ede
7,362
cpp
C++
multimedia/directx/dplay/dplay8/sp/wsock/locals.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
multimedia/directx/dplay/dplay8/sp/wsock/locals.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
multimedia/directx/dplay/dplay8/sp/wsock/locals.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
/*========================================================================== * * Copyright (C) 1998-2002 Microsoft Corporation. All Rights Reserved. * * File: Locals.cpp * Content: Global variables for the DNWsock service provider * * * History: * Date By Reason * ==== == ====== ...
30.04898
113
0.625917
npocmaka
5cd67a6323c938d13e7ca548f26524eb93c5ca2a
1,146
cpp
C++
deps/mozjs/js/src/v8api/test/test_handle.cpp
zpao/spidernode
843d5b5e9be55ce447fd03127aeeb2c7728ae168
[ "MIT" ]
48
2015-01-09T20:39:35.000Z
2021-12-21T21:17:52.000Z
deps/mozjs/js/src/v8api/test/test_handle.cpp
ninja1002/spidernode
ada8fc559bd2c047a6e52c78af9d27ab273c87d5
[ "MIT" ]
2
2016-02-05T10:27:37.000Z
2019-01-22T16:22:51.000Z
deps/mozjs/js/src/v8api/test/test_handle.cpp
ninja1002/spidernode
ada8fc559bd2c047a6e52c78af9d27ab273c87d5
[ "MIT" ]
8
2015-01-12T17:14:36.000Z
2018-09-15T14:10:27.000Z
/* Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ */ #include "v8api_test_harness.h" //////////////////////////////////////////////////////////////////////////////// //// Tests void test_ArrayConversion() { HandleScope handle_scope; Persistent<Context> conte...
23.387755
80
0.602967
zpao
5cd7b02652bcf3eb19abc275c3682832010e23a3
398
cpp
C++
src/algos/connection.cpp
mhough/braingl
53e2078adc10731ee62feec11dcb767c4c6c0d35
[ "MIT" ]
5
2016-03-17T07:02:11.000Z
2021-12-12T14:43:58.000Z
src/algos/connection.cpp
mhough/braingl
53e2078adc10731ee62feec11dcb767c4c6c0d35
[ "MIT" ]
null
null
null
src/algos/connection.cpp
mhough/braingl
53e2078adc10731ee62feec11dcb767c4c6c0d35
[ "MIT" ]
3
2015-10-29T15:21:01.000Z
2020-11-25T09:41:21.000Z
/* * connection.cpp * * Created on: Apr 30, 2013 * Author: boettgerj */ #include "connection.h" #include "qmath.h" Connection::Connection( QVector3D fn, QVector3D diff, float v ) : fn( fn ), diff( diff ), v( v ) { QVector3D diffn = diff.normalized(); r=qAbs(diffn.x()); g=...
13.724138
65
0.557789
mhough
5ce1cf2c85f5c6504197bfe1a1e24e94ee48e855
4,033
cpp
C++
source/IrrOdeTestBed/tests/CTestCar.cpp
inniyah/irrode
0ecb125933ef828995e4fd557410acf703bea0e2
[ "bzip2-1.0.6" ]
1
2018-01-17T22:57:55.000Z
2018-01-17T22:57:55.000Z
source/IrrOdeTestBed/tests/CTestCar.cpp
inniyah/irrode
0ecb125933ef828995e4fd557410acf703bea0e2
[ "bzip2-1.0.6" ]
null
null
null
source/IrrOdeTestBed/tests/CTestCar.cpp
inniyah/irrode
0ecb125933ef828995e4fd557410acf703bea0e2
[ "bzip2-1.0.6" ]
null
null
null
#include <tests/CTestCar.h> CTestCar::CTestCar(irr::IrrlichtDevice *pDevice, IRunner *pRunner) : IState(pDevice, pRunner) { m_sName=L"Car Test"; m_sDescr=L"Test with user controlled car"; } void CTestCar::activate() { m_pSmgr->loadScene(DATADIR "/scenes/Testbed_car.xml"); m_pCam=m_pSmgr->addCamer...
33.890756
114
0.629804
inniyah
5ce80c86538d991c55a3fe4c1c3693a440ac9c49
405
hpp
C++
src/games/chess.hpp
RememberOfLife/mirabel
4ff62d6b9dbb0bde6a9755e9e2b1fca88baed8af
[ "MIT" ]
2
2022-03-29T08:39:24.000Z
2022-03-30T09:22:18.000Z
src/games/chess.hpp
RememberOfLife/mirabel
4ff62d6b9dbb0bde6a9755e9e2b1fca88baed8af
[ "MIT" ]
null
null
null
src/games/chess.hpp
RememberOfLife/mirabel
4ff62d6b9dbb0bde6a9755e9e2b1fca88baed8af
[ "MIT" ]
null
null
null
#pragma once #include "surena/game.h" #include "games/game_catalogue.hpp" namespace Games { class Chess : public BaseGameVariant { public: Chess(); ~Chess(); game* new_game() override; void draw_options() override; void draw_state_editor(game*...
18.409091
65
0.582716
RememberOfLife