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
f035ab93bef94a250ff2ca333fdd69a5f83a7943
6,444
cpp
C++
src/sim/entities/sim_Explosion.cpp
marek-cel/fightersfs
5511162726861fee17357f39274461250370c224
[ "MIT" ]
4
2021-01-28T17:39:38.000Z
2022-02-11T20:13:46.000Z
src/sim/entities/sim_Explosion.cpp
marek-cel/fightersfs
5511162726861fee17357f39274461250370c224
[ "MIT" ]
null
null
null
src/sim/entities/sim_Explosion.cpp
marek-cel/fightersfs
5511162726861fee17357f39274461250370c224
[ "MIT" ]
3
2021-02-22T21:22:30.000Z
2022-01-10T19:32:12.000Z
/****************************************************************************//* * Copyright (C) 2021 Marek M. Cel * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the "Software"), * to deal in the Software without restrict...
43.836735
105
0.617008
marek-cel
f039bed9ffb5dc464e1986b13a2bfe6e726662a1
2,678
cc
C++
google/cloud/spanner/internal/time_format_benchmark.cc
devjgm/google-cloud-cpp-spanner
e9f73518069f69f79ab8e74e69ea68babcc20a58
[ "Apache-2.0" ]
29
2019-05-03T15:03:48.000Z
2021-06-04T06:15:55.000Z
google/cloud/spanner/internal/time_format_benchmark.cc
devjgm/google-cloud-cpp-spanner
e9f73518069f69f79ab8e74e69ea68babcc20a58
[ "Apache-2.0" ]
1,199
2019-05-03T13:05:54.000Z
2020-06-01T18:58:26.000Z
google/cloud/spanner/internal/time_format_benchmark.cc
devjgm/google-cloud-cpp-spanner
e9f73518069f69f79ab8e74e69ea68babcc20a58
[ "Apache-2.0" ]
18
2019-05-02T20:53:06.000Z
2021-10-07T21:29:36.000Z
// Copyright 2020 Google LLC // // 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 w...
28.795699
75
0.621733
devjgm
f03efe79c0b859a5c1cd955d9e71fbd2de3487f7
3,001
cpp
C++
Source/Runtime/Private/Sound/SoundSystemSLES.cpp
redchew-fork/BlueshiftEngine
fbc374cbc391e1147c744649f405a66a27c35d89
[ "Apache-2.0" ]
410
2017-03-03T08:56:54.000Z
2022-03-29T07:18:46.000Z
Source/Runtime/Private/Sound/SoundSystemSLES.cpp
redchew-fork/BlueshiftEngine
fbc374cbc391e1147c744649f405a66a27c35d89
[ "Apache-2.0" ]
31
2017-03-05T11:37:44.000Z
2021-09-15T21:28:34.000Z
Source/Runtime/Private/Sound/SoundSystemSLES.cpp
redchew-fork/BlueshiftEngine
fbc374cbc391e1147c744649f405a66a27c35d89
[ "Apache-2.0" ]
48
2017-03-18T05:28:21.000Z
2022-03-05T12:27:17.000Z
#include "Precompiled.h" #include "Math/Math.h" #include "SIMD/SIMD.h" #include "Core/CVars.h" #include "Sound/SoundSystem.h" BE_NAMESPACE_BEGIN static const int MaxSources = 12; static CVar s_khz("s_khz", "44", CVar::Flag::Integer | CVar::Flag::Archive, ""); static CVar s_doppler("s_doppler", "1.0", CVar::F...
33.719101
101
0.693436
redchew-fork
f041d31b129f43e8f662762762b60e49a54adb12
2,124
cpp
C++
lib-vs/src/core/tfmodel.cpp
FRC3407/VisionServer
a76fe1a35525950863f7809b65fa72286c26f622
[ "MIT" ]
2
2022-01-10T23:29:55.000Z
2022-03-04T12:36:45.000Z
lib-vs/src/core/tfmodel.cpp
FRC3407/VisionServer
a76fe1a35525950863f7809b65fa72286c26f622
[ "MIT" ]
null
null
null
lib-vs/src/core/tfmodel.cpp
FRC3407/VisionServer
a76fe1a35525950863f7809b65fa72286c26f622
[ "MIT" ]
1
2022-01-29T04:25:16.000Z
2022-01-29T04:25:16.000Z
#include "tfmodel.h" void loadObjectLabels(const std::string& f, std::vector<std::string>& objs) { objs.clear(); std::ifstream file(f); std::string line; int32_t start, end; std::getline(file, line, '\n'); if(line == "item {") { while(std::getline(file, line, '\n')) { start = end = -1; for (size_t i = 0...
28.702703
109
0.612994
FRC3407
f0477bf7e895edc949eceae7f9ced2770cf779fe
664
hpp
C++
library/ATF/std___String_baseInfo.hpp
lemkova/Yorozuya
f445d800078d9aba5de28f122cedfa03f26a38e4
[ "MIT" ]
29
2017-07-01T23:08:31.000Z
2022-02-19T10:22:45.000Z
library/ATF/std___String_baseInfo.hpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
90
2017-10-18T21:24:51.000Z
2019-06-06T02:30:33.000Z
library/ATF/std___String_baseInfo.hpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
44
2017-12-19T08:02:59.000Z
2022-02-24T23:15:01.000Z
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> #include <std___String_base.hpp> START_ATF_NAMESPACE namespace std { namespace Info { using std___String_basector__Stri...
34.947368
175
0.713855
lemkova
f053c47d0bc953e643b5c0aafc06430eca429c6e
3,922
cc
C++
src/ir/ir_printer_test.cc
Cypher1/raksha
0f52f108ceb8bc7b8be36a7bf8e9662188c57551
[ "Apache-2.0" ]
null
null
null
src/ir/ir_printer_test.cc
Cypher1/raksha
0f52f108ceb8bc7b8be36a7bf8e9662188c57551
[ "Apache-2.0" ]
null
null
null
src/ir/ir_printer_test.cc
Cypher1/raksha
0f52f108ceb8bc7b8be36a7bf8e9662188c57551
[ "Apache-2.0" ]
null
null
null
//----------------------------------------------------------------------------- // Copyright 2022 Google LLC // // 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 // // https://www.apache.o...
31.126984
79
0.63794
Cypher1
f053f6e90c761647c48770c12ec88db3da347152
2,526
cpp
C++
old_src/example_server/imageplot.cpp
InsightCenterNoodles/NoodlesPlusPlus
3396e530a5948416fd364cc9ffa3f5bcbb8abc3b
[ "MIT" ]
null
null
null
old_src/example_server/imageplot.cpp
InsightCenterNoodles/NoodlesPlusPlus
3396e530a5948416fd364cc9ffa3f5bcbb8abc3b
[ "MIT" ]
null
null
null
old_src/example_server/imageplot.cpp
InsightCenterNoodles/NoodlesPlusPlus
3396e530a5948416fd364cc9ffa3f5bcbb8abc3b
[ "MIT" ]
null
null
null
#include "imageplot.h" #include "plotty.h" void ImagePlot::rebuild(Domain const& d) { auto center = (m_top_left + m_bottom_right) / 2.0f; auto o = -(m_bottom_left - center); if (!m_image_texture) { m_image_texture = noo::create_texture_from_file(m_doc, m_image_data); } if (!m_image_mat)...
25.515152
77
0.548694
InsightCenterNoodles
f0583e8c44290a1c1ed21be5fe6bf2c22121ca16
11,068
hpp
C++
shift/core/public/shift/core/ring_buffer.hpp
cspanier/shift
5b3b9be310155fbc57d165d06259b723a5728828
[ "Apache-2.0" ]
2
2018-11-28T18:14:08.000Z
2020-08-06T07:44:36.000Z
shift/core/public/shift/core/ring_buffer.hpp
cspanier/shift
5b3b9be310155fbc57d165d06259b723a5728828
[ "Apache-2.0" ]
4
2018-11-06T21:01:05.000Z
2019-02-19T07:52:52.000Z
shift/core/public/shift/core/ring_buffer.hpp
cspanier/shift
5b3b9be310155fbc57d165d06259b723a5728828
[ "Apache-2.0" ]
null
null
null
#ifndef SHIFT_CORE_RINGBUFFER_HPP #define SHIFT_CORE_RINGBUFFER_HPP #include <utility> #include <algorithm> #include <cstring> #include <shift/core/boost_disable_warnings.hpp> #include <boost/call_traits.hpp> #include <shift/core/boost_restore_warnings.hpp> namespace shift::core { /// A ring buffer using a single lin...
29.752688
79
0.663896
cspanier
f05c7289ea1481eaad964d4db7cdafb1cd8c0b55
3,878
cpp
C++
NOV18B/PRITREE.cpp
Chhekur/codechef-solutions
14ca902ea693139de13ffe5b9f602447bf34b79f
[ "MIT" ]
1
2019-03-25T14:14:47.000Z
2019-03-25T14:14:47.000Z
NOV18B/PRITREE.cpp
Chhekur/codechef-solutions
14ca902ea693139de13ffe5b9f602447bf34b79f
[ "MIT" ]
null
null
null
NOV18B/PRITREE.cpp
Chhekur/codechef-solutions
14ca902ea693139de13ffe5b9f602447bf34b79f
[ "MIT" ]
null
null
null
#include<iostream> #include<vector> #include<algorithm> #include<utility> #include<cstdlib> #include<set> #include<stack> using namespace std; vector<pair<int, int> > edges; vector<pair<int, int> > graph; vector<vector<int> > temp_graph; int a[1001]; bool isPrime(int num){ int f = 0; for(int i = 2; i * i <= num; i++...
22.287356
72
0.465446
Chhekur
f05d7aafd52938ad7b393f36679dfc15e8292de4
22,731
cpp
C++
unittests/utils/FileCheckTest.cpp
PHP-OPEN-HUB/polarphp
70ff4046e280fd99d718d4761686168fa8012aa5
[ "PHP-3.01" ]
null
null
null
unittests/utils/FileCheckTest.cpp
PHP-OPEN-HUB/polarphp
70ff4046e280fd99d718d4761686168fa8012aa5
[ "PHP-3.01" ]
null
null
null
unittests/utils/FileCheckTest.cpp
PHP-OPEN-HUB/polarphp
70ff4046e280fd99d718d4761686168fa8012aa5
[ "PHP-3.01" ]
null
null
null
//===- llvm/unittest/Support/FileCheckTest.cpp - FileCheck tests --===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===-----------------------------------...
39.259067
85
0.723505
PHP-OPEN-HUB
f05e11c9aa8b06d2cce2ca4aa7b0eb9e2b992d49
5,180
hpp
C++
include/System/Data/DataRowAction.hpp
v0idp/virtuoso-codegen
6f560f04822c67f092d438a3f484249072c1d21d
[ "Unlicense" ]
null
null
null
include/System/Data/DataRowAction.hpp
v0idp/virtuoso-codegen
6f560f04822c67f092d438a3f484249072c1d21d
[ "Unlicense" ]
null
null
null
include/System/Data/DataRowAction.hpp
v0idp/virtuoso-codegen
6f560f04822c67f092d438a3f484249072c1d21d
[ "Unlicense" ]
1
2022-03-30T21:07:35.000Z
2022-03-30T21:07:35.000Z
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: System.Enum #include "System/Enum.h...
51.287129
97
0.733398
v0idp
f067bf169df312c8a05d493bf7541d4c1604c824
18,457
cpp
C++
kol_ontology/unit_test/kol_test_GoGraph.cpp
kellerberrin/KGL_Gene
f8e6c14b8b2009d82d692b28354561b5f0513c5e
[ "MIT" ]
1
2021-04-09T16:24:06.000Z
2021-04-09T16:24:06.000Z
kol_ontology/unit_test/kol_test_GoGraph.cpp
kellerberrin/KGL_Gene
f8e6c14b8b2009d82d692b28354561b5f0513c5e
[ "MIT" ]
null
null
null
kol_ontology/unit_test/kol_test_GoGraph.cpp
kellerberrin/KGL_Gene
f8e6c14b8b2009d82d692b28354561b5f0513c5e
[ "MIT" ]
null
null
null
// // Created by kellerberrin on 1/4/21. // #include <kol_library.h> #include "kol_test.h" #include <boost/test/unit_test.hpp> namespace kellerberrin::ontology { // This object is re-created for each test case; store the graph in a static pointer so that it is only created once. class TestGoGraph { public: TestGo...
32.380702
184
0.653627
kellerberrin
f06de431cb9933773c4c4fbea87a43ffd31cbb7c
2,404
cpp
C++
lua100/sources/utils/plugin_loader.cpp
SoulWorkerResearch/swp-loader
00d8ca0d59e0e5a0d279e5d4b5d08850042aa190
[ "WTFPL" ]
1
2022-01-05T13:36:26.000Z
2022-01-05T13:36:26.000Z
lua100/sources/utils/plugin_loader.cpp
SoulWorkerResearch/swp-loader
00d8ca0d59e0e5a0d279e5d4b5d08850042aa190
[ "WTFPL" ]
1
2022-01-06T04:41:02.000Z
2022-01-06T04:41:02.000Z
lua100/sources/utils/plugin_loader.cpp
SoulWorkerResearch/swp-loader
00d8ca0d59e0e5a0d279e5d4b5d08850042aa190
[ "WTFPL" ]
null
null
null
// local #include "../../headers/utils/plugin_loader.hpp" #include "../../headers/utils/game_version.hpp" #include "../../headers/plugins.hpp" // windows #include <Windows.h> // local deps #include <swpsdk/utils/spdlog_formatter.hpp> #include <swpsdk/plugin/attach.hpp> #include <swpsdk/plugin/loader.hpp> ...
30.05
117
0.680532
SoulWorkerResearch
f06e06a626ae3b1a04475f95d063151b67b07c4d
1,122
cpp
C++
boboleetcode/Play-Leetcode-master/0470-Implement-Rand10-Using-Rand7/cpp-0470/main2.cpp
mcuallen/CodeLrn2019
adc727d92904c5c5d445a2621813dfa99474206d
[ "Apache-2.0" ]
2
2019-03-20T17:05:59.000Z
2019-10-15T07:56:45.000Z
boboleetcode/Play-Leetcode-master/0470-Implement-Rand10-Using-Rand7/cpp-0470/main2.cpp
mcuallen/CodeLrn2019
adc727d92904c5c5d445a2621813dfa99474206d
[ "Apache-2.0" ]
6
2019-12-04T06:08:32.000Z
2021-05-10T20:22:47.000Z
boboleetcode/Play-Leetcode-master/0470-Implement-Rand10-Using-Rand7/cpp-0470/main2.cpp
mcuallen/CodeLrn2019
adc727d92904c5c5d445a2621813dfa99474206d
[ "Apache-2.0" ]
null
null
null
/// Source : https://leetcode.com/problems/implement-rand10-using-rand7/description/ /// Author : liuyubobobo /// Time : 2018-08-05 #include <iostream> #include <cassert> using namespace std; // The rand7() API is already defined for you. // int rand7(); // @return a random integer in the range 1 to 7 int rand7(){...
23.375
84
0.552585
mcuallen
f070282cc4457847cf7540db2ebe08be1d4c5c4f
7,027
hpp
C++
RobWork/src/rw/proximity/BasicFilterStrategy.hpp
ZLW07/RobWork
e713881f809d866b9a0749eeb15f6763e64044b3
[ "Apache-2.0" ]
1
2021-12-29T14:16:27.000Z
2021-12-29T14:16:27.000Z
RobWork/src/rw/proximity/BasicFilterStrategy.hpp
ZLW07/RobWork
e713881f809d866b9a0749eeb15f6763e64044b3
[ "Apache-2.0" ]
null
null
null
RobWork/src/rw/proximity/BasicFilterStrategy.hpp
ZLW07/RobWork
e713881f809d866b9a0749eeb15f6763e64044b3
[ "Apache-2.0" ]
null
null
null
/******************************************************************************** * Copyright 2009 The Robotics Group, The Maersk Mc-Kinney Moller Institute, * Faculty of Engineering, University of Southern Denmark * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exce...
37.179894
106
0.602675
ZLW07
f07244b9aa7b9739d855c629eed6db0a68eb950c
12,578
hpp
C++
src/include/InterpolationTemplate.hpp
12ff54e/BSplineInterpolation
b0f04414807bea999c5102f1274ea2ad9c2a6b6f
[ "MIT" ]
5
2022-03-21T08:50:42.000Z
2022-03-31T05:31:41.000Z
src/include/InterpolationTemplate.hpp
12ff54e/BSplineInterpolation
b0f04414807bea999c5102f1274ea2ad9c2a6b6f
[ "MIT" ]
null
null
null
src/include/InterpolationTemplate.hpp
12ff54e/BSplineInterpolation
b0f04414807bea999c5102f1274ea2ad9c2a6b6f
[ "MIT" ]
1
2022-03-31T11:12:24.000Z
2022-03-31T11:12:24.000Z
#pragma once #include "BSpline.hpp" #include "Mesh.hpp" namespace intp { template <typename T, size_t D> class InterpolationFunction; // Forward declaration, since template has // a member of it. /** * @brief Template for interpolation with only coordinates, and generate * interpola...
40.574194
79
0.5225
12ff54e
f073a8f2172f9a84bb1539aa1a7d706d36e8e251
25,075
cpp
C++
src/Networking.cpp
crumblingstatue/Galaxy
a33d1df85e57a88206265c2780b288f3fda52bbb
[ "CC-BY-3.0" ]
1
2015-08-27T17:01:48.000Z
2015-08-27T17:01:48.000Z
src/Networking.cpp
crumblingstatue/Galaxy
a33d1df85e57a88206265c2780b288f3fda52bbb
[ "CC-BY-3.0" ]
11
2015-09-24T03:15:13.000Z
2016-02-23T03:03:04.000Z
src/Networking.cpp
crumblingstatue/Galaxy
a33d1df85e57a88206265c2780b288f3fda52bbb
[ "CC-BY-3.0" ]
1
2016-02-16T22:25:06.000Z
2016-02-16T22:25:06.000Z
#include "Networking.h" #include "globalvars.h" #include <iostream> #include <iomanip> #include <stdio.h> #include <string> namespace network { int mainPort = 23636; bool packetDeletion = false; bool servWait = false; bool cliWait = false; bool server = false; bool client = false; bool ch...
31.501256
180
0.45324
crumblingstatue
f07413236a6a881943dacab4e29821e19995c331
323
hpp
C++
src/RadialGrid/RadialGrid.hpp
rdietric/lsms
8d0d5f01186abf9a1cc54db3f97f9934b422cf92
[ "BSD-3-Clause" ]
28
2020-01-05T20:05:31.000Z
2022-03-07T09:08:01.000Z
src/RadialGrid/RadialGrid.hpp
rdietric/lsms
8d0d5f01186abf9a1cc54db3f97f9934b422cf92
[ "BSD-3-Clause" ]
8
2019-07-30T13:59:18.000Z
2022-03-31T17:43:35.000Z
lsms/src/RadialGrid/RadialGrid.hpp
hkershaw-brown/MuST
9db4bc5061c2f2c4d7dfd92f53b4ef952602c070
[ "BSD-3-Clause" ]
13
2020-02-11T17:04:45.000Z
2022-03-28T09:23:46.000Z
#ifndef LSMS_RGRID_H #define LSMS_RGRID_H #include <vector> #include "Real.hpp" class RadialGrid { public: inline RadialGrid() : N(0), jmt(0), jws(0), h(0.0) {} int N,jmt,jws; Real h; std::vector<Real> r_mesh,x_mesh; }; void generateRadialGrid(RadialGrid * g, Real x0, Real h, int N, int jmt, int jws); #end...
17.944444
82
0.674923
rdietric
7eb581ab465752104d52238a6737e197c1a6fefd
683
cc
C++
solutions/cpp/448-find-all-numbers-disappeared-in-an-array.cc
PW486/leetcode
c8a38265ebc98fc6335b6420fefe0ce2bb3eeae9
[ "Unlicense" ]
null
null
null
solutions/cpp/448-find-all-numbers-disappeared-in-an-array.cc
PW486/leetcode
c8a38265ebc98fc6335b6420fefe0ce2bb3eeae9
[ "Unlicense" ]
null
null
null
solutions/cpp/448-find-all-numbers-disappeared-in-an-array.cc
PW486/leetcode
c8a38265ebc98fc6335b6420fefe0ce2bb3eeae9
[ "Unlicense" ]
null
null
null
#include <iostream> #include <vector> using namespace std; class Solution { public: vector<int> findDisappearedNumbers(vector<int> &nums) { vector<int> result; int len = nums.size(); for (int i = 0; i < len; i++) { int pos = abs(nums[i]) - 1; if (nums[pos] > 0) { nums[pos] = -nums[p...
18.972222
63
0.524158
PW486
7eb8391219baa3aad813314e31142d86f4cf2224
1,176
cpp
C++
src/devices/video/WXGLDevice.cpp
SolarAquarion/ffmpegyag
bb77508afd7dd30b853ff8e56a9a062c01ca8237
[ "MIT" ]
12
2017-09-24T06:27:25.000Z
2022-02-02T09:40:38.000Z
src/devices/video/WXGLDevice.cpp
SolarAquarion/ffmpegyag
bb77508afd7dd30b853ff8e56a9a062c01ca8237
[ "MIT" ]
3
2017-09-24T06:34:06.000Z
2018-06-11T05:31:21.000Z
src/devices/video/WXGLDevice.cpp
SolarAquarion/ffmpegyag
bb77508afd7dd30b853ff8e56a9a062c01ca8237
[ "MIT" ]
4
2018-03-02T15:23:12.000Z
2019-06-05T12:07:13.000Z
#include "WXGLDevice.h" WXGLDevice::WXGLDevice() { widget = NULL; } WXGLDevice::~WXGLDevice() { // } void* WXGLDevice::CreateWidget(const char* title, int width, int height, bool fullscreen) { // TODO: create wxWidgets window return NULL; } void WXGLDevice::DestroyWidget(void* Widget) { Release(...
18.092308
104
0.602891
SolarAquarion
7eb87aaedd0bb95200e6b68d928558a911803211
466
hpp
C++
srcs/game/components/LimitSide.hpp
BenjaminRepingon/Nibbler-MultiLib
71ae0b374346fef63ea5280f05722b185afa793a
[ "Apache-2.0" ]
null
null
null
srcs/game/components/LimitSide.hpp
BenjaminRepingon/Nibbler-MultiLib
71ae0b374346fef63ea5280f05722b185afa793a
[ "Apache-2.0" ]
null
null
null
srcs/game/components/LimitSide.hpp
BenjaminRepingon/Nibbler-MultiLib
71ae0b374346fef63ea5280f05722b185afa793a
[ "Apache-2.0" ]
null
null
null
#ifndef LIMITSIDE_HPP # define LIMITSIDE_HPP # include "../../core/AComponent.hpp" # include "../../utils/vec.hpp" class LimitSide : public AComponent { public: // LimitSide( void ); LimitSide( Vec2i const & a, Vec2i const & b); ~LimitSide( void ); LimitSide( LimitSide const & src ); LimitSide & operator=( L...
22.190476
58
0.665236
BenjaminRepingon
7eb89fa94b69a80478d0a7c23f0facb0389627e5
363
cpp
C++
recursion/jumps.cpp
heysujal/Problem-Solving-in-cpp
b5e21bc467d57d3c2050776b948e7f59daabe945
[ "Unlicense" ]
1
2021-10-04T16:24:57.000Z
2021-10-04T16:24:57.000Z
recursion/jumps.cpp
heysujal/Problem-Solving-in-cpp
b5e21bc467d57d3c2050776b948e7f59daabe945
[ "Unlicense" ]
null
null
null
recursion/jumps.cpp
heysujal/Problem-Solving-in-cpp
b5e21bc467d57d3c2050776b948e7f59daabe945
[ "Unlicense" ]
1
2021-10-04T16:25:00.000Z
2021-10-04T16:25:00.000Z
// no of ways to reach n by only jumping 1, 2 or 3 steps at a time. #include <bits/stdc++.h> using namespace std; int jump_count(int n) { if (n < 0) return 0; if (n == 0) return 1; return jump_count(n - 1) + jump_count(n - 2) + jump_count(n - 3); } int main() { int n; cin >> n; ...
15.125
69
0.5427
heysujal
7eb9ce2ce706d6261c46377256d94ad79e1cd712
13,299
cpp
C++
src/tests/functional/plugin/cpu/subgraph_tests/src/seq_native_order.cpp
shaun95/openvino
a3d5b6501d851e604a0cd363a100f42ec4369469
[ "Apache-2.0" ]
1
2022-03-09T08:11:10.000Z
2022-03-09T08:11:10.000Z
src/tests/functional/plugin/cpu/subgraph_tests/src/seq_native_order.cpp
wgzintel/openvino
334e9e994e1e64d060edc989c77fab35919e378d
[ "Apache-2.0" ]
1
2022-02-13T09:56:15.000Z
2022-02-13T09:56:15.000Z
src/tests/functional/plugin/cpu/subgraph_tests/src/seq_native_order.cpp
AlexRogalskiy/openvino
ac2e639ff8f9a607c3c682a4c4e165c238eb817f
[ "Apache-2.0" ]
1
2020-12-13T22:16:54.000Z
2020-12-13T22:16:54.000Z
// Copyright (C) 2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "shared_test_classes/base/ov_subgraph.hpp" #include "ngraph_functions/builders.hpp" #include "test_utils/cpu_test_utils.hpp" #include "transformations/op_conversions/bidirectional_sequences_decomposition.hpp" #include "transform...
44.33
148
0.529138
shaun95
7ebbf675263b8a48bc6ce5c9c43edda6c5720677
1,472
cpp
C++
CleaningService/main.cpp
KamranMackey/cplusplusprojects
1b42afa9b530098dcb9ada8b133c1351ab4c8155
[ "MIT" ]
null
null
null
CleaningService/main.cpp
KamranMackey/cplusplusprojects
1b42afa9b530098dcb9ada8b133c1351ab4c8155
[ "MIT" ]
null
null
null
CleaningService/main.cpp
KamranMackey/cplusplusprojects
1b42afa9b530098dcb9ada8b133c1351ab4c8155
[ "MIT" ]
null
null
null
#include <iostream> int main() { std::cout << "Hello there, welcome to the Cleaning Service!\n\n"; auto small_room_count{0}; std::cout << "Please enter the amount of small rooms you would like cleaned: "; std::cin >> small_room_count; auto large_room_count{0}; std::cout << "Please enter the amount of large room...
38.736842
83
0.658967
KamranMackey
7ebd99138b259d93d69fc7793560b665a749cdb6
374
cpp
C++
source/code/RigorPhysics/AABBox.cpp
AdamWallberg/RigorPhysics
85da20dbf1f1990f703e2be687b65987fc48386f
[ "MIT" ]
null
null
null
source/code/RigorPhysics/AABBox.cpp
AdamWallberg/RigorPhysics
85da20dbf1f1990f703e2be687b65987fc48386f
[ "MIT" ]
null
null
null
source/code/RigorPhysics/AABBox.cpp
AdamWallberg/RigorPhysics
85da20dbf1f1990f703e2be687b65987fc48386f
[ "MIT" ]
null
null
null
#include "AABBox.h" namespace rg { AABBox::AABBox() : min(ZeroVector) , max(ZeroVector) { } AABBox::AABBox(Vector3 min, Vector3 max) : min(min) , max(max) { } bool AABBox::inside(const Vector3& position) const { return position.x >= min.x && position.x <= max.x && position.y >= min.y && position.y <= max.y...
14.384615
50
0.620321
AdamWallberg
7ebdb1bf448696ebfb075de4a3ece125b9b5eb6a
394
cpp
C++
codeforces/round-294/div-2/a_and_b_and_team_training.cpp
Rkhoiwal/Competitive-prog-Archive
18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9
[ "MIT" ]
1
2020-07-16T01:46:38.000Z
2020-07-16T01:46:38.000Z
codeforces/round-294/div-2/a_and_b_and_team_training.cpp
Rkhoiwal/Competitive-prog-Archive
18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9
[ "MIT" ]
null
null
null
codeforces/round-294/div-2/a_and_b_and_team_training.cpp
Rkhoiwal/Competitive-prog-Archive
18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9
[ "MIT" ]
1
2020-05-27T14:30:43.000Z
2020-05-27T14:30:43.000Z
#include <algorithm> #include <iostream> using namespace std; inline void use_io_optimizations() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } int main() { use_io_optimizations(); unsigned int experienced; unsigned int newbies; cin >> experienced >> newbies; cout << min({(exp...
15.153846
77
0.65736
Rkhoiwal
7ebf328cffea7816f7cfa0b266b4d49f275c2826
10,759
cpp
C++
esphome/components/pn532/pn532.cpp
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
249
2018-04-07T12:04:11.000Z
2019-01-25T01:11:34.000Z
esphome/components/pn532/pn532.cpp
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
243
2018-04-11T16:37:11.000Z
2019-01-25T16:50:37.000Z
esphome/components/pn532/pn532.cpp
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
40
2018-04-10T05:50:14.000Z
2019-01-25T15:20:36.000Z
#include "pn532.h" #include <memory> #include "esphome/core/log.h" #include "esphome/core/hal.h" // Based on: // - https://cdn-shop.adafruit.com/datasheets/PN532C106_Application+Note_v1.2.pdf // - https://www.nxp.com/docs/en/nxp/application-notes/AN133910.pdf // - https://www.nxp.com/docs/en/nxp/application-notes/153...
28.164921
114
0.636676
OttoWinter
7ec4d9509feb5da68609c9181629b63d62a508f6
1,361
hpp
C++
modules/memory/include/shard/memory/allocators/proxy_allocator.hpp
ikimol/shard
72a72dbebfd247d2b7b300136c489672960b37d8
[ "MIT" ]
null
null
null
modules/memory/include/shard/memory/allocators/proxy_allocator.hpp
ikimol/shard
72a72dbebfd247d2b7b300136c489672960b37d8
[ "MIT" ]
null
null
null
modules/memory/include/shard/memory/allocators/proxy_allocator.hpp
ikimol/shard
72a72dbebfd247d2b7b300136c489672960b37d8
[ "MIT" ]
null
null
null
// Copyright (c) 2021 Miklos Molnar. All rights reserved. #ifndef SHARD_MEMORY_PROXY_ALLOCATOR_HPP #define SHARD_MEMORY_PROXY_ALLOCATOR_HPP #include "shard/memory/allocator.hpp" namespace shard { namespace memory { class proxy_allocator : public allocator { public: explicit proxy_allocator(allocator& a, const c...
27.22
120
0.685525
ikimol
7ec6e7ee9fa50cc4c88daa4da11ef22913527637
1,356
cc
C++
solutions/cses/graph/1192.cc
zwliew/ctci
871f4fc957be96c6d0749d205549b7b35dc53d9e
[ "MIT" ]
4
2020-11-07T14:38:02.000Z
2022-01-03T19:02:36.000Z
solutions/cses/graph/1192.cc
zwliew/ctci
871f4fc957be96c6d0749d205549b7b35dc53d9e
[ "MIT" ]
1
2019-04-17T06:55:14.000Z
2019-04-17T06:55:14.000Z
solutions/cses/graph/1192.cc
zwliew/ctci
871f4fc957be96c6d0749d205549b7b35dc53d9e
[ "MIT" ]
null
null
null
#include <stdio.h> #include <algorithm> #include <array> #include <bitset> #include <cassert> #include <climits> #include <cmath> #include <deque> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include...
19.371429
80
0.538348
zwliew
7ec6f3bc2059f607ad2b9d87847209ad89536709
17,705
cpp
C++
svntrunk/src/pk/reactor/src/udp_reactor.cpp
Bhaskers-Blu-Org1/BlueMatter
1ab2c41af870c19e2e1b1095edd1d5c85eeb9b5e
[ "BSD-2-Clause" ]
7
2020-02-25T15:46:18.000Z
2022-02-25T07:04:47.000Z
svntrunk/src/pk/reactor/src/udp_reactor.cpp
IBM/BlueMatter
5243c0ef119e599fc3e9b7c4213ecfe837de59f3
[ "BSD-2-Clause" ]
null
null
null
svntrunk/src/pk/reactor/src/udp_reactor.cpp
IBM/BlueMatter
5243c0ef119e599fc3e9b7c4213ecfe837de59f3
[ "BSD-2-Clause" ]
5
2019-06-06T16:30:21.000Z
2020-11-16T19:43:01.000Z
/* Copyright 2001, 2019 IBM Corporation * * 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, this list of conditions and the * following d...
29.216172
119
0.578876
Bhaskers-Blu-Org1
7eca9af2de615d15fc20145673768b53402310d4
1,182
cpp
C++
SYCL/ESIMD/api/simd_view_select_2d_fp.cpp
abuyukku/llvm-test-suite
b10bd8e733519ae0e365fc097d36a32bc1d53d62
[ "Apache-2.0" ]
null
null
null
SYCL/ESIMD/api/simd_view_select_2d_fp.cpp
abuyukku/llvm-test-suite
b10bd8e733519ae0e365fc097d36a32bc1d53d62
[ "Apache-2.0" ]
null
null
null
SYCL/ESIMD/api/simd_view_select_2d_fp.cpp
abuyukku/llvm-test-suite
b10bd8e733519ae0e365fc097d36a32bc1d53d62
[ "Apache-2.0" ]
null
null
null
//==------- simd_view_select_2d_fp.cpp - DPC++ ESIMD on-device test -------==// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
35.818182
80
0.624365
abuyukku
7ecee9489877f779275d42e982ef16f748aa2761
4,798
cc
C++
src/media/codec/examples/use_media_decoder/in_stream_buffer.cc
allansrc/fuchsia
a2c235b33fc4305044d496354a08775f30cdcf37
[ "BSD-2-Clause" ]
210
2019-02-05T12:45:09.000Z
2022-03-28T07:59:06.000Z
src/media/codec/examples/use_media_decoder/in_stream_buffer.cc
allansrc/fuchsia
a2c235b33fc4305044d496354a08775f30cdcf37
[ "BSD-2-Clause" ]
56
2021-06-03T03:16:25.000Z
2022-03-20T01:07:44.000Z
src/media/codec/examples/use_media_decoder/in_stream_buffer.cc
allansrc/fuchsia
a2c235b33fc4305044d496354a08775f30cdcf37
[ "BSD-2-Clause" ]
73
2019-03-06T18:55:23.000Z
2022-03-26T12:04:51.000Z
// Copyright 2020 The Fuchsia 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 "in_stream_buffer.h" #include <algorithm> #include <atomic> #include <iostream> InStreamBuffer::InStreamBuffer(async::Loop* fidl_loop, thrd_t fi...
39.327869
99
0.713839
allansrc
7ed312ce24f292fc67bf7e568395df052560d8ae
4,291
cpp
C++
src/selectappdialog.cpp
FinchX/loli_profiler
9391bb82fd0a26c5855770974ae886f42daf4266
[ "BSD-2-Clause" ]
388
2021-03-11T04:20:19.000Z
2022-03-29T05:55:07.000Z
src/selectappdialog.cpp
habbyge/loli_profiler
fc5700acd5ee034698da2fff1189e58873721711
[ "BSD-2-Clause" ]
23
2021-03-24T06:38:29.000Z
2022-03-30T06:17:17.000Z
src/selectappdialog.cpp
habbyge/loli_profiler
fc5700acd5ee034698da2fff1189e58873721711
[ "BSD-2-Clause" ]
44
2021-03-11T06:27:02.000Z
2022-03-28T03:58:09.000Z
#include "selectappdialog.h" #include <QVBoxLayout> #include <QListWidget> #include <QKeyEvent> ArrowLineEdit::ArrowLineEdit(QListWidget* listView, QWidget *parent) : QLineEdit(parent), listView_(listView) { connect(this, &QLineEdit::textChanged, this, &ArrowLineEdit::onTextChanged); } void ArrowLineEdit::key...
35.172131
116
0.582149
FinchX
7ed9f7f322642e5063a174aea77f62f59d93c87f
9,515
cpp
C++
test/inventory_test.cpp
YADRO-KNS/obmc-yadro-lsinventory
2b52c92669d35500d3ad2f0c656dab5c9bec1625
[ "Apache-2.0" ]
null
null
null
test/inventory_test.cpp
YADRO-KNS/obmc-yadro-lsinventory
2b52c92669d35500d3ad2f0c656dab5c9bec1625
[ "Apache-2.0" ]
2
2020-04-22T07:32:25.000Z
2022-03-10T09:40:32.000Z
test/inventory_test.cpp
YADRO-KNS/obmc-yadro-lsinventory
2b52c92669d35500d3ad2f0c656dab5c9bec1625
[ "Apache-2.0" ]
null
null
null
// SPDX-License-Identifier: Apache-2.0 // Copyright (C) 2020 YADRO #include "inventory.hpp" #include <sdbusplus/test/sdbus_mock.hpp> using ::testing::_; using ::testing::Invoke; using ::testing::Return; using ::testing::StrEq; /** * class InventoryTest * @brief Inventory tests. */ class InventoryTest : public ::...
35.240741
79
0.601051
YADRO-KNS
7edb57e849387adc7cf6c8b0ce0e2aee36d27ae1
7,210
cpp
C++
aslam_backend/src/BlockCholeskyLinearSystemSolver.cpp
ethz-asl/aslam_optimizer
8e9dd18f9f0d8af461e88e108a3beda2003daf11
[ "BSD-3-Clause" ]
33
2017-04-26T13:30:49.000Z
2022-02-25T01:52:22.000Z
aslam_backend/src/BlockCholeskyLinearSystemSolver.cpp
ethz-asl/aslam_optimizer
8e9dd18f9f0d8af461e88e108a3beda2003daf11
[ "BSD-3-Clause" ]
15
2017-02-14T16:02:31.000Z
2020-05-12T06:07:22.000Z
aslam_backend/src/BlockCholeskyLinearSystemSolver.cpp
ethz-asl/aslam_optimizer
8e9dd18f9f0d8af461e88e108a3beda2003daf11
[ "BSD-3-Clause" ]
8
2017-06-28T04:17:08.000Z
2021-04-10T04:58:36.000Z
#include <numeric> #include <aslam/backend/BlockCholeskyLinearSystemSolver.hpp> #include <sparse_block_matrix/linear_solver_cholmod.h> #include <sparse_block_matrix/linear_solver_spqr.h> #include <aslam/backend/ErrorTerm.hpp> #include <sm/PropertyTree.hpp> namespace aslam { namespace backend { BlockCholeskyLinear...
39.398907
184
0.648821
ethz-asl
7ee0a8eaabcb5e3c5e253d93c9ea94913bdc12b8
1,308
cpp
C++
others/controller/httpcontroller.cpp
sesu089/stackoverflow
6fae69be6fa74fba9d554e6b5f387e5d3c1aad73
[ "MIT" ]
302
2017-03-04T00:05:23.000Z
2022-03-28T22:51:29.000Z
others/controller/httpcontroller.cpp
sesu089/stackoverflow
6fae69be6fa74fba9d554e6b5f387e5d3c1aad73
[ "MIT" ]
30
2017-12-02T19:26:43.000Z
2022-03-28T07:40:36.000Z
others/controller/httpcontroller.cpp
sesu089/stackoverflow
6fae69be6fa74fba9d554e6b5f387e5d3c1aad73
[ "MIT" ]
388
2017-07-04T16:53:12.000Z
2022-03-18T22:20:19.000Z
#include "httpcontroller.h" #include <QEventLoop> #include <QNetworkReply> #include <QNetworkRequest> HttpController::HttpController(QObject *parent) : QObject(parent) { cookies = new QNetworkCookieJar; manager = new QNetworkAccessManager(parent); manager->setCookieJar(cookies); } QString HttpController::Get(...
25.153846
77
0.702599
sesu089
7ee266dec2493da56f8108fd80c43a5700ff351d
397
cpp
C++
BeginnerLevel/Puppy_and_Sum.cpp
AkashKumarSingh11032001/CodeChef-Beginner-To-Medium
5c4a55b909ba90976099cb81374a8cecb4c3ead3
[ "MIT" ]
1
2021-05-05T04:50:26.000Z
2021-05-05T04:50:26.000Z
BeginnerLevel/Puppy_and_Sum.cpp
AkashKumarSingh11032001/CodeChef-Beginner-To-Medium
5c4a55b909ba90976099cb81374a8cecb4c3ead3
[ "MIT" ]
null
null
null
BeginnerLevel/Puppy_and_Sum.cpp
AkashKumarSingh11032001/CodeChef-Beginner-To-Medium
5c4a55b909ba90976099cb81374a8cecb4c3ead3
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int sum_l(int d, int n) { int sum = 0; for (int i = 1; i <= n; i++) { sum += i; } if (d == 1) return sum; else return sum_l(d - 1, sum); } int main() { int T; cin >> T; int d, n; while (T--) { /...
13.233333
36
0.387909
AkashKumarSingh11032001
7ee2bf9dc25225b64833301e070299f46c913d02
8,700
cpp
C++
test-src/suite.cpp
cslauritsen/cslhomie
e30bca41406099233e877b44186124f337a78f0b
[ "MIT" ]
null
null
null
test-src/suite.cpp
cslauritsen/cslhomie
e30bca41406099233e877b44186124f337a78f0b
[ "MIT" ]
null
null
null
test-src/suite.cpp
cslauritsen/cslhomie
e30bca41406099233e877b44186124f337a78f0b
[ "MIT" ]
null
null
null
#include "homie.hpp" #include <algorithm> #include <gtest/gtest.h> #include <list> #include <string> using Msg = homie::Message; class TestDevice : public homie::Device { public: TestDevice() : homie::Device("testdevice", "1.0", "TestDevice") { extensions.push_back("com.planetlauritsen.test:0.0.1:[4.x]"); } ...
32.103321
80
0.595287
cslauritsen
7ee43efa331193d3f74507e4f2181196fe53e5b3
2,877
cpp
C++
Chapter07/Exercise7.01/EnemyCharacter.cpp
rutuja027/Game-Development-Projects-with-Unreal-Engine
e165ebd9404c76b9bdffa38d040dc640ba9b79ed
[ "MIT" ]
41
2020-11-14T07:18:27.000Z
2022-03-28T13:42:02.000Z
Chapter07/Exercise7.01/EnemyCharacter.cpp
fghaddar/Game-Development-Projects-with-Unreal-Engine
79a987c01dd672b6e8b95bdd15f1d17380044bf8
[ "MIT" ]
null
null
null
Chapter07/Exercise7.01/EnemyCharacter.cpp
fghaddar/Game-Development-Projects-with-Unreal-Engine
79a987c01dd672b6e8b95bdd15f1d17380044bf8
[ "MIT" ]
23
2021-01-20T07:05:38.000Z
2022-03-15T05:25:54.000Z
// Fill out your copyright notice in the Description page of Project Settings. #include "EnemyCharacter.h" #include "Engine/World.h" #include "Kismet/KismetMathLibrary.h" #include "Kismet/GameplayStatics.h" #include "TimerManager.h" #include "DodgeballProjectile.h" #include "DodgeballFunctionLibrary.h" #include "GameF...
27.4
121
0.748349
rutuja027
7ee54a9fdad3d6ed15d61a57eaaaffcb1f639c91
5,230
cpp
C++
TopQuarkAnalysis/TopJetCombination/bin/TtSemiLRJetComb_PurityLoop.cpp
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
TopQuarkAnalysis/TopJetCombination/bin/TtSemiLRJetComb_PurityLoop.cpp
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
TopQuarkAnalysis/TopJetCombination/bin/TtSemiLRJetComb_PurityLoop.cpp
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
#include <iostream> #include <cassert> #include <TROOT.h> #include <TSystem.h> #include <TFile.h> #include <TTree.h> #include <TBranch.h> #include <TCanvas.h> #include <TH1.h> #include <TH2.h> #include <TGraph.h> #include <TF1.h> #include <TFormula.h> #include <TStyle.h> #include <TKey.h> #include <vector> #include "FW...
33.741935
128
0.595029
ckamtsikis
7ee7df3da333a5477cdb0454d3dcc4f4274c090f
1,493
cc
C++
fundamental/array/binary_search/binary_search.cc
geek-yang/Algorism
fc1fa544b0a21459808797cdc9287b9c6b8f5358
[ "Apache-2.0" ]
null
null
null
fundamental/array/binary_search/binary_search.cc
geek-yang/Algorism
fc1fa544b0a21459808797cdc9287b9c6b8f5358
[ "Apache-2.0" ]
null
null
null
fundamental/array/binary_search/binary_search.cc
geek-yang/Algorism
fc1fa544b0a21459808797cdc9287b9c6b8f5358
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <vector> using namespace std; class Solution { /* Solution for leetcode question 704. For binary search, it is a must that the given input array is sorted in ascending order and there is no repeated element. */ public: int binary_search(vector<int>& nums, int target) { int l...
24.080645
54
0.513731
geek-yang
7ee82e3d0bdce9fd102a134ea79eba859025b141
2,297
cpp
C++
DXMPP/SASL/SASLMechanism.cpp
synergysky/dxmpp
8bd741993ee8cded5bfbc8cc739e7c7a81b3f203
[ "BSL-1.0" ]
17
2015-02-09T05:18:11.000Z
2021-10-10T04:13:11.000Z
DXMPP/SASL/SASLMechanism.cpp
synergysky/dxmpp
8bd741993ee8cded5bfbc8cc739e7c7a81b3f203
[ "BSL-1.0" ]
4
2017-04-07T13:55:10.000Z
2019-06-10T09:56:47.000Z
DXMPP/SASL/SASLMechanism.cpp
synergysky/dxmpp
8bd741993ee8cded5bfbc8cc739e7c7a81b3f203
[ "BSL-1.0" ]
24
2015-03-20T06:57:27.000Z
2020-06-18T15:29:22.000Z
// // SASLMechanism.cpp // DXMPP // // Created by Stefan Karlsson 2014 // Copyright (c) 2014 Deus ex Machinae. All rights reserved. // #include <DXMPP/SASL/SASLMechanism.hpp> #include <pugixml/pugixml.hpp> #include <DXMPP/JID.hpp> #include <boost/function.hpp> #include <boost/asio.hpp> #include <boost/asio/ssl.h...
30.223684
117
0.685677
synergysky
7eeb4e4e379d0b1a0d7ea46f9dd55e0a5bd079f2
2,070
hh
C++
construct/CSGNode.i.hh
celeritas-project/orange-port
9aa2d36984a24a02ed6d14688a889d4266f7b1af
[ "Apache-2.0", "MIT" ]
null
null
null
construct/CSGNode.i.hh
celeritas-project/orange-port
9aa2d36984a24a02ed6d14688a889d4266f7b1af
[ "Apache-2.0", "MIT" ]
null
null
null
construct/CSGNode.i.hh
celeritas-project/orange-port
9aa2d36984a24a02ed6d14688a889d4266f7b1af
[ "Apache-2.0", "MIT" ]
null
null
null
//---------------------------------*-C++-*-----------------------------------// /*! * \file construct/CSGNode.i.hh * \brief CSGNode inline method definitions * \note Copyright (c) 2021 Oak Ridge National Laboratory, UT-Battelle, LLC. */ //---------------------------------------------------------------------------...
28.356164
79
0.423671
celeritas-project
7ef367188a456625b49bda5a02720ea64be9e6c3
154
hpp
C++
src/LevelScheduler.hpp
hpcg-benchmark/KHPCG3.0
9591b148ea6552342a0471a932d2abf332e490e0
[ "BSD-3-Clause" ]
null
null
null
src/LevelScheduler.hpp
hpcg-benchmark/KHPCG3.0
9591b148ea6552342a0471a932d2abf332e490e0
[ "BSD-3-Clause" ]
null
null
null
src/LevelScheduler.hpp
hpcg-benchmark/KHPCG3.0
9591b148ea6552342a0471a932d2abf332e490e0
[ "BSD-3-Clause" ]
3
2019-03-05T16:46:25.000Z
2021-12-22T03:49:00.000Z
#ifndef LEVELSCHEDULER_HPP #define LEVELSCHEDULER_HPP #include "KokkosSetup.hpp" #include "SparseMatrix.hpp" int levelSchedule(SparseMatrix & A); #endif
19.25
36
0.811688
hpcg-benchmark
7ef95f706923464ac5e1417ba4876f4e19fb3860
9,520
cpp
C++
Turso3D/Resource/ResourceCache.cpp
cadaver/turso3d
5659df48b7915b95a351dfcad382b3ed653573f2
[ "Zlib" ]
29
2015-03-21T22:35:50.000Z
2022-01-25T04:13:46.000Z
Turso3D/Resource/ResourceCache.cpp
cadaver/turso3d
5659df48b7915b95a351dfcad382b3ed653573f2
[ "Zlib" ]
1
2016-10-23T16:20:14.000Z
2018-04-13T13:32:13.000Z
Turso3D/Resource/ResourceCache.cpp
cadaver/turso3d
5659df48b7915b95a351dfcad382b3ed653573f2
[ "Zlib" ]
8
2015-09-28T06:26:41.000Z
2020-12-28T14:29:51.000Z
// For conditions of distribution and use, see copyright notice in License.txt #include "../Debug/Log.h" #include "../Debug/Profiler.h" #include "../IO/File.h" #include "../IO/FileSystem.h" #include "Image.h" #include "JSONFile.h" #include "ResourceCache.h" #include "../Debug/DebugNew.h" namespace Turso3D { Resourc...
25.72973
113
0.590651
cadaver
7efc798cb18550e397bb9217c27981433a263feb
2,926
cpp
C++
Nemo/RayVisualize.cpp
cyj0912/Nemo
cd242e9d17863b461ccfd768122572d979c330e3
[ "BSD-2-Clause" ]
null
null
null
Nemo/RayVisualize.cpp
cyj0912/Nemo
cd242e9d17863b461ccfd768122572d979c330e3
[ "BSD-2-Clause" ]
null
null
null
Nemo/RayVisualize.cpp
cyj0912/Nemo
cd242e9d17863b461ccfd768122572d979c330e3
[ "BSD-2-Clause" ]
null
null
null
#include "RayVisualize.h" #include "EditorMaster.h" #include "imgui/imgui.h" namespace tc { FRayRenderComponentStaticData::FRayRenderComponentStaticData() { UserCount++; } FRayRenderComponentStaticData::~FRayRenderComponentStaticData() { UserCount--; } void FRayRenderComponentStaticData::RenderStaticInit() ...
26.6
84
0.671565
cyj0912
7d050d496c909dcc32e10482502e4f95b26da1fd
15,667
cpp
C++
robot.cpp
gregk27/StrongholdSim
bdb121ebf68b66b4e29a9d0ea3ad072161c818fb
[ "Zlib" ]
null
null
null
robot.cpp
gregk27/StrongholdSim
bdb121ebf68b66b4e29a9d0ea3ad072161c818fb
[ "Zlib" ]
null
null
null
robot.cpp
gregk27/StrongholdSim
bdb121ebf68b66b4e29a9d0ea3ad072161c818fb
[ "Zlib" ]
null
null
null
#include <stdio.h> #include <string> #include <cstring> #include <stdlib.h> #include <math.h> #include <limits.h> #include <sstream> #include "robot.h" #include "utils/utils.h" #include "field/field.h" #include "field/Fieldnode.h" #include "utils/Heap.h" #define BUFF_SIZE 256 // Some compilers may be missing M_PI, thi...
36.776995
198
0.579754
gregk27
7d0875a96111d7f90e98fb0e728852abd88e8cd9
26,348
hpp
C++
ccore/include/pyclustering/nnet/hhn.hpp
JosephChataignon/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
1,013
2015-01-26T19:50:14.000Z
2022-03-31T07:38:48.000Z
ccore/include/pyclustering/nnet/hhn.hpp
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
542
2015-01-20T16:44:32.000Z
2022-01-29T14:57:20.000Z
ccore/include/pyclustering/nnet/hhn.hpp
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
262
2015-03-19T07:28:12.000Z
2022-03-30T07:28:24.000Z
/*! @authors Andrei Novikov (pyclustering@yandex.ru) @date 2014-2020 @copyright BSD-3-Clause */ #pragma once #include <fstream> #include <memory> #include <ostream> #include <set> #include <sstream> #include <tuple> #include <vector> #include <unordered_map> #include <pyclustering/utils/metr...
35.847619
222
0.670981
JosephChataignon
7d08b77c8a8b9574512877ad3a2afc49d0029fda
8,399
cpp
C++
src/tracker/TrackerSystem_simulate.cpp
bitbloop/KalmanFilter
f1616134d6eeeab05afc56bb6b0a921fad106d7f
[ "MIT" ]
1
2022-03-29T15:55:01.000Z
2022-03-29T15:55:01.000Z
src/tracker/TrackerSystem_simulate.cpp
bitbloop/KalmanFilter
f1616134d6eeeab05afc56bb6b0a921fad106d7f
[ "MIT" ]
null
null
null
src/tracker/TrackerSystem_simulate.cpp
bitbloop/KalmanFilter
f1616134d6eeeab05afc56bb6b0a921fad106d7f
[ "MIT" ]
1
2022-03-18T07:29:55.000Z
2022-03-18T07:29:55.000Z
#include "TrackerSystem.h" #include "TrackerSystemInputHandler.h" /** Do the simulation loop. */ void TrackerSystem::Loop() { { // Fast forward the simulation at the start. math::time::Timer fast_forward_timer; FastForward(TIME_TO_FAST_FORWARD, FAST_FORWARD_STEP); double fast_forward_end_time{ fast_forward_ti...
40.970732
202
0.761162
bitbloop
7d09026a7e4deac6cb531e1c2eaef6b98de179d9
426
hxx
C++
include/configuration.hxx
nshcat/fractal
6be4c9684c25520b231375006a51428e37cf56bc
[ "MIT" ]
null
null
null
include/configuration.hxx
nshcat/fractal
6be4c9684c25520b231375006a51428e37cf56bc
[ "MIT" ]
null
null
null
include/configuration.hxx
nshcat/fractal
6be4c9684c25520b231375006a51428e37cf56bc
[ "MIT" ]
null
null
null
#pragma once #include <thread> #include <string> #include <types.hxx> namespace fractal { // Stores information that is configurable by the user struct configuration { dimension_type m_WindowSize{ 600, 400 }; ::std::size_t m_ThreadCount{ std::thread::hardware_concurrency() }; ::std::size_t m_Iterations{ 500...
20.285714
69
0.701878
nshcat
7d09f2089f6e0d9e664cbc5d6eff9fb32246f7da
1,077
cpp
C++
tests/specs/verboseRunnerTests.cpp
stephengaito/cUtils
635be6eaf989e474337d0384bde4a7faca7a69aa
[ "MIT" ]
null
null
null
tests/specs/verboseRunnerTests.cpp
stephengaito/cUtils
635be6eaf989e474337d0384bde4a7faca7a69aa
[ "MIT" ]
null
null
null
tests/specs/verboseRunnerTests.cpp
stephengaito/cUtils
635be6eaf989e474337d0384bde4a7faca7a69aa
[ "MIT" ]
null
null
null
#ifndef protected #define protected public #endif #include <cUtils/specs/verboseRunner.h> class SimpleTestClass { public: bool invariant(void) { throw AssertionFailure("invariant failed"); return false; } SimpleTestClass(void) { testInt = 1; }; ~SimpleTestClass(void) { ASSERT_INSIDE_DELE...
21.979592
72
0.70195
stephengaito
7d0a1d436efbf4f8ef8ccd9bf1a9c61fab3bce51
3,136
hpp
C++
src/backends/reference/workloads/Lstm.hpp
sahilbandar/armnn
249950645b7bc0593582182097c7e2f1d6d97442
[ "MIT" ]
856
2018-03-09T17:26:23.000Z
2022-03-24T21:31:33.000Z
src/backends/reference/workloads/Lstm.hpp
sahilbandar/armnn
249950645b7bc0593582182097c7e2f1d6d97442
[ "MIT" ]
623
2018-03-13T04:40:42.000Z
2022-03-31T09:45:17.000Z
src/backends/reference/workloads/Lstm.hpp
sahilbandar/armnn
249950645b7bc0593582182097c7e2f1d6d97442
[ "MIT" ]
284
2018-03-09T23:05:28.000Z
2022-03-29T14:42:28.000Z
// // Copyright © 2021 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // #pragma once #include <armnn/TypesUtils.hpp> #include <backendsCommon/WorkloadData.hpp> #include "Encoders.hpp" #include "Decoders.hpp" namespace armnn { void LstmImpl(const LstmDescriptor& descriptor, ...
50.580645
78
0.660714
sahilbandar
7d0a62159844187c30c4387853782473f2295c65
2,889
cpp
C++
modules/itmx/src/imagesources/DepthCorruptingImageSourceEngine.cpp
torrvision/spaint
9cac8100323ea42fe439f66407b832b88f72d2fd
[ "Unlicense" ]
197
2015-10-01T07:23:01.000Z
2022-03-23T03:02:31.000Z
modules/itmx/src/imagesources/DepthCorruptingImageSourceEngine.cpp
torrvision/spaint
9cac8100323ea42fe439f66407b832b88f72d2fd
[ "Unlicense" ]
16
2016-03-26T13:01:08.000Z
2020-09-02T09:13:49.000Z
modules/itmx/src/imagesources/DepthCorruptingImageSourceEngine.cpp
torrvision/spaint
9cac8100323ea42fe439f66407b832b88f72d2fd
[ "Unlicense" ]
62
2015-10-03T07:14:59.000Z
2021-08-31T08:58:18.000Z
/** * itmx: DepthCorruptingImageSourceEngine.cpp * Copyright (c) Torr Vision Group, University of Oxford, 2019. All rights reserved. */ #include "imagesources/DepthCorruptingImageSourceEngine.h" #include <ITMLib/Engines/ViewBuilding/Shared/ITMViewBuilder_Shared.h> using namespace ITMLib; namespace itmx { //#####...
30.734043
150
0.709242
torrvision
7d0a8f4b0c580058655d52745c5c9355d8295677
1,077
hpp
C++
Nacro/SDK/FN_AssetRegistry_structs.hpp
Milxnor/Nacro
eebabf662bbce6d5af41820ea0342d3567a0aecc
[ "BSD-2-Clause" ]
11
2021-08-08T23:25:10.000Z
2022-02-19T23:07:22.000Z
Nacro/SDK/FN_AssetRegistry_structs.hpp
Milxnor/Nacro
eebabf662bbce6d5af41820ea0342d3567a0aecc
[ "BSD-2-Clause" ]
1
2022-01-01T22:51:59.000Z
2022-01-08T16:14:15.000Z
Nacro/SDK/FN_AssetRegistry_structs.hpp
Milxnor/Nacro
eebabf662bbce6d5af41820ea0342d3567a0aecc
[ "BSD-2-Clause" ]
8
2021-08-09T13:51:54.000Z
2022-01-26T20:33:37.000Z
#pragma once // Fortnite (1.8) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif namespace SDK { //--------------------------------------------------------------------------- //Script Structs //--------------------------------------------------------------------------- // ScriptStruct AssetRegistry.AssetBundleEnt...
29.916667
161
0.457753
Milxnor
7d0d89f6393eaa16a5a92f1444eb5c9a73ae4abf
5,433
cpp
C++
src/HADemoService.cpp
mark1-umd/homebot
578c424b15331de32cc6b32a4cbf7ad27dbb5ffe
[ "BSD-3-Clause" ]
null
null
null
src/HADemoService.cpp
mark1-umd/homebot
578c424b15331de32cc6b32a4cbf7ad27dbb5ffe
[ "BSD-3-Clause" ]
null
null
null
src/HADemoService.cpp
mark1-umd/homebot
578c424b15331de32cc6b32a4cbf7ad27dbb5ffe
[ "BSD-3-Clause" ]
null
null
null
/** * @copyright (c) 2017 Mark R. Jenkins. All rights reserved. * @file HADemoService.cpp * * @author MJenkins, ENPM 808X Spring 2017 * @date May 10, 2017 - Creation * * @brief Provides a Home Automation "demo" service (sends HBBehavior goals to bot_actor action server) * * This service provides a way to manu...
45.655462
197
0.735689
mark1-umd
7d0dafd27bd571aad05a2041e55204df0ba0530f
1,033
cpp
C++
lintcode/maxproductsubarray.cpp
WIZARD-CXY/pl
22b7f5d81804f4e333d3cff6433364ba1a0ac7ef
[ "Apache-2.0" ]
1
2016-01-20T08:26:34.000Z
2016-01-20T08:26:34.000Z
lintcode/maxproductsubarray.cpp
WIZARD-CXY/pl
22b7f5d81804f4e333d3cff6433364ba1a0ac7ef
[ "Apache-2.0" ]
1
2015-10-21T05:38:17.000Z
2015-11-02T07:42:55.000Z
lintcode/maxproductsubarray.cpp
WIZARD-CXY/pl
22b7f5d81804f4e333d3cff6433364ba1a0ac7ef
[ "Apache-2.0" ]
null
null
null
class Solution { public: /** * @param nums: a vector of integers * @return: an integer */ int maxProduct(vector<int>& nums) { // write your code here int n=nums.size(); if(n==0){ return 0; } //maintain a mintemp incase...
27.918919
83
0.504356
WIZARD-CXY
7d14fd45738791225df985e91d6006f6f9a6b859
506
cpp
C++
LibSFML/SFText.cpp
Gotatang/FrameWorkIA
347b3b400a706427ecf7d5401e19ba4bd2bf18c3
[ "MIT" ]
null
null
null
LibSFML/SFText.cpp
Gotatang/FrameWorkIA
347b3b400a706427ecf7d5401e19ba4bd2bf18c3
[ "MIT" ]
null
null
null
LibSFML/SFText.cpp
Gotatang/FrameWorkIA
347b3b400a706427ecf7d5401e19ba4bd2bf18c3
[ "MIT" ]
null
null
null
/*Documentation */ /*@author : Quentin Ladevie */ /*@file : SFText.cpp */ /*@date : 29/12/2015 */ /*@brief : Fichier source des textes SFML */ #include "stdafx.h" #include "SFText.hpp" namespace DadEngine { SFText::SFText() { } SFText::~SFText() { } // Get/Set sf::Text& SFText::Get...
12.65
47
0.579051
Gotatang
7d18a518d116a68731c9290c5e73dbc3da4a6e63
4,271
cpp
C++
sqsgenerator/core/python/iteration.cpp
dgehringer/sqsgenerator
562697166a53f806629e8e1086b381871d9a675e
[ "MIT" ]
14
2019-11-16T10:34:04.000Z
2022-03-28T09:32:42.000Z
sqsgenerator/core/python/iteration.cpp
dgehringer/sqsgenerator
562697166a53f806629e8e1086b381871d9a675e
[ "MIT" ]
5
2019-11-21T05:54:07.000Z
2022-03-29T07:56:34.000Z
sqsgenerator/core/python/iteration.cpp
dgehringer/sqsgenerator
562697166a53f806629e8e1086b381871d9a675e
[ "MIT" ]
4
2020-09-28T14:28:23.000Z
2021-03-05T14:11:44.000Z
// // Created by dominik on 14.07.21. // #include "iteration.hpp" #include "helpers.hpp" namespace sqsgenerator::python { shuffling_bounds_t convert_bound_list(py::list &list) { shuffling_bounds_t bounds; if (list.is_none()) return bounds; for (int i = 0; i < len(list); i++) { ...
33.367188
114
0.648326
dgehringer
7d19f23c2faf5b3f9d71b6af1d29c7ceb6e27617
231
cxx
C++
Basic Programs/Some CP Problems/Watermelon4A.cxx
PrajaktaSathe/HacktoberFest2020
e84fc7a513afe3dd75c7c28db1866d7f5e6a8147
[ "MIT" ]
null
null
null
Basic Programs/Some CP Problems/Watermelon4A.cxx
PrajaktaSathe/HacktoberFest2020
e84fc7a513afe3dd75c7c28db1866d7f5e6a8147
[ "MIT" ]
null
null
null
Basic Programs/Some CP Problems/Watermelon4A.cxx
PrajaktaSathe/HacktoberFest2020
e84fc7a513afe3dd75c7c28db1866d7f5e6a8147
[ "MIT" ]
null
null
null
#include <iostream> #include <algorithm> #include <vector> using namespace std; int main(){ int w; cin >> w; if(w<=0) cout << "NO"; else if (w==2) cout << "NO"; else if(w%2==0) cout << "YES"; else cout << "NO"; return 0; }
16.5
31
0.575758
PrajaktaSathe
7d1b7ce2c254fa06311a95711a688e74733c4026
12,836
cpp
C++
code_reading/oceanbase-master/src/storage/memtable/mvcc/ob_mvcc_ctx.cpp
wangcy6/weekly_read
3a8837ee9cd957787ee1785e4066dd623e02e13a
[ "Apache-2.0" ]
null
null
null
code_reading/oceanbase-master/src/storage/memtable/mvcc/ob_mvcc_ctx.cpp
wangcy6/weekly_read
3a8837ee9cd957787ee1785e4066dd623e02e13a
[ "Apache-2.0" ]
null
null
null
code_reading/oceanbase-master/src/storage/memtable/mvcc/ob_mvcc_ctx.cpp
wangcy6/weekly_read
3a8837ee9cd957787ee1785e4066dd623e02e13a
[ "Apache-2.0" ]
1
2020-10-18T12:59:31.000Z
2020-10-18T12:59:31.000Z
/** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS...
33.868074
119
0.666874
wangcy6
7d1de2aa82658c1e9d7885b09bef962c94c361a3
13,908
cpp
C++
src/loss_functions.cpp
vishalbelsare/slise
a1917bcbea3e642c59977e7d3634c2a5b4d7cf39
[ "MIT" ]
5
2019-09-14T14:37:16.000Z
2022-01-28T16:55:40.000Z
src/loss_functions.cpp
vishalbelsare/slise
a1917bcbea3e642c59977e7d3634c2a5b4d7cf39
[ "MIT" ]
1
2022-01-31T11:31:12.000Z
2022-01-31T11:31:12.000Z
src/loss_functions.cpp
vishalbelsare/slise
a1917bcbea3e642c59977e7d3634c2a5b4d7cf39
[ "MIT" ]
1
2021-08-20T13:47:07.000Z
2021-08-20T13:47:07.000Z
/* Loss and gradient functions in Rcpp / RcppArmadillo. Usage in R: library(Rcpp) sourceCpp("loss_functions.cpp") Classes: (1) DataContainer - Contains the following fields: * data (matrix) * response (vector) * beta, epsilon, lambda (doubles) - Each...
34.944724
267
0.56845
vishalbelsare
7d1df48aacc2edd0b2dace2583a02e4ad527144d
10,603
cpp
C++
Cpp/SDK/BP_WeatherSystem_functions.cpp
MrManiak/Squad-SDK
742feb5991ae43d6f0cedd2d6b32b949923ca4f9
[ "Apache-2.0" ]
1
2020-08-15T08:31:55.000Z
2020-08-15T08:31:55.000Z
Cpp/SDK/BP_WeatherSystem_functions.cpp
MrManiak/Squad-SDK
742feb5991ae43d6f0cedd2d6b32b949923ca4f9
[ "Apache-2.0" ]
2
2020-08-15T08:43:56.000Z
2021-01-15T05:04:48.000Z
Cpp/SDK/BP_WeatherSystem_functions.cpp
MrManiak/Squad-SDK
742feb5991ae43d6f0cedd2d6b32b949923ca4f9
[ "Apache-2.0" ]
2
2020-08-10T12:05:42.000Z
2021-02-12T19:56:10.000Z
// Name: S, Version: b #include "../SDK.h" #ifdef _MSC_VER #pragma pack(push, 0x01) #endif /*!!HELPER_DEF!!*/ /*!!DEFINE!!*/ namespace UFT { //--------------------------------------------------------------------------- // Functions //--------------------------------------------------------------------------- // ...
29.129121
176
0.776761
MrManiak
7d1f4e81493991f0d241d267b3cd1944e8a0ff85
1,799
cpp
C++
devices/GNSS/NMEA/testsuite/src/RMCProcessorTest.cpp
acnagy/test-macchina.io
2b8d79d87d6cbd967ccbc9167ea583cbe78ad1b9
[ "Apache-2.0" ]
null
null
null
devices/GNSS/NMEA/testsuite/src/RMCProcessorTest.cpp
acnagy/test-macchina.io
2b8d79d87d6cbd967ccbc9167ea583cbe78ad1b9
[ "Apache-2.0" ]
null
null
null
devices/GNSS/NMEA/testsuite/src/RMCProcessorTest.cpp
acnagy/test-macchina.io
2b8d79d87d6cbd967ccbc9167ea583cbe78ad1b9
[ "Apache-2.0" ]
null
null
null
// // RMCProcessorTest.cpp // // $Id$ // // Copyright (c) 2010-2015, Applied Informatics Software Engineering GmbH. // All rights reserved. // // SPDX-License-Identifier: Apache-2.0 // #include "RMCProcessorTest.h" #include "IoT/GNSS/NMEA/SentenceDecoder.h" #include "Poco/DateTime.h" #include "Poco/Delegate.h" #inclu...
21.416667
84
0.710951
acnagy
7d24153e72beb069099d37518c6f00579d1007e1
5,736
cpp
C++
Source/Pineapple/Engine/Platform/FileSystem.cpp
JoshYaxley/Pineapple
490b0ccdfa26e2bb6fd9ec290b43b355462dd9ec
[ "Zlib" ]
11
2017-04-15T14:44:19.000Z
2022-02-04T13:16:04.000Z
Source/Pineapple/Engine/Platform/FileSystem.cpp
JoshYaxley/Pineapple
490b0ccdfa26e2bb6fd9ec290b43b355462dd9ec
[ "Zlib" ]
25
2017-04-19T12:48:42.000Z
2020-05-09T05:28:29.000Z
Source/Pineapple/Engine/Platform/FileSystem.cpp
JoshYaxley/Pineapple
490b0ccdfa26e2bb6fd9ec290b43b355462dd9ec
[ "Zlib" ]
1
2019-04-21T21:14:04.000Z
2019-04-21T21:14:04.000Z
#include <Pineapple/Engine/Platform/FileSystem.h> #include <Pineapple/Engine/Platform/Memory.h> #include <Pineapple/Engine/Util/Macro.h> #include <cstdio> #include <sys/stat.h> namespace { pa::FileResult openFile(FILE** file, const char* path, const char* mode) { #ifdef _MSC_VER fopen_s(file, path, mode); #else ...
23.508197
139
0.699965
JoshYaxley
7d26bf1357b6c0628786f1e9d3f6754960393458
959
cpp
C++
c++/Functor/Argument.cpp
taku-xhift/labo
89dc28fdb602c7992c6f31920714225f83a11218
[ "MIT" ]
null
null
null
c++/Functor/Argument.cpp
taku-xhift/labo
89dc28fdb602c7992c6f31920714225f83a11218
[ "MIT" ]
null
null
null
c++/Functor/Argument.cpp
taku-xhift/labo
89dc28fdb602c7992c6f31920714225f83a11218
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #define TRUE 1 #define FALSE 0 template<typename Container, typename Functor> void for_each(Container container_, Functor functor_) { for (typename Container::iterator ite = container_.begin(); ite != container_.end(); ++ite) { functor_(*ite); } } class ...
15.983333
95
0.632951
taku-xhift
7d2757e58b1c08c4fb66aafd0eef56b1bafaa302
1,139
cc
C++
runtime/onert/core/src/util/GeneralConfigSource.cc
periannath/ONE
61e0bdf2bcd0bc146faef42b85d469440e162886
[ "Apache-2.0" ]
255
2020-05-22T07:45:29.000Z
2022-03-29T23:58:22.000Z
runtime/onert/core/src/util/GeneralConfigSource.cc
periannath/ONE
61e0bdf2bcd0bc146faef42b85d469440e162886
[ "Apache-2.0" ]
5,102
2020-05-22T07:48:33.000Z
2022-03-31T23:43:39.000Z
runtime/onert/core/src/util/GeneralConfigSource.cc
periannath/ONE
61e0bdf2bcd0bc146faef42b85d469440e162886
[ "Apache-2.0" ]
120
2020-05-22T07:51:08.000Z
2022-02-16T19:08:05.000Z
/* * Copyright (c) 2019 Samsung Electronics Co., Ltd. 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 * * Unle...
24.76087
77
0.694469
periannath
7d2a71dd1670cd90b80409cf45bfba5f895e52d9
1,640
hpp
C++
src/neural_network/optimizer/Dropout.hpp
MatthieuHernandez/StraightforwardNeuralNetwork
e0b99a80bb1b3f76dcb08134aa0f1bc3e6b705d7
[ "Apache-2.0" ]
14
2019-08-29T07:20:19.000Z
2022-03-22T12:51:02.000Z
src/neural_network/optimizer/Dropout.hpp
MatthieuHernandez/StraightforwardNeuralNetwork
e0b99a80bb1b3f76dcb08134aa0f1bc3e6b705d7
[ "Apache-2.0" ]
7
2020-08-07T11:08:45.000Z
2021-05-08T17:11:12.000Z
src/neural_network/optimizer/Dropout.hpp
MatthieuHernandez/StraightforwardNeuralNetwork
e0b99a80bb1b3f76dcb08134aa0f1bc3e6b705d7
[ "Apache-2.0" ]
3
2020-08-07T10:53:52.000Z
2021-02-16T22:13:22.000Z
#pragma once #include <vector> #include <boost/serialization/unique_ptr.hpp> #include <boost/serialization/access.hpp> #include "LayerOptimizer.hpp" namespace snn::internal { class Dropout final : public LayerOptimizer { private: friend class boost::serialization::access; template <class Ar...
33.469388
99
0.686585
MatthieuHernandez
7d2aa9ccfbd1a966035a894fed92406364c154c9
204
cpp
C++
LixTalk-client/main.cpp
ZingLix/LixTalk-client
593ebf74ce64dedbc9eb109825e9abf864a5aaeb
[ "MIT" ]
null
null
null
LixTalk-client/main.cpp
ZingLix/LixTalk-client
593ebf74ce64dedbc9eb109825e9abf864a5aaeb
[ "MIT" ]
null
null
null
LixTalk-client/main.cpp
ZingLix/LixTalk-client
593ebf74ce64dedbc9eb109825e9abf864a5aaeb
[ "MIT" ]
null
null
null
#include "LixTalk.h" #include <QtWidgets/QApplication> #include <chrono> #include <iostream> int main(int argc, char *argv[]) { QApplication a(argc, argv); LixTalk w; w.show(); return a.exec(); }
12.75
33
0.676471
ZingLix
7d2ca683b07ed1e1b027d5368b418bded3002057
8,880
cpp
C++
src/display.cpp
milleniumbug/river_raid
992a6c85f838eb7e527b43cb54c6a5f2e6dc3c32
[ "MIT" ]
null
null
null
src/display.cpp
milleniumbug/river_raid
992a6c85f838eb7e527b43cb54c6a5f2e6dc3c32
[ "MIT" ]
null
null
null
src/display.cpp
milleniumbug/river_raid
992a6c85f838eb7e527b43cb54c6a5f2e6dc3c32
[ "MIT" ]
null
null
null
#include "stdafx.hpp" #include "utilities.hpp" #include "display.hpp" void Display::render(const Game& game) { SDL_Rect upper_rect = { 0, 0, static_cast<Uint16>(game_display_window_width), static_cast<Uint16>(game_display_window_height-80) }; SDL_Rect lower_rect = { 0, static_cast<Sint16>(game_display_wi...
40
130
0.715878
milleniumbug
7d2d7a43208e54bd51d3146d3f07b2a737c8db7c
1,745
cc
C++
test_hash.cc
pallas/libace
62477c78bd8848c80d91ffb311ad1c7708b655d7
[ "Zlib" ]
null
null
null
test_hash.cc
pallas/libace
62477c78bd8848c80d91ffb311ad1c7708b655d7
[ "Zlib" ]
null
null
null
test_hash.cc
pallas/libace
62477c78bd8848c80d91ffb311ad1c7708b655d7
[ "Zlib" ]
3
2018-06-04T12:52:51.000Z
2021-07-14T09:20:45.000Z
#include "hash.h" #include <cassert> #include <cstdlib> #include <string> #include <algorithm> int main(int, char*[]) { assert(lace::hash(0) == lace::hash(0)); assert(lace::hash<uint8_t>(1) == lace::hash<uint8_t>(1)); assert(lace::hash<uint16_t>(1) == lace::hash<uint16_t>(1)); assert(lace::hash<uint32_t>(1) =...
37.12766
103
0.603438
pallas
7d2ff077104f78ba5534f12a271add9d483f72e7
4,377
cpp
C++
NGS_testing/uParser/uTagTests.cpp
NGS-lib/NGSplusplus
7fa9fff2453917f24e9e35dab1f04a9be67f7f13
[ "BSL-1.0" ]
3
2015-11-23T14:24:06.000Z
2017-11-21T21:04:06.000Z
NGS_testing/uParser/uTagTests.cpp
NGS-lib/NGSplusplus
7fa9fff2453917f24e9e35dab1f04a9be67f7f13
[ "BSL-1.0" ]
null
null
null
NGS_testing/uParser/uTagTests.cpp
NGS-lib/NGSplusplus
7fa9fff2453917f24e9e35dab1f04a9be67f7f13
[ "BSL-1.0" ]
null
null
null
#include "uFormats.h" #include "uTags.h" #include "uRegion.h" #include <iostream> #include <string> #include <fstream> #include <vector> #include <time.h> #include <thread> #include <random> #include <string.h> #include "utility/utility.h" #include <time.h> #include <gtest/gtest.h> using namespace NGS; /**< Testing o...
33.930233
314
0.705278
NGS-lib
7d3013745deb7db393378c97e18ae3e8e2f42bc3
2,808
cpp
C++
tests/RaZ/Render/Shader.cpp
Sausty/RaZ
211cc1c0c4a7374520a3141fc069b7717e2e5e0f
[ "MIT" ]
339
2017-09-24T17:26:15.000Z
2022-03-20T13:25:39.000Z
tests/RaZ/Render/Shader.cpp
Sausty/RaZ
211cc1c0c4a7374520a3141fc069b7717e2e5e0f
[ "MIT" ]
24
2017-09-22T10:30:12.000Z
2022-01-05T21:32:20.000Z
tests/RaZ/Render/Shader.cpp
Sausty/RaZ
211cc1c0c4a7374520a3141fc069b7717e2e5e0f
[ "MIT" ]
24
2018-01-21T17:38:18.000Z
2022-02-02T11:16:22.000Z
#include "Catch.hpp" #include "RaZ/Render/Renderer.hpp" #include "RaZ/Render/Shader.hpp" TEST_CASE("Shader validity") { Raz::Renderer::recoverErrors(); // Flushing errors { Raz::VertexShader vertShader; CHECK_FALSE(Raz::Renderer::hasErrors()); CHECK(vertShader.isValid()); vertShader.destroy(); ...
25.297297
89
0.696581
Sausty
7d308e882bb9fc4f933e53fc01cf3594cbfdbd04
909
cpp
C++
tests/src/TestTimings.cpp
iotcoop/pfff
c8d7bbb271320c6a5088b3d5ca810a172555884d
[ "BSD-3-Clause" ]
7
2015-05-18T04:37:43.000Z
2021-05-07T23:19:40.000Z
tests/src/TestTimings.cpp
iotcoop/pfff
c8d7bbb271320c6a5088b3d5ca810a172555884d
[ "BSD-3-Clause" ]
3
2015-07-20T09:28:23.000Z
2015-07-20T09:31:51.000Z
tests/src/TestTimings.cpp
iotcoop/pfff
c8d7bbb271320c6a5088b3d5ca810a172555884d
[ "BSD-3-Clause" ]
1
2019-02-20T10:58:49.000Z
2019-02-20T10:58:49.000Z
// Timings for Poly1305Aes and Md5 on 100mb of data (doesn't really "test" anything, just outputs results) #include "config.h" #include <string.h> #include "PfffPostHashing.h" void timings(long len, const char* title) { Md5Hasher md5; Poly1305AesHasher paes(1); ostringstream o1, o2; UnitTest::...
25.971429
107
0.570957
iotcoop
7d3273f11efd2af5e0ee426d3c1790d19dd893b3
6,546
cpp
C++
brain/sw/components/brain-httpd/firmware_handler.cpp
tomseago/sparklemotion
572369ff67977be3626a1162d208a33dddd33e63
[ "MIT" ]
24
2019-03-21T23:17:24.000Z
2022-03-10T07:59:27.000Z
brain/sw/components/brain-httpd/firmware_handler.cpp
tomseago/sparklemotion
572369ff67977be3626a1162d208a33dddd33e63
[ "MIT" ]
138
2019-03-21T23:29:48.000Z
2022-03-22T05:01:47.000Z
brain/sw/components/brain-httpd/firmware_handler.cpp
tomseago/sparklemotion
572369ff67977be3626a1162d208a33dddd33e63
[ "MIT" ]
5
2019-06-09T00:50:38.000Z
2022-02-02T04:22:44.000Z
// // Created by Tom Seago on 2019-08-07. // #include "firmware_handler.h" #include "http_server.h" #include <string.h> #include <sys/param.h> #include <esp_ota_ops.h> /* Max length a file path can have on storage */ //#define FILE_PATH_MAX (ESP_VFS_PATH_MAX + CONFIG_SPIFFS_OBJ_NAME_LEN) #define SCRATCH_BUFSIZE 819...
33.228426
112
0.624809
tomseago
7d378c26fe0c1298e99d86382bebb7d058ff596f
5,774
cpp
C++
newbase/NFmiSnapShotInterface.cpp
fmidev/smartmet-library-newbase
12d93660c06e3c66a039ea75530bd9ca5daf7ab8
[ "MIT" ]
null
null
null
newbase/NFmiSnapShotInterface.cpp
fmidev/smartmet-library-newbase
12d93660c06e3c66a039ea75530bd9ca5daf7ab8
[ "MIT" ]
7
2017-01-17T10:46:33.000Z
2019-11-21T07:50:17.000Z
newbase/NFmiSnapShotInterface.cpp
fmidev/smartmet-library-newbase
12d93660c06e3c66a039ea75530bd9ca5daf7ab8
[ "MIT" ]
2
2017-01-17T07:33:28.000Z
2018-04-26T07:10:23.000Z
// ====================================================================== /*! * \file NFmiSnapShotInterface.cpp * \brief Implementation of class NFmiSnapShortInterface */ // ====================================================================== #include "NFmiSnapShotInterface.h" #include <macgyver/Exception.h> #inc...
24.995671
77
0.518358
fmidev
7d392cb87a83460a79a6304169facef98f988304
2,451
cpp
C++
test/test.cpp
AZMDDY/astar
49ea623e042181e29a3de17bf79ec872d104fe61
[ "MIT" ]
2
2020-10-20T00:03:49.000Z
2020-10-24T09:27:13.000Z
test/test.cpp
AZMDDY/astar
49ea623e042181e29a3de17bf79ec872d104fe61
[ "MIT" ]
null
null
null
test/test.cpp
AZMDDY/astar
49ea623e042181e29a3de17bf79ec872d104fe61
[ "MIT" ]
null
null
null
#include <iostream> #include <random> #include "point.hpp" #include "map.hpp" #include "astar.hpp" #include "play.hpp" using namespace astar; Point MapRandPoint(uint32_t h, uint32_t w) { std::random_device rd; std::mt19937 gen(rd()); std::uniform_int_distribution<> dis(0, h * w); auto res = dis(gen); ...
23.122642
87
0.485924
AZMDDY
7d3c01ed6da3271047049ba6a690530cb4932984
8,237
cpp
C++
src/zoneserver/service/cheat/CheatService.cpp
mark-online/server
ca24898e2e5a9ccbaa11ef1ade57bb25260b717f
[ "MIT" ]
null
null
null
src/zoneserver/service/cheat/CheatService.cpp
mark-online/server
ca24898e2e5a9ccbaa11ef1ade57bb25260b717f
[ "MIT" ]
null
null
null
src/zoneserver/service/cheat/CheatService.cpp
mark-online/server
ca24898e2e5a9ccbaa11ef1ade57bb25260b717f
[ "MIT" ]
null
null
null
#include "ZoneServerPCH.h" #include "CheatService.h" #include "../arena/ArenaService.h" #include "../../model/gameobject/EntityEvent.h" #include "../../model/gameobject/Entity.h" #include "../../model/gameobject/AbstractAnchor.h" #include "../../model/gameobject/ability/Cheatable.h" #include "../../model/gameobject/abi...
40.576355
115
0.613573
mark-online
7d3e45754d10d7f5a3906f9998026b41ba7b5b92
395
cpp
C++
FIGUREFUL/main.cpp
raafatabualazm/Competitive-Programming-Solutions
3c8c953e9597e64a77e804ba4d3881c8f0354c7a
[ "MIT" ]
null
null
null
FIGUREFUL/main.cpp
raafatabualazm/Competitive-Programming-Solutions
3c8c953e9597e64a77e804ba4d3881c8f0354c7a
[ "MIT" ]
null
null
null
FIGUREFUL/main.cpp
raafatabualazm/Competitive-Programming-Solutions
3c8c953e9597e64a77e804ba4d3881c8f0354c7a
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main() { map<pair<int, int>, string> code; string name; int m,n,k1,k2; scanf("%d", &m); while (m--) { cin >> k1 >> k2 >> name; code[make_pair(k1, k2)] = name; } scanf("%d", &n); while(n--) { scanf("%d%d", &k1, &k...
17.173913
47
0.463291
raafatabualazm
7d42aec8e09eca5b92cc375c7235b51ff9e93e21
4,171
hpp
C++
include/foxy/impl/session/async_read.impl.hpp
djarek/foxy
c5a008760505f670e599216e003f08963c32d201
[ "BSL-1.0" ]
null
null
null
include/foxy/impl/session/async_read.impl.hpp
djarek/foxy
c5a008760505f670e599216e003f08963c32d201
[ "BSL-1.0" ]
null
null
null
include/foxy/impl/session/async_read.impl.hpp
djarek/foxy
c5a008760505f670e599216e003f08963c32d201
[ "BSL-1.0" ]
null
null
null
// // Copyright (c) 2018-2019 Christian Mazakas (christian dot mazakas at gmail dot // com) // // 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) // // Official repository: https://github.com/LeonineKing1199/foxy // #...
28.37415
80
0.614481
djarek
7d43465d3369eb5606cc416932eb52bd194549d1
2,428
cpp
C++
src/container/Handle.cpp
Lyatus/L
0b594d722200d5ee0198b5d7b9ee72a5d1e12611
[ "Unlicense" ]
45
2018-08-24T12:57:38.000Z
2021-11-12T11:21:49.000Z
src/container/Handle.cpp
Lyatus/L
0b594d722200d5ee0198b5d7b9ee72a5d1e12611
[ "Unlicense" ]
null
null
null
src/container/Handle.cpp
Lyatus/L
0b594d722200d5ee0198b5d7b9ee72a5d1e12611
[ "Unlicense" ]
4
2019-09-16T02:48:42.000Z
2020-07-10T03:50:31.000Z
#include "Handle.h" #include <atomic> #include "../system/Memory.h" using namespace L; static constexpr uint32_t address_bits = 48; static constexpr uint64_t address_mask = (1ull << address_bits) - 1; static constexpr uint64_t version_bits = 16; static constexpr uint64_t version_mask = (1ull << version_bits) - 1; ...
31.128205
92
0.714168
Lyatus
7d4720b4431a56e6c41a15c12ad8269e2db1b0da
5,805
cpp
C++
assignment2/A2.cpp
Uncle-Road/CS205_cpp
95d1e73676e0db65da077d1e6dc5148a5fa9a9ab
[ "MIT" ]
null
null
null
assignment2/A2.cpp
Uncle-Road/CS205_cpp
95d1e73676e0db65da077d1e6dc5148a5fa9a9ab
[ "MIT" ]
null
null
null
assignment2/A2.cpp
Uncle-Road/CS205_cpp
95d1e73676e0db65da077d1e6dc5148a5fa9a9ab
[ "MIT" ]
null
null
null
#include <iostream> #include <fstream> #include <cstring> #include <cmath> #include <cstdlib> //support for exit() #include <algorithm> #include <vector> using namespace std; struct city { string name ; string country; double longitude; double latitude; }; const double R = 6371; const double PI = 3.1...
30.07772
125
0.549699
Uncle-Road
7d53e8ed09ee0737c09b0d0b08b4f8b18c49fcf2
3,441
cpp
C++
test/src/test_enumeration.cpp
ivangalkin/spotify-json
68cfafc488ffae851cca3f556b90129cffb26be1
[ "Apache-2.0" ]
192
2016-09-29T17:10:07.000Z
2022-03-22T15:22:48.000Z
test/src/test_enumeration.cpp
ivangalkin/spotify-json
68cfafc488ffae851cca3f556b90129cffb26be1
[ "Apache-2.0" ]
35
2016-10-03T16:57:12.000Z
2021-09-28T13:11:15.000Z
test/src/test_enumeration.cpp
ivangalkin/spotify-json
68cfafc488ffae851cca3f556b90129cffb26be1
[ "Apache-2.0" ]
47
2016-09-29T08:21:32.000Z
2022-03-19T10:05:43.000Z
/* * Copyright (c) 2015-2016 Spotify AB * * 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...
29.410256
106
0.718396
ivangalkin
7d56ac7349ed2b5615cc83a113f5172d15b50a05
7,431
cpp
C++
joystick/joystick_win32.cpp
matthew-macgregor/blitzplus_msvc2019
2a4b3b8b9f8e9b7ad2dc81bd80e08bb62c98bcdc
[ "Zlib" ]
69
2015-01-04T08:42:44.000Z
2022-03-13T09:56:24.000Z
joystick/joystick_win32.cpp
JamesLinus/blitzplus
a4615c064f99a70fdd131554b6f5e2241611aff9
[ "Zlib" ]
3
2016-09-24T04:13:55.000Z
2021-11-04T11:11:44.000Z
joystick/joystick_win32.cpp
JamesLinus/blitzplus
a4615c064f99a70fdd131554b6f5e2241611aff9
[ "Zlib" ]
29
2015-05-14T03:59:52.000Z
2020-07-25T02:46:25.000Z
#ifdef WIN32 #define WIN32_LEAN_AND_MEAN #define DIRECTINPUT_VERSION 0x500 #include <math.h> #include <dinput.h> #include <mmsystem.h> #include "joystick.h" static DIOBJECTDATAFORMAT c_rgodfDIJoystick[44] = { { &GUID_XAxis, 0, 0x80FFFF03, 256 },{ &GUID_YAxis, 4, 0x80FFFF03, 256 }, { &GUID_ZAxis, 8, 0x80FFFF03, ...
24.852843
93
0.635312
matthew-macgregor
7d56b7d969c5a80e6d5fe9afed169823d3ea9511
51,719
cpp
C++
ESMF/src/Infrastructure/Mesh/src/Moab/io/NCHelper.cpp
joeylamcy/gchp
0e1676300fc91000ecb43539cabf1f342d718fb3
[ "NCSA", "Apache-2.0", "MIT" ]
1
2018-07-05T16:48:58.000Z
2018-07-05T16:48:58.000Z
ESMF/src/Infrastructure/Mesh/src/Moab/io/NCHelper.cpp
joeylamcy/gchp
0e1676300fc91000ecb43539cabf1f342d718fb3
[ "NCSA", "Apache-2.0", "MIT" ]
1
2022-03-04T16:12:02.000Z
2022-03-04T16:12:02.000Z
ESMF/src/Infrastructure/Mesh/src/Moab/io/NCHelper.cpp
joeylamcy/gchp
0e1676300fc91000ecb43539cabf1f342d718fb3
[ "NCSA", "Apache-2.0", "MIT" ]
null
null
null
#include "NCHelper.hpp" #include "NCHelperEuler.hpp" #include "NCHelperFV.hpp" #include "NCHelperHOMME.hpp" #include "NCHelperMPAS.hpp" #include "NCHelperGCRM.hpp" #include <sstream> #include "MBTagConventions.hpp" #ifdef WIN32 #ifdef size_t #undef size_t #endif #endif namespace moab { NCHelper* NCHelper::get_nc_h...
40.884585
187
0.646977
joeylamcy
7d5b6bc46dca279363db254f7ec569c81fbdf343
801
cpp
C++
Competitive Programming/counting_valleys.cpp
darnoceloc/Algorithms
bc455cc00d9405493c951b8ea3132e615a49c9ee
[ "MIT" ]
null
null
null
Competitive Programming/counting_valleys.cpp
darnoceloc/Algorithms
bc455cc00d9405493c951b8ea3132e615a49c9ee
[ "MIT" ]
null
null
null
Competitive Programming/counting_valleys.cpp
darnoceloc/Algorithms
bc455cc00d9405493c951b8ea3132e615a49c9ee
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include <limits> #include <fstream> // Complete the countingValleys function below. int countingValleys(int n, std::string s) { int elevation = 0; int valleys = 0; for(int i = 0; i < n; i++){ if(elevation == 0 && s[i] == 'D'){ valleys += 1; ...
19.536585
71
0.503121
darnoceloc
7d603fbc768f522484dd1870294162a515fa6ce7
1,990
cpp
C++
PraktiskieDarbi/praktiskaisDarbs1.cpp
ElizaGulbe/MIprogramma_darbi
4b1e027afe939317046d82e99d65a4d22d84651e
[ "MIT" ]
null
null
null
PraktiskieDarbi/praktiskaisDarbs1.cpp
ElizaGulbe/MIprogramma_darbi
4b1e027afe939317046d82e99d65a4d22d84651e
[ "MIT" ]
null
null
null
PraktiskieDarbi/praktiskaisDarbs1.cpp
ElizaGulbe/MIprogramma_darbi
4b1e027afe939317046d82e99d65a4d22d84651e
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include <sstream> using namespace std; float computeAvgValue(int arr[10]){ float sum = 0; for (int i = 0; i <= 9; i++) { sum += arr[i]; } float average = sum/10; return average; } float findBiggest(float arr[10]) { float curBiggest = arr[0]; ...
22.359551
115
0.51608
ElizaGulbe
7d60c646d8121c85bd5c9787487373c9855e66da
1,848
cpp
C++
frameworks/runtime-src/Classes/lua-binding/manual/lua_cocos2dx_plugin_manual.cpp
edwardzhou/ddz-client
ed5db2b625cc55192027ffd69e0ec5f342a40222
[ "MIT" ]
5
2018-01-22T13:00:11.000Z
2021-02-20T04:24:30.000Z
frameworks/runtime-src/Classes/lua-binding/manual/lua_cocos2dx_plugin_manual.cpp
edwardzhou/ddz-client
ed5db2b625cc55192027ffd69e0ec5f342a40222
[ "MIT" ]
null
null
null
frameworks/runtime-src/Classes/lua-binding/manual/lua_cocos2dx_plugin_manual.cpp
edwardzhou/ddz-client
ed5db2b625cc55192027ffd69e0ec5f342a40222
[ "MIT" ]
5
2018-01-10T00:40:29.000Z
2021-08-22T14:12:44.000Z
#include "lua_cocos2dx_plugin_manual.hpp" #include "PluginManager.h" #include "PluginProtocol.h" #include "ProtocolAnalytics.h" #include "PluginParam.h" #include "tolua_fix.h" #include "LuaBasicConversions.h" int tolua_Cocos2d_plugin_PluginProtocol_callFuncWithParam00(lua_State* tolua_S) { int argc = 0; cocos2...
24.315789
125
0.6829
edwardzhou
7d629a2a0ec8fc39bc991f5e0e713bd7433d5e1a
2,122
cpp
C++
src/person.cpp
arctech-training-worldline-cpp/HospitalManagementDemo
a553c9fa523ac1308564e424ce996a676557d91f
[ "MIT" ]
7
2021-07-04T18:18:02.000Z
2022-02-20T14:29:23.000Z
src/person.cpp
arctech-training-worldline-cpp/HospitalManagementDemo
a553c9fa523ac1308564e424ce996a676557d91f
[ "MIT" ]
null
null
null
src/person.cpp
arctech-training-worldline-cpp/HospitalManagementDemo
a553c9fa523ac1308564e424ce996a676557d91f
[ "MIT" ]
2
2021-11-08T13:30:34.000Z
2021-11-16T02:57:26.000Z
using namespace std; #include <vector> #include <string> #include <iostream> #include <sstream> #include <fstream> #include "./../include/global.hh" #include "./../include/person.hh" person::person() { id = -1; } void person::addPerson(int16_t minAge, int16_t maxAge) { //getting basic details of the person fr...
30.314286
134
0.494816
arctech-training-worldline-cpp
7d667e5944be9ad5c6921f9e298ff28bd8beec5d
3,161
cpp
C++
project3D/GameObject.cpp
nandos13/Shadercpp
404f2ab8d3b32073a54945081d74fac46bdd0178
[ "MIT" ]
null
null
null
project3D/GameObject.cpp
nandos13/Shadercpp
404f2ab8d3b32073a54945081d74fac46bdd0178
[ "MIT" ]
null
null
null
project3D/GameObject.cpp
nandos13/Shadercpp
404f2ab8d3b32073a54945081d74fac46bdd0178
[ "MIT" ]
null
null
null
#include "GameObject.h" #include "Application3D.h" #include <limits> glm::mat4 GameObject::getMatrixTransform() { // Define radian float rad = 3.14f / 180.0f; glm::mat4 transform = glm::translate(m_translation) * glm::rotate(m_rotationEuler.z * rad, glm::vec3(0, 0, 1)) * glm::rotate(m_rotationEuler.y * rad, glm...
25.288
93
0.693135
nandos13
7d670b5a68f4d4dcb4a193ed68aa5994f9d91229
4,690
hpp
C++
order.hpp
chaosmw/youdex
78e1c20548183b7c9b30ec924ff0711c029123ef
[ "MIT" ]
1
2020-08-29T09:53:29.000Z
2020-08-29T09:53:29.000Z
order.hpp
chaosmw/youdex
78e1c20548183b7c9b30ec924ff0711c029123ef
[ "MIT" ]
null
null
null
order.hpp
chaosmw/youdex
78e1c20548183b7c9b30ec924ff0711c029123ef
[ "MIT" ]
null
null
null
#pragma once #include <eosiolib/eosio.hpp> #include <eosiolib/asset.hpp> #include "exchange_types.hpp" using namespace eosio; using namespace std; namespace dex { // caution: the order is deliberately designd for matching routine, do not change it!!! // see get_range enum order_type: uint8_t { RE...
34.740741
114
0.550746
chaosmw
de0b48cde928efbec3fb7c938ab78bb8048be253
2,923
inl
C++
include/bit/math/detail/vector.inl
bitwizeshift/bit-math
e29d6dfe3cefecd08c3215bc4578b5903b269d86
[ "MIT" ]
3
2020-04-05T01:14:21.000Z
2021-10-03T09:34:48.000Z
include/bit/math/detail/vector.inl
bitwizeshift/bit-math
e29d6dfe3cefecd08c3215bc4578b5903b269d86
[ "MIT" ]
1
2017-10-15T20:41:30.000Z
2017-10-15T20:41:30.000Z
include/bit/math/detail/vector.inl
bitwizeshift/bit-math
e29d6dfe3cefecd08c3215bc4578b5903b269d86
[ "MIT" ]
null
null
null
#ifndef BIT_MATH_DETAIL_VECTOR_INL #define BIT_MATH_DETAIL_VECTOR_INL #ifndef BIT_MATH_VECTOR_HPP # error "vector.inl included without first including declaration header vector.hpp" #endif //---------------------------------------------------------------------------- // Detail: Vector Casting //----------------------...
23.959016
83
0.567225
bitwizeshift
de10e86dc85a333467721695dbb3f08c264feceb
6,008
cpp
C++
cpp/oneapi/dal/algo/pca/backend/gpu/train_kernel_cov_dpc.cpp
dmitrii-kriukov/oneDAL
e962159893ffabdcc601f999f998ce2373c3ce71
[ "Apache-2.0" ]
null
null
null
cpp/oneapi/dal/algo/pca/backend/gpu/train_kernel_cov_dpc.cpp
dmitrii-kriukov/oneDAL
e962159893ffabdcc601f999f998ce2373c3ce71
[ "Apache-2.0" ]
1
2021-05-04T13:03:30.000Z
2021-05-04T13:03:30.000Z
cpp/oneapi/dal/algo/pca/backend/gpu/train_kernel_cov_dpc.cpp
dmitrii-kriukov/oneDAL
e962159893ffabdcc601f999f998ce2373c3ce71
[ "Apache-2.0" ]
null
null
null
/******************************************************************************* * Copyright 2020-2021 Intel Corporation * * 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.apa...
44.176471
98
0.672437
dmitrii-kriukov
de110e5302019a7f0ee9f279285372df74156109
6,765
cpp
C++
src/extern/inventor/lib/database/src/so/nodes/SoCallback.cpp
OpenXIP/xip-libraries
9f0fef66038b20ff0c81c089d7dd0038e3126e40
[ "Apache-2.0" ]
2
2020-05-21T07:06:07.000Z
2021-06-28T02:14:34.000Z
src/extern/inventor/lib/database/src/so/nodes/SoCallback.cpp
OpenXIP/xip-libraries
9f0fef66038b20ff0c81c089d7dd0038e3126e40
[ "Apache-2.0" ]
null
null
null
src/extern/inventor/lib/database/src/so/nodes/SoCallback.cpp
OpenXIP/xip-libraries
9f0fef66038b20ff0c81c089d7dd0038e3126e40
[ "Apache-2.0" ]
6
2016-03-21T19:53:18.000Z
2021-06-08T18:06:03.000Z
/* * * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved. * * This library 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; either * version 2.1 of the License, or (at your opti...
25.820611
77
0.520177
OpenXIP
de15d2c7b0480eb3b56ab7b2643030ca7564e831
66,245
cpp
C++
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/widget/CalendarView.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
7
2017-07-13T10:34:54.000Z
2021-04-16T05:40:35.000Z
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/widget/CalendarView.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
null
null
null
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/widget/CalendarView.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
9
2017-07-13T12:33:20.000Z
2021-06-19T02:46:48.000Z
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // 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 // // ...
33.105947
119
0.66091
jingcao80
de1856ea478f66b6f47989f7c6f155c6fd50efce
156
cpp
C++
codeforces/656A.cpp
Shisir/Online-Judge
e58c32eeb7ca18a19cc2a83ef016f9c3b124370a
[ "MIT" ]
null
null
null
codeforces/656A.cpp
Shisir/Online-Judge
e58c32eeb7ca18a19cc2a83ef016f9c3b124370a
[ "MIT" ]
null
null
null
codeforces/656A.cpp
Shisir/Online-Judge
e58c32eeb7ca18a19cc2a83ef016f9c3b124370a
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main() { long long a,res=1; cin>>a; for(int i=1; i<=a; i++)res*=2; cout<< res<<endl;; return 0; }
13
31
0.576923
Shisir
de1bb525850a824194013273eabe3229005d69fd
2,784
cc
C++
unit_test/serializer.cc
yannstad/reinforcement_learning
29e5a4f786ed81ed2c9bc64ae6b14bdbf18b99e4
[ "MIT" ]
63
2018-10-22T17:11:02.000Z
2021-12-08T17:26:41.000Z
unit_test/serializer.cc
yannstad/reinforcement_learning
29e5a4f786ed81ed2c9bc64ae6b14bdbf18b99e4
[ "MIT" ]
160
2018-10-09T02:34:57.000Z
2022-03-31T15:43:48.000Z
unit_test/serializer.cc
yannstad/reinforcement_learning
29e5a4f786ed81ed2c9bc64ae6b14bdbf18b99e4
[ "MIT" ]
36
2018-10-08T21:44:05.000Z
2022-03-22T16:20:03.000Z
#define BOOST_TEST_DYN_LINK #ifdef STAND_ALONE # define BOOST_TEST_MODULE Main #endif #include <boost/test/unit_test.hpp> #include "ranking_event.h" #include "utility/data_buffer.h" #include "logger/flatbuffer_allocator.h" using namespace reinforcement_learning; using IBuffer = utility::data_buffer; template<type...
29.935484
193
0.761135
yannstad
de1c1a9cd315d35bd625c7f15bde751057a7371d
2,918
cpp
C++
kinesis-video-pic/src/mkvgen/tst/AudioCpdParserTest.cpp
nsharma098/amazon-kinesis-video-streams-producer-sdk-cpp
e3b63724494b16e00079027ccc232e8914731d66
[ "Apache-2.0" ]
1
2021-04-29T08:08:10.000Z
2021-04-29T08:08:10.000Z
kinesis-video-pic/src/mkvgen/tst/AudioCpdParserTest.cpp
jonmnick/aws-kinesis-cpp-sdk
f7d4a0fa67081780808f5b1e4cc8b97697953a72
[ "Apache-2.0" ]
null
null
null
kinesis-video-pic/src/mkvgen/tst/AudioCpdParserTest.cpp
jonmnick/aws-kinesis-cpp-sdk
f7d4a0fa67081780808f5b1e4cc8b97697953a72
[ "Apache-2.0" ]
null
null
null
#include "MkvgenTestFixture.h" class AudioCpdParserTest : public MkvgenTestBase { }; TEST_F(AudioCpdParserTest, audioCpdParser_InvalidInput) { BYTE cpd[] = {0x00, 0x00}; UINT32 cpdSize = 2; DOUBLE samplingFrequency; UINT16 channelConfig; EXPECT_NE(STATUS_SUCCESS, getSamplingFreqAndChannelFromAacC...
42.911765
154
0.789239
nsharma098
de1e527e8357da26a93b7b50f7bfc04c6d250be5
18,329
cpp
C++
game/server/tfo/npc_monster.cpp
BerntA/tfo-code
afa3ea06a64cbbf7a9370b214ea5e80e69d9d7a1
[ "MIT" ]
13
2016-04-05T23:23:16.000Z
2022-03-20T11:06:04.000Z
game/server/tfo/npc_monster.cpp
BerntA/tfo-code
afa3ea06a64cbbf7a9370b214ea5e80e69d9d7a1
[ "MIT" ]
null
null
null
game/server/tfo/npc_monster.cpp
BerntA/tfo-code
afa3ea06a64cbbf7a9370b214ea5e80e69d9d7a1
[ "MIT" ]
4
2016-04-05T23:23:19.000Z
2021-05-16T05:09:46.000Z
//========= Copyright Bernt Andreas Eide, All rights reserved. ============// // // Purpose: Custom Monster NPC Entity - Allows parsing of unique stuff. Parses npc scripts in resource/data/npc // //=============================================================================// #include "cbase.h" #include "ai_basenpc.h...
31.171769
136
0.540564
BerntA
de23c456db92799c7cdedb8b84d59f75e6bbe413
843
cpp
C++
matrix/matrix_power.cpp
ShinyaKato/competitive-programming-utils
53ae76cdc427dd816a7a11147d80a172fb16bcc3
[ "Apache-2.0" ]
1
2017-12-16T14:08:49.000Z
2017-12-16T14:08:49.000Z
matrix/matrix_power.cpp
ShinyaKato/competitive-programming-utils
53ae76cdc427dd816a7a11147d80a172fb16bcc3
[ "Apache-2.0" ]
2
2018-07-03T17:19:18.000Z
2018-07-03T17:23:10.000Z
matrix/matrix_power.cpp
ShinyaKato/competitive-programming-utils
53ae76cdc427dd816a7a11147d80a172fb16bcc3
[ "Apache-2.0" ]
null
null
null
#include <bits/stdc++.h> #define REP(i, a, n) for(ll i = ((ll) a); i < ((ll) n); i++) #define MOD 1000000007LL using namespace std; typedef long long ll; typedef vector<ll> vec; typedef vector<vec> mat; mat mul(mat &A, mat &B) { mat C(A.size(), vector<ll>(B[0].size())); REP(i, 0, A.size()) REP(j, 0, B[0].size(...
24.085714
82
0.487544
ShinyaKato
de277bc9d7ad1f58f4c3022b424e8ff2938a7779
2,589
cpp
C++
NeoOnnx/src/Operators/TransposeOperator.cpp
sergesk/neoml
cca05584ef3d892cb00d23a105bac6674b3d50ef
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
NeoOnnx/src/Operators/TransposeOperator.cpp
sergesk/neoml
cca05584ef3d892cb00d23a105bac6674b3d50ef
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
NeoOnnx/src/Operators/TransposeOperator.cpp
sergesk/neoml
cca05584ef3d892cb00d23a105bac6674b3d50ef
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
/* Copyright © 2017-2020 ABBYY Production LLC 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, ...
34.52
112
0.696022
sergesk