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
664848fb8f44b96fcea5688c0c6f738780c5c718
1,494
cpp
C++
boboleetcode/Play-Leetcode-master/1240-Tiling-a-Rectangle-with-the-Fewest-Squares/cpp-1240/main.cpp
yaominzh/CodeLrn2019
adc727d92904c5c5d445a2621813dfa99474206d
[ "Apache-2.0" ]
2
2021-03-25T05:26:55.000Z
2021-04-20T03:33:24.000Z
boboleetcode/Play-Leetcode-master/1240-Tiling-a-Rectangle-with-the-Fewest-Squares/cpp-1240/main.cpp
mcuallen/CodeLrn2019
adc727d92904c5c5d445a2621813dfa99474206d
[ "Apache-2.0" ]
6
2019-12-04T06:08:32.000Z
2021-05-10T20:22:47.000Z
boboleetcode/Play-Leetcode-master/1240-Tiling-a-Rectangle-with-the-Fewest-Squares/cpp-1240/main.cpp
mcuallen/CodeLrn2019
adc727d92904c5c5d445a2621813dfa99474206d
[ "Apache-2.0" ]
null
null
null
/// Source : https://leetcode.com/problems/tiling-a-rectangle-with-the-fewest-squares/ /// Author : liuyubobobo /// Time : 2019-10-26 #include <iostream> #include <vector> #include <map> using namespace std; /// Memory Searrch with Special case check /// Time Complexity: O(n * m) /// Space Complexity: O(n * m) cl...
23.34375
86
0.492637
[ "vector" ]
66487cf30acdc29525baf42a1216db6bab3e56a7
1,515
cpp
C++
3 term/1/D/game.cpp
alexkats/Discrete-Math
dd4edd9ff9322e319d162d56567b9d81a6636373
[ "Unlicense" ]
null
null
null
3 term/1/D/game.cpp
alexkats/Discrete-Math
dd4edd9ff9322e319d162d56567b9d81a6636373
[ "Unlicense" ]
null
null
null
3 term/1/D/game.cpp
alexkats/Discrete-Math
dd4edd9ff9322e319d162d56567b9d81a6636373
[ "Unlicense" ]
null
null
null
#include <iostream> #include <fstream> #include <sstream> #include <string> #include <cstring> #include <cstdio> #include <cstdlib> #include <cmath> #include <vector> #include <algorithm> #include <set> #include <bitset> #include <map> #include <ctime> #include <cctype> #include <cassert> #include <memory> #include <st...
17.022472
59
0.570297
[ "vector" ]
664b4cf5b158b68a3dbb7a19157b9e6c1a68907d
1,177
hpp
C++
include/ambi/array.hpp
mardsix/ambi
b94a628e9015b7ce35bda82f60f7ded777564bad
[ "BSL-1.0" ]
null
null
null
include/ambi/array.hpp
mardsix/ambi
b94a628e9015b7ce35bda82f60f7ded777564bad
[ "BSL-1.0" ]
null
null
null
include/ambi/array.hpp
mardsix/ambi
b94a628e9015b7ce35bda82f60f7ded777564bad
[ "BSL-1.0" ]
null
null
null
// Copyright Marjan Drndarevski 2019 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md // or copy at http://boost.org/LICENSE_1_0.txt) #ifndef __FUNDAMENTAL_H__ #define __FUNDAMENTAL_H__ #include <vector> #define BOOST_NO_AUTO_PTR #define BOOST_PYTHON_STATIC_LIB #inc...
22.207547
64
0.648258
[ "vector" ]
5941df9f5405f2bda64dbceca55b1970836f1779
658
cpp
C++
HackerRank/2D Arrays - DS.cpp
lucaswilliamgomes/QuestionsCompetitiveProgramming
f0a2cf42bb5a00e5d677b7f3211ac399fe2bf6a0
[ "MIT" ]
null
null
null
HackerRank/2D Arrays - DS.cpp
lucaswilliamgomes/QuestionsCompetitiveProgramming
f0a2cf42bb5a00e5d677b7f3211ac399fe2bf6a0
[ "MIT" ]
null
null
null
HackerRank/2D Arrays - DS.cpp
lucaswilliamgomes/QuestionsCompetitiveProgramming
f0a2cf42bb5a00e5d677b7f3211ac399fe2bf6a0
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int hourglassSum(vector<vector<int>> arr) { int ans = -INFINITY; for (int i = 0; i < 6; i++){ for (int j = 0; j < 6; j++){ if (i <= 3 and j <= 3){ ans = max (ans, (arr[i][j] + arr[i][j+1] + arr[i][j+2] + arr[i+1][j+1] + arr[i+2...
19.352941
135
0.410334
[ "vector" ]
594658d45c1a752287a9ac364c1ca8fb3a5db60b
13,904
cpp
C++
modules/SofaUserInteraction/SleepController.cpp
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
modules/SofaUserInteraction/SleepController.cpp
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
modules/SofaUserInteraction/SleepController.cpp
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
#include <SofaUserInteraction/SleepController.h> #include <sofa/core/behavior/MechanicalState.h> #include <sofa/core/collision/Contact.h> #include <sofa/core/collision/ContactManager.h> #include <sofa/core/ObjectFactory.h> #include <sofa/simulation/AnimateBeginEvent.h> #include <sofa/simulation/AnimateEndEvent.h> #inc...
33.342926
194
0.728999
[ "object", "vector" ]
594bf4809ff749b9536dca69392e64ec7e8a7f75
9,370
cxx
C++
alg/teca_l2_norm.cxx
mhaseeb123/TECA
4233bac9dd2a86da3848ae088b462b4544b3ddc7
[ "BSD-3-Clause-LBNL" ]
null
null
null
alg/teca_l2_norm.cxx
mhaseeb123/TECA
4233bac9dd2a86da3848ae088b462b4544b3ddc7
[ "BSD-3-Clause-LBNL" ]
null
null
null
alg/teca_l2_norm.cxx
mhaseeb123/TECA
4233bac9dd2a86da3848ae088b462b4544b3ddc7
[ "BSD-3-Clause-LBNL" ]
null
null
null
#include "teca_l2_norm.h" #include "teca_cartesian_mesh.h" #include "teca_array_collection.h" #include "teca_variant_array.h" #include "teca_metadata.h" #include <algorithm> #include <iostream> #include <string> #include <set> #include <cmath> #if defined(TECA_HAS_BOOST) #include <boost/program_options.hpp> #endif ...
28.480243
85
0.606083
[ "mesh", "vector" ]
594d46e16d23364f9d6100bee762e948a068eb55
1,578
cpp
C++
aws-cpp-sdk-lexv2-models/source/model/BuildBotLocaleResult.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2022-02-12T08:09:30.000Z
2022-02-12T08:09:30.000Z
aws-cpp-sdk-lexv2-models/source/model/BuildBotLocaleResult.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2021-10-14T16:57:00.000Z
2021-10-18T10:47:24.000Z
aws-cpp-sdk-lexv2-models/source/model/BuildBotLocaleResult.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/lexv2-models/model/BuildBotLocaleResult.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/AmazonWebServiceResult.h> #include <aws/core/utils/StringUtils.h> #include <...
23.552239
113
0.750951
[ "model" ]
5954d8a9619d0f8055a0c86f5906509e27a8ffac
1,214
cpp
C++
test/algorithm/TestMerge.cpp
zahirtezcan/sticks
89e645e5347d923ab14a0c4e82739ab6080ead14
[ "MIT" ]
null
null
null
test/algorithm/TestMerge.cpp
zahirtezcan/sticks
89e645e5347d923ab14a0c4e82739ab6080ead14
[ "MIT" ]
null
null
null
test/algorithm/TestMerge.cpp
zahirtezcan/sticks
89e645e5347d923ab14a0c4e82739ab6080ead14
[ "MIT" ]
null
null
null
#include <stx/algorithm/Merge.h> #include <gtest/gtest.h> #include <vector> #include <iterator> TEST(Merge, Empty) { std::vector<int> v; std::vector<int> u; std::vector<int> o; stx::Merge(v.begin(), v.end(), u.begin(), u.end(), std::back_inserter(o)); EXPECT_TRUE(o.empty()); } TEST(Merge, EmptyFirst...
19.901639
53
0.579077
[ "vector" ]
595685a4bd3af6e13dbadc9d055495d78af9951c
13,189
cpp
C++
src/ObjectUtils/LinuxMap.cpp
ioperations/orbit
c7935085023cce1abb70ce96dd03339f47a1c826
[ "BSD-2-Clause" ]
716
2017-09-22T11:50:40.000Z
2020-03-14T21:52:22.000Z
src/ObjectUtils/LinuxMap.cpp
ioperations/orbit
c7935085023cce1abb70ce96dd03339f47a1c826
[ "BSD-2-Clause" ]
132
2017-09-24T11:48:18.000Z
2020-03-17T17:39:45.000Z
src/ObjectUtils/LinuxMap.cpp
ioperations/orbit
c7935085023cce1abb70ce96dd03339f47a1c826
[ "BSD-2-Clause" ]
49
2017-09-23T10:23:59.000Z
2020-03-14T09:27:49.000Z
// Copyright (c) 2020 The Orbit 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 "ObjectUtils/LinuxMap.h" #include <absl/strings/match.h> #include <absl/strings/str_format.h> #include <absl/strings/str_split.h> #include <al...
43.817276
100
0.716203
[ "object", "vector" ]
595dd20b968d0ec0379d5b491c56a7d10101d63d
5,838
cc
C++
src/swganh/tre/readers/datatable_reader.cc
JohnShandy/swganh
d20d22a8dca2e9220a35af0f45f7935ca2eda531
[ "MIT" ]
1
2015-03-25T16:02:17.000Z
2015-03-25T16:02:17.000Z
src/swganh/tre/readers/datatable_reader.cc
JohnShandy/swganh
d20d22a8dca2e9220a35af0f45f7935ca2eda531
[ "MIT" ]
null
null
null
src/swganh/tre/readers/datatable_reader.cc
JohnShandy/swganh
d20d22a8dca2e9220a35af0f45f7935ca2eda531
[ "MIT" ]
null
null
null
// This file is part of SWGANH which is released under the MIT license. // See file LICENSE or go to http://swganh.com/LICENSE #include "datatable_reader.h" #include <cstring> #include <algorithm> #include <stdexcept> #include <iterator> #include <boost/lexical_cast.hpp> #include "anh/utilities.h" using namespace ...
23.445783
96
0.628983
[ "vector", "transform" ]
596e65de105668083cb3868e248aca15bc735af3
2,391
cpp
C++
src/builtin/filesystem/evaluator/FileReadBytesFunctionExpressionEvaluator.cpp
benhj/arrow
a88caec0bcf44f70343d6f8d3a4be5790d903ddb
[ "MIT" ]
19
2019-12-10T07:35:08.000Z
2021-09-27T11:49:37.000Z
src/builtin/filesystem/evaluator/FileReadBytesFunctionExpressionEvaluator.cpp
benhj/arrow
a88caec0bcf44f70343d6f8d3a4be5790d903ddb
[ "MIT" ]
22
2020-02-09T15:39:53.000Z
2020-03-02T19:04:40.000Z
src/builtin/filesystem/evaluator/FileReadBytesFunctionExpressionEvaluator.cpp
benhj/arrow
a88caec0bcf44f70343d6f8d3a4be5790d903ddb
[ "MIT" ]
2
2020-02-17T21:20:43.000Z
2020-03-02T00:42:08.000Z
/// (c) Ben Jones 2019 - present #include "FileReadBytesFunctionExpressionEvaluator.hpp" #include "expressions/evaluator/ExpressionEvaluator.hpp" #include "parser/LanguageException.hpp" #include <utility> #include <cstdint> #include <fstream> #include <iterator> #include <stdexcept> #include <string> namespace arrow...
35.161765
92
0.624007
[ "vector" ]
596f44a90b4b6836ad550813b13d48539dc8de15
1,923
cpp
C++
Problem Solving Paradigm/Greedy/Involving Sorting (Or The Input Is Already Sorted)/10785.cpp
joe-stifler/uHunt
02465ea9868403691e4f0aaa6ddde730afa11f47
[ "MIT" ]
3
2019-05-22T00:36:23.000Z
2021-03-22T12:23:18.000Z
Problem Solving Paradigm/Greedy/Involving Sorting (Or The Input Is Already Sorted)/10785.cpp
joe-stifler/uHunt
02465ea9868403691e4f0aaa6ddde730afa11f47
[ "MIT" ]
null
null
null
Problem Solving Paradigm/Greedy/Involving Sorting (Or The Input Is Already Sorted)/10785.cpp
joe-stifler/uHunt
02465ea9868403691e4f0aaa6ddde730afa11f47
[ "MIT" ]
null
null
null
/*------------------------------------------------*/ // Uva Problem No: 10785 // Problem Name: The Mad Numerologist // Type: Involving Sorting (Greedy) // Autor: Joe Stifler // Data: 2018-06-17 02:56:36 // Runtime: 0.000s // Universidade: Unicamp /*------------------------------------------------*/ #include <bits/stdc...
24.341772
53
0.288612
[ "vector" ]
5972b20cd0910244ec1fe416ec9ace67a62bcfc5
3,371
cpp
C++
admin/wmi/wbem/providers/win32provider/common/dllcommon.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
admin/wmi/wbem/providers/win32provider/common/dllcommon.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
admin/wmi/wbem/providers/win32provider/common/dllcommon.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
//================================================================= // // DllCommon.cpp // // Copyright (c) 2000-2001 Microsoft Corporation, All Rights Reserved // //================================================================= #include "precomp.h" #include "DllCommon.h" extern HMODULE ghModule ;...
24.078571
99
0.445565
[ "object" ]
597a3dc1a4c5587c999931043e8139772dd5ca01
1,664
hpp
C++
src/error/compile_exception.hpp
mbmaier/asm-lisp
a09a1d53d324c6a2b177a02a6233cb71124fb768
[ "MIT" ]
null
null
null
src/error/compile_exception.hpp
mbmaier/asm-lisp
a09a1d53d324c6a2b177a02a6233cb71124fb768
[ "MIT" ]
null
null
null
src/error/compile_exception.hpp
mbmaier/asm-lisp
a09a1d53d324c6a2b177a02a6233cb71124fb768
[ "MIT" ]
1
2015-06-24T12:54:34.000Z
2015-06-24T12:54:34.000Z
#ifndef COMPILE_EXCEPTION_HPP_ #define COMPILE_EXCEPTION_HPP_ #include <exception> #include <utility> #include <vector> #include <stdexcept> #include <boost/variant.hpp> #include "../node_source.hpp" #include "error_kind.hpp" #include <mblib/boost_variant.hpp> namespace llvm { class Type; } struct code_location { ...
21.063291
110
0.698317
[ "vector" ]
597ff298705070356c72f7a6e22508613818c31b
614
cc
C++
zoltan/apfZoltanEmpty.cc
cwsmith/core
840fbf6ec49a63aeaa3945f11ddb224f6055ac9f
[ "BSD-3-Clause" ]
138
2015-01-05T15:50:20.000Z
2022-02-25T01:09:58.000Z
zoltan/apfZoltanEmpty.cc
cwsmith/core
840fbf6ec49a63aeaa3945f11ddb224f6055ac9f
[ "BSD-3-Clause" ]
337
2015-08-07T18:24:58.000Z
2022-03-31T14:39:03.000Z
zoltan/apfZoltanEmpty.cc
cwsmith/core
840fbf6ec49a63aeaa3945f11ddb224f6055ac9f
[ "BSD-3-Clause" ]
70
2015-01-17T00:58:41.000Z
2022-02-13T04:58:20.000Z
/* * Copyright (C) 2014 Scientific Computation Research Center * * This work is open source software, licensed under the terms of the * BSD license as described in the LICENSE file in the top-level directory. */ #include "apfZoltan.h" #include <apf.h> namespace apf { Splitter* makeZoltanSplitter(Mesh*, int, int...
19.1875
75
0.70684
[ "mesh" ]
59857ad93412fdbc19ba3bb0f37b69d69f9893ec
3,622
cpp
C++
src/09/part2/solver_09_part2.cpp
jonvuri/advent_of_code_2021
0416aa253f38545f2d943be54b2da424c9fb5eaf
[ "Unlicense" ]
null
null
null
src/09/part2/solver_09_part2.cpp
jonvuri/advent_of_code_2021
0416aa253f38545f2d943be54b2da424c9fb5eaf
[ "Unlicense" ]
null
null
null
src/09/part2/solver_09_part2.cpp
jonvuri/advent_of_code_2021
0416aa253f38545f2d943be54b2da424c9fb5eaf
[ "Unlicense" ]
null
null
null
#include <algorithm> #include <array> #include <cstddef> #include <functional> #include <sstream> #include <string> #include <utility> #include <vector> #include <doctest/doctest.h> #include "solver_09_part2.h" const static size_t MAP_SIZE = 1000; std::string Solver_09_part2::solve(std::istream &is) { std::array...
27.439394
222
0.57344
[ "vector" ]
5987a38eeee565c52668cb816a29a5d1663bfe50
16,836
cpp
C++
Engine/Source/Runtime/Niagara/Private/NiagaraConstantSet.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
null
null
null
Engine/Source/Runtime/Niagara/Private/NiagaraConstantSet.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
2
2015-06-21T17:38:11.000Z
2015-06-22T20:54:42.000Z
Engine/Source/Runtime/Niagara/Private/NiagaraConstantSet.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
null
null
null
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #include "NiagaraPrivate.h" #include "NiagaraConstantSet.h" #include "NiagaraSimulation.h" ////////////////////////////////////////////////////////////////////////// // FNiagaraConstantMap template<> struct TStructOpsTypeTraits<FNiagaraConstantMap> : publi...
35.821277
233
0.754871
[ "vector" ]
5995618e1115ef07194b81f5dc96af444e6880a7
20,686
cpp
C++
tests/Switch.Core.UnitTests/Switch/AsTest.cpp
victor-timoshin/Switch
8e8e687a8bdc4f79d482680da3968e9b3e464b8b
[ "MIT" ]
4
2020-02-11T13:22:58.000Z
2022-02-24T00:37:43.000Z
tests/Switch.Core.UnitTests/Switch/AsTest.cpp
sgf/Switch
8e8e687a8bdc4f79d482680da3968e9b3e464b8b
[ "MIT" ]
null
null
null
tests/Switch.Core.UnitTests/Switch/AsTest.cpp
sgf/Switch
8e8e687a8bdc4f79d482680da3968e9b3e464b8b
[ "MIT" ]
2
2020-02-01T02:19:01.000Z
2021-12-30T06:44:00.000Z
#include <Switch/Any.hpp> #include <Switch/As.hpp> #include <Switch/System/String.hpp> #include <gtest/gtest.h> using namespace System; namespace SwitchUnitTests { TEST(AsTest, StringAsString) { string s = "Test"; string& r = as<string>(s); GTEST_ASSERT_EQ(&s, &r); } TEST(AsTest, StringAsObject) { ...
25.922306
62
0.616359
[ "object" ]
599c2b8ccba9c9839becc024f6ec226ca94b4ca3
4,740
hpp
C++
hw/ip/kmac/dv/dpi/vendor/kerukuro_digestpp/algorithm/detail/jh_provider.hpp
asb/opentitan
af68ff5041b10c81e97adc075a4d042f8ac7ab20
[ "Apache-2.0" ]
1,375
2019-11-05T15:11:00.000Z
2022-03-28T17:50:43.000Z
hw/ip/kmac/dv/dpi/vendor/kerukuro_digestpp/algorithm/detail/jh_provider.hpp
asb/opentitan
af68ff5041b10c81e97adc075a4d042f8ac7ab20
[ "Apache-2.0" ]
7,045
2019-11-05T16:05:45.000Z
2022-03-31T23:08:08.000Z
hw/ip/kmac/dv/dpi/vendor/kerukuro_digestpp/algorithm/detail/jh_provider.hpp
asb/opentitan
af68ff5041b10c81e97adc075a4d042f8ac7ab20
[ "Apache-2.0" ]
428
2019-11-05T15:00:20.000Z
2022-03-28T15:34:57.000Z
/* This code is written by kerukuro and released into public domain. */ #ifndef DIGESTPP_PROVIDERS_JH_HPP #define DIGESTPP_PROVIDERS_JH_HPP #include "../../detail/functions.hpp" #include "../../detail/absorb_data.hpp" #include "../../detail/validate_hash_size.hpp" #include "constants/jh_constants.hpp" #include <array...
22.149533
117
0.563291
[ "transform" ]
59a12ce586e2527b222bb609e5da88758dcd169c
29,727
cpp
C++
shared/V8Helpers.cpp
xxshady/altv-js-module
64f5b23ff417b25a65d56e92fd39f28fb23dead7
[ "MIT" ]
1
2021-09-27T19:23:39.000Z
2021-09-27T19:23:39.000Z
shared/V8Helpers.cpp
xxshady/altv-js-module
64f5b23ff417b25a65d56e92fd39f28fb23dead7
[ "MIT" ]
null
null
null
shared/V8Helpers.cpp
xxshady/altv-js-module
64f5b23ff417b25a65d56e92fd39f28fb23dead7
[ "MIT" ]
null
null
null
#include "cpp-sdk/ICore.h" #include "V8ResourceImpl.h" #include "V8Helpers.h" #include <climits> bool V8Helpers::TryCatch(const std::function<bool()>& fn) { v8::Isolate* isolate = v8::Isolate::GetCurrent(); v8::Local<v8::Context> context = isolate->GetEnteredOrMicrotaskContext(); v8::TryCatch tryCatch(iso...
39.217678
186
0.616107
[ "object", "vector" ]
59a9c00c5a7973c1751007a341b257ea63a6cab4
1,296
hpp
C++
third_party/boost/simd/function/compare_less_equal.hpp
xmar/pythran
dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592
[ "BSD-3-Clause" ]
5
2018-02-20T11:21:12.000Z
2019-11-12T13:45:09.000Z
third_party/boost/simd/function/compare_less_equal.hpp
xmar/pythran
dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592
[ "BSD-3-Clause" ]
null
null
null
third_party/boost/simd/function/compare_less_equal.hpp
xmar/pythran
dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592
[ "BSD-3-Clause" ]
2
2017-11-17T15:30:36.000Z
2018-03-01T02:06:25.000Z
//================================================================================================== /*! @file @copyright 2016 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ //===========================...
25.411765
100
0.621142
[ "object" ]
59aba5523662de73e427165d48313b1be6474bae
6,017
cc
C++
plugins/RandomVelocityPlugin.cc
traversaro/gazebo
6fd426b3949c4ca73fa126cde68f5cc4a59522eb
[ "ECL-2.0", "Apache-2.0" ]
3
2018-07-17T00:17:13.000Z
2020-05-26T08:39:25.000Z
plugins/RandomVelocityPlugin.cc
traversaro/gazebo
6fd426b3949c4ca73fa126cde68f5cc4a59522eb
[ "ECL-2.0", "Apache-2.0" ]
1
2020-06-04T10:26:04.000Z
2020-06-04T10:26:04.000Z
plugins/RandomVelocityPlugin.cc
traversaro/gazebo
6fd426b3949c4ca73fa126cde68f5cc4a59522eb
[ "ECL-2.0", "Apache-2.0" ]
2
2019-11-10T07:19:09.000Z
2019-11-21T19:11:11.000Z
/* * Copyright (C) 2015 Open Source Robotics Foundation * * 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.701087
80
0.621738
[ "model" ]
59b61bf07ad32e68217925e18e50c97278325bf9
1,827
cpp
C++
weekly253/5839_remove_stones_to_minimize_the_total.cpp
rsulli55/leetcode-contests
a894ca2db5138f736bd3b2578b5ae6c97f8bc461
[ "Apache-2.0" ]
null
null
null
weekly253/5839_remove_stones_to_minimize_the_total.cpp
rsulli55/leetcode-contests
a894ca2db5138f736bd3b2578b5ae6c97f8bc461
[ "Apache-2.0" ]
null
null
null
weekly253/5839_remove_stones_to_minimize_the_total.cpp
rsulli55/leetcode-contests
a894ca2db5138f736bd3b2578b5ae6c97f8bc461
[ "Apache-2.0" ]
null
null
null
/* https://leetcode.com/contest/weekly-contest-253/problems/remove-stones-to-minimize-the-total/ */ /* You are given a 0-indexed integer array piles, where piles[i] represents the number of stones in the ith pile, and an integer k. You should apply the following operation exactly k times: */ /* Choose any piles[i]...
37.285714
192
0.627805
[ "vector" ]
59c1b643d6994801efe026313ca8c634a4abc356
22,786
cc
C++
src/meili/routing.cc
molind/valhalla
7d4cde8587d38fcb20f7a9ea9df34a8fc49bf68c
[ "BSD-2-Clause", "MIT" ]
null
null
null
src/meili/routing.cc
molind/valhalla
7d4cde8587d38fcb20f7a9ea9df34a8fc49bf68c
[ "BSD-2-Clause", "MIT" ]
null
null
null
src/meili/routing.cc
molind/valhalla
7d4cde8587d38fcb20f7a9ea9df34a8fc49bf68c
[ "BSD-2-Clause", "MIT" ]
null
null
null
#include <vector> #include <unordered_set> #include <unordered_map> #include "midgard/distanceapproximator.h" #include "baldr/graphid.h" #include "baldr/graphreader.h" #include "baldr/pathlocation.h" #include "sif/dynamiccost.h" #include "sif/costconstants.h" #include "meili/graph_helpers.h" #include "meili/geometry_...
37.232026
130
0.61055
[ "shape", "vector" ]
59c71ff230007cc6e821dd61c8faf2c893df5dbd
905
cpp
C++
AtCoder/ABC242C.cpp
Nickel-Angel/ACM-and-OI
79d13fd008c3a1fe9ebf35329aceb1fcb260d5d9
[ "MIT" ]
null
null
null
AtCoder/ABC242C.cpp
Nickel-Angel/ACM-and-OI
79d13fd008c3a1fe9ebf35329aceb1fcb260d5d9
[ "MIT" ]
1
2021-11-18T15:10:29.000Z
2021-11-20T07:13:31.000Z
AtCoder/ABC242C.cpp
Nickel-Angel/ACM-and-OI
79d13fd008c3a1fe9ebf35329aceb1fcb260d5d9
[ "MIT" ]
null
null
null
/* * @author Nickel_Angel (1239004072@qq.com) * @copyright Copyright (c) 2022 */ #include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <vector> using std::min; using std::max; using std::sort; using std::swap; using std::vector; using std::pair; typedef long long ll; const int maxn = 1...
20.111111
58
0.449724
[ "vector" ]
59c9f4fc0d26ed9e39a7d7d5371353a77f1b361b
1,565
cpp
C++
main.cpp
smatskevich-bsuir/mpi-cuda-lab
9295f5910a8607d18489224e4e5f1892944b1a23
[ "MIT" ]
null
null
null
main.cpp
smatskevich-bsuir/mpi-cuda-lab
9295f5910a8607d18489224e4e5f1892944b1a23
[ "MIT" ]
null
null
null
main.cpp
smatskevich-bsuir/mpi-cuda-lab
9295f5910a8607d18489224e4e5f1892944b1a23
[ "MIT" ]
null
null
null
#include <mpi.h> #include <iostream> #include <sstream> #include <chrono> #include "include/file_queue.hpp" #include "include/image_processing.cuh" typedef std::chrono::time_point<std::chrono::steady_clock> _time_t; const char* TASK_DIRECTORY = "/cluster/task"; int main (int argc, char* argv[]) { int rank; ...
30.096154
98
0.630671
[ "vector" ]
59cb0380774a2ece4ab1894b6301408e1d75072d
1,034
cpp
C++
kobold-layer.nucleus/src/texture/texture_implementation.cpp
BeardedPlatypus/kobold-layer
c258c79afe06213bf44cbcbb1474968350cfeec3
[ "MIT" ]
null
null
null
kobold-layer.nucleus/src/texture/texture_implementation.cpp
BeardedPlatypus/kobold-layer
c258c79afe06213bf44cbcbb1474968350cfeec3
[ "MIT" ]
1
2021-01-24T09:58:14.000Z
2021-01-24T10:04:03.000Z
kobold-layer.nucleus/src/texture/texture_implementation.cpp
BeardedPlatypus/kobold-layer
c258c79afe06213bf44cbcbb1474968350cfeec3
[ "MIT" ]
null
null
null
#include "pch.h" #include "texture_implementation.hpp" namespace kobold_layer::nucleus::texture { texture_implementation::texture_implementation( std::unique_ptr<sdl_util::resource_wrapper<SDL_Texture>> p_texture, std::shared_ptr<sdl_util::sdl_dispatcher> p_dispatcher) : p_texture_(std::move(p_texture)), p_d...
22
70
0.734043
[ "render" ]
59cb8217967656514045826beed56ba48657a766
2,944
cpp
C++
resources/loaders/Cocos2d-x/b2DebugDraw.cpp
amuTBKT/Physics-Editor
4ed6638855105680126d5ba252aaab395e667543
[ "MIT" ]
56
2015-07-20T19:27:05.000Z
2022-02-05T14:24:40.000Z
resources/loaders/Cocos2d-x/b2DebugDraw.cpp
amuTBKT/Physics-Editor
4ed6638855105680126d5ba252aaab395e667543
[ "MIT" ]
4
2015-07-23T07:15:58.000Z
2021-06-11T17:22:22.000Z
resources/loaders/Cocos2d-x/b2DebugDraw.cpp
amuTBKT/Physics-Editor
4ed6638855105680126d5ba252aaab395e667543
[ "MIT" ]
13
2015-10-29T13:02:49.000Z
2022-02-05T14:25:05.000Z
#include "b2DebugDraw.h" b2DebugDraw::b2DebugDraw(float ratio) { this->RATIO = ratio; } void b2DebugDraw::DrawPolygon(const b2Vec2* vertices, int vertexCount, const b2Color& color){ glLineWidth(2); Vec2 *verts = new Vec2[vertexCount]; for (int i = 0; i < vertexCount; i++){ verts[i] = Vec2(vertices[i].x * RATI...
27.009174
114
0.702106
[ "render", "shape", "solid" ]
59cde5c90d06178c0286a0532e16e002b08bc4b0
133,295
cpp
C++
libraries/opennn/testing_analysis.cpp
noyanc/gipOpenNN
2ad739597ce95e677e5fbfed990db6b6368048f9
[ "Apache-2.0" ]
null
null
null
libraries/opennn/testing_analysis.cpp
noyanc/gipOpenNN
2ad739597ce95e677e5fbfed990db6b6368048f9
[ "Apache-2.0" ]
null
null
null
libraries/opennn/testing_analysis.cpp
noyanc/gipOpenNN
2ad739597ce95e677e5fbfed990db6b6368048f9
[ "Apache-2.0" ]
3
2021-08-20T18:05:12.000Z
2021-09-08T10:48:32.000Z
// OpenNN: Open Neural Networks Library // www.opennn.net // // T E S T I N G A N A L Y S I S C L A S S // // Artificial Intelligence Techniques SL // artelnics@artelnics.com #include "testing_analysis.h" namespace OpenNN { /// Default constructor. /// It creates a testing analysis object neither assoc...
32.142513
289
0.669387
[ "object", "vector", "model" ]
59d009bc6e69b9fbe4923489d8d75aec5377332d
1,020
cpp
C++
Testing/ccmpiInitTest.cpp
MattClarkson/CMakeCatchMPI
1203aa0b03edbde8b58655c48b07a4354c6828df
[ "BSD-3-Clause" ]
null
null
null
Testing/ccmpiInitTest.cpp
MattClarkson/CMakeCatchMPI
1203aa0b03edbde8b58655c48b07a4354c6828df
[ "BSD-3-Clause" ]
4
2018-03-21T10:43:16.000Z
2019-02-26T10:09:03.000Z
Testing/ccmpiInitTest.cpp
MattClarkson/CMakeCatchMPI
1203aa0b03edbde8b58655c48b07a4354c6828df
[ "BSD-3-Clause" ]
null
null
null
/*============================================================================= CMAKECATCHMPI: A software package to demo MPI with CMake, CTest and Catch. Copyright (c) University College London (UCL). All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
30.909091
79
0.603922
[ "vector" ]
59d13ae63b4260d8ec25060c3d16618619ead6d0
32,696
cpp
C++
windows/advcore/duser/engine/ctrl/sequence.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
windows/advcore/duser/engine/ctrl/sequence.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
windows/advcore/duser/engine/ctrl/sequence.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
#include "stdafx.h" #include "Ctrl.h" #include "Sequence.h" #if ENABLE_MSGTABLE_API /***************************************************************************\ ***************************************************************************** * * Global Functions * ********************************************...
26.453074
92
0.464552
[ "object" ]
59d74fa0fe55c2b8dee698ace86fb3a120115a99
616
cpp
C++
src/processor.cpp
tomasdelclaux/Linux-System-Monitor
95ba6e01cc0b852a90d12440dcec85375ffa5e6a
[ "MIT" ]
null
null
null
src/processor.cpp
tomasdelclaux/Linux-System-Monitor
95ba6e01cc0b852a90d12440dcec85375ffa5e6a
[ "MIT" ]
null
null
null
src/processor.cpp
tomasdelclaux/Linux-System-Monitor
95ba6e01cc0b852a90d12440dcec85375ffa5e6a
[ "MIT" ]
null
null
null
#include "processor.h" #include "linux_parser.h" #include <vector> using std::stof; using std::vector; using std::string; float Processor::Utilization() { vector<string> jiffies = LinuxParser::CpuUtilization(); if (jiffies.size() == 10){ prevActive = curActive; prevTotal = curTotal; c...
30.8
132
0.646104
[ "vector" ]
59dcdd3814eb195125db0341ef47e52c5a9d0e4c
3,890
cpp
C++
client/OAIEzsigntemplatepackagesigner_createObject_v1_Request.cpp
ezmaxinc/eZmax-SDK-cpp-qt5-client
70cc5ea2bccba1a7c192f88b15bee8225dbb3d01
[ "MIT" ]
null
null
null
client/OAIEzsigntemplatepackagesigner_createObject_v1_Request.cpp
ezmaxinc/eZmax-SDK-cpp-qt5-client
70cc5ea2bccba1a7c192f88b15bee8225dbb3d01
[ "MIT" ]
null
null
null
client/OAIEzsigntemplatepackagesigner_createObject_v1_Request.cpp
ezmaxinc/eZmax-SDK-cpp-qt5-client
70cc5ea2bccba1a7c192f88b15bee8225dbb3d01
[ "MIT" ]
null
null
null
/** * eZmax API Definition (Full) * This API expose all the functionnalities for the eZmax and eZsign applications. * * The version of the OpenAPI document: 1.1.7 * Contact: support-api@ezmax.ca * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-gener...
38.137255
193
0.810283
[ "object" ]
59e1a3561748cc9cac75019971c3c7f2e0d4852e
3,821
cpp
C++
src/GeometryObject.cpp
mtrebi/Rasterizer
75ade449cd873552ededb86af62b2f867410d08d
[ "MIT" ]
74
2018-02-12T13:37:32.000Z
2022-03-20T01:16:44.000Z
src/GeometryObject.cpp
mtrebi/Rasterizer
75ade449cd873552ededb86af62b2f867410d08d
[ "MIT" ]
3
2020-01-07T08:18:22.000Z
2020-10-12T16:43:47.000Z
src/GeometryObject.cpp
mtrebi/Rasterizer
75ade449cd873552ededb86af62b2f867410d08d
[ "MIT" ]
21
2018-07-27T11:00:54.000Z
2022-02-12T14:07:11.000Z
#include "GeometryObject.h" #include <cassert> #include <math.h> /* fmod */ #define _USE_MATH_DEFINES #include <math.h> /* sin */ GeometryObject::GeometryObject() { } GeometryObject::GeometryObject(Material* material, const std::vector<Point3D>& vertices, const std::vector<RGBColor>& colors, const std::ve...
41.989011
231
0.712117
[ "object", "vector", "model", "transform" ]
59e23bb8b86b22ac303539daa678d755eaf684f8
916
cpp
C++
test/Coroutine_test.cpp
evenleo/leo
67e148e04eb7b3af9890f907f24fb4f63d8405b0
[ "MIT" ]
null
null
null
test/Coroutine_test.cpp
evenleo/leo
67e148e04eb7b3af9890f907f24fb4f63d8405b0
[ "MIT" ]
null
null
null
test/Coroutine_test.cpp
evenleo/leo
67e148e04eb7b3af9890f907f24fb4f63d8405b0
[ "MIT" ]
null
null
null
#include "Coroutine.h" #include "Log.h" #include <vector> using namespace leo; static int sum = 0; void test() { LOG_DEBUG << "in Coroutine [" << Coroutine::GetCid() << "]"; Coroutine::SwapOut(); sum++; LOG_DEBUG << "rein Coroutine [" << Coroutine::GetCid() << "]"; Coroutine::SwapOut(); } int main() { Single...
22.9
99
0.608079
[ "vector" ]
59e62e2d88345b0b617b7aa4ffbe705a08316aa8
965
cpp
C++
src/Engine/Renderer/Mesh/Mesh.cpp
Sausty/GameProject-1
0c0c13dea2b446213cea9074a02bcf588fb46559
[ "MIT" ]
null
null
null
src/Engine/Renderer/Mesh/Mesh.cpp
Sausty/GameProject-1
0c0c13dea2b446213cea9074a02bcf588fb46559
[ "MIT" ]
null
null
null
src/Engine/Renderer/Mesh/Mesh.cpp
Sausty/GameProject-1
0c0c13dea2b446213cea9074a02bcf588fb46559
[ "MIT" ]
null
null
null
// // Created by MarcasRealAccount on 29. Oct. 2020 // #include "Engine/Renderer/Mesh/Mesh.h" namespace gp1 { Mesh::~Mesh() { if (this->m_MeshData) { this->m_MeshData->CleanUp(); delete this->m_MeshData; } } void Mesh::MarkDirty() { this->m_Dirty = this->m_Editable; } void Mesh::ClearDirty() { ...
17.545455
75
0.651813
[ "mesh" ]
59e9c79c52c22c8f692ebfb08363d07b1ef74991
1,640
hpp
C++
cpptest/cs106_3template.hpp
yangyueren/CS106L
b4267ffa4402909e20d751d7417a8957de51fb5c
[ "BSD-3-Clause" ]
null
null
null
cpptest/cs106_3template.hpp
yangyueren/CS106L
b4267ffa4402909e20d751d7417a8957de51fb5c
[ "BSD-3-Clause" ]
null
null
null
cpptest/cs106_3template.hpp
yangyueren/CS106L
b4267ffa4402909e20d751d7417a8957de51fb5c
[ "BSD-3-Clause" ]
null
null
null
// // Created by yryang on 2020/4/17. // #ifndef CPPTEST_CS106_3TEMPLATE_HPP #define CPPTEST_CS106_3TEMPLATE_HPP #include <iostream> #include <algorithm> #include <vector> using namespace std; template <typename T, typename Container > class Priority_queue : std::exception{ public: Priority_queue() = default; ...
23.098592
95
0.586585
[ "vector" ]
59ea016296bff896473473e584be2a7d956db70d
1,850
cpp
C++
Chesster/src/Chesster/Core/Logger.cpp
favo52/Capstone-Design
a7ef01dbab6c77c745381dc3a5f8ea81a34cb4cb
[ "Apache-2.0" ]
null
null
null
Chesster/src/Chesster/Core/Logger.cpp
favo52/Capstone-Design
a7ef01dbab6c77c745381dc3a5f8ea81a34cb4cb
[ "Apache-2.0" ]
null
null
null
Chesster/src/Chesster/Core/Logger.cpp
favo52/Capstone-Design
a7ef01dbab6c77c745381dc3a5f8ea81a34cb4cb
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2021-present, Polytechnic University of Puerto Rico * AUTHOR: Francisco A. Villagrasa * * 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/LI...
34.259259
100
0.722703
[ "vector" ]
59eaa76490d2ae55d65b9cfbc4eab262edf3893d
470
hpp
C++
Code/ObjLoader/ObjLoader.hpp
Mu-L/Luna-Engine-0.6
05ae1037f0d173589a535eb6ec2964f20d80e5c1
[ "MIT" ]
167
2020-06-17T06:09:41.000Z
2022-03-13T20:31:26.000Z
Code/ObjLoader/ObjLoader.hpp
Mu-L/Luna-Engine-0.6
05ae1037f0d173589a535eb6ec2964f20d80e5c1
[ "MIT" ]
2
2020-07-11T15:12:50.000Z
2021-06-01T01:45:49.000Z
Code/ObjLoader/ObjLoader.hpp
Mu-L/Luna-Engine-0.6
05ae1037f0d173589a535eb6ec2964f20d80e5c1
[ "MIT" ]
22
2020-06-12T02:26:10.000Z
2022-01-02T14:04:32.000Z
// Copyright 2018-2020 JXMaster. All rights reserved. /* * @file ObjLoader.hpp * @author JXMaster * @date 2020/5/12 */ #pragma once #include "IObjFile.hpp" #ifndef LUNA_OBJ_LOADER_API #define LUNA_OBJ_LOADER_API #endif namespace Luna { namespace obj_loader { LUNA_OBJ_LOADER_API void init(); //! Loads object f...
19.583333
72
0.740426
[ "object" ]
59ee20636608ba82adb37677596f7d2173e6a702
360
cpp
C++
1313.DecompressRun-LengthEncodedList/main.cpp
SumanSudhir/LeetCode
cab5205747b8c1a9d5c27f0e821cf6e6d9ac10d6
[ "MIT" ]
1
2020-01-13T11:10:35.000Z
2020-01-13T11:10:35.000Z
1313.DecompressRun-LengthEncodedList/main.cpp
SumanSudhir/LeetCode
cab5205747b8c1a9d5c27f0e821cf6e6d9ac10d6
[ "MIT" ]
4
2020-01-01T09:47:39.000Z
2020-04-08T08:34:29.000Z
1313.DecompressRun-LengthEncodedList/main.cpp
SumanSudhir/LeetCode
cab5205747b8c1a9d5c27f0e821cf6e6d9ac10d6
[ "MIT" ]
null
null
null
class Solution { public: vector<int> decompressRLElist(vector<int>& nums) { vector<int> output; int n = nums.size(); for(int i=0;i<n;i=i+2){ int freq = nums[i]; int val = nums[i+1]; for(int j=0;j<freq;j++) output.push_back(val); // i++; ...
18
58
0.463889
[ "vector" ]
59f27d8b62057fd79f8deaed55a1aa6fe67738a8
3,475
cpp
C++
samples/samples.cpp
end2endzone/libMidi
8b4a2beac2273c15bd008768f9a1dceec2500901
[ "MIT-0", "MIT" ]
null
null
null
samples/samples.cpp
end2endzone/libMidi
8b4a2beac2273c15bd008768f9a1dceec2500901
[ "MIT-0", "MIT" ]
6
2018-12-05T18:36:03.000Z
2018-12-27T15:56:15.000Z
samples/samples.cpp
end2endzone/libMidi
8b4a2beac2273c15bd008768f9a1dceec2500901
[ "MIT-0", "MIT" ]
null
null
null
/********************************************************************************** * MIT License * * Copyright (c) 2018 Antoine Beauchamp * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the So...
30.482456
83
0.671079
[ "vector" ]
59f41e020c968ac6bd759d168c4d4b0bb2697ff6
4,866
cpp
C++
VC2010Samples/ATL/Advanced/mfcatl/mfcatldl.cpp
alonmm/VCSamples
6aff0b4902f5027164d593540fcaa6601a0407c3
[ "MIT" ]
300
2019-05-09T05:32:33.000Z
2022-03-31T20:23:24.000Z
VC2010Samples/ATL/Advanced/mfcatl/mfcatldl.cpp
JaydenChou/VCSamples
9e1d4475555b76a17a3568369867f1d7b6cc6126
[ "MIT" ]
9
2016-09-19T18:44:26.000Z
2018-10-26T10:20:05.000Z
VC2010Samples/ATL/Advanced/mfcatl/mfcatldl.cpp
JaydenChou/VCSamples
9e1d4475555b76a17a3568369867f1d7b6cc6126
[ "MIT" ]
633
2019-05-08T07:34:12.000Z
2022-03-30T04:38:28.000Z
// MfcAtlDl.cpp : implementation file // // This is a part of the Active Template Library. // Copyright (c) Microsoft Corporation. All rights reserved. // // This source code is only intended as a supplement to the // Active Template Library Reference and related // electronic documentation provided with the library. ...
23.621359
77
0.689067
[ "model" ]
59f7205fc9785fa1500945db5c828c732a9c6d0e
6,501
hxx
C++
lib/misc/set.hxx
MrMaDGaME/Tiger
f31f73cd386b3ccb3e02abe7b23a3de09d70bd0f
[ "MIT" ]
null
null
null
lib/misc/set.hxx
MrMaDGaME/Tiger
f31f73cd386b3ccb3e02abe7b23a3de09d70bd0f
[ "MIT" ]
null
null
null
lib/misc/set.hxx
MrMaDGaME/Tiger
f31f73cd386b3ccb3e02abe7b23a3de09d70bd0f
[ "MIT" ]
null
null
null
/** ** \file misc/set.hxx ** \brief misc::set: wrapper around std::set. **/ #pragma once #include <algorithm> #include <ostream> #include <misc/contract.hh> #include <misc/set.hh> namespace misc { template <class Key, class Compare, class Allocator> template <typename Iter> requires Iterator<Iter, Key> inl...
31.254808
80
0.642363
[ "vector" ]
59fdcbd16b12cbfe00e353e29423b3af88bb8f99
5,852
hpp
C++
include/popops/Pad.hpp
graphcore/poplibs
3fe5a3ecafe995eddb72675d1b4a7af8a622009e
[ "MIT" ]
95
2020-07-06T17:11:23.000Z
2022-03-12T14:42:28.000Z
include/popops/Pad.hpp
giantchen2012/poplibs
2bc6b6f3d40863c928b935b5da88f40ddd77078e
[ "MIT" ]
null
null
null
include/popops/Pad.hpp
giantchen2012/poplibs
2bc6b6f3d40863c928b935b5da88f40ddd77078e
[ "MIT" ]
14
2020-07-15T12:32:57.000Z
2022-01-26T14:58:45.000Z
// Copyright (c) 2016 Graphcore Ltd. All rights reserved. /** \file * * Functions for padding a tensor. * */ #ifndef popops_Pad_hpp #define popops_Pad_hpp #include <poplar/Graph.hpp> #include <poplar/Program.hpp> #include <vector> namespace popops { // Some general comments: // Constant padding requires a Graph,...
40.923077
79
0.67242
[ "vector" ]
9400e54b12c8a40a5082e0cb1616f8d717896a8f
15,781
cpp
C++
src/gpu/gl/GrGLProgram.cpp
zhaodm/skia_sdl
8724ae26584df523eb7bb814ffe7aec5f597d187
[ "BSD-3-Clause" ]
null
null
null
src/gpu/gl/GrGLProgram.cpp
zhaodm/skia_sdl
8724ae26584df523eb7bb814ffe7aec5f597d187
[ "BSD-3-Clause" ]
null
null
null
src/gpu/gl/GrGLProgram.cpp
zhaodm/skia_sdl
8724ae26584df523eb7bb814ffe7aec5f597d187
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrGLProgram.h" #include "GrAllocator.h" #include "GrProcessor.h" #include "GrCoordTransform.h" #include "GrGLGeometryProcessor.h" #include "GrGLProcessor.h" #includ...
45.217765
100
0.61422
[ "transform" ]
9402e9dbadc466bed55f8369533674d7d211e25f
2,838
cpp
C++
src/Screens/Settings/DropDownElement.cpp
CircuitMess/JayD-Firmware
2d28f2d0220f31e6affa3468761d87657d1041f8
[ "MIT" ]
2
2021-05-05T09:49:50.000Z
2021-08-19T17:24:18.000Z
src/Screens/Settings/DropDownElement.cpp
CircuitMess/JayD-Firmware
2d28f2d0220f31e6affa3468761d87657d1041f8
[ "MIT" ]
null
null
null
src/Screens/Settings/DropDownElement.cpp
CircuitMess/JayD-Firmware
2d28f2d0220f31e6affa3468761d87657d1041f8
[ "MIT" ]
null
null
null
#include "DropDownElement.h" SettingsScreen::DropDownElement::DropDownElement(ElementContainer *partent, String name, std::vector<String> dropDownContent) : SettingsElement(partent, name), dropDownContent(dropDownContent){ } void SettingsScreen::DropDownElement::toggle(){ showDropDown = !showDropDown; } void Se...
39.416667
125
0.648696
[ "vector" ]
940658fed56596f75ee79743ea0a165f01ac286b
1,676
cpp
C++
CWin/CWin/events/audio_events.cpp
benbraide/CWin
0441b48a71fef0dbddabf61033d7286669772c1e
[ "MIT" ]
null
null
null
CWin/CWin/events/audio_events.cpp
benbraide/CWin
0441b48a71fef0dbddabf61033d7286669772c1e
[ "MIT" ]
null
null
null
CWin/CWin/events/audio_events.cpp
benbraide/CWin
0441b48a71fef0dbddabf61033d7286669772c1e
[ "MIT" ]
null
null
null
#include "../audio/wave_audio.h" #include "audio_events.h" cwin::events::audio::get_device_id::get_device_id(events::target &target) : get_device_id(target, target){} cwin::events::audio::get_device_id::get_device_id(events::target &context, events::target &target) : object(context, target){ result_ = static_cast...
31.622642
105
0.738067
[ "object" ]
94078bfebb5694d83281ed40304cc9b1f5e45b34
6,523
cpp
C++
src/process/im_fft.cpp
hleuwer/im
178a9614868487689529b56d9cb3daedd98fc593
[ "MIT" ]
null
null
null
src/process/im_fft.cpp
hleuwer/im
178a9614868487689529b56d9cb3daedd98fc593
[ "MIT" ]
null
null
null
src/process/im_fft.cpp
hleuwer/im
178a9614868487689529b56d9cb3daedd98fc593
[ "MIT" ]
null
null
null
/** \file * \brief Fast Fourier Transform using FFTW library * * See Copyright Notice in im_lib.h */ #include <im.h> #include <im_util.h> #include <im_complex.h> #include <im_convert.h> #include "im_process.h" #include <stdlib.h> #include <assert.h> #include <memory.h> #ifdef USE_FFTW3 #include "fftw3.h" #else ...
27.06639
128
0.659359
[ "transform" ]
9408220db1093868edccf4b86f20f7de51d20586
1,120
cc
C++
homeworks/LengthOfBoundary/templates/boundarylength.cc
padomu/NPDECODES
d2bc5b0d2d5e76e4d5b8ab6948c82f902211182e
[ "MIT" ]
15
2019-04-29T11:28:56.000Z
2022-03-22T05:10:58.000Z
homeworks/LengthOfBoundary/templates/boundarylength.cc
padomu/NPDECODES
d2bc5b0d2d5e76e4d5b8ab6948c82f902211182e
[ "MIT" ]
12
2020-02-29T15:05:58.000Z
2022-02-21T13:51:07.000Z
homeworks/LengthOfBoundary/templates/boundarylength.cc
padomu/NPDECODES
d2bc5b0d2d5e76e4d5b8ab6948c82f902211182e
[ "MIT" ]
26
2020-01-09T15:59:23.000Z
2022-03-24T16:27:33.000Z
/** * @ file boundarylength.cc * @ brief NPDE homework LengthOfBoundary code * @ author Christian Mitsch * @ date 03.03.2019 * @ copyright Developed at ETH Zurich */ #include "boundarylength.h" #include <lf/geometry/geometry.h> #include <lf/io/io.h> #include <lf/mesh/hybrid2d/hybrid2d.h> #include <lf/mesh/utils...
21.132075
71
0.614286
[ "mesh", "geometry" ]
941089c126adbf45e57db3518a65aa46ebffa3d1
40,866
cpp
C++
TAMods/DataGetters.cpp
ToddButler93/tamods
d48509dda5e1f8020b86e26f8204da2242c62603
[ "MIT" ]
2
2021-09-16T15:32:20.000Z
2022-03-19T06:49:03.000Z
TAMods/DataGetters.cpp
ToddButler93/tamods
d48509dda5e1f8020b86e26f8204da2242c62603
[ "MIT" ]
null
null
null
TAMods/DataGetters.cpp
ToddButler93/tamods
d48509dda5e1f8020b86e26f8204da2242c62603
[ "MIT" ]
3
2021-09-16T15:33:00.000Z
2022-03-19T10:20:21.000Z
#include <algorithm> #include "DataGetters.h" #include "Mods.h" #include "NameCryptor.h" FVector2D getViewPortData::size() { if (!Utils::tr_gvc) return{ 0.0f, 0.0f }; FVector2D s; Utils::tr_gvc->GetViewportSize(&s); return s; } bool getViewPortData::isMainMenuOpen() { // FI...
31.581144
197
0.598664
[ "vector" ]
941793d3ead0e98632af331792f3a74c5b4b6f4a
2,938
cpp
C++
Source/WebDriver/glib/WebDriverServiceGLib.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Source/WebDriver/glib/WebDriverServiceGLib.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Source/WebDriver/glib/WebDriverServiceGLib.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright (C) 2017 Igalia S.L. * * 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 dis...
35.829268
115
0.707284
[ "vector" ]
942b0beb2d80fb86b34cc173421b9ccef70a9e65
455
cpp
C++
EersteGraphicEngine/Cube.cpp
fabsgc/EersteGraphicEngine
09d0da03dbe3a17a5da6651409f697a0db8634bd
[ "MIT" ]
3
2018-05-15T10:05:48.000Z
2019-10-07T18:39:41.000Z
EersteGraphicEngine/Cube.cpp
fabsgc/EersteGraphicEngine
09d0da03dbe3a17a5da6651409f697a0db8634bd
[ "MIT" ]
null
null
null
EersteGraphicEngine/Cube.cpp
fabsgc/EersteGraphicEngine
09d0da03dbe3a17a5da6651409f697a0db8634bd
[ "MIT" ]
null
null
null
#include "Cube.h" #include "ModelManager.h" #include "DefaultMaterial.h" namespace ege { Cube::Cube() : InstancedModel() { } Cube::~Cube() { } void Cube::Initialise() { Build(gModelManager().GetPtr("cube")); SPtr<DefaultMaterial> material = ege_shared_ptr_new<Defau...
15.166667
73
0.582418
[ "model" ]
942d9099b9aba28730cb602f2b0ba17495b6e7d3
1,886
cpp
C++
src/world/testboundariesaretimes.cpp
divad-nhok/obsidian_fork
e5bee2b706f78249564f06c88a18be086b17c895
[ "MIT" ]
7
2015-01-04T13:50:24.000Z
2022-01-22T01:03:57.000Z
src/world/testboundariesaretimes.cpp
divad-nhok/obsidian_fork
e5bee2b706f78249564f06c88a18be086b17c895
[ "MIT" ]
1
2018-08-16T00:46:58.000Z
2018-08-16T00:46:58.000Z
src/world/testboundariesaretimes.cpp
divad-nhok/obsidian_fork
e5bee2b706f78249564f06c88a18be086b17c895
[ "MIT" ]
9
2016-08-31T05:42:00.000Z
2022-01-21T21:37:47.000Z
//! //! Contains tests for using waves times instead of depth to define boundaries. //! //! \file world/testboundariesaretimes.cpp //! \author Nahid Akbar //! \date 2014 //! \license Affero General Public License version 3 or later //! \copyright (c) 2014, NICTA //! #include <gtest/gtest.h> #include "app/console.hpp"...
27.333333
120
0.652174
[ "vector" ]
943062d7248ed5644302fa7ab7506e75e340dfca
3,370
cpp
C++
src/dolfin/fem/FiniteElement.cpp
szmurlor/fiver
083251420eb934d860c99dcf1eb07ae5b8ba7e8c
[ "Apache-2.0" ]
null
null
null
src/dolfin/fem/FiniteElement.cpp
szmurlor/fiver
083251420eb934d860c99dcf1eb07ae5b8ba7e8c
[ "Apache-2.0" ]
null
null
null
src/dolfin/fem/FiniteElement.cpp
szmurlor/fiver
083251420eb934d860c99dcf1eb07ae5b8ba7e8c
[ "Apache-2.0" ]
null
null
null
// Copyright (C) 2008-2011 Anders Logg // // This file is part of DOLFIN. // // DOLFIN is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later...
37.444444
115
0.637982
[ "vector" ]
943765c51724aa6edca405951c32da49bf452f73
217
hpp
C++
VS2019 Solution/Strategy Pattern/ShootingConcreteStrategy1.hpp
Toggy-Smith/Strategy-Behavioural-Design-Pattern-Demo
8564d445eaf66050b835d1ece675834d59ac1140
[ "MIT" ]
null
null
null
VS2019 Solution/Strategy Pattern/ShootingConcreteStrategy1.hpp
Toggy-Smith/Strategy-Behavioural-Design-Pattern-Demo
8564d445eaf66050b835d1ece675834d59ac1140
[ "MIT" ]
null
null
null
VS2019 Solution/Strategy Pattern/ShootingConcreteStrategy1.hpp
Toggy-Smith/Strategy-Behavioural-Design-Pattern-Demo
8564d445eaf66050b835d1ece675834d59ac1140
[ "MIT" ]
null
null
null
#pragma once #include "Bullet.hpp" #include "ShootingStrategy.hpp" #include <vector> class ShootingConcreteStrategy1 : public ShootingStrategy { public: void fire(sf::Vector2f, std::vector<Bullet>&) override; };
19.727273
59
0.75576
[ "vector" ]
9439c6f8a8f0d0574fbc8ddde2b4f460c168e5d6
7,779
cc
C++
src/Dataflow/Network/ModuleFactory.cc
Haydelj/SCIRun
f7ee04d85349b946224dbff183438663e54b9413
[ "MIT" ]
null
null
null
src/Dataflow/Network/ModuleFactory.cc
Haydelj/SCIRun
f7ee04d85349b946224dbff183438663e54b9413
[ "MIT" ]
null
null
null
src/Dataflow/Network/ModuleFactory.cc
Haydelj/SCIRun
f7ee04d85349b946224dbff183438663e54b9413
[ "MIT" ]
null
null
null
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2020 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ...
29.577947
151
0.666538
[ "vector" ]
943b11ecf25068fd2a983d49d8c606185161e4da
2,829
hpp
C++
modules/clients/cpp/main/include/gridgain/impl/filter/gridclientfilter.hpp
cybernetics/gridgain
39f3819c9769b04caca62b263581c0458f21c4d6
[ "Apache-2.0" ]
1
2019-04-22T08:48:55.000Z
2019-04-22T08:48:55.000Z
modules/clients/cpp/main/include/gridgain/impl/filter/gridclientfilter.hpp
cybernetics/gridgain
39f3819c9769b04caca62b263581c0458f21c4d6
[ "Apache-2.0" ]
null
null
null
modules/clients/cpp/main/include/gridgain/impl/filter/gridclientfilter.hpp
cybernetics/gridgain
39f3819c9769b04caca62b263581c0458f21c4d6
[ "Apache-2.0" ]
null
null
null
/* Copyright (C) GridGain Systems. 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...
27.735294
97
0.663839
[ "object", "vector" ]
943d9b2db43c148f3c73d174cf9e7a3b397caff5
2,284
cpp
C++
leetcode/challenges/phalletest.cpp
shivammehta007/Fun-Coding
1ecfd682b336f5f9bc50364375de7d4c67714cbd
[ "Vim", "Fair", "MIT" ]
null
null
null
leetcode/challenges/phalletest.cpp
shivammehta007/Fun-Coding
1ecfd682b336f5f9bc50364375de7d4c67714cbd
[ "Vim", "Fair", "MIT" ]
null
null
null
leetcode/challenges/phalletest.cpp
shivammehta007/Fun-Coding
1ecfd682b336f5f9bc50364375de7d4c67714cbd
[ "Vim", "Fair", "MIT" ]
null
null
null
#include <iostream> #include <regex> #include <string> #include <vector> void tokenize(std::string& text, std::vector<std::string>& text_prefix_tokens, std::vector<std::string>& text_suffix_tokens) { std::string text_copy(text); int length = text_copy.length(); int i = 1; while (i <= length) { ...
29.662338
126
0.601576
[ "vector" ]
944151454bdc7c662ed21e52843bde859a4750cb
2,348
cpp
C++
src/gui/graph_navigation_widget/navigation_filter_dialog.cpp
swallat/hal
98b08ac69448c2d7067f1bdd53ba428548c87cc9
[ "MIT" ]
1
2019-05-13T17:14:35.000Z
2019-05-13T17:14:35.000Z
src/gui/graph_navigation_widget/navigation_filter_dialog.cpp
swallat/hal
98b08ac69448c2d7067f1bdd53ba428548c87cc9
[ "MIT" ]
null
null
null
src/gui/graph_navigation_widget/navigation_filter_dialog.cpp
swallat/hal
98b08ac69448c2d7067f1bdd53ba428548c87cc9
[ "MIT" ]
null
null
null
#include "graph_navigation_widget/navigation_filter_dialog.h" #include <QRegExp> navigation_filter_dialog::navigation_filter_dialog(QRegExp*& regExp, QWidget* parent) : QDialog(parent), m_button_box(QDialogButtonBox::Ok | QDialogButtonBox::Cancel), m_regExp(regExp) { setWindowTitle("New Filter"); setSizeGripEn...
33.070423
184
0.686542
[ "solid" ]
94416ec38bfca5770ca3e65adec29607b61813bd
2,564
cpp
C++
src/edyn/sys/update_rotated_meshes.cpp
madebr/edyn
fc3dc3c383952c9c2d8d21ecde25a2fdd1a4fb7f
[ "MIT" ]
317
2020-07-07T07:20:58.000Z
2022-03-31T23:38:12.000Z
src/edyn/sys/update_rotated_meshes.cpp
madebr/edyn
fc3dc3c383952c9c2d8d21ecde25a2fdd1a4fb7f
[ "MIT" ]
15
2020-05-10T17:39:16.000Z
2022-03-28T05:18:27.000Z
src/edyn/sys/update_rotated_meshes.cpp
madebr/edyn
fc3dc3c383952c9c2d8d21ecde25a2fdd1a4fb7f
[ "MIT" ]
16
2020-07-07T07:20:59.000Z
2022-03-06T18:24:25.000Z
#include "edyn/sys/update_rotated_meshes.hpp" #include "edyn/comp/position.hpp" #include "edyn/comp/orientation.hpp" #include "edyn/comp/rotated_mesh_list.hpp" #include <entt/entity/registry.hpp> #include <variant> namespace edyn { static void update_rotated_mesh_vertices(rotated_mesh &rotated, const convex_mesh &mes...
35.611111
106
0.685257
[ "mesh" ]
9444c46cbe1090b97158436c8221a0c83e910cc7
2,538
cpp
C++
bazaar/QuickTabsTest/QuickTabsTest.cpp
dreamsxin/ultimatepp
41d295d999f9ff1339b34b43c99ce279b9b3991c
[ "BSD-2-Clause" ]
2
2016-04-07T07:54:26.000Z
2020-04-14T12:37:34.000Z
bazaar/QuickTabsTest/QuickTabsTest.cpp
dreamsxin/ultimatepp
41d295d999f9ff1339b34b43c99ce279b9b3991c
[ "BSD-2-Clause" ]
null
null
null
bazaar/QuickTabsTest/QuickTabsTest.cpp
dreamsxin/ultimatepp
41d295d999f9ff1339b34b43c99ce279b9b3991c
[ "BSD-2-Clause" ]
null
null
null
#include "QuickTabsTest.h" Image IdeFileImage(const String& t, bool a) { return Null; } App::App() { t_tabs.SetTop(); /* l_tabs.SetLeft(); r_tabs.SetRight(); b_tabs.SetBottom(); */ CtrlLayout(*this, "Window title"); Sizeable().Zoomable(); // AddFrame(t_tabs); /* AddFrame(r_tabs); AddFrame(l_tabs); AddFrame...
21.692308
43
0.64933
[ "vector" ]
9449a6aa6c43577ad2e2d7a2a862fdb3bdf8724d
10,828
cpp
C++
connectometry/createdbdialog.cpp
cbutakoff/DSI-Studio
d77dffa4526d66da421fa84f7187e85bca6bce7c
[ "BSD-3-Clause" ]
null
null
null
connectometry/createdbdialog.cpp
cbutakoff/DSI-Studio
d77dffa4526d66da421fa84f7187e85bca6bce7c
[ "BSD-3-Clause" ]
null
null
null
connectometry/createdbdialog.cpp
cbutakoff/DSI-Studio
d77dffa4526d66da421fa84f7187e85bca6bce7c
[ "BSD-3-Clause" ]
null
null
null
#include <QFileDialog> #include <QStringListModel> #include <QMessageBox> #include <fstream> #include "createdbdialog.h" #include "ui_createdbdialog.h" #include "fib_data.hpp" #include "libs/vbc/vbc_database.h" #include "prog_interface_static_link.h" #include "dsi_interface_static_link.h" extern std::string fib_templa...
32.419162
122
0.570465
[ "vector", "model" ]
9449d99e7b2fe3843a846cff50b3df5546989727
4,444
cpp
C++
Programming Languages(PE) C++/Tasks/ExamPrep/test.cpp
Bzahov98/TU-University-Tasks
9d8e86e059e36356276b8e69579735b188b72634
[ "MIT" ]
3
2018-01-31T09:33:34.000Z
2022-01-19T13:04:19.000Z
Programming Languages(PE) C++/Tasks/ExamPrep/test.cpp
Bzahov98/TU-University-Tasks
9d8e86e059e36356276b8e69579735b188b72634
[ "MIT" ]
1
2020-10-03T07:43:53.000Z
2020-10-03T07:43:53.000Z
Programming Languages(PE) C++/Tasks/ExamPrep/test.cpp
Bzahov98/TU-University-Tasks
9d8e86e059e36356276b8e69579735b188b72634
[ "MIT" ]
3
2018-11-21T03:52:15.000Z
2020-09-30T18:07:28.000Z
#include <iostream> #include <vector> #include <string> #include <ctime> #include <new> #include <fstream> using namespace std; class Student { string name; int fnum; int group; int course; public: Student(); ~Student() { cout << "Destructing!" << endl; } int writeStudentsIntoFile(); ...
23.267016
100
0.524302
[ "vector" ]
944a0ff8db867e944a1d00a46ffc80d839c43367
10,673
cpp
C++
Programs/QuickEd/Classes/EditorSystems/HUDControls.cpp
reven86/dava.engine
ca47540c8694668f79774669b67d874a30188c20
[ "BSD-3-Clause" ]
5
2020-02-11T12:04:17.000Z
2022-01-30T10:18:29.000Z
Programs/QuickEd/Classes/EditorSystems/HUDControls.cpp
reven86/dava.engine
ca47540c8694668f79774669b67d874a30188c20
[ "BSD-3-Clause" ]
null
null
null
Programs/QuickEd/Classes/EditorSystems/HUDControls.cpp
reven86/dava.engine
ca47540c8694668f79774669b67d874a30188c20
[ "BSD-3-Clause" ]
4
2019-11-28T19:24:34.000Z
2021-08-24T19:12:50.000Z
#include "UI/Layouts/UIAnchorComponent.h" #include "EditorSystems/HUDControls.h" #include "Model/ControlProperties/RootProperty.h" #include "Model/ControlProperties/VisibleValueProperty.h" #include "EditorSystems/EditorTransformSystem.h" #include <Render/2D/Sprite.h> #include <Render/2D/Systems/RenderSystem2D.h> #incl...
35.695652
138
0.694275
[ "render", "model" ]
944f61216178626bab84cb8608ddff075418029f
5,672
cpp
C++
src/FindPieces.cpp
JohnTHenkel/CatanCV
a148439583b16290cfec755e1f7ba886cbbc9d1d
[ "BSD-3-Clause" ]
null
null
null
src/FindPieces.cpp
JohnTHenkel/CatanCV
a148439583b16290cfec755e1f7ba886cbbc9d1d
[ "BSD-3-Clause" ]
null
null
null
src/FindPieces.cpp
JohnTHenkel/CatanCV
a148439583b16290cfec755e1f7ba886cbbc9d1d
[ "BSD-3-Clause" ]
null
null
null
#include "FindPieces.h" //Find the cities, settlements, and roads //Currently only capable of finding red and blue pieces vector<Piece> findPieces(const Mat& image){ Mat redImage = isolateColor(image, 'r'); Mat blueImage = isolateColor(image, 'b'); //get contour of outer edge of board vector<vector<Point>> boardC...
37.562914
101
0.709274
[ "vector" ]
944ff65780cf2a41e7e0e9f188767d47685f942f
532
cpp
C++
Interviewbit/Bit Manipulation/Single Number.cpp
tanishq1g/cp_codes
80b8ccc9e195a66d6d317076fdd54a02cd21275b
[ "MIT" ]
null
null
null
Interviewbit/Bit Manipulation/Single Number.cpp
tanishq1g/cp_codes
80b8ccc9e195a66d6d317076fdd54a02cd21275b
[ "MIT" ]
null
null
null
Interviewbit/Bit Manipulation/Single Number.cpp
tanishq1g/cp_codes
80b8ccc9e195a66d6d317076fdd54a02cd21275b
[ "MIT" ]
null
null
null
int Solution::singleNumber(const vector<int> &ve) { // int n = ve.size(), x; // int ret = 0; // for(int i = 31; i >= 0; i--){ // x = 0; // for(int j = 0; j < n; j++){ // if(ve[j] & (1 << i)){ // x += 1; // } // } // if(x % 2 == 1){ ...
21.28
51
0.302632
[ "vector" ]
945bf5d892e6c161f6748093b1e966ae4d6c2411
17,178
cpp
C++
modules/variants/calc_coverage.cpp
spiralgenetics/biograph
33c78278ce673e885f38435384f9578bfbf9cdb8
[ "BSD-2-Clause" ]
16
2021-07-14T23:32:31.000Z
2022-03-24T16:25:15.000Z
modules/variants/calc_coverage.cpp
spiralgenetics/biograph
33c78278ce673e885f38435384f9578bfbf9cdb8
[ "BSD-2-Clause" ]
9
2021-07-20T20:39:47.000Z
2021-09-16T20:57:59.000Z
modules/variants/calc_coverage.cpp
spiralgenetics/biograph
33c78278ce673e885f38435384f9578bfbf9cdb8
[ "BSD-2-Clause" ]
9
2021-07-15T19:38:35.000Z
2022-01-31T19:24:56.000Z
#include "modules/variants/calc_coverage.h" #include "modules/bio_base/readmap.h" namespace variants { constexpr bool k_cov_dbg = false; int calc_coverage::sum_dir_depth(int fwd, int rev) const { if (m_options.penalize_directional_coverage) { int result = fwd + rev; int disparity = abs(fwd - rev); // ...
32.108411
99
0.618815
[ "vector" ]
945df3610c15622c3e3b199b66ed3f5c07822077
54,577
cpp
C++
particle.cpp
yketa/active_work
99107a0d4935296b673f67469c1e2bd258954b9b
[ "MIT" ]
1
2022-01-19T14:24:46.000Z
2022-01-19T14:24:46.000Z
particle.cpp
yketa/active_work
99107a0d4935296b673f67469c1e2bd258954b9b
[ "MIT" ]
null
null
null
particle.cpp
yketa/active_work
99107a0d4935296b673f67469c1e2bd258954b9b
[ "MIT" ]
1
2021-02-09T16:36:15.000Z
2021-02-09T16:36:15.000Z
#include <cmath> #include <math.h> #include <vector> #include <string> #include <algorithm> #include "dat.hpp" #include "particle.hpp" #include "maths.hpp" ///////////// // CLASSES // ///////////// /************ * PARTICLE * ************/ // CONSTRUCTORS Particle::Particle(double d) : r{0, 0}, theta(0), v{0, 0...
32.937236
189
0.672646
[ "object", "vector" ]
945ed73c1d16c365c1e107576811a7ab0f8055c4
5,097
cpp
C++
kernel/src/drivers/ioports/ioports.cpp
egranata/puppy
dc8b9bd7620966d94b18cbfaf50c9c5e142b9f6c
[ "Apache-2.0" ]
28
2018-06-01T07:01:55.000Z
2022-01-09T23:30:14.000Z
kernel/src/drivers/ioports/ioports.cpp
egranata/puppy
dc8b9bd7620966d94b18cbfaf50c9c5e142b9f6c
[ "Apache-2.0" ]
175
2018-05-30T03:06:15.000Z
2019-02-06T23:54:24.000Z
kernel/src/drivers/ioports/ioports.cpp
egranata/puppy
dc8b9bd7620966d94b18cbfaf50c9c5e142b9f6c
[ "Apache-2.0" ]
2
2019-07-16T02:57:27.000Z
2021-06-25T17:01:13.000Z
/* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
31.658385
89
0.471454
[ "object" ]
9467220a5a9fb5214997b325badc980318394c1f
8,104
cpp
C++
tmp/OldAPI/vulkan_descriptor_sets.cpp
ibvfteh/watersim
8a524f9290c49b84889785160ce875d524ed190b
[ "MIT" ]
null
null
null
tmp/OldAPI/vulkan_descriptor_sets.cpp
ibvfteh/watersim
8a524f9290c49b84889785160ce875d524ed190b
[ "MIT" ]
null
null
null
tmp/OldAPI/vulkan_descriptor_sets.cpp
ibvfteh/watersim
8a524f9290c49b84889785160ce875d524ed190b
[ "MIT" ]
null
null
null
#include "renderer/material/DescriptorSets.h" #include "renderer/context/Device.h" //#include "renderer/context.h" namespace estun { VkDescriptorSetLayoutBinding VulkanDescriptorSets::UboBinding() { return Binding(VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, VK_SHADER_STAGE_VERTEX_BIT); } VkD...
42.429319
182
0.672754
[ "vector" ]
9469549fe1dd92b6ebd7f785c7806bf7ce179dc5
99,075
cpp
C++
01_Develop/libXMFFmpeg/Source/libavcodec/mpeg12.cpp
mcodegeeks/OpenKODE-Framework
d4382d781da7f488a0e7667362a89e8e389468dd
[ "MIT" ]
2
2017-08-03T07:15:00.000Z
2018-06-18T10:32:53.000Z
01_Develop/libXMFFmpeg/Source/libavcodec/mpeg12.cpp
mcodegeeks/OpenKODE-Framework
d4382d781da7f488a0e7667362a89e8e389468dd
[ "MIT" ]
null
null
null
01_Develop/libXMFFmpeg/Source/libavcodec/mpeg12.cpp
mcodegeeks/OpenKODE-Framework
d4382d781da7f488a0e7667362a89e8e389468dd
[ "MIT" ]
2
2019-03-04T22:57:42.000Z
2020-03-06T01:32:26.000Z
/* * MPEG-1/2 decoder * Copyright (c) 2000, 2001 Fabrice Bellard * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
36.491713
155
0.503124
[ "vector" ]
946c61e66f36597e58ea70a537da2064f2ced88e
8,128
cpp
C++
src/league/skeleton.cpp
Morilli/LeagueModel
a364206a9115ffe7eea31bbddf94a646d13552da
[ "MIT" ]
26
2018-12-09T15:35:02.000Z
2021-05-02T11:36:19.000Z
src/league/skeleton.cpp
Morilli/LeagueModel
a364206a9115ffe7eea31bbddf94a646d13552da
[ "MIT" ]
19
2018-12-09T20:14:36.000Z
2021-11-10T07:04:52.000Z
src/league/skeleton.cpp
Morilli/LeagueModel
a364206a9115ffe7eea31bbddf94a646d13552da
[ "MIT" ]
5
2018-11-14T10:41:56.000Z
2022-02-19T22:22:32.000Z
#include "league_model/skeleton.hpp" #include "league_model/skin.hpp" #include <profiling.hpp> #include <map> #define GLM_ENABLE_EXPERIMENTAL #include <glm/gtx/transform.hpp> #include <glm/gtx/quaternion.hpp> #include <glm/gtx/compatibility.hpp> uint32_t StringToHash(const std::string& s) { unsigned int hash = 0; ...
25.479624
150
0.71186
[ "vector", "transform" ]
20e12f05f61890c9d799c7ff6062bfd07c01acb1
3,646
cc
C++
enc_modules/crypto_mk/main/b64_wrapper.cc
ianblenke/mylar
79b3146b53f294b6c5ee4543d566d41130cf25d7
[ "Apache-2.0", "CC0-1.0" ]
240
2015-01-04T10:47:28.000Z
2022-03-17T10:50:34.000Z
enc_modules/crypto_mk/main/b64_wrapper.cc
nikileshsa/mylar
79b3146b53f294b6c5ee4543d566d41130cf25d7
[ "Apache-2.0", "CC0-1.0" ]
8
2015-03-18T14:35:41.000Z
2017-04-11T06:01:41.000Z
enc_modules/crypto_mk/main/b64_wrapper.cc
nikileshsa/mylar
79b3146b53f294b6c5ee4543d566d41130cf25d7
[ "Apache-2.0", "CC0-1.0" ]
42
2015-01-18T12:22:49.000Z
2022-01-20T04:21:47.000Z
#include <main/b64_wrapper.hh> #include <main/multikey.hh> #include <main/multikey_sum.hh> #include <main/ec.hh> #include <main/base64.h> using namespace std; static string marshall(const ec_point & p) { return base64_encode(p.to_bytes()); } static string marshall(const ec_scalar & s) { return base64_encod...
24.972603
185
0.717499
[ "vector" ]
20e2bab297e82fdd5affcae08245ffd3748526f2
10,358
cpp
C++
code/Optimizer/LexicaseOptimizer/LexicaseOptimizer.cpp
cliff-bohm/Comparitive_Hybrid_Approach_Replication
44afa3ea663bc06eeca0bc272909329d8ffe81ec
[ "MIT" ]
null
null
null
code/Optimizer/LexicaseOptimizer/LexicaseOptimizer.cpp
cliff-bohm/Comparitive_Hybrid_Approach_Replication
44afa3ea663bc06eeca0bc272909329d8ffe81ec
[ "MIT" ]
null
null
null
code/Optimizer/LexicaseOptimizer/LexicaseOptimizer.cpp
cliff-bohm/Comparitive_Hybrid_Approach_Replication
44afa3ea663bc06eeca0bc272909329d8ffe81ec
[ "MIT" ]
null
null
null
// MABE is a product of The Hintze Lab @ MSU // for general research information: // hintzelab.msu.edu // for MABE documentation: // github.com/Hintzelab/MABE/wiki // // Copyright (c) 2015 Michigan State University. All rights reserved. // to view the full license, visit: // github...
38.649254
119
0.710562
[ "vector" ]
20e514e687b313626ff378ad9dc91994589aacf4
12,685
cpp
C++
third_party/externals/angle2/tests/angle_tests/TextureTest.cpp
zhaodm/skia_sdl
8724ae26584df523eb7bb814ffe7aec5f597d187
[ "BSD-3-Clause" ]
null
null
null
third_party/externals/angle2/tests/angle_tests/TextureTest.cpp
zhaodm/skia_sdl
8724ae26584df523eb7bb814ffe7aec5f597d187
[ "BSD-3-Clause" ]
null
null
null
third_party/externals/angle2/tests/angle_tests/TextureTest.cpp
zhaodm/skia_sdl
8724ae26584df523eb7bb814ffe7aec5f597d187
[ "BSD-3-Clause" ]
null
null
null
#include "ANGLETest.h" // Use this to select which configurations (e.g. which renderer, which GLES major version) these tests should be run against. ANGLE_TYPED_TEST_CASE(TextureTest, ES2_D3D9, ES2_D3D11); template<typename T> class TextureTest : public ANGLETest { protected: TextureTest() : ANGLETest(T::GetGlesM...
30.863747
125
0.65069
[ "render", "vector" ]
20ee2eebf26529fb2a397cd313c14a718965d664
3,116
cpp
C++
src/aten/src/ATen/native/npu/IndexKernelNpu.cpp
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
src/aten/src/ATen/native/npu/IndexKernelNpu.cpp
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
src/aten/src/ATen/native/npu/IndexKernelNpu.cpp
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2020, Huawei Technologies.All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://opensource.org/licenses/BSD-3-Clause // // Unless required by appli...
32.8
75
0.738447
[ "vector" ]
20f10a9824be188d43fe1463f8d3cf5659308298
5,801
cpp
C++
Engine/Source/Runtime/Renderer/Private/CustomDepthRendering.cpp
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
1
2022-01-29T18:36:12.000Z
2022-01-29T18:36:12.000Z
Engine/Source/Runtime/Renderer/Private/CustomDepthRendering.cpp
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
null
null
null
Engine/Source/Runtime/Renderer/Private/CustomDepthRendering.cpp
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
null
null
null
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. /*============================================================================= CustomDepthRendering.cpp: CustomDepth rendering implementation. =============================================================================*/ #include "CustomDepthRendering.h...
50.443478
223
0.714877
[ "mesh" ]
20f3a7cf4f9224ddc7baa4a5fe1b2737dde96284
34,421
cpp
C++
OpenNN/opennn/loss_index.cpp
wagnrd/Pong
0c50b22e0805b2ae19ff07d25859a6358217b377
[ "MIT" ]
4
2019-03-06T16:53:27.000Z
2021-07-28T03:05:08.000Z
OpenNN/opennn/loss_index.cpp
wagnrd/Pong
0c50b22e0805b2ae19ff07d25859a6358217b377
[ "MIT" ]
1
2021-02-11T17:10:29.000Z
2021-02-11T20:54:03.000Z
OpenNN/opennn/loss_index.cpp
wagnrd/Pong
0c50b22e0805b2ae19ff07d25859a6358217b377
[ "MIT" ]
null
null
null
/****************************************************************************************************************/ /* */ /* OpenNN: Open Neural Networks Library ...
28.541459
186
0.683711
[ "object", "vector", "model" ]
20f8f34074a3bab60816d3baa813a62de91f557c
231
hpp
C++
tools/rasterize/scale.hpp
Chainsawkitten/PhotoGeo
19c470bdf87dd26ffa6375fd36eb1a9ac3e5c4e7
[ "MIT" ]
null
null
null
tools/rasterize/scale.hpp
Chainsawkitten/PhotoGeo
19c470bdf87dd26ffa6375fd36eb1a9ac3e5c4e7
[ "MIT" ]
32
2018-01-31T16:09:09.000Z
2018-04-13T14:57:56.000Z
tools/rasterize/scale.hpp
Chainsawkitten/PhotoGeo
19c470bdf87dd26ffa6375fd36eb1a9ac3e5c4e7
[ "MIT" ]
null
null
null
#ifndef SCALE_HPP #define SCALE_HPP #include <photogeo.h> /** * Scale a vector image. * @param svg The vector image to scale. * @param scale The scale. */ void scale_svg(ptg_tracing_results* svg, unsigned int scale); #endif
16.5
61
0.718615
[ "vector" ]
20fb99de22a14d67113b2630aa20e7040f599454
5,628
cpp
C++
Competitive Programming/ICPC/2017/Regionals/K (Keep It Covered)/K.cpp
NelsonGomesNeto/ProgramC
e743b1b869f58f7f3022d18bac00c5e0b078562e
[ "MIT" ]
3
2018-12-18T13:39:42.000Z
2021-06-23T18:05:18.000Z
Competitive Programming/ICPC/2017/Regionals/K (Keep It Covered)/K.cpp
NelsonGomesNeto/ProgramC
e743b1b869f58f7f3022d18bac00c5e0b078562e
[ "MIT" ]
1
2018-11-02T21:32:40.000Z
2018-11-02T22:47:12.000Z
Competitive Programming/ICPC/2017/Regionals/K (Keep It Covered)/K.cpp
NelsonGomesNeto/ProgramC
e743b1b869f58f7f3022d18bac00c5e0b078562e
[ "MIT" ]
6
2018-10-27T14:07:52.000Z
2019-11-14T13:49:29.000Z
#include <bits/stdc++.h> #define RETRIEVE if(1) using namespace std; // left, down, right, up int dy[4] = {0, 1, 0, -1}, dx[4] = {-1, 0, 1, 0}; // line (1 (horizontal) : 2 (vertical)) flow 2 // corner (3 (left, down), 4 (right, down), 5 (right, up), 6 (left, up)) flow 2 // square (7 (left), 8 (down), 9 (right), 10 (up)...
31.617978
121
0.450604
[ "vector" ]
1f19812c6ac46015df10f3dc2c856a74fcf80c5b
383
cpp
C++
Dataset/Leetcode/valid/88/469.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/valid/88/469.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/valid/88/469.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution { public: void XXX(vector<int>& nums1, int m, vector<int>& nums2, int n) { int index = m + n; while (--index >= 0 && n >= 1) { if (m == 0) nums1[index] = nums2[--n]; else if (nums2[n - 1] > nums1[m - 1]) nums1[index] = nums2[--n]; ...
25.533333
75
0.420366
[ "vector" ]
1f1ac69a6ba2b4a84d1f9d59b6295bf9f01c7950
1,798
cpp
C++
competitive-programming/kickstart/qualification-round-2022/h_index_.cpp
dushimsam/deep-dive-in-algorithms
0c6a04b3115ba789ab4aca68cce51c9a3c3a075a
[ "MIT" ]
null
null
null
competitive-programming/kickstart/qualification-round-2022/h_index_.cpp
dushimsam/deep-dive-in-algorithms
0c6a04b3115ba789ab4aca68cce51c9a3c3a075a
[ "MIT" ]
null
null
null
competitive-programming/kickstart/qualification-round-2022/h_index_.cpp
dushimsam/deep-dive-in-algorithms
0c6a04b3115ba789ab4aca68cce51c9a3c3a075a
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; class HIndexProblem { vector<int> citations; vector<int> visited; public: HIndexProblem(); HIndexProblem(vector<int> citations) { this->citations = citations; } int findHIndex() { int counter = visited.size(); sor...
23.657895
62
0.495551
[ "vector" ]
1f201d6be7aa77d8e4ee45b13822b500425a66e2
7,016
cpp
C++
2021/0103-somethingHuman/genuary20210103/src/ofApp.cpp
danielricart/genuary
b38651196cd36ee516a6a81d365c6b1032fa1f08
[ "MIT" ]
null
null
null
2021/0103-somethingHuman/genuary20210103/src/ofApp.cpp
danielricart/genuary
b38651196cd36ee516a6a81d365c6b1032fa1f08
[ "MIT" ]
null
null
null
2021/0103-somethingHuman/genuary20210103/src/ofApp.cpp
danielricart/genuary
b38651196cd36ee516a6a81d365c6b1032fa1f08
[ "MIT" ]
null
null
null
#include "ofApp.h" #include <stdio.h> //-------------------------------------------------------------- void ofApp::setup(){ ofSetBackgroundAuto(false); ofSetFrameRate(8); ofSetBackgroundColor(0,0,0); std::printf("first generation width: %d\n", currentGen.size()); std::printf("message width: %d\n", ...
29.233333
123
0.447406
[ "vector" ]
1f2581691be9c3086b393fefc09288263265897d
1,756
cpp
C++
tests/bresenham/main.cpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
2
2016-01-27T13:18:14.000Z
2018-05-11T01:11:32.000Z
tests/bresenham/main.cpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
null
null
null
tests/bresenham/main.cpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
3
2018-05-11T01:11:34.000Z
2021-04-24T19:47:45.000Z
// Copyright Carl Philipp Reh 2006 - 2019. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <sge/bresenham/normal.hpp> #include <fcppt/catch/begin.hpp> #include <fcppt/catch/end.hpp>...
29.762712
88
0.609339
[ "vector" ]
1f27e91058ab29d2a03f165efde6d1d4182ac2a0
1,496
hpp
C++
include/object.hpp
MistEO/physics
5b4b60d9560d7e05aff19b5848dcf2723720f75c
[ "MIT" ]
1
2021-07-11T12:38:34.000Z
2021-07-11T12:38:34.000Z
include/object.hpp
MistEO/physics
5b4b60d9560d7e05aff19b5848dcf2723720f75c
[ "MIT" ]
null
null
null
include/object.hpp
MistEO/physics
5b4b60d9560d7e05aff19b5848dcf2723720f75c
[ "MIT" ]
1
2022-02-07T06:06:26.000Z
2022-02-07T06:06:26.000Z
#pragma once #include <vector> #include <string> #include <stdexcept> #include <atomic> #include <mutex> #include "define.h" namespace meophys { class Object { public: Object() = default; Object(std::string name, long double mass) : _name(std::move(name)), _mass(mass) { ...
31.829787
88
0.594251
[ "object", "vector" ]
1f2a463693ed0a6d384df4bb6c7ebfa2cd6fd089
14,887
cc
C++
models/processor/spx/pipeline/inorder.cc
Basseuph/manifold
99779998911ed7e8b8ff6adacc7f93080409a5fe
[ "BSD-3-Clause" ]
8
2016-01-22T18:28:48.000Z
2021-05-07T02:27:21.000Z
models/processor/spx/pipeline/inorder.cc
Basseuph/manifold
99779998911ed7e8b8ff6adacc7f93080409a5fe
[ "BSD-3-Clause" ]
3
2016-04-15T02:58:58.000Z
2017-01-19T17:07:34.000Z
models/processor/spx/pipeline/inorder.cc
Basseuph/manifold
99779998911ed7e8b8ff6adacc7f93080409a5fe
[ "BSD-3-Clause" ]
10
2015-12-11T04:16:55.000Z
2019-05-25T20:58:13.000Z
#ifdef USE_QSIM #include "inorder.h" #include "core.h" using namespace std; using namespace libconfig; using namespace manifold; using namespace manifold::spx; inorder_t::inorder_t(spx_core_t *spx_core, libconfig::Config *parser) { type = SPX_PIPELINE_INORDER; core = spx_core; // set config set_conf...
36.667488
259
0.574864
[ "vector" ]
1f2b57f536e12eb528e9309b2d87d65198f68355
2,221
cpp
C++
1222/P1222/P1222/main.cpp
swy20190/Leetcode-Cracker
3b80eacfa63983d5fcc50442f0813296d5c1af94
[ "MIT" ]
null
null
null
1222/P1222/P1222/main.cpp
swy20190/Leetcode-Cracker
3b80eacfa63983d5fcc50442f0813296d5c1af94
[ "MIT" ]
null
null
null
1222/P1222/P1222/main.cpp
swy20190/Leetcode-Cracker
3b80eacfa63983d5fcc50442f0813296d5c1af94
[ "MIT" ]
null
null
null
#include <vector> #include <algorithm> using namespace std; class Solution { public: vector<vector<int>> queensAttacktheKing(vector<vector<int>>& queens, vector<int>& king) { int **map = new int*[8]; for (int i = 0; i < 8; i++) { map[i] = new int[8]; } for (int i = 0; i < 8; i++) { for (int j = 0; j <...
22.896907
90
0.498424
[ "vector" ]
1f2da3ebbed133c66aed594d14d47abf1cd11304
802
cpp
C++
JethroPans_TDShooter/src/ending_screen.cpp
Jettypanini/gba-sprite-engine
04fc4375f64e8a0d0505bcd9195292d93acc1bf6
[ "MIT" ]
null
null
null
JethroPans_TDShooter/src/ending_screen.cpp
Jettypanini/gba-sprite-engine
04fc4375f64e8a0d0505bcd9195292d93acc1bf6
[ "MIT" ]
null
null
null
JethroPans_TDShooter/src/ending_screen.cpp
Jettypanini/gba-sprite-engine
04fc4375f64e8a0d0505bcd9195292d93acc1bf6
[ "MIT" ]
null
null
null
#include "ending_screen.h" #include "starting_screen.h" std::vector<Background *> EndingScreen::backgrounds() { return {}; } std::vector<Sprite *> EndingScreen::sprites() { return {}; } void EndingScreen::load() { engine.get()->enableText(); TextStream::instance().setText("Congratul...
25.870968
90
0.622195
[ "vector" ]
1f314a667107c79fe657ae230a6faf74a79f9918
42,111
hpp
C++
include/elacuts.hpp
serjinio/thesis_ana
633a61dee56cf2cf4dcb67997ac87338537fb578
[ "MIT" ]
null
null
null
include/elacuts.hpp
serjinio/thesis_ana
633a61dee56cf2cf4dcb67997ac87338537fb578
[ "MIT" ]
null
null
null
include/elacuts.hpp
serjinio/thesis_ana
633a61dee56cf2cf4dcb67997ac87338537fb578
[ "MIT" ]
null
null
null
/** * \file elacuts.hpp * \brief Cuts for elastic scattering event selection. * */ #pragma once #include "TChain.h" #include "TGraph.h" #include "TCut.h" #include "common.hpp" #include "consts.hpp" #include "scattevt.hpp" #include "msgoutput.hpp" #include "varthetacut.hpp" #include "vertzalg.hpp" #include "e...
34.773741
98
0.597207
[ "vector" ]
1f3695914cda720c4d2450930c239258539fa160
13,663
cpp
C++
tools/map_maker/map_data/src/MapDataValidator.cpp
seowwj/map
2afacd50e1b732395c64b1884ccfaeeca0040ee7
[ "MIT" ]
61
2019-12-19T20:57:24.000Z
2022-03-29T15:20:51.000Z
tools/map_maker/map_data/src/MapDataValidator.cpp
seowwj/map
2afacd50e1b732395c64b1884ccfaeeca0040ee7
[ "MIT" ]
54
2020-04-05T05:32:47.000Z
2022-03-15T18:42:33.000Z
tools/map_maker/map_data/src/MapDataValidator.cpp
seowwj/map
2afacd50e1b732395c64b1884ccfaeeca0040ee7
[ "MIT" ]
31
2019-12-20T07:37:39.000Z
2022-03-16T13:06:16.000Z
// ----------------- BEGIN LICENSE BLOCK --------------------------------- // // Copyright (C) 2018-2019 Intel Corporation // // SPDX-License-Identifier: MIT // // ----------------- END LICENSE BLOCK ----------------------------------- #include "ad/map/maker/map_data/MapDataValidator.hpp" #include <ad/map/maker/common...
37.330601
120
0.650443
[ "geometry" ]
1f39e9d6c26df6d3eaa7608472d4a17bcfd05334
5,499
cpp
C++
TestsWithGL/test_t2d_mpm_me_s_t_bar_above_ground.cpp
MingAtUWA/SimpleMPM2
7a1d7c257c621123d85a0630e93d42ae25c70fb4
[ "MIT" ]
null
null
null
TestsWithGL/test_t2d_mpm_me_s_t_bar_above_ground.cpp
MingAtUWA/SimpleMPM2
7a1d7c257c621123d85a0630e93d42ae25c70fb4
[ "MIT" ]
null
null
null
TestsWithGL/test_t2d_mpm_me_s_t_bar_above_ground.cpp
MingAtUWA/SimpleMPM2
7a1d7c257c621123d85a0630e93d42ae25c70fb4
[ "MIT" ]
null
null
null
#include "TestsWithGL_pcp.h" #include "ItemArray.hpp" #include "test_sim_core.h" #include "TriangleMesh.h" #include "TriangleMeshToParticles.h" #include "Model_T2D_ME_s.h" #include "Step_T2D_ME_s.h" #include "DisplayModel_T2D.h" #include "ModelDataOutput_T2D_ME_s.h" #include "TimeHistoryOutput_T2D_ME_s.h" #inclu...
26.061611
90
0.695399
[ "model" ]
1f4653f3272c5dcd0fd7a89f3b451d4d7922a86e
1,624
hpp
C++
include/GL/Sprite.hpp
ST64/StarrySky
5f7a2e0bc6d9056195397cf2e1841265494dfdf6
[ "MIT" ]
null
null
null
include/GL/Sprite.hpp
ST64/StarrySky
5f7a2e0bc6d9056195397cf2e1841265494dfdf6
[ "MIT" ]
null
null
null
include/GL/Sprite.hpp
ST64/StarrySky
5f7a2e0bc6d9056195397cf2e1841265494dfdf6
[ "MIT" ]
null
null
null
#ifndef STARRYSKY_SPRITE_HPP #define STARRYSKY_SPRITE_HPP #include <GL/PPCollider.hpp> #include <GL/SpriteData.hpp> #include <GL/Texture.hpp> #include <util/Rect.hpp> #include <glm/glm.hpp> #include <array> #include <memory> #define WH_EPSILON 0.01 struct Sprite : public PPCollider { void setStencil(bool stencil_state...
36.909091
175
0.730296
[ "render", "transform" ]
1f46d46c0b9514a754291047ab6ac1eba9344805
10,096
cc
C++
src/caffe2/binaries/dream.cc
TimmvonderMehden/caffe2_cpp_tutorial
d207768adaf13ae6bc8e49ba0868234001a43ce9
[ "BSD-2-Clause" ]
23
2020-09-10T14:33:18.000Z
2022-03-09T09:07:30.000Z
src/caffe2/binaries/dream.cc
TimmvonderMehden/caffe2_cpp_tutorial
d207768adaf13ae6bc8e49ba0868234001a43ce9
[ "BSD-2-Clause" ]
2
2020-09-11T03:01:20.000Z
2020-09-30T03:04:19.000Z
src/caffe2/binaries/dream.cc
TimmvonderMehden/caffe2_cpp_tutorial
d207768adaf13ae6bc8e49ba0868234001a43ce9
[ "BSD-2-Clause" ]
7
2020-09-17T20:53:50.000Z
2021-11-19T15:32:49.000Z
#include <caffe2/core/init.h> #include <caffe2/core/net.h> #include <caffe2/utils/proto_utils.h> #include "caffe2/util/blob.h" #include "caffe2/util/tensor.h" #include "caffe2/zoo/keeper.h" #include "cvplot/cvplot.h" #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> CAFFE2_DEFINE_string(mo...
34.934256
80
0.62609
[ "vector", "model" ]
1f525ed2cfe591feeeaf9a38b9d973aa806b72b4
1,108
cpp
C++
aulas/aula24/mdc_vetor.cpp
senapk/fup_2014_2
5fc2986724f2e5fb912524b6208744b7295c6347
[ "Apache-2.0" ]
null
null
null
aulas/aula24/mdc_vetor.cpp
senapk/fup_2014_2
5fc2986724f2e5fb912524b6208744b7295c6347
[ "Apache-2.0" ]
null
null
null
aulas/aula24/mdc_vetor.cpp
senapk/fup_2014_2
5fc2986724f2e5fb912524b6208744b7295c6347
[ "Apache-2.0" ]
null
null
null
///////////////////////////////////////////// // Fundamentos de Programação - UFC Quixada // Baixe o motor.h ou comente o include // motor.h: https://github.com/senapk/arcade ///////////////////////////////////////////// #include <motor.h> #include <iostream> #include <algorithm> #include <vector> using namespace std...
24.086957
76
0.564079
[ "vector" ]
1f5d352e69a8e2f6f0dc1ddfb7e9574a152b8afd
643
cpp
C++
Ladders/<1300 /B_Queue_at_the_School.cpp
aaryanajaysharma/a2oj-ladder-solutions
ca80e75fc3a08d7c80593cf0411464a8e9d85d4c
[ "MIT" ]
5
2022-01-21T16:14:26.000Z
2022-02-23T11:02:36.000Z
Ladders/<1300 /B_Queue_at_the_School.cpp
aaryanajaysharma/a2oj-ladder-solutions
ca80e75fc3a08d7c80593cf0411464a8e9d85d4c
[ "MIT" ]
null
null
null
Ladders/<1300 /B_Queue_at_the_School.cpp
aaryanajaysharma/a2oj-ladder-solutions
ca80e75fc3a08d7c80593cf0411464a8e9d85d4c
[ "MIT" ]
null
null
null
#include <iostream> #include <algorithm> #include <string> #include <vector> #include <set> #include <unordered_set> #include <map> #include <unordered_map> #include <queue> #include <math.h> #include <stdlib.h> #include <deque> using namespace std; int main() { int n, t; string s; cin >> n >> t; cin >...
17.378378
47
0.44168
[ "vector" ]
1f60fdc3636c19c177636805bbeb8013cb0d2f03
37,589
cpp
C++
applications/CompressiblePotentialFlowApplication/custom_processes/define_3d_wake_process.cpp
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
778
2017-01-27T16:29:17.000Z
2022-03-30T03:01:51.000Z
applications/CompressiblePotentialFlowApplication/custom_processes/define_3d_wake_process.cpp
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
6,634
2017-01-15T22:56:13.000Z
2022-03-31T15:03:36.000Z
applications/CompressiblePotentialFlowApplication/custom_processes/define_3d_wake_process.cpp
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
224
2017-02-07T14:12:49.000Z
2022-03-06T23:09:34.000Z
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Inigo Lopez and Marc Nunez // ...
41.352035
121
0.680891
[ "geometry", "vector" ]
48f1bf1ec8aa30e740e07daa5408a5986904f55a
14,312
hpp
C++
src/axom/mint/tests/mint_test_utilities.hpp
bmhan12/axom
fbee125aec6357340f35b6fd5d0d4a62a3c80733
[ "BSD-3-Clause" ]
86
2019-04-12T20:39:37.000Z
2022-01-28T17:06:08.000Z
src/axom/mint/tests/mint_test_utilities.hpp
bmhan12/axom
fbee125aec6357340f35b6fd5d0d4a62a3c80733
[ "BSD-3-Clause" ]
597
2019-04-25T22:36:16.000Z
2022-03-31T20:21:54.000Z
src/axom/mint/tests/mint_test_utilities.hpp
bmhan12/axom
fbee125aec6357340f35b6fd5d0d4a62a3c80733
[ "BSD-3-Clause" ]
21
2019-06-27T15:53:08.000Z
2021-09-30T20:17:41.000Z
// Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and // other Axom Project Developers. See the top-level LICENSE file for details. // // SPDX-License-Identifier: (BSD-3-Clause) /*! * \file * * \brief Consists of utility functions to facilitate in test development. */ // Axom includes #include ...
31.045553
83
0.615847
[ "mesh", "object" ]
48f6a5b899491256b75dd3bc78ad085c1222da3c
13,256
cpp
C++
nau/src/nau/render/optix/passOptixPrime.cpp
Khirion/nau
47a2ad8e0355a264cd507da5e7bba1bf7abbff95
[ "MIT" ]
29
2015-09-16T22:28:30.000Z
2022-03-11T02:57:36.000Z
nau/src/nau/render/optix/passOptixPrime.cpp
Khirion/nau
47a2ad8e0355a264cd507da5e7bba1bf7abbff95
[ "MIT" ]
1
2017-03-29T13:32:58.000Z
2017-03-31T13:56:03.000Z
nau/src/nau/render/optix/passOptixPrime.cpp
Khirion/nau
47a2ad8e0355a264cd507da5e7bba1bf7abbff95
[ "MIT" ]
10
2015-10-15T14:20:15.000Z
2022-02-17T10:37:29.000Z
#include "nau/config.h" #if NAU_OPTIX == 1 #include <glbinding/gl/gl.h> using namespace gl; #define __gl_h_ #include <cuda_runtime.h> #include <cuda_gl_interop.h> #include "nau/render/optix/passOptixPrime.h" #include "nau.h" #include "nau/slogger.h" #include "nau/debug/profile.h" #include "nau/geometry/frustum.h"...
26.301587
122
0.737779
[ "geometry", "render", "vector", "model" ]
48f945f38a4ac1575aab9b1b1f34e2117fdd805c
4,158
hpp
C++
libcaf_net/caf/net/connection_acceptor.hpp
seewpx/actor-framework
65ecf35317b81d7a211848d59e734f43483fe410
[ "BSD-3-Clause" ]
null
null
null
libcaf_net/caf/net/connection_acceptor.hpp
seewpx/actor-framework
65ecf35317b81d7a211848d59e734f43483fe410
[ "BSD-3-Clause" ]
null
null
null
libcaf_net/caf/net/connection_acceptor.hpp
seewpx/actor-framework
65ecf35317b81d7a211848d59e734f43483fe410
[ "BSD-3-Clause" ]
null
null
null
// This file is part of CAF, the C++ Actor Framework. See the file LICENSE in // the main distribution directory for license terms and copyright or visit // https://github.com/actor-framework/actor-framework/blob/master/LICENSE. #pragma once #include "caf/logger.hpp" #include "caf/net/socket.hpp" #include "caf/net/st...
27.355263
80
0.681097
[ "object" ]
48f9b837de14dfdc80d6f29ae19b8ef0963f81a9
805
cc
C++
services/resource_coordinator/public/cpp/resource_coordinator_features.cc
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
services/resource_coordinator/public/cpp/resource_coordinator_features.cc
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
services/resource_coordinator/public/cpp/resource_coordinator_features.cc
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
// Copyright 2017 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 "services/resource_coordinator/public/cpp/resource_coordinator_features.h" namespace features { // Globally enable the GRC. const base::Feature...
30.961538
83
0.801242
[ "render" ]