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
0adc51608e92df23cbb3156c1e48357b3352a505
2,499
hh
C++
src/Utilities/QuadraticInterpolator.hh
jmikeowen/Spheral
3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
22
2018-07-31T21:38:22.000Z
2020-06-29T08:58:33.000Z
src/Utilities/QuadraticInterpolator.hh
jmikeowen/Spheral
3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
41
2020-09-28T23:14:27.000Z
2022-03-28T17:01:33.000Z
src/Utilities/QuadraticInterpolator.hh
jmikeowen/Spheral
3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
7
2019-12-01T07:00:06.000Z
2020-09-15T21:12:39.000Z
//---------------------------------Spheral++----------------------------------// // QuadraticInterpolator // // Encapsulates the algorithm and data for parabolic interpolation in 1D // Assumes the results is interpolated as y_interp = a + b*x + c*x^2 // // Created by JMO, Fri Dec 4 14:28:08 PST 2020 //----------------...
34.708333
93
0.59904
[ "vector" ]
0ade53118d77fc33871eaf09d98340b4c80fc26c
25,313
cpp
C++
cmds/statsd/src/logd/LogEvent.cpp
rio-31/android_frameworks_base-1
091a068a3288d27d77636708679dde58b7b7fd25
[ "Apache-2.0" ]
164
2015-01-05T16:49:11.000Z
2022-03-29T20:40:27.000Z
cmds/statsd/src/logd/LogEvent.cpp
rio-31/android_frameworks_base-1
091a068a3288d27d77636708679dde58b7b7fd25
[ "Apache-2.0" ]
127
2015-01-12T12:02:32.000Z
2021-11-28T08:46:25.000Z
cmds/statsd/src/logd/LogEvent.cpp
rio-31/android_frameworks_base-1
091a068a3288d27d77636708679dde58b7b7fd25
[ "Apache-2.0" ]
1,141
2015-01-01T22:54:40.000Z
2022-02-09T22:08:26.000Z
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
36.007112
100
0.567851
[ "vector" ]
0ae449dd526b8a112567338f90ff209c14b4cb6f
1,213
hpp
C++
include/matazure/tensor_initializer.hpp
matazure/mtensor
4289284b201cb09ed1dfc49f44d6738751affd63
[ "MIT" ]
82
2020-04-11T09:33:36.000Z
2022-03-23T03:47:25.000Z
include/matazure/tensor_initializer.hpp
Lexxos/mtensor
feb120923dad3fb4ae3b31dd09931622a63c3d06
[ "MIT" ]
28
2017-04-26T17:12:35.000Z
2019-04-08T04:05:24.000Z
include/matazure/tensor_initializer.hpp
Lexxos/mtensor
feb120923dad3fb4ae3b31dd09931622a63c3d06
[ "MIT" ]
22
2017-01-10T14:57:29.000Z
2019-12-17T08:55:59.000Z
#pragma once #include <initializer_list> #include <matazure/point.hpp> #include <vector> namespace matazure { template <typename _ValueType, int_t _Rank> struct nested_initializer_list { using type = std::initializer_list<typename nested_initializer_list<_ValueType, _Rank - 1>::type>; static _ValueT...
32.783784
100
0.641385
[ "shape", "vector" ]
0ae7d64c8cb8ea4931bcbaa40c591dbce8c03f3e
2,326
hpp
C++
src/animator.hpp
DavoSK/baliksena
c347055084b8e5ea9b0f970cbceb0769ab4504d3
[ "BSD-3-Clause" ]
5
2021-11-12T18:03:06.000Z
2021-12-19T14:22:05.000Z
src/animator.hpp
DavoSK/baliksena
c347055084b8e5ea9b0f970cbceb0769ab4504d3
[ "BSD-3-Clause" ]
null
null
null
src/animator.hpp
DavoSK/baliksena
c347055084b8e5ea9b0f970cbceb0769ab4504d3
[ "BSD-3-Clause" ]
1
2021-11-12T18:03:08.000Z
2021-11-12T18:03:08.000Z
#pragma once #include <string> #include "logger.hpp" #include "mafia/parser_5ds.hpp" #include "single_mesh.hpp" enum class Key { Trans, Rot, Scale, Count }; class Sequence { public: Sequence(Frame* frame) : mFrame(frame) { assert(mFrame != nullptr); start(); } ...
23.029703
64
0.530525
[ "mesh", "vector" ]
0aed71d5a0c7e289a796bf9e72c7e12eb9b1f0cd
1,021
cpp
C++
leetcode/0496_next_greater_element_i.cpp
jacquerie/leetcode
a05e6b832eb0e0740aaff7b2eb3109038ad404bf
[ "MIT" ]
3
2018-05-10T09:56:49.000Z
2020-11-07T18:09:42.000Z
leetcode/0496_next_greater_element_i.cpp
jacquerie/leetcode
a05e6b832eb0e0740aaff7b2eb3109038ad404bf
[ "MIT" ]
null
null
null
leetcode/0496_next_greater_element_i.cpp
jacquerie/leetcode
a05e6b832eb0e0740aaff7b2eb3109038ad404bf
[ "MIT" ]
null
null
null
// Copyright (c) 2018 Jacopo Notarstefano #include <cassert> #include <vector> using namespace std; class Solution { public: vector<int> nextGreaterElement(vector<int>& findNums, vector<int>& nums) { vector<int> result(findNums.size()); for (int i = 0; i < findNums.size(); i++) { re...
22.195652
78
0.550441
[ "vector" ]
0aee15569f3ca7c7258813aac56968490d754f56
559
cc
C++
uva/00927.cc
algoriddle/cp
9596654f921c9da0710e2743b235bd76d938a62c
[ "MIT" ]
null
null
null
uva/00927.cc
algoriddle/cp
9596654f921c9da0710e2743b235bd76d938a62c
[ "MIT" ]
null
null
null
uva/00927.cc
algoriddle/cp
9596654f921c9da0710e2743b235bd76d938a62c
[ "MIT" ]
null
null
null
#include <iostream> #include <cmath> #include <vector> typedef unsigned long long ull; using namespace std; int main() { ios::sync_with_stdio(false); int C; cin >> C; while (C--) { int t; double d, k; cin >> t; vector<ull> c(t + 1); for (int i = 0; i <= t; ++i) { cin >> c[i]; } ...
17.46875
79
0.440072
[ "vector" ]
0aeff9625e0932c57bb12d04167deda6d27dc9e2
4,023
cpp
C++
packages/monte_carlo/collision/neutron/test/tstNeutronAbsorptionReaction.cpp
bam241/FRENSIE
e1760cd792928699c84f2bdce70ff54228e88094
[ "BSD-3-Clause" ]
10
2019-11-14T19:58:30.000Z
2021-04-04T17:44:09.000Z
packages/monte_carlo/collision/neutron/test/tstNeutronAbsorptionReaction.cpp
bam241/FRENSIE
e1760cd792928699c84f2bdce70ff54228e88094
[ "BSD-3-Clause" ]
43
2020-03-03T19:59:20.000Z
2021-09-08T03:36:08.000Z
packages/monte_carlo/collision/neutron/test/tstNeutronAbsorptionReaction.cpp
bam241/FRENSIE
e1760cd792928699c84f2bdce70ff54228e88094
[ "BSD-3-Clause" ]
6
2020-02-12T17:37:07.000Z
2020-09-08T18:59:51.000Z
//---------------------------------------------------------------------------// //! //! \file tstNeutronAbsorptionReaction.cpp //! \author Alex Robinson //! \brief Nuclear reaction unit tests. //! //---------------------------------------------------------------------------// // Std Lib Includes #include <iostream>...
36.572727
88
0.512553
[ "vector" ]
0af89b723cf1e73b94d3346c3c58764b7d27f458
2,669
cpp
C++
mqtt_service.cpp
markondej/mqtt_service
01ed25448c4d3762f3d4518cd90d87af2eba3275
[ "BSD-3-Clause" ]
null
null
null
mqtt_service.cpp
markondej/mqtt_service
01ed25448c4d3762f3d4518cd90d87af2eba3275
[ "BSD-3-Clause" ]
null
null
null
mqtt_service.cpp
markondej/mqtt_service
01ed25448c4d3762f3d4518cd90d87af2eba3275
[ "BSD-3-Clause" ]
null
null
null
#include "mqtt/service.hpp" #ifdef _WIN32 #include "console_window.hpp" using Console = ConsoleWindow; #else #include "console.hpp" #include <csignal> #endif #include <cstring> #ifndef _WIN32 #define CONSOLE_NOP_DELAY 500000 #endif mqtt::Service *service = nullptr; std::vector<uint8_t> GeneratePayload(const std::str...
23.208696
95
0.602848
[ "vector" ]
0afc447f6cf9efba6a1855893b66a68aa5ee1f1f
29,231
hpp
C++
sources/xrn/Ecs/Entity/Container.hpp
DiantArts/xrnEcs
821ad9504dc022972f499721a8f494ab78d4d2d8
[ "MIT" ]
null
null
null
sources/xrn/Ecs/Entity/Container.hpp
DiantArts/xrnEcs
821ad9504dc022972f499721a8f494ab78d4d2d8
[ "MIT" ]
13
2022-03-18T00:36:09.000Z
2022-03-28T14:14:26.000Z
sources/xrn/Ecs/Entity/Container.hpp
DiantArts/xrnEcs
821ad9504dc022972f499721a8f494ab78d4d2d8
[ "MIT" ]
null
null
null
#pragma once /////////////////////////////////////////////////////////////////////////// // Headers /////////////////////////////////////////////////////////////////////////// #include <xrn/Ecs/Component/Container.hpp> #include <xrn/Ecs/Entity/Entity.hpp> #include <xrn/Ecs/Entity/Reference.hpp> namespace xrn::ecs::...
41.286723
99
0.386131
[ "vector" ]
e400ec52652b651971514011de2069961f933d75
29,162
cpp
C++
VSTGL/VSTGLEditor.cpp
vinz9/vstvisframework
0c4e1508d313c8deb588def77aa1a23f131c9333
[ "MIT" ]
14
2015-10-03T00:29:55.000Z
2020-06-13T00:49:33.000Z
VSTGL/VSTGLEditor.cpp
vinz9/vstvisframework
0c4e1508d313c8deb588def77aa1a23f131c9333
[ "MIT" ]
null
null
null
VSTGL/VSTGLEditor.cpp
vinz9/vstvisframework
0c4e1508d313c8deb588def77aa1a23f131c9333
[ "MIT" ]
null
null
null
// VSTGLEditor.cpp - Editor window for a VST plugin using OpenGL to handle // all the drawing. // -------------------------------------------------------------------------- // Copyright (c) 2005-2006 Niall Moody // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software...
27.694207
172
0.633427
[ "object" ]
e407298d187ecc1e69deb41fcdcbe6f71ea693a8
7,787
cpp
C++
DiveIntoC++11/2_Arkanoid/p2.cpp
raptoravis/Tutorials
d2362c7688201a50ba2de5515897aeca012ce929
[ "AFL-3.0" ]
null
null
null
DiveIntoC++11/2_Arkanoid/p2.cpp
raptoravis/Tutorials
d2362c7688201a50ba2de5515897aeca012ce929
[ "AFL-3.0" ]
null
null
null
DiveIntoC++11/2_Arkanoid/p2.cpp
raptoravis/Tutorials
d2362c7688201a50ba2de5515897aeca012ce929
[ "AFL-3.0" ]
null
null
null
// Copyright (c) 2013-2015 Vittorio Romeo // License: Academic Free License ("AFL") v. 3.0 // AFL License page: http://opensource.org/licenses/AFL-3.0 #include <cmath> #include <chrono> #include <SFML/Graphics.hpp> using namespace std; using namespace sf; // This is a modern C++11 `typedef` replacement: // we just d...
31.783673
80
0.615898
[ "object", "shape", "vector" ]
e407b37b34ed49a3654ff76bedf6769461b5457f
605
hpp
C++
include/med/ThreadManager.hpp
OmniNegro123/med
48b00bfb9319f735a2406ff2efe7253c46007236
[ "BSD-3-Clause" ]
37
2015-10-05T17:44:20.000Z
2022-03-24T02:55:04.000Z
include/med/ThreadManager.hpp
OmniNegro123/med
48b00bfb9319f735a2406ff2efe7253c46007236
[ "BSD-3-Clause" ]
6
2017-04-01T02:26:22.000Z
2022-02-19T07:46:29.000Z
include/med/ThreadManager.hpp
OmniNegro123/med
48b00bfb9319f735a2406ff2efe7253c46007236
[ "BSD-3-Clause" ]
4
2020-07-23T17:27:36.000Z
2021-12-25T20:29:56.000Z
#ifndef THREAD_MANAGER #define THREAD_MANAGER #include <functional> #include <vector> #include <future> #include <condition_variable> #include <mutex> typedef std::function<void()> TMTask; class ThreadManager { public: explicit ThreadManager(int maxThread = 4); virtual ~ThreadManager(); void queueTask(TMTask*...
16.805556
44
0.728926
[ "vector" ]
e409c512379e174b4b6de64b8ba5037a16aa0845
3,053
cpp
C++
infra/kafka/Producer.cpp
danielcompton/smyte-db
34129e0184408086cde6fe9694d9a7d7ca9c2016
[ "Apache-2.0" ]
47
2016-12-18T21:50:28.000Z
2022-02-25T06:00:19.000Z
infra/kafka/Producer.cpp
danielcompton/smyte-db
34129e0184408086cde6fe9694d9a7d7ca9c2016
[ "Apache-2.0" ]
4
2017-08-14T20:39:53.000Z
2020-11-28T20:14:53.000Z
infra/kafka/Producer.cpp
danielcompton/smyte-db
34129e0184408086cde6fe9694d9a7d7ca9c2016
[ "Apache-2.0" ]
20
2017-01-02T13:39:09.000Z
2021-12-04T00:42:17.000Z
#include "infra/kafka/Producer.h" #include <memory> #include <string> #include "glog/logging.h" #include "infra/kafka/EventCallback.h" #include "librdkafka/rdkafkacpp.h" namespace infra { namespace kafka { void Producer::initialize() { setConf("metadata.broker.list", brokerList_); // disable verbose logging s...
36.783133
109
0.663282
[ "object" ]
e411b1187e1e73b0870b44e5bd1dbc465229fd09
4,473
cc
C++
ui/base/clipboard/custom_data_helper_unittest.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
ui/base/clipboard/custom_data_helper_unittest.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
ui/base/clipboard/custom_data_helper_unittest.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/base/clipboard/custom_data_helper.h" #include <utility> #include "base/pickle.h" #include "base/strings/utf_string_conversions.h" #incl...
30.222973
80
0.71831
[ "vector" ]
e414865e344842c6f84a244e4b3a52d212e0b7cc
5,271
hpp
C++
include/caffe/training_utils.hpp
ayzk/ft-caffe-public
888399c2fcf90c227416576a5a265b218c6be5da
[ "BSD-2-Clause" ]
933
2016-08-29T14:29:20.000Z
2022-03-20T09:03:49.000Z
include/caffe/training_utils.hpp
ayzk/ft-caffe-public
888399c2fcf90c227416576a5a265b218c6be5da
[ "BSD-2-Clause" ]
286
2016-08-30T01:33:01.000Z
2021-08-22T08:34:19.000Z
include/caffe/training_utils.hpp
ayzk/ft-caffe-public
888399c2fcf90c227416576a5a265b218c6be5da
[ "BSD-2-Clause" ]
611
2016-08-30T07:22:04.000Z
2021-12-18T11:53:08.000Z
/* All modification made by Intel Corporation: © 2016 Intel Corporation All contributions by the University of California: Copyright (c) 2014, 2015, The Regents of the University of California (Regents) All rights reserved. All other contributions: Copyright (c) 2014, 2015, the respective contributors All rights rese...
37.119718
92
0.728894
[ "vector" ]
e41f44d3144de14b6cfbbeeb10fc164a4b6b1f49
1,656
cpp
C++
LeetCode/Problems/Algorithms/#1349_MaximumStudentsTakingExam_sol1_backtracking_O(2^(RC))_time_O(RC)_extra_space_TLE.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
1
2022-01-26T14:50:07.000Z
2022-01-26T14:50:07.000Z
LeetCode/Problems/Algorithms/#1349_MaximumStudentsTakingExam_sol1_backtracking_O(2^(RC))_time_O(RC)_extra_space_TLE.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
null
null
null
LeetCode/Problems/Algorithms/#1349_MaximumStudentsTakingExam_sol1_backtracking_O(2^(RC))_time_O(RC)_extra_space_TLE.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
null
null
null
class Solution { private: static const char BROKEN_SEAT = '#'; static const char PERSON = 'p'; const vector<pair<int, int>> DIRECTIONS = {{-1, -1}, {0, -1}, {0, 1}, {-1, 1}}; bool isValid(int row, int col, const int& ROWS, const int& COLS, vector<vector<char>>& seats){ for(const pair...
36.8
99
0.500604
[ "vector" ]
e4215fbed0c07c0fef05de358cb4ef239a14b198
4,736
cpp
C++
topcoder/srm/src/SRM611/LCMSetEasy.cpp
Johniel/contests
b692eff913c20e2c1eb4ff0ce3cd4c57900594e0
[ "Unlicense" ]
null
null
null
topcoder/srm/src/SRM611/LCMSetEasy.cpp
Johniel/contests
b692eff913c20e2c1eb4ff0ce3cd4c57900594e0
[ "Unlicense" ]
19
2016-05-04T02:46:31.000Z
2021-11-27T06:18:33.000Z
topcoder/srm/src/SRM611/LCMSetEasy.cpp
Johniel/contests
b692eff913c20e2c1eb4ff0ce3cd4c57900594e0
[ "Unlicense" ]
null
null
null
#include <algorithm> #include <complex> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> #include <cassert> #include <climits> #inclu...
34.823529
364
0.545608
[ "vector" ]
e42e9b71f4195bc07dd8aafae5c0e5024efcf603
21,769
cc
C++
elements/ctx/ctxmanager.cc
regufo/fastclick
d56d31c722266ea5d0cfd31435e81ca10dda5e69
[ "BSD-3-Clause-Clear" ]
null
null
null
elements/ctx/ctxmanager.cc
regufo/fastclick
d56d31c722266ea5d0cfd31435e81ca10dda5e69
[ "BSD-3-Clause-Clear" ]
null
null
null
elements/ctx/ctxmanager.cc
regufo/fastclick
d56d31c722266ea5d0cfd31435e81ca10dda5e69
[ "BSD-3-Clause-Clear" ]
null
null
null
/* * ctxmanager.{cc,hh} Context/Flow Manager */ #include <click/config.h> #include <click/glue.hh> #include <click/args.hh> #include <click/routervisitor.hh> #include "ctxmanager.hh" #include "ctxdispatcher.hh" #include <click/idletask.hh> #include <click/hashtable.hh> #include <algorithm> #include <set> #include <c...
32.834087
246
0.60701
[ "vector" ]
e42fb743a38ef23118c8d8c8264e304899b7742d
16,531
hpp
C++
include/RAJA/pattern/forall.hpp
jonesholger/RAJA
e1f3de7f71637383665379c97802481bfce9318f
[ "BSD-3-Clause" ]
1
2020-04-28T20:35:12.000Z
2020-04-28T20:35:12.000Z
include/RAJA/pattern/forall.hpp
jonesholger/RAJA
e1f3de7f71637383665379c97802481bfce9318f
[ "BSD-3-Clause" ]
null
null
null
include/RAJA/pattern/forall.hpp
jonesholger/RAJA
e1f3de7f71637383665379c97802481bfce9318f
[ "BSD-3-Clause" ]
1
2020-06-07T13:26:40.000Z
2020-06-07T13:26:40.000Z
/*! ****************************************************************************** * * \file * * \brief Header file containing RAJA index set and segment iteration * template methods that take an execution policy as a template * parameter. * * The templates for segments support the...
32.036822
80
0.582723
[ "model" ]
e4393f7d67584fe0ed6ba2a435358f73917c7e11
69,512
cpp
C++
src/game/etpro_mdx.cpp
jumptohistory/jaymod
92d0a0334ac27da94b12280b0b42b615b8813c23
[ "Apache-2.0" ]
25
2016-05-27T11:53:58.000Z
2021-10-17T00:13:41.000Z
src/game/etpro_mdx.cpp
jumptohistory/jaymod
92d0a0334ac27da94b12280b0b42b615b8813c23
[ "Apache-2.0" ]
1
2016-07-09T05:25:03.000Z
2016-07-09T05:25:03.000Z
src/game/etpro_mdx.cpp
jumptohistory/jaymod
92d0a0334ac27da94b12280b0b42b615b8813c23
[ "Apache-2.0" ]
16
2016-05-28T23:06:50.000Z
2022-01-26T13:47:12.000Z
/* Copyright (C) 2003-2005 Christopher Lais (aka "Zinx Verituse") and is covered by the following license: *** This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted ...
29.60477
253
0.668618
[ "mesh", "vector", "model" ]
e446d8a5bd1d6cd07433b4ec72d3fb7fe316a5e1
1,386
cpp
C++
Days 251 - 260/Day 252/ReexpressFraction.cpp
LucidSigma/Daily-Coding-Problems
21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a
[ "MIT" ]
null
null
null
Days 251 - 260/Day 252/ReexpressFraction.cpp
LucidSigma/Daily-Coding-Problems
21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a
[ "MIT" ]
null
null
null
Days 251 - 260/Day 252/ReexpressFraction.cpp
LucidSigma/Daily-Coding-Problems
21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a
[ "MIT" ]
null
null
null
#include <cstdlib> #include <iostream> #include <limits> #include <stdexcept> #include <utility> #include <vector> using Fraction = std::pair<unsigned int, unsigned int>; std::vector<Fraction> ReexpressFraction(const Fraction& fraction) { const auto [a, b] = fraction; if (a >= b) { throw std::invalid_argument("...
21.65625
90
0.703463
[ "vector" ]
e44de84a413bbe12b45981b765802eb459063cda
1,324
cpp
C++
leetcode/sum-of-root-to-leaf-binary-numbers/solution.cpp
kpagacz/spoj
8bff809c6c5227a6e85e9b12f808dd921f24e587
[ "MIT" ]
1
2021-12-06T16:01:55.000Z
2021-12-06T16:01:55.000Z
leetcode/sum-of-root-to-leaf-binary-numbers/solution.cpp
kpagacz/comp-programming
15482d762ede4d3b7f8ff45a193f6e6bcd85672a
[ "MIT" ]
null
null
null
leetcode/sum-of-root-to-leaf-binary-numbers/solution.cpp
kpagacz/comp-programming
15482d762ede4d3b7f8ff45a193f6e6bcd85672a
[ "MIT" ]
null
null
null
// link to the problem:https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/ #include <algorithm> #include <array> #include <iostream> #include <iterator> #include <numeric> #include <queue> #include <sstream> #include <stdexcept> #include <string> #include <vector> // Definition for a binary tree node. st...
28.782609
101
0.664653
[ "vector" ]
e44eb2984d2509edbf756fefb539115518bf3358
819
cpp
C++
samples/KeywordSpotting/test/DecoderTest.cpp
Srivathsav-max/armnn-clone
af2daa6526623c91ee97f7141be4d1b07de92a48
[ "MIT" ]
1
2022-03-31T18:21:59.000Z
2022-03-31T18:21:59.000Z
samples/KeywordSpotting/test/DecoderTest.cpp
Elm8116/armnn
e571cde8411803aec545b1070ed677e481f46f3f
[ "MIT" ]
null
null
null
samples/KeywordSpotting/test/DecoderTest.cpp
Elm8116/armnn
e571cde8411803aec545b1070ed677e481f46f3f
[ "MIT" ]
null
null
null
// // Copyright © 2021 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // #include <catch.hpp> #include <map> #include "Decoder.hpp" TEST_CASE("Test KWS decoder") { // Actual output probability: [0.0, 0.06, 0.02, 0.03, 0.0, 0.0, 0.05, 0.0, 0.83, 0.0, 0.1, 0.0] // int8 quantised M...
28.241379
110
0.625153
[ "vector", "model" ]
e45166fc5d6ced3a733cfe29d969e994c2466692
1,049
cpp
C++
Codeforces/1141F/greedy_prefix_array.cpp
codgician/ACM
391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4
[ "MIT" ]
2
2019-07-28T11:26:01.000Z
2021-06-29T09:50:08.000Z
Codeforces/1141F/greedy_prefix_array.cpp
codgician/ACM
391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4
[ "MIT" ]
null
null
null
Codeforces/1141F/greedy_prefix_array.cpp
codgician/ACM
391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4
[ "MIT" ]
2
2017-12-30T02:46:35.000Z
2018-03-28T03:30:49.000Z
#include <bits/stdc++.h> using namespace std; #define SIZE 1510 int pfx[SIZE]; map<int, vector<pair<int, int> > > mp; vector<pair<int, int> > ans, cnt; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int len; cin >> len; pfx[0] = 0; for (int i = 1; i <= len; i++) { ...
22.319149
71
0.452812
[ "vector" ]
e451bccf9c29f8730a77445ca93f0efa6a76161f
11,562
hpp
C++
test/matrix_vector/MemoryBase.hpp
spraetor/amdis2
53c45c81a65752a8fafbb54f9ae6724a86639dcd
[ "MIT" ]
2
2018-07-04T16:44:04.000Z
2021-01-03T07:26:27.000Z
test/matrix_vector/MemoryBase.hpp
spraetor/amdis2
53c45c81a65752a8fafbb54f9ae6724a86639dcd
[ "MIT" ]
null
null
null
test/matrix_vector/MemoryBase.hpp
spraetor/amdis2
53c45c81a65752a8fafbb54f9ae6724a86639dcd
[ "MIT" ]
null
null
null
#pragma once // AMDiS headers #include "Config.hpp" #include "Log.hpp" // TEST_EXIT_DBG #include "operations/generic_loops.hpp" // meta::FOR #include "utility/aligned_alloc.hpp" // ALIGNED_ALLOC, ALIGNED_FREE, ... namespace AMDiS { /// Memory base for vector types using static storage /** The template parameter...
27.140845
90
0.600415
[ "vector" ]
e45292a8b92c902a690778a78cee41206f82b531
364
cpp
C++
Protein_search_engine.cpp
duming/Protein-3D-Search
a12af1bc47d77906a70b124a5c71d6dd15635c03
[ "MIT" ]
null
null
null
Protein_search_engine.cpp
duming/Protein-3D-Search
a12af1bc47d77906a70b124a5c71d6dd15635c03
[ "MIT" ]
null
null
null
Protein_search_engine.cpp
duming/Protein-3D-Search
a12af1bc47d77906a70b124a5c71d6dd15635c03
[ "MIT" ]
null
null
null
#include "Protein_search_engine.hpp" /* void Index_query::desQuery(std::vector<std::pair<float, unsigned> > & result, INDEX_DATA_TYPE *query) { scanner->reset(query); lshIndex.query(query, *scanner); lshbox::Topk & tpk = scanner->topk(); //tpk.genTopk(); std::vector<std::pair<float, unsigned> > & t...
28
101
0.653846
[ "vector" ]
e455ae9d4450773de5e1d87e178376b20b9877ad
663
cpp
C++
application/source/Ass1/PointLightNode.cpp
jacoblammert/CGLab_Bu-mann120117_Lammert121796
cd958a3b00e24bb7986fbb5493127a54bc1a88d2
[ "MIT" ]
1
2021-12-12T12:43:53.000Z
2021-12-12T12:43:53.000Z
application/source/Ass1/PointLightNode.cpp
jacoblammert/CGLab_Bu-mann120117_Lammert121796
cd958a3b00e24bb7986fbb5493127a54bc1a88d2
[ "MIT" ]
null
null
null
application/source/Ass1/PointLightNode.cpp
jacoblammert/CGLab_Bu-mann120117_Lammert121796
cd958a3b00e24bb7986fbb5493127a54bc1a88d2
[ "MIT" ]
null
null
null
// // Created by Jacob on 03.11.2021. // #include "PointLightNode.h" #include <utility> /** * * @return color as vector with 3 values * glm:vector? */ std::vector<float> PointLightNode::getColor() { return lightColor_; } /** * set the values of the color for the light * @param color */ void PointLightNod...
16.170732
57
0.675716
[ "vector" ]
e4571f86706581f8355c5693c8bfb4e9066800b7
9,496
cpp
C++
src/xrGame/alife_trader_abstract.cpp
clayne/xray-16
32ebf81a252c7179e2824b2874f911a91e822ad1
[ "OML", "Linux-OpenIB" ]
2
2015-02-23T10:43:02.000Z
2015-06-11T14:45:08.000Z
src/xrGame/alife_trader_abstract.cpp
clayne/xray-16
32ebf81a252c7179e2824b2874f911a91e822ad1
[ "OML", "Linux-OpenIB" ]
17
2022-01-25T08:58:23.000Z
2022-03-28T17:18:28.000Z
src/xrGame/alife_trader_abstract.cpp
clayne/xray-16
32ebf81a252c7179e2824b2874f911a91e822ad1
[ "OML", "Linux-OpenIB" ]
1
2015-06-05T20:04:00.000Z
2015-06-05T20:04:00.000Z
//////////////////////////////////////////////////////////////////////////// // Module : alife_trader_abstract.cpp // Created : 27.10.2005 // Modified : 27.10.2005 // Author : Dmitriy Iassenev // Description : ALife trader abstract class ////////////////////////////////////////////////////////////////////////////...
35.301115
139
0.665859
[ "object" ]
e4639af4cfe4f7b5331a7e5ccf7ca0209398229f
1,705
hpp
C++
data.hpp
altosaar/gmm_cpp
e418387f4c7e5d841034f33f2cad68386311fba5
[ "MIT" ]
2
2017-10-21T17:04:25.000Z
2018-07-16T02:03:19.000Z
data.hpp
altosaar/gmm_cpp
e418387f4c7e5d841034f33f2cad68386311fba5
[ "MIT" ]
null
null
null
data.hpp
altosaar/gmm_cpp
e418387f4c7e5d841034f33f2cad68386311fba5
[ "MIT" ]
3
2018-07-05T21:16:55.000Z
2021-01-30T17:12:33.000Z
#pragma once #include "utils.hpp" // a general data base class class Data { public: // sp_mat || mat virtual string get_data_type() = 0; virtual shared_ptr<arma::sp_mat> get_sp_mat() { throw runtime_error("get_sp_mat() not implemented in Data"); return NULL; } virtual shared_ptr<arma::mat> get_mat()...
27.063492
78
0.672141
[ "transform" ]
e47066d65db2b9747fd3fb636504e647949d1c00
5,807
cc
C++
Dragon/src/operators/loss/softmax_focal_loss_op.cc
awesome-archive/Dragon
b35f9320909d07d138c2f6b345a4c24911f7c521
[ "BSD-2-Clause" ]
null
null
null
Dragon/src/operators/loss/softmax_focal_loss_op.cc
awesome-archive/Dragon
b35f9320909d07d138c2f6b345a4c24911f7c521
[ "BSD-2-Clause" ]
null
null
null
Dragon/src/operators/loss/softmax_focal_loss_op.cc
awesome-archive/Dragon
b35f9320909d07d138c2f6b345a4c24911f7c521
[ "BSD-2-Clause" ]
null
null
null
#include "core/workspace.h" #include "utils/op_kernel.h" #include "utils/math_functions.h" #include "utils/proto_utils.h" #include "operators/loss/softmax_focal_loss_op.h" namespace dragon { #define DETERMINE_RUNTIME_ARGUMENTS(X) \ axis = OperatorBase::Arg<int64_t>("axis", 1); \ axis = axis < 0 ? axis + X.ndi...
34.565476
75
0.623386
[ "vector" ]
e4747fec5887a373d294e1063d2804dff0d1b1e3
3,177
hpp
C++
src/dss_cell_group.hpp
kabicm/arbor
cfab5fd6a2e6a211c097659c96dcc098ee806e68
[ "BSD-3-Clause" ]
null
null
null
src/dss_cell_group.hpp
kabicm/arbor
cfab5fd6a2e6a211c097659c96dcc098ee806e68
[ "BSD-3-Clause" ]
null
null
null
src/dss_cell_group.hpp
kabicm/arbor
cfab5fd6a2e6a211c097659c96dcc098ee806e68
[ "BSD-3-Clause" ]
null
null
null
#pragma once #include <cell_group.hpp> #include <dss_cell_description.hpp> #include <recipe.hpp> #include <util/span.hpp> #include <util/unique_any.hpp> namespace arb { /// Cell_group to collect spike sources class dss_cell_group: public cell_group { public: dss_cell_group(std::vector<cell_gid_type> gids, const ...
31.77
155
0.636764
[ "vector" ]
e4781001859b82589f6bea8cd0eff0dbf4607d38
6,306
cpp
C++
branches/g3d-8.0-64ffmpeg-win/scratch-morgan/App.cpp
brown-ccv/VRG3D
0854348453ac150b27a8ae89024ef57360f15d45
[ "BSD-3-Clause" ]
null
null
null
branches/g3d-8.0-64ffmpeg-win/scratch-morgan/App.cpp
brown-ccv/VRG3D
0854348453ac150b27a8ae89024ef57360f15d45
[ "BSD-3-Clause" ]
null
null
null
branches/g3d-8.0-64ffmpeg-win/scratch-morgan/App.cpp
brown-ccv/VRG3D
0854348453ac150b27a8ae89024ef57360f15d45
[ "BSD-3-Clause" ]
null
null
null
/** \file App.cpp */ #include "App.h" // Tells C++ to invoke command-line main() function even on OS X and Win32. G3D_START_AT_MAIN(); int main(int argc, char** argv) { (void)argc; (void)argv; GApp::Settings settings; // Change the window and other startup parameters by modifying the // settings ...
34.459016
180
0.652395
[ "render" ]
e47876c09e556bb015e592befaefbc5da0ee38db
17,679
hpp
C++
fc_malloc/fc_heap.hpp
r-lyeh/malloc-survey
6da5aca6aa2720d64bff709c111a5d8a5fa7a1be
[ "Zlib" ]
16
2015-06-26T20:58:23.000Z
2017-11-05T09:46:45.000Z
fc_malloc/fc_heap.hpp
r-lyeh/test-allocators
6da5aca6aa2720d64bff709c111a5d8a5fa7a1be
[ "Zlib" ]
1
2015-07-22T22:48:56.000Z
2015-07-22T22:48:56.000Z
fc_malloc/fc_heap.hpp
r-lyeh/test-allocators
6da5aca6aa2720d64bff709c111a5d8a5fa7a1be
[ "Zlib" ]
2
2015-09-26T17:40:20.000Z
2016-06-23T17:15:23.000Z
#pragma once #include "mmap_alloc.hpp" #include <iostream> #include <sstream> #include <assert.h> #include <string.h> #include <vector> #include <unordered_set> #define CHECK_SIZE( x ) assert(((x) != 0) && !((x) & ((x) - 1))) #define PAGE_SIZE (2*1024*1024) #define LOG2(X) ((unsigned) (8*sizeof (unsigned long long) -...
25.547688
107
0.491883
[ "vector" ]
e4796106908158d0f4fc4bfd7257c0f59f834165
1,301
cpp
C++
654. Maximum Binary Tree/main.cpp
shenzheyu/LeetCode
08478996f9c41a526ea8560233b4e91ed04c9682
[ "MIT" ]
6
2018-04-20T14:43:06.000Z
2021-01-17T21:51:22.000Z
654. Maximum Binary Tree/main.cpp
shenzheyu/LeetCode
08478996f9c41a526ea8560233b4e91ed04c9682
[ "MIT" ]
1
2018-04-29T13:10:02.000Z
2018-04-29T14:47:44.000Z
654. Maximum Binary Tree/main.cpp
shenzheyu/LeetCode
08478996f9c41a526ea8560233b4e91ed04c9682
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using namespace std; struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode() : val(0), left(nullptr), right(nullptr) {} TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), lef...
24.54717
90
0.539585
[ "vector" ]
e47c7748bb6fb2a0f39ce4183a1ebd990354bfc6
5,319
cpp
C++
GUIWidgets/BasicStreamEditor/DistrFunctionDialog.cpp
FlowsheetSimulation/Dyssol-open
557d57d959800868e1b3fd161b26cad16481382b
[ "BSD-3-Clause" ]
7
2020-12-02T02:54:31.000Z
2022-03-08T20:37:46.000Z
GUIWidgets/BasicStreamEditor/DistrFunctionDialog.cpp
FlowsheetSimulation/Dyssol-open
557d57d959800868e1b3fd161b26cad16481382b
[ "BSD-3-Clause" ]
33
2021-03-26T12:20:18.000Z
2022-02-23T11:37:56.000Z
GUIWidgets/BasicStreamEditor/DistrFunctionDialog.cpp
FlowsheetSimulation/Dyssol-open
557d57d959800868e1b3fd161b26cad16481382b
[ "BSD-3-Clause" ]
6
2020-07-17T08:17:37.000Z
2022-02-24T13:45:16.000Z
/* Copyright (c) 2020, Dyssol Development Team. All rights reserved. This file is part of Dyssol. See LICENSE file for license information. */ #include "DistrFunctionDialog.h" #include "DyssolUtilities.h" #include "DyssolStringConstants.h" #include <QMessageBox> #include "MultidimensionalGrid.h" CDistrFunctionDialog...
32.631902
176
0.772138
[ "vector" ]
e47cfee9fa69bcb849b9a4c36147d0c0223718d2
1,700
cpp
C++
Samples/Tests/Shapes/CapsuleShapeTest.cpp
All8Up/JoltPhysics
751d13891f5bd8850863ad236eaa3c340e90de9a
[ "MIT" ]
1,311
2021-08-16T07:37:05.000Z
2022-03-31T21:13:39.000Z
Samples/Tests/Shapes/CapsuleShapeTest.cpp
All8Up/JoltPhysics
751d13891f5bd8850863ad236eaa3c340e90de9a
[ "MIT" ]
102
2021-08-28T14:41:32.000Z
2022-03-31T20:25:55.000Z
Samples/Tests/Shapes/CapsuleShapeTest.cpp
All8Up/JoltPhysics
751d13891f5bd8850863ad236eaa3c340e90de9a
[ "MIT" ]
65
2021-08-16T07:59:04.000Z
2022-03-28T06:18:49.000Z
// SPDX-FileCopyrightText: 2021 Jorrit Rouwe // SPDX-License-Identifier: MIT #include <TestFramework.h> #include <Tests/Shapes/CapsuleShapeTest.h> #include <Physics/Collision/Shape/CapsuleShape.h> #include <Physics/Body/BodyCreationSettings.h> #include <Layers.h> JPH_IMPLEMENT_RTTI_VIRTUAL(CapsuleShapeTest) { JPH...
31.481481
181
0.692941
[ "shape" ]
6b0583fcb8f1151271ae1bbb965c485bbe605608
3,490
cc
C++
google/cloud/resourcemanager/projects_connection_idempotency_policy.cc
joezqren/google-cloud-cpp
325d312b0a21569f3c57515aec7d91f3540d3b48
[ "Apache-2.0" ]
null
null
null
google/cloud/resourcemanager/projects_connection_idempotency_policy.cc
joezqren/google-cloud-cpp
325d312b0a21569f3c57515aec7d91f3540d3b48
[ "Apache-2.0" ]
null
null
null
google/cloud/resourcemanager/projects_connection_idempotency_policy.cc
joezqren/google-cloud-cpp
325d312b0a21569f3c57515aec7d91f3540d3b48
[ "Apache-2.0" ]
null
null
null
// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
30.614035
80
0.758166
[ "object" ]
6b08c6843f85631a9d0a790b0eaa8bca68b90487
3,329
cpp
C++
src/core/coloring_algorithms/LubyColoringAlgorithm.cpp
mrgalopes/sdp_project_q1
6d79891ff50eef31158fe1eea3f27d92b60810bf
[ "BSL-1.0" ]
null
null
null
src/core/coloring_algorithms/LubyColoringAlgorithm.cpp
mrgalopes/sdp_project_q1
6d79891ff50eef31158fe1eea3f27d92b60810bf
[ "BSL-1.0" ]
null
null
null
src/core/coloring_algorithms/LubyColoringAlgorithm.cpp
mrgalopes/sdp_project_q1
6d79891ff50eef31158fe1eea3f27d92b60810bf
[ "BSL-1.0" ]
null
null
null
#include <chrono> #include <functional> #include <memory> #include <mutex> #include <numeric> #include <random> #include <thread> #include <unordered_set> #include "LubyColoringAlgorithm.h" namespace { std::mutex mtx; void independentSetWorker(const std::vector<Vertex>& vertices, const std::unordered_set<int>& A, ...
32.960396
100
0.544608
[ "vector" ]
6b09306b184428d758ee7d5a8059ed0e0adacb4a
518
cpp
C++
C++/tests/problems/0149_count_servers_communicate_test.cpp
oxone-999/algorithms
52dc527111e7422923a0e25684d8f4837e81a09b
[ "MIT" ]
6
2019-03-20T22:23:26.000Z
2020-08-28T03:10:27.000Z
C++/tests/problems/0149_count_servers_communicate_test.cpp
oxone-999/algorithms
52dc527111e7422923a0e25684d8f4837e81a09b
[ "MIT" ]
15
2019-10-13T20:53:53.000Z
2022-03-31T02:01:35.000Z
C++/tests/problems/0149_count_servers_communicate_test.cpp
oxone-999/algorithms
52dc527111e7422923a0e25684d8f4837e81a09b
[ "MIT" ]
3
2019-03-11T10:57:46.000Z
2020-02-26T21:13:21.000Z
#include "../../problems/0149_count_servers_communicate.hpp" #include <bits/stdc++.h> #include "../../frameworks/catch.hpp" using namespace std; TEST_CASE( "Count Servers that Communicate" ) { Solution sol; vector<vector<int>> grid1 = {{1,0},{0,1}}; vector<vector<int>> grid2 = {{1,1},{0,1}}; vector<ve...
34.533333
74
0.619691
[ "vector" ]
6b0f6e3c7e31340f7d6bc28df3342b840fc0f390
689
hpp
C++
src/imgtogb/Tilemap.hpp
SimonLarsen/imgtogb
2a5c7d4925677b9959cb06f72f893db067996142
[ "MIT" ]
5
2017-02-07T11:48:03.000Z
2019-02-21T18:07:37.000Z
src/imgtogb/Tilemap.hpp
SimonLarsen/imgtogb
2a5c7d4925677b9959cb06f72f893db067996142
[ "MIT" ]
1
2015-07-20T15:40:46.000Z
2015-07-20T15:40:46.000Z
src/imgtogb/Tilemap.hpp
SimonLarsen/imgtogb
2a5c7d4925677b9959cb06f72f893db067996142
[ "MIT" ]
null
null
null
#ifndef IMGTOGB_TILEMAP_HPP #define IMGTOGB_TILEMAP_HPP #include <map> #include <ostream> #include <string> #include <boost/numeric/ublas/matrix.hpp> #include <imgtogb/Image.hpp> #include <imgtogb/Tile.hpp> namespace imgtogb { class Tilemap { public: Tilemap(const Image &img, int offset); size_t getTilesX()...
21.53125
59
0.71553
[ "vector" ]
6b0ff32a5a8b6809df361c76ff2d58ec4c2dfc37
6,097
hpp
C++
algorithms/Krylov/iter_solver_op_CombBLAS.hpp
wangg12/libskylark
e8836190be854d0284d38772c48e110b3c6d5e51
[ "Apache-2.0" ]
86
2015-01-20T03:12:46.000Z
2022-01-10T04:05:21.000Z
algorithms/Krylov/iter_solver_op_CombBLAS.hpp
cjiyer/libskylark
e8836190be854d0284d38772c48e110b3c6d5e51
[ "Apache-2.0" ]
48
2015-05-12T09:31:23.000Z
2018-12-05T14:45:46.000Z
algorithms/Krylov/iter_solver_op_CombBLAS.hpp
cjiyer/libskylark
e8836190be854d0284d38772c48e110b3c6d5e51
[ "Apache-2.0" ]
25
2015-01-18T23:02:11.000Z
2021-06-12T07:30:35.000Z
#ifndef SKYLARK_ITER_SOLVER_OP_COMBBLAS_HPP #define SKYLARK_ITER_SOLVER_OP_COMBBLAS_HPP /***** ***** NOTE: THIS CLASS IS NOT USED ANYMORE! ***** It is kept until the useful code can be transfered ***** as functions in namespace base. *****/ #include <functional> #include <algorithm> #include <CombBLAS.h>...
34.252809
77
0.586846
[ "vector" ]
6b1757cdf418e2a41a9bdf3d923ba3af6c22593c
1,388
hpp
C++
master/master_handler.hpp
husky-team/PyHusky
ac3638101d9147890f9360bcfd18293f2ec1a9a3
[ "Apache-2.0" ]
9
2017-02-28T08:14:42.000Z
2019-07-16T19:20:12.000Z
master/master_handler.hpp
husky-team/PyHusky
ac3638101d9147890f9360bcfd18293f2ec1a9a3
[ "Apache-2.0" ]
13
2017-01-03T08:29:05.000Z
2017-06-05T11:03:57.000Z
master/master_handler.hpp
husky-team/PyHusky
ac3638101d9147890f9360bcfd18293f2ec1a9a3
[ "Apache-2.0" ]
6
2017-01-05T02:14:19.000Z
2020-01-22T04:07:17.000Z
// Copyright 2016 Husky Team // // 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 writi...
24.785714
99
0.721182
[ "vector" ]
6b19d5f3469faf229fb984bc71b641a279a4d033
164
cpp
C++
30_days_of_code/generics.cpp
williamfdevine/hackerrank
80045f708d84feafd9af9094c02ce5b08ba43797
[ "MIT" ]
null
null
null
30_days_of_code/generics.cpp
williamfdevine/hackerrank
80045f708d84feafd9af9094c02ce5b08ba43797
[ "MIT" ]
null
null
null
30_days_of_code/generics.cpp
williamfdevine/hackerrank
80045f708d84feafd9af9094c02ce5b08ba43797
[ "MIT" ]
null
null
null
/** @file generics.cpp */ template<class T> void printArray(std::vector<T> vec) { for(int i = 0; i < vec.size(); i++) { std::cout << vec[i] << std::endl; } }
13.666667
36
0.554878
[ "vector" ]
6b1e80fba78e6601cc361b107aca60088bc2c92a
3,982
cpp
C++
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/hardware/camera2/CameraCaptureSession.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
7
2017-07-13T10:34:54.000Z
2021-04-16T05:40:35.000Z
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/hardware/camera2/CameraCaptureSession.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
null
null
null
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/hardware/camera2/CameraCaptureSession.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
9
2017-07-13T12:33:20.000Z
2021-06-19T02:46:48.000Z
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // ...
30.630769
106
0.700402
[ "object" ]
6b2843fc7dd082c25cc724f3ec48cf9787ad527e
2,856
hpp
C++
cpp/oneapi/dal/algo/pca/common.hpp
YarShev/daal
9ca5d848176ab1c6b3493c805ddf745273e934ab
[ "Apache-2.0" ]
null
null
null
cpp/oneapi/dal/algo/pca/common.hpp
YarShev/daal
9ca5d848176ab1c6b3493c805ddf745273e934ab
[ "Apache-2.0" ]
null
null
null
cpp/oneapi/dal/algo/pca/common.hpp
YarShev/daal
9ca5d848176ab1c6b3493c805ddf745273e934ab
[ "Apache-2.0" ]
null
null
null
/******************************************************************************* * Copyright 2020 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
26.943396
80
0.677521
[ "model" ]
6b336e0c1f54d02da8ba3656b0d6d25e27d74ed9
8,923
hpp
C++
DemoFramework/FslSimpleUI/Base/include/FslSimpleUI/Base/Control/Experimental/Histogram.hpp
alexvonduar/gtec-demo-framework
6f8a7e429d0e15242ba64eb4cb41bfc2dd7dc749
[ "MIT", "BSD-3-Clause" ]
null
null
null
DemoFramework/FslSimpleUI/Base/include/FslSimpleUI/Base/Control/Experimental/Histogram.hpp
alexvonduar/gtec-demo-framework
6f8a7e429d0e15242ba64eb4cb41bfc2dd7dc749
[ "MIT", "BSD-3-Clause" ]
null
null
null
DemoFramework/FslSimpleUI/Base/include/FslSimpleUI/Base/Control/Experimental/Histogram.hpp
alexvonduar/gtec-demo-framework
6f8a7e429d0e15242ba64eb4cb41bfc2dd7dc749
[ "MIT", "BSD-3-Clause" ]
null
null
null
#ifndef FSLSIMPLEUI_BASE_CONTROL_EXPERIMENTAL_HISTOGRAM_HPP #define FSLSIMPLEUI_BASE_CONTROL_EXPERIMENTAL_HISTOGRAM_HPP /**************************************************************************************************************************************************** * Copyright 2020 NXP * All rights reserved. * ...
35.692
150
0.630057
[ "render", "vector" ]
6b34682007d7aa38a797b23ca8eefa60651e2ee8
2,043
cpp
C++
src/atom.cpp
robashaw/gamma
26fba31be640c9bc429f8c22d5c61c0f8e9215e6
[ "MIT" ]
8
2019-09-13T10:35:26.000Z
2022-03-26T13:20:54.000Z
src/atom.cpp
robashaw/gamma
26fba31be640c9bc429f8c22d5c61c0f8e9215e6
[ "MIT" ]
null
null
null
src/atom.cpp
robashaw/gamma
26fba31be640c9bc429f8c22d5c61c0f8e9215e6
[ "MIT" ]
null
null
null
/* * * PURPOSE: Implements atom.hpp, defining class Atom * * DATE AUTHOR CHANGES * ======================================================================= * 27/08/15 Robert Shaw Original code. * 05/09/15 Robert Shaw Added function to count number of cgbfs *...
21.28125
77
0.548213
[ "vector" ]
6b3ad412e7b00838f3b5bb296881452f94027d31
7,239
cc
C++
trt/src/tests/spdk_test.cc
nik-io/uDepot
06b94b7f2438b38b46572ede28072e24997e40c6
[ "BSD-3-Clause" ]
null
null
null
trt/src/tests/spdk_test.cc
nik-io/uDepot
06b94b7f2438b38b46572ede28072e24997e40c6
[ "BSD-3-Clause" ]
null
null
null
trt/src/tests/spdk_test.cc
nik-io/uDepot
06b94b7f2438b38b46572ede28072e24997e40c6
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2020 International Business Machines * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * * Authors: Kornilios Kourtis (kou@zurich.ibm.com, kornilios@gmail.com) * */ // vim: set expandtab softtabstop=4 tabstop:4 shiftwidth:4: // A test for "test_util/spdk.hh" // // write a...
24.373737
83
0.571764
[ "vector" ]
6b3cdc06679beb2be665571a047087377979598b
9,478
cpp
C++
src/bindings/Main.cpp
FabianTerhorst/altv-js-module
3585b56a31cfa108e00f17058c7943c398b65931
[ "MIT" ]
1
2020-06-01T23:53:29.000Z
2020-06-01T23:53:29.000Z
src/bindings/Main.cpp
FabianTerhorst/altv-js-module
3585b56a31cfa108e00f17058c7943c398b65931
[ "MIT" ]
null
null
null
src/bindings/Main.cpp
FabianTerhorst/altv-js-module
3585b56a31cfa108e00f17058c7943c398b65931
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "helpers/V8Module.h" #include "CNodeResourceImpl.h" using namespace alt; static void OnClient(const v8::FunctionCallbackInfo<v8::Value>& info) { v8::Isolate* isolate = info.GetIsolate(); V8_CHECK(info.Length() == 2, "2 args expected"); V8_CHECK(info[0]->IsString(), "string expected")...
31.488372
156
0.715446
[ "object" ]
6b4b5f39a4f9c756190f8e81d130d3beaec74b01
20,618
cpp
C++
device_support/raptor/cygnet.cpp
zack-vii/mdsplus
7c631281d22e993599dbdf7bd31782035af92688
[ "BSD-2-Clause" ]
1
2019-09-02T13:40:23.000Z
2019-09-02T13:40:23.000Z
device_support/raptor/cygnet.cpp
zack-vii/mdsplus
7c631281d22e993599dbdf7bd31782035af92688
[ "BSD-2-Clause" ]
4
2019-10-29T09:06:32.000Z
2020-03-26T22:09:39.000Z
device_support/raptor/cygnet.cpp
zack-vii/mdsplus
7c631281d22e993599dbdf7bd31782035af92688
[ "BSD-2-Clause" ]
2
2019-10-29T08:54:27.000Z
2020-05-18T09:59:39.000Z
/* Copyright (c) 2017, Massachusetts Institute of Technology 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 condition...
34.827703
178
0.664516
[ "object" ]
6b51c30a54f2f387d4b4d2572e95ac094914a898
151
hpp
C++
engine/include/Graphic/Transform.hpp
BigETI/NoLifeNoCry
70ac2498b5e740b2b348771ef9617dea1eed7f9c
[ "MIT" ]
5
2020-11-07T23:38:48.000Z
2021-12-07T11:03:22.000Z
engine/include/Graphic/Transform.hpp
BigETI/NoLifeNoCry
70ac2498b5e740b2b348771ef9617dea1eed7f9c
[ "MIT" ]
null
null
null
engine/include/Graphic/Transform.hpp
BigETI/NoLifeNoCry
70ac2498b5e740b2b348771ef9617dea1eed7f9c
[ "MIT" ]
null
null
null
#pragma once #include <SFML/Graphics/Transform.hpp> namespace DirtMachine::Graphic { // TODO: Make better API! using Transform = sf::Transform; }
13.727273
38
0.728477
[ "transform" ]
6b51f109b1f249c63a28c2d7be573884130e3cfe
503
cpp
C++
src/2000/2252.cpp14.cpp
upple/BOJ
e6dbf9fd17fa2b458c6a781d803123b14c18e6f1
[ "MIT" ]
8
2018-04-12T15:54:09.000Z
2020-06-05T07:41:15.000Z
src/2000/2252.cpp14.cpp
upple/BOJ
e6dbf9fd17fa2b458c6a781d803123b14c18e6f1
[ "MIT" ]
null
null
null
src/2000/2252.cpp14.cpp
upple/BOJ
e6dbf9fd17fa2b458c6a781d803123b14c18e6f1
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <queue> using namespace std; vector<int> adj[32001]; int in[32001]; int main() { ios_base::sync_with_stdio(0); cin.tie(0); int n, m; cin >> n >> m; while (m--) { int a, b; cin >> a >> b; adj[a].push_back(b); in[b]++; } queue<int> Q; for (int i = 1; i <= n...
13.972222
30
0.50497
[ "vector" ]
6b56f1d523a79881cde8afdb92330d8a93b9069f
11,031
cpp
C++
Parser/Parser.cpp
ronchauhan/scil
e3644c55decc46a09a773a9e4598ac277bd898b1
[ "MIT" ]
null
null
null
Parser/Parser.cpp
ronchauhan/scil
e3644c55decc46a09a773a9e4598ac277bd898b1
[ "MIT" ]
null
null
null
Parser/Parser.cpp
ronchauhan/scil
e3644c55decc46a09a773a9e4598ac277bd898b1
[ "MIT" ]
null
null
null
#include "Parser/Parser.h" #include "IR/CFG.h" #include "IR/Instruction.h" #include <cassert> #include <fstream> #include <iostream> #include <map> #include <string> void Parser::parseFile() { std::ifstream file(fileName); std::string instString; std::vector<Token> tokens; unsigned lineNo = 1; while (std::...
26.97066
80
0.624785
[ "vector" ]
6b5a6be5cbc97f131caf0a6a3b79876345e3e5c2
27,754
cc
C++
chrome/browser/nearby_sharing/client/nearby_share_client_impl_unittest.cc
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
575
2015-06-18T23:58:20.000Z
2022-03-23T09:32:39.000Z
chrome/browser/nearby_sharing/client/nearby_share_client_impl_unittest.cc
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
chrome/browser/nearby_sharing/client/nearby_share_client_impl_unittest.cc
iridium-browser/iridium-browser
907e31cf5ce5ad14d832796e3a7c11e496828959
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
52
2015-07-14T10:40:50.000Z
2022-03-15T01:11:49.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 <string> #include <utility> #include <vector> #include "base/bind.h" #include "base/command_line.h" #include "base/memory/ptr_util.h" #include "...
40.164978
81
0.756972
[ "vector" ]
6b5c12b1b41d1945f7a2abf582fc75850e2fe930
355
cpp
C++
#1306.jump-game-iii.cpp
hosomi/LeetCode
aba8fae8e37102b33dba8fd4adf1f018c395a4db
[ "MIT" ]
null
null
null
#1306.jump-game-iii.cpp
hosomi/LeetCode
aba8fae8e37102b33dba8fd4adf1f018c395a4db
[ "MIT" ]
null
null
null
#1306.jump-game-iii.cpp
hosomi/LeetCode
aba8fae8e37102b33dba8fd4adf1f018c395a4db
[ "MIT" ]
null
null
null
class Solution { public: bool canReach(vector<int>& arr, int start) { if (start >= 0 && start < arr.size() && arr[start] >= 0) { arr[start] *= -1; return arr[start] == 0 || canReach(arr, start + arr[start]) || canReach(arr, start - arr[start]); ...
25.357143
66
0.459155
[ "vector" ]
6b5df1f472e0a2a98ce4698978127678dc3f60da
4,259
cpp
C++
decoder/source/pkt_printers/trc_print_fact.cpp
rossburton/OpenCSD
01d44a34f8fc057f4b041c01f8d9502d77fe612f
[ "BSD-3-Clause" ]
84
2015-08-07T09:40:59.000Z
2022-03-14T09:04:33.000Z
decoder/source/pkt_printers/trc_print_fact.cpp
rossburton/OpenCSD
01d44a34f8fc057f4b041c01f8d9502d77fe612f
[ "BSD-3-Clause" ]
41
2016-07-28T09:14:06.000Z
2022-03-04T10:47:42.000Z
decoder/source/pkt_printers/trc_print_fact.cpp
rossburton/OpenCSD
01d44a34f8fc057f4b041c01f8d9502d77fe612f
[ "BSD-3-Clause" ]
37
2016-06-08T15:40:47.000Z
2022-02-18T09:29:35.000Z
/* * \file trc_print_fact.cpp * \brief OpenCSD : Trace Packet printer factory. * * \copyright Copyright (c) 2017, ARM Limited. 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...
34.072
173
0.712609
[ "vector" ]
6b5e1127ab831ccbb701271e0f63c9d46ffe69ee
13,324
cc
C++
L1Trigger/L1TCalorimeter/src/CaloTools.cc
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
L1Trigger/L1TCalorimeter/src/CaloTools.cc
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
L1Trigger/L1TCalorimeter/src/CaloTools.cc
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
#include "L1Trigger/L1TCalorimeter/interface/CaloTools.h" #include "L1Trigger/L1TCalorimeter/interface/CaloStage2Nav.h" const l1t::CaloTower l1t::CaloTools::nullTower_; const l1t::CaloCluster l1t::CaloTools::nullCluster_; const float l1t::CaloTools::kGTEtaLSB = 0.0435; const float l1t::CaloTools::kGTPhiLSB = 0.0435...
29.283516
444
0.654983
[ "shape", "vector" ]
6b5e9f8ba0922bb714459513258acf11b733538b
17,638
cpp
C++
src/Factory/Module/Modem/Modem.cpp
codechecker123/aff3ct
030af3e990027fa803fb2c68f974c9ec0ee79b5d
[ "MIT" ]
null
null
null
src/Factory/Module/Modem/Modem.cpp
codechecker123/aff3ct
030af3e990027fa803fb2c68f974c9ec0ee79b5d
[ "MIT" ]
null
null
null
src/Factory/Module/Modem/Modem.cpp
codechecker123/aff3ct
030af3e990027fa803fb2c68f974c9ec0ee79b5d
[ "MIT" ]
null
null
null
#include "Tools/Exception/exception.hpp" #include "Tools/Code/SCMA/modem_SCMA_functions.hpp" #include "Module/Modem/OOK/Modem_OOK.hpp" #include "Module/Modem/BPSK/Modem_BPSK.hpp" #include "Module/Modem/BPSK/Modem_BPSK_fast.hpp" #include "Module/Modem/PAM/Modem_PAM.hpp" #include "Module/Modem/QAM/Modem_QAM.hpp" #includ...
48.723757
248
0.537703
[ "shape" ]
6b610e92672fd7f399cc18460f3455d928441c48
709
cpp
C++
library/Methods/Structure/union-find/weighted-union-find.cpp
sarafanshul/KACTL
fa14ed34e93cd32d8625ed3729ba2eee55838340
[ "MIT" ]
127
2019-07-22T03:52:01.000Z
2022-03-11T07:20:21.000Z
library/Methods/Structure/union-find/weighted-union-find.cpp
sarafanshul/KACTL
fa14ed34e93cd32d8625ed3729ba2eee55838340
[ "MIT" ]
39
2019-09-16T12:04:53.000Z
2022-03-29T15:43:35.000Z
library/Methods/Structure/union-find/weighted-union-find.cpp
sarafanshul/KACTL
fa14ed34e93cd32d8625ed3729ba2eee55838340
[ "MIT" ]
29
2019-08-10T11:27:06.000Z
2022-03-11T07:02:43.000Z
template< typename T > struct WeightedUnionFind { vector< int > data; vector< T > ws; WeightedUnionFind() {} WeightedUnionFind(int sz) : data(sz, -1), ws(sz) {} int find(int k) { if(data[k] < 0) return k; auto par = find(data[k]); ws[k] += ws[data[k]]; return data[k] = par; } T weight(...
17.292683
53
0.490832
[ "vector" ]
6b613e3929c50aac6293ddb9a4f0549faee17845
8,509
cpp
C++
inject-hook-linux/hook/hook.cpp
maxcompston/inject-hook-linux
226d5df9df5234ee1dbdee8fb8bb91b929558f23
[ "BSD-3-Clause" ]
2
2021-02-05T12:23:19.000Z
2022-01-23T12:34:42.000Z
inject-hook-linux/hook/hook.cpp
maxcompston/inject-hook-linux
226d5df9df5234ee1dbdee8fb8bb91b929558f23
[ "BSD-3-Clause" ]
null
null
null
inject-hook-linux/hook/hook.cpp
maxcompston/inject-hook-linux
226d5df9df5234ee1dbdee8fb8bb91b929558f23
[ "BSD-3-Clause" ]
null
null
null
/* Copyright (c) 2015, Simone 'evilsocket' Margaritelli Copyright (c) 2015, Jorrit 'Chainfire' Jongma Copyright (c) 2019, Max Compston, Embedded Software Solutions See LICENSE file for details Modifications: -- Adapted this code from Android to Linux -- Linking and loading for Linux differs from...
31.514815
138
0.511811
[ "vector" ]
6b6351ccfd4ff1741369b275f984de6bd41edf5d
12,795
hpp
C++
include/ear/dsp/gain_interpolator.hpp
valnoel/libear
1e9c162f00bff20c66adc1e75c3014ed919a6ed4
[ "Apache-2.0" ]
null
null
null
include/ear/dsp/gain_interpolator.hpp
valnoel/libear
1e9c162f00bff20c66adc1e75c3014ed919a6ed4
[ "Apache-2.0" ]
null
null
null
include/ear/dsp/gain_interpolator.hpp
valnoel/libear
1e9c162f00bff20c66adc1e75c3014ed919a6ed4
[ "Apache-2.0" ]
null
null
null
#pragma once #include <algorithm> #include <memory> #include <utility> #include <vector> #include "ear/helpers/assert.hpp" namespace ear { namespace dsp { /// \file /// Utilities for applying interpoalted gain vectors to audio samples; see /// ear::dsp::GainInterpolator for details. /// Type used to...
43.372881
80
0.571317
[ "vector" ]
6b782fabeb43ea87546d848c1a6fe17729f4c653
679
hpp
C++
src/model.hpp
wojtex/songbook-generator
5ed4a901587231b75a79a54286793bf1de1ad0e9
[ "MIT" ]
null
null
null
src/model.hpp
wojtex/songbook-generator
5ed4a901587231b75a79a54286793bf1de1ad0e9
[ "MIT" ]
null
null
null
src/model.hpp
wojtex/songbook-generator
5ed4a901587231b75a79a54286793bf1de1ad0e9
[ "MIT" ]
null
null
null
#pragma once #include "source.hpp" #include <vector> #include <QAbstractItemModel> namespace Cantionale { class Model : public QAbstractTableModel { Q_OBJECT public: Model(QObject *parent); ~Model(); int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVE...
26.115385
98
0.656848
[ "vector", "model" ]
6b7e098b38115129a4657620667e8bdf46f82b34
7,941
cpp
C++
src/utilprocess.cpp
dendisuhubdy/BitcoinUnlimited
68d87c9d637583e8b89218f969caf624a76141cc
[ "MIT" ]
3
2019-11-28T13:45:44.000Z
2021-05-22T07:18:15.000Z
src/utilprocess.cpp
dendisuhubdy/BitcoinUnlimited
68d87c9d637583e8b89218f969caf624a76141cc
[ "MIT" ]
null
null
null
src/utilprocess.cpp
dendisuhubdy/BitcoinUnlimited
68d87c9d637583e8b89218f969caf624a76141cc
[ "MIT" ]
3
2019-10-26T03:34:45.000Z
2021-08-17T15:35:30.000Z
// Copyright (c) 2019 The Bitcoin Unlimited developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "utilprocess.h" #include "util.h" #include <boost/filesystem.hpp> #include <boost/predef/os.h> #include <sstream> #...
27.961268
117
0.607984
[ "vector" ]
6b843cc1c4efba869ee6a7f059d160f3c2ec721a
5,677
cpp
C++
tests/qi/test_bind.cpp
arntanguy/libqi
7f3e1394cb26126b26fa7ff54d2de1371a1c9f96
[ "BSD-3-Clause" ]
61
2015-01-08T08:05:28.000Z
2022-01-07T16:47:47.000Z
tests/qi/test_bind.cpp
arntanguy/libqi
7f3e1394cb26126b26fa7ff54d2de1371a1c9f96
[ "BSD-3-Clause" ]
30
2015-04-06T21:41:18.000Z
2021-08-18T13:24:51.000Z
tests/qi/test_bind.cpp
arntanguy/libqi
7f3e1394cb26126b26fa7ff54d2de1371a1c9f96
[ "BSD-3-Clause" ]
64
2015-02-23T20:01:11.000Z
2022-03-14T13:31:20.000Z
#include <gtest/gtest.h> #include <boost/thread.hpp> #include <ka/macro.hpp> KA_WARNING_PUSH() KA_WARNING_DISABLE(4996, deprecated-declarations) // ignore use of deprecated overloads. #include <qi/trackable.hpp> KA_WARNING_POP() #include <qi/future.hpp> #include <qi/actor.hpp> #include "test_future.hpp" qiLogCategor...
25.922374
88
0.644354
[ "vector" ]
6b84bbf616aaaa3ad5a91a0be3550300c3b73096
17,762
cc
C++
frameworks/tf/layer_norm_lstm.cc
nammingi/haste
459608cfdb4de4d28d2213df8e71f005be8d0f35
[ "Apache-2.0" ]
291
2020-01-29T19:46:28.000Z
2022-03-31T22:41:27.000Z
frameworks/tf/layer_norm_lstm.cc
nammingi/haste
459608cfdb4de4d28d2213df8e71f005be8d0f35
[ "Apache-2.0" ]
43
2020-02-24T22:25:13.000Z
2022-03-07T20:08:43.000Z
frameworks/tf/layer_norm_lstm.cc
nammingi/haste
459608cfdb4de4d28d2213df8e71f005be8d0f35
[ "Apache-2.0" ]
28
2020-02-07T02:51:19.000Z
2022-01-12T08:44:15.000Z
// Copyright 2020 LMNT, Inc. 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 l...
39.914607
105
0.643283
[ "shape" ]
6b873a536e7b1fb8afd8fba3076529bf83d31b58
917
cpp
C++
src/lib/Analysis/AnalysisManager.cpp
cgsdfc/Optimize
f3a28ccd5caf01d2a306859d641a1cb5aa0d36f3
[ "MIT" ]
1
2019-07-13T16:40:47.000Z
2019-07-13T16:40:47.000Z
src/lib/Analysis/AnalysisManager.cpp
cgsdfc/simplecc
f3a28ccd5caf01d2a306859d641a1cb5aa0d36f3
[ "MIT" ]
null
null
null
src/lib/Analysis/AnalysisManager.cpp
cgsdfc/simplecc
f3a28ccd5caf01d2a306859d641a1cb5aa0d36f3
[ "MIT" ]
null
null
null
#include "simplecc/Analysis/AnalysisManager.h" #include "simplecc/AST/ASTVerifier.h" #include "simplecc/Analysis/ArrayBoundChecker.h" #include "simplecc/Analysis/ImplicitCallTransformer.h" #include "simplecc/Analysis/SymbolTableBuilder.h" #include "simplecc/Analysis/SyntaxChecker.h" #include "simplecc/Analysis/TypeChec...
24.131579
74
0.726281
[ "transform" ]
6b8d41fb203d77aeee30a006ccc497e1cc778c8d
10,634
cpp
C++
src/multi_sampling/sample_space.cpp
zetian/ltl_sampling
223d225c852469c893078ced7ebc3da81cb1630c
[ "MIT" ]
11
2018-03-12T06:44:43.000Z
2022-03-10T06:44:51.000Z
src/multi_sampling/sample_space.cpp
zetian/ltl_sampling
223d225c852469c893078ced7ebc3da81cb1630c
[ "MIT" ]
null
null
null
src/multi_sampling/sample_space.cpp
zetian/ltl_sampling
223d225c852469c893078ced7ebc3da81cb1630c
[ "MIT" ]
4
2018-06-13T18:00:59.000Z
2021-07-13T05:58:20.000Z
#include <cmath> #include <utility> #include <algorithm> #include <queue> #include "multi_sampling/sample_space.h" #include "trajectory/dubins_steer.h" SampleSpace::SampleSpace(int num_ba) { num_ba_ = num_ba; for (int i = 0; i < num_ba; i++) { SubSampleSpace new_sub_space; sub_sample_space_.pus...
53.17
255
0.657043
[ "vector" ]
6b9573307ed41021d756d044abf32255d9070a02
11,473
cpp
C++
sal/program_options/config_reader.cpp
svens/sal.lib
8dee6a0ace5a5e4e8616f9cff98ea86ee8c4761c
[ "MIT" ]
3
2017-03-21T20:39:25.000Z
2018-03-27T10:45:45.000Z
sal/program_options/config_reader.cpp
svens/sal.lib
8dee6a0ace5a5e4e8616f9cff98ea86ee8c4761c
[ "MIT" ]
49
2016-04-17T10:48:35.000Z
2018-12-29T10:00:55.000Z
sal/program_options/config_reader.cpp
svens/sal.lib
8dee6a0ace5a5e4e8616f9cff98ea86ee8c4761c
[ "MIT" ]
1
2017-03-21T20:48:24.000Z
2017-03-21T20:48:24.000Z
#include <sal/program_options/config_reader.hpp> #include <sal/program_options/error.hpp> #include <sal/assert.hpp> #include <cctype> #include <deque> #include <istream> __sal_begin namespace program_options { namespace { constexpr bool is_json_punct (int ch) { return ch == ',' || ch == ':' || ch == '='...
17.098361
82
0.564891
[ "object" ]
6b9a8706bed9c56ed3536d95618059c51bced742
8,663
cpp
C++
src/Mapper/mapper4.cpp
flavioribeiro/plainNES
020e6fd042592de821d576fb8a02144322194b58
[ "MIT" ]
4
2019-11-21T19:33:42.000Z
2021-11-17T19:44:32.000Z
src/Mapper/mapper4.cpp
flavioribeiro/plainNES
020e6fd042592de821d576fb8a02144322194b58
[ "MIT" ]
null
null
null
src/Mapper/mapper4.cpp
flavioribeiro/plainNES
020e6fd042592de821d576fb8a02144322194b58
[ "MIT" ]
1
2020-04-05T03:01:24.000Z
2020-04-05T03:01:24.000Z
#include "mapper4.h" #include "ppu.h" #include "cpu.h" #include <iostream> #include <algorithm> //TODO: Add save ability for battery backed up PRG-RAM Mapper4::Mapper4(GAMEPAK::ROMInfo romInfo, std::ifstream &file) { PRGRAM.resize(0x2000); if(romInfo.fourScreenMode) { VRAM.resize(0x1000); fourS...
29.566553
91
0.55916
[ "vector" ]
6ba33f9f4730e11888e11a2b0b40c06c61760e2a
2,609
cpp
C++
src/2021/day20.cpp
dholmes215/adventofcode-cpp
2a0ce43c51ec3beccc56fb48bf91de070e6ca136
[ "BSL-1.0" ]
null
null
null
src/2021/day20.cpp
dholmes215/adventofcode-cpp
2a0ce43c51ec3beccc56fb48bf91de070e6ca136
[ "BSL-1.0" ]
null
null
null
src/2021/day20.cpp
dholmes215/adventofcode-cpp
2a0ce43c51ec3beccc56fb48bf91de070e6ca136
[ "BSL-1.0" ]
null
null
null
// // Copyright (c) 2020-2021 David Holmes (dholmes at dholmes dot us) // // 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 <aoc.hpp> #include <aoc_grid.hpp> #include <aoc_range.hpp> #include <aoc_vec.hpp...
26.896907
80
0.634343
[ "vector", "transform" ]
6ba9b17e4668525fc0f01cc3e4de6abebbf91038
11,672
cpp
C++
Polygon_mesh_processing/test/Polygon_mesh_processing/test_pmp_manifoldness.cpp
antoniospg/cgal
2891c22fc7f64f680ac7e144407afe49f6425cb9
[ "CC0-1.0" ]
2
2020-12-12T09:30:07.000Z
2021-01-04T05:00:23.000Z
Polygon_mesh_processing/test/Polygon_mesh_processing/test_pmp_manifoldness.cpp
antoniospg/cgal
2891c22fc7f64f680ac7e144407afe49f6425cb9
[ "CC0-1.0" ]
17
2018-01-10T13:32:24.000Z
2021-07-30T12:23:20.000Z
Polygon_mesh_processing/test/Polygon_mesh_processing/test_pmp_manifoldness.cpp
antoniospg/cgal
2891c22fc7f64f680ac7e144407afe49f6425cb9
[ "CC0-1.0" ]
1
2019-02-21T15:26:25.000Z
2019-02-21T15:26:25.000Z
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> #include <CGAL/Polyhedron_3.h> #include <CGAL/Surface_mesh.h> #include <CGAL/boost/graph/named_params_helper.h> #include <CGAL/Polygon_mesh_processing/repair.h> #include <cassert> #include <fstream> #include <map> #include <vector> typedef CGAL::Exact_...
37.896104
138
0.707248
[ "mesh", "vector" ]
6baa72018e5857463127a0f4acd878d7ca95318b
10,217
cpp
C++
cvs/objects/consumers/source/invest_consumer.cpp
zcranmer/OWEProject
67d2367d6bdb5dd2a0aa0285be7e33ce64348677
[ "ECL-2.0" ]
null
null
null
cvs/objects/consumers/source/invest_consumer.cpp
zcranmer/OWEProject
67d2367d6bdb5dd2a0aa0285be7e33ce64348677
[ "ECL-2.0" ]
null
null
null
cvs/objects/consumers/source/invest_consumer.cpp
zcranmer/OWEProject
67d2367d6bdb5dd2a0aa0285be7e33ce64348677
[ "ECL-2.0" ]
null
null
null
/* * LEGAL NOTICE * This computer software was prepared by Battelle Memorial Institute, * hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830 * with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE * CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY * LIABILITY FOR THE USE OF...
43.849785
119
0.718019
[ "object", "vector" ]
6bae470588fb05277ff54633ca5f571ad05bc3fa
134,013
cpp
C++
basics.cpp
WarwickDumas/FocusFusion2D
445903f3e9e447985cdfa40444787c108d834e48
[ "MIT" ]
1
2021-06-21T22:21:57.000Z
2021-06-21T22:21:57.000Z
basics.cpp
WarwickDumas/FocusFusion2D
445903f3e9e447985cdfa40444787c108d834e48
[ "MIT" ]
2
2017-07-16T01:41:11.000Z
2021-07-05T08:40:01.000Z
basics.cpp
WarwickDumas/FocusFusion2D
445903f3e9e447985cdfa40444787c108d834e48
[ "MIT" ]
1
2017-07-16T01:26:51.000Z
2017-07-16T01:26:51.000Z
#ifndef BASICSCPP #define BASICSCPP #include "mesh.h" #include "globals.h" #include "vector_tensor.cu" //#include "vector_tensor.cpp" // For manipulations of triangles and vertices. smartlong GlobalVertexScratchList; //real const minimum_pressure_SD_at_1e18_sq = minimum_pressure_SD_at_1e18*minimum_press...
27.332857
165
0.58998
[ "mesh", "object", "vector", "3d" ]
6bb2231a1bf720a4f9b6b2662a82ab23e88e38b3
41
hpp
C++
src/window/type.hpp
yydcnjjw/my-gui
7d4c0836e861e991c42cecac4ddf6eda90ff36c8
[ "Apache-2.0" ]
null
null
null
src/window/type.hpp
yydcnjjw/my-gui
7d4c0836e861e991c42cecac4ddf6eda90ff36c8
[ "Apache-2.0" ]
1
2020-11-07T03:28:34.000Z
2020-11-09T05:36:31.000Z
src/window/type.hpp
yydcnjjw/my-gui
7d4c0836e861e991c42cecac4ddf6eda90ff36c8
[ "Apache-2.0" ]
null
null
null
#pragma once #include <render/type.hpp>
10.25
26
0.731707
[ "render" ]
6bb8eb29290fea68ff7acaabd728106261063222
5,821
cpp
C++
Sources/Display/Render/frame_buffer.cpp
xctan/ClanLib
1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d
[ "Linux-OpenIB" ]
248
2015-01-08T05:21:40.000Z
2022-03-20T02:59:16.000Z
Sources/Display/Render/frame_buffer.cpp
xctan/ClanLib
1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d
[ "Linux-OpenIB" ]
39
2015-01-14T17:37:07.000Z
2022-03-17T12:59:26.000Z
Sources/Display/Render/frame_buffer.cpp
xctan/ClanLib
1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d
[ "Linux-OpenIB" ]
82
2015-01-11T13:23:49.000Z
2022-02-19T03:17:24.000Z
/* ** ClanLib SDK ** Copyright (c) 1997-2020 The ClanLib Team ** ** This software is provided 'as-is', without any express or implied ** warranty. In no event will the authors be held liable for any damages ** arising from the use of this software. ** ** Permission is granted to anyone to use this software for a...
27.457547
116
0.74884
[ "render" ]
6bbb82589c2e6df10dc0e20794c7a24d3c0e6f51
6,779
hpp
C++
vector/sl-vector.hpp
brianwolfe/stl-learning
6b05c0b4f1927f35238b90cf5989412a15575fbe
[ "MIT" ]
null
null
null
vector/sl-vector.hpp
brianwolfe/stl-learning
6b05c0b4f1927f35238b90cf5989412a15575fbe
[ "MIT" ]
null
null
null
vector/sl-vector.hpp
brianwolfe/stl-learning
6b05c0b4f1927f35238b90cf5989412a15575fbe
[ "MIT" ]
1
2020-04-20T13:31:53.000Z
2020-04-20T13:31:53.000Z
#include <iostream> // STL learning namespace namespace stll { template <typename T> T min(const T & a, const T & b) { if (a < b) { return a; } return b; } template<typename T> class vector { typedef T* iterator; protected: constexpr static size_t SCALE_FACTOR = 2; ...
19.879765
84
0.56852
[ "vector" ]
6bbfa5689c2fe1cdf9e7bf9ff49c3a52aad0cda9
3,029
cpp
C++
iggcm-2016/src/framework/Mesh.cpp
davedissian/archive
a28072a70d7dc3bb88e9a268aea99667f656c100
[ "MIT" ]
null
null
null
iggcm-2016/src/framework/Mesh.cpp
davedissian/archive
a28072a70d7dc3bb88e9a268aea99667f656c100
[ "MIT" ]
null
null
null
iggcm-2016/src/framework/Mesh.cpp
davedissian/archive
a28072a70d7dc3bb88e9a268aea99667f656c100
[ "MIT" ]
null
null
null
/* * GL Framework * Copyright (c) David Avedissian 2014-2015 */ #include "Common.h" #include "Mesh.h" Mesh::Mesh(vector<GLfloat> vertexData, vector<VertexAttribute> layout) : mVertexArrayObject(0), mVertexBufferObject(0), mElementBufferObject(0), mVertexCount(0) { glGenVertexArrays(1, &mVe...
29.125
98
0.653021
[ "mesh", "vector" ]
6bc5f4f95862e3e940bacc79e4fb0fc3b58339f0
1,344
cpp
C++
aquifer/Convection/Convection.cpp
AleksZhuravlyov/oopmech
4a53dc8fb2a94fa9de660e12ca51bcddc35b407c
[ "AFL-3.0" ]
null
null
null
aquifer/Convection/Convection.cpp
AleksZhuravlyov/oopmech
4a53dc8fb2a94fa9de660e12ca51bcddc35b407c
[ "AFL-3.0" ]
null
null
null
aquifer/Convection/Convection.cpp
AleksZhuravlyov/oopmech
4a53dc8fb2a94fa9de660e12ca51bcddc35b407c
[ "AFL-3.0" ]
null
null
null
#include "Convection.h" Convection::Convection(Grid &grdPar, FuncPars &fPPar, GetFromFile &dataFilePar) : ConvectionPars(grdPar, fPPar), dataFile(dataFilePar), dimCell(grd.cellsV.size()), ...
28.595745
101
0.428571
[ "vector" ]
6bcc35b74c3585e2884d60411bcf9375112a4cd1
3,224
cc
C++
dyvmsapi/src/model/ListHotlineTransferNumberRequest.cc
aliyun/aliyun-openapi-cpp-sdk
0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36
[ "Apache-2.0" ]
89
2018-02-02T03:54:39.000Z
2021-12-13T01:32:55.000Z
dyvmsapi/src/model/ListHotlineTransferNumberRequest.cc
aliyun/aliyun-openapi-cpp-sdk
0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36
[ "Apache-2.0" ]
89
2018-03-14T07:44:54.000Z
2021-11-26T07:43:25.000Z
dyvmsapi/src/model/ListHotlineTransferNumberRequest.cc
aliyun/aliyun-openapi-cpp-sdk
0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36
[ "Apache-2.0" ]
69
2018-01-22T09:45:52.000Z
2022-03-28T07:58:38.000Z
/* * 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...
27.322034
104
0.783189
[ "model" ]
6bcdc6e7b5da01ec5aba2e1866a5210648dbcfc9
9,525
cpp
C++
src/renderfamily.cpp
TheVaffel/Wingine
17d5bf19a9c56a0e3ae6a84df2332319d82e9493
[ "MIT" ]
2
2020-12-01T15:13:08.000Z
2021-11-11T16:10:10.000Z
src/renderfamily.cpp
TheVaffel/Wingine
17d5bf19a9c56a0e3ae6a84df2332319d82e9493
[ "MIT" ]
null
null
null
src/renderfamily.cpp
TheVaffel/Wingine
17d5bf19a9c56a0e3ae6a84df2332319d82e9493
[ "MIT" ]
null
null
null
#include "renderfamily.hpp" #include "Wingine.hpp" namespace wg { RenderFamily::RenderFamily(Wingine& wing, const Pipeline* pipeline, bool clear, int num_framebuffers) : wing(&wing), pipeline(pipeline) { ...
42.146018
239
0.561575
[ "render", "vector" ]
6bd54ee3b6bef9ba6d3d67d5ec2c289491edc3c0
5,465
cpp
C++
ProjectLunarPhase/MainF.cpp
Edgaru089/ProjectLunarPhase
bc8085e3b0ccc20c76cac7880afb0ab830be0e35
[ "MIT" ]
null
null
null
ProjectLunarPhase/MainF.cpp
Edgaru089/ProjectLunarPhase
bc8085e3b0ccc20c76cac7880afb0ab830be0e35
[ "MIT" ]
null
null
null
ProjectLunarPhase/MainF.cpp
Edgaru089/ProjectLunarPhase
bc8085e3b0ccc20c76cac7880afb0ab830be0e35
[ "MIT" ]
null
null
null
#include "Main.hpp" const char projectName[] = "Project LunarPhase", stage[] = "Alpha"; const int majorVersion = 0, minorVersion = 0, patchVersion = 0; const char completeServerName[] = "Project-LunarPhase/0.0.0.Alpha"; namespace { mt19937 randomEngine((random_device())()); char decodeHex2(char high, char low...
26.02381
134
0.640439
[ "vector" ]
6be0a3dfd1352d1a715f4dcc2287059e3eb1e17f
16,479
cpp
C++
Unbound/RenderBackendVulkan.cpp
dreti-uoguelph/Unbound
ffbb4da324673095f4764b4275a88b1855d88800
[ "MIT" ]
null
null
null
Unbound/RenderBackendVulkan.cpp
dreti-uoguelph/Unbound
ffbb4da324673095f4764b4275a88b1855d88800
[ "MIT" ]
null
null
null
Unbound/RenderBackendVulkan.cpp
dreti-uoguelph/Unbound
ffbb4da324673095f4764b4275a88b1855d88800
[ "MIT" ]
null
null
null
#pragma once #include "stdafx.h" #ifdef UNBOUND_BACKEND_VULKAN #include "RenderBackendVulkan.h" namespace Unbound { namespace Graphics { void RenderBackendVulkan::init() { vulkanInit(); } void RenderBackendVulkan::drawFrame() { //Acquire an image from the swap chain uint32_t imageIndex = 0; Vk...
38.957447
247
0.75399
[ "mesh", "geometry", "render", "object", "vector", "model", "transform" ]
6be99e8238eca11f9ddfa5395bba239d458abc17
6,290
cpp
C++
test/unit-tests/array/partition/nvm_partition_test.cpp
YongJin-Cho/poseidonos
c07a0240316d4536aa09f22d7977604f3650d752
[ "BSD-3-Clause" ]
null
null
null
test/unit-tests/array/partition/nvm_partition_test.cpp
YongJin-Cho/poseidonos
c07a0240316d4536aa09f22d7977604f3650d752
[ "BSD-3-Clause" ]
null
null
null
test/unit-tests/array/partition/nvm_partition_test.cpp
YongJin-Cho/poseidonos
c07a0240316d4536aa09f22d7977604f3650d752
[ "BSD-3-Clause" ]
null
null
null
#include "src/array/partition/nvm_partition.h" #include <gtest/gtest.h> #include "src/include/array_config.h" #include "src/include/pos_event_id.h" #include "test/unit-tests/array/ft/buffer_entry_mock.h" namespace pos { static LogicalBlkAddr buildValidLogicalBlkAddr(uint32_t totalStripes, uint32_t blksPerStripe) { ...
33.280423
110
0.727027
[ "vector" ]
6bea90344eb4c7dc6030da049b2f726a894b5ee5
150,417
cpp
C++
_vscp_common/restsrv.cpp
benys/vscpworks
755a1733d0c55c8dd22d65e0e1ed1598311ef999
[ "MIT" ]
1
2022-01-24T20:21:09.000Z
2022-01-24T20:21:09.000Z
_vscp_common/restsrv.cpp
benys/vscpworks
755a1733d0c55c8dd22d65e0e1ed1598311ef999
[ "MIT" ]
1
2020-05-05T18:40:57.000Z
2020-05-05T18:40:57.000Z
_vscp_common/restsrv.cpp
benys/vscpworks
755a1733d0c55c8dd22d65e0e1ed1598311ef999
[ "MIT" ]
1
2020-05-05T08:07:32.000Z
2020-05-05T08:07:32.000Z
// restsrv.cpp // // This file is part of the VSCP (http://www.vscp.org) // // The MIT License (MIT) // // Copyright (c) 2000-2018 Ake Hedman, Grodans Paradis AB <info@grodansparadis.com> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentati...
38.440327
217
0.445468
[ "object" ]
6bf12a060dcd1cca8dd9f664f56a2dbbf1d70179
2,050
cc
C++
tests/cpp/data/test_gradient_index.cc
hmchen-github/xgboost
af0cf88921f4d80a2a338e40f2620c9579afa100
[ "Apache-2.0" ]
1
2022-01-04T23:38:14.000Z
2022-01-04T23:38:14.000Z
tests/cpp/data/test_gradient_index.cc
Nihilitior/xgboost
7366d3b20cad8e28ecef67d5130c71e81bb0b088
[ "Apache-2.0" ]
1
2022-01-07T01:21:59.000Z
2022-01-07T04:58:09.000Z
tests/cpp/data/test_gradient_index.cc
Nihilitior/xgboost
7366d3b20cad8e28ecef67d5130c71e81bb0b088
[ "Apache-2.0" ]
1
2018-12-09T14:30:38.000Z
2018-12-09T14:30:38.000Z
/*! * Copyright 2021-2022 XGBoost contributors */ #include <gtest/gtest.h> #include <xgboost/data.h> #include "../../../src/data/gradient_index.h" #include "../helpers.h" namespace xgboost { namespace data { TEST(GradientIndex, ExternalMemory) { std::unique_ptr<DMatrix> dmat = CreateSparsePageDMatrix(10000); st...
28.472222
88
0.678537
[ "vector" ]
6bf284ccfd226f9de55f285a14e1666d37ed79e6
1,475
cc
C++
optickscore/tests/MockSensorLibTest.cc
hanswenzel/opticks
b75b5929b6cf36a5eedeffb3031af2920f75f9f0
[ "Apache-2.0" ]
11
2020-07-05T02:39:32.000Z
2022-03-20T18:52:44.000Z
optickscore/tests/MockSensorLibTest.cc
hanswenzel/opticks
b75b5929b6cf36a5eedeffb3031af2920f75f9f0
[ "Apache-2.0" ]
null
null
null
optickscore/tests/MockSensorLibTest.cc
hanswenzel/opticks
b75b5929b6cf36a5eedeffb3031af2920f75f9f0
[ "Apache-2.0" ]
4
2020-09-03T20:36:32.000Z
2022-01-19T07:42:21.000Z
#include "OPTICKS_LOG.hh" #include "SensorLib.hh" #include "SphereOfTransforms.hh" #include "MockSensorLib.hh" int main(int argc, char** argv) { OPTICKS_LOG(argc, argv); unsigned num_cat = argc > 1 ? atoi(argv[1]) : 2 ; // use 0 to model the case of having no angular efficiency // match OSensorLibGeoT...
25.431034
115
0.6
[ "model" ]
6bfb1ca047028aac4a36dbba1c72e3633ad09e60
3,346
cpp
C++
src/ResourceLoader.cpp
PixelArtDragon/PolisEngine
be3446937eade8457e93db64b59d57bb110aefdd
[ "MIT" ]
null
null
null
src/ResourceLoader.cpp
PixelArtDragon/PolisEngine
be3446937eade8457e93db64b59d57bb110aefdd
[ "MIT" ]
null
null
null
src/ResourceLoader.cpp
PixelArtDragon/PolisEngine
be3446937eade8457e93db64b59d57bb110aefdd
[ "MIT" ]
null
null
null
#include "ResourceLoader.h" #include "entt/core/hashed_string.hpp" #include "TextureLoader.h" #include "MeshLoader.h" #include "ShaderLoader.h" #include "ShaderProgramLoader.h" #include "FontLoader.h" constexpr auto quad_identifier = entt::hashed_string("quad"); constexpr auto cube_identifier = entt::hashed_string("...
46.472222
167
0.761805
[ "mesh", "shape", "vector" ]
6bfff20515699519d09b45c17766f73b5d0325ba
6,687
cpp
C++
rts/database/DatabasePartition.cpp
gh-rdf3x/gh-rdf3x
4184d355b922d9d2f1aa63a36461bf889617928c
[ "Xnet", "X11" ]
40
2015-02-17T03:27:19.000Z
2022-03-24T15:17:38.000Z
rts/database/DatabasePartition.cpp
gh-rdf3x/gh-rdf3x
4184d355b922d9d2f1aa63a36461bf889617928c
[ "Xnet", "X11" ]
3
2016-02-22T17:36:59.000Z
2020-04-09T14:45:15.000Z
rts/database/DatabasePartition.cpp
gh-rdf3x/gh-rdf3x
4184d355b922d9d2f1aa63a36461bf889617928c
[ "Xnet", "X11" ]
15
2015-01-15T20:39:48.000Z
2020-11-11T03:07:11.000Z
#include "rts/database/DatabasePartition.hpp" #include "rts/buffer/BufferReference.hpp" #include "rts/partition/Partition.hpp" #include "rts/segment/AggregatedFactsSegment.hpp" #include "rts/segment/DictionarySegment.hpp" #include "rts/segment/ExactStatisticsSegment.hpp" #include "rts/segment/FactsSegment.hpp" #include...
44.58
134
0.625991
[ "vector" ]
d40fd3f1df43f6a1f8f32d2842acc8a99be63642
2,040
cpp
C++
uhk/acm4414.cpp
Hyyyyyyyyyy/acm
d7101755b2c2868d51bb056f094e024d0333b56f
[ "MIT" ]
null
null
null
uhk/acm4414.cpp
Hyyyyyyyyyy/acm
d7101755b2c2868d51bb056f094e024d0333b56f
[ "MIT" ]
null
null
null
uhk/acm4414.cpp
Hyyyyyyyyyy/acm
d7101755b2c2868d51bb056f094e024d0333b56f
[ "MIT" ]
null
null
null
#include <cstdio> #include <cstring> #include <cstdlib> #include <algorithm> #include <cmath> #include <set> #include <map> #include <cctype> #include <vector> #include <queue> #include <stack> #include <deque> #include <string> #include <iostream> using namespace std; typedef long long ll; typedef unsigned long long u...
18.715596
102
0.495098
[ "vector" ]
d41856a8a32d2b6d3c7fbf2ee35cd595cacc8374
8,495
cpp
C++
Src/Basler/Samples/Cpp/CustomGrabLoop2/customgrabloop2.cpp
jjuiddong/KinectDepthCamera
11989a4a47728619b10e7c1012a12b94157670c4
[ "MIT" ]
1
2019-03-17T14:03:14.000Z
2019-03-17T14:03:14.000Z
Src/Basler/Samples/Cpp/CustomGrabLoop2/customgrabloop2.cpp
jjuiddong/KinectDepthCamera
11989a4a47728619b10e7c1012a12b94157670c4
[ "MIT" ]
null
null
null
Src/Basler/Samples/Cpp/CustomGrabLoop2/customgrabloop2.cpp
jjuiddong/KinectDepthCamera
11989a4a47728619b10e7c1012a12b94157670c4
[ "MIT" ]
null
null
null
/* Access to ToF cameras is provided by a GenICam-compliant GenTL Producer. A GenTL Producer is a dynamic library implementing a standardized software interface for accessing the camera. The software interacting with the GentL Producer is called a GenTL Consumer. Using this terminology, this sample is a GenTL Consumer...
34.673469
157
0.723014
[ "3d" ]
d41b6c57401e6816a864672e11b147ea140b79b4
1,323
cpp
C++
mock_data/rand_spending_generator.cpp
ArabicaCapitalOne/arabica_backend
8810f2907ed2fff2adb033119a42a046bec68240
[ "MIT" ]
null
null
null
mock_data/rand_spending_generator.cpp
ArabicaCapitalOne/arabica_backend
8810f2907ed2fff2adb033119a42a046bec68240
[ "MIT" ]
null
null
null
mock_data/rand_spending_generator.cpp
ArabicaCapitalOne/arabica_backend
8810f2907ed2fff2adb033119a42a046bec68240
[ "MIT" ]
null
null
null
#include <iostream> #include <cstdlib> #include <vector> #include <fstream> #include <cstdio> using namespace std; void output(int year, int month, int day, vector<string> &merchant_id) { cout << "{\n"; int index = rand() % 300; cout << " \"merchant_id\": " << "\"" << merchant_id[index] << "\"," << endl; cout << ...
23.625
92
0.499622
[ "vector" ]
d42277ebb464016b89c2d20206215eaabb58b45e
4,975
cpp
C++
Gems/NvCloth/Code/Source/Editor/MeshNodeHandler.cpp
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
1
2022-03-12T14:13:45.000Z
2022-03-12T14:13:45.000Z
Gems/NvCloth/Code/Source/Editor/MeshNodeHandler.cpp
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
3
2021-09-08T03:41:27.000Z
2022-03-12T01:01:29.000Z
Gems/NvCloth/Code/Source/Editor/MeshNodeHandler.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 <AzToolsFramework/AssetBrowser/AssetBrowserBus.h> #include <AtomLyIntegration/CommonFeat...
38.867188
183
0.577889
[ "mesh", "render", "vector", "3d" ]
2d6d6cfe0b7b2140829e2beccbadbe63649abf16
20,326
cpp
C++
src/Parser/Parser.cpp
PMFU/Vic2-Save-Analyzer
452d0c8aacdf75094586e4d79fb9ab29f743ef80
[ "MIT" ]
null
null
null
src/Parser/Parser.cpp
PMFU/Vic2-Save-Analyzer
452d0c8aacdf75094586e4d79fb9ab29f743ef80
[ "MIT" ]
null
null
null
src/Parser/Parser.cpp
PMFU/Vic2-Save-Analyzer
452d0c8aacdf75094586e4d79fb9ab29f743ef80
[ "MIT" ]
null
null
null
#include "Parser.h" #include <fstream> #include <sstream> #include <iostream> #include <Types/nlohmann/json.h> static const std::vector<char> tokenSplitter = { '{', '}', '"', ']', '[', '\n', '=', '(', ')' //, ' ' }; static const std::string tokenSplitterStr = { '{', '}', '"', '[', ']', '\n', '=', '(', ')' //, ' ...
22.786996
143
0.601102
[ "vector" ]
2d72f7f0589cc589eae660acfe52450bf8079b7e
5,026
cpp
C++
src/util/json.cpp
andreast271/cbmc
7877a939ad4221be7ab6e7fb9445dcb53747c2cc
[ "BSD-4-Clause" ]
null
null
null
src/util/json.cpp
andreast271/cbmc
7877a939ad4221be7ab6e7fb9445dcb53747c2cc
[ "BSD-4-Clause" ]
2
2018-02-14T16:11:37.000Z
2018-02-23T18:12:27.000Z
src/util/json.cpp
andreast271/cbmc
7877a939ad4221be7ab6e7fb9445dcb53747c2cc
[ "BSD-4-Clause" ]
null
null
null
/*******************************************************************\ Module: Author: Daniel Kroening, kroening@kroening.com \*******************************************************************/ #include "json.h" #include "structured_data.h" #include <algorithm> #include <ostream> const jsont jsont::null_json_ob...
21.206751
74
0.560088
[ "object" ]
2d73c0486a91202c240d9ecbc94db4ef4eddacd4
1,216
cpp
C++
libs/numeric/mtl/experimental/block_matrix_2x2.cpp
lit-uriy/mtl4-mirror
37cf7c2847165d3537cbc3400cb5fde6f80e3d8b
[ "MTLL" ]
24
2019-03-26T15:25:45.000Z
2022-03-26T10:00:45.000Z
libs/numeric/mtl/experimental/block_matrix_2x2.cpp
lit-uriy/mtl4-mirror
37cf7c2847165d3537cbc3400cb5fde6f80e3d8b
[ "MTLL" ]
2
2020-04-17T12:35:32.000Z
2021-03-03T15:46:25.000Z
libs/numeric/mtl/experimental/block_matrix_2x2.cpp
lit-uriy/mtl4-mirror
37cf7c2847165d3537cbc3400cb5fde6f80e3d8b
[ "MTLL" ]
10
2019-12-01T13:40:30.000Z
2022-01-14T08:39:54.000Z
// Software License for MTL // // Copyright (c) 2007 The Trustees of Indiana University. // 2008 Dresden University of Technology and the Trustees of Indiana University. // 2010 SimuNova UG (haftungsbeschränkt), www.simunova.com. // All rights reserved. // Authors: Peter Gottschling and An...
22.109091
94
0.574013
[ "vector" ]
2d7473e1636614269b5069f2f4a8f22cc37240e8
1,997
cpp
C++
src/Base/GLWindow.cpp
sadads1337/fit-gl
88d9ae1f1935301d71ae6e090aff24e6829a7580
[ "MIT" ]
2
2021-04-25T15:18:40.000Z
2022-02-27T15:44:04.000Z
src/Base/GLWindow.cpp
sadads1337/fit-gl
88d9ae1f1935301d71ae6e090aff24e6829a7580
[ "MIT" ]
31
2021-02-17T21:12:59.000Z
2021-05-26T07:06:59.000Z
src/Base/GLWindow.cpp
sadads1337/fit-gl
88d9ae1f1935301d71ae6e090aff24e6829a7580
[ "MIT" ]
9
2021-02-08T08:52:51.000Z
2022-02-27T15:43:55.000Z
#include "GLWindow.hpp" #include <QPainter> namespace fgl { GLWindow::GLWindow(QWindow *parent) : QWindow{parent} { // This one inits OpenGL functions. setSurfaceType(QWindow::OpenGLSurface); } void GLWindow::init() {} void GLWindow::render() { // Lazy init render device. if (!device_) { device_ = std:...
20.171717
77
0.678017
[ "render" ]
2d77a063bd69140cc3f0265af392f7e5c875b50e
7,636
cpp
C++
Code/VulkanBackend/Source/VulkanResourcePackager.cpp
DhirajWishal/Flint
0750bd515de0b5cc3d23f7c2282c50ca483dff24
[ "Apache-2.0" ]
null
null
null
Code/VulkanBackend/Source/VulkanResourcePackager.cpp
DhirajWishal/Flint
0750bd515de0b5cc3d23f7c2282c50ca483dff24
[ "Apache-2.0" ]
1
2021-10-30T11:19:53.000Z
2021-10-30T11:19:54.000Z
Code/VulkanBackend/Source/VulkanResourcePackager.cpp
DhirajWishal/Flint
0750bd515de0b5cc3d23f7c2282c50ca483dff24
[ "Apache-2.0" ]
null
null
null
// Copyright 2021 Dhiraj Wishal // SPDX-License-Identifier: Apache-2.0 #include "VulkanBackend/VulkanResourcePackager.hpp" #include "VulkanBackend/VulkanResourcePackage.hpp" #include "VulkanBackend/VulkanShader.hpp" namespace Flint { namespace VulkanBackend { VulkanResourcePackager::VulkanResourcePackager(const u...
35.849765
160
0.735202
[ "geometry", "vector" ]
2d77cda2ee9f87c434177419ca97eee7125256cb
2,286
hpp
C++
lib/Utils/FileIOUtils.hpp
DanielRother/ROVI
f036148f1ae379bfb319a146eb620ce72a7fec70
[ "MIT" ]
null
null
null
lib/Utils/FileIOUtils.hpp
DanielRother/ROVI
f036148f1ae379bfb319a146eb620ce72a7fec70
[ "MIT" ]
null
null
null
lib/Utils/FileIOUtils.hpp
DanielRother/ROVI
f036148f1ae379bfb319a146eb620ce72a7fec70
[ "MIT" ]
null
null
null
#ifndef __FILEIOUTILS_H__ #define __FILEIOUTILS_H__ #include <Arduino.h> #include <stdio.h> #include <string> #include <iostream> #include <sstream> #include <vector> #include <algorithm> // TODO: Namespace inline std::string fullfile(const std::string& baseDirectory, const std::string& additionDirectoryOrFile) { ...
26.894118
110
0.652231
[ "vector", "transform" ]
2d7a80d8ef3fa1d887eeee53830723a4793a2e93
2,064
cpp
C++
Engine/Engine/graphicsclass.cpp
aytona/GAME3111_Assignment1
783cb7b6611f0e7a580ce6227edb46d539cecc68
[ "MIT" ]
null
null
null
Engine/Engine/graphicsclass.cpp
aytona/GAME3111_Assignment1
783cb7b6611f0e7a580ce6227edb46d539cecc68
[ "MIT" ]
null
null
null
Engine/Engine/graphicsclass.cpp
aytona/GAME3111_Assignment1
783cb7b6611f0e7a580ce6227edb46d539cecc68
[ "MIT" ]
1
2018-08-25T22:12:00.000Z
2018-08-25T22:12:00.000Z
#include "graphicsclass.h" #include "cameraclass.h" GraphicsClass::GraphicsClass() { m_D3D = 0; m_Camera = 0; } GraphicsClass::GraphicsClass(const GraphicsClass& other) { } GraphicsClass::~GraphicsClass() { } bool GraphicsClass::Initialize(int screenWidth, int screenHeight, HWND hwnd) { bool result; ...
21.278351
119
0.636628
[ "render", "object" ]
2d7abd31913218f281a3b941c945e0438525c9be
2,194
cpp
C++
libs/dev/Math/MathEngine/VectApp.cpp
Norseman055/immaterial-engine
6aca0fad64f5b2b9fe6eb351528a79a39dc94625
[ "MIT" ]
null
null
null
libs/dev/Math/MathEngine/VectApp.cpp
Norseman055/immaterial-engine
6aca0fad64f5b2b9fe6eb351528a79a39dc94625
[ "MIT" ]
null
null
null
libs/dev/Math/MathEngine/VectApp.cpp
Norseman055/immaterial-engine
6aca0fad64f5b2b9fe6eb351528a79a39dc94625
[ "MIT" ]
null
null
null
/*****************************************************************************/ /* */ /* File: VectApp.cpp */ /* */ ...
36.566667
102
0.400638
[ "vector" ]