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
64356a56e03c56ce69c3546a7c1b1e5ca2f881a0
6,119
hpp
C++
examples/simple/src/codegen_helpers/type_erasure_common.hpp
mohibqureshi/CXXCTP
db7c80da469fe3511f7d8ac7f7dee7391122dac6
[ "MIT" ]
63
2019-08-30T11:53:47.000Z
2021-05-19T06:17:47.000Z
examples/simple/src/codegen_helpers/type_erasure_common.hpp
mohibqureshi/CXXCTP
db7c80da469fe3511f7d8ac7f7dee7391122dac6
[ "MIT" ]
96
2019-09-16T05:03:31.000Z
2020-10-14T14:33:50.000Z
examples/simple/src/codegen_helpers/type_erasure_common.hpp
mohibqureshi/CXXCTP
db7c80da469fe3511f7d8ac7f7dee7391122dac6
[ "MIT" ]
27
2019-09-25T10:12:37.000Z
2020-05-06T02:59:44.000Z
#pragma once //#include <iterator> // see https://vjordan.info/log/fpga/c-enum-range-based-for-loop.html #include <array> #include <memory> namespace cxxctp { namespace generated { // _tc_model_t is the base class for _tc_impl_t. _tc_impl_t has the storage for the // object of type_t. _tc_model_t has a virtual dtor ...
30.442786
115
0.673639
[ "object", "model" ]
643796154b2ded67ea531601698ec7d7fca011bc
9,457
cc
C++
wrappers/8.1.1/vtkSubdivisionFilterWrap.cc
axkibe/node-vtk
900ad7b5500f672519da5aa24c99aa5a96466ef3
[ "BSD-3-Clause" ]
6
2016-02-03T12:48:36.000Z
2020-09-16T15:07:51.000Z
wrappers/8.1.1/vtkSubdivisionFilterWrap.cc
axkibe/node-vtk
900ad7b5500f672519da5aa24c99aa5a96466ef3
[ "BSD-3-Clause" ]
4
2016-02-13T01:30:43.000Z
2020-03-30T16:59:32.000Z
wrappers/8.1.1/vtkSubdivisionFilterWrap.cc
axkibe/node-vtk
900ad7b5500f672519da5aa24c99aa5a96466ef3
[ "BSD-3-Clause" ]
null
null
null
/* this file has been autogenerated by vtkNodeJsWrap */ /* editing this might proof futile */ #define VTK_WRAPPING_CXX #define VTK_STREAMS_FWD_ONLY #include <nan.h> #include "vtkPolyDataAlgorithmWrap.h" #include "vtkSubdivisionFilterWrap.h" #include "vtkObjectBaseWrap.h" #include "../../plus/plus.h" using namespace ...
33.416961
109
0.757111
[ "object" ]
6437e7973d927c5c107924438bcc119e2ad6f34f
7,809
cpp
C++
Fragmenter/SortedOrderFragmenter.cpp
titawork/omniscidb
4d89ae397a00adedd91697b49ed06078cbf33e64
[ "Apache-2.0" ]
null
null
null
Fragmenter/SortedOrderFragmenter.cpp
titawork/omniscidb
4d89ae397a00adedd91697b49ed06078cbf33e64
[ "Apache-2.0" ]
null
null
null
Fragmenter/SortedOrderFragmenter.cpp
titawork/omniscidb
4d89ae397a00adedd91697b49ed06078cbf33e64
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2019 OmniSci, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
34.25
87
0.651812
[ "vector" ]
644218e055124d28ddd3ea117900f86042caef31
20,584
cpp
C++
plugins/opencv/uw_predictor/featureExtraction.cpp
Kitware/VAIME
47b24b9d8a208cf8c621e5bb1088c61fcf507af6
[ "BSD-3-Clause" ]
127
2019-05-23T10:05:25.000Z
2022-03-28T05:14:11.000Z
plugins/opencv/uw_predictor/featureExtraction.cpp
Kitware/VAIME
47b24b9d8a208cf8c621e5bb1088c61fcf507af6
[ "BSD-3-Clause" ]
39
2019-06-18T21:44:58.000Z
2022-01-12T14:47:01.000Z
plugins/opencv/uw_predictor/featureExtraction.cpp
Kitware/VAIME
47b24b9d8a208cf8c621e5bb1088c61fcf507af6
[ "BSD-3-Clause" ]
40
2016-08-23T21:44:17.000Z
2019-04-20T23:39:53.000Z
#include "featureExtraction.h" #include "util.h" void localBinaryPatterns(InputArray src, OutputArray dst, int radius) { if(!src.obj) return; Mat img = src.getMat(); dst.create(img.size(), CV_8U); Mat outImg = dst.getMat(); for(int y = radius; y < img.rows - radius; ++y){ for(int x = radius; x < img...
25.506815
122
0.557035
[ "vector" ]
6447c609515cc9871eb51966f7cf5366b51ee96a
3,780
hpp
C++
pc/attr_id.hpp
rtilder/pyth-client
aaf33e1dd13c7c945f1545dd5b207646cba034d3
[ "Apache-2.0" ]
89
2021-05-13T15:05:45.000Z
2022-03-17T16:42:21.000Z
pc/attr_id.hpp
rtilder/pyth-client
aaf33e1dd13c7c945f1545dd5b207646cba034d3
[ "Apache-2.0" ]
46
2021-05-14T15:26:14.000Z
2022-03-31T11:33:48.000Z
pc/attr_id.hpp
rtilder/pyth-client
aaf33e1dd13c7c945f1545dd5b207646cba034d3
[ "Apache-2.0" ]
50
2021-05-18T05:10:38.000Z
2022-03-31T22:26:28.000Z
#pragma once #include <pc/hash_map.hpp> #include <pc/net_socket.hpp> #include <pc/misc.hpp> #include <pc/jtree.hpp> #include <oracle/oracle.h> namespace pc { // product reference attribute id class attr_id { public: attr_id(); attr_id( uint32_t ); attr_id( str ); bool is_valid() const; ...
21.355932
68
0.609524
[ "vector" ]
644da7afb6cea9c330617f868cdad6b87bac95f7
534
cpp
C++
Pinochle/Pinochle.cpp
nparajul/Pinochle
5cf692deb21be40929dd77659e98e42a79aedbbd
[ "MIT" ]
1
2020-11-03T18:08:18.000Z
2020-11-03T18:08:18.000Z
Pinochle/Pinochle.cpp
nparajul/Pinochle
5cf692deb21be40929dd77659e98e42a79aedbbd
[ "MIT" ]
null
null
null
Pinochle/Pinochle.cpp
nparajul/Pinochle
5cf692deb21be40929dd77659e98e42a79aedbbd
[ "MIT" ]
null
null
null
/* ************************************************************ * Name: Nitesh Parajuli * * Project: Project 1 Pinochle C++ * * Class: CMPS366 OPL * * Date: 09/29/2020 * ******************************************...
19.777778
60
0.361423
[ "object" ]
644eff020961c8a4035bb94ac813950ff11d32ed
6,298
hpp
C++
lib/clustering_phases/initialization.hpp
YannisLamp/crypto_recommendation
b7c0d2a4e11080470a6ded43459ab39cd183dd81
[ "MIT" ]
1
2021-03-17T00:43:46.000Z
2021-03-17T00:43:46.000Z
lib/clustering_phases/initialization.hpp
YannisLamp/crypto-recommendation
b7c0d2a4e11080470a6ded43459ab39cd183dd81
[ "MIT" ]
null
null
null
lib/clustering_phases/initialization.hpp
YannisLamp/crypto-recommendation
b7c0d2a4e11080470a6ded43459ab39cd183dd81
[ "MIT" ]
null
null
null
#ifndef CLUSTER_INITIALIZATION_H #define CLUSTER_INITIALIZATION_H #include <iostream> #include <string> #include <vector> #include <unordered_map> #include <chrono> #include <random> #include "../data_structures/cust_vector.hpp" /* * Functions used to implement various initialization algorithms required for vecto...
39.3625
128
0.638457
[ "vector" ]
6457340b2216555e3291c670e24c3588c1a6ae1c
3,640
cxx
C++
source/Tools/ComputeLandmarkRegistrationError.cxx
tschuls/ETH-SegReg-DLL
34bd10464dc5e8b3c7bf3371ca1e190d692385b7
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
source/Tools/ComputeLandmarkRegistrationError.cxx
tschuls/ETH-SegReg-DLL
34bd10464dc5e8b3c7bf3371ca1e190d692385b7
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
source/Tools/ComputeLandmarkRegistrationError.cxx
tschuls/ETH-SegReg-DLL
34bd10464dc5e8b3c7bf3371ca1e190d692385b7
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
#include "Log.h" #include <stdio.h> #include <iostream> #include "ArgumentParser.h" #include "ImageUtils.h" #include "TransformationUtils.h" #include <itkWarpImageFilter.h> #include <fstream> #include <itkInverseDisplacementFieldImageFilter.h> using namespace std; using namespace itk; int main(int argc, char ** ...
35.686275
117
0.688462
[ "vector" ]
645b85254dc80d0fe61415795c2d4e9aee7228f4
19,236
cpp
C++
Sources/External/node/elastos/external/chromium_org/third_party/WebKit/Source/modules/modules_gyp/bindings/core/v8/V8SVGTextContentElement.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
7
2017-07-13T10:34:54.000Z
2021-04-16T05:40:35.000Z
Sources/External/node/elastos/external/chromium_org/third_party/WebKit/Source/modules/modules_gyp/bindings/core/v8/V8SVGTextContentElement.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
null
null
null
Sources/External/node/elastos/external/chromium_org/third_party/WebKit/Source/modules/modules_gyp/bindings/core/v8/V8SVGTextContentElement.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
9
2017-07-13T12:33:20.000Z
2021-06-19T02:46:48.000Z
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! #include "config.h" #include "V8SVGTextContentElement.h" #include "bindings...
45.261176
367
0.764192
[ "object" ]
645f0c1046133da1ce8db1dc9d385778931f2e3f
11,008
cpp
C++
Extern/mssdk_dx7/samples/Multimedia/DSound/src/AdjustSound/adjustsound.cpp
Ybalrid/orbiter
7bed82f845ea8347f238011367e07007b0a24099
[ "MIT" ]
1,040
2021-07-27T12:12:06.000Z
2021-08-02T14:24:49.000Z
Extern/mssdk_dx7/samples/Multimedia/DSound/src/AdjustSound/adjustsound.cpp
Ybalrid/orbiter
7bed82f845ea8347f238011367e07007b0a24099
[ "MIT" ]
20
2021-07-27T12:25:22.000Z
2021-08-02T12:22:19.000Z
Extern/mssdk_dx7/samples/Multimedia/DSound/src/AdjustSound/adjustsound.cpp
Ybalrid/orbiter
7bed82f845ea8347f238011367e07007b0a24099
[ "MIT" ]
71
2021-07-27T14:19:49.000Z
2021-08-02T05:51:52.000Z
//----------------------------------------------------------------------------- // File: AdjustSound.cpp // // Desc: DirectSound support for how to load a wave file and play it using a // static DirectSound buffer and adjust its focus, frequency, // pan, and volume. // // Copyright (c) 1999 Microsoft Corp....
29.831978
94
0.520803
[ "object" ]
6463716f4cc7cedfb990fd99ab9e79833cb20bbb
3,077
cpp
C++
grasp_generation/graspitmodified_lm/Coin-3.1.3/src/lists/SoPickedPointList.cpp
KraftOreo/EBM_Hand
9ab1722c196b7eb99b4c3ecc85cef6e8b1887053
[ "MIT" ]
null
null
null
grasp_generation/graspitmodified_lm/Coin-3.1.3/src/lists/SoPickedPointList.cpp
KraftOreo/EBM_Hand
9ab1722c196b7eb99b4c3ecc85cef6e8b1887053
[ "MIT" ]
null
null
null
grasp_generation/graspitmodified_lm/Coin-3.1.3/src/lists/SoPickedPointList.cpp
KraftOreo/EBM_Hand
9ab1722c196b7eb99b4c3ecc85cef6e8b1887053
[ "MIT" ]
null
null
null
/**************************************************************************\ * * This file is part of the Coin 3D visualization library. * Copyright (C) by Kongsberg Oil & Gas Technologies. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public ...
29.304762
90
0.685408
[ "3d" ]
6465e52c8f2da78c0d0ec53714dc7494e07d6df5
1,491
cpp
C++
C++/restore-ip-addresses.cpp
xenron/sandbox-dev-lintcode
114145723af43eafc84ff602ad3ac7b353a9fc38
[ "MIT" ]
695
2015-04-18T16:11:56.000Z
2022-03-11T13:28:44.000Z
C++/restore-ip-addresses.cpp
Abd-Elrazek/LintCode
8f6ee0ff38cb7cf8bf9fca800243823931604155
[ "MIT" ]
4
2015-07-04T13:07:35.000Z
2020-08-11T11:32:29.000Z
C++/restore-ip-addresses.cpp
Abd-Elrazek/LintCode
8f6ee0ff38cb7cf8bf9fca800243823931604155
[ "MIT" ]
338
2015-04-28T04:39:03.000Z
2022-03-16T03:00:15.000Z
// Time: O(n^m) = O(3^4) // Space: O(n * m) = O(3 * 4) class Solution { public: /** * @param s the IP string * @return All possible valid IP addresses */ vector<string> restoreIpAddresses(string& s) { vector<string> result; string cur; restoreIpAddressesHelper(s, 0, 0, &...
30.428571
78
0.423877
[ "vector" ]
6472f43613f9515d00829665f21f64096799147f
5,770
cpp
C++
src/tgcreator/tgCompoundRigidInfo.cpp
wvat/NTRTsim
0443cbd542e12e23c04adf79ea0d8d003c428baa
[ "Apache-2.0" ]
148
2015-01-08T22:44:00.000Z
2022-03-19T18:42:48.000Z
src/tgcreator/tgCompoundRigidInfo.cpp
wvat/NTRTsim
0443cbd542e12e23c04adf79ea0d8d003c428baa
[ "Apache-2.0" ]
107
2015-01-02T16:41:42.000Z
2021-06-14T22:09:19.000Z
src/tgcreator/tgCompoundRigidInfo.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...
28.284314
83
0.647834
[ "shape" ]
6474f2407e76a71779ccb29de0890d34cb71665f
3,738
cpp
C++
src/app/voltdb/voltdb_src/src/ee/topics/encode/CsvEncoder.cpp
OpenMPDK/SMDK
8f19d32d999731242cb1ab116a4cb445d9993b15
[ "BSD-3-Clause" ]
44
2022-03-16T08:32:31.000Z
2022-03-31T16:02:35.000Z
src/app/voltdb/voltdb_src/src/ee/topics/encode/CsvEncoder.cpp
H2O0Lee/SMDK
eff49bc17a55a83ea968112feb2e2f2ea18c4ff5
[ "BSD-3-Clause" ]
1
2022-03-29T02:30:28.000Z
2022-03-30T03:40:46.000Z
src/app/voltdb/voltdb_src/src/ee/topics/encode/CsvEncoder.cpp
H2O0Lee/SMDK
eff49bc17a55a83ea968112feb2e2f2ea18c4ff5
[ "BSD-3-Clause" ]
18
2022-03-19T04:41:04.000Z
2022-03-31T03:32:12.000Z
/* This file is part of VoltDB. * Copyright (C) 2020 VoltDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later v...
32.504348
96
0.654093
[ "vector" ]
647ceb477f51df8e0f0f1dfd56fa101838cbee1b
3,515
cpp
C++
PyFlex/core/voxelize.cpp
ipab-rad/softgym
eeee770d8720c2cebaa9c5f72408b3340b07d367
[ "BSD-3-Clause" ]
147
2020-11-12T16:48:55.000Z
2022-03-29T02:21:13.000Z
PyFlex/core/voxelize.cpp
ipab-rad/softgym
eeee770d8720c2cebaa9c5f72408b3340b07d367
[ "BSD-3-Clause" ]
28
2020-11-20T23:09:58.000Z
2022-03-31T14:51:16.000Z
PyFlex/core/voxelize.cpp
ipab-rad/softgym
eeee770d8720c2cebaa9c5f72408b3340b07d367
[ "BSD-3-Clause" ]
29
2020-11-12T06:25:19.000Z
2022-03-28T14:10:55.000Z
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentation...
37.393617
197
0.708108
[ "mesh" ]
647d6f2d50c816016c77a7ea85ca97610e633841
6,025
cpp
C++
GRL/Axon/Main.cpp
teppyboy/Generic_Exploit_Loader
5323751195d25cdfd2dc8823c67ede579d0e1aa3
[ "MIT" ]
1
2020-08-11T04:44:31.000Z
2020-08-11T04:44:31.000Z
GRL/Axon/Main.cpp
teppyboy/Generic_Exploit_Loader
5323751195d25cdfd2dc8823c67ede579d0e1aa3
[ "MIT" ]
1
2019-09-17T18:39:00.000Z
2019-10-12T12:52:15.000Z
GRL/Axon/Main.cpp
teppyboy/Generic_Exploit_Loader
5323751195d25cdfd2dc8823c67ede579d0e1aa3
[ "MIT" ]
2
2020-06-15T04:43:59.000Z
2021-04-09T23:53:51.000Z
#include "globals.h" #include "Bridge.h" #include <string> #include <iostream> #include <stdlib.h> #include <vector> #include <iterator> #include <fstream> #include <intrin.h> #include <Tlhelp32.h> #include <CommCtrl.h> #include <Wininet.h> #pragma comment(lib, "wininet.lib") using namespace std; DWORD ScriptContext;...
26.897321
258
0.699253
[ "vector" ]
647e6cba30d78cb67204c172f83e4f7cd9612b9a
10,629
cpp
C++
ExplorerF1Disabler/ExplorerF1Disabler.cpp
udaken/ExplorerF1Disabler
871e0b4d0f64255f78ce34c355af9c6b4d3eccce
[ "MIT" ]
null
null
null
ExplorerF1Disabler/ExplorerF1Disabler.cpp
udaken/ExplorerF1Disabler
871e0b4d0f64255f78ce34c355af9c6b4d3eccce
[ "MIT" ]
null
null
null
ExplorerF1Disabler/ExplorerF1Disabler.cpp
udaken/ExplorerF1Disabler
871e0b4d0f64255f78ce34c355af9c6b4d3eccce
[ "MIT" ]
null
null
null
#include "framework.h" #include "resource.h" #include <shlobj.h> #include <assert.h> #include <wil/com.h> #include <wil/resource.h> #include <wil/result.h> #pragma comment(lib, "Version.lib") #pragma comment(linker, "/manifestdependency:\"type='win32' \ name='Microsoft.Windows.Common-Controls' \ version='6...
27.679688
115
0.636184
[ "vector" ]
52cb6be6d6d48535cdfe44fdb0f5dc8c238a79a0
3,375
cpp
C++
qtmultimedia/src/multimedia/controls/qcameracapturebufferformatcontrol.cpp
wgnet/wds_qt
8db722fd367d2d0744decf99ac7bafaba8b8a3d3
[ "Apache-2.0" ]
1
2020-04-30T15:47:35.000Z
2020-04-30T15:47:35.000Z
qtmultimedia/src/multimedia/controls/qcameracapturebufferformatcontrol.cpp
wgnet/wds_qt
8db722fd367d2d0744decf99ac7bafaba8b8a3d3
[ "Apache-2.0" ]
null
null
null
qtmultimedia/src/multimedia/controls/qcameracapturebufferformatcontrol.cpp
wgnet/wds_qt
8db722fd367d2d0744decf99ac7bafaba8b8a3d3
[ "Apache-2.0" ]
null
null
null
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may ...
31.542056
123
0.737778
[ "object" ]
52d1026340694c4e142f722976168e926293a96f
2,357
hpp
C++
src/mlpack/bindings/python/import_decl.hpp
MJ10/mlpack
3f87ab1d419493dead8ef59250c02cc7aacc0adb
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-05-02T21:10:55.000Z
2021-05-02T21:10:55.000Z
src/mlpack/bindings/python/import_decl.hpp
MJ10/mlpack
3f87ab1d419493dead8ef59250c02cc7aacc0adb
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
src/mlpack/bindings/python/import_decl.hpp
MJ10/mlpack
3f87ab1d419493dead8ef59250c02cc7aacc0adb
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
/** * @file import_decl.hpp * @author Ryan Curtin * * For a serializable model, print the class import. */ #ifndef MLPACK_BINDINGS_PYTHON_IMPORT_DECL_HPP #define MLPACK_BINDINGS_PYTHON_IMPORT_DECL_HPP #include <mlpack/prereqs.hpp> #include "strip_type.hpp" namespace mlpack { namespace bindings { namespace python...
26.188889
79
0.66695
[ "model" ]
52d4f670eaf71ba3033ff7546b1401129251d1ad
7,965
cpp
C++
Gems/Atom/RPI/Code/Tests.Builders/ResourcePoolBuilderTest.cpp
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-07-20T12:39:24.000Z
2021-07-20T12:39:24.000Z
Gems/Atom/RPI/Code/Tests.Builders/ResourcePoolBuilderTest.cpp
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
null
null
null
Gems/Atom/RPI/Code/Tests.Builders/ResourcePoolBuilderTest.cpp
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-07-20T11:07:25.000Z
2021-07-20T11:07:25.000Z
/* * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include <AzTest/AzTest.h> #include <AtomCore/Serialization/Json/JsonUtils.h> #include <Atom/RHI.R...
43.763736
158
0.717137
[ "3d" ]
52e72fc0252e86ce399f03238cefb4c980a684d1
3,635
cpp
C++
ork.tool/src/qtui/pybindings.cpp
tweakoz/orkid
e3f78dfb3375853fd512a9d0828b009075a18345
[ "BSL-1.0" ]
25
2015-02-21T04:21:21.000Z
2022-01-20T05:19:27.000Z
ork.tool/src/qtui/pybindings.cpp
tweakoz/orkid
e3f78dfb3375853fd512a9d0828b009075a18345
[ "BSL-1.0" ]
113
2019-08-23T04:52:14.000Z
2021-09-13T04:04:11.000Z
ork.tool/src/qtui/pybindings.cpp
tweakoz/orkid
e3f78dfb3375853fd512a9d0828b009075a18345
[ "BSL-1.0" ]
4
2017-02-20T18:17:55.000Z
2020-06-28T03:47:55.000Z
#include <Python.h> #include <pybind11/pybind11.h> #include <pybind11/operators.h> #include <pybind11/stl.h> #include <orktool/qtui/qtui_tool.h> #include <ork/kernel/fixedstring.hpp> #include <pkg/ent/scene.h> #include <ostream> /////////////////////////////////////////////////////////////////////////////// namespace ...
37.864583
123
0.4
[ "object" ]
52e971f1eb98e4527292118224742d0514c4bffe
1,905
cpp
C++
test/delaunator-test.cpp
harveydevereux/CUDA-Whirligigs
b03b3271d4959cc22631bf5e71b0f04c7d583727
[ "CC0-1.0" ]
1
2021-04-09T21:36:16.000Z
2021-04-09T21:36:16.000Z
test/delaunator-test.cpp
harveydevereux/CUDA-Whirligigs
b03b3271d4959cc22631bf5e71b0f04c7d583727
[ "CC0-1.0" ]
null
null
null
test/delaunator-test.cpp
harveydevereux/CUDA-Whirligigs
b03b3271d4959cc22631bf5e71b0f04c7d583727
[ "CC0-1.0" ]
null
null
null
#include "../include/density.h" int main(int argc, char ** argv) { int N = 0; std::ifstream inputFile; inputFile.open(argv[1]); std::vector<double> coords; if (inputFile.is_open()){ std::string line; while (std::getline(inputFile,line)){ // x,y double x = 0...
27.608696
94
0.491864
[ "vector" ]
52f76ecf435844f979fe37fcddd2fa52bc3c7a27
3,780
cpp
C++
MMOCoreORB/src/server/zone/objects/tangible/terminal/components/PowerRegulatorMenuComponent.cpp
V-Fib/FlurryClone
40e0ca7245ec31b3815eb6459329fd9e70f88936
[ "Zlib", "OpenSSL" ]
18
2017-02-09T15:36:05.000Z
2021-12-21T04:22:15.000Z
MMOCoreORB/src/server/zone/objects/tangible/terminal/components/PowerRegulatorMenuComponent.cpp
V-Fib/FlurryClone
40e0ca7245ec31b3815eb6459329fd9e70f88936
[ "Zlib", "OpenSSL" ]
61
2016-12-30T21:51:10.000Z
2021-12-10T20:25:56.000Z
MMOCoreORB/src/server/zone/objects/tangible/terminal/components/PowerRegulatorMenuComponent.cpp
V-Fib/FlurryClone
40e0ca7245ec31b3815eb6459329fd9e70f88936
[ "Zlib", "OpenSSL" ]
71
2017-01-01T05:34:38.000Z
2022-03-29T01:04:00.000Z
/* * PowerRegulatorMenuComponent.cpp * * Created on: Nov 2, 2012 * Author: root */ #include "PowerRegulatorMenuComponent.h" #include "server/zone/Zone.h" #include "server/zone/packets/object/ObjectMenuResponse.h" #include "server/zone/objects/scene/SceneObject.h" #include "server/zone/objects/creature/Creat...
38.181818
193
0.759524
[ "object" ]
52f77e84a767b22cc7659568158805418159e009
23,521
cc
C++
db/db_mv_test.cc
essethon/leveldb
fc604bf7ba7e67026e84b19f8baa553fc249719f
[ "BSD-3-Clause" ]
1
2021-06-08T16:03:50.000Z
2021-06-08T16:03:50.000Z
db/db_mv_test.cc
essethon/leveldb
fc604bf7ba7e67026e84b19f8baa553fc249719f
[ "BSD-3-Clause" ]
null
null
null
db/db_mv_test.cc
essethon/leveldb
fc604bf7ba7e67026e84b19f8baa553fc249719f
[ "BSD-3-Clause" ]
null
null
null
// // Created by Xiaofei ZHAO on 30/4/2021. // #include "leveldb/db.h" #include <atomic> #include <cinttypes> #include <string> #include <chrono> #include <ctime> #include "gtest/gtest.h" #include "benchmark/benchmark.h" #include "db/db_impl.h" #include "db/filename.h" #include "db/version_set.h" #include "db/write...
29.218634
85
0.62289
[ "vector", "3d" ]
52f890007a999f32a5e7eadde94adf43b80958d6
2,193
cpp
C++
BioNetGen-2.3.0/source_NFsim/validate/BioNetGen-2.2.6-stable/Network3/src/pla/util/sbChecker.cpp
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
53
2015-03-15T20:33:36.000Z
2022-02-25T12:07:26.000Z
BioNetGen-2.3.0/source_NFsim/validate/BioNetGen-2.2.6-stable/Network3/src/pla/util/sbChecker.cpp
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
85
2015-03-19T19:58:19.000Z
2022-02-28T20:38:17.000Z
BioNetGen-2.3.0/source_NFsim/validate/BioNetGen-2.2.6-stable/Network3/src/pla/util/sbChecker.cpp
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
34
2015-05-02T23:46:57.000Z
2021-12-22T19:35:58.000Z
/* * sbChecker.cpp * * Created on: Mar 15, 2012 * Author: Leonard Harris */ #include "plCheckers.hh" SBChecker::SBChecker(double eps, vector<SimpleSpecies*>& sp) : eps(eps), sp(sp){ if (debug) cout << "SBChecker constructor called." << endl; // Error check if (eps < 0.0 || eps > 1.0){ cout << "Error...
30.458333
119
0.565891
[ "vector" ]
52fd9ca1c65dc2c4c6be0a53e97d929851de02b2
927
cpp
C++
src/player/player_smart_cross.cpp
KrutNA/tic-tac-toe-cpp
a356fc168281df6ee114c3f2ac6ba6bf766479ae
[ "MIT" ]
1
2021-12-23T21:32:14.000Z
2021-12-23T21:32:14.000Z
src/player/player_smart_cross.cpp
KrutNA/tic-tac-toe-cpp
a356fc168281df6ee114c3f2ac6ba6bf766479ae
[ "MIT" ]
null
null
null
src/player/player_smart_cross.cpp
KrutNA/tic-tac-toe-cpp
a356fc168281df6ee114c3f2ac6ba6bf766479ae
[ "MIT" ]
null
null
null
#include "player_smart.hpp" namespace core::player { static const std::vector<std::pair<StateHash, Point>> pointMapsByStepCross[] = { { // Step 0 {0'111'111'111, {0, 0}}, }, { // Step 1 {0'211'111'114, {0, 2}}, // leads to win {0'277'777'771, {2, 2}}, }, { // Step 2 {0'277'717'772, {1, 1}}, ...
21.068182
80
0.519957
[ "vector" ]
5e06960b5fdc2514f6b6f166aa8d86bdd3621282
3,704
cpp
C++
tools/bpp-core/src/Bpp/Text/StringTokenizer.cpp
danydoerr/spp_dcj
1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a
[ "MIT" ]
2
2021-08-24T16:03:30.000Z
2022-03-18T14:52:43.000Z
tools/bpp-core/src/Bpp/Text/StringTokenizer.cpp
danydoerr/spp_dcj
1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a
[ "MIT" ]
null
null
null
tools/bpp-core/src/Bpp/Text/StringTokenizer.cpp
danydoerr/spp_dcj
1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a
[ "MIT" ]
null
null
null
// // File: StringTokenizer.cpp // Author : Julien Dutheil // Sylvain Gaillard // Last modification : Monday September 20 2004 // /* Copyright or © or Copr. Bio++ Development Team, (November 17, 2004) This software is a computer program whose purpose is to provide utilitary classes. This file belongs to the ...
31.65812
121
0.693305
[ "solid" ]
5e0786e0a2bb31ccac5f19f0cf1db500f0b3a13b
2,846
cpp
C++
src/game/state.cpp
Gripnook/dynamic-connect-4
88bfcd7a6f6528e065e9c232d0c77e80cd212e8b
[ "MIT" ]
null
null
null
src/game/state.cpp
Gripnook/dynamic-connect-4
88bfcd7a6f6528e065e9c232d0c77e80cd212e8b
[ "MIT" ]
null
null
null
src/game/state.cpp
Gripnook/dynamic-connect-4
88bfcd7a6f6528e065e9c232d0c77e80cd212e8b
[ "MIT" ]
null
null
null
#include "game/state.h" #include <vector> #include <iostream> #include <algorithm> namespace DynamicConnect4 { bool operator==(const State& lhs, const State& rhs) { return lhs.isPlayerOne == rhs.isPlayerOne && lhs.whitePieces == rhs.whitePieces && lhs.blackPieces == rhs.blackPieces; } bool opera...
24.118644
64
0.453619
[ "vector" ]
5e0c26734f9633ac13bdd51b20d112a43af313f7
3,211
cpp
C++
tabnine-vim/third_party/ycmd/cpp/ycm/CodePoint.cpp
MrMonk3y/vimrc
950230fb3fd7991d1234c2ab516ec03245945677
[ "MIT" ]
null
null
null
tabnine-vim/third_party/ycmd/cpp/ycm/CodePoint.cpp
MrMonk3y/vimrc
950230fb3fd7991d1234c2ab516ec03245945677
[ "MIT" ]
null
null
null
tabnine-vim/third_party/ycmd/cpp/ycm/CodePoint.cpp
MrMonk3y/vimrc
950230fb3fd7991d1234c2ab516ec03245945677
[ "MIT" ]
null
null
null
// Copyright (C) 2018 ycmd contributors // // This file is part of ycmd. // // ycmd 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 License, or // (at your option) any later version. ...
28.415929
78
0.670819
[ "vector" ]
5e0c73f752ac4cf0bd0b9e37b4b96151a66dd929
1,422
hpp
C++
src/core/storage/query_engine/operators/all_operators.hpp
Bpowers4/turicreate
73dad213cc1c4f74337b905baea2b3a1e5a0266c
[ "BSD-3-Clause" ]
11,356
2017-12-08T19:42:32.000Z
2022-03-31T16:55:25.000Z
src/core/storage/query_engine/operators/all_operators.hpp
Bpowers4/turicreate
73dad213cc1c4f74337b905baea2b3a1e5a0266c
[ "BSD-3-Clause" ]
2,402
2017-12-08T22:31:01.000Z
2022-03-28T19:25:52.000Z
src/core/storage/query_engine/operators/all_operators.hpp
Bpowers4/turicreate
73dad213cc1c4f74337b905baea2b3a1e5a0266c
[ "BSD-3-Clause" ]
1,343
2017-12-08T19:47:19.000Z
2022-03-26T11:31:36.000Z
/* Copyright © 2017 Apple Inc. All rights reserved. * * Use of this source code is governed by a BSD-3-clause license that can * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause */ #ifndef TURI_SFRAME_QUERY_ALL_OPERATORS_H_ #define TURI_SFRAME_QUERY_ALL_OPERATORS_H_ #include <cor...
47.4
86
0.829114
[ "transform" ]
5e122e0635fc8f45bc10442c932756b1e5fd5933
7,465
cpp
C++
contrib/samples/win32/mfc/loggerwnd/loggerwnddlg.cpp
nanocortex/vscp
0b1a51a35a886921179a8112c592547f84c9771a
[ "CC-BY-3.0" ]
2
2020-12-01T18:54:20.000Z
2022-01-24T20:18:33.000Z
samples/win32/mfc/loggerwnd/loggerwnddlg.cpp
grodansparadis/vscp-samples
43becaafe267de0b772e99d9608e8ec4eb8343c8
[ "MIT" ]
null
null
null
samples/win32/mfc/loggerwnd/loggerwnddlg.cpp
grodansparadis/vscp-samples
43becaafe267de0b772e99d9608e8ec4eb8343c8
[ "MIT" ]
null
null
null
// loggerWndDlg.cpp : implementation file // #include "stdafx.h" #include "loggerWnd.h" #include "loggerWndDlg.h" #include "dlgfilter.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CAb...
22.55287
88
0.668185
[ "model" ]
5e1331a47a7ec5a208dd7f84cc96f0ea8252d7f8
11,072
cc
C++
tools/fulltopic_check/src/broken_points.cc
wahidHarb/rdp-1
73a0813d9a08f0aad34b56ba678167e6387b5e74
[ "Apache-2.0" ]
112
2018-12-05T07:45:42.000Z
2022-01-24T11:28:11.000Z
tools/fulltopic_check/src/broken_points.cc
wahidHarb/rdp-1
73a0813d9a08f0aad34b56ba678167e6387b5e74
[ "Apache-2.0" ]
2
2020-02-29T02:34:59.000Z
2020-05-12T06:34:29.000Z
tools/fulltopic_check/src/broken_points.cc
wahidHarb/rdp-1
73a0813d9a08f0aad34b56ba678167e6387b5e74
[ "Apache-2.0" ]
88
2018-12-16T07:35:10.000Z
2022-03-09T17:41:16.000Z
// //Copyright 2018 vip.com. // //Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with //the License. You may obtain a copy of the License at // //http://www.apache.org/licenses/LICENSE-2.0 // //Unless required by applicable law or agreed to in writing, sof...
30.841226
142
0.644509
[ "vector" ]
5e2eadca64520b5d69137288ce0aa5fa84667be4
1,378
cpp
C++
src/primitives/zerocoin.cpp
gkc202011129/gkc2022
bc4b414677b455ff1b024d405df9860f7b8c694d
[ "MIT" ]
null
null
null
src/primitives/zerocoin.cpp
gkc202011129/gkc2022
bc4b414677b455ff1b024d405df9860f7b8c694d
[ "MIT" ]
null
null
null
src/primitives/zerocoin.cpp
gkc202011129/gkc2022
bc4b414677b455ff1b024d405df9860f7b8c694d
[ "MIT" ]
1
2022-03-15T23:03:32.000Z
2022-03-15T23:03:32.000Z
// Copyright (c) 2017 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "primitives/zerocoin.h" void CZerocoinSpendReceipt::AddSpend(const CZerocoinSpend& spend) { vSpends.emplace_back(spend); } ...
24.175439
92
0.753266
[ "vector" ]
5e2ec0b74e4f8c6bb179d1c122482f799024e306
672
cpp
C++
581.cpp
zfang399/LeetCode-Problems
4cb25718a3d1361569f5ee6fde7b4a9a4fde2186
[ "MIT" ]
8
2018-10-31T11:00:19.000Z
2020-07-31T05:25:06.000Z
581.cpp
zfang399/LeetCode-Problems
4cb25718a3d1361569f5ee6fde7b4a9a4fde2186
[ "MIT" ]
null
null
null
581.cpp
zfang399/LeetCode-Problems
4cb25718a3d1361569f5ee6fde7b4a9a4fde2186
[ "MIT" ]
2
2018-05-31T11:29:22.000Z
2019-09-11T06:34:40.000Z
class Solution { public: int findUnsortedSubarray(vector<int>& nums) { int ans=0; int left=0,right=nums.size()-1; while(left<nums.size()-1 && nums[left]<=nums[left+1]) left++; while(right>0 && nums[right]>=nums[right-1]) right--; if(left<right){ int mmin=INT_MAX,m...
32
69
0.5
[ "vector" ]
1e10a8e58ea9d4a3c36263d66757e40b7e370c8a
3,034
cpp
C++
src/cpp/pyNodeWrapper.cpp
dulikvor/reactive
993d0f91a5dbb4ea8dabc240605f46bf35b606e9
[ "MIT" ]
null
null
null
src/cpp/pyNodeWrapper.cpp
dulikvor/reactive
993d0f91a5dbb4ea8dabc240605f46bf35b606e9
[ "MIT" ]
null
null
null
src/cpp/pyNodeWrapper.cpp
dulikvor/reactive
993d0f91a5dbb4ea8dabc240605f46bf35b606e9
[ "MIT" ]
1
2020-07-28T00:00:00.000Z
2020-07-28T00:00:00.000Z
#include "sweetPy/sweetPy.h" #include "PyNode.h" #include "InputAdapter.h" #include "ConstNode.h" #include "CurveNode.h" namespace reactive{ static PyNode& PyNode_UpCast(UnitNode& node){return static_cast<PyNode&>(node);} INIT_MODULE(_pyNode, "reactive pyNode") { module.add_function("pyNode_UpCas...
61.918367
205
0.733685
[ "vector" ]
1e15db11206cb4827da3e1ee280697538cdb6a26
3,249
cc
C++
third_party/blink/renderer/bindings/tests/results/core/double_or_string.cc
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
third_party/blink/renderer/bindings/tests/results/core/double_or_string.cc
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
third_party/blink/renderer/bindings/tests/results/core/double_or_string.cc
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This file has been auto-generated from the Jinja2 template // third_party/blink/renderer/bindings/templates/union_container.cpp.tmpl // by the script c...
30.364486
177
0.746999
[ "object" ]
1e18313966f8b8effd4ff1d760133fb2d3b965db
1,620
cpp
C++
Openalpr API/src/statedetection/state_detector.cpp
IOT-smart-car-park/project
3701d5a92eb0a6a35af67e9e254a63425b663760
[ "Apache-2.0" ]
13
2017-02-22T02:20:06.000Z
2018-06-06T04:18:03.000Z
Openalpr API/src/statedetection/state_detector.cpp
IOT-smart-car-park/project
3701d5a92eb0a6a35af67e9e254a63425b663760
[ "Apache-2.0" ]
null
null
null
Openalpr API/src/statedetection/state_detector.cpp
IOT-smart-car-park/project
3701d5a92eb0a6a35af67e9e254a63425b663760
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2015 OpenALPR Technology, Inc. * Open source Automated License Plate Recognition [http://www.openalpr.com] * * This file is part of OpenALPR. * * OpenALPR is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License * version 3 as publi...
30.566038
120
0.711111
[ "vector" ]
1e26ad04a150264aaa765b665ecda78fc44c1c50
7,165
cc
C++
lib/util/semver/parser.cc
poacpm/cpm
1e004120990d952ec8f20cdc72e58b57fba9e333
[ "Apache-2.0" ]
null
null
null
lib/util/semver/parser.cc
poacpm/cpm
1e004120990d952ec8f20cdc72e58b57fba9e333
[ "Apache-2.0" ]
null
null
null
lib/util/semver/parser.cc
poacpm/cpm
1e004120990d952ec8f20cdc72e58b57fba9e333
[ "Apache-2.0" ]
null
null
null
// internal #include "poac/util/semver/parser.hpp" namespace semver { /// Skip whitespace if present. void Parser::skip_whitespace() { if (peek().is_whitespace()) { pop(); } } /// Parse an optional comma separator, then if that is present a predicate. std::optional<Predicate> Parser::comma_predicate() { co...
22.390625
75
0.623447
[ "vector" ]
1e301915ded3de3a05621727f8ba77ff369c2832
10,547
cpp
C++
src/bin2llvmir/optimizations/phi2seq/phi2seq.cpp
Andrik-555/retdec
1ac63a520da02912daf836b924f41d95b1b5fa10
[ "MIT", "BSD-3-Clause" ]
521
2019-03-29T15:44:08.000Z
2022-03-22T09:46:19.000Z
src/bin2llvmir/optimizations/phi2seq/phi2seq.cpp
Andrik-555/retdec
1ac63a520da02912daf836b924f41d95b1b5fa10
[ "MIT", "BSD-3-Clause" ]
30
2019-06-04T17:00:49.000Z
2021-09-08T20:44:19.000Z
src/bin2llvmir/optimizations/phi2seq/phi2seq.cpp
Andrik-555/retdec
1ac63a520da02912daf836b924f41d95b1b5fa10
[ "MIT", "BSD-3-Clause" ]
99
2019-03-29T16:04:13.000Z
2022-03-28T16:59:34.000Z
/** * @file src/bin2llvmir/optimizations/phi2seq/phi2seq.cpp * @brief Implementation of PHI2seq. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #include <llvm/ADT/StringMap.h> #include <llvm/IR/CFG.h> #include <llvm/IR/Module.h> #include <llvm/Support/raw_ostream.h> #include <llvm/Transforms/S...
31.672673
81
0.727126
[ "vector" ]
1e342608dca77d0efe05c48af22abc54ac2d5228
6,787
hpp
C++
StarcraftBuildOrderSearch/Source/starcraftsearch/StarcraftAction.hpp
abeshry/StarcraftAI
2eca612783d1b4c06469885ebc3cce46cc0c6fce
[ "Apache-2.0" ]
null
null
null
StarcraftBuildOrderSearch/Source/starcraftsearch/StarcraftAction.hpp
abeshry/StarcraftAI
2eca612783d1b4c06469885ebc3cce46cc0c6fce
[ "Apache-2.0" ]
null
null
null
StarcraftBuildOrderSearch/Source/starcraftsearch/StarcraftAction.hpp
abeshry/StarcraftAI
2eca612783d1b4c06469885ebc3cce46cc0c6fce
[ "Apache-2.0" ]
null
null
null
#ifndef STARCRAFT_ACTION_H #define STARCRAFT_ACTION_H /////////////////////////////////////////////////////////////////////////////// // // StarcraftAction // // StarcraftActions are to ONLY be constructed by StarcraftData // // The int id passed in is its location within the ActionMap vector // // If you wish to get ...
33.107317
86
0.681745
[ "vector" ]
1e35d936e9de091994f5d7d73bdbe070676dc515
860
cpp
C++
graph/bellmanford.cpp
anu9901998/competitive-programming
2a3325bc42d027197449d85c519a74d104a5461c
[ "MIT" ]
6
2020-04-08T00:25:44.000Z
2021-09-04T20:39:15.000Z
graph/bellmanford.cpp
anu9901998/competitive-programming
2a3325bc42d027197449d85c519a74d104a5461c
[ "MIT" ]
2
2020-04-09T06:59:12.000Z
2020-04-09T14:56:32.000Z
graph/bellmanford.cpp
anu9901998/competitive-programming
2a3325bc42d027197449d85c519a74d104a5461c
[ "MIT" ]
6
2020-04-16T03:47:06.000Z
2021-09-07T10:21:32.000Z
#include <bits/stdc++.h> using namespace std; int n, m; vector<tuple<int, int, int>>edges; // max can find positive cycle // min can find negative cycle void bellmanford(vector<int>&d){ for(int i = 1;i <= n-1;i++){ for(auto &e:edges){ int a, b, w; tie(a, b, w) = e; d[b...
17.2
79
0.437209
[ "vector" ]
1e442152441b012689bf8e19676bbfc86f1e0d7f
882
cpp
C++
src/caffe/layers/warp_layer.cpp
liruoteng/Caffe
9fb981df47b5f6e79b544813c38b10daa813d2d0
[ "BSD-2-Clause" ]
null
null
null
src/caffe/layers/warp_layer.cpp
liruoteng/Caffe
9fb981df47b5f6e79b544813c38b10daa813d2d0
[ "BSD-2-Clause" ]
null
null
null
src/caffe/layers/warp_layer.cpp
liruoteng/Caffe
9fb981df47b5f6e79b544813c38b10daa813d2d0
[ "BSD-2-Clause" ]
null
null
null
#include <vector> #include "caffe/layers/warp_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> void WarpLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { } template <typename Dtype> void WarpLayer<Dtype>::Forward_cpu(const...
22.05
104
0.738095
[ "vector" ]
1e469c530de7f5abc674a0ddcdb4bf309a4a59d8
3,109
cpp
C++
tests/hierarchical/hierarchical_private_memory.cpp
jbrodman/SYCL-CTS
9cbe1a719b25c269ef78a2ee08f2e5ed12a1cc6d
[ "Apache-2.0" ]
null
null
null
tests/hierarchical/hierarchical_private_memory.cpp
jbrodman/SYCL-CTS
9cbe1a719b25c269ef78a2ee08f2e5ed12a1cc6d
[ "Apache-2.0" ]
null
null
null
tests/hierarchical/hierarchical_private_memory.cpp
jbrodman/SYCL-CTS
9cbe1a719b25c269ef78a2ee08f2e5ed12a1cc6d
[ "Apache-2.0" ]
null
null
null
/******************************************************************************* // // SYCL 1.2.1 Conformance Test Suite // // Copyright: (c) 2018 by Codeplay Software LTD. All Rights Reserved. // *******************************************************************************/ #include "../common/common.h" #define ...
34.164835
80
0.560952
[ "vector" ]
1e4c8410765fd68b60c9f21afa2dd61b1d71a64f
14,554
cpp
C++
cowsay.cpp
quantum5/cowsay
8ef8598087d7e4cde2608beb7ebafdddc2f15c97
[ "MIT" ]
4
2016-03-11T12:50:43.000Z
2021-09-07T09:00:52.000Z
cowsay.cpp
quantum5/cowsay
8ef8598087d7e4cde2608beb7ebafdddc2f15c97
[ "MIT" ]
null
null
null
cowsay.cpp
quantum5/cowsay
8ef8598087d7e4cde2608beb7ebafdddc2f15c97
[ "MIT" ]
3
2016-12-05T03:43:30.000Z
2021-07-31T01:13:02.000Z
#include <iostream> #include <fstream> #include <sstream> #include <vector> #include <algorithm> #include <functional> #include <cstdlib> #include <cctype> #include <cstring> #include "OptionParser.h" #ifdef WIN32 # ifndef WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN # endif # include <windows.h> # i...
34.004673
115
0.552632
[ "vector" ]
1e4c977656a8dc5133cfefee8c1ad39314bde651
5,688
cpp
C++
examples/bare_wasm_cpp/main.cpp
yaram/constraint-based-layout
baeee0aa61a560c478c243b1ecc8364f0bb5ad97
[ "MIT" ]
null
null
null
examples/bare_wasm_cpp/main.cpp
yaram/constraint-based-layout
baeee0aa61a560c478c243b1ecc8364f0bb5ad97
[ "MIT" ]
null
null
null
examples/bare_wasm_cpp/main.cpp
yaram/constraint-based-layout
baeee0aa61a560c478c243b1ecc8364f0bb5ad97
[ "MIT" ]
null
null
null
#include <stdint.h> #include <stddef.h> #include "debug.h" #include "environment.h" #include "controls.h" const size_t max_allocator_space = 1024 * 16; size_t next_allocation_start = 0; uint8_t __attribute__((aligned(sizeof(size_t)))) allocator_space[max_allocator_space]; static void clear_allocator() { next_all...
26.704225
138
0.675105
[ "render" ]
1e51f2ecbba007bdb28dd53469a1ea988f9fa77d
1,905
hpp
C++
cpp/include/cuml/common/rmmPoolAllocatorAdapter.hpp
alxhrzg/cuml
fbf619a4aa5752b7f8647d1c129eb3def7d8ba78
[ "Apache-2.0" ]
2
2020-12-19T23:34:37.000Z
2022-01-13T21:08:51.000Z
cpp/include/cuml/common/rmmPoolAllocatorAdapter.hpp
alxhrzg/cuml
fbf619a4aa5752b7f8647d1c129eb3def7d8ba78
[ "Apache-2.0" ]
null
null
null
cpp/include/cuml/common/rmmPoolAllocatorAdapter.hpp
alxhrzg/cuml
fbf619a4aa5752b7f8647d1c129eb3def7d8ba78
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2019-2020, NVIDIA CORPORATION. * * 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...
28.014706
78
0.739108
[ "object" ]
1e52782d358001b4b2a163991f3d42b68b989268
489
cpp
C++
Olympiad Solutions/DMOJ/ccc17s2.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
36
2019-12-27T08:23:08.000Z
2022-01-24T20:35:47.000Z
Olympiad Solutions/DMOJ/ccc17s2.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
10
2019-11-13T02:55:18.000Z
2021-10-13T23:28:09.000Z
Olympiad Solutions/DMOJ/ccc17s2.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
53
2020-08-15T11:08:40.000Z
2021-10-09T15:51:38.000Z
// Ivan Carvalho // Solution to https://dmoj.ca/problem/ccc17s2 #include <bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; vector<int> E(n); for(int i=0;i<n;i++) cin >> E[i]; sort(E.begin(),E.end()); int ini_lo = (n + 1)/2 - 1; int ini_hi = ini_lo + 1; while(true){ if(ini_lo < 0 && ini_hi >= n...
18.807692
46
0.535787
[ "vector" ]
1e52f363240c6bd222b070d6566e28e120664543
1,550
cpp
C++
src/BoundingBox.cpp
Seong-su/hierarchical-data-structure
a56e0df2c9b6a8c5c38349c90a49d57fd49b4102
[ "MIT" ]
null
null
null
src/BoundingBox.cpp
Seong-su/hierarchical-data-structure
a56e0df2c9b6a8c5c38349c90a49d57fd49b4102
[ "MIT" ]
null
null
null
src/BoundingBox.cpp
Seong-su/hierarchical-data-structure
a56e0df2c9b6a8c5c38349c90a49d57fd49b4102
[ "MIT" ]
null
null
null
#include <algorithm> #include "BoundingBox.hpp" BoundingBox::BoundingBox(int id, const std::string &name, aiMesh *mesh) : id_(id) { set_name(name); uint64_t num_vertices = mesh->mNumVertices; if (num_vertices > 0) { init_max(mesh->mVertices[0]); init_min(mesh->mVertices[0]); std::for_each(mesh-...
24.603175
72
0.632903
[ "mesh" ]
1e5d1ec71f72873046034085b369161d47450c64
2,287
cc
C++
src/data/sparse_page_raw_format.cc
bclehmann/xgboost
345796825f7bbeb0251bca1244e296fda211551b
[ "Apache-2.0" ]
23,866
2015-03-22T05:53:05.000Z
2022-03-31T23:59:37.000Z
src/data/sparse_page_raw_format.cc
bclehmann/xgboost
345796825f7bbeb0251bca1244e296fda211551b
[ "Apache-2.0" ]
6,405
2015-03-22T09:41:16.000Z
2022-03-31T23:28:40.000Z
src/data/sparse_page_raw_format.cc
bclehmann/xgboost
345796825f7bbeb0251bca1244e296fda211551b
[ "Apache-2.0" ]
9,745
2015-03-22T05:25:51.000Z
2022-03-31T09:24:51.000Z
/*! * Copyright (c) 2015-2021 by Contributors * \file sparse_page_raw_format.cc * Raw binary format of sparse page. */ #include <xgboost/data.h> #include <dmlc/registry.h> #include "xgboost/logging.h" #include "./sparse_page_writer.h" namespace xgboost { namespace data { DMLC_REGISTRY_FILE_TAG(sparse_page_raw_f...
28.949367
76
0.663752
[ "vector" ]
1e5f823249a95753b88d952c698b45f4773c32f3
5,857
cc
C++
chrome/browser/android/preferences/important_sites_util_unittest.cc
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
chrome/browser/android/preferences/important_sites_util_unittest.cc
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/browser/android/preferences/important_sites_util_unittest.cc
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/android/preferences/important_sites_util.h" #include <memory> #include <utility> #include "base/files/scoped_temp_dir.h" #inclu...
40.393103
79
0.736555
[ "vector" ]
1e67bfa27781eb227a6a5426d2d7f37c0e906543
5,995
hpp
C++
src/indexing.hpp
willfurnass/pFIRE
251cac173f2337f504dfde122851b834fe3e77be
[ "Apache-2.0" ]
9
2019-02-14T09:03:03.000Z
2021-11-30T16:03:32.000Z
src/indexing.hpp
willfurnass/pFIRE
251cac173f2337f504dfde122851b834fe3e77be
[ "Apache-2.0" ]
64
2019-01-29T16:22:42.000Z
2021-06-07T07:54:28.000Z
src/indexing.hpp
tartarini/pFIRE
406fdbb188a17b6413edcd0a229213464628ab15
[ "Apache-2.0" ]
5
2019-01-29T15:32:53.000Z
2021-08-19T10:24:42.000Z
// // Copyright 2019 University of Sheffield // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
25.295359
99
0.630025
[ "mesh", "shape", "vector", "3d" ]
1e687bea5babdba2ca92a12a8962115587254916
7,529
cpp
C++
ibtk/src/utilities/StandardTagAndInitStrategySet.cpp
akashdhruv/IBAMR
a2b47946d795fb5a40c181b43e44a6ec387585a9
[ "BSD-3-Clause" ]
264
2015-01-04T12:11:02.000Z
2022-03-31T13:10:37.000Z
ibtk/src/utilities/StandardTagAndInitStrategySet.cpp
akashdhruv/IBAMR
a2b47946d795fb5a40c181b43e44a6ec387585a9
[ "BSD-3-Clause" ]
1,057
2015-04-27T04:27:57.000Z
2022-03-31T13:14:59.000Z
ibtk/src/utilities/StandardTagAndInitStrategySet.cpp
drwells/IBAMR
0ceda3873405a35da4888c99e7d2b24d132f9071
[ "BSD-3-Clause" ]
126
2015-02-13T15:36:02.000Z
2022-03-27T21:59:50.000Z
// --------------------------------------------------------------------- // // Copyright (c) 2014 - 2020 by the IBAMR developers // All rights reserved. // // This file is part of IBAMR. // // IBAMR is free software and is distributed under the 3-clause BSD // license. The full text of the license can be found in the f...
39.213542
118
0.502059
[ "vector" ]
1e6ab398f02112a6e365a6bea15c081b670e77e1
12,256
cpp
C++
rdkPlugins/Thunder/source/ThunderSecurityAgent.cpp
WKonieczny/Dobby
ade2f9724d05cb6ce365c4707bd397b74b8598f0
[ "Apache-2.0" ]
null
null
null
rdkPlugins/Thunder/source/ThunderSecurityAgent.cpp
WKonieczny/Dobby
ade2f9724d05cb6ce365c4707bd397b74b8598f0
[ "Apache-2.0" ]
null
null
null
rdkPlugins/Thunder/source/ThunderSecurityAgent.cpp
WKonieczny/Dobby
ade2f9724d05cb6ce365c4707bd397b74b8598f0
[ "Apache-2.0" ]
null
null
null
/* * If not stated otherwise in this file or this component's LICENSE file the * following copyright and licenses apply: * * Copyright 2021 Sky UK * * 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...
30.487562
91
0.54969
[ "vector" ]
1e7efb440f554215ca88bdc3b2985a0e2817b560
5,184
cxx
C++
Base/QTGUI/Testing/Cxx/qSlicerLoadableModuleWithPythonTest.cxx
TheInterventionCentre/NorMIT-Plan-App
765ed9a5dccc1cc134b65ccabe93fc132baeb2ea
[ "MIT" ]
null
null
null
Base/QTGUI/Testing/Cxx/qSlicerLoadableModuleWithPythonTest.cxx
TheInterventionCentre/NorMIT-Plan-App
765ed9a5dccc1cc134b65ccabe93fc132baeb2ea
[ "MIT" ]
null
null
null
Base/QTGUI/Testing/Cxx/qSlicerLoadableModuleWithPythonTest.cxx
TheInterventionCentre/NorMIT-Plan-App
765ed9a5dccc1cc134b65ccabe93fc132baeb2ea
[ "MIT" ]
null
null
null
/*============================================================================== Program: 3D Slicer Copyright (c) Kitware Inc. See COPYRIGHT.txt or http://www.slicer.org/copyright/copyright.txt for details. Unless required by applicable law or agreed to in writing, software distributed under the License...
33.445161
103
0.640432
[ "3d" ]
1e82d03fca6cbb8fe75359683742cb54b794b8f4
11,770
cpp
C++
ege/scene/Scene.cpp
sppmacd/ege
a82ff6fccc8ac1bce5a50ed5a8f101b63f58b020
[ "MIT" ]
1
2020-12-30T17:21:11.000Z
2020-12-30T17:21:11.000Z
ege/scene/Scene.cpp
sppmacd/ege
a82ff6fccc8ac1bce5a50ed5a8f101b63f58b020
[ "MIT" ]
20
2020-09-02T08:37:13.000Z
2021-09-02T06:47:08.000Z
ege/scene/Scene.cpp
sppmacd/ege
a82ff6fccc8ac1bce5a50ed5a8f101b63f58b020
[ "MIT" ]
null
null
null
/* * * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * * ,---- ,---- ,---- * | | | * |---- | --, |---- * | | | | * '---- '---' '---- * * Framework Library for Hexagon * * Copyright (c) Sppmacd 2020 - 2021 * * Permission is ...
31.897019
148
0.613849
[ "render", "object", "vector" ]
1e8344de8d8c38d8a89a64362a046df70fe8bb7a
829
hpp
C++
include/ant_colony_optimization.hpp
dmarcini/ACO-TSP
e433dbba2506486f41f4414f3d0c3244baf61333
[ "MIT" ]
null
null
null
include/ant_colony_optimization.hpp
dmarcini/ACO-TSP
e433dbba2506486f41f4414f3d0c3244baf61333
[ "MIT" ]
null
null
null
include/ant_colony_optimization.hpp
dmarcini/ACO-TSP
e433dbba2506486f41f4414f3d0c3244baf61333
[ "MIT" ]
null
null
null
#ifndef ANT_COLONY_OPTIMIZATION_HPP_ #define ANT_COLONY_OPTIMIZATION_HPP_ #include <string> #include <vector> #include <functional> #include "graph.hpp" #include "ant.hpp" using ACO = class AntColonyOptimization; class AntColonyOptimization { public: using LoadDataFcntPtr = std::function<std::vector<s...
20.725
73
0.74427
[ "vector" ]
1e94130eece377ad08ce82cda461521ca5efa7c9
2,644
cpp
C++
src/lib/materials/textures/formats/png/PngLoader.cpp
Lut99/Rasterizer
453864506db749a93fb82fb17cc5ee88cc4ada01
[ "MIT" ]
1
2021-08-15T19:20:14.000Z
2021-08-15T19:20:14.000Z
src/lib/materials/textures/formats/png/PngLoader.cpp
Lut99/Rasterizer
453864506db749a93fb82fb17cc5ee88cc4ada01
[ "MIT" ]
17
2021-06-05T12:37:04.000Z
2021-10-01T10:20:09.000Z
src/lib/materials/textures/formats/png/PngLoader.cpp
Lut99/Rasterizer
453864506db749a93fb82fb17cc5ee88cc4ada01
[ "MIT" ]
null
null
null
/* PNG LOADER.cpp * by Lut99 * * Created: * 16/08/2021, 12:22:16 * Last edited: * 16/08/2021, 12:22:16 * Auto updated? * Yes * * Description: * Function that loads the given file as if it were a file in PNG-format. **/ #include <vector> #include "LodePNG.hpp" #include "PngLoader.hpp" using names...
35.253333
195
0.703858
[ "vector" ]
1e9a2fe135eecfc4e87d8b68a6f0695c598df863
631
cpp
C++
sort/quickSort.cpp
ctrlzhang/algorithm
4db12ea6246b7bd6ac4ab9296de4e736f73a0bf0
[ "Apache-2.0" ]
1
2017-05-08T15:41:17.000Z
2017-05-08T15:41:17.000Z
sort/quickSort.cpp
ctrlzhang/algorithm
4db12ea6246b7bd6ac4ab9296de4e736f73a0bf0
[ "Apache-2.0" ]
null
null
null
sort/quickSort.cpp
ctrlzhang/algorithm
4db12ea6246b7bd6ac4ab9296de4e736f73a0bf0
[ "Apache-2.0" ]
2
2016-09-05T17:12:08.000Z
2021-11-21T11:29:42.000Z
#include <iostream> #include <vector> using namespace std; void output(vector<int>& v) { for(vector<int>::iterator it = v.begin(); it != v.end(); it++) { cout<<*it<<" "; } } void quickSort(vector<int>& v, int s, int e) { output(v); cout<<endl; int tmp = 0; if(s >= e) return; int i = s; for(int k=s;k<=e;k+...
16.179487
65
0.530903
[ "vector" ]
1eacd0dd479bf89015841c813d4ca038a432d909
888
cpp
C++
project/src/app/ApplicationEvent.cpp
matthewswallace/lime
43a6f0598cd3ba0998ce2d02441e3284999d1047
[ "MIT" ]
3
2018-05-04T18:06:07.000Z
2018-05-07T12:30:43.000Z
project/src/app/ApplicationEvent.cpp
matthewswallace/lime
43a6f0598cd3ba0998ce2d02441e3284999d1047
[ "MIT" ]
5
2018-03-28T13:38:03.000Z
2019-05-13T15:33:26.000Z
project/src/app/ApplicationEvent.cpp
matthewswallace/lime
43a6f0598cd3ba0998ce2d02441e3284999d1047
[ "MIT" ]
4
2016-09-18T03:58:34.000Z
2020-09-16T06:28:50.000Z
#include <hx/CFFI.h> #include <app/ApplicationEvent.h> namespace lime { AutoGCRoot* ApplicationEvent::callback = 0; AutoGCRoot* ApplicationEvent::eventObject = 0; static int id_deltaTime; static int id_type; static bool init = false; ApplicationEvent::ApplicationEvent () { deltaTime = 0; type =...
18.5
114
0.657658
[ "object" ]
1eaee81a9298adc768eeca16a49a1e66a5b4be20
1,789
cpp
C++
faceDetect/pyfaceDetection/pyfaceDetection/demo.cpp
ForrestPi/FaceSolution
cf19b2916a8bf285e457903e8d202055b092fc73
[ "MIT" ]
1
2022-01-04T02:24:48.000Z
2022-01-04T02:24:48.000Z
faceDetect/pyfaceDetection/pyfaceDetection/demo.cpp
ForrestPi/FaceSolution
cf19b2916a8bf285e457903e8d202055b092fc73
[ "MIT" ]
null
null
null
faceDetect/pyfaceDetection/pyfaceDetection/demo.cpp
ForrestPi/FaceSolution
cf19b2916a8bf285e457903e8d202055b092fc73
[ "MIT" ]
null
null
null
//https://www.jianshu.com/p/5dc844002d72 #include <opencv2/opencv.hpp> #include"ncnn_mtcnn_tld_so.hpp" #include <stdio.h> #include<pybind11/pybind11.h> #include<pybind11/stl.h> #include<pybind11/numpy.h> #include"ndarray_converter.h" using namespace cv; using namespace std; namespace py = pybind11; class FaceTrac...
20.563218
92
0.669648
[ "vector" ]
1eb6dc0a43a0527fead1f94e9651b73532b70374
524
cpp
C++
test_rvo/main.cpp
fantasialin/cpp_sandbox
c2b24c30871d1528e45c9c0c0d233d3e9f4dbd3e
[ "Apache-2.0" ]
null
null
null
test_rvo/main.cpp
fantasialin/cpp_sandbox
c2b24c30871d1528e45c9c0c0d233d3e9f4dbd3e
[ "Apache-2.0" ]
null
null
null
test_rvo/main.cpp
fantasialin/cpp_sandbox
c2b24c30871d1528e45c9c0c0d233d3e9f4dbd3e
[ "Apache-2.0" ]
null
null
null
#include <iostream> int n = 0; struct C { explicit C(int) {} C(const C&) { ++n; } // the copy constructor has a visible side effect }; // it modifies an object with static storage duration int main() { C c1(42); // direct-initialization, calls C::C(int) C c2 = C(42); //...
30.823529
80
0.585878
[ "object" ]
363c051f0195893dbe3b197c8ac29315c88444f4
967
hpp
C++
src/triangle.hpp
lconn-dev/MinimalRT
a7485fb6ac6723b18fd92c881d96826320b643c4
[ "MIT" ]
null
null
null
src/triangle.hpp
lconn-dev/MinimalRT
a7485fb6ac6723b18fd92c881d96826320b643c4
[ "MIT" ]
null
null
null
src/triangle.hpp
lconn-dev/MinimalRT
a7485fb6ac6723b18fd92c881d96826320b643c4
[ "MIT" ]
null
null
null
#pragma once #include <glm/glm.hpp> #include <glm/gtx/normal.hpp> struct material { glm::vec3 amb, diffuse, specular, specularColor; float shine = 16.f; material() : amb(0.f), diffuse(1.f), specular(1.f), specularColor(1.f){} }; struct triangle { glm::vec3 v0, v1, v2, n0, n1, n2; mater...
21.021739
111
0.535677
[ "vector" ]
36422f44da1add9dc2b909bf16c1b40750956c68
7,909
cpp
C++
openfpga/src/fabric/build_fabric_io_location_map.cpp
avesus/OpenFPGA
c1dab2168655d41eb59d4923156dabd253ffbd3e
[ "MIT" ]
246
2020-12-03T08:49:29.000Z
2022-03-28T21:19:55.000Z
openfpga/src/fabric/build_fabric_io_location_map.cpp
a-canela/OpenFPGA
063c58b6cbe2e01aa5520ec43ec80ff064d7f228
[ "MIT" ]
261
2020-12-03T00:23:54.000Z
2022-03-31T10:00:37.000Z
openfpga/src/fabric/build_fabric_io_location_map.cpp
a-canela/OpenFPGA
063c58b6cbe2e01aa5520ec43ec80ff064d7f228
[ "MIT" ]
66
2020-12-12T09:05:53.000Z
2022-03-28T07:51:41.000Z
/******************************************************************** * This file includes functions that are used to build the location * map information for the top-level module of the FPGA fabric * It helps OpenFPGA to link the I/O port index in top-level module * to the VPR I/O mapping results ****************...
43.456044
158
0.633329
[ "vector" ]
3645ada2f339588fcac7a64be391f145400ba15e
6,986
cc
C++
asv_wave_sim_gazebo_plugins/src/Utilities.cc
minzlee/asv_wave_sim
d9426e1b7b75d43f0c1bd3201e6ba62e54af968f
[ "Apache-2.0" ]
25
2019-05-29T04:55:19.000Z
2022-03-18T19:07:07.000Z
asv_wave_sim_gazebo_plugins/src/Utilities.cc
minzlee/asv_wave_sim
d9426e1b7b75d43f0c1bd3201e6ba62e54af968f
[ "Apache-2.0" ]
12
2019-02-14T16:26:57.000Z
2022-03-30T19:44:33.000Z
asv_wave_sim_gazebo_plugins/src/Utilities.cc
minzlee/asv_wave_sim
d9426e1b7b75d43f0c1bd3201e6ba62e54af968f
[ "Apache-2.0" ]
11
2019-05-29T04:55:22.000Z
2022-02-23T11:55:32.000Z
// Copyright (C) 2019 Rhys Mainwaring // // 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 License, or // (at your option) any later version. // // This program is dist...
30.112069
97
0.695248
[ "vector" ]
36466194838e312b68f1c10c0cf9216100a721d8
15,444
cc
C++
test/buffer_manager_test.cc
AhmetTanakol/btree
eaa74f400e059e7d1d908006e198961cb04c1393
[ "MIT" ]
1
2022-01-10T00:25:19.000Z
2022-01-10T00:25:19.000Z
test/buffer_manager_test.cc
AhmetTanakol/buffer-manager
570c26a7ba11907e6ec0c730e90bfd2e3231df05
[ "MIT" ]
null
null
null
test/buffer_manager_test.cc
AhmetTanakol/buffer-manager
570c26a7ba11907e6ec0c730e90bfd2e3231df05
[ "MIT" ]
null
null
null
#include <algorithm> #include <atomic> #include <cstring> #include <memory> #include <random> #include <thread> #include <vector> #include <gtest/gtest.h> #include "moderndbs/buffer_manager.h" namespace { // NOLINTNEXTLINE TEST(BufferManagerTest, FixSingle) { moderndbs::BufferManager buffer_manager{1024, 10}; ...
40.857143
94
0.560153
[ "vector" ]
364be4a4dddc24a04a12ac5e3e099336596138eb
16,901
cpp
C++
c/Haxe/OpenFL/01.HelloWorld/Export/windows/cpp/obj/src/openfl/geom/Transform.cpp
amenoyoya/old-project
640ec696af5d18267d86629098f41451857f8103
[ "MIT" ]
null
null
null
c/Haxe/OpenFL/01.HelloWorld/Export/windows/cpp/obj/src/openfl/geom/Transform.cpp
amenoyoya/old-project
640ec696af5d18267d86629098f41451857f8103
[ "MIT" ]
1
2019-07-07T09:52:20.000Z
2019-07-07T09:52:20.000Z
c/Haxe/OpenFL/01.HelloWorld/Export/windows/cpp/obj/src/openfl/geom/Transform.cpp
amenoyoya/old-project
640ec696af5d18267d86629098f41451857f8103
[ "MIT" ]
null
null
null
#include <hxcpp.h> #ifndef INCLUDED_hxMath #include <hxMath.h> #endif #ifndef INCLUDED_openfl_display_DisplayObject #include <openfl/display/DisplayObject.h> #endif #ifndef INCLUDED_openfl_display_IBitmapDrawable #include <openfl/display/IBitmapDrawable.h> #endif #ifndef INCLUDED_openfl_events_EventDispatch...
37.474501
257
0.72404
[ "transform" ]
365cfb7673a21fc78b7ca51edb175fef04a29ae1
15,720
cpp
C++
modules/skeletonPlayer/src/main.cpp
robotology/assistive-rehab
7c148385010483202d91b92d6b20c09996d6452e
[ "BSD-3-Clause" ]
17
2019-01-28T08:38:42.000Z
2022-03-25T13:23:08.000Z
modules/skeletonPlayer/src/main.cpp
robotology/assistive-rehab
7c148385010483202d91b92d6b20c09996d6452e
[ "BSD-3-Clause" ]
120
2019-01-29T10:54:53.000Z
2022-03-30T13:18:37.000Z
modules/skeletonPlayer/src/main.cpp
robotology/assistive-rehab
7c148385010483202d91b92d6b20c09996d6452e
[ "BSD-3-Clause" ]
5
2019-04-29T14:30:40.000Z
2020-09-10T06:29:48.000Z
/****************************************************************************** * * * Copyright (C) 2018 Fondazione Istituto Italiano di Tecnologia (IIT) * * All Rights Reserved. * ...
26.963979
106
0.397901
[ "vector" ]
365fd9b8b1e2f26c18715b62afe6a7216a3d4666
1,539
hpp
C++
wall.hpp
StijnOost/ILI9481_Lib
625f7e17058d646e216f0401d9353e41de525c55
[ "BSL-1.0" ]
null
null
null
wall.hpp
StijnOost/ILI9481_Lib
625f7e17058d646e216f0401d9353e41de525c55
[ "BSL-1.0" ]
null
null
null
wall.hpp
StijnOost/ILI9481_Lib
625f7e17058d646e216f0401d9353e41de525c55
[ "BSL-1.0" ]
null
null
null
#ifndef WALL_HPP #define WALL_HPP #include "line.hpp" class wall : public Drawable { private: Line left,right,top,bottom; const int & name; const int & color; public: /// \brief /// Construct wall /// \details /// needs the screen xy start and xy end also needs color end bounce and name /// makes top down lef...
30.176471
161
0.690058
[ "object" ]
366533246cd0a5a8ae52da57c3b847640c5e62a5
2,011
hpp
C++
include/SFGUI/Container.hpp
growlitheharpo/SFGUI
30ef3a8657b99dc5a099f47cac623c9e400f7edb
[ "Zlib" ]
null
null
null
include/SFGUI/Container.hpp
growlitheharpo/SFGUI
30ef3a8657b99dc5a099f47cac623c9e400f7edb
[ "Zlib" ]
null
null
null
include/SFGUI/Container.hpp
growlitheharpo/SFGUI
30ef3a8657b99dc5a099f47cac623c9e400f7edb
[ "Zlib" ]
null
null
null
#pragma once #include <SFGUI/Widget.hpp> #include <memory> #include <vector> namespace sfg { /** * Base class for container-like widgets. */ class SFGUI_API Container : public Widget { public: typedef std::shared_ptr<Container> Ptr; //!< Shared pointer. typedef std::shared_ptr<const Container> PtrConst; //!<...
21.623656
73
0.675783
[ "vector" ]
36785c3ec75ea0bcb1b6f10d20e58d8dcb146aa3
6,292
cpp
C++
swssconfig/swssconfig.cpp
kcudnik/sonic-swss
46fa3d1593aaeadb01083e72461630de5fc84c37
[ "Apache-2.0" ]
null
null
null
swssconfig/swssconfig.cpp
kcudnik/sonic-swss
46fa3d1593aaeadb01083e72461630de5fc84c37
[ "Apache-2.0" ]
null
null
null
swssconfig/swssconfig.cpp
kcudnik/sonic-swss
46fa3d1593aaeadb01083e72461630de5fc84c37
[ "Apache-2.0" ]
null
null
null
#include <stdlib.h> #include <iostream> #include <vector> #include "logger.h" #include <fstream> #include "dbconnector.h" #include "producertable.h" #include "json.hpp" using namespace std; using namespace swss; using json = nlohmann::json; int db_port = 6379; const char* const hostname ...
31.148515
119
0.52384
[ "object", "vector" ]
367e6475e466f922accdc148f8bee623de3420fc
2,022
hpp
C++
tests/pendulum/pendulum.hpp
nim65s/py-dynamic-graph
e4480ea6f13627cbd6b149140ffc8f3d2db006a0
[ "BSD-2-Clause" ]
null
null
null
tests/pendulum/pendulum.hpp
nim65s/py-dynamic-graph
e4480ea6f13627cbd6b149140ffc8f3d2db006a0
[ "BSD-2-Clause" ]
null
null
null
tests/pendulum/pendulum.hpp
nim65s/py-dynamic-graph
e4480ea6f13627cbd6b149140ffc8f3d2db006a0
[ "BSD-2-Clause" ]
null
null
null
#ifndef PY_DG_TEST_PENDULUM_HH #define PY_DG_TEST_PENDULUM_HH #include <dynamic-graph/entity.h> #include <dynamic-graph/signal-ptr.h> #include <dynamic-graph/linear-algebra.h> namespace dynamicgraph { class InvertedPendulum : public Entity::Entity { public: InvertedPendulum(const std::string& inName, do...
24.361446
97
0.641444
[ "vector", "model" ]
3684f1e657f68e5c4e1afa7ad7c5d3335013a8ad
6,271
cpp
C++
example/ch7_ex7_5_HistBackProj.cpp
gdijaejung/Learning-OpenCV
20942678b467e4ce6053ed2f9c59f852affa4a24
[ "MIT" ]
null
null
null
example/ch7_ex7_5_HistBackProj.cpp
gdijaejung/Learning-OpenCV
20942678b467e4ce6053ed2f9c59f852affa4a24
[ "MIT" ]
null
null
null
example/ch7_ex7_5_HistBackProj.cpp
gdijaejung/Learning-OpenCV
20942678b467e4ce6053ed2f9c59f852affa4a24
[ "MIT" ]
null
null
null
// ch7_ex7_5_HistBackProj OK, OK, this isn't in the book, its' "extra" // We cut the source code for actually doing back project in the book // but here it is no extra charge. // Gary Bradski Oct 3, 2008 // #include <cv.h> #include <cxcore.h> #include <highgui.h> #include <stdio.h> /* *************** License...
36.04023
107
0.576782
[ "model" ]
36860e0c976ddb1076acabff6af7bf3d45566c11
885
cxx
C++
examples/myexec.cxx
marco-fedele/3dimagetoolkit
c58db95c52e7d434080e0de28f3b9ce519d7ad3f
[ "BSD-3-Clause" ]
11
2016-02-26T17:33:13.000Z
2021-01-20T12:52:15.000Z
examples/myexec.cxx
marco-fedele/3dimagetoolkit
c58db95c52e7d434080e0de28f3b9ce519d7ad3f
[ "BSD-3-Clause" ]
null
null
null
examples/myexec.cxx
marco-fedele/3dimagetoolkit
c58db95c52e7d434080e0de28f3b9ce519d7ad3f
[ "BSD-3-Clause" ]
3
2016-03-16T17:01:50.000Z
2018-05-05T02:57:55.000Z
/* ========================================================================================= 3D Image Toolkit Copyright 2013: Marco Fedele, Luca Barbarotta, Francesco Cremonesi, Elena Faggiano. All rights reserved. Read details of the license in the file license.txt provided with the library. =========================...
21.071429
89
0.577401
[ "3d" ]
36911fefee5d225075a2d28233852a6ca9fa07d1
466
cpp
C++
examples/line_plot/stairs/stairs_5.cpp
kurogane1031/matplotplusplus
44d21156edba8effe1e764a8642b0b70590d597b
[ "MIT" ]
2
2020-09-02T14:02:26.000Z
2020-10-28T07:00:44.000Z
examples/line_plot/stairs/stairs_5.cpp
kurogane1031/matplotplusplus
44d21156edba8effe1e764a8642b0b70590d597b
[ "MIT" ]
null
null
null
examples/line_plot/stairs/stairs_5.cpp
kurogane1031/matplotplusplus
44d21156edba8effe1e764a8642b0b70590d597b
[ "MIT" ]
2
2020-09-01T16:22:07.000Z
2020-09-02T14:02:27.000Z
#include <cmath> #include <matplot/matplot.h> int main() { using namespace matplot; std::vector<double> x1 = linspace(0,2*pi); std::vector<double> x2 = linspace(0,pi); std::vector<std::vector<double>> X = {x1,x2}; std::vector<std::vector<double>> Y(2); Y[0] = transform(x1, [](double x) {retur...
23.3
68
0.56867
[ "vector", "transform" ]
3692b67a3414793bcf5c6bf1a7a622b39644a108
3,478
hpp
C++
tools/Vitis-AI-Runtime/VART/vart/xrt-device-handle/include/xir/xrt_device_handle.hpp
hito0512/Vitis-AI
996459fb96cb077ed2f7e789d515893b1cccbc95
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tools/Vitis-AI-Runtime/VART/vart/xrt-device-handle/include/xir/xrt_device_handle.hpp
wangyifan778/Vitis-AI
f61061eef7550d98bf02a171604c9a9f283a7c47
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tools/Vitis-AI-Runtime/VART/vart/xrt-device-handle/include/xir/xrt_device_handle.hpp
wangyifan778/Vitis-AI
f61061eef7550d98bf02a171604c9a9f283a7c47
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
/* * Copyright 2019 Xilinx Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
39.522727
79
0.657849
[ "object" ]
36a034f764e9ae1f75c6470ae159b1ecc39f74d4
15,347
cpp
C++
src/my_transport.cpp
vhvb1989/libcurl-callbacks-transport-adapter
3fbd133467c1ecf3702e4f4f650502f6742e70a4
[ "MIT" ]
null
null
null
src/my_transport.cpp
vhvb1989/libcurl-callbacks-transport-adapter
3fbd133467c1ecf3702e4f4f650502f6742e70a4
[ "MIT" ]
null
null
null
src/my_transport.cpp
vhvb1989/libcurl-callbacks-transport-adapter
3fbd133467c1ecf3702e4f4f650502f6742e70a4
[ "MIT" ]
null
null
null
#include "my_transport.hpp" #include <curl/curl.h> #include <memory> #include <vector> using namespace Azure::Core::Http; using namespace Azure::Core; namespace { class CurlSession final : public Azure::Core::IO::BodyStream { private: CURL *m_curlHandle; struct curl_slist *m_headerHandle...
42.046575
138
0.52955
[ "vector" ]
36a3ba58c4dae0401326d9d18f00a5c97a185b7c
1,400
cpp
C++
Hackerrank/Encryption/solution.cpp
arushmangal/Hack-CP-DSA
91f5aabc4741c1c518f35065273c7fcfced67061
[ "MIT" ]
205
2021-09-30T15:41:05.000Z
2022-03-27T18:34:56.000Z
Hackerrank/Encryption/solution.cpp
arushmangal/Hack-CP-DSA
91f5aabc4741c1c518f35065273c7fcfced67061
[ "MIT" ]
566
2021-09-30T15:27:27.000Z
2021-10-16T21:21:02.000Z
Hackerrank/Encryption/solution.cpp
arushmangal/Hack-CP-DSA
91f5aabc4741c1c518f35065273c7fcfced67061
[ "MIT" ]
399
2021-09-29T05:40:46.000Z
2022-03-27T18:34:58.000Z
#include <bits/stdc++.h> using namespace std; // Complete the encryption function below. string encryption(string s) { s.erase(remove(s.begin(),s.end(),' '),s.end()); //remove all the spaces. int l = s.size(); int row = sqrt(l); //typecasting to int will turn it to floor value. int column; if(ro...
24.137931
100
0.508571
[ "vector" ]
a5e31c52720c9e7e1bcb5b4390d272ea6501f701
21,470
cpp
C++
cognitics/meshgen/meshgen.cpp
mikedig/cdb-productivity-api
e2bedaa550a8afa780c01f864d72e0aebd87dd5a
[ "MIT" ]
null
null
null
cognitics/meshgen/meshgen.cpp
mikedig/cdb-productivity-api
e2bedaa550a8afa780c01f864d72e0aebd87dd5a
[ "MIT" ]
null
null
null
cognitics/meshgen/meshgen.cpp
mikedig/cdb-productivity-api
e2bedaa550a8afa780c01f864d72e0aebd87dd5a
[ "MIT" ]
null
null
null
#include <ccl/ObjLog.h> #include <ccl/LogStream.h> #include <ccl/Timer.h> #include <ccl/FileInfo.h> #include <cdb_util/cdb_util.h> #include <tg/TerrainGenerator.h> #include <tg/GltfTerrainGenerator.h> #include <tg/ObjTerrainGenerator.h> #include <tg/OpenFlightTerrainGenerator.h> #include <tg/FbxTerrainGene...
35.664452
261
0.598882
[ "mesh", "vector", "model" ]
a5f2d378f5507d9cd121a42c4e9ab886c7e2160b
31,902
cpp
C++
src/cpu/aarch64/cpu_reducer.cpp
qnet-araki/oneDNN
599c56e9f0ca5243aaa8d27d031b4935cc0ce174
[ "Apache-2.0" ]
13
2020-05-29T07:39:23.000Z
2021-11-22T14:01:28.000Z
src/cpu/aarch64/cpu_reducer.cpp
qnet-araki/oneDNN
599c56e9f0ca5243aaa8d27d031b4935cc0ce174
[ "Apache-2.0" ]
8
2020-09-04T02:05:19.000Z
2021-12-24T02:18:37.000Z
src/cpu/aarch64/cpu_reducer.cpp
qnet-araki/oneDNN
599c56e9f0ca5243aaa8d27d031b4935cc0ce174
[ "Apache-2.0" ]
24
2020-08-07T04:21:48.000Z
2021-12-09T02:03:35.000Z
/******************************************************************************* * Copyright 2017-2020 Intel Corporation * * 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.apa...
36.668966
80
0.55799
[ "vector" ]
a5f315a0771e07ee7b0840efe97a318e6859eca8
301
cpp
C++
graph/bipartite_matching.cpp
nicotina04/cp-library
68181722ff86ed2b133cf3282c183eb8b9bbb050
[ "MIT" ]
null
null
null
graph/bipartite_matching.cpp
nicotina04/cp-library
68181722ff86ed2b133cf3282c183eb8b9bbb050
[ "MIT" ]
null
null
null
graph/bipartite_matching.cpp
nicotina04/cp-library
68181722ff86ed2b133cf3282c183eb8b9bbb050
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define BI_G 2001 bool visited[BI_G]; int bpt[BI_G]; vector<int> graph[BI_G]; int bi_match(int cur) { if (visited[cur]) return 0; visited[cur] = 1; for (int i: graph[cur]) { if (!bpt[i] || bi_match(i)) { bpt[i] = cur; return 1; } } return 0; }
15.842105
33
0.568106
[ "vector" ]
a5fb597312bc34d981d9160aa90d6178531819fd
6,421
cc
C++
chrome/browser/media_galleries/fileapi/picasa/pmp_column_reader_unittest.cc
pozdnyakov/chromium-crosswalk
0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/browser/media_galleries/fileapi/picasa/pmp_column_reader_unittest.cc
pozdnyakov/chromium-crosswalk
0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/browser/media_galleries/fileapi/picasa/pmp_column_reader_unittest.cc
pozdnyakov/chromium-crosswalk
0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <algorithm> #include <vector> #include "chrome/browser/media_galleries/fileapi/picasa/pmp_column_reader.h" #include "chrome/browser/media_galler...
33.26943
77
0.749727
[ "vector" ]
5701a0871b6387ef2d8db7b52f4e2a1fd87d3473
11,035
cpp
C++
tests/test_cpp_api.cpp
sriramch/nvcomp
5483204bc5ba2eb61d1ead4e4942d56dbfaf5fd1
[ "BSD-3-Clause" ]
null
null
null
tests/test_cpp_api.cpp
sriramch/nvcomp
5483204bc5ba2eb61d1ead4e4942d56dbfaf5fd1
[ "BSD-3-Clause" ]
null
null
null
tests/test_cpp_api.cpp
sriramch/nvcomp
5483204bc5ba2eb61d1ead4e4942d56dbfaf5fd1
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list ...
28.440722
120
0.698777
[ "vector" ]
570823c0e4154075513945f12f210f22b62d2cf5
3,633
cpp
C++
engine/src/virtualmachine/virtualmachine.cpp
anujv99/GameEngine
644cb6667800cfecaa429666e5610e27f923e953
[ "MIT" ]
null
null
null
engine/src/virtualmachine/virtualmachine.cpp
anujv99/GameEngine
644cb6667800cfecaa429666e5610e27f923e953
[ "MIT" ]
null
null
null
engine/src/virtualmachine/virtualmachine.cpp
anujv99/GameEngine
644cb6667800cfecaa429666e5610e27f923e953
[ "MIT" ]
null
null
null
#include "virtualmachine.h" #include "vmlogger.h" #include "utils/datafile.h" #include "luabind/bindcorelib.h" #include "luabind/bindimguilib.h" #include "luabind/bindgraphicslib.h" #include "luabind/bindmath.h" #include "luabind/bindsystemlib.h" namespace prev { static lua_State * S; VirtualMachine::VirtualMach...
27.732824
111
0.667492
[ "render" ]
570ad4cbb166cc7ab5d568313ad80ac3b2a40c13
8,730
cpp
C++
src/AppLogic/Filter.cpp
h4koo/FSP_ImageDeconvolution
724b3c9a1a0a7c45803bd783f61e0363046a2d79
[ "MIT" ]
null
null
null
src/AppLogic/Filter.cpp
h4koo/FSP_ImageDeconvolution
724b3c9a1a0a7c45803bd783f61e0363046a2d79
[ "MIT" ]
null
null
null
src/AppLogic/Filter.cpp
h4koo/FSP_ImageDeconvolution
724b3c9a1a0a7c45803bd783f61e0363046a2d79
[ "MIT" ]
null
null
null
#include "Filter.hpp" namespace AppLogic { Filter::Filter() : last_used_noise_type(noise_type_t::GAUSSIAN), last_used_noise_value(0), is_canceled(false) { } string Filter::getImagePath(size_t index) { if (index > this->loaded_file_paths.size()) index = 0; ...
35.201613
126
0.583963
[ "vector" ]
5714572a1ac663fde9324937bfc82ac50974a4a0
3,579
cpp
C++
CF R426/C.cpp
parthlathiya/Codeforces_Submissions
6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68
[ "MIT" ]
null
null
null
CF R426/C.cpp
parthlathiya/Codeforces_Submissions
6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68
[ "MIT" ]
null
null
null
CF R426/C.cpp
parthlathiya/Codeforces_Submissions
6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; #define rep(i,a,b) for(ll i=a;i<b;i++) #define re(i,b) for(ll i=0;i<b;i++) #define repr(i,n) for(ll i=n-1;i>=0;i--) #define ll long long #define ld long double #define llu long long unsigned #define pll std::pair<ll, ll> #defin...
17.373786
88
0.4247
[ "vector" ]
571679ff65c400cf2d9e7f6ac3429a1a7b789eb4
198
cpp
C++
NOTLA C++/NOTLA C++/Enemies.cpp
AlbertVanNeinstein/NOTLA-C-
cb6be106fc426137c66769d5b11bf8cc327fedf0
[ "MIT" ]
null
null
null
NOTLA C++/NOTLA C++/Enemies.cpp
AlbertVanNeinstein/NOTLA-C-
cb6be106fc426137c66769d5b11bf8cc327fedf0
[ "MIT" ]
null
null
null
NOTLA C++/NOTLA C++/Enemies.cpp
AlbertVanNeinstein/NOTLA-C-
cb6be106fc426137c66769d5b11bf8cc327fedf0
[ "MIT" ]
null
null
null
#include "stdafx.h" //#include "Objects.h" //#include <iostream> //#include <string> //#include <vector> //Enemy Array Stats. Order: Health, Attack, Defense, Speed. //int zombie[4]{ 100, 10, 5, 1};
24.75
59
0.661616
[ "vector" ]
571b2ec5d4d3cecda52873adbaf7596b6d3d1530
1,708
hpp
C++
includes/concept.hpp
whackashoe/sdr
4655263ce28bd6990b70c2b560982a31e65c89a9
[ "MIT" ]
1
2015-07-27T00:52:11.000Z
2015-07-27T00:52:11.000Z
includes/concept.hpp
whackashoe/sdr
4655263ce28bd6990b70c2b560982a31e65c89a9
[ "MIT" ]
null
null
null
includes/concept.hpp
whackashoe/sdr
4655263ce28bd6990b70c2b560982a31e65c89a9
[ "MIT" ]
null
null
null
#ifndef SDR_CONCEPT_H_ #define SDR_CONCEPT_H_ #include "constants.hpp" #include <vector> #include <array> #include <bitset> #include <algorithm> #include <cstddef> #include <iterator> namespace sdr { // this holds all of the traits for a single concept // ie - if width is 1024, this could hold up to 1024 values be...
23.722222
88
0.564988
[ "vector" ]
571c5c9aee1a4cc4d635e97bf2a89a2c5b9da252
5,356
cpp
C++
gl/old-2oo7/foo.cpp
vmiklos/vmexam
ff4ef386d3cfd84b8ed06387cbd87b119dd50448
[ "MIT" ]
1
2015-02-09T10:21:51.000Z
2015-02-09T10:21:51.000Z
gl/old-2oo7/foo.cpp
vmiklos/vmexam
ff4ef386d3cfd84b8ed06387cbd87b119dd50448
[ "MIT" ]
null
null
null
gl/old-2oo7/foo.cpp
vmiklos/vmexam
ff4ef386d3cfd84b8ed06387cbd87b119dd50448
[ "MIT" ]
null
null
null
/* * kisfeladat1.cpp * * Copyright (c) 2007 by Miklos Vajna <vmiklos@frugalware.org> */ #include <GL/gl.h> #include <GL/glu.h> #include <GL/glut.h> #include <stdio.h> #include <math.h> #include <limits.h> #include <vector> #include <iostream> #include <fstream> #include <string> using namespace std; struct V...
22.888889
114
0.612584
[ "vector" ]
5727407d82faf1cc027a1e9b977626ee3e893e36
581
cpp
C++
Aula04/Ejercicio3_MayorSuma.cpp
VanessaMMH/ProgComp2021A
03a3e0394b26eb78801246c7d6b7888fe53141bd
[ "BSD-3-Clause" ]
null
null
null
Aula04/Ejercicio3_MayorSuma.cpp
VanessaMMH/ProgComp2021A
03a3e0394b26eb78801246c7d6b7888fe53141bd
[ "BSD-3-Clause" ]
null
null
null
Aula04/Ejercicio3_MayorSuma.cpp
VanessaMMH/ProgComp2021A
03a3e0394b26eb78801246c7d6b7888fe53141bd
[ "BSD-3-Clause" ]
null
null
null
#include <bits/stdc++.h> using namespace std; /* Dado un array que contiene números enteros positivos y negativos. Encuentre la mayor suma de sus subarrays */ int mayor_sum(vector <int>& v){ int mayor_suma = v[0]; int suma = 0; for (int i = 0; i < v.size(); i++){ suma = suma + v[i]; if(su...
19.366667
75
0.518072
[ "vector" ]
573231584ce8c4976fbacc9a58d3d0738047b2f1
7,069
hpp
C++
include/MixtureWCRP.hpp
robert-lindsey/WCRP
7e46c02d430b5fdc7a13dda42cc965b87f640346
[ "MIT" ]
19
2015-11-02T01:28:57.000Z
2022-03-31T06:14:46.000Z
include/MixtureWCRP.hpp
wpmarinho/WCRP
7e46c02d430b5fdc7a13dda42cc965b87f640346
[ "MIT" ]
1
2017-04-13T08:18:40.000Z
2017-04-13T08:18:40.000Z
include/MixtureWCRP.hpp
wpmarinho/WCRP
7e46c02d430b5fdc7a13dda42cc965b87f640346
[ "MIT" ]
6
2016-11-08T02:18:47.000Z
2020-12-20T20:18:05.000Z
/* The MIT License (MIT) Copyright (c) 2015 Robert Lindsey 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, modify, merge...
51.224638
210
0.751733
[ "vector" ]
573dbfde0412d2d6be932c00e68ba70969b091b3
1,446
cc
C++
RAVL2/3D/CameraCal/PinholeCamera0.cc
isuhao/ravl2
317e0ae1cb51e320b877c3bad6a362447b5e52ec
[ "BSD-Source-Code" ]
null
null
null
RAVL2/3D/CameraCal/PinholeCamera0.cc
isuhao/ravl2
317e0ae1cb51e320b877c3bad6a362447b5e52ec
[ "BSD-Source-Code" ]
null
null
null
RAVL2/3D/CameraCal/PinholeCamera0.cc
isuhao/ravl2
317e0ae1cb51e320b877c3bad6a362447b5e52ec
[ "BSD-Source-Code" ]
null
null
null
// This file is part of RAVL, Recognition And Vision Library // Copyright (C) 2001, University of Surrey // This code may be redistributed under the terms of the GNU Lesser // General Public License (LGPL). See the lgpl.licence file for details or // see http://www.gnu.org/copyleft/lesser.html // file-header-ends-here...
24.1
74
0.574689
[ "3d" ]
57425c790fdba0e0cd81f826a523705d3dae4572
7,698
cpp
C++
source/tests/FlattenIteratorTest.cpp
0xflotus/mariana-trench
6c8c28a2b89a9eea70c09cae9b594ae4594d97a6
[ "MIT" ]
null
null
null
source/tests/FlattenIteratorTest.cpp
0xflotus/mariana-trench
6c8c28a2b89a9eea70c09cae9b594ae4594d97a6
[ "MIT" ]
4
2021-08-21T07:51:53.000Z
2022-02-27T20:22:41.000Z
source/tests/FlattenIteratorTest.cpp
LaudateCorpus1/mariana-trench
35595e2782d823a5ed9908dd4fe3bdc06d611ba1
[ "MIT" ]
null
null
null
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <list> #include <map> #include <vector> #include <gmock/gmock.h> #include <mariana-trench/FlattenIterator.h> #include <m...
29.494253
79
0.561055
[ "vector" ]
5748f9f5f9e968a1519d273ddef7b1ca5b7ee6fc
9,160
cc
C++
cfg4/attic/CSurLib.cc
seriksen/opticks
2173ea282bdae0bbd1abf4a3535bede334413ec1
[ "Apache-2.0" ]
1
2020-05-13T06:55:49.000Z
2020-05-13T06:55:49.000Z
cfg4/attic/CSurLib.cc
seriksen/opticks
2173ea282bdae0bbd1abf4a3535bede334413ec1
[ "Apache-2.0" ]
null
null
null
cfg4/attic/CSurLib.cc
seriksen/opticks
2173ea282bdae0bbd1abf4a3535bede334413ec1
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * 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 ...
27.42515
129
0.61059
[ "model" ]
5749ac83f345923b9e2ce2feb5c2beb1e590d971
5,890
cpp
C++
ReleaseTests/SpAsgnTest.cpp
vishalbelsare/CombBLAS
426f6be0b29831025cdcacc1f8f69e3520bfb0ff
[ "BSD-3-Clause-LBNL" ]
22
2020-08-14T19:14:13.000Z
2022-02-05T20:14:59.000Z
ReleaseTests/SpAsgnTest.cpp
vishalbelsare/CombBLAS
426f6be0b29831025cdcacc1f8f69e3520bfb0ff
[ "BSD-3-Clause-LBNL" ]
8
2020-10-09T23:23:36.000Z
2021-08-05T20:35:18.000Z
ReleaseTests/SpAsgnTest.cpp
vishalbelsare/CombBLAS
426f6be0b29831025cdcacc1f8f69e3520bfb0ff
[ "BSD-3-Clause-LBNL" ]
8
2020-12-04T09:10:06.000Z
2022-01-04T15:37:59.000Z
/****************************************************************/ /* Parallel Combinatorial BLAS Library (for Graph Computations) */ /* version 1.5 -------------------------------------------------*/ /* date: 10/09/2015 ---------------------------------------------*/ /* authors: Ariful Azad, Aydin Buluc, Adam Lugowski...
30.518135
158
0.673005
[ "vector" ]
5750f4026d97bdf1fe6e2be831f9f5105f8c849a
3,437
cpp
C++
src/caffe/layers/weight_transfer_layer.cpp
apir8181/caffe_icml2016
b0a318bf76a005a89dc9d46c39e37cb9b4a7f201
[ "BSD-2-Clause" ]
null
null
null
src/caffe/layers/weight_transfer_layer.cpp
apir8181/caffe_icml2016
b0a318bf76a005a89dc9d46c39e37cb9b4a7f201
[ "BSD-2-Clause" ]
null
null
null
src/caffe/layers/weight_transfer_layer.cpp
apir8181/caffe_icml2016
b0a318bf76a005a89dc9d46c39e37cb9b4a7f201
[ "BSD-2-Clause" ]
null
null
null
#include <vector> #include "caffe/filler.hpp" #include "caffe/layers/weight_transfer_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> void WeightTransferLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { const int axi...
36.178947
93
0.693337
[ "shape", "vector" ]
57589907a18039f26e907a7067ca83af0f9c7205
6,165
cpp
C++
locomotion_framework/models/robot_class/src/contacts.cpp
ADVRHumanoids/DrivingFramework
34715c37bfe3c1f2bd92aeacecc12704a1a7820e
[ "Zlib" ]
1
2019-12-02T07:10:42.000Z
2019-12-02T07:10:42.000Z
locomotion_framework/models/robot_class/src/contacts.cpp
ADVRHumanoids/DrivingFramework
34715c37bfe3c1f2bd92aeacecc12704a1a7820e
[ "Zlib" ]
null
null
null
locomotion_framework/models/robot_class/src/contacts.cpp
ADVRHumanoids/DrivingFramework
34715c37bfe3c1f2bd92aeacecc12704a1a7820e
[ "Zlib" ]
2
2020-10-22T19:06:44.000Z
2021-06-07T03:32:52.000Z
#include "mwoibn/robot_class/contacts.h" namespace mwoibn { namespace robot_class { bool mwoibn::robot_class::Contacts::remove(int i) { if (i < 0 || i >= _contacts.size()) return false; _contacts.erase(_contacts.begin() + i); resize(); return true; } int mwoibn::robot_class::Contacts::getId(std::string...
20.346535
143
0.640876
[ "vector" ]
57656c39dfde3b22d499ad3797eefbe4614c87d5
698
cpp
C++
qtcreator/MToNdri/main.cpp
fasShare/cpp-study
b7d691a02324260e09e5e35c0a71650ddb37fd97
[ "MIT" ]
null
null
null
qtcreator/MToNdri/main.cpp
fasShare/cpp-study
b7d691a02324260e09e5e35c0a71650ddb37fd97
[ "MIT" ]
null
null
null
qtcreator/MToNdri/main.cpp
fasShare/cpp-study
b7d691a02324260e09e5e35c0a71650ddb37fd97
[ "MIT" ]
null
null
null
#include <iostream> #include <stack> #include <vector> #include <string> // 把数M转化为N进制数 using namespace std; int abs(int n) { return n < 0 ? -n : n; } int main() { int M, N; cin >> M >> N; stack<char> nums; vector<char> chars = {'0', '1', '2', '3', '4', '5', '6', '7', ...
17.02439
46
0.383954
[ "vector" ]
576ce59fe05a4030c8de54541805cf25117e9168
3,128
cpp
C++
SoundFontInfoLib/SoundFontInfoLib/Render/Voice/State.cpp
kant/SoundFonts
a5d678e2cfbd299e460db4f7ec747fcb6554512f
[ "MIT" ]
41
2019-01-04T07:09:03.000Z
2022-03-15T05:36:23.000Z
SoundFontInfoLib/SoundFontInfoLib/Render/Voice/State.cpp
kant/SoundFonts
a5d678e2cfbd299e460db4f7ec747fcb6554512f
[ "MIT" ]
2
2020-12-02T22:31:01.000Z
2021-12-30T19:58:21.000Z
SoundFontInfoLib/SoundFontInfoLib/Render/Voice/State.cpp
kant/SoundFonts
a5d678e2cfbd299e460db4f7ec747fcb6554512f
[ "MIT" ]
7
2019-01-04T07:09:09.000Z
2022-02-25T13:31:47.000Z
// Copyright © 2021 Brad Howes. All rights reserved. #include <cmath> #include "Render/Envelope/Generator.hpp" #include "Render/Voice/Config.hpp" #include "Render/Voice/State.hpp" using namespace SF2::Render::Voice; State::State(double sampleRate, const MIDI::Channel& channel, const Config& config) : sampleRate_{s...
37.686747
120
0.736893
[ "render" ]
5775a1d35c3f4ab0ec7c5486047601bfc1119df1
2,286
hpp
C++
game_of_life/lib/game_of_life.hpp
rickmarson/game_of_life_nn
728bb009b9d54268e96f33bb752a3e5ba1ae15d1
[ "MIT" ]
null
null
null
game_of_life/lib/game_of_life.hpp
rickmarson/game_of_life_nn
728bb009b9d54268e96f33bb752a3e5ba1ae15d1
[ "MIT" ]
null
null
null
game_of_life/lib/game_of_life.hpp
rickmarson/game_of_life_nn
728bb009b9d54268e96f33bb752a3e5ba1ae15d1
[ "MIT" ]
null
null
null
#include <vector> #include <stdint.h> #include <string> class BLContext; class BLImage; namespace common { namespace gol { typedef std::vector<std::vector<bool>> Grid; typedef std::vector<std::vector<float>> ProbabilisticGrid; class GameOfLife { public: GameOfLife() = default; ~GameOfLife(...
35.169231
154
0.551181
[ "vector" ]
57766a4f9ebfe1ef4e787fcf5883665e22766f4c
1,760
cpp
C++
srcs/graphics/Map.cpp
Aracthor/pathfindingplusplus
628516348906c808a866579a41bd2184fa140b8c
[ "Apache-2.0" ]
null
null
null
srcs/graphics/Map.cpp
Aracthor/pathfindingplusplus
628516348906c808a866579a41bd2184fa140b8c
[ "Apache-2.0" ]
null
null
null
srcs/graphics/Map.cpp
Aracthor/pathfindingplusplus
628516348906c808a866579a41bd2184fa140b8c
[ "Apache-2.0" ]
null
null
null
#include <SFML/Graphics/RenderTarget.hpp> #include "graphic/Map.hpp" namespace graphic { Map::Map(const algo::Map& map) : m_width(map.getWidth()), m_height(map.getHeight()), m_shapes(new sf::RectangleShape[m_width * m_height]) { this->initRectangles(map); this->initCircles(map); } Map::~Map() { ...
22
105
0.670455
[ "shape", "model" ]