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
b6631e5fe03301e322585f6155b9d652a9c169a1
15,337
hpp
C++
pyoptsparse/pyNOMAD/source/nomad_src/utils.hpp
robfalck/pyoptsparse
c99f4bfe8961492d0a1879f9ecff7a2fbb3c8c1d
[ "CNRI-Python" ]
26
2020-08-25T16:16:21.000Z
2022-03-10T08:23:57.000Z
pyoptsparse/pyNOMAD/source/nomad_src/utils.hpp
robfalck/pyoptsparse
c99f4bfe8961492d0a1879f9ecff7a2fbb3c8c1d
[ "CNRI-Python" ]
90
2020-08-24T23:02:47.000Z
2022-03-29T13:48:15.000Z
pyoptsparse/pyNOMAD/source/nomad_src/utils.hpp
robfalck/pyoptsparse
c99f4bfe8961492d0a1879f9ecff7a2fbb3c8c1d
[ "CNRI-Python" ]
25
2020-08-24T19:28:24.000Z
2022-01-27T21:17:37.000Z
/*-------------------------------------------------------------------------------------*/ /* NOMAD - Nonlinear Optimization by Mesh Adaptive Direct search - version 3.7.1 */ /* */ /* Copyright (C) 2001-2015 Mark Abramson ...
39.528351
101
0.539936
robfalck
b667ce76b759e26185617e0e079688bbd23bc02c
10,723
cpp
C++
test/systemtest/common/distributedpermission/distributed_permission_duid_transform_test/bundle_grant.cpp
openharmony-sig-ci/security_permission
50f01f7890efa8a967178b4b9553e86254854db9
[ "Apache-2.0" ]
null
null
null
test/systemtest/common/distributedpermission/distributed_permission_duid_transform_test/bundle_grant.cpp
openharmony-sig-ci/security_permission
50f01f7890efa8a967178b4b9553e86254854db9
[ "Apache-2.0" ]
null
null
null
test/systemtest/common/distributedpermission/distributed_permission_duid_transform_test/bundle_grant.cpp
openharmony-sig-ci/security_permission
50f01f7890efa8a967178b4b9553e86254854db9
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
40.617424
114
0.71687
openharmony-sig-ci
b668260f577763c195ed675b033a0508f6143c98
2,095
hpp
C++
ODFAEG/include/odfaeg/Graphics/particleSystemUpdater.hpp
Mechap/ODFAEG
ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40
[ "Zlib" ]
null
null
null
ODFAEG/include/odfaeg/Graphics/particleSystemUpdater.hpp
Mechap/ODFAEG
ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40
[ "Zlib" ]
1
2020-02-14T14:19:44.000Z
2020-12-04T17:39:17.000Z
ODFAEG/include/odfaeg/Graphics/particleSystemUpdater.hpp
Mechap/ODFAEG
ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40
[ "Zlib" ]
2
2021-05-23T13:45:28.000Z
2021-07-24T13:36:13.000Z
#ifndef ODFAEG_PARTICLES_UPDATER_HPP #define ODFAEG_PARTICLES_UPDATER_HPP #include "../Physics/particuleSystem.h" #include "../Graphics/world.h" #include "export.hpp" /** *\namespace odfaeg * the namespace of the Opensource Development Framework Adapted for Every Games. */ namespace odfaeg { namespace graphic { ...
35.508475
122
0.521718
Mechap
b6688abaa85db28771b30ef347123aa7d8eef7b2
589
cpp
C++
Chapter07/Source_Code/fifth.cpp
ngdzu/CPP-Reactive-Programming
e1a19feb40be086d47227587b8ed3d509b7518ca
[ "MIT" ]
98
2018-07-03T08:55:31.000Z
2022-03-21T22:16:58.000Z
Chapter07/Source_Code/fifth.cpp
ngdzu/CPP-Reactive-Programming
e1a19feb40be086d47227587b8ed3d509b7518ca
[ "MIT" ]
1
2020-11-30T10:38:58.000Z
2020-12-15T06:56:20.000Z
Chapter07/Source_Code/fifth.cpp
ngdzu/CPP-Reactive-Programming
e1a19feb40be086d47227587b8ed3d509b7518ca
[ "MIT" ]
54
2018-07-06T02:09:27.000Z
2021-11-10T08:42:50.000Z
#include "rxcpp/rx.hpp" #include "rxcpp/rx-test.hpp" #include <iostream> #include <array> int main() { auto values = rxcpp::observable<>::range(1); // infinite (until overflow) stream of integers auto s1 = values. take(3). map([](int prime) { return std::make_tuple("1:", prime);}); auto ...
19.633333
93
0.521222
ngdzu
b66acee2264e702e72c3a5d8f328a6aabaeff3be
1,780
hpp
C++
test/testutil/literals.hpp
soramitsu/kagome
d66755924477f2818fcae30ba2e65681fce34264
[ "Apache-2.0" ]
110
2019-04-03T13:39:39.000Z
2022-03-09T11:54:42.000Z
test/testutil/literals.hpp
soramitsu/kagome
d66755924477f2818fcae30ba2e65681fce34264
[ "Apache-2.0" ]
890
2019-03-22T21:33:30.000Z
2022-03-31T14:31:22.000Z
test/testutil/literals.hpp
soramitsu/kagome
d66755924477f2818fcae30ba2e65681fce34264
[ "Apache-2.0" ]
27
2019-06-25T06:21:47.000Z
2021-11-01T14:12:10.000Z
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #ifndef KAGOME_TEST_TESTUTIL_LITERALS_HPP_ #define KAGOME_TEST_TESTUTIL_LITERALS_HPP_ #include <libp2p/multi/multiaddress.hpp> #include <libp2p/multi/multihash.hpp> #include <libp2p/peer/peer_id.hpp> #include "common/...
31.22807
79
0.688764
soramitsu
b66c3580439d08af4319f8072336ef728b6ec2b6
7,276
cpp
C++
gme/src/v20180711/model/CreateAppRequest.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
43
2019-08-14T08:14:12.000Z
2022-03-30T12:35:09.000Z
gme/src/v20180711/model/CreateAppRequest.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
12
2019-07-15T10:44:59.000Z
2021-11-02T12:35:00.000Z
gme/src/v20180711/model/CreateAppRequest.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
28
2019-07-12T09:06:22.000Z
2022-03-30T08:04:18.000Z
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
27.456604
104
0.708356
suluner
b66fd0f8780dc04af689585987afb0d94d5036cc
421
cpp
C++
docker/cytnx/src/utils/is.cpp
j9263178/Cytnx
cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b
[ "Apache-2.0" ]
11
2020-04-14T15:45:42.000Z
2022-03-31T14:37:03.000Z
docker/cytnx/src/utils/is.cpp
j9263178/Cytnx
cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b
[ "Apache-2.0" ]
38
2019-08-02T15:15:51.000Z
2022-03-04T19:07:02.000Z
docker/cytnx/src/utils/is.cpp
j9263178/Cytnx
cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b
[ "Apache-2.0" ]
7
2019-07-17T07:50:55.000Z
2021-07-03T06:44:52.000Z
#include "utils/is.hpp" namespace cytnx{ bool is(const Tensor &L, const Tensor &R){ return (L._impl == R._impl); } bool is(const Storage &L, const Storage &R){ return (L._impl == R._impl); } bool is(const Bond &L, const Bond &R){ return (L._impl == R._impl); }...
17.541667
50
0.534442
j9263178
b6743871ee08c8b53fa206d97ec911fbcce81f84
307
cpp
C++
kmerInput/Statistic.cpp
Lw-Cui/kmer-exp
cc9df6339c6a07d63483e6a6dd8f2c13e9865b0e
[ "MIT" ]
null
null
null
kmerInput/Statistic.cpp
Lw-Cui/kmer-exp
cc9df6339c6a07d63483e6a6dd8f2c13e9865b0e
[ "MIT" ]
null
null
null
kmerInput/Statistic.cpp
Lw-Cui/kmer-exp
cc9df6339c6a07d63483e6a6dd8f2c13e9865b0e
[ "MIT" ]
null
null
null
#include <cstring> #include <map> #include <cstdio> using namespace std; int main() { map<int, int> count; int num; while (scanf("%*s%d", &num) != EOF) count[num]++; for (map<int, int>::iterator p = count.begin(); p != count.end(); p++) printf("%5d: %10d\n", p->first, p->second); return 0; }
18.058824
48
0.586319
Lw-Cui
b67541f04f69aeaa74a34629e928bf51df5a3ca3
273
hpp
C++
include/cpu/cpu.hpp
anthony-benavente/chip8emu
5ffe96ac252d15bfe0242fc6e1a550844510b31b
[ "MIT" ]
null
null
null
include/cpu/cpu.hpp
anthony-benavente/chip8emu
5ffe96ac252d15bfe0242fc6e1a550844510b31b
[ "MIT" ]
null
null
null
include/cpu/cpu.hpp
anthony-benavente/chip8emu
5ffe96ac252d15bfe0242fc6e1a550844510b31b
[ "MIT" ]
null
null
null
#ifndef CPU_H #define CPU_H #include "program/program.hpp" class Cpu { public: bool drawFlag; Cpu() : drawFlag(false) {} virtual void emulateCycle() = 0; virtual unsigned char getPixel(int x, int y) = 0; virtual void loadProgram(program_t *program) = 0; }; #endif
16.058824
50
0.703297
anthony-benavente
b679acd2c820753b72efd9f2494a17c0b9797a10
250
cpp
C++
Game/Client/WXClient/Network/PacketHandler/CGAskActiveTimeUpdateHandler.cpp
hackerlank/SourceCode
b702c9e0a9ca5d86933f3c827abb02a18ffc9a59
[ "MIT" ]
4
2021-07-31T13:56:01.000Z
2021-11-13T02:55:10.000Z
Game/Client/WXClient/Network/PacketHandler/CGAskActiveTimeUpdateHandler.cpp
shacojx/SourceCodeGameTLBB
e3cea615b06761c2098a05427a5f41c236b71bf7
[ "MIT" ]
null
null
null
Game/Client/WXClient/Network/PacketHandler/CGAskActiveTimeUpdateHandler.cpp
shacojx/SourceCodeGameTLBB
e3cea615b06761c2098a05427a5f41c236b71bf7
[ "MIT" ]
7
2021-08-31T14:34:23.000Z
2022-01-19T08:25:58.000Z
#include "StdAfx.h" #include "CGAskActiveTimeUpdate.h" uint CGAskActiveTimeUpdateHandler::Execute( CGAskActiveTimeUpdate* pPacket, Player* pPlayer ) { __ENTER_FUNCTION return PACKET_EXE_CONTINUE ; __LEAVE_FUNCTION return PACKET_EXE_ERROR ; }
17.857143
93
0.808
hackerlank
b67a171f12c52a9659fcb57e4c506286c0195d73
1,337
cpp
C++
Source/KPokemon_DX11/KSpriteEffect.cpp
jiwonchoidd/PokemonDP_DX11
828ef195c7c66b4c5489944e930acee96940c816
[ "BSD-2-Clause" ]
1
2022-03-25T08:55:53.000Z
2022-03-25T08:55:53.000Z
Source/KPokemon_DX11/KSpriteEffect.cpp
jiwonchoidd/PokemonDP_DX11
828ef195c7c66b4c5489944e930acee96940c816
[ "BSD-2-Clause" ]
null
null
null
Source/KPokemon_DX11/KSpriteEffect.cpp
jiwonchoidd/PokemonDP_DX11
828ef195c7c66b4c5489944e930acee96940c816
[ "BSD-2-Clause" ]
null
null
null
#include "KSpriteEffect.h" bool KSpriteEffect::Init(ID3D11DeviceContext* context, std::wstring vs, std::wstring ps, std::wstring tex, std::wstring mask) { m_pContext = context; m_Current_Index=0; m_Timer=0.0f; m_bEnd = false; m_Color = { 1,1,1,1 }; m_cbData.vLightDir = m_Color; K2DAsset::CreateObject_Mask(vs,ps,...
19.955224
125
0.694091
jiwonchoidd
b67bd357593d19a2c531c0b73853cd0237def5e6
8,693
cpp
C++
geocoding/src/geocoding/RevGeocoder.cpp
farfromrefug/mobile-carto-libs
c7e81a7c73661aa047de9ba7e8bbdf3a24bbf1df
[ "BSD-3-Clause" ]
6
2018-06-27T17:43:35.000Z
2021-06-29T18:50:49.000Z
geocoding/src/geocoding/RevGeocoder.cpp
farfromrefug/mobile-carto-libs
c7e81a7c73661aa047de9ba7e8bbdf3a24bbf1df
[ "BSD-3-Clause" ]
22
2019-04-10T06:38:09.000Z
2022-01-20T08:12:02.000Z
geocoding/src/geocoding/RevGeocoder.cpp
farfromrefug/mobile-carto-libs
c7e81a7c73661aa047de9ba7e8bbdf3a24bbf1df
[ "BSD-3-Clause" ]
5
2019-03-12T10:25:20.000Z
2021-12-28T10:18:56.000Z
#include "RevGeocoder.h" #include "FeatureReader.h" #include "ProjUtils.h" #include "AddressInterpolator.h" #include <functional> #include <boost/algorithm/string/split.hpp> #include <boost/algorithm/string/classification.hpp> #include <sqlite3pp.h> namespace carto { namespace geocoding { bool RevGeocoder::impo...
44.352041
184
0.579317
farfromrefug
b67d83c5ba68070fd07f4d78be656de6227e3c02
1,291
cpp
C++
src/main/cpp/lemon/test/runner.cpp
lemonkit/lemon
ad34410586659fc650898b60d7e168797a3d9e5b
[ "MIT" ]
1
2018-01-12T05:13:58.000Z
2018-01-12T05:13:58.000Z
src/main/cpp/lemon/test/runner.cpp
lemonkit/lemon
ad34410586659fc650898b60d7e168797a3d9e5b
[ "MIT" ]
null
null
null
src/main/cpp/lemon/test/runner.cpp
lemonkit/lemon
ad34410586659fc650898b60d7e168797a3d9e5b
[ "MIT" ]
null
null
null
#include <iostream> #include <lemon/log/log.hpp> #include <lemon/test/unit.hpp> #include <lemon/test/macro.hpp> #include <lemon/test/runner.hpp> namespace lemon {namespace test{ runner& runner::instance() { static runner global; return global; } void runner::run() { runne...
23.053571
144
0.490318
lemonkit
b67dade3529bdcf9a4f95aabe4a68bc55561f546
3,298
cpp
C++
src/CBrowserRenderer.cpp
colinw7/CBrowser
d6aaaf536aa2f2bab0575439b75cf83a6d033db9
[ "MIT" ]
1
2021-12-23T02:21:28.000Z
2021-12-23T02:21:28.000Z
src/CBrowserRenderer.cpp
colinw7/CBrowser
d6aaaf536aa2f2bab0575439b75cf83a6d033db9
[ "MIT" ]
null
null
null
src/CBrowserRenderer.cpp
colinw7/CBrowser
d6aaaf536aa2f2bab0575439b75cf83a6d033db9
[ "MIT" ]
2
2017-05-04T05:38:49.000Z
2019-04-01T13:23:55.000Z
#include <CBrowserRenderer.h> #include <CBrowserWindowWidget.h> #include <CQUtil.h> #include <CQPenUtil.h> #include <CQBrushUtil.h> #include <CQFontUtil.h> #include <CQImageUtil.h> #include <QPainter> CBrowserRenderer:: CBrowserRenderer(CBrowserWindowWidget *w) : w_(w), pixmap_(0), painter_(0) { pixmap_width_ = 0;...
20.358025
91
0.700121
colinw7
b67ea9453867e82b38a780ba2df51899ae01d5ea
10,108
hpp
C++
include/GlobalNamespace/BeatmapDataSO_-GetBeatmapDataAsync-d__2.hpp
RedBrumbler/BeatSaber-Quest-Codegen
73dda50b5a3e51f10d86b766dcaa24b0c6226e25
[ "Unlicense" ]
null
null
null
include/GlobalNamespace/BeatmapDataSO_-GetBeatmapDataAsync-d__2.hpp
RedBrumbler/BeatSaber-Quest-Codegen
73dda50b5a3e51f10d86b766dcaa24b0c6226e25
[ "Unlicense" ]
null
null
null
include/GlobalNamespace/BeatmapDataSO_-GetBeatmapDataAsync-d__2.hpp
RedBrumbler/BeatSaber-Quest-Codegen
73dda50b5a3e51f10d86b766dcaa24b0c6226e25
[ "Unlicense" ]
null
null
null
// 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: BeatmapDataSO #include "GlobalNames...
58.767442
1,111
0.757618
RedBrumbler
b68060e67087fb74d7b0d88cd62ff5cce855465a
1,237
hpp
C++
src/graphics/TypeNames.hpp
Sam-Belliveau/MKS66-Graphics-Library
4ccf04f977a15007e32bdb5a238704eaaff0c895
[ "MIT" ]
null
null
null
src/graphics/TypeNames.hpp
Sam-Belliveau/MKS66-Graphics-Library
4ccf04f977a15007e32bdb5a238704eaaff0c895
[ "MIT" ]
null
null
null
src/graphics/TypeNames.hpp
Sam-Belliveau/MKS66-Graphics-Library
4ccf04f977a15007e32bdb5a238704eaaff0c895
[ "MIT" ]
null
null
null
#pragma once /** * Copyright (c) 2022 Sam Belliveau * * 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, modi...
26.891304
81
0.689572
Sam-Belliveau
b683049cc1444a2f3f1fc814d6788c56abee532f
32,602
cpp
C++
src/shape.cpp
yenyi/kicadPcb
f624156f59829554cb9fbf9b0438e7b84a42ee94
[ "BSD-3-Clause" ]
6
2020-02-08T07:29:42.000Z
2020-11-25T03:09:13.000Z
src/shape.cpp
yenyi/kicadPcb
f624156f59829554cb9fbf9b0438e7b84a42ee94
[ "BSD-3-Clause" ]
2
2019-12-23T17:19:41.000Z
2020-01-09T00:10:50.000Z
src/shape.cpp
yenyi/kicadPcb
f624156f59829554cb9fbf9b0438e7b84a42ee94
[ "BSD-3-Clause" ]
5
2020-10-16T23:59:42.000Z
2021-04-28T05:49:22.000Z
#include "shape.h" points_2d rotateShapeCoordsByAngles(const points_2d &shape, double instAngle, double padAngle) { auto cords = points_2d{}; auto rads = fmod((instAngle + padAngle) * -M_PI / 180, 2 * M_PI); auto s = sin(rads); auto c = cos(rads); for (auto &p : shape) { auto px = doubl...
33.995829
171
0.518833
yenyi
b686fe89416d5388886f05cde0320c1fbbec8d63
2,136
cpp
C++
poincare/src/frac_part.cpp
VersiraSec/epsilon-cfw
d12b44c6c6668ecc14b60d8dd098ba5c230b1291
[ "FSFAP" ]
1,442
2017-08-28T19:39:45.000Z
2022-03-30T00:56:14.000Z
poincare/src/frac_part.cpp
VersiraSec/epsilon-cfw
d12b44c6c6668ecc14b60d8dd098ba5c230b1291
[ "FSFAP" ]
1,321
2017-08-28T23:03:10.000Z
2022-03-31T19:32:17.000Z
poincare/src/frac_part.cpp
VersiraSec/epsilon-cfw
d12b44c6c6668ecc14b60d8dd098ba5c230b1291
[ "FSFAP" ]
421
2017-08-28T22:02:39.000Z
2022-03-28T20:52:21.000Z
#include <poincare/frac_part.h> #include <poincare/layout_helper.h> #include <poincare/serialization_helper.h> #include <poincare/simplification_helper.h> #include <poincare/rational.h> #include <cmath> namespace Poincare { constexpr Expression::FunctionHelper FracPart::s_functionHelper; int FracPartNode::numberOfCh...
36.20339
143
0.767322
VersiraSec
b687f2f402173eb1b7d32c6a6085eb022306d9a1
17,558
cc
C++
src/driver/parser.cc
cforall/resolv-proto
4eb7c0b9f4e75b940205e808e14fa57f13541246
[ "BSD-3-Clause" ]
2
2019-05-13T10:26:02.000Z
2019-05-13T15:04:42.000Z
src/driver/parser.cc
cforall/resolv-proto
4eb7c0b9f4e75b940205e808e14fa57f13541246
[ "BSD-3-Clause" ]
null
null
null
src/driver/parser.cc
cforall/resolv-proto
4eb7c0b9f4e75b940205e808e14fa57f13541246
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2015 University of Waterloo // // The contents of this file are covered under the licence agreement in // the file "LICENCE" distributed with this repository. #include "parser.h" #include <cstdlib> #include <iostream> #include <string> #include "args.h" #include "parser_common.h" #include "ast/dec...
28.319355
99
0.650644
cforall
b692bd9f43bf79f36ad69388ce178bf388749810
873
cpp
C++
examples/priority_queue.cpp
miachm/STL-Threadsafe
08b2d9e7f487121088a817071d1d42b2736996e9
[ "Apache-2.0" ]
9
2017-07-25T23:22:54.000Z
2021-07-06T06:24:46.000Z
examples/priority_queue.cpp
miachm/STL-Threadsafe
08b2d9e7f487121088a817071d1d42b2736996e9
[ "Apache-2.0" ]
null
null
null
examples/priority_queue.cpp
miachm/STL-Threadsafe
08b2d9e7f487121088a817071d1d42b2736996e9
[ "Apache-2.0" ]
3
2020-12-11T03:02:35.000Z
2021-08-22T17:01:28.000Z
#include <iostream> #include <thread> #include "priority_queue-threadsafe.hpp" int main(){ std::threadsafe::priority_queue<int> bids; std::thread producer([&]{ int randomBids[20] = {3,19,11,2,4,12,1,20,14,5,18,10,15,8,17,6,16,7,9,13}; for (int i = 0;i < 20;i++){ bids.push(randomBids[i]); std::this_thread:...
22.973684
76
0.610538
miachm
b699379d09377d60e623f06ea2d6dbdfac24156e
2,339
cpp
C++
day2/main.cpp
fardragon/AdventOfCode2021
16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea
[ "MIT" ]
1
2021-12-02T14:11:37.000Z
2021-12-02T14:11:37.000Z
day2/main.cpp
fardragon/AdventOfCode2021
16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea
[ "MIT" ]
null
null
null
day2/main.cpp
fardragon/AdventOfCode2021
16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea
[ "MIT" ]
null
null
null
#include "shared.hpp" #include <iostream> #include <numeric> #include <chrono> std::uint32_t SolvePart1(const std::vector<std::pair<std::string, std::uint16_t>> &input); std::uint32_t SolvePart2(const std::vector<std::pair<std::string, std::uint16_t>> &input); //std::uint16_t SolvePart2(const std::vector<uint16_t> &...
22.066038
111
0.626764
fardragon
b69cadb7957bd91901a1abec8d2f2851c06e2d19
1,199
cpp
C++
vespalib/src/vespa/vespalib/io/mapped_file_input.cpp
amahussein/vespa
29d266ae1e5c95e25002b97822953fdd02b1451e
[ "Apache-2.0" ]
1
2018-12-30T05:42:18.000Z
2018-12-30T05:42:18.000Z
vespalib/src/vespa/vespalib/io/mapped_file_input.cpp
amahussein/vespa
29d266ae1e5c95e25002b97822953fdd02b1451e
[ "Apache-2.0" ]
1
2021-01-21T01:37:37.000Z
2021-01-21T01:37:37.000Z
vespalib/src/vespa/vespalib/io/mapped_file_input.cpp
amahussein/vespa
29d266ae1e5c95e25002b97822953fdd02b1451e
[ "Apache-2.0" ]
1
2020-09-03T11:39:52.000Z
2020-09-03T11:39:52.000Z
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "mapped_file_input.h" #include <fcntl.h> #include <unistd.h> #include <sys/stat.h> #include <sys/mman.h> namespace vespalib { MappedFileInput::MappedFileInput(const vespalib::string &file_n...
21.035088
118
0.597164
amahussein
b69fcc70e50199b0bb9e54a0c8a70a9541a46b7e
172
hpp
C++
Engine/Include/FishEngine/Path.hpp
ValtoGameEngines/Fish-Engine
a4b9fb9b0a6dc202f7990e75f4b7d8d5163209d9
[ "MIT" ]
240
2017-02-17T10:08:19.000Z
2022-03-25T14:45:29.000Z
Engine/Include/FishEngine/Path.hpp
ValtoGameEngines/Fish-Engine
a4b9fb9b0a6dc202f7990e75f4b7d8d5163209d9
[ "MIT" ]
2
2016-10-12T07:08:38.000Z
2017-04-05T01:56:30.000Z
Engine/Include/FishEngine/Path.hpp
yushroom/FishEngine
a4b9fb9b0a6dc202f7990e75f4b7d8d5163209d9
[ "MIT" ]
39
2017-03-02T09:40:07.000Z
2021-12-04T07:28:53.000Z
#define BOOST_FILESYSTEM_NO_DEPRECATED #include <boost/filesystem.hpp> #include <boost/filesystem/path.hpp> namespace FishEngine { using Path = boost::filesystem::path; }
21.5
38
0.796512
ValtoGameEngines
b6a13a7a5065dffa2991612f340a13fa50cd7192
3,157
cc
C++
src/main/cc/estimation/estimators.cc
world-federation-of-advertisers/any-sketch
728588eb4b02b6f0cd049cf8902dfa148e32560d
[ "Apache-2.0" ]
1
2021-03-29T16:50:52.000Z
2021-03-29T16:50:52.000Z
src/main/cc/estimation/estimators.cc
world-federation-of-advertisers/any-sketch
728588eb4b02b6f0cd049cf8902dfa148e32560d
[ "Apache-2.0" ]
2
2021-04-14T00:35:09.000Z
2021-07-07T13:47:47.000Z
src/main/cc/estimation/estimators.cc
world-federation-of-advertisers/any-sketch
728588eb4b02b6f0cd049cf8902dfa148e32560d
[ "Apache-2.0" ]
null
null
null
// Copyright 2020 The Cross-Media Measurement Authors // // 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 applic...
35.47191
79
0.679126
world-federation-of-advertisers
b6a26a510f6b78583d7ef149fb455db65ac8d300
458
hpp
C++
tools/stopwatch.hpp
matumoto1234/library
a2c80516a8afe5876696c139fe0e837d8a204f69
[ "Unlicense" ]
2
2021-06-24T11:21:08.000Z
2022-03-15T05:57:25.000Z
tools/stopwatch.hpp
matumoto1234/library
a2c80516a8afe5876696c139fe0e837d8a204f69
[ "Unlicense" ]
102
2021-10-30T21:30:00.000Z
2022-03-26T18:39:47.000Z
tools/stopwatch.hpp
matumoto1234/library
a2c80516a8afe5876696c139fe0e837d8a204f69
[ "Unlicense" ]
null
null
null
#pragma once #include "./base.hpp" #include <chrono> namespace tools { struct Stopwatch { chrono::high_resolution_clock::time_point start; Stopwatch() { restart(); } void restart() { start = chrono::high_resolution_clock::now(); } chrono::milliseconds::rep elapsed() { auto end = chrono::hi...
22.9
78
0.665939
matumoto1234
b6a8407a1c18fbf1f8a711a92f2ee4e12327aa21
20,315
cpp
C++
ICG/src/tracker.cpp
XiaoJake/3DObjectTracking
c1fbf9241a0cd1ce450a1d6b86c67613025e1836
[ "MIT" ]
1
2022-03-17T08:17:47.000Z
2022-03-17T08:17:47.000Z
ICG/src/tracker.cpp
0smile/3DObjectTracking
c1fbf9241a0cd1ce450a1d6b86c67613025e1836
[ "MIT" ]
null
null
null
ICG/src/tracker.cpp
0smile/3DObjectTracking
c1fbf9241a0cd1ce450a1d6b86c67613025e1836
[ "MIT" ]
null
null
null
// SPDX-License-Identifier: MIT // Copyright (c) 2022 Manuel Stoiber, German Aerospace Center (DLR) #include <icg/tracker.h> namespace icg { Tracker::Tracker(const std::string &name, int n_corr_iterations, int n_update_iterations, bool synchronize_cameras, const std::chrono::millise...
32.194929
80
0.704209
XiaoJake
b6a95c64cfaa3b62665f75129a8ddd8523dfcb24
1,402
hpp
C++
src/ivorium_graphics/Rendering/Shader.hpp
ivorne/ivorium
1d876b6dcabe29b3110d3058f997e59c40cd6a2b
[ "Apache-2.0" ]
3
2021-02-26T02:59:09.000Z
2022-02-08T16:44:21.000Z
src/ivorium_graphics/Rendering/Shader.hpp
ivorne/ivorium
1d876b6dcabe29b3110d3058f997e59c40cd6a2b
[ "Apache-2.0" ]
null
null
null
src/ivorium_graphics/Rendering/Shader.hpp
ivorne/ivorium
1d876b6dcabe29b3110d3058f997e59c40cd6a2b
[ "Apache-2.0" ]
null
null
null
#pragma once #include "../OpenGL/GlTexture.hpp" #include "../OpenGL/GlProgram.hpp" #include "../OpenGL/gl.h" #include "GlSystem.hpp" #include <ivorium_systems/ivorium_systems.hpp> #include <ivorium_core/ivorium_core.hpp> namespace iv { /** To create shader using VirtualResourceProvider method, construct it from...
29.208333
174
0.524964
ivorne
b6ad33a4e32cc545c631d299f020d045489c281c
686
cpp
C++
src/DesignerPlugin/SARibbonPluginCollection.cpp
EMinsight/SARibbon
4c211e961dfdf3e953b4f89bdd9acf25db1e3da6
[ "MIT" ]
374
2017-12-27T01:08:45.000Z
2022-03-30T16:16:36.000Z
src/DesignerPlugin/SARibbonPluginCollection.cpp
EMinsight/SARibbon
4c211e961dfdf3e953b4f89bdd9acf25db1e3da6
[ "MIT" ]
33
2017-12-07T09:24:31.000Z
2022-03-29T07:53:51.000Z
src/DesignerPlugin/SARibbonPluginCollection.cpp
EMinsight/SARibbon
4c211e961dfdf3e953b4f89bdd9acf25db1e3da6
[ "MIT" ]
161
2017-11-24T03:12:29.000Z
2022-03-26T04:11:48.000Z
#include "SARibbonPluginCollection.h" #include "SARibbonMainWindowDesignerPlugin.h" #include "SARibbonBarDesignerPlugin.h" #include "SARibbonCategoryDesignerPlugin.h" #include "SARibbonPannelDesignerPlugin.h" using namespace SA_PLUGIN; SARibbonPluginCollection::SARibbonPluginCollection(QObject *p) : QObject(p) { m...
34.3
87
0.817784
EMinsight
b6ada5a29317a14bb626e6073fd0c5781baeabff
1,899
cpp
C++
Array/Snail Sort/main.cpp
pratikj697/hacktoberfest-competitiveprogramming
3b392edf61d2bd284bd5714af72abd76ff049340
[ "MIT" ]
22
2021-10-02T13:18:58.000Z
2021-10-13T18:27:06.000Z
Array/Snail Sort/main.cpp
pratikj697/hacktoberfest-competitiveprogramming
3b392edf61d2bd284bd5714af72abd76ff049340
[ "MIT" ]
96
2021-10-02T14:14:43.000Z
2021-10-09T06:17:33.000Z
Array/Snail Sort/main.cpp
pratikj697/hacktoberfest-competitiveprogramming
3b392edf61d2bd284bd5714af72abd76ff049340
[ "MIT" ]
112
2021-10-02T14:57:15.000Z
2021-10-15T05:45:30.000Z
#include <bits/stdc++.h> using namespace std; vector<int> snail(const vector<vector<int>> &snail_map) { vector<vector<int>> input = snail_map; //check if the vector size is greater than 1 if (input.size() > 1) { vector<int> answer; // push the first row in the answer vector ...
24.662338
102
0.493418
pratikj697
b6b4d64f46c26a28f0216235aade202182e0cfe5
15,740
cpp
C++
src/Organism.cpp
Sn0wFox/ot3-pro2017
889dcbb1ad0203a916e7431c6525fded49ef57dd
[ "MIT" ]
1
2017-11-13T07:23:52.000Z
2017-11-13T07:23:52.000Z
src/Organism.cpp
Sn0wFox/ot3-pro2017
889dcbb1ad0203a916e7431c6525fded49ef57dd
[ "MIT" ]
null
null
null
src/Organism.cpp
Sn0wFox/ot3-pro2017
889dcbb1ad0203a916e7431c6525fded49ef57dd
[ "MIT" ]
null
null
null
// // Created by arrouan on 28/09/16. // #include "Organism.h" #include "DNA.h" #include "Common.h" #include <map> void Organism::translate_RNA() { RNA* current_rna = nullptr; for (auto it = dna_->bp_list_.begin(); it != dna_->bp_list_.end(); it++) { if ((*it)->type_ == (int)BP::BP_Type::START_RNA) { c...
33.99568
148
0.621283
Sn0wFox
b6b5fe4613ca8b0c02dd1317846a4aa778714896
8,263
cxx
C++
Temporary/itkDijkstrasAlgorithm.cxx
KevinScholtes/ANTsX
5462269c0c32e5d65560bae4014c5a05cb02588d
[ "BSD-3-Clause" ]
null
null
null
Temporary/itkDijkstrasAlgorithm.cxx
KevinScholtes/ANTsX
5462269c0c32e5d65560bae4014c5a05cb02588d
[ "BSD-3-Clause" ]
null
null
null
Temporary/itkDijkstrasAlgorithm.cxx
KevinScholtes/ANTsX
5462269c0c32e5d65560bae4014c5a05cb02588d
[ "BSD-3-Clause" ]
1
2019-10-06T07:31:58.000Z
2019-10-06T07:31:58.000Z
/*========================================================================= Program: Insight Segmentation & Registration Toolkit (ITK) =========================================================================*/ #ifndef _itkDijkstrasAlgorithm_cxx_ #define _itkDijkstrasAlgorithm_cxx_ #include "itkDijkstrasAlgorith...
29.510714
102
0.634394
KevinScholtes
b6b72c1630b812386588a73fbd70d8cc1da09715
368
cpp
C++
5 Star 30 Days Of Code/Day 2 Operators.cpp
TheCodeAlpha26/Hackerrank-Demystified
03713a8f3a05e5d6dfed6f6808b06340558e2310
[ "Apache-2.0" ]
6
2021-04-26T17:09:54.000Z
2021-07-08T17:36:16.000Z
5 Star 30 Days Of Code/Day 2 Operators.cpp
TheCodeAlpha26/Hackerrank-Demystified
03713a8f3a05e5d6dfed6f6808b06340558e2310
[ "Apache-2.0" ]
null
null
null
5 Star 30 Days Of Code/Day 2 Operators.cpp
TheCodeAlpha26/Hackerrank-Demystified
03713a8f3a05e5d6dfed6f6808b06340558e2310
[ "Apache-2.0" ]
null
null
null
#include <bits/stdc++.h> using namespace std; void solve(double mc, int tp, int tx) { double t=0.01*mc*(100+tx+tp); printf("%.0f",t); //.0f to set precision (to nearest integer) } int main() { double meal_cost; cin >> meal_cost; int tip_percent,tp; cin >> tip_percent>>tp; sol...
23
78
0.597826
TheCodeAlpha26
b6b7a543f82a8096c663767628acda3aa22013b8
22,994
cpp
C++
code_reading/oceanbase-master/src/storage/ob_sstable_rowkey_helper.cpp
wangcy6/weekly_read
3a8837ee9cd957787ee1785e4066dd623e02e13a
[ "Apache-2.0" ]
null
null
null
code_reading/oceanbase-master/src/storage/ob_sstable_rowkey_helper.cpp
wangcy6/weekly_read
3a8837ee9cd957787ee1785e4066dd623e02e13a
[ "Apache-2.0" ]
null
null
null
code_reading/oceanbase-master/src/storage/ob_sstable_rowkey_helper.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...
38.710438
119
0.670175
wangcy6
b6b9685cab98a2ba3d1d8883d8142265d8a14a78
1,601
hpp
C++
libbio/include/bio/crypto/crypto_Sha256.hpp
biosphere-switch/libbio
7c892ff1e0f47e4612f3b66fdf043216764dfd1b
[ "MIT" ]
null
null
null
libbio/include/bio/crypto/crypto_Sha256.hpp
biosphere-switch/libbio
7c892ff1e0f47e4612f3b66fdf043216764dfd1b
[ "MIT" ]
null
null
null
libbio/include/bio/crypto/crypto_Sha256.hpp
biosphere-switch/libbio
7c892ff1e0f47e4612f3b66fdf043216764dfd1b
[ "MIT" ]
null
null
null
#pragma once #include <bio/mem/mem_Memory.hpp> namespace bio::crypto { // Grabbed from libnx, hardware-accelerated impl class Sha256Context { public: static constexpr u64 HashSize = 0x20; static constexpr u64 HashSize32 = HashSize / sizeof(u32); static constexpr ...
29.648148
113
0.564022
biosphere-switch
b6baf75f42c6a0f942ec07d8a30159d3dc2b9ad6
935
hpp
C++
libraries/plugins/apis/account_by_key_api/include/delta/plugins/account_by_key_api/account_by_key_api.hpp
yashbhavsar007/Delta-Blockchain
602dd5335d2cd51303e953e4c233c8f099da0b07
[ "MIT" ]
null
null
null
libraries/plugins/apis/account_by_key_api/include/delta/plugins/account_by_key_api/account_by_key_api.hpp
yashbhavsar007/Delta-Blockchain
602dd5335d2cd51303e953e4c233c8f099da0b07
[ "MIT" ]
null
null
null
libraries/plugins/apis/account_by_key_api/include/delta/plugins/account_by_key_api/account_by_key_api.hpp
yashbhavsar007/Delta-Blockchain
602dd5335d2cd51303e953e4c233c8f099da0b07
[ "MIT" ]
null
null
null
#pragma once #include <delta/plugins/json_rpc/utility.hpp> #include <delta/protocol/types.hpp> #include <fc/optional.hpp> #include <fc/variant.hpp> #include <fc/vector.hpp> namespace delta { namespace plugins { namespace account_by_key { namespace detail { class account_by_key_api_impl; } struct get_key_referen...
20.326087
77
0.735829
yashbhavsar007
b6bc263a733e9f6bbb8635aa9d1df83ca167e057
2,191
cpp
C++
libs/RFType/TypeDatabase.cpp
max-delta/retrofit-public
5447fd6399fd74ffbb75494c103940751000db12
[ "X11" ]
3
2019-10-27T22:32:44.000Z
2020-05-21T04:00:46.000Z
libs/RFType/TypeDatabase.cpp
max-delta/retrofit-public
5447fd6399fd74ffbb75494c103940751000db12
[ "X11" ]
null
null
null
libs/RFType/TypeDatabase.cpp
max-delta/retrofit-public
5447fd6399fd74ffbb75494c103940751000db12
[ "X11" ]
null
null
null
#include "stdafx.h" #include "TypeDatabase.h" #include "core/macros.h" #include "core/meta/LazyInitSingleton.h" #include "core_rftype/Identifier.h" #include "rftl/memory" namespace RF::rftype { /////////////////////////////////////////////////////////////////////////////// bool TypeDatabase::RegisterNewClassByName...
22.357143
127
0.664537
max-delta
b6bd8fd53c78a5c0df38d175650861eff65c98dc
608
hpp
C++
libs/opencl/include/sge/opencl/context/error_callback_type.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
2
2016-01-27T13:18:14.000Z
2018-05-11T01:11:32.000Z
libs/opencl/include/sge/opencl/context/error_callback_type.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
null
null
null
libs/opencl/include/sge/opencl/context/error_callback_type.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
3
2018-05-11T01:11:34.000Z
2021-04-24T19:47:45.000Z
// Copyright Carl Philipp Reh 2006 - 2019. // 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 SGE_OPENCL_CONTEXT_ERROR_CALLBACK_TYPE_HPP_INCLUDED #define SGE_OPENCL_CONTEXT_ERROR_CALLBA...
28.952381
96
0.771382
cpreh
b6bfb73351dc46f7693a02b53a3be53b5f550e1b
745
hpp
C++
app/src/main/cpp/common/src/common/Mesh.hpp
pehg/Break_it_all
dab56d82dd4541a710f16b1e6f61ee214059a1a9
[ "MIT" ]
null
null
null
app/src/main/cpp/common/src/common/Mesh.hpp
pehg/Break_it_all
dab56d82dd4541a710f16b1e6f61ee214059a1a9
[ "MIT" ]
null
null
null
app/src/main/cpp/common/src/common/Mesh.hpp
pehg/Break_it_all
dab56d82dd4541a710f16b1e6f61ee214059a1a9
[ "MIT" ]
null
null
null
// // Created by simonppg on 4/22/19. // #ifndef BREAK_IT_ALL_MESH_HPP #define BREAK_IT_ALL_MESH_HPP #include "Camera.hpp" using glm::vec3; #define NUM_ARRAY_ELEMENTS(a) (sizeof(a) / sizeof(*a)) #define INDEX_BUFFER_SIZE(numIndices) ((GLsizeiptr)((numIndices) * (sizeof(GLushort)))) #define VERTEX_BUFFER_SIZE(numInd...
22.575758
89
0.702013
pehg
b6c58b4a719ddc165a4c06e1369168ee4029fd34
1,138
cpp
C++
src/db/db_impl.cpp
rickard1117/PidanDB
6955f6913cb404a0f09a5e44c07f36b0729c0a78
[ "MIT" ]
7
2020-08-01T04:09:15.000Z
2021-08-08T17:26:19.000Z
src/db/db_impl.cpp
rickard1117/PidanDB
6955f6913cb404a0f09a5e44c07f36b0729c0a78
[ "MIT" ]
null
null
null
src/db/db_impl.cpp
rickard1117/PidanDB
6955f6913cb404a0f09a5e44c07f36b0729c0a78
[ "MIT" ]
2
2020-09-16T02:29:52.000Z
2020-09-28T10:51:38.000Z
#include "db/db_impl.h" namespace pidan { Status DBImpl::Put(const Slice &key, const Slice &value) { Transaction *txn = txn_manager_.BeginWriteTransaction(); DataHeader *dh = new DataHeader(txn); DataHeader *old_dh = nullptr; auto result = index_.InsertUnique(key, dh, &old_dh); if (!result) { delete dh...
23.708333
64
0.665202
rickard1117
b6c7c92e3bfa79f0066631365f7853bef96538d9
670
cpp
C++
binary tree/flattenTreeToLinkedList.cpp
Gooner1886/DSA-101
44092e10ad39bebbf7da93e897927106d5a45ae7
[ "MIT" ]
20
2022-01-04T19:36:14.000Z
2022-03-21T15:35:09.000Z
binary tree/flattenTreeToLinkedList.cpp
Gooner1886/DSA-101
44092e10ad39bebbf7da93e897927106d5a45ae7
[ "MIT" ]
null
null
null
binary tree/flattenTreeToLinkedList.cpp
Gooner1886/DSA-101
44092e10ad39bebbf7da93e897927106d5a45ae7
[ "MIT" ]
null
null
null
// Leetcode - 114 - Flatten Binary Tree to Linked List void solve(TreeNode *root, vector<int> &preorder) { root->left = NULL; root->right = NULL; for (int i = 1; i < preorder.size(); i++) { root->right = new TreeNode(preorder[i]); root = root->right; } } void preorderTraversal(TreeN...
23.928571
61
0.623881
Gooner1886
b6c9ac73c37b5204639c27d37f0655122c11a714
8,505
hpp
C++
Vesper/Vesper/BSSRDFs/IrradianceTree.hpp
FallenShard/Crisp
d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423
[ "MIT" ]
6
2017-09-14T03:26:49.000Z
2021-09-18T05:40:59.000Z
Vesper/Vesper/BSSRDFs/IrradianceTree.hpp
FallenShard/Crisp
d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423
[ "MIT" ]
null
null
null
Vesper/Vesper/BSSRDFs/IrradianceTree.hpp
FallenShard/Crisp
d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423
[ "MIT" ]
null
null
null
#pragma once #include <memory> #include <array> #include <vector> #include <CrispCore/Math/BoundingBox.hpp> #include "Spectrums/Spectrum.hpp" namespace crisp { struct SurfacePoint { SurfacePoint() {} SurfacePoint(const glm::vec3& p, const glm::vec3& n, float a) : p(p) ...
28.444816
102
0.388595
FallenShard
b6d63ff87ed03714a1fa7cf95cc74d0f65869208
3,577
cpp
C++
android-30/android/widget/SimpleAdapter.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
12
2020-03-26T02:38:56.000Z
2022-03-14T08:17:26.000Z
android-30/android/widget/SimpleAdapter.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
1
2021-01-27T06:07:45.000Z
2021-11-13T19:19:43.000Z
android-29/android/widget/SimpleAdapter.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
3
2021-02-02T12:34:55.000Z
2022-03-08T07:45:57.000Z
#include "../../JIntArray.hpp" #include "../../JArray.hpp" #include "../content/Context.hpp" #include "../content/res/Resources_Theme.hpp" #include "../view/View.hpp" #include "../view/ViewGroup.hpp" #include "./Filter.hpp" #include "./ImageView.hpp" #include "./TextView.hpp" #include "../../JObject.hpp" #include "../....
23.688742
125
0.689405
YJBeetle
b6d713da27744740cbd2a04f40d244a6afd101c4
1,887
cpp
C++
src/examples/logisticregression.cpp
jaymwong/CppNumericalSolvers
2a0f98e7c54c35325641e05c035e43cafd570808
[ "MIT" ]
2
2016-03-17T21:13:23.000Z
2021-01-10T00:53:08.000Z
src/examples/logisticregression.cpp
jaymwong/CppNumericalSolvers
2a0f98e7c54c35325641e05c035e43cafd570808
[ "MIT" ]
null
null
null
src/examples/logisticregression.cpp
jaymwong/CppNumericalSolvers
2a0f98e7c54c35325641e05c035e43cafd570808
[ "MIT" ]
1
2021-01-07T16:20:12.000Z
2021-01-07T16:20:12.000Z
#include <iostream> #include "../../include/cppoptlib/meta.h" #include "../../include/cppoptlib/problem.h" #include "../../include/cppoptlib/solver/bfgssolver.h" // to use this library just use the namespace "cppoptlib" namespace cppoptlib { // we define a new problem for optimizing the rosenbrock function // we use ...
31.45
103
0.647589
jaymwong
b6d962121987bcab856a0318aa250dcd1a68fb2d
1,552
cpp
C++
src/lib/classification/poset_classification/extension.cpp
abetten/orbiter
5994d0868a26c37676d6aadfc66a1f1bcb715c4b
[ "RSA-MD" ]
15
2016-10-27T15:18:28.000Z
2022-02-09T11:13:07.000Z
src/lib/classification/poset_classification/extension.cpp
abetten/orbiter
5994d0868a26c37676d6aadfc66a1f1bcb715c4b
[ "RSA-MD" ]
4
2019-12-09T11:49:11.000Z
2020-07-30T17:34:45.000Z
src/lib/classification/poset_classification/extension.cpp
abetten/orbiter
5994d0868a26c37676d6aadfc66a1f1bcb715c4b
[ "RSA-MD" ]
15
2016-06-10T20:05:30.000Z
2020-12-18T04:59:19.000Z
// extension.cpp // // Anton Betten // Dec 19, 2011 #include "foundations/foundations.h" #include "group_actions/group_actions.h" #include "classification/classification.h" using namespace std; namespace orbiter { namespace classification { extension::extension() { pt = -1; orbit_len = 0; type = EXTENSION_TYPE_U...
13.37931
46
0.664948
abetten
b6e141796369094324824c07eaba15be4e416bc3
2,060
cpp
C++
libbirch/libbirch/Memo.cpp
vishalbelsare/Birch
ead17b181a058250e9f5896d64954232d19e43f0
[ "Apache-2.0" ]
86
2017-10-29T15:46:41.000Z
2022-01-17T07:18:16.000Z
libbirch/libbirch/Memo.cpp
vishalbelsare/Birch
ead17b181a058250e9f5896d64954232d19e43f0
[ "Apache-2.0" ]
13
2020-09-27T03:31:57.000Z
2021-05-27T00:39:14.000Z
libbirch/libbirch/Memo.cpp
vishalbelsare/Birch
ead17b181a058250e9f5896d64954232d19e43f0
[ "Apache-2.0" ]
12
2018-08-21T12:57:18.000Z
2021-05-26T18:41:50.000Z
/** *@file */ #include "libbirch/Memo.hpp" #include "libbirch/external.hpp" #include "libbirch/memory.hpp" #include "libbirch/thread.hpp" libbirch::Memo::Memo() : keys(nullptr), values(nullptr), nentries(0), noccupied(0) { // } libbirch::Memo::~Memo() { std::free(keys); std::free(values); } l...
21.914894
77
0.586408
vishalbelsare
b6e3bd44284375e49a0bec3135ac98997769a048
4,187
cpp
C++
src/scene.cpp
sndels/naiverend
8d2b76104fa9ea4cbff2dc95aeabebb9d506856c
[ "MIT" ]
null
null
null
src/scene.cpp
sndels/naiverend
8d2b76104fa9ea4cbff2dc95aeabebb9d506856c
[ "MIT" ]
null
null
null
src/scene.cpp
sndels/naiverend
8d2b76104fa9ea4cbff2dc95aeabebb9d506856c
[ "MIT" ]
null
null
null
#include "scene.hpp" #include "gl_core_4_1.h" #include <glm/glm.hpp> #include <iostream> #include <vector> #include "input_handler.hpp" #include "math_types.hpp" #include "model_parser.hpp" #include "imgui/imgui.h" #include "imgui/examples/opengl3_example/imgui_impl_glfw_gl3.h" using glm::vec3; using glm::mat3; usin...
33.496
110
0.541438
sndels
b6e50918f04aefb0c3ddd2c5dde4d44ea56b5657
1,401
cpp
C++
6502/main.cpp
mavroskardia/6502
bc7a278ecc8b9f18e845240b014c6513df5e9e9e
[ "MIT" ]
1
2016-02-27T19:23:13.000Z
2016-02-27T19:23:13.000Z
6502/main.cpp
mavroskardia/6502
bc7a278ecc8b9f18e845240b014c6513df5e9e9e
[ "MIT" ]
null
null
null
6502/main.cpp
mavroskardia/6502
bc7a278ecc8b9f18e845240b014c6513df5e9e9e
[ "MIT" ]
null
null
null
#include "includes.h" int do_assembly(const char*); int do_run(const char*); int do_tests(); int main(int argc, char** argv) { int ret = 0; switch (argc) { case 2: ret = string("test").compare(argv[1]) == 0 ? do_tests() : 1; break; case 3: if (string("assemble").compare(argv[1]) == 0) ret = do_assembly(arg...
20.602941
83
0.598858
mavroskardia
b6e5b96b3b9a80bf364e304c2adacf3ba49033fd
554
hpp
C++
chratos/chratos_node/daemon.hpp
chratos-system/chratos
caf1b608a21ccc7b13726a64497036ab53f837b3
[ "BSD-2-Clause" ]
2
2018-09-10T16:28:16.000Z
2020-02-13T17:44:43.000Z
chratos/chratos_node/daemon.hpp
chratos-system/chratos
caf1b608a21ccc7b13726a64497036ab53f837b3
[ "BSD-2-Clause" ]
null
null
null
chratos/chratos_node/daemon.hpp
chratos-system/chratos
caf1b608a21ccc7b13726a64497036ab53f837b3
[ "BSD-2-Clause" ]
2
2018-08-27T13:00:56.000Z
2018-10-16T21:54:13.000Z
#include <chratos/node/node.hpp> #include <chratos/node/rpc.hpp> namespace chratos_daemon { class daemon { public: void run (boost::filesystem::path const &); }; class daemon_config { public: daemon_config (boost::filesystem::path const &); bool deserialize_json (bool &, boost::property_tree::ptree &); void serial...
22.16
63
0.749097
chratos-system
b6e6b03c6aec479a89fd0f21a6e2e0b311c44c75
20,841
cpp
C++
third_party/omr/compiler/optimizer/OMROptimization.cpp
xiacijie/omr-wala-linkage
a1aff7aef9ed131a45555451abde4615a04412c1
[ "Apache-2.0" ]
null
null
null
third_party/omr/compiler/optimizer/OMROptimization.cpp
xiacijie/omr-wala-linkage
a1aff7aef9ed131a45555451abde4615a04412c1
[ "Apache-2.0" ]
null
null
null
third_party/omr/compiler/optimizer/OMROptimization.cpp
xiacijie/omr-wala-linkage
a1aff7aef9ed131a45555451abde4615a04412c1
[ "Apache-2.0" ]
null
null
null
/******************************************************************************* * Copyright (c) 2000, 2019 IBM Corp. and others * * This program and the accompanying materials are made available under * the terms of the Eclipse Public License 2.0 which accompanies this * distribution and is available at http://ec...
36.057093
230
0.64685
xiacijie
b6eb39ef45bc5c2f56339e4c9849eee6c477b6e3
1,711
cxx
C++
src/converter/fix_helper.cxx
abdelkaderamar/fix2xml
fa781b747a8e40ed4c2d3dee8294fb51654f7428
[ "MIT" ]
1
2019-09-26T12:08:19.000Z
2019-09-26T12:08:19.000Z
src/converter/fix_helper.cxx
abdelkaderamar/fix2xml
fa781b747a8e40ed4c2d3dee8294fb51654f7428
[ "MIT" ]
null
null
null
src/converter/fix_helper.cxx
abdelkaderamar/fix2xml
fa781b747a8e40ed4c2d3dee8294fb51654f7428
[ "MIT" ]
1
2020-12-11T04:11:44.000Z
2020-12-11T04:11:44.000Z
#include "fix_helper.hxx" #include <quickfix/FixFieldNumbers.h> #include <algorithm> #include <functional> #include <vector> namespace fix2xml { using namespace std; //----------------------------------------------------------------------------- void msg_to_list(const FIX::Message &fix_msg, const ...
34.22
79
0.548802
abdelkaderamar
b6f2464ac1f220f4d92948ee29510bccaf768fc8
2,030
cpp
C++
DS/DS/graph/bellman_ford.cpp
puneet222/Data-Structures
c5c460739c7423cce53685c5557c97c70ca1d171
[ "Apache-2.0" ]
null
null
null
DS/DS/graph/bellman_ford.cpp
puneet222/Data-Structures
c5c460739c7423cce53685c5557c97c70ca1d171
[ "Apache-2.0" ]
null
null
null
DS/DS/graph/bellman_ford.cpp
puneet222/Data-Structures
c5c460739c7423cce53685c5557c97c70ca1d171
[ "Apache-2.0" ]
null
null
null
#include<iostream> #include<stdio.h> #include<queue> #include<malloc.h> #include<limits.h> using namespace std ; struct graph{ int v ; int e ; int **wgh ; } ; struct graph *weightMatrix(int vertices , int edges) { struct graph *g = new graph ; g -> v = vertices ; g -> e = edges ; g -> wgh = (int **)malloc(siz...
17.964602
96
0.484236
puneet222
b6f669662fc07113ef4dc65531cf932b8353b1f9
2,127
cpp
C++
1. Деревья поиска/0.2. Удалить из дерева #3535/[OK]169443.cpp
godnoTA/acm.bsu.by
3e1cf1c545c691de82b5e1d2e0768b41ea581734
[ "Unlicense" ]
19
2018-05-19T16:37:14.000Z
2022-03-23T20:13:43.000Z
1. Деревья поиска/0.2. Удалить из дерева #3535/[OK]169443.cpp
godnoTA/acm.bsu.by
3e1cf1c545c691de82b5e1d2e0768b41ea581734
[ "Unlicense" ]
6
2020-05-07T21:06:48.000Z
2020-06-05T17:52:57.000Z
1. Деревья поиска/0.2. Удалить из дерева #3535/[OK]169443.cpp
godnoTA/acm.bsu.by
3e1cf1c545c691de82b5e1d2e0768b41ea581734
[ "Unlicense" ]
31
2019-03-01T21:41:38.000Z
2022-03-27T17:56:39.000Z
#include<iostream> #include<fstream> using namespace std; //Входной и выходной файлы ifstream in("input.txt"); ofstream out("output.txt"); struct node{ int key; node *left; node *right; }; void push(int a,node *&t) { if (t == NULL) { t = new node; //Выделяем память t ->...
19.694444
77
0.535966
godnoTA
b6f7f2f06130d095c5b2a916d993ecd6bd4f62f6
833
cpp
C++
机试/动态规划/leetcode123.cpp
codehuanglei/-
933a55b5c5a49163f12e0c39b4edfa9c4f01678f
[ "MIT" ]
null
null
null
机试/动态规划/leetcode123.cpp
codehuanglei/-
933a55b5c5a49163f12e0c39b4edfa9c4f01678f
[ "MIT" ]
null
null
null
机试/动态规划/leetcode123.cpp
codehuanglei/-
933a55b5c5a49163f12e0c39b4edfa9c4f01678f
[ "MIT" ]
null
null
null
class Solution { public: int maxProfit(vector<int>& prices) { if(prices.size() == 0){ return 0; } int len = prices.size(); vector<vector<int>> dp(len, vector<int>(5)); dp[0][0] = 0; dp[0][1] = -prices[0]; dp[0][2] = 0; dp[0][3] = -prices[0]; ...
36.217391
105
0.421369
codehuanglei
b6f8e89b7854ae190ce4fb84d665ae55b410da1d
21,275
cc
C++
tests/unit/speech_recog_test.cc
CPqD/asr-sdk-cpp
ca1d0a81a250f54c272b6bc39d2a1c5a1c9f58a1
[ "Apache-2.0" ]
4
2017-10-12T20:09:31.000Z
2021-05-24T13:46:26.000Z
tests/unit/speech_recog_test.cc
CPqD/asr-sdk-cpp
ca1d0a81a250f54c272b6bc39d2a1c5a1c9f58a1
[ "Apache-2.0" ]
null
null
null
tests/unit/speech_recog_test.cc
CPqD/asr-sdk-cpp
ca1d0a81a250f54c272b6bc39d2a1c5a1c9f58a1
[ "Apache-2.0" ]
4
2017-10-04T14:30:11.000Z
2022-02-25T10:13:06.000Z
/***************************************************************************** * Copyright 2017 CPqD. 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:...
33.769841
88
0.676193
CPqD
b6fb19c28ec6bab8291643f67434843fb09d55bf
3,231
cpp
C++
docs/tests/graph.cpp
nyorain/tokonoma
b3a4264ef4f9f40487c2f3280812bf7513b914bb
[ "MIT" ]
23
2019-07-11T14:47:39.000Z
2021-12-24T09:56:24.000Z
docs/tests/graph.cpp
nyorain/tokonoma
b3a4264ef4f9f40487c2f3280812bf7513b914bb
[ "MIT" ]
null
null
null
docs/tests/graph.cpp
nyorain/tokonoma
b3a4264ef4f9f40487c2f3280812bf7513b914bb
[ "MIT" ]
4
2021-04-06T18:20:43.000Z
2022-01-15T09:20:45.000Z
#include "bugged.hpp" #include <deferred/graph.hpp> TEST(basic) { FrameGraph graph; auto& pass1 = graph.addPass(); vk::Image img1; vk::Image img2; auto& out1 = pass1.addOut(syncScopeFlex, img1); auto& out2 = pass1.addOut(syncScopeFlex, img2); auto scope2 = SyncScope { vk::PipelineStageBits::computeShader, ...
23.078571
58
0.692974
nyorain
b6ffd38232e34a6c633d9472a60fc53d10602b17
1,380
cpp
C++
llvm/lib/Target/PTX/PTXRegisterInfo.cpp
clairechingching/ScaffCC
737ae90f85d9fe79819d66219747d27efa4fa5b9
[ "BSD-2-Clause" ]
3
2019-02-12T04:14:39.000Z
2020-11-05T08:46:20.000Z
llvm/lib/Target/PTX/PTXRegisterInfo.cpp
clairechingching/ScaffCC
737ae90f85d9fe79819d66219747d27efa4fa5b9
[ "BSD-2-Clause" ]
1
2020-02-22T09:59:21.000Z
2020-02-22T09:59:21.000Z
llvm/lib/Target/PTX/PTXRegisterInfo.cpp
clairechingching/ScaffCC
737ae90f85d9fe79819d66219747d27efa4fa5b9
[ "BSD-2-Clause" ]
1
2020-05-15T12:53:42.000Z
2020-05-15T12:53:42.000Z
//===-- PTXRegisterInfo.cpp - PTX Register Information --------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
35.384615
80
0.588406
clairechingching
8e05cb6da00cf835ee44dbc77bfd1da9a6871ed1
1,217
cpp
C++
L9/17_JavaCpp_/03ObjectsInMemory/c_HeapInstance/1/FooBar.cpp
DeirdreHegarty/advanced_OOP
e62d8f2274422d3da9064e2576e2adc414eccee1
[ "MIT" ]
null
null
null
L9/17_JavaCpp_/03ObjectsInMemory/c_HeapInstance/1/FooBar.cpp
DeirdreHegarty/advanced_OOP
e62d8f2274422d3da9064e2576e2adc414eccee1
[ "MIT" ]
null
null
null
L9/17_JavaCpp_/03ObjectsInMemory/c_HeapInstance/1/FooBar.cpp
DeirdreHegarty/advanced_OOP
e62d8f2274422d3da9064e2576e2adc414eccee1
[ "MIT" ]
null
null
null
/* //Header file declarations reproduced here // for quick access //FooBar.h class Bar{ public: void doBarThing(); }; class Foo { //The default-access specifier is private in C++ Bar *aBar; //hence 'aBar' pointer is private public: virtual ~Foo(); void cre...
23.403846
62
0.579293
DeirdreHegarty
8e07241468fe38fce70be538f51e493f0382cfe9
17,809
cpp
C++
gmsh/Geo/SOrientedBoundingBox.cpp
Poofee/fastFEM
14eb626df973e2123604041451912c867ab7188c
[ "MIT" ]
4
2019-05-06T09:35:08.000Z
2021-05-14T16:26:45.000Z
gmsh/Geo/SOrientedBoundingBox.cpp
Poofee/fastFEM
14eb626df973e2123604041451912c867ab7188c
[ "MIT" ]
null
null
null
gmsh/Geo/SOrientedBoundingBox.cpp
Poofee/fastFEM
14eb626df973e2123604041451912c867ab7188c
[ "MIT" ]
1
2019-06-28T09:23:43.000Z
2019-06-28T09:23:43.000Z
// Gmsh - Copyright (C) 1997-2019 C. Geuzaine, J.-F. Remacle // // See the LICENSE.txt file for license information. Please report all // issues on https://gitlab.onelab.info/gmsh/gmsh/issues. // // Contributor(s): // Bastien Gorissen // #include <algorithm> #include <cmath> #include <time.h> #include "GmshConfig.h...
30.758204
80
0.563479
Poofee
8e07633464a0d666535aa331121e742093136dfd
21,396
cc
C++
PhysicsTools/Heppy/src/Davismt2.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
PhysicsTools/Heppy/src/Davismt2.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
PhysicsTools/Heppy/src/Davismt2.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
// #ifndef MT2_BISECT_C // #define MT2_BISECT_C /***********************************************************************/ /* */ /* Finding mt2 by Bisection */ /* ...
31.008696
171
0.509348
ckamtsikis
8e07bad7c48cced67ed1bb63bfa534f09f6a4132
1,964
hpp
C++
dev/Basic/long/database/entity/DevelopmentPlan.hpp
gusugusu1018/simmobility-prod
d30a5ba353673f8fd35f4868c26994a0206a40b6
[ "MIT" ]
50
2018-12-21T08:21:38.000Z
2022-01-24T09:47:59.000Z
dev/Basic/long/database/entity/DevelopmentPlan.hpp
gusugusu1018/simmobility-prod
d30a5ba353673f8fd35f4868c26994a0206a40b6
[ "MIT" ]
2
2018-12-19T13:42:47.000Z
2019-05-13T04:11:45.000Z
dev/Basic/long/database/entity/DevelopmentPlan.hpp
gusugusu1018/simmobility-prod
d30a5ba353673f8fd35f4868c26994a0206a40b6
[ "MIT" ]
27
2018-11-28T07:30:34.000Z
2022-02-05T02:22:26.000Z
/* * DevelopmentPlan.hpp * * Created on: Dec 22, 2015 * Author: gishara */ #pragma once #include "Common.hpp" #include "Types.hpp" namespace sim_mob { namespace long_term { class DevelopmentPlan { public: DevelopmentPlan(BigSerial fmParcelId = INVALID_ID, BigSerial templa...
31.677419
246
0.586049
gusugusu1018
8e088785a57c9cdd56c5d1336d4b561c74e6883d
5,064
cxx
C++
TOF/TOFbase/AliTOFRawMap.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
52
2016-12-11T13:04:01.000Z
2022-03-11T11:49:35.000Z
TOF/TOFbase/AliTOFRawMap.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
1,388
2016-11-01T10:27:36.000Z
2022-03-30T15:26:09.000Z
TOF/TOFbase/AliTOFRawMap.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
275
2016-06-21T20:24:05.000Z
2022-03-31T13:06:19.000Z
/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors ...
28.772727
76
0.463073
AllaMaevskaya
8e08daffcf5d0d0d495089a41cb8900f3d15d331
650
cpp
C++
Chapter_13/Figures/Fig_13_8.cpp
mtrdazzo/Deitel
4efc02147a1768125d2e27d7d68f664c4628cdc5
[ "MIT" ]
1
2021-09-07T19:23:24.000Z
2021-09-07T19:23:24.000Z
Chapter_13/Figures/Fig_13_8.cpp
mtrdazzo/Deitel
4efc02147a1768125d2e27d7d68f664c4628cdc5
[ "MIT" ]
null
null
null
Chapter_13/Figures/Fig_13_8.cpp
mtrdazzo/Deitel
4efc02147a1768125d2e27d7d68f664c4628cdc5
[ "MIT" ]
null
null
null
/** * @file Fig_13_8.cpp * @author Matthew J Randazzo (mtrdazzo@gmail.com) * @brief width member function of classes istream and ostream * @version 0.1 * @date 2020-07-19 * * @copyright Copyright (c) 2020 * */ #include <iostream> int main() { int widthValue{4}; char sentence[10]; std::cout <<...
21.666667
67
0.615385
mtrdazzo
8e09c3050af11576e808b35c4254aa250b22992a
3,437
cpp
C++
Trees/BinaryTree/foldablebinarytree/foldablebinarytree.cpp
UltraProton/Placement-Prepration
cc70f174c4410c254ce0469737a884fffdc81164
[ "MIT" ]
null
null
null
Trees/BinaryTree/foldablebinarytree/foldablebinarytree.cpp
UltraProton/Placement-Prepration
cc70f174c4410c254ce0469737a884fffdc81164
[ "MIT" ]
3
2020-05-08T18:02:51.000Z
2020-05-09T08:37:35.000Z
Trees/BinaryTree/foldablebinarytree/foldablebinarytree.cpp
UltraProton/PlacementPrep
cc70f174c4410c254ce0469737a884fffdc81164
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; /* You would want to remove below 3 lines if your compiler supports bool, true and false */ #define bool int #define true 1 #define false 0 /* A binary tree node has data, pointer to left child and a pointer to right child */ struct node { int data; struct node* left...
21.347826
81
0.551644
UltraProton
8e0a7e06d8dc19dff9e3ddc30d095372b9ce0452
26
cpp
C++
tests/environment.cpp
TheQuantumPhysicist/HttpRpcRelay
810d9ed8907b4c769faa432ba7f829445b8d6f9f
[ "MIT" ]
null
null
null
tests/environment.cpp
TheQuantumPhysicist/HttpRpcRelay
810d9ed8907b4c769faa432ba7f829445b8d6f9f
[ "MIT" ]
null
null
null
tests/environment.cpp
TheQuantumPhysicist/HttpRpcRelay
810d9ed8907b4c769faa432ba7f829445b8d6f9f
[ "MIT" ]
null
null
null
#include "environment.h"
13
25
0.730769
TheQuantumPhysicist
8e0b642cd53e9e136944340e6f8368a9ae096647
3,381
cpp
C++
TAO/tests/Bug_3748_Regression/Test_Protocols_Hooks.cpp
cflowe/ACE
5ff60b41adbe1772372d1a43bcc1f2726ff8f810
[ "DOC" ]
36
2015-01-10T07:27:33.000Z
2022-03-07T03:32:08.000Z
TAO/tests/Bug_3748_Regression/Test_Protocols_Hooks.cpp
cflowe/ACE
5ff60b41adbe1772372d1a43bcc1f2726ff8f810
[ "DOC" ]
2
2018-08-13T07:30:51.000Z
2019-02-25T03:04:31.000Z
TAO/tests/Bug_3748_Regression/Test_Protocols_Hooks.cpp
cflowe/ACE
5ff60b41adbe1772372d1a43bcc1f2726ff8f810
[ "DOC" ]
38
2015-01-08T14:12:06.000Z
2022-01-19T08:33:00.000Z
// -*- C++ -*- // // $Id: Test_Protocols_Hooks.cpp 91648 2010-09-08 13:25:56Z johnnyw $ // #include "Test_Protocols_Hooks.h" #include "TestC.h" Test_Protocols_Hooks::Test_Protocols_Hooks (void) : failure_count_ (0) { } Test_Protocols_Hooks::~Test_Protocols_Hooks (void) { } void Test_Protocols_Hooks::init_hooks (...
18.080214
73
0.696539
cflowe
8e0b9590dd090921dfd51bf8831426402488f77c
1,115
hpp
C++
src/volt/gpu/d3d12/d3d12.hpp
voltengine/volt
fbefe2e0a8e461b6130ffe926870c4848bd6e7d1
[ "MIT" ]
null
null
null
src/volt/gpu/d3d12/d3d12.hpp
voltengine/volt
fbefe2e0a8e461b6130ffe926870c4848bd6e7d1
[ "MIT" ]
null
null
null
src/volt/gpu/d3d12/d3d12.hpp
voltengine/volt
fbefe2e0a8e461b6130ffe926870c4848bd6e7d1
[ "MIT" ]
null
null
null
#pragma once #include <volt/gpu/enums.hpp> namespace volt::gpu::d3d12 { extern std::unordered_map<HRESULT, std::string> result_messages; extern std::unordered_map<command_types, D3D12_COMMAND_LIST_TYPE> command_list_types; template<command_types T> constexpr D3D12_COMMAND_LIST_TYPE command_list_type; template<> co...
30.135135
114
0.821525
voltengine
8e0f910636ef878151394c403e6a3de3879d1de8
401
cpp
C++
exemplos/5_Repeticao/soma-ate-0.cpp
danielgs83/cpe-unb
f958d2a4899a8d4d5c1465637d1d1b10610661e4
[ "CC0-1.0" ]
1
2022-02-04T17:16:50.000Z
2022-02-04T17:16:50.000Z
exemplos/5_Repeticao/soma-ate-0.cpp
danielgs83/cpe-unb
f958d2a4899a8d4d5c1465637d1d1b10610661e4
[ "CC0-1.0" ]
null
null
null
exemplos/5_Repeticao/soma-ate-0.cpp
danielgs83/cpe-unb
f958d2a4899a8d4d5c1465637d1d1b10610661e4
[ "CC0-1.0" ]
null
null
null
#include <iostream> using namespace std; int main() { int soma, parcela; soma = 0; cout << "numero a ser somado (0 para sair): "; cin >> parcela; //leitura do primeiro numero while (parcela != 0) { soma += parcela; //acumula cout << "numero a ser somado (0 para sair): "; cin >> parcela; //l...
17.434783
50
0.586035
danielgs83
8e0ffef18e846b6a08b69ae0c7a5c108185c7c95
2,027
cpp
C++
cpp/backtracking/The_knights_tour_problem.cpp
banerjeesoumya15/AlgoBook
79fcbd0631a6f1fbe24a8d3627550d1ec9ad605c
[ "MIT" ]
191
2020-09-28T10:00:20.000Z
2022-03-06T14:36:55.000Z
cpp/backtracking/The_knights_tour_problem.cpp
banerjeesoumya15/AlgoBook
79fcbd0631a6f1fbe24a8d3627550d1ec9ad605c
[ "MIT" ]
210
2020-09-28T10:06:36.000Z
2022-03-05T03:44:24.000Z
cpp/backtracking/The_knights_tour_problem.cpp
banerjeesoumya15/AlgoBook
79fcbd0631a6f1fbe24a8d3627550d1ec9ad605c
[ "MIT" ]
320
2020-09-28T09:56:14.000Z
2022-02-12T16:45:57.000Z
#include <bits/stdc++.h> using namespace std; //a function to check whether a grid is valid or not bool isvalid(int x, int y, int **tour, int n){ return(x>=0 && y>=0 && x<n && y<n && tour[x][y]==-1); } //function to solve the tour bool solve_knighttour(int x, int y, int moves,int n, int **tour, int nxt_x[8], int...
27.767123
93
0.510607
banerjeesoumya15
8e11f514fbf9d3a021bc436e68abee51dd29ae11
3,955
cpp
C++
tests/TestWord.cpp
SergioRosello/OSO
bbd3c6a95b1c2388732babc6a540c07034cce026
[ "MIT" ]
1
2019-10-14T07:25:32.000Z
2019-10-14T07:25:32.000Z
tests/TestWord.cpp
SergioRosello/OSO
bbd3c6a95b1c2388732babc6a540c07034cce026
[ "MIT" ]
null
null
null
tests/TestWord.cpp
SergioRosello/OSO
bbd3c6a95b1c2388732babc6a540c07034cce026
[ "MIT" ]
null
null
null
#include "gtest/gtest.h" #include "../include/Selection.h" namespace OSO { // The fixture for testing class Foo. class WordTest : public ::testing::Test { protected: // You can remove any or all of the following functions if its body // is empty. WordTest() { // You can do set-up wo...
34.692982
84
0.672566
SergioRosello
8e1250f35886ace8a9135303cfb8532ee7dde5fb
4,415
cpp
C++
src/test/git/TestGitClientImpl.cpp
TNG/mustard-cli
aa8db4e923271546b46a1f9a71778b3bed1efe3a
[ "Apache-2.0" ]
7
2019-04-12T07:13:32.000Z
2021-09-22T20:53:44.000Z
src/test/git/TestGitClientImpl.cpp
TNG/mustard-cli
aa8db4e923271546b46a1f9a71778b3bed1efe3a
[ "Apache-2.0" ]
2
2020-07-21T05:01:13.000Z
2020-08-14T15:38:17.000Z
src/test/git/TestGitClientImpl.cpp
TNG/mustard-cli
aa8db4e923271546b46a1f9a71778b3bed1efe3a
[ "Apache-2.0" ]
1
2020-07-21T05:03:09.000Z
2020-07-21T05:03:09.000Z
#include <gtest/gtest.h> #include <Depend.h> #include "../../main/git/GitClientImpl.h" #include "GitTestEnvironment.h" using namespace testing; class TestGitClientImpl: public Test { public: GitClientImpl gitClient; }; TEST_F ( TestGitClientImpl, Unit_GetHeadCommit ) { GitTestEnvironment testEnv; testE...
34.76378
86
0.671574
TNG
8e162cb1124cae1e7130e2f70a1789d04925c119
448
cc
C++
example/linux/flutter/generated_plugin_registrant.cc
jainris/flutter_audio_desktop
63d5823facbab34358875c6722874f950eb10393
[ "MIT" ]
50
2020-09-13T12:13:40.000Z
2022-02-26T03:36:45.000Z
example/linux/flutter/generated_plugin_registrant.cc
jainris/flutter_audio_desktop
63d5823facbab34358875c6722874f950eb10393
[ "MIT" ]
28
2020-09-23T05:29:26.000Z
2021-03-17T11:21:11.000Z
example/linux/flutter/generated_plugin_registrant.cc
jainris/flutter_audio_desktop
63d5823facbab34358875c6722874f950eb10393
[ "MIT" ]
16
2020-09-14T07:12:29.000Z
2021-10-13T23:52:12.000Z
// // Generated file. Do not edit. // #include "generated_plugin_registrant.h" #include <flutter_audio_desktop/flutter_audio_desktop_plugin.h> void fl_register_plugins(FlPluginRegistry* registry) { g_autoptr(FlPluginRegistrar) flutter_audio_desktop_registrar = fl_plugin_registry_get_registrar_for_plugin(reg...
32
89
0.841518
jainris
8e1788ea9d52b0333d00766225789530cdb08ec7
19,774
hpp
C++
library/grammar/string.hpp
grandquista/chimera
2a5326afc866d878517f2b0f5df2bf6cba20f4eb
[ "MIT" ]
2
2017-12-14T07:05:06.000Z
2021-02-07T03:31:27.000Z
library/grammar/string.hpp
grandquista/chimera
2a5326afc866d878517f2b0f5df2bf6cba20f4eb
[ "MIT" ]
149
2018-08-06T13:14:46.000Z
2019-11-19T02:00:56.000Z
library/grammar/string.hpp
grandquista/chimera
2a5326afc866d878517f2b0f5df2bf6cba20f4eb
[ "MIT" ]
null
null
null
// Copyright (c) 2017 Adam Grandquist <grandquista@gmail.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 the Software without restriction, including without limitation the rights // to use, cop...
40.02834
80
0.51148
grandquista
8e19451dbab2934f8cf55793fc1999021ad77ba2
23,113
cxx
C++
TUHKMgen/AliGenUHKM.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
52
2016-12-11T13:04:01.000Z
2022-03-11T11:49:35.000Z
TUHKMgen/AliGenUHKM.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
1,388
2016-11-01T10:27:36.000Z
2022-03-30T15:26:09.000Z
TUHKMgen/AliGenUHKM.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
275
2016-06-21T20:24:05.000Z
2022-03-31T13:06:19.000Z
///////////////////////////////////////////////////////////////////////////// // Generator using UHKM 3.0 as an external generator. // // ( only the HYDJET++ part is implemented for a moment) // // temporary link: // // http:...
35.287023
109
0.637304
AllaMaevskaya
8e19f72fb5aa9c9e2c6dcc6fd006fdb906053580
321
cpp
C++
CodeChef/Begginer-Problems/FACTRL2.cpp
annukamat/My-Competitive-Journey
adb13a5723483cde13e5f3859b3a7ad840b86c97
[ "MIT" ]
7
2018-11-08T11:39:27.000Z
2020-09-10T17:50:57.000Z
CodeChef/Begginer-Problems/FACTRL2.cpp
annukamat/My-Competitive-Journey
adb13a5723483cde13e5f3859b3a7ad840b86c97
[ "MIT" ]
null
null
null
CodeChef/Begginer-Problems/FACTRL2.cpp
annukamat/My-Competitive-Journey
adb13a5723483cde13e5f3859b3a7ad840b86c97
[ "MIT" ]
2
2019-09-16T14:34:03.000Z
2019-10-12T19:24:00.000Z
#include <iostream> #include <vector> using namespace std; long long int fact(int n){ if(n==1 || n==0){ return 1; }else{ return n*fact(n-1); } } int main(){ int t,n; cin>>t; vector<int>a; while(t--){ cin>>n; cout<<fact(n)<<"\n"; } return 0; ...
13.956522
28
0.457944
annukamat
8e1b77a1b41375bf2e83aaaa75576ef7a55dea34
16,114
cc
C++
LuaKitProject/src/Projects/common/common/business_client_thread_impl.cc
andrewvmail/luakit
edbadd7824bd17b6a430d8323f255d404498c27a
[ "MIT" ]
321
2018-06-17T03:52:46.000Z
2022-03-18T02:34:52.000Z
LuaKitProject/src/Projects/common/common/business_client_thread_impl.cc
andrewvmail/luakit
edbadd7824bd17b6a430d8323f255d404498c27a
[ "MIT" ]
19
2018-06-26T10:37:45.000Z
2020-12-09T03:16:45.000Z
LuaKitProject/src/Projects/common/common/business_client_thread_impl.cc
andrewvmail/luakit
edbadd7824bd17b6a430d8323f255d404498c27a
[ "MIT" ]
58
2018-06-21T10:43:03.000Z
2022-03-29T12:42:11.000Z
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "common/business_client_thread_impl.h" #include <string> #include "base/atomicops.h" #include "base/bind.h" #include "base/compiler_specifi...
34.139831
96
0.707459
andrewvmail
8e1f39860ad53ee845c9229cd700b5083a830a9c
651
cpp
C++
Online Judges/Huxley/93GatoNoChapeu.cpp
NelsonGomesNeto/ProgramC
e743b1b869f58f7f3022d18bac00c5e0b078562e
[ "MIT" ]
3
2018-12-18T13:39:42.000Z
2021-06-23T18:05:18.000Z
Online Judges/Huxley/93GatoNoChapeu.cpp
NelsonGomesNeto/ProgramC
e743b1b869f58f7f3022d18bac00c5e0b078562e
[ "MIT" ]
1
2018-11-02T21:32:40.000Z
2018-11-02T22:47:12.000Z
Online Judges/Huxley/93GatoNoChapeu.cpp
NelsonGomesNeto/ProgramC
e743b1b869f58f7f3022d18bac00c5e0b078562e
[ "MIT" ]
6
2018-10-27T14:07:52.000Z
2019-11-14T13:49:29.000Z
#include <bits/stdc++.h> #define lli long long int int main() { lli height, working; while (scanf("%lld %lld", &height, &working) && !(!height && !working)) { for (lli n = 1, c = 1, cc = 1, h = height, pile = height; n < height;) { // printf("%lld %lld %lld\n", n, c, h); if (h == 1) { printf(...
24.111111
74
0.428571
NelsonGomesNeto
8e20ae742e2e67402b240670ebd6aeed26f4edb8
3,840
hpp
C++
Demos/Tests/TestBase/Camera.hpp
DhirajWishal/Flint
0750bd515de0b5cc3d23f7c2282c50ca483dff24
[ "Apache-2.0" ]
null
null
null
Demos/Tests/TestBase/Camera.hpp
DhirajWishal/Flint
0750bd515de0b5cc3d23f7c2282c50ca483dff24
[ "Apache-2.0" ]
1
2021-10-30T11:19:53.000Z
2021-10-30T11:19:54.000Z
Demos/Tests/TestBase/Camera.hpp
DhirajWishal/Flint
0750bd515de0b5cc3d23f7c2282c50ca483dff24
[ "Apache-2.0" ]
null
null
null
// Copyright 2021 Dhiraj Wishal // SPDX-License-Identifier: Apache-2.0 #pragma once #include "GraphicsCore/Device.hpp" #include <glm/glm.hpp> namespace Flint { /** * Flint editor camera matrix. */ struct CameraMatrix { CameraMatrix(const glm::mat4& view, const glm::mat4& projection) : mViewMatrix(view), mPr...
20.645161
120
0.622396
DhirajWishal
8e22e8d5c0651e4c65a88720de2083de7edd2054
7,199
cc
C++
systems/controllers/pid_controlled_system.cc
RobotLocomotion/drake-python3.7
ae397a4c6985262d23e9675b9bf3927c08d027f5
[ "BSD-3-Clause" ]
2
2021-02-25T02:01:02.000Z
2021-03-17T04:52:04.000Z
systems/controllers/pid_controlled_system.cc
RobotLocomotion/drake-python3.7
ae397a4c6985262d23e9675b9bf3927c08d027f5
[ "BSD-3-Clause" ]
null
null
null
systems/controllers/pid_controlled_system.cc
RobotLocomotion/drake-python3.7
ae397a4c6985262d23e9675b9bf3927c08d027f5
[ "BSD-3-Clause" ]
1
2021-06-13T12:05:39.000Z
2021-06-13T12:05:39.000Z
#include "drake/systems/controllers/pid_controlled_system.h" #include "drake/common/default_scalars.h" #include "drake/common/drake_assert.h" #include "drake/systems/primitives/saturation.h" namespace drake { namespace systems { namespace controllers { template <typename T> PidControlledSystem<T>::PidControlledSyste...
42.347059
80
0.711488
RobotLocomotion
8e27b8f69bd4c6ef07d4ebdc6d55e6ba669c8e09
2,382
cpp
C++
Day12/12.cpp
Legolaszstudio/aoc2021
dc2e341738e11a55232ae0f37aa0cc5625d8d831
[ "BSD-3-Clause" ]
null
null
null
Day12/12.cpp
Legolaszstudio/aoc2021
dc2e341738e11a55232ae0f37aa0cc5625d8d831
[ "BSD-3-Clause" ]
null
null
null
Day12/12.cpp
Legolaszstudio/aoc2021
dc2e341738e11a55232ae0f37aa0cc5625d8d831
[ "BSD-3-Clause" ]
null
null
null
#include <string> #include <fstream> #include <sstream> #include <deque> #include <vector> #include <iostream> #include <algorithm> #include <unordered_map> #include <set> struct Graph { std::unordered_map<std::string, std::vector<std::string>> tree; //WARNING It is not the best option to store the entire solutions b...
30.538462
136
0.669186
Legolaszstudio
8e2ce4cd297c21145788a920086b875e6bc37617
12,262
cpp
C++
groups/bal/balb/balb_leakybucket.cpp
AlisdairM/bde
bc65db208c32513aa545080f57090cc39c608be0
[ "Apache-2.0" ]
1
2022-01-23T11:31:12.000Z
2022-01-23T11:31:12.000Z
groups/bal/balb/balb_leakybucket.cpp
AlisdairM/bde
bc65db208c32513aa545080f57090cc39c608be0
[ "Apache-2.0" ]
null
null
null
groups/bal/balb/balb_leakybucket.cpp
AlisdairM/bde
bc65db208c32513aa545080f57090cc39c608be0
[ "Apache-2.0" ]
null
null
null
// balb_leakybucket.cpp -*-C++-*- #include <balb_leakybucket.h> #include <bsls_ident.h> BSLS_IDENT_RCSID(balb_leakybucket.cpp,"$Id$ $CSID$") #include <bsl_c_math.h> namespace BloombergLP { namespace { bsls::Types::Uint64 calculateNumberOfUnitsToDrain( ...
36.494048
79
0.576333
AlisdairM
8e2efa1781bfb88bc7793216fa25a00987bde79b
681
cpp
C++
framework/source/metadata_backward_compatibility.cpp
xrEngine512/interop
c80711fbbe08f350ad5d8058163770f57ed20b0c
[ "MIT" ]
null
null
null
framework/source/metadata_backward_compatibility.cpp
xrEngine512/interop
c80711fbbe08f350ad5d8058163770f57ed20b0c
[ "MIT" ]
4
2017-05-31T12:34:10.000Z
2018-10-13T18:53:03.000Z
framework/source/metadata_backward_compatibility.cpp
xrEngine512/MosaicFramework
c80711fbbe08f350ad5d8058163770f57ed20b0c
[ "MIT" ]
1
2020-04-23T14:09:11.000Z
2020-04-23T14:09:11.000Z
// // Created by islam on 14.01.18. // #include "metadata_backward_compatibility.h" #include "exceptions.h" namespace interop { module_metadata_t convert_metadata_to_current(const version_t & version, const void * metadata) { /** version of module's interop ABI matches version of node **/ if (version == inter...
32.428571
100
0.671072
xrEngine512
8e3ed45500eab3fc875fa1d2d2cfc349273f1962
14,036
hpp
C++
Svc/UdpReceiver/test/ut/Handcode/GTestBase.hpp
SSteve/fprime
12c478bd79c2c4ba2d9f9e634e47f8b6557c54a8
[ "Apache-2.0" ]
5
2019-10-22T03:41:02.000Z
2022-01-16T12:48:31.000Z
Svc/UdpReceiver/test/ut/Handcode/GTestBase.hpp
SSteve/fprime
12c478bd79c2c4ba2d9f9e634e47f8b6557c54a8
[ "Apache-2.0" ]
42
2021-06-10T23:31:10.000Z
2021-06-25T00:35:31.000Z
Svc/UdpReceiver/test/ut/Handcode/GTestBase.hpp
SSteve/fprime
12c478bd79c2c4ba2d9f9e634e47f8b6557c54a8
[ "Apache-2.0" ]
3
2020-09-05T18:17:21.000Z
2020-11-15T04:06:24.000Z
// ====================================================================== // \title UdpReceiver/test/ut/GTestBase.hpp // \author Auto-generated // \brief hpp file for UdpReceiver component Google Test harness base class // // \copyright // Copyright 2009-2015, by the California Institute of Technology. // ALL RIGHTS ...
39.76204
100
0.558421
SSteve
8e3f6cf476c45f2b7a7bef65b062dc198e4b0edc
13,656
hpp
C++
server/http_context.hpp
photonmaster/scymnus
bcbf580091a730c63e15b67b6331705a281ba20b
[ "MIT" ]
7
2021-08-19T01:11:21.000Z
2021-08-31T15:25:51.000Z
server/http_context.hpp
photonmaster/scymnus
bcbf580091a730c63e15b67b6331705a281ba20b
[ "MIT" ]
null
null
null
server/http_context.hpp
photonmaster/scymnus
bcbf580091a730c63e15b67b6331705a281ba20b
[ "MIT" ]
null
null
null
#pragma once #include <filesystem> #include <fstream> #include <charconv> #include "core/named_tuple.hpp" #include "core/traits.hpp" #include "date_manager.hpp" #include "external/json.hpp" #include "http/http_common.hpp" #include "http/query_parser.hpp" #include "http_request.hpp" #include "http_response.hpp" #includ...
36.126984
89
0.603691
photonmaster
8e3fc245d1db558c8a00cf72a0a4d0f26e5e772f
669
cc
C++
test/collections/btree_map.cc
Alexhuszagh/funxx
9f6c1fae92d96a84282fc62be272f4dc1e1dba9b
[ "MIT", "BSD-3-Clause" ]
1
2017-07-21T22:58:38.000Z
2017-07-21T22:58:38.000Z
test/collections/btree_map.cc
Alexhuszagh/funxx
9f6c1fae92d96a84282fc62be272f4dc1e1dba9b
[ "MIT", "BSD-3-Clause" ]
null
null
null
test/collections/btree_map.cc
Alexhuszagh/funxx
9f6c1fae92d96a84282fc62be272f4dc1e1dba9b
[ "MIT", "BSD-3-Clause" ]
null
null
null
// :copyright: (c) 2017 Alex Huszagh. // :license: MIT, see LICENSE.md for more details. /* * \addtogroup Tests * \brief B-tree map unittests. */ #include <pycpp/collections/btree_map.h> #include <gtest/gtest.h> PYCPP_USING_NAMESPACE // TESTS // ----- TEST(btree_map, constructor_null) { using map = btre...
20.272727
51
0.61136
Alexhuszagh
8e44e5ce8037c084d185b31b2dfa3424701da62a
2,905
cpp
C++
2020/04.cpp
mdelorme/advent_of_code
47142d501055fc0d36989db9b189be7e6756d779
[ "Unlicense" ]
null
null
null
2020/04.cpp
mdelorme/advent_of_code
47142d501055fc0d36989db9b189be7e6756d779
[ "Unlicense" ]
null
null
null
2020/04.cpp
mdelorme/advent_of_code
47142d501055fc0d36989db9b189be7e6756d779
[ "Unlicense" ]
null
null
null
#include <bits/stdc++.h> std::vector<std::string> passports; bool is_valid(std::string str) { str = str.substr(1); std::istringstream iff(str); bool valid=true; try { for (std::string s; iff >> s;) { size_t pos = s.find(":"); std::string key = s.substr(0, pos); std::string value = s.s...
22.346154
96
0.483305
mdelorme
8e47d105a11187712c0cb262db1c1cccb0d83f5f
7,731
cpp
C++
modules/build_seqset/correct_reads_test.cpp
spiralgenetics/biograph
33c78278ce673e885f38435384f9578bfbf9cdb8
[ "BSD-2-Clause" ]
16
2021-07-14T23:32:31.000Z
2022-03-24T16:25:15.000Z
modules/build_seqset/correct_reads_test.cpp
spiralgenetics/biograph
33c78278ce673e885f38435384f9578bfbf9cdb8
[ "BSD-2-Clause" ]
9
2021-07-20T20:39:47.000Z
2021-09-16T20:57:59.000Z
modules/build_seqset/correct_reads_test.cpp
spiralgenetics/biograph
33c78278ce673e885f38435384f9578bfbf9cdb8
[ "BSD-2-Clause" ]
9
2021-07-15T19:38:35.000Z
2022-01-31T19:24:56.000Z
#include "modules/build_seqset/correct_reads.h" #include "modules/bio_base/dna_testutil.h" #include "modules/build_seqset/part_repo.h" #include "modules/io/config.h" #include <gmock/gmock.h> #include <gtest/gtest.h> namespace { using namespace testing; using namespace build_seqset; using namespace dna_testutil; } ...
34.513393
96
0.608071
spiralgenetics
8e4db243cb4788f9aafac665ea049faaf53059e3
1,105
cpp
C++
Actividad2_recibe/ventanaarchivoexistente.cpp
adricatena/I2-puertoSerie
cb9efbde2bf30e517649e80a9ebb585449194287
[ "MIT" ]
null
null
null
Actividad2_recibe/ventanaarchivoexistente.cpp
adricatena/I2-puertoSerie
cb9efbde2bf30e517649e80a9ebb585449194287
[ "MIT" ]
null
null
null
Actividad2_recibe/ventanaarchivoexistente.cpp
adricatena/I2-puertoSerie
cb9efbde2bf30e517649e80a9ebb585449194287
[ "MIT" ]
null
null
null
#include "ventanaarchivoexistente.h" #include "ui_ventanaarchivoexistente.h" VentanaArchivoExistente::VentanaArchivoExistente(QWidget *parent) : QDialog(parent), ui(new Ui::VentanaArchivoExistente) { ui->setupUi(this); configuracion = new QSettings("Informatica II", "Actividad 2", this); } ...
26.95122
112
0.640724
adricatena
8e4f9a1fc9b1d1a49e96f9ef39fff5f0ef06b3c1
1,791
cpp
C++
dev/Gems/EMotionFX/Code/Tests/UI/LY-93621.cpp
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
dev/Gems/EMotionFX/Code/Tests/UI/LY-93621.cpp
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
dev/Gems/EMotionFX/Code/Tests/UI/LY-93621.cpp
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
54.272727
169
0.646008
jeikabu
8e53f4f2c6c82933b403124f1fac80b47f2c14b7
5,556
hpp
C++
include/multi_trie_index.hpp
kampersanda/frechet_simsearch
c91e0b12f0acf5f8a563ec16d71bf76bc0dc169c
[ "MIT" ]
7
2019-10-07T08:48:44.000Z
2022-03-23T02:39:45.000Z
include/multi_trie_index.hpp
kampersanda/frechet_simsearch
c91e0b12f0acf5f8a563ec16d71bf76bc0dc169c
[ "MIT" ]
null
null
null
include/multi_trie_index.hpp
kampersanda/frechet_simsearch
c91e0b12f0acf5f8a563ec16d71bf76bc0dc169c
[ "MIT" ]
1
2019-12-23T16:33:01.000Z
2019-12-23T16:33:01.000Z
#pragma once #include "trit_array_trie.hpp" #include "vcode_array.hpp" namespace frechet_simsearch { template <class Point, uint32_t Length> class MultiTrieIndex { public: using point_type = Point; using vcode_trait_type = VCodeTraits<Length>; using vint_type = typename vcode_trait_type::vint_type; ...
33.46988
114
0.578294
kampersanda
8e56d9e614f40f44f8657bdba23674583775c8bd
2,620
cpp
C++
src/frame_transformation.cpp
sakshikakde/human-detector-and-tracker
04e1fd08b858ababfa4fa91da8306890ef1d7d00
[ "MIT" ]
null
null
null
src/frame_transformation.cpp
sakshikakde/human-detector-and-tracker
04e1fd08b858ababfa4fa91da8306890ef1d7d00
[ "MIT" ]
3
2021-10-16T05:46:37.000Z
2021-10-18T22:16:20.000Z
src/frame_transformation.cpp
sakshikakde/human-detector-and-tracker
04e1fd08b858ababfa4fa91da8306890ef1d7d00
[ "MIT" ]
2
2021-10-06T02:52:31.000Z
2021-10-06T05:16:28.000Z
/** * MIT License * * Copyright (c) 2021 Anubhav Paras, Sakshi Kakde, Siddharth Telang * * 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 limitati...
35.890411
81
0.681679
sakshikakde
8e5ae16a99a4d082dbe5b8f34c5a4c69add57ac0
2,282
cc
C++
conf_crawler/url_dedup/dedup_config.cc
WinterW/crawler_cpp
e0c8dba77233005b1ab13731d1cbcce274b70778
[ "Apache-2.0" ]
null
null
null
conf_crawler/url_dedup/dedup_config.cc
WinterW/crawler_cpp
e0c8dba77233005b1ab13731d1cbcce274b70778
[ "Apache-2.0" ]
null
null
null
conf_crawler/url_dedup/dedup_config.cc
WinterW/crawler_cpp
e0c8dba77233005b1ab13731d1cbcce274b70778
[ "Apache-2.0" ]
2
2020-09-12T13:50:38.000Z
2020-09-16T15:55:14.000Z
/** * @Copyright 2011 GanJi Inc. * @file ganji/crawler/conf_crawler/url_dedup/dedup_config.cc * @namespace ganji::crawler::conf_crawler::dedup * @version 1.0 * @author lisizhong * @date 2011-08-01 * * 改动程序后, 请使用tools/cpplint/cpplint.py 检查代码是否符合编码规范! * 遵循的编码规范请参考: http://google-styleguide.googlecode.com/...
31.694444
94
0.689308
WinterW
8e5b90c24846d9cb3ce2bc6863a6f6474e160be2
3,230
cpp
C++
GTraining/SortedArrayIterator.cpp
tzaffi/cpp
43d99e70d8fa712f90ea0f6147774e4e0f2b11da
[ "MIT" ]
null
null
null
GTraining/SortedArrayIterator.cpp
tzaffi/cpp
43d99e70d8fa712f90ea0f6147774e4e0f2b11da
[ "MIT" ]
null
null
null
GTraining/SortedArrayIterator.cpp
tzaffi/cpp
43d99e70d8fa712f90ea0f6147774e4e0f2b11da
[ "MIT" ]
null
null
null
// // Created by zeph on 12/4/16. // #include <vector> /** * Given two sorted Vectors, use the merge sort iteration method to iterate through the arrays * and reduce from the union by applying the choice() function. For example, if: * o choice = insertLeft() - always pick the left param (useful for union) * o...
39.390244
116
0.588854
tzaffi
8e5c5cf73edd2031dd4c597f8ce890c017208f5d
3,459
hh
C++
include/tchecker/system/intvar.hh
arnabSur/tchecker
24ba7703068a41c6e9c613b4ef80ad6c788e65bc
[ "MIT" ]
7
2019-08-12T12:22:07.000Z
2021-11-18T01:48:27.000Z
include/tchecker/system/intvar.hh
arnabSur/tchecker
24ba7703068a41c6e9c613b4ef80ad6c788e65bc
[ "MIT" ]
40
2019-07-03T04:31:19.000Z
2022-03-31T03:40:43.000Z
include/tchecker/system/intvar.hh
arnabSur/tchecker
24ba7703068a41c6e9c613b4ef80ad6c788e65bc
[ "MIT" ]
8
2019-07-04T06:40:49.000Z
2021-12-03T15:51:50.000Z
/* * This file is a part of the TChecker project. * * See files AUTHORS and LICENSE for copyright details. * */ #ifndef TCHECKER_SYSTEM_INTVAR_HH #define TCHECKER_SYSTEM_INTVAR_HH #include <limits> #include <stdexcept> #include <string> #include <vector> #include "tchecker/basictypes.hh" #include "tchecker/syst...
31.162162
119
0.713501
arnabSur
8e5eff5c63cdb00e353c2626a812851af7f7b89e
5,673
hpp
C++
modules/gate_ops/bit_group/bit_group.hpp
ICHEC/QNLP
2966c7f71e6979c7ddef62520c3749cf6473fabe
[ "Apache-2.0" ]
29
2020-04-13T04:40:35.000Z
2021-12-17T11:21:35.000Z
modules/gate_ops/bit_group/bit_group.hpp
ICHEC/QNLP
2966c7f71e6979c7ddef62520c3749cf6473fabe
[ "Apache-2.0" ]
6
2020-03-12T17:40:00.000Z
2021-01-20T12:15:08.000Z
modules/gate_ops/bit_group/bit_group.hpp
ICHEC/QNLP
2966c7f71e6979c7ddef62520c3749cf6473fabe
[ "Apache-2.0" ]
9
2020-09-28T05:00:30.000Z
2022-03-04T02:11:49.000Z
/** * @file bit_group.hpp * @author Lee J. O'Riordan (lee.oriordan@ichec.ie) * @brief Implements grouping of bits to LSB side of register * @version 0.1 * @date 2019-04-02 * @detailed This header file introduces routines for bit-wise shifting of set bits to the side of a register (ie |01010> -> |00011>). * Note...
47.275
150
0.609907
ICHEC
8e60171a198c91c1f18eba310410edbff7d07090
4,895
cpp
C++
ngraph/frontend/onnx_import/src/utils/onnx_internal.cpp
kenkoyanagi/openvino
864b3ba62fb86e685c847ca84016043cdea870c5
[ "Apache-2.0" ]
1
2021-04-22T07:28:03.000Z
2021-04-22T07:28:03.000Z
ngraph/frontend/onnx_import/src/utils/onnx_internal.cpp
kenkoyanagi/openvino
864b3ba62fb86e685c847ca84016043cdea870c5
[ "Apache-2.0" ]
105
2020-06-04T00:23:29.000Z
2022-02-21T13:04:33.000Z
ngraph/frontend/onnx/onnx_import/src/utils/onnx_internal.cpp
mpapaj/openvino
37b46de1643a2ba6c3b6a076f81d0a47115ede7e
[ "Apache-2.0" ]
3
2021-04-25T06:52:41.000Z
2021-05-07T02:01:44.000Z
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <onnx/onnx_pb.h> #include "core/graph.hpp" #include "core/model.hpp" #include "core/null_node.hpp" #include "core/transform.hpp" #include "onnx_import/onnx_framework_node.hpp" #include "onnx_import/utils/onnx_internal.hpp"...
43.705357
98
0.489275
kenkoyanagi
769fc25c2db959e7739f02dfbd9b42abdccf62af
1,315
hh
C++
src/motor/introspect/api/motor/introspect/node/reference.hh
motor-dev/Motor
98cb099fe1c2d31e455ed868cc2a25eae51e79f0
[ "BSD-3-Clause" ]
null
null
null
src/motor/introspect/api/motor/introspect/node/reference.hh
motor-dev/Motor
98cb099fe1c2d31e455ed868cc2a25eae51e79f0
[ "BSD-3-Clause" ]
null
null
null
src/motor/introspect/api/motor/introspect/node/reference.hh
motor-dev/Motor
98cb099fe1c2d31e455ed868cc2a25eae51e79f0
[ "BSD-3-Clause" ]
null
null
null
/* Motor <motor.devel@gmail.com> see LICENSE for detail */ #ifndef MOTOR_INTROSPECT_NODE_REFERENCE_HH_ #define MOTOR_INTROSPECT_NODE_REFERENCE_HH_ /**************************************************************************************************/ #include <motor/introspect/stdafx.h> #include <motor/introspect/node...
29.222222
100
0.591635
motor-dev
76a412372c85c9f49be328ce89adba110ab8bef5
56,487
cpp
C++
src/test/analysis.cpp
akazachk/vpc
2339159e963b30287f780b6c03202fcbf0e9c131
[ "MIT" ]
6
2019-03-18T00:22:43.000Z
2022-03-16T19:21:21.000Z
src/test/analysis.cpp
akazachk/vpc
2339159e963b30287f780b6c03202fcbf0e9c131
[ "MIT" ]
14
2019-03-18T03:30:53.000Z
2020-10-08T15:32:45.000Z
src/test/analysis.cpp
akazachk/vpc
2339159e963b30287f780b6c03202fcbf0e9c131
[ "MIT" ]
2
2021-10-05T17:44:29.000Z
2021-11-04T20:45:01.000Z
/** * @file analysis.cpp * @author A. M. Kazachkov * @date 2019-03-04 */ #include "analysis.hpp" // COIN-OR #include <OsiSolverInterface.hpp> #include <OsiCuts.hpp> #include <CglGMI.hpp> // Project files #include "BBHelper.hpp" #include "CglVPC.hpp" #include "CutHelper.hpp" #include "Disjunction.hpp" #include "Pa...
45.849838
217
0.652876
akazachk
76a4ece61a7d68d10de049ef4a74ce6bd9f37d37
1,494
cpp
C++
multiview/contrib/mosya_conics/src/IsCrossingWindow.cpp
prcvlabs/multiview
1a03e14855292967ffb0c0ec7fff855c5abbc9d2
[ "Apache-2.0" ]
5
2021-09-03T23:12:08.000Z
2022-03-04T21:43:32.000Z
multiview/contrib/mosya_conics/src/IsCrossingWindow.cpp
prcvlabs/multiview
1a03e14855292967ffb0c0ec7fff855c5abbc9d2
[ "Apache-2.0" ]
3
2021-09-08T02:57:46.000Z
2022-02-26T05:33:02.000Z
multiview/contrib/mosya_conics/src/IsCrossingWindow.cpp
prcvlabs/multiview
1a03e14855292967ffb0c0ec7fff855c5abbc9d2
[ "Apache-2.0" ]
2
2021-09-26T03:14:40.000Z
2022-01-26T06:42:52.000Z
namespace mosya { int IsCrossingWindow(M6x1 A, reals R) /* */ { reals RR,F0,x,y,det,Two=2.; RR = R*R; F0 = (A(0) + A(1) + A(1) + A(2))*RR + Two*(A(3) + A(4))*R + A(5); if (((A(0) - A(1) - A(1) + A(2))*RR + Two*(A(3) - A(4))*R + A(5))*F0 <= 0) return(1); if (((A(0) - A(1) - A(1) + A(2))*RR ...
35.571429
132
0.390897
prcvlabs
76a6fbb86df683ddd90b26466743ee20b8bee87b
1,247
cpp
C++
C-Plus-Plus/Pancake_sort.cpp
MjCode01/DS-Algo-Point
79d826fa63090014dfaab281e5170c25b86c6bbf
[ "MIT" ]
1,148
2020-09-28T15:06:16.000Z
2022-03-17T16:30:08.000Z
C-Plus-Plus/Pancake_sort.cpp
MjCode01/DS-Algo-Point
79d826fa63090014dfaab281e5170c25b86c6bbf
[ "MIT" ]
520
2020-09-28T18:34:26.000Z
2021-10-30T17:06:43.000Z
C-Plus-Plus/Pancake_sort.cpp
MjCode01/DS-Algo-Point
79d826fa63090014dfaab281e5170c25b86c6bbf
[ "MIT" ]
491
2020-09-28T18:40:14.000Z
2022-03-20T13:41:44.000Z
//This code is solely written by Arnav without any external sources. // Pancake sort #include<bits/stdc++.h> using namespace std; void flip(int arr[] , int i){ for(int j = 0 ; j <= (i / 2) ; j++) { int temp = arr[i-j] ; arr[i-j] = arr[j] ; arr[j] = temp ; } } // time complexity = O(n) ; S...
18.338235
144
0.540497
MjCode01
76a97b05240b232ce4c2d9953ced0cdb79098a1e
21,068
cc
C++
src/moorerror.cc
CHEN-Lin/OpenMoor
f463f586487b9023e7f3678c9d851000558b14d7
[ "Apache-2.0" ]
7
2019-02-10T07:03:45.000Z
2022-03-04T16:09:38.000Z
src/moorerror.cc
CHEN-Lin/OpenMoor
f463f586487b9023e7f3678c9d851000558b14d7
[ "Apache-2.0" ]
null
null
null
src/moorerror.cc
CHEN-Lin/OpenMoor
f463f586487b9023e7f3678c9d851000558b14d7
[ "Apache-2.0" ]
4
2018-03-01T14:34:52.000Z
2018-06-14T12:13:55.000Z
// This file is part of OpenMOOR, an Open-source simulation program for MOORing // systems in offshore renewable energy applications. // // Copyright 2018 Lin Chen <l.chen.tj@gmail.com> & Biswajit Basu <basub@tcd.ie> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file exce...
45.8
83
0.623078
CHEN-Lin