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
d7cab4290fd9cb791c12090c7fc00f7aa545ca0d
9,719
cpp
C++
src/csapex_qt/src/view/widgets/profiling_widget.cpp
ICRA-2018/csapex
8ee83b9166d0281a4923184cce67b4a55f273ea2
[ "BSD-3-Clause" ]
21
2016-09-02T15:33:25.000Z
2021-06-10T06:34:39.000Z
src/csapex_qt/src/view/widgets/profiling_widget.cpp
ICRA-2018/csapex
8ee83b9166d0281a4923184cce67b4a55f273ea2
[ "BSD-3-Clause" ]
null
null
null
src/csapex_qt/src/view/widgets/profiling_widget.cpp
ICRA-2018/csapex
8ee83b9166d0281a4923184cce67b4a55f273ea2
[ "BSD-3-Clause" ]
10
2016-10-12T00:55:17.000Z
2020-04-24T19:59:02.000Z
/// HEADER #include <csapex/view/widgets/profiling_widget.h> /// COMPONENT #include <csapex/profiling/timer.h> #include <csapex/core/settings.h> #include <csapex/view/utility/color.hpp> #include <csapex/utility/assert.h> /// SYSTEM #include <QPainter> #include <QBoxLayout> #include <QGraphicsProxyWidget> #include <QP...
29.362538
172
0.612306
ICRA-2018
d7d080faccb264568645a750a7c61846d360ffa9
3,473
cpp
C++
tests/src/vector3.cpp
TheVice/lantern
ae968506925f6e28498d0b54850030c47e6a7031
[ "MIT" ]
35
2015-03-23T11:06:04.000Z
2022-03-11T08:57:34.000Z
tests/src/vector3.cpp
TheVice/lantern
ae968506925f6e28498d0b54850030c47e6a7031
[ "MIT" ]
15
2015-01-04T16:23:54.000Z
2015-11-22T14:50:22.000Z
tests/src/vector3.cpp
TheVice/lantern
ae968506925f6e28498d0b54850030c47e6a7031
[ "MIT" ]
4
2015-02-23T05:23:18.000Z
2018-03-13T08:26:05.000Z
#include "assert_utils.h" using namespace lantern; TEST(vector3, constructors) { vector3f const v{2.0f, -4.0f, 15.0f}; assert_floats_near(v.x, 2.0f); assert_floats_near(v.y, -4.0f); assert_floats_near(v.z, 15.0f); vector3f const v_default{}; assert_floats_near(v_default.x, 0.0f); assert_floats_near(v_default....
24.457746
74
0.700259
TheVice
d7d5af0a31086d6685e228f798ce8c379217fb9f
5,796
cpp
C++
src/Codecs/FieldInstructionTemplateRef.cpp
divyang4481/quickfast
339c78e96a1f63b74c139afa1a3c9a07afff7b5f
[ "BSD-3-Clause" ]
198
2015-04-26T08:06:18.000Z
2022-03-13T01:31:50.000Z
src/Codecs/FieldInstructionTemplateRef.cpp
divyang4481/quickfast
339c78e96a1f63b74c139afa1a3c9a07afff7b5f
[ "BSD-3-Clause" ]
15
2015-07-07T19:47:08.000Z
2022-02-04T05:56:51.000Z
src/Codecs/FieldInstructionTemplateRef.cpp
divyang4481/quickfast
339c78e96a1f63b74c139afa1a3c9a07afff7b5f
[ "BSD-3-Clause" ]
96
2015-04-24T15:19:43.000Z
2022-03-28T13:15:11.000Z
// Copyright (c) 2009, Object Computing, Inc. // All rights reserved. // See the file license.txt for licensing information. #include <Common/QuickFASTPch.h> #include "FieldInstructionTemplateRef.h" #include <Codecs/DataSource.h> #include <Codecs/Decoder.h> #include <Codecs/Encoder.h> #include <Codecs/TemplateRegistry....
27.469194
120
0.751725
divyang4481
d7d5e668e009539186a7bf809782bebf24a1d711
12,208
cpp
C++
src/eepp/window/input.cpp
SpartanJ/eepp
21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac
[ "MIT" ]
37
2020-01-20T06:21:24.000Z
2022-03-21T17:44:50.000Z
src/eepp/window/input.cpp
SpartanJ/eepp
21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac
[ "MIT" ]
null
null
null
src/eepp/window/input.cpp
SpartanJ/eepp
21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac
[ "MIT" ]
9
2019-03-22T00:33:07.000Z
2022-03-01T01:35:59.000Z
#include <eepp/window/input.hpp> namespace EE { namespace Window { Input::Input( EE::Window::Window* window, JoystickManager* joystickmanager ) : mWindow( window ), mJoystickManager( joystickmanager ), mPressTrigger( 0 ), mReleaseTrigger( 0 ), mLastPressTrigger( 0 ), mClickTrigger( 0 ), mDoubleClickTrigger( 0 ...
25.275362
95
0.67808
SpartanJ
d7db0fc0df14b69dbe22ac5c3f43af6344cc1f5c
168
cpp
C++
src/floaxietest.cpp
erthink/dtoa-benchmark
c6fd6b27def365a1f1c9bfb4d822e39f0aa776a7
[ "MIT" ]
7
2020-02-26T18:25:10.000Z
2021-11-15T17:38:06.000Z
src/floaxietest.cpp
erthink/dtoa-benchmark
c6fd6b27def365a1f1c9bfb4d822e39f0aa776a7
[ "MIT" ]
null
null
null
src/floaxietest.cpp
erthink/dtoa-benchmark
c6fd6b27def365a1f1c9bfb4d822e39f0aa776a7
[ "MIT" ]
1
2021-08-17T00:13:30.000Z
2021-08-17T00:13:30.000Z
#include "floaxie/ftoa.h" #include "test.h" char *dtoa_floaxie(double v, char *const buffer) { floaxie::ftoa(v, buffer); return buffer; } REGISTER_TEST(floaxie);
16.8
50
0.708333
erthink
d7de92f7efdcef7140dfe6fcc4148438538581e2
5,013
cpp
C++
src/render/ttf.cpp
dulingzhi/D2RMH
f3c079fb72234bfba84c9c5251f1c82fc8e5cdb2
[ "MIT" ]
125
2021-10-31T05:55:12.000Z
2022-03-30T09:15:29.000Z
src/render/ttf.cpp
dulingzhi/D2RMH
f3c079fb72234bfba84c9c5251f1c82fc8e5cdb2
[ "MIT" ]
93
2021-10-31T11:19:37.000Z
2022-03-31T13:25:54.000Z
src/render/ttf.cpp
dulingzhi/D2RMH
f3c079fb72234bfba84c9c5251f1c82fc8e5cdb2
[ "MIT" ]
57
2021-10-30T08:45:05.000Z
2022-03-30T04:11:21.000Z
/* * Copyright (c) 2021 Soar Qin<soarchin@gmail.com> * * Use of this source code is governed by an MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. */ #include "ttf.h" #include "d2r/storage.h" #include "cfg.h" #ifdef USE_FREETYPE #include <ft2build.h> #incl...
28.322034
114
0.605426
dulingzhi
d7e38fd8c85ec902c6c9dd60c72ef64e9bcee8c5
444
hpp
C++
src/chm/Node.hpp
Matej-Chmel/hnsw-index
9a8791bb403764736c789d892cbd347a4268cadb
[ "Apache-2.0", "MIT" ]
null
null
null
src/chm/Node.hpp
Matej-Chmel/hnsw-index
9a8791bb403764736c789d892cbd347a4268cadb
[ "Apache-2.0", "MIT" ]
null
null
null
src/chm/Node.hpp
Matej-Chmel/hnsw-index
9a8791bb403764736c789d892cbd347a4268cadb
[ "Apache-2.0", "MIT" ]
null
null
null
#pragma once #include "types.hpp" namespace chm { struct Node { float distance; uint id; Node(); Node(const float distance, const uint id); }; struct FarComparator { constexpr bool operator()(const Node& a, const Node& b) const noexcept { return a.distance < b.distance; } }; struct NearComparato...
17.76
74
0.671171
Matej-Chmel
d7e3c7d3e4babcef8b44757146fcb1d9b0edfd8c
1,083
cpp
C++
cpp/vector_int.cpp
DinahLin/learning
c0dc6b52e8154bcb687b721e717c117ab3b94dbb
[ "MIT" ]
null
null
null
cpp/vector_int.cpp
DinahLin/learning
c0dc6b52e8154bcb687b721e717c117ab3b94dbb
[ "MIT" ]
null
null
null
cpp/vector_int.cpp
DinahLin/learning
c0dc6b52e8154bcb687b721e717c117ab3b94dbb
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> std::vector<int>::const_iterator searchVector(std::vector<int> a, int element) { std::vector<int>::const_iterator it; for (it = a.begin(); it != a.end(); it ++) { if (*it == element) { return it; } } } int main() { std::vector<int> a; if (a.empty()) { std::cout <<...
18.355932
78
0.530009
DinahLin
d7e5573d8ab59f6092a5e10ccc15f1b30a404ad0
2,778
cpp
C++
Dynamic Programming/1388. Pizza With 3n Slices.cpp
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
138
2020-02-08T05:25:26.000Z
2021-11-04T11:59:28.000Z
Dynamic Programming/1388. Pizza With 3n Slices.cpp
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
null
null
null
Dynamic Programming/1388. Pizza With 3n Slices.cpp
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
24
2021-01-02T07:18:43.000Z
2022-03-20T08:17:54.000Z
class Solution { public: int maxSizeSlices(vector<int>& slices) { int n = (int)slices.size() / 3; auto l1 = vector<int>(slices.begin(), slices.end()-1); auto l2 = vector<int>(slices.begin()+1, slices.end()); return max(linear(l1, n), linear(l2, n)); } private: int linear...
30.866667
144
0.472282
beckswu
d7e778d8ab89217efe141e814e4fa4e028aca9ad
1,334
cpp
C++
vold/ResponseCode.cpp
Keneral/asystem
df12381b72ef3d629c8efc61100cc8c714195320
[ "Unlicense" ]
3
2015-08-31T15:24:31.000Z
2020-04-24T20:31:29.000Z
vold/ResponseCode.cpp
Keneral/asystem
df12381b72ef3d629c8efc61100cc8c714195320
[ "Unlicense" ]
null
null
null
vold/ResponseCode.cpp
Keneral/asystem
df12381b72ef3d629c8efc61100cc8c714195320
[ "Unlicense" ]
3
2015-07-29T07:17:15.000Z
2020-11-04T06:55:37.000Z
/* * Copyright (C) 2008 The Android 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
31.023256
75
0.697151
Keneral
d7ea00131c4e6d3f3bf13af770967d7781082afa
1,056
cpp
C++
src/compiler/sources/expressions/Exp.cpp
MYnimef/dsl
9f07337423b37b41c76e4b1be4eb15cd5534260b
[ "MIT" ]
null
null
null
src/compiler/sources/expressions/Exp.cpp
MYnimef/dsl
9f07337423b37b41c76e4b1be4eb15cd5534260b
[ "MIT" ]
null
null
null
src/compiler/sources/expressions/Exp.cpp
MYnimef/dsl
9f07337423b37b41c76e4b1be4eb15cd5534260b
[ "MIT" ]
null
null
null
// // Created by Ivan Markov on 05.04.2022. // #include "Exp.h" Exp::Exp(const ExpressionType& type, const int& lineNum): type(type), lineNum(lineNum) {} Exp::~Exp() = default; ExpressionType Exp::getType() const { return type; } bool Exp::isOperation() const { return (isUnaryOperation() || isBinaryOperati...
23.466667
57
0.561553
MYnimef
d7f0d2a8c68755f62d9d89138341d21c77cd1dd1
3,402
cc
C++
source/tool/KBGeoLine.cc
KUNPL/KEBII
7feba36bb2ac2812c0dec21f5e3f3a0dcc1c8e39
[ "MIT" ]
null
null
null
source/tool/KBGeoLine.cc
KUNPL/KEBII
7feba36bb2ac2812c0dec21f5e3f3a0dcc1c8e39
[ "MIT" ]
null
null
null
source/tool/KBGeoLine.cc
KUNPL/KEBII
7feba36bb2ac2812c0dec21f5e3f3a0dcc1c8e39
[ "MIT" ]
null
null
null
#include "KBGeoLine.hh" #include <cmath> ClassImp(KBGeoLine) KBGeoLine::KBGeoLine() { } KBGeoLine::KBGeoLine(Double_t x1, Double_t y1, Double_t z1, Double_t x2, Double_t y2, Double_t z2) { SetLine(x1, y1, z1, x2, y2, z2); } KBGeoLine::KBGeoLine(TVector3 pos1, TVector3 pos2) { SetLine(pos1.X(), pos1.Y(), pos1.Z(...
27.216
121
0.643739
KUNPL
d7f32cd980e29af9a690fda373f355e03eb79ec6
33,935
cpp
C++
uBuffer.cpp
kareltucek/shedit
a899d36435a871b475ff89fc5403d7354b651bde
[ "MIT" ]
null
null
null
uBuffer.cpp
kareltucek/shedit
a899d36435a871b475ff89fc5403d7354b651bde
[ "MIT" ]
null
null
null
uBuffer.cpp
kareltucek/shedit
a899d36435a871b475ff89fc5403d7354b651bde
[ "MIT" ]
null
null
null
//--------------------------------------------------------------------------- #pragma hdrstop #include "uBuffer.h" #include "uSpan.h" #include "uIter.h" #include "uMark.h" #include "uFormat.h" #include <stack> #include <wchar.h> #include <iostream> #include <fstream> #include <string> #include <wstring.h> #include <...
29.128755
184
0.530043
kareltucek
d7f9ee390cbb1d4b12e21f659cbff13d682d1dae
672
cpp
C++
oss_src/process/process_util_unix.cpp
parquette/ParFrame
0522aa6afdf529b3e91505b70e918f1500aae886
[ "BSD-3-Clause" ]
null
null
null
oss_src/process/process_util_unix.cpp
parquette/ParFrame
0522aa6afdf529b3e91505b70e918f1500aae886
[ "BSD-3-Clause" ]
null
null
null
oss_src/process/process_util_unix.cpp
parquette/ParFrame
0522aa6afdf529b3e91505b70e918f1500aae886
[ "BSD-3-Clause" ]
null
null
null
/** * Copyright (C) 2015 Dato, Inc. * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. */ #include <unistd.h> #include <sys/types.h> #include <signal.h> #include <process/process_util.hpp> namespace graphlab { size_t g...
18.162162
64
0.660714
parquette
d7fb1cc82956b9f73e177b8ca3716c8cacb62a91
523
hpp
C++
src/core/bsdfs/ForwardBsdf.hpp
chaosink/tungsten
88ea02044dbaf20472a8173b6752460b50c096d8
[ "Apache-2.0", "Unlicense" ]
1,655
2015-01-12T13:05:37.000Z
2022-03-31T13:37:57.000Z
src/core/bsdfs/ForwardBsdf.hpp
westlicht/tungsten
457c65226734784cb4d03a0d4846bc6797ab9bb7
[ "Apache-2.0", "Unlicense" ]
65
2015-01-13T08:34:28.000Z
2021-06-08T05:07:58.000Z
src/core/bsdfs/ForwardBsdf.hpp
westlicht/tungsten
457c65226734784cb4d03a0d4846bc6797ab9bb7
[ "Apache-2.0", "Unlicense" ]
190
2015-01-12T14:53:05.000Z
2022-03-30T17:30:00.000Z
#ifndef FORWARDBSDF_HPP_ #define FORWARDBSDF_HPP_ #include "Bsdf.hpp" namespace Tungsten { class Scene; struct SurfaceScatterEvent; class ForwardBsdf : public Bsdf { public: ForwardBsdf(); virtual rapidjson::Value toJson(Allocator &allocator) const override; virtual bool sample(SurfaceScatterEvent &ev...
20.115385
73
0.76673
chaosink
d7fb76a43f122cdda7d6a1f692704583fe9954f2
422
cxx
C++
Arbol de Huffman/main.cxx
juanmsl/TADS
675daf70b9636beeab3979b3ec5abcf4e3990160
[ "MIT" ]
null
null
null
Arbol de Huffman/main.cxx
juanmsl/TADS
675daf70b9636beeab3979b3ec5abcf4e3990160
[ "MIT" ]
null
null
null
Arbol de Huffman/main.cxx
juanmsl/TADS
675daf70b9636beeab3979b3ec5abcf4e3990160
[ "MIT" ]
1
2019-09-30T23:35:18.000Z
2019-09-30T23:35:18.000Z
# include <iostream> # include "HuffmanTree.h" int main(int argv, char *args[]) { try { HuffmanTree h; h.encoudeFile("Prueba_1.txt", "PruebaBinario_1"); h.decodeToFile("PruebaBinario_1", "PruebaSalida_1.txt"); h.encoudeFile("Prueba_2.txt", "PruebaBinario_2"); h.decodeToFile("PruebaBinario_2", "...
22.210526
59
0.654028
juanmsl
cc0293474904fa80db6e8f3d320b42ebdd7b8168
1,328
cpp
C++
books/tech/cpp/std-11/a_williams-cpp_concurrency_in_action/code/ch_06-lock-based_concurrent_data_structures/05-single_threaded_queue-02/main.cpp
ordinary-developer/education
1b1f40dacab873b28ee01dfa33a9bd3ec4cfed58
[ "MIT" ]
1
2017-05-04T08:23:46.000Z
2017-05-04T08:23:46.000Z
books/techno/cpp/_upper-intermediate/cpp_concurrency_in_action_a_williams/code/ch_6-LOCK-BASED_CONCURRENT_DATA_STRUCTURES/05-single_threaded_queue-02/main.cpp
ordinary-developer/lin_education
13d65b20cdbc3e5467b2383e5c09c73bbcdcb227
[ "MIT" ]
null
null
null
books/techno/cpp/_upper-intermediate/cpp_concurrency_in_action_a_williams/code/ch_6-LOCK-BASED_CONCURRENT_DATA_STRUCTURES/05-single_threaded_queue-02/main.cpp
ordinary-developer/lin_education
13d65b20cdbc3e5467b2383e5c09c73bbcdcb227
[ "MIT" ]
null
null
null
#include <memory> #include <cstdint> #include <iostream> template <typename T> class queue { public: queue() = default; queue(const queue&) = delete; queue& operator= (const queue&) = delete; std::shared_ptr<T> try_pop() { if (!_head) return std::shared_...
24.145455
68
0.48494
ordinary-developer
cc0803492f94bc15cf3f28417105f9dbe1a31b06
1,263
cpp
C++
OurDB_Database/console.cpp
TheRakeshPurohit/OurDB-Database
d819c7192c0cfb6d7ab23306a43391f86d2ed364
[ "MIT" ]
12
2021-08-17T06:11:14.000Z
2021-09-22T12:02:07.000Z
OurDB_Database/console.cpp
TheRakeshPurohit/OurDB-Database
d819c7192c0cfb6d7ab23306a43391f86d2ed364
[ "MIT" ]
null
null
null
OurDB_Database/console.cpp
TheRakeshPurohit/OurDB-Database
d819c7192c0cfb6d7ab23306a43391f86d2ed364
[ "MIT" ]
1
2021-08-17T16:01:16.000Z
2021-08-17T16:01:16.000Z
#include "OurDB_Database.h" #include <iostream> #include <string> #include "variables/query_variables.h" #include "global_functions/global_function.h" #include "global_functions/SyntaxCheckerForResultString.h" using namespace std; template<class Element, class Container> bool selectChecker(const Element & s ,const Co...
20.704918
73
0.487728
TheRakeshPurohit
cc08aaa5decc358516e85fe5a6431431c595cc07
1,321
cpp
C++
main/lexer_test.cpp
hahmed1/LightningRod
07acd45dc9889214527377cab586658393d82455
[ "MIT" ]
null
null
null
main/lexer_test.cpp
hahmed1/LightningRod
07acd45dc9889214527377cab586658393d82455
[ "MIT" ]
null
null
null
main/lexer_test.cpp
hahmed1/LightningRod
07acd45dc9889214527377cab586658393d82455
[ "MIT" ]
null
null
null
#include "lexer.lex.h" #include <iostream> #include <string> #include <fstream> #include <streambuf> #include "stream.h" #include "TreeBuilder.h" #include "TokenNode.h" #include "PageViewModel.h" std::string semantic_print(int id) { if(id == OPEN){ return "open"; } else if (id == CLOSE){ return "close"; } e...
18.605634
64
0.686601
hahmed1
cc0d738336f228576dc302a5e84928537e957f76
397
cpp
C++
pointers/pointer_array3.cpp
sahilduhan/Learn-C-plus-plus
80dba2ee08b36985deb297293a0318da5d6ace94
[ "RSA-MD" ]
null
null
null
pointers/pointer_array3.cpp
sahilduhan/Learn-C-plus-plus
80dba2ee08b36985deb297293a0318da5d6ace94
[ "RSA-MD" ]
null
null
null
pointers/pointer_array3.cpp
sahilduhan/Learn-C-plus-plus
80dba2ee08b36985deb297293a0318da5d6ace94
[ "RSA-MD" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main() { int row = 2, col =3; int arr[row][col] = { {1, 2, 3}, {4, 5, 6} }; for (int i = 0; i < row; i++) { for (int j = 0; j < col; j++) { cout...
18.904762
39
0.302267
sahilduhan
cc0f2012e27fca09d621d05ffb8865f6bc1405eb
312
hxx
C++
include/Nest/Core/Containers/ConcurrentQueue.hxx
mscofield0/nest
2815cec3d13d869a6e8e3bc86af3d12127966521
[ "MIT" ]
null
null
null
include/Nest/Core/Containers/ConcurrentQueue.hxx
mscofield0/nest
2815cec3d13d869a6e8e3bc86af3d12127966521
[ "MIT" ]
2
2021-11-24T21:40:07.000Z
2021-11-25T14:25:36.000Z
include/Nest/Core/Containers/ConcurrentQueue.hxx
mscofield0/nest
2815cec3d13d869a6e8e3bc86af3d12127966521
[ "MIT" ]
null
null
null
#ifndef NEST_CORE_CONTAINERS_CONCURRENTQUEUE_HXX #define NEST_CORE_CONTAINERS_CONCURRENTQUEUE_HXX #include "concurrentqueue.h" namespace Nest::Core { template <typename T> using ConcurrentQueue = moodycamel::ConcurrentQueue<T>; } // namespace Nest::Core #endif // NEST_CORE_CONTAINERS_CONCURRENTQUEUE_HXX
24
55
0.823718
mscofield0
cc0f5d1ea3818984aa03c1cfef2ac17eecc3c570
9,126
cc
C++
nnvm/src/top/nn/nn.cc
CynthiaProtector/helo
ad9e22363a92389b3fa519ecae9061c6ead28b05
[ "Apache-2.0" ]
22
2019-02-20T12:42:20.000Z
2021-12-25T06:09:46.000Z
src/nnvm/src/top/nn/nn.cc
tashby/turicreate
7f07ce795833d0c56c72b3a1fb9339bed6d178d1
[ "BSD-3-Clause" ]
4
2019-04-01T07:36:04.000Z
2022-03-24T03:11:26.000Z
src/nnvm/src/top/nn/nn.cc
tashby/turicreate
7f07ce795833d0c56c72b3a1fb9339bed6d178d1
[ "BSD-3-Clause" ]
7
2019-03-20T16:04:37.000Z
2021-04-28T18:40:11.000Z
/*! * Copyright (c) 2017 by Contributors * \file nn.cc * \brief Property def of nn operators. */ #include <nnvm/op.h> #include <nnvm/node.h> #include <nnvm/op_attr_types.h> #include <nnvm/top/nn.h> #include "./nn_common.h" #include "../op_common.h" #include "../elemwise_op_common.h" namespace nnvm { namespace top...
35.235521
108
0.714881
CynthiaProtector
cc10656121cb3e8de00d767dd7942719d62525f7
17,670
cpp
C++
tao/x11/typecodefactory/typecodefactory_i.cpp
ClausKlein/taox11
669cfd2d0be258722c7ee32b23f2e5cb83e4520f
[ "MIT" ]
20
2019-11-13T12:31:20.000Z
2022-02-27T12:30:39.000Z
tao/x11/typecodefactory/typecodefactory_i.cpp
ClausKlein/taox11
669cfd2d0be258722c7ee32b23f2e5cb83e4520f
[ "MIT" ]
46
2019-11-15T20:40:18.000Z
2022-03-31T19:04:36.000Z
tao/x11/typecodefactory/typecodefactory_i.cpp
ClausKlein/taox11
669cfd2d0be258722c7ee32b23f2e5cb83e4520f
[ "MIT" ]
5
2019-11-12T15:00:50.000Z
2022-01-17T17:33:05.000Z
/** * @file typecodefactory_i.cpp * @author Marijke Henstmengel * * @brief CORBA C++11 typecodefactory library * * @copyright Copyright (c) Remedy IT Expertise BV */ #include "tao/x11/tao_corba.h" #include "tao/ORB_Core.h" #include "tao/TypeCodeFactory_Adapter.h" #include "tao/IFR_Client/IFR_BasicC.h" #in...
31.780576
112
0.656027
ClausKlein
cc19667b98931369ea7a4fab1b5c8dd9a680bd79
729
cpp
C++
libgluk/application.cpp
dlarudgus20/civview-gl
dfa357b2dbd48a8d679da54f6fa1fcceadec1d19
[ "MIT" ]
null
null
null
libgluk/application.cpp
dlarudgus20/civview-gl
dfa357b2dbd48a8d679da54f6fa1fcceadec1d19
[ "MIT" ]
null
null
null
libgluk/application.cpp
dlarudgus20/civview-gl
dfa357b2dbd48a8d679da54f6fa1fcceadec1d19
[ "MIT" ]
null
null
null
#include "./gluk/application.h" namespace gluk { application::application() { if (glfwInit() != GL_TRUE) throw std::runtime_error("failed to initialize glfw"); glfwSetErrorCallback([](int err, const char *desc) { std::cerr << "GLFW error [" << err << "] :" << desc << st...
22.090909
77
0.522634
dlarudgus20
cc1e15cf47efdb2cede022faf94750164e7fd72c
533
cpp
C++
codeforces/5c.longest-regular-bracket-sequence/5c.cpp
KayvanMazaheri/acm
aeb05074bc9b9c92f35b6a741183da09a08af85d
[ "MIT" ]
3
2018-01-19T14:09:23.000Z
2018-02-01T00:40:55.000Z
codeforces/5c.longest-regular-bracket-sequence/5c.cpp
KayvanMazaheri/acm
aeb05074bc9b9c92f35b6a741183da09a08af85d
[ "MIT" ]
null
null
null
codeforces/5c.longest-regular-bracket-sequence/5c.cpp
KayvanMazaheri/acm
aeb05074bc9b9c92f35b6a741183da09a08af85d
[ "MIT" ]
null
null
null
#include <iostream> #include <algorithm> #include <string> using namespace std; const int MAX_N = 1e6 + 123; int dp[MAX_N]; int main() { string s; cin >> s; for(int i=1; i<s.size(); i++) if (s[i] == ')') { if (s[i-1] == '(') dp[i] = dp[i-2] + 2; else if (s[i - 1 - dp[i-1]] == '(') dp[i] = dp[i -...
19.740741
70
0.49531
KayvanMazaheri
cc1f7a9cab85aad288212c09c2635da754cd0e62
2,736
hpp
C++
library/header/internals/util/ThreadScheduler.hpp
Wittmaxi/ZENeural
05bf98f94c1a032406f353c94486b626b8c8dd6a
[ "MIT" ]
10
2018-08-15T00:36:51.000Z
2019-10-27T20:59:18.000Z
library/header/internals/util/ThreadScheduler.hpp
MaximilianJugendForscht/ZENeural
05bf98f94c1a032406f353c94486b626b8c8dd6a
[ "MIT" ]
1
2018-08-15T01:06:29.000Z
2018-08-15T16:44:52.000Z
library/header/internals/util/ThreadScheduler.hpp
MaximilianJugendForscht/ZENeural
05bf98f94c1a032406f353c94486b626b8c8dd6a
[ "MIT" ]
4
2018-08-09T16:27:03.000Z
2018-11-17T07:49:32.000Z
/* 2018 Maximilian Wittmer wittmaxi@linux.pizza https://github.com/Wittmaxi/ZENeural/blob/master/LICENSE */ #pragma once #include <thread> #include <vector> #include <functional> #include <queue> #include <mutex> namespace ZNN { namespace ASYNC { struct FunctionBase { virtual void callFunction() = 0; virtua...
20.885496
93
0.587354
Wittmaxi
cc2fe21ee8f4dc0bf12fbd7dff5ef57789ee4d67
504
hpp
C++
deps/boost/include/boost/align/detail/assume_aligned_clang.hpp
kindlychung/mediasoup-sfu-cpp
f69d2f48f7edbf4f0c57244280a47bea985f39cf
[ "Apache-2.0" ]
995
2018-06-22T10:39:18.000Z
2022-03-25T01:22:14.000Z
deps/boost/include/boost/align/detail/assume_aligned_clang.hpp
kindlychung/mediasoup-sfu-cpp
f69d2f48f7edbf4f0c57244280a47bea985f39cf
[ "Apache-2.0" ]
32
2018-06-23T14:19:37.000Z
2022-03-29T10:20:37.000Z
deps/boost/include/boost/align/detail/assume_aligned_clang.hpp
kindlychung/mediasoup-sfu-cpp
f69d2f48f7edbf4f0c57244280a47bea985f39cf
[ "Apache-2.0" ]
172
2018-06-22T11:12:00.000Z
2022-03-29T07:44:33.000Z
/* Copyright 2015 Glen Joseph Fernandes (glenjofe@gmail.com) Distributed under the Boost Software License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_ALIGN_DETAIL_ASSUME_ALIGNED_CLANG_HPP #define BOOST_ALIGN_DETAIL_ASSUME_ALIGNED_CLANG_HPP #if __has_builtin(__builtin_assume_aligned...
26.526316
69
0.779762
kindlychung
cc32f04fbae6efe6c32ad7777c69af913cca1c40
819
cpp
C++
Uncategorized/tc18summerf.cpp
crackersamdjam/DMOJ-Solutions
97992566595e2c7bf41b5da9217d8ef61bdd1d71
[ "MIT" ]
null
null
null
Uncategorized/tc18summerf.cpp
crackersamdjam/DMOJ-Solutions
97992566595e2c7bf41b5da9217d8ef61bdd1d71
[ "MIT" ]
null
null
null
Uncategorized/tc18summerf.cpp
crackersamdjam/DMOJ-Solutions
97992566595e2c7bf41b5da9217d8ef61bdd1d71
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define MM 1000002 using namespace std; typedef long long ll; typedef pair<int, int> pii; int main(){ string first, second; cin >> first; cin >> second; first.erase(0, first.find_first_not_of('0')); second.erase(0, second.find_first_not_of('0')); if (first.l...
26.419355
68
0.487179
crackersamdjam
cc33d52c44c38de5fb0a7218d461ca674c1e9e64
31,839
hpp
C++
net2/tcp.hpp
hirakuni45/RX
3fb91bfc8d5282cde7aa00b8bd37f4aad32582d0
[ "BSD-3-Clause" ]
56
2015-06-04T14:15:38.000Z
2022-03-01T22:58:49.000Z
net2/tcp.hpp
duybang140494/RX
7fed06a9d8295f4504e8a08fa589d4a52792095f
[ "BSD-3-Clause" ]
30
2019-07-27T11:03:14.000Z
2021-12-14T09:59:57.000Z
net2/tcp.hpp
duybang140494/RX
7fed06a9d8295f4504e8a08fa589d4a52792095f
[ "BSD-3-Clause" ]
15
2017-06-24T11:33:39.000Z
2021-12-07T07:26:58.000Z
#pragma once //=========================================================================// /*! @file @brief TCP Protocol @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2017 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45/RX/blob/master/LICENSE *...
27.542388
148
0.541537
hirakuni45
cc3979b71afdc6d82ed885cac5b57285b18e31f8
580
cpp
C++
Basic Algorithms/Two Pointers/Running from both ends of array/Two Sum Format/boats_to_save_people.cpp
khushisinha20/Data-Structures-and-Algorithms
114d365d03f7ba7175eefeace281972820a7fc76
[ "Apache-2.0" ]
null
null
null
Basic Algorithms/Two Pointers/Running from both ends of array/Two Sum Format/boats_to_save_people.cpp
khushisinha20/Data-Structures-and-Algorithms
114d365d03f7ba7175eefeace281972820a7fc76
[ "Apache-2.0" ]
null
null
null
Basic Algorithms/Two Pointers/Running from both ends of array/Two Sum Format/boats_to_save_people.cpp
khushisinha20/Data-Structures-and-Algorithms
114d365d03f7ba7175eefeace281972820a7fc76
[ "Apache-2.0" ]
null
null
null
#include <bits/stdc++.h> #include <vector> using namespace std; class Solution { public: int numRescueBoats(vector<int>& people, int limit) { sort(people.begin(), people.end()); int left = 0; int right = people.size() - 1; int min_boats = 0; while (left <= right) { ...
24.166667
56
0.451724
khushisinha20
cc3a33a41314773062800c870465aba1f38d18ac
1,940
cpp
C++
engine/platform/rpi/src/rpi_platform_monitor.cpp
aeon-engine/aeon-engine
9efcf83985110c36ebf0964bd4f76b261f2f6717
[ "MIT" ]
12
2017-02-25T17:14:15.000Z
2021-08-02T13:39:18.000Z
engine/platform/rpi/src/rpi_platform_monitor.cpp
aeon-engine/aeon-engine
9efcf83985110c36ebf0964bd4f76b261f2f6717
[ "MIT" ]
31
2017-02-23T06:59:44.000Z
2017-05-21T11:49:10.000Z
engine/platform/rpi/src/rpi_platform_monitor.cpp
aeon-engine/aeon-engine
9efcf83985110c36ebf0964bd4f76b261f2f6717
[ "MIT" ]
5
2017-05-02T05:34:53.000Z
2020-05-19T06:57:50.000Z
/* * Copyright (c) 2012-2018 Robin Degen * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge,...
28.115942
68
0.734021
aeon-engine
cc3ed7865327ff6a26edb24f42f308bdb808151b
2,419
cc
C++
tensorflow/compiler/xla/python/py_traceback.cc
MatthiasHertel80/tensorflow
390cccbcda0f8dfc070ed7040f218827a0ced875
[ "Apache-2.0" ]
11
2018-01-03T15:11:09.000Z
2021-04-13T05:47:27.000Z
tensorflow/compiler/xla/python/py_traceback.cc
MatthiasHertel80/tensorflow
390cccbcda0f8dfc070ed7040f218827a0ced875
[ "Apache-2.0" ]
88
2020-11-24T08:18:10.000Z
2022-03-25T20:28:30.000Z
tensorflow/compiler/xla/python/py_traceback.cc
MatthiasHertel80/tensorflow
390cccbcda0f8dfc070ed7040f218827a0ced875
[ "Apache-2.0" ]
10
2018-07-31T10:56:21.000Z
2019-10-07T08:05:21.000Z
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
39.655738
80
0.674246
MatthiasHertel80
cc43f50bb8f8a00a6219d3bfce8497b45e68f65a
2,044
cpp
C++
src/Editor/Toolbar.cpp
WriterOfAlicrow/SOTE
79d320c36cc88f5ebb556c3e5506cd1e2a034cf6
[ "MIT" ]
null
null
null
src/Editor/Toolbar.cpp
WriterOfAlicrow/SOTE
79d320c36cc88f5ebb556c3e5506cd1e2a034cf6
[ "MIT" ]
null
null
null
src/Editor/Toolbar.cpp
WriterOfAlicrow/SOTE
79d320c36cc88f5ebb556c3e5506cd1e2a034cf6
[ "MIT" ]
null
null
null
#include "Toolbar.h" #include "Editor.h" using namespace CEGUI; Toolbar::Toolbar() { float height = 32; _window = static_cast<CEGUI::Menubar*>(CEGUI::WindowManager::getSingleton().createWindow("EditorLook/Menubar", "Toolbar") ); _window->setPosition(CEGUI::UVector2(UDim(0,0), UDim(0,0))); _window->setSize(CEGU...
29.623188
159
0.722603
WriterOfAlicrow
cc47819a2e958f32f316246e0d33894eb2b1f0b9
260
cpp
C++
YorozuyaGSLib/source/_pt_result_punishment_zocl.cpp
lemkova/Yorozuya
f445d800078d9aba5de28f122cedfa03f26a38e4
[ "MIT" ]
29
2017-07-01T23:08:31.000Z
2022-02-19T10:22:45.000Z
YorozuyaGSLib/source/_pt_result_punishment_zocl.cpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
90
2017-10-18T21:24:51.000Z
2019-06-06T02:30:33.000Z
YorozuyaGSLib/source/_pt_result_punishment_zocl.cpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
44
2017-12-19T08:02:59.000Z
2022-02-24T23:15:01.000Z
#include <_pt_result_punishment_zocl.hpp> START_ATF_NAMESPACE int _pt_result_punishment_zocl::size() { using org_ptr = int (WINAPIV*)(struct _pt_result_punishment_zocl*); return (org_ptr(0x1402b0f50L))(this); }; END_ATF_NAMESPACE
23.636364
75
0.723077
lemkova
cc47e2ec3e4843f0b78e8543a6020a3b7840d769
17,988
cpp
C++
Tools/ToolsRig/MaterialBinder.cpp
yorung/XLE
083ce4c9d3fe32002ff5168e571cada2715bece4
[ "MIT" ]
1
2016-06-01T10:41:12.000Z
2016-06-01T10:41:12.000Z
Tools/ToolsRig/MaterialBinder.cpp
yorung/XLE
083ce4c9d3fe32002ff5168e571cada2715bece4
[ "MIT" ]
null
null
null
Tools/ToolsRig/MaterialBinder.cpp
yorung/XLE
083ce4c9d3fe32002ff5168e571cada2715bece4
[ "MIT" ]
null
null
null
// Copyright 2015 XLGAMES Inc. // // Distributed under the MIT License (See // accompanying file "LICENSE" or the website // http://www.opensource.org/licenses/mit-license.php) #include "MaterialBinder.h" #include "../../RenderCore/Metal/InputLayout.h" #include "../../RenderCore/Metal/DeviceContext.h" #include "../../...
45.770992
150
0.561152
yorung
cc4b76f3a722603595181fe006fd73e4ba9c1dc1
11,665
cpp
C++
DedicatedServer/Plugins/UEStormancerPlugin/Source/UEStormancerPlugin/Private/StormancerAgent.cpp
Stormancer/Sample_DedicatedClientServer-Unreal
547102cbcc1226612f626ac8a2659a39947aeb05
[ "MIT" ]
7
2018-01-02T20:21:54.000Z
2020-10-16T11:57:21.000Z
DedicatedServer/Plugins/UEStormancerPlugin/Source/UEStormancerPlugin/Private/StormancerAgent.cpp
Stormancer/Sample_DedicatedClientServer-Unreal
547102cbcc1226612f626ac8a2659a39947aeb05
[ "MIT" ]
null
null
null
DedicatedServer/Plugins/UEStormancerPlugin/Source/UEStormancerPlugin/Private/StormancerAgent.cpp
Stormancer/Sample_DedicatedClientServer-Unreal
547102cbcc1226612f626ac8a2659a39947aeb05
[ "MIT" ]
8
2017-09-04T10:11:26.000Z
2020-12-06T07:28:36.000Z
// Fill out your copyright notice in the Description page of Project Settings. #include "UEStormancerPlugin/Public/StormancerAgent.h" #include "Kismet/GameplayStatics.h" #include "UEStormancerPluginBPLibrary.h" #include "IServerDCS.h" #include "Base64.h" #include <thread> // Sets default values AStormancerAgent::AS...
27.77381
166
0.733219
Stormancer
cc4dae33048c48a4601923bae58441f2301284d9
3,381
cpp
C++
src/lvep/FFMpegStream.cpp
MikuAuahDark/livesim4
76860f58d81c44da2f4c5f2a2f32ab7ab73e1155
[ "Zlib" ]
1
2018-03-12T00:55:24.000Z
2018-03-12T00:55:24.000Z
src/lvep/FFMpegStream.cpp
MikuAuahDark/livesim4
76860f58d81c44da2f4c5f2a2f32ab7ab73e1155
[ "Zlib" ]
null
null
null
src/lvep/FFMpegStream.cpp
MikuAuahDark/livesim4
76860f58d81c44da2f4c5f2a2f32ab7ab73e1155
[ "Zlib" ]
null
null
null
#include "FFMpegStream.h" FFMpegStream::FFMpegStream(love::filesystem::File *file, StreamType type) : ioContext(file) , inputFormat(nullptr) , formatContext(nullptr) , codecContext(nullptr) , targetStream(-1) , type(type) , file(file) { initialize(); } FFMpegStream::FFMpegStream(love::filesystem::FileData *fi...
25.613636
95
0.727595
MikuAuahDark
cc4eaa26859808adea82abf19c18e3c30e1e5b9f
1,424
cpp
C++
color_detector/main.cpp
Merryashji/TI-Individual-Propedeuse-Assessment
a9fccff323a4a667811c9917ef7d1b5c1237e478
[ "BSL-1.0" ]
null
null
null
color_detector/main.cpp
Merryashji/TI-Individual-Propedeuse-Assessment
a9fccff323a4a667811c9917ef7d1b5c1237e478
[ "BSL-1.0" ]
null
null
null
color_detector/main.cpp
Merryashji/TI-Individual-Propedeuse-Assessment
a9fccff323a4a667811c9917ef7d1b5c1237e478
[ "BSL-1.0" ]
null
null
null
#include "hwlib.hpp" #include "gy31.hpp" #include "servo.hpp" #include "leds.hpp" int main( void ){ namespace target = hwlib::target; auto s0 = hwlib::target::pin_out( hwlib::target::pins::d4 ); auto s1 = hwlib::target::pin_out( hwlib::target::pins::d5 ); auto s2 = hwlib::target::pin_out( hwlib::...
34.731707
86
0.632022
Merryashji
cc52ce9c121225ab7ebe1cfcb75599a6c60abf31
1,033
hh
C++
include/muensterTPCLXeSensitiveDetector.hh
l-althueser/MuensterTPC-Simulation
7a086ab330cd5905f3c78c324936cdc36951e9bd
[ "BSD-2-Clause" ]
null
null
null
include/muensterTPCLXeSensitiveDetector.hh
l-althueser/MuensterTPC-Simulation
7a086ab330cd5905f3c78c324936cdc36951e9bd
[ "BSD-2-Clause" ]
2
2017-01-24T21:18:46.000Z
2017-01-27T13:24:48.000Z
include/muensterTPCLXeSensitiveDetector.hh
l-althueser/MuensterTPC-Simulation
7a086ab330cd5905f3c78c324936cdc36951e9bd
[ "BSD-2-Clause" ]
4
2017-04-28T12:18:58.000Z
2019-04-10T21:15:00.000Z
/****************************************************************** * muensterTPCsim * * Simulations of the Muenster TPC * * @author Lutz Althüser * @date 2015-04-14 * * @update 2015-11-02 - added comments * * @comment ******************************************************************/ #ifndef __muenster...
24.595238
68
0.701839
l-althueser
cc5300fbd770c74f11b4369673b73335c680fbfa
2,855
cpp
C++
samples/abstraction/ignored_argument/ignored_argument.cpp
aphenriques/integral
157b1e07905a88f7786d8823bde19a3546502912
[ "MIT" ]
40
2015-01-18T19:03:12.000Z
2022-03-06T19:16:16.000Z
samples/abstraction/ignored_argument/ignored_argument.cpp
aphenriques/integral
157b1e07905a88f7786d8823bde19a3546502912
[ "MIT" ]
7
2019-06-25T20:53:27.000Z
2021-01-16T14:14:52.000Z
samples/abstraction/ignored_argument/ignored_argument.cpp
aphenriques/integral
157b1e07905a88f7786d8823bde19a3546502912
[ "MIT" ]
7
2015-05-13T12:31:15.000Z
2019-07-23T20:22:50.000Z
// // ignored_argument.cpp // integral // // MIT License // // Copyright (c) 2019, 2020 André Pereira Henriques (aphenriques (at) outlook (dot) com) // // 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...
45.31746
157
0.620315
aphenriques
cc532ebb71e4acbee6fb4876b0e91d71f26dfcd4
3,250
cpp
C++
src/peer-driver.cpp
ttrung149/p2p
7138ff4e06f279454c6fd5a502dafedd5b28e60d
[ "MIT" ]
null
null
null
src/peer-driver.cpp
ttrung149/p2p
7138ff4e06f279454c6fd5a502dafedd5b28e60d
[ "MIT" ]
null
null
null
src/peer-driver.cpp
ttrung149/p2p
7138ff4e06f279454c6fd5a502dafedd5b28e60d
[ "MIT" ]
null
null
null
/*============================================================================ * p2p - Trung Truong * * File name: peer-driver.cpp * * Description: Main driver for peer node. * Usage: ./peer * *==========================================================================*/ #include <fstream> #include <iostr...
30.660377
78
0.441231
ttrung149
cc53bde9df9e3e9ee29c6616fa9c123e84ada124
1,237
cc
C++
ash/wm/overview/scoped_hide_overview_windows.cc
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
ash/wm/overview/scoped_hide_overview_windows.cc
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
ash/wm/overview/scoped_hide_overview_windows.cc
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
// Copyright 2017 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 "ash/wm/overview/scoped_hide_overview_windows.h" #include "base/logging.h" #include "ui/aura/window.h" namespace ash { ScopedHideOverviewWindo...
29.452381
80
0.691997
zipated
cc53e83450a81ec01ba849035de7ed32e1cb8694
23,380
cpp
C++
bench/ml2cpp-demo/DecisionTreeClassifier/digits/ml2cpp-demo_DecisionTreeClassifier_digits.cpp
antoinecarme/ml2cpp
2b241d44de00eafda620c2b605690276faf5f8fb
[ "BSD-3-Clause" ]
null
null
null
bench/ml2cpp-demo/DecisionTreeClassifier/digits/ml2cpp-demo_DecisionTreeClassifier_digits.cpp
antoinecarme/ml2cpp
2b241d44de00eafda620c2b605690276faf5f8fb
[ "BSD-3-Clause" ]
33
2020-09-13T09:55:01.000Z
2022-01-06T11:53:55.000Z
bench/ml2cpp-demo/DecisionTreeClassifier/digits/ml2cpp-demo_DecisionTreeClassifier_digits.cpp
antoinecarme/ml2cpp
2b241d44de00eafda620c2b605690276faf5f8fb
[ "BSD-3-Clause" ]
1
2021-01-26T14:41:58.000Z
2021-01-26T14:41:58.000Z
// ******************************************************** // This C++ code was automatically generated by ml2cpp (development version). // Copyright 2020 // https://github.com/antoinecarme/ml2cpp // Model : DecisionTreeClassifier // Dataset : digits // This CPP code can be compiled using any C++-17 compiler. // g...
91.686275
5,110
0.492429
antoinecarme
cc54eb8541df5d7042e5354a3a9448f5981419b9
489
cpp
C++
src/g2553/launchpad/seven_segment_test/main.cpp
ab2tech/msp430
5565f20f7ad7821ee6d8e0cdc7be3904a8df38b3
[ "Apache-2.0" ]
24
2015-01-04T19:03:41.000Z
2022-03-11T05:50:19.000Z
src/g2553/launchpad/seven_segment_test/main.cpp
ab2tech/msp430
5565f20f7ad7821ee6d8e0cdc7be3904a8df38b3
[ "Apache-2.0" ]
null
null
null
src/g2553/launchpad/seven_segment_test/main.cpp
ab2tech/msp430
5565f20f7ad7821ee6d8e0cdc7be3904a8df38b3
[ "Apache-2.0" ]
14
2015-05-05T22:47:14.000Z
2021-10-12T13:11:14.000Z
#include "main.h" #define LED_PIN p1_0 #define LED_PIN2 p1_6 int main(void) { basic_clock clock = basic_clock(DCO_F_1MHz); tlc5925 tlc = tlc5925(p1_4); pinOutput(LED_PIN); pinOutput(LED_PIN2); pinOn(LED_PIN2); tlc.write((uint16_t)TLC5925_CH01); _delay_s(2); tlc.write((uint16_t)TLC59...
17.464286
47
0.640082
ab2tech
cc55055e1f285b61c0aeb0540153c33549307dc1
2,131
cpp
C++
aws-cpp-sdk-ec2/source/model/InstanceMetadataOptionsState.cpp
lintonv/aws-sdk-cpp
15e19c265ffce19d2046b18aa1b7307fc5377e58
[ "Apache-2.0" ]
1
2022-02-10T08:06:54.000Z
2022-02-10T08:06:54.000Z
aws-cpp-sdk-ec2/source/model/InstanceMetadataOptionsState.cpp
lintonv/aws-sdk-cpp
15e19c265ffce19d2046b18aa1b7307fc5377e58
[ "Apache-2.0" ]
1
2021-10-14T16:57:00.000Z
2021-10-18T10:47:24.000Z
aws-cpp-sdk-ec2/source/model/InstanceMetadataOptionsState.cpp
ravindra-wagh/aws-sdk-cpp
7d5ff01b3c3b872f31ca98fb4ce868cd01e97696
[ "Apache-2.0" ]
1
2021-11-09T11:58:03.000Z
2021-11-09T11:58:03.000Z
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/ec2/model/InstanceMetadataOptionsState.h> #include <aws/core/utils/HashingUtils.h> #include <aws/core/Globals.h> #include <aws/core/utils/EnumParseOverflowContainer.h> using namespace A...
30.014085
100
0.64336
lintonv
cc59ca4398f42098467b31a00bc81ec46b4f372e
1,324
hpp
C++
src/app/Primitives/Text.hpp
XakNitram/DeutschText
2f504e1530ffbf66c3e3e82efc261ab3c289ff7c
[ "MIT" ]
null
null
null
src/app/Primitives/Text.hpp
XakNitram/DeutschText
2f504e1530ffbf66c3e3e82efc261ab3c289ff7c
[ "MIT" ]
null
null
null
src/app/Primitives/Text.hpp
XakNitram/DeutschText
2f504e1530ffbf66c3e3e82efc261ab3c289ff7c
[ "MIT" ]
null
null
null
#pragma once #include "pch.hpp" #include "Primitives/Font.hpp" class Text { lwvl::ShaderProgram program; lwvl::Uniform u_TextScale = program.uniform("stringScale"); lwvl::Uniform u_TextOffset = program.uniform("stringOffset"); lwvl::VertexArray bufferArray; lwvl::ArrayBuffer vertexBuffer{lwvl::U...
22.066667
114
0.679758
XakNitram
7fde78d9c94c4a103ff5aa7a513ebf406a952b3e
1,467
cpp
C++
Part 9 - Standard Template Library/Vectors.cpp
rudrajit1729/CPP-Learning-Course
3c39b2f31b10b5e8dfd3214f924c6d8af021dc94
[ "MIT" ]
null
null
null
Part 9 - Standard Template Library/Vectors.cpp
rudrajit1729/CPP-Learning-Course
3c39b2f31b10b5e8dfd3214f924c6d8af021dc94
[ "MIT" ]
null
null
null
Part 9 - Standard Template Library/Vectors.cpp
rudrajit1729/CPP-Learning-Course
3c39b2f31b10b5e8dfd3214f924c6d8af021dc94
[ "MIT" ]
null
null
null
#include<iostream> #include<vector> #include<algorithm> using namespace std; int main() { vector <int> A = {11, 2, 3, 14}; A.push_back(100); // Can be used as stack. Also A.pop_back(element) to delete elements sort(A.begin(), A.end());//O(nlogn) //2, 3, 11, 14, 100 //O(...
31.891304
116
0.563054
rudrajit1729
7fe16e99503fb14b4437f3340f46b6481dc69a07
4,728
cpp
C++
sword_2_offer/26_CopyComplexList.cpp
thewangcj/CodingInterview
f5ee3074e527295f6911a5439bb8ac5fc0ed56ea
[ "MIT" ]
1
2018-01-13T06:01:49.000Z
2018-01-13T06:01:49.000Z
sword_2_offer/26_CopyComplexList.cpp
thewangcj/CodingInterview
f5ee3074e527295f6911a5439bb8ac5fc0ed56ea
[ "MIT" ]
null
null
null
sword_2_offer/26_CopyComplexList.cpp
thewangcj/CodingInterview
f5ee3074e527295f6911a5439bb8ac5fc0ed56ea
[ "MIT" ]
null
null
null
// 复杂链表的复制 // 题目:请实现函数ComplexListNode* Clone(ComplexListNode* pHead),复 // 制一个复杂链表。在复杂链表中,每个结点除了有一个m_pNext指针指向下一个 // 结点外,还有一个m_pSibling 指向链表中的任意结点或者nullptr。 #include <iostream> using namespace std; struct ComplexListNode { int m_value; ComplexListNode* m_next; ComplexListNode* m_sibling; }; ComplexListNode* Create...
22.730769
90
0.589255
thewangcj
7fe1f5f7f92f4935cfd35b53142321295c43b805
8,715
cc
C++
src/php_v8_function_callback_info.cc
pinepain/php-v8
dbf2f0cd713d67c252cffe7688548aaa35b56a73
[ "MIT" ]
165
2016-07-15T07:09:56.000Z
2018-03-26T16:48:44.000Z
src/php_v8_function_callback_info.cc
pinepain/php-v8
dbf2f0cd713d67c252cffe7688548aaa35b56a73
[ "MIT" ]
72
2016-09-04T11:26:00.000Z
2018-04-25T13:55:37.000Z
src/php_v8_function_callback_info.cc
pinepain/php-v8
dbf2f0cd713d67c252cffe7688548aaa35b56a73
[ "MIT" ]
12
2016-09-05T09:00:45.000Z
2018-03-12T07:42:45.000Z
/* * This file is part of the phpv8/php-v8 PHP extension. * * Copyright (c) 2015-2018 Bogdan Padalko <thepinepain@gmail.com> * * Licensed under the MIT license: http://opensource.org/licenses/MIT * * For the full copyright and license information, please view the * LICENSE file that was distributed with this so...
33.77907
135
0.741136
pinepain
7fe417995e69549bfbcae2db444152a06c61a4f3
2,678
cpp
C++
algos/c8-almost-ok-failed-codechef-MULTQ3.cpp
fahimfarhan/legendary-coding-odyssey
55289e05aa04f866201c607bed00c505cd9c4df9
[ "MIT" ]
3
2019-07-20T07:26:31.000Z
2020-08-06T09:31:09.000Z
algos/c8-almost-ok-failed-codechef-MULTQ3.cpp
fahimfarhan/legendary-coding-odyssey
55289e05aa04f866201c607bed00c505cd9c4df9
[ "MIT" ]
null
null
null
algos/c8-almost-ok-failed-codechef-MULTQ3.cpp
fahimfarhan/legendary-coding-odyssey
55289e05aa04f866201c607bed00c505cd9c4df9
[ "MIT" ]
4
2019-06-20T18:43:32.000Z
2020-10-07T16:45:23.000Z
#include <bits/stdc++.h> using namespace std; #define MAX_SIZE_M 100005 int a[MAX_SIZE_M] = {0}; int st[4*MAX_SIZE_M][3] = {0}; int lazy[4*MAX_SIZE_M] = {0}; inline void add(int si, int left, int right){ st[si][0] = st[left][0] + st[right][0]; st[si][1] = st[left][1] + st[right][1]; st[si][2] = st[left][2] + s...
18.468966
65
0.463779
fahimfarhan
7fe4382240a8880651cd3fc96d35017fde89a1c2
1,272
cpp
C++
src/strings/RabinKarp.cpp
kcwiakala/algo
b5d393d29c7ca612246c12cefe79bd14432e2e49
[ "MIT" ]
null
null
null
src/strings/RabinKarp.cpp
kcwiakala/algo
b5d393d29c7ca612246c12cefe79bd14432e2e49
[ "MIT" ]
null
null
null
src/strings/RabinKarp.cpp
kcwiakala/algo
b5d393d29c7ca612246c12cefe79bd14432e2e49
[ "MIT" ]
null
null
null
#include <Common.hpp> namespace algo { std::vector<int> rabinKarp(const std::string& text, const std::string& pattern) { const int Q = 2; const int M = 17; std::vector<int> result; const int P = pattern.size(); if(P > text.size()) { return result; } int ph = 0; int th = 0; int h = 1; for(int ...
23.127273
85
0.562893
kcwiakala
7fe4693784322d8990eefbeb65da003ad5068526
815
cpp
C++
src/331.verify_preorder_serialization_of_a_binary_tree/code.cpp
cloudzfy/leetcode
9d32090429ef297e1f62877382bff582d247266a
[ "MIT" ]
1
2016-07-02T17:44:10.000Z
2016-07-02T17:44:10.000Z
src/331.verify_preorder_serialization_of_a_binary_tree/code.cpp
cloudzfy/leetcode
9d32090429ef297e1f62877382bff582d247266a
[ "MIT" ]
null
null
null
src/331.verify_preorder_serialization_of_a_binary_tree/code.cpp
cloudzfy/leetcode
9d32090429ef297e1f62877382bff582d247266a
[ "MIT" ]
1
2019-12-21T04:57:15.000Z
2019-12-21T04:57:15.000Z
class Solution { public: bool isValidSerialization(string preorder) { vector<string> s; int start = 0; for (int i = 0; i <= preorder.length(); i++) { string elem; if (preorder[i] == ',' || preorder[i] == 0) { elem = preorder.substr(start, i - start); ...
31.346154
82
0.361963
cloudzfy
7fe5532c614a043fc9fa19341ec4d7f8db8e64b7
4,611
hpp
C++
include/eepp/ui/cuiwindow.hpp
dogtwelve/eepp
dd672ff0e108ae1e08449ca918dc144018fb4ba4
[ "MIT" ]
null
null
null
include/eepp/ui/cuiwindow.hpp
dogtwelve/eepp
dd672ff0e108ae1e08449ca918dc144018fb4ba4
[ "MIT" ]
null
null
null
include/eepp/ui/cuiwindow.hpp
dogtwelve/eepp
dd672ff0e108ae1e08449ca918dc144018fb4ba4
[ "MIT" ]
null
null
null
#ifndef EE_UICUIWINDOW_HPP #define EE_UICUIWINDOW_HPP #include <eepp/ui/cuicomplexcontrol.hpp> #include <eepp/ui/cuipushbutton.hpp> #include <eepp/ui/cuitextbox.hpp> namespace EE { namespace UI { class EE_API cUIWindow : public cUIComplexControl { public: class CreateParams : public cUIComplexControl::CreateParam...
20.77027
90
0.706788
dogtwelve
7fe69a6dab1a2eb6ac40e66e5e29bd2def78e4e3
730
cpp
C++
ch2/2.31.cpp
FWangTrading/Cpp-Primer-5th-Exercises
bce33ed38306485d503ff5117900ada9623bfbf4
[ "Apache-2.0" ]
545
2016-08-24T00:55:03.000Z
2022-03-29T22:59:24.000Z
ch2/2.31.cpp
FWangTrading/Cpp-Primer-5th-Exercises
bce33ed38306485d503ff5117900ada9623bfbf4
[ "Apache-2.0" ]
25
2017-06-05T18:45:56.000Z
2022-02-18T14:19:05.000Z
ch2/2.31.cpp
FWangTrading/Cpp-Primer-5th-Exercises
bce33ed38306485d503ff5117900ada9623bfbf4
[ "Apache-2.0" ]
260
2016-02-23T01:17:41.000Z
2022-03-26T08:35:54.000Z
int main() { int i; const int v2 = 0; // v2 has top-level const int v1 = v2; int *p1 = &v1, &r1 = v1; const int *p2 = &v2, *const p3 = &i, &r2 = v2; // p2 has low-level const // p3 has both low-level and top-level const ...
31.73913
94
0.515068
FWangTrading
7fea9cd72adc5b7a81a4bdc65edb8cee3199bc3a
515
cc
C++
codeforces/498/a.cc
metaflow/contests
5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2
[ "MIT" ]
1
2019-05-12T23:41:00.000Z
2019-05-12T23:41:00.000Z
codeforces/498/a.cc
metaflow/contests
5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2
[ "MIT" ]
null
null
null
codeforces/498/a.cc
metaflow/contests
5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; using vi = vector<int>; using ii = pair<int,int>; using ll = long long; using llu = unsigned long long; const int INF = numeric_limits<int>::max(); int main() { int n; ll x1, y1, x2, y2; while (cin >> x1) { cin >> y1 >> x2 >> y2 >> n; int r = 0; while (n-...
19.074074
43
0.471845
metaflow
7fead54ffb2a06b7fe1e5445845aa3b0773121d6
58,819
cpp
C++
src/subcommand/index_main.cpp
YTLogos/vg
f389c5a8e24d84bbb5afdc728534d82a078b1b48
[ "BSL-1.0" ]
null
null
null
src/subcommand/index_main.cpp
YTLogos/vg
f389c5a8e24d84bbb5afdc728534d82a078b1b48
[ "BSL-1.0" ]
null
null
null
src/subcommand/index_main.cpp
YTLogos/vg
f389c5a8e24d84bbb5afdc728534d82a078b1b48
[ "BSL-1.0" ]
null
null
null
// index.cpp: define the "vg index" subcommand, which makes xg, GCSA2, GBWT, and RocksDB indexes #include <omp.h> #include <unistd.h> #include <getopt.h> #include <string> #include <vector> #include <regex> #include "subcommand.hpp" #include "../vg.hpp" #include "../index.hpp" #include "../stream.hpp" #include "../...
45.80919
199
0.488601
YTLogos
7fec1819f8e7b4d7ab407dbdd1c1d7ae64061aed
4,712
cc
C++
Testcase4-Application-breakdown/online-compiling/test_vectors/mosh/src/examples/ntester.cc
hunhoffe/ServerlessBench
529eb835638cad0edb5be3343166c7ade375ece2
[ "MulanPSL-1.0" ]
129
2020-08-09T12:02:30.000Z
2022-03-31T15:26:03.000Z
Testcase4-Application-breakdown/online-compiling/test_vectors/mosh/src/examples/ntester.cc
hunhoffe/ServerlessBench
529eb835638cad0edb5be3343166c7ade375ece2
[ "MulanPSL-1.0" ]
11
2020-09-17T09:42:07.000Z
2022-03-30T19:05:38.000Z
Testcase4-Application-breakdown/online-compiling/test_vectors/mosh/src/examples/ntester.cc
hunhoffe/ServerlessBench
529eb835638cad0edb5be3343166c7ade375ece2
[ "MulanPSL-1.0" ]
22
2020-08-20T06:59:24.000Z
2022-03-18T21:00:05.000Z
/* Mosh: the mobile shell Copyright 2012 Keith Winstein This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
27.08046
115
0.617148
hunhoffe
7fee36a64e6fed248702d44e272b0c2a36f40135
57,740
cpp
C++
src/engine/refkeen/kdreams/kd_keen.cpp
vogonsorg/Commander-Genius
456703977d7e574af663fd03d4897728ede10058
[ "X11" ]
137
2015-01-01T21:04:51.000Z
2022-03-30T01:41:10.000Z
src/engine/refkeen/kdreams/kd_keen.cpp
vogonsorg/Commander-Genius
456703977d7e574af663fd03d4897728ede10058
[ "X11" ]
154
2015-01-01T16:34:39.000Z
2022-01-28T14:14:45.000Z
src/engine/refkeen/kdreams/kd_keen.cpp
vogonsorg/Commander-Genius
456703977d7e574af663fd03d4897728ede10058
[ "X11" ]
35
2015-03-24T02:20:54.000Z
2021-05-13T11:44:22.000Z
/* Keen Dreams Source Code * Copyright (C) 2014 Javier M. Chavez * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version....
22.705466
108
0.633114
vogonsorg
7ff505abc0408f7051cc948ad1b395cfba73f88a
3,085
cpp
C++
third_party/WebKit/Source/core/paint/PaintTiming.cpp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
third_party/WebKit/Source/core/paint/PaintTiming.cpp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
third_party/WebKit/Source/core/paint/PaintTiming.cpp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
// Copyright 2015 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 "core/paint/PaintTiming.h" #include "core/dom/Document.h" #include "core/loader/DocumentLoader.h" #include "platform/TraceEvent.h" namespace bl...
28.831776
115
0.727391
Wzzzx
7ff9c3cb97614b07e81535c65986a0bdc669977e
925
cpp
C++
tools/templates/processor.cpp
victorca25/inviwo
34b6675f6b791a08e358d24aea4f75d5baadc6da
[ "BSD-2-Clause" ]
null
null
null
tools/templates/processor.cpp
victorca25/inviwo
34b6675f6b791a08e358d24aea4f75d5baadc6da
[ "BSD-2-Clause" ]
null
null
null
tools/templates/processor.cpp
victorca25/inviwo
34b6675f6b791a08e358d24aea4f75d5baadc6da
[ "BSD-2-Clause" ]
null
null
null
/********************************************************************* * Author : <author> * Init : <datetime> * * Project : KTH Inviwo Modules * * License : Follows the Inviwo BSD license model ********************************************************************* */ #include <incfile> namespace inviw...
18.5
82
0.498378
victorca25
3d031a18e2bc19cdb4ad85ca331bc460c4a94cba
174
cpp
C++
projects/sghelloworld/setupglfwengine.cpp
gizmomogwai/cpplib
a09bf4d3f2a312774d3d85a5c65468099a1797b0
[ "MIT" ]
null
null
null
projects/sghelloworld/setupglfwengine.cpp
gizmomogwai/cpplib
a09bf4d3f2a312774d3d85a5c65468099a1797b0
[ "MIT" ]
null
null
null
projects/sghelloworld/setupglfwengine.cpp
gizmomogwai/cpplib
a09bf4d3f2a312774d3d85a5c65468099a1797b0
[ "MIT" ]
null
null
null
#include <sgtools-glfw/GLFWEngine.h> Engine* setupEngine(int argc, char** args, int width, int height, const char* title) { return new GLFWEngine(width, height, title); }
29
86
0.729885
gizmomogwai
3d04497096a513c0c950e70dd4cdfc6000254f76
41,133
cpp
C++
src/lib/geogram_gfx/mesh/mesh_gfx.cpp
benardp/contours_viewer
16eb17c916272d34e73039f0969e46abc0ec30ca
[ "BSD-3-Clause" ]
8
2019-05-17T15:33:13.000Z
2021-09-13T10:54:27.000Z
src/lib/geogram_gfx/mesh/mesh_gfx.cpp
benardp/contours_viewer
16eb17c916272d34e73039f0969e46abc0ec30ca
[ "BSD-3-Clause" ]
null
null
null
src/lib/geogram_gfx/mesh/mesh_gfx.cpp
benardp/contours_viewer
16eb17c916272d34e73039f0969e46abc0ec30ca
[ "BSD-3-Clause" ]
4
2021-01-19T11:28:42.000Z
2021-12-24T04:43:15.000Z
/* * Copyright (c) 2012-2014, Bruno Levy * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list of c...
29.528356
80
0.653441
benardp
3d04b739fd4fd88febedb747937c222535b4389e
8,741
cpp
C++
Utility/desktop_app/desktop/DeviceData.cpp
ThomasChevalier/passwordWallet
115dbde3e32f2be65071e6f298c4f03ddfe19b09
[ "MIT" ]
3
2016-12-20T16:08:07.000Z
2018-12-20T21:58:18.000Z
Utility/desktop_app/desktop/DeviceData.cpp
ThomasChevalier/passwordWallet
115dbde3e32f2be65071e6f298c4f03ddfe19b09
[ "MIT" ]
6
2016-10-24T09:03:01.000Z
2019-12-04T21:51:01.000Z
Utility/desktop_app/desktop/DeviceData.cpp
ThomasChevalier/passwordWallet
115dbde3e32f2be65071e6f298c4f03ddfe19b09
[ "MIT" ]
null
null
null
#include "DeviceData.h" static quint16 OFFSET_OPTIONS_FLAG = 0; static quint16 SIZE_OPTION_FLAG = 1; static quint16 OPTIONS_FLAG_OFFSET_SORTING_METHOD_L =0; static quint16 OPTIONS_FLAG_OFFSET_SORTING_METHOD_H =1; static quint16 OPTIONS_FLAG_OFFSET_ORIENTATION =2; static quint16 OPTIONS_FLAG_OFFSET_INITIALIZED =3...
24.280556
174
0.638256
ThomasChevalier
3d05b08a8901c5b694462e4a115c10a7a084fa75
1,609
hpp
C++
Siv3D/include/Siv3D/Shader.hpp
RYOSKATE/OpenSiv3D
ac02c341e4d116785a6531ad7567559a086e665a
[ "MIT" ]
null
null
null
Siv3D/include/Siv3D/Shader.hpp
RYOSKATE/OpenSiv3D
ac02c341e4d116785a6531ad7567559a086e665a
[ "MIT" ]
null
null
null
Siv3D/include/Siv3D/Shader.hpp
RYOSKATE/OpenSiv3D
ac02c341e4d116785a6531ad7567559a086e665a
[ "MIT" ]
null
null
null
//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2018 Ryo Suzuki // Copyright (c) 2016-2018 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # pragma once # include "Fwd.hpp" # include "S...
25.539683
171
0.668738
RYOSKATE
3d05e9acc943a3c8299347645055c87fd5d0ff76
365
hpp
C++
include/histogram.hpp
stefanofortu/intoTheWild
000af8d5b7a480e0f14e1a2deb047899c8469b41
[ "Unlicense" ]
null
null
null
include/histogram.hpp
stefanofortu/intoTheWild
000af8d5b7a480e0f14e1a2deb047899c8469b41
[ "Unlicense" ]
1
2015-12-23T16:26:12.000Z
2015-12-23T16:26:34.000Z
include/histogram.hpp
stefanofortu/intothewild
000af8d5b7a480e0f14e1a2deb047899c8469b41
[ "Unlicense" ]
null
null
null
#ifndef _HISTOGRAM_HPP_ #define _HISTOGRAM_HPP_ #include "config.hpp" int caricaDistribuzione(string address, double* distribution); Mat plot_histogram(float* istogramma); float* cumulative(float* histogram); float* histogram_gray (Mat img); int histc(double *distribution_source, int n_samples, double step, double *h...
28.076923
94
0.808219
stefanofortu
3d0780aedd8d3a9f409b28522f14478eb98a01e9
12,210
cc
C++
tensorflow/compiler/xla/service/gpu/cudnn_pad_for_convolutions_test.cc
abhaikollara/tensorflow
4f96df3659696990cb34d0ad07dc67843c4225a9
[ "Apache-2.0" ]
388
2020-06-27T01:38:29.000Z
2022-03-29T14:12:01.000Z
tensorflow/compiler/xla/service/gpu/cudnn_pad_for_convolutions_test.cc
sseung0703/tensorflow
be084bd7a4dd241eb781fc704f57bcacc5c9b6dd
[ "Apache-2.0" ]
1,056
2019-12-15T01:20:31.000Z
2022-02-10T02:06:28.000Z
tensorflow/compiler/xla/service/gpu/cudnn_pad_for_convolutions_test.cc
sseung0703/tensorflow
be084bd7a4dd241eb781fc704f57bcacc5c9b6dd
[ "Apache-2.0" ]
75
2021-12-24T04:48:21.000Z
2022-03-29T10:13:39.000Z
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
45.559701
383
0.621704
abhaikollara
3d0947d8bf95b275bd74b64354d95a338194cbff
400
cpp
C++
1927/1927.cpp
isac322/BOJ
35959dd1a63d75ebca9ed606051f7a649d5c0c7b
[ "MIT" ]
14
2017-05-02T02:00:42.000Z
2021-11-16T07:25:29.000Z
1927/1927.cpp
isac322/BOJ
35959dd1a63d75ebca9ed606051f7a649d5c0c7b
[ "MIT" ]
1
2017-12-25T14:18:14.000Z
2018-02-07T06:49:44.000Z
1927/1927.cpp
isac322/BOJ
35959dd1a63d75ebca9ed606051f7a649d5c0c7b
[ "MIT" ]
9
2016-03-03T22:06:52.000Z
2020-04-30T22:06:24.000Z
#include <stdio.h> #include <vector> #include <queue> #include <functional> using namespace std; int main() { priority_queue< int, vector<int>, greater<int> > heap; int n, a; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%d", &a); if (!a) { if (!heap.empty()) { printf("%d\n", heap.top()); he...
16
55
0.5175
isac322
3d0b8f4c587334584945e0099f8208c4f2040f9e
2,053
cpp
C++
imp_bridge_opencv/src/cv_connector_pixel_types.cpp
mwerlberger/imp
2a2e4d31fa59ca1c32ae7f415306b39e31fc1e85
[ "MIT" ]
8
2015-10-24T18:31:58.000Z
2019-10-16T03:27:27.000Z
imp_bridge_opencv/src/cv_connector_pixel_types.cpp
henrywen2011/imp
2a2e4d31fa59ca1c32ae7f415306b39e31fc1e85
[ "MIT" ]
7
2015-06-22T09:36:32.000Z
2015-08-20T06:56:10.000Z
imp_bridge_opencv/src/cv_connector_pixel_types.cpp
henrywen2011/imp
2a2e4d31fa59ca1c32ae7f415306b39e31fc1e85
[ "MIT" ]
3
2015-05-13T14:46:48.000Z
2017-01-11T09:20:03.000Z
#include <imp/bridge/opencv/cv_connector_pixel_types.hpp> #include <opencv2/core/core.hpp> namespace imp { //------------------------------------------------------------------------------ imp::PixelType pixelTypeFromCv(int type) { switch (type) { case CV_8UC1: return imp::PixelType::i8uC1; case CV_8UC2: retu...
31.584615
80
0.666342
mwerlberger
3d0ca7481af2c5a1d683974fe4da719a2973e001
924
hpp
C++
libs/core/include/fcppt/mpl/list/size.hpp
freundlich/fcppt
17df1b1ad08bf2435f6902d5465e3bc3fe5e3022
[ "BSL-1.0" ]
13
2015-02-21T18:35:14.000Z
2019-12-29T14:08:29.000Z
libs/core/include/fcppt/mpl/list/size.hpp
cpreh/fcppt
17df1b1ad08bf2435f6902d5465e3bc3fe5e3022
[ "BSL-1.0" ]
5
2016-08-27T07:35:47.000Z
2019-04-21T10:55:34.000Z
libs/core/include/fcppt/mpl/list/size.hpp
freundlich/fcppt
17df1b1ad08bf2435f6902d5465e3bc3fe5e3022
[ "BSL-1.0" ]
8
2015-01-10T09:22:37.000Z
2019-12-01T08:31:12.000Z
// Copyright Carl Philipp Reh 2009 - 2021. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef FCPPT_MPL_LIST_SIZE_HPP_INCLUDED #define FCPPT_MPL_LIST_SIZE_HPP_INCLUDED #include <fcppt/...
23.1
65
0.714286
freundlich
3d127f67cbd8f35155d554e2333aaa8c653c3d9c
315
cpp
C++
cpp/fail/lib/test/src/Case.cpp
bpsuntrup/TuringBox
22aa7ef92a7b18795e96f120f25c2b8add0ae75e
[ "MIT" ]
2
2016-02-23T03:20:29.000Z
2016-03-16T01:13:32.000Z
cpp/fail/lib/test/src/Case.cpp
bpsuntrup/TuringBox
22aa7ef92a7b18795e96f120f25c2b8add0ae75e
[ "MIT" ]
null
null
null
cpp/fail/lib/test/src/Case.cpp
bpsuntrup/TuringBox
22aa7ef92a7b18795e96f120f25c2b8add0ae75e
[ "MIT" ]
null
null
null
#include <string> #include "Case.h" using namespace std; void Test::Case::operator() () { test_(); } void Test::Case::operator= (function<void()> test) { test_ = test; } void Test::Case::describe(string description) { description_ = description; } string Test::Case::describe() { return description_; }
13.125
50
0.673016
bpsuntrup
3d22a16feed380e4d2e8a5d43b7d9a2565b69458
1,788
hpp
C++
src/util/boost_serialize_unordered_map.hpp
JunLi-Galios/repel
e4e7f4ffc95f8d65dd478861080c9c77bab9b797
[ "MIT" ]
null
null
null
src/util/boost_serialize_unordered_map.hpp
JunLi-Galios/repel
e4e7f4ffc95f8d65dd478861080c9c77bab9b797
[ "MIT" ]
null
null
null
src/util/boost_serialize_unordered_map.hpp
JunLi-Galios/repel
e4e7f4ffc95f8d65dd478861080c9c77bab9b797
[ "MIT" ]
null
null
null
/* * boost_serialize_unordered_map.hpp * * Created on: May 27, 2012 * Author: joe */ #ifndef BOOST_SERIALIZE_UNORDERED_MAP_HPP_ #define BOOST_SERIALIZE_UNORDERED_MAP_HPP_ #include <boost/unordered_map.hpp> #include <boost/serialization/map.hpp> #include <boost/serialization/split_free.hpp> #include <boost/...
28.83871
82
0.676174
JunLi-Galios
3d27fa618b92e67794c0b97757fd10f00598a2ab
9,023
cpp
C++
Source/OpenTournament/UR_FireModeBase.cpp
HAARP-art/OpenTournament
1bb188983ba4d013a8ce00bbe1a333f2952814e8
[ "OML" ]
97
2020-05-24T23:09:26.000Z
2022-01-22T13:35:58.000Z
Source/OpenTournament/UR_FireModeBase.cpp
HAARP-art/OpenTournament
1bb188983ba4d013a8ce00bbe1a333f2952814e8
[ "OML" ]
165
2020-05-26T02:42:54.000Z
2022-03-29T11:01:11.000Z
Source/OpenTournament/UR_FireModeBase.cpp
HAARP-art/OpenTournament
1bb188983ba4d013a8ce00bbe1a333f2952814e8
[ "OML" ]
78
2020-05-24T23:10:29.000Z
2022-03-14T13:54:09.000Z
// Copyright (c) 2019-2020 Open Tournament Project, All Rights Reserved. #include "UR_FireModeBase.h" #include "Net/UnrealNetwork.h" #include "Engine/World.h" #include "TimerManager.h" #include "UR_FunctionLibrary.h" void UUR_FireModeBase::GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimePro...
27.096096
150
0.583952
HAARP-art
3d2b38bbfd62397655736e5509db8e2b22826bf2
2,969
cpp
C++
src/guidance.v2.02/programs/semphy/rearangeTree.cpp
jlanga/smsk_selection
08070c6d4a6fbd9320265e1e698c95ba80f81123
[ "MIT" ]
4
2021-07-18T05:20:20.000Z
2022-01-03T10:22:33.000Z
src/guidance.v2.02/programs/semphy/rearangeTree.cpp
jlanga/smsk_selection
08070c6d4a6fbd9320265e1e698c95ba80f81123
[ "MIT" ]
1
2017-08-21T07:26:13.000Z
2018-11-08T13:59:48.000Z
src/guidance.v2.02/programs/semphy/rearangeTree.cpp
jlanga/smsk_orthofinder
08070c6d4a6fbd9320265e1e698c95ba80f81123
[ "MIT" ]
2
2021-07-18T05:20:26.000Z
2022-03-31T18:23:31.000Z
// $Id: rearangeTree.cpp 409 2005-06-28 13:12:24Z ninio $ #include "rearangeTree.h" #include "logFile.h" rearrangeTree::rearrangeTree(// tree* inT, pairSet* inNodeSet, const semphyDistance* inSemphyDis): _nodesSet(inNodeSet), _semDist(inSemphyDis) {}; void rearrangeTree:...
31.585106
98
0.651735
jlanga
3d2d1e1b17fae0836f04340895cae5eae46840a3
5,776
cpp
C++
Pong/src/main.cpp
J0sueTM/sfml-bench-files
3baf64d40c1a2abc3385ac406a0a5dbb2cafebeb
[ "MIT" ]
1
2020-10-24T02:12:05.000Z
2020-10-24T02:12:05.000Z
Pong/src/main.cpp
J0sueTM/sfml-bench-files
3baf64d40c1a2abc3385ac406a0a5dbb2cafebeb
[ "MIT" ]
null
null
null
Pong/src/main.cpp
J0sueTM/sfml-bench-files
3baf64d40c1a2abc3385ac406a0a5dbb2cafebeb
[ "MIT" ]
null
null
null
#include <SFML/Graphics.hpp> #include <SFML/Audio.hpp> #include <iostream> int main() { sf::RenderWindow window(sf::VideoMode(1280, 720), "SFML-pong"); sf::Vector2u windowBounds = window.getSize(); bool paused = true; //visual sf::Color bgColor(58, 47, 92, 36); sf::Color laColor(193, 182, 225...
27.504762
141
0.525277
J0sueTM
3d2eb858ef31beb9f3b9ef5a8cf403a8e6bc8661
1,609
cpp
C++
test/cast/truncation_check.cpp
pmiddend/fcppt
9f437acbb10258e6df6982a550213a05815eb2be
[ "BSL-1.0" ]
null
null
null
test/cast/truncation_check.cpp
pmiddend/fcppt
9f437acbb10258e6df6982a550213a05815eb2be
[ "BSL-1.0" ]
null
null
null
test/cast/truncation_check.cpp
pmiddend/fcppt
9f437acbb10258e6df6982a550213a05815eb2be
[ "BSL-1.0" ]
null
null
null
// Copyright Carl Philipp Reh 2009 - 2018. // 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) #include <fcppt/cast/bad_truncation_check.hpp> #include <fcppt/cast/truncation_check.hpp> #include...
15.179245
61
0.650715
pmiddend
3d344c5983a6ac94103d882be2f16dfc07a75cac
1,624
cpp
C++
src/llvm_testing/src/TestEvalModel.cpp
gitter-badger/sbmlsolver
c92936832297ea1d2ad7f17223b68ada43c8f0b2
[ "Apache-2.0" ]
null
null
null
src/llvm_testing/src/TestEvalModel.cpp
gitter-badger/sbmlsolver
c92936832297ea1d2ad7f17223b68ada43c8f0b2
[ "Apache-2.0" ]
null
null
null
src/llvm_testing/src/TestEvalModel.cpp
gitter-badger/sbmlsolver
c92936832297ea1d2ad7f17223b68ada43c8f0b2
[ "Apache-2.0" ]
null
null
null
/* * TestEvalModel.cpp * * Created on: Jul 23, 2013 * Author: andy */ #pragma hdrstop #include "TestEvalModel.h" #include "rrLogger.h" namespace rr { using namespace std; TestEvalModel::TestEvalModel(const std::string& compiler, const std::string& version, int caseNumber) : TestBase(compiler, ...
21.368421
93
0.650246
gitter-badger
3d351f5a308ec86393d8078e4bd92b240980daf8
11,176
cpp
C++
lights/format/binary_format.cpp
wherewindblow/spaceless
891ef66cf22d268dd742ea15b15f944a9ba8185f
[ "Apache-2.0" ]
1
2020-12-10T12:08:35.000Z
2020-12-10T12:08:35.000Z
lights/format/binary_format.cpp
wherewindblow/spaceless
891ef66cf22d268dd742ea15b15f944a9ba8185f
[ "Apache-2.0" ]
null
null
null
lights/format/binary_format.cpp
wherewindblow/spaceless
891ef66cf22d268dd742ea15b15f944a9ba8185f
[ "Apache-2.0" ]
null
null
null
/** * binary_format.cpp * @author wherewindblow * @date Sep 12, 2017 */ #include "binary_format.h" namespace lights { /** * Gets type code of boolean. */ inline BinaryTypeCode get_type_code(bool) { return BinaryTypeCode::BOOL; } /** * Gets type code of char. */ inline BinaryTypeCode get_type_code(char) ...
26.234742
118
0.612742
wherewindblow
3d43bbe893d9961956d6642ce9f4d06ec20abbff
17,824
cc
C++
IoT/code/misc/cpuid.cc
jlmucb/class_notes
b8571df2dca933f6594a16eb02b581d38ca4ccfd
[ "Apache-2.0" ]
null
null
null
IoT/code/misc/cpuid.cc
jlmucb/class_notes
b8571df2dca933f6594a16eb02b581d38ca4ccfd
[ "Apache-2.0" ]
null
null
null
IoT/code/misc/cpuid.cc
jlmucb/class_notes
b8571df2dca933f6594a16eb02b581d38ca4ccfd
[ "Apache-2.0" ]
null
null
null
#include <stdio.h> // // CPUID Decode // #ifndef _TYPES_H #define _TYPES_H typedef unsigned u32; typedef int i32; typedef long long unsigned u64; typedef long long int i64; #endif /* * CPUID Documentation * * The CPUID instruction t...
36.674897
103
0.505386
jlmucb
3d44a66b8dd8eb2305b66b9717bc7eef05784e1d
9,441
cpp
C++
tests/base_test.cpp
vancraar/PLSSVM
e8ea4966c2baf23d5ca42e4c77f33fa75a31a9df
[ "MIT" ]
null
null
null
tests/base_test.cpp
vancraar/PLSSVM
e8ea4966c2baf23d5ca42e4c77f33fa75a31a9df
[ "MIT" ]
null
null
null
tests/base_test.cpp
vancraar/PLSSVM
e8ea4966c2baf23d5ca42e4c77f33fa75a31a9df
[ "MIT" ]
null
null
null
/** * @author Alexander Van Craen * @author Marcel Breyer * @copyright 2018-today The PLSSVM project - All Rights Reserved * @license This file is part of the PLSSVM project which is released under the MIT license. * See the LICENSE.md file in the project root for full license information. * * @brief Te...
60.133758
199
0.761042
vancraar
3d4b50ba026443c992105fe8d033c37c1367f516
8,989
cpp
C++
GPS_GN-801/src/GPS_GN-801.cpp
Carlo47/GPS_GN-801
94a8047a84f85fe740eb7aa345e220304bfe16fc
[ "Unlicense" ]
null
null
null
GPS_GN-801/src/GPS_GN-801.cpp
Carlo47/GPS_GN-801
94a8047a84f85fe740eb7aa345e220304bfe16fc
[ "Unlicense" ]
null
null
null
GPS_GN-801/src/GPS_GN-801.cpp
Carlo47/GPS_GN-801
94a8047a84f85fe740eb7aa345e220304bfe16fc
[ "Unlicense" ]
null
null
null
/** * Sketch GPS_GN-801.cpp * Author 2020-01-23 Ch. Geiser * Purpose Reads the NMEA Sentences sent by the GPS module via the * hardware serial interface 1 of the ESP32 module and displays * them on the integrated OLED. * * Board ESP32 Board WiFi / BlueTooth / O...
28.178683
106
0.510735
Carlo47
3d51b5226b154767d8dca878f05f2dfc75b1bc2b
4,581
cpp
C++
GameObjects/BasicShapes/Cylinder.cpp
yuwenhuisama/A-Simple-Direct3D-Demo
6cfcc4fea157a93118295f28d97ca6ebeb23318b
[ "MIT" ]
null
null
null
GameObjects/BasicShapes/Cylinder.cpp
yuwenhuisama/A-Simple-Direct3D-Demo
6cfcc4fea157a93118295f28d97ca6ebeb23318b
[ "MIT" ]
null
null
null
GameObjects/BasicShapes/Cylinder.cpp
yuwenhuisama/A-Simple-Direct3D-Demo
6cfcc4fea157a93118295f28d97ca6ebeb23318b
[ "MIT" ]
null
null
null
#include "Cylinder.h" #include "DxUtils/Colors.h" Cylinder::Cylinder(float fBottomRadius, float fTopRadius, float fHeight, UINT uSliceCount, UINT uStackCount): m_fBottomRadius(fBottomRadius), m_fTopRadius(fTopRadius), m_fHeight(fHeight), m...
30.337748
87
0.575857
yuwenhuisama
3d54c4ed6546b3168c648d1c88209a544814b2a7
278
cpp
C++
archive/2.02.3089.cpp
woshiluo/oi
5637fb81b0e25013314783dc387f7fc93bf9d4b9
[ "Apache-2.0" ]
null
null
null
archive/2.02.3089.cpp
woshiluo/oi
5637fb81b0e25013314783dc387f7fc93bf9d4b9
[ "Apache-2.0" ]
null
null
null
archive/2.02.3089.cpp
woshiluo/oi
5637fb81b0e25013314783dc387f7fc93bf9d4b9
[ "Apache-2.0" ]
null
null
null
#include <cstdio> using namespace std; int a[45],i=0,cnt; void f(int less){ if(less==0){cnt++; return ;} for(int i=1;i<=2;i++){ if(less-i>=0) f(less-i); } } int main(){ while(1){ if(scanf("%d",&a[i])==EOF) break; f(a[i]); printf("%d\n",cnt); cnt=0; i++; } }
12.636364
35
0.517986
woshiluo
3d54e75387edb062e0ad324fe7ac690f8a59d5b1
9,468
cpp
C++
sources/libcpp69iip_scale_by_subpixel/iip_crop_and_downsample.cpp
Savraska2/GTS
78c8b4d634f1379eb3e33642716717f53bf7e1ad
[ "BSD-3-Clause" ]
61
2016-03-26T03:04:43.000Z
2021-09-17T02:11:18.000Z
sources/libcpp69iip_scale_by_subpixel/iip_crop_and_downsample.cpp
sahwar/GTS
b25734116ea81eb0d7e2eabc8ce16cdd1c8b22dd
[ "BSD-3-Clause" ]
92
2016-04-10T23:40:22.000Z
2022-03-11T21:49:12.000Z
sources/libcpp69iip_scale_by_subpixel/iip_crop_and_downsample.cpp
sahwar/GTS
b25734116ea81eb0d7e2eabc8ce16cdd1c8b22dd
[ "BSD-3-Clause" ]
18
2016-03-26T11:19:14.000Z
2021-08-07T00:26:02.000Z
#include <iostream> #include <cassert> #include "iip_crop_and_downsample.h" #include "calcu_bresenham.cpp" namespace { /* child画像1pixelに対するparent画像1pixelのサンプリング数(subpixel)を返す */ int calcu_subpixel_division_( const int subp_min_div /* 縮小(DownSample)時のサンプル最小数 */ ,const int subp_max_div /* 縮小(DownSample)時のサンプル最大数 */ ...
26.670423
103
0.661597
Savraska2
3d59792b1b67ae263accbb5c76c2d60e6f92cd2d
2,550
hpp
C++
pouf/core/graph.hpp
maxime-tournier/cpp
303def38a523f0e5699ef389182974f4f50d10fb
[ "MIT" ]
null
null
null
pouf/core/graph.hpp
maxime-tournier/cpp
303def38a523f0e5699ef389182974f4f50d10fb
[ "MIT" ]
null
null
null
pouf/core/graph.hpp
maxime-tournier/cpp
303def38a523f0e5699ef389182974f4f50d10fb
[ "MIT" ]
null
null
null
#ifndef CORE_GRAPH_HPP #define CORE_GRAPH_HPP #include <map> #include <memory> #include <boost/graph/adjacency_list.hpp> #include <boost/graph/topological_sort.hpp> #include <core/variant.hpp> #include <core/range.hpp> #include "dofs.hpp" #include "func.hpp" #include "metric.hpp" using vertex = variant<dofs_base...
19.318182
89
0.592941
maxime-tournier
3d5b772e5e07c4f1ceca23848517868c987490c8
4,263
cpp
C++
2021/puzzle-14/part-2/main.cpp
sirnacnud/advent-of-code
8a45207ac57f7cae8a66126b99c79dfffc173468
[ "MIT" ]
null
null
null
2021/puzzle-14/part-2/main.cpp
sirnacnud/advent-of-code
8a45207ac57f7cae8a66126b99c79dfffc173468
[ "MIT" ]
null
null
null
2021/puzzle-14/part-2/main.cpp
sirnacnud/advent-of-code
8a45207ac57f7cae8a66126b99c79dfffc173468
[ "MIT" ]
null
null
null
#include <iostream> #include <fstream> #include <sstream> #include <limits> #include <map> #include <vector> void parseRule(const std::string& line, std::map<std::pair<char, char>, char>& rules) { std::stringstream ss(line); std::string s; int index = 0; std::pair<char, char> pair; while (index <...
30.45
169
0.52897
sirnacnud
3d5fbb5067589286db7db01cb890d64f5183c1f6
278
cpp
C++
src/test/branch.cpp
kkysen/DifferentiableFuzzer
22088a3871e4104c4afc463c05ce58f0221dbc43
[ "MIT" ]
1
2019-06-19T06:03:03.000Z
2019-06-19T06:03:03.000Z
src/test/branch.cpp
kkysen/SmartNeuralFuzzer
22088a3871e4104c4afc463c05ce58f0221dbc43
[ "MIT" ]
null
null
null
src/test/branch.cpp
kkysen/SmartNeuralFuzzer
22088a3871e4104c4afc463c05ce58f0221dbc43
[ "MIT" ]
null
null
null
#include <cstdio> extern "C" int branchTest(int argc) { if (argc == 1) { return 0; } else if (argc == 2) { return 1; } else { return 2; } } int main(int argc, [[maybe_unused]] char** argv) { printf("%d\n", branchTest(argc)); return 0; }
15.444444
50
0.52518
kkysen
87d077090a88c9242fa233fb3e425318a60f3c99
6,831
cxx
C++
Porter5/scripts/Predict_BRNN/Model.cxx
LifeWorks/SIEVE
8ba16402f0a15a0ae040d54cf2674e7d00ef4be0
[ "BSD-2-Clause" ]
null
null
null
Porter5/scripts/Predict_BRNN/Model.cxx
LifeWorks/SIEVE
8ba16402f0a15a0ae040d54cf2674e7d00ef4be0
[ "BSD-2-Clause" ]
null
null
null
Porter5/scripts/Predict_BRNN/Model.cxx
LifeWorks/SIEVE
8ba16402f0a15a0ae040d54cf2674e7d00ef4be0
[ "BSD-2-Clause" ]
null
null
null
#include "Model.h" void Model::alloc() { counted = new int[NY]; nerrors_ = new int[NY]; dcycles = new double[cycles]; Conf=new int*[NY]; for (int y=0;y<NY;y++) Conf[y]=new int[NY]; } Model::Model(int the_NU, int the_NY, int the_NH, int the_context, int the_Moore, int the_NF, ...
18.023747
130
0.524667
LifeWorks
87d140ffdeb6403853fd616ac067406fa04e4692
884
cpp
C++
Dynamic Programming/LCS/LPalindromicS_DP.cpp
parth1614/DSA_Questions
7083952eb310a21f7e30267efa437dfbb8c0f88f
[ "MIT" ]
null
null
null
Dynamic Programming/LCS/LPalindromicS_DP.cpp
parth1614/DSA_Questions
7083952eb310a21f7e30267efa437dfbb8c0f88f
[ "MIT" ]
null
null
null
Dynamic Programming/LCS/LPalindromicS_DP.cpp
parth1614/DSA_Questions
7083952eb310a21f7e30267efa437dfbb8c0f88f
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; int LPS(string z,string x, int n, int m){ vector<vector<int>> t; for(int i=0;i<n+1;++i){ vector<int> temp; for(int j=0;j<m+1;++j){ if(i==0 || j==0){ temp.push_back(0); } else{ temp.push_...
19.217391
53
0.375566
parth1614
87d3b91c38625297ec400279967b53a220c5e2ca
2,992
cpp
C++
windows/advcore/gdiplus/engine/text/otls/classdef.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
windows/advcore/gdiplus/engine/text/otls/classdef.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
windows/advcore/gdiplus/engine/text/otls/classdef.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
/*********************************************************************** ************************************************************************ * * ******** CLASDEF.CPP ******** * * Open Type Layout Services Library Header File * * This module deals with formats of cla...
32.172043
93
0.403409
npocmaka
87d478ae4a1da8c07500d518f1012209656049ff
466
cpp
C++
src/ConverterPrinter/ExportFormatNotSupportedException.cpp
bas524/DocxFactory
8520eef9778d7e696a8013090396bb7b3f2936a0
[ "BSD-3-Clause" ]
2
2019-02-19T07:53:03.000Z
2019-11-05T10:21:21.000Z
src/ConverterPrinter/ExportFormatNotSupportedException.cpp
bas524/DocxFactory
8520eef9778d7e696a8013090396bb7b3f2936a0
[ "BSD-3-Clause" ]
null
null
null
src/ConverterPrinter/ExportFormatNotSupportedException.cpp
bas524/DocxFactory
8520eef9778d7e696a8013090396bb7b3f2936a0
[ "BSD-3-Clause" ]
1
2021-07-09T07:29:48.000Z
2021-07-09T07:29:48.000Z
#include "DocxFactory/ConverterPrinter/ExportFormatNotSupportedException.h" using namespace DocxFactory; using namespace std; ExportFormatNotSupportedException::ExportFormatNotSupportedException(const string& p_ext, const string& p_file, int p_line) : ConverterPrinterException(p_file, p_line) { m_what = "Export f...
29.125
123
0.791845
bas524
87d66d89fe1e2d5f27c42173a6e43c4eb29de7be
2,143
cpp
C++
raspimouse_control/src/leds.cpp
rt-net/raspimouse
1154fa648c2503d152794350bc11957cd2dbde8d
[ "Apache-2.0" ]
2
2022-01-27T03:37:36.000Z
2022-03-13T06:17:01.000Z
raspimouse_control/src/leds.cpp
rt-net/raspimouse
1154fa648c2503d152794350bc11957cd2dbde8d
[ "Apache-2.0" ]
null
null
null
raspimouse_control/src/leds.cpp
rt-net/raspimouse
1154fa648c2503d152794350bc11957cd2dbde8d
[ "Apache-2.0" ]
null
null
null
// SPDX-License-Identifier: Apache-2.0 /* * Copyright 2021 RT 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.apache.org/licenses/LICENSE-2.0 * * Unles...
31.514706
109
0.729818
rt-net
87da7c1e7c963ad8d69249263b01207662cec15a
664
hpp
C++
include/Material.hpp
nsilvestri/cpp-raytracer
79336657784f5bd76bb3d15985488bd61255e00b
[ "MIT" ]
1
2021-03-29T09:39:33.000Z
2021-03-29T09:39:33.000Z
include/Material.hpp
nsilvestri/cpp-raytracer
79336657784f5bd76bb3d15985488bd61255e00b
[ "MIT" ]
1
2021-05-19T05:55:23.000Z
2021-09-07T14:00:01.000Z
include/Material.hpp
nsilvestri/cpp-raytracer
79336657784f5bd76bb3d15985488bd61255e00b
[ "MIT" ]
null
null
null
#pragma once #include "RGBColor.hpp" class Material { private: RGBColor ambient; RGBColor diffuse; RGBColor specular; float phongExponent; public: Material(); Material(RGBColor ambient, RGBColor diffuse, RGBColor specular, float phongExponent); ...
27.666667
94
0.634036
nsilvestri
87dc04dbb972a724277b7295578461d7f2922b37
984
cpp
C++
Cplus/BalanceaBinarySearchTree.cpp
JumHorn/leetcode
1447237ae8fc3920b19f60b30c71a84b088cc200
[ "MIT" ]
1
2018-01-22T12:06:28.000Z
2018-01-22T12:06:28.000Z
Cplus/BalanceaBinarySearchTree.cpp
JumHorn/leetcode
1447237ae8fc3920b19f60b30c71a84b088cc200
[ "MIT" ]
null
null
null
Cplus/BalanceaBinarySearchTree.cpp
JumHorn/leetcode
1447237ae8fc3920b19f60b30c71a84b088cc200
[ "MIT" ]
null
null
null
#include <vector> using namespace std; // Definition for a binary tree node. struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode() : val(0), left(nullptr), right(nullptr) {} TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), left...
22.363636
87
0.652439
JumHorn
87e455cdca431272affbe7d2dc2ac4be609ae5ac
6,067
cpp
C++
00_playground/test/basics_working.cpp
r0oland/Baltopia
a772733a73fd54ad837f079b525bf8c7c09712bf
[ "MIT" ]
null
null
null
00_playground/test/basics_working.cpp
r0oland/Baltopia
a772733a73fd54ad837f079b525bf8c7c09712bf
[ "MIT" ]
null
null
null
00_playground/test/basics_working.cpp
r0oland/Baltopia
a772733a73fd54ad837f079b525bf8c7c09712bf
[ "MIT" ]
null
null
null
#include <Arduino.h> #include <OneWire.h> #include <DallasTemperature.h> #include <ESP8266WiFi.h> // replace with your channel’s thingspeak API key and your SSID and password String apiKey = "AJ60CMZMC275VGXY"; const char* ssid = "RazanskyLab"; const char* password = "WeLoveOptoacoustics"; const char* server ...
30.18408
84
0.626174
r0oland
87e4564492a2a02bdc044fa0c50a3db8fd5c013b
157
cpp
C++
libraries/chain/hive_objects.cpp
drov0/hive
747380ac6d1d621a99c94ccf3fd24bbece754a57
[ "MIT" ]
283
2020-03-20T02:13:12.000Z
2022-03-31T22:40:07.000Z
libraries/chain/hive_objects.cpp
drov0/hive
747380ac6d1d621a99c94ccf3fd24bbece754a57
[ "MIT" ]
19
2020-03-20T03:09:16.000Z
2021-08-28T22:35:09.000Z
libraries/chain/hive_objects.cpp
drov0/hive
747380ac6d1d621a99c94ccf3fd24bbece754a57
[ "MIT" ]
94
2020-03-20T01:53:05.000Z
2022-03-04T11:08:23.000Z
#include <hive/chain/hive_fwd.hpp> #include <hive/chain/hive_objects.hpp> #include <fc/uint128.hpp> namespace hive { namespace chain { } } // hive::chain
17.444444
38
0.719745
drov0
87e4d11f8971d6fba9eee2f4287c287d95092a04
1,112
cpp
C++
frameProcessor/src/MetaMessage.cpp
stfc-aeg/odin-data
6c6353a11e0b813fc9db866ba610649dbbec95da
[ "Apache-2.0" ]
7
2018-06-12T15:48:52.000Z
2021-06-01T03:50:42.000Z
frameProcessor/src/MetaMessage.cpp
stfc-aeg/odin-data
6c6353a11e0b813fc9db866ba610649dbbec95da
[ "Apache-2.0" ]
211
2017-05-18T13:38:02.000Z
2022-03-03T11:05:47.000Z
frameProcessor/src/MetaMessage.cpp
dls-controls/odin-data
ddbfb90d361d0b397fcfd30df4a749faaa8c84d6
[ "Apache-2.0" ]
8
2017-05-15T08:05:05.000Z
2022-03-13T18:31:41.000Z
/* * MetaMessage.cpp * * Created on: 5 May 2017 * Author: gnx91527 */ #include "MetaMessage.h" namespace FrameProcessor { MetaMessage::MetaMessage(const std::string& name, const std::string& item, const std::string& type, const std...
16.352941
55
0.593525
stfc-aeg
87e6301b3e7962a546e6a3a7d04ff402b7dfce3f
1,108
cpp
C++
src/examples/002/main.cpp
Dearast/AmberFramework
e8efb9616e837307e06b0abccee97d40b895b9b6
[ "MIT" ]
1
2021-02-11T19:01:45.000Z
2021-02-11T19:01:45.000Z
src/examples/002/main.cpp
Dearast/AmberFramework
e8efb9616e837307e06b0abccee97d40b895b9b6
[ "MIT" ]
null
null
null
src/examples/002/main.cpp
Dearast/AmberFramework
e8efb9616e837307e06b0abccee97d40b895b9b6
[ "MIT" ]
null
null
null
#include "../../framework/AmberFramework.h" class LayerExample : public Amber::Layer { public: LayerExample() { AMBER_CLIENT_INFO("LayerExample is constructed."); } ~LayerExample() { AMBER_CLIENT_INFO("LayerExample is destroyed."); } voi...
21.72549
63
0.561372
Dearast
87eb75dca5251e67348a4053f96784d742c21d69
2,363
cpp
C++
android-ndk-r10b/tests/device/test-stlport/unit/heap_test.cpp
perezite/Boost4Android
9ed03a45815aead156c129da1927cc04b8caa6a3
[ "BSL-1.0" ]
173
2015-01-02T11:14:08.000Z
2022-03-05T09:54:54.000Z
platform/shared/stlport/test/unit/heap_test.cpp
sdwood/rhodes
8228aa40708dcbcc1d3967a479d1d84364022255
[ "MIT" ]
263
2015-01-05T04:35:22.000Z
2021-09-07T06:00:02.000Z
platform/shared/stlport/test/unit/heap_test.cpp
sdwood/rhodes
8228aa40708dcbcc1d3967a479d1d84364022255
[ "MIT" ]
77
2015-01-12T20:57:18.000Z
2022-02-17T15:15:14.000Z
#include <vector> #include <algorithm> #include <functional> #include "cppunit/cppunit_proxy.h" #if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES) using namespace std; #endif // // TestCase class // class HeapTest : public CPPUNIT_NS::TestCase { CPPUNIT_TEST_SUITE(HeapTest); CPPUNIT_TEST(mkheap0); CPPUNIT...
21.678899
55
0.665679
perezite
87ec8a985d184f35f629fd458bfcca60eef5a925
1,155
cpp
C++
threadSERIAL.cpp
ghsecuritylab/sensorNetworks
c1edc40eaee13ac8d74ae36a2c4375e357dc68cc
[ "Apache-2.0" ]
null
null
null
threadSERIAL.cpp
ghsecuritylab/sensorNetworks
c1edc40eaee13ac8d74ae36a2c4375e357dc68cc
[ "Apache-2.0" ]
null
null
null
threadSERIAL.cpp
ghsecuritylab/sensorNetworks
c1edc40eaee13ac8d74ae36a2c4375e357dc68cc
[ "Apache-2.0" ]
1
2020-03-07T09:56:06.000Z
2020-03-07T09:56:06.000Z
#include "mbed.h" #include "MBed_Adafruit_GPS.h" Serial gps(PA_9,PA_10); //serial object for use w/ GPS Adafruit_GPS myGPS(&gps); Thread thread_serial(osPriorityNormal, 1024); extern int mode; void read_serial(void){ myGPS.begin(9600); //sets baud rate for GPS communication; note this may be changed via Adaf...
33.970588
156
0.660606
ghsecuritylab
87ed4662145967edb19d8d4a9410eb8a0f22da9f
353
cpp
C++
source/code/utilities/random/rand_impls/posix_1_2001_example.cpp
luxe/CodeLang-compiler
78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a
[ "MIT" ]
33
2019-05-30T07:43:32.000Z
2021-12-30T13:12:32.000Z
source/code/utilities/random/rand_impls/posix_1_2001_example.cpp
luxe/CodeLang-compiler
78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a
[ "MIT" ]
371
2019-05-16T15:23:50.000Z
2021-09-04T15:45:27.000Z
source/code/utilities/random/rand_impls/posix_1_2001_example.cpp
UniLang/compiler
c338ee92994600af801033a37dfb2f1a0c9ca897
[ "MIT" ]
6
2019-08-22T17:37:36.000Z
2020-11-07T07:15:32.000Z
#include "code/utilities/random/rand_impls/posix_1_2001_example.hpp" namespace posix_1_2001_example { static unsigned long next = 1; /* RAND_MAX assumed to be 32767 */ int rand(void) { next = next * 1103515245 + 12345; return((unsigned)(next/65536) % 32768); } void srand(unsigned seed...
22.0625
68
0.640227
luxe