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
9a32776e83779eaa3237921437666f5f1209d051
1,470
cpp
C++
String Matching Problems/CF-Palindrome Degree.cpp
Sohieb/competitive-programming
fe3fca0d4d2a242053d097c7ae71667a135cfc45
[ "MIT" ]
1
2021-07-17T12:59:08.000Z
2021-07-17T12:59:08.000Z
String Matching Problems/CF-Palindrome Degree.cpp
Sohieb/competitive-programming
fe3fca0d4d2a242053d097c7ae71667a135cfc45
[ "MIT" ]
null
null
null
String Matching Problems/CF-Palindrome Degree.cpp
Sohieb/competitive-programming
fe3fca0d4d2a242053d097c7ae71667a135cfc45
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; using namespace __gnu_cxx; typedef double db; typedef long long ll; typedef pair<int,int> ii; #define F first #define S second #define pnl printf("\n") #define sz(x) (int)x.size() #define sf(x) scanf("%d",&x) #define pf(x) printf("%d\n",x) #de...
22.615385
49
0.510884
[ "vector" ]
9a32fdde294fef54751dc2f898803c494712fb76
746
cpp
C++
app/src/main/jni/glesNative/dateLib.cpp
flopshot/GLDemo
ebc65d58b78b76474f393ea7e536a4570127a447
[ "Apache-2.0" ]
null
null
null
app/src/main/jni/glesNative/dateLib.cpp
flopshot/GLDemo
ebc65d58b78b76474f393ea7e536a4570127a447
[ "Apache-2.0" ]
null
null
null
app/src/main/jni/glesNative/dateLib.cpp
flopshot/GLDemo
ebc65d58b78b76474f393ea7e536a4570127a447
[ "Apache-2.0" ]
null
null
null
#include <jni.h> extern "C" JNIEXPORT jstring JNICALL Java_com_sean_gldemo_DateUtil_dateFromJNI(JNIEnv *env) { // Get a class reference for DateUtil class and get constructor method id jclass dateUtilClass = (env)->FindClass("com/sean/gldemo/DateUtil"); jmethodID dateUtilConstructor = (env)->GetMethodID(d...
43.882353
105
0.75067
[ "object" ]
9a352042e5f3ec10f2406d919982ea7fd2f03ee6
929
cpp
C++
android-28/android/hardware/SensorManager_DynamicSensorCallback.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
12
2020-03-26T02:38:56.000Z
2022-03-14T08:17:26.000Z
android-28/android/hardware/SensorManager_DynamicSensorCallback.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
1
2021-01-27T06:07:45.000Z
2021-11-13T19:19:43.000Z
android-30/android/hardware/SensorManager_DynamicSensorCallback.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
3
2021-02-02T12:34:55.000Z
2022-03-08T07:45:57.000Z
#include "./Sensor.hpp" #include "./SensorManager_DynamicSensorCallback.hpp" namespace android::hardware { // Fields // QJniObject forward SensorManager_DynamicSensorCallback::SensorManager_DynamicSensorCallback(QJniObject obj) : JObject(obj) {} // Constructors SensorManager_DynamicSensorCallback::SensorManag...
25.108108
108
0.758881
[ "object" ]
9a374736af5b252f7092b491e6010dddb51e6161
2,647
cpp
C++
CPP/cdx/File.cpp
ThyMYthOS/cdx
46f2a976824d07d87a99789a671623c0b83a07c9
[ "BSD-2-Clause" ]
null
null
null
CPP/cdx/File.cpp
ThyMYthOS/cdx
46f2a976824d07d87a99789a671623c0b83a07c9
[ "BSD-2-Clause" ]
null
null
null
CPP/cdx/File.cpp
ThyMYthOS/cdx
46f2a976824d07d87a99789a671623c0b83a07c9
[ "BSD-2-Clause" ]
null
null
null
/** * \file File.cpp * * \date Mar 18, 2015 * \author: Frank Schubert */ #include "File.h" #include <stdexcept> using namespace std; /** * \addtogroup cpp_implementation * @{ */ namespace CDX { File::File(std::string _file_name) : file_name(_file_name), h5file(file_name.c_str(), H5F_ACC_RDONLY), c0_m_s(...
27.010204
81
0.71326
[ "vector" ]
9a3a9cd3008b1a7e6e6d447e8c480a809a616992
6,903
hpp
C++
include/stl2/detail/iterator/operations.hpp
marehr/cmcstl2
7a7cae1e23beacb18fd786240baef4ae121d813f
[ "MIT" ]
null
null
null
include/stl2/detail/iterator/operations.hpp
marehr/cmcstl2
7a7cae1e23beacb18fd786240baef4ae121d813f
[ "MIT" ]
null
null
null
include/stl2/detail/iterator/operations.hpp
marehr/cmcstl2
7a7cae1e23beacb18fd786240baef4ae121d813f
[ "MIT" ]
null
null
null
// cmcstl2 - A concept-enabled C++ standard library // // Copyright Casey Carter 2015 // // Use, modification and distribution is subject to the // Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // Project home: https://github.c...
22.782178
77
0.623207
[ "object" ]
9a503ae41c10422085abf8e3fdd3c63d0e3e405a
1,507
cpp
C++
BRAC University Competitive Programming training/Beginner Classes/Graph traversal/BFS.cpp
mitul3737/Mitul-s-Competitive-Programming-March-May
d1ce08f549b4a923623436b2ca750a20230094ca
[ "MIT" ]
1
2021-04-23T16:53:35.000Z
2021-04-23T16:53:35.000Z
BRAC University Competitive Programming training/Beginner Classes/Graph traversal/BFS.cpp
mitul3737/Mitul-s-Competitive-Programming-March-May
d1ce08f549b4a923623436b2ca750a20230094ca
[ "MIT" ]
null
null
null
BRAC University Competitive Programming training/Beginner Classes/Graph traversal/BFS.cpp
mitul3737/Mitul-s-Competitive-Programming-March-May
d1ce08f549b4a923623436b2ca750a20230094ca
[ "MIT" ]
1
2021-03-27T19:56:19.000Z
2021-03-27T19:56:19.000Z
//BFS // lets have a graph who has 6 nodes and 7 edges and edges are 1to 2 ,1 to 5,1to 3, 5 to , 3 to 4, 2 to 4, 2 to 3 //Input: //6 //7 //1 2 //1 5 //1 3 //2 3 //2 4 //3 4 //5 6 //Output: //Calling Bfs at 1 //BFS at 1 //BFS at 2 //BFS at 5 //BFS at 3 //BFS at 4 //BFS at 6 #include <bits/stdc++.h> using namespace st...
17.523256
116
0.528865
[ "vector" ]
9a646c01855a96cc963eb51d2d0799233593bf8a
4,188
cpp
C++
t/08-markers.cpp
HungMingWu/cpp-bredis
5665bf36d0400eab8d773ae95fa71e5c84a81dd7
[ "MIT" ]
null
null
null
t/08-markers.cpp
HungMingWu/cpp-bredis
5665bf36d0400eab8d773ae95fa71e5c84a81dd7
[ "MIT" ]
null
null
null
t/08-markers.cpp
HungMingWu/cpp-bredis
5665bf36d0400eab8d773ae95fa71e5c84a81dd7
[ "MIT" ]
null
null
null
#include <boost/asio/buffer.hpp> #include <string> #include <vector> #include "bredis/MarkerHelpers.hpp" #include "bredis/Protocol.hpp" #include "catch.hpp" namespace r = bredis; namespace asio = boost::asio; using Iterator = std::string::iterator; TEST_CASE("subscription mixed case", "[markers]") { std::string...
37.72973
77
0.634193
[ "vector" ]
9a6ad0072453f083cef104ecb79ad6c800d171ae
210,933
cpp
C++
PrototypeEngine/src/opengl/PrototypeOpenglUI.cpp
o-micron/Prototype
5b9d60d9dd80e7c8a1a2b0aaf19c2d90c1814139
[ "Apache-2.0" ]
2
2021-08-19T17:15:49.000Z
2021-12-28T22:48:47.000Z
PrototypeEngine/src/opengl/PrototypeOpenglUI.cpp
o-micron/Prototype
5b9d60d9dd80e7c8a1a2b0aaf19c2d90c1814139
[ "Apache-2.0" ]
null
null
null
PrototypeEngine/src/opengl/PrototypeOpenglUI.cpp
o-micron/Prototype
5b9d60d9dd80e7c8a1a2b0aaf19c2d90c1814139
[ "Apache-2.0" ]
null
null
null
/// Copyright 2021 Omar Sherif Fathy /// /// 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 applicab...
55.596468
131
0.500799
[ "mesh", "render", "object", "shape", "vector", "model", "transform", "3d" ]
9a7782c5a9ec1eef5bf7c81ad6c3d552556183ca
11,415
cc
C++
rlclientlib/extensions/onnx/src/tensor_parser.cc
cirvine-MSFT/reinforcement_learning
c006b21d0a027b78d9285bf2597b503669bac82c
[ "MIT" ]
63
2018-10-22T17:11:02.000Z
2021-12-08T17:26:41.000Z
rlclientlib/extensions/onnx/src/tensor_parser.cc
cirvine-MSFT/reinforcement_learning
c006b21d0a027b78d9285bf2597b503669bac82c
[ "MIT" ]
160
2018-10-09T02:34:57.000Z
2022-03-31T15:43:48.000Z
rlclientlib/extensions/onnx/src/tensor_parser.cc
cirvine-MSFT/reinforcement_learning
c006b21d0a027b78d9285bf2597b503669bac82c
[ "MIT" ]
36
2018-10-08T21:44:05.000Z
2022-03-22T16:20:03.000Z
#include "tensor_parser.h" #include <algorithm> #include <sstream> namespace reinforcement_learning { namespace onnx { namespace tensor_parser { enum CONSUME_TYPE : bool { EXCLUSIVE = false, INCLUSIVE = true }; enum KNOWN_CHARS : char { END = '\0', DOUBLE_QUOTE = '\"', SEMICOLON = ';', COMMA = ',', OPEN_BRACE = ...
27.841463
185
0.597898
[ "vector" ]
9a7845ae8e6570f1a25f61cac687beafe6b1f9c9
3,316
cpp
C++
lib/winss/sha256.cpp
taylorb-microsoft/winss
ede93f84a5d9585502db5190f2ec6365858f695a
[ "Apache-2.0" ]
52
2017-01-05T23:39:38.000Z
2020-06-04T03:00:11.000Z
lib/winss/sha256.cpp
morganstanley/winss
ede93f84a5d9585502db5190f2ec6365858f695a
[ "Apache-2.0" ]
24
2017-01-05T05:07:34.000Z
2018-03-09T00:50:58.000Z
lib/winss/sha256.cpp
morganstanley/winss
ede93f84a5d9585502db5190f2ec6365858f695a
[ "Apache-2.0" ]
7
2016-12-27T20:55:20.000Z
2018-03-09T00:32:19.000Z
/* * Copyright 2016-2017 Morgan Stanley * * 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 ag...
26.741935
76
0.621834
[ "vector" ]
9a89e0bbd079737ad6a6c78fe677cb499108bd88
24,437
cpp
C++
source/games/duke/src/hudweapon_r.cpp
madame-rachelle/Raze
67c8187d620e6cf9e99543cab5c5746dd31007af
[ "RSA-MD" ]
null
null
null
source/games/duke/src/hudweapon_r.cpp
madame-rachelle/Raze
67c8187d620e6cf9e99543cab5c5746dd31007af
[ "RSA-MD" ]
null
null
null
source/games/duke/src/hudweapon_r.cpp
madame-rachelle/Raze
67c8187d620e6cf9e99543cab5c5746dd31007af
[ "RSA-MD" ]
null
null
null
//------------------------------------------------------------------------- /* Copyright (C) 1996, 2003 - 3D Realms Entertainment Copyright (C) 2017-2019 Nuke.YKT Copyright (C) 2020 - Christoph Oelckers This file is part of Duke Nukem 3D version 1.5 - Atomic Edition Duke Nukem 3D is free software; you can redistribut...
26.163812
180
0.497156
[ "3d" ]
893d5a449a293788717e7654241ed66e9e95519a
724
cc
C++
uva/chapter_5/10673.cc
metaflow/contests
5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2
[ "MIT" ]
1
2019-05-12T23:41:00.000Z
2019-05-12T23:41:00.000Z
uva/chapter_5/10673.cc
metaflow/contests
5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2
[ "MIT" ]
null
null
null
uva/chapter_5/10673.cc
metaflow/contests
5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; using vi = vector<int>; using ii = pair<int,int>; using ll = long long; using llu = unsigned long long; const int INF = numeric_limits<int>::max(); ll x, y, d; void euclid(ll a, ll b) { if (b == 0) { x = 1; y = 0; d = a; return; } euclid(b, a % b); ll t = x; ...
17.238095
62
0.424033
[ "vector" ]
893fedd4e7ced98c06c2e9b6231bf092c9e4545f
1,113
cc
C++
src/linear/tred2_pt.cc
Seeenman/Draco
8540aeb8bbbf467c3aa1caa9521d0910e0ca7917
[ "BSD-3-Clause-Open-MPI" ]
null
null
null
src/linear/tred2_pt.cc
Seeenman/Draco
8540aeb8bbbf467c3aa1caa9521d0910e0ca7917
[ "BSD-3-Clause-Open-MPI" ]
null
null
null
src/linear/tred2_pt.cc
Seeenman/Draco
8540aeb8bbbf467c3aa1caa9521d0910e0ca7917
[ "BSD-3-Clause-Open-MPI" ]
null
null
null
//--------------------------------------------*-C++-*---------------------------------------------// /*! * \file linear/tred2_pt.cc * \author Kent Budge * \date Thu Sep 2 14:49:55 2004 * \brief Specializations of tred2 * \note Copyright (C) 2016-2020 Triad National Security, LLC., All rights reserved. */ /...
41.222222
100
0.300988
[ "vector" ]
89443572a658773674336105538ae2a4854fea51
795
cpp
C++
1626.cpp
pengzhezhe/LeetCode
305ec0c5b4cb5ea7cd244b3308132dee778138bc
[ "Apache-2.0" ]
null
null
null
1626.cpp
pengzhezhe/LeetCode
305ec0c5b4cb5ea7cd244b3308132dee778138bc
[ "Apache-2.0" ]
null
null
null
1626.cpp
pengzhezhe/LeetCode
305ec0c5b4cb5ea7cd244b3308132dee778138bc
[ "Apache-2.0" ]
null
null
null
// // Created by pzz on 2022/5/25. // #include <iostream> #include <algorithm> #include <vector> using namespace std; class Solution { public: int bestTeamScore(vector<int> &scores, vector<int> &ages) { int n = scores.size(); vector<vector<int>> mp(n, vector<int>(2)); for (int i = 0; i <...
19.875
63
0.422642
[ "vector" ]
89562d582aaf75f061af1ce3870bd1b956359dcd
1,939
hh
C++
include/renoir_controller_abstract_interface.hh
xelofox/renoir_controller_abstract_interface
d04d287e7045ab15b3fc96ed8f8ce0bdedafd22d
[ "Apache-2.0" ]
null
null
null
include/renoir_controller_abstract_interface.hh
xelofox/renoir_controller_abstract_interface
d04d287e7045ab15b3fc96ed8f8ce0bdedafd22d
[ "Apache-2.0" ]
null
null
null
include/renoir_controller_abstract_interface.hh
xelofox/renoir_controller_abstract_interface
d04d287e7045ab15b3fc96ed8f8ce0bdedafd22d
[ "Apache-2.0" ]
null
null
null
// // Copyright 2021, // Olivier Stasse, CNRS // // CNRS // // 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.853333
75
0.745745
[ "vector" ]
89612edacc452b72e5e4d0a875f1e9ea2d138788
9,165
cpp
C++
src/Geno/C++/GUI/Platform/Win32/Win32DropTarget.cpp
Starkshat/Geno
64e52e802eda97c48d90080b774bd51b4d873321
[ "Zlib" ]
33
2021-06-14T15:40:38.000Z
2022-03-16T01:23:40.000Z
src/Geno/C++/GUI/Platform/Win32/Win32DropTarget.cpp
Starkshat/Geno
64e52e802eda97c48d90080b774bd51b4d873321
[ "Zlib" ]
9
2021-06-18T13:15:05.000Z
2022-01-05T11:48:28.000Z
src/Geno/C++/GUI/Platform/Win32/Win32DropTarget.cpp
Starkshat/Geno
64e52e802eda97c48d90080b774bd51b4d873321
[ "Zlib" ]
11
2021-06-14T17:01:00.000Z
2022-03-16T01:44:42.000Z
/* * Copyright (c) 2021 Sebastian Kylander https://gaztin.com/ * * This software is provided 'as-is', without any express or implied warranty. In no event will * the authors be held liable for any damages arising from the use of this software. * * Permission is granted to anyone to use this software for any purpo...
28.640625
134
0.581124
[ "vector" ]
896f5d628bbeb0ae8510d3be53ee2937ebe0b3dd
5,573
cpp
C++
examples/seek_raw_viewer.cpp
raptor419/libseekthermal-compact
dec104f778fd1fff7d0ab2d90303f2a91c785f0d
[ "MIT" ]
null
null
null
examples/seek_raw_viewer.cpp
raptor419/libseekthermal-compact
dec104f778fd1fff7d0ab2d90303f2a91c785f0d
[ "MIT" ]
null
null
null
examples/seek_raw_viewer.cpp
raptor419/libseekthermal-compact
dec104f778fd1fff7d0ab2d90303f2a91c785f0d
[ "MIT" ]
null
null
null
// based on Seek Thermal Viewer/Streamer by http://github.com/fnoop/maverick #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include "seek.h" #include "SeekCam.h" #include <iostream> #include <string> #include <signal.h> #include <math.h> #include <memory> #include "args.h" #include <fst...
30.453552
190
0.580657
[ "model" ]
8971d2b64350f610e88886ca9113f34a86be4f11
7,216
hpp
C++
src/render_tasks/d3d12_imgui_render_task.hpp
LaisoEmilio/WispRenderer
8186856a7b3e1f0a19f6f6c8a9b99d8ccff38572
[ "Apache-2.0" ]
203
2019-04-26T10:52:22.000Z
2022-03-15T17:42:44.000Z
src/render_tasks/d3d12_imgui_render_task.hpp
LaisoEmilio/WispRenderer
8186856a7b3e1f0a19f6f6c8a9b99d8ccff38572
[ "Apache-2.0" ]
90
2018-11-23T09:07:05.000Z
2019-04-13T10:44:03.000Z
src/render_tasks/d3d12_imgui_render_task.hpp
LaisoEmilio/WispRenderer
8186856a7b3e1f0a19f6f6c8a9b99d8ccff38572
[ "Apache-2.0" ]
14
2019-06-19T00:52:00.000Z
2021-02-19T13:44:01.000Z
/*! * Copyright 2019 Breda University of Applied Sciences and Team Wisp (Viktor Zoutman, Emilio Laiso, Jens Hagen, Meine Zeinstra, Tahar Meijs, Koen Buitenhuis, Niels Brunekreef, Darius Bouma, Florian Schut) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in co...
37.583333
204
0.742794
[ "render" ]
897afa6d4b497181feab81a0057664ab3863dcd7
1,826
hpp
C++
src/editor/modes/tile_interaction_renderer.hpp
mnewhouse/tselements
bd1c6724018e862156948a680bb1bc70dd28bef6
[ "MIT" ]
null
null
null
src/editor/modes/tile_interaction_renderer.hpp
mnewhouse/tselements
bd1c6724018e862156948a680bb1bc70dd28bef6
[ "MIT" ]
null
null
null
src/editor/modes/tile_interaction_renderer.hpp
mnewhouse/tselements
bd1c6724018e862156948a680bb1bc70dd28bef6
[ "MIT" ]
null
null
null
/* * TS Elements * Copyright 2015-2018 M. Newhouse * Released under the MIT license. */ #pragma once #include "resources/geometry.hpp" #include "graphics/texture.hpp" #include "graphics/shader.hpp" #include "graphics/buffer.hpp" #include <SFML/Graphics/Transform.hpp> namespace ts { namespace resources { st...
24.026316
85
0.692223
[ "geometry", "render", "vector", "transform" ]
8986708cd62b47c85d9d290d1c763050792d9bd0
23,360
cpp
C++
TMessagesProj/jni/TgNetWrapper.cpp
Fghgfh/Reyhangram
4ffba4522ad889f16dfe5b159ae169265d09ff34
[ "Apache-2.0" ]
null
null
null
TMessagesProj/jni/TgNetWrapper.cpp
Fghgfh/Reyhangram
4ffba4522ad889f16dfe5b159ae169265d09ff34
[ "Apache-2.0" ]
null
null
null
TMessagesProj/jni/TgNetWrapper.cpp
Fghgfh/Reyhangram
4ffba4522ad889f16dfe5b159ae169265d09ff34
[ "Apache-2.0" ]
null
null
null
#include <jni.h> #include "tgnet/ApiScheme.h" #include "tgnet/BuffersStorage.h" #include "tgnet/NativeByteBuffer.h" #include "tgnet/ConnectionsManager.h" #include "tgnet/MTProtoScheme.h" #include "tgnet/FileLoadOperation.h" JavaVM *java; jclass jclass_RequestDelegateInternal; jmethodID jclass_RequestDelegateInternal_r...
42.941176
326
0.71524
[ "object" ]
89882ccb929134b126e33a1e8505ea81f5546f7a
777
cpp
C++
lua/CLuaHook.cpp
DomesticTerrorist/Doubletap.Space-v3-SRC
caa2e09fc5e15a268ed735debe811a19fe96a08c
[ "MIT" ]
3
2021-08-18T10:19:25.000Z
2021-08-31T04:45:26.000Z
lua/CLuaHook.cpp
DomesticTerrorist/Doubletap.Space-v3-SRC
caa2e09fc5e15a268ed735debe811a19fe96a08c
[ "MIT" ]
null
null
null
lua/CLuaHook.cpp
DomesticTerrorist/Doubletap.Space-v3-SRC
caa2e09fc5e15a268ed735debe811a19fe96a08c
[ "MIT" ]
4
2021-08-18T06:57:26.000Z
2021-09-02T15:22:36.000Z
// This is an independent project of an individual developer. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com #include "CLuaHook.h" void c_lua_hookManager::registerHook(std::string eventName, int scriptId, sol::protected_function func) { //-V81...
27.75
114
0.671815
[ "vector" ]
899c3b39b631e254393bdc1a103fda346473c6fc
1,201
cpp
C++
examples/enumerate_examples.cpp
nd-nuclear-theory/cppitertools
539a5be8359c4330b3f88ed1821f32bb5c89f5f6
[ "BSD-2-Clause" ]
1,050
2015-01-12T21:20:01.000Z
2022-03-31T12:50:10.000Z
examples/enumerate_examples.cpp
nd-nuclear-theory/cppitertools
539a5be8359c4330b3f88ed1821f32bb5c89f5f6
[ "BSD-2-Clause" ]
67
2015-02-14T18:53:26.000Z
2022-03-30T06:03:38.000Z
examples/enumerate_examples.cpp
nd-nuclear-theory/cppitertools
539a5be8359c4330b3f88ed1821f32bb5c89f5f6
[ "BSD-2-Clause" ]
121
2015-01-21T00:21:22.000Z
2022-03-12T01:27:42.000Z
#include <enumerate.hpp> #include <string> #include <iostream> #include <vector> #include <cassert> int main() { std::cout << "enumerating the characters of a string \"hello\":\n"; const std::string const_string("hello"); for (auto&& [i, c] : iter::enumerate(const_string)) { std::cout << '(' << i...
27.930233
71
0.4796
[ "vector" ]
899dc070882db417914d65f6576541b1ebb6f452
315
hpp
C++
husky-sql/rexnode/dummy_combiner.hpp
Alice3150/husky-sql
40dc95b5543c079bb4ab070fca2ac2a287514333
[ "Apache-2.0" ]
null
null
null
husky-sql/rexnode/dummy_combiner.hpp
Alice3150/husky-sql
40dc95b5543c079bb4ab070fca2ac2a287514333
[ "Apache-2.0" ]
null
null
null
husky-sql/rexnode/dummy_combiner.hpp
Alice3150/husky-sql
40dc95b5543c079bb4ab070fca2ac2a287514333
[ "Apache-2.0" ]
null
null
null
#pragma once #include <string> #include <vector> namespace husky { namespace sql { class DummyCombiner { using ValT = std::vector<std::string>; public: static void combine(ValT& val, const ValT& inc) { /* do nothing */ } }; } // namespace sql } // namespace husky
16.578947
55
0.584127
[ "vector" ]
89bc882eb63f1a88f911c55a970612064ceb6fdb
1,072
cc
C++
ui/ozone/platform/dri/hardware_display_plane.cc
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2019-11-28T10:46:52.000Z
2019-11-28T10:46:52.000Z
ui/ozone/platform/dri/hardware_display_plane.cc
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
ui/ozone/platform/dri/hardware_display_plane.cc
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-03-27T11:15:39.000Z
2016-08-17T14:19:56.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. #include "ui/ozone/platform/dri/hardware_display_plane.h" #include <drm.h> #include <errno.h> #include <xf86drm.h> #include "base/logging.h" #include "u...
26.146341
76
0.725746
[ "geometry" ]
89c155f93298efdc6e3e5e7709b5fe4bb222d0a8
5,010
cpp
C++
imate/_c_linear_operator/c_csr_matrix.cpp
ameli/TraceInv
fe759af016c5845d88ca98e56994b6c86c132792
[ "BSD-3-Clause" ]
1
2021-08-21T12:12:28.000Z
2021-08-21T12:12:28.000Z
imate/_c_linear_operator/c_csr_matrix.cpp
ameli/TraceInv
fe759af016c5845d88ca98e56994b6c86c132792
[ "BSD-3-Clause" ]
null
null
null
imate/_c_linear_operator/c_csr_matrix.cpp
ameli/TraceInv
fe759af016c5845d88ca98e56994b6c86c132792
[ "BSD-3-Clause" ]
1
2021-08-21T12:12:44.000Z
2021-08-21T12:12:44.000Z
/* * SPDX-FileCopyrightText: Copyright 2021, Siavash Ameli <sameli@berkeley.edu> * SPDX-License-Identifier: BSD-3-Clause * SPDX-FileType: SOURCE * * This program is free software: you can redistribute it and/or modify it * under the terms of the license found in the LICENSE.txt file in the root * directory...
22.669683
79
0.583832
[ "vector" ]
89c627e8e1cb41d6a6078818251e5d912199e74d
803
cpp
C++
2022_03_15-QPainter/75-j-bol_cd.cpp
ss-di/1580-2021-08Z-Qt
2940d2f7f064a7f11e953925d0f8f19b0350af22
[ "MIT" ]
null
null
null
2022_03_15-QPainter/75-j-bol_cd.cpp
ss-di/1580-2021-08Z-Qt
2940d2f7f064a7f11e953925d0f8f19b0350af22
[ "MIT" ]
null
null
null
2022_03_15-QPainter/75-j-bol_cd.cpp
ss-di/1580-2021-08Z-Qt
2940d2f7f064a7f11e953925d0f8f19b0350af22
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define fn(n) for (long _ = 0; _ < n; _ += 1) #define fin(i, n) for (i = 0; i < n; i += 1) using namespace std; int main() { long a; vector<long> v; while (cin >> a) v.push_back(a); long n = long(v.size()) - 1; long k = v.back(); v.resize(n); ...
16.729167
45
0.347447
[ "vector" ]
89c6b185e1c5f535eee28961968a91f390e8e9fe
13,430
cc
C++
src/ui/a11y/lib/screen_reader/tests/explore_action_unittest.cc
casey/fuchsia
2b965e9a1e8f2ea346db540f3611a5be16bb4d6b
[ "BSD-3-Clause" ]
null
null
null
src/ui/a11y/lib/screen_reader/tests/explore_action_unittest.cc
casey/fuchsia
2b965e9a1e8f2ea346db540f3611a5be16bb4d6b
[ "BSD-3-Clause" ]
null
null
null
src/ui/a11y/lib/screen_reader/tests/explore_action_unittest.cc
casey/fuchsia
2b965e9a1e8f2ea346db540f3611a5be16bb4d6b
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/ui/a11y/lib/screen_reader/explore_action.h" #include <fuchsia/accessibility/cpp/fidl.h> #include <fuchsia/accessibility/semantics/cpp/fidl.h...
41.070336
98
0.777811
[ "vector" ]
89cdd70ee4be50aff7ca6699b4ab00c1a9b128dd
4,577
hpp
C++
src/math/ipp_dft.hpp
mfkiwl/ugsdr
7ce479c17ecbf00cf06b5e17bb00fb3d2d45d5d3
[ "MIT" ]
4
2021-09-18T03:13:45.000Z
2021-12-17T07:52:17.000Z
src/math/ipp_dft.hpp
mfkiwl/ugsdr
7ce479c17ecbf00cf06b5e17bb00fb3d2d45d5d3
[ "MIT" ]
3
2021-11-27T01:24:22.000Z
2022-02-22T21:02:55.000Z
src/math/ipp_dft.hpp
mfkiwl/ugsdr
7ce479c17ecbf00cf06b5e17bb00fb3d2d45d5d3
[ "MIT" ]
2
2021-09-18T01:30:11.000Z
2021-09-18T05:22:05.000Z
#pragma once #ifdef HAS_IPP #include "dft.hpp" #include "ipp.h" #include "../../external/plusifier/Plusifier.hpp" #include "../../external/type_map/include/type_map.hpp" #include <type_traits> namespace ugsdr { class IppDft : public DiscreteFourierTransform<IppDft> { private: static auto GetConversionWrapper() ...
34.156716
182
0.728862
[ "vector" ]
89d326604a252699f686061520ab7ab690313430
2,126
cpp
C++
samples/cifar10_conv/readCIFAR10.cpp
adajed/DeepLearningCPP
2fa4d57b75c145e918a8906b7404284628baa116
[ "MIT" ]
10
2019-03-04T09:37:19.000Z
2021-12-08T03:09:44.000Z
samples/cifar10_conv/readCIFAR10.cpp
adajed/DeepLearningCPP
2fa4d57b75c145e918a8906b7404284628baa116
[ "MIT" ]
null
null
null
samples/cifar10_conv/readCIFAR10.cpp
adajed/DeepLearningCPP
2fa4d57b75c145e918a8906b7404284628baa116
[ "MIT" ]
1
2021-12-08T03:09:44.000Z
2021-12-08T03:09:44.000Z
#include "readCIFAR10.h" #include <algorithm> #include <cassert> #include <fstream> #include <iostream> #include <numeric> #include <random> bool fileExists(const std::string& path) { std::ifstream f(path.c_str()); if (!f.good()) { std::cout << "File \"" << path << "\" does not e...
24.159091
76
0.537159
[ "vector" ]
89d386edc52ce0aa49222a130b93043f5cfdd078
5,140
cpp
C++
export/windows/obj/src/lime/graphics/opengl/ext/APPLE_rgb_422.cpp
seanbashaw/frozenlight
47c540d30d63e946ea2dc787b4bb602cc9347d21
[ "MIT" ]
null
null
null
export/windows/obj/src/lime/graphics/opengl/ext/APPLE_rgb_422.cpp
seanbashaw/frozenlight
47c540d30d63e946ea2dc787b4bb602cc9347d21
[ "MIT" ]
null
null
null
export/windows/obj/src/lime/graphics/opengl/ext/APPLE_rgb_422.cpp
seanbashaw/frozenlight
47c540d30d63e946ea2dc787b4bb602cc9347d21
[ "MIT" ]
null
null
null
// Generated by Haxe 3.4.7 #include <hxcpp.h> #ifndef INCLUDED_lime_graphics_opengl_ext_APPLE_rgb_422 #include <lime/graphics/opengl/ext/APPLE_rgb_422.h> #endif HX_DEFINE_STACK_FRAME(_hx_pos_7884905029fdefd8_6_new,"lime.graphics.opengl.ext.APPLE_rgb_422","new",0x2a5502cd,"lime.graphics.opengl.ext.APPLE_rgb_422.new","...
36.978417
213
0.759144
[ "object" ]
89d918175050e3c1f77b14efde2e61e783907b55
964
cpp
C++
Stp/Json/JsonError.cpp
markazmierczak/Polonite
240f099cafc5c38dc1ae1cc6fc5773e13f65e9de
[ "MIT" ]
1
2019-07-11T12:47:52.000Z
2019-07-11T12:47:52.000Z
Stp/Json/JsonError.cpp
Polonite/Polonite
240f099cafc5c38dc1ae1cc6fc5773e13f65e9de
[ "MIT" ]
null
null
null
Stp/Json/JsonError.cpp
Polonite/Polonite
240f099cafc5c38dc1ae1cc6fc5773e13f65e9de
[ "MIT" ]
1
2019-07-11T12:47:53.000Z
2019-07-11T12:47:53.000Z
// Copyright 2017 Polonite Authors. All rights reserved. // Distributed under MIT license that can be found in the LICENSE file. #include "Json/JsonError.h" #include "Base/Io/TextWriter.h" namespace stp { void JsonError::ToFormat(TextWriter& out, const StringSpan& opts) const { if (line > 0) { out << '['; ...
21.909091
73
0.657676
[ "object" ]
89e30e6eab87c8552f1e9799b468837a6cc41169
955
cpp
C++
src/jw/leetcode/1654/main.cpp
wanyaworld/algo-study
d540e9a72bb251a6bf2b04bc3aa7edbf17bee974
[ "MIT" ]
1
2020-10-31T15:28:43.000Z
2020-10-31T15:28:43.000Z
src/jw/leetcode/1654/main.cpp
wanyaworld/algo-study
d540e9a72bb251a6bf2b04bc3aa7edbf17bee974
[ "MIT" ]
null
null
null
src/jw/leetcode/1654/main.cpp
wanyaworld/algo-study
d540e9a72bb251a6bf2b04bc3aa7edbf17bee974
[ "MIT" ]
null
null
null
class Solution { public: int visited[2][2000001]; unordered_map<int, int> forb{}; int thr = 10000000; int dfs(vector<int>& forbidden, int a, int b, int x, int cur, bool prv_was_back) { if (cur == x) return 0; if (cur > 100000 || cur < 0) return thr; if (forb.find(cur) !...
35.37037
86
0.528796
[ "vector" ]
8851f99697b9ca7bd7550d04d918ebce19711a38
7,470
cpp
C++
examples/basic.cpp
KeinR/Etermal
9bf66f6be6ae8585b763dd902701e72013a5abcc
[ "MIT" ]
null
null
null
examples/basic.cpp
KeinR/Etermal
9bf66f6be6ae8585b763dd902701e72013a5abcc
[ "MIT" ]
null
null
null
examples/basic.cpp
KeinR/Etermal
9bf66f6be6ae8585b763dd902701e72013a5abcc
[ "MIT" ]
null
null
null
/** * Basic Etermal example using the built * in ETerminal and EShell implementations. * This particular example uses glfw. */ #include <etermal/etermal.h> #include <iostream> #include <chrono> #include <thread> // Re-using the GLAD files used by Etermal itself - // you can generate your own. #define GLFW_DLL 1 #inc...
32.198276
108
0.641633
[ "render" ]
885ca7b6a48fa374afac359b7391c948b1701778
2,906
hh
C++
src/PerplexityFuncs.hh
psmit/variKN
9623c5909bb43a5e3f9bb4df850284e30784e957
[ "BSD-3-Clause" ]
null
null
null
src/PerplexityFuncs.hh
psmit/variKN
9623c5909bb43a5e3f9bb4df850284e30784e957
[ "BSD-3-Clause" ]
null
null
null
src/PerplexityFuncs.hh
psmit/variKN
9623c5909bb43a5e3f9bb4df850284e30784e957
[ "BSD-3-Clause" ]
null
null
null
// Functions for calculating perplexity #ifndef PERPLEXITY_HH #define PERPLEXITY_HH #include <iostream> #include <deque> #include <string> #include <vector> #include <math.h> #include "io.hh" #include "NGram.hh" class Perplexity { public: Perplexity(const char *); Perplexity(NGram *lm, const std::string ccs_name...
28.490196
89
0.725396
[ "vector" ]
886562c21f668a97f119a88d6ed7613c600412c7
8,671
hpp
C++
libspace/plugins/prox/LibproxProximityBase.hpp
pathorn/sirikata
5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa
[ "BSD-3-Clause" ]
1
2016-05-09T03:34:51.000Z
2016-05-09T03:34:51.000Z
libspace/plugins/prox/LibproxProximityBase.hpp
pathorn/sirikata
5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa
[ "BSD-3-Clause" ]
null
null
null
libspace/plugins/prox/LibproxProximityBase.hpp
pathorn/sirikata
5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2011 Sirikata Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can // be found in the LICENSE file. #ifndef _SIRIKATA_LIBPROX_PROXIMITY_BASE_HPP_ #define _SIRIKATA_LIBPROX_PROXIMITY_BASE_HPP_ #include <sirikata/space/Proximity.hpp> #include "CBRLocation...
47.382514
195
0.74236
[ "object" ]
8865a5076a4455a55ad977699d043eb11433e24f
3,096
cpp
C++
ProblemsSolved/Trie/hyperPrefixSet.cpp
searleser97/Algorithms
af791541d416c29867213d705375cbb3361f486c
[ "Apache-2.0" ]
7
2019-06-06T17:54:20.000Z
2021-03-24T02:31:55.000Z
ProblemsSolved/Trie/hyperPrefixSet.cpp
searleser97/Algorithms
af791541d416c29867213d705375cbb3361f486c
[ "Apache-2.0" ]
null
null
null
ProblemsSolved/Trie/hyperPrefixSet.cpp
searleser97/Algorithms
af791541d416c29867213d705375cbb3361f486c
[ "Apache-2.0" ]
1
2021-03-24T02:31:57.000Z
2021-03-24T02:31:57.000Z
#include<bits/stdc++.h> using namespace std; class Trie { private: class TrieNode { public: unordered_map<char, TrieNode*> children; // map<char, TrieNode*> children; bool endOfWord; int numberOfWords; TrieNode() { this->numberOfWords = 0; this->...
25.8
82
0.495478
[ "vector" ]
8865cf822a8f01c6a72ed79982cbd2dbe55ce43b
4,040
cpp
C++
src/jumpnode/jumpnode.cpp
ptitSeb/freespace2
500ee249f7033aac9b389436b1737a404277259c
[ "Linux-OpenIB" ]
1
2020-07-14T07:29:18.000Z
2020-07-14T07:29:18.000Z
src/jumpnode/jumpnode.cpp
ptitSeb/freespace2
500ee249f7033aac9b389436b1737a404277259c
[ "Linux-OpenIB" ]
2
2019-01-01T22:35:56.000Z
2022-03-14T07:34:00.000Z
src/jumpnode/jumpnode.cpp
ptitSeb/freespace2
500ee249f7033aac9b389436b1737a404277259c
[ "Linux-OpenIB" ]
2
2021-03-07T11:40:42.000Z
2021-12-26T21:40:39.000Z
/* * Copyright (C) Volition, Inc. 1999. All rights reserved. * * All source code herein is the property of Volition, Inc. You may not sell * or otherwise commercially exploit the source or things you created based on * the source. */ /* * $Logfile: /Freespace2/code/JumpNode/JumpNode.cpp $ * $Revision: 110 $ ...
26.754967
140
0.687376
[ "object", "vector", "model" ]
88663a1437a470b52fccc4926e4b8d114334c613
3,403
hh
C++
packages/MC/mc/Particle.hh
GCZhang/Profugus
d4d8fe295a92a257b26b6082224226ca1edbff5d
[ "BSD-2-Clause" ]
19
2015-06-04T09:02:41.000Z
2021-04-27T19:32:55.000Z
packages/MC/mc/Particle.hh
GCZhang/Profugus
d4d8fe295a92a257b26b6082224226ca1edbff5d
[ "BSD-2-Clause" ]
null
null
null
packages/MC/mc/Particle.hh
GCZhang/Profugus
d4d8fe295a92a257b26b6082224226ca1edbff5d
[ "BSD-2-Clause" ]
5
2016-10-05T20:48:28.000Z
2021-06-21T12:00:54.000Z
//----------------------------------*-C++-*----------------------------------// /*! * \file MC/mc/Particle.hh * \author Thomas M. Evans * \date Fri Apr 25 11:26:16 2014 * \brief Particle class definition. * \note Copyright (C) 2014 Oak Ridge National Laboratory, UT-Battelle, LLC. */ //---------------------...
25.207407
79
0.529827
[ "geometry" ]
8869ecb90e40e359020d50cf3830adb55292c9c5
30,104
cpp
C++
Engine/Source/Editor/PixelInspector/Private/PixelInspector.cpp
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
1
2022-01-29T18:36:12.000Z
2022-01-29T18:36:12.000Z
Engine/Source/Editor/PixelInspector/Private/PixelInspector.cpp
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
null
null
null
Engine/Source/Editor/PixelInspector/Private/PixelInspector.cpp
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
null
null
null
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #include "PixelInspector.h" #include "Modules/ModuleManager.h" #include "Widgets/SBoxPanel.h" #include "Widgets/SOverlay.h" #include "Styling/CoreStyle.h" #include "SlateOptMacros.h" #include "Framework/Application/SlateApplication.h" #include "Widgets/Layou...
37.303594
237
0.763819
[ "render" ]
886b950741a365540d3c431a001cd7524edc503a
23,309
cpp
C++
pgc1000/pgc1000.cpp
kielnow/PGC1000
61db890326f7954a8d1aa9466547eb50e62e5f76
[ "MIT" ]
null
null
null
pgc1000/pgc1000.cpp
kielnow/PGC1000
61db890326f7954a8d1aa9466547eb50e62e5f76
[ "MIT" ]
null
null
null
pgc1000/pgc1000.cpp
kielnow/PGC1000
61db890326f7954a8d1aa9466547eb50e62e5f76
[ "MIT" ]
null
null
null
#include "pgc1000.h" using namespace pgc1000; const Lcd::Desc Lcd::DefaultDesc = { D8, // di D15, // rw D10, // e A4, // db0 A5, // db1 D2, // db2 D3, // db3 D4, // db4 D5, // db5 D6, // db6 D7, // db7 D11, // cs1 D12, ...
25.812846
154
0.472092
[ "render" ]
886c953f5995e9ef6e5f7080e0c23a50e234f7b7
28,778
cpp
C++
modules/3d/src/rgbd/normal.cpp
Gabrielreisribeiro/opencv
39df6d2f035ca6822494fe4234e163895828b23b
[ "Apache-2.0" ]
null
null
null
modules/3d/src/rgbd/normal.cpp
Gabrielreisribeiro/opencv
39df6d2f035ca6822494fe4234e163895828b23b
[ "Apache-2.0" ]
null
null
null
modules/3d/src/rgbd/normal.cpp
Gabrielreisribeiro/opencv
39df6d2f035ca6822494fe4234e163895828b23b
[ "Apache-2.0" ]
1
2021-04-30T18:00:41.000Z
2021-04-30T18:00:41.000Z
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html #include "../precomp.hpp" namespace cv { /** Just compute the norm of a vector * @param vec a vector of size 3 and any type...
34.882424
156
0.539857
[ "vector", "3d" ]
886e1f9df2540e52fc54130cbbc14156e58c1dce
3,884
hpp
C++
dev/Basic/long/role/impl/RealEstateSellerRole.hpp
gusugusu1018/simmobility-prod
d30a5ba353673f8fd35f4868c26994a0206a40b6
[ "MIT" ]
50
2018-12-21T08:21:38.000Z
2022-01-24T09:47:59.000Z
dev/Basic/long/role/impl/RealEstateSellerRole.hpp
gusugusu1018/simmobility-prod
d30a5ba353673f8fd35f4868c26994a0206a40b6
[ "MIT" ]
2
2018-12-19T13:42:47.000Z
2019-05-13T04:11:45.000Z
dev/Basic/long/role/impl/RealEstateSellerRole.hpp
gusugusu1018/simmobility-prod
d30a5ba353673f8fd35f4868c26994a0206a40b6
[ "MIT" ]
27
2018-11-28T07:30:34.000Z
2022-02-05T02:22:26.000Z
//Copyright (c) 2013 Singapore-MIT Alliance for Research and Technology //Licensed under the terms of the MIT License, as described in the file: // license.txt (http://opensource.org/licenses/MIT) /* * File: RealEstateSellerRole.hpp * Author: Chetan Rogbeer <chetan.rogbeer@smart.mit.edu> * * Created on Jan ...
32.915254
112
0.57415
[ "vector" ]
88781db04c2a8f8b4e043b757c4dd0b441900400
794,413
cpp
C++
test/bidi_test_577.cpp
eightysquirrels/text
d935545648777786dc196a75346cde8906da846a
[ "BSL-1.0" ]
null
null
null
test/bidi_test_577.cpp
eightysquirrels/text
d935545648777786dc196a75346cde8906da846a
[ "BSL-1.0" ]
1
2021-03-05T12:56:59.000Z
2021-03-05T13:11:53.000Z
test/bidi_test_577.cpp
eightysquirrels/text
d935545648777786dc196a75346cde8906da846a
[ "BSL-1.0" ]
3
2019-10-30T18:38:15.000Z
2021-03-05T12:10:13.000Z
// Warning! This file is autogenerated. #include <boost/text/bidirectional.hpp> #include "bidi_tests.hpp" #include <gtest/gtest.h> #include <algorithm> std::vector<int> expected_levels; std::vector<int> expected_reordered_indices; TEST(bidi, bidi_577_000) { expected_levels = { 1, -1, 4, 4 }; expected_reo...
32.942691
77
0.404844
[ "vector" ]
887ba3ed1f8290e413639dcf119cf2e3777b3361
4,380
hpp
C++
R5/R5Prm/R5PrmComponentImpl.hpp
genemerewether/fprime
fcdd071b5ddffe54ade098ca5d451903daba9eed
[ "Apache-2.0" ]
5
2019-10-22T03:41:02.000Z
2022-01-16T12:48:31.000Z
R5/R5Prm/R5PrmComponentImpl.hpp
genemerewether/fprime
fcdd071b5ddffe54ade098ca5d451903daba9eed
[ "Apache-2.0" ]
27
2019-02-07T17:58:58.000Z
2019-08-13T00:46:24.000Z
R5/R5Prm/R5PrmComponentImpl.hpp
genemerewether/fprime
fcdd071b5ddffe54ade098ca5d451903daba9eed
[ "Apache-2.0" ]
3
2019-01-01T18:44:37.000Z
2019-08-01T01:19:39.000Z
// ====================================================================== // \title R5PrmImpl.hpp // \author tcanham // \brief hpp file for R5Prm component implementation class // // \copyright // Copyright 2009-2015, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponso...
26.707317
79
0.58516
[ "object" ]
8881ad5466613ddce66baac8b14726fb3b885e05
4,210
cpp
C++
unit/testing-utils/require_goto_statements.cpp
chrisr-diffblue/cbmc
854b26fec145ebb345cf45c9512201143c823cd1
[ "BSD-4-Clause" ]
null
null
null
unit/testing-utils/require_goto_statements.cpp
chrisr-diffblue/cbmc
854b26fec145ebb345cf45c9512201143c823cd1
[ "BSD-4-Clause" ]
2
2018-06-18T10:34:36.000Z
2018-07-03T15:43:57.000Z
unit/testing-utils/require_goto_statements.cpp
jeannielynnmoulton/cbmc
1d4af6d88ec960677170049a8a89a9166b952996
[ "BSD-4-Clause" ]
null
null
null
/*******************************************************************\ Module: Unit test utilities Author: DiffBlue Limited. All rights reserved. \*******************************************************************/ #include "require_goto_statements.h" #include "catch.hpp" #include <algorithm> #include <util/expr...
31.41791
78
0.686223
[ "vector" ]
88857296d58708a6e4d777bcad831556948986b2
727
hpp
C++
software/perception/maps/src/libs/mini-maps/Utils.hpp
liangfok/oh-distro
eeee1d832164adce667e56667dafc64a8d7b8cee
[ "BSD-3-Clause" ]
92
2016-01-14T21:03:50.000Z
2021-12-01T17:57:46.000Z
software/perception/maps/src/libs/mini-maps/Utils.hpp
liangfok/oh-distro
eeee1d832164adce667e56667dafc64a8d7b8cee
[ "BSD-3-Clause" ]
62
2016-01-16T18:08:14.000Z
2016-03-24T15:16:28.000Z
software/perception/maps/src/libs/mini-maps/Utils.hpp
liangfok/oh-distro
eeee1d832164adce667e56667dafc64a8d7b8cee
[ "BSD-3-Clause" ]
41
2016-01-14T21:26:58.000Z
2022-03-28T03:10:39.000Z
#ifndef _maps_Utils_hpp_ #define _maps_Utils_hpp_ #include <Eigen/Geometry> #include <vector> namespace maps { class Utils { public: static bool isOrthographic(const Eigen::Matrix4f& iMatrix); static bool composeViewMatrix(Eigen::Projective3f& oMatrix, const Eigen::Matrix3f& iCal...
25.964286
66
0.57359
[ "geometry", "vector" ]
888864b1a0db251ee7bfe716a3ad5220b4692c84
7,113
cpp
C++
Libs/GuiSys/CompImage.cpp
dns/Cafu
77b34014cc7493d6015db7d674439fe8c23f6493
[ "MIT" ]
3
2020-04-11T13:00:31.000Z
2020-12-07T03:19:10.000Z
Libs/GuiSys/CompImage.cpp
DNS/Cafu
77b34014cc7493d6015db7d674439fe8c23f6493
[ "MIT" ]
null
null
null
Libs/GuiSys/CompImage.cpp
DNS/Cafu
77b34014cc7493d6015db7d674439fe8c23f6493
[ "MIT" ]
1
2020-04-11T13:00:04.000Z
2020-04-11T13:00:04.000Z
/* Cafu Engine, http://www.cafu.de/ Copyright (c) Carsten Fuchs and other contributors. This project is licensed under the terms of the MIT license. */ #include "CompImage.hpp" #include "AllComponents.hpp" #include "GuiImpl.hpp" #include "Window.hpp" #include "UniScriptState.hpp" #include "MaterialSystem/Mesh.hpp" #i...
28.338645
210
0.662168
[ "mesh", "render", "object", "transform" ]
888c6030b3cc9be98d3f3f9ce175d58a4929689c
1,183
hpp
C++
modules/math/source/blub/math/plane.hpp
qwertzui11/voxelTerrain
05038fb261893dd044ae82fab96b7708ea5ed623
[ "MIT" ]
96
2015-02-02T20:01:24.000Z
2021-11-14T20:33:29.000Z
modules/math/source/blub/math/plane.hpp
qwertzui11/voxelTerrain
05038fb261893dd044ae82fab96b7708ea5ed623
[ "MIT" ]
12
2016-06-04T15:45:30.000Z
2020-02-04T11:10:51.000Z
modules/math/source/blub/math/plane.hpp
qwertzui11/voxelTerrain
05038fb261893dd044ae82fab96b7708ea5ed623
[ "MIT" ]
19
2015-09-22T01:21:45.000Z
2020-09-30T09:52:27.000Z
#ifndef BLUB_MATH_PLANE_HPP #define BLUB_MATH_PLANE_HPP #include "blub/math/vector3.hpp" namespace Ogre { class Plane; } namespace blub { class plane { public: #ifndef BLUB_NO_OGRE3D plane(const Ogre::Plane &vec); operator Ogre::Plane() const; #endif plane(); plane(const plane& other); pl...
20.050847
72
0.646661
[ "vector" ]
888d08f4f18f49f706f207f610ac2d7b6ea5a20b
2,148
cpp
C++
test/iterator.cpp
jspaaks/cuda-wrapper
66262b819d55814d35cdb88a7eb9ab3b67fadaf0
[ "BSD-3-Clause" ]
4
2016-01-07T05:05:15.000Z
2020-12-14T05:20:03.000Z
test/iterator.cpp
jspaaks/cuda-wrapper
66262b819d55814d35cdb88a7eb9ab3b67fadaf0
[ "BSD-3-Clause" ]
2
2016-06-03T15:48:01.000Z
2016-09-01T15:58:30.000Z
test/iterator.cpp
jspaaks/cuda-wrapper
66262b819d55814d35cdb88a7eb9ab3b67fadaf0
[ "BSD-3-Clause" ]
5
2015-03-09T11:07:14.000Z
2022-03-14T12:28:59.000Z
/* * Copyright (C) 2020 Jaslo Ziska * * This file is part of cuda-wrapper. * * This software may be modified and distributed under the terms of the * 3-clause BSD license. See accompanying file LICENSE for details. */ #define BOOST_TEST_MODULE iterator #include <boost/test/unit_test.hpp> #include <type_traits...
34.645161
106
0.721601
[ "vector" ]
888e122df738a7a789455f21254e0cfab3139c4b
5,114
hh
C++
core/inc/com/centreon/broker/config/state.hh
sdelafond/centreon-broker
21178d98ed8a061ca71317d23c2026dbc4edaca2
[ "Apache-2.0" ]
null
null
null
core/inc/com/centreon/broker/config/state.hh
sdelafond/centreon-broker
21178d98ed8a061ca71317d23c2026dbc4edaca2
[ "Apache-2.0" ]
null
null
null
core/inc/com/centreon/broker/config/state.hh
sdelafond/centreon-broker
21178d98ed8a061ca71317d23c2026dbc4edaca2
[ "Apache-2.0" ]
null
null
null
/* ** Copyright 2011-2012,2017 Centreon ** ** 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 agr...
44.859649
91
0.529136
[ "object" ]
888eb2e5b0ecc3a143e34760a549e4cab3e97a35
1,423
cpp
C++
src/libloom/dictionary.cpp
It4innovations/HyperLoom
e2594d3f921c24f6e47cefad46888c2746e685dd
[ "DOC" ]
12
2018-06-05T13:03:30.000Z
2022-03-31T14:30:01.000Z
src/libloom/dictionary.cpp
It4innovations/HyperLoom
e2594d3f921c24f6e47cefad46888c2746e685dd
[ "DOC" ]
null
null
null
src/libloom/dictionary.cpp
It4innovations/HyperLoom
e2594d3f921c24f6e47cefad46888c2746e685dd
[ "DOC" ]
2
2019-12-03T10:08:01.000Z
2022-03-08T05:59:10.000Z
#include "dictionary.h" #include "libloom/log.h" #include <assert.h> using namespace loom; using namespace loom::base; Dictionary::Dictionary() { } Id Dictionary::find_symbol_or_fail(const std::string &symbol) const { auto i = symbol_to_id.find(symbol); if(i == symbol_to_id.end()) { logger->critic...
20.623188
67
0.59733
[ "vector" ]
8891477fa1b349a280b9691d03491b2eeb8e651f
2,595
cpp
C++
src/utils/file_helpers.cpp
AvocadoML/Avocado
9595cc5994d916f0ecb24873a5afa98437977fb5
[ "Apache-2.0" ]
null
null
null
src/utils/file_helpers.cpp
AvocadoML/Avocado
9595cc5994d916f0ecb24873a5afa98437977fb5
[ "Apache-2.0" ]
null
null
null
src/utils/file_helpers.cpp
AvocadoML/Avocado
9595cc5994d916f0ecb24873a5afa98437977fb5
[ "Apache-2.0" ]
null
null
null
/* * file_helpers.cpp * * Created on: Jun 17, 2021 * Author: Maciej Kozarzewski */ #include <Avocado/utils/file_helpers.hpp> #include <Avocado/utils/zip_wrapper.hpp> #include <fstream> #include <iterator> #include <iostream> #include <filesystem> #include <algorithm> namespace avocado { FileSaver::FileSa...
25.95
103
0.676301
[ "vector" ]
889cde90ac7d46384bef252a9eda2a3ef47fd350
1,221
cpp
C++
C++/Data_Structures/CountInversions.cpp
snehnakrani14/HactoberFest21
1d387ff4efec1f17fe20d42f46490564c5a87b52
[ "Unlicense" ]
1
2021-10-04T14:39:02.000Z
2021-10-04T14:39:02.000Z
C++/Data_Structures/CountInversions.cpp
snehnakrani14/HactoberFest21
1d387ff4efec1f17fe20d42f46490564c5a87b52
[ "Unlicense" ]
1
2021-10-06T04:41:55.000Z
2021-10-06T04:41:55.000Z
C++/Data_Structures/CountInversions.cpp
snehnakrani14/HactoberFest21
1d387ff4efec1f17fe20d42f46490564c5a87b52
[ "Unlicense" ]
1
2021-10-08T12:31:04.000Z
2021-10-08T12:31:04.000Z
#include <bits/stdc++.h> using namespace std; int merge(vector<int>& input,int start,int mid,int end){ int i = start; int j = mid+1; vector<int> temp; int count = 0; while(i<=mid&&j<=end){ if(input[i]>input[j]) { count+=mid-i+1; temp.push_back(input[j]); j...
25.4375
59
0.520885
[ "vector" ]
88a141241f286f8470b4e4670c8f442c831dbb70
6,865
hpp
C++
Tests/workspace-fmt/serialize-test.hpp
magiruuvelvet/QAPI-IDE
7634acfd4a46075abefad0a2d6fded263b5d222d
[ "BSD-3-Clause" ]
2
2019-08-16T16:08:00.000Z
2019-11-01T00:47:52.000Z
Tests/workspace-fmt/serialize-test.hpp
magiruuvelvet/QAPI-IDE
7634acfd4a46075abefad0a2d6fded263b5d222d
[ "BSD-3-Clause" ]
8
2019-07-03T09:02:51.000Z
2019-07-27T13:01:35.000Z
Tests/workspace-fmt/serialize-test.hpp
magiruuvelvet/QAPI-IDE
7634acfd4a46075abefad0a2d6fded263b5d222d
[ "BSD-3-Clause" ]
null
null
null
#include <workspace/workspace.hpp> #include <bandit/bandit.h> #include <benchmark.hpp> using namespace snowhouse; using namespace bandit; go_bandit([]{ describe("WorkspaceFormat", []{ benchmark_it("[serialize empty workspace]", [&]{ Workspace workspace("test workspace"); const s...
51.616541
324
0.529206
[ "vector" ]
88a31f614f9af21148ef7a26170d25dce073cda5
285
cpp
C++
451A - Game With Sticks.cpp
lionrocker/codeforces-solutions
02703ff02dab98d30ef01e52b5a1acc1d8596862
[ "MIT" ]
null
null
null
451A - Game With Sticks.cpp
lionrocker/codeforces-solutions
02703ff02dab98d30ef01e52b5a1acc1d8596862
[ "MIT" ]
null
null
null
451A - Game With Sticks.cpp
lionrocker/codeforces-solutions
02703ff02dab98d30ef01e52b5a1acc1d8596862
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int n, m; cin >> n >> m; int smaller = n > m ? m : n; if (smaller % 2 == 0) cout << "Malvika" << endl; else cout << "Akshat" << endl; return 0; }
12.954545
34
0.501754
[ "vector" ]
88b6baab7674c026e64fbe394171e3d91725513f
2,926
cpp
C++
source/main.cpp
ShawnHymel/example-standalone-inferencing
3b6ff47c841de62b1ae03a05b6795cb1c5a899f4
[ "Apache-2.0" ]
null
null
null
source/main.cpp
ShawnHymel/example-standalone-inferencing
3b6ff47c841de62b1ae03a05b6795cb1c5a899f4
[ "Apache-2.0" ]
null
null
null
source/main.cpp
ShawnHymel/example-standalone-inferencing
3b6ff47c841de62b1ae03a05b6795cb1c5a899f4
[ "Apache-2.0" ]
1
2022-02-06T06:03:05.000Z
2022-02-06T06:03:05.000Z
#include <stdio.h> #include "edge-impulse-sdk/classifier/ei_run_classifier.h" // Callback function declaration static int get_signal_data(size_t offset, size_t length, float *out_ptr); // Raw features copied from test sample static const float features[] = { // Copy raw features here (e.g. from the 'Model testin...
34.023256
79
0.634313
[ "object", "model" ]
88b819af8c117df8faa7b102d47c1ba062f992a7
730
cpp
C++
Dataset/JC/valid/mergesort/cpp/3250.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
1
2019-05-03T19:27:45.000Z
2019-05-03T19:27:45.000Z
Dataset/JC/valid/mergesort/cpp/3250.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/JC/valid/mergesort/cpp/3250.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
#include <vector> using namespace std; template<class Iterator> int mergesort(Iterator first, Iterator last) { int n = last - first; if (n < 2) return 0; Iterator mid = first + n / 2; int sum = mergesort(first, mid) + mergesort(mid, last); typedef typename iterator_traits<Iterator>::value_type va...
24.333333
70
0.49863
[ "vector" ]
88c6c9c3c6ab48ee37dde21d400f005dff88c28b
6,028
cc
C++
engines/ep/tests/module_tests/bloomfilter_test.cc
nawazish-couchbase/kv_engine
132f1bb04c9212bcac9e401d069aeee5f63ff1cd
[ "MIT", "BSD-3-Clause" ]
104
2017-05-22T20:41:57.000Z
2022-03-24T00:18:34.000Z
engines/ep/tests/module_tests/bloomfilter_test.cc
nawazish-couchbase/kv_engine
132f1bb04c9212bcac9e401d069aeee5f63ff1cd
[ "MIT", "BSD-3-Clause" ]
3
2017-11-14T08:12:46.000Z
2022-03-03T11:14:17.000Z
engines/ep/tests/module_tests/bloomfilter_test.cc
nawazish-couchbase/kv_engine
132f1bb04c9212bcac9e401d069aeee5f63ff1cd
[ "MIT", "BSD-3-Clause" ]
71
2017-05-22T20:41:59.000Z
2022-03-29T10:34:32.000Z
/* * Copyright 2016-Present Couchbase, Inc. * * Use of this software is governed by the Business Source License included * in the file licenses/BSL-Couchbase.txt. As of the Change Date specified * in that file, in accordance with the Business Source License, use of this * software will be governed by...
36.533333
80
0.633378
[ "vector" ]
88ced352db547d1972f0f3306b27da6dc098fbb8
4,702
cxx
C++
main/winaccessibility/source/service/AccParagraphEventListener.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/winaccessibility/source/service/AccParagraphEventListener.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/winaccessibility/source/service/AccParagraphEventListener.cxx
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...
32.205479
132
0.692046
[ "object" ]
88f4c1f2d5b5a6f00d1871235ebada7bb35b76a6
14,126
cpp
C++
src/EventTraceKit.EtwCore/Source/TdhMessageFormatter.cpp
ljani/event-trace-kit
59a217fbaecfc87b3915e2494a8d25593d04ae99
[ "MIT" ]
10
2018-07-14T07:29:59.000Z
2021-10-30T17:53:26.000Z
src/EventTraceKit.EtwCore/Source/TdhMessageFormatter.cpp
ljani/event-trace-kit
59a217fbaecfc87b3915e2494a8d25593d04ae99
[ "MIT" ]
3
2019-06-07T08:29:11.000Z
2020-10-14T15:05:33.000Z
src/EventTraceKit.EtwCore/Source/TdhMessageFormatter.cpp
ljani/event-trace-kit
59a217fbaecfc87b3915e2494a8d25593d04ae99
[ "MIT" ]
3
2020-09-22T19:33:23.000Z
2021-10-30T22:59:45.000Z
#include "etk/TdhMessageFormatter.h" #include "etk/ADT/Span.h" #include "etk/Support/ErrorHandling.h" #include <evntcons.h> #include <in6addr.h> #include <strsafe.h> #include <tdh.h> namespace etk { namespace { template<typename T, typename U> ETK_ALWAYS_INLINE T GetAt(U* ptr, size_t offset) { return reinterpr...
36.786458
95
0.625442
[ "vector" ]
88f51eb151ad8e41fc369fb5c5a1efb682d008b2
1,237
hpp
C++
boost/boost_1_56_0/boost/geometry/strategies/distance_comparable_to_regular.hpp
cooparation/caffe-android
cd91078d1f298c74fca4c242531989d64a32ba03
[ "BSD-2-Clause-FreeBSD" ]
133
2018-04-20T14:09:40.000Z
2021-08-15T11:51:25.000Z
boost/boost_1_56_0/boost/geometry/strategies/distance_comparable_to_regular.hpp
cooparation/caffe-android
cd91078d1f298c74fca4c242531989d64a32ba03
[ "BSD-2-Clause-FreeBSD" ]
61
2015-05-27T11:20:11.000Z
2019-12-20T15:06:21.000Z
boost/boost_1_56_0/boost/geometry/strategies/distance_comparable_to_regular.hpp
cooparation/caffe-android
cd91078d1f298c74fca4c242531989d64a32ba03
[ "BSD-2-Clause-FreeBSD" ]
83
2018-04-27T03:58:02.000Z
2022-01-11T09:23:40.000Z
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2014, Oracle and/or its affiliates. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle // Licensed under the Boost Software License version 1.0. // http://www.boost.org/users/license.html #ifndef BOOST_GEOMETRY_STRATEGIES_...
22.907407
73
0.787389
[ "geometry" ]
88f6a627ddcc89f9d231015936dcd93de499102f
1,744
cpp
C++
core/helpers/Feeder/TCPFeeder/Packet.cpp
sears-s/fluffi
5f2f6d019041a6268199b69bf2f34487b18b84fe
[ "MIT" ]
96
2019-09-19T10:28:05.000Z
2022-02-28T11:53:06.000Z
core/helpers/Feeder/TCPFeeder/Packet.cpp
sears-s/fluffi
5f2f6d019041a6268199b69bf2f34487b18b84fe
[ "MIT" ]
123
2019-11-19T09:47:14.000Z
2021-10-19T03:10:51.000Z
core/helpers/Feeder/TCPFeeder/Packet.cpp
sears-s/fluffi
5f2f6d019041a6268199b69bf2f34487b18b84fe
[ "MIT" ]
23
2019-11-11T06:04:56.000Z
2022-02-11T15:35:26.000Z
/* Copyright 2017-2020 Siemens AG 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, publish, distribute, sub...
32.90566
118
0.78383
[ "vector" ]
88f93269d02fcac2abd24ea003fc9b2188628412
3,171
cpp
C++
httpC/Request.cpp
worldyun/httpC
fc5a3985c6e02b32508b236c3c9607ab3b1dc023
[ "Apache-2.0" ]
null
null
null
httpC/Request.cpp
worldyun/httpC
fc5a3985c6e02b32508b236c3c9607ab3b1dc023
[ "Apache-2.0" ]
null
null
null
httpC/Request.cpp
worldyun/httpC
fc5a3985c6e02b32508b236c3c9607ab3b1dc023
[ "Apache-2.0" ]
null
null
null
#include "Request.h" #include <string> #include <map> #include <iostream> #include "UrlCode.h" #include "StringP.h" #include <vector> #include "json.hpp" #include <sstream> using json = nlohmann::json; using namespace std; void Request::requestPaser(string reqHeader, string reqBody) { //处理Http头 //cout ...
24.206107
82
0.613056
[ "vector" ]
88fbe22e1df9d6ab32104c2ba932c6314e7beea0
177
cc
C++
src/main.cc
samkrew/node_mbus
a15a9e006c14ef2d8b818030bf1feabb86e54f66
[ "MIT" ]
null
null
null
src/main.cc
samkrew/node_mbus
a15a9e006c14ef2d8b818030bf1feabb86e54f66
[ "MIT" ]
null
null
null
src/main.cc
samkrew/node_mbus
a15a9e006c14ef2d8b818030bf1feabb86e54f66
[ "MIT" ]
null
null
null
#include <nan.h> #include "mbus-master.h" using namespace v8; void init(Handle<Object> exports, Handle<Object> module) { MbusMaster::Init(module); } NODE_MODULE(mbus, init)
17.7
58
0.728814
[ "object" ]
88ff42926744dc1d103f974df0749c696bd317fa
1,179
cpp
C++
plugins/robots/common/twoDModel/src/engine/items/colorFieldItem.cpp
ladaegorova18/trik-studio
f8d9ce50301fd93c948ac774e85c0e6bfff820bc
[ "Apache-2.0" ]
17
2019-06-04T06:22:47.000Z
2022-02-11T18:27:25.000Z
plugins/robots/common/twoDModel/src/engine/items/colorFieldItem.cpp
ladaegorova18/trik-studio
f8d9ce50301fd93c948ac774e85c0e6bfff820bc
[ "Apache-2.0" ]
1,248
2019-02-21T19:32:09.000Z
2022-03-29T16:50:04.000Z
plugins/robots/common/twoDModel/src/engine/items/colorFieldItem.cpp
khodand/trik-studio
3d2de6809d38b621433c7ccb1cd98da8868d022d
[ "Apache-2.0" ]
17
2019-02-12T07:58:23.000Z
2022-03-10T11:39:21.000Z
/* Copyright 2007-2015 QReal Research Group * * 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...
23.117647
75
0.741306
[ "shape" ]
322fd54fed91255d1f57cfe578320caa9d6f3a20
1,078
cpp
C++
puzzle06/puzzle06_1.cpp
schnaader/AdventOfCode2021
0808282f90e4ef97edf130f228435860f332e1d3
[ "Apache-2.0" ]
1
2021-12-19T12:34:03.000Z
2021-12-19T12:34:03.000Z
puzzle06/puzzle06_1.cpp
schnaader/AdventOfCode2021
0808282f90e4ef97edf130f228435860f332e1d3
[ "Apache-2.0" ]
null
null
null
puzzle06/puzzle06_1.cpp
schnaader/AdventOfCode2021
0808282f90e4ef97edf130f228435860f332e1d3
[ "Apache-2.0" ]
null
null
null
#include <stdio.h> #include <iostream> #include <fstream> #include <sstream> #include <string> #include <vector> #include <array> int main() { int sum_unmarked = 0; //std::ifstream input("example.txt"); std::ifstream input("input.txt"); if (!input.is_open()) { printf("Error opening file\n"); return -1; } ...
19.6
63
0.630798
[ "vector" ]
323695eceedbfdf3eaf8623e53e318cddcf55302
7,557
cpp
C++
unittests/testMath.cpp
shamanDevel/DiffDVR
99fbe9f114d0097daf402bde2ae35f18dade335d
[ "BSD-3-Clause" ]
12
2021-08-02T04:51:48.000Z
2022-01-14T18:02:27.000Z
unittests/testMath.cpp
shamanDevel/DiffDVR
99fbe9f114d0097daf402bde2ae35f18dade335d
[ "BSD-3-Clause" ]
2
2021-11-04T14:23:30.000Z
2022-02-28T10:30:13.000Z
unittests/testMath.cpp
shamanDevel/DiffDVR
99fbe9f114d0097daf402bde2ae35f18dade335d
[ "BSD-3-Clause" ]
4
2021-07-16T10:23:45.000Z
2022-01-04T02:51:43.000Z
#include <catch.hpp> #include <random> #include <vector> #include <Eigen/Core> #include <torch/torch.h> #include <renderer_utils.cuh> #include <losses.h> #include "check_adjoint.h" #include "test_utils.h" //namespace std { // template < class T > // inline std::ostream& operator << (std::ostream& os, const std::vecto...
25.880137
85
0.628292
[ "vector" ]
323ae261b43ef5435453741d99917e01ba689b0d
8,518
cpp
C++
humble-crap/humble-network.cpp
lukesalisbury/humble-crap
814c551cfdfa2687d531b50d350a0d2a6f5cf832
[ "Unlicense" ]
2
2015-02-02T23:40:03.000Z
2016-02-17T17:58:18.000Z
humble-crap/humble-network.cpp
lukesalisbury/humble-crap
814c551cfdfa2687d531b50d350a0d2a6f5cf832
[ "Unlicense" ]
null
null
null
humble-crap/humble-network.cpp
lukesalisbury/humble-crap
814c551cfdfa2687d531b50d350a0d2a6f5cf832
[ "Unlicense" ]
null
null
null
/**************************************************************************** * Copyright © Luke Salisbury * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to a...
28.019737
147
0.682202
[ "object" ]
3240687bf8e8372931afff6d8d8d502fa4f7e457
5,281
cpp
C++
methods/slmm/slmmir_lauritzen_diag.cpp
ambrad/COMPOSE
0bda7aeaf2b8494c7de8cd179c22e340b08eda6e
[ "BSD-3-Clause" ]
3
2018-12-30T20:01:25.000Z
2020-07-22T23:44:14.000Z
methods/slmm/slmmir_lauritzen_diag.cpp
E3SM-Project/COMPOSE
0bda7aeaf2b8494c7de8cd179c22e340b08eda6e
[ "BSD-3-Clause" ]
8
2019-02-06T19:08:31.000Z
2020-04-24T03:40:49.000Z
methods/slmm/slmmir_lauritzen_diag.cpp
ambrad/COMPOSE
0bda7aeaf2b8494c7de8cd179c22e340b08eda6e
[ "BSD-3-Clause" ]
2
2019-01-16T03:58:31.000Z
2019-02-06T22:45:43.000Z
#include "slmmir_p_refine.hpp" #include "slmmir_lauritzen_diag.hpp" #include <vector> extern "C" { void correlation_diag(const Real* f1, const Real* f2, int K, const Real* dA, Real* real_mixing, Real* overshooting, Real* range_pres_unmixing); void filament_diag(int K, const Real* f1, const...
37.453901
90
0.608597
[ "shape", "vector" ]
3245d2468b4ff47ffc4e508eac46f5a0120cfdc1
4,702
cpp
C++
grammar/json/lex-number.cpp
tociyuki/libtoml-cxx11
64b4017273e5c94b9bdd57fca3efc6bc6663ac4e
[ "Unlicense" ]
null
null
null
grammar/json/lex-number.cpp
tociyuki/libtoml-cxx11
64b4017273e5c94b9bdd57fca3efc6bc6663ac4e
[ "Unlicense" ]
null
null
null
grammar/json/lex-number.cpp
tociyuki/libtoml-cxx11
64b4017273e5c94b9bdd57fca3efc6bc6663ac4e
[ "Unlicense" ]
null
null
null
#include <cstdlib> #include <iostream> #include <string> #include <vector> #include "../check-builder.hpp" #include "../layoutable.hpp" enum { TOKEN_INVALID, TOKEN_SCALAR, TOKEN_STRING, TOKEN_LBRACE, TOKEN_RBRACE, TOKEN_LBRACKET, TOKEN_RBRACKET, TOKEN_COLON, TOKEN_COMMA, TOKEN_E...
26.122222
86
0.461293
[ "render", "vector" ]
3247cd7cfcf68d572c4491617d7d4a1a5652c1db
1,171
cpp
C++
cpp/random_codes.cpp
simnalamburt/snippets
8ba4cfcb1305d2b82ea892e3305613eeb7ba382b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
31
2016-01-27T07:03:25.000Z
2022-02-25T07:59:11.000Z
cpp/random_codes.cpp
simnalamburt/snippets
8ba4cfcb1305d2b82ea892e3305613eeb7ba382b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2015-01-26T01:27:21.000Z
2015-01-30T16:16:30.000Z
cpp/random_codes.cpp
simnalamburt/snippets
8ba4cfcb1305d2b82ea892e3305613eeb7ba382b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
3
2017-02-07T04:17:56.000Z
2020-06-12T05:01:31.000Z
// C++11 #include <unordered_set> #include <vector> #include <random> #include <string> #include <iostream> constexpr int64_t ipow(int64_t base, int exp, int64_t result = 1) { return exp < 1 ? result : ipow(base*base, exp/2, (exp % 2) ? result*base : result); } int main() { using namespace std; constexpr...
25.456522
88
0.627669
[ "vector" ]
325c8d5a04c7b1e9ce2b98d608270a11c41d93d0
2,421
cpp
C++
src/RA_md5factory.cpp
Jamiras/RAIntegration
ccf3dea24d81aefdcf51535f073889d03272b259
[ "MIT" ]
71
2018-04-15T13:02:43.000Z
2022-03-26T11:19:18.000Z
src/RA_md5factory.cpp
Jamiras/RAIntegration
ccf3dea24d81aefdcf51535f073889d03272b259
[ "MIT" ]
309
2018-04-15T12:10:59.000Z
2022-01-22T20:13:04.000Z
src/RA_md5factory.cpp
Jamiras/RAIntegration
ccf3dea24d81aefdcf51535f073889d03272b259
[ "MIT" ]
17
2018-04-17T16:09:31.000Z
2022-03-04T08:49:03.000Z
#include "RA_md5factory.h" #include "RA_Defs.h" #include "services\IFileSystem.hh" #include "services\ServiceLocator.hh" #include <rcheevos/src/rhash/md5.h> namespace { constexpr static unsigned int MD5_STRING_LEN = 32; } std::string RAFormatMD5(const BYTE* digest) { char buffer[33] = ""; Expects(digest !=...
26.604396
102
0.666254
[ "vector" ]
325cef79de4304edccd910f2b9fb06168b86e4f6
5,622
cxx
C++
PWGLF/RESONANCES/AliRsnCutDelta.cxx
maroozm/AliPhysics
22ec256928cfdf8f800e05bfc1a6e124d90b6eaf
[ "BSD-3-Clause" ]
114
2017-03-03T09:12:23.000Z
2022-03-03T20:29:42.000Z
PWGLF/RESONANCES/AliRsnCutDelta.cxx
maroozm/AliPhysics
22ec256928cfdf8f800e05bfc1a6e124d90b6eaf
[ "BSD-3-Clause" ]
19,637
2017-01-16T12:34:41.000Z
2022-03-31T22:02:40.000Z
PWGLF/RESONANCES/AliRsnCutDelta.cxx
maroozm/AliPhysics
22ec256928cfdf8f800e05bfc1a6e124d90b6eaf
[ "BSD-3-Clause" ]
1,021
2016-07-14T22:41:16.000Z
2022-03-31T05:15:51.000Z
// // This cut implements all the checks done to accept a track as a proton or pion // for the pPb analysis using 2013 runs. // It is based on standard cuts on track quality and nsigma cuts // with respect to the TPC and TOF signals for the PID. // #include <Riostream.h> #include "AliPID.h" #include "AliPIDResponse....
30.064171
121
0.686055
[ "object" ]
325d8a30af0286c4f4772c6db786ac5d1eebe00e
3,863
hpp
C++
model.hpp
yang-zzhong/sql-builder
6fbf1c5435698a4c5c67e8e24ad271964473b827
[ "MIT" ]
null
null
null
model.hpp
yang-zzhong/sql-builder
6fbf1c5435698a4c5c67e8e24ad271964473b827
[ "MIT" ]
null
null
null
model.hpp
yang-zzhong/sql-builder
6fbf1c5435698a4c5c67e8e24ad271964473b827
[ "MIT" ]
1
2019-12-24T18:30:54.000Z
2019-12-24T18:30:54.000Z
#pragma once #include "adapter.hpp" #include "col.hpp" #include <memory> #include <vector> #include <functional> namespace boosql { class model { public: const std::string & table_name() { return _table_name; } model() { _adapter = new sqlite_adapter(); _auto_delete_ad...
23.412121
82
0.56614
[ "vector", "model" ]
325ebc83fd8955afa6e873522ae72ab3820f1981
1,718
hpp
C++
include/Thread/Thread.hpp
saanj1/Thread
125aed7776913edafe1f614abaa124e75852d0b4
[ "MIT" ]
1
2020-09-30T06:28:28.000Z
2020-09-30T06:28:28.000Z
include/Thread/Thread.hpp
saanj1/Thread
125aed7776913edafe1f614abaa124e75852d0b4
[ "MIT" ]
null
null
null
include/Thread/Thread.hpp
saanj1/Thread
125aed7776913edafe1f614abaa124e75852d0b4
[ "MIT" ]
null
null
null
#pragma once /** * @file Thread.hpp * @author Sanjeev Kumar M * @date 28/09/2020 12::00 * * This module defines Thread::Thread class */ #include <signal.h> namespace Thread { enum class ThreadStatus : uint8_t { Ok, Failed, AlreadyStarted, }; class Thread { public: //Life cycle manage...
22.025641
66
0.600116
[ "object" ]
3260405e30841b7c5c6a4d43c60b8908939294ad
2,872
hpp
C++
numerical-methods-2_iterative-methods/relaxation_method.hpp
DmitriBogdanov/numerical-methods-2_iterative-methods
3a557b00feffa3eff306d444ec2e81feed74d324
[ "MIT" ]
null
null
null
numerical-methods-2_iterative-methods/relaxation_method.hpp
DmitriBogdanov/numerical-methods-2_iterative-methods
3a557b00feffa3eff306d444ec2e81feed74d324
[ "MIT" ]
null
null
null
numerical-methods-2_iterative-methods/relaxation_method.hpp
DmitriBogdanov/numerical-methods-2_iterative-methods
3a557b00feffa3eff306d444ec2e81feed74d324
[ "MIT" ]
null
null
null
#pragma once #include <tuple> // returning multiple variables #include "cmatrix.hpp" #include "math_helpers.hpp" // @return 1 => aproximate solution // @return 2 => number of iterations inline std::tuple<DMatrix, unsigned int> relaxation_method(const DMatrix &Diagonals, const DMatrix &b, double w, StopCondition st...
28.435644
143
0.626741
[ "vector" ]
32659f3bb19278026a8acaf5d7788e81fbb5dfac
4,019
cpp
C++
catkin_ws/src/ball_chaser/src/process_image.cpp
milan-r-shah/RoboND_Map_My_World
45d7fd7be19d3cf1d47a3e52f6cf0ac7b9cbf1d8
[ "MIT" ]
null
null
null
catkin_ws/src/ball_chaser/src/process_image.cpp
milan-r-shah/RoboND_Map_My_World
45d7fd7be19d3cf1d47a3e52f6cf0ac7b9cbf1d8
[ "MIT" ]
null
null
null
catkin_ws/src/ball_chaser/src/process_image.cpp
milan-r-shah/RoboND_Map_My_World
45d7fd7be19d3cf1d47a3e52f6cf0ac7b9cbf1d8
[ "MIT" ]
null
null
null
#include "ros/ros.h" #include "ball_chaser/DriveToTarget.h" #include <sensor_msgs/Image.h> // Define a global client that can request services ros::ServiceClient client; // This function calls the command_robot service to drive the robot in the specified direction void drive_robot(float lin_x, float ang_z) { // R...
36.87156
154
0.618064
[ "vector" ]
3268298e90e4f73e469964bafa4d39ece3bb01c2
53,980
cpp
C++
client/v6client.cpp
Abhayakara/dhcpng
b2499071ce5dbf36de5bf88ba9eb54047319dbd3
[ "MIT" ]
null
null
null
client/v6client.cpp
Abhayakara/dhcpng
b2499071ce5dbf36de5bf88ba9eb54047319dbd3
[ "MIT" ]
null
null
null
client/v6client.cpp
Abhayakara/dhcpng
b2499071ce5dbf36de5bf88ba9eb54047319dbd3
[ "MIT" ]
null
null
null
/* v6client.cpp * * DHCPv6 protocol engine class. */ /* Copyright (c) 2005-2006 Nominum, 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...
29.691969
122
0.654668
[ "object" ]
326ea85db60c52b39d297e2d43d4b705a0b57747
9,348
hpp
C++
terminalpp/include/terminalpp/terminal.hpp
CalielOfSeptem/septem
fe7a615eb6c279d3746ee78de8864b5e07bf7e3e
[ "MIT" ]
1
2017-03-30T14:31:33.000Z
2017-03-30T14:31:33.000Z
terminalpp/include/terminalpp/terminal.hpp
HoraceWeebler/septem
fe7a615eb6c279d3746ee78de8864b5e07bf7e3e
[ "MIT" ]
null
null
null
terminalpp/include/terminalpp/terminal.hpp
HoraceWeebler/septem
fe7a615eb6c279d3746ee78de8864b5e07bf7e3e
[ "MIT" ]
null
null
null
#pragma once #include "terminalpp/extent.hpp" #include "terminalpp/point.hpp" #include "terminalpp/string.hpp" #include "terminalpp/token.hpp" #include "terminalpp/detail/parser.hpp" #include <boost/optional.hpp> #include <string> #include <vector> namespace terminalpp { //* =========================================...
41.546667
78
0.474968
[ "vector" ]
3275a2d120539b6a6adb1d4d3fa317fe44686e23
13,350
cpp
C++
CS479/Project_1/code_files/bayes_classifier.cpp
T-R0D/Past-Courses
0edc83a7bf09515f0d01d23a26df2ff90c0f458a
[ "MIT" ]
7
2017-03-13T17:32:26.000Z
2021-09-27T16:51:22.000Z
CS479/Project_1/code_files/bayes_classifier.cpp
T-R0D/Past-Courses
0edc83a7bf09515f0d01d23a26df2ff90c0f458a
[ "MIT" ]
1
2021-05-29T19:54:02.000Z
2021-05-29T19:54:52.000Z
CS479/Project_1/code_files/bayes_classifier.cpp
T-R0D/Past-Courses
0edc83a7bf09515f0d01d23a26df2ff90c0f458a
[ "MIT" ]
25
2016-10-18T03:31:44.000Z
2020-12-29T13:23:10.000Z
/** @file bayes_classifier.cpp @author Terence Henriod Project 1: Bayesian Minimum Error Classification @brief Class implementations for the BayesClassifier defined in bayes_classifier.h. @version Original Code 1.00 (3/8/2014) - T. Henriod */ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
28.046218
100
0.622846
[ "object", "vector" ]
327872044274ed0ea7567550690da20d38df7a88
16,353
hpp
C++
src/gltf_loader.hpp
abbaswasim/vulkaned
15ff8b76d0d52bff2700ffe9107dab75d92638af
[ "Apache-2.0" ]
null
null
null
src/gltf_loader.hpp
abbaswasim/vulkaned
15ff8b76d0d52bff2700ffe9107dab75d92638af
[ "Apache-2.0" ]
null
null
null
src/gltf_loader.hpp
abbaswasim/vulkaned
15ff8b76d0d52bff2700ffe9107dab75d92638af
[ "Apache-2.0" ]
null
null
null
// VulkanEd Source Code // Wasim Abbas // http://www.waZim.com // Copyright (c) 2021 // // 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 //...
36.748315
258
0.691433
[ "mesh", "vector" ]
327c76ea8c2c02b21abce51e1210ccf0f09d2186
21,641
cpp
C++
IGraphics/Controls/IControls.cpp
onqel/iPlug2
d6d4c45935119fe87bf9049861a2e004df605b80
[ "Zlib" ]
null
null
null
IGraphics/Controls/IControls.cpp
onqel/iPlug2
d6d4c45935119fe87bf9049861a2e004df605b80
[ "Zlib" ]
null
null
null
IGraphics/Controls/IControls.cpp
onqel/iPlug2
d6d4c45935119fe87bf9049861a2e004df605b80
[ "Zlib" ]
null
null
null
/* ============================================================================== This file is part of the iPlug 2 library. Copyright (C) the iPlug 2 developers. See LICENSE.txt for more info. ============================================================================== */ /** * @file * @brief IControls imp...
25.640995
225
0.663139
[ "shape", "vector" ]
327c8a96e872d4229a024db15e79273905df66e9
1,056
cpp
C++
loj/p132.cpp
freedomDR/coding
310a68077de93ef445ccd2929e90ba9c22a9b8eb
[ "MIT" ]
null
null
null
loj/p132.cpp
freedomDR/coding
310a68077de93ef445ccd2929e90ba9c22a9b8eb
[ "MIT" ]
null
null
null
loj/p132.cpp
freedomDR/coding
310a68077de93ef445ccd2929e90ba9c22a9b8eb
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; using ll = long long; inline int lb(int p) { return p & -p; } void add(vector<ll> &a, int p, ll v) { while(p < (int)a.size()) { a[p] += v; p += lb(p); } } ll getSum(vector<ll> &a, int p) { ll sum = 0; while(p > 0) { sum += a[p]...
18.526316
113
0.393939
[ "vector" ]
32819e83544c705bb50bda581fcf4a9c9cc2ddcd
11,567
cpp
C++
src/QMCTools/LCAOH5Parser.cpp
bwvdg/qmcpack
cd09fc54b36de2579c9802f5e64b7ec15506f3c3
[ "NCSA" ]
null
null
null
src/QMCTools/LCAOH5Parser.cpp
bwvdg/qmcpack
cd09fc54b36de2579c9802f5e64b7ec15506f3c3
[ "NCSA" ]
null
null
null
src/QMCTools/LCAOH5Parser.cpp
bwvdg/qmcpack
cd09fc54b36de2579c9802f5e64b7ec15506f3c3
[ "NCSA" ]
null
null
null
////////////////////////////////////////////////////////////////////////////////////// // This file is distributed under the University of Illinois/NCSA Open Source License. // See LICENSE file in top directory for details. // // Copyright (c) 2016 Jeongnim Kim and QMCPACK developers. // // File developed by: Anouar Be...
25.590708
223
0.561252
[ "vector" ]
328fea593ba0fd1bc466d971f186abe80b34901b
2,338
cpp
C++
src/_leetcode/leet_455.cpp
turesnake/leetPractice
a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b
[ "MIT" ]
null
null
null
src/_leetcode/leet_455.cpp
turesnake/leetPractice
a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b
[ "MIT" ]
null
null
null
src/_leetcode/leet_455.cpp
turesnake/leetPractice
a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b
[ "MIT" ]
null
null
null
/* * ====================== leet_455.cpp ========================== * -- tpr -- * CREATE -- 2020.04.14 * MODIFY -- * ---------------------------------------------------------- * 455. 分发饼干 */ #include "innLeet....
24.103093
78
0.420445
[ "vector" ]
3296ab783bebfae5d545a1a5e1e3de44ec639b84
5,911
hpp
C++
sycl/include/CL/sycl/interop_handle.hpp
tiwaria1/llvm
616a396db0610ae0c1992361af005a869ef81897
[ "Apache-2.0" ]
null
null
null
sycl/include/CL/sycl/interop_handle.hpp
tiwaria1/llvm
616a396db0610ae0c1992361af005a869ef81897
[ "Apache-2.0" ]
null
null
null
sycl/include/CL/sycl/interop_handle.hpp
tiwaria1/llvm
616a396db0610ae0c1992361af005a869ef81897
[ "Apache-2.0" ]
null
null
null
//==------------ interop_handle.hpp --- SYCL interop handle ----------------==// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
39.939189
80
0.696329
[ "object", "vector" ]
329784efd2864c7e59ba29c61ccc47fdc66daf7d
492
cpp
C++
AtCoderBeginnersSelection/ABC081B/main.cpp
ryokohbato/AtCoder
1e5379dde57549f987ef8ab628230ad5fa1b60b8
[ "MIT" ]
null
null
null
AtCoderBeginnersSelection/ABC081B/main.cpp
ryokohbato/AtCoder
1e5379dde57549f987ef8ab628230ad5fa1b60b8
[ "MIT" ]
null
null
null
AtCoderBeginnersSelection/ABC081B/main.cpp
ryokohbato/AtCoder
1e5379dde57549f987ef8ab628230ad5fa1b60b8
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int divideCount(int number) { int count = 0; while(number % 2 == 0) { count++; number = number / 2; } return count; } int main() { int N; cin >> N; vector<int> A_divide_count(N); for (int i = 0; i < N; i++) { int currentA; cin >> currentA...
15.375
53
0.583333
[ "vector" ]
329e6a6d5f1c0f7d7d420c8d31bb58a61b50c2f6
12,770
cpp
C++
Co-Simulation/Sumo/sumo-1.7.0/src/libsumo/VehicleType.cpp
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
null
null
null
Co-Simulation/Sumo/sumo-1.7.0/src/libsumo/VehicleType.cpp
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
null
null
null
Co-Simulation/Sumo/sumo-1.7.0/src/libsumo/VehicleType.cpp
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
null
null
null
/****************************************************************************/ // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo // Copyright (C) 2017-2020 German Aerospace Center (DLR) and others. // This program and the accompanying materials are made available under the // terms of the Ecli...
29.62877
156
0.687314
[ "vector" ]
32a8c01ff126511309b3c14d2a92d72d7567bcce
1,319
cpp
C++
NativeFileSystemWatcher/src/NativeFileSystemWatcher/DelayedFileSystemWatcher.cpp
sanastasiou/FileSystemWatcher
acda746228dd351688969bfd41e3c7bbd607f287
[ "MIT" ]
10
2015-04-12T08:17:05.000Z
2019-01-11T12:55:04.000Z
NativeFileSystemWatcher/src/NativeFileSystemWatcher/DelayedFileSystemWatcher.cpp
fcccode/FileSystemWatcher
acda746228dd351688969bfd41e3c7bbd607f287
[ "MIT" ]
null
null
null
NativeFileSystemWatcher/src/NativeFileSystemWatcher/DelayedFileSystemWatcher.cpp
fcccode/FileSystemWatcher
acda746228dd351688969bfd41e3c7bbd607f287
[ "MIT" ]
5
2015-09-22T16:18:56.000Z
2021-04-02T04:46:14.000Z
#pragma managed(push, off) #include "NativeFileSystemWatcher/DelayedFileSystemWatcher.h" namespace Windows { namespace File { DelayedFileSystemWatcher::DelayedFileSystemWatcher(IFileSystemWatcher::FileSystemString const & dir, ::DWORD changeFlags, ...
39.969697
135
0.488249
[ "vector" ]
32ab156cdd89bcb94cf3645ab3100ba8a495b5e0
3,591
cpp
C++
hackathon/XuanZhao/consensus/branchtree.cpp
zzhmark/vaa3d_tools
3ca418add85a59ac7e805d55a600b78330d7e53d
[ "MIT" ]
1
2021-12-27T19:14:03.000Z
2021-12-27T19:14:03.000Z
hackathon/XuanZhao/consensus/branchtree.cpp
zzhmark/vaa3d_tools
3ca418add85a59ac7e805d55a600b78330d7e53d
[ "MIT" ]
null
null
null
hackathon/XuanZhao/consensus/branchtree.cpp
zzhmark/vaa3d_tools
3ca418add85a59ac7e805d55a600b78330d7e53d
[ "MIT" ]
null
null
null
#include "branchtree.h" #include <iostream> using namespace std; bool Branch::get_r_pointsIndex_of_branch(vector<V3DLONG> &r_points, NeuronTree &nt) { // qDebug()<<"headPointIndex: "<<headPointIndex<<" endPointIndex: "<<endPointIndex; int tmp = endPointIndex; r_points.push_back(tmp); while(tmp != head...
24.765517
88
0.527151
[ "vector" ]
32ae8b674c4b95a451a3f29d9ead3238445669b3
442
cpp
C++
LeetCode/Explore/December-LeetCoding-Challenge/#Day#8_PairsOfSongsWithTotalDurationsDivisibleBy60_sol1_math_O(N)_time_O(60)_extra_space_56ms_23.4MB.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
1
2022-01-26T14:50:07.000Z
2022-01-26T14:50:07.000Z
LeetCode/Problems/Algorithms/#1010_PairsOfSongsWithTotalDurationsDivisibleBy60_sol1_math_O(N)_time_O(60)_extra_space_56ms_23.4MB.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
null
null
null
LeetCode/Problems/Algorithms/#1010_PairsOfSongsWithTotalDurationsDivisibleBy60_sol1_math_O(N)_time_O(60)_extra_space_56ms_23.4MB.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
null
null
null
class Solution { public: int numPairsDivisibleBy60(vector<int>& time) { vector<int> count(60, 0); for(int t: time){ count[t % 60] += 1; } int pairs = (long long)count[0] * (count[0] - 1) / 2 + (long long)count[30] * (count[30] - 1) / 2; for(int t...
27.625
107
0.427602
[ "vector" ]
32bc9705136957be23c89c14a4ebae75bc2b0ff0
2,076
hpp
C++
src/glPack.hpp
wkretzsch/insti
2b173afcb59bc424cbb2993a73381126ea0f844d
[ "MIT" ]
8
2017-10-01T13:05:21.000Z
2022-01-17T08:46:58.000Z
src/glPack.hpp
rwdavies/GLPhase
1728721aed7407ce00fc2113651baf998978961b
[ "MIT" ]
null
null
null
src/glPack.hpp
rwdavies/GLPhase
1728721aed7407ce00fc2113651baf998978961b
[ "MIT" ]
1
2018-11-01T21:18:19.000Z
2018-11-01T21:18:19.000Z
#ifndef _GLPACK_HPP #define _GLPACK_HPP static_assert(__cplusplus > 199711L, "Program requires C++11 capable compiler"); #include <vector> #include <cassert> #include <cmath> #include <limits> #include "utils.hpp" #include "glVQ.hpp" #include <limits> #include <utility> #include <gsl/gsl_rng.h> #include "globals.h" ...
25.62963
80
0.716281
[ "vector" ]
32d82b8e055307c2c1e9c899c442427bc11581b1
4,802
cpp
C++
iotvideo/src/v20191126/model/DevTokenInfo.cpp
li5ch/tencentcloud-sdk-cpp
12ebfd75a399ee2791f6ac1220a79ce8a9faf7c4
[ "Apache-2.0" ]
null
null
null
iotvideo/src/v20191126/model/DevTokenInfo.cpp
li5ch/tencentcloud-sdk-cpp
12ebfd75a399ee2791f6ac1220a79ce8a9faf7c4
[ "Apache-2.0" ]
null
null
null
iotvideo/src/v20191126/model/DevTokenInfo.cpp
li5ch/tencentcloud-sdk-cpp
12ebfd75a399ee2791f6ac1220a79ce8a9faf7c4
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
26.240437
136
0.680966
[ "model" ]
77f8cb3c5d9afa00754fbd876e67300efb8c1982
6,116
cpp
C++
src/main.cpp
bkille/RAMBO
e47fcc132e2e31a9e517e7d71ba19675f3f1eb51
[ "Apache-2.0" ]
18
2020-04-15T04:54:28.000Z
2021-12-17T02:44:12.000Z
src/main.cpp
bkille/RAMBO
e47fcc132e2e31a9e517e7d71ba19675f3f1eb51
[ "Apache-2.0" ]
null
null
null
src/main.cpp
bkille/RAMBO
e47fcc132e2e31a9e517e7d71ba19675f3f1eb51
[ "Apache-2.0" ]
4
2020-01-23T05:33:33.000Z
2020-07-03T19:54:20.000Z
#include <iomanip> #include <iostream> #include <fstream> #include <math.h> #include <sstream> #include <string> #include <string.h> #include <algorithm> #include <omp.h> #include <chrono> #include <list> #include <vector> #include <filesystem> #include "CLI/App.hpp" #include "CLI/Validators.hpp" #include "spdlog/spdlo...
31.204082
199
0.550033
[ "vector" ]
77f8e3318cab218221ec15823ade940339120d2e
2,599
cpp
C++
Tameran/Tameran/GameWindow.cpp
Zokerus/Tameran
7bf20aae2c5bba3db972b09862528e6a21187c1d
[ "MIT" ]
1
2017-09-21T18:08:45.000Z
2017-09-21T18:08:45.000Z
Tameran/Tameran/GameWindow.cpp
Zokerus/Tameran
7bf20aae2c5bba3db972b09862528e6a21187c1d
[ "MIT" ]
null
null
null
Tameran/Tameran/GameWindow.cpp
Zokerus/Tameran
7bf20aae2c5bba3db972b09862528e6a21187c1d
[ "MIT" ]
null
null
null
#include "GameWindow.h" Tameran::GameWindow::GameWindow(HINSTANCE hInst, char* pArgs) : GameWindow(hInst, pArgs, "DirectX Window", 1024, 768, false, false) {} Tameran::GameWindow::GameWindow(HINSTANCE hInst, char* pArgs, const std::string title) : GameWindow(hInst, pArgs, title, 1024, 768, false, false) {} Tameran...
29.873563
199
0.744132
[ "render" ]
ae026128f298e67cad8cdd8773bb4fc9d1426183
36,611
cpp
C++
eclipse_workspace/gmatch/src/SelectProfilesPanel.cpp
GPMSoftware/GPM
a2e0b9eed52bb4ecf07770831a54985815f7d866
[ "MIT" ]
null
null
null
eclipse_workspace/gmatch/src/SelectProfilesPanel.cpp
GPMSoftware/GPM
a2e0b9eed52bb4ecf07770831a54985815f7d866
[ "MIT" ]
null
null
null
eclipse_workspace/gmatch/src/SelectProfilesPanel.cpp
GPMSoftware/GPM
a2e0b9eed52bb4ecf07770831a54985815f7d866
[ "MIT" ]
null
null
null
/* * (c) Crown copyright 2009-2015. * * This software is distributed under the MIT License. * (See accompanying file LICENSE.txt or copy at * http://opensource.org/licenses/MIT) */ /* * SelectProfilesPanel.cpp * * Created on: Jul 29, 2010 * Author: gareth */ #include "SelectProfilesPanel.h" #include ...
25.058864
138
0.637186
[ "vector" ]
ae1e526549bc0745380cc3fdcb1489fa1df357bc
4,326
hpp
C++
openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/include/xyz/openbmc_project/Time/Owner/server.hpp
sotaoverride/backup
ca53a10b72295387ef4948a9289cb78ab70bc449
[ "Apache-2.0" ]
null
null
null
openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/include/xyz/openbmc_project/Time/Owner/server.hpp
sotaoverride/backup
ca53a10b72295387ef4948a9289cb78ab70bc449
[ "Apache-2.0" ]
null
null
null
openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/include/xyz/openbmc_project/Time/Owner/server.hpp
sotaoverride/backup
ca53a10b72295387ef4948a9289cb78ab70bc449
[ "Apache-2.0" ]
null
null
null
#pragma once #include <map> #include <string> #include <sdbusplus/sdbus.hpp> #include <sdbusplus/server.hpp> #include <systemd/sd-bus.h> #include <tuple> #include <variant> namespace sdbusplus { namespace xyz { namespace openbmc_project { namespace Time { namespace server { class Owner { public: /* Defin...
31.347826
79
0.587147
[ "object" ]
ae2354570c86a6437acc9744e3aab3dcf939f121
1,277
cpp
C++
algorithms/suminbuffer.cpp
VITObelgium/geodynamix
6d3323bc4cae1b85e26afdceab2ecf3686b11369
[ "MIT" ]
null
null
null
algorithms/suminbuffer.cpp
VITObelgium/geodynamix
6d3323bc4cae1b85e26afdceab2ecf3686b11369
[ "MIT" ]
null
null
null
algorithms/suminbuffer.cpp
VITObelgium/geodynamix
6d3323bc4cae1b85e26afdceab2ecf3686b11369
[ "MIT" ]
1
2021-06-16T11:55:27.000Z
2021-06-16T11:55:27.000Z
#include "gdx/algo/suminbuffer.h" namespace gdx { // summed circular area, using sliding window technique. Much slower than integral image technique. void compute_circle_border_offsets(const int radius /*cells*/, std::vector<Cell>& plusRight, std::vector<Cell>& minLeft, std::vector<Cell>& plusDown, s...
35.472222
100
0.507439
[ "vector" ]
ae2438562a71136369270aefccaa464cb4ffb001
1,710
cc
C++
HLTrigger/JetMET/src/AlphaT.cc
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
HLTrigger/JetMET/src/AlphaT.cc
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
HLTrigger/JetMET/src/AlphaT.cc
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
#include <numeric> #include <cmath> #include "HLTrigger/JetMET/interface/AlphaT.h" double AlphaT::value_(std::vector<bool> * jet_sign) const { // Clear pseudo-jet container if (jet_sign) { jet_sign->clear(); jet_sign->resize(et_.size()); } // check the size of the input collection if (et_.size() ==...
31.666667
109
0.596491
[ "vector" ]
ae26303ba74be148559dda44769fec7cdcc4fb7d
1,550
cpp
C++
CounterStatistic.cpp
fakeNetflix/facebook-repo-treadmill
c38d09e1faa44c296b49111bbe45760ce84212be
[ "BSD-3-Clause" ]
null
null
null
CounterStatistic.cpp
fakeNetflix/facebook-repo-treadmill
c38d09e1faa44c296b49111bbe45760ce84212be
[ "BSD-3-Clause" ]
null
null
null
CounterStatistic.cpp
fakeNetflix/facebook-repo-treadmill
c38d09e1faa44c296b49111bbe45760ce84212be
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #include "t...
23.846154
80
0.676774
[ "object" ]