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
2e98fc7e6c42f246a3bcacc578bfaef419ab0518
28,606
cpp
C++
codecs/image.cpp
mattvchandler/asciiart
65eeb38aa42b98d49ce15bb2cc3a98950edb18cc
[ "MIT" ]
5
2020-06-02T18:05:43.000Z
2022-02-19T10:44:47.000Z
codecs/image.cpp
mattvchandler/asciiart
65eeb38aa42b98d49ce15bb2cc3a98950edb18cc
[ "MIT" ]
null
null
null
codecs/image.cpp
mattvchandler/asciiart
65eeb38aa42b98d49ce15bb2cc3a98950edb18cc
[ "MIT" ]
1
2021-11-29T15:32:54.000Z
2021-11-29T15:32:54.000Z
#include "image.hpp" #include <array> #include <fstream> #include <iostream> #include <iterator> #include <limits> #include <memory> #include <set> #include <stdexcept> #include <tuple> #include <cassert> #include <cmath> #include <cstring> #ifdef HAS_ENDIAN #include <endian.h> #endif #ifdef HAS_BYTESWAP #include <b...
31.997763
202
0.518807
[ "vector" ]
2e9a3cea064263739acff98db3080a2968237d51
324
cpp
C++
Lab7/main.cpp
SamuelLazurca/oop-2022
8c6f56806e20e85014b5ca402e933c3ac85f31aa
[ "MIT" ]
null
null
null
Lab7/main.cpp
SamuelLazurca/oop-2022
8c6f56806e20e85014b5ca402e933c3ac85f31aa
[ "MIT" ]
null
null
null
Lab7/main.cpp
SamuelLazurca/oop-2022
8c6f56806e20e85014b5ca402e933c3ac85f31aa
[ "MIT" ]
null
null
null
#include <iostream> #include "vector.h" using namespace std; int main() { Vector<int> v1; v1.Push(1); v1.Push(2); v1.Set(3, 0); v1.Insert(4, 0); v1.Sort(); for(unsigned i=0;i<v1.Count();i++) std::cout << v1.Get(i)<<" "; std::cout << std::endl << v1.Count(); cout << endl << v1.firstIndexOf(4); return ...
14.727273
38
0.57716
[ "vector" ]
2eaf8c29e5a05eee3dbd5d6f21dd857484459cec
5,854
hpp
C++
examples/red-pitaya/spectrum/spectrum.hpp
Koheron/koheron-sdk
82b732635f1adf5dd0b04b9290b589c1fc091f29
[ "MIT" ]
77
2016-09-20T18:44:14.000Z
2022-03-30T16:04:09.000Z
examples/red-pitaya/spectrum/spectrum.hpp
rsarwar87/koheron-sdk
02c35bf3c1c29f1029fad18b881dbd193efac5a7
[ "MIT" ]
101
2016-09-05T15:44:25.000Z
2022-03-29T09:22:09.000Z
examples/red-pitaya/spectrum/spectrum.hpp
rsarwar87/koheron-sdk
02c35bf3c1c29f1029fad18b881dbd193efac5a7
[ "MIT" ]
34
2016-12-12T07:21:57.000Z
2022-01-12T21:00:52.000Z
/// Spectrum analyzer driver /// /// (c) Koheron #ifndef __DRIVERS_SPECTRUM_HPP__ #define __DRIVERS_SPECTRUM_HPP__ #include <context.hpp> #include <cmath> constexpr float SAMPLING_RATE = 125E6; constexpr uint32_t WFM_SIZE = mem::spectrum_range/sizeof(float); constexpr uint32_t FIFO_BUFF_SIZE = 4096; // http://www.x...
28.837438
108
0.63478
[ "vector" ]
2eb9379eaf5338c306309c10640ef5ebbe58e539
4,584
hpp
C++
boost/numeric/mtl/io/read_el_matrix.hpp
lit-uriy/mtl4-mirror
37cf7c2847165d3537cbc3400cb5fde6f80e3d8b
[ "MTLL" ]
24
2019-03-26T15:25:45.000Z
2022-03-26T10:00:45.000Z
boost/numeric/mtl/io/read_el_matrix.hpp
lit-uriy/mtl4-mirror
37cf7c2847165d3537cbc3400cb5fde6f80e3d8b
[ "MTLL" ]
2
2020-04-17T12:35:32.000Z
2021-03-03T15:46:25.000Z
boost/numeric/mtl/io/read_el_matrix.hpp
lit-uriy/mtl4-mirror
37cf7c2847165d3537cbc3400cb5fde6f80e3d8b
[ "MTLL" ]
10
2019-12-01T13:40:30.000Z
2022-01-14T08:39:54.000Z
// Software License for MTL // // Copyright (c) 2007 The Trustees of Indiana University. // 2008 Dresden University of Technology and the Trustees of Indiana University. // 2010 SimuNova UG (haftungsbeschränkt), www.simunova.com. // All rights reserved. // Authors: Peter Gottschling and And...
27.614458
94
0.664921
[ "vector" ]
2eb93f5dbe0057332d3fc0e140b81dabcaad65a7
5,652
cpp
C++
src/qt/PlotController.cpp
satra/murfi2
95d954a8735c107caae2ab4eec2926fafe420402
[ "Apache-2.0" ]
null
null
null
src/qt/PlotController.cpp
satra/murfi2
95d954a8735c107caae2ab4eec2926fafe420402
[ "Apache-2.0" ]
null
null
null
src/qt/PlotController.cpp
satra/murfi2
95d954a8735c107caae2ab4eec2926fafe420402
[ "Apache-2.0" ]
null
null
null
#include "PlotController.h" #include "qcustomplot.h" #include<vnl/vnl_vector.h> #include "RtActivation.h" #include "RtData.h" #include "RtDataIDs.h" #include "RtDesignMatrix.h" #include "RtExperiment.h" #include "RtMotion.h" using std::pair; using std::string; using std::vector; PlotController::PlotController(QCus...
30.885246
79
0.689314
[ "vector" ]
e485929771d73f7c0f01fde17933c7555d852215
3,949
cpp
C++
Sources/PSHelix.cpp
Slin/ProjectSteve
3e94c61e3d114fb4c15f9bcc72b1508d185f7a9c
[ "MIT" ]
null
null
null
Sources/PSHelix.cpp
Slin/ProjectSteve
3e94c61e3d114fb4c15f9bcc72b1508d185f7a9c
[ "MIT" ]
null
null
null
Sources/PSHelix.cpp
Slin/ProjectSteve
3e94c61e3d114fb4c15f9bcc72b1508d185f7a9c
[ "MIT" ]
null
null
null
// // PSHelix.cpp // ProjectSteve // // Copyright 2018 by SlinDev. All rights reserved. // Unauthorized use is punishable by torture, mutilation, and vivisection. // #include "PSHelix.h" #include "PSWorld.h" #include "PSSpawner.h" #include "PSIPad.h" namespace PS { const std::array<RN::Color, 4> GENE_COLORS = { ...
24.226994
120
0.671056
[ "shape", "model" ]
e48c3b7541f990d3dbcc4f1b073d0487bdad6b48
45,969
cpp
C++
dev/Code/Sandbox/Editor/Geometry/EdMesh.cpp
santosh90n/lumberyard-1
9608bcf905bb60e9f326bd3fe8297381c22d83a6
[ "AML" ]
1
2019-02-12T06:44:50.000Z
2019-02-12T06:44:50.000Z
dev/Code/Sandbox/Editor/Geometry/EdMesh.cpp
santosh90n/lumberyard-1
9608bcf905bb60e9f326bd3fe8297381c22d83a6
[ "AML" ]
null
null
null
dev/Code/Sandbox/Editor/Geometry/EdMesh.cpp
santosh90n/lumberyard-1
9608bcf905bb60e9f326bd3fe8297381c22d83a6
[ "AML" ]
null
null
null
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
29.714932
149
0.497944
[ "mesh", "geometry", "render", "object", "vector", "transform" ]
e49484554a130f40646f7f19387ef2accdc196de
58,482
cpp
C++
code/deps/tpie/test/unit/test_pipelining.cpp
mbeckem/msc
93e71ba163a7ffef4eec3e83934fa793f3f50ff6
[ "MIT" ]
null
null
null
code/deps/tpie/test/unit/test_pipelining.cpp
mbeckem/msc
93e71ba163a7ffef4eec3e83934fa793f3f50ff6
[ "MIT" ]
null
null
null
code/deps/tpie/test/unit/test_pipelining.cpp
mbeckem/msc
93e71ba163a7ffef4eec3e83934fa793f3f50ff6
[ "MIT" ]
null
null
null
// -*- mode: c++; tab-width: 4; indent-tabs-mode: t; c-file-style: "stroustrup"; -*- // vi:set ts=4 sts=4 sw=4 noet cino+=(0 : // Copyright 2011, 2012, 2013 The TPIE development team // // This file is part of TPIE. // // TPIE is free software: you can redistribute it and/or modify it under // the terms of the GNU Le...
25.045824
164
0.656236
[ "vector" ]
e497d1b775bafbe52f55561276ddac813a786b46
12,385
hxx
C++
private/inet/mshtml/src/site/include/intl.hxx
King0987654/windows2000
01f9c2e62c4289194e33244aade34b7d19e7c9b8
[ "MIT" ]
11
2017-09-02T11:27:08.000Z
2022-01-02T15:25:24.000Z
private/inet/mshtml/src/site/include/intl.hxx
King0987654/windows2000
01f9c2e62c4289194e33244aade34b7d19e7c9b8
[ "MIT" ]
null
null
null
private/inet/mshtml/src/site/include/intl.hxx
King0987654/windows2000
01f9c2e62c4289194e33244aade34b7d19e7c9b8
[ "MIT" ]
14
2019-01-16T01:01:23.000Z
2022-02-20T15:54:27.000Z
//+--------------------------------------------------------------------------- // // Microsoft Forms // Copyright (C) Microsoft Corporation, 1994-1996 // // File: intl.hxx // // Contents: Internationalization Support Functions // //-------------------------------------------------------------------...
26.520343
98
0.610981
[ "render" ]
e49a5275cf2f5d9bc4be81567a1710b5c09e1fc5
2,036
cpp
C++
src/reader/xmlReader.cpp
martintb/correlate
b0be89af4e57cc5fe96ec3a5c7a9bb84430d2433
[ "MIT" ]
3
2018-02-26T19:53:46.000Z
2021-05-05T10:06:52.000Z
src/reader/xmlReader.cpp
martintb/correlate
b0be89af4e57cc5fe96ec3a5c7a9bb84430d2433
[ "MIT" ]
1
2018-07-03T14:38:15.000Z
2018-07-09T19:06:01.000Z
src/reader/xmlReader.cpp
martintb/correlate
b0be89af4e57cc5fe96ec3a5c7a9bb84430d2433
[ "MIT" ]
1
2019-03-28T03:02:07.000Z
2019-03-28T03:02:07.000Z
#include <string> #include <sstream> #include <vector> #include <iostream> #include <fstream> #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/xml_parser.hpp> #include "Reader.hpp" #include "xmlReader.hpp" #include "debug.hpp" using namespace std; namespace bpt = boost::property_tree; xmlReade...
29.085714
110
0.637033
[ "vector", "transform" ]
e49aa39d1b0822adcaa950824a0b0075b4ed88fa
1,026
cpp
C++
Code/Framework/AzFramework/AzFramework/Logging/StartupLogSinkReporter.cpp
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-07-20T12:39:24.000Z
2021-07-20T12:39:24.000Z
Code/Framework/AzFramework/AzFramework/Logging/StartupLogSinkReporter.cpp
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
null
null
null
Code/Framework/AzFramework/AzFramework/Logging/StartupLogSinkReporter.cpp
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-07-20T11:07:25.000Z
2021-07-20T11:07:25.000Z
/* * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include <AzFramework/Logging/StartupLogSinkReporter.h> namespace AZ { namespace Debug { ...
33.096774
158
0.62963
[ "3d" ]
e49cbcee1cda5687aef32a6e3ac1ce5754da55c6
1,036
cpp
C++
Shader.cpp
rbellek/OpenGLTemplate
bbea088af7d89dc0d40136b2b61d7504dfbf4496
[ "MIT" ]
null
null
null
Shader.cpp
rbellek/OpenGLTemplate
bbea088af7d89dc0d40136b2b61d7504dfbf4496
[ "MIT" ]
null
null
null
Shader.cpp
rbellek/OpenGLTemplate
bbea088af7d89dc0d40136b2b61d7504dfbf4496
[ "MIT" ]
null
null
null
#include "Shader.h" #include <glad/glad.h> #include <iostream> std::vector<Shader> Shader::m_shaders; Shader::Shader(const SHADER_TYPE type) : m_type(type), m_shader(0) { } void Shader::load(std::string code) { m_code = code; } void Shader::compile() { m_shader = glCreateShader(m_type == SHADER_TYPE::VERTEX ? GL...
19.54717
144
0.703668
[ "vector" ]
e49f3c63a54ee20798c6392786086e354dc671b2
2,849
cpp
C++
modules/spaint/src/fiducials/FiducialPoseEstimator.cpp
GucciPrada/spaint
b09ff1ec0d9e123cf316f2737e1b70b5ecc0beea
[ "Unlicense" ]
1
2019-05-16T06:39:21.000Z
2019-05-16T06:39:21.000Z
modules/spaint/src/fiducials/FiducialPoseEstimator.cpp
GucciPrada/spaint
b09ff1ec0d9e123cf316f2737e1b70b5ecc0beea
[ "Unlicense" ]
null
null
null
modules/spaint/src/fiducials/FiducialPoseEstimator.cpp
GucciPrada/spaint
b09ff1ec0d9e123cf316f2737e1b70b5ecc0beea
[ "Unlicense" ]
null
null
null
/** * spaint: FiducialPoseEstimator.cpp * Copyright (c) Torr Vision Group, University of Oxford, 2016. All rights reserved. */ #include "fiducials/FiducialPoseEstimator.h" #include <itmx/geometry/GeometryUtil.h> using namespace itmx; namespace spaint { //#################### PUBLIC STATIC MEMBER FUNCTIONS ######...
47.483333
143
0.697438
[ "geometry", "vector" ]
e4a33340c7a8404e6ccf01b373a8ca9e3c71aede
3,894
hpp
C++
Sources/Machine/rbm_nqs.hpp
stubbi/netket
7391466077a4694e8f12c649730a81bf634f695e
[ "Apache-2.0" ]
1
2019-11-28T10:26:04.000Z
2019-11-28T10:26:04.000Z
Sources/Machine/rbm_nqs.hpp
stubbi/nqs
7391466077a4694e8f12c649730a81bf634f695e
[ "Apache-2.0" ]
null
null
null
Sources/Machine/rbm_nqs.hpp
stubbi/nqs
7391466077a4694e8f12c649730a81bf634f695e
[ "Apache-2.0" ]
null
null
null
// Copyright 2018 The Simons Foundation, Inc. - All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requi...
28.844444
80
0.683359
[ "vector" ]
e4aabafde824af39e0f68425d49a6eba98f46552
13,192
cpp
C++
Random_map_generation/DungeonGenerator/RoomsMapGenerator.cpp
Nadine044/RandomMapGeneration
d85419d38c9ca025ccb950f313c3c2970a81bf60
[ "MIT" ]
null
null
null
Random_map_generation/DungeonGenerator/RoomsMapGenerator.cpp
Nadine044/RandomMapGeneration
d85419d38c9ca025ccb950f313c3c2970a81bf60
[ "MIT" ]
null
null
null
Random_map_generation/DungeonGenerator/RoomsMapGenerator.cpp
Nadine044/RandomMapGeneration
d85419d38c9ca025ccb950f313c3c2970a81bf60
[ "MIT" ]
null
null
null
#include "Defs.h" #include "Log.h" #include "j1App.h" #include "j1Render.h" #include "j1Textures.h" #include "RoomsMapGenerator.h" #include "j1Input.h" #include "j1Pathfinding.h" #include "Brofiler\Brofiler.h" #include <time.h> #include <algorithm> #define FLOOR { 0,0,32,16 } #define WATER { 0,16,32,16 } #define WAL...
30.894614
202
0.639403
[ "render", "vector" ]
e4c69244f707aed13ef3a51ff9fe584c99e49cb1
1,065
cpp
C++
Array/Multiply_Two_Numbers.cpp
susantabiswas/placementPrep
22a7574206ddc63eba89517f7b68a3d2f4d467f5
[ "MIT" ]
19
2018-12-02T05:59:44.000Z
2021-07-24T14:11:54.000Z
Array/Multiply_Two_Numbers.cpp
susantabiswas/placementPrep
22a7574206ddc63eba89517f7b68a3d2f4d467f5
[ "MIT" ]
null
null
null
Array/Multiply_Two_Numbers.cpp
susantabiswas/placementPrep
22a7574206ddc63eba89517f7b68a3d2f4d467f5
[ "MIT" ]
13
2019-04-25T16:20:00.000Z
2021-09-06T19:50:04.000Z
//Multiply two numbers using arrays #include<iostream> #include<vector> #include<algorithm> using namespace std; //for displaying array elements template <class T> void disp(T c){ for (int i = 0; i < c.size(); ++i) { cout<<c[i]<<" "; } cout<<endl; } //for multiplying the numbers vector<int> multiplyNum(vector<i...
17.75
53
0.564319
[ "vector" ]
e4c71aa2b1d81a90c15fbd716386f4dc4a4bd50b
3,769
hpp
C++
server/src/parsing.hpp
courtarro/beefweb
879f68d8be5339c73b02bf32c9fa39027cd66fab
[ "MIT" ]
148
2017-08-25T13:32:05.000Z
2022-03-17T18:40:49.000Z
server/src/parsing.hpp
courtarro/beefweb
879f68d8be5339c73b02bf32c9fa39027cd66fab
[ "MIT" ]
160
2017-08-16T19:58:53.000Z
2022-02-26T09:57:38.000Z
server/src/parsing.hpp
courtarro/beefweb
879f68d8be5339c73b02bf32c9fa39027cd66fab
[ "MIT" ]
24
2018-05-23T18:59:47.000Z
2022-03-23T17:25:01.000Z
#pragma once #include "string_utils.hpp" #include <vector> #include <boost/lexical_cast/try_lexical_convert.hpp> #include <boost/tokenizer.hpp> namespace msrv { template<typename T> struct ValueParser; template<typename T> bool tryParseValue(StringView str, T* outVal); template<typename T> bool tryParseValueList(...
21.174157
89
0.660653
[ "vector" ]
e4d6861c0ac92cbbd8dcd0322f2cdc61259457d0
8,232
cc
C++
chromium/chrome/browser/safe_browsing/local_database_manager_unittest.cc
wedataintelligence/vivaldi-source
22a46f2c969f6a0b7ca239a05575d1ea2738768c
[ "BSD-3-Clause" ]
null
null
null
chromium/chrome/browser/safe_browsing/local_database_manager_unittest.cc
wedataintelligence/vivaldi-source
22a46f2c969f6a0b7ca239a05575d1ea2738768c
[ "BSD-3-Clause" ]
null
null
null
chromium/chrome/browser/safe_browsing/local_database_manager_unittest.cc
wedataintelligence/vivaldi-source
22a46f2c969f6a0b7ca239a05575d1ea2738768c
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <stddef.h> #include <string> #include <vector> #include "base/macros.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h...
36.586667
80
0.746234
[ "vector" ]
e4e548438a3c827c19c95096a3c9b54da39ec510
9,295
inl
C++
.src/cppcall.inl
friendlyanon/jluna
2718f1466c35377fbec8bd2f0011521c7ae93ad5
[ "MIT" ]
null
null
null
.src/cppcall.inl
friendlyanon/jluna
2718f1466c35377fbec8bd2f0011521c7ae93ad5
[ "MIT" ]
null
null
null
.src/cppcall.inl
friendlyanon/jluna
2718f1466c35377fbec8bd2f0011521c7ae93ad5
[ "MIT" ]
null
null
null
// // Copyright 2022 Clemens Cords // Created on 31.01.22 by clem (mail@clemens-cords.com) // #include <include/julia_extension.hpp> #include <include/exceptions.hpp> #include <.src/c_adapter.hpp> namespace jluna { namespace detail { template<typename Lambda_t, typename Return_t, typename... Args_t, ...
35.888031
191
0.613986
[ "vector" ]
e4e59bc17a33807e43fb72d96e87ed4a9e2833ae
5,587
hpp
C++
kv/allsol-simple.hpp
soonho-tri/kv
4963be6560d8600cdc9ff22d004b2b965ae7b1df
[ "MIT" ]
67
2017-01-04T15:30:54.000Z
2022-03-31T05:45:02.000Z
src/interval/kv/allsol-simple.hpp
takafumihoriuchi/HyLaGI
26b9f32a84611ee62d9cbbd903773d224088c959
[ "BSL-1.0" ]
4
2017-02-10T02:59:45.000Z
2019-10-10T14:17:08.000Z
src/interval/kv/allsol-simple.hpp
takafumihoriuchi/HyLaGI
26b9f32a84611ee62d9cbbd903773d224088c959
[ "BSL-1.0" ]
5
2021-09-29T02:27:46.000Z
2022-03-31T05:45:04.000Z
/* * Copyright (c) 2013-2015 Masahide Kashiwagi (kashi@waseda.jp) */ #ifndef ALLSOL_SIMPLE_HPP #define ALLSOL_SIMPLE_HPP #include <iostream> #include <list> #include <kv/interval.hpp> #include <kv/rdouble.hpp> #include <kv/interval-vector.hpp> #include <boost/numeric/ublas/vector.hpp> #include <boost/numeric/ublas/...
21.162879
187
0.569536
[ "vector" ]
e4e821dfe9adfdd59855c8990e32f76b08b407b1
1,826
cpp
C++
Training/51.msquare.cpp
felikjunvianto/kfile-usaco-submissions
d4afdc0cbde7e19f09afc70c4b02d4bc5992696d
[ "MIT" ]
null
null
null
Training/51.msquare.cpp
felikjunvianto/kfile-usaco-submissions
d4afdc0cbde7e19f09afc70c4b02d4bc5992696d
[ "MIT" ]
null
null
null
Training/51.msquare.cpp
felikjunvianto/kfile-usaco-submissions
d4afdc0cbde7e19f09afc70c4b02d4bc5992696d
[ "MIT" ]
null
null
null
/* ID: felikju1 PROG: msquare LANG: C++ */ #include <cstdio> #include <cmath> #include <iostream> #include <string> #include <cstring> #include <algorithm> #include <vector> #include <stack> #include <queue> #include <map> #define fi first #define se second #define pb push_back #define mp make_...
16.907407
49
0.531763
[ "vector" ]
e4f1e20733799db46e8eba7081e075d2b7efa89c
21,125
cpp
C++
src/drivers/oreoled/oreoled.cpp
3drobotics/PX4Firmware
b1cc118ef6408235abda896cc29f5c75ae256de4
[ "BSD-3-Clause" ]
30
2016-06-25T21:16:54.000Z
2022-02-22T19:08:17.000Z
src/drivers/oreoled/oreoled.cpp
HackInvent/PX4Firmware
b1cc118ef6408235abda896cc29f5c75ae256de4
[ "BSD-3-Clause" ]
null
null
null
src/drivers/oreoled/oreoled.cpp
HackInvent/PX4Firmware
b1cc118ef6408235abda896cc29f5c75ae256de4
[ "BSD-3-Clause" ]
23
2016-06-24T14:08:50.000Z
2021-12-26T10:16:08.000Z
/**************************************************************************** * * Copyright (C) 2012, 2013 PX4 Development Team. All rights reserved. * Author: Randy Mackay <rmackay9@yahoo.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that t...
25.059312
141
0.663195
[ "object" ]
e4f2363ea4e9cde7aaeccf956ec052e957209b30
3,440
cc
C++
tests/test_itertools.cc
gerrymanoim/libpy
ffe19d53aa9602893aecc2dd8c9feda90e06b262
[ "Apache-2.0" ]
71
2020-06-26T00:36:33.000Z
2021-12-02T13:57:02.000Z
tests/test_itertools.cc
stefan-jansen/libpy
e174ee103db76a9d0fcd29165d54c676ed1f2629
[ "Apache-2.0" ]
32
2020-06-26T18:59:15.000Z
2022-03-01T19:02:44.000Z
tests/test_itertools.cc
gerrymanoim/libpy
ffe19d53aa9602893aecc2dd8c9feda90e06b262
[ "Apache-2.0" ]
24
2020-06-26T17:01:57.000Z
2022-02-15T00:25:27.000Z
#include <algorithm> #include <vector> #include "gtest/gtest.h" #include "libpy/itertools.h" namespace test_itertools { TEST(zip, mismatched_sizes) { std::vector<int> as(10); std::vector<int> bs(5); EXPECT_THROW(py::zip(as, bs), std::invalid_argument); } TEST(zip, const_iterator) { std::size_t size...
23.888889
80
0.49593
[ "vector" ]
e4fa101dc1319a4673aa300cbec01d510c29ea55
26,950
cc
C++
src/IndexletManager.cc
XinzeChi/RAMCloud
fdc56415ca3424b40522d534a77aef0bc4f95c2b
[ "0BSD" ]
null
null
null
src/IndexletManager.cc
XinzeChi/RAMCloud
fdc56415ca3424b40522d534a77aef0bc4f95c2b
[ "0BSD" ]
null
null
null
src/IndexletManager.cc
XinzeChi/RAMCloud
fdc56415ca3424b40522d534a77aef0bc4f95c2b
[ "0BSD" ]
1
2021-05-24T12:32:33.000Z
2021-05-24T12:32:33.000Z
/* Copyright (c) 2014-2015 Stanford University * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(...
35.045514
80
0.640965
[ "object" ]
e4fd93ee44e01f76ec6bb3448cd57b52dac3dfba
3,555
cpp
C++
GraphicsMagick.NET/Profiles/8Bim/EightBimValue.cpp
dlemstra/GraphicsMagick.NET
332718f2315c3752eaeb84f4a6a30a553441e79e
[ "ImageMagick", "Apache-2.0" ]
35
2015-10-18T19:49:52.000Z
2022-01-18T05:30:46.000Z
GraphicsMagick.NET/Profiles/8Bim/EightBimValue.cpp
elyor0529/GraphicsMagick.NET
332718f2315c3752eaeb84f4a6a30a553441e79e
[ "ImageMagick", "Apache-2.0" ]
12
2016-07-22T16:05:03.000Z
2020-02-26T15:21:03.000Z
GraphicsMagick.NET/Profiles/8Bim/EightBimValue.cpp
elyor0529/GraphicsMagick.NET
332718f2315c3752eaeb84f4a6a30a553441e79e
[ "ImageMagick", "Apache-2.0" ]
12
2016-02-24T12:11:50.000Z
2021-07-12T18:20:12.000Z
//================================================================================================= // Copyright 2014-2015 Dirk Lemstra <https://graphicsmagick.codeplex.com/> // // Licensed under the ImageMagick License (the "License"); you may not use this file except in // compliance with the License. You may ob...
35.909091
100
0.432911
[ "object" ]
e4fe1fa82191ed052188488cc71dd761b0557b39
34,613
hpp
C++
include/afsm/detail/transitions.hpp
galek/afsm
49181bf52fa2ab8bcea6017d11b3cd321b56c13c
[ "Artistic-2.0" ]
133
2016-11-20T18:23:09.000Z
2022-03-28T07:25:04.000Z
include/afsm/detail/transitions.hpp
galek/afsm
49181bf52fa2ab8bcea6017d11b3cd321b56c13c
[ "Artistic-2.0" ]
24
2016-11-14T17:13:50.000Z
2021-08-31T15:48:48.000Z
include/afsm/detail/transitions.hpp
galek/afsm
49181bf52fa2ab8bcea6017d11b3cd321b56c13c
[ "Artistic-2.0" ]
24
2019-02-06T22:13:42.000Z
2022-01-20T05:42:52.000Z
/* * transitions.hpp * * Created on: 29 мая 2016 г. * Author: sergey.fedorov */ #ifndef AFSM_DETAIL_TRANSITIONS_HPP_ #define AFSM_DETAIL_TRANSITIONS_HPP_ #include <afsm/detail/actions.hpp> #include <afsm/detail/exception_safety_guarantees.hpp> #include <afsm/detail/event_identity.hpp> #include <deque> #in...
33.967615
112
0.645769
[ "transform" ]
07e7f45b1bef851f3a0302b992ee2f2a2f63140c
491
cpp
C++
Aula 13 - STL-C++11/next_permutation.cpp
EhODavi/INF213
2099354f1e8f9eda9a92531e5dc45a736ef3882e
[ "MIT" ]
null
null
null
Aula 13 - STL-C++11/next_permutation.cpp
EhODavi/INF213
2099354f1e8f9eda9a92531e5dc45a736ef3882e
[ "MIT" ]
null
null
null
Aula 13 - STL-C++11/next_permutation.cpp
EhODavi/INF213
2099354f1e8f9eda9a92531e5dc45a736ef3882e
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <numeric> #include <algorithm> #include <functional> #include <map> #include <stack> #include <queue> #include <fstream> #include <memory> #include <vector> using namespace std; int main(int argc, char **argv) { vector<string> v; v.push_back("abc"); v.push_back("x"); ...
16.366667
46
0.649695
[ "vector" ]
07ea65b14aa99838cc1673987eba58ccdb873a4a
5,263
cxx
C++
src/Cxx/Visualization/MovableAxes.cxx
ajpmaclean/vtk-examples
1a55fc8c6af67a3c07791807c7d1ec0ab97607a2
[ "Apache-2.0" ]
81
2020-08-10T01:44:30.000Z
2022-03-23T06:46:36.000Z
src/Cxx/Visualization/MovableAxes.cxx
ajpmaclean/vtk-examples
1a55fc8c6af67a3c07791807c7d1ec0ab97607a2
[ "Apache-2.0" ]
2
2020-09-12T17:33:52.000Z
2021-04-15T17:33:09.000Z
src/Cxx/Visualization/MovableAxes.cxx
ajpmaclean/vtk-examples
1a55fc8c6af67a3c07791807c7d1ec0ab97607a2
[ "Apache-2.0" ]
27
2020-08-17T07:09:30.000Z
2022-02-15T03:44:58.000Z
#include <vtkActor.h> #include <vtkAssembly.h> #include <vtkAssemblyPath.h> #include <vtkAxesActor.h> #include <vtkCommand.h> #include <vtkConeSource.h> #include <vtkFollower.h> #include <vtkInteractorStyleTrackballActor.h> #include <vtkNamedColors.h> #include <vtkNew.h> #include <vtkPolyDataMapper.h> #include <vtkProp...
29.077348
78
0.706251
[ "render", "object", "3d" ]
07ee69809284787906a50ca6de15f680cc62ec2c
19,305
cpp
C++
net/layer2svc/wlsnp/ccomp.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
net/layer2svc/wlsnp/ccomp.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
net/layer2svc/wlsnp/ccomp.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
//---------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 2001. // // File: ccomp.cpp // // Contents: // // // History: TaroonM // 10/30/01 // //-----------------------------------------------...
33.868421
138
0.598757
[ "object" ]
07f3253db7cdf1686fd02f635e24f1030865b0bb
32,788
cpp
C++
scene-start.cpp
brucehow/CITS3003-Project
303b5269985bcf588c1dd35961b1a5301bdc90d3
[ "MIT" ]
1
2020-06-03T07:12:53.000Z
2020-06-03T07:12:53.000Z
scene-start.cpp
brucehow/CITS3003-Project
303b5269985bcf588c1dd35961b1a5301bdc90d3
[ "MIT" ]
null
null
null
scene-start.cpp
brucehow/CITS3003-Project
303b5269985bcf588c1dd35961b1a5301bdc90d3
[ "MIT" ]
4
2021-05-14T20:43:54.000Z
2021-05-18T22:13:52.000Z
#include "Angel.h" #include <stdlib.h> #include <dirent.h> #include <time.h> // Open Asset Importer header files (in ../../assimp--3.0.1270/include) // This is a standard open source library for loading meshes, see gnatidread.h #include <assimp/cimport.h> #include <assimp/scene.h> #include <assimp/postpro...
38.214452
143
0.621538
[ "mesh", "object", "model" ]
5809d3226a0d29be5da602f07648fd47f9e47a92
4,735
cpp
C++
velox/dwio/dwrf/test/TestStripeDictionaryCache.cpp
vancexu/velox
fa076fd9eab6ae4090ed9b9b91c4e7658d4ee1e4
[ "Apache-2.0" ]
672
2021-09-22T16:45:58.000Z
2022-03-31T13:42:31.000Z
velox/dwio/dwrf/test/TestStripeDictionaryCache.cpp
vancexu/velox
fa076fd9eab6ae4090ed9b9b91c4e7658d4ee1e4
[ "Apache-2.0" ]
986
2021-09-22T17:02:52.000Z
2022-03-31T23:57:25.000Z
velox/dwio/dwrf/test/TestStripeDictionaryCache.cpp
vancexu/velox
fa076fd9eab6ae4090ed9b9b91c4e7658d4ee1e4
[ "Apache-2.0" ]
178
2021-09-22T17:27:47.000Z
2022-03-31T03:18:37.000Z
/* * Copyright (c) Facebook, Inc. and 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 applic...
36.705426
77
0.717001
[ "vector" ]
5809dd9eb31dc67c3ddf3e8a005dba27053c456d
2,594
cpp
C++
cpp/test/boost/msm_choise.cpp
dvetutnev/fart-checker
bfa6effa2cd6adecb7571728c9498e76d862a1ce
[ "MIT" ]
null
null
null
cpp/test/boost/msm_choise.cpp
dvetutnev/fart-checker
bfa6effa2cd6adecb7571728c9498e76d862a1ce
[ "MIT" ]
null
null
null
cpp/test/boost/msm_choise.cpp
dvetutnev/fart-checker
bfa6effa2cd6adecb7571728c9498e76d862a1ce
[ "MIT" ]
null
null
null
#include <boost/msm/front/state_machine_def.hpp> #include <boost/msm/front/functor_row.hpp> #include <boost/msm/back/state_machine.hpp> #include <gmock/gmock.h> using ::testing::InSequence; namespace { struct Mock { MOCK_METHOD(void, onEvent, (), ()); MOCK_METHOD(void, onRepeat, (), ()); MOCK_METHOD(...
24.018519
91
0.606785
[ "vector" ]
58261da994d4d303466dc43f61ccf2d4074ea3d6
33,402
cpp
C++
src/ipyopt_module.cpp
py-nonlinopt/ipyopt
2fba5af041e4ffa3cb25b31e7e563faad055d31f
[ "BSD-3-Clause" ]
2
2021-05-24T21:23:16.000Z
2022-03-21T01:45:35.000Z
src/ipyopt_module.cpp
py-nonlinopt/ipyopt
2fba5af041e4ffa3cb25b31e7e563faad055d31f
[ "BSD-3-Clause" ]
1
2021-06-03T14:37:06.000Z
2021-06-03T14:37:06.000Z
src/ipyopt_module.cpp
py-nonlinopt/ipyopt
2fba5af041e4ffa3cb25b31e7e563faad055d31f
[ "BSD-3-Clause" ]
null
null
null
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #define PY_ARRAY_UNIQUE_SYMBOL ipyopt_ARRAY_API #include "numpy/arrayobject.h" #include "nlp_builder.hpp" #include "py_helpers.hpp" #include "py_nlp.hpp" static bool _PyDict_Check(const PyObject *obj) { return PyDict_Check(obj); } // Macro -> function static bool ch...
40.098439
1,198
0.641908
[ "object", "shape", "vector" ]
582a3a2112dcae0bfed53b31a153a5c63d00c32c
2,993
cxx
C++
TrophyShelf.cxx
jackytck/topcoder
5a83ce478d4f05aeb97062f8a30aa1d6fbc969d3
[ "MIT" ]
null
null
null
TrophyShelf.cxx
jackytck/topcoder
5a83ce478d4f05aeb97062f8a30aa1d6fbc969d3
[ "MIT" ]
null
null
null
TrophyShelf.cxx
jackytck/topcoder
5a83ce478d4f05aeb97062f8a30aa1d6fbc969d3
[ "MIT" ]
null
null
null
// BEGIN CUT HERE // PROBLEM STATEMENT // You have several trophies sitting on a shelf in a straight line. Their heights are given in a vector <int> trophies, from left to right. The shelf is positioned so that whenever people enter your room, they see it directly from the left side. In other words, the leftmost t...
27.209091
380
0.673906
[ "vector" ]
582ed73c6aa88845caef66d6cc68e3c04b78d37b
789
cpp
C++
Modules/CGALVMTKMeshingKernel/ExtensionPoint/ui/MeshingKernelUI.cpp
carthurs/CRIMSONGUI
1464df9c4d04cf3ba131ca90b91988a06845c68e
[ "BSD-3-Clause" ]
10
2020-09-17T18:55:31.000Z
2022-02-23T02:52:38.000Z
Modules/CGALVMTKMeshingKernel/ExtensionPoint/ui/MeshingKernelUI.cpp
carthurs/CRIMSONGUI
1464df9c4d04cf3ba131ca90b91988a06845c68e
[ "BSD-3-Clause" ]
null
null
null
Modules/CGALVMTKMeshingKernel/ExtensionPoint/ui/MeshingKernelUI.cpp
carthurs/CRIMSONGUI
1464df9c4d04cf3ba131ca90b91988a06845c68e
[ "BSD-3-Clause" ]
3
2021-05-19T09:02:21.000Z
2021-07-26T17:39:57.000Z
#include <ui/MeshingKernelUI.h> #include <ui/GlobalMeshingParametersWidget.h> #include <ui/LocalMeshingParametersDialog.h> namespace crimson { QWidget* MeshingKernelUI::createGlobalMeshingParameterWidget(IMeshingKernel::GlobalMeshingParameters& params, QWidget* parent /*= nullptr*/) { return new GlobalMes...
34.304348
146
0.752852
[ "vector" ]
5836ff6901b53ee431b11a9a3fa5c3ca629e2bb8
514
cpp
C++
kickstart/2020b2.cpp
sogapalag/problems
0ea7d65448e1177f8b3f81124a82d187980d659c
[ "MIT" ]
1
2020-04-04T14:56:12.000Z
2020-04-04T14:56:12.000Z
kickstart/2020b2.cpp
sogapalag/problems
0ea7d65448e1177f8b3f81124a82d187980d659c
[ "MIT" ]
null
null
null
kickstart/2020b2.cpp
sogapalag/problems
0ea7d65448e1177f8b3f81124a82d187980d659c
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; using ll=long long; void solve() { int n; ll D; cin >> n >> D; ll d = D; vector<ll> a(n); for (auto& x: a) { cin >> x; } for (int i = n-1; i >= 0; i--) { ll x = a[i]; d = d/x*x; } cout << d << "\n"; } int main()...
16.580645
38
0.404669
[ "vector" ]
58396f04b0c3d16aaa5565575982402526f26df5
1,455
cpp
C++
tests/threadpool_test.cpp
topin89/threadpool
06e635dff22c9d359dfb93bc535a460774dc7319
[ "MIT" ]
41
2018-07-30T08:50:32.000Z
2022-02-19T23:58:46.000Z
tests/threadpool_test.cpp
topin89/threadpool
06e635dff22c9d359dfb93bc535a460774dc7319
[ "MIT" ]
3
2019-12-06T21:38:59.000Z
2021-12-31T15:58:56.000Z
tests/threadpool_test.cpp
topin89/threadpool
06e635dff22c9d359dfb93bc535a460774dc7319
[ "MIT" ]
5
2019-02-15T03:54:37.000Z
2020-01-13T10:03:44.000Z
#include "threadpool_test.hpp" TEST_F(ThreadPoolTest, SingleThreadStartStop) { ASSERT_FALSE(single_thread_pool->is_stopped()); single_thread_pool->stop(); ASSERT_TRUE(single_thread_pool->is_stopped()); } TEST_F(ThreadPoolTest, SingleThreadSingleTask) { std::future<bool> result; result = single_thread_pool-...
24.661017
80
0.698282
[ "vector" ]
583bf917e42fb42fdd85cc21b5aa9f15a3767f08
583
hpp
C++
tsl/test/include/tsl_tests/io/obj_load.hpp
jeffrey-cochran/tsl
a9ae6fb2755fcbd1311c16e9faff87445419f7f0
[ "Apache-2.0", "MIT" ]
null
null
null
tsl/test/include/tsl_tests/io/obj_load.hpp
jeffrey-cochran/tsl
a9ae6fb2755fcbd1311c16e9faff87445419f7f0
[ "Apache-2.0", "MIT" ]
null
null
null
tsl/test/include/tsl_tests/io/obj_load.hpp
jeffrey-cochran/tsl
a9ae6fb2755fcbd1311c16e9faff87445419f7f0
[ "Apache-2.0", "MIT" ]
1
2020-11-06T21:45:02.000Z
2020-11-06T21:45:02.000Z
#ifndef TEST_INCLUDE_TSL_TESTS_IO_OBJ_LOAD_HPP #define TEST_INCLUDE_TSL_TESTS_IO_OBJ_LOAD_HPP #include <string> #include <gtest/gtest.h> #include <gmock/gmock.h> #include "tsl/geometry/tmesh/tmesh.hpp" #include "tsl/io/obj.hpp" using std::string; using namespace tsl; namespace tsl_tests { class TmeshLoadSingleFac...
16.657143
63
0.756432
[ "mesh", "geometry" ]
5840bde16b9f672fb8ab42faf9b8223c67c3d5b7
4,673
hpp
C++
include/dca/phys/models/analytic_hamiltonians/cubic_lattice.hpp
PMDee/DCA
a8196ec3c88d07944e0499ff00358ea3c830b329
[ "BSD-3-Clause" ]
2
2019-12-18T17:13:00.000Z
2021-07-30T01:45:30.000Z
include/dca/phys/models/analytic_hamiltonians/cubic_lattice.hpp
PMDee/DCA
a8196ec3c88d07944e0499ff00358ea3c830b329
[ "BSD-3-Clause" ]
1
2020-08-13T11:03:54.000Z
2020-08-13T11:03:54.000Z
include/dca/phys/models/analytic_hamiltonians/cubic_lattice.hpp
PMDee/DCA
a8196ec3c88d07944e0499ff00358ea3c830b329
[ "BSD-3-Clause" ]
1
2019-11-15T16:06:32.000Z
2019-11-15T16:06:32.000Z
// Copyright (C) 2018 ETH Zurich // Copyright (C) 2018 UT-Battelle, LLC // All rights reserved. // // See LICENSE for terms of usage. // See CITATION.md for citation guidelines, if DCA++ is used for scientific publications. // // Author: Peter Staar (taa@zurich.ibm.com) // // Cubic lattice. // // TODO: - Replace get_LD...
29.20625
104
0.690135
[ "vector" ]
5847ce7c29bd1b1067a88c91b650bb962b9a37c4
4,358
cpp
C++
src/solvers/prop/minimize.cpp
quiveringlemon/pfl
615a4036ddd61b996a778a402d70148667261475
[ "BSD-4-Clause" ]
null
null
null
src/solvers/prop/minimize.cpp
quiveringlemon/pfl
615a4036ddd61b996a778a402d70148667261475
[ "BSD-4-Clause" ]
null
null
null
src/solvers/prop/minimize.cpp
quiveringlemon/pfl
615a4036ddd61b996a778a402d70148667261475
[ "BSD-4-Clause" ]
null
null
null
/*******************************************************************\ Module: Minimize some target function incrementally Author: Daniel Kroening, kroening@kroening.com \*******************************************************************/ #include <util/threeval.h> #include "literal_expr.h" #include "minimize.h" ...
21.899497
72
0.54291
[ "vector" ]
5849838657fdddac68f6f60d074a6fdf72435878
8,888
cpp
C++
src/cuboid.cpp
KPO-2020-2021/zad5_2-Olszowy21
4201e3d399387c4286cbf6a8d57bc59ca0dd68fb
[ "Unlicense" ]
null
null
null
src/cuboid.cpp
KPO-2020-2021/zad5_2-Olszowy21
4201e3d399387c4286cbf6a8d57bc59ca0dd68fb
[ "Unlicense" ]
null
null
null
src/cuboid.cpp
KPO-2020-2021/zad5_2-Olszowy21
4201e3d399387c4286cbf6a8d57bc59ca0dd68fb
[ "Unlicense" ]
null
null
null
#include "cuboid.hpp" /*! * Konstruktor dla prostopadłościanu z przypadkowymi wartościami. * * * */ Cuboid::Cuboid(){ kat_do_globalnego = 0; skala = Vector3D(1, 1, 1); } /*! * Przeciazenie operatora [] dla danych chronionych prostokata. * \param[in] index - pomocniczy unsigned int ktory zwro...
48.304348
146
0.464109
[ "vector" ]
584e245d479decb8f8cf96cd44f7b67e2637f856
5,128
cpp
C++
Sources/Elastos/LibCore/src/org/apache/http/impl/cookie/RFC2109DomainHandler.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
7
2017-07-13T10:34:54.000Z
2021-04-16T05:40:35.000Z
Sources/Elastos/LibCore/src/org/apache/http/impl/cookie/RFC2109DomainHandler.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
null
null
null
Sources/Elastos/LibCore/src/org/apache/http/impl/cookie/RFC2109DomainHandler.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
9
2017-07-13T12:33:20.000Z
2021-06-19T02:46:48.000Z
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // ...
37.15942
133
0.61954
[ "object" ]
58534df1703e627f6c511565d0f5cf12231c3580
1,601
cpp
C++
Data Structure/Stack/Next_Greater_Element.cpp
rajatjha28/CPP-Questions-and-Solutions
fc5bae0da3dc7aed69e663e93128cd899b7bb263
[ "MIT" ]
42
2021-09-26T18:02:52.000Z
2022-03-15T01:52:15.000Z
Data Structure/Stack/Next_Greater_Element.cpp
rajatjha28/CPP-Questions-and-Solutions
fc5bae0da3dc7aed69e663e93128cd899b7bb263
[ "MIT" ]
404
2021-09-24T19:55:10.000Z
2021-11-03T05:47:47.000Z
Data Structure/Stack/Next_Greater_Element.cpp
rajatjha28/CPP-Questions-and-Solutions
fc5bae0da3dc7aed69e663e93128cd899b7bb263
[ "MIT" ]
140
2021-09-22T20:50:04.000Z
2022-01-22T16:59:09.000Z
// GFG Link to question - https://practice.geeksforgeeks.org/problems/next-larger-element-1587115620/1 // This Code is Contributed by RAKSHIT PANDEY (Username-----> Master-Helix) // Function to print the Next Greater Element using Stack vector<long long> nextLargerElement(vector<long long> arr, int n){ ...
37.232558
126
0.494691
[ "vector" ]
585e2f94f774de1ae6060cd926fd5d7ed8e4a537
1,209
cpp
C++
src/event.cpp
Kvitrafn/Aspen
0c98633d3d0fbe21e0bbb14edd7d19203711a3a2
[ "MIT" ]
null
null
null
src/event.cpp
Kvitrafn/Aspen
0c98633d3d0fbe21e0bbb14edd7d19203711a3a2
[ "MIT" ]
null
null
null
src/event.cpp
Kvitrafn/Aspen
0c98633d3d0fbe21e0bbb14edd7d19203711a3a2
[ "MIT" ]
null
null
null
#include <sys/time.h> #include <string> #include <vector> #include <functional> #include "event.h" #include "exception.h" Event::Event(): _id(0) { } Event::~Event() { for (auto it: _callbacks) { delete it; } } BOOL Event::operator +=(const EVENTFUNC cb) { Add(cb); return tru...
16.791667
53
0.539289
[ "vector" ]
5868bd7b7dd3cd0400f3cdfbb100171310ab24fc
12,637
cpp
C++
path_calculator_node.cpp
josezy/path_calculator_node
3067325e3352ac3ac062b2c9de9d5723fd180cda
[ "MIT" ]
null
null
null
path_calculator_node.cpp
josezy/path_calculator_node
3067325e3352ac3ac062b2c9de9d5723fd180cda
[ "MIT" ]
null
null
null
path_calculator_node.cpp
josezy/path_calculator_node
3067325e3352ac3ac062b2c9de9d5723fd180cda
[ "MIT" ]
null
null
null
/*=============================================================================== |*Author: Jose Benitez |*Date: October 2016 |*Description: Calculate the shortest path between two points on a map using the |* A* algorithm. \*===============================================================================*/...
29.945498
92
0.616048
[ "vector" ]
5873f8594b5349352faf374232278c867f0e3035
5,604
cpp
C++
Gems/Atom/RPI/Code/Tests/Material/MaterialVersionUpdateTests.cpp
BreakerOfThings/o3de
f4c59f868c726470ec910623facd836047d059c3
[ "Apache-2.0", "MIT" ]
null
null
null
Gems/Atom/RPI/Code/Tests/Material/MaterialVersionUpdateTests.cpp
BreakerOfThings/o3de
f4c59f868c726470ec910623facd836047d059c3
[ "Apache-2.0", "MIT" ]
null
null
null
Gems/Atom/RPI/Code/Tests/Material/MaterialVersionUpdateTests.cpp
BreakerOfThings/o3de
f4c59f868c726470ec910623facd836047d059c3
[ "Apache-2.0", "MIT" ]
null
null
null
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include <Common/RPITestFixture.h> #include <Common/ErrorMessageFinder.h> #include <Atom/RPI.Refl...
37.864865
106
0.63419
[ "3d" ]
587ffb6104d76e9366ed02eab4d02a699721d988
4,926
cpp
C++
blast/src/app/blastdb/blastdb_path.cpp
mycolab/ncbi-blast
e59746cec78044d2bf6d65de644717c42f80b098
[ "Apache-2.0" ]
null
null
null
blast/src/app/blastdb/blastdb_path.cpp
mycolab/ncbi-blast
e59746cec78044d2bf6d65de644717c42f80b098
[ "Apache-2.0" ]
null
null
null
blast/src/app/blastdb/blastdb_path.cpp
mycolab/ncbi-blast
e59746cec78044d2bf6d65de644717c42f80b098
[ "Apache-2.0" ]
null
null
null
/* $Id: blastdb_path.cpp 574775 2018-11-19 15:21:37Z zaretska $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Governmen...
34.93617
121
0.604953
[ "vector" ]
58870a279bed0ea603e8914cc9c09f1a74a1baed
3,463
cpp
C++
algorithms-and-data-structures/strings/h_substring_quantity.cpp
nothingelsematters/university
5561969b1b11678228aaf7e6660e8b1a93d10294
[ "WTFPL" ]
1
2018-06-03T17:48:50.000Z
2018-06-03T17:48:50.000Z
algorithms-and-data-structures/strings/h_substring_quantity.cpp
nothingelsematters/University
b1e188cb59e5a436731b92c914494626a99e1ae0
[ "WTFPL" ]
null
null
null
algorithms-and-data-structures/strings/h_substring_quantity.cpp
nothingelsematters/University
b1e188cb59e5a436731b92c914494626a99e1ae0
[ "WTFPL" ]
14
2019-04-07T21:27:09.000Z
2021-12-05T13:37:25.000Z
#include <fstream> #include <iostream> #include <list> #include <vector> #include <map> #include <algorithm> struct Vertex { Vertex(size_t parent, char c) : parent(parent), parent_char(c) {} size_t operator[](char c) const { auto it = travel.find(c); if (it == travel.end()) { retur...
24.387324
81
0.505342
[ "vector" ]
588ab5946cb53070a56ea2e2676270e7bf39e2be
10,614
cpp
C++
src/app/voltdb/voltdb_src/tests/ee/common/undolog_test.cpp
OpenMPDK/SMDK
8f19d32d999731242cb1ab116a4cb445d9993b15
[ "BSD-3-Clause" ]
44
2022-03-16T08:32:31.000Z
2022-03-31T16:02:35.000Z
src/app/voltdb/voltdb_src/tests/ee/common/undolog_test.cpp
H2O0Lee/SMDK
eff49bc17a55a83ea968112feb2e2f2ea18c4ff5
[ "BSD-3-Clause" ]
1
2022-03-29T02:30:28.000Z
2022-03-30T03:40:46.000Z
src/app/voltdb/voltdb_src/tests/ee/common/undolog_test.cpp
H2O0Lee/SMDK
eff49bc17a55a83ea968112feb2e2f2ea18c4ff5
[ "BSD-3-Clause" ]
18
2022-03-19T04:41:04.000Z
2022-03-31T03:32:12.000Z
/* This file is part of VoltDB. * Copyright (C) 2008-2020 VoltDB Inc. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to...
35.61745
118
0.708121
[ "vector" ]
588eecceab48160795550a0deffcc84de8893a73
3,081
cpp
C++
MegamanX3/MegamanX3/DoorShurikein.cpp
quangnghiauit/game
3c0537f96342c6fcb89cf5f3541acfef75b558f1
[ "MIT" ]
null
null
null
MegamanX3/MegamanX3/DoorShurikein.cpp
quangnghiauit/game
3c0537f96342c6fcb89cf5f3541acfef75b558f1
[ "MIT" ]
null
null
null
MegamanX3/MegamanX3/DoorShurikein.cpp
quangnghiauit/game
3c0537f96342c6fcb89cf5f3541acfef75b558f1
[ "MIT" ]
null
null
null
#include"DoorShurikein.h" DoorShurikein* DoorShurikein::instance; DoorShurikein::DoorShurikein(float top, float left, float w, float h) { this->nameObject = DOOR; this->x = left; this->y = top; this->width = w; this->height = h; this->actived = false; this->moving_megaman = false; this->locked = true; this-...
24.070313
107
0.691334
[ "render", "object", "vector" ]
5894f82f79f954cd50926507b9c0fc8f75437ed7
2,579
cpp
C++
DSAA2/Polynomial.cpp
crosslife/DSAA
03472db6e61582187192073b6ea4649b6195222b
[ "MIT" ]
5
2017-03-30T23:23:08.000Z
2020-11-08T00:34:46.000Z
DSAA2/Polynomial.cpp
crosslife/DSAA
03472db6e61582187192073b6ea4649b6195222b
[ "MIT" ]
null
null
null
DSAA2/Polynomial.cpp
crosslife/DSAA
03472db6e61582187192073b6ea4649b6195222b
[ "MIT" ]
1
2019-04-12T13:17:31.000Z
2019-04-12T13:17:31.000Z
/* * This code doesn't really do much, and abstraction is not built in. * Thus, I haven't bothered testing it exhaustively. */ #include <iostream.h> #include "vector.h" class Polynomial { enum { MAX_DEGREE = 100 }; friend int main( ); // So I can do a quick test. ...
27.731183
76
0.460644
[ "vector" ]
5895a0726d1a2162ede4c555c4fa9b2df3774d42
614
cpp
C++
CPP/500 problems pepcoding/Equilibrium in Array.cpp
kratikasinghal/OJ-problems
fc5365cb4db9da780779e9912aeb2a751fe4517c
[ "MIT" ]
null
null
null
CPP/500 problems pepcoding/Equilibrium in Array.cpp
kratikasinghal/OJ-problems
fc5365cb4db9da780779e9912aeb2a751fe4517c
[ "MIT" ]
null
null
null
CPP/500 problems pepcoding/Equilibrium in Array.cpp
kratikasinghal/OJ-problems
fc5365cb4db9da780779e9912aeb2a751fe4517c
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define ll long long int #define vi vector<int> using namespace std; int main() { int t; cin >> t; while(t--) { int n; cin >> n; vi A(n+1); for(int i = 0 ; i < n; i++) cin >> A[i]; ll prev = 0, next = 0; for(int i = 0 ; i < n; i++) next +=...
16.594595
66
0.376221
[ "vector" ]
5895db7a02f97e6f1dec4bce24908a5ddb1217f9
475,374
cpp
C++
App/Il2CppOutputProject/Source/il2cppOutput/Bulk_Microsoft.MixedReality.Toolkit.Services.InputSystem_1.cpp
bij51247/HandBroomProject
6131a77cc4a505e872f82ab63629b8068f5843ee
[ "MIT" ]
null
null
null
App/Il2CppOutputProject/Source/il2cppOutput/Bulk_Microsoft.MixedReality.Toolkit.Services.InputSystem_1.cpp
bij51247/HandBroomProject
6131a77cc4a505e872f82ab63629b8068f5843ee
[ "MIT" ]
null
null
null
App/Il2CppOutputProject/Source/il2cppOutput/Bulk_Microsoft.MixedReality.Toolkit.Services.InputSystem_1.cpp
bij51247/HandBroomProject
6131a77cc4a505e872f82ab63629b8068f5843ee
[ "MIT" ]
null
null
null
#include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <cstring> #include <string.h> #include <stdio.h> #include <cmath> #include <limits> #include <assert.h> #include <stdint.h> #include "il2cpp-class-internals.h" #include "codegen/il2cpp-codeg...
60.234921
524
0.864368
[ "object", "transform" ]
58962a113dd9e8b2d87f52e41a2241f2114bea1c
1,739
hpp
C++
src/graph-theory/adjacency_matrix.hpp
roma-zelinskyi/algorithms
cfc8a1a678186b00a47e7a33b9b6a78b7225c8c0
[ "MIT" ]
null
null
null
src/graph-theory/adjacency_matrix.hpp
roma-zelinskyi/algorithms
cfc8a1a678186b00a47e7a33b9b6a78b7225c8c0
[ "MIT" ]
null
null
null
src/graph-theory/adjacency_matrix.hpp
roma-zelinskyi/algorithms
cfc8a1a678186b00a47e7a33b9b6a78b7225c8c0
[ "MIT" ]
null
null
null
/** * Project Graph Theory * * @author Roman Zelinskyi <lord.zelinskyi@gmail.com> */ #pragma once #include <cstdint> #include <iostream> #include <limits> #include <optional> #include <unordered_map> #include <vector> namespace cppgraph { template<class _NodeDescriptor> class AdjacencyMatrix { public: Ad...
22.012658
93
0.614721
[ "vector" ]
58a8929d7c5460717128b3402146e3e0eea1e85f
3,590
hpp
C++
src/kokkos_omp/block_pool.hpp
lanl/Ethon
95ea508b51a59c83c154b7f80594b64d71fd0a55
[ "BSD-3-Clause" ]
null
null
null
src/kokkos_omp/block_pool.hpp
lanl/Ethon
95ea508b51a59c83c154b7f80594b64d71fd0a55
[ "BSD-3-Clause" ]
null
null
null
src/kokkos_omp/block_pool.hpp
lanl/Ethon
95ea508b51a59c83c154b7f80594b64d71fd0a55
[ "BSD-3-Clause" ]
null
null
null
//======================================================================================== // Copyright (c) 2020. Triad National Security, LLC. All rights reserved. // // This program was produced under U.S. Government contract 89233218CNA000001 for Los // Alamos National Laboratory (LANL), which is operated by Triad N...
33.551402
99
0.662117
[ "vector" ]
58bb27bd85e1081ce54a252e0aebf8559b9e9a37
2,046
hpp
C++
source/game.hpp
llGuy/saska
a478a28c162a136aeb19f70dddd7c6be4de9bd78
[ "MIT" ]
null
null
null
source/game.hpp
llGuy/saska
a478a28c162a136aeb19f70dddd7c6be4de9bd78
[ "MIT" ]
null
null
null
source/game.hpp
llGuy/saska
a478a28c162a136aeb19f70dddd7c6be4de9bd78
[ "MIT" ]
null
null
null
#pragma once #include "raw_input.hpp" #include "vulkan.hpp" #include "graphics.hpp" #include "ui.hpp" #include "script.hpp" #include "net.hpp" #include "event_system.hpp" // This just decides whether the game should be run with a console, or with graphics. For servers, it would be better (if not debugging, ...
33
230
0.745357
[ "render", "3d" ]
58bd3488e78a7fa3b397d3b86f543d5491a0a8c3
5,849
cpp
C++
Code/Engine/GameEngine/VisualScript/Nodes/VisualScriptObjectNodes.cpp
autoint/ezEngine
4fcd72172791d2eeae1146428f3032e0da499f81
[ "MIT" ]
null
null
null
Code/Engine/GameEngine/VisualScript/Nodes/VisualScriptObjectNodes.cpp
autoint/ezEngine
4fcd72172791d2eeae1146428f3032e0da499f81
[ "MIT" ]
null
null
null
Code/Engine/GameEngine/VisualScript/Nodes/VisualScriptObjectNodes.cpp
autoint/ezEngine
4fcd72172791d2eeae1146428f3032e0da499f81
[ "MIT" ]
1
2022-03-28T15:57:46.000Z
2022-03-28T15:57:46.000Z
#include <GameEnginePCH.h> #include <Core/World/GameObject.h> #include <Core/World/World.h> #include <GameEngine/VisualScript/Nodes/VisualScriptObjectNodes.h> #include <GameEngine/VisualScript/VisualScriptInstance.h> ////////////////////////////////////////////////////////////////////////// // clang-format off EZ_BE...
25.995556
134
0.697897
[ "object" ]
58c52d02f5f03210913d9513b2f887edeb8b6a96
16,146
cpp
C++
src/ControllerCommons.cpp
iit-DLSLab/dwl-msgs
68b286cfdc3f80481dea4e106d84183edfe6ba20
[ "BSD-3-Clause" ]
null
null
null
src/ControllerCommons.cpp
iit-DLSLab/dwl-msgs
68b286cfdc3f80481dea4e106d84183edfe6ba20
[ "BSD-3-Clause" ]
null
null
null
src/ControllerCommons.cpp
iit-DLSLab/dwl-msgs
68b286cfdc3f80481dea4e106d84183edfe6ba20
[ "BSD-3-Clause" ]
2
2018-03-15T10:27:31.000Z
2019-09-23T14:16:19.000Z
#include <dwl_msgs/ControllerCommons.h> namespace dwl_msgs { ControllerCommons::ControllerCommons() : init_base_state_(false), new_plan_(false), num_traj_points_(0), trajectory_counter_(0), controller_publish_rate_(250), robot_publish_rate_(250), odom_publish_rate_(250), imu_publish_rate_(250), init_controller...
36.612245
107
0.736467
[ "model", "transform" ]
58d7185c3b5ad0e0c3ad8c94ef90b26458179be1
9,382
cc
C++
spot/spot/twa/bdddict.cc
mcc-petrinets/formulas
10f835d67c7deedfe98fbbd55a56bd549a5bae9b
[ "MIT" ]
1
2018-03-02T14:29:57.000Z
2018-03-02T14:29:57.000Z
spot/spot/twa/bdddict.cc
mcc-petrinets/formulas
10f835d67c7deedfe98fbbd55a56bd549a5bae9b
[ "MIT" ]
null
null
null
spot/spot/twa/bdddict.cc
mcc-petrinets/formulas
10f835d67c7deedfe98fbbd55a56bd549a5bae9b
[ "MIT" ]
1
2015-06-05T12:42:07.000Z
2015-06-05T12:42:07.000Z
// -*- coding: utf-8 -*- // Copyright (C) 2009, 2012-2017 Laboratoire de Recherche et // Développement de l'Epita (LRDE). // Copyright (C) 2003, 2004, 2005, 2006 Laboratoire d'Informatique de // Paris 6 (LIP6), département Systèmes Répartis Coopératifs (SRC), // Université Pierre et Marie Curie. // // This file is part...
25.917127
78
0.556918
[ "object", "model" ]
58dbb223d799323e314b730801e40e767beca157
20,109
cpp
C++
src/geometry/base/CBaseMesh.cpp
SindenDev/3dimviewer
e23a3147edc35034ef4b75eae9ccdcbc7192b1a1
[ "Apache-2.0" ]
6
2020-04-14T16:10:55.000Z
2021-05-21T07:13:55.000Z
src/geometry/base/CBaseMesh.cpp
SindenDev/3dimviewer
e23a3147edc35034ef4b75eae9ccdcbc7192b1a1
[ "Apache-2.0" ]
null
null
null
src/geometry/base/CBaseMesh.cpp
SindenDev/3dimviewer
e23a3147edc35034ef4b75eae9ccdcbc7192b1a1
[ "Apache-2.0" ]
2
2020-07-24T16:25:38.000Z
2021-01-19T09:23:18.000Z
/////////////////////////////////////////////////////////////////////////////// // // 3DimViewer // Lightweight 3D DICOM viewer. // // Copyright 2014-2016 3Dim Laboratory s.r.o. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Licen...
33.853535
112
0.442936
[ "mesh", "geometry", "vector", "model", "3d" ]
58dcf53ab52cb81b26d287bae2b81cdb17583e3d
4,684
cpp
C++
Code/Qt_C++_OpenCV_Projeto_TCII/configinputs.cpp
aabling2/projeto_tcc_2017
d276ddb40c49eb75271977953502d3a08e4f4fe5
[ "MIT" ]
null
null
null
Code/Qt_C++_OpenCV_Projeto_TCII/configinputs.cpp
aabling2/projeto_tcc_2017
d276ddb40c49eb75271977953502d3a08e4f4fe5
[ "MIT" ]
null
null
null
Code/Qt_C++_OpenCV_Projeto_TCII/configinputs.cpp
aabling2/projeto_tcc_2017
d276ddb40c49eb75271977953502d3a08e4f4fe5
[ "MIT" ]
null
null
null
#include "configinputs.h" #include "ui_configinputs.h" /* #define num_max_parts 10 //Maximum number of parts to register in image #define size_part 53 //Real diameter of the part(millimeters) #define mask_angle 73.5 //Angle to make the lines in camera2 to align the con...
38.081301
113
0.678053
[ "object" ]
58e62ed93043fef921fa6755874059f1553a6694
220
cpp
C++
oop2_ex4/Shape.cpp
MatanelAbayof/6-Colors
b7aaff310dfa582ac4fa9cce5190a2d1dee82fe9
[ "Apache-2.0" ]
null
null
null
oop2_ex4/Shape.cpp
MatanelAbayof/6-Colors
b7aaff310dfa582ac4fa9cce5190a2d1dee82fe9
[ "Apache-2.0" ]
null
null
null
oop2_ex4/Shape.cpp
MatanelAbayof/6-Colors
b7aaff310dfa582ac4fa9cce5190a2d1dee82fe9
[ "Apache-2.0" ]
2
2020-10-06T09:11:35.000Z
2020-12-24T11:05:19.000Z
#include "Shape.h" string Shape::toString() const { return "Shape: { Width = " + std::to_string(getWidth()) + ", Height: " + std::to_string(getHeight()) + ", Num of edges: " + std::to_string(getNumOfEdges()) + " }"; }
31.428571
164
0.613636
[ "shape" ]
58fd6150640d68607166635ad4babe31b4dc93d1
8,493
cpp
C++
meta/sai_extra_acl.cpp
volodymyrsamotiy/sonic-sairedis
ffb2f43054bacbe00d161866753e95977e9cd47d
[ "Apache-2.0" ]
1
2020-09-04T02:07:25.000Z
2020-09-04T02:07:25.000Z
meta/sai_extra_acl.cpp
volodymyrsamotiy/sonic-sairedis
ffb2f43054bacbe00d161866753e95977e9cd47d
[ "Apache-2.0" ]
2
2018-06-13T06:44:20.000Z
2018-07-05T08:12:04.000Z
meta/sai_extra_acl.cpp
barefootnetworks/sonic-sairedis
7b11204eaacff026efb01580700966f378227747
[ "Apache-2.0" ]
null
null
null
#include "sai_meta.h" #include "sai_extra.h" sai_status_t meta_pre_create_acl_table( _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) { SWSS_LOG_ENTER(); const sai_attribute_t* attr_priority = get_attribute_by_id(SAI_ACL_TABLE_ATTR_PRIORITY, attr_count, attr_list); if (attr_priori...
27.754902
148
0.684211
[ "object" ]
450442806fb06c56f2ac10d208817c5ef1fe69af
6,910
cpp
C++
apps/hubo-sim.cpp
mxgrey/protoHuboGUI
3384c5e40c544bd472199da9cd6e90e28321a77f
[ "BSD-2-Clause" ]
null
null
null
apps/hubo-sim.cpp
mxgrey/protoHuboGUI
3384c5e40c544bd472199da9cd6e90e28321a77f
[ "BSD-2-Clause" ]
null
null
null
apps/hubo-sim.cpp
mxgrey/protoHuboGUI
3384c5e40c544bd472199da9cd6e90e28321a77f
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright (c) 2015, Georgia Tech Research Corporation * All rights reserved. * * Author(s): Michael X. Grey <mxgrey@gatech.edu> * * This file is provided under the following "BSD-style" License: * Redistribution and use in source and binary forms, with or * without modification, are permitted provided ...
30.174672
80
0.677713
[ "mesh", "shape", "vector" ]
4509020f6d27c526b093bb8144ca4dcff66329ad
4,109
cpp
C++
DiscoveringModernCpp/c++20/ranges_niebler.cpp
SebastianTirado/Cpp-Learning-Archive
fb83379d0cc3f9b2390cef00119464ec946753f4
[ "MIT" ]
19
2019-09-15T12:23:51.000Z
2020-06-18T08:31:26.000Z
DiscoveringModernCpp/c++20/ranges_niebler.cpp
SebastianTirado/Cpp-Learning-Archive
fb83379d0cc3f9b2390cef00119464ec946753f4
[ "MIT" ]
15
2021-12-07T06:46:03.000Z
2022-01-31T07:55:32.000Z
DiscoveringModernCpp/c++20/ranges_niebler.cpp
SebastianTirado/Cpp-Learning-Archive
fb83379d0cc3f9b2390cef00119464ec946753f4
[ "MIT" ]
13
2019-06-29T02:58:27.000Z
2020-05-07T08:52:22.000Z
// Example program for Discovering Modern C++ // // File: ranges_niebler.cpp // Date: 2020-01-30 #include <iostream> #include <vector> #include <algorithm> #include <iterator> #include <string_view> #include <string> #include <typeinfo> #ifdef DMC2_WITH_NIEBLER # include <range/v3/range.hpp> # include <range/v3/ran...
34.529412
95
0.556096
[ "vector", "transform" ]
4513f15b527a49ea40110d179fd230edcf12a400
10,291
cpp
C++
apps/tests/test_davidson.cpp
manhin321/SIRIUS
f4f9fb7b7cb0f0907094337a58ed9eb8928a8193
[ "BSD-2-Clause" ]
null
null
null
apps/tests/test_davidson.cpp
manhin321/SIRIUS
f4f9fb7b7cb0f0907094337a58ed9eb8928a8193
[ "BSD-2-Clause" ]
null
null
null
apps/tests/test_davidson.cpp
manhin321/SIRIUS
f4f9fb7b7cb0f0907094337a58ed9eb8928a8193
[ "BSD-2-Clause" ]
null
null
null
#include <sirius.hpp> #include "band/davidson.hpp" using namespace sirius; template <typename T> void init_wf(K_point<T>* kp__, Wave_functions<T>& phi__, int num_bands__, int num_mag_dims__) { std::vector<double> tmp(0xFFFF); for (int i = 0; i < 0xFFFF; i++) { tmp[i] = utils::random<double>(); } ...
35.857143
133
0.536488
[ "vector" ]
45165a075bf96b4a8bcde1e6f86d3dd425192bc4
990
hpp
C++
libelement/src/object_model/constraints/constraint.hpp
ultraleap/Element
6fe9ab800a9152482e719a7dc17d296bad464eb6
[ "Apache-2.0" ]
12
2019-12-17T18:27:04.000Z
2021-06-04T08:46:05.000Z
libelement/src/object_model/constraints/constraint.hpp
ultraleap/Element
6fe9ab800a9152482e719a7dc17d296bad464eb6
[ "Apache-2.0" ]
12
2020-10-27T14:30:37.000Z
2022-01-05T16:50:53.000Z
libelement/src/object_model/constraints/constraint.hpp
ultraleap/Element
6fe9ab800a9152482e719a7dc17d296bad464eb6
[ "Apache-2.0" ]
6
2020-01-10T23:45:48.000Z
2021-07-01T22:58:01.000Z
#pragma once //SELF #include "typeutil.hpp" #include "object_model/object_internal.hpp" namespace element { class constraint : public object, public rtti_type<constraint> { public: static const constraint_const_unique_ptr any; //todo: what is a function constraint and what uses it? not something a user has ac...
33
123
0.737374
[ "object" ]
931c10d209296300e91ca2c9fb8415c06fd1abdf
2,538
cpp
C++
Fusion/src/Fusion/Audio/wave_reader.cpp
WhoseTheNerd/Fusion
35ab536388392b3ba2e14f288eecbc292abd7dea
[ "Apache-2.0" ]
4
2018-11-12T18:43:02.000Z
2020-02-02T10:18:56.000Z
Fusion/src/Fusion/Audio/wave_reader.cpp
WhoseTheNerd/Fusion
35ab536388392b3ba2e14f288eecbc292abd7dea
[ "Apache-2.0" ]
2
2018-12-22T13:18:05.000Z
2019-07-24T20:15:45.000Z
Fusion/src/Fusion/Audio/wave_reader.cpp
WhoseTheNerd/Fusion
35ab536388392b3ba2e14f288eecbc292abd7dea
[ "Apache-2.0" ]
null
null
null
#include "fpch.h" #include "wave_reader.hpp" #include <cstdlib> #include <cstring> #include <iostream> #include "Buffer.hpp" namespace Fusion { WaveReader::WaveReader(const char* filepath) { ReadWaveFile(filepath); const double total_duration = m_Header.data_size / m_Header.fmt.byte_rate; const uint32_t m...
25.636364
164
0.676123
[ "vector" ]
931db19e53109a3d4b4686bceaee185643d06f89
2,281
cc
C++
13_ThreadsExceptions/OpenMP/OpenMP.cc
j3l4ck0ut/UdemyCpp
ed3b75cedbf9cad211a205195605cfd3c9280efc
[ "MIT" ]
null
null
null
13_ThreadsExceptions/OpenMP/OpenMP.cc
j3l4ck0ut/UdemyCpp
ed3b75cedbf9cad211a205195605cfd3c9280efc
[ "MIT" ]
null
null
null
13_ThreadsExceptions/OpenMP/OpenMP.cc
j3l4ck0ut/UdemyCpp
ed3b75cedbf9cad211a205195605cfd3c9280efc
[ "MIT" ]
null
null
null
#include <algorithm> #include <chrono> #include <iostream> #include <random> #include <vector> #include <thread> #include "omp.h" long long serial_sum(std::vector<int> &vec) { long long sum = 0; for (int i = 0; i != vec.size(); ++i) { sum = sum + vec[i]; } return sum; } template <typenam...
23.760417
81
0.586585
[ "vector" ]
931de618e625f88506d83141805fc0bd47edc160
556
cpp
C++
Sorting/main.cpp
LegendaryyDoc/Constructors-and-Decuns
d3469ad46ff88a7d33dee1f50a5f49ee4b99f208
[ "MIT" ]
null
null
null
Sorting/main.cpp
LegendaryyDoc/Constructors-and-Decuns
d3469ad46ff88a7d33dee1f50a5f49ee4b99f208
[ "MIT" ]
null
null
null
Sorting/main.cpp
LegendaryyDoc/Constructors-and-Decuns
d3469ad46ff88a7d33dee1f50a5f49ee4b99f208
[ "MIT" ]
null
null
null
#include <iostream> #include "HighScoreTable.h" #include <vector> int main() { //Instantiate and initialize the whole highscore table HighScoreTable hst("highScores.txt"); int scoreSize = 10; //retrieve the top 10 scores std::vector<HighScoreEntry> topScores = hst.topNNScores(scoreSize); //todo: cycle throug...
19.172414
68
0.717626
[ "vector" ]
93225cdb300a27c2cc6b1eba889ccaec26f1f30e
6,818
cpp
C++
tests/doctests/example_token_action_tests.cpp
JackDiSalvatore/eosio.contracts-token-exchange
5b78a49629d0fd2bf94d4f5cebffcd596b70c174
[ "MIT" ]
1
2022-01-07T09:51:17.000Z
2022-01-07T09:51:17.000Z
tests/doctests/example_token_action_tests.cpp
JackDiSalvatore/eosio.contracts-token-exchange
5b78a49629d0fd2bf94d4f5cebffcd596b70c174
[ "MIT" ]
null
null
null
tests/doctests/example_token_action_tests.cpp
JackDiSalvatore/eosio.contracts-token-exchange
5b78a49629d0fd2bf94d4f5cebffcd596b70c174
[ "MIT" ]
null
null
null
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include "doctest.h" #include <eosio/testing/tester.hpp> #include <eosio/chain/abi_serializer.hpp> #include <eosio/chain/resource_limits.hpp> #include "../contracts.hpp" using namespace eosio::chain; using namespace eosio::testing; using namespace fc; using mvo = fc::mutab...
38.96
139
0.625257
[ "vector" ]
9325e6338ec3dcb2124fec4235b2892c0d7c60b8
711
cpp
C++
leetcode/1382. Balance a Binary Search Tree/s1.cpp
zhuohuwu0603/leetcode_cpp_lzl124631x
6a579328810ef4651de00fde0505934d3028d9c7
[ "Fair" ]
787
2017-05-12T05:19:57.000Z
2022-03-30T12:19:52.000Z
leetcode/1382. Balance a Binary Search Tree/s1.cpp
aerlokesh494/LeetCode
0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f
[ "Fair" ]
8
2020-03-16T05:55:38.000Z
2022-03-09T17:19:17.000Z
leetcode/1382. Balance a Binary Search Tree/s1.cpp
aerlokesh494/LeetCode
0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f
[ "Fair" ]
247
2017-04-30T15:07:50.000Z
2022-03-30T09:58:57.000Z
// OJ: https://leetcode.com/problems/balance-a-binary-search-tree/ // Author: github.com/lzl124631x // Time: O(H) // Space: O(N) class Solution { vector<int> v; void inorder(TreeNode *root) { if (!root) return; inorder(root->left); v.push_back(root->val); inorder(root->right); ...
27.346154
66
0.555556
[ "vector" ]
9325f52e1b61de7454fe6bc7d9756ebb3bb4012a
4,340
cpp
C++
src/python/pml/matrix_parameter.cpp
s3a-spatialaudio/VISR
55f6289bc5058d4898106f3520e1a60644ffb3ab
[ "ISC" ]
17
2019-03-12T14:52:22.000Z
2021-11-09T01:16:23.000Z
src/python/pml/matrix_parameter.cpp
s3a-spatialaudio/VISR
55f6289bc5058d4898106f3520e1a60644ffb3ab
[ "ISC" ]
null
null
null
src/python/pml/matrix_parameter.cpp
s3a-spatialaudio/VISR
55f6289bc5058d4898106f3520e1a60644ffb3ab
[ "ISC" ]
2
2019-08-11T12:53:07.000Z
2021-06-22T10:08:08.000Z
/* Copyright Institute of Sound and Vibration Research - All rights reserved */ #include <libpml/matrix_parameter.hpp> #include <libpml/matrix_parameter_config.hpp> #include <libefl/basic_matrix.hpp> #include <libvisr/constants.hpp> #include <libvisr/parameter_base.hpp> #include <pybind11/pybind11.h> #include <p...
47.692308
196
0.669585
[ "object", "shape" ]
932c951fdae19d4fabb636dfe23f1ff9759fa897
24,286
cpp
C++
FM/Schweighofer.cpp
dnsampaio/PFME
7136612ffa643bfff795adce774f28cc3a5184be
[ "MIT" ]
null
null
null
FM/Schweighofer.cpp
dnsampaio/PFME
7136612ffa643bfff795adce774f28cc3a5184be
[ "MIT" ]
null
null
null
FM/Schweighofer.cpp
dnsampaio/PFME
7136612ffa643bfff795adce774f28cc3a5184be
[ "MIT" ]
null
null
null
#include "Schweighofer.hpp" #include "debug.hpp" #include <cmath> #include <iostream> using namespace std; using namespace GiNaC; template <typename T> using gexmap = map<ex, T, ex_is_less>; SchweighoferTester::SchweighoferTester(exset ineqs, unsigned d) : numSrcs(ineqs.size()), problem(nullptr), monomPos({}), in...
30.281796
89
0.551676
[ "object", "vector" ]
93366f86932d744e539e1bfbb17991811693d580
7,646
cpp
C++
src/xray/test_animations/sources/test_animations_application.cpp
ixray-team/ixray-2.0
85c3a544175842323fc82f42efd96c66f0fc5abb
[ "Linux-OpenIB" ]
3
2021-10-30T09:36:14.000Z
2022-03-26T17:00:06.000Z
src/xray/test_animations/sources/test_animations_application.cpp
acidicMercury8/ixray-2.0
85c3a544175842323fc82f42efd96c66f0fc5abb
[ "Linux-OpenIB" ]
null
null
null
src/xray/test_animations/sources/test_animations_application.cpp
acidicMercury8/ixray-2.0
85c3a544175842323fc82f42efd96c66f0fc5abb
[ "Linux-OpenIB" ]
1
2022-03-26T17:00:08.000Z
2022-03-26T17:00:08.000Z
//////////////////////////////////////////////////////////////////////////// // Created : 07.12.2009 // Author : Dmitriy Iassenev // Copyright (C) GSC Game World - 2009 //////////////////////////////////////////////////////////////////////////// #include "pch.h" #include "test_animations_application.h" pcs...
26.006803
133
0.627518
[ "vector" ]
9339eb37e69a60a4de9a6591a4a8816b6a2e9a38
25,323
cpp
C++
src/pyjion/pyjit.cpp
mfkiwl/Pyjion
ed4bc1a37c1d384f9c4b68241029eb87ae712119
[ "MIT" ]
null
null
null
src/pyjion/pyjit.cpp
mfkiwl/Pyjion
ed4bc1a37c1d384f9c4b68241029eb87ae712119
[ "MIT" ]
null
null
null
src/pyjion/pyjit.cpp
mfkiwl/Pyjion
ed4bc1a37c1d384f9c4b68241029eb87ae712119
[ "MIT" ]
null
null
null
/* * The MIT License (MIT) * * Copyright (c) Microsoft Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, cop...
35.868272
138
0.65869
[ "object" ]
933d0ab2ad46deba1c119411a149e0391d6e6441
31,948
cxx
C++
src/AutoTractDerivedWindow.cxx
NIRALUser/AutoTract
37517dd923b497e41249c3653e8e8e513c7eed74
[ "Apache-2.0" ]
2
2020-06-16T15:24:52.000Z
2020-09-14T17:50:53.000Z
src/AutoTractDerivedWindow.cxx
NIRALUser/AutoTract
37517dd923b497e41249c3653e8e8e513c7eed74
[ "Apache-2.0" ]
2
2019-02-15T22:45:18.000Z
2022-02-04T17:13:19.000Z
src/AutoTractDerivedWindow.cxx
NIRALUser/AutoTract
37517dd923b497e41249c3653e8e8e513c7eed74
[ "Apache-2.0" ]
4
2015-08-14T15:47:54.000Z
2018-12-04T23:19:25.000Z
#include "AutoTractDerivedWindow.h" /* Management of software tab: https://github.com/marie-cherel2013/NeosegPipeline*/ AutoTractDerivedWindow::AutoTractDerivedWindow() { m_thread = new MainScriptThread(); m_pipeline = new Pipeline(); log_textEdit->setReadOnly(true); connect( this->actionSave_Paramet...
43.884615
175
0.727589
[ "vector" ]
93407cb72ddf3804c7ab36dd3566cd7ea6607023
39,010
cpp
C++
src/viewer/ImageX.cpp
serserar/ModelConverter
23e6237a347dc959de191d4cc378defb0a9d044b
[ "MIT" ]
null
null
null
src/viewer/ImageX.cpp
serserar/ModelConverter
23e6237a347dc959de191d4cc378defb0a9d044b
[ "MIT" ]
null
null
null
src/viewer/ImageX.cpp
serserar/ModelConverter
23e6237a347dc959de191d4cc378defb0a9d044b
[ "MIT" ]
null
null
null
/* -*- c++ -*- */ ///////////////////////////////////////////////////////////////////////////// // // Image.cpp -- Copyright (c) 2006 David Henry // last modification: mar. 2, 2006 // // This code is licenced under the MIT license. // // This software is provided "as is" without express or implied // warranties. You ma...
24.894703
80
0.516483
[ "object" ]
934369725360f86236bf78d66024d7230618ade0
2,690
hpp
C++
Extensions/ZilchShaders/BaseShaderTranslator.hpp
RachelWilSingh/ZeroCore
e9a2f82d395e5c89fb98eceac44ce60d016dbff3
[ "MIT" ]
52
2018-09-11T17:18:35.000Z
2022-03-13T15:28:21.000Z
Extensions/ZilchShaders/BaseShaderTranslator.hpp
RachelWilSingh/ZeroCore
e9a2f82d395e5c89fb98eceac44ce60d016dbff3
[ "MIT" ]
1,409
2018-09-19T18:03:43.000Z
2021-06-09T08:33:33.000Z
Extensions/ZilchShaders/BaseShaderTranslator.hpp
RachelWilSingh/ZeroCore
e9a2f82d395e5c89fb98eceac44ce60d016dbff3
[ "MIT" ]
26
2018-09-11T17:16:32.000Z
2021-11-22T06:21:19.000Z
/////////////////////////////////////////////////////////////////////////////// /// /// Authors: Joshua Davis /// Copyright 2015, DigiPen Institute of Technology /// /////////////////////////////////////////////////////////////////////////////// #pragma once namespace Zero { //-----------------------------...
54.897959
163
0.693309
[ "geometry", "render" ]
93439307ca0cc1448946aa4bb64491e513d5d54a
2,730
hpp
C++
paperbird/src/applicationui.hpp
BerryTrucks/PaperBird
7ab14b7c473085d15429a30d2dc6b107aea2b633
[ "MIT" ]
null
null
null
paperbird/src/applicationui.hpp
BerryTrucks/PaperBird
7ab14b7c473085d15429a30d2dc6b107aea2b633
[ "MIT" ]
null
null
null
paperbird/src/applicationui.hpp
BerryTrucks/PaperBird
7ab14b7c473085d15429a30d2dc6b107aea2b633
[ "MIT" ]
null
null
null
/* * Copyright (c) 2011-2015 BlackBerry Limited. * * 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 ...
33.292683
108
0.743223
[ "object" ]
934544240451ac3e2cc795965c020a57362f8e96
7,118
cpp
C++
robot/src/vision_to_mavros/src/t265_fisheye_undistort.cpp
mikobski/Robot-Inspekcyjny
925491fc43b71bdaa54dccf60d38da59d244181d
[ "Apache-2.0" ]
null
null
null
robot/src/vision_to_mavros/src/t265_fisheye_undistort.cpp
mikobski/Robot-Inspekcyjny
925491fc43b71bdaa54dccf60d38da59d244181d
[ "Apache-2.0" ]
6
2020-08-19T21:21:58.000Z
2020-10-05T13:33:19.000Z
robot/src/vision_to_mavros/src/t265_fisheye_undistort.cpp
mikobski/Critbot
925491fc43b71bdaa54dccf60d38da59d244181d
[ "Apache-2.0" ]
null
null
null
#include <ros/ros.h> #include <cv_bridge/cv_bridge.h> #include <image_transport/image_transport.h> #include <message_filters/subscriber.h> #include <message_filters/synchronizer.h> #include <message_filters/sync_policies/approximate_time.h> #include <opencv2/opencv.hpp> #include <opencv2/highgui/highgui.hpp> using nam...
39.544444
147
0.69528
[ "vector" ]
934642846899f922c72cb284bfc0e167b0911447
13,522
cc
C++
src/BPELearner.cc
filips123/Tokenizer
ab75cac0bb4f69c03734262400b6fa3afdc89c2f
[ "MIT" ]
null
null
null
src/BPELearner.cc
filips123/Tokenizer
ab75cac0bb4f69c03734262400b6fa3afdc89c2f
[ "MIT" ]
null
null
null
src/BPELearner.cc
filips123/Tokenizer
ab75cac0bb4f69c03734262400b6fa3afdc89c2f
[ "MIT" ]
1
2020-12-25T12:06:27.000Z
2020-12-25T12:06:27.000Z
/* Use byte pair encoding (BPE) to learn a variable-length encoding of the vocabulary in a text. Unlike the original BPE, it does not compress the plain text, but can be used to reduce the vocabulary of a text to a configurable number of symbols, with only a small increase in the number of tokens. Reference: Rico Senn...
36.744565
138
0.591111
[ "vector" ]
934750f89660e29122ac5b502ef9c5bc2f8c1ef2
458
cpp
C++
IncrementalEngine/TextureBase.cpp
Thendplayer/IncrementalEngine
44c96e312431118586c00f030548d5a00524efeb
[ "MIT" ]
1
2021-05-19T13:19:05.000Z
2021-05-19T13:19:05.000Z
IncrementalEngine/TextureBase.cpp
Thendplayer/IncrementalEngine
44c96e312431118586c00f030548d5a00524efeb
[ "MIT" ]
null
null
null
IncrementalEngine/TextureBase.cpp
Thendplayer/IncrementalEngine
44c96e312431118586c00f030548d5a00524efeb
[ "MIT" ]
null
null
null
#include "TextureBase.h" namespace IncrementalEngine { TextureBase::TextureBase() : _texture(NULL) { _transform = Transform(); _bounds = { 0, 0, 0, 0 }; } TextureBase::~TextureBase() { } void TextureBase::Update(Transform transform, FloatRect bounds) { _transform = transform; _bounds = bounds; } ...
14.3125
64
0.674672
[ "transform" ]
934b6a08d4e2e6086bd385acfaac5cb09ef08708
9,420
hpp
C++
src/math/linear/vector/rotate.hpp
dmilos/math
977cb171d8d582411cfab73a23ce85a8ccf3b132
[ "Apache-2.0" ]
3
2020-07-02T12:44:32.000Z
2021-04-07T20:31:41.000Z
src/math/linear/vector/rotate.hpp
dmilos/math
977cb171d8d582411cfab73a23ce85a8ccf3b132
[ "Apache-2.0" ]
null
null
null
src/math/linear/vector/rotate.hpp
dmilos/math
977cb171d8d582411cfab73a23ce85a8ccf3b132
[ "Apache-2.0" ]
1
2020-09-04T11:01:28.000Z
2020-09-04T11:01:28.000Z
#ifndef math_library_linear_algebra__vector_rotate_HPP_ #define math_library_linear_algebra__vector_rotate_HPP_ // math::linear::vector::rotate( r, alpha, point ) // math::linear::vector::rotate( r, alpha, point, pivot ) // math::linear::vector::rotateX( r, alpha, point ) // math::linear::vector::rotateY( r, ...
43.813953
160
0.516348
[ "vector" ]
93510f1f013088b74e5b3ace310687b59f06033c
2,486
cc
C++
src/modular/bin/sessionmgr/puppet_master/make_production_impl.cc
casey/fuchsia
2b965e9a1e8f2ea346db540f3611a5be16bb4d6b
[ "BSD-3-Clause" ]
null
null
null
src/modular/bin/sessionmgr/puppet_master/make_production_impl.cc
casey/fuchsia
2b965e9a1e8f2ea346db540f3611a5be16bb4d6b
[ "BSD-3-Clause" ]
null
null
null
src/modular/bin/sessionmgr/puppet_master/make_production_impl.cc
casey/fuchsia
2b965e9a1e8f2ea346db540f3611a5be16bb4d6b
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2018 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/modular/bin/sessionmgr/puppet_master/make_production_impl.h" #include <memory> #include "src/modular/bin/sessionmgr/puppet_master/command_r...
51.791667
100
0.766291
[ "vector" ]
9355fd43e4b573165ed7b69492c568db88828867
4,084
cpp
C++
spine/MultiLanguageStringArray.cpp
fmidev/smartmet-library-spine
f770171149fdaa78c5b7c7ba463218a9fd63bd68
[ "MIT" ]
1
2017-03-13T03:34:32.000Z
2017-03-13T03:34:32.000Z
spine/MultiLanguageStringArray.cpp
fmidev/smartmet-library-spine
f770171149fdaa78c5b7c7ba463218a9fd63bd68
[ "MIT" ]
3
2017-11-02T16:30:29.000Z
2020-05-27T13:46:14.000Z
spine/MultiLanguageStringArray.cpp
fmidev/smartmet-library-spine
f770171149fdaa78c5b7c7ba463218a9fd63bd68
[ "MIT" ]
1
2017-05-15T09:04:13.000Z
2017-05-15T09:04:13.000Z
#include "MultiLanguageStringArray.h" #include "ConfigBase.h" #include <macgyver/Exception.h> #include <macgyver/StringConversion.h> using SmartMet::Spine::MultiLanguageStringArray; /** @page SPINE_CFG_MULTI_LANGUAGE_STRING_ARRAY cfgMultiLanguageStringArray This configuration object contains values of string array ...
26.348387
96
0.65573
[ "object", "vector" ]
93599a4df5083aef61bc2b880799de0ef29d8fdb
15,656
cpp
C++
src/render/shader.cpp
fiddleplum/ve
1e45de0488d593069032714ebe67725f468054f8
[ "MIT" ]
null
null
null
src/render/shader.cpp
fiddleplum/ve
1e45de0488d593069032714ebe67725f468054f8
[ "MIT" ]
16
2016-12-27T16:57:09.000Z
2017-04-30T23:34:58.000Z
src/render/shader.cpp
fiddleplum/ve
1e45de0488d593069032714ebe67725f468054f8
[ "MIT" ]
null
null
null
#include "render/shader.hpp" #include "render/open_gl.hpp" #include "render/mesh.hpp" #include "util/stringutil.hpp" // TODO: Make the shader use specific attribute locations chosen by an enum based on the attribute names. // This allows multiple shaders to be used with a single vbo and all be compatible. // A vbo is...
28.621572
154
0.663196
[ "mesh", "render", "object", "vector" ]
935c7d2fdbf22689c99344513d66a3ccc5995d4c
3,352
cpp
C++
interpreter-for-cpp/src/Base/ErrorLogger.cpp
Jenocn/PeakScript
444ba5f9d0062989d8beca0d76415961f1ae2922
[ "MIT" ]
1
2020-05-21T09:02:19.000Z
2020-05-21T09:02:19.000Z
interpreter-for-cpp/src/Base/ErrorLogger.cpp
Jenocn/PeakScript
444ba5f9d0062989d8beca0d76415961f1ae2922
[ "MIT" ]
8
2020-05-29T14:12:00.000Z
2022-01-22T09:08:47.000Z
interpreter-for-cpp/src/Base/ErrorLogger.cpp
Jenocn/PeakScript
444ba5f9d0062989d8beca0d76415961f1ae2922
[ "MIT" ]
null
null
null
#include "ErrorLogger.h" using namespace peak::interpreter; std::function<void(const std::string&)> ErrorLogger::_logger = [](const std::string& message) { std::cout << message << std::endl; }; std::map<ErrorRuntimeCode, std::string> ErrorLogger::_errorCodeNameMap = { {ErrorRuntimeCode::Space, "Space"}, ...
40.385542
118
0.65185
[ "object" ]
93612e9a71c4c9e6241090c63a8d9ea2a58c991a
5,972
cpp
C++
SPQSP_IO/SP_QSP_shared/ABM_Base/ParamBase.cpp
popellab/SPQSP_IO
eca3ea55ec2f75b0db5d58da09500ddffabc001d
[ "MIT" ]
null
null
null
SPQSP_IO/SP_QSP_shared/ABM_Base/ParamBase.cpp
popellab/SPQSP_IO
eca3ea55ec2f75b0db5d58da09500ddffabc001d
[ "MIT" ]
null
null
null
SPQSP_IO/SP_QSP_shared/ABM_Base/ParamBase.cpp
popellab/SPQSP_IO
eca3ea55ec2f75b0db5d58da09500ddffabc001d
[ "MIT" ]
null
null
null
#include "ParamBase.h" #include <boost/property_tree/xml_parser.hpp> #include <boost/foreach.hpp> #include <iostream> namespace SP_QSP_IO{ namespace pt = boost::property_tree; ParamBase::ParamBase() :_paramDesc() , _paramFloat() , _paramInt() , _paramBool() , _paramFloatInternal() , _paramIntInternal() , _pa...
27.269406
87
0.655224
[ "object" ]
9365e8cc4ff82da66ee4656b42a6f94a80591bfc
2,926
hpp
C++
include/epiworld/entity-meat.hpp
UofUEpi/epiworld
a510644b05803f8c617dfcb7a909805649da3eb2
[ "MIT" ]
null
null
null
include/epiworld/entity-meat.hpp
UofUEpi/epiworld
a510644b05803f8c617dfcb7a909805649da3eb2
[ "MIT" ]
null
null
null
include/epiworld/entity-meat.hpp
UofUEpi/epiworld
a510644b05803f8c617dfcb7a909805649da3eb2
[ "MIT" ]
null
null
null
#ifndef EPIWORLD_ENTITY_MEAT_HPP #define EPIWORLD_ENTITY_MEAT_HPP template<typename TSeq> inline void Entity<TSeq>::add_agent(Agent<TSeq> & p) { // Need to add it to the actions, through the individual p.add_entity(*this); } template<typename TSeq> inline void Entity<TSeq>::add_agent(Agent<TSeq> * p) { ...
19.124183
88
0.669856
[ "vector" ]
9373bbf2802d5b1513f93e9972e54dbe0ed3e5ab
4,036
cpp
C++
heavenLi_pyopengl/hliGLutils/buttonUtils/drawPrim.cpp
iyr/heavenli
90f2786b0a8934302910f2214e71ee851e678baa
[ "BSD-3-Clause" ]
null
null
null
heavenLi_pyopengl/hliGLutils/buttonUtils/drawPrim.cpp
iyr/heavenli
90f2786b0a8934302910f2214e71ee851e678baa
[ "BSD-3-Clause" ]
null
null
null
heavenLi_pyopengl/hliGLutils/buttonUtils/drawPrim.cpp
iyr/heavenli
90f2786b0a8934302910f2214e71ee851e678baa
[ "BSD-3-Clause" ]
null
null
null
using namespace std; GLuint extraPrimVerts; PyObject* drawPrim_hliGLutils(PyObject* self, PyObject *args) { PyObject *faceColorPyTup; PyObject *extraColorPyTup; PyObject *detailColorPyTup; float gx, gy, ao, scale, w2h; //float faceColor[4]; //float extraColor[4]; //float detailColor[4]; G...
30.575758
104
0.600347
[ "geometry", "vector" ]
937717e57d624c8033e3fd49656af082d8917a6a
2,687
cpp
C++
src/main/main.cpp
tobyndax/AdventOfCode2021
298f73ca1b1323a6a9ad27d612bd3699ee0b07ce
[ "MIT" ]
null
null
null
src/main/main.cpp
tobyndax/AdventOfCode2021
298f73ca1b1323a6a9ad27d612bd3699ee0b07ce
[ "MIT" ]
9
2021-12-01T19:58:35.000Z
2021-12-12T14:25:35.000Z
src/main/main.cpp
tobyndax/AdventOfCode2021
298f73ca1b1323a6a9ad27d612bd3699ee0b07ce
[ "MIT" ]
null
null
null
#include "src/lib/cpplib.h" #include "src/lib/day1solver.h" #include "src/lib/day2solver.h" #include "src/lib/day3solver.h" #include "src/lib/day4solver.h" #include "src/lib/day5solver.h" #include "src/lib/day6solver.h" #include "src/lib/day7solver.h" #include "src/lib/util.h" #include <iostream> int main() { int ...
26.60396
79
0.634909
[ "vector" ]
9386c5182053bc9da5a44524212f51faf3befcc4
6,646
hpp
C++
ql/experimental/templatemodels/auxilliaries/integratorsT.hpp
sschlenkrich/quantlib
ff39ad2cd03d06d185044976b2e26ce34dca470c
[ "BSD-3-Clause" ]
null
null
null
ql/experimental/templatemodels/auxilliaries/integratorsT.hpp
sschlenkrich/quantlib
ff39ad2cd03d06d185044976b2e26ce34dca470c
[ "BSD-3-Clause" ]
null
null
null
ql/experimental/templatemodels/auxilliaries/integratorsT.hpp
sschlenkrich/quantlib
ff39ad2cd03d06d185044976b2e26ce34dca470c
[ "BSD-3-Clause" ]
null
null
null
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2010 Sebastian Schlenkrich */ /*! \file integratorsT.hpp \brief provide template functions for numerical integration */ #ifndef quantlib_templateintegrators_hpp #define quantlib_templateintegrators_hpp #include <...
44.306667
146
0.494583
[ "vector" ]
9386e0ff883a8927a6adc1c6d67c0791e5c132b1
3,719
hpp
C++
dart/gui/osg/ImGuiHandler.hpp
fowzan123/Dart-Humanoid-
03b24a7cd2ecfa5ac20e38460b6564ae65a5ad7a
[ "BSD-2-Clause" ]
1
2020-01-14T09:37:25.000Z
2020-01-14T09:37:25.000Z
dart/gui/osg/ImGuiHandler.hpp
fowzan123/Dart-Humanoid-
03b24a7cd2ecfa5ac20e38460b6564ae65a5ad7a
[ "BSD-2-Clause" ]
null
null
null
dart/gui/osg/ImGuiHandler.hpp
fowzan123/Dart-Humanoid-
03b24a7cd2ecfa5ac20e38460b6564ae65a5ad7a
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright (c) 2011-2019, The DART development contributors * All rights reserved. * * The list of contributors can be found at: * https://github.com/dartsim/dart/blob/master/LICENSE * * This file is provided under the following "BSD-style" License: * Redistribution and use in source and binary forms, w...
32.622807
80
0.690777
[ "render", "object", "vector" ]
9393c4568ed30cffd1a144d0a60048bfbc5804f0
2,208
cpp
C++
scripts/plot_pid.cpp
cannontwo/cannon
4be79f3a6200d1a3cd26c28c8f2250dbdf08f267
[ "MIT" ]
null
null
null
scripts/plot_pid.cpp
cannontwo/cannon
4be79f3a6200d1a3cd26c28c8f2250dbdf08f267
[ "MIT" ]
46
2021-01-12T23:03:52.000Z
2021-10-01T17:29:01.000Z
scripts/plot_pid.cpp
cannontwo/cannon
4be79f3a6200d1a3cd26c28c8f2250dbdf08f267
[ "MIT" ]
null
null
null
#ifdef CANNON_BUILD_GRAPHICS #include <imgui.h> #include <cannon/control/pid.hpp> #include <cannon/log/registry.hpp> #include <cannon/physics/rk4_integrator.hpp> #include <cannon/plot/plotter.hpp> using namespace cannon::plot; using namespace cannon::log; using namespace cannon::control; static const double m = 1;...
24.533333
99
0.619565
[ "render", "vector" ]
93967f6ab767e51159af657b2dd949338ba966eb
3,224
cpp
C++
src/haloray-core/opengl/textureRenderer.cpp
naavis/haloray
628583d17fc56446dd9bb169652425ce298bd6d3
[ "MIT" ]
19
2019-06-16T22:01:57.000Z
2022-03-26T01:09:16.000Z
src/haloray-core/opengl/textureRenderer.cpp
naavis/haloray
628583d17fc56446dd9bb169652425ce298bd6d3
[ "MIT" ]
5
2019-06-17T09:27:06.000Z
2020-02-02T08:35:28.000Z
src/haloray-core/opengl/textureRenderer.cpp
naavis/haloray
628583d17fc56446dd9bb169652425ce298bd6d3
[ "MIT" ]
2
2019-06-16T22:01:59.000Z
2019-07-15T18:31:05.000Z
#include "textureRenderer.h" #include <memory> #include <string> #include <QtGlobal> #include <stdexcept> namespace OpenGL { std::unique_ptr<QOpenGLShaderProgram> TextureRenderer::initializeTexDrawShaderProgram() { qInfo("Initializing texture renderer vertex shader"); auto program = std::make_unique<QOpenGLSh...
28.034783
148
0.716811
[ "render" ]
9399eeac26c150c285a428e86cb101990ee0c8bc
4,841
cpp
C++
Tracing/Preprocessing/CurveletFiltering/fdct_wrapping_cpp/src/fdct_wrapping_param.cpp
tostathaina/farsight
7e9d6d15688735f34f7ca272e4e715acd11473ff
[ "Apache-2.0" ]
21
2017-11-02T21:17:05.000Z
2022-02-17T17:48:47.000Z
Tracing/Preprocessing/CurveletFiltering/fdct_wrapping_cpp/src/fdct_wrapping_param.cpp
YanXuHappygela/Farsight
1711b2a1458c7e035edd21fe0019a1f7d23fcafa
[ "Apache-2.0" ]
2
2017-11-02T23:39:21.000Z
2018-01-19T23:15:46.000Z
Tracing/Preprocessing/CurveletFiltering/fdct_wrapping_cpp/src/fdct_wrapping_param.cpp
YanXuHappygela/Farsight
1711b2a1458c7e035edd21fe0019a1f7d23fcafa
[ "Apache-2.0" ]
12
2017-11-02T21:17:11.000Z
2022-03-23T16:14:42.000Z
/* Copyright (C) 2004 Caltech Written by Lexing Ying */ #include "fdct_wrapping.hpp" #include "fdct_wrapping_inline.hpp" FDCT_WRAPPING_NS_BEGIN_NAMESPACE int fdct_wrapping_param_sepangle(double XL1, double XL2, int nbangle, vector<double>& sx, vector<double>& sy, vector<double>& fx, vecto...
36.954198
134
0.595538
[ "vector" ]
4d33e35bd53d8d47e1f8997051109a2eda99fe4c
1,292
hpp
C++
src/renderer.hpp
nagaunv/rt
c96b74ed645c6f534c4d41f8e1e767fd56aad4f3
[ "MIT" ]
null
null
null
src/renderer.hpp
nagaunv/rt
c96b74ed645c6f534c4d41f8e1e767fd56aad4f3
[ "MIT" ]
null
null
null
src/renderer.hpp
nagaunv/rt
c96b74ed645c6f534c4d41f8e1e767fd56aad4f3
[ "MIT" ]
null
null
null
#pragma once #include <type_traits> #include "image.hpp" namespace naga::rt { /// Renderer class Renderer { public: /// Render image virtual void render(Image& img) const = 0; /// Dtor virtual ~Renderer() {} protected: Renderer() = default; }; /// PixelRenderer template <class T> ...
24.377358
80
0.604489
[ "render" ]
4d38ad465fa8a6c061cb59cb82b7c72f91766ddb
875
cpp
C++
CppMonoMain/source/Log.cpp
BartoszJakubZielonka/Cpp_Mono_Example
8dffab580d6c9a5eca01555a34f6dbe946817b07
[ "MIT" ]
null
null
null
CppMonoMain/source/Log.cpp
BartoszJakubZielonka/Cpp_Mono_Example
8dffab580d6c9a5eca01555a34f6dbe946817b07
[ "MIT" ]
null
null
null
CppMonoMain/source/Log.cpp
BartoszJakubZielonka/Cpp_Mono_Example
8dffab580d6c9a5eca01555a34f6dbe946817b07
[ "MIT" ]
null
null
null
#include "Log.h" #include <spdlog/sinks/stdout_color_sinks.h> #include <spdlog/sinks/basic_file_sink.h> std::shared_ptr<spdlog::logger> Log::coreLogger; std::shared_ptr<spdlog::logger> Log::clientLogger; void Log::init() { std::vector<spdlog::sink_ptr> logSinks; logSinks.emplace_back(std::make_shared<spdlog::...
33.653846
92
0.716571
[ "vector" ]
4d3ead80f589e56721233a89129dfe8975c3b71e
11,272
cpp
C++
source/laplace/platform/linux/linux_window.cpp
automainint/laplace
66956df506918d48d79527e524ff606bb197d8af
[ "MIT" ]
3
2021-05-17T21:15:28.000Z
2021-09-06T23:01:52.000Z
source/laplace/platform/linux/linux_window.cpp
automainint/laplace
66956df506918d48d79527e524ff606bb197d8af
[ "MIT" ]
33
2021-10-20T10:47:07.000Z
2022-02-26T02:24:20.000Z
source/laplace/platform/linux/linux_window.cpp
automainint/laplace
66956df506918d48d79527e524ff606bb197d8af
[ "MIT" ]
null
null
null
/* laplace/platform/linux/linux_window.cpp * * Copyright (c) 2021 Mitya Selivanov * * This file is part of the Laplace project. * * Laplace is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURP...
24.938053
70
0.587651
[ "vector" ]