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
a598bfd07d0f3549d66728365e23343926e4b384
2,441
hpp
C++
include/nodes.hpp
mvousden/psap
5837ef787b80d1d4fe33286561c0537d1581d578
[ "BSD-3-Clause" ]
null
null
null
include/nodes.hpp
mvousden/psap
5837ef787b80d1d4fe33286561c0537d1581d578
[ "BSD-3-Clause" ]
null
null
null
include/nodes.hpp
mvousden/psap
5837ef787b80d1d4fe33286561c0537d1581d578
[ "BSD-3-Clause" ]
null
null
null
#ifndef NODES_HPP #define NODES_HPP #include <atomic> #include <memory> #include <mutex> #include <string> #include <set> #include <vector> class NodeH; /* A circle necessary for reasonable performance. */ typedef unsigned TransformCount; /* Nodes in general. All nodes are named. * * Locking and transformation be...
34.380282
79
0.723474
[ "vector" ]
a59ca54fbc4e0ea95e6153d3fee39b032b20eefb
22,263
cc
C++
tests/ut/ge/graph/passes/buffer_pool_memory_pass_unittest.cc
mindspore-ai/graphengine
460406cbd691b963d125837f022be5d8abd1a637
[ "Apache-2.0" ]
207
2020-03-28T02:12:50.000Z
2021-11-23T18:27:45.000Z
tests/ut/ge/graph/passes/buffer_pool_memory_pass_unittest.cc
mindspore-ai/graphengine
460406cbd691b963d125837f022be5d8abd1a637
[ "Apache-2.0" ]
4
2020-04-17T07:32:44.000Z
2021-06-26T04:55:03.000Z
tests/ut/ge/graph/passes/buffer_pool_memory_pass_unittest.cc
mindspore-ai/graphengine
460406cbd691b963d125837f022be5d8abd1a637
[ "Apache-2.0" ]
13
2020-03-28T02:52:26.000Z
2021-07-03T23:12:54.000Z
/** * Copyright 2019-2020 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
37.606419
105
0.717379
[ "vector" ]
a5a3634758dfaea33e17284754aa7ebaeccd4a0d
1,303
cpp
C++
token/Token.cpp
agatak8/sapling
d80809e9c67cf308d920ef3e9b80ace4e27097e4
[ "MIT" ]
1
2018-05-07T15:00:00.000Z
2018-05-07T15:00:00.000Z
token/Token.cpp
agatak8/sapling
d80809e9c67cf308d920ef3e9b80ace4e27097e4
[ "MIT" ]
null
null
null
token/Token.cpp
agatak8/sapling
d80809e9c67cf308d920ef3e9b80ace4e27097e4
[ "MIT" ]
null
null
null
#include "Token.h" using namespace TokenType; bool Token::isTerminal() const { return type <= EOT; } Type Token::getType() const { return type; } int Token::getInt() const { return integer; } std::string Token::getString() const { return string; } std::string Token::getName() const { return nam...
20.046154
83
0.636224
[ "vector" ]
a5a8350ab4e6cdce4eba9596beb1b94168cc3295
20,757
cpp
C++
app/src/main/cpp/src/communication/CommandLine.cpp
CCH852573130/3DPrinting11
dfe6e6c1a17c1a222d93c5c835c67e5b43999024
[ "MIT" ]
null
null
null
app/src/main/cpp/src/communication/CommandLine.cpp
CCH852573130/3DPrinting11
dfe6e6c1a17c1a222d93c5c835c67e5b43999024
[ "MIT" ]
null
null
null
app/src/main/cpp/src/communication/CommandLine.cpp
CCH852573130/3DPrinting11
dfe6e6c1a17c1a222d93c5c835c67e5b43999024
[ "MIT" ]
3
2020-04-12T01:53:41.000Z
2020-07-06T08:07:49.000Z
//Copyright (c) 2018 Ultimaker B.V. //CuraEngine is released under the terms of the AGPLv3 or higher. #include <cstring> //For strtok and strcopy. #include <fstream> //To check if files exist. #include <errno.h> // error number when trying to read file #include <numeric> //For std::accumulate. #ifdef _OPENMP #incl...
40.620352
197
0.548201
[ "mesh", "object", "vector", "model" ]
a5ac23e50d662a47210a10390fd4c61721878a31
4,226
inl
C++
reflection_helpers/runtime_helper.inl
phisko/putils
741e143cef837ae78526656dd7c926283ccbebc9
[ "MIT" ]
26
2018-11-12T03:29:13.000Z
2021-11-30T22:43:44.000Z
reflection_helpers/runtime_helper.inl
phisko/putils
741e143cef837ae78526656dd7c926283ccbebc9
[ "MIT" ]
null
null
null
reflection_helpers/runtime_helper.inl
phisko/putils
741e143cef837ae78526656dd7c926283ccbebc9
[ "MIT" ]
9
2018-12-28T08:37:06.000Z
2020-04-27T08:17:17.000Z
#include "runtime_helper.hpp" #include <map> #include <unordered_map> #include "to_string.hpp" #include "lengthof.hpp" #include "vector.hpp" #include "meta/traits/is_indexable.hpp" #include "meta/traits/indexed_type.hpp" #include "meta/traits/is_specialization.hpp" namespace putils::reflection::runtime { namespa...
32.507692
193
0.680549
[ "vector" ]
a5b4fda9b884ceacab8654a07bab5d270b8674fb
5,202
cxx
C++
logger/safe_logger_client.cxx
trotill/11parts_CPP
53a69d516fdcb5c92b591b5dadc49dfdd2a3b26b
[ "MIT" ]
null
null
null
logger/safe_logger_client.cxx
trotill/11parts_CPP
53a69d516fdcb5c92b591b5dadc49dfdd2a3b26b
[ "MIT" ]
null
null
null
logger/safe_logger_client.cxx
trotill/11parts_CPP
53a69d516fdcb5c92b591b5dadc49dfdd2a3b26b
[ "MIT" ]
null
null
null
/* * safe_logger_client.cxx * * Created on: 20 сент. 2019 г. * Author: root */ #include "safe_logger_client.h" #include "algo_biphasic_offset.h" #include "dnk_biphasic_offset.h" eErrorTp safelogger_client::to_log(u32 count,Json::Value & json,u8 prec=JSONCPP_DEFAULT_PRECISION){ //Json::FastWriter wr; retu...
24.889952
145
0.653595
[ "vector" ]
a5c20f9cb7e7934870c338bdd2458f9e106cdac1
3,067
cpp
C++
android-28/android/content/pm/LabeledIntent.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
12
2020-03-26T02:38:56.000Z
2022-03-14T08:17:26.000Z
android-28/android/content/pm/LabeledIntent.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
1
2021-01-27T06:07:45.000Z
2021-11-13T19:19:43.000Z
android-30/android/content/pm/LabeledIntent.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
3
2021-02-02T12:34:55.000Z
2022-03-08T07:45:57.000Z
#include "../Intent.hpp" #include "./PackageManager.hpp" #include "../../graphics/drawable/Drawable.hpp" #include "../../os/Parcel.hpp" #include "../../../JString.hpp" #include "../../../JString.hpp" #include "./LabeledIntent.hpp" namespace android::content::pm { // Fields JObject LabeledIntent::CREATOR() { retur...
24.733871
111
0.690251
[ "object" ]
a5c32a39cc34258fd14a439b20bed6d51d3a0839
6,080
hpp
C++
include/netp/app.hpp
kaocher82/netplus
4bc45c4d55ff4e21a65f5c7e92f70b4a25220a1f
[ "MIT" ]
null
null
null
include/netp/app.hpp
kaocher82/netplus
4bc45c4d55ff4e21a65f5c7e92f70b4a25220a1f
[ "MIT" ]
null
null
null
include/netp/app.hpp
kaocher82/netplus
4bc45c4d55ff4e21a65f5c7e92f70b4a25220a1f
[ "MIT" ]
null
null
null
#ifndef _NETP_APP_HPP_ #define _NETP_APP_HPP_ #include <netp/core.hpp> #include <netp/signal_broker.hpp> #include <netp/test.hpp> //#define NETP_DEBUG_OBJECT_SIZE namespace netp { typedef std::function<void()> fn_app_hook_t; struct app_cfg { std::string logfilepathname; std::vector<std::string> dnsnses; //d...
24.223108
114
0.692434
[ "vector" ]
77749346a328e69048acd635e97fdb9c2e77361f
10,651
cpp
C++
addons/ofxUI/src/ofxUIEnvelopeEditor.cpp
k4rm/AscoGraph
9038ae785b6f4f144a3ab5c4c5520761c0cd08f2
[ "MIT" ]
18
2015-01-18T22:34:22.000Z
2020-09-06T20:30:30.000Z
addons/ofxUI/src/ofxUIEnvelopeEditor.cpp
k4rm/AscoGraph
9038ae785b6f4f144a3ab5c4c5520761c0cd08f2
[ "MIT" ]
2
2015-08-04T00:07:46.000Z
2017-05-10T15:53:51.000Z
addons/ofxUI/src/ofxUIEnvelopeEditor.cpp
k4rm/AscoGraph
9038ae785b6f4f144a3ab5c4c5520761c0cd08f2
[ "MIT" ]
10
2015-01-18T23:46:10.000Z
2019-08-25T12:10:04.000Z
/********************************************************************************** Copyright (C) 2012 Syed Reza Ali (www.syedrezaali.com) Created by Mitchell Nordine on 28/01/2014. Refactored & Edited by Reza Ali on 02/02/2014 Permission is hereby granted, free of charge, to any person obtaining a copy of thi...
25.120283
140
0.569806
[ "vector" ]
7782083e671f45218cfba730dfbada11027fbcb4
5,410
cpp
C++
mkediscovery/src/mainwindow.cpp
MagikEyeInc/SDK
e4a3ac92a7ec5bf57978d15d43feb81b1f595653
[ "BSD-3-Clause-No-Nuclear-License-2014", "Unlicense" ]
12
2021-07-14T21:30:53.000Z
2021-11-01T08:39:30.000Z
mkediscovery/src/mainwindow.cpp
MagikEyeInc/SDK
e4a3ac92a7ec5bf57978d15d43feb81b1f595653
[ "BSD-3-Clause-No-Nuclear-License-2014", "Unlicense" ]
3
2021-07-23T06:30:29.000Z
2021-08-03T11:37:24.000Z
mkediscovery/src/mainwindow.cpp
MagikEyeInc/SDK
e4a3ac92a7ec5bf57978d15d43feb81b1f595653
[ "BSD-3-Clause-No-Nuclear-License-2014", "Unlicense" ]
4
2021-07-23T11:30:39.000Z
2022-01-12T03:39:13.000Z
#include <QUrl> #include <QDesktopServices> #include <QSettings> #include <QDesktopWidget> #include <QStyle> #include "aboutdialog.h" #include "mainwindow.h" #include "ui_mainwindow.h" #include "mke/net/ssdp/discovery.h" // ---------------------------------------------------------------------------- MainWindow::Mai...
31.453488
79
0.55841
[ "geometry" ]
77a710096f15a6ac8d8a0c299e67e54344732045
5,650
cc
C++
bin/cloud_provider_firebase/device_set/cloud_device_set_impl.cc
Acidburn0zzz/peridot
9a3b1fb8e834d0315092478d83d0176ef28cb765
[ "BSD-3-Clause" ]
1
2018-02-05T23:33:32.000Z
2018-02-05T23:33:32.000Z
bin/cloud_provider_firebase/device_set/cloud_device_set_impl.cc
Acidburn0zzz/peridot
9a3b1fb8e834d0315092478d83d0176ef28cb765
[ "BSD-3-Clause" ]
null
null
null
bin/cloud_provider_firebase/device_set/cloud_device_set_impl.cc
Acidburn0zzz/peridot
9a3b1fb8e834d0315092478d83d0176ef28cb765
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2017 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 "peridot/bin/cloud_provider_firebase/device_set/cloud_device_set_impl.h" #include "lib/fxl/logging.h" #include "lib/fxl/strings/concatenate.h" n...
30.053191
81
0.659646
[ "vector" ]
77a880df90008795b9780e5af16568c40db68396
9,504
cpp
C++
performanceEval/test/lchol_csc_performance.cpp
CompOpt4Apps/Artifact-DataDepSimplify
4fa1bf2bda2902fec50a54ee79ae405a554fc9f4
[ "MIT" ]
5
2019-05-20T03:35:41.000Z
2021-09-16T22:22:13.000Z
performanceEval/test/lchol_csc_performance.cpp
CompOpt4Apps/Artifact-DataDepSimplify
4fa1bf2bda2902fec50a54ee79ae405a554fc9f4
[ "MIT" ]
null
null
null
performanceEval/test/lchol_csc_performance.cpp
CompOpt4Apps/Artifact-DataDepSimplify
4fa1bf2bda2902fec50a54ee79ae405a554fc9f4
[ "MIT" ]
null
null
null
// // Created by kazem on 11/14/18. // #include <stdio.h> //#include <cholmod.h> //#include <cholmod_function.h> #define MKL_ILP64 #define FLEXCOMPLEX typedef int INT; #define MKL_INT INT #include <iostream> #include <fstream> #include <sstream> #include <iostream> #include <chrono> //#include <mkl.h> #include <symb...
28.887538
113
0.584701
[ "vector" ]
77b0ede1abcd9daf934a9823d7f3ad4df0ffb0a0
2,241
hpp
C++
include/libp2p/peer/key_repository.hpp
Alexey-N-Chernyshov/cpp-libp2p
8b52253f9658560a4b1311b3ba327f02284a42a6
[ "Apache-2.0", "MIT" ]
135
2020-06-13T08:57:36.000Z
2022-03-27T05:26:11.000Z
include/libp2p/peer/key_repository.hpp
igor-egorov/cpp-libp2p
7c9d83bf0760a5f653d86ddbb00645414c61d4fc
[ "Apache-2.0", "MIT" ]
41
2020-06-12T15:45:05.000Z
2022-03-07T23:10:33.000Z
include/libp2p/peer/key_repository.hpp
igor-egorov/cpp-libp2p
7c9d83bf0760a5f653d86ddbb00645414c61d4fc
[ "Apache-2.0", "MIT" ]
43
2020-06-15T10:12:45.000Z
2022-03-21T03:04:50.000Z
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #ifndef LIBP2P_KEY_REPOSITORY_HPP #define LIBP2P_KEY_REPOSITORY_HPP #include <unordered_set> #include <vector> #include <libp2p/crypto/key.hpp> #include <libp2p/peer/peer_id.hpp> #include <libp2p/outcome/outcome.hpp>...
27.329268
79
0.652834
[ "vector" ]
77b3cd379aa297ffb3e4c22a57c6ea15427a1019
869
cpp
C++
graph/trajan.cpp
qwer312132/competive-programing
05ea48900c827753a7b5723ef54a0852f7e7cbc1
[ "CECILL-B" ]
null
null
null
graph/trajan.cpp
qwer312132/competive-programing
05ea48900c827753a7b5723ef54a0852f7e7cbc1
[ "CECILL-B" ]
null
null
null
graph/trajan.cpp
qwer312132/competive-programing
05ea48900c827753a7b5723ef54a0852f7e7cbc1
[ "CECILL-B" ]
null
null
null
struct Scc{ int n, nScc, vst[MXN], bln[MXN], num; int dfn[MXN], low[MXN]; vector<int> E[MXN]; stack<int> stk; void init(int _n){ n = _n; num = nScc = 0; for(int i = 0; i <= n; ++i) E[i].clear(); FZ(vst); FZ(dfn); FZ(low); while(!stk.empty()) stk.pop(); } void addEdge(int u,...
26.333333
59
0.428078
[ "vector" ]
77b6b832f1ccd05e7459dae4cf32b3f168e28a0a
3,209
cpp
C++
openikcape/core/vlefunctions.cpp
Nukleon84/openikcape
7612a7c68237920373c11f137130d74f7ad134eb
[ "MIT" ]
19
2020-09-08T07:23:10.000Z
2022-01-10T19:12:51.000Z
openikcape/core/vlefunctions.cpp
Nukleon84/openikcape
7612a7c68237920373c11f137130d74f7ad134eb
[ "MIT" ]
null
null
null
openikcape/core/vlefunctions.cpp
Nukleon84/openikcape
7612a7c68237920373c11f137130d74f7ad134eb
[ "MIT" ]
2
2020-09-09T15:10:39.000Z
2021-08-05T00:53:28.000Z
#include <string> #include <vector> #include <stdexcept> #include <math.h> #include "thermodynamics.h" #include "activityProperties.h" #include "vleqfunctions.h" using namespace std; using namespace Thermodynamics::Types; namespace Thermodynamics { namespace VLEQFunctions { ActivityProperties Activity...
33.778947
134
0.555002
[ "vector" ]
77b7a133c1b80e54fa251f2a99709c7ee45f2818
2,774
hpp
C++
Doremi/Core/Include/PositionCorrectionHandler.hpp
meraz/doremi
452d08ebd10db50d9563c1cf97699571889ab18f
[ "MIT" ]
1
2020-03-23T15:42:05.000Z
2020-03-23T15:42:05.000Z
Doremi/Core/Include/PositionCorrectionHandler.hpp
Meraz/ssp15
452d08ebd10db50d9563c1cf97699571889ab18f
[ "MIT" ]
null
null
null
Doremi/Core/Include/PositionCorrectionHandler.hpp
Meraz/ssp15
452d08ebd10db50d9563c1cf97699571889ab18f
[ "MIT" ]
1
2020-03-23T15:42:06.000Z
2020-03-23T15:42:06.000Z
#pragma once #include <DirectXMath.h> #include <list> #include <vector> namespace DoremiEngine { namespace Core { class SharedContext; } } namespace Doremi { namespace Core { /** TODOCM doc */ struct MovementStamp { MovementStamp(Dire...
29.510638
158
0.566691
[ "vector", "transform" ]
77b832dbe2da74cc90d312cbb99c502dd00a95b7
552
cpp
C++
LuoguCodes/CF1008A.cpp
Anguei/OI-Codes
0ef271e9af0619d4c236e314cd6d8708d356536a
[ "MIT" ]
null
null
null
LuoguCodes/CF1008A.cpp
Anguei/OI-Codes
0ef271e9af0619d4c236e314cd6d8708d356536a
[ "MIT" ]
null
null
null
LuoguCodes/CF1008A.cpp
Anguei/OI-Codes
0ef271e9af0619d4c236e314cd6d8708d356536a
[ "MIT" ]
null
null
null
#include <cctype> #include <set> #include <vector> #include <string> #include <iostream> #include <algorithm> int main() { std::string s; std::cin >> s; for (auto &i : s) if (isupper(i)) i += 32; std::set<char> set = { ';a';, ';e';, ';i';, ';o';, ';u'; }; for (int i = 0; i < s.size() - 1; ++i) if (!set.co...
21.230769
64
0.483696
[ "vector" ]
77ba80648a050d77e0019568894a6fc8915f1eb2
9,104
hpp
C++
lib/malloy/http/routing/router.hpp
madmongo1/malloy
69e383d319d4d090888cab21b0c33e3c1499d8ab
[ "MIT" ]
null
null
null
lib/malloy/http/routing/router.hpp
madmongo1/malloy
69e383d319d4d090888cab21b0c33e3c1499d8ab
[ "MIT" ]
null
null
null
lib/malloy/http/routing/router.hpp
madmongo1/malloy
69e383d319d4d090888cab21b0c33e3c1499d8ab
[ "MIT" ]
null
null
null
#pragma once #include "route.hpp" #include "../request.hpp" #include "../response.hpp" #include "../http.hpp" #include "../generator.hpp" #include <boost/beast/core.hpp> #include <boost/beast/http.hpp> #include <boost/beast/version.hpp> #include <spdlog/logger.h> #include <filesystem> #include <functional> #include...
30.756757
137
0.544925
[ "object", "vector" ]
77c09bd9d3ae45d0cf57a440744905cf0ff38357
8,167
cpp
C++
src/bounce/cloth/cloth_contact_manager.cpp
demiurgestudios/bounce
9f8dcae52a074ba76088da9c94471366f6e4ca8f
[ "Zlib" ]
26
2020-02-10T19:28:00.000Z
2021-09-23T22:36:37.000Z
src/bounce/cloth/cloth_contact_manager.cpp
demiurgestudios/bounce
9f8dcae52a074ba76088da9c94471366f6e4ca8f
[ "Zlib" ]
null
null
null
src/bounce/cloth/cloth_contact_manager.cpp
demiurgestudios/bounce
9f8dcae52a074ba76088da9c94471366f6e4ca8f
[ "Zlib" ]
7
2020-01-22T20:42:33.000Z
2021-02-25T02:34:54.000Z
/* * Copyright (c) 2016-2019 Irlan Robson https://irlanrobson.github.io * * 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 any p...
25.926984
139
0.728909
[ "shape" ]
77c24f4c143df69d5a52cb97eab8cbb8b1d4e827
1,086
cpp
C++
atcoder/abc180/e.cpp
polylogarithm/cp
426cb6f6ba389ff5f492e5bc2e957aac128781b5
[ "MIT" ]
null
null
null
atcoder/abc180/e.cpp
polylogarithm/cp
426cb6f6ba389ff5f492e5bc2e957aac128781b5
[ "MIT" ]
null
null
null
atcoder/abc180/e.cpp
polylogarithm/cp
426cb6f6ba389ff5f492e5bc2e957aac128781b5
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; const int INF = 100000000; //https://atcoder.jp/contests/abc180/editorial/249 //https://atcoder.jp/contests/abc180/submissions?f.User=SSRS int main() { int N; cin >> N; vector<int> X(N), Y(N), Z(N); for (int i = 0; i < N; i++) { cin >> X[i] >> Y[i]...
29.351351
91
0.368324
[ "vector" ]
77c7453441131ed5eb459e7e5e6eefd727876e6c
26,424
cpp
C++
surface/src/on_nurbs/global_optimization_pdm.cpp
yxlao/StanfordPCL
98a8663f896c1ba880d14efa2338b7cfbd01b6ef
[ "MIT" ]
null
null
null
surface/src/on_nurbs/global_optimization_pdm.cpp
yxlao/StanfordPCL
98a8663f896c1ba880d14efa2338b7cfbd01b6ef
[ "MIT" ]
null
null
null
surface/src/on_nurbs/global_optimization_pdm.cpp
yxlao/StanfordPCL
98a8663f896c1ba880d14efa2338b7cfbd01b6ef
[ "MIT" ]
null
null
null
/* * Software License Agreement (BSD License) * * Copyright (c) 2011, Thomas Mörwald * 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 re...
35.516129
80
0.535725
[ "vector" ]
77d8f7372a359a5975d7d8edb969fb1a1d5554cb
4,601
hpp
C++
include/utils/SharedTable.hpp
sroycode/zapdos
8818ef109e072dcbe990914d9a2a6d70ef190d3e
[ "MIT" ]
5
2018-11-11T21:09:30.000Z
2020-06-25T12:46:41.000Z
include/utils/SharedTable.hpp
vnaad/zapdos
8818ef109e072dcbe990914d9a2a6d70ef190d3e
[ "MIT" ]
1
2020-08-02T09:12:57.000Z
2020-08-02T09:12:57.000Z
include/utils/SharedTable.hpp
vnaad/zapdos
8818ef109e072dcbe990914d9a2a6d70ef190d3e
[ "MIT" ]
null
null
null
/** * @project zapdos * @file include/utils/SharedTable.hpp * @author S Roychowdhury < sroycode at gmail dot com > * @version 1.0.0 * * @section LICENSE * * Copyright (c) 2018-2020 S Roychowdhury * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associat...
23.237374
93
0.745925
[ "vector" ]
77daa29b596f7dde7564e97284a86a17446dbbdc
5,794
cpp
C++
src/molecular-graph.cpp
puls-group/percolation-analyzer
df8d0905109db922f38c6bb4dab5da27ceb787d9
[ "MIT" ]
null
null
null
src/molecular-graph.cpp
puls-group/percolation-analyzer
df8d0905109db922f38c6bb4dab5da27ceb787d9
[ "MIT" ]
null
null
null
src/molecular-graph.cpp
puls-group/percolation-analyzer
df8d0905109db922f38c6bb4dab5da27ceb787d9
[ "MIT" ]
1
2021-09-09T19:40:48.000Z
2021-09-09T19:40:48.000Z
/* * SPDX-FileCopyrightText: 2020 Kevin Höllring for PULS Group <kevin.hoellring@fau.de> * * SPDX-License-Identifier: MIT * * Copyright (c) 2020 Kevin Höllring for PULS Group <kevin.hoellring@fau.de> * * Authors: 2020 Kevin Höllring <kevin.hoellring@fau.de> * * Permission is hereby granted, free of charge, ...
38.370861
201
0.566793
[ "shape", "vector", "transform" ]
77e6924d329f7b115ceb67595ca03639e0f68cad
1,278
cpp
C++
Level 5/Arbres binaires/Maintenir un tableau avec modifications sur intervalles/main.cpp
Wurlosh/France-ioi
f5fb36003cbfc56a2e7cf64ad43c4452f086f198
[ "MIT" ]
31
2018-10-30T09:54:23.000Z
2022-03-02T21:45:51.000Z
Level 5/Arbres binaires/Maintenir un tableau avec modifications sur intervalles/main.cpp
Wurlosh/France-ioi
f5fb36003cbfc56a2e7cf64ad43c4452f086f198
[ "MIT" ]
2
2016-12-24T23:39:20.000Z
2017-07-02T22:51:28.000Z
Level 5/Arbres binaires/Maintenir un tableau avec modifications sur intervalles/main.cpp
Wurlosh/France-ioi
f5fb36003cbfc56a2e7cf64ad43c4452f086f198
[ "MIT" ]
30
2018-10-25T12:28:36.000Z
2022-01-31T14:31:02.000Z
#include <iostream> #define N (1<<18) using namespace std; //int find(vector <int>& C, int x){return (C[x]==x) ? x : C[x]=find(C, C[x]);} //C++ //int find(int x){return (C[x]==x)?x:C[x]=find(C[x]);} typedef pair<int,int> ii; ii arb[N]={{0,0}}; int n,m,a,b,v; char type; void update(int node,int l,int r,int a,int b,...
17.04
84
0.482786
[ "vector" ]
77ea9a5d2a7f215e9dbbe1d1a1dd7227093f0d25
715
cpp
C++
src/core/cpp/object/GenericObject.cpp
NeroGames/Nero-Game-Engine
8543b8bb142738aa28bc20e929b342d3e6df066e
[ "MIT" ]
26
2020-09-02T18:14:36.000Z
2022-02-08T18:28:36.000Z
src/core/cpp/object/GenericObject.cpp
sk-landry/Nero-Game-Engine
8543b8bb142738aa28bc20e929b342d3e6df066e
[ "MIT" ]
14
2020-08-30T01:37:04.000Z
2021-07-19T20:47:29.000Z
src/core/cpp/object/GenericObject.cpp
sk-landry/Nero-Game-Engine
8543b8bb142738aa28bc20e929b342d3e6df066e
[ "MIT" ]
6
2020-09-02T18:14:57.000Z
2021-12-31T00:32:09.000Z
//////////////////////////////////////////////////////////// // Nero Game Engine // Copyright (c) 2016-2020 Sanou A. K. Landry ///////////////////////////////////////////////////////////// ///////////////////////////HEADERS/////////////////////////// //NERO #include <Nero/core/cpp/object/GameObject.h> /////////////////...
26.481481
119
0.420979
[ "object" ]
77f47f7075d241e4d1898fadb3e0bb0b2fa4d26f
118,080
cc
C++
samplecode/remoteattestation/GoogleMessages/Messages.pb.cc
nightmared/incubator-teaclave-sgx-sdk
1a30d2f8389e78cad71cf30e4e7d6c342f8cd280
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
samplecode/remoteattestation/GoogleMessages/Messages.pb.cc
nightmared/incubator-teaclave-sgx-sdk
1a30d2f8389e78cad71cf30e4e7d6c342f8cd280
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
samplecode/remoteattestation/GoogleMessages/Messages.pb.cc
nightmared/incubator-teaclave-sgx-sdk
1a30d2f8389e78cad71cf30e4e7d6c342f8cd280
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: Messages.proto #include "Messages.pb.h" #include <algorithm> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/extension_set.h> #include <google/protobuf/wire_format_lite.h> #include <google/protobuf/descriptor.h> #include <g...
38.60085
163
0.704632
[ "object" ]
af81b3747b87798ecc737e5c424544bb84d7259a
8,194
cc
C++
mindspore/lite/src/runtime/kernel/opencl/kernel/matmul.cc
Rossil2012/mindspore
8a20b5d784b3fec6d32e058581ec56ec553a06a0
[ "Apache-2.0" ]
1
2021-04-23T06:35:18.000Z
2021-04-23T06:35:18.000Z
mindspore/lite/src/runtime/kernel/opencl/kernel/matmul.cc
nudt-eddie/mindspore
55372b41fdfae6d2b88d7078971e06d537f6c558
[ "Apache-2.0" ]
null
null
null
mindspore/lite/src/runtime/kernel/opencl/kernel/matmul.cc
nudt-eddie/mindspore
55372b41fdfae6d2b88d7078971e06d537f6c558
[ "Apache-2.0" ]
null
null
null
/** * Copyright 2019 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
38.834123
114
0.658042
[ "shape", "vector" ]
af82cf8230199c9f3dda4b1dba4320f56ce6ca5b
2,485
hpp
C++
ACore/src/Stl.hpp
ecmwf/ecflow
2498d0401d3d1133613d600d5c0e0a8a30b7b8eb
[ "Apache-2.0" ]
11
2020-08-07T14:42:45.000Z
2021-10-21T01:59:59.000Z
ACore/src/Stl.hpp
CoollRock/ecflow
db61dddc84d3d2c7dd6af95fd799d717c6bc2a6d
[ "Apache-2.0" ]
10
2020-08-07T14:36:27.000Z
2022-02-22T06:51:24.000Z
ACore/src/Stl.hpp
CoollRock/ecflow
db61dddc84d3d2c7dd6af95fd799d717c6bc2a6d
[ "Apache-2.0" ]
6
2020-08-07T14:34:38.000Z
2022-01-10T12:06:27.000Z
#ifndef STL_HPP_ #define STL_HPP_ //============================================================================ // Name : stl // Author : Avi // Revision : $Revision: #5 $ // // Copyright 2009-2020 ECMWF. // This software is licensed under the terms of the Apache Licence version 2.0 // which can be ob...
35.5
85
0.556137
[ "vector" ]
af86b181d32a153e12597ce50c847ea80ee53af2
9,058
cpp
C++
src/audio/sndbuffer.cpp
dream-overflow/o3d
087ab870cc0fd9091974bb826e25c23903a1dde0
[ "FSFAP" ]
2
2019-06-22T23:29:44.000Z
2019-07-07T18:34:04.000Z
src/audio/sndbuffer.cpp
dream-overflow/o3d
087ab870cc0fd9091974bb826e25c23903a1dde0
[ "FSFAP" ]
null
null
null
src/audio/sndbuffer.cpp
dream-overflow/o3d
087ab870cc0fd9091974bb826e25c23903a1dde0
[ "FSFAP" ]
null
null
null
/** * @file sndbuffer.cpp * @brief Implementation of SndBuffer.h * @author Frederic SCHERMA (frederic.scherma@dreamoverflow.org) * @date 2003-04-11 * @copyright Copyright (c) 2001-2017 Dream Overflow. All rights reserved. * @details */ #include "o3d/audio/precompiled.h" #include "o3d/core/mutex.h" #include "o...
21.566667
112
0.665047
[ "object" ]
af95c6a71359f5090b3aa4ec6bcff9fc1e1c5c11
686
cpp
C++
gym/103048/e/e.cpp
GoatGirl98/cf
4077ca8e0fe29dc2bbb7b60166989857cc062e17
[ "MIT" ]
null
null
null
gym/103048/e/e.cpp
GoatGirl98/cf
4077ca8e0fe29dc2bbb7b60166989857cc062e17
[ "MIT" ]
null
null
null
gym/103048/e/e.cpp
GoatGirl98/cf
4077ca8e0fe29dc2bbb7b60166989857cc062e17
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define watch(x) std::cout << (#x) << " is " << (x) << std::endl using LL = long long; int main() { //freopen("in", "r", stdin); std::cin.tie(nullptr)->sync_with_stdio(false); int n; std::cin >> n; std::vector<std::vector<int>> e(n); for (int i = 1, u, v; i < n; ++i) { std::cin >> u >>...
22.866667
64
0.495627
[ "vector" ]
afa755859b3ea7fe2772ef1741ccdab8141f2853
5,618
cpp
C++
main.cpp
frostburn/raytrace
19c8f431e0efcac5e30632819757da584c8d6242
[ "MIT" ]
null
null
null
main.cpp
frostburn/raytrace
19c8f431e0efcac5e30632819757da584c8d6242
[ "MIT" ]
null
null
null
main.cpp
frostburn/raytrace
19c8f431e0efcac5e30632819757da584c8d6242
[ "MIT" ]
null
null
null
#include <iostream> #include <iomanip> #include <limits> #include <cmath> #include <vector> #include <memory> #include <random> #include <cassert> #include <string> #include "raytrace/quaternion.h" #include "raytrace/ray_traceable.h" #include "raytrace/gradient_traceable.h" #include "raytrace/sphere.h" #include "raytr...
33.242604
95
0.556782
[ "vector" ]
afb2dd2f064384da39904f6aceead4fa915a80f2
5,184
cc
C++
paddle/fluid/framework/async_executor.cc
PeterRK/Paddle
41e19eb4319695a02b01649409ebd34cbb6350d7
[ "Apache-2.0" ]
2
2019-03-08T03:04:48.000Z
2019-03-08T03:05:15.000Z
paddle/fluid/framework/async_executor.cc
PeterRK/Paddle
41e19eb4319695a02b01649409ebd34cbb6350d7
[ "Apache-2.0" ]
null
null
null
paddle/fluid/framework/async_executor.cc
PeterRK/Paddle
41e19eb4319695a02b01649409ebd34cbb6350d7
[ "Apache-2.0" ]
null
null
null
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
37.294964
80
0.69483
[ "shape", "vector" ]
afb7ffc78bb21f2408751a7cb56a24cf73c3ffc8
781
hpp
C++
source/tetris/tetris.hpp
menteralgo/tetris
1aa23b848a7694e3516d07029fdba5534a926edf
[ "MIT" ]
null
null
null
source/tetris/tetris.hpp
menteralgo/tetris
1aa23b848a7694e3516d07029fdba5534a926edf
[ "MIT" ]
null
null
null
source/tetris/tetris.hpp
menteralgo/tetris
1aa23b848a7694e3516d07029fdba5534a926edf
[ "MIT" ]
null
null
null
#pragma once #include "gn.hpp" using namespace gn; namespace tet { #define FIELD_WIDTH 10 #define FIELD_HEIGHT 20 #define SQUARE_SIZE 25 #define POLIES_NUM 7 #define NPB_WIDTH 4 #define NPB_HEIGHT 4 typedef void (*tetris_state)(); struct Polyomino { std::vector<vect...
19.525
102
0.641485
[ "vector" ]
afc4718f56bfcd39b4bedadd1f1b394a94a21174
3,047
cpp
C++
cartridge/cartridgeloader.cpp
spreetin/nesemu
0d9ca5a26f1ef6d1c99545f30ae52d4f7c093cb1
[ "MIT" ]
null
null
null
cartridge/cartridgeloader.cpp
spreetin/nesemu
0d9ca5a26f1ef6d1c99545f30ae52d4f7c093cb1
[ "MIT" ]
null
null
null
cartridge/cartridgeloader.cpp
spreetin/nesemu
0d9ca5a26f1ef6d1c99545f30ae52d4f7c093cb1
[ "MIT" ]
null
null
null
#include "cartridgeloader.h" #include "mappers/mapper_selecter.h" #include <fstream> #include <array> CartridgeLoader::CartridgeLoader() { } Cartridge *CartridgeLoader::loadFile(std::string filename) { iNES_Header header; std::vector<Byte> prgROM; std::vector<Byte> chrROM; bool ines2 = true; std:...
30.777778
105
0.566131
[ "vector" ]
afc53e9e336571bbac552d550503cc28be879284
27,784
cpp
C++
exchange/generated/src/ServerAsyncClient.cpp
danpape/mmx-node
99bae72a5135c9b208af9f402c0259351e8da151
[ "Apache-2.0" ]
null
null
null
exchange/generated/src/ServerAsyncClient.cpp
danpape/mmx-node
99bae72a5135c9b208af9f402c0259351e8da151
[ "Apache-2.0" ]
null
null
null
exchange/generated/src/ServerAsyncClient.cpp
danpape/mmx-node
99bae72a5135c9b208af9f402c0259351e8da151
[ "Apache-2.0" ]
null
null
null
// AUTO GENERATED by vnxcppcodegen #include <mmx/exchange/package.hxx> #include <mmx/exchange/ServerAsyncClient.hxx> #include <mmx/Block.hxx> #include <mmx/Transaction.hxx> #include <mmx/addr_t.hpp> #include <mmx/exchange/Server_approve.hxx> #include <mmx/exchange/Server_approve_return.hxx> #include <mmx/exchange/Ser...
34.428748
298
0.715592
[ "object", "vector" ]
afd1848e2f8ce879c6989e81a1e3716f6605eaf3
7,025
cpp
C++
cplusplus/zipdu.cpp
ShiftLeftSecurity/zipdu
57b6c2c17632500c8823df07a591f7667cbe0310
[ "Apache-2.0" ]
null
null
null
cplusplus/zipdu.cpp
ShiftLeftSecurity/zipdu
57b6c2c17632500c8823df07a591f7667cbe0310
[ "Apache-2.0" ]
null
null
null
cplusplus/zipdu.cpp
ShiftLeftSecurity/zipdu
57b6c2c17632500c8823df07a591f7667cbe0310
[ "Apache-2.0" ]
1
2021-11-29T15:52:49.000Z
2021-11-29T15:52:49.000Z
#include "Poco/Exception.h" #include "Poco/File.h" #include "Poco/FileStream.h" #include "Poco/Net/HTTPRequestHandlerFactory.h" #include "Poco/Net/HTTPRequestHandler.h" #include "Poco/Net/HTTPServer.h" #include "Poco/Net/HTTPServerParams.h" #include "Poco/Net/HTTPServerRequest.h" #include "Poco/Net/HTTPServerResponse.h...
31.78733
126
0.698932
[ "vector" ]
afd448af8b2a37d0fdc69f5f49c2c9ab75532f00
7,372
cpp
C++
src/level.cpp
umi0451/libchthon
bfce67f92bb945e124681221b1b7abe83c98da4b
[ "WTFPL" ]
2
2018-07-03T13:38:33.000Z
2020-07-14T12:55:19.000Z
src/level.cpp
umi0451/libchthon
bfce67f92bb945e124681221b1b7abe83c98da4b
[ "WTFPL" ]
null
null
null
src/level.cpp
umi0451/libchthon
bfce67f92bb945e124681221b1b7abe83c98da4b
[ "WTFPL" ]
null
null
null
#include "level.h" #include "game.h" #include "objects.h" #include "monsters.h" #include "items.h" #include "pathfinding.h" #include "fov.h" #include "log.h" #include "format.h" #include <cmath> #include <algorithm> namespace Chthon { Level::Level() : map(1, 1) { } Level::~Level() { } Level::Level(unsigned map_wid...
30.337449
161
0.590884
[ "vector" ]
afd509d8f6ac804561d498df38c34fbf9e393144
6,442
cpp
C++
src/beginner_tutorials/src/talker.cpp
rjb3vp/beginner_tutorials
01c1e3c32087852bfc4cf9719d28748018cdd43e
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/beginner_tutorials/src/talker.cpp
rjb3vp/beginner_tutorials
01c1e3c32087852bfc4cf9719d28748018cdd43e
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/beginner_tutorials/src/talker.cpp
rjb3vp/beginner_tutorials
01c1e3c32087852bfc4cf9719d28748018cdd43e
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
/** @file talker.cpp * @brief the ROS node that talks (publishes) messages * * Modified from the example * Modified from the example Copyright 2019 Ryan Bates, ROS.org Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Red...
33.552083
755
0.705837
[ "object", "transform" ]
afd7f0bb68ed59f276e105add9caea2df73cc41e
818
cpp
C++
C++/src/bio/lib/background_models.cpp
JohnReid/biopsy
1eeb714ba5b53f2ecf776d865d32e2078cbc0338
[ "MIT" ]
null
null
null
C++/src/bio/lib/background_models.cpp
JohnReid/biopsy
1eeb714ba5b53f2ecf776d865d32e2078cbc0338
[ "MIT" ]
null
null
null
C++/src/bio/lib/background_models.cpp
JohnReid/biopsy
1eeb714ba5b53f2ecf776d865d32e2078cbc0338
[ "MIT" ]
null
null
null
/* Copyright John Reid 2007 */ #include "bio-pch.h" #include "bio/defs.h" #include "bio/background_models.h" #include "bio/hmm_dna.h" #include "bio/environment.h" #include <fstream> BIO_NS_START void gen_sequence_from_random_species_dna_hmm(seq_t & seq, size_t seq_length) { DnaHmmOrderNumStateMap::singleton()....
18.177778
98
0.757946
[ "model" ]
afdc73b5bfc96f3fc28abe839c97c0edfdf954e7
570
cpp
C++
Algorithms/1679.Max_Number_of_K-Sum_Pairs.cpp
metehkaya/LeetCode
52f4a1497758c6f996d515ced151e8783ae4d4d2
[ "MIT" ]
2
2020-07-20T06:40:22.000Z
2021-11-20T01:23:26.000Z
Problems/LeetCode/Problems/1679.Max_Number_of_K-Sum_Pairs.cpp
metehkaya/Algo-Archive
03b5fdcf06f84a03125c57762c36a4e03ca6e756
[ "MIT" ]
null
null
null
Problems/LeetCode/Problems/1679.Max_Number_of_K-Sum_Pairs.cpp
metehkaya/Algo-Archive
03b5fdcf06f84a03125c57762c36a4e03ca6e756
[ "MIT" ]
null
null
null
class Solution { public: int maxOperations(vector<int>& ar, int k) { map<int,int> mp; int n = ar.size() , ans = 0; for( int i = 0 ; i < n ; i++ ) mp[ar[i]]++; for(auto it : mp) { int x = it.first; int xc = it.second; int y = k-x; ...
25.909091
47
0.350877
[ "vector" ]
afe48deb65c17812b9a3be9482a5bc1134cc35d6
10,356
cpp
C++
d3d11loadtest/Game.cpp
walbourn/directxtextest
c843ab9a7d75d01f3fc1fa134fcf4d94b12ea95b
[ "MIT" ]
6
2015-10-24T20:46:47.000Z
2021-10-17T06:11:26.000Z
d3d11loadtest/Game.cpp
walbourn/directxtextest
c843ab9a7d75d01f3fc1fa134fcf4d94b12ea95b
[ "MIT" ]
2
2018-01-19T19:14:47.000Z
2022-02-21T00:20:48.000Z
d3d11loadtest/Game.cpp
walbourn/directxtextest
c843ab9a7d75d01f3fc1fa134fcf4d94b12ea95b
[ "MIT" ]
1
2022-01-19T07:38:34.000Z
2022-01-19T07:38:34.000Z
// // Game.cpp // #include "pch.h" #include "Game.h" extern void ExitGame() noexcept; using namespace DirectX; using Microsoft::WRL::ComPtr; #include "DDSTextureLoader11.h" #include "WICTextureLoader11.h" #include "ScreenGrab11.h" #include "DirectXTex.h" #include "ReadData.h" #include <wincodec...
29.171831
144
0.657204
[ "render" ]
afe55f9608a4d859bd21679c3bc5fa4ff41020a3
1,155
cpp
C++
Contrib-Intel/RSD-PSME-RMM/common/agent-framework/discovery/src/discoverers/manager_discoverer.cpp
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Intel/RSD-PSME-RMM/common/agent-framework/discovery/src/discoverers/manager_discoverer.cpp
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Intel/RSD-PSME-RMM/common/agent-framework/discovery/src/discoverers/manager_discoverer.cpp
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
/*! * @brief Manager discoverer implementation. * * @copyright Copyright (c) 2018-2019 Intel Corporation. * * Licensed under the Apache License, Version 2.0 (the "License") override; * 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...
38.5
86
0.770563
[ "model" ]
aff235d8a7711cce4578c36afa86fffb7e1cdb65
4,836
cc
C++
src/event.cc
IanBoyanZhang/kratos
4865e71e657c770fdc86528fcd56918e6f2103a1
[ "BSD-2-Clause" ]
39
2019-10-07T16:42:00.000Z
2022-03-31T20:33:28.000Z
src/event.cc
IanBoyanZhang/kratos
4865e71e657c770fdc86528fcd56918e6f2103a1
[ "BSD-2-Clause" ]
164
2019-06-29T03:43:19.000Z
2021-11-16T06:37:13.000Z
src/event.cc
IanBoyanZhang/kratos
4865e71e657c770fdc86528fcd56918e6f2103a1
[ "BSD-2-Clause" ]
11
2019-07-13T19:24:30.000Z
2022-01-21T22:52:18.000Z
#include "event.hh" #include <algorithm> #include "except.hh" #include "fmt/format.h" #include "generator.hh" #include "schema.hh" namespace kratos { void remove_empty_block(Generator *top); std::shared_ptr<EventTracingStmt> Event::fire( const std::map<std::string, std::shared_ptr<Var>> &fields) { auto stm...
32.02649
89
0.592845
[ "vector" ]
aff7d25f1851c3d6f11f724d6415d66e2f4c8657
25,715
cxx
C++
main/sw/source/core/txtnode/fmtatr2.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/sw/source/core/txtnode/fmtatr2.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/sw/source/core/txtnode/fmtatr2.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
27.951087
127
0.639666
[ "object", "vector", "transform" ]
9b7e20116583cf0dea9af37b3149373645b37b2c
19,725
cpp
C++
RobWork/src/rw/models/RevoluteJoint.cpp
ZLW07/RobWork
e713881f809d866b9a0749eeb15f6763e64044b3
[ "Apache-2.0" ]
1
2021-12-29T14:16:27.000Z
2021-12-29T14:16:27.000Z
RobWork/src/rw/models/RevoluteJoint.cpp
ZLW07/RobWork
e713881f809d866b9a0749eeb15f6763e64044b3
[ "Apache-2.0" ]
null
null
null
RobWork/src/rw/models/RevoluteJoint.cpp
ZLW07/RobWork
e713881f809d866b9a0749eeb15f6763e64044b3
[ "Apache-2.0" ]
null
null
null
/******************************************************************************** * Copyright 2009 The Robotics Group, The Maersk Mc-Kinney Moller Institute, * Faculty of Engineering, University of Southern Denmark * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exce...
37.5
100
0.551939
[ "transform" ]
9b7efd2a5c2f16cd801ea661bee60cf6051e5753
953
hpp
C++
wave_kinematics/include/wave/kinematics/two_wheel.hpp
wavelab/wavelib
7bebff52859c8b77f088e39913223904988c141e
[ "MIT" ]
80
2017-03-12T18:57:33.000Z
2022-03-30T11:44:33.000Z
wave_kinematics/include/wave/kinematics/two_wheel.hpp
wavelab/wavelib
7bebff52859c8b77f088e39913223904988c141e
[ "MIT" ]
210
2017-03-13T15:01:34.000Z
2022-01-15T03:19:44.000Z
wave_kinematics/include/wave/kinematics/two_wheel.hpp
wavelab/wavelib
7bebff52859c8b77f088e39913223904988c141e
[ "MIT" ]
31
2017-08-14T16:54:52.000Z
2022-01-21T06:44:16.000Z
/** @file * @ingroup kinematics */ #ifndef WAVE_KINEMATICS_TWOWHEEL_HPP #define WAVE_KINEMATICS_TWOWHEEL_HPP #include "wave/utils/utils.hpp" namespace wave { /** @addtogroup kinematics * @{ */ /** Generic two wheel robot motion model */ class TwoWheelRobot2DModel { public: /** Robot pose consisting of posi...
23.825
78
0.667366
[ "vector", "model" ]
9b80b7926eeff476d84ee6d2307c5a9fcb0aec56
174
cpp
C++
Dataset/Leetcode/test/136/428.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/136/428.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/136/428.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution { public: int singleNumber(vector<int>& nums) { int a=0; for(int num: nums){ a = a^num; } return a; } };
14.5
41
0.442529
[ "vector" ]
9b87c09747878b43b277c8681bb7024e0a42239a
13,714
cpp
C++
grasp_generation/graspitmodified_lm/Coin-3.1.3/src/shapenodes/SoIndexedNurbsSurface.cpp
KraftOreo/EBM_Hand
9ab1722c196b7eb99b4c3ecc85cef6e8b1887053
[ "MIT" ]
null
null
null
grasp_generation/graspitmodified_lm/Coin-3.1.3/src/shapenodes/SoIndexedNurbsSurface.cpp
KraftOreo/EBM_Hand
9ab1722c196b7eb99b4c3ecc85cef6e8b1887053
[ "MIT" ]
null
null
null
grasp_generation/graspitmodified_lm/Coin-3.1.3/src/shapenodes/SoIndexedNurbsSurface.cpp
KraftOreo/EBM_Hand
9ab1722c196b7eb99b4c3ecc85cef6e8b1887053
[ "MIT" ]
null
null
null
/**************************************************************************\ * * This file is part of the Coin 3D visualization library. * Copyright (C) by Kongsberg Oil & Gas Technologies. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public ...
32.652381
167
0.664431
[ "render", "vector", "3d" ]
9b89cc18a27f902e3731d980eb4e68eeb563d208
8,308
hpp
C++
src/modules/lta_att_control/lta_att_control.hpp
flycloudline/Firmware
d8e36d8e025cbf288a2f816e03f368a8796cbc07
[ "BSD-3-Clause" ]
3
2020-04-29T13:16:19.000Z
2020-09-09T21:45:10.000Z
src/modules/lta_att_control/lta_att_control.hpp
flycloudline/Firmware
d8e36d8e025cbf288a2f816e03f368a8796cbc07
[ "BSD-3-Clause" ]
null
null
null
src/modules/lta_att_control/lta_att_control.hpp
flycloudline/Firmware
d8e36d8e025cbf288a2f816e03f368a8796cbc07
[ "BSD-3-Clause" ]
1
2020-04-27T17:53:40.000Z
2020-04-27T17:53:40.000Z
/**************************************************************************** * * Copyright (c) 2013-2018 PX4 Development Team. 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. Red...
41.54
149
0.752648
[ "vector" ]
9b906df2578b373672ba38ab97f531e7a7e7fe4f
5,951
cpp
C++
cpp/godot-cpp/src/gen/TouchScreenButton.cpp
GDNative-Gradle/proof-of-concept
162f467430760cf959f68f1638adc663fd05c5fd
[ "MIT" ]
1
2021-03-16T09:51:00.000Z
2021-03-16T09:51:00.000Z
cpp/godot-cpp/src/gen/TouchScreenButton.cpp
GDNative-Gradle/proof-of-concept
162f467430760cf959f68f1638adc663fd05c5fd
[ "MIT" ]
null
null
null
cpp/godot-cpp/src/gen/TouchScreenButton.cpp
GDNative-Gradle/proof-of-concept
162f467430760cf959f68f1638adc663fd05c5fd
[ "MIT" ]
null
null
null
#include "TouchScreenButton.hpp" #include <core/GodotGlobal.hpp> #include <core/CoreTypes.hpp> #include <core/Ref.hpp> #include <core/Godot.hpp> #include "__icalls.hpp" #include "InputEvent.hpp" #include "BitMap.hpp" #include "Shape2D.hpp" #include "Texture.hpp" namespace godot { TouchScreenButton::___method_b...
45.776923
215
0.806419
[ "object", "shape" ]
9b90a3489fe1b992d1d31b48a13811847b313d17
475
cpp
C++
stats.cpp
clean-code-craft-tcq-1/start-stats-cpp-SangeethaChandran2021
d3982413232cfc60a120f9db718945d4c74751ea
[ "MIT" ]
null
null
null
stats.cpp
clean-code-craft-tcq-1/start-stats-cpp-SangeethaChandran2021
d3982413232cfc60a120f9db718945d4c74751ea
[ "MIT" ]
null
null
null
stats.cpp
clean-code-craft-tcq-1/start-stats-cpp-SangeethaChandran2021
d3982413232cfc60a120f9db718945d4c74751ea
[ "MIT" ]
null
null
null
#include "stats.h" #include <algorithm> using namespace Statistics; Stats Statistics::ComputeStatistics(const std::vector<float>& vect) { Stats tStats; float sum = 0.0F; for(std::vector<float>::const_iterator itr = vect.begin(); itr!=vect.end(); ++itr) { sum+= *itr; } tStats.min = *std::mi...
23.75
85
0.635789
[ "vector" ]
9b90ac42c5f73b0d72c655e6c1a8833a2df644aa
3,940
cpp
C++
Source/Client/IM-Client/IMClient/PictureObj.cpp
InstantBusinessNetwork/IBN
bbcf47de56bfc52049eeb2e46677642a28f38825
[ "MIT" ]
21
2015-07-22T15:22:41.000Z
2021-03-23T05:40:44.000Z
Source/Client/IM-Client/IMClient/PictureObj.cpp
InstantBusinessNetwork/IBN
bbcf47de56bfc52049eeb2e46677642a28f38825
[ "MIT" ]
11
2015-10-19T07:54:10.000Z
2021-09-01T08:47:56.000Z
Source/Client/IM-Client/IMClient/PictureObj.cpp
InstantBusinessNetwork/IBN
bbcf47de56bfc52049eeb2e46677642a28f38825
[ "MIT" ]
16
2015-07-22T15:23:09.000Z
2022-01-17T10:49:43.000Z
// PictureObj.cpp: implementation of the CPictureObj class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "ofstv.h" #include "PictureObj.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif #define HIME...
24.47205
95
0.636802
[ "render" ]
9b9c605ea94c204eec2beabad8214bc16ea8405c
604
cpp
C++
C++/maximum-absolute-sum-of-any-subarray.cpp
Priyansh2/LeetCode-Solutions
d613da1881ec2416ccbe15f20b8000e36ddf1291
[ "MIT" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
C++/maximum-absolute-sum-of-any-subarray.cpp
Priyansh2/LeetCode-Solutions
d613da1881ec2416ccbe15f20b8000e36ddf1291
[ "MIT" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
C++/maximum-absolute-sum-of-any-subarray.cpp
Priyansh2/LeetCode-Solutions
d613da1881ec2416ccbe15f20b8000e36ddf1291
[ "MIT" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
// Time: O(n) // Space: O(1) class Solution { public: int maxAbsoluteSum(vector<int>& nums) { int curr = 0, mx = 0, mn = 0; for (const auto& num : nums) { curr += num; mx = max(mx, curr); mn = min(mn, curr); } return mx - mn; } }; // Time: ...
22.37037
63
0.504967
[ "vector" ]
9ba686f80d6e60a3822070e90c58de03cdec43dc
986
cpp
C++
SiSiMEX/SiSiMEX/AgentContainer.cpp
UndistinguishedFellows/NetworkingP5_SiSimex
1e9baa856b2eae1d77fbc7d4a4aa0792124bca87
[ "MIT" ]
null
null
null
SiSiMEX/SiSiMEX/AgentContainer.cpp
UndistinguishedFellows/NetworkingP5_SiSimex
1e9baa856b2eae1d77fbc7d4a4aa0792124bca87
[ "MIT" ]
null
null
null
SiSiMEX/SiSiMEX/AgentContainer.cpp
UndistinguishedFellows/NetworkingP5_SiSimex
1e9baa856b2eae1d77fbc7d4a4aa0792124bca87
[ "MIT" ]
null
null
null
#include "AgentContainer.h" AgentContainer::AgentContainer() { } AgentContainer::~AgentContainer() { } void AgentContainer::addAgent(AgentPtr agent) { _agents.push_back(agent); } AgentPtr AgentContainer::getAgent(int agentId) { // Agent search for (auto agent : _agents) { if (agent->id() == agentId) { retu...
14.085714
46
0.670385
[ "vector" ]
9ba7020a4f43a37070770b6f5a1c50c78f01f669
2,473
hpp
C++
test/unit_tests/shared/worker.hpp
egor-tensin/winapi-common
0691ab3e886fcac63a6ed13a346ad16ae90ee5cb
[ "MIT" ]
null
null
null
test/unit_tests/shared/worker.hpp
egor-tensin/winapi-common
0691ab3e886fcac63a6ed13a346ad16ae90ee5cb
[ "MIT" ]
null
null
null
test/unit_tests/shared/worker.hpp
egor-tensin/winapi-common
0691ab3e886fcac63a6ed13a346ad16ae90ee5cb
[ "MIT" ]
1
2021-10-30T20:18:50.000Z
2021-10-30T20:18:50.000Z
// Copyright (c) 2020 Egor Tensin <Egor.Tensin@gmail.com> // This file is part of the "winapi-common" project. // For details, see https://github.com/egor-tensin/winapi-common. // Distributed under the MIT License. #pragma once #include "command.hpp" #include <winapi/process.hpp> #include <windows.h> #include <exc...
27.175824
98
0.596846
[ "vector" ]
9bafffefddc649ce22ed188bbe0b4187a9b672d7
1,948
cpp
C++
NCGB/Compile/src/RuleInformation.cpp
mcdeoliveira/NC
54b2a81ebda9e5260328f88f83f56fe8cf472ac3
[ "BSD-3-Clause" ]
103
2016-09-21T06:01:23.000Z
2022-03-27T06:52:10.000Z
NCGB/Compile/src/RuleInformation.cpp
albinjames/NC
157a55458931a18dd1f42478872c9df0de5cc450
[ "BSD-3-Clause" ]
11
2017-03-27T13:11:42.000Z
2022-03-08T13:46:14.000Z
NCGB/Compile/src/RuleInformation.cpp
albinjames/NC
157a55458931a18dd1f42478872c9df0de5cc450
[ "BSD-3-Clause" ]
21
2017-06-23T09:01:21.000Z
2022-02-18T06:24:00.000Z
// RuleInformation.c #include "RuleInformation.hpp" bool RuleInformation::divides(const RuleInformation & ri, Monomial & front,Monomial & back) const { bool result = false; int m = degree(); int n = ri.degree(); if((m==n)&&(d_r.LHS()==ri.d_r.LHS())) { front.setToOne(); back.setToOne(); ...
33.016949
78
0.571355
[ "vector" ]
9bb3ba5de383639a33f45fda22ead36896563438
2,860
hpp
C++
tests/FiveWar/project/Classes/gameai/entityshapes/ps/WallPic.hpp
lyzardiar/engine-x
e4fed534b41cba0e7296f0c3ddfe4e853cc3772f
[ "MIT" ]
null
null
null
tests/FiveWar/project/Classes/gameai/entityshapes/ps/WallPic.hpp
lyzardiar/engine-x
e4fed534b41cba0e7296f0c3ddfe4e853cc3772f
[ "MIT" ]
null
null
null
tests/FiveWar/project/Classes/gameai/entityshapes/ps/WallPic.hpp
lyzardiar/engine-x
e4fed534b41cba0e7296f0c3ddfe4e853cc3772f
[ "MIT" ]
null
null
null
/* * Copyright (c) 2014 Peter Lager * <quark(a)lagers.org.uk> http:www.lagers.org.uk * * 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...
26.981132
83
0.709441
[ "vector" ]
9bb979561b3bacb1c209d4feb18abfd3a1b3be37
3,478
cc
C++
sources/player.cc
dvzrv/adljack
0b896bf77d3df06d57810fef6e91bc4cf8a1669d
[ "BSL-1.0" ]
26
2018-04-09T09:00:50.000Z
2022-02-09T03:12:49.000Z
sources/player.cc
dvzrv/adljack
0b896bf77d3df06d57810fef6e91bc4cf8a1669d
[ "BSL-1.0" ]
19
2018-05-10T20:29:21.000Z
2021-02-13T22:16:09.000Z
sources/player.cc
dvzrv/adljack
0b896bf77d3df06d57810fef6e91bc4cf8a1669d
[ "BSL-1.0" ]
6
2018-05-10T20:11:46.000Z
2020-07-10T19:06:28.000Z
// Copyright Jean Pierre Cimalando 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE or copy at // http://www.boost.org/LICENSE_1_0.txt) #include "player.h" #include <stdlib.h> #include <string.h> #include <assert.h> Player *Player::create(Playe...
26.150376
87
0.597757
[ "vector" ]
9bbad8a10fda190683f638009dde08370712bf4b
770
cpp
C++
LazyEngine/LazyEngine/src/LazyEngine/Renderer/RenderCommand.cpp
PhiliGuertler/ManifoldDMC
d9740e17ebadce0320f7cfb7dbb1cd728119a8ab
[ "MIT" ]
null
null
null
LazyEngine/LazyEngine/src/LazyEngine/Renderer/RenderCommand.cpp
PhiliGuertler/ManifoldDMC
d9740e17ebadce0320f7cfb7dbb1cd728119a8ab
[ "MIT" ]
null
null
null
LazyEngine/LazyEngine/src/LazyEngine/Renderer/RenderCommand.cpp
PhiliGuertler/ManifoldDMC
d9740e17ebadce0320f7cfb7dbb1cd728119a8ab
[ "MIT" ]
null
null
null
// ######################################################################### // // ### RenderCommand.cpp ################################################### // // ### Creates the rendererAPI implementation object, depending on the ### // // ### platform (OpenGL, Vulcan, ...). ### // ...
40.526316
84
0.479221
[ "object" ]
9bc5a89b67b877542906830a9660d3fbd6dac61d
2,457
cc
C++
cpp/Rendering_calendar.cc
iskhanba/epicode
fda752e5e016ab64011083450be91bec9ee8358a
[ "MIT" ]
null
null
null
cpp/Rendering_calendar.cc
iskhanba/epicode
fda752e5e016ab64011083450be91bec9ee8358a
[ "MIT" ]
null
null
null
cpp/Rendering_calendar.cc
iskhanba/epicode
fda752e5e016ab64011083450be91bec9ee8358a
[ "MIT" ]
null
null
null
// Copyright (c) 2015 Elements of Programming Interviews. All rights reserved. #include <algorithm> #include <cassert> #include <iostream> #include <random> #include <vector> using std::cout; using std::default_random_engine; using std::endl; using std::max; using std::random_device; using std::uniform_int_distributi...
27.606742
79
0.619455
[ "vector" ]
9bca883f463849784ad39792a02baffe5c2ee9c9
5,531
cpp
C++
Qt-Tim-Like/serverRelease/release/moc_servermonitor.cpp
yujiecong/Qt-TimLike
54172a907bd9b8a96c0bc6a827f15abbdb152de8
[ "MIT" ]
null
null
null
Qt-Tim-Like/serverRelease/release/moc_servermonitor.cpp
yujiecong/Qt-TimLike
54172a907bd9b8a96c0bc6a827f15abbdb152de8
[ "MIT" ]
null
null
null
Qt-Tim-Like/serverRelease/release/moc_servermonitor.cpp
yujiecong/Qt-TimLike
54172a907bd9b8a96c0bc6a827f15abbdb152de8
[ "MIT" ]
null
null
null
/**************************************************************************** ** Meta object code from reading C++ file 'servermonitor.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.6) ** ** WARNING! All changes made in this file will be lost! *******************************************************...
35.229299
117
0.627192
[ "object" ]
9bcad2bc7d326f756b25d2e04153a7e5c085f441
8,948
cpp
C++
src/linux_parser.cpp
dezlotnik/CppND-System-Monitor
4fd046258e8261a8b061e03394a6108b679e9659
[ "MIT" ]
null
null
null
src/linux_parser.cpp
dezlotnik/CppND-System-Monitor
4fd046258e8261a8b061e03394a6108b679e9659
[ "MIT" ]
null
null
null
src/linux_parser.cpp
dezlotnik/CppND-System-Monitor
4fd046258e8261a8b061e03394a6108b679e9659
[ "MIT" ]
null
null
null
#include <dirent.h> #include <unistd.h> #include <string> #include <vector> #include <unistd.h> #include <set> #include "linux_parser.h" using std::stof; using std::string; using std::to_string; using std::vector; using std::set; // DONE: An example of how to read data from the filesystem string LinuxParser::Operatin...
29.826667
83
0.645172
[ "vector" ]
9bd2106c75a4a706e8bc4dfa2460126b203f2ed3
14,630
cpp
C++
Screens/StoryScene.cpp
CrusaderCrab/YugiohPhantomRealm
79bd1e9948d2d2d29acf042fd412804c30562a8e
[ "Zlib" ]
13
2018-04-13T22:10:00.000Z
2022-01-01T08:26:23.000Z
Screens/StoryScene.cpp
CrusaderCrab/YugiohPhantomRealm
79bd1e9948d2d2d29acf042fd412804c30562a8e
[ "Zlib" ]
null
null
null
Screens/StoryScene.cpp
CrusaderCrab/YugiohPhantomRealm
79bd1e9948d2d2d29acf042fd412804c30562a8e
[ "Zlib" ]
3
2017-02-22T16:35:06.000Z
2019-12-21T20:39:23.000Z
#include <sstream> #include <Utility\Clock.h> #include <Utility\InputUnit.h> #include <Screens\StoryScene.h> #include <Utility\TextureLoader.h> #include <Utility\TextPrinter.h> #include <Game\PlayerData.h> #include <DefinesAndTypedefs.h> #include <Screens\ScreenUnit.h> #include <Game\EnemyData.h> #include <Screens\Trun...
26.844037
97
0.657211
[ "render" ]
9bdd36c12fe6d369f15052a509bc5d91da64a2a5
659
cpp
C++
CHFM.cpp
swap612/compete
06c0e55beb8b5fa33431cecbb479c61d545dafbf
[ "MIT" ]
1
2018-10-14T06:05:53.000Z
2018-10-14T06:05:53.000Z
CHFM.cpp
swap612/compete
06c0e55beb8b5fa33431cecbb479c61d545dafbf
[ "MIT" ]
null
null
null
CHFM.cpp
swap612/compete
06c0e55beb8b5fa33431cecbb479c61d545dafbf
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main() { int T, W; long int N; long long int sum = 0; vector<long int> num; cin >> T; while (T > 0) { cin >> W; while (W--) { cin >> N; sum += N; num.push_back(N); } ...
19.969697
53
0.385432
[ "vector" ]
9bf85bd06584cc773be60c5f6e19ef21a8dd50bd
1,420
cpp
C++
06. Sorting/TopologicalSort.cpp
Ujjawalgupta42/Hacktoberfest2021-DSA
eccd9352055085973e3d6a1feb10dd193905584b
[ "MIT" ]
225
2021-10-01T03:09:01.000Z
2022-03-11T11:32:49.000Z
06. Sorting/TopologicalSort.cpp
Ujjawalgupta42/Hacktoberfest2021-DSA
eccd9352055085973e3d6a1feb10dd193905584b
[ "MIT" ]
252
2021-10-01T03:45:20.000Z
2021-12-07T18:32:46.000Z
06. Sorting/TopologicalSort.cpp
Ujjawalgupta42/Hacktoberfest2021-DSA
eccd9352055085973e3d6a1feb10dd193905584b
[ "MIT" ]
911
2021-10-01T02:55:19.000Z
2022-02-06T09:08:37.000Z
#include<bits/stdc++.h> using namespace std; void addEdge(vector<int> Graph[],int s,int e) { Graph[s].push_back(e); // Graph[e].push_back(s); } vector<int> topological(vector<int> graph[],int s) { vector<int> result; queue<int> q; vector<int> indegree(s,0); for(int...
18.205128
67
0.430986
[ "vector" ]
50047290048d37a73173b9bec988f19b08dd5c45
22,610
cpp
C++
src/execution/execution.cpp
forsyde/DeSyDe
48c55861ed78dd240451787258ee286b0f46aea5
[ "BSD-2-Clause" ]
3
2016-09-06T14:00:07.000Z
2021-03-23T04:40:13.000Z
src/execution/execution.cpp
forsyde/DeSyDe
48c55861ed78dd240451787258ee286b0f46aea5
[ "BSD-2-Clause" ]
2
2019-02-19T13:02:40.000Z
2019-06-17T15:27:52.000Z
src/execution/execution.cpp
forsyde/DeSyDe
48c55861ed78dd240451787258ee286b0f46aea5
[ "BSD-2-Clause" ]
7
2016-10-05T10:04:49.000Z
2021-04-12T18:20:44.000Z
#ifndef __EXECUTION__ #define __EXECUTION__ /** * Copyright (c) 2013-2016, Nima Khalilzad <nkhal@kth.se> * Katrhin Rosvall <krosvall@kth.se> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions...
38
184
0.578461
[ "object", "vector", "model" ]
5005f9949d8fa8264681df5b63e9edd7cbfd617e
1,028
hpp
C++
src/include/client/graphical/meshopener/OBJOpener.hpp
arthurmco/familyline
849eee40cff266af9a3f848395ed139b7ce66197
[ "MIT" ]
6
2018-05-11T23:16:02.000Z
2019-06-13T01:35:07.000Z
src/include/client/graphical/meshopener/OBJOpener.hpp
arthurmco/familyline
849eee40cff266af9a3f848395ed139b7ce66197
[ "MIT" ]
33
2018-05-11T14:12:22.000Z
2022-03-12T00:55:25.000Z
src/include/client/graphical/meshopener/OBJOpener.hpp
arthurmco/familyline
849eee40cff266af9a3f848395ed139b7ce66197
[ "MIT" ]
1
2018-12-06T23:39:55.000Z
2018-12-06T23:39:55.000Z
/* * The .obj file opener * Each mesh is delimited by a mesh group * * (You can create a mesh group by selecting the meshes you want in Blender and pressing ctrl+g, * or something like that) * * If no mesh group is found, we create a mesh group composed of all meshes in the file * * Remember it also uses the m...
25.7
96
0.694553
[ "mesh", "vector" ]
500efa0a31fefc2a00008d093b5ae25db4e2f744
30,300
cc
C++
icing/tokenization/raw-query-tokenizer_test.cc
PixelPlusUI-SnowCone/external_icing
206a7d6b4ab83c6acdb8b14565e2431751c9e4cf
[ "Apache-2.0" ]
null
null
null
icing/tokenization/raw-query-tokenizer_test.cc
PixelPlusUI-SnowCone/external_icing
206a7d6b4ab83c6acdb8b14565e2431751c9e4cf
[ "Apache-2.0" ]
null
null
null
icing/tokenization/raw-query-tokenizer_test.cc
PixelPlusUI-SnowCone/external_icing
206a7d6b4ab83c6acdb8b14565e2431751c9e4cf
[ "Apache-2.0" ]
null
null
null
// Copyright (C) 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...
47.867299
80
0.615842
[ "vector" ]
501b398b7a71302aa3508609061ffcd84d50c20e
3,398
cc
C++
src/tests.cc
malharthi/scc
004106ab3772e1b8710225f20f1401319b1c4743
[ "BSD-3-Clause" ]
8
2015-05-09T02:14:03.000Z
2021-05-13T21:14:32.000Z
src/tests.cc
malharthi/scc
004106ab3772e1b8710225f20f1401319b1c4743
[ "BSD-3-Clause" ]
null
null
null
src/tests.cc
malharthi/scc
004106ab3772e1b8710225f20f1401319b1c4743
[ "BSD-3-Clause" ]
1
2021-05-13T21:14:34.000Z
2021-05-13T21:14:34.000Z
// Copyright (c) 2009 Mohannad Alharthi (mohannad.harthi@gmail.com) // All rights reserved. // This source code is licensed under the BSD license, which can be found in // the LICENSE.txt file. #ifdef _TEST_BUILD #include <algorithm> #include <iostream> #include <string> #include <vector> #include "code_gen.h" #inc...
27.852459
137
0.651854
[ "object", "vector" ]
5022ca908b7453b23fca20b876621f3df4fa50aa
11,614
cpp
C++
test/test_dataset_tabular.cpp
accosmin/libnano
0c4014e1bc76c2e1b38d08211b000a4e17b00ed5
[ "MIT" ]
null
null
null
test/test_dataset_tabular.cpp
accosmin/libnano
0c4014e1bc76c2e1b38d08211b000a4e17b00ed5
[ "MIT" ]
32
2019-02-18T10:35:59.000Z
2021-12-10T10:37:15.000Z
test/test_dataset_tabular.cpp
accosmin/libnano
0c4014e1bc76c2e1b38d08211b000a4e17b00ed5
[ "MIT" ]
1
2019-08-05T06:11:09.000Z
2019-08-05T06:11:09.000Z
#include <fstream> #include <utest/utest.h> #include <nano/dataset/tabular.h> using namespace nano; static auto feature_cont() { return feature_t{"cont"}; } static auto feature_cont_opt() { return feature_t{"cont_opt"}.placeholder("?"); } static auto feature_cate() { return feature_t{"cate"}.labels({"ca...
34.668657
120
0.664198
[ "vector" ]
5025defac12ce06bb7b97d0a5ba0a3fcf2851ad0
15,211
cc
C++
absl/random/internal/chi_square_test.cc
lmxing/abseil-cpp
b2948198632099070e0cc7e21cbb28d93d60e4f3
[ "Apache-2.0" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
absl/random/internal/chi_square_test.cc
iWYZ-666/abseil-cpp
aad2c8a3966424bbaa2f26027d104d17f9c1c1ae
[ "Apache-2.0" ]
860
2017-09-26T03:38:59.000Z
2022-03-31T18:28:28.000Z
absl/random/internal/chi_square_test.cc
iWYZ-666/abseil-cpp
aad2c8a3966424bbaa2f26027d104d17f9c1c1ae
[ "Apache-2.0" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
// Copyright 2017 The Abseil 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
41.560109
80
0.566366
[ "vector" ]
5026934a7603d0ffaa02ab17c3149d9c9dc245d9
11,976
cpp
C++
ats_trains/a2_wagons/config.cpp
gruppe-adler/ats_dev_build
ef35386706ece33db55d045157d622ee78657d33
[ "MIT" ]
null
null
null
ats_trains/a2_wagons/config.cpp
gruppe-adler/ats_dev_build
ef35386706ece33db55d045157d622ee78657d33
[ "MIT" ]
null
null
null
ats_trains/a2_wagons/config.cpp
gruppe-adler/ats_dev_build
ef35386706ece33db55d045157d622ee78657d33
[ "MIT" ]
null
null
null
#define private 0 #define protected 1 #define public 2 class CfgPatches { class ATS_Trains_A2Wagons { units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {"ATS_Trains"}; }; }; class CfgVehicles { class Items_base_F; class ATS_Trains_Base: Items_base_F { class AnimationSou...
51.399142
299
0.660488
[ "model" ]
50271d915e9f0e2caf5bea1c5816fb3d8fba8c64
1,191
cpp
C++
BeakJoon/c++/solved/2000/2108.cpp
heeboy007/PS-MyAnswers
e5e02972ab64279d96eb43e85941a46b82315fbd
[ "MIT" ]
null
null
null
BeakJoon/c++/solved/2000/2108.cpp
heeboy007/PS-MyAnswers
e5e02972ab64279d96eb43e85941a46b82315fbd
[ "MIT" ]
null
null
null
BeakJoon/c++/solved/2000/2108.cpp
heeboy007/PS-MyAnswers
e5e02972ab64279d96eb43e85941a46b82315fbd
[ "MIT" ]
null
null
null
#include<iostream> #include<vector> #include<algorithm> #include<cstring> #include<cmath> using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); long long sum = 0; int count; bool is_second = false; vector<int> numbers; int counter[8001]; memset(counter...
22.055556
56
0.492024
[ "vector" ]
df25f8ad8ad63a894563fa436a562d6a09a9213d
12,014
cc
C++
CondTools/SiPixel/test/SiPixelTemplateDBObjectReader.cc
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
CondTools/SiPixel/test/SiPixelTemplateDBObjectReader.cc
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
3
2018-08-23T13:40:24.000Z
2019-12-05T21:16:03.000Z
CondTools/SiPixel/test/SiPixelTemplateDBObjectReader.cc
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
#include "CondTools/SiPixel/test/SiPixelTemplateDBObjectReader.h" #include <iomanip> #include <fstream> #include <iostream> #include <cmath> #include "FWCore/ParameterSet/interface/FileInPath.h" #include "FWCore/Framework/interface/ESHandle.h" #include "FWCore/Framework/interface/EventSetup.h" #include "MagneticField/...
32.122995
175
0.580156
[ "object", "vector" ]
df29d69f0190dce2d063f2f33a7fb75481843ea7
17,622
cpp
C++
src/plugins/editing/CellMLAnnotationView/src/cellmlannotationvieweditingwidget.cpp
nickerso/opencor
63e164c6424dc855a4e46b835a777f6f84c617dc
[ "Apache-2.0" ]
null
null
null
src/plugins/editing/CellMLAnnotationView/src/cellmlannotationvieweditingwidget.cpp
nickerso/opencor
63e164c6424dc855a4e46b835a777f6f84c617dc
[ "Apache-2.0" ]
null
null
null
src/plugins/editing/CellMLAnnotationView/src/cellmlannotationvieweditingwidget.cpp
nickerso/opencor
63e164c6424dc855a4e46b835a777f6f84c617dc
[ "Apache-2.0" ]
null
null
null
/******************************************************************************* Licensed to the OpenCOR team under one or more contributor license agreements. See the NOTICE.txt file distributed with this work for additional information regarding copyright ownership. The OpenCOR team licenses this file to you under t...
48.016349
346
0.632391
[ "object", "model" ]
df2d54f887124f9e05e79fedef17544fe507783e
4,744
cpp
C++
main.cpp
RidaAyed/boec
2b2c3e73b5f19fd32ce615d86738a8cedfd3d8c4
[ "BSD-3-Clause" ]
null
null
null
main.cpp
RidaAyed/boec
2b2c3e73b5f19fd32ce615d86738a8cedfd3d8c4
[ "BSD-3-Clause" ]
1
2021-09-28T15:32:09.000Z
2021-09-28T15:32:09.000Z
main.cpp
RidaAyed/boec
2b2c3e73b5f19fd32ce615d86738a8cedfd3d8c4
[ "BSD-3-Clause" ]
1
2021-09-28T13:04:40.000Z
2021-09-28T13:04:40.000Z
#include <iostream> #include <vector> #include <list> #include <fstream> #include "vendor/rapidxml/rapidxml.hpp" #include "lib/Transaction.cpp" #include "lib/Dictionary.cpp" int main(int argc, char* argv[]) { std::list<DictionaryEntry> dictionary; /** * Create the document from stdin */ std::s...
32.272109
122
0.524874
[ "vector" ]
df2dd661d670aa15a64fac365728ebbe2d3a5917
16,256
cpp
C++
Libs/Gui/src/GLOrthoCamera.cpp
n8vm/OpenVisus
dab633f6ecf13ffcf9ac2ad47d51e48902d4aaef
[ "Unlicense" ]
1
2019-04-30T12:11:24.000Z
2019-04-30T12:11:24.000Z
Libs/Gui/src/GLOrthoCamera.cpp
tjhei/OpenVisus
f0c3bf21cb0c02f303025a8efb68b8c36701a9fd
[ "Unlicense" ]
null
null
null
Libs/Gui/src/GLOrthoCamera.cpp
tjhei/OpenVisus
f0c3bf21cb0c02f303025a8efb68b8c36701a9fd
[ "Unlicense" ]
null
null
null
/*----------------------------------------------------------------------------- Copyright(c) 2010 - 2018 ViSUS L.L.C., Scientific Computing and Imaging Institute of the University of Utah ViSUS L.L.C., 50 W.Broadway, Ste. 300, 84101 - 2044 Salt Lake City, UT University of Utah, 72 S Central Campus Dr, Room 3750, 84112...
30.499062
179
0.62174
[ "object" ]
df35ad636182c350779083ce3cbc2208f28365e2
24,539
cpp
C++
Glitter/Sources/main.cpp
chenshaoyu1995/InstantReality
2aa68cdab7fe3450fda639419afa109249066de1
[ "MIT" ]
5
2022-02-20T08:26:25.000Z
2022-03-13T02:44:50.000Z
Glitter/Sources/main.cpp
chenshaoyu1995/InstantReality
2aa68cdab7fe3450fda639419afa109249066de1
[ "MIT" ]
null
null
null
Glitter/Sources/main.cpp
chenshaoyu1995/InstantReality
2aa68cdab7fe3450fda639419afa109249066de1
[ "MIT" ]
1
2022-03-13T02:58:19.000Z
2022-03-13T02:58:19.000Z
// Local Headers #include "glitter.hpp" #include "mesh.hpp" #include "shader.hpp" #include "utility.hpp" #include "vr.h" // System Headers #include <glad/glad.h> #include <GLFW/glfw3.h> #include <Eigen/Dense> #include <ppl.h> #include <ppltasks.h> #include <glm/gtx/string_cast.hpp> // Standard Headers #include <cstdi...
34.272346
172
0.685276
[ "mesh", "render", "vector" ]
df3ecd4cb01a32f8552bc1af5005c2d223103898
1,139
cpp
C++
Cpp/Stacks-and-Queues/Problems/largest-rectangle-in-histogram.cpp
mailtokartik1/InterviewBit-Solutions
8a9be25cf55947aff456c7c138e2ee6f518aa6a5
[ "MIT" ]
58
2019-06-15T01:35:06.000Z
2021-04-27T08:32:39.000Z
Stacks-and-Queues/Problems/largest-rectangle-in-histogram.cpp
mojo912/InterviewBit-Solutions
62fb19efff15bbe3b42183c12d2e6adf7c4c2a84
[ "MIT" ]
3
2019-06-17T00:20:13.000Z
2019-06-30T05:41:10.000Z
Stacks-and-Queues/Problems/largest-rectangle-in-histogram.cpp
mojo912/InterviewBit-Solutions
62fb19efff15bbe3b42183c12d2e6adf7c4c2a84
[ "MIT" ]
14
2019-06-15T01:35:09.000Z
2020-08-27T19:45:28.000Z
int Solution::largestRectangleArea(vector<int> &A) { stack<int> st; int sol = 0; int i = 0, n = A.size(); while(i < n){ // Push the elements on to the stack if it is empty or if the current element is greater than the top element if(st.empty() || A[st.top()] <= A[i]){ st.p...
21.092593
117
0.389816
[ "vector" ]
df4d5d7503cf94096cb54aa66d1eb6856b4c852c
9,709
cpp
C++
doric-Qt/example/doric/plugin/DoricNavBarPlugin.cpp
Xcoder1011/Doric
ad1a409ef5edb9de8f3e1544748a9fa8015760c8
[ "Apache-2.0" ]
116
2019-12-30T11:34:47.000Z
2022-03-31T05:32:58.000Z
doric-Qt/example/doric/plugin/DoricNavBarPlugin.cpp
Xcoder1011/Doric
ad1a409ef5edb9de8f3e1544748a9fa8015760c8
[ "Apache-2.0" ]
9
2020-04-26T02:04:27.000Z
2022-01-26T07:31:01.000Z
doric-Qt/example/doric/plugin/DoricNavBarPlugin.cpp
Xcoder1011/Doric
ad1a409ef5edb9de8f3e1544748a9fa8015760c8
[ "Apache-2.0" ]
18
2020-01-24T15:42:03.000Z
2021-12-28T08:17:36.000Z
#include "DoricNavBarPlugin.h" #include "engine/DoricPromise.h" #include "shader/DoricViewNode.h" #include "utils/DoricUtils.h" #include <QJsonDocument> #include <QJsonObject> #include <QQmlComponent> void DoricNavBarPlugin::isHidden(QString jsValueString, QString callbackId) { getContext()->getDriver()->asyncCall...
37.342308
79
0.541868
[ "object" ]
df5061b2fac16d44059d7434a10666d1ae268a6f
2,312
hpp
C++
modules/gapi/samples/pipeline_modeling_tool/utils.hpp
danopdev/opencv
046a7633ea388415b546db2324be4c1e6a0baba3
[ "Apache-2.0" ]
1
2022-02-06T12:02:15.000Z
2022-02-06T12:02:15.000Z
modules/gapi/samples/pipeline_modeling_tool/utils.hpp
danopdev/opencv
046a7633ea388415b546db2324be4c1e6a0baba3
[ "Apache-2.0" ]
null
null
null
modules/gapi/samples/pipeline_modeling_tool/utils.hpp
danopdev/opencv
046a7633ea388415b546db2324be4c1e6a0baba3
[ "Apache-2.0" ]
null
null
null
#ifndef OPENCV_GAPI_PIPELINE_MODELING_TOOL_UTILS_HPP #define OPENCV_GAPI_PIPELINE_MODELING_TOOL_UTILS_HPP #include <opencv2/core.hpp> #if defined(_WIN32) #include <windows.h> #endif // FIXME: It's better to place it somewhere in common.hpp struct OutputDescr { std::vector<int> dims; int precisio...
28.195122
78
0.644464
[ "vector" ]
df645c1febae9a703e62dfaa973ecd3c39edd5e7
5,902
cpp
C++
RayTracer/RayTracer.cpp
maslychm/PathTracer
0674b048c7dce54e3aae4f027c5863f72bf5b510
[ "MIT" ]
null
null
null
RayTracer/RayTracer.cpp
maslychm/PathTracer
0674b048c7dce54e3aae4f027c5863f72bf5b510
[ "MIT" ]
null
null
null
RayTracer/RayTracer.cpp
maslychm/PathTracer
0674b048c7dce54e3aae4f027c5863f72bf5b510
[ "MIT" ]
null
null
null
#include "rtcommon.h" // My additions #include "image.h" #include "scene.h" #include <chrono> #include <iostream> #include <ctime> #include <string> #include "external/thread_pool.h" color ray_color(const ray& r, const color& background, const hittable& world, int depth) { hit_record rec; // If we've exceeded th...
23.894737
125
0.678414
[ "render", "vector" ]
df7ca134b28e54f624f8a53fda453b2e32221732
7,520
cc
C++
examples/multibody/four_bar/passive_simulation.cc
RobotLocomotion/drake-python3.7
ae397a4c6985262d23e9675b9bf3927c08d027f5
[ "BSD-3-Clause" ]
2
2021-02-25T02:01:02.000Z
2021-03-17T04:52:04.000Z
examples/multibody/four_bar/passive_simulation.cc
RobotLocomotion/drake-python3.7
ae397a4c6985262d23e9675b9bf3927c08d027f5
[ "BSD-3-Clause" ]
null
null
null
examples/multibody/four_bar/passive_simulation.cc
RobotLocomotion/drake-python3.7
ae397a4c6985262d23e9675b9bf3927c08d027f5
[ "BSD-3-Clause" ]
1
2021-06-13T12:05:39.000Z
2021-06-13T12:05:39.000Z
/* @file A four bar linkage demo demonstrating the use of a linear bushing as a way to model a kinematic loop. It shows: - How to model a four bar linkage in SDF. - Use the `multibody::Parser` to load a model from an SDF file into a MultibodyPlant. - Model a revolute joint with a `multibody::LinearBushingRoll...
39.78836
80
0.736569
[ "geometry", "model" ]
df7d03a129a524b3367ee01eaebae871b964fc6c
7,045
cpp
C++
src/main.cpp
triSYCL/path_tracer
88bdd77cfc1b8a9ff5afb553d5aaad62339db9dc
[ "Apache-2.0" ]
12
2020-12-16T12:18:43.000Z
2022-03-29T01:11:19.000Z
src/main.cpp
triSYCL/path_tracer
88bdd77cfc1b8a9ff5afb553d5aaad62339db9dc
[ "Apache-2.0" ]
26
2020-12-14T23:19:20.000Z
2021-07-05T16:24:44.000Z
src/main.cpp
triSYCL/path_tracer
88bdd77cfc1b8a9ff5afb553d5aaad62339db9dc
[ "Apache-2.0" ]
5
2021-01-20T15:13:14.000Z
2022-01-07T15:51:19.000Z
#include "sycl.hpp" #include <algorithm> #include <chrono> #include <cstdint> #include <iostream> #include <iterator> #include <math.h> #include <thread> #include <vector> #define STB_IMAGE_WRITE_IMPLEMENTATION #include <stb/stb_image_write.h> #include "render.hpp" // Function to save image data in ppm format void d...
35.580808
80
0.582967
[ "render", "vector" ]
df7d17ee6681bd4cf71a4d30e47a061bdf7ae2e9
3,111
hpp
C++
src/util/SimpleRandomEngine.hpp
dlasalle/poros
a87e2dc1b64c47f94e0ce05adadbd7e35a63d166
[ "MIT" ]
1
2022-01-15T21:58:08.000Z
2022-01-15T21:58:08.000Z
src/util/SimpleRandomEngine.hpp
dlasalle/poros
a87e2dc1b64c47f94e0ce05adadbd7e35a63d166
[ "MIT" ]
15
2018-12-15T04:09:58.000Z
2019-09-29T18:51:06.000Z
src/util/SimpleRandomEngine.hpp
dlasalle/poros
a87e2dc1b64c47f94e0ce05adadbd7e35a63d166
[ "MIT" ]
null
null
null
/** * @file SimpleRandomEngine.hpp * @brief The SimpleRandomEngine class. * @author Dominique LaSalle <dominique@solidlake.com> * Copyright 2018 * @version 1 * @date 2018-05-20 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "So...
22.543478
78
0.699775
[ "vector" ]
df7d34190a61ce3be5c07a07730fdb521d7c5a37
8,504
cpp
C++
tests/dist/mpi/test_mpi_functions.cpp
Shillaker/faabric
40da290179c650d9e285475a1992572dfe1c0b10
[ "Apache-2.0" ]
1
2020-09-01T13:37:54.000Z
2020-09-01T13:37:54.000Z
tests/dist/mpi/test_mpi_functions.cpp
Shillaker/faabric
40da290179c650d9e285475a1992572dfe1c0b10
[ "Apache-2.0" ]
null
null
null
tests/dist/mpi/test_mpi_functions.cpp
Shillaker/faabric
40da290179c650d9e285475a1992572dfe1c0b10
[ "Apache-2.0" ]
1
2020-09-13T15:21:16.000Z
2020-09-13T15:21:16.000Z
#include "faabric_utils.h" #include <catch2/catch.hpp> #include "fixtures.h" #include "init.h" #include "mpi/mpi_native.h" #include <faabric/scheduler/Scheduler.h> namespace tests { TEST_CASE_METHOD(MpiDistTestsFixture, "Test MPI all gather", "[mpi]") { // Set up this host's resources setLocalSlots(nLocalSl...
24.436782
80
0.686383
[ "vector" ]
df803ad51e9548e9d106ba8deef160b912cd3b00
1,218
cc
C++
old/pat/a1005.cc
xsthunder/a
3c30f31c59030d70462b71ef28c5eee19c6eddd6
[ "MIT" ]
1
2018-07-22T04:52:10.000Z
2018-07-22T04:52:10.000Z
old/pat/a1005.cc
xsthunder/a
3c30f31c59030d70462b71ef28c5eee19c6eddd6
[ "MIT" ]
1
2018-08-11T13:29:59.000Z
2018-08-11T13:31:28.000Z
old/pat/a1005.cc
xsthunder/a
3c30f31c59030d70462b71ef28c5eee19c6eddd6
[ "MIT" ]
null
null
null
const bool test=1; #include<iostream> #include<cctype> #include<algorithm> #include<cstdio> #include<cstdlib> #include<vector> #include<map> #include<queue> #include<set> #include<cctype> #include<cstring> #include<utility> #include<cmath> const int inf=0x7fffffff; #define IF if(test) #define FI if(!test) #define gts(s...
16.24
91
0.619869
[ "vector" ]
df888b15122aeb8f1165b43210a86d51c594d000
3,823
cpp
C++
solver/tests/TestGurobi.cpp
ferdinand-wood/kino_dynamic_opt
ba6bef170819c55d1d26e40af835a744d1ae663f
[ "BSD-3-Clause" ]
26
2019-11-18T17:39:43.000Z
2021-12-18T00:38:22.000Z
solver/tests/TestGurobi.cpp
ferdinand-wood/kino_dynamic_opt
ba6bef170819c55d1d26e40af835a744d1ae663f
[ "BSD-3-Clause" ]
25
2019-11-11T19:54:51.000Z
2021-04-07T13:41:47.000Z
solver/tests/TestGurobi.cpp
ferdinand-wood/kino_dynamic_opt
ba6bef170819c55d1d26e40af835a744d1ae663f
[ "BSD-3-Clause" ]
10
2019-12-15T14:36:51.000Z
2021-09-29T10:42:19.000Z
/** * @file TestGurobi.cpp * @author Brahayam Ponton (brahayam.ponton@tuebingen.mpg.de) * @license License BSD-3-Clause * @copyright Copyright 2018, Gurobi Optimization, LLC * @date 2019-10-07 * * @brief Formulate a classic optimization problem * * This example formulates and solves the following simple QP m...
29.635659
107
0.531781
[ "vector", "model" ]
df959254726aac3add6eb30735cd81529547554d
1,328
hh
C++
SockServer.hh
shuLhan/libvos
831491b197fa8f267fd94966d406596896e6f25c
[ "BSD-3-Clause" ]
1
2017-09-14T13:31:16.000Z
2017-09-14T13:31:16.000Z
SockServer.hh
shuLhan/libvos
831491b197fa8f267fd94966d406596896e6f25c
[ "BSD-3-Clause" ]
null
null
null
SockServer.hh
shuLhan/libvos
831491b197fa8f267fd94966d406596896e6f25c
[ "BSD-3-Clause" ]
5
2015-04-11T02:59:06.000Z
2021-03-03T19:45:39.000Z
// // Copyright 2009-2017 M. Shulhan (ms@kilabit.info). All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // #ifndef _LIBVOS_SOCKSERVER_HH #define _LIBVOS_SOCKSERVER_HH 1 #include <sys/time.h> #include "List.hh" #include "Socket.hh" namespac...
22.896552
73
0.711596
[ "object" ]
df9914deff6b21af2a491178c1ef4df87c38bed6
997
cpp
C++
android-31/android/net/vcn/VcnConfig_Builder.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
12
2020-03-26T02:38:56.000Z
2022-03-14T08:17:26.000Z
android-31/android/net/vcn/VcnConfig_Builder.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
1
2021-01-27T06:07:45.000Z
2021-11-13T19:19:43.000Z
android-31/android/net/vcn/VcnConfig_Builder.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
3
2021-02-02T12:34:55.000Z
2022-03-08T07:45:57.000Z
#include "../../content/Context.hpp" #include "./VcnConfig.hpp" #include "./VcnGatewayConnectionConfig.hpp" #include "./VcnConfig_Builder.hpp" namespace android::net::vcn { // Fields // QJniObject forward VcnConfig_Builder::VcnConfig_Builder(QJniObject obj) : JObject(obj) {} // Constructors VcnConfig_Builder:...
25.564103
141
0.727182
[ "object" ]
df9cc0448607443a4e72992352d4f2aae9fe0805
12,910
cc
C++
LimitCalc/src/RooFit_MCTemplate.cc
NTUHEP-Tstar/TstarAnalysis
d3bcdf6f0fd19b9a34bbacb1052143856917bea7
[ "MIT" ]
null
null
null
LimitCalc/src/RooFit_MCTemplate.cc
NTUHEP-Tstar/TstarAnalysis
d3bcdf6f0fd19b9a34bbacb1052143856917bea7
[ "MIT" ]
null
null
null
LimitCalc/src/RooFit_MCTemplate.cc
NTUHEP-Tstar/TstarAnalysis
d3bcdf6f0fd19b9a34bbacb1052143856917bea7
[ "MIT" ]
null
null
null
/******************************************************************************* * * Filename : RooFit_MCTemplate.cc * Description : Plotting to file for template methods.cc * Author : Yi-Mu "Enoch" Chen [ ensc@hep1.phys.ntu.edu.tw ] * *************************************************************************...
34.891892
112
0.58993
[ "object", "vector" ]
dfa30f25cb4c2c661c14a76c9883dd4afb8763f1
28,046
cpp
C++
projects/Ader2_CPP/src/MonoWrap/MonoManager.cpp
nfwGytautas/Ader2
c32789ca4e8efb0da47a81c81779727298618f3e
[ "Apache-2.0" ]
null
null
null
projects/Ader2_CPP/src/MonoWrap/MonoManager.cpp
nfwGytautas/Ader2
c32789ca4e8efb0da47a81c81779727298618f3e
[ "Apache-2.0" ]
null
null
null
projects/Ader2_CPP/src/MonoWrap/MonoManager.cpp
nfwGytautas/Ader2
c32789ca4e8efb0da47a81c81779727298618f3e
[ "Apache-2.0" ]
null
null
null
#include "MonoManager.h" // For find_if #include <algorithm> // For browsing directories #include <filesystem> // For reading assembly to memory #include <fstream> // Engine messages #include "Enums/Messages.h" // Logger #include "Utility/Log.h" // Assert #include "Defs.h" // Field attributes #include <mono/meta...
24.580193
163
0.732511
[ "object", "vector" ]
dfaae1956ab2a4d08c22a8b9ba4f011bf224350e
39,889
cpp
C++
AlleriaPintool/GlobalState.cpp
hadibrais/Alleria
ad4c9402bc0e442d4adc5e3de543540d1efbeba9
[ "MIT" ]
1
2019-10-16T19:24:43.000Z
2019-10-16T19:24:43.000Z
AlleriaPintool/GlobalState.cpp
hadibrais/Alleria
ad4c9402bc0e442d4adc5e3de543540d1efbeba9
[ "MIT" ]
null
null
null
AlleriaPintool/GlobalState.cpp
hadibrais/Alleria
ad4c9402bc0e442d4adc5e3de543540d1efbeba9
[ "MIT" ]
null
null
null
#include "GlobalState.h" #include <cstdlib> UINT32 GLOBAL_STATE::s_childWaitTimeOut; BOOL GLOBAL_STATE::processingThreadRunning; std::ofstream GLOBAL_STATE::gfstream; std::map<UINT32, UINT32> GLOBAL_STATE::gRoutineMap; std::wofstream GLOBAL_STATE::interceptorFileStreamText; std::ofstream GLOBAL_STATE::intercep...
30.173222
133
0.737622
[ "object", "vector" ]
dfadf187bd154f63e06bdada671794bfc4494dc4
1,754
cpp
C++
src/modules/osgDB/generated_code/OutputException.pypp.cpp
JaneliaSciComp/osgpyplusplus
a5ae3f69c7e9101a32d8cc95fe680dab292f75ac
[ "BSD-3-Clause" ]
17
2015-06-01T12:19:46.000Z
2022-02-12T02:37:48.000Z
src/modules/osgDB/generated_code/OutputException.pypp.cpp
JaneliaSciComp/osgpyplusplus
a5ae3f69c7e9101a32d8cc95fe680dab292f75ac
[ "BSD-3-Clause" ]
7
2015-07-04T14:36:49.000Z
2015-07-23T18:09:49.000Z
src/modules/osgDB/generated_code/OutputException.pypp.cpp
JaneliaSciComp/osgpyplusplus
a5ae3f69c7e9101a32d8cc95fe680dab292f75ac
[ "BSD-3-Clause" ]
7
2015-11-28T17:00:31.000Z
2020-01-08T07:00:59.000Z
// This file has been generated by Py++. #include "boost/python.hpp" #include "wrap_osgdb.h" #include "wrap_referenced.h" #include "outputexception.pypp.hpp" namespace bp = boost::python; struct OutputException_wrapper : osgDB::OutputException, bp::wrapper< osgDB::OutputException > { OutputException_wrapper(::s...
38.130435
267
0.6374
[ "vector" ]
dfb173421de70e975188de6236966ce973f70bd1
514
cpp
C++
rain/src/scene/components/shape/materials/blinn_phong_material.cpp
brenov/rain
a7108dd643c10b96c3b91363be0247a85c514b29
[ "MIT" ]
6
2017-08-11T14:04:23.000Z
2021-08-21T03:20:17.000Z
rain/src/scene/components/shape/materials/blinn_phong_material.cpp
brenov/rain
a7108dd643c10b96c3b91363be0247a85c514b29
[ "MIT" ]
null
null
null
rain/src/scene/components/shape/materials/blinn_phong_material.cpp
brenov/rain
a7108dd643c10b96c3b91363be0247a85c514b29
[ "MIT" ]
null
null
null
#include "scene/components/shape/materials/blinn_phong_material.h" BlinnPhongMaterial::BlinnPhongMaterial(Vec3 ka, Vec3 kd, Vec3 ks, Vec3::RealType p) { this->ka = ka; this->kd = kd; this->ks = ks; this->p = p; } BlinnPhongMaterial::~BlinnPhongMaterial() { /* empty */ } bool BlinnPhongMaterial:...
23.363636
85
0.636187
[ "shape" ]
dfb7835293a16b8c883ebce2c8d5798c10862435
1,717
hpp
C++
algorithms/p629/629.hpp
baishuai/leetcode_go
440ff08cf15e03ee64b3aa18370af1f75e958d18
[ "Apache-2.0" ]
9
2017-06-05T15:10:35.000Z
2021-06-08T03:10:46.000Z
algorithms/p629/629.hpp
baishuai/leetcode
440ff08cf15e03ee64b3aa18370af1f75e958d18
[ "Apache-2.0" ]
3
2017-07-12T14:08:39.000Z
2017-10-11T03:08:15.000Z
algorithms/p629/629.hpp
baishuai/leetcode_go
440ff08cf15e03ee64b3aa18370af1f75e958d18
[ "Apache-2.0" ]
1
2017-07-21T03:51:51.000Z
2017-07-21T03:51:51.000Z
#include <iostream> #include <queue> #include <algorithm> using namespace std; /** * Given two integers n and k, find how many different arrays consist of numbers * from 1 to n such that there are exactly k inverse pairs. We define an inverse pair as following: For ith and jth element in the array, if i < j and a...
25.626866
80
0.414677
[ "vector" ]
dfbd644cb2f3b2366a6631456c2c6cc729c29cb3
3,470
cpp
C++
multimedia/directx/gamectrl/default/ff.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
multimedia/directx/gamectrl/default/ff.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
multimedia/directx/gamectrl/default/ff.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
//=========================================================================== // FF.CPP // // Functions: // ForceFeedback_DlgProc() // //=========================================================================== #include "cplsvr1.h" #include "dicputil.h" //===================================================...
28.442623
99
0.535447
[ "object" ]
dfc5d6dd1626e9785e43a5b3dccaaf135f07f745
1,644
cpp
C++
Atcoder/ABC183_F.cpp
edwinsun98/Competitive-Programming-Solutions
67d79a2193e6912a644d27b9a399ba02a60766b7
[ "MIT" ]
null
null
null
Atcoder/ABC183_F.cpp
edwinsun98/Competitive-Programming-Solutions
67d79a2193e6912a644d27b9a399ba02a60766b7
[ "MIT" ]
null
null
null
Atcoder/ABC183_F.cpp
edwinsun98/Competitive-Programming-Solutions
67d79a2193e6912a644d27b9a399ba02a60766b7
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define p push #define f first #define s second #define all(vec) begin(vec), end(vec) #define pii pair<int,int> #define pli pair<ll,int> #define pil pair<int,ll> #define pll pair<ll,ll> #define ft front() #define bk b...
20.810127
53
0.484793
[ "vector" ]
dfcc6ea910c3fc6681c583fad602556fc1f6df11
14,657
cc
C++
media/cast/rtcp/rtcp_unittest.cc
kurli/chromium-crosswalk
f4c5d15d49d02b74eb834325e4dff50b16b53243
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
media/cast/rtcp/rtcp_unittest.cc
kurli/chromium-crosswalk
f4c5d15d49d02b74eb834325e4dff50b16b53243
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
media/cast/rtcp/rtcp_unittest.cc
kurli/chromium-crosswalk
f4c5d15d49d02b74eb834325e4dff50b16b53243
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
// Copyright 2013 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 "base/test/simple_test_tick_clock.h" #include "media/cast/cast_defines.h" #include "media/cast/pacing/paced_sender.h" #include "media/cast/rtcp/m...
35.6618
79
0.673467
[ "vector" ]
dfcc70c681f4480c237261638626141aba35f237
30,823
cpp
C++
TravelCrash/Plugins/HoudiniEngine/Source/HoudiniEngineRuntime/Private/Tests/HoudiniEngineRuntimeTest.cpp
all-in-one-of/HoudiniBugs
00ccf448e4536241c9e4cf25ee4906f38479032c
[ "Unlicense" ]
null
null
null
TravelCrash/Plugins/HoudiniEngine/Source/HoudiniEngineRuntime/Private/Tests/HoudiniEngineRuntimeTest.cpp
all-in-one-of/HoudiniBugs
00ccf448e4536241c9e4cf25ee4906f38479032c
[ "Unlicense" ]
null
null
null
TravelCrash/Plugins/HoudiniEngine/Source/HoudiniEngineRuntime/Private/Tests/HoudiniEngineRuntimeTest.cpp
all-in-one-of/HoudiniBugs
00ccf448e4536241c9e4cf25ee4906f38479032c
[ "Unlicense" ]
null
null
null
#include "HoudiniApi.h" #if WITH_EDITOR #include "CoreMinimal.h" #include "Editor.h" #include "Misc/AutomationTest.h" #include "FileCacheUtilities.h" #include "StaticMeshResources.h" #include "LevelEditorViewport.h" #include "AssetRegistryModule.h" #include "PropertyEditorModule.h" #include "Tests/AutomationCommon.h" #...
40.450131
176
0.570451
[ "mesh" ]