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
4d43095614cc3cec15ec32220c075416b80b4334
108,800
cpp
C++
jni/RTKLIB/app/qtapp/rtkplot_qt/plotmain.cpp
wjw164833/RtkGpsForPad
c9fb10c0bc56cfa473582088dbc673c6da2d31be
[ "BSD-2-Clause" ]
2
2022-01-10T06:25:39.000Z
2022-02-25T10:26:39.000Z
jni/RTKLIB/app/qtapp/rtkplot_qt/plotmain.cpp
wjw164833/RtkGpsForPad
c9fb10c0bc56cfa473582088dbc673c6da2d31be
[ "BSD-2-Clause" ]
null
null
null
jni/RTKLIB/app/qtapp/rtkplot_qt/plotmain.cpp
wjw164833/RtkGpsForPad
c9fb10c0bc56cfa473582088dbc673c6da2d31be
[ "BSD-2-Clause" ]
2
2021-12-28T10:16:17.000Z
2022-02-25T10:26:41.000Z
//--------------------------------------------------------------------------- // rtkplot : visualization of solution and obs data ap // // Copyright (C) 2007-2020 by T.TAKASU, All rights reserved. // ported to Qt by Jens Reimann // // options : rtkplot [-t title][-i file][-r][-p path][-x level][file ....
35.485975
190
0.554044
[ "shape" ]
4d46bfd49a3c3aa01912ffa9af9ee2045570ca08
6,031
cpp
C++
rs/test/filter_test.cpp
dymk/rs
b75ab0df5f235ac12ec4da825e6bd6e1fa9e7493
[ "Apache-2.0" ]
19
2017-05-15T08:20:00.000Z
2021-12-03T05:58:32.000Z
rs/test/filter_test.cpp
dymk/rs
b75ab0df5f235ac12ec4da825e6bd6e1fa9e7493
[ "Apache-2.0" ]
null
null
null
rs/test/filter_test.cpp
dymk/rs
b75ab0df5f235ac12ec4da825e6bd6e1fa9e7493
[ "Apache-2.0" ]
3
2018-01-16T18:07:30.000Z
2021-06-30T07:33:44.000Z
// Copyright 2017 Per Grön. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
26.568282
77
0.553142
[ "vector" ]
4d4faa6c457cf7762e169c634ec5d79b80d8728f
17,788
cpp
C++
test/test_general.cpp
gershnik/sys_string
2086bea8b0d4577d512ff99782e1d57fd41504da
[ "BSD-3-Clause" ]
null
null
null
test/test_general.cpp
gershnik/sys_string
2086bea8b0d4577d512ff99782e1d57fd41504da
[ "BSD-3-Clause" ]
null
null
null
test/test_general.cpp
gershnik/sys_string
2086bea8b0d4577d512ff99782e1d57fd41504da
[ "BSD-3-Clause" ]
null
null
null
// // Copyright 2020 Eugene Gershnik // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://github.com/gershnik/sys_string/blob/master/LICENSE // #include <sys_string/sys_string.h> #include <sstream> #include "catch.hpp" using namespace sysstr; sta...
33.753321
122
0.49494
[ "vector" ]
4d54c2835b012544536606b5f812f40c2d217b72
9,061
cpp
C++
tests/storageserver/main.cpp
awstanley/cpp-gamefilesystem
fc06cf5f2b4f873846677f45fa5480a69cdd91df
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2021-07-12T19:25:29.000Z
2021-07-12T19:25:29.000Z
tests/storageserver/main.cpp
awstanley/cpp-gamefilesystem
fc06cf5f2b4f873846677f45fa5480a69cdd91df
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
6
2017-10-16T19:30:25.000Z
2018-10-06T23:55:19.000Z
tests/storageserver/main.cpp
awstanley/cpp-gamefilesystem
fc06cf5f2b4f873846677f45fa5480a69cdd91df
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
3
2017-10-14T10:21:44.000Z
2021-07-12T19:25:39.000Z
// This is a test for the StorageServer component. #include <ReversingSpace/GameFileSystem/StorageServer.hpp> #include <ReversingSpace/GameFileSystem/PlatformFile.hpp> #include <cstring> // strcmp for non-VS builders. #include <fstream> #include <iostream> #include <stdexcept> // Declare this once. using FileType = ...
36.833333
134
0.667807
[ "vector" ]
4d555ddc6ac17d6aa649da93d110e0410b9a7940
1,777
cpp
C++
core/secure_permutation.cpp
mihaitodor/SeComLib
f2652363c736edd875f9e28ad4cfbce72dc7e8fe
[ "Apache-2.0" ]
16
2018-05-14T09:03:44.000Z
2021-08-04T13:31:07.000Z
core/secure_permutation.cpp
mihaitodor/SeComLib
f2652363c736edd875f9e28ad4cfbce72dc7e8fe
[ "Apache-2.0" ]
2
2019-11-17T17:26:33.000Z
2020-01-05T23:40:25.000Z
core/secure_permutation.cpp
mihaitodor/SeComLib
f2652363c736edd875f9e28ad4cfbce72dc7e8fe
[ "Apache-2.0" ]
6
2018-06-13T10:07:29.000Z
2021-04-09T01:51:18.000Z
/* SeComLib Copyright 2012-2013 TU Delft, Information Security & Privacy Lab (http://isplab.tudelft.nl/) Contributors: Inald Lagendijk (R.L.Lagendijk@TUDelft.nl) Mihai Todor (todormihai@gmail.com) Thijs Veugen (P.J.M.Veugen@tudelft.nl) Zekeriya Erkin (z.erkin@tudelft.nl) Licensed under the Apache License, V...
36.265306
161
0.748452
[ "vector" ]
4d58f5384d837209eccb4951099bc9f950a9a663
5,417
cpp
C++
samples/Sandbox/src/Sandbox.cpp
BrotherhoodOfHam/Engine3D
93d75d17d8bb6959e09209ad8f8be86fbdf6fcf9
[ "MIT" ]
null
null
null
samples/Sandbox/src/Sandbox.cpp
BrotherhoodOfHam/Engine3D
93d75d17d8bb6959e09209ad8f8be86fbdf6fcf9
[ "MIT" ]
null
null
null
samples/Sandbox/src/Sandbox.cpp
BrotherhoodOfHam/Engine3D
93d75d17d8bb6959e09209ad8f8be86fbdf6fcf9
[ "MIT" ]
null
null
null
/* Sandbox application source */ #include "Sandbox.h" #include <tscore/debug/log.h> #include <tscore/strings.h> #include "3D/MaterialReader.h" using namespace std; using namespace ts; /////////////////////////////////////////////////////////////////////////////////////////////////////// // Construc...
27.497462
119
0.516891
[ "mesh", "vector", "model", "3d" ]
4d60534d0f537bd9dd74f516760bdda9170f2cd4
12,296
cpp
C++
tests/Unit/IO/Observers/Test_ReductionObserver.cpp
Ambrou/spectre
a819ebbcca607d8af9683db3683bea14bf4ac23c
[ "MIT" ]
null
null
null
tests/Unit/IO/Observers/Test_ReductionObserver.cpp
Ambrou/spectre
a819ebbcca607d8af9683db3683bea14bf4ac23c
[ "MIT" ]
null
null
null
tests/Unit/IO/Observers/Test_ReductionObserver.cpp
Ambrou/spectre
a819ebbcca607d8af9683db3683bea14bf4ac23c
[ "MIT" ]
null
null
null
// Distributed under the MIT License. // See LICENSE.txt for details. #include "Framework/TestingFramework.hpp" #include <cstddef> #include <functional> #include <string> #include <tuple> #include <type_traits> #include <utility> #include <vector> #include "DataStructures/Matrix.hpp" #include "Domain/Structure/Eleme...
48.03125
80
0.609954
[ "vector" ]
4d6355531bdf987b06219f904cc681240e9d8198
1,408
cc
C++
third_party/icu_wrapper/third_party/icu/source/test/fuzzer/locale_fuzzer.cc
dendisuhubdy/CXTPL
586b146c6a68b79a310ba20d133a0ca6211f22cc
[ "MIT" ]
26
2015-04-22T05:25:25.000Z
2020-11-15T11:07:56.000Z
third_party/icu_wrapper/third_party/icu/source/test/fuzzer/locale_fuzzer.cc
dendisuhubdy/CXTPL
586b146c6a68b79a310ba20d133a0ca6211f22cc
[ "MIT" ]
65
2019-09-20T07:25:22.000Z
2020-10-14T14:31:52.000Z
third_party/icu_wrapper/third_party/icu/source/test/fuzzer/locale_fuzzer.cc
dendisuhubdy/CXTPL
586b146c6a68b79a310ba20d133a0ca6211f22cc
[ "MIT" ]
22
2019-09-25T10:11:57.000Z
2020-10-12T10:40:14.000Z
// © 2019 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html // Fuzzer for ICU Locales. #include <algorithm> #include <cstddef> #include <cstdint> #include <cstdlib> #include <string> #include <vector> #include "unicode/locid.h" namespace { void ConsumeNBytes(cons...
28.16
73
0.693892
[ "vector" ]
4d6b97fe6b923948fe4c814ee47e16a06f9c6452
517
cpp
C++
codetop/Leetcode300.cpp
Aged-cat/interview_codehub
0d915934a8d89a10943ef3e0ba8e528948433578
[ "MIT" ]
2
2021-09-06T06:47:34.000Z
2022-02-21T04:43:23.000Z
codetop/Leetcode300.cpp
Aged-cat/interview_codehub
0d915934a8d89a10943ef3e0ba8e528948433578
[ "MIT" ]
null
null
null
codetop/Leetcode300.cpp
Aged-cat/interview_codehub
0d915934a8d89a10943ef3e0ba8e528948433578
[ "MIT" ]
null
null
null
#include<iostream> #include<vector> #include<algorithm> using namespace std; int lengthOfLIS(vector<int>&nums) { vector<int>dp(nums.size(),1); for(int i=0;i<nums.size();++i) { for(int j=0;j<i;++j) { if(nums[i]>nums[j]) { dp[i]=max(dp[i],dp[j]+1); ...
19.148148
45
0.497099
[ "vector" ]
4d6c8c26c50e5473312930409629eee8d8e8bac1
14,567
cpp
C++
emulator/src/osd/modules/sound/direct_sound.cpp
rjw57/tiw-computer
5ef1c79893165b8622d1114d81cd0cded58910f0
[ "MIT" ]
1
2022-01-15T21:38:38.000Z
2022-01-15T21:38:38.000Z
emulator/src/osd/modules/sound/direct_sound.cpp
rjw57/tiw-computer
5ef1c79893165b8622d1114d81cd0cded58910f0
[ "MIT" ]
null
null
null
emulator/src/osd/modules/sound/direct_sound.cpp
rjw57/tiw-computer
5ef1c79893165b8622d1114d81cd0cded58910f0
[ "MIT" ]
null
null
null
// license:BSD-3-Clause // copyright-holders:Aaron Giles //============================================================ // // sound.c - Win32 implementation of MAME sound routines // //============================================================ #include "sound_module.h" #include "modules/osdmodule.h" #if defined(OS...
25.919929
183
0.653532
[ "object" ]
4d6d1852c0c2e8513beec97ebb531f3370d3561d
5,086
cpp
C++
openstudiocore/src/plugin/ExternalModelInterface.cpp
bobzabcik/OpenStudio
858321dc0ad8d572de15858d2ae487b029a8d847
[ "blessing" ]
null
null
null
openstudiocore/src/plugin/ExternalModelInterface.cpp
bobzabcik/OpenStudio
858321dc0ad8d572de15858d2ae487b029a8d847
[ "blessing" ]
null
null
null
openstudiocore/src/plugin/ExternalModelInterface.cpp
bobzabcik/OpenStudio
858321dc0ad8d572de15858d2ae487b029a8d847
[ "blessing" ]
null
null
null
/********************************************************************** * Copyright (c) 2008-2013, Alliance for Sustainable Energy. * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as publishe...
41.688525
359
0.73024
[ "model" ]
4d704866c83ae6435ffa2e5ff782b483f735433e
5,879
cpp
C++
gpu/cuda/cuda.cpp
kanhavishva/parcrypt
1186bd1c3498086cedd7cf3bf599489856556035
[ "MIT" ]
5
2022-02-20T14:31:09.000Z
2022-03-04T20:17:12.000Z
gpu/cuda/cuda.cpp
kanhavishva/parcrypt
1186bd1c3498086cedd7cf3bf599489856556035
[ "MIT" ]
5
2022-02-23T03:57:49.000Z
2022-03-28T10:40:41.000Z
gpu/cuda/cuda.cpp
brichard19/parcrypt
c24a363aa061b1cffa88c5950408c9c810d88a3d
[ "MIT" ]
5
2022-02-20T14:31:02.000Z
2022-02-21T16:50:22.000Z
#include "gpulib_cuda.h" static bool _cuda_initialized = false; void cu_call(CUresult err) { if(err != CUDA_SUCCESS) { throw gpulib::Exception("CUDA error: " + std::to_string(err)); } } static void initialize_cuda() { if(!_cuda_initialized) { cu_call(cuInit(0)); ...
24.495833
165
0.643137
[ "vector" ]
4d717127936e8c683ee5632ad1eb31b11be209fc
1,443
cc
C++
src/tags/IfTag.cc
jdavidberger/stencet
092dfabe395c46efdd74504050f83aa38d1b2c87
[ "MIT" ]
null
null
null
src/tags/IfTag.cc
jdavidberger/stencet
092dfabe395c46efdd74504050f83aa38d1b2c87
[ "MIT" ]
null
null
null
src/tags/IfTag.cc
jdavidberger/stencet
092dfabe395c46efdd74504050f83aa38d1b2c87
[ "MIT" ]
null
null
null
/* Copyright (C) 2012-2013 Justin Berger The full license is available in the LICENSE file at the root of this project and is also available at http://opensource.org/licenses/MIT. */ #include <mxcomp/use.h> #include <stencet/tags/IfTag.h> #include <string.h> namespace stencet { void IfTag::render(std::ostream...
26.722222
144
0.587665
[ "render" ]
4d7327007445799d64bebe9eef0c0bbfe5fd3add
9,356
cpp
C++
ros2/src/cinematography/src/debug_viz.cpp
nightduck/AirSim
2ba7124ceff7607f23463f483cd3e2cbe026d0ca
[ "MIT" ]
null
null
null
ros2/src/cinematography/src/debug_viz.cpp
nightduck/AirSim
2ba7124ceff7607f23463f483cd3e2cbe026d0ca
[ "MIT" ]
14
2021-02-25T22:32:34.000Z
2021-08-20T17:17:12.000Z
ros2/src/cinematography/src/debug_viz.cpp
nightduck/AirSim
2ba7124ceff7607f23463f483cd3e2cbe026d0ca
[ "MIT" ]
null
null
null
#include "rclcpp/rclcpp.hpp" #include <boost/make_shared.hpp> #include "builtin_interfaces/msg/time.hpp" #include "cinematography_msgs/msg/multi_do_farray.hpp" #include "cinematography_msgs/msg/vision_measurements.hpp" #include "sensor_msgs/msg/image.hpp" #include "sensor_msgs/msg/point_cloud2.hpp" #include "geometry_m...
41.39823
116
0.633177
[ "vector" ]
4d747b9d815feed11fea09bf93bc999c801f2987
5,965
cpp
C++
external/swak/libraries/swakTopoSources/expressionToFace.cpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
external/swak/libraries/swakTopoSources/expressionToFace.cpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
external/swak/libraries/swakTopoSources/expressionToFace.cpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
/*---------------------------------------------------------------------------*\ Copyright: ICE Stroemungsfoschungs GmbH Copyright held by original author ------------------------------------------------------------------------------- License This file is based on CAELUS. CAELUS is free software: you can redi...
27.488479
104
0.563621
[ "mesh" ]
4d74e489c40a048776cb1659ba7aa4749acfac8c
7,751
cpp
C++
Core/Terrain/Fragment.cpp
marci07iq/SpaceCube
464bc3fa1090bed273bcaa3257aebeacc4e8d3b0
[ "MIT" ]
2
2019-11-05T14:48:34.000Z
2019-11-05T14:49:30.000Z
Core/Terrain/Fragment.cpp
marci07iq/SpaceCube
464bc3fa1090bed273bcaa3257aebeacc4e8d3b0
[ "MIT" ]
null
null
null
Core/Terrain/Fragment.cpp
marci07iq/SpaceCube
464bc3fa1090bed273bcaa3257aebeacc4e8d3b0
[ "MIT" ]
null
null
null
#include "WorldLoader.h" Fragment::Fragment(int fx, int fy, int dim) : _fx(fx), _fy(fy) { _dim = dim; for (int i = 0; i < 4; i++) { _neigh[i] = NULL; } for (int i = 0; i < COLUMN_PER_FRAGMENT; i++) { for (int j = 0; j < COLUMN_PER_FRAGMENT; j++) { _cols[i][j] = NULL; } } } void Fragmen...
27.981949
163
0.583151
[ "vector" ]
4d80a0ffcf7891a9293f46b1645e36f9ed2ddb02
13,946
cpp
C++
Code/Engine/WindowsMixedReality/HolographicSpace.cpp
fereeh/ezEngine
14e46cb2a1492812888602796db7ddd66e2b7110
[ "MIT" ]
1
2021-06-23T14:44:02.000Z
2021-06-23T14:44:02.000Z
Code/Engine/WindowsMixedReality/HolographicSpace.cpp
fereeh/ezEngine
14e46cb2a1492812888602796db7ddd66e2b7110
[ "MIT" ]
null
null
null
Code/Engine/WindowsMixedReality/HolographicSpace.cpp
fereeh/ezEngine
14e46cb2a1492812888602796db7ddd66e2b7110
[ "MIT" ]
null
null
null
#includde <WindowsMixedRealityPCH.h> #include <WindowsMixedReality/HolographicSpace.h> #include <WindowsMixedReality/SpatialLocationService.h> #include <WindowsMixedReality/SpatialReferenceFrame.h> #include <WindowsMixedReality/Graphics/MixedRealityCamera.h> #include <Foundation/Configuration/CVar.h> //#include <GameE...
36.796834
208
0.777284
[ "vector", "transform" ]
4d85ee10c9f347b7fd33b34c83811a3b6520359a
748
cpp
C++
1001-1100/1019-Next Greater Node In Linked List/1019-Next Greater Node In Linked List.cpp
jiadaizhao/LeetCode
4ddea0a532fe7c5d053ffbd6870174ec99fc2d60
[ "MIT" ]
49
2018-05-05T02:53:10.000Z
2022-03-30T12:08:09.000Z
1001-1100/1019-Next Greater Node In Linked List/1019-Next Greater Node In Linked List.cpp
jolly-fellow/LeetCode
ab20b3ec137ed05fad1edda1c30db04ab355486f
[ "MIT" ]
11
2017-12-15T22:31:44.000Z
2020-10-02T12:42:49.000Z
1001-1100/1019-Next Greater Node In Linked List/1019-Next Greater Node In Linked List.cpp
jolly-fellow/LeetCode
ab20b3ec137ed05fad1edda1c30db04ab355486f
[ "MIT" ]
28
2017-12-05T10:56:51.000Z
2022-01-26T18:18:27.000Z
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: vector<int> nextLargerNodes(ListNode* head) { vector<int> vals; while (head) { vals.push_back(head->val)...
22.666667
56
0.42246
[ "vector" ]
4d85fed07128dfac25c277790cbe1b3094db76ba
913
cpp
C++
nav/attitude.cpp
tussedrotten/sensor-fusion-example
fa1c21e0c5dd8387bc67773a1343f1bf1e0f676a
[ "BSD-3-Clause" ]
1
2021-04-23T10:00:02.000Z
2021-04-23T10:00:02.000Z
nav/attitude.cpp
tussedrotten/sensor-fusion-example
fa1c21e0c5dd8387bc67773a1343f1bf1e0f676a
[ "BSD-3-Clause" ]
null
null
null
nav/attitude.cpp
tussedrotten/sensor-fusion-example
fa1c21e0c5dd8387bc67773a1343f1bf1e0f676a
[ "BSD-3-Clause" ]
1
2021-10-04T12:40:47.000Z
2021-10-04T12:40:47.000Z
#include "attitude.h" #include "Eigen/Geometry" namespace nav { Attitude::Attitude() : x_rot{} , y_rot{} , z_rot{} { } Attitude::Attitude(double x_angle, double y_angle, double z_angle) : x_rot{x_angle} , y_rot{y_angle} , z_rot{z_angle} { } Eigen::Quaterniond Attitude::toQuaternion() const {...
14.492063
66
0.656079
[ "geometry" ]
4d9a0be2049c0b3e753d7ef6b00d3dcb332e69ac
12,650
cxx
C++
alg/teca_valid_value_mask.cxx
LBL-EESA/TECA
63923b8a12914f3758dc9525239bc48cd8864b39
[ "BSD-3-Clause-LBNL" ]
34
2017-03-28T14:22:25.000Z
2022-01-23T05:02:25.000Z
alg/teca_valid_value_mask.cxx
LBL-EESA/TECA
63923b8a12914f3758dc9525239bc48cd8864b39
[ "BSD-3-Clause-LBNL" ]
476
2016-11-28T18:06:06.000Z
2022-01-25T05:31:42.000Z
alg/teca_valid_value_mask.cxx
LBL-EESA/TECA
63923b8a12914f3758dc9525239bc48cd8864b39
[ "BSD-3-Clause-LBNL" ]
19
2017-04-25T18:15:04.000Z
2020-11-28T18:16:05.000Z
#include "teca_valid_value_mask.h" #include "teca_mesh.h" #include "teca_array_collection.h" #include "teca_variant_array.h" #include "teca_metadata.h" #include "teca_array_attributes.h" #include "teca_coordinate_util.h" #include "teca_mpi.h" #include <algorithm> #include <iostream> #include <string> #include <set> #...
30.853659
93
0.555178
[ "mesh", "vector" ]
4da14ea2ed9d3a251e209a9bf114cc7e50563afe
2,886
cpp
C++
CODEJAM/2014/ROUND1A/b.cpp
henviso/contests
aa8a5ce9ed4524e6c3130ee73af7640e5a86954c
[ "Apache-2.0" ]
null
null
null
CODEJAM/2014/ROUND1A/b.cpp
henviso/contests
aa8a5ce9ed4524e6c3130ee73af7640e5a86954c
[ "Apache-2.0" ]
null
null
null
CODEJAM/2014/ROUND1A/b.cpp
henviso/contests
aa8a5ce9ed4524e6c3130ee73af7640e5a86954c
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <cstdio> #include <string> #include <cstring> #include <cstdlib> #include <stack> #include <algorithm> #include <cctype> #include <vector> #include <queue> #include <tr1/unordered_map> #include <cmath> #include <map> #include <bitset> #include <set> using namespace std; typedef long long ll...
24.87931
111
0.505544
[ "vector" ]
4da99f3ef88253e8da444a793a3fb536b64d1666
2,934
hpp
C++
Classes/c2xa/object/player.hpp
JAG-SC/c2xa-osc-app
33a0676af1c726a71690383242b3c431a18cf265
[ "BSD-2-Clause" ]
1
2015-10-24T14:31:54.000Z
2015-10-24T14:31:54.000Z
Classes/c2xa/object/player.hpp
JAG-SC/c2xa-osc-app
33a0676af1c726a71690383242b3c431a18cf265
[ "BSD-2-Clause" ]
null
null
null
Classes/c2xa/object/player.hpp
JAG-SC/c2xa-osc-app
33a0676af1c726a71690383242b3c431a18cf265
[ "BSD-2-Clause" ]
null
null
null
/************************************************************************************//** @file c2xa/object/player.hpp @author 新ゝ月(NewNotMoon) @date created on 2015/08/29 ****************************************************************************************/ #ifndef C2XA_OBJECT_PLAYER_HPP #defin...
29.049505
120
0.402863
[ "object" ]
4db162bac991c93671910ecc83faae540461200b
4,989
hpp
C++
src/OpenSimBindings/UiModel.hpp
ComputationalBiomechanicsLab/opensim-creator
e5c4b24f5ef3bffe10c84899d0a0c79037020b6d
[ "Apache-2.0" ]
5
2021-07-13T12:03:29.000Z
2021-12-22T20:21:58.000Z
src/OpenSimBindings/UiModel.hpp
ComputationalBiomechanicsLab/opensim-creator
e5c4b24f5ef3bffe10c84899d0a0c79037020b6d
[ "Apache-2.0" ]
180
2022-01-27T15:25:15.000Z
2022-03-30T13:41:12.000Z
src/OpenSimBindings/UiModel.hpp
ComputationalBiomechanicsLab/opensim-creator
e5c4b24f5ef3bffe10c84899d0a0c79037020b6d
[ "Apache-2.0" ]
null
null
null
#pragma once #include "src/3D/BVH.hpp" #include "src/OpenSimBindings/RenderableScene.hpp" #include <nonstd/span.hpp> #include <chrono> #include <memory> #include <string> #include <unordered_map> namespace OpenSim { class Model; class Coordinate; } namespace SimTK { class State; } namespace osc { ...
30.796296
119
0.634195
[ "vector", "model", "3d" ]
4db51fdd01e6502d4db7a9c0d30fda921cc1b5d5
1,758
cpp
C++
Source/App/main.cpp
LavenSun/IlumEngine
94841e56af3c5214f04e7a94cb7369f4935c5788
[ "MIT" ]
1
2021-11-20T15:39:09.000Z
2021-11-20T15:39:09.000Z
Source/App/main.cpp
LavenSun/IlumEngine
94841e56af3c5214f04e7a94cb7369f4935c5788
[ "MIT" ]
null
null
null
Source/App/main.cpp
LavenSun/IlumEngine
94841e56af3c5214f04e7a94cb7369f4935c5788
[ "MIT" ]
null
null
null
#include <Ilum/Device/PhysicalDevice.hpp> #include <Ilum/Device/Window.hpp> #include <Ilum/Editor/Editor.hpp> #include <Ilum/Engine/Context.hpp> #include <Ilum/Engine/Engine.hpp> #include <Ilum/Graphics/GraphicsContext.hpp> #include <Ilum/Renderer/RenderPass/BloomPass.hpp> #include <Ilum/Renderer/RenderPass/GeometryPas...
36.625
188
0.726962
[ "transform" ]
4db536bd88c79a445a1c8bdac295e5fd8c0d8acf
7,894
cpp
C++
src/http/server.cpp
anand-gs/cplusplus
97f9115df1920c811531b053fc8b9fc9b1ad2ed2
[ "MIT" ]
null
null
null
src/http/server.cpp
anand-gs/cplusplus
97f9115df1920c811531b053fc8b9fc9b1ad2ed2
[ "MIT" ]
null
null
null
src/http/server.cpp
anand-gs/cplusplus
97f9115df1920c811531b053fc8b9fc9b1ad2ed2
[ "MIT" ]
null
null
null
////////////////////////////////////////////////////// // // server.cpp // ////////////////////////////////////////////////////// /* LICENSE: BEGIN =============================================================================== @author Shan Anand @email anand.gs@gmail.com @source https://github.com/shan-anand @brief H...
29.455224
185
0.663922
[ "object" ]
4dbf4d4dcb0268401ede6eee65616df810d0bdd9
24,302
cc
C++
tensorflow/core/framework/tensor_slice.pb.cc
1250281649/tensorflow
fc6f4ec813c3514fc4a4c6a078f3f492b3ff325c
[ "Apache-2.0" ]
null
null
null
tensorflow/core/framework/tensor_slice.pb.cc
1250281649/tensorflow
fc6f4ec813c3514fc4a4c6a078f3f492b3ff325c
[ "Apache-2.0" ]
2
2021-08-25T15:57:35.000Z
2022-02-10T01:09:32.000Z
tensorflow/core/framework/tensor_slice.pb.cc
1250281649/tensorflow
fc6f4ec813c3514fc4a4c6a078f3f492b3ff325c
[ "Apache-2.0" ]
null
null
null
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/tensor_slice.proto #include "tensorflow/core/framework/tensor_slice.pb.h" #include <algorithm> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/extension_set.h> #include <google/protobuf/wire_format...
40.168595
251
0.771624
[ "object" ]
4dc08bd40a9ddd40b5a5818ea68becdb1fa071d8
1,771
cpp
C++
HDUOJ/6319/monotonic_queue.cpp
codgician/ACM
391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4
[ "MIT" ]
2
2018-02-14T01:59:31.000Z
2018-03-28T03:30:45.000Z
HDUOJ/6319/monotonic_queue.cpp
codgician/ACM
391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4
[ "MIT" ]
null
null
null
HDUOJ/6319/monotonic_queue.cpp
codgician/ACM
391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4
[ "MIT" ]
2
2017-12-30T02:46:35.000Z
2018-03-28T03:30:49.000Z
#include <iostream> #include <cstdio> #include <algorithm> #include <cmath> #include <string> #include <cstring> #include <iomanip> #include <climits> #include <stack> #include <queue> #include <vector> #include <set> #include <map> #include <functional> #include <iterator> using namespace std; #define SIZE 10010000 ...
18.642105
67
0.504235
[ "vector" ]
4dc85b3cb716c095998bd4855bdedc898fd394db
1,843
cpp
C++
out/production/leetcode/io/github/zhengyhn/leetcode/insert_interval/insert-interval.cpp
zhengyhn/leetcode
2e5e618dd7c964c8e983b187c6b1762cbe1764de
[ "MIT" ]
null
null
null
out/production/leetcode/io/github/zhengyhn/leetcode/insert_interval/insert-interval.cpp
zhengyhn/leetcode
2e5e618dd7c964c8e983b187c6b1762cbe1764de
[ "MIT" ]
null
null
null
out/production/leetcode/io/github/zhengyhn/leetcode/insert_interval/insert-interval.cpp
zhengyhn/leetcode
2e5e618dd7c964c8e983b187c6b1762cbe1764de
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using namespace std; class Solution { public: vector<vector<int>> insert(vector<vector<int>>& intervals, vector<int>& newInterval) { if (intervals.size() <= 0) { intervals.push_back(newInterval); return intervals; } vector<v...
23.0375
63
0.510581
[ "vector" ]
4dd444f822f64205ae905b02c40dd6e96aa852a1
2,046
hpp
C++
Source/AllProjects/Utilities/CIDDocComp/CIDDocComp.hpp
eudora-jia/CIDLib
02795d283d95f8a5a4fafa401b6189851901b81b
[ "MIT" ]
1
2019-05-28T06:33:01.000Z
2019-05-28T06:33:01.000Z
Source/AllProjects/Utilities/CIDDocComp/CIDDocComp.hpp
eudora-jia/CIDLib
02795d283d95f8a5a4fafa401b6189851901b81b
[ "MIT" ]
null
null
null
Source/AllProjects/Utilities/CIDDocComp/CIDDocComp.hpp
eudora-jia/CIDLib
02795d283d95f8a5a4fafa401b6189851901b81b
[ "MIT" ]
null
null
null
// // FILE NAME: CIDDocComp.hpp // // AUTHOR: Dean Roddey // // CREATED: 06/10/1997 // // COPYRIGHT: Charmed Quark Systems, Ltd @ 2019 // // This software is copyrighted by 'Charmed Quark Systems, Ltd' and // the author (Dean Roddey.) It is licensed under the MIT Open Source // license: // // https://opensource.org...
31.96875
83
0.551808
[ "object" ]
4ddcac3607d5c6202b58457242fcad15755291fc
7,125
hpp
C++
silkrpc/commands/eth_api.hpp
enriavil1/silkrpc
1fa2109658d4c89b6cfdd5190d919bd1324f367e
[ "Apache-2.0" ]
null
null
null
silkrpc/commands/eth_api.hpp
enriavil1/silkrpc
1fa2109658d4c89b6cfdd5190d919bd1324f367e
[ "Apache-2.0" ]
null
null
null
silkrpc/commands/eth_api.hpp
enriavil1/silkrpc
1fa2109658d4c89b6cfdd5190d919bd1324f367e
[ "Apache-2.0" ]
null
null
null
/* Copyright 2020 The Silkrpc Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed t...
62.5
157
0.775018
[ "vector" ]
4ddcf6c7547529e0d43a90eea1b759a0c7e34543
7,808
cc
C++
src/tracker2.cc
klantz81/multitouch-software
5cba71d82c68f3d75b8716a8be40a7f10dd741af
[ "MIT" ]
null
null
null
src/tracker2.cc
klantz81/multitouch-software
5cba71d82c68f3d75b8716a8be40a7f10dd741af
[ "MIT" ]
null
null
null
src/tracker2.cc
klantz81/multitouch-software
5cba71d82c68f3d75b8716a8be40a7f10dd741af
[ "MIT" ]
null
null
null
#include "tracker2.h" cTracker2::cTracker2(double min_area, double max_radius, int screen_width, int screen_height, double scale_x, double scale_y) : min_area(min_area), max_radius(max_radius), screen_width(screen_width), screen_height(screen_height), scale_x(scale_x), scale_y(scale_y), labels(NULL), id_index(0), c...
32.131687
152
0.612833
[ "vector" ]
4de11d9cfee670a893c78f67eead12529978a01e
441
cpp
C++
examples/data_distribution/heatmap/heatmap_4.cpp
kurogane1031/matplotplusplus
44d21156edba8effe1e764a8642b0b70590d597b
[ "MIT" ]
2
2020-09-02T14:02:26.000Z
2020-10-28T07:00:44.000Z
examples/data_distribution/heatmap/heatmap_4.cpp
kurogane1031/matplotplusplus
44d21156edba8effe1e764a8642b0b70590d597b
[ "MIT" ]
null
null
null
examples/data_distribution/heatmap/heatmap_4.cpp
kurogane1031/matplotplusplus
44d21156edba8effe1e764a8642b0b70590d597b
[ "MIT" ]
2
2020-09-01T16:22:07.000Z
2020-09-02T14:02:27.000Z
#include <matplot/matplot.h> int main() { using namespace matplot; std::vector<std::vector<double>> data = {{45,60,32}, {43,54,76}, {32,94,68}, {23,95,58}}; heatmap(data); title("T-Shirt Orders"); auto ax = gca(); ax->x_axis().ticklabels({"Small", "Medium", "Large"}); ax->y_axis().ticklabe...
25.941176
93
0.555556
[ "vector" ]
4e2c6c802f56498792e452a366c9510e33bcce55
36,104
cc
C++
lib/spot-2.8.1/spot/twaalgos/totgba.cc
AlessandroCaste/SynkrisisJupyter
a9c2b21ec1ae7ac0c05ef5deebc63a369274650f
[ "Unlicense" ]
null
null
null
lib/spot-2.8.1/spot/twaalgos/totgba.cc
AlessandroCaste/SynkrisisJupyter
a9c2b21ec1ae7ac0c05ef5deebc63a369274650f
[ "Unlicense" ]
null
null
null
lib/spot-2.8.1/spot/twaalgos/totgba.cc
AlessandroCaste/SynkrisisJupyter
a9c2b21ec1ae7ac0c05ef5deebc63a369274650f
[ "Unlicense" ]
null
null
null
// -*- coding: utf-8 -*- // Copyright (C) 2015-2018 Laboratoire de Recherche et Développement // de l'Epita. // // This file is part of Spot, a model checking library. // // Spot 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 S...
34.2868
80
0.503905
[ "vector", "model" ]
4e2ce9c9016d708adf46e8fe6b9bf470bc38d344
2,163
cpp
C++
tsp.cpp
tanutarou/TSP-Solver
6170fcf99785163b2314b5cc6d00524067fed242
[ "MIT" ]
null
null
null
tsp.cpp
tanutarou/TSP-Solver
6170fcf99785163b2314b5cc6d00524067fed242
[ "MIT" ]
null
null
null
tsp.cpp
tanutarou/TSP-Solver
6170fcf99785163b2314b5cc6d00524067fed242
[ "MIT" ]
null
null
null
#include <iostream> #include <cstdio> #include <map> #include <string> #include <vector> #include <bits/stdc++.h> const long long INF = 1000000000ll; std::pair<double, std::vector<int>> memo[20][1<<20]; class TSP{ public: int n; double w[1000][1000]; std::vector<int> ans; double opt; TSP(int N){ n = N...
16.51145
65
0.49006
[ "vector" ]
4e2ebba5d3bf79e7d32da1a7eed35afbc91e0555
18,357
cpp
C++
routing/arouterex/src/parser/ParserIspd08.cpp
rbarzic/MAGICAL
0510550b263913f8c62f46662a9dfa2ae94d2386
[ "BSD-3-Clause" ]
null
null
null
routing/arouterex/src/parser/ParserIspd08.cpp
rbarzic/MAGICAL
0510550b263913f8c62f46662a9dfa2ae94d2386
[ "BSD-3-Clause" ]
null
null
null
routing/arouterex/src/parser/ParserIspd08.cpp
rbarzic/MAGICAL
0510550b263913f8c62f46662a9dfa2ae94d2386
[ "BSD-3-Clause" ]
null
null
null
#include "ParserIspd08.h" PROJECT_NAMESPACE_BEGIN bool ParserIspd08::read() { _benchmark = 0; // Read in the benchmark file if (!readFile()) { return false; } // Translate the database if (!trans2DB()) { return false; } return true; } bool ParserIspd08::readPin...
32.036649
155
0.548129
[ "shape", "vector", "3d" ]
4e4946512bba8a80d1b37f4368789ff8e895336e
2,696
cpp
C++
src/libraries/lagrangian/intermediate/submodels/addOns/radiation/scatter/cloudScatter/cloudScatter.cpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
src/libraries/lagrangian/intermediate/submodels/addOns/radiation/scatter/cloudScatter/cloudScatter.cpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
src/libraries/lagrangian/intermediate/submodels/addOns/radiation/scatter/cloudScatter/cloudScatter.cpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
/*---------------------------------------------------------------------------*\ Copyright (C) 2011 OpenFOAM Foundation ------------------------------------------------------------------------------- License This file is part of CAELUS. CAELUS is free software: you can redistribute it and/or modify it under...
26.431373
79
0.490727
[ "mesh" ]
4e4d8315cb4be32a942c8745b8c8606333bc40c9
14,654
cpp
C++
src/main.cpp
rubyrio12/Azul-Board-Game
a8479a60cb76e2cd1660d6380ccdf6c283c49510
[ "MIT" ]
null
null
null
src/main.cpp
rubyrio12/Azul-Board-Game
a8479a60cb76e2cd1660d6380ccdf6c283c49510
[ "MIT" ]
null
null
null
src/main.cpp
rubyrio12/Azul-Board-Game
a8479a60cb76e2cd1660d6380ccdf6c283c49510
[ "MIT" ]
null
null
null
#include <iostream> #include <limits> #include <vector> #include <string> #include <fstream> #include <cstring> #include <errno.h> #include <limits.h> #include "Types.h" #include "Game.h" #include "AdvancedGame.h" #include "Player.h" #include "AdvancedPlayer.h" #include "utils.h" #include "Score.h" [[noreturn]] void ...
26.987109
101
0.503412
[ "object", "vector" ]
4e52dec06606bdcc03898208872fb10783563a5e
7,474
cpp
C++
libbitcoin/test/oldtests/hmac512.cpp
mousewu/bcclient
64ee1f6f8337103d40a4a0c3dfb73cabcd09a04c
[ "MIT" ]
8
2019-05-31T01:37:08.000Z
2021-10-19T05:52:45.000Z
libbitcoin/test/oldtests/hmac512.cpp
mousewu/bcclient
64ee1f6f8337103d40a4a0c3dfb73cabcd09a04c
[ "MIT" ]
3
2017-12-18T17:27:09.000Z
2018-01-15T16:50:05.000Z
libbitcoin/test/oldtests/hmac512.cpp
mousewu/bcclient
64ee1f6f8337103d40a4a0c3dfb73cabcd09a04c
[ "MIT" ]
5
2018-01-09T15:05:55.000Z
2020-12-17T13:27:25.000Z
/* * Copyright (c) 2011-2013 libbitcoin developers (see AUTHORS) * * This file is part of libbitcoin. * * libbitcoin is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License with * additional permissions to the one published by the Free Software * Fou...
35.760766
194
0.701231
[ "transform" ]
4e565b92c2a3f38f0d66c4e458ede8d31b65be2b
23,433
cpp
C++
fprime-zmq/zmq-radio/ZmqRadioComponentImpl.cpp
genemerewether/fprime
fcdd071b5ddffe54ade098ca5d451903daba9eed
[ "Apache-2.0" ]
5
2019-10-22T03:41:02.000Z
2022-01-16T12:48:31.000Z
fprime-zmq/zmq-radio/ZmqRadioComponentImpl.cpp
JPLOpenSource/fprime-sw-Rel1.0
18364596c24fa369c938ef8758e5aa945ecc6a9b
[ "Apache-2.0" ]
27
2019-02-07T17:58:58.000Z
2019-08-13T00:46:24.000Z
fprime-zmq/zmq-radio/ZmqRadioComponentImpl.cpp
JPLOpenSource/fprime-sw-Rel1.0
18364596c24fa369c938ef8758e5aa945ecc6a9b
[ "Apache-2.0" ]
3
2019-01-01T18:44:37.000Z
2019-08-01T01:19:39.000Z
// ====================================================================== // \title ZmqRadioComponentImpl.cpp // \author dkooi // \brief cpp file for ZmqRadio implementation class. // // \copyright // Copyright 2009-2015, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sp...
31.453691
143
0.648615
[ "object" ]
4e571eb1f0fe0f9b37c674479bbbd06dacbad49f
12,721
cpp
C++
plugins/UserMgr/src/LogonUser.cpp
andry81/nsisplus--NsisSetupDev
9ec6d90cf5100bc2ea9a0aabe841d2119a308e4a
[ "MIT" ]
null
null
null
plugins/UserMgr/src/LogonUser.cpp
andry81/nsisplus--NsisSetupDev
9ec6d90cf5100bc2ea9a0aabe841d2119a308e4a
[ "MIT" ]
null
null
null
plugins/UserMgr/src/LogonUser.cpp
andry81/nsisplus--NsisSetupDev
9ec6d90cf5100bc2ea9a0aabe841d2119a308e4a
[ "MIT" ]
null
null
null
#include "LogonUser.hpp" #include "nsis_tchar.h" #include "UserMgr.h" #include <stdint.h> #include <list> #include <algorithm> #include <boost/functional/hash.hpp> class LogonAsyncRequestParams { public: std::string remote; std::string user; std::string pass; LogonAsyncRequestParams(const std...
30.073286
183
0.725729
[ "object" ]
4e5c3e5741739e62fb33ee3a3ff84cec57810099
28,686
cpp
C++
Sources/Internal/Render/RenderHelper.cpp
stinvi/dava.engine
2b396ca49cdf10cdc98ad8a9ffcf7768a05e285e
[ "BSD-3-Clause" ]
26
2018-09-03T08:48:22.000Z
2022-02-14T05:14:50.000Z
Sources/Internal/Render/RenderHelper.cpp
ANHELL-blitz/dava.engine
ed83624326f000866e29166c7f4cccfed1bb41d4
[ "BSD-3-Clause" ]
null
null
null
Sources/Internal/Render/RenderHelper.cpp
ANHELL-blitz/dava.engine
ed83624326f000866e29166c7f4cccfed1bb41d4
[ "BSD-3-Clause" ]
45
2018-05-11T06:47:17.000Z
2022-02-03T11:30:55.000Z
#include "Render/Renderer.h" #include "Render/RenderHelper.h" #include "Render/Highlevel/RenderPassNames.h" #include "Render/DynamicBufferAllocator.h" #include "Material/NMaterial.h" #include "Debug/ProfilerGPU.h" const DAVA::float32 ISO_X = 0.525731f; const DAVA::float32 ISO_Z = 0.850650f; std::array<DAVA::Vector3,...
37.744737
175
0.666841
[ "render" ]
4e5e4ecae7fc74668c378b7c090e6c0eef8bd812
4,949
cpp
C++
DiagramEditor/DiagramMenu.cpp
pmachapman/Tulip
54f7bc3e8d5bb452ed8de6e6622e23d5e9be650a
[ "Unlicense" ]
null
null
null
DiagramEditor/DiagramMenu.cpp
pmachapman/Tulip
54f7bc3e8d5bb452ed8de6e6622e23d5e9be650a
[ "Unlicense" ]
33
2018-09-14T21:58:20.000Z
2022-01-12T21:39:22.000Z
DiagramEditor/DiagramMenu.cpp
pmachapman/Tulip
54f7bc3e8d5bb452ed8de6e6622e23d5e9be650a
[ "Unlicense" ]
null
null
null
/* ========================================================================== Class : CDiagramMenu Author : Johan Rosengren, Abstrakt Mekanik AB Date : 2004-03-30 Purpose : "CDiagramMenu" is a simple class to allow easy customization of the popup menu of the "CDiagramEditor" without deriving a ne...
30.176829
98
0.615478
[ "object" ]
4e5f18defea4f8a8aa642015b557eee8721e3c43
1,062
cpp
C++
codeforces/GYM/vitalyAndCycle.cpp
GinugaSaketh/Codes
e934aa5652dd86231a42e3f7f84b145eb35bf47d
[ "MIT" ]
null
null
null
codeforces/GYM/vitalyAndCycle.cpp
GinugaSaketh/Codes
e934aa5652dd86231a42e3f7f84b145eb35bf47d
[ "MIT" ]
null
null
null
codeforces/GYM/vitalyAndCycle.cpp
GinugaSaketh/Codes
e934aa5652dd86231a42e3f7f84b145eb35bf47d
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; vector<vector<int> > adj; long long net=0; long long a,b,c; int flag3=0; int flag2=1; int dist[100005]; void dfs(int u){ int v,i; for(i=0;i<adj[u].size();i++){ v=adj[u][i]; if(dist[v]==-1){ dist[v]=dist[u]+1; if(dist[v]%2==0){ a++; }else{ b...
9.234783
30
0.448211
[ "vector" ]
4e60ee61f04ae6fbd49993d9e0850dfddba5ed0f
66,404
cpp
C++
src/server/frame/httpact.cpp
jvirkki/heliod
efdf2d105e342317bd092bab2d727713da546174
[ "BSD-3-Clause" ]
13
2015-10-09T05:59:20.000Z
2021-11-12T10:38:51.000Z
src/server/frame/httpact.cpp
JamesLinus/heliod
efdf2d105e342317bd092bab2d727713da546174
[ "BSD-3-Clause" ]
null
null
null
src/server/frame/httpact.cpp
JamesLinus/heliod
efdf2d105e342317bd092bab2d727713da546174
[ "BSD-3-Clause" ]
6
2016-05-23T10:53:29.000Z
2019-12-13T17:57:32.000Z
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * * THE BSD LICENSE * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistribut...
31.772249
166
0.549967
[ "object", "model" ]
4e630a1bd9003a33d10f6e0e55ff66a9aee214c8
8,077
cpp
C++
json_printer/json_printer.cpp
michael-novikov/cpp-black-belt
c18690e1641774fbb5c5b3d3c80b14c32bab70a5
[ "MIT" ]
null
null
null
json_printer/json_printer.cpp
michael-novikov/cpp-black-belt
c18690e1641774fbb5c5b3d3c80b14c32bab70a5
[ "MIT" ]
null
null
null
json_printer/json_printer.cpp
michael-novikov/cpp-black-belt
c18690e1641774fbb5c5b3d3c80b14c32bab70a5
[ "MIT" ]
2
2021-01-19T13:20:04.000Z
2021-09-29T21:01:44.000Z
#include <ios> #include <ostream> #include <string_view> #include <test_runner.h> #include <cassert> #include <cmath> #include <stdexcept> #include <sstream> #include <stack> #include <string> #include <cstdint> class EmptyContext {}; template <typename Parent> class Array; template <typename Parent> class Object; ...
21.538667
125
0.60208
[ "object" ]
4e6d783cc17fbd06012e24fef946a99cdc77fdb1
5,829
cc
C++
src/x2/LteX2Manager.cc
robinfoxnan/Simu5G
4d124a42d81c29fa5f6b45d41d41304ef6139f1e
[ "Intel" ]
1
2021-04-16T05:46:58.000Z
2021-04-16T05:46:58.000Z
src/x2/LteX2Manager.cc
robinfoxnan/Simu5G
4d124a42d81c29fa5f6b45d41d41304ef6139f1e
[ "Intel" ]
null
null
null
src/x2/LteX2Manager.cc
robinfoxnan/Simu5G
4d124a42d81c29fa5f6b45d41d41304ef6139f1e
[ "Intel" ]
null
null
null
// // Simu5G // // Authors: Giovanni Nardini, Giovanni Stea, Antonio Virdis (University of Pisa) // // This file is part of a software released under the license included in file // "license.pdf". Please read LICENSE and README files before using it. // The above files and the present reference are par...
35.542683
122
0.638531
[ "vector" ]
4e6f2f3ee719871e950b76349ea925cfa79c9125
960
cpp
C++
source/Beispielprogramm.cpp
LS060598/programmiersprachen-aufgabenblatt-3
5d9af11f347d21b5c826620708601e3b064fcf50
[ "MIT" ]
null
null
null
source/Beispielprogramm.cpp
LS060598/programmiersprachen-aufgabenblatt-3
5d9af11f347d21b5c826620708601e3b064fcf50
[ "MIT" ]
null
null
null
source/Beispielprogramm.cpp
LS060598/programmiersprachen-aufgabenblatt-3
5d9af11f347d21b5c826620708601e3b064fcf50
[ "MIT" ]
null
null
null
#include <cstdlib> #include <vector> #include <list> #include <iostream> #include <iterator> #include <algorithm> // std :: rand () // std::vector<> // std::list<> // std :: cout // std::ostream_iterator <> // std::reverse, std::generate int main () { std::vector<int> v0{10}; for (auto& v : v0) { v = st...
36.923077
136
0.588542
[ "vector" ]
4e7160046a2d9cf84c9ffaa0bb0e731d9a927afa
6,531
cc
C++
src/vmm/VirtualMachineManagerDriver.cc
NeatNerdPrime/one
6d367ac410cfb19377f31c03183ec4fcdd252f59
[ "Apache-2.0" ]
null
null
null
src/vmm/VirtualMachineManagerDriver.cc
NeatNerdPrime/one
6d367ac410cfb19377f31c03183ec4fcdd252f59
[ "Apache-2.0" ]
null
null
null
src/vmm/VirtualMachineManagerDriver.cc
NeatNerdPrime/one
6d367ac410cfb19377f31c03183ec4fcdd252f59
[ "Apache-2.0" ]
null
null
null
/* -------------------------------------------------------------------------- */ /* Copyright 2002-2020, OpenNebula Project, OpenNebula Systems */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); you may ...
33.492308
81
0.458888
[ "vector" ]
4e7ea2d9295d68b32f84df857d01c830523dee77
1,615
cpp
C++
TOI16/Codecube/pretoi16/06 - magic pooh.cpp
mrmuffinnxz/TOI-preparation
85a7d5b70d7fc661950bbb5de66a6885a835e755
[ "MIT" ]
null
null
null
TOI16/Codecube/pretoi16/06 - magic pooh.cpp
mrmuffinnxz/TOI-preparation
85a7d5b70d7fc661950bbb5de66a6885a835e755
[ "MIT" ]
null
null
null
TOI16/Codecube/pretoi16/06 - magic pooh.cpp
mrmuffinnxz/TOI-preparation
85a7d5b70d7fc661950bbb5de66a6885a835e755
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; #define endll '\n' long long n,m,k,t; vector<pair<long long,long long> > graph[100001]; set<long long> path; long long dist[2][100001]; void dijkstraAlgorithm(long long x,long long src,long long dest) { long long visited[n+1]; priority_queue<pair<long long,long long>,...
20.1875
117
0.610526
[ "vector" ]
4e808aea94c8079728b21f31629ae8a3cebfd2d6
7,141
cpp
C++
software/BottleCapDetector/src/main.cpp
Electrotutorials/BottleCapDetector
51264f613f06b4081f3c29ad3d96cc591fa35731
[ "MIT" ]
null
null
null
software/BottleCapDetector/src/main.cpp
Electrotutorials/BottleCapDetector
51264f613f06b4081f3c29ad3d96cc591fa35731
[ "MIT" ]
null
null
null
software/BottleCapDetector/src/main.cpp
Electrotutorials/BottleCapDetector
51264f613f06b4081f3c29ad3d96cc591fa35731
[ "MIT" ]
null
null
null
#include "Arduino.h" #include "OneButton.h" //Define the used pins #define BOTTLE_DETECTION_LED_PIN 2 #define CAP_DETECTION_LED_PIN 3 #define ALARM_LED_PIN 4 #define RESET_BUTTON_PIN 5 #define INDUCTION_SENSOR_PIN 6 #define LIGHT_SENSOR_PIN 7 #define ALARM_RELAY_PIN 8 //The number of bottlkes without a cap within the...
26.546468
207
0.681697
[ "object" ]
4e81d54d2bb2df4177b45c24822420a58cbfb4a4
19,947
hpp
C++
include/do_cycles.hpp
LLNL/Comb
1a149310638ba7b13b55f15188f0bb84b6a2e1d5
[ "MIT" ]
21
2018-10-03T18:15:04.000Z
2022-02-16T08:07:50.000Z
include/do_cycles.hpp
LLNL/Comb
1a149310638ba7b13b55f15188f0bb84b6a2e1d5
[ "MIT" ]
5
2019-10-07T23:06:57.000Z
2021-08-16T16:10:58.000Z
include/do_cycles.hpp
LLNL/Comb
1a149310638ba7b13b55f15188f0bb84b6a2e1d5
[ "MIT" ]
6
2019-09-13T16:47:33.000Z
2022-03-03T16:17:32.000Z
////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2018-2021, Lawrence Livermore National Security, LLC. // // Produced at the Lawrence Livermore National Laboratory // // LLNL-CODE-758885 // // All rights reserved. // // This file is part of Comb. // // For details, see htt...
34.039249
221
0.542187
[ "mesh", "object", "vector" ]
4e89fae9fd362a52a8314d0ed5a14166c1c0b1c0
3,207
cpp
C++
mat.cpp
giladjerusalem/test1B-CPP
bca77759a9881954b3022ead9de577a59bfd4278
[ "MIT" ]
null
null
null
mat.cpp
giladjerusalem/test1B-CPP
bca77759a9881954b3022ead9de577a59bfd4278
[ "MIT" ]
null
null
null
mat.cpp
giladjerusalem/test1B-CPP
bca77759a9881954b3022ead9de577a59bfd4278
[ "MIT" ]
null
null
null
#include "mat.hpp" using namespace std; namespace ariel { std::string mat(int row, int col, char symbol1, char symbol2) { // char symbol1, char symbol2 must be HASKI !!!!!! if ((row % 2 == 0 || col % 2 == 0 )||(row <= 0 || col <=0 )) { // if one of number not odd -> throw ...
26.504132
84
0.328344
[ "vector" ]
4e8d8af108abc94f45ea4de44fb329e7ac54c80f
7,465
cpp
C++
noveltyset.cpp
jal278/mazerobot-python
ec63e46c9821cb74c63e89d0f7dfc3dbe479e313
[ "MIT" ]
5
2017-05-16T08:41:58.000Z
2021-04-08T12:52:25.000Z
noveltyset.cpp
jal278/mazerobot-python
ec63e46c9821cb74c63e89d0f7dfc3dbe479e313
[ "MIT" ]
null
null
null
noveltyset.cpp
jal278/mazerobot-python
ec63e46c9821cb74c63e89d0f7dfc3dbe479e313
[ "MIT" ]
4
2015-09-08T20:02:47.000Z
2017-05-20T18:15:56.000Z
#include "noveltyset.h" #include <string.h> #include "population.h" #include "organism.h" //for sorting by novelty bool cmp(const noveltyitem *a, const noveltyitem* b) { return a->novelty < b->novelty; } //for sorting by fitness bool cmp_fit(const noveltyitem *a, const noveltyitem *b) { return a->fitness < b-...
29.389764
142
0.586604
[ "vector" ]
4e928a5df6e1fa016593eebe78db3f363e25f495
346
cpp
C++
mesh-modify/src/bin/main.cpp
ahewer/mri-shape-tools
4268499948f1330b983ffcdb43df62e38ca45079
[ "MIT" ]
null
null
null
mesh-modify/src/bin/main.cpp
ahewer/mri-shape-tools
4268499948f1330b983ffcdb43df62e38ca45079
[ "MIT" ]
2
2017-05-29T09:43:01.000Z
2017-05-29T09:50:05.000Z
mesh-modify/src/bin/main.cpp
ahewer/mri-shape-tools
4268499948f1330b983ffcdb43df62e38ca45079
[ "MIT" ]
4
2017-05-17T11:56:02.000Z
2022-03-05T09:12:24.000Z
#include "mesh/MeshIO.h" #include "settings.h" #include "mesh-modify/ApplyModifications.h" int main(int argc, char* argv[]) { Settings settings(argc, argv); Mesh mesh = MeshIO::read(settings.input); meshModify::ApplyModifications(mesh).apply(settings.specifications); MeshIO::write(mesh, settings.o...
18.210526
72
0.699422
[ "mesh" ]
4ea5ff5436471b2ef0d455ea1eeb9834a4cc5a29
1,356
cpp
C++
systems/plants/constraint/testPostureConstraintmex.cpp
andybarry/drake
61428cff8cb523314cd87105821148519460a0b9
[ "BSD-3-Clause" ]
1
2020-01-12T14:32:29.000Z
2020-01-12T14:32:29.000Z
systems/plants/constraint/testPostureConstraintmex.cpp
cmmccann/drake
0a124c044357d5a29ec7e536acb747cfa5682eba
[ "BSD-3-Clause" ]
null
null
null
systems/plants/constraint/testPostureConstraintmex.cpp
cmmccann/drake
0a124c044357d5a29ec7e536acb747cfa5682eba
[ "BSD-3-Clause" ]
1
2021-07-07T18:52:51.000Z
2021-07-07T18:52:51.000Z
#include "mex.h" #include "RigidBodyConstraint.h" #include "drakeUtil.h" #include "../RigidBodyManipulator.h" #include <cstring> /* * [lower_bound,upper_bound] = testPostureConstraintmex(postureConstraint_ptr,t) * @param postureConstraint_ptr A pointer to a PostureConstraint object * @param t ...
34.769231
157
0.671829
[ "object" ]
4eada14e46d80a6c8b8f58b372ebc23d0cff3912
791
hpp
C++
include/xmlParser.hpp
JonasRock/XML_GridViewServer
b079bc6edf3a855da9cbad3a976554da3dd1212c
[ "Apache-2.0" ]
null
null
null
include/xmlParser.hpp
JonasRock/XML_GridViewServer
b079bc6edf3a855da9cbad3a976554da3dd1212c
[ "Apache-2.0" ]
null
null
null
include/xmlParser.hpp
JonasRock/XML_GridViewServer
b079bc6edf3a855da9cbad3a976554da3dd1212c
[ "Apache-2.0" ]
null
null
null
#ifndef XMLPARSER_H #define XMLPARSER_H #include <string> #include "json.hpp" #include "pugixml.hpp" #include "types.hpp" namespace xmlServer { class XmlParser { public: bool parse(const std::string uri, pugi::xml_parse_result &result); nlohmann::json getNodeData(const std::string uri, const std::string x...
24.71875
109
0.738306
[ "vector" ]
4eb37573e465439338e0265ece195fa948b8010e
1,284
hpp
C++
module-db/queries/messages/sms/QuerySMSGet.hpp
bitigchi/MuditaOS
425d23e454e09fd6ae274b00f8d19c57a577aa94
[ "BSL-1.0" ]
369
2021-11-10T09:20:29.000Z
2022-03-30T06:36:58.000Z
module-db/queries/messages/sms/QuerySMSGet.hpp
bitigchi/MuditaOS
425d23e454e09fd6ae274b00f8d19c57a577aa94
[ "BSL-1.0" ]
149
2021-11-10T08:38:35.000Z
2022-03-31T23:01:52.000Z
module-db/queries/messages/sms/QuerySMSGet.hpp
bitigchi/MuditaOS
425d23e454e09fd6ae274b00f8d19c57a577aa94
[ "BSL-1.0" ]
41
2021-11-10T08:30:37.000Z
2022-03-29T08:12:46.000Z
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #pragma once #include <queries/RecordQuery.hpp> #include <queries/Filter.hpp> #include <Interface/SMSRecord.hpp> #include <string> namespace db::query { class SMSGet : public Re...
27.319149
91
0.656542
[ "vector" ]
4eb376ce2c109b9d97f158db918173ff31df8f0e
4,590
cpp
C++
day22/reactor_reboot.cpp
Harold2017/AdventOfCode2021
5215d25a908562f34a360f293c17438cf80157b8
[ "MIT" ]
null
null
null
day22/reactor_reboot.cpp
Harold2017/AdventOfCode2021
5215d25a908562f34a360f293c17438cf80157b8
[ "MIT" ]
null
null
null
day22/reactor_reboot.cpp
Harold2017/AdventOfCode2021
5215d25a908562f34a360f293c17438cf80157b8
[ "MIT" ]
null
null
null
// // Created by Harold on 2021/12/22. // #include <fstream> #include <string> #include <sstream> #include <iostream> #include <vector> #include <algorithm> #include <numeric> #include <memory> #include <unordered_map> struct Cube { int lx, ly, lz, hx, hy, hz; bool is_on = false; Cube() = default; Cu...
27.987805
162
0.534641
[ "vector" ]
4eb512f42e4214274f12eeb63b7fb4fff14ae0fc
2,699
cpp
C++
Builders/Blitz.cpp
lmsp/ExtremeUltimate
9f3f7619cc15c4bd2127411ff64c5b385f6c09ae
[ "BSD-2-Clause" ]
null
null
null
Builders/Blitz.cpp
lmsp/ExtremeUltimate
9f3f7619cc15c4bd2127411ff64c5b385f6c09ae
[ "BSD-2-Clause" ]
null
null
null
Builders/Blitz.cpp
lmsp/ExtremeUltimate
9f3f7619cc15c4bd2127411ff64c5b385f6c09ae
[ "BSD-2-Clause" ]
null
null
null
#include "Builders.h" namespace Upp { String BlitzBaseFile() { return ConfigFile("blitzbase"); } void ResetBlitz() { SaveFile(BlitzBaseFile(), ""); } Time blitz_base_time; void InitBlitz() { Time ltm = Time::High(); const Workspace& wspc = GetIdeWorkspace(); for(int i = 0; i < wspc.GetCount(); i++) { // find...
26.203883
106
0.595406
[ "object", "vector" ]
4eb7ea91940aa6388db91925d1f1082be52fe3c2
5,415
cpp
C++
usbhid/src/rawhiddevice.cpp
uglycoder/usbhid
c39190bb0e0260f81eff890ec666c3cda7abc125
[ "MIT" ]
4
2018-11-24T13:10:48.000Z
2021-09-16T07:34:36.000Z
usbhid/src/rawhiddevice.cpp
uglycoder/usbhid
c39190bb0e0260f81eff890ec666c3cda7abc125
[ "MIT" ]
null
null
null
usbhid/src/rawhiddevice.cpp
uglycoder/usbhid
c39190bb0e0260f81eff890ec666c3cda7abc125
[ "MIT" ]
5
2018-09-26T02:11:49.000Z
2021-09-18T08:39:38.000Z
// rawhiddevice.cpp // MIT License // See LICENSE.txt file in root of project // Copyright(c) 2018 Simon Parmenter #include "stdafx.h" #include "../interface/rawhiddevice.hpp" namespace { struct RawUSBPacket { char leadByte; USBHID_ns::RawHidDevice::usbHidPacket usbPacket; }; [[nodiscard]] std::...
26.544118
181
0.710065
[ "vector" ]
4eba726779886ca37136c45088ba2c50bc4bd4c3
6,025
cc
C++
src/color.cc
NuriYuri/node-sfml
75ae1439d8fe946393a78e87b3d7ea8c7eb8c750
[ "MIT" ]
48
2021-11-10T15:48:55.000Z
2022-03-25T08:34:43.000Z
src/color.cc
NuriYuri/node-sfml
75ae1439d8fe946393a78e87b3d7ea8c7eb8c750
[ "MIT" ]
7
2022-01-12T18:15:24.000Z
2022-03-31T04:12:02.000Z
src/color.cc
NuriYuri/node-sfml
75ae1439d8fe946393a78e87b3d7ea8c7eb8c750
[ "MIT" ]
4
2021-11-11T01:41:43.000Z
2022-03-22T17:44:21.000Z
#include "color.h" namespace node_sfml { namespace color { using v8::EscapableHandleScope; using v8::Function; using v8::FunctionTemplate; using v8::Isolate; using v8::Local; using v8::MaybeLocal; using v8::Object; using v8::String; using v8::Value; Nan::Persistent<Function> constructor; Nan::Persistent<Function> re...
31.710526
80
0.502407
[ "object" ]
4ec3b4ddd78d6c8bcf312343fce238e77fa1c00a
2,735
cpp
C++
cpp/79.word-search.cpp
vermouth1992/Leetcode
0d7dda52b12f9e01d88fc279243742cd8b4bcfd1
[ "MIT" ]
null
null
null
cpp/79.word-search.cpp
vermouth1992/Leetcode
0d7dda52b12f9e01d88fc279243742cd8b4bcfd1
[ "MIT" ]
null
null
null
cpp/79.word-search.cpp
vermouth1992/Leetcode
0d7dda52b12f9e01d88fc279243742cd8b4bcfd1
[ "MIT" ]
null
null
null
/* * @lc app=leetcode id=79 lang=cpp * * [79] Word Search * * https://leetcode.com/problems/word-search/description/ * * algorithms * Medium (37.55%) * Total Accepted: 705.3K * Total Submissions: 1.9M * Testcase Example: '[["A","B","C","E"],["S","F","C","S"],["A","D","E","E"]]\n"ABCCED"' * * Given an m...
27.35
121
0.541499
[ "vector" ]
4ec709f2f37caa4599530b9343b1905b4da6c8b0
336
cc
C++
adhoc_tests/as_foo.cc
rolandmas/TooN
14dde295b89c9afc19e0e54ce1aaafc1193658d6
[ "BSD-2-Clause" ]
97
2015-01-27T10:49:30.000Z
2022-03-21T05:58:38.000Z
3rdparty.old/TooN/test/as_foo.cc
Pandinosaurus/PTAM-opencv
1281564b9737dcc29ccacfbf7dc88a85916f7cc6
[ "Intel", "X11" ]
7
2015-07-31T08:52:39.000Z
2017-01-20T11:16:40.000Z
3rdparty.old/TooN/test/as_foo.cc
Pandinosaurus/PTAM-opencv
1281564b9737dcc29ccacfbf7dc88a85916f7cc6
[ "Intel", "X11" ]
49
2015-05-06T18:13:38.000Z
2022-02-05T08:06:27.000Z
#include <TooN/TooN.h> using namespace TooN; using namespace std; int main() { Vector<3> v = makeVector(1, 2, 3); cout << v.as_row() << endl; cout << v.as_col() << endl; cout << v.as_slice() << endl; Vector<> u = makeVector(1, 2, 3); cout << u.as_row() << endl; cout << u.as_col() << endl; cout << v.as_slic...
16
35
0.574405
[ "vector" ]
4df055d6994dd855c7ba7481d1a29beeb665eed9
12,660
cpp
C++
src/baxter_collaboration/baxter_collaboration/src/modular_furniture/tool_picker.cpp
UCRoboticsLab/BaxterTictactoe
34e4761467af3dc7c9ad65726360e0d1f1923c51
[ "Apache-2.0" ]
1
2017-12-22T20:32:04.000Z
2017-12-22T20:32:04.000Z
src/baxter_collaboration/baxter_collaboration/src/modular_furniture/tool_picker.cpp
u3099811/BaxterTictacToe
967ab0ea8496ca4ce54db41b20c05de68cfe1bb9
[ "Apache-2.0" ]
2
2017-08-16T00:18:52.000Z
2017-08-16T04:30:05.000Z
src/baxter_collaboration/baxter_collaboration/src/modular_furniture/tool_picker.cpp
u3099811/BaxterTictacToe
967ab0ea8496ca4ce54db41b20c05de68cfe1bb9
[ "Apache-2.0" ]
null
null
null
#include "tool_picker.h" using namespace std; using namespace baxter_core_msgs; #define VERTICAL_ORI_R2 0.1, 1.0, 0.0, 0.0 ToolPicker::ToolPicker(std::string _name, std::string _limb, bool _no_robot) : HoldCtrl(_name,_limb, _no_robot), CartesianEstimatorClient(_name, _limb), ...
28.90411
100
0.565798
[ "object", "vector" ]
4df3c29e3e8a00b90fee541b3b34228632449961
6,735
cpp
C++
src/gausskernel/cbb/utils/debug/segment_test.cpp
Yanci0/openGauss-server
b2ff10be1367c77f2fda396d6c12ffa3c25874c7
[ "MulanPSL-1.0" ]
360
2020-06-30T14:47:34.000Z
2022-03-31T15:21:53.000Z
src/gausskernel/cbb/utils/debug/segment_test.cpp
Yanci0/openGauss-server
b2ff10be1367c77f2fda396d6c12ffa3c25874c7
[ "MulanPSL-1.0" ]
4
2020-06-30T15:09:16.000Z
2020-07-14T06:20:03.000Z
src/gausskernel/cbb/utils/debug/segment_test.cpp
futurewei-cloud/chogori-opengauss
f43410e1643c887819e718d9baceb9e853ad9574
[ "MulanPSL-1.0" ]
133
2020-06-30T14:47:36.000Z
2022-03-25T15:29:00.000Z
/* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED...
33.844221
118
0.654788
[ "transform" ]
4df58d48d0e4fdedc59040143127a0d934150a6a
3,931
cpp
C++
rend_sdl/Material.cpp
eezstreet/Rapture
1022f1013d7a7a3a84ea3ba56518420daf4733fc
[ "ISC" ]
2
2017-10-25T03:22:34.000Z
2020-04-02T16:33:40.000Z
rend_sdl/Material.cpp
eezstreet/Rapture
1022f1013d7a7a3a84ea3ba56518420daf4733fc
[ "ISC" ]
12
2016-07-03T21:08:25.000Z
2016-07-30T06:17:26.000Z
rend_sdl/Material.cpp
eezstreet/Rapture
1022f1013d7a7a3a84ea3ba56518420daf4733fc
[ "ISC" ]
3
2016-03-02T06:56:42.000Z
2018-04-13T14:37:06.000Z
#include "tr_local.h" unordered_map<string, Material*> Material::umMaterials; /* Class methods */ Material::Material(const char* szURI) : bValid(false) { Resource* pRes = trap->ResourceSyncURI(szURI); if (pRes == nullptr) { trap->Print(PRIORITY_WARNING, "Couldn't find material resource: %s\n", szURI); return; ...
27.683099
156
0.701094
[ "transform" ]
4df7cd5c51ed4891bcdab9725dc92e99a7527d4e
3,887
cpp
C++
Hexeng2D/src/EventManager/EventManager.cpp
Ily3s/Hexeng2D
9e81618fc27b45a347abadc6f60f896ab28cbe6b
[ "MIT" ]
null
null
null
Hexeng2D/src/EventManager/EventManager.cpp
Ily3s/Hexeng2D
9e81618fc27b45a347abadc6f60f896ab28cbe6b
[ "MIT" ]
null
null
null
Hexeng2D/src/EventManager/EventManager.cpp
Ily3s/Hexeng2D
9e81618fc27b45a347abadc6f60f896ab28cbe6b
[ "MIT" ]
null
null
null
#include <chrono> #include "EventManager.hpp" #include "../Scene.hpp" #include "../Renderer/Renderer.hpp" #include "GLFW/glfw3.h" namespace Hexeng::EventManager { std::thread event_thread; Vec2<double> mouse_position{ 0, 0 }; std::vector<Event*> global_events; Event::Event(std::function<bool(void)> condition, ...
25.405229
150
0.674042
[ "vector" ]
4df984c9582f1cb21926f6736239b8549d03d7af
11,989
cpp
C++
test/cpp/api/integration.cpp
Gamrix/pytorch
b5b158a6c6de94dfb983b447fa33fea062358844
[ "Intel" ]
null
null
null
test/cpp/api/integration.cpp
Gamrix/pytorch
b5b158a6c6de94dfb983b447fa33fea062358844
[ "Intel" ]
null
null
null
test/cpp/api/integration.cpp
Gamrix/pytorch
b5b158a6c6de94dfb983b447fa33fea062358844
[ "Intel" ]
null
null
null
#include <gtest/gtest.h> #include <torch/torch.h> #include <test/cpp/api/support.h> #include <cmath> #include <cstdlib> #include <random> using namespace torch::nn; using namespace torch::test; const double kPi = 3.1415926535898; class CartPole { // Translated from openai/gym's cartpole.py public: // NOLINTN...
33.118785
93
0.659438
[ "vector", "model" ]
4dfc31771da472b62a0d83fcb1e0999cf8d70859
39,698
cpp
C++
aby/src/abycore/sharing/yaoserversharing_pipelined.cpp
huxh10/SGDX
ed93ab5636e9ccc2a15f87572562641604a3cc2b
[ "Apache-2.0" ]
2
2017-12-04T08:27:20.000Z
2018-12-21T19:20:21.000Z
aby/src/abycore/sharing/yaoserversharing_pipelined.cpp
huxh10/SGDX
ed93ab5636e9ccc2a15f87572562641604a3cc2b
[ "Apache-2.0" ]
null
null
null
aby/src/abycore/sharing/yaoserversharing_pipelined.cpp
huxh10/SGDX
ed93ab5636e9ccc2a15f87572562641604a3cc2b
[ "Apache-2.0" ]
null
null
null
/** \file YaoServerPipeSharing.cpp \author michael.zohner@ec-spride.de \copyright ABY - A Framework for Efficient Mixed-protocol Secure Two-party Computation Copyright (C) 2015 Engineering Cryptographic Protocols Group, TU Darmstadt This program is free software: you can redistribute it and/or modify it u...
37.24015
204
0.70326
[ "vector" ]
1501b26adc0e8b5a2f2f85d4b60482b6a776f189
875
cpp
C++
Code/LeetCode/Best Time to Buy and Sell Stock IV/Best Time to Buy and Sell Stock IV/main.cpp
myhgew/CodePractice
c3313623d973192d6c2f20255bb01088b970ee80
[ "MIT" ]
null
null
null
Code/LeetCode/Best Time to Buy and Sell Stock IV/Best Time to Buy and Sell Stock IV/main.cpp
myhgew/CodePractice
c3313623d973192d6c2f20255bb01088b970ee80
[ "MIT" ]
null
null
null
Code/LeetCode/Best Time to Buy and Sell Stock IV/Best Time to Buy and Sell Stock IV/main.cpp
myhgew/CodePractice
c3313623d973192d6c2f20255bb01088b970ee80
[ "MIT" ]
null
null
null
// // main.cpp // Best Time to Buy and Sell Stock IV // // Created by yuhumai on 3/3/15. // Copyright (c) 2015 yuhumai. All rights reserved. // /* Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete at most k tr...
21.875
113
0.658286
[ "vector" ]
15028f059d5d76c62717c9268266c3d722ec4f67
2,192
cpp
C++
dataset/test/modification/1487_code_insertion/43/transformation_1.cpp
Karina5005/Plagiarism
ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb
[ "MIT" ]
3
2022-02-15T00:29:39.000Z
2022-03-15T08:36:44.000Z
dataset/test/modification/1487_code_insertion/43/transformation_1.cpp
Kira5005-code/Plagiarism
ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb
[ "MIT" ]
null
null
null
dataset/test/modification/1487_code_insertion/43/transformation_1.cpp
Kira5005-code/Plagiarism
ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair<int,int> pii; typedef pair<long long,long long> pll; typedef vector<long long> fll; typedef vector<int> fi; #define pb push_back #define in cin #define out cout #define fektor vector #define ma max #define si...
23.826087
79
0.50958
[ "vector" ]
1502e1b8c71d920b319cc252570406a10335931f
3,680
cpp
C++
client/src/shader.cpp
cainzhou96/Gaia
a2f942d47d1d7d7b706fbd182469acc41eb535ca
[ "MIT" ]
null
null
null
client/src/shader.cpp
cainzhou96/Gaia
a2f942d47d1d7d7b706fbd182469acc41eb535ca
[ "MIT" ]
33
2020-04-03T05:55:38.000Z
2020-06-07T00:58:23.000Z
client/src/shader.cpp
cainzhou96/Gaia
a2f942d47d1d7d7b706fbd182469acc41eb535ca
[ "MIT" ]
4
2020-04-02T18:32:18.000Z
2022-02-06T21:36:41.000Z
#include "shader.h" enum ShaderType { vertex, fragment, geometry }; GLuint LoadSingleShader(const char * shaderFilePath, ShaderType type) { // Create a shader id. GLuint shaderID = 0; if (shaderFilePath == NULL){ return 0; } if (type == vertex) shaderID = glCreateShader(GL_VERTEX_SHAD...
28.976378
82
0.711685
[ "geometry", "vector" ]
15040fff4e647e9c064208c438ded070418f6191
20,778
hpp
C++
src/blas/impl/KokkosBlas1_axpby_spec.hpp
NexGenAnalytics/kokkos-kernels
8381db0486674c1be943de23974821ddfb9e6c29
[ "BSD-3-Clause" ]
null
null
null
src/blas/impl/KokkosBlas1_axpby_spec.hpp
NexGenAnalytics/kokkos-kernels
8381db0486674c1be943de23974821ddfb9e6c29
[ "BSD-3-Clause" ]
7
2020-05-04T16:43:08.000Z
2022-01-13T16:31:17.000Z
src/blas/impl/KokkosBlas1_axpby_spec.hpp
NexGenAnalytics/kokkos-kernels
8381db0486674c1be943de23974821ddfb9e6c29
[ "BSD-3-Clause" ]
null
null
null
/* //@HEADER // ************************************************************************ // // Kokkos v. 3.0 // Copyright (2020) National Technology & Engineering // Solutions of Sandia, LLC (NTESS). // // Under the terms of Contract DE-NA0003525 with NTESS, // the U.S. Govern...
42.841237
162
0.641833
[ "vector" ]
1504d516884eb5036c61c4c01e949048ab3f8742
7,389
cpp
C++
deprecated_compiler/main.cpp
Limvot/kraken
6e5a372f07a864555c0e6492de4f46ffab75bfe7
[ "MIT" ]
14
2015-12-28T10:33:33.000Z
2022-03-29T04:04:52.000Z
deprecated_compiler/main.cpp
Limvot/kraken
6e5a372f07a864555c0e6492de4f46ffab75bfe7
[ "MIT" ]
3
2016-04-20T23:10:09.000Z
2022-01-30T21:59:56.000Z
deprecated_compiler/main.cpp
Limvot/kraken
6e5a372f07a864555c0e6492de4f46ffab75bfe7
[ "MIT" ]
1
2016-04-20T01:02:53.000Z
2016-04-20T01:02:53.000Z
#include <string> #include <iostream> #include <fstream> #include <vector> #include <cstring> #include "NodeTree.h" #include "Symbol.h" #include "Lexer.h" #include "RNGLRParser.h" #include "Importer.h" #include "ASTData.h" #include "CGenerator.h" #include "Poset.h" #include "util.h" #include "Tester.h" int main(i...
38.685864
154
0.660441
[ "vector" ]
15063228698f2fb40de787b5c133e7f0f702b76e
30,785
cpp
C++
src/nvisii/texture.cpp
blaine141/NVISII
1675bb9bb74a1fe441bbb10ca98ea5cc4b0e4e24
[ "Apache-2.0" ]
null
null
null
src/nvisii/texture.cpp
blaine141/NVISII
1675bb9bb74a1fe441bbb10ca98ea5cc4b0e4e24
[ "Apache-2.0" ]
null
null
null
src/nvisii/texture.cpp
blaine141/NVISII
1675bb9bb74a1fe441bbb10ca98ea5cc4b0e4e24
[ "Apache-2.0" ]
null
null
null
#include <nvisii/texture.h> #include <nvisii/light.h> #include <nvisii/material.h> #include <stb_image.h> #include <stb_image_write.h> #include <cstring> #include <algorithm> #include <gli/gli.hpp> #include <gli/convert.hpp> #include <gli/core/s3tc.hpp> #include <glm/gtc/color_space.hpp> namespace nvisii { std::v...
44.810771
192
0.566445
[ "vector", "transform" ]
151170153e35857542fa8ff34ec17831f614f6bc
11,223
cc
C++
dc3/dc30.cc
pptacher/hackerrank
9ebe957114dd781ae96a9f80f42f2840787a1c19
[ "MIT" ]
null
null
null
dc3/dc30.cc
pptacher/hackerrank
9ebe957114dd781ae96a9f80f42f2840787a1c19
[ "MIT" ]
null
null
null
dc3/dc30.cc
pptacher/hackerrank
9ebe957114dd781ae96a9f80f42f2840787a1c19
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include <vector> #include <iomanip> #include <stack> #include <set> #include <queue> #include <unordered_map> #include <bitset> #include <array> #include <numeric> #include <algorithm> using std::string; typedef unsigned int uint; void dc3(std::vector<int>&, std::vector<int>&); ...
27.848635
285
0.487837
[ "vector" ]
1517a672f02c5fb7f69b116089f4ed98299cba2d
11,168
cpp
C++
src/qt/src/3rdparty/webkit/Source/WebCore/platform/graphics/gpu/LoopBlinnLocalTriangulator.cpp
ant0ine/phantomjs
8114d44a28134b765ab26b7e13ce31594fa81253
[ "BSD-3-Clause" ]
46
2015-01-08T14:32:34.000Z
2022-02-05T16:48:26.000Z
src/qt/src/3rdparty/webkit/Source/WebCore/platform/graphics/gpu/LoopBlinnLocalTriangulator.cpp
ant0ine/phantomjs
8114d44a28134b765ab26b7e13ce31594fa81253
[ "BSD-3-Clause" ]
7
2015-01-20T14:28:12.000Z
2017-01-18T17:21:44.000Z
src/qt/src/3rdparty/webkit/Source/WebCore/platform/graphics/gpu/LoopBlinnLocalTriangulator.cpp
ant0ine/phantomjs
8114d44a28134b765ab26b7e13ce31594fa81253
[ "BSD-3-Clause" ]
14
2015-10-27T06:17:48.000Z
2020-03-03T06:15:50.000Z
/* * Copyright (C) 2010 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of condit...
39.885714
160
0.602436
[ "shape" ]
1518f4878e8e96502b83736da66401b541742c57
3,320
hxx
C++
include/detail/scope_block.hxx
jjzhang166/cpp-rgb2yuv
044895c02ac8382b614be3b847a180f1c2ec322b
[ "MIT" ]
null
null
null
include/detail/scope_block.hxx
jjzhang166/cpp-rgb2yuv
044895c02ac8382b614be3b847a180f1c2ec322b
[ "MIT" ]
null
null
null
include/detail/scope_block.hxx
jjzhang166/cpp-rgb2yuv
044895c02ac8382b614be3b847a180f1c2ec322b
[ "MIT" ]
null
null
null
/* rgb2yuv - Code covered by the MIT License Author: mutouyun (http://darkc.at) */ //////////////////////////////////////////////////////////////// /// Define default memory allocator //////////////////////////////////////////////////////////////// struct allocator { static void * alloc(GLB_ size_t size) ...
24.962406
78
0.529217
[ "object" ]
151f51a2757f25dba5ba0491a8f4cfe844e3bdd8
4,913
cpp
C++
tests/filename_validation_tests.cpp
skybaboon/dailycashmanager
0b022cc230a8738d5d27a799728da187e22f17f8
[ "Apache-2.0" ]
4
2016-07-05T07:42:07.000Z
2020-07-15T15:27:22.000Z
tests/filename_validation_tests.cpp
skybaboon/dailycashmanager
0b022cc230a8738d5d27a799728da187e22f17f8
[ "Apache-2.0" ]
1
2020-05-07T20:58:21.000Z
2020-05-07T20:58:21.000Z
tests/filename_validation_tests.cpp
skybaboon/dailycashmanager
0b022cc230a8738d5d27a799728da187e22f17f8
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2013 Matthew Harvey * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
30.32716
77
0.653165
[ "vector" ]
1524e7f7e4994f24b1513bd37b83234ec9d44fe8
6,452
cpp
C++
src/Game/mygame.cpp
michaeleggers/Engine3
84088bfc665ed515801ddd20a13becf78a0b50fb
[ "MIT" ]
null
null
null
src/Game/mygame.cpp
michaeleggers/Engine3
84088bfc665ed515801ddd20a13becf78a0b50fb
[ "MIT" ]
null
null
null
src/Game/mygame.cpp
michaeleggers/Engine3
84088bfc665ed515801ddd20a13becf78a0b50fb
[ "MIT" ]
null
null
null
#include <stdio.h> #include "interface.h" #include <SDL.h> #define GLM_FORCE_RADIANS #define GLM_FORCE_DEPTH_ZERO_TO_ONE #include <glm/glm.hpp> #include <glm/ext.hpp> #include <glm/gtx/quaternion.hpp> #include <string> #include <unordered_map> #include "player.h" #include "camera.h" #include "input_handler.h" /* ...
34.875676
139
0.664755
[ "geometry" ]
152531cfebc1270fa4d9ef23ce2cac33fc55c0f1
670
cpp
C++
Dynamic Programming/1155 Number of Dice Rolls With Target Sum.cpp
ankitapuri/LeetCode-Solutions
16d9b6a992663a19db373f207b23b95225f56c28
[ "MIT" ]
18
2021-11-07T06:45:25.000Z
2022-03-03T10:37:01.000Z
Dynamic Programming/1155 Number of Dice Rolls With Target Sum.cpp
ankitapuri/LeetCode-Solutions
16d9b6a992663a19db373f207b23b95225f56c28
[ "MIT" ]
1
2021-10-12T15:32:27.000Z
2021-11-06T11:48:11.000Z
Dynamic Programming/1155 Number of Dice Rolls With Target Sum.cpp
ankitapuri/LeetCode-Solutions
16d9b6a992663a19db373f207b23b95225f56c28
[ "MIT" ]
2
2021-11-25T10:25:44.000Z
2021-12-31T15:16:47.000Z
class Solution { public: #define MOD 1000000007 int ways(int d,int f, int target,vector<vector<int>>&vec) { if(d==0 && target!=0) return 0; if(d==0 && target==0) return 1; if(vec[d][target]!=-1) return vec[d][target]; int ans=0; for(int i=1;i<=f;i++) ...
30.454545
62
0.502985
[ "vector" ]
1526ca531a0644b0815b408f94659901fce4a24a
118,703
hpp
C++
utils/features/include/features/colors.hpp
probabilistic-anchoring/probanch
cfba24fd431ed7e7109b715018e344d7989f565d
[ "Apache-2.0" ]
1
2020-02-27T14:00:27.000Z
2020-02-27T14:00:27.000Z
utils/features/include/features/colors.hpp
probabilistic-anchoring/probanch
cfba24fd431ed7e7109b715018e344d7989f565d
[ "Apache-2.0" ]
null
null
null
utils/features/include/features/colors.hpp
probabilistic-anchoring/probanch
cfba24fd431ed7e7109b715018e344d7989f565d
[ "Apache-2.0" ]
null
null
null
/* This file is auto-generated, do not edit. */ #define COLOR_NAMES_MAX 1294 typedef struct ColorInfo { const char *name; const char *hex; struct { unsigned char r; unsigned char g; unsigned char b; } rgb; struct { unsigned char h; unsigned char s; unsigned char v; } hsv; } ColorIn...
45.427861
100
0.532211
[ "solid" ]
15295c88fd11917c4dd98ec2bc693f788d27d60a
1,047
hxx
C++
Legolas/Matrix/Transpose/TransposeTraits.hxx
LaurentPlagne/Legolas
fdf533528baf7ab5fcb1db15d95d2387b3e3723c
[ "MIT" ]
null
null
null
Legolas/Matrix/Transpose/TransposeTraits.hxx
LaurentPlagne/Legolas
fdf533528baf7ab5fcb1db15d95d2387b3e3723c
[ "MIT" ]
null
null
null
Legolas/Matrix/Transpose/TransposeTraits.hxx
LaurentPlagne/Legolas
fdf533528baf7ab5fcb1db15d95d2387b3e3723c
[ "MIT" ]
1
2021-02-11T14:43:25.000Z
2021-02-11T14:43:25.000Z
/** * project DESCARTES * * @file TransposeTraits.hxx * * @author Laurent PLAGNE * @date june 2004 - january 2005 * * @par Modifications * - author date object * * (c) Copyright EDF R&D - CEA 2001-2005 */ #ifndef __LEGOLAS_TRANSPOSETRAITS_HXX__ #define __LEGOLAS_TRANSPOSETRAITS_HXX__ namespace L...
18.051724
65
0.610315
[ "object" ]
153815f6a517dfe89194dc6f031c1bef0249cb3d
552
cpp
C++
Neps/Problems/Fase - 34.cpp
lucaswilliamgomes/QuestionsCompetitiveProgramming
f0a2cf42bb5a00e5d677b7f3211ac399fe2bf6a0
[ "MIT" ]
null
null
null
Neps/Problems/Fase - 34.cpp
lucaswilliamgomes/QuestionsCompetitiveProgramming
f0a2cf42bb5a00e5d677b7f3211ac399fe2bf6a0
[ "MIT" ]
null
null
null
Neps/Problems/Fase - 34.cpp
lucaswilliamgomes/QuestionsCompetitiveProgramming
f0a2cf42bb5a00e5d677b7f3211ac399fe2bf6a0
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main () { int n, m, aux; cin >> n >> m; vector <int> arr; for (int i = 0; i < 1005; i++){ arr.push_back(0); } for (int i = 0; i < n; i++){ cin >> arr[i]; } sort (arr.begin(), arr.end()); reverse(arr.begin(), arr.end(...
17.806452
36
0.452899
[ "vector" ]
153a97d91a9c8a73fb19f164f086654b27adfcb2
7,289
cpp
C++
sources/Json.cpp
devborz/json_parser
12ebbb357b88f97f4f0980e3d722235a581fdc9a
[ "MIT" ]
null
null
null
sources/Json.cpp
devborz/json_parser
12ebbb357b88f97f4f0980e3d722235a581fdc9a
[ "MIT" ]
null
null
null
sources/Json.cpp
devborz/json_parser
12ebbb357b88f97f4f0980e3d722235a581fdc9a
[ "MIT" ]
1
2019-12-22T22:04:03.000Z
2019-12-22T22:04:03.000Z
#include "Json.h" Json::Json(const string& s) { unsigned int i = 0; i = miss_spaces(i, s); if (s[i] == '{') { _is_object = true; create_map(s); } else if (s[i] == '[') { _is_array = true; create_vector(s); } else { throw std::logic_error("invalid data type"); } } bool Json::is_array()...
24.962329
80
0.475511
[ "object", "vector" ]
153e45d3c1962588f96e9bb09cd1406ee72f072a
7,545
cpp
C++
core/register_core_types.cpp
JoshTheDerf/Quark
11c29f19a729a8f0990a2a476c661f65a8f897ff
[ "CC-BY-3.0", "Apache-2.0", "MIT" ]
38
2018-03-05T03:03:09.000Z
2021-11-14T20:27:47.000Z
core/register_core_types.cpp
Quark-Toolkit/Quark
11c29f19a729a8f0990a2a476c661f65a8f897ff
[ "CC-BY-3.0", "Apache-2.0", "MIT" ]
2
2020-03-09T07:44:12.000Z
2021-11-19T01:05:30.000Z
core/register_core_types.cpp
JoshTheDerf/Quark
11c29f19a729a8f0990a2a476c661f65a8f897ff
[ "CC-BY-3.0", "Apache-2.0", "MIT" ]
8
2018-10-10T01:33:46.000Z
2021-06-03T23:11:34.000Z
/*************************************************************************/ /* register_core_types.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
37.537313
112
0.682174
[ "geometry", "object" ]
153ec723c93147425c687bc2bef939e4d96c76da
3,261
cpp
C++
src/util/CPGNode.cpp
wvat/NTRTsim
0443cbd542e12e23c04adf79ea0d8d003c428baa
[ "Apache-2.0" ]
148
2015-01-08T22:44:00.000Z
2022-03-19T18:42:48.000Z
src/util/CPGNode.cpp
wvat/NTRTsim
0443cbd542e12e23c04adf79ea0d8d003c428baa
[ "Apache-2.0" ]
107
2015-01-02T16:41:42.000Z
2021-06-14T22:09:19.000Z
src/util/CPGNode.cpp
wvat/NTRTsim
0443cbd542e12e23c04adf79ea0d8d003c428baa
[ "Apache-2.0" ]
86
2015-01-06T07:02:36.000Z
2022-02-28T17:36:14.000Z
/* * Copyright © 2012, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * All rights reserved. * * The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed * under the Apache License, Version 2.0 (the "License"); * you may not use t...
25.084615
111
0.677093
[ "vector" ]
15431859a07915d1909be112b66c20477181a316
5,586
cpp
C++
modules/task_3/kamskov_e_grackham_hull/main.cpp
orcyyy/pp_2020_autumn_engineer-1
14cb1248b8b765a02eaa4c73f06807c250545491
[ "BSD-3-Clause" ]
null
null
null
modules/task_3/kamskov_e_grackham_hull/main.cpp
orcyyy/pp_2020_autumn_engineer-1
14cb1248b8b765a02eaa4c73f06807c250545491
[ "BSD-3-Clause" ]
1
2020-12-27T20:31:37.000Z
2020-12-27T20:31:37.000Z
modules/task_3/kamskov_e_grackham_hull/main.cpp
schelyanskovan/pp_2020_autumn_engineer
2bacf7ccaf3c638044c41068565a693ac4fae828
[ "BSD-3-Clause" ]
1
2021-03-29T10:15:47.000Z
2021-03-29T10:15:47.000Z
// Copyright 2020 Kamskov Evgeny #include <gtest-mpi-listener.hpp> #include <gtest/gtest.h> #include <iostream> #include <algorithm> #include <vector> #include "./kamskov_e_grackham_hull.h" TEST(Parallel_Operations_MPI, Test_task_10) { int proc_size, proc; MPI_Comm_rank(MPI_COMM_WORLD, &proc); MPI_Comm_siz...
32.666667
89
0.616899
[ "vector" ]
15508704d4187c85076ed5d5cec0fa85a53e85d0
1,695
cpp
C++
leetcode.com/0041 First Missing Positive/main.cpp
sky-bro/AC
29bfa3f13994612887e18065fa6e854b9a29633d
[ "MIT" ]
1
2020-08-20T11:02:49.000Z
2020-08-20T11:02:49.000Z
leetcode.com/0041 First Missing Positive/main.cpp
sky-bro/AC
29bfa3f13994612887e18065fa6e854b9a29633d
[ "MIT" ]
null
null
null
leetcode.com/0041 First Missing Positive/main.cpp
sky-bro/AC
29bfa3f13994612887e18065fa6e854b9a29633d
[ "MIT" ]
1
2022-01-01T23:23:13.000Z
2022-01-01T23:23:13.000Z
#include <iostream> #include <vector> #include <algorithm> using namespace std; // time: O(n), space: O(n) class Solution { public: int firstMissingPositive(vector<int>& nums) { int n = nums.size(), i; vector<bool> _nums(n); for (auto x: nums) if (x <= n && x > 0) _nums[x-1] = true; ...
27.33871
92
0.417699
[ "vector" ]
15585b57eec854b4aa2f312f63c02fa45cc3922d
31,854
cc
C++
flv_tag.cc
xieyugui/ts_flv
2b614ac44b42c7cb7c489fe3305af37f7903d674
[ "Apache-2.0" ]
2
2018-08-01T09:40:50.000Z
2019-09-13T13:27:46.000Z
flv_tag.cc
xieyugui/ts_flv
2b614ac44b42c7cb7c489fe3305af37f7903d674
[ "Apache-2.0" ]
null
null
null
flv_tag.cc
xieyugui/ts_flv
2b614ac44b42c7cb7c489fe3305af37f7903d674
[ "Apache-2.0" ]
2
2017-11-23T09:57:30.000Z
2019-07-17T06:41:49.000Z
/* * @author: daemon.xie * @license: Apache Licence * @contact: xieyugui * @software: CLion * @file: flv_tag.cc * @date: 2017/9/11 上午10:54 * @desc: */ #include "flv_tag.h" static int64_t IOBufferReaderCopy(TSIOBufferReader readerp, void *buf, int64_t length); static const char * get_amf_type_string...
34.141479
155
0.678345
[ "object" ]
155c5fc58d72c2fd1bc210ea6e96cb4643f4e79a
5,745
hxx
C++
main/svx/inc/svx/EnhancedCustomShapeFunctionParser.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/svx/inc/svx/EnhancedCustomShapeFunctionParser.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/svx/inc/svx/EnhancedCustomShapeFunctionParser.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
27.227488
152
0.706005
[ "object", "vector" ]
155ddf6a860a9b0cddc8b3cab3fda817c41dd0f3
1,625
cpp
C++
Algorithm_C/Algorithm_C/LeetCode/01_TwoSum/TwoSum.cpp
chm994483868/HMDailyLearningRecord
95ff0a5347927ce4527bcdd70374e5be22bfc60d
[ "MIT" ]
2
2021-06-26T08:07:04.000Z
2021-08-03T06:05:40.000Z
Algorithm_C/Algorithm_C/LeetCode/01_TwoSum/TwoSum.cpp
chm994483868/HMDailyLearningRecord
95ff0a5347927ce4527bcdd70374e5be22bfc60d
[ "MIT" ]
null
null
null
Algorithm_C/Algorithm_C/LeetCode/01_TwoSum/TwoSum.cpp
chm994483868/HMDailyLearningRecord
95ff0a5347927ce4527bcdd70374e5be22bfc60d
[ "MIT" ]
null
null
null
// // TwoSum.cpp // Algorithm_C // // Created by CHM on 2020/8/5. // Copyright © 2020 CHM. All rights reserved. // #include "TwoSum.hpp" vector<int> TwoSum::twoSum(vector<int>& nums, int target) { map<int, int> a; vector<int> b(2, -1); for (int i = 0; i < nums.size(); ++i) { if (a.count(target...
26.639344
86
0.574769
[ "vector" ]
1562334380d01ea89fdae0d803c44fa147dc8d2a
3,381
cpp
C++
source/MLPartMgr.cpp
luk036/ckpttn-cpp
9d15cdadf5e6b968e6e6a9d5e3db500256a11a6f
[ "Unlicense" ]
null
null
null
source/MLPartMgr.cpp
luk036/ckpttn-cpp
9d15cdadf5e6b968e6e6a9d5e3db500256a11a6f
[ "Unlicense" ]
1
2021-07-24T12:00:14.000Z
2021-08-11T04:35:10.000Z
source/MLPartMgr.cpp
luk036/ckpttn-cpp
9d15cdadf5e6b968e6e6a9d5e3db500256a11a6f
[ "Unlicense" ]
null
null
null
#include <ckpttn/FMConstrMgr.hpp> // for LegalCheck, LegalCheck::allsatisfied #include <ckpttn/MLPartMgr.hpp> // for MLPartMgr #include <cstdint> // for uint8_t #include <gsl/span> // for span #include <memory> // for unique_ptr #include <py2cpp/set.hpp> // f...
38.420455
92
0.659272
[ "vector" ]
156469af45c7a3f8f4858d674487ca5944956198
7,986
cc
C++
pw_protobuf/encoder.cc
curtin-space/pigweed
fe2e1743e03fabd2676f01d9de0ac9d34a426076
[ "Apache-2.0" ]
86
2021-03-09T23:49:40.000Z
2022-03-30T08:14:51.000Z
pw_protobuf/encoder.cc
curtin-space/pigweed
fe2e1743e03fabd2676f01d9de0ac9d34a426076
[ "Apache-2.0" ]
4
2021-07-27T20:32:03.000Z
2022-03-08T10:39:07.000Z
pw_protobuf/encoder.cc
curtin-space/pigweed
fe2e1743e03fabd2676f01d9de0ac9d34a426076
[ "Apache-2.0" ]
22
2021-03-11T15:15:47.000Z
2022-02-09T06:16:36.000Z
// Copyright 2021 The Pigweed Authors // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agre...
34.274678
80
0.697596
[ "object" ]
15649c1efe61adfa7d63c36382e6b6b50fcf5601
1,051
cpp
C++
aws-cpp-sdk-elasticfilesystem/source/model/UpdateFileSystemRequest.cpp
Neusoft-Technology-Solutions/aws-sdk-cpp
88c041828b0dbee18a297c3cfe98c5ecd0706d0b
[ "Apache-2.0" ]
1
2022-02-10T08:06:54.000Z
2022-02-10T08:06:54.000Z
aws-cpp-sdk-elasticfilesystem/source/model/UpdateFileSystemRequest.cpp
Neusoft-Technology-Solutions/aws-sdk-cpp
88c041828b0dbee18a297c3cfe98c5ecd0706d0b
[ "Apache-2.0" ]
1
2022-01-03T23:59:37.000Z
2022-01-03T23:59:37.000Z
aws-cpp-sdk-elasticfilesystem/source/model/UpdateFileSystemRequest.cpp
ravindra-wagh/aws-sdk-cpp
7d5ff01b3c3b872f31ca98fb4ce868cd01e97696
[ "Apache-2.0" ]
1
2022-02-28T21:36:42.000Z
2022-02-28T21:36:42.000Z
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/elasticfilesystem/model/UpdateFileSystemRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::EFS::Model; using namespace Aws::Utils::Json;...
23.355556
106
0.778306
[ "model" ]
d07ee3333c99aacc70c7ccf4692063bcdca112c9
15,116
cpp
C++
PuzzleCommon/PuzzleImageSource.cpp
x-sheep/puzzles
86c38672865a6e2acb3386c0f3b12954a4c2a257
[ "MIT" ]
5
2017-05-02T08:53:03.000Z
2020-12-07T02:04:15.000Z
PuzzleCommon/PuzzleImageSource.cpp
x-sheep/puzzles
86c38672865a6e2acb3386c0f3b12954a4c2a257
[ "MIT" ]
7
2019-07-18T00:06:02.000Z
2022-02-20T20:10:47.000Z
PuzzleCommon/PuzzleImageSource.cpp
x-sheep/puzzles
86c38672865a6e2acb3386c0f3b12954a4c2a257
[ "MIT" ]
null
null
null
//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. /...
28.520755
166
0.721818
[ "render", "object", "transform", "solid" ]
d081612c3730d20db0bb1b5c362b40b44155efe6
18,550
cpp
C++
src/Evolution/Systems/NewtonianEuler/BoundaryCorrections/Hllc.cpp
macedo22/spectre
97b2b7ae356cf86830258cb5f689f1191fdb6ddd
[ "MIT" ]
1
2018-10-01T06:07:16.000Z
2018-10-01T06:07:16.000Z
src/Evolution/Systems/NewtonianEuler/BoundaryCorrections/Hllc.cpp
macedo22/spectre
97b2b7ae356cf86830258cb5f689f1191fdb6ddd
[ "MIT" ]
4
2018-06-04T20:26:40.000Z
2018-07-27T14:54:55.000Z
src/Evolution/Systems/NewtonianEuler/BoundaryCorrections/Hllc.cpp
macedo22/spectre
97b2b7ae356cf86830258cb5f689f1191fdb6ddd
[ "MIT" ]
null
null
null
// Distributed under the MIT License. // See LICENSE.txt for details. #include "Evolution/Systems/NewtonianEuler/BoundaryCorrections/Hllc.hpp" #include <cmath> #include <memory> #include <optional> #include <pup.h> #include "DataStructures/DataVector.hpp" #include "DataStructures/Tags/TempTensor.hpp" #include "DataS...
50.68306
80
0.641348
[ "mesh" ]
d088b2261902e91fa53fbf7bfa8a6fdc085e03bd
15,070
cpp
C++
src/objects/computer_vision/BackgroundSubtraction.cpp
DHaylock/ofxVisualProgramming
ea821226d7903ff18f7594086b90090e13c84080
[ "MIT" ]
2
2018-09-11T13:17:32.000Z
2018-11-12T02:29:51.000Z
src/objects/computer_vision/BackgroundSubtraction.cpp
DHaylock/ofxVisualProgramming
ea821226d7903ff18f7594086b90090e13c84080
[ "MIT" ]
null
null
null
src/objects/computer_vision/BackgroundSubtraction.cpp
DHaylock/ofxVisualProgramming
ea821226d7903ff18f7594086b90090e13c84080
[ "MIT" ]
null
null
null
/*============================================================================== ofxVisualProgramming: A visual programming patching environment for OF Copyright (c) 2018 Emanuele Mazza aka n3m3da <emanuelemazza@d3cod3.org> ofxVisualProgramming is distributed under the MIT License. This gives everyon...
44.064327
419
0.615395
[ "vector" ]
d09f707186a9bcd6c82449e8a52a13df33c4e8d9
596
cc
C++
code/dataStructures/DSUV.cc
Zeldacrafter/CompProg
5367583f45b6fe30c4c84f3ae81accf14f8f7fd3
[ "Unlicense" ]
4
2020-02-06T15:44:57.000Z
2020-12-21T03:51:21.000Z
code/dataStructures/DSUV.cc
Zeldacrafter/CompProg
5367583f45b6fe30c4c84f3ae81accf14f8f7fd3
[ "Unlicense" ]
null
null
null
code/dataStructures/DSUV.cc
Zeldacrafter/CompProg
5367583f45b6fe30c4c84f3ae81accf14f8f7fd3
[ "Unlicense" ]
null
null
null
#include "../template.hh" template<typename V, typename F> struct DSU { int sz; vi p; vector<V> v; F f; DSU(int size, const V& _v, F _f) : sz{size}, p(size, -1), v(size, _v), f{_f} {} bool sameSet(int a, int b) { return find(a) == find(b); } int find(int x) { return p[x] < 0 ? x : p[x] = find(p[x]); }...
25.913043
62
0.496644
[ "vector" ]
d0a15adde5824d7f9a86585fea5df29f177e793f
953
cpp
C++
iterator/iterator.cpp
iceylala/design-pattern
62865dd8ede485be874556233b0d9469139fdc85
[ "MIT" ]
null
null
null
iterator/iterator.cpp
iceylala/design-pattern
62865dd8ede485be874556233b0d9469139fdc85
[ "MIT" ]
null
null
null
iterator/iterator.cpp
iceylala/design-pattern
62865dd8ede485be874556233b0d9469139fdc85
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using namespace std; class Iter { public: virtual void next()=0; virtual void first()=0; virtual int* current()=0; }; class Iterm { public: virtual Iter* create()=0; }; class ConIterm:public Iterm { public: vector<int> data; ConIterm(){ data.push_back(1); ...
13.054795
40
0.592865
[ "vector" ]