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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2e57b57da9aa7d712a4ae32338078d9bdbecbed3 | 1,662 | hpp | C++ | Project/Engine/Include/Engine/Components/Transform.hpp | lcomstive/Graphics-Assessment | bc52f41b31646ca5d2bb20669704db83c4f77361 | [
"MIT-0"
] | null | null | null | Project/Engine/Include/Engine/Components/Transform.hpp | lcomstive/Graphics-Assessment | bc52f41b31646ca5d2bb20669704db83c4f77361 | [
"MIT-0"
] | null | null | null | Project/Engine/Include/Engine/Components/Transform.hpp | lcomstive/Graphics-Assessment | bc52f41b31646ca5d2bb20669704db83c4f77361 | [
"MIT-0"
] | 1 | 2022-03-23T00:28:52.000Z | 2022-03-23T00:28:52.000Z | #pragma once
#include <vector>
#include <glm/glm.hpp>
#include <Engine/Api.hpp>
#include <glm/gtc/quaternion.hpp>
#include <Engine/Components/Component.hpp>
namespace Engine::Graphics { class Shader; }
namespace Engine::Components
{
struct Transform : public Component
{
glm::vec3 Scale = { 1, 1, 1 };
glm::vec3... | 27.7 | 63 | 0.72864 | [
"vector",
"transform"
] |
2e5f5861951c91b9053c05ca3dd60ff3161c63d0 | 8,443 | cpp | C++ | src/Log.cpp | Sam0523/Log | d89e76b74d282b5a0a29a15dc3a33d39ca5538e4 | [
"MIT"
] | null | null | null | src/Log.cpp | Sam0523/Log | d89e76b74d282b5a0a29a15dc3a33d39ca5538e4 | [
"MIT"
] | null | null | null | src/Log.cpp | Sam0523/Log | d89e76b74d282b5a0a29a15dc3a33d39ca5538e4 | [
"MIT"
] | 1 | 2022-03-05T17:20:33.000Z | 2022-03-05T17:20:33.000Z | /**
* \file Log.cpp
*/
#include "Log.h"
#include <iostream>
#include <ctime>
#include <cstdarg>
/**
* @brief Gets the name of the log category from the enum value
*
* @param The enum value of the category
* @return The name of the category; returns the word UNKNOWN if not valid.
*/
const char *Log::LevelT... | 22.277045 | 80 | 0.659007 | [
"vector"
] |
2e617906c9bf55c6eae349757f512c19d0f54834 | 4,223 | cpp | C++ | Oath3D/src/Common/Datatype/String.cpp | BertilBraun/Oath3D | e713f4f97bd1998d6c7a67414ff5f80d6d30e7f9 | [
"MIT"
] | 3 | 2019-01-10T18:39:45.000Z | 2022-01-11T01:33:57.000Z | Oath3D/src/Common/Datatype/String.cpp | BertilBraun/Oath3D | e713f4f97bd1998d6c7a67414ff5f80d6d30e7f9 | [
"MIT"
] | null | null | null | Oath3D/src/Common/Datatype/String.cpp | BertilBraun/Oath3D | e713f4f97bd1998d6c7a67414ff5f80d6d30e7f9 | [
"MIT"
] | 1 | 2019-12-23T19:37:00.000Z | 2019-12-23T19:37:00.000Z | #include "String.h"
#include "Common/Common.h"
#include <fstream>
#include <algorithm>
#include "System/Logger/Logger.h"
namespace Oath {
String String::operator=(const String & o)
{
return std::string::operator=(o);
}
String String::operator+=(const String & o)
{
return std::string::operator+=(o);
}
V... | 19.37156 | 71 | 0.591759 | [
"vector"
] |
2e6847e85e22917e3039d60f54e75e788bda2307 | 3,693 | cpp | C++ | bblibcompat/styleprops.cpp | mojmir-svoboda/BlackBoxTT | 0c87b989827107695538e1bf1266c08b083dda44 | [
"MIT"
] | 11 | 2017-06-19T14:21:15.000Z | 2020-03-04T06:43:16.000Z | bblibcompat/styleprops.cpp | mojmir-svoboda/BlackBoxTT | 0c87b989827107695538e1bf1266c08b083dda44 | [
"MIT"
] | null | null | null | bblibcompat/styleprops.cpp | mojmir-svoboda/BlackBoxTT | 0c87b989827107695538e1bf1266c08b083dda44 | [
"MIT"
] | 3 | 2017-07-23T18:08:55.000Z | 2019-09-16T16:28:18.000Z | #pragma once
#include "styleprops.h"
#include "StyleItem.h"
void ParseItem(const wchar_t * szItem, StyleItem * item)
{
parse_item(szItem, item);
}
//#ifdef __cplusplus
//extern "C" {
//#endif
styleprop const styleprop_1[] = {
{ TEXT("solid") ,B_SOLID },
{ TEXT("horizontal") ,B_HORIZONTAL ... | 26.568345 | 86 | 0.516112 | [
"solid"
] |
2e6b3323a80e87cf08d5969ffc7146f42d2904c1 | 398 | cpp | C++ | src/spaic/Component.cpp | devroom-org/spaic | f206105ea1abf0560808073d41f4477876f30923 | [
"MIT"
] | 3 | 2020-02-19T13:29:49.000Z | 2020-02-19T16:40:48.000Z | src/spaic/Component.cpp | devroom-org/spaic | f206105ea1abf0560808073d41f4477876f30923 | [
"MIT"
] | null | null | null | src/spaic/Component.cpp | devroom-org/spaic | f206105ea1abf0560808073d41f4477876f30923 | [
"MIT"
] | 1 | 2020-03-17T13:01:06.000Z | 2020-03-17T13:01:06.000Z | #include <spaic/Component.hpp>
#include <spaic/VNode.hpp>
namespace spaic::comp
{
ComponentSingle::ComponentSingle(NativeNodeName native_node_name) : native_node_name(native_node_name) {}
ComponentParent::ComponentParent(NativeNodeName native_node_name, std::vector<spaic::vnode::VNode> &&children) : native_node_name(... | 44.222222 | 181 | 0.801508 | [
"vector"
] |
2e6fec5cc6cb2321f267289f57749b39e031a3a9 | 698 | cpp | C++ | examples/data_distribution/boxplot/boxplot_1.cpp | kurogane1031/matplotplusplus | 44d21156edba8effe1e764a8642b0b70590d597b | [
"MIT"
] | 2 | 2020-09-02T14:02:26.000Z | 2020-10-28T07:00:44.000Z | examples/data_distribution/boxplot/boxplot_1.cpp | kurogane1031/matplotplusplus | 44d21156edba8effe1e764a8642b0b70590d597b | [
"MIT"
] | null | null | null | examples/data_distribution/boxplot/boxplot_1.cpp | kurogane1031/matplotplusplus | 44d21156edba8effe1e764a8642b0b70590d597b | [
"MIT"
] | 2 | 2020-09-01T16:22:07.000Z | 2020-09-02T14:02:27.000Z | #include <random>
#include <cmath>
#include <matplot/matplot.h>
int main() {
using namespace matplot;
std::vector<double> mpg = {18, 15, 18, 16, 17, 15, 14, 14, 14, 15, 15, 14, 15, 14, 24, 22, 18, 21, 27, 26, 25, 24, 25, 26, 21, 10, 10, 11, 9, 28, 25, 25, 26, 27, 17.5, 16, 15.5, 14.5, 22, 22, 24, 22.5, 29, 24... | 41.058824 | 428 | 0.551576 | [
"vector"
] |
2e727b666720ee49445b4f21677d93b1ed423446 | 3,034 | cpp | C++ | SimpleRegretTreeModel/experiment.cpp | tnmichael309/Simple-Regret-Tree-Model-Test | 792e169d887de7e8a48097f9bd91dfa538d01949 | [
"MIT"
] | null | null | null | SimpleRegretTreeModel/experiment.cpp | tnmichael309/Simple-Regret-Tree-Model-Test | 792e169d887de7e8a48097f9bd91dfa538d01949 | [
"MIT"
] | null | null | null | SimpleRegretTreeModel/experiment.cpp | tnmichael309/Simple-Regret-Tree-Model-Test | 792e169d887de7e8a48097f9bd91dfa538d01949 | [
"MIT"
] | null | null | null | #include "experiment.h"
void experiment::run()
{
int typeOfExp = 0;
cout << "Enter type of experiments:\n <1> Stochastic Model <2> MCTS+Heuristic <3> SHOT+Heuristic" << endl
<< " <4> Alpha-beta <5> MCTS+SIM+Heuristic <6> SHOT+SIM+Heuristic" << endl;
cin >> typeOfExp;
int nExps = 0;
cout << "Enter # of experim... | 28.895238 | 185 | 0.617337 | [
"model"
] |
2e7fad463765bdbb07383dc91bb243bb1bcd0f5d | 16,388 | cpp | C++ | dev/Code/Sandbox/Editor/Controls/ReflectedPropertyControl/ReflectedPropertyTests.cpp | crazyskateface/lumberyard | 164512f8d415d6bdf37e195af319ffe5f96a8f0b | [
"AML"
] | 5 | 2018-08-17T21:05:55.000Z | 2021-04-17T10:48:26.000Z | dev/Code/Sandbox/Editor/Controls/ReflectedPropertyControl/ReflectedPropertyTests.cpp | JulianoCristian/Lumberyard-3 | dc523dd780f3cd1874251181b7cf6848b8db9959 | [
"AML"
] | null | null | null | dev/Code/Sandbox/Editor/Controls/ReflectedPropertyControl/ReflectedPropertyTests.cpp | JulianoCristian/Lumberyard-3 | dc523dd780f3cd1874251181b7cf6848b8db9959 | [
"AML"
] | 5 | 2017-12-05T16:36:00.000Z | 2021-04-27T06:33:54.000Z | #include "stdafx.h"
#include "ReflectedPropertyTests.h"
#include "ReflectedPropertyCtrl.h"
#include "ReflectedVar.h"
#include "PropertyCtrl.h"
#include "UIEnumsDatabase.h"
#include "Particles/ParticleUIDefinition.h"
#include <AzToolsFramework/UI/PropertyEditor/ReflectedPropertyEditor.hxx>
#include <AzCore/Component/Co... | 44.172507 | 196 | 0.719368 | [
"object",
"vector",
"3d"
] |
2e808f1f59d38fc6264008f4a9180dee726c9389 | 9,249 | cxx | C++ | vendor/fltk-sys/cfltk/fltk/src/drivers/WinAPI/Fl_WinAPI_Printer_Driver.cxx | dareludum/icfpc2020 | a4fae7389da30a8f1d151df00752290ec2472b84 | [
"MIT"
] | null | null | null | vendor/fltk-sys/cfltk/fltk/src/drivers/WinAPI/Fl_WinAPI_Printer_Driver.cxx | dareludum/icfpc2020 | a4fae7389da30a8f1d151df00752290ec2472b84 | [
"MIT"
] | null | null | null | vendor/fltk-sys/cfltk/fltk/src/drivers/WinAPI/Fl_WinAPI_Printer_Driver.cxx | dareludum/icfpc2020 | a4fae7389da30a8f1d151df00752290ec2472b84 | [
"MIT"
] | null | null | null | //
// Printing support for Windows for the Fast Light Tool Kit (FLTK).
//
// Copyright 2010-2020 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see ... | 27.774775 | 128 | 0.648935 | [
"transform"
] |
2e8142bb4d59a8fcf0e15173907b1a98f37923c9 | 12,400 | hpp | C++ | external_codes/boost_multi/multi/adaptors/blas.hpp | prckent/qmcpack | 127caf219ee99c2449b803821fcc8b1304b66ee1 | [
"NCSA"
] | null | null | null | external_codes/boost_multi/multi/adaptors/blas.hpp | prckent/qmcpack | 127caf219ee99c2449b803821fcc8b1304b66ee1 | [
"NCSA"
] | null | null | null | external_codes/boost_multi/multi/adaptors/blas.hpp | prckent/qmcpack | 127caf219ee99c2449b803821fcc8b1304b66ee1 | [
"NCSA"
] | null | null | null | #ifdef COMPILATION_INSTRUCTIONS
(echo "#include\""$0"\"" > $0x.cpp) && clang++ `#-DNDEBUG` -O3 -std=c++14 -Wall -Wextra -Wpedantic -D_TEST_MULTI_ADAPTORS_BLAS -DADD_ $0x.cpp -o $0x.x -lblas && time $0x.x $@ && rm -f $0x.x $0x.cpp; exit
#endif
// Alfredo A. Correa 2019 ©
#ifndef MULTI_ADAPTORS_BLAS_HPP
#define MULTI_AD... | 33.423181 | 203 | 0.528468 | [
"shape"
] |
2e88bc5df78edde15482ec0e75089104410c003b | 6,676 | cc | C++ | src/runtime/object.cc | robot-nano/CVT | 5ae9acf4d38d57fba4ff2dcf2e4261389bca1b24 | [
"Apache-2.0"
] | null | null | null | src/runtime/object.cc | robot-nano/CVT | 5ae9acf4d38d57fba4ff2dcf2e4261389bca1b24 | [
"Apache-2.0"
] | null | null | null | src/runtime/object.cc | robot-nano/CVT | 5ae9acf4d38d57fba4ff2dcf2e4261389bca1b24 | [
"Apache-2.0"
] | null | null | null | //
// Created by WangJingYu on 2021/7/2.
//
#include <cvm/runtime/object.h>
#include <mutex>
#include <unordered_map>
#include <vector>
#include "runtime_base.h"
namespace cvm {
namespace runtime {
struct TypeInfo {
uint32_t index{0};
uint32_t parent_index{0};
uint32_t num_slots{0};
uint32_t allocated_slot... | 34.770833 | 93 | 0.677202 | [
"object",
"vector"
] |
2e9a821279c52a4268e24b03e5650d9ce7eee274 | 3,672 | cpp | C++ | src/volcano.cpp | PK1210/rafale-flight | ec30026b96982bf98325e01b47f44061cf18a9ec | [
"MIT"
] | null | null | null | src/volcano.cpp | PK1210/rafale-flight | ec30026b96982bf98325e01b47f44061cf18a9ec | [
"MIT"
] | null | null | null | src/volcano.cpp | PK1210/rafale-flight | ec30026b96982bf98325e01b47f44061cf18a9ec | [
"MIT"
] | null | null | null | #include "volcano.h"
Volcano::Volcano(float x, float z) {
this->position = glm::vec3(x, height/2, z);
this->rotation = 0.0f;
const int n = 24;
GLfloat vertex_buffer_data[n * 9] = {};
for(int i=0;i<n;i++){
vertex_buffer_data[9 * i + 0] = radius_1 * cos(2 * M_PI/n * i);
vertex_buffe... | 47.076923 | 123 | 0.569989 | [
"object",
"model"
] |
2e9ecb3f365a6a2abd08f60f5f79b956ea5e0c87 | 13,408 | cpp | C++ | daemon/src/linux/proc_tracker.cpp | realrasengan/desktop | 41213ed9efd70955bdd5872c68425868040afae2 | [
"Apache-2.0"
] | 1 | 2020-09-08T00:41:27.000Z | 2020-09-08T00:41:27.000Z | daemon/src/linux/proc_tracker.cpp | realrasengan/desktop | 41213ed9efd70955bdd5872c68425868040afae2 | [
"Apache-2.0"
] | null | null | null | daemon/src/linux/proc_tracker.cpp | realrasengan/desktop | 41213ed9efd70955bdd5872c68425868040afae2 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2019 London Trust Media Incorporated
//
// This file is part of the Private Internet Access Desktop Client.
//
// The Private Internet Access Desktop Client 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 Softwa... | 29.663717 | 133 | 0.673479 | [
"model"
] |
2ea307857c7f4a04d9781137b689fba5521aad3f | 24,957 | cpp | C++ | copasi/model/CModelValue.cpp | tobiaselsaesser/COPASI | 7e61c1b1667b0f4acf8f3865fe557603f221c472 | [
"Artistic-2.0"
] | null | null | null | copasi/model/CModelValue.cpp | tobiaselsaesser/COPASI | 7e61c1b1667b0f4acf8f3865fe557603f221c472 | [
"Artistic-2.0"
] | null | null | null | copasi/model/CModelValue.cpp | tobiaselsaesser/COPASI | 7e61c1b1667b0f4acf8f3865fe557603f221c472 | [
"Artistic-2.0"
] | null | null | null | // Copyright (C) 2017 - 2018 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and University of
// of Connecticut School of Medicine.
// All rights reserved.
// Copyright (C) 2010 - 2016 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg,... | 25.107646 | 129 | 0.665144 | [
"object",
"vector",
"model"
] |
2ea3dd575661f147b62dc59ab5c606a37e85c8d0 | 3,168 | cpp | C++ | code archive/CF/734D.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 4 | 2018-04-08T08:07:58.000Z | 2021-06-07T14:55:24.000Z | code archive/CF/734D.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | null | null | null | code archive/CF/734D.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 1 | 2018-10-29T12:37:25.000Z | 2018-10-29T12:37:25.000Z | //{
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double lf;
typedef pair<ll,ll> ii;
#define REP(i,n) for(ll i=0;i<n;i++)
#define FILL(i,n) memset(i,n,sizeof i)
#define X first
#define Y second
#define SZ(_a) (int)_a.size()
#define ALL(_a) _a.begin(),_a.end()
#define pb push_back
#ifdef bri... | 22.956522 | 123 | 0.421717 | [
"vector"
] |
2ea7658fb2a21ff6971e477ea7acc68c79b50bc7 | 9,834 | cpp | C++ | 1-divide-conquer/week-4/mincut/mincut.cpp | dvijayak/coursera-algorithms | 4daa906a9c6a4b3a55b9a7c502b7fa43f1c4a929 | [
"MIT"
] | null | null | null | 1-divide-conquer/week-4/mincut/mincut.cpp | dvijayak/coursera-algorithms | 4daa906a9c6a4b3a55b9a7c502b7fa43f1c4a929 | [
"MIT"
] | null | null | null | 1-divide-conquer/week-4/mincut/mincut.cpp | dvijayak/coursera-algorithms | 4daa906a9c6a4b3a55b9a7c502b7fa43f1c4a929 | [
"MIT"
] | null | null | null | /**
* Your task is to code up and run the randomized contraction algorithm for the min cut problem and use it on the given graph to compute the min cut.
* (HINT: Note that you'll have to figure out an implementation of edge contractions. Initially, you might want to do this naively, creating a new graph from the old ... | 27.9375 | 270 | 0.575351 | [
"vector"
] |
2ea93027055718e4dabbff44fd59848d3020252a | 6,923 | cc | C++ | chrome/browser/usb/usb_chooser_controller_unittest.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | chrome/browser/usb/usb_chooser_controller_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | chrome/browser/usb/usb_chooser_controller_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // 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 <memory>
#include <utility>
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/strings/utf_string_conversions.h"
#incl... | 41.208333 | 76 | 0.76542 | [
"vector"
] |
2eaa03dfbf9e97060915b7c87453569a46cbe41c | 6,011 | cpp | C++ | SPPI.cpp | YukiWorkshop/SPPI | 3b5ef3a209f50760efa4cba4f8e2ad8b3e852588 | [
"MIT"
] | 4 | 2020-05-12T19:25:06.000Z | 2021-03-11T20:00:46.000Z | SPPI.cpp | YukiWorkshop/SPPI | 3b5ef3a209f50760efa4cba4f8e2ad8b3e852588 | [
"MIT"
] | null | null | null | SPPI.cpp | YukiWorkshop/SPPI | 3b5ef3a209f50760efa4cba4f8e2ad8b3e852588 | [
"MIT"
] | null | null | null | /*
This file is part of SPPI.
Copyright (C) 2020 ReimuNotMoe
This program is free software: you can redistribute it and/or modify
it under the terms of the MIT License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty o... | 28.899038 | 149 | 0.722675 | [
"vector"
] |
2eaaf21387d4168ede590891a43c6bf823853cba | 11,119 | cpp | C++ | src/particle_filter.cpp | iPhoring/ParticleFilter-VehicleLocalization- | 48658c97aab4794c3d3d3c7500ff34ce2f0061f8 | [
"MIT"
] | null | null | null | src/particle_filter.cpp | iPhoring/ParticleFilter-VehicleLocalization- | 48658c97aab4794c3d3d3c7500ff34ce2f0061f8 | [
"MIT"
] | null | null | null | src/particle_filter.cpp | iPhoring/ParticleFilter-VehicleLocalization- | 48658c97aab4794c3d3d3c7500ff34ce2f0061f8 | [
"MIT"
] | null | null | null | /**
* helper_functions.h
* Some helper functions for the 2D particle filter.
* Created on: Dec 12, 2016
* Author : Tiffany Huang
* Modified: member function added by Subir Das / Jan 8 2020
*/
// working version Jan 8 2020
#include <math.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <n... | 39.151408 | 165 | 0.680457 | [
"vector",
"transform"
] |
2eadf0fda9a1e46c0968e57cf42e6aa6c7cf09b7 | 1,491 | cpp | C++ | lib/Sphere.cpp | dummyummy/Naive_Ray_Tracer | 37ad326618f6f779d2e357311cc1840557eb16ce | [
"MIT"
] | null | null | null | lib/Sphere.cpp | dummyummy/Naive_Ray_Tracer | 37ad326618f6f779d2e357311cc1840557eb16ce | [
"MIT"
] | null | null | null | lib/Sphere.cpp | dummyummy/Naive_Ray_Tracer | 37ad326618f6f779d2e357311cc1840557eb16ce | [
"MIT"
] | null | null | null | #include "Sphere.h"
#include "Vector.h"
void Sphere::setCenter(const Point3d ¢er)
{
this->center = center;
}
void Sphere::setRadius(const double &radius)
{
this->radius = radius;
}
Point3d Sphere::getCenter() const
{
return center;
}
double Sphere::getRadius() const
{
return ... | 22.590909 | 80 | 0.527834 | [
"vector"
] |
2eb34110dcc4ded28036a212144fed26b5b80b4a | 1,733 | hh | C++ | examples/contacts_example.hh | el-cangrejo/grasp | 492dd14928b0072beecf752075b712db96f06834 | [
"MIT"
] | 70 | 2018-10-17T17:37:22.000Z | 2022-02-28T15:19:47.000Z | examples/contacts_example.hh | el-cangrejo/grasp | 492dd14928b0072beecf752075b712db96f06834 | [
"MIT"
] | 3 | 2020-12-08T13:02:17.000Z | 2022-02-22T11:59:00.000Z | examples/contacts_example.hh | el-cangrejo/grasp | 492dd14928b0072beecf752075b712db96f06834 | [
"MIT"
] | 17 | 2018-10-29T04:09:45.000Z | 2022-03-19T11:34:55.000Z | /*!
\file examples/contacts_example.hh
\brief Contact world plugin example
\author João Borrego : jsbruglie
*/
// Gazebo
#include <gazebo/gazebo_client.hh>
#include <gazebo/gazebo_config.h>
#include <gazebo/transport/transport.hh>
#include <gazebo/msgs/msgs.hh>
// I/O streams
#include <iostream>
// Cust... | 29.87931 | 67 | 0.754183 | [
"model"
] |
2eb4289918a23bc0b0e5008639c76524d3674ba5 | 250 | hh | C++ | day01/solver.hh | ovove/aoc20 | 6cb819e35d64fe704c918275f50f76652133b5a4 | [
"Unlicense"
] | null | null | null | day01/solver.hh | ovove/aoc20 | 6cb819e35d64fe704c918275f50f76652133b5a4 | [
"Unlicense"
] | null | null | null | day01/solver.hh | ovove/aoc20 | 6cb819e35d64fe704c918275f50f76652133b5a4 | [
"Unlicense"
] | null | null | null |
#pragma once
#include <functional>
#include <vector>
std::vector<int> find_combination_if(const std::vector<int>& range, std::size_t combination_length,
std::function<bool(const std::vector<int>&)> predicate);
| 27.777778 | 99 | 0.644 | [
"vector"
] |
2eb8b0b7345e96db86bb954a4d358f7af76b3872 | 3,165 | hpp | C++ | src/PEBBLBranching.hpp | jnnccc/Dakota-orb | 96488e723be9c67f0f85be8162b7af52c312b770 | [
"MIT"
] | null | null | null | src/PEBBLBranching.hpp | jnnccc/Dakota-orb | 96488e723be9c67f0f85be8162b7af52c312b770 | [
"MIT"
] | null | null | null | src/PEBBLBranching.hpp | jnnccc/Dakota-orb | 96488e723be9c67f0f85be8162b7af52c312b770 | [
"MIT"
] | null | null | null | #include <pebbl/branching.h>
#include "DakotaOptimizer.hpp"
namespace Dakota
{
class PebbldBranchSub;
/// Main Branching class for the PEBBL-based Minimizer
class PebbldBranching : virtual public pebbl::branching
{
friend class PebbldBranchSub;
protected:
/// Original model, before branching
Model parentModel;... | 32.628866 | 167 | 0.74376 | [
"object",
"vector",
"model"
] |
e4883f2d77122d7ba99ab0937308eaef8fcaaf96 | 16,472 | cpp | C++ | third_party/coriander/test/gtest/test_kernel_dumper.cpp | pint1022/tensorflow | 92e437b36ae58ea22910dbed67e2c238c869c09f | [
"Apache-2.0"
] | 2 | 2019-04-15T23:07:00.000Z | 2020-03-11T16:09:02.000Z | test/gtest/test_kernel_dumper.cpp | pint1022/coriander | eaf9549569bdadf0fa953a2cfe1cfaff7cd5d438 | [
"Apache-2.0"
] | null | null | null | test/gtest/test_kernel_dumper.cpp | pint1022/coriander | eaf9549569bdadf0fa953a2cfe1cfaff7cd5d438 | [
"Apache-2.0"
] | 2 | 2020-03-04T13:59:48.000Z | 2020-03-09T13:11:45.000Z | // Copyright Hugh Perkins 2016
// 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 writi... | 32.046693 | 212 | 0.696515 | [
"vector"
] |
e49cf325eee3f43ef7d6d8866d57a35c30a07a03 | 11,390 | cpp | C++ | fireworks/skyrocket_flare.cpp | fullrange-interactive/pmw-modules | e6b676bd5b22cb3fea821b7f1436b2bab6d80f94 | [
"MIT"
] | null | null | null | fireworks/skyrocket_flare.cpp | fullrange-interactive/pmw-modules | e6b676bd5b22cb3fea821b7f1436b2bab6d80f94 | [
"MIT"
] | null | null | null | fireworks/skyrocket_flare.cpp | fullrange-interactive/pmw-modules | e6b676bd5b22cb3fea821b7f1436b2bab6d80f94 | [
"MIT"
] | 1 | 2021-09-15T08:00:13.000Z | 2021-09-15T08:00:13.000Z | /*
* Copyright (C) 2002 Terence M. Welsh
* Ported to Linux by Tugrul Galatali <tugrul@galatali.com>
*
* Skyrocket 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 Free Software Foundation.
*
* Skyrocket is distribute... | 29.056122 | 110 | 0.592976 | [
"geometry",
"vector"
] |
e49e5fd5d05c19960b56245d38ad5c80c5428d80 | 21,137 | cpp | C++ | src/render_tasks/d3d12_deferred_composition.cpp | LaisoEmilio/WispRenderer | 8186856a7b3e1f0a19f6f6c8a9b99d8ccff38572 | [
"Apache-2.0"
] | 203 | 2019-04-26T10:52:22.000Z | 2022-03-15T17:42:44.000Z | src/render_tasks/d3d12_deferred_composition.cpp | LaisoEmilio/WispRenderer | 8186856a7b3e1f0a19f6f6c8a9b99d8ccff38572 | [
"Apache-2.0"
] | 90 | 2018-11-23T09:07:05.000Z | 2019-04-13T10:44:03.000Z | src/render_tasks/d3d12_deferred_composition.cpp | LaisoEmilio/WispRenderer | 8186856a7b3e1f0a19f6f6c8a9b99d8ccff38572 | [
"Apache-2.0"
] | 14 | 2019-06-19T00:52:00.000Z | 2021-02-19T13:44:01.000Z | /*!
* Copyright 2019 Breda University of Applied Sciences and Team Wisp (Viktor Zoutman, Emilio Laiso, Jens Hagen, Meine Zeinstra, Tahar Meijs, Koen Buitenhuis, Niels Brunekreef, Darius Bouma, Florian Schut)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in co... | 49.617371 | 204 | 0.76728 | [
"render",
"vector"
] |
e49e931f2d9ddc8ba074a1e244a0f0580815892f | 19,022 | cpp | C++ | dumbo_sim_bringup/src/dumbo_velocity_integrator.cpp | tbazina/dumbo_robot | f8332593dd1f6e335a1bd1c6301476f83cb44dc4 | [
"BSD-3-Clause"
] | null | null | null | dumbo_sim_bringup/src/dumbo_velocity_integrator.cpp | tbazina/dumbo_robot | f8332593dd1f6e335a1bd1c6301476f83cb44dc4 | [
"BSD-3-Clause"
] | null | null | null | dumbo_sim_bringup/src/dumbo_velocity_integrator.cpp | tbazina/dumbo_robot | f8332593dd1f6e335a1bd1c6301476f83cb44dc4 | [
"BSD-3-Clause"
] | null | null | null | /*
* dumbo_velocity_integrator.cpp
*
*
* Created on: Mar 3, 2014
* Authors: Yuquan Wang
* yuquan <at> kth.se
*/
/* Copyright (c) 2014, Yuquan Wang, CVAP, KTH
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided tha... | 34.648452 | 162 | 0.716381 | [
"vector"
] |
e4a124ce950dd77c1a2dd03c5372fa35029e8aee | 738 | hpp | C++ | include/auxiliary.hpp | dariaemacs/Huffman | 8865e2d0cbfafe5c5ff4ca0ae2f9158dd4afbaea | [
"MIT"
] | 7 | 2020-06-04T21:24:18.000Z | 2021-12-22T07:38:03.000Z | include/auxiliary.hpp | dariaemacs/Huffman | 8865e2d0cbfafe5c5ff4ca0ae2f9158dd4afbaea | [
"MIT"
] | null | null | null | include/auxiliary.hpp | dariaemacs/Huffman | 8865e2d0cbfafe5c5ff4ca0ae2f9158dd4afbaea | [
"MIT"
] | 1 | 2021-11-27T14:28:08.000Z | 2021-11-27T14:28:08.000Z | #ifndef AUXILIARY_H
#define AUXILIARY_H
#include <iostream>
#include <sstream>
#include <fstream>
inline std::ifstream::pos_type get_filesize(std::string& filename){
std::ifstream in(filename, std::ifstream::ate);
if(!in){
std::cerr << "File opening error: " << filename << ". Can't get file size" << std::endl... | 21.705882 | 93 | 0.584011 | [
"vector"
] |
e4a6910da574da349bd2beb307c8bb2bfde0121e | 1,036 | cpp | C++ | Classes/scenes/GameScene/components/score/Score.cpp | friedcroco070801/bloodymouse | b5cc68e30043b6178ecb7a24744dd68bafd57e09 | [
"MIT"
] | null | null | null | Classes/scenes/GameScene/components/score/Score.cpp | friedcroco070801/bloodymouse | b5cc68e30043b6178ecb7a24744dd68bafd57e09 | [
"MIT"
] | null | null | null | Classes/scenes/GameScene/components/score/Score.cpp | friedcroco070801/bloodymouse | b5cc68e30043b6178ecb7a24744dd68bafd57e09 | [
"MIT"
] | null | null | null | #include "Score.h"
#include "Definitions.h"
USING_NS_CC;
Vector<Sprite*> Score::nodes;
void Score::drawScore(Scene* scene, int score) {
// Delete child
for (auto it = nodes.begin(); it != nodes.end(); it++) {
(*it)->removeFromParent();
}
nodes.clear();
// Draw score
auto visibleSize =... | 30.470588 | 125 | 0.611004 | [
"vector"
] |
e4a7948a54d6eb8118ae3865bb182cd827393ca3 | 667 | cpp | C++ | AdaEngine/test/TestSceneMesh.cpp | CookieYang/AdaEngine | e027a44113f58bd145880b42e1910487ebd5317f | [
"MIT"
] | 1 | 2020-08-25T04:26:10.000Z | 2020-08-25T04:26:10.000Z | AdaEngine/test/TestSceneMesh.cpp | CookieYang/AdaEngine | e027a44113f58bd145880b42e1910487ebd5317f | [
"MIT"
] | null | null | null | AdaEngine/test/TestSceneMesh.cpp | CookieYang/AdaEngine | e027a44113f58bd145880b42e1910487ebd5317f | [
"MIT"
] | null | null | null | #include "TestSceneMesh.h"
#include "Engine.h"
#include "AdaMath.h"
#include "ScenePawn.h"
void TestSceneMesh::doInit() {
cube = new SceneMesh;
// set Mesh
cube->setMesh("cube_mesh");
// set Material
cube->setMaterial("defalut_mat_ins");
cube->AttachToRoot();
cube->setScale(DMath::makeVect(... | 21.516129 | 64 | 0.650675 | [
"mesh"
] |
e4ae928676070d1f4429ab687b9ae15268ea337e | 7,602 | cpp | C++ | source/modules/solver/agent/discrete/discrete.cpp | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 43 | 2018-07-26T07:20:42.000Z | 2022-03-02T10:23:12.000Z | source/modules/solver/agent/discrete/discrete.cpp | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 212 | 2018-09-21T10:44:07.000Z | 2022-03-22T14:33:05.000Z | source/modules/solver/agent/discrete/discrete.cpp | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 16 | 2018-07-25T15:00:36.000Z | 2022-03-22T14:19:46.000Z | #include "engine.hpp"
#include "modules/solver/agent/discrete/discrete.hpp"
#include "sample/sample.hpp"
namespace korali
{
namespace solver
{
namespace agent
{
;
void Discrete::initializeAgent()
{
// Getting discrete problem pointer
_problem = dynamic_cast<problem::reinforcementLearning::Discrete *>(_k->_problem... | 34.712329 | 129 | 0.6593 | [
"vector"
] |
e4aff876fbf462c5ea4dcaa55110d5ac3bb391d9 | 6,548 | cpp | C++ | soapy/src/test/test_air_packet_9.cpp | siglabsoss/s-modem | 0a259b4f3207dd043c198b76a4bc18c8529bcf44 | [
"BSD-3-Clause"
] | null | null | null | soapy/src/test/test_air_packet_9.cpp | siglabsoss/s-modem | 0a259b4f3207dd043c198b76a4bc18c8529bcf44 | [
"BSD-3-Clause"
] | null | null | null | soapy/src/test/test_air_packet_9.cpp | siglabsoss/s-modem | 0a259b4f3207dd043c198b76a4bc18c8529bcf44 | [
"BSD-3-Clause"
] | null | null | null | #include <rapidcheck.h>
#include <vector>
#include <algorithm>
#include <iostream>
#include <iomanip>
#include "driver/AirPacket.hpp"
#include "cpp_utils.hpp"
#include "schifra_galois_field.hpp"
#include "schifra_galois_field_polynomial.hpp"
#include "schifra_sequential_root_generator_polynomial_creator.hpp"
#include "... | 23.469534 | 82 | 0.625687 | [
"vector"
] |
e4ba49b9e9b174ff5524347b7b25a29f5dfeda14 | 1,833 | cpp | C++ | Module/Lua5/Lua5/LuaScript.cpp | arkiny/OSwithMSVC | 90cd62ce9bbe8301942e024404f32b04874e7906 | [
"MIT"
] | 1 | 2021-05-09T01:24:05.000Z | 2021-05-09T01:24:05.000Z | Module/Lua5/Lua5/LuaScript.cpp | arkiny/OSwithMSVC | 90cd62ce9bbe8301942e024404f32b04874e7906 | [
"MIT"
] | null | null | null | Module/Lua5/Lua5/LuaScript.cpp | arkiny/OSwithMSVC | 90cd62ce9bbe8301942e024404f32b04874e7906 | [
"MIT"
] | null | null | null | #include "LuaScript.h"
LuaScript::LuaScript(std::string filename) {
L = luaL_newstate();
int result = luaL_loadfile(L, filename.c_str());
if(result || lua_pcall(L, 0, 0, 0)) {
// std::cout<<"Error: failed to load ("<<filename<<")"<<std::endl;
L = 0;
}
if(L) luaL_openlibs(L);
}
LuaScript::~L... | 26.565217 | 88 | 0.546645 | [
"vector"
] |
e4bd39d4e02377fa0d75280d9f7d133b6ae93afc | 11,460 | cpp | C++ | simulate_uc_events/simulate_uc_events.cpp | malariagen/glycophorin_cnvs | 292eba2da2c58b3200f1dc3cd95c7e36a0d29bc9 | [
"MIT"
] | 1 | 2017-11-28T20:36:36.000Z | 2017-11-28T20:36:36.000Z | simulate_uc_events/simulate_uc_events.cpp | malariagen/glycophorin_cnvs | 292eba2da2c58b3200f1dc3cd95c7e36a0d29bc9 | [
"MIT"
] | null | null | null | simulate_uc_events/simulate_uc_events.cpp | malariagen/glycophorin_cnvs | 292eba2da2c58b3200f1dc3cd95c7e36a0d29bc9 | [
"MIT"
] | 4 | 2017-04-27T10:45:45.000Z | 2021-05-19T23:50:58.000Z | #include <map>
#include <set>
#include <string>
#include <cassert>
#include <iostream>
#include <vector>
#include <algorithm>
// Compile with: g++ -std=c++11 -o simulate_uc_events simulate_uc_events.cpp
// We represent sequences as strings of integers (from 0 to a possible 255).
// These represent one of a fixed numb... | 35.045872 | 157 | 0.64459 | [
"vector"
] |
e4c1cccc9c18e9efa64d1a8c570c5c054b158e9e | 2,379 | cpp | C++ | ipc/native/src/core/source/ipc_file_descriptor.cpp | openharmony-sig-ci/communication_ipc | 212baa3affdf10a365657464c4e86e8fdab4224c | [
"Apache-2.0"
] | 3 | 2021-11-16T20:51:58.000Z | 2022-02-28T21:21:11.000Z | ipc/native/src/core/source/ipc_file_descriptor.cpp | openharmony-sig-ci/communication_ipc | 212baa3affdf10a365657464c4e86e8fdab4224c | [
"Apache-2.0"
] | null | null | null | ipc/native/src/core/source/ipc_file_descriptor.cpp | openharmony-sig-ci/communication_ipc | 212baa3affdf10a365657464c4e86e8fdab4224c | [
"Apache-2.0"
] | 1 | 2021-09-13T11:17:58.000Z | 2021-09-13T11:17:58.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 ... | 25.858696 | 98 | 0.713325 | [
"object"
] |
e4c4b9dc2f526b96e68e240b31df3b723e6a7bde | 7,616 | cc | C++ | src/ui/lib/escher/test/geometry/intersection_unittest.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | src/ui/lib/escher/test/geometry/intersection_unittest.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | src/ui/lib/escher/test/geometry/intersection_unittest.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 The Fuchsia 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 "src/ui/lib/escher/geometry/intersection.h"
#include <gtest/gtest.h>
#include "src/lib/fxl/logging.h"
#include "src/ui/lib/escher/acceleration/u... | 34.93578 | 99 | 0.659926 | [
"mesh",
"geometry",
"vector"
] |
e4c9b3ff7ea172f56524f767d6ccbaa389abdc28 | 4,834 | cpp | C++ | Source/Utility/MythForest/Component/Widget/WidgetComponent.cpp | paintdream/paintsnow | 3a1cbc9e571eaa2e62a3a2d60f75817b45f0c781 | [
"MIT"
] | null | null | null | Source/Utility/MythForest/Component/Widget/WidgetComponent.cpp | paintdream/paintsnow | 3a1cbc9e571eaa2e62a3a2d60f75817b45f0c781 | [
"MIT"
] | null | null | null | Source/Utility/MythForest/Component/Widget/WidgetComponent.cpp | paintdream/paintsnow | 3a1cbc9e571eaa2e62a3a2d60f75817b45f0c781 | [
"MIT"
] | null | null | null | #include "WidgetComponent.h"
#include "../../../SnowyStream/Resource/MeshResource.h"
using namespace PaintsNow;
WidgetComponent::WidgetComponent(const TShared<MeshResource>& mesh, const TShared<BatchComponent>& batch) : BaseClass(mesh, batch), texCoordBegin(0, 0, 0, 0), texCoordEnd(1, 1, 1, 1) {
Flag().fetch_or(REND... | 48.828283 | 197 | 0.797269 | [
"mesh",
"vector"
] |
e4cb63f73d8f5de83794fb9238c97f7b7fc52e8a | 1,181 | hpp | C++ | core/impl/memory/memory_p1.hpp | auyunli/enhance | ca99530c80b42842e713ed4b62e40d12e56ee24a | [
"BSD-2-Clause"
] | null | null | null | core/impl/memory/memory_p1.hpp | auyunli/enhance | ca99530c80b42842e713ed4b62e40d12e56ee24a | [
"BSD-2-Clause"
] | null | null | null | core/impl/memory/memory_p1.hpp | auyunli/enhance | ca99530c80b42842e713ed4b62e40d12e56ee24a | [
"BSD-2-Clause"
] | null | null | null | #ifndef E2_MEMORY_P1_HPP
#define E2_MEMORY_P1_HPP
#include <list>
#include <cstdint>
#include <utility>
#include <cstring>
#include <vector>
#include "i_memory_partition.hpp"
#include "memory_common.hpp"
namespace e2 { namespace memory {
class memory_p1_impl {
public:
memory_p1_impl() : _mem_start( n... | 23.156863 | 109 | 0.640982 | [
"vector"
] |
e4cf4c1c6e5f6b9060d830e7dc0198ac85109b1a | 13,333 | cc | C++ | mindspore/ccsrc/minddata/dataset/engine/datasetops/source/tedlium_op.cc | PowerOlive/mindspore | bda20724a94113cedd12c3ed9083141012da1f15 | [
"Apache-2.0"
] | 1 | 2021-12-27T13:42:29.000Z | 2021-12-27T13:42:29.000Z | mindspore/ccsrc/minddata/dataset/engine/datasetops/source/tedlium_op.cc | zimo-geek/mindspore | 665ec683d4af85c71b2a1f0d6829356f2bc0e1ff | [
"Apache-2.0"
] | null | null | null | mindspore/ccsrc/minddata/dataset/engine/datasetops/source/tedlium_op.cc | zimo-geek/mindspore | 665ec683d4af85c71b2a1f0d6829356f2bc0e1ff | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 43.009677 | 120 | 0.660467 | [
"object",
"vector"
] |
e4d7a46e94d94714dd8df9434ca6306bff6f5cf9 | 5,168 | cpp | C++ | src/tfrecordimporter.cpp | skn123/deeplabel | 02dc59ccb368fbbae5f1a02b589f8f370a8dc17f | [
"MIT"
] | 164 | 2018-04-19T00:41:39.000Z | 2022-02-22T12:52:53.000Z | src/tfrecordimporter.cpp | skn123/deeplabel | 02dc59ccb368fbbae5f1a02b589f8f370a8dc17f | [
"MIT"
] | 32 | 2019-04-20T00:19:48.000Z | 2021-10-03T18:38:12.000Z | src/tfrecordimporter.cpp | skn123/deeplabel | 02dc59ccb368fbbae5f1a02b589f8f370a8dc17f | [
"MIT"
] | 27 | 2018-07-23T04:49:59.000Z | 2022-02-21T00:42:53.000Z | #include "tfrecordimporter.h"
void TFRecordImporter::find_example_boundaries(QByteArray buffer, std::vector<size_t> &record_offsets, std::vector<size_t> &record_sizes){
size_t offset = 0;
size_t next_offset = 0;
size_t header_size = 12;
size_t footer_size = 4;
size_t buffer_size = static_cast<uns... | 35.156463 | 138 | 0.63274 | [
"object",
"vector"
] |
e4e05f3fc6912cd3d277de44c8401bd4674f3bed | 14,925 | cpp | C++ | AST.cpp | taylor-santos/reflex-bison-ast | 6d3d639305532b40f98980b5a4e750e5cd216c7d | [
"BSD-2-Clause"
] | null | null | null | AST.cpp | taylor-santos/reflex-bison-ast | 6d3d639305532b40f98980b5a4e750e5cd216c7d | [
"BSD-2-Clause"
] | null | null | null | AST.cpp | taylor-santos/reflex-bison-ast | 6d3d639305532b40f98980b5a4e750e5cd216c7d | [
"BSD-2-Clause"
] | null | null | null | #include "AST.h"
namespace AST
{
void ASTNode::json_indent(std::ostream& out, unsigned int indent){
for (unsigned int i=0; i<indent; i++){
out << " ";
}
}
void ASTNode::json_head(std::ostream& out, unsigned int &indent, std::string node_kind){
out << "{" << std::endl... | 43.897059 | 154 | 0.534472 | [
"vector"
] |
e4e385ff0f104dda543e40e16634f3a48fb26a19 | 3,393 | hpp | C++ | components/compiler/exprparser.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | components/compiler/exprparser.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | components/compiler/exprparser.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | #ifndef COMPILER_EXPRPARSER_H_INCLUDED
#define COMPILER_EXPRPARSER_H_INCLUDED
#include <vector>
#include <components/interpreter/types.hpp>
#include "parser.hpp"
#include "tokenloc.hpp"
namespace Compiler
{
class Locals;
class Literals;
class ExprParser : public Parser
{
Locals& mLocals... | 31.12844 | 91 | 0.575597 | [
"vector"
] |
e4e74f29207442436c2b1cbb88e04c384a2e0f84 | 1,133 | cpp | C++ | 1090.cpp | AIpynux/PAT | 5f93ddf4ef15b42264fe1c312863a4444efe13b2 | [
"MIT"
] | 2 | 2017-04-26T09:22:24.000Z | 2017-04-26T09:22:27.000Z | 1090.cpp | hgneer/PAT | 8a8cda9fe28108142de8c0d8b9b9105f27754621 | [
"MIT"
] | null | null | null | 1090.cpp | hgneer/PAT | 8a8cda9fe28108142de8c0d8b9b9105f27754621 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <cstring>
#include <queue>
#include <vector>
#include <cmath>
const int MAX = 100004;
using namespace std;
struct node{
int depth;
vector<int> child;
}node[MAX];
int treedepth = -1;
int number,father,root;
double price,percentage,rate;
int depth,num;... | 9.441667 | 57 | 0.559576 | [
"vector"
] |
e4efa3fbbb75f3b18845492b34719bd2dbd59c8c | 5,501 | hpp | C++ | sigscan/include/sigscan/scan.hpp | surrealwaffle/thesurrealwaffle | 6937d8e2604628a5c9141feef837d89e81f68165 | [
"BSL-1.0"
] | 3 | 2018-07-20T23:04:45.000Z | 2021-07-09T04:16:42.000Z | sigscan/include/sigscan/scan.hpp | surrealwaffle/thesurrealwaffle | 6937d8e2604628a5c9141feef837d89e81f68165 | [
"BSL-1.0"
] | null | null | null | sigscan/include/sigscan/scan.hpp | surrealwaffle/thesurrealwaffle | 6937d8e2604628a5c9141feef837d89e81f68165 | [
"BSL-1.0"
] | 1 | 2018-07-21T06:32:13.000Z | 2018-07-21T06:32:13.000Z |
// Copyright surrealwaffle 2018 - 2020.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <cstddef> // std::size_t
#include <functional> // std::function
... | 38.201389 | 87 | 0.628977 | [
"object"
] |
e4f01dc26a7963b27d7549a8205744522974137f | 3,543 | cc | C++ | sdl-cef/stupid_background.cc | antonc27/sdl2-cef | 7fc796595033281663cc9dff9f1c93f83952a2aa | [
"BSD-3-Clause"
] | 2 | 2021-11-01T12:11:44.000Z | 2022-03-11T17:48:54.000Z | sdl-cef/stupid_background.cc | antonc27/sdl2-cef | 7fc796595033281663cc9dff9f1c93f83952a2aa | [
"BSD-3-Clause"
] | null | null | null | sdl-cef/stupid_background.cc | antonc27/sdl2-cef | 7fc796595033281663cc9dff9f1c93f83952a2aa | [
"BSD-3-Clause"
] | null | null | null |
#include "stupid_background.h"
#include <SDL2/SDL_image.h>
StupidBackground::StupidBackground(int count, int viewWidth, int viewHeight, SDL_Renderer *renderer)
: count(count),
viewWidth(viewWidth),
viewHeight(viewHeight),
renderer(renderer) {
std::string imgPath = std::stri... | 29.040984 | 100 | 0.588484 | [
"render"
] |
e4f45a22834513509a0ee9fa5fe9c8225cd1ae38 | 1,933 | cpp | C++ | UVa 1390 - Interconnect/sample/1390 - Interconnect.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2020-11-24T03:17:21.000Z | 2020-11-24T03:17:21.000Z | UVa 1390 - Interconnect/sample/1390 - Interconnect.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | null | null | null | UVa 1390 - Interconnect/sample/1390 - Interconnect.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2021-04-11T16:22:31.000Z | 2021-04-11T16:22:31.000Z | #include <stdio.h>
#include <vector>
#include <map>
#include <algorithm>
using namespace std;
int parent[32], weight[32];
int findp(int x) {
return parent[x] == x ? x : findp(parent[x]);
}
void joint(int x, int y) {
x = findp(x), y = findp(y);
if (x == y) return;
if (weight[x] > weight[y])
parent[y] = x, weight... | 21.719101 | 46 | 0.497155 | [
"vector"
] |
e4f710be62559f158f7c8e9fc13b8379a6e33036 | 5,861 | cpp | C++ | eval/src/vespa/eval/eval/engine_or_factory.cpp | klebadev/vespa | b233b33e0cd425e50838906ee79d46271f1d868a | [
"Apache-2.0"
] | null | null | null | eval/src/vespa/eval/eval/engine_or_factory.cpp | klebadev/vespa | b233b33e0cd425e50838906ee79d46271f1d868a | [
"Apache-2.0"
] | null | null | null | eval/src/vespa/eval/eval/engine_or_factory.cpp | klebadev/vespa | b233b33e0cd425e50838906ee79d46271f1d868a | [
"Apache-2.0"
] | null | null | null | // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "engine_or_factory.h"
#include "fast_value.h"
#include "simple_value.h"
#include "value_codec.h"
#include "simple_tensor_engine.h"
#include <vespa/eval/instruction/generic_concat.h>
#include <vespa... | 29.60101 | 145 | 0.665927 | [
"vector"
] |
e4f753b7cf8cec407585dbc767a2f6850ce726fb | 3,267 | cpp | C++ | test/runSDK.cpp | jaehyuck0103/HesaiLidar_General_SDK | 6541573ded3ada108bde70bba0bf7f74c6f32900 | [
"BSD-2-Clause"
] | null | null | null | test/runSDK.cpp | jaehyuck0103/HesaiLidar_General_SDK | 6541573ded3ada108bde70bba0bf7f74c6f32900 | [
"BSD-2-Clause"
] | null | null | null | test/runSDK.cpp | jaehyuck0103/HesaiLidar_General_SDK | 6541573ded3ada108bde70bba0bf7f74c6f32900 | [
"BSD-2-Clause"
] | null | null | null | #include "pandar/pandar_config.h"
#include "pandar/pandar_lidar_receiver.h"
#include "pandar/pandar_utils.h"
#include <pcl/visualization/cloud_viewer.h>
#include <tbb/concurrent_queue.h>
#include <thread>
pcl::visualization::CloudViewer viewer("Simple");
tbb::concurrent_bounded_queue<std::vector<uint8_t>> con_queue;... | 33.336735 | 99 | 0.590756 | [
"vector"
] |
e4fd7c93788787a7037298e3bccbd9cb2b48bf56 | 14,785 | cc | C++ | chrome/browser/payments/android/payment_app_service_bridge.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/payments/android/payment_app_service_bridge.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/payments/android/payment_app_service_bridge.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2020 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 "chrome/browser/payments/android/payment_app_service_bridge.h"
#include <string>
#include <vector>
#include "base/android/jni_array.h"
#include... | 39.217507 | 84 | 0.764626 | [
"vector"
] |
07ecb70c5e1bd4c92d9d68ff9c7b725d6ff15adc | 5,170 | cpp | C++ | src/apps/M2Admittance/M2Admittance.cpp | Lawaries/CANOpenRobotController | 80d384ed59b07a4c38ff05f3929262674f29030d | [
"Apache-2.0"
] | null | null | null | src/apps/M2Admittance/M2Admittance.cpp | Lawaries/CANOpenRobotController | 80d384ed59b07a4c38ff05f3929262674f29030d | [
"Apache-2.0"
] | null | null | null | src/apps/M2Admittance/M2Admittance.cpp | Lawaries/CANOpenRobotController | 80d384ed59b07a4c38ff05f3929262674f29030d | [
"Apache-2.0"
] | null | null | null | #include "M2Admittance.h"
#define OWNER ((M2Admittance *)owner)
M2Admittance::M2Admittance() {
robot = new RobotM2();
STest = new AdmittanceTest();
// Create PRE-DESIGNED State Machine events and state objects.
calibState = new M2Calib(this, robot); // Calibration which state ?
standbyState = new... | 30.591716 | 108 | 0.64971 | [
"object"
] |
07f355bce19cd3e2ec25eb5cf946c5f414418525 | 786 | cpp | C++ | 1201-1300/1229-Meeting Scheduler/1229-Meeting Scheduler.cpp | jiadaizhao/LeetCode | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | [
"MIT"
] | 49 | 2018-05-05T02:53:10.000Z | 2022-03-30T12:08:09.000Z | 1201-1300/1229-Meeting Scheduler/1229-Meeting Scheduler.cpp | jolly-fellow/LeetCode | ab20b3ec137ed05fad1edda1c30db04ab355486f | [
"MIT"
] | 11 | 2017-12-15T22:31:44.000Z | 2020-10-02T12:42:49.000Z | 1201-1300/1229-Meeting Scheduler/1229-Meeting Scheduler.cpp | jolly-fellow/LeetCode | ab20b3ec137ed05fad1edda1c30db04ab355486f | [
"MIT"
] | 28 | 2017-12-05T10:56:51.000Z | 2022-01-26T18:18:27.000Z | class Solution {
public:
vector<int> minAvailableDuration(vector<vector<int>>& slots1, vector<vector<int>>& slots2, int duration) {
priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>>> pq;
for (auto& s : slots1) {
if (s[1] - s[0] >= duration) {
... | 29.111111 | 110 | 0.419847 | [
"vector"
] |
07f6aced1c1b97c2e3a54bc3d973f06e748c2a70 | 4,500 | hpp | C++ | src/Vector.hpp | ToruNiina/AX | c99ddaa683dc94c7ec856a7cf1e10c0a6189951a | [
"MIT"
] | 1 | 2017-01-16T13:56:31.000Z | 2017-01-16T13:56:31.000Z | src/Vector.hpp | ToruNiina/AX | c99ddaa683dc94c7ec856a7cf1e10c0a6189951a | [
"MIT"
] | null | null | null | src/Vector.hpp | ToruNiina/AX | c99ddaa683dc94c7ec856a7cf1e10c0a6189951a | [
"MIT"
] | null | null | null | #ifndef AX_VECTOR_H
#define AX_VECTOR_H
#include <array>
#include <vector>
#include <iostream>
#include "VectorExpression.hpp"
namespace ax
{
// static dimension case
template<typename T_elem, dimension_type I_dim>
class Vector
{
public:
// traits
using tag = vector_tag;
using elem_t = T_elem;
co... | 29.411765 | 71 | 0.612889 | [
"vector"
] |
07f8b2cd854dcae6b9fc31073c532c429ff21373 | 10,464 | cpp | C++ | dwarf/SB/Game/zLightEffect.cpp | stravant/bfbbdecomp | 2126be355a6bb8171b850f829c1f2731c8b5de08 | [
"OLDAP-2.7"
] | 1 | 2021-01-05T11:28:55.000Z | 2021-01-05T11:28:55.000Z | dwarf/SB/Game/zLightEffect.cpp | sonich2401/bfbbdecomp | 5f58b62505f8929a72ccf2aa118a1539eb3a5bd6 | [
"OLDAP-2.7"
] | null | null | null | dwarf/SB/Game/zLightEffect.cpp | sonich2401/bfbbdecomp | 5f58b62505f8929a72ccf2aa118a1539eb3a5bd6 | [
"OLDAP-2.7"
] | 1 | 2022-03-30T15:15:08.000Z | 2022-03-30T15:15:08.000Z | typedef struct iLight;
typedef struct xLinkAsset;
typedef struct RwObjectHasFrame;
typedef struct RpLight;
typedef struct _zLight;
typedef struct _xFColor;
typedef struct xVec3;
typedef struct xBase;
typedef struct zLightAsset;
typedef struct xSphere;
typedef struct xBaseAsset;
typedef struct RwObject;
typedef struct R... | 25.093525 | 79 | 0.747898 | [
"object"
] |
580c2e0aa023bd98c005b2d494abf524b3de7d32 | 50,680 | cc | C++ | aos/configuration.cc | AustinSchuh/971-Robot-Code | 99abc66fd2d899c0bdab338dc6f57dc5def9be8d | [
"Apache-2.0"
] | 39 | 2021-06-18T03:22:30.000Z | 2022-03-21T15:23:43.000Z | aos/configuration.cc | AustinSchuh/971-Robot-Code | 99abc66fd2d899c0bdab338dc6f57dc5def9be8d | [
"Apache-2.0"
] | 10 | 2021-06-18T03:22:19.000Z | 2022-03-18T22:14:15.000Z | aos/configuration.cc | AustinSchuh/971-Robot-Code | 99abc66fd2d899c0bdab338dc6f57dc5def9be8d | [
"Apache-2.0"
] | 4 | 2021-08-19T19:20:04.000Z | 2022-03-08T07:33:18.000Z | #include "aos/configuration.h"
#include <arpa/inet.h>
#include <ifaddrs.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <unistd.h>
#include <cstdlib>
#include <cstring>
#include <map>
#include <set>
#include <string>
#include <string_view>
#include <vector>
#include "absl/container/btree_set.h"
#include "... | 34.855571 | 80 | 0.624092 | [
"vector"
] |
581154ea8d15728e0c53895b51488849cd654a9f | 1,335 | hpp | C++ | include/Buffer.hpp | EngineCL/EngineCL | 28b717317c3d6330385cb3b8f574f2b35f62ad4c | [
"MIT"
] | 13 | 2020-10-12T00:08:42.000Z | 2022-03-31T21:17:12.000Z | include/Buffer.hpp | EngineCL/EngineCL | 28b717317c3d6330385cb3b8f574f2b35f62ad4c | [
"MIT"
] | null | null | null | include/Buffer.hpp | EngineCL/EngineCL | 28b717317c3d6330385cb3b8f574f2b35f62ad4c | [
"MIT"
] | 3 | 2020-11-19T01:17:57.000Z | 2021-04-27T03:40:05.000Z | /**
* Copyright (c) 2018 ATC (University of Cantabria) <nozalr@unican.es>
* This file is part of EngineCL which is released under MIT License.
* See file LICENSE for full license details.
*/
#ifndef ENGINECL_BUFFER_HPP
#define ENGINECL_BUFFER_HPP 1
#include <CL/cl.h>
#include <iostream>
#include <memory>
#inclu... | 18.040541 | 73 | 0.668914 | [
"vector"
] |
58116d9c82e9f708cd5b0ade884f6f4eb42faa40 | 3,249 | cpp | C++ | src/helper.cpp | Lunatoid/TypeTitan | 3760cdb0942a12c6ad6b95ade45c555ef46ed1c0 | [
"MIT"
] | 2 | 2020-11-03T14:17:16.000Z | 2021-09-06T18:10:20.000Z | src/helper.cpp | Lunatoid/TypeTitan | 3760cdb0942a12c6ad6b95ade45c555ef46ed1c0 | [
"MIT"
] | null | null | null | src/helper.cpp | Lunatoid/TypeTitan | 3760cdb0942a12c6ad6b95ade45c555ef46ed1c0 | [
"MIT"
] | null | null | null | #include "helper.h"
#include <sstream>
#include <cstring>
#if defined(_WIN32)
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#endif
class Index {
public:
Index() {
index = clang_createIndex(1, 0);
}
~Index() {
clang_disposeIndex(index);
}
CXIndex get_index() const {
re... | 24.613636 | 115 | 0.562635 | [
"vector"
] |
5819bce26cc22fef38c636f4bf7dcb4f66276d86 | 3,576 | cc | C++ | tests/unit/multiclass/MulticlassStrategy_unittest.cc | cloner1984/shogun | 901c04b2c6550918acf0594ef8afeb5dcd840a7d | [
"BSD-3-Clause"
] | 2 | 2015-01-13T15:18:27.000Z | 2015-05-01T13:28:48.000Z | tests/unit/multiclass/MulticlassStrategy_unittest.cc | cloner1984/shogun | 901c04b2c6550918acf0594ef8afeb5dcd840a7d | [
"BSD-3-Clause"
] | null | null | null | tests/unit/multiclass/MulticlassStrategy_unittest.cc | cloner1984/shogun | 901c04b2c6550918acf0594ef8afeb5dcd840a7d | [
"BSD-3-Clause"
] | 1 | 2020-06-02T09:15:40.000Z | 2020-06-02T09:15:40.000Z | #include <shogun/multiclass/MulticlassOneVsOneStrategy.h>
#include <shogun/multiclass/MulticlassOneVsRestStrategy.h>
#include <shogun/labels/BinaryLabels.h>
#include <shogun/labels/MulticlassLabels.h>
#include <gtest/gtest.h>
using namespace shogun;
TEST(MulticlassStrategy,rescale_ova_norm)
{
SGVector<float64_t> sco... | 27.29771 | 66 | 0.736018 | [
"vector"
] |
581a1425034c1225c6460320dc96e2810b00272c | 6,058 | hpp | C++ | src/uml/src_gen/uml/impl/DestroyObjectActionImpl.hpp | dataliz9r/MDE4CPP | 9c5ce01c800fb754c371f1a67f648366eeabae49 | [
"MIT"
] | null | null | null | src/uml/src_gen/uml/impl/DestroyObjectActionImpl.hpp | dataliz9r/MDE4CPP | 9c5ce01c800fb754c371f1a67f648366eeabae49 | [
"MIT"
] | 1 | 2019-03-01T00:54:13.000Z | 2019-03-04T02:15:50.000Z | src/uml/src_gen/uml/impl/DestroyObjectActionImpl.hpp | vallesch/MDE4CPP | 7f8a01dd6642820913b2214d255bef2ea76be309 | [
"MIT"
] | null | null | null | //********************************************************************
//*
//* Warning: This file was generated by ecore4CPP Generator
//*
//********************************************************************
#ifndef UML_DESTROYOBJECTACTIONDESTROYOBJECTACTIONIMPL_HPP
#define UML_DESTROYOBJECTACTIONDESTROYOBJECTAC... | 37.627329 | 162 | 0.651535 | [
"object",
"model"
] |
581d9be25748dc007772b52de2d2c13a9f8db31a | 2,813 | cpp | C++ | src/QuadTree.cpp | LiquidityC/flat | db5a1527f4b7f2f03cdc35c24e62a8642c47a794 | [
"MIT"
] | 75 | 2016-02-07T12:22:52.000Z | 2022-03-13T02:04:56.000Z | src/QuadTree.cpp | LiquidityC/flat | db5a1527f4b7f2f03cdc35c24e62a8642c47a794 | [
"MIT"
] | 5 | 2017-04-05T01:50:02.000Z | 2020-05-18T08:11:53.000Z | src/QuadTree.cpp | LiquidityC/flat | db5a1527f4b7f2f03cdc35c24e62a8642c47a794 | [
"MIT"
] | 4 | 2018-02-27T19:16:11.000Z | 2020-06-18T00:12:09.000Z | #include "QuadTree.h"
#include <SDL.h>
#include <algorithm>
#include <iostream>
#include <vector>
namespace flat2d {
int QuadTree::getNodeIndexFor(const Entity* e) const
{
int dw = bounds.getXpos() + (bounds.getWidth() / 2);
int dh = bounds.getYpos() + (bounds.getHeight() / 2);
bool left = false;
bool right ... | 21.310606 | 73 | 0.582652 | [
"vector"
] |
5838f0cc951544eae789ff84423533353c145aaa | 10,658 | cpp | C++ | src/Random/Transform.cpp | dfreese/Gray | fa941c0767a021b3344a374d0ef584f4c758447b | [
"MIT"
] | 1 | 2018-08-26T05:07:57.000Z | 2018-08-26T05:07:57.000Z | src/Random/Transform.cpp | dfreese/Gray | fa941c0767a021b3344a374d0ef584f4c758447b | [
"MIT"
] | null | null | null | src/Random/Transform.cpp | dfreese/Gray | fa941c0767a021b3344a374d0ef584f4c758447b | [
"MIT"
] | null | null | null | /*
* Gray: A Ray Tracing-based Monte Carlo Simulator for PET
*
* Copyright (c) 2018, David Freese, Peter Olcott, Sam Buss, Craig Levin
*
* This software is distributed under the terms of the MIT License unless
* otherwise noted. See LICENSE for further details.
*
*/
#include "Gray/Random/Transform.h"
#include... | 41.150579 | 84 | 0.679208 | [
"vector",
"model",
"transform"
] |
58468a9918147c811bbc40f348f813f740cbb8f0 | 6,019 | cc | C++ | third_party/webrtc/src/chromium/src/third_party/libaddressinput/src/cpp/test/testdata_source_test.cc | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 8 | 2016-02-08T11:59:31.000Z | 2020-05-31T15:19:54.000Z | third_party/webrtc/src/chromium/src/third_party/libaddressinput/src/cpp/test/testdata_source_test.cc | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 1 | 2021-05-05T11:11:31.000Z | 2021-05-05T11:11:31.000Z | third_party/webrtc/src/chromium/src/third_party/libaddressinput/src/cpp/test/testdata_source_test.cc | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 7 | 2016-02-09T09:28:14.000Z | 2020-07-25T19:03:36.000Z | // Copyright (C) 2013 Google 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 ... | 31.513089 | 80 | 0.67802 | [
"object"
] |
5847c58875de86f5a84f7264fae12d2041cd6adf | 5,601 | cpp | C++ | src/InputComponent.cpp | filipecaixeta/NeonEdgeGame | 7dbc825507d731d60a96b4a82975a70e6aa68d7e | [
"MIT"
] | 6 | 2017-05-10T19:25:23.000Z | 2021-04-08T23:55:17.000Z | src/InputComponent.cpp | filipecaixeta/NeonEdgeGame | 7dbc825507d731d60a96b4a82975a70e6aa68d7e | [
"MIT"
] | 1 | 2017-11-10T12:17:26.000Z | 2017-11-10T12:17:26.000Z | src/InputComponent.cpp | filipecaixeta/NeonEdgeGame | 7dbc825507d731d60a96b4a82975a70e6aa68d7e | [
"MIT"
] | 5 | 2017-05-30T01:07:46.000Z | 2021-04-08T23:55:19.000Z | /**
* Copyright (c) 2017 Neon Edge
* File Name: InputComponent.cpp
* Header File Name: InputComponent.h
* Class Name: InputComponent
* Objective: it manages the inputs components.
*/
#include <assert.h>
#include "InputComponent.h"
#include "InputManager.h"
/**
* Objective: it constructs Character obj... | 25.930556 | 112 | 0.645242 | [
"object"
] |
5855ce529a81c338dfa7204dfa6dbdda0611e275 | 2,122 | cpp | C++ | android-29/android/media/MediaScannerConnection.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/media/MediaScannerConnection.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/media/MediaScannerConnection.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../JArray.hpp"
#include "../content/ComponentName.hpp"
#include "../content/Context.hpp"
#include "../../JString.hpp"
#include "./MediaScannerConnection.hpp"
namespace android::media
{
// Fields
// QJniObject forward
MediaScannerConnection::MediaScannerConnection(QJniObject obj) : JObject(obj) {}
... | 24.964706 | 134 | 0.713478 | [
"object"
] |
5857836298ad2b10d5975bec3f024d554a69af0a | 5,251 | hpp | C++ | include/Trixy/Neuro/Functional/Optimizer/Adam.hpp | Sigma-Ryden/NeuralNetworkTrixy | 8e5b811e0c3a81dd05c67bcacf80f3b96f0694bf | [
"MIT"
] | null | null | null | include/Trixy/Neuro/Functional/Optimizer/Adam.hpp | Sigma-Ryden/NeuralNetworkTrixy | 8e5b811e0c3a81dd05c67bcacf80f3b96f0694bf | [
"MIT"
] | null | null | null | include/Trixy/Neuro/Functional/Optimizer/Adam.hpp | Sigma-Ryden/NeuralNetworkTrixy | 8e5b811e0c3a81dd05c67bcacf80f3b96f0694bf | [
"MIT"
] | null | null | null | #ifndef TRIXY_OPTIMIZER_ADAM_HPP
#define TRIXY_OPTIMIZER_ADAM_HPP
#include <Trixy/Neuro/Functional/Optimizer/Base.hpp>
#include <Trixy/Neuro/Functional/Optimizer/Interface.hpp>
#include <Trixy/Detail/FunctionDetail.hpp>
#include <Trixy/Neuro/Detail/TrixyNetMeta.hpp>
#include <Trixy/Neuro/Detail/MacroScope.hpp>
name... | 25.614634 | 84 | 0.676823 | [
"vector"
] |
585d9b9df981195309fa66824ffcc50f04075cb3 | 32,356 | cpp | C++ | src/CalSites/CalendarSites.cpp | dconnet/AgilityBook | 4804c79079d6109294a6d377fb6ebda70bcb30a1 | [
"MIT"
] | 1 | 2020-11-23T20:33:41.000Z | 2020-11-23T20:33:41.000Z | src/CalSites/CalendarSites.cpp | dconnet/AgilityBook | 4804c79079d6109294a6d377fb6ebda70bcb30a1 | [
"MIT"
] | null | null | null | src/CalSites/CalendarSites.cpp | dconnet/AgilityBook | 4804c79079d6109294a6d377fb6ebda70bcb30a1 | [
"MIT"
] | 3 | 2020-05-04T19:42:26.000Z | 2022-03-08T09:36:54.000Z | /*
* Copyright (c) David Connet. All Rights Reserved.
*
* License: See License.txt
*/
/**
* @file
* @brief Manage the direct download of calendar data from the web.
* @author David Connet
*
* Revision History
* 2018-12-16 Convert to fmt.
* 2014-12-30 Changed pixels to dialog units.
* 2012-03-16 Renamed Loa... | 25.659001 | 117 | 0.697429 | [
"vector"
] |
585dbbda263eee648abdda1684e617796a6e8b09 | 2,342 | cpp | C++ | compiled/cpp_stl_98/repeat_until_sized.cpp | smarek/ci_targets | c5edee7b0901fd8e7f75f85245ea4209b38e0cb3 | [
"MIT"
] | 4 | 2017-04-08T12:55:11.000Z | 2020-12-05T21:09:31.000Z | compiled/cpp_stl_98/repeat_until_sized.cpp | smarek/ci_targets | c5edee7b0901fd8e7f75f85245ea4209b38e0cb3 | [
"MIT"
] | 7 | 2018-04-23T01:30:33.000Z | 2020-10-30T23:56:14.000Z | compiled/cpp_stl_98/repeat_until_sized.cpp | smarek/ci_targets | c5edee7b0901fd8e7f75f85245ea4209b38e0cb3 | [
"MIT"
] | 6 | 2017-04-08T11:41:14.000Z | 2020-10-30T22:47:31.000Z | // This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "repeat_until_sized.h"
repeat_until_sized_t::repeat_until_sized_t(kaitai::kstream* p__io, kaitai::kstruct* p__parent, repeat_until_sized_t* p__root) : kaitai::kstruct(p__io) {
m__parent = p__parent;
m_... | 27.880952 | 155 | 0.615286 | [
"vector"
] |
5861f0b0fbd829bb9a52893b35f55809e2d3eafb | 2,245 | cpp | C++ | aws-cpp-sdk-glue/source/model/LastCrawlStatus.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-glue/source/model/LastCrawlStatus.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-glue/source/model/LastCrawlStatus.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/glue/model/LastCrawlStatus.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
... | 28.782051 | 92 | 0.61069 | [
"model"
] |
5868db01e61c8c8c01bfd15006e3439f8e54ea04 | 1,109 | cpp | C++ | Top Interview Questions/191. Number of 1 Bits/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | 1 | 2021-11-19T19:58:33.000Z | 2021-11-19T19:58:33.000Z | Top Interview Questions/191. Number of 1 Bits/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | null | null | null | Top Interview Questions/191. Number of 1 Bits/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | 2 | 2021-11-26T12:47:27.000Z | 2022-01-13T16:14:46.000Z | //
// main.cpp
// 191. Number of 1 Bits
//
// Created by 边俊林 on 2019/10/23.
// Copyright © 2019 Minecode.Link. All rights reserved.
//
#include <map>
#include <set>
#include <queue>
#include <string>
#include <stack>
#include <vector>
#include <cstdio>
#include <numeric>
#include <cstdlib>
#include <utility>
#incl... | 17.603175 | 56 | 0.562669 | [
"vector"
] |
5876ca1d925d372a3f8ff8a5339300bd20f49150 | 10,619 | cpp | C++ | src/beanmachine/graph/distribution/tests/bimixture_test.cpp | horizon-blue/beanmachine-1 | b13e4e3e28ffb860947eb8046863b0cabb581222 | [
"MIT"
] | 177 | 2021-12-12T14:19:05.000Z | 2022-03-24T05:48:10.000Z | src/beanmachine/graph/distribution/tests/bimixture_test.cpp | horizon-blue/beanmachine-1 | b13e4e3e28ffb860947eb8046863b0cabb581222 | [
"MIT"
] | 171 | 2021-12-11T06:12:05.000Z | 2022-03-31T20:26:29.000Z | src/beanmachine/graph/distribution/tests/bimixture_test.cpp | horizon-blue/beanmachine-1 | b13e4e3e28ffb860947eb8046863b0cabb581222 | [
"MIT"
] | 31 | 2021-12-11T06:27:19.000Z | 2022-03-25T13:31:56.000Z | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <gtest/gtest.h>
#include "beanmachine/graph/graph.h"
using namespace beanmachine::graph;
TEST(testdistrib, bimixture)... | 39.771536 | 80 | 0.663245 | [
"vector"
] |
587c69a91f4a60a8871b12959dfeb11133745ebc | 13,834 | cpp | C++ | Source/MediaInfo/Text/File_Scc.cpp | astiob/MediaInfoLib | 9bdf5ef2ce6116b08cea2600abc23e944a4cb62f | [
"BSD-2-Clause"
] | null | null | null | Source/MediaInfo/Text/File_Scc.cpp | astiob/MediaInfoLib | 9bdf5ef2ce6116b08cea2600abc23e944a4cb62f | [
"BSD-2-Clause"
] | null | null | null | Source/MediaInfo/Text/File_Scc.cpp | astiob/MediaInfoLib | 9bdf5ef2ce6116b08cea2600abc23e944a4cb62f | [
"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.
*/
//---------------------------------------------------------------------------
// Pre-compilation
#inclu... | 33.741463 | 150 | 0.404149 | [
"vector"
] |
58834bfd7a74fc7cfecd0f8f13064535f57f26be | 1,018 | hpp | C++ | include/nanorange/detail/concepts/movable.hpp | nyarlathotep-prog/NanoRange | ae170b7ad3213c40d788e649d2ffc1d774892098 | [
"BSL-1.0"
] | null | null | null | include/nanorange/detail/concepts/movable.hpp | nyarlathotep-prog/NanoRange | ae170b7ad3213c40d788e649d2ffc1d774892098 | [
"BSL-1.0"
] | null | null | null | include/nanorange/detail/concepts/movable.hpp | nyarlathotep-prog/NanoRange | ae170b7ad3213c40d788e649d2ffc1d774892098 | [
"BSL-1.0"
] | 3 | 2018-08-27T16:57:03.000Z | 2018-09-15T14:54:14.000Z | // nanorange/detail/concepts/movable.hpp
//
// Copyright (c) 2018 Tristan Brindle (tcbrindle at gmail dot com)
// 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 NANORANGE_DETAIL_CONCEPTS_MOVABLE_HPP
#define N... | 26.102564 | 79 | 0.733792 | [
"object"
] |
588689ce9fed90334ac234fe1d3538f991443987 | 44,170 | cpp | C++ | src/display/VRDataIndex.cpp | elainejiang8/MinVR | d3905b0a7b6b3e324e6ab3773ef29f651b8ad9d7 | [
"BSD-3-Clause"
] | null | null | null | src/display/VRDataIndex.cpp | elainejiang8/MinVR | d3905b0a7b6b3e324e6ab3773ef29f651b8ad9d7 | [
"BSD-3-Clause"
] | null | null | null | src/display/VRDataIndex.cpp | elainejiang8/MinVR | d3905b0a7b6b3e324e6ab3773ef29f651b8ad9d7 | [
"BSD-3-Clause"
] | null | null | null | #include "VRDataIndex.h"
namespace MinVR {
std::string VRDataIndex::rootNameSpace = "/";
// Step 7 of the specialization instructions (in VRDatum.h) is to
// add an entry here to register the new data type.
VRDatumFactory VRDataIndex::_initializeFactory() {
VRDatumFactory newFactory;
newFactory.RegisterVRDatum... | 30.27416 | 90 | 0.623138 | [
"object",
"vector"
] |
5888a0279ffdca12d6515da60e63a9277d1fdc90 | 2,848 | cpp | C++ | src/MapGenerator.cpp | justacid/spaceclimber | fcef23c4d2859b04861130871df37183c7551fb8 | [
"MIT"
] | null | null | null | src/MapGenerator.cpp | justacid/spaceclimber | fcef23c4d2859b04861130871df37183c7551fb8 | [
"MIT"
] | 1 | 2017-08-23T23:30:27.000Z | 2017-08-23T23:43:46.000Z | src/MapGenerator.cpp | justacid/spaceclimber | fcef23c4d2859b04861130871df37183c7551fb8 | [
"MIT"
] | null | null | null | #include "MapGenerator.h"
#include "Player.h"
#include "Camera.h"
#include "PowerUps/SpeedDown.h"
#include "PowerUps/SpeedUp.h"
#include "PowerUps/TimeStop.h"
#include "PowerUps/DoubleJump.h"
#include "PowerUps/SafetyNet.h"
MapGenerator::MapGenerator(Physics& physics, Camera& cam, Player& player) :
mPhysics(physi... | 28.19802 | 110 | 0.658006 | [
"vector"
] |
5889571f84ec2444f6b188893b5c1901a64f2578 | 5,661 | cpp | C++ | 10/asteroid_scanner.cpp | ComicSansMS/AdventOfCode2019 | 7ca0c57bf28ee8edab04c31a36dbd34d66d7f816 | [
"Unlicense"
] | 3 | 2019-12-01T17:37:33.000Z | 2021-12-14T10:12:09.000Z | 10/asteroid_scanner.cpp | ComicSansMS/AdventOfCode2019 | 7ca0c57bf28ee8edab04c31a36dbd34d66d7f816 | [
"Unlicense"
] | null | null | null | 10/asteroid_scanner.cpp | ComicSansMS/AdventOfCode2019 | 7ca0c57bf28ee8edab04c31a36dbd34d66d7f816 | [
"Unlicense"
] | null | null | null | #include <asteroid_scanner.hpp>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <numeric>
#include <ostream>
Vector2::Vector2()
:x(0), y(0)
{}
Vector2::Vector2(int xx, int yy)
:x(xx), y(yy)
{}
bool operator==(Vector2 const& lhs, Vector2 const& rhs) {
return (lhs.x == rhs.x) && (lhs.y =... | 33.105263 | 113 | 0.563505 | [
"vector"
] |
588b97b75ae1d1b0f800f42d5affa4cb038c710a | 4,189 | cpp | C++ | Code/Engine/Renderer/Material/Material_OGL.cpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | 2 | 2017-10-02T03:18:55.000Z | 2018-11-21T16:30:36.000Z | Code/Engine/Renderer/Material/Material_OGL.cpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | null | null | null | Code/Engine/Renderer/Material/Material_OGL.cpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | null | null | null | #include "Engine/Config/BuildConfig.hpp"
#ifdef GRAPHICS_API_OGL
#include "Engine/Renderer/Material/Material.hpp"
#include "Engine/Renderer/Shaders/ShaderProgram.hpp"
#include "Engine/General/Core/TheMemoryManager.hpp"
#include "Engine/Renderer/General/TextureBuffer.hpp"
#include "Engine/General/Logger/TheLogger.hpp"
... | 32.984252 | 125 | 0.434233 | [
"vector"
] |
588def15a0372d821611698082d64f3fc16a92a4 | 1,003 | cpp | C++ | done/div7.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | done/div7.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | done/div7.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <cstdio>
#include <cmath>
#include <vector>
#include <queue>
#include <map>
#include <unordered_map>
#include <set>
#include <unordered_set>
#include <stack>
#include <string>
#include <cstring>
#include <algorithm>
using namespace std;
typedef pair<int, int> ii;
int n;
... | 20.06 | 46 | 0.517448 | [
"vector"
] |
589446516a9d90bb89ca61ba1337c7648e3fab0d | 9,083 | cpp | C++ | src/day17.cpp | Chrinkus/advent-of-code-2020 | 15feedc68ddffe51ff2005e0cc8ab9f28fea97d8 | [
"MIT"
] | 1 | 2021-12-04T20:55:02.000Z | 2021-12-04T20:55:02.000Z | 2020/cpp/day17.cpp | Chrinkus/advent-of-code | b2ae137dc7a1d6fc9e20f29549e891404591c47f | [
"MIT"
] | null | null | null | 2020/cpp/day17.cpp | Chrinkus/advent-of-code | b2ae137dc7a1d6fc9e20f29549e891404591c47f | [
"MIT"
] | 1 | 2020-12-17T20:00:37.000Z | 2020-12-17T20:00:37.000Z | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <array>
#include "Read_input.hpp" // simple, handy reader
#include "Timer.hpp" // for timing solution
#include "Matrix11.hpp" // Stroustrup
#include "MatrixIO11.hpp" // Stroustrup
constexpr int WIDTH = ... | 32.323843 | 79 | 0.418474 | [
"vector",
"3d"
] |
58945c57c16670c889bce293c06ce119d82b9d44 | 989 | cpp | C++ | Museum/src/Scene/Frame2.cpp | coolzoom/Museum | 7c177beda99bd47ac7c7af358fbad9cb08e74bbc | [
"Apache-2.0"
] | 1 | 2021-04-01T12:27:39.000Z | 2021-04-01T12:27:39.000Z | Museum/src/Scene/Frame2.cpp | coolzoom/Museum | 7c177beda99bd47ac7c7af358fbad9cb08e74bbc | [
"Apache-2.0"
] | null | null | null | Museum/src/Scene/Frame2.cpp | coolzoom/Museum | 7c177beda99bd47ac7c7af358fbad9cb08e74bbc | [
"Apache-2.0"
] | 1 | 2021-04-01T12:30:35.000Z | 2021-04-01T12:30:35.000Z | #include "Frame2.h"
#include "Model.h"
Frame2::Frame2(const std::string& texture) {
frameModel= std::make_shared<Model>("res/models/museum/paintings/painting2.fbx", false);
frameModel->InsertTexture("res/models/museum/paintings/painting2_diffuse.png", TEX_TYPE::TEX_DIFFUSE);
frameModel->InsertTexture("res... | 44.954545 | 106 | 0.758342 | [
"model",
"transform"
] |
58981bfa626550896e0adfed71bd1d1279bbdca3 | 7,598 | cpp | C++ | tests/unit/test_cell.cpp | kabicm/arbor | cfab5fd6a2e6a211c097659c96dcc098ee806e68 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/test_cell.cpp | kabicm/arbor | cfab5fd6a2e6a211c097659c96dcc098ee806e68 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/test_cell.cpp | kabicm/arbor | cfab5fd6a2e6a211c097659c96dcc098ee806e68 | [
"BSD-3-Clause"
] | null | null | null | #include "../gtest.h"
#include "cell.hpp"
TEST(cell, soma)
{
// test that insertion of a soma works
// define with no centre point
{
arb::cell c;
auto soma_radius = 2.1;
EXPECT_EQ(c.has_soma(), false);
c.add_soma(soma_radius);
EXPECT_EQ(c.has_soma(), true);
... | 28.0369 | 105 | 0.572256 | [
"vector",
"model"
] |
58991dfcfe9d49c195bf5aaad2c576ef39de9cba | 2,239 | cpp | C++ | source/10.1_Point_Sprites/PointSpriteDemo.cpp | ssshammi/real-time-3d-rendering-with-directx-and-hlsl | 05a05c5c26784dafa9a89747276f385252951f2f | [
"MIT"
] | null | null | null | source/10.1_Point_Sprites/PointSpriteDemo.cpp | ssshammi/real-time-3d-rendering-with-directx-and-hlsl | 05a05c5c26784dafa9a89747276f385252951f2f | [
"MIT"
] | null | null | null | source/10.1_Point_Sprites/PointSpriteDemo.cpp | ssshammi/real-time-3d-rendering-with-directx-and-hlsl | 05a05c5c26784dafa9a89747276f385252951f2f | [
"MIT"
] | null | null | null | #include "pch.h"
#include "PointSpriteDemo.h"
#include "PointSpriteMaterial.h"
#include "Camera.h"
#include "VertexDeclarations.h"
#include "Game.h"
#include "GameException.h"
#include "Texture2D.h"
using namespace std;
using namespace std::string_literals;
using namespace gsl;
using namespace Library;
using namespace... | 27.641975 | 118 | 0.756588 | [
"vector"
] |
5899c6271cec4ec11294ce2d17c5952350242eac | 31,531 | inl | C++ | src/simplewallet/simplewallet-mms.inl | victor001P/oxen-core | b5addb86d755a04cd11a126814d93e5b2830a42c | [
"BSD-3-Clause"
] | 78 | 2020-02-11T07:29:26.000Z | 2021-01-13T07:02:26.000Z | src/simplewallet/simplewallet-mms.inl | victor001P/oxen-core | b5addb86d755a04cd11a126814d93e5b2830a42c | [
"BSD-3-Clause"
] | 140 | 2020-02-09T09:46:19.000Z | 2021-01-15T00:24:47.000Z | src/simplewallet/simplewallet-mms.inl | victor001P/oxen-core | b5addb86d755a04cd11a126814d93e5b2830a42c | [
"BSD-3-Clause"
] | 32 | 2020-03-04T11:23:43.000Z | 2020-12-18T15:38:06.000Z | // (Included from simplewallet.cpp when compiling with MMS support)
// MMS ---------------------------------------------------------------------------------------------------
// Access to the message store, or more exactly to the list of the messages that can be changed
// by the idle thread, is guarded by the same m... | 30.115568 | 173 | 0.637119 | [
"vector"
] |
58a32690679715d872a16fcc2e26c288a8c42802 | 1,144 | cpp | C++ | src/pyprob_cpp/test/test_gum_marsaglia_replacement.cpp | plai-group/pyprob_cpp | fb4005d7a86c315ad4431d7ae5112c53ffa7c93c | [
"BSD-2-Clause"
] | 11 | 2018-07-24T14:42:08.000Z | 2021-09-23T11:47:04.000Z | src/pyprob_cpp/test/test_gum_marsaglia_replacement.cpp | bayesianbrad/pyprob_cpp | ba686396f25ceb3a94f392548b8a6032e6407a91 | [
"BSD-2-Clause"
] | 2 | 2018-11-07T02:17:17.000Z | 2019-03-29T11:09:24.000Z | src/pyprob_cpp/test/test_gum_marsaglia_replacement.cpp | bayesianbrad/pyprob_cpp | ba686396f25ceb3a94f392548b8a6032e6407a91 | [
"BSD-2-Clause"
] | 4 | 2019-03-18T20:04:01.000Z | 2020-03-20T22:51:44.000Z | #include <pyprob_cpp.h>
// Gaussian with unkown mean (Marsaglia)
// http://www.robots.ox.ac.uk/~fwood/assets/pdf/Wood-AISTATS-2014.pdf
double marsaglia(double mean, double stddev)
{
auto uniform = pyprob_cpp::distributions::Uniform(-1, 1);
auto s = 1.0, x = 0.0, y = 0.0;
while (s >= 1)
{
x = pyprob_cpp::s... | 26.604651 | 117 | 0.661713 | [
"model"
] |
58a75f0a321858489307ee8582e8411e850a73df | 736 | cpp | C++ | 1526/a/a.cpp | Shahraaz/CP_S5 | 2cfb5467841d660c1e47cb8338ea692f10ca6e60 | [
"MIT"
] | 3 | 2020-02-08T10:34:16.000Z | 2020-02-09T10:23:19.000Z | 1526/a/a.cpp | Shahraaz/CP_S5 | 2cfb5467841d660c1e47cb8338ea692f10ca6e60 | [
"MIT"
] | null | null | null | 1526/a/a.cpp | Shahraaz/CP_S5 | 2cfb5467841d660c1e47cb8338ea692f10ca6e60 | [
"MIT"
] | 2 | 2020-10-02T19:05:32.000Z | 2021-09-08T07:01:49.000Z | #include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "/debug.h"
#else
#define db(...)
#endif
#define all(v) v.begin(), v.end()
#define pb push_back
using ll = long long;
const int NAX = 2e5 + 5, MOD = 1000000007;
void solveCase()
{
int n;
cin >> n;
vector<int> a(2 * n);
for (auto &x : ... | 16 | 42 | 0.48913 | [
"vector"
] |
58a805221bf13b8c75c4d3ebdb28b2a567bb6ec3 | 2,508 | cxx | C++ | Modules/ThirdParty/GDCM/src/gdcm/Source/MessageExchangeDefinition/gdcmQuerySeries.cxx | nalinimsingh/ITK_4D | 95a2eacaeaffe572889832ef0894239f89e3f303 | [
"Apache-2.0"
] | 3 | 2018-10-01T20:46:17.000Z | 2019-12-17T19:39:50.000Z | Modules/ThirdParty/GDCM/src/gdcm/Source/MessageExchangeDefinition/gdcmQuerySeries.cxx | nalinimsingh/ITK_4D | 95a2eacaeaffe572889832ef0894239f89e3f303 | [
"Apache-2.0"
] | null | null | null | Modules/ThirdParty/GDCM/src/gdcm/Source/MessageExchangeDefinition/gdcmQuerySeries.cxx | nalinimsingh/ITK_4D | 95a2eacaeaffe572889832ef0894239f89e3f303 | [
"Apache-2.0"
] | 4 | 2018-05-17T16:34:54.000Z | 2020-09-24T02:12:40.000Z | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* ... | 29.505882 | 90 | 0.652313 | [
"vector"
] |
58a881488a88e7851a5fb75f02f0e51e4f47623e | 16,466 | cpp | C++ | modules/dnn/test/test_model.cpp | Diabl0Man/opencv | b023fcd26418d4da7a73b7ca4abfb21c44be674c | [
"Apache-2.0"
] | 3 | 2021-01-02T02:23:17.000Z | 2021-12-17T06:47:12.000Z | modules/dnn/test/test_model.cpp | Diabl0Man/opencv | b023fcd26418d4da7a73b7ca4abfb21c44be674c | [
"Apache-2.0"
] | null | null | null | modules/dnn/test/test_model.cpp | Diabl0Man/opencv | b023fcd26418d4da7a73b7ca4abfb21c44be674c | [
"Apache-2.0"
] | 1 | 2021-09-03T09:46:23.000Z | 2021-09-03T09:46:23.000Z | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#include "test_precomp.hpp"
#include <opencv2/dnn/shape_utils.hpp>
#include "npy_blob.hpp"
namespace opencv_test { namespace ... | 36.429204 | 106 | 0.645269 | [
"vector",
"model"
] |
58aa1dd33c5febda7a6ee97f95289b5142bd5888 | 16,734 | cpp | C++ | set.cpp | AlexeyAkhunov/espresso | 5c7a57ad6fde2fb3af46171ca1a5c78d250716e9 | [
"MIT"
] | null | null | null | set.cpp | AlexeyAkhunov/espresso | 5c7a57ad6fde2fb3af46171ca1a5c78d250716e9 | [
"MIT"
] | null | null | null | set.cpp | AlexeyAkhunov/espresso | 5c7a57ad6fde2fb3af46171ca1a5c78d250716e9 | [
"MIT"
] | null | null | null | /*
* set.c -- routines for maniuplating sets and set families
*/
/* LINTLIBRARY */
#include "espresso.h"
static pset_family set_family_garbage = NULL;
static void intcpy(unsigned int * d, unsigned int * s, long n)
{
int i;
for(i = 0; i < n; i++) {
*d++ = *s++;
}
}
/* bit_index -- find first bit (f... | 22.312 | 81 | 0.566272 | [
"vector"
] |
58b512a394193cc3379c195fc61c97e8256524cc | 4,916 | cpp | C++ | Recursion and Backtracking/CrossWordPuzzle.cpp | Ankitlenka26/IP2021 | 99322c9c84a8a9c9178a505afbffdcebd312b059 | [
"MIT"
] | null | null | null | Recursion and Backtracking/CrossWordPuzzle.cpp | Ankitlenka26/IP2021 | 99322c9c84a8a9c9178a505afbffdcebd312b059 | [
"MIT"
] | null | null | null | Recursion and Backtracking/CrossWordPuzzle.cpp | Ankitlenka26/IP2021 | 99322c9c84a8a9c9178a505afbffdcebd312b059 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
void displayPuzzle(vector<vector<char>> &arr)
{
// cout << "hey diplay" << endl;
for (int i = 0; i < arr.size(); i++)
{
for (int j = 0; j < arr[0].size(); j++)
{
cout << arr[i][j] ... | 23.298578 | 93 | 0.466029 | [
"vector"
] |
58b910a3333edc1abe3ad50a5da598ef3cb67737 | 6,731 | cpp | C++ | components/media/image/sources/compressed_image_loaders/ktx/ktx_loader.cpp | untgames/funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 7 | 2016-03-30T17:00:39.000Z | 2017-03-27T16:04:04.000Z | components/media/image/sources/compressed_image_loaders/ktx/ktx_loader.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2017-11-21T11:25:49.000Z | 2018-09-20T17:59:27.000Z | components/media/image/sources/compressed_image_loaders/ktx/ktx_loader.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2016-11-29T15:18:40.000Z | 2017-03-27T16:04:08.000Z | #include <stdint.h>
#include <stl/string>
#include <stl/vector>
#include <xtl/common_exceptions.h>
#include <xtl/uninitialized_storage.h>
#include <common/component.h>
#include <common/file.h>
#include <media/compressed_image.h>
using namespace common;
using namespace media;
namespace
{
//gl i... | 28.400844 | 162 | 0.610162 | [
"vector",
"3d"
] |
58b9ff9e3a1a88b995d07ab3bea84e8976077d51 | 9,873 | cpp | C++ | B2G/gecko/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | B2G/gecko/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | null | null | null | B2G/gecko/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | /* 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/. */
#include <string>
#include "nspr.h"
#include "cc_constants.h"
#include "CSFLog.h"
#include "CSFLogStream.h"
#incl... | 27.123626 | 94 | 0.726831 | [
"object"
] |
58c6a67d5baa855c4bf33628d572c3905a163f97 | 2,849 | cpp | C++ | VideoCam.cpp | SJ-magic-work-Gusha/Gusha_material | 4b920877a514b0253d2ee39760eacf62c2bb7ffe | [
"MIT"
] | null | null | null | VideoCam.cpp | SJ-magic-work-Gusha/Gusha_material | 4b920877a514b0253d2ee39760eacf62c2bb7ffe | [
"MIT"
] | null | null | null | VideoCam.cpp | SJ-magic-work-Gusha/Gusha_material | 4b920877a514b0253d2ee39760eacf62c2bb7ffe | [
"MIT"
] | null | null | null | /************************************************************
************************************************************/
#include "VideoCam.h"
/************************************************************
************************************************************/
/******************************
****************... | 22.085271 | 91 | 0.455598 | [
"vector"
] |
58cdebe2e3ddd314578c86c18beb2a03d40075ae | 2,826 | cpp | C++ | Level_8/V. C++ Boost/5 - Normal Distribution/5 - Normal Distribution/main.cpp | ZhehaoLi9705/QuantNet_CPP | a889f4656e757842f4163b0cda7e098cc6ad1193 | [
"MIT"
] | null | null | null | Level_8/V. C++ Boost/5 - Normal Distribution/5 - Normal Distribution/main.cpp | ZhehaoLi9705/QuantNet_CPP | a889f4656e757842f4163b0cda7e098cc6ad1193 | [
"MIT"
] | null | null | null | Level_8/V. C++ Boost/5 - Normal Distribution/5 - Normal Distribution/main.cpp | ZhehaoLi9705/QuantNet_CPP | a889f4656e757842f4163b0cda7e098cc6ad1193 | [
"MIT"
] | null | null | null | //
// main.cpp
// 5 - Normal Distribution
//
// Created by Zhehao Li on 2020/4/16.
// Copyright © 2020 Zhehao Li. All rights reserved.
//
#include <boost/math/distributions/normal.hpp>
#include <boost/math/distributions/gamma.hpp>
#include <boost/math/distributions.hpp> // For non-member functions of d... | 31.4 | 109 | 0.566171 | [
"object",
"shape",
"vector"
] |
58d0ef08c35822eb03256b14a86d10fd4f59a052 | 519 | cpp | C++ | 283. Move Zeroes.cpp | arpit456jain/LeetCode-Solutions-Cpp | 080a5a7aa2bbc53e422d000e42c501f74ddd47e7 | [
"MIT"
] | 1 | 2021-08-01T05:08:29.000Z | 2021-08-01T05:08:29.000Z | 283. Move Zeroes.cpp | arpit456jain/LeetCode-Solutions | 080a5a7aa2bbc53e422d000e42c501f74ddd47e7 | [
"MIT"
] | null | null | null | 283. Move Zeroes.cpp | arpit456jain/LeetCode-Solutions | 080a5a7aa2bbc53e422d000e42c501f74ddd47e7 | [
"MIT"
] | null | null | null | class Solution {
public:
void moveZeroes(vector<int>& nums) {
bool flag = true;
int i=0;
while(flag)
{
flag = false;
for(int i=0;i<nums.size()-1;i++)
{
if(nums[i+1]!=0 && nums[i]==0)
{
... | 21.625 | 50 | 0.296724 | [
"vector"
] |
58d2086bd56f3414dac04213dffa3e6f6646254f | 2,003 | cpp | C++ | src/Mesh.cpp | DanonOfficial/FacialMorphingAnimation | f96de24bb52e74bfbe389670a37eb50c403b81c3 | [
"MIT"
] | 6 | 2019-11-26T05:01:59.000Z | 2021-05-08T06:36:03.000Z | src/Mesh.cpp | RoundedGlint585/FacialMorphingAnimation | f96de24bb52e74bfbe389670a37eb50c403b81c3 | [
"MIT"
] | null | null | null | src/Mesh.cpp | RoundedGlint585/FacialMorphingAnimation | f96de24bb52e74bfbe389670a37eb50c403b81c3 | [
"MIT"
] | 1 | 2020-01-17T05:25:37.000Z | 2020-01-17T05:25:37.000Z | //
// Created by roundedglint585 on 8/3/19.
//
#include "../include/Mesh.h"
#include <utility>
Mesh::Mesh(std::vector<uint32_t> indices, std::vector<Mesh::Vertex> vertices) : vertices_(std::move(vertices)),
indices_(std::move(indices)), ... | 33.949153 | 193 | 0.636545 | [
"mesh",
"vector"
] |
58dad78db07164ae5d48cc4ff5b152ef9b8dc1ae | 696 | cpp | C++ | src/Core/Geometry/SegmentOperation.cpp | sylvaindeker/Radium-Engine | 64164a258b3f7864c73a07c070e49b7138488d62 | [
"Apache-2.0"
] | 1 | 2018-04-16T13:55:45.000Z | 2018-04-16T13:55:45.000Z | src/Core/Geometry/SegmentOperation.cpp | sylvaindeker/Radium-Engine | 64164a258b3f7864c73a07c070e49b7138488d62 | [
"Apache-2.0"
] | null | null | null | src/Core/Geometry/SegmentOperation.cpp | sylvaindeker/Radium-Engine | 64164a258b3f7864c73a07c070e49b7138488d62 | [
"Apache-2.0"
] | null | null | null | #include <Core/Geometry/SegmentOperation.hpp>
namespace Ra {
namespace Core {
namespace Geometry {
Math::Vector3 projectPointOnSegment( const Math::Vector3& p, const Math::Vector3& A, const Math::Vector3& B ) {
const Math::Vector3 Ap = p - A;
const Math::Vector3 dir = B - A;
// Square length of s... | 31.636364 | 112 | 0.617816 | [
"geometry"
] |
58dc6f8601dcba39ef2c7e4faa981ec1a7464ddb | 8,721 | cc | C++ | L1Trigger/L1TMuonOverlap/src/OMTFReconstruction.cc | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 2 | 2020-01-27T15:21:37.000Z | 2020-05-11T11:13:18.000Z | L1Trigger/L1TMuonOverlap/src/OMTFReconstruction.cc | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 7 | 2016-07-17T02:34:54.000Z | 2019-08-13T07:58:37.000Z | L1Trigger/L1TMuonOverlap/src/OMTFReconstruction.cc | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 2 | 2019-09-27T08:33:22.000Z | 2019-11-14T10:52:30.000Z | #include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/L1TMuon/interface/RegionalMuonCand.h"
#include "DataFormats/L1TMuon/interface/RegionalMuonCandFwd.h"
#include "CondFormats/DataRecord/interface/L1TMuonOverlapParamsRcd.h"
#include "CondFormats/L1TObjects/interface/L1TMuonOverlapParams.h"
... | 43.173267 | 116 | 0.614952 | [
"vector"
] |
58ec6425fa5d556bfff3cc09f30e2c8aafacfda9 | 2,660 | cpp | C++ | Final/Dataset/B2016_Z1_Z4/student5741.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | Final/Dataset/B2016_Z1_Z4/student5741.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | Final/Dataset/B2016_Z1_Z4/student5741.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | /*B 2016/2017, Zadaća 1, Zadatak 4
NAPOMENA: ulaz/izlaz za zadatke je specificiran
javnim autotestovima. Zalbe za ne analiziranje testova
se ne uvazavaju!
NAPOMENA: nece svi (javni) testovi sa zamgera biti
dostupni na c9.
*/
#include <iostream>
#include <string>
#include <vector>
#include <st... | 21.451613 | 94 | 0.513534 | [
"vector"
] |
58ec6e6a08ceb0ecea62da75375e091af4a758d9 | 4,614 | cpp | C++ | src/SceneManager/SceneManagerGameMenu.cpp | Panzareon/RoguePG | 7c276c1c961c8b7a24cd88dc4b2de2ef99cd832c | [
"Zlib",
"MIT"
] | null | null | null | src/SceneManager/SceneManagerGameMenu.cpp | Panzareon/RoguePG | 7c276c1c961c8b7a24cd88dc4b2de2ef99cd832c | [
"Zlib",
"MIT"
] | null | null | null | src/SceneManager/SceneManagerGameMenu.cpp | Panzareon/RoguePG | 7c276c1c961c8b7a24cd88dc4b2de2ef99cd832c | [
"Zlib",
"MIT"
] | null | null | null | #include "SceneManager/SceneManagerGameMenu.h"
#include "SceneManager/SceneManagerEquipment.h"
#include "SceneManager/SceneManagerStatus.h"
#include "SceneManager/SceneManagerMessage.h"
#include "Controller/GameController.h"
#include "SceneGraph/DrawableNode.h"
#include "Controller/Localization.h"
#include <iostream>
... | 31.60274 | 128 | 0.716298 | [
"vector"
] |
58f85d5f50de7c70df60f55f516d8b31ed4a14d0 | 3,309 | cpp | C++ | aws-cpp-sdk-backup/source/model/ReportJob.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-backup/source/model/ReportJob.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-backup/source/model/ReportJob.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/backup/model/ReportJob.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Ba... | 20.300613 | 83 | 0.732548 | [
"model"
] |
58f9cae7af9e33846b3547c0a6f14ae4d8557556 | 4,877 | cpp | C++ | IfcPlusPlus/src/ifcpp/IFC4/lib/IfcStyledItem.cpp | yorikvanhavre/ifcplusplus | eec5160bfb07de66ad40db48bb7eca66e9351b85 | [
"MIT"
] | null | null | null | IfcPlusPlus/src/ifcpp/IFC4/lib/IfcStyledItem.cpp | yorikvanhavre/ifcplusplus | eec5160bfb07de66ad40db48bb7eca66e9351b85 | [
"MIT"
] | null | null | null | IfcPlusPlus/src/ifcpp/IFC4/lib/IfcStyledItem.cpp | yorikvanhavre/ifcplusplus | eec5160bfb07de66ad40db48bb7eca66e9351b85 | [
"MIT"
] | null | null | null | /* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */
#include <sstream>
#include <limits>
#include "ifcpp/model/AttributeObject.h"
#include "ifcpp/model/BuildingException.h"
#include "ifcpp/model/BuildingGuid.h"
#include "ifcpp/reader/ReaderUtil.h"
#include "ifcpp/writer/WriterUtil.h"
#include... | 39.330645 | 231 | 0.709658 | [
"vector",
"model"
] |
58fa81345fb2c99eca6085966f0f165775297b68 | 76,409 | cpp | C++ | other/ir_print_spirv_visitor.cpp | metarutaiga/xxxx | b9c9955635e33545b98ea6858a38f8e16a3113e9 | [
"MIT"
] | 3 | 2020-04-26T03:23:14.000Z | 2021-03-31T08:27:48.000Z | other/ir_print_spirv_visitor.cpp | metarutaiga/xxGLSLCompiler | b9c9955635e33545b98ea6858a38f8e16a3113e9 | [
"MIT"
] | null | null | null | other/ir_print_spirv_visitor.cpp | metarutaiga/xxGLSLCompiler | b9c9955635e33545b98ea6858a38f8e16a3113e9 | [
"MIT"
] | null | null | null | /*
* Copyright © 2010 Intel Corporation
*
* 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, pub... | 35.957176 | 195 | 0.618487 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.