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
5370056914bfdfe6034867a131acfab0054992d3
1,573
cpp
C++
galaxy/src/galaxy/graphics/Colour.cpp
DomRe/galaxy
dbffcbe3ff1ea0f1cb1f23a554b13be0eb681a57
[ "Apache-2.0" ]
19
2020-02-02T16:36:46.000Z
2021-12-25T07:02:28.000Z
galaxy/src/galaxy/graphics/Colour.cpp
DomRe/galaxy
dbffcbe3ff1ea0f1cb1f23a554b13be0eb681a57
[ "Apache-2.0" ]
103
2020-10-13T09:03:42.000Z
2022-03-26T03:41:50.000Z
galaxy/src/galaxy/graphics/Colour.cpp
DomRe/galaxy
dbffcbe3ff1ea0f1cb1f23a554b13be0eb681a57
[ "Apache-2.0" ]
5
2020-03-13T06:14:37.000Z
2021-12-12T02:13:46.000Z
/// /// Colour.cpp /// galaxy /// /// Refer to LICENSE.txt for more details. /// #include "Colour.hpp" namespace galaxy { namespace graphics { Colour::Colour() noexcept : m_red {255} , m_green {255} , m_blue {255} , m_alpha {255} { } Colour::Colour(const std::uint8_t r, const std::uint8_t g, co...
15.574257
113
0.562619
DomRe
53704cdb6bcba879e754189e21e1248aaee76b42
913
cpp
C++
test/concurrency_latch_wait_multiple_times.cpp
Farwaykorse/coroutine
cfe7f0ca5ab4670e539a9f4d6c69d85ba4cb18f7
[ "CC-BY-4.0" ]
null
null
null
test/concurrency_latch_wait_multiple_times.cpp
Farwaykorse/coroutine
cfe7f0ca5ab4670e539a9f4d6c69d85ba4cb18f7
[ "CC-BY-4.0" ]
null
null
null
test/concurrency_latch_wait_multiple_times.cpp
Farwaykorse/coroutine
cfe7f0ca5ab4670e539a9f4d6c69d85ba4cb18f7
[ "CC-BY-4.0" ]
null
null
null
// // Author : github.com/luncliff (luncliff@gmail.com) // License : CC BY 4.0 // #include <concurrency_helper.h> #include <coroutine/return.h> #include "test.h" using namespace std; using namespace coro; auto concrt_latch_wait_multiple_test() { latch wg{1}; _require_(wg.is_ready() == false); wg.coun...
21.738095
80
0.720701
Farwaykorse
5372cedf806e593384c41bcfca825a081f342a93
2,408
cpp
C++
Array/3Sum.cpp
harshallgarg/Diversified-Programming
7e6fb135c4639dbaa0651b85f98397f994a5b11d
[ "MIT" ]
2
2020-08-09T02:09:50.000Z
2020-08-09T07:07:47.000Z
Array/3Sum.cpp
harshallgarg/Diversified-Programming
7e6fb135c4639dbaa0651b85f98397f994a5b11d
[ "MIT" ]
null
null
null
Array/3Sum.cpp
harshallgarg/Diversified-Programming
7e6fb135c4639dbaa0651b85f98397f994a5b11d
[ "MIT" ]
5
2020-09-21T12:49:07.000Z
2020-09-29T16:13:09.000Z
class Solution { public: vector<vector<int>> threeSum(vector<int> &nums) { vector<vector<int>> ans; sort(nums.begin(), nums.end()); int n = nums.size(); for (int i = 0; i < n; i++) { if (i > 0 && nums[i] == nums[i - 1]) { continue; ...
27.678161
83
0.278654
harshallgarg
537700503cdd26d18fc2c5c38a1a6a27a8c41d17
1,404
cpp
C++
src/bits_of_matcha/engine/ops/SaveCsv.cpp
matcha-ai/matcha-engine
2ddc2a1dbe8b646176bf761b85720e94fc6b7cf9
[ "MIT" ]
null
null
null
src/bits_of_matcha/engine/ops/SaveCsv.cpp
matcha-ai/matcha-engine
2ddc2a1dbe8b646176bf761b85720e94fc6b7cf9
[ "MIT" ]
null
null
null
src/bits_of_matcha/engine/ops/SaveCsv.cpp
matcha-ai/matcha-engine
2ddc2a1dbe8b646176bf761b85720e94fc6b7cf9
[ "MIT" ]
1
2022-03-17T12:14:27.000Z
2022-03-17T12:14:27.000Z
#include "bits_of_matcha/engine/ops/SaveCsv.h" #include "bits_of_matcha/engine/tensor/iterations.h" #include <fstream> #include <iostream> #include <sstream> namespace matcha::engine::ops { SaveCsv::SaveCsv(Tensor* a, const std::string& file) : Op{a} , file_(file) {} void SaveCsv::run() { std::ofstream os(fi...
20.347826
70
0.538462
matcha-ai
537a0058e9af78f53b874b83272398e8b1b5cf87
3,344
hpp
C++
include/eepp/ui/uihelper.hpp
jayrulez/eepp
09c5c1b6b4c0306bb0a188474778c6949b5df3a7
[ "MIT" ]
37
2020-01-20T06:21:24.000Z
2022-03-21T17:44:50.000Z
include/eepp/ui/uihelper.hpp
jayrulez/eepp
09c5c1b6b4c0306bb0a188474778c6949b5df3a7
[ "MIT" ]
null
null
null
include/eepp/ui/uihelper.hpp
jayrulez/eepp
09c5c1b6b4c0306bb0a188474778c6949b5df3a7
[ "MIT" ]
9
2019-03-22T00:33:07.000Z
2022-03-01T01:35:59.000Z
#ifndef EE_UIHELPER_HPP #define EE_UIHELPER_HPP #include <eepp/graphics/font.hpp> #include <eepp/ui/base.hpp> using namespace EE::Graphics; namespace EE { namespace UI { #define UI_HALIGN_LEFT TEXT_ALIGN_LEFT #define UI_HALIGN_MASK TEXT_HALIGN_MASK #define UI_VALIGN_TOP TEXT_ALIGN_TOP #define UI_VALIGN_MASK TEXT_VA...
25.526718
81
0.772727
jayrulez
537a5b183ea49888c3e68eb2d9aa545d3457a526
1,563
cpp
C++
src/terark/util/tmpfile.cpp
rockeet/terark-zip
3235373d04b7cf5d584259111b3a057c45cc1708
[ "BSD-3-Clause" ]
44
2020-12-21T05:14:38.000Z
2022-03-15T11:27:32.000Z
src/terark/util/tmpfile.cpp
rockeet/terark-zip
3235373d04b7cf5d584259111b3a057c45cc1708
[ "BSD-3-Clause" ]
2
2020-12-28T10:42:03.000Z
2021-05-21T07:22:47.000Z
src/terark/util/tmpfile.cpp
rockeet/terark-zip
3235373d04b7cf5d584259111b3a057c45cc1708
[ "BSD-3-Clause" ]
21
2020-12-22T09:40:16.000Z
2021-12-07T18:16:00.000Z
// created by leipeng at 2020-01-09 10:32 #include "tmpfile.hpp" #if _MSC_VER #include <io.h> #endif namespace terark { TempFileDeleteOnClose::~TempFileDeleteOnClose() { if (fp) this->close(); } void TempFileDeleteOnClose::open_temp() { if (!fstring(path).endsWith("XXXXXX")) { THROW_ST...
21.410959
90
0.577095
rockeet
537d142842055fb774cfd5c029ede3fd3e049d5e
465
cpp
C++
CPP/Offer/33/ValidateBSTOffer.cpp
Insofan/LeetCode
d6722601886e181745a2e9c31cb146bc0826c906
[ "Apache-2.0" ]
null
null
null
CPP/Offer/33/ValidateBSTOffer.cpp
Insofan/LeetCode
d6722601886e181745a2e9c31cb146bc0826c906
[ "Apache-2.0" ]
null
null
null
CPP/Offer/33/ValidateBSTOffer.cpp
Insofan/LeetCode
d6722601886e181745a2e9c31cb146bc0826c906
[ "Apache-2.0" ]
null
null
null
// // Created by Insomnia on 18-9-9. // class Solution { public: bool isValidBST(TreeNode* root) { TreeNode* prev = NULL; return validate(root, prev); } bool validate(TreeNode* node, TreeNode* &prev) { if (node == NULL) return true; if (!validate(node->left, prev)) return f...
25.833333
65
0.569892
Insofan
537d3047e1abd3ea85657f54eb428ea6f2ea5965
1,683
cpp
C++
UnitTests/bitarray_tests.cpp
jakubtyrcha/playground
d6be4387ffb2d9a2106f01b4c1b1a46ce78c1cef
[ "MIT" ]
null
null
null
UnitTests/bitarray_tests.cpp
jakubtyrcha/playground
d6be4387ffb2d9a2106f01b4c1b1a46ce78c1cef
[ "MIT" ]
null
null
null
UnitTests/bitarray_tests.cpp
jakubtyrcha/playground
d6be4387ffb2d9a2106f01b4c1b1a46ce78c1cef
[ "MIT" ]
null
null
null
#include "bitarray.h" #include "catch/catch.hpp" using namespace Playground; TEST_CASE("bitarray can store bits", "[bitarray]") { Bitarray b; b.Resize(1000); for (i32 i = 0; i < 1000; i++) { b.SetBit(i, (i % 3) == 0); } for (i32 i = 0; i < 1000; i++) { REQUIRE(b.GetBit(i) == ((...
22.144737
62
0.56328
jakubtyrcha
537e55b26f570fac8b3a2e8a2495bdfa8101725c
758
cpp
C++
Medium/513_Find_Bottom_Left_Tree_Value.cpp
ShehabMMohamed/LeetCodeCPP
684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780
[ "MIT" ]
1
2021-03-15T10:02:10.000Z
2021-03-15T10:02:10.000Z
Medium/513_Find_Bottom_Left_Tree_Value.cpp
ShehabMMohamed/LeetCodeCPP
684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780
[ "MIT" ]
null
null
null
Medium/513_Find_Bottom_Left_Tree_Value.cpp
ShehabMMohamed/LeetCodeCPP
684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780
[ "MIT" ]
null
null
null
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: int findBottomLeftValue(TreeNode* root) { int key; queue<TreeNode*> q; ...
24.451613
59
0.414248
ShehabMMohamed
53804e0fcc692cb73121e48bae12979f4f34173e
4,081
cc
C++
06-write-once-read-many/shared/src/worm.cc
timmerov/aggiornamento
d6af5c42d96522f6987c4b7c05a9421177504bcd
[ "Unlicense" ]
1
2016-09-21T19:15:20.000Z
2016-09-21T19:15:20.000Z
06-write-once-read-many/shared/src/worm.cc
timmerov/aggiornamento
d6af5c42d96522f6987c4b7c05a9421177504bcd
[ "Unlicense" ]
null
null
null
06-write-once-read-many/shared/src/worm.cc
timmerov/aggiornamento
d6af5c42d96522f6987c4b7c05a9421177504bcd
[ "Unlicense" ]
null
null
null
/* Copyright (C) 2012-2016 tim cotter. All rights reserved. */ /** write once-in-a-while read many example. worm implementation. assumes single writer, multiple simultaneous readers. assumes writer writes rarely. protecting the data in this case causes massive contention. so we don't. the data is constant the vast m...
22.059459
68
0.664298
timmerov
53837e6b67db396214bce13e457e272dc8570deb
1,960
cpp
C++
src/algorithm_trivia/src/partition_algorithms.cpp
PeterSommerlad/CPPCourseIntroduction
9bc9cda460d504a3cf31bb059e858f9e8d5d3bf4
[ "MIT" ]
null
null
null
src/algorithm_trivia/src/partition_algorithms.cpp
PeterSommerlad/CPPCourseIntroduction
9bc9cda460d504a3cf31bb059e858f9e8d5d3bf4
[ "MIT" ]
null
null
null
src/algorithm_trivia/src/partition_algorithms.cpp
PeterSommerlad/CPPCourseIntroduction
9bc9cda460d504a3cf31bb059e858f9e8d5d3bf4
[ "MIT" ]
null
null
null
#include "partition_algorithms.h" #include "cute.h" #include "algorithm_replacements.h" #include <vector> #include <algorithm> #include <iterator> //Partition algorithms (hint): // * is_partitioned // * partition // * stable_partition // * partition_copy // * partition_point namespace { void test...
20.631579
69
0.611224
PeterSommerlad
53848f9f84d2f638958db5df18b39b5a9147a6a1
380
hpp
C++
src/behavior/singleagent/planning/stochastic/sparsesampling/sparse_sampling.hpp
MarkieMark/fastrl
e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e
[ "Apache-2.0" ]
4
2019-04-19T00:11:36.000Z
2020-04-08T09:50:37.000Z
src/behavior/singleagent/planning/stochastic/sparsesampling/sparse_sampling.hpp
MarkieMark/fastrl
e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e
[ "Apache-2.0" ]
null
null
null
src/behavior/singleagent/planning/stochastic/sparsesampling/sparse_sampling.hpp
MarkieMark/fastrl
e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e
[ "Apache-2.0" ]
null
null
null
/* * Mark Benjamin 6th March 2019 * Copyright (c) 2019 Mark Benjamin */ #ifndef FASTRL_BEHAVIOR_SINGLEAGENT_PLANNING_STOCHASTIC_SPARSESAMPLING_SPARSE_SAMPLING_HPP #define FASTRL_BEHAVIOR_SINGLEAGENT_PLANNING_STOCHASTIC_SPARSESAMPLING_SPARSE_SAMPLING_HPP class SparseSampling { }; #endif //FASTRL_BEHAVIOR_SINGLEA...
25.333333
91
0.873684
MarkieMark
5384ff91a415c0595ee18f415cc464bb1ba72eff
615
cpp
C++
leetcode/1019. Next Greater Node In Linked List/s2.cpp
zhuohuwu0603/leetcode_cpp_lzl124631x
6a579328810ef4651de00fde0505934d3028d9c7
[ "Fair" ]
787
2017-05-12T05:19:57.000Z
2022-03-30T12:19:52.000Z
leetcode/1019. Next Greater Node In Linked List/s2.cpp
aerlokesh494/LeetCode
0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f
[ "Fair" ]
8
2020-03-16T05:55:38.000Z
2022-03-09T17:19:17.000Z
leetcode/1019. Next Greater Node In Linked List/s2.cpp
aerlokesh494/LeetCode
0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f
[ "Fair" ]
247
2017-04-30T15:07:50.000Z
2022-03-30T09:58:57.000Z
// OJ: https://leetcode.com/problems/next-greater-node-in-linked-list/ // Author: github.com/lzl124631x // Time: O(N) // Space: O(N) class Solution { public: vector<int> nextLargerNodes(ListNode* head) { vector<int> ans; stack<int> s; for (; head; head = head->next) ans.push_back(head->val);...
29.285714
70
0.476423
zhuohuwu0603
5387597aabae0bab71e06cbe6281d183159b0a76
1,684
cc
C++
net/grpc/gateway/codec/proto_encoder.cc
Atrasoftware/grpc-web
025b1d641b50b486bbae6921b5df4f9a515649a6
[ "BSD-3-Clause" ]
null
null
null
net/grpc/gateway/codec/proto_encoder.cc
Atrasoftware/grpc-web
025b1d641b50b486bbae6921b5df4f9a515649a6
[ "BSD-3-Clause" ]
null
null
null
net/grpc/gateway/codec/proto_encoder.cc
Atrasoftware/grpc-web
025b1d641b50b486bbae6921b5df4f9a515649a6
[ "BSD-3-Clause" ]
null
null
null
#include "net/grpc/gateway/codec/proto_encoder.h" #include <utility> #include <vector> #include "google/protobuf/any.pb.h" #include "net/grpc/gateway/protos/pair.pb.h" #include "net/grpc/gateway/protos/status.pb.h" #include "net/grpc/gateway/runtime/constants.h" #include "net/grpc/gateway/runtime/types.h" #include "t...
33.019608
80
0.697743
Atrasoftware
538e3cf9a56ad0fa33606c7640b0a404e593618a
505
cpp
C++
core/assembly_language_parser.cpp
jeffpanici75/ryu
5a6ce78918932bbd236bfa29112f11907d782655
[ "MIT" ]
35
2018-02-01T20:53:13.000Z
2022-02-28T18:41:05.000Z
core/assembly_language_parser.cpp
jeffpanici75/ryu
5a6ce78918932bbd236bfa29112f11907d782655
[ "MIT" ]
7
2018-09-18T22:09:25.000Z
2018-09-18T22:21:14.000Z
core/assembly_language_parser.cpp
jeffpanici75/ryu
5a6ce78918932bbd236bfa29112f11907d782655
[ "MIT" ]
5
2021-05-14T10:27:47.000Z
2021-12-01T13:28:07.000Z
// // Ryu // // Copyright (C) 2017 Jeff Panici // All Rights Reserved. // // See the LICENSE file for details about the license covering // this source code file. // #include <regex> #include "assembly_language_parser.h" namespace ryu::core { ast_node_shared_ptr assembly_language_parser::parse_dialect() { ...
20.2
86
0.69505
jeffpanici75
538eec0bc122560a31bc00b0627aca4f0855bd20
11,089
cc
C++
src/net/android/network_library.cc
Chilledheart/naiveproxy
9d28da89b325a90d33add830f4202c8b17c7c3e3
[ "BSD-3-Clause" ]
null
null
null
src/net/android/network_library.cc
Chilledheart/naiveproxy
9d28da89b325a90d33add830f4202c8b17c7c3e3
[ "BSD-3-Clause" ]
null
null
null
src/net/android/network_library.cc
Chilledheart/naiveproxy
9d28da89b325a90d33add830f4202c8b17c7c3e3
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/android/network_library.h" #include <dlfcn.h> #include <string> #include <vector> #include "base/android/build_info.h" #include "base...
36.59736
111
0.728109
Chilledheart
53927a879560d29f654a42b61be89ea80654aece
2,470
cpp
C++
OrionUO/TargetGump.cpp
shiryux/UOA-OrionUO
fd81d57db51efd39ecfaaa19fd0fb881bde8fef8
[ "MIT" ]
1
2019-04-13T09:30:27.000Z
2019-04-13T09:30:27.000Z
OrionUO/TargetGump.cpp
shiryux/UOA-OrionUO
fd81d57db51efd39ecfaaa19fd0fb881bde8fef8
[ "MIT" ]
null
null
null
OrionUO/TargetGump.cpp
shiryux/UOA-OrionUO
fd81d57db51efd39ecfaaa19fd0fb881bde8fef8
[ "MIT" ]
null
null
null
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com /*********************************************************************************** ** ** TargetGump.cpp ** ** Copyright (C) August 2016 Hotride ** **********...
36.323529
84
0.353846
shiryux
539971589eac52cdcbaef6107a5a460defdb7928
4,871
cpp
C++
src/pybind/statick.cpp
Dekken/statick
f3759986f68020066fe35c16af843fcf083c0a31
[ "BSD-3-Clause" ]
7
2019-03-13T22:46:57.000Z
2020-06-11T13:10:47.000Z
src/pybind/statick.cpp
Dekken/statick
f3759986f68020066fe35c16af843fcf083c0a31
[ "BSD-3-Clause" ]
4
2019-02-17T14:16:34.000Z
2020-07-11T13:41:56.000Z
src/pybind/statick.cpp
Dekken/statick
f3759986f68020066fe35c16af843fcf083c0a31
[ "BSD-3-Clause" ]
2
2019-10-25T03:24:55.000Z
2020-04-07T13:04:32.000Z
#include "statick/array.hpp" #include "statick/pybind/def.hpp" namespace py = pybind11; namespace statick_py { template <typename T> class array_t : public py_array_t<T> { public: array_t(std::shared_ptr<statick::Array<T>> _data) : py_array_t<T>(_data->size(), _data->data()), data(_data) {} std::shared_pt...
41.632479
100
0.682611
Dekken
539b30aa9fa59ae61ab810ea85751d38a2075f99
2,736
hpp
C++
System/include/Switch/System/Net/WebSockets/WebSocketCloseStatus.hpp
kkptm/CppLikeCSharp
b2d8d9da9973c733205aa945c9ba734de0c734bc
[ "MIT" ]
4
2021-10-14T01:43:00.000Z
2022-03-13T02:16:08.000Z
src/Switch.System/include/Switch/System/Net/WebSockets/WebSocketCloseStatus.hpp
sgf/Switch
8e8e687a8bdc4f79d482680da3968e9b3e464b8b
[ "MIT" ]
null
null
null
src/Switch.System/include/Switch/System/Net/WebSockets/WebSocketCloseStatus.hpp
sgf/Switch
8e8e687a8bdc4f79d482680da3968e9b3e464b8b
[ "MIT" ]
2
2020-02-01T02:19:01.000Z
2021-12-30T06:44:00.000Z
/// @file /// @brief Contains Switch::System::Net::WebSockets::WebSocketCloseStatus enum. #pragma once #include <Switch/System/Enum.hpp> /// @brief The Switch namespace contains all fundamental classes to access Hardware, Os, System, and more. namespace Switch { /// @brief The System namespace contains fundamental ...
58.212766
281
0.702851
kkptm
53a6506a5dbc0c3bd9c6f7cc1743dd5b2ad9b42b
3,349
hpp
C++
openstudiocore/src/openstudio_lib/ScheduleDialog.hpp
hellok-coder/OS-Testing
e9e18ad9e99f709a3f992601ed8d2e0662175af4
[ "blessing" ]
1
2019-11-12T02:07:03.000Z
2019-11-12T02:07:03.000Z
openstudiocore/src/openstudio_lib/ScheduleDialog.hpp
hellok-coder/OS-Testing
e9e18ad9e99f709a3f992601ed8d2e0662175af4
[ "blessing" ]
1
2019-02-04T23:30:45.000Z
2019-02-04T23:30:45.000Z
openstudiocore/src/openstudio_lib/ScheduleDialog.hpp
hellok-coder/OS-Testing
e9e18ad9e99f709a3f992601ed8d2e0662175af4
[ "blessing" ]
null
null
null
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without m...
36.402174
125
0.710958
hellok-coder
53a9d7ce1575074745b6bf922fd6f81c47f72a10
810
cpp
C++
src/Hitbox.cpp
cjmar/battleship
8fb895ebe7b89ddd1640f78b6607cfbbdb33cde9
[ "MIT" ]
null
null
null
src/Hitbox.cpp
cjmar/battleship
8fb895ebe7b89ddd1640f78b6607cfbbdb33cde9
[ "MIT" ]
null
null
null
src/Hitbox.cpp
cjmar/battleship
8fb895ebe7b89ddd1640f78b6607cfbbdb33cde9
[ "MIT" ]
null
null
null
#include "Hitbox.h" /* Aligned axis rectangle hitbox check */ bool Hitbox::rectCollide(SDL_Rect& r1, SDL_Rect& r2) { bool collide = false; if (r1.x < r2.x + r2.w && r1.x + r1.w > r2.x && r1.y < r2.y + r2.h && r1.y + r1.h > r2.y) collide = true; return collide; } /* Just calls rect...
21.315789
83
0.608642
cjmar
53aa724e2bad3eef9e27207a2502fa1fa85cc4c2
2,687
hpp
C++
engine/src/ui/Units.hpp
Birdy2014/Birdy3d
96421f262ab6ba7448cae8381063aab32ac830fe
[ "MIT" ]
1
2021-11-01T20:22:41.000Z
2021-11-01T20:22:41.000Z
engine/src/ui/Units.hpp
Birdy2014/Birdy3d
96421f262ab6ba7448cae8381063aab32ac830fe
[ "MIT" ]
1
2021-11-02T12:45:20.000Z
2021-11-02T12:45:20.000Z
engine/src/ui/Units.hpp
Birdy2014/Birdy3d
96421f262ab6ba7448cae8381063aab32ac830fe
[ "MIT" ]
1
2021-11-02T12:28:58.000Z
2021-11-02T12:28:58.000Z
#pragma once #include "core/Base.hpp" namespace Birdy3d::ui { enum class Placement { TOP_LEFT, BOTTOM_LEFT, TOP_RIGHT, BOTTOM_RIGHT, CENTER_LEFT, CENTER_RIGHT, TOP_CENTER, BOTTOM_CENTER, CENTER }; class Unit { public: fl...
29.206522
119
0.580945
Birdy2014
53ab62cc781d1097a93633ea732f123a93db1112
2,289
hpp
C++
include/qtm-calc/data.hpp
Andinoriel/qtm-calc
940d88c2db187f75d74086bf8feb8e11f4c566e8
[ "MIT" ]
3
2021-01-15T15:47:17.000Z
2021-02-22T12:24:43.000Z
include/qtm-calc/data.hpp
andinoriel/qtm-calc
940d88c2db187f75d74086bf8feb8e11f4c566e8
[ "MIT" ]
null
null
null
include/qtm-calc/data.hpp
andinoriel/qtm-calc
940d88c2db187f75d74086bf8feb8e11f4c566e8
[ "MIT" ]
null
null
null
#pragma once #ifndef __QTM_DATA_HPP__ #define __QTM_DATA_HPP__ #include <qtm-calc/core.hpp> namespace qtm { /** * Queueing system analysis class * * ... * * Implements calculation of special characteristics of the queuing system */ class qtm_data final : private boost::noncopyable { private: /** * Perfor...
27.578313
85
0.694626
Andinoriel
53ae80703ba2554577716223887a3ea7ddac7b92
1,422
cpp
C++
loops-1.8.cpp
dazmodel/cpp-study
169569b8e29eab209f15bec042c6aac014737356
[ "MIT" ]
null
null
null
loops-1.8.cpp
dazmodel/cpp-study
169569b8e29eab209f15bec042c6aac014737356
[ "MIT" ]
null
null
null
loops-1.8.cpp
dazmodel/cpp-study
169569b8e29eab209f15bec042c6aac014737356
[ "MIT" ]
null
null
null
#include <cmath> #include <stdio.h> #include <iostream> using namespace std; int main() { // Задаем параметры окружности int a, b, radius; cout << " Vvedite koordinaty centra kryga (a, b):" << endl; cin >> a >> b; cout << " Vvedite radius kryga:" << endl; cin >> radius; // --------- Обрабатыва...
31.6
123
0.490155
dazmodel
53af648754aae6aba5b56cd794d727493a0485dc
317
hh
C++
include/trick/RtiList.hh
gilbertguoze/trick
f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21
[ "NASA-1.3" ]
647
2015-05-07T16:08:16.000Z
2022-03-30T02:33:21.000Z
include/trick/RtiList.hh
gilbertguoze/trick
f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21
[ "NASA-1.3" ]
995
2015-04-30T19:44:31.000Z
2022-03-31T20:14:44.000Z
include/trick/RtiList.hh
gilbertguoze/trick
f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21
[ "NASA-1.3" ]
251
2015-05-15T09:24:34.000Z
2022-03-22T20:39:05.000Z
/* PURPOSE: (Real Time Injector) */ #ifndef RTILIST_HH #define RTILIST_HH #include <vector> #include "trick/RtiEvent.hh" namespace Trick { class RtiList { public: void execute( bool debug ) ; void print_list() ; std::vector<RtiEventBase * > event_list ; } ; } #endif
11.321429
49
0.605678
gilbertguoze
53b0293fc4d4079f2995642a3c537a23237c23ae
1,260
cpp
C++
SurgSim/Serialize/ShapesFactory.cpp
dbungert/opensurgsim
bd30629f2fd83f823632293959b7654275552fa9
[ "Apache-2.0" ]
24
2015-01-19T16:18:59.000Z
2022-03-13T03:29:11.000Z
SurgSim/Serialize/ShapesFactory.cpp
dbungert/opensurgsim
bd30629f2fd83f823632293959b7654275552fa9
[ "Apache-2.0" ]
3
2018-12-21T14:54:08.000Z
2022-03-14T12:38:07.000Z
SurgSim/Serialize/ShapesFactory.cpp
dbungert/opensurgsim
bd30629f2fd83f823632293959b7654275552fa9
[ "Apache-2.0" ]
8
2015-04-10T19:45:36.000Z
2022-02-02T17:00:59.000Z
// This file is a part of the OpenSurgSim project. // Copyright 2013, SimQuest Solutions Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICE...
26.25
75
0.714286
dbungert
53b05791e49c4e6ee4a4494df21f8f4a17c95b1e
1,378
hpp
C++
include/ttl/nn/bits/ops/hash.hpp
stdml/stdnn-ops
0e6132bd65319e318f918094e482482698482e9e
[ "MIT" ]
3
2018-10-23T18:46:39.000Z
2019-06-24T00:46:10.000Z
include/ttl/nn/bits/ops/hash.hpp
stdml/stdnn-ops
0e6132bd65319e318f918094e482482698482e9e
[ "MIT" ]
27
2018-11-10T14:19:16.000Z
2020-03-08T23:33:01.000Z
include/ttl/nn/bits/ops/hash.hpp
stdml/stdnn-ops
0e6132bd65319e318f918094e482482698482e9e
[ "MIT" ]
1
2018-11-05T06:17:12.000Z
2018-11-05T06:17:12.000Z
#pragma once #include <ttl/nn/bits/kernels/cpu/hash.hpp> #include <ttl/nn/common.hpp> namespace ttl::nn::ops { template <typename N> class basic_crc { N poly_; public: basic_crc(const N poly) : poly_(poly) {} template <rank_t r> shape<0> operator()(const shape<r> &) const { return shape...
22.590164
79
0.654572
stdml
53b4181594c5800b84891baa78eebf96b1952ecc
312
hpp
C++
include/shacl/trait/RangeTraits.hpp
shacl/trait
c647510210ddec516d40ac17275cbd30a14c4fd8
[ "BSD-3-Clause" ]
null
null
null
include/shacl/trait/RangeTraits.hpp
shacl/trait
c647510210ddec516d40ac17275cbd30a14c4fd8
[ "BSD-3-Clause" ]
2
2021-02-26T02:40:51.000Z
2021-03-19T18:11:11.000Z
include/shacl/trait/RangeTraits.hpp
shacl/trait
c647510210ddec516d40ac17275cbd30a14c4fd8
[ "BSD-3-Clause" ]
null
null
null
template<typename T, std::enable_if_t< IsRange_v<T>, bool > = true > struct RangeTraits { using iterator_type = decltype( std::begin( std::declval<T>() ) ); using sentinel_type = decltype( std::end( std::declval<T>() ) ); using value_type = typename std::iterator_traits<iterator_type>::value_type; };
34.666667
78
0.698718
shacl
53b89903217bdf134b538786e04289513fa7a224
7,420
cpp
C++
ext/include/osgEarthDrivers/refresh/ReaderWriterRefresh.cpp
energonQuest/dtEarth
47b04bb272ec8781702dea46f5ee9a03d4a22196
[ "MIT" ]
6
2015-09-26T15:33:41.000Z
2021-06-13T13:21:50.000Z
ext/include/osgEarthDrivers/refresh/ReaderWriterRefresh.cpp
energonQuest/dtEarth
47b04bb272ec8781702dea46f5ee9a03d4a22196
[ "MIT" ]
null
null
null
ext/include/osgEarthDrivers/refresh/ReaderWriterRefresh.cpp
energonQuest/dtEarth
47b04bb272ec8781702dea46f5ee9a03d4a22196
[ "MIT" ]
5
2015-05-04T09:02:23.000Z
2019-06-17T11:34:12.000Z
/* -*-c++-*- */ /* osgEarth - Dynamic map generation toolkit for OpenSceneGraph * Copyright 2008-2013 Pelican Mapping * http://osgearth.org * * osgEarth is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; e...
29.799197
224
0.600674
energonQuest
53ba2fd3729db5ba7c6f5de6ad6fa7486fd679e3
5,218
cpp
C++
B2G/gecko/netwerk/test/TestHttp.cpp
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-08-31T15:24:31.000Z
2020-04-24T20:31:29.000Z
B2G/gecko/netwerk/test/TestHttp.cpp
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
null
null
null
B2G/gecko/netwerk/test/TestHttp.cpp
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-07-29T07:17:15.000Z
2020-11-04T06:55:37.000Z
#include "nsNetUtil.h" #include "nsIEventQueueService.h" #include "nsIServiceManager.h" #include "nsIComponentRegistrar.h" #include "nsIInterfaceRequestor.h" #include "nsIInterfaceRequestorUtils.h" #include "nsIProgressEventSink.h" #define RETURN_IF_FAILED(rv, step) \ PR_BEGIN_MACRO \ if (NS_FAILED(rv)) { \ ...
28.988889
83
0.596589
wilebeast
53bc097fb805936d2e693cf95aa9486c252a0209
8,939
cpp
C++
src/util/opcode_parsing_jump_calls.cpp
MartensCedric/emuboy
4dc7a774d77b9cde01a60509ad7e7a0e9477fdef
[ "MIT" ]
1
2021-12-17T17:32:47.000Z
2021-12-17T17:32:47.000Z
src/util/opcode_parsing_jump_calls.cpp
MartensCedric/gameboy
4dc7a774d77b9cde01a60509ad7e7a0e9477fdef
[ "MIT" ]
null
null
null
src/util/opcode_parsing_jump_calls.cpp
MartensCedric/gameboy
4dc7a774d77b9cde01a60509ad7e7a0e9477fdef
[ "MIT" ]
null
null
null
// // Created by cedric on 2021-08-17. // /** * To understand what is going in this file, it is critical that * the reader follows with this table: * https://www.pastraiser.com/cpu/gameboy/gameboy_opcodes.html */ #include <memory/memory_management_unit.h> #include <cpu/CPU.h> #include <util/opcode_parsing_math.h>...
45.146465
119
0.385502
MartensCedric
53bcb0cf6669573c4acc3ba3bea2dcbab44b1b1a
3,251
cpp
C++
libraries/ConfigurableFirmata-2.9.1/src/FirmataExt.cpp
unibz-makerspace/osp-011-battleship-hid
a5973e49ec80de45e2d2f3ede5f8181298b82e47
[ "CC-BY-4.0" ]
1
2021-03-04T09:55:29.000Z
2021-03-04T09:55:29.000Z
libraries/ConfigurableFirmata-2.9.1/src/FirmataExt.cpp
unibz-makerspace/osp-011-battleship-hid
a5973e49ec80de45e2d2f3ede5f8181298b82e47
[ "CC-BY-4.0" ]
null
null
null
libraries/ConfigurableFirmata-2.9.1/src/FirmataExt.cpp
unibz-makerspace/osp-011-battleship-hid
a5973e49ec80de45e2d2f3ede5f8181298b82e47
[ "CC-BY-4.0" ]
null
null
null
/* FirmataExt.h - Firmata library Copyright (C) 2006-2008 Hans-Christoph Steiner. All rights reserved. Copyright (C) 2010-2011 Paul Stoffregen. All rights reserved. Copyright (C) 2009 Shigeru Kobayashi. All rights reserved. Copyright (C) 2013 Norbert Truchsess. All rights reserved. Copyright (C) 2009-201...
27.550847
81
0.654568
unibz-makerspace
53be7545383671eb2243ae6081c1e851ccaa8d01
81,533
cpp
C++
s32v234_sdk/libs/io/sdi/src/sdi.cpp
intesight/Panorama4AIWAYS
46e1988e54a5155be3b3b47c486b3f722be00b5c
[ "WTFPL" ]
null
null
null
s32v234_sdk/libs/io/sdi/src/sdi.cpp
intesight/Panorama4AIWAYS
46e1988e54a5155be3b3b47c486b3f722be00b5c
[ "WTFPL" ]
null
null
null
s32v234_sdk/libs/io/sdi/src/sdi.cpp
intesight/Panorama4AIWAYS
46e1988e54a5155be3b3b47c486b3f722be00b5c
[ "WTFPL" ]
2
2021-01-21T02:06:16.000Z
2021-01-28T10:47:37.000Z
/****************************************************************************** * * Freescale Confidential Proprietary * * Copyright (c) 2016 Freescale Semiconductor; * Copyright (c) 2016-17 NXP; * All Rights Reserved * ***************************************************************************** * * THIS SOF...
29.648364
124
0.562656
intesight
53bfbeb381c50958f9b2d9ea6c9168e58abd5af3
567
cpp
C++
chapter-6/Program 6.20.cpp
JahanzebNawaz/Introduction-to-C-plus-plus-CPP-Chapter-Exercises
dc3cd3a0091686580aa8414f3d021fe5bb7bb513
[ "MIT" ]
null
null
null
chapter-6/Program 6.20.cpp
JahanzebNawaz/Introduction-to-C-plus-plus-CPP-Chapter-Exercises
dc3cd3a0091686580aa8414f3d021fe5bb7bb513
[ "MIT" ]
null
null
null
chapter-6/Program 6.20.cpp
JahanzebNawaz/Introduction-to-C-plus-plus-CPP-Chapter-Exercises
dc3cd3a0091686580aa8414f3d021fe5bb7bb513
[ "MIT" ]
null
null
null
/* program that inputs a number and checks whether it is a palindrome or not. a palindrome is a number that reads the same backwards as forwards such as 62526 and 4994 */ #include<iostream> using namespace std; main() { long int n, num, digit, rev=0; cout<<"Enter a positive number "; cin>>num; n=num...
19.551724
60
0.634921
JahanzebNawaz
53c067fa11faf4905261c90d194168006057a6dd
4,007
cpp
C++
MyDataMgr/mymmapw.cpp
wzh191920/MyData
bbb3c229736a1196a3a32022d87d69c7ede834d1
[ "MIT" ]
7
2017-12-17T08:01:57.000Z
2022-03-13T10:04:08.000Z
MyDataMgr/mymmapw.cpp
wzh191920/MyData
bbb3c229736a1196a3a32022d87d69c7ede834d1
[ "MIT" ]
null
null
null
MyDataMgr/mymmapw.cpp
wzh191920/MyData
bbb3c229736a1196a3a32022d87d69c7ede834d1
[ "MIT" ]
3
2019-05-30T04:10:16.000Z
2020-02-16T03:32:43.000Z
#include "stdafx.h" #include "mymmapw.h" mymmap::mymmap(void) { handle_ = INVALID_HANDLE_VALUE; file_mapping_ = INVALID_HANDLE_VALUE; base_addr_ = (void*)-1; length_ = 0; close_handle_ = false; memset(filename_, 0 ,sizeof(filename_)); } mymmap::~mymmap(void) { close(); } int mymmap::open...
21.896175
100
0.673322
wzh191920
53c1c696aa3a43d0842e51aafd41d62ba5b8bbff
997
hpp
C++
include/_app_state_plan.hpp
zborffs/Delta
b2efa9fe1cc2138656f4d7964ccdbbbfcebba639
[ "MIT" ]
1
2022-03-03T09:34:54.000Z
2022-03-03T09:34:54.000Z
include/_app_state_plan.hpp
zborffs/Delta
b2efa9fe1cc2138656f4d7964ccdbbbfcebba639
[ "MIT" ]
null
null
null
include/_app_state_plan.hpp
zborffs/Delta
b2efa9fe1cc2138656f4d7964ccdbbbfcebba639
[ "MIT" ]
null
null
null
#ifndef DELTA__APP_STATE_PLAN_HPP #define DELTA__APP_STATE_PLAN_HPP /// third-party includes #include <spdlog/spdlog.h> /// project includes #include "app.hpp" #include "_app_state_shutdown.hpp" #include "_app_state_wait.hpp" /** * The AppStatePlan is responsible for coloring the Application's functionality when in...
31.15625
106
0.735206
zborffs
53c5018849fd8d103b46db76430d2af252639ef5
5,764
cpp
C++
ace/tao/tests/rtcorba/Client_Propagated/client.cpp
tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective
1b0172cdb78757fd17898503aaf6ce03d940ef28
[ "Apache-1.1" ]
46
2015-12-04T17:12:58.000Z
2022-03-11T04:30:49.000Z
ace/tao/tests/rtcorba/Client_Propagated/client.cpp
tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective
1b0172cdb78757fd17898503aaf6ce03d940ef28
[ "Apache-1.1" ]
null
null
null
ace/tao/tests/rtcorba/Client_Propagated/client.cpp
tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective
1b0172cdb78757fd17898503aaf6ce03d940ef28
[ "Apache-1.1" ]
23
2016-10-24T09:18:14.000Z
2022-02-25T02:11:35.000Z
// client.cpp,v 1.16 2001/09/18 00:06:00 irfan Exp #include "testC.h" #include "Client_ORBInitializer.h" #include "tao/RTCORBA/RTCORBA.h" #include "tao/RTCORBA/Priority_Mapping_Manager.h" #include "ace/Get_Opt.h" #include "../check_supported_priorities.cpp" const char *ior = "file://test.ior"; int parse_...
30.497354
84
0.532616
tharindusathis
53c75f6f8ad448cd72d4f985776a6eeee8505ac3
1,360
cpp
C++
generated-sources/cpp-pistache-server/mojang-api/impl/NameHistoryApiImpl.cpp
AsyncMC/Mojang-API-Libs
b01bbd2bce44bfa2b9ed705a128cf4ecda077916
[ "Apache-2.0" ]
null
null
null
generated-sources/cpp-pistache-server/mojang-api/impl/NameHistoryApiImpl.cpp
AsyncMC/Mojang-API-Libs
b01bbd2bce44bfa2b9ed705a128cf4ecda077916
[ "Apache-2.0" ]
null
null
null
generated-sources/cpp-pistache-server/mojang-api/impl/NameHistoryApiImpl.cpp
AsyncMC/Mojang-API-Libs
b01bbd2bce44bfa2b9ed705a128cf4ecda077916
[ "Apache-2.0" ]
null
null
null
/** * Mojang API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: 2020-06-05 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class man...
26.666667
158
0.742647
AsyncMC
53c8142f87fc2caad54202171fc5bc19b58ab294
7,635
cpp
C++
services/se_standard/src/secure_element_session.cpp
dawmlight/communication_nfc
84a10d69eb9cb3128e864230c53d5a5e6660dfb9
[ "Apache-2.0" ]
null
null
null
services/se_standard/src/secure_element_session.cpp
dawmlight/communication_nfc
84a10d69eb9cb3128e864230c53d5a5e6660dfb9
[ "Apache-2.0" ]
null
null
null
services/se_standard/src/secure_element_session.cpp
dawmlight/communication_nfc
84a10d69eb9cb3128e864230c53d5a5e6660dfb9
[ "Apache-2.0" ]
null
null
null
/* * Copyright (C) 2021 Huawei Device Co., Ltd. * 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 ...
35.347222
116
0.680681
dawmlight
53c8454170175709b677f2ab84646644b9a8b57f
3,663
cpp
C++
test/utils_utils/misc.cpp
h6ah4i/cxxdasp
44bf437ad688760265ea10d2dc7cb3c57e0e7008
[ "Apache-2.0" ]
35
2015-01-28T07:49:02.000Z
2020-10-04T17:38:46.000Z
test/utils_utils/misc.cpp
h6ah4i/cxxdasp
44bf437ad688760265ea10d2dc7cb3c57e0e7008
[ "Apache-2.0" ]
1
2018-02-16T10:45:19.000Z
2018-02-21T19:04:57.000Z
test/utils_utils/misc.cpp
h6ah4i/cxxdasp
44bf437ad688760265ea10d2dc7cb3c57e0e7008
[ "Apache-2.0" ]
10
2015-01-28T07:49:02.000Z
2022-03-08T00:51:51.000Z
// // Copyright (C) 2014 Haruki Hasegawa // // 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 ap...
26.737226
79
0.66694
h6ah4i
53c8897bdc8ebe4c70ea469c6ca4eae7981b7202
732
cpp
C++
ch19/19_21.22.23.25/Test.cpp
WangLaban/CppPrime5th
b376f1a77dfb7cd9bbde7418006e016ce5b81550
[ "CC0-1.0" ]
null
null
null
ch19/19_21.22.23.25/Test.cpp
WangLaban/CppPrime5th
b376f1a77dfb7cd9bbde7418006e016ce5b81550
[ "CC0-1.0" ]
null
null
null
ch19/19_21.22.23.25/Test.cpp
WangLaban/CppPrime5th
b376f1a77dfb7cd9bbde7418006e016ce5b81550
[ "CC0-1.0" ]
null
null
null
#include <iostream> #include <string> #include "Token.h" using std::string; using std::cout; using std::endl; int main() { string s = "string"; Sales_data item("c++ primer 5", 12, 128.0); int i = 12; char c = 'c'; double d = 1.28; Token t; t = i; cout << t << endl; t = c; cout << t << endl; t = d; cout << t...
15.574468
44
0.513661
WangLaban
53d556b3e690b8d41047402aeac7313570a6cd06
1,681
cpp
C++
Concurrency/2.Data_between_Threads/Avoiding_Data_Races/example_1.cpp
weihang-li/Cpp-Nano-Udacity
c7c1f30b1d56e9849519656ca5186a444bb0a77f
[ "MIT" ]
null
null
null
Concurrency/2.Data_between_Threads/Avoiding_Data_Races/example_1.cpp
weihang-li/Cpp-Nano-Udacity
c7c1f30b1d56e9849519656ca5186a444bb0a77f
[ "MIT" ]
null
null
null
Concurrency/2.Data_between_Threads/Avoiding_Data_Races/example_1.cpp
weihang-li/Cpp-Nano-Udacity
c7c1f30b1d56e9849519656ca5186a444bb0a77f
[ "MIT" ]
null
null
null
#include <iostream> #include <thread> #include <future> // In this example, one safe way of passing data to a thread would be to carefully synchronize // the two threads using either join() or the promise-future concept that can guarantee the availability // of a result. Data races are always to be avoided. Even if ...
31.12963
118
0.652588
weihang-li
53d5e2ad4d6baec25ca80aa2c08eca2e068a6165
466
cpp
C++
codeforces/rounds/#359/watch.cpp
GinugaSaketh/Codes
e934aa5652dd86231a42e3f7f84b145eb35bf47d
[ "MIT" ]
null
null
null
codeforces/rounds/#359/watch.cpp
GinugaSaketh/Codes
e934aa5652dd86231a42e3f7f84b145eb35bf47d
[ "MIT" ]
null
null
null
codeforces/rounds/#359/watch.cpp
GinugaSaketh/Codes
e934aa5652dd86231a42e3f7f84b145eb35bf47d
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; int n,m; vector<int> a,b; int a[128]; int main(){ cin>>n>>m; if(n<m){ int t=n; n=m; m=t; } int k; for(k=0;k<10;k++){ dp[i][0][0]=0; dp[i][1][0]=0; dp[i][0][1]=0; dp[i][1][1]=0; } int p=n,q=n; while(p!=0){ a.push_back(p%7); p/=7; } w...
6.213333
25
0.429185
GinugaSaketh
53dd68811cc91d55548fc2d80b80e1151362b896
1,186
hpp
C++
libzmq/ReceiptGenerator.hpp
murrekatt/zmq-samples
102a9543ba5c4fade15f5370aeb772ad48b0c3f4
[ "MIT" ]
1
2015-07-27T14:22:34.000Z
2015-07-27T14:22:34.000Z
libzmq/ReceiptGenerator.hpp
murrekatt/zmq-samples
102a9543ba5c4fade15f5370aeb772ad48b0c3f4
[ "MIT" ]
null
null
null
libzmq/ReceiptGenerator.hpp
murrekatt/zmq-samples
102a9543ba5c4fade15f5370aeb772ad48b0c3f4
[ "MIT" ]
null
null
null
#ifndef PROTO_RECEIPTGENERATOR_HPP #define PROTO_RECEIPTGENERATOR_HPP #include "Module.hpp" #include <zmq.h> #include <string> #include <cassert> #include <unistd.h> namespace proto { struct ReceiptGenerator : public Module { explicit ReceiptGenerator(int i) : Module() , socket_(nullptr) ...
21.178571
65
0.596965
murrekatt
53dedb923f7287d5f42ca588ca0f010d1f06e9b5
1,875
cpp
C++
src/main/algorithms/cpp/array/best_time_to_buy_and_sell_stock_iii_123/solution.cpp
algorithmlover2016/leet_code
2eecc7971194c8a755e67719d8f66c636694e7e9
[ "Apache-2.0" ]
null
null
null
src/main/algorithms/cpp/array/best_time_to_buy_and_sell_stock_iii_123/solution.cpp
algorithmlover2016/leet_code
2eecc7971194c8a755e67719d8f66c636694e7e9
[ "Apache-2.0" ]
null
null
null
src/main/algorithms/cpp/array/best_time_to_buy_and_sell_stock_iii_123/solution.cpp
algorithmlover2016/leet_code
2eecc7971194c8a755e67719d8f66c636694e7e9
[ "Apache-2.0" ]
null
null
null
#include "../../head.h" #define ADD_MAX // #undef ADD_MAX class Solution { public: int maxProfit(std::vector<int> const & prices) { int k = 2; // plagiarizing from https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/discuss/135704/Detail-explanation-of-DP-solution int prices...
42.613636
143
0.558933
algorithmlover2016
53df20636a6cbbb8296626a1c57eeed1c46c0a64
4,790
cpp
C++
tools/multiCamCalibrate/src/Homography.cpp
Falcons-Robocup/code
2281a8569e7f11cbd3238b7cc7341c09e2e16249
[ "Apache-2.0" ]
2
2021-01-15T13:27:19.000Z
2021-08-04T08:40:52.000Z
tools/multiCamCalibrate/src/Homography.cpp
Falcons-Robocup/code
2281a8569e7f11cbd3238b7cc7341c09e2e16249
[ "Apache-2.0" ]
null
null
null
tools/multiCamCalibrate/src/Homography.cpp
Falcons-Robocup/code
2281a8569e7f11cbd3238b7cc7341c09e2e16249
[ "Apache-2.0" ]
5
2018-05-01T10:39:31.000Z
2022-03-25T03:02:35.000Z
#include <string> #include <stdio.h> #include <opencv2/highgui/highgui_c.h> #include <opencv2/calib3d/calib3d.hpp> #include <opencv2/video/tracking.hpp> #include <opencv2/highgui/highgui.hpp> #include <iostream> #include "Homography.h" using namespace std; using namespace cv; cv::Point2f Homograph...
23.95
135
0.580585
Falcons-Robocup
53e407abe60dfa2b0992b5206c5246d8076adaaf
1,986
cc
C++
src/attributes/ImportActionWrapper.cc
b8raoult/magics
eb2c86ec6e392e89c90044128dc671f22283d6ad
[ "ECL-2.0", "Apache-2.0" ]
41
2018-12-07T23:10:50.000Z
2022-02-19T03:01:49.000Z
src/attributes/ImportActionWrapper.cc
b8raoult/magics
eb2c86ec6e392e89c90044128dc671f22283d6ad
[ "ECL-2.0", "Apache-2.0" ]
59
2019-01-04T15:43:30.000Z
2022-03-31T09:48:15.000Z
src/attributes/ImportActionWrapper.cc
b8raoult/magics
eb2c86ec6e392e89c90044128dc671f22283d6ad
[ "ECL-2.0", "Apache-2.0" ]
13
2019-01-07T14:36:33.000Z
2021-09-06T14:48:36.000Z
/****************************** LICENSE ******************************* * (C) Copyright 1996-2017 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the pr...
22.568182
97
0.687815
b8raoult
53e7ed5afc6252d861e0136026cbb41a9ffc36f6
22,162
cpp
C++
sumo/src/guisim/GUIEdge.cpp
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
null
null
null
sumo/src/guisim/GUIEdge.cpp
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
null
null
null
sumo/src/guisim/GUIEdge.cpp
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
2
2017-12-14T16:41:59.000Z
2020-10-16T17:51:27.000Z
/****************************************************************************/ /// @file GUIEdge.cpp /// @author Daniel Krajzewicz /// @author Jakob Erdmann /// @author Michael Behrisch /// @author Laura Bieker /// @date Sept 2002 /// @version $Id$ /// // A road/street connecting two junctions (gui-version) /...
39.224779
309
0.59584
iltempe
53e8dcc8d314722520672a285b7e97015e48a5c7
480
cpp
C++
13.TemplateLibrary/UserTemplateLibrary/3.Iterator/genitrtrtest.cpp
amitpingale92/PG-DAC-C-Plus-Plus
c36f8c3b426287e2c7a8825bb4acbca28d4abe5e
[ "MIT" ]
null
null
null
13.TemplateLibrary/UserTemplateLibrary/3.Iterator/genitrtrtest.cpp
amitpingale92/PG-DAC-C-Plus-Plus
c36f8c3b426287e2c7a8825bb4acbca28d4abe5e
[ "MIT" ]
null
null
null
13.TemplateLibrary/UserTemplateLibrary/3.Iterator/genitrtrtest.cpp
amitpingale92/PG-DAC-C-Plus-Plus
c36f8c3b426287e2c7a8825bb4acbca28d4abe5e
[ "MIT" ]
null
null
null
#include "simplelist.h" #include "interval.h" #include <iostream> using namespace Generic; using namespace std; int main(void) { SimpleList<Interval> store; store.AddElement(Interval(7, 31)); store.AddElement(Interval(4, 52)); store.AddElement(Interval(5, 43)); store.AddElement(Interval(3, 24)); store.AddElemen...
15
77
0.664583
amitpingale92
53eb0983a43189d46c6f71dc3386a2c011682f9f
2,381
hpp
C++
tools/Vitis-AI-Runtime/VART/vart/dpu-runner/src/imp/dpu_runner_ddr.hpp
hito0512/Vitis-AI
996459fb96cb077ed2f7e789d515893b1cccbc95
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tools/Vitis-AI-Runtime/VART/vart/dpu-runner/src/imp/dpu_runner_ddr.hpp
wangyifan778/Vitis-AI
f61061eef7550d98bf02a171604c9a9f283a7c47
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tools/Vitis-AI-Runtime/VART/vart/dpu-runner/src/imp/dpu_runner_ddr.hpp
wangyifan778/Vitis-AI
f61061eef7550d98bf02a171604c9a9f283a7c47
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
/* * Copyright 2019 Xilinx Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
36.075758
77
0.691726
hito0512
53eb89009cd2bc219da1d0f80cdd68cd4a5d9e6d
2,226
cpp
C++
poprithms/tests/tests/schedule/shift/get_merged_0.cpp
graphcore/poprithms
9975a6a343891e3c5f8968a9507261c1185029ed
[ "MIT" ]
24
2020-07-06T17:11:30.000Z
2022-01-01T07:39:12.000Z
poprithms/tests/tests/schedule/shift/get_merged_0.cpp
graphcore/poprithms
9975a6a343891e3c5f8968a9507261c1185029ed
[ "MIT" ]
null
null
null
poprithms/tests/tests/schedule/shift/get_merged_0.cpp
graphcore/poprithms
9975a6a343891e3c5f8968a9507261c1185029ed
[ "MIT" ]
2
2020-07-15T12:33:22.000Z
2021-07-27T06:07:16.000Z
// Copyright (c) 2021 Graphcore Ltd. All rights reserved. #include <algorithm> #include <iostream> #include <vector> #include <poprithms/error/error.hpp> #include <poprithms/schedule/shift/scheduledgraph.hpp> namespace { using namespace poprithms::schedule::shift; void test0() { Graph g; auto ops = g.insertOps...
23.431579
75
0.544924
graphcore
53ec2d17b7d4bf274114cbf3546e7372aef3a710
1,162
cpp
C++
OwNetClient/helpers/listofstringpairs.cpp
OwNet/qtownet
bcddc85401a279e850f269cdd14e2d08dff5e02e
[ "MIT" ]
2
2016-09-28T02:23:07.000Z
2019-07-13T15:53:47.000Z
OwNetClient/helpers/listofstringpairs.cpp
OwNet/qtownet
bcddc85401a279e850f269cdd14e2d08dff5e02e
[ "MIT" ]
null
null
null
OwNetClient/helpers/listofstringpairs.cpp
OwNet/qtownet
bcddc85401a279e850f269cdd14e2d08dff5e02e
[ "MIT" ]
null
null
null
#include "listofstringpairs.h" #include "jsondocument.h" ListOfStringPairs::ListOfStringPairs() : QList< QPair<QString, QString> >() { } void ListOfStringPairs::insert(const QString &key, const QString &value) { QPair<QString, QString> pair(key, value); append(pair); } void ListOfStringPairs::insertOrRep...
24.723404
81
0.640275
OwNet
53f1262ac56ee5ae9542f7629a362c7b57f0372f
3,804
hxx
C++
src/elle/cartesian-product.hxx
wk8/elle
a66d3c0aeca86bcd13ec14d3797edc660b2496fc
[ "Apache-2.0" ]
521
2016-02-14T00:39:01.000Z
2022-03-01T22:39:25.000Z
src/elle/cartesian-product.hxx
mefyl/elle
a8154593c42743f45b9df09daf62b44630c24a02
[ "Apache-2.0" ]
8
2017-02-21T11:47:33.000Z
2018-11-01T09:37:14.000Z
src/elle/cartesian-product.hxx
mefyl/elle
a8154593c42743f45b9df09daf62b44630c24a02
[ "Apache-2.0" ]
48
2017-02-21T10:18:13.000Z
2022-03-25T02:35:20.000Z
#include <utility> #include <elle/Printable.hh> #include <elle/attribute.hh> #include <elle/err.hh> #include <elle/print.hh> #include <elle/range.hh> namespace elle { template <typename Product, typename LRange, typename RRange> class cartesian_product_iterator : public elle::Printable::as< cartesian_prod...
24.541935
129
0.580442
wk8
53f1a82fa2a873cc76a28af5db285d63d669f847
32
cpp
C++
test/headers/error.cpp
Felspar/poll
432fc51e244fd3281695ad339cd2d09d3e33a36b
[ "BSL-1.0" ]
3
2022-02-21T03:01:09.000Z
2022-03-24T04:34:29.000Z
test/headers/error.cpp
Felspar/io
432fc51e244fd3281695ad339cd2d09d3e33a36b
[ "BSL-1.0" ]
null
null
null
test/headers/error.cpp
Felspar/io
432fc51e244fd3281695ad339cd2d09d3e33a36b
[ "BSL-1.0" ]
null
null
null
#include <felspar/io/error.hpp>
16
31
0.75
Felspar
53fbe519f54ac0793aeb26458b5c2805f7fc3237
18,131
hpp
C++
pulsar/math/MathSet.hpp
pulsar-chem/BPModule
f8e64e04fdb01947708f098e833600c459c2ff0e
[ "BSD-3-Clause" ]
null
null
null
pulsar/math/MathSet.hpp
pulsar-chem/BPModule
f8e64e04fdb01947708f098e833600c459c2ff0e
[ "BSD-3-Clause" ]
null
null
null
pulsar/math/MathSet.hpp
pulsar-chem/BPModule
f8e64e04fdb01947708f098e833600c459c2ff0e
[ "BSD-3-Clause" ]
null
null
null
/* * File: MathSet.hpp * Original Author: Ryan Richard <ryanmrichard1@gmail.com> * * Created on January 22, 2016, 11:11 AM */ #pragma once #include "pulsar/exception/Assert.hpp" #include "pulsar/math/Universe.hpp" #include "pulsar/util/IterTools.hpp" #include <iterator> namespace pulsar{ template<typename T,t...
30.523569
82
0.629971
pulsar-chem
d87e4b15d8b21f7a60432634548d64bcee931bb2
607
cpp
C++
compiler/src/ast/ast_modbase_codegen.cpp
TuplexLanguage/tuplex
fc436c78224522663e40e09d36f83570fd76ba2d
[ "Apache-2.0" ]
15
2017-08-15T20:46:44.000Z
2021-12-15T02:51:13.000Z
compiler/src/ast/ast_modbase_codegen.cpp
TuplexLanguage/tuplex
fc436c78224522663e40e09d36f83570fd76ba2d
[ "Apache-2.0" ]
null
null
null
compiler/src/ast/ast_modbase_codegen.cpp
TuplexLanguage/tuplex
fc436c78224522663e40e09d36f83570fd76ba2d
[ "Apache-2.0" ]
1
2017-09-28T14:48:15.000Z
2017-09-28T14:48:15.000Z
#include "ast_modbase.hpp" #include "ast_entitydecls.hpp" #include "llvm_generator.hpp" using namespace llvm; void TxParsingUnitNode::code_gen( LlvmGenerationContext& context ) const { TRACE_CODEGEN( this, context ); this->module->code_gen( context ); } void TxModuleNode::code_gen( LlvmGenerationContext& c...
24.28
74
0.642504
TuplexLanguage
d880112fe8d28e01934cd42722cb4eb9f3ccf96c
5,877
cpp
C++
test/utilities_test.cpp
leyhline/modern-mutual-information
ca2e5579d0b82979ee9a8a0dee0b4453b96647b2
[ "Apache-2.0" ]
2
2021-01-12T09:23:38.000Z
2022-03-03T14:00:30.000Z
test/utilities_test.cpp
leyhline/modern-mutual-information
ca2e5579d0b82979ee9a8a0dee0b4453b96647b2
[ "Apache-2.0" ]
null
null
null
test/utilities_test.cpp
leyhline/modern-mutual-information
ca2e5579d0b82979ee9a8a0dee0b4453b96647b2
[ "Apache-2.0" ]
null
null
null
/** * Copyright 2018, University of Freiburg * Optophysiology Lab. * Thomas Leyh <thomas.leyh@mailbox.org> * * 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/licens...
32.114754
120
0.638421
leyhline
d8812a486d71193501415cfe19b6c403e9099fb5
439
cpp
C++
Cplus/CountNumberofTeams.cpp
JumHorn/leetcode
1447237ae8fc3920b19f60b30c71a84b088cc200
[ "MIT" ]
1
2018-01-22T12:06:28.000Z
2018-01-22T12:06:28.000Z
Cplus/CountNumberofTeams.cpp
JumHorn/leetcode
1447237ae8fc3920b19f60b30c71a84b088cc200
[ "MIT" ]
null
null
null
Cplus/CountNumberofTeams.cpp
JumHorn/leetcode
1447237ae8fc3920b19f60b30c71a84b088cc200
[ "MIT" ]
null
null
null
#include <vector> using namespace std; class Solution { public: int numTeams(vector<int> &rating) { int N = rating.size(), res = 0; vector<int> dp_up(N), dp_down(N); for (int i = 1; i < N; ++i) { for (int j = 0; j < i; ++j) { if (rating[j] < rating[i]) { ++dp_up[i]; res += dp_up[j]; ...
15.137931
35
0.485194
JumHorn
d88482f0fa0f184a20781482b962aed57ce0bc23
1,961
cpp
C++
libraries/gloxor/src/graphics.cpp
CarboSauce/Gloxor
fc9f5c56866f8c3e85f844d37a1faa9e9ef4c856
[ "MIT" ]
4
2021-07-14T20:24:24.000Z
2021-07-16T06:49:48.000Z
libraries/gloxor/src/graphics.cpp
CarboSauce/Gloxor
fc9f5c56866f8c3e85f844d37a1faa9e9ef4c856
[ "MIT" ]
null
null
null
libraries/gloxor/src/graphics.cpp
CarboSauce/Gloxor
fc9f5c56866f8c3e85f844d37a1faa9e9ef4c856
[ "MIT" ]
null
null
null
#include "gloxor/graphics.hpp" #include <cstdint> const extern uint8_t fontBitmap[]; constexpr int scaleX = 2; constexpr int scaleY = 2; constexpr int fontWidth = 8 * scaleX; constexpr int fontHeight = 14 * scaleY; namespace glox { void framebuffer::putPixel(int x, int y, rgb_t color) { fbBeg[y * pitch +...
24.5125
102
0.501275
CarboSauce
d884f592ba97a514ba7830cf867116b8e7afa2c2
1,789
cpp
C++
apps/hash_app/check_compact_probe_table.cpp
pwais/surfelwarp
6e547e6b33b49d903475b869a58c9bda7b9c3061
[ "BSD-3-Clause" ]
223
2019-06-06T04:40:58.000Z
2022-03-21T05:59:54.000Z
apps/hash_app/check_compact_probe_table.cpp
pwais/surfelwarp
6e547e6b33b49d903475b869a58c9bda7b9c3061
[ "BSD-3-Clause" ]
69
2019-07-13T07:15:21.000Z
2022-03-13T08:20:39.000Z
apps/hash_app/check_compact_probe_table.cpp
pwais/surfelwarp
6e547e6b33b49d903475b869a58c9bda7b9c3061
[ "BSD-3-Clause" ]
65
2019-06-06T06:06:58.000Z
2022-01-19T15:59:52.000Z
#include "check_compact_probe_table.h" #include "common/common_types.h" #include "common/sanity_check.h" #include "hashing/CompactProbeTable.h" #include <iostream> void surfelwarp::check_probe_compaction(const unsigned test_size, const unsigned test_iters) { for(auto i = 0; i < test_iters; i++) { check_probe_compac...
28.854839
125
0.72834
pwais
d885e7ac98a9d3565f0c18228e1d83f1fd1363a5
6,004
cc
C++
package/package_manager.cc
rzr/tizen-extensions-crosswalk
c3a578b8c5e578f62c70f15fb565fe411c6db5e4
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
package/package_manager.cc
rzr/tizen-extensions-crosswalk
c3a578b8c5e578f62c70f15fb565fe411c6db5e4
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
package/package_manager.cc
rzr/tizen-extensions-crosswalk
c3a578b8c5e578f62c70f15fb565fe411c6db5e4
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2014 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "package/package_manager.h" #include <package-manager.h> #include <pkgmgr-dbinfo.h> #include <unistd.h> #include "common/picojson.h" #include ...
34.705202
79
0.689374
rzr
d886b2c65a588eca9ee8f3305b8c28e15d15ddf4
1,389
hpp
C++
headers/Delegate.hpp
Asphox/SISL
fdfd532e7342336cf54a343f72812761eab5bf16
[ "MIT" ]
4
2017-06-29T12:49:51.000Z
2021-04-28T16:48:44.000Z
headers/Delegate.hpp
Asphox/SISL
fdfd532e7342336cf54a343f72812761eab5bf16
[ "MIT" ]
null
null
null
headers/Delegate.hpp
Asphox/SISL
fdfd532e7342336cf54a343f72812761eab5bf16
[ "MIT" ]
null
null
null
//////////////////////////////////////////////////////////// // // SISL - An other SIgnals SLots library // Copyright (C) 2017-2018 SOTON "Asphox" Dylan (dylan.soton@telecom-sudparis.eu) // //////////////////////////////////////////////////////////// #ifndef SISL_DELEGATE_HPP #define SISL_DELEGATE_HPP #incl...
21.369231
82
0.573794
Asphox
d888785845625b3e7120be72c7be451da56a0e33
8,769
cpp
C++
trie/trie.cpp
xmcy0011/cpp-dirtyfilter
2d2c9a69198b4676ab7a2897ea174b57effb9957
[ "MIT" ]
3
2022-01-21T04:09:49.000Z
2022-03-15T15:35:20.000Z
trie/trie.cpp
xmcy0011/cpp-dirtyfilter
2d2c9a69198b4676ab7a2897ea174b57effb9957
[ "MIT" ]
null
null
null
trie/trie.cpp
xmcy0011/cpp-dirtyfilter
2d2c9a69198b4676ab7a2897ea174b57effb9957
[ "MIT" ]
2
2021-10-09T15:18:23.000Z
2022-02-16T11:44:28.000Z
/** @file trie.h * @brief trie树算法实现的敏感词过滤 * * Trie 树原理及其敏感词过滤的实现: https://www.jianshu.com/p/9919244dd7ad * wildfirechat: https://github.com/wildfirechat/server/blob/wildfirechat/broker/src/main/java/win/liyufan/im/SensitiveFilter.java * trie: https://github.com/r-lyeh-archived/trie/blob/master/trie.hpp * ...
27.064815
131
0.538032
xmcy0011
d888e6cb56be33424389002bc67c3065148e0c16
14,460
cpp
C++
Blizzlike/Trinity/Scripts/Other/item_scripts.cpp
499453466/Lua-Other
43fd2b72405faf3f2074fd2a2706ef115d16faa6
[ "Unlicense" ]
2
2015-06-23T16:26:32.000Z
2019-06-27T07:45:59.000Z
Blizzlike/Trinity/Scripts/Other/item_scripts.cpp
Eduardo-Silla/Lua-Other
db610f946dbcaf81b3de9801f758e11a7bf2753f
[ "Unlicense" ]
null
null
null
Blizzlike/Trinity/Scripts/Other/item_scripts.cpp
Eduardo-Silla/Lua-Other
db610f946dbcaf81b3de9801f758e11a7bf2753f
[ "Unlicense" ]
3
2015-01-10T18:22:59.000Z
2021-04-27T21:28:28.000Z
/* * Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * * 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 ...
33.785047
194
0.605878
499453466
d89125ee5368c246f30467fdbabed969c6a2392a
3,816
cpp
C++
LibTDE/SignalData.cpp
ebragge/LibTDE
af3b16e7166cf66d5c96a5c9587cca2ba28c6a7d
[ "BSD-3-Clause" ]
6
2016-01-28T10:45:22.000Z
2022-02-22T07:19:40.000Z
LibTDE/SignalData.cpp
AlfonsoDR/LibTDE
af3b16e7166cf66d5c96a5c9587cca2ba28c6a7d
[ "BSD-3-Clause" ]
null
null
null
LibTDE/SignalData.cpp
AlfonsoDR/LibTDE
af3b16e7166cf66d5c96a5c9587cca2ba28c6a7d
[ "BSD-3-Clause" ]
3
2017-11-11T16:00:12.000Z
2021-06-19T21:10:24.000Z
#include "pch.h" #include "SignalData.h" using namespace TimeDelayEstimation; SignalData::SignalData(const std::vector<SignalType>* channel0, const std::vector<SignalType>* channel1, bool copyData) : m_copy(copyData), m_min(0), m_max(min(channel0->size(),channel1->size())), m_alignment(0) { if (copyDat...
29.8125
135
0.635744
ebragge
d8922e71872378a1d278356e660dbc33a567c5e6
1,611
cpp
C++
intuit_09.cpp
gurleen-kaur1313/6Companies30Days
7e789173dfad08039ca908fbec18cab1a74b4d5f
[ "MIT" ]
null
null
null
intuit_09.cpp
gurleen-kaur1313/6Companies30Days
7e789173dfad08039ca908fbec18cab1a74b4d5f
[ "MIT" ]
null
null
null
intuit_09.cpp
gurleen-kaur1313/6Companies30Days
7e789173dfad08039ca908fbec18cab1a74b4d5f
[ "MIT" ]
null
null
null
/* problem link: https://leetcode.com/problems/pacific-atlantic-water-flow/ */ class Solution { public: bool isValid(int m , int n , int x, int y){ if(x<0||x>=m || y<0||y>=n)return false; return true; } void dfs(vector<vector<int>>& heights, vector<vector<bool>>& visited, int x ,int y){...
25.571429
88
0.428305
gurleen-kaur1313
d896768a15992e731231d19fa221ba67e27adba5
507
hpp
C++
src/MenuController.hpp
adileo/rpg-game-cpp
f43f231b0bdb7f4618ece8174d08cf26ab3125c6
[ "MIT" ]
null
null
null
src/MenuController.hpp
adileo/rpg-game-cpp
f43f231b0bdb7f4618ece8174d08cf26ab3125c6
[ "MIT" ]
null
null
null
src/MenuController.hpp
adileo/rpg-game-cpp
f43f231b0bdb7f4618ece8174d08cf26ab3125c6
[ "MIT" ]
null
null
null
/* * MenuController.hpp * * Created on: 18 giu 2016 * Author: adileobarone * * Si occupa di instanziare il menù di gioco iniziale utilizzabile trabite I/O * */ #ifndef MENUCONTROLLER_HPP_ #define MENUCONTROLLER_HPP_ #include <iostream> #include "GameManager.hpp" #include "lib/easylogging++.hpp" using n...
15.363636
78
0.721893
adileo
d897ebeceeb9bc6dc3029a1b476a99bc2e053d0d
677
hpp
C++
project/include/Math/Vec4.hpp
smbss1/Foxecs
88b271b3614c4cefffa3f3bd7530d48698edea46
[ "MIT" ]
null
null
null
project/include/Math/Vec4.hpp
smbss1/Foxecs
88b271b3614c4cefffa3f3bd7530d48698edea46
[ "MIT" ]
null
null
null
project/include/Math/Vec4.hpp
smbss1/Foxecs
88b271b3614c4cefffa3f3bd7530d48698edea46
[ "MIT" ]
null
null
null
#pragma once class Vec4 { public: Vec4() : x(0.0f), y(0.0f), z(0.0f), w(0.0f) {} Vec4(float x, float y, float z) : x(x), y(y), z(z), w(0.0f) {} Vec4(float x, float y, float z, float w) : x(x), y(y), z(z), w(w) {} Vec4 operator+(Vec4 const& v) const { return Vec4( x + v.x, y + v.y, z + v.z,...
11.283333
41
0.454948
smbss1
d898038c1d2780cb7f5f248f5d2b1c552e4f5187
2,867
cpp
C++
src/BaseTCPServer.cpp
LazyPanda07/BaseTCPServer
61a92ece11298219ddfa1db06a0b08e5b4590ca0
[ "MIT" ]
null
null
null
src/BaseTCPServer.cpp
LazyPanda07/BaseTCPServer
61a92ece11298219ddfa1db06a0b08e5b4590ca0
[ "MIT" ]
null
null
null
src/BaseTCPServer.cpp
LazyPanda07/BaseTCPServer
61a92ece11298219ddfa1db06a0b08e5b4590ca0
[ "MIT" ]
null
null
null
#include "BaseTCPServer.h" #include <thread> #pragma comment (lib,"ws2_32.lib") using namespace std; namespace web { void BaseTCPServer::receiveConnections() { while (isRunning) { sockaddr addr; int addrlen = sizeof(addr); SOCKET clientSocket = accept(listenSocket, &addr, &addrlen); if (isRunnin...
17.481707
124
0.682595
LazyPanda07
d89e487c8fd753bdbe29856a9658db08c740f766
4,146
cxx
C++
MITK/Modules/CoreIO/Internal/niftkLabelMapWriter.cxx
NifTK/NifTK
2358b333c89ff1bba1c232eecbbcdc8003305dfe
[ "BSD-3-Clause" ]
13
2018-07-28T13:36:38.000Z
2021-11-01T19:17:39.000Z
MITK/Modules/CoreIO/Internal/niftkLabelMapWriter.cxx
NifTK/NifTK
2358b333c89ff1bba1c232eecbbcdc8003305dfe
[ "BSD-3-Clause" ]
null
null
null
MITK/Modules/CoreIO/Internal/niftkLabelMapWriter.cxx
NifTK/NifTK
2358b333c89ff1bba1c232eecbbcdc8003305dfe
[ "BSD-3-Clause" ]
10
2018-08-20T07:06:00.000Z
2021-07-07T07:55:27.000Z
/*============================================================================= NifTK: A software platform for medical image computing. Copyright (c) University College London (UCL). All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY o...
26.240506
105
0.561264
NifTK
d89efcc780d96c773dca19db77824bd617e7a0c2
700
hpp
C++
bsengine/src/bstorm/path_const.hpp
At-sushi/bstorm
156036afd698d98f0ed67f0efa6bc416115806f7
[ "MIT" ]
null
null
null
bsengine/src/bstorm/path_const.hpp
At-sushi/bstorm
156036afd698d98f0ed67f0efa6bc416115806f7
[ "MIT" ]
null
null
null
bsengine/src/bstorm/path_const.hpp
At-sushi/bstorm
156036afd698d98f0ed67f0efa6bc416115806f7
[ "MIT" ]
null
null
null
#pragma once namespace bstorm { constexpr wchar_t* FREE_PLAYER_DIR = L"script/player"; constexpr wchar_t* DEFAULT_SYSTEM_PATH = L"script/default_system/Default_System.txt"; constexpr wchar_t* DEFAULT_ITEM_DATA_PATH = L"resource/script/Default_ItemData.txt"; constexpr wchar_t* DEFAULT_PACKAGE_PATH = L"resource/script/...
46.666667
92
0.842857
At-sushi
d89f7872feeebeadef858584d43ab369b8ef7e38
3,331
cpp
C++
QScreenshot/SignInDialog.cpp
dbautsch/QScreenshot
80fc3113a342eb4498d8f24aa77230a0d8bbc170
[ "MIT" ]
2
2018-04-10T06:32:26.000Z
2021-04-23T14:50:04.000Z
QScreenshot/SignInDialog.cpp
dbautsch/QScreenshot
80fc3113a342eb4498d8f24aa77230a0d8bbc170
[ "MIT" ]
2
2016-06-10T12:55:45.000Z
2016-07-08T14:25:48.000Z
QScreenshot/SignInDialog.cpp
dbautsch/QScreenshot
80fc3113a342eb4498d8f24aa77230a0d8bbc170
[ "MIT" ]
1
2018-12-07T06:02:24.000Z
2018-12-07T06:02:24.000Z
/*! * Copyright (c) 2016 Dawid Bautsch dawid.bautsch@gmail.com * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HO...
23.624113
118
0.697688
dbautsch
d8a2c55a6784d7c792aea86d81e3e313df227645
3,337
cpp
C++
tests/broker_connection.cpp
rqu/worker
483a474e5c2098588958e7c7e48eff4f25516aca
[ "MIT" ]
6
2017-09-28T09:30:13.000Z
2020-11-05T17:40:27.000Z
tests/broker_connection.cpp
rqu/worker
483a474e5c2098588958e7c7e48eff4f25516aca
[ "MIT" ]
9
2017-09-14T20:16:32.000Z
2021-04-15T22:19:25.000Z
tests/broker_connection.cpp
rqu/worker
483a474e5c2098588958e7c7e48eff4f25516aca
[ "MIT" ]
2
2018-03-30T08:51:22.000Z
2020-12-29T06:56:44.000Z
#ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif #include <gtest/gtest.h> #include <gmock/gmock.h> #include "config/worker_config.h" #include "broker_connection.h" #include "mocks.h" using namespace testing; TEST(broker_connection, sends_init) { auto config = std::make_shared<mock_worker_config>(); ...
29.27193
113
0.721007
rqu
d8a504b53b366aba81fa16d3496f4d7c571ea00e
419,196
cpp
C++
sample fonts/liberation sans/11px/liberation_sans_11px.cpp
FilipeChagasDev/Tiny-Graphic-Lib
76b94ee381126ccf5188cac1fe12ab865432e0b1
[ "MIT" ]
8
2021-10-29T19:23:27.000Z
2021-11-07T01:32:34.000Z
sample fonts/liberation sans/11px/liberation_sans_11px.cpp
FilipeChagasDev/Tiny-Graphic-Lib
76b94ee381126ccf5188cac1fe12ab865432e0b1
[ "MIT" ]
null
null
null
sample fonts/liberation sans/11px/liberation_sans_11px.cpp
FilipeChagasDev/Tiny-Graphic-Lib
76b94ee381126ccf5188cac1fe12ab865432e0b1
[ "MIT" ]
null
null
null
/* -- F Graphics Library -- * Code generated by the fglttf.py script * Font name: liberation_sans_11px * Generation date (Y-M-D): 2021-11-01 */ #include "liberation_sans_11px.hpp" Font *get_liberation_sans_11px() { Font *myfont = new Font(); Glyph *glyph32 = new Glyph(3, 10); glyph32->setPixel(0, 0, 0); glyp...
30.121147
41
0.640211
FilipeChagasDev
d8a6b97abb4b15b551d1e1e26285104fe3b447ef
3,091
hpp
C++
code/w32.com/Object.hpp
AndreLouisCaron/w32
75b26a149e268138cbcf43e6f4669756ac4ac850
[ "BSD-2-Clause" ]
9
2015-12-30T15:21:20.000Z
2021-03-21T04:23:14.000Z
code/w32.com/Object.hpp
AndreLouisCaron/w32
75b26a149e268138cbcf43e6f4669756ac4ac850
[ "BSD-2-Clause" ]
1
2022-01-02T11:12:57.000Z
2022-01-02T11:12:57.000Z
code/w32.com/Object.hpp
AndreLouisCaron/w32
75b26a149e268138cbcf43e6f4669756ac4ac850
[ "BSD-2-Clause" ]
5
2018-04-09T04:44:58.000Z
2020-04-10T12:51:51.000Z
#ifndef _com_Object_hpp__ #define _com_Object_hpp__ // Copyright (c) 2009-2012, Andre Caron (andre.l.caron@gmail.com) // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributi...
32.197917
74
0.629246
AndreLouisCaron
d8aab26ea0f0e0c032d2887a03249cd049f1d3a8
1,108
hpp
C++
include/vrm/core/experimental/sparse_set/impl/settings.hpp
SuperV1234/vrm_core
ee1b290f673e9776a9070f7e8d9a07a84a002178
[ "AFL-3.0" ]
38
2015-10-18T21:29:32.000Z
2020-11-18T17:16:43.000Z
include/vrm/core/experimental/sparse_set/impl/settings.hpp
vittorioromeo/vrm_core
ee1b290f673e9776a9070f7e8d9a07a84a002178
[ "AFL-3.0" ]
2
2016-09-22T19:52:55.000Z
2018-05-23T11:57:45.000Z
include/vrm/core/experimental/sparse_set/impl/settings.hpp
vittorioromeo/vrm_core
ee1b290f673e9776a9070f7e8d9a07a84a002178
[ "AFL-3.0" ]
7
2015-10-23T18:14:03.000Z
2021-07-06T08:36:53.000Z
// Copyright (c) 2015-2020 Vittorio Romeo // License: Academic Free License ("AFL") v. 3.0 // AFL License page: http://opensource.org/licenses/AFL-3.0 // http://vittorioromeo.info | vittorio.romeo@outlook.com #pragma once #include <vrm/core/assert.hpp> #include <vrm/core/config.hpp> #include <vrm/core/strong_typedef....
29.157895
79
0.628159
SuperV1234
d8acc3eb4c4dfbadbc2ad56f0803e151ed9ef77e
704
cpp
C++
employee/testadmin.cpp
AKoudounis/refactored-journey
81719c57104f14b141f0f7cd2aa805f9007ed79e
[ "MIT" ]
null
null
null
employee/testadmin.cpp
AKoudounis/refactored-journey
81719c57104f14b141f0f7cd2aa805f9007ed79e
[ "MIT" ]
null
null
null
employee/testadmin.cpp
AKoudounis/refactored-journey
81719c57104f14b141f0f7cd2aa805f9007ed79e
[ "MIT" ]
null
null
null
#include<iostream> #include “adminstaff.h” using namespace std; int main() { AdminStaff emp(45565, “A.B”, 500, 12.0); // input data emp.setAddress(“1455 Maisonneuve, Montreal”); emp.setPhone(“514-123-11111”); emp.setEmail(“emp@concordia.ca”); emp.print(); ...
28.16
75
0.549716
AKoudounis
d8af92be630406d6381cf44c7200438822a7678d
18,233
cpp
C++
src/ContextAndroid.cpp
rekola/canvas
eabaaa7ae84548bf7d747152d64f4381c9277fee
[ "MIT" ]
28
2015-12-23T02:19:58.000Z
2022-01-22T00:52:11.000Z
src/ContextAndroid.cpp
modulesio/canvas
03c52b2301841083c9b70e91c572680cccd10522
[ "MIT" ]
89
2015-12-23T01:35:24.000Z
2019-02-18T20:24:16.000Z
src/ContextAndroid.cpp
avaer/canvas
03c52b2301841083c9b70e91c572680cccd10522
[ "MIT" ]
7
2016-11-11T04:46:10.000Z
2022-01-29T03:48:36.000Z
#include "ContextAndroid.h" #include <errno.h> #include <cassert> using namespace std; using namespace canvas; AndroidCache::AndroidCache(JNIEnv * myEnv, jobject _assetManager) { myEnv->GetJavaVM(&javaVM); assetManager = myEnv->NewGlobalRef(_assetManager); frameClass = (jclass) myEnv->NewGlobalRef(myEnv->Fin...
52.094286
266
0.744419
rekola
d8afecdce14cf72fd1e5f47692459a197de1ffa8
1,144
cpp
C++
Common/MapReduce_Customs/ii.cpp
luciolas/MapReduceCpp
aa47b1f4b3838ff26fb94583920c4aa9b9921828
[ "MIT" ]
1
2022-03-23T17:00:57.000Z
2022-03-23T17:00:57.000Z
Common/MapReduce_Customs/ii.cpp
luciolas/MapReduceCpp
aa47b1f4b3838ff26fb94583920c4aa9b9921828
[ "MIT" ]
null
null
null
Common/MapReduce_Customs/ii.cpp
luciolas/MapReduceCpp
aa47b1f4b3838ff26fb94583920c4aa9b9921828
[ "MIT" ]
null
null
null
#include "ii.h" #include <algorithm> #include <unordered_map> std::vector<KeyValue> iimapF(const std::string& doc, const std::string& bytes) { std::vector<std::string> words{}; std::vector<KeyValue> result{}; words.reserve(1 << 16); StringSplit(&words, bytes, isLetter); for (auto& word : words) ...
23.833333
109
0.570804
luciolas
d8b0476406074b122739b0c2f81af07330daf56d
6,482
cc
C++
RAVL2/Contrib/AVIFile/AVIFileIO.cc
isuhao/ravl2
317e0ae1cb51e320b877c3bad6a362447b5e52ec
[ "BSD-Source-Code" ]
null
null
null
RAVL2/Contrib/AVIFile/AVIFileIO.cc
isuhao/ravl2
317e0ae1cb51e320b877c3bad6a362447b5e52ec
[ "BSD-Source-Code" ]
null
null
null
RAVL2/Contrib/AVIFile/AVIFileIO.cc
isuhao/ravl2
317e0ae1cb51e320b877c3bad6a362447b5e52ec
[ "BSD-Source-Code" ]
null
null
null
// This file is part of RAVL, Recognition And Vision Library // Copyright (C) 2003, OmniPerception Ltd. // This code may be redistributed under the terms of the GNU Lesser // General Public License (LGPL). See the lgpl.licence file for details or // see http://www.gnu.org/copyleft/lesser.html // file-header-ends-here ...
28.182609
116
0.628201
isuhao
d8b75be022d51dd77a267b0b69961519d354f939
773
cpp
C++
source/TestMain.cpp
cloudy-astrophysics/cloudy_lfs
aed1d6d78042b93f17ea497a37b35a524f3d3e2e
[ "Zlib" ]
null
null
null
source/TestMain.cpp
cloudy-astrophysics/cloudy_lfs
aed1d6d78042b93f17ea497a37b35a524f3d3e2e
[ "Zlib" ]
null
null
null
source/TestMain.cpp
cloudy-astrophysics/cloudy_lfs
aed1d6d78042b93f17ea497a37b35a524f3d3e2e
[ "Zlib" ]
null
null
null
/* This file is part of Cloudy and is copyright (C)1978-2019 by Gary J. Ferland and * others. For conditions of distribution and use see copyright notice in license.txt */ #include "cdstd.h" #include <fenv.h> #include <UnitTest++.h> #include <TestReporterStdout.h> #include "cddefines.h" #include "ran.h" int main () ...
33.608696
89
0.734799
cloudy-astrophysics
d8b8bd39320e6630117b0452f3954336e0f2108b
531
hpp
C++
include/hmm_h/shuttleFuns.hpp
stanley-rozell/hmm
21dc000961b960a5e1fbf66cb11e74c4e1532ad2
[ "Apache-2.0" ]
null
null
null
include/hmm_h/shuttleFuns.hpp
stanley-rozell/hmm
21dc000961b960a5e1fbf66cb11e74c4e1532ad2
[ "Apache-2.0" ]
12
2021-03-09T23:04:14.000Z
2021-05-17T16:02:29.000Z
include/hmm_h/shuttleFuns.hpp
stanley-rozell/hmm
21dc000961b960a5e1fbf66cb11e74c4e1532ad2
[ "Apache-2.0" ]
null
null
null
// // shuttleFuns.hpp // hmm // // Created by Adam Willats on 2/27/19. // Copyright © 2019 Adam Willats. All rights reserved. // #ifndef shuttleFuns_hpp #define shuttleFuns_hpp #include <stdio.h> #include "printFuns.hpp" //template <typename T> //std::vector<T> array2vec(T*,int); std::vector<int> array2vec(int*...
18.310345
55
0.696798
stanley-rozell
d8b8eeeaaccd0c9cc04b276e7ef8121bdd749b35
2,834
cpp
C++
ccsrc/cxx_experimental/python/lib/cengines/mapping.cpp
Takishima/mindquantum
e90dfe474b759023d7ae18281b9a87cb8d223d04
[ "Apache-2.0" ]
null
null
null
ccsrc/cxx_experimental/python/lib/cengines/mapping.cpp
Takishima/mindquantum
e90dfe474b759023d7ae18281b9a87cb8d223d04
[ "Apache-2.0" ]
null
null
null
ccsrc/cxx_experimental/python/lib/cengines/mapping.cpp
Takishima/mindquantum
e90dfe474b759023d7ae18281b9a87cb8d223d04
[ "Apache-2.0" ]
null
null
null
// Copyright 2020 <Huawei Technologies Co., Ltd> // // 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 ...
31.842697
119
0.634792
Takishima
d8bd6e36d6ceb5715652b70b4b280047e39cf857
37,719
cpp
C++
main.cpp
jpfli/pokittogp
454eefe4563a0bbe1b2a513b2dc76b3d5b18a872
[ "Apache-2.0" ]
null
null
null
main.cpp
jpfli/pokittogp
454eefe4563a0bbe1b2a513b2dc76b3d5b18a872
[ "Apache-2.0" ]
null
null
null
main.cpp
jpfli/pokittogp
454eefe4563a0bbe1b2a513b2dc76b3d5b18a872
[ "Apache-2.0" ]
null
null
null
#include "Pokitto.h" #include "fix16.h" #include "main.h" #include "gfx_hdr/GameData.h" #include "ship.h" #include "playerShip.h" #include "menu.h" #include "TrackImporter.h" Pokitto::Core mygame; Pokitto::Sound snd; // Prototypes void InitGameObjectsForTrack1(bool isRace); uint8_t GetTileIndex(int32_t tile2PosX, in...
35.317416
165
0.596172
jpfli
d8bd720cb2235dc5fddd56ca49627c3b054c8bf7
4,316
cpp
C++
test/test_tensor_integral.cpp
accosmin/libnan
a47c28f22df2c0943697dccb007de946090c7705
[ "MIT" ]
null
null
null
test/test_tensor_integral.cpp
accosmin/libnan
a47c28f22df2c0943697dccb007de946090c7705
[ "MIT" ]
32
2019-02-18T10:35:59.000Z
2021-12-10T10:37:15.000Z
test/test_tensor_integral.cpp
accosmin/libnan
a47c28f22df2c0943697dccb007de946090c7705
[ "MIT" ]
1
2019-08-05T06:11:09.000Z
2019-08-05T06:11:09.000Z
#include <utest/utest.h> #include <nano/tensor/integral.h> using namespace nano; template <typename tsum, template <typename, size_t> class tstorage, typename tscalar> static auto check(const tensor_t<tstorage, tscalar, 1>& tensor, tensor_size_t index0) { tsum sum = 0; for (tensor_size_t i0 = 0; i0 <= ind...
26.807453
104
0.569509
accosmin
d8befaff4f571818bd096824efe5ba4b31884149
32,455
cpp
C++
src/ofApp.cpp
ReillyGregorio/Tank
4754428f12536e6e67ae61ee48daaa83a821dc34
[ "MIT" ]
null
null
null
src/ofApp.cpp
ReillyGregorio/Tank
4754428f12536e6e67ae61ee48daaa83a821dc34
[ "MIT" ]
null
null
null
src/ofApp.cpp
ReillyGregorio/Tank
4754428f12536e6e67ae61ee48daaa83a821dc34
[ "MIT" ]
null
null
null
#include "ofApp.h" #include <vector> //-------------------------------------------------------------- void ofApp::setup(){ sun1.setPointLight(); sun.setRadius(90); sun2.setPointLight(); sun3.setRadius(90); bound.set(50,50,20); sky.setRadius(5000); skyimg.loadImage("bluecloud_up.jpg"); ...
31.663415
111
0.361547
ReillyGregorio
d8c3bd366edc0c5278a9f715ca0e9db36510bcc9
5,773
cpp
C++
source/TaskManagerPrefs.cpp
ocerman/TaskManager
7e0273c2eac2bd8670a1faec4dded8ba6ac19305
[ "Apache-2.0" ]
3
2015-07-29T03:16:00.000Z
2020-10-12T17:40:59.000Z
source/TaskManagerPrefs.cpp
radtek/TaskManager-1
4fd44eaa83d99e9314fe8f3ae10f1e9b99ea3291
[ "Apache-2.0" ]
5
2017-12-09T17:13:41.000Z
2020-03-12T18:07:33.000Z
source/TaskManagerPrefs.cpp
radtek/TaskManager-1
4fd44eaa83d99e9314fe8f3ae10f1e9b99ea3291
[ "Apache-2.0" ]
5
2017-11-30T06:07:35.000Z
2020-10-26T06:00:47.000Z
/* * Copyright 2000 by Thomas Krammer * * 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...
23.46748
84
0.764594
ocerman
d8c4143b58af62d95b8a0aa642b034f3596666dd
2,829
cpp
C++
tools/event_inject/src/test_aux_tool_msg_handler.cpp
openharmony-gitee-mirror/multimodalinput_input
17303b7662d0382f27c972ad7d149bee61a14f23
[ "Apache-2.0" ]
1
2021-12-03T13:56:40.000Z
2021-12-03T13:56:40.000Z
tools/event_inject/src/test_aux_tool_msg_handler.cpp
openharmony-gitee-mirror/multimodalinput_input
17303b7662d0382f27c972ad7d149bee61a14f23
[ "Apache-2.0" ]
null
null
null
tools/event_inject/src/test_aux_tool_msg_handler.cpp
openharmony-gitee-mirror/multimodalinput_input
17303b7662d0382f27c972ad7d149bee61a14f23
[ "Apache-2.0" ]
1
2021-09-13T11:18:23.000Z
2021-09-13T11:18:23.000Z
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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 ...
34.5
116
0.684341
openharmony-gitee-mirror
d8c557e18bd9329e3c5204a9aec332a66e3f053c
5,189
hxx
C++
include/prevc/pipeline/AST/unary-operation.hxx
arazeiros/prevc
378f045f57b2e1c9460ac1699951291ac055c078
[ "MIT" ]
3
2018-10-30T20:33:45.000Z
2019-03-06T11:46:31.000Z
include/prevc/pipeline/AST/unary-operation.hxx
arazeiros/prevc
378f045f57b2e1c9460ac1699951291ac055c078
[ "MIT" ]
null
null
null
include/prevc/pipeline/AST/unary-operation.hxx
arazeiros/prevc
378f045f57b2e1c9460ac1699951291ac055c078
[ "MIT" ]
null
null
null
#ifndef PREVC_PIPELINE_AST_UNARYOPERATION_HXX #define PREVC_PIPELINE_AST_UNARYOPERATION_HXX #include <prevc/error.hxx> #include <prevc/pipeline/AST/expression.hxx> namespace prevc { namespace pipeline { namespace AST { /** * \brief Represent a unary operation node in ...
39.310606
126
0.505107
arazeiros
d8d50ed6bd35d69821c726299b54f00cbf0361bb
253
hpp
C++
lugce/xml/error_define.hpp
jadedrip/lugce
24800092fa83458485c9ad6760f5490156385f78
[ "BSD-3-Clause" ]
3
2018-02-14T01:30:36.000Z
2021-09-28T07:10:38.000Z
lugce/xml/error_define.hpp
jadedrip/lugce
24800092fa83458485c9ad6760f5490156385f78
[ "BSD-3-Clause" ]
null
null
null
lugce/xml/error_define.hpp
jadedrip/lugce
24800092fa83458485c9ad6760f5490156385f78
[ "BSD-3-Clause" ]
1
2018-02-21T07:13:26.000Z
2018-02-21T07:13:26.000Z
#pragma once namespace lugce { namespace xml { namespace details { static const char * error_require_char="Require the %1%, but got the char %2%."; static const char * error_incorrect_char_in_name="Incorrect char in name: %1%"; }; }; };
18.071429
83
0.683794
jadedrip
d8d524534e0ba5b3a8fcf7867829005fa8d06ca0
1,105
hxx
C++
src/articles.hxx
sguzman/SimpleScraper-
29de8b7c3a0e0a8fd8d5d5ad3846e6c9e878d3bf
[ "Unlicense" ]
null
null
null
src/articles.hxx
sguzman/SimpleScraper-
29de8b7c3a0e0a8fd8d5d5ad3846e6c9e878d3bf
[ "Unlicense" ]
null
null
null
src/articles.hxx
sguzman/SimpleScraper-
29de8b7c3a0e0a8fd8d5d5ad3846e6c9e878d3bf
[ "Unlicense" ]
null
null
null
#pragma once #include <array> #include <gumbo.h> #include "redis-http.hxx" #include "node.hxx" namespace Article { constexpr static const std::array<const unsigned short, 6> ps{{2, 3, 1, 1, 1, 1}}; constexpr static const std::array<const unsigned short, 10> cs{{1, 3, 5, 7, 9, 11, 13, 15, 17, 19}}; constexpr sta...
34.53125
102
0.653394
sguzman
d8d6e2261ed2ed3becab7216dfc15e120dda30b3
1,037
cpp
C++
src/fields/PMField.cpp
ts-igor/pacman-cpp
eac1ee33ce31042d84d51cd413455da55a9f4eda
[ "MIT" ]
null
null
null
src/fields/PMField.cpp
ts-igor/pacman-cpp
eac1ee33ce31042d84d51cd413455da55a9f4eda
[ "MIT" ]
null
null
null
src/fields/PMField.cpp
ts-igor/pacman-cpp
eac1ee33ce31042d84d51cd413455da55a9f4eda
[ "MIT" ]
null
null
null
#include "PMField.h" //---------------------------------------------------------------------------------------------------------------------------------------- PMField::PMField(int y, int x) { mSymbol = ' '; posX = x; posY = y; mInteraction = true; } //-----------------------------------------------------------...
34.566667
138
0.21215
ts-igor
d8d79789d5b26abfa99c76e31536ddd37816d41c
2,232
cpp
C++
Competitive Coding/Tree/Minimum Spanning Tree/Kruskal/KruskalMST.cpp
Gareeb-coder/Algorithms
22f9c71a7554a3211978c910c086e23bf1ae4c7f
[ "MIT" ]
222
2016-07-17T17:28:19.000Z
2022-03-27T02:57:39.000Z
Competitive Coding/Tree/Minimum Spanning Tree/Kruskal/KruskalMST.cpp
Gareeb-coder/Algorithms
22f9c71a7554a3211978c910c086e23bf1ae4c7f
[ "MIT" ]
197
2016-10-24T16:47:42.000Z
2021-08-29T08:12:31.000Z
Competitive Coding/Tree/Minimum Spanning Tree/Kruskal/KruskalMST.cpp
Gareeb-coder/Algorithms
22f9c71a7554a3211978c910c086e23bf1ae4c7f
[ "MIT" ]
206
2016-05-18T17:08:14.000Z
2022-01-16T04:08:47.000Z
#include <bits/stdc++.h> using namespace std; #define lli long long int #define infinite numeric_limits<int>::max() #define Min(a,b) ((a)<(b)?(a):(b)) #define Max(a,b) ((a)>(b)?(a):(b)) #define fr(i,j,s) for(i = j ; i < s ; i++) #define ifr(i,j,s) for(i = j ; i >= s , i--) struct edge { lli wt; int src; ...
20.666667
67
0.517025
Gareeb-coder
d8d81b6c4e462766af8de94729c0ec6a71909e7f
271
cpp
C++
StiGame/events/MouseWheelEventListener.cpp
jordsti/stigame
6ac0ae737667b1c77da3ef5007f5c4a3a080045a
[ "MIT" ]
8
2015-02-03T20:23:49.000Z
2022-02-15T07:51:05.000Z
StiGame/events/MouseWheelEventListener.cpp
jordsti/stigame
6ac0ae737667b1c77da3ef5007f5c4a3a080045a
[ "MIT" ]
null
null
null
StiGame/events/MouseWheelEventListener.cpp
jordsti/stigame
6ac0ae737667b1c77da3ef5007f5c4a3a080045a
[ "MIT" ]
2
2017-02-13T18:04:00.000Z
2020-08-24T03:21:37.000Z
#include "MouseWheelEventListener.h" namespace StiGame { MouseWheelEventListener::MouseWheelEventListener() {} MouseWheelEventListener::~MouseWheelEventListener() {} void MouseWheelEventListener::handleEvent(MouseWheelEventThrower *src, MouseWheelEventArgs *args) {} }
27.1
100
0.830258
jordsti
d8ddb2b2ebdd87ccd97a0f49fb58ba2dbaec8bc5
912
cpp
C++
gameSource/testFolderCache.cpp
Valaras/OneLife
0f83ffb8edf8362ff3bf0ca87a73bba21be20446
[ "Linux-OpenIB" ]
69
2018-10-05T23:29:10.000Z
2022-03-29T22:34:24.000Z
gameSource/testFolderCache.cpp
Valaras/OneLife
0f83ffb8edf8362ff3bf0ca87a73bba21be20446
[ "Linux-OpenIB" ]
62
2018-11-08T14:14:40.000Z
2022-03-01T20:38:01.000Z
gameSource/testFolderCache.cpp
Valaras/OneLife
0f83ffb8edf8362ff3bf0ca87a73bba21be20446
[ "Linux-OpenIB" ]
24
2018-10-11T09:20:27.000Z
2021-11-06T19:23:17.000Z
/* compile with g++ -g -I../.. -o testFolderCache testFolderCache.cpp folderCache.cpp \ ../../minorGems/io/file/linux/PathLinux.cpp \ ../../minorGems/formats/encodingUtils.cpp \ ../../minorGems/util/stringUtils.cpp \ ../../minorGems/system/unix/TimeUnix.cpp */ #include "folderCache.h" #include "minorGems/system/T...
21.209302
71
0.575658
Valaras
d8ea8068c7e63a7a03416ea1c40bc53d767189b8
615
cpp
C++
src/randomNumber.cpp
venGaza/combatGame
8839b587afb319d7c3dd1e5b65bbd9e24b16d7c9
[ "MIT" ]
3
2019-01-25T00:31:35.000Z
2021-08-19T02:59:59.000Z
src/randomNumber.cpp
venGaza/combatGame
8839b587afb319d7c3dd1e5b65bbd9e24b16d7c9
[ "MIT" ]
2
2019-01-23T04:15:20.000Z
2019-01-23T07:50:26.000Z
src/randomNumber.cpp
venGaza/starwars
37f1281375241125081177482bd6caff02f80535
[ "MIT" ]
null
null
null
/* * Function: randomNumber * Usage: randomNumber(int min, int max) * ------------------------- * This function takes two parameters whicha are the min and max values and returns a random number * between those values. */ #include "randomNumber.hpp" #include <random> int randomNumber(int min, int max) { std...
30.75
99
0.626016
venGaza
d8f87c8a1317283817d20cb6db3452cb5e4cb753
2,853
cpp
C++
src/Kernel/Service/FirmwareUpdateService.cpp
ilesar/nodemcu_neopixel_mqtt
1e585eb9d1737c3f19b38126cc35b363006285b9
[ "MIT" ]
null
null
null
src/Kernel/Service/FirmwareUpdateService.cpp
ilesar/nodemcu_neopixel_mqtt
1e585eb9d1737c3f19b38126cc35b363006285b9
[ "MIT" ]
null
null
null
src/Kernel/Service/FirmwareUpdateService.cpp
ilesar/nodemcu_neopixel_mqtt
1e585eb9d1737c3f19b38126cc35b363006285b9
[ "MIT" ]
null
null
null
#include "../Interface/FirmwareUpdateService.h" FirmwareUpdateService::FirmwareUpdateService(char *password) { _password = password; } void FirmwareUpdateService::setup() { setAuthorization(_password); setExternalRoutes(); onStart(); onEnd(); onProgress(); onError(); ArduinoOTA.begin...
23.385246
96
0.575885
ilesar
2b00996a03a3c47711fe6fb27873812140f188ed
7,937
cc
C++
third_party/blink/renderer/core/loader/modulescript/worker_module_script_fetcher.cc
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/blink/renderer/core/loader/modulescript/worker_module_script_fetcher.cc
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/blink/renderer/core/loader/modulescript/worker_module_script_fetcher.cc
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/core/loader/modulescript/worker_module_script_fetcher.h" #include "services/network/public/mojom/ip_address_space.mo...
46.964497
97
0.735164
sarang-apps
2b020805d27794fe0042a32d0458f0f35bf36ca4
5,433
cpp
C++
src/utils/nts.cpp
aligungr/ue-ran-sim
564f9d228723f03adfa2b02df2ea019bdf305085
[ "MIT" ]
16
2020-04-16T02:07:37.000Z
2020-07-23T10:48:27.000Z
src/utils/nts.cpp
aligungr/ue-ran-sim
564f9d228723f03adfa2b02df2ea019bdf305085
[ "MIT" ]
8
2020-07-13T17:11:35.000Z
2020-08-03T16:46:31.000Z
src/utils/nts.cpp
aligungr/ue-ran-sim
564f9d228723f03adfa2b02df2ea019bdf305085
[ "MIT" ]
9
2020-03-04T15:05:08.000Z
2020-07-30T06:18:18.000Z
// // This file is a part of UERANSIM open source project. // Copyright (c) 2021 ALİ GÜNGÖR. // // The software and all associated files are licensed under GPL-3.0 // and subject to the terms and conditions defined in LICENSE file. // #include "nts.hpp" #include "common.hpp" #include <stdexcept> #define WAIT_TIME_IF...
20.976834
114
0.587521
aligungr
2b02e681e1e6cc628902aaa9d435cdaf5da17a3b
259
cpp
C++
chapter3/demo2.cpp
bw-y/cpt
0d9f12ab605066429e9e7f54405cc3aa935874a1
[ "MIT" ]
null
null
null
chapter3/demo2.cpp
bw-y/cpt
0d9f12ab605066429e9e7f54405cc3aa935874a1
[ "MIT" ]
null
null
null
chapter3/demo2.cpp
bw-y/cpt
0d9f12ab605066429e9e7f54405cc3aa935874a1
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int res_row(int a){ int i; for (i = 1; i <= a; i++){ cout << i << "x" << a << "=" << i * a << "\t"; } cout << "\n"; } int main(){ int i, t; for (i = 0; i < 10; i++){ res_row(i); } return 0; }
13.631579
50
0.420849
bw-y