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
5299f4c2c7f8c7d0d4b4190516bd2e2e1209ddb5
13,960
cpp
C++
native/cocos/platform/java/jni/JniHelper.cpp
SteveLau-GameDeveloper/engine
159e5acd0f5115a878d59ed59f924ce7627a5466
[ "Apache-2.0", "MIT" ]
null
null
null
native/cocos/platform/java/jni/JniHelper.cpp
SteveLau-GameDeveloper/engine
159e5acd0f5115a878d59ed59f924ce7627a5466
[ "Apache-2.0", "MIT" ]
null
null
null
native/cocos/platform/java/jni/JniHelper.cpp
SteveLau-GameDeveloper/engine
159e5acd0f5115a878d59ed59f924ce7627a5466
[ "Apache-2.0", "MIT" ]
null
null
null
/**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a...
32.693208
153
0.588467
[ "vector" ]
529bc6283091296c25ae1f59e2ec6c7bb22d481a
6,592
cpp
C++
src/TerrainTilesCursor.cpp
codenamecpp/GrimLandsKeeper
a2207e2a459a254cbc703306ef92a09ecf714090
[ "MIT" ]
14
2020-06-27T18:51:41.000Z
2022-03-30T18:20:02.000Z
src/TerrainTilesCursor.cpp
codenamecpp/GLKeeper
a2207e2a459a254cbc703306ef92a09ecf714090
[ "MIT" ]
1
2020-06-07T09:48:11.000Z
2020-06-07T09:48:11.000Z
src/TerrainTilesCursor.cpp
codenamecpp/GrimLandsKeeper
a2207e2a459a254cbc703306ef92a09ecf714090
[ "MIT" ]
2
2020-08-27T09:38:10.000Z
2021-08-12T01:17:30.000Z
#include "pch.h" #include "TerrainTilesCursor.h" #include "SceneObject.h" #include "RenderableProcMesh.h" #include "TexturesManager.h" #include "TimeManager.h" void TerrainTilesCursor::EnterWorld() { debug_assert(mMeshObject == nullptr); mMeshObject = new RenderableProcMesh; mMeshObject->mDebugC...
33.125628
149
0.616808
[ "mesh" ]
52a3612b633648085a0547e684026bbdf57d7df1
7,916
cpp
C++
catflow/cpp/test/JsonObjectTest.cpp
PancakeSoftware/openHabAI
362846055d0bea0bbbe56ba96806de0303de53c1
[ "MIT" ]
7
2018-05-24T15:08:48.000Z
2020-07-09T05:38:01.000Z
catflow/cpp/test/JsonObjectTest.cpp
PancakeSoftware/openHabAI
362846055d0bea0bbbe56ba96806de0303de53c1
[ "MIT" ]
3
2018-05-10T17:49:39.000Z
2022-02-26T03:22:54.000Z
catflow/cpp/test/JsonObjectTest.cpp
PancakeSoftware/openHabAI
362846055d0bea0bbbe56ba96806de0303de53c1
[ "MIT" ]
2
2018-07-21T17:45:28.000Z
2020-02-20T14:19:30.000Z
/* * File: Test * Author: Joshua Johannson * */ #include <gtest/gtest.h> #include "TestHelper.hpp" #include <ApiJsonObject.h> #include <server/ApiServer.h> class MyObject : public ApiJsonObject { public: int i = 10; string s = ""; bool b = false; string pNonSave = ""; string pReadonly =...
22.298592
100
0.52476
[ "vector" ]
52a9f7e204e872f39980e7cdf9e400b7f627c949
10,903
cpp
C++
src/ArduinoOcpp/Core/OcppOperation.cpp
othorne-public/ArduinoOcpp
7e63351917a12707bc0b9cd8d3a8680306661f49
[ "MIT" ]
null
null
null
src/ArduinoOcpp/Core/OcppOperation.cpp
othorne-public/ArduinoOcpp
7e63351917a12707bc0b9cd8d3a8680306661f49
[ "MIT" ]
null
null
null
src/ArduinoOcpp/Core/OcppOperation.cpp
othorne-public/ArduinoOcpp
7e63351917a12707bc0b9cd8d3a8680306661f49
[ "MIT" ]
null
null
null
// matth-x/ArduinoOcpp // Copyright Matthias Akstaller 2019 - 2022 // MIT License #include <ArduinoOcpp/Core/OcppOperation.h> #include <ArduinoOcpp/Core/OcppMessage.h> #include <ArduinoOcpp/Core/OcppModel.h> #include <ArduinoOcpp/Core/OcppSocket.h> #include <ArduinoOcpp/Platform.h> #include <ArduinoOcpp/Debug.h> int...
30.286111
145
0.654315
[ "object" ]
52ae4c75832d857b5b6b77f67afd5eee93c046b7
3,359
cpp
C++
src/code-examples/chapter-12/bookmark-service-with-reply/main.cpp
nhatvu148/helpers
1a6875017cf39790dfe40ecec9dcee4410b1d89e
[ "MIT" ]
null
null
null
src/code-examples/chapter-12/bookmark-service-with-reply/main.cpp
nhatvu148/helpers
1a6875017cf39790dfe40ecec9dcee4410b1d89e
[ "MIT" ]
null
null
null
src/code-examples/chapter-12/bookmark-service-with-reply/main.cpp
nhatvu148/helpers
1a6875017cf39790dfe40ecec9dcee4410b1d89e
[ "MIT" ]
null
null
null
// Standard library #include <iostream> #include <string> // JSON library #include <nlohmann/json.hpp> using json = nlohmann::json; // Utilities #include "expected.h" #include "mtry.h" #include "trim.h" // Our reactive stream implementation #include "filter.h" #include "join.h" #include "sink.h" #include "transform...
25.641221
81
0.574873
[ "transform" ]
1ed1860441ed1eccc130772814cff3e755e029e0
26,038
cpp
C++
OpenSim/Common/Mtx.cpp
MaartenAfschrift/OpenSim_SourceAD
e063021c44e15744cfc5438b5fe5250d02018098
[ "Apache-2.0" ]
2
2020-10-30T09:08:44.000Z
2020-12-08T07:15:54.000Z
OpenSim/Common/Mtx.cpp
MaartenAfschrift/OpenSim_SourceAD
e063021c44e15744cfc5438b5fe5250d02018098
[ "Apache-2.0" ]
null
null
null
OpenSim/Common/Mtx.cpp
MaartenAfschrift/OpenSim_SourceAD
e063021c44e15744cfc5438b5fe5250d02018098
[ "Apache-2.0" ]
null
null
null
///* -------------------------------------------------------------------------- * // * OpenSim: Mtx.cpp * // * -------------------------------------------------------------------------- * // * The OpenSim API is a toolkit for musculoskeletal modeling and simulat...
33.001267
139
0.546509
[ "vector" ]
1ed649883c89ec7149ff27032ba902cfabd9b3fa
2,466
inl
C++
include/visionaray/detail/point_light.inl
ukoeln-vis/ctpperf
2d896c4e8f4a46a6aee198ed6492e7571361e00b
[ "MIT" ]
5
2017-08-11T00:11:45.000Z
2022-01-24T14:47:47.000Z
include/visionaray/detail/point_light.inl
ukoeln-vis/ctpperf
2d896c4e8f4a46a6aee198ed6492e7571361e00b
[ "MIT" ]
null
null
null
include/visionaray/detail/point_light.inl
ukoeln-vis/ctpperf
2d896c4e8f4a46a6aee198ed6492e7571361e00b
[ "MIT" ]
null
null
null
// This file is distributed under the MIT license. // See the LICENSE file for details. namespace visionaray { //------------------------------------------------------------------------------------------------- // point_light members // template <typename T> template <typename U> VSNRAY_FUNC inline vector<3, U> poin...
19.728
99
0.670316
[ "vector" ]
1ee141cb7dc48f4e4446c2074fae26ac160155dc
1,493
cc
C++
Codeforces/209 Division 2/Problem C/C.cc
VastoLorde95/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
170
2017-07-25T14:47:29.000Z
2022-01-26T19:16:31.000Z
Codeforces/209 Division 2/Problem C/C.cc
navodit15/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
null
null
null
Codeforces/209 Division 2/Problem C/C.cc
navodit15/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
55
2017-07-28T06:17:33.000Z
2021-10-31T03:06:22.000Z
#include<cstdio> #include<iostream> #include<cmath> #include<algorithm> #include<cstring> #include<map> #include<set> #include<vector> #include<utility> #include<queue> #include<stack> #define sd(x) scanf("%d",&x) #define sd2(x,y) scanf("%d%d",&x,&y) #define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z) #define fi first #define...
16.053763
72
0.525787
[ "vector" ]
1ee25d1d8abcfda53df266eead26d16ffad25297
1,004
hpp
C++
MemLeak/src/RenderTexture/RenderTexture.hpp
pk8868/MemLeak
72f937110c2b67547f67bdea60d2e80b0f5581a1
[ "MIT" ]
null
null
null
MemLeak/src/RenderTexture/RenderTexture.hpp
pk8868/MemLeak
72f937110c2b67547f67bdea60d2e80b0f5581a1
[ "MIT" ]
null
null
null
MemLeak/src/RenderTexture/RenderTexture.hpp
pk8868/MemLeak
72f937110c2b67547f67bdea60d2e80b0f5581a1
[ "MIT" ]
null
null
null
#pragma once #include "RenderTarget/RenderTarget.hpp" namespace ml { class Image; class Sprite; class Rectangle; class Line; class Text; class Window; struct Color; class RenderTexture : public RenderTarget { public: RenderTexture(Vec2i size, Window& window); ~RenderTexture(); // delete copy construc...
19.686275
80
0.724104
[ "render" ]
1ee4049ac8bf0ee2217bb765c7a61807aeea276c
418
hpp
C++
Entity.hpp
leonidlist/sfmlRPG
b652ee803bcd41e7be546191a6ddb7164f8cf046
[ "MIT" ]
2
2019-03-12T13:25:01.000Z
2019-05-20T16:08:15.000Z
Entity.hpp
leonidlist/sfmlRPG
b652ee803bcd41e7be546191a6ddb7164f8cf046
[ "MIT" ]
null
null
null
Entity.hpp
leonidlist/sfmlRPG
b652ee803bcd41e7be546191a6ddb7164f8cf046
[ "MIT" ]
null
null
null
#ifndef RPGSFML_ENTITY_H #define RPGSFML_ENTITY_H #include <stdio.h> #include <SFML/Graphics.hpp> #include <SFML/Audio.hpp> #include <iostream> #include <random> #include <cmath> #include <cstdlib> #include <functional> #include <tgmath.h> #include <deque> #include <list> #include <vector> #include <unistd.h> class E...
16.076923
28
0.715311
[ "vector" ]
1ef4c6a67f2958c3d22e2ba9f0fe98a70c857158
2,105
cpp
C++
aws-cpp-sdk-config/source/model/DescribeRetentionConfigurationsRequest.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-config/source/model/DescribeRetentionConfigurationsRequest.cpp
curiousjgeorge/aws-sdk-cpp
09b65deba03cfbef9a1e5d5986aa4de71bc03cd8
[ "Apache-2.0" ]
null
null
null
aws-cpp-sdk-config/source/model/DescribeRetentionConfigurationsRequest.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...
31.893939
173
0.797625
[ "model" ]
1ef9d720296ae6a7019906f9f7cb2906c74325e4
1,829
cc
C++
tests/call_command_test.cc
elp2/edge
a3914d7ce73a4ffdb19d38d140351881190b3fee
[ "Apache-2.0" ]
3
2020-05-30T22:04:03.000Z
2021-12-04T06:05:46.000Z
tests/call_command_test.cc
elp2/edge
a3914d7ce73a4ffdb19d38d140351881190b3fee
[ "Apache-2.0" ]
null
null
null
tests/call_command_test.cc
elp2/edge
a3914d7ce73a4ffdb19d38d140351881190b3fee
[ "Apache-2.0" ]
null
null
null
#include "cpu.h" #include "gtest/gtest.h" #include "mmu.h" #include "ppu.h" #include "rom.h" #include "utils.h" class CallCommandTest : public ::testing::Test { protected: CallCommandTest(){}; ~CallCommandTest(){}; }; TEST(CallCommandTest, CALLnn) { const uint8_t CALLnn = 0xCD; CPU *cpu = getTestingCPUWithIn...
29.031746
80
0.705303
[ "vector" ]
1efaf3aa72d25e7f21d6416b23ffa7e114996295
1,489
cpp
C++
Practicas/P3/ParaAlumnos/MancalaEngine/JosePadialBot.cpp
josepadial/IA
1399eb587fab8626e50429521391c9064a2d229b
[ "MIT" ]
null
null
null
Practicas/P3/ParaAlumnos/MancalaEngine/JosePadialBot.cpp
josepadial/IA
1399eb587fab8626e50429521391c9064a2d229b
[ "MIT" ]
null
null
null
Practicas/P3/ParaAlumnos/MancalaEngine/JosePadialBot.cpp
josepadial/IA
1399eb587fab8626e50429521391c9064a2d229b
[ "MIT" ]
null
null
null
/* * JosePadialBot.cpp * * Created on: 15 mayo 2018 * Author: Jose Antonio Padial Molina */ #include "JosePadialBot.h" #include <string> #include <cstdlib> #include <iostream> using namespace std; JosePadialBot::JosePadialBot() { // Inicializar las variables necesarias para ejecutar la partida } JosePa...
23.634921
85
0.711887
[ "vector" ]
48064921e9b61c1ca3a3d8150a75adc5efff4c2f
9,184
cpp
C++
RNAstructure_Source/PARTS/src/parts/ppf_w_bpi.cpp
mayc2/PseudoKnot_research
33e94b84435d87aff3d89dbad970c438ac173331
[ "MIT" ]
null
null
null
RNAstructure_Source/PARTS/src/parts/ppf_w_bpi.cpp
mayc2/PseudoKnot_research
33e94b84435d87aff3d89dbad970c438ac173331
[ "MIT" ]
null
null
null
RNAstructure_Source/PARTS/src/parts/ppf_w_bpi.cpp
mayc2/PseudoKnot_research
33e94b84435d87aff3d89dbad970c438ac173331
[ "MIT" ]
null
null
null
#include <string.h> #include <limits.h> #include <stdio.h> #include <stdlib.h> #include "parts_compilation_directives.h" #include "ppf_w_bpi.h" #include "ppf_v.h" #include "ppf_w.h" #include "ppf_w_mb.h" #include "ppf_v_bpi.h" #include "ss_str.h" #include "process_sequences.h" #include "ppf_math.h" #include "alignment_...
37.485714
186
0.694904
[ "object" ]
48142b3fd894e8841a293de1dc2ae09a7536ae2f
416
cpp
C++
test/test_mutex.cpp
huzqujm/multi_thread_producer_and_consumer
5565ee7e200559191b004f3b4b068cf73fd4d581
[ "MIT" ]
null
null
null
test/test_mutex.cpp
huzqujm/multi_thread_producer_and_consumer
5565ee7e200559191b004f3b4b068cf73fd4d581
[ "MIT" ]
null
null
null
test/test_mutex.cpp
huzqujm/multi_thread_producer_and_consumer
5565ee7e200559191b004f3b4b068cf73fd4d581
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <thread> std::mutex mtx; void print(const int& num) { mtx.lock(); std::cout << num << std::endl; mtx.unlock(); } int main(int argc, char* argv[]) { std::vector<std::thread> t_pool; for (int i = 0; i < 10; ++i) { t_pool.push_back(std::thread(print, i)); } for (i...
16.64
42
0.576923
[ "vector" ]
4814bfe13761d21186a659554466746eb964cd87
22,038
cpp
C++
src/Cello/simulation_Simulation.cpp
ThomasBolden/cello-mod
68431de28a3575c95bb40c47fce7a352c6b92145
[ "MIT", "BSD-3-Clause" ]
null
null
null
src/Cello/simulation_Simulation.cpp
ThomasBolden/cello-mod
68431de28a3575c95bb40c47fce7a352c6b92145
[ "MIT", "BSD-3-Clause" ]
null
null
null
src/Cello/simulation_Simulation.cpp
ThomasBolden/cello-mod
68431de28a3575c95bb40c47fce7a352c6b92145
[ "MIT", "BSD-3-Clause" ]
null
null
null
// See LICENSE_CELLO file for license and copyright information /// @file simulation_Simulation.cpp /// @author James Bordner (jobordner@ucsd.edu) /// @date 2010-11-10 /// @brief Implementation of the Simulation class #include "cello.hpp" #include "main.hpp" #include "simulation.hpp" #include "char...
27.274752
84
0.602959
[ "mesh", "object" ]
4816dc9f55cd1f606024b7080d528e60ac8135dc
3,691
cpp
C++
src/app/main.cpp
mteichtahl/simhub
4c409c61e38bb5deeb58a09c6cb89730d38280e1
[ "MIT" ]
3
2018-03-19T18:09:12.000Z
2021-06-17T03:56:05.000Z
src/app/main.cpp
mteichtahl/simhub
4c409c61e38bb5deeb58a09c6cb89730d38280e1
[ "MIT" ]
19
2017-04-29T11:25:52.000Z
2021-05-07T14:48:59.000Z
src/app/main.cpp
mteichtahl/simhub
4c409c61e38bb5deeb58a09c6cb89730d38280e1
[ "MIT" ]
9
2017-04-26T22:45:06.000Z
2022-02-27T01:08:54.000Z
#include <condition_variable> #include <iostream> #include <map> #include <signal.h> #include <string> #include <thread> #include <vector> #if defined(_AWS_SDK) #include "aws/aws.h" #endif #include "common/configmanager/configmanager.h" #include "libs/commandLine.h" // https://github.com/tanakh/cmdline #include "log/...
29.528
111
0.660526
[ "vector" ]
4817e7e426b07d0b70aece3d260a016b700d5c99
4,756
cc
C++
components/copresence/copresence_state_unittest.cc
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
components/copresence/copresence_state_unittest.cc
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
components/copresence/copresence_state_unittest.cc
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <string> #include <vector> #include "base/time/time.h" #include "components/copresence/copresence_state_impl.h" #include "components/copresence/...
31.706667
80
0.746005
[ "vector" ]
481d06db768cfb7abc45e01e46d58f59e5d9eded
12,706
cpp
C++
Cpp/fost-core/jcursor.cpp
KayEss/fost-base
05ac1b6a1fb672c61ba6502efea86f9c5207e28f
[ "BSL-1.0" ]
2
2016-05-25T22:17:38.000Z
2019-04-02T08:34:17.000Z
Cpp/fost-core/jcursor.cpp
KayEss/fost-base
05ac1b6a1fb672c61ba6502efea86f9c5207e28f
[ "BSL-1.0" ]
5
2018-07-13T10:43:05.000Z
2019-09-02T14:54:42.000Z
Cpp/fost-core/jcursor.cpp
KayEss/fost-base
05ac1b6a1fb672c61ba6502efea86f9c5207e28f
[ "BSL-1.0" ]
1
2020-10-22T20:44:24.000Z
2020-10-22T20:44:24.000Z
/** Copyright 2007-2020 Red Anchor Trading Co. Ltd. Distributed under the Boost Software License, Version 1.0. See <http://www.boost.org/LICENSE_1_0.txt> */ #include "fost-core.hpp" #include <fost/json.hpp> #include <fost/insert.hpp> #include <fost/unicode.hpp> #include <fost/detail/coerce.hpp> #include...
32.579487
82
0.546671
[ "object" ]
482078a269d949e1addf8469ee02290aa58b3a42
49,614
hpp
C++
src/UTIL/utilities_acml.hpp
Seideman-Group/chiML
9ace5dccdbc6c173e8383f6a31ff421b4fefffdf
[ "MIT" ]
1
2019-04-27T05:25:27.000Z
2019-04-27T05:25:27.000Z
src/UTIL/utilities_acml.hpp
Seideman-Group/chiML
9ace5dccdbc6c173e8383f6a31ff421b4fefffdf
[ "MIT" ]
null
null
null
src/UTIL/utilities_acml.hpp
Seideman-Group/chiML
9ace5dccdbc6c173e8383f6a31ff421b4fefffdf
[ "MIT" ]
2
2019-04-03T10:08:21.000Z
2019-09-30T22:40:28.000Z
/** @file UTIL/utilities_acml.hpp * @brief wrapper functions to a acml blas functionality * * @author Thomas A. Purcell (tpurcell90) * @author Joshua E. Szekely (jeszekely) * @bug No known bugs */ // To see documentation look up functions here: https://software.intel.com/en-us/mkl-reference-manual-for-c #ifnd...
79.509615
701
0.635365
[ "vector" ]
482350b524d102f46adf928ecd99965eba9aed1d
1,650
cc
C++
packages/transport/Transport_Discretization.cc
brbass/ibex
5a4cc5b4d6d46430d9667970f8a34f37177953d4
[ "MIT" ]
2
2020-04-13T20:06:41.000Z
2021-02-12T17:55:54.000Z
packages/transport/Transport_Discretization.cc
brbass/ibex
5a4cc5b4d6d46430d9667970f8a34f37177953d4
[ "MIT" ]
1
2018-10-22T21:03:35.000Z
2018-10-22T21:03:35.000Z
packages/transport/Transport_Discretization.cc
brbass/ibex
5a4cc5b4d6d46430d9667970f8a34f37177953d4
[ "MIT" ]
3
2019-04-03T02:15:37.000Z
2022-01-04T05:50:23.000Z
#include "Transport_Discretization.hh" #include "Angular_Discretization.hh" #include "Energy_Discretization.hh" #include "Spatial_Discretization.hh" #include "XML_Node.hh" using std::shared_ptr; using std::vector; Transport_Discretization:: Transport_Discretization(shared_ptr<Spatial_Discretization> spatial, ...
35.106383
115
0.747879
[ "vector" ]
4823c311cfa743df9fded1e7d6b69b6054038a64
11,628
cpp
C++
engine/std/shader.cpp
jjzhang166/OpenGLEngine
e5d86f41536834499f4dd534c590fbeed045ff7c
[ "MIT" ]
1
2021-08-12T07:35:49.000Z
2021-08-12T07:35:49.000Z
engine/std/shader.cpp
jjzhang166/OpenGLEngine
e5d86f41536834499f4dd534c590fbeed045ff7c
[ "MIT" ]
null
null
null
engine/std/shader.cpp
jjzhang166/OpenGLEngine
e5d86f41536834499f4dd534c590fbeed045ff7c
[ "MIT" ]
null
null
null
// // shader.cpp // OpenGLEngine // // Created by 彭怀亮 on 5/28/19. // Copyright © 2019 彭怀亮. All rights reserved. // #include "shader.hpp" #include "util.hpp" #ifdef _GLES_ #include "FilePath.h" #endif namespace engine { Shader::Shader(const char* vertexPath, const char* fragmentPath, const char* geometryPath,...
30.28125
191
0.542828
[ "geometry" ]
482898acb003b6eba1c724229148dfbce650d2f4
2,531
cpp
C++
Game/OGRE/OgreMain/src/OgreRenderWindow.cpp
hackerlank/SourceCode
b702c9e0a9ca5d86933f3c827abb02a18ffc9a59
[ "MIT" ]
4
2021-07-31T13:56:01.000Z
2021-11-13T02:55:10.000Z
Game/OGRE/OgreMain/src/OgreRenderWindow.cpp
shacojx/SourceCodeGameTLBB
e3cea615b06761c2098a05427a5f41c236b71bf7
[ "MIT" ]
null
null
null
Game/OGRE/OgreMain/src/OgreRenderWindow.cpp
shacojx/SourceCodeGameTLBB
e3cea615b06761c2098a05427a5f41c236b71bf7
[ "MIT" ]
7
2021-08-31T14:34:23.000Z
2022-01-19T08:25:58.000Z
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2005 The OGRE Team Also see acknowledgements in Readme.html This program is free software...
31.6375
103
0.55077
[ "object" ]
4831d99f348c402b3f3de68e34714ae9b7c3607e
7,742
cpp
C++
Example/Source/GameStates/SpriteDemo.cpp
amitukind/WebGL-Game-Engine
c78973803938c1cfba703d9bb437ec46a4c48045
[ "Unlicense" ]
null
null
null
Example/Source/GameStates/SpriteDemo.cpp
amitukind/WebGL-Game-Engine
c78973803938c1cfba703d9bb437ec46a4c48045
[ "Unlicense" ]
null
null
null
Example/Source/GameStates/SpriteDemo.cpp
amitukind/WebGL-Game-Engine
c78973803938c1cfba703d9bb437ec46a4c48045
[ "Unlicense" ]
null
null
null
/* Copyright (c) 2018-2021 Piotr Doan. All rights reserved. Software distributed under the permissive MIT License. */ #include "../Precompiled.hpp" #include "SpriteDemo.hpp" #include <Engine.hpp> #include <System/Timer.hpp> #include <System/InputManager.hpp> #include <System/ResourceManager.hpp> #include <Grap...
36.518868
99
0.689873
[ "transform" ]
4837bd8a4fd9b16bb21a7979448ad61a98563a77
1,733
cpp
C++
compiler/parser/visitors/typecheck/typecheck.cpp
markhend/seq
c5c924a679a5dd21ad85bb3c847df0afca39776b
[ "Apache-2.0" ]
625
2019-10-24T12:02:58.000Z
2022-03-30T06:07:22.000Z
compiler/parser/visitors/typecheck/typecheck.cpp
markhend/seq
c5c924a679a5dd21ad85bb3c847df0afca39776b
[ "Apache-2.0" ]
101
2019-11-01T00:37:38.000Z
2022-02-17T02:50:04.000Z
compiler/parser/visitors/typecheck/typecheck.cpp
markhend/seq
c5c924a679a5dd21ad85bb3c847df0afca39776b
[ "Apache-2.0" ]
48
2019-11-13T14:39:31.000Z
2022-02-17T02:08:41.000Z
/* * typecheck.cpp --- Type inference and type-dependent AST transformations. * * (c) Seq project. All rights reserved. * This file is subject to the terms and conditions defined in * file 'LICENSE', which is part of this source code package. */ #include "util/fmt/format.h" #include <memory> #include <utility> #...
27.078125
76
0.687825
[ "vector" ]
483afbd06b3063069421b426d93fdbb324eea54b
1,165
hpp
C++
include/mandoline/barycentric_triangle_face.hpp
mtao/mandoline
79438c5b210a2ca4b9f72cbfd2879a9ae6a665da
[ "MIT" ]
54
2019-11-12T11:07:03.000Z
2022-03-23T11:09:19.000Z
include/mandoline/barycentric_triangle_face.hpp
mtao/mandoline
79438c5b210a2ca4b9f72cbfd2879a9ae6a665da
[ "MIT" ]
2
2019-12-17T01:49:44.000Z
2020-03-29T19:46:36.000Z
include/mandoline/barycentric_triangle_face.hpp
mtao/mandoline
79438c5b210a2ca4b9f72cbfd2879a9ae6a665da
[ "MIT" ]
8
2019-11-29T02:30:49.000Z
2022-02-19T06:15:22.000Z
#pragma once #include <mtao/types.hpp> #include <Eigen/Sparse> #include "mandoline/cutface.hpp" namespace mandoline { // BarycentricTriangleFan stores the vertices of a simple polygon struct BarycentricTriangleFace { mtao::ColVecs3d barys; int parent_fid = -1; // reads off the vertex info in the for...
37.580645
128
0.699571
[ "vector" ]
483d05d85f298c72e95a4c120957cbdb0ae95f6d
8,105
hpp
C++
src/cpp/features.hpp
laudv/veritas
ba1761cc333b08b4381afa720b24ace065a9f106
[ "Apache-2.0" ]
6
2020-10-29T10:20:48.000Z
2022-03-31T13:39:47.000Z
src/cpp/features.hpp
laudv/veritas
ba1761cc333b08b4381afa720b24ace065a9f106
[ "Apache-2.0" ]
1
2021-11-25T13:15:11.000Z
2021-12-08T09:23:24.000Z
src/cpp/features.hpp
laudv/veritas
ba1761cc333b08b4381afa720b24ace065a9f106
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2020 DTAI Research Group - KU Leuven. * License: Apache License 2.0 * Author: Laurens Devos */ #ifndef VERITAS_FEAT_MAP_HPP #define VERITAS_FEAT_MAP_HPP #include "basics.hpp" #include "tree.hpp" #include <vector> #include <string> #include <map> #include <memory> #include <iostream> #include <funct...
32.035573
109
0.545959
[ "vector", "transform" ]
c61723ebf1b61784ae5d81ef8faa29d09ed86540
6,488
cc
C++
JXIO/src/c/src/Events.cc
chesvectain/i2am
82aee4f617d0cefe5f358d0a0f83b0b2b6a1ef9b
[ "Apache-2.0" ]
8
2018-05-30T11:08:04.000Z
2021-01-05T08:45:38.000Z
JXIO/src/c/src/Events.cc
chesvectain/i2am
82aee4f617d0cefe5f358d0a0f83b0b2b6a1ef9b
[ "Apache-2.0" ]
9
2020-05-15T20:34:55.000Z
2021-12-14T21:14:52.000Z
JXIO/src/c/src/Events.cc
chesvectain/i2am
82aee4f617d0cefe5f358d0a0f83b0b2b6a1ef9b
[ "Apache-2.0" ]
13
2016-11-07T06:20:07.000Z
2021-02-25T06:57:04.000Z
/* ** Copyright (C) 2013 Mellanox Technologies ** ** 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...
36.044444
151
0.752004
[ "object" ]
c61982a7689dbdc66923f3e3459540f8880ace4d
8,012
cpp
C++
Waifu2xAvisynth/waifu2xAvisynth.cpp
sunnyone/Waifu2xAvisynth
c6de02e6a1a9f038111e1303cb2491b32ebd66aa
[ "BSD-3-Clause" ]
45
2015-05-30T00:42:34.000Z
2021-04-28T06:14:37.000Z
Waifu2xAvisynth/waifu2xAvisynth.cpp
sahwar/Waifu2xAvisynth
c6de02e6a1a9f038111e1303cb2491b32ebd66aa
[ "BSD-3-Clause" ]
3
2015-06-06T11:55:46.000Z
2020-03-26T09:16:25.000Z
Waifu2xAvisynth/waifu2xAvisynth.cpp
sahwar/Waifu2xAvisynth
c6de02e6a1a9f038111e1303cb2491b32ebd66aa
[ "BSD-3-Clause" ]
9
2015-05-30T15:21:49.000Z
2020-06-13T13:53:32.000Z
#include <future> #include <Windows.h> #include <avisynth.h> #include <sstream> #include <string> #include "picojson.h" #include "tclap/CmdLine.h" #include "modelHandler.hpp" EXTERN_C IMAGE_DOS_HEADER __ImageBase; void outputDebug(std::function<void(std::ostringstream&)> func) { std::ostringstream str; func(str)...
30.007491
135
0.693585
[ "vector", "model" ]
c61ae3295f3e88dea9bff721955785e0aaebb07c
12,168
cpp
C++
code/engine/xrRenderPC_R4/r4_loader.cpp
InNoHurryToCode/xray-162
fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e
[ "Apache-2.0" ]
58
2016-11-20T19:14:35.000Z
2021-12-27T21:03:35.000Z
code/engine/xrRenderPC_R4/r4_loader.cpp
InNoHurryToCode/xray-162
fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e
[ "Apache-2.0" ]
59
2016-09-10T10:44:20.000Z
2018-09-03T19:07:30.000Z
code/engine/xrRenderPC_R4/r4_loader.cpp
InNoHurryToCode/xray-162
fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e
[ "Apache-2.0" ]
39
2017-02-05T13:35:37.000Z
2022-03-14T11:00:12.000Z
#include "stdafx.h" #include "r4.h" #include "xrRenderCommon/ResourceManager.h" #include "xrRenderCommon/fbasicvisual.h" #include "xrEngine/fmesh.h" #include "xrEngine/xrLevel.h" #include "xrEngine/x_ray.h" #include "xrEngine/IGame_Persistent.h" #include "xrCore/stream_reader.h" #include "xrRenderCommon/dxRenderDevice...
28.765957
106
0.541667
[ "geometry", "render", "model", "3d" ]
c61e5aecb914387b9f6540e937bba6175a4efbc3
17,380
cpp
C++
include/Gui.cpp
sjokic/WallDestruction
2e1c000096df4aa027a91ff1732ce50a205b221a
[ "MIT" ]
1
2021-11-03T11:30:05.000Z
2021-11-03T11:30:05.000Z
include/Gui.cpp
sjokic/WallDestruction
2e1c000096df4aa027a91ff1732ce50a205b221a
[ "MIT" ]
null
null
null
include/Gui.cpp
sjokic/WallDestruction
2e1c000096df4aa027a91ff1732ce50a205b221a
[ "MIT" ]
null
null
null
#include "Gui.h" #include <igl/Hit.h> #include <igl/project.h> #include <igl/writeOFF.h> #include <iomanip> #include <sstream> void Gui::setSimulation(Simulation *sim) { p_simulator = new Simulator(sim); p_simulator->reset(); p_simulator->setSimulationSpeed(m_simSpeed); } void Gui::addParticlesToViewer() { int n ...
30.173611
107
0.672209
[ "render", "object", "vector" ]
c61f1130d5fd2234ad1cf5f07206bdef7281dfdf
4,932
cpp
C++
extra_visitors/yaml_cpp/src/reader.cpp
sevenbill/ariles
700236c9bfdba5a87dac2bc2e4735e1457c1c29f
[ "Apache-2.0" ]
null
null
null
extra_visitors/yaml_cpp/src/reader.cpp
sevenbill/ariles
700236c9bfdba5a87dac2bc2e4735e1457c1c29f
[ "Apache-2.0" ]
null
null
null
extra_visitors/yaml_cpp/src/reader.cpp
sevenbill/ariles
700236c9bfdba5a87dac2bc2e4735e1457c1c29f
[ "Apache-2.0" ]
null
null
null
/** @file @author Alexander Sherikov @copyright 2018-2020 Alexander Sherikov, Licensed under the Apache License, Version 2.0. (see @ref LICENSE or http://www.apache.org/licenses/LICENSE-2.0) @brief */ #include <ariles/visitors/yaml_cpp.h> #include <yaml-cpp/yaml.h> namespace ariles { namesp...
27.864407
120
0.46472
[ "vector" ]
c61f7d37201b3c1f1b9be1548c8b21a5891387a7
5,403
cpp
C++
MPLECS/Systems/Time.cpp
Agaanii/Dictator
6221e997fbd86ed47c6a52860879d47746bf6530
[ "MIT" ]
3
2017-07-10T20:31:16.000Z
2018-07-23T21:00:23.000Z
MPLECS/Systems/Time.cpp
Agaanii/Dictator
6221e997fbd86ed47c6a52860879d47746bf6530
[ "MIT" ]
null
null
null
MPLECS/Systems/Time.cpp
Agaanii/Dictator
6221e997fbd86ed47c6a52860879d47746bf6530
[ "MIT" ]
null
null
null
//----------------------------------------------------------------------------- // All code is property of Dictator Developers Inc // Contact at Loesby.dev@gmail.com for permission to use // Or to discuss ideas // (c) 2018 // Systems/Time.cpp // The boilerplate system code, to ease new system creation #include "../Co...
31.231214
125
0.666667
[ "render" ]
c62056b005cd788c383be226c9eb02e6b63998ab
12,797
cpp
C++
3D Engine/AK/IntegrationDemo/DemoPages/DemoFootstepsManyVariables.cpp
botttos/PalmGine
5335b00e8100a14c86280a9d6fdbef9728480bf0
[ "Apache-2.0" ]
null
null
null
3D Engine/AK/IntegrationDemo/DemoPages/DemoFootstepsManyVariables.cpp
botttos/PalmGine
5335b00e8100a14c86280a9d6fdbef9728480bf0
[ "Apache-2.0" ]
null
null
null
3D Engine/AK/IntegrationDemo/DemoPages/DemoFootstepsManyVariables.cpp
botttos/PalmGine
5335b00e8100a14c86280a9d6fdbef9728480bf0
[ "Apache-2.0" ]
3
2019-10-26T12:51:27.000Z
2021-01-10T22:01:38.000Z
/******************************************************************************* The content of this file includes portions of the AUDIOKINETIC Wwise Technology released in source code form as part of the SDK installer package. Commercial License Usage Licensees holding valid commercial licenses to the AUDIOKINETIC W...
32.981959
139
0.709619
[ "object" ]
c623bad85473b247b2a83c37f4e69744a72ec850
7,206
cc
C++
device/serial/data_source_sender.cc
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
device/serial/data_source_sender.cc
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
device/serial/data_source_sender.cc
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
// Copyright 2014 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 "device/serial/data_source_sender.h" #include <algorithm> #include <limits> #include <memory> #include <utility> #include "base/bind.h" #includ...
28.258824
80
0.721621
[ "vector" ]
c63a4e357a742c68597ac4a2336dcdbe092afb9f
1,177
cpp
C++
src/cpp/2016-12-4-BestTimetoBuyandSellStock/Code13-122BestTimetoBuyandSellStock2.cpp
spurscoder/forTest
2ab069d6740f9d7636c6988a5a0bd3825518335d
[ "MIT" ]
null
null
null
src/cpp/2016-12-4-BestTimetoBuyandSellStock/Code13-122BestTimetoBuyandSellStock2.cpp
spurscoder/forTest
2ab069d6740f9d7636c6988a5a0bd3825518335d
[ "MIT" ]
1
2018-10-24T05:48:27.000Z
2018-10-24T05:52:14.000Z
src/cpp/2016-12-4-BestTimetoBuyandSellStock/Code13-122BestTimetoBuyandSellStock2.cpp
spurscoder/forTest
2ab069d6740f9d7636c6988a5a0bd3825518335d
[ "MIT" ]
null
null
null
/* Description: Say you have an array for which the ith element is the price of a given stock on day i, Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie. buy one and sell one share of the stock multiple times). However, you may not engage in multiple transactions at...
30.179487
85
0.621071
[ "object", "vector" ]
c63c87604ca1e8498aa136186892b20d9929105c
2,584
cpp
C++
modules/skshaper/src/SkShaper_primitive.cpp
CarbonROM/android_external_skqp
72c9856641fddcfe46a1c2287550604061f1eefd
[ "BSD-3-Clause" ]
1
2019-04-04T19:37:54.000Z
2019-04-04T19:37:54.000Z
modules/skshaper/src/SkShaper_primitive.cpp
CarbonROM/android_external_skqp
72c9856641fddcfe46a1c2287550604061f1eefd
[ "BSD-3-Clause" ]
null
null
null
modules/skshaper/src/SkShaper_primitive.cpp
CarbonROM/android_external_skqp
72c9856641fddcfe46a1c2287550604061f1eefd
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkShaper.h" #include "SkFontMetrics.h" #include "SkStream.h" #include "SkTo.h" #include "SkTypeface.h" struct SkShaper::Impl { sk_sp<SkTypeface> fTypeface; }; ...
31.13253
95
0.617647
[ "shape" ]
c63e0bd9aa51b0c99ab37af64fe2777081e9e2d7
8,739
hpp
C++
include/recompression.hpp
christopherosthues/recompression
1932cc5aa77a533d9994dbe0c80dbb889a4d25ec
[ "ECL-2.0", "Apache-2.0" ]
5
2019-07-18T12:48:14.000Z
2022-01-04T13:54:13.000Z
include/recompression.hpp
christopherosthues/recompression
1932cc5aa77a533d9994dbe0c80dbb889a4d25ec
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
include/recompression.hpp
christopherosthues/recompression
1932cc5aa77a533d9994dbe0c80dbb889a4d25ec
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#pragma once #include <memory> #include "recompression/defs.hpp" #include "recompression/recompression.hpp" #include "recompression/fast_recompression.hpp" #include "recompression/parallel_ls_recompression.hpp" #include "recompression/parallel_gr_recompression.hpp" #include "recompression/experimental/parallel_lock_r...
40.458333
149
0.697792
[ "vector" ]
c6449494efc5f4f13b7d6ed2176c601933b5dd7f
2,018
cpp
C++
source/core/source/core/gl/opengles2/GLES2_ShaderLoader.cpp
NiklasReiche/yage
f4a2dfb2bf584884e45d2751da21a13c15631e98
[ "MIT" ]
null
null
null
source/core/source/core/gl/opengles2/GLES2_ShaderLoader.cpp
NiklasReiche/yage
f4a2dfb2bf584884e45d2751da21a13c15631e98
[ "MIT" ]
2
2020-11-12T18:17:42.000Z
2020-11-12T18:18:05.000Z
source/core/source/core/gl/opengles2/GLES2_ShaderLoader.cpp
NiklasReiche/yage
f4a2dfb2bf584884e45d2751da21a13c15631e98
[ "MIT" ]
null
null
null
#include "GLES2_ShaderLoader.h" namespace gles2 { GLES2_ShaderLoader::GLES2_ShaderLoader(sys::PlatformHandle* systemHandle, GLES2_Context* glContext) : systemHandle(systemHandle), glContext(glContext) {} GLES2_Shader GLES2_ShaderLoader::loadFromFile(std::string vertex_path, std::string fragment_path) { std::ve...
28.828571
100
0.700694
[ "vector" ]
c6575f1e7dfa48d27cc072cb8e2ca91c7bcdb7f4
8,115
cpp
C++
gif/src/main/cpp/GifDecoder.cpp
dandycheung/APNG4Android
b5ca5cc3e1f6c09c30be44eaaf1a74155ab060e5
[ "Apache-2.0" ]
null
null
null
gif/src/main/cpp/GifDecoder.cpp
dandycheung/APNG4Android
b5ca5cc3e1f6c09c30be44eaaf1a74155ab060e5
[ "Apache-2.0" ]
null
null
null
gif/src/main/cpp/GifDecoder.cpp
dandycheung/APNG4Android
b5ca5cc3e1f6c09c30be44eaaf1a74155ab060e5
[ "Apache-2.0" ]
null
null
null
#include <jni.h> #include <string> #include <vector> #include "common.h" #include "Reader.h" struct Slice { int *ptr_data; size_t len_data; }; void uncompressLZW( JNIEnv *env, jobject /* this */, jobject jReader, jintArray colorTable, jint transparentColorIndex, ...
34.828326
119
0.463093
[ "vector" ]
c659ea20070c5efa1293efa931798c71c2f33f9e
14,170
hpp
C++
include/imu-core/imu_3DM_GX3_25_msg.hpp
machines-in-motion/imu_core
a2708b18fd8b8d7350688c3f1e8a21e768e9e0f9
[ "BSD-3-Clause" ]
null
null
null
include/imu-core/imu_3DM_GX3_25_msg.hpp
machines-in-motion/imu_core
a2708b18fd8b8d7350688c3f1e8a21e768e9e0f9
[ "BSD-3-Clause" ]
2
2021-06-23T16:10:07.000Z
2021-07-27T14:39:08.000Z
include/imu-core/imu_3DM_GX3_25_msg.hpp
machines-in-motion/imu_core
a2708b18fd8b8d7350688c3f1e8a21e768e9e0f9
[ "BSD-3-Clause" ]
null
null
null
#ifndef IMU_3DM_GX3_25_MSG_HPP #define IMU_3DM_GX3_25_MSG_HPP #include "imu-core/imu_interface.hpp" namespace imu_core { namespace imu_3DM_GX3_25 { /** * @brief This structure defines the data type streamed by the IMU upon * setting the continuous mode. */ struct DataType{ /** * @brief The IMU ...
28.684211
85
0.641143
[ "object", "vector" ]
c660e9bf5b1dd6c8f8eac78174061678020c9b13
1,609
cpp
C++
main/binary-tree-preorder-traversal/binary-tree-preorder-traversal-fromgeneral.cpp
EliahKagan/old-practice-snapshot
1b53897eac6902f8d867c8f154ce2a489abb8133
[ "0BSD" ]
null
null
null
main/binary-tree-preorder-traversal/binary-tree-preorder-traversal-fromgeneral.cpp
EliahKagan/old-practice-snapshot
1b53897eac6902f8d867c8f154ce2a489abb8133
[ "0BSD" ]
null
null
null
main/binary-tree-preorder-traversal/binary-tree-preorder-traversal-fromgeneral.cpp
EliahKagan/old-practice-snapshot
1b53897eac6902f8d867c8f154ce2a489abb8133
[ "0BSD" ]
null
null
null
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: vector<int> preorderTraversal(const TreeNode* root); }; namespace { template<typename FPre...
28.22807
79
0.502175
[ "vector" ]
c66108ab8809c754f430de9f3fc4d0c7f246ba9e
4,072
cpp
C++
Source/Sentry/Private/IOS/Infrastructure/SentryConvertorsIOS.cpp
getsentry/sentry-unreal
052690dd2773cc45fe56d67c677c451e596c86d8
[ "MIT" ]
6
2022-03-03T17:09:23.000Z
2022-03-25T11:53:18.000Z
Source/Sentry/Private/IOS/Infrastructure/SentryConvertorsIOS.cpp
getsentry/sentry-unreal
052690dd2773cc45fe56d67c677c451e596c86d8
[ "MIT" ]
2
2022-03-18T14:35:42.000Z
2022-03-22T18:25:41.000Z
Source/Sentry/Private/IOS/Infrastructure/SentryConvertorsIOS.cpp
getsentry/sentry-unreal
052690dd2773cc45fe56d67c677c451e596c86d8
[ "MIT" ]
null
null
null
// Copyright (c) 2022 Sentry. All Rights Reserved. #include "SentryConvertorsIOS.h" #include "SentryScope.h" #include "SentryId.h" #include "SentryDefines.h" #include "IOS/SentryScopeIOS.h" #include "IOS/SentryIdIOS.h" SentryLevel SentryConvertorsIOS::SentryLevelToNative(ESentryLevel level) { SentryLevel nativeLeve...
23.402299
98
0.751965
[ "object" ]
c6648a763654bf439706f68508cfc5ae81b09e2b
10,910
cc
C++
libtransport/src/auth/verifier.cc
manang/hicn
006c9aec768d5ff80fed0bf36cc51990f7fa1d8e
[ "Apache-2.0" ]
null
null
null
libtransport/src/auth/verifier.cc
manang/hicn
006c9aec768d5ff80fed0bf36cc51990f7fa1d8e
[ "Apache-2.0" ]
null
null
null
libtransport/src/auth/verifier.cc
manang/hicn
006c9aec768d5ff80fed0bf36cc51990f7fa1d8e
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2017-2021 Cisco and/or its affiliates. * 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 appl...
32.470238
80
0.736664
[ "object", "vector" ]
c669f77d50fc85917d2eec24faba14e80b9721a6
2,586
cpp
C++
src/atcoder/apg4b/apg4b_ai/main_0.cpp
kzmsh/compete
5cbe8062689a10bd81c97612b800fd434d93aa3f
[ "MIT" ]
null
null
null
src/atcoder/apg4b/apg4b_ai/main_0.cpp
kzmsh/compete
5cbe8062689a10bd81c97612b800fd434d93aa3f
[ "MIT" ]
null
null
null
src/atcoder/apg4b/apg4b_ai/main_0.cpp
kzmsh/compete
5cbe8062689a10bd81c97612b800fd434d93aa3f
[ "MIT" ]
null
null
null
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { { vector<int> a = {3, 1, 5, 6, 7, 2, 4}; auto iter_1 = a.begin(); iter_1 = iter_1 + 2; auto iter_2 = iter_1 + 4; cout << *iter_1 << endl; cout << *iter_2 << endl; } ...
23.509091
84
0.402552
[ "vector" ]
c66c04ff852b3a6e3f716aba4eb5a6efcd991119
172
cc
C++
SME_RF24Communicator/SME_HomeControl/SME_Remote/RF24_Addon.cc
Stephan1973/SME_RF24Communicator
9ab34def08d4b04e7294519c48b982040126338c
[ "MIT" ]
null
null
null
SME_RF24Communicator/SME_HomeControl/SME_Remote/RF24_Addon.cc
Stephan1973/SME_RF24Communicator
9ab34def08d4b04e7294519c48b982040126338c
[ "MIT" ]
null
null
null
SME_RF24Communicator/SME_HomeControl/SME_Remote/RF24_Addon.cc
Stephan1973/SME_RF24Communicator
9ab34def08d4b04e7294519c48b982040126338c
[ "MIT" ]
null
null
null
#include <node.h> #include "RF24_Wrapper.h" using namespace v8; void InitAll(Handle<Object> exports) { RF24_Wrapper::Init(exports); } NODE_MODULE(RF24_Addon, InitAll)
15.636364
38
0.75
[ "object" ]
c66d564861282ac952cff0a71dcf471b35ad5ccc
22,735
cpp
C++
tests/old/redist.cpp
tpeterka/decaf
ad6ad823070793bfd7fc8d9384d5475f7cf20848
[ "BSD-3-Clause" ]
1
2019-05-10T02:50:50.000Z
2019-05-10T02:50:50.000Z
tests/old/redist.cpp
tpeterka/decaf
ad6ad823070793bfd7fc8d9384d5475f7cf20848
[ "BSD-3-Clause" ]
2
2020-10-28T03:44:51.000Z
2021-01-18T19:49:33.000Z
tests/old/redist.cpp
tpeterka/decaf
ad6ad823070793bfd7fc8d9384d5475f7cf20848
[ "BSD-3-Clause" ]
2
2018-08-31T14:02:47.000Z
2020-04-17T16:01:54.000Z
//--------------------------------------------------------------------------- // // example of redistribution with FFS (not supported anymore) // // Matthieu Dreher // Argonne National Laboratory // 9700 S. Cass Ave. // Argonne, IL 60439 // mdreher@anl.gov // //----------------------------------------------------------...
32.294034
145
0.576248
[ "object", "vector" ]
c671e150da78d72f546d9153ea0cbdda1ebcdcfc
10,484
cpp
C++
source/lightgrp.cpp
acekiller/povray
ae6837fb8625bb9ca00830f8871c90c87dd21b75
[ "Zlib" ]
1
2015-06-21T05:27:57.000Z
2015-06-21T05:27:57.000Z
source/lightgrp.cpp
binji/povray
ae6837fb8625bb9ca00830f8871c90c87dd21b75
[ "Zlib" ]
null
null
null
source/lightgrp.cpp
binji/povray
ae6837fb8625bb9ca00830f8871c90c87dd21b75
[ "Zlib" ]
null
null
null
/******************************************************************************* * lightgrp.cpp * * Implements light group utility functions. * * from Persistence of Vision Ray Tracer ('POV-Ray') version 3.7. * Copyright 1991-2003 Persistence of Vision Team * Copyright 2003-2009 Persistence of Vision Raytracer P...
33.388535
126
0.64937
[ "object", "shape", "vector" ]
c673b4a09d0d1d70f53583f92d70b9bc9f83da5e
1,760
cpp
C++
lib/analysis/ReachingDefinitions/ReachingDefinitions.cpp
davidhofman/dg
cf304a691f7063f638bd4edb66f2d8e65ccad2ec
[ "MIT" ]
1
2019-09-16T07:36:46.000Z
2019-09-16T07:36:46.000Z
lib/analysis/ReachingDefinitions/ReachingDefinitions.cpp
davidhofman/dg
cf304a691f7063f638bd4edb66f2d8e65ccad2ec
[ "MIT" ]
null
null
null
lib/analysis/ReachingDefinitions/ReachingDefinitions.cpp
davidhofman/dg
cf304a691f7063f638bd4edb66f2d8e65ccad2ec
[ "MIT" ]
null
null
null
#include <set> #include "dg/analysis/ReachingDefinitions/RDMap.h" #include "dg/analysis/ReachingDefinitions/ReachingDefinitions.h" namespace dg { namespace analysis { namespace rd { RDNode UNKNOWN_MEMLOC; RDNode *UNKNOWN_MEMORY = &UNKNOWN_MEMLOC; bool ReachingDefinitionsAnalysis::processNode(RDNode *node) { boo...
28.852459
101
0.55
[ "vector" ]
c6852270578043d5ef4c2f7f28e2b4f61d861344
3,901
hpp
C++
library/network/broker/client.hpp
msiampou/distributed-fault-tolerant-kv-store
26dd701ef133c8f463b364e085773b551dfb98ce
[ "MIT" ]
7
2021-04-17T18:47:36.000Z
2022-03-24T13:09:21.000Z
library/network/broker/client.hpp
msiampou/efficient-kv-store
26dd701ef133c8f463b364e085773b551dfb98ce
[ "MIT" ]
null
null
null
library/network/broker/client.hpp
msiampou/efficient-kv-store
26dd701ef133c8f463b364e085773b551dfb98ce
[ "MIT" ]
null
null
null
#ifndef _LIBRARY_NETWORK_BROKER_CLIENT_HPP_ #define _LIBRARY_NETWORK_BROKER_CLIENT_HPP_ #include <iostream> #include <string> #include <random> #include "../socket/socket.hpp" /// Client class represents the broker. Broker connects to the available /// servers and communicates with them through sockets. Broker is re...
37.509615
99
0.58908
[ "vector" ]
c689e7f622363e681398f8abc382c5ece467a117
15,271
cpp
C++
Modules/Classification/CLCore/src/mitkAbstractGlobalImageFeature.cpp
SVRTK/MITK
52252d60e42702e292d188e30f6717fe50c23962
[ "BSD-3-Clause" ]
null
null
null
Modules/Classification/CLCore/src/mitkAbstractGlobalImageFeature.cpp
SVRTK/MITK
52252d60e42702e292d188e30f6717fe50c23962
[ "BSD-3-Clause" ]
null
null
null
Modules/Classification/CLCore/src/mitkAbstractGlobalImageFeature.cpp
SVRTK/MITK
52252d60e42702e292d188e30f6717fe50c23962
[ "BSD-3-Clause" ]
null
null
null
/*============================================================================ The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center (DKFZ) All rights reserved. Use of this source code is governed by a 3-clause BSD license that can be found in the LICENSE file. =================...
37.8933
218
0.677821
[ "vector" ]
c69071c0bb77539538006f1aa52de6c0b0f721c1
92,729
cpp
C++
HopsanGUI/GUIObjects/GUISystem.cpp
mjfwest/hopsan
77a0a1e69fd9588335b7e932f348972186cbdf6f
[ "Apache-2.0" ]
null
null
null
HopsanGUI/GUIObjects/GUISystem.cpp
mjfwest/hopsan
77a0a1e69fd9588335b7e932f348972186cbdf6f
[ "Apache-2.0" ]
null
null
null
HopsanGUI/GUIObjects/GUISystem.cpp
mjfwest/hopsan
77a0a1e69fd9588335b7e932f348972186cbdf6f
[ "Apache-2.0" ]
null
null
null
/*----------------------------------------------------------------------------- Copyright 2017 Hopsan Group 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 Licen...
42.751959
316
0.658305
[ "object", "vector", "model" ]
c6920ce4e2fc599b43071d7a2d9c3292e13f50c9
108
cpp
C++
src/model/Model.cpp
picardb/QtRemoteTestClient
d14665e7f3615df7078931b4ee7276549835023e
[ "MIT" ]
null
null
null
src/model/Model.cpp
picardb/QtRemoteTestClient
d14665e7f3615df7078931b4ee7276549835023e
[ "MIT" ]
null
null
null
src/model/Model.cpp
picardb/QtRemoteTestClient
d14665e7f3615df7078931b4ee7276549835023e
[ "MIT" ]
null
null
null
#include "Model.h" /* * Components definitions */ Network Model::m_network; Control Model::m_control;
12
26
0.703704
[ "model" ]
578deb598c847266d0d8083a3a79640204e851bd
4,560
cpp
C++
SOLVER/src/models3D/ocean_load/StructuredGridO3D.cpp
nicklinyi/AxiSEM-3D
cd11299605cd6b92eb867d4109d2e6a8f15e6b4d
[ "MIT" ]
8
2020-06-05T01:13:20.000Z
2022-02-24T05:11:50.000Z
SOLVER/src/models3D/ocean_load/StructuredGridO3D.cpp
nicklinyi/AxiSEM-3D
cd11299605cd6b92eb867d4109d2e6a8f15e6b4d
[ "MIT" ]
24
2020-10-21T19:03:38.000Z
2021-11-17T21:32:02.000Z
SOLVER/src/models3D/ocean_load/StructuredGridO3D.cpp
nicklinyi/AxiSEM-3D
cd11299605cd6b92eb867d4109d2e6a8f15e6b4d
[ "MIT" ]
5
2020-06-21T11:54:22.000Z
2021-06-23T01:02:39.000Z
// // StructuredGridO3D.cpp // AxiSEM3D // // Created by Kuangdai Leng on 4/15/20. // Copyright © 2020 Kuangdai Leng. All rights reserved. // // 3D ocean-load models based on structured grid #include "StructuredGridO3D.hpp" // constructor StructuredGridO3D:: StructuredGridO3D(const std::string &modelName, const...
34.80916
76
0.556798
[ "vector", "3d" ]
5796e10a9d415fcc0a15c2d2eeec67c1bc56f779
24,836
cc
C++
chrome/browser/importer/firefox_importer_utils.cc
bluebellzhy/chromium
008c4fef2676506869a0404239da31e83fd6ccc7
[ "BSD-3-Clause" ]
1
2016-05-08T15:35:17.000Z
2016-05-08T15:35:17.000Z
chrome/browser/importer/firefox_importer_utils.cc
bluebellzhy/chromium
008c4fef2676506869a0404239da31e83fd6ccc7
[ "BSD-3-Clause" ]
null
null
null
chrome/browser/importer/firefox_importer_utils.cc
bluebellzhy/chromium
008c4fef2676506869a0404239da31e83fd6ccc7
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2006-2008 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 "chrome/browser/importer/firefox_importer_utils.h" #include <shlobj.h> #include "base/file_util.h" #include "base/logging.h" #include ...
33.744565
80
0.664398
[ "object", "vector" ]
579a632942adaa580f65635942cf173961b67f74
42,623
cpp
C++
Dark Basic Public Shared/Dark Basic Pro SDK/Shared/Multiplayer/CMultiplayerC.cpp
domydev/Dark-Basic-Pro
237fd8d859782cb27b9d5994f3c34bc5372b6c04
[ "MIT" ]
231
2018-01-28T00:06:56.000Z
2022-03-31T21:39:56.000Z
Dark Basic Public Shared/Dark Basic Pro SDK/Shared/Multiplayer/CMultiplayerC.cpp
domydev/Dark-Basic-Pro
237fd8d859782cb27b9d5994f3c34bc5372b6c04
[ "MIT" ]
9
2016-02-10T10:46:16.000Z
2017-12-06T17:27:51.000Z
Dark Basic Public Shared/Dark Basic Pro SDK/Shared/Multiplayer/CMultiplayerC.cpp
domydev/Dark-Basic-Pro
237fd8d859782cb27b9d5994f3c34bc5372b6c04
[ "MIT" ]
66
2018-01-28T21:54:52.000Z
2022-02-16T22:50:57.000Z
// // Multiplayer DLL // ////////////////////////////////////////////////////////////////////////////////// // INCLUDES / LIBS /////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////// #ifdef DARKSDK_COMPILE #pragma comment ( li...
24.723318
144
0.696971
[ "mesh" ]
579d18d5db5a320f2346b6048981c7d1b8ad2ecb
5,409
cpp
C++
2015/day22/p1/main.cpp
jbaldwin/adventofcode2019
bdc333330dd5e36458a49f0b7cd64d462c9988c7
[ "MIT" ]
null
null
null
2015/day22/p1/main.cpp
jbaldwin/adventofcode2019
bdc333330dd5e36458a49f0b7cd64d462c9988c7
[ "MIT" ]
null
null
null
2015/day22/p1/main.cpp
jbaldwin/adventofcode2019
bdc333330dd5e36458a49f0b7cd64d462c9988c7
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <string> #include <optional> #include <set> #include <map> #include <lib/file_util.hpp> #include <chain/chain.hpp> struct Spell { Spell( std::string _name, int64_t _mana_cost, int64_t _hp, int64_t _mp, int64_t _dmg, int...
25.635071
91
0.530043
[ "vector" ]
579f16ed30a2de4fd3045296b9c2e02f8fd82030
2,186
cpp
C++
Codeforces/B_String_Problem.cpp
ANONYMOUS609/Competitive-Programming
d3753eeee24a660963f1d8911bf887c8f41f5677
[ "MIT" ]
2
2019-01-30T12:45:18.000Z
2021-05-06T19:02:51.000Z
Codeforces/B_String_Problem.cpp
ANONYMOUS609/Competitive-Programming
d3753eeee24a660963f1d8911bf887c8f41f5677
[ "MIT" ]
null
null
null
Codeforces/B_String_Problem.cpp
ANONYMOUS609/Competitive-Programming
d3753eeee24a660963f1d8911bf887c8f41f5677
[ "MIT" ]
3
2020-10-02T15:42:04.000Z
2022-03-27T15:14:16.000Z
#include<bits/stdc++.h> using namespace std; #define fast ios::sync_with_stdio(false);cin.tie(0) #define pb push_back #define digit(x) floor(log10(x))+1 #define mod 1000000007 #define endl "\n" #define int long long #define matrix vector<vector<int> > #define vi vector<int> #define pii pair<int,inr> #define vs vector<s...
25.418605
90
0.381519
[ "vector" ]
579fdaaef7f561c081cdc2f9f6b0e994e429b907
836
cpp
C++
source/universe/systems/node_renderer.cpp
tkgamegroup/flame
f1628100cc66e13f84ea3047ea33af019caeb01b
[ "MIT" ]
25
2018-02-28T05:59:50.000Z
2022-03-18T03:11:52.000Z
source/universe/systems/node_renderer.cpp
tkgamegroup/flame
f1628100cc66e13f84ea3047ea33af019caeb01b
[ "MIT" ]
null
null
null
source/universe/systems/node_renderer.cpp
tkgamegroup/flame
f1628100cc66e13f84ea3047ea33af019caeb01b
[ "MIT" ]
5
2018-05-17T04:16:30.000Z
2021-12-22T04:02:02.000Z
#include "node_renderer_private.h" namespace flame { int sNodeRendererPrivate::set_mesh_res(int idx, graphics::Mesh* mesh) { return -1; } int sNodeRendererPrivate::find_mesh_res(graphics::Mesh* mesh) const { return -1; } uint sNodeRendererPrivate::add_mesh_transform(const mat4& mat, const mat3& nor) { ...
19
91
0.748804
[ "mesh" ]
57abda7aed3bfbe16a2b5b50ee98ee5c83da1fc4
2,735
cpp
C++
src/codegen/model_builder.cpp
annosoo/nncase
898bd4075a0f246bca7b62a912051af3d890aff4
[ "Apache-2.0" ]
1
2021-07-29T11:50:27.000Z
2021-07-29T11:50:27.000Z
src/codegen/model_builder.cpp
annosoo/nncase
898bd4075a0f246bca7b62a912051af3d890aff4
[ "Apache-2.0" ]
3
2021-05-27T06:08:30.000Z
2021-06-02T10:39:35.000Z
src/codegen/model_builder.cpp
annosoo/nncase
898bd4075a0f246bca7b62a912051af3d890aff4
[ "Apache-2.0" ]
null
null
null
/* Copyright 2019-2021 Canaan Inc. * * 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...
30.388889
98
0.69543
[ "model" ]
57b214abc9c744c90369943c39412e64e5138e41
10,746
cpp
C++
problem-solver/cxx/rulesApplicationModule/model/StatementsCheckResult.cpp
NikitaZotov/ostis-inference
6c5c7ca37668e6b22ba1cf261101e12e1e46589d
[ "Apache-2.0" ]
null
null
null
problem-solver/cxx/rulesApplicationModule/model/StatementsCheckResult.cpp
NikitaZotov/ostis-inference
6c5c7ca37668e6b22ba1cf261101e12e1e46589d
[ "Apache-2.0" ]
null
null
null
problem-solver/cxx/rulesApplicationModule/model/StatementsCheckResult.cpp
NikitaZotov/ostis-inference
6c5c7ca37668e6b22ba1cf261101e12e1e46589d
[ "Apache-2.0" ]
null
null
null
/* * This source file is part of an OSTIS project. For the latest info, see http://ostis.net * Distributed under the MIT License * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT) */ #include "StatementsCheckResult.hpp" #include <sc-memory/sc_addr.hpp> #include <sc-agents-common/utils...
33.899054
120
0.751722
[ "vector" ]
57b4979b6c5a10f1e37e95af779afba539cf8962
1,028
cpp
C++
RenderEngine/geometry_instance/Transform.cpp
igui/OppositeRenderer
2442741792b3f0f426025c2015002694fab692eb
[ "MIT" ]
9
2016-06-25T15:52:05.000Z
2020-01-15T17:31:49.000Z
RenderEngine/geometry_instance/Transform.cpp
igui/OppositeRenderer
2442741792b3f0f426025c2015002694fab692eb
[ "MIT" ]
null
null
null
RenderEngine/geometry_instance/Transform.cpp
igui/OppositeRenderer
2442741792b3f0f426025c2015002694fab692eb
[ "MIT" ]
2
2018-10-17T18:33:37.000Z
2022-03-14T20:17:30.000Z
/* * Copyright (c) 2013 Opposite Renderer * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ #include "Transform.h" Transform::Transform() { this->arr[0] = 1; this->arr[1] = 0; this->arr[2] = 0; this->arr[3] = 0; ...
21.416667
78
0.567121
[ "transform" ]
57c02f26f393f80b4b9c88fc2363bc2e96bc35f7
1,286
cpp
C++
USACOTasks/Section 3.4 Raucous Rockers/rockers.cpp
zombiecry/AlgorithmPractice
f42933883bd62a86aeef9740356f5010c6c9bebf
[ "MIT" ]
null
null
null
USACOTasks/Section 3.4 Raucous Rockers/rockers.cpp
zombiecry/AlgorithmPractice
f42933883bd62a86aeef9740356f5010c6c9bebf
[ "MIT" ]
null
null
null
USACOTasks/Section 3.4 Raucous Rockers/rockers.cpp
zombiecry/AlgorithmPractice
f42933883bd62a86aeef9740356f5010c6c9bebf
[ "MIT" ]
null
null
null
/* ID: yezhiyo1 PROG: rockers LANG: C++ */ #include <iostream> #include <fstream> #include <sstream> #include <vector> #include <queue> #include <stack> #include <map> #include <set> #include <string> #include <algorithm> #include <cmath> #include <memory.h> using namespace std; ifstream fin("rockers.in"); ofstream fou...
16.701299
52
0.561431
[ "vector" ]
57c729e634d893ef860609f72545e1d9b9d72066
4,117
cpp
C++
src/tcp/server/server.cpp
adsniper-tech/rtb_perf_servers
5052177fe93ea30db4bde353e81c95ccd9fe6562
[ "Apache-2.0" ]
null
null
null
src/tcp/server/server.cpp
adsniper-tech/rtb_perf_servers
5052177fe93ea30db4bde353e81c95ccd9fe6562
[ "Apache-2.0" ]
null
null
null
src/tcp/server/server.cpp
adsniper-tech/rtb_perf_servers
5052177fe93ea30db4bde353e81c95ccd9fe6562
[ "Apache-2.0" ]
null
null
null
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com /* * Copyright (c) 2019, AdSniper, Oleg Romanenko (oleg@romanenko.ro) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may ...
27.446667
106
0.580034
[ "vector" ]
57c93a9a8e498805ff400f37e0bc1769233a8c0e
829
hpp
C++
src/whenifier.hpp
gregdionne/mcbasic
bdf8892068bab7dc552b92e473b835721ef0c354
[ "MIT" ]
5
2021-02-02T18:44:13.000Z
2022-03-08T16:53:09.000Z
src/whenifier.hpp
gregdionne/mcbasic
bdf8892068bab7dc552b92e473b835721ef0c354
[ "MIT" ]
6
2021-01-28T04:38:48.000Z
2021-04-05T03:06:33.000Z
src/whenifier.hpp
gregdionne/mcbasic
bdf8892068bab7dc552b92e473b835721ef0c354
[ "MIT" ]
3
2021-01-18T04:13:25.000Z
2021-10-29T23:25:49.000Z
// Copyright (C) 2022 Greg Dionne // Distributed under MIT License #ifndef WHENIFIER_HPP #define WHENIFIER_HPP #include "program.hpp" // replace IF .. THEN GOTO/GOSUB at end of line // with WHEN .. GOTO/GOSUB // // This provides a hint to the compiler that // the alternate branch can be omitted in favor // of fallthr...
21.815789
61
0.727382
[ "vector" ]
57cac0c19b974ac44367d9c1fa633e160cdddc71
3,917
cpp
C++
src/lib/graphics/graphics/DrawLine.cpp
Adnn/Graphics
335d54bdbb5d8d6042c9adfb9e47ccb14f612cf8
[ "MIT" ]
null
null
null
src/lib/graphics/graphics/DrawLine.cpp
Adnn/Graphics
335d54bdbb5d8d6042c9adfb9e47ccb14f612cf8
[ "MIT" ]
null
null
null
src/lib/graphics/graphics/DrawLine.cpp
Adnn/Graphics
335d54bdbb5d8d6042c9adfb9e47ccb14f612cf8
[ "MIT" ]
null
null
null
#include "DrawLine.h" #include "shaders.h" #include <renderer/Error.h> #include <renderer/Uniforms.h> #include <renderer/VertexSpecification.h> namespace ad { namespace graphics { namespace { // // Per vertex data // struct VertexData { Position2<GLfloat> mPosition; }; const...
27.978571
121
0.64769
[ "render" ]
57d5e1d62c2a42b301663a09dd29bddea97e0af6
30,141
cpp
C++
src/Reservoir.cpp
necst/Echobay
923e16f796d5019daa039a5b131061270746d429
[ "Apache-2.0" ]
9
2019-09-04T15:10:14.000Z
2021-09-21T10:14:33.000Z
src/Reservoir.cpp
necst/Echobay
923e16f796d5019daa039a5b131061270746d429
[ "Apache-2.0" ]
null
null
null
src/Reservoir.cpp
necst/Echobay
923e16f796d5019daa039a5b131061270746d429
[ "Apache-2.0" ]
null
null
null
#include "Reservoir.hpp" #include "Eigen/StdVector" #include "Quantizer.hpp" #ifdef USE_TBB #ifndef COUT_MU tbb::mutex cout_mutex; #endif #endif using namespace std::chrono; using namespace Eigen; using namespace Spectra; class WrException: public std::exception { virtual const char* what() const throw() { ...
30.693483
167
0.605919
[ "object", "vector" ]
57dd84752261292b4b326842d6e12d9e77e2954f
3,438
cpp
C++
Engine/src/Source/Common/Core/Game.cpp
DanielParra159/EngineAndGame
45af7439633054aa6c9a8e75dd0453f9ce297626
[ "CC0-1.0" ]
1
2017-04-08T14:33:04.000Z
2017-04-08T14:33:04.000Z
Engine/src/Source/Common/Core/Game.cpp
DanielParra159/EngineAndGame
45af7439633054aa6c9a8e75dd0453f9ce297626
[ "CC0-1.0" ]
1
2017-04-05T01:56:28.000Z
2017-04-05T01:56:28.000Z
Engine/src/Source/Common/Core/Game.cpp
DanielParra159/EngineAndGame
45af7439633054aa6c9a8e75dd0453f9ce297626
[ "CC0-1.0" ]
null
null
null
#include "Core/Game.h" #include "Core/GameDescription.h" #include "Core/IGameState.h" #include "Core/Log.h" #include "System/Time.h" #include "Graphics/RenderManager.h" #include "Input/InputManager.h" #include "UI/MenuManager.h" #include "Audio/AudioManager.h" #include "IO/FileSystem.h" #include...
21.898089
126
0.668121
[ "render" ]
57ddacc875bc675eb1d04786c7d20f3d5882fc2c
72,976
cpp
C++
3rd_party_libs/chai3d-2.1/src/files/CFileLoader3DS.cpp
atp42/jks-ros-pkg
367fc00f2a9699f33d05c7957d319a80337f1ed4
[ "FTL" ]
3
2017-02-02T13:27:45.000Z
2018-06-17T11:52:13.000Z
3rd_party_libs/chai3d-2.1/src/files/CFileLoader3DS.cpp
salisbury-robotics/jks-ros-pkg
367fc00f2a9699f33d05c7957d319a80337f1ed4
[ "FTL" ]
null
null
null
3rd_party_libs/chai3d-2.1/src/files/CFileLoader3DS.cpp
salisbury-robotics/jks-ros-pkg
367fc00f2a9699f33d05c7957d319a80337f1ed4
[ "FTL" ]
null
null
null
//=========================================================================== /* This file is part of the CHAI 3D visualization and haptics libraries. Copyright (C) 2003-2010 by CHAI 3D. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms o...
27.008142
98
0.428908
[ "mesh", "object", "vector", "3d" ]
57e3416bd494660d89a4b9ae857c520084c313bf
3,557
cpp
C++
src/examples/mc_att_control_multiplatform/mc_att_control_main.cpp
wms124/PX4_1.4.1_Back-up
9d6d903a8f46346281ae11104c47f1904da05e37
[ "BSD-3-Clause" ]
69
2016-05-05T10:59:40.000Z
2021-06-15T07:58:43.000Z
src/examples/mc_att_control_multiplatform/mc_att_control_main.cpp
wms124/PX4_1.4.1_Back-up
9d6d903a8f46346281ae11104c47f1904da05e37
[ "BSD-3-Clause" ]
30
2015-01-01T19:52:52.000Z
2016-03-14T15:44:06.000Z
src/examples/mc_att_control_multiplatform/mc_att_control_main.cpp
wms124/PX4_1.4.1_Back-up
9d6d903a8f46346281ae11104c47f1904da05e37
[ "BSD-3-Clause" ]
347
2015-01-01T08:13:46.000Z
2016-03-21T01:13:55.000Z
/**************************************************************************** * * Copyright (c) 2013, 2014 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. Re...
45.025316
129
0.732359
[ "vector" ]
57e4c15f3cc5637b2d00174c06b6da0898aa2522
9,178
cpp
C++
src/mongo/db/pipeline/process_interface/common_process_interface.cpp
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
src/mongo/db/pipeline/process_interface/common_process_interface.cpp
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
src/mongo/db/pipeline/process_interface/common_process_interface.cpp
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
/** * Copyright (C) 2018-present MongoDB, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the Server Side Public License, version 1, * as published by MongoDB, Inc. * * This program is distributed in the hope that it will be useful, * but W...
42.294931
100
0.694923
[ "vector" ]
57e7c27a1aeeb229713384e2ce4880ee70fe21e2
8,616
cpp
C++
test/performance-regression/full-apps/qmcpack/src/QMCWaveFunctions/Fermion/DiracDeterminantIterative.cpp
JKChenFZ/hclib
50970656ac133477c0fbe80bb674fe88a19d7177
[ "BSD-3-Clause" ]
55
2015-07-28T01:32:58.000Z
2022-02-27T16:27:46.000Z
test/performance-regression/full-apps/qmcpack/src/QMCWaveFunctions/Fermion/DiracDeterminantIterative.cpp
JKChenFZ/hclib
50970656ac133477c0fbe80bb674fe88a19d7177
[ "BSD-3-Clause" ]
66
2015-06-15T20:38:19.000Z
2020-08-26T00:11:43.000Z
test/performance-regression/full-apps/qmcpack/src/QMCWaveFunctions/Fermion/DiracDeterminantIterative.cpp
JKChenFZ/hclib
50970656ac133477c0fbe80bb674fe88a19d7177
[ "BSD-3-Clause" ]
26
2015-10-26T22:11:51.000Z
2021-03-02T22:09:15.000Z
////////////////////////////////////////////////////////////////// // (c) Copyright 1998-2002,2003- by Jeongnim Kim ////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// // Jeongnim Kim // National Center for Supercomputing Applications...
30.020906
208
0.63533
[ "vector" ]
57ee4311229acf610e4941f29dda9483b41067a1
13,324
cc
C++
centreon-engine/tests/downtimes/downtime_finder.cc
centreon/centreon-collect
e63fc4d888a120d588a93169e7d36b360616bdee
[ "Unlicense" ]
8
2020-07-26T09:12:02.000Z
2022-03-30T17:24:29.000Z
centreon-engine/tests/downtimes/downtime_finder.cc
centreon/centreon-collect
e63fc4d888a120d588a93169e7d36b360616bdee
[ "Unlicense" ]
47
2020-06-18T12:11:37.000Z
2022-03-16T10:28:56.000Z
centreon-engine/tests/downtimes/downtime_finder.cc
centreon/centreon-collect
e63fc4d888a120d588a93169e7d36b360616bdee
[ "Unlicense" ]
5
2020-06-29T14:22:02.000Z
2022-03-17T10:34:10.000Z
/* ** Copyright 2016 Centreon ** ** This file is part of Centreon Engine. ** ** Centreon Engine is free software: you can redistribute it and/or ** modify it under the terms of the GNU General Public License version 2 ** as published by the Free Software Foundation. ** ** Centreon Engine is distributed in the hope that...
42.56869
80
0.740693
[ "object" ]
57fc6e5aca84bb301130b6737765729b59766a42
3,382
hpp
C++
core/include/ast.hpp
BaronKhan/gitgudcommit
cfc5f20339c61f3928871bea375608f7eefb8138
[ "MIT" ]
1
2021-02-22T15:06:39.000Z
2021-02-22T15:06:39.000Z
core/include/ast.hpp
BaronKhan/gitgudcommit
cfc5f20339c61f3928871bea375608f7eefb8138
[ "MIT" ]
null
null
null
core/include/ast.hpp
BaronKhan/gitgudcommit
cfc5f20339c61f3928871bea375608f7eefb8138
[ "MIT" ]
1
2021-02-22T15:06:41.000Z
2021-02-22T15:06:41.000Z
#ifndef AST_HPP_ #define AST_HPP_ #include <string> #include <vector> #include <utility> namespace GitGud { class MessageNode; enum NodeType { SUMMARY, BLANK, BODY, POINT }; // Stores the internal representation of a commit message as a vector of nodes class Ast { private: std::v...
24.686131
83
0.596393
[ "vector" ]
57ff95cd409ca05f325be1992ec737ece954448f
14,406
cpp
C++
src/asiAlgo/interop/asiAlgo_ReadSTEPWithMeta.cpp
sasobadovinac/AnalysisSitus
304d39c64258d4fcca888eb8e68144eca50e785a
[ "BSD-3-Clause" ]
3
2021-11-04T01:36:56.000Z
2022-03-10T07:11:01.000Z
src/asiAlgo/interop/asiAlgo_ReadSTEPWithMeta.cpp
sasobadovinac/AnalysisSitus
304d39c64258d4fcca888eb8e68144eca50e785a
[ "BSD-3-Clause" ]
null
null
null
src/asiAlgo/interop/asiAlgo_ReadSTEPWithMeta.cpp
sasobadovinac/AnalysisSitus
304d39c64258d4fcca888eb8e68144eca50e785a
[ "BSD-3-Clause" ]
1
2021-09-25T18:14:30.000Z
2021-09-25T18:14:30.000Z
//----------------------------------------------------------------------------- // Created on: 02 June 2019 //----------------------------------------------------------------------------- // Copyright (c) 2019-present, Sergey Slyadnev // All rights reserved. // // Redistribution and use in source and binary forms, with...
35.482759
123
0.597806
[ "shape", "model" ]
648e2aa551a4fdb97ff2a2e9aaeecb59554ccbfe
1,763
hh
C++
isaac_variant_caller/src/lib/blt_util/vcf_record.hh
sequencing/isaac_variant_caller
ed24e20b097ee04629f61014d3b81a6ea902c66b
[ "BSL-1.0" ]
21
2015-01-09T01:11:28.000Z
2019-09-04T03:48:21.000Z
isaac_variant_caller/src/lib/blt_util/vcf_record.hh
sequencing/isaac_variant_caller
ed24e20b097ee04629f61014d3b81a6ea902c66b
[ "BSL-1.0" ]
4
2015-07-23T09:38:39.000Z
2018-02-01T05:37:26.000Z
isaac_variant_caller/src/lib/blt_util/vcf_record.hh
sequencing/isaac_variant_caller
ed24e20b097ee04629f61014d3b81a6ea902c66b
[ "BSL-1.0" ]
13
2015-01-29T16:41:26.000Z
2021-06-25T02:42:32.000Z
// -*- mode: c++; indent-tabs-mode: nil; -*- // // Copyright (c) 2009-2013 Illumina, Inc. // // This software is provided under the terms and conditions of the // Illumina Open Source Software License 1. // // You should have received a copy of the Illumina Open Source // Software License 1 along with this program. If ...
22.0375
67
0.583097
[ "vector" ]
64a302a6847209fc64ccf1d89185883818f3677b
2,778
cc
C++
tests/plm_test.cc
dlekkas/comm_detect
65a4acc49668d7973104129c39b1eb5dc6445145
[ "Apache-2.0" ]
null
null
null
tests/plm_test.cc
dlekkas/comm_detect
65a4acc49668d7973104129c39b1eb5dc6445145
[ "Apache-2.0" ]
1
2020-11-30T06:24:43.000Z
2020-11-30T06:24:43.000Z
tests/plm_test.cc
dlekkas/comm_detect
65a4acc49668d7973104129c39b1eb5dc6445145
[ "Apache-2.0" ]
1
2020-05-17T11:55:12.000Z
2020-05-17T11:55:12.000Z
#include "../include/graph.h" #include "../include/plm.h" #include "../include/modularity.h" #include <vector> #include <sys/time.h> #include <omp.h> #include <chrono> #include <math.h> int main(int argc, char* argv[]) { if (argc != 2) { std::cerr << "Usage: " << argv[0] << " <input-file>" << std::endl; std::exi...
30.195652
112
0.565875
[ "vector" ]
64a40fe6404b1cbb576d6a84685bcc31ba884954
6,254
hpp
C++
Phoenix/Client/Include/Client/Graphics/ShaderPipeline.hpp
NicolasRicard/Phoenix
5eae2bd716a933fd405487d93c0e91e5ca56b3e4
[ "BSD-3-Clause" ]
1
2020-05-02T14:46:39.000Z
2020-05-02T14:46:39.000Z
Phoenix/Client/Include/Client/Graphics/ShaderPipeline.hpp
NicolasRicard/Phoenix
5eae2bd716a933fd405487d93c0e91e5ca56b3e4
[ "BSD-3-Clause" ]
null
null
null
Phoenix/Client/Include/Client/Graphics/ShaderPipeline.hpp
NicolasRicard/Phoenix
5eae2bd716a933fd405487d93c0e91e5ca56b3e4
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2019-20 Genten Studios // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, // this list of conditions and the following disclai...
33.98913
80
0.713303
[ "render", "vector" ]
64a6c6b185c988a4ae17c58603da8e9f1c76a00c
7,204
cc
C++
GeneratorInterface/Pythia8Interface/src/Py8InterfaceBase.cc
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
GeneratorInterface/Pythia8Interface/src/Py8InterfaceBase.cc
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
GeneratorInterface/Pythia8Interface/src/Py8InterfaceBase.cc
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
#include "GeneratorInterface/Pythia8Interface/interface/Py8InterfaceBase.h" #include "FWCore/Utilities/interface/Exception.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" // EvtGen plugin // //#include "Pythia8Plugins/EvtGen.h" using namespace Pythia8; namespace gen { Py8InterfaceBase::Py8InterfaceBas...
35.487685
141
0.66935
[ "vector" ]
64a7ea843aa0a7764a7c183e29b49cda66d9e32d
1,331
cpp
C++
aws-cpp-sdk-storagegateway/source/model/DescribeNFSFileSharesResult.cpp
Neusoft-Technology-Solutions/aws-sdk-cpp
88c041828b0dbee18a297c3cfe98c5ecd0706d0b
[ "Apache-2.0" ]
1
2022-01-05T18:20:03.000Z
2022-01-05T18:20:03.000Z
aws-cpp-sdk-storagegateway/source/model/DescribeNFSFileSharesResult.cpp
Neusoft-Technology-Solutions/aws-sdk-cpp
88c041828b0dbee18a297c3cfe98c5ecd0706d0b
[ "Apache-2.0" ]
1
2022-01-03T23:59:37.000Z
2022-01-03T23:59:37.000Z
aws-cpp-sdk-storagegateway/source/model/DescribeNFSFileSharesResult.cpp
ravindra-wagh/aws-sdk-cpp
7d5ff01b3c3b872f31ca98fb4ce868cd01e97696
[ "Apache-2.0" ]
1
2021-11-09T11:58:03.000Z
2021-11-09T11:58:03.000Z
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/storagegateway/model/DescribeNFSFileSharesResult.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/AmazonWebServiceResult.h> #include <aws/core/utils/StringUtils.h> #...
30.25
146
0.788881
[ "model" ]
64b5a836a819b87d109ea75d17aa70e6d2e18168
18,292
cpp
C++
libakumuli/queryprocessor.cpp
vladon/Akumuli
c45672a23b929ccb3a5743cc5e9aae980c160eb0
[ "Apache-2.0" ]
null
null
null
libakumuli/queryprocessor.cpp
vladon/Akumuli
c45672a23b929ccb3a5743cc5e9aae980c160eb0
[ "Apache-2.0" ]
null
null
null
libakumuli/queryprocessor.cpp
vladon/Akumuli
c45672a23b929ccb3a5743cc5e9aae980c160eb0
[ "Apache-2.0" ]
1
2021-09-22T07:11:13.000Z
2021-09-22T07:11:13.000Z
/** * Copyright (c) 2015 Eugene Lazin <4lazin@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
33.501832
121
0.564892
[ "vector" ]
64b66c735e98f244a1a9de2ba97ff2b149dfff41
3,550
hpp
C++
include/net/seda/stage.hpp
izenecloud/izenelib
9d5958100e2ce763fc75f27217adf982d7c9d902
[ "Apache-2.0" ]
31
2015-03-03T19:13:42.000Z
2020-09-03T08:11:56.000Z
include/net/seda/stage.hpp
izenecloud/izenelib
9d5958100e2ce763fc75f27217adf982d7c9d902
[ "Apache-2.0" ]
1
2016-12-24T00:12:11.000Z
2016-12-24T00:12:11.000Z
include/net/seda/stage.hpp
izenecloud/izenelib
9d5958100e2ce763fc75f27217adf982d7c9d902
[ "Apache-2.0" ]
8
2015-09-06T01:55:21.000Z
2021-12-20T02:16:13.000Z
/* * ===================================================================================== * * Filename: stage.hpp * * Description: * * Version: 1.0 * Created: 12/28/2012 05:09:07 PM * Revision: none * Compiler: gcc * * Author: Kevin Hu (), kevin.hu@b5m.com ...
21.257485
88
0.48169
[ "vector" ]
64b9b821d2cc113dbddf906403e55fedd7db7c5a
2,997
hpp
C++
src/Enzo/enzo_EnzoEOSIdeal.hpp
aoife-flood/enzo-e
ab8ebc4716fff22bed9f692daf0472ae6ffffe73
[ "BSD-3-Clause" ]
26
2019-02-12T19:39:13.000Z
2022-03-31T01:52:29.000Z
src/Enzo/enzo_EnzoEOSIdeal.hpp
aoife-flood/enzo-e
ab8ebc4716fff22bed9f692daf0472ae6ffffe73
[ "BSD-3-Clause" ]
128
2019-02-13T20:22:30.000Z
2022-03-29T20:21:00.000Z
src/Enzo/enzo_EnzoEOSIdeal.hpp
aoife-flood/enzo-e
ab8ebc4716fff22bed9f692daf0472ae6ffffe73
[ "BSD-3-Clause" ]
29
2019-02-12T19:37:51.000Z
2022-03-14T14:02:45.000Z
// See LICENSE_CELLO file for license and copyright information /// @file enzo_EnzoEOSIdeal.hpp /// @author Matthew Abruzzo (matthewabruzzo@gmail.com) /// @date Thurs May 2 2019 /// @brief [\ref Enzo] Implementation of the equation of state for an ideal /// adiabatic gas #ifndef ENZO_ENZO_EOS_IDEAL_HPP #...
31.547368
78
0.724057
[ "object" ]
64bbafe5d6161c0bda1b0e01f08c33188de87d27
1,592
cpp
C++
c++/leetcode/1473-Paint_House_III-H.cpp
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
1
2020-03-02T10:56:22.000Z
2020-03-02T10:56:22.000Z
c++/leetcode/1473-Paint_House_III-H.cpp
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
null
null
null
c++/leetcode/1473-Paint_House_III-H.cpp
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
null
null
null
class Solution { public: int minCost(vector<int>& houses, vector<vector<int>>& cost, int m, int n, int target) { vector<int> data(m * n * target, INT_MAX); auto dp = [&](int i, int j, int k) ->int&{ return data[i * n * target + k * n + j]; }; for (int i = 0; i < ...
37.023256
91
0.284548
[ "vector" ]
64c727674cd7c5d03372e038bfb5139d7fedf136
1,968
cpp
C++
uri/1148.cpp
bryanoliveira/programming-marathon
071e3e6898f9b10cabbf4ed0d8ba1c5fbbf3fac4
[ "MIT" ]
null
null
null
uri/1148.cpp
bryanoliveira/programming-marathon
071e3e6898f9b10cabbf4ed0d8ba1c5fbbf3fac4
[ "MIT" ]
null
null
null
uri/1148.cpp
bryanoliveira/programming-marathon
071e3e6898f9b10cabbf4ed0d8ba1c5fbbf3fac4
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define N 510 using namespace std; bool adj[N][N]; int main() { long n, e; cin >> n >> e; while(n != 0 || e != 0) { map<long, vector<pair<long, long> > > graph; // i -> adjascentes (no, hora) for(long i = 0; i <= n; i++) { for(long j = 0; j <= n...
25.230769
105
0.362297
[ "vector" ]
64d0e77f1b74cea32b90e061c3eb010d87ed49ac
669
cpp
C++
238 Product of Array Except Self.cpp
akash2099/LeetCode-Problems
74c346146ca5ba2336d1e8d6dc26e3cd8920cb25
[ "MIT" ]
1
2021-11-14T01:06:38.000Z
2021-11-14T01:06:38.000Z
238 Product of Array Except Self.cpp
akash2099/LeetCode-Problems
74c346146ca5ba2336d1e8d6dc26e3cd8920cb25
[ "MIT" ]
null
null
null
238 Product of Array Except Self.cpp
akash2099/LeetCode-Problems
74c346146ca5ba2336d1e8d6dc26e3cd8920cb25
[ "MIT" ]
null
null
null
static int fastio=[](){ std::ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); return 0; }(); class Solution { public: vector<int> productExceptSelf(vector<int>& nums) { // Time: O(n), Space: O(1) int n=nums.size(); vector<int>res(n,1); // initialize all by one ...
24.777778
54
0.487294
[ "vector" ]
64d40736f4cd93a86cc38f96ad6aef0b71cb06e3
3,910
cpp
C++
src/bounce/cloth/contacts/cloth_particle_triangle_contact.cpp
demiurgestudios/bounce
9f8dcae52a074ba76088da9c94471366f6e4ca8f
[ "Zlib" ]
26
2020-02-10T19:28:00.000Z
2021-09-23T22:36:37.000Z
src/bounce/cloth/contacts/cloth_particle_triangle_contact.cpp
demiurgestudios/bounce
9f8dcae52a074ba76088da9c94471366f6e4ca8f
[ "Zlib" ]
null
null
null
src/bounce/cloth/contacts/cloth_particle_triangle_contact.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...
21.843575
76
0.626343
[ "geometry" ]
64db50fb6f2db1d2eda9be523d8376ac6ea11c73
12,500
cpp
C++
src/RcsGui/MatNdWidget.cpp
smanschi/Rcs
a54980a44c7fb0e925b091cd3c29297e940af39c
[ "BSD-4-Clause" ]
null
null
null
src/RcsGui/MatNdWidget.cpp
smanschi/Rcs
a54980a44c7fb0e925b091cd3c29297e940af39c
[ "BSD-4-Clause" ]
null
null
null
src/RcsGui/MatNdWidget.cpp
smanschi/Rcs
a54980a44c7fb0e925b091cd3c29297e940af39c
[ "BSD-4-Clause" ]
null
null
null
/******************************************************************************* Copyright (c) 2017, Honda Research Institute Europe GmbH. 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. R...
29.069767
80
0.4596
[ "vector" ]
64ef4896330a102eedea22c9dc09936bfadc80a7
4,881
cpp
C++
Almost Hero/Motor2D/j1Particles.cpp
RedPillStudios/AlmostHeroes
edf05b6561dfd6028c07d513d589c309f5cd0c54
[ "MIT" ]
1
2019-01-21T10:54:49.000Z
2019-01-21T10:54:49.000Z
Almost Hero/Motor2D/j1Particles.cpp
RedPillStudios/AlmostHeroes
edf05b6561dfd6028c07d513d589c309f5cd0c54
[ "MIT" ]
1
2019-01-04T13:06:38.000Z
2019-01-04T13:08:36.000Z
Almost Hero/Motor2D/j1Particles.cpp
RedPillStudios/AlmostHeroes
edf05b6561dfd6028c07d513d589c309f5cd0c54
[ "MIT" ]
1
2018-12-31T16:15:57.000Z
2018-12-31T16:15:57.000Z
#include "j1App.h" #include "j1Textures.h" #include "j1Render.h" #include "j1Particles.h" #include "j1Scene.h" #include "SDL/include/SDL_timer.h" j1Particles::j1Particles() { name.create("Particles"); for (uint i = 0; i < MAX_ACTIVE_PARTICLES; ++i) active[i] = nullptr; } j1Particles::~j1Particles() {} bool j1...
23.809756
164
0.669125
[ "render" ]
64f4bd8444b73f532ab0905a71808825856ad59f
352
cpp
C++
C++ Programs/flatten tree.cpp
Anshhdeep/Hacktoberfest2020-Expert
8745380deb626d1a06faf5a60ca37081aaeab426
[ "MIT" ]
77
2020-10-01T10:06:59.000Z
2021-11-08T08:57:18.000Z
C++ Programs/flatten tree.cpp
Anshhdeep/Hacktoberfest2020-Expert
8745380deb626d1a06faf5a60ca37081aaeab426
[ "MIT" ]
46
2020-09-27T04:55:36.000Z
2021-05-14T18:49:06.000Z
C++ Programs/flatten tree.cpp
Anshhdeep/Hacktoberfest2020-Expert
8745380deb626d1a06faf5a60ca37081aaeab426
[ "MIT" ]
327
2020-09-26T17:06:03.000Z
2021-10-09T06:04:39.000Z
int timer = 0; void dfs(int v, int par){ entr[v] = timer++; for(auto u: adj[v]) { if (u == par) continue; dfs(u, v); } ext[v] = timer++; } vector<long long> flattenedTree(2*n); for(int u = 0; u < n; u++) { flattenedTree[entr[u]] = s[u]; flattened...
20.705882
42
0.440341
[ "vector" ]
64f8b4013ad2c0731c2af4739b83b241d8dfb4fc
7,559
cpp
C++
SpaceshIT!/SpaceshIT!/Player.cpp
ColdSpotYZ/SpaceshIT
8fe2dcdd202536b5127e14a140c5f833720b1eeb
[ "MIT" ]
null
null
null
SpaceshIT!/SpaceshIT!/Player.cpp
ColdSpotYZ/SpaceshIT
8fe2dcdd202536b5127e14a140c5f833720b1eeb
[ "MIT" ]
null
null
null
SpaceshIT!/SpaceshIT!/Player.cpp
ColdSpotYZ/SpaceshIT
8fe2dcdd202536b5127e14a140c5f833720b1eeb
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "Player.h" void Player::initVariables() { this->health = this->max_health; this->speed = this->max_speed; this->attackCoolDownMax = 10.f; this->attackCoolDown = this->attackCoolDownMax; this->ammo = this->max_ammo; } Player::Player() { this->initVariables(); } Player::Player(char*...
25.029801
183
0.631168
[ "render" ]
64fa739a393853a6c60034a84ced61b91bcb81c4
6,341
cpp
C++
test/advisor_test.cpp
NigoroJr/erlang-b-model
f282a1b88729008f29804d26b5bf7065f83a5845
[ "MIT" ]
null
null
null
test/advisor_test.cpp
NigoroJr/erlang-b-model
f282a1b88729008f29804d26b5bf7065f83a5845
[ "MIT" ]
null
null
null
test/advisor_test.cpp
NigoroJr/erlang-b-model
f282a1b88729008f29804d26b5bf7065f83a5845
[ "MIT" ]
null
null
null
#define BOOST_TEST_MODULE AdvisorTest #include <boost/test/unit_test.hpp> #include "Advisor.h" #include "Event.h" #include "Link.h" #include <boost/graph/adjacency_list.hpp> #include <boost/graph/breadth_first_search.hpp> #include <boost/graph/graph_traits.hpp> #include <boost/graph/visitors.hpp> #include <vector> ...
26.09465
68
0.620091
[ "vector" ]
64fdd966578d07bf1292fe9ab03d2e86a1b8405a
1,151
hpp
C++
include/lib/Engine/Rendering/Particles.hpp
edisonlee0212/UniEngine
62278ae811235179e6a1c24eb35acf73e400fe28
[ "BSD-3-Clause" ]
22
2020-05-18T02:37:09.000Z
2022-03-13T18:44:30.000Z
include/lib/Engine/Rendering/Particles.hpp
edisonlee0212/UniEngine
62278ae811235179e6a1c24eb35acf73e400fe28
[ "BSD-3-Clause" ]
null
null
null
include/lib/Engine/Rendering/Particles.hpp
edisonlee0212/UniEngine
62278ae811235179e6a1c24eb35acf73e400fe28
[ "BSD-3-Clause" ]
3
2020-12-21T01:21:03.000Z
2021-09-06T08:07:41.000Z
#pragma once #include <Material.hpp> #include <Mesh.hpp> #include <Scene.hpp> namespace UniEngine { class UNIENGINE_API ParticleMatrices : ISerializable{ std::shared_ptr<OpenGLUtils::GLVBO> m_buffer; bool m_bufferReady = false; friend class Mesh; friend class SkinnedMesh; public: ParticleMatrices...
28.073171
84
0.725456
[ "mesh", "vector" ]
8f015d78082610bbb775caab949749a1634df613
1,017
cpp
C++
src/mm/fmm/ubodt_gen_app.cpp
jczaplew/fmm
e325196f355b6c7674d1846401fb14b0d9203301
[ "Apache-2.0" ]
null
null
null
src/mm/fmm/ubodt_gen_app.cpp
jczaplew/fmm
e325196f355b6c7674d1846401fb14b0d9203301
[ "Apache-2.0" ]
null
null
null
src/mm/fmm/ubodt_gen_app.cpp
jczaplew/fmm
e325196f355b6c7674d1846401fb14b0d9203301
[ "Apache-2.0" ]
null
null
null
// // Created by Can Yang on 2020/4/1. // #include "mm/fmm/ubodt_gen_app.hpp" #include "mm/fmm/ubodt_gen_algorithm.hpp" #include "network/network.hpp" #include "network/network_graph.hpp" #include <boost/archive/binary_oarchive.hpp> #include "util/debug.hpp" #include <omp.h> using namespace FMM; using namespace FMM::...
30.818182
79
0.717797
[ "model" ]
5582c8925789b604485aa54bba6148ffd8a8d3be
1,254
cpp
C++
UVA/10226 - Hardwood Species.cpp
knroy/Competitive-Programming
5c03b1f4d15bdd1d4ba30a39464b42a7ded59e29
[ "Apache-2.0" ]
null
null
null
UVA/10226 - Hardwood Species.cpp
knroy/Competitive-Programming
5c03b1f4d15bdd1d4ba30a39464b42a7ded59e29
[ "Apache-2.0" ]
null
null
null
UVA/10226 - Hardwood Species.cpp
knroy/Competitive-Programming
5c03b1f4d15bdd1d4ba30a39464b42a7ded59e29
[ "Apache-2.0" ]
1
2019-08-07T15:26:19.000Z
2019-08-07T15:26:19.000Z
#include <vector> #include <list> #include <map> #include <set> #include <deque> #include <queue> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <iostream> #include <iomanip> #include <cstdio> #include <cmat...
20.9
57
0.485646
[ "vector" ]
5582e7de52940b4b912054fa10538f385a2ea79f
4,099
cpp
C++
src/data/RtElementAccess.cpp
satra/murfi2
95d954a8735c107caae2ab4eec2926fafe420402
[ "Apache-2.0" ]
7
2015-02-10T17:00:49.000Z
2021-07-27T22:09:43.000Z
src/data/RtElementAccess.cpp
satra/murfi2
95d954a8735c107caae2ab4eec2926fafe420402
[ "Apache-2.0" ]
11
2015-02-22T19:15:53.000Z
2021-08-04T17:26:18.000Z
src/data/RtElementAccess.cpp
satra/murfi2
95d954a8735c107caae2ab4eec2926fafe420402
[ "Apache-2.0" ]
8
2015-07-06T22:31:51.000Z
2019-04-22T21:22:07.000Z
/*========================================================================= * RtElementAccess.cpp defines a class that can retreive and set elements in * RtDataImages of double or short template type * * Copyright 2007-2013, the MURFI dev team. * * Licensed under the Apache License, Version 2.0 (the "License"...
27.326667
77
0.659917
[ "vector" ]
5589f614f3c6a533be13d17a7e118d86df1c15e8
7,810
cpp
C++
source/code/providers/Container_Process_Class_Provider.cpp
DalavanCloud/Docker-Provider
cd7db76c87100205338fe6710425d905e3d9b8d5
[ "MIT" ]
1
2018-09-30T04:46:51.000Z
2018-09-30T04:46:51.000Z
source/code/providers/Container_Process_Class_Provider.cpp
DalavanCloud/Docker-Provider
cd7db76c87100205338fe6710425d905e3d9b8d5
[ "MIT" ]
null
null
null
source/code/providers/Container_Process_Class_Provider.cpp
DalavanCloud/Docker-Provider
cd7db76c87100205338fe6710425d905e3d9b8d5
[ "MIT" ]
null
null
null
/* @migen@ */ #include <MI.h> #include "Container_Process_Class_Provider.h" #include <vector> #include <string> #include <cstdlib> #include <syslog.h> #include <sstream> #include "../cjson/cJSON.h" #include "../dockerapi/DockerRemoteApi.h" #include "../dockerapi/DockerRestHelper.h" using namespace std; MI_BEGIN_NAME...
29.360902
106
0.635595
[ "object", "vector" ]
558b5d7ada8f47b02fa990e4db4685e451b219b4
8,472
cpp
C++
src/projects/compute_shader/src/main.cpp
computersarecool/opengl_examples
658196529420dcdded5436ef4a118cb4a3bc9b2c
[ "MIT" ]
8
2020-01-09T13:19:12.000Z
2022-02-10T02:44:21.000Z
src/projects/compute_shader/src/main.cpp
computersarecool/opengl_examples
658196529420dcdded5436ef4a118cb4a3bc9b2c
[ "MIT" ]
null
null
null
src/projects/compute_shader/src/main.cpp
computersarecool/opengl_examples
658196529420dcdded5436ef4a118cb4a3bc9b2c
[ "MIT" ]
1
2021-03-16T03:54:39.000Z
2021-03-16T03:54:39.000Z
// This renders a cube to an FBO then uses a compute shader to invert that image // It uses Image load/store to write the image #include <memory> #include <vector> #include "glm/glm/gtc/matrix_transform.hpp" #include "base_app.h" #include "glsl_program.h" #include "camera.h" // Cube vertices static const GLfloat c...
38.334842
185
0.697002
[ "render", "vector" ]
558c511cfc0a80a42ba8d62a342116da7303d499
4,788
hpp
C++
include/CL/sycl/kernel/detail/opencl_kernel.hpp
infinitesnow/InceptionCL
e3d3a6218e551d42dfcead4f121cec294d50d85c
[ "Unlicense" ]
2
2017-10-05T13:13:41.000Z
2019-05-15T19:20:49.000Z
include/CL/sycl/kernel/detail/opencl_kernel.hpp
infinitesnow/InceptionCL
e3d3a6218e551d42dfcead4f121cec294d50d85c
[ "Unlicense" ]
null
null
null
include/CL/sycl/kernel/detail/opencl_kernel.hpp
infinitesnow/InceptionCL
e3d3a6218e551d42dfcead4f121cec294d50d85c
[ "Unlicense" ]
null
null
null
#ifndef TRISYCL_SYCL_KERNEL_DETAIL_OPENCL_KERNEL_HPP #define TRISYCL_SYCL_KERNEL_DETAIL_OPENCL_KERNEL_HPP /** \file The OpenCL SYCL kernel Ronan at Keryell point FR This file is distributed under the University of Illinois Open Source License. See LICENSE.TXT for details. */ #ifdef TRISYCL_OPENCL #inclu...
29.925
78
0.620301
[ "object" ]
558f46c9871e1d744461a98f8ce0b66f2d6b8c19
3,231
hpp
C++
src/metaspades/src/common/toolchain/subgraph_utils.hpp
STRIDES-Codes/Exploring-the-Microbiome-
bd29c8c74d8f40a58b63db28815acb4081f20d6b
[ "MIT" ]
null
null
null
src/metaspades/src/common/toolchain/subgraph_utils.hpp
STRIDES-Codes/Exploring-the-Microbiome-
bd29c8c74d8f40a58b63db28815acb4081f20d6b
[ "MIT" ]
null
null
null
src/metaspades/src/common/toolchain/subgraph_utils.hpp
STRIDES-Codes/Exploring-the-Microbiome-
bd29c8c74d8f40a58b63db28815acb4081f20d6b
[ "MIT" ]
2
2021-06-05T07:40:20.000Z
2021-06-05T08:02:58.000Z
//*************************************************************************** //* Copyright (c) 2018 Saint Petersburg State University //* Copyright (c) 2019 University of Warwick //* All Rights Reserved //* See file LICENSE for details. //*************************************************************************** #pr...
38.464286
148
0.597957
[ "vector" ]