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
864fdb5f4d5fde78866558d3e10f72ac3a4b8b7f
1,805
hpp
C++
include/inexor/vulkan-renderer/wrapper/command_buffer.hpp
authenticate/vulkan-renderer
c552a7a8e973e09d28d538899bdfa3d890b5169b
[ "MIT" ]
null
null
null
include/inexor/vulkan-renderer/wrapper/command_buffer.hpp
authenticate/vulkan-renderer
c552a7a8e973e09d28d538899bdfa3d890b5169b
[ "MIT" ]
null
null
null
include/inexor/vulkan-renderer/wrapper/command_buffer.hpp
authenticate/vulkan-renderer
c552a7a8e973e09d28d538899bdfa3d890b5169b
[ "MIT" ]
null
null
null
#pragma once #include "inexor/vulkan-renderer/wrapper/device.hpp" #include <cstdint> #include <string> #include <vector> namespace inexor::vulkan_renderer::wrapper { class ResourceDescriptor; // TODO(): Make trivially copyable (this class doesn't really "own" the command buffer, more just an OOP wrapper) class Com...
32.818182
116
0.737396
[ "vector" ]
8651f34b67a3742cfe98ec93834b709b4d8e18a7
3,208
cpp
C++
Encryptions/RC6.cpp
kuma42/Kripto
86c3eb1b765e14b52d00b98890e13091658258f6
[ "MIT" ]
113
2015-04-26T16:48:54.000Z
2022-03-25T23:15:21.000Z
thirdparty/Encryptions/Encryptions/RC6.cpp
Muller-Castro/Minesweeper
e4c3fb48e7181aff9637dc77cb829d16d293afdb
[ "Zlib", "MIT" ]
5
2019-01-24T02:46:15.000Z
2021-05-09T14:06:25.000Z
thirdparty/Encryptions/Encryptions/RC6.cpp
Muller-Castro/Minesweeper
e4c3fb48e7181aff9637dc77cb829d16d293afdb
[ "Zlib", "MIT" ]
44
2015-12-17T02:29:19.000Z
2022-03-31T21:39:13.000Z
#include "RC6.h" RC6::RC6() : SymAlg(), w(0), r(0), b(0), lgw(0), S(0) {} RC6::RC6(const std::string & KEY, const unsigned int & W, const unsigned int & R) : RC6() { setkey(KEY, W, R); } void RC6::setkey(std::string KEY, const unsigned int & W, const unsigned int & R){ if (keyset){ ...
33.768421
261
0.470075
[ "vector" ]
8656f60979a670d65ff85a8c7f18298dd55ffd65
4,394
cpp
C++
collection/cp/bcw_codebook-master/Contest/XVIIOpenCupEurope/H.cpp
daemonslayer/Notebook
a9880be9bd86955afd6b8f7352822bc18673eda3
[ "Apache-2.0" ]
1
2019-03-24T13:12:01.000Z
2019-03-24T13:12:01.000Z
collection/cp/bcw_codebook-master/Contest/XVIIOpenCupEurope/H.cpp
daemonslayer/Notebook
a9880be9bd86955afd6b8f7352822bc18673eda3
[ "Apache-2.0" ]
null
null
null
collection/cp/bcw_codebook-master/Contest/XVIIOpenCupEurope/H.cpp
daemonslayer/Notebook
a9880be9bd86955afd6b8f7352822bc18673eda3
[ "Apache-2.0" ]
null
null
null
#pragma GCC optimize ("O2") #include<bits/stdc++.h> #include<unistd.h> using namespace std; #define FZ(n) memset((n),0,sizeof(n)) #define FMO(n) memset((n),-1,sizeof(n)) #define F first #define S second #define PB push_back #define ALL(x) begin(x),end(x) #define SZ(x) ((int)(x).size()) #define IOS ios_base::sync_with_s...
19.104348
70
0.505917
[ "vector" ]
865bcba36a8e9ec913e2f40c7d3f52888884eefb
3,484
hh
C++
hackt_docker/hackt/src/Object/expr/preal_const.hh
broken-wheel/hacktist
36e832ae7dd38b27bca9be7d0889d06054dc2806
[ "MIT" ]
null
null
null
hackt_docker/hackt/src/Object/expr/preal_const.hh
broken-wheel/hacktist
36e832ae7dd38b27bca9be7d0889d06054dc2806
[ "MIT" ]
null
null
null
hackt_docker/hackt/src/Object/expr/preal_const.hh
broken-wheel/hacktist
36e832ae7dd38b27bca9be7d0889d06054dc2806
[ "MIT" ]
null
null
null
/** \file "Object/expr/preal_const.hh" Classes related to constant expressions. NOTE: this file was spanwed from "Object/art_object_expr_const.h" for revision history tracking purposes. $Id: preal_const.hh,v 1.16 2010/09/21 00:18:20 fang Exp $ */ #ifndef __HAC_OBJECT_EXPR_PREAL_CONST_H__ #define __HAC_OBJECT_...
23.70068
79
0.741676
[ "object" ]
865c740eaa99220065fa0b7fe241e433b76b2ff6
15,775
cpp
C++
pal/palLinks.cpp
kephale/Physics-Abstraction-Layer
3d5ef62213143bb9ddc410edef348c94bda70cab
[ "BSD-3-Clause" ]
6
2018-02-27T12:32:05.000Z
2020-12-21T09:43:38.000Z
pal/palLinks.cpp
5l1v3r1/Physics-Abstraction-Layer
3d5ef62213143bb9ddc410edef348c94bda70cab
[ "BSD-3-Clause" ]
null
null
null
pal/palLinks.cpp
5l1v3r1/Physics-Abstraction-Layer
3d5ef62213143bb9ddc410edef348c94bda70cab
[ "BSD-3-Clause" ]
4
2015-07-25T16:55:16.000Z
2020-07-15T05:46:30.000Z
#include "palFactory.h" #include <memory.h> #include <cmath> #include <cfloat> #include <iostream> #include <sstream> /* Abstract: PAL - Physics Abstraction Layer. Implementation File (bodies) Author: Adrian Boeing Revision History: Version 0.1 :19/10/07 split from pal.cpp TODO: */ #ifdef MEMDEBUG #inclu...
26.24792
139
0.703772
[ "transform" ]
86632a039e00ac08e057c0f1a86bb6766d8c6a0e
22,644
cpp
C++
Source/Test/Case/PovMapperTest.cpp
hamzahamidi/Xidi
d7585ecf23fd17dd5be4e69f63bae08aa0e96988
[ "BSD-3-Clause" ]
1
2021-06-05T00:22:08.000Z
2021-06-05T00:22:08.000Z
Source/Test/Case/PovMapperTest.cpp
hamzahamidi/Xidi
d7585ecf23fd17dd5be4e69f63bae08aa0e96988
[ "BSD-3-Clause" ]
null
null
null
Source/Test/Case/PovMapperTest.cpp
hamzahamidi/Xidi
d7585ecf23fd17dd5be4e69f63bae08aa0e96988
[ "BSD-3-Clause" ]
null
null
null
/***************************************************************************** * Xidi * DirectInput interface for XInput controllers. ***************************************************************************** * Authored by Samuel Grossman * Copyright (c) 2016-2021 ********************************************...
45.197605
186
0.669537
[ "object" ]
866946d601bcf2b0253dfc5861b2f79c52ac9af1
2,128
cpp
C++
leetcode/cpp/qt_factor_combinations.cpp
qiaotian/CodeInterview
294c1ba86d8ace41a121c5ada4ba4c3765ccc17d
[ "WTFPL" ]
5
2016-10-29T09:28:11.000Z
2019-10-19T23:02:48.000Z
leetcode/cpp/qt_factor_combinations.cpp
qiaotian/CodeInterview
294c1ba86d8ace41a121c5ada4ba4c3765ccc17d
[ "WTFPL" ]
null
null
null
leetcode/cpp/qt_factor_combinations.cpp
qiaotian/CodeInterview
294c1ba86d8ace41a121c5ada4ba4c3765ccc17d
[ "WTFPL" ]
null
null
null
/** * @Author: Tian Qiao <qiaotian> * @Date: 2016-07-07T23:58:49+08:00 * @Email: qiaotian@me.com * @Last modified by: qiaotian * @Last modified time: 2016-07-08T00:31:41+08:00 * @Inc: LinkedIn, Uber */ Numbers can be regarded as product of its factors. For example, 8 = 2 x 2 x 2; = 2 x 4. Write a function that...
21.28
93
0.531955
[ "vector" ]
866eb78f89b5ed4de87b9978a740854353215f13
19,912
cpp
C++
Arduino/cnn.cpp
agural/memory-optimal-direct-convolutions
b824478f10503fbb0ac7afa5b61692ca5dd3dcab
[ "MIT" ]
9
2019-07-04T02:22:59.000Z
2021-06-30T18:00:39.000Z
Arduino/cnn.cpp
agural/memory-optimal-direct-convolutions
b824478f10503fbb0ac7afa5b61692ca5dd3dcab
[ "MIT" ]
null
null
null
Arduino/cnn.cpp
agural/memory-optimal-direct-convolutions
b824478f10503fbb0ac7afa5b61692ca5dd3dcab
[ "MIT" ]
5
2019-08-11T23:16:32.000Z
2021-09-26T03:05:09.000Z
/************************************************************************ * Title: AVR CNN * * Desciption: Code for running small CNNs using only 2K on-board SRAM. * * Author: *Anonymous* * * Date: 2018-11-2...
28.774566
110
0.585125
[ "shape", "vector" ]
867690a077d1ab7da9569ccc162c5b3242ebf62a
5,101
cpp
C++
src/NeuralNetwork.cpp
MaikuZ/NeuralNetwork
3eafed3ae1080e0630bae7cdb62bfced1601f31d
[ "MIT" ]
1
2018-08-24T08:08:44.000Z
2018-08-24T08:08:44.000Z
src/NeuralNetwork.cpp
MaikuZ/NeuralNetwork
3eafed3ae1080e0630bae7cdb62bfced1601f31d
[ "MIT" ]
null
null
null
src/NeuralNetwork.cpp
MaikuZ/NeuralNetwork
3eafed3ae1080e0630bae7cdb62bfced1601f31d
[ "MIT" ]
null
null
null
/*! Author: MaikuZ */ #include "NeuralNetwork.h" #include <cmath> #include <ctime> #include <cstdlib> #include <random> #include <iostream> ///WIP string Network::toString() { for(int i = 0;i < Graph[0].size();i++) cout<<Graph[0][i].getBias()<<endl; return ""; } void Network::setInput(vector<int>&V) { fo...
24.175355
129
0.568908
[ "vector" ]
867dc1b19e5546777dc05ddd5e3658581abee380
3,960
cpp
C++
src/pbnjson_c/selectors/test/TestAncestorCombinator.cpp
webosce/libpbnjson
6cd4815a81830bbf6b22647ae8bb4fc818148ee7
[ "Apache-2.0" ]
4
2018-03-20T15:15:50.000Z
2020-05-02T02:30:15.000Z
src/pbnjson_c/selectors/test/TestAncestorCombinator.cpp
webosce/libpbnjson
6cd4815a81830bbf6b22647ae8bb4fc818148ee7
[ "Apache-2.0" ]
null
null
null
src/pbnjson_c/selectors/test/TestAncestorCombinator.cpp
webosce/libpbnjson
6cd4815a81830bbf6b22647ae8bb4fc818148ee7
[ "Apache-2.0" ]
4
2018-03-19T12:43:43.000Z
2020-05-02T02:30:19.000Z
// Copyright (c) 2015-2018 LG Electronics, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
26.577181
109
0.672475
[ "object", "vector" ]
86838656a290e0bb277e8705a672ab3778324c2b
10,314
cpp
C++
src/vsg/io/FileSystem.cpp
wadivision/VulkanSceneGraph
62756591b549bed2f006880b67688ce9970728df
[ "MIT" ]
null
null
null
src/vsg/io/FileSystem.cpp
wadivision/VulkanSceneGraph
62756591b549bed2f006880b67688ce9970728df
[ "MIT" ]
null
null
null
src/vsg/io/FileSystem.cpp
wadivision/VulkanSceneGraph
62756591b549bed2f006880b67688ce9970728df
[ "MIT" ]
null
null
null
/* <editor-fold desc="MIT License"> Copyright(c) 2018 Robert Osfield Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, mod...
30.069971
460
0.629242
[ "vector" ]
868f9c1dfce0dd894c5f3f956422021eb3281b90
30,783
cpp
C++
interfaces/kits/napi/aafwk/inner/napi_common/napi_common_want.cpp
openharmony-sig-ci/aafwk_standard
5ef3550de797241d46e47c5f446eba5428d180f1
[ "Apache-2.0" ]
null
null
null
interfaces/kits/napi/aafwk/inner/napi_common/napi_common_want.cpp
openharmony-sig-ci/aafwk_standard
5ef3550de797241d46e47c5f446eba5428d180f1
[ "Apache-2.0" ]
null
null
null
interfaces/kits/napi/aafwk/inner/napi_common/napi_common_want.cpp
openharmony-sig-ci/aafwk_standard
5ef3550de797241d46e47c5f446eba5428d180f1
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2021 Huawei Device 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 ...
36.998798
119
0.639541
[ "vector" ]
8692951ced68bd64e9b9e898bbd4a9c5cd9e3b62
4,021
cpp
C++
tests/test_overhead/test_overhead.cpp
DimaBond174/FastMemPool
f73496d973cc7a6fd4518bdd5b2a55b700d7116b
[ "MIT" ]
13
2020-08-09T12:12:09.000Z
2021-09-07T18:03:19.000Z
tests/test_overhead/test_overhead.cpp
DimaBond174/FastMemPool
f73496d973cc7a6fd4518bdd5b2a55b700d7116b
[ "MIT" ]
null
null
null
tests/test_overhead/test_overhead.cpp
DimaBond174/FastMemPool
f73496d973cc7a6fd4518bdd5b2a55b700d7116b
[ "MIT" ]
null
null
null
#include <iostream> #include "fast_mem_pool.h" #include <map> #include <functional> #include <thread> #include <cstdlib> #include "specstatic.h" #include <string> // Importing test methods from other translation units: extern bool test_fastmempool(int cnt, std::size_t each_size); extern bool test_mempool(int cnt, ...
38.663462
116
0.525242
[ "vector" ]
8692a2645dee31495c4204e78a30944beef66fc7
1,915
cpp
C++
commands/list.cpp
Zerwer-Malek/NetworkManagement
7626e95fa300ad047fc70b0e6ad44d7093859a45
[ "MIT" ]
null
null
null
commands/list.cpp
Zerwer-Malek/NetworkManagement
7626e95fa300ad047fc70b0e6ad44d7093859a45
[ "MIT" ]
null
null
null
commands/list.cpp
Zerwer-Malek/NetworkManagement
7626e95fa300ad047fc70b0e6ad44d7093859a45
[ "MIT" ]
null
null
null
//Import headers #include "list.h" #include "../main.h" #include "save/oui.h" using namespace std; // Function lists all the devices in targets.txt void list() { // Converts file contents of targets.txt to string and splits into a vector string at index \n vector<string> lines = split(filetostr("targets.txt")...
30.887097
102
0.538381
[ "vector", "transform" ]
869361157de264cd8d614632d287ab4f2de80713
14,759
cpp
C++
hazelcast/src/hazelcast/cp/cp_impl.cpp
yuce/hazelcast-cpp-client
027d56df46d770d8e2225693e4bbc91703451757
[ "Apache-2.0" ]
78
2015-10-23T13:50:12.000Z
2021-12-17T11:22:58.000Z
hazelcast/src/hazelcast/cp/cp_impl.cpp
yuce/hazelcast-cpp-client
027d56df46d770d8e2225693e4bbc91703451757
[ "Apache-2.0" ]
949
2015-10-26T12:18:38.000Z
2022-03-31T15:49:08.000Z
hazelcast/src/hazelcast/cp/cp_impl.cpp
yuce/hazelcast-cpp-client
027d56df46d770d8e2225693e4bbc91703451757
[ "Apache-2.0" ]
49
2015-10-23T13:51:52.000Z
2021-09-01T00:26:45.000Z
#include <hazelcast/client/spi/ClientContext.h> /* * Copyright (c) 2008-2021, Hazelcast, Inc. 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.apach...
55.905303
144
0.506606
[ "vector" ]
86938f8423143ffa5c764ad941ab17129687b94a
1,175
hpp
C++
utilities/gl/glutils.hpp
supudo/bofrak
0a94a2cffea24bf84193fd6ba039cff0cc17b7fb
[ "Unlicense" ]
null
null
null
utilities/gl/glutils.hpp
supudo/bofrak
0a94a2cffea24bf84193fd6ba039cff0cc17b7fb
[ "Unlicense" ]
null
null
null
utilities/gl/glutils.hpp
supudo/bofrak
0a94a2cffea24bf84193fd6ba039cff0cc17b7fb
[ "Unlicense" ]
null
null
null
#ifndef GLUtils_hpp #define GLUtils_hpp #include <string> #include <functional> #include <vector> #include "glincludes.hpp" class GLUtils { public: ~GLUtils(); explicit GLUtils(const std::function<void(std::string)>& logFunction); GLUtils(); bool compileAndAttachShader(GLuint &shaderProgram, GLuint &shader, G...
32.638889
115
0.765957
[ "vector" ]
86959aa890306ac9c86463b1c9ab88b57e1b5d91
1,102
hpp
C++
test/unit/module/real/math/sincos/medium/sincos.hpp
orao/eve
a8bdc6a9cab06d905e8749354cde63776ab76846
[ "MIT" ]
null
null
null
test/unit/module/real/math/sincos/medium/sincos.hpp
orao/eve
a8bdc6a9cab06d905e8749354cde63776ab76846
[ "MIT" ]
null
null
null
test/unit/module/real/math/sincos/medium/sincos.hpp
orao/eve
a8bdc6a9cab06d905e8749354cde63776ab76846
[ "MIT" ]
null
null
null
//================================================================================================== /** EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT **/ //================================================================================================== #...
29.783784
100
0.50726
[ "vector" ]
869c779465b7ede4b8775895f757a745520f0575
1,848
cpp
C++
src/data/textures/Re2DTexture.cpp
danielbui78/reality
7ecd01b71f28e581becfe5093fab3ddcd6d9b2c1
[ "BSD-3-Clause" ]
2
2021-12-25T17:24:03.000Z
2022-03-14T05:07:51.000Z
src/data/textures/Re2DTexture.cpp
danielbui78/reality
7ecd01b71f28e581becfe5093fab3ddcd6d9b2c1
[ "BSD-3-Clause" ]
null
null
null
src/data/textures/Re2DTexture.cpp
danielbui78/reality
7ecd01b71f28e581becfe5093fab3ddcd6d9b2c1
[ "BSD-3-Clause" ]
2
2021-12-10T05:33:04.000Z
2021-12-10T16:38:54.000Z
/* Reality plug-in Copyright (c) Pret-a-3D/Paolo Ciccone 2012. All rights reserved. */ #include "Re2DTexture.h" #include "ReTools.h" namespace Reality { void Re2DTexture::serialize( QDataStream& dataStream ) { ReTexture::serialize(dataStream); dataStream << uTile << vTile << uOffset << vOffset << (quin...
24.972973
80
0.65855
[ "3d" ]
869d92b5b97896e22d98aadf2615bee1edff96f0
2,998
cpp
C++
Contests/Codeforces_Round_#706/probF.cpp
francoisvogel/cp
ae59cf635ab19382d924344fbb137ab9ae631103
[ "MIT" ]
1
2021-10-02T15:40:33.000Z
2021-10-02T15:40:33.000Z
Contests/Codeforces_Round_#706/probF.cpp
francoisvogel/cp
ae59cf635ab19382d924344fbb137ab9ae631103
[ "MIT" ]
null
null
null
Contests/Codeforces_Round_#706/probF.cpp
francoisvogel/cp
ae59cf635ab19382d924344fbb137ab9ae631103
[ "MIT" ]
null
null
null
/* * Author: Francois Vogel * Comment: */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <functional> using namespace std; using namespace __gnu_pbds; #define pii pair<int, int> #define f first #define s second #define vi vector<int> #define al...
30.591837
140
0.469313
[ "vector" ]
86a307a84e9a6a00a7125fcd9f749e1b65be668b
9,051
cpp
C++
dependencies/PyMesh/tools/Assembler/ref/Assembler2D.cpp
aprieels/3D-watermarking-spectral-decomposition
dcab78857d0bb201563014e58900917545ed4673
[ "MIT" ]
5
2018-06-04T19:52:02.000Z
2022-01-22T09:04:00.000Z
dependencies/PyMesh/tools/Assembler/ref/Assembler2D.cpp
aprieels/3D-watermarking-spectral-decomposition
dcab78857d0bb201563014e58900917545ed4673
[ "MIT" ]
null
null
null
dependencies/PyMesh/tools/Assembler/ref/Assembler2D.cpp
aprieels/3D-watermarking-spectral-decomposition
dcab78857d0bb201563014e58900917545ed4673
[ "MIT" ]
null
null
null
/* This file is part of PyMesh. Copyright (c) 2015 by Qingnan Zhou */ #include "Assembler2D.h" #include "ZLazyPriorityQueue.h" #include <iostream> #include <map> Assembler2D::Assembler2D() : m_D(3,3), m_C(3,3) { m_C << 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 2.0; } void Assembler2D::precompu...
32.67509
120
0.534858
[ "mesh", "shape", "vector" ]
86a8b901b75d61672ad8349d4537fdc444332943
8,005
cpp
C++
src/IECoreNuke/DeepImageReader.cpp
goddardl/cortex
323a160fd831569591cde1504f415a638f8b85bc
[ "BSD-3-Clause" ]
null
null
null
src/IECoreNuke/DeepImageReader.cpp
goddardl/cortex
323a160fd831569591cde1504f415a638f8b85bc
[ "BSD-3-Clause" ]
null
null
null
src/IECoreNuke/DeepImageReader.cpp
goddardl/cortex
323a160fd831569591cde1504f415a638f8b85bc
[ "BSD-3-Clause" ]
1
2020-09-26T01:15:37.000Z
2020-09-26T01:15:37.000Z
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2013-2014, Image Engine Design 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: // // ...
27.508591
130
0.624859
[ "object", "vector" ]
86a9f7b812ec9f8474b5982bc120b4e6c64f356e
8,342
cpp
C++
borderClip.cpp
mattjr/structured
0cb4635af7602f2a243a9b739e5ed757424ab2a7
[ "Apache-2.0" ]
14
2015-01-11T02:53:04.000Z
2021-11-25T17:31:22.000Z
borderClip.cpp
skair39/structured
0cb4635af7602f2a243a9b739e5ed757424ab2a7
[ "Apache-2.0" ]
null
null
null
borderClip.cpp
skair39/structured
0cb4635af7602f2a243a9b739e5ed757424ab2a7
[ "Apache-2.0" ]
14
2015-07-21T04:47:52.000Z
2020-03-12T12:31:25.000Z
// // structured - Tools for the Generation and Visualization of Large-scale // Three-dimensional Reconstructions from Image Data. This software includes // source code from other projects, which is subject to different licensing, // see COPYING for details. If this project is used for research see COPYING // for makin...
36.269565
161
0.608967
[ "object", "vector" ]
86ba8632135eda6c170951282581a64849d32e9c
7,969
cpp
C++
Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformMemory.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
null
null
null
Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformMemory.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
2
2015-06-21T17:38:11.000Z
2015-06-22T20:54:42.000Z
Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformMemory.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
null
null
null
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. /*============================================================================= LinuxPlatformMemory.cpp: Linux platform memory functions =============================================================================*/ #include "CorePrivatePCH.h" #include "M...
28.665468
173
0.692935
[ "object" ]
86bc76a119b60d13949412c671e2d55eb52f037c
541
cpp
C++
backend/modeldesign/elements/sources/waveformsource.cpp
den-makarov/electronshik
8065842ab0e190b51e8a8745ff984b34fb8da82a
[ "BSD-3-Clause" ]
null
null
null
backend/modeldesign/elements/sources/waveformsource.cpp
den-makarov/electronshik
8065842ab0e190b51e8a8745ff984b34fb8da82a
[ "BSD-3-Clause" ]
null
null
null
backend/modeldesign/elements/sources/waveformsource.cpp
den-makarov/electronshik
8065842ab0e190b51e8a8745ff984b34fb8da82a
[ "BSD-3-Clause" ]
null
null
null
#include "waveformsource.h" namespace PowerLab { namespace ModelDesign { WaveFormSource::WaveFormSource(SignalType form) : m_signalType(form) { } std::vector<const ElementParameter*> WaveFormSource::getAllParameters() const { return m_parameters.getAllParameters(); } SignalType WaveFormSource::getSignalType() c...
18.655172
79
0.763401
[ "vector" ]
86c15059f831524cf38a6add0ed8c1dc96539653
37,203
hpp
C++
src/types/internal.hpp
LePtitDev/lite-script
2bd3233586737b6e53d5748b03cc21d53702a6c2
[ "BSD-3-Clause" ]
6
2017-09-01T11:27:47.000Z
2020-01-16T18:53:10.000Z
src/types/internal.hpp
LePtitDev/lite-script
2bd3233586737b6e53d5748b03cc21d53702a6c2
[ "BSD-3-Clause" ]
null
null
null
src/types/internal.hpp
LePtitDev/lite-script
2bd3233586737b6e53d5748b03cc21d53702a6c2
[ "BSD-3-Clause" ]
null
null
null
///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// /* Copyright (C) 2017 LePtitDev All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for de...
25.85337
116
0.4891
[ "object", "vector" ]
86c25f8316e9e3158d770a6bb62b34346686e921
1,606
hpp
C++
util/cartesian_product.hpp
rburing/kontsevich_graph_series-
20d443646d7047f5d273c2a44436ef7e5e9b63ca
[ "MIT" ]
4
2017-10-04T20:07:55.000Z
2019-09-16T17:54:51.000Z
util/cartesian_product.hpp
rburing/kontsevich_graph_series-cpp
20d443646d7047f5d273c2a44436ef7e5e9b63ca
[ "MIT" ]
null
null
null
util/cartesian_product.hpp
rburing/kontsevich_graph_series-cpp
20d443646d7047f5d273c2a44436ef7e5e9b63ca
[ "MIT" ]
null
null
null
#ifndef INCLUDED_CARTESIAN_PRODUCT_H_ #define INCLUDED_CARTESIAN_PRODUCT_H_ #include <vector> #include <numeric> #include <algorithm> class CartesianProduct : public std::iterator<std::input_iterator_tag, std::vector<size_t> > { std::vector<size_t>& d_ends; long long d_length; long long d_position; p...
22.619718
92
0.599626
[ "vector" ]
86c2ad30b4db50b83ffb257033c53aaa9d2f2843
1,192
cpp
C++
Trees/InOrderTraversalOfCartesianTree.cpp
ssokjin/Interview-Bit
8714d3d627eb5875f49d205af779b59ca33ab4a3
[ "MIT" ]
513
2016-08-16T12:52:14.000Z
2022-03-30T19:32:10.000Z
Trees/InOrderTraversalOfCartesianTree.cpp
CodeOctal/Interview-Bit
88c021685d6cdef17906d077411ce34723363a08
[ "MIT" ]
25
2018-02-14T15:25:48.000Z
2022-03-23T11:52:08.000Z
Trees/InOrderTraversalOfCartesianTree.cpp
CodeOctal/Interview-Bit
88c021685d6cdef17906d077411ce34723363a08
[ "MIT" ]
505
2016-09-02T15:04:20.000Z
2022-03-25T06:36:31.000Z
// https://www.interviewbit.com/problems/inorder-traversal-of-cartesian-tree/ /** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ int findMax(vector<int> &A, int start, int end){ ...
25.361702
93
0.583054
[ "vector" ]
f86ad36d9c7f63e4fe2c75702df74ffebd39ee3b
1,360
cc
C++
frontend_direct3d9/EntrypointD3D9.cc
zhuman/foo_wave_seekbar
e53d99a5d7fe451a36299a4c2e58210ad21ebfd5
[ "BSL-1.0" ]
null
null
null
frontend_direct3d9/EntrypointD3D9.cc
zhuman/foo_wave_seekbar
e53d99a5d7fe451a36299a4c2e58210ad21ebfd5
[ "BSL-1.0" ]
null
null
null
frontend_direct3d9/EntrypointD3D9.cc
zhuman/foo_wave_seekbar
e53d99a5d7fe451a36299a4c2e58210ad21ebfd5
[ "BSL-1.0" ]
null
null
null
// Copyright Lars Viklund 2008 - 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include "PchDirect3D9.h" #include "Direct3D9.h" #include <cstdint> #include <vector> static void f() ...
26.666667
130
0.696324
[ "vector" ]
f86cfdc511bdb978f3fdbefec03f1b98371c5488
5,832
cpp
C++
src/cpp/software_h264_encoder.cpp
andersfischernielsen/rospilot
fcfc3d2c27d940072e90e38aee505efd0e7a398f
[ "Apache-2.0" ]
null
null
null
src/cpp/software_h264_encoder.cpp
andersfischernielsen/rospilot
fcfc3d2c27d940072e90e38aee505efd0e7a398f
[ "Apache-2.0" ]
null
null
null
src/cpp/software_h264_encoder.cpp
andersfischernielsen/rospilot
fcfc3d2c27d940072e90e38aee505efd0e7a398f
[ "Apache-2.0" ]
null
null
null
/********************************************************************* * * Copyright 2012 the original author or authors. * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not...
31.524324
91
0.661694
[ "vector" ]
f86d9073812a44b6776a11fd16f37ed0b816405e
710
hpp
C++
mustache_class_method_lambda.hpp
cmb69/php-mustache
a70cdeb18d83fff4890c41083072b9fa4aa30a8c
[ "MIT" ]
35
2015-07-17T02:36:17.000Z
2022-03-24T04:06:44.000Z
mustache_class_method_lambda.hpp
cmb69/php-mustache
a70cdeb18d83fff4890c41083072b9fa4aa30a8c
[ "MIT" ]
44
2015-04-14T20:45:09.000Z
2020-11-16T23:57:42.000Z
mustache_class_method_lambda.hpp
cmb69/php-mustache
a70cdeb18d83fff4890c41083072b9fa4aa30a8c
[ "MIT" ]
20
2015-01-06T15:49:36.000Z
2022-01-15T19:20:28.000Z
#ifndef PHP_MUSTACHE_CLASS_METHOD_LAMBDA_HPP #define PHP_MUSTACHE_CLASS_METHOD_LAMBDA_HPP #include "mustache_lambda.hpp" #ifdef __cplusplus extern "C" { #endif class ClassMethodLambda : public Lambda { private: zval * object; zval function_name; protected: int getUserFunctionParamCount(); in...
20.882353
90
0.733803
[ "object" ]
f86dd2cf9d65d4c06b708ba5bf7a0fa96e8858d7
11,980
hpp
C++
duds/ui/graphics/BppPositionIndicator.hpp
jjackowski/duds
0fc4eec0face95c13575672f2a2d8625517c9469
[ "BSD-2-Clause" ]
null
null
null
duds/ui/graphics/BppPositionIndicator.hpp
jjackowski/duds
0fc4eec0face95c13575672f2a2d8625517c9469
[ "BSD-2-Clause" ]
null
null
null
duds/ui/graphics/BppPositionIndicator.hpp
jjackowski/duds
0fc4eec0face95c13575672f2a2d8625517c9469
[ "BSD-2-Clause" ]
null
null
null
/* * This file is part of the DUDS project. It is subject to the BSD-style * license terms in the LICENSE file found in the top-level directory of this * distribution and at https://github.com/jjackowski/duds/blob/master/LICENSE. * No part of DUDS, including this file, may be copied, modified, propagated, * or dis...
36.975309
88
0.694574
[ "render", "vector" ]
f870e0c0926dc80dbc7ab92a5ac763749513c52e
577
hpp
C++
include/tracer/core/lightray.hpp
rfrazier716/ray_tracer_challenge
bd9ec0d5aadd529f904c96a603a662fc614c3a42
[ "MIT" ]
null
null
null
include/tracer/core/lightray.hpp
rfrazier716/ray_tracer_challenge
bd9ec0d5aadd529f904c96a603a662fc614c3a42
[ "MIT" ]
null
null
null
include/tracer/core/lightray.hpp
rfrazier716/ray_tracer_challenge
bd9ec0d5aadd529f904c96a603a662fc614c3a42
[ "MIT" ]
null
null
null
#pragma once #include "tracer/geometry/geometry.hpp" #include "tracer/colors.hpp" namespace tracer { struct LightRay { COLOR color = WHITE; //!< Color of the light, as RGB float intensity = 100.0f; //!< Intensity of the light, arbitrary units int generationNumber = 1; //!< How many times the ray has been...
28.85
121
0.714038
[ "geometry" ]
f871b5aa7e69db082b85c25d01c9df6df7c79ccc
6,393
cpp
C++
reader/android-reader/jni/NativeFormats/fbreader/src/formats/oeb/OEBMetaInfoReader.cpp
liufeiit/itmarry
9d48eac9ebf02d857658b3c9f70dab2321a3362b
[ "MIT" ]
1
2015-01-22T19:51:03.000Z
2015-01-22T19:51:03.000Z
reader/android-reader/jni/NativeFormats/fbreader/src/formats/oeb/OEBMetaInfoReader.cpp
liufeiit/itmarry
9d48eac9ebf02d857658b3c9f70dab2321a3362b
[ "MIT" ]
null
null
null
reader/android-reader/jni/NativeFormats/fbreader/src/formats/oeb/OEBMetaInfoReader.cpp
liufeiit/itmarry
9d48eac9ebf02d857658b3c9f70dab2321a3362b
[ "MIT" ]
null
null
null
/* * Copyright (C) 2004-2013 Geometer Plus <contact@geometerplus.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later ver...
30.735577
128
0.695761
[ "vector" ]
f8736ba367d4eb40400eb9d46fe73638de7e492c
3,588
hh
C++
libsrc/pylith/feassemble/FEKernelKey.hh
cehanagan/pylith
cf5c1c34040460a82f79b6eb54df894ed1b1ee93
[ "MIT" ]
93
2015-01-08T16:41:22.000Z
2022-02-25T13:40:02.000Z
libsrc/pylith/feassemble/FEKernelKey.hh
cehanagan/pylith
cf5c1c34040460a82f79b6eb54df894ed1b1ee93
[ "MIT" ]
277
2015-02-20T16:27:35.000Z
2022-03-30T21:13:09.000Z
libsrc/pylith/feassemble/FEKernelKey.hh
cehanagan/pylith
cf5c1c34040460a82f79b6eb54df894ed1b1ee93
[ "MIT" ]
71
2015-03-24T12:11:08.000Z
2022-03-03T04:26:02.000Z
// -*- 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://...
33.53271
91
0.612319
[ "object" ]
f8756a90589ae404ca28f13c9d5518047d9633ce
4,764
hpp
C++
src/PluginVisSlice/ToolUtils.hpp
voxie-viewer/voxie
d2b5e6760519782e9ef2e51f5322a3baa0cb1198
[ "MIT" ]
4
2016-06-03T18:41:43.000Z
2020-04-17T20:28:58.000Z
src/PluginVisSlice/ToolUtils.hpp
voxie-viewer/voxie
d2b5e6760519782e9ef2e51f5322a3baa0cb1198
[ "MIT" ]
null
null
null
src/PluginVisSlice/ToolUtils.hpp
voxie-viewer/voxie
d2b5e6760519782e9ef2e51f5322a3baa0cb1198
[ "MIT" ]
null
null
null
/* * Copyright (c) 2014-2022 The Voxie Authors * * 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, mer...
37.21875
80
0.754198
[ "transform" ]
f8765307ee3fbbd6854ba42f8d7f95570418febe
4,827
cpp
C++
src/glott/QmfFunctions.cpp
entn-at/GlottDNN
b7db669d7f34da92ab34742d75a8ba3c70763a65
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/glott/QmfFunctions.cpp
entn-at/GlottDNN
b7db669d7f34da92ab34742d75a8ba3c70763a65
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/glott/QmfFunctions.cpp
entn-at/GlottDNN
b7db669d7f34da92ab34742d75a8ba3c70763a65
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
// Copyright 2016-2018 Lauri Juvela and Manu Airaksinen // // 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 appli...
27.426136
97
0.649886
[ "vector" ]
f876ffecd0cbe57ffd808b925aaecf8002645cf7
629
cpp
C++
third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.cpp
xzhan96/chromium.src
1bd0cf3997f947746c0fc5406a2466e7b5f6159e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-01-07T18:51:03.000Z
2021-01-07T18:51:03.000Z
third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.cpp
emilio/chromium.src
1bd0cf3997f947746c0fc5406a2466e7b5f6159e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.cpp
emilio/chromium.src
1bd0cf3997f947746c0fc5406a2466e7b5f6159e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "platform/graphics/paint/ClipPaintPropertyNode.h" #include "platform/geometry/LayoutRect.h" namespace blink { ClipPaintPropertyNode* ClipPaint...
31.45
75
0.699523
[ "geometry" ]
f886e5860915d28850f713d572ac022850931e94
38,463
cpp
C++
src/main.cpp
robbiedeloose/AquariumController
2e13469c62a3cb141e6d2d79136da05605c4436f
[ "MIT" ]
null
null
null
src/main.cpp
robbiedeloose/AquariumController
2e13469c62a3cb141e6d2d79136da05605c4436f
[ "MIT" ]
null
null
null
src/main.cpp
robbiedeloose/AquariumController
2e13469c62a3cb141e6d2d79136da05605c4436f
[ "MIT" ]
null
null
null
#include <Arduino.h> #include "Credentials.h" // WIFI, MQTT & OTA #include <ESP8266WiFi.h> #include <ESP8266mDNS.h> #include <WiFiUdp.h> #include <PubSubClient.h> #include <ArduinoOTA.h> #include <OneWire.h> #include <DallasTemperature.h> #define HOSTNAME "aquarium60" #define VERSION 0.4 // If not using the Credenti...
28.491111
155
0.614851
[ "object" ]
f88820aeda9a7c76a585dd88bf0a37e9107117e3
3,634
cc
C++
chrome/browser/ash/web_applications/eche_app_integration_browsertest.cc
iridium-browser/iridium-browser
907e31cf5ce5ad14d832796e3a7c11e496828959
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
575
2015-06-18T23:58:20.000Z
2022-03-23T09:32:39.000Z
chrome/browser/ash/web_applications/eche_app_integration_browsertest.cc
iridium-browser/iridium-browser
907e31cf5ce5ad14d832796e3a7c11e496828959
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
chrome/browser/ash/web_applications/eche_app_integration_browsertest.cc
iridium-browser/iridium-browser
907e31cf5ce5ad14d832796e3a7c11e496828959
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
52
2015-07-14T10:40:50.000Z
2022-03-15T01:11:49.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 "ash/constants/ash_features.h" #include "base/test/scoped_feature_list.h" #include "chrome/browser/ash/web_applications/system_web_app_integratio...
39.5
83
0.777931
[ "geometry" ]
f8927b811a6c0358a7bfeda413607ea8853f3491
652
cpp
C++
ARRAYS/Two_sum.cpp
vsvipul11/Datastructres_CPP
a63c62c424aba805d1a17f6cb1a6036fad42dd68
[ "MIT" ]
2
2021-01-01T20:36:09.000Z
2022-03-09T21:11:22.000Z
ARRAYS/Two_sum.cpp
vsvipul11/Datastructres_CPP
a63c62c424aba805d1a17f6cb1a6036fad42dd68
[ "MIT" ]
null
null
null
ARRAYS/Two_sum.cpp
vsvipul11/Datastructres_CPP
a63c62c424aba805d1a17f6cb1a6036fad42dd68
[ "MIT" ]
1
2021-05-14T15:53:15.000Z
2021-05-14T15:53:15.000Z
#include <bits/stdc++.h> #include <algorithm> using namespace std; vector <int> sol(vector<int> &v , int target){ unordered_set<int> s; vector<int> ans; for(int i = 0 ; i < v.size() ; i++){ int x = target - v[i]; if(s.find(x) != s.end() ){ ans.push...
16.717949
46
0.41411
[ "vector" ]
f898593c8b2d68193f0084ded9ba517c5d45708a
41,893
cpp
C++
src/ethzasl_icp_mapping/ethzasl_icp_mapper/src/dynamic_mapper.cpp
KRudraksh/Relocalisation
9f5ab3a6ee8b1ce25a26cb92a3ed23c882a2f447
[ "MIT" ]
null
null
null
src/ethzasl_icp_mapping/ethzasl_icp_mapper/src/dynamic_mapper.cpp
KRudraksh/Relocalisation
9f5ab3a6ee8b1ce25a26cb92a3ed23c882a2f447
[ "MIT" ]
null
null
null
src/ethzasl_icp_mapping/ethzasl_icp_mapper/src/dynamic_mapper.cpp
KRudraksh/Relocalisation
9f5ab3a6ee8b1ce25a26cb92a3ed23c882a2f447
[ "MIT" ]
null
null
null
#include <fstream> #include <boost/version.hpp> #include <boost/thread.hpp> #if BOOST_VERSION >= 104100 #include <boost/thread/future.hpp> #endif // BOOST_VERSION >= 104100 #include "ros/ros.h" #include "ros/console.h" #include "pointmatcher/PointMatcher.h" #include "pointmatcher/Timer.h" #include "nabo/nabo.h" #...
31.333583
220
0.720216
[ "transform", "3d" ]
f8a717655e4b5b1cdf5df65b8961d034c8ada1a2
4,143
cpp
C++
src/main.cpp
brakmic-aleksandar/not-top
5a211331dd69935e6bb4cb62a2584f99c3519055
[ "Apache-2.0" ]
1
2022-03-08T12:16:28.000Z
2022-03-08T12:16:28.000Z
src/main.cpp
brakmic-aleksandar/not-top
5a211331dd69935e6bb4cb62a2584f99c3519055
[ "Apache-2.0" ]
null
null
null
src/main.cpp
brakmic-aleksandar/not-top
5a211331dd69935e6bb4cb62a2584f99c3519055
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <cctype> #include <vector> #include <ftxui/dom/elements.hpp> #include <ftxui/screen/screen.hpp> #include <ftxui/dom/table.hpp> #include "ftxui/component/captured_mouse.hpp" // for ftxui #include "ftxui/component/component.hpp" // for Renderer, Button, Vertical #include "ftxui/compon...
29.176056
96
0.674873
[ "render", "vector", "transform" ]
f8a7f0fdec0d9e654ec77d0c6b3da0266864932a
3,971
hpp
C++
include/terabee/ITerarangerEvoMini.hpp
Terabee/terabee_api
87ed2f00b8a807e28fa1117923736db611a1945d
[ "MIT" ]
6
2020-06-09T07:56:50.000Z
2022-01-16T08:20:01.000Z
include/terabee/ITerarangerEvoMini.hpp
Terabee/terabee_api
87ed2f00b8a807e28fa1117923736db611a1945d
[ "MIT" ]
3
2020-06-26T01:24:32.000Z
2021-04-21T07:55:54.000Z
include/terabee/ITerarangerEvoMini.hpp
Terabee/terabee_api
87ed2f00b8a807e28fa1117923736db611a1945d
[ "MIT" ]
1
2020-11-22T16:48:05.000Z
2020-11-22T16:48:05.000Z
#ifndef I_TERARANGER_EVO_MINI_HPP #define I_TERARANGER_EVO_MINI_HPP /** * @Author Pawel Ptasznik * * @Copyright Terabee 2020 * */ /** * \example ExampleReadEvoMini.cpp */ #include "terabee/DistanceData.hpp" namespace terabee { /** * Interface to <a href="https://www.terabee.com/shop/lidar-tof-range-finders...
29.857143
132
0.676656
[ "object" ]
f8acd42909e07e346279cb0ca55496ffbe733628
1,719
cpp
C++
tests/test-dnskey.cpp
sischkg/nxnsattack
c20896e40187bbcacb5c0255ff8f3cc7d0592126
[ "MIT" ]
5
2020-05-22T10:01:51.000Z
2022-01-01T04:45:14.000Z
tests/test-dnskey.cpp
sischkg/dns-fuzz-server
6f45079014e745537c2f564fdad069974e727da1
[ "MIT" ]
1
2020-06-07T14:09:44.000Z
2020-06-07T14:09:44.000Z
tests/test-dnskey.cpp
sischkg/dns-fuzz-server
6f45079014e745537c2f564fdad069974e727da1
[ "MIT" ]
2
2020-03-10T03:06:20.000Z
2021-07-25T15:07:45.000Z
#include "zonesigner.hpp" #include "gtest/gtest.h" #include <cstring> #include <iostream> #include <boost/log/trivial.hpp> class DNSKEYTest : public ::testing::Test { public: virtual void SetUp() { } virtual void TearDown() { } }; const char *KSK_DNSKEY_BASE64 = "AwEAAdYg5E46kVXXLNnVZYG...
28.180328
72
0.761489
[ "vector" ]
f8b16377ed94b26513f78a6ae08fc122f64123ea
2,742
cpp
C++
src/atta/componentSystem/components/transformComponent.cpp
brenocq/atta
dc0f3429c26be9b0a340e63076f00f996e9282cc
[ "MIT" ]
5
2021-11-18T02:44:45.000Z
2021-12-21T17:46:10.000Z
src/atta/componentSystem/components/transformComponent.cpp
Brenocq/RobotSimulator
dc0f3429c26be9b0a340e63076f00f996e9282cc
[ "MIT" ]
1
2021-11-18T02:56:14.000Z
2021-12-04T15:09:16.000Z
src/atta/componentSystem/components/transformComponent.cpp
Brenocq/RobotSimulator
dc0f3429c26be9b0a340e63076f00f996e9282cc
[ "MIT" ]
3
2020-09-10T07:17:00.000Z
2020-11-05T10:24:41.000Z
//-------------------------------------------------- // Atta Component System // transformComponent.cpp // Date: 2021-11-16 // By Breno Cunha Queiroz //-------------------------------------------------- #include <atta/componentSystem/componentManager.h> #include <atta/componentSystem/components/transformComponent.h> #i...
36.078947
135
0.60248
[ "transform" ]
f8b9ac6ee7b92523c9d6d88bdf39c2f61fcdf63f
1,280
cpp
C++
Algorithms/Implementation/magic-square-forming.cpp
CodeLogist/hackerrank-solutions
faecc4c9563a017eb61e83f0025aa9eb78fd33a1
[ "MIT" ]
73
2016-09-14T18:20:41.000Z
2022-02-05T14:58:04.000Z
Algorithms/Implementation/magic-square-forming.cpp
A-STAR0/hackerrank-solutions-1
518cdd9049477d70c499ba4f51f06ac99178f0ab
[ "MIT" ]
3
2017-03-03T01:12:31.000Z
2020-04-18T16:51:59.000Z
Algorithms/Implementation/magic-square-forming.cpp
A-STAR0/hackerrank-solutions-1
518cdd9049477d70c499ba4f51f06ac99178f0ab
[ "MIT" ]
69
2017-03-02T19:03:54.000Z
2022-03-29T12:35:38.000Z
#include <cmath> #include <vector> #include <iostream> #include <utility> #include <limits> typedef std::vector<std::vector<int>> matrix; static int calc_cost(const matrix& a, const matrix& b) { int tmp = 0; for (size_t i = 0, j; i < a.size(); ++i) { for (j = 0; j < a[i].size(); ++j) { tmp...
23.272727
92
0.417188
[ "vector", "solid" ]
f8c82a3884d8ccb9c18ca5d84a2edb3252654c81
7,270
cpp
C++
src/adapter/filesystem.cpp
InsaneHamster/ihamster
0f09e7eec3dff68ba7c2e899b03fd75940d3e242
[ "MIT" ]
1
2018-01-28T14:10:26.000Z
2018-01-28T14:10:26.000Z
src/adapter/filesystem.cpp
InsaneHamster/ihamster
0f09e7eec3dff68ba7c2e899b03fd75940d3e242
[ "MIT" ]
null
null
null
src/adapter/filesystem.cpp
InsaneHamster/ihamster
0f09e7eec3dff68ba7c2e899b03fd75940d3e242
[ "MIT" ]
null
null
null
#include <adapter/filesystem.hpp> #include <cmn/log.hpp> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <dirent.h> #include <cerrno> #include <stdlib.h> #include <stddef.h> namespace adapter { //motivation: http://stackoverflow.com/questions/1023306/finding-current-executables-path-witho...
37.864583
137
0.469464
[ "vector" ]
f8cf33a2a7c990d8fded3e0407cae388562b6743
1,551
cpp
C++
cpp/sololearn/s28_composition/Person.cpp
bayramcicek/py-repo
e99d8881dd3eb5296ec5dcfba4de2c3418044897
[ "Unlicense" ]
null
null
null
cpp/sololearn/s28_composition/Person.cpp
bayramcicek/py-repo
e99d8881dd3eb5296ec5dcfba4de2c3418044897
[ "Unlicense" ]
null
null
null
cpp/sololearn/s28_composition/Person.cpp
bayramcicek/py-repo
e99d8881dd3eb5296ec5dcfba4de2c3418044897
[ "Unlicense" ]
null
null
null
// C11 standard // created by cicek on Feb 04, 2021 7:48 PM #include <iostream> #include <string> #include "Birthday.h" using namespace std; /* * The Person class has a name and a Birthday member, and a constructor to initialize them. Ensure that the corresponding header files are included. */ class Person { publ...
24.234375
104
0.644101
[ "object" ]
f8d7dc0f6ac373a7530b4679a5abd83152d7049a
1,059
cpp
C++
Algorithms/1093.Statistics_from_a_Large_Sample.cpp
metehkaya/LeetCode
52f4a1497758c6f996d515ced151e8783ae4d4d2
[ "MIT" ]
2
2020-07-20T06:40:22.000Z
2021-11-20T01:23:26.000Z
Problems/LeetCode/Problems/1093.Statistics_from_a_Large_Sample.cpp
metehkaya/Algo-Archive
03b5fdcf06f84a03125c57762c36a4e03ca6e756
[ "MIT" ]
null
null
null
Problems/LeetCode/Problems/1093.Statistics_from_a_Large_Sample.cpp
metehkaya/Algo-Archive
03b5fdcf06f84a03125c57762c36a4e03ca6e756
[ "MIT" ]
null
null
null
class Solution { public: double f(vector<int>& count, int sum) { int total = 0; for( int i = 0 ; i < 256 ; i++ ) { total += count[i]; if(total >= sum) return i; } return -1; } vector<double> sampleStats(vector<int>& count) { vec...
27.868421
59
0.347498
[ "vector" ]
f8d889f9360facb56f5b01447512cedda784126f
4,684
cpp
C++
pxr/base/tf/pyError.cpp
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
88
2018-07-13T01:22:00.000Z
2022-01-16T22:15:27.000Z
pxr/base/tf/pyError.cpp
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
5
2021-12-16T03:19:10.000Z
2022-03-31T23:14:02.000Z
pxr/base/tf/pyError.cpp
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
26
2018-06-06T03:39:22.000Z
2021-08-28T23:02:42.000Z
// // Copyright 2016 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
39.033333
80
0.597993
[ "object", "vector" ]
f8dfe80727553e309c5dc033beceb9127cfac07f
824
cpp
C++
GY/Function Run Fun.cpp
windcry1/My-ACM-ICPC
b85b1c83b72c6b51731dae946a0df57c31d3e7a1
[ "MIT" ]
null
null
null
GY/Function Run Fun.cpp
windcry1/My-ACM-ICPC
b85b1c83b72c6b51731dae946a0df57c31d3e7a1
[ "MIT" ]
null
null
null
GY/Function Run Fun.cpp
windcry1/My-ACM-ICPC
b85b1c83b72c6b51731dae946a0df57c31d3e7a1
[ "MIT" ]
null
null
null
#include<cstdio> #include<cstring> #include<cmath> #include<cstdlib> #include<cctype> #include<ctime> #include<iostream> #include<string> #include<map> #include<queue> #include<set> #include<vector> #include<iomanip> #include<bitset> #include<algorithm> #define ll long long using namespace std; ll a,b,c; ll w[25][25][2...
21.684211
94
0.581311
[ "vector" ]
25cd2d17557d4f9a20a93790aff9d41366eb3f3b
318
cpp
C++
src/processor.cpp
creelmansam/Linux-System-Monitor
b6f63f4ca266e7940e16f685ec1fdaeeda8e630c
[ "MIT" ]
null
null
null
src/processor.cpp
creelmansam/Linux-System-Monitor
b6f63f4ca266e7940e16f685ec1fdaeeda8e630c
[ "MIT" ]
null
null
null
src/processor.cpp
creelmansam/Linux-System-Monitor
b6f63f4ca266e7940e16f685ec1fdaeeda8e630c
[ "MIT" ]
null
null
null
#include <vector> #include <string> #include "linux_parser.h" #include "processor.h" using std::vector; using std::string; float Processor::Utilization() { vector<long> cpu_utilization = LinuxParser::CpuUtilization(); return static_cast<float>(cpu_utilization[0] - cpu_utilization[2]) / cpu_utilization[0]; }
22.714286
91
0.742138
[ "vector" ]
25d4cefd82797ae11dab62562283e4edf6fb3dd8
1,675
cpp
C++
OpenGL/Game/Source/Private/GameProgram.cpp
Milswanca/OpenGL_FINAL
a16e0f6ce62e34b4b27866afba63463c6fce5ed0
[ "MIT" ]
null
null
null
OpenGL/Game/Source/Private/GameProgram.cpp
Milswanca/OpenGL_FINAL
a16e0f6ce62e34b4b27866afba63463c6fce5ed0
[ "MIT" ]
null
null
null
OpenGL/Game/Source/Private/GameProgram.cpp
Milswanca/OpenGL_FINAL
a16e0f6ce62e34b4b27866afba63463c6fce5ed0
[ "MIT" ]
null
null
null
#include "PCH.h" #include "GameProgram.h" #include "Shader.h" #include "Math/Matrix4x4.h" #include "Math/Vector4.h" #include "Transform.h" #include "Material.h" #include "Camera.h" #include "Engine.h" #include "TimeManager.h" #include "AssetLoader.h" #include "Mesh.h" GameProgram::GameProgram(const ObjectInitData& _...
22.945205
86
0.720597
[ "mesh", "render", "model", "transform" ]
25daa4a70e1747fa94273ce9090b082b346c8d5a
1,043
cpp
C++
week1/snacks.cpp
shaili-regmi/cpp-examples
66c8813b6ef301604c5003b103c1f11d5ee7519b
[ "MIT" ]
null
null
null
week1/snacks.cpp
shaili-regmi/cpp-examples
66c8813b6ef301604c5003b103c1f11d5ee7519b
[ "MIT" ]
null
null
null
week1/snacks.cpp
shaili-regmi/cpp-examples
66c8813b6ef301604c5003b103c1f11d5ee7519b
[ "MIT" ]
null
null
null
// Bryn Mawr College, 2021 // Write a program which reads `snacks.txt` and initializes an array of struct Snack #include <iostream> #include <fstream> #include <sstream> #include <vector> #include <string> using namespace std; // TODO: Define struct Snack struct Snack { string name; int quantity; int pric...
21.285714
125
0.586769
[ "vector" ]
25e990bb5cefd18954acda90f084f8e06764fbc9
1,753
hh
C++
common/stl_out.hh
Thomas1205/RegAligner
2c410c124e844c60af9bd7019ef1a78199893f46
[ "IBM-pibs" ]
2
2016-02-29T07:31:13.000Z
2017-02-23T19:02:46.000Z
common/stl_out.hh
Thomas1205/RegAligner
2c410c124e844c60af9bd7019ef1a78199893f46
[ "IBM-pibs" ]
null
null
null
common/stl_out.hh
Thomas1205/RegAligner
2c410c124e844c60af9bd7019ef1a78199893f46
[ "IBM-pibs" ]
null
null
null
/*** written by Thomas Schoenemann as a private person without employment, September 2009 ***/ #ifndef STL_OUT_HH #define STL_OUT_HH #include <map> #include <vector> #include <set> #include <iostream> /*************** declarations ******************/ template <typename T> std::ostream& operator<<(std::ostream& os, ...
19.696629
94
0.552767
[ "vector" ]
25f11395796b9f3f5d2b990b5b6b391714c12dfe
6,192
hpp
C++
src/PointwiseFunctions/GeneralRelativity/ComputeSpacetimeQuantities.hpp
marissawalker/spectre
afc8205e2f697de5e8e4f05e881499e05c9fd8a0
[ "MIT" ]
null
null
null
src/PointwiseFunctions/GeneralRelativity/ComputeSpacetimeQuantities.hpp
marissawalker/spectre
afc8205e2f697de5e8e4f05e881499e05c9fd8a0
[ "MIT" ]
null
null
null
src/PointwiseFunctions/GeneralRelativity/ComputeSpacetimeQuantities.hpp
marissawalker/spectre
afc8205e2f697de5e8e4f05e881499e05c9fd8a0
[ "MIT" ]
null
null
null
// Distributed under the MIT License. // See LICENSE.txt for details. ///\file /// Defines Functions for calculating spacetime tensors from 3+1 quantities #pragma once #include <cstddef> #include "DataStructures/Tensor/TypeAliases.hpp" /// \ingroup GeneralRelativityGroup /// Holds functions related to general rela...
36.210526
80
0.689276
[ "vector" ]
25f41d6c138df4fadb5041993985838598d9c239
30,907
cpp
C++
aadcUser/frAIburg_ObjectDetection/object_detection.cpp
PhilJd/frAIburg
7585999953486bceb945f1eb7a96cbe94ea72186
[ "BSD-3-Clause" ]
10
2017-11-21T09:34:36.000Z
2021-07-06T21:15:28.000Z
aadcUser/frAIburg_ObjectDetection/object_detection.cpp
PhilJd/frAIburg
7585999953486bceb945f1eb7a96cbe94ea72186
[ "BSD-3-Clause" ]
null
null
null
aadcUser/frAIburg_ObjectDetection/object_detection.cpp
PhilJd/frAIburg
7585999953486bceb945f1eb7a96cbe94ea72186
[ "BSD-3-Clause" ]
null
null
null
/********************************************************************** Copyright (c) 2017, team frAIburg Licensed under BSD-3. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistribution...
45.92422
162
0.655224
[ "object", "shape", "vector" ]
25f47bdc38c433d80a4625828faa1a32056e8405
1,120
cpp
C++
challenges/06/main.cpp
pviafore/advent-of-code-2017
8af9e0c6769dc10dbb470f47f6fb0f9da5dd0d3f
[ "MIT" ]
4
2017-12-03T04:05:08.000Z
2017-12-07T19:59:15.000Z
challenges/06/main.cpp
pviafore/advent-of-code-2017
8af9e0c6769dc10dbb470f47f6fb0f9da5dd0d3f
[ "MIT" ]
null
null
null
challenges/06/main.cpp
pviafore/advent-of-code-2017
8af9e0c6769dc10dbb470f47f6fb0f9da5dd0d3f
[ "MIT" ]
1
2021-12-09T10:12:30.000Z
2021-12-09T10:12:30.000Z
#include <algorithm> #include <assert.h> #include <iostream> #include <set> #include "algo.h" #include "input.h" auto getNumberOfTimesBeforeSeeingDuplicates(const auto &input) { auto numbers = input; std::vector<decltype(numbers)> v; auto numberOfTimesThroughLoop = 0u; while(std::find(v.begin(), ...
29.473684
90
0.641964
[ "vector" ]
25f9883de2d31b888f4514608d96a296f0d9a346
4,914
cc
C++
sfdb/engine/engine.cc
ipr0/sfdb
1d4b96adf41324a399dbee30c804c35d4f1eecdd
[ "Apache-2.0" ]
5
2020-03-21T19:41:00.000Z
2022-03-09T20:24:02.000Z
sfdb/engine/engine.cc
ipr0/sfdb
1d4b96adf41324a399dbee30c804c35d4f1eecdd
[ "Apache-2.0" ]
9
2020-03-24T22:22:44.000Z
2022-02-27T01:31:34.000Z
sfdb/engine/engine.cc
ipr0/sfdb
1d4b96adf41324a399dbee30c804c35d4f1eecdd
[ "Apache-2.0" ]
2
2020-03-25T22:55:48.000Z
2020-04-26T14:35:41.000Z
/* * Copyright (c) 2019 Google LLC. * * 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 you under the Apache License,...
31.5
79
0.67033
[ "vector" ]
d3020d76f26a0a208bf916ab89d725155035efa5
1,126
cpp
C++
sources/main.cpp
Dimontich/lab-01-parser
e508dcfdc7a7971b445e1caf735aa1bbfbc7cf30
[ "MIT" ]
null
null
null
sources/main.cpp
Dimontich/lab-01-parser
e508dcfdc7a7971b445e1caf735aa1bbfbc7cf30
[ "MIT" ]
null
null
null
sources/main.cpp
Dimontich/lab-01-parser
e508dcfdc7a7971b445e1caf735aa1bbfbc7cf30
[ "MIT" ]
null
null
null
// Copyright 2019 Dimontich #include <any> #include <ctime> #include <iostream> int main() { auto start = clock(); std::string json = "{\"lastname\" : \"Ivanov\", \"firstname\" : \"Ivan\", \"age\" " ": 25, \"islegal\" : false, \"marks\" : [ 4,5,5,5,2,3 " "], \"address\" : ...
33.117647
79
0.53286
[ "object" ]
d303523398b3499eb31c3b5f2ffaee3ced0c3b10
5,149
cc
C++
src/excel-table-builder.cc
CJWorkbench/arrow-tools
1944e40853d82d7dad3d47a72958326cefff367a
[ "MIT" ]
1
2021-11-23T03:57:03.000Z
2021-11-23T03:57:03.000Z
src/excel-table-builder.cc
CJWorkbench/arrow-tools
1944e40853d82d7dad3d47a72958326cefff367a
[ "MIT" ]
null
null
null
src/excel-table-builder.cc
CJWorkbench/arrow-tools
1944e40853d82d7dad3d47a72958326cefff367a
[ "MIT" ]
1
2021-11-23T03:57:06.000Z
2021-11-23T03:57:06.000Z
#include <cfenv> // std::fetestexcept() #include <cmath> // std::llround() #include <gflags/gflags.h> #include "column-builder.h" #include "common.h" #include "excel-table-builder.h" DECLARE_uint32(max_bytes_per_value); DECLARE_uint32(max_columns); DECLARE_string(header_rows); ExcelTableBuilder::ExcelTableBuilder() ...
33.653595
134
0.658963
[ "vector" ]
d3063971d0f41887e759e9a4aa31d6fa83abeb76
3,558
cc
C++
mindspore/lite/src/runtime/kernel/npu/pooling_npu.cc
GuoSuiming/mindspore
48afc4cfa53d970c0b20eedfb46e039db2a133d5
[ "Apache-2.0" ]
4
2021-01-26T09:14:01.000Z
2021-01-26T09:17:24.000Z
mindspore/lite/src/runtime/kernel/npu/pooling_npu.cc
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
null
null
null
mindspore/lite/src/runtime/kernel/npu/pooling_npu.cc
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
null
null
null
/** * Copyright 2020 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...
34.211538
118
0.687465
[ "vector" ]
d30e7a6c2d564eb7db418f6b3f8b731512dac647
1,084
cpp
C++
199-Binary-Tree-Right-Side-View/Binary-Tree-Right-Side-View.cpp
xta0/LeetCode-Solutions
ab0de97b35fb54c24bcef0398a9d75bdac9ee8b2
[ "MIT" ]
4
2018-08-07T11:45:32.000Z
2019-05-19T08:52:19.000Z
199-Binary-Tree-Right-Side-View/Binary-Tree-Right-Side-View.cpp
xta0/LeetCode-Solutions
ab0de97b35fb54c24bcef0398a9d75bdac9ee8b2
[ "MIT" ]
null
null
null
199-Binary-Tree-Right-Side-View/Binary-Tree-Right-Side-View.cpp
xta0/LeetCode-Solutions
ab0de97b35fb54c24bcef0398a9d75bdac9ee8b2
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <queue> using namespace std; struct TreeNode{ int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} }; //BFS //解法同 #513 class Solution { public: vector<int> rightSideView(TreeNode* root) { if(!root){ ...
20.074074
56
0.436347
[ "vector" ]
d3108929d91146d40f6b705e825b184b7bf6b574
2,432
hpp
C++
source/Plugins/PostEffects/SmaaPostEffect/SmaaPostEffect.hpp
DragonJoker/Castor3D
ee0b02eeda70cd235a224be306539850e32195f6
[ "MIT" ]
245
2015-10-29T14:31:45.000Z
2022-03-31T13:04:45.000Z
source/Plugins/PostEffects/SmaaPostEffect/SmaaPostEffect.hpp
DragonJoker/Castor3D
ee0b02eeda70cd235a224be306539850e32195f6
[ "MIT" ]
64
2016-03-11T19:45:05.000Z
2022-03-31T23:58:33.000Z
source/Plugins/PostEffects/SmaaPostEffect/SmaaPostEffect.hpp
DragonJoker/Castor3D
ee0b02eeda70cd235a224be306539850e32195f6
[ "MIT" ]
11
2018-05-24T09:07:43.000Z
2022-03-21T21:05:20.000Z
/* See LICENSE file in root folder */ #ifndef ___C3D_SmaaPostEffect_H___ #define ___C3D_SmaaPostEffect_H___ #include "SmaaPostEffect/EdgeDetection.hpp" #include "SmaaPostEffect/BlendingWeightCalculation.hpp" #include "SmaaPostEffect/NeighbourhoodBlending.hpp" #include "SmaaPostEffect/Reproject.hpp" #include <Castor3D...
28.27907
87
0.743421
[ "render" ]
d325329e72248ad33dbbb4436810f81fe76dc60d
273
cpp
C++
codewars/6kyu/Two Sum/Solution.cpp
xandersavvy/Problem-solving
de9fa307467f9823acfc32754b15671c93000bf1
[ "Unlicense" ]
null
null
null
codewars/6kyu/Two Sum/Solution.cpp
xandersavvy/Problem-solving
de9fa307467f9823acfc32754b15671c93000bf1
[ "Unlicense" ]
null
null
null
codewars/6kyu/Two Sum/Solution.cpp
xandersavvy/Problem-solving
de9fa307467f9823acfc32754b15671c93000bf1
[ "Unlicense" ]
null
null
null
std::pair<std::size_t, std::size_t> two_sum(const std::vector<int>& numbers, int target) { int len = numbers.size(); for(int i=0;i<(len-1);i++) for(int j=i+1;j<len;j++) if(numbers[i]+numbers[j]==target) return {i,j}; return {0, 0}; }
27.3
90
0.549451
[ "vector" ]
d325ecd405c2ac24c2415b0a8d6cfcb07d1874b8
160,684
cc
C++
EnergyPlus/ThermalComfort.cc
yurigabrich/EnergyPlusShadow
396ca83aa82b842e6b177ba35c91b3f481dfbbf9
[ "BSD-3-Clause" ]
null
null
null
EnergyPlus/ThermalComfort.cc
yurigabrich/EnergyPlusShadow
396ca83aa82b842e6b177ba35c91b3f481dfbbf9
[ "BSD-3-Clause" ]
1
2020-07-08T13:32:09.000Z
2020-07-08T13:32:09.000Z
EnergyPlus/ThermalComfort.cc
yurigabrich/EnergyPlusShadow
396ca83aa82b842e6b177ba35c91b3f481dfbbf9
[ "BSD-3-Clause" ]
null
null
null
// EnergyPlus, Copyright (c) 1996-2018, The Board of Trustees of the University of Illinois, // The Regents of the University of California, through Lawrence Berkeley National Laboratory // (subject to receipt of any required approvals from the U.S. Dept. of Energy), Oak Ridge // National Laboratory, managed by UT-Batt...
50.688959
150
0.560068
[ "object", "model" ]
d326209f4922c3d2524a9419210fac4236cd4b34
5,121
cpp
C++
bwi_nav2d/src/windowed_sim_joy.cpp
bluejamesbond/bwi_experimental
34acf75867869cb99862843591e6ec59d841b323
[ "BSD-3-Clause" ]
1
2016-11-25T22:45:52.000Z
2016-11-25T22:45:52.000Z
bwi_nav2d/src/windowed_sim_joy.cpp
bluejamesbond/bwi_experimental
34acf75867869cb99862843591e6ec59d841b323
[ "BSD-3-Clause" ]
null
null
null
bwi_nav2d/src/windowed_sim_joy.cpp
bluejamesbond/bwi_experimental
34acf75867869cb99862843591e6ec59d841b323
[ "BSD-3-Clause" ]
null
null
null
#include <ros/ros.h> #include <sensor_msgs/Joy.h> #include <geometry_msgs/TwistStamped.h> #include <boost/thread/thread.hpp> #include <string.h> #include <vector> #include <gtkmm.h> #define COMMAND_TIMEOUT_SEC 0.5 const int PUBLISH_FREQ = 20; class WindowedSimOperator { public: WindowedSimOperator(unsigned int num...
25.605
110
0.71861
[ "vector" ]
d327a0faabe600aa7d18748be690250418bc626e
14,631
cpp
C++
src/gromacs/gmxana/gmx_h2order.cpp
alexxy/gromacs
5a5b1be159beabc9ddd53eb22e3142bcb86d3aaa
[ "BSD-2-Clause" ]
null
null
null
src/gromacs/gmxana/gmx_h2order.cpp
alexxy/gromacs
5a5b1be159beabc9ddd53eb22e3142bcb86d3aaa
[ "BSD-2-Clause" ]
null
null
null
src/gromacs/gmxana/gmx_h2order.cpp
alexxy/gromacs
5a5b1be159beabc9ddd53eb22e3142bcb86d3aaa
[ "BSD-2-Clause" ]
null
null
null
/* * This file is part of the GROMACS molecular simulation package. * * Copyright 1991- The GROMACS Authors * and the project initiators Erik Lindahl, Berk Hess and David van der Spoel. * Consult the AUTHORS/COPYING files and https://www.gromacs.org for details. * * GROMACS is free software; you can redistribute...
38.502632
130
0.499282
[ "vector" ]
d332504b26948af2fc143087deacfd7d8e453675
10,462
cc
C++
src/dom/dom.cc
mywebengine/myserv
1b7e0a1822bd8cb62d0640392d58424633866c97
[ "MIT" ]
null
null
null
src/dom/dom.cc
mywebengine/myserv
1b7e0a1822bd8cb62d0640392d58424633866c97
[ "MIT" ]
null
null
null
src/dom/dom.cc
mywebengine/myserv
1b7e0a1822bd8cb62d0640392d58424633866c97
[ "MIT" ]
null
null
null
#include <iostream> #include <memory> #include <string> #include <vector> #include "../str.h" #include "./dom.h" using namespace std; namespace mydom { Document::Document() { } Document::Document(int idIdx) : idIdx_(idIdx) { } Document Document::clone() { Document newDoc(idIdx_); for (const PN...
29.38764
163
0.647295
[ "vector" ]
d33ab8165640a14f9cff262cb23b40b531dc9404
20,337
cpp
C++
project/src/treewalk_interpreter/parser.cpp
Jeff-Mott-OR/cpplox
6b2b771c50fd3d0121283d1f2e54860e1d263bca
[ "MIT" ]
57
2018-04-18T11:06:31.000Z
2022-01-26T22:15:01.000Z
project/src/treewalk_interpreter/parser.cpp
Jeff-Mott-OR/cpplox
6b2b771c50fd3d0121283d1f2e54860e1d263bca
[ "MIT" ]
24
2018-04-20T04:24:39.000Z
2018-11-13T06:11:37.000Z
project/src/treewalk_interpreter/parser.cpp
Jeff-Mott-OR/cpplox
6b2b771c50fd3d0121283d1f2e54860e1d263bca
[ "MIT" ]
6
2018-04-19T03:25:35.000Z
2020-02-20T03:22:52.000Z
#include "parser.hpp" #include <functional> #include <utility> #include "expression_impls.hpp" #include "statement_impls.hpp" using std::function; using std::move; using std::string; using std::to_string; using std::vector; using boost::optional; using deferred_heap_t = gcpp::deferred_heap; using gcpp::deferred_ptr...
39.184971
123
0.574126
[ "object", "vector" ]
d33e464af3ed0b2df45d7ebc5d3fae31cd8d1ea7
2,758
hpp
C++
src/lwmf_multithreading.hpp
StefanKubsch/lwmf
02687c23de6f09f904f29014f196e414368d2d3b
[ "Unlicense" ]
8
2020-01-28T12:34:44.000Z
2021-07-17T11:27:17.000Z
example/lwmf/lwmf_multithreading.hpp
StefanKubsch/stb_truetype.hpp
35b22fc98469057db917834091a4ae16e78776d5
[ "Unlicense" ]
3
2019-11-03T22:56:43.000Z
2020-09-16T08:26:50.000Z
src/lwmf_multithreading.hpp
StefanKubsch/lwmf
02687c23de6f09f904f29014f196e414368d2d3b
[ "Unlicense" ]
2
2021-02-02T19:16:07.000Z
2021-02-02T19:33:24.000Z
/* *************************************************************** * * * lwmf_multithreading - lightweight media framework * * * * (C) 2019 - present by Stefan Kubsch ...
22.983333
144
0.562727
[ "vector" ]
d3404d343e59dbe601dfa99ddf2b5b81a600a61d
5,163
inl
C++
include/Material.inl
Brandagot/SimpleRayTracing
c1fe53f186e901eb6000d3415930eddcb67410ad
[ "BSD-3-Clause" ]
null
null
null
include/Material.inl
Brandagot/SimpleRayTracing
c1fe53f186e901eb6000d3415930eddcb67410ad
[ "BSD-3-Clause" ]
null
null
null
include/Material.inl
Brandagot/SimpleRayTracing
c1fe53f186e901eb6000d3415930eddcb67410ad
[ "BSD-3-Clause" ]
2
2020-09-11T16:10:17.000Z
2021-07-05T14:12:02.000Z
/* Copyright (c) 2020, Dr Franck P. Vidal (f.vidal@bangor.ac.uk), http://www.fpvidal.net/ 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 copyrig...
26.613402
80
0.478017
[ "object" ]
d349e8527b1b3d96e0b109a53a263140296194ae
3,376
cc
C++
src/filter/all_zero_digital_filter.cc
takenori-y/SPTK
573df2dd032c39db2aa24de012d2fe9a44f96280
[ "Apache-2.0" ]
91
2017-12-25T14:13:17.000Z
2022-03-15T14:33:23.000Z
src/filter/all_zero_digital_filter.cc
takenori-y/SPTK
573df2dd032c39db2aa24de012d2fe9a44f96280
[ "Apache-2.0" ]
4
2020-09-28T03:58:29.000Z
2021-12-14T01:23:13.000Z
src/filter/all_zero_digital_filter.cc
takenori-y/SPTK
573df2dd032c39db2aa24de012d2fe9a44f96280
[ "Apache-2.0" ]
16
2018-03-12T07:08:09.000Z
2022-03-22T02:38:13.000Z
// ------------------------------------------------------------------------ // // Copyright 2021 SPTK Working Group // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
36.695652
79
0.526659
[ "vector" ]
d3508620d0a64d89b2ee876901f4648a2f4a759f
1,578
hpp
C++
src/benchmarklib/tpch/tpch_table_generator.hpp
mrks-test/hyrise
71480199f504cf9cffc86582cdac68dbb2ea4952
[ "MIT" ]
null
null
null
src/benchmarklib/tpch/tpch_table_generator.hpp
mrks-test/hyrise
71480199f504cf9cffc86582cdac68dbb2ea4952
[ "MIT" ]
null
null
null
src/benchmarklib/tpch/tpch_table_generator.hpp
mrks-test/hyrise
71480199f504cf9cffc86582cdac68dbb2ea4952
[ "MIT" ]
null
null
null
#pragma once #include <memory> #include <string> #include <unordered_map> #include <vector> #include "abstract_table_generator.hpp" #include "resolve_type.hpp" #include "storage/chunk.hpp" #include "storage/table.hpp" #include "storage/value_segment.hpp" #include "types.hpp" namespace opossum { class Chunk; class T...
32.875
115
0.788973
[ "vector" ]
d352cd88e9dee4d41d10be889db05a8ca27f6446
4,233
hpp
C++
libraries/blockchain/include/bts/blockchain/asset_record.hpp
emfrias/bitshares
8af3c28c2a7225857b2b37f7821332279b4fd66e
[ "Unlicense" ]
1
2015-01-02T17:23:13.000Z
2015-01-02T17:23:13.000Z
libraries/blockchain/include/bts/blockchain/asset_record.hpp
emfrias/bitshares
8af3c28c2a7225857b2b37f7821332279b4fd66e
[ "Unlicense" ]
null
null
null
libraries/blockchain/include/bts/blockchain/asset_record.hpp
emfrias/bitshares
8af3c28c2a7225857b2b37f7821332279b4fd66e
[ "Unlicense" ]
null
null
null
#pragma once #include <bts/blockchain/transaction.hpp> #include <bts/blockchain/types.hpp> #include <bts/blockchain/withdraw_types.hpp> namespace bts { namespace blockchain { enum asset_permissions { none = 0, retractable = 1 << 0, ///<! The issuer can sign inplace of the...
33.330709
106
0.592724
[ "vector" ]
d364f3cdc92fb91cfd69eeea7bb3245f26c4be2e
4,213
cc
C++
Core/runtime/v8/objects/navigator_object.cc
imchoi/lynx-native
d90073c6444e0e47f6b2d31f11f0a3350b5e1a10
[ "MIT" ]
null
null
null
Core/runtime/v8/objects/navigator_object.cc
imchoi/lynx-native
d90073c6444e0e47f6b2d31f11f0a3350b5e1a10
[ "MIT" ]
null
null
null
Core/runtime/v8/objects/navigator_object.cc
imchoi/lynx-native
d90073c6444e0e47f6b2d31f11f0a3350b5e1a10
[ "MIT" ]
null
null
null
// Copyright 2017 The Lynx Authors. All rights reserved. #if USING_V8 #include "runtime/config.h" #include "runtime/v8/objects/navigator_object.h" #include "runtime/v8/v8_helper.h" using v8::Local; using v8::Value; using v8::PropertyCallbackInfo; namespace jscore { NavigatorObject::NavigatorObject() { } Navigator...
33.173228
76
0.670544
[ "object" ]
d36dc312af373035d16c6b0626034b106ab242a7
10,432
cpp
C++
src/stt.cpp
junwenzzz/genie-client-cpp
0750956e0bdc1c4020ebda76b6cc6a175048959a
[ "Apache-2.0" ]
7
2021-12-23T20:08:58.000Z
2022-03-03T16:40:31.000Z
src/stt.cpp
junwenzzz/genie-client-cpp
0750956e0bdc1c4020ebda76b6cc6a175048959a
[ "Apache-2.0" ]
28
2021-08-16T18:33:10.000Z
2021-11-29T18:58:03.000Z
src/stt.cpp
junwenzzz/genie-client-cpp
0750956e0bdc1c4020ebda76b6cc6a175048959a
[ "Apache-2.0" ]
4
2021-08-16T23:05:18.000Z
2021-11-18T05:50:17.000Z
// -*- mode: cpp; indent-tabs-mode: nil; c-basic-offset: 2 -*- // // This file is part of Genie // // Copyright 2021 The Board of Trustees of the Leland Stanford Junior University // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. //...
29.977011
80
0.666219
[ "object" ]
d37348808f7d4f436d7cbe12e9a27dd2d08bd300
3,004
cpp
C++
src/application/WorkCycle/WorkCycle.cpp
AluminiumRat/mtt
3052f8ad0ffabead05a1033e1d714a61e77d0aa8
[ "MIT" ]
null
null
null
src/application/WorkCycle/WorkCycle.cpp
AluminiumRat/mtt
3052f8ad0ffabead05a1033e1d714a61e77d0aa8
[ "MIT" ]
null
null
null
src/application/WorkCycle/WorkCycle.cpp
AluminiumRat/mtt
3052f8ad0ffabead05a1033e1d714a61e77d0aa8
[ "MIT" ]
null
null
null
#include <future> #include <mtt/application/WorkCycle/WorkCycle.h> #include <mtt/utilities/Abort.h> #include <mtt/utilities/ScopedSetter.h> using namespace mtt; WorkCycle::WorkCycle() noexcept : _inProgress(false) { } void WorkCycle::addAction(std::unique_ptr<AbstractAction> action, int ...
26.350877
110
0.643142
[ "vector" ]
c96d6d017d9cba28682ee733068b5e6bf1dece20
5,507
hpp
C++
benchmark/vector/common.hpp
ikrima/immer
2076affd9d814afc019ba8cd8c2b18a6c79c9589
[ "BSL-1.0" ]
12,278
2015-01-29T17:11:33.000Z
2022-03-31T21:12:00.000Z
benchmark/vector/common.hpp
ikrima/immer
2076affd9d814afc019ba8cd8c2b18a6c79c9589
[ "BSL-1.0" ]
9,469
2015-01-30T05:33:07.000Z
2022-03-31T16:17:21.000Z
benchmark/vector/common.hpp
ikrima/immer
2076affd9d814afc019ba8cd8c2b18a6c79c9589
[ "BSL-1.0" ]
892
2015-01-29T16:26:19.000Z
2022-03-20T07:44:30.000Z
// // immer: immutable data structures for C++ // Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente // // This software is distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt // #pragma once #include <utility> #include <cstddef...
25.85446
78
0.648084
[ "vector" ]
c96d9afd66ec6bc8146ab6539986afb9dab31bff
577
cpp
C++
mohameda_optimazation_assignment/Question7f.cpp
Mohamed742/C-AIMS-SA-2018
a59ba718872dfae0f8ee216b10dbb66db3e8a921
[ "Apache-2.0" ]
null
null
null
mohameda_optimazation_assignment/Question7f.cpp
Mohamed742/C-AIMS-SA-2018
a59ba718872dfae0f8ee216b10dbb66db3e8a921
[ "Apache-2.0" ]
null
null
null
mohameda_optimazation_assignment/Question7f.cpp
Mohamed742/C-AIMS-SA-2018
a59ba718872dfae0f8ee216b10dbb66db3e8a921
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <vector> std::vector<int> swapvec(std::vector<int>a) { for (int i = 1; i < a.size(); ++i){ for (int j = 0; j < a.size() - 1; ++j){ if (a[j] < a[i]) std::swap(a[j], a[i]); } } return a; } int main() { std :: cout << "["; std::vector<int>...
17.484848
51
0.383016
[ "vector" ]
c97fcb38a9c096ecc27d0504a850f9f74e7851db
10,576
cpp
C++
Graphics/Archiver/src/SerializationDeviceImpl.cpp
rickmarson/DiligentCore
384f5d79e029f235e2d5504b32998ae8dc1269f9
[ "Apache-2.0" ]
null
null
null
Graphics/Archiver/src/SerializationDeviceImpl.cpp
rickmarson/DiligentCore
384f5d79e029f235e2d5504b32998ae8dc1269f9
[ "Apache-2.0" ]
null
null
null
Graphics/Archiver/src/SerializationDeviceImpl.cpp
rickmarson/DiligentCore
384f5d79e029f235e2d5504b32998ae8dc1269f9
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2019-2021 Diligent Graphics LLC * * 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 applica...
38.180505
174
0.675681
[ "render" ]
c98a74149ca3024ceeacfc017c7c06c5a78a6345
10,812
cpp
C++
vegastrike/boost/1_28/src/object/class.cpp
Ezeer/VegaStrike_win32FR
75891b9ccbdb95e48e15d3b4a9cd977955b97d1f
[ "MIT" ]
null
null
null
vegastrike/boost/1_28/src/object/class.cpp
Ezeer/VegaStrike_win32FR
75891b9ccbdb95e48e15d3b4a9cd977955b97d1f
[ "MIT" ]
null
null
null
vegastrike/boost/1_28/src/object/class.cpp
Ezeer/VegaStrike_win32FR
75891b9ccbdb95e48e15d3b4a9cd977955b97d1f
[ "MIT" ]
null
null
null
// Copyright David Abrahams 2001. Permission to copy, use, // modify, sell and distribute this software is granted provided this // copyright notice appears in all copies. This software is provided // "as is" without express or implied warranty, and with no claim as // to its suitability for any purpose. #include <boos...
37.672474
99
0.471606
[ "object", "vector" ]
c98aefc3dbc95a2c3769cc1041cae175c7bf3aec
2,871
cpp
C++
test/src/TestRandomizedSelect.cpp
blackredscarf/flak
d27c461dfb059287aa8217ca16f40a3c7242b545
[ "Apache-2.0" ]
null
null
null
test/src/TestRandomizedSelect.cpp
blackredscarf/flak
d27c461dfb059287aa8217ca16f40a3c7242b545
[ "Apache-2.0" ]
null
null
null
test/src/TestRandomizedSelect.cpp
blackredscarf/flak
d27c461dfb059287aa8217ca16f40a3c7242b545
[ "Apache-2.0" ]
null
null
null
/* Copyright 2019 flak authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
28.147059
75
0.619296
[ "vector" ]
c98f80d7a5d1c8be96a88a3b807127594fd0203a
5,484
cpp
C++
topcoder/srm/src/SRM652/NoRightTurnDiv2.cpp
Johniel/contests
b692eff913c20e2c1eb4ff0ce3cd4c57900594e0
[ "Unlicense" ]
null
null
null
topcoder/srm/src/SRM652/NoRightTurnDiv2.cpp
Johniel/contests
b692eff913c20e2c1eb4ff0ce3cd4c57900594e0
[ "Unlicense" ]
19
2016-05-04T02:46:31.000Z
2021-11-27T06:18:33.000Z
topcoder/srm/src/SRM652/NoRightTurnDiv2.cpp
Johniel/contests
b692eff913c20e2c1eb4ff0ce3cd4c57900594e0
[ "Unlicense" ]
null
null
null
#include <bits/stdc++.h> #define each(i, c) for (auto& i : c) #define unless(cond) if (!(cond)) using namespace std; typedef long long int lli; typedef unsigned long long ull; typedef complex<double> point; namespace std { inline bool operator < (point a, point b){ if(a.real() != b.real())return a.real() < ...
45.322314
547
0.510029
[ "vector" ]
c994745571e0a7b4017e0e03c15c0dbbefb4a876
4,200
cpp
C++
environments/NaryTree.cpp
Voleco/hog2_BOBA
d29a7e39a51a0c5f79d4a6e3a7cab027b559e84e
[ "MIT" ]
5
2020-08-03T09:43:26.000Z
2022-01-11T08:28:30.000Z
environments/NaryTree.cpp
Voleco/hog2_BOBA
d29a7e39a51a0c5f79d4a6e3a7cab027b559e84e
[ "MIT" ]
null
null
null
environments/NaryTree.cpp
Voleco/hog2_BOBA
d29a7e39a51a0c5f79d4a6e3a7cab027b559e84e
[ "MIT" ]
7
2017-07-31T13:01:28.000Z
2021-05-16T10:15:49.000Z
/* * NaryTree.cpp * hog2 * * Created by Nathan Sturtevant on 10/20/10. * Copyright 2010 University of Denver. All rights reserved. * */ #include "NaryTree.h" #include <iostream> NaryTree::NaryTree(int branchingFactor, int depth) :b(branchingFactor), d(depth) { scaleWidth = 1.0; uint64_t tot = 1; uint64_...
22.459893
94
0.657857
[ "vector" ]
c9997488948fdde56300643273d12330d01d9456
45,249
cpp
C++
devmand/gateway/src/devmand/test/cli/DatastoreTest.cpp
gurrapualt/magma
13e05788fa6c40293a58b6e03cfb394bb79fa98f
[ "BSD-3-Clause" ]
2
2020-12-09T11:42:30.000Z
2021-09-26T03:28:33.000Z
devmand/gateway/src/devmand/test/cli/DatastoreTest.cpp
gurrapualt/magma
13e05788fa6c40293a58b6e03cfb394bb79fa98f
[ "BSD-3-Clause" ]
124
2020-08-21T06:11:21.000Z
2022-03-21T05:25:26.000Z
devmand/gateway/src/devmand/test/cli/DatastoreTest.cpp
yogi8091/magma
edc3b249068ad871047e898c912f3228ee9f2c88
[ "BSD-3-Clause" ]
1
2020-09-21T04:25:06.000Z
2020-09-21T04:25:06.000Z
/* Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR...
40.545699
151
0.729386
[ "object", "vector", "model" ]
c99cf7e702998640e11a2d6b810824079be06e76
1,201
cpp
C++
Cpp/Codes/Practice/LeetCodeCN/766 toeplitz-matrix.cpp
QuincyWork/AllCodes
59fe045608dda924cb993dde957da4daff769438
[ "MIT" ]
null
null
null
Cpp/Codes/Practice/LeetCodeCN/766 toeplitz-matrix.cpp
QuincyWork/AllCodes
59fe045608dda924cb993dde957da4daff769438
[ "MIT" ]
null
null
null
Cpp/Codes/Practice/LeetCodeCN/766 toeplitz-matrix.cpp
QuincyWork/AllCodes
59fe045608dda924cb993dde957da4daff769438
[ "MIT" ]
1
2019-04-01T10:30:03.000Z
2019-04-01T10:30:03.000Z
#include <gtest/gtest.h> using namespace std; namespace LC766 { /* 给你一个 m x n 的矩阵 matrix 。如果这个矩阵是托普利茨矩阵,返回 true ;否则,返回 false 。 如果矩阵上每一条由左上到右下的对角线上的元素都相同,那么这个矩阵是 托普利茨矩阵 。 输入:matrix = [[1,2,3,4],[5,1,2,3],[9,5,1,2]] 输出:true 解释: 在上述矩阵中, 其对角线为: "[9]", "[5, 5]", "[1, 1, 1]", "[2, 2, 2]", "[3, 3]", "[4]"。 各条对角线上的...
18.19697
97
0.570358
[ "vector" ]
c99f5d24454aa58ccc27d6ef7956a4951c19da29
812
hpp
C++
my_vulkan/descriptor_pool.hpp
pixelwise/my_vulkan
f1c139ed8f95380186905d77cb8e81008f48bc95
[ "CC0-1.0" ]
null
null
null
my_vulkan/descriptor_pool.hpp
pixelwise/my_vulkan
f1c139ed8f95380186905d77cb8e81008f48bc95
[ "CC0-1.0" ]
3
2019-02-25T10:13:57.000Z
2020-11-11T14:46:14.000Z
my_vulkan/descriptor_pool.hpp
pixelwise/my_vulkan
f1c139ed8f95380186905d77cb8e81008f48bc95
[ "CC0-1.0" ]
null
null
null
#pragma once #include "vulkan/vulkan.h" #include "descriptor_set.hpp" namespace my_vulkan { struct descriptor_pool_t { descriptor_pool_t( VkDevice device, std::vector<VkDescriptorPoolSize> pool_sizes, size_t max_num_sets ); descriptor_pool_t(const d...
28
75
0.672414
[ "vector" ]
c99f6d6e8f54303ec3d2125cf4d099eb2498ea98
23,962
cpp
C++
WebKit/Source/WebKit2/UIProcess/API/gtk/WebKitWindowProperties.cpp
JavaScriptTesting/LJS
9818dbdb421036569fff93124ac2385d45d01c3a
[ "Apache-2.0" ]
1
2019-06-18T06:52:54.000Z
2019-06-18T06:52:54.000Z
WebKit/Source/WebKit2/UIProcess/API/gtk/WebKitWindowProperties.cpp
JavaScriptTesting/LJS
9818dbdb421036569fff93124ac2385d45d01c3a
[ "Apache-2.0" ]
null
null
null
WebKit/Source/WebKit2/UIProcess/API/gtk/WebKitWindowProperties.cpp
JavaScriptTesting/LJS
9818dbdb421036569fff93124ac2385d45d01c3a
[ "Apache-2.0" ]
null
null
null
/* * Copyright (C) 2011 Igalia S.L. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library i...
42.335689
141
0.688215
[ "geometry", "object" ]
c9a185967891fb111ac8eca54049856fb43a2a08
2,152
cpp
C++
src/game/client/components/infopan.cpp
gerich-home/zteeworlds
73ad5e6d34d5639c67c93298f21dcd523b06bf73
[ "Zlib" ]
2
2017-09-30T22:06:07.000Z
2021-07-20T23:50:33.000Z
src/game/client/components/infopan.cpp
gerich-home/zteeworlds
73ad5e6d34d5639c67c93298f21dcd523b06bf73
[ "Zlib" ]
null
null
null
src/game/client/components/infopan.cpp
gerich-home/zteeworlds
73ad5e6d34d5639c67c93298f21dcd523b06bf73
[ "Zlib" ]
1
2017-09-30T22:06:14.000Z
2017-09-30T22:06:14.000Z
#include <string.h> // strcmp #include <engine/e_client_interface.h> #include <game/generated/g_protocol.hpp> #include <game/generated/gc_data.hpp> #include <game/client/gameclient.hpp> #include <game/client/components/sounds.hpp> #include "infopan.hpp" void INFOPAN::con_infomsg(void *result, void *use...
23.391304
97
0.663569
[ "render" ]
c9a23d8e12e59b602b363213685add914b093c5a
4,921
cpp
C++
Microsnapshot Navigation/Snapshot Navigation 2/sn2_functions.cpp
dobermann9/Microsnapshot-Navigation
39b8150670dc73974151656d1c277dd8e3cbd94f
[ "BSD-3-Clause" ]
null
null
null
Microsnapshot Navigation/Snapshot Navigation 2/sn2_functions.cpp
dobermann9/Microsnapshot-Navigation
39b8150670dc73974151656d1c277dd8e3cbd94f
[ "BSD-3-Clause" ]
null
null
null
Microsnapshot Navigation/Snapshot Navigation 2/sn2_functions.cpp
dobermann9/Microsnapshot-Navigation
39b8150670dc73974151656d1c277dd8e3cbd94f
[ "BSD-3-Clause" ]
null
null
null
#include "sn2_functions.h" #include "lemon/list_graph.h" #include "opencv2/imgproc.hpp" #include <fstream> //returns a pointer to an arc between source and target if it exists in graph, INVALID otherwise lemon::ListDigraph::OutArcIt GetArc(lemon::ListDigraph& graph, lemon::ListDigraph::Node& source, lemon::ListDigr...
34.173611
148
0.686852
[ "object", "shape" ]
c9a3c1cfa601c3c23b452005531e13d5e75e271f
15,923
cpp
C++
Engine/Dependences/Framework/Graphics/src/Window/Window.cpp
GlebShikovec/SREngine
bb806c3e4da06ef6fddee5b46ed5d2fca231be43
[ "MIT" ]
null
null
null
Engine/Dependences/Framework/Graphics/src/Window/Window.cpp
GlebShikovec/SREngine
bb806c3e4da06ef6fddee5b46ed5d2fca231be43
[ "MIT" ]
1
2022-03-07T14:42:22.000Z
2022-03-07T14:42:22.000Z
Engine/Dependences/Framework/Graphics/src/Window/Window.cpp
GlebShikovec/SREngine
bb806c3e4da06ef6fddee5b46ed5d2fca231be43
[ "MIT" ]
null
null
null
// // Created by Nikita on 18.11.2020. // #include <easy/profiler.h> #include "Window/Window.h" #include <Debug.h> #include <iostream> #include <glm/ext/matrix_clip_space.hpp> #include <Input/Input.h> //#include <GUI/ICanvas.h> #include <ResourceManager/ResourceManager.h> #include <glm/gtx/string_cast.hpp> #include...
29.378229
138
0.56836
[ "render" ]
c9a6a44980af1a7e419047df33de149c18c5c501
90,729
cpp
C++
src/Native/LibTorchSharp/THSTensor.cpp
ZenIDTeam/TorchSharp
190841e2df426fd990ecb51c5843615760bd4320
[ "MIT" ]
null
null
null
src/Native/LibTorchSharp/THSTensor.cpp
ZenIDTeam/TorchSharp
190841e2df426fd990ecb51c5843615760bd4320
[ "MIT" ]
null
null
null
src/Native/LibTorchSharp/THSTensor.cpp
ZenIDTeam/TorchSharp
190841e2df426fd990ecb51c5843615760bd4320
[ "MIT" ]
null
null
null
// Copyright (c) Microsoft Corporation and contributors. All Rights Reserved. See License.txt in the project root for license information. #include "THSTensor.h" #include <iostream> #include <fstream> Tensor THSTensor_abs(const Tensor tensor) { CATCH_TENSOR(tensor->abs()); } Tensor THSTensor_abs_(const Tensor ...
28.60309
194
0.714733
[ "shape" ]
c9b8f62753e20c33288795781a5b07ccd5357f3d
8,577
cpp
C++
Othuum/AhwassaGraphicsLib/Renderer/BoxRenderer.cpp
Liech/Yathsou
95b6dda3c053bc25789cce416088e22f54a743b4
[ "MIT" ]
5
2021-04-20T17:00:41.000Z
2022-01-18T20:16:03.000Z
Othuum/AhwassaGraphicsLib/Renderer/BoxRenderer.cpp
Liech/Yathsou
95b6dda3c053bc25789cce416088e22f54a743b4
[ "MIT" ]
7
2021-08-22T21:30:50.000Z
2022-01-14T16:56:34.000Z
Othuum/AhwassaGraphicsLib/Renderer/BoxRenderer.cpp
Liech/Yathsou
95b6dda3c053bc25789cce416088e22f54a743b4
[ "MIT" ]
null
null
null
#include "Renderer/BoxRenderer.h" #include <iostream> #include "glad/glad.h" #include <IyathuumCoreLib/lib/glm/gtc/matrix_transform.hpp> #include "AhwassaGraphicsLib/Core/Window.h" #include "AhwassaGraphicsLib/Core/ShaderProgram.h" #include "AhwassaGraphicsLib/Core/Camera.h" #include "AhwassaGraphicsLib/Uniforms/Uni...
36.653846
144
0.645564
[ "vector" ]
c9bb1df935cbaf02394f09ca316dc6ef253f1242
5,122
cpp
C++
src/Game/CStateMenu.cpp
j-sokol/ncursesPac
8a41eece04f36f852a32022b2bfd3a038b3ad5d2
[ "MIT" ]
24
2017-04-22T03:28:52.000Z
2021-11-08T12:30:58.000Z
src/Game/CStateMenu.cpp
j-sokol/pac
8a41eece04f36f852a32022b2bfd3a038b3ad5d2
[ "MIT" ]
2
2020-05-22T05:59:15.000Z
2021-06-05T14:23:56.000Z
src/Game/CStateMenu.cpp
j-sokol/ncursesPac
8a41eece04f36f852a32022b2bfd3a038b3ad5d2
[ "MIT" ]
7
2017-04-18T23:07:43.000Z
2021-11-07T16:44:00.000Z
#include <Game/CStateMenu.h> #include <Game/CGhostManager.h> #include <Engine/CStateManager.h> #include <Game/CBoardUtils.h> #include <Game/CStateGame.h> #include <Engine/CInputManager.h> #include <Engine/CDialog.h> #include <Engine/CMenuItem.h> #include <Engine/CMenuItemOption.h> #include <cstdlib> template<typen...
21.795745
104
0.571847
[ "vector" ]
c9c3e2fe0d9133c43b592194f9beea05ebf97e9e
4,355
cpp
C++
Spoj/Deliver.cpp
Danish-Belal/CodeCollection
cd3914d3d73542dd5f20755c4b1e42906f443b03
[ "MIT" ]
125
2021-10-01T19:05:26.000Z
2021-10-03T13:32:42.000Z
Spoj/Deliver.cpp
Danish-Belal/CodeCollection
cd3914d3d73542dd5f20755c4b1e42906f443b03
[ "MIT" ]
201
2021-10-30T20:40:01.000Z
2022-03-22T17:26:28.000Z
Spoj/Deliver.cpp
Danish-Belal/CodeCollection
cd3914d3d73542dd5f20755c4b1e42906f443b03
[ "MIT" ]
294
2021-10-01T18:46:05.000Z
2021-10-03T14:25:07.000Z
#include<bits/stdc++.h> using namespace std; struct pt { int x, y; pt(int a, int b) { x = a, y = b; } } ; int N, x[100], y[100], indx[100]; set<pair<int, int> > points; // keeps track of which (x, y) coordinates are farms vector<pt> nodes; vector<int> adj[500]; // adjacency list // Returns the taxicab d...
29.228188
159
0.476464
[ "vector" ]
c9c4a1fd7a6dd9a5f4f53c199acc7df354ef3a5e
18,383
cpp
C++
rellic/AST/IRToASTVisitor.cpp
rustomas/rellic
b7845a79dcd600f1cc63752a9ee412058620e13c
[ "Apache-2.0" ]
null
null
null
rellic/AST/IRToASTVisitor.cpp
rustomas/rellic
b7845a79dcd600f1cc63752a9ee412058620e13c
[ "Apache-2.0" ]
null
null
null
rellic/AST/IRToASTVisitor.cpp
rustomas/rellic
b7845a79dcd600f1cc63752a9ee412058620e13c
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2018 Trail of Bits, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
34.554511
80
0.614916
[ "vector" ]
c9c68b2a135557aa8de3c15dd4137270ab9840b6
392
cpp
C++
ABC/062/b.cpp
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
ABC/062/b.cpp
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
ABC/062/b.cpp
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main() { int H, W, i; cin >> H >> W; vector<string> pic(H); for(i = 0; i < H; i++){ cin >> pic.at(i); } // 以降, 出力する for(i = 0; i < W+2; i++){ cout << '#'; } cout << endl; for(i = 0; i < H; i++){ cout << '#' << pic.at(i) << '#' << endl;...
15.076923
44
0.392857
[ "vector" ]
c9c68e376c85ee68a7efa5b6a4d560b6f2988d18
7,106
cpp
C++
src/std/struct_type.cpp
cstanze/blossom
2be90c6f16897a2acc1c40dad933a973e1ef2f57
[ "MIT" ]
3
2021-08-16T22:22:02.000Z
2021-11-15T02:39:38.000Z
src/std/struct_type.cpp
cstanze/blossom
2be90c6f16897a2acc1c40dad933a973e1ef2f57
[ "MIT" ]
1
2021-09-27T19:22:37.000Z
2022-03-29T12:41:24.000Z
src/std/struct_type.cpp
cstanze/blossom
2be90c6f16897a2acc1c40dad933a973e1ef2f57
[ "MIT" ]
null
null
null
#include "std/struct_type.hpp" #include <algorithm> ////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////// VAR_STRUCT_DEF ////////////////////////////////////////////// ///////////////////////////////////////////////////////////////...
30.110169
98
0.567126
[ "vector" ]
c9c7914ef9fe2a8ec01b83500471230753cd0d91
3,479
cpp
C++
state_machines/GameOverScene.cpp
jugurthab/opensource-quest
793da3833e0a54c0ab16421e6a4f31ade1dc7b50
[ "MIT" ]
null
null
null
state_machines/GameOverScene.cpp
jugurthab/opensource-quest
793da3833e0a54c0ab16421e6a4f31ade1dc7b50
[ "MIT" ]
null
null
null
state_machines/GameOverScene.cpp
jugurthab/opensource-quest
793da3833e0a54c0ab16421e6a4f31ade1dc7b50
[ "MIT" ]
null
null
null
#include "GameOverScene.h" const std::string GameOverScene::gameOverStateID = "GAME_OVER_STATE"; GameOverScene::GameOverScene(bool gameWon){ userWinGame = gameWon; } void GameOverScene::updateState(){ currentFra = (SDL_GetTicks()/20) %2; for(int i=0; i<stateObjects.size();i++) stateObjects[i]->up...
32.820755
264
0.629204
[ "vector" ]