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
30c3b777b14cbcd1c324403a23d0f49f5e2b9a8d
1,198
cpp
C++
cpp/3755.cpp
jinhan814/BOJ
47d2a89a2602144eb08459cabac04d036c758577
[ "MIT" ]
9
2021-01-15T13:36:39.000Z
2022-02-23T03:44:46.000Z
cpp/3755.cpp
jinhan814/BOJ
47d2a89a2602144eb08459cabac04d036c758577
[ "MIT" ]
1
2021-07-31T17:11:26.000Z
2021-08-02T01:01:03.000Z
cpp/3755.cpp
jinhan814/BOJ
47d2a89a2602144eb08459cabac04d036c758577
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define fastio cin.tie(0)->sync_with_stdio(0) using namespace std; using pii = pair<int, int>; template<typename T = int, typename F = less<T>> struct Priority_queue { Priority_queue() = default; Priority_queue(const F& f) : insert(f), erase(f) {} T Top() { __Erase(); return insert.top(); ...
30.717949
85
0.59015
[ "vector" ]
30cd2eae1bb20ed999cdd1be4d10c52963c23c91
6,153
cpp
C++
framework/Input/Sources/ModuleInput.cpp
Daniel-Mietchen/kigs
92ab6deaf3e947465781a400c5a791ee171876c8
[ "MIT" ]
null
null
null
framework/Input/Sources/ModuleInput.cpp
Daniel-Mietchen/kigs
92ab6deaf3e947465781a400c5a791ee171876c8
[ "MIT" ]
null
null
null
framework/Input/Sources/ModuleInput.cpp
Daniel-Mietchen/kigs
92ab6deaf3e947465781a400c5a791ee171876c8
[ "MIT" ]
null
null
null
#include "PrecompiledHeaders.h" #include "ModuleInput.h" #include "InputDevice.h" #include "Timer.h" #include "Core.h" #include "Window.h" #include "TouchInputEventManager.h" #ifdef WIN32 #define USE_VIRTUAL_SENSORS 1 #else #define USE_VIRTUAL_SENSORS 0 #endif #if USE_VIRTUAL_SENSORS #include "VirtualSensors.h" #en...
23.484733
147
0.715586
[ "vector" ]
30cf783542b9044ad61b1c94f652ef4e848daff6
12,892
cc
C++
omd/versions/1.2.8p15.cre/share/check_mk/agents/windows/PerfCounterPdh.cc
NCAR/spol-nagios
4f88bef953983050bc6568d3f1027615fbe223fb
[ "BSD-3-Clause" ]
null
null
null
omd/versions/1.2.8p15.cre/share/check_mk/agents/windows/PerfCounterPdh.cc
NCAR/spol-nagios
4f88bef953983050bc6568d3f1027615fbe223fb
[ "BSD-3-Clause" ]
null
null
null
omd/versions/1.2.8p15.cre/share/check_mk/agents/windows/PerfCounterPdh.cc
NCAR/spol-nagios
4f88bef953983050bc6568d3f1027615fbe223fb
[ "BSD-3-Clause" ]
null
null
null
// +------------------------------------------------------------------+ // | ____ _ _ __ __ _ __ | // | / ___| |__ ___ ___| | __ | \/ | |/ / | // | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / | // | | |___| | | | __...
33.485714
80
0.592616
[ "object", "vector" ]
30d0a433ac0fcf6ac1b707342f9cc87877f07034
5,694
cpp
C++
cpp/knn/patch.cpp
breadcrumbbuilds/bcws-psu-research
e541ffc050807186160a6b8d7cc6ac78fc9f3ddc
[ "Apache-2.0" ]
6
2019-10-23T19:02:04.000Z
2021-06-23T22:51:25.000Z
cpp/knn/patch.cpp
breadcrumbbuilds/bcws-psu-research
e541ffc050807186160a6b8d7cc6ac78fc9f3ddc
[ "Apache-2.0" ]
142
2020-02-08T00:37:46.000Z
2021-12-12T21:49:23.000Z
cpp/knn/patch.cpp
breadcrumbbuilds/bcws-psu-research
e541ffc050807186160a6b8d7cc6ac78fc9f3ddc
[ "Apache-2.0" ]
4
2019-12-11T00:45:37.000Z
2021-11-22T08:54:59.000Z
/* patch.cpp: tiling processing to feed into an ML-type code - cut image data (and ground reference data) into small patches (nonoverlapping at this point) - use majority voting scheme to assign label to each patch - if patches are too large relative to the homogeneous areas of a patch, results will suffer Assume this...
33.104651
127
0.567615
[ "model" ]
30d4c27f762d9e54cc55e5a32684cd5f15db908e
2,150
cpp
C++
GeeksForGeeks/C Plus Plus/Convert_normal_BST_to_Balanced_BST.cpp
ankit-sr/Competitive-Programming
3397b313b80a32a47cfe224426a6e9c7cf05dec2
[ "MIT" ]
4
2021-06-19T14:15:34.000Z
2021-06-21T13:53:53.000Z
GeeksForGeeks/C Plus Plus/Convert_normal_BST_to_Balanced_BST.cpp
ankit-sr/Competitive-Programming
3397b313b80a32a47cfe224426a6e9c7cf05dec2
[ "MIT" ]
2
2021-07-02T12:41:06.000Z
2021-07-12T09:37:50.000Z
GeeksForGeeks/C Plus Plus/Convert_normal_BST_to_Balanced_BST.cpp
ankit-sr/Competitive-Programming
3397b313b80a32a47cfe224426a6e9c7cf05dec2
[ "MIT" ]
3
2021-06-19T15:19:20.000Z
2021-07-02T17:24:51.000Z
/* Problem Statement: ----------------- Given a BST (Binary Search Tree) that may be unbalanced, convert it into a balanced BST that has minimum possible height. Examples : Input: 30 / 20 / 10 Output: 20 / \ 10 30 Input: 4 / 3 / 2 / 1...
16.666667
121
0.472558
[ "vector" ]
30d999562bf1bf1ff492c859b4a2122ccbefb7cb
659
cpp
C++
tatu2/container/any.cpp
AxlidinovJ/masalalar_C
ca48c0db29155016a729fbe23030d4a638175d9b
[ "MIT" ]
null
null
null
tatu2/container/any.cpp
AxlidinovJ/masalalar_C
ca48c0db29155016a729fbe23030d4a638175d9b
[ "MIT" ]
null
null
null
tatu2/container/any.cpp
AxlidinovJ/masalalar_C
ca48c0db29155016a729fbe23030d4a638175d9b
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <algorithm> #include <time.h> using namespace std; int main(){ vector<int> royxat; vector<int> royxat2; srand(time(0)); int n; cout<<"n="; cin>>n; for(int i=1; i<=n; i++){ royxat.push_back(10-rand()%30); } for(auto it = royxat.begin(); it!=royxat.end(); it+...
16.475
68
0.570561
[ "vector" ]
30dab073d8224066502f59a8cae866946a5bdfdf
2,314
cpp
C++
423_433_449_450_Shanti_Stupa_Simulation/ModelLoading/Textures.cpp
pradhanrajin42/Computer-Graphics-074-BEX
4b52c85cc97fe9c951e517ef7e8d917281705aa8
[ "MIT" ]
5
2020-03-06T10:01:28.000Z
2020-05-06T07:57:20.000Z
423_433_449_450_Shanti_Stupa_Simulation/ModelLoading/Textures.cpp
pradhanrajin42/Computer-Graphics-074-BEX
4b52c85cc97fe9c951e517ef7e8d917281705aa8
[ "MIT" ]
1
2020-03-06T02:51:50.000Z
2020-03-06T04:33:30.000Z
423_433_449_450_Shanti_Stupa_Simulation/ModelLoading/Textures.cpp
pradhanrajin42/Computer-Graphics-074-BEX
4b52c85cc97fe9c951e517ef7e8d917281705aa8
[ "MIT" ]
29
2020-03-05T15:15:24.000Z
2021-07-21T07:05:00.000Z
#include "GL\glew.h" #include "Textures.h" #include "src\vendor\stb_image\stb_image.h" Textures::Textures(const std::string & filePath, bool transparent) { stbi_set_flip_vertically_on_load(1); data = stbi_load(filePath.c_str(), &width, &height, &nrChannels, 0); if (!data) std::cout << "Failed to Load Texture" << st...
31.27027
107
0.760588
[ "vector" ]
30e2dd4b663a351018b435a37be5a0588eb287a7
24,209
cpp
C++
src/server.cpp
ksatyaki/srnp
c876d0ceb4372e3739587a2c6d029b594d7d2ffa
[ "Unlicense" ]
1
2019-10-14T15:45:39.000Z
2019-10-14T15:45:39.000Z
src/server.cpp
ksatyaki/srnp
c876d0ceb4372e3739587a2c6d029b594d7d2ffa
[ "Unlicense" ]
null
null
null
src/server.cpp
ksatyaki/srnp
c876d0ceb4372e3739587a2c6d029b594d7d2ffa
[ "Unlicense" ]
null
null
null
/* server.cpp Copyright (C) 2015 Chittaranjan Srinivas Swaminathan This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later versi...
33.484094
197
0.720641
[ "vector" ]
30e3009a4aef9b7df5d6e5abeb7a03b81d26ab42
3,634
cpp
C++
matrix-oop/solution/exercise.cpp
lparolari/high-school-assignments
4049c72f5b1b0bfe4dde865a40c256699c51cb5b
[ "MIT" ]
null
null
null
matrix-oop/solution/exercise.cpp
lparolari/high-school-assignments
4049c72f5b1b0bfe4dde865a40c256699c51cb5b
[ "MIT" ]
14
2020-07-21T09:33:36.000Z
2021-05-31T16:28:08.000Z
matrix-oop/solution/exercise.cpp
lparolari/high-school-assignments
4049c72f5b1b0bfe4dde865a40c256699c51cb5b
[ "MIT" ]
null
null
null
#include <cstdlib> #include <iostream> #include <string> #include <vector> using namespace std; class Matrix { //////////////////////////////////// // METODI PRIVATI private: int r; // righe int c; // colonne vector<int> data; // Nota: per motivi progettuali è stato scelto di non // ...
27.323308
80
0.503027
[ "vector" ]
30e459e41582c371e727a02a0bdea7ba03d89cf3
6,132
cpp
C++
shore-sm-6.0.2/src/sm/tests/init_config_options.cpp
glycerine/shore-mt
39f1802ba9588bc9d32d34386ed0193477f7e8d1
[ "Spencer-94", "Spencer-86", "Xnet", "Linux-OpenIB", "Spencer-99", "X11", "CECILL-B" ]
3
2016-07-15T08:22:56.000Z
2019-10-10T02:26:08.000Z
shore-sm-6.0.2/src/sm/tests/init_config_options.cpp
glycerine/shore-mt
39f1802ba9588bc9d32d34386ed0193477f7e8d1
[ "Spencer-94", "Spencer-86", "Xnet", "Linux-OpenIB", "Spencer-99", "X11", "CECILL-B" ]
null
null
null
shore-sm-6.0.2/src/sm/tests/init_config_options.cpp
glycerine/shore-mt
39f1802ba9588bc9d32d34386ed0193477f7e8d1
[ "Spencer-94", "Spencer-86", "Xnet", "Linux-OpenIB", "Spencer-99", "X11", "CECILL-B" ]
2
2020-12-23T06:49:23.000Z
2021-03-05T07:00:28.000Z
/*<std-header orig-src='shore'> $Id: init_config_options.cpp,v 1.5 2010/09/21 14:26:28 nhall Exp $ SHORE -- Scalable Heterogeneous Object REpository Copyright (c) 1994-99 Computer Sciences Department, University of Wisconsin -- Madison All Rights Reserved. Permission to use, copy, modify and ...
35.859649
89
0.659328
[ "object" ]
30e96ff0125b2a95be6326e925a0c65defc171f6
7,905
cpp
C++
ArrtModel/ViewModel/BlobExplorer/BlobExplorerModel.cpp
AleksandarTomicMs2/azure-remote-rendering-asset-tool
c3962231e02af6ff90c2867f51e7a3b20af8c592
[ "MIT" ]
42
2020-06-12T19:10:52.000Z
2022-03-04T02:20:59.000Z
ArrtModel/ViewModel/BlobExplorer/BlobExplorerModel.cpp
AleksandarTomicMs2/azure-remote-rendering-asset-tool
c3962231e02af6ff90c2867f51e7a3b20af8c592
[ "MIT" ]
91
2020-06-12T12:10:46.000Z
2022-03-02T13:46:00.000Z
ArrtModel/ViewModel/BlobExplorer/BlobExplorerModel.cpp
AleksandarTomicMs2/azure-remote-rendering-asset-tool
c3962231e02af6ff90c2867f51e7a3b20af8c592
[ "MIT" ]
10
2020-07-29T21:19:14.000Z
2021-09-22T11:48:27.000Z
#include <Model/AzureStorageManager.h> #include <Model/Log/LogHelpers.h> #include <Model/StorageUtils/FileUploader.h> #include <QDirIterator> #include <ViewModel/BlobExplorer/BlobContainerSelectorModel.h> #include <ViewModel/BlobExplorer/BlobExplorerModel.h> #include <ViewModel/BlobExplorer/BlobsListModel.h> #include <...
31.245059
239
0.667426
[ "model" ]
30e9a63d005ba68d350f5fc626afef648df3dfc0
3,929
cc
C++
src/drivers/devices/cpu/flowunit/model_decrypt_plugin/model_decrypt_plugin_test.cc
yamal-shang/modelbox
b2785568f4acd56d4922a793aa25516f883edc26
[ "Apache-2.0" ]
51
2021-09-24T08:57:44.000Z
2022-03-31T09:12:46.000Z
src/drivers/devices/cpu/flowunit/model_decrypt_plugin/model_decrypt_plugin_test.cc
yamal-shang/modelbox
b2785568f4acd56d4922a793aa25516f883edc26
[ "Apache-2.0" ]
3
2022-02-22T07:13:02.000Z
2022-03-30T02:03:40.000Z
src/drivers/devices/cpu/flowunit/model_decrypt_plugin/model_decrypt_plugin_test.cc
yamal-shang/modelbox
b2785568f4acd56d4922a793aa25516f883edc26
[ "Apache-2.0" ]
31
2021-11-29T02:22:39.000Z
2022-03-15T03:05:24.000Z
/* * Copyright 2021 The Modelbox Project Authors. 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 requi...
32.741667
82
0.713668
[ "model" ]
30f54038e2ea6259b796ae5ffe09e52d4bc8b77b
16,433
cpp
C++
common/tcp.cpp
zteo-phd-software/ironstack
649f82ddcbb82831796fa2a1e1d1b8cc0f94a8e0
[ "BSD-3-Clause" ]
null
null
null
common/tcp.cpp
zteo-phd-software/ironstack
649f82ddcbb82831796fa2a1e1d1b8cc0f94a8e0
[ "BSD-3-Clause" ]
null
null
null
common/tcp.cpp
zteo-phd-software/ironstack
649f82ddcbb82831796fa2a1e1d1b8cc0f94a8e0
[ "BSD-3-Clause" ]
null
null
null
#include "tcp.h" // static initializers here mutex tcp::lock; tcp_global_info tcp::global_info; map<uint16_t, int> tcp::listening_port_to_socket_mapping; // constructor for the tcp object tcp::tcp() { socket_id = -1; } // destructor for tcp object tcp::~tcp() { close(); } // makes a tcp connection bool tcp::conne...
26.334936
113
0.714538
[ "object", "vector" ]
a5025396dd122a6ea9b29116b66ee5fe12d668a7
4,268
cpp
C++
UbiGame_Blank/Source/Game/GameBoard.cpp
hzwr/Tower_Defense
279e3e317760c90526001100a6b0dca4c82798e1
[ "MIT" ]
1
2021-09-28T14:13:45.000Z
2021-09-28T14:13:45.000Z
UbiGame_Blank/Source/Game/GameBoard.cpp
hzwr/Tower_Defense
279e3e317760c90526001100a6b0dca4c82798e1
[ "MIT" ]
null
null
null
UbiGame_Blank/Source/Game/GameBoard.cpp
hzwr/Tower_Defense
279e3e317760c90526001100a6b0dca4c82798e1
[ "MIT" ]
null
null
null
#include "GameBoard.h" #include "GameEngine/GameEngineMain.h" #include "Game\Entities\Player.h" #include "Game\Entities\Enemy.h" #include "GameEngine/EntitySystem/Components/TextRenderComponent.h" #include "Game/Components/AttackComponent/HealthComponent.h" using namespace Game; GameBoard::GameBoard() { m_playe...
33.873016
122
0.751406
[ "render" ]
a514195f9d4195e0970234327205cd5d28cdda45
13,221
cpp
C++
TAO/tao/PortableServer/Servant_Upcall.cpp
cflowe/ACE
5ff60b41adbe1772372d1a43bcc1f2726ff8f810
[ "DOC" ]
36
2015-01-10T07:27:33.000Z
2022-03-07T03:32:08.000Z
TAO/tao/PortableServer/Servant_Upcall.cpp
cflowe/ACE
5ff60b41adbe1772372d1a43bcc1f2726ff8f810
[ "DOC" ]
2
2018-08-13T07:30:51.000Z
2019-02-25T03:04:31.000Z
TAO/tao/PortableServer/Servant_Upcall.cpp
cflowe/ACE
5ff60b41adbe1772372d1a43bcc1f2726ff8f810
[ "DOC" ]
38
2015-01-08T14:12:06.000Z
2022-01-19T08:33:00.000Z
// $Id: Servant_Upcall.cpp 94802 2011-10-20 09:46:10Z mcorino $ #include "tao/PortableServer/Object_Adapter.h" #include "tao/PortableServer/Servant_Upcall.h" #include "tao/PortableServer/Root_POA.h" #include "tao/PortableServer/Default_Servant_Dispatcher.h" #include "tao/PortableServer/Collocated_Object_Proxy_Broker.h...
31.705036
90
0.594206
[ "object" ]
a51b20df2435eabdf575eb5f982ec6a2f51a9797
4,292
cpp
C++
src/Gam/File.cpp
alexeevdv/libfalltergeist
dfa2604df3559d28cd7ca6dd3725b22e9d0cf0f1
[ "MIT" ]
6
2015-02-15T06:40:32.000Z
2021-08-23T21:41:14.000Z
src/Gam/File.cpp
alexeevdv/libfalltergeist
dfa2604df3559d28cd7ca6dd3725b22e9d0cf0f1
[ "MIT" ]
6
2015-08-11T14:53:12.000Z
2015-10-11T18:50:47.000Z
src/Gam/File.cpp
falltergeist/libfalltergeist
dfa2604df3559d28cd7ca6dd3725b22e9d0cf0f1
[ "MIT" ]
9
2015-02-12T07:30:08.000Z
2020-09-03T17:46:50.000Z
/* * The MIT License (MIT) * * Copyright (c) 2012-2015 Falltergeist developers * * 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 r...
23.453552
125
0.604846
[ "vector" ]
a520b207c5c21647d5cbf0fc8ce3e8e11b2ed8cc
11,540
cpp
C++
SarvLibrary/Kmerize/gerbil/src/gerbil/SequenceSplitter.cpp
cwright7101/llvm_sarvavid
7567d617a7be78fecfde71ab04ebd8e9506a64e4
[ "MIT" ]
37
2017-01-04T12:31:47.000Z
2022-03-11T08:47:32.000Z
SarvLibrary/Kmerize/gerbil/src/gerbil/SequenceSplitter.cpp
cwright7101/llvm_sarvavid
7567d617a7be78fecfde71ab04ebd8e9506a64e4
[ "MIT" ]
18
2016-05-06T07:58:48.000Z
2022-02-17T04:11:17.000Z
SarvLibrary/Kmerize/gerbil/src/gerbil/SequenceSplitter.cpp
cwright7101/llvm_sarvavid
7567d617a7be78fecfde71ab04ebd8e9506a64e4
[ "MIT" ]
13
2016-05-16T12:52:50.000Z
2022-03-02T19:26:50.000Z
/* * SequenceSplitter.cpp * * Created on: 20.05.2015 * Author: marius */ #include "../../include/gerbil/SequenceSplitter.h" #define SS_MMER_UNDEFINED 0x80000000 #define SS_BIN_UNDEFINED 0xffff #define SS_MMER_VAL_UNDEFINED 0x80000000 gerbil::SequenceSplitter::SequenceSplitter( const uint32 &superBundl...
29.06801
125
0.638995
[ "vector" ]
a52815e7f80395e9adda627511fbaf660b744343
22,918
cpp
C++
src/drivers/cc2500/cc2500_main.cpp
Dapingguo001/wenzhou_university-1.6.5
0af9f059c5f1e32cc085392659b391d38455ca92
[ "BSD-3-Clause" ]
null
null
null
src/drivers/cc2500/cc2500_main.cpp
Dapingguo001/wenzhou_university-1.6.5
0af9f059c5f1e32cc085392659b391d38455ca92
[ "BSD-3-Clause" ]
null
null
null
src/drivers/cc2500/cc2500_main.cpp
Dapingguo001/wenzhou_university-1.6.5
0af9f059c5f1e32cc085392659b391d38455ca92
[ "BSD-3-Clause" ]
null
null
null
#include "cc2500.h" #include <drivers/device/spi.h> #include <px4_config.h> #include <stm32_gpio.h> #include <lib/geo/geo.h> #include <mathlib/mathlib.h> #include <drivers/drv_hrt.h> #include <nuttx/config.h> #include <uORB/topics/cc2500_message.h> #include <uORB/topics/vehicle_global_position.h> #include <uORB/top...
33.752577
130
0.643948
[ "vector" ]
a52b0c88f9b62c60455073f0499e64a65c438318
400
cpp
C++
Notes_Week9/Stack/stackSTL.cpp
WeiChienHsu/CS165
65e95efc90415c8acc707e2d544eb384d3982e18
[ "MIT" ]
1
2019-01-06T22:36:01.000Z
2019-01-06T22:36:01.000Z
Notes_Week9/Stack/stackSTL.cpp
WeiChienHsu/CS165
65e95efc90415c8acc707e2d544eb384d3982e18
[ "MIT" ]
null
null
null
Notes_Week9/Stack/stackSTL.cpp
WeiChienHsu/CS165
65e95efc90415c8acc707e2d544eb384d3982e18
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <stack> int main() { std::stack<double> dStack; for(double x = 2; x < 9; x++) { std::cout << "Pushing " << x << std::endl; dStack.push(x); } std::cout << "The size of the stack is: "; std::cout << dStack.size() << std::endl; while(!dStack.empty()) {...
19.047619
46
0.5475
[ "vector" ]
a52d2dce4e9e3413022f1afb02e31fae689b6fd0
6,052
hpp
C++
modules/scene_manager/include/sensor_msgs/msg/range__struct.hpp
Omnirobotic/godot
d50b5d047bbf6c68fc458c1ad097321ca627185d
[ "CC-BY-3.0", "Apache-2.0", "MIT" ]
1
2020-05-19T14:33:49.000Z
2020-05-19T14:33:49.000Z
ros2_mod_ws/install/include/sensor_msgs/msg/range__struct.hpp
mintforpeople/robobo-ros2-ios-port
1a5650304bd41060925ebba41d6c861d5062bfae
[ "Apache-2.0" ]
3
2019-11-14T12:20:06.000Z
2020-08-07T13:51:10.000Z
modules/scene_manager/include/sensor_msgs/msg/range__struct.hpp
Omnirobotic/godot
d50b5d047bbf6c68fc458c1ad097321ca627185d
[ "CC-BY-3.0", "Apache-2.0", "MIT" ]
null
null
null
// generated from rosidl_generator_cpp/resource/msg__struct.hpp.em // generated code does not contain a copyright notice #ifndef SENSOR_MSGS__MSG__RANGE__STRUCT_HPP_ #define SENSOR_MSGS__MSG__RANGE__STRUCT_HPP_ // Protect against ERROR being predefined on Windows, in case somebody defines a // constant by that name. ...
27.139013
154
0.714475
[ "vector" ]
a532ee7d33c7247a2ce748fc39122f2dad622d1a
2,015
cpp
C++
main.cpp
Sanaxen/N3LP
06526ba558231c5973d26a5f2b876a9379dc4502
[ "MIT" ]
null
null
null
main.cpp
Sanaxen/N3LP
06526ba558231c5973d26a5f2b876a9379dc4502
[ "MIT" ]
null
null
null
main.cpp
Sanaxen/N3LP
06526ba558231c5973d26a5f2b876a9379dc4502
[ "MIT" ]
null
null
null
#include "EncDec.hpp" #include <iostream> #include <random> #ifdef USE_TEXT_COLOR #include "util/text_color.hpp" #endif int main(int argc, char** argv){ const std::string src = "./corpus/sample.en"; const std::string tgt = "./corpus/sample.ja"; const std::string srcDev = "./corpus/sample.en.dev"; const std:...
21.902174
54
0.568238
[ "vector", "model" ]
a5343f8bdc48bdaa89e9e4bc87e311227d7540e6
5,281
cpp
C++
tests/integration/inplace_tests/add_0_ip_test.cpp
gglin001/popart
3225214343f6d98550b6620e809a3544e8bcbfc6
[ "MIT" ]
61
2020-07-06T17:11:46.000Z
2022-03-12T14:42:51.000Z
tests/integration/inplace_tests/add_0_ip_test.cpp
gglin001/popart
3225214343f6d98550b6620e809a3544e8bcbfc6
[ "MIT" ]
1
2021-02-25T01:30:29.000Z
2021-11-09T11:13:14.000Z
tests/integration/inplace_tests/add_0_ip_test.cpp
gglin001/popart
3225214343f6d98550b6620e809a3544e8bcbfc6
[ "MIT" ]
6
2020-07-15T12:33:13.000Z
2021-11-07T06:55:00.000Z
// Copyright (c) 2019 Graphcore Ltd. All rights reserved. #define BOOST_TEST_MODULE Add0InplaceTest #include <../test_runner.hpp> #include <boost/test/unit_test.hpp> #include <elementwisebinary_testcase.hpp> #include <popart/op/add.hpp> #include <popart/patterns/pattern.hpp> #include <popart/tensors.hpp> using namesp...
31.434524
80
0.579246
[ "shape", "vector" ]
a53b911c2ed6622764a6fa03f4bcf96390eaf15e
862
cpp
C++
math/linear_divisors1.cpp
warwick965/competitive-programming
78074365eff204b0331410a98f32cf41962e9644
[ "MIT" ]
null
null
null
math/linear_divisors1.cpp
warwick965/competitive-programming
78074365eff204b0331410a98f32cf41962e9644
[ "MIT" ]
null
null
null
math/linear_divisors1.cpp
warwick965/competitive-programming
78074365eff204b0331410a98f32cf41962e9644
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; #define MAXN (int)1e6 int divisors[MAXN+1]; int lp[MAXN+1]; void sieve(){ for(int i = 1;i <= MAXN;i++) { divisors[i] = i+1; lp[i] = i; } divisors[1] = 1; vector<int>primes; for(int i = 2;i <= MAXN;i++){ if (divisors[i] == i+1...
18.340426
64
0.411833
[ "vector" ]
a53f5341c1495d2ae3c648bd9f04c6270c7b1595
2,657
cpp
C++
tests/process_test.cpp
Xiretza/UHDM
cb162e76f641f0a860a95bb5d39a7d6585fb72f5
[ "Apache-2.0" ]
72
2019-12-28T14:55:39.000Z
2022-03-24T10:59:35.000Z
tests/process_test.cpp
jrrk2/UHDM
d8a9a0ea31d0400d944cb98e25f29e51dab63fa7
[ "Apache-2.0" ]
86
2020-01-08T14:06:10.000Z
2021-06-10T04:46:43.000Z
tests/process_test.cpp
jrrk2/UHDM
d8a9a0ea31d0400d944cb98e25f29e51dab63fa7
[ "Apache-2.0" ]
16
2019-12-16T19:58:58.000Z
2021-06-28T09:46:49.000Z
#include <iostream> #include "gtest/gtest.h" #include "uhdm/uhdm.h" #include "uhdm/vpi_visitor.h" using namespace UHDM; #include "uhdm/vpi_visitor.h" // This builds a simple design: // module m1; // always @(posedge clk) // out = 1; // end // endmodule static std::vector<vpiHandle> buildSimpleAlawysDesign(S...
26.57
79
0.695521
[ "object", "vector" ]
a54ac8b08284db73ab076f739850cfd1a897238f
5,502
cpp
C++
target_obejct_detector/src/target_object_recognizer.cpp
CIR-KIT/human_detector
1f0d26004d3cd960feb672770a4b6d97958ed200
[ "MIT" ]
6
2016-12-28T01:44:09.000Z
2022-03-11T02:06:55.000Z
target_obejct_detector/src/target_object_recognizer.cpp
CIR-KIT/human_detector
1f0d26004d3cd960feb672770a4b6d97958ed200
[ "MIT" ]
6
2016-11-22T13:36:22.000Z
2018-01-26T12:02:19.000Z
target_obejct_detector/src/target_object_recognizer.cpp
CIR-KIT/human_detector
1f0d26004d3cd960feb672770a4b6d97958ed200
[ "MIT" ]
6
2017-07-26T00:37:35.000Z
2021-12-16T16:20:49.000Z
#include <target_object_recognizer.h> TargetObject::TargetObject(geometry_msgs::PoseStamped transed_pose, jsk_recognition_msgs::BoundingBox box) : box_(box), counter_(0) { box_.header = transed_pose.header; box_.pose = transed_pose.pose; } TargetObject::~TargetObject() { } geometry_m...
35.496774
127
0.685932
[ "object", "vector" ]
a54c6e03bbe0183d06911031d18d3865f3557dd3
88,762
cpp
C++
gen/blink/bindings/modules/v8/V8ServiceWorkerGlobalScope.cpp
gergul/MiniBlink
7a11c52f141d54d5f8e1a9af31867cd120a2c3c4
[ "Apache-2.0" ]
8
2019-05-05T16:38:05.000Z
2021-11-09T11:45:38.000Z
gen/blink/bindings/modules/v8/V8ServiceWorkerGlobalScope.cpp
gergul/MiniBlink
7a11c52f141d54d5f8e1a9af31867cd120a2c3c4
[ "Apache-2.0" ]
null
null
null
gen/blink/bindings/modules/v8/V8ServiceWorkerGlobalScope.cpp
gergul/MiniBlink
7a11c52f141d54d5f8e1a9af31867cd120a2c3c4
[ "Apache-2.0" ]
4
2018-12-14T07:52:46.000Z
2021-06-11T18:06:09.000Z
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! #include "config.h" #include "V8ServiceWorkerGlobalScope.h" #include "gen/b...
87.450246
635
0.813163
[ "object" ]
a55079cd6d77c08737254fb005e3cc0a6222e05b
354
hpp
C++
FootCommander.hpp
noayair/WarGame
04a20acd669dc4f3cd6088f7149c5b5caecd660e
[ "MIT" ]
null
null
null
FootCommander.hpp
noayair/WarGame
04a20acd669dc4f3cd6088f7149c5b5caecd660e
[ "MIT" ]
null
null
null
FootCommander.hpp
noayair/WarGame
04a20acd669dc4f3cd6088f7149c5b5caecd660e
[ "MIT" ]
null
null
null
#pragma once #include "FootSoldier.hpp" class FootCommander: public FootSoldier{ public: FootCommander(int p): Soldier(p, 20 , 150, {0,0}, "FootCommander") {} FootCommander(): Soldier() {} void act(pair<int,int> l, std::vector<std::vector<Soldier*>>& board) override; void actAll(pair<int,int> l, std::vector<...
35.4
80
0.689266
[ "vector" ]
a5567caf368ccc51929c6ce1ee4e5fc8bdce8757
5,397
cpp
C++
PostProcessor/GenerateAnimation.cpp
MingAtUWA/SimpleMPM2
7a1d7c257c621123d85a0630e93d42ae25c70fb4
[ "MIT" ]
null
null
null
PostProcessor/GenerateAnimation.cpp
MingAtUWA/SimpleMPM2
7a1d7c257c621123d85a0630e93d42ae25c70fb4
[ "MIT" ]
null
null
null
PostProcessor/GenerateAnimation.cpp
MingAtUWA/SimpleMPM2
7a1d7c257c621123d85a0630e93d42ae25c70fb4
[ "MIT" ]
null
null
null
#include "PostProcessor_pcp.h" #include "gif.h" #include "GenerateAnimation.h" GenerateAnimation *GenerateAnimation::cur_generator = nullptr; GenerateAnimation::GenerateAnimation(GLsizei win_w, GLsizei win_h) : win_width(win_w), win_height(win_h), time_rcds(nullptr), time_rcd_num(0) {} GenerateAnimation::~Genera...
24.643836
107
0.709654
[ "render", "model" ]
a5568ac688c0539be585bcb3cf9461ce6d0b9f7b
11,275
cc
C++
sptensor2tt.cc
lljbash/FastTT
943ed6756f630bbf2a7d18f297b65b98c2d891b8
[ "MIT" ]
6
2021-02-27T10:07:33.000Z
2022-02-12T22:49:26.000Z
sptensor2tt.cc
lljbash/FastTT
943ed6756f630bbf2a7d18f297b65b98c2d891b8
[ "MIT" ]
null
null
null
sptensor2tt.cc
lljbash/FastTT
943ed6756f630bbf2a7d18f297b65b98c2d891b8
[ "MIT" ]
1
2021-09-14T09:22:55.000Z
2021-09-14T09:22:55.000Z
#include "sptensor2tt.h" #include <vector> #include <string> #include <unordered_map> #include <unordered_set> #include <memory> #include <limits> #include "xerus/misc/check.h" #include "xerus/misc/internal.h" using namespace std; #define order degree namespace xerus { int count_subvector(Tensor &a, int vpos) { ...
34.166667
118
0.530022
[ "vector" ]
a55a20831cf057a1152726058589b384eebec2e3
894
cpp
C++
leetcode.com/0322 Coin Change/main.cpp
sky-bro/AC
29bfa3f13994612887e18065fa6e854b9a29633d
[ "MIT" ]
1
2020-08-20T11:02:49.000Z
2020-08-20T11:02:49.000Z
leetcode.com/0322 Coin Change/main.cpp
sky-bro/AC
29bfa3f13994612887e18065fa6e854b9a29633d
[ "MIT" ]
null
null
null
leetcode.com/0322 Coin Change/main.cpp
sky-bro/AC
29bfa3f13994612887e18065fa6e854b9a29633d
[ "MIT" ]
1
2022-01-01T23:23:13.000Z
2022-01-01T23:23:13.000Z
#include <iostream> #include <vector> using namespace std; class Solution { public: int coinChange(vector<int>& coins, int amount) { vector<int> cnts(amount+1, -1); cnts[0] = 0; for (int i = 1; i <= amount; ++i) { for (int coin: coins) { if (coin > i) continue; ...
22.923077
63
0.444072
[ "vector" ]
a22a354a86303c7462005dc198445272bb64610d
15,320
cpp
C++
common/src/keyfile/rsa.cpp
waddlesplash/WonderBrush-v2
df20b6a43115d02e4606c71f27d0712ac2aebb62
[ "MIT" ]
null
null
null
common/src/keyfile/rsa.cpp
waddlesplash/WonderBrush-v2
df20b6a43115d02e4606c71f27d0712ac2aebb62
[ "MIT" ]
null
null
null
common/src/keyfile/rsa.cpp
waddlesplash/WonderBrush-v2
df20b6a43115d02e4606c71f27d0712ac2aebb62
[ "MIT" ]
null
null
null
// rsa.cpp #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <unistd.h> #include <sys/stat.h> #include <Archivable.h> #include <ByteOrder.h> #include <File.h> #include <Message.h> #include <OS.h> #include "rsa.h" #include "BigIntGenerator.h" #include "BitQueue.h" static const size_t kHeaderSize = s...
26.689895
82
0.674347
[ "object" ]
a23c1c4035bee3e4d0ec61450cb48fc10b081836
7,209
hpp
C++
INCLUDE/CSvcMgr.hpp
SammyB428/WFC
64aee7c7953e38c8a418ba9530339e8f4faac046
[ "BSD-2-Clause" ]
1
2021-03-29T06:09:19.000Z
2021-03-29T06:09:19.000Z
INCLUDE/CSvcMgr.hpp
SammyB428/WFC
64aee7c7953e38c8a418ba9530339e8f4faac046
[ "BSD-2-Clause" ]
null
null
null
INCLUDE/CSvcMgr.hpp
SammyB428/WFC
64aee7c7953e38c8a418ba9530339e8f4faac046
[ "BSD-2-Clause" ]
null
null
null
/* ** Author: Samuel R. Blackburn ** Internet: wfc@pobox.com ** ** Copyright, 1995-2019, Samuel R. Blackburn ** ** "You can get credit for something or get it done, but not both." ** Dr. Richard Garwin ** ** BSD License follows. ** ** Redistribution and use in source and binary forms, with or without ** modification, a...
47.427632
194
0.70842
[ "vector" ]
a23e15a7fc829d444e1389f11e85ec82e9aa6b90
6,904
cpp
C++
datastructure/kmp/kmp.cpp
sirdalang/cs
f039588480af975bde484f9b44d9f6df4e890b63
[ "MIT" ]
null
null
null
datastructure/kmp/kmp.cpp
sirdalang/cs
f039588480af975bde484f9b44d9f6df4e890b63
[ "MIT" ]
null
null
null
datastructure/kmp/kmp.cpp
sirdalang/cs
f039588480af975bde484f9b44d9f6df4e890b63
[ "MIT" ]
null
null
null
/** * @brief 串的模式匹配 * * 暴力搜索算法的两种写法。 * * KMP算法。 */ #include <iostream> #include <string> #include <string.h> #include <vector> /** * @brief 字串模式匹配的暴力搜索法 * * 算法描述: * 遍历@szSrc的每个位置并依次和@szToken比较,直到 * 找到完全匹配。 * * 算法特点:双层循环 * * 性能分析: * 记源串长度为n,模式串长度为m。 * 时间复杂度:O(nm) * 空间复杂度:O(1) */ const char *st...
20.795181
73
0.415846
[ "vector" ]
a243ad9081c1f9e119e259051f8b0589893730ed
1,945
cpp
C++
Client/src/evironment-variable-panel.cpp
q1e123/Network-resource-monitor
3cabbeeeee628597c4c7a2362eaa3d45995f5355
[ "MIT" ]
null
null
null
Client/src/evironment-variable-panel.cpp
q1e123/Network-resource-monitor
3cabbeeeee628597c4c7a2362eaa3d45995f5355
[ "MIT" ]
null
null
null
Client/src/evironment-variable-panel.cpp
q1e123/Network-resource-monitor
3cabbeeeee628597c4c7a2362eaa3d45995f5355
[ "MIT" ]
null
null
null
#include "environment-variable-panel.h" #include <vector> #include <algorithm> #include <string> #include "colors.h" #include "fonts.h" #include "gui-element-id.h" #include "my-process.h" #include "utils.h" Environment_Variable_Panel::Environment_Variable_Panel(){} Environment_Variable_Panel::Environment_Variable_P...
32.416667
117
0.747044
[ "vector" ]
a2513255ff33023e484ea759e7ab4b738467457f
1,960
hpp
C++
include/Module/Unaryop/Unaryop.hpp
FredrikBlomgren/aff3ct
fa616bd923b2dcf03a4cf119cceca51cf810d483
[ "MIT" ]
315
2016-06-21T13:32:14.000Z
2022-03-28T09:33:59.000Z
include/Module/Unaryop/Unaryop.hpp
a-panella/aff3ct
61509eb756ae3725b8a67c2d26a5af5ba95186fb
[ "MIT" ]
153
2017-01-17T03:51:06.000Z
2022-03-24T15:39:26.000Z
include/Module/Unaryop/Unaryop.hpp
a-panella/aff3ct
61509eb756ae3725b8a67c2d26a5af5ba95186fb
[ "MIT" ]
119
2017-01-04T14:31:58.000Z
2022-03-21T08:34:16.000Z
/*! * \file * \brief Class module::Unaryop. */ #ifndef UNARYOP_HPP_ #define UNARYOP_HPP_ #include <cstdint> #include <memory> #include <vector> #include "Tools/Math/unaryop.h" #include "Module/Task.hpp" #include "Module/Socket.hpp" #include "Module/Module.hpp" namespace aff3ct { namespace module { namespace uop...
26.486486
141
0.682653
[ "vector" ]
a252b687a10a10ec0577790b04f2f90f12608fd7
469
cpp
C++
easy/169_majority_element.cpp
pdu/leetcode_cpp
c487df7561f92562b20a31317957f47e0a20c485
[ "Apache-2.0" ]
4
2019-07-22T03:53:23.000Z
2019-10-17T01:37:41.000Z
easy/169_majority_element.cpp
pdu/leetcode_cpp
c487df7561f92562b20a31317957f47e0a20c485
[ "Apache-2.0" ]
null
null
null
easy/169_majority_element.cpp
pdu/leetcode_cpp
c487df7561f92562b20a31317957f47e0a20c485
[ "Apache-2.0" ]
2
2020-03-10T03:30:41.000Z
2020-11-10T06:51:34.000Z
// moore voting algorithm #include <vector> using namespace std; class Solution { public: int majorityElement(vector<int>& nums) { int ret = nums[0]; int count = 1; for (int i = 1; i < nums.size(); ++i) { if (count == 0) { ret = nums[i]; count =...
19.541667
47
0.420043
[ "vector" ]
a25380baf394d20559683d3311e191f6a65ae180
11,765
cpp
C++
ml/src/LinearRegression.cpp
georgephilipp/cppgstd_legacy
e130860da7700aae42b915bc36a7efa4cae06d56
[ "MIT" ]
null
null
null
ml/src/LinearRegression.cpp
georgephilipp/cppgstd_legacy
e130860da7700aae42b915bc36a7efa4cae06d56
[ "MIT" ]
null
null
null
ml/src/LinearRegression.cpp
georgephilipp/cppgstd_legacy
e130860da7700aae42b915bc36a7efa4cae06d56
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "LinearRegression.h" #include "gstd_matlab/src/MatlabMgr.h" #include "gstd/src/Linalg.h" #include "gstd/src/Stat.h" #include "gstd/src/Timer.h" #include "DpDoublesGenerators.h" #include "RegressionGenerators.h" #include "Data/src/Converters.h" #include "Converters.h" using namespace msii8...
30.322165
142
0.622524
[ "vector", "model" ]
a2578fa12d56587ced0973ca38c583281a3efb38
4,110
cpp
C++
s32v234_sdk/libs/io/gdi/vlab_vpd/src/vpd_func.cpp
intesight/Panorama4AIWAYS
46e1988e54a5155be3b3b47c486b3f722be00b5c
[ "WTFPL" ]
null
null
null
s32v234_sdk/libs/io/gdi/vlab_vpd/src/vpd_func.cpp
intesight/Panorama4AIWAYS
46e1988e54a5155be3b3b47c486b3f722be00b5c
[ "WTFPL" ]
null
null
null
s32v234_sdk/libs/io/gdi/vlab_vpd/src/vpd_func.cpp
intesight/Panorama4AIWAYS
46e1988e54a5155be3b3b47c486b3f722be00b5c
[ "WTFPL" ]
2
2021-01-21T02:06:16.000Z
2021-01-28T10:47:37.000Z
/***************************************************************************** * * Freescale Confidential Proprietary * * Copyright (c) 2014 Freescale Semiconductor; * All Rights Reserved * ***************************************************************************** * * THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" A...
35.431034
181
0.669343
[ "object" ]
a25fb4654cbbbbaf913505ba56609c7a58b9dac4
7,188
cpp
C++
escriptcore/src/AbstractContinuousDomain.cpp
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
escriptcore/src/AbstractContinuousDomain.cpp
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
escriptcore/src/AbstractContinuousDomain.cpp
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
/***************************************************************************** * * Copyright (c) 2003-2020 by The University of Queensland * http://www.uq.edu.au * * Primary Business: Queensland, Australia * Licensed under the Apache License, version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Development unt...
31.946667
150
0.727184
[ "object", "vector" ]
a2647960054988b9fb0ca1f458c08442b4e2df49
1,664
hpp
C++
src/gui/sound-effects-set.hpp
tilnewman/heroespath-src
a7784e44d8b5724f305ef8b8671fed54e2e5fd69
[ "BSL-1.0", "Beerware" ]
2
2019-02-28T00:28:08.000Z
2019-10-20T14:39:48.000Z
src/gui/sound-effects-set.hpp
tilnewman/heroespath-src
a7784e44d8b5724f305ef8b8671fed54e2e5fd69
[ "BSL-1.0", "Beerware" ]
null
null
null
src/gui/sound-effects-set.hpp
tilnewman/heroespath-src
a7784e44d8b5724f305ef8b8671fed54e2e5fd69
[ "BSL-1.0", "Beerware" ]
null
null
null
// ---------------------------------------------------------------------------- // "THE BEER-WARE LICENSE" (Revision 42): // <ztn@zurreal.com> wrote this file. As long as you retain this notice you // can do whatever you want with this stuff. If we meet some day, and you think // this stuff is worth it, you can buy me...
29.192982
88
0.63101
[ "vector" ]
a266449210d874dcc85f4c6ca264b44e807a44cf
3,663
cpp
C++
src/qt/src/3rdparty/webkit/Source/WebCore/bindings/js/ScriptCallStackFactory.cpp
ant0ine/phantomjs
8114d44a28134b765ab26b7e13ce31594fa81253
[ "BSD-3-Clause" ]
46
2015-01-08T14:32:34.000Z
2022-02-05T16:48:26.000Z
src/qt/src/3rdparty/webkit/Source/WebCore/bindings/js/ScriptCallStackFactory.cpp
ant0ine/phantomjs
8114d44a28134b765ab26b7e13ce31594fa81253
[ "BSD-3-Clause" ]
7
2015-01-20T14:28:12.000Z
2017-01-18T17:21:44.000Z
src/qt/src/3rdparty/webkit/Source/WebCore/bindings/js/ScriptCallStackFactory.cpp
ant0ine/phantomjs
8114d44a28134b765ab26b7e13ce31594fa81253
[ "BSD-3-Clause" ]
14
2015-10-27T06:17:48.000Z
2020-03-03T06:15:50.000Z
/* * Copyright (c) 2010 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of condit...
38.15625
110
0.723997
[ "vector" ]
a26695ba673210e20cd83ccbccc683bf173f6b0b
862
cpp
C++
search/MaxSum/MaxSubarraySum.cpp
avi-pal/al-go-rithms
5167a20f1db7b366ff19f2962c1746a02e4f5067
[ "CC0-1.0" ]
1,253
2017-06-06T07:19:25.000Z
2022-03-30T17:07:58.000Z
search/MaxSum/MaxSubarraySum.cpp
avi-pal/al-go-rithms
5167a20f1db7b366ff19f2962c1746a02e4f5067
[ "CC0-1.0" ]
554
2017-09-29T18:56:01.000Z
2022-02-21T15:48:13.000Z
search/MaxSum/MaxSubarraySum.cpp
avi-pal/al-go-rithms
5167a20f1db7b366ff19f2962c1746a02e4f5067
[ "CC0-1.0" ]
2,226
2017-09-29T19:59:59.000Z
2022-03-25T08:59:55.000Z
#include <bits/stdc++.h> using namespace std; long maxSum(vector<long> a, long m) { long sum = 0, max = LONG_MIN, result = LONG_MAX; set<long> s; for (int i = 0; i < a.size(); i++) { sum = (sum + a[i]) % m; a[i] = sum; max = std::max(max, sum); } for (auto x : a) {...
18.340426
52
0.412993
[ "vector" ]
a268f7519b4fb7c2db194b5c70abc20a09abd3dd
3,702
hpp
C++
blast/src/connect/services/netschedule_api_getjob.hpp
mycolab/ncbi-blast
e59746cec78044d2bf6d65de644717c42f80b098
[ "Apache-2.0" ]
null
null
null
blast/src/connect/services/netschedule_api_getjob.hpp
mycolab/ncbi-blast
e59746cec78044d2bf6d65de644717c42f80b098
[ "Apache-2.0" ]
null
null
null
blast/src/connect/services/netschedule_api_getjob.hpp
mycolab/ncbi-blast
e59746cec78044d2bf6d65de644717c42f80b098
[ "Apache-2.0" ]
null
null
null
#ifndef CONN_SERVICES___NETSCHEDULE_API_GETJOB__HPP #define CONN_SERVICES___NETSCHEDULE_API_GETJOB__HPP /* $Id: netschedule_api_getjob.hpp 607687 2020-05-06 16:16:59Z sadyrovr $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * ...
28.476923
78
0.643976
[ "vector" ]
a26a3a1a855a590c6386307d99ff8ebeffe627c8
2,443
cpp
C++
examples/particles/main.cpp
Grayson112233/sdlgl
68c0398fa1dc5ebed77f2528856f7cd6d6d9cdda
[ "MIT" ]
1
2019-12-25T19:35:00.000Z
2019-12-25T19:35:00.000Z
examples/particles/main.cpp
graysonpike/sdlgl
68c0398fa1dc5ebed77f2528856f7cd6d6d9cdda
[ "MIT" ]
null
null
null
examples/particles/main.cpp
graysonpike/sdlgl
68c0398fa1dc5ebed77f2528856f7cd6d6d9cdda
[ "MIT" ]
1
2019-12-25T19:35:01.000Z
2019-12-25T19:35:01.000Z
#include <iostream> #include <sdlgl/game/context.h> #include <sdlgl/graphics/graphics.h> #include <sdlgl/graphics/effects/linear_emitter.h> #include <sdlgl/game/clock.h> #include <sdlgl/ui/fps_display.h> #include <sdlgl/ui/entity_count.h> class ParticleExample { std::vector<SDL_Color> fire_colors; std::vecto...
30.5375
140
0.62587
[ "render", "vector" ]
a26baf3fca7117fb8c0fb4993621773d4b605327
4,538
cpp
C++
Uber_Duper_Simulation_Haxe/bin/windows/cpp/obj/src/haxe/ds/ObjectMap.cpp
as3boyan/Uber-Duper-Simulation
a3942831a1acf08479f06fd8cfe8896ec00ac32c
[ "MIT" ]
null
null
null
Uber_Duper_Simulation_Haxe/bin/windows/cpp/obj/src/haxe/ds/ObjectMap.cpp
as3boyan/Uber-Duper-Simulation
a3942831a1acf08479f06fd8cfe8896ec00ac32c
[ "MIT" ]
null
null
null
Uber_Duper_Simulation_Haxe/bin/windows/cpp/obj/src/haxe/ds/ObjectMap.cpp
as3boyan/Uber-Duper-Simulation
a3942831a1acf08479f06fd8cfe8896ec00ac32c
[ "MIT" ]
null
null
null
#include <hxcpp.h> #ifndef INCLUDED_IMap #include <IMap.h> #endif #ifndef INCLUDED_haxe_ds_IntMap #include <haxe/ds/IntMap.h> #endif #ifndef INCLUDED_haxe_ds_ObjectMap #include <haxe/ds/ObjectMap.h> #endif namespace haxe{ namespace ds{ Void ObjectMap_obj::__construct() { HX_STACK_FRAME("haxe.ds.ObjectMap","new",0x27a...
26.231214
172
0.734024
[ "object" ]
a27ad0c74d8b17408cad8a846cc4c1ddd9eff93d
9,488
cc
C++
SeekbarWindow.Events.cc
zhuman/foo_wave_seekbar
e53d99a5d7fe451a36299a4c2e58210ad21ebfd5
[ "BSL-1.0" ]
null
null
null
SeekbarWindow.Events.cc
zhuman/foo_wave_seekbar
e53d99a5d7fe451a36299a4c2e58210ad21ebfd5
[ "BSL-1.0" ]
null
null
null
SeekbarWindow.Events.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 "PchSeekbar.h" #include "SeekbarWindow.h" #include "SeekTooltip.h" #include "Clipboard.h" #inc...
28.154303
261
0.693718
[ "render" ]
a27c1a0b725bc75e66e067aff200647375d46b10
1,862
cpp
C++
practice/NickANdArray.cpp
xenowits/cp
963b3c7df65b5328d5ce5ef894a46691afefb98c
[ "MIT" ]
null
null
null
practice/NickANdArray.cpp
xenowits/cp
963b3c7df65b5328d5ce5ef894a46691afefb98c
[ "MIT" ]
null
null
null
practice/NickANdArray.cpp
xenowits/cp
963b3c7df65b5328d5ce5ef894a46691afefb98c
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; #define fori(i,a,b) for (int i = a; i <= b ; ++i) #define ford(i,a,b) for(int i = a;i >= b ; --i) #define mk make_pair #define mod 1000000007 #define pb push_back #define ll long long #define MAXN 100001 #define rnd mt19937_64 rng(chrono::high_resolution_clock::now().time_s...
18.808081
89
0.491944
[ "vector" ]
a289c550d85d3fc6bd2cda8009b3b4e32fdce4e7
10,485
inl
C++
engine/include/storm/engine/render/Transform.inl
Arthapz/StormKit
7c8dead874734d04b97776287b25bf2ebe9be617
[ "MIT" ]
17
2019-02-12T14:40:06.000Z
2021-12-21T12:54:17.000Z
engine/include/storm/engine/render/Transform.inl
Arthapz/StormKit
7c8dead874734d04b97776287b25bf2ebe9be617
[ "MIT" ]
null
null
null
engine/include/storm/engine/render/Transform.inl
Arthapz/StormKit
7c8dead874734d04b97776287b25bf2ebe9be617
[ "MIT" ]
2
2019-02-21T10:07:42.000Z
2020-05-08T19:49:10.000Z
// Copyright (C) 2021 Arthur LAURENT <arthur.laurent4@gmail.com> // This file is subject to the license terms in the LICENSE file // found in the top-level of this distribution namespace storm::engine { ///////////////////////////////////// ///////////////////////////////////// inline auto Transform::posit...
30.479651
96
0.391989
[ "transform" ]
a28c63064af6d76ed26658e6488bf50d90d01964
5,693
cpp
C++
scene/animation/root_motion_view.cpp
BornStellarMakesEternalLasting/godot
9f82368d40f1948de708804645374ea02ca6e7db
[ "CC-BY-3.0", "Apache-2.0", "MIT" ]
3
2018-05-12T13:01:29.000Z
2019-12-26T20:43:24.000Z
scene/animation/root_motion_view.cpp
Nufflee/godot
8fbce27ea8d699f99c234aad1e1ac29c7abfb5bb
[ "CC-BY-3.0", "Apache-2.0", "MIT" ]
null
null
null
scene/animation/root_motion_view.cpp
Nufflee/godot
8fbce27ea8d699f99c234aad1e1ac29c7abfb5bb
[ "CC-BY-3.0", "Apache-2.0", "MIT" ]
2
2018-09-14T13:58:57.000Z
2018-12-12T19:38:33.000Z
#include "root_motion_view.h" #include "scene/animation/animation_tree.h" #include "scene/resources/material.h" void RootMotionView::set_animation_path(const NodePath &p_path) { path = p_path; first = true; } NodePath RootMotionView::get_animation_path() const { return path; } void RootMotionView::set_color(const ...
31.804469
164
0.724223
[ "object", "transform" ]
a2910402855a11ed68478b8b4e07317c1fddd7ef
49,886
cpp
C++
src/FeatureMap.cpp
keio-bioinformatics/mxfold
cf1e13cf4334349a63b5676c49ae7d6a002ae6e3
[ "MIT" ]
4
2019-02-14T00:45:08.000Z
2021-11-06T21:02:26.000Z
src/FeatureMap.cpp
keio-bioinformatics/mxfold
cf1e13cf4334349a63b5676c49ae7d6a002ae6e3
[ "MIT" ]
2
2019-03-14T02:12:08.000Z
2019-03-28T05:59:27.000Z
src/FeatureMap.cpp
keio-bioinformatics/mxfold
cf1e13cf4334349a63b5676c49ae7d6a002ae6e3
[ "MIT" ]
2
2018-05-15T07:55:18.000Z
2021-02-10T17:48:55.000Z
#ifdef HAVE_CONFIG_H #include "../config.h" #endif #include "Config.hpp" #include "FeatureMap.hpp" #include "LogSpace.hpp" #include <cassert> #include <sstream> // constants const std::string s_base_pair("base_pair_"); const std::string s_base_pair_dist_at_least("base_pair_dist_at_least_%d"); const std::string s_termi...
26.478769
232
0.694103
[ "vector" ]
a2981428e414ab91d3715a5e74a5d5fb015365ba
1,079
cpp
C++
paradigms/binary_search/33_search-in-rotated-sorted-array.cpp
b1tank/leetcode
0b71eb7a4f52291ff072b1280d6b76e68f7adfee
[ "MIT" ]
null
null
null
paradigms/binary_search/33_search-in-rotated-sorted-array.cpp
b1tank/leetcode
0b71eb7a4f52291ff072b1280d6b76e68f7adfee
[ "MIT" ]
null
null
null
paradigms/binary_search/33_search-in-rotated-sorted-array.cpp
b1tank/leetcode
0b71eb7a4f52291ff072b1280d6b76e68f7adfee
[ "MIT" ]
null
null
null
// Author: b1tank // Email: b1tank@outlook.com //================================= /* 33_search-in-rotated-sorted-array LeetCode Solution: - empty array check */ #include <iostream> #include <vector> #include <string> using namespace std; class Solution { public: int search(vector<int>&...
24.522727
63
0.370714
[ "vector" ]
a298e28b57df43b33c328bd1531b9aa101c6f2d8
16,129
ipp
C++
include/fvm/implementation/component/MassKernels.ipp
thorbenlouw/CUP-CFD
d06f7673a1ed12bef24de4f1b828ef864fa45958
[ "MIT" ]
3
2021-06-24T10:20:12.000Z
2021-07-18T14:43:19.000Z
include/fvm/implementation/component/MassKernels.ipp
thorbenlouw/CUP-CFD
d06f7673a1ed12bef24de4f1b828ef864fa45958
[ "MIT" ]
2
2021-07-22T15:31:03.000Z
2021-07-28T14:27:28.000Z
include/fvm/implementation/component/MassKernels.ipp
thorbenlouw/CUP-CFD
d06f7673a1ed12bef24de4f1b828ef864fa45958
[ "MIT" ]
1
2021-07-22T15:24:24.000Z
2021-07-22T15:24:24.000Z
/* * @file * @author University of Warwick * @version 1.0 * * @section LICENSE * These kernels were ported/derived to C++ from Dolfyn: * Copyright 2003-2009 Henk Krus, Cyclone Fluid Dynamics BV * All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this f...
28.853309
117
0.579577
[ "mesh", "geometry" ]
9470b69812f3397a0190ed4a44b0c9d6db27eb63
3,209
cpp
C++
LivingPeople.cpp
ashwinrs/Shine
026489d8a8124dc88c33c7220b04ec41c3161878
[ "MIT" ]
null
null
null
LivingPeople.cpp
ashwinrs/Shine
026489d8a8124dc88c33c7220b04ec41c3161878
[ "MIT" ]
null
null
null
LivingPeople.cpp
ashwinrs/Shine
026489d8a8124dc88c33c7220b04ec41c3161878
[ "MIT" ]
null
null
null
/* Problem Type - Two array if else method Problem from - Cracking the coding interview. Moderate 16.10 Living People: Given an array of people with birth year and death year, find the max number of year the people were alive. algorithm: sort the birth year and death year. Add 1 when a birth happens, subtract 1 when...
32.744898
124
0.621377
[ "vector", "transform" ]
9471ec4120b174f4a44fa40232cd9babfab498ed
1,331
hpp
C++
examples/engine/engine/boot.hpp
Kysela/libaroma-1
0d97d91d10993698d581c7baa6d3d30a71bdcb62
[ "Apache-2.0" ]
null
null
null
examples/engine/engine/boot.hpp
Kysela/libaroma-1
0d97d91d10993698d581c7baa6d3d30a71bdcb62
[ "Apache-2.0" ]
null
null
null
examples/engine/engine/boot.hpp
Kysela/libaroma-1
0d97d91d10993698d581c7baa6d3d30a71bdcb62
[ "Apache-2.0" ]
null
null
null
/* Pterodon Recovery - bootup manager Copyright (C) <2019> ATGDroid <bythedroid@gmail.com> This file is part of Pterodon Recovery Project Pterodon Recovery is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by ...
30.25
79
0.703231
[ "vector" ]
94787882bd15f07286b2071af771e126d7b050d6
639
cpp
C++
out/aaa_missing.cpp
FardaleM/metalang
171557c540f3e2c051ec39ea150afb740c1f615f
[ "BSD-2-Clause" ]
22
2017-04-24T10:00:45.000Z
2021-04-01T10:11:05.000Z
out/aaa_missing.cpp
FardaleM/metalang
171557c540f3e2c051ec39ea150afb740c1f615f
[ "BSD-2-Clause" ]
12
2017-03-26T18:34:21.000Z
2019-03-21T19:13:03.000Z
out/aaa_missing.cpp
FardaleM/metalang
171557c540f3e2c051ec39ea150afb740c1f615f
[ "BSD-2-Clause" ]
7
2017-10-14T13:33:33.000Z
2021-03-18T15:18:50.000Z
#include <iostream> #include <vector> /* Ce test a été généré par Metalang. */ int result(int len, std::vector<int>& tab) { std::vector<bool> tab2( len, false ); for (int i1 = 0; i1 < len; i1++) { std::cout << tab[i1] << " "; tab2[tab[i1]] = true; } std::cout << "\n"; for (int...
19.363636
44
0.456964
[ "vector" ]
947b1d903d4822471929aa31d5852bca6a008e80
5,161
cpp
C++
Engine/source/VITC/console/vitcBitStreamObject.cpp
fr1tz/terminal-overload
85f0689a40022e5eb7e54dcb6ddfb5ddd82a0a60
[ "CC-BY-4.0" ]
46
2015-01-05T17:34:43.000Z
2022-01-04T04:03:09.000Z
Engine/source/VITC/console/vitcBitStreamObject.cpp
fr1tz/terminal-overload
85f0689a40022e5eb7e54dcb6ddfb5ddd82a0a60
[ "CC-BY-4.0" ]
10
2015-01-20T23:14:46.000Z
2019-04-05T22:04:15.000Z
Engine/source/VITC/console/vitcBitStreamObject.cpp
fr1tz/terminal-overload
85f0689a40022e5eb7e54dcb6ddfb5ddd82a0a60
[ "CC-BY-4.0" ]
9
2015-08-08T18:46:06.000Z
2021-02-01T13:53:20.000Z
// Copyright information can be found in the file named COPYING // located in the root directory of this distribution. #include "VITC/console/vitcBitStreamObject.h" #include "platform/platform.h" #include "console/consoleTypes.h" #include "console/engineAPI.h" #include "core/base64.h" #include "math/mMathFn.h" IMPLE...
23.247748
91
0.674869
[ "object" ]
947d435838820fa4347586bd4ad44261fa5a4772
3,100
cc
C++
code/addons/attic/physics/capsuleshape.cc
gscept/nebula-trifid
e7c0a0acb05eedad9ed37a72c1bdf2d658511b42
[ "BSD-2-Clause" ]
67
2015-03-30T19:56:16.000Z
2022-03-11T13:52:17.000Z
code/addons/attic/physics/capsuleshape.cc
gscept/nebula-trifid
e7c0a0acb05eedad9ed37a72c1bdf2d658511b42
[ "BSD-2-Clause" ]
5
2015-04-15T17:17:33.000Z
2016-02-11T00:40:17.000Z
code/addons/attic/physics/capsuleshape.cc
gscept/nebula-trifid
e7c0a0acb05eedad9ed37a72c1bdf2d658511b42
[ "BSD-2-Clause" ]
34
2015-03-30T15:08:00.000Z
2021-09-23T05:55:10.000Z
//------------------------------------------------------------------------------ // physics/capsuleshape.cc // (C) 2005 RadonLabs GmbH //------------------------------------------------------------------------------ #include "stdneb.h" #include "physics/capsuleshape.h" #include "debugrender/debugshaperenderer.h" #inc...
34.065934
104
0.56871
[ "render", "object", "shape", "vector" ]
947e396dc750e7b3f8afa6787d0b222f49dcbe5c
82,813
cpp
C++
csrc/define.cpp
ycaseau/CLAIRE3.5
57e3a719de7265e54f474003a422f8d509d19037
[ "Unlicense" ]
null
null
null
csrc/define.cpp
ycaseau/CLAIRE3.5
57e3a719de7265e54f474003a422f8d509d19037
[ "Unlicense" ]
null
null
null
csrc/define.cpp
ycaseau/CLAIRE3.5
57e3a719de7265e54f474003a422f8d509d19037
[ "Unlicense" ]
null
null
null
/***** CLAIRE Compilation of file /Users/ycaseau/claire/v3.5/src/meta/define.cl [version 3.5.01 / safety 5] Sun Jul 24 08:43:43 2016 *****/ #include <claire.h> #include <Kernel.h> #include <Core.h> #include <Language.h> //+-------------------------------------------------------------+ //| CLAIRE ...
41.740423
192
0.517853
[ "object", "vector" ]
9483a63dfd5f94fc7cc5d5248da351e02899dd82
4,849
cpp
C++
ImageHeightTrimesh/src/ImageHeightFieldApp.cpp
eighteight/CinderEigh
d9dfc6a0ad9a9e6c5b82624971127f0335d91639
[ "Apache-2.0" ]
null
null
null
ImageHeightTrimesh/src/ImageHeightFieldApp.cpp
eighteight/CinderEigh
d9dfc6a0ad9a9e6c5b82624971127f0335d91639
[ "Apache-2.0" ]
null
null
null
ImageHeightTrimesh/src/ImageHeightFieldApp.cpp
eighteight/CinderEigh
d9dfc6a0ad9a9e6c5b82624971127f0335d91639
[ "Apache-2.0" ]
null
null
null
#include "cinder/app/AppBasic.h" #include "cinder/ArcBall.h" #include "cinder/Rand.h" #include "cinder/Camera.h" #include "cinder/Surface.h" #include "cinder/gl/Vbo.h" #include "cinder/ImageIo.h" using namespace ci; using namespace ci::app; class ImageHFApp : public AppBasic { public: void setup(); void resi...
25.255208
138
0.592906
[ "vector" ]
948685290511a7837c1b607330fde82d2c58145a
7,992
cc
C++
hwy/contrib/sort/bench_sort.cc
oniliste/highway
f82b45e0b2428c5759cb3e7ea204b52ae27bb0bf
[ "Apache-2.0" ]
null
null
null
hwy/contrib/sort/bench_sort.cc
oniliste/highway
f82b45e0b2428c5759cb3e7ea204b52ae27bb0bf
[ "Apache-2.0" ]
null
null
null
hwy/contrib/sort/bench_sort.cc
oniliste/highway
f82b45e0b2428c5759cb3e7ea204b52ae27bb0bf
[ "Apache-2.0" ]
null
null
null
// Copyright 2021 Google LLC // SPDX-License-Identifier: Apache-2.0 // // 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 requ...
29.820896
79
0.678929
[ "vector" ]
948bb505a7e839c547be31bb495591b74f3d57ae
1,346
cpp
C++
1718-construct-the-lexicographically-largest-valid-sequence/1718-construct-the-lexicographically-largest-valid-sequence.cpp
Ananyaas/LeetCodeDaily
e134e20ac02f26dc40881c376656d3294be0df2c
[ "MIT" ]
2
2022-01-02T19:15:00.000Z
2022-01-05T21:12:24.000Z
1718-construct-the-lexicographically-largest-valid-sequence/1718-construct-the-lexicographically-largest-valid-sequence.cpp
Ananyaas/LeetCodeDaily
e134e20ac02f26dc40881c376656d3294be0df2c
[ "MIT" ]
null
null
null
1718-construct-the-lexicographically-largest-valid-sequence/1718-construct-the-lexicographically-largest-valid-sequence.cpp
Ananyaas/LeetCodeDaily
e134e20ac02f26dc40881c376656d3294be0df2c
[ "MIT" ]
1
2022-03-11T17:11:07.000Z
2022-03-11T17:11:07.000Z
class Solution { private: bool backtrack(vector<int>&curr,vector<bool>&table,int &n,int index){ if(index==curr.size()){ return true; } else if(curr[index]!=0){ return backtrack(curr,table,n,index+1); } else { for(int i=n;i>=1;i--){ if(!tabl...
32.047619
73
0.343239
[ "vector" ]
948d78d2398cd1ecb4f2a3fb496c00a625e5202e
7,308
cpp
C++
test/unit_test/policy/main.cpp
poseidonos/air
da7a5531abfd446941f5aa75fac8db984b664c6a
[ "MIT" ]
3
2021-08-19T00:17:02.000Z
2021-09-15T00:41:47.000Z
test/unit_test/policy/main.cpp
poseidonos/air
da7a5531abfd446941f5aa75fac8db984b664c6a
[ "MIT" ]
null
null
null
test/unit_test/policy/main.cpp
poseidonos/air
da7a5531abfd446941f5aa75fac8db984b664c6a
[ "MIT" ]
null
null
null
#include <gmock/gmock.h> #include <gtest/gtest.h> #include <stdio.h> #include <vector> #include "mock_collection_observer.h" #include "mock_output_observer.h" #include "policy_cor_handler_test.h" #include "src/config/ConfigInterface.h" TEST_F(PolicyTest, RulerCheckRule) { int count = cfg::GetSentenceCount(config...
51.104895
118
0.711275
[ "vector" ]
948e72ff6da71a05bcd73c6cbd063be2ec6ab141
3,429
cpp
C++
TP3_Prog_SpaceSim/ship.cpp
Arganancer/S3_TP3_Prog_SpaceSim
43364f6613ad690f81c94f8a027ee3708fa58d3d
[ "MIT" ]
null
null
null
TP3_Prog_SpaceSim/ship.cpp
Arganancer/S3_TP3_Prog_SpaceSim
43364f6613ad690f81c94f8a027ee3708fa58d3d
[ "MIT" ]
null
null
null
TP3_Prog_SpaceSim/ship.cpp
Arganancer/S3_TP3_Prog_SpaceSim
43364f6613ad690f81c94f8a027ee3708fa58d3d
[ "MIT" ]
null
null
null
#include "ship.h" #include "tools.hpp" #include <SFML/Graphics/RectangleShape.hpp> #include "hull.h" ship::ship(Vector2f position, float mass) : collidable(position, mass), desired_weapon_angle_(0), is_throttling_(false), owner_(npc), hull_max_endurance_(0), hull_current_endurance_(0), hull_percentage_strength_...
23.648276
92
0.740449
[ "shape", "vector" ]
9490490751250d2ceb9675f299488069bd2591b9
11,477
cpp
C++
examples/example_3_evaluators.cpp
SalusaSecondus/homomorphic-implementors-toolkit
b7775b77cb0ff4ff42a1b47bf958bb0e3c75fb9b
[ "Apache-2.0" ]
38
2020-12-02T12:43:16.000Z
2022-03-15T19:27:39.000Z
examples/example_3_evaluators.cpp
SalusaSecondus/homomorphic-implementors-toolkit
b7775b77cb0ff4ff42a1b47bf958bb0e3c75fb9b
[ "Apache-2.0" ]
15
2020-12-03T05:04:12.000Z
2021-08-20T21:26:27.000Z
examples/example_3_evaluators.cpp
SalusaSecondus/homomorphic-implementors-toolkit
b7775b77cb0ff4ff42a1b47bf958bb0e3c75fb9b
[ "Apache-2.0" ]
6
2021-01-06T18:37:00.000Z
2021-09-20T06:43:13.000Z
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 #include "hit/hit.h" #include <glog/logging.h> using namespace std; using namespace hit; // defined in example_1_ckks.cpp extern vector<double> random_vector(int dim, double maxNorm); // defined in example_2_...
54.652381
123
0.770236
[ "vector" ]
949512b4184b8eb3fd9ef8324c02c0b8cb758bf7
2,980
cpp
C++
common/hashing.cpp
SixSiebenUno/HashingTables
acbdf8a620c66eabc006a26b2473b5cb9239ffc7
[ "MIT" ]
null
null
null
common/hashing.cpp
SixSiebenUno/HashingTables
acbdf8a620c66eabc006a26b2473b5cb9239ffc7
[ "MIT" ]
null
null
null
common/hashing.cpp
SixSiebenUno/HashingTables
acbdf8a620c66eabc006a26b2473b5cb9239ffc7
[ "MIT" ]
null
null
null
// // \file hashing.cpp // \author Oleksandr Tkachenko // \email tkachenko@encrypto.cs.tu-darmstadt.de // \organization Cryptography and Privacy Engineering Group (ENCRYPTO) // \TU Darmstadt, Computer Science department // \copyright The MIT License. Copyright 2019 // // Permission is hereby granted, free of charge, to...
33.863636
99
0.71443
[ "vector" ]
94bca93c8ec1317ae786b996d695801cb266c2f7
1,392
hpp
C++
src/Sprite.hpp
Stephen-Seo/LudumDare37---One-Room---ZombieFight
a161923bcfd8441e6f682c793751b7642494401c
[ "MIT" ]
null
null
null
src/Sprite.hpp
Stephen-Seo/LudumDare37---One-Room---ZombieFight
a161923bcfd8441e6f682c793751b7642494401c
[ "MIT" ]
null
null
null
src/Sprite.hpp
Stephen-Seo/LudumDare37---One-Room---ZombieFight
a161923bcfd8441e6f682c793751b7642494401c
[ "MIT" ]
null
null
null
#ifndef LD37_SPRITE_HPP #define LD37_SPRITE_HPP #include <unordered_map> #include <vector> #include <SFML/Graphics.hpp> struct SpriteData { SpriteData() = default; SpriteData(sf::IntRect subRect, float duration); // copy SpriteData(const SpriteData& other) = default; SpriteData& operator = (con...
21.75
81
0.699713
[ "vector" ]
94c2b75a3ac70c5c8c4d48d679e3d74ec04a538e
543,700
cpp
C++
cisco-ios-xe/ydk/models/cisco_ios_xe/fragmented/Cisco_IOS_XE_native_116.cpp
CiscoDevNet/ydk-cpp
ef7d75970f2ef1154100e0f7b0a2ee823609b481
[ "ECL-2.0", "Apache-2.0" ]
17
2016-12-02T05:45:49.000Z
2022-02-10T19:32:54.000Z
cisco-ios-xe/ydk/models/cisco_ios_xe/fragmented/Cisco_IOS_XE_native_116.cpp
CiscoDevNet/ydk-cpp
ef7d75970f2ef1154100e0f7b0a2ee823609b481
[ "ECL-2.0", "Apache-2.0" ]
2
2017-03-27T15:22:38.000Z
2019-11-05T08:30:16.000Z
cisco-ios-xe/ydk/models/cisco_ios_xe/fragmented/Cisco_IOS_XE_native_116.cpp
CiscoDevNet/ydk-cpp
ef7d75970f2ef1154100e0f7b0a2ee823609b481
[ "ECL-2.0", "Apache-2.0" ]
11
2016-12-02T05:45:52.000Z
2019-11-07T08:28:17.000Z
#include <sstream> #include <iostream> #include <ydk/entity_util.hpp> #include "bundle_info.hpp" #include "generated_entity_lookup.hpp" #include "Cisco_IOS_XE_native_116.hpp" #include "Cisco_IOS_XE_native_117.hpp" using namespace ydk; namespace cisco_ios_xe { namespace Cisco_IOS_XE_native { Native::RouteMap::RouteM...
32.336148
940
0.690074
[ "vector" ]
94c6c74320141dcaca8d6112714309286b5f36da
135,036
cpp
C++
generated/MrubyCocos2dx.cpp
takeru/cocos2dx-mruby
57eaabef05c80a57bfbdb308ff65f35f99a2022b
[ "MIT" ]
3
2015-01-11T16:24:26.000Z
2015-12-18T19:34:17.000Z
generated/MrubyCocos2dx.cpp
takeru/cocos2dx-mruby
57eaabef05c80a57bfbdb308ff65f35f99a2022b
[ "MIT" ]
null
null
null
generated/MrubyCocos2dx.cpp
takeru/cocos2dx-mruby
57eaabef05c80a57bfbdb308ff65f35f99a2022b
[ "MIT" ]
null
null
null
#include <string> #include "cocos2d.h" #include "SimpleAudioEngine.h" #include "mruby/mruby.h" #include "mruby/mruby/array.h" extern int registerProc(mrb_state *mrb, mrb_value self, mrb_value proc); using namespace cocos2d; static CCSize* get_CCSize(mrb_state *mrb, mrb_value v); static CCTouch* get_CCTouch(mrb_state...
38.68118
119
0.720341
[ "vector" ]
94c89015db95f41e9516cb9ed9a522b724453de4
136
hpp
C++
src/mesh_loader.hpp
hadalhw17/meshloader
411babf21a6bddf61c6ea8fc8b8ffce325ae5e52
[ "MIT" ]
null
null
null
src/mesh_loader.hpp
hadalhw17/meshloader
411babf21a6bddf61c6ea8fc8b8ffce325ae5e52
[ "MIT" ]
null
null
null
src/mesh_loader.hpp
hadalhw17/meshloader
411babf21a6bddf61c6ea8fc8b8ffce325ae5e52
[ "MIT" ]
null
null
null
#pragma once #include "structures.hpp" #include <optional> namespace loader { std::optional<Model> loadMesh(const char*InFilename); }
13.6
53
0.757353
[ "model" ]
94cf823d72d7582efd2cb5fcadd21983a99036ff
26,439
cpp
C++
src/AGC/agcevent.cpp
FreeAllegiance/AllegianceDX7
3955756dffea8e7e31d3a55fcf6184232b792195
[ "MIT" ]
76
2015-08-18T19:18:40.000Z
2022-01-08T12:47:22.000Z
src/AGC/agcevent.cpp
StudentAlleg/Allegiance
e91660a471eb4e57e9cea4c743ad43a82f8c7b18
[ "MIT" ]
37
2015-08-14T22:44:12.000Z
2020-01-21T01:03:06.000Z
src/AGC/agcevent.cpp
FreeAllegiance/Allegiance-AZ
1d8678ddff9e2efc79ed449de6d47544989bc091
[ "MIT" ]
42
2015-08-13T23:31:35.000Z
2022-03-17T02:20:26.000Z
///////////////////////////////////////////////////////////////////////////// // AGCEvent.cpp : Implementation of CAGCEvent // #include "pch.h" #include "AGCEvent.h" #include "AGCEventDef.h" #include "AGCEventData.h" #include <..\TCLib\UtilImpl.h> #include <..\TCLib\BinString.h> #include <..\TCAtl\SimpleStream.h> //...
25.08444
93
0.645788
[ "object" ]
94d49aa209fa9ada2881efb27f6ee5ce2051de09
1,346
hpp
C++
source/backend/cpu/CPUConvArm82Int8.hpp
zhangzan1997/MNN
2860411058fcd5f5d4848b92b571276bda00e12b
[ "Apache-2.0" ]
1
2021-06-01T03:02:29.000Z
2021-06-01T03:02:29.000Z
source/backend/cpu/CPUConvArm82Int8.hpp
zhangzan1997/MNN
2860411058fcd5f5d4848b92b571276bda00e12b
[ "Apache-2.0" ]
null
null
null
source/backend/cpu/CPUConvArm82Int8.hpp
zhangzan1997/MNN
2860411058fcd5f5d4848b92b571276bda00e12b
[ "Apache-2.0" ]
null
null
null
// // CPUConvArm82Int8.hpp // MNN // // Created by MNN on b'2020/12/30'. // Copyright © 2018, Alibaba Group Holding Limited // #ifndef CPUConvArm82Int8_hpp #define CPUConvArm82Int8_hpp #if defined(ENABLE_ARMV82) && (defined(__ANDROID__) || defined(__aarch64__)) #include "backend/cpu/CPUConvolution.hpp" #include "ba...
32.829268
127
0.736256
[ "vector" ]
94dcdc05d2369bcc1a2cbd188c98d403db555b67
2,491
hpp
C++
framework/api/sys/helpers/macros/function_pointer.hpp
dterletskiy/carpc
c98d84e5bce69fb30a0f34e7b6cd82b4c98ba9b5
[ "MIT" ]
6
2022-03-24T15:40:03.000Z
2022-03-30T09:40:20.000Z
framework/api/sys/helpers/macros/function_pointer.hpp
dterletskiy/carpc
c98d84e5bce69fb30a0f34e7b6cd82b4c98ba9b5
[ "MIT" ]
7
2022-03-24T18:53:52.000Z
2022-03-30T10:15:50.000Z
framework/api/sys/helpers/macros/function_pointer.hpp
dterletskiy/carpc
c98d84e5bce69fb30a0f34e7b6cd82b4c98ba9b5
[ "MIT" ]
1
2022-03-20T21:22:09.000Z
2022-03-20T21:22:09.000Z
#pragma once /**************************************************************************************************** * * Function pointer helper macros * * Examples: * * class Consumer * { * public: * void print( int value ) { MSG_INF( "%d", value ); } * }; * void print( int value ) { MSG_INF( "%d", v...
35.084507
101
0.621839
[ "object" ]
94eadd9f99ab3fd731db46b7a44f37b2e8aab887
2,081
hpp
C++
liboh/plugins/js/JSObjectStructs/JSVisibleStruct.hpp
sirikata/sirikata
3a0d54a8c4778ad6e25ef031d461b2bc3e264860
[ "BSD-3-Clause" ]
31
2015-01-28T17:01:10.000Z
2021-11-04T08:30:37.000Z
liboh/plugins/js/JSObjectStructs/JSVisibleStruct.hpp
sirikata/sirikata
3a0d54a8c4778ad6e25ef031d461b2bc3e264860
[ "BSD-3-Clause" ]
null
null
null
liboh/plugins/js/JSObjectStructs/JSVisibleStruct.hpp
sirikata/sirikata
3a0d54a8c4778ad6e25ef031d461b2bc3e264860
[ "BSD-3-Clause" ]
9
2015-08-02T18:39:49.000Z
2019-10-11T10:32:30.000Z
#ifndef __SIRIKATA_JS_VISIBLE_STRUCT_HPP__ #define __SIRIKATA_JS_VISIBLE_STRUCT_HPP__ #include <sirikata/oh/HostedObject.hpp> #include <v8.h> #include <vector> #include "JSPositionListener.hpp" #include "../JSCtx.hpp" #include "../JSVisibleData.hpp" namespace Sirikata { namespace JS { //need to forward-declare this ...
30.602941
105
0.760692
[ "object", "vector" ]
94f06645b7376e84c178e76bbf13afc3068ae4fa
873
cpp
C++
NeuralNetwork/SingleLayerNeuralNetwork/NeuralNetwork.cpp
gopiraj15/DeepLearning
7a61209ca294d818ff5f413a223ac4f0f1893f79
[ "MIT" ]
null
null
null
NeuralNetwork/SingleLayerNeuralNetwork/NeuralNetwork.cpp
gopiraj15/DeepLearning
7a61209ca294d818ff5f413a223ac4f0f1893f79
[ "MIT" ]
null
null
null
NeuralNetwork/SingleLayerNeuralNetwork/NeuralNetwork.cpp
gopiraj15/DeepLearning
7a61209ca294d818ff5f413a223ac4f0f1893f79
[ "MIT" ]
null
null
null
#include "NeuralNetwork.h" using namespace cv; using namespace std; void load_dataset(std::string x_data, std::string y_data, vector<double>& X, vector<double>& Y) { ifstream xf(x_data), yf(y_data); while (!xf.eof()) { double x; xf >> x; X.emplace_back(x); } xf.close(); X.erase(X.begin() + X.size() -...
14.311475
95
0.608247
[ "vector" ]
94fafa11bd9b4b9c02195ad2c351ef85cab49d36
5,989
cpp
C++
openbr/plugins/imgproc/integralsampler.cpp
kassemitani/openbr
7b453f7abc6f997839a858f4b7686bc5e21ef7b2
[ "Apache-2.0" ]
61
2016-01-27T04:23:04.000Z
2020-06-19T20:45:16.000Z
openbr/plugins/imgproc/integralsampler.cpp
kassemitani/openbr
7b453f7abc6f997839a858f4b7686bc5e21ef7b2
[ "Apache-2.0" ]
2
2016-04-09T13:55:15.000Z
2017-11-21T03:08:08.000Z
openbr/plugins/imgproc/integralsampler.cpp
kassemitani/openbr
7b453f7abc6f997839a858f4b7686bc5e21ef7b2
[ "Apache-2.0" ]
18
2016-01-27T13:07:47.000Z
2022-01-22T17:19:18.000Z
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright 2012 The MITRE Corporation * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * y...
48.691057
115
0.54717
[ "transform" ]
94fced861ac1aef92defd369cabd6586cd9944e6
1,114
cpp
C++
source/FAST/Examples/DataImport/importVertexMeshFromFile.cpp
andreped/FAST
361819190ea0ae5a2f068e7bd808a1c70af5a171
[ "BSD-2-Clause" ]
null
null
null
source/FAST/Examples/DataImport/importVertexMeshFromFile.cpp
andreped/FAST
361819190ea0ae5a2f068e7bd808a1c70af5a171
[ "BSD-2-Clause" ]
null
null
null
source/FAST/Examples/DataImport/importVertexMeshFromFile.cpp
andreped/FAST
361819190ea0ae5a2f068e7bd808a1c70af5a171
[ "BSD-2-Clause" ]
null
null
null
/** * @example importVertexMeshFromFile.cpp * An example of importing and visualizing a mesh containing vertices from a file using the VTKMeshFileImporter */ #include <FAST/Tools/CommandLineParser.hpp> #include "FAST/Importers/VTKMeshFileImporter.hpp" #include "FAST/Visualization/VertexRenderer/VertexRenderer.hpp" #...
34.8125
111
0.745063
[ "mesh", "render" ]
94fdf7db1e182e744e4b3edc13c5bc4b86e3d6be
4,125
cc
C++
src/sas/sascalc/simulation/pointsmodelpy/tests/testlores.cc
opendatafit/sasview
c470220eecfc9f6d8a0e27e2ea8919dcb1b38e39
[ "BSD-3-Clause" ]
null
null
null
src/sas/sascalc/simulation/pointsmodelpy/tests/testlores.cc
opendatafit/sasview
c470220eecfc9f6d8a0e27e2ea8919dcb1b38e39
[ "BSD-3-Clause" ]
1
2021-09-20T13:20:35.000Z
2021-09-20T13:20:35.000Z
src/sas/sascalc/simulation/pointsmodelpy/tests/testlores.cc
opendatafit/sasview
c470220eecfc9f6d8a0e27e2ea8919dcb1b38e39
[ "BSD-3-Clause" ]
null
null
null
#include <cstdlib> #include <iostream> #include <fstream> #include <vector> #include "lores_model.h" #include "sphere.h" #include "cylinder.h" #include "ellipsoid.h" #include "Point3D.h" using namespace std; void test_calculateIQ(LORESModel &lm); void WritePointsCoor(vector<Point3D> &vp){ ofstream outfile("testcc....
19.642857
82
0.587879
[ "vector", "model" ]
a201fb7b00b84d73f7dfecba65edffd9fbf1ccab
7,907
cpp
C++
zeek-remote/src/utils.cpp
kumarak/osquery-extension
a984b24720cb4bd3a867e6037fea13f2ce31de92
[ "BSD-3-Clause" ]
null
null
null
zeek-remote/src/utils.cpp
kumarak/osquery-extension
a984b24720cb4bd3a867e6037fea13f2ce31de92
[ "BSD-3-Clause" ]
null
null
null
zeek-remote/src/utils.cpp
kumarak/osquery-extension
a984b24720cb4bd3a867e6037fea13f2ce31de92
[ "BSD-3-Clause" ]
null
null
null
/** * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under both the Apache 2.0 license (found in the * LICENSE file in the root directory of this source tree) and the GPLv2 (found * in the COPYING file in the root directory of this source tree). * You may...
30.528958
80
0.618945
[ "vector" ]
a21856f1c95e34c732813c3ae9193c4b2b201125
2,990
hpp
C++
src/app/bc-selector.hpp
mimo31/fluid-sim
481c3e5a5456350bccb8795aa119a3487dff3021
[ "MIT" ]
1
2020-11-26T17:20:28.000Z
2020-11-26T17:20:28.000Z
src/app/bc-selector.hpp
mimo31/brandy0
481c3e5a5456350bccb8795aa119a3487dff3021
[ "MIT" ]
null
null
null
src/app/bc-selector.hpp
mimo31/brandy0
481c3e5a5456350bccb8795aa119a3487dff3021
[ "MIT" ]
null
null
null
/** * bc-selector.hpp * * Author: Viktor Fukala * Created on 2020/12/27 */ #ifndef BC_SELECTOR_HPP #define BC_SELECTOR_HPP #include <functional> #include <gtkmm/comboboxtext.h> #include <gtkmm/entry.h> #include <gtkmm/frame.h> #include <gtkmm/grid.h> #include <gtkmm/label.h> #include "annotated-entry.hpp" #inc...
31.145833
122
0.747157
[ "object" ]
a21b833b50c85f4d9f1183ae32e7d153e62936f1
2,803
cpp
C++
BOJ/17144.미세먼지 안녕!.cpp
Jeongseo21/Algorithm-1
1bce4f3d2328c3b3e24b9d7772fca43090a285e1
[ "MIT" ]
null
null
null
BOJ/17144.미세먼지 안녕!.cpp
Jeongseo21/Algorithm-1
1bce4f3d2328c3b3e24b9d7772fca43090a285e1
[ "MIT" ]
null
null
null
BOJ/17144.미세먼지 안녕!.cpp
Jeongseo21/Algorithm-1
1bce4f3d2328c3b3e24b9d7772fca43090a285e1
[ "MIT" ]
null
null
null
/** * problem : https://www.acmicpc.net/problem/17144 * time complexity : O(RCT) */ #include <iostream> #include <vector> #include <algorithm> #define CLOCK_DIRECTION 0 #define COUNTER_CLOCK_DIRECTION 1 using namespace std; int dx[] = {0, -1, 0, 1}; int dy[] = {1, 0, -1, 0}; // 오른쪽 아래 왼쪽 위 (시계방향) pair<int,int> ...
26.196262
72
0.426329
[ "vector" ]
b8c48b06b6055065de29e428ea0fb9167e209ae0
2,460
cpp
C++
theory/bst/code.cpp
ideahitme/coursera
af44c8d817481d4f9025205284f109d95a9bb45d
[ "MIT" ]
null
null
null
theory/bst/code.cpp
ideahitme/coursera
af44c8d817481d4f9025205284f109d95a9bb45d
[ "MIT" ]
null
null
null
theory/bst/code.cpp
ideahitme/coursera
af44c8d817481d4f9025205284f109d95a9bb45d
[ "MIT" ]
null
null
null
#include <vector> #include <iostream> #include <set> #include <algorithm> using namespace std; struct node{ int key; unsigned char height = 0; //c++11 node *parent = NULL; node *left = NULL; node *right = NULL; }; class BST //binary search tree with no duplicated key { private: node *root = NULL; int height(n...
17.571429
62
0.54065
[ "vector" ]
b8dfc93090e7e1492c3979473cf917ab0dcf86e0
7,284
cpp
C++
implementations/Bullet/World.cpp
ronsaldo/abstract-physics
dbc23a57bfa369139c786071b2a6db4e84bb16fe
[ "MIT" ]
10
2016-12-11T04:54:18.000Z
2022-02-27T18:12:18.000Z
implementations/Bullet/World.cpp
ronsaldo/abstract-physics
dbc23a57bfa369139c786071b2a6db4e84bb16fe
[ "MIT" ]
null
null
null
implementations/Bullet/World.cpp
ronsaldo/abstract-physics
dbc23a57bfa369139c786071b2a6db4e84bb16fe
[ "MIT" ]
null
null
null
#include "Broadphase.hpp" #include "CollisionConfiguration.hpp" #include "CollisionDispatcher.hpp" #include "CollisionObject.hpp" #include "ConstraintSolver.hpp" #include "CharacterController.hpp" #include "World.hpp" #include <vector> namespace APhyBullet { class BulletWorldDebugDrawer : public btIDebugDraw { public...
27.078067
198
0.711422
[ "object", "vector" ]
b8e54d0395cdfda6a4a43ae37cb640010c9c869e
674
cxx
C++
POSN Camp2/exact_sum.cxx
ParamaaS/ParamaaS-Cpp-code-
a6c78151defe38d1460cde2b005a67be5a1d092d
[ "MIT" ]
null
null
null
POSN Camp2/exact_sum.cxx
ParamaaS/ParamaaS-Cpp-code-
a6c78151defe38d1460cde2b005a67be5a1d092d
[ "MIT" ]
null
null
null
POSN Camp2/exact_sum.cxx
ParamaaS/ParamaaS-Cpp-code-
a6c78151defe38d1460cde2b005a67be5a1d092d
[ "MIT" ]
null
null
null
/*/ - Paramaa Sawanpanyalert - Lang : c++ /*/ #include <bits/stdc++.h> using namespace std; #define X first #define Y second #define mp make_pair #define pb push_back map<long long,long long> mmp; map<long long,long long>::iterator it; int n,m,d,c,c2,f,s,ff,ss; vector<int> vec; main() { scanf("%d%d",&n,&m); f...
15.318182
39
0.52819
[ "vector" ]
b8fc1cb4407069ad9e695caed455f17b3d1e4967
514
cpp
C++
String/26_longest_common_prefix.cpp
ritikrajdev/450DSA
a9efa8c8be781fd7b101407ac807a83b8a0929f4
[ "MIT" ]
null
null
null
String/26_longest_common_prefix.cpp
ritikrajdev/450DSA
a9efa8c8be781fd7b101407ac807a83b8a0929f4
[ "MIT" ]
null
null
null
String/26_longest_common_prefix.cpp
ritikrajdev/450DSA
a9efa8c8be781fd7b101407ac807a83b8a0929f4
[ "MIT" ]
null
null
null
#include <string> #include <vector> using namespace std; class Solution { public: string longestCommonPrefix(vector<string>& strs) { string x = ""; x.reserve(strs[0].length()); for (int i = 0; i < strs[0].size(); i++) { char prefix = strs[0][i]; for (int j ...
23.363636
66
0.463035
[ "vector" ]
77021088e5828cdc6cb944fe113dafa199c755fa
492
cpp
C++
test/assets/asset_manager.cpp
Wzz1252/leveldb
d3c204b15f9b5bbb3fb75e870b9693805a067df2
[ "BSD-3-Clause" ]
null
null
null
test/assets/asset_manager.cpp
Wzz1252/leveldb
d3c204b15f9b5bbb3fb75e870b9693805a067df2
[ "BSD-3-Clause" ]
null
null
null
test/assets/asset_manager.cpp
Wzz1252/leveldb
d3c204b15f9b5bbb3fb75e870b9693805a067df2
[ "BSD-3-Clause" ]
null
null
null
// // Created by torment on 2020/4/8. // #include "asset_manager.h" namespace assets { int asset_manager::add_asset(asset *asset) { assets.push_back(asset); return 0; } std::vector<asset *> asset_manager::get_asset() { return assets; } double asset_manager::get_total_ass...
19.68
53
0.581301
[ "vector" ]
770bcf82b7862cabb1d915d421432607b36b2eff
6,071
cc
C++
Modules/Numerics/src/Vector.cc
lisurui6/MIRTK
5a06041102d7205b5aac147ff768df6e9415bd03
[ "Apache-2.0" ]
146
2016-01-15T15:02:02.000Z
2022-03-24T01:43:30.000Z
Modules/Numerics/src/Vector.cc
aria-rui/MIRTK
877917b1b3ec9e602f7395dbbb1270e4334fc311
[ "Apache-2.0" ]
196
2016-01-15T16:45:58.000Z
2022-03-24T01:06:53.000Z
Modules/Numerics/src/Vector.cc
aria-rui/MIRTK
877917b1b3ec9e602f7395dbbb1270e4334fc311
[ "Apache-2.0" ]
72
2016-01-15T15:04:32.000Z
2022-03-25T11:05:16.000Z
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2008-2015 Imperial College London * Copyright 2008-2015 Daniel Rueckert, Julia Schnabel * * 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 ...
26.744493
91
0.540273
[ "vector" ]
770c3483c5e4def1c34c12949533e8d4bdbe79ce
1,054
cpp
C++
legacy/hmmFuns.cpp
stanley-rozell/hmm
21dc000961b960a5e1fbf66cb11e74c4e1532ad2
[ "Apache-2.0" ]
null
null
null
legacy/hmmFuns.cpp
stanley-rozell/hmm
21dc000961b960a5e1fbf66cb11e74c4e1532ad2
[ "Apache-2.0" ]
12
2021-03-09T23:04:14.000Z
2021-05-17T16:02:29.000Z
legacy/hmmFuns.cpp
stanley-rozell/hmm
21dc000961b960a5e1fbf66cb11e74c4e1532ad2
[ "Apache-2.0" ]
null
null
null
// // hmmFuns.cpp // xRue // // Created by Adam Willats on 7/19/17. // Copyright © 2017 Adam Willats. All rights reserved. // #include "hmmFuns.hpp" //not needed here? #include <iostream> //#include <vector> using namespace std; vector<int> genHMM(vector<double> frs, vector<double> trs, int numSteps){ v...
19.163636
78
0.589184
[ "vector" ]
77169df2264514ce49f99b942334bd8f2f47c62f
919
cc
C++
test/utils.cc
iszczesniak/gd
cb076aa99f0dcb940388c664f07904440506b218
[ "BSL-1.0" ]
3
2019-07-04T15:37:51.000Z
2022-01-11T08:13:13.000Z
test/utils.cc
iszczesniak/gd
cb076aa99f0dcb940388c664f07904440506b218
[ "BSL-1.0" ]
null
null
null
test/utils.cc
iszczesniak/gd
cb076aa99f0dcb940388c664f07904440506b218
[ "BSL-1.0" ]
null
null
null
#define BOOST_TEST_MODULE Utils #include "cunits.hpp" #include "sunits.hpp" #include "utils.hpp" #include "sample_graphs.hpp" #include <boost/test/unit_test.hpp> #include <random> #include <set> #include <tuple> #include <vector> using namespace std; BOOST_AUTO_TEST_CASE(get_random_int_test) { std::default_rand...
19.145833
47
0.628945
[ "vector" ]
772254abdcc5540cf1f9d04bc91774e8c654be54
964
cpp
C++
server/src/entities/structures/Wall.cpp
gabyrobles93/worms-game-remake
b97781f39369f807ae8c8316f7f313353d7a2df7
[ "MIT" ]
2
2019-04-24T18:27:29.000Z
2020-04-06T17:15:34.000Z
server/src/entities/structures/Wall.cpp
gabyrobles93/tp-final-taller
b97781f39369f807ae8c8316f7f313353d7a2df7
[ "MIT" ]
null
null
null
server/src/entities/structures/Wall.cpp
gabyrobles93/tp-final-taller
b97781f39369f807ae8c8316f7f313353d7a2df7
[ "MIT" ]
null
null
null
#include "Wall.h" Wall::Wall(b2World& world, float posX, float posY, float width, float height) : world(world) { b2BodyDef wallDef; wallDef.type = b2_staticBody; wallDef.position.Set(posX, posY); wallDef.allowSleep = true; b2Body* body = world.CreateBody(&wallDef); body->SetAwake(false); bo...
23.512195
79
0.677386
[ "shape" ]
7723fcd1cd02cbdd0b86a0f2a6988a71fdecfd4d
7,977
cpp
C++
Marlin-1.1.9/Marlin/fwretract.cpp
sdsd4564/Ender-5-Configurations
8846a01257538770d2cd7514b46ad8f12d3685b1
[ "MIT" ]
12
2020-05-23T22:55:34.000Z
2020-12-24T13:53:43.000Z
Marlin-1.1.9/Marlin/fwretract.cpp
sdsd4564/Ender-5-Configurations
8846a01257538770d2cd7514b46ad8f12d3685b1
[ "MIT" ]
1
2019-09-12T02:01:05.000Z
2019-09-12T02:01:05.000Z
Marlin-1.1.9/Marlin/fwretract.cpp
sdsd4564/Ender-5-Configurations
8846a01257538770d2cd7514b46ad8f12d3685b1
[ "MIT" ]
4
2020-05-24T10:26:49.000Z
2020-06-01T19:14:08.000Z
/** * Marlin 3D Printer Firmware * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General...
39.885
124
0.677072
[ "3d" ]
772c259bb9afd708ff513bca85726de4e4b8b3d8
3,541
cc
C++
lib/utility/libgclgrid/remapgrid.cc
jreyes1108/antelope_contrib
be2354605d8463d6067029eb16464a0bf432a41b
[ "BSD-2-Clause", "MIT" ]
30
2015-02-20T21:44:29.000Z
2021-09-27T02:53:14.000Z
lib/utility/libgclgrid/remapgrid.cc
jreyes1108/antelope_contrib
be2354605d8463d6067029eb16464a0bf432a41b
[ "BSD-2-Clause", "MIT" ]
14
2015-07-07T19:17:24.000Z
2020-12-19T19:18:53.000Z
lib/utility/libgclgrid/remapgrid.cc
jreyes1108/antelope_contrib
be2354605d8463d6067029eb16464a0bf432a41b
[ "BSD-2-Clause", "MIT" ]
46
2015-02-06T16:22:41.000Z
2022-03-30T11:46:37.000Z
#include "gclgrid.h" /* This set of functions take the input grid g and remap the internal coordinates to be consistent with the coordinate system in pattern. The same function exists for both 2d and 3d grid. The field objects can use this function using a dynamic cast to the parent grid because they do not a...
31.336283
99
0.708839
[ "geometry", "object", "3d" ]
77339a8b6662095eee7373b8f00e4828c618ed75
613
cpp
C++
LightAndDarkness/LightAndDarkness/Globals.cpp
McCampins/LightAndDarkness
3d1ab368df359d5ca294fcc2b4b8a2d54a1a6430
[ "Apache-2.0" ]
null
null
null
LightAndDarkness/LightAndDarkness/Globals.cpp
McCampins/LightAndDarkness
3d1ab368df359d5ca294fcc2b4b8a2d54a1a6430
[ "Apache-2.0" ]
null
null
null
LightAndDarkness/LightAndDarkness/Globals.cpp
McCampins/LightAndDarkness
3d1ab368df359d5ca294fcc2b4b8a2d54a1a6430
[ "Apache-2.0" ]
null
null
null
#include "Globals.h" using namespace std; bool Same(const string& a, const string& b) { return _stricmp(a.c_str(), b.c_str()) == 0; } bool Same(const char* a, const char* b) { return _stricmp(a, b) == 0; } bool Same(const string& a, const char* b) { return _stricmp(a.c_str(), b) == 0; } bool Same(const char* a,...
15.717949
55
0.606852
[ "vector" ]
77366a059e8fff53fbca5a6bc23f8ef388bd86b5
1,878
cpp
C++
clients/cpp-tiny/generated/lib/TestFiles/DefaultCrumbIssuerTest.cpp
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
clients/cpp-tiny/generated/lib/TestFiles/DefaultCrumbIssuerTest.cpp
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
clients/cpp-tiny/generated/lib/TestFiles/DefaultCrumbIssuerTest.cpp
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
#include "DefaultCrumbIssuer.h" using namespace Tiny; #include <string> #include <list> #include <unity.h> #include "bourne/json.hpp" void test_DefaultCrumbIssuer__class_is_assigned_from_json() { bourne::json input = { "_class", "hello" }; DefaultCrumbIssuer obj(input.dump()); TEST...
13.414286
75
0.649627
[ "object" ]
773d6ae5b474d2aed62ae3173a07fa6388271b50
1,314
cpp
C++
examples/google-code-jam/slowpoke/B.cpp
rbenic-fer/progauthfp
d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675
[ "MIT" ]
null
null
null
examples/google-code-jam/slowpoke/B.cpp
rbenic-fer/progauthfp
d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675
[ "MIT" ]
null
null
null
examples/google-code-jam/slowpoke/B.cpp
rbenic-fer/progauthfp
d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <algorithm> #include <map> #include <set> #include <unordered_map> #include <unordered_set> #include <queue> #include <array> #include <string> #include <deque> #include <list> #include <numeric> #include <limits> #include <utility> #include <cmath> #includ...
16.632911
51
0.469559
[ "vector" ]
773dfedfe4192430b3743fc0c22589620566f09f
11,233
cpp
C++
src/RenderMeshMatch/main.cpp
mmrwizard/RenderMatch-1
a427138e6823675eaa76c693bc31a28566b4dcd8
[ "MIT" ]
null
null
null
src/RenderMeshMatch/main.cpp
mmrwizard/RenderMatch-1
a427138e6823675eaa76c693bc31a28566b4dcd8
[ "MIT" ]
null
null
null
src/RenderMeshMatch/main.cpp
mmrwizard/RenderMatch-1
a427138e6823675eaa76c693bc31a28566b4dcd8
[ "MIT" ]
1
2020-05-12T08:19:14.000Z
2020-05-12T08:19:14.000Z
/* * @Author: Han * @Date: 2019-11-15 20:01:59 * The pipeline for render image and aerial-ground match with rendered images as delegates */ #include <cxxopts.hpp> #include <opencv2/imgcodecs.hpp> #include <osg/PagedLOD> #include <osgDB/DatabasePager> #include <osgDB/ReadFile> #include <osgDB/Registry> #include <o...
38.868512
120
0.580077
[ "mesh", "render", "object", "model", "transform" ]
773f1fb6ec5bbe63b8cad816cfe79d44f5c66823
397
cpp
C++
source/engine/render/shaders/Compiler.cpp
aviktorov/pbr-sandbox
66a71c741dac2d2dd46668a506d02de88f05e399
[ "MIT" ]
19
2020-02-11T19:57:41.000Z
2022-02-20T14:11:33.000Z
source/engine/render/shaders/Compiler.cpp
aviktorov/pbr-sandbox
66a71c741dac2d2dd46668a506d02de88f05e399
[ "MIT" ]
null
null
null
source/engine/render/shaders/Compiler.cpp
aviktorov/pbr-sandbox
66a71c741dac2d2dd46668a506d02de88f05e399
[ "MIT" ]
5
2019-11-05T17:38:33.000Z
2022-03-04T12:49:58.000Z
#include <render/shaders/Compiler.h> #include "render/shaders/spirv/Compiler.h" #include <cassert> namespace render::shaders { Compiler *Compiler::create(ShaderILType type, io::IFileSystem *file_system) { switch (type) { case ShaderILType::SPIRV: return new spirv::Compiler(file_system); } return nullptr...
17.26087
76
0.722922
[ "render" ]
774372cbe872e96e92d28a60fe5ac5b9e69efafe
1,094
cpp
C++
src/999 Available Captures for Rook.cpp
LL-Pengfei/LL-Pengfei-Leetcode-Solutions
3ae358877bdb943bef67a55372ce7f04d2881072
[ "MIT" ]
null
null
null
src/999 Available Captures for Rook.cpp
LL-Pengfei/LL-Pengfei-Leetcode-Solutions
3ae358877bdb943bef67a55372ce7f04d2881072
[ "MIT" ]
null
null
null
src/999 Available Captures for Rook.cpp
LL-Pengfei/LL-Pengfei-Leetcode-Solutions
3ae358877bdb943bef67a55372ce7f04d2881072
[ "MIT" ]
null
null
null
//999. Available Captures for Rook //https://leetcode.com/problems/available-captures-for-rook/ class Solution { public: int numRookCaptures(vector<vector<char>>& board) { int ii,jj,res=0,A[8][8]={{0}}; //0 empty; 1 white; 2 black for (int i = 0; i < 8; ++i) { for (int j = 0; j < 8; ++j...
33.151515
66
0.379342
[ "vector" ]
774813f913e2f20e3517741666a11f5471701ab3
50,204
hpp
C++
ext/bliss/retired/src/io/message_buffers.hpp
tuan1225/parconnect_sc16
bcd6f99101685d746cf30e22fa3c3f63ddd950c9
[ "Apache-2.0" ]
null
null
null
ext/bliss/retired/src/io/message_buffers.hpp
tuan1225/parconnect_sc16
bcd6f99101685d746cf30e22fa3c3f63ddd950c9
[ "Apache-2.0" ]
null
null
null
ext/bliss/retired/src/io/message_buffers.hpp
tuan1225/parconnect_sc16
bcd6f99101685d746cf30e22fa3c3f63ddd950c9
[ "Apache-2.0" ]
null
null
null
/** * @file message_buffers.hpp * @ingroup io * @author Tony Pan <tpan7@gatech.edu> * @brief MessageBuffers base class and SendMessageBuffers subclass for buffering data for MPI send/receive * @details MessageBuffers is a collection of in-memory Buffers that containing data that * 1. will be sent to...
46.571429
239
0.586268
[ "object", "vector", "model" ]
7749fff442a080b768a98c4eb430bd7229982376
3,792
cpp
C++
code/source/utils.cpp
vastopol/FP_Interpreter
768e668f4112086f9d69d6df34a795625aae1ec3
[ "MIT" ]
4
2017-05-24T21:20:14.000Z
2018-05-22T21:22:46.000Z
code/source/utils.cpp
vastopol/FP_Interpreter
768e668f4112086f9d69d6df34a795625aae1ec3
[ "MIT" ]
null
null
null
code/source/utils.cpp
vastopol/FP_Interpreter
768e668f4112086f9d69d6df34a795625aae1ec3
[ "MIT" ]
null
null
null
// utility functions used in different parts #include "../header/func.h" // need the maps for the classifier #include "../header/object.h" // need the maps for the classifier #include "../header/memory.h" // need the maps for the classifier #include <cstring> // strtok #include <cstdlib> // atoi //------------------...
29.395349
117
0.448049
[ "object" ]
77509549822ef68ad9b0d4da4745c537297e468f
1,036
cpp
C++
src/memory.cpp
ninjabear/dr-doom
6e068981ed0eb4c2131b9b62940f519fc42869ae
[ "MIT" ]
4
2017-02-16T22:12:00.000Z
2018-01-12T20:10:48.000Z
src/memory.cpp
ninjabear/dr-doom
6e068981ed0eb4c2131b9b62940f519fc42869ae
[ "MIT" ]
1
2017-02-20T15:15:18.000Z
2017-03-16T12:01:38.000Z
src/memory.cpp
ninjabear/dr-doom
6e068981ed0eb4c2131b9b62940f519fc42869ae
[ "MIT" ]
null
null
null
#include "memory.h" void mt_consume_memory() { int max_cores = std::thread::hardware_concurrency(); std::thread threads[max_cores]; for (int i=0; i<max_cores; i++) { threads[i] = std::thread(consume_memory); } for (int i=0; i<max_cores; i++) { threads[i].join(); } } void...
25.9
143
0.533784
[ "vector" ]