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
5b080fa1de0ef65d67a5839f7e53e4870f7d029d
1,225
cpp
C++
source/plc/src/plange.cpp
dlin172/Plange
4b36a1225b2263bc8d38a6d1cc9b50c3d4b58e04
[ "BSD-3-Clause" ]
null
null
null
source/plc/src/plange.cpp
dlin172/Plange
4b36a1225b2263bc8d38a6d1cc9b50c3d4b58e04
[ "BSD-3-Clause" ]
null
null
null
source/plc/src/plange.cpp
dlin172/Plange
4b36a1225b2263bc8d38a6d1cc9b50c3d4b58e04
[ "BSD-3-Clause" ]
null
null
null
#include "plange.hpp" plange::plange() { } plange::~plange() { } bool plange::is_Collection(const Expression& v) { ERROR(NotImplemented, __FUNCTION__); } bool plange::is_Integral(const Expression& v) { ERROR(NotImplemented, __FUNCTION__); } value& plange::get_Float() { ERROR(NotImplemented, __FUNCTION__); } ...
14.08046
86
0.730612
[ "vector" ]
5b0883a9a0d3200076714dd0c89299ecd095806d
6,581
cpp
C++
lib/benchmark/dataset_operations_benchmark.cpp
nvaytet/scipp
f14f56ed19cccb4162d55b1123df7225eeedb395
[ "BSD-3-Clause" ]
43
2019-04-08T14:13:11.000Z
2022-02-08T06:09:35.000Z
lib/benchmark/dataset_operations_benchmark.cpp
nvaytet/scipp
f14f56ed19cccb4162d55b1123df7225eeedb395
[ "BSD-3-Clause" ]
1,342
2019-03-30T07:06:08.000Z
2022-03-28T13:12:47.000Z
lib/benchmark/dataset_operations_benchmark.cpp
nvaytet/scipp
f14f56ed19cccb4162d55b1123df7225eeedb395
[ "BSD-3-Clause" ]
12
2019-06-13T08:56:12.000Z
2021-11-04T08:24:18.000Z
// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2021 Scipp contributors (https://github.com/scipp) /// @file #include <benchmark/benchmark.h> #include <numeric> #include "common.h" #include "scipp/dataset/dataset.h" #include "scipp/dataset/reduction.h" using namespace scipp; using namespace scipp::core; ...
32.579208
78
0.544294
[ "shape", "vector" ]
5b0a64def22255d2277fd6937b8525490faad44b
2,800
inl
C++
headers/Impl/FilterWriter.inl
SunYe1234/PDFNetNew
110af493387b866e765e877c8cacae72bafc4cf8
[ "Apache-2.0" ]
null
null
null
headers/Impl/FilterWriter.inl
SunYe1234/PDFNetNew
110af493387b866e765e877c8cacae72bafc4cf8
[ "Apache-2.0" ]
null
null
null
headers/Impl/FilterWriter.inl
SunYe1234/PDFNetNew
110af493387b866e765e877c8cacae72bafc4cf8
[ "Apache-2.0" ]
null
null
null
inline FilterWriter::FilterWriter () { REX(TRN_FilterWriterCreate(0, &m_impl)); } inline FilterWriter::FilterWriter (Filter& filter) { REX(TRN_FilterWriterCreate(filter.m_impl, &m_impl)); } inline FilterWriter::~FilterWriter () { DREX(m_impl, TRN_FilterWriterDestroy(m_impl)); } inline void Filter...
21.705426
85
0.742143
[ "vector" ]
5b0a82f7c98fd6211937d69919b911bef3b20b27
9,570
hpp
C++
dd-httpd/HttpServer.hpp
WindSnowLi/dd-httpd
8b979f0a15946f4e869d088327b12eb330f9ea80
[ "MIT" ]
null
null
null
dd-httpd/HttpServer.hpp
WindSnowLi/dd-httpd
8b979f0a15946f4e869d088327b12eb330f9ea80
[ "MIT" ]
1
2022-03-24T07:10:10.000Z
2022-03-25T06:14:35.000Z
dd-httpd/HttpServer.hpp
WindSnowLi/dd-httpd
8b979f0a15946f4e869d088327b12eb330f9ea80
[ "MIT" ]
null
null
null
#pragma once #include <unordered_map> #include <functional> #include <string> #include <memory> #include <sstream> #include <string_view> #include <utility> #include "HttpRequest.hpp" #include "HttpResponse.hpp" #include "RequestMethod.hpp" #include "HttpRegisterInterceptor.hpp" #include "HttpRegisterServer.hpp" #inc...
38.12749
118
0.504911
[ "vector" ]
5b0e9a7c5e4e4d65e7ae6f7fb7010ec3c8f3f519
20,260
cpp
C++
applications/DG-Max/Programs/DGMaxEigen.cpp
hpgem/hpgem
b2f7ac6bdef3262af0c3e8559cb991357a96457f
[ "BSD-3-Clause-Clear" ]
5
2020-04-01T15:35:26.000Z
2022-02-22T02:48:12.000Z
applications/DG-Max/Programs/DGMaxEigen.cpp
hpgem/hpgem
b2f7ac6bdef3262af0c3e8559cb991357a96457f
[ "BSD-3-Clause-Clear" ]
139
2020-01-06T12:42:24.000Z
2022-03-10T20:58:14.000Z
applications/DG-Max/Programs/DGMaxEigen.cpp
hpgem/hpgem
b2f7ac6bdef3262af0c3e8559cb991357a96457f
[ "BSD-3-Clause-Clear" ]
4
2020-04-10T09:19:33.000Z
2021-08-21T07:20:42.000Z
#include <exception> #include "Base/CommandLineOptions.h" #include "Base/MeshFileInformation.h" #include "Output/VTKSpecificTimeWriter.h" #include "DGMaxLogger.h" #include "DGMaxProgramUtils.h" #include "Algorithms/DivDGMaxEigenvalue.h" #include "Algorithms/DGMaxEigenvalue.h" #include "Utils/KSpacePath.h" #include "U...
36.76951
80
0.576209
[ "mesh", "geometry", "vector" ]
5b11ddce2be4ba002af2653d161673134e34d077
2,900
cpp
C++
src/MyGame.cpp
NathanJMurray/CI628PongClient
5c03e38f354340f58d617cef861446d4d56ade09
[ "MIT" ]
null
null
null
src/MyGame.cpp
NathanJMurray/CI628PongClient
5c03e38f354340f58d617cef861446d4d56ade09
[ "MIT" ]
null
null
null
src/MyGame.cpp
NathanJMurray/CI628PongClient
5c03e38f354340f58d617cef861446d4d56ade09
[ "MIT" ]
null
null
null
#include "MyGame.h" Font scoreFont; SDL_Texture* Texture::LoadTexture(const char* texture, SDL_Renderer* ren) { SDL_Surface* tempSurface = IMG_Load(texture); SDL_Texture* tex = SDL_CreateTextureFromSurface(ren, tempSurface); SDL_FreeSurface(tempSurface); return tex; } SDL_Texture* ballTex; void MyG...
26.851852
75
0.595862
[ "render", "vector" ]
5b12b1a70ceb1a3a0437785e330390072b1c9cb7
102,248
cpp
C++
src/basic/adt/ApInt.cpp
tryboy/polarphp
f6608c4dc26add94e61684ed0edd3d5c7e86e768
[ "PHP-3.01" ]
null
null
null
src/basic/adt/ApInt.cpp
tryboy/polarphp
f6608c4dc26add94e61684ed0edd3d5c7e86e768
[ "PHP-3.01" ]
null
null
null
src/basic/adt/ApInt.cpp
tryboy/polarphp
f6608c4dc26add94e61684ed0edd3d5c7e86e768
[ "PHP-3.01" ]
null
null
null
// This source file is part of the polarphp.org open source project // // Copyright (c) 2017 - 2019 polarphp software foundation // Copyright (c) 2017 - 2019 zzu_softboy <zzu_softboy@163.com> // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://polarphp.org/LICENSE.txt for license info...
35.688656
118
0.613704
[ "vector" ]
5b161dc6016d751c087af4c746e45fcd2c08b334
1,025
cpp
C++
Src/Greedy/135_Candy.cpp
HATTER-LONG/https---github.com-HATTER-LONG-AlgorithmTraining
bd2773c066352bab46ac019cef9fbbff8761c147
[ "Apache-2.0" ]
2
2021-02-07T07:03:43.000Z
2021-02-08T16:04:42.000Z
Src/Greedy/135_Candy.cpp
HATTER-LONG/https---github.com-HATTER-LONG-AlgorithmTraining
bd2773c066352bab46ac019cef9fbbff8761c147
[ "Apache-2.0" ]
null
null
null
Src/Greedy/135_Candy.cpp
HATTER-LONG/https---github.com-HATTER-LONG-AlgorithmTraining
bd2773c066352bab46ac019cef9fbbff8761c147
[ "Apache-2.0" ]
1
2021-02-24T09:48:26.000Z
2021-02-24T09:48:26.000Z
#include <algorithm> #include <catch2/catch.hpp> #include <numeric> using namespace std; /* * 题目描述 * 一群孩子站成一排,每一个孩子有自己的评分。 * 现在需要给这些孩子发糖果,规则是如果一个孩子的评分比自己身旁的一个孩子要高, * 那么这个孩子就必须得到比身旁孩子更多的糖果;所有孩子至少要有一个糖果。 * 求解最少需要多少个糖果。 * * 输入输出样例 * 输入是一个数组,表示孩子的评分。输出是最少糖果的数量。 * Input: [1,0,2] * Output: 5 * * 在这个样例中,最少的糖...
18.303571
53
0.523902
[ "vector" ]
5b32b1053fd13090c2d55bb0849d7502609c0574
1,487
cpp
C++
Examples/Cpp/source/POP3/SaveToDiskWithoutParsing.cpp
kashifiqb/Aspose.Email-for-C
96684cb6ed9f4e321a00c74ca219440baaef8ba8
[ "MIT" ]
4
2019-12-01T16:19:12.000Z
2022-03-28T18:51:42.000Z
Examples/Cpp/source/POP3/SaveToDiskWithoutParsing.cpp
kashifiqb/Aspose.Email-for-C
96684cb6ed9f4e321a00c74ca219440baaef8ba8
[ "MIT" ]
1
2022-02-15T01:02:15.000Z
2022-02-15T01:02:15.000Z
Examples/Cpp/source/POP3/SaveToDiskWithoutParsing.cpp
kashifiqb/Aspose.Email-for-C
96684cb6ed9f4e321a00c74ca219440baaef8ba8
[ "MIT" ]
5
2017-09-27T14:43:20.000Z
2021-11-16T06:47:11.000Z
#include <system/string.h> #include <system/shared_ptr.h> #include <system/object.h> #include <system/exceptions.h> #include <system/environment.h> #include <system/console.h> #include <cstdint> #include <Clients/SecurityOptions.h> #include <Clients/Pop3/Pop3Client/Pop3Client.h> #include "Examples.h" using namespace...
30.979167
109
0.701412
[ "object" ]
5b332444f556ae68850b2e8f933551985e1f1714
1,615
cpp
C++
Code/Engine/Resource/Mesh/Loader/IMeshResourceLoader.cpp
WarzesProject/Micro3DRPG
36604d51d5dd640836cad77995abbfecfe4bdccc
[ "MIT" ]
3
2020-05-12T04:36:38.000Z
2021-04-04T07:21:44.000Z
Code/Engine/Resource/Mesh/Loader/IMeshResourceLoader.cpp
WarzesProject/Micro3DRPG
36604d51d5dd640836cad77995abbfecfe4bdccc
[ "MIT" ]
null
null
null
Code/Engine/Resource/Mesh/Loader/IMeshResourceLoader.cpp
WarzesProject/Micro3DRPG
36604d51d5dd640836cad77995abbfecfe4bdccc
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "Resource/Mesh/Loader/IMeshResourceLoader.h" #include "Resource/Mesh/MeshResource.h" #include "Resource/Material/MaterialResourceManager.h" #include "IRendererRuntime.h" //[-------------------------------------------------------] //[ Namespace ]...
33.645833
146
0.545511
[ "mesh" ]
5b369623e44fe1ad7cb868a6646cc9fcd13c17ed
6,646
cpp
C++
compiler/nnc/driver/Driver.cpp
wateret/ONE_private
9789c52633e665d2e10273d88d6f7970faa8aee9
[ "Apache-2.0" ]
null
null
null
compiler/nnc/driver/Driver.cpp
wateret/ONE_private
9789c52633e665d2e10273d88d6f7970faa8aee9
[ "Apache-2.0" ]
null
null
null
compiler/nnc/driver/Driver.cpp
wateret/ONE_private
9789c52633e665d2e10273d88d6f7970faa8aee9
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
30.626728
100
0.724496
[ "shape", "model" ]
5b3eeade0bf8972c75847aec6c325830c642d9e5
3,491
cpp
C++
app/ShortestEdgeCollapse/app/main.cpp
wildmeshing/wildmeshing-toolkit
7f4c60e5a6d366d9c3850b720b42b610e10600c2
[ "MIT" ]
8
2021-12-10T08:26:45.000Z
2022-03-24T00:19:41.000Z
app/ShortestEdgeCollapse/app/main.cpp
wildmeshing/wildmeshing-toolkit
7f4c60e5a6d366d9c3850b720b42b610e10600c2
[ "MIT" ]
86
2021-12-03T01:46:30.000Z
2022-03-23T19:33:17.000Z
app/ShortestEdgeCollapse/app/main.cpp
wildmeshing/wildmeshing-toolkit
7f4c60e5a6d366d9c3850b720b42b610e10600c2
[ "MIT" ]
2
2021-11-26T08:29:38.000Z
2022-01-03T22:10:42.000Z
#include <sec/ShortestEdgeCollapse.h> #include <wmtk/utils/ManifoldUtils.hpp> #include <CLI/CLI.hpp> #include <igl/Timer.h> #include <igl/is_edge_manifold.h> #include <igl/is_vertex_manifold.h> #include <igl/readOFF.h> #include <igl/read_triangle_mesh.h> #include <igl/remove_duplicate_vertices.h> #include <igl/write...
31.45045
92
0.633056
[ "mesh", "vector" ]
5b5233b059c6ce599790fb4df89dedc5ad65dce4
3,013
cpp
C++
src/engine/tile.cpp
flamechain/AwesomeGame
0ae50dd3e5f224b22d94b2095f97444a630a0e04
[ "MIT" ]
1
2022-01-08T22:06:11.000Z
2022-01-08T22:06:11.000Z
src/engine/tile.cpp
flamechain/AwesomeGame
0ae50dd3e5f224b22d94b2095f97444a630a0e04
[ "MIT" ]
null
null
null
src/engine/tile.cpp
flamechain/AwesomeGame
0ae50dd3e5f224b22d94b2095f97444a630a0e04
[ "MIT" ]
null
null
null
#include "tile.h" GAME_START vector<SDL_Rect> InitTiles() { const int kTileCount = 20; vector<SDL_Rect> tiles; for (int i=0; i<kTileCount; i++) { SDL_Rect temp; temp.w = SPRITE_SIZE; temp.h = SPRITE_SIZE; tiles.push_back(temp); } tiles[static_cast<int>(TileType::N...
36.301205
74
0.689014
[ "vector" ]
5b5665d5859f24b5d1138016bc44c3ed8d1051cd
9,407
cpp
C++
test/test_cross.cpp
disenone/AoiTesting
3e72c211ae6e83f9acf2bc480d8e9689dd74d7b6
[ "MIT" ]
null
null
null
test/test_cross.cpp
disenone/AoiTesting
3e72c211ae6e83f9acf2bc480d8e9689dd74d7b6
[ "MIT" ]
null
null
null
test/test_cross.cpp
disenone/AoiTesting
3e72c211ae6e83f9acf2bc480d8e9689dd74d7b6
[ "MIT" ]
null
null
null
// Copyright <disenone> #include <unordered_map> #include <iostream> #include <vector> #include <cmath> #define BOOST_TEST_MODULE test_cross #define BOOST_TEST_DYN_LINK #include <boost/test/included/unit_test.hpp> #include <boost/random/mersenne_twister.hpp> #include <boost/random/uniform_real_distribution.hpp> #incl...
29.305296
96
0.659828
[ "vector" ]
5b623e8abd73ddb0c440f2aed6030fbd4c732c66
2,754
cpp
C++
sort/BucketSort.cpp
kongshuiJ/practice_algorithm
be850ff29eaea1d07d6750d3a4068acd76a4954c
[ "MIT" ]
1
2022-01-13T09:03:13.000Z
2022-01-13T09:03:13.000Z
sort/BucketSort.cpp
kongshuiJ/practice_algorithm
be850ff29eaea1d07d6750d3a4068acd76a4954c
[ "MIT" ]
null
null
null
sort/BucketSort.cpp
kongshuiJ/practice_algorithm
be850ff29eaea1d07d6750d3a4068acd76a4954c
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <random> #include <algorithm> #include <forward_list> struct ListNode { ListNode() : value(0), next_node(nullptr){} ListNode(int tmp_value) : value(tmp_value), next_node(nullptr){} ListNode(struct ListNode *node) { if (node !=...
22.209677
86
0.539579
[ "vector" ]
5b6c1d0e92395ad1fff7927d763a1379ace356d4
9,714
cpp
C++
vk_device_generated_cmds/renderer_vk.cpp
yangtzehina/VulkanStudy
76af12e46ecbba0a2d22812ebec3faa7383b0328
[ "MIT" ]
1
2021-11-11T13:33:54.000Z
2021-11-11T13:33:54.000Z
vk_device_generated_cmds/renderer_vk.cpp
yangtzehina/VulkanStudy
76af12e46ecbba0a2d22812ebec3faa7383b0328
[ "MIT" ]
null
null
null
vk_device_generated_cmds/renderer_vk.cpp
yangtzehina/VulkanStudy
76af12e46ecbba0a2d22812ebec3faa7383b0328
[ "MIT" ]
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 of ...
34.446809
133
0.677888
[ "geometry", "render", "vector" ]
5b6c3a4db0a027edddd103dc937e7ca8d63f0336
7,697
cpp
C++
src/graphics/tcDisplayModes.cpp
dhanin/friendly-bassoon
fafcfd3921805baddc1889dc0ee2fa367ad882f8
[ "BSD-3-Clause" ]
2
2021-11-17T10:59:38.000Z
2021-11-17T10:59:45.000Z
src/graphics/tcDisplayModes.cpp
dhanin/nws
87a3f24a7887d84b9884635064b48d456b4184e2
[ "BSD-3-Clause" ]
null
null
null
src/graphics/tcDisplayModes.cpp
dhanin/nws
87a3f24a7887d84b9884635064b48d456b4184e2
[ "BSD-3-Clause" ]
null
null
null
/** @file tcDisplayModes.cpp */ /* ** Copyright (c) 2014, GCBLUE PROJECT ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ** ** 1. Redistributions of source code must retain the above copyri...
28.93609
146
0.72171
[ "vector" ]
ac8c919b2e661a1f439d56bb68e8458032ca9362
25,389
cpp
C++
Common/interpreter/virtualmachine.cpp
jjuiddong/Common
2518fa05474222f84c474707b4511f190a34f574
[ "MIT" ]
2
2017-11-24T12:34:14.000Z
2021-09-10T02:18:34.000Z
Common/interpreter/virtualmachine.cpp
jjuiddong/Common
2518fa05474222f84c474707b4511f190a34f574
[ "MIT" ]
null
null
null
Common/interpreter/virtualmachine.cpp
jjuiddong/Common
2518fa05474222f84c474707b4511f190a34f574
[ "MIT" ]
6
2017-11-24T12:34:56.000Z
2022-03-22T10:05:45.000Z
#include "stdafx.h" #include "virtualmachine.h" using namespace common; using namespace common::script; cVirtualMachine::cVirtualMachine(const string &name) : m_id(common::GenerateId()) , m_state(eState::Stop) , m_name(name) , m_isCodeTraceLog(false) , m_isDebugging(false) , m_events(128) // maximum queue siz...
22.115854
116
0.640474
[ "vector" ]
ac8d9e4a9d656f43507341d546e6b0d90e95de63
301
cpp
C++
atcoder/abc042/B.cpp
Siddhant-K-code/Competitive-Programing-Submissions
336d73bb1164a85ed247898fa040f44b0dbcc431
[ "Apache-2.0" ]
2
2020-12-24T14:06:07.000Z
2021-02-21T20:07:11.000Z
atcoder/abc042/B.cpp
Siddhant-K-code/Competitive-Programing-Submissions
336d73bb1164a85ed247898fa040f44b0dbcc431
[ "Apache-2.0" ]
null
null
null
atcoder/abc042/B.cpp
Siddhant-K-code/Competitive-Programing-Submissions
336d73bb1164a85ed247898fa040f44b0dbcc431
[ "Apache-2.0" ]
4
2021-04-11T15:11:28.000Z
2021-06-12T18:30:24.000Z
#include <bits/stdc++.h> using namespace std; int main(){ int L, N; cin >> N >> L; vector<string> str(N); for(int i = 0; i < N; i++){ cin >> str.at(i); } sort(str.begin(), str.end()); for(int i = 0; i < N; i++){ cout << str.at(i); } cout << endl; }
18.8125
33
0.44186
[ "vector" ]
ac9dec221286a7a65ed6643105693fd90f8c14e5
2,206
cpp
C++
pybind11/server/server.cpp
DeqiTang/build-test-atomsciflow
6fb65c79e74993e2100fbbca31b910d495076805
[ "MIT" ]
1
2022-01-25T01:44:32.000Z
2022-01-25T01:44:32.000Z
pybind11/server/server.cpp
DeqiTang/build-test-atomsciflow
6fb65c79e74993e2100fbbca31b910d495076805
[ "MIT" ]
null
null
null
pybind11/server/server.cpp
DeqiTang/build-test-atomsciflow
6fb65c79e74993e2100fbbca31b910d495076805
[ "MIT" ]
null
null
null
// @file pybind11/server/server.cpp // @author: DeqiTang // Mail: deqitang@gmail.com // Created Time: Thu 17 Mar 2022 09:02:12 PM CST #include <iostream> #include <pybind11/pybind11.h> #include <pybind11/stl.h> // needed for automatical handling with STL #include "atomsciflow/server/job_scheduler.h" namespace py =...
44.12
108
0.67815
[ "vector" ]
ac9e067a589325a36a0948e887d299fe4d2b37df
8,270
cpp
C++
test/unit/math/rev/core/deep_copy_vars_test.cpp
LaudateCorpus1/math
990a66b3cccd27a5fd48626360bb91093a48278b
[ "BSD-3-Clause" ]
1
2020-06-14T14:33:37.000Z
2020-06-14T14:33:37.000Z
test/unit/math/rev/core/deep_copy_vars_test.cpp
LaudateCorpus1/math
990a66b3cccd27a5fd48626360bb91093a48278b
[ "BSD-3-Clause" ]
2
2019-07-23T12:45:30.000Z
2020-05-01T20:43:03.000Z
test/unit/math/rev/core/deep_copy_vars_test.cpp
LaudateCorpus1/math
990a66b3cccd27a5fd48626360bb91093a48278b
[ "BSD-3-Clause" ]
1
2020-05-10T12:55:07.000Z
2020-05-10T12:55:07.000Z
#include <gtest/gtest.h> #include <stan/math/rev/core.hpp> #include <stan/math.hpp> #include <vector> using stan::math::var; using stan::math::vari; TEST(AgradRev_deep_copy_vars, int_arg) { int arg = 5; decltype(stan::math::deep_copy_vars(arg)) out = stan::math::deep_copy_vars(arg); EXPECT_EQ(&out, &arg...
26.850649
79
0.609311
[ "vector" ]
aca1b4bccfbfb4d9f42a3cf8db248570bb8dccf8
10,664
cpp
C++
VortexBaseRuntime/VortexBase/Router.cpp
d0si/vortex
a97031227d4e867986918d39eeb2d184147cf118
[ "MIT" ]
2
2019-12-27T22:06:25.000Z
2020-01-13T18:43:29.000Z
VortexBaseRuntime/VortexBase/Router.cpp
D0si/Vortex
a97031227d4e867986918d39eeb2d184147cf118
[ "MIT" ]
25
2020-01-29T23:04:23.000Z
2020-04-17T06:40:11.000Z
VortexBaseRuntime/VortexBase/Router.cpp
D0si/Vortex
a97031227d4e867986918d39eeb2d184147cf118
[ "MIT" ]
1
2022-03-09T09:14:47.000Z
2022-03-09T09:14:47.000Z
#include <VortexBase/Router.h> #include <Core/Modules/DependencyInjection.h> using Vortex::Core::RuntimeInterface; namespace VortexBase { Router::Router(RuntimeInterface* runtime) : RouterInterface(runtime) { _router_data.lang = "en"; _router_data.controller = "index"; std::strin...
36.272109
116
0.425075
[ "object", "vector" ]
aca24a36e2ed80b4ae69a9a53b4f730863ba19ec
15,905
cpp
C++
core/BVH.cpp
snumrl/WAD
a217aadcea0a5624b5ba68cbbec70ce2037b3f51
[ "Apache-2.0" ]
null
null
null
core/BVH.cpp
snumrl/WAD
a217aadcea0a5624b5ba68cbbec70ce2037b3f51
[ "Apache-2.0" ]
null
null
null
core/BVH.cpp
snumrl/WAD
a217aadcea0a5624b5ba68cbbec70ce2037b3f51
[ "Apache-2.0" ]
null
null
null
#include "BVH.h" #include <iostream> namespace MASS { Eigen::Matrix3d R_x(double x); Eigen::Matrix3d R_y(double y); Eigen::Matrix3d R_z(double z); Eigen::Matrix3d R_x(double x) { double cosa = cos(x*3.141592/180.0); double sina = sin(x*3.141592/180.0); Eigen::Matrix3d R; R<< 1,0 ,0 , 0,cosa ,-sina, 0,sina...
23.424153
130
0.636907
[ "vector" ]
aca7f8d340b781782018cf9055c4c5e6cd9d7de3
1,151
cpp
C++
plugins/community/repos/AS/src/BlankPanel4.cpp
guillaume-plantevin/VeeSeeVSTRack
76fafc8e721613669d6f5ae82a0f58ce923a91e1
[ "Zlib", "BSD-3-Clause" ]
233
2018-07-02T16:49:36.000Z
2022-02-27T21:45:39.000Z
plugins/community/repos/AS/src/BlankPanel4.cpp
guillaume-plantevin/VeeSeeVSTRack
76fafc8e721613669d6f5ae82a0f58ce923a91e1
[ "Zlib", "BSD-3-Clause" ]
24
2018-07-09T11:32:15.000Z
2022-01-07T01:45:43.000Z
plugins/community/repos/AS/src/BlankPanel4.cpp
guillaume-plantevin/VeeSeeVSTRack
76fafc8e721613669d6f5ae82a0f58ce923a91e1
[ "Zlib", "BSD-3-Clause" ]
24
2018-07-14T21:55:30.000Z
2021-05-04T04:20:34.000Z
#include "AS.hpp" struct BlankPanel4 : Module { enum ParamIds { NUM_PARAMS }; enum InputIds { NUM_INPUTS }; enum OutputIds { NUM_OUTPUTS }; enum LightIds { BLINK_LIGHT, NUM_LIGHTS }; BlankPanel4() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) {} void step() override; }; void BlankPane...
25.021739
123
0.737619
[ "model" ]
acac966cea27f3a9e9044a90160cd6738954fc11
1,485
cpp
C++
aws-cpp-sdk-appmesh/source/model/GatewayRouteHostnameRewrite.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2022-02-12T08:09:30.000Z
2022-02-12T08:09:30.000Z
aws-cpp-sdk-appmesh/source/model/GatewayRouteHostnameRewrite.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2022-01-03T23:59:37.000Z
2022-01-03T23:59:37.000Z
aws-cpp-sdk-appmesh/source/model/GatewayRouteHostnameRewrite.cpp
ravindra-wagh/aws-sdk-cpp
7d5ff01b3c3b872f31ca98fb4ce868cd01e97696
[ "Apache-2.0" ]
1
2021-12-30T04:25:33.000Z
2021-12-30T04:25:33.000Z
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/appmesh/model/GatewayRouteHostnameRewrite.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace...
24.344262
147
0.79596
[ "model" ]
acbd3bc063f7c60e6144fab1853a316b030b6f82
630
hpp
C++
include/object.hpp
important-sample/path-tracer
a52c9e27563ea3d8bcc2b0f4c26bfebb22c9d8c1
[ "MIT" ]
null
null
null
include/object.hpp
important-sample/path-tracer
a52c9e27563ea3d8bcc2b0f4c26bfebb22c9d8c1
[ "MIT" ]
null
null
null
include/object.hpp
important-sample/path-tracer
a52c9e27563ea3d8bcc2b0f4c26bfebb22c9d8c1
[ "MIT" ]
null
null
null
#pragma once #include <memory> class BaseMaterial; class Vector; class RNG; class Ray; class Object { public: std::shared_ptr<BaseMaterial> material; Object(); Object(std::shared_ptr<BaseMaterial> mat): material(mat) {} virtual float intersect(const Ray& ray) const = 0; virtual Vector getNormalAt(const V...
25.2
79
0.714286
[ "object", "vector" ]
acbf38cc77f0d0aa269e2e0858659a9ce06f5c92
10,975
cpp
C++
src/propagators/UnfoundedBasedCheck.cpp
bernardocuteri/wasp
05c8f961776dbdbf7afbf905ee00fc262eba51ad
[ "Apache-2.0" ]
19
2015-12-03T08:53:45.000Z
2022-03-31T02:09:43.000Z
src/propagators/UnfoundedBasedCheck.cpp
bernardocuteri/wasp
05c8f961776dbdbf7afbf905ee00fc262eba51ad
[ "Apache-2.0" ]
80
2017-11-25T07:57:32.000Z
2018-06-10T19:03:30.000Z
src/propagators/UnfoundedBasedCheck.cpp
bernardocuteri/wasp
05c8f961776dbdbf7afbf905ee00fc262eba51ad
[ "Apache-2.0" ]
6
2015-01-15T07:51:48.000Z
2020-06-18T14:47:48.000Z
#include "UnfoundedBasedCheck.h" #include "../Solver.h" #include "../util/WaspTrace.h" #include "../util/WaspOptions.h" #include "../input/Rule.h" UnfoundedBasedCheck::UnfoundedBasedCheck( vector< GUSData* >& gusData_, Solver& s, unsigned numberOfInputAtoms ) : HCComponent( gusData_, s ) { varsAtLev...
33.057229
171
0.573121
[ "vector", "model" ]
acc2b217d272d987e1d9edcb99724d18d4321954
681
cpp
C++
Bridge Graph.cpp
atig05/HACKTOBERFEST-2021
a13b4a72c3c13760643f0f2aa4d5dcd8bf2c79dc
[ "MIT" ]
2
2021-10-02T16:48:56.000Z
2021-10-02T17:14:26.000Z
Bridge Graph.cpp
atig05/HACKTOBERFEST-2021
a13b4a72c3c13760643f0f2aa4d5dcd8bf2c79dc
[ "MIT" ]
3
2021-10-30T17:35:27.000Z
2021-10-31T13:43:04.000Z
Bridge Graph.cpp
atig05/HACKTOBERFEST-2021
a13b4a72c3c13760643f0f2aa4d5dcd8bf2c79dc
[ "MIT" ]
4
2021-10-30T08:55:42.000Z
2021-11-10T04:37:51.000Z
#include <bits/stdc++.h> using namespace std; //creating local elemenst just to perform int tim=0; int u[N], v[N], vis[N]; int travin[N], tout[N], isBridge[M], ancestorleast[N]; vector<pair<int, int> > g[N]; //vertex, index of edge void dfs(int k, int par) { vis[k]=1; travin[k]=++tim; ancestorleast[...
21.28125
67
0.619677
[ "vector" ]
acc5619d9621429a61aeccdfb53e1e882c090964
744
cc
C++
CPP/No396.cc
hxz1998/funny_leetcode
1d2c425af09b57a030fc018ddc1e1a5ffb966cd0
[ "Apache-2.0" ]
null
null
null
CPP/No396.cc
hxz1998/funny_leetcode
1d2c425af09b57a030fc018ddc1e1a5ffb966cd0
[ "Apache-2.0" ]
null
null
null
CPP/No396.cc
hxz1998/funny_leetcode
1d2c425af09b57a030fc018ddc1e1a5ffb966cd0
[ "Apache-2.0" ]
null
null
null
/** * Created by Xiaozhong on 2020/9/12. * Copyright (c) 2020/9/12 Xiaozhong. All rights reserved. */ #include "vector" #include "iostream" using namespace std; class Solution { public: int maxRotateFunction(vector<int> &A) { int n = A.size(); long s = 0; long f = 0; for (int i ...
21.882353
58
0.43414
[ "vector" ]
acc7011cce4b4d203e7af5138fae1be36a06e0d9
13,418
cpp
C++
instrumentation/metrics_discovery/common/internal/md_information.cpp
Mu-L/metrics-discovery
1e560b60a99b866c941c114cd633f224c1614f3b
[ "MIT" ]
null
null
null
instrumentation/metrics_discovery/common/internal/md_information.cpp
Mu-L/metrics-discovery
1e560b60a99b866c941c114cd633f224c1614f3b
[ "MIT" ]
null
null
null
instrumentation/metrics_discovery/common/internal/md_information.cpp
Mu-L/metrics-discovery
1e560b60a99b866c941c114cd633f224c1614f3b
[ "MIT" ]
null
null
null
/*========================== begin_copyright_notice ============================ Copyright (C) 2022 Intel Corporation SPDX-License-Identifier: MIT ============================= end_copyright_notice ===========================*/ // File Name: md_information.h // Abstract: C++ Metrics Discovery internal i...
34.405128
233
0.51893
[ "object" ]
acc773b627272c557167063a93a81982586e3c76
3,655
hpp
C++
include/robotoc/riccati/unconstr_riccati_factorizer.hpp
mcx/robotoc
4a1d2f522ecc8f9aa8dea17330b97148a2085270
[ "BSD-3-Clause" ]
58
2021-11-11T09:47:02.000Z
2022-03-27T20:13:08.000Z
include/robotoc/riccati/unconstr_riccati_factorizer.hpp
mcx/robotoc
4a1d2f522ecc8f9aa8dea17330b97148a2085270
[ "BSD-3-Clause" ]
30
2021-10-30T10:31:38.000Z
2022-03-28T14:12:08.000Z
include/robotoc/riccati/unconstr_riccati_factorizer.hpp
mcx/robotoc
4a1d2f522ecc8f9aa8dea17330b97148a2085270
[ "BSD-3-Clause" ]
12
2021-11-17T10:59:20.000Z
2022-03-18T07:34:02.000Z
#ifndef ROBOTOC_UNCONSTR_RICCATI_FACTORIZER_HPP_ #define ROBOTOC_UNCONSTR_RICCATI_FACTORIZER_HPP_ #include "Eigen/Core" #include "Eigen/LU" #include "robotoc/robot/robot.hpp" #include "robotoc/ocp/split_kkt_matrix.hpp" #include "robotoc/ocp/split_kkt_residual.hpp" #include "robotoc/ocp/split_direction.hpp" #include ...
32.927928
81
0.688372
[ "vector", "model" ]
acd48f3b974748077ec6cefb6b92b3fe8116ba79
696
cc
C++
Algorithms/Implementation/JumpingOnTheCloudsRevisited/JumpingOnTheCloudsRevisited.cc
simba101/hackerrank
09e5a3b62ee4aca5fe0fcc02e674a3f495419ae6
[ "MIT" ]
null
null
null
Algorithms/Implementation/JumpingOnTheCloudsRevisited/JumpingOnTheCloudsRevisited.cc
simba101/hackerrank
09e5a3b62ee4aca5fe0fcc02e674a3f495419ae6
[ "MIT" ]
null
null
null
Algorithms/Implementation/JumpingOnTheCloudsRevisited/JumpingOnTheCloudsRevisited.cc
simba101/hackerrank
09e5a3b62ee4aca5fe0fcc02e674a3f495419ae6
[ "MIT" ]
null
null
null
/* Solution to the "JumpingOnTheCloudsRevisited" challenge by HackerRank: https://www.hackerrank.com/challenges/jumping-on-the-clouds-revisited by simba (szczerbiakadam@gmail.com). */ #include <iostream> #include <vector> int main(int argc, char **argv) { int N, K; std::cin >> N >> K; std::vector<int> clouds; ...
16.186047
70
0.583333
[ "vector" ]
acd531af6768b7a7a9a2b8c4eadaeecb1602dfff
57,875
cc
C++
software/dtb_expert/pixel_dtb.cc
EJDomi/pixel-dtb-firmware-readout-chain-master
8b1380d002c8deec7d109aa6c1eab59ef6474d9d
[ "Unlicense" ]
1
2017-06-20T17:43:38.000Z
2017-06-20T17:43:38.000Z
software/dtb_expert/pixel_dtb.cc
EJDomi/pixel-dtb-firmware-readout-chain-master
8b1380d002c8deec7d109aa6c1eab59ef6474d9d
[ "Unlicense" ]
null
null
null
software/dtb_expert/pixel_dtb.cc
EJDomi/pixel-dtb-firmware-readout-chain-master
8b1380d002c8deec7d109aa6c1eab59ef6474d9d
[ "Unlicense" ]
null
null
null
// pixel_dtb.cpp #include "dtb_hal.h" #include "pixel_dtb.h" #include "dtb_config.h" #include "rpc.h" #include "SRecordReader.h" #include "sys/alt_cache.h" const int delayAdjust = 4; const int deserAdjust = 4; const int daq_read_size = 32768; // read sizedaq_read_size = 32768; // === DTB identification ===========...
23.242972
154
0.657849
[ "vector" ]
acd58e401d607424dc4e47fb6b24daca5cbbe638
3,535
hpp
C++
third-party/casadi/casadi/solvers/linsol_ldl.hpp
dbdxnuliba/mit-biomimetics_Cheetah
f3b0c0f6a3835d33b7f2f345f00640b3fc256388
[ "MIT" ]
8
2020-02-18T09:07:48.000Z
2021-12-25T05:40:02.000Z
third-party/casadi/casadi/solvers/linsol_ldl.hpp
geekfeiw/Cheetah-Software
f3b0c0f6a3835d33b7f2f345f00640b3fc256388
[ "MIT" ]
null
null
null
third-party/casadi/casadi/solvers/linsol_ldl.hpp
geekfeiw/Cheetah-Software
f3b0c0f6a3835d33b7f2f345f00640b3fc256388
[ "MIT" ]
13
2019-08-25T12:32:06.000Z
2022-03-31T02:38:12.000Z
/* * This file is part of CasADi. * * CasADi -- A symbolic framework for dynamic optimization. * Copyright (C) 2010-2014 Joel Andersson, Joris Gillis, Moritz Diehl, * K.U. Leuven. All rights reserved. * Copyright (C) 2011-2014 Greg Horn * * CasADi is free software; you ...
31.5625
94
0.689109
[ "vector" ]
acd5c0a550f36c08f732536083beebd792b48d65
21,611
cpp
C++
rwamapview.cpp
funkerresch/rwacreator
f041028aef0570b90335538b4f41251313f0f198
[ "MIT" ]
null
null
null
rwamapview.cpp
funkerresch/rwacreator
f041028aef0570b90335538b4f41251313f0f198
[ "MIT" ]
null
null
null
rwamapview.cpp
funkerresch/rwacreator
f041028aef0570b90335538b4f41251313f0f198
[ "MIT" ]
null
null
null
#include "rwamapview.h" RwaMapView::RwaMapView(QWidget* parent, RwaScene *scene, QString name) : RwaGraphicsView(parent, scene, name) { mc->setParent(this); qint32 toolbarFlags = ( RWATOOLBAR_MAPEDITTOOLS | RWATOOLBAR_SCENEMENU | RWATOOLBAR_SIMULATORTOOLS ...
29.164642
125
0.617001
[ "vector" ]
acd820681f6779ce8cc66939685bae15fef8fff1
4,034
cpp
C++
example/src/ofApp.cpp
jonasfehr/ofxRayComposer
7ac7cd03cd5030bd5e0c9001969fddbf4223d75d
[ "MIT" ]
5
2017-04-04T21:44:39.000Z
2021-08-04T20:24:04.000Z
example/src/ofApp.cpp
jonasfehr/ofxRayComposer
7ac7cd03cd5030bd5e0c9001969fddbf4223d75d
[ "MIT" ]
null
null
null
example/src/ofApp.cpp
jonasfehr/ofxRayComposer
7ac7cd03cd5030bd5e0c9001969fddbf4223d75d
[ "MIT" ]
1
2021-08-04T20:24:05.000Z
2021-08-04T20:24:05.000Z
#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ ofBackground(0); rayComposer.setup(); rayComposer.setPPS(30000); } //-------------------------------------------------------------- void ofApp::update(){ } //----------------------------------...
38.056604
136
0.554536
[ "transform" ]
ace85d58432a2b7b9726e9a32680cc4154d899ad
13,231
cpp
C++
UtinniCore/swg/ui/imgui_impl.cpp
ModTheGalaxy/Utinni
6fc118d7d80667a6e12864fc5fffe5782eaacd58
[ "MIT" ]
2
2021-03-29T20:25:05.000Z
2021-03-29T20:25:54.000Z
UtinniCore/swg/ui/imgui_impl.cpp
ModTheGalaxy/Utinni
6fc118d7d80667a6e12864fc5fffe5782eaacd58
[ "MIT" ]
null
null
null
UtinniCore/swg/ui/imgui_impl.cpp
ModTheGalaxy/Utinni
6fc118d7d80667a6e12864fc5fffe5782eaacd58
[ "MIT" ]
null
null
null
/** * MIT License * * Copyright (c) 2020 Philip Klatt * * 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, mo...
26.783401
198
0.693069
[ "render", "object", "vector", "transform" ]
acea3d7a285a709362110763cc876ff59a777d6a
20,839
cpp
C++
couples/ofxKinect/ofxKinectAutoCalibrator.cpp
MiliGaricoits/ofxNIMPComposer
7eb5ef7054f472066c349dc995d3d30802b33d7e
[ "MIT" ]
20
2015-07-12T08:12:16.000Z
2021-12-16T16:02:26.000Z
couples/ofxKinect/ofxKinectAutoCalibrator.cpp
MiliGaricoits/ofxNIMPComposer
7eb5ef7054f472066c349dc995d3d30802b33d7e
[ "MIT" ]
2
2016-05-28T15:50:44.000Z
2018-01-08T05:58:47.000Z
couples/ofxKinect/ofxKinectAutoCalibrator.cpp
MiliGaricoits/ofxNIMPComposer
7eb5ef7054f472066c349dc995d3d30802b33d7e
[ "MIT" ]
6
2015-06-08T00:15:45.000Z
2017-05-18T04:49:03.000Z
// // ofxKinectAutoCalibrator.cpp // mdt-Core // // Created by Patricio González Vivo on 3/28/12. // Copyright (c) 2012 PatricioGonzalezVivo.com. All rights reserved. // #include "ofxKinectAutoCalibrator.h" ofxKinectAutoCalibrator::ofxKinectAutoCalibrator(){ nStep = 0; } void ofxKinectAutoCalibrator::init(of...
30.333333
162
0.560727
[ "geometry", "vector", "solid" ]
aced4794e22a92344f6dc74b24abecbe8ff4e66c
1,630
hpp
C++
include/di/systems/display/message_box.hpp
acdemiralp/nano_engine
64069cf300af574efb0c979dbc97eb0a03cdc7a3
[ "MIT" ]
4
2021-02-24T14:13:47.000Z
2022-02-06T12:02:24.000Z
include/di/systems/display/message_box.hpp
acdemiralp/nano_engine
64069cf300af574efb0c979dbc97eb0a03cdc7a3
[ "MIT" ]
1
2018-01-06T11:52:16.000Z
2018-01-06T11:52:16.000Z
include/di/systems/display/message_box.hpp
acdemiralp/nano_engine
64069cf300af574efb0c979dbc97eb0a03cdc7a3
[ "MIT" ]
2
2018-02-11T14:51:17.000Z
2021-02-24T14:13:49.000Z
#ifndef DI_SYSTEMS_DISPLAY_MESSAGE_BOX_HPP_ #define DI_SYSTEMS_DISPLAY_MESSAGE_BOX_HPP_ #include <cstdint> #include <string> #include <vector> #include <SDL2/SDL_messagebox.h> #include <di/systems/display/message_box_color_scheme.hpp> #include <di/systems/display/message_box_level.hpp> namespace di { namespace mess...
28.596491
103
0.644785
[ "vector" ]
acee4be524bf00cf1c9b269154f383f63ee4fbf7
3,814
cpp
C++
src/laser_detection/src/cost_map_points.cpp
DLSHhaotian/RMAI2020-Planning
adfa76409acfa68e844995c708d1edc080eb180f
[ "MIT" ]
63
2020-09-23T14:31:33.000Z
2022-03-16T05:51:31.000Z
src/laser_detection/src/cost_map_points.cpp
DRL-CASIA/RoboRTS-Planning
3f5792cb091e13555fa23f9cbfdad4d11e60df82
[ "MIT" ]
6
2020-12-04T06:10:24.000Z
2021-06-01T08:37:05.000Z
src/laser_detection/src/cost_map_points.cpp
DRL-CASIA/RoboRTS-Planning
3f5792cb091e13555fa23f9cbfdad4d11e60df82
[ "MIT" ]
22
2020-09-23T11:31:58.000Z
2022-03-16T05:52:00.000Z
#include "laser_detection/cost_map.h" void CostMapCV::Map2World(unsigned int mx, unsigned int my, float &wx, float &wy){ wx = origin_x_ + (mx + 0.5) * resolution_; wy = origin_y_ + (my + 0.5) * resolution_; } bool CostMapCV::World2Map(float wx, float wy, unsigned int &mx, unsigned int &my){ if (wx < origin_x_ || ...
32.87931
131
0.620608
[ "vector" ]
acf4aa4ab47186fcc0eddca7aa6c4675390924e6
7,472
cpp
C++
examples/dump/memory.cpp
CvX/hadesmem
d2c5164cc753dac37879ac8079f2ae23f2b8edb5
[ "MIT" ]
24
2018-08-18T18:05:37.000Z
2021-09-28T00:26:35.000Z
examples/dump/memory.cpp
CvX/hadesmem
d2c5164cc753dac37879ac8079f2ae23f2b8edb5
[ "MIT" ]
null
null
null
examples/dump/memory.cpp
CvX/hadesmem
d2c5164cc753dac37879ac8079f2ae23f2b8edb5
[ "MIT" ]
9
2018-04-16T09:53:09.000Z
2021-02-26T05:04:49.000Z
// Copyright (C) 2010-2014 Joshua Boyce. // See the file COPYING for copying permission. #include "headers.hpp" #include <cstdint> #include <fstream> #include <iostream> #include <limits> #include <hadesmem/config.hpp> #include <hadesmem/detail/str_conv.hpp> #include <hadesmem/pelib/dos_header.hpp> #inc...
35.245283
80
0.589668
[ "vector" ]
acfe410ce7d36fe6f9baff751758ef50517046de
1,033
cpp
C++
Dev/asd_cpp/engine/ObjectSystem/3D/asd.MassModelObject3D.cpp
GCLemon/Altseed
b525740d64001aaed673552eb4ba3e98a321fcdf
[ "FTL" ]
37
2015-07-12T14:21:03.000Z
2020-10-17T03:08:17.000Z
Dev/asd_cpp/engine/ObjectSystem/3D/asd.MassModelObject3D.cpp
GCLemon/Altseed
b525740d64001aaed673552eb4ba3e98a321fcdf
[ "FTL" ]
91
2015-06-14T10:47:22.000Z
2020-06-29T18:05:21.000Z
Dev/asd_cpp/engine/ObjectSystem/3D/asd.MassModelObject3D.cpp
GCLemon/Altseed
b525740d64001aaed673552eb4ba3e98a321fcdf
[ "FTL" ]
14
2015-07-13T04:15:20.000Z
2021-09-30T01:34:51.000Z
#include "asd.MassModelObject3D.h" namespace asd { extern ObjectSystemFactory* g_objectSystemFactory; MassModelObject3D::MassModelObject3D() { m_coreObject = CreateSharedPtrWithReleaseDLL(g_objectSystemFactory->CreateCoreMassModelObject3D()); m_commonObject = m_coreObject.get(); } MassModelObject3D::~MassM...
21.978723
101
0.775411
[ "model" ]
4a0c2659b15fa606e9952c7d162a410df0f4ca2b
2,061
cpp
C++
code/554.cpp
Nightwish-cn/my_leetcode
40f206e346f3f734fb28f52b9cde0e0041436973
[ "MIT" ]
23
2020-03-30T05:44:56.000Z
2021-09-04T16:00:57.000Z
code/554.cpp
Nightwish-cn/my_leetcode
40f206e346f3f734fb28f52b9cde0e0041436973
[ "MIT" ]
1
2020-05-10T15:04:05.000Z
2020-06-14T01:21:44.000Z
code/554.cpp
Nightwish-cn/my_leetcode
40f206e346f3f734fb28f52b9cde0e0041436973
[ "MIT" ]
6
2020-03-30T05:45:04.000Z
2020-08-13T10:01:39.000Z
#include <bits/stdc++.h> #define INF 2000000000 using namespace std; typedef long long ll; int read(){ int f = 1, x = 0; char c = getchar(); while(c < '0' || c > '9'){if(c == '-') f = -f; c = getchar();} while(c >= '0' && c <= '9')x = x * 10 + c - '0', c = getchar(); return f * x; } struct TreeNod...
27.118421
86
0.464823
[ "vector" ]
4a0f023e9317c8b66a87b95700748860bae0aebc
1,024
cpp
C++
MFC++/SourceCodes/Chapter6/StringManipulationOp.cpp
CoodingPenguin/StudyMaterial
b6d8084fc38673ad6ffb54bc0bc60b2471168810
[ "MIT" ]
9
2019-02-21T20:20:25.000Z
2020-04-14T15:18:59.000Z
MFC++/SourceCodes/Chapter6/StringManipulationOp.cpp
CoodingPenguin/StudyMaterial
b6d8084fc38673ad6ffb54bc0bc60b2471168810
[ "MIT" ]
null
null
null
MFC++/SourceCodes/Chapter6/StringManipulationOp.cpp
CoodingPenguin/StudyMaterial
b6d8084fc38673ad6ffb54bc0bc60b2471168810
[ "MIT" ]
2
2019-07-09T02:01:37.000Z
2020-01-07T18:45:25.000Z
/* Written by @nErumin (Github) * 2016-11-29 * * Topic - string의 내용을 더 다양하게 조작해보자. */ #include <iostream> #include <string> #include <vector> #include <forward_list> #include <list> #include <deque> #include <array> using namespace std; int main() { string str; string anotherStr; auto startPos = 0; auto len...
20.897959
52
0.675781
[ "vector" ]
4a0f4d857f15d854462ed31fcd685349c3c248b4
11,996
cpp
C++
source/PostVoxelizerState.cpp
RobertBeckebans/CVCT_Vulkan
edd8e9865f126ffbdf474a6e419d46efc4c7f267
[ "MIT" ]
null
null
null
source/PostVoxelizerState.cpp
RobertBeckebans/CVCT_Vulkan
edd8e9865f126ffbdf474a6e419d46efc4c7f267
[ "MIT" ]
null
null
null
source/PostVoxelizerState.cpp
RobertBeckebans/CVCT_Vulkan
edd8e9865f126ffbdf474a6e419d46efc4c7f267
[ "MIT" ]
1
2021-04-09T09:20:20.000Z
2021-04-09T09:20:20.000Z
#include "PipelineStates.h" #include <glm/gtc/matrix_transform.hpp> #include "VCTPipelineDefines.h" #include "SwapChain.h" #include "VulkanCore.h" #include "Shader.h" #include "DataTypes.h" #include "AnisotropicVoxelTexture.h" #include "Camera.h" struct PushConstantComp { glm::vec3 gridres; // Resolution uint32_t...
47.984
186
0.646049
[ "3d" ]
4a123676246797a93050eecd1c6e32d8dc50d464
4,462
hpp
C++
boost/monotonic/forward_declarations.hpp
cschladetsch/Monotonic
ec37c3743862475719fdc8d2c3820fc0ab43c55a
[ "BSL-1.0" ]
12
2016-05-22T21:14:27.000Z
2021-08-05T21:28:17.000Z
boost/monotonic/forward_declarations.hpp
cschladetsch/Monotonic
ec37c3743862475719fdc8d2c3820fc0ab43c55a
[ "BSL-1.0" ]
5
2017-02-09T14:24:37.000Z
2020-10-31T14:38:45.000Z
boost/monotonic/forward_declarations.hpp
cschladetsch/Monotonic
ec37c3743862475719fdc8d2c3820fc0ab43c55a
[ "BSL-1.0" ]
1
2022-02-02T20:21:12.000Z
2022-02-02T20:21:12.000Z
// Copyright (C) 2009-2020 Christian@Schladetsch.com // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_MONOTONIC_FORWARD_DECLARATIONS_HPP #define BOOST_MONOTONIC_FORWARD_DECLARATIONS_HPP #include ...
36.57377
105
0.665397
[ "object", "vector" ]
4a205073da8084acd269764fbefd944e966e1632
4,534
cc
C++
orttraining/orttraining/test/training_ops/cuda/scale_test.cc
dennyac/onnxruntime
d5175795d2b7f2db18b0390f394a49238f814668
[ "MIT" ]
6,036
2019-05-07T06:03:57.000Z
2022-03-31T17:59:54.000Z
orttraining/orttraining/test/training_ops/cuda/scale_test.cc
dennyac/onnxruntime
d5175795d2b7f2db18b0390f394a49238f814668
[ "MIT" ]
5,730
2019-05-06T23:04:55.000Z
2022-03-31T23:55:56.000Z
orttraining/orttraining/test/training_ops/cuda/scale_test.cc
dennyac/onnxruntime
d5175795d2b7f2db18b0390f394a49238f814668
[ "MIT" ]
1,566
2019-05-07T01:30:07.000Z
2022-03-31T17:06:50.000Z
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "test/common/tensor_op_test_utils.h" #include "test/providers/provider_test_utils.h" namespace onnxruntime { namespace test { struct ScaleInputOutput { ScaleInputOutput() { input_half.resize(input_float.siz...
37.471074
110
0.720115
[ "vector" ]
4a247321116a507d39e356bcabef6aa35e22dd3b
22,721
cpp
C++
sis/src/v1/SisClient.cpp
ChenwxJay/huaweicloud-sdk-cpp-v3
f821ec6d269b50203e0c1638571ee1349c503c41
[ "Apache-2.0" ]
1
2021-11-30T09:31:16.000Z
2021-11-30T09:31:16.000Z
sis/src/v1/SisClient.cpp
ChenwxJay/huaweicloud-sdk-cpp-v3
f821ec6d269b50203e0c1638571ee1349c503c41
[ "Apache-2.0" ]
null
null
null
sis/src/v1/SisClient.cpp
ChenwxJay/huaweicloud-sdk-cpp-v3
f821ec6d269b50203e0c1638571ee1349c503c41
[ "Apache-2.0" ]
null
null
null
#include <huaweicloud/sis/v1/SisClient.h> #include <huaweicloud/core/utils/MultipartFormData.h> #include <unordered_set> #include <boost/algorithm/string/replace.hpp> template <typename T> std::string toString(const T value) { std::ostringstream out; out << std::setprecision(std::numeric_limits<T>::digits10)...
40.718638
153
0.731922
[ "model" ]
4a27137f39d54a14a67fc708afc952fd542adc70
60,911
cpp
C++
tk_textiler.cpp
joeld42/tk_textile
c971f39e8054d0504d43c1c5edd7a662fa5c544f
[ "MIT" ]
null
null
null
tk_textiler.cpp
joeld42/tk_textile
c971f39e8054d0504d43c1c5edd7a662fa5c544f
[ "MIT" ]
null
null
null
tk_textiler.cpp
joeld42/tk_textile
c971f39e8054d0504d43c1c5edd7a662fa5c544f
[ "MIT" ]
null
null
null
// // tk_textile.cpp // tk_textile // // Created by Joel Davis on 2/27/16. // Copyright © 2016 Joel Davis. All rights reserved. // #include <assert.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <limits.h> #include "tk_textiler.h" #include "stb_image.h" #include "stb_image_write.h" #includ...
33.230224
132
0.523748
[ "mesh" ]
4a3628fc038e6c51ff4264db7d4a40eb53fe1a02
1,296
cc
C++
apps/run.cc
CS126SP20/final-project-ashleyeah
3df8b0515d0648f3b76bb0a4d196ccc511ebad94
[ "MIT" ]
null
null
null
apps/run.cc
CS126SP20/final-project-ashleyeah
3df8b0515d0648f3b76bb0a4d196ccc511ebad94
[ "MIT" ]
null
null
null
apps/run.cc
CS126SP20/final-project-ashleyeah
3df8b0515d0648f3b76bb0a4d196ccc511ebad94
[ "MIT" ]
null
null
null
// Copyright (c) 2020 Ashley Yeah. All rights reserved. #include <cinder/app/App.h> #include <cinder/app/RendererGl.h> #include <gflags/gflags.h> #include "pool_app.h" using cinder::app::App; using cinder::app::RendererGl; using std::string; namespace poolapp { const int kSamples = 8; const int kWidth = 1800; cons...
24.45283
69
0.692901
[ "vector" ]
4a3a19fc8ce35fdec8aca05b4f08dd628b91b6e9
2,401
cpp
C++
QPropertyTree-example/ExampleCustomRows.cpp
koalefant/yasli
2096ed8a59ae9c7da467d8de8f1eb811a989dc39
[ "MIT" ]
8
2021-07-08T18:06:33.000Z
2022-01-17T18:29:57.000Z
QPropertyTree-example/ExampleCustomRows.cpp
koalefant/yasli
2096ed8a59ae9c7da467d8de8f1eb811a989dc39
[ "MIT" ]
null
null
null
QPropertyTree-example/ExampleCustomRows.cpp
koalefant/yasli
2096ed8a59ae9c7da467d8de8f1eb811a989dc39
[ "MIT" ]
1
2021-12-31T15:52:56.000Z
2021-12-31T15:52:56.000Z
#include <string> #include <vector> using std::vector; #include "QPropertyTree/QPropertyTree.h" #include "PropertyTree/Color.h" #include "yasli/decorators/IconXPM.h" #include "yasli/decorators/HorizontalLine.h" #include "yasli/decorators/BitFlags.h" #include "yasli/decorators/Button.h" #include "yasli/deco...
26.677778
109
0.681383
[ "vector" ]
6652634da171c77e77e51c81c192d20325c06c6a
54,619
cpp
C++
arangod/V8Server/v8-user-structures.cpp
morsdatum/ArangoDB
9cfc6d5cd50b8f451ebdedd77e2c5257fa72a573
[ "Apache-2.0" ]
null
null
null
arangod/V8Server/v8-user-structures.cpp
morsdatum/ArangoDB
9cfc6d5cd50b8f451ebdedd77e2c5257fa72a573
[ "Apache-2.0" ]
null
null
null
arangod/V8Server/v8-user-structures.cpp
morsdatum/ArangoDB
9cfc6d5cd50b8f451ebdedd77e2c5257fa72a573
[ "Apache-2.0" ]
null
null
null
//////////////////////////////////////////////////////////////////////////////// /// @brief V8 user data structures /// /// @file /// /// DISCLAIMER /// /// Copyright 2014 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the ...
29.879103
128
0.560263
[ "object", "vector" ]
6655448f492655f643b508c5c17bc0cbbb986b8c
4,418
hpp
C++
include/GlobalNamespace/OVRNetwork_OVRNetworkTcpServer.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
include/GlobalNamespace/OVRNetwork_OVRNetworkTcpServer.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
include/GlobalNamespace/OVRNetwork_OVRNetworkTcpServer.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" // Including type: OVRNetwork #include "GlobalNamespace/OVRNetwork.hpp" #include "extern...
47
286
0.713445
[ "object" ]
6657389c795b916e3cf1433b4b5d963ed3e6c8db
50
hpp
C++
src/boost_hana_ext_boost_fusion_vector.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
10
2018-03-17T00:58:42.000Z
2021-07-06T02:48:49.000Z
src/boost_hana_ext_boost_fusion_vector.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
2
2021-03-26T15:17:35.000Z
2021-05-20T23:55:08.000Z
src/boost_hana_ext_boost_fusion_vector.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
4
2019-05-28T21:06:37.000Z
2021-07-06T03:06:52.000Z
#include <boost/hana/ext/boost/fusion/vector.hpp>
25
49
0.78
[ "vector" ]
66667fd39f8932ea7c410741acb78f229ca6870f
6,072
cpp
C++
materialsystem/stdshaders/unlitworld_screensample.cpp
DannyParker0001/Kisak-Strike
99ed85927336fe3aff2efd9b9382b2b32eb1d05d
[ "Unlicense" ]
252
2020-12-16T15:34:43.000Z
2022-03-31T23:21:37.000Z
cstrike15_src/materialsystem/stdshaders/unlitworld_screensample.cpp
bahadiraraz/Counter-Strike-Global-Offensive
9a0534100cb98ffa1cf0c32e138f0e7971e910d3
[ "MIT" ]
23
2020-12-20T18:02:54.000Z
2022-03-28T16:58:32.000Z
cstrike15_src/materialsystem/stdshaders/unlitworld_screensample.cpp
bahadiraraz/Counter-Strike-Global-Offensive
9a0534100cb98ffa1cf0c32e138f0e7971e910d3
[ "MIT" ]
42
2020-12-19T04:32:33.000Z
2022-03-30T06:00:28.000Z
//========= Copyright (c) Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ //=============================================================================// #include "BaseVSShader.h" #include "mathlib/vmatrix.h" #include "common_hlsl_cpp_consts.h" // hack hack hack! #include ...
31.46114
157
0.730567
[ "render" ]
666b2c463d577a95c8c08e2bd5947412331bc5aa
9,077
cpp
C++
tests/src/printf/hipPrintfManyWaves.cpp
krishoza/HIP
f83315ac3b62801c61098e7f2604ce07e79b633c
[ "MIT" ]
1
2021-06-19T18:15:44.000Z
2021-06-19T18:15:44.000Z
tests/src/printf/hipPrintfManyWaves.cpp
krishoza/HIP
f83315ac3b62801c61098e7f2604ce07e79b633c
[ "MIT" ]
null
null
null
tests/src/printf/hipPrintfManyWaves.cpp
krishoza/HIP
f83315ac3b62801c61098e7f2604ce07e79b633c
[ "MIT" ]
null
null
null
/* Copyright (c) 2020 - present Advanced Micro Devices, Inc. All rights reserved. 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 us...
30.056291
92
0.67302
[ "vector" ]
666c7707abd13674c977e0dd821369eae63e9e69
10,136
cc
C++
src/moorapi.cc
CHEN-Lin/OpenMoor
f463f586487b9023e7f3678c9d851000558b14d7
[ "Apache-2.0" ]
7
2019-02-10T07:03:45.000Z
2022-03-04T16:09:38.000Z
src/moorapi.cc
CHEN-Lin/OpenMoor
f463f586487b9023e7f3678c9d851000558b14d7
[ "Apache-2.0" ]
null
null
null
src/moorapi.cc
CHEN-Lin/OpenMoor
f463f586487b9023e7f3678c9d851000558b14d7
[ "Apache-2.0" ]
4
2018-03-01T14:34:52.000Z
2018-06-14T12:13:55.000Z
// This file is part of OpenMOOR, an Open-source simulation program for MOORing // systems in offshore renewable energy applications. // // Copyright 2018 Lin Chen <l.chen.tj@gmail.com> & Biswajit Basu <basub@tcd.ie> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file exce...
33.232787
80
0.505229
[ "vector" ]
667098ee5c8a6fa79a6cc13acb95459789f60a2e
11,196
hpp
C++
include/amtrs/.inc/node-scheduler_component.hpp
isaponsoft/libamtrs
5adf821ee15592fc3280985658ca8a4b175ffcaa
[ "BSD-2-Clause-FreeBSD" ]
1
2019-12-10T02:12:49.000Z
2019-12-10T02:12:49.000Z
include/amtrs/.inc/node-scheduler_component.hpp
isaponsoft/libamtrs
5adf821ee15592fc3280985658ca8a4b175ffcaa
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
include/amtrs/.inc/node-scheduler_component.hpp
isaponsoft/libamtrs
5adf821ee15592fc3280985658ca8a4b175ffcaa
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
/* Copyright (c) 2019, isaponsoft (Isao Shibuya) All rights reserved. * * Use of this source code is governed by a BSD-style license that * * can be found in the LICENSE file. */ #ifndef __libamtrs__node__component__scheduler_component__hpp #define __libamtrs__node__component__sch...
23.872068
103
0.577438
[ "vector" ]
6675b3661e58da74dbfdccc13fa8f01c75480ebc
12,645
cpp
C++
DemoGame/Models/CaveModelPart1.cpp
WizardIke/SpectralEngine
8a5e9fb1542220de063ec59fcf34f40a38308fbc
[ "MIT" ]
3
2018-10-03T21:49:21.000Z
2019-08-16T03:22:32.000Z
DemoGame/Models/CaveModelPart1.cpp
WizardIke/SpectralEngine
8a5e9fb1542220de063ec59fcf34f40a38308fbc
[ "MIT" ]
38
2018-08-28T23:08:09.000Z
2019-10-11T10:12:59.000Z
DemoGame/Models/CaveModelPart1.cpp
WizardIke/SpectralEngine
8a5e9fb1542220de063ec59fcf34f40a38308fbc
[ "MIT" ]
1
2020-08-16T01:22:43.000Z
2020-08-16T01:22:43.000Z
#include "CaveModelPart1.h" #include <Mesh.h> #include <EulerRotation.h> #include <Quaternion.h> #include <Frustum.h> void CaveModelPart1::setConstantBuffers(D3D12_GPU_VIRTUAL_ADDRESS& constantBufferGpuAddress, unsigned char*& constantBufferCpuAddress) { gpuBuffer = constantBufferGpuAddress; constantBufferGpuAddress...
69.098361
228
0.796995
[ "mesh", "render" ]
6676745e23cb8ac77b79e1529408b296cb76371f
8,870
cpp
C++
windows/pw6e.official/CPlusPlus/Chapter17/FingerPaint/FingerPaint/MainPage.Share.cpp
nnaabbcc/exercise
255fd32b39473b3d0e7702d4b1a8a97bed2a68f8
[ "MIT" ]
1
2016-11-23T08:18:08.000Z
2016-11-23T08:18:08.000Z
windows/pw6e.official/CPlusPlus/Chapter17/FingerPaint/FingerPaint/MainPage.Share.cpp
nnaabbcc/exercise
255fd32b39473b3d0e7702d4b1a8a97bed2a68f8
[ "MIT" ]
null
null
null
windows/pw6e.official/CPlusPlus/Chapter17/FingerPaint/FingerPaint/MainPage.Share.cpp
nnaabbcc/exercise
255fd32b39473b3d0e7702d4b1a8a97bed2a68f8
[ "MIT" ]
1
2016-11-23T08:17:34.000Z
2016-11-23T08:17:34.000Z
#include "pch.h" #include "MainPage.xaml.h" using namespace FingerPaint; using namespace Concurrency; using namespace Platform; using namespace Windows::ApplicationModel::DataTransfer; using namespace Windows::Foundation; using namespace Windows::Graphics::Imaging; using namespace Windows::Storage::Streams;...
42.440191
138
0.616911
[ "object" ]
667bfb99c9a0786308a53ece88485beb757eea01
14,367
cpp
C++
src/cl.cpp
alexd2580/hBalls
1b29c630968d9a9bcfecbb1fc90ee30cb016a411
[ "MIT" ]
1
2015-12-31T13:48:18.000Z
2015-12-31T13:48:18.000Z
src/cl.cpp
alexd2580/hBalls
1b29c630968d9a9bcfecbb1fc90ee30cb016a411
[ "MIT" ]
null
null
null
src/cl.cpp
alexd2580/hBalls
1b29c630968d9a9bcfecbb1fc90ee30cb016a411
[ "MIT" ]
null
null
null
#include "cl.hpp" #include <iostream> #include <cstdlib> #include <fstream> using namespace std; bool load_file(string const& name, string& content) { // We create the file object, saying I want to read it fstream file(name.c_str(), fstream::in); // We verify if the file was successfully opened if(file.is_o...
29.561728
80
0.626784
[ "object", "vector" ]
6681d0e0ec8b1b55117827f1952f17cf7bfc7780
5,995
cpp
C++
src-cpp/server42/src/PacketGenerator.cpp
mfyuce/open-kilda
44f0580c028b8b56aa59536e62003bc416f07180
[ "Apache-2.0" ]
70
2017-10-10T12:59:21.000Z
2022-03-16T13:19:34.000Z
src-cpp/server42/src/PacketGenerator.cpp
NandanBharadwaj/open-kilda
912239cb958a78cc6927103f0aced3ff02ba9624
[ "Apache-2.0" ]
2,433
2017-10-09T08:22:14.000Z
2022-03-31T07:57:24.000Z
src-cpp/server42/src/PacketGenerator.cpp
NandanBharadwaj/open-kilda
912239cb958a78cc6927103f0aced3ff02ba9624
[ "Apache-2.0" ]
65
2017-10-09T07:53:37.000Z
2022-03-16T12:35:18.000Z
#include "PacketGenerator.h" #include <boost/log/trivial.hpp> #include <pcapplusplus/EthLayer.h> #include <pcapplusplus/VlanLayer.h> #include <pcapplusplus/UdpLayer.h> #include <pcapplusplus/IPv4Layer.h> #include <pcapplusplus/PayloadLayer.h> #include "Payload.h" #include "Config.h" namespace org::openkilda { ...
37.704403
110
0.621018
[ "vector" ]
668595f49223a17fdc76845b413d138d0fe89d44
88,848
cpp
C++
testing_source/testing_harness_new_write.cpp
mlawsonca/empress
aa3eb8544f2e01fcbd77749f7dce1b95fbfa11e9
[ "MIT" ]
5
2018-11-28T19:38:23.000Z
2021-03-15T20:44:07.000Z
testing_source/testing_harness_new_write.cpp
mlawsonca/empress
aa3eb8544f2e01fcbd77749f7dce1b95fbfa11e9
[ "MIT" ]
null
null
null
testing_source/testing_harness_new_write.cpp
mlawsonca/empress
aa3eb8544f2e01fcbd77749f7dce1b95fbfa11e9
[ "MIT" ]
1
2018-07-18T15:22:36.000Z
2018-07-18T15:22:36.000Z
/* * Copyright 2018 National Technology & Engineering Solutions of * Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, * the U.S. Government retains certain rights in this software. * * The MIT License (MIT) * * Copyright (c) 2018 Sandia Corporation * * Permission is hereby granted, ...
42.715385
241
0.618866
[ "object", "vector" ]
669fa705a84c9f2a2b736bd64ac8edb130f92099
6,767
cc
C++
mindspore/ccsrc/plugin/device/cpu/kernel/nth_element_cpu_kernel.cc
httpsgithu/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
1
2022-02-23T09:13:43.000Z
2022-02-23T09:13:43.000Z
mindspore/ccsrc/plugin/device/cpu/kernel/nth_element_cpu_kernel.cc
949144093/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
null
null
null
mindspore/ccsrc/plugin/device/cpu/kernel/nth_element_cpu_kernel.cc
949144093/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
null
null
null
/** * Copyright 2022 Huawei Technologies Co., Ltd * * 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...
44.228758
116
0.699719
[ "shape", "vector" ]
66a747acbd414b6272749e86a2ab525286afcca6
4,879
cpp
C++
modules/sensors/dynamic_sensor/test/HidRawSensorTest.cpp
lighthouse-os/hardware_libhardware
c6fa046a69d9b1adf474cf5de58318b677801e49
[ "Apache-2.0" ]
null
null
null
modules/sensors/dynamic_sensor/test/HidRawSensorTest.cpp
lighthouse-os/hardware_libhardware
c6fa046a69d9b1adf474cf5de58318b677801e49
[ "Apache-2.0" ]
null
null
null
modules/sensors/dynamic_sensor/test/HidRawSensorTest.cpp
lighthouse-os/hardware_libhardware
c6fa046a69d9b1adf474cf5de58318b677801e49
[ "Apache-2.0" ]
null
null
null
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
29.932515
98
0.564255
[ "vector" ]
66aff0092ebddee437a0c32f5a89039f66664b0f
5,745
cpp
C++
flare/Pipeline.cpp
freakMeduza/flare
32003c1be20e8876948a4c97d9715059f1d32e5c
[ "MIT" ]
2
2022-01-02T15:45:36.000Z
2022-01-12T15:31:24.000Z
flare/Pipeline.cpp
freakMeduza/flare
32003c1be20e8876948a4c97d9715059f1d32e5c
[ "MIT" ]
null
null
null
flare/Pipeline.cpp
freakMeduza/flare
32003c1be20e8876948a4c97d9715059f1d32e5c
[ "MIT" ]
null
null
null
#include "Pipeline.hpp" #include "Device.hpp" #include "Shader.hpp" #include "Log.hpp" namespace { static constexpr const char* SHADER_ENTRY_POINT = "main"; } namespace fve { Pipeline::Pipeline(Device& device, const std::vector<std::shared_ptr<Shader>>& shaders, const Settings& settings) { std::vector<vk::Pipeli...
50.840708
116
0.836902
[ "vector" ]
66b77411e741de71307d29dbb44fb415979a3849
35,152
cpp
C++
perception_utils/src/vfh/vfh_pose_estimator.cpp
Tacha-S/perception
aefbb5612c84b46a745c7db4fe860a2456d6e7ef
[ "BSD-3-Clause" ]
17
2020-07-08T06:38:22.000Z
2021-09-20T01:18:12.000Z
perception_utils/src/vfh/vfh_pose_estimator.cpp
Tacha-S/perception
aefbb5612c84b46a745c7db4fe860a2456d6e7ef
[ "BSD-3-Clause" ]
116
2019-03-10T23:02:44.000Z
2021-07-22T15:28:14.000Z
perception_utils/src/vfh/vfh_pose_estimator.cpp
Tacha-S/perception
aefbb5612c84b46a745c7db4fe860a2456d6e7ef
[ "BSD-3-Clause" ]
4
2019-12-08T23:20:36.000Z
2021-06-02T09:32:30.000Z
#include <perception_utils/vfh/vfh_pose_estimator.h> #include <perception_utils/perception_utils.h> #include <perception_utils/pcl_typedefs.h> #include <pcl/io/vtk_lib_io.h> #include <vtkPolyDataMapper.h> #include <pcl/apps/render_views_tesselated_sphere.h> #include <pcl/visualization/pcl_visualizer.h> #include <pcl/...
36.963197
113
0.625853
[ "cad", "mesh", "render", "object", "vector", "model", "transform" ]
66b9482fe608b4e3c04827f62fd7e7f6298e8e1e
18,669
cpp
C++
ds/security/gina/snapins/ade/snapin.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
ds/security/gina/snapins/ade/snapin.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
ds/security/gina/snapins/ade/snapin.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
//+-------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1994 - 1997. // // File: snapin.cpp // // Contents: DLL support routines, class factory and registration // functions. // // Classes: // // ...
32.355286
111
0.578178
[ "object" ]
66baaf5fb8427e932d4e879e9eb5c5978f85e750
843
hpp
C++
Paramedic.hpp
LeeFB/HW4_B
cb3559439b3ee4e227223ce5735c0b83a19b30c6
[ "MIT" ]
null
null
null
Paramedic.hpp
LeeFB/HW4_B
cb3559439b3ee4e227223ce5735c0b83a19b30c6
[ "MIT" ]
null
null
null
Paramedic.hpp
LeeFB/HW4_B
cb3559439b3ee4e227223ce5735c0b83a19b30c6
[ "MIT" ]
null
null
null
// // Paramedic.hpp // wargame-a // // Created by Lee Fingerhut on 22/05/2020. // Copyright © 2020 Lee Fingerhut. All rights reserved. // #pragma once #include <stdio.h> #include <iostream> #include <vector> #include "Soldier.hpp" using namespace std; //Can go one slot in each direction. //Does not shoot at all, ...
29.068966
107
0.696323
[ "vector" ]
66bb500cd71e2c7e67297dfec311585ff3800105
617
cpp
C++
maxpairwiseproduct.cpp
fromSAM/coursera.files
22ae08d8bcff148c27dc1fcfe443ae6de8bb589c
[ "MIT" ]
null
null
null
maxpairwiseproduct.cpp
fromSAM/coursera.files
22ae08d8bcff148c27dc1fcfe443ae6de8bb589c
[ "MIT" ]
null
null
null
maxpairwiseproduct.cpp
fromSAM/coursera.files
22ae08d8bcff148c27dc1fcfe443ae6de8bb589c
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using std::vector; using std::cin; using std::cout; using std::max; long long int MaxPairwiseProduct(const vector<int>& numbers) { int product = 0; long long int n = numbers.size(); for (long long int i = 0; i < n; ++i) { for (long long int j = i + 1; j < n; ++j) { produ...
22.035714
63
0.611021
[ "vector" ]
66bcd91de34fad35ecd3aea98a5167a2d6f7b337
6,166
cpp
C++
src/libs/base/bufferview.cpp
jpnurmi/communi-desktop
adec82ee04dee6eafdd2f0f2366ee1362ec8f1a3
[ "BSD-3-Clause" ]
null
null
null
src/libs/base/bufferview.cpp
jpnurmi/communi-desktop
adec82ee04dee6eafdd2f0f2366ee1362ec8f1a3
[ "BSD-3-Clause" ]
null
null
null
src/libs/base/bufferview.cpp
jpnurmi/communi-desktop
adec82ee04dee6eafdd2f0f2366ee1362ec8f1a3
[ "BSD-3-Clause" ]
null
null
null
/* Copyright (C) 2008-2016 The Communi Project You may use this file under the terms of BSD license as follows: 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 ab...
33.32973
90
0.695589
[ "model" ]
66be4859dcea286524f0a967a31ad0a56174d7c8
348
cpp
C++
leetcode/961. N-Repeated Element in Size 2N Array/s1.cpp
zhuohuwu0603/leetcode_cpp_lzl124631x
6a579328810ef4651de00fde0505934d3028d9c7
[ "Fair" ]
787
2017-05-12T05:19:57.000Z
2022-03-30T12:19:52.000Z
leetcode/961. N-Repeated Element in Size 2N Array/s1.cpp
aerlokesh494/LeetCode
0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f
[ "Fair" ]
8
2020-03-16T05:55:38.000Z
2022-03-09T17:19:17.000Z
leetcode/961. N-Repeated Element in Size 2N Array/s1.cpp
aerlokesh494/LeetCode
0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f
[ "Fair" ]
247
2017-04-30T15:07:50.000Z
2022-03-30T09:58:57.000Z
// OJ: https://leetcode.com/problems/n-repeated-element-in-size-2n-array // Author: github.com/lzl124631x // Time: O(N) // Space: O(N) class Solution { public: int repeatedNTimes(vector<int>& A) { unordered_set<int> s; for (int n : A) { if (s.find(n) != s.end()) return n; s.i...
24.857143
72
0.548851
[ "vector" ]
66c095460c290848ec55360f37e86deb906340dc
11,227
cpp
C++
branch/old_angsys/angsys_beta3/source/platform/platform.desktop/source/win_events.cpp
ChuyX3/angsys
89b2eaee866bcfd11e66efda49b38acc7468c780
[ "Apache-2.0" ]
null
null
null
branch/old_angsys/angsys_beta3/source/platform/platform.desktop/source/win_events.cpp
ChuyX3/angsys
89b2eaee866bcfd11e66efda49b38acc7468c780
[ "Apache-2.0" ]
null
null
null
branch/old_angsys/angsys_beta3/source/platform/platform.desktop/source/win_events.cpp
ChuyX3/angsys
89b2eaee866bcfd11e66efda49b38acc7468c780
[ "Apache-2.0" ]
null
null
null
#include "pch.h" #include <ang/core/timer.h> #include "ang/platform/win32/windows.h" #include "event_args.h" using namespace ang; using namespace ang::platform; using namespace ang::platform::events; using namespace ang::platform::windows; safe_enum_rrti2(ang::platform::events, win_msg); msg_event_args::msg_event_a...
23.006148
146
0.73439
[ "object" ]
66c1b989a6799e0e3b594ea631d93b1850829fed
1,178
cpp
C++
src/cmcandy/C_Language_Answers/_0041.cpp
ch98road/leetcode
a9b4be54a169b30f6711809b892dd1f79f2a17e7
[ "MIT" ]
null
null
null
src/cmcandy/C_Language_Answers/_0041.cpp
ch98road/leetcode
a9b4be54a169b30f6711809b892dd1f79f2a17e7
[ "MIT" ]
null
null
null
src/cmcandy/C_Language_Answers/_0041.cpp
ch98road/leetcode
a9b4be54a169b30f6711809b892dd1f79f2a17e7
[ "MIT" ]
1
2020-11-26T03:01:12.000Z
2020-11-26T03:01:12.000Z
#include <iostream> #include <string> #include <vector> using namespace ::std; class Solution { public: int firstMissingPositive(vector<int> &nums) { int len = nums.size(); if (len == 0 || (len == 1 && nums[0] != 1)) return 1; else if (len == 1 && nums[0] == 1) ...
22.653846
67
0.343803
[ "vector" ]
66c527bc0916bc60b49d872d3dc98b3309d1ecb5
2,329
hpp
C++
Settings.hpp
fossabot/Veritas-1
57d8574f170bb65149f1f704d97b9eed13be5d91
[ "MIT" ]
7
2016-09-09T22:23:08.000Z
2019-03-01T07:21:21.000Z
Settings.hpp
fossabot/Veritas-1
57d8574f170bb65149f1f704d97b9eed13be5d91
[ "MIT" ]
2
2018-08-19T21:53:58.000Z
2018-08-23T20:55:52.000Z
Settings.hpp
fossabot/Veritas-1
57d8574f170bb65149f1f704d97b9eed13be5d91
[ "MIT" ]
1
2018-08-23T20:31:26.000Z
2018-08-23T20:31:26.000Z
#ifndef __settings_hpp__ #define __settings_hpp__ struct Input { double minEfficiency = 0.6, dx = 0.5, k = 0.01; double refinementCriteria = 1e-8, cfl = 0.9, sizeWeight = 0.0; double preLength = 2, postLength = 2; unsigned int nx = 76*4, r = 2, Lfinest = 5; double plasma_xl_bound = 3.0e-6, plasma_x...
34.25
122
0.682267
[ "vector" ]
66cf1aad7f8201185554070b125a3c39c3a68ae7
2,280
cc
C++
unittests/libtests/faults/data/CohesiveDataTri3h.cc
joegeisz/pylith
f74060b7b19d7e90abf8597bbe9250c96593c0ad
[ "MIT" ]
1
2021-09-09T06:24:11.000Z
2021-09-09T06:24:11.000Z
unittests/libtests/faults/data/CohesiveDataTri3h.cc
joegeisz/pylith
f74060b7b19d7e90abf8597bbe9250c96593c0ad
[ "MIT" ]
null
null
null
unittests/libtests/faults/data/CohesiveDataTri3h.cc
joegeisz/pylith
f74060b7b19d7e90abf8597bbe9250c96593c0ad
[ "MIT" ]
null
null
null
// -*- C++ -*- // // ====================================================================== // // Brad T. Aagaard, U.S. Geological Survey // Charles A. Williams, GNS Science // Matthew G. Knepley, University of Chicago // // This code was developed as part of the Computational Infrastructure // for Geodynamics (http://...
27.46988
77
0.654825
[ "mesh" ]
66d25f2573b72bd1f7e27319abad346064f8a099
7,600
cc
C++
Engine/addons/particles/particletechniqueserialization.cc
BikkyS/DreamEngine
47da4e22c65188c72f44591f6a96505d8ba5f5f3
[ "MIT" ]
26
2015-01-15T12:57:40.000Z
2022-02-16T10:07:12.000Z
Engine/addons/particles/particletechniqueserialization.cc
BikkyS/DreamEngine
47da4e22c65188c72f44591f6a96505d8ba5f5f3
[ "MIT" ]
null
null
null
Engine/addons/particles/particletechniqueserialization.cc
BikkyS/DreamEngine
47da4e22c65188c72f44591f6a96505d8ba5f5f3
[ "MIT" ]
17
2015-02-18T07:51:31.000Z
2020-06-01T01:10:12.000Z
/**************************************************************************** Copyright (c) 2011-2013,WebJet Business Division,CYOU http://www.genesis-3d.com.cn 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...
34.234234
117
0.653158
[ "3d" ]
2044e5a55f137f9958c9f0db4912794efd1d88a1
3,926
cpp
C++
HelperFunctions/getVkImageDrmFormatModifierListCreateInfoEXT.cpp
dkaip/jvulkan-natives-Linux-x86_64
ea7932f74e828953c712feea11e0b01751f9dc9b
[ "Apache-2.0" ]
null
null
null
HelperFunctions/getVkImageDrmFormatModifierListCreateInfoEXT.cpp
dkaip/jvulkan-natives-Linux-x86_64
ea7932f74e828953c712feea11e0b01751f9dc9b
[ "Apache-2.0" ]
null
null
null
HelperFunctions/getVkImageDrmFormatModifierListCreateInfoEXT.cpp
dkaip/jvulkan-natives-Linux-x86_64
ea7932f74e828953c712feea11e0b01751f9dc9b
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2019-2020 Douglas Kaip * * 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...
35.690909
146
0.611819
[ "vector" ]
2045dee28822ef5ee2420f08cb2ed2258fd347b1
2,073
hpp
C++
Phoenix3D/PX2Edit/PX2EditRenderView_TimeLine.hpp
PheonixFoundation/Phoenix3D
bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99
[ "BSL-1.0" ]
36
2016-04-24T01:40:38.000Z
2022-01-18T07:32:26.000Z
Phoenix3D/PX2Edit/PX2EditRenderView_TimeLine.hpp
PheonixFoundation/Phoenix3D
bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99
[ "BSL-1.0" ]
null
null
null
Phoenix3D/PX2Edit/PX2EditRenderView_TimeLine.hpp
PheonixFoundation/Phoenix3D
bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99
[ "BSL-1.0" ]
16
2016-06-13T08:43:51.000Z
2020-09-15T13:25:58.000Z
// PX2EditRenderView_TimeLine.hpp #ifndef PX2EDITUIRENDERVIEW_TIMELINE_HPP #define PX2EDITUIRENDERVIEW_TIMELINE_HPP #include "PX2EditPre.hpp" #include "PX2EditRenderView.hpp" #include "PX2Polysegment.hpp" #include "PX2UIFrame.hpp" #include "PX2UIView.hpp" namespace PX2 { class EffectModule; class PX2_EDIT_ITEM E...
21.371134
70
0.749156
[ "vector" ]
2065128097d2d835370bcdfc6258c772ec6a77ce
885
cpp
C++
codeforces/cdf308_2d.cpp
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
1
2018-11-12T15:18:55.000Z
2018-11-12T15:18:55.000Z
codeforces/cdf308_2d.cpp
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
codeforces/cdf308_2d.cpp
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef pair<int, int> P; typedef pair<ll, ll> Pll; typedef vector<int> Vi; #define REP(i,x) for(int i=0;i<(int)(x);i++) #define FOR(i,s,x) for(int i=s;i<(int)(x);i++) #define PB push_back #define MP make_pair #define DUMP( x ) cerr << #x << " = "...
21.585366
91
0.545763
[ "vector" ]
20693463dd8f838f8e1f1a2a2f3b90fa151e3edb
16,171
cpp
C++
third_party/virtualbox/src/libs/xpcom18a4/xpcom/proxy/tests/proxytests.cpp
Fimbure/icebox-1
0b81992a53e1b410955ca89bdb6f8169d6f2da86
[ "MIT" ]
521
2019-03-29T15:44:08.000Z
2022-03-22T09:46:19.000Z
third_party/virtualbox/src/libs/xpcom18a4/xpcom/proxy/tests/proxytests.cpp
Fimbure/icebox-1
0b81992a53e1b410955ca89bdb6f8169d6f2da86
[ "MIT" ]
30
2019-06-04T17:00:49.000Z
2021-09-08T20:44:19.000Z
third_party/virtualbox/src/libs/xpcom18a4/xpcom/proxy/tests/proxytests.cpp
Fimbure/icebox-1
0b81992a53e1b410955ca89bdb6f8169d6f2da86
[ "MIT" ]
99
2019-03-29T16:04:13.000Z
2022-03-28T16:59:34.000Z
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the Licen...
29.189531
161
0.588708
[ "object" ]
2069cdc2fa32b5adfe5c26f970a70d5fae30a3b3
309,872
cpp
C++
mtce/src/common/nodeClass.cpp
oponcea/ceph-uprev-stx-metal
03c70b1bb2fc3e97193f2a4a15ef8acffe171870
[ "Apache-2.0" ]
null
null
null
mtce/src/common/nodeClass.cpp
oponcea/ceph-uprev-stx-metal
03c70b1bb2fc3e97193f2a4a15ef8acffe171870
[ "Apache-2.0" ]
null
null
null
mtce/src/common/nodeClass.cpp
oponcea/ceph-uprev-stx-metal
03c70b1bb2fc3e97193f2a4a15ef8acffe171870
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2013-2016 Wind River Systems, Inc. * * SPDX-License-Identifier: Apache-2.0 * */ /** * @file * Wind River CGTS Platform Nodal Health Check Service Node Implementation */ #include <stdio.h> #include <stdlib.h> #include <iostream> #include <string> #include <errno.h> /* for ENODEV, EFAULT an...
34.746804
210
0.53363
[ "render", "object", "3d" ]
206a3b15b01afc5aa3c58ff8625547ea5cffdaea
3,648
cpp
C++
src/qubits/default/default.cpp
lanamineh/qsl
7e339d2345297709ef817d78ae3a52a33b1c8614
[ "Apache-2.0" ]
null
null
null
src/qubits/default/default.cpp
lanamineh/qsl
7e339d2345297709ef817d78ae3a52a33b1c8614
[ "Apache-2.0" ]
null
null
null
src/qubits/default/default.cpp
lanamineh/qsl
7e339d2345297709ef817d78ae3a52a33b1c8614
[ "Apache-2.0" ]
null
null
null
/* * Authors: Lana Mineh and John Scott * Copyright 2021 Phasecraft Ltd. and John Scott * * 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/LI...
27.636364
98
0.663925
[ "object", "vector" ]
206db54ae31ec17ba594ec2525c8a6246f64b2ba
2,283
cpp
C++
STRING ALGORITHM/WEEK 3/SUFFIX ARRAY LONG/suffix_array_long.cpp
Mohit-007/DSA-UCDS-COURSERA
f5826a6f393e3b69ed8cf1c47df4d7a319b2d1fd
[ "MIT" ]
null
null
null
STRING ALGORITHM/WEEK 3/SUFFIX ARRAY LONG/suffix_array_long.cpp
Mohit-007/DSA-UCDS-COURSERA
f5826a6f393e3b69ed8cf1c47df4d7a319b2d1fd
[ "MIT" ]
null
null
null
STRING ALGORITHM/WEEK 3/SUFFIX ARRAY LONG/suffix_array_long.cpp
Mohit-007/DSA-UCDS-COURSERA
f5826a6f393e3b69ed8cf1c47df4d7a319b2d1fd
[ "MIT" ]
null
null
null
#include <algorithm> #include <iostream> #include <string> #include <vector> #include <utility> using std::cin; using std::cout; using std::endl; using std::make_pair; using std::pair; using std::string; using std::vector; struct suff { int ind; int r[2]; }; int cmp(suff p, suff q) { ...
20.567568
71
0.450723
[ "vector" ]
20732349b02dd8cb7f418d2facb26fb824d13cca
1,584
cpp
C++
p166m/fraction_to_decimal.cpp
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
1
2020-02-20T12:04:46.000Z
2020-02-20T12:04:46.000Z
p166m/fraction_to_decimal.cpp
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
null
null
null
p166m/fraction_to_decimal.cpp
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
null
null
null
// g++ -std=c++11 *.cpp -o test && ./test && rm test #include <string> #include <unordered_map> #include <vector> #include <iostream> using namespace std; class Solution { public: string fractionToDecimal(int numerator, int denominator) { return fractionToDecimal((int64_t)numerator, (int64_t)denominator)...
23.641791
75
0.430556
[ "vector" ]
2077981a0fc5555c9e5cdb5aa7adbe9cdcf103ce
26,813
cpp
C++
src/lib/statement/class_statement.cpp
paramah/hiphop-php-osx
5ed8c24abe8ad9fd7bc6dd4c28b4ffff23e54362
[ "PHP-3.01", "Zend-2.0" ]
1
2015-11-05T21:45:07.000Z
2015-11-05T21:45:07.000Z
src/lib/statement/class_statement.cpp
brion/hiphop-php
df70a236e6418d533ac474be0c01f0ba87034d7f
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
src/lib/statement/class_statement.cpp
brion/hiphop-php
df70a236e6418d533ac474be0c01f0ba87034d7f
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) | +---------...
35.326746
80
0.564129
[ "object", "vector" ]
208363c6d0cd70e4ed74632c77186caf29abdad0
2,305
cxx
C++
vtkm/cont/AssignerMultiBlock.cxx
cjy7117/VTK-m-FP16
3afaaaececf53f32db1afb8f069a5446271dfdf4
[ "BSD-3-Clause" ]
null
null
null
vtkm/cont/AssignerMultiBlock.cxx
cjy7117/VTK-m-FP16
3afaaaececf53f32db1afb8f069a5446271dfdf4
[ "BSD-3-Clause" ]
null
null
null
vtkm/cont/AssignerMultiBlock.cxx
cjy7117/VTK-m-FP16
3afaaaececf53f32db1afb8f069a5446271dfdf4
[ "BSD-3-Clause" ]
2
2020-07-06T06:32:00.000Z
2020-08-24T14:08:15.000Z
//============================================================================ // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURP...
28.45679
96
0.660304
[ "vector" ]
2084ea5e874a4966b7e126bf4a8fc183d57d997e
1,470
cpp
C++
codejam/Problem3/main.cpp
qiaotian/CodeInterview
294c1ba86d8ace41a121c5ada4ba4c3765ccc17d
[ "WTFPL" ]
5
2016-10-29T09:28:11.000Z
2019-10-19T23:02:48.000Z
codejam/Problem3/main.cpp
qiaotian/CodeInterview
294c1ba86d8ace41a121c5ada4ba4c3765ccc17d
[ "WTFPL" ]
null
null
null
codejam/Problem3/main.cpp
qiaotian/CodeInterview
294c1ba86d8ace41a121c5ada4ba4c3765ccc17d
[ "WTFPL" ]
null
null
null
#include <iostream> #include <fstream> #include <sstream> #include <string> #include <vector> #include <set> #include <map> #include <unordered_map> #include <unordered_set> using namespace std; int main(int argc, const char* argv[]) { //string inpath = argv[1]; //string outpath = argv[2]; string inp...
21
70
0.560544
[ "vector" ]
2086ffad453c6fa999e7ee5d5bbfbec6f3bf8553
782,457
cpp
C++
src/main_2200.cpp
sc2ad/BeatSaber-Quest-Codegen
ba8acaae541cfe1161e05fbc3bf87f4bc46bc4ab
[ "Unlicense" ]
23
2020-08-07T04:09:00.000Z
2022-03-31T22:10:29.000Z
src/main_2200.cpp
sc2ad/BeatSaber-Quest-Codegen
ba8acaae541cfe1161e05fbc3bf87f4bc46bc4ab
[ "Unlicense" ]
6
2021-09-29T23:47:31.000Z
2022-03-30T20:49:23.000Z
src/main_2200.cpp
sc2ad/BeatSaber-Quest-Codegen
ba8acaae541cfe1161e05fbc3bf87f4bc46bc4ab
[ "Unlicense" ]
17
2020-08-20T19:36:52.000Z
2022-03-30T18:28:24.000Z
// Autogenerated from CppSourceCreator // Created by Sc2ad // ========================================================================= // Begin includes // Including type: HoudiniEngineUnity.HEU_Task/HoudiniEngineUnity.TaskStatus #include "HoudiniEngineUnity/HEU_Task.hpp" #include "extern/beatsaber-hook/shared/u...
92.730149
706
0.794606
[ "mesh", "object", "vector", "transform" ]
208a7e432c6788142537d1b8027bc885068ffed2
6,398
cpp
C++
src/GameGrid.cpp
thamstras/GamesProgramming
b576760cd12c1a13347bc488a2eb3d5a141abac1
[ "MIT" ]
null
null
null
src/GameGrid.cpp
thamstras/GamesProgramming
b576760cd12c1a13347bc488a2eb3d5a141abac1
[ "MIT" ]
null
null
null
src/GameGrid.cpp
thamstras/GamesProgramming
b576760cd12c1a13347bc488a2eb3d5a141abac1
[ "MIT" ]
null
null
null
#include "GameGrid.h" #include "glm\glm.hpp" ShipData * zSortShips(ShipData * ships) { ShipData * output = new ShipData[6]; int i = 0; for (int x = 0; x < 10; x++) { for (int s = 0; s < 6; s++) { if (ships[s].x == x) { output[i] = ships[s]; i++; } } } return output; } GameGrid::GameGrid(G...
22.215278
107
0.597218
[ "render" ]
208cf4346e72964b2529aa929b15f9b2af2b9ae6
4,387
cpp
C++
Criteria/RFIDCriterion.cpp
francescodelduchetto/nbs_ros
dd544818b845ce1e67aecdb942ca809c89669581
[ "MIT" ]
null
null
null
Criteria/RFIDCriterion.cpp
francescodelduchetto/nbs_ros
dd544818b845ce1e67aecdb942ca809c89669581
[ "MIT" ]
null
null
null
Criteria/RFIDCriterion.cpp
francescodelduchetto/nbs_ros
dd544818b845ce1e67aecdb942ca809c89669581
[ "MIT" ]
null
null
null
// // Created by pulver on 29/07/2019. // #include "Criteria/RFIDCriterion.h" #include "Criteria/criteriaName.h" #include "Eigen/Eigen" #include "newray.h" #include "utils.h" #include <math.h> using namespace dummy; using namespace grid_map; RFIDCriterion::RFIDCriterion(double weight) : Criterion(RFID_READING, w...
35.959016
133
0.673353
[ "vector" ]
2099fbbc247990200bc8d693135425b9e5a529d5
7,169
cc
C++
chrome/browser/support_tool/support_tool_handler.cc
chromium/chromium
df46e572c3449a4b108d6e02fbe4f6d24cf98381
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
chrome/browser/support_tool/support_tool_handler.cc
chromium/chromium
df46e572c3449a4b108d6e02fbe4f6d24cf98381
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
86
2015-10-21T13:02:42.000Z
2022-03-14T07:50:50.000Z
chrome/browser/support_tool/support_tool_handler.cc
chromium/chromium
df46e572c3449a4b108d6e02fbe4f6d24cf98381
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
// Copyright 2021 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/support_tool/support_tool_handler.h" #include <algorithm> #include <cstddef> #include <map> #include <memory> #include <set> #in...
34.970732
80
0.740131
[ "vector" ]
209a49982ad2c81fc8f3bc34ac793b199b924a4c
7,147
cpp
C++
src/plugins/tabsessmanager/tabsessmanager.cpp
MellonQ/leechcraft
71cbb238d2dade56b3865278a6a8e6a58c217fc5
[ "BSL-1.0" ]
null
null
null
src/plugins/tabsessmanager/tabsessmanager.cpp
MellonQ/leechcraft
71cbb238d2dade56b3865278a6a8e6a58c217fc5
[ "BSL-1.0" ]
null
null
null
src/plugins/tabsessmanager/tabsessmanager.cpp
MellonQ/leechcraft
71cbb238d2dade56b3865278a6a8e6a58c217fc5
[ "BSL-1.0" ]
null
null
null
/********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2006-2014 Georg Rudoy * * Boost Software License - Version 1.0 - August 17th, 2003 * * Permission is hereby granted, free of charge, to any person or organiz...
28.818548
97
0.700014
[ "object" ]
209c38377652f998862d8346efe2fb41333d4768
1,138
cpp
C++
[187] Repeated DNA Sequences/187.repeated-dna-sequences.cpp
Coolzyh/Leetcode
4abf685501427be0ce36b83016c4fa774cdf1a1a
[ "MIT" ]
null
null
null
[187] Repeated DNA Sequences/187.repeated-dna-sequences.cpp
Coolzyh/Leetcode
4abf685501427be0ce36b83016c4fa774cdf1a1a
[ "MIT" ]
null
null
null
[187] Repeated DNA Sequences/187.repeated-dna-sequences.cpp
Coolzyh/Leetcode
4abf685501427be0ce36b83016c4fa774cdf1a1a
[ "MIT" ]
null
null
null
/* * @lc app=leetcode id=187 lang=cpp * * [187] Repeated DNA Sequences */ // @lc code=start class Solution { public: vector<string> findRepeatedDnaSequences(string s) { // https://leetcode.com/problems/repeated-dna-sequences/discuss/53877/I-did-it-in-10-lines-of-C%2B%2B // bit-manipulation meth...
32.514286
115
0.522847
[ "vector" ]
20a207cb088436bbcff94d2a493f65b7ce2e6015
9,376
cc
C++
src/algs/stogo/local.cc
bowie7070/nlopt
95df031058531d84fe9c0727458129f773d22959
[ "MIT-0", "MIT" ]
1,224
2015-01-14T22:56:04.000Z
2022-03-30T18:52:57.000Z
nlopt/src/algs/stogo/local.cc
yjjuan/automl_cplusplus
7c427584ed94915b549d31a2097f952c3cfdef36
[ "Apache-2.0" ]
349
2015-01-16T22:22:32.000Z
2022-03-29T18:30:05.000Z
nlopt/src/algs/stogo/local.cc
yjjuan/automl_cplusplus
7c427584ed94915b549d31a2097f952c3cfdef36
[ "Apache-2.0" ]
437
2015-02-20T07:40:41.000Z
2022-03-30T15:21:01.000Z
/* Local search - A trust region algorithm with BFGS update. */ #include <iostream> #include <stdlib.h> #include "stogo_config.h" #include "global.h" #include "local.h" #include "tools.h" //////////////////////////////////////////////////////////////////////// // SGJ, 2007: allow local to use local optimizers in...
23.796954
79
0.583404
[ "model" ]
20a297b5cb791033cb748b782c4d8bfad252e7bd
621
cpp
C++
examples/serialization/main.cpp
XenotriX/CppProperties
d78713e33a2b5d5d030988456f5be25d7e9bb11d
[ "MIT" ]
null
null
null
examples/serialization/main.cpp
XenotriX/CppProperties
d78713e33a2b5d5d030988456f5be25d7e9bb11d
[ "MIT" ]
null
null
null
examples/serialization/main.cpp
XenotriX/CppProperties
d78713e33a2b5d5d030988456f5be25d7e9bb11d
[ "MIT" ]
null
null
null
#include <iostream> #include "../../lib/properties.hpp" struct shape : properties::properties { MAKE_PROPERTY(x, int); MAKE_PROPERTY(y, int); MAKE_PROPERTY(name, std::string); }; int main() { // Create object shape s1; s1.x = 24; s1.y = 48; s1.name = "My Shape"; // Serial...
17.25
45
0.58132
[ "object", "shape" ]
20a3ac00cd9e7c1ba56b245af1ec4397d40e2907
7,864
hpp
C++
CPPUtils/Iterators/ZipIterator.hpp
JackHunt/CPPUtils
e086a257d8d2ebffaa3ca0bb6e3e9baafe98edb8
[ "BSD-3-Clause" ]
null
null
null
CPPUtils/Iterators/ZipIterator.hpp
JackHunt/CPPUtils
e086a257d8d2ebffaa3ca0bb6e3e9baafe98edb8
[ "BSD-3-Clause" ]
null
null
null
CPPUtils/Iterators/ZipIterator.hpp
JackHunt/CPPUtils
e086a257d8d2ebffaa3ca0bb6e3e9baafe98edb8
[ "BSD-3-Clause" ]
null
null
null
/* BSD 3-Clause License Copyright (c) 2018,2019 Jack Miles Hunt 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 of con...
31.582329
122
0.594227
[ "vector" ]
20a4e824cfbeb6019200c5f7b80f9a2635c5896b
5,246
cc
C++
source/common/upstream/ring_hash_lb.cc
Sodman/envoy
9cb135e059ac6af052e5a5aa6c6c279aada1850b
[ "Apache-2.0" ]
null
null
null
source/common/upstream/ring_hash_lb.cc
Sodman/envoy
9cb135e059ac6af052e5a5aa6c6c279aada1850b
[ "Apache-2.0" ]
null
null
null
source/common/upstream/ring_hash_lb.cc
Sodman/envoy
9cb135e059ac6af052e5a5aa6c6c279aada1850b
[ "Apache-2.0" ]
1
2020-12-30T17:12:11.000Z
2020-12-30T17:12:11.000Z
#include "common/upstream/ring_hash_lb.h" #include <cstdint> #include <string> #include <vector> #include "common/common/assert.h" #include "common/upstream/load_balancer_impl.h" namespace Envoy { namespace Upstream { RingHashLoadBalancer::RingHashLoadBalancer( PrioritySet& priority_set, ClusterStats& stats, Ru...
35.208054
100
0.669844
[ "vector" ]
20adf4c88217d738ff068b1e14691e600a85a406
812
cpp
C++
AtCoder/AGC/AGC031/b.cpp
eduidl/procon
a95d33074771281ff135bf199ded8b57788c151d
[ "MIT" ]
null
null
null
AtCoder/AGC/AGC031/b.cpp
eduidl/procon
a95d33074771281ff135bf199ded8b57788c151d
[ "MIT" ]
null
null
null
AtCoder/AGC/AGC031/b.cpp
eduidl/procon
a95d33074771281ff135bf199ded8b57788c151d
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define FOR(i, a, b) for (int i = (a), i##_max = (b); i < i##_max; ++i) #define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define ALL(obj) (obj).begin(), (obj).end() using namespace std; const int INF = 1 << 25; const int MOD = 1000000007; template <class T> void chmin(T& a,...
19.804878
71
0.487685
[ "vector" ]
20b17626e82b584d4cf49f15288950f298cfef28
10,328
cpp
C++
High_int.cpp
XiaoXueTu555/High
ff8734c0299e3b9c5ac9c81e40b1c28862b19b23
[ "BSD-3-Clause" ]
null
null
null
High_int.cpp
XiaoXueTu555/High
ff8734c0299e3b9c5ac9c81e40b1c28862b19b23
[ "BSD-3-Clause" ]
null
null
null
High_int.cpp
XiaoXueTu555/High
ff8734c0299e3b9c5ac9c81e40b1c28862b19b23
[ "BSD-3-Clause" ]
null
null
null
#include <math.h> #include "High_int.h" #define High_int_NULL (High_int)0 /*构造函数*/ High_int::High_int() { this->sign = true; this->data.push_back(0); } High_int::High_int(const int64_t data) { this->sign = true; this->data.push_back(0); *this = data; } /*析构函数*/ High_int::~High_int() { ret...
22.16309
112
0.581816
[ "vector" ]