hexsha
stringlengths
40
40
size
int64
19
11.4M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
270
max_stars_repo_name
stringlengths
5
110
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
float64
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
3
270
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
9
max_issues_count
float64
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
3
270
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
9
max_forks_count
float64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
19
11.4M
avg_line_length
float64
1.93
229k
max_line_length
int64
12
688k
alphanum_fraction
float64
0.07
0.99
matches
listlengths
1
10
09c3e07c4b75adcd347bd16b2dc8db98dafef82d
2,295
hpp
C++
parent_selector.hpp
mortalisk/xtpath
e643fa4a215d35af9f0e57cfd38f2e219156b81f
[ "BSL-1.0" ]
2
2015-04-14T19:34:27.000Z
2019-09-18T18:35:12.000Z
parent_selector.hpp
mortalisk/xtpath
e643fa4a215d35af9f0e57cfd38f2e219156b81f
[ "BSL-1.0" ]
null
null
null
parent_selector.hpp
mortalisk/xtpath
e643fa4a215d35af9f0e57cfd38f2e219156b81f
[ "BSL-1.0" ]
null
null
null
// Copyright Morten Bendiksen 2014 - 2016. // 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 MEDIASEQUENCER_PLUGIN_UTIL_XPATH_PARENT_SELECTOR_HPP #define MEDIASEQUENCER_PLUGIN_UTIL_XP...
27.987805
84
0.722004
[ "object" ]
09d519a43a187988c1c9d8c911e7bda61925f677
11,591
cc
C++
test/test_RadixTreeFunctions.cc
neufeldm/akamai-radix-tree
008c15d8d41b24a8aff9a230e52e56e3fb5c3de8
[ "MIT" ]
19
2019-03-16T03:20:18.000Z
2022-02-26T14:12:27.000Z
test/test_RadixTreeFunctions.cc
neufeldm/akamai-radix-tree
008c15d8d41b24a8aff9a230e52e56e3fb5c3de8
[ "MIT" ]
15
2019-03-22T17:53:15.000Z
2020-11-13T19:59:29.000Z
test/test_RadixTreeFunctions.cc
neufeldm/akamai-radix-tree
008c15d8d41b24a8aff9a230e52e56e3fb5c3de8
[ "MIT" ]
7
2019-06-20T14:39:44.000Z
2022-03-15T09:56:11.000Z
/* Copyright (c) 2019 Akamai Technologies, Inc 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, publish, di...
35.446483
142
0.663791
[ "vector" ]
09e4f8890c663a0bb243e85e3a8388e10380ec0c
3,339
cpp
C++
VNCpp/jni/src/model/Vnc.cpp
ocrespo/VNCpp
6efdf40e53ae4a0cf3c0345b66d789ac93ad62d0
[ "CC-BY-3.0", "Apache-2.0" ]
27
2015-06-16T12:22:47.000Z
2021-04-18T07:03:42.000Z
VNCpp/jni/src/model/Vnc.cpp
ocrespo/VNCpp
6efdf40e53ae4a0cf3c0345b66d789ac93ad62d0
[ "CC-BY-3.0", "Apache-2.0" ]
5
2015-09-25T01:27:18.000Z
2017-01-05T01:09:05.000Z
VNCpp/jni/src/model/Vnc.cpp
ocrespo/VNCpp
6efdf40e53ae4a0cf3c0345b66d789ac93ad62d0
[ "CC-BY-3.0", "Apache-2.0" ]
23
2015-01-04T07:09:04.000Z
2021-01-01T14:59:30.000Z
/* Copyright 2013 Oscar Crespo Salazar Copyright 2013 Gorka Jimeno Garrachon Copyright 2013 Luis Valero Martin This file is part of VNCpp. VNCpp 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 v...
27.368852
114
0.739443
[ "model" ]
09ee90040aecf672f92d8a8b77d6afb067594c08
1,260
cpp
C++
competition/fuzhou3.2.cpp
Hyyyyyyyyyy/acm
d7101755b2c2868d51bb056f094e024d0333b56f
[ "MIT" ]
null
null
null
competition/fuzhou3.2.cpp
Hyyyyyyyyyy/acm
d7101755b2c2868d51bb056f094e024d0333b56f
[ "MIT" ]
null
null
null
competition/fuzhou3.2.cpp
Hyyyyyyyyyy/acm
d7101755b2c2868d51bb056f094e024d0333b56f
[ "MIT" ]
null
null
null
#include <cstdio> #include <cstring> #include <cmath> #include <queue> #include <algorithm> #include <cctype> #include <vector> #include <map> #include <set> using namespace std; typedef long long ll; const double eps = 1e-8; const int maxn = 100000 + 100; const int MOD = 1e9 + 7; int N, K; ll cuo[10010]; ll C[10010]; ...
15.555556
61
0.483333
[ "vector" ]
09f6edfad87c87da8f3ee2d916692827a97438d7
1,168
cpp
C++
2019/0609_ABC129/past/C.cpp
kazunetakahashi/atcoder
16ce65829ccc180260b19316e276c2fcf6606c53
[ "MIT" ]
7
2019-03-24T14:06:29.000Z
2020-09-17T21:16:36.000Z
2019/0609_ABC129/past/C.cpp
kazunetakahashi/atcoder
16ce65829ccc180260b19316e276c2fcf6606c53
[ "MIT" ]
null
null
null
2019/0609_ABC129/past/C.cpp
kazunetakahashi/atcoder
16ce65829ccc180260b19316e276c2fcf6606c53
[ "MIT" ]
1
2020-07-22T17:27:09.000Z
2020-07-22T17:27:09.000Z
#define DEBUG 1 /** * File : C.cpp * Author : Kazune Takahashi * Created : 6/9/2019, 9:04:45 PM * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> #include <algorithm> #include <vector> #include <string> #include <complex> #include <tuple> #include <queue> #include <stack> #include <ma...
14.072289
33
0.527397
[ "vector" ]
e2503f4cb4866ef3dbd35a228f24e03ea9604f6b
982
cpp
C++
test/util/shift_to_value_test.cpp
jkomyno/jkds
94ffdf3e1f1cf7a413756a7096c749e675ca7b0a
[ "MIT" ]
3
2022-02-12T18:47:51.000Z
2022-02-15T08:59:21.000Z
test/util/shift_to_value_test.cpp
jkomyno/jkds
94ffdf3e1f1cf7a413756a7096c749e675ca7b0a
[ "MIT" ]
null
null
null
test/util/shift_to_value_test.cpp
jkomyno/jkds
94ffdf3e1f1cf7a413756a7096c749e675ca7b0a
[ "MIT" ]
null
null
null
#include <gtest/gtest.h> #include <jkds/util/shift_to_value.h> #include <cstdint> #include <vector> using namespace std; namespace { class ShiftToValueTest : public ::testing::Test { }; } // namespace TEST_F(ShiftToValueTest, distinct) { std::vector<uint8_t> vec{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; EXPECT_EQ(ve...
22.318182
71
0.644603
[ "vector" ]
e26616428be2fc5db27671954a86b6e8adf7972c
1,245
cc
C++
stapl_release/test/containers/graph/out_of_core.cc
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
stapl_release/test/containers/graph/out_of_core.cc
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
stapl_release/test/containers/graph/out_of_core.cc
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
/* // Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a // component of the Texas A&M University System. // All rights reserved. // The information and source code contained herein is the exclusive // property of TEES and may not be disclosed, examined or reproduced // in whole or in part withou...
27.666667
74
0.742972
[ "mesh", "vector" ]
e26ac46e1029a2da573d16bcc382f8a6465ed2d2
518
cpp
C++
4/src/ReadFileAction.cpp
AlinaNenasheva/operating-systems
9f04381945aa7870dff9616b45c6d07e96701bd7
[ "MIT" ]
null
null
null
4/src/ReadFileAction.cpp
AlinaNenasheva/operating-systems
9f04381945aa7870dff9616b45c6d07e96701bd7
[ "MIT" ]
null
null
null
4/src/ReadFileAction.cpp
AlinaNenasheva/operating-systems
9f04381945aa7870dff9616b45c6d07e96701bd7
[ "MIT" ]
null
null
null
#pragma once #include "Action.cpp" #include "ActionResult.cpp" using namespace std; #define READ_FILE_ARGUMENTS_NUMBER 1 class ReadFileAction : public Action { public: ReadFileAction(const vector<string> &arguments, const FileSystemService &service) : Action(arguments, service) {} ActionResult *execute() o...
23.545455
117
0.712355
[ "vector" ]
e26fff477c036fba478734da27352503f607424a
2,524
cpp
C++
projects/PolyhedralModel/projects/spmd-generator/compute-systems/array-system.cpp
maurizioabba/rose
7597292cf14da292bdb9a4ef573001b6c5b9b6c0
[ "BSD-3-Clause" ]
4
2017-12-19T17:15:00.000Z
2021-02-05T12:25:50.000Z
projects/PolyhedralModel/projects/spmd-generator/compute-systems/array-system.cpp
sujankh/rose-matlab
7435d4fa1941826c784ba97296c0ec55fa7d7c7e
[ "BSD-3-Clause" ]
null
null
null
projects/PolyhedralModel/projects/spmd-generator/compute-systems/array-system.cpp
sujankh/rose-matlab
7435d4fa1941826c784ba97296c0ec55fa7d7c7e
[ "BSD-3-Clause" ]
2
2019-02-19T01:27:51.000Z
2019-02-19T12:29:49.000Z
#include "compute-systems/array-system.hpp" #include <cassert>> ArraySystem::ArraySystem( std::vector<unsigned> dimensions_, ComputeSystem * element, Memory * shared_, Link * interconnect_, ComputeSystem * parent ) : ComputeSystem(parent), dimensions(dimensions_), array(NULL), shared(shared_), in...
24.745098
79
0.637876
[ "vector" ]
e2811aa824afb961081f088002000a533f0eb36d
1,533
cpp
C++
main.cpp
AceCoooool/MiniSTL
786421ad81d7d0a5acaf0f753c5993287f6f83ca
[ "MIT" ]
null
null
null
main.cpp
AceCoooool/MiniSTL
786421ad81d7d0a5acaf0f753c5993287f6f83ca
[ "MIT" ]
null
null
null
main.cpp
AceCoooool/MiniSTL
786421ad81d7d0a5acaf0f753c5993287f6f83ca
[ "MIT" ]
null
null
null
#include <iostream> #include "Allocator/test_allocator.h" #include "Sequence/Vector/test_vector.h" #include "Sequence/List/test_list.h" #include "Sequence/Deque/test_deque.h" #include "Sequence/Stack/test_stack.h" #include "Sequence/Queue/test_queue.h" #include "Sequence/Slist/test_slist.h" #include "Sequence/Priority...
27.375
56
0.710372
[ "vector" ]
e292309a1bca3da2ea75f00c4c3ba708c686a472
16,829
hxx
C++
main/sc/source/filter/inc/xcl97rec.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/sc/source/filter/inc/xcl97rec.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/sc/source/filter/inc/xcl97rec.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
28.572156
132
0.576267
[ "object", "shape" ]
e29f00b6bf692301174baade0b573995ea9fa71b
296
cc
C++
primer-answer/chapter10/10.37.cc
Becavalier/playground-cpp
0fce453f769111698f813852238f933e326ed441
[ "MIT" ]
1
2018-02-23T11:12:17.000Z
2018-02-23T11:12:17.000Z
primer-answer/chapter10/10.37.cc
Becavalier/playground-cpp
0fce453f769111698f813852238f933e326ed441
[ "MIT" ]
null
null
null
primer-answer/chapter10/10.37.cc
Becavalier/playground-cpp
0fce453f769111698f813852238f933e326ed441
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main (int argc, char **argv) { vector<int> l{0, 1, 2, 3, 4, 0, 1, 3, 4, 5}, r(5); copy(l.rbegin() + 3, l.rend() - 2, r.begin()); for (auto e : r) { cout << e << endl; } return 0; }
18.5
54
0.52027
[ "vector" ]
e2aa80c9687aa1f8ed8b1718166c99587904d22f
2,182
cpp
C++
UVA/ProjectScheduling.cpp
aajjbb/contest-files
b8842681b96017063a7baeac52ae1318bf59d74d
[ "Apache-2.0" ]
1
2018-08-28T19:58:40.000Z
2018-08-28T19:58:40.000Z
UVA/ProjectScheduling.cpp
aajjbb/contest-files
b8842681b96017063a7baeac52ae1318bf59d74d
[ "Apache-2.0" ]
2
2017-04-16T00:48:05.000Z
2017-08-03T20:12:26.000Z
UVA/ProjectScheduling.cpp
aajjbb/contest-files
b8842681b96017063a7baeac52ae1318bf59d74d
[ "Apache-2.0" ]
4
2016-03-04T19:42:00.000Z
2018-01-08T11:42:00.000Z
#include <bits/stdc++.h> template<typename T> T gcd(T a, T b) { if(!b) return a; return gcd(b, a % b); } template<typename T> T lcm(T a, T b) { return a * b / gcd(a, b); } template<typename T> void chmin(T& a, T b) { a = (a > b) ? b : a; } template<typename T> void chmax(T& a, T b) { a = (a < b) ? b : a; ...
15.811594
67
0.491292
[ "vector" ]
e2aef761c454771e4ee9bf87077b4e4c55774c94
5,217
cpp
C++
alienfx-haptics/kiss_fft/tools/kiss_fftr.cpp
Hellohi3654/alienfx-tools
46a2918aa07a5c2362be2ec06547d3f2c16798bb
[ "MIT" ]
55
2020-07-24T13:50:59.000Z
2022-03-31T02:15:09.000Z
alienfx-haptics/kiss_fft/tools/kiss_fftr.cpp
Hellohi3654/alienfx-tools
46a2918aa07a5c2362be2ec06547d3f2c16798bb
[ "MIT" ]
41
2020-07-25T14:37:25.000Z
2022-03-28T02:36:15.000Z
alienfx-haptics/kiss_fft/tools/kiss_fftr.cpp
Hellohi3654/alienfx-tools
46a2918aa07a5c2362be2ec06547d3f2c16798bb
[ "MIT" ]
9
2020-12-24T05:19:35.000Z
2022-03-30T01:52:32.000Z
/* Copyright (c) 2003, Mark Borgerding 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 conditions and the follo...
37
754
0.631589
[ "transform" ]
e2af729dc11ec879f7357452b7e632a81ce3277e
1,329
hh
C++
src/plugin/graphics/nullrender/include/nullrenderer.hh
motor-dev/Motor
98cb099fe1c2d31e455ed868cc2a25eae51e79f0
[ "BSD-3-Clause" ]
null
null
null
src/plugin/graphics/nullrender/include/nullrenderer.hh
motor-dev/Motor
98cb099fe1c2d31e455ed868cc2a25eae51e79f0
[ "BSD-3-Clause" ]
null
null
null
src/plugin/graphics/nullrender/include/nullrenderer.hh
motor-dev/Motor
98cb099fe1c2d31e455ed868cc2a25eae51e79f0
[ "BSD-3-Clause" ]
null
null
null
/* Motor <motor.devel@gmail.com> see LICENSE for detail */ #ifndef MOTOR_NULLRENDER_RENDERER_HH_ #define MOTOR_NULLRENDER_RENDERER_HH_ /**************************************************************************************************/ #include <stdafx.h> #include <motor/filesystem/folder.meta.hh> #include ...
28.891304
101
0.595184
[ "3d" ]
e2af7ae095901563499428404279d4c33c7e165c
1,041
hpp
C++
libs/core/include/fcppt/math/vector/null.hpp
freundlich/fcppt
17df1b1ad08bf2435f6902d5465e3bc3fe5e3022
[ "BSL-1.0" ]
13
2015-02-21T18:35:14.000Z
2019-12-29T14:08:29.000Z
libs/core/include/fcppt/math/vector/null.hpp
cpreh/fcppt
17df1b1ad08bf2435f6902d5465e3bc3fe5e3022
[ "BSL-1.0" ]
5
2016-08-27T07:35:47.000Z
2019-04-21T10:55:34.000Z
libs/core/include/fcppt/math/vector/null.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_MATH_VECTOR_NULL_HPP_INCLUDED #define FCPPT_MATH_VECTOR_NULL_HPP_INCLUDED #include <...
28.916667
96
0.75024
[ "vector" ]
e2b5e1ff3e4d84f82577b37b9e800c68eb90ac08
5,564
cpp
C++
cpp/tree.cpp
ianyfan/depccg
dda01a72ad09ee36fb5d626a473cc2a0d267c57b
[ "MIT" ]
null
null
null
cpp/tree.cpp
ianyfan/depccg
dda01a72ad09ee36fb5d626a473cc2a0d267c57b
[ "MIT" ]
null
null
null
cpp/tree.cpp
ianyfan/depccg
dda01a72ad09ee36fb5d626a473cc2a0d267c57b
[ "MIT" ]
null
null
null
#include "tree.h" #include "cat.h" #include "utils.h" #include <stack> #include <algorithm> #include <string> namespace myccg { RuleType GetUnaryRuleType(Cat cat) { return cat->IsForwardTypeRaised() ? FWD_TYPERAISE : (cat->IsBackwardTypeRaised() ? BWD_TYPERAISE : UNARY); } class PrologCatStr: public Ca...
29.284211
84
0.472502
[ "transform" ]
e2c19a36e264e4fbe8e4eebf981c791404cade42
655
cpp
C++
Physics/Phantom/phantomSphereSimple.cpp
XZelnar/GameEngine
cb28f6046249e77e30d5e3526f9f0a1fe7f3ef8f
[ "MIT" ]
1
2016-10-05T13:58:54.000Z
2016-10-05T13:58:54.000Z
Physics/Phantom/phantomSphereSimple.cpp
XZelnar/GameEngine
cb28f6046249e77e30d5e3526f9f0a1fe7f3ef8f
[ "MIT" ]
null
null
null
Physics/Phantom/phantomSphereSimple.cpp
XZelnar/GameEngine
cb28f6046249e77e30d5e3526f9f0a1fe7f3ef8f
[ "MIT" ]
null
null
null
#include "phantomSphereSimple.h" #ifndef NO_HAVOK_PHYSICS PhantomSphereSimple::PhantomSphereSimple() { phantom = null; radius = 1; shape = null; transform.setIdentity(); } void PhantomSphereSimple::Initialize() { shape = new hkpSphereShape(radius); PhantomShapeSimple::Initialize(); } void Phan...
17.236842
48
0.691603
[ "shape", "transform" ]
e2c301d6e8e03c39c7c89a32518e3e5f36efe59f
5,185
cpp
C++
http_opencv.cpp
phoenixqm/OpenCV-Server
a9cc6900207f064f51c0cfad7e37494e76619090
[ "MIT" ]
null
null
null
http_opencv.cpp
phoenixqm/OpenCV-Server
a9cc6900207f064f51c0cfad7e37494e76619090
[ "MIT" ]
null
null
null
http_opencv.cpp
phoenixqm/OpenCV-Server
a9cc6900207f064f51c0cfad7e37494e76619090
[ "MIT" ]
null
null
null
#include "server_http.hpp" #include "client_http.hpp" //Added for the json-example #define BOOST_SPIRIT_THREADSAFE #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/json_parser.hpp> //Added for the default_resource example #include <fstream> #include <boost/filesystem.hpp> #include <vector> #incl...
35.758621
110
0.601157
[ "vector" ]
e2c504e19c4bb0df161b4f3a96537ca9cc7edab1
4,814
cpp
C++
SDK/Database/TransactionCoinbase.cpp
fakecoinbase/elastosslashElastos.ELA.SPV.Cpp
b18eaeaa96e6c9049e3527c6e8b22a571aba35f6
[ "MIT" ]
11
2018-08-01T02:01:34.000Z
2019-09-15T23:31:40.000Z
SDK/Database/TransactionCoinbase.cpp
chenyukaola/Elastos.ELA.SPV.Cpp
57b5264d4eb259439dd85aefc0455389551ee3cf
[ "MIT" ]
51
2018-07-16T09:41:14.000Z
2020-01-08T03:40:34.000Z
SDK/Database/TransactionCoinbase.cpp
yiyaowen/ela-spvwallet-desktop
475095ee3c1f49bc7e23c5c341e959568d4f72b9
[ "MIT" ]
26
2018-07-12T02:34:46.000Z
2022-02-07T07:08:54.000Z
/* * Copyright (c) 2019 Elastos Foundation * * 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, ...
33.2
107
0.700665
[ "vector" ]
e2c9bdb7d90ac771616f1979fd86f2bc5391d936
6,672
cpp
C++
Source/Readers/HTKDeserializers/MLFIndexBuilder.cpp
burhandodhy/CNTK
fcdeef63d0192c7b4b7428b14c1f9750d6c1de2e
[ "MIT" ]
17,702
2016-01-25T14:03:01.000Z
2019-05-06T09:23:41.000Z
Source/Readers/HTKDeserializers/MLFIndexBuilder.cpp
burhandodhy/CNTK
fcdeef63d0192c7b4b7428b14c1f9750d6c1de2e
[ "MIT" ]
3,489
2016-01-25T13:32:09.000Z
2019-05-03T11:29:15.000Z
Source/Readers/HTKDeserializers/MLFIndexBuilder.cpp
burhandodhy/CNTK
fcdeef63d0192c7b4b7428b14c1f9750d6c1de2e
[ "MIT" ]
5,180
2016-01-25T14:02:12.000Z
2019-05-06T04:24:28.000Z
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.md file in the project root for full license information. // #include "stdafx.h" #define _CRT_SECURE_NO_WARNINGS #define _SCL_SECURE_NO_WARNINGS #include "MLFIndexBuilder.h" #include "MLFUtils.h" #include "ReaderUtil.h" ...
36.659341
158
0.553357
[ "vector" ]
e2ca89ac1b82640121d7ddae0a5eae327bb4ab9f
1,764
hh
C++
day06/common/solver.hh
ovove/aoc21
6abcf1e898700826290f35e40bb4514dbcd8d8ef
[ "Unlicense" ]
null
null
null
day06/common/solver.hh
ovove/aoc21
6abcf1e898700826290f35e40bb4514dbcd8d8ef
[ "Unlicense" ]
null
null
null
day06/common/solver.hh
ovove/aoc21
6abcf1e898700826290f35e40bb4514dbcd8d8ef
[ "Unlicense" ]
null
null
null
#pragma once #include <algorithm> #include <array> #include <cstdint> #include <numeric> #include <vector> void fish_grow_simulation(std::vector<int>& population, unsigned days) { while (days--) { unsigned new_fish {0}; std::for_each(std::begin(population), std::end(populatio...
34.588235
96
0.577098
[ "vector" ]
e2cb2a5b485139b68f5cec61b6c2c5e3db86cddf
5,557
cpp
C++
trt_l2norm_helper/l2norm_helper.cpp
r7vme/tensorrt_l2norm_helper
bc2c0651ca450db4661cbd22530a014feda523c4
[ "MIT" ]
30
2019-07-08T22:24:40.000Z
2021-08-12T08:50:54.000Z
eagle2_perception/vendor/trt_l2norm_helper/l2norm_helper.cpp
r7vme/eagle2
6b079e5849e401f17730c520c45a5d43421eddc2
[ "MIT" ]
3
2019-10-08T11:47:28.000Z
2021-10-04T12:39:58.000Z
trt_l2norm_helper/l2norm_helper.cpp
r7vme/tensorrt_l2norm_helper
bc2c0651ca450db4661cbd22530a014feda523c4
[ "MIT" ]
2
2019-12-20T14:54:51.000Z
2020-05-14T13:26:17.000Z
#include <cstring> #include <iostream> #include <sstream> #include "l2norm_helper.h" using namespace std; using namespace nvinfer1; namespace { const char* L2NORM_HELPER_PLUGIN_VERSION{"1"}; const char* L2NORM_HELPER_PLUGIN_NAME{"L2Norm_Helper_TRT"}; } // namespace PluginFieldCollection L2NormHelperPluginCreator::m...
26.588517
101
0.685802
[ "object", "vector" ]
e2dbe78ac59129111522f3a132cfd6a7e3716761
954
cpp
C++
book/CH06/S01_Specifying_attachments_descriptions.cpp
THISISAGOODNAME/vkCookBook
d022b4151a02c33e5c58534dc53ca39610eee7b5
[ "MIT" ]
5
2019-03-02T16:29:15.000Z
2021-11-07T11:07:53.000Z
book/CH06/S01_Specifying_attachments_descriptions.cpp
THISISAGOODNAME/vkCookBook
d022b4151a02c33e5c58534dc53ca39610eee7b5
[ "MIT" ]
null
null
null
book/CH06/S01_Specifying_attachments_descriptions.cpp
THISISAGOODNAME/vkCookBook
d022b4151a02c33e5c58534dc53ca39610eee7b5
[ "MIT" ]
2
2018-07-10T18:15:40.000Z
2020-01-03T04:02:32.000Z
// // Created by aicdg on 2017/6/21. // // // Chapter: 06 Render Passes and Framebuffers // Recipe: 01 Specifying attachments descriptions #include "S01_Specifying_attachments_descriptions.h" namespace VKCookbook { void SpecifyAttachmentsDescriptions( std::vector<VkAttachmentDescription> const & attachments_de...
34.071429
114
0.592243
[ "render", "vector" ]
e2eb685972dd3c75f2012f6b8c6af0d6ec9bea83
4,414
cpp
C++
audio_algorithms/fft.cpp
mumtozee/MIPT_algos
dc7834bea73cde716f2da4c2ac6771572f44b9d5
[ "MIT" ]
4
2020-05-13T22:32:29.000Z
2021-01-11T13:21:41.000Z
audio_algorithms/fft.cpp
mumtozee/MSTL_custom
dc7834bea73cde716f2da4c2ac6771572f44b9d5
[ "MIT" ]
null
null
null
audio_algorithms/fft.cpp
mumtozee/MSTL_custom
dc7834bea73cde716f2da4c2ac6771572f44b9d5
[ "MIT" ]
null
null
null
#include <algorithm> #include <cmath> #include <complex> #include <cstdint> #include <fstream> #include <iostream> #include <valarray> #include <vector> struct WavHeader { char chunk_id[4]; uint32_t chunk_size; char format[4]; char subchunk1_id[4]; uint32_t subchunk1_size; uint16_t audio_for...
30.652778
81
0.620752
[ "vector" ]
e2f619222b7a685230a6b1897604189cc40a6eff
1,216
cpp
C++
Kattis/fridge.cpp
YourName0729/competitive-programming
437ef18a46074f520e0bfa0bdd718bb6b1c92800
[ "MIT" ]
3
2021-02-19T17:01:11.000Z
2021-03-11T16:50:19.000Z
Kattis/fridge.cpp
YourName0729/competitive-programming
437ef18a46074f520e0bfa0bdd718bb6b1c92800
[ "MIT" ]
null
null
null
Kattis/fridge.cpp
YourName0729/competitive-programming
437ef18a46074f520e0bfa0bdd718bb6b1c92800
[ "MIT" ]
null
null
null
// iteration // https://open.kattis.com/problems/fridge #include <vector> #include <algorithm> #include <iostream> #include <sstream> #include <string> #include <stack> #include <cmath> #include <map> #include <utility> #include <queue> #include <iomanip> #include <deque> #include <set> #define Forcase int __t;cin>>__...
19
75
0.501645
[ "vector" ]
e2f734cd0d6b6c029a32f3f0807724d9d920bb1b
1,539
cpp
C++
src/main.cpp
HostedDinner/ServiceStarter
07a9a683564b756565edfce2788bc0edeba42855
[ "MIT" ]
1
2018-11-06T08:33:30.000Z
2018-11-06T08:33:30.000Z
src/main.cpp
HostedDinner/ServiceStarter
07a9a683564b756565edfce2788bc0edeba42855
[ "MIT" ]
1
2017-08-26T17:48:26.000Z
2017-08-26T17:48:26.000Z
src/main.cpp
HostedDinner/ServiceStarter
07a9a683564b756565edfce2788bc0edeba42855
[ "MIT" ]
null
null
null
/* * File: main.cpp * Author: Fabian * * Created on 8. Februar 2017, 17:06 */ #ifndef UNICODE #define UNICODE #endif #ifndef _UNICODE #define _UNICODE #endif #include "main.h" #include <windows.h> #include "Window.h" #include "ServiceGUI.h" #include "ConfigParser.h" #include "Sc...
23.318182
100
0.619883
[ "vector" ]
e2f7d97b4257826c4fc66b3ce2aed835fbd6af01
731
cpp
C++
2020/day1/main.cpp
bielskij/AOC-2019
e98d660412037b3fdac4a6b49adcb9230f518c99
[ "MIT" ]
null
null
null
2020/day1/main.cpp
bielskij/AOC-2019
e98d660412037b3fdac4a6b49adcb9230f518c99
[ "MIT" ]
null
null
null
2020/day1/main.cpp
bielskij/AOC-2019
e98d660412037b3fdac4a6b49adcb9230f518c99
[ "MIT" ]
null
null
null
#include <stdio.h> #include <stdlib.h> #include <string> #include <vector> #include "utils/file.h" #include "utils/utils.h" #include "common/debug.h" static int _solve(const std::vector<int> &samples, int num) { std::vector<std::vector<int>> combinations; utils::genCombinations(combinations, samples.size(), num...
16.244444
61
0.615595
[ "vector" ]
e2fa78871273c2fcd7bb3ae3b94fe5c91a0df00a
1,946
cpp
C++
data/transcoder_evaluation_gfg/cpp/MAXIMUM_SUM_IARRI_AMONG_ROTATIONS_GIVEN_ARRAY.cpp
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/cpp/MAXIMUM_SUM_IARRI_AMONG_ROTATIONS_GIVEN_ARRAY.cpp
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/cpp/MAXIMUM_SUM_IARRI_AMONG_ROTATIONS_GIVEN_ARRAY.cpp
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
// Copyright (c) 2019-present, Facebook, Inc. // All rights reserved. // // This source code is licensed under the license found in the // LICENSE file in the root directory of this source tree. // #include <iostream> #include <cstdlib> #include <string> #include <vector> #include <fstream> #include <iomanip> #include...
39.714286
915
0.561151
[ "vector" ]
c3bc3808298f4971560d4daa552bd92f542f4c5a
24,225
cpp
C++
Engine/Entities/Components.cpp
Higami69/Leviathan
90f68f9f6e5506d6133bcefcf35c8e84f158483b
[ "BSL-1.0" ]
null
null
null
Engine/Entities/Components.cpp
Higami69/Leviathan
90f68f9f6e5506d6133bcefcf35c8e84f158483b
[ "BSL-1.0" ]
null
null
null
Engine/Entities/Components.cpp
Higami69/Leviathan
90f68f9f6e5506d6133bcefcf35c8e84f158483b
[ "BSL-1.0" ]
null
null
null
// ------------------------------------ // #include "Components.h" #include "CommonStateObjects.h" #include "GameWorld.h" #include "Handlers/IDFactory.h" #include "Networking/Connection.h" #include "Networking/SentNetworkThing.h" #include "Newton/NewtonConversions.h" #include "Utility/Convert.h" #include "OgreBillboa...
28.702607
95
0.621094
[ "mesh", "render", "object", "model" ]
c3bcd9aaea695ffd2bde8951e55c636768ec1b28
37,362
cc
C++
src/third_party/mozc/session/internal/keymap.cc
jxjnjjn/chromium
435c1d02fd1b99001dc9e1e831632c894523580d
[ "Apache-2.0" ]
9
2018-09-21T05:36:12.000Z
2021-11-15T15:14:36.000Z
src/third_party/mozc/session/internal/keymap.cc
jxjnjjn/chromium
435c1d02fd1b99001dc9e1e831632c894523580d
[ "Apache-2.0" ]
null
null
null
src/third_party/mozc/session/internal/keymap.cc
jxjnjjn/chromium
435c1d02fd1b99001dc9e1e831632c894523580d
[ "Apache-2.0" ]
3
2018-11-28T14:54:13.000Z
2020-07-02T07:36:07.000Z
// Copyright 2010-2011, Google Inc. // 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 condit...
38.557276
80
0.703067
[ "vector" ]
c3be790675d79fa8739b5861a8c47e3dceb0bc0f
1,596
hh
C++
packages/MC/mc/VR_Analog.hh
GCZhang/Profugus
d4d8fe295a92a257b26b6082224226ca1edbff5d
[ "BSD-2-Clause" ]
19
2015-06-04T09:02:41.000Z
2021-04-27T19:32:55.000Z
packages/MC/mc/VR_Analog.hh
GCZhang/Profugus
d4d8fe295a92a257b26b6082224226ca1edbff5d
[ "BSD-2-Clause" ]
null
null
null
packages/MC/mc/VR_Analog.hh
GCZhang/Profugus
d4d8fe295a92a257b26b6082224226ca1edbff5d
[ "BSD-2-Clause" ]
5
2016-10-05T20:48:28.000Z
2021-06-21T12:00:54.000Z
//----------------------------------*-C++-*----------------------------------// /*! * \file MC/mc/VR_Analog.hh * \author Thomas M. Evans * \date Fri May 09 13:09:17 2014 * \brief VR_Analog class definition. * \note Copyright (C) 2014 Oak Ridge National Laboratory, UT-Battelle, LLC. */ //-------------------...
26.6
79
0.45614
[ "geometry" ]
c3cb1b90876c1fdec62056ce8b35b647ba318bfa
7,353
hpp
C++
include/subisosat.hpp
fcimeson/circuit_security
9a0d179209ddc7e8fb9c33e42eaf56a4f76b88f3
[ "Apache-2.0" ]
1
2018-02-17T05:48:10.000Z
2018-02-17T05:48:10.000Z
include/subisosat.hpp
fcimeson/circuit_security
9a0d179209ddc7e8fb9c33e42eaf56a4f76b88f3
[ "Apache-2.0" ]
null
null
null
include/subisosat.hpp
fcimeson/circuit_security
9a0d179209ddc7e8fb9c33e42eaf56a4f76b88f3
[ "Apache-2.0" ]
null
null
null
/******************************************************************************** Copyright 2017 Frank Imeson, Siddharth Garg, and Mahesh V. Tripunitara 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 ...
33.121622
89
0.584659
[ "vector" ]
c3d956e228021eae484a0940c24a11eef6ecf333
11,995
cc
C++
sfm.cc
pureexe/my-simple-sfm-ceres
12eed6f2ef4be6d2304b4f8b3851c71e39b51cc1
[ "MIT" ]
null
null
null
sfm.cc
pureexe/my-simple-sfm-ceres
12eed6f2ef4be6d2304b4f8b3851c71e39b51cc1
[ "MIT" ]
null
null
null
sfm.cc
pureexe/my-simple-sfm-ceres
12eed6f2ef4be6d2304b4f8b3851c71e39b51cc1
[ "MIT" ]
null
null
null
// Ceres Solver - A fast non-linear least squares minimizer // Copyright 2015 Google Inc. All rights reserved. // http://ceres-solver.org/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of so...
41.649306
81
0.631847
[ "object", "model", "3d" ]
c3d9dd2033906dc725c1931943cc6188a52d75f7
111,651
cpp
C++
IPlugExamples/IPlugGamma/gamma/src/fftpack++.cpp
iSynth/WDL-iSynth
4099b154ca7f7acb979c84118f9418024c8eab62
[ "Zlib" ]
1
2017-05-07T13:28:30.000Z
2017-05-07T13:28:30.000Z
IPlugExamples/IPlugGamma/gamma/src/fftpack++.cpp
iSynth/WDL-iSynth
4099b154ca7f7acb979c84118f9418024c8eab62
[ "Zlib" ]
null
null
null
IPlugExamples/IPlugGamma/gamma/src/fftpack++.cpp
iSynth/WDL-iSynth
4099b154ca7f7acb979c84118f9418024c8eab62
[ "Zlib" ]
null
null
null
/* * This file is based largely on the following software distribution: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * FFTPACK * * Reference ...
27.37215
174
0.500004
[ "transform" ]
c3fa00e09ab2af5bff147f6899eef5474d6cd652
3,135
cpp
C++
bench/bench-opc.cpp
oori/OrganizedPointFilters
9030badec776e4bb4d98a397767630efb9dc078f
[ "MIT" ]
2
2021-01-30T09:45:05.000Z
2021-04-13T09:21:19.000Z
bench/bench-opc.cpp
oori/OrganizedPointFilters
9030badec776e4bb4d98a397767630efb9dc078f
[ "MIT" ]
3
2020-12-13T23:09:33.000Z
2022-02-04T02:22:40.000Z
bench/bench-opc.cpp
oori/OrganizedPointFilters
9030badec776e4bb4d98a397767630efb9dc078f
[ "MIT" ]
3
2021-02-20T03:55:32.000Z
2021-09-17T08:25:23.000Z
#include <iostream> #include <sstream> #include <vector> #include <benchmark/benchmark.h> #include "OrganizedPointFilters/Filter/Laplacian.hpp" #include "OrganizedPointFilters/Filter/Normal.hpp" #include "OrganizedPointFilters/Filter/Bilateral.hpp" #include "OrganizedPointFilters/Types.hpp" using namespace OrganizedP...
31.666667
114
0.666986
[ "vector" ]
c3fe8a361cf5130b461272fa079bd41968b20180
3,505
cpp
C++
src/quantization.cpp
krishnateja95/AMDMIGraphX
dcbc9255328d9b1f4b303bb8299a0e24bf112206
[ "MIT" ]
null
null
null
src/quantization.cpp
krishnateja95/AMDMIGraphX
dcbc9255328d9b1f4b303bb8299a0e24bf112206
[ "MIT" ]
null
null
null
src/quantization.cpp
krishnateja95/AMDMIGraphX
dcbc9255328d9b1f4b303bb8299a0e24bf112206
[ "MIT" ]
null
null
null
#include <migraphx/quantization.hpp> #include <migraphx/program.hpp> #include <migraphx/instruction.hpp> #include <migraphx/iterator_for.hpp> #include <migraphx/op/convert.hpp> #include <migraphx/stringutils.hpp> #include <migraphx/ranges.hpp> #include <utility> namespace migraphx { inline namespace MIGRAPHX_INLINE_NS...
32.453704
91
0.548359
[ "shape", "vector" ]
7f0dc07ccf5cacab2025c1ee2121826b83bed070
14,909
cpp
C++
ntt.cpp
itzmeanjan/ff-p256-gpu
acbedab1dd653f7270ac917755286c565d2a8927
[ "CC0-1.0" ]
1
2022-03-03T08:47:36.000Z
2022-03-03T08:47:36.000Z
ntt.cpp
itzmeanjan/ff-p256-gpu
acbedab1dd653f7270ac917755286c565d2a8927
[ "CC0-1.0" ]
null
null
null
ntt.cpp
itzmeanjan/ff-p256-gpu
acbedab1dd653f7270ac917755286c565d2a8927
[ "CC0-1.0" ]
null
null
null
#include <ntt.hpp> ff_p254_t get_root_of_unity(uint64_t n) { uint64_t pow_ = 1ul << (28 - n); ff_p254_t pow(pow_); return static_cast<ff_p254_t>( cbn::mod_exp(TWO_ADIC_ROOT_OF_UNITY.data, pow.data, mod_p254_bn)); } sycl::event matrix_transposed_initialise( sycl::queue &q, ff_p254_t *vec_src, ff_p254_...
37.459799
80
0.562278
[ "vector" ]
7f0f8a5219783affdec95adae44ebe60837c7dc2
6,731
cc
C++
camera/features/auto_framing/face_tracker.cc
Toromino/chromiumos-platform2
97e6ba18f0e5ab6723f3448a66f82c1a07538d87
[ "BSD-3-Clause" ]
null
null
null
camera/features/auto_framing/face_tracker.cc
Toromino/chromiumos-platform2
97e6ba18f0e5ab6723f3448a66f82c1a07538d87
[ "BSD-3-Clause" ]
null
null
null
camera/features/auto_framing/face_tracker.cc
Toromino/chromiumos-platform2
97e6ba18f0e5ab6723f3448a66f82c1a07538d87
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright 2021 The Chromium OS 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 "features/auto_framing/face_tracker.h" #include <algorithm> #include "common/reloadable_config_file.h" #include "cros-camera/common.h...
39.362573
79
0.682217
[ "vector", "transform" ]
7f1673747f2b7821cf127fd645769b42fa33f6af
14,935
hpp
C++
sample/common/common.hpp
tonghudan/camport3
a334d06cddd75ea3d7942bb480a6fd00d52eccf1
[ "MIT-0" ]
null
null
null
sample/common/common.hpp
tonghudan/camport3
a334d06cddd75ea3d7942bb480a6fd00d52eccf1
[ "MIT-0" ]
null
null
null
sample/common/common.hpp
tonghudan/camport3
a334d06cddd75ea3d7942bb480a6fd00d52eccf1
[ "MIT-0" ]
null
null
null
#ifndef SAMPLE_COMMON_COMMON_HPP_ #define SAMPLE_COMMON_COMMON_HPP_ #include "Utils.hpp" #include <fstream> #include <iterator> #include <opencv2/opencv.hpp> #include "DepthRender.hpp" #include "MatViewer.hpp" #include "TYThread.hpp" #include "TyIsp.h" static inline int parseFrame(const TY_FRAME_DATA&...
37.244389
141
0.602343
[ "vector" ]
7f2148da9b31721970a69c5409d39c08bc0df10a
745
hpp
C++
src/engine/console.hpp
eXl-Nic/eXl
a5a0f77f47db3179365c107a184bb38b80280279
[ "MIT" ]
null
null
null
src/engine/console.hpp
eXl-Nic/eXl
a5a0f77f47db3179365c107a184bb38b80280279
[ "MIT" ]
null
null
null
src/engine/console.hpp
eXl-Nic/eXl
a5a0f77f47db3179365c107a184bb38b80280279
[ "MIT" ]
null
null
null
#pragma once #include <core/coredef.hpp> #include <core/lua/luamanager.hpp> #include <imgui.h> namespace eXl { struct LuaConsole { char InputBuf[256]; Vector<AString> Items; bool ScrollToBottom; Vector<AString> History; int HistoryPos; // -1: new line...
21.285714
88
0.636242
[ "vector" ]
7f2b15e2a9d07472dc3c2ebc1c68a4e46dbe5edb
2,410
hpp
C++
server/drivers/eeprom.hpp
Koheron/koheron-sdk
82b732635f1adf5dd0b04b9290b589c1fc091f29
[ "MIT" ]
77
2016-09-20T18:44:14.000Z
2022-03-30T16:04:09.000Z
server/drivers/eeprom.hpp
rsarwar87/koheron-sdk
02c35bf3c1c29f1029fad18b881dbd193efac5a7
[ "MIT" ]
101
2016-09-05T15:44:25.000Z
2022-03-29T09:22:09.000Z
server/drivers/eeprom.hpp
rsarwar87/koheron-sdk
02c35bf3c1c29f1029fad18b881dbd193efac5a7
[ "MIT" ]
34
2016-12-12T07:21:57.000Z
2022-01-12T21:00:52.000Z
#ifndef __DRIVERS_EEPROM_HPP__ #define __DRIVERS_EEPROM_HPP__ #include <vector> #include <thread> #include <chrono> #include <context.hpp> // EEPROM instructions // http://www.atmel.com/images/Atmel-5193-SEEPROM-AT93C46D-Datasheet.pdf namespace Eeprom_instr { constexpr uint32_t write = 1 << 2; // Write memory lo...
30.506329
95
0.63361
[ "vector" ]
b54fab872eca4f6d5d7f9fa7217dbb6c3b489fc9
4,587
cc
C++
meituan/TOVGD1.cc
ArCan314/leetcode
8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd
[ "MIT" ]
null
null
null
meituan/TOVGD1.cc
ArCan314/leetcode
8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd
[ "MIT" ]
null
null
null
meituan/TOVGD1.cc
ArCan314/leetcode
8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <string> #include <map> #include <list> #include <algorithm> struct Paste { Paste(int l, int r, int x) : l(l), r(r), x(x) {} int l; int r; int x; }; int main() { #ifndef DEBUG std::ios_base::sync_with_stdio(false); std::cin.tie(0); #endif int...
27.142012
118
0.334859
[ "vector" ]
b55fec59b97d3f98e65a42e9da8a686a32b8503d
801
cpp
C++
general/reverse.cpp
amazingpython/cppinterview
1a475a7e9fde3cb2c23a329c962f98c8ced3c1c7
[ "Apache-2.0" ]
1
2019-02-26T17:05:12.000Z
2019-02-26T17:05:12.000Z
general/reverse.cpp
amazingpython/cppinterview
1a475a7e9fde3cb2c23a329c962f98c8ced3c1c7
[ "Apache-2.0" ]
null
null
null
general/reverse.cpp
amazingpython/cppinterview
1a475a7e9fde3cb2c23a329c962f98c8ced3c1c7
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <vector> #include <math.h> #include <climits> /** * This reverse an integer, with 32 bit limits */ using namespace std; int reverse(int x) { int newX = 0, tempX = x, min_limit = INT_MIN/10, max_limit = INT_MAX/10, min_r = INT_MIN%10, max_r = INT_MAX%10; while (tempX != 0) { ...
22.25
116
0.541823
[ "vector" ]
b5630f63cdc56164ac2eefea1be603066557210d
1,074
cpp
C++
Codeforces/Round-708-Div2/B.cpp
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
1
2018-01-30T13:21:30.000Z
2018-01-30T13:21:30.000Z
Codeforces/Round-708-Div2/B.cpp
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
null
null
null
Codeforces/Round-708-Div2/B.cpp
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
1
2018-08-29T13:26:50.000Z
2018-08-29T13:26:50.000Z
// Tags: Math // Difficulty: 2.0 // Priority: 3 // Date: 17-03-2021 #include <bits/stdc++.h> #define all(A) begin(A), end(A) #define rall(A) rbegin(A), rend(A) #define sz(A) int(A.size()) #define pb push_back #define mp make_pair using namespace std; typedef long long ll; typedef pair <int, int> pii;...
19.888889
46
0.495345
[ "vector" ]
b564d1349ad464f51e15ea7f6525467d6f448fe4
13,251
cpp
C++
src/vkfw_core/gfx/vk/Framebuffer.cpp
dasmysh/VulkanFramework_Lib
baeaeb3158d23187f2ffa5044e32d8a5145284aa
[ "MIT" ]
null
null
null
src/vkfw_core/gfx/vk/Framebuffer.cpp
dasmysh/VulkanFramework_Lib
baeaeb3158d23187f2ffa5044e32d8a5145284aa
[ "MIT" ]
null
null
null
src/vkfw_core/gfx/vk/Framebuffer.cpp
dasmysh/VulkanFramework_Lib
baeaeb3158d23187f2ffa5044e32d8a5145284aa
[ "MIT" ]
null
null
null
/** * @file Framebuffer.cpp * @author Sebastian Maisch <sebastian.maisch@googlemail.com> * @date 2016.10.26 * * @brief Implementation of a framebuffer object for Vulkan. */ #include "gfx/vk/Framebuffer.h" #include "gfx/vk/LogicalDevice.h" #include "gfx/vk/wrappers/CommandBuffer.h" #include "gfx/vk/wrappers/...
45.851211
133
0.618368
[ "object", "vector" ]
b565e2f4e8f12bc708cf2bf4f9d82baca771fe1b
3,154
hpp
C++
numerical/fem/FEProblem.hpp
frRoy/Numerical
97e2167cf794eceaeba395bb1958fee72d8cbecf
[ "MIT" ]
null
null
null
numerical/fem/FEProblem.hpp
frRoy/Numerical
97e2167cf794eceaeba395bb1958fee72d8cbecf
[ "MIT" ]
null
null
null
numerical/fem/FEProblem.hpp
frRoy/Numerical
97e2167cf794eceaeba395bb1958fee72d8cbecf
[ "MIT" ]
null
null
null
/** * @file FEProblem.hpp * @brief Defines basis functions. * @author Francois Roy * @date 01/06/2020 */ #ifndef FEPROBLEM_H #define FEPROBLEM_H #include <vector> #include <cmath> #include <math.h> #include <Eigen/Core> #include "spdlog/spdlog.h" #include "FEMesh.hpp" namespace numer...
24.640625
76
0.602093
[ "mesh", "vector" ]
b56d6c7c7b4168221773328286ad6dc7cfae26bd
8,874
cc
C++
test_tools/example_gen/example_gen.cc
jakub-szymanski/reinforcement_learning
529f9bf70881a868fae4edccb626b4989c37b2c4
[ "MIT" ]
null
null
null
test_tools/example_gen/example_gen.cc
jakub-szymanski/reinforcement_learning
529f9bf70881a868fae4edccb626b4989c37b2c4
[ "MIT" ]
null
null
null
test_tools/example_gen/example_gen.cc
jakub-szymanski/reinforcement_learning
529f9bf70881a868fae4edccb626b4989c37b2c4
[ "MIT" ]
null
null
null
#include <iostream> #include <fstream> #include <cstring> #include <boost/program_options.hpp> #include "config_utility.h" #include "live_model.h" #include "constants.h" namespace r = reinforcement_learning; namespace u = reinforcement_learning::utility; namespace m = reinforcement_learning::model_management; namespa...
32.505495
339
0.629141
[ "vector", "model" ]
b5857c3468df8f97f40d6085d23f965d82c03f1b
9,671
cpp
C++
pepnovo/src/MSBSequence.cpp
compomics/jwrapper-pepnovo
1bd21a4910d7515dfab7747711917176a6b5ce99
[ "Apache-2.0" ]
null
null
null
pepnovo/src/MSBSequence.cpp
compomics/jwrapper-pepnovo
1bd21a4910d7515dfab7747711917176a6b5ce99
[ "Apache-2.0" ]
null
null
null
pepnovo/src/MSBSequence.cpp
compomics/jwrapper-pepnovo
1bd21a4910d7515dfab7747711917176a6b5ce99
[ "Apache-2.0" ]
null
null
null
#include "MSBlast.h" bool MSBSequence::operator== (const MSBSequence& rhs) const { if (seq.size() != rhs.seq.size()) return false; for (size_t i=0; i<seq.size(); i++) if (seq[i] != rhs.seq[i]) return false; return true; } /********************************************************** Calcs...
22.130435
109
0.574604
[ "vector" ]
b585fc28a3da588db302d0baf0aabd592199eb52
4,123
hpp
C++
include/oglplus/error/object.hpp
matus-chochlik/oglplus
76dd964e590967ff13ddff8945e9dcf355e0c952
[ "BSL-1.0" ]
364
2015-01-01T09:38:23.000Z
2022-03-22T05:32:00.000Z
include/oglplus/error/object.hpp
matus-chochlik/oglplus
76dd964e590967ff13ddff8945e9dcf355e0c952
[ "BSL-1.0" ]
55
2015-01-06T16:42:55.000Z
2020-07-09T04:21:41.000Z
include/oglplus/error/object.hpp
matus-chochlik/oglplus
76dd964e590967ff13ddff8945e9dcf355e0c952
[ "BSL-1.0" ]
57
2015-01-07T18:35:49.000Z
2022-03-22T05:32:04.000Z
/** * @file oglplus/error/object.hpp * @brief Declaration of OGLplus object-related error * * @author Matus Chochlik * * Copyright 2010-2019 Matus Chochlik. Distributed under the Boost * Software License, Version 1.0. (See accompanying file * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt...
26.429487
68
0.70798
[ "object" ]
b59ab2fbf51f301d0ac18ea59e24f197ccc41767
3,417
cpp
C++
src/DiMP/Graph/Tree.cpp
ytazz/DiMP
71e680a18ed82a3a3cdacd7fcc5c165bd21f167d
[ "MIT" ]
null
null
null
src/DiMP/Graph/Tree.cpp
ytazz/DiMP
71e680a18ed82a3a3cdacd7fcc5c165bd21f167d
[ "MIT" ]
null
null
null
src/DiMP/Graph/Tree.cpp
ytazz/DiMP
71e680a18ed82a3a3cdacd7fcc5c165bd21f167d
[ "MIT" ]
null
null
null
#include <DiMP/Graph/Tree.h> #include <DiMP/Graph/Object.h> #include <DiMP/Graph/Joint.h> #include <DiMP/Graph/Graph.h> #include <DiMP/Render/Config.h> namespace DiMP{; //------------------------------------------------------------------------------------------------- // TreeKey void TreeKey::AddVar(Solver* solver)...
19.982456
102
0.530582
[ "render", "object" ]
b59f2626f5d029bc2d3094d3c0cf7cfea0752854
81,784
cpp
C++
guilib/src/DatabaseViewer.cpp
izikhuang/rtabmap
2cc34cbe7e52d2165dc821b439ff175558d4374c
[ "BSD-3-Clause" ]
1
2016-02-20T01:40:14.000Z
2016-02-20T01:40:14.000Z
guilib/src/DatabaseViewer.cpp
izikhuang/rtabmap
2cc34cbe7e52d2165dc821b439ff175558d4374c
[ "BSD-3-Clause" ]
null
null
null
guilib/src/DatabaseViewer.cpp
izikhuang/rtabmap
2cc34cbe7e52d2165dc821b439ff175558d4374c
[ "BSD-3-Clause" ]
null
null
null
/* Copyright (c) 2010-2014, Mathieu Labbe - IntRoLab - Universite de Sherbrooke 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 ...
32.726691
223
0.658478
[ "render", "vector", "transform", "3d" ]
b5a431ff0a2befca4fc09b65e2579165ceff683e
1,565
hpp
C++
include/dotto/audio.hpp
mitsukaki/dotto
ebea72447e854c9beff676fe609d998a3cb0b3ea
[ "CC0-1.0" ]
4
2018-03-05T22:51:40.000Z
2018-03-11T00:54:38.000Z
include/dotto/audio.hpp
mitsukaki/dotto
ebea72447e854c9beff676fe609d998a3cb0b3ea
[ "CC0-1.0" ]
null
null
null
include/dotto/audio.hpp
mitsukaki/dotto
ebea72447e854c9beff676fe609d998a3cb0b3ea
[ "CC0-1.0" ]
1
2019-09-14T19:44:14.000Z
2019-09-14T19:44:14.000Z
#pragma once #include <unordered_map> #include <vector> #include <string> #include "mackron/miniaudio.h" namespace audio { struct source { public: source(); ma_decoder decoder; // a volume level betewen 0 and 1 float volume; long elapsed_time; v...
20.866667
74
0.517572
[ "vector" ]
b283f34493aabd789ff5341f8c95e6e5f53dffd2
76,758
cpp
C++
unittest/source/ut_xmlparserwriter.cpp
onbings/bofstd
366ff7f7d8871d5fa5785d5690d90506a7714ecc
[ "MIT" ]
null
null
null
unittest/source/ut_xmlparserwriter.cpp
onbings/bofstd
366ff7f7d8871d5fa5785d5690d90506a7714ecc
[ "MIT" ]
1
2021-03-20T14:46:54.000Z
2021-03-20T14:47:10.000Z
unittest/source/ut_xmlparserwriter.cpp
onbings/bofstd
366ff7f7d8871d5fa5785d5690d90506a7714ecc
[ "MIT" ]
null
null
null
/* * Copyright (c) 2015-2025, OnBings All rights reserved. * * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR * PURPOSE. * * This module im...
33.315104
350
0.555642
[ "vector" ]
b284dc91269ccc434cd4c980a6020f2fe5c78484
3,304
cpp
C++
src/apps/tests/tests/Interpolation_tests.cpp
Adnn/Math
017e7c42bfdd665c78557109b0b379567bfe8e7c
[ "MIT" ]
null
null
null
src/apps/tests/tests/Interpolation_tests.cpp
Adnn/Math
017e7c42bfdd665c78557109b0b379567bfe8e7c
[ "MIT" ]
11
2021-08-02T18:59:37.000Z
2021-08-12T16:18:07.000Z
src/apps/tests/tests/Interpolation_tests.cpp
Adnn/math
017e7c42bfdd665c78557109b0b379567bfe8e7c
[ "MIT" ]
1
2021-03-18T10:56:44.000Z
2021-03-18T10:56:44.000Z
#include "catch.hpp" #include <math/Interpolation/Interpolation.h> #include <math/Vector.h> using namespace ad::math; SCENARIO("Clamped type") { GIVEN("A few Clamped doubles.") { Clamped<> a{-5}; Clamped<> b{0.5}; Clamped<> c{1.5}; THEN("They are clamped as expected") ...
27.081967
84
0.495157
[ "vector" ]
b287e7138ab8cbbd02a8c8622b91c7ea2623bdec
432
hpp
C++
library/number_theory/prime_factor.hpp
fura2/competitive-programming-library
fc101651640ac5418155efce74f5ec103443bc8c
[ "MIT" ]
null
null
null
library/number_theory/prime_factor.hpp
fura2/competitive-programming-library
fc101651640ac5418155efce74f5ec103443bc8c
[ "MIT" ]
null
null
null
library/number_theory/prime_factor.hpp
fura2/competitive-programming-library
fc101651640ac5418155efce74f5ec103443bc8c
[ "MIT" ]
null
null
null
/* 素因数列挙 */ /* 説明 a の素因数をすべて求める 引数 a : 整数 戻り値 a の素因数のリスト 制約 a > 0 計算量 O(sqrt(a)) 備考 a = 1 のときは空のリストが返る */ vector<long long> prime_factors(long long a){ vector<long long> res; if(a%2==0){ do a/=2; while(a%2==0); res.emplace_back(2); } for(long long p=3;p*p<=a;p+=2) if(a%p==0) { do a/=p; whil...
13.935484
45
0.576389
[ "vector" ]
b294264b1f67d28a38bab0158ab9ce481ecee33e
5,657
cpp
C++
cpp/portalPython.cpp
jrrk2/connectal
6c05f083e227423c1b2d8ae5a2364db180a82f4a
[ "MIT" ]
134
2015-01-06T14:24:18.000Z
2022-03-13T22:38:56.000Z
cpp/portalPython.cpp
jrrk2/connectal
6c05f083e227423c1b2d8ae5a2364db180a82f4a
[ "MIT" ]
103
2015-01-02T14:01:29.000Z
2021-11-12T18:45:54.000Z
cpp/portalPython.cpp
jrrk2/connectal
6c05f083e227423c1b2d8ae5a2364db180a82f4a
[ "MIT" ]
39
2015-07-14T20:20:13.000Z
2021-12-01T00:49:23.000Z
/* Copyright (c) 2014 Quanta Research Cambridge, Inc * Copyright (c) 2016 ConnectalProject * * 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 limita...
46.368852
128
0.763832
[ "vector" ]
b2a3af9da320966af91432931afad1264a8395da
1,012
cc
C++
stapl_release/tools/mtl-2.0/contrib/examples/tri_pack_sol.cc
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
stapl_release/tools/mtl-2.0/contrib/examples/tri_pack_sol.cc
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
stapl_release/tools/mtl-2.0/contrib/examples/tri_pack_sol.cc
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
#include "mtl/matrix.h" #include "mtl/mtl.h" #include "mtl/utils.h" #include "mtl/linalg_vec.h" /* Sample Output A in packed form [ [1,], [2,1,], [3,5,1,], [4,6,7,1,], ] b: [8,25,79,167,] A^-1 * b: [8,9,10,11,] */ using namespace mtl; typedef matrix< double, triangle<lower>, packed<>, ...
15.8125
75
0.469368
[ "vector" ]
b2a87802a010eed7418001bd513c68c9bfd9e6a3
6,082
hpp
C++
src/Buckle/Bronze/include/compiler.hpp
flamechain/BELTE
a53ba207ff8b524d75d1b2561022992436550bf3
[ "MIT" ]
3
2022-03-11T15:31:49.000Z
2022-03-11T22:53:55.000Z
src/Buckle/Bronze/include/compiler.hpp
flamechain/belte
c09175c4fb034703290f51a1d63b0ae0cb421665
[ "MIT" ]
null
null
null
src/Buckle/Bronze/include/compiler.hpp
flamechain/belte
c09175c4fb034703290f51a1d63b0ae0cb421665
[ "MIT" ]
null
null
null
/* Compiler entry point */ #pragma once #ifndef COMPILER_HPP #define COMPILER_HPP #include "utils.hpp" namespace compiler { enum TokenType { EOFToken, BadToken, NUMBER, PLUS, MINUS, ASTERISK, SLASH, LPAREN, RPAREN, WHITESPACE, }; enum NodeType { BadNode, TokenNode, ...
22.950943
144
0.628741
[ "vector" ]
b2ab773e848b1d1dbf9f7dc313caa993186aadda
1,439
cpp
C++
src/Wall.cpp
rabowling/senior-project
07d7a1fba73376bc197f2ff045c057f0808d7612
[ "MIT" ]
1
2021-06-15T01:44:41.000Z
2021-06-15T01:44:41.000Z
src/Wall.cpp
rabowling/senior-project
07d7a1fba73376bc197f2ff045c057f0808d7612
[ "MIT" ]
null
null
null
src/Wall.cpp
rabowling/senior-project
07d7a1fba73376bc197f2ff045c057f0808d7612
[ "MIT" ]
null
null
null
#include "Wall.h" #include "Application.h" #include "Utils.h" #include <glm/gtc/matrix_transform.hpp> using namespace physx; using namespace glm; void Wall::init(PxVec3 position, PxVec3 size, PxQuat orientation) { this->size = size; pShape = app.physics.getPhysics()->createShape(PxBoxGeometry(size), *app.phy...
31.282609
102
0.678944
[ "shape" ]
b2ad857a5059babfd28a40f9f74bfbf489a312ba
10,943
hpp
C++
include/mtao/geometry/kdtree.hpp
mtao/core
91f9bc6e852417989ed62675e2bb372e6afc7325
[ "MIT" ]
null
null
null
include/mtao/geometry/kdtree.hpp
mtao/core
91f9bc6e852417989ed62675e2bb372e6afc7325
[ "MIT" ]
4
2020-04-18T16:16:05.000Z
2020-04-18T16:17:36.000Z
include/mtao/geometry/kdtree.hpp
mtao/core
91f9bc6e852417989ed62675e2bb372e6afc7325
[ "MIT" ]
null
null
null
#pragma once #include <Eigen/Core> #include <vector> #include <memory> #include <array> #include "mtao/types.h" #include <sstream> #include <numeric> namespace mtao { namespace geometry { template <typename T, int D> class KDTree; template <typename T, int D, int Axis> //class KDNode: public ...
39.937956
132
0.408572
[ "geometry", "vector" ]
b2b06f2ad7243bad0751b1ea02b3573ef85b74db
3,109
cpp
C++
src/gen_tileset_main.cpp
kant2002/scm2txt
f69904a9f838ef572be0332b467f4a68dbf24ad4
[ "MIT" ]
3
2018-04-09T18:12:55.000Z
2020-03-05T15:37:13.000Z
src/gen_tileset_main.cpp
kant2002/scm2txt
f69904a9f838ef572be0332b467f4a68dbf24ad4
[ "MIT" ]
null
null
null
src/gen_tileset_main.cpp
kant2002/scm2txt
f69904a9f838ef572be0332b467f4a68dbf24ad4
[ "MIT" ]
null
null
null
#include <string> #include <iostream> #include <fstream> #include "mapreader.h" #include "tilesetreader.h" using namespace std; namespace { std::array<const char*, 8> tileset_names = { "badlands", "platform", "install", "ashworld", "jungle", "desert", "ice", "twilight" }; } void printUsage() { cout...
29.056075
146
0.614024
[ "vector" ]
b2b3e0fdd6ac095d8ddcb95425919dcd550e180f
19,504
cpp
C++
include/delfem2/lsmats.cpp
nobuyuki83/delfem2
118768431ccc5b77ed10b8f76f625d38e0b552f0
[ "MIT" ]
153
2018-08-16T21:51:33.000Z
2022-03-28T10:34:48.000Z
include/delfem2/lsmats.cpp
mmer547/delfem2
4f4b28931c96467ac30948e6b3f83150ea530c92
[ "MIT" ]
63
2018-08-16T21:53:34.000Z
2022-02-22T13:50:34.000Z
include/delfem2/lsmats.cpp
mmer547/delfem2
4f4b28931c96467ac30948e6b3f83150ea530c92
[ "MIT" ]
18
2018-12-17T05:39:15.000Z
2021-11-16T08:21:16.000Z
/* * Copyright (c) 2019 Nobuyuki Umetani * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "delfem2/lsmats.h" #include <cassert> #include <complex> namespace delfem2::mats { DFM2_INLINE double MatNorm_Assym( const doubl...
34.642984
113
0.553374
[ "vector" ]
b2befc3ba8fb7dbd9072a3efc188f4e189da1586
5,405
cpp
C++
apps/openmw/mwgui/containeritemmodel.cpp
Bodillium/openmw
5fdd264d0704e33b44b1ccf17ab4fb721f362e34
[ "Unlicense" ]
null
null
null
apps/openmw/mwgui/containeritemmodel.cpp
Bodillium/openmw
5fdd264d0704e33b44b1ccf17ab4fb721f362e34
[ "Unlicense" ]
null
null
null
apps/openmw/mwgui/containeritemmodel.cpp
Bodillium/openmw
5fdd264d0704e33b44b1ccf17ab4fb721f362e34
[ "Unlicense" ]
null
null
null
#include "containeritemmodel.hpp" #include "../mwworld/containerstore.hpp" #include "../mwworld/class.hpp" #include "../mwbase/world.hpp" #include "../mwbase/environment.hpp" namespace { bool stacks (const MWWorld::Ptr& left, const MWWorld::Ptr& right) { if (left == right) return true; ...
31.982249
129
0.586124
[ "vector" ]
b2c3aa918bf43acf925dc6d0554116e8e7e5063b
1,408
cpp
C++
Day 10 - Syntax Scoring/Part 1/src/main.cpp
diff-arch/AdventOfCode2021-
a3e48eafed847af8c787dbf6e70e93975c3dc5fa
[ "MIT" ]
1
2021-12-02T19:07:17.000Z
2021-12-02T19:07:17.000Z
Day 10 - Syntax Scoring/Part 1/src/main.cpp
diff-arch/AdventOfCode2021-
a3e48eafed847af8c787dbf6e70e93975c3dc5fa
[ "MIT" ]
null
null
null
Day 10 - Syntax Scoring/Part 1/src/main.cpp
diff-arch/AdventOfCode2021-
a3e48eafed847af8c787dbf6e70e93975c3dc5fa
[ "MIT" ]
null
null
null
// // main.cpp // ADVENT OF CODE 2021: Day 10 - Syntax Scoring (Part 1) // // Created by diff-arch on 10/12/2021. // // Goal: Find the first illegal character in each corrupted line of the navigation subsystem. // What is the total syntax error score for those errors? // // Compile: g++ -std=c++11 -o...
20.114286
98
0.553977
[ "vector" ]
b2d3ecd54a294b7b362859c6207cf8ecc24cb8cf
816
cpp
C++
graph/bfs/TargetNumber.cpp
SiverPineValley/algo
29c75c6b226fdb15a3b6695e763ee49d4871094e
[ "Apache-2.0" ]
null
null
null
graph/bfs/TargetNumber.cpp
SiverPineValley/algo
29c75c6b226fdb15a3b6695e763ee49d4871094e
[ "Apache-2.0" ]
null
null
null
graph/bfs/TargetNumber.cpp
SiverPineValley/algo
29c75c6b226fdb15a3b6695e763ee49d4871094e
[ "Apache-2.0" ]
null
null
null
//프로그래머스 //BFS - 타겟 넘버 #include <string> #include <vector> #include <utility> #include <queue> using namespace std; int operation[2] = {1, -1}; int solution(vector<int> numbers, int target) { int answer = 0, idx = 1; int size = numbers.size(); queue<pair<int,int>> q; q.push(make_pair(numbers[0],0)); ...
22.666667
83
0.488971
[ "vector" ]
b2dd4b419f065534ab37907346548ef75d921b5f
4,962
hxx
C++
odb-tests-2.4.0/common/container/basics/test.hxx
edidada/odb
78ed750a9dde65a627fc33078225410306c2e78b
[ "MIT" ]
null
null
null
odb-tests-2.4.0/common/container/basics/test.hxx
edidada/odb
78ed750a9dde65a627fc33078225410306c2e78b
[ "MIT" ]
null
null
null
odb-tests-2.4.0/common/container/basics/test.hxx
edidada/odb
78ed750a9dde65a627fc33078225410306c2e78b
[ "MIT" ]
null
null
null
// file : common/container/basics/test.hxx // copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC // license : GNU GPL v2; see accompanying LICENSE file #ifndef TEST_HXX #define TEST_HXX #include <common/config.hxx> // HAVE_CXX11 #include <map> #include <set> #include <list> #include <vector> #include...
17.913357
78
0.6316
[ "object", "vector" ]
b2e4c6b45f3b67d758a53406936404a115a87e42
1,618
cc
C++
tinyrpc/coroutine/coroutine_pool.cc
Gooddbird/tinyrpc
b87b8ba3ddf3e17b235e29c73131e6912b875b6f
[ "Apache-2.0" ]
11
2022-02-27T17:32:46.000Z
2022-03-27T04:09:22.000Z
tinyrpc/coroutine/coroutine_pool.cc
Gooddbird/tinyrpc
b87b8ba3ddf3e17b235e29c73131e6912b875b6f
[ "Apache-2.0" ]
1
2022-03-08T05:12:37.000Z
2022-03-08T05:37:44.000Z
tinyrpc/coroutine/coroutine_pool.cc
Gooddbird/tinyrpc
b87b8ba3ddf3e17b235e29c73131e6912b875b6f
[ "Apache-2.0" ]
5
2022-02-28T07:45:41.000Z
2022-03-26T06:25:28.000Z
#include <vector> #include "tinyrpc/comm/config.h" #include "tinyrpc/coroutine/coroutine_pool.h" #include "tinyrpc/coroutine/coroutine.h" namespace tinyrpc { extern tinyrpc::Config::ptr gRpcConfig; static thread_local CoroutinePool* t_coroutine_container_ptr = nullptr; CoroutinePool* GetCoroutinePool() { if (!t...
24.892308
129
0.707664
[ "vector" ]
b2ec7097e18eb7745bf7f65d568869480c6e8443
3,307
cpp
C++
engine/src/wolf.render/directX/w_gui/w_user_controls/w_rounded_rectangle_shape.cpp
SiminBadri/Wolf.Engine
3da04471ec26e162e1cbb7cc88c7ce37ee32c954
[ "BSL-1.0", "Apache-2.0", "libpng-2.0" ]
1
2020-07-15T13:14:26.000Z
2020-07-15T13:14:26.000Z
engine/src/wolf.render/directX/w_gui/w_user_controls/w_rounded_rectangle_shape.cpp
foroughmajidi/Wolf.Engine
f08a8cbd519ca2c70b1c8325250dc9af7ac4c498
[ "BSL-1.0", "Apache-2.0", "libpng-2.0" ]
null
null
null
engine/src/wolf.render/directX/w_gui/w_user_controls/w_rounded_rectangle_shape.cpp
foroughmajidi/Wolf.Engine
f08a8cbd519ca2c70b1c8325250dc9af7ac4c498
[ "BSL-1.0", "Apache-2.0", "libpng-2.0" ]
null
null
null
#include "w_directX_pch.h" #include "w_rounded_rectangle_shape.h" #include "w_gui/w_widgets_resource_manager.h" using namespace wolf::gui; w_rounded_rectangle_shape::w_rounded_rectangle_shape(_In_opt_ w_widget* pParent) : _super(pParent), fill_color(128, 57, 123, 255), mouse_over_color(169,75,162,255), border_col...
24.138686
136
0.740248
[ "render" ]
b2ed4cbec4782d461af3a9f1689bc467dab3705e
896
hpp
C++
libadb/include/libadb/api/channel/data/thread-member.hpp
faserg1/adb
65507dc17589ac6ec00caf2ecd80f6dbc4026ad4
[ "MIT" ]
1
2022-03-10T15:14:13.000Z
2022-03-10T15:14:13.000Z
libadb/include/libadb/api/channel/data/thread-member.hpp
faserg1/adb
65507dc17589ac6ec00caf2ecd80f6dbc4026ad4
[ "MIT" ]
9
2022-03-07T21:00:08.000Z
2022-03-15T23:14:52.000Z
libadb/include/libadb/api/channel/data/thread-member.hpp
faserg1/adb
65507dc17589ac6ec00caf2ecd80f6dbc4026ad4
[ "MIT" ]
null
null
null
#pragma once #include <optional> #include <cstdint> #include <nlohmann/json_fwd.hpp> #include <libadb/types/snowflake.hpp> #include <libadb/types/time.hpp> #include <libadb/libadb.hpp> namespace adb::api { /** * @brief Thread Member * @details https://discord.com/developers/docs/resources/channel#thread...
29.866667
90
0.666295
[ "object" ]
b2f191c5f89f72e55efbebe08f501aeb8118e297
202,196
cxx
C++
main/framework/test/typecfg/xml2xcd.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/framework/test/typecfg/xml2xcd.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/framework/test/typecfg/xml2xcd.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
86.187553
319
0.460716
[ "vector" ]
b2fab6f1b6b84a458efe7f2df8ef56fd2230037f
1,461
cpp
C++
code/1136.cpp
Nightwish-cn/my_leetcode
40f206e346f3f734fb28f52b9cde0e0041436973
[ "MIT" ]
23
2020-03-30T05:44:56.000Z
2021-09-04T16:00:57.000Z
code/1136.cpp
Nightwish-cn/my_leetcode
40f206e346f3f734fb28f52b9cde0e0041436973
[ "MIT" ]
1
2020-05-10T15:04:05.000Z
2020-06-14T01:21:44.000Z
code/1136.cpp
Nightwish-cn/my_leetcode
40f206e346f3f734fb28f52b9cde0e0041436973
[ "MIT" ]
6
2020-03-30T05:45:04.000Z
2020-08-13T10:01:39.000Z
#include <bits/stdc++.h> #define INF 2000000000 using namespace std; typedef long long ll; int read(){ int f = 1, x = 0; char c = getchar(); while(c < '0' || c > '9'){if(c == '-') f = -f; c = getchar();} while(c >= '0' && c <= '9')x = x * 10 + c - '0', c = getchar(); return f * x; } struct TreeNod...
22.136364
67
0.46475
[ "vector" ]
b2fb4e6c19298d4d8d1a9885a42f021ca30884e4
134
hh
C++
inc/Vector3D.hh
KPO-2020-2021/zad5_1-262703
82d8ec01ce69d8c108adaae9a6ed46f467093bd0
[ "Unlicense" ]
null
null
null
inc/Vector3D.hh
KPO-2020-2021/zad5_1-262703
82d8ec01ce69d8c108adaae9a6ed46f467093bd0
[ "Unlicense" ]
null
null
null
inc/Vector3D.hh
KPO-2020-2021/zad5_1-262703
82d8ec01ce69d8c108adaae9a6ed46f467093bd0
[ "Unlicense" ]
null
null
null
#ifndef VECTOR3D_HH #define VECTOR3D_HH #include "vector.hh" #include "../src/vektor.cpp" typedef Vector<double,3> Vector3D; #endif
14.888889
34
0.753731
[ "vector" ]
b2fe1f5cd91d60c635e30116ba6a826a1a40c60d
519
cpp
C++
BaekJoon/1181.cpp
falconlee236/Algorithm_Practice
4e6e380a0e6c840525ca831a05c35253eeaaa25c
[ "MIT" ]
null
null
null
BaekJoon/1181.cpp
falconlee236/Algorithm_Practice
4e6e380a0e6c840525ca831a05c35253eeaaa25c
[ "MIT" ]
null
null
null
BaekJoon/1181.cpp
falconlee236/Algorithm_Practice
4e6e380a0e6c840525ca831a05c35253eeaaa25c
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include <set> #include <vector> #include <algorithm> using namespace std; bool cmp(string a, string b){ if(a.size() == b.size()) return a < b; return a.size() < b.size() ? true : false; } int main() { int t; cin >> t; getchar(); set<string> s; while(t--){...
20.76
46
0.547206
[ "vector" ]
65134ffb1d46d368bf7d8f6fd7ef423d693fd88e
9,582
hpp
C++
include/parseCSV_CIS_pointCloud.hpp
ahundt/cis
bd55e8c77ec78994454247ffe7d67f537710a53f
[ "BSD-2-Clause-FreeBSD" ]
1
2018-12-17T03:13:01.000Z
2018-12-17T03:13:01.000Z
include/parseCSV_CIS_pointCloud.hpp
ahundt/cis
bd55e8c77ec78994454247ffe7d67f537710a53f
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
include/parseCSV_CIS_pointCloud.hpp
ahundt/cis
bd55e8c77ec78994454247ffe7d67f537710a53f
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
#ifndef _PARSE_CSV_CIS_POINTCLOUD_HPP_ #define _PARSE_CSV_CIS_POINTCLOUD_HPP_ #include "parse.hpp" /// Stores the parsed data from the csv text files struct csvCIS_pointCloudData { typedef Eigen::MatrixXd TrackerPoints; typedef std::vector<TrackerPoints> TrackerDevices; typedef std::vector<TrackerDevices>...
44.775701
205
0.656439
[ "object", "vector" ]
fb948fd141ab1395099f53c8f85a333ba1335322
1,695
cpp
C++
Math/1041. Robot Bounded In Circle.cpp
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
138
2020-02-08T05:25:26.000Z
2021-11-04T11:59:28.000Z
Math/1041. Robot Bounded In Circle.cpp
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
null
null
null
Math/1041. Robot Bounded In Circle.cpp
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
24
2021-01-02T07:18:43.000Z
2022-03-20T08:17:54.000Z
/* If the robot doesn't face north at the end of the first cycle, then that's the limit cycle trajectory. First, let's check which direction the robot faces after 4 cycles. Let's use numbers from 0 to 3 to mark the directions: north = 0, east = 1, south = 2, west = 3. After one cycle the robot is facing direction k...
26.904762
124
0.538053
[ "vector" ]
fb98c643931c72aa94178b515290d97c22abf587
1,941
cpp
C++
frontends/p4/insertProtectedState.cpp
mcnevesinf/p4c
43d47fddb718a4de8779c1fa51400a3fe2395fc1
[ "Apache-2.0" ]
1
2021-03-07T09:03:25.000Z
2021-03-07T09:03:25.000Z
frontends/p4/insertProtectedState.cpp
mcnevesinf/p4box
43d47fddb718a4de8779c1fa51400a3fe2395fc1
[ "Apache-2.0" ]
null
null
null
frontends/p4/insertProtectedState.cpp
mcnevesinf/p4box
43d47fddb718a4de8779c1fa51400a3fe2395fc1
[ "Apache-2.0" ]
3
2017-02-16T16:41:13.000Z
2018-08-29T01:00:21.000Z
#include "p4box.h" #include "ir/ir.h" namespace P4 { const IR::Node* InsertProtectedState::postorder(IR::Type_Struct* origStruct){ //Check if the struct is a candidate type to receive P4box protected state std::string structName = origStruct->toString().c_str(); structName.replace(0, 7, ""); bool i...
26.589041
145
0.588357
[ "vector" ]
fba17fc858a05030e7f6e609734ffca91afb03ae
1,677
cpp
C++
Bridger/bridger.cpp
pampas93/ProjectDependency
f0ff9caea2e5065a125148378554d8d58f34bfac
[ "MIT" ]
null
null
null
Bridger/bridger.cpp
pampas93/ProjectDependency
f0ff9caea2e5065a125148378554d8d58f34bfac
[ "MIT" ]
null
null
null
Bridger/bridger.cpp
pampas93/ProjectDependency
f0ff9caea2e5065a125148378554d8d58f34bfac
[ "MIT" ]
null
null
null
///////////////////////////////////////////////////////////////////// // bridger.cpp // // // // Language: Visual C++ 2015 // // Platform: Dell Inspiron, Windows 8.1 // // Application: ProjectDependency- PempPassionProjects...
25.409091
115
0.559928
[ "vector" ]
fba3ceac892a74dccd41eec1bcb108347319fd1c
1,833
cpp
C++
examples/google-code-jam/rabbit125/google_2011_1.cpp
rbenic-fer/progauthfp
d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675
[ "MIT" ]
null
null
null
examples/google-code-jam/rabbit125/google_2011_1.cpp
rbenic-fer/progauthfp
d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675
[ "MIT" ]
null
null
null
examples/google-code-jam/rabbit125/google_2011_1.cpp
rbenic-fer/progauthfp
d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675
[ "MIT" ]
null
null
null
#include<iostream> #include<stdlib.h> #include<vector> #include<string.h> #include<queue> #define MAXSIZE 120 using namespace std ; struct G { int r , s ; }; G c ; vector<G> total ; int main( ) { int T , t , n , p , ans1 , ans2 , ans , now1 , now2 , i , j ; bool A[MAXSIZE] , B[MAXSIZE] ; vector<int...
20.595506
70
0.401528
[ "vector" ]
fba3f0e4c1dccf19ddef07e88994c49b1053cd5f
6,536
cpp
C++
src/text/Text.cpp
KeinR/Nafy
b576a08b028cff00a7cb02331699dc8b2fecf3bf
[ "MIT" ]
null
null
null
src/text/Text.cpp
KeinR/Nafy
b576a08b028cff00a7cb02331699dc8b2fecf3bf
[ "MIT" ]
null
null
null
src/text/Text.cpp
KeinR/Nafy
b576a08b028cff00a7cb02331699dc8b2fecf3bf
[ "MIT" ]
null
null
null
#include "Text.h" #include <iostream> #include <cmath> #include "textdefs.h" #include GLFW_INCLUDE_HEADER_LOCATION Text::Text(): Text(getDefaultFont(), getDefaultTextShader()) { } Text::Text(const Font::type &font, const nafy::shader_t &shader): font(font), wrappingWidth(0), overflowHeight(0), lineSpac...
22.307167
105
0.620716
[ "render", "vector" ]
fbab1f1b7566df5ae026f63ccde269816e285270
1,098
cpp
C++
advanced/1024.cpp
Gongyihang/PAT
7425be22b0a844fb7171560e034fd7a867680b49
[ "MIT" ]
null
null
null
advanced/1024.cpp
Gongyihang/PAT
7425be22b0a844fb7171560e034fd7a867680b49
[ "MIT" ]
null
null
null
advanced/1024.cpp
Gongyihang/PAT
7425be22b0a844fb7171560e034fd7a867680b49
[ "MIT" ]
null
null
null
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <math.h> #include <map> #include <set> using namespace std; //是回文数返回1,不是回文数返回0 bool is_palindromic(string num) { string s_num = num; string t = s_num; reverse(s_num.begin(), s_num.end()); if (s_num == t) { ...
17.15625
48
0.486339
[ "vector" ]
fbcfeb69113cf3daf8daa78e4c28d2e42bc55b3b
9,602
cpp
C++
src/Pegasus/ProviderManager2/tests/OperationResponseHandler/TestOperationResponseHandler.cpp
ncultra/Pegasus-2.5
4a0b9a1b37e2eae5c8105fdea631582dc2333f9a
[ "MIT" ]
null
null
null
src/Pegasus/ProviderManager2/tests/OperationResponseHandler/TestOperationResponseHandler.cpp
ncultra/Pegasus-2.5
4a0b9a1b37e2eae5c8105fdea631582dc2333f9a
[ "MIT" ]
null
null
null
src/Pegasus/ProviderManager2/tests/OperationResponseHandler/TestOperationResponseHandler.cpp
ncultra/Pegasus-2.5
4a0b9a1b37e2eae5c8105fdea631582dc2333f9a
[ "MIT" ]
1
2022-03-07T22:54:02.000Z
2022-03-07T22:54:02.000Z
//%2005//////////////////////////////////////////////////////////////////////// // // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; // IBM Corp.; EMC Cor...
26.379121
112
0.58894
[ "object" ]
fbe18627c5f98e984f022dd2feac38761513ded2
1,668
cpp
C++
_Ray.cpp
MrApfel1994/Ray
31ae807ee6a0406c30c08fa0d38b3a44224f86b6
[ "WTFPL" ]
60
2018-10-24T08:31:22.000Z
2019-04-28T20:14:04.000Z
_Ray.cpp
MrApfel1994/Ray
31ae807ee6a0406c30c08fa0d38b3a44224f86b6
[ "WTFPL" ]
1
2018-12-17T16:18:00.000Z
2018-12-18T15:32:52.000Z
_Ray.cpp
MrApfel1994/Ray
31ae807ee6a0406c30c08fa0d38b3a44224f86b6
[ "WTFPL" ]
5
2020-01-22T08:54:00.000Z
2021-11-21T16:23:46.000Z
#include "RendererFactory.cpp" #include "SceneBase.cpp" #include "internal/BVHSplit.cpp" #include "internal/TextureSplitter.cpp" #include "internal/Core.cpp" #include "internal/CoreRef.cpp" #include "internal/FramebufferRef.cpp" #include "internal/RendererRef.cpp" #include "internal/SceneRef.cpp" #include "internal...
26.903226
66
0.766187
[ "mesh", "geometry", "render" ]
fbfa19a6d7dddb5bdb13a055b8bd94fda991e288
3,692
cpp
C++
examples/google-code-jam/sprea/gcj3A.cpp
rbenic-fer/progauthfp
d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675
[ "MIT" ]
null
null
null
examples/google-code-jam/sprea/gcj3A.cpp
rbenic-fer/progauthfp
d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675
[ "MIT" ]
null
null
null
examples/google-code-jam/sprea/gcj3A.cpp
rbenic-fer/progauthfp
d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675
[ "MIT" ]
null
null
null
#include <iostream> #include <cstdio> #include <algorithm> #include <vector> #include <cstring> #include <queue> #include <cctype> #include <cassert> #include <cmath> #include <set> #include <stack> #include <utility> #include <map> #include <string> #include <sstream> using namespace std; #define SIZE 109 #define ep...
20.741573
140
0.557151
[ "vector" ]
22040332602bd3ed94fd404a59242d478de8dd8a
2,774
cpp
C++
src/modules/meshmodels/softrenderer/softrenderer_scene.cpp
reneruhr/kipod
5860f1730049a7901d4825be9af00d99aa99b8fa
[ "Apache-2.0", "MIT" ]
null
null
null
src/modules/meshmodels/softrenderer/softrenderer_scene.cpp
reneruhr/kipod
5860f1730049a7901d4825be9af00d99aa99b8fa
[ "Apache-2.0", "MIT" ]
null
null
null
src/modules/meshmodels/softrenderer/softrenderer_scene.cpp
reneruhr/kipod
5860f1730049a7901d4825be9af00d99aa99b8fa
[ "Apache-2.0", "MIT" ]
null
null
null
#include "softrenderer_scene.h" #include "../meshmodel_scene.h" #include "../../../render/softrenderer/softrenderer_layout.h" namespace kipod::MeshModels{ void SoftRendererScene::Setup() { } void SoftRendererScene::PrepareScreen() { softrenderer_->ClearBuffer(); scene_->framebuffer_->Bind(); glViewp...
28.020202
116
0.673035
[ "render", "vector", "model", "transform" ]
2209bd04434d4dc74465901ab9cfb3e4814afca3
9,626
cpp
C++
text_renderer.cpp
thegedge/vogl
e5ba49a0d328ae0a839d9d4a18d187ae5e6c587c
[ "MIT" ]
null
null
null
text_renderer.cpp
thegedge/vogl
e5ba49a0d328ae0a839d9d4a18d187ae5e6c587c
[ "MIT" ]
1
2015-04-28T14:36:38.000Z
2015-04-28T14:37:41.000Z
text_renderer.cpp
thegedge/vogl
e5ba49a0d328ae0a839d9d4a18d187ae5e6c587c
[ "MIT" ]
null
null
null
#include "text_renderer.hpp" #include <iostream> #include <vector> #include <OpenGL/gl3ext.h> //---------------------------------------------------------------------------- namespace { const char *VSHADER = "#version 410 core\n" "" "in vec4 position;\n" "out vec2 texCoords;\n" ...
33.307958
98
0.545294
[ "vector" ]
220bae924004a81dc4c698eb18e2f117de990c4f
4,608
hpp
C++
projects/AMReX-Translation/src/f2cxx_analyzer.hpp
ouankou/rose
76f2a004bd6d8036bc24be2c566a14e33ba4f825
[ "BSD-3-Clause" ]
488
2015-01-09T08:54:48.000Z
2022-03-30T07:15:46.000Z
projects/AMReX-Translation/src/f2cxx_analyzer.hpp
WildeGeist/rose
17db6454e8baba0014e30a8ec23df1a11ac55a0c
[ "BSD-3-Clause" ]
174
2015-01-28T18:41:32.000Z
2022-03-31T16:51:05.000Z
projects/AMReX-Translation/src/f2cxx_analyzer.hpp
WildeGeist/rose
17db6454e8baba0014e30a8ec23df1a11ac55a0c
[ "BSD-3-Clause" ]
146
2015-04-27T02:48:34.000Z
2022-03-04T07:32:53.000Z
#ifndef _F2CXX_ANALYZER_HPP #define _F2CXX_ANALYZER_HPP 1 #include <set> #include "rose.h" namespace f2cxx { enum ParamAttr { none = (0), param = (1 << 0), // parameter data = (1 << 1), // 3D-data dataparam = (data | param), space_lower = (1 << 2), // marks paramet...
33.391304
86
0.629123
[ "3d" ]
220c9327b1394f6f8a450eed3e3fade1ec32ec93
1,421
cpp
C++
solved/conquest.cpp
AudreyFelicio/Kattis-Solutions
bc5856e1c7d9b8d8c2677e2af5e84a37110200e8
[ "MIT" ]
null
null
null
solved/conquest.cpp
AudreyFelicio/Kattis-Solutions
bc5856e1c7d9b8d8c2677e2af5e84a37110200e8
[ "MIT" ]
null
null
null
solved/conquest.cpp
AudreyFelicio/Kattis-Solutions
bc5856e1c7d9b8d8c2677e2af5e84a37110200e8
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef vector<int> vi; typedef vector<ll> vl; #define rep(a, b) for (int a = 0; a < b; a++) bool cmp(const pii &p1, const pii &p2) { return p1.second > p2.second; } int main() { ios::sync_with...
21.861538
60
0.535538
[ "vector" ]
220cb2c3420e8d5ab8bb0d9f9958f198318331fc
16,738
hpp
C++
ClassPath/include/Variant/UTI.hpp
X-Ryl669/Frost
5eefa4d4d73ecb0985389bc142609221047b0e6b
[ "MIT" ]
24
2015-03-23T19:16:56.000Z
2022-02-02T01:55:55.000Z
ClassPath/include/Variant/UTI.hpp
X-Ryl669/Frost
5eefa4d4d73ecb0985389bc142609221047b0e6b
[ "MIT" ]
12
2015-03-22T03:49:01.000Z
2019-04-10T08:08:54.000Z
ClassPath/include/Variant/UTI.hpp
X-Ryl669/Frost
5eefa4d4d73ecb0985389bc142609221047b0e6b
[ "MIT" ]
2
2016-03-14T08:09:38.000Z
2020-08-07T11:40:23.000Z
#ifndef hpp_UTI_hpp #define hpp_UTI_hpp // Need general type definitions #include "../Types.hpp" // Need Data Source declarations #include "DataSource.hpp" // We need AVL tree to store UIDs #include "../Tree/AVL.hpp" /** The universal type identifier - should be the same on all platform They are based stored on...
38.835267
307
0.607719
[ "object" ]
220cc25c71f847e9b3bdc4193bcc37353ecb39af
2,063
cpp
C++
WordBreakII.cpp
hgfeaon/leetcode
1e2a562bd8341fc57a02ecff042379989f3361ea
[ "BSD-3-Clause" ]
null
null
null
WordBreakII.cpp
hgfeaon/leetcode
1e2a562bd8341fc57a02ecff042379989f3361ea
[ "BSD-3-Clause" ]
null
null
null
WordBreakII.cpp
hgfeaon/leetcode
1e2a562bd8341fc57a02ecff042379989f3361ea
[ "BSD-3-Clause" ]
null
null
null
#include <iostream> #include <cstdlib> #include <string> #include <vector> #include <unordered_set> using namespace std; void print_strings(vector<string>& v); void print_ints(vector<vector<int> >& dp); class Solution { private: vector<string> result; public: vector<string> wordBreak(string s, unordered_set...
24.559524
79
0.492002
[ "vector" ]
81fc99da924e945e146a93500ca44b597d567b27
351
cpp
C++
API/GameEngineContents/TitleTimeObject.cpp
chaewoon83/WinApiPortfolio
e0f024a66a253a7e5b11e228cf9d0da93ddcc5ef
[ "MIT" ]
null
null
null
API/GameEngineContents/TitleTimeObject.cpp
chaewoon83/WinApiPortfolio
e0f024a66a253a7e5b11e228cf9d0da93ddcc5ef
[ "MIT" ]
null
null
null
API/GameEngineContents/TitleTimeObject.cpp
chaewoon83/WinApiPortfolio
e0f024a66a253a7e5b11e228cf9d0da93ddcc5ef
[ "MIT" ]
null
null
null
#include "TitleTimeObject.h" #include <GameEngineBase/GameEngineTime.h> float TitleTimeObject::TimeLine_ = 0.0f; TitleTimeObject::TitleTimeObject() { } TitleTimeObject::~TitleTimeObject() { } void TitleTimeObject::Start() { } void TitleTimeObject::Update() { TimeLine_ += GameEngineTime::GetDeltaTime(); } void ...
13
45
0.740741
[ "render" ]
c301bb590ce38cf72997773d1c46fd54d3489644
175
hpp
C++
include/engine.hpp
fedor-rusak/chickpea
c59ecce4c606f1508b28ebfe5d6d7e2e3529ae1c
[ "MIT" ]
1
2017-08-09T13:04:51.000Z
2017-08-09T13:04:51.000Z
include/engine.hpp
fedor-rusak/chickpea
c59ecce4c606f1508b28ebfe5d6d7e2e3529ae1c
[ "MIT" ]
null
null
null
include/engine.hpp
fedor-rusak/chickpea
c59ecce4c606f1508b28ebfe5d6d7e2e3529ae1c
[ "MIT" ]
null
null
null
namespace engine { int init(); int terminate(); double getTime(); void processInput(); bool shouldExit(); void render(); void other(); void swapBuffers(); }
8.333333
21
0.634286
[ "render" ]
c30312b92e71f47e49396daecbf8da3a5ccb8949
6,197
cpp
C++
tests/src/MustacheTemplateEngineTests.cpp
nemu-cpp/mustache-template-engine
8666e5fd3affe04978a4007ad69d3657c9558147
[ "MIT" ]
null
null
null
tests/src/MustacheTemplateEngineTests.cpp
nemu-cpp/mustache-template-engine
8666e5fd3affe04978a4007ad69d3657c9558147
[ "MIT" ]
null
null
null
tests/src/MustacheTemplateEngineTests.cpp
nemu-cpp/mustache-template-engine
8666e5fd3affe04978a4007ad69d3657c9558147
[ "MIT" ]
null
null
null
/* Copyright (c) 2022 Xavier Leclercq Released under the MIT License See https://github.com/nemu-cpp/mustache-template-engine/blob/main/LICENSE.txt */ #include "MustacheTemplateEngineTests.hpp" #include "Nemu/MustacheTemplateEngine/MustacheTemplateEngine.hpp" #include <Ishiko/FileSystem.hpp> using namespa...
44.582734
180
0.775052
[ "render" ]
c30324a82914a65e6c0fa269e6c1dd7c3b552cc3
4,891
cpp
C++
box2d/native/src/shape/circle_shape.cpp
d954mas/defold-box2d
c21fb0d8bfc4f70e1d837351b0c06bb1bc9195b4
[ "MIT" ]
12
2021-06-27T11:34:47.000Z
2021-11-25T15:01:46.000Z
box2d/native/src/shape/circle_shape.cpp
d954mas/defold-box2d
c21fb0d8bfc4f70e1d837351b0c06bb1bc9195b4
[ "MIT" ]
6
2021-07-13T20:36:30.000Z
2021-07-21T17:57:54.000Z
box2d/native/src/shape/circle_shape.cpp
d954mas/defold-box2d
c21fb0d8bfc4f70e1d837351b0c06bb1bc9195b4
[ "MIT" ]
3
2021-06-28T12:12:30.000Z
2021-11-19T06:13:03.000Z
#include "shape/circle_shape.h" #include "utils.h" #include "extra_utils.h" #include "allocators.h" #define META_NAME_CIRCLE_SHAPE "Box2d::CircleShapeClass" namespace box2dDefoldNE { CircleShape* CircleShape_get_userdata(lua_State* L, int index){ if(luaL_checkudata(L, index, META_NAME_CIRCLE_SHAPE) == NULL){ ...
29.823171
105
0.674913
[ "shape", "vector", "transform" ]
c3086e72f1e06641b968a4335825fec49839c1f3
12,671
cpp
C++
HW8_v0/src/main.cpp
hansenbeast/2019-SYSU-CG
8be1affc82f76a7fa1c1b1d5f72f4c4e0f889987
[ "MIT" ]
1
2021-09-16T15:53:03.000Z
2021-09-16T15:53:03.000Z
HW8_v0/src/main.cpp
hansenbeast/2019-SYSU-CG
8be1affc82f76a7fa1c1b1d5f72f4c4e0f889987
[ "MIT" ]
null
null
null
HW8_v0/src/main.cpp
hansenbeast/2019-SYSU-CG
8be1affc82f76a7fa1c1b1d5f72f4c4e0f889987
[ "MIT" ]
null
null
null
// // main.cpp // HW8_Bezier_Curve // // Created by hansen on 2019/5/22. // Copyright © 2019 hansen. All rights reserved. // // system headers #include <iostream> #include <cmath> #include <vector> #include <algorithm> using namespace std; // third-party headers #include <glad/glad.h> #include <GLFW/glfw3.h> #inc...
33.879679
138
0.604688
[ "render", "object", "vector" ]
c31270001325d146721dad0649934fd739e5ae00
2,719
cpp
C++
cgi_module/cgi_module.cpp
ADKosm/Lagush
e71dc82ccea54cf307b37c328c3bd08b53f0735f
[ "MIT" ]
null
null
null
cgi_module/cgi_module.cpp
ADKosm/Lagush
e71dc82ccea54cf307b37c328c3bd08b53f0735f
[ "MIT" ]
1
2016-03-01T10:59:38.000Z
2016-03-01T10:59:38.000Z
cgi_module/cgi_module.cpp
ADKosm/Lagush
e71dc82ccea54cf307b37c328c3bd08b53f0735f
[ "MIT" ]
null
null
null
#include <unistd.h> #include <iostream> #include <string> #include <signal.h> #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <stdlib.h> #include <sys/stat.h> #include <vector> #include <limits.h> #define COMMAND strtol(argv[1], NULL, 10) #define JAIL_PATH argv[2] #define SCRIPT_PATH argv[3] vo...
26.656863
126
0.581832
[ "vector" ]
c31f8cd57b9581576587007e5a0c993df670f5d6
26,433
cc
C++
third_party/blink/renderer/platform/scheduler/main_thread/main_thread_metrics_helper_unittest.cc
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
third_party/blink/renderer/platform/scheduler/main_thread/main_thread_metrics_helper_unittest.cc
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
third_party/blink/renderer/platform/scheduler/main_thread/main_thread_metrics_helper_unittest.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 "third_party/blink/renderer/platform/scheduler/main_thread/main_thread_metrics_helper.h" #include <memory> #include "base/macros.h" #include "ba...
43.120718
97
0.691787
[ "vector" ]
c32f5ae0205c14e63685ab3a0ce4aecb912eadd1
2,818
cpp
C++
MeshUtil/MeshIO.cpp
minhpvo/MRef
ecd4c6cafe9c800c76e4f7853fda2ffd7771fb67
[ "BSD-3-Clause" ]
2
2020-05-26T14:22:25.000Z
2020-06-11T09:41:13.000Z
MeshUtil/MeshIO.cpp
minhpvo/MRef
ecd4c6cafe9c800c76e4f7853fda2ffd7771fb67
[ "BSD-3-Clause" ]
null
null
null
MeshUtil/MeshIO.cpp
minhpvo/MRef
ecd4c6cafe9c800c76e4f7853fda2ffd7771fb67
[ "BSD-3-Clause" ]
1
2020-07-14T19:07:40.000Z
2020-07-14T19:07:40.000Z
// Copyright ETHZ 2017 #include <OpenMesh/Core/IO/MeshIO.hh> #include <OpenMesh/Core/IO/writer/PLYWriter.hh> #include <OpenMesh/Core/IO/writer/OBJWriter.hh> #include <OpenMesh/Core/IO/reader/PLYReader.hh> #include <OpenMesh/Core/IO/reader/OBJReader.hh> #include "MyMesh.h" #include <string> #include <boost/filesystem....
29.978723
168
0.664656
[ "mesh" ]
c3351259b155fc427f19611a6531d336db5da213
2,002
cpp
C++
kattis/set1/C.cpp
heiseish/Competitive-Programming
e4dd4db83c38e8837914562bc84bc8c102e68e34
[ "MIT" ]
5
2019-03-17T01:33:19.000Z
2021-06-25T09:50:45.000Z
kattis/set1/C.cpp
heiseish/Competitive-Programming
e4dd4db83c38e8837914562bc84bc8c102e68e34
[ "MIT" ]
null
null
null
kattis/set1/C.cpp
heiseish/Competitive-Programming
e4dd4db83c38e8837914562bc84bc8c102e68e34
[ "MIT" ]
null
null
null
/** Those who do not understand true pain can never understand true peace. */ #include <bits/stdc++.h> #define forn(i, l, r) for(int i=l;i<=r;i++) #define all(v) v.begin(),v.end() #define pb push_back #define nd second #define st first #define debug(x) cout<<#x<<" -> "<<x<< endl #define kakimasu(x) cout << x <...
22
78
0.572428
[ "vector" ]
c335e130d5f8cff3a821bdf5dace6b4456d9d3db
3,768
cpp
C++
4b.cpp
coolcomputery/Advent-of-Code-2020
4e9606a8e2383a10914da4ed632943c9eca3afc1
[ "MIT" ]
null
null
null
4b.cpp
coolcomputery/Advent-of-Code-2020
4e9606a8e2383a10914da4ed632943c9eca3afc1
[ "MIT" ]
null
null
null
4b.cpp
coolcomputery/Advent-of-Code-2020
4e9606a8e2383a10914da4ed632943c9eca3afc1
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <algorithm> #include <utility> #include <map> #include <set> using namespace std; typedef long long ll; typedef vector<ll> vll; typedef vector<string> vs; typedef vector<vll> vvll; typedef pair<ll,ll> pll; typedef pair<string,string> pss; #define PB push_back vs fields{"by...
32.205128
97
0.485934
[ "vector" ]