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
ec9dc40a9f7f2297a974fa16c512ca298fec5278
3,975
cpp
C++
src/global.cpp
lemossilva/Corretor-Online-Python
74509b02d7b38435f7d20b0a2495c5f76d782389
[ "MIT" ]
null
null
null
src/global.cpp
lemossilva/Corretor-Online-Python
74509b02d7b38435f7d20b0a2495c5f76d782389
[ "MIT" ]
null
null
null
src/global.cpp
lemossilva/Corretor-Online-Python
74509b02d7b38435f7d20b0a2495c5f76d782389
[ "MIT" ]
null
null
null
#include <unistd.h> #include <signal.h> #include "global.hpp" #include "helper.hpp" #include "database.hpp" #include "message.hpp" #include "judge.hpp" #include "webserver.hpp" #include "contest.hpp" #include "attempt.hpp" using namespace std; static bool quit = false; class pjudge { public: pjudge() : sudde...
22.083333
73
0.596478
[ "vector" ]
eca2ecf88ecebd5db49cd13dc7a7ed317a0f2a27
3,504
cc
C++
src/mouse_controls.cc
WaldJohannaU/Classy3DViewer
2a3ccddc5f9a860a76a8293e9b2d41de72517096
[ "BSD-2-Clause" ]
9
2018-08-19T21:26:27.000Z
2022-01-24T07:19:36.000Z
src/mouse_controls.cc
WaldJohannaU/Classy3DViewer
2a3ccddc5f9a860a76a8293e9b2d41de72517096
[ "BSD-2-Clause" ]
null
null
null
src/mouse_controls.cc
WaldJohannaU/Classy3DViewer
2a3ccddc5f9a860a76a8293e9b2d41de72517096
[ "BSD-2-Clause" ]
1
2021-08-10T07:32:44.000Z
2021-08-10T07:32:44.000Z
/******************************************************* * Copyright (c) 2018, Johanna Wald * All rights reserved. * * This file is distributed under the GNU Lesser General Public License v3.0. * The complete license agreement can be obtained at: * http://www.gnu.org/licenses/lgpl-3.0.html **********************...
34.693069
129
0.673516
[ "vector" ]
ecabc15f6640df607bb1f5d343a8833590974c69
1,316
cpp
C++
algorithms/0040_CombinationSumII/0040_CombinationSumII.cpp
23468234/leetcode-question
35aad4065401018414de63d1a983ceacb51732a6
[ "MIT" ]
null
null
null
algorithms/0040_CombinationSumII/0040_CombinationSumII.cpp
23468234/leetcode-question
35aad4065401018414de63d1a983ceacb51732a6
[ "MIT" ]
null
null
null
algorithms/0040_CombinationSumII/0040_CombinationSumII.cpp
23468234/leetcode-question
35aad4065401018414de63d1a983ceacb51732a6
[ "MIT" ]
null
null
null
class Solution { public: vector<vector<int>> combinationSum2(vector<int>& candidates, int target) { if (candidates.empty()){ return {{}}; } vector<vector<int>> rst; vector<int> tmp; vector<bool> used(candidates.size(), false); sort(candidates.begin(), c...
28
124
0.430091
[ "vector" ]
ecaf46ff9cadd1cd6dc1fcc2bf0875a486865bfe
4,916
cpp
C++
fluffy/core/src/graphics/transformable.cpp
Lo-X/fluffy
24acf297ca81c611053fd4f55ea0988d65e84168
[ "WTFPL" ]
3
2015-12-27T14:42:53.000Z
2018-04-18T07:28:05.000Z
fluffy/core/src/graphics/transformable.cpp
lazybobcat/fluffy
24acf297ca81c611053fd4f55ea0988d65e84168
[ "WTFPL" ]
3
2018-04-27T14:26:29.000Z
2021-01-29T16:28:18.000Z
fluffy/core/src/graphics/transformable.cpp
lazybobcat/fluffy
24acf297ca81c611053fd4f55ea0988d65e84168
[ "WTFPL" ]
null
null
null
#include <fluffy/graphics/transformable.hpp> using namespace Fluffy; FloatRect transformRect(const glm::mat4& transform, const FloatRect& bounds) { // Transform the bounding rectangle 4 corners const Vector4f points[] = { transform * Vector4f(bounds.left, bounds.top, 1.f, 1.f), ...
26.148936
120
0.605574
[ "transform" ]
ecb068abc6f8a214ff589bb7ffb2c1429826d989
37,441
cc
C++
convert/texturator.cc
TyLindberg/usd_from_gltf
aaf90a29796d4eec24389dbf600edcbe225d6dec
[ "Apache-2.0" ]
1
2020-01-18T23:11:25.000Z
2020-01-18T23:11:25.000Z
convert/texturator.cc
TyLindberg/usd_from_gltf
aaf90a29796d4eec24389dbf600edcbe225d6dec
[ "Apache-2.0" ]
null
null
null
convert/texturator.cc
TyLindberg/usd_from_gltf
aaf90a29796d4eec24389dbf600edcbe225d6dec
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2019 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
35.455492
80
0.67613
[ "vector", "transform", "solid" ]
ecb49820a2cd97c665f124d6fac6eb7137c35341
3,245
cc
C++
codegen/cpp/cerata/src/cerata/parameter.cc
fnonnenmacher/fletcher
fc2098db0b84e5b3d30ad96f1bb9ae6655861811
[ "Apache-2.0" ]
3
2020-04-20T10:48:28.000Z
2022-02-08T00:31:08.000Z
codegen/cpp/cerata/src/cerata/parameter.cc
fnonnenmacher/fletcher
fc2098db0b84e5b3d30ad96f1bb9ae6655861811
[ "Apache-2.0" ]
2
2020-03-30T10:46:22.000Z
2020-07-27T12:34:50.000Z
codegen/cpp/cerata/src/cerata/parameter.cc
fnonnenmacher/fletcher
fc2098db0b84e5b3d30ad96f1bb9ae6655861811
[ "Apache-2.0" ]
1
2022-02-08T00:31:25.000Z
2022-02-08T00:31:25.000Z
// Copyright 2018-2019 Delft University of Technology // // 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 applica...
32.128713
113
0.681664
[ "object", "vector" ]
ecb4e62100a2918af127056e3a96c4343205c6ad
4,277
cpp
C++
aws-cpp-sdk-serverlessrepo/source/model/CreateCloudFormationChangeSetRequest.cpp
curiousjgeorge/aws-sdk-cpp
09b65deba03cfbef9a1e5d5986aa4de71bc03cd8
[ "Apache-2.0" ]
2
2019-03-11T15:50:55.000Z
2020-02-27T11:40:27.000Z
aws-cpp-sdk-serverlessrepo/source/model/CreateCloudFormationChangeSetRequest.cpp
curiousjgeorge/aws-sdk-cpp
09b65deba03cfbef9a1e5d5986aa4de71bc03cd8
[ "Apache-2.0" ]
null
null
null
aws-cpp-sdk-serverlessrepo/source/model/CreateCloudFormationChangeSetRequest.cpp
curiousjgeorge/aws-sdk-cpp
09b65deba03cfbef9a1e5d5986aa4de71bc03cd8
[ "Apache-2.0" ]
1
2019-01-18T13:03:55.000Z
2019-01-18T13:03:55.000Z
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
28.704698
137
0.768062
[ "model" ]
ecb65b04f620e9f2e5e0c4a0983d7b660ba0fd10
805
cpp
C++
data/train/cpp/ecb65b04f620e9f2e5e0c4a0983d7b660ba0fd1011003.cpp
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/train/cpp/ecb65b04f620e9f2e5e0c4a0983d7b660ba0fd1011003.cpp
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/train/cpp/ecb65b04f620e9f2e5e0c4a0983d7b660ba0fd1011003.cpp
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
#include <iostream> #include <vector> #include <algorithm> using namespace std; static const int MAX_WEIGHT = 3000, MAX_LOAD = 3000; int main() { int N; while (cin >> N, N != 0) { vector<int> W(N + 1), L(N + 1); for (int i = 1; i <= N; ++i) cin >> W[i] >> L[i]; vector...
24.393939
62
0.396273
[ "vector" ]
ecc78ed2d1e3371e3b89a9804307219c3aa925dc
3,558
cpp
C++
test/performance.cpp
dsharlet/ndarray
344d75d8af2697a7704a3326751c2d68d9227270
[ "Apache-2.0" ]
148
2019-10-30T18:59:30.000Z
2022-03-30T14:46:05.000Z
test/performance.cpp
ToKiNoBug/array
41beedc5c022486dd26f66b495b995f0af47b836
[ "Apache-2.0" ]
53
2019-11-10T08:12:34.000Z
2022-03-30T05:51:17.000Z
test/performance.cpp
ToKiNoBug/array
41beedc5c022486dd26f66b495b995f0af47b836
[ "Apache-2.0" ]
8
2020-07-25T16:51:36.000Z
2022-02-22T23:52:54.000Z
// Copyright 2019 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 ...
29.163934
99
0.606239
[ "shape" ]
ecc86635b669866a5bcd2a6655c60c0242ca80dd
2,336
hh
C++
neb/inc/com/centreon/delayed_delete.hh
sdelafond/centreon-broker
21178d98ed8a061ca71317d23c2026dbc4edaca2
[ "Apache-2.0" ]
null
null
null
neb/inc/com/centreon/delayed_delete.hh
sdelafond/centreon-broker
21178d98ed8a061ca71317d23c2026dbc4edaca2
[ "Apache-2.0" ]
null
null
null
neb/inc/com/centreon/delayed_delete.hh
sdelafond/centreon-broker
21178d98ed8a061ca71317d23c2026dbc4edaca2
[ "Apache-2.0" ]
null
null
null
/* ** Copyright 2012-2013 Centreon ** ** 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 t...
22.461538
76
0.622432
[ "object" ]
eccc58c3145d13b6990e41f24d7ad2100ab1dfcb
3,567
cpp
C++
src/shogun/structure/MultilabelSOLabels.cpp
srgnuclear/shogun
33c04f77a642416376521b0cd1eed29b3256ac13
[ "Ruby", "MIT" ]
1
2015-11-05T18:31:14.000Z
2015-11-05T18:31:14.000Z
src/shogun/structure/MultilabelSOLabels.cpp
waderly/shogun
9288b6fa38e001d63c32188f7f847dadea66e2ae
[ "Ruby", "MIT" ]
null
null
null
src/shogun/structure/MultilabelSOLabels.cpp
waderly/shogun
9288b6fa38e001d63c32188f7f847dadea66e2ae
[ "Ruby", "MIT" ]
null
null
null
/* * This software is distributed under BSD 3-clause license (see LICENSE file). * * Written (W) 2013 Thoralf Klein * Written (W) 2014 Abinash Panda * Copyright (C) 2013 Thoralf Klein and Zuse-Institute-Berlin (ZIB) * Copyright (C) 2014 Abinash Panda */ #include <shogun/structure/MultilabelSOLabels.h> using na...
24.101351
102
0.762826
[ "object" ]
ecd3aa46539604705c1e5bcf234d13f76d8ccbc6
1,364
cc
C++
jax/codeforces/uncategorized/global-round-15/a_subsequence_permutation.cc
JaxVanYang/acm
ee41f1cbf692b7b1463a9467401bb6e7d38aecce
[ "MIT" ]
2
2022-01-01T16:55:02.000Z
2022-03-16T14:47:29.000Z
jax/codeforces/uncategorized/global-round-15/a_subsequence_permutation.cc
JaxVanYang/acm
ee41f1cbf692b7b1463a9467401bb6e7d38aecce
[ "MIT" ]
null
null
null
jax/codeforces/uncategorized/global-round-15/a_subsequence_permutation.cc
JaxVanYang/acm
ee41f1cbf692b7b1463a9467401bb6e7d38aecce
[ "MIT" ]
null
null
null
// Verbose template for CP // You can create a snippet for this in VS Code #include <iostream> #include <vector> #include <algorithm> using namespace std; using ll = long long; using ull = unsigned long long; using vi = vector<int>; using pi = pair<int, int>; #define REP(i, l, r) for (int i = l; i < r; ++i) #define F...
20.058824
58
0.60044
[ "vector" ]
ece2519314078eca6df9787057e66c4a69d843c7
1,053
cpp
C++
day9.cpp
Semedi/aoc_2020
30a323c7dcc2dd34a19b6e67bfbb6f9f40f168f9
[ "MIT" ]
null
null
null
day9.cpp
Semedi/aoc_2020
30a323c7dcc2dd34a19b6e67bfbb6f9f40f168f9
[ "MIT" ]
null
null
null
day9.cpp
Semedi/aoc_2020
30a323c7dcc2dd34a19b6e67bfbb6f9f40f168f9
[ "MIT" ]
null
null
null
#include <iostream> #include <fstream> #include <string> #include <vector> #include <numeric> #include <algorithm> using namespace std; int main () { std::ifstream file("input/day9.txt"); std::string str; std::vector<long> v; while (std::getline(file, str)) { v.push_back(atol(str.c_str())); ...
21.9375
98
0.430199
[ "vector" ]
ece4213493c22a6aac6443ffc2cdb6eeb68fc522
2,949
cpp
C++
openbr/plugins/metadata/expandrect.cpp
wittayaatt/openbr
26cb128f740f46b7c18b346e2bcf2af7a8de29da
[ "Apache-2.0" ]
1,883
2015-01-04T07:04:24.000Z
2022-03-30T13:33:37.000Z
openbr/plugins/metadata/expandrect.cpp
wittayaatt/openbr
26cb128f740f46b7c18b346e2bcf2af7a8de29da
[ "Apache-2.0" ]
272
2015-01-02T09:53:20.000Z
2022-03-29T08:04:33.000Z
openbr/plugins/metadata/expandrect.cpp
wittayaatt/openbr
26cb128f740f46b7c18b346e2bcf2af7a8de29da
[ "Apache-2.0" ]
718
2015-01-02T18:51:07.000Z
2022-03-29T08:10:53.000Z
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright 2012 The MITRE Corporation * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * y...
43.367647
117
0.535097
[ "transform" ]
ece6850d495866266599268ff8a0a3a70f003abb
2,383
cc
C++
src/dnnl/enlarge_mkl.cc
inordeng/TASO
17a01a7fab21795d8bacfd7ba4f3ba00f11aedf3
[ "Apache-2.0" ]
529
2019-10-01T00:01:08.000Z
2022-03-17T12:56:01.000Z
src/dnnl/enlarge_mkl.cc
inordeng/TASO
17a01a7fab21795d8bacfd7ba4f3ba00f11aedf3
[ "Apache-2.0" ]
68
2019-10-10T18:41:40.000Z
2022-03-17T07:42:49.000Z
src/dnnl/enlarge_mkl.cc
inordeng/TASO
17a01a7fab21795d8bacfd7ba4f3ba00f11aedf3
[ "Apache-2.0" ]
81
2019-10-04T23:48:12.000Z
2022-03-17T13:04:25.000Z
/* Copyright 2020 Stanford, Tsinghua * * 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...
30.164557
100
0.644985
[ "model" ]
eced1cb5789162b73602988c0e67f167ee5a1a05
3,131
hpp
C++
include/gamelib/utils/conversions.hpp
mall0c/GameLib
df4116b53c39be7b178dd87f7eb0fe32a94d00d3
[ "MIT" ]
1
2020-02-17T09:53:36.000Z
2020-02-17T09:53:36.000Z
include/gamelib/utils/conversions.hpp
mall0c/GameLib
df4116b53c39be7b178dd87f7eb0fe32a94d00d3
[ "MIT" ]
null
null
null
include/gamelib/utils/conversions.hpp
mall0c/GameLib
df4116b53c39be7b178dd87f7eb0fe32a94d00d3
[ "MIT" ]
null
null
null
#ifndef GAMELIB_CONVERSIONS_HPP #define GAMELIB_CONVERSIONS_HPP #include <SFML/System/Vector2.hpp> #include <SFML/Graphics/Rect.hpp> #include "math/geometry/Vector.hpp" #include "math/geometry/AABB.hpp" namespace gamelib { template <class T> math::Vec2<T>& convert(sf::Vector2<T>& vec) { return *re...
24.271318
80
0.561163
[ "geometry", "vector" ]
eceed06e0fb574fbaa2130cb56bf88f434b812c3
3,929
hxx
C++
opencascade/Message_Printer.hxx
valgur/OCP
2f7d9da73a08e4ffe80883614aedacb27351134f
[ "Apache-2.0" ]
37
2020-01-20T21:50:21.000Z
2022-02-09T13:01:09.000Z
opencascade/Message_Printer.hxx
valgur/OCP
2f7d9da73a08e4ffe80883614aedacb27351134f
[ "Apache-2.0" ]
66
2019-12-20T16:07:36.000Z
2022-03-15T21:56:10.000Z
opencascade/Message_Printer.hxx
valgur/OCP
2f7d9da73a08e4ffe80883614aedacb27351134f
[ "Apache-2.0" ]
22
2020-04-03T21:59:52.000Z
2022-03-06T18:43:35.000Z
// Created on: 2001-01-06 // Created by: OCC Team // Copyright (c) 2001-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as publ...
40.505155
128
0.753118
[ "object" ]
ecf5c5451afb998fdef492852c77c6a5bed84709
3,764
cpp
C++
Source/wali/lib/graph/Functional.cpp
jusito/WALi-OpenNWA
2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99
[ "MIT" ]
null
null
null
Source/wali/lib/graph/Functional.cpp
jusito/WALi-OpenNWA
2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99
[ "MIT" ]
null
null
null
Source/wali/lib/graph/Functional.cpp
jusito/WALi-OpenNWA
2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99
[ "MIT" ]
null
null
null
#include "wali/graph/Functional.hpp" #include "wali/graph/IntraGraph.hpp" #include "llvm/Support/ErrorHandling.h" #include <boost/cast.hpp> using namespace wali; using namespace std; using namespace wali::graph; SemElemFunctional::SemElemFunctional() : type(TRASH), lhs(NULL), rhs(NULL), value(NULL), intra...
24.128205
98
0.689426
[ "vector" ]
ecf734ee9077eab4f4f7d7b7a3b816792292bc63
5,543
cpp
C++
indra/test/llhttpdate_tut.cpp
SaladDais/LSO2-VM-Performance
d7ec9ad9daa9a2c9e48c5f06cd768606e3e50638
[ "ISC" ]
1
2022-01-29T07:10:03.000Z
2022-01-29T07:10:03.000Z
indra/test/llhttpdate_tut.cpp
SaladDais/LSO2-VM-Performance
d7ec9ad9daa9a2c9e48c5f06cd768606e3e50638
[ "ISC" ]
null
null
null
indra/test/llhttpdate_tut.cpp
SaladDais/LSO2-VM-Performance
d7ec9ad9daa9a2c9e48c5f06cd768606e3e50638
[ "ISC" ]
1
2021-10-01T22:22:27.000Z
2021-10-01T22:22:27.000Z
/** * @file llhttpdate_tut.cpp * @author Kartic Krishnamurthy * @date Wednesday, 18 Jul 2007 17:00:00 GMT :) * * $LicenseInfo:firstyear=2007&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * mo...
32.994048
89
0.639365
[ "object" ]
ecfaa25dcf3a53213d623d01d31bab322ac0f7a9
982
cpp
C++
android-31/android/service/carrier/MessagePdu.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
12
2020-03-26T02:38:56.000Z
2022-03-14T08:17:26.000Z
android-31/android/service/carrier/MessagePdu.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
1
2021-01-27T06:07:45.000Z
2021-11-13T19:19:43.000Z
android-29/android/service/carrier/MessagePdu.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
3
2021-02-02T12:34:55.000Z
2022-03-08T07:45:57.000Z
#include "../../os/Parcel.hpp" #include "./MessagePdu.hpp" namespace android::service::carrier { // Fields JObject MessagePdu::CREATOR() { return getStaticObjectField( "android.service.carrier.MessagePdu", "CREATOR", "Landroid/os/Parcelable$Creator;" ); } // QJniObject forward MessagePdu::MessageP...
18.528302
74
0.663951
[ "object" ]
ecfc49e33d372fdc0e6432ad0bd2af589cd39845
5,026
cpp
C++
modules/ocl/perf/perf_split_merge.cpp
Nerei/opencv
92d5f8744c872ccf63b17334f018343973353e47
[ "BSD-3-Clause" ]
1
2015-04-22T14:10:46.000Z
2015-04-22T14:10:46.000Z
modules/ocl/perf/perf_split_merge.cpp
ameydhar/opencv
1c3bfae2121f689535ab1a17284f40f5d64e0927
[ "BSD-3-Clause" ]
null
null
null
modules/ocl/perf/perf_split_merge.cpp
ameydhar/opencv
1c3bfae2121f689535ab1a17284f40f5d64e0927
[ "BSD-3-Clause" ]
2
2018-05-03T21:08:19.000Z
2020-09-26T06:27:08.000Z
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
34.190476
91
0.640072
[ "vector" ]
a605297a9c8918931e3dd54e375510a98f1ee852
3,787
hxx
C++
opencascade/BRepAlgo_Image.hxx
valgur/OCP
2f7d9da73a08e4ffe80883614aedacb27351134f
[ "Apache-2.0" ]
37
2020-01-20T21:50:21.000Z
2022-02-09T13:01:09.000Z
opencascade/BRepAlgo_Image.hxx
valgur/OCP
2f7d9da73a08e4ffe80883614aedacb27351134f
[ "Apache-2.0" ]
66
2019-12-20T16:07:36.000Z
2022-03-15T21:56:10.000Z
opencascade/BRepAlgo_Image.hxx
valgur/OCP
2f7d9da73a08e4ffe80883614aedacb27351134f
[ "Apache-2.0" ]
22
2020-04-03T21:59:52.000Z
2022-03-06T18:43:35.000Z
// Created on: 1995-10-26 // Created by: Yves FRICAUD // Copyright (c) 1995-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU L...
30.055556
94
0.742012
[ "shape" ]
a60769979b8c66653caad5c79391a7971cc0a0e2
4,106
cpp
C++
qcom_msm8916_64_android5.0/sources/twrp/bootable/recovery/gui/listbox.cpp
largeriver/twrp
767b63ed5e0763538466569984cf7930d9c59921
[ "MIT" ]
null
null
null
qcom_msm8916_64_android5.0/sources/twrp/bootable/recovery/gui/listbox.cpp
largeriver/twrp
767b63ed5e0763538466569984cf7930d9c59921
[ "MIT" ]
null
null
null
qcom_msm8916_64_android5.0/sources/twrp/bootable/recovery/gui/listbox.cpp
largeriver/twrp
767b63ed5e0763538466569984cf7930d9c59921
[ "MIT" ]
null
null
null
/* Copyright 2013 bigbiff/Dees_Troy TeamWin This file is part of TWRP/TeamWin Recovery Project. TWRP is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any ...
24.73494
100
0.70263
[ "render" ]
a608079fc8f5a8019d9be1952aff248c4b3314c8
8,067
tcc
C++
libelement/dependencies/memorypool/MemoryPool.tcc
HarryMills-UL/Element
83e4e99cef42172f54bf7e839b37e40a4e25a6cb
[ "Apache-2.0" ]
12
2019-12-17T18:27:04.000Z
2021-06-04T08:46:05.000Z
libelement/dependencies/memorypool/MemoryPool.tcc
HarryMills-UL/Element
83e4e99cef42172f54bf7e839b37e40a4e25a6cb
[ "Apache-2.0" ]
12
2020-10-27T14:30:37.000Z
2022-01-05T16:50:53.000Z
libelement/dependencies/memorypool/MemoryPool.tcc
HarryMills-UL/Element
83e4e99cef42172f54bf7e839b37e40a4e25a6cb
[ "Apache-2.0" ]
6
2020-01-10T23:45:48.000Z
2021-07-01T22:58:01.000Z
/*- * Copyright (c) 2013 Cosku Acay, http://www.coskuacay.com * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, co...
30.441509
108
0.739184
[ "object" ]
a6085e7b98045714b5cf523ada2641e4e638fbd7
8,197
cpp
C++
test/unit/test_common.cpp
QuLogic/PROJ
f8438ec596cce6f4b3e0c19092df9eaf22e93cd3
[ "MIT" ]
null
null
null
test/unit/test_common.cpp
QuLogic/PROJ
f8438ec596cce6f4b3e0c19092df9eaf22e93cd3
[ "MIT" ]
null
null
null
test/unit/test_common.cpp
QuLogic/PROJ
f8438ec596cce6f4b3e0c19092df9eaf22e93cd3
[ "MIT" ]
null
null
null
/****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2018 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2018, ...
40.781095
79
0.604367
[ "vector" ]
a60b4dcee7faa50186a40b648c081cfd9fd597fb
37,447
cpp
C++
src/NumbTh.cpp
bryongloden/HElib
c13dff5ce752fb9fcec9ef81a8db1c0f146fff39
[ "Apache-2.0" ]
10
2018-03-29T17:10:51.000Z
2021-07-28T06:46:20.000Z
src/NumbTh.cpp
bryongloden/HElib
c13dff5ce752fb9fcec9ef81a8db1c0f146fff39
[ "Apache-2.0" ]
3
2017-10-17T08:04:01.000Z
2019-03-28T06:36:40.000Z
src/NumbTh.cpp
bryongloden/HElib
c13dff5ce752fb9fcec9ef81a8db1c0f146fff39
[ "Apache-2.0" ]
5
2017-10-16T09:14:52.000Z
2020-04-10T07:24:51.000Z
/* Copyright (C) 2012-2017 IBM Corp. * This program is 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...
25.66621
80
0.575427
[ "object", "vector" ]
a60e68406423024ab905348b90f593c4d2824c75
766
hpp
C++
include/sharpen/EventLoopThread.hpp
iceBear67/Sharpen
4f00fb13a2b3e7dc26cdb34596d58f958eb341f8
[ "MIT" ]
null
null
null
include/sharpen/EventLoopThread.hpp
iceBear67/Sharpen
4f00fb13a2b3e7dc26cdb34596d58f958eb341f8
[ "MIT" ]
null
null
null
include/sharpen/EventLoopThread.hpp
iceBear67/Sharpen
4f00fb13a2b3e7dc26cdb34596d58f958eb341f8
[ "MIT" ]
null
null
null
#pragma once #ifndef _SHARPEN_EVENTLOOPTHREAD_HPP #define _SHARPEN_EVENTLOOPTHREAD_HPP #include <thread> #include "EventLoop.hpp" namespace sharpen { class EventLoopThread:public sharpen::Noncopyable,public sharpen::Nonmovable { private: sharpen::EventLoop loop_; std::thread thread_; ...
20.702703
153
0.674935
[ "vector" ]
a60fe2381519b6638758854aa9fb41958e3e5182
12,982
hpp
C++
examples/opencl/benchmark_vector/directcl.hpp
STEllAR-GROUP/hpxcl
1d5fd791016548856d65866f64ca169778402c4f
[ "BSL-1.0" ]
30
2015-10-01T16:15:02.000Z
2022-03-17T12:21:47.000Z
examples/opencl/benchmark_vector/directcl.hpp
STEllAR-GROUP/hpxcl
1d5fd791016548856d65866f64ca169778402c4f
[ "BSL-1.0" ]
50
2015-06-21T01:05:34.000Z
2021-08-06T18:20:54.000Z
examples/opencl/benchmark_vector/directcl.hpp
STEllAR-GROUP/hpxcl
1d5fd791016548856d65866f64ca169778402c4f
[ "BSL-1.0" ]
23
2015-03-18T11:18:36.000Z
2021-12-27T16:36:32.000Z
// Copyright (c) 2014 Martin Stumpf // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef BENCHMARK_DIRECTCL_HPP_ #define BENCHMARK_DIRECTCL_HPP_ #include "gpu_code.hpp" #include <vector> #include <cma...
33.372751
80
0.636112
[ "vector" ]
a6107acc87f9e6fae6769cd86d0739ac38ccd68d
913
cpp
C++
largest-rectangle-in-histogram/largest-rectangle-in-histogram.cpp
arpitkekri/My-Leetcode-Solution-In-CPP
345f1c53c627fce33ee84672c5d3661863367040
[ "MIT" ]
4
2021-06-21T04:32:12.000Z
2021-11-02T04:20:36.000Z
largest-rectangle-in-histogram/largest-rectangle-in-histogram.cpp
arpitkekri/My-Leetcode-Solution-In-CPP
345f1c53c627fce33ee84672c5d3661863367040
[ "MIT" ]
null
null
null
largest-rectangle-in-histogram/largest-rectangle-in-histogram.cpp
arpitkekri/My-Leetcode-Solution-In-CPP
345f1c53c627fce33ee84672c5d3661863367040
[ "MIT" ]
2
2021-08-19T11:27:18.000Z
2021-09-26T14:51:30.000Z
class Solution { public: int largestRectangleArea(vector<int>& heights) { int n = heights.size(); vector<int> nsl(n), nsr(n); stack<int> stk; for(int i = 0; i < n; i++) { while(!stk.empty() && heights[stk.top()] >= heights[i]) stk.pop(); if(stk...
28.53125
67
0.374589
[ "vector" ]
a61564c50bcb33670c74d13cb996b58a67ff0b79
1,020
cpp
C++
381-Insert_Delete_GetRandom_O(1)_-_Duplicates_allowed.cpp
elsdrium/LeetCode-practice
a3b1fa5dd200155a636d36cd570e2454f7194e10
[ "MIT" ]
null
null
null
381-Insert_Delete_GetRandom_O(1)_-_Duplicates_allowed.cpp
elsdrium/LeetCode-practice
a3b1fa5dd200155a636d36cd570e2454f7194e10
[ "MIT" ]
null
null
null
381-Insert_Delete_GetRandom_O(1)_-_Duplicates_allowed.cpp
elsdrium/LeetCode-practice
a3b1fa5dd200155a636d36cd570e2454f7194e10
[ "MIT" ]
null
null
null
class RandomizedCollection { unordered_map<int, unordered_set<int>> umap; vector<int> vec; public: RandomizedCollection() { srand(time(0)); } bool insert(int val) { if ( umap.find(val) == umap.end() ) { umap[val] = unordered_set<int>(); umap[val].insert(v...
26.842105
57
0.496078
[ "vector" ]
a6185ab8cbd3668ae4039e18c33bb38b83a5814b
1,920
cc
C++
cpp/iteration.cc
abhineet99/pmemkv-tools
ba89d64c359dc136ca8f2304d573c0d8390d3be3
[ "Apache-2.0" ]
null
null
null
cpp/iteration.cc
abhineet99/pmemkv-tools
ba89d64c359dc136ca8f2304d573c0d8390d3be3
[ "Apache-2.0" ]
null
null
null
cpp/iteration.cc
abhineet99/pmemkv-tools
ba89d64c359dc136ca8f2304d573c0d8390d3be3
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <sys/time.h> #include <vector> #include "libpmemkv.h" #define LOG(msg) std::cout << msg << "\n" using namespace pmemkv; static const int COUNT = 100000000; static const string PATH = "/dev/shm/pmemkv"; static double current_seconds() { struct timeval tv; gettimeofday(&tv, NULL);...
29.538462
99
0.576042
[ "vector" ]
a61d8ef1ba170fbe4b4aaaf966d8a25ba2d7e3b5
8,939
cpp
C++
cls/src/v20201016/model/AlarmTargetInfo.cpp
sinjoywong/tencentcloud-sdk-cpp
1b931d20956a90b15a6720f924e5c69f8786f9f4
[ "Apache-2.0" ]
null
null
null
cls/src/v20201016/model/AlarmTargetInfo.cpp
sinjoywong/tencentcloud-sdk-cpp
1b931d20956a90b15a6720f924e5c69f8786f9f4
[ "Apache-2.0" ]
null
null
null
cls/src/v20201016/model/AlarmTargetInfo.cpp
sinjoywong/tencentcloud-sdk-cpp
1b931d20956a90b15a6720f924e5c69f8786f9f4
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
27.76087
142
0.684528
[ "model" ]
98aba0d7ca0c293312a86a77cacda12ad32980ad
5,868
cpp
C++
GraphView/Controller.cpp
yoann01/FabricUI
d4d24f25245b8ccd2d206aded2b6c5f2aca09155
[ "BSD-3-Clause" ]
null
null
null
GraphView/Controller.cpp
yoann01/FabricUI
d4d24f25245b8ccd2d206aded2b6c5f2aca09155
[ "BSD-3-Clause" ]
null
null
null
GraphView/Controller.cpp
yoann01/FabricUI
d4d24f25245b8ccd2d206aded2b6c5f2aca09155
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2010-2017 Fabric Software Inc. All rights reserved. #include <iostream> #include <FabricUI/GraphView/Controller.h> #include <FabricUI/GraphView/Graph.h> #include <FabricUI/GraphView/Node.h> #include <FabricUI/GraphView/BackDropNode.h> #include <FabricUI/GraphView/NodeBubble.h> #include <FabricUI/Graph...
24.148148
92
0.702454
[ "vector" ]
98ac853687b94b4e554d0416f4230214bcbd774f
8,380
cpp
C++
CsBlockchain/Source/CsBlockchain/Blockchain/Ethereum/CsEthereumContract.cpp
closedsum/core
c3cae44a177b9684585043a275130f9c7b67fef0
[ "Unlicense" ]
2
2019-03-17T10:43:53.000Z
2021-04-20T21:24:19.000Z
CsBlockchain/Source/CsBlockchain/Blockchain/Ethereum/CsEthereumContract.cpp
closedsum/core
c3cae44a177b9684585043a275130f9c7b67fef0
[ "Unlicense" ]
null
null
null
CsBlockchain/Source/CsBlockchain/Blockchain/Ethereum/CsEthereumContract.cpp
closedsum/core
c3cae44a177b9684585043a275130f9c7b67fef0
[ "Unlicense" ]
null
null
null
// Copyright 2017-2019 Closed Sum Games, LLC. All Rights Reserved. #include "Blockchain/Ethereum/CsEthereumContract.h" #include "CsBlockchain.h" #include "Json.h" #include "JsonObjectConverter.h" #include "Runtime/Core/Public/HAL/FileManagerGeneric.h" // Web3DeployLink #pragma region FCsEthereumWeb3DeployLink::FCsE...
27.933333
131
0.719451
[ "object" ]
98c0a1f2f523b33e8c99a0c0c2fa1c2d76b4ad57
492
hpp
C++
Cpp/53.hpp
FlyAndNotDown/LeetCode
889819ff7f64819e966fc6f9dd80110cf2bf6d3c
[ "MIT" ]
4
2018-06-18T05:39:25.000Z
2022-01-04T07:35:52.000Z
Cpp/53.hpp
FlyAndNotDown/LeetCode
889819ff7f64819e966fc6f9dd80110cf2bf6d3c
[ "MIT" ]
20
2019-11-30T03:42:40.000Z
2020-05-17T03:25:43.000Z
Cpp/53.hpp
FlyAndNotDown/LeetCode
889819ff7f64819e966fc6f9dd80110cf2bf6d3c
[ "MIT" ]
2
2020-02-08T14:10:42.000Z
2021-09-23T13:51:36.000Z
/** * @no 53 * @name Maximum Subarray */ class Solution { public: int maxSubArray(vector<int>& nums) { int max, temp = 0; bool inited = false; for (int i = 0; i < nums.size(); i++) { temp = temp + nums[i] > nums[i] ? temp + nums[i] : nums[i]; if (inited) { ...
23.428571
71
0.404472
[ "vector" ]
98c2d344b25187a588db8e9b741574a9da80ebcc
3,274
cpp
C++
Gems/EMotionFX/Code/Tests/ProvidesUI/AnimGraph/SimpleAnimGraphUIFixture.cpp
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
11
2021-07-08T09:58:26.000Z
2022-03-17T17:59:26.000Z
Gems/EMotionFX/Code/Tests/ProvidesUI/AnimGraph/SimpleAnimGraphUIFixture.cpp
RoddieKieley/o3de
e804fd2a4241b039a42d9fa54eaae17dc94a7a92
[ "Apache-2.0", "MIT" ]
29
2021-07-06T19:33:52.000Z
2022-03-22T10:27:49.000Z
Gems/EMotionFX/Code/Tests/ProvidesUI/AnimGraph/SimpleAnimGraphUIFixture.cpp
RoddieKieley/o3de
e804fd2a4241b039a42d9fa54eaae17dc94a7a92
[ "Apache-2.0", "MIT" ]
4
2021-07-06T19:24:43.000Z
2022-03-31T12:42:27.000Z
/* * 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 <EMotionFX/CommandSystem/Source/AnimGraphCommands.h> #include <EMotionFX/Source/AnimGraph...
53.672131
165
0.726329
[ "3d" ]
98c97b9535cf6f4e6ee1f3535cf2b083e62a1923
480
cpp
C++
Test/Expect/test085.cpp
dMajoIT/spin2cpp
f2ee655d150c9d69042b2dfaf8cae57123b7702c
[ "MIT" ]
39
2015-02-10T13:43:24.000Z
2022-03-08T14:56:41.000Z
Test/Expect/test085.cpp
cbmeeks/spin2cpp
d1707a50ee90d944590a6e82c6227a6ff6ce1042
[ "MIT" ]
230
2015-04-12T22:04:54.000Z
2022-03-30T05:22:11.000Z
Test/Expect/test085.cpp
cbmeeks/spin2cpp
d1707a50ee90d944590a6e82c6227a6ff6ce1042
[ "MIT" ]
21
2016-03-05T05:15:06.000Z
2022-03-24T11:58:15.000Z
#define __SPIN2CPP__ #include <propeller.h> #include "test085.h" void test085::Main(void) { Fds.Start(31, 30, 0, 115200); Fds.Str("object array test\r\n"); Printn(0); Printn(1); Printn(2); Fds.Str("increment v[0]\n\r"); // should be the same as v[0].incn V[0].Incn(); Printn(0); Printn(1); Printn(...
15.483871
36
0.575
[ "object" ]
98c9cb0b51e43ce3c1e2bdb2d308fc8ec72f2508
2,761
cpp
C++
wizards/display/displayplugintemplate.cpp
nblsyed/hobbits
3264da716743487f2ddff286122d6347b18770e2
[ "MIT" ]
null
null
null
wizards/display/displayplugintemplate.cpp
nblsyed/hobbits
3264da716743487f2ddff286122d6347b18770e2
[ "MIT" ]
null
null
null
wizards/display/displayplugintemplate.cpp
nblsyed/hobbits
3264da716743487f2ddff286122d6347b18770e2
[ "MIT" ]
null
null
null
#include "%{HeaderFileName}" #include "%{FormHeaderFileName}" %{ClassName}::%{ClassName}() : m_renderConfig(new DisplayRenderConfig()) { // TODO: set up actual render config for this display (e.g. when it updates, if it's asynchronous, etc) m_renderConfig->setFullRedrawTriggers(DisplayRenderConfig::NewBitO...
30.677778
155
0.66063
[ "render" ]
98cb6537d2260b7fe8df436c97089be569fc3640
1,308
cpp
C++
Dynamic Programming/Grid_path.cpp
su050300/CSES-Problemset-Solutions
292281f9ac3c57c21c8208b30087386c29238d17
[ "MIT" ]
2
2021-02-05T04:21:42.000Z
2021-02-10T14:24:38.000Z
Dynamic Programming/Grid_path.cpp
su050300/CSES-Problemset-Solutions
292281f9ac3c57c21c8208b30087386c29238d17
[ "MIT" ]
null
null
null
Dynamic Programming/Grid_path.cpp
su050300/CSES-Problemset-Solutions
292281f9ac3c57c21c8208b30087386c29238d17
[ "MIT" ]
null
null
null
#pragma GCC optimize("Ofast") #include <bits/stdc++.h> using namespace std; #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define ll long long int #define fast ios_base::sync_with_stdio(false) #define fast_input cin.tie(NULL) #define fast_output cout.tie(...
20.761905
97
0.573394
[ "vector" ]
98cc945503c4576876ff33e31fc3c91a9acb8ebc
5,136
cpp
C++
wallpaper-one-oct15/emulator/hardware.cpp
paulscottrobson/assorted-archives
87ce21ef1556bed441fffbb5c4c3c11c06324385
[ "MIT" ]
null
null
null
wallpaper-one-oct15/emulator/hardware.cpp
paulscottrobson/assorted-archives
87ce21ef1556bed441fffbb5c4c3c11c06324385
[ "MIT" ]
null
null
null
wallpaper-one-oct15/emulator/hardware.cpp
paulscottrobson/assorted-archives
87ce21ef1556bed441fffbb5c4c3c11c06324385
[ "MIT" ]
1
2020-01-02T13:54:19.000Z
2020-01-02T13:54:19.000Z
// ******************************************************************************************************************************* // ******************************************************************************************************************************* // // Name: hardware.c // Purpose: Hardware handling ro...
39.813953
130
0.343653
[ "object" ]
98d111cd58d014293aed4004e3a412bb8cba897c
4,129
hpp
C++
inc/MLPModel.hpp
LorisFriedel/learning-sign-language
f87767c43a11c01885628c1de10daa9d1a58e6ad
[ "MIT" ]
null
null
null
inc/MLPModel.hpp
LorisFriedel/learning-sign-language
f87767c43a11c01885628c1de10daa9d1a58e6ad
[ "MIT" ]
null
null
null
inc/MLPModel.hpp
LorisFriedel/learning-sign-language
f87767c43a11c01885628c1de10daa9d1a58e6ad
[ "MIT" ]
null
null
null
// // @author Loris Friedel // #pragma once #include <opencv2/core/mat.hpp> #include <ml.h> #include "StatPredict.hpp" #include "LabelMap.hpp" class MLPModel { public: /** * Instantiate a MLP model. * * @param nbOfHiddenLayer Number of hidden layer for the neural network. * @param nbOfNeuro...
27.344371
114
0.642044
[ "vector", "model" ]
98da81784aef0696197017d6a3b2b7c36b435bd3
2,715
cpp
C++
Leetcode/practice/calcEquation.cpp
Shahraaz/CP_P_S5
b068ad02d34338337e549d92a14e3b3d9e8df712
[ "MIT" ]
null
null
null
Leetcode/practice/calcEquation.cpp
Shahraaz/CP_P_S5
b068ad02d34338337e549d92a14e3b3d9e8df712
[ "MIT" ]
null
null
null
Leetcode/practice/calcEquation.cpp
Shahraaz/CP_P_S5
b068ad02d34338337e549d92a14e3b3d9e8df712
[ "MIT" ]
null
null
null
// Optimise #include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "/home/shahraaz/bin/debug.h" #else #define db(...) #endif using ll = long long; #define f first #define s second #define pb push_back #define all(v) v.begin(), v.end() const int NAX = 2e5 + 5, MOD = 1000000007; class Solution { public: ...
27.424242
131
0.387477
[ "vector" ]
98e3a53b813c84d3e040580e8344c778e6918198
6,020
cpp
C++
qtdeclarative/tests/auto/qml/qqmlconsole/tst_qqmlconsole.cpp
wgnet/wds_qt
8db722fd367d2d0744decf99ac7bafaba8b8a3d3
[ "Apache-2.0" ]
1
2020-04-30T15:47:35.000Z
2020-04-30T15:47:35.000Z
qtdeclarative/tests/auto/qml/qqmlconsole/tst_qqmlconsole.cpp
wgnet/wds_qt
8db722fd367d2d0744decf99ac7bafaba8b8a3d3
[ "Apache-2.0" ]
null
null
null
qtdeclarative/tests/auto/qml/qqmlconsole/tst_qqmlconsole.cpp
wgnet/wds_qt
8db722fd367d2d0744decf99ac7bafaba8b8a3d3
[ "Apache-2.0" ]
null
null
null
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the test suite of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding valid commercia...
35.411765
138
0.680897
[ "object" ]
98e5b6ce8d394b0f1569e0540d62a0b15a7787e4
7,955
cpp
C++
aslam_nonparametric_estimation/bsplines_python/src/BSplinePython.cpp
JzHuai0108/kalibr
32d095162408c90ebf0c49522d27732ffec8f35f
[ "BSD-4-Clause" ]
10
2021-08-20T21:12:22.000Z
2022-03-18T03:20:25.000Z
aslam_nonparametric_estimation/bsplines_python/src/BSplinePython.cpp
JzHuai0108/kalibr
32d095162408c90ebf0c49522d27732ffec8f35f
[ "BSD-4-Clause" ]
null
null
null
aslam_nonparametric_estimation/bsplines_python/src/BSplinePython.cpp
JzHuai0108/kalibr
32d095162408c90ebf0c49522d27732ffec8f35f
[ "BSD-4-Clause" ]
4
2021-08-17T12:16:25.000Z
2021-11-06T02:52:35.000Z
#include <numpy_eigen/boost_python_headers.hpp> #include <bsplines/BSpline.hpp> using namespace bsplines; using namespace boost::python; // Function wrappers turn std::pairs into tuples. boost::python::tuple timeInterval1(const bsplines::BSpline * bs) { std::pair<double,double> ti = bs->timeInterval(); return ...
61.192308
194
0.740541
[ "object", "vector" ]
98e631f302be80022c7656d2684267e527a7b7dd
1,774
cpp
C++
07/b.cpp
mratkovic/advent_of_code_2017
d50c49e8f2512c5a53f12e6640e5765bf7b025d0
[ "MIT" ]
null
null
null
07/b.cpp
mratkovic/advent_of_code_2017
d50c49e8f2512c5a53f12e6640e5765bf7b025d0
[ "MIT" ]
null
null
null
07/b.cpp
mratkovic/advent_of_code_2017
d50c49e8f2512c5a53f12e6640e5765bf7b025d0
[ "MIT" ]
null
null
null
#include <iostream> #include <iterator> #include <algorithm> #include <vector> #include <unordered_map> #include <string> #include <map> #include <sstream> #include <assert.h> using namespace std; unordered_map<string, int> w; unordered_map<string, vector<string>> e; unordered_map<string, int> in_edges; unordered_map...
26.477612
113
0.617813
[ "vector", "transform" ]
98ed98adc3055f700843d521267020a5611e9352
5,446
cpp
C++
cplusplus/src/util/Pathfinder.cpp
csci-599-applied-ml-for-games/DeepRTS
595ce5105cfa36030f8102d659a0d59e6f707686
[ "MIT" ]
null
null
null
cplusplus/src/util/Pathfinder.cpp
csci-599-applied-ml-for-games/DeepRTS
595ce5105cfa36030f8102d659a0d59e6f707686
[ "MIT" ]
1
2019-11-25T06:40:34.000Z
2019-12-03T03:59:13.000Z
cplusplus/src/util/Pathfinder.cpp
maswin/DeepRTS
9922078951810d65fc212a0c2ee32f75765d3cd0
[ "MIT" ]
1
2019-12-03T04:54:57.000Z
2019-12-03T04:54:57.000Z
// // Created by Per-Arne on 26.02.2017. // #include <list> #include <queue> #include <unordered_map> #include <vector> #include <map> #include <set> #include "Pathfinder.h" #include "../environment/Tile.h" #include "../util/PriorityQueue.hpp" #include "../Constants.h" #include "../environment/Tilemap.h" bool Pathf...
23.174468
119
0.585384
[ "vector" ]
98f2030600a9f614dbe6651dd60c6ffd706d7766
4,314
cpp
C++
clever_algorithms/demos/genetic_algorithm.cpp
GreatV/CleverAlgorithms
4cda9e3469a6076128dfbbb62c6f82d3a1f12746
[ "MIT" ]
2
2021-11-08T00:26:09.000Z
2021-12-21T08:16:43.000Z
clever_algorithms/demos/genetic_algorithm.cpp
GreatV/CleverAlgorithms
4cda9e3469a6076128dfbbb62c6f82d3a1f12746
[ "MIT" ]
null
null
null
clever_algorithms/demos/genetic_algorithm.cpp
GreatV/CleverAlgorithms
4cda9e3469a6076128dfbbb62c6f82d3a1f12746
[ "MIT" ]
null
null
null
#include <iostream> #include <random> #include <vector> #include <string> #include <algorithm> std::random_device rd; std::mt19937 generator(rd()); std::uniform_real_distribution<> distribution(0.0, 1.0); auto random_ = []() { return distribution(generator); }; using candidate_solution = struct candidate_solution_t ...
23.445652
106
0.668057
[ "vector" ]
98fbc794b05375a7b206c8f17eda8d0a29e7aba9
4,602
cxx
C++
MSEL_src/MSEL_core/bpro1_parameters.cxx
yuliangguo/MSEL_contour_extraction_cxx
723893a92370dfe084afd23d9a69d3e2fead2464
[ "MIT" ]
4
2020-04-23T12:28:41.000Z
2021-06-07T05:54:16.000Z
MSEL_src/MSEL_core/bpro1_parameters.cxx
yuliangguo/MSEL_contour_extraction_cxx
723893a92370dfe084afd23d9a69d3e2fead2464
[ "MIT" ]
null
null
null
MSEL_src/MSEL_core/bpro1_parameters.cxx
yuliangguo/MSEL_contour_extraction_cxx
723893a92370dfe084afd23d9a69d3e2fead2464
[ "MIT" ]
1
2017-06-05T18:00:21.000Z
2017-06-05T18:00:21.000Z
// This is brld/bpro1/bpro1_parameters.cxx //: // \file #include "bpro1_parameters.h" #include <vcl_utility.h> #include <vcl_iostream.h> #include <vcl_sstream.h> //: Output stream operator for bpro1_params vcl_ostream& operator<<(vcl_ostream& os, const bpro1_param& p) { os << "parameter{\n Description: " << p.d...
23.721649
118
0.644937
[ "vector" ]
98fc1e6d174bf748046248100503cc1f97589ee4
1,028
hpp
C++
Android/source/engine/src/main/jni/face/faceLandmark.hpp
iotbo/TengineKit
b82c3758360ef37cb219d487d3858a4c1b4effe7
[ "Apache-2.0" ]
null
null
null
Android/source/engine/src/main/jni/face/faceLandmark.hpp
iotbo/TengineKit
b82c3758360ef37cb219d487d3858a4c1b4effe7
[ "Apache-2.0" ]
null
null
null
Android/source/engine/src/main/jni/face/faceLandmark.hpp
iotbo/TengineKit
b82c3758360ef37cb219d487d3858a4c1b4effe7
[ "Apache-2.0" ]
null
null
null
// // Created by zhangjun on 2020/2/12. // #ifndef FACE_LANDMARK_HPP #define FACE_LANDMARK_HPP #include "data.hpp" #include <iostream> #include <memory> #include <string.h> #include <vector> // Tengine #include "c_api.h" #include "faceDetect.hpp" typedef struct FaceLandmarkInfo { float landmarks[212 * 2]; float...
20.56
73
0.706226
[ "vector" ]
98fc4f69f2f099ac463e8130385e6d5aa648176d
2,583
cpp
C++
2020/day15/p1/main.cpp
jbaldwin/adventofcode2019
bdc333330dd5e36458a49f0b7cd64d462c9988c7
[ "MIT" ]
null
null
null
2020/day15/p1/main.cpp
jbaldwin/adventofcode2019
bdc333330dd5e36458a49f0b7cd64d462c9988c7
[ "MIT" ]
null
null
null
2020/day15/p1/main.cpp
jbaldwin/adventofcode2019
bdc333330dd5e36458a49f0b7cd64d462c9988c7
[ "MIT" ]
null
null
null
#include <lib/file_util.hpp> #include <chain/chain.hpp> #include <lib/algorithms.hpp> #include <iostream> #include <vector> #include <string> #include <array> #include <map> #include <bitset> #include <cmath> int main(int argc, char* argv[]) { std::vector<std::string> args{argv, argv + argc}; if(args.size() !...
24.140187
95
0.492451
[ "vector" ]
98fffa8b8b0f8db8383daabf463ded9405cd97bf
11,081
cpp
C++
render/ren_aal.cpp
vasukas/rodent
91224465eaa89467916971a8c5ed1357fa487bdf
[ "FTL", "CC0-1.0", "CC-BY-4.0", "MIT" ]
null
null
null
render/ren_aal.cpp
vasukas/rodent
91224465eaa89467916971a8c5ed1357fa487bdf
[ "FTL", "CC0-1.0", "CC-BY-4.0", "MIT" ]
null
null
null
render/ren_aal.cpp
vasukas/rodent
91224465eaa89467916971a8c5ed1357fa487bdf
[ "FTL", "CC0-1.0", "CC-BY-4.0", "MIT" ]
null
null
null
#include "client/resbase.hpp" #include "utils/noise.hpp" #include "vaslib/vas_cpp_utils.hpp" #include "vaslib/vas_log.hpp" #include "ren_aal.hpp" #include "camera.hpp" #include "control.hpp" #include "shader.hpp" #include "texture.hpp" struct Noise { Noise() { tex.target = GL_TEXTURE_3D; } void generate(float ...
22.800412
116
0.604729
[ "render", "object", "vector", "transform" ]
c71299041747682f1f6e257dca4d86851b303ada
17,635
cpp
C++
src/dune/assimp_mesh.cpp
yangzhengxing/GI
e27124740ceb7dac04171a9685cc3f0c7c308066
[ "MIT", "BSD-3-Clause" ]
193
2015-03-01T08:11:22.000Z
2022-03-23T16:01:25.000Z
src/dune/assimp_mesh.cpp
yangzhengxing/GI
e27124740ceb7dac04171a9685cc3f0c7c308066
[ "MIT", "BSD-3-Clause" ]
1
2018-02-18T04:23:11.000Z
2018-02-25T21:27:54.000Z
src/dune/assimp_mesh.cpp
yangzhengxing/GI
e27124740ceb7dac04171a9685cc3f0c7c308066
[ "MIT", "BSD-3-Clause" ]
30
2015-01-07T00:42:18.000Z
2021-09-22T12:43:28.000Z
/* * Dune D3D library - Tobias Alexander Franke 2011 * For copyright and license see LICENSE * http://www.tobias-franke.eu */ #include "assimp_mesh.h" #include <string> #include <vector> #include <algorithm> #include <sstream> #include <cmath> #include <iostream> #include <CommCtrl.h> #include <a...
33.978805
105
0.530026
[ "mesh", "render", "vector", "transform" ]
c717c6721990123fd0c55600a7be6b21417162b1
7,975
cpp
C++
src/bhv_goalie_free_kick.cpp
mhauskn/hfo
b8b2a1d462823c6732f4d5581aa7fe2e371d55cb
[ "MIT" ]
216
2016-02-24T22:51:01.000Z
2022-03-28T03:13:13.000Z
HFO_mgm/src/bhv_goalie_free_kick.cpp
bcahlit/graduationMgm
d0237207dbb485611c685251f97649679a7bbc0a
[ "MIT" ]
81
2016-03-04T19:49:51.000Z
2022-01-13T12:12:28.000Z
HFO_mgm/src/bhv_goalie_free_kick.cpp
bcahlit/graduationMgm
d0237207dbb485611c685251f97649679a7bbc0a
[ "MIT" ]
99
2016-02-24T23:07:50.000Z
2022-03-15T06:22:36.000Z
// -*-c++-*- /* *Copyright: Copyright (C) Hidehisa AKIYAMA This code is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. This code is distributed in ...
30.323194
99
0.564263
[ "vector" ]
c71db0d87f5bb57054d8e2a3e5ef941fbd4611da
1,670
cpp
C++
qt-mvvm/source/libmvvm_model/mvvm/factories/modelconverterfactory.cpp
seaCheng/animation-
89a0cb0efbcfea202965a5851979ae6f1b67f8f0
[ "BSD-3-Clause" ]
6
2021-12-08T03:09:47.000Z
2022-02-24T03:51:14.000Z
qt-mvvm/source/libmvvm_model/mvvm/factories/modelconverterfactory.cpp
seaCheng/animation-
89a0cb0efbcfea202965a5851979ae6f1b67f8f0
[ "BSD-3-Clause" ]
null
null
null
qt-mvvm/source/libmvvm_model/mvvm/factories/modelconverterfactory.cpp
seaCheng/animation-
89a0cb0efbcfea202965a5851979ae6f1b67f8f0
[ "BSD-3-Clause" ]
null
null
null
// ************************************************************************** // // // Model-view-view-model framework for large GUI applications // //! @license GNU General Public License v3 or higher (see COPYING) //! @authors see AUTHORS // // ********************************************************************...
40.731707
97
0.701796
[ "model" ]
c72504f046027c58898eb6449977719b03af2405
23,644
cpp
C++
source/tests/system/nirfsa_driver_api_tests.cpp
vvacharya/grpc-device
22326f69b83d774457c0f5409b71ce7fc66002f6
[ "MIT" ]
null
null
null
source/tests/system/nirfsa_driver_api_tests.cpp
vvacharya/grpc-device
22326f69b83d774457c0f5409b71ce7fc66002f6
[ "MIT" ]
null
null
null
source/tests/system/nirfsa_driver_api_tests.cpp
vvacharya/grpc-device
22326f69b83d774457c0f5409b71ce7fc66002f6
[ "MIT" ]
null
null
null
#include <gmock/gmock.h> #include <gtest/gtest.h> // For EXPECT matchers. #include <algorithm> #include "device_server.h" #include "niRFSAErrors.h" #include "nirfsa/nirfsa_client.h" #include "niscope/niscope_client.h" #include "nitclk/nitclk_client.h" using namespace ::testing; using namespace nirfsa_grpc; namespac...
36.94375
155
0.762942
[ "vector", "model" ]
d178cc0a8ae555742022c2415fca4cdf90d99790
7,230
cpp
C++
Source/JavaScriptCore/runtime/IntlNumberFormatConstructor.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Source/JavaScriptCore/runtime/IntlNumberFormatConstructor.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Source/JavaScriptCore/runtime/IntlNumberFormatConstructor.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright (C) 2015 Andy VanWagoner (andy@vanwagoner.family) * Copyright (C) 2016-2020 Apple Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code mus...
50.208333
180
0.778147
[ "object", "vector" ]
d195861a3a705dbbe467264cbb1beb98a319062e
12,334
hpp
C++
examples/mantevo/miniFE-1.1/stk_mesh_utils.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/stk_mesh_utils.hpp
sdressler/objekt
30ee938f5cb06193871f802be0bbdae6ecd26a33
[ "BSD-3-Clause" ]
null
null
null
examples/mantevo/miniFE-1.1/stk_mesh_utils.hpp
sdressler/objekt
30ee938f5cb06193871f802be0bbdae6ecd26a33
[ "BSD-3-Clause" ]
null
null
null
#ifndef _stk_mesh_utils_hpp_ #define _stk_mesh_utils_hpp_ //@HEADER // ************************************************************************ // // miniFE: simple finite-element assembly and linear-solve // Copyright (2006) Sandia Corporation // // Under terms of Contract DE-AC04-94AL...
38.664577
99
0.66418
[ "mesh", "vector" ]
d19695ef05e9a19d56aeb4e92934c1bcc2c9cbfb
3,065
cpp
C++
src/decoder-phrasebased/src/native/suffixarray-phrasetable/util/BilingualCorpus.cpp
ugermann/MMT
715ad16b4467f44c8103e16165261d1391a69fb8
[ "Apache-2.0" ]
null
null
null
src/decoder-phrasebased/src/native/suffixarray-phrasetable/util/BilingualCorpus.cpp
ugermann/MMT
715ad16b4467f44c8103e16165261d1391a69fb8
[ "Apache-2.0" ]
null
null
null
src/decoder-phrasebased/src/native/suffixarray-phrasetable/util/BilingualCorpus.cpp
ugermann/MMT
715ad16b4467f44c8103e16165261d1391a69fb8
[ "Apache-2.0" ]
null
null
null
// // Created by Davide Caroselli on 29/09/16. // #include <sstream> #include "BilingualCorpus.h" #include <boost/filesystem.hpp> #define AlignFileExt "align" using namespace mmt; using namespace mmt::sapt; namespace fs = boost::filesystem; BilingualCorpus::BilingualCorpus(domain_t domain, const string &sourceFil...
29.190476
118
0.622186
[ "vector" ]
d197f21319f1cedac08c502a5d0a9b6239145943
5,817
cc
C++
trademark/src/model/QueryMaterialResult.cc
iamzken/aliyun-openapi-cpp-sdk
3c991c9ca949b6003c8f498ce7a672ea88162bf1
[ "Apache-2.0" ]
89
2018-02-02T03:54:39.000Z
2021-12-13T01:32:55.000Z
trademark/src/model/QueryMaterialResult.cc
iamzken/aliyun-openapi-cpp-sdk
3c991c9ca949b6003c8f498ce7a672ea88162bf1
[ "Apache-2.0" ]
89
2018-03-14T07:44:54.000Z
2021-11-26T07:43:25.000Z
trademark/src/model/QueryMaterialResult.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...
24.03719
88
0.737322
[ "vector", "model" ]
d19cca52db7a2360b897fc8999932c21a5ad5d79
37,345
hpp
C++
cisco-ios-xr/ydk/models/cisco_ios_xr/fragmented/Cisco_IOS_XR_ip_static_cfg_4.hpp
CiscoDevNet/ydk-cpp
ef7d75970f2ef1154100e0f7b0a2ee823609b481
[ "ECL-2.0", "Apache-2.0" ]
17
2016-12-02T05:45:49.000Z
2022-02-10T19:32:54.000Z
cisco-ios-xr/ydk/models/cisco_ios_xr/fragmented/Cisco_IOS_XR_ip_static_cfg_4.hpp
CiscoDevNet/ydk-cpp
ef7d75970f2ef1154100e0f7b0a2ee823609b481
[ "ECL-2.0", "Apache-2.0" ]
2
2017-03-27T15:22:38.000Z
2019-11-05T08:30:16.000Z
cisco-ios-xr/ydk/models/cisco_ios_xr/fragmented/Cisco_IOS_XR_ip_static_cfg_4.hpp
CiscoDevNet/ydk-cpp
ef7d75970f2ef1154100e0f7b0a2ee823609b481
[ "ECL-2.0", "Apache-2.0" ]
11
2016-12-02T05:45:52.000Z
2019-11-07T08:28:17.000Z
#ifndef _CISCO_IOS_XR_IP_STATIC_CFG_4_ #define _CISCO_IOS_XR_IP_STATIC_CFG_4_ #include <memory> #include <vector> #include <string> #include <ydk/types.hpp> #include <ydk/errors.hpp> #include "Cisco_IOS_XR_ip_static_cfg_0.hpp" #include "Cisco_IOS_XR_ip_static_cfg_2.hpp" #include "Cisco_IOS_XR_ip_static_cfg_3.hpp" na...
61.021242
286
0.72904
[ "vector" ]
d1a68eaa5c8f9b305facd55d6d1c472f04f2505d
24,521
cpp
C++
src/plrsController.cpp
suerfu/polaris
055bef93bbb0fba74bcc1a53cb7d8d84d70d9b05
[ "MIT" ]
null
null
null
src/plrsController.cpp
suerfu/polaris
055bef93bbb0fba74bcc1a53cb7d8d84d70d9b05
[ "MIT" ]
null
null
null
src/plrsController.cpp
suerfu/polaris
055bef93bbb0fba74bcc1a53cb7d8d84d70d9b05
[ "MIT" ]
1
2020-08-06T22:54:26.000Z
2020-08-06T22:54:26.000Z
#include "plrsController.h" #include "plrsModuleInput.h" #include "plrsModuleInterface.h" #include <cstdlib> #include <unistd.h> #include <dlfcn.h> #include <iostream> #include <map> #include <string> using namespace std; plrsController::plrsController( ConfigParser* m) : cparser(m){ Print( "Constructing pola...
26.281886
141
0.494882
[ "vector" ]
d1b218bcfadb3d84d8b0a9ce0f636bf9c06e5b1e
2,532
cpp
C++
src/2021/day20.cpp
BruJu/AdventOfCode
a9161649882429bc1f995424544ce4cdafb69caa
[ "WTFPL", "MIT" ]
1
2020-12-11T13:37:06.000Z
2020-12-11T13:37:06.000Z
src/2021/day20.cpp
BruJu/AdventOfCode2020
a9161649882429bc1f995424544ce4cdafb69caa
[ "WTFPL", "MIT" ]
null
null
null
src/2021/day20.cpp
BruJu/AdventOfCode2020
a9161649882429bc1f995424544ce4cdafb69caa
[ "WTFPL", "MIT" ]
null
null
null
#include "../advent_of_code.hpp" #include <vector> #include <map> #include <set> #include <ostream> #include "../util/position.hpp" // Day 17 was boring, days 18 and 19 were too long, today is // "I'm very smart with my non representative only example" static std::vector<bool> compute_enchancement(const std::string &...
23.886792
82
0.56951
[ "vector" ]
d1b8f02205078d18a908b9babbcf279b73f9201e
1,960
cpp
C++
problems/atcoder/abc224/d---8-puzzle-on-graph/code.cpp
brunodccarvalho/competitive
4177c439174fbe749293b9da3445ce7303bd23c2
[ "MIT" ]
7
2020-10-15T22:37:10.000Z
2022-02-26T17:23:49.000Z
problems/atcoder/abc224/d---8-puzzle-on-graph/code.cpp
brunodccarvalho/competitive
4177c439174fbe749293b9da3445ce7303bd23c2
[ "MIT" ]
null
null
null
problems/atcoder/abc224/d---8-puzzle-on-graph/code.cpp
brunodccarvalho/competitive
4177c439174fbe749293b9da3445ce7303bd23c2
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #ifdef LOCAL #include "code/formatting.hpp" #else #define debug(...) (void)0 #endif using namespace std; int main() { ios::sync_with_stdio(false), cin.tie(nullptr); constexpr int N = 9; int M; cin >> M; vector<int> adj(N); for (int i = 0; i < M; i++) { int u, v...
25.128205
85
0.392857
[ "vector" ]
d1becf0048a93a272e35bac8432da80800e8239c
3,081
cpp
C++
source/Esdiel/Graphics/Transformable.cpp
MetGang/Esdiel
0b75a3e10b16291ce9055a9673a6bc3f36a224f8
[ "MIT" ]
2
2021-08-04T22:18:02.000Z
2022-01-09T21:53:49.000Z
source/Esdiel/Graphics/Transformable.cpp
MetGang/Esdiel
0b75a3e10b16291ce9055a9673a6bc3f36a224f8
[ "MIT" ]
null
null
null
source/Esdiel/Graphics/Transformable.cpp
MetGang/Esdiel
0b75a3e10b16291ce9055a9673a6bc3f36a224f8
[ "MIT" ]
null
null
null
#include <Esdiel/Graphics/Transformable.hpp> // C++ #include <string> // glm #define GLM_ENABLE_EXPERIMENTAL #include <glm/gtc/type_ptr.hpp> namespace esd { Transformable::Transformable() : m_position { 0.0f, 0.0f, 0.0f } , m_origin { 0.0f, 0.0f, 0.0f } , m_rotation { 0.0f, 0.0f, 0.0f } ...
20.677852
123
0.575787
[ "transform" ]
d1bf590ff10088be1e82953d40f1ac2e69ae8db4
974
hpp
C++
src/common/gltf/forward.hpp
jherico/glTF
e1a6b3cee67d241894855ceeef89606ff021beb6
[ "MIT" ]
null
null
null
src/common/gltf/forward.hpp
jherico/glTF
e1a6b3cee67d241894855ceeef89606ff021beb6
[ "MIT" ]
null
null
null
src/common/gltf/forward.hpp
jherico/glTF
e1a6b3cee67d241894855ceeef89606ff021beb6
[ "MIT" ]
null
null
null
// // Created by Bradley Austin Davis on 2016/07/17 // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #pragma once #ifndef jherico_gltf_forward_hpp #define jherico_gltf_forward_hpp #include <string> #include <glm/glm....
15.967213
88
0.603696
[ "mesh" ]
d1c4b9e993d614012229d7e3a141c802eada4d13
3,531
cc
C++
src/devices/tests/libdriver-integration-test/device-add-tests.cc
csrpi/fuchsia
2f015594dcb4c13aa51eee305ad561078f1f9b7f
[ "BSD-2-Clause" ]
3
2021-09-02T07:21:06.000Z
2022-03-12T03:20:10.000Z
src/devices/tests/libdriver-integration-test/device-add-tests.cc
csrpi/fuchsia
2f015594dcb4c13aa51eee305ad561078f1f9b7f
[ "BSD-2-Clause" ]
null
null
null
src/devices/tests/libdriver-integration-test/device-add-tests.cc
csrpi/fuchsia
2f015594dcb4c13aa51eee305ad561078f1f9b7f
[ "BSD-2-Clause" ]
2
2022-02-25T12:22:49.000Z
2022-03-12T03:20:10.000Z
// Copyright 2019 The Fuchsia 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 <lib/ddk/binding.h> #include <zircon/status.h> #include <zircon/syscalls.h> #include <memory> #include <fbl/unique_fd.h> #include <gtest/gtest.h...
37.56383
95
0.644293
[ "vector" ]
d1cbd7e9f5750bda3075bd2fa1b3e8d7fa785342
3,547
hpp
C++
include/demos.hpp
dyigitpolat/komposto.ai
ee610053730d59207d073da18f645c9e27725189
[ "MIT" ]
1
2021-05-11T13:42:18.000Z
2021-05-11T13:42:18.000Z
include/demos.hpp
dyigitpolat/komposto.ai
ee610053730d59207d073da18f645c9e27725189
[ "MIT" ]
13
2021-05-16T19:56:32.000Z
2022-02-09T23:46:12.000Z
include/demos.hpp
dyigitpolat/komposto.ai
ee610053730d59207d073da18f645c9e27725189
[ "MIT" ]
null
null
null
#pragma once #include "harmonizer.hpp" #include "tuning_provider.hpp" #include "palette_generator.hpp" #include "motif_generator.hpp" #include "palette_generator.hpp" #include "section_generator.hpp" #include "composition_generator.hpp" #include "pattern_mutator.hpp" #include "rhythmic_motif_generator.hpp" #include "n...
25.335714
80
0.70031
[ "vector" ]
d1d03eda94a801c6f0cfb4b8b37799f05811f7e7
6,612
cpp
C++
game_step.cpp
BariumBlue/atomic
cafcc5832882b944fba32260738e811dca175d63
[ "MIT" ]
null
null
null
game_step.cpp
BariumBlue/atomic
cafcc5832882b944fba32260738e811dca175d63
[ "MIT" ]
null
null
null
game_step.cpp
BariumBlue/atomic
cafcc5832882b944fba32260738e811dca175d63
[ "MIT" ]
null
null
null
#include <ctime> #include <cstdlib> #include <cstdio> #include <cstring> #include <math.h> #include "game_step.h" /* randomly create atoms with the given params */ void init_rand_atoms(game_state *state, int n_atoms, atom_type atype, int max_x, int max_y) { int i, j; float x, y; atomDat atom; printf("rando...
23.118881
91
0.629462
[ "vector" ]
d1d1486599eef1a08dae7697729c07e1a8bc6427
1,902
hpp
C++
include/Aheuiplusplus/element.hpp
kmc7468/Aheuiplusplus
4ae8dfd457d62457b781c9abbfb6ceffc0f068e2
[ "MIT" ]
21
2018-06-10T11:40:10.000Z
2021-04-20T06:47:14.000Z
include/Aheuiplusplus/element.hpp
kmc7468/Aheuiplusplus
4ae8dfd457d62457b781c9abbfb6ceffc0f068e2
[ "MIT" ]
1
2018-06-20T13:57:00.000Z
2018-06-22T16:22:02.000Z
include/Aheuiplusplus/element.hpp
kmc7468/Aheuiplusplus
4ae8dfd457d62457b781c9abbfb6ceffc0f068e2
[ "MIT" ]
2
2018-06-17T13:35:59.000Z
2018-07-16T14:02:54.000Z
#ifndef AHEUIPLUSPLUS_HEADER_ELEMENT_HPP #define AHEUIPLUSPLUS_HEADER_ELEMENT_HPP #include <Aheuiplusplus/function.hpp> #include <cstdint> #include <memory> #include <variant> #include <vector> namespace app { enum class element_type { none, array = 0b0100000, reference = 0b1000000, number = 0b0000001,...
30.190476
82
0.759201
[ "vector" ]
d1d1b42c6f5cf6e385c0f65fa637bdfc727d1754
6,193
cpp
C++
src/main.cpp
danielsoutar/CarND-PID-Control-Project
2bbe9a42a17901d7a46f01710d8e2752e70aae71
[ "MIT" ]
null
null
null
src/main.cpp
danielsoutar/CarND-PID-Control-Project
2bbe9a42a17901d7a46f01710d8e2752e70aae71
[ "MIT" ]
null
null
null
src/main.cpp
danielsoutar/CarND-PID-Control-Project
2bbe9a42a17901d7a46f01710d8e2752e70aae71
[ "MIT" ]
null
null
null
#include <math.h> #include <uWS/uWS.h> #include <chrono> #include <iostream> #include <fstream> #include <thread> #include "json.hpp" #include "PID.h" // for convenience using json = nlohmann::json; // For converting back and forth between radians and degrees. constexpr double pi() { return M_PI; } double deg2rad(dou...
36.005814
139
0.578233
[ "object" ]
d1e2223dd9f77401f44a9d2e35a2e2ee9121a796
8,349
cpp
C++
ablateLibrary/monitors/curveMonitor.cpp
UBCHREST/ablate
02a5b390ba4e257b96bd19f4604c269598dccd9d
[ "BSD-3-Clause" ]
3
2021-01-19T21:29:10.000Z
2021-08-20T19:54:49.000Z
ablateLibrary/monitors/curveMonitor.cpp
UBCHREST/ablate
02a5b390ba4e257b96bd19f4604c269598dccd9d
[ "BSD-3-Clause" ]
124
2021-01-14T15:30:48.000Z
2022-03-28T14:44:31.000Z
ablateLibrary/monitors/curveMonitor.cpp
UBCHREST/ablate
02a5b390ba4e257b96bd19f4604c269598dccd9d
[ "BSD-3-Clause" ]
17
2021-02-10T22:34:57.000Z
2022-03-21T18:46:06.000Z
#include "curveMonitor.hpp" #include <fstream> #include <iostream> #include <utilities/mpiError.hpp> #include <utilities/petscError.hpp> #include "environment/runEnvironment.hpp" ablate::monitors::CurveMonitor::CurveMonitor(int interval, std::string prefix, std::vector<double> start, std::vector<double> end, std::vect...
41.745
197
0.635645
[ "mesh", "vector" ]
d1ee15173847e2f1201b857f8efe2b2025d64e9e
1,015
cpp
C++
codes/moderncpp/stdmove/stdmove03/main.cpp
eric2003/ModernCMake
48fe5ed2f25481a7c93f86af38a692f4563afcaa
[ "MIT" ]
3
2022-01-25T07:33:43.000Z
2022-03-30T10:25:09.000Z
codes/moderncpp/stdmove/stdmove03/main.cpp
eric2003/ModernCMake
48fe5ed2f25481a7c93f86af38a692f4563afcaa
[ "MIT" ]
null
null
null
codes/moderncpp/stdmove/stdmove03/main.cpp
eric2003/ModernCMake
48fe5ed2f25481a7c93f86af38a692f4563afcaa
[ "MIT" ]
2
2022-01-17T13:39:12.000Z
2022-03-30T10:25:12.000Z
#include <iostream> #include <vector> int main( int argc, char **argv ) { { std::vector<int> v1(10); std::vector<int> v2(200); v1 = v2; // O(n) std::cout << "after copy:" << std::endl; std::cout << "v1 length " << v1.size() << std::endl; // 200 st...
26.710526
68
0.433498
[ "vector" ]
d1ef7b7b3bdfe54e9bf212340a23960e93f52626
3,807
cpp
C++
src/Nuz/Renderer/OpenGL/GLSLProgram.cpp
SmallLuma/NuzGameEngine
01465469bf2f5c7c2646978576280c4c464cd02a
[ "MIT" ]
null
null
null
src/Nuz/Renderer/OpenGL/GLSLProgram.cpp
SmallLuma/NuzGameEngine
01465469bf2f5c7c2646978576280c4c464cd02a
[ "MIT" ]
null
null
null
src/Nuz/Renderer/OpenGL/GLSLProgram.cpp
SmallLuma/NuzGameEngine
01465469bf2f5c7c2646978576280c4c464cd02a
[ "MIT" ]
null
null
null
#include "GLSLProgram.h" #include "../../Engine.h" using namespace std; using namespace Nuz_; using namespace Nuz_::Renderer; GLSLProgram::GLSLShader GLSLProgram::m_normalVertShader; GLuint GLSLProgram::m_normalShaderProgram = 0; GLSLProgram::GLSLProgram() { } GLSLProgram::~GLSLProgram() { Clear(); } void Nuz_::...
26.622378
93
0.731284
[ "object" ]
d1f1625279053b926b187cf4132d09100e497155
7,773
hpp
C++
lib/nmtools/Common.hpp
UCL/pet-rd-tools
537202f38ef120296dcab90b025aea28a30447fd
[ "Apache-2.0" ]
7
2019-03-25T15:34:09.000Z
2021-09-29T19:18:48.000Z
lib/nmtools/Common.hpp
UCL/pet-rd-tools
537202f38ef120296dcab90b025aea28a30447fd
[ "Apache-2.0" ]
23
2019-02-01T15:58:19.000Z
2021-11-15T15:10:01.000Z
lib/nmtools/Common.hpp
UCL/pet-rd-tools
537202f38ef120296dcab90b025aea28a30447fd
[ "Apache-2.0" ]
4
2019-02-01T15:06:19.000Z
2021-06-07T07:46:36.000Z
/* Common.hpp Author: Benjamin A. Thomas Author: Kris Thielemans Copyright 2017, 2020 Institute of Nuclear Medicine, University College London. 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...
27.178322
113
0.683263
[ "vector", "model" ]
d1fafa094c46c8b95ba2327ece51b563d9c01616
1,792
cxx
C++
src/mordavokne/glue/friend_accessors.cxx
igagis/mordavokne
48baed90aff42c2ad82fb8dde6268563a21c7fde
[ "MIT" ]
1
2020-02-16T18:22:41.000Z
2020-02-16T18:22:41.000Z
src/mordavokne/glue/friend_accessors.cxx
igagis/mordavokne
48baed90aff42c2ad82fb8dde6268563a21c7fde
[ "MIT" ]
12
2016-08-04T11:08:52.000Z
2019-08-29T22:07:50.000Z
src/mordavokne/glue/friend_accessors.cxx
igagis/mordavokne
48baed90aff42c2ad82fb8dde6268563a21c7fde
[ "MIT" ]
1
2019-11-30T01:36:04.000Z
2019-11-30T01:36:04.000Z
/* mordavokne - morda GUI adaptation layer Copyright (C) 2016-2021 Ivan Gagis <igagis@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option)...
31.438596
128
0.767299
[ "render" ]
d1fc1df88514e5a3591d108d44753f4884e9f4b3
12,994
cpp
C++
projects/final_project/helicopter.cpp
Crystallen1/CGProject
739b8ade90d9909bb225fbad040daea09aa54d55
[ "MIT" ]
null
null
null
projects/final_project/helicopter.cpp
Crystallen1/CGProject
739b8ade90d9909bb225fbad040daea09aa54d55
[ "MIT" ]
null
null
null
projects/final_project/helicopter.cpp
Crystallen1/CGProject
739b8ade90d9909bb225fbad040daea09aa54d55
[ "MIT" ]
null
null
null
#include "helicopter.h" const std::string modelPath = "../../../media/Seahawk.obj"; const std::string Seahawk = { "../../../media/Seahawk2.jpg" }; Helicopter::Helicopter() { // init model _model.reset(new Model(modelPath)); _model->scale = glm::vec3(0.02f, 0.02f, 0.02f); glm::vec3 rotationAx...
34.743316
131
0.555795
[ "model" ]
d1fcf1c35b36b35fbdb66d2a933289fc24a5ca16
29,599
cpp
C++
lib/XRay/Trace.cpp
vangthao95/llvm
7161a90f679d8d52ab57a3166361a7ebd1ba5459
[ "Apache-2.0" ]
115
2018-02-01T18:56:44.000Z
2022-03-21T13:23:00.000Z
FRProtector/lib/XRay/Trace.cpp
whucs303/randomizationlib
07a1f495e1cf878ad9dd4c79b7ff1c6b48cff876
[ "MIT" ]
27
2018-09-17T17:49:49.000Z
2021-11-03T04:31:51.000Z
FRProtector/lib/XRay/Trace.cpp
whucs303/randomizationlib
07a1f495e1cf878ad9dd4c79b7ff1c6b48cff876
[ "MIT" ]
55
2018-02-01T07:11:49.000Z
2022-03-04T01:20:23.000Z
//===- Trace.cpp - XRay Trace Loading implementation. ---------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
41.339385
80
0.672219
[ "vector", "transform" ]
d1fd47fc4173cf5808fc461d0ba52a0ef628e029
984
cpp
C++
LeetCode/787_Cheapest_Flights_Within_K_Stops/main.cpp
sungmen/Acmicpc_Solve
0298a6aec84993a4d8767bd2c00490b7201e06a4
[ "MIT" ]
1
2020-07-08T23:16:19.000Z
2020-07-08T23:16:19.000Z
LeetCode/787_Cheapest_Flights_Within_K_Stops/main.cpp
sungmen/Acmicpc_Solve
0298a6aec84993a4d8767bd2c00490b7201e06a4
[ "MIT" ]
1
2020-05-16T03:12:24.000Z
2020-05-16T03:14:42.000Z
LeetCode/787_Cheapest_Flights_Within_K_Stops/main.cpp
sungmen/Acmicpc_Solve
0298a6aec84993a4d8767bd2c00490b7201e06a4
[ "MIT" ]
2
2020-05-16T03:25:16.000Z
2021-02-10T16:51:25.000Z
class Solution { private: vector<vector<int>> v[101]; public: int findCheapestPrice(int n, vector<vector<int>>& flights, int src, int dst, int k) { vector<int> dist(n, INT_MAX); vector<bool> chk(n, false); for(auto flight : flights) { v[flight[0]].push_back({flight[1], f...
30.75
89
0.396341
[ "vector" ]
d1fd54c7b6514f80338882f4e1daaf00c07962b1
68,775
cpp
C++
indra/llappearance/llavatarappearance.cpp
SaladDais/LLUDP-Encryption
8a426cd0dd154e1a10903e0e6383f4deb2a6098a
[ "ISC" ]
1
2022-01-29T07:10:03.000Z
2022-01-29T07:10:03.000Z
indra/llappearance/llavatarappearance.cpp
bloomsirenix/Firestorm-manikineko
67e1bb03b2d05ab16ab98097870094a8cc9de2e7
[ "Unlicense" ]
null
null
null
indra/llappearance/llavatarappearance.cpp
bloomsirenix/Firestorm-manikineko
67e1bb03b2d05ab16ab98097870094a8cc9de2e7
[ "Unlicense" ]
1
2021-10-01T22:22:27.000Z
2021-10-01T22:22:27.000Z
/** * @File llavatarappearance.cpp * @brief Implementation of LLAvatarAppearance class * * $LicenseInfo:firstyear=2012&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms...
30.993691
146
0.627248
[ "mesh", "shape", "vector" ]
d1fffb1451f5dace5bf8dc695916cf45315637a5
12,618
cpp
C++
src/solvers/gecode/procedures/commonprocedures.cpp
matsc-at-sics-se/unison
8d23b73aaf8f3af5c4d86f26e0e4432d70bab564
[ "BSD-3-Clause" ]
6
2018-03-01T19:12:07.000Z
2018-09-10T15:52:14.000Z
src/solvers/gecode/procedures/commonprocedures.cpp
matsc-at-sics-se/unison
8d23b73aaf8f3af5c4d86f26e0e4432d70bab564
[ "BSD-3-Clause" ]
56
2018-02-26T16:44:15.000Z
2019-02-23T17:07:32.000Z
src/solvers/gecode/procedures/commonprocedures.cpp
matsc-at-sics-se/unison
8d23b73aaf8f3af5c4d86f26e0e4432d70bab564
[ "BSD-3-Clause" ]
null
null
null
/* * Main authors: * Mats Carlsson <mats.carlsson@ri.se> * Roberto Castaneda Lozano <roberto.castaneda@ri.se> * * This file is part of Unison, see http://unison-code.github.io * * Copyright (c) 2016, RISE SICS AB * All rights reserved. * * Redistribution and use in source and binary forms, with or ...
33.648
124
0.63877
[ "vector", "model" ]
060bb9b1f39b79432be132baadae97157ff2ace3
10,357
cc
C++
pc/peer_connection_header_extension_unittest.cc
shishuo365/webrtc
96e60852faaa8ab4cf6477fa92c80a434921625d
[ "BSD-3-Clause" ]
1
2016-06-23T01:26:53.000Z
2016-06-23T01:26:53.000Z
pc/peer_connection_header_extension_unittest.cc
shishuo365/webrtc
96e60852faaa8ab4cf6477fa92c80a434921625d
[ "BSD-3-Clause" ]
null
null
null
pc/peer_connection_header_extension_unittest.cc
shishuo365/webrtc
96e60852faaa8ab4cf6477fa92c80a434921625d
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright 2020 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
42.101626
80
0.691803
[ "vector" ]
0617c21c936b2ca9473c857f2797696d9ff2214c
1,845
cpp
C++
leetcode/Algorithms/DifferentWaysToAddParentheses/solution.cpp
hxdone/puzzles
b729bce8a61f77ad7cbb70957e00c5ade9a0a35f
[ "Apache-2.0" ]
2
2015-07-03T03:05:30.000Z
2015-07-03T03:05:31.000Z
leetcode/Algorithms/DifferentWaysToAddParentheses/solution.cpp
hxdone/puzzles
b729bce8a61f77ad7cbb70957e00c5ade9a0a35f
[ "Apache-2.0" ]
null
null
null
leetcode/Algorithms/DifferentWaysToAddParentheses/solution.cpp
hxdone/puzzles
b729bce8a61f77ad7cbb70957e00c5ade9a0a35f
[ "Apache-2.0" ]
null
null
null
// divide and conquer solution by hxdone class Solution { public: vector<int> diffWaysToCompute(string input) { vector<int> numbers; vector<char> operators; int cur_num_val = 0; for (int i = 0; i < input.length(); ++i) { if (input[i] >= '0' && input[i] <= '9') { ...
39.255319
134
0.471545
[ "vector" ]
061ef8550b17a7732949bd779b404ad80560ec35
472
cpp
C++
Segunda Unidad/Ejercicios 04-11-2021/grid.cpp
LuisSante/Programacion-Competitiva
c263521e4b7326bb61a9026bf989cb9fea946217
[ "BSD-3-Clause" ]
null
null
null
Segunda Unidad/Ejercicios 04-11-2021/grid.cpp
LuisSante/Programacion-Competitiva
c263521e4b7326bb61a9026bf989cb9fea946217
[ "BSD-3-Clause" ]
null
null
null
Segunda Unidad/Ejercicios 04-11-2021/grid.cpp
LuisSante/Programacion-Competitiva
c263521e4b7326bb61a9026bf989cb9fea946217
[ "BSD-3-Clause" ]
null
null
null
#include <iostream> #include <vector> using namespace std; vector<vector<int>> shiftGrid(vector<vector<int>>& grid, int k) { int n = grid.size(), m = grid[0].size(); k = k % (n * m); vector<vector<int>> res(n, vector<int>(m)); for(int i = 0; i < n; i ++) for(int j = 0; j < m; j ++){ ...
21.454545
65
0.480932
[ "vector" ]
164b63bafde0d212c56265d3553fb6bc509d0624
1,901
hpp
C++
include/vktiny/Swapchain.hpp
nishidate-yuki/vktiny
d33332d87700578283edb3a069522220493eed8d
[ "MIT" ]
2
2021-08-19T13:46:18.000Z
2021-08-21T08:44:37.000Z
include/vktiny/Swapchain.hpp
nishidate-yuki/vktiny
d33332d87700578283edb3a069522220493eed8d
[ "MIT" ]
null
null
null
include/vktiny/Swapchain.hpp
nishidate-yuki/vktiny
d33332d87700578283edb3a069522220493eed8d
[ "MIT" ]
1
2021-08-21T07:42:08.000Z
2021-08-21T07:42:08.000Z
#pragma once #define VULKAN_HPP_DISPATCH_LOADER_DYNAMIC 1 #include <vulkan/vulkan.hpp> #include <GLFW/glfw3.h> #include <utility> #include "Context.hpp" namespace vkt { struct FrameInfo { uint32_t imageIndex; uint32_t currentFrame; vk::Semaphore imageAvailableSemaphore; vk::Sema...
28.373134
80
0.648606
[ "vector" ]
164ddf785105f305d4a21b25d9b4f2f87b6d4c45
1,166
cpp
C++
xarm_vision/d435i_xarm_setup/src/tf_object_to_base.cpp
Permobil-Senior-Design/xarm_ros
3d82a29e462e0c26598f20222cb5d3d372de02f7
[ "BSD-3-Clause" ]
null
null
null
xarm_vision/d435i_xarm_setup/src/tf_object_to_base.cpp
Permobil-Senior-Design/xarm_ros
3d82a29e462e0c26598f20222cb5d3d372de02f7
[ "BSD-3-Clause" ]
null
null
null
xarm_vision/d435i_xarm_setup/src/tf_object_to_base.cpp
Permobil-Senior-Design/xarm_ros
3d82a29e462e0c26598f20222cb5d3d372de02f7
[ "BSD-3-Clause" ]
1
2022-02-11T22:27:35.000Z
2022-02-11T22:27:35.000Z
#include "ros/ros.h" #include <tf/transform_broadcaster.h> #include <object_recognition_msgs/RecognizedObjectArray.h> void poseCallback(const object_recognition_msgs::RecognizedObjectArrayConstPtr& msg){ if(msg->objects.empty()) return; if(msg->objects.size()>1) ROS_WARN("Detected Multiple objects, only bro...
43.185185
236
0.740995
[ "transform" ]
164f58769bcad387092bec46df3cb27b27082a9a
5,967
cpp
C++
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/app/CActivityManagerMemoryInfo.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/app/CActivityManagerMemoryInfo.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
null
null
null
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/app/CActivityManagerMemoryInfo.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 // // ...
26.402655
97
0.707391
[ "object" ]
1652063ce49727f1c48a9512142fdb5ae40285f4
1,456
cpp
C++
Leetcode/1000-2000/1444. Number of Ways of Cutting a Pizza/1444.cpp
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/1000-2000/1444. Number of Ways of Cutting a Pizza/1444.cpp
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/1000-2000/1444. Number of Ways of Cutting a Pizza/1444.cpp
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
class Solution { public: int ways(vector<string>& pizza, int k) { const int M = pizza.size(); const int N = pizza[0].size(); // dp[m][n][k] := # of ways to cut pizza[m:M][n:N] w/ k cuts dp.resize(M, vector<vector<int>>(N, vector<int>(k, -1))); prefix.resize(M + 1, vector<int>(N + 1)); for (i...
30.333333
72
0.484203
[ "vector" ]
16533a51d94aa05e64c8454b48beef2bdbd5740f
2,199
cpp
C++
Pong/main.cpp
peeet/Pong
094816b49f88328dabc3718ceb16d1672a259c73
[ "MIT" ]
null
null
null
Pong/main.cpp
peeet/Pong
094816b49f88328dabc3718ceb16d1672a259c73
[ "MIT" ]
null
null
null
Pong/main.cpp
peeet/Pong
094816b49f88328dabc3718ceb16d1672a259c73
[ "MIT" ]
null
null
null
/** * @author Peter Hansen * @copyright p3337.de All rights reserved. */ #undef UNICODE #define UNICODE #include <SFML/Graphics.hpp> #include <windows.h> #include "Board.h" #include "Variables.h" int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) //int main() { sf::Render...
24.433333
110
0.654388
[ "vector" ]
1654e1059ecff36494b26f30d77dec41fc92332a
6,697
cpp
C++
pgprogram.cpp
kiennguyenchi/potato-generator
4ff3de7f55e0960ca1a5bddb6c3891bfa8b795ac
[ "MIT" ]
null
null
null
pgprogram.cpp
kiennguyenchi/potato-generator
4ff3de7f55e0960ca1a5bddb6c3891bfa8b795ac
[ "MIT" ]
12
2021-09-17T16:06:51.000Z
2021-10-08T21:31:37.000Z
pgprogram.cpp
kiennguyenchi/potato-generator
4ff3de7f55e0960ca1a5bddb6c3891bfa8b795ac
[ "MIT" ]
3
2021-09-17T13:33:49.000Z
2021-11-18T22:12:18.000Z
/* * This program is A Static Site Generator (SSG) Tool coded in C++ language. * Author: Chi Kien Nguyen * Git Hub: https://github.com/kiennguyenchi/potato-generator */ /* This is the file containing main function to run the program */ #include "MainPage.h" #include <filesystem> #include <iostream> #include <string> ...
33.653266
125
0.532776
[ "vector" ]
16557d972519433e9cdce997c20bbbf40baef9a3
1,224
hpp
C++
third_party/boost/simd/function/prev.hpp
xmar/pythran
dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592
[ "BSD-3-Clause" ]
5
2018-02-20T11:21:12.000Z
2019-11-12T13:45:09.000Z
third_party/boost/simd/function/prev.hpp
xmar/pythran
dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592
[ "BSD-3-Clause" ]
null
null
null
third_party/boost/simd/function/prev.hpp
xmar/pythran
dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592
[ "BSD-3-Clause" ]
2
2017-11-17T15:30:36.000Z
2018-03-01T02:06:25.000Z
//================================================================================================== /*! @file @copyright 2016 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ //===========================...
21.103448
100
0.576797
[ "object" ]
1655a3ab15cb72a5c693bbbff979d0cd84895d7c
1,557
hpp
C++
iceoryx_hoofs/include/iceoryx_hoofs/cxx/scoped_static.hpp
FerdinandSpitzschnueffler/iceoryx
d193464922a3314323f4e03c4733d60143dde2f6
[ "Apache-2.0" ]
1
2022-03-11T10:48:23.000Z
2022-03-11T10:48:23.000Z
iceoryx_hoofs/include/iceoryx_hoofs/cxx/scoped_static.hpp
FerdinandSpitzschnueffler/iceoryx
d193464922a3314323f4e03c4733d60143dde2f6
[ "Apache-2.0" ]
5
2020-11-05T17:05:42.000Z
2022-02-11T08:35:46.000Z
iceoryx_hoofs/include/iceoryx_hoofs/cxx/scoped_static.hpp
boschglobal/iceoryx
eb0256407e3cf0baed1efdee6f8eeacf4d3514da
[ "Apache-2.0" ]
null
null
null
// Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved. // Copyright (c) 2021 by Apex.AI 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:...
37.071429
91
0.750803
[ "object" ]
165d7974adc67b403dbde0e176dcce5d1bf26529
3,224
cc
C++
mediapipe/framework/profiler/circular_buffer_test.cc
dwayne45/mediapipe
731d2b95363d58f12acb29a6f8435ec33fe548d9
[ "Apache-2.0" ]
47
2019-12-29T02:52:48.000Z
2022-02-21T08:39:14.000Z
mediapipe/framework/profiler/circular_buffer_test.cc
xellnaga/mediapipe
1722d4b8a25ad7c919576f9b1bab4ffa7a9299bc
[ "Apache-2.0" ]
5
2020-07-28T14:11:21.000Z
2021-05-02T10:11:29.000Z
mediapipe/framework/profiler/circular_buffer_test.cc
xellnaga/mediapipe
1722d4b8a25ad7c919576f9b1bab4ffa7a9299bc
[ "Apache-2.0" ]
41
2020-01-27T00:30:43.000Z
2022-03-24T01:35:19.000Z
// Copyright 2018 The MediaPipe Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or a...
29.309091
75
0.638958
[ "vector" ]
16635890f281f423ebf0f520ef76e1dc01d8ebe1
1,718
cpp
C++
demos/test5/test5.cpp
poluyan/PEPSGO
d1039bf0362bddca6247ffadf7b2124e6cfb64cf
[ "Apache-2.0" ]
1
2021-06-07T16:07:04.000Z
2021-06-07T16:07:04.000Z
demos/test5/test5.cpp
poluyan/PEPSGO
d1039bf0362bddca6247ffadf7b2124e6cfb64cf
[ "Apache-2.0" ]
null
null
null
demos/test5/test5.cpp
poluyan/PEPSGO
d1039bf0362bddca6247ffadf7b2124e6cfb64cf
[ "Apache-2.0" ]
null
null
null
#include <devel/init.hh> #include <pepsgo.hh> struct Example { std::function<core::Real(const std::vector<double>&)> FitnessFunction; std::function<core::Real(const std::vector<double>&, int)> FitnessFunctionMultiThread; }; int main(int argc, char *argv[]) { std::cout << "Start..." << std::endl; size_t thread_nu...
42.95
159
0.720023
[ "vector" ]
1663ce3c27d116ac660eec6ae0644b8ad23a3f49
525
cpp
C++
algos/alphabeta.cpp
AlgorithmCR/eldiego
f1c01061467ce8a50a5e6134ab6ea09c9bcd7e0f
[ "MIT" ]
31
2015-11-15T19:24:17.000Z
2018-09-27T01:45:24.000Z
algos/alphabeta.cpp
AlgorithmCR/eldiego
f1c01061467ce8a50a5e6134ab6ea09c9bcd7e0f
[ "MIT" ]
23
2015-09-23T15:56:32.000Z
2016-05-04T02:48:16.000Z
algos/alphabeta.cpp
AlgorithmCR/eldiego
f1c01061467ce8a50a5e6134ab6ea09c9bcd7e0f
[ "MIT" ]
7
2016-08-25T21:29:56.000Z
2018-07-22T03:39:51.000Z
ll alphabeta(State &s, bool player = true, int depth = 1e9, ll alpha = -INF, ll beta = INF) { //player = true -> Maximiza if(s.isFinal()) return s.score; //~ if (!depth) return s.heuristic(); vector<State> children; s.expand(player, children); int n = children.size(); forn(i, n) { ll v = al...
37.5
121
0.577143
[ "vector" ]
1670055a9e50076836d68a01f21b5380869953ef
6,265
cpp
C++
src/backend/dnnl/passes/fusion_info.cpp
wuxun-zhang/mkl-dnn
00a239ad2c932b967234ffb528069800ffcc0334
[ "Apache-2.0" ]
null
null
null
src/backend/dnnl/passes/fusion_info.cpp
wuxun-zhang/mkl-dnn
00a239ad2c932b967234ffb528069800ffcc0334
[ "Apache-2.0" ]
null
null
null
src/backend/dnnl/passes/fusion_info.cpp
wuxun-zhang/mkl-dnn
00a239ad2c932b967234ffb528069800ffcc0334
[ "Apache-2.0" ]
null
null
null
/******************************************************************************* * Copyright 2022 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.a...
39.402516
81
0.572546
[ "vector" ]
1678b754beeedc90e8cb3c6b3f04ae76388bb533
371
cc
C++
Question/最大步长可达性判断.cc
lkimprove/Study_C
ee1153536f28e160d5daad4ddebaa547c3941ee7
[ "MIT" ]
null
null
null
Question/最大步长可达性判断.cc
lkimprove/Study_C
ee1153536f28e160d5daad4ddebaa547c3941ee7
[ "MIT" ]
null
null
null
Question/最大步长可达性判断.cc
lkimprove/Study_C
ee1153536f28e160d5daad4ddebaa547c3941ee7
[ "MIT" ]
null
null
null
//2 1 0 1 2 3 不能到达 //2 1 1 1 2 3 可以到达 bool CanGet(vector<int>& array){ int n = array.size(); vector<int> dp(n, 0); dp[0] = 1; for (int i = 0; i < n; i++){ if (dp[i] == 0){ continue; } for (int j = 1; j <= array[i]; j++){ int temp = i + j; if (temp < n){ dp[temp] = 1; } } } if (dp[n - ...
12.366667
38
0.455526
[ "vector" ]
167ca79cb80e37557ab43ce3e89f38baf1ad5a07
1,702
cpp
C++
src/process.cpp
FrancoisSestier/CppND-System-Monitor-Project-Updated
44ea19e791b9924d671abd585085a685264af11c
[ "MIT" ]
null
null
null
src/process.cpp
FrancoisSestier/CppND-System-Monitor-Project-Updated
44ea19e791b9924d671abd585085a685264af11c
[ "MIT" ]
null
null
null
src/process.cpp
FrancoisSestier/CppND-System-Monitor-Project-Updated
44ea19e791b9924d671abd585085a685264af11c
[ "MIT" ]
null
null
null
#include "process.h" #include <unistd.h> #include <cctype> #include <sstream> #include <string> #include <vector> #include "linux_parser.h" using std::string; using std::to_string; using std::vector; // TODO: Return this process's ID int Process::Pid() const { return pid_; } // TODO: Return this process's CPU uti...
30.392857
79
0.698002
[ "vector" ]
1682abf314bd87b36724ae2a8cf1f4ff1b7cd8f5
4,004
cpp
C++
src/utils/Buffer.cpp
xDimon/primitive
092e9158444710cdde45c57c4115efa06c85e161
[ "Apache-2.0" ]
12
2017-09-12T20:47:16.000Z
2019-04-05T11:39:40.000Z
src/utils/Buffer.cpp
xDimon/primitive
092e9158444710cdde45c57c4115efa06c85e161
[ "Apache-2.0" ]
null
null
null
src/utils/Buffer.cpp
xDimon/primitive
092e9158444710cdde45c57c4115efa06c85e161
[ "Apache-2.0" ]
1
2018-11-23T16:51:55.000Z
2018-11-23T16:51:55.000Z
// Copyright © 2017-2019 Dmitriy Khaustov // // 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...
20.222222
90
0.695055
[ "vector" ]
168614d8ad8215248fcfa6334cc57640c9a798df
2,216
cpp
C++
deps/CoinQ/src/CoinQ_jsonrpc.cpp
anypath/CoinVault
ec9fb9bdf557086b8bcad273c232319ed04442b9
[ "Unlicense", "OpenSSL", "MIT" ]
null
null
null
deps/CoinQ/src/CoinQ_jsonrpc.cpp
anypath/CoinVault
ec9fb9bdf557086b8bcad273c232319ed04442b9
[ "Unlicense", "OpenSSL", "MIT" ]
null
null
null
deps/CoinQ/src/CoinQ_jsonrpc.cpp
anypath/CoinVault
ec9fb9bdf557086b8bcad273c232319ed04442b9
[ "Unlicense", "OpenSSL", "MIT" ]
null
null
null
/////////////////////////////////////////////////////////////////////////////// // // CoinQ_jsonrpc.cpp // // Copyright (c) 2013 Eric Lombrozo // // All Rights Reserved. #include "CoinQ_jsonrpc.h" using namespace CoinQ::JsonRpc; void Request::setJson(const std::string& json) { json_spirit::Value value; json_...
28.410256
88
0.650722
[ "object" ]
1692f3d52572b45e010d2d51edcf7436f6d5ded9
6,127
hpp
C++
include/workload/workload.hpp
tanner-andrulis/timeloop
acf4dc7fa0e34ff2fa788ba20a0842d1b5b97951
[ "BSD-3-Clause" ]
1
2022-03-05T03:07:51.000Z
2022-03-05T03:07:51.000Z
include/workload/workload.hpp
tanner-andrulis/timeloop
acf4dc7fa0e34ff2fa788ba20a0842d1b5b97951
[ "BSD-3-Clause" ]
null
null
null
include/workload/workload.hpp
tanner-andrulis/timeloop
acf4dc7fa0e34ff2fa788ba20a0842d1b5b97951
[ "BSD-3-Clause" ]
null
null
null
/* Copyright (c) 2019, NVIDIA CORPORATION. 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 cond...
31.582474
91
0.711768
[ "object", "shape" ]