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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
330614f3c27b5b56c46f7d9136c9f5dd5e08c039 | 729 | cpp | C++ | source/Ch18/drill/Drill18_2.cpp | Atroox/UDProg-Introduction | ac0ddca66825480c0e3c8fe2d93ba2a57da4068f | [
"CC0-1.0"
] | null | null | null | source/Ch18/drill/Drill18_2.cpp | Atroox/UDProg-Introduction | ac0ddca66825480c0e3c8fe2d93ba2a57da4068f | [
"CC0-1.0"
] | null | null | null | source/Ch18/drill/Drill18_2.cpp | Atroox/UDProg-Introduction | ac0ddca66825480c0e3c8fe2d93ba2a57da4068f | [
"CC0-1.0"
] | null | null | null | #include <iostream>
#include <stdexcept>
#include <vector>
using namespace std;
vector<int> gv {1, 2, 4, 8, 16, 32, 64, 128, 256, 512};
void f(vector<int> v)
{
vector<int> lv(10);
lv = v;
for (auto& a : lv)
cout << a << '\t';
cout << '\n';
vector<int> lv2 = v;
for (auto& a : lv2)
... | 17.357143 | 55 | 0.470508 | [
"vector"
] |
330cce7fae9c8f55ed4b7561fdba58d8d2fe566e | 3,590 | hxx | C++ | include/Algorithms.hxx | nilsalex/tensor-trees | 48b5b4f6932705bac7160bb3379f6066222f9b70 | [
"MIT"
] | null | null | null | include/Algorithms.hxx | nilsalex/tensor-trees | 48b5b4f6932705bac7160bb3379f6066222f9b70 | [
"MIT"
] | null | null | null | include/Algorithms.hxx | nilsalex/tensor-trees | 48b5b4f6932705bac7160bb3379f6066222f9b70 | [
"MIT"
] | null | null | null | #pragma once
#include <functional>
#include <map>
#include <set>
#include <gmpxx.h>
#include "Tree.hxx"
#include "Node.hxx"
std::string printTree (std::unique_ptr<Tree<Node>> const & tree);
std::string printTreeMaple (std::unique_ptr<Tree<Node>> const & tree);
std::string printBranchMaple (std::vector<Node *> const... | 41.264368 | 195 | 0.723955 | [
"vector"
] |
33131307964a7b6a5b8fc27234a728566045e2cc | 5,038 | cc | C++ | tests/unit/base/SGObjectAll_unittest.cc | Arpit2601/shogun | e509f8c57f47dc74b3f791d450a70b770d11582a | [
"BSD-3-Clause"
] | 1 | 2019-10-02T11:10:08.000Z | 2019-10-02T11:10:08.000Z | tests/unit/base/SGObjectAll_unittest.cc | Arpit2601/shogun | e509f8c57f47dc74b3f791d450a70b770d11582a | [
"BSD-3-Clause"
] | null | null | null | tests/unit/base/SGObjectAll_unittest.cc | Arpit2601/shogun | e509f8c57f47dc74b3f791d450a70b770d11582a | [
"BSD-3-Clause"
] | 1 | 2020-06-02T09:15:40.000Z | 2020-06-02T09:15:40.000Z | /*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: Heiko Strathmann
*/
#include "utils/Utils.h"
#include "utils/SGObjectIterator.h"
#include <gtest/gtest.h>
#include <iterator>
#include <shogun/base/ShogunEnv.h>
#include <shogun/base/Parameter.h>
#include <shogun/base/SGO... | 29.121387 | 101 | 0.70524 | [
"vector",
"transform"
] |
331752e828c8412a1b536c323ed8cc5f84a91af2 | 25,114 | cpp | C++ | lib/stages/visAccumulate.cpp | eschnett/kotekan | 81918288147435cef8ad52db05da0988c999a7dd | [
"MIT"
] | null | null | null | lib/stages/visAccumulate.cpp | eschnett/kotekan | 81918288147435cef8ad52db05da0988c999a7dd | [
"MIT"
] | null | null | null | lib/stages/visAccumulate.cpp | eschnett/kotekan | 81918288147435cef8ad52db05da0988c999a7dd | [
"MIT"
] | null | null | null | #include "visAccumulate.hpp"
#include "Config.hpp" // for Config
#include "Hash.hpp" // for operator!=
#include "StageFactory.hpp" // for REGISTER_KOTEKAN_STAGE, StageMakerTemplate
#include "Telescope.hpp" // for Telescope
#include "buffer.h" // for register_producer, ... | 41.305921 | 100 | 0.615075 | [
"vector",
"transform"
] |
332028c5a854d265a32093fcf5565d82bd6bba84 | 414 | hpp | C++ | include/sge/nodes/body.hpp | smaudet/sdl-game-engine | e49a001541c6e30c0cc0ee6aa04ee6ba2b5f4af7 | [
"MIT"
] | 75 | 2017-07-19T14:00:55.000Z | 2022-01-10T21:50:44.000Z | include/sge/nodes/body.hpp | smaudet/sdl-game-engine | e49a001541c6e30c0cc0ee6aa04ee6ba2b5f4af7 | [
"MIT"
] | 3 | 2017-04-05T00:57:33.000Z | 2018-11-14T07:48:40.000Z | include/sge/nodes/body.hpp | smaudet/sdl-game-engine | e49a001541c6e30c0cc0ee6aa04ee6ba2b5f4af7 | [
"MIT"
] | 12 | 2017-09-19T09:51:48.000Z | 2021-12-05T18:11:53.000Z | #ifndef __SGE_BODY_NODE_HPP
#define __SGE_BODY_NODE_HPP
#include <sge/nodes/position.hpp>
#include <sge/physics/manifold.hpp>
namespace sge
{
class BodyNode : public PositionNode
{
using PositionNode::PositionNode;
public:
virtual std::vector<std::string> mro() const;
... | 19.714286 | 61 | 0.676329 | [
"vector"
] |
3322d3bdea98e9ca68f2018181a113e204de0cce | 244 | cpp | C++ | ProfessionalC++/VectorIterators/ConstIterator.cpp | zzragida/CppExamples | d627b097efc04209aa4012f7b7f9d82858da3f2d | [
"Apache-2.0"
] | null | null | null | ProfessionalC++/VectorIterators/ConstIterator.cpp | zzragida/CppExamples | d627b097efc04209aa4012f7b7f9d82858da3f2d | [
"Apache-2.0"
] | null | null | null | ProfessionalC++/VectorIterators/ConstIterator.cpp | zzragida/CppExamples | d627b097efc04209aa4012f7b7f9d82858da3f2d | [
"Apache-2.0"
] | null | null | null | #include <vector>
#include <string>
#include <iostream>
using namespace std;
int main()
{
vector<string> stringVector(10, "hello");
for (auto it = stringVector.cbegin();
it != stringVector.cend(); ++it)
{
cout << *it << endl;
}
}
| 14.352941 | 42 | 0.627049 | [
"vector"
] |
3328db4523cdcae44c3ac80da69c2eb08a08298b | 6,167 | cpp | C++ | 600-700/671.cpp | Thomaw/Project-Euler | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | [
"MIT"
] | null | null | null | 600-700/671.cpp | Thomaw/Project-Euler | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | [
"MIT"
] | null | null | null | 600-700/671.cpp | Thomaw/Project-Euler | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
const int MAXN = 105;
const int P = 1000004321;
typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;
template <typename T> void chkmax(T &x, T y) {x = max(x, y); }
template <typename T> void chkmin(T &x, T y) {x = min(x, y); }
template <typ... | 29.227488 | 79 | 0.471704 | [
"vector"
] |
06ac7011303c68570640936ddb0ecba22d02c335 | 1,558 | cpp | C++ | src/Core/Geometry/Lines.cpp | kokizzu/OmniPhotos | b8aa4c90b87b87b087bca8de3cf0e2b6d13f84da | [
"Apache-2.0"
] | 129 | 2020-12-13T02:22:05.000Z | 2022-03-22T02:45:39.000Z | src/Core/Geometry/Lines.cpp | kokizzu/OmniPhotos | b8aa4c90b87b87b087bca8de3cf0e2b6d13f84da | [
"Apache-2.0"
] | 4 | 2020-12-20T20:18:05.000Z | 2021-06-03T10:51:55.000Z | src/Core/Geometry/Lines.cpp | kokizzu/OmniPhotos | b8aa4c90b87b87b087bca8de3cf0e2b6d13f84da | [
"Apache-2.0"
] | 23 | 2020-12-15T15:11:18.000Z | 2022-03-18T00:15:30.000Z | #include "Lines.hpp"
#include "Core/GL/GLRenderModel.hpp"
#include "Core/Geometry/Primitive.hpp"
using namespace std;
// Uniform lines
Lines::Lines(const std::vector<float>& _vertices) :
GLRenderable(_vertices)
{
}
// Coloured lines
Lines::Lines(const std::vector<float>& _vertices, const std::vector<float>& _... | 25.966667 | 93 | 0.740051 | [
"geometry",
"vector",
"model"
] |
06b4b53c10ec965059d7e07d5d91b157d9cd04cf | 5,677 | cpp | C++ | AtCoder/EduDP/W.cpp | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | 2 | 2018-12-11T14:37:24.000Z | 2022-01-23T18:11:54.000Z | AtCoder/EduDP/W.cpp | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | null | null | null | AtCoder/EduDP/W.cpp | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | null | null | null | // clang-format off
#include<bits/stdc++.h>
// g++ -std=c++17 -Wl,-stack_size -Wl,0x10000000 main.cpp
#define mt make_tuple
#define mp make_pair
#define pu push_back
#define INF 1e18
#define MOD 1000000007
#define EPS 1e-6
#define ll long long int
#define ld long double
#define fi first
#define se second
#define all(v)... | 32.815029 | 222 | 0.481064 | [
"vector"
] |
06c28b5d6ec8665d675444aa4252f3c93f6061ee | 1,584 | hpp | C++ | icon/endpoint/basic_endpoint/basic_endpoint.hpp | pblxptr/icon | 4426632bcc72f4f9fabfa5e23bf8b3d170632435 | [
"MIT"
] | null | null | null | icon/endpoint/basic_endpoint/basic_endpoint.hpp | pblxptr/icon | 4426632bcc72f4f9fabfa5e23bf8b3d170632435 | [
"MIT"
] | null | null | null | icon/endpoint/basic_endpoint/basic_endpoint.hpp | pblxptr/icon | 4426632bcc72f4f9fabfa5e23bf8b3d170632435 | [
"MIT"
] | null | null | null | #pragma once
#include <icon/icon.hpp>
#include <icon/core/identity.hpp>
#include <icon/core/protocol.hpp>
#include <icon/endpoint/base_endpoint.hpp>
#include <icon/endpoint/consumer_handler.hpp>
#include <icon/endpoint/endpoint.hpp>
#include <icon/endpoint/request.hpp>
#include <icon/endpoint/response.hpp>
#include <i... | 32.326531 | 104 | 0.766414 | [
"vector"
] |
06c8674ca6e0fb84c74653fcfe77c9877da97865 | 3,399 | cpp | C++ | src/Comment.cpp | EYH0602/Terminal-Facebook | 88dd4b692b43b491d877b2a0c79522f49a14e0c3 | [
"MIT"
] | null | null | null | src/Comment.cpp | EYH0602/Terminal-Facebook | 88dd4b692b43b491d877b2a0c79522f49a14e0c3 | [
"MIT"
] | null | null | null | src/Comment.cpp | EYH0602/Terminal-Facebook | 88dd4b692b43b491d877b2a0c79522f49a14e0c3 | [
"MIT"
] | null | null | null | #include "Comment.h"
using namespace std;
Comment::Comment(Json::Value jv_arg)
{
#ifdef _DEBUG_MEMORY_LEAK_
cout << "Comment Created" << endl;
#endif
// if this json is an array, exit
if (jv_arg.isArray())
throw runtime_error("Exception: Json Value is array (Comment)");
// get two ids
stri... | 27.192 | 79 | 0.601942 | [
"vector"
] |
06d19cab8c065c841f735b663a1706022716f69d | 24,008 | cc | C++ | tuplex/core/src/physical/HashJoinStage.cc | ms705/tuplex | c395041934768e51952c4fa783775b810b2fdec8 | [
"Apache-2.0"
] | 778 | 2021-06-30T03:40:43.000Z | 2022-03-28T20:40:20.000Z | tuplex/core/src/physical/HashJoinStage.cc | ms705/tuplex | c395041934768e51952c4fa783775b810b2fdec8 | [
"Apache-2.0"
] | 41 | 2021-07-05T17:55:56.000Z | 2022-03-31T15:27:19.000Z | tuplex/core/src/physical/HashJoinStage.cc | ms705/tuplex | c395041934768e51952c4fa783775b810b2fdec8 | [
"Apache-2.0"
] | 39 | 2021-07-01T02:40:33.000Z | 2022-03-30T21:46:55.000Z | //--------------------------------------------------------------------------------------------------------------------//
// //
// Tuplex: Blazing Fast Python Data Scien... | 50.121086 | 144 | 0.522534 | [
"vector"
] |
06d3eca774071539c74ca6e78f3534e0157c8fe4 | 8,658 | cpp | C++ | Win32-Edit/Edit2.cpp | vectorlist/Win32-Fundamentals-Dev | 51cb2486f2e6f50737a9b5974ee7e4e24b57d860 | [
"MIT"
] | 1 | 2022-03-17T02:48:19.000Z | 2022-03-17T02:48:19.000Z | Win32-Edit/Edit2.cpp | vectorlist/Win32-Fundamentals-Dev | 51cb2486f2e6f50737a9b5974ee7e4e24b57d860 | [
"MIT"
] | null | null | null | Win32-Edit/Edit2.cpp | vectorlist/Win32-Fundamentals-Dev | 51cb2486f2e6f50737a9b5974ee7e4e24b57d860 | [
"MIT"
] | null | null | null | #pragma once
#define no_init_all
#define WIN32_LEAN_AND_MEAN
#define _CRT_SECURE_NO_WARNINGS
#include <Windows.h>
#include <iostream>
#include <vector>
#include <strsafe.h>
#include <Richedit.h>
#include <CommCtrl.h>
#pragma comment(lib, "comctl32.lib")
#pragma comment(linker, "\"/manifestdependency:type='win32' \
nam... | 25.390029 | 96 | 0.677524 | [
"vector"
] |
06dca887bc7372853de39cce8777a5cac3f76111 | 1,680 | cpp | C++ | visplugin/GizmodLibVisualCInterface.cpp | pauljeremyturner/gizmod | 537b8c25360d907b1fde631336ccf723f38d4312 | [
"Apache-2.0"
] | null | null | null | visplugin/GizmodLibVisualCInterface.cpp | pauljeremyturner/gizmod | 537b8c25360d907b1fde631336ccf723f38d4312 | [
"Apache-2.0"
] | null | null | null | visplugin/GizmodLibVisualCInterface.cpp | pauljeremyturner/gizmod | 537b8c25360d907b1fde631336ccf723f38d4312 | [
"Apache-2.0"
] | null | null | null | /**
*********************************************************************
*************************************************************************
***
*** \file GizmodLibVisualCInterface.cpp
*** \brief GizmodLibVisualCInterface class body
***
*****************************************
************************... | 24.705882 | 77 | 0.566667 | [
"render",
"object"
] |
06dcd009826fb82c622f0febb6a5be4122016706 | 1,405 | hpp | C++ | include/avatar_locomanipulation/helpers/pseudo_inverse.hpp | stevenjj/icra2020locomanipulation | 414085b68cc1b3b24f7b920b543bba9d95350c16 | [
"MIT"
] | 5 | 2020-01-06T11:43:18.000Z | 2021-12-14T22:59:09.000Z | include/avatar_locomanipulation/helpers/pseudo_inverse.hpp | stevenjj/icra2020locomanipulation | 414085b68cc1b3b24f7b920b543bba9d95350c16 | [
"MIT"
] | null | null | null | include/avatar_locomanipulation/helpers/pseudo_inverse.hpp | stevenjj/icra2020locomanipulation | 414085b68cc1b3b24f7b920b543bba9d95350c16 | [
"MIT"
] | 2 | 2020-09-03T16:08:34.000Z | 2022-02-17T11:13:49.000Z | #ifndef ALM_PSEUDOINVERSE
#define ALM_PSEUDOINVERSE
#include <Eigen/Dense>
#include <Eigen/SVD>
#include <vector>
namespace math_utils{
void pseudoInverse(const Eigen::MatrixXd & A,
Eigen::MatrixXd & Apinv,
double tolerance,
unsigned int computationOpt... | 39.027778 | 98 | 0.585765 | [
"vector"
] |
06e0c6955e9d36ed7ad0dfd5a110bbb9b4ce263f | 4,046 | hh | C++ | include/idf/DualShock3.hh | greck2908/IDF | 0882cc35d88b96b0aea55e112060779654f040a6 | [
"NASA-1.3"
] | 84 | 2016-06-15T21:26:02.000Z | 2022-03-12T15:09:57.000Z | include/idf/DualShock3.hh | greck2908/IDF | 0882cc35d88b96b0aea55e112060779654f040a6 | [
"NASA-1.3"
] | 44 | 2016-10-19T17:35:01.000Z | 2022-03-11T17:20:51.000Z | include/idf/DualShock3.hh | greck2908/IDF | 0882cc35d88b96b0aea55e112060779654f040a6 | [
"NASA-1.3"
] | 46 | 2016-06-25T00:18:52.000Z | 2019-12-19T11:13:15.000Z | /*
PURPOSE:
LIBRARY DEPENDENCIES: (
(idf/DualShock3.cpp)
)
*/
/**
* @trick_parse{everything}
* @trick_link_dependency{idf/DualShock3.cpp}
*/
#ifndef DUAL_SHOCK_3_HH
#define DUAL_SHOCK_3_HH
#include "idf/DualShock.hh"
#include "idf/SingleInput.hh"
namespace idf {
/**
* Sony DUALSHOCK3 SIXAXIS game controller's ... | 33.438017 | 108 | 0.635195 | [
"vector"
] |
06e53b17a9fa5e7879d31975faba38a2cd983c77 | 3,019 | hpp | C++ | others/optimizers/particle_swarm_optimzer/optimizer_bits/pso/test_function/pso_test_function.hpp | CarbonDDR/al-go-rithms | 8e65affbe812931b7dde0e2933eb06c0f44b4130 | [
"CC0-1.0"
] | 1,253 | 2017-06-06T07:19:25.000Z | 2022-03-30T17:07:58.000Z | others/optimizers/particle_swarm_optimzer/optimizer_bits/pso/test_function/pso_test_function.hpp | rishabh99-rc/al-go-rithms | 4df20d7ef7598fda4bc89101f9a99aac94cdd794 | [
"CC0-1.0"
] | 554 | 2017-09-29T18:56:01.000Z | 2022-02-21T15:48:13.000Z | others/optimizers/particle_swarm_optimzer/optimizer_bits/pso/test_function/pso_test_function.hpp | rishabh99-rc/al-go-rithms | 4df20d7ef7598fda4bc89101f9a99aac94cdd794 | [
"CC0-1.0"
] | 2,226 | 2017-09-29T19:59:59.000Z | 2022-03-25T08:59:55.000Z |
#ifndef OPTIMIZER_BITS_PSO_TEST_FUNCTION_PSO_TEST_FUNCTION_HPP
#define OPTIMIZER_BITS_PSO_TEST_FUNCTION_PSO_TEST_FUNCTION_HPP
namespace optimization
{
namespace testFunction
{
class PSOTestFunction
{
public:
/**
* PSOTestFunction is the function which we will optimize.
*
* @param vecS... | 28.214953 | 99 | 0.62471 | [
"vector"
] |
06eec180f8a216220d0dc443a5d652e119f5d8c3 | 605 | cc | C++ | source/native/HostParasiteEvo.cc | kgskocelas/HostParasiteEvo | 449350bd7356da8b4137498425bf72091f0d2139 | [
"MIT"
] | null | null | null | source/native/HostParasiteEvo.cc | kgskocelas/HostParasiteEvo | 449350bd7356da8b4137498425bf72091f0d2139 | [
"MIT"
] | null | null | null | source/native/HostParasiteEvo.cc | kgskocelas/HostParasiteEvo | 449350bd7356da8b4137498425bf72091f0d2139 | [
"MIT"
] | null | null | null | /**
* @copyright Copyright (C) Katherine Skocelas, MIT Software license; see doc/LICENSE.md
* @date 2020.
*
* @file HostParasiteEvo.cc
* @brief Examining the co-evolution of hosts and parasites.
* @note Status: BETA
*
*/
#include <iostream>
#include "base/vector.h"
#include "config/command_line.h"
#inc... | 22.407407 | 89 | 0.68595 | [
"vector"
] |
06ef5bf7c0ca91cec2e304835d4fa69a107b31a3 | 1,589 | cpp | C++ | src/bits_of_matcha/engine/flow/graph/TensorMask.cpp | matcha-ai/matcha | c1375fc2bfc9fadcbd643fc1540e3ac470dd9408 | [
"MIT"
] | null | null | null | src/bits_of_matcha/engine/flow/graph/TensorMask.cpp | matcha-ai/matcha | c1375fc2bfc9fadcbd643fc1540e3ac470dd9408 | [
"MIT"
] | null | null | null | src/bits_of_matcha/engine/flow/graph/TensorMask.cpp | matcha-ai/matcha | c1375fc2bfc9fadcbd643fc1540e3ac470dd9408 | [
"MIT"
] | null | null | null | #include "bits_of_matcha/engine/flow/graph/TensorMask.h"
namespace matcha::engine {
TensorMask::TensorMask(Graph& graph, bool defaultValue)
: TensorDict(graph, defaultValue)
{}
TensorMask::TensorMask(Graph* graph, bool defaultValue)
: TensorDict(graph, defaultValue)
{}
TensorMask TensorMask::operator~() const ... | 20.636364 | 64 | 0.653241 | [
"vector",
"transform"
] |
06efe28c0b2576359878c5a040709e6afa8c98de | 44,621 | cpp | C++ | execution_path/source/path_manager/PathManager.cpp | spectreCEP/spectre_v1.0 | 30c4af0681f016880c4a78b51669d989d4539850 | [
"MIT"
] | null | null | null | execution_path/source/path_manager/PathManager.cpp | spectreCEP/spectre_v1.0 | 30c4af0681f016880c4a78b51669d989d4539850 | [
"MIT"
] | null | null | null | execution_path/source/path_manager/PathManager.cpp | spectreCEP/spectre_v1.0 | 30c4af0681f016880c4a78b51669d989d4539850 | [
"MIT"
] | null | null | null | /*
* PathManager.cpp
*
* Created on: 05.12.2016
* Author: sload
*/
#include "../../header/path_manager/PathManager.hpp"
#include "../../header/execution_path/Checkpoint.hpp"
#include "../../header/execution_path/ExecutionPath.hpp"
using namespace selection;
using namespace util;
using namespace profiler;
na... | 41.392393 | 120 | 0.599494 | [
"vector"
] |
06f26ba0a7e862ffc101c6b0ef31cc067ea00341 | 1,691 | cpp | C++ | android-28/android/view/textclassifier/TextClassification_Request.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-28/android/view/textclassifier/TextClassification_Request.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-28/android/view/textclassifier/TextClassification_Request.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../os/LocaleList.hpp"
#include "../../os/Parcel.hpp"
#include "../../../JString.hpp"
#include "../../../java/time/ZonedDateTime.hpp"
#include "./TextClassification_Request.hpp"
namespace android::view::textclassifier
{
// Fields
JObject TextClassification_Request::CREATOR()
{
return getStaticObjectFi... | 21.679487 | 90 | 0.703726 | [
"object"
] |
06f48a3b0780bf6f32a6fbbeb058765b39efadab | 13,923 | cpp | C++ | lib/popops/reduction/ReductionPlan.cpp | graphcore/poplibs | 3fe5a3ecafe995eddb72675d1b4a7af8a622009e | [
"MIT"
] | 95 | 2020-07-06T17:11:23.000Z | 2022-03-12T14:42:28.000Z | lib/popops/reduction/ReductionPlan.cpp | graphcore/poplibs | 3fe5a3ecafe995eddb72675d1b4a7af8a622009e | [
"MIT"
] | null | null | null | lib/popops/reduction/ReductionPlan.cpp | graphcore/poplibs | 3fe5a3ecafe995eddb72675d1b4a7af8a622009e | [
"MIT"
] | 14 | 2020-07-15T12:32:57.000Z | 2022-01-26T14:58:45.000Z | // Copyright (c) 2018 Graphcore Ltd. All rights reserved.
#include "ReductionPlan.hpp"
#include <algorithm>
#include <cassert>
#include <cmath>
#include <iostream>
#include <limits>
#include <numeric>
#include <boost/icl/interval_map.hpp>
#include "poplibs_support/logging.hpp"
#include <poputil/TileMapping.hpp>
#inc... | 38.355372 | 80 | 0.688501 | [
"vector"
] |
06f57fac6318991507d1300ddf5635ec7d86e2fc | 18,368 | cpp | C++ | src/Node.cpp | Sygmei/Kitanai | 745b93fc7a41f4f7eb84b588dc76dd375643c0a6 | [
"MIT"
] | 6 | 2017-12-30T12:16:04.000Z | 2021-05-23T00:08:22.000Z | src/Node.cpp | Mizugola/Kitanai | 745b93fc7a41f4f7eb84b588dc76dd375643c0a6 | [
"MIT"
] | null | null | null | src/Node.cpp | Mizugola/Kitanai | 745b93fc7a41f4f7eb84b588dc76dd375643c0a6 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <sstream>
#include <Node.hpp>
#include <Program.hpp>
#include <StdLib.hpp>
namespace ktn
{
bool Node::_execDebug = false;
bool Node::_compDebug = false;
bool Node::_dispMemAd = false;
int Node::NodeAmount = 0;
Node::Node(TokenType type)
{... | 45.805486 | 156 | 0.483885 | [
"vector"
] |
06fe15ebc9ee92a915bef7cab60a2b23c2cddd48 | 4,604 | cc | C++ | mts/src/model/QueryCoverJobListResult.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | mts/src/model/QueryCoverJobListResult.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | mts/src/model/QueryCoverJobListResult.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... | 41.107143 | 103 | 0.776933 | [
"object",
"vector",
"model"
] |
66096b9b0b5c99ec19886d251bc5c4fc101e6d0f | 2,271 | cc | C++ | tests/end_to_end/file_creation_client.cc | xicheng87/cppGFS2.0 | c17ee0b169516c6959bf7782ae98d309a3e9685b | [
"Apache-2.0"
] | 23 | 2021-05-01T19:14:12.000Z | 2022-03-31T08:02:19.000Z | tests/end_to_end/file_creation_client.cc | Michael-Tu/cppGFS2.0 | ce59d04a452697ec257ac3c27aa6c6fe1fd5f597 | [
"Apache-2.0"
] | 23 | 2020-04-29T02:56:25.000Z | 2021-01-25T20:49:27.000Z | tests/end_to_end/file_creation_client.cc | xicheng87/cppGFS2.0 | c17ee0b169516c6959bf7782ae98d309a3e9685b | [
"Apache-2.0"
] | 9 | 2021-08-22T06:48:18.000Z | 2022-03-30T14:36:08.000Z | #include <thread>
#include <vector>
#include "absl/flags/flag.h"
#include "absl/flags/parse.h"
#include "src/client/gfs_client.h"
#include "src/common/system_logger.h"
// TODO(Xi): Refactor the following and init() into a util.h as many tests
// may reuse this piece
ABSL_FLAG(std::string, config_path, "file_creation_t... | 32.442857 | 74 | 0.647292 | [
"vector"
] |
6609cca4425eddcc9b94aa70bb102b1190f6f89d | 2,291 | cpp | C++ | gamegio-library/src/gamegio/ParticlesItem.cpp | tril0byte/HGamer3D | 7979c67d9b4672a5b2d1a50320a6d47b1a97ff05 | [
"Apache-2.0"
] | 27 | 2015-06-08T16:45:47.000Z | 2022-02-22T14:40:52.000Z | gamegio-library/src/gamegio/ParticlesItem.cpp | tril0byte/HGamer3D | 7979c67d9b4672a5b2d1a50320a6d47b1a97ff05 | [
"Apache-2.0"
] | 18 | 2015-04-20T20:42:02.000Z | 2020-12-11T03:46:17.000Z | gamegio-library/src/gamegio/ParticlesItem.cpp | tril0byte/HGamer3D | 7979c67d9b4672a5b2d1a50320a6d47b1a97ff05 | [
"Apache-2.0"
] | 4 | 2017-06-20T13:24:18.000Z | 2021-10-07T19:18:03.000Z | // C++ part of bindings for graphics
// HGamer3D Library (A project to enable 3D game development in Haskell)
// Copyright 2018 Peter Althainz
//
// Distributed under the Apache License, Version 2.0
// (See attached file LICENSE or copy at
// http://www.apache.org/licenses/LICENSE-2.0)
//
// file: HGamer3D/gamegio-lib... | 27.60241 | 106 | 0.77739 | [
"3d"
] |
660eaed5fba1334979ccbb0495ee644df25d2a6d | 1,272 | cpp | C++ | src/fbw/src/InterpolatingLookupTable.cpp | erso44/a32nx | 8a134d1903f04bf0c722b6ae6af1467f62b72c01 | [
"MIT"
] | 1 | 2021-05-10T17:37:36.000Z | 2021-05-10T17:37:36.000Z | src/fbw/src/InterpolatingLookupTable.cpp | crazytimtimtim/a32nx | df3ae2169b153eb265c8759f029a7e9ffeca3eeb | [
"MIT"
] | null | null | null | src/fbw/src/InterpolatingLookupTable.cpp | crazytimtimtim/a32nx | df3ae2169b153eb265c8759f029a7e9ffeca3eeb | [
"MIT"
] | null | null | null | #include "InterpolatingLookupTable.h"
using namespace std;
void InterpolatingLookupTable::initialize(vector<pair<double, double>> mapping, double minimum, double maximum) {
mappingTable = std::move(mapping);
mappingMinimum = minimum;
mappingMaximum = maximum;
}
double InterpolatingLookupTable::get(double value... | 28.266667 | 114 | 0.647013 | [
"vector"
] |
66141f3cb961c402522a2c14067e776a9bc3b391 | 2,715 | hpp | C++ | third_party/boost/thread.hpp | madsys-dev/flashmob | 1ac0542ef10e2ee31f2c7d587b8c8d3376e98c80 | [
"MIT"
] | 10 | 2021-09-26T05:14:45.000Z | 2022-02-28T20:32:15.000Z | third_party/boost/thread.hpp | flashmobwalk/flashmob | 1ac0542ef10e2ee31f2c7d587b8c8d3376e98c80 | [
"MIT"
] | null | null | null | third_party/boost/thread.hpp | flashmobwalk/flashmob | 1ac0542ef10e2ee31f2c7d587b8c8d3376e98c80 | [
"MIT"
] | 2 | 2022-01-19T08:02:14.000Z | 2022-02-18T01:42:28.000Z | /**
* The code in this file are adapted from
* https://github.com/boostorg/thread/blob/4abafccff4bdeb4b5ac516ff0c2bc7c0dad8bafb/src/pthread/thread.cpp
*/
// Copyright (C) 2001-2003
// William E. Kempf
// Copyright (C) 2007-8 Anthony Williams
// (C) Copyright 2011-2012 Vicente J. Botet Escriba
//
// Distributed und... | 33.9375 | 106 | 0.577901 | [
"vector"
] |
661b5110b23676992bbe85841150e7dd678032cc | 1,641 | cpp | C++ | solutions/most_frequent_subtree_sum.cpp | kmykoh97/My-Leetcode | 0ffdea16c3025805873aafb6feffacaf3411a258 | [
"Apache-2.0"
] | null | null | null | solutions/most_frequent_subtree_sum.cpp | kmykoh97/My-Leetcode | 0ffdea16c3025805873aafb6feffacaf3411a258 | [
"Apache-2.0"
] | null | null | null | solutions/most_frequent_subtree_sum.cpp | kmykoh97/My-Leetcode | 0ffdea16c3025805873aafb6feffacaf3411a258 | [
"Apache-2.0"
] | null | null | null | // Given the root of a tree, you are asked to find the most frequent subtree sum. The subtree sum of a node is defined as the sum of all the node values formed by the subtree rooted at that node (including the node itself). So what is the most frequent subtree sum value? If there is a tie, return all the values with th... | 28.293103 | 353 | 0.602072 | [
"vector"
] |
661c28c42b0a0be2127891212337116009df9927 | 3,363 | cpp | C++ | classify.cpp | sathibault/greenlight-poc | bdc5fc22d33503cfcaba3597d757f9d26157a96d | [
"Apache-2.0"
] | null | null | null | classify.cpp | sathibault/greenlight-poc | bdc5fc22d33503cfcaba3597d757f9d26157a96d | [
"Apache-2.0"
] | null | null | null | classify.cpp | sathibault/greenlight-poc | bdc5fc22d33503cfcaba3597d757f9d26157a96d | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <time.h>
#include <opencv2/opencv.hpp>
#include <dlib/image_io.h>
#include <dlib/opencv/cv_image.h>
#include <dlib/image_processing/render_face_detections.h>
#include <dlib/svm_threaded.h>
using namespace cv;
extern void init_pose();
extern void update_dets(dlib::array2d<dlib::bgr_pixel>& ... | 34.670103 | 183 | 0.681237 | [
"shape",
"vector"
] |
6624e9fdcf6fc784e0fe02dfae2efb775ac8b58c | 11,287 | hpp | C++ | src/advance_functions.hpp | Pressio/pressio4py | 36676dbd112a7c7960ccbf302ff14d4376c819ec | [
"Unlicense",
"BSD-3-Clause"
] | 4 | 2020-07-06T20:01:39.000Z | 2022-03-05T09:23:40.000Z | src/advance_functions.hpp | Pressio/pressio4py | 36676dbd112a7c7960ccbf302ff14d4376c819ec | [
"Unlicense",
"BSD-3-Clause"
] | 19 | 2020-02-27T20:52:53.000Z | 2022-01-13T16:24:49.000Z | src/advance_functions.hpp | Pressio/pressio4py | 36676dbd112a7c7960ccbf302ff14d4376c819ec | [
"Unlicense",
"BSD-3-Clause"
] | 1 | 2022-03-03T16:05:09.000Z | 2022-03-03T16:05:09.000Z | /*
//@HEADER
// ************************************************************************
//
// types.hpp
// Pressio
// Copyright 2019
// National Technology & Engineering Solutions of Sandia, LLC (NTESS)
//
// Under the terms of Contract DE-NA0003525 with NTESS, the
//... | 33.894895 | 100 | 0.72331 | [
"object"
] |
662a8b07b10fe352468a21704e9f9bc7cc82a9ec | 2,099 | hpp | C++ | Renderer.hpp | Sobaka12345/FastSimpleRayTracer | b8db01558afb85e616a3f1abe92f017e79c265b9 | [
"MIT"
] | null | null | null | Renderer.hpp | Sobaka12345/FastSimpleRayTracer | b8db01558afb85e616a3f1abe92f017e79c265b9 | [
"MIT"
] | null | null | null | Renderer.hpp | Sobaka12345/FastSimpleRayTracer | b8db01558afb85e616a3f1abe92f017e79c265b9 | [
"MIT"
] | null | null | null | #ifndef RENDERER_HPP
#define RENDERER_HPP
#include <memory>
#include <vector>
#include <limits>
#include <glm/ext.hpp>
#include "figures.hpp"
#include "lights.hpp"
class Renderer
{
struct RenderSettings
{
glm::vec3 view_point = { 0.0f, 0.0f, 0.0f };
glm::vec3 view_dir = { 0.0f, 0.0f, 1.0f };... | 32.292308 | 141 | 0.684135 | [
"vector"
] |
662d0ec70479f43bcfa830ad67bd76341c500bd1 | 1,101 | cc | C++ | source/interface/pyG4UIExecutive.cc | drbenmorgan/geant4_pybind | d9c774a04156b1518795bafbd7819a1b8a03f7ea | [
"Unlicense"
] | null | null | null | source/interface/pyG4UIExecutive.cc | drbenmorgan/geant4_pybind | d9c774a04156b1518795bafbd7819a1b8a03f7ea | [
"Unlicense"
] | null | null | null | source/interface/pyG4UIExecutive.cc | drbenmorgan/geant4_pybind | d9c774a04156b1518795bafbd7819a1b8a03f7ea | [
"Unlicense"
] | null | null | null | #include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <G4UIExecutive.hh>
#include "typecast.hh"
#include "opaques.hh"
namespace py = pybind11;
void export_G4UIExecutive(py::module &m)
{
py::class_<G4UIExecutive>(m, "G4UIExecutive")
.def(py::init<>([](G4int argc, const std::vector<std::string> &... | 35.516129 | 99 | 0.599455 | [
"vector"
] |
663269680d71cd60f0c9f4524fbefd6ef132ed4f | 5,130 | cpp | C++ | src/OpenLoco/Map/Tree.cpp | OpenRCT2/OpenLoco | 207513653bf80a047a61aa275b3e815bf3737a19 | [
"MIT"
] | 180 | 2018-01-18T07:56:44.000Z | 2019-02-18T21:33:45.000Z | src/OpenLoco/Map/Tree.cpp | OpenRCT2/OpenLoco | 207513653bf80a047a61aa275b3e815bf3737a19 | [
"MIT"
] | 186 | 2018-01-18T13:17:58.000Z | 2019-02-10T12:28:35.000Z | src/OpenLoco/Map/Tree.cpp | OpenRCT2/OpenLoco | 207513653bf80a047a61aa275b3e815bf3737a19 | [
"MIT"
] | 35 | 2018-01-18T12:38:26.000Z | 2018-11-14T16:01:32.000Z | #include "Tree.h"
#include "../GameCommands/GameCommands.h"
#include "../Math/Trigonometry.hpp"
#include "../Objects/LandObject.h"
#include "../Objects/ObjectManager.h"
#include "../Objects/TreeObject.h"
#include "../Scenario.h"
#include "../Ui.h"
#include "TileManager.h"
namespace OpenLoco::Map
{
// 0x004BDF19
... | 34.42953 | 142 | 0.566277 | [
"vector"
] |
663d990a05548fc83621954aba582083128d39c8 | 8,753 | cpp | C++ | examples/rotor_thermalExp_2Dt.cpp | gismo/gsElasticity | a94347d4b8d8cd76de79d4b512023be9b68363bf | [
"BSD-3-Clause-Attribution"
] | 7 | 2020-04-24T04:11:02.000Z | 2021-09-18T19:24:10.000Z | examples/rotor_thermalExp_2Dt.cpp | gismo/gsElasticity | a94347d4b8d8cd76de79d4b512023be9b68363bf | [
"BSD-3-Clause-Attribution"
] | 1 | 2021-08-16T20:41:48.000Z | 2021-08-16T20:41:48.000Z | examples/rotor_thermalExp_2Dt.cpp | gismo/gsElasticity | a94347d4b8d8cd76de79d4b512023be9b68363bf | [
"BSD-3-Clause-Attribution"
] | 6 | 2020-05-12T11:11:51.000Z | 2021-10-21T14:13:46.000Z | /// This is an example of using the thermal expansion solver in a time-dependent setting on a 2D geometry.
/// The problems is part of the EU project "MOTOR".
/// The heat equation is solved using the Crank-Nicolson method.
/// At each time step, the current temperature distribution is used as an input for
/// the stat... | 41.093897 | 129 | 0.620016 | [
"geometry"
] |
6646cd885e6b5b90b6307aa65af2d8f96d8b92df | 34,896 | cpp | C++ | production/libs/fog/Fog/Src/Fog/G2d/Geometry/PathStroker.cpp | Lewerow/DetailIdentifier | bd5e0b3b55b5ce5b24db51ae45ed53298d331687 | [
"MIT"
] | null | null | null | production/libs/fog/Fog/Src/Fog/G2d/Geometry/PathStroker.cpp | Lewerow/DetailIdentifier | bd5e0b3b55b5ce5b24db51ae45ed53298d331687 | [
"MIT"
] | null | null | null | production/libs/fog/Fog/Src/Fog/G2d/Geometry/PathStroker.cpp | Lewerow/DetailIdentifier | bd5e0b3b55b5ce5b24db51ae45ed53298d331687 | [
"MIT"
] | null | null | null | // [Fog-G2d]
//
// [License]
// MIT, See COPYING file in package
// [Precompiled Headers]
#if defined(FOG_PRECOMP)
#include FOG_PRECOMP
#endif // FOG_PRECOMP
// [Dependencies]
#include <Fog/Core/Global/Global.h>
#include <Fog/Core/Global/Private.h>
#include <Fog/Core/Math/Constants.h>
#include <Fog/Core/Math/Math.h>
... | 26.376417 | 140 | 0.547799 | [
"geometry",
"shape",
"vector",
"transform"
] |
59406eb86a0adffa932f8dd4efba7b86ca17b7db | 5,554 | hpp | C++ | include/quadtree.hpp | plefebvre91/demo-quadtree-collision | 5d7168f2219187d08b3745a8c20eb9d4ca2198ce | [
"MIT"
] | null | null | null | include/quadtree.hpp | plefebvre91/demo-quadtree-collision | 5d7168f2219187d08b3745a8c20eb9d4ca2198ce | [
"MIT"
] | null | null | null | include/quadtree.hpp | plefebvre91/demo-quadtree-collision | 5d7168f2219187d08b3745a8c20eb9d4ca2198ce | [
"MIT"
] | null | null | null | /* MIT License
Copyright (c) 2022 Pierre Lefebvre
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... | 26.322275 | 91 | 0.660605 | [
"object",
"vector"
] |
5944c2291a34b579e8b1b13ef99749aeb98e0f17 | 2,926 | cpp | C++ | TermPaper/Controller.cpp | VasiliyMatutin/2DPlatformer | 70211cdb10b2746aefed3890723b23aef5de0099 | [
"MIT"
] | null | null | null | TermPaper/Controller.cpp | VasiliyMatutin/2DPlatformer | 70211cdb10b2746aefed3890723b23aef5de0099 | [
"MIT"
] | null | null | null | TermPaper/Controller.cpp | VasiliyMatutin/2DPlatformer | 70211cdb10b2746aefed3890723b23aef5de0099 | [
"MIT"
] | null | null | null | #include "Controller.h"
#include "WinSingleton.h"
Controller::Controller(Model* _model, Viewer* _viewer):
model(_model),
viewer(_viewer)
{
window = WinSingleton::getInstance();
}
void Controller::observe()
{
viewer->handleViewerEvent(ViewEvents::ADDLAYER);
sf::Event event;
while (window->isOpen())
{
if (win... | 25.008547 | 95 | 0.665072 | [
"model"
] |
5949b5c7e82a487c8ff0a308a17cd6fee258b0f1 | 8,107 | cpp | C++ | src/main.cpp | enp1s0/gpu_monitor | 3d1ebb39803861e57670d08ead883d1208d6e35b | [
"MIT"
] | null | null | null | src/main.cpp | enp1s0/gpu_monitor | 3d1ebb39803861e57670d08ead883d1208d6e35b | [
"MIT"
] | null | null | null | src/main.cpp | enp1s0/gpu_monitor | 3d1ebb39803861e57670d08ead883d1208d6e35b | [
"MIT"
] | null | null | null | #include <iostream>
#include <sstream>
#include <fstream>
#include <random>
#include <string>
#include <ctime>
#include <chrono>
#include <vector>
#include <exception>
#include <filesystem>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <gpu_monitor/gpu... | 30.942748 | 194 | 0.656716 | [
"vector"
] |
5955929b407cea0723454ae4258762794b6ce026 | 7,370 | cpp | C++ | oshgui/Drawing/Direct3D11/Direct3D11GeometryBuffer.cpp | sdkabuser/DEADCELL-CSGO | dfcd31394c5348529b3c098640466db136b89e0c | [
"MIT"
] | 506 | 2019-03-16T08:34:47.000Z | 2022-03-29T14:08:59.000Z | oshgui/Drawing/Direct3D11/Direct3D11GeometryBuffer.cpp | sdkabuser/DEADCELL-CSGO | dfcd31394c5348529b3c098640466db136b89e0c | [
"MIT"
] | 124 | 2019-03-17T02:54:57.000Z | 2021-03-29T01:51:05.000Z | oshgui/Drawing/Direct3D11/Direct3D11GeometryBuffer.cpp | sdkabuser/DEADCELL-CSGO | dfcd31394c5348529b3c098640466db136b89e0c | [
"MIT"
] | 219 | 2019-03-16T21:39:01.000Z | 2022-03-30T08:59:24.000Z | #include "Direct3D11GeometryBuffer.hpp"
#include "Direct3D11Texture.hpp"
#include "../Vertex.hpp"
#include "../../Misc/Exceptions.hpp"
#include <algorithm>
namespace OSHGui {
namespace Drawing {
//---------------------------------------------------------------------------
//Constructor
//-----------------------... | 35.432692 | 115 | 0.514383 | [
"vector"
] |
596988dd919006dd0ad6caabe2f47d4701a191ae | 5,189 | cpp | C++ | Chapter06/CvTrackKalman/main.cpp | PacktPublishing/Hands-On-Algorithms-for-Computer-Vision | 204c69a357f42ac9b7ac641df697cf52ced96416 | [
"MIT"
] | 36 | 2018-06-03T13:53:48.000Z | 2022-03-15T13:52:47.000Z | Chapter06/CvTrackKalman/main.cpp | PacktPublishing/Hands-On-Algorithms-for-Computer-Vision | 204c69a357f42ac9b7ac641df697cf52ced96416 | [
"MIT"
] | null | null | null | Chapter06/CvTrackKalman/main.cpp | PacktPublishing/Hands-On-Algorithms-for-Computer-Vision | 204c69a357f42ac9b7ac641df697cf52ced96416 | [
"MIT"
] | 21 | 2018-08-07T11:04:05.000Z | 2021-04-15T12:51:41.000Z | #include "opencv2/opencv.hpp"
#include <Windows.h>
using namespace std;
using namespace cv;
TermCriteria criteria(TermCriteria::MAX_ITER
+ TermCriteria::EPS,
20,
1.0);
bool selecting = false;
Rect selection;
Point spo; // selection point origin
void ... | 24.476415 | 71 | 0.441896 | [
"vector"
] |
596d291952cd12176e83a076504a6941d972ec5e | 1,408 | cpp | C++ | jflow_test/test_euler.cpp | flying-tiger/jflow | 847d45780d1392c22030be28e14edc810cb74d56 | [
"MIT"
] | null | null | null | jflow_test/test_euler.cpp | flying-tiger/jflow | 847d45780d1392c22030be28e14edc810cb74d56 | [
"MIT"
] | null | null | null | jflow_test/test_euler.cpp | flying-tiger/jflow | 847d45780d1392c22030be28e14edc810cb74d56 | [
"MIT"
] | null | null | null | #include "catch.hpp"
#include "jflow/euler.hpp"
TEST_CASE("Verify Euler flux vector calculation") {
using namespace jflow;
const double gamma = 1.4;
const double Rgas = 287.0;
const double tol = 1e-12;
// Primitive state
const double rho = 1.0;
const double u = 5.0;
const double... | 33.52381 | 92 | 0.566051 | [
"vector",
"model"
] |
59756a28bc54829768b7e2a1985d4e475e5aaec3 | 1,052 | cpp | C++ | Codeforces/Round-600-Div2/E.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-01-30T13:21:30.000Z | 2018-01-30T13:21:30.000Z | Codeforces/Round-600-Div2/E.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | null | null | null | Codeforces/Round-600-Div2/E.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-08-29T13:26:50.000Z | 2018-08-29T13:26:50.000Z | // Tags: DP
// Difficulty: 6.5
// Priority: 3
// Date: 17-11-2021
#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;
int main () {
... | 21.04 | 90 | 0.461027 | [
"vector"
] |
597b8940b87fb97ff07041174411868e00b775bd | 9,607 | cpp | C++ | src/lisaCore.cpp | bach74/Lisa | 6f79b909f734883cd05a0ccf8679199ae2e301cf | [
"MIT",
"Unlicense"
] | 2 | 2016-06-23T21:20:19.000Z | 2020-03-25T15:01:07.000Z | src/lisaCore.cpp | bach74/Lisa | 6f79b909f734883cd05a0ccf8679199ae2e301cf | [
"MIT",
"Unlicense"
] | null | null | null | src/lisaCore.cpp | bach74/Lisa | 6f79b909f734883cd05a0ccf8679199ae2e301cf | [
"MIT",
"Unlicense"
] | null | null | null | // =============================================================================
// LisaCore.cpp
//
// Copyright (C) 2007-2012 by Bach
// This file is part of the LiSA project.
// The LiSA project is licensed under MIT license.
//
// ===========================================================================... | 34.433692 | 131 | 0.609868 | [
"render",
"object",
"model"
] |
597eff361783737f838cfa08040647f38c3b1c8c | 7,297 | cpp | C++ | tenncor/eteq/opsvc/test/test_derive.cpp | mingkaic/tenncor | f2fa9652e55e9ca206de5e9741fe41bde43791c1 | [
"BSL-1.0",
"MIT"
] | 1 | 2020-12-29T20:38:08.000Z | 2020-12-29T20:38:08.000Z | tenncor/eteq/opsvc/test/test_derive.cpp | mingkaic/tenncor | f2fa9652e55e9ca206de5e9741fe41bde43791c1 | [
"BSL-1.0",
"MIT"
] | 16 | 2018-01-28T04:20:19.000Z | 2021-01-23T09:38:52.000Z | tenncor/eteq/opsvc/test/test_derive.cpp | mingkaic/tenncor | f2fa9652e55e9ca206de5e9741fe41bde43791c1 | [
"BSL-1.0",
"MIT"
] | null | null | null |
#ifndef DISABLE_OPSVC_DERIVE_TEST
#include "gtest/gtest.h"
#include "exam/exam.hpp"
#include "testutil/tutil.hpp"
#include "internal/teq/mock/mock.hpp"
#include "tenncor/distr/mock/mock.hpp"
#include "tenncor/distr/iosvc/mock/mock.hpp"
#include "tenncor/eteq/opsvc/mock/mock.hpp"
using ::testing::Invoke;
using ... | 37.613402 | 93 | 0.722078 | [
"shape",
"vector"
] |
5981d6c71981710cc5143abf0c40dbb2ca5b4cba | 975 | cpp | C++ | Core/Entity.cpp | AdamJHowell/CLIExample | ba4cebbb670b51f111a8fb7c0053d4fe508231c1 | [
"MIT"
] | 1 | 2022-01-21T10:16:12.000Z | 2022-01-21T10:16:12.000Z | Core/Entity.cpp | AdamJHowell/CLIExample | ba4cebbb670b51f111a8fb7c0053d4fe508231c1 | [
"MIT"
] | null | null | null | Core/Entity.cpp | AdamJHowell/CLIExample | ba4cebbb670b51f111a8fb7c0053d4fe508231c1 | [
"MIT"
] | null | null | null | //Entity.cpp
#include "Entity.h"
#include <iostream>
#include <string>
namespace Core
{
Entity::Entity( const char* name, int xPos, int yPos )
: m_Name( name ), m_XPos( xPos ), m_YPos( yPos )
{
std::cout << "Created the Entity object!" << std::endl;
}
void Entity::Move( int deltaX, int deltaY )
{
m_XPos +... | 24.375 | 94 | 0.610256 | [
"object",
"vector"
] |
598855e7786179316242b828766358257d0830bc | 31,926 | cpp | C++ | modules/glfw/src/addon.cpp | mzegar/node-rapids | 5b2c3dafbec5f17dcedf8147a8f668a986622cc4 | [
"Apache-2.0"
] | 1 | 2021-06-24T23:08:49.000Z | 2021-06-24T23:08:49.000Z | modules/glfw/src/addon.cpp | love-lena/node-rapids | 27c9e2468372df4fae3779d859089b54c8d32c4f | [
"Apache-2.0"
] | null | null | null | modules/glfw/src/addon.cpp | love-lena/node-rapids | 27c9e2468372df4fae3779d859089b54c8d32c4f | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2020-2021, NVIDIA CORPORATION.
//
// 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 la... | 55.620209 | 100 | 0.768809 | [
"object",
"vector"
] |
598dbce7e72585ec1a646f18b4e1f8a6ff82407c | 2,888 | hpp | C++ | src/libraries/turbulenceModels/incompressible/LES/SpalartAllmarasDDES/SpalartAllmarasDDES.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/turbulenceModels/incompressible/LES/SpalartAllmarasDDES/SpalartAllmarasDDES.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/turbulenceModels/incompressible/LES/SpalartAllmarasDDES/SpalartAllmarasDDES.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | /*---------------------------------------------------------------------------*\
Copyright (C) 2011-2012 OpenFOAM Foundation
Copyright (C) 2014 Applied CCM
-------------------------------------------------------------------------------
License
This file is part of CAELUS.
CAELUS is free software: you can redist... | 26.740741 | 80 | 0.628463 | [
"model"
] |
5998440bd15f5a24d7be8dec82e0da66d25df85f | 1,118 | hpp | C++ | include/Pulsejet/EncodeHelpers.hpp | logicomacorp/pulsejet | ec73d19ccb71ff05b2122e258fe4b7b16e55fb53 | [
"MIT"
] | 30 | 2021-06-07T20:25:48.000Z | 2022-03-30T00:52:38.000Z | include/Pulsejet/EncodeHelpers.hpp | going-digital/pulsejet | 8452a0311645867d64c038cef7fdf751b26717ee | [
"MIT"
] | null | null | null | include/Pulsejet/EncodeHelpers.hpp | going-digital/pulsejet | 8452a0311645867d64c038cef7fdf751b26717ee | [
"MIT"
] | 1 | 2021-09-21T11:17:45.000Z | 2021-09-21T11:17:45.000Z | #pragma once
#include "Common.hpp"
#include <cstdint>
#include <map>
#include <vector>
namespace Pulsejet::Internal
{
using namespace std;
static const uint8_t BandBinQuantizeScaleBases[NumBands] =
{
200, 200, 200, 200, 200, 200, 200, 200, 198, 193, 188, 183, 178, 173, 168, 163, 158, 153, 148, 129,
};
templ... | 20.703704 | 101 | 0.662791 | [
"vector"
] |
599bfa3fa511806ed309a42668d2ad35d436bb02 | 1,137 | cpp | C++ | DSA/Tarjan_Algorithm.cpp | Sneh16Shah/Hacktoberfest2021 | bd27e8d2e3880794cb611748812abe4c3e527a02 | [
"MIT"
] | null | null | null | DSA/Tarjan_Algorithm.cpp | Sneh16Shah/Hacktoberfest2021 | bd27e8d2e3880794cb611748812abe4c3e527a02 | [
"MIT"
] | null | null | null | DSA/Tarjan_Algorithm.cpp | Sneh16Shah/Hacktoberfest2021 | bd27e8d2e3880794cb611748812abe4c3e527a02 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define fo(i,n) for (int i = 1; i <= n; i++)
#define mod 1000000007
#define pb push_back
#define ff first
#define ss second
#define ii pair<int,int>
#define vi vector<int>
#define vii vector<ii>
#define lli long long int
#define endl '\n'
using namespace std;
vi g[1001];
bool vis[1001] , onStac... | 14.766234 | 46 | 0.532102 | [
"vector"
] |
599d9a9e3d762228ace191a8509fc846c97135a1 | 1,414 | cpp | C++ | src/chapter_01_math/problem_006_abundant_numbers.cpp | rturrado/TheModernCppChallenge | 648284fb417b6aaa43c21ea2b12a5a21c8cb9269 | [
"MIT"
] | null | null | null | src/chapter_01_math/problem_006_abundant_numbers.cpp | rturrado/TheModernCppChallenge | 648284fb417b6aaa43c21ea2b12a5a21c8cb9269 | [
"MIT"
] | null | null | null | src/chapter_01_math/problem_006_abundant_numbers.cpp | rturrado/TheModernCppChallenge | 648284fb417b6aaa43c21ea2b12a5a21c8cb9269 | [
"MIT"
] | null | null | null | #include "chapter_01_math/problem_006_abundant_numbers.h"
#include "chapter_01_math/math.h" // divisors
#include "rtc/console.h" // read_positive_number
#include <fmt/ostream.h>
#include <fmt/ranges.h>
#include <iostream> // cin, cout
#include <istream>
#include <numeric> // accumulate
#include <ostream>
#include... | 31.422222 | 107 | 0.658416 | [
"vector"
] |
59b057d82e5e48dc88192f48a1bd8152caefe3f9 | 1,026 | cpp | C++ | c02e04.cpp | vitorgt/SCC0210 | f7689be1b72cbf3066ca051faef995f22f446d90 | [
"MIT"
] | null | null | null | c02e04.cpp | vitorgt/SCC0210 | f7689be1b72cbf3066ca051faef995f22f446d90 | [
"MIT"
] | null | null | null | c02e04.cpp | vitorgt/SCC0210 | f7689be1b72cbf3066ca051faef995f22f446d90 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<queue>
using namespace std;
#define inf 0x3f3f3f3f
#define ll long long
struct node{
int id, size;
vector<node *> content;
bool hasGift(){
return content.empty();
}
bool operator<(const node &v) const{
return size < v.size;
}
};
int main(){
ios::sync_with_std... | 16.285714 | 46 | 0.557505 | [
"vector"
] |
59b071bc3414ab1823c26faa9cff6ed5715915c6 | 1,067 | cpp | C++ | LeetCode/Matrix/59. Spiral Matrix II.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | 5 | 2021-02-14T17:48:21.000Z | 2022-01-24T14:29:44.000Z | LeetCode/Matrix/59. Spiral Matrix II.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | null | null | null | LeetCode/Matrix/59. Spiral Matrix II.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<int>> generateMatrix(int n) {
int start_row = 0;
int start_col = 0;
int end_row = n-1;
int end_col = n-1;
vector<vector<int>> res(n, vector<int> (n, 0));
int val = 1;
while(start_row<=e... | 25.404762 | 57 | 0.39269 | [
"vector"
] |
59bbd155e4eb039d96f6aa4cff0b1748c2d59635 | 11,131 | cc | C++ | modules/compiled/build_condensates_kernel.cc | jkiesele/HGCalML-1 | 23e98b207589b7659ee2bedf1dbd496e8500247c | [
"BSD-3-Clause"
] | null | null | null | modules/compiled/build_condensates_kernel.cc | jkiesele/HGCalML-1 | 23e98b207589b7659ee2bedf1dbd496e8500247c | [
"BSD-3-Clause"
] | null | null | null | modules/compiled/build_condensates_kernel.cc | jkiesele/HGCalML-1 | 23e98b207589b7659ee2bedf1dbd496e8500247c | [
"BSD-3-Clause"
] | null | null | null |
#if GOOGLE_CUDA
#define EIGEN_USE_GPU
#endif // GOOGLE_CUDA
#include "tensorflow/core/framework/op_kernel.h"
#include "build_condensates_kernel.h"
#include "helpers.h"
#include <string> //size_t, just for helper function
#include <cmath>
#include <iostream> //remove later DEBUG FIXME
namespace tensorflow {
typede... | 28.836788 | 150 | 0.540742 | [
"shape"
] |
59c174e7b18d87831d17942a86da173d0468071e | 14,362 | cpp | C++ | s2e/source/s2e/libs2eplugins/src/s2e/Plugins/Profile/util.cpp | Albocoder/KOOBE | dd8acade05b0185771e1ea9950de03ab5445a981 | [
"MIT"
] | 55 | 2019-12-20T03:25:14.000Z | 2022-01-16T07:19:47.000Z | s2e/source/s2e/libs2eplugins/src/s2e/Plugins/Profile/util.cpp | Albocoder/KOOBE | dd8acade05b0185771e1ea9950de03ab5445a981 | [
"MIT"
] | 2 | 2020-11-02T08:01:00.000Z | 2022-03-27T02:59:18.000Z | s2e/source/s2e/libs2eplugins/src/s2e/Plugins/Profile/util.cpp | Albocoder/KOOBE | dd8acade05b0185771e1ea9950de03ab5445a981 | [
"MIT"
] | 11 | 2020-08-06T03:59:45.000Z | 2022-02-25T02:31:59.000Z | #include <s2e/S2E.h>
#include <s2e/cpu.h>
#include "util.h"
using namespace klee;
namespace s2e {
namespace plugins {
Solver *g_Solver = NULL;
// Index must be 32-Width long
ref<Expr> readArray(UpdateListPtr &array, ref<Expr> index, unsigned bytes) {
ref<Expr> ret;
assert(bytes > 0);
// assumes little-... | 30.952586 | 105 | 0.514692 | [
"vector"
] |
59c3240eb1daa15972a85fe6702923a8d833a359 | 2,094 | cpp | C++ | src/mongo/bson/bsonobjiterator.cpp | TylerBrock/mongo-cxx-driver | 46824e063c897acba234472c0db5b09e9635d3f9 | [
"Apache-2.0"
] | 1 | 2016-06-11T08:08:51.000Z | 2016-06-11T08:08:51.000Z | src/mongo/bson/bsonobjiterator.cpp | TylerBrock/mongo-cxx-driver | 46824e063c897acba234472c0db5b09e9635d3f9 | [
"Apache-2.0"
] | null | null | null | src/mongo/bson/bsonobjiterator.cpp | TylerBrock/mongo-cxx-driver | 46824e063c897acba234472c0db5b09e9635d3f9 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2014 10gen 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 ... | 32.71875 | 92 | 0.636581 | [
"object"
] |
59c7231aa400c39c98cdbee64852188bd01f8173 | 285 | cpp | C++ | StiGame/gui/Spacer.cpp | jordsti/stigame | 6ac0ae737667b1c77da3ef5007f5c4a3a080045a | [
"MIT"
] | 8 | 2015-02-03T20:23:49.000Z | 2022-02-15T07:51:05.000Z | StiGame/gui/Spacer.cpp | jordsti/stigame | 6ac0ae737667b1c77da3ef5007f5c4a3a080045a | [
"MIT"
] | null | null | null | StiGame/gui/Spacer.cpp | jordsti/stigame | 6ac0ae737667b1c77da3ef5007f5c4a3a080045a | [
"MIT"
] | 2 | 2017-02-13T18:04:00.000Z | 2020-08-24T03:21:37.000Z | #include "Spacer.h"
namespace StiGame
{
namespace Gui
{
Spacer::Spacer()
: Item("Spacer")
{
//ctor
}
Spacer::~Spacer()
{
//dtor
}
Surface* Spacer::render(void)
{
Surface *buffer = new Surface(width, height);
buffer->fill(background);
return buffer;
}
}
}
| 9.827586 | 49 | 0.607018 | [
"render"
] |
59ce2a4017e56d0d5a2de5f894fefd3d72fc9025 | 2,545 | cpp | C++ | leetcode/game-of-life/solution.cpp | kpagacz/comp-programming | 15482d762ede4d3b7f8ff45a193f6e6bcd85672a | [
"MIT"
] | 1 | 2021-12-06T16:01:55.000Z | 2021-12-06T16:01:55.000Z | leetcode/game-of-life/solution.cpp | kpagacz/comp-programming | 15482d762ede4d3b7f8ff45a193f6e6bcd85672a | [
"MIT"
] | null | null | null | leetcode/game-of-life/solution.cpp | kpagacz/comp-programming | 15482d762ede4d3b7f8ff45a193f6e6bcd85672a | [
"MIT"
] | null | null | null | // link to the problem: https://leetcode.com/problems/game-of-life/
#include <algorithm>
#include <array>
#include <cassert>
#include <iostream>
#include <iterator>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <string>
#include <unordered_map>
#inc... | 28.595506 | 102 | 0.577996 | [
"vector"
] |
59d2d6c890d8edc1bd2b7f6b7d662797bb6117ae | 13,537 | cpp | C++ | src/game/client/components/menus_texture.cpp | AssassinTee/Assa-Client | 0ed205d52e0a7b05eea7b0ab651f0c79c361ed74 | [
"Zlib"
] | null | null | null | src/game/client/components/menus_texture.cpp | AssassinTee/Assa-Client | 0ed205d52e0a7b05eea7b0ab651f0c79c361ed74 | [
"Zlib"
] | null | null | null | src/game/client/components/menus_texture.cpp | AssassinTee/Assa-Client | 0ed205d52e0a7b05eea7b0ab651f0c79c361ed74 | [
"Zlib"
] | null | null | null | /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include <engine/graphics.h>
#include <engine/shared/config.h>
#include <game/generated/client_data.h>
#include <game/client/an... | 30.216518 | 134 | 0.68804 | [
"render"
] |
59d44aee5a211561c2765f4e9b8aff2d3d75f118 | 3,626 | cpp | C++ | Source/Graphics/Font.cpp | PandarinDev/Winter | 567bd93f1fc8be8e0b9559409f1c80421d0b8e24 | [
"MIT"
] | 1 | 2019-01-08T12:13:59.000Z | 2019-01-08T12:13:59.000Z | Source/Graphics/Font.cpp | PandarinDev/Winter | 567bd93f1fc8be8e0b9559409f1c80421d0b8e24 | [
"MIT"
] | null | null | null | Source/Graphics/Font.cpp | PandarinDev/Winter | 567bd93f1fc8be8e0b9559409f1c80421d0b8e24 | [
"MIT"
] | null | null | null | #include "Graphics/Font.h"
#include "Factory/MeshFactory.h"
namespace winter {
Font::Font(const std::string &name, short size, unsigned short lineHeight, unsigned short base,
std::unique_ptr<Texture> texture,
std::unordered_map<FontChar::Id, FontChar>&& characters,
std... | 36.626263 | 102 | 0.650579 | [
"geometry",
"vector"
] |
59e42e1880fb12b1332cfb5b23c6ddf274c87d0a | 1,524 | cpp | C++ | tap/core/tuple.cpp | tsavola/tap | e7b5dea6b0e9c7ebbb2710842ebfb62352cb54cc | [
"BSD-2-Clause"
] | 1 | 2019-12-09T20:55:59.000Z | 2019-12-09T20:55:59.000Z | tap/core/tuple.cpp | tsavola/tap | e7b5dea6b0e9c7ebbb2710842ebfb62352cb54cc | [
"BSD-2-Clause"
] | null | null | null | tap/core/tuple.cpp | tsavola/tap | e7b5dea6b0e9c7ebbb2710842ebfb62352cb54cc | [
"BSD-2-Clause"
] | null | null | null | #include "core.hpp"
#include "portable.hpp"
namespace tap {
static int tuple_traverse(PyObject *object, visitproc visit, void *arg) noexcept
{
for (Py_ssize_t i = 0; i < PyTuple_GET_SIZE(object); ++i)
Py_VISIT(PyTuple_GET_ITEM(object, i));
return 0;
}
static Py_ssize_t tuple_marshaled_size(PyObject *object) noe... | 22.411765 | 111 | 0.723753 | [
"object"
] |
9403bdbf343f7326749a43b348faebb487f507c1 | 28,758 | cpp | C++ | src/ImgProc/UI/Src/UICfg/CommUICfg.cpp | Passer-D/GameAISDK | a089330a30b7bfe1f6442258a12d8c0086240606 | [
"Apache-2.0"
] | 1,210 | 2020-08-18T07:57:36.000Z | 2022-03-31T15:06:05.000Z | src/ImgProc/UI/Src/UICfg/CommUICfg.cpp | guokaiSama/GameAISDK | a089330a30b7bfe1f6442258a12d8c0086240606 | [
"Apache-2.0"
] | 37 | 2020-08-24T02:48:38.000Z | 2022-01-30T06:41:52.000Z | src/ImgProc/UI/Src/UICfg/CommUICfg.cpp | guokaiSama/GameAISDK | a089330a30b7bfe1f6442258a12d8c0086240606 | [
"Apache-2.0"
] | 275 | 2020-08-18T08:35:16.000Z | 2022-03-31T15:06:07.000Z | /*
* Tencent is pleased to support the open source community by making GameAISDK available.
* This source code file is licensed under the GNU General Public License Version 3.
* For full details, please refer to the file "LICENSE.txt" which is provided as part of this source code package.
* Copyright (C) 2020... | 34.033136 | 115 | 0.606092 | [
"vector"
] |
940c316747240db4584381e7bdacfb495b0b05e4 | 2,833 | cpp | C++ | algorithms/visit/CompositorVisIt.cpp | wilsonCernWq/WarmT | 445d2c65094cdbd58bf5f05851afee2b715dcd00 | [
"MIT"
] | 1 | 2018-04-20T21:47:57.000Z | 2018-04-20T21:47:57.000Z | algorithms/visit/CompositorVisIt.cpp | wilsonCernWq/QCT | 445d2c65094cdbd58bf5f05851afee2b715dcd00 | [
"MIT"
] | null | null | null | algorithms/visit/CompositorVisIt.cpp | wilsonCernWq/QCT | 445d2c65094cdbd58bf5f05851afee2b715dcd00 | [
"MIT"
] | null | null | null | #include "CompositorVisIt.h"
#include "avtSLIVRImgMetaData.h"
#include "avtSLIVRImgCommunicator.h"
#include <vector>
static avtSLIVRImgCommunicator* imgComm;
static std::vector<float*> tileBufferList;
namespace QCT {
namespace algorithms {
namespace visit {
Compositor_VisIt::Compositor_VisIt(co... | 28.33 | 70 | 0.523473 | [
"vector"
] |
940d623a541f05ebcae2fb92bd06317254e6d77a | 12,072 | cpp | C++ | ogs6THMC/ChemLib/chemReductionKin.cpp | Yonghui56/NCP | 29680706b7d8dd9b78d51c10d4a36799eb24c38f | [
"BSD-4-Clause"
] | null | null | null | ogs6THMC/ChemLib/chemReductionKin.cpp | Yonghui56/NCP | 29680706b7d8dd9b78d51c10d4a36799eb24c38f | [
"BSD-4-Clause"
] | 1 | 2016-07-08T03:44:02.000Z | 2016-07-08T08:59:45.000Z | ogs6THMC/ChemLib/chemReductionKin.cpp | Yonghui56/NCP | 29680706b7d8dd9b78d51c10d4a36799eb24c38f | [
"BSD-4-Clause"
] | null | null | null | /**
* Copyright (c) 2012, OpenGeoSys Community (http://www.opengeosys.com)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.com/LICENSE.txt
*
*
* \file chemReductionKin.cpp
*
* Created on 2012-08-23 by Haibing Shao
... | 33.626741 | 128 | 0.675861 | [
"vector"
] |
9410794ab53db966821305f6e6420870fca78418 | 1,379 | cpp | C++ | main.cpp | soda92/test-libcurl | 989994cb8b11c95fed5c78099114b479fb77ac8c | [
"MIT"
] | null | null | null | main.cpp | soda92/test-libcurl | 989994cb8b11c95fed5c78099114b479fb77ac8c | [
"MIT"
] | null | null | null | main.cpp | soda92/test-libcurl | 989994cb8b11c95fed5c78099114b479fb77ac8c | [
"MIT"
] | null | null | null | #include <string>
#include <vector>
#include <fstream>
#include <curl/curl.h>
// #include <filesystem>
#include <iostream>
// #include <format>
size_t writefunc(void *ptr, size_t size, size_t nmemb, std::string *string)
{
string->append(static_cast<char *>(ptr), size * nmemb);
return size * nmemb;
}
void writ... | 25.072727 | 75 | 0.6657 | [
"vector"
] |
941527601f01abfefaf0f7cd402b5e9bfffa257f | 71 | hpp | C++ | src/boost_geometry_strategies_spherical_side_by_cross_track.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_geometry_strategies_spherical_side_by_cross_track.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_geometry_strategies_spherical_side_by_cross_track.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/geometry/strategies/spherical/side_by_cross_track.hpp>
| 35.5 | 70 | 0.859155 | [
"geometry"
] |
9416ed2673fa049679d249ceaf51cff5a238ca98 | 13,326 | cpp | C++ | tf2_src/game/server/tf/tf_ammo_pack.cpp | IamIndeedGamingAsHardAsICan03489/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 4 | 2021-10-03T05:16:55.000Z | 2021-12-28T16:49:27.000Z | tf2_src/game/server/tf/tf_ammo_pack.cpp | Counter2828/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | null | null | null | tf2_src/game/server/tf/tf_ammo_pack.cpp | Counter2828/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 3 | 2022-02-02T18:09:58.000Z | 2022-03-06T18:54:39.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "tf_ammo_pack.h"
#include "tf_shareddefs.h"
#include "ammodef.h"
#include "tf_gamerules.h"
#include "explode.h"
#i... | 29.745536 | 155 | 0.703287 | [
"vector",
"model"
] |
941f76481b9e408cc58c44e609002a30f2cbc958 | 3,340 | hpp | C++ | geometry/mercator.hpp | dualword/organicmaps | c0a73aea4835517edef3b5a7d68a3a50d55a4471 | [
"Apache-2.0"
] | 3,062 | 2021-04-09T16:51:55.000Z | 2022-03-31T21:02:51.000Z | geometry/mercator.hpp | dualword/organicmaps | c0a73aea4835517edef3b5a7d68a3a50d55a4471 | [
"Apache-2.0"
] | 1,396 | 2021-04-08T07:26:49.000Z | 2022-03-31T20:27:46.000Z | geometry/mercator.hpp | dualword/organicmaps | c0a73aea4835517edef3b5a7d68a3a50d55a4471 | [
"Apache-2.0"
] | 242 | 2021-04-10T17:10:46.000Z | 2022-03-31T13:41:07.000Z | #pragma once
#include "geometry/latlon.hpp"
#include "geometry/point2d.hpp"
#include "geometry/rect2d.hpp"
#include "base/math.hpp"
namespace mercator
{
// Use to compare/match lat lon coordinates.
static double constexpr kPointEqualityEps = 1e-7;
struct Bounds
{
static double constexpr kMinX = -180.0;
static do... | 39.294118 | 103 | 0.741018 | [
"geometry"
] |
941f943627e7a55337d363e90eaf01df5aea440b | 3,037 | hpp | C++ | external_libs/link/include/ableton/link/Timeline.hpp | llloret/sp_link | b87ee622517fc68845b8f1d19c735c0e3bd05176 | [
"MIT"
] | null | null | null | external_libs/link/include/ableton/link/Timeline.hpp | llloret/sp_link | b87ee622517fc68845b8f1d19c735c0e3bd05176 | [
"MIT"
] | null | null | null | external_libs/link/include/ableton/link/Timeline.hpp | llloret/sp_link | b87ee622517fc68845b8f1d19c735c0e3bd05176 | [
"MIT"
] | 1 | 2021-02-22T11:37:41.000Z | 2021-02-22T11:37:41.000Z | /* Copyright 2016, Ableton AG, Berlin. 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, either version 2 of the License, or
* (at your option) any later version.
... | 30.989796 | 92 | 0.718143 | [
"model"
] |
942ab36c2487f9252850c8422551fd84bfba5da7 | 1,081 | cpp | C++ | codeforces/div2/1471/C/C.cpp | mathemage/CompetitiveProgramming | fe39017e3b017f9259f9c1e6385549270940be64 | [
"MIT"
] | 2 | 2015-08-18T09:51:19.000Z | 2019-01-29T03:18:10.000Z | codeforces/div2/1471/C/C.cpp | mathemage/CompetitiveProgramming | fe39017e3b017f9259f9c1e6385549270940be64 | [
"MIT"
] | null | null | null | codeforces/div2/1471/C/C.cpp | mathemage/CompetitiveProgramming | fe39017e3b017f9259f9c1e6385549270940be64 | [
"MIT"
] | null | null | null |
/* ========================================
* File Name : C.cpp
* Creation Date : 05-01-2021
* Last Modified : Út 5. ledna 2021, 17:38:07
* Created By : Karel Ha <mathemage@gmail.com>
* URL : https://codeforces.com/contest/1471/problem/C
* Points :
* Total : 1000
* Status : not submitted
==... | 24.022222 | 143 | 0.46161 | [
"vector"
] |
942cb888eb5a4325c1197d5d3e01900098e36849 | 231 | cpp | C++ | 1967-number-of-strings-that-appear-as-substrings-in-word/1967-number-of-strings-that-appear-as-substrings-in-word.cpp | SouvikChan/-Leetcode_Souvik | cc4b72cb4a14a1c6b8be8bd8390de047443fe008 | [
"MIT"
] | null | null | null | 1967-number-of-strings-that-appear-as-substrings-in-word/1967-number-of-strings-that-appear-as-substrings-in-word.cpp | SouvikChan/-Leetcode_Souvik | cc4b72cb4a14a1c6b8be8bd8390de047443fe008 | [
"MIT"
] | null | null | null | 1967-number-of-strings-that-appear-as-substrings-in-word/1967-number-of-strings-that-appear-as-substrings-in-word.cpp | SouvikChan/-Leetcode_Souvik | cc4b72cb4a14a1c6b8be8bd8390de047443fe008 | [
"MIT"
] | null | null | null | class Solution {
public:
int numOfStrings(vector<string>& patterns, string word) {
int res=0;
for(string &x: patterns){
if(~word.find(x))
res++;
}
return res;
}
}; | 21 | 61 | 0.484848 | [
"vector"
] |
942e98f71ebf00d79b05ba3fc54355752b24064f | 11,173 | cc | C++ | ns-allinone-3.22/ns-3.22/src/lte/test/lte-test-interference.cc | gustavo978/helpful | 59e3fd062cff4451c9bf8268df78a24f93ff67b7 | [
"Unlicense"
] | null | null | null | ns-allinone-3.22/ns-3.22/src/lte/test/lte-test-interference.cc | gustavo978/helpful | 59e3fd062cff4451c9bf8268df78a24f93ff67b7 | [
"Unlicense"
] | null | null | null | ns-allinone-3.22/ns-3.22/src/lte/test/lte-test-interference.cc | gustavo978/helpful | 59e3fd062cff4451c9bf8268df78a24f93ff67b7 | [
"Unlicense"
] | 2 | 2018-06-06T14:10:23.000Z | 2020-04-07T17:20:55.000Z | /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Fre... | 43.644531 | 177 | 0.70205 | [
"vector"
] |
9431af2156c82f9e09682e68718b210e01ab84da | 781 | cc | C++ | solutions/mrJudge/paint/main.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | 4 | 2020-11-07T14:38:02.000Z | 2022-01-03T19:02:36.000Z | solutions/mrJudge/paint/main.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | 1 | 2019-04-17T06:55:14.000Z | 2019-04-17T06:55:14.000Z | solutions/mrJudge/paint/main.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <utility>
#include <algorithm>
bool compare(const std::pair<int, int> &i, const std::pair<int, int>&j) {
return i.first > j.first;
}
int main() {
int n;
std::cin >> n;
std::vector<int> inc(n);
std::vector<int> prc(n);
for (int i = 0; i < n; i++) {
std::c... | 21.108108 | 73 | 0.544174 | [
"vector"
] |
94355c3d62b7ab1b869ac978be1ad4fe75104e6e | 2,878 | cpp | C++ | main.cpp | snow482/cpp_capitals | 71636f0336d51670758ceefc65b5012398490879 | [
"MIT"
] | null | null | null | main.cpp | snow482/cpp_capitals | 71636f0336d51670758ceefc65b5012398490879 | [
"MIT"
] | null | null | null | main.cpp | snow482/cpp_capitals | 71636f0336d51670758ceefc65b5012398490879 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <map>
#include <vector>
using std::map;
using std::string;
using std::cin;
using std::cout;
using std::endl;
void CHANGE_CAPITAL (map<string, string>& country_capitals_value, const string& country, const string& capital){
auto it = country_capitals_value.find(countr... | 24.184874 | 112 | 0.555594 | [
"vector"
] |
94372310848c68622874ed9c74961eaaef0dd633 | 2,444 | cc | C++ | third_party/blink/renderer/platform/graphics/paint/property_tree_state.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/blink/renderer/platform/graphics/paint/property_tree_state.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/blink/renderer/platform/graphics/paint/property_tree_state.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/platform/graphics/paint/property_tree_state.h"
#include <memory>
namespace blink {
const PropertyTreeState& Proper... | 33.944444 | 83 | 0.695581 | [
"transform"
] |
943ae8fbce7672fadda716718f33e45084802e2f | 2,601 | hpp | C++ | include/Sort.hpp | TheExeQ/CommonUtilities | 3abf9f9575b925aaa592d9eb7ce86665eecbba6f | [
"MIT"
] | null | null | null | include/Sort.hpp | TheExeQ/CommonUtilities | 3abf9f9575b925aaa592d9eb7ce86665eecbba6f | [
"MIT"
] | null | null | null | include/Sort.hpp | TheExeQ/CommonUtilities | 3abf9f9575b925aaa592d9eb7ce86665eecbba6f | [
"MIT"
] | null | null | null | #pragma once
namespace CommonUtilities
{
template <class T>
void SelectionSort(std::vector<T>& aVector);
template <class T>
void BubbleSort(std::vector<T>& aVector);
template <class T>
void QuickSort(std::vector<T>& aVector);
template <class T>
void MergeSort(std::vector<T>& aVector);
template<class T>
void... | 20.162791 | 76 | 0.62822 | [
"vector"
] |
94446bc74d30924190aa0ade9d7a4c7587c32199 | 6,330 | cpp | C++ | mtlgen/mtlgen.cpp | littlemole/MTL | 1f090c15e107f949d35ef78101dfc2776cbcbc33 | [
"MIT"
] | null | null | null | mtlgen/mtlgen.cpp | littlemole/MTL | 1f090c15e107f949d35ef78101dfc2776cbcbc33 | [
"MIT"
] | null | null | null | mtlgen/mtlgen.cpp | littlemole/MTL | 1f090c15e107f949d35ef78101dfc2776cbcbc33 | [
"MIT"
] | null | null | null |
#include "mtlgen.h"
/////////////////////////////////////////////
// usage
/////////////////////////////////////////////
int usage()
{
std::cout << "Usage: mtlgen show|debug|unreg|disp>|def <midl>" << std::endl;
std::cout << " mtlgen reg|manifest|selfreg <arch> <apartment> <server> <midl>"... | 22.446809 | 143 | 0.413744 | [
"vector"
] |
944ab346b20d19fba027de3561b6e320fcddca3d | 3,488 | cpp | C++ | x3d-uml/osgDiagram/osgX3DUML/GraphElement.cpp | internetscooter/diorama | 460d2825e36c732550d6174460c81325f831c387 | [
"MIT"
] | 1 | 2020-02-22T03:08:39.000Z | 2020-02-22T03:08:39.000Z | x3d-uml/osgDiagram/osgX3DUML/GraphElement.cpp | internetscooter/diorama | 460d2825e36c732550d6174460c81325f831c387 | [
"MIT"
] | null | null | null | x3d-uml/osgDiagram/osgX3DUML/GraphElement.cpp | internetscooter/diorama | 460d2825e36c732550d6174460c81325f831c387 | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////
// GraphElement.cpp
// Implementation of the Class GraphElement
// Created on: 23-Jun-2008 9:33:51 PM
///////////////////////////////////////////////////////////
#include "GraphElement.h"
#include <sstream>
using X3DUML::GraphElement;
GraphElement:... | 33.538462 | 133 | 0.698968 | [
"geometry",
"object"
] |
944b5712078c6004ed68c3895ff8a9db4088151d | 1,247 | cc | C++ | game/Utils.cc | alvaroma94/EDA-Game | f1912f3e726a315e1a850d1a16081e9363bc2d65 | [
"MIT"
] | null | null | null | game/Utils.cc | alvaroma94/EDA-Game | f1912f3e726a315e1a850d1a16081e9363bc2d65 | [
"MIT"
] | null | null | null | game/Utils.cc | alvaroma94/EDA-Game | f1912f3e726a315e1a850d1a16081e9363bc2d65 | [
"MIT"
] | null | null | null | #include "Utils.hh"
// atzar.cc
// SR, febrer/06
// Implementacio d'una classe per treballar amb nombres aleatoris.
atzar::atzar(int llavor) : llavor(llavor) { }
void atzar::seguent() {
int x1, x0, z, z1, z0, w, w1, w0;
x1 = llavor/65536L; x0 = llavor&65535L;
z = 1894L*x0; z1 = z/65536L; z0 = z&65535L;
w = ... | 23.092593 | 71 | 0.622294 | [
"vector"
] |
944f7937e5eea9b0c5cdcb36263ca4f7d73bd30d | 1,378 | cpp | C++ | src/commands/ServerDeviceListResult.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 7 | 2018-06-09T05:55:59.000Z | 2021-01-05T05:19:02.000Z | src/commands/ServerDeviceListResult.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 1 | 2019-12-25T10:39:06.000Z | 2020-01-03T08:35:29.000Z | src/commands/ServerDeviceListResult.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 11 | 2018-05-10T08:29:05.000Z | 2020-01-22T20:49:32.000Z | #include "commands/ServerDeviceListResult.h"
using namespace Poco;
using namespace BeeeOn;
using namespace std;
ServerDeviceListResult::ServerDeviceListResult(
const Answer::Ptr answer):
Result(answer)
{
}
ServerDeviceListResult::~ServerDeviceListResult()
{
}
void ServerDeviceListResult::setDeviceList(
const ve... | 19.138889 | 76 | 0.751089 | [
"vector"
] |
9452e4a0c4bba85780b9aab366508a5ebb8359db | 127,514 | cpp | C++ | Tools/DumpRenderTree/TestRunner.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | Tools/DumpRenderTree/TestRunner.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Tools/DumpRenderTree/TestRunner.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2007-2016 Apple Inc. All rights reserved.
* Copyright (C) 2010 Joone Hur <joone@kldp.org>
*
* 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 t... | 49.71306 | 236 | 0.788847 | [
"object",
"vector"
] |
9454aaf06b59d91d6343b40eba84689ab78d5019 | 13,347 | hpp | C++ | Source/TitaniumKit/include/Titanium/Network/HTTPClient.hpp | appcelerator/titanium_mobile_windows | ec82c011f418cbcf27795eb009deaef5e3fe4b20 | [
"Apache-2.0"
] | 20 | 2015-04-02T06:55:30.000Z | 2022-03-29T04:27:30.000Z | Source/TitaniumKit/include/Titanium/Network/HTTPClient.hpp | appcelerator/titanium_mobile_windows | ec82c011f418cbcf27795eb009deaef5e3fe4b20 | [
"Apache-2.0"
] | 692 | 2015-04-01T21:05:49.000Z | 2020-03-10T10:11:57.000Z | Source/TitaniumKit/include/Titanium/Network/HTTPClient.hpp | appcelerator/titanium_mobile_windows | ec82c011f418cbcf27795eb009deaef5e3fe4b20 | [
"Apache-2.0"
] | 22 | 2015-04-01T20:57:51.000Z | 2022-01-18T17:33:15.000Z | /**
* Copyright (c) 2015 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License.
* Please see the LICENSE included with this distribution for details.
*/
#ifndef _TITANIUM_NETWORK_HTTPCLIENT_HPP_
#define _TITANIUM_NETWORK_HTTPCLIENT_HPP_
#include "Titanium/Modu... | 31.111888 | 123 | 0.721885 | [
"object",
"vector"
] |
945a9e47a59cfa5677a38943ed68b2a567b4fe1e | 2,236 | cxx | C++ | src/mlio/text_line_reader.cxx | rizwangilani/ml-io | d9572227281168139c4e99d79a6d2ebc83323a61 | [
"Apache-2.0"
] | null | null | null | src/mlio/text_line_reader.cxx | rizwangilani/ml-io | d9572227281168139c4e99d79a6d2ebc83323a61 | [
"Apache-2.0"
] | 2 | 2020-04-08T01:37:44.000Z | 2020-04-14T20:14:07.000Z | src/mlio/text_line_reader.cxx | rizwangilani/ml-io | d9572227281168139c4e99d79a6d2ebc83323a61 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of
* the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "lice... | 28.303797 | 75 | 0.720036 | [
"vector"
] |
9463285fa9f2dfcadda48ba22bd6bcf7c3cca783 | 1,785 | cpp | C++ | LeetCode/cpp/37.cpp | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 279 | 2019-02-19T16:00:32.000Z | 2022-03-23T12:16:30.000Z | LeetCode/cpp/37.cpp | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 2 | 2019-03-31T08:03:06.000Z | 2021-03-07T04:54:32.000Z | LeetCode/cpp/37.cpp | ZintrulCre/LeetCode_Crawler | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 12 | 2019-01-29T11:45:32.000Z | 2019-02-04T16:31:46.000Z | class Solution {
public:
void solveSudoku(vector<vector<char>> &board) {
vector<vector<bool>> row(9, vector<bool>(9, false)), col(9, vector<bool>(9, false));
vector<vector<vector<bool>>> square(3, vector<vector<bool>>(3, vector<bool>(9, false)));
for (int i = 0; i < board.size(); ++i) {
... | 40.568182 | 115 | 0.391597 | [
"vector"
] |
946cc7ad30a71f068e8710cdb6c9c8f992300b60 | 2,927 | cpp | C++ | test/manipulate_test.cpp | MCWertGaming/foxterm | 3f884c64100f2f0d4c7c07b56a2b8b093424c06c | [
"MIT"
] | 1 | 2021-10-02T11:23:05.000Z | 2021-10-02T11:23:05.000Z | test/manipulate_test.cpp | MCWertGaming/foxterm | 3f884c64100f2f0d4c7c07b56a2b8b093424c06c | [
"MIT"
] | 1 | 2021-10-05T15:57:23.000Z | 2021-10-05T15:57:23.000Z | test/manipulate_test.cpp | MCWertGaming/foxterm | 3f884c64100f2f0d4c7c07b56a2b8b093424c06c | [
"MIT"
] | 1 | 2021-10-30T23:52:53.000Z | 2021-10-30T23:52:53.000Z | #include <foxterm/manipulate.hpp>
#include <gtest/gtest.h>
TEST(manipulate_test, cursor_up) {
EXPECT_EQ(Fterm::cursor_up(1), "\033[A");
EXPECT_EQ(Fterm::cursor_up(3), "\033[3A");
EXPECT_EQ(Fterm::cursor_up(99), "\033[99A");
}
TEST(manipulate_test, cursor_down) {
EXPECT_EQ(Fterm::cursor_down(1), "\033[B");
EX... | 37.525641 | 56 | 0.690126 | [
"3d"
] |
20e5a40a6158e837b7bb85a8fe0f8aad5388cc3a | 117,529 | cpp | C++ | Plugins/AGRPRO/Intermediate/Build/Win64/UnrealGame/Inc/AGRPRO/AGRAnimMasterComponent.gen.cpp | Thomas-A-Forsbergs/basic5_MPCoopAI | 5ea6cbf4c0f591cc7f50c8304522bcfbe8fba6c4 | [
"MIT"
] | null | null | null | Plugins/AGRPRO/Intermediate/Build/Win64/UnrealGame/Inc/AGRPRO/AGRAnimMasterComponent.gen.cpp | Thomas-A-Forsbergs/basic5_MPCoopAI | 5ea6cbf4c0f591cc7f50c8304522bcfbe8fba6c4 | [
"MIT"
] | null | null | null | Plugins/AGRPRO/Intermediate/Build/Win64/UnrealGame/Inc/AGRPRO/AGRAnimMasterComponent.gen.cpp | Thomas-A-Forsbergs/basic5_MPCoopAI | 5ea6cbf4c0f591cc7f50c8304522bcfbe8fba6c4 | [
"MIT"
] | null | null | null | // Copyright Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
========================================================================... | 78.248336 | 818 | 0.864178 | [
"object"
] |
20eb6581bd69cfe7fc13a9b4e41f934a4db11c9a | 2,247 | cc | C++ | mysql-server/unittest/gunit/thr_template.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/unittest/gunit/thr_template.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/unittest/gunit/thr_template.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | /* Copyright (c) 2006, 2018, 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, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certai... | 33.044118 | 79 | 0.685358 | [
"vector"
] |
20ff71567b2e22bc9a88f4285e59db8f9d356fd8 | 2,660 | cpp | C++ | recursive-drawing/ShaderLoader.cpp | Thyix/recursive-fractal | eaadfe25715b7115290f4379354ddc5afa5c4aeb | [
"MIT"
] | null | null | null | recursive-drawing/ShaderLoader.cpp | Thyix/recursive-fractal | eaadfe25715b7115290f4379354ddc5afa5c4aeb | [
"MIT"
] | null | null | null | recursive-drawing/ShaderLoader.cpp | Thyix/recursive-fractal | eaadfe25715b7115290f4379354ddc5afa5c4aeb | [
"MIT"
] | 1 | 2018-10-25T21:41:59.000Z | 2018-10-25T21:41:59.000Z | #include "OpenGLHeaders.h"
ShaderLoader::ShaderLoader(void) {}
ShaderLoader::~ShaderLoader(void) {}
std::string ShaderLoader::ReadShader(char * fileName)
{
std::string shaderCode;
std::ifstream file(fileName, std::ios::in);
if (!file.good()) {
std::cout << "Le fichier est illisible: " << fileName << std::endl;... | 29.88764 | 94 | 0.742481 | [
"object",
"vector"
] |
1f12de0197d9fa3e3fd38def2239022247a9b454 | 4,342 | cpp | C++ | test/SignalTest.cpp | johnhues/aether-game-utils | 3b67cc77d232d43ee8c273a1db3c9373374438b2 | [
"MIT"
] | 4 | 2020-08-26T19:41:32.000Z | 2021-05-09T20:54:56.000Z | test/SignalTest.cpp | johnhues/aether-game-utils | 3b67cc77d232d43ee8c273a1db3c9373374438b2 | [
"MIT"
] | 20 | 2020-07-07T20:06:04.000Z | 2021-02-28T23:09:18.000Z | test/SignalTest.cpp | johnhues/aether-game-utils | 3b67cc77d232d43ee8c273a1db3c9373374438b2 | [
"MIT"
] | 1 | 2021-11-03T14:55:25.000Z | 2021-11-03T14:55:25.000Z | //------------------------------------------------------------------------------
// SignalTest.cpp
//------------------------------------------------------------------------------
// Copyright (c) 2020 John Hughes
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and... | 30.577465 | 92 | 0.561492 | [
"object"
] |
1f136fc6795efcbd5d73abf5e85f6ce40330cee1 | 2,657 | cpp | C++ | 2016/day07/p1/main.cpp | jbaldwin/adventofcode2019 | bdc333330dd5e36458a49f0b7cd64d462c9988c7 | [
"MIT"
] | null | null | null | 2016/day07/p1/main.cpp | jbaldwin/adventofcode2019 | bdc333330dd5e36458a49f0b7cd64d462c9988c7 | [
"MIT"
] | null | null | null | 2016/day07/p1/main.cpp | jbaldwin/adventofcode2019 | bdc333330dd5e36458a49f0b7cd64d462c9988c7 | [
"MIT"
] | null | null | null | #include <lib/file_util.hpp>
#include <chain/chain.hpp>
#include <iostream>
#include <vector>
#include <string>
auto contains_abba(std::string_view data) -> bool
{
for(size_t i = 0; i < data.length() - 3; ++i)
{
// This could fail on AAAA
if(data[i] == data[i + 3] && data[i + 1] == data[i + 2]... | 24.154545 | 83 | 0.47309 | [
"vector"
] |
1f1930b278717e9783d90a42d2bb4f97edd4fa29 | 1,524 | cpp | C++ | leetcode/spiral_matrix.cpp | cwboden/coding-practice | a80aea59d57bfdd55c15ef2fdf01f73aff168031 | [
"MIT"
] | null | null | null | leetcode/spiral_matrix.cpp | cwboden/coding-practice | a80aea59d57bfdd55c15ef2fdf01f73aff168031 | [
"MIT"
] | null | null | null | leetcode/spiral_matrix.cpp | cwboden/coding-practice | a80aea59d57bfdd55c15ef2fdf01f73aff168031 | [
"MIT"
] | null | null | null | /**
* PROMPT:
* Given a matrix of m x n elements (m rows, n columns), return all elements of
* the matrix in spiral order.
*
* @author Carson Boden
*/
#include <iostream>
#include <vector>
std::vector<int> spiral_matrix(std::vector<std::vector<int>>& matrix)
{
std::vector<int> results;
unsigned int x_fron... | 21.166667 | 80 | 0.568898 | [
"vector"
] |
1f1fd26456dd77b7b5fa2760df505aed8d76acc2 | 12,147 | cpp | C++ | 24_Physics/AppClass.cpp | zanthous/OpenGL_AStar | 6f37e659b555e49f118468d101caf24c55870d59 | [
"MIT"
] | null | null | null | 24_Physics/AppClass.cpp | zanthous/OpenGL_AStar | 6f37e659b555e49f118468d101caf24c55870d59 | [
"MIT"
] | null | null | null | 24_Physics/AppClass.cpp | zanthous/OpenGL_AStar | 6f37e659b555e49f118468d101caf24c55870d59 | [
"MIT"
] | null | null | null | #include "AppClass.h"
using namespace Simplex;
//Benjamin Morgan
//references: https://github.com/hjweide/a-star
void Application::InitVariables(void)
{
currentLevel = std::string( "0" );
//Set the position and target of the camera
m_pCameraMngr->SetPositionTargetAndUp(
vector3(0.0f, 5.0f, 10.0f), //Position
p... | 26.755507 | 158 | 0.671112 | [
"render",
"object",
"vector",
"model"
] |
1f25bc9a1ab287a84e64648d4b2d489bdf020c44 | 15,820 | cpp | C++ | level_one_utils/hof_matlab_source/lib_hof/src/vector/HoF_Vector_Object.cpp | jedavis82/scene_labeling | a5e819f801a4fa96a1f4b076fc2049519687b1de | [
"MIT"
] | null | null | null | level_one_utils/hof_matlab_source/lib_hof/src/vector/HoF_Vector_Object.cpp | jedavis82/scene_labeling | a5e819f801a4fa96a1f4b076fc2049519687b1de | [
"MIT"
] | null | null | null | level_one_utils/hof_matlab_source/lib_hof/src/vector/HoF_Vector_Object.cpp | jedavis82/scene_labeling | a5e819f801a4fa96a1f4b076fc2049519687b1de | [
"MIT"
] | null | null | null | #include "HoF_Vector_Object.hpp"
void hof::HoF_Vector_Object::readObjectFile( const std::string& filename )
{
std::ifstream ifs;
try
{
ifs.open(filename.c_str(), std::ifstream::in);
}
catch(std::exception &e)
{
std::stringstream ss;
ss << "[hof::HoF_Vector_Object::readObjectFile] failed to open filename="... | 25.557351 | 189 | 0.628951 | [
"object",
"vector"
] |
1f36bb1d6dcdee8e37479aac258070c11a2eeeee | 2,508 | cc | C++ | src/object/datatype/support/bytesops.cc | ArgonLang/Argon | 462d3d8721acd5131894bcbfa0214b0cbcffdf66 | [
"Apache-2.0"
] | 13 | 2021-06-24T17:50:20.000Z | 2022-03-13T23:00:16.000Z | src/object/datatype/support/bytesops.cc | ArgonLang/Argon | 462d3d8721acd5131894bcbfa0214b0cbcffdf66 | [
"Apache-2.0"
] | null | null | null | src/object/datatype/support/bytesops.cc | ArgonLang/Argon | 462d3d8721acd5131894bcbfa0214b0cbcffdf66 | [
"Apache-2.0"
] | 1 | 2022-03-31T22:58:42.000Z | 2022-03-31T22:58:42.000Z | // This source file is part of the Argon project.
//
// Licensed under the Apache License v2.0
#include "bytesops.h"
using namespace argon::object;
void FillBadCharTable(int *table, const unsigned char *pattern, ArSSize len, bool reverse) {
// Reset table
for (int i = 0; i < 256; i++)
table[i] = (int... | 25.591837 | 115 | 0.536683 | [
"object"
] |
1f376919975d8b33e0785e6cc88481b8815ead42 | 4,167 | hpp | C++ | test/src_test/include/test_tools_stats.hpp | tvatter/vinecoplib | ae34d56408437e6eeacec40a51a8fa8dac378672 | [
"MIT"
] | 28 | 2017-05-05T13:27:58.000Z | 2021-07-15T23:40:01.000Z | test/src_test/include/test_tools_stats.hpp | vinecopulib/vinecopulib | ae34d56408437e6eeacec40a51a8fa8dac378672 | [
"MIT"
] | 264 | 2017-03-28T10:07:13.000Z | 2022-01-23T10:04:39.000Z | test/src_test/include/test_tools_stats.hpp | tvatter/vinecoplib | ae34d56408437e6eeacec40a51a8fa8dac378672 | [
"MIT"
] | 8 | 2017-04-24T13:54:47.000Z | 2020-10-22T16:56:17.000Z | // Copyright © 2016-2021 Thomas Nagler and Thibault Vatter
//
// This file is part of the vinecopulib library and licensed under the terms of
// the MIT license. For a copy, see the LICENSE file in the root directory of
// vinecopulib or https://vinecopulib.github.io/vinecopulib/.
#pragma once
#include "test_vinecop_... | 29.978417 | 79 | 0.653948 | [
"vector"
] |
1f3800031cfe31cb9c5f2c9b58a5f47f14dba002 | 1,150 | cpp | C++ | aws-cpp-sdk-elasticmapreduce/source/model/AddJobFlowStepsResult.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-elasticmapreduce/source/model/AddJobFlowStepsResult.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-elasticmapreduce/source/model/AddJobFlowStepsResult.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/elasticmapreduce/model/AddJobFlowStepsResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#incl... | 26.136364 | 110 | 0.755652 | [
"model"
] |
1f385877e30f407894c4e45f33c351d6e9a87f45 | 7,577 | cpp | C++ | oberon/SubcommandCLI.cpp | radman0x/oberon | 365fbae6c4bdce79c36099948ebe5815577a21b4 | [
"Apache-2.0"
] | null | null | null | oberon/SubcommandCLI.cpp | radman0x/oberon | 365fbae6c4bdce79c36099948ebe5815577a21b4 | [
"Apache-2.0"
] | null | null | null | oberon/SubcommandCLI.cpp | radman0x/oberon | 365fbae6c4bdce79c36099948ebe5815577a21b4 | [
"Apache-2.0"
] | null | null | null | /***********************************************************************************************************************
** __________ ___ ________ **
** \______ \_____ __| _/ _____ _____ ____ / _____/ ... | 39.878947 | 133 | 0.459549 | [
"vector"
] |
1f3c08366e9ae168da672953a64d70b139ec42e4 | 1,878 | hpp | C++ | src/AVM.hpp | jacksonwb/abstractVM | 49ab1901cb540da00a642cbafb80c65e36418223 | [
"MIT"
] | null | null | null | src/AVM.hpp | jacksonwb/abstractVM | 49ab1901cb540da00a642cbafb80c65e36418223 | [
"MIT"
] | null | null | null | src/AVM.hpp | jacksonwb/abstractVM | 49ab1901cb540da00a642cbafb80c65e36418223 | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* AVM.hpp :+: :+: :+: ... | 31.830508 | 84 | 0.406816 | [
"vector"
] |
1f425afdd1b427a37dda1fc98dc3c3b1454529d2 | 17,030 | hpp | C++ | 2007-save_endo/src/rope.hpp | BrendanLeber/icfp_contests | 21b179a8484a832904d99f82fdfccd0c99d88759 | [
"MIT"
] | null | null | null | 2007-save_endo/src/rope.hpp | BrendanLeber/icfp_contests | 21b179a8484a832904d99f82fdfccd0c99d88759 | [
"MIT"
] | null | null | null | 2007-save_endo/src/rope.hpp | BrendanLeber/icfp_contests | 21b179a8484a832904d99f82fdfccd0c99d88759 | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm>
#include <memory>
#include <sstream>
#include <stdexcept>
#include <string>
class Rope {
public:
static constexpr size_t npos = static_cast<size_t>(-1);
Rope()
: Rope("")
{
}
Rope(std::string const& str)
: root(std::make_unique<Node>(str))
{
... | 30.088339 | 136 | 0.447446 | [
"vector"
] |
1f4ce989dd397624837c9e6db7ed2766185a424c | 3,112 | hpp | C++ | include/homebot/FakeMoveBaseAction.hpp | mark1-umd/homebot | 578c424b15331de32cc6b32a4cbf7ad27dbb5ffe | [
"BSD-3-Clause"
] | null | null | null | include/homebot/FakeMoveBaseAction.hpp | mark1-umd/homebot | 578c424b15331de32cc6b32a4cbf7ad27dbb5ffe | [
"BSD-3-Clause"
] | null | null | null | include/homebot/FakeMoveBaseAction.hpp | mark1-umd/homebot | 578c424b15331de32cc6b32a4cbf7ad27dbb5ffe | [
"BSD-3-Clause"
] | null | null | null | /**
* @copyright (c) 2017 Mark R. Jenkins. All rights reserved.
* @file FakeMoveBaseAction.hpp
*
* @author MJenkins, ENPM 808X Spring 2017
* @date May 10, 2017 - Creation
*
* @brief Fake MoveBase provides an action server that simulates a navigation stack move_base action server
*
* This class provides a ROS ... | 39.897436 | 107 | 0.768638 | [
"object"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.