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
260f13fa0e1490d084a85a11714f4c4f9fa2d3ca
3,216
hpp
C++
hpx/runtime/parcelset/policies/mpi/allocator.hpp
Titzi90/hpx
150fb0de1cfe40c26a722918097199147957b45c
[ "BSL-1.0" ]
null
null
null
hpx/runtime/parcelset/policies/mpi/allocator.hpp
Titzi90/hpx
150fb0de1cfe40c26a722918097199147957b45c
[ "BSL-1.0" ]
null
null
null
hpx/runtime/parcelset/policies/mpi/allocator.hpp
Titzi90/hpx
150fb0de1cfe40c26a722918097199147957b45c
[ "BSL-1.0" ]
null
null
null
// Copyright (c) 2007-2012 Hartmut Kaiser // Copyright (c) 2013 Thomas Heller // Copyright (c) 2006 Douglas Gregor // // 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) // This file is an adaption of bo...
26.578512
92
0.522699
[ "object" ]
2616704fec0bd2dbb5de2c90c1581126eabc2665
223
hpp
C++
src/data/dict_loader_i.hpp
icorbrey/word-search-solver
d5b4738acf32bfb3cb99810f4dab56ae1aa6cee3
[ "MIT" ]
null
null
null
src/data/dict_loader_i.hpp
icorbrey/word-search-solver
d5b4738acf32bfb3cb99810f4dab56ae1aa6cee3
[ "MIT" ]
null
null
null
src/data/dict_loader_i.hpp
icorbrey/word-search-solver
d5b4738acf32bfb3cb99810f4dab56ae1aa6cee3
[ "MIT" ]
null
null
null
#ifndef DICT_LOADER_I_HPP #define DICT_LOADER_I_HPP #include <string> #include <vector> class dict_loader_i { public: virtual std::vector<std::string> load_dict(std::string path) = 0; }; #endif // !DICT_LOADER_I_HPP
15.928571
69
0.744395
[ "vector" ]
262aa9859142d572db12cfafaf4817fcfb4f5a5e
1,416
cpp
C++
cpp01/ex03/HumanA.cpp
pgomez-a/42_CPP_Piscine
c350f5f3c2e4d332b13bfa632b36f9a4b7bc6ce1
[ "MIT" ]
null
null
null
cpp01/ex03/HumanA.cpp
pgomez-a/42_CPP_Piscine
c350f5f3c2e4d332b13bfa632b36f9a4b7bc6ce1
[ "MIT" ]
null
null
null
cpp01/ex03/HumanA.cpp
pgomez-a/42_CPP_Piscine
c350f5f3c2e4d332b13bfa632b36f9a4b7bc6ce1
[ "MIT" ]
null
null
null
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* HumanA.cpp :+: :+: :+: ...
30.782609
80
0.300847
[ "object" ]
1c84e0b2482f813e9b9692c22f11bb69987c8062
3,684
cpp
C++
assignments/handofros_odroid/src/motion_node_service.cpp
robertsatya/ros-bot
12ef876beee36ebb1d9af90c6e9d8b1b0a4a76d2
[ "MIT" ]
null
null
null
assignments/handofros_odroid/src/motion_node_service.cpp
robertsatya/ros-bot
12ef876beee36ebb1d9af90c6e9d8b1b0a4a76d2
[ "MIT" ]
null
null
null
assignments/handofros_odroid/src/motion_node_service.cpp
robertsatya/ros-bot
12ef876beee36ebb1d9af90c6e9d8b1b0a4a76d2
[ "MIT" ]
null
null
null
#include <ros/ros.h> #include "handofros_odroid/motion_node.h" #include <geometry_msgs/PoseStamped.h> #include <visualization_msgs/Marker.h> // adadad using namespace std; ros::Publisher marker_pub; ros::Publisher location_pub; visualization_msgs::Marker marker; geometry_msgs::Pose p; bool select_mode(handofros_odr...
27.288889
111
0.672367
[ "shape" ]
1c85549291b3cc5c49efb5cec13a19d344289b1f
997
cpp
C++
src/StackTrace.cpp
jrialland/cpplogging
ba9e189dfe8a72959bc0abc87793be28ec2014a1
[ "Unlicense" ]
null
null
null
src/StackTrace.cpp
jrialland/cpplogging
ba9e189dfe8a72959bc0abc87793be28ec2014a1
[ "Unlicense" ]
null
null
null
src/StackTrace.cpp
jrialland/cpplogging
ba9e189dfe8a72959bc0abc87793be28ec2014a1
[ "Unlicense" ]
null
null
null
#include "StackTrace.hpp" #include "execinfo.h" #include <dlfcn.h> #include <cxxabi.h> std::string demangle(const char* name) { int status; char *demangled = abi::__cxa_demangle(name, NULL, 0, &status); if(status == 0) { string sdemangled(demangled); if(demangled != NULL) { free(demangled); } return s...
16.898305
63
0.614845
[ "vector" ]
1c8b2414e319894d2b81c555f64d347c7686dc65
2,150
hh
C++
src/SimpleAllocator.hh
fuzziqersoftware/sharedstructures
23471fc24484b472e4b2399d7c64c1071d12c641
[ "MIT" ]
21
2016-11-30T06:40:04.000Z
2022-03-23T13:16:53.000Z
src/SimpleAllocator.hh
fuzziqersoftware/sharedstructures
23471fc24484b472e4b2399d7c64c1071d12c641
[ "MIT" ]
null
null
null
src/SimpleAllocator.hh
fuzziqersoftware/sharedstructures
23471fc24484b472e4b2399d7c64c1071d12c641
[ "MIT" ]
3
2018-02-21T12:25:08.000Z
2021-12-16T06:14:05.000Z
#pragma once #include "Allocator.hh" namespace sharedstructures { class SimpleAllocator : public Allocator { public: SimpleAllocator() = delete; SimpleAllocator(const SimpleAllocator&) = delete; SimpleAllocator(SimpleAllocator&&) = delete; explicit SimpleAllocator(std::shared_ptr<Pool> pool); ~SimpleAlloca...
26.219512
80
0.731163
[ "object" ]
1c8f09a535bb408ac62a013e8a2e2ed49d52fa6c
99,754
cpp
C++
src/Conversion.cpp
eProsima/FastDDS-SH
58367aa629612559bba5f89276950b4afc702173
[ "Apache-2.0" ]
3
2021-06-17T09:57:27.000Z
2021-12-08T02:09:46.000Z
src/Conversion.cpp
eProsima/FastDDS-SH
58367aa629612559bba5f89276950b4afc702173
[ "Apache-2.0" ]
2
2021-04-07T14:06:06.000Z
2021-07-16T09:32:41.000Z
src/Conversion.cpp
eProsima/FastDDS-SH
58367aa629612559bba5f89276950b4afc702173
[ "Apache-2.0" ]
1
2021-11-28T02:46:47.000Z
2021-11-28T02:46:47.000Z
/* * Copyright 2019 - present Proyectos y Sistemas de Mantenimiento SL (eProsima). * * 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 *...
37.207758
115
0.512451
[ "vector" ]
1c97790bf6875fe368a340e84e2534b87eb5e59d
323
hpp
C++
simcore/simulation/library/cell_list_int.hpp
lamsoa729/simcore
daf7056cb0c17563ed0f6bdee343fa1f6cd59729
[ "MIT" ]
null
null
null
simcore/simulation/library/cell_list_int.hpp
lamsoa729/simcore
daf7056cb0c17563ed0f6bdee343fa1f6cd59729
[ "MIT" ]
null
null
null
simcore/simulation/library/cell_list_int.hpp
lamsoa729/simcore
daf7056cb0c17563ed0f6bdee343fa1f6cd59729
[ "MIT" ]
null
null
null
#include <mutex> #include <tuple> #include <vector> typedef std::pair<int, int> ix_pair; class Cell { private: std::mutex cell_mtx; void PairSelf(std::vector<ix_pair>& nl); public: std::vector<int> objs_; Cell(); void AddObj(int oid); void PopBack(); void PairObjs(Cell* c, std::vector<ix_pair>* nl); ...
17
51
0.665635
[ "vector" ]
1c98adb6cce9b8cd3e3645db45dbe913220a9394
4,451
cpp
C++
hardware/src/ADS1015.cpp
elchtzeasar/balcony-watering-system
2fb20dc8bdf79cff4b7ba93cb362489562b62732
[ "MIT" ]
null
null
null
hardware/src/ADS1015.cpp
elchtzeasar/balcony-watering-system
2fb20dc8bdf79cff4b7ba93cb362489562b62732
[ "MIT" ]
null
null
null
hardware/src/ADS1015.cpp
elchtzeasar/balcony-watering-system
2fb20dc8bdf79cff4b7ba93cb362489562b62732
[ "MIT" ]
null
null
null
#include "ADS1015.h" #include "Master.h" #include <cassert> #include <sstream> #include <unistd.h> #include <iostream> namespace balcony_watering_system { namespace hardware { using std::string; enum RegisterAddrss { CONVERSION_REGISTER = 0x0, CONFIG_REGISTER = 0x1, LOW_THRESH_REGISTER = 0x2, HIGH_THRESH_...
27.645963
97
0.677825
[ "vector" ]
1c9bf1fd144dc4a53b3fa3c761e7d281b773ef0f
2,028
cpp
C++
dataset/test/modification/1491_rename/10/transformation_1.cpp
Karina5005/Plagiarism
ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb
[ "MIT" ]
3
2022-02-15T00:29:39.000Z
2022-03-15T08:36:44.000Z
dataset/test/modification/1491_rename/10/transformation_1.cpp
Kira5005-code/Plagiarism
ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb
[ "MIT" ]
null
null
null
dataset/test/modification/1491_rename/10/transformation_1.cpp
Kira5005-code/Plagiarism
ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb
[ "MIT" ]
null
null
null
#include <iostream> #include <iomanip> #include <algorithm> #include <vector> #include <string> #include <map> #include <unordered_map> #include <random> #include <set> #include <queue> #ifdef HOME #define debug(x) cerr << #x << " = " << x << endl; #define debug_v(v) \ { ...
18.27027
72
0.365385
[ "vector" ]
1c9e4fdfc8cb2dd6a7db25c9def3c1491622f796
3,816
cpp
C++
graph-source-code/27-D/3383775.cpp
AmrARaouf/algorithm-detection
59f3028d2298804870b32729415d71eec6116557
[ "MIT" ]
null
null
null
graph-source-code/27-D/3383775.cpp
AmrARaouf/algorithm-detection
59f3028d2298804870b32729415d71eec6116557
[ "MIT" ]
null
null
null
graph-source-code/27-D/3383775.cpp
AmrARaouf/algorithm-detection
59f3028d2298804870b32729415d71eec6116557
[ "MIT" ]
null
null
null
//Language: MS C++ #include <stdlib.h> #include <string.h> #include <stdio.h> #include <ctype.h> #include <math.h> #include <stack> #include <queue> #include <map> #include <set> #include <vector> #include <string> #include <iostream> #include <algorithm> using namespace std; #define ll __int64 #defi...
24.779221
69
0.460168
[ "vector" ]
1ca9bf3f35c570d1e66f358683ab470c4c0a264c
19,873
cpp
C++
src/south/sonic-interface/main.cpp
falcacicd/goldstone-mgmt
e7348011180e3c2dcd0558636ddc5c21779c7a3f
[ "Apache-2.0" ]
null
null
null
src/south/sonic-interface/main.cpp
falcacicd/goldstone-mgmt
e7348011180e3c2dcd0558636ddc5c21779c7a3f
[ "Apache-2.0" ]
null
null
null
src/south/sonic-interface/main.cpp
falcacicd/goldstone-mgmt
e7348011180e3c2dcd0558636ddc5c21779c7a3f
[ "Apache-2.0" ]
null
null
null
/*************************************************************** * File name : main.cpp * * Description : This file is the south bound application used* * to register yang files for sonic submodules. * ************************************************************...
39.043222
86
0.404972
[ "object" ]
1cb2b4b67ae01ffa24e3532e7c7fbfb92118f8ba
2,078
cc
C++
Question/最长公共子序列.cc
lkimprove/Study_C
ee1153536f28e160d5daad4ddebaa547c3941ee7
[ "MIT" ]
null
null
null
Question/最长公共子序列.cc
lkimprove/Study_C
ee1153536f28e160d5daad4ddebaa547c3941ee7
[ "MIT" ]
null
null
null
Question/最长公共子序列.cc
lkimprove/Study_C
ee1153536f28e160d5daad4ddebaa547c3941ee7
[ "MIT" ]
null
null
null
// write your code here cpp //子串:顺序取出,且连续 //子序列:顺序取出,可不连续 #include <iostream> #include <string> #include <vector> using namespace std; int main(){ string s1, s2; while(cin >> s1 >> s2){ int n = s1.size(), m = s2.size(); //dp[i][j]: // 1.dp[i - 1][j - 1] + 1; s1[i - 1] == s2...
23.613636
63
0.333975
[ "vector" ]
1cb357d7937ffd6e7f2f6d076557598bf97aa16d
782
hpp
C++
Reflection/FunctionContainers.hpp
jodavis42/SimpleMeta
1d42ef6b9a1138789c48f988c22eaaec3519f381
[ "MIT" ]
null
null
null
Reflection/FunctionContainers.hpp
jodavis42/SimpleMeta
1d42ef6b9a1138789c48f988c22eaaec3519f381
[ "MIT" ]
37
2020-02-06T16:10:59.000Z
2020-03-11T00:29:26.000Z
Reflection/FunctionContainers.hpp
jodavis42/SimpleMeta
1d42ef6b9a1138789c48f988c22eaaec3519f381
[ "MIT" ]
1
2020-02-13T17:05:25.000Z
2020-02-13T17:05:25.000Z
#pragma once #include <vector> #include <string> #include <unordered_map> namespace SimpleReflection { struct Function; struct FunctionType; struct BoundType; struct FunctionList : public std::vector<Function*> { Function* FindFunction(const FunctionType& functionType) const; void DeleteAll(); }; struct Funct...
21.722222
120
0.774936
[ "vector" ]
1cba771d1bfb02591da71dca2aa5cf60c62db650
1,432
cpp
C++
main.cpp
GoldFeniks/delaunay
a96621d28a57bd6c73fbecf0ae5347714a3ed07e
[ "MIT" ]
null
null
null
main.cpp
GoldFeniks/delaunay
a96621d28a57bd6c73fbecf0ae5347714a3ed07e
[ "MIT" ]
1
2021-01-31T11:20:44.000Z
2021-02-01T00:16:53.000Z
main.cpp
GoldFeniks/delaunay
a96621d28a57bd6c73fbecf0ae5347714a3ed07e
[ "MIT" ]
null
null
null
#include <chrono> #include <vector> #include <random> #include <fstream> #include <iostream> #include <functional> #include "delaunay.hpp" template<typename T> void output_vector(std::ofstream& out, const std::vector<T>& values) { for (const auto& it : values) out << it << ' '; out << std::endl; } int...
33.302326
128
0.585894
[ "vector" ]
1cc0581f5bf2c2d78c7d0d5d9081efb1ada7dac0
1,380
cpp
C++
renderer/objects/Triangle.cpp
AdrienVannson/3D-Renderer
78148e88b9ab91ccaea0f883a746ee93cac5d767
[ "MIT" ]
null
null
null
renderer/objects/Triangle.cpp
AdrienVannson/3D-Renderer
78148e88b9ab91ccaea0f883a746ee93cac5d767
[ "MIT" ]
null
null
null
renderer/objects/Triangle.cpp
AdrienVannson/3D-Renderer
78148e88b9ab91ccaea0f883a746ee93cac5d767
[ "MIT" ]
1
2021-03-18T08:05:35.000Z
2021-03-18T08:05:35.000Z
#include "Triangle.hpp" #include "renderer/Stats.hpp" Triangle::Triangle (const Vect &A, const Vect &B, const Vect &C, const Material &material) : SolidObject(material), m_A(A), m_B(B), m_C(C) {} Triangle::~Triangle () {} double Triangle::collisionDate (const Ray &ray) const { Stats::addRayTriang...
21.5625
92
0.57029
[ "object" ]
1cc83b4ccd5ff5a16eb4049f5959a52738d6dbab
5,870
cc
C++
code/application/physicsfeature/properties/staticphysicsproperty.cc
gscept/nebula-trifid
e7c0a0acb05eedad9ed37a72c1bdf2d658511b42
[ "BSD-2-Clause" ]
67
2015-03-30T19:56:16.000Z
2022-03-11T13:52:17.000Z
code/application/physicsfeature/properties/staticphysicsproperty.cc
gscept/nebula-trifid
e7c0a0acb05eedad9ed37a72c1bdf2d658511b42
[ "BSD-2-Clause" ]
5
2015-04-15T17:17:33.000Z
2016-02-11T00:40:17.000Z
code/application/physicsfeature/properties/staticphysicsproperty.cc
gscept/nebula-trifid
e7c0a0acb05eedad9ed37a72c1bdf2d658511b42
[ "BSD-2-Clause" ]
34
2015-03-30T15:08:00.000Z
2021-09-23T05:55:10.000Z
// physicsfeature/properties/staticphysicsproperty.cc // (C) 2005 Radon Labs GmbH // (C) 2013-2016 Individual contributors, see AUTHORS file //------------------------------------------------------------------------------ #include "stdneb.h" #include "physicsfeature/properties/staticphysicsproperty.h" #include "gam...
29.497487
150
0.623509
[ "object", "model", "transform" ]
1cdfa709a1e1f284aea97eab70821df4ab16557c
3,698
cpp
C++
main.cpp
cazzwastaken/external-aimbot
035a3dbd114f7e1fba6b78681957b72d15b746e5
[ "MIT" ]
11
2021-11-27T04:45:59.000Z
2022-03-08T19:34:29.000Z
main.cpp
cazzwastaken/external-aimbot
035a3dbd114f7e1fba6b78681957b72d15b746e5
[ "MIT" ]
null
null
null
main.cpp
cazzwastaken/external-aimbot
035a3dbd114f7e1fba6b78681957b72d15b746e5
[ "MIT" ]
10
2021-12-28T22:20:31.000Z
2022-03-18T17:52:22.000Z
#include "memory.h" #include "vector.h" #include <thread> namespace offset { // client constexpr ::std::ptrdiff_t dwLocalPlayer = 0xDB25DC; constexpr ::std::ptrdiff_t dwEntityList = 0x4DCDE7C; // engine constexpr ::std::ptrdiff_t dwClientState = 0x58CFC4; constexpr ::std::ptrdiff_t dwClientState_V...
30.311475
117
0.681449
[ "vector", "3d" ]
1ce6b19688a2b67cf56f696f0a0f1855dc7f8a04
8,654
cpp
C++
src/integrator/surface_integrator.cpp
Twinklebear/tray
eeb6dc930a3f81bb2abd74a41a4fb409a0e0865b
[ "MIT" ]
61
2015-01-01T10:58:21.000Z
2022-01-05T14:22:15.000Z
src/integrator/surface_integrator.cpp
Twinklebear/tray
eeb6dc930a3f81bb2abd74a41a4fb409a0e0865b
[ "MIT" ]
null
null
null
src/integrator/surface_integrator.cpp
Twinklebear/tray
eeb6dc930a3f81bb2abd74a41a4fb409a0e0865b
[ "MIT" ]
3
2016-04-11T19:07:47.000Z
2018-05-31T12:40:50.000Z
#include <cassert> #include <algorithm> #include <cmath> #include "scene.h" #include "monte_carlo/util.h" #include "monte_carlo/distribution1d.h" #include "integrator/surface_integrator.h" void SurfaceIntegrator::preprocess(const Scene&){} Colorf SurfaceIntegrator::spec_reflect(const RayDifferential &ray, const BSDF &...
43.054726
114
0.694708
[ "geometry", "vector", "transform" ]
1ced85502419bbeedf0bc86f0cf0690d451b6f4f
4,157
hpp
C++
ros2_full_sensor_suite/include/ros2_full_sensor_suite/gazebo_ros_gps.hpp
nikostsagk/botanbot_sim
7b0c7a0336f04a04ac9c4c963f374a15064077b4
[ "Apache-2.0" ]
null
null
null
ros2_full_sensor_suite/include/ros2_full_sensor_suite/gazebo_ros_gps.hpp
nikostsagk/botanbot_sim
7b0c7a0336f04a04ac9c4c963f374a15064077b4
[ "Apache-2.0" ]
1
2022-03-26T18:21:11.000Z
2022-03-28T09:31:00.000Z
ros2_full_sensor_suite/include/ros2_full_sensor_suite/gazebo_ros_gps.hpp
nikostsagk/botanbot_sim
7b0c7a0336f04a04ac9c4c963f374a15064077b4
[ "Apache-2.0" ]
1
2022-03-25T13:35:02.000Z
2022-03-25T13:35:02.000Z
//================================================================================================= // Copyright (c) 2012, Johannes Meyer, TU Darmstadt // Modification Copyright (c) 2020, Fetullah Atas, Norwegian University of Life Sciences // All rights reserved. // Redistribution and use in source and binary forms, ...
34.355372
99
0.696416
[ "object" ]
1cee589aafc5ff0874b1d4839690754c8a80b18d
38,187
cc
C++
db/version_set.cc
hidva/rocksdb
9dca27383742ce6634c2ab42f945ad0ab9982849
[ "BSD-3-Clause" ]
2
2018-12-06T06:39:09.000Z
2020-11-24T02:23:57.000Z
db/version_set.cc
hidva/rocksdb
9dca27383742ce6634c2ab42f945ad0ab9982849
[ "BSD-3-Clause" ]
null
null
null
db/version_set.cc
hidva/rocksdb
9dca27383742ce6634c2ab42f945ad0ab9982849
[ "BSD-3-Clause" ]
1
2022-02-22T02:51:43.000Z
2022-02-22T02:51:43.000Z
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/version_set.h" #include <algorithm> #include <stdio.h> #include "db/filename.h" #include ...
32.83491
95
0.62262
[ "vector" ]
1cee61409471da7aed5e075642fe7ae890f19774
3,788
cpp
C++
third/parallel/example.cpp
aceisnotmycard/Parallel-programming-course
83a751d90de9ecfe3ced3c78d5de0ad0800f5530
[ "MIT" ]
null
null
null
third/parallel/example.cpp
aceisnotmycard/Parallel-programming-course
83a751d90de9ecfe3ced3c78d5de0ad0800f5530
[ "MIT" ]
null
null
null
third/parallel/example.cpp
aceisnotmycard/Parallel-programming-course
83a751d90de9ecfe3ced3c78d5de0ad0800f5530
[ "MIT" ]
1
2020-02-20T12:51:18.000Z
2020-02-20T12:51:18.000Z
#include <mpi.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <sys/time.h> // Input variables /* Количество ячеек вдоль координат x, y, z */ #define in 20 #define jn 20 #define kn 20 int a = 1; double X = 2.0, Y = 2.0, Z = 2.0; double e = 0.00001; // MPI int rank, size; /* A...
22.819277
97
0.57075
[ "3d" ]
1cf0edda395ffc48362d882c2a3d4a6046b974e3
1,731
cpp
C++
SPOJ/Random/PPBRJB/red_john.cpp
VastoLorde95/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
170
2017-07-25T14:47:29.000Z
2022-01-26T19:16:31.000Z
SPOJ/Random/PPBRJB/red_john.cpp
navodit15/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
null
null
null
SPOJ/Random/PPBRJB/red_john.cpp
navodit15/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
55
2017-07-28T06:17:33.000Z
2021-10-31T03:06:22.000Z
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> #include<cstring> using namespace std; int l; bool is_prime (const int& n, int (&primes)[20000]){ double root = sqrt (n); for(int i = 0; i < l and i <= root; i++){ if(n % primes[i] == 0) return 0; } return 1; } long...
18.815217
80
0.444252
[ "vector" ]
7f3235ba8de77227c906099a985e63bdb1577a9f
530
cpp
C++
solutions/174.cpp
tdakhran/leetcode
ed680059661faae32857eaa791ca29c1d9c16120
[ "MIT" ]
null
null
null
solutions/174.cpp
tdakhran/leetcode
ed680059661faae32857eaa791ca29c1d9c16120
[ "MIT" ]
null
null
null
solutions/174.cpp
tdakhran/leetcode
ed680059661faae32857eaa791ca29c1d9c16120
[ "MIT" ]
null
null
null
#include <limits> #include <vector> class Solution { public: int calculateMinimumHP(std::vector<std::vector<int>>& dungeon) { auto dp = std::vector<int>(dungeon.size() + 1, std::numeric_limits<int>::max()); dp[dungeon.size() - 1] = 1; for (size_t col = dungeon.front().size(); col > 0; --col) { ...
26.5
78
0.537736
[ "vector" ]
7f32b6583b9a2f613562358c5983e004356aef55
917
hpp
C++
include/depthai/pipeline/datatype/SystemInformation.hpp
jdavidberger/depthai-core
daf3577f67318fddd4530090adf86a4be5d9e970
[ "MIT" ]
112
2020-09-05T01:56:31.000Z
2022-03-27T15:20:07.000Z
include/depthai/pipeline/datatype/SystemInformation.hpp
jdavidberger/depthai-core
daf3577f67318fddd4530090adf86a4be5d9e970
[ "MIT" ]
226
2020-06-12T11:14:17.000Z
2022-03-31T13:32:36.000Z
include/depthai/pipeline/datatype/SystemInformation.hpp
jdavidberger/depthai-core
daf3577f67318fddd4530090adf86a4be5d9e970
[ "MIT" ]
66
2020-09-06T03:22:27.000Z
2022-03-30T09:01:29.000Z
#pragma once #include <chrono> #include <unordered_map> #include <vector> #include "depthai-shared/datatype/RawSystemInformation.hpp" #include "depthai/pipeline/datatype/Buffer.hpp" namespace dai { /** * SystemInformation message. Carries memory usage, cpu usage and chip temperatures. */ class SystemInformation : ...
25.472222
84
0.74373
[ "vector" ]
7f3372c1a398856907f6491ab273cc17a5f5e316
3,264
hpp
C++
cyberdog_interaction/cyberdog_audio/audio_base/include/audio_base/audio_player.hpp
gitter-badger/cyberdog_ros2
f995b3cbf5773a47cd2d7293b0622d91fb409cdc
[ "Apache-2.0" ]
284
2021-09-15T12:31:22.000Z
2022-03-31T01:16:13.000Z
cyberdog_interaction/cyberdog_audio/audio_base/include/audio_base/audio_player.hpp
gitter-badger/cyberdog_ros2
f995b3cbf5773a47cd2d7293b0622d91fb409cdc
[ "Apache-2.0" ]
85
2021-09-18T03:44:26.000Z
2022-03-23T12:32:55.000Z
cyberdog_interaction/cyberdog_audio/audio_base/include/audio_base/audio_player.hpp
gitter-badger/cyberdog_ros2
f995b3cbf5773a47cd2d7293b0622d91fb409cdc
[ "Apache-2.0" ]
94
2021-09-15T14:40:14.000Z
2022-03-30T06:50:11.000Z
// Copyright (c) 2021 Beijing Xiaomi Mobile Software Co., Ltd. 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 //...
29.672727
83
0.762561
[ "vector" ]
7f596283f761fc600e9a9f5c3da7bbb39241bbeb
621
hpp
C++
proxy/cert/rsa_maker.hpp
plater-inc/proxy
f277fd8b3b5bf19b29c8f07055b65ed34c9a8dda
[ "MIT" ]
null
null
null
proxy/cert/rsa_maker.hpp
plater-inc/proxy
f277fd8b3b5bf19b29c8f07055b65ed34c9a8dda
[ "MIT" ]
null
null
null
proxy/cert/rsa_maker.hpp
plater-inc/proxy
f277fd8b3b5bf19b29c8f07055b65ed34c9a8dda
[ "MIT" ]
null
null
null
#ifndef PROXY_CERT_RSA_MAKER_HPP #define PROXY_CERT_RSA_MAKER_HPP #include "rsa.hpp" #include <boost/function.hpp> #include <boost/noncopyable.hpp> #include <vector> namespace proxy { namespace cert { class rsa_maker : private boost::noncopyable { static const size_t SOFT_LIMIT = 128; static const size_t HARD_LI...
21.413793
48
0.756844
[ "vector" ]
7f5fb341ab3f09394b0f2e27fe28bd0dbb1fd6ee
88,847
cpp
C++
ASNativeActivity/phoenixas/src/main/cpp/wiiu/controller_patcher/ControllerPatcher.cpp
playbar/android-ndk
34e79bc1de9caa27faa72f5f1fb4ad3202debdc6
[ "Apache-2.0" ]
1
2017-06-01T01:20:57.000Z
2017-06-01T01:20:57.000Z
ASNativeActivity/phoenixas/src/main/cpp/wiiu/controller_patcher/ControllerPatcher.cpp
playbar/android-ndk
34e79bc1de9caa27faa72f5f1fb4ad3202debdc6
[ "Apache-2.0" ]
1
2018-07-17T07:09:17.000Z
2018-07-17T07:09:17.000Z
ASNativeActivity/phoenixas/src/main/cpp/wiiu/controller_patcher/ControllerPatcher.cpp
playbar/android-ndk
34e79bc1de9caa27faa72f5f1fb4ad3202debdc6
[ "Apache-2.0" ]
null
null
null
/**************************************************************************** * Copyright (C) 2016,2017 Maschell * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the Li...
81.735971
224
0.699675
[ "vector" ]
7f7aab6ddd70bd86464b7a84b18836c3aa33bca2
461
cpp
C++
HouseRobber.cpp
yplusplus/LeetCode
122bd31b291af1e97ee4e9349a8e65bba6e04c96
[ "MIT" ]
3
2017-11-27T03:01:50.000Z
2021-03-13T08:14:00.000Z
HouseRobber.cpp
yplusplus/LeetCode
122bd31b291af1e97ee4e9349a8e65bba6e04c96
[ "MIT" ]
null
null
null
HouseRobber.cpp
yplusplus/LeetCode
122bd31b291af1e97ee4e9349a8e65bba6e04c96
[ "MIT" ]
null
null
null
class Solution { public: int rob(vector<int>& nums) { int n = nums.size(); if (n == 0) return 0; if (n == 1) return nums[0]; vector<int> dp(n, 0); for (int i = 0; i < n; i++) { if (i - 2 >= 0) dp[i] = max(dp[i], dp[i - 2]); if (i - 3 >=...
27.117647
46
0.349241
[ "vector" ]
7f7e3cfe66b6f11c0c770e31b0d3f7c913d10bfc
1,584
cpp
C++
src/MockSerialPort.cpp
oddguid/visualstatus
0ac831dfb5ce65e5885e06f041b2fd2162a0287a
[ "MIT" ]
null
null
null
src/MockSerialPort.cpp
oddguid/visualstatus
0ac831dfb5ce65e5885e06f041b2fd2162a0287a
[ "MIT" ]
null
null
null
src/MockSerialPort.cpp
oddguid/visualstatus
0ac831dfb5ce65e5885e06f041b2fd2162a0287a
[ "MIT" ]
null
null
null
#include "MockSerialPort.h" MockSerialPort::MockSerialPort(QObject *parent) : BaseSerialPort(parent) , m_isOpen(false) { } MockSerialPort::~MockSerialPort() { } bool MockSerialPort::open(const QString &deviceName, unsigned int baudrate, unsigned short timeoutSecs) { Q_UNUSED(deviceName); Q_UNUSED(baudrate)...
16.163265
75
0.70202
[ "object" ]
7fa16e88a43ccb4d903ed8d6f875dd26974719f9
19,251
cpp
C++
Fields/ParticleFieldMaster.cpp
danielfrascarelli/esys-particle
e56638000fd9c4af77e21c75aa35a4f8922fd9f0
[ "Apache-2.0" ]
null
null
null
Fields/ParticleFieldMaster.cpp
danielfrascarelli/esys-particle
e56638000fd9c4af77e21c75aa35a4f8922fd9f0
[ "Apache-2.0" ]
null
null
null
Fields/ParticleFieldMaster.cpp
danielfrascarelli/esys-particle
e56638000fd9c4af77e21c75aa35a4f8922fd9f0
[ "Apache-2.0" ]
null
null
null
///////////////////////////////////////////////////////////// // // // Copyright (c) 2003-2017 by The University of Queensland // // Centre for Geoscience Computing // // http://earth.uq.edu.au/centre-geoscience-computing // // ...
28.52
236
0.656745
[ "mesh", "object", "vector" ]
7facb814a191f355130eaf73a9d6474b4a7e8341
8,884
cc
C++
src/artm_tests/scores_test.cc
MelLain/bigartm
79126b68500bd5b378d6d6168f1b68eb03971bcb
[ "BSD-3-Clause" ]
638
2015-02-03T22:17:00.000Z
2022-03-23T18:47:50.000Z
src/artm_tests/scores_test.cc
MelLain/bigartm
79126b68500bd5b378d6d6168f1b68eb03971bcb
[ "BSD-3-Clause" ]
566
2015-01-01T21:49:00.000Z
2022-02-14T09:14:35.000Z
src/artm_tests/scores_test.cc
bt2901/bigartm
92c9d5746c122d0124bab700469d8a2a7f58ff40
[ "BSD-3-Clause" ]
148
2015-01-06T15:30:07.000Z
2022-02-12T18:40:17.000Z
// Copyright 2017, Additive Regularization of Topic Models. #include <memory> #include "boost/filesystem.hpp" #include "gtest/gtest.h" #include "artm/cpp_interface.h" #include "artm/core/common.h" #include "artm/core/instance.h" #include "artm_tests/test_mother.h" #include "artm_tests/api.h" // artm_tests.exe --g...
42.104265
117
0.72805
[ "vector", "model" ]
7fadd0eab62cb274c2cc1d18bd173579cbd28e2e
9,999
cpp
C++
cluster-genes/dominant.cpp
luispedro/Coelho2021_GMGCv1_analysis
5f1a62844631121cc11f8ac5a776d25baca56ff7
[ "MIT" ]
6
2021-12-16T09:20:28.000Z
2022-03-29T03:21:48.000Z
cluster-genes/dominant.cpp
luispedro/Coelho2021_GMGCv1_analysis
5f1a62844631121cc11f8ac5a776d25baca56ff7
[ "MIT" ]
1
2022-02-18T01:56:56.000Z
2022-02-22T14:39:48.000Z
cluster-genes/dominant.cpp
luispedro/Coelho2021_GMGCv1_analysis
5f1a62844631121cc11f8ac5a776d25baca56ff7
[ "MIT" ]
8
2021-12-17T02:14:50.000Z
2022-03-21T06:40:59.000Z
#include <algorithm> #include <queue> #include <iostream> #include <fstream> #include <vector> #include <map> #include <assert.h> typedef std::vector<int> renumber_t; typedef std::vector<int>::size_type index_t; struct Int1dSlice { typedef std::vector<int>::const_iterator base_iterator; Int1dSlice(base_iter...
28.898844
141
0.536254
[ "vector" ]
7fb0f283f15256293807fe55c68fac86280e8ff8
2,578
cc
C++
live/src/model/AddDRMCertificateRequest.cc
aliyun/aliyun-openapi-cpp-sdk
0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36
[ "Apache-2.0" ]
89
2018-02-02T03:54:39.000Z
2021-12-13T01:32:55.000Z
live/src/model/AddDRMCertificateRequest.cc
aliyun/aliyun-openapi-cpp-sdk
0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36
[ "Apache-2.0" ]
89
2018-03-14T07:44:54.000Z
2021-11-26T07:43:25.000Z
live/src/model/AddDRMCertificateRequest.cc
aliyun/aliyun-openapi-cpp-sdk
0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36
[ "Apache-2.0" ]
69
2018-01-22T09:45:52.000Z
2022-03-28T07:58:38.000Z
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
24.093458
78
0.749418
[ "model" ]
7fbc31c5fc4952d87d8c140aa45c58583cf41faa
1,271
hpp
C++
cpp/godot-cpp/include/gen/VisualShaderNodeColorOp.hpp
GDNative-Gradle/proof-of-concept
162f467430760cf959f68f1638adc663fd05c5fd
[ "MIT" ]
1
2021-03-16T09:51:00.000Z
2021-03-16T09:51:00.000Z
cpp/godot-cpp/include/gen/VisualShaderNodeColorOp.hpp
GDNative-Gradle/proof-of-concept
162f467430760cf959f68f1638adc663fd05c5fd
[ "MIT" ]
null
null
null
cpp/godot-cpp/include/gen/VisualShaderNodeColorOp.hpp
GDNative-Gradle/proof-of-concept
162f467430760cf959f68f1638adc663fd05c5fd
[ "MIT" ]
null
null
null
#ifndef GODOT_CPP_VISUALSHADERNODECOLOROP_HPP #define GODOT_CPP_VISUALSHADERNODECOLOROP_HPP #include <gdnative_api_struct.gen.h> #include <stdint.h> #include <core/CoreTypes.hpp> #include <core/Ref.hpp> #include "VisualShaderNodeColorOp.hpp" #include "VisualShaderNode.hpp" namespace godot { class VisualShaderNode...
23.109091
245
0.762392
[ "object" ]
7fc37e4f587d39bc6c687f87762c1a10d7fa053e
15,696
cpp
C++
src/tools/FuzzyUtils.cpp
saulocbarreto/bgslibrary
e1890b6b05cd40757ad00e1c71e8c1db13a74a2a
[ "MIT" ]
1,899
2015-01-04T01:13:30.000Z
2022-03-29T21:58:28.000Z
src/tools/FuzzyUtils.cpp
saulocbarreto/bgslibrary
e1890b6b05cd40757ad00e1c71e8c1db13a74a2a
[ "MIT" ]
175
2015-01-25T16:14:03.000Z
2022-03-17T17:36:53.000Z
src/tools/FuzzyUtils.cpp
saulocbarreto/bgslibrary
e1890b6b05cd40757ad00e1c71e8c1db13a74a2a
[ "MIT" ]
752
2015-01-04T01:34:29.000Z
2022-03-29T13:53:33.000Z
#include "FuzzyUtils.h" using namespace bgslibrary::tools; FuzzyUtils::FuzzyUtils() {} FuzzyUtils::~FuzzyUtils() {} void FuzzyUtils::LBP(IplImage* InputImage, IplImage* LBPimage) { PixelUtils p; float* neighberPixel = (float*)malloc(9 * sizeof(float)); float* BinaryValue = (float*)malloc(9 * sizeof(float)); ...
31.45491
231
0.570528
[ "cad" ]
7fc7e8606bfcb85be1bb9beb74c859649489ce9c
927
hpp
C++
framework/composite.hpp
Montag55/Das-raytracer
356eac6a2ad6fe4f09015a94df9bbafe490f9585
[ "MIT" ]
null
null
null
framework/composite.hpp
Montag55/Das-raytracer
356eac6a2ad6fe4f09015a94df9bbafe490f9585
[ "MIT" ]
null
null
null
framework/composite.hpp
Montag55/Das-raytracer
356eac6a2ad6fe4f09015a94df9bbafe490f9585
[ "MIT" ]
null
null
null
#ifndef COMPOSITE_HPP #define COMPOSITE_HPP #include "box.hpp" #include "sphere.hpp" #include "ray.hpp" #include "hit.hpp" #include <memory> #include <string> #include <vector> class Composite : public Shape { public: typedef std::shared_ptr<Shape> shape_pointer; //KONSTRUTOREN----------------------------...
23.769231
89
0.582524
[ "shape", "vector" ]
7fd500fad413255398b7f65baabb8e5026d3198d
7,337
cpp
C++
thrift/lib/cpp2/protocol/nimble/test/NimbleForwardCompatibilityTest.cpp
tahmidbintaslim/fbthrift
1492869dbd748295a2262ad76a19623c90e47b95
[ "Apache-2.0" ]
null
null
null
thrift/lib/cpp2/protocol/nimble/test/NimbleForwardCompatibilityTest.cpp
tahmidbintaslim/fbthrift
1492869dbd748295a2262ad76a19623c90e47b95
[ "Apache-2.0" ]
null
null
null
thrift/lib/cpp2/protocol/nimble/test/NimbleForwardCompatibilityTest.cpp
tahmidbintaslim/fbthrift
1492869dbd748295a2262ad76a19623c90e47b95
[ "Apache-2.0" ]
null
null
null
/* * 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...
26.974265
86
0.719913
[ "vector" ]
7fda276a88a5ee992368186483f462fe4b80b497
1,134
cpp
C++
C++/Gaddis/Ch8_Arrays/Ch8_Program8-3/Ch8_Program8-3.cpp
rlong2/Code
feb6c097159bf822122a73e0131ad928780bcfcd
[ "BSD-3-Clause" ]
null
null
null
C++/Gaddis/Ch8_Arrays/Ch8_Program8-3/Ch8_Program8-3.cpp
rlong2/Code
feb6c097159bf822122a73e0131ad928780bcfcd
[ "BSD-3-Clause" ]
null
null
null
C++/Gaddis/Ch8_Arrays/Ch8_Program8-3/Ch8_Program8-3.cpp
rlong2/Code
feb6c097159bf822122a73e0131ad928780bcfcd
[ "BSD-3-Clause" ]
null
null
null
/* This program reads employee work hours from work.dat * located in the same folder as this cpp file * and stores them in an int array. An array is used to * input the hours and another to display them. */ #include <iostream> #include<fstream> using namespace std; int main() { const int NUM_EMPLOYEES = 6; ...
24.12766
69
0.597002
[ "object" ]
8f12d1619a8ade37b0ae896919fb94301875780b
6,984
cpp
C++
src/InsertMediaPropertiesAction.cpp
Ultraschall/ultraschall-3
7e2479fc0eb877a9b4979bedaf92f95bad627073
[ "MIT" ]
11
2018-07-08T09:14:22.000Z
2019-11-08T02:54:42.000Z
src/InsertMediaPropertiesAction.cpp
Ultraschall/ultraschall-3
7e2479fc0eb877a9b4979bedaf92f95bad627073
[ "MIT" ]
17
2018-01-18T23:12:15.000Z
2019-02-03T07:47:51.000Z
src/InsertMediaPropertiesAction.cpp
Ultraschall/ultraschall-3
7e2479fc0eb877a9b4979bedaf92f95bad627073
[ "MIT" ]
4
2018-03-07T19:38:29.000Z
2019-01-10T09:04:05.000Z
//////////////////////////////////////////////////////////////////////////////// // // Copyright (c) The Ultraschall Project (http://ultraschall.fm) // // The MIT License (MIT) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the ...
32.943396
118
0.634307
[ "vector" ]
8f13b9fcd6b704d7a590318323eb5f0d83d51dd3
3,216
hpp
C++
code/hologine_platform/hologine/core/memory/heap_allocator.hpp
aaronbolyard/hologine
6fd07d28c6acfd9cfc49b3efa55b23c95240374e
[ "MIT" ]
3
2015-02-23T21:32:18.000Z
2017-08-14T10:34:52.000Z
code/hologine_platform/hologine/core/memory/heap_allocator.hpp
aaronbolyard/hologine
6fd07d28c6acfd9cfc49b3efa55b23c95240374e
[ "MIT" ]
null
null
null
code/hologine_platform/hologine/core/memory/heap_allocator.hpp
aaronbolyard/hologine
6fd07d28c6acfd9cfc49b3efa55b23c95240374e
[ "MIT" ]
null
null
null
// This file is a part of Hologine. // // Hologine is a straight-forward framework for interactive simulations, // most notably video games. // // Copyright 2015 Aaron Bolyard. // // For licensing information, review the LICENSE file located at the root // directory of the source package. #ifndef HOLOGINE_CORE_MEMORY_H...
34.212766
90
0.722326
[ "object" ]
8f179e15e0762edcd12c26663c6da5428ac12698
34,757
cpp
C++
src/chainparams.cpp
Ankh-Trust/credit-core
fa6fd67bdc9846cc40ee24f9a64e610e634b9356
[ "MIT" ]
2
2019-10-31T11:56:31.000Z
2019-11-02T08:48:45.000Z
src/chainparams.cpp
Ankh-fdn/credit-core
fa6fd67bdc9846cc40ee24f9a64e610e634b9356
[ "MIT" ]
2
2019-11-22T18:49:20.000Z
2020-10-06T11:44:46.000Z
src/chainparams.cpp
Ankh-fdn/credit-core
fa6fd67bdc9846cc40ee24f9a64e610e634b9356
[ "MIT" ]
1
2020-06-09T16:15:27.000Z
2020-06-09T16:15:27.000Z
// Copyright (c) 2009-2019 Satoshi Nakamoto // Copyright (c) 2009-2019 The Bitcoin Developers // Copyright (c) 2014-2019 The Dash Core Developers // Copyright (c) 2016-2019 Duality Blockchain Solutions Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.open...
48.273611
242
0.703772
[ "vector" ]
8f192ae90eb6e42f6969c415ad911c0295ec111e
25,010
cc
C++
src/suif1/TaskFusion.cc
paulhjkelly/taskgraph-metaprogramming
54c4e2806a97bec555a90784ab4cf0880660bf89
[ "BSD-3-Clause" ]
5
2020-04-11T21:30:19.000Z
2021-12-04T16:16:09.000Z
src/suif1/TaskFusion.cc
paulhjkelly/taskgraph-metaprogramming
54c4e2806a97bec555a90784ab4cf0880660bf89
[ "BSD-3-Clause" ]
null
null
null
src/suif1/TaskFusion.cc
paulhjkelly/taskgraph-metaprogramming
54c4e2806a97bec555a90784ab4cf0880660bf89
[ "BSD-3-Clause" ]
null
null
null
#include <memory> #include <vector> #include <set> #include <list> #include <map> #include <utility> #include <iterator> #include <algorithm> #include <cassert> #include <cstdlib> #include <suif1.h> #include <useful.h> #include <dependence.h> #include <iostream> //#define VERBOSE_FUSION #ifdef VERBOSE_FUSION #define ...
27.0671
134
0.563575
[ "vector", "transform" ]
8f24d72aff07d4f0772f6849da6efe6e8cb9ac22
1,302
hpp
C++
include/global_parameters.hpp
jermp/opt_vbyte
e6fc79ef6c329e2b967f484ffba157e156a4c9bf
[ "MIT" ]
12
2018-12-02T15:47:41.000Z
2021-04-14T07:12:12.000Z
include/global_parameters.hpp
jermp/opt_vbyte
e6fc79ef6c329e2b967f484ffba157e156a4c9bf
[ "MIT" ]
null
null
null
include/global_parameters.hpp
jermp/opt_vbyte
e6fc79ef6c329e2b967f484ffba157e156a4c9bf
[ "MIT" ]
2
2019-08-20T02:35:07.000Z
2021-01-25T22:21:04.000Z
#pragma once namespace pvb { struct global_parameters { global_parameters() : ef_log_sampling0(9) , ef_log_sampling1(8) , rb_log_rank1_sampling(9) , rb_log_sampling1(8) , log_partition_size(7) , blocks(3, 0) , dense_avg_g...
26.571429
64
0.545315
[ "vector" ]
8f25648b506a82706ff1b25f30b225c06bc7c31d
6,302
cpp
C++
lib/ObjectDump/ObjectDump.cpp
thfabian/findsymbol
88d8f1ce520884f67ebebe07eaddd35e8d71888f
[ "MIT" ]
1
2016-03-18T21:37:33.000Z
2016-03-18T21:37:33.000Z
lib/ObjectDump/ObjectDump.cpp
thfabian/findsymbol
88d8f1ce520884f67ebebe07eaddd35e8d71888f
[ "MIT" ]
null
null
null
lib/ObjectDump/ObjectDump.cpp
thfabian/findsymbol
88d8f1ce520884f67ebebe07eaddd35e8d71888f
[ "MIT" ]
null
null
null
/*******************************************************************- C++ -****\ * * FindSymbol v1.0 * (c) 2015 Fabian Thüring * * This file is distributed under the MIT Open Source License. See * LICENSE.TXT for details. * \*******************************************...
29.726415
80
0.591082
[ "object" ]
8f2f991b01792fdecbf6be7a31e8741df9610154
3,460
cpp
C++
src/camera/camera.cpp
wchang22/Nova
3db1e8f8a0dea1dcdd3d3d02332534d5945e17bb
[ "MIT" ]
21
2020-05-02T06:32:23.000Z
2021-07-14T11:22:07.000Z
src/camera/camera.cpp
wchang22/Nova
3db1e8f8a0dea1dcdd3d3d02332534d5945e17bb
[ "MIT" ]
null
null
null
src/camera/camera.cpp
wchang22/Nova
3db1e8f8a0dea1dcdd3d3d02332534d5945e17bb
[ "MIT" ]
1
2021-05-24T13:44:56.000Z
2021-05-24T13:44:56.000Z
#include <glm/gtx/transform.hpp> #include "camera.hpp" #include "vector/vector_conversions.hpp" namespace nova { Camera::Camera(const glm::vec3& position, const glm::vec3& target, const glm::vec3& up, const std::pair<uint32_t, uint32_t>& dimensions, float f...
32.037037
86
0.645376
[ "vector", "transform" ]
8f449d0d2d735cfdb2e2346b7313aec879a291d3
14,785
cpp
C++
tinyember/TinyEmberPlus/glow/util/StreamConverter.cpp
purefunsolutions/ember-plus
d022732f2533ad697238c6b5210d7fc3eb231bfc
[ "BSL-1.0" ]
78
2015-07-31T14:46:38.000Z
2022-03-28T09:28:28.000Z
tinyember/TinyEmberPlus/glow/util/StreamConverter.cpp
purefunsolutions/ember-plus
d022732f2533ad697238c6b5210d7fc3eb231bfc
[ "BSL-1.0" ]
81
2015-08-03T07:58:19.000Z
2022-02-28T16:21:19.000Z
tinyember/TinyEmberPlus/glow/util/StreamConverter.cpp
purefunsolutions/ember-plus
d022732f2533ad697238c6b5210d7fc3eb231bfc
[ "BSL-1.0" ]
49
2015-08-03T12:53:10.000Z
2022-03-17T17:25:49.000Z
/* Copyright (C) 2012-2016 Lawo GmbH (http://www.lawo.com). 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 "../../gadget/ParameterTypeVisitor.h" #include "../../gadget/StreamFormat.h" #include <m...
38.10567
166
0.532905
[ "vector" ]
8f471a3850162edc28100266b5f28c7533b37d4d
41,221
cpp
C++
source/mdsplit/mdsplitter.cpp
alandefreitas/mdsplit
f73f8f9bc5123828be3bb360d3c918c088a11eb2
[ "MIT" ]
4
2020-10-01T02:57:46.000Z
2021-05-24T06:31:01.000Z
source/mdsplit/mdsplitter.cpp
alandefreitas/mdsplit
f73f8f9bc5123828be3bb360d3c918c088a11eb2
[ "MIT" ]
null
null
null
source/mdsplit/mdsplitter.cpp
alandefreitas/mdsplit
f73f8f9bc5123828be3bb360d3c918c088a11eb2
[ "MIT" ]
1
2020-10-02T20:30:50.000Z
2020-10-02T20:30:50.000Z
// // Created by Alan Freitas on 30/09/20. // #include <algorithm> #include <cassert> #include <map> #include "mdsplitter.h" namespace mdsplit { int mdsplitter::run() { fs::create_directory(output_dir_); if (trace_) { std::cout << "# Find Sections" << std::endl; } fi...
41.221
107
0.429102
[ "vector" ]
8f4cbb3a628daea73a6d2a4c9567756cd3525b26
1,637
cc
C++
CommBasicObjects/smartsoft/src/CommBasicObjects/CommJoystick.cc
canonical-robots/DomainModelsRepositories
68b9286d84837e5feb7b200833b158ab9c2922a4
[ "BSD-3-Clause" ]
null
null
null
CommBasicObjects/smartsoft/src/CommBasicObjects/CommJoystick.cc
canonical-robots/DomainModelsRepositories
68b9286d84837e5feb7b200833b158ab9c2922a4
[ "BSD-3-Clause" ]
2
2020-08-20T14:49:47.000Z
2020-10-07T16:10:07.000Z
CommBasicObjects/smartsoft/src/CommBasicObjects/CommJoystick.cc
canonical-robots/DomainModelsRepositories
68b9286d84837e5feb7b200833b158ab9c2922a4
[ "BSD-3-Clause" ]
8
2018-06-25T08:41:28.000Z
2020-08-13T10:39:30.000Z
//-------------------------------------------------------------------------- // Code generated by the SmartSoft MDSD Toolchain // The SmartSoft Toolchain has been developed by: // // Christian Schlegel (schlegel@hs-ulm.de) // University of Applied Sciences Ulm // Prittwitzstr. 10 // 89075 Ulm (Germany) // // Informat...
29.232143
135
0.673794
[ "model" ]
8f529396e57305c8d37abdd41d6dd9fdd741df87
2,486
cpp
C++
C++-Programs/Segment_Tree.cpp
adityaverma121/Simple-Programs
8450560b97f89e0fa3da16a623ad35c0b26409c9
[ "MIT" ]
71
2021-09-30T11:25:12.000Z
2021-10-03T11:33:22.000Z
C++-Programs/Segment_Tree.cpp
adityaverma121/Simple-Programs
8450560b97f89e0fa3da16a623ad35c0b26409c9
[ "MIT" ]
186
2021-09-30T12:25:16.000Z
2021-10-03T13:45:04.000Z
C++-Programs/Segment_Tree.cpp
adityaverma121/Simple-Programs
8450560b97f89e0fa3da16a623ad35c0b26409c9
[ "MIT" ]
385
2021-09-30T11:34:23.000Z
2021-10-03T13:41:00.000Z
#include <bits/stdc++.h> using namespace std; // Segment tree implementation. Supports point update and range query. class segmentTree { int N; vector<int> tree; public: void init(int _N) { N = _N; tree.assign(4 * N + 1, 0); } int merge(int left, int right) { return left + ...
21.067797
70
0.421963
[ "vector" ]
8f5867598e149840c28c393085efb13ed52a78ef
4,652
hpp
C++
ThirdParty-mod/java2cpp/java/util/regex/MatchResult.hpp
kakashidinho/HQEngine
8125b290afa7c62db6cc6eac14e964d8138c7fd0
[ "MIT" ]
1
2019-04-03T01:53:28.000Z
2019-04-03T01:53:28.000Z
ThirdParty-mod/java2cpp/java/util/regex/MatchResult.hpp
kakashidinho/HQEngine
8125b290afa7c62db6cc6eac14e964d8138c7fd0
[ "MIT" ]
null
null
null
ThirdParty-mod/java2cpp/java/util/regex/MatchResult.hpp
kakashidinho/HQEngine
8125b290afa7c62db6cc6eac14e964d8138c7fd0
[ "MIT" ]
null
null
null
/*================================================================================ code generated by: java2cpp author: Zoran Angelov, mailto://baldzar@gmail.com class: java.util.regex.MatchResult ================================================================================*/ #ifndef J2CPP_INCLUDE_IMPL...
28.024096
86
0.690671
[ "object" ]
8f5d1750fe17bd694d870d6859cae7b295303744
7,791
cpp
C++
src/linux_parser.cpp
teddyg/ND-System-Monitor
8f4a35aeae117b7a358b1ca770a6b8246bfeb7b6
[ "MIT" ]
null
null
null
src/linux_parser.cpp
teddyg/ND-System-Monitor
8f4a35aeae117b7a358b1ca770a6b8246bfeb7b6
[ "MIT" ]
null
null
null
src/linux_parser.cpp
teddyg/ND-System-Monitor
8f4a35aeae117b7a358b1ca770a6b8246bfeb7b6
[ "MIT" ]
null
null
null
#include <dirent.h> #include <unistd.h> #include <sstream> #include <string> #include <vector> #include "linux_parser.h" using std::stof; using std::string; using std::to_string; using std::vector; // reuse logic for running and total process count int GetProcessData(std::string label); // DONE: An example of how t...
25.132258
84
0.646259
[ "vector" ]
8f5e9f581560ce7f9094e9502bb4e19bf42c13e3
2,832
cpp
C++
src/level0/render/vulkan/api_physicaldevice.cpp
hitomi-team/quanta
048788f4b5172fa9345eff18afc7b4d9cbb8d6dd
[ "BSD-2-Clause" ]
2
2021-12-24T03:08:23.000Z
2021-12-24T03:16:58.000Z
src/level0/render/vulkan/api_physicaldevice.cpp
hitomi-team/quanta
048788f4b5172fa9345eff18afc7b4d9cbb8d6dd
[ "BSD-2-Clause" ]
null
null
null
src/level0/render/vulkan/api_physicaldevice.cpp
hitomi-team/quanta
048788f4b5172fa9345eff18afc7b4d9cbb8d6dd
[ "BSD-2-Clause" ]
null
null
null
#include "level0/pch.h" #include "api.h" // CPU Accessible Device Memory // (Usually the PCI BAR on x86) static const VkMemoryPropertyFlags VULKAN_ACCESSIBLE_DEVICE_MEMORY = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT | VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT; VulkanPhysicalDevice::VulkanP...
37.263158
182
0.796257
[ "vector" ]
8f5fea6245700889b9292948d2b4a8b7fafb2e8f
30,847
cpp
C++
sololink/flightcode/rssi/rssi_send.cpp
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
68
2019-09-23T03:27:05.000Z
2022-03-12T03:00:41.000Z
sololink/flightcode/rssi/rssi_send.cpp
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
22
2019-10-26T20:15:56.000Z
2022-02-12T05:41:56.000Z
sololink/flightcode/rssi/rssi_send.cpp
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
33
2019-09-29T19:52:19.000Z
2022-03-12T03:00:43.000Z
#include <stdio.h> #include <unistd.h> #include <net/if.h> #include <syslog.h> #include <netlink/netlink.h> #include <netlink/genl/ctrl.h> #include <netlink/genl/genl.h> #include <linux/nl80211.h> #include <sys/socket.h> #include <sys/un.h> #include "../mavlink/c_library/common/mavlink.h" #include "util.h" /* * Retrie...
35.868605
100
0.664732
[ "mesh" ]
8f603d4b8cb6cc9aa3b5887d7d32b283eef9c850
10,048
cc
C++
services/network/restricted_cookie_manager.cc
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
services/network/restricted_cookie_manager.cc
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
services/network/restricted_cookie_manager.cc
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
// 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/network/restricted_cookie_manager.h" #include <memory> #include <utility> #include <vector> #include "base/bind.h" #include "base/mem...
38.945736
80
0.698447
[ "vector" ]
8f65b284b9b25245aed96262b1455fc0b1d121ab
10,804
cpp
C++
ItemRenamer/main.cpp
nacitar/old-projects
e5af376f868124b9828196df1f55adb682969f3d
[ "MIT" ]
1
2016-05-04T04:22:42.000Z
2016-05-04T04:22:42.000Z
ItemRenamer/main.cpp
nacitar/old-projects
e5af376f868124b9828196df1f55adb682969f3d
[ "MIT" ]
null
null
null
ItemRenamer/main.cpp
nacitar/old-projects
e5af376f868124b9828196df1f55adb682969f3d
[ "MIT" ]
6
2016-05-04T04:23:02.000Z
2020-11-30T22:32:43.000Z
#include <string.h> #include <iostream> #include <fstream> #include <string> #include <algorithm> #include <sstream> #include <vector> #include <set> #include <windows.h> #include "../include/md5.h" using namespace std; std::string StrTrim(std::string str) { std::string::size_type posA = str.find_first_...
31.590643
220
0.578675
[ "vector" ]
8f70d7601110a30b04e87e76cc8adab98c9d8d07
1,650
cpp
C++
src/urdf_rviz_commander.cpp
mwswartwout/urdf_control
1bdae927cbac1113f5d8f6eec3a20fdd35b84c9a
[ "MIT" ]
null
null
null
src/urdf_rviz_commander.cpp
mwswartwout/urdf_control
1bdae927cbac1113f5d8f6eec3a20fdd35b84c9a
[ "MIT" ]
null
null
null
src/urdf_rviz_commander.cpp
mwswartwout/urdf_control
1bdae927cbac1113f5d8f6eec3a20fdd35b84c9a
[ "MIT" ]
null
null
null
#include <ros/ros.h> #include <sensor_msgs/JointState.h> #include <math.h> #include <vector> int main(int argc, char **argv) { ros::init(argc, argv, "urdf_rviz_commander"); // minimal_commander node ros::NodeHandle n; ros::Publisher joint_publisher = n.advertise<sensor_msgs::JointState>("joint_states", 1);...
40.243902
121
0.652121
[ "vector" ]
8f7914041edef5bd4131d219368d59bb3a073483
1,195
cpp
C++
1101-1200/1172-Dinner Plate Stacks/1172-Dinner Plate Stacks.cpp
jiadaizhao/LeetCode
4ddea0a532fe7c5d053ffbd6870174ec99fc2d60
[ "MIT" ]
49
2018-05-05T02:53:10.000Z
2022-03-30T12:08:09.000Z
1101-1200/1172-Dinner Plate Stacks/1172-Dinner Plate Stacks.cpp
jolly-fellow/LeetCode
ab20b3ec137ed05fad1edda1c30db04ab355486f
[ "MIT" ]
11
2017-12-15T22:31:44.000Z
2020-10-02T12:42:49.000Z
1101-1200/1172-Dinner Plate Stacks/1172-Dinner Plate Stacks.cpp
jolly-fellow/LeetCode
ab20b3ec137ed05fad1edda1c30db04ab355486f
[ "MIT" ]
28
2017-12-05T10:56:51.000Z
2022-01-26T18:18:27.000Z
class DinnerPlates { public: DinnerPlates(int capacity) { this->capacity = capacity; } void push(int val) { if (stacks.empty()) { stacks.insert(table.size()); } table[*stacks.begin()].push_back(val); if (table[*stacks.begin()].size() == capacity) { ...
22.54717
68
0.508787
[ "object", "vector" ]
8f80cbb721ee8ca84639934181e1524275528717
5,737
hpp
C++
include/low-can/binding/application.hpp
redpesk-common/canbus-binding
031ebb8657e66129936ba9079faa58e369f97de1
[ "Apache-2.0" ]
null
null
null
include/low-can/binding/application.hpp
redpesk-common/canbus-binding
031ebb8657e66129936ba9079faa58e369f97de1
[ "Apache-2.0" ]
null
null
null
include/low-can/binding/application.hpp
redpesk-common/canbus-binding
031ebb8657e66129936ba9079faa58e369f97de1
[ "Apache-2.0" ]
null
null
null
/* * Copyright (C) 2015, 2016 "IoT.bzh" * Author "Romain Forlot" <romain.forlot@iot.bzh> * * 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....
44.472868
180
0.767997
[ "object", "vector" ]
8f86bc646d18081da364740764f44e80f88d8a65
4,072
cpp
C++
src/testing/ApiPropertyTest.cpp
nebular-lab/LeapCxxFork
c09b6a7c353364a92040aaf8b8cd513fc2693a4a
[ "Apache-2.0" ]
48
2018-08-05T07:48:16.000Z
2021-12-28T15:59:08.000Z
src/testing/ApiPropertyTest.cpp
nebular-lab/LeapCxxFork
c09b6a7c353364a92040aaf8b8cd513fc2693a4a
[ "Apache-2.0" ]
1
2019-11-22T08:56:42.000Z
2019-11-22T08:56:42.000Z
src/testing/ApiPropertyTest.cpp
nebular-lab/LeapCxxFork
c09b6a7c353364a92040aaf8b8cd513fc2693a4a
[ "Apache-2.0" ]
17
2018-09-14T09:18:33.000Z
2022-03-20T04:32:53.000Z
#include "LeapC++.h" #include <gtest/gtest.h> TEST(ApiPropertyTest, ValidateVectorProperties) { const float* f = nullptr; f = Leap::Vector::right().toFloatPointer(); EXPECT_EQ(1, f[0]); EXPECT_EQ(0, f[1]); EXPECT_EQ(0, f[2]); f = Leap::Vector::up().toFloatPointer(); EXPECT_EQ(0, f[0]); EXPECT_EQ(1, f...
33.933333
97
0.705305
[ "vector" ]
8f8afc9936443fe5a698ec746fbc8ad10a465e3c
7,876
cpp
C++
GROMACS/nonbonded_benchmark/gromacs_source_code/src/gromacs/hardware/tests/hardwaretopology.cpp
berkhess/bioexcel-exascale-co-design-benchmarks
c32f811d41a93fb69e49b3e7374f6028e37970d2
[ "MIT" ]
1
2020-04-20T04:33:11.000Z
2020-04-20T04:33:11.000Z
GROMACS/nonbonded_benchmark/gromacs_source_code/src/gromacs/hardware/tests/hardwaretopology.cpp
berkhess/bioexcel-exascale-co-design-benchmarks
c32f811d41a93fb69e49b3e7374f6028e37970d2
[ "MIT" ]
8
2019-07-10T15:18:21.000Z
2019-07-31T13:38:09.000Z
GROMACS/nonbonded_benchmark/gromacs_source_code/src/gromacs/hardware/tests/hardwaretopology.cpp
berkhess/bioexcel-exascale-co-design-benchmarks
c32f811d41a93fb69e49b3e7374f6028e37970d2
[ "MIT" ]
3
2019-07-10T10:50:25.000Z
2020-12-08T13:42:52.000Z
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 2015,2016,2018, by the GROMACS development team, led by * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl, * and including many others, as listed in the AUTHORS file in the * top-level source directory and at http...
39.577889
111
0.657948
[ "vector" ]
8f8ed4a117e4d7e84e04abba9d1898abd27f2428
373
cpp
C++
55 canJump.cpp
OliveStar/leetcodecpp
4558d90cf5633adea9d9fd785fdd36a001442d67
[ "MIT" ]
null
null
null
55 canJump.cpp
OliveStar/leetcodecpp
4558d90cf5633adea9d9fd785fdd36a001442d67
[ "MIT" ]
null
null
null
55 canJump.cpp
OliveStar/leetcodecpp
4558d90cf5633adea9d9fd785fdd36a001442d67
[ "MIT" ]
null
null
null
class Solution { public: bool canJump(vector<int>& nums) { int n = nums.size(); int farthest = 0; for(int i = 0; i < n-1; i++){ // 不断计算能跳到的最远距离 farthest = max(farthest, nums[i] + i); // 可能碰到0,卡住跳不动了 if(farthest <= i) return fals...
24.866667
50
0.442359
[ "vector" ]
8f95b715c0e02289ebdb58773f82ff2915b92de6
2,039
cpp
C++
src/node.cpp
raselashraf21/PentominoSolver
52ff84de5302d6d8e07a530f4c13211e2f77d4e9
[ "MIT" ]
null
null
null
src/node.cpp
raselashraf21/PentominoSolver
52ff84de5302d6d8e07a530f4c13211e2f77d4e9
[ "MIT" ]
null
null
null
src/node.cpp
raselashraf21/PentominoSolver
52ff84de5302d6d8e07a530f4c13211e2f77d4e9
[ "MIT" ]
null
null
null
/* * node.cpp * * Created on: Dec 26, 2020 * Author: ashraf */ #include "node.h" #include <vector> using namespace std; bool Node::operator==(const Node& node) const{ if(_left == node._left && _right == node._right && _up == node._up && _down == node._down && _head == node._head && _id == node._...
13.414474
48
0.611084
[ "vector" ]
8f9dc2f18a1819acededd3465c8268862182af91
753
cpp
C++
practice/1191.cpp
zyzisyz/OJ
55221a55515231182b6bd133edbdb55501a565fc
[ "Apache-2.0" ]
null
null
null
practice/1191.cpp
zyzisyz/OJ
55221a55515231182b6bd133edbdb55501a565fc
[ "Apache-2.0" ]
null
null
null
practice/1191.cpp
zyzisyz/OJ
55221a55515231182b6bd133edbdb55501a565fc
[ "Apache-2.0" ]
2
2020-01-01T13:49:08.000Z
2021-03-06T06:54:26.000Z
#include<iostream> #include<vector> #include<stack> using namespace std; int n; vector<vector<int>> adj; vector<int> path; vector<int> indegree; stack<int> stk; int main(void) { cin>>n; adj.assign(n+1, vector<int>()); indegree.assign(n+1, 0); // input for(int i=1; i<=n; i++){ while(true){ int x; cin>...
13.446429
32
0.549801
[ "vector" ]
8fa22be5650b5fa8197bafc2da800ef2dbd7714b
310
cpp
C++
chapter-9/9.34.cpp
zero4drift/Cpp-Primer-5th-Exercises
d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f
[ "MIT" ]
null
null
null
chapter-9/9.34.cpp
zero4drift/Cpp-Primer-5th-Exercises
d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f
[ "MIT" ]
null
null
null
chapter-9/9.34.cpp
zero4drift/Cpp-Primer-5th-Exercises
d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f
[ "MIT" ]
null
null
null
// infinite loop, always insert a copy at the front of the fitst encountered odd number. #include <vector> using std::vector; int main() { vector<int> vi = {1, 2, 3, 4, 5}; auto iter = vi.begin(); while(iter != vi.end()) { if(*iter % 2) iter = vi.insert(iter, *iter); ++iter; } }
17.222222
88
0.577419
[ "vector" ]
8fa30bb0419ff0d2db89aca4b3b6dabd5d8a15c7
3,544
cpp
C++
data-manager/tests/server/dataManagerServer/session/Session.integ.cpp
Saafke/4dm
68e235164afb1f127def35e9c15ca883ec1426d4
[ "MIT" ]
8
2021-03-16T06:48:57.000Z
2021-11-30T09:34:09.000Z
data-manager/tests/server/dataManagerServer/session/Session.integ.cpp
Saafke/4dm
68e235164afb1f127def35e9c15ca883ec1426d4
[ "MIT" ]
null
null
null
data-manager/tests/server/dataManagerServer/session/Session.integ.cpp
Saafke/4dm
68e235164afb1f127def35e9c15ca883ec1426d4
[ "MIT" ]
3
2021-05-02T15:38:17.000Z
2021-07-07T09:19:48.000Z
/* * Session.unit.cpp * * Created on: May 6, 2019 * Author: mbortolon */ #include "gtest/gtest.h" #include "src/server/dataManagerServer/session/Session.hpp" #include "src/common/dataManager/protocol/InitMessage.pb.h" #include "src/common/dataManager/frameContainer/Frame.hpp" #include "src/server/dataManag...
34.407767
175
0.785835
[ "vector" ]
8fa7e15a871c447f8290b2a61fdf61b7dafac5a2
17,055
cc
C++
src/ros/eval_base.cc
raphaelchang/omni_slam_eval
7df7d76c520c1325ac4f1a85f87b7af07d9628c3
[ "MIT" ]
7
2020-06-15T01:04:10.000Z
2021-12-15T03:49:05.000Z
src/ros/eval_base.cc
raphaelchang/omni_slam_eval
7df7d76c520c1325ac4f1a85f87b7af07d9628c3
[ "MIT" ]
null
null
null
src/ros/eval_base.cc
raphaelchang/omni_slam_eval
7df7d76c520c1325ac4f1a85f87b7af07d9628c3
[ "MIT" ]
4
2020-06-15T16:02:12.000Z
2021-10-12T07:18:47.000Z
#include "eval_base.h" #include <rosbag/bag.h> #include <rosbag/view.h> #include "camera/double_sphere.h" #include "camera/unified.h" #include "camera/perspective.h" #include "util/tf_util.h" #include "util/hdf_file.h" #define USE_GROUND_TRUTH using namespace Eigen; namespace omni_slam { namespace ros { template ...
39.662791
324
0.621519
[ "vector", "model", "transform" ]
8fb19eb30bda663a7a24e3b273647c8fcc42190b
5,530
cpp
C++
medgpc/src/kernel/c_kernel.cpp
bee-hive/MedGP
596a24ca519900507cce42cb4e2061319cef801e
[ "BSD-3-Clause" ]
25
2018-03-18T18:09:03.000Z
2022-02-24T07:47:33.000Z
medgpc/src/kernel/c_kernel.cpp
bee-hive/MedGP
596a24ca519900507cce42cb4e2061319cef801e
[ "BSD-3-Clause" ]
3
2021-04-12T16:11:00.000Z
2021-04-12T16:26:17.000Z
medgpc/src/kernel/c_kernel.cpp
bee-hive/MedGP
596a24ca519900507cce42cb4e2061319cef801e
[ "BSD-3-Clause" ]
4
2019-04-27T23:18:26.000Z
2021-12-03T20:19:09.000Z
/* ------------------------------------------------------------------------- This is the function file for top kernel class. All other kernels can inherit these functions. ------------------------------------------------------------------------- */ #include <iostream> #include <vector> #include <math.h> #include <stdli...
28.95288
85
0.488065
[ "object", "vector" ]
8fb20331612d2343abadcb7478f0ffa2926c81f6
1,626
hh
C++
src/iccf.hh
mmaietta/iconv-corefoundation
61009c01bbf0a3967dae0809d321cab9865e5117
[ "MIT" ]
null
null
null
src/iccf.hh
mmaietta/iconv-corefoundation
61009c01bbf0a3967dae0809d321cab9865e5117
[ "MIT" ]
2
2021-03-04T07:48:44.000Z
2021-05-13T20:38:46.000Z
src/iccf.hh
mmaietta/iconv-corefoundation
61009c01bbf0a3967dae0809d321cab9865e5117
[ "MIT" ]
1
2021-03-05T16:53:16.000Z
2021-03-05T16:53:16.000Z
#pragma once #include "napi.hh" #include "StringEncoding.hh" struct Iccf { const Napi::FunctionReference InvalidEncodedTextError, NotRepresentableError, UnrecognizedEncodingError, _newFormattedTypeError; const StringEncodingClass StringEncoding; Iccf(Napi::Object imports, Napi::Object exports); inline Napi::Err...
41.692308
158
0.776753
[ "object" ]
8fb4c6f02e1571506a25fd86fd92540053ef91e0
35,104
cpp
C++
src/Plugins/JavaScript/MathBindings/OBBBindings.cpp
realXtend/tundra-urho3d
436d41c3e3dd1a9b629703ee76fd0ef2ee212ef8
[ "Apache-2.0" ]
13
2015-02-25T02:42:38.000Z
2018-07-31T11:40:56.000Z
src/Plugins/JavaScript/MathBindings/OBBBindings.cpp
realXtend/tundra-urho3d
436d41c3e3dd1a9b629703ee76fd0ef2ee212ef8
[ "Apache-2.0" ]
8
2015-02-12T22:27:05.000Z
2017-01-21T15:59:17.000Z
src/Plugins/JavaScript/MathBindings/OBBBindings.cpp
realXtend/tundra-urho3d
436d41c3e3dd1a9b629703ee76fd0ef2ee212ef8
[ "Apache-2.0" ]
12
2015-03-25T21:10:50.000Z
2019-04-10T09:03:10.000Z
// For conditions of distribution and use, see copyright notice in LICENSE // This file has been autogenerated with BindingsGenerator #include "StableHeaders.h" #include "CoreTypes.h" #include "JavaScriptInstance.h" #include "LoggingFunctions.h" #include "Geometry/OBB.h" #ifdef _MSC_VER #pragma warning(disa...
35.280402
247
0.696787
[ "geometry", "transform" ]
8fb7c2415138cb88495ddcb1b7ab6df733f2aaad
1,601
hpp
C++
compiler/printer.hpp
jb55/clay
db0bd2702ab0b6e48965cd85f8859bbd5f60e48e
[ "BSD-2-Clause" ]
185
2015-01-04T09:33:17.000Z
2022-03-18T04:53:38.000Z
compiler/printer.hpp
Lencof/clay
14939b88388eff73c8881dfd7f5a5dff5a7e8f91
[ "BSD-2-Clause" ]
7
2015-03-22T06:13:42.000Z
2015-12-28T19:07:24.000Z
compiler/printer.hpp
Lencof/clay
14939b88388eff73c8881dfd7f5a5dff5a7e8f91
[ "BSD-2-Clause" ]
20
2015-01-09T22:24:46.000Z
2022-03-18T04:54:59.000Z
#pragma once #include "clay.hpp" namespace clay { template <class T> inline llvm::raw_ostream &operator<<(llvm::raw_ostream &out, llvm::ArrayRef<T> v) { out << "["; const T *i, *end; bool first = true; for (i = v.begin(), end = v.end(); i != end; ++i) { if (!first) out << ", "; ...
23.544118
114
0.677077
[ "object" ]
263398a8e81a74bef0e43029cc56ffa60f471074
2,193
cpp
C++
samples/TilesApp/TilesApp.cpp
r3dl3g/guipp
3d3179be3022935b46b59f1b988a029abeabfcbf
[ "MIT" ]
null
null
null
samples/TilesApp/TilesApp.cpp
r3dl3g/guipp
3d3179be3022935b46b59f1b988a029abeabfcbf
[ "MIT" ]
null
null
null
samples/TilesApp/TilesApp.cpp
r3dl3g/guipp
3d3179be3022935b46b59f1b988a029abeabfcbf
[ "MIT" ]
null
null
null
#include <gui/layout/layout_container.h> #include <gui/layout/grid_layout.h> #include <gui/ctrl/split_view.h> #include <gui/ctrl/tile_view.h> #include <gui/ctrl/look/table.h> using namespace gui; using namespace gui::win; using namespace gui::layout; using namespace gui::ctrl; using namespace gui::draw; using namesp...
31.782609
118
0.700866
[ "vector" ]
2639e3d331abd87303114df567abc574dc98ffa0
15,219
cc
C++
Cassie_Example/opt_two_step/gen/anim/Link_pelvis_to_hip_abduction_right_bar.cc
prem-chand/Cassie_CFROST
da4bd51442f86e852cbb630cc91c9a380a10b66d
[ "BSD-3-Clause" ]
null
null
null
Cassie_Example/opt_two_step/gen/anim/Link_pelvis_to_hip_abduction_right_bar.cc
prem-chand/Cassie_CFROST
da4bd51442f86e852cbb630cc91c9a380a10b66d
[ "BSD-3-Clause" ]
null
null
null
Cassie_Example/opt_two_step/gen/anim/Link_pelvis_to_hip_abduction_right_bar.cc
prem-chand/Cassie_CFROST
da4bd51442f86e852cbb630cc91c9a380a10b66d
[ "BSD-3-Clause" ]
null
null
null
/* * Automatically Generated from Mathematica. * Sat 13 Nov 2021 15:03:17 GMT-05:00 */ #ifdef MATLAB_MEX_FILE #include <stdexcept> #include <cmath> #include<math.h> /** * Copied from Wolfram Mathematica C Definitions file mdefs.hpp * Changed marcos to inline functions (Eric Cousineau) */ inline double Power(doub...
35.475524
92
0.670741
[ "vector" ]
2639ee11bacdee4d5b2b9fc954ebcede56f2e7f1
5,835
cpp
C++
rf.cpp
Legendexo/Control-car
45732c7cea4f810c5666158ba535dfcf64983b12
[ "MIT" ]
56
2016-09-01T20:42:43.000Z
2022-03-21T19:52:32.000Z
rf.cpp
nocomp/rf-car
b62fa5c762f03e2e0bad218e79c861c3552a18af
[ "MIT" ]
null
null
null
rf.cpp
nocomp/rf-car
b62fa5c762f03e2e0bad218e79c861c3552a18af
[ "MIT" ]
11
2016-09-16T03:08:13.000Z
2022-03-14T23:09:33.000Z
#include <libhackrf/hackrf.h> #include <cstdio> #include <vector> #include "rf.h" using namespace std; struct global_args_t rf_global_args; static vector<int> patterns[9]; static vector<float> filter; static volatile Direction last_dir = none; static volatile unsigned int pos = 0; static hackrf_device *device = NUL...
29.321608
113
0.594002
[ "vector", "transform" ]
264ea6219e6e2c4624440c4183373dacfc97de9d
2,127
cpp
C++
src/configure/commands/header_dependencies.cpp
hotgloupi/configure
888cf725c93df5a1cf01794cc0a581586a82855c
[ "BSD-3-Clause" ]
1
2015-11-13T10:37:35.000Z
2015-11-13T10:37:35.000Z
src/configure/commands/header_dependencies.cpp
hotgloupi/configure
888cf725c93df5a1cf01794cc0a581586a82855c
[ "BSD-3-Clause" ]
19
2015-02-10T17:18:58.000Z
2015-07-11T11:31:08.000Z
src/configure/commands/header_dependencies.cpp
hotgloupi/configure
888cf725c93df5a1cf01794cc0a581586a82855c
[ "BSD-3-Clause" ]
null
null
null
#include "header_dependencies.hpp" #include <boost/filesystem.hpp> #include <fstream> #include <set> namespace configure { namespace commands { namespace fs = boost::filesystem; static void inspect(fs::path const& source, std::set<fs::path>& seen, std::vector<fs::path> const& include...
23.373626
69
0.5811
[ "vector" ]
265449978d497e33c2a85b5ad1fbbf3830dd3381
1,341
cpp
C++
tests/bin/readLevelfile.cpp
villaa/nrCascadeSim
83fac469648dc940585c9eee64dbe9488e0fe434
[ "MIT" ]
null
null
null
tests/bin/readLevelfile.cpp
villaa/nrCascadeSim
83fac469648dc940585c9eee64dbe9488e0fe434
[ "MIT" ]
null
null
null
tests/bin/readLevelfile.cpp
villaa/nrCascadeSim
83fac469648dc940585c9eee64dbe9488e0fe434
[ "MIT" ]
null
null
null
//library commands #include "cascadeProd.h" #include "lindhard.h" #include "weisskopf.h" #include "isotope_info.h" #include <iostream> #include <iomanip> //ROOT stuff #include "rootUtil.h" //get the file name string filenames="inputfile.txt"; //read the contents of a file into a cli object int numc; bool success=fals...
35.289474
126
0.542878
[ "object", "vector" ]
2655e00544fdb3f055a41837f87977824a264996
3,814
cpp
C++
VisualStudio/VectorTools/VectorTools/VectorLocatorDrawOverride.cpp
diseraluca/VectorTools
766352637eaf0c8d5b11f0b9e0e5ddcd45b27fef
[ "MIT" ]
null
null
null
VisualStudio/VectorTools/VectorTools/VectorLocatorDrawOverride.cpp
diseraluca/VectorTools
766352637eaf0c8d5b11f0b9e0e5ddcd45b27fef
[ "MIT" ]
null
null
null
VisualStudio/VectorTools/VectorTools/VectorLocatorDrawOverride.cpp
diseraluca/VectorTools
766352637eaf0c8d5b11f0b9e0e5ddcd45b27fef
[ "MIT" ]
null
null
null
// Copyright 2018 Luca Di Sera // This code is licensed under the MIT License ( see LICENSE.txt for details ) #include "VectorLocatorDrawOverride.h" #include "VectorLocatorData.h" #include <maya/MEventMessage.h> #include <maya/MFnDependencyNode.h> #include <maya/MHardwareRenderer.h> MVector _vectorFromPlug(const MPl...
32.322034
184
0.773466
[ "vector" ]
266c4d1ce78aeb537a37d96aead19272ed3f4d2f
1,645
cpp
C++
graph-source-code/456-E/7408300.cpp
AmrARaouf/algorithm-detection
59f3028d2298804870b32729415d71eec6116557
[ "MIT" ]
null
null
null
graph-source-code/456-E/7408300.cpp
AmrARaouf/algorithm-detection
59f3028d2298804870b32729415d71eec6116557
[ "MIT" ]
null
null
null
graph-source-code/456-E/7408300.cpp
AmrARaouf/algorithm-detection
59f3028d2298804870b32729415d71eec6116557
[ "MIT" ]
null
null
null
//Language: GNU C++ #include <iostream> #include <vector> #include <algorithm> #define pb push_back using namespace std; vector<int> s,p,v,v2,l; vector<vector<int> > e; int far,maxd; int par(int nd){ if(p[nd]==nd) return nd; return p[nd]=par(p[nd]); } int dfs(int nd,int pr,int ds){ if(v[nd]) return 0;...
19.819277
112
0.449848
[ "vector" ]
26773d5fe4e939a5065e8ae49b7d11d450bf7136
14,937
cpp
C++
Source/HoudiniNiagara/Private/HoudiniPointCacheLoaderBJSON.cpp
GarmOfGnipahellir/HoudiniNiagara
fdc48ab130e26c5ef6df6298d3eb0633b65e48de
[ "BSD-3-Clause" ]
172
2020-04-18T17:36:38.000Z
2022-03-23T16:33:08.000Z
Source/HoudiniNiagara/Private/HoudiniPointCacheLoaderBJSON.cpp
GarmOfGnipahellir/HoudiniNiagara
fdc48ab130e26c5ef6df6298d3eb0633b65e48de
[ "BSD-3-Clause" ]
17
2020-05-11T04:32:35.000Z
2022-01-20T14:09:19.000Z
Source/HoudiniNiagara/Private/HoudiniPointCacheLoaderBJSON.cpp
GarmOfGnipahellir/HoudiniNiagara
fdc48ab130e26c5ef6df6298d3eb0633b65e48de
[ "BSD-3-Clause" ]
37
2020-05-16T04:28:33.000Z
2022-03-07T09:34:13.000Z
#include "HoudiniPointCacheLoaderBJSON.h" #include "HoudiniPointCache.h" #include "HAL/FileManager.h" #include "Misc/FileHelper.h" const unsigned char FHoudiniPointCacheLoaderBJSON::MarkerTypeChar; const unsigned char FHoudiniPointCacheLoaderBJSON::MarkerTypeInt8; const unsigned char FHoudiniPointCacheLoaderBJSON::Ma...
36.520782
197
0.676508
[ "object" ]
269c667873b48e21b1cd91958cabfb34ba7ecf2f
21,933
cpp
C++
src/objectxml.cpp
MelvinG24/dust3d
c4936fd900a9a48220ebb811dfeaea0effbae3ee
[ "MIT" ]
2,392
2016-12-17T14:14:12.000Z
2022-03-30T19:40:40.000Z
src/objectxml.cpp
MelvinG24/dust3d
c4936fd900a9a48220ebb811dfeaea0effbae3ee
[ "MIT" ]
106
2018-04-19T17:47:31.000Z
2022-03-01T19:44:11.000Z
src/objectxml.cpp
MelvinG24/dust3d
c4936fd900a9a48220ebb811dfeaea0effbae3ee
[ "MIT" ]
184
2017-11-15T09:55:37.000Z
2022-02-21T16:30:46.000Z
#include <stack> #include <QUuid> #include <QDebug> #include <QStringList> #include <QRegExp> #include "objectxml.h" #include "util.h" void saveObjectToXmlStream(const Object *object, QXmlStreamWriter *writer) { std::map<std::pair<QUuid, QUuid>, size_t> nodeIdMap; for (size_t i = 0; i < object->nodes.size(); +...
51.973934
200
0.535449
[ "object", "vector" ]
269dc60c99afd7f82bb984738a90a425cdd512ed
733
hpp
C++
ToolkitNF/Widgets/SliderWidget.hpp
SlyVTT/Widget_NF_Nspire_and_PC
cdf921cc931eaa99ed765d1640253e060bc259cb
[ "MIT" ]
3
2021-08-06T19:16:58.000Z
2021-08-07T10:32:15.000Z
ToolkitNF/Widgets/SliderWidget.hpp
SlyVTT/Widget_NF_Nspire_and_PC
cdf921cc931eaa99ed765d1640253e060bc259cb
[ "MIT" ]
null
null
null
ToolkitNF/Widgets/SliderWidget.hpp
SlyVTT/Widget_NF_Nspire_and_PC
cdf921cc931eaa99ed765d1640253e060bc259cb
[ "MIT" ]
null
null
null
#ifndef SLIDERWIDGET_H #define SLIDERWIDGET_H #include "Widget.hpp" class SliderWidget : public Widget { public: SliderWidget(); SliderWidget( std::string l, unsigned int x, unsigned int y, unsigned int w, unsigned int h, Widget *p ); ~SliderWidget(); int GetValueInt(); float GetValueFloat(); ...
20.361111
109
0.686221
[ "render" ]
26a4c22fe73f6acf024e9df412f09e635e7b800a
5,580
cpp
C++
client/src/process_packet_daily_update.cpp
Lukasz98/Free-Imperium
fadbcf0394474ce710b0370ea6762af2da958c53
[ "MIT" ]
2
2020-04-09T09:34:53.000Z
2022-01-22T14:31:57.000Z
client/src/process_packet_daily_update.cpp
Lukasz98/Free-Imperium
fadbcf0394474ce710b0370ea6762af2da958c53
[ "MIT" ]
null
null
null
client/src/process_packet_daily_update.cpp
Lukasz98/Free-Imperium
fadbcf0394474ce710b0370ea6762af2da958c53
[ "MIT" ]
null
null
null
#include "process_packet.h" void ProcessPacket::DailyUpdate(sf::Packet & packet, Gui & gui, std::vector<War> & wars, std::vector<std::unique_ptr<Province>> & provinces, std::vector<std::shared_ptr<Country>> & countries, Map & map) { std::unordered_map<std::string, std::string> values; std::string strData; ...
36.470588
202
0.474014
[ "vector" ]
26a8c7d3c62b6fbf3a2cedfc48b793ac2cb855ca
2,512
cpp
C++
UVA/vol-012/1234.cpp
arash16/prays
0fe6bb2fa008b8fc46c80b01729f68308114020d
[ "MIT" ]
3
2017-05-12T14:45:37.000Z
2020-01-18T16:51:25.000Z
UVA/vol-012/1234.cpp
arash16/prays
0fe6bb2fa008b8fc46c80b01729f68308114020d
[ "MIT" ]
null
null
null
UVA/vol-012/1234.cpp
arash16/prays
0fe6bb2fa008b8fc46c80b01729f68308114020d
[ "MIT" ]
null
null
null
#include <stdio.h> #include <cstring> #include <iostream> #include <vector> using namespace std; inline char readchar() { const int N = 4194304; static char buf[N]; static char *p = buf, *end = buf; bool fin = 0; if (fin) return EOF; if (p == end) { if ((end = buf + fread(buf, 1, N, std...
20.933333
68
0.416799
[ "vector" ]
26a9655cb8c10e5df932f2dad7a1ad3f7826f575
44,117
hpp
C++
tests/utilities.hpp
stjordanis/QuEST
9494994729b42f21efc97be99738bf71dcffde34
[ "MIT" ]
281
2019-01-02T23:18:29.000Z
2022-03-30T00:05:17.000Z
tests/utilities.hpp
stjordanis/QuEST
9494994729b42f21efc97be99738bf71dcffde34
[ "MIT" ]
175
2019-01-02T18:04:36.000Z
2022-02-24T10:42:08.000Z
tests/utilities.hpp
TysonRayJones/QuEST
9494994729b42f21efc97be99738bf71dcffde34
[ "MIT" ]
117
2019-01-17T11:54:35.000Z
2022-03-14T12:16:03.000Z
/** @file * Unoptimised, analytic implementations of matrix operations used by QuEST's unit tests * * @defgroup unittest Unit tests * Unit tests of the QuEST API, using Catch2 in C++14. * @defgroup testutilities Unit test utilities * Functions used in the unit testing. These are mostly unoptimised, anal...
37.229536
175
0.714033
[ "vector", "transform" ]
26b01f9e89284769c622109d3f859417f41d524b
984
cpp
C++
visualstudio/litegraph_cpp/main.cpp
h3r/litegraph_native
d67d6f9e3fc0d6887829df5d6038fcc81ca0de7b
[ "MIT" ]
8
2020-02-21T14:11:39.000Z
2022-02-27T02:15:15.000Z
visualstudio/litegraph_cpp/main.cpp
h3r/litegraph_native
d67d6f9e3fc0d6887829df5d6038fcc81ca0de7b
[ "MIT" ]
1
2020-02-28T23:58:51.000Z
2020-02-28T23:58:51.000Z
visualstudio/litegraph_cpp/main.cpp
h3r/litegraph_native
d67d6f9e3fc0d6887829df5d6038fcc81ca0de7b
[ "MIT" ]
3
2020-09-07T06:20:09.000Z
2022-02-27T02:15:16.000Z
#include <fstream> #include <iostream> #include <vector> #include "../../src/litegraph.h" //used only for sleep and keypress #include <windows.h> int main() { std::cout << "LiteGraph v0.1\n*********************\n"; std::string filename; filename = "data/events2.JSON"; //this will register all the base nod...
22.883721
99
0.619919
[ "vector" ]
564c2c064b35709829f3b865b8e1c2c2dd3c387c
1,296
cpp
C++
c++/leetcode/0289-Game_of_Life-M.cpp
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
1
2020-03-02T10:56:22.000Z
2020-03-02T10:56:22.000Z
c++/leetcode/0289-Game_of_Life-M.cpp
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
null
null
null
c++/leetcode/0289-Game_of_Life-M.cpp
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
null
null
null
// 289 Game of Life // https://leetcode.com/problems/game-of-life // version: 1; create time: 2020-02-01 17:28:25; class Solution { public: void gameOfLife(vector<vector<int>>& board) { const int m = board.size(); if (m == 0) return; const int n = board[0].size(); if (n == 0) return...
30.857143
102
0.325617
[ "vector" ]
564e7b4fcc10f76bf0081f160f5e87193236183a
1,630
hpp
C++
VVGL/include/GLContextWindowBacking.hpp
mrRay/VVISF-GL
96b00da11e4497da304041ea2a5ffc6e3a8c9454
[ "BSD-3-Clause" ]
24
2019-01-17T17:56:18.000Z
2022-02-27T19:57:13.000Z
VVGL/include/GLContextWindowBacking.hpp
mrRay/VVISF-GL
96b00da11e4497da304041ea2a5ffc6e3a8c9454
[ "BSD-3-Clause" ]
6
2019-01-17T17:17:12.000Z
2020-06-19T11:27:50.000Z
VVGL/include/GLContextWindowBacking.hpp
mrRay/VVISF-GL
96b00da11e4497da304041ea2a5ffc6e3a8c9454
[ "BSD-3-Clause" ]
2
2020-12-25T04:57:31.000Z
2021-03-02T22:05:31.000Z
#ifndef VVGL_GLContextWindowBacking_hpp #define VVGL_GLContextWindowBacking_hpp #if defined(VVGL_SDK_WIN) #include <Windows.h> #include <tchar.h> #include <iostream> #include <functional> #include "VVGL.hpp" /* This class exists to wrap an invisible/offscreen window from the Windows SDK- it exists ...
25.076923
145
0.734969
[ "render" ]
565f56c8e9d1f03f277a0287df474adf0d683e0a
6,580
cpp
C++
test_gui/main_window.cpp
ashaduri/qt-cctalk
fcd8165d7fed941e7afdf5048bc4b962ad64c858
[ "BSD-3-Clause" ]
4
2021-02-18T12:50:37.000Z
2022-02-14T11:38:00.000Z
test_gui/main_window.cpp
ashaduri/qt-cctalk
fcd8165d7fed941e7afdf5048bc4b962ad64c858
[ "BSD-3-Clause" ]
null
null
null
test_gui/main_window.cpp
ashaduri/qt-cctalk
fcd8165d7fed941e7afdf5048bc4b962ad64c858
[ "BSD-3-Clause" ]
1
2022-01-10T11:00:08.000Z
2022-01-10T11:00:08.000Z
/************************************************************************** Copyright: (C) 2014 - 2021 Alexander Shaduri License: BSD-3-Clause ***************************************************************************/ #include <QMessageBox> #include <QTimer> #include <Qt> #include <QSerialPortInfo> #include <QAction...
28.733624
139
0.717477
[ "geometry" ]
566b109510a23683f0c18ee4336a70b2b3b394cb
6,016
cpp
C++
EditorLib/LogFile.cpp
elix22/UrhoEditor
8b2578610b21e60f4126e351a1c7e01d639be695
[ "MIT" ]
23
2017-06-14T02:22:10.000Z
2021-11-25T05:09:21.000Z
EditorLib/LogFile.cpp
elix22/UrhoEditor
8b2578610b21e60f4126e351a1c7e01d639be695
[ "MIT" ]
null
null
null
EditorLib/LogFile.cpp
elix22/UrhoEditor
8b2578610b21e60f4126e351a1c7e01d639be695
[ "MIT" ]
22
2017-06-15T12:09:23.000Z
2021-01-02T13:05:15.000Z
#include "LogFile.h" #include "Platform/VideoCard.h" //#include <CL/cl.hpp> #include <QDateTime> #include <QSysInfo> #include <vector> #ifdef WIN32 #include <Windows.h> #endif #ifdef WIN32 static void GetCPUInfo(QString& brandName, int& coreCount, double& cpuSpeed) { int CPUInfo[4] = { -1 }; unsigned ...
29.930348
408
0.609209
[ "vector", "model", "solid" ]
5676fb4571b8e0522752353c0e200877db39167a
759
cpp
C++
main.cpp
jlusPrivat/privBox-offApp
d697ff430c6f31998ef406656fce4200b4597da1
[ "MIT" ]
null
null
null
main.cpp
jlusPrivat/privBox-offApp
d697ff430c6f31998ef406656fce4200b4597da1
[ "MIT" ]
null
null
null
main.cpp
jlusPrivat/privBox-offApp
d697ff430c6f31998ef406656fce4200b4597da1
[ "MIT" ]
null
null
null
#include <string> #include <iostream> #include "model/pins/OutputPin.h" #include "model/messenger/InputMessenger.h" using namespace std; int main () { initializeCore(); OutputPin* p1 = OutputPin::factory(100, digital); p1->digitalWrite(true); OutputPin* p2 = OutputPin::factory(101, digital); ...
23.71875
68
0.653491
[ "model" ]
567bcaad2ff7088ba7aac7f50ac10a400d464c77
2,259
cpp
C++
PrevEngine/src/platform/glfw/imguiglfwinit.cpp
preversewharf45/PrevEngine
3e4ee1517867ccd9ca24bbf39d25408755b8eb25
[ "MIT" ]
1
2019-01-11T09:55:19.000Z
2019-01-11T09:55:19.000Z
PrevEngine/src/platform/glfw/imguiglfwinit.cpp
preversewharf45/PrevEngine
3e4ee1517867ccd9ca24bbf39d25408755b8eb25
[ "MIT" ]
4
2019-02-17T18:58:36.000Z
2019-03-22T15:07:09.000Z
PrevEngine/src/platform/glfw/imguiglfwinit.cpp
preversewharf45/PrevEngine
3e4ee1517867ccd9ca24bbf39d25408755b8eb25
[ "MIT" ]
2
2019-03-05T09:27:23.000Z
2019-03-05T13:18:12.000Z
#include "pch.h" #include "imguiglfwinit.h" #include <glad/glad.h> #include <GLFW/glfw3.h> #include <imgui.h> #define IMGUI_IMPL_OPENGL_LOADER_GLAD #include "examples/imgui_impl_opengl3.h" #include "examples/imgui_impl_opengl3.cpp" #include "examples/imgui_impl_glfw.h" #include "examples/imgui_impl_glfw.cpp" #incl...
27.54878
118
0.72023
[ "render" ]
5684228134941b004d3f83dc4394afff825b5319
7,917
cpp
C++
lib/ExpressionParser.cpp
hoppe93/symachin
559c3d1e676fc6afb28e40a5fee1906cf62ad07f
[ "MIT" ]
null
null
null
lib/ExpressionParser.cpp
hoppe93/symachin
559c3d1e676fc6afb28e40a5fee1906cf62ad07f
[ "MIT" ]
null
null
null
lib/ExpressionParser.cpp
hoppe93/symachin
559c3d1e676fc6afb28e40a5fee1906cf62ad07f
[ "MIT" ]
null
null
null
/** * Implementation of the 'ExpressionParser' class. */ #include <string> #include <vector> #include "symachin/Expression.h" #include "symachin/ExpressionParser.h" #include "symachin/ExpressionParserException.h" using namespace std; using namespace symachin; /** * Constructor. */ ExpressionParser::ExpressionPar...
27.3
107
0.519768
[ "vector" ]
568484361b38e950bd1f3a6c446fee6ce6e0220f
310
cpp
C++
LeetCode/problems/Two Sum/main.cpp
object-oriented-human/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
1
2022-02-21T15:43:01.000Z
2022-02-21T15:43:01.000Z
LeetCode/problems/Two Sum/main.cpp
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
LeetCode/problems/Two Sum/main.cpp
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
class Solution { public: vector<int> twoSum(vector<int>& nums, int target) { map<int, int> M; for (int i = 0; i < nums.size(); i++) { int c = target - nums[i]; if (M[c] != 0) return {M[c]-1, i}; M[nums[i]] = i+1; } return {0, 0}; } };
25.833333
55
0.419355
[ "vector" ]
56899a634907736de943f89f88dce0f1ead5827d
1,125
cpp
C++
src/BabylonCpp/src/meshes/simplification/simplification_queue.cpp
sacceus/BabylonCpp
94669cf7cbe3214ec6e905cbf249fa0c9daf6222
[ "Apache-2.0" ]
277
2017-05-18T08:27:10.000Z
2022-03-26T01:31:37.000Z
src/BabylonCpp/src/meshes/simplification/simplification_queue.cpp
sacceus/BabylonCpp
94669cf7cbe3214ec6e905cbf249fa0c9daf6222
[ "Apache-2.0" ]
77
2017-09-03T15:35:02.000Z
2022-03-28T18:47:20.000Z
src/BabylonCpp/src/meshes/simplification/simplification_queue.cpp
sacceus/BabylonCpp
94669cf7cbe3214ec6e905cbf249fa0c9daf6222
[ "Apache-2.0" ]
37
2017-03-30T03:36:24.000Z
2022-01-28T08:28:36.000Z
#include <babylon/meshes/simplification/simplification_queue.h> #include <babylon/meshes/simplification/simplification_settings.h> namespace BABYLON { SimplificationQueue::SimplificationQueue() : running{false} { } SimplificationQueue::~SimplificationQueue() = default; void SimplificationQueue::addTask...
23.93617
81
0.703111
[ "mesh" ]
568f2a387f89bffddacea577990aca979fce92f6
1,415
cpp
C++
Source/PraticeActor/CLobbyPC.cpp
CitrusNyamNyam/Unreal-Portfolio
f5a63fbe796e0531604470767207831b5c523b54
[ "MIT" ]
1
2018-11-25T10:40:10.000Z
2018-11-25T10:40:10.000Z
Source/PraticeActor/CLobbyPC.cpp
CitrusNyamNyam/Unreal-Portfolio
f5a63fbe796e0531604470767207831b5c523b54
[ "MIT" ]
null
null
null
Source/PraticeActor/CLobbyPC.cpp
CitrusNyamNyam/Unreal-Portfolio
f5a63fbe796e0531604470767207831b5c523b54
[ "MIT" ]
null
null
null
// Fill out your copyright notice in the Description page of Project Settings. #include "CLobbyPC.h" #include "CLobby_Widget.h" #include "Sound/SoundCue.h" #include "UserWidget.h" #include "Engine.h" ACLobbyPC::ACLobbyPC() { static ConstructorHelpers::FObjectFinder<USoundCue> battleCue(TEXT("/Game/BGM/BattleGround_C...
26.203704
124
0.759011
[ "object" ]
5697f2f78f6f628bfabe579186e9ecbe1158513d
7,128
cpp
C++
src/infixExpr/ExprTree.cpp
PGZXB/PGBigNumber
a0f128a0b415bd1a63929c55c2f952205c1a59df
[ "MIT" ]
2
2021-10-25T23:56:54.000Z
2022-01-02T06:35:49.000Z
src/infixExpr/ExprTree.cpp
PGZXB/PGBigNumber
a0f128a0b415bd1a63929c55c2f952205c1a59df
[ "MIT" ]
1
2021-11-12T09:03:39.000Z
2021-12-27T02:03:41.000Z
src/infixExpr/ExprTree.cpp
PGZXB/PGBigNumber
a0f128a0b415bd1a63929c55c2f952205c1a59df
[ "MIT" ]
null
null
null
#include "ExprTree.h" using namespace pgbn; using namespace pgbn::infixExpr; PGBN_INFIXEXPR_NAMESPACE_START namespace detail { inline static Value eval(ExprNode * node, bool peval) { return peval ? node->valPromise.get_future().get() : // Wait node->evalCallback(node, false); } static Value ifEl...
30.461538
171
0.618547
[ "vector" ]
569c759bcc9e56821ca7574130362d5923cc8649
16,974
cpp
C++
src/EvaluatorState.cpp
daveshah1/ElasticC
2e28e7fa819573caa43c1e385cf99bf19acd6a60
[ "MIT" ]
18
2018-03-18T20:12:16.000Z
2021-08-13T17:51:07.000Z
src/EvaluatorState.cpp
daveshah1/ElasticC
2e28e7fa819573caa43c1e385cf99bf19acd6a60
[ "MIT" ]
8
2018-03-18T22:09:32.000Z
2018-03-22T20:28:39.000Z
src/EvaluatorState.cpp
daveshah1/ElasticC
2e28e7fa819573caa43c1e385cf99bf19acd6a60
[ "MIT" ]
2
2018-06-26T15:59:53.000Z
2020-10-04T22:24:07.000Z
#include "EvaluatorState.hpp" #include "EvalObject.hpp" #include "Evaluator.hpp" #include "Util.hpp" #include "hdl/HDLCoreDevices.hpp" #include <algorithm> #include <iterator> #include <string> #include <vector> using namespace std; namespace ElasticC { VariableDir::VariableDir(bool _input, bool _output, bool _toplvl)...
36.74026
80
0.668552
[ "vector", "transform" ]
56a5dd1f087e4fefd25d4405479690c3407cd118
22,124
cc
C++
libclingcon/src/propagator.cc
potassco/clingcon
289b80ca4b2f936625bb6e6d35d7c6a4da6e3fd7
[ "MIT" ]
18
2016-07-07T16:22:55.000Z
2021-11-11T21:25:11.000Z
libclingcon/src/propagator.cc
potassco/clingcon
289b80ca4b2f936625bb6e6d35d7c6a4da6e3fd7
[ "MIT" ]
74
2017-05-05T14:03:42.000Z
2022-02-23T09:36:19.000Z
libclingcon/src/propagator.cc
potassco/clingcon
289b80ca4b2f936625bb6e6d35d7c6a4da6e3fd7
[ "MIT" ]
5
2019-06-20T08:49:22.000Z
2021-06-04T16:35:12.000Z
// {{{ MIT License // // Copyright 2020 Roland Kaminski // // 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, copy, mod...
35.341853
143
0.627825
[ "vector", "model" ]
56b7bf0fcbbac9b8ac5d9c42b90ff6028191463e
8,597
cpp
C++
source/Application.cpp
aviktorov/pbr-sandbox-demo
9ee9f87cfd401e5535cc8d8708483cc6c38bc3fa
[ "MIT" ]
null
null
null
source/Application.cpp
aviktorov/pbr-sandbox-demo
9ee9f87cfd401e5535cc8d8708483cc6c38bc3fa
[ "MIT" ]
null
null
null
source/Application.cpp
aviktorov/pbr-sandbox-demo
9ee9f87cfd401e5535cc8d8708483cc6c38bc3fa
[ "MIT" ]
null
null
null
#include "Application.h" #include "IO.h" #include "RenderGraph.h" #include "ResourceManager.h" #include "SwapChain.h" #include "GameModule.h" #include <game/World.h> #include <render/shaders/Compiler.h> #include <render/backend/Driver.h> #include <GLFW/glfw3.h> #include <GLFW/glfw3native.h> #include <glm/gtc/matrix_...
27.378981
169
0.752239
[ "render" ]
56c249119b2b933ba508d87933e1c9d4ab3d4aa5
3,047
cc
C++
hackerrank/algorithms/dynamic-programming/maxsubarray.cc
fdavidcl/problems
a917a0e61fd80be38610e607eb86e6685323baa3
[ "MIT" ]
null
null
null
hackerrank/algorithms/dynamic-programming/maxsubarray.cc
fdavidcl/problems
a917a0e61fd80be38610e607eb86e6685323baa3
[ "MIT" ]
null
null
null
hackerrank/algorithms/dynamic-programming/maxsubarray.cc
fdavidcl/problems
a917a0e61fd80be38610e607eb86e6685323baa3
[ "MIT" ]
null
null
null
// https://www.hackerrank.com/challenges/maxsubarray #include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; // max_subarray_with_last // Retrieves the maximum sum for a contiguous subarray // containing the last element of the array (array[size-1]) int max_su...
25.605042
79
0.629472
[ "vector" ]