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
4c7713b3b092ded3bad624e8c003038fbb8df5e7
1,820
cpp
C++
vehicle/src/log_dis.cpp
Alvintang6/robot_formation
44017e939cede6bc3e964732511a53eba50544da
[ "MIT" ]
11
2018-10-28T17:51:58.000Z
2022-03-02T22:46:35.000Z
vehicle/src/log_dis.cpp
Alvintang6/robot_formation
44017e939cede6bc3e964732511a53eba50544da
[ "MIT" ]
null
null
null
vehicle/src/log_dis.cpp
Alvintang6/robot_formation
44017e939cede6bc3e964732511a53eba50544da
[ "MIT" ]
null
null
null
#include <ros/ros.h> #include <iostream> #include <tf/transform_datatypes.h> #include <ar_track_alvar_msgs/AlvarMarkers.h> #include "output.h" #include "vehicle/position.h" //#include <geometry_msgs/Twist.h> int main(int argc, char **argv) { ros::init(argc, argv, "cam_pub"); float desired_v0,desired_h,moto...
25.633803
106
0.679121
[ "object" ]
4c848d4459bb5b59b6ed6a80650fb6a06f5ebe47
612
cpp
C++
tree/94-binary-tree-inorder-traversal/94-binary-tree-inorder-traversal-recursion.cpp
ZonePG/my-leetcode-solution
9efa4c19e4c9be9f47b5f5d4e9a47fceae26e0bb
[ "MIT" ]
null
null
null
tree/94-binary-tree-inorder-traversal/94-binary-tree-inorder-traversal-recursion.cpp
ZonePG/my-leetcode-solution
9efa4c19e4c9be9f47b5f5d4e9a47fceae26e0bb
[ "MIT" ]
null
null
null
tree/94-binary-tree-inorder-traversal/94-binary-tree-inorder-traversal-recursion.cpp
ZonePG/my-leetcode-solution
9efa4c19e4c9be9f47b5f5d4e9a47fceae26e0bb
[ "MIT" ]
null
null
null
#include <vector> using namespace std; struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode() : val(0), left(nullptr), right(nullptr) {} TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), left(left), right(right...
19.125
74
0.624183
[ "vector" ]
4c86c7b369da723e22c8deddb2cc4963700f0d21
7,936
cpp
C++
alloaudio/src/al_Decorrelation.cpp
AlloSphere-Research-Group/AlloSystem
646bac1232d230f61dbdaaef38327de1a244b43f
[ "BSD-3-Clause" ]
51
2015-02-16T02:36:27.000Z
2021-08-30T07:22:43.000Z
alloaudio/src/al_Decorrelation.cpp
AlloSphere-Research-Group/AlloSystem
646bac1232d230f61dbdaaef38327de1a244b43f
[ "BSD-3-Clause" ]
18
2015-01-24T12:52:46.000Z
2018-03-19T23:43:27.000Z
alloaudio/src/al_Decorrelation.cpp
AlloSphere-Research-Group/AlloSystem
646bac1232d230f61dbdaaef38327de1a244b43f
[ "BSD-3-Clause" ]
23
2015-01-29T17:44:02.000Z
2019-09-22T09:04:33.000Z
/* Decorrelation Copyright (C) 2014. AlloSphere Research Group, Media Arts & Technology, UCSB. Copyright (C) 2014. The Regents of the University of California. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following condition...
31.871486
157
0.672253
[ "vector" ]
4c8ce60bfc1818cfc6276da60c2b8ea175086831
4,924
cpp
C++
tools/tape-measure-tool.cpp
lukas-ke/faint-graphics-editor
33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf
[ "Apache-2.0" ]
10
2016-12-28T22:06:31.000Z
2021-05-24T13:42:30.000Z
tools/tape-measure-tool.cpp
lukas-ke/faint-graphics-editor
33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf
[ "Apache-2.0" ]
4
2015-10-09T23:55:10.000Z
2020-04-04T08:09:22.000Z
tools/tape-measure-tool.cpp
lukas-ke/faint-graphics-editor
33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf
[ "Apache-2.0" ]
null
null
null
// -*- coding: us-ascii-unix -*- // Copyright 2015 Lukas Kemmer // // 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 a...
26.473118
81
0.687449
[ "vector" ]
4ca59e80c699d55e041e82d391e2ed527e768b35
2,228
cpp
C++
tests/catalog/tuple_schema_test.cpp
jessesleeping/my_peloton
a19426cfe34a04692a11008eaffc9c3c9b49abc4
[ "Apache-2.0" ]
6
2017-04-28T00:38:52.000Z
2018-11-06T07:06:49.000Z
tests/catalog/tuple_schema_test.cpp
jessesleeping/my_peloton
a19426cfe34a04692a11008eaffc9c3c9b49abc4
[ "Apache-2.0" ]
4
2017-07-08T00:41:56.000Z
2017-07-08T00:42:13.000Z
tests/catalog/tuple_schema_test.cpp
eric-haibin-lin/pelotondb
904d6bbd041a0498ee0e034d4f9f9f27086c3cab
[ "Apache-2.0" ]
1
2020-06-19T08:05:03.000Z
2020-06-19T08:05:03.000Z
//===----------------------------------------------------------------------===// // // PelotonDB // // tuple_schema_test.cpp // // Identification: tests/catalog/tuple_schema_test.cpp // // Copyright (c) 2015, Carnegie Mellon University Database Group // //===-------------------------------------...
29.706667
80
0.575853
[ "vector" ]
4caf19e3cecfa190789eb8482ae56e963a161014
5,284
cpp
C++
examples/rocketleague/field/field.cpp
Chokitus/abcg
2cc826e87e2e81bef361d5596efd7d09e6a91a76
[ "MIT" ]
null
null
null
examples/rocketleague/field/field.cpp
Chokitus/abcg
2cc826e87e2e81bef361d5596efd7d09e6a91a76
[ "MIT" ]
null
null
null
examples/rocketleague/field/field.cpp
Chokitus/abcg
2cc826e87e2e81bef361d5596efd7d09e6a91a76
[ "MIT" ]
null
null
null
#include "field.hpp" #include <fmt/core.h> #include <tiny_obj_loader.h> #include <cppitertools/itertools.hpp> #include <filesystem> #include <glm/gtx/hash.hpp> #include <unordered_map> // Custom specialization of std::hash injected in namespace std namespace std { template <> struct hash<Vertex> { size_t ope...
31.266272
80
0.667865
[ "mesh", "shape", "model" ]
4cbeb782f20779aa3e3835a40b8c90af4b92d89d
469
cpp
C++
LeetCode/Contests/BiWeekly66/2085_CountCommonWordsWithOneOccurrence.cpp
goelpriyanshu99/DSA
7e21036048d8680b706afd427107045d710dcad7
[ "MIT" ]
null
null
null
LeetCode/Contests/BiWeekly66/2085_CountCommonWordsWithOneOccurrence.cpp
goelpriyanshu99/DSA
7e21036048d8680b706afd427107045d710dcad7
[ "MIT" ]
null
null
null
LeetCode/Contests/BiWeekly66/2085_CountCommonWordsWithOneOccurrence.cpp
goelpriyanshu99/DSA
7e21036048d8680b706afd427107045d710dcad7
[ "MIT" ]
null
null
null
class Solution { public: int countWords(vector<string>& words1, vector<string>& words2) { unordered_map<string,int> umap; for(auto &it: words1) { umap[it]++; } for(auto &it:words2) { if(umap[it] > 1) umap[it] = 0; umap[it]--; } ...
23.45
69
0.411514
[ "vector" ]
4cbf57b06fca8e417f7b98379d73d269a00d25f4
4,114
cpp
C++
src/waifu2x.cpp
Soju06/waifu2x-lib
5a5ac85b5f424dc76f3b8665b5b46a6c97659c83
[ "MIT" ]
null
null
null
src/waifu2x.cpp
Soju06/waifu2x-lib
5a5ac85b5f424dc76f3b8665b5b46a6c97659c83
[ "MIT" ]
null
null
null
src/waifu2x.cpp
Soju06/waifu2x-lib
5a5ac85b5f424dc76f3b8665b5b46a6c97659c83
[ "MIT" ]
null
null
null
#include "waifu2x.h" #include "waifu2x-wrapper.h" #include "cpu.h" #include "gpu.h" #include "platform.h" #include <datareader.h> #include <mutex> #include "shader/waifu2x_preproc.comp.hex.h" #include "shader/waifu2x_postproc.comp.hex.h" #include "shader/waifu2x_preproc_tta.comp.hex.h" #include "shader/waifu2x_postpro...
27.245033
129
0.586048
[ "vector", "model" ]
4cbff9c88dd28b44c50f38ee6d2ba9b5f3f09419
41,123
cpp
C++
src/TriangulationFactory.cpp
tbmale/rvmparser
b217a2404c1958b5303d98e8b9f34777cd8e351a
[ "MIT" ]
1
2019-09-19T23:53:45.000Z
2019-09-19T23:53:45.000Z
src/TriangulationFactory.cpp
tbmale/rvmparser
b217a2404c1958b5303d98e8b9f34777cd8e351a
[ "MIT" ]
null
null
null
src/TriangulationFactory.cpp
tbmale/rvmparser
b217a2404c1958b5303d98e8b9f34777cd8e351a
[ "MIT" ]
1
2019-09-19T23:53:50.000Z
2019-09-19T23:53:50.000Z
#define _USE_MATH_DEFINES #include <cmath> #include <algorithm> #include <cstdio> #include <cassert> #include "tesselator.h" #include "Store.h" #include "Tessellator.h" #include "LinAlgOps.h" namespace { const float pi = float(M_PI); const float half_pi = float(0.5*M_PI); const float one_over_pi = float(1.0 / ...
31.878295
156
0.525691
[ "geometry" ]
4cc30b37d8b012fa7d87734c8d1974d189c1dad1
1,395
hpp
C++
test/allocator_perf_tool/HugePageUnmap.hpp
WeipingQu/memkind
f1c4ac9efd17e45b5bd669023a018e8b47bda398
[ "BSD-3-Clause" ]
null
null
null
test/allocator_perf_tool/HugePageUnmap.hpp
WeipingQu/memkind
f1c4ac9efd17e45b5bd669023a018e8b47bda398
[ "BSD-3-Clause" ]
null
null
null
test/allocator_perf_tool/HugePageUnmap.hpp
WeipingQu/memkind
f1c4ac9efd17e45b5bd669023a018e8b47bda398
[ "BSD-3-Clause" ]
null
null
null
// SPDX-License-Identifier: BSD-2-Clause /* Copyright (C) 2016 - 2020 Intel Corporation. */ #include <vector> #include "Task.hpp" class HugePageUnmap: public Task { public: HugePageUnmap(int operations, bool touch_memory, size_t alignment_size, size_t alloc_size, hbw_pagesize_t page_size) : ...
22.5
92
0.597849
[ "vector" ]
4cc6eabe3448e258ae5f7ae344ebbc6d2a45e5dc
3,061
cpp
C++
src/hardware/drives/CopleyDrive.cpp
Lawaries/CANOpenRobotController
80d384ed59b07a4c38ff05f3929262674f29030d
[ "Apache-2.0" ]
null
null
null
src/hardware/drives/CopleyDrive.cpp
Lawaries/CANOpenRobotController
80d384ed59b07a4c38ff05f3929262674f29030d
[ "Apache-2.0" ]
null
null
null
src/hardware/drives/CopleyDrive.cpp
Lawaries/CANOpenRobotController
80d384ed59b07a4c38ff05f3929262674f29030d
[ "Apache-2.0" ]
1
2021-04-01T02:57:50.000Z
2021-04-01T02:57:50.000Z
/** * @brief An implementation of the Drive Object, specifically for the Copley Drive * */ #include "CopleyDrive.h" #include <iostream> CopleyDrive::CopleyDrive(int NodeID) : Drive::Drive(NodeID) { this->NodeID = NodeID; } CopleyDrive::~CopleyDrive() { spdlog::debug("CopleyDrive Deleted"); } bool CopleyDr...
31.556701
125
0.706632
[ "object", "vector" ]
4cc93300b027976389a3924f82f200bd328242ca
1,409
cpp
C++
src/fileinfo/file_presentation/getters/simple_getter/basic_json_getter.cpp
lukasdurfina/retdec
7d6b8882690ff73c2bd7f209db10c5c091fa0359
[ "MIT", "Zlib", "BSD-3-Clause" ]
1
2020-03-28T02:38:53.000Z
2020-03-28T02:38:53.000Z
src/fileinfo/file_presentation/getters/simple_getter/basic_json_getter.cpp
lukasdurfina/retdec
7d6b8882690ff73c2bd7f209db10c5c091fa0359
[ "MIT", "Zlib", "BSD-3-Clause" ]
null
null
null
src/fileinfo/file_presentation/getters/simple_getter/basic_json_getter.cpp
lukasdurfina/retdec
7d6b8882690ff73c2bd7f209db10c5c091fa0359
[ "MIT", "Zlib", "BSD-3-Clause" ]
null
null
null
/** * @file src/fileinfo/file_presentation/getters/simple_getter/basic_json_getter.cpp * @brief Methods of BasicJsonGetter class. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #include "retdec/fileformat/utils/conversions.h" #include "fileinfo/file_presentation/getters/simple_getter/basic...
27.096154
114
0.763662
[ "vector" ]
4cca6c66ec80a4cf1f56f7473d03cf50e36d9e1d
5,688
cpp
C++
src/salesreport.cpp
tsukidan/team-blank-CS1C
85655605a5307d4b7c83eb5542a35fd5d349a1d6
[ "Unlicense" ]
null
null
null
src/salesreport.cpp
tsukidan/team-blank-CS1C
85655605a5307d4b7c83eb5542a35fd5d349a1d6
[ "Unlicense" ]
null
null
null
src/salesreport.cpp
tsukidan/team-blank-CS1C
85655605a5307d4b7c83eb5542a35fd5d349a1d6
[ "Unlicense" ]
null
null
null
#include "salesreport.h" #include "ui_salesreport.h" Salesreport::Salesreport(QWidget *parent) : QWidget(parent), ui(new Ui::Salesreport) { ui->setupUi(this); QSqlQueryModel *model = new QSqlQueryModel; QSqlQuery query; query.prepare( "SELECT items.name, (items.price/100.0), purchases.quantity, " ...
33.656805
80
0.662096
[ "model" ]
4ccb758ab17fd9e8e5041e05e108612b972cc6ad
3,012
cc
C++
src/dtx/dtx_compare.cc
satorikoishi/ford
ed3ccc4120c914d1b9b5464e4bdc459802a52b74
[ "Apache-2.0" ]
1
2022-02-22T05:04:45.000Z
2022-02-22T05:04:45.000Z
src/dtx/dtx_compare.cc
yhuacode/ford
0d966cfea8b859d69ef8c88252e841d01f134051
[ "Apache-2.0" ]
null
null
null
src/dtx/dtx_compare.cc
yhuacode/ford
0d966cfea8b859d69ef8c88252e841d01f134051
[ "Apache-2.0" ]
null
null
null
// Author: Ming Zhang // Copyright (c) 2021 #include "dtx/dtx.h" bool DTX::CompareExeRO(coro_yield_t& yield) { // You can read from primary or backup std::vector<DirectRead> pending_direct_ro; std::vector<HashRead> pending_hash_ro; // Issue reads if (!CompareIssueReadRO(pending_direct_ro, pending_hash_ro))...
29.242718
145
0.755312
[ "vector" ]
4cd099b4bb326732f98fd56ec545a499acd3f797
1,110
cpp
C++
src/compressBits.cpp
chiefBiiko/bitjson
cbc6ba768463f627455ebb44b0cb1e36e84804b4
[ "MIT" ]
null
null
null
src/compressBits.cpp
chiefBiiko/bitjson
cbc6ba768463f627455ebb44b0cb1e36e84804b4
[ "MIT" ]
null
null
null
src/compressBits.cpp
chiefBiiko/bitjson
cbc6ba768463f627455ebb44b0cb1e36e84804b4
[ "MIT" ]
null
null
null
#include <Rcpp.h> //[[Rcpp::export]] Rcpp::IntegerVector compressBits(const Rcpp::IntegerVector x) { // setup std::vector<int> y; // STL return vector y.reserve(x.size()); // reserve too much int cnt = 0; // bit count int prev ...
28.461538
72
0.426126
[ "vector" ]
4cd4cf6c728c142d7c1f31dc7921299af06962e7
2,487
cpp
C++
LoveBabbar/01_array/12_merge_2_sorted_array.cpp
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
LoveBabbar/01_array/12_merge_2_sorted_array.cpp
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
LoveBabbar/01_array/12_merge_2_sorted_array.cpp
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
/* link: https://practice.geeksforgeeks.org/problems/merge-two-sorted-arrays5135/1 sol: https://www.geeksforgeeks.org/merge-two-sorted-arrays-o1-extra-space/ */ // ----------------------------------------------------------------------------------------------------------------------- // // correct solution v...
28.261364
125
0.439485
[ "vector" ]
4cd4f3ac950014a0729653ae9af31e53f7774b8d
23,182
cpp
C++
FColladaPlugins/FArchiveXML/FAXAnimationImport.cpp
matthewlai/fcollada
d02e475d45e01a33c2c588a4a62a3ac0d70ef9e0
[ "MIT" ]
9
2016-04-22T05:47:37.000Z
2021-03-02T08:58:56.000Z
FColladaPlugins/FArchiveXML/FAXAnimationImport.cpp
matthewlai/fcollada
d02e475d45e01a33c2c588a4a62a3ac0d70ef9e0
[ "MIT" ]
5
2018-12-17T13:49:54.000Z
2021-11-26T17:22:16.000Z
FColladaPlugins/FArchiveXML/FAXAnimationImport.cpp
matthewlai/fcollada
d02e475d45e01a33c2c588a4a62a3ac0d70ef9e0
[ "MIT" ]
5
2018-06-26T19:42:58.000Z
2021-10-11T13:03:31.000Z
/* Copyright (C) 2005-2007 Feeling Software Inc. Portions of the code are: Copyright (C) 2005-2007 Sony Computer Entertainment America MIT License: http://www.opensource.org/licenses/mit-license.php */ #include "StdAfx.h" #include "FArchiveXML.h" #include "FCDocument/FCDocument.h" #include "FCDocument/FCDLibrary....
36.052877
181
0.719696
[ "object", "vector", "transform" ]
4cdd7be6952b9dcc7e4fb63a7bc0e6859e8967c0
711
cpp
C++
Cpp_Data_Structures_And_Algorithms/Subsequence_Generator.cpp
AnthonyDas/Cpp_Data_Structures_And_Algorithms
4ba834803dde0285ee2695b7ef97afbcdcf0484a
[ "MIT" ]
null
null
null
Cpp_Data_Structures_And_Algorithms/Subsequence_Generator.cpp
AnthonyDas/Cpp_Data_Structures_And_Algorithms
4ba834803dde0285ee2695b7ef97afbcdcf0484a
[ "MIT" ]
null
null
null
Cpp_Data_Structures_And_Algorithms/Subsequence_Generator.cpp
AnthonyDas/Cpp_Data_Structures_And_Algorithms
4ba834803dde0285ee2695b7ef97afbcdcf0484a
[ "MIT" ]
null
null
null
#include <vector> #include <string> #include <cmath> // pow std::vector<std::string> GenerateSubsequences(std::string str) { std::vector<std::string> vecString; const int strLen = str.size(); // bitCounter is used to check character position int bitCounter = pow(2, strLen); // Check from 000..001 to 111..111 ...
22.21875
64
0.642757
[ "vector" ]
4ce0c7453461417d0ca1b4134f89acfe3153357e
3,143
cpp
C++
src/TCPServer.cpp
fu3mo6/SimpleNetwork
0bf8bfdcbc62dd17cc6302918832a63bf5bde363
[ "MIT" ]
null
null
null
src/TCPServer.cpp
fu3mo6/SimpleNetwork
0bf8bfdcbc62dd17cc6302918832a63bf5bde363
[ "MIT" ]
null
null
null
src/TCPServer.cpp
fu3mo6/SimpleNetwork
0bf8bfdcbc62dd17cc6302918832a63bf5bde363
[ "MIT" ]
null
null
null
#include <string> #include "TCPServer.h" void TCPServer::ClientLoop(std::shared_ptr<descript_socket> desc) { int n; char msg[MAXPACKETSIZE]; while(desc->connected) { n = recv(desc->socket, msg, MAXPACKETSIZE, 0); if(n != -1) { if(n==0) { desc->connected = false; break; } else { on_r...
20.147436
86
0.644289
[ "vector" ]
4ce8a9ce717f09c8bc78362cdc187d46bf446b0b
3,077
cpp
C++
TongueQT/TongueQT/src/Simulator/collision/CollisionWorld.cpp
lrkk1234/TongueSimulation
347cf38452aa62d1173da1c4935f691456255e46
[ "MIT" ]
2
2020-03-28T03:15:49.000Z
2020-09-09T02:54:33.000Z
TongueQT/TongueQT/src/Simulator/collision/CollisionWorld.cpp
lrkk1234/TongueSimulation
347cf38452aa62d1173da1c4935f691456255e46
[ "MIT" ]
null
null
null
TongueQT/TongueQT/src/Simulator/collision/CollisionWorld.cpp
lrkk1234/TongueSimulation
347cf38452aa62d1173da1c4935f691456255e46
[ "MIT" ]
2
2020-09-08T19:28:19.000Z
2021-07-25T00:35:26.000Z
#include "CollisionWorld.h" #include "Simulator/collision/CollisionDetector.h" #include "Simulator/collision/TriMeshCollisionDetector.h" #include <iostream> CollisionWorld::CollisionWorld() { initCollisionWorld(); } CollisionWorld::~CollisionWorld() { delete bt_collision_world; delete bt_broadphase; delete bt_di...
28.490741
133
0.740006
[ "vector" ]
4ceb765ecf1c096cd246233575b315cdb3ed2bcf
630
hpp
C++
pds2/vpls/norma/Vec1D.hpp
pganaclara/ufmg
2325803427a7b4d5d150574bfd80243274cab527
[ "MIT" ]
null
null
null
pds2/vpls/norma/Vec1D.hpp
pganaclara/ufmg
2325803427a7b4d5d150574bfd80243274cab527
[ "MIT" ]
null
null
null
pds2/vpls/norma/Vec1D.hpp
pganaclara/ufmg
2325803427a7b4d5d150574bfd80243274cab527
[ "MIT" ]
null
null
null
#ifndef VEC_1D #define VEC_1D #include "Vec.hpp" /** * \brief A unidimensional vector. */ class Vec1D: public Vec { public: Vec1D(double x): _x(x) {} double getX() const { return _x; } std::string to_string() const override; /** * \brief Provides the norm of the vector, that is, the distance...
24.230769
78
0.655556
[ "vector" ]
4cee2207ce4c6f2f8914ba4778978dacdd72cd2d
1,058
hpp
C++
Classes/mapEdit.hpp
thiagofigcosta/The.COM-Game
653b7174767b6dc2351807a44c2c4ac67c7dc1d6
[ "MIT" ]
null
null
null
Classes/mapEdit.hpp
thiagofigcosta/The.COM-Game
653b7174767b6dc2351807a44c2c4ac67c7dc1d6
[ "MIT" ]
null
null
null
Classes/mapEdit.hpp
thiagofigcosta/The.COM-Game
653b7174767b6dc2351807a44c2c4ac67c7dc1d6
[ "MIT" ]
null
null
null
#ifndef MAPEDIT_HPP #define MAPEDIT_HPP #include "Util.hpp" #include "GL.hpp" #include "Blocks.hpp" #include "../Libs/loadFiles.h" class mapEdit { public: mapEdit(); mapEdit(const mapEdit& orig); virtual ~mapEdit(); static void drawPanel(); static void drawLines(); static void draw(); stati...
24.045455
52
0.685255
[ "vector" ]
4cefe06ad803a269da39845a76aef123fb008cda
500
cpp
C++
exemplier/constructor/simple_test1.cpp
alainlebret/cpp
7ecca3c6155e7f3b15ca3f35edaba3ed4b8e6845
[ "Apache-2.0" ]
null
null
null
exemplier/constructor/simple_test1.cpp
alainlebret/cpp
7ecca3c6155e7f3b15ca3f35edaba3ed4b8e6845
[ "Apache-2.0" ]
null
null
null
exemplier/constructor/simple_test1.cpp
alainlebret/cpp
7ecca3c6155e7f3b15ca3f35edaba3ed4b8e6845
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <fstream> using namespace std; class Test { int v_; public: Test() : v_(-1) {}; Test(int v); int getV(); }; Test::Test(int v) { v_ = v; } int Test::getV() { return v_; } int main() { Test t1; // Test t2(); // ERROR : compiler asks itself if t2 is a function returning a Test ob...
15.151515
89
0.556
[ "object" ]
4cf1f2f71eeb3a305c27c9bdafd168544e585e8a
8,777
cpp
C++
OpenSFInput/Input.cpp
Norman0406/OpenSkeletonFitting
43a6ba856a629a8b67683605194e90c1a2846300
[ "DOC" ]
24
2015-04-06T19:00:04.000Z
2021-01-15T18:16:41.000Z
OpenSFInput/Input.cpp
solbach/open-skeleton-fitting
80f53861481eb9998a26993f4a22478e97e3748b
[ "DOC" ]
5
2015-07-08T16:23:36.000Z
2018-06-23T15:00:20.000Z
OpenSFInput/Input.cpp
solbach/open-skeleton-fitting
80f53861481eb9998a26993f4a22478e97e3748b
[ "DOC" ]
12
2015-07-01T14:56:29.000Z
2021-01-15T18:16:47.000Z
/*********************************************************************** * * OpenSkeletonFitting * Skeleton fitting by the use of energy minimization * Copyright (C) 2012 Norman Link <norman.link@gmx.net> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Pu...
24.112637
115
0.635411
[ "vector", "3d" ]
e07c3137f24ff8cde5f10fee9dc198ed0ced7b36
1,771
cc
C++
Question/手套.cc
lkimprove/Study_C
ee1153536f28e160d5daad4ddebaa547c3941ee7
[ "MIT" ]
null
null
null
Question/手套.cc
lkimprove/Study_C
ee1153536f28e160d5daad4ddebaa547c3941ee7
[ "MIT" ]
null
null
null
Question/手套.cc
lkimprove/Study_C
ee1153536f28e160d5daad4ddebaa547c3941ee7
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <algorithm> #include <climits> using namespace std; int FindMinimum(int n, vector<int> left, vector<int> right) { int ret = 0; int left_min = INT_MAX, right_min = INT_MAX; int left_sum = 0, right_sum = 0; for (int i = 0; i < n; i++){ //如果该颜色的手套只有左手或右手,则必须取,以保证覆盖每一...
22.705128
90
0.538679
[ "vector" ]
e07c68e2ba13558d8e619a28380a795011ab2111
669
cpp
C++
interp/InterpRNG.cpp
cjang/chai
7faba752cc4491d1b30590abef21edc4efffa0f6
[ "Unlicense" ]
11
2015-06-12T19:54:14.000Z
2021-11-26T10:45:18.000Z
interp/InterpRNG.cpp
cjang/chai
7faba752cc4491d1b30590abef21edc4efffa0f6
[ "Unlicense" ]
null
null
null
interp/InterpRNG.cpp
cjang/chai
7faba752cc4491d1b30590abef21edc4efffa0f6
[ "Unlicense" ]
null
null
null
// Copyright 2011 Chris Jang (fastkor@gmail.com) under The Artistic License 2.0 #include <string.h> #include "InterpRNG.hpp" namespace chai_internal { //////////////////////////////////////// // random number generation abstraction void InterpRNG::seed(const unsigned int seed) { memset(&_randbuf, 0, sizeof(str...
25.730769
79
0.684604
[ "object" ]
e0857de965c9247b88d00297df2e731315a166c3
1,040
cpp
C++
vnoj/nkcity.cpp
tiozo/Training
02cc8c4fcf68e07c16520fd05fcbfa524c171b6b
[ "MIT" ]
1
2021-08-28T04:16:34.000Z
2021-08-28T04:16:34.000Z
vnoj/nkcity.cpp
tiozo/Training
02cc8c4fcf68e07c16520fd05fcbfa524c171b6b
[ "MIT" ]
null
null
null
vnoj/nkcity.cpp
tiozo/Training
02cc8c4fcf68e07c16520fd05fcbfa524c171b6b
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; class uv { public: int x,y,z; }; bool operator < (const uv &a,const uv &b) { return a.z<b.z; } class dsu { private: vector<int> par,rank; public: dsu (int size): par(size+1),rank(size+1,0) { for (int i=1;i<=size;++i) { par[i] = i; ...
20.392157
62
0.460577
[ "vector" ]
e091dfa5613b981f998d82a4bcee5e6568f77eb3
11,270
cpp
C++
BSP/BSP.cpp
ErrrOrrr503/DOORkaEngine
90084cc622b1bcc021d9c3de5ccb52b349d4217e
[ "WTFPL" ]
null
null
null
BSP/BSP.cpp
ErrrOrrr503/DOORkaEngine
90084cc622b1bcc021d9c3de5ccb52b349d4217e
[ "WTFPL" ]
null
null
null
BSP/BSP.cpp
ErrrOrrr503/DOORkaEngine
90084cc622b1bcc021d9c3de5ccb52b349d4217e
[ "WTFPL" ]
null
null
null
#include "BSP.h" namespace bsp { void find_same_point(const wall& wall1, const wall& wall2, float* same_x, float* same_y){ float a11 = wall1.x1 - wall1.x2; float a21 = wall1.y1 - wall1.y2; float a12 = wall2.x1 - wall2.x2; float a22 = wall2.y1 - wall2.y2; float c1 = wall2.x1 - wall1.x1; float c...
44.196078
158
0.609051
[ "vector" ]
e0931b547f55f069754ad7ed220ce3770da9c41f
1,910
cpp
C++
AnimalCooking/ButtonCheckRenderer.cpp
TenByTen-Studios/AnimalCooking
8bb22f426cdc819cefde16caa23d8eb045276be8
[ "MIT" ]
null
null
null
AnimalCooking/ButtonCheckRenderer.cpp
TenByTen-Studios/AnimalCooking
8bb22f426cdc819cefde16caa23d8eb045276be8
[ "MIT" ]
23
2020-03-02T16:43:28.000Z
2020-04-16T09:58:08.000Z
AnimalCooking/ButtonCheckRenderer.cpp
TenByTen-Studios/AnimalCooking
8bb22f426cdc819cefde16caa23d8eb045276be8
[ "MIT" ]
null
null
null
#include "ButtonCheckRenderer.h" #include "ButtonBehaviourNC.h" #include "ButtonChangeOnClick.h" #include "Entity.h" #include "SDL_macros.h" ButtonCheckRenderer::ButtonCheckRenderer(Texture* textFocused, Texture* textUnFocused) : Component(ecs::ButtonCheckRenderer), active(true), textFocused_(textFocused), textUnFoc...
31.833333
125
0.740314
[ "render", "transform" ]
e09d0487d3fde9acda07900a24d085dcd6d5686e
719
cc
C++
src/common/router.cc
shlomnissan/cpprest
845cf46beb5db13ad5ec262fdf47e63366638106
[ "MIT" ]
1
2020-06-10T02:54:31.000Z
2020-06-10T02:54:31.000Z
src/common/router.cc
shlomnissan/cpprest
845cf46beb5db13ad5ec262fdf47e63366638106
[ "MIT" ]
null
null
null
src/common/router.cc
shlomnissan/cpprest
845cf46beb5db13ad5ec262fdf47e63366638106
[ "MIT" ]
null
null
null
/* * Created on Sat Mar 14 2020 by Shlomi Nissan * Copyright (c) 2020 Betamark */ #include "./router.h" #include <cpprest/json.h> #include <iostream> Router::Router(const std::unique_ptr<Server>& server) { server->listener().support(methods::GET, std::bind(&Router::HandleRequest, this, std::placeholde...
29.958333
72
0.67733
[ "object" ]
e09f32f97c5e96e2a05cb674f424429f52f017b2
10,305
cc
C++
DQM/DTMonitorClient/src/DTNoiseAnalysisTest.cc
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQM/DTMonitorClient/src/DTNoiseAnalysisTest.cc
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQM/DTMonitorClient/src/DTNoiseAnalysisTest.cc
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
/* * See header file for a description of this class. * * \author G. Mila - INFN Torino * * threadsafe version (//-) oct/nov 2014 - WATWanAbdullah -ncpp-um-my * */ #include "DQM/DTMonitorClient/src/DTNoiseAnalysisTest.h" // Framework #include "FWCore/ServiceRegistry/interface/Service.h" #include "FWCore/Fra...
35.657439
119
0.646094
[ "geometry", "vector" ]
e0a6ce3cdf48d7a9749115b7e7ad314da67c47c4
13,286
hpp
C++
src/http_header.hpp
AmbrSb/LServer
97fde72db060bcc4a5ea4e6fd6d9fff603a23fcf
[ "BSD-2-Clause" ]
1
2021-09-01T08:57:10.000Z
2021-09-01T08:57:10.000Z
src/http_header.hpp
AmbrSb/LServer
97fde72db060bcc4a5ea4e6fd6d9fff603a23fcf
[ "BSD-2-Clause" ]
null
null
null
src/http_header.hpp
AmbrSb/LServer
97fde72db060bcc4a5ea4e6fd6d9fff603a23fcf
[ "BSD-2-Clause" ]
null
null
null
/* * BSD 2-Clause License * * Copyright (c) 2021, Amin Saba * 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 copyright notice, ...
27.337449
80
0.644965
[ "object" ]
e0a7abc71e2342a8d6da1a98748b19fe8580f408
33,397
cpp
C++
src/devices/sound/swp30.cpp
Robbbert/messui
49b756e2140d8831bc81335298ee8c5471045e79
[ "BSD-3-Clause" ]
26
2015-03-31T06:25:51.000Z
2021-12-14T09:29:04.000Z
src/devices/sound/swp30.cpp
Robbbert/messui
49b756e2140d8831bc81335298ee8c5471045e79
[ "BSD-3-Clause" ]
null
null
null
src/devices/sound/swp30.cpp
Robbbert/messui
49b756e2140d8831bc81335298ee8c5471045e79
[ "BSD-3-Clause" ]
10
2015-03-27T05:45:51.000Z
2022-02-04T06:57:36.000Z
// license:BSD-3-Clause // copyright-holders:Olivier Galibert // Yamaha SWP30/30B, rompler/dsp combo #include "emu.h" #include "swp30.h" static int scount = 0; /* The SWP30 is the combination of a rompler called AWM2 (Advanced Wave Memory 2) and an effects DSP called MEG (Multiple Effects Generator). It also...
32.392823
254
0.681588
[ "vector", "3d" ]
e0b48b3fa0fbe9057f44c5eb309e7be4e62a874b
3,354
cpp
C++
C++/1697-Checking_Existence_of_Edge_Length_Limited_Paths.cpp
Auful01/Hacktoberfest-2021
0039fd26f8f3b97a9748a4fc76e7d77157fed56a
[ "MIT" ]
38
2021-09-02T22:02:34.000Z
2021-10-02T19:33:34.000Z
C++/1697-Checking_Existence_of_Edge_Length_Limited_Paths.cpp
Auful01/Hacktoberfest-2021
0039fd26f8f3b97a9748a4fc76e7d77157fed56a
[ "MIT" ]
188
2021-09-30T08:16:25.000Z
2021-10-03T14:11:37.000Z
C++/1697-Checking_Existence_of_Edge_Length_Limited_Paths.cpp
Auful01/Hacktoberfest-2021
0039fd26f8f3b97a9748a4fc76e7d77157fed56a
[ "MIT" ]
131
2021-09-20T17:01:11.000Z
2021-10-03T07:34:14.000Z
/* Prerequisites: Graph theory + DSU Problem Statement: An undirected graph of n nodes is defined by edgeList, where edgeList[i] = [ui, vi, disi] denotes an edge between nodes ui and vi with distance disi. Note that there may be multiple edges between two nodes. Given an array queries, where queries[j] = [pj, qj, limi...
34.22449
133
0.559928
[ "vector" ]
e0baf6428aa98049ec9dc70c66be1429ca65c765
1,389
hpp
C++
Cute/include/Cute/Graphics/Transform/Model.hpp
egor-kupaev/Cute
7680aa8ff8cd7103260a06dc27d34b244facd6b4
[ "MIT" ]
null
null
null
Cute/include/Cute/Graphics/Transform/Model.hpp
egor-kupaev/Cute
7680aa8ff8cd7103260a06dc27d34b244facd6b4
[ "MIT" ]
null
null
null
Cute/include/Cute/Graphics/Transform/Model.hpp
egor-kupaev/Cute
7680aa8ff8cd7103260a06dc27d34b244facd6b4
[ "MIT" ]
null
null
null
#ifndef CUTE_GRAPHICS_TRANSFORM_MODEL_HPP #define CUTE_GRAPHICS_TRANSFORM_MODEL_HPP #include <glm/glm.hpp> namespace Cute::Graphics { class Model { public: Model() : _position(0.0f, 0.0f, 0.0f), _scale(1.0f, 1.0f, 1.0f), _pitch(0.0f), _yaw(0.0f), _roll(0.0f) {} [[nodiscard]] auto toMatrix() const { cons...
19.842857
104
0.653708
[ "model" ]
e0c02a58b57fe61b405f38d954d05ed4e4458ff8
5,778
cpp
C++
dependencies/PyMesh/tools/Wires/Tiler/MixedMeshTiler.cpp
aprieels/3D-watermarking-spectral-decomposition
dcab78857d0bb201563014e58900917545ed4673
[ "MIT" ]
5
2018-06-04T19:52:02.000Z
2022-01-22T09:04:00.000Z
dependencies/PyMesh/tools/Wires/Tiler/MixedMeshTiler.cpp
aprieels/3D-watermarking-spectral-decomposition
dcab78857d0bb201563014e58900917545ed4673
[ "MIT" ]
null
null
null
dependencies/PyMesh/tools/Wires/Tiler/MixedMeshTiler.cpp
aprieels/3D-watermarking-spectral-decomposition
dcab78857d0bb201563014e58900917545ed4673
[ "MIT" ]
null
null
null
/* This file is part of PyMesh. Copyright (c) 2015 by Qingnan Zhou */ #include "MixedMeshTiler.h" #include <iostream> #include <sstream> #include <Core/Exception.h> #include <Math/MatrixUtils.h> #include "MeshTilerHelper.h" using namespace PyMesh; using namespace MeshTilerHelper; using namespace MatrixUtils; MixedMes...
33.988235
94
0.676186
[ "mesh", "3d" ]
e0d95136eba711ed6900c4707f84089383248f89
24,521
cpp
C++
source/muxing/driver.cpp
zhiayang/mkvtaginator
a53cb0233772ed45ac846d8668311fd5c3aa7aac
[ "Apache-2.0" ]
8
2019-12-26T10:56:56.000Z
2021-07-09T19:52:50.000Z
source/muxing/driver.cpp
zhiayang/mkvtaginator
a53cb0233772ed45ac846d8668311fd5c3aa7aac
[ "Apache-2.0" ]
1
2020-08-24T03:03:02.000Z
2020-08-24T03:03:02.000Z
source/muxing/driver.cpp
zhiayang/mkvtaginator
a53cb0233772ed45ac846d8668311fd5c3aa7aac
[ "Apache-2.0" ]
null
null
null
// driver.cpp // Copyright (c) 2019, zhiayang // Licensed under the Apache License Version 2.0. #include "defs.h" #include <set> #include <deque> // what the fuck? i shouldn't have to do this manually... extern "C" { #include <libavutil/log.h> #include <libavutil/timestamp.h> #include <libavformat/avformat.h> } n...
26.366667
135
0.637576
[ "vector" ]
e0e3099018e2a8b03517a39944157f1b3b24d6f9
2,391
cpp
C++
tools/input-logger-sdl2/src/main.cpp
SimonWallner/space-walk
1e26a9abef6e272f8ba84d03bce1a8b0187498c6
[ "MIT" ]
3
2015-01-19T10:20:14.000Z
2020-05-12T23:40:50.000Z
tools/input-logger-sdl2/src/main.cpp
SimonWallner/space-walk
1e26a9abef6e272f8ba84d03bce1a8b0187498c6
[ "MIT" ]
1
2015-06-02T07:41:45.000Z
2015-06-02T07:41:45.000Z
tools/input-logger-sdl2/src/main.cpp
SimonWallner/space-walk
1e26a9abef6e272f8ba84d03bce1a8b0187498c6
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <sstream> #include <algorithm> #include <chrono> #include <thread> #include <cfloat> #include <SDL.h> #include "compiler.h" #include "TCPServer.hpp" #include "JoystickManager.hpp" #include "data.hpp" float lastDeviceUpdateTime = 0; float UpdateIntervalSeconds = 1; #...
19.925
110
0.674613
[ "vector" ]
e0e597be737b22c0365fe671cbbd703872cb759a
16,363
cxx
C++
Testing/igstkAscensionTrackerTest.cxx
ipa/IGSTK
d31f77b04aa72469e18e8a989ed8316bad39ed7a
[ "BSD-3-Clause" ]
5
2016-02-12T18:55:20.000Z
2022-02-05T09:23:07.000Z
Testing/igstkAscensionTrackerTest.cxx
ipa/IGSTK
d31f77b04aa72469e18e8a989ed8316bad39ed7a
[ "BSD-3-Clause" ]
1
2018-01-26T10:39:31.000Z
2018-01-26T10:39:31.000Z
Testing/igstkAscensionTrackerTest.cxx
ipa/IGSTK
d31f77b04aa72469e18e8a989ed8316bad39ed7a
[ "BSD-3-Clause" ]
4
2017-09-24T01:19:32.000Z
2021-06-20T18:02:42.000Z
/*========================================================================= Program: Image Guided Surgery Software Toolkit Module: igstkAscensionTrackerTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) ISC Insight Software Consortium. All rights reserved. See IGSTKCopyright.txt or h...
31.958984
92
0.623235
[ "object", "vector", "transform" ]
e0f1046dfebaf6275b10aee180f4f65b7acf8da2
15,076
cpp
C++
tools/MayaExport/shared/src/OgreMayaMaterial.cpp
AustralianDisabilityLimited/MultiversePlatform
7e1aad33d48b9e47f3db2ca638cb57592336ddb7
[ "MIT" ]
33
2015-02-16T02:52:08.000Z
2022-02-18T08:46:32.000Z
tools/MayaExport/shared/src/OgreMayaMaterial.cpp
bensku/MultiversePlatform
7e1aad33d48b9e47f3db2ca638cb57592336ddb7
[ "MIT" ]
1
2017-09-09T18:50:23.000Z
2020-12-29T18:13:56.000Z
tools/MayaExport/shared/src/OgreMayaMaterial.cpp
bensku/MultiversePlatform
7e1aad33d48b9e47f3db2ca638cb57592336ddb7
[ "MIT" ]
31
2015-02-07T16:20:24.000Z
2022-02-23T15:02:43.000Z
/* ============================================================================ This source file is part of the Ogre-Maya Tools. Distributed as part of Ogre (Object-oriented Graphics Rendering Engine). Copyright (C) 2003 Fifty1 Software Inc., Bytelords This program is free software; you can redistribute it and/or modi...
31.084536
95
0.566463
[ "mesh", "object", "vector", "model" ]
803ce50b5233aa86c5f507bb712d06eb7e9f35a6
16,063
cpp
C++
reconstruction/sub_ellipse_optimize.cpp
xiaochengcike/3D-finger-vein
f24a72cd3791dcac895986294588fc5b57a58660
[ "MIT" ]
1
2019-07-09T06:03:51.000Z
2019-07-09T06:03:51.000Z
reconstruction/sub_ellipse_optimize.cpp
xiaochengcike/3D-finger-vein
f24a72cd3791dcac895986294588fc5b57a58660
[ "MIT" ]
null
null
null
reconstruction/sub_ellipse_optimize.cpp
xiaochengcike/3D-finger-vein
f24a72cd3791dcac895986294588fc5b57a58660
[ "MIT" ]
1
2018-10-05T03:54:33.000Z
2018-10-05T03:54:33.000Z
// // Created by xhb on 18-8-1. // #include "sub_ellipse_optimize.h" namespace sub_ellipse_opt{ Eigen::MatrixXf coor_c1, coor_c2, coor_c3; double k1, k2, k3, k4, k5, k6; double bias1, bias2, bias3, bias4, bias5, bias6; double init_center_x, init_center_y, init_radius; double b, c; double minf...
35.381057
122
0.544419
[ "vector" ]
803e5e704f7de0774595710193e61e989a9f6436
5,763
cc
C++
src/attributes/HistogramAttributes.cc
b8raoult/magics
eb2c86ec6e392e89c90044128dc671f22283d6ad
[ "ECL-2.0", "Apache-2.0" ]
41
2018-12-07T23:10:50.000Z
2022-02-19T03:01:49.000Z
src/attributes/HistogramAttributes.cc
b8raoult/magics
eb2c86ec6e392e89c90044128dc671f22283d6ad
[ "ECL-2.0", "Apache-2.0" ]
59
2019-01-04T15:43:30.000Z
2022-03-31T09:48:15.000Z
src/attributes/HistogramAttributes.cc
b8raoult/magics
eb2c86ec6e392e89c90044128dc671f22283d6ad
[ "ECL-2.0", "Apache-2.0" ]
13
2019-01-07T14:36:33.000Z
2021-09-06T14:48:36.000Z
/****************************** LICENSE ******************************* * (C) Copyright 1996-2017 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the pr...
32.016667
108
0.721152
[ "vector" ]
803f7a455c73cb5c80f1c0215d17e3d5fbd6c470
848
cpp
C++
Leetcode/res/Triangle/1.cpp
AllanNozomu/CompetitiveProgramming
ac560ab5784d2e2861016434a97e6dcc44e26dc8
[ "MIT" ]
1
2022-03-04T16:06:41.000Z
2022-03-04T16:06:41.000Z
Leetcode/res/Triangle/1.cpp
AllanNozomu/CompetitiveProgramming
ac560ab5784d2e2861016434a97e6dcc44e26dc8
[ "MIT" ]
null
null
null
Leetcode/res/Triangle/1.cpp
AllanNozomu/CompetitiveProgramming
ac560ab5784d2e2861016434a97e6dcc44e26dc8
[ "MIT" ]
null
null
null
\* Author: allannozomu Runtime: 8 ms Memory: 9.9 MB*\ class Solution { public: int minimumTotal(vector<vector<int>>& triangle) { if (triangle.size() == 0) return 0; vector<vector<int>> dp; for (int i = 0 ; i < triangle.size(); ++i){ dp.push_back(vector<int>(i + 1)); ...
26.5
72
0.413915
[ "vector" ]
80421423f1b36e1b1b127cfdd436d4665a5fdc07
1,948
hpp
C++
tests/WIP/rom/lspg_specific/preconditioned_lspg_correctness/helpers.hpp
Pressio/pressio
e07eb1ed71266490217f2f7a3aad5e1acfecfd4a
[ "BSD-3-Clause" ]
29
2019-11-11T13:17:57.000Z
2022-03-16T01:31:31.000Z
tests/WIP/rom/lspg_specific/preconditioned_lspg_correctness/helpers.hpp
Pressio/pressio
e07eb1ed71266490217f2f7a3aad5e1acfecfd4a
[ "BSD-3-Clause" ]
303
2019-09-30T10:15:41.000Z
2022-03-30T08:24:04.000Z
tests/WIP/rom/lspg_specific/preconditioned_lspg_correctness/helpers.hpp
nittaya1990/pressio
22fad15ffc00f3e4d880476a5e60b227ac714ef4
[ "BSD-3-Clause" ]
4
2020-07-07T03:32:36.000Z
2022-03-10T05:21:42.000Z
#ifndef PRESSIO_ROMS_TESTS_PREC_LSPG_HELPERS_HPP_ #define PRESSIO_ROMS_TESTS_PREC_LSPG_HELPERS_HPP_ struct MyCustomDecoder { using jacobian_type = pressio::containers::MultiVector<Eigen::MatrixXd>; using fom_state_type = ::pressio::containers::Vector<Eigen::VectorXd>; private: mutable jacobian_type jac_; pub...
23.190476
75
0.682238
[ "vector" ]
8047b1d87d1608ab611589772adf8ff5e53d4d8e
64,101
cc
C++
third-party/webscalesqlclient/mysql-5.6/sql/sql_load.cc
hkirsman/hhvm_centos7_builds
2a1fd6de0d2d289c1575f43f10018f3bec23bb13
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
third-party/webscalesqlclient/mysql-5.6/sql/sql_load.cc
hkirsman/hhvm_centos7_builds
2a1fd6de0d2d289c1575f43f10018f3bec23bb13
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
third-party/webscalesqlclient/mysql-5.6/sql/sql_load.cc
hkirsman/hhvm_centos7_builds
2a1fd6de0d2d289c1575f43f10018f3bec23bb13
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
/* Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. 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; version 2 of the License. This program is distributed i...
29.512431
109
0.577152
[ "object" ]
80585a8fd09b4226222bd3dcede527b7996abdf4
11,061
cpp
C++
isis/src/mer/apps/mical/main.cpp
robotprogrammer22/ISIS3
8a2ec4bb3c91969c81d75c681051a1fe77028788
[ "CC0-1.0" ]
1
2019-10-13T15:31:33.000Z
2019-10-13T15:31:33.000Z
isis/src/mer/apps/mical/main.cpp
robotprogrammer22/ISIS3
8a2ec4bb3c91969c81d75c681051a1fe77028788
[ "CC0-1.0" ]
null
null
null
isis/src/mer/apps/mical/main.cpp
robotprogrammer22/ISIS3
8a2ec4bb3c91969c81d75c681051a1fe77028788
[ "CC0-1.0" ]
null
null
null
#define GUIHELPERS #include "Isis.h" #include "ProcessByLine.h" #include "Pvl.h" #include "UserInterface.h" #include "IException.h" #include "MiCalibration.h" #include "iTime.h" #include "Brick.h" #include "Histogram.h" #include <cmath> #include <map> using namespace std; using namespace Isis; //helper button funct...
34.244582
101
0.633577
[ "vector", "model" ]
805c35b2a015745d583a0741466b21cf4b9ff4d6
2,332
cpp
C++
Algorithm/TwoSum/TwoSum.cpp
liyuan989/leetcode
aec5e7f6e75d4fbd1460c3ef77a80f6133ef3bb3
[ "BSD-3-Clause" ]
66
2015-05-11T14:00:40.000Z
2021-01-28T14:21:34.000Z
Algorithm/TwoSum/TwoSum.cpp
liyuan989/leetcode
aec5e7f6e75d4fbd1460c3ef77a80f6133ef3bb3
[ "BSD-3-Clause" ]
null
null
null
Algorithm/TwoSum/TwoSum.cpp
liyuan989/leetcode
aec5e7f6e75d4fbd1460c3ef77a80f6133ef3bb3
[ "BSD-3-Clause" ]
40
2015-07-05T06:58:51.000Z
2019-06-18T08:14:46.000Z
/* Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2. Please note that your returned answers (both index1 and index2) are not zero-based....
24.547368
102
0.444254
[ "vector" ]
805e57791e5ba8311d8b45587bea9a2ecca488cd
1,361
cpp
C++
338.counting-bits.cpp
Soulike/LeetCodeSolutions
6f56a1ab6a0bcad13e30374648b7b99f6047efa5
[ "MIT" ]
null
null
null
338.counting-bits.cpp
Soulike/LeetCodeSolutions
6f56a1ab6a0bcad13e30374648b7b99f6047efa5
[ "MIT" ]
null
null
null
338.counting-bits.cpp
Soulike/LeetCodeSolutions
6f56a1ab6a0bcad13e30374648b7b99f6047efa5
[ "MIT" ]
null
null
null
/* * @lc app=leetcode id=338 lang=cpp * * [338] Counting Bits * * https://leetcode.com/problems/counting-bits/description/ * * algorithms * Medium (64.72%) * Likes: 1451 * Dislikes: 110 * Total Accepted: 174.9K * Total Submissions: 268.9K * Testcase Example: '2' * * Given a non negative integer nu...
20.938462
78
0.584129
[ "vector" ]
8060580f117942e9c5f0b1b3efae0460d73aa433
373
cpp
C++
minimum-limit-of-balls-in-a-bag/minimum-limit-of-balls-in-a-bag.cpp
itzpankajpanwar/Leetcode
bf933bc8a16f4b9d7a0e8b82f01684e60b544bed
[ "MIT" ]
2
2021-08-29T12:51:09.000Z
2021-10-18T23:24:41.000Z
minimum-limit-of-balls-in-a-bag/minimum-limit-of-balls-in-a-bag.cpp
itzpankajpanwar/Leetcode
bf933bc8a16f4b9d7a0e8b82f01684e60b544bed
[ "MIT" ]
null
null
null
minimum-limit-of-balls-in-a-bag/minimum-limit-of-balls-in-a-bag.cpp
itzpankajpanwar/Leetcode
bf933bc8a16f4b9d7a0e8b82f01684e60b544bed
[ "MIT" ]
null
null
null
class Solution { public: int minimumSize(vector<int>& nums, int maxOperations) { int s= 1, e= 1e9; while (s < e) { int mid = (s + e) / 2 , cnt = 0; for (auto &x: nums) cnt += (x - 1) / mid; if (cnt > maxOperations) s = mid + 1; e...
17.761905
59
0.399464
[ "vector" ]
80623aabdf19678f1f683d555baead07abd6d062
242
cpp
C++
Chapter08/Exercises/Ex10.cpp
9ndres/PPP-using-cpp-2ed
2de1f69800403121fb37604c9f82c98371ccb02a
[ "MIT" ]
null
null
null
Chapter08/Exercises/Ex10.cpp
9ndres/PPP-using-cpp-2ed
2de1f69800403121fb37604c9f82c98371ccb02a
[ "MIT" ]
null
null
null
Chapter08/Exercises/Ex10.cpp
9ndres/PPP-using-cpp-2ed
2de1f69800403121fb37604c9f82c98371ccb02a
[ "MIT" ]
null
null
null
// 07/27/2021 #include <vector> #include <algorithm> // std::max_elem // Revision needed template<class T> auto maxV(const std::vector<T>& VT) { // Return the largest element in VT. return std::max_element(VT.begin(), VT.end()); }
22
51
0.661157
[ "vector" ]
8068239f6343c971c5f08fc542f60e04a2a68cc7
3,405
cpp
C++
ros-ws-one/src/ur10_kinematics/src/UR10ForwardKinematics.cpp
alpsark/ROS-Term-Carry-Order-and-Place-
903148d0376f32dcbd3a200e9336630829b454eb
[ "MIT" ]
null
null
null
ros-ws-one/src/ur10_kinematics/src/UR10ForwardKinematics.cpp
alpsark/ROS-Term-Carry-Order-and-Place-
903148d0376f32dcbd3a200e9336630829b454eb
[ "MIT" ]
null
null
null
ros-ws-one/src/ur10_kinematics/src/UR10ForwardKinematics.cpp
alpsark/ROS-Term-Carry-Order-and-Place-
903148d0376f32dcbd3a200e9336630829b454eb
[ "MIT" ]
null
null
null
#include "ros/ros.h" #include "std_msgs/Float32.h" #include "geometry_msgs/PoseStamped.h" #include "kdl/chain.hpp" #include "kdl/chainfksolver.hpp" #include "kdl/chainfksolverpos_recursive.hpp" #include "kdl/chainiksolverpos_lma.hpp" #include "kdl/frames_io.hpp" #include "sstream" #include "iostream" #include "fstrea...
34.393939
230
0.680176
[ "vector" ]
806ed12964391f1a5c68b0b475a9874e0b606366
2,157
cpp
C++
ABC206/d.cpp
KoukiNAGATA/c-
ae51bacb9facb936a151dd777beb6688383a2dcd
[ "MIT" ]
null
null
null
ABC206/d.cpp
KoukiNAGATA/c-
ae51bacb9facb936a151dd777beb6688383a2dcd
[ "MIT" ]
3
2021-03-31T01:39:25.000Z
2021-05-04T10:02:35.000Z
ABC206/d.cpp
KoukiNAGATA/c-
ae51bacb9facb936a151dd777beb6688383a2dcd
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) #define REPR(i, n) for (int i = n - 1; i >= 0; i--) #define FOR(i, m, n) for (int i = m; i <= n; i++) #define FORR(i, m, n) for (int i = m; i >= n; i--) #define SORT(v, n) sort(v, v + n) using namespace std; using ll = long long; using vll = vector<...
23.193548
75
0.438572
[ "vector" ]
807b91e266148cb2a926863a9f83e64022159209
1,620
hpp
C++
include/Physics.hpp
2020wmarvil/4bit-racer
c2fe5c0ce5682cc91c1a7677e866d694a671d42e
[ "MIT" ]
null
null
null
include/Physics.hpp
2020wmarvil/4bit-racer
c2fe5c0ce5682cc91c1a7677e866d694a671d42e
[ "MIT" ]
null
null
null
include/Physics.hpp
2020wmarvil/4bit-racer
c2fe5c0ce5682cc91c1a7677e866d694a671d42e
[ "MIT" ]
null
null
null
#ifndef GAME_PHYSICS #define GAME_PHYSICS #include <vector> #include "Entity.hpp" #include "Components.hpp" #include "EventHandler.hpp" #include "Math.hpp" class PhysicsSim { private: std::vector<Entity*> entities; public: PhysicsSim() { } void AddEntity(Entity *entity) { entities.push_back(en...
30.566038
182
0.612963
[ "vector", "transform" ]
8085d7713fc7641ff16a1a4bca4126ff87c58b62
327
cpp
C++
API/GameEngineContents/ItemBomb.cpp
chaewoon83/WinApiPortfolio
e0f024a66a253a7e5b11e228cf9d0da93ddcc5ef
[ "MIT" ]
null
null
null
API/GameEngineContents/ItemBomb.cpp
chaewoon83/WinApiPortfolio
e0f024a66a253a7e5b11e228cf9d0da93ddcc5ef
[ "MIT" ]
null
null
null
API/GameEngineContents/ItemBomb.cpp
chaewoon83/WinApiPortfolio
e0f024a66a253a7e5b11e228cf9d0da93ddcc5ef
[ "MIT" ]
null
null
null
#include "ItemBomb.h" #include <windows.h> #include <GameEngineBase/GameEngineWindow.h> ItemBomb::ItemBomb() { } ItemBomb::~ItemBomb() { } void ItemBomb::Start() { SetPosition(GameEngineWindow::GetScale().Half()); SetScale({ 500,500 }); } void ItemBomb::Update() { } void ItemBomb::Render() { DebugRectRender...
11.275862
50
0.678899
[ "render" ]
808a246b9065703580a63930e5557e10ec9a1fe2
4,380
cpp
C++
source/adios2/toolkit/zmq/zmqpubsub/ZmqPubSub.cpp
opadron/ADIOS2
53be5dd6e1bfa6e084174d807ca548dcda227e0b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
source/adios2/toolkit/zmq/zmqpubsub/ZmqPubSub.cpp
opadron/ADIOS2
53be5dd6e1bfa6e084174d807ca548dcda227e0b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
source/adios2/toolkit/zmq/zmqpubsub/ZmqPubSub.cpp
opadron/ADIOS2
53be5dd6e1bfa6e084174d807ca548dcda227e0b
[ "ECL-2.0", "Apache-2.0" ]
1
2020-04-14T13:32:45.000Z
2020-04-14T13:32:45.000Z
/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. * * ZmqPubSub.cpp * * Created on: Jun 1, 2017 * Author: Jason Wang wangr1@ornl.gov */ #include <chrono> #include <cstring> #include <iostream> #include <zmq.h> #include "ZmqPubSub.h"...
23.42246
77
0.571918
[ "vector" ]
8098570719d789b8dcee3060dac091d5c87ddbf7
1,351
cpp
C++
src/stc/link.cpp
antonvw/wxExtension
d5523346cf0b1dbd45fd20dc33bf8d679299676c
[ "MIT" ]
9
2016-01-10T20:59:02.000Z
2019-01-09T14:18:13.000Z
src/stc/link.cpp
antonvw/wxExtension
d5523346cf0b1dbd45fd20dc33bf8d679299676c
[ "MIT" ]
31
2015-01-30T17:46:17.000Z
2017-03-04T17:33:50.000Z
src/stc/link.cpp
antonvw/wxExtension
d5523346cf0b1dbd45fd20dc33bf8d679299676c
[ "MIT" ]
2
2015-04-05T08:45:22.000Z
2018-08-24T06:43:24.000Z
//////////////////////////////////////////////////////////////////////////////// // Name: link.cpp // Purpose: Implementation of class wex::link // Author: Anton van Wezenbeek // Copyright: (c) 2020-2022 Anton van Wezenbeek //////////////////////////////////////////////////////////////////////////////// #inc...
28.145833
80
0.548483
[ "vector" ]
8098b66d4b9ce1c3a349e31cf78d7c1008ea4632
9,971
cpp
C++
src/tests/rxcpp_benchmark.cpp
victimsnino/ReactivePlusPlus
bb187cc52936bce7c1ef4899d7dbb9c970cef291
[ "MIT" ]
1
2022-03-19T20:15:50.000Z
2022-03-19T20:15:50.000Z
src/tests/rxcpp_benchmark.cpp
victimsnino/ReactivePlusPlus
bb187cc52936bce7c1ef4899d7dbb9c970cef291
[ "MIT" ]
12
2022-03-22T21:18:14.000Z
2022-03-30T05:37:58.000Z
src/tests/rxcpp_benchmark.cpp
victimsnino/ReactivePlusPlus
bb187cc52936bce7c1ef4899d7dbb9c970cef291
[ "MIT" ]
null
null
null
#include <catch2/catch_test_macros.hpp> #include <catch2/benchmark/catch_benchmark.hpp> #include <rxcpp/rx.hpp> auto MakeSpecificObserver() { return rxcpp::make_observer<int>( [](int) {}); } auto MakeDynamicObserver() { return rxcpp::make_observer_dynamic<int>([](int){}); } auto MakeSpecificObservable() { ...
26.589333
115
0.602547
[ "vector", "transform" ]
809d0fce665a2a0169ad7e68ab2ea642854618eb
11,457
cpp
C++
Source/WebKit/UIProcess/gtk/WebContextMenuProxyGtk.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Source/WebKit/UIProcess/gtk/WebContextMenuProxyGtk.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Source/WebKit/UIProcess/gtk/WebContextMenuProxyGtk.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright (C) 2011, 2020 Igalia S.L. * * 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 copyright * notice, this list of conditions and the followi...
38.19
146
0.730558
[ "vector", "model" ]
80a0013106517b6951f86fe967ea10967330767d
14,046
cc
C++
src/scene/components/lighting/environmentProbeComponent.cc
RichardRanft/Torque6
db6cd08f18f4917e0c6557b2766fb40d8e2bee39
[ "MIT" ]
312
2015-02-17T15:07:28.000Z
2022-03-12T07:09:56.000Z
src/scene/components/lighting/environmentProbeComponent.cc
lukaspj/Torque6
db6cd08f18f4917e0c6557b2766fb40d8e2bee39
[ "MIT" ]
23
2015-03-30T14:47:37.000Z
2020-11-02T00:00:24.000Z
src/scene/components/lighting/environmentProbeComponent.cc
lukaspj/Torque6
db6cd08f18f4917e0c6557b2766fb40d8e2bee39
[ "MIT" ]
73
2015-02-17T15:07:30.000Z
2021-10-02T03:11:59.000Z
//----------------------------------------------------------------------------- // Copyright (c) 2015 Andrew Mac // // 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, inc...
34.175182
194
0.629432
[ "render", "vector", "transform" ]
80a2d5f0824fae5d06d4271b5ecbd9bf39eca318
976
cpp
C++
CppSTL/Chapter1/vectors/vect_ex1.cpp
SebastianTirado/Cpp-Learning-Archive
fb83379d0cc3f9b2390cef00119464ec946753f4
[ "MIT" ]
19
2019-09-15T12:23:51.000Z
2020-06-18T08:31:26.000Z
CppSTL/Chapter1/vectors/vect_ex1.cpp
SebastianTirado/Cpp-Learning-Archive
fb83379d0cc3f9b2390cef00119464ec946753f4
[ "MIT" ]
15
2021-12-07T06:46:03.000Z
2022-01-31T07:55:32.000Z
CppSTL/Chapter1/vectors/vect_ex1.cpp
SebastianTirado/Cpp-Learning-Archive
fb83379d0cc3f9b2390cef00119464ec946753f4
[ "MIT" ]
13
2019-06-29T02:58:27.000Z
2020-05-07T08:52:22.000Z
#include <iostream> #include <vector> #include <algorithm> using std::cin; using std::cout; using std::vector; #define newline { cout << "\n"; } template<class myType> void print( vector<myType> & ); template<class myType> void print_even( vector<myType> & ); int main() { const int N = 5; int hold; typename...
18.074074
61
0.590164
[ "vector" ]
80a628e4a386cf853158590a70b0a01ce3f107d8
17,631
cpp
C++
src/mbuf.cpp
andersgjerdrum/diggi
c072911c439758b6f1bb1d9972c6fc32aa49d560
[ "Intel", "CC-BY-3.0", "MIT-CMU" ]
null
null
null
src/mbuf.cpp
andersgjerdrum/diggi
c072911c439758b6f1bb1d9972c6fc32aa49d560
[ "Intel", "CC-BY-3.0", "MIT-CMU" ]
null
null
null
src/mbuf.cpp
andersgjerdrum/diggi
c072911c439758b6f1bb1d9972c6fc32aa49d560
[ "Intel", "CC-BY-3.0", "MIT-CMU" ]
null
null
null
/** * @file mbuf.cpp * @author your name (you@domain.com) * @brief implementation of virtual mutable contiguous buffer. * buffers which allow append, replace, concat operations without creating internal copies of the data.@ * Supports pattern searching and traversing. * does not copy data, only stores a ref...
28.345659
159
0.668652
[ "object" ]
80aa9c24b62b00734c9d01f98f482bb2d7d6ea70
4,200
cpp
C++
src/applications/utilities/mesh/manipulation/checkMesh/printMeshStats.cpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
src/applications/utilities/mesh/manipulation/checkMesh/printMeshStats.cpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
src/applications/utilities/mesh/manipulation/checkMesh/printMeshStats.cpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
#include "printMeshStats.hpp" #include "polyMesh.hpp" #include "globalMeshData.hpp" #include "hexMatcher.hpp" #include "wedgeMatcher.hpp" #include "prismMatcher.hpp" #include "pyrMatcher.hpp" #include "tetWedgeMatcher.hpp" #include "tetMatcher.hpp" void CML::printMeshStats(const polyMesh& mesh, const bool allTopolog...
28.187919
75
0.492381
[ "mesh", "shape" ]
01e97fb8d969556e63093ac60b43c931653bc98b
1,402
cc
C++
app/oxs/ext/maskvectorfield.cc
ViennaNovoFlop/ViennaNovoFlop-dev
f8c4d6c06590a0d9a3890d81e9b0b4dcb7ea9e00
[ "TCL", "SWL", "MIT", "X11", "BSD-3-Clause" ]
18
2016-04-29T10:11:29.000Z
2022-02-13T08:48:39.000Z
app/oxs/ext/maskvectorfield.cc
ViennaNovoFlop/ViennaNovoFlop-dev
f8c4d6c06590a0d9a3890d81e9b0b4dcb7ea9e00
[ "TCL", "SWL", "MIT", "X11", "BSD-3-Clause" ]
29
2017-11-01T20:00:28.000Z
2021-10-05T12:22:50.000Z
app/oxs/ext/maskvectorfield.cc
ViennaNovoFlop/ViennaNovoFlop-dev
f8c4d6c06590a0d9a3890d81e9b0b4dcb7ea9e00
[ "TCL", "SWL", "MIT", "X11", "BSD-3-Clause" ]
11
2015-10-17T19:41:29.000Z
2021-05-12T08:32:37.000Z
/* FILE: maskvectorfield.cc -*-Mode: c++-*- * * Vector field object, derived from Oxs_VectorField class, * that applies an affine transformation to the output of * another vector field object. * */ #include "oc.h" #include "util.h" #include "threevector.h" #include "meshvalue.h" #include "director.h" #incl...
22.253968
59
0.717546
[ "mesh", "object", "vector" ]
01ea10b1f03dcd9b02a5ed18f480c2eab855df5d
14,192
cpp
C++
AnvilEldorado/Source/Camera.cpp
MasterScott/AnvilClient
9b7751d9583d7221fd9c9f1b864f27e7ff9fcf79
[ "MIT" ]
57
2016-01-17T16:13:59.000Z
2020-07-17T05:39:33.000Z
AnvilEldorado/Source/Camera.cpp
MasterScott/AnvilClient
9b7751d9583d7221fd9c9f1b864f27e7ff9fcf79
[ "MIT" ]
24
2016-02-05T01:03:30.000Z
2020-12-08T18:44:33.000Z
AnvilEldorado/Source/Camera.cpp
MasterScott/AnvilClient
9b7751d9583d7221fd9c9f1b864f27e7ff9fcf79
[ "MIT" ]
23
2015-12-29T23:33:15.000Z
2019-10-21T22:45:27.000Z
#include <locale> #include <string> #include <sstream> #include "Utils\Hook.hpp" #include "Utils\Patch.hpp" #include "Blam\Math\RealPoint3D.hpp" #include "Blam\Math\RealVector2D.hpp" #include "Blam\Math\RealVector3D.hpp" #include "Globals.hpp" #include "Camera.hpp" namespace AnvilEldorado { // Override the FOV tha...
28.10297
130
0.708075
[ "vector" ]
01f84569bf04cb439a989606edb42d373c1a36c4
1,120
hpp
C++
graph/tree/pmormq-lowest-common-ancestor.hpp
neal2018/library
a19f3b29f3355e32f7e5f6768a7943db48fcdff7
[ "Unlicense" ]
127
2019-07-22T03:52:01.000Z
2022-03-11T07:20:21.000Z
graph/tree/pmormq-lowest-common-ancestor.hpp
neal2018/library
a19f3b29f3355e32f7e5f6768a7943db48fcdff7
[ "Unlicense" ]
39
2019-09-16T12:04:53.000Z
2022-03-29T15:43:35.000Z
graph/tree/pmormq-lowest-common-ancestor.hpp
neal2018/library
a19f3b29f3355e32f7e5f6768a7943db48fcdff7
[ "Unlicense" ]
29
2019-08-10T11:27:06.000Z
2022-03-11T07:02:43.000Z
#pragma once #include "../graph-template.hpp" #include "../../structure/others/plus-minus-one-rmq.cpp" /** * @brief PMORMQ-Lowest-Common-Ancestor(最小共通祖先) * @docs docs/pmormq-lowest-common-ancestor.md **/ template< typename T = int > struct PMORMQLowestCommonAncestor : Graph< T > { public: using Graph< T >::Graph...
22.857143
56
0.565179
[ "vector" ]
bf02be3cf8b10772e6e839691b1df88e8dfa806c
1,371
cc
C++
gneis-geant4/src/isnp/facility/component/CollimatorC2.cc
andrey-nakin/gneis-geant4
6def0304b5664a5dafdcfd58344ad2006ef44d62
[ "MIT" ]
null
null
null
gneis-geant4/src/isnp/facility/component/CollimatorC2.cc
andrey-nakin/gneis-geant4
6def0304b5664a5dafdcfd58344ad2006ef44d62
[ "MIT" ]
null
null
null
gneis-geant4/src/isnp/facility/component/CollimatorC2.cc
andrey-nakin/gneis-geant4
6def0304b5664a5dafdcfd58344ad2006ef44d62
[ "MIT" ]
null
null
null
#include <G4SystemOfUnits.hh> #include <G4NistManager.hh> #include <G4LogicalVolume.hh> #include <G4VisAttributes.hh> #include "isnp/facility/component/CollimatorC2.hh" #include "isnp/repository/Colours.hh" #include "isnp/util/NameBuilder.hh" namespace isnp { namespace facility { namespace component { CollimatorC2...
20.772727
77
0.7469
[ "solid" ]
bf058079d5ff0bbe7ea13ca910c078e9c6409d69
903
cpp
C++
Algorithms/Work 3/taskA.cpp
alexstrive/Ifmo-Works
1f4fb67dfde9c4e14130b6614be9ec4b0642d3c0
[ "Unlicense" ]
4
2017-10-06T08:26:23.000Z
2017-10-17T12:40:52.000Z
Algorithms/Work 3/taskA.cpp
novopashin/Ifmo-Works
1f4fb67dfde9c4e14130b6614be9ec4b0642d3c0
[ "Unlicense" ]
5
2017-11-16T18:01:51.000Z
2018-01-15T18:05:58.000Z
Algorithms/Work 3/taskA.cpp
allordiron/LabWorks
1f4fb67dfde9c4e14130b6614be9ec4b0642d3c0
[ "Unlicense" ]
1
2018-05-20T19:30:57.000Z
2018-05-20T19:30:57.000Z
#include <vector> #include <fstream> using namespace std; template<class T> class Stack { protected: vector<T> values; public: void push(T value) { values.push_back(value); } T pop() { T value = values.back(); values.pop_back(); return value; } }; int main() { ...
16.722222
45
0.508306
[ "vector" ]
bf0ca819d74bc5a7a9ddc7a9533c8e60bfaa74d5
5,749
cpp
C++
one batchIO version/other_function.cpp
NickTarasenko/CUDAMPF
ea8ec2e5c98cf4025526f39814df06e0b22b238e
[ "MIT" ]
5
2016-01-19T18:45:14.000Z
2019-06-28T04:57:28.000Z
one batchIO version/other_function.cpp
NickTarasenko/CUDAMPF
ea8ec2e5c98cf4025526f39814df06e0b22b238e
[ "MIT" ]
1
2016-03-04T18:49:04.000Z
2016-08-19T19:50:08.000Z
one batchIO version/other_function.cpp
NickTarasenko/CUDAMPF
ea8ec2e5c98cf4025526f39814df06e0b22b238e
[ "MIT" ]
6
2016-12-06T03:03:04.000Z
2021-05-09T13:17:33.000Z
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "header_def.h" /* Function: seq_Padding() * Synopsis: Transfer seq into int value for optimization in Kernel * * Purpose: 1. padding to 128x * 2. unsigned char for each residue * 3. union {unsigned char; unsigned char [4];} * 4. store ...
23.561475
108
0.548269
[ "model" ]
bf0cfedbda1cbf52629b595f21649aa71c6aeb01
2,168
cpp
C++
Sources/Main/FileTesting.cpp
XessWaffle/3redNet
809b6fe22f5a14d531fe26360faab634be19f621
[ "MIT" ]
null
null
null
Sources/Main/FileTesting.cpp
XessWaffle/3redNet
809b6fe22f5a14d531fe26360faab634be19f621
[ "MIT" ]
null
null
null
Sources/Main/FileTesting.cpp
XessWaffle/3redNet
809b6fe22f5a14d531fe26360faab634be19f621
[ "MIT" ]
null
null
null
#include "NeuralNetworkFileManager.h" #include "NeuralNetwork.cuh" #include "DataTextFileManager.h" #include <GLFW/glfw3.h> GLFWwindow* window; const int num_layers = 4; std::string u_dir = "nnet/untrained"; std::string t_dir = "nnet/trained"; std::string file_path = "test/"; int main() { /*Dimension layer_dims[...
21.89899
112
0.674815
[ "vector" ]
bf0f3c9f63ca0812f3ae46de3682f76d712a3697
18,578
cpp
C++
Code/Framework/AzToolsFramework/AzToolsFramework/UI/DPEDebugViewer/DPEDebugModel.cpp
prophetl33t/o3de
eaeeb883eee1594b1b93327f6909eebd1a826caf
[ "Apache-2.0", "MIT" ]
null
null
null
Code/Framework/AzToolsFramework/AzToolsFramework/UI/DPEDebugViewer/DPEDebugModel.cpp
prophetl33t/o3de
eaeeb883eee1594b1b93327f6909eebd1a826caf
[ "Apache-2.0", "MIT" ]
null
null
null
Code/Framework/AzToolsFramework/AzToolsFramework/UI/DPEDebugViewer/DPEDebugModel.cpp
prophetl33t/o3de
eaeeb883eee1594b1b93327f6909eebd1a826caf
[ "Apache-2.0", "MIT" ]
null
null
null
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include "DPEDebugModel.h" #include <AzCore/DOM/DomUtils.h> #include <AzFramework/DocumentProperty...
34.213628
215
0.583163
[ "model", "3d" ]
bf149bf86edd83a5a2b401ef9c8fb58d91fe8af0
6,488
cpp
C++
tests/Texturing/Code/TextureTest.cpp
anishvabardhan/Apex
8f87c6f00413180f4eb2b22264859b8ddb69c307
[ "Apache-2.0" ]
1
2021-01-14T15:11:58.000Z
2021-01-14T15:11:58.000Z
tests/Texturing/Code/TextureTest.cpp
anishvabardhan/Apex
8f87c6f00413180f4eb2b22264859b8ddb69c307
[ "Apache-2.0" ]
null
null
null
tests/Texturing/Code/TextureTest.cpp
anishvabardhan/Apex
8f87c6f00413180f4eb2b22264859b8ddb69c307
[ "Apache-2.0" ]
null
null
null
#include "TextureTest.h" #include "../Graphics/Buffers/VertexArrayObject.h" #include "../Graphics/Buffers/IndexBuffer.h" #include "../Graphics/SpriteAnimation.h" #include "../Graphics/SpriteDefinition.h" #include "../Graphics/ShaderDefinition.h" #include "../Graphics/Renderer.h" #include "../Graphics/Shader.h" #includ...
38.164706
214
0.449291
[ "render", "vector" ]
bf1bb0b8ab12557615e875019d7c3adbd6ce4a1f
830
hpp
C++
source/backend/opengl/execution/GLRelu.hpp
xindongzhang/MNN
f4740c78dc8fc67ee4596552d2257f12c48af067
[ "Apache-2.0" ]
1
2019-08-09T03:16:49.000Z
2019-08-09T03:16:49.000Z
source/backend/opengl/execution/GLRelu.hpp
xindongzhang/MNN
f4740c78dc8fc67ee4596552d2257f12c48af067
[ "Apache-2.0" ]
null
null
null
source/backend/opengl/execution/GLRelu.hpp
xindongzhang/MNN
f4740c78dc8fc67ee4596552d2257f12c48af067
[ "Apache-2.0" ]
1
2021-08-23T03:40:09.000Z
2021-08-23T03:40:09.000Z
// // GLRelu.h // MNN // // Created by MNN on 2019/01/31. // Copyright © 2018, Alibaba Group Holding Limited // #ifndef GLRelu_H #define GLRelu_H #include "Execution.hpp" #include "GLProgram.hpp" #include "GLTexture.hpp" #include "MNN_generated.h" namespace MNN { namespace OpenGL { class GLRelu : public MNN::Execu...
24.411765
116
0.693976
[ "vector" ]
bf1de3d2c89379560f5068b407d7a2d90c26ae35
13,826
cc
C++
sources/m_nest/nest_plugin.cc
elcymon/cpfa
e5f1c0dfdace9913aee5ef5c6642bc60efef22f2
[ "MIT" ]
null
null
null
sources/m_nest/nest_plugin.cc
elcymon/cpfa
e5f1c0dfdace9913aee5ef5c6642bc60efef22f2
[ "MIT" ]
null
null
null
sources/m_nest/nest_plugin.cc
elcymon/cpfa
e5f1c0dfdace9913aee5ef5c6642bc60efef22f2
[ "MIT" ]
null
null
null
#include <boost/bind.hpp> #include <gazebo/gazebo.hh> #include <gazebo/physics/physics.hh> #include <gazebo/common/common.hh> #include <gazebo/sensors/sensors.hh> #include <gazebo/msgs/msgs.hh> #include <gazebo/transport/transport.hh> //#include <gazebo/sdf/sdf.hh> #include <iostream> //needed in order to use cout #inc...
30.520971
99
0.641039
[ "object", "vector" ]
bf25c8551660c0bc43f6e6a181be797efea9ef83
3,405
cpp
C++
com/win32comext/shell/src/PyIRelatedItem.cpp
huanyin88/Mod-Pywin32-For-Python3.x-DDE
992931aa534357d54aaac34077f0128d3a740e5e
[ "Apache-2.0" ]
3
2020-06-18T16:57:44.000Z
2020-07-21T17:52:06.000Z
com/win32comext/shell/src/PyIRelatedItem.cpp
huanyin88/Mod-Pywin32-For-Python3.x-DDE
992931aa534357d54aaac34077f0128d3a740e5e
[ "Apache-2.0" ]
null
null
null
com/win32comext/shell/src/PyIRelatedItem.cpp
huanyin88/Mod-Pywin32-For-Python3.x-DDE
992931aa534357d54aaac34077f0128d3a740e5e
[ "Apache-2.0" ]
null
null
null
// This file implements the IRelatedItem Interface and Gateway for Python. // Generated by makegw.py #include "shell_pch.h" #include "PyIRelatedItem.h" // @doc - This file contains autoduck documentation // --------------------------------------------------- // // Interface Implementation PyIRelatedItem::PyIRelatedI...
34.393939
114
0.669604
[ "object" ]
bf2686d6ef42f5ce236b0f2b321b369d18d9c03f
439
cpp
C++
LeetCode/c++/942_DI String Match_V2.cpp
Weak-Chicken/Algo_every_day
0976b5986d6c98cb8370ff4239b4a2485f865253
[ "MIT" ]
1
2018-02-08T23:50:19.000Z
2018-02-08T23:50:19.000Z
LeetCode/c++/942_DI String Match_V2.cpp
Weak-Chicken/Algo_every_day
0976b5986d6c98cb8370ff4239b4a2485f865253
[ "MIT" ]
1
2018-04-11T19:08:22.000Z
2018-04-12T19:24:57.000Z
LeetCode/c++/942_DI String Match_V2.cpp
Weak-Chicken/Cpp_every_day
0976b5986d6c98cb8370ff4239b4a2485f865253
[ "MIT" ]
null
null
null
class Solution { public: vector<int> diStringMatch(string S) { int upper = S.size(), lower = 0; vector<int> res(S.size() + 1, -1); for (int i = 0; i < S.size(); i++) { if (S[i] == 'I') {res[i] = lower; lower++;} else if (S[i] == 'D') {res[i] = upper; upper--;} ...
29.266667
81
0.42369
[ "vector" ]
bf2d42f4a320582494d167525042f5f02712141e
1,456
cpp
C++
Plugins/org.mitk.gui.qt.igt.app.ultrasoundtrackingnavigation/src/internal/QmitkUSNavigationCalibrationUpdateDepthDelegate.cpp
zhaomengxiao/MITK
a09fd849a4328276806008bfa92487f83a9e2437
[ "BSD-3-Clause" ]
1
2022-03-03T12:03:32.000Z
2022-03-03T12:03:32.000Z
Plugins/org.mitk.gui.qt.igt.app.ultrasoundtrackingnavigation/src/internal/QmitkUSNavigationCalibrationUpdateDepthDelegate.cpp
zhaomengxiao/MITK
a09fd849a4328276806008bfa92487f83a9e2437
[ "BSD-3-Clause" ]
1
2021-12-22T10:19:02.000Z
2021-12-22T10:19:02.000Z
Plugins/org.mitk.gui.qt.igt.app.ultrasoundtrackingnavigation/src/internal/QmitkUSNavigationCalibrationUpdateDepthDelegate.cpp
zhaomengxiao/MITK_lancet
a09fd849a4328276806008bfa92487f83a9e2437
[ "BSD-3-Clause" ]
1
2020-11-27T09:41:18.000Z
2020-11-27T09:41:18.000Z
/*============================================================================ The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center (DKFZ) All rights reserved. Use of this source code is governed by a 3-clause BSD license that can be found in the LICENSE file. =================...
33.860465
169
0.722527
[ "model" ]
bf3e71d5a32adb8abbc1db7183c14f8e2a08c4c9
2,066
cpp
C++
aws-cpp-sdk-kendra/source/model/Facet.cpp
Nexuscompute/aws-sdk-cpp
e7ef485e46e6962c9e084b8c9b104c1bfcceaf26
[ "Apache-2.0" ]
1
2022-01-05T18:20:03.000Z
2022-01-05T18:20:03.000Z
aws-cpp-sdk-kendra/source/model/Facet.cpp
Nexuscompute/aws-sdk-cpp
e7ef485e46e6962c9e084b8c9b104c1bfcceaf26
[ "Apache-2.0" ]
null
null
null
aws-cpp-sdk-kendra/source/model/Facet.cpp
Nexuscompute/aws-sdk-cpp
e7ef485e46e6962c9e084b8c9b104c1bfcceaf26
[ "Apache-2.0" ]
1
2021-11-09T11:58:03.000Z
2021-11-09T11:58:03.000Z
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/kendra/model/Facet.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace kendra...
20.66
90
0.717812
[ "model" ]
bf3e97a34b319ec280014eaad6835d0750a943d1
3,349
hpp
C++
graphblas/backend/cuda/scatter.hpp
richardlett/graphblast
dac2a22f40b49b702ba34462007201f0ae50f690
[ "Apache-2.0" ]
155
2019-01-19T12:15:12.000Z
2022-03-21T02:59:03.000Z
graphblas/backend/cuda/scatter.hpp
richardlett/graphblast
dac2a22f40b49b702ba34462007201f0ae50f690
[ "Apache-2.0" ]
16
2019-05-02T19:29:57.000Z
2021-06-30T07:22:57.000Z
graphblas/backend/cuda/scatter.hpp
richardlett/graphblast
dac2a22f40b49b702ba34462007201f0ae50f690
[ "Apache-2.0" ]
20
2019-06-10T17:36:41.000Z
2022-03-23T19:48:26.000Z
#ifndef GRAPHBLAS_BACKEND_CUDA_SCATTER_HPP_ #define GRAPHBLAS_BACKEND_CUDA_SCATTER_HPP_ #include <iostream> namespace graphblas { namespace backend { // Dense vector constant variant template <typename W, typename M, typename U, typename T> Info scatterDense(DenseVector<W>* w, const Vector<M>...
26.164063
80
0.566438
[ "vector" ]
bf47028af9784c5f26514db0411db594a3bd2999
11,390
cpp
C++
src/parachute.cpp
ParthGoyal1508/3D-OpenGL_Game
82daaa25dab0fcdf3b594c587934a285c9ad5826
[ "MIT" ]
null
null
null
src/parachute.cpp
ParthGoyal1508/3D-OpenGL_Game
82daaa25dab0fcdf3b594c587934a285c9ad5826
[ "MIT" ]
null
null
null
src/parachute.cpp
ParthGoyal1508/3D-OpenGL_Game
82daaa25dab0fcdf3b594c587934a285c9ad5826
[ "MIT" ]
null
null
null
#include "parachute.h" #include "main.h" void Parachute::make_cuboid(GLfloat vertex_buffer_data3[], float x, float y, float z){ float l=5,b=5,h=5; int cur3=0; vertex_buffer_data3[cur3++]=x+l/2; vertex_buffer_data3[cur3++]=y+h/2; vertex_buffer_data3[cur3++]=z+b/2; vertex_buffer_data3[cur3++]=x...
31.37741
109
0.635996
[ "object", "model" ]
bf5421b35314465c5166693dc603620e774e5fbf
2,284
cpp
C++
AtCoder/ABC127/E.cpp
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
1
2018-12-27T08:20:52.000Z
2018-12-27T08:20:52.000Z
AtCoder/ABC127/E.cpp
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
null
null
null
AtCoder/ABC127/E.cpp
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
1
2018-08-29T13:26:50.000Z
2018-08-29T13:26:50.000Z
// Combinatorics // 4 // 09-12-2020 #include <bits/stdc++.h> #define all(A) begin(A), end(A) #define rall(A) rbegin(A), rend(A) #define sz(A) int(A.size()) #define pb push_back #define mp make_pair using namespace std; typedef long long ll; typedef pair <int, int> pii; typedef pair <ll, ll> pll; type...
20.576577
79
0.501313
[ "vector" ]
bf58afe52a82657507d1524d8969ab5d03e59d3e
3,553
cpp
C++
apis/rest/services/pkduck_service/code/RuleGenerator/FastLCS.cpp
qcri/data_civilizer_system
3c732e3e8c65ea9ee4a44569b0d031bc2c17f946
[ "MIT" ]
6
2019-05-09T04:24:06.000Z
2021-04-17T16:01:02.000Z
apis/rest/services/pkduck_service/code/RuleGenerator/FastLCS.cpp
qcri/data_civilizer_system
3c732e3e8c65ea9ee4a44569b0d031bc2c17f946
[ "MIT" ]
1
2020-10-08T11:19:03.000Z
2020-10-08T11:19:03.000Z
apis/rest/services/pkduck_service/code/RuleGenerator/FastLCS.cpp
qcri/data_civilizer_system
3c732e3e8c65ea9ee4a44569b0d031bc2c17f946
[ "MIT" ]
3
2019-07-09T17:18:44.000Z
2021-05-26T13:52:16.000Z
// // Created by Wenbo Tao on 12/27/16. // #include "FastLCS.h" FastLCS::FastLCS(vector<string> s) : RuleGenerator(s) { //build trie trie.clear(), trie.resize(1); contain_word.clear(), contain_word.push_back(unordered_set<string>()); for (int i = 0; i < n; i ++) for (string s : tokens[i]) { if (s.size()...
24.335616
89
0.562623
[ "vector" ]
bf5d5f66d671036fd1a19f51937cd01d68d0594c
675
cpp
C++
Online-Judge-Solution/Codeforces Solutions/404(B. Anton and Classes).cpp
arifparvez14/Basic-and-competetive-programming
4cb9ee7fbed3c70307d0f63499fcede86ed3c732
[ "MIT" ]
null
null
null
Online-Judge-Solution/Codeforces Solutions/404(B. Anton and Classes).cpp
arifparvez14/Basic-and-competetive-programming
4cb9ee7fbed3c70307d0f63499fcede86ed3c732
[ "MIT" ]
null
null
null
Online-Judge-Solution/Codeforces Solutions/404(B. Anton and Classes).cpp
arifparvez14/Basic-and-competetive-programming
4cb9ee7fbed3c70307d0f63499fcede86ed3c732
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> const int y = 1234567890; using namespace std; int main() { int n; cin >> n; vector<pair<int, int> > a(n); for (int i = 0; i < n; i++) { cin >> a[i].first >> a[i].second; } int m; cin >> m; vector<pair<int, int> > b(m); for (int i = 0; i < m; i++) { cin >> b[i].first >> b[i].second;...
21.09375
45
0.524444
[ "vector" ]
bf64098d3fc2dab83ebc80564cbc517c47963b9f
13,482
cc
C++
DQM/GEM/plugins/GEMEffByGEMCSCSegmentSource.cc
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:24:46.000Z
2021-11-30T16:24:46.000Z
DQM/GEM/plugins/GEMEffByGEMCSCSegmentSource.cc
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
4
2021-11-29T13:57:56.000Z
2022-03-29T06:28:36.000Z
DQM/GEM/plugins/GEMEffByGEMCSCSegmentSource.cc
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:16:05.000Z
2021-11-30T16:16:05.000Z
#include "DQM/GEM/plugins/GEMEffByGEMCSCSegmentSource.h" #include "Validation/MuonGEMHits/interface/GEMValidationUtils.h" GEMEffByGEMCSCSegmentSource::GEMEffByGEMCSCSegmentSource(const edm::ParameterSet& parameter_set) : GEMOfflineDQMBase(parameter_set), kGEMTokenBeginRun_(esConsumes<edm::Transition::BeginR...
39.652941
120
0.659694
[ "vector" ]
bf6c792ded104d4ede4f628ebd6af6adcee25c53
7,601
cpp
C++
src/adc_driver.cpp
wirenboard/wb-mqtt-adc
17b92068385b371ebefda8b763efa47f8595e8ce
[ "MIT" ]
1
2021-06-01T13:46:01.000Z
2021-06-01T13:46:01.000Z
src/adc_driver.cpp
wirenboard/wb-mqtt-adc
17b92068385b371ebefda8b763efa47f8595e8ce
[ "MIT" ]
6
2021-09-08T04:19:49.000Z
2022-03-17T10:24:38.000Z
src/adc_driver.cpp
wirenboard/wb-homa-adc
2d4ee6be9e34113b67b783453087c623b185a0a1
[ "MIT" ]
1
2021-09-05T10:55:51.000Z
2021-09-05T10:55:51.000Z
#include "adc_driver.h" #include <vector> #include "sysfs_adc.h" /* "/devices/" DriverId "/meta/name" = Config.DeviceName "/devices/" DriverId "/controls/" Config.Channels[i].Id = measured voltage "/devices/" DriverId "/controls/" Config.Channels[i].Id "/meta/ord...
40.647059
134
0.485989
[ "vector" ]
bf7485f225a20be5b4af6f6c6480ec7a5bc813dc
17,732
cpp
C++
src/BGL_GAM_MCMC_ST_KR.cpp
hrmerrill/SERR-2018-supp-code
fa091f7f3aba2af7a11f69c43cc1b4c144b95b61
[ "MIT" ]
null
null
null
src/BGL_GAM_MCMC_ST_KR.cpp
hrmerrill/SERR-2018-supp-code
fa091f7f3aba2af7a11f69c43cc1b4c144b95b61
[ "MIT" ]
null
null
null
src/BGL_GAM_MCMC_ST_KR.cpp
hrmerrill/SERR-2018-supp-code
fa091f7f3aba2af7a11f69c43cc1b4c144b95b61
[ "MIT" ]
null
null
null
#include <RcppArmadillo.h> // [[Rcpp::depends("RcppArmadillo")]] using namespace Rcpp; const double log2pi = std::log(2.0 * 3.14159265359); // MVN density. // [[Rcpp::export]] double lk_Chol_arma(arma::colvec x_, arma::colvec mu_, arma::mat Sigma_, bool logd = true){ int k = x_.n_rows; doubl...
35.322709
124
0.549515
[ "vector" ]
bf7841b09ff8671f2813458035ae4a735d5b0253
2,061
hpp
C++
tools/Vitis-AI-Runtime/VART/vart/trace/include/vitis/ai/payload.hpp
hito0512/Vitis-AI
996459fb96cb077ed2f7e789d515893b1cccbc95
[ "Apache-2.0" ]
1
2022-02-22T02:05:01.000Z
2022-02-22T02:05:01.000Z
tools/Vitis-AI-Runtime/VART/vart/trace/include/vitis/ai/payload.hpp
hito0512/Vitis-AI
996459fb96cb077ed2f7e789d515893b1cccbc95
[ "Apache-2.0" ]
null
null
null
tools/Vitis-AI-Runtime/VART/vart/trace/include/vitis/ai/payload.hpp
hito0512/Vitis-AI
996459fb96cb077ed2f7e789d515893b1cccbc95
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2021 Xilinx Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
26.766234
80
0.678797
[ "vector" ]
bf85b387bd66de2f604b965cdb58b050cf590500
1,382
cpp
C++
codeforces/Edu#62/B/s.cpp
qilip/ACMStudy
c4d6f31b01358ead4959c92f1fac59a3826f3f77
[ "CC-BY-3.0" ]
4
2020-02-02T08:34:46.000Z
2021-10-01T11:21:17.000Z
codeforces/Edu#62/B/s.cpp
qilip/ACMStudy
c4d6f31b01358ead4959c92f1fac59a3826f3f77
[ "CC-BY-3.0" ]
1
2021-09-04T14:03:50.000Z
2021-09-04T14:03:50.000Z
codeforces/Edu#62/B/s.cpp
qilip/ACMStudy
c4d6f31b01358ead4959c92f1fac59a3826f3f77
[ "CC-BY-3.0" ]
null
null
null
// #include <bits/stdc++.h> /* codeforces printf %Lf problem #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> */ #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <climits> #include <iostream> #include <iomanip> #include <algorithm> #include <string> #includ...
19.464789
47
0.465268
[ "vector" ]
bf8f1e979bd5b7ae3fb9845c37452f2f2e0311c2
22,412
cpp
C++
algorithms/src/LocalizationAndMapping/registration_localization/fast_gicp/thirdparty/nvbio/nvbio-aln-diff/nvbio-aln-diff.cpp
mfkiwl/GAAS
29ab17d3e8a4ba18edef3a57c36d8db6329fac73
[ "BSD-3-Clause" ]
2,111
2019-01-29T07:01:32.000Z
2022-03-29T06:48:14.000Z
algorithms/src/LocalizationAndMapping/registration_localization/fast_gicp/thirdparty/nvbio/nvbio-aln-diff/nvbio-aln-diff.cpp
mfkiwl/GAAS
29ab17d3e8a4ba18edef3a57c36d8db6329fac73
[ "BSD-3-Clause" ]
131
2019-02-18T10:56:18.000Z
2021-09-27T12:07:00.000Z
algorithms/src/LocalizationAndMapping/registration_localization/fast_gicp/thirdparty/nvbio/nvbio-aln-diff/nvbio-aln-diff.cpp
mfkiwl/GAAS
29ab17d3e8a4ba18edef3a57c36d8db6329fac73
[ "BSD-3-Clause" ]
421
2019-02-12T07:59:18.000Z
2022-03-27T05:22:01.000Z
/* * nvbio * Copyright (c) 2011-2014, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice,...
46.887029
161
0.555863
[ "vector" ]
bf94a746b83b41d1de6fe79623fc1195fc90a5f8
9,449
cpp
C++
TAO/examples/Callback_Quoter/Consumer_Handler.cpp
cflowe/ACE
5ff60b41adbe1772372d1a43bcc1f2726ff8f810
[ "DOC" ]
36
2015-01-10T07:27:33.000Z
2022-03-07T03:32:08.000Z
TAO/examples/Callback_Quoter/Consumer_Handler.cpp
cflowe/ACE
5ff60b41adbe1772372d1a43bcc1f2726ff8f810
[ "DOC" ]
2
2018-08-13T07:30:51.000Z
2019-02-25T03:04:31.000Z
TAO/examples/Callback_Quoter/Consumer_Handler.cpp
cflowe/ACE
5ff60b41adbe1772372d1a43bcc1f2726ff8f810
[ "DOC" ]
38
2015-01-08T14:12:06.000Z
2022-01-19T08:33:00.000Z
//============================================================================= /** * @file Consumer_Handler.cpp * * $Id: Consumer_Handler.cpp 93658 2011-03-28 11:22:55Z johnnyw $ * * Implementation of the Consumer_Handler class. * * * @author Kirthika Parameswaran <kirthika@cs.wustl.edu> */ //========...
26.920228
79
0.503969
[ "object" ]
bf954f164ddb0ac87f0fcb294adb9e5404a83356
1,808
cc
C++
src/ql/arch/architecture.cc
TariqTNO/OpenQL
8da802cae3a7b8c244edb4d3b74be9e60250528c
[ "Apache-2.0" ]
61
2019-04-24T08:25:41.000Z
2022-03-01T22:23:23.000Z
src/ql/arch/architecture.cc
TariqTNO/OpenQL
8da802cae3a7b8c244edb4d3b74be9e60250528c
[ "Apache-2.0" ]
141
2019-03-27T16:19:06.000Z
2022-03-03T10:11:47.000Z
src/ql/arch/architecture.cc
TariqTNO/OpenQL
8da802cae3a7b8c244edb4d3b74be9e60250528c
[ "Apache-2.0" ]
43
2019-03-27T13:40:45.000Z
2022-01-14T12:48:51.000Z
/** \file * Structure for retaining information about a particular variant of an * architecture. */ #include "ql/arch/architecture.h" namespace ql { namespace arch { /** * Constructs an architecture. This should only be used by the factory. */ Architecture::Architecture( const CInfoRef &family, const ut...
26.985075
89
0.739491
[ "object" ]
bf9823ce4e629db54fcd6b09af700a341053dfc8
241
cpp
C++
sum.cpp
Charlie110/cs160-project1
85bf0cff91c8367b807cb95763b4f5afd33e5e4c
[ "MIT" ]
null
null
null
sum.cpp
Charlie110/cs160-project1
85bf0cff91c8367b807cb95763b4f5afd33e5e4c
[ "MIT" ]
null
null
null
sum.cpp
Charlie110/cs160-project1
85bf0cff91c8367b807cb95763b4f5afd33e5e4c
[ "MIT" ]
null
null
null
#include "sum.hpp" #include <iostream> void SumVisitor::visitNode(Node* node) { // Hint: for this function, you will need to to use the sum // member of the object. // WRITEME sum+=node->value; node->visit_children(this); return; }
18.538462
60
0.688797
[ "object" ]
bf98522855e2a7c863594481cdbda1ec8ffa541b
1,506
cc
C++
src/interfaces/rtc_peer_connection/stats_observer.cc
elofun/node-webrtc
be63c8c007402c25962df9e30c9813ba70b8a17b
[ "Apache-2.0" ]
1,302
2018-11-26T03:29:51.000Z
2022-03-31T23:38:34.000Z
src/interfaces/rtc_peer_connection/stats_observer.cc
elofun/node-webrtc
be63c8c007402c25962df9e30c9813ba70b8a17b
[ "Apache-2.0" ]
311
2018-11-26T14:22:19.000Z
2022-03-28T09:47:38.000Z
src/interfaces/rtc_peer_connection/stats_observer.cc
elofun/node-webrtc
be63c8c007402c25962df9e30c9813ba70b8a17b
[ "Apache-2.0" ]
233
2018-11-26T18:08:11.000Z
2022-03-30T01:29:50.000Z
/* Copyright (c) 2019 The node-webrtc project authors. All rights reserved. * * Use of this source code is governed by a BSD-style license that can be found * in the LICENSE.md file in the root of the source tree. All contributing * project authors may be found in the AUTHORS file in the root of the source * tree....
37.65
98
0.713811
[ "vector" ]
bcc5f879bd43ac06c3c9d5e1f93602a2108f1db8
2,025
cpp
C++
codeforces/1313e.cpp
sogapalag/problems
0ea7d65448e1177f8b3f81124a82d187980d659c
[ "MIT" ]
1
2020-04-04T14:56:12.000Z
2020-04-04T14:56:12.000Z
codeforces/1313e.cpp
sogapalag/problems
0ea7d65448e1177f8b3f81124a82d187980d659c
[ "MIT" ]
null
null
null
codeforces/1313e.cpp
sogapalag/problems
0ea7d65448e1177f8b3f81124a82d187980d659c
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; // z[i] = len of lcp of s, s[i..]; lcp(longest common prefix) vector<int> z_fn(const string& s) { int n = s.size(); vector<int> z(n, 0); for (int i = 1, l = 0, r = 0; i < n; i++) { if (i <= r) z[i] = min(r-i+1, z[i-l]); while (i+z[i...
24.39759
67
0.421235
[ "vector" ]
bcca1b4bceb7f7e9d6aec48b701baf11014f43bd
2,297
hpp
C++
sdk/storage/azure-storage-blobs/test/perf/inc/azure/storage/blobs/test/upload_blob_test.hpp
RickWinter/azure-sdk-for-cpp
b4fe751310f53669a941e00aa93072f2d10a4eba
[ "MIT" ]
96
2020-03-19T07:49:39.000Z
2022-03-20T14:22:41.000Z
sdk/storage/azure-storage-blobs/test/perf/inc/azure/storage/blobs/test/upload_blob_test.hpp
RickWinter/azure-sdk-for-cpp
b4fe751310f53669a941e00aa93072f2d10a4eba
[ "MIT" ]
2,572
2020-03-18T22:54:53.000Z
2022-03-31T22:09:59.000Z
sdk/storage/azure-storage-blobs/test/perf/inc/azure/storage/blobs/test/upload_blob_test.hpp
RickWinter/azure-sdk-for-cpp
b4fe751310f53669a941e00aa93072f2d10a4eba
[ "MIT" ]
81
2020-03-19T09:42:00.000Z
2022-03-24T05:11:05.000Z
// Copyright (c) Microsoft Corporation. All rights reserved. // SPDX-License-Identifier: MIT /** * @file * @brief Test the performance of uploading a block blob. * */ #pragma once #include <azure/core/io/body_stream.hpp> #include <azure/perf.hpp> #include <azure/perf/random_stream.hpp> #include "azure/storage/b...
25.808989
90
0.626905
[ "vector" ]
bcd2b13f35da4e244a4a43ff7c8dc7eb81539b67
10,339
cc
C++
src/tools/rom_torevise/main_eigen_svd.cc
Zhang690683220/SHAW
867f0f02114cc339e657714cfaf17887d7e5caae
[ "BSD-3-Clause" ]
null
null
null
src/tools/rom_torevise/main_eigen_svd.cc
Zhang690683220/SHAW
867f0f02114cc339e657714cfaf17887d7e5caae
[ "BSD-3-Clause" ]
null
null
null
src/tools/rom_torevise/main_eigen_svd.cc
Zhang690683220/SHAW
867f0f02114cc339e657714cfaf17887d7e5caae
[ "BSD-3-Clause" ]
null
null
null
#include "../shared/constants.hpp" #include "../shared/meta/meta_eigen.hpp" #include "../shared/meta/meta_kokkos.hpp" #include "../shared/io/matrix_write.hpp" #include "../shared/io/matrix_read.hpp" #include "../shared/io/read_basis.hpp" #include "../shared/io/read_reference_state.hpp" #include "../shared/io/vector_wr...
29.968116
92
0.594448
[ "vector" ]
bcd4ffa61b6f83ebc1dfed6fc7f769f7aeedfa60
6,888
cpp
C++
library/dot_product/bench/main.cpp
r1nadeg/04_catboost
6755bbbd1496540b92ded57eea1974f64bef87c5
[ "Apache-2.0" ]
null
null
null
library/dot_product/bench/main.cpp
r1nadeg/04_catboost
6755bbbd1496540b92ded57eea1974f64bef87c5
[ "Apache-2.0" ]
null
null
null
library/dot_product/bench/main.cpp
r1nadeg/04_catboost
6755bbbd1496540b92ded57eea1974f64bef87c5
[ "Apache-2.0" ]
1
2018-08-06T14:13:12.000Z
2018-08-06T14:13:12.000Z
#include <library/dot_product/dot_product.h> #include <library/testing/benchmark/bench.h> #include <util/generic/singleton.h> #include <util/generic/vector.h> #include <contrib/libs/eigen/Eigen/Core> #include <util/random/fast.h> namespace { inline void RandomNumber(TReallyFastRng32 &rng, i8 &value) { value = ...
25.894737
95
0.714576
[ "vector" ]
bce07d7f6b8ccc91e5d2e768009982044f5c878f
14,719
cpp
C++
code/Population.cpp
johnosbb/Grammatical-Evolution
95b83a99bfb488281effdcd704f1802138f21dd0
[ "Apache-2.0" ]
null
null
null
code/Population.cpp
johnosbb/Grammatical-Evolution
95b83a99bfb488281effdcd704f1802138f21dd0
[ "Apache-2.0" ]
null
null
null
code/Population.cpp
johnosbb/Grammatical-Evolution
95b83a99bfb488281effdcd704f1802138f21dd0
[ "Apache-2.0" ]
null
null
null
// Genome #include <fstream.h> #include "Population.hpp" #include "defines.h" #include "string.h" #include "Random.hpp" #include "converter.hpp" #include "ge.hpp" #include <string.h> #include <stdio.h> #include <iostream.h> #include <vector> #include <assert.h> #include "Configuration.hpp" #include "Results.hpp" #inclu...
24.090016
216
0.662069
[ "vector" ]
bcf3b54840e706276c8d70ffc442f4e862f7e785
50,638
cpp
C++
src/gui/widgets.cpp
kabousvlieg/NUC-with-image-stab
1648cfa12f28223497b164ce7456ef493269ccda
[ "MIT" ]
null
null
null
src/gui/widgets.cpp
kabousvlieg/NUC-with-image-stab
1648cfa12f28223497b164ce7456ef493269ccda
[ "MIT" ]
null
null
null
src/gui/widgets.cpp
kabousvlieg/NUC-with-image-stab
1648cfa12f28223497b164ce7456ef493269ccda
[ "MIT" ]
null
null
null
/* * widgets.cpp * * Created on: Mar 8, 2017 * Author: kobus */ #include <boost/thread/pthread/thread_data.hpp> #include "widgets.h" // ---------------------------------------------------------------------------- // private classes // -----------------------------------------------------------------------...
49.547945
162
0.739129
[ "object" ]
bcf528cd0bff83721607ea1741684131c2002736
730
cpp
C++
software/zynq/SoundComponents/src/ramp/Ramp.cpp
EPiCS/soundgates
a6014d6a68fa209703d749ffe21a1e58b9279d30
[ "MIT" ]
null
null
null
software/zynq/SoundComponents/src/ramp/Ramp.cpp
EPiCS/soundgates
a6014d6a68fa209703d749ffe21a1e58b9279d30
[ "MIT" ]
1
2017-04-10T10:57:53.000Z
2017-04-10T10:57:53.000Z
software/zynq/SoundComponents/src/ramp/Ramp.cpp
EPiCS/soundgates
a6014d6a68fa209703d749ffe21a1e58b9279d30
[ "MIT" ]
3
2016-09-12T14:08:20.000Z
2021-03-22T20:07:34.000Z
/* * ADSRSoundComponent.cpp * * Created on: Dec 10, 2013 * Author: lukas */ #include "Ramp.h" #include "impl/Ramp_SW.h" #include "impl/Ramp_HW.h" /* Define component name */ DEFINE_COMPONENTNAME(Ramp, "ramp") EXPORT_SOUNDCOMPONENT_MIXED_IMPL(Ramp) Ramp::Ramp(std::vector<std::string> params) : SoundCompon...
23.548387
74
0.713699
[ "vector" ]
4c04a93fb69cb64630b5e1ce6ac805325bf9d77e
8,302
cpp
C++
Software/dczia26_final/dczia26_led.cpp
ReanimationXP/Defcon26-Badge
b3add39c1594576941752b8bc0959bf6aa0d143a
[ "Unlicense" ]
null
null
null
Software/dczia26_final/dczia26_led.cpp
ReanimationXP/Defcon26-Badge
b3add39c1594576941752b8bc0959bf6aa0d143a
[ "Unlicense" ]
null
null
null
Software/dczia26_final/dczia26_led.cpp
ReanimationXP/Defcon26-Badge
b3add39c1594576941752b8bc0959bf6aa0d143a
[ "Unlicense" ]
null
null
null
// NeoPixelFunFadeInOut // This example will randomly pick a color and fade all pixels to that color, then // it will fade them to black and restart over // // This example demonstrates the use of a single animation channel to animate all // the pixels at once. // #include "dczia26_led.h" #include "dczia26_keypad.h" ...
29.335689
126
0.681523
[ "object" ]