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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5b75558839cebb66ae384088a86e15e9209ebfa5 | 8,715 | cpp | C++ | deprecate/tools/fpzip/src/write.cpp | novatig/CubismUP_3D_old | 47f7dd5941d81853cfe879385080c7c2c68a9b71 | [
"MIT"
] | 2 | 2020-06-12T10:06:59.000Z | 2021-04-22T00:44:27.000Z | deprecate/tools/fpzip/src/write.cpp | novatig/CubismUP_3D_old | 47f7dd5941d81853cfe879385080c7c2c68a9b71 | [
"MIT"
] | null | null | null | deprecate/tools/fpzip/src/write.cpp | novatig/CubismUP_3D_old | 47f7dd5941d81853cfe879385080c7c2c68a9b71 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstdlib>
#include "pcencoder.h"
#include "rcqsmodel.h"
#include "front.h"
#include "fpzip.h"
#include "codec.h"
#include "write.h"
#if FPZIP_FP == FPZIP_FP_FAST || FPZIP_FP == FPZIP_FP_SAFE
// compress 3D array at specified precision using floating-point arithmetic
template <typename T, uns... | 28.857616 | 75 | 0.5821 | [
"3d"
] |
5b7aa39a312539ca52d3e6b3b2389f028f3ee88a | 1,807 | cpp | C++ | algorithm-c++/STL_Test/algorithm/modifiedSeqAlgo.cpp | mingrongchen/Algorithm | 5ad264f0e199215b9b4f0f15f456d2727c5299bb | [
"MIT"
] | null | null | null | algorithm-c++/STL_Test/algorithm/modifiedSeqAlgo.cpp | mingrongchen/Algorithm | 5ad264f0e199215b9b4f0f15f456d2727c5299bb | [
"MIT"
] | null | null | null | algorithm-c++/STL_Test/algorithm/modifiedSeqAlgo.cpp | mingrongchen/Algorithm | 5ad264f0e199215b9b4f0f15f456d2727c5299bb | [
"MIT"
] | null | null | null | //
// Created by MingR on 2021/4/15.
//
#include <iostream>
#include <random>
#include <ctime>
#include <vector>
#include <algorithm>
using namespace std;
typedef struct info {
int age;
int gender;
} Info, *PInfo;
static void test();
template <class T>
static void FillValue (T& vect, int ... | 18.822917 | 68 | 0.516879 | [
"vector"
] |
5b7b82ad2a0f41e7ff0c86f216c6c78941099ddd | 1,973 | hpp | C++ | src/mutex/Mutex.hpp | phisikus/monitor | cf74b299111d07c1dae6a14d79a06154811c8868 | [
"BSD-3-Clause"
] | 1 | 2016-06-08T12:27:26.000Z | 2016-06-08T12:27:26.000Z | src/mutex/Mutex.hpp | phisikus/monitor | cf74b299111d07c1dae6a14d79a06154811c8868 | [
"BSD-3-Clause"
] | null | null | null | src/mutex/Mutex.hpp | phisikus/monitor | cf74b299111d07c1dae6a14d79a06154811c8868 | [
"BSD-3-Clause"
] | null | null | null | #ifndef INCLUDE_MUTEX_HPP
#define INCLUDE_MUTEX_HPP
#include "../message/Message.hpp"
#include <vector>
#include <algorithm>
#include <list>
#include <mutex>
#include <stdexcept>
#include <condition_variable>
using namespace std;
class Mutex
{
public:
int id; // Mutex ID
bool requesting = false; // It tells if th... | 43.844444 | 222 | 0.760264 | [
"vector"
] |
5b83a3a212cf6d29ffaa157fc8d17467953d5f1b | 1,105 | cpp | C++ | p209_Minimum_Size_Subarray_Sum/p209.cpp | Song1996/Leetcode | ecb0a2de67a57b899a12d0cb18272fb37dbf3ceb | [
"MIT"
] | null | null | null | p209_Minimum_Size_Subarray_Sum/p209.cpp | Song1996/Leetcode | ecb0a2de67a57b899a12d0cb18272fb37dbf3ceb | [
"MIT"
] | null | null | null | p209_Minimum_Size_Subarray_Sum/p209.cpp | Song1996/Leetcode | ecb0a2de67a57b899a12d0cb18272fb37dbf3ceb | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
#include <vector>
#include <stack>
#include <map>
#include <string>
#include <assert.h>
#include <stdlib.h>
#include <fstream>
#include <algorithm>
using namespace std;
class Solution {
public:
int minSubArrayLen(int s, vector<int>& nums) {
if(nums.empty()) return 0;
... | 25.697674 | 71 | 0.489593 | [
"vector"
] |
5b873e0aa71b6132d9ce74765d0c881dc31b9ded | 12,169 | cpp | C++ | tests/http_server_filter_tests.cpp | dmlys/netlib | 81627e5f9bea8f1225b1083efa66a8b5dcb9c514 | [
"BSL-1.0"
] | 1 | 2018-05-14T13:46:59.000Z | 2018-05-14T13:46:59.000Z | tests/http_server_filter_tests.cpp | dmlys/netlib | 81627e5f9bea8f1225b1083efa66a8b5dcb9c514 | [
"BSL-1.0"
] | null | null | null | tests/http_server_filter_tests.cpp | dmlys/netlib | 81627e5f9bea8f1225b1083efa66a8b5dcb9c514 | [
"BSL-1.0"
] | null | null | null | #include <ext/net/http/http_server.hpp>
#include <ext/net/http/zlib_filter.hpp>
#include <ext/stream_filtering.hpp>
#include <ext/stream_filtering/zlib.hpp>
#include <ext/base64.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/test/data/test_case.hpp>
#include <boost/test/data/dataset.hpp>
#include "test_fil... | 30.046914 | 97 | 0.741556 | [
"vector"
] |
5b8acc386b147593c33629ed21f917ba25e8ebff | 14,378 | cc | C++ | cartographer/evaluation/trajectory_builder_evaluation.cc | tu-darmstadt-ros-pkg/cartographer | ddbc9464cfc80e7d0b3bd32c068d6e14443cabf4 | [
"Apache-2.0"
] | 9 | 2017-05-04T06:57:07.000Z | 2021-07-18T17:59:46.000Z | cartographer/evaluation/trajectory_builder_evaluation.cc | tu-darmstadt-ros-pkg/hectorgrapher | f04b15b2dbd31004d99d5e5584519416d11ac420 | [
"Apache-2.0"
] | 1 | 2020-09-23T10:41:32.000Z | 2020-09-23T10:41:32.000Z | cartographer/evaluation/trajectory_builder_evaluation.cc | tu-darmstadt-ros-pkg/cartographer | ddbc9464cfc80e7d0b3bd32c068d6e14443cabf4 | [
"Apache-2.0"
] | 3 | 2019-09-01T05:47:22.000Z | 2021-05-27T07:03:44.000Z | #include "cartographer/mapping/internal/3d/local_trajectory_builder_3d.h"
#include <memory>
#include <random>
#include "matplotlibcpp.h"
#include "Eigen/Core"
#include "cartographer/common/lua_parameter_dictionary_test_helpers.h"
#include "cartographer/common/time.h"
#include "cartographer/evaluation/grid_drawer.h"
... | 40.615819 | 138 | 0.588538 | [
"vector",
"transform",
"3d"
] |
5b9286bcc2a95ed31e6de6c9ceb9148ae9b648cb | 31,780 | tcc | C++ | seqsvr/proto/gen-cpp2/seqsvr_types.tcc | jjzhang166/seqsvr | 34ba38bae75033805246b3f7d62cda082c36ec20 | [
"Apache-2.0"
] | 103 | 2016-12-09T11:15:52.000Z | 2020-10-31T07:51:10.000Z | seqsvr/proto/gen-cpp2/seqsvr_types.tcc | jjzhang166/seqsvr | 34ba38bae75033805246b3f7d62cda082c36ec20 | [
"Apache-2.0"
] | 7 | 2017-01-06T09:28:14.000Z | 2017-11-25T10:44:16.000Z | seqsvr/proto/gen-cpp2/seqsvr_types.tcc | jjzhang166/seqsvr | 34ba38bae75033805246b3f7d62cda082c36ec20 | [
"Apache-2.0"
] | 31 | 2017-03-09T06:48:32.000Z | 2020-11-03T04:19:40.000Z | /**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#pragma once
#include "seqsvr_types.h"
#include <thrift/lib/cpp/TApplicationException.h>
#include <folly/io/IOBuf.h>
#include <folly/io/IOBufQueue.h>
#include <thrift/lib/cpp/transport/THeader.h>
//... | 34.319654 | 222 | 0.652517 | [
"vector"
] |
5b9dbee59158f6554e952f3bfd7d96a41c3c01c9 | 793 | cc | C++ | cpp/14.cc | arkbriar/hackerrank-projecteuler | e71a88f5546c69a0d681bb6f96524fc0c12d3d01 | [
"MIT"
] | null | null | null | cpp/14.cc | arkbriar/hackerrank-projecteuler | e71a88f5546c69a0d681bb6f96524fc0c12d3d01 | [
"MIT"
] | null | null | null | cpp/14.cc | arkbriar/hackerrank-projecteuler | e71a88f5546c69a0d681bb6f96524fc0c12d3d01 | [
"MIT"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <climits>
#include <vector>
#include <iostream>
#include <algorithm>
#include <unordered_map>
#include <stack>
using namespace std;
const int N = 5e6;
int lt[N + 1];
int res[N + 1];
int len(long n) {
if (lt[n] > 0) return lt[n];
int res = 0;
long x = n;
... | 14.685185 | 40 | 0.432535 | [
"vector"
] |
5b9e979c01e841f983b46fb4762346c2a630d6c8 | 8,159 | cpp | C++ | src/kDataFrames/kDataFramePHMAP.cpp | dib-lab/kProcessor | 8a3a48e51f3d3f73572aef21828a26f7a7d2e6ee | [
"BSD-3-Clause"
] | 8 | 2018-10-12T11:02:55.000Z | 2021-08-29T14:46:02.000Z | src/kDataFrames/kDataFramePHMAP.cpp | dib-lab/kProcessor | 8a3a48e51f3d3f73572aef21828a26f7a7d2e6ee | [
"BSD-3-Clause"
] | 79 | 2019-03-16T15:31:43.000Z | 2022-03-21T18:56:55.000Z | src/kDataFrames/kDataFramePHMAP.cpp | dib-lab/kProcessor | 8a3a48e51f3d3f73572aef21828a26f7a7d2e6ee | [
"BSD-3-Clause"
] | 2 | 2019-06-21T11:48:11.000Z | 2021-04-09T00:47:54.000Z | #include "kDataFrame.hpp"
#include "parallel_hashmap/phmap_dump.h"
#include <iostream>
#include <fstream>
#include "Utils/kmer.h"
/*
*****************************
*** kDataFramePHMAPIterator ***
*****************************
*/
kDataFramePHMAPIterator::kDataFramePHMAPIterator(flat_hash_map<uint64_t, uint64_t>::it... | 28.527972 | 121 | 0.679005 | [
"vector"
] |
5ba05cdc479e0d81825433100ab66e570865904c | 528 | cc | C++ | src/single_number/single_number.cc | cuprumz/LeetCode | 5c57b0ab45e691e8d7750f531b29a25a19472d23 | [
"MIT"
] | null | null | null | src/single_number/single_number.cc | cuprumz/LeetCode | 5c57b0ab45e691e8d7750f531b29a25a19472d23 | [
"MIT"
] | null | null | null | src/single_number/single_number.cc | cuprumz/LeetCode | 5c57b0ab45e691e8d7750f531b29a25a19472d23 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int singleNumber(vector<int> &nums);
};
int Solution::singleNumber(vector<int> &nums) {
int res = 0;
for (auto it = nums.begin(); it != nums.end(); it++) {
res ^= *it;
}
return res;
}
int main(int argc, ... | 15.085714 | 58 | 0.560606 | [
"vector"
] |
5ba57f4f329978d4bf5f0e51a38b6a51e2d41a87 | 574 | hpp | C++ | Iterator/Iterator.hpp | Yescafe/pattern_demo | b87d8d588683773cd37efff0e9e12fc70b13f187 | [
"MIT"
] | 1 | 2020-07-11T04:36:14.000Z | 2020-07-11T04:36:14.000Z | Iterator/Iterator.hpp | Yescafe/pattern_demo | b87d8d588683773cd37efff0e9e12fc70b13f187 | [
"MIT"
] | null | null | null | Iterator/Iterator.hpp | Yescafe/pattern_demo | b87d8d588683773cd37efff0e9e12fc70b13f187 | [
"MIT"
] | null | null | null | #ifndef _ITERATOR_HPP_
#define _ITERATOR_HPP_
class Aggregate;
using Object = int;
class Iterator {
public:
virtual ~Iterator();
virtual void First() = 0;
virtual void Next() = 0;
virtual bool IsDone() = 0;
virtual Object CurrentItem() = 0;
protected:
Iterator();
};
class ConcreteIterator : p... | 17.9375 | 49 | 0.649826 | [
"object"
] |
5bb53d4e1d9cd4f8f9363638c566cdfd56c84cf9 | 17,463 | cpp | C++ | extlibs/cpp-utils/src/utils/sys.cpp | Krozark/SFML-book | 397dd3dc0c73b694d4b5c117e974c7ebdb885572 | [
"BSD-2-Clause"
] | 75 | 2015-01-18T21:29:03.000Z | 2022-02-09T14:11:05.000Z | extlibs/cpp-utils/src/utils/sys.cpp | Krozark/SFML-book | 397dd3dc0c73b694d4b5c117e974c7ebdb885572 | [
"BSD-2-Clause"
] | 7 | 2015-03-12T10:41:55.000Z | 2020-11-23T11:15:58.000Z | extlibs/cpp-utils/src/utils/sys.cpp | Krozark/SFML-book | 397dd3dc0c73b694d4b5c117e974c7ebdb885572 | [
"BSD-2-Clause"
] | 33 | 2015-12-01T07:34:46.000Z | 2022-03-23T03:37:42.000Z | #include <utils/sys.hpp>
#include <utils/string.hpp>
#include <stdexcept>
#ifdef _WIN32
#include <windows.h>
char *realpath(const char *path, char resolved_path[PATH_MAX]);
#elif __unix || __unix__
#include <unistd.h>
#include <ftw.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <dire... | 27.328638 | 110 | 0.433431 | [
"vector"
] |
5bb7bdb5b848b99e197eb6e0de988ca8f3c2238a | 268 | cpp | C++ | src/encrypt.cpp | Anmol-Singh-Jaggi/File-Locker | 2af028e6371c0af01d3c733b82c4982af919052b | [
"MIT"
] | 14 | 2015-09-29T08:56:01.000Z | 2021-08-16T04:52:11.000Z | src/encrypt.cpp | Anmol-Singh-Jaggi/File-Locker | 2af028e6371c0af01d3c733b82c4982af919052b | [
"MIT"
] | null | null | null | src/encrypt.cpp | Anmol-Singh-Jaggi/File-Locker | 2af028e6371c0af01d3c733b82c4982af919052b | [
"MIT"
] | 6 | 2015-09-30T18:20:42.000Z | 2022-01-05T04:14:17.000Z | #include "encrypt.h"
#include "common.h"
using namespace std;
void Encrypt( vector<unsigned char>& plainText, const string& key )
{
int keyInt = ToInt( key );
for ( size_t i = 0; i < plainText.size(); i++ )
{
plainText[i] = ( plainText[i] + keyInt ) % 128;
}
}
| 20.615385 | 67 | 0.634328 | [
"vector"
] |
5bbee823c958739ef81e4f737187559a0caf2520 | 3,744 | cpp | C++ | src/treent/GuiSystem.cpp | pourpluie/Pockets-team | cbae274cdabf2896ab7ecf113bccfbd005916ea7 | [
"BSD-2-Clause"
] | null | null | null | src/treent/GuiSystem.cpp | pourpluie/Pockets-team | cbae274cdabf2896ab7ecf113bccfbd005916ea7 | [
"BSD-2-Clause"
] | null | null | null | src/treent/GuiSystem.cpp | pourpluie/Pockets-team | cbae274cdabf2896ab7ecf113bccfbd005916ea7 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2014 David Wicks, sansumbrella.com
* 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 l... | 27.529412 | 103 | 0.703793 | [
"object"
] |
5bc279e223ab5e57878b8627f66517116ee3c53d | 553 | cpp | C++ | leetcode/Algorithms/PascalsTriangleII/solution.cpp | hxdone/puzzles | b729bce8a61f77ad7cbb70957e00c5ade9a0a35f | [
"Apache-2.0"
] | 2 | 2015-07-03T03:05:30.000Z | 2015-07-03T03:05:31.000Z | leetcode/Algorithms/PascalsTriangleII/solution.cpp | hxdone/puzzles | b729bce8a61f77ad7cbb70957e00c5ade9a0a35f | [
"Apache-2.0"
] | null | null | null | leetcode/Algorithms/PascalsTriangleII/solution.cpp | hxdone/puzzles | b729bce8a61f77ad7cbb70957e00c5ade9a0a35f | [
"Apache-2.0"
] | null | null | null | // by hxdone
class Solution {
public:
vector<int> getRow(int rowIndex) {
vector<int> cur_row;
if (rowIndex < 0) return cur_row;
vector<int> last_row;
last_row.push_back(1);
for (int i = 1; i <= rowIndex; ++i) {
cur_row.clear();
cur_row.push_back(1... | 26.333333 | 61 | 0.509946 | [
"vector"
] |
5bc3e3b5eebb2371b35cf4aa5d5ea2f2805ff35b | 4,550 | hpp | C++ | inc/manipulator.hpp | shinolab/dynamic-manipulation | d43bae688cecf87e15605ed6a9dbc80a782d72fc | [
"MIT"
] | null | null | null | inc/manipulator.hpp | shinolab/dynamic-manipulation | d43bae688cecf87e15605ed6a9dbc80a782d72fc | [
"MIT"
] | null | null | null | inc/manipulator.hpp | shinolab/dynamic-manipulation | d43bae688cecf87e15605ed6a9dbc80a782d72fc | [
"MIT"
] | null | null | null | #pragma once
#include <fstream>
#include "QPSolver.h"
#include "arfModel.hpp"
#include "FloatingObject.hpp"
#include "tracker.hpp"
#include "autd3.hpp"
namespace dynaman {
class Manipulator {
public:
Manipulator() {}
virtual ~Manipulator() {}
Manipulator(const Manipulator& m) = delete;
Manipulator operator... | 33.211679 | 112 | 0.737582 | [
"vector"
] |
5bcf23e7e8d1078ac9d085b947557eec7490b030 | 815 | cpp | C++ | src/shaman/tagged/global_vars.cpp | nestordemeure/Shaman | 39a6d6d658535208fbcb255f37f6eaf1f0c02ca1 | [
"Apache-2.0"
] | 4 | 2021-04-16T23:32:28.000Z | 2021-11-23T10:02:01.000Z | src/shaman/tagged/global_vars.cpp | nestordemeure/shaman | 39a6d6d658535208fbcb255f37f6eaf1f0c02ca1 | [
"Apache-2.0"
] | null | null | null | src/shaman/tagged/global_vars.cpp | nestordemeure/shaman | 39a6d6d658535208fbcb255f37f6eaf1f0c02ca1 | [
"Apache-2.0"
] | null | null | null | #include "global_vars.h"
// used to model the stacktrace
const Tag ShamanGlobals::tagUntagged = 0;
std::vector<std::string> ShamanGlobals::tagDecryptor = std::vector<std::string>({"untagged_block"}); // array that associate with tags (indexes) with block-names
std::unordered_map<std::string, Tag> ShamanGlobals::nameEn... | 58.214286 | 167 | 0.792638 | [
"vector",
"model"
] |
5bdc7765ea20f90a6152c6db034df9c05c465450 | 20,858 | cpp | C++ | Source/CLI/CommandLine_Parser.cpp | g-maxime/MediaConch_SourceCode | 54208791ca0b6eb3f7bffd17f67e236777f69d89 | [
"BSD-2-Clause"
] | null | null | null | Source/CLI/CommandLine_Parser.cpp | g-maxime/MediaConch_SourceCode | 54208791ca0b6eb3f7bffd17f67e236777f69d89 | [
"BSD-2-Clause"
] | null | null | null | Source/CLI/CommandLine_Parser.cpp | g-maxime/MediaConch_SourceCode | 54208791ca0b6eb3f7bffd17f67e236777f69d89 | [
"BSD-2-Clause"
] | null | null | null | /* Copyright (c) MediaArea.net SARL. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the License.html file in the root of the source tree.
*/
//---------------------------------------------------------------------------
#include <string>
#includ... | 28.690509 | 120 | 0.469892 | [
"vector",
"transform"
] |
5bde3ca78c807d9a14003fd8d471ee5a1a05b090 | 3,659 | cpp | C++ | src/test/test_assignments.cpp | alexey-milovidov/robin-hood-hashing | c57331b8a086cc427fae9aabedbdbb13eb72d69e | [
"MIT"
] | null | null | null | src/test/test_assignments.cpp | alexey-milovidov/robin-hood-hashing | c57331b8a086cc427fae9aabedbdbb13eb72d69e | [
"MIT"
] | null | null | null | src/test/test_assignments.cpp | alexey-milovidov/robin-hood-hashing | c57331b8a086cc427fae9aabedbdbb13eb72d69e | [
"MIT"
] | 1 | 2022-02-09T06:50:44.000Z | 2022-02-09T06:50:44.000Z | #include "test_base.h"
#include <vector>
// creates a map with some data in it
template <class M>
M createMap(int numElements) {
M m;
for (int i = 0; i < numElements; ++i) {
m[static_cast<typename M::key_type>((i + 123) * 7)] =
static_cast<typename M::mapped_type>(i);
}
return m;
}... | 19.462766 | 74 | 0.408582 | [
"vector"
] |
5bdf8e0ed954504226dddb1bfd5e2e6a6d4d8b51 | 3,672 | cpp | C++ | src/core/DetectorExtractor.cpp | liyinnbw/MSFM | b846816594851c84094078586047a0d1f200f166 | [
"MIT"
] | 5 | 2020-02-02T23:43:59.000Z | 2021-12-10T09:42:05.000Z | src/core/DetectorExtractor.cpp | projectcs2103t/MSFM | b846816594851c84094078586047a0d1f200f166 | [
"MIT"
] | null | null | null | src/core/DetectorExtractor.cpp | projectcs2103t/MSFM | b846816594851c84094078586047a0d1f200f166 | [
"MIT"
] | 1 | 2020-02-12T13:24:13.000Z | 2020-02-12T13:24:13.000Z | /*
* Unified API for various feature detector/extractors
* currently only ORB is usable
*/
#include "DetectorExtractor.h"
// #include <brisk/brisk.h>
// #include <brisk/scale-space-feature-detector.h>
// #include <brisk/harris-score-calculator.h>
#include <opencv2/imgproc/imgproc.hpp>
DetectorExtractor& DetectorEx... | 36.72 | 154 | 0.654684 | [
"vector"
] |
5be383b22814a77072a2eca07aad933699bf316e | 7,888 | cc | C++ | lib/k2hcryptcommon.cc | hiwakaba/k2hash | 154257ccc3e0aaa5cefdb0361a354ec19b53616d | [
"MIT"
] | 38 | 2016-12-09T01:44:43.000Z | 2021-06-24T01:33:17.000Z | lib/k2hcryptcommon.cc | hiwakaba/k2hash | 154257ccc3e0aaa5cefdb0361a354ec19b53616d | [
"MIT"
] | 6 | 2016-12-09T05:38:38.000Z | 2020-11-16T05:20:30.000Z | lib/k2hcryptcommon.cc | hiwakaba/k2hash | 154257ccc3e0aaa5cefdb0361a354ec19b53616d | [
"MIT"
] | 18 | 2016-12-09T01:48:33.000Z | 2021-01-20T06:33:00.000Z | /*
* K2HASH
*
* Copyright 2018 Yahoo Japan Corporation.
*
* K2HASH is key-valuew store base libraries.
* K2HASH is made for the purpose of the construction of
* original KVS system and the offer of the library.
* The characteristic is this KVS library which Key can
* layer. And can support multi-processing and... | 30.8125 | 151 | 0.659229 | [
"vector"
] |
5be5820f6b21d47799725b60d466a24e45423e68 | 1,170 | cpp | C++ | Cpp/data_structure/union_find.cpp | NatsubiSogan/comp_library | 9f06d947951db40e051bd506fd8722fb75c3688b | [
"Apache-2.0"
] | 2 | 2021-09-05T13:17:01.000Z | 2021-09-05T13:17:06.000Z | Cpp/data_structure/union_find.cpp | NatsubiSogan/comp_library | 9f06d947951db40e051bd506fd8722fb75c3688b | [
"Apache-2.0"
] | null | null | null | Cpp/data_structure/union_find.cpp | NatsubiSogan/comp_library | 9f06d947951db40e051bd506fd8722fb75c3688b | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cassert>
#include <vector>
struct union_find {
public:
union_find(int size) {
n = size;
parent.resize(n);
rank.resize(n);
for (int i = 0; i < n; i++) {
parent[i] = i;
rank[i] = 1;
}
cnt = n;
}
int find(int x) {
assert(0 <= x && x < n);
if (parent[x]... | 17.205882 | 50 | 0.477778 | [
"vector"
] |
5bea96843b026cba4f7a582b31d15d03e6c50b3e | 5,485 | cpp | C++ | DynacoeSrc/srcs/Dynacoe/Decoders/DecodeOGG.cpp | jcorks/Dynacoe | 2d606620e8072d8ae76aa2ecdc31512ac90362d9 | [
"Apache-2.0",
"MIT",
"Libpng",
"FTL",
"BSD-3-Clause"
] | 1 | 2015-11-06T18:10:11.000Z | 2015-11-06T18:10:11.000Z | DynacoeSrc/srcs/Dynacoe/Decoders/DecodeOGG.cpp | jcorks/Dynacoe | 2d606620e8072d8ae76aa2ecdc31512ac90362d9 | [
"Apache-2.0",
"MIT",
"Libpng",
"FTL",
"BSD-3-Clause"
] | 8 | 2018-01-25T03:54:32.000Z | 2018-09-17T01:55:35.000Z | DynacoeSrc/srcs/Dynacoe/Decoders/DecodeOGG.cpp | jcorks/Dynacoe | 2d606620e8072d8ae76aa2ecdc31512ac90362d9 | [
"Apache-2.0",
"MIT",
"Libpng",
"FTL",
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2018, Johnathan Corkery. (jcorkery@umich.edu)
All rights reserved.
This file is part of the Dynacoe project (https://github.com/jcorks/Dynacoe)
Dynacoe was released under the MIT License, as detailed below.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softw... | 26.370192 | 113 | 0.618414 | [
"vector"
] |
5bf05d8404d3b732576275ad7062590b0f93fdbd | 1,939 | cpp | C++ | trick_source/sim_services/RealtimeInjector/RtiExec.cpp | gilbertguoze/trick | f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21 | [
"NASA-1.3"
] | 647 | 2015-05-07T16:08:16.000Z | 2022-03-30T02:33:21.000Z | trick_source/sim_services/RealtimeInjector/RtiExec.cpp | gilbertguoze/trick | f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21 | [
"NASA-1.3"
] | 995 | 2015-04-30T19:44:31.000Z | 2022-03-31T20:14:44.000Z | trick_source/sim_services/RealtimeInjector/RtiExec.cpp | gilbertguoze/trick | f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21 | [
"NASA-1.3"
] | 251 | 2015-05-15T09:24:34.000Z | 2022-03-22T20:39:05.000Z |
#include "trick/RtiExec.hh"
#include "trick/message_proto.h"
#include "trick/exec_proto.h"
Trick::RtiExec::RtiExec() :
frame_multiple(1) ,
frame_offset(0) ,
debug(false) {
pthread_mutex_init(&list_mutex, NULL) ;
}
Trick::RtiExec::~RtiExec() {}
/**
@details
-# lock the file_list mutex
-# add the new list to t... | 26.202703 | 91 | 0.615781 | [
"vector"
] |
5bf8efa6ceeb67948bbf03b6bcaa55125fc79e9a | 856 | cpp | C++ | _includes/leet051/leet051_2.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | null | null | null | _includes/leet051/leet051_2.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | 8 | 2019-12-19T04:46:05.000Z | 2022-02-26T03:45:22.000Z | _includes/leet051/leet051_2.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<string>> solveNQueens(int n) {
vector<vector<string>> res;
vector<string> path;
backtracking(res,path,n,0,0,0);
return res;
}
void backtracking(vector<vector<string>>& res,vector<string>& path,int n, int col,int diag1,int diag2){
... | 32.923077 | 107 | 0.424065 | [
"vector"
] |
750277c2fecac631c34cc514ffec0341386e4dbc | 40,616 | cpp | C++ | applications/projects/Modeler/lib/GraphModeler.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | applications/projects/Modeler/lib/GraphModeler.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | applications/projects/Modeler/lib/GraphModeler.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | /******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH *
* *
... | 32.082148 | 183 | 0.597917 | [
"object",
"vector"
] |
7504d37a5dc13707cf2960f276a477ff9829f1c5 | 5,540 | cpp | C++ | VFS/RenderPass/Clipmap/CopyAlpha.cpp | Snowapril/VFS | a366f519c1382cfa2669b56346b67737513d6099 | [
"MIT"
] | 2 | 2022-02-14T16:34:39.000Z | 2022-02-25T06:11:42.000Z | VFS/RenderPass/Clipmap/CopyAlpha.cpp | Snowapril/vk_voxel_cone_tracing | a366f519c1382cfa2669b56346b67737513d6099 | [
"MIT"
] | null | null | null | VFS/RenderPass/Clipmap/CopyAlpha.cpp | Snowapril/vk_voxel_cone_tracing | a366f519c1382cfa2669b56346b67737513d6099 | [
"MIT"
] | null | null | null | // Author : Jihong Shin (snowapril)
#include <pch.h>
#include <RenderPass/Clipmap/CopyAlpha.h>
#include <VulkanFramework/Device.h>
#include <VulkanFramework/Descriptors/DescriptorPool.h>
#include <VulkanFramework/Descriptors/DescriptorSet.h>
#include <VulkanFramework/Descriptors/DescriptorSetLayout.h>
#include <Vulkan... | 37.687075 | 119 | 0.792419 | [
"vector"
] |
7505668e78ec6f000a7ecb78da72bf5de890913b | 13,128 | cc | C++ | precompiled/serialize.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | null | null | null | precompiled/serialize.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | null | null | null | precompiled/serialize.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | null | null | null | #include "precompiled/serialize.h"
#include "base/macros.h"
#include "ir/value/char.h"
#include "type/array.h"
#include "type/enum.h"
#include "type/flags.h"
#include "type/function.h"
#include "type/generic.h"
#include "type/generic_function.h"
#include "type/opaque.h"
#include "type/pointer.h"
#include "type/primiti... | 36.568245 | 80 | 0.638178 | [
"vector"
] |
7507d99b07f311b11597d240a0993c05b3e2626f | 2,058 | hh | C++ | include/urbi/object/event-handler.hh | jcbaillie/urbi | fb17359b2838cdf8d3c0858abb141e167a9d4bdb | [
"BSD-3-Clause"
] | 16 | 2016-05-10T05:50:58.000Z | 2021-10-05T22:16:13.000Z | include/urbi/object/event-handler.hh | jcbaillie/urbi | fb17359b2838cdf8d3c0858abb141e167a9d4bdb | [
"BSD-3-Clause"
] | 7 | 2016-09-05T10:08:33.000Z | 2019-02-13T10:51:07.000Z | include/urbi/object/event-handler.hh | jcbaillie/urbi | fb17359b2838cdf8d3c0858abb141e167a9d4bdb | [
"BSD-3-Clause"
] | 15 | 2015-01-28T20:27:02.000Z | 2021-09-28T19:26:08.000Z | /*
* Copyright (C) 2010-2012, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
#ifndef URBI_OBJECT_EVENT_I... | 26.727273 | 73 | 0.661808 | [
"object",
"vector",
"model"
] |
750a5402b258deeb60fde35e7d20ec2a4dc58a9a | 4,278 | cpp | C++ | demo/cpp/rapid.cpp | berak/opencv_smallfry | fd8f64980dff0527523791984d6cb3dfcd2bc9bc | [
"BSD-3-Clause"
] | 57 | 2015-02-16T06:43:24.000Z | 2022-03-16T06:21:36.000Z | demo/cpp/rapid.cpp | berak/opencv_smallfry | fd8f64980dff0527523791984d6cb3dfcd2bc9bc | [
"BSD-3-Clause"
] | 4 | 2016-03-08T09:51:09.000Z | 2021-03-29T10:18:55.000Z | demo/cpp/rapid.cpp | berak/opencv_smallfry | fd8f64980dff0527523791984d6cb3dfcd2bc9bc | [
"BSD-3-Clause"
] | 27 | 2015-03-28T19:55:34.000Z | 2022-01-09T15:03:15.000Z | #include "opencv2/core.hpp"
#include "opencv2/calib3d.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/rapid.hpp"
using namespace cv;
#include <iostream>
using namespace std;
int main()
{
// a unit sized box
std::vector<Vec3f> vtx = {
{1, -1, -1}, {1, -1, 1}, {-1, -1, 1}, {-1, -1, -1}, {1, 1, -1},... | 31.226277 | 107 | 0.469612 | [
"vector"
] |
7510ccd4c46d9550380d2cfb80ea232a9ac778b1 | 7,739 | cxx | C++ | smtk/extension/paraview/widgets/plugin/pqPointPropertyWidget.cxx | jcfr/SMTK | 0069ea37f8f71a440b8f10a157b84a56ca004551 | [
"BSD-3-Clause-Clear"
] | 40 | 2015-02-21T19:55:54.000Z | 2022-01-06T13:13:05.000Z | smtk/extension/paraview/widgets/plugin/pqPointPropertyWidget.cxx | jcfr/SMTK | 0069ea37f8f71a440b8f10a157b84a56ca004551 | [
"BSD-3-Clause-Clear"
] | 127 | 2015-01-15T20:55:45.000Z | 2021-08-19T17:34:15.000Z | smtk/extension/paraview/widgets/plugin/pqPointPropertyWidget.cxx | jcfr/SMTK | 0069ea37f8f71a440b8f10a157b84a56ca004551 | [
"BSD-3-Clause-Clear"
] | 27 | 2015-03-04T14:17:51.000Z | 2021-12-23T01:05:42.000Z | //=============================================================================
//
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// ... | 33.07265 | 96 | 0.688073 | [
"render",
"transform",
"3d"
] |
75138e44d6ddf8b2bef7f3396c10451a35563035 | 2,059 | cc | C++ | hbase/src/model/EnableHBaseueBackupRequest.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | hbase/src/model/EnableHBaseueBackupRequest.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | hbase/src/model/EnableHBaseueBackupRequest.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 69 | 2018-01-22T09:45:52.000Z | 2022-03-28T07:58:38.000Z | /*
* Copyright 2009-2017 Alibaba Cloud 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 required... | 27.824324 | 90 | 0.773191 | [
"model"
] |
751b16ea4b0a67dcd40f3b86900ab676bd170190 | 2,581 | hpp | C++ | src/libs/directorlib/sc_daemonctrl.hpp | suggitpe/RPMS | 7a12da0128f79b8b0339fd7146105ba955079b8c | [
"Apache-2.0"
] | null | null | null | src/libs/directorlib/sc_daemonctrl.hpp | suggitpe/RPMS | 7a12da0128f79b8b0339fd7146105ba955079b8c | [
"Apache-2.0"
] | null | null | null | src/libs/directorlib/sc_daemonctrl.hpp | suggitpe/RPMS | 7a12da0128f79b8b0339fd7146105ba955079b8c | [
"Apache-2.0"
] | null | null | null | #ifndef __sc_daemonctrl_hpp
#define __sc_daemonctrl_hpp
#include <base/sa_threadbase.hpp>
#include <base/st_spointer.hpp>
#include <idllib/idls/sr_daemontask.h>
namespace rpms
{
// pre decl
class SA_Socket;
/**
* Class used to control a single daemon.
* This class is the delegate for mana... | 34.878378 | 93 | 0.56606 | [
"object"
] |
970eee338212e3024000481520fce6e1aa865ee7 | 6,713 | hpp | C++ | src/cest.hpp | Malien/cest | c35754dead44f40b72accbda1af42a19605c9828 | [
"MIT"
] | null | null | null | src/cest.hpp | Malien/cest | c35754dead44f40b72accbda1af42a19605c9828 | [
"MIT"
] | 3 | 2020-02-04T14:50:09.000Z | 2020-02-05T08:54:25.000Z | src/cest.hpp | Malien/cest | c35754dead44f40b72accbda1af42a19605c9828 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <functional>
#include <optional>
#include <iostream>
#include <sstream>
#include <thread>
#include <vector>
#include <cmath>
#include <typeinfo>
#include "colorize.hpp"
#include "message.hpp"
#ifdef __COUNTER__
#define UNIQUE __COUNTER__
#else
#define UNIQUE __LINE__
#endif
#de... | 37.926554 | 144 | 0.546254 | [
"vector"
] |
971a63ed45903e170520f23eac80234915b9d21e | 318 | hpp | C++ | src/test/test_obj.hpp | artyomd/GPU-Playground | b79ad200c999a7374a038219272461fa1ad3240f | [
"Apache-2.0"
] | 2 | 2019-10-15T20:34:54.000Z | 2020-12-01T06:45:48.000Z | src/test/test_obj.hpp | artyomd/GPU-Playground | b79ad200c999a7374a038219272461fa1ad3240f | [
"Apache-2.0"
] | 2 | 2020-03-31T22:08:08.000Z | 2021-02-10T18:59:32.000Z | src/test/test_obj.hpp | artyomd/GPU-Playground | b79ad200c999a7374a038219272461fa1ad3240f | [
"Apache-2.0"
] | 2 | 2020-05-12T09:38:03.000Z | 2021-11-21T07:32:43.000Z | //
// Created by artyomd on 5/1/20.
//
#pragma once
#include "src/geometry/triangle.hpp"
#include "src/test/test.h"
#include "src/test/test_model.hpp"
namespace test {
class TestObj : public TestModel {
public:
explicit TestObj(std::shared_ptr<api::RenderingContext> renderer);
void OnRender() override;
};
}
| 16.736842 | 68 | 0.716981 | [
"geometry"
] |
971acfc8bbd59b5b425563d5edf471d05de68876 | 4,188 | cpp | C++ | src/codegen/statementgenerator.cpp | jroivas/nolang | 761655bf851a978fb8426cc8f465e53cc86dec28 | [
"MIT"
] | 2 | 2021-04-13T20:16:04.000Z | 2022-02-17T02:46:40.000Z | src/codegen/statementgenerator.cpp | jroivas/nolang | 761655bf851a978fb8426cc8f465e53cc86dec28 | [
"MIT"
] | null | null | null | src/codegen/statementgenerator.cpp | jroivas/nolang | 761655bf851a978fb8426cc8f465e53cc86dec28 | [
"MIT"
] | null | null | null | #include "statementgenerator.hh"
#include "methodcallgenerator.hh"
using namespace nolang;
void StatementGenerator::reset()
{
lines.clear();
statementcode.clear();
}
void StatementGenerator::generateString()
{
statementcode = cgen->applyPostponed(statementcode);
statementcode.push_back(statement->co... | 26.339623 | 96 | 0.711796 | [
"vector"
] |
971b3d9d90abdb7e0dc778d5a484fe74cc4b2ab2 | 7,208 | cpp | C++ | stareLibrary.cpp | NiklasPhabian/SciDB-HSTM | fecfba40616393cf7e90a4e5e46a5025868f872f | [
"BSD-3-Clause"
] | null | null | null | stareLibrary.cpp | NiklasPhabian/SciDB-HSTM | fecfba40616393cf7e90a4e5e46a5025868f872f | [
"BSD-3-Clause"
] | null | null | null | stareLibrary.cpp | NiklasPhabian/SciDB-HSTM | fecfba40616393cf7e90a4e5e46a5025868f872f | [
"BSD-3-Clause"
] | null | null | null | #include "stareLibrary.h"
using namespace log4cxx;
using namespace log4cxx::helpers;
using namespace scidb;
using namespace stare;
using namespace boost::assign;
enum
{
STARE_ERROR1 = SCIDB_USER_ERROR_CODE_START
};
STARE stareIndex;
// Spatial
static void stare::stareFromResolutionLatLon(const scidb::Val... | 38.752688 | 129 | 0.657741 | [
"object",
"vector"
] |
971f364db7c396a93725a59d420a57bfe6c900c4 | 33,036 | cpp | C++ | src/Atema/VulkanRenderer/Vulkan.cpp | JordiSubirana/ATEMA | be14a61d34e3c947aadc9e92a091408461f1c0a1 | [
"MIT"
] | 3 | 2016-04-19T18:08:31.000Z | 2016-09-23T15:11:11.000Z | src/Atema/VulkanRenderer/Vulkan.cpp | JordiSubirana/ATEMA | be14a61d34e3c947aadc9e92a091408461f1c0a1 | [
"MIT"
] | null | null | null | src/Atema/VulkanRenderer/Vulkan.cpp | JordiSubirana/ATEMA | be14a61d34e3c947aadc9e92a091408461f1c0a1 | [
"MIT"
] | 1 | 2016-04-19T18:09:23.000Z | 2016-04-19T18:09:23.000Z | /*
Copyright 2021 Jordi SUBIRANA
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute,... | 37.841924 | 109 | 0.819106 | [
"geometry"
] |
97206b8c87f34ed644d90a4385733b03b4461afc | 9,525 | cc | C++ | src/yb/yql/pggate/pg_operation_buffer.cc | tverona1/yugabyte-db | 5099526ca75c25acf893e9bacda7aad33fabf6c8 | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | src/yb/yql/pggate/pg_operation_buffer.cc | tverona1/yugabyte-db | 5099526ca75c25acf893e9bacda7aad33fabf6c8 | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | src/yb/yql/pggate/pg_operation_buffer.cc | tverona1/yugabyte-db | 5099526ca75c25acf893e9bacda7aad33fabf6c8 | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | // Copyright (c) YugaByte, 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 in writ... | 31.229508 | 100 | 0.691129 | [
"vector"
] |
972db7dc0eaa3a2e8857827106bec8290e41238e | 838 | cpp | C++ | src/ScriptComponent.cpp | Ravbug/RavEngine | 73249827cb2cd3c938bb59447e9edbf7b6f0defc | [
"Apache-2.0"
] | 48 | 2020-11-18T23:14:25.000Z | 2022-03-11T09:13:42.000Z | src/ScriptComponent.cpp | Ravbug/RavEngine | 73249827cb2cd3c938bb59447e9edbf7b6f0defc | [
"Apache-2.0"
] | 1 | 2020-11-17T20:53:10.000Z | 2020-12-01T20:27:36.000Z | src/ScriptComponent.cpp | Ravbug/RavEngine | 73249827cb2cd3c938bb59447e9edbf7b6f0defc | [
"Apache-2.0"
] | 3 | 2020-12-22T02:40:39.000Z | 2021-10-08T02:54:22.000Z | #include "ScriptComponent.hpp"
#include "Ref.hpp"
#include "Entity.hpp"
#include "World.hpp"
using namespace RavEngine;
bool RavEngine::ScriptComponent::Destroy()
{
auto owner = GetOwner().lock();
if (owner) {
owner->Destroy();
return true;
}
return false;
}
bool RavEngine::ScriptComponent::... | 20.439024 | 88 | 0.664678 | [
"transform"
] |
972dbbc55cb18e2d462403521ac7bab9843ff3fb | 789 | cpp | C++ | cpp-linear-search/cpp-linear-search-2.cpp | rohanghosh7/Linear-Search | 185840648e1942a3124d2d3bd00548aacd0716d4 | [
"MIT"
] | 23 | 2018-04-23T05:57:53.000Z | 2020-03-29T02:05:24.000Z | cpp-linear-search/cpp-linear-search-2.cpp | rohanghosh7/Linear-Search | 185840648e1942a3124d2d3bd00548aacd0716d4 | [
"MIT"
] | 44 | 2018-04-23T06:06:30.000Z | 2019-10-20T05:44:07.000Z | cpp-linear-search/cpp-linear-search-2.cpp | rohanghosh7/Linear-Search | 185840648e1942a3124d2d3bd00548aacd0716d4 | [
"MIT"
] | 134 | 2018-09-18T09:18:37.000Z | 2022-03-09T05:42:03.000Z | /* STL IMPLEMENTATION OF LINEAR SEARCH IN C++
~By Rahul Suresh (http://github.com/icy-meteor)~*/
//Header Files
#include <iostream>
#include <vector>
using namespace std;
//Main Function
int main()
{
int a,n,key;
vector<int> vec;
vector<int>::iterator it;
cout<<"Enter number of elements : ";
cin>... | 21.324324 | 82 | 0.536122 | [
"vector"
] |
97358af550e7b93c1dec24e05e4e29bb7f0604fd | 2,206 | cpp | C++ | services/se_standard/src/general-data-objects/response_all_ar_do.cpp | dawmlight/communication_nfc | 84a10d69eb9cb3128e864230c53d5a5e6660dfb9 | [
"Apache-2.0"
] | null | null | null | services/se_standard/src/general-data-objects/response_all_ar_do.cpp | dawmlight/communication_nfc | 84a10d69eb9cb3128e864230c53d5a5e6660dfb9 | [
"Apache-2.0"
] | null | null | null | services/se_standard/src/general-data-objects/response_all_ar_do.cpp | dawmlight/communication_nfc | 84a10d69eb9cb3128e864230c53d5a5e6660dfb9 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 35.580645 | 105 | 0.697189 | [
"vector"
] |
97371ed75ffbd93194d6a75276c29781c6ebc043 | 530 | cpp | C++ | src/tests/nnet_test.cpp | PandoraLS/PercepNet | cf3394e806280abef9823c0f889a32efc7ac6f7c | [
"BSD-3-Clause"
] | null | null | null | src/tests/nnet_test.cpp | PandoraLS/PercepNet | cf3394e806280abef9823c0f889a32efc7ac6f7c | [
"BSD-3-Clause"
] | null | null | null | src/tests/nnet_test.cpp | PandoraLS/PercepNet | cf3394e806280abef9823c0f889a32efc7ac6f7c | [
"BSD-3-Clause"
] | null | null | null | #include "nnet.h"
#include "nnet_data.h"
#include <vector>
#include <stdio.h>
int main(){
std::vector<float> fc_input(fc.nb_inputs, 0.5);
std::vector<float> fc_output_c(fc.nb_neurons, 0);
compute_dense(&fc, &fc_output_c[0], &fc_input[0]);
for(int i=0; i<fc_output_c.size(); i++){
if(fc_outpu... | 25.238095 | 74 | 0.586792 | [
"vector",
"model"
] |
9737ea386f14c8f961fa912bdc6f72257c3bd5be | 2,876 | cpp | C++ | src/Engine/PieceTypes/ChuShogi/FlyingStag.cpp | jweathers777/mShogi | 941cd4dc37e6e6210d4f993c96a553753e228b19 | [
"BSD-3-Clause"
] | 4 | 2015-12-24T04:52:48.000Z | 2021-11-09T11:31:36.000Z | src/Engine/PieceTypes/ChuShogi/FlyingStag.cpp | jweathers777/mShogi | 941cd4dc37e6e6210d4f993c96a553753e228b19 | [
"BSD-3-Clause"
] | null | null | null | src/Engine/PieceTypes/ChuShogi/FlyingStag.cpp | jweathers777/mShogi | 941cd4dc37e6e6210d4f993c96a553753e228b19 | [
"BSD-3-Clause"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////
// Name: FlyingStag.cpp
// Description: Implementation for a class that represents a flying stag
// Created: 08/31/2004 09:38:15 Eastern Daylight Time
// Last Updated: $Date: 2004/09/18 22:23:06 $
// Revision: $Revision: 1.1 ... | 32.681818 | 94 | 0.576495 | [
"vector"
] |
9739bb8a55ed11f89e3980d0edaf8488536ee0eb | 3,014 | cpp | C++ | gpu/face_detect/call_gpu.cpp | Mingcong/hadoop-1.2.1-cpu-gpu | da1c60956e548502a5964232fff406a606b964e1 | [
"Apache-2.0"
] | null | null | null | gpu/face_detect/call_gpu.cpp | Mingcong/hadoop-1.2.1-cpu-gpu | da1c60956e548502a5964232fff406a606b964e1 | [
"Apache-2.0"
] | null | null | null | gpu/face_detect/call_gpu.cpp | Mingcong/hadoop-1.2.1-cpu-gpu | da1c60956e548502a5964232fff406a606b964e1 | [
"Apache-2.0"
] | null | null | null | #include "com_smc_vidproc_call_gpu.h"
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/contrib/contrib.hpp>
#include <opencv2/objdetect/objdetect.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/gpu/gpu.hpp>
#include <vector>
using namespace s... | 29.841584 | 108 | 0.647313 | [
"vector"
] |
973d0d04272dae49b9dfea6cac51b64e462b270c | 757 | cc | C++ | src/util/fhist.cc | jinnaiyuu/pbnf | d197723e7499a91e2c15042de243ccab2cb0f9d5 | [
"MIT"
] | 4 | 2019-03-19T17:31:33.000Z | 2022-01-08T12:27:33.000Z | src/util/fhist.cc | jinnaiyuu/pbnf | d197723e7499a91e2c15042de243ccab2cb0f9d5 | [
"MIT"
] | null | null | null | src/util/fhist.cc | jinnaiyuu/pbnf | d197723e7499a91e2c15042de243ccab2cb0f9d5 | [
"MIT"
] | 1 | 2019-04-26T08:17:22.000Z | 2019-04-26T08:17:22.000Z | // © 2014 the PBNF Authors under the MIT license. See AUTHORS for the list of authors.
/**
* \file fhist.cc
*
* A histogram of f values.
*
* \author eaburns
* \date 08-09-2010
*/
#include "fhist.h"
#include "mutex.h"
#include "fixed_point.h"
#include <iostream>
#include <vector>
void F_hist::see_f(fp_type f)... | 18.02381 | 86 | 0.607662 | [
"vector"
] |
973f6c809f3faa0dd28e073c0accdd5f58cf3573 | 15,792 | cpp | C++ | MainGame/drawables/TextDrawable.cpp | JoaoBaptMG/ReboundTheGame | 48c3d8b81de1f7fa7c622c3f815860257ccdba8e | [
"MIT"
] | 63 | 2017-05-18T16:10:19.000Z | 2022-03-26T18:05:59.000Z | MainGame/drawables/TextDrawable.cpp | JoaoBaptMG/ReboundTheGame | 48c3d8b81de1f7fa7c622c3f815860257ccdba8e | [
"MIT"
] | 1 | 2018-02-10T12:40:33.000Z | 2019-01-11T07:33:13.000Z | MainGame/drawables/TextDrawable.cpp | JoaoBaptMG/ReboundTheGame | 48c3d8b81de1f7fa7c622c3f815860257ccdba8e | [
"MIT"
] | 4 | 2017-12-31T21:38:14.000Z | 2019-11-20T15:13:00.000Z | //
// Copyright (c) 2016-2018 João Baptista de Paula e Silva.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, cop... | 35.328859 | 123 | 0.616261 | [
"shape",
"vector"
] |
97438333b42381675b3f5bd3ad3593a091fde6e1 | 3,279 | cpp | C++ | groups/bal/balst/balst_stacktraceframe.cpp | apaprocki/bde | ba252cb776f92fae082d5d422aa2852a9be46849 | [
"Apache-2.0"
] | 1 | 2021-04-28T13:51:30.000Z | 2021-04-28T13:51:30.000Z | groups/bal/balst/balst_stacktraceframe.cpp | apaprocki/bde | ba252cb776f92fae082d5d422aa2852a9be46849 | [
"Apache-2.0"
] | null | null | null | groups/bal/balst/balst_stacktraceframe.cpp | apaprocki/bde | ba252cb776f92fae082d5d422aa2852a9be46849 | [
"Apache-2.0"
] | 1 | 2019-06-26T13:28:48.000Z | 2019-06-26T13:28:48.000Z | // balst_stacktraceframe.cpp -*-C++-*-
// ----------------------------------------------------------------------------
// NOTICE
//
// This component is not up to date with current BDE coding standards, and
// should not be used as an example f... | 36.433333 | 79 | 0.550473 | [
"object"
] |
9748aeb2ac875ce1b1592a5d1b5716c04ef64bd6 | 1,186 | cpp | C++ | containers_test/source/accumulation_vector_tests.cpp | dgu123/lean-cpp-lib | e4698699a743e567f287f5592af0f23219657929 | [
"MIT"
] | null | null | null | containers_test/source/accumulation_vector_tests.cpp | dgu123/lean-cpp-lib | e4698699a743e567f287f5592af0f23219657929 | [
"MIT"
] | null | null | null | containers_test/source/accumulation_vector_tests.cpp | dgu123/lean-cpp-lib | e4698699a743e567f287f5592af0f23219657929 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include <lean/containers/simple_vector.h>
#include <lean/time/highres_timer.h>
#include <vector>
struct bla
{
int a;
bla(int i) : a(i) { }
~bla() { }
};
double perfTestSTL()
{
lean::highres_timer timer;
for (int x = 0; x < 1000; ++x)
{
std::vector<int> a;
// a.reser... | 17.441176 | 65 | 0.614671 | [
"vector"
] |
97495be1dc8d15f536bf7752c1c00fdb26b235d3 | 1,168 | hpp | C++ | libs/input/include/sge/input/info/container.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/input/include/sge/input/info/container.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/input/include/sge/input/info/container.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_INPUT_INFO_CONTAINER_HPP_INCLUDED
#define SGE_INPUT_INFO_CONTAINER_HPP_INCLUDED
#inclu... | 22.461538 | 77 | 0.73887 | [
"object",
"vector"
] |
974ba91d0fbaba8de1106032443d24caf7adba4a | 2,708 | cpp | C++ | src/chartwork/plugins/PieChartPlugin.cpp | nazhor/chartwork | 20cb8df257bec39153ea408305640274c9e09d4c | [
"MIT"
] | 20 | 2018-08-29T07:33:21.000Z | 2022-03-12T05:05:54.000Z | src/chartwork/plugins/PieChartPlugin.cpp | nazhor/chartwork | 20cb8df257bec39153ea408305640274c9e09d4c | [
"MIT"
] | 1 | 2020-10-27T15:04:46.000Z | 2020-10-27T15:04:46.000Z | src/chartwork/plugins/PieChartPlugin.cpp | nazhor/chartwork | 20cb8df257bec39153ea408305640274c9e09d4c | [
"MIT"
] | 7 | 2015-07-09T20:38:28.000Z | 2021-09-27T06:38:11.000Z | #include <chartwork/plugins/PieChartPlugin.h>
#include <QtPlugin>
#include <chartwork/PieChart.h>
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// PieChartPlugin
//
//////////////////////////////////////////////////////////////////////////////////////////////... | 24.618182 | 100 | 0.350812 | [
"geometry"
] |
974d4727e757acd9d18446db4d242d78c85a954f | 864 | cpp | C++ | vo7/LambdaExpressions/numeric_example.cpp | michivo/osd | ccc76aa0d7fa9b62b63d012481dbb318be0f6382 | [
"MIT"
] | null | null | null | vo7/LambdaExpressions/numeric_example.cpp | michivo/osd | ccc76aa0d7fa9b62b63d012481dbb318be0f6382 | [
"MIT"
] | null | null | null | vo7/LambdaExpressions/numeric_example.cpp | michivo/osd | ccc76aa0d7fa9b62b63d012481dbb318be0f6382 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include <iostream>
#include <vector>
#include <functional>
#include <climits>
int aggregate(std::vector<int> numbers, std::function<int(int, int)> aggregator, int seed = 0)
{
int result = seed;
for (auto x : numbers)
{
result = aggregator(x, result);
}
return result;
}
void numeric_exampl... | 29.793103 | 113 | 0.606481 | [
"vector"
] |
974da9f6dab607ce760b0e8bd7e0072150dca04c | 2,083 | hpp | C++ | include/mos/core/tracked_container.hpp | morganbengtsson/mo | c719ff6b35478b068988901d0bf7253cb672e87a | [
"MIT"
] | 230 | 2016-02-15T20:46:01.000Z | 2022-03-07T11:56:12.000Z | include/mos/core/tracked_container.hpp | morganbengtsson/mo | c719ff6b35478b068988901d0bf7253cb672e87a | [
"MIT"
] | 79 | 2016-02-07T11:37:04.000Z | 2021-09-29T09:14:27.000Z | include/mos/core/tracked_container.hpp | morganbengtsson/mo | c719ff6b35478b068988901d0bf7253cb672e87a | [
"MIT"
] | 14 | 2018-05-16T13:10:22.000Z | 2021-09-28T10:23:31.000Z | #pragma once
#include <chrono>
#include <initializer_list>
#include <mos/core/container.hpp>
#include <vector>
namespace mos {
template <class T> class Container;
/** Container with modified time stamp. */
template <class T> class Tracked_container {
public:
using Items = std::vector<T>;
using TimePoint = std::c... | 27.051948 | 73 | 0.668747 | [
"vector"
] |
97523e82d1beb9fb731de593cb0f39058ab86dd4 | 20,156 | cpp | C++ | main.cpp | bilginyuksel/cli-todo | 324caa8e479c75e2f74de000e90b45b10886285c | [
"MIT"
] | null | null | null | main.cpp | bilginyuksel/cli-todo | 324caa8e479c75e2f74de000e90b45b10886285c | [
"MIT"
] | null | null | null | main.cpp | bilginyuksel/cli-todo | 324caa8e479c75e2f74de000e90b45b10886285c | [
"MIT"
] | 1 | 2020-08-09T12:54:20.000Z | 2020-08-09T12:54:20.000Z | #include "db_repo.h"
#ifndef unordered_map
#include <unordered_map>
#endif
#ifndef iostream
#include <iostream>
#endif
#define RESET "\033[0m"
#define MAGENTA "\033[35m"
#define CYAN "\033[36m"
#define GREEN "\033[32m"
#define RED "\033[31m"
#define YELLOW "\033[33m"
void help();
void version();
void about();
void ... | 33.315702 | 590 | 0.635195 | [
"vector"
] |
97530187c4414e69ad3145a99c605396c55a5ee4 | 7,889 | cpp | C++ | Parallel_BubbleSort.cpp | RicardoGtz/MPI_Parallel_BubbleSort | 3e93150f6fb5d9755f8079e1edf80a2f4497bf0a | [
"MIT"
] | null | null | null | Parallel_BubbleSort.cpp | RicardoGtz/MPI_Parallel_BubbleSort | 3e93150f6fb5d9755f8079e1edf80a2f4497bf0a | [
"MIT"
] | null | null | null | Parallel_BubbleSort.cpp | RicardoGtz/MPI_Parallel_BubbleSort | 3e93150f6fb5d9755f8079e1edf80a2f4497bf0a | [
"MIT"
] | null | null | null | #include "mpi.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define SEED 5
#define N 200000
int *array; // Arreglo original
int *localArray; // Arreglo de proceso
int taskid, // ID del procesador */
numtasks, // Numero de procesadores a usar
start, // Index de incio de su parte del arre... | 30.816406 | 108 | 0.582837 | [
"vector"
] |
975bf636160a9d269a36081441506ab3fd9a4e75 | 6,269 | cpp | C++ | src/Emulator.cpp | NiwakaDev/X86_EMULATOR_2 | 2e725e0eaa543048ce9a20bd223bcdcde2df7a73 | [
"MIT"
] | 16 | 2021-11-19T22:26:22.000Z | 2022-02-16T12:38:50.000Z | src/Emulator.cpp | NiwakaDev/X86_EMULATOR_2 | 2e725e0eaa543048ce9a20bd223bcdcde2df7a73 | [
"MIT"
] | 1 | 2022-02-19T04:56:47.000Z | 2022-02-19T10:00:58.000Z | src/Emulator.cpp | NiwakaDev/X86_EMULATOR_2 | 2e725e0eaa543048ce9a20bd223bcdcde2df7a73 | [
"MIT"
] | null | null | null | #include "Emulator.h"
#include <fstream>
#include "Bios.h"
#include "Cpu.h"
#include "Fdc.h"
#include "Gui.h"
#include "IoPort.h"
#include "Kbc.h"
#include "Memory.h"
#include "Mouse.h"
#include "Pic.h"
#include "Timer.h"
#include "Vga.h"
using namespace std;
#ifdef DEBUG
extern bool niwaka_start_flg;
#endif
Emulator... | 29.995215 | 79 | 0.579678 | [
"object"
] |
975c204f001d7b23e65cc7190d5d42122d5e172c | 4,281 | cpp | C++ | src/Pyros3D/Assets/Renderable/Primitives/Shapes/TorusKnot.cpp | Peixinho/Pyros3D | d6857ce99f3731a851ca5e7d67afbb13aafd18e0 | [
"MIT"
] | 20 | 2016-02-15T23:22:06.000Z | 2021-12-07T00:13:49.000Z | src/Pyros3D/Assets/Renderable/Primitives/Shapes/TorusKnot.cpp | Peixinho/Pyros3D | d6857ce99f3731a851ca5e7d67afbb13aafd18e0 | [
"MIT"
] | 1 | 2017-09-04T00:28:19.000Z | 2017-09-05T11:00:12.000Z | src/Pyros3D/Assets/Renderable/Primitives/Shapes/TorusKnot.cpp | Peixinho/Pyros3D | d6857ce99f3731a851ca5e7d67afbb13aafd18e0 | [
"MIT"
] | 3 | 2016-08-10T02:44:08.000Z | 2021-05-28T23:03:10.000Z | //============================================================================
// Name : Torus Knot
// Author : Duarte Peixinho
// Version :
// Copyright : ;)
// Description : Torus Knot Geometry
//============================================================================
#include <Pyros3D/Assets/R... | 33.186047 | 202 | 0.580005 | [
"geometry",
"vector"
] |
975c242a5ca6a9749ad7c018e2c34d085d5fb750 | 6,101 | cpp | C++ | modules/surface_matching/samples/ppf_load_match.cpp | Nondzu/opencv_contrib | 0b0616a25d4239ee81fda965818b49b721620f56 | [
"BSD-3-Clause"
] | 7,158 | 2016-07-04T22:19:27.000Z | 2022-03-31T07:54:32.000Z | modules/surface_matching/samples/ppf_load_match.cpp | Nondzu/opencv_contrib | 0b0616a25d4239ee81fda965818b49b721620f56 | [
"BSD-3-Clause"
] | 2,184 | 2016-07-05T12:04:14.000Z | 2022-03-30T19:10:12.000Z | modules/surface_matching/samples/ppf_load_match.cpp | Nondzu/opencv_contrib | 0b0616a25d4239ee81fda965818b49b721620f56 | [
"BSD-3-Clause"
] | 5,535 | 2016-07-06T12:01:10.000Z | 2022-03-31T03:13:24.000Z | //
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, install,
// copy or use the software.
//
//
// License Agreement
// ... | 38.13125 | 112 | 0.633503 | [
"vector",
"model"
] |
976192a8b24854172395d234f58d183b6a8a1b99 | 7,707 | cpp | C++ | lab3/main.cpp | Failjak/cpp_lab_4term | a2e859143fdcc50e670a8eb4cf35c7b3c768c43e | [
"BSD-3-Clause"
] | null | null | null | lab3/main.cpp | Failjak/cpp_lab_4term | a2e859143fdcc50e670a8eb4cf35c7b3c768c43e | [
"BSD-3-Clause"
] | null | null | null | lab3/main.cpp | Failjak/cpp_lab_4term | a2e859143fdcc50e670a8eb4cf35c7b3c768c43e | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <vector>
#include <memory>
#include <algorithm>
#include "Pharmacy.hpp"
#include "Pharmacy.cpp"
using namespace std;
void exitFunc();
Pharmacy * createPharmacy();
int main_menu();
int order_menu();
int search_menu();
int sort_menu();
int choice_edit_field();
void get_pharmacy_list(Pha... | 19.2675 | 105 | 0.466848 | [
"vector"
] |
976b40b8d354a464ad64b683e597bc3fe291e4e0 | 4,411 | cpp | C++ | Data Structure Review/Chapter 7/UndirectedGraph.cpp | Freeman449s/Data-Structure-Review | e757c73a1ed75261f26de61afd4ba55df06bfe8d | [
"MIT"
] | null | null | null | Data Structure Review/Chapter 7/UndirectedGraph.cpp | Freeman449s/Data-Structure-Review | e757c73a1ed75261f26de61afd4ba55df06bfe8d | [
"MIT"
] | null | null | null | Data Structure Review/Chapter 7/UndirectedGraph.cpp | Freeman449s/Data-Structure-Review | e757c73a1ed75261f26de61afd4ba55df06bfe8d | [
"MIT"
] | null | null | null | //
// Created by Freeman on 2021/9/23.
//
#include "../Util.hpp"
#include "../Chapter 6/UnionFindSet.hpp"
#include "UndirectedGraph.hpp"
using namespace std;
#ifndef DBL_MAX
#define DBL_MAX 1E308
#endif
bool UndirectedGraph::addEdge(int tail, int head) {
if (tail < 0 || tail >= nVex || head < 0 || head >= nVex... | 28.095541 | 95 | 0.542961 | [
"vector"
] |
9770af8772faf86daab53ee0bd56ec29297b0713 | 6,281 | cpp | C++ | rtti/include/reflection/type/type_info.cpp | TheTryton/rtti | 2ff97c6fe6d799f03754f4deaada5d6c57fd07fa | [
"MIT"
] | 1 | 2018-12-14T04:56:46.000Z | 2018-12-14T04:56:46.000Z | rtti/include/reflection/type/type_info.cpp | TheTryton/rtti | 2ff97c6fe6d799f03754f4deaada5d6c57fd07fa | [
"MIT"
] | null | null | null | rtti/include/reflection/type/type_info.cpp | TheTryton/rtti | 2ff97c6fe6d799f03754f4deaada5d6c57fd07fa | [
"MIT"
] | null | null | null | #pragma once
#include "type_info.hpp"
REFLECTION_NAMESPACE_BEGIN
type_info::~type_info()
{
for(auto& constructor_info : _constructors)
{
delete constructor_info.second;
}
}
bool type_info::is_same(const type_info* other) const
{
return other == this;
}
bool type_info::has_default_constructo... | 25.2249 | 125 | 0.638593 | [
"vector",
"transform"
] |
9774ac2f7feb01c9db1b1f6f00471d1b6a4565f8 | 10,624 | cpp | C++ | tf2_bot_detector/Config/Rules.cpp | Chrissucks/tf2_bot_detector | 4a073e576c96f017c01531e4a37541e4c74ee250 | [
"MIT"
] | null | null | null | tf2_bot_detector/Config/Rules.cpp | Chrissucks/tf2_bot_detector | 4a073e576c96f017c01531e4a37541e4c74ee250 | [
"MIT"
] | null | null | null | tf2_bot_detector/Config/Rules.cpp | Chrissucks/tf2_bot_detector | 4a073e576c96f017c01531e4a37541e4c74ee250 | [
"MIT"
] | null | null | null | #include "Rules.h"
#include "IPlayer.h"
#include "JSONHelpers.h"
#include "Log.h"
#include "PlayerListJSON.h"
#include "Settings.h"
#include <mh/text/case_insensitive_string.hpp>
#include <mh/text/string_insertion.hpp>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <regex>
#include <stdex... | 25.97555 | 130 | 0.67837 | [
"object",
"vector"
] |
9775262665649e751707941b62ff569274b81039 | 7,142 | cpp | C++ | src/addcontactdialog.cpp | SelfSellTeam/Wallet | 15a047a308fb0145c6d5df4e54c53a58b59fbf07 | [
"MIT"
] | 1 | 2018-05-17T18:52:36.000Z | 2018-05-17T18:52:36.000Z | src/addcontactdialog.cpp | SelfSellTeam/Wallet | 15a047a308fb0145c6d5df4e54c53a58b59fbf07 | [
"MIT"
] | null | null | null | src/addcontactdialog.cpp | SelfSellTeam/Wallet | 15a047a308fb0145c6d5df4e54c53a58b59fbf07 | [
"MIT"
] | null | null | null | #include "addcontactdialog.h"
#include "ui_addcontactdialog.h"
#include "datamgr.h"
#include "goopal.h"
#include <QDebug>
#include <QMovie>
AddContactDialog::AddContactDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::AddContactDialog)
{
ui->setupUi(this);
// Goopal::getInstance()->app... | 32.463636 | 135 | 0.617054 | [
"solid"
] |
97846b87a0f120a6dbc8f47e2c5d21a640b9e7fa | 7,251 | cpp | C++ | XRADSystem/Sources/PlatformSpecific/MSVC/Internal/FileNameOperations_Win32.cpp | n-kulberg/xrad | 3d089cc24d942db4649f1a50defbd69f01739ae2 | [
"BSD-3-Clause"
] | 1 | 2021-04-02T16:47:00.000Z | 2021-04-02T16:47:00.000Z | XRADSystem/Sources/PlatformSpecific/MSVC/Internal/FileNameOperations_Win32.cpp | n-kulberg/xrad | 3d089cc24d942db4649f1a50defbd69f01739ae2 | [
"BSD-3-Clause"
] | null | null | null | XRADSystem/Sources/PlatformSpecific/MSVC/Internal/FileNameOperations_Win32.cpp | n-kulberg/xrad | 3d089cc24d942db4649f1a50defbd69f01739ae2 | [
"BSD-3-Clause"
] | 3 | 2021-08-30T11:26:23.000Z | 2021-09-23T09:39:56.000Z | /*
Copyright (c) 2021, Moscow Center for Diagnostics & Telemedicine
All rights reserved.
This file is licensed under BSD-3-Clause license. See LICENSE file for details.
*/
#include "pre.h"
#include "FileNameOperations_Win32.h"
#ifdef XRAD_USE_FILENAMES_WIN32_VERSION
#ifndef _MSC_VER
#error "This file is for MS V... | 30.594937 | 157 | 0.69287 | [
"object",
"vector",
"transform"
] |
9789b639edaa009e29d50cdf74caec7a5ba2c892 | 8,041 | cpp | C++ | src/sim/cgi/sim_Gates.cpp | marek-cel/fightersfs | 5511162726861fee17357f39274461250370c224 | [
"MIT"
] | 4 | 2021-01-28T17:39:38.000Z | 2022-02-11T20:13:46.000Z | src/sim/cgi/sim_Gates.cpp | marek-cel/fightersfs | 5511162726861fee17357f39274461250370c224 | [
"MIT"
] | null | null | null | src/sim/cgi/sim_Gates.cpp | marek-cel/fightersfs | 5511162726861fee17357f39274461250370c224 | [
"MIT"
] | 3 | 2021-02-22T21:22:30.000Z | 2022-01-10T19:32:12.000Z | /****************************************************************************//*
* Copyright (C) 2021 Marek M. Cel
*
* 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, ... | 33.227273 | 105 | 0.516105 | [
"geometry"
] |
978c93c13dddf17bb1fc95304cc466a2e5b4299e | 1,748 | hpp | C++ | Hyades/src/Renderer/SwapChain.hpp | nbrockett/hyades | 18d2218501d1352a88df187efec282174c46d3e0 | [
"MIT"
] | null | null | null | Hyades/src/Renderer/SwapChain.hpp | nbrockett/hyades | 18d2218501d1352a88df187efec282174c46d3e0 | [
"MIT"
] | null | null | null | Hyades/src/Renderer/SwapChain.hpp | nbrockett/hyades | 18d2218501d1352a88df187efec282174c46d3e0 | [
"MIT"
] | null | null | null | // SwapChain
//
// The swap chain own the image buffer and synchronisies their presentation
//
#pragma once
#include <vulkan/vulkan.h>
#include "../HyadesPCH.hpp"
#include "QueueFamily.hpp"
#include "GLFW/glfw3.h"
namespace Hyades
{
struct SwapChainSupportDetails
{
VkSurfaceCapabilitiesKHR capabil... | 26.089552 | 107 | 0.701945 | [
"vector"
] |
978f301b919d3d28307d4bd20fce13ede07509a7 | 20,597 | cpp | C++ | src/uvdar_rx.cpp | ctu-mrs/uvdar_core | 85f01498b433660fcff7410e40d35b79d3ca225a | [
"BSD-3-Clause"
] | 4 | 2020-09-15T14:48:36.000Z | 2022-02-05T22:56:02.000Z | src/uvdar_rx.cpp | ctu-mrs/uvdar_core | 85f01498b433660fcff7410e40d35b79d3ca225a | [
"BSD-3-Clause"
] | 2 | 2021-06-29T03:18:39.000Z | 2021-08-30T15:28:43.000Z | src/uvdar_rx.cpp | ctu-mrs/uvdar_core | 85f01498b433660fcff7410e40d35b79d3ca225a | [
"BSD-3-Clause"
] | 4 | 2020-11-02T16:58:12.000Z | 2022-02-05T23:00:09.000Z | #include <ros/ros.h>
#include <ros/package.h>
#include <mrs_lib/param_loader.h>
#include <cv_bridge/cv_bridge.h>
#include <mrs_msgs/ImagePointsWithFloatStamped.h>
#include <mrs_lib/transformer.h>
#include <mrs_msgs/String.h>
#include <std_msgs/Float32.h>
#include <uvdar_core/RecMsg.h>
#include <string>
#include <cmath>... | 36.326279 | 159 | 0.590669 | [
"vector"
] |
9799f1b10b69b50964688e045f31759fd404e0b9 | 1,834 | cpp | C++ | lib/commonAPI/audiocapture/ext/platform/wp8/src/Audiocapture_impl.cpp | mensfeld/rhodes | 2962610a314ed563a0b7c83fcae6136913a1b033 | [
"MIT"
] | 173 | 2015-01-02T11:14:08.000Z | 2022-03-05T09:54:54.000Z | lib/commonAPI/audiocapture/ext/platform/wp8/src/Audiocapture_impl.cpp | mensfeld/rhodes | 2962610a314ed563a0b7c83fcae6136913a1b033 | [
"MIT"
] | 263 | 2015-01-05T04:35:22.000Z | 2021-09-07T06:00:02.000Z | lib/commonAPI/audiocapture/ext/platform/wp8/src/Audiocapture_impl.cpp | watusi/rhodes | 07161cca58ff6a960bbd1b79b36447b819bfa0eb | [
"MIT"
] | 77 | 2015-01-12T20:57:18.000Z | 2022-02-17T15:15:14.000Z | #include "../../../shared/generated/cpp/AudiocaptureBase.h"
namespace rho {
using namespace apiGenerator;
class CAudiocaptureImpl: public CAudiocaptureBase
{
public:
CAudiocaptureImpl(const rho::String& strID): CAudiocaptureBase()
{
}
virtual void enable( const rho::Hashtable<rho::String, rho::Strin... | 25.830986 | 111 | 0.742094 | [
"vector"
] |
97a18bb73952e7df346c2f1b845cd45a69346810 | 2,213 | cpp | C++ | aws-cpp-sdk-codepipeline/source/model/ActionTypeUrls.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-05T18:20:03.000Z | 2022-01-05T18:20:03.000Z | aws-cpp-sdk-codepipeline/source/model/ActionTypeUrls.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-codepipeline/source/model/ActionTypeUrls.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/codepipeline/model/ActionTypeUrls.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
n... | 21.07619 | 73 | 0.758699 | [
"model"
] |
97aaf56fed44a80630f02781489812c6bb7e9ad8 | 939 | cpp | C++ | 39.cpp | pengzhezhe/LeetCode | 305ec0c5b4cb5ea7cd244b3308132dee778138bc | [
"Apache-2.0"
] | null | null | null | 39.cpp | pengzhezhe/LeetCode | 305ec0c5b4cb5ea7cd244b3308132dee778138bc | [
"Apache-2.0"
] | null | null | null | 39.cpp | pengzhezhe/LeetCode | 305ec0c5b4cb5ea7cd244b3308132dee778138bc | [
"Apache-2.0"
] | null | null | null | //
// Created by pzz on 2021/11/29.
//
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
class Solution {
private:
vector<vector<int>> result;
vector<int> collection;
int sum = 0;
void backtracing(const vector<int> &candidates, int target, int start) {
if (sum =... | 22.357143 | 77 | 0.57295 | [
"vector"
] |
97abc65fc7a52c9d20652cd2ee54077a3cd3e789 | 16,269 | cpp | C++ | services/sensor/src/sensor_data_processer.cpp | openharmony-gitee-mirror/sensors_sensor | fb94366c2ec86afec09080fcefea026a47f13eaa | [
"Apache-2.0"
] | null | null | null | services/sensor/src/sensor_data_processer.cpp | openharmony-gitee-mirror/sensors_sensor | fb94366c2ec86afec09080fcefea026a47f13eaa | [
"Apache-2.0"
] | null | null | null | services/sensor/src/sensor_data_processer.cpp | openharmony-gitee-mirror/sensors_sensor | fb94366c2ec86afec09080fcefea026a47f13eaa | [
"Apache-2.0"
] | 1 | 2021-09-13T11:20:30.000Z | 2021-09-13T11:20:30.000Z | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 39.392252 | 119 | 0.640236 | [
"vector"
] |
97b2ae39b334a99d14d5119a2fab0c8e6195f494 | 2,127 | hpp | C++ | Libraries/Editor/EditorUtility.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | 3 | 2022-02-11T10:34:33.000Z | 2022-02-24T17:44:17.000Z | Libraries/Editor/EditorUtility.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | Libraries/Editor/EditorUtility.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
#pragma once
namespace Zero
{
class Cog;
// Get the text drawing position for a given cog
Vec3 GetObjectTextPosition(Cog* cog);
DeclareEnum2(IncludeMode, OnlyRoot, Children);
// Get an Aabb for a cog and its children
Aabb GetAabb(Cog* cog, IncludeMode::Type includeMode = IncludeMod... | 32.723077 | 111 | 0.697696 | [
"object"
] |
b6333a48d90872b2d44c6c166b9ea2428ee333a0 | 1,263 | cpp | C++ | test/unit/math/prim/fun/positive_transform_test.cpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | test/unit/math/prim/fun/positive_transform_test.cpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | test/unit/math/prim/fun/positive_transform_test.cpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | #include <stan/math/prim.hpp>
#include <test/unit/util.hpp>
#include <gtest/gtest.h>
TEST(prob_transform, positive) {
EXPECT_FLOAT_EQ(exp(-1.0), stan::math::positive_constrain(-1.0));
}
TEST(prob_transform, positive_j) {
double lp = 15.0;
EXPECT_FLOAT_EQ(exp(-1.0), stan::math::positive_constrain(-1.0, lp));
EX... | 33.236842 | 77 | 0.697546 | [
"vector"
] |
b634cbbc2e4a1df34e223aa5f077b602602b01b5 | 19,998 | hpp | C++ | metric/modules/utils/crossfilter/include/detail/crossfilter.hpp | Stepka/telegram_clustering_contest | 52a012af2ce821410caa98cba840364710eb4256 | [
"Apache-2.0"
] | 2 | 2019-12-03T17:08:04.000Z | 2021-08-25T05:06:29.000Z | metric/modules/utils/crossfilter/include/detail/crossfilter.hpp | Stepka/telegram_clustering_contest | 52a012af2ce821410caa98cba840364710eb4256 | [
"Apache-2.0"
] | 1 | 2021-09-02T02:25:51.000Z | 2021-09-02T02:25:51.000Z | metric/modules/utils/crossfilter/include/detail/crossfilter.hpp | Stepka/telegram_clustering_contest | 52a012af2ce821410caa98cba840364710eb4256 | [
"Apache-2.0"
] | null | null | null | /*This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) 2018 Dmitry Vinokurov */
#ifndef _METRIC_CROSSFILTER_DETAILS_CROSSFILTER_HPP
#define _METRIC_CROSSFILTER_DETA... | 33.894915 | 149 | 0.612861 | [
"vector"
] |
b63b653082a6502657588d33062141ddcf1c063b | 10,781 | cpp | C++ | src/guide/customedit.cpp | rzvdaniel/GUI- | 1501b54a038f7e3f66d683f125fa53d3ab73672c | [
"MIT"
] | 2 | 2017-06-16T19:27:55.000Z | 2020-04-05T02:18:07.000Z | src/guide/customedit.cpp | rzvdaniel/GUI- | 1501b54a038f7e3f66d683f125fa53d3ab73672c | [
"MIT"
] | null | null | null | src/guide/customedit.cpp | rzvdaniel/GUI- | 1501b54a038f7e3f66d683f125fa53d3ab73672c | [
"MIT"
] | 2 | 2019-09-03T19:23:20.000Z | 2020-08-29T21:46:17.000Z | #define N_IMPLEMENTS TCustomEdit
//-------------------------------------------------------------------
// customedit.cpp
// (C) 2004 R.Predescu
//-------------------------------------------------------------------
#include "guide/customedit.h"
#include "guide/debug.h"
//----------------------------------------------... | 25.189252 | 75 | 0.398293 | [
"object"
] |
b646cf51a8c52ee594da9b0141f2bcc164e41838 | 3,027 | cpp | C++ | luogu/3722/3722.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | luogu/3722/3722.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | luogu/3722/3722.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
const int N=200005;
typedef pair<int,int> pii;
#define mk make_pair
#define int long long
int n,m,p1,p2;
int a[N],nxt[N],pre[N];
namespace BIT{
int sum[N];
int lowbit(int x){return x&(-x);}
void update(int x,int add){
for(int i=x;i<=n;i+=lowbit(i)) sum[i... | 27.026786 | 76 | 0.474067 | [
"vector"
] |
b6474f1b42de7301a337af45eb8dec16b6f692c9 | 1,866 | cpp | C++ | src/processor.cpp | ajhsutton/CppND-System-Monitor-Project-Updated | f5fc8d109c4a85c6b6b850b4b617c4c237acca23 | [
"MIT"
] | null | null | null | src/processor.cpp | ajhsutton/CppND-System-Monitor-Project-Updated | f5fc8d109c4a85c6b6b850b4b617c4c237acca23 | [
"MIT"
] | null | null | null | src/processor.cpp | ajhsutton/CppND-System-Monitor-Project-Updated | f5fc8d109c4a85c6b6b850b4b617c4c237acca23 | [
"MIT"
] | null | null | null | #include "processor.h"
#include "linux_parser.h"
#include <string>
#include <vector>
// DONE: Return the aggregate CPU utilization
float Processor::Utilization() {
std::vector<std::string> cpu_utilization = LinuxParser::CpuUtilization();
// Parse CPU Utilization data from:
// https://stackoverflow.com/question... | 41.466667 | 112 | 0.724544 | [
"vector"
] |
b65bda4494f32e0d1d634d441fb151ef52a2f773 | 1,621 | cpp | C++ | tests/KmerCounterTest.cpp | ASLeonard/pangenie | aeb0c2aa28bf69041755855306d32f5523371274 | [
"MIT"
] | 8 | 2021-12-10T10:30:08.000Z | 2022-03-30T08:49:01.000Z | tests/KmerCounterTest.cpp | ASLeonard/pangenie | aeb0c2aa28bf69041755855306d32f5523371274 | [
"MIT"
] | 7 | 2022-02-09T15:28:23.000Z | 2022-03-22T10:12:50.000Z | tests/KmerCounterTest.cpp | ASLeonard/pangenie | aeb0c2aa28bf69041755855306d32f5523371274 | [
"MIT"
] | 1 | 2022-02-08T09:56:36.000Z | 2022-02-08T09:56:36.000Z | #include "catch.hpp"
#include "utils.hpp"
#include "../src/jellyfishcounter.hpp"
#include "../src/jellyfishreader.hpp"
#include <vector>
#include <string>
using namespace std;
TEST_CASE("JellyfishCounter", "[JellyfishCounter]") {
JellyfishCounter counter("../tests/data/reads.fa", 10);
string read = "ATGCTGTAAAAAAAC... | 33.081633 | 87 | 0.700185 | [
"vector"
] |
b65e38cf5efeb88c88644eddffad78b8d40329ba | 25,828 | cpp | C++ | core/ctroll/programwidget.cpp | c-toolbox/C-Troll | 7fa6cc16677e179cf6a73bb60361a8cce158a95a | [
"BSD-3-Clause"
] | 4 | 2017-01-05T12:45:41.000Z | 2020-10-05T15:58:32.000Z | core/ctroll/programwidget.cpp | c-toolbox/C-Troll | 7fa6cc16677e179cf6a73bb60361a8cce158a95a | [
"BSD-3-Clause"
] | 20 | 2016-09-22T11:40:19.000Z | 2022-03-04T08:05:10.000Z | core/ctroll/programwidget.cpp | c-toolbox/C-Troll | 7fa6cc16677e179cf6a73bb60361a8cce158a95a | [
"BSD-3-Clause"
] | null | null | null | /*****************************************************************************************
* *
* Copyright (c) 2016 - 2020 *
* Alexander Bock, Erik Sunden, Emil Axelsson ... | 36.123077 | 90 | 0.572634 | [
"vector",
"transform"
] |
b663f24dd36f1ca39a554b9f06068fba626e19a2 | 801 | cc | C++ | test/core/test2.4.2-1/test.cc | XpressAI/frovedis | bda0f2c688fb832671c5b542dd8df1c9657642ff | [
"BSD-2-Clause"
] | 63 | 2018-06-21T14:11:59.000Z | 2022-03-30T11:24:36.000Z | test/core/test2.4.2-1/test.cc | XpressAI/frovedis | bda0f2c688fb832671c5b542dd8df1c9657642ff | [
"BSD-2-Clause"
] | 5 | 2018-09-22T14:01:53.000Z | 2021-12-27T16:11:05.000Z | test/core/test2.4.2-1/test.cc | XpressAI/frovedis | bda0f2c688fb832671c5b542dd8df1c9657642ff | [
"BSD-2-Clause"
] | 12 | 2018-08-23T15:59:44.000Z | 2022-02-20T06:47:22.000Z | #include <frovedis.hpp>
#define BOOST_TEST_MODULE FrovedisTest
#include <boost/test/unit_test.hpp>
using namespace frovedis;
using namespace std;
struct n_times {
n_times(){}
n_times(int n_) : n(n_) {}
int operator()(int i){return i*n;}
int n;
SERIALIZE(n)
};
BOOST_AUTO_TEST_CASE( frovedis_test )
{
int ... | 22.25 | 56 | 0.670412 | [
"vector"
] |
b6653820b18f33f5d7316c0a993533e31bd11e99 | 2,550 | cpp | C++ | src/main.cpp | arrufat/tiler | 85ef5ac355dd6b8a127833a708f8a963f5be022c | [
"BSL-1.0"
] | null | null | null | src/main.cpp | arrufat/tiler | 85ef5ac355dd6b8a127833a708f8a963f5be022c | [
"BSL-1.0"
] | null | null | null | src/main.cpp | arrufat/tiler | 85ef5ac355dd6b8a127833a708f8a963f5be022c | [
"BSL-1.0"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <sstream>
#include <dlib/cmd_line_parser.h>
#include <dlib/image_io.h>
#include <dlib/gui_widgets.h>
#include <dlib/dir_nav.h>
#include <dlib/image_transforms.h>
int main(int argc, char** argv) try
{
dlib::command_line_parser cmd_parser;
cmd_parser.add_option(... | 38.059701 | 113 | 0.651765 | [
"vector"
] |
b670e567f80187193e99487eb4515e8bc199c613 | 6,420 | cpp | C++ | rs/test/catch_test.cpp | dymk/rs | b75ab0df5f235ac12ec4da825e6bd6e1fa9e7493 | [
"Apache-2.0"
] | 19 | 2017-05-15T08:20:00.000Z | 2021-12-03T05:58:32.000Z | rs/test/catch_test.cpp | dymk/rs | b75ab0df5f235ac12ec4da825e6bd6e1fa9e7493 | [
"Apache-2.0"
] | null | null | null | rs/test/catch_test.cpp | dymk/rs | b75ab0df5f235ac12ec4da825e6bd6e1fa9e7493 | [
"Apache-2.0"
] | 3 | 2018-01-16T18:07:30.000Z | 2021-06-30T07:33:44.000Z | // Copyright 2017 Per Grön. 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 required by applicable l... | 29.585253 | 79 | 0.602181 | [
"vector"
] |
b67429adcd1c9db10ccab16f0384b826266877f5 | 2,304 | cc | C++ | src/RequestRawReader.cc | AmiraLearning/asr-server | d551d7a471300360a846009a31852662d0ba7b23 | [
"Apache-2.0"
] | 143 | 2017-10-15T00:21:50.000Z | 2022-03-24T13:37:12.000Z | src/RequestRawReader.cc | AmiraLearning/asr-server | d551d7a471300360a846009a31852662d0ba7b23 | [
"Apache-2.0"
] | 33 | 2017-11-02T20:03:15.000Z | 2021-12-29T09:41:11.000Z | src/RequestRawReader.cc | AmiraLearning/asr-server | d551d7a471300360a846009a31852662d0ba7b23 | [
"Apache-2.0"
] | 75 | 2017-11-04T19:58:29.000Z | 2022-03-24T13:37:01.000Z | // RequestRawReader.cc
// 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
//
// THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CON... | 28.097561 | 118 | 0.72526 | [
"vector"
] |
b682035c3ff00e9b2b08c7946d8efe7022dbbf16 | 1,789 | cpp | C++ | data/dailyCodingProblem912.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | 2 | 2020-09-04T20:56:23.000Z | 2021-06-11T07:42:26.000Z | data/dailyCodingProblem912.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | null | null | null | data/dailyCodingProblem912.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
/*
Two nodes in a binary tree can be called cousins if
they are on the same level of the tree but have different parents.
For example, in the following diagram 4 and 6 are cousins.
1
/ \
2 3
/ \ \
4 5 6
Given a binary tree and a particular node,
find al... | 20.101124 | 66 | 0.505869 | [
"vector"
] |
b689d3a31075e8d1f7b6485f85d7853db3f284bb | 1,422 | cpp | C++ | codeforces/787/B.cpp | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | 1 | 2019-05-12T23:41:00.000Z | 2019-05-12T23:41:00.000Z | codeforces/787/B.cpp | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | codeforces/787/B.cpp | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using vi = vector<int>; using vvi = vector<vi>;
using ii = pair<int,int>; using vii = vector<ii>;
using l = long long; using vl = vector<l>; using vvl = vector<vl>;
using ll = pair<l,l>; using vll = vector<ll>; using vvll = vector<vll>;
using lu = unsigned long long;
usin... | 26.830189 | 73 | 0.552039 | [
"vector"
] |
b694bfc2c6583efd497d3a11ab87a8591138b653 | 606 | cpp | C++ | PAT (Advanced Level) Practice/1009 Product of Polynomials (25).cpp | vuzway/PAT | 5db8ca9295b51ad9e99c815a46e4ac764d7d06c1 | [
"MIT"
] | 5 | 2020-02-10T08:26:19.000Z | 2020-07-09T00:11:16.000Z | PAT (Advanced Level) Practice/1009 Product of Polynomials (25).cpp | Assassin2016/zju_data_structures_and_algorithms_in_MOOC | 5db8ca9295b51ad9e99c815a46e4ac764d7d06c1 | [
"MIT"
] | null | null | null | PAT (Advanced Level) Practice/1009 Product of Polynomials (25).cpp | Assassin2016/zju_data_structures_and_algorithms_in_MOOC | 5db8ca9295b51ad9e99c815a46e4ac764d7d06c1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
double a[1010], b[2020];
int main() {
int k1, k2, e, cnt = 0;
double c;
cin >> k1;
for (int i = 0; i < k1; i++) {
scanf("%d%lf", &e, &c);
a[e] += c;
}
cin >> k2;
for (int i = 0; i < k2; i++) {
scanf("%d%lf", &e, &c);
for (int j = 0; j < 1010; j++... | 19.548387 | 46 | 0.462046 | [
"vector"
] |
b696a5255c38f223a31553bbd936424333c8fe9e | 47,927 | cpp | C++ | dali-toolkit/internal/controls/buttons/button-impl.cpp | zyndor/dali-toolkit | 9e3fd659c4d25706ab65345bc7c562ac27248325 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | dali-toolkit/internal/controls/buttons/button-impl.cpp | zyndor/dali-toolkit | 9e3fd659c4d25706ab65345bc7c562ac27248325 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | dali-toolkit/internal/controls/buttons/button-impl.cpp | zyndor/dali-toolkit | 9e3fd659c4d25706ab65345bc7c562ac27248325 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 35.266372 | 212 | 0.682037 | [
"object",
"transform"
] |
b69a115ff9938d3802cbef85b97a8f8a65a6ffae | 2,470 | cpp | C++ | ui/tests/typing_game.cpp | dobson156/irc_client | 9afc098087a64c88f599e3dae956b7be1407bb96 | [
"BSL-1.0"
] | 1 | 2019-07-13T18:43:38.000Z | 2019-07-13T18:43:38.000Z | ui/tests/typing_game.cpp | dobson156/irc_client | 9afc098087a64c88f599e3dae956b7be1407bb96 | [
"BSL-1.0"
] | null | null | null | ui/tests/typing_game.cpp | dobson156/irc_client | 9afc098087a64c88f599e3dae956b7be1407bb96 | [
"BSL-1.0"
] | null | null | null | #include <console.hpp>
#include <boost/algorithm/string.hpp> //starts_with
#include <chrono>
#include <string>
#include <random>
#include <vector>
#include <fstream>
#include <sstream>
#include <iterator>
#include <algorithm>
class stentence_maker {
using isi=std::istream_iterator<std::string>;
std::vector<std::st... | 24.7 | 71 | 0.643725 | [
"vector"
] |
b69bd5ff4f796e08620dafbadb6d978f12c4f9c0 | 2,325 | cpp | C++ | src/sse/Handler.cpp | jgorset/eventhub | 189f3e464fec97df184ed0408edcd6768a0c41c3 | [
"MIT"
] | null | null | null | src/sse/Handler.cpp | jgorset/eventhub | 189f3e464fec97df184ed0408edcd6768a0c41c3 | [
"MIT"
] | null | null | null | src/sse/Handler.cpp | jgorset/eventhub | 189f3e464fec97df184ed0408edcd6768a0c41c3 | [
"MIT"
] | null | null | null | #include <functional>
#include <memory>
#include <string>
#include <vector>
#include "sse/Handler.hpp"
#include "sse/Response.hpp"
#include "http/Response.hpp"
#include "Common.hpp"
#include "Util.hpp"
#include "Server.hpp"
#include "Config.hpp"
#include "Connection.hpp"
#include "ConnectionWorker.hpp"
#include "Handl... | 27.034884 | 102 | 0.666237 | [
"vector"
] |
b69c3aa69ee317b85b763ad62901da429b2d6b60 | 1,681 | cpp | C++ | 802/B[ Heidi and Library (medium) ].cpp | mejanvijay/codeforces-jvj_iit-submissions | 2a2aac7e93ca92e75887eff92361174aa36207c8 | [
"MIT"
] | null | null | null | 802/B[ Heidi and Library (medium) ].cpp | mejanvijay/codeforces-jvj_iit-submissions | 2a2aac7e93ca92e75887eff92361174aa36207c8 | [
"MIT"
] | null | null | null | 802/B[ Heidi and Library (medium) ].cpp | mejanvijay/codeforces-jvj_iit-submissions | 2a2aac7e93ca92e75887eff92361174aa36207c8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define sd(x) scanf("%d",&x)
#define su(x) scanf("%u",&x)
#define slld(x) scanf("%lld",&x)
#define sc(x) scanf("%c",&x)
#define ss(x) scanf("%s",x)
#define sf(x) scanf("%f",&x)
#define slf(x) scanf("%lf",&x)
#define ll long long int
#define mod(x,n) (x+n)%n... | 18.271739 | 47 | 0.477692 | [
"vector"
] |
b6ad74371b4d71008592440e35150b889848f5fc | 2,239 | cpp | C++ | src/pacs.cpp | chandu1263/openGL | 5d1a9ae1e1cdca06ad5d8cde60da907321f305bc | [
"MIT"
] | null | null | null | src/pacs.cpp | chandu1263/openGL | 5d1a9ae1e1cdca06ad5d8cde60da907321f305bc | [
"MIT"
] | null | null | null | src/pacs.cpp | chandu1263/openGL | 5d1a9ae1e1cdca06ad5d8cde60da907321f305bc | [
"MIT"
] | null | null | null | #include "pacs.h"
#include "main.h"
Pacs::Pacs(float x, float y, color_t color,float r,double speed,int a) {
this->position = glm::vec3(x, y, 0);
this->rotation = 0;
this->appear=1;
this->pacflag=1;
this->speed=speed;
this->r=r;
GLfloat vertex_buffer_data[360*9];
float angle=0;
this... | 25.443182 | 100 | 0.557392 | [
"object",
"model"
] |
b6b0367f3db3a52e7e4829cbba61a19ae4fcb6a3 | 2,391 | cpp | C++ | Bicoloring2/bicoloringanalizer.cpp | informatik01/programming-tasks | 2955e67173c5482206dd4a0c59bda1d9e2703dd5 | [
"MIT"
] | null | null | null | Bicoloring2/bicoloringanalizer.cpp | informatik01/programming-tasks | 2955e67173c5482206dd4a0c59bda1d9e2703dd5 | [
"MIT"
] | null | null | null | Bicoloring2/bicoloringanalizer.cpp | informatik01/programming-tasks | 2955e67173c5482206dd4a0c59bda1d9e2703dd5 | [
"MIT"
] | null | null | null | #include <fstream>
#include <iostream>
#include <stdexcept>
#include <queue>
#include "BicoloringAnalizer.h"
BicoloringAnalizer::BicoloringAnalizer(){}
BicoloringAnalizer::~BicoloringAnalizer(){}
void BicoloringAnalizer::analizeGraphs(string fileName)
{
int numOfVertices;
int numOfEdges;
int vertex;
int adjacentV... | 24.649485 | 103 | 0.671267 | [
"vector"
] |
b6c18e6aa14386ec11025b4ca151f7ee15b2fff7 | 1,759 | cpp | C++ | src/dicom/Patient.cpp | RWTHmediTEC/CarnaDICOM | b767cc5f7484b85d24b7557d5d86efebad57b2ef | [
"BSD-3-Clause"
] | null | null | null | src/dicom/Patient.cpp | RWTHmediTEC/CarnaDICOM | b767cc5f7484b85d24b7557d5d86efebad57b2ef | [
"BSD-3-Clause"
] | 1 | 2015-07-25T13:26:42.000Z | 2015-07-25T13:26:42.000Z | src/dicom/Patient.cpp | RWTHmediTEC/CarnaDICOM | b767cc5f7484b85d24b7557d5d86efebad57b2ef | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2010 - 2015 Leonid Kostrykin
*
* Chair of Medical Engineering (mediTEC)
* RWTH Aachen University
* Pauwelsstr. 20
* 52074 Aachen
* Germany
*
*/
#include <Carna/dicom/Patient.h>
#include <Carna/dicom/Study.h>
#include <algorithm>
#include <map>
namespace Carna
{
namespace dicom
{
... | 19.764045 | 98 | 0.495736 | [
"vector"
] |
b6c57d7b5f514bc8bdf6b575b3a0281da41b16f0 | 5,907 | cpp | C++ | Server/src/Services/Feature/OpUpdateFeatures.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | Server/src/Services/Feature/OpUpdateFeatures.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | Server/src/Services/Feature/OpUpdateFeatures.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 1 | 2021-12-29T10:46:12.000Z | 2021-12-29T10:46:12.000Z | //
// Copyright (C) 2004-2011 by Autodesk, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of version 2.1 of the GNU Lesser
// General Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be use... | 36.239264 | 130 | 0.622651 | [
"object"
] |
b6c91d0aa9c6aa6f52343608eac8c2024e0e4cf1 | 536 | cpp | C++ | SDLtest/PathGen.cpp | asderfghj/AI-Pathfinding-Demo | 48737c999c4bb8f73543de05088001565ad7cc77 | [
"MIT"
] | null | null | null | SDLtest/PathGen.cpp | asderfghj/AI-Pathfinding-Demo | 48737c999c4bb8f73543de05088001565ad7cc77 | [
"MIT"
] | null | null | null | SDLtest/PathGen.cpp | asderfghj/AI-Pathfinding-Demo | 48737c999c4bb8f73543de05088001565ad7cc77 | [
"MIT"
] | null | null | null | /// @file PathGen.cpp
/// @brief The function to generate a path
#include "pathgen.h"
std::vector<node*> GeneratePath(node *_endnode)
{
std::vector<node*> path;
node* currentpathpoint;
path.push_back(_endnode);
currentpathpoint = path.front();
while (currentpathpoint->Getm_startNode() != true && currentpathpoi... | 28.210526 | 95 | 0.712687 | [
"vector"
] |
b6cf6b2ea34a7ea161ecde3d9864c7110d340eaf | 5,951 | cpp | C++ | src/paintown-engine/object/stimulation.cpp | marstau/shinsango | d9468787ae8e18fa478f936770d88e9bf93c11c0 | [
"BSD-3-Clause"
] | 1 | 2021-06-16T15:25:47.000Z | 2021-06-16T15:25:47.000Z | src/paintown-engine/object/stimulation.cpp | marstau/shinsango | d9468787ae8e18fa478f936770d88e9bf93c11c0 | [
"BSD-3-Clause"
] | null | null | null | src/paintown-engine/object/stimulation.cpp | marstau/shinsango | d9468787ae8e18fa478f936770d88e9bf93c11c0 | [
"BSD-3-Clause"
] | null | null | null | #include "stimulation.h"
#include "object.h"
#include "util/graphics/bitmap.h"
#include "util/token.h"
#include "util/token_exception.h"
#include "character.h"
#include "draw-effect.h"
namespace Paintown{
Stimulation::Stimulation(){
}
Stimulation::Stimulation( const Stimulation & copy ){
}
void Stimulation::stimula... | 26.566964 | 144 | 0.685431 | [
"object"
] |
b6d2c9fd275367c42a248476a52b8ac1f1ebc71e | 2,084 | cpp | C++ | competitive programming/codeforces/266B - Queue at the School.cpp | sureshmangs/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | 16 | 2020-06-02T19:22:45.000Z | 2022-02-05T10:35:28.000Z | competitive programming/codeforces/266B - Queue at the School.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | null | null | null | competitive programming/codeforces/266B - Queue at the School.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | 2 | 2020-08-27T17:40:06.000Z | 2022-02-05T10:33:52.000Z | /*
During the break the schoolchildren, boys and girls, formed a queue of n people in the canteen. Initially the children stood in the order they entered the canteen. However, after a while the boys started feeling awkward for standing in front of the girls in the queue and they started letting the girls move forward e... | 29.771429 | 424 | 0.710173 | [
"transform"
] |
b6d6a5f7a1ed6c27eba26b65856290a5f4c75278 | 3,677 | cpp | C++ | kernel/devices/ps2/Ps2Mouse.cpp | DeanoBurrito/northport | 6da490b02bfe7d0a12a25316db879ecc249be1c7 | [
"MIT"
] | 19 | 2021-12-10T12:48:44.000Z | 2022-03-30T09:17:14.000Z | kernel/devices/ps2/Ps2Mouse.cpp | DeanoBurrito/northport | 6da490b02bfe7d0a12a25316db879ecc249be1c7 | [
"MIT"
] | 24 | 2021-11-30T10:00:05.000Z | 2022-03-29T10:19:21.000Z | kernel/devices/ps2/Ps2Mouse.cpp | DeanoBurrito/northport | 6da490b02bfe7d0a12a25316db879ecc249be1c7 | [
"MIT"
] | 2 | 2021-11-24T00:52:10.000Z | 2021-12-27T23:47:32.000Z | #include <devices/ps2/Ps2Mouse.h>
#include <devices/ps2/Ps2Driver.h>
#include <devices/IoApic.h>
#include <devices/Keyboard.h>
#include <devices/Mouse.h>
#include <Platform.h>
#include <Cpu.h>
#include <Log.h>
namespace Kernel::Devices::Ps2
{
void Ps2Mouse::Init()
{
state = DeviceState::Initializing;
... | 31.698276 | 97 | 0.614903 | [
"vector"
] |
b6dadc3cfa5ec044e76f123527886233b05c9479 | 6,210 | cpp | C++ | src/Patch/InstrRule.cpp | pistach3/QBDI | ff94f9c6ed18d5271013f0fcc77f6996d32db3cf | [
"Apache-2.0"
] | null | null | null | src/Patch/InstrRule.cpp | pistach3/QBDI | ff94f9c6ed18d5271013f0fcc77f6996d32db3cf | [
"Apache-2.0"
] | null | null | null | src/Patch/InstrRule.cpp | pistach3/QBDI | ff94f9c6ed18d5271013f0fcc77f6996d32db3cf | [
"Apache-2.0"
] | null | null | null | /*
* This file is part of QBDI.
*
* Copyright 2017 - 2021 Quarkslab
*
* 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 re... | 37.409639 | 80 | 0.639775 | [
"vector"
] |
b6e24ef7a528ea335a4dcc36fe4c66c4e613672e | 769 | hpp | C++ | src/hazel/renderer/renderer.hpp | aceiii/hazel-mac | 10c61fd9ca371c49828c074ff88a263cb4ee275a | [
"Apache-2.0"
] | 1 | 2021-01-11T21:07:04.000Z | 2021-01-11T21:07:04.000Z | src/hazel/renderer/renderer.hpp | aceiii/hazel-mac | 10c61fd9ca371c49828c074ff88a263cb4ee275a | [
"Apache-2.0"
] | null | null | null | src/hazel/renderer/renderer.hpp | aceiii/hazel-mac | 10c61fd9ca371c49828c074ff88a263cb4ee275a | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "hazel/renderer/orthographic_camera.hpp"
#include "hazel/renderer/render_command.hpp"
#include "hazel/renderer/renderer_api.hpp"
#include "hazel/renderer/shader.hpp"
#include "hazel/renderer/vertex_array.hpp"
namespace hazel
{
class Renderer
{
public:
static void init();
static void on_wind... | 21.971429 | 69 | 0.728218 | [
"transform"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.