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
9abe1f37b9f1402c88a3e15eb37137bdbd0c66e5
35,427
hpp
C++
external/swak/libraries/swakParsers/CommonValueExpressionDriverI.hpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
external/swak/libraries/swakParsers/CommonValueExpressionDriverI.hpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
external/swak/libraries/swakParsers/CommonValueExpressionDriverI.hpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
/*---------------------------------------------------------------------------*\ Copyright: ICE Stroemungsfoschungs GmbH Copyright (C) 1991-2008 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is based on CAELUS. CAELUS is free software: you can red...
29.230198
102
0.423519
[ "mesh", "object" ]
9ac7135eef1ce53a0cbd9a438aa07cf54e98975b
757
cc
C++
actions/mine.cc
matis11/po-robot-wars
619cfc68d568da9bbf55926281771ee2927fa6a8
[ "Apache-2.0" ]
1
2016-01-11T16:49:08.000Z
2016-01-11T16:49:08.000Z
actions/mine.cc
matis11/po-robot-wars
619cfc68d568da9bbf55926281771ee2927fa6a8
[ "Apache-2.0" ]
null
null
null
actions/mine.cc
matis11/po-robot-wars
619cfc68d568da9bbf55926281771ee2927fa6a8
[ "Apache-2.0" ]
null
null
null
#include "actions/mine.h" #include "robots/robot.h" #include "fields/field.h" #include "robots/warehouse.h" #include "resources/oil.h" #include "logic/game.h" #include "logic/resourceset.h" using namespace robots; using namespace actions; using namespace resources; using namespace logic; using namespace fields; void...
26.103448
106
0.721268
[ "object" ]
9ac9b9784de1ddecd433f6b9358f1f82ff702b1d
6,116
cpp
C++
deps/twlib/tw_task.cpp
armPelionEdge/grease-log-client
61deb80c37730ba53bf036c32ff1455ee102f781
[ "MIT" ]
1
2016-12-13T10:14:23.000Z
2016-12-13T10:14:23.000Z
deps/twlib/tw_task.cpp
armPelionEdge/grease-log-client
61deb80c37730ba53bf036c32ff1455ee102f781
[ "MIT" ]
1
2021-05-26T21:26:24.000Z
2021-05-27T14:44:42.000Z
deps/twlib/tw_task.cpp
armPelionEdge/grease-log-client
61deb80c37730ba53bf036c32ff1455ee102f781
[ "MIT" ]
2
2019-04-09T16:18:21.000Z
2019-07-02T20:20:29.000Z
/* * tw_task.cpp * * Created on: Nov 23, 2011 * Author: ed * (c) 2011, WigWag LLC */ #include <TW/tw_task.h> #include <TW/tw_sema.h> using namespace TWlib; BaseTask::BaseTask() : _running( false ), _completed( false ), _thrd_retval( NULL ), _lwp_num( 0 ), _thread_mutex() { _workdat._name = NULL; }...
25.377593
111
0.69915
[ "object" ]
9acef037dff0741262992c5b6d3cc7a93b638841
7,176
hpp
C++
EncDec.hpp
mdejong/AdaptiveLosslessPrediction
8bd84290c1db10192c2102ddbeb5cca24dcef993
[ "BSD-3-Clause" ]
3
2017-01-25T18:13:59.000Z
2019-05-06T09:13:34.000Z
EncDec.hpp
mdejong/AdaptiveLosslessPrediction
8bd84290c1db10192c2102ddbeb5cca24dcef993
[ "BSD-3-Clause" ]
null
null
null
EncDec.hpp
mdejong/AdaptiveLosslessPrediction
8bd84290c1db10192c2102ddbeb5cca24dcef993
[ "BSD-3-Clause" ]
null
null
null
// // EncDec.hpp // // Copyright 2016 Mo DeJong. // // See LICENSE for terms. // // C++ templates for encoding and decoding numbers as bytes. #include "assert.h" #include <vector> #include <unordered_map> using namespace std; // Encode a signed delta +-N as a positive number starting at zero where // +1 is 1 a...
23.683168
96
0.626672
[ "vector" ]
9ae146c34da1d932083bc788138a6ed22467a4c6
21,252
cpp
C++
Source/MaliOC/Private/MaliOCReportWidgetGenerator.cpp
ARM-software/malioc-ue4
9bb9ec11739d5960d1d7dbd5dce2e68bcfcd5add
[ "Apache-2.0" ]
14
2019-02-19T09:36:29.000Z
2021-12-13T03:24:29.000Z
Source/MaliOC/Private/MaliOCReportWidgetGenerator.cpp
QPC-database/malioc-ue4
9bb9ec11739d5960d1d7dbd5dce2e68bcfcd5add
[ "Apache-2.0" ]
2
2020-06-28T09:16:10.000Z
2022-03-09T10:20:49.000Z
Source/MaliOC/Private/MaliOCReportWidgetGenerator.cpp
QPC-database/malioc-ue4
9bb9ec11739d5960d1d7dbd5dce2e68bcfcd5add
[ "Apache-2.0" ]
9
2019-09-13T11:22:45.000Z
2021-07-04T00:31:52.000Z
/* * Copyright 2015 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, s...
34.332795
153
0.522633
[ "render" ]
9af0dadaea4ee71bfe4fa8a434260bd9fbe12ba8
6,912
cpp
C++
functions.cpp
ariaman5/snake_and_ladder
38b7b56b18251b4acaace288030d449cdaf7e74d
[ "MIT" ]
1
2018-01-26T02:58:48.000Z
2018-01-26T02:58:48.000Z
functions.cpp
ariaman5/snake_and_ladder
38b7b56b18251b4acaace288030d449cdaf7e74d
[ "MIT" ]
null
null
null
functions.cpp
ariaman5/snake_and_ladder
38b7b56b18251b4acaace288030d449cdaf7e74d
[ "MIT" ]
null
null
null
#include "header.h" #include <sstream> using namespace std; bool load_game( data::player &player , data::board &board , std::map <int , string> &graphical , std::vector <int> &dist , int &num_player , int &nrows , int &snake_count , int &ladder_count) { QString str = QDir::currentPath() ; if(!QDir(str + "/sound...
26.181818
196
0.463686
[ "vector" ]
b106300307ed65342d6bd1f15ef7cb66556f464b
9,816
cpp
C++
src/Rasterizer.cpp
williamsandst/theia-software-rasterizer
75cfff3ca1e822e3cef25a86a846f4994c53ab17
[ "MIT" ]
null
null
null
src/Rasterizer.cpp
williamsandst/theia-software-rasterizer
75cfff3ca1e822e3cef25a86a846f4994c53ab17
[ "MIT" ]
null
null
null
src/Rasterizer.cpp
williamsandst/theia-software-rasterizer
75cfff3ca1e822e3cef25a86a846f4994c53ab17
[ "MIT" ]
null
null
null
#include "Rasterizer.h" void Rasterizer::createPolyFragments(vector<Fragment>* fragments, Vertex v1, Vertex v2, Vertex v3, int viewWidth, int viewHeight) { //Generates a fragment polygon using homogenous coordinates. //In the future this will use recursive polygon clipping and bresenhams line algorithm //Should I...
30.77116
231
0.605848
[ "vector" ]
b107e6be2366b825a966fc0bb9f766099975bee4
7,611
cpp
C++
Code/Tools/Standalone/Source/Driller/Annotations/AnnotationsDataView_Events.cpp
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
1
2021-08-08T19:54:51.000Z
2021-08-08T19:54:51.000Z
Code/Tools/Standalone/Source/Driller/Annotations/AnnotationsDataView_Events.cpp
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
2
2022-01-13T04:29:38.000Z
2022-03-12T01:05:31.000Z
Code/Tools/Standalone/Source/Driller/Annotations/AnnotationsDataView_Events.cpp
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
null
null
null
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include "AnnotationsDataView_Events.hxx" #include "AnnotationsHeaderView_Events.hxx" #include "An...
30.322709
169
0.578899
[ "transform", "3d" ]
6253858ab6b82879b0af97d7363325f7877b655a
8,597
cpp
C++
CM2005 Object Oriented Programming/Midterm/Merkelrex-TradingBot/MerkelMain.cpp
LevDoesCode/UoL
312b2d1096af4925c94b81d656e5d326dbad939e
[ "MIT" ]
null
null
null
CM2005 Object Oriented Programming/Midterm/Merkelrex-TradingBot/MerkelMain.cpp
LevDoesCode/UoL
312b2d1096af4925c94b81d656e5d326dbad939e
[ "MIT" ]
null
null
null
CM2005 Object Oriented Programming/Midterm/Merkelrex-TradingBot/MerkelMain.cpp
LevDoesCode/UoL
312b2d1096af4925c94b81d656e5d326dbad939e
[ "MIT" ]
null
null
null
#include "MerkelMain.h" #include <iostream> #include <vector> #include "OrderBookEntry.h" #include "CSVReader.h" MerkelMain::MerkelMain() { currentTime = orderBook.getEarliestTime(); wallet.insertCurrency("BTC", 10); wallet.insertCurrency("ETC", 10); wallet.insertCurrency("DOGE", 10); wallet.insert...
27.554487
113
0.562754
[ "vector" ]
6259e2d2544df99b24d7cfde74cf9c01f5c3a76b
5,176
cc
C++
src/cpp/examples/minimal.cc
SanggunLee/edgetpu
d3cf166783265f475c1ddba5883e150ee84f7bfe
[ "Apache-2.0" ]
320
2019-09-19T07:10:48.000Z
2022-03-12T01:48:56.000Z
src/cpp/examples/minimal.cc
Machine-Learning-Practice/edgetpu
6d699665efdc5d84944b5233223c55fe5d3bd1a6
[ "Apache-2.0" ]
563
2019-09-27T06:40:40.000Z
2022-03-31T23:12:15.000Z
src/cpp/examples/minimal.cc
Machine-Learning-Practice/edgetpu
6d699665efdc5d84944b5233223c55fe5d3bd1a6
[ "Apache-2.0" ]
119
2019-09-25T02:51:10.000Z
2022-03-03T08:11:12.000Z
// Example to run a model using one Edge TPU. // It depends only on tflite and edgetpu.h #include <algorithm> #include <chrono> // NOLINT #include <iostream> #include <memory> #include <ostream> #include <string> #include "edgetpu.h" #include "src/cpp/examples/model_utils.h" #include "src/cpp/test_utils.h" #include ...
33.830065
79
0.59544
[ "vector", "model" ]
626957ef50a3f6e1abb5ed9f30217b55d4c13f9f
3,106
cpp
C++
codeforces/1512C.cpp
sgrade/cpptest
84ade6ec03ea394d4a4489c7559d12b4799c0b62
[ "MIT" ]
null
null
null
codeforces/1512C.cpp
sgrade/cpptest
84ade6ec03ea394d4a4489c7559d12b4799c0b62
[ "MIT" ]
null
null
null
codeforces/1512C.cpp
sgrade/cpptest
84ade6ec03ea394d4a4489c7559d12b4799c0b62
[ "MIT" ]
null
null
null
// C. A-B Palindrome #include <iostream> #include <algorithm> #include <vector> #include <string> using namespace std; int main() { int t; cin >> t; while (t--) { int a, b; cin >> a >> b; string s; getline(cin >> ws, s); int n = s.size(); boo...
22.507246
66
0.223117
[ "vector" ]
626fedb2ac3ae4a154847d537ee26d58a89d106a
36,863
cpp
C++
src/mpm.cpp
edemaine/taichi_mpm
3bb90fbe4c901aafc048dbb2d8d8aa388226d011
[ "MIT" ]
2,137
2018-08-11T08:15:55.000Z
2022-03-31T12:35:56.000Z
src/mpm.cpp
LucasCampos/taichi_mpm
cd866e0546fb0c6383144ee0dac7d6e3884e00d3
[ "MIT" ]
52
2018-08-18T02:29:07.000Z
2022-02-23T03:03:24.000Z
src/mpm.cpp
LucasCampos/taichi_mpm
cd866e0546fb0c6383144ee0dac7d6e3884e00d3
[ "MIT" ]
321
2018-08-16T05:43:45.000Z
2022-03-25T09:34:53.000Z
/******************************************************************************* Copyright (c) The Taichi MPM Authors (2018- ). All Rights Reserved. The use of this software is governed by the LICENSE file. *******************************************************************************/ #ifdef TC_USE_MPI #incl...
33.15018
80
0.601742
[ "mesh", "vector" ]
627e4c8ea71ea5eb56ae1dd17cbf1393dca3603b
5,322
cpp
C++
src/nexus/backend/sleep_model.cpp
dengwxn/nexuslb
4b19116f09fad414bd40538de0105eb728fc4b51
[ "BSD-3-Clause" ]
null
null
null
src/nexus/backend/sleep_model.cpp
dengwxn/nexuslb
4b19116f09fad414bd40538de0105eb728fc4b51
[ "BSD-3-Clause" ]
null
null
null
src/nexus/backend/sleep_model.cpp
dengwxn/nexuslb
4b19116f09fad414bd40538de0105eb728fc4b51
[ "BSD-3-Clause" ]
null
null
null
#include "nexus/backend/sleep_model.h" #include <glog/logging.h> #include <immintrin.h> #include <chrono> #include <stdexcept> #include <thread> #include "nexus/backend/model_ins.h" #include "nexus/common/time_util.h" namespace nexus { namespace backend { namespace { template <class Rep, class Period> inline void...
30.763006
79
0.676813
[ "shape" ]
6282ff4c5261fdc68b7eded3ad6bc1a3b7b94570
2,823
cpp
C++
content/code/cpp/yahtzee.cpp
transferorbit/coderefinery_testing
b1011345cd6ed614e702b372bd2d987521bba130
[ "CC-BY-4.0" ]
8
2019-03-11T12:36:25.000Z
2021-09-30T00:32:11.000Z
content/code/cpp/yahtzee.cpp
transferorbit/coderefinery_testing
b1011345cd6ed614e702b372bd2d987521bba130
[ "CC-BY-4.0" ]
126
2016-12-13T11:12:23.000Z
2022-03-30T20:17:17.000Z
content/code/cpp/yahtzee.cpp
transferorbit/coderefinery_testing
b1011345cd6ed614e702b372bd2d987521bba130
[ "CC-BY-4.0" ]
37
2016-12-13T11:00:28.000Z
2022-01-18T13:53:07.000Z
#include <cstdlib> #include <iostream> #include <random> #include <tuple> #include <vector> /* Roll a fair die n_dice times. The faces of the die can be set (default is 1 to 6). * The PRNG engine is moved in the function such that changes in its state are propagated back to the caller. */ template <typename PRNGEngi...
33.607143
109
0.65108
[ "vector" ]
6285bf6b5fea788012a1a357d47867f2ce37e4a6
5,031
cpp
C++
ww-example/ExampleObjects.cpp
koalefant/yasli
2096ed8a59ae9c7da467d8de8f1eb811a989dc39
[ "MIT" ]
8
2021-07-08T18:06:33.000Z
2022-01-17T18:29:57.000Z
ww-example/ExampleObjects.cpp
koalefant/yasli
2096ed8a59ae9c7da467d8de8f1eb811a989dc39
[ "MIT" ]
null
null
null
ww-example/ExampleObjects.cpp
koalefant/yasli
2096ed8a59ae9c7da467d8de8f1eb811a989dc39
[ "MIT" ]
1
2021-12-31T15:52:56.000Z
2021-12-31T15:52:56.000Z
#include <string> #include <vector> using std::vector; namespace yasli { class Archive; template<class T> class SharedPtr; }; using yasli::Archive; using yasli::SharedPtr; struct ObjectNode; bool serialize(Archive& ar, SharedPtr<ObjectNode>& node, const char* name, const char* label); #include "w...
21.779221
97
0.651163
[ "geometry", "object", "vector" ]
629ae048344523d58ac692958f1aa51815192f45
15,407
cpp
C++
Samples/Win7Samples/dataaccess/oledb/sampprov/rowset.cpp
windows-development/Windows-classic-samples
96f883e4c900948e39660ec14a200a5164a3c7b7
[ "MIT" ]
8
2017-04-30T17:38:27.000Z
2021-11-29T00:59:03.000Z
Samples/Win7Samples/dataaccess/oledb/sampprov/rowset.cpp
TomeSq/Windows-classic-samples
96f883e4c900948e39660ec14a200a5164a3c7b7
[ "MIT" ]
null
null
null
Samples/Win7Samples/dataaccess/oledb/sampprov/rowset.cpp
TomeSq/Windows-classic-samples
96f883e4c900948e39660ec14a200a5164a3c7b7
[ "MIT" ]
2
2020-08-11T13:21:49.000Z
2021-09-01T10:41:51.000Z
//-------------------------------------------------------------------- // Microsoft OLE DB Sample Provider // (C) Copyright 1991 - 1999 Microsoft Corporation. All Rights Reserved. // // @doc // // @module ROWSET.CPP | CRowset object implementation // // // Includes -----------------------------------------------------...
29.628846
108
0.593951
[ "object" ]
629e29b9a8196e48a444ebe7eb3b936b82a67d3b
3,657
cpp
C++
050_recursive_dir_scan/RecursiveDirScanLib/RecursiveDirScan.cpp
xenogenics/spl-for-beginners
a8e569fb40596b19bf784116de3914ef0f3d8ef3
[ "0BSD" ]
40
2015-10-17T17:35:01.000Z
2022-02-20T22:14:09.000Z
Examples-for-beginners/050_recursive_dir_scan/RecursiveDirScanLib/RecursiveDirScan.cpp
HelenaAH30/samples
e3b17d63339f7098b8d7f33bbf0b6002c1c602cf
[ "Apache-2.0" ]
65
2015-02-18T14:11:24.000Z
2021-03-08T16:49:42.000Z
Examples-for-beginners/050_recursive_dir_scan/RecursiveDirScanLib/RecursiveDirScan.cpp
HelenaAH30/samples
e3b17d63339f7098b8d7f33bbf0b6002c1c602cf
[ "Apache-2.0" ]
81
2015-03-13T13:36:31.000Z
2021-04-22T03:47:22.000Z
/* * RecursiveDirScan.cpp * * Created on: May 13, 2013 * Author: sen */ #include "RecursiveDirScan.h" namespace recursive_dir_scan { RecursiveDirScan::RecursiveDirScan() { // TODO Auto-generated constructor stub } // End of constructor RecursiveDirScan::~RecursiveDirScan() { // TODO Auto-generated...
34.5
183
0.696199
[ "object" ]
62a00168deff45cac507e404695f63b99da25f64
7,267
cpp
C++
Core/Obfuscation.cpp
HikariObfuscatorSuite/hikari-modules
9159ceb22accb97cfe8cf4e2c7925b56ea347241
[ "Apache-2.0" ]
1
2022-01-05T03:39:42.000Z
2022-01-05T03:39:42.000Z
Core/Obfuscation.cpp
HikariObfuscatorSuite/hikari-modules
9159ceb22accb97cfe8cf4e2c7925b56ea347241
[ "Apache-2.0" ]
null
null
null
Core/Obfuscation.cpp
HikariObfuscatorSuite/hikari-modules
9159ceb22accb97cfe8cf4e2c7925b56ea347241
[ "Apache-2.0" ]
null
null
null
// For open-source license, please refer to [License](https://github.com/HikariObfuscator/Hikari/wiki/License). //===----------------------------------------------------------------------===// /* Hikari 's own "Pass Scheduler". Because currently there is no way to add dependency to transform passes Ref : http://l...
33.031818
111
0.611807
[ "vector", "transform" ]
62a3e400a48e5c46b676c8a120763c5320110985
8,189
hpp
C++
examples/mantevo/miniFE-1.1/optional/stk_mesh/base/Transaction.hpp
sdressler/objekt
30ee938f5cb06193871f802be0bbdae6ecd26a33
[ "BSD-3-Clause" ]
1
2019-11-26T22:24:12.000Z
2019-11-26T22:24:12.000Z
examples/mantevo/miniFE-1.1/optional/stk_mesh/base/Transaction.hpp
sdressler/objekt
30ee938f5cb06193871f802be0bbdae6ecd26a33
[ "BSD-3-Clause" ]
null
null
null
examples/mantevo/miniFE-1.1/optional/stk_mesh/base/Transaction.hpp
sdressler/objekt
30ee938f5cb06193871f802be0bbdae6ecd26a33
[ "BSD-3-Clause" ]
null
null
null
/*------------------------------------------------------------------------*/ /* Copyright 2010 Sandia Corporation. */ /* Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive */ /* license for use of this work by or on behalf of the U.S. Government. */ /* Export o...
31.496154
106
0.627061
[ "mesh", "vector" ]
62a4115c79edc649720b101eb275632a01977104
3,725
hpp
C++
src/layer/common/dropout_layer-inl.hpp
pl8787/textnet-release
c85a4162c55b4cfe22eab6f8f0c8b615854f9b8f
[ "Apache-2.0" ]
114
2017-06-14T07:05:31.000Z
2021-06-13T05:30:49.000Z
src/layer/common/dropout_layer-inl.hpp
pl8787/textnet-release
c85a4162c55b4cfe22eab6f8f0c8b615854f9b8f
[ "Apache-2.0" ]
7
2017-11-17T08:16:55.000Z
2019-10-05T00:09:20.000Z
src/layer/common/dropout_layer-inl.hpp
pl8787/textnet-release
c85a4162c55b4cfe22eab6f8f0c8b615854f9b8f
[ "Apache-2.0" ]
40
2017-06-15T03:21:10.000Z
2021-10-31T15:03:30.000Z
#ifndef TEXTNET_LAYER_DROPOUT_LAYER_INL_HPP_ #define TEXTNET_LAYER_DROPOUT_LAYER_INL_HPP_ #include <iostream> #include <fstream> #include <sstream> #include <set> #include <mshadow/tensor.h> #include "../layer.h" #include "../op.h" namespace textnet { namespace layer { template<typename xpu> class D...
31.837607
76
0.56698
[ "vector" ]
62a80fe923710a6907a386df585dbe980dcbb25f
1,732
cc
C++
chrome/services/machine_learning/decision_tree_predictor.cc
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/services/machine_learning/decision_tree_predictor.cc
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/services/machine_learning/decision_tree_predictor.cc
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-03-07T14:20:02.000Z
2021-03-07T14:20:02.000Z
// Copyright 2020 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 <memory> #include <utility> #include "base/metrics/histogram_macros.h" #include "base/optional.h" #include "base/values.h" #include "chrome/serv...
30.385965
76
0.762702
[ "model" ]
62a836b8140cf4d0ec3a6b4d2a726c0d743fefd7
49,659
cpp
C++
gui/mainWindow.cpp
tjhladish/EpiFire
af7b680ae08b7f8d19da882df008927db28f406a
[ "BSD-3-Clause" ]
30
2015-04-29T05:13:02.000Z
2022-03-21T02:07:41.000Z
gui/mainWindow.cpp
tjhladish/EpiFire
af7b680ae08b7f8d19da882df008927db28f406a
[ "BSD-3-Clause" ]
2
2017-11-07T05:42:56.000Z
2020-07-20T16:32:02.000Z
gui/mainWindow.cpp
tjhladish/EpiFire
af7b680ae08b7f8d19da882df008927db28f406a
[ "BSD-3-Clause" ]
14
2015-04-29T20:31:00.000Z
2021-06-10T03:09:53.000Z
#include "mainWindow.h" #include <QRandomGenerator> #include <map> /*############################################################################# # # Class methods / Utilities # #############################################################################*/ void makeEditable(QLineEdit* lineEdit) { lineEdit->s...
35.932706
212
0.633943
[ "vector", "model" ]
62a8f7581c939db29aa7b0df0838558937fdbc88
17,407
cpp
C++
Demo/Nvidia/FXAA/FXAA.cpp
Alpha255/Rockcat
f04124b17911fb6148512dd8fb260bd84702ffc1
[ "MIT" ]
null
null
null
Demo/Nvidia/FXAA/FXAA.cpp
Alpha255/Rockcat
f04124b17911fb6148512dd8fb260bd84702ffc1
[ "MIT" ]
null
null
null
Demo/Nvidia/FXAA/FXAA.cpp
Alpha255/Rockcat
f04124b17911fb6148512dd8fb260bd84702ffc1
[ "MIT" ]
null
null
null
#include "FXAA.h" #include <D3DGraphic.h> #include <Camera.h> #include <D3DModel.h> extern D3DGraphic* g_Renderer; namespace FXAA { enum eConstants { eGatherCount = 2, ePatternCount = 5, eFxaaPatternCount = 6, eShadowMapSize = 2048, eRandomRotSize = 16 }; struct D3DTextures { Ref<ID3D11Texture2D> Pr...
32.658537
128
0.75889
[ "vector", "transform" ]
62ab10f73c63383b84daa54aecfe464b14c5977e
3,410
hpp
C++
build/msvs2017/apps/vulkan_glfw_app/vulkan_meshes.hpp
SergeyLebedkin/VulkanPlayground
db90a0272efdc1dc6f164ce7c22ac36bb65e1280
[ "MIT" ]
null
null
null
build/msvs2017/apps/vulkan_glfw_app/vulkan_meshes.hpp
SergeyLebedkin/VulkanPlayground
db90a0272efdc1dc6f164ce7c22ac36bb65e1280
[ "MIT" ]
null
null
null
build/msvs2017/apps/vulkan_glfw_app/vulkan_meshes.hpp
SergeyLebedkin/VulkanPlayground
db90a0272efdc1dc6f164ce7c22ac36bb65e1280
[ "MIT" ]
null
null
null
#pragma once #include "vulkan_material.hpp" #include <glm/vec2.hpp> #include <glm/vec3.hpp> #include <glm/vec4.hpp> #include <array> // VulkanMesh // VulkanMeshMaterial // VulkanMeshMatObj // VulkanMeshMatObjIndexed // VulkanMeshMatObjTBN // VulkanMeshMatObjTBNIndexed // VulkanMeshMatObjSkinned // Vu...
24.710145
63
0.73871
[ "vector" ]
62aec0aa2b7d0ad4a40c22f12f1ac7a9c20d9014
4,400
cpp
C++
src_count_alleles/read_marker.cpp
schneebergerlab/GameteBinning_prac
c321186afa9fc68834ae6a6553eb7cd07ac66fd5
[ "MIT" ]
null
null
null
src_count_alleles/read_marker.cpp
schneebergerlab/GameteBinning_prac
c321186afa9fc68834ae6a6553eb7cd07ac66fd5
[ "MIT" ]
null
null
null
src_count_alleles/read_marker.cpp
schneebergerlab/GameteBinning_prac
c321186afa9fc68834ae6a6553eb7cd07ac66fd5
[ "MIT" ]
null
null
null
/* pls check the header file: read_marker.h for more info about this function. */ /* Date 2013-04-26 */ #include <fstream> #include <map> #include <vector> #include <cstring> #include ...
38.26087
138
0.496591
[ "vector" ]
62b23303291ef4196bb5b725386b40eadada3d84
1,949
hh
C++
track/detail/CellInitializer.hh
celeritas-project/orange-port
9aa2d36984a24a02ed6d14688a889d4266f7b1af
[ "Apache-2.0", "MIT" ]
null
null
null
track/detail/CellInitializer.hh
celeritas-project/orange-port
9aa2d36984a24a02ed6d14688a889d4266f7b1af
[ "Apache-2.0", "MIT" ]
null
null
null
track/detail/CellInitializer.hh
celeritas-project/orange-port
9aa2d36984a24a02ed6d14688a889d4266f7b1af
[ "Apache-2.0", "MIT" ]
null
null
null
//---------------------------------*-C++-*-----------------------------------// /*! * \file track/detail/CellInitializer.hh * \brief CellInitializer class declaration * \note Copyright (c) 2020 Oak Ridge National Laboratory, UT-Battelle, LLC. */ //------------------------------------------------------------------...
27.842857
79
0.485377
[ "vector" ]
62b94539ab1fda3b7565756567410774e513cdc1
12,863
hpp
C++
src/bufferManipulation.hpp
GEOSX/LvArray
3ad0795f10023bd9a2fd8a41f0de0caa376845c0
[ "BSD-3-Clause" ]
16
2020-07-10T00:04:08.000Z
2022-03-28T03:59:51.000Z
src/bufferManipulation.hpp
GEOSX/LvArray
3ad0795f10023bd9a2fd8a41f0de0caa376845c0
[ "BSD-3-Clause" ]
55
2020-06-30T06:26:49.000Z
2022-03-29T18:21:47.000Z
src/bufferManipulation.hpp
GEOSX/LvArray
3ad0795f10023bd9a2fd8a41f0de0caa376845c0
[ "BSD-3-Clause" ]
5
2021-02-03T02:00:20.000Z
2022-03-21T20:37:51.000Z
/* * Copyright (c) 2021, Lawrence Livermore National Security, LLC and LvArray contributors. * All rights reserved. * See the LICENSE file for details. * SPDX-License-Identifier: (BSD-3-Clause) */ /** * @file bufferManipulation.hpp * @brief Contains functions for manipulating buffers. */ #pragma once // Sour...
30.995181
118
0.694239
[ "object" ]
62bdbc349b7c3de7e3ec26b9b14d1683b169f5f9
14,029
cc
C++
test/file_manip.cc
varqox/simlib
7830472019f88aa0e35dbfa1119b62b5f9dd4b9d
[ "MIT" ]
null
null
null
test/file_manip.cc
varqox/simlib
7830472019f88aa0e35dbfa1119b62b5f9dd4b9d
[ "MIT" ]
1
2017-01-05T17:50:32.000Z
2017-01-05T17:50:32.000Z
test/file_manip.cc
varqox/simlib
7830472019f88aa0e35dbfa1119b62b5f9dd4b9d
[ "MIT" ]
1
2017-01-05T15:26:48.000Z
2017-01-05T15:26:48.000Z
#include "simlib/file_manip.hh" #include "simlib/debug.hh" #include "simlib/defer.hh" #include "simlib/directory.hh" #include "simlib/file_contents.hh" #include "simlib/file_info.hh" #include "simlib/file_path.hh" #include "simlib/opened_temporary_file.hh" #include "simlib/random_bytes.hh" #include "simlib/temporary_di...
35.426768
91
0.616366
[ "vector" ]
62bed9f53b0613675eb7c38afdd48ae6ad2489d2
2,366
cpp
C++
SPOJ/ANAGR.cpp
aqfaridi/Competitve-Programming-Codes
d055de2f42d3d6bc36e03e67804a1dd6b212241f
[ "MIT" ]
null
null
null
SPOJ/ANAGR.cpp
aqfaridi/Competitve-Programming-Codes
d055de2f42d3d6bc36e03e67804a1dd6b212241f
[ "MIT" ]
null
null
null
SPOJ/ANAGR.cpp
aqfaridi/Competitve-Programming-Codes
d055de2f42d3d6bc36e03e67804a1dd6b212241f
[ "MIT" ]
null
null
null
#include <iostream> #include <cstdio> #include <algorithm> #include <cstring> #include <sstream> #include <vector> #include <iomanip> #include <cmath> using namespace std; typedef long long LL; typedef pair<int,int> pii; int arr1[26],arr2[26]; int main() { int t,n,l1,l2,cnt1,cnt2,cnt3,cnt4,idx; string s1,s2; ...
22.11215
52
0.353339
[ "vector" ]
498ace6210bae6d5d5d27ff17c783e65957fda65
1,771
cpp
C++
Cpp/Kattis/Graph/securitybadge.cpp
kchevali/OnlineJudge
c1d1894078fa45eef05c8785aba29758d9adf0c6
[ "MIT" ]
null
null
null
Cpp/Kattis/Graph/securitybadge.cpp
kchevali/OnlineJudge
c1d1894078fa45eef05c8785aba29758d9adf0c6
[ "MIT" ]
null
null
null
Cpp/Kattis/Graph/securitybadge.cpp
kchevali/OnlineJudge
c1d1894078fa45eef05c8785aba29758d9adf0c6
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; typedef long long l; typedef tuple<l,l,l> edge; // node, lower, upper // BFS: Unweighted - find path from one source const l N = 1e3 + 10; bool vis[N]; vector<edge> adj[N]; // Complexity O(V+E) bool bfs(l src, l dest, l id) { if(src == dest)return true; queue<l> q; q...
22.417722
71
0.540937
[ "vector" ]
498b962cbdc997dda6fec1737048cba18f964ed2
14,530
cpp
C++
pyvfc/vfc.cpp
eokeeffe/pyvfc
d883698aa341d487666f6615092fa1e6c04cd5f2
[ "MIT" ]
1
2021-08-31T10:06:16.000Z
2021-08-31T10:06:16.000Z
pyvfc/vfc.cpp
eokeeffe/pyvfc
d883698aa341d487666f6615092fa1e6c04cd5f2
[ "MIT" ]
null
null
null
pyvfc/vfc.cpp
eokeeffe/pyvfc
d883698aa341d487666f6615092fa1e6c04cd5f2
[ "MIT" ]
1
2021-08-31T09:59:44.000Z
2021-08-31T09:59:44.000Z
#include "vfc.h" // Mismatch removal by vector field consensus (VFC) // Author: Ji Zhao // Date: 01/25/2015 // Email: zhaoji84@gmail.com // // Reference // [1] Jiayi Ma, Ji Zhao, Jinwen Tian, Alan Yuille, and Zhuowen Tu. // Robust Point Matching via Vector Field Consensus, // IEEE Transactions on I...
23.322632
96
0.524639
[ "vector" ]
499d38c26e23a998a07e1d9f77bbe424693112ff
2,511
hpp
C++
AlloServer/H264NALUSource.hpp
tiborgo/AlloStreamer
bf91586a88c3aec8e5603e5606caf3c3d0d53139
[ "BSD-3-Clause" ]
5
2016-04-01T09:43:00.000Z
2019-06-09T19:04:18.000Z
AlloServer/H264NALUSource.hpp
tiborgo/AlloStreamer
bf91586a88c3aec8e5603e5606caf3c3d0d53139
[ "BSD-3-Clause" ]
null
null
null
AlloServer/H264NALUSource.hpp
tiborgo/AlloStreamer
bf91586a88c3aec8e5603e5606caf3c3d0d53139
[ "BSD-3-Clause" ]
3
2016-04-08T00:34:43.000Z
2019-11-15T19:21:13.000Z
#pragma once #include <FramedSource.hh> #include <boost/thread/barrier.hpp> #include <boost/thread/synchronized_value.hpp> #include <boost/thread/condition.hpp> #include <boost/thread.hpp> extern "C" { #include <libavcodec/avcodec.h> #include <libavutil/opt.h> #include <libavutil/imgutils.h> #include ...
27.293478
98
0.718439
[ "vector" ]
49a0315764547145e85e6f8ba8988f69d896b509
3,713
hpp
C++
source/Kai/Object.hpp
ioquatix/kai
4f8d00cd05b4123b6389f8dc3187ec1421b4f2da
[ "Unlicense", "MIT" ]
4
2016-07-19T08:53:09.000Z
2021-08-03T10:06:41.000Z
source/Kai/Object.hpp
ioquatix/kai
4f8d00cd05b4123b6389f8dc3187ec1421b4f2da
[ "Unlicense", "MIT" ]
null
null
null
source/Kai/Object.hpp
ioquatix/kai
4f8d00cd05b4123b6389f8dc3187ec1421b4f2da
[ "Unlicense", "MIT" ]
null
null
null
// // Object.h // This file is part of the "Kai" project, and is released under the MIT license. // // Created by Samuel Williams on 28/12/11. // Copyright (c) 2011 Orion Transfer Ltd. All rights reserved. // #ifndef _KAI_OBJECT_H #define _KAI_OBJECT_H #include "Kai.hpp" #include "Reference.hpp" #include "Memory/...
25.784722
135
0.684891
[ "object" ]
49abd5e192f233a9581e78359b94a98d7f4ea696
7,132
cpp
C++
source/backend/cpu/bf16/BF16Unary.cpp
JujuDel/MNN
8a82f5c5a7ae37192784c2dbd6dfc8ca8833565a
[ "Apache-2.0" ]
1
2021-09-17T03:22:16.000Z
2021-09-17T03:22:16.000Z
source/backend/cpu/bf16/BF16Unary.cpp
JujuDel/MNN
8a82f5c5a7ae37192784c2dbd6dfc8ca8833565a
[ "Apache-2.0" ]
null
null
null
source/backend/cpu/bf16/BF16Unary.cpp
JujuDel/MNN
8a82f5c5a7ae37192784c2dbd6dfc8ca8833565a
[ "Apache-2.0" ]
null
null
null
#include <vector> #include "BF16Unary.hpp" #include "VecHalf.hpp" #include "math/Vec.hpp" #include "backend/cpu/UnaryUtils.hpp" #include "BF16Backend.hpp" namespace MNN { using Vec4Half = MNN::Math::VecHalf<4>; using Vec4 = MNN::Math::Vec<float, 4>; struct Vec4Square { Vec4Half operator()(Vec4Half &x) const { ...
32.866359
83
0.607824
[ "vector" ]
49ae1baf9191a6c8ad4ad70f20c7da3134ee218f
1,100
cpp
C++
18.5-1.cpp
foram-s1/Competitive-Programming
57426521123c11b03e62997b50dcff344063ccca
[ "MIT" ]
1
2020-10-18T18:40:19.000Z
2020-10-18T18:40:19.000Z
18.5-1.cpp
foram-s1/Competitive-Programming
57426521123c11b03e62997b50dcff344063ccca
[ "MIT" ]
2
2020-10-08T16:10:04.000Z
2020-10-08T16:53:51.000Z
18.5-1.cpp
foram-s1/Competitive-Programming
57426521123c11b03e62997b50dcff344063ccca
[ "MIT" ]
11
2020-10-03T11:39:37.000Z
2020-10-29T04:57:52.000Z
//#include<iostream> //#include<bits/stdc++.h> //#include<algorithm> //#include<vector> //#include<string> // //using namespace std; // //int main(){ // long long int N; // cin >> N; // for(int i=1;i<=N;i++){ // if(i%3==0 && i%5==0){ // cout << "FizzBuzz" << endl; // } // else if(i%3==0){ // cout...
16.176471
35
0.420909
[ "vector" ]
49b4a3c6374b1bfa3ce4bdac650abd4196eba8b8
3,136
cpp
C++
renderer/rend/mesh.cpp
flaming0/software-renderer
dfeb24eb4ac6f90552e65cc7e0cf97d7d693ad7b
[ "MIT" ]
14
2015-03-22T16:18:32.000Z
2017-08-08T14:07:44.000Z
renderer/rend/mesh.cpp
nslobodin/software-renderer
dfeb24eb4ac6f90552e65cc7e0cf97d7d693ad7b
[ "MIT" ]
null
null
null
renderer/rend/mesh.cpp
nslobodin/software-renderer
dfeb24eb4ac6f90552e65cc7e0cf97d7d693ad7b
[ "MIT" ]
2
2015-08-31T03:01:57.000Z
2016-12-20T06:09:32.000Z
/* * mesh.cpp * * Author: flamingo * E-mail: epiforce57@gmail.com */ #include "stdafx.h" #include "mesh.h" #include "m33.h" #include "renderlist.h" #include "vertexbuffer.h" namespace rend { Mesh::Mesh() { } Mesh::~Mesh() { } void Mesh::appendSubmesh(const VertexBuffer &s...
20.631579
88
0.563776
[ "mesh", "vector", "transform" ]
49b4b5febe3ce6dd8c7dec0370e80c66e718e197
14,045
cpp
C++
adaptors/default/file/default_dir.cpp
saga-project/saga-cpp
7376c0de0529e7d7b80cf08b94ec484c2e56d38e
[ "BSL-1.0" ]
5
2015-09-15T16:24:14.000Z
2021-08-12T11:05:55.000Z
adaptors/default/file/default_dir.cpp
saga-project/saga-cpp
7376c0de0529e7d7b80cf08b94ec484c2e56d38e
[ "BSL-1.0" ]
null
null
null
adaptors/default/file/default_dir.cpp
saga-project/saga-cpp
7376c0de0529e7d7b80cf08b94ec484c2e56d38e
[ "BSL-1.0" ]
3
2016-11-17T04:38:38.000Z
2021-04-10T17:23:52.000Z
// Copyright (c) 2005-2009 Hartmut Kaiser // Copyright (c) 2005-2007 Andre Merzky (andre@merzky.net) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <map> #include <vector> #include <saga/saga/ut...
34.937811
110
0.563759
[ "object", "vector" ]
49b7db5c1192b86256980342dc9a5f02ce10de10
502
cpp
C++
src/basic/looping_while.cpp
iguntur/cpp-playground
6b4053059549f02947ddc552cca5b7adfa43aed9
[ "MIT" ]
null
null
null
src/basic/looping_while.cpp
iguntur/cpp-playground
6b4053059549f02947ddc552cca5b7adfa43aed9
[ "MIT" ]
null
null
null
src/basic/looping_while.cpp
iguntur/cpp-playground
6b4053059549f02947ddc552cca5b7adfa43aed9
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <string> int main() { std::cout << "Looping array > keyword: `while`" << std::endl; std::vector<std::string> instruments; instruments.push_back("guitar"); instruments.push_back("bass"); instruments.push_back("keyboard"); instruments.push_back("violin"); instrumen...
18.592593
72
0.645418
[ "vector" ]
49b9d453b9f6b3fbabd5670d1822e2c8012f8386
5,607
cpp
C++
src/py/wrapper/wrapper_177b7fc9d89d56c7a5ffb03f3a4d37f1.cpp
jpeyhardi/GLM
6f0fd763aec2a0ccdef3901b71ed990f20119510
[ "Apache-2.0" ]
null
null
null
src/py/wrapper/wrapper_177b7fc9d89d56c7a5ffb03f3a4d37f1.cpp
jpeyhardi/GLM
6f0fd763aec2a0ccdef3901b71ed990f20119510
[ "Apache-2.0" ]
null
null
null
src/py/wrapper/wrapper_177b7fc9d89d56c7a5ffb03f3a4d37f1.cpp
jpeyhardi/GLM
6f0fd763aec2a0ccdef3901b71ed990f20119510
[ "Apache-2.0" ]
null
null
null
#include "_glm.h" namespace autowig { class Wrap_177b7fc9d89d56c7a5ffb03f3a4d37f1 : public ::statiskit::glm::Design, public boost::python::wrapper< struct ::statiskit::glm::Design > { public: virtual class ::std::unique_ptr< struct ::statiskit::glm::Design, struct ::std::defa...
74.76
330
0.713751
[ "object", "vector" ]
49bc905ea12ab70eb651706ed817a0577b50ba66
5,188
cpp
C++
2019/day03.cpp
winks/adventofcode
6d2a97c148048a2d95b62862d1fe11d5760bd79f
[ "0BSD" ]
null
null
null
2019/day03.cpp
winks/adventofcode
6d2a97c148048a2d95b62862d1fe11d5760bd79f
[ "0BSD" ]
1
2019-12-08T14:45:28.000Z
2019-12-27T23:11:11.000Z
2019/day03.cpp
winks/adventofcode
6d2a97c148048a2d95b62862d1fe11d5760bd79f
[ "0BSD" ]
null
null
null
#include <fstream> #include <iostream> #include <sstream> #include <stdlib.h> #include <tuple> #include <vector> void pprint(std::vector<std::tuple<int,int>> v, std::string prefix = "") { return; if (prefix.size() > 0) std::cout << prefix << " :: "; for (auto it = v.begin(); it != v.end(); ++it) { std::tuple<int,...
24.704762
114
0.545104
[ "vector" ]
49bd1e3897bf11936735752afa9ebac91a50f9ea
2,148
cpp
C++
plugins/community/repos/DHE-Modules/src/gui/stage-widget.cpp
x42/VeeSeeVSTRack
0f5576f92e026ac1480e1477e55084911eca4052
[ "Zlib", "BSD-3-Clause" ]
null
null
null
plugins/community/repos/DHE-Modules/src/gui/stage-widget.cpp
x42/VeeSeeVSTRack
0f5576f92e026ac1480e1477e55084911eca4052
[ "Zlib", "BSD-3-Clause" ]
null
null
null
plugins/community/repos/DHE-Modules/src/gui/stage-widget.cpp
x42/VeeSeeVSTRack
0f5576f92e026ac1480e1477e55084911eca4052
[ "Zlib", "BSD-3-Clause" ]
null
null
null
#include <componentlibrary.hpp> #include "modules/stage-module.h" #include "stage-widget.h" namespace rack_plugin_DHE_Modules { struct StagePort : rack::SVGPort { StagePort() { background->svg = rack::SVG::load(rack::assetPlugin(plugin, "res/stage/port.svg")); background->wrap(); box.size = background-...
32.545455
191
0.738361
[ "model" ]
49be97709413d9aa18a52e71c92177bae26ddc68
2,464
hpp
C++
src/graphApp.hpp
Montag55/gl-playground
7501718726f8933e7550abfacaeff9708a4ab270
[ "MIT" ]
null
null
null
src/graphApp.hpp
Montag55/gl-playground
7501718726f8933e7550abfacaeff9708a4ab270
[ "MIT" ]
null
null
null
src/graphApp.hpp
Montag55/gl-playground
7501718726f8933e7550abfacaeff9708a4ab270
[ "MIT" ]
null
null
null
#pragma once #include <algorithm> #include <chrono> #include <variant> #include <application.hpp> #include <utils.hpp> #include <structs.hpp> #include <boxSelect.hpp> #include <axisDrag.hpp> #include <timeSeries.hpp> // assure compile class will be there class BoxSelect; class AxisDrag; class TimeSer...
28.651163
77
0.677354
[ "vector" ]
49c13faf50f4ffc78b45fd84d97df7ebd0eda56f
16,677
cpp
C++
Co-Simulation/Sumo/sumo-1.7.0/src/microsim/MSStateHandler.cpp
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
null
null
null
Co-Simulation/Sumo/sumo-1.7.0/src/microsim/MSStateHandler.cpp
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
null
null
null
Co-Simulation/Sumo/sumo-1.7.0/src/microsim/MSStateHandler.cpp
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
null
null
null
/****************************************************************************/ // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo // Copyright (C) 2012-2020 German Aerospace Center (DLR) and others. // This program and the accompanying materials are made available under the // terms of the Ecli...
44.236074
169
0.61336
[ "vector" ]
49c18802b2c095bf023cb9833121c02fe375a48e
891
cpp
C++
515-find-largest-value-in-each-tree-row/find-largest-value-in-each-tree-row_[AC1_13ms].cpp
i-square/LeetCode
9b15114b7a3de8638d44b3030edb72f41d9a274e
[ "MIT" ]
1
2019-10-09T11:25:10.000Z
2019-10-09T11:25:10.000Z
515-find-largest-value-in-each-tree-row/find-largest-value-in-each-tree-row_[AC1_13ms].cpp
i-square/LeetCode
9b15114b7a3de8638d44b3030edb72f41d9a274e
[ "MIT" ]
null
null
null
515-find-largest-value-in-each-tree-row/find-largest-value-in-each-tree-row_[AC1_13ms].cpp
i-square/LeetCode
9b15114b7a3de8638d44b3030edb72f41d9a274e
[ "MIT" ]
1
2021-03-31T08:45:51.000Z
2021-03-31T08:45:51.000Z
// You need to find the largest value in each row of a binary tree. // // Example: // // Input: // // 1 // / \ // 3 2 // / \ \ // 5 3 9 // // Output: [1, 3, 9] /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * ...
21.214286
69
0.499439
[ "vector" ]
49c29954f1ed5278699ded38d5b666513035efb1
6,482
cpp
C++
Immortal/Platform/D3D12/Pipeline.cpp
QSXW/Immortal
32adcc8609b318752dd97f1c14dc7368b47d47d1
[ "Apache-2.0" ]
6
2021-09-15T08:56:28.000Z
2022-03-29T15:55:02.000Z
Immortal/Platform/D3D12/Pipeline.cpp
DaShi-Git/Immortal
e3345b4ff2a2b9d215c682db2b4530e24cc3b203
[ "Apache-2.0" ]
null
null
null
Immortal/Platform/D3D12/Pipeline.cpp
DaShi-Git/Immortal
e3345b4ff2a2b9d215c682db2b4530e24cc3b203
[ "Apache-2.0" ]
4
2021-12-05T17:28:57.000Z
2022-03-29T15:55:05.000Z
#include "Pipeline.h" #include "Device.h" #include "Buffer.h" #include "RenderTarget.h" namespace Immortal { namespace D3D12 { Pipeline::Pipeline(Device *device, std::shared_ptr<Shader::Super> shader) : Super{ shader }, device{ device }, state{ new State{} }, descriptorAllocator{ DescriptorPool::Type:...
37.252874
104
0.657667
[ "vector" ]
49c9bacff72cf28b9d4e66d0ff17267f9ca18862
32,810
cpp
C++
src/providers/wfs/qgswfscapabilities.cpp
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
src/providers/wfs/qgswfscapabilities.cpp
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
src/providers/wfs/qgswfscapabilities.cpp
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
1
2021-12-25T08:40:30.000Z
2021-12-25T08:40:30.000Z
/*************************************************************************** qgswfscapabilities.cpp --------------------- begin : October 2011 copyright : (C) 2011 by Martin Dobias (C) 2016 by Even Rouault email : wonder dot sk at g...
40.406404
204
0.640079
[ "geometry", "object", "transform" ]
49cfcbc323334b8d4e4a0daef476c146a9306763
2,065
cpp
C++
OGMM/gui/panels/ModInfoPanel.cpp
Moneyl/OGMM
52a4bcc051fab160c55f0cc7228bd99de3ff5c47
[ "MIT" ]
null
null
null
OGMM/gui/panels/ModInfoPanel.cpp
Moneyl/OGMM
52a4bcc051fab160c55f0cc7228bd99de3ff5c47
[ "MIT" ]
null
null
null
OGMM/gui/panels/ModInfoPanel.cpp
Moneyl/OGMM
52a4bcc051fab160c55f0cc7228bd99de3ff5c47
[ "MIT" ]
null
null
null
#include "ModInfoPanel.h" #include "render/imgui/imgui_ext.h" #include "render/imgui/ImGuiFontManager.h" #include "application/mods/Mod.h" #include "application/mods/ModManager.h" void ModInfoPanel::Update(GuiState* state, bool* open) { if (!ImGui::Begin("Mod info", open)) { ImGui::End(); retur...
28.287671
95
0.566102
[ "render" ]
49d28f3f2508823bde0f90450c740e84359939be
2,798
cpp
C++
structure/segment-tree/segment-tree.cpp
fairy-lettuce/library
0c2cf9ba668f33db7586d5e0ea3818fe49920249
[ "Unlicense" ]
127
2019-07-22T03:52:01.000Z
2022-03-11T07:20:21.000Z
structure/segment-tree/segment-tree.cpp
fairy-lettuce/library
0c2cf9ba668f33db7586d5e0ea3818fe49920249
[ "Unlicense" ]
39
2019-09-16T12:04:53.000Z
2022-03-29T15:43:35.000Z
structure/segment-tree/segment-tree.cpp
fairy-lettuce/library
0c2cf9ba668f33db7586d5e0ea3818fe49920249
[ "Unlicense" ]
29
2019-08-10T11:27:06.000Z
2022-03-11T07:02:43.000Z
/** * @brief Segment Tree(セグメント木) * @docs docs/segment-tree.md */ template< typename Monoid, typename F > struct SegmentTree { int n, sz; vector< Monoid > seg; const F f; const Monoid M1; SegmentTree() = default; explicit SegmentTree(int n, const F f, const Monoid &M1) : n(n), f(f), M1(M1) { sz = ...
21.859375
100
0.466047
[ "vector" ]
49db1164dc815f88ad946f0f93044341edb32874
13,876
cxx
C++
Tracing/TraceEdit/VolumeOfInterest.cxx
YanXuHappygela/Farsight
1711b2a1458c7e035edd21fe0019a1f7d23fcafa
[ "Apache-2.0" ]
1
2016-11-19T03:15:59.000Z
2016-11-19T03:15:59.000Z
Tracing/TraceEdit/VolumeOfInterest.cxx
YanXuHappygela/Farsight
1711b2a1458c7e035edd21fe0019a1f7d23fcafa
[ "Apache-2.0" ]
null
null
null
Tracing/TraceEdit/VolumeOfInterest.cxx
YanXuHappygela/Farsight
1711b2a1458c7e035edd21fe0019a1f7d23fcafa
[ "Apache-2.0" ]
null
null
null
#include "VolumeOfInterest.h" VolumeOfInterest::VolumeOfInterest() { this->VOIPolyData.clear();// = std::vector<vtkPolyData*>; this->ROIPoints.clear(); } int VolumeOfInterest::AddVOIPoint(double* newPT) { this->ROIPoints.push_back(newPT); return (int) this->ROIPoints.size(); } bool VolumeOfInterest::ExtrudeVOI() {...
40.104046
136
0.749784
[ "object", "vector" ]
49e1a2de1151276875fce6852a3c79cd85dac3df
6,343
cpp
C++
Tridiagonal_CUDA/third_party/BPLib/BPLib.cpp
NIC0NIC0NI/TridiagonalSolver
9330103243acc4c811249ec4ffdb8df63c003350
[ "MIT" ]
null
null
null
Tridiagonal_CUDA/third_party/BPLib/BPLib.cpp
NIC0NIC0NI/TridiagonalSolver
9330103243acc4c811249ec4ffdb8df63c003350
[ "MIT" ]
null
null
null
Tridiagonal_CUDA/third_party/BPLib/BPLib.cpp
NIC0NIC0NI/TridiagonalSolver
9330103243acc4c811249ec4ffdb8df63c003350
[ "MIT" ]
null
null
null
//- ======================================================================= //+ BPLib v1.0 //+ Butterfly Processing Library //- ----------------------------------------------------------------------- //+ Designed to improve general signal type handling //- ===============================================================...
31.093137
92
0.609333
[ "transform" ]
49e4d6dc8445826a12323df8062975d09ab38bb8
17,696
cpp
C++
src/comptonscattering.cpp
JPETTomography/j-pet-ortho-simulations
2da46ec994ed9480a9efe5b3cd379eb0a80256d4
[ "Apache-2.0" ]
1
2018-01-26T17:49:34.000Z
2018-01-26T17:49:34.000Z
src/comptonscattering.cpp
JPETTomography/j-pet-ortho-simulations
2da46ec994ed9480a9efe5b3cd379eb0a80256d4
[ "Apache-2.0" ]
2
2017-06-21T08:21:44.000Z
2017-10-24T07:29:47.000Z
src/comptonscattering.cpp
JPETTomography/j-pet-ortho-simulations
2da46ec994ed9480a9efe5b3cd379eb0a80256d4
[ "Apache-2.0" ]
1
2017-05-25T13:27:45.000Z
2017-05-25T13:27:45.000Z
#include "TImage.h" #include "TCanvas.h" #include "TLine.h" #include "comptonscattering.h" unsigned ComptonScattering::objectID_= 1; /// /// \brief ComptonScattering::ComptonScattering The only constructor used. /// \param type Type of the decay, can be: TWO, THREE or TWOandTHREE. /// \param low Lower limit for smeari...
46.814815
171
0.683149
[ "object" ]
49e998bce3e28d8b7fc9c17eef731c66f022828c
28,284
cpp
C++
gui/src/Nodes.cpp
JRegimbal/Syntacts
29380edbd41b3f148eff8a5e9bb76d082af909b4
[ "MIT" ]
32
2020-03-22T05:31:00.000Z
2022-01-14T00:18:02.000Z
gui/src/Nodes.cpp
JRegimbal/Syntacts
29380edbd41b3f148eff8a5e9bb76d082af909b4
[ "MIT" ]
6
2020-10-29T21:08:47.000Z
2021-11-08T10:00:32.000Z
gui/src/Nodes.cpp
WHC2021SIC/Syntacts
4831fbc9aef8c7d46c1e962a267c3987cbe0439d
[ "MIT" ]
7
2020-05-26T21:38:31.000Z
2021-03-26T20:38:11.000Z
#include "Nodes.hpp" #include "Gui.hpp" using namespace mahi::gui; namespace { int g_nextNodeId = 0; } /////////////////////////////////////////////////////////////////////////////// void NodeSlot(const char *label, const ImVec2 &size) { BeginPulsable(true,true); ImGui::Button(label, size); EndPulsa...
30.057386
166
0.526587
[ "render", "vector" ]
49ea90956574d07a1cff71e3db14a56a46302376
2,264
cpp
C++
src/Core/OakVR/Sprite.cpp
bluespeck/OakVR
65d56942af390dc2ab2d969b44285d23bd53f139
[ "MIT" ]
null
null
null
src/Core/OakVR/Sprite.cpp
bluespeck/OakVR
65d56942af390dc2ab2d969b44285d23bd53f139
[ "MIT" ]
null
null
null
src/Core/OakVR/Sprite.cpp
bluespeck/OakVR
65d56942af390dc2ab2d969b44285d23bd53f139
[ "MIT" ]
null
null
null
#include "Sprite.h" #include "Utils/RenderUtils.h" #include "Utils/Buffer.h" #include "Interface.h" namespace oakvr { namespace render { Sprite::Sprite(const std::string &name, const oakvr::math::Vector3 &center, float width, float height, const std::string &textureName) : m_name( name ), m_center( center ), m_...
32.811594
136
0.67977
[ "render", "vector" ]
49ebc091694ffb176336129ca18f4c4bffc2a32d
1,478
cpp
C++
irg_gazebo_plugins/src/IRGLightFrustaPlugin/LightFrustaPlugin.cpp
nasa/irg_open
737c75fa48f7f72bd8aef54b2faa6d41b5dcfd69
[ "NASA-1.3" ]
7
2020-07-31T10:24:42.000Z
2022-01-06T19:02:56.000Z
irg_gazebo_plugins/src/IRGLightFrustaPlugin/LightFrustaPlugin.cpp
nasa/irg_open
737c75fa48f7f72bd8aef54b2faa6d41b5dcfd69
[ "NASA-1.3" ]
5
2021-02-05T04:43:12.000Z
2022-03-25T18:05:05.000Z
irg_gazebo_plugins/src/IRGLightFrustaPlugin/LightFrustaPlugin.cpp
nasa/irg_open
737c75fa48f7f72bd8aef54b2faa6d41b5dcfd69
[ "NASA-1.3" ]
3
2021-05-07T21:28:51.000Z
2021-11-04T23:25:27.000Z
// The Notices and Disclaimers for Ocean Worlds Autonomy Testbed for Exploration // Research and Simulation can be found in README.md in the root directory of // this repository. #include "LightFrustaPlugin.h" #include <gazebo/rendering/rendering.hh> using namespace irg; using namespace gazebo; GZ_REGISTER_SYSTEM_...
24.633333
102
0.668471
[ "model" ]
49eeca26c5447264fd64d78cdfb79465cbba8cdf
77,938
cc
C++
EnergyPlus/HeatBalanceIntRadExchange.cc
yurigabrich/EnergyPlusShadow
396ca83aa82b842e6b177ba35c91b3f481dfbbf9
[ "BSD-3-Clause" ]
null
null
null
EnergyPlus/HeatBalanceIntRadExchange.cc
yurigabrich/EnergyPlusShadow
396ca83aa82b842e6b177ba35c91b3f481dfbbf9
[ "BSD-3-Clause" ]
1
2020-07-08T13:32:09.000Z
2020-07-08T13:32:09.000Z
EnergyPlus/HeatBalanceIntRadExchange.cc
yurigabrich/EnergyPlusShadow
396ca83aa82b842e6b177ba35c91b3f481dfbbf9
[ "BSD-3-Clause" ]
null
null
null
// EnergyPlus, Copyright (c) 1996-2018, The Board of Trustees of the University of Illinois, // The Regents of the University of California, through Lawrence Berkeley National Laboratory // (subject to receipt of any required approvals from the U.S. Dept. of Energy), Oak Ridge // National Laboratory, managed by UT-Batt...
50.906597
150
0.547243
[ "geometry", "vector" ]
49f6c306e8b6bd4cba8c38247a2e728c0cf04afa
17,413
cpp
C++
brlycmbd/CrdBrlyRly/PnlBrlyRlyList_blks.cpp
mpsitech/brly-BeamRelay
481ccb3e83ea6151fb78eba293b44ade62a0ec78
[ "MIT" ]
null
null
null
brlycmbd/CrdBrlyRly/PnlBrlyRlyList_blks.cpp
mpsitech/brly-BeamRelay
481ccb3e83ea6151fb78eba293b44ade62a0ec78
[ "MIT" ]
null
null
null
brlycmbd/CrdBrlyRly/PnlBrlyRlyList_blks.cpp
mpsitech/brly-BeamRelay
481ccb3e83ea6151fb78eba293b44ade62a0ec78
[ "MIT" ]
null
null
null
/** * \file PnlBrlyRlyList_blks.cpp * job handler for job PnlBrlyRlyList (implementation of blocks) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author Alexander Wirthmueller (auto-generation) * \date created: 11 Jan 2021 */ // IP header --- ABOVE using namespace std; using namespace Sbecore; using names...
30.283478
145
0.646414
[ "vector" ]
49f87971f6082e432280fb1b1e3859c8944442b1
775
cpp
C++
src/math/quaternion.cpp
kullken/ugl
ec8651967643d5cb8bd9ae9e39a082469e96841a
[ "BSD-2-Clause" ]
null
null
null
src/math/quaternion.cpp
kullken/ugl
ec8651967643d5cb8bd9ae9e39a082469e96841a
[ "BSD-2-Clause" ]
null
null
null
src/math/quaternion.cpp
kullken/ugl
ec8651967643d5cb8bd9ae9e39a082469e96841a
[ "BSD-2-Clause" ]
null
null
null
#include "ugl/math/quaternion.h" #include <cassert> #include <cmath> #include "ugl/math/vector.h" namespace ugl::math { UnitQuaternion exp(const Quaternion& q) { [[maybe_unused]] constexpr double tolerance = 1e-6; assert(std::abs(q.w()) < tolerance); // Imaginary quaternion required. Vector3 u = q.vec()...
25.833333
81
0.634839
[ "vector" ]
49fcecd44f1e29dfa56b105efbbb48838f8b39a2
1,611
cpp
C++
oneEngine/oneGame/source/after/entities/world/environment/CloudSphere.cpp
jonting/1Engine
f22ba31f08fa96fe6405ebecec4f374138283803
[ "BSD-3-Clause" ]
8
2017-12-08T02:59:31.000Z
2022-02-02T04:30:03.000Z
oneEngine/oneGame/source/after/entities/world/environment/CloudSphere.cpp
jonting/1Engine
f22ba31f08fa96fe6405ebecec4f374138283803
[ "BSD-3-Clause" ]
2
2021-04-16T03:44:42.000Z
2021-08-30T06:48:44.000Z
oneEngine/oneGame/source/after/entities/world/environment/CloudSphere.cpp
jonting/1Engine
f22ba31f08fa96fe6405ebecec4f374138283803
[ "BSD-3-Clause" ]
1
2021-04-16T02:09:54.000Z
2021-04-16T02:09:54.000Z
#include "CloudSphere.h" #include "renderer/camera/CCamera.h" #include "renderer/material/glMaterial.h" #include "renderer/logic/model/CModel.h" #include "renderer/texture/CTexture.h" CloudSphere::CloudSphere ( void ) : CGameBehavior() { // Cloudsphere pCloudMat = new glMaterial(); pCloudMat->setTexture( 0, new CT...
30.396226
88
0.742396
[ "model", "transform" ]
49ffeef3ca792241c94d568a65d8a043cd9b0a23
1,153
hpp
C++
DisjSet.hpp
niceyeti/UnionFind
6c31eb549494f83c0c5d9b0791d7a4fc01094664
[ "Unlicense" ]
null
null
null
DisjSet.hpp
niceyeti/UnionFind
6c31eb549494f83c0c5d9b0791d7a4fc01094664
[ "Unlicense" ]
null
null
null
DisjSet.hpp
niceyeti/UnionFind
6c31eb549494f83c0c5d9b0791d7a4fc01094664
[ "Unlicense" ]
null
null
null
#ifndef DISJ_SET_H #define DISJ_SET_H // DisjSets class // // CONSTRUCTION: with int representing initial number of sets // // ******************PUBLIC OPERATIONS********************* // void union( root1, root2 ) --> Merge two sets // int find( x ) --> Return set containing x // ******************ERRORS*...
19.542373
61
0.627927
[ "vector" ]
8e6da1175083f0c77e4a5ddfeaa0e71752272e82
5,180
cpp
C++
ABC/loadchecking/loadchecking.cpp
keitaronaruse/AtCoderTraining
9fb8f0d492be678a788080c96b06c33992cb6db2
[ "MIT" ]
null
null
null
ABC/loadchecking/loadchecking.cpp
keitaronaruse/AtCoderTraining
9fb8f0d492be678a788080c96b06c33992cb6db2
[ "MIT" ]
null
null
null
ABC/loadchecking/loadchecking.cpp
keitaronaruse/AtCoderTraining
9fb8f0d492be678a788080c96b06c33992cb6db2
[ "MIT" ]
null
null
null
/** * @file loadchecking.cpp * @brief Load Checking Contest A - 好きな順列 * @author Keitaro Naruse * @date 2022-02-13 * @copyright MIT License * @details https://atcoder.jp/contests/loadchecking/tasks/loadchecking_a */ // # Solution #include <iostream> #include <vector> int main() { // make Ai const int N = 20;...
50.291262
114
0.368533
[ "vector" ]
8e6e39063e8b6dc8a218166c50d7132868287d03
4,685
cc
C++
AICSE-demo-student/demo/style_transfer_bcl/src/tf-implementation/tf-add-power-diff/cwise_op_power_difference.cc
iuming/AI_Computer_Systems
b47c4914a23acfdc469e1a80735bf68191b2acba
[ "MIT" ]
5
2020-12-07T03:16:49.000Z
2022-01-08T13:59:20.000Z
AICSE-demo-student/demo/style_transfer_bcl/src/tf-implementation/tf-add-power-diff/cwise_op_power_difference.cc
iuming/AI_Computer_Systems
b47c4914a23acfdc469e1a80735bf68191b2acba
[ "MIT" ]
21
2020-09-25T22:41:00.000Z
2022-03-12T00:50:43.000Z
AICSE-demo-student/demo/style_transfer_bcl/src/tf-implementation/tf-add-power-diff/cwise_op_power_difference.cc
iuming/AI_Computer_Systems
b47c4914a23acfdc469e1a80735bf68191b2acba
[ "MIT" ]
1
2022-02-18T09:01:43.000Z
2022-02-18T09:01:43.000Z
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
40.387931
104
0.605977
[ "shape" ]
8e71669cb40ba470503b42446093f8d0eabb706c
727
cc
C++
cpp/984.cc
staugust/leetcode
0ddd0b0941e596d3c6a21b6717d0dd193025f580
[ "Apache-2.0" ]
null
null
null
cpp/984.cc
staugust/leetcode
0ddd0b0941e596d3c6a21b6717d0dd193025f580
[ "Apache-2.0" ]
null
null
null
cpp/984.cc
staugust/leetcode
0ddd0b0941e596d3c6a21b6717d0dd193025f580
[ "Apache-2.0" ]
null
null
null
/* * https://leetcode.com/problems/string-without-aaa-or-bbb/ */ #include <iostream> #include <vector> #include <string> #include <algorithm> #include <iomanip> #include <cstdlib> #include <cstdio> #include <map> #include <set> #include <deque> #include <queue> using namespace std; class Solution984 { public: strin...
16.906977
86
0.502063
[ "vector" ]
8e76485ffec55f1db12028e2aadd614d98d381c8
5,511
cpp
C++
examples/cpp/opencv/Example_13_5_LeapDemo.cpp
jzitelli/OculusRiftInAction
7b4136ef4af3d5c392f464cf712e618e6f6a60f9
[ "Apache-2.0" ]
135
2015-01-08T03:27:23.000Z
2022-03-06T08:30:21.000Z
examples/cpp/opencv/Example_13_5_LeapDemo.cpp
jzitelli/OculusRiftInAction
7b4136ef4af3d5c392f464cf712e618e6f6a60f9
[ "Apache-2.0" ]
34
2015-01-03T10:40:12.000Z
2021-04-15T18:24:02.000Z
examples/cpp/opencv/Example_13_5_LeapDemo.cpp
jzitelli/OculusRiftInAction
7b4136ef4af3d5c392f464cf712e618e6f6a60f9
[ "Apache-2.0" ]
80
2015-01-10T08:41:28.000Z
2022-03-06T08:30:24.000Z
#include "Config.h" #ifdef HAVE_LEAP #include <Leap.h> #endif #include "Common.h" #ifdef HAVE_LEAP #include <thread> #include <mutex> /** Minimal demo of using the Leap Motion controller. Unlike other demos, this file relies on the Leap SDK which is not provided on our Github repo. The Leap SDK evolves rapidly...
26.118483
117
0.640719
[ "vector", "transform" ]
8e7a3f6189655d6a8100940f0beae3326e5277c1
5,403
cpp
C++
TheRayTracerChallenge/tuples.feature.cpp
erosnick/TheRayTracerChallenge
4375b5a5a0222b59107dca1d61f157f1de3e70fc
[ "MIT" ]
null
null
null
TheRayTracerChallenge/tuples.feature.cpp
erosnick/TheRayTracerChallenge
4375b5a5a0222b59107dca1d61f157f1de3e70fc
[ "MIT" ]
null
null
null
TheRayTracerChallenge/tuples.feature.cpp
erosnick/TheRayTracerChallenge
4375b5a5a0222b59107dca1d61f157f1de3e70fc
[ "MIT" ]
null
null
null
#include "catch.hpp" #include "Tuple.h" SCENARIO("A tuple with w = 1.0 is a point", "[Tuple]") { GIVEN("A = tuple(4.3, -4.2, 3.1, 1.0") { auto a = Tuple(4.3, -4.2, 3.1, 1.0); THEN("a.x == 4.3" "a.y == -4.2" "a.z == 3.1" "a.w == 1.0") { REQUIRE(a.x == 4.3); REQUIRE(a.y == -4.2); REQUIRE(a.z...
25.975962
83
0.510642
[ "vector" ]
8e7e2b0f524408e5c1cc5dceda35929a7542b5d8
27,403
cpp
C++
release/common/pathmachine.cpp
CecilHarvey/racc
836568ef7eecde208632571065c69f4b5f1a8d2b
[ "BSD-3-Clause" ]
1
2018-09-24T13:35:46.000Z
2018-09-24T13:35:46.000Z
release/common/pathmachine.cpp
CecilHarvey/racc
836568ef7eecde208632571065c69f4b5f1a8d2b
[ "BSD-3-Clause" ]
null
null
null
release/common/pathmachine.cpp
CecilHarvey/racc
836568ef7eecde208632571065c69f4b5f1a8d2b
[ "BSD-3-Clause" ]
1
2021-01-15T18:46:22.000Z
2021-01-15T18:46:22.000Z
// RACC - AI development project for first-person shooter games // (http://racc.bots-united.com/) // // Rational Autonomous Cybernetic Commandos AI // // pathmachine.cpp // #include "racc.h" void BotInitPathMachine (player_t *pPlayer) { // this function prepare a bot's pathfinding machine, initializi...
46.288851
156
0.679707
[ "vector" ]
8e84ea0684388c92468807169e3c5b25f27b32ef
1,614
cpp
C++
Problems/0137. Single Number II.cpp
KrKush23/LeetCode
2a87420a65347a34fba333d46e1aa6224c629b7a
[ "MIT" ]
null
null
null
Problems/0137. Single Number II.cpp
KrKush23/LeetCode
2a87420a65347a34fba333d46e1aa6224c629b7a
[ "MIT" ]
null
null
null
Problems/0137. Single Number II.cpp
KrKush23/LeetCode
2a87420a65347a34fba333d46e1aa6224c629b7a
[ "MIT" ]
null
null
null
class Solution { public: int singleNumber(vector<int>& nums) { int l{0}, h{0}; for(auto i:nums){ l = ~h & (l^i); h = ~l & (h^i); } return l; } }; /* Because every number will appear three times except only one, we need two bits to save the 3 states of all ...
32.938776
399
0.534077
[ "vector" ]
8e84ed132670798825886f458dbf2adf087f77d8
2,242
cpp
C++
src/core/scene.cpp
yumcyaWiz/LTRE
dd65125bb133c345a10a3cf3d4c2a330b38ee82b
[ "MIT" ]
3
2021-08-15T08:59:21.000Z
2021-11-27T08:23:37.000Z
src/core/scene.cpp
yumcyaWiz/LTRE
dd65125bb133c345a10a3cf3d4c2a330b38ee82b
[ "MIT" ]
null
null
null
src/core/scene.cpp
yumcyaWiz/LTRE
dd65125bb133c345a10a3cf3d4c2a330b38ee82b
[ "MIT" ]
1
2021-12-09T15:43:57.000Z
2021-12-09T15:43:57.000Z
#include "LTRE/core/scene.hpp" namespace LTRE { Scene::Scene() {} Scene::Scene(const std::shared_ptr<Intersector<Primitive>>& intersector, const std::shared_ptr<Light>& sky) : intersector(intersector), sky(sky) {} void Scene::addPrimitive(const Primitive& primitive) { intersector->addPrimitive(pr...
29.5
79
0.652096
[ "mesh", "shape", "model" ]
8e8d0c1429a6520b584adc5d411b10fbe3e3ba64
1,293
hpp
C++
include/tinyspv/spirv/unified1/instrs/SPIRV.control-flow.hpp
PENGUINLIONG/tinyspv
508ca5f4e1e4a1c2f4fb4323e0d0c8a367874a03
[ "Apache-2.0", "MIT" ]
null
null
null
include/tinyspv/spirv/unified1/instrs/SPIRV.control-flow.hpp
PENGUINLIONG/tinyspv
508ca5f4e1e4a1c2f4fb4323e0d0c8a367874a03
[ "Apache-2.0", "MIT" ]
null
null
null
include/tinyspv/spirv/unified1/instrs/SPIRV.control-flow.hpp
PENGUINLIONG/tinyspv
508ca5f4e1e4a1c2f4fb4323e0d0c8a367874a03
[ "Apache-2.0", "MIT" ]
1
2021-10-11T01:55:18.000Z
2021-10-11T01:55:18.000Z
// THIS IS A GENERATED SOURCE. MODIFICATION WILL BE OVERWRITTEN. // USING JSON FROM: // PENGUINLIONG/tinyspv @ db18ea116bd8c195ee18714eb9dffab473dfa7da #pragma once #include <vector> #include <string> #include <optional> #include "tinyspv/spirv/unified1/SPIRV.hpp" namespace tinyspv { namespace instrs { typedef uint32...
19.014706
68
0.747873
[ "vector" ]
8e956a1cf616a7dec317591ec47201a6cc74eb83
1,543
cpp
C++
storage/src/vespa/storage/distributor/clusterinformation.cpp
bowlofstew/vespa
5212c7a5568769eadb5c5d99b6a503a70c82af48
[ "Apache-2.0" ]
null
null
null
storage/src/vespa/storage/distributor/clusterinformation.cpp
bowlofstew/vespa
5212c7a5568769eadb5c5d99b6a503a70c82af48
[ "Apache-2.0" ]
1
2021-01-21T01:37:37.000Z
2021-01-21T01:37:37.000Z
storage/src/vespa/storage/distributor/clusterinformation.cpp
bowlofstew/vespa
5212c7a5568769eadb5c5d99b6a503a70c82af48
[ "Apache-2.0" ]
null
null
null
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "clusterinformation.h" #include <vespa/vdslib/distribution/distribution.h> #include <vespa/vdslib/state/clusterstate.h> namespace storage::distributor { bool ClusterInformation::ownsBucket(...
28.054545
118
0.724563
[ "vector" ]
8ea59cb7b07bd1a8fa52aba812bf8dad1920b895
24,589
cpp
C++
view/src/custom_chart_view.cpp
Rapprise/b2s-trader
ac8a3c2221d15c4df8df63842d20dafd6801e535
[ "BSD-2-Clause" ]
21
2020-06-07T20:34:47.000Z
2021-08-10T20:19:59.000Z
view/src/custom_chart_view.cpp
Rapprise/b2s-trader
ac8a3c2221d15c4df8df63842d20dafd6801e535
[ "BSD-2-Clause" ]
null
null
null
view/src/custom_chart_view.cpp
Rapprise/b2s-trader
ac8a3c2221d15c4df8df63842d20dafd6801e535
[ "BSD-2-Clause" ]
4
2020-07-13T10:19:44.000Z
2022-03-11T12:15:43.000Z
/* * Copyright (c) 2020, Rapprise. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of condition...
37.655436
94
0.69588
[ "vector" ]
8eb3bca81d2a8a146b84d515e4dd6adcb884c652
3,097
cpp
C++
src/lib/bms/Types.cpp
minium/bitcoin-messaging
74d8431e42718f2104f6f4838a24bc4e3cce1427
[ "Unlicense", "MIT" ]
7
2015-02-19T07:55:01.000Z
2021-04-20T07:50:19.000Z
src/lib/bms/Types.cpp
minium/bitcoin-messaging
74d8431e42718f2104f6f4838a24bc4e3cce1427
[ "Unlicense", "MIT" ]
null
null
null
src/lib/bms/Types.cpp
minium/bitcoin-messaging
74d8431e42718f2104f6f4838a24bc4e3cce1427
[ "Unlicense", "MIT" ]
6
2015-07-09T09:51:05.000Z
2018-05-10T17:30:39.000Z
/** * Types.cpp * * Types module with definitions of various types and * a set of auxiliary type conversion and manipulation operations. * * @author Krzysztof Okupski * @version 1.0 */ #include "Types.h" #include "util.h" #include <stdlib.h> #include <iostream> #include <random> using std::string; using st...
19.726115
74
0.663545
[ "vector" ]
8eb49207c46a9ef628f0410b79dfae4170cb44cf
1,426
cpp
C++
Plugins/org.blueberry.core.runtime/src/internal/berryHandle.cpp
liu3xing3long/MITK-2016.11
385c506f9792414f40337e106e13d5fd61aa3ccc
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
Plugins/org.blueberry.core.runtime/src/internal/berryHandle.cpp
liu3xing3long/MITK-2016.11
385c506f9792414f40337e106e13d5fd61aa3ccc
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
Plugins/org.blueberry.core.runtime/src/internal/berryHandle.cpp
liu3xing3long/MITK-2016.11
385c506f9792414f40337e106e13d5fd61aa3ccc
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
/*=================================================================== BlueBerry Platform Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY o...
20.970588
83
0.629032
[ "object" ]
8ebdedfb8e9826df889c1725c4e6e4c55bf8d177
1,799
hpp
C++
src/components.hpp
Xelonidas/OdysseyGameEngine
f19082f07fbd9b8045e4cf304c656e9965c49d7e
[ "MIT" ]
1
2021-07-04T11:06:05.000Z
2021-07-04T11:06:05.000Z
src/components.hpp
Xelonidas/OdysseyGameEngine
f19082f07fbd9b8045e4cf304c656e9965c49d7e
[ "MIT" ]
null
null
null
src/components.hpp
Xelonidas/OdysseyGameEngine
f19082f07fbd9b8045e4cf304c656e9965c49d7e
[ "MIT" ]
null
null
null
#pragma once namespace oge { class component { public: virtual std::string toString() { return "Empty component"; } virtual void update() {} virtual void intervalUpdate() {} }; class helloWorldComponent : public component { public: std::string toString() override { return "Hello World component"; }...
20.918605
81
0.599778
[ "vector", "transform" ]
8ec45f37315d734da75143b4f12dff5d42e84514
6,344
cc
C++
lib/base/database/SParDatabaseSource.cc
SiFi-CC/sifi-framework
8dba20dcc4dc8b25ca000d58e6eac27b2a94eb55
[ "MIT" ]
null
null
null
lib/base/database/SParDatabaseSource.cc
SiFi-CC/sifi-framework
8dba20dcc4dc8b25ca000d58e6eac27b2a94eb55
[ "MIT" ]
3
2020-05-06T18:22:40.000Z
2020-05-26T14:00:23.000Z
lib/base/database/SParDatabaseSource.cc
SiFi-CC/sifi-framework
8dba20dcc4dc8b25ca000d58e6eac27b2a94eb55
[ "MIT" ]
4
2021-02-11T10:44:29.000Z
2021-06-17T10:50:23.000Z
// @(#)lib/base:$Id$ // Author: Rafal Lalik 18/11/2017 /************************************************************************* * Copyright (C) 2017-2018, Rafał Lalik. * * All rights reserved. * * ...
33.566138
98
0.618064
[ "vector" ]
8ec4f1bc3b8a47f94cd1c81cde067bd69d46151d
1,548
cpp
C++
prog/potienko/block_2_3/lab_1/calculator.cpp
pashchenkoromak/jParcs
5d91ef6fdd983300e850599d04a469c17238fc65
[ "MIT" ]
2
2019-10-01T09:41:15.000Z
2021-06-06T17:46:13.000Z
prog/potienko/block_2_3/lab_1/calculator.cpp
pashchenkoromak/jParcs
5d91ef6fdd983300e850599d04a469c17238fc65
[ "MIT" ]
1
2018-05-18T18:20:46.000Z
2018-05-18T18:20:46.000Z
prog/potienko/block_2_3/lab_1/calculator.cpp
pashchenkoromak/jParcs
5d91ef6fdd983300e850599d04a469c17238fc65
[ "MIT" ]
8
2017-01-20T15:44:06.000Z
2021-11-28T20:00:49.000Z
// // Created by lionell on 5/13/15. // #include "calculator.h" #include <stack> #include <typeinfo> BigFloat evaluate(const BigFloat &left, const std::string &operation) { BigFloat result; if (operation == "@") result = -left; return result; } BigFloat evaluate(const BigFloat &left, const BigFloat &righ...
36
94
0.607235
[ "vector" ]
8ecca30ac19f465f3605327e995108224df4c5ae
732
cpp
C++
Assignment 4/Assingnment 4/Assingnment 4/HighContrast.cpp
justin-harper/cs122
83949bc097cf052ffe6b8bd82002377af4d9cede
[ "MIT" ]
null
null
null
Assignment 4/Assingnment 4/Assingnment 4/HighContrast.cpp
justin-harper/cs122
83949bc097cf052ffe6b8bd82002377af4d9cede
[ "MIT" ]
null
null
null
Assignment 4/Assingnment 4/Assingnment 4/HighContrast.cpp
justin-harper/cs122
83949bc097cf052ffe6b8bd82002377af4d9cede
[ "MIT" ]
null
null
null
/* Assignment: 4 Description: Paycheck Calculator Author: Justin Harper WSU ID: 10696738 Completion Time: 4hrs In completing this program, I received help from the following people: myself version 1.0 (major relese) I am happy with this version! */ #include "HighContrast.h" using namespace std; //class to conver...
15.913043
70
0.659836
[ "vector" ]
8ed7ffccd59d4ec461a0d6f161ddcfda4ba2ea66
724
cc
C++
algorithm/sort/is_sorted_until.cc
HelloCodeMing/ToySTL
8221688f8674ab214e3e57abe262b02f952c8036
[ "MIT" ]
1
2015-09-11T00:33:43.000Z
2015-09-11T00:33:43.000Z
algorithm/sort/is_sorted_until.cc
HelloCodeMing/ToySTL
8221688f8674ab214e3e57abe262b02f952c8036
[ "MIT" ]
null
null
null
algorithm/sort/is_sorted_until.cc
HelloCodeMing/ToySTL
8221688f8674ab214e3e57abe262b02f952c8036
[ "MIT" ]
null
null
null
#include <predef.hpp> template <class Iter, class T = typename std::iterator_traits<Iter>::value_type, class Cmp = std::less<T>> Iter is_sorted_until(Iter first, Iter last, Cmp cmp = Cmp()) { --last; for (; first != last; ++first) { auto next = std::next(first); if (!cmp(*firs...
23.354839
67
0.498619
[ "vector" ]
8ed88b17bcbaa660b3af44243b10bc1d97859e34
25,921
hpp
C++
src/ratehelpers.hpp
quantlibnode/quantlibnode
b50348131af77a2b6c295f44ef3245daf05c4afc
[ "MIT" ]
27
2016-11-19T16:51:21.000Z
2021-09-08T16:44:15.000Z
src/ratehelpers.hpp
quantlibnode/quantlibnode
b50348131af77a2b6c295f44ef3245daf05c4afc
[ "MIT" ]
1
2016-12-28T16:38:38.000Z
2017-02-17T05:32:13.000Z
src/ratehelpers.hpp
quantlibnode/quantlibnode
b50348131af77a2b6c295f44ef3245daf05c4afc
[ "MIT" ]
10
2016-12-28T02:31:38.000Z
2021-06-15T09:02:07.000Z
/* Copyright (C) 2016 -2017 Jerry Jin */ #ifndef ratehelpers_h #define ratehelpers_h #include <nan.h> #include <string> #include <queue> #include <utility> #include "../quantlibnode.hpp" #include <oh/objecthandler.hpp> using namespace node; using namespace v8; using namespace std; class DepositRateHelperWorker...
19.592593
88
0.666178
[ "vector" ]
8edef8ac18d5127e04fca47001d190f71f3f4acc
20,976
cpp
C++
sphero_gazebo/src/gazebo_sphero_controller.cpp
ovgu-FINken/SpheroSim
bcdeef58020d531b862d21f7d14a0072ee9f0b1c
[ "MIT" ]
1
2017-11-30T10:36:30.000Z
2017-11-30T10:36:30.000Z
sphero_gazebo/src/gazebo_sphero_controller.cpp
ovgu-FINken/SpheroSim
bcdeef58020d531b862d21f7d14a0072ee9f0b1c
[ "MIT" ]
null
null
null
sphero_gazebo/src/gazebo_sphero_controller.cpp
ovgu-FINken/SpheroSim
bcdeef58020d531b862d21f7d14a0072ee9f0b1c
[ "MIT" ]
null
null
null
/* * \file gazebo_sphero_controller.cpp * * \brief A differential drive plugin for gazebo. Based on the diffdrive plugin * developed for the erratic robot. The original * plugin can be found in the ROS package gazebo_erratic_plugins. * * A modification from the original Differential drive of Gazebo * To make ...
40.572534
152
0.682065
[ "transform" ]
8ee25b08c5b603254c31965b490ff6cc83e69ce5
3,644
hxx
C++
code/LibEpipolarConsistency/Gui/ComputeRadonIntermediate.hxx
mareikethies/EpipolarConsistency
63d7ca2fd705911a6c93ca4247486fc66a9d31c7
[ "Apache-2.0" ]
2
2020-03-21T16:33:51.000Z
2021-09-12T03:03:00.000Z
code/LibEpipolarConsistency/Gui/ComputeRadonIntermediate.hxx
mareikethies/EpipolarConsistency
63d7ca2fd705911a6c93ca4247486fc66a9d31c7
[ "Apache-2.0" ]
1
2018-06-14T07:48:55.000Z
2018-06-14T07:48:55.000Z
code/LibEpipolarConsistency/Gui/ComputeRadonIntermediate.hxx
mareikethies/EpipolarConsistency
63d7ca2fd705911a6c93ca4247486fc66a9d31c7
[ "Apache-2.0" ]
6
2018-05-15T21:38:35.000Z
2022-01-06T07:20:47.000Z
// Created by A. Aichert on Mon Mar 27st 2017. #ifndef __compute_radon_intermediate #define __compute_radon_intermediate #include <LibProjectiveGeometry/ProjectionMatrix.h> #include <LibEpipolarConsistency/RadonIntermediate.h> #include <GetSet/GetSetObjects.h> #include <GetSet/ProgressInterface.hxx> #include <LibUti...
40.043956
172
0.674808
[ "geometry", "transform" ]
8ee36601581f3c17919a6cf02305f524d75e8adf
807
hpp
C++
src/examples/trading/server/market_data_bus.hpp
jjzhang166/executors
9b42e193b27cc5c3308dd3bc4e52712c2e442c4b
[ "BSL-1.0" ]
406
2015-01-19T06:35:42.000Z
2022-03-30T04:38:12.000Z
src/examples/trading/server/market_data_bus.hpp
rongming-lu/executors
9b42e193b27cc5c3308dd3bc4e52712c2e442c4b
[ "BSL-1.0" ]
1
2018-06-13T03:17:24.000Z
2019-03-05T20:09:47.000Z
src/examples/trading/server/market_data_bus.hpp
rongming-lu/executors
9b42e193b27cc5c3308dd3bc4e52712c2e442c4b
[ "BSL-1.0" ]
66
2015-01-22T09:01:17.000Z
2022-03-30T04:38:13.000Z
// // market_data_bus.hpp // ~~~~~~~~~~~~~~~~~~~ // Bus used to distribute events to all market data feeds. // // Copyright (c) 2014 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost....
23.735294
79
0.729864
[ "vector" ]
8ee3f157537dc7c50e2b2ca26e9b327dea8cc789
10,805
cpp
C++
src/domain.cpp
lujuntuan/dcus
fc9733898dcb79923d25b85a231e793d4adfb8e6
[ "Apache-2.0" ]
null
null
null
src/domain.cpp
lujuntuan/dcus
fc9733898dcb79923d25b85a231e793d4adfb8e6
[ "Apache-2.0" ]
null
null
null
src/domain.cpp
lujuntuan/dcus
fc9733898dcb79923d25b85a231e793d4adfb8e6
[ "Apache-2.0" ]
null
null
null
/********************************************************************************* *Copyright(C): Juntuan.Lu 2021 *Author: Juntuan.Lu *Version: 1.0 *Date: 2021/04/22 *Phone: 15397182986 *Description: *Others: *Function List: *History: *************************************************************************...
26.162228
110
0.553818
[ "vector" ]
8ee499db7e02d48e49b37edad92f24869b769e34
874
hh
C++
MiniSatExt.hh
MikolasJanota/qesto
7c3c389f5227f3f2867742294152544a0d7e4046
[ "MIT" ]
null
null
null
MiniSatExt.hh
MikolasJanota/qesto
7c3c389f5227f3f2867742294152544a0d7e4046
[ "MIT" ]
null
null
null
MiniSatExt.hh
MikolasJanota/qesto
7c3c389f5227f3f2867742294152544a0d7e4046
[ "MIT" ]
null
null
null
/* * File: MiniSatExt.hh * Author: mikolas * * Created on November 29, 2010, 5:40 PM */ #ifndef MINISATEXT_HH #define MINISATEXT_HH #include "auxiliary.hh" #include "minisat/core/Solver.h" namespace SATSPC { class MiniSatExt : public Solver { public: inline void bump(const Var var) { varBumpActiv...
24.277778
76
0.672769
[ "vector" ]
8eec3b6192b87b31944630acdde67de18f2b0d8f
304
cpp
C++
src/Cpp/1-getting-started/1-1-1-HelloWindow/HelloWindowApplication.cpp
spnda/learnd3d11
83fea43afffca48776521d8f1ae60e9d0bc6dc84
[ "MIT" ]
29
2022-02-19T00:54:51.000Z
2022-03-24T11:05:47.000Z
src/Cpp/1-getting-started/1-1-1-HelloWindow/HelloWindowApplication.cpp
spnda/learnd3d11
83fea43afffca48776521d8f1ae60e9d0bc6dc84
[ "MIT" ]
67
2022-02-19T16:47:40.000Z
2022-03-30T15:09:38.000Z
src/Cpp/1-getting-started/1-1-1-HelloWindow/HelloWindowApplication.cpp
spnda/learnd3d11
83fea43afffca48776521d8f1ae60e9d0bc6dc84
[ "MIT" ]
8
2022-02-15T11:06:31.000Z
2022-03-16T22:34:22.000Z
#include "HelloWindowApplication.hpp" #include <string> HelloWindowApplication::HelloWindowApplication(const std::string& title) : Application(title) { } bool HelloWindowApplication::Load() { return true; } void HelloWindowApplication::Render() { } void HelloWindowApplication::Update() { }
13.818182
72
0.75
[ "render" ]
8ef36ebce7326cd75703b1e6bee12cbad63ed539
842
cpp
C++
_KaramayEngine/karamay_engine_graphics_unit_cmake/karamay_engine_graphics_unit/source/graphics/vulkan/device_object/descriptor_set_layout.cpp
Karamays/karamay_engine
858054ea5155d0b690b7cf17d0e6a6266e0b0b9c
[ "MIT" ]
null
null
null
_KaramayEngine/karamay_engine_graphics_unit_cmake/karamay_engine_graphics_unit/source/graphics/vulkan/device_object/descriptor_set_layout.cpp
Karamays/karamay_engine
858054ea5155d0b690b7cf17d0e6a6266e0b0b9c
[ "MIT" ]
null
null
null
_KaramayEngine/karamay_engine_graphics_unit_cmake/karamay_engine_graphics_unit/source/graphics/vulkan/device_object/descriptor_set_layout.cpp
Karamays/karamay_engine
858054ea5155d0b690b7cf17d0e6a6266e0b0b9c
[ "MIT" ]
1
2022-01-29T08:24:14.000Z
2022-01-29T08:24:14.000Z
#include "descriptor_set_layout.h" descriptor_set_layout::descriptor_set_layout(device& dev) : device_object(dev) { } descriptor_set_layout::~descriptor_set_layout() { deallocate(); } bool descriptor_set_layout::allocate(const std::vector<VkDescriptorSetLayoutBinding>& bindings) noexcept { VkDescriptorSetLay...
24.764706
104
0.72209
[ "vector" ]
f111f64beaeaba36757cb19f0dda2eb6b4e78ffd
2,582
cc
C++
cms/src/model/NodeProcessesResult.cc
sdk-team/aliyun-openapi-cpp-sdk
d0e92f6f33126dcdc7e40f60582304faf2c229b7
[ "Apache-2.0" ]
3
2020-01-06T08:23:14.000Z
2022-01-22T04:41:35.000Z
cms/src/model/NodeProcessesResult.cc
sdk-team/aliyun-openapi-cpp-sdk
d0e92f6f33126dcdc7e40f60582304faf2c229b7
[ "Apache-2.0" ]
null
null
null
cms/src/model/NodeProcessesResult.cc
sdk-team/aliyun-openapi-cpp-sdk
d0e92f6f33126dcdc7e40f60582304faf2c229b7
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
28.688889
90
0.738575
[ "vector", "model" ]
47e6530b0fbd521dd52f5319ca32a0b7a771729c
13,706
cpp
C++
Source/EMsoftWorkbench/Workbench/Modules/MonteCarloSimulationModule/MonteCarloSimulationController.cpp
josephtessmer/EMsoft
b6f73c76c52ff7bfa432119b91d3981c8e97fd11
[ "Intel", "Unlicense", "MIT-CMU", "BSD-3-Clause" ]
37
2019-02-11T15:39:55.000Z
2022-03-15T10:37:23.000Z
Source/EMsoftWorkbench/Workbench/Modules/MonteCarloSimulationModule/MonteCarloSimulationController.cpp
hhoward22/EMsoft
97daa26978c42d5f569f4588a9991393c157d509
[ "Intel", "BSD-3-Clause", "MIT-CMU", "Unlicense" ]
83
2018-08-30T10:30:30.000Z
2022-03-31T09:27:33.000Z
Source/EMsoftWorkbench/Workbench/Modules/MonteCarloSimulationModule/MonteCarloSimulationController.cpp
hhoward22/EMsoft
97daa26978c42d5f569f4588a9991393c157d509
[ "Intel", "BSD-3-Clause", "MIT-CMU", "Unlicense" ]
71
2018-08-21T14:19:22.000Z
2022-03-30T19:50:54.000Z
/* ============================================================================ * Copyright (c) 2009-2017 BlueQuartz Software, LLC * * 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...
45.234323
158
0.692106
[ "vector" ]
47ef36e06ecbdcbc229fde9189c7bf8b5646d223
1,523
cpp
C++
tests/sem3d.cpp
Fvergnet/cafes
ac634318980e7b5787ba34a4d6d20eb27be69c9a
[ "BSD-3-Clause" ]
5
2016-07-15T09:34:27.000Z
2021-02-11T21:01:26.000Z
tests/sem3d.cpp
Fvergnet/cafes
ac634318980e7b5787ba34a4d6d20eb27be69c9a
[ "BSD-3-Clause" ]
1
2020-09-11T14:59:58.000Z
2020-09-11T14:59:58.000Z
tests/sem3d.cpp
Fvergnet/cafes
ac634318980e7b5787ba34a4d6d20eb27be69c9a
[ "BSD-3-Clause" ]
2
2016-12-16T09:40:57.000Z
2019-09-03T12:40:40.000Z
#include <cafes.hpp> #include <petsc.h> void zeros(const PetscReal x[], PetscScalar *u){ *u = 0.; } void ones(const PetscReal x[], PetscScalar *u){ *u = 1.; } int main(int argc, char **argv) { PetscErrorCode ierr; std::size_t const dim = 3; ierr = PetscInitialize(&argc, &argv, (char *)0, (char *)0)...
33.108696
107
0.508864
[ "vector" ]
47effe33d948cc92a8bcc67ee022b760dfb8bf97
1,365
hpp
C++
dev/Basic/shared/network/ControlManager.hpp
gusugusu1018/simmobility-prod
d30a5ba353673f8fd35f4868c26994a0206a40b6
[ "MIT" ]
50
2018-12-21T08:21:38.000Z
2022-01-24T09:47:59.000Z
dev/Basic/shared/network/ControlManager.hpp
gusugusu1018/simmobility-prod
d30a5ba353673f8fd35f4868c26994a0206a40b6
[ "MIT" ]
2
2018-12-19T13:42:47.000Z
2019-05-13T04:11:45.000Z
dev/Basic/shared/network/ControlManager.hpp
gusugusu1018/simmobility-prod
d30a5ba353673f8fd35f4868c26994a0206a40b6
[ "MIT" ]
27
2018-11-28T07:30:34.000Z
2022-02-05T02:22:26.000Z
//Copyright (c) 2013 Singapore-MIT Alliance for Research and Technology //Licensed under the terms of the MIT License, as described in the file: // license.txt (http://opensource.org/licenses/MIT) /* * ControlManager.hpp * * Created on: Nov 24, 2012 * Author: redheli */ #pragma once #include <sys/poll...
22.75
108
0.684982
[ "object" ]
9a0482861c4bee53be460e9b811387c6e8e25f96
4,018
cpp
C++
ros/src/computing/perception/localization/packages/orb_scan_localizer/Thirdparty/g2o/g2o/solvers/csparse/csparse_helper.cpp
yukitsuji/mono_3d_localizer
a3b4f64058482b072c277b5f6e959d485f26868b
[ "BSD-3-Clause" ]
5
2018-06-20T08:29:21.000Z
2018-11-12T06:05:52.000Z
ros/src/computing/perception/localization/packages/orb_scan_localizer/Thirdparty/g2o/g2o/solvers/csparse/csparse_helper.cpp
yukitsuji/mono_3d_localizer
a3b4f64058482b072c277b5f6e959d485f26868b
[ "BSD-3-Clause" ]
null
null
null
ros/src/computing/perception/localization/packages/orb_scan_localizer/Thirdparty/g2o/g2o/solvers/csparse/csparse_helper.cpp
yukitsuji/mono_3d_localizer
a3b4f64058482b072c277b5f6e959d485f26868b
[ "BSD-3-Clause" ]
1
2019-01-21T13:38:45.000Z
2019-01-21T13:38:45.000Z
// g2o - General Graph Optimization // Copyright (C) 2011 R. Kuemmerle, G. Grisetti, W. Burgard // 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 r...
34.34188
101
0.630911
[ "vector" ]
9a106bcbee666aa5ea982991e1bc866053b7e41a
16,186
cpp
C++
ui/ddf_bindingeditor.cpp
giuliandenicola1/deconz-rest-plugin
f01c40bcb73f17339216bd3c15af4a6bbc3b54e4
[ "BSD-3-Clause" ]
1,765
2015-06-09T08:10:44.000Z
2022-03-29T16:20:41.000Z
ui/ddf_bindingeditor.cpp
giuliandenicola1/deconz-rest-plugin
f01c40bcb73f17339216bd3c15af4a6bbc3b54e4
[ "BSD-3-Clause" ]
5,354
2015-01-09T21:18:14.000Z
2022-03-31T21:41:56.000Z
ui/ddf_bindingeditor.cpp
giuliandenicola1/deconz-rest-plugin
f01c40bcb73f17339216bd3c15af4a6bbc3b54e4
[ "BSD-3-Clause" ]
506
2015-04-15T14:08:41.000Z
2022-03-28T09:23:35.000Z
#include <QAction> #include <QEvent> #include <QDragEnterEvent> #include <QDropEvent> #include <QFormLayout> #include <QHBoxLayout> #include <QHeaderView> #include <QLabel> #include <QLineEdit> #include <QMimeData> #include <QScrollArea> #include <QSpinBox> #include <QStandardItemModel> #include <QTableView> #include <...
27.341216
145
0.599098
[ "object", "vector" ]
9a1372e394c9eae5cc6d4d39ce43223973de6ad0
11,313
cxx
C++
src/extractor/compressed_edge_container.cxx
ambasta/osram
5415b73292e1387fb1dbcab58296ea6fefab9075
[ "BSD-2-Clause" ]
1
2021-01-25T11:07:22.000Z
2021-01-25T11:07:22.000Z
src/extractor/compressed_edge_container.cxx
ambasta/osram
5415b73292e1387fb1dbcab58296ea6fefab9075
[ "BSD-2-Clause" ]
null
null
null
src/extractor/compressed_edge_container.cxx
ambasta/osram
5415b73292e1387fb1dbcab58296ea6fefab9075
[ "BSD-2-Clause" ]
null
null
null
#include "osram/util/typedefs.hxx" #include <algorithm> #include <fmt/core.h> #include <osram/extractor/compressed_edge_container.hxx> namespace osram { namespace extractor { CompressedEdgeContainer::CompressedEdgeContainer() { m_free_list.reserve(100); increase_free_list(); } void CompressedEdgeContainer::increa...
37.336634
80
0.744188
[ "geometry", "vector" ]
9a13e1a93ac17a32c69b9387a834653698f9e904
4,456
cpp
C++
arbor/cable_cell_param.cpp
8Stefan/arbor
89a4fc4335fe433af6758db84990a08ae5a8e3b2
[ "BSD-3-Clause" ]
null
null
null
arbor/cable_cell_param.cpp
8Stefan/arbor
89a4fc4335fe433af6758db84990a08ae5a8e3b2
[ "BSD-3-Clause" ]
null
null
null
arbor/cable_cell_param.cpp
8Stefan/arbor
89a4fc4335fe433af6758db84990a08ae5a8e3b2
[ "BSD-3-Clause" ]
null
null
null
#include <cfloat> #include <cmath> #include <numeric> #include <vector> #include <arbor/cable_cell.hpp> #include <arbor/cable_cell_param.hpp> #include <arbor/morph/locset.hpp> #include "morph/em_morphology.hpp" #include "util/maputil.hpp" namespace arb { void check_global_properties(const cable_cell_global_properti...
31.160839
127
0.605925
[ "vector" ]
9a1c93cf3a12cc48afe0d9fd67d10c23f2a0bd60
1,388
cpp
C++
cpp/2020-08-19--zmq-cmd-chat/code/work_outgoing.cpp
Dreamykass/bitsofkass
b43f726b4d12784075eec998ebf5fff908f87c35
[ "MIT" ]
2
2021-09-22T15:04:29.000Z
2021-11-22T06:30:48.000Z
cpp/2020-08-19--zmq-cmd-chat/code/work_outgoing.cpp
Dreamykass/bitsofkass
b43f726b4d12784075eec998ebf5fff908f87c35
[ "MIT" ]
null
null
null
cpp/2020-08-19--zmq-cmd-chat/code/work_outgoing.cpp
Dreamykass/bitsofkass
b43f726b4d12784075eec998ebf5fff908f87c35
[ "MIT" ]
null
null
null
#include "networker.hpp" #include <map> #include <zmq.hpp> namespace { const std::chrono::milliseconds timeout{ 200 }; } void networker_t::outgoing_work() { zmq::context_t context; zmq::poller_t<> poller; std::map<std::string, zmq::socket_t> sockets; std::vector<zmq::poller_event<>> events(100); while...
24.350877
70
0.607349
[ "vector" ]
9a1f75efa05e0bdb9fd864858e7c7a4daaa38165
52,383
cpp
C++
aws-cpp-sdk-accessanalyzer/source/AccessAnalyzerClient.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2022-01-05T18:20:03.000Z
2022-01-05T18:20:03.000Z
aws-cpp-sdk-accessanalyzer/source/AccessAnalyzerClient.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2022-01-03T23:59:37.000Z
2022-01-03T23:59:37.000Z
aws-cpp-sdk-accessanalyzer/source/AccessAnalyzerClient.cpp
ravindra-wagh/aws-sdk-cpp
7d5ff01b3c3b872f31ca98fb4ce868cd01e97696
[ "Apache-2.0" ]
1
2021-11-09T11:58:03.000Z
2021-11-09T11:58:03.000Z
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/core/utils/Outcome.h> #include <aws/core/auth/AWSAuthSigner.h> #include <aws/core/client/CoreErrors.h> #include <aws/core/client/RetryStrategy.h> #include <aws/core/http/HttpClient.h> #i...
54.114669
254
0.794074
[ "model" ]
9a27f7568d77bcbd048cdce8c0e02d351ca41aca
1,164
cpp
C++
leetcode/1391. Check if There is a Valid Path in a Grid/s2.cpp
zhuohuwu0603/leetcode_cpp_lzl124631x
6a579328810ef4651de00fde0505934d3028d9c7
[ "Fair" ]
787
2017-05-12T05:19:57.000Z
2022-03-30T12:19:52.000Z
leetcode/1391. Check if There is a Valid Path in a Grid/s2.cpp
aerlokesh494/LeetCode
0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f
[ "Fair" ]
8
2020-03-16T05:55:38.000Z
2022-03-09T17:19:17.000Z
leetcode/1391. Check if There is a Valid Path in a Grid/s2.cpp
aerlokesh494/LeetCode
0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f
[ "Fair" ]
247
2017-04-30T15:07:50.000Z
2022-03-30T09:58:57.000Z
// OJ: https://leetcode.com/problems/check-if-there-is-a-valid-path-in-a-grid/ // Author: github.com/lzl124631x // Time: O(MN) // Space: O(MN) // Ref: https://www.youtube.com/watch?v=SpMez87v0O8 class Solution { int M, N; vector<vector<int>> A; vector<vector<bool>> vis; int h(int x, int y) { return x * ...
36.375
105
0.458763
[ "vector" ]
9a284166dbfc99b7354906a6723f069b105ff30c
1,342
cpp
C++
NumberofStudents/main.cpp
khalidHsoliman/Problem-Solving
532a63833f982472a82c358a7c5827da73680a6f
[ "MIT" ]
5
2020-06-30T18:37:16.000Z
2020-07-22T09:23:58.000Z
NumberofStudents/main.cpp
khalidHsoliman/Problem-Solving
532a63833f982472a82c358a7c5827da73680a6f
[ "MIT" ]
null
null
null
NumberofStudents/main.cpp
khalidHsoliman/Problem-Solving
532a63833f982472a82c358a7c5827da73680a6f
[ "MIT" ]
null
null
null
// Problem Link : https://leetcode.com/contest/weekly-contest-189 #include <bits/stdc++.h> using namespace std; int busyStudent(vector<int>& startTime, vector<int>& endTime, int queryTime); int main() { int t; cin >> t; while(t--) { vector<int> startTime; vector<int> endTime; int queryTime...
21.301587
86
0.520119
[ "vector" ]
9a28ae75e6330a027c1eeca8de8769a3c28ff0e8
963
cpp
C++
qtcreator-templates/wizards/simpleqt/main.cpp
SammyEnigma/stackoverflown
0f70f2534918b2e65cec1046699573091d9a40b5
[ "Unlicense" ]
54
2015-09-13T07:29:52.000Z
2022-03-16T07:43:50.000Z
qtcreator-templates/wizards/simpleqt/main.cpp
SammyEnigma/stackoverflown
0f70f2534918b2e65cec1046699573091d9a40b5
[ "Unlicense" ]
null
null
null
qtcreator-templates/wizards/simpleqt/main.cpp
SammyEnigma/stackoverflown
0f70f2534918b2e65cec1046699573091d9a40b5
[ "Unlicense" ]
31
2016-08-26T13:35:01.000Z
2022-03-13T16:43:12.000Z
@if "%GITHUBLINK%" == "true" // %GITHUBURL%/%ProjectName% @endif @if "%QT%" == "true" @if "%CONSOLE%" == "false" @if "%QT4SUPPORT%" == "false" #include <QtWidgets> @else #include <QtGui> #if QT_VERSION >= QT_VERSION_CHECK(5,0,0) #include <QtWidgets> #endif @endif @else #include <QtCore> @endif @if "%OBJECT%" != "" cla...
16.894737
55
0.622015
[ "object" ]
9a2a4bcad905f19d6c753137d5d8e72f40eaa915
4,954
cpp
C++
solutions/LeetCode/C++/1034.cpp
timxor/leetcode-journal
5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a
[ "MIT" ]
854
2018-11-09T08:06:16.000Z
2022-03-31T06:05:53.000Z
solutions/LeetCode/C++/1034.cpp
timxor/leetcode-journal
5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a
[ "MIT" ]
29
2019-06-02T05:02:25.000Z
2021-11-15T04:09:37.000Z
solutions/LeetCode/C++/1034.cpp
timxor/leetcode-journal
5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a
[ "MIT" ]
347
2018-12-23T01:57:37.000Z
2022-03-12T14:51:21.000Z
__________________________________________________________________________________________________ sample 48 ms submission static const auto _ = []() { ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); return nullptr; }(); class Solution { public: bool visited[50][50]; int conne...
35.385714
159
0.450343
[ "vector" ]
9a2eceb753972cf7c4c5c683fefd67afd8021feb
3,735
cpp
C++
cpp/src/longest_common_subsequence.cpp
CarnaViire/training
5a01a022167a88a9c90bc6db4e14347ad60ee9e4
[ "Unlicense" ]
3
2017-07-08T05:18:33.000Z
2021-06-11T13:49:37.000Z
cpp/src/longest_common_subsequence.cpp
kondratyev-nv/training
ed28507694bc2026867b67c26dc9c4a955b24fb4
[ "Unlicense" ]
44
2017-10-05T20:23:03.000Z
2022-02-10T19:50:21.000Z
cpp/src/longest_common_subsequence.cpp
CarnaViire/training
5a01a022167a88a9c90bc6db4e14347ad60ee9e4
[ "Unlicense" ]
4
2017-10-06T19:29:55.000Z
2022-01-04T23:25:18.000Z
/** * Compute the longest common subsequence of two or three sequences. */ #include "longest_common_subsequence.hpp" #include <unordered_map> using namespace std; int longest_common_subsequence(vector<int> const& x, vector<int> const& y, int xi, ...
36.262136
118
0.457831
[ "vector" ]