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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
899275074ae9778439e777220e8eff24f133fb2b | 31,542 | cpp | C++ | libs/tex/texture_patch.cpp | Hivemapper/HM-colony-mvs-texturing | 2930c8926886d33fcec5ed42137d2f21ce834c2a | [
"BSD-3-Clause"
] | 1 | 2019-12-04T16:38:50.000Z | 2019-12-04T16:38:50.000Z | libs/tex/texture_patch.cpp | Hivemapper/HM-colony-mvs-texturing | 2930c8926886d33fcec5ed42137d2f21ce834c2a | [
"BSD-3-Clause"
] | 2 | 2019-07-15T21:58:26.000Z | 2020-10-06T02:56:46.000Z | libs/tex/texture_patch.cpp | Hivemapper/HM-colony-mvs-texturing | 2930c8926886d33fcec5ed42137d2f21ce834c2a | [
"BSD-3-Clause"
] | 1 | 2019-03-28T18:15:52.000Z | 2019-03-28T18:15:52.000Z | /*
* Copyright (C) 2015, Nils Moehrle
* TU Darmstadt - Graphics, Capture and Massively Parallel Computing
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD 3-Clause license. See the LICENSE.txt file for details.
*/
#include <cmath>
#include <set>
#include <ma... | 33.237092 | 190 | 0.571999 | [
"vector",
"transform"
] |
899911e458a821d1ece52f0a8e4dbf2b4d879750 | 4,891 | cpp | C++ | Timelab/src/DateTime.cpp | Ryandry1st/DateTime | dcda168b31863eaafbac371f14b837165cee3500 | [
"MIT"
] | null | null | null | Timelab/src/DateTime.cpp | Ryandry1st/DateTime | dcda168b31863eaafbac371f14b837165cee3500 | [
"MIT"
] | null | null | null | Timelab/src/DateTime.cpp | Ryandry1st/DateTime | dcda168b31863eaafbac371f14b837165cee3500 | [
"MIT"
] | null | null | null | /*
* DateTime.cpp
*
* Created on: Apr 10, 2017
* Author: dreifuerstrm
* DateTime class definitions which describe the implementation of the combined Date and Time classes
*/
#include "DateTime.h"
DateTime::DateTime() {
// default constructor, sets all data to 0
my_date = Date(0,0,0);
... | 29.823171 | 111 | 0.695972 | [
"object"
] |
899c3d7d26d04242711f850f1bb6abf8002d8030 | 1,793 | cpp | C++ | 04.InheritanceExtended/04.InheritanceExtended/04.InheritanceExtended.cpp | zvet80/CppCourse | a8d488dba1ba649dfc6e6d906ed25e506ff30d99 | [
"MIT"
] | null | null | null | 04.InheritanceExtended/04.InheritanceExtended/04.InheritanceExtended.cpp | zvet80/CppCourse | a8d488dba1ba649dfc6e6d906ed25e506ff30d99 | [
"MIT"
] | null | null | null | 04.InheritanceExtended/04.InheritanceExtended/04.InheritanceExtended.cpp | zvet80/CppCourse | a8d488dba1ba649dfc6e6d906ed25e506ff30d99 | [
"MIT"
] | null | null | null | // 04.InheritanceExtended.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include "Invoice.h"
#include "Store.h"
using namespace std;
int main()
{
Item bonbon = Item("001", "bonbon", 2.5);
Item gum = Item("002", "gum", 1.3);
Item buiskit = Item("003", "buiskit... | 30.389831 | 196 | 0.654211 | [
"vector"
] |
89a6bb1eb7381e857563b2c89c3f2ac64de9d9ec | 1,174 | hpp | C++ | GameEngineX/Source/Core/Physics/Physics2DContactListener.hpp | GeorgeHanna/BarebonesGameEngine | 39a122832a4b050fff117114d1ba37bbd72edd42 | [
"MIT"
] | null | null | null | GameEngineX/Source/Core/Physics/Physics2DContactListener.hpp | GeorgeHanna/BarebonesGameEngine | 39a122832a4b050fff117114d1ba37bbd72edd42 | [
"MIT"
] | null | null | null | GameEngineX/Source/Core/Physics/Physics2DContactListener.hpp | GeorgeHanna/BarebonesGameEngine | 39a122832a4b050fff117114d1ba37bbd72edd42 | [
"MIT"
] | null | null | null | //
// Physics2DContactListener.hpp
// GameEngineX
//
// Created by George Hanna on 29/05/16.
// Copyright © 2016 George Hanna. All rights reserved.
//
#ifndef Physics2DContactListener_hpp
#define Physics2DContactListener_hpp
#include <stdio.h>
#include <vector>
#include <Box2D.h>
#include "../Subject.hpp"
struct... | 22.576923 | 87 | 0.696763 | [
"vector"
] |
89ad2580267c6124d091107d5b6d4591eea63a0d | 7,302 | cpp | C++ | escriptcore/src/MPIScalarReducer.cpp | markendr/esys-escript.github.io | 0023eab09cd71f830ab098cb3a468e6139191e8d | [
"Apache-2.0"
] | null | null | null | escriptcore/src/MPIScalarReducer.cpp | markendr/esys-escript.github.io | 0023eab09cd71f830ab098cb3a468e6139191e8d | [
"Apache-2.0"
] | null | null | null | escriptcore/src/MPIScalarReducer.cpp | markendr/esys-escript.github.io | 0023eab09cd71f830ab098cb3a468e6139191e8d | [
"Apache-2.0"
] | null | null | null | /*****************************************************************************
*
* Copyright (c) 2014-2018 by The University of Queensland
* http://www.uq.edu.au
*
* Primary Business: Queensland, Australia
* Licensed under the Apache License, version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Development unti... | 23.180952 | 122 | 0.627773 | [
"object",
"shape",
"vector"
] |
89b28dfe963966a482e29b8df0c38b9f04c79968 | 11,388 | hpp | C++ | include/GlobalNamespace/MultiplayerLocalActivePlayerFacade.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/MultiplayerLocalActivePlayerFacade.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/MultiplayerLocalActivePlayerFacade.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.MonoBehaviour
#include "UnityEngine/MonoBehaviour.hpp"
//... | 58.4 | 1,121 | 0.770899 | [
"object"
] |
89b4edcbe49abd0336383938b6edb1427abd5d51 | 8,346 | cpp | C++ | analytics/src/lib/indices/build_indexes.cpp | David-Durst/csknow | 5b31585c6be63cee117ce5910545c8cc34627fd4 | [
"MIT"
] | 8 | 2021-03-08T21:24:42.000Z | 2022-03-20T23:18:09.000Z | analytics/src/lib/indices/build_indexes.cpp | David-Durst/csknow | 5b31585c6be63cee117ce5910545c8cc34627fd4 | [
"MIT"
] | 2 | 2021-12-27T01:26:12.000Z | 2022-02-24T19:51:48.000Z | analytics/src/lib/indices/build_indexes.cpp | David-Durst/csknow | 5b31585c6be63cee117ce5910545c8cc34627fd4 | [
"MIT"
] | null | null | null | #include "load_data.h"
#include "load_cover.h"
#include <algorithm>
#include <iostream>
#include <assert.h>
using std::cout;
using std::endl;
void buildRangeIndex(const vector<int64_t> &primaryKeyCol, int64_t primarySize, const int64_t * foreignKeyCol,
int64_t foreignSize, RangeIndex rangeInd... | 57.164384 | 171 | 0.687156 | [
"vector"
] |
89b5400d2abb88b98cb5c43a5f0bf31aa3c59344 | 5,816 | cpp | C++ | Phasma/Code/Systems/PostProcessSystem.cpp | christoskaramou/VulkanMonkey3D | 303bcdea9e1650a5bf0d2f937d90316ab46aabbd | [
"MIT"
] | 30 | 2018-12-21T00:55:17.000Z | 2020-09-17T16:35:04.000Z | Phasma/Code/Systems/PostProcessSystem.cpp | christoskaramou/PhasmaEngine | 303bcdea9e1650a5bf0d2f937d90316ab46aabbd | [
"MIT"
] | 2 | 2019-06-06T17:09:24.000Z | 2019-07-14T21:41:34.000Z | Phasma/Code/Systems/PostProcessSystem.cpp | christoskaramou/VulkanMonkey3D | 303bcdea9e1650a5bf0d2f937d90316ab46aabbd | [
"MIT"
] | 6 | 2020-02-26T12:16:48.000Z | 2020-08-26T08:55:35.000Z | /*
Copyright (c) 2018-2021 Christos Karamoustos
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, d... | 36.578616 | 87 | 0.691369 | [
"render"
] |
89b5427a71d0b5734c16b1783b5047ef5523a7f9 | 2,259 | cpp | C++ | c++/src/objtools/format/ostream_text_ostream.cpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 31 | 2016-12-09T04:56:59.000Z | 2021-12-31T17:19:10.000Z | c++/src/objtools/format/ostream_text_ostream.cpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 6 | 2017-03-10T17:25:13.000Z | 2021-09-22T15:49:49.000Z | c++/src/objtools/format/ostream_text_ostream.cpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 20 | 2015-01-04T02:15:17.000Z | 2021-12-03T02:31:43.000Z | /* $Id: ostream_text_ostream.cpp 380171 2012-11-08 17:40:34Z rafanovi $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Governm... | 27.54878 | 77 | 0.641434 | [
"object"
] |
89b80ef2444f04f69634243770697461428e7960 | 1,383 | cpp | C++ | src/process.cpp | barzanisar/System-Monitor | f0010babcddcb45c6cc192aef5c6a0d409f3c2c2 | [
"MIT"
] | null | null | null | src/process.cpp | barzanisar/System-Monitor | f0010babcddcb45c6cc192aef5c6a0d409f3c2c2 | [
"MIT"
] | null | null | null | src/process.cpp | barzanisar/System-Monitor | f0010babcddcb45c6cc192aef5c6a0d409f3c2c2 | [
"MIT"
] | null | null | null | #include <unistd.h>
#include <cctype>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include "linux_parser.h"
#include "process.h"
using std::string;
using std::to_string;
using std::vector;
Process::Process(int pid)
: pid_(pid),
user_(LinuxParser::User(pid)),
cmd_(LinuxP... | 26.09434 | 73 | 0.711497 | [
"vector"
] |
89c62f4a95fd7867854859f5ab379aa9fd6e035c | 509 | hxx | C++ | Packages/java/nio/file/PathMatcher.hxx | Brandon-T/Aries | 4e8c4f5454e8c7c5cd0611b1b38b5be8186f86ca | [
"MIT"
] | null | null | null | Packages/java/nio/file/PathMatcher.hxx | Brandon-T/Aries | 4e8c4f5454e8c7c5cd0611b1b38b5be8186f86ca | [
"MIT"
] | null | null | null | Packages/java/nio/file/PathMatcher.hxx | Brandon-T/Aries | 4e8c4f5454e8c7c5cd0611b1b38b5be8186f86ca | [
"MIT"
] | null | null | null | //
// PathMatcher.hxx
// Aries
//
// Created by Brandon on 2018-02-25.
// Copyright © 2018 Brandon. All rights reserved.
//
#ifndef PathMatcher_hxx
#define PathMatcher_hxx
#include "Array.hxx"
#include "Object.hxx"
namespace java::nio::file
{
using java::lang::Object;
using java::nio::file::Path;
... | 15.90625 | 50 | 0.624754 | [
"object"
] |
89cccd3742d12828d408b6b3f40d5fbc7d73c231 | 2,081 | cpp | C++ | 5. Backtracking/2_Rat_in_Maze_four_direction.cpp | manishhedau/Data-Structure-Algorithm | d45de87aa44d3af18d58fd59491993cf98dbe6fc | [
"MIT"
] | 3 | 2021-02-01T07:56:21.000Z | 2021-02-01T11:56:50.000Z | 5. Backtracking/2_Rat_in_Maze_four_direction.cpp | manishhedau/Data-Structure-Algorithm | d45de87aa44d3af18d58fd59491993cf98dbe6fc | [
"MIT"
] | null | null | null | 5. Backtracking/2_Rat_in_Maze_four_direction.cpp | manishhedau/Data-Structure-Algorithm | d45de87aa44d3af18d58fd59491993cf98dbe6fc | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std;
int res = 0;
bool isValid(vector<vector<int>> &grid, vector<vector<int>> &visied, int n, int i, int j){
return i>=0 && i<n && j>=0 && j<n && grid[i][j]==0 && visied[i][j]==0;
}
void ratInMaze(vector<vector<int>> &grid, vector<vector<int>> &visied, int n, in... | 18.918182 | 92 | 0.471408 | [
"vector"
] |
89e58b4f906423a201e09de8dd9b998eaf7fbdff | 3,207 | cpp | C++ | src/huffman_encoder.cpp | thousandvoices/memb | edbee1773a762d7fbe5eaebd15b95803b23254a6 | [
"MIT"
] | 5 | 2019-02-05T09:46:33.000Z | 2019-02-11T12:29:41.000Z | src/huffman_encoder.cpp | thousandvoices/memb | edbee1773a762d7fbe5eaebd15b95803b23254a6 | [
"MIT"
] | null | null | null | src/huffman_encoder.cpp | thousandvoices/memb | edbee1773a762d7fbe5eaebd15b95803b23254a6 | [
"MIT"
] | 1 | 2019-02-05T16:50:08.000Z | 2019-02-05T16:50:08.000Z | #include "huffman_encoder.h"
#include "bit_stream.h"
#include <queue>
namespace memb {
namespace {
struct TreeNode {
uint8_t key;
size_t count;
std::shared_ptr<TreeNode> left;
std::shared_ptr<TreeNode> right;
};
struct TreeNodeComparator {
bool operator()(std::shared_ptr<TreeNode>& lhs, std::sh... | 24.295455 | 95 | 0.638291 | [
"vector"
] |
88521cf37e4b5bbac1c44fdba13022f3e3e61feb | 13,715 | cpp | C++ | plansys2_problem_expert/src/plansys2_problem_expert/Utils.cpp | jonatanolofsson/ros2_planning_system | 135f99cd06f6daa86d5815bd7dcc6595d1ca0160 | [
"Apache-2.0"
] | 213 | 2019-12-08T13:34:31.000Z | 2022-03-31T18:11:57.000Z | plansys2_problem_expert/src/plansys2_problem_expert/Utils.cpp | jonatanolofsson/ros2_planning_system | 135f99cd06f6daa86d5815bd7dcc6595d1ca0160 | [
"Apache-2.0"
] | 159 | 2019-12-07T07:20:56.000Z | 2022-03-31T16:18:14.000Z | plansys2_problem_expert/src/plansys2_problem_expert/Utils.cpp | jonatanolofsson/ros2_planning_system | 135f99cd06f6daa86d5815bd7dcc6595d1ca0160 | [
"Apache-2.0"
] | 60 | 2019-12-08T13:34:34.000Z | 2022-03-31T10:58:15.000Z | // Copyright 2019 Intelligent Robotics Lab
//
// 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 ... | 31.969697 | 93 | 0.565512 | [
"vector"
] |
8859efe74049bdbadf7cce8781b545c7b9ef11ee | 998 | hpp | C++ | ConStorm/include/cons/files/load.hpp | drake200120xx/ConStorm | bfc47b6424154e8258d375d0a5eaff687d0cad27 | [
"Apache-2.0"
] | null | null | null | ConStorm/include/cons/files/load.hpp | drake200120xx/ConStorm | bfc47b6424154e8258d375d0a5eaff687d0cad27 | [
"Apache-2.0"
] | null | null | null | ConStorm/include/cons/files/load.hpp | drake200120xx/ConStorm | bfc47b6424154e8258d375d0a5eaff687d0cad27 | [
"Apache-2.0"
] | null | null | null | /*
Code by Drake Johnson
Defines the 'FilesLoad' class, which is a wrapper for multi-threaded
file loading.
*/
#ifndef CONS_FILE_LOAD_HEADER__
#define CONS_FILE_LOAD_HEADER__
#ifdef _MSC_VER
# pragma once
#endif // _MSC_VER
#include "file.hpp"
#include <future>
namespace cons
{
/**
Loads a vector of files async... | 22.177778 | 71 | 0.725451 | [
"vector"
] |
886754ba54ffebbf2a6effd37040e97db696e139 | 4,817 | cc | C++ | src/conf/fill_configuration.cc | tic-toc/caesar.sdd | fa152df96bde9d7babbdffbd5b082d53b3f25e0c | [
"BSD-2-Clause"
] | 1 | 2020-04-21T20:49:11.000Z | 2020-04-21T20:49:11.000Z | src/conf/fill_configuration.cc | tic-toc/caesar.sdd | fa152df96bde9d7babbdffbd5b082d53b3f25e0c | [
"BSD-2-Clause"
] | 4 | 2017-11-14T10:10:44.000Z | 2019-08-09T22:01:22.000Z | src/conf/fill_configuration.cc | tic-toc/caesar.sdd | fa152df96bde9d7babbdffbd5b082d53b3f25e0c | [
"BSD-2-Clause"
] | 1 | 2019-08-09T20:14:33.000Z | 2019-08-09T20:14:33.000Z | #include <iostream>
#include <string>
#pragma GCC diagnostic push
#if defined(__GNUC__) && !defined(__clang__)
# pragma GCC diagnostic ignored "-Wunused-local-typedefs"
#endif
#include <boost/program_options.hpp>
#pragma GCC diagnostic pop
#include "conf/configuration.hh"
#include "conf/fill_configuration.hh"
namesp... | 33.22069 | 100 | 0.621756 | [
"vector"
] |
8869812f6700accf4000e4ff2cc2121995015a9f | 4,069 | cpp | C++ | Samples/Omni/Source/DynamicSprites.cpp | Gravecat/BearLibTerminal | 64fec04101350a99a71db872c513e17bdd2cc94d | [
"MIT"
] | 80 | 2020-06-17T15:26:27.000Z | 2022-03-29T11:17:01.000Z | Samples/Omni/Source/DynamicSprites.cpp | Gravecat/BearLibTerminal | 64fec04101350a99a71db872c513e17bdd2cc94d | [
"MIT"
] | 11 | 2020-07-19T15:22:06.000Z | 2022-03-31T03:33:13.000Z | Samples/Omni/Source/DynamicSprites.cpp | Gravecat/BearLibTerminal | 64fec04101350a99a71db872c513e17bdd2cc94d | [
"MIT"
] | 18 | 2020-09-16T01:29:46.000Z | 2022-03-27T18:48:09.000Z | /*
* DynamicSprites.cpp
*
* Created on: Dec 2, 2013
* Author: cfyz
*/
#include "Common.hpp"
#include <vector>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <string>
#include <map>
std::vector<std::wstring> map =
{
L" ",
L" ------ ", //... | 24.076923 | 112 | 0.509708 | [
"vector"
] |
886dc4a1bb5833129617766f6d939cf2411095e8 | 2,850 | cpp | C++ | src/Train.cpp | V0XNIHILI/lab3-cnn | b5b72477b17390c3f9a6f5e3f2a15d067ff9f1ce | [
"W3C"
] | 2 | 2019-11-28T17:11:42.000Z | 2020-09-30T16:23:34.000Z | src/Train.cpp | V0XNIHILI/lab3-cnn | b5b72477b17390c3f9a6f5e3f2a15d067ff9f1ce | [
"W3C"
] | null | null | null | src/Train.cpp | V0XNIHILI/lab3-cnn | b5b72477b17390c3f9a6f5e3f2a15d067ff9f1ce | [
"W3C"
] | 5 | 2018-10-05T13:41:42.000Z | 2021-10-03T19:21:10.000Z | #include "Train.h"
#include "utils/io.h"
std::vector<case_t> readTrainingData() {
std::vector<case_t> cases{};
auto train_image = readFile("../train-images.idx3-ubyte");
auto train_labels = readFile("../train-labels.idx1-ubyte");
// Swap endianness of case count:
uint32_t case_count = bswap_32(*(uint32_t *... | 30.319149 | 117 | 0.612632 | [
"vector",
"model"
] |
886f9e366fab1798730382dffd37382fc2bdab6d | 11,092 | cpp | C++ | blast/src/objtools/readers/psl_data.cpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | blast/src/objtools/readers/psl_data.cpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | blast/src/objtools/readers/psl_data.cpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | /* $Id: psl_data.cpp 632526 2021-06-02 17:25:01Z ivanov $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government Work... | 37.856655 | 85 | 0.576812 | [
"vector"
] |
8887af5d812d8db283c164a1a0eea9f72d1010fb | 2,378 | cpp | C++ | Calibration/Tools/bin/recalibEE.cpp | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Calibration/Tools/bin/recalibEE.cpp | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Calibration/Tools/bin/recalibEE.cpp | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #include "Geometry/Records/interface/IdealGeometryRecord.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
#include "Geometry/CaloGeometry/interface/CaloCellGeometry.h"
#include "Geometry/CaloGeometry/interface/CaloGeometry.h"
#include "Geometry/CaloG... | 45.730769 | 117 | 0.767452 | [
"geometry"
] |
889660aa83394cfdee5117c06faf2525e80c23f8 | 6,108 | hpp | C++ | include/nornir/configuration.hpp | DanieleDeSensi/Nornir | 60587824d6b0a6e61b8fc75bdea37c9fc69199c7 | [
"MIT"
] | 2 | 2018-10-31T08:09:03.000Z | 2021-01-18T19:23:54.000Z | include/nornir/configuration.hpp | DanieleDeSensi/Nornir | 60587824d6b0a6e61b8fc75bdea37c9fc69199c7 | [
"MIT"
] | 1 | 2020-02-02T11:58:22.000Z | 2020-02-02T11:58:22.000Z | include/nornir/configuration.hpp | DanieleDeSensi/Nornir | 60587824d6b0a6e61b8fc75bdea37c9fc69199c7 | [
"MIT"
] | 1 | 2019-04-13T09:54:49.000Z | 2019-04-13T09:54:49.000Z | /*
* configuration.hpp
*
* Created on: 05/12/2015
*
* =========================================================================
* Copyright (C) 2015-, Daniele De Sensi (d.desensi.software@gmail.com)
*
* This file is part of nornir.
*
* nornir is free software: you can redistribute it and/or
* modify it u... | 29.22488 | 87 | 0.645056 | [
"vector"
] |
88971e2e4676235bcc393733b1bc84c685128e0b | 1,456 | cpp | C++ | src/types/bpb.cpp | simonowen/samdisk | 9b1391dd233015db633cb83b43d62c15a98f4e3a | [
"MIT"
] | 52 | 2016-05-26T19:24:37.000Z | 2022-03-24T16:13:48.000Z | src/types/bpb.cpp | simonowen/samdisk | 9b1391dd233015db633cb83b43d62c15a98f4e3a | [
"MIT"
] | 17 | 2017-02-04T00:10:50.000Z | 2022-01-19T09:56:18.000Z | src/types/bpb.cpp | simonowen/samdisk | 9b1391dd233015db633cb83b43d62c15a98f4e3a | [
"MIT"
] | 9 | 2016-05-13T02:16:05.000Z | 2020-08-30T11:34:34.000Z | // BIOS Parameter Block, for MS-DOS and compatible disks
#include "SAMdisk.h"
#include "bpb.h"
bool ReadBPB(MemFile& file, std::shared_ptr<Disk>& disk)
{
BIOS_PARAMETER_BLOCK bpb{};
if (!file.rewind() || !file.read(&bpb, sizeof(bpb)))
return false;
// Check for a sensible media byte
if (bpb.b... | 29.714286 | 90 | 0.639423 | [
"geometry"
] |
889ef8fc53e0f7ba7bd77283844566123d6be304 | 4,987 | cpp | C++ | PROX/FOUNDATION/MESH_ARRAY/MESH_ARRAY/src/factory/mesh_array_make_sphere.cpp | diku-dk/PROX | c6be72cc253ff75589a1cac28e4e91e788376900 | [
"MIT"
] | 2 | 2019-11-27T09:44:45.000Z | 2020-01-13T00:24:21.000Z | PROX/FOUNDATION/MESH_ARRAY/MESH_ARRAY/src/factory/mesh_array_make_sphere.cpp | erleben/matchstick | 1cfdc32b95437bbb0063ded391c34c9ee9b9583b | [
"MIT"
] | null | null | null | PROX/FOUNDATION/MESH_ARRAY/MESH_ARRAY/src/factory/mesh_array_make_sphere.cpp | erleben/matchstick | 1cfdc32b95437bbb0063ded391c34c9ee9b9583b | [
"MIT"
] | null | null | null | #include <factory/mesh_array_make_sphere.h>
#include <factory/mesh_array_profile_sweep.h>
#include <tiny_math_types.h>
#include <cmath>
#include <cassert>
namespace mesh_array
{
template<typename MT>
void make_sphere(
typename MT::real_type const & radius
, size_t const &... | 33.92517 | 81 | 0.464809 | [
"mesh",
"vector"
] |
889f1b401eb4b6117754310773aba90b5356f5f2 | 864 | cpp | C++ | Space Harrier Clone/EngineExt/RectangleRenderer.cpp | BrunoAOR/Space-Harrier-Clone | 35465ad2d421f69a75a02855627c8ea726b248c6 | [
"MIT"
] | 12 | 2018-12-07T16:05:02.000Z | 2021-09-06T01:46:50.000Z | Space Harrier Clone/EngineExt/RectangleRenderer.cpp | BrunoAOR/Space-Harrier-Clone | 35465ad2d421f69a75a02855627c8ea726b248c6 | [
"MIT"
] | null | null | null | Space Harrier Clone/EngineExt/RectangleRenderer.cpp | BrunoAOR/Space-Harrier-Clone | 35465ad2d421f69a75a02855627c8ea726b248c6 | [
"MIT"
] | 1 | 2020-06-03T03:37:27.000Z | 2020-06-03T03:37:27.000Z | #include "RectangleRenderer.h"
#include "../Engine/gameConfig.h"
RectangleRenderer::RectangleRenderer()
{
}
RectangleRenderer::~RectangleRenderer()
{
}
void RectangleRenderer::render()
{
SDL_SetRenderDrawBlendMode(m_renderer, SDL_BLENDMODE_BLEND);
SDL_Color oldColor;
SDL_Rect drawRect;
Vector2 posPivot = get... | 27 | 93 | 0.744213 | [
"render"
] |
88a97d2c32dced100895313f03ad87319aad60f3 | 4,312 | cpp | C++ | moci/moci_math/geometry/line_test.cpp | tobanteAudio/moci | a0a764e8a5270f9344ff57366fea36f72e7e3aa4 | [
"BSD-2-Clause"
] | null | null | null | moci/moci_math/geometry/line_test.cpp | tobanteAudio/moci | a0a764e8a5270f9344ff57366fea36f72e7e3aa4 | [
"BSD-2-Clause"
] | 16 | 2020-03-19T22:08:47.000Z | 2020-06-18T18:55:00.000Z | moci/moci_math/geometry/line_test.cpp | tobanteAudio/moci | a0a764e8a5270f9344ff57366fea36f72e7e3aa4 | [
"BSD-2-Clause"
] | null | null | null | /**
* @file line_test.cpp
* @copyright Copyright 2019-2020 tobanteAudio.
*/
#include "catch2/catch.hpp"
#include "moci_math/geometry/line.hpp"
TEST_CASE("moci_math/geometry: LineConstructDefault", "[geometry]")
{
constexpr auto line = moci::Line<float>();
REQUIRE(line.IsEmpty() == true);
REQUIRE(line.... | 31.021583 | 74 | 0.592069 | [
"geometry"
] |
88a9d6d8840559a23c62d3ab7ec91ac5b7d03086 | 650 | cpp | C++ | Array/MergeIntervals.cpp | HARDY8118/LeetCode-Solutions | ec42cabc618b0c85a80864795242b589a286f420 | [
"MIT"
] | null | null | null | Array/MergeIntervals.cpp | HARDY8118/LeetCode-Solutions | ec42cabc618b0c85a80864795242b589a286f420 | [
"MIT"
] | null | null | null | Array/MergeIntervals.cpp | HARDY8118/LeetCode-Solutions | ec42cabc618b0c85a80864795242b589a286f420 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<int>> merge(vector<vector<int>>& intervals) {
sort(intervals.begin(),intervals.end());
int s=intervals[0][0];
int e=intervals[0][1];
vector<vector<int>> r;
vector<int> v;
for(unsigned int i=1;i<interval... | 25 | 63 | 0.42 | [
"vector"
] |
88ad282de117e9236f7fea463939fd9d53387bfa | 2,768 | cpp | C++ | remisen_run/src/application.cpp | tobanteGaming/template-opengl | 7eac0d5c49f93b0567cc49fae2b88fd72686e554 | [
"MIT"
] | 4 | 2021-07-11T02:07:38.000Z | 2022-03-19T06:14:32.000Z | remisen_run/src/application.cpp | tobanteGaming/template-opengl | 7eac0d5c49f93b0567cc49fae2b88fd72686e554 | [
"MIT"
] | null | null | null | remisen_run/src/application.cpp | tobanteGaming/template-opengl | 7eac0d5c49f93b0567cc49fae2b88fd72686e554 | [
"MIT"
] | null | null | null | #include "application.hpp"
namespace tobanteGaming
{
Application::Application(String name) : m_name(name) {}
Application::~Application() {}
void Application::Init()
{
// glfw, glew, imgui & callbacks
m_window.reset(new Window());
m_window->init();
// Shader
m_shader.reset(new Shader(VERTEX_SHADE... | 26.615385 | 78 | 0.589234 | [
"render",
"object",
"model"
] |
88aefdc451d9a88b3527d790bf80aa9ffaced901 | 13,527 | cpp | C++ | components/serenity/config/main.cpp | SBKarr/stappler | d9311cba0b0e9362be55feca39a866d7bccd6dff | [
"MIT"
] | 10 | 2015-06-16T16:52:53.000Z | 2021-04-15T09:21:22.000Z | components/serenity/config/main.cpp | SBKarr/stappler | d9311cba0b0e9362be55feca39a866d7bccd6dff | [
"MIT"
] | 3 | 2015-09-23T10:04:00.000Z | 2020-09-10T15:47:34.000Z | components/serenity/config/main.cpp | SBKarr/stappler | d9311cba0b0e9362be55feca39a866d7bccd6dff | [
"MIT"
] | 3 | 2018-11-11T00:37:49.000Z | 2020-09-07T03:04:31.000Z | /**
Copyright (c) 2020 Roman Katuntsev <sbkarr@stappler.org>
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, merg... | 31.385151 | 109 | 0.63924 | [
"vector"
] |
88b9ce873c9e4c453da14a01aef13f9b65b30404 | 2,940 | cpp | C++ | src/Transmission.cpp | Sar-Kerson/dehazeProcessor | 94ec841aa09aac3783e7fde8f5268a5395a8bde6 | [
"MIT"
] | 35 | 2017-12-06T08:33:36.000Z | 2022-03-28T12:53:17.000Z | src/Transmission.cpp | Sar-Kerson/dehazeProcessor | 94ec841aa09aac3783e7fde8f5268a5395a8bde6 | [
"MIT"
] | 1 | 2019-12-04T05:20:33.000Z | 2019-12-04T05:20:33.000Z | src/Transmission.cpp | Sar-Kerson/dehazeProcessor | 94ec841aa09aac3783e7fde8f5268a5395a8bde6 | [
"MIT"
] | 14 | 2018-01-25T15:14:22.000Z | 2022-03-28T05:11:17.000Z | #include "../include/Transmission.h"
void Transmission::getTransmission(cv::Mat & output)
{
output = this->t;
}
void Transmission::calTransmission(cv::Mat & darkchannel, float_t w = 0.95)
{
cv::Mat temp;
if (darkchannel.type() != CV_8UC1)
darkchannel.convertTo(temp, CV_8UC1, 1.0 / 255, 0);
this->t = 255 - w * d... | 32.666667 | 101 | 0.578912 | [
"vector"
] |
88bf055af0bcfb6d9bd071b66c210d60f1d59398 | 1,573 | cpp | C++ | main.cpp | youda97/TopSpin | b5573cf320b8583b8d50bc54e727aad53edfb053 | [
"MIT"
] | null | null | null | main.cpp | youda97/TopSpin | b5573cf320b8583b8d50bc54e727aad53edfb053 | [
"MIT"
] | null | null | null | main.cpp | youda97/TopSpin | b5573cf320b8583b8d50bc54e727aad53edfb053 | [
"MIT"
] | null | null | null | #include "TopSpin.h"
#include <iostream>
#include <ctime>
#include <conio.h>
using namespace std;
int main() {
srand(unsigned(time(NULL)));
char option;
int ans;
TopSpin * spinner = new TopSpin(20, 4); //Creates a TopSpin object of size 20 and spinSize 4.
//Asks the user for a number of random moves to initi... | 25.370968 | 99 | 0.601399 | [
"object"
] |
88bf471dce8dfb726760be1532aa965bcca7f01b | 10,630 | hpp | C++ | cpp/src/io/read.hpp | dylex/wecall | 35d24cefa4fba549e737cd99329ae1b17dd0156b | [
"MIT"
] | 8 | 2018-10-08T15:47:21.000Z | 2021-11-09T07:13:05.000Z | cpp/src/io/read.hpp | dylex/wecall | 35d24cefa4fba549e737cd99329ae1b17dd0156b | [
"MIT"
] | 4 | 2018-11-05T09:16:27.000Z | 2020-04-09T12:32:56.000Z | cpp/src/io/read.hpp | dylex/wecall | 35d24cefa4fba549e737cd99329ae1b17dd0156b | [
"MIT"
] | 4 | 2019-09-03T15:46:39.000Z | 2021-06-04T07:28:33.000Z | // All content Copyright (C) 2018 Genomics plc
#ifndef READ_HPP
#define READ_HPP
#include "common.hpp"
#include "io/pysam.hpp"
#include "alignment/cigar.hpp"
#include "utils/sequence.hpp"
#include "variant/type/variant.hpp"
#include "variant/type/breakpoint.hpp"
#include <memory>
#include <string>
#include <cstdint>
... | 39.080882 | 120 | 0.629257 | [
"vector"
] |
88c7ac350193ea9336e01a7017d50d727f7ad15c | 2,077 | cpp | C++ | 27. Closest pair of points.cpp | VasuGoel/algorithms | c8779a42d72bb5bbe37c76cdf3862d5fc991c055 | [
"MIT"
] | null | null | null | 27. Closest pair of points.cpp | VasuGoel/algorithms | c8779a42d72bb5bbe37c76cdf3862d5fc991c055 | [
"MIT"
] | null | null | null | 27. Closest pair of points.cpp | VasuGoel/algorithms | c8779a42d72bb5bbe37c76cdf3862d5fc991c055 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
typedef struct Point {
int x, y;
} point;
bool compareX(point a, point b) {
return a.x < b.x;
}
bool compareY(point a, point b) {
return a.y < b.y;
}
double coord_distance(point a, point b) {
return sqrt(pow((a.x - b.x), 2) + pow((a.y - b.y), 2));
}
doub... | 29.671429 | 103 | 0.595571 | [
"vector"
] |
88ceee32d78de65d1d4c845ef79e82900f2cfac6 | 3,495 | cc | C++ | c/region_test.cc | mathiasbynens/2im | ab5795ac9548946f01f5d05d8541b8b8c4893067 | [
"MIT"
] | null | null | null | c/region_test.cc | mathiasbynens/2im | ab5795ac9548946f01f5d05d8541b8b8c4893067 | [
"MIT"
] | null | null | null | c/region_test.cc | mathiasbynens/2im | ab5795ac9548946f01f5d05d8541b8b8c4893067 | [
"MIT"
] | null | null | null | #include "region.h"
#include "codec_params.h"
#include "distance_range.h"
#include "gtest/gtest.h"
#include "platform.h"
#include "sin_cos.h"
namespace twim {
template <size_t N>
void Set(Vector<int32_t>* to, const std::array<int32_t, N>& from) {
size_t count = N / 3;
size_t step = to->capacity / 3;
int32_t* R... | 29.369748 | 76 | 0.616595 | [
"vector"
] |
88d06f513e4bcfeddff8572d6d4ad274988e18f3 | 6,899 | cpp | C++ | CUDA-RayTracer/backends/ray_tracing/RayTracingOpenMP.cpp | apardyl/cuda-raytracer | cc0f6a148706fb66f7c4b15e67600deb2e00eed1 | [
"MIT"
] | null | null | null | CUDA-RayTracer/backends/ray_tracing/RayTracingOpenMP.cpp | apardyl/cuda-raytracer | cc0f6a148706fb66f7c4b15e67600deb2e00eed1 | [
"MIT"
] | null | null | null | CUDA-RayTracer/backends/ray_tracing/RayTracingOpenMP.cpp | apardyl/cuda-raytracer | cc0f6a148706fb66f7c4b15e67600deb2e00eed1 | [
"MIT"
] | null | null | null | #include "RayTracingOpenMP.h"
#include <boost/math/constants/constants.hpp>
#include "Camera.h"
#include "KdTree.h"
namespace math = boost::math::constants;
const Color BACKGROUND_COLOR(0, 0, 0);
RayTracingOpenMP::RayTracingOpenMP() {
lights = new Light[20];
Ia = Color(0.2, 0.2, 0.2);
}
RayTracingOpenMP::... | 33.818627 | 96 | 0.593999 | [
"render",
"object",
"vector"
] |
88d207cab452dbfd692123608d099e262aa8be0c | 3,664 | cpp | C++ | Classes/Component/Buff.cpp | PlusOneZ/OOPCourseProject | 4b058167ec7ef79eacf7faaba05f13b6bee1d631 | [
"DOC"
] | 5 | 2020-05-16T08:30:45.000Z | 2021-06-05T07:39:44.000Z | Classes/Component/Buff.cpp | PlusOneZ/OOPCourseProject | 4b058167ec7ef79eacf7faaba05f13b6bee1d631 | [
"DOC"
] | null | null | null | Classes/Component/Buff.cpp | PlusOneZ/OOPCourseProject | 4b058167ec7ef79eacf7faaba05f13b6bee1d631 | [
"DOC"
] | 4 | 2020-05-25T05:22:14.000Z | 2021-07-15T06:27:31.000Z | /**
*@file Buff.cpp
*@author 肖杨
*@date 6/21/2020
*/
#include "Buff.h"
Buff* Buff::HeroBuff = nullptr;
Animate* Buff::creatBuffAnimate(const char * pAnimateName)
{
log("Trying to create buff effect");
int moveFrameNum = 6;
SpriteFrame*frame = nullptr;
Vector<SpriteFrame*> frameVec;
for (int i = 1; i <= mov... | 19.386243 | 79 | 0.662391 | [
"vector"
] |
88d368bec40817de44a0444093a4a0a189d8228f | 1,102 | cpp | C++ | Algorithms/Two Sum II - Input array is sorted/solution.cpp | MishaVernik/LeetCode | 5f4823706f472b59fbc0c936524477dc039a46ee | [
"MIT"
] | null | null | null | Algorithms/Two Sum II - Input array is sorted/solution.cpp | MishaVernik/LeetCode | 5f4823706f472b59fbc0c936524477dc039a46ee | [
"MIT"
] | null | null | null | Algorithms/Two Sum II - Input array is sorted/solution.cpp | MishaVernik/LeetCode | 5f4823706f472b59fbc0c936524477dc039a46ee | [
"MIT"
] | null | null | null | /*
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2.
Note:
Your returned answers (both index... | 34.4375 | 137 | 0.621597 | [
"vector"
] |
88e2012cdf6aab92ee2d38f676d0b63b6aa91072 | 8,609 | cpp | C++ | src/download_manager.cpp | TeamPopplio/browservice-wii-pr | e542cbe937a4335954ddf6f8ecca5ec7e6e0a1cb | [
"MIT"
] | 1 | 2021-02-18T00:30:26.000Z | 2021-02-18T00:30:26.000Z | src/download_manager.cpp | TeamPopplio/browservice-wii-pr | e542cbe937a4335954ddf6f8ecca5ec7e6e0a1cb | [
"MIT"
] | null | null | null | src/download_manager.cpp | TeamPopplio/browservice-wii-pr | e542cbe937a4335954ddf6f8ecca5ec7e6e0a1cb | [
"MIT"
] | null | null | null | #include "download_manager.hpp"
#include "http.hpp"
#include "temp_dir.hpp"
#include "include/cef_download_handler.h"
namespace {
pair<string, string> extractExtension(const string& filename) {
int lastDot = (int)filename.size() - 1;
while(lastDot >= 0 && filename[lastDot] != '.') {
--lastDot;
}... | 27.157729 | 78 | 0.563945 | [
"vector"
] |
88f2bc6842e0c3da1a785ffbd78ab16f7d20aa88 | 11,294 | cpp | C++ | src/algos/binghamthread.cpp | rdmenezes/fibernavigator2 | bbb8bc8ff16790580d5b03fce7e1fad45fae1b91 | [
"MIT"
] | null | null | null | src/algos/binghamthread.cpp | rdmenezes/fibernavigator2 | bbb8bc8ff16790580d5b03fce7e1fad45fae1b91 | [
"MIT"
] | null | null | null | src/algos/binghamthread.cpp | rdmenezes/fibernavigator2 | bbb8bc8ff16790580d5b03fce7e1fad45fae1b91 | [
"MIT"
] | null | null | null | /*
* BinghamThread.cpp
*
* Created on: 27.12.2012
* @author Ralph Schurade
*/
#include "binghamthread.h"
#include "fmath.h"
#include "sorts.h"
#include "../data/datasets/datasetsh.h"
#include "../data/mesh/tesselation.h"
#include "../gui/gl/glfunctions.h"
BinghamThread::BinghamThread( DatasetSH... | 29.95756 | 110 | 0.407296 | [
"mesh",
"vector"
] |
88f41cda1e341c6d8f3ee3d73f54ddccc671d226 | 5,176 | cpp | C++ | build/linux-build/Sources/src/kha/AlignedQuad.cpp | 5Mixer/GGJ20 | a12a14d596ab150e8d96dda5a21defcd176f251f | [
"MIT"
] | null | null | null | build/linux-build/Sources/src/kha/AlignedQuad.cpp | 5Mixer/GGJ20 | a12a14d596ab150e8d96dda5a21defcd176f251f | [
"MIT"
] | null | null | null | build/linux-build/Sources/src/kha/AlignedQuad.cpp | 5Mixer/GGJ20 | a12a14d596ab150e8d96dda5a21defcd176f251f | [
"MIT"
] | null | null | null | // Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_kha_AlignedQuad
#include <hxinc/kha/AlignedQuad.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_26390ef81ec94f5e_10_new,"kha.AlignedQuad","new",0x3c073353,"kha.AlignedQuad.new","kha/Kravur.hx",10,0xdd7a3f9a)
namespace kha{
void AlignedQuad_obj::__construct(){
... | 36.70922 | 141 | 0.701314 | [
"3d"
] |
88f6a69999a568b5151b8b6198a437b14d393634 | 4,747 | cpp | C++ | test_main/src/renderer/blocks.cpp | jgavert/FazE | 7cf63655869c285a7e5ca8f5a48f296d9548bd6c | [
"MIT"
] | 15 | 2020-01-15T13:04:36.000Z | 2022-02-18T17:08:25.000Z | test_main/src/renderer/blocks.cpp | jgavert/FazE | 7cf63655869c285a7e5ca8f5a48f296d9548bd6c | [
"MIT"
] | 3 | 2015-09-09T08:16:30.000Z | 2015-11-24T16:22:48.000Z | test_main/src/renderer/blocks.cpp | jgavert/FazE | 7cf63655869c285a7e5ca8f5a48f296d9548bd6c | [
"MIT"
] | 1 | 2021-12-06T07:19:05.000Z | 2021-12-06T07:19:05.000Z | #include "blocks.hpp"
#include <higanbana/core/profiling/profiling.hpp>
#include <higanbana/core/global_debug.hpp>
namespace app::renderer
{
Blocks::Blocks(higanbana::GpuGroup& device, higanbana::ShaderArgumentsLayout cameras, higanbana::ShaderArgumentsLayout materials) {
using namespace higanbana;
higanbana::Shad... | 35.962121 | 344 | 0.680851 | [
"vector"
] |
88fe4c418e8a9cc375b658a375d76326f69b7136 | 6,778 | cpp | C++ | anim/Interpolator.cpp | Andrewich/deadjustice | 48bea56598e79a1a10866ad41aa3517bf7d7c724 | [
"BSD-3-Clause"
] | 3 | 2019-04-20T10:16:36.000Z | 2021-03-21T19:51:38.000Z | anim/Interpolator.cpp | Andrewich/deadjustice | 48bea56598e79a1a10866ad41aa3517bf7d7c724 | [
"BSD-3-Clause"
] | null | null | null | anim/Interpolator.cpp | Andrewich/deadjustice | 48bea56598e79a1a10866ad41aa3517bf7d7c724 | [
"BSD-3-Clause"
] | 2 | 2020-04-18T20:04:24.000Z | 2021-09-19T05:07:41.000Z | #include "Interpolator.h"
#include "PtrLess.h"
#include <lang/String.h>
#include <lang/Exception.h>
#include <math.h>
#include <algorithm>
#include "config.h"
//-----------------------------------------------------------------------------
using namespace lang;
using namespace util;
//-------------------... | 22.976271 | 85 | 0.609914 | [
"vector"
] |
322ee1d5973f7ccf6ecb865b9ebd2c778eab5191 | 9,808 | cpp | C++ | OrbitGl/CaptureSerializer.cpp | EmperorYP7/orb | 33210e928243eb803b4b01fe9b82f89656d2f061 | [
"BSD-2-Clause"
] | 1 | 2021-01-10T16:32:07.000Z | 2021-01-10T16:32:07.000Z | OrbitGl/CaptureSerializer.cpp | EmperorYP7/orbit | 33210e928243eb803b4b01fe9b82f89656d2f061 | [
"BSD-2-Clause"
] | null | null | null | OrbitGl/CaptureSerializer.cpp | EmperorYP7/orbit | 33210e928243eb803b4b01fe9b82f89656d2f061 | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) 2020 The Orbit 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 "CaptureSerializer.h"
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/proto... | 38.163424 | 100 | 0.723797 | [
"vector"
] |
3237ef01c01e9f6bba26f9e781fae68c90be44a6 | 5,235 | cpp | C++ | src/main.cpp | Reesy/sdl-tridents-of-ardeus | 4e806d6ae64177949b24c5f31ecdffee9588c1d0 | [
"MIT"
] | null | null | null | src/main.cpp | Reesy/sdl-tridents-of-ardeus | 4e806d6ae64177949b24c5f31ecdffee9588c1d0 | [
"MIT"
] | null | null | null | src/main.cpp | Reesy/sdl-tridents-of-ardeus | 4e806d6ae64177949b24c5f31ecdffee9588c1d0 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <string>
#include <iostream>
#include <components/AnimationComponent.hpp>
#include <components/GraphicsComponent.hpp>
#include <components/InputComponent.hpp>
#include <components/TileComponent.hpp>
#include <interfaces/AIInterface.hpp>
#include <interfaces/GraphicsInterface.hpp>
#include... | 22.276596 | 171 | 0.721108 | [
"render"
] |
3238c1684129ce959d7bd6b70ccea9e21da58d8d | 13,007 | cpp | C++ | PiratesEngine/src/PiratesEngine/Renderer/Renderer2D.cpp | michaelzaki-12/PiratesEngine | 69e875eb2d21350c499245316351552bc217cbcb | [
"MIT"
] | null | null | null | PiratesEngine/src/PiratesEngine/Renderer/Renderer2D.cpp | michaelzaki-12/PiratesEngine | 69e875eb2d21350c499245316351552bc217cbcb | [
"MIT"
] | null | null | null | PiratesEngine/src/PiratesEngine/Renderer/Renderer2D.cpp | michaelzaki-12/PiratesEngine | 69e875eb2d21350c499245316351552bc217cbcb | [
"MIT"
] | null | null | null | #include "PEPCH.h"
#include "Renderer2D.h"
#include "glm/gtc/matrix_transform.hpp"
#include "RenderCommand.h"
namespace Pirates
{
struct QuadVertex
{
glm::vec3 position;
glm::vec4 Color;
glm::vec2 TexCoord;
float TexIndex;
float TillingFactor = 1.0f;
//TODO: Have A texid, may be Something else;
};
st... | 33.096692 | 157 | 0.731452 | [
"transform"
] |
323cda181d68cb8f3a1f85e34dcc34fb8fe05f2b | 4,505 | cpp | C++ | puzzle15/puzzle15_2.cpp | schnaader/AdventOfCode2021 | 0808282f90e4ef97edf130f228435860f332e1d3 | [
"Apache-2.0"
] | 1 | 2021-12-19T12:34:03.000Z | 2021-12-19T12:34:03.000Z | puzzle15/puzzle15_2.cpp | schnaader/AdventOfCode2021 | 0808282f90e4ef97edf130f228435860f332e1d3 | [
"Apache-2.0"
] | null | null | null | puzzle15/puzzle15_2.cpp | schnaader/AdventOfCode2021 | 0808282f90e4ef97edf130f228435860f332e1d3 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <unordered_set>
#include <array>
#include <stack>
#include <map>
#include <set>
#include <algorithm>
#include <cmath>
#include <chrono>
std::array<int, 500*500> map;
std::array<int, 500*500> bigger... | 24.752747 | 122 | 0.56626 | [
"vector"
] |
32443f526be43b245398d4007258b626c78f6c42 | 18,373 | cpp | C++ | Source/WebCore/bindings/scripts/test/JS/JSTestPromiseRejectionEvent.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | Source/WebCore/bindings/scripts/test/JS/JSTestPromiseRejectionEvent.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Source/WebCore/bindings/scripts/test/JS/JSTestPromiseRejectionEvent.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | /*
This file is part of the WebKit open source project.
This file has been generated by generate-bindings.pl. DO NOT MODIFY!
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation... | 48.60582 | 315 | 0.773907 | [
"object"
] |
324a599e095058113a3038d6e13b32d6c7191d55 | 1,132 | cpp | C++ | catkin_ws/src/agitr/src/spawn_turtle.cpp | gromovnik1337/ROS_OD_SC | e11ea0780e193a3b045b578d7bf3688ee4aa99f0 | [
"Apache-2.0"
] | null | null | null | catkin_ws/src/agitr/src/spawn_turtle.cpp | gromovnik1337/ROS_OD_SC | e11ea0780e193a3b045b578d7bf3688ee4aa99f0 | [
"Apache-2.0"
] | null | null | null | catkin_ws/src/agitr/src/spawn_turtle.cpp | gromovnik1337/ROS_OD_SC | e11ea0780e193a3b045b578d7bf3688ee4aa99f0 | [
"Apache-2.0"
] | null | null | null | // This program spawns a new turtlesim turtle by calling the appropriate ros service.
#include <ros/ros.h>
// srv class for the service.
#include <turtlesim/Spawn.h>
int main(int argc, char **argv) {
ros::init(argc, argv, "spawn_turtle");
ros::NodeHandle nh;
// Create a client object which takes the data ... | 33.294118 | 146 | 0.681095 | [
"object"
] |
324da04cc26fb8feb1bc0d803e8834fb69169050 | 1,389 | hpp | C++ | cpp/include/cg3/common/kd_tree.hpp | tychota/cg3-path-tracer | 548519121cacb01a4be835c0bece21238b56f92b | [
"Beerware"
] | null | null | null | cpp/include/cg3/common/kd_tree.hpp | tychota/cg3-path-tracer | 548519121cacb01a4be835c0bece21238b56f92b | [
"Beerware"
] | null | null | null | cpp/include/cg3/common/kd_tree.hpp | tychota/cg3-path-tracer | 548519121cacb01a4be835c0bece21238b56f92b | [
"Beerware"
] | null | null | null | # pragma once
# include "cg3/common/primitive_group.hpp"
# include "cg3/common/box.hpp"
# ifdef _MSC_VER
# pragma warning (disable: 4996)
# endif
//kd_tree_group
class kd_tree : public primitive_group
{
public:
//abstract class of a node of a kd-tree.
class kd_node
{
public:
... | 25.722222 | 113 | 0.649388 | [
"vector"
] |
3252403116502e2f234980f06e39fbecf4672cfa | 12,040 | cc | C++ | src/Clustering/Gmm.cc | alexanderrichard/squirrel | 12614a9eb429500c8f341654043f33a1b6bd1d31 | [
"AFL-3.0"
] | 63 | 2016-07-08T13:35:27.000Z | 2021-01-13T18:37:13.000Z | src/Clustering/Gmm.cc | alexanderrichard/squirrel | 12614a9eb429500c8f341654043f33a1b6bd1d31 | [
"AFL-3.0"
] | 4 | 2017-08-04T09:25:10.000Z | 2022-02-24T15:38:52.000Z | src/Clustering/Gmm.cc | alexanderrichard/squirrel | 12614a9eb429500c8f341654043f33a1b6bd1d31 | [
"AFL-3.0"
] | 30 | 2016-05-11T02:24:46.000Z | 2021-11-12T14:06:20.000Z | /*
* Copyright 2016 Alexander Richard
*
* This file is part of Squirrel.
*
* Licensed under the Academic Free License 3.0 (the "License").
* You may not use this file except in compliance with the License.
* You should have received a copy of the License along with Squirrel.
* If not, see <https://opensource.or... | 35.204678 | 134 | 0.742691 | [
"vector",
"model"
] |
32524483c0facde855a3449ca859f0219e9d81af | 1,054 | cpp | C++ | comp-prog-club/spring-2019/practice-3/reachableroads/mitch/reachableroads.cpp | sudopluto/comp-prog-practice | f4bcb9c1ef4aed4e18393bf6953b152e2788331e | [
"MIT"
] | null | null | null | comp-prog-club/spring-2019/practice-3/reachableroads/mitch/reachableroads.cpp | sudopluto/comp-prog-practice | f4bcb9c1ef4aed4e18393bf6953b152e2788331e | [
"MIT"
] | null | null | null | comp-prog-club/spring-2019/practice-3/reachableroads/mitch/reachableroads.cpp | sudopluto/comp-prog-practice | f4bcb9c1ef4aed4e18393bf6953b152e2788331e | [
"MIT"
] | null | null | null | #include <iostream>
#include <string.h>
#include <vector>
using namespace std;
class Node {
public:
vector<Node*> neighbors;
bool isVisited;
void search() {
isVisited = true;
for (auto node : neighbors) {
if (!node->isVisited) {
node->search();
}
}
}
... | 14.84507 | 44 | 0.455408 | [
"vector"
] |
32577f740ecf6e6ec3779d421e88aa48eb7f9de4 | 1,483 | cpp | C++ | PTA/1036.cpp | wenbo1188/Data-Structure-Review | 727f65af03c8c76eafefd5dff6208392ce7a1298 | [
"MIT"
] | null | null | null | PTA/1036.cpp | wenbo1188/Data-Structure-Review | 727f65af03c8c76eafefd5dff6208392ce7a1298 | [
"MIT"
] | null | null | null | PTA/1036.cpp | wenbo1188/Data-Structure-Review | 727f65af03c8c76eafefd5dff6208392ce7a1298 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef struct
{
string name;
string gen;
string id;
int grade;
}Student;
vector<Student> m;
vector<Student> f;
int cmp1(Student a, Student b)
{
return a.grade < b.grade;
}
int cmp2(Student a, Student b)
{
return a.grade > b.grade;
}
int main()
... | 20.040541 | 52 | 0.439649 | [
"vector"
] |
3259a2a6bacec33ae6985ad763f378229c328202 | 17,316 | cpp | C++ | src/Util.cpp | nguyentientungduong/node-api | 84cb0fee6890c71a598f3b8f521cead1a5b10fdd | [
"Apache-2.0"
] | null | null | null | src/Util.cpp | nguyentientungduong/node-api | 84cb0fee6890c71a598f3b8f521cead1a5b10fdd | [
"Apache-2.0"
] | null | null | null | src/Util.cpp | nguyentientungduong/node-api | 84cb0fee6890c71a598f3b8f521cead1a5b10fdd | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2020 TOSHIBA Digital Solutions 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 ... | 32.30597 | 94 | 0.620524 | [
"object"
] |
3262559fc179ca74d4534686bb28cdf70ad820c4 | 539 | cpp | C++ | Dataset/Leetcode/train/55/157.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/55/157.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/55/157.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
int n;
vector<bool> v;
int ans = false;
bool XXX(vector<int>& nums) {
if(nums.size() == 1) return true;
n = nums.size() - 1;
v = vector<bool>(n, true);
dfs(nums, 0);
return ans;
}
void dfs(vector<int>& nums, int idx){
if(!... | 20.730769 | 44 | 0.428571 | [
"vector"
] |
326da2bd5c60e52681068a04f2f39041526b5ffa | 243 | hpp | C++ | src/Engine/IOManager.hpp | kazaamjt/ThendrallEngine | 3af7e685c3a7b89d00b47814749f53244e7e6e76 | [
"MIT"
] | null | null | null | src/Engine/IOManager.hpp | kazaamjt/ThendrallEngine | 3af7e685c3a7b89d00b47814749f53244e7e6e76 | [
"MIT"
] | null | null | null | src/Engine/IOManager.hpp | kazaamjt/ThendrallEngine | 3af7e685c3a7b89d00b47814749f53244e7e6e76 | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <string>
#include <vector>
namespace Engine {
class IOManager {
public:
static std::unique_ptr<std::vector<unsigned char>> read_file_to_buffer(const std::string &file_path);
private:
};
} // Engine
| 15.1875 | 102 | 0.736626 | [
"vector"
] |
3277311f1a27770bc479488103dd29c8248a1204 | 15,486 | cpp | C++ | dockerfiles/gaas_tutorial_2/GAAS/software/SLAM/ygz_slam_ros/Thirdparty/PCL/apps/point_cloud_editor/src/mainWindow.cpp | hddxds/scripts_from_gi | afb8977c001b860335f9062464e600d9115ea56e | [
"Apache-2.0"
] | 2 | 2019-04-10T14:04:52.000Z | 2019-05-29T03:41:58.000Z | software/SLAM/ygz_slam_ros/Thirdparty/PCL/apps/point_cloud_editor/src/mainWindow.cpp | glider54321/GAAS | 5c3b8c684e72fdf7f62c5731a260021e741069e7 | [
"BSD-3-Clause"
] | null | null | null | software/SLAM/ygz_slam_ros/Thirdparty/PCL/apps/point_cloud_editor/src/mainWindow.cpp | glider54321/GAAS | 5c3b8c684e72fdf7f62c5731a260021e741069e7 | [
"BSD-3-Clause"
] | 1 | 2021-12-20T06:54:41.000Z | 2021-12-20T06:54:41.000Z | ///
/// Copyright (c) 2012, Texas A&M University
/// All rights reserved.
///
/// Redistribution and use in source and binary forms, with or without
/// modification, are permitted provided that the following conditions
/// are met:
///
/// * Redistributions of source code must retain the above copyright
/// notice... | 38.04914 | 88 | 0.664084 | [
"transform",
"3d"
] |
32797db3b10cc784d64b946a06aef017df69202f | 4,536 | hpp | C++ | src/math/transform.hpp | Shinigami072/3DGameProgrammingTutorial | 4679f756f3df851210e2b4cc7dc8b16ef3e3855a | [
"MIT"
] | 83 | 2018-03-29T02:28:26.000Z | 2021-06-10T23:56:24.000Z | src/math/transform.hpp | Shinigami072/3DGameProgrammingTutorial | 4679f756f3df851210e2b4cc7dc8b16ef3e3855a | [
"MIT"
] | 14 | 2018-04-11T18:38:47.000Z | 2018-09-20T21:56:36.000Z | src/math/transform.hpp | Shinigami072/3DGameProgrammingTutorial | 4679f756f3df851210e2b4cc7dc8b16ef3e3855a | [
"MIT"
] | 32 | 2018-03-29T02:39:28.000Z | 2022-03-16T16:36:32.000Z | #pragma once
#include "vector.hpp"
#include "quaternion.hpp"
#include "matrix.hpp"
class Transform
{
public:
FORCEINLINE Transform() :
translation(0.0f, 0.0f, 0.0f),
rotation(0.0f, 0.0f, 0.0f, 1.0f),
scale(1.0f, 1.0f, 1.0f) {}
FORCEINLINE Transform(const Vector3f& translationIn) :
translation(translationIn... | 25.627119 | 98 | 0.760802 | [
"vector",
"transform"
] |
327eb4db69f2582cb8e29e5d9747de62c69c6aa3 | 3,823 | cpp | C++ | src/geode/model/helpers/simplicial_section_creator.cpp | Geode-solutions/OpenGeode | e47621989e6fc152f529d4e1e7e3b9ef9e7d6ccc | [
"MIT"
] | 64 | 2019-08-02T14:31:01.000Z | 2022-03-30T07:46:50.000Z | src/geode/model/helpers/simplicial_section_creator.cpp | Geode-solutions/OpenGeode | e47621989e6fc152f529d4e1e7e3b9ef9e7d6ccc | [
"MIT"
] | 395 | 2019-08-02T17:15:10.000Z | 2022-03-31T15:10:27.000Z | src/geode/model/helpers/simplicial_section_creator.cpp | Geode-solutions/OpenGeode | e47621989e6fc152f529d4e1e7e3b9ef9e7d6ccc | [
"MIT"
] | 8 | 2019-08-19T21:32:15.000Z | 2022-03-06T18:41:10.000Z | /*
* Copyright (c) 2019 - 2021 Geode-solutions
*
* 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, mer... | 38.616162 | 80 | 0.665446 | [
"vector",
"model"
] |
3284f4f6949076fb7e2bd4aefc01ffd4399f136b | 6,724 | cpp | C++ | c-source/ProtoChecker/CsvReader.cpp | Vegas007/Proto-Checker | 757a968fefa1275845eb6dc91ebd997805ddfc21 | [
"MIT"
] | 2 | 2020-01-26T18:32:23.000Z | 2022-01-13T10:27:37.000Z | c-source/ProtoChecker/CsvReader.cpp | Vegas007/Proto-Checker | 757a968fefa1275845eb6dc91ebd997805ddfc21 | [
"MIT"
] | null | null | null | c-source/ProtoChecker/CsvReader.cpp | Vegas007/Proto-Checker | 757a968fefa1275845eb6dc91ebd997805ddfc21 | [
"MIT"
] | 2 | 2020-03-29T22:34:25.000Z | 2020-10-07T21:06:14.000Z | #include "pch.h"
#include "CsvReader.h"
#include <fstream>
#include <algorithm>
#ifndef Assert
#include <assert.h>
#define Assert assert
#define LogToFile (void)(0);
#endif
namespace
{
enum ParseState
{
STATE_NORMAL = 0,
STATE_QUOTE
};
std::string Trim(std::string str)
... | 22.191419 | 96 | 0.508775 | [
"transform"
] |
32870ad9bb58b5791346052ce60789944e6d91e3 | 2,552 | cpp | C++ | gallery/src/char2double.cpp | LTLA/tatami | 134dbb98a0e47f4fa75426f37f08980efe61369b | [
"MIT"
] | 1 | 2021-09-13T01:10:45.000Z | 2021-09-13T01:10:45.000Z | gallery/src/char2double.cpp | LTLA/libbioc | 134dbb98a0e47f4fa75426f37f08980efe61369b | [
"MIT"
] | 9 | 2021-07-22T08:29:24.000Z | 2022-03-24T11:25:42.000Z | gallery/src/char2double.cpp | LTLA/tatami | 134dbb98a0e47f4fa75426f37f08980efe61369b | [
"MIT"
] | null | null | null | #include "tatami/tatami.h"
#include <vector>
#include <iostream>
#include <numeric>
#include <iomanip>
/* INTRODUCTION:
*
* In this example, we will demonstrate how the interface type does not
* necessarily need to be the same as the storage type. This allows developers
* to use a more memory-efficient representa... | 41.16129 | 162 | 0.622649 | [
"vector"
] |
32887890989dd4a0b2eab4b4e14d37dbd1a549c6 | 29,209 | cpp | C++ | ricochet/dlls/dll.cpp | Defal7c/zecachet | b5a09da4796f734b5942d30c527ee71cc2721543 | [
"Unlicense"
] | null | null | null | ricochet/dlls/dll.cpp | Defal7c/zecachet | b5a09da4796f734b5942d30c527ee71cc2721543 | [
"Unlicense"
] | null | null | null | ricochet/dlls/dll.cpp | Defal7c/zecachet | b5a09da4796f734b5942d30c527ee71cc2721543 | [
"Unlicense"
] | null | null | null | /*
Ricobot (C) Copyright 2004, Wei Mingzhi
All rights reserved.
Redistribution and use in source and binary forms with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the follow... | 27.818095 | 164 | 0.604197 | [
"vector"
] |
328bd504bb706776a39786a5a1e918fde799a945 | 4,309 | cpp | C++ | src/menuoptions.cpp | projectivemotion/sdlgame1 | 9e126b6ef096605008dfc5db8e9264b68582b38a | [
"MIT"
] | null | null | null | src/menuoptions.cpp | projectivemotion/sdlgame1 | 9e126b6ef096605008dfc5db8e9264b68582b38a | [
"MIT"
] | null | null | null | src/menuoptions.cpp | projectivemotion/sdlgame1 | 9e126b6ef096605008dfc5db8e9264b68582b38a | [
"MIT"
] | null | null | null | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: menuoptions.cpp
* Author: eye
*
* Created on September 24, 2019, 1:49 AM
*/
#include "menuoptions.h"
#include "Fo... | 23.546448 | 103 | 0.540497 | [
"render"
] |
3290c52034a07ba30c2f9b5624732d675118d75d | 7,176 | cpp | C++ | examples/car/carAbst_dba4.cpp | yinanl/rocs | bf2483903e39f4c0ea254a9ef56720a1259955ad | [
"BSD-3-Clause"
] | null | null | null | examples/car/carAbst_dba4.cpp | yinanl/rocs | bf2483903e39f4c0ea254a9ef56720a1259955ad | [
"BSD-3-Clause"
] | null | null | null | examples/car/carAbst_dba4.cpp | yinanl/rocs | bf2483903e39f4c0ea254a9ef56720a1259955ad | [
"BSD-3-Clause"
] | null | null | null | /**
* carAbst_dba4.cpp
*
* Abstraction-based control for vehicle motion planning.
* A different workspace setting from carAbst.cpp.
*
* Created by Yinan Li on Aug 10, 2020.
* Hybrid Systems Group, University of Waterloo.
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
#inc... | 32.035714 | 98 | 0.561315 | [
"vector"
] |
32926db239c78fb31e46d26f97b6517349093927 | 375 | cpp | C++ | CppPrimer/CppPrimer-Exercises/CppPrimer-Ch03/Exercise3.12.cpp | alaxion/Learning | 4b12b1603419252103cd933fdbfc4b2faffb6d00 | [
"MIT"
] | null | null | null | CppPrimer/CppPrimer-Exercises/CppPrimer-Ch03/Exercise3.12.cpp | alaxion/Learning | 4b12b1603419252103cd933fdbfc4b2faffb6d00 | [
"MIT"
] | null | null | null | CppPrimer/CppPrimer-Exercises/CppPrimer-Ch03/Exercise3.12.cpp | alaxion/Learning | 4b12b1603419252103cd933fdbfc4b2faffb6d00 | [
"MIT"
] | null | null | null | // Exercise3.12.cpp
// Ad
// Which of the following vector definitions are in error?
#include <iostream>
#include <vector>
using std::cin;
using std::cout;
using std::endl;
using std::vector;
using std::string;
int main()
{
vector<vector<int>> ivec;
vector<string> svec1 = ivec;
vector<string> svec2(10,... | 17.045455 | 59 | 0.642667 | [
"vector"
] |
329710343e58ea5cd36ab833be8bb5e1cf7e7fa7 | 28,173 | cc | C++ | google/cloud/securitycenter/internal/security_center_connection_impl.cc | sydney-munro/google-cloud-cpp | 374b52e5cec78962358bdd5913d4118a47af1952 | [
"Apache-2.0"
] | null | null | null | google/cloud/securitycenter/internal/security_center_connection_impl.cc | sydney-munro/google-cloud-cpp | 374b52e5cec78962358bdd5913d4118a47af1952 | [
"Apache-2.0"
] | null | null | null | google/cloud/securitycenter/internal/security_center_connection_impl.cc | sydney-munro/google-cloud-cpp | 374b52e5cec78962358bdd5913d4118a47af1952 | [
"Apache-2.0"
] | null | null | null | // Copyright 2022 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 44.648177 | 81 | 0.691371 | [
"vector"
] |
3299835ae69d9c50ae43d7ddc25219e3aaf4e1e0 | 23,303 | tpp | C++ | src/hypro/algorithms/eigendecomposition/Transformation.tpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 22 | 2016-10-05T12:19:01.000Z | 2022-01-23T09:14:41.000Z | src/hypro/algorithms/eigendecomposition/Transformation.tpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 23 | 2017-05-08T15:02:39.000Z | 2021-11-03T16:43:39.000Z | src/hypro/algorithms/eigendecomposition/Transformation.tpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 12 | 2017-06-07T23:51:09.000Z | 2022-01-04T13:06:21.000Z | /**
* @file Transformation.tpp
* @author Jan Philipp Hafer
*/
#include "Transformation.h"
namespace hypro {
template <typename Number>
Transformation<Number>::Transformation( const HybridAutomaton<Number>& _hybrid ) {
const size_t CONDITION_LIMIT = 100;
Matrix<Number> matrix_in_parser;
size_t m_size, i;
Matrix... | 46.420319 | 142 | 0.69682 | [
"vector",
"transform"
] |
32a6ba86258783c3f89832dfecf6f3972e19cf48 | 257 | cxx | C++ | Basic Programs/Some CP Problems/DivisibilityProblem1328A.cxx | PrajaktaSathe/HacktoberFest2020 | e84fc7a513afe3dd75c7c28db1866d7f5e6a8147 | [
"MIT"
] | null | null | null | Basic Programs/Some CP Problems/DivisibilityProblem1328A.cxx | PrajaktaSathe/HacktoberFest2020 | e84fc7a513afe3dd75c7c28db1866d7f5e6a8147 | [
"MIT"
] | null | null | null | Basic Programs/Some CP Problems/DivisibilityProblem1328A.cxx | PrajaktaSathe/HacktoberFest2020 | e84fc7a513afe3dd75c7c28db1866d7f5e6a8147 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <vector>
#include <iostream>
using namespace std;
int main(){
int t;
cin >> t;
for(int i=0;i<t;i++){
int a,b,k,l;
cin >> a >> b;
if(a%b==0) cout<<0<<'\n';
else {
k=a%b;
l=b-k;
cout << l<<'\n';
}
}
return 0;
}
| 12.238095 | 26 | 0.51751 | [
"vector"
] |
32b481c9d1f4f5d4b9513f74d1f912dbc351389f | 923 | hpp | C++ | bundle.hpp | jameskingstonclarke/pit | 6a548a6ba8893b6e4373c630dd67e6f220ac502c | [
"MIT"
] | 1 | 2020-08-26T21:50:27.000Z | 2020-08-26T21:50:27.000Z | bundle.hpp | jameskingstonclarke/pit | 6a548a6ba8893b6e4373c630dd67e6f220ac502c | [
"MIT"
] | null | null | null | bundle.hpp | jameskingstonclarke/pit | 6a548a6ba8893b6e4373c630dd67e6f220ac502c | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <iostream>
#include <vector>
#include <stack>
#include "value.hpp"
#include "instruction.hpp"
/*
a bundle represents a compiled pit program/module.
the bundle can be written to a file or passed to the runtime.
*/
namespace pit {
class Bundle {
public:
Bundle();
Bundle(std... | 24.945946 | 61 | 0.729144 | [
"vector"
] |
32b50b76729a4d14dd6c71abc1a51717b4d9bdf7 | 1,270 | hpp | C++ | source/lix/exec/stack.hpp | vector-of-bool/lix | b4f590abbdc9aedc92347d3b7a33854c05f7066e | [
"MIT"
] | 2 | 2018-09-15T10:17:32.000Z | 2022-01-29T04:01:02.000Z | source/lix/exec/stack.hpp | vector-of-bool/lix | b4f590abbdc9aedc92347d3b7a33854c05f7066e | [
"MIT"
] | null | null | null | source/lix/exec/stack.hpp | vector-of-bool/lix | b4f590abbdc9aedc92347d3b7a33854c05f7066e | [
"MIT"
] | null | null | null | #ifndef LIX_EXEC_STACK_HPP_INCLUDED
#define LIX_EXEC_STACK_HPP_INCLUDED
#include <lix/code/types.hpp>
#include <lix/value.hpp>
#include <lix/exec/closure.hpp>
#include <lix/exec/fn.hpp>
#include <cassert>
#include <deque>
#include <variant>
#include <vector>
namespace lix::exec {
using lix::code::inst_offset_t;
u... | 27.021277 | 74 | 0.645669 | [
"vector"
] |
32b915287f1c5ffd12e1e8c11c867ae6db0c07d3 | 10,149 | cpp | C++ | Source/UnrealSandboxTerrain/Private/TerrainZoneComponent.cpp | Mu-L/UnrealSandboxTerrain | 2c38082f5726d0613c874646d5b214e416de8cf3 | [
"MIT"
] | null | null | null | Source/UnrealSandboxTerrain/Private/TerrainZoneComponent.cpp | Mu-L/UnrealSandboxTerrain | 2c38082f5726d0613c874646d5b214e416de8cf3 | [
"MIT"
] | null | null | null | Source/UnrealSandboxTerrain/Private/TerrainZoneComponent.cpp | Mu-L/UnrealSandboxTerrain | 2c38082f5726d0613c874646d5b214e416de8cf3 | [
"MIT"
] | null | null | null | // Copyright blackw 2015-2020
#include "UnrealSandboxTerrainPrivatePCH.h"
#include "TerrainZoneComponent.h"
#include "SandboxTerrainController.h"
#include "SandboxVoxeldata.h"
#include "VoxelIndex.h"
#include "serialization.hpp"
#include "DrawDebugHelpers.h"
TValueDataPtr SerializeMeshData(TMeshDataPtr Me... | 35.735915 | 241 | 0.750025 | [
"mesh",
"vector",
"transform"
] |
32ba0cc85968daf846e9bca8cfa7507772c25ef7 | 2,185 | cpp | C++ | codenation-contest/R-3-TinTin-CapTechHiring.cpp | sounishnath003/practice-180D-strategy | 2778c861407a2be04168d5dfa6135a4b624029fc | [
"Apache-2.0"
] | null | null | null | codenation-contest/R-3-TinTin-CapTechHiring.cpp | sounishnath003/practice-180D-strategy | 2778c861407a2be04168d5dfa6135a4b624029fc | [
"Apache-2.0"
] | null | null | null | codenation-contest/R-3-TinTin-CapTechHiring.cpp | sounishnath003/practice-180D-strategy | 2778c861407a2be04168d5dfa6135a4b624029fc | [
"Apache-2.0"
] | 1 | 2020-10-07T15:02:09.000Z | 2020-10-07T15:02:09.000Z | #include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
using namespace std ;
#define sim template < class c
#define ris return * this
#define dor > debug & operator <<
#define eni(x) sim > typename enable_if<sizeof dud<c>(0) x 1, debug&>::type operator<<(c i) {
template < class c > s... | 35.819672 | 167 | 0.540961 | [
"vector"
] |
32bcf3df50e00bc934d66e48c10b3430a8501ded | 341,672 | cpp | C++ | src/main_9400.cpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | src/main_9400.cpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | src/main_9400.cpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: UnityEngine.DrivenTransformProperties
#include "UnityEngine/DrivenTransformProperties.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-util... | 87.991759 | 519 | 0.790114 | [
"object",
"vector",
"transform"
] |
32c60cc4ffa3c554c13f6741254fde6739ef362f | 52,254 | cpp | C++ | src/BlueSCSI.cpp | mactcp/BlueSCSI | 7b7f19413c08093cdb2664f90d8f78ad5499a0f5 | [
"MIT"
] | null | null | null | src/BlueSCSI.cpp | mactcp/BlueSCSI | 7b7f19413c08093cdb2664f90d8f78ad5499a0f5 | [
"MIT"
] | null | null | null | src/BlueSCSI.cpp | mactcp/BlueSCSI | 7b7f19413c08093cdb2664f90d8f78ad5499a0f5 | [
"MIT"
] | null | null | null | /*
* BlueSCSI
* Copyright (c) 2021 Eric Helgeson, Androda
*
* This file is free software: you may copy, redistribute 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 lat... | 28.99778 | 250 | 0.63176 | [
"object",
"model"
] |
32c975733464f8b24521f3be98b8730d34919615 | 3,012 | cpp | C++ | lib/src/activepp.cpp | willhoyle/activepp | 1edca9ecaa53fe45d540c8583d53a6b8a5c11cfd | [
"MIT"
] | 2 | 2020-04-14T09:49:27.000Z | 2021-05-08T18:47:17.000Z | lib/src/activepp.cpp | willhoyle/activepp | 1edca9ecaa53fe45d540c8583d53a6b8a5c11cfd | [
"MIT"
] | null | null | null | lib/src/activepp.cpp | willhoyle/activepp | 1edca9ecaa53fe45d540c8583d53a6b8a5c11cfd | [
"MIT"
] | 1 | 2020-04-14T09:49:31.000Z | 2020-04-14T09:49:31.000Z | #include "activepp.h"
#include "calendar.h"
#include "Helper.h"
#include "Requestor.h"
#include "Session.h"
#include "Streamer.h"
#include <iostream>
#include <string>
#include <fstream>
#include <future>
#include <tuple>
#include <unistd.h> // usleep
#include <vector>
#include "ActiveTickServerAPI/ActiveTickServer... | 29.242718 | 155 | 0.732404 | [
"vector"
] |
32cca6a405787160259d5da348fd47747e8e1792 | 3,185 | hh | C++ | ncrystal_core/include/NCrystal/internal/NCFileUtils.hh | mctools/ncrystal | 33ec51187a3bef418046c30e591ff7d8f239d54f | [
"Apache-2.0"
] | 22 | 2017-08-31T08:44:10.000Z | 2022-03-21T08:18:26.000Z | ncrystal_core/include/NCrystal/internal/NCFileUtils.hh | XuShuqi7/ncrystal | acf26db3dfd5f0a95355c7c3bbfcbfee55040175 | [
"Apache-2.0"
] | 77 | 2018-01-23T10:19:45.000Z | 2022-03-21T07:57:32.000Z | ncrystal_core/include/NCrystal/internal/NCFileUtils.hh | XuShuqi7/ncrystal | acf26db3dfd5f0a95355c7c3bbfcbfee55040175 | [
"Apache-2.0"
] | 11 | 2017-09-14T19:49:50.000Z | 2022-02-28T11:07:00.000Z | #ifndef NCrystal_FileUtils_hh
#define NCrystal_FileUtils_hh
////////////////////////////////////////////////////////////////////////////////
// //
// This file is part of NCrystal (see https://mctools.github.io/ncrystal/) //
// ... | 47.537313 | 80 | 0.540345 | [
"object"
] |
32d31abd54d8995b6408bb742942f3a41143ea8b | 7,074 | cpp | C++ | DeveloperExcusesScreensaver/DeveloperExcusesScreensaver.cpp | AntonShalgachev/developer-excuses-screensaver | 7b872c17fdd7d752798c6fe9c8e407f18ce10bf5 | [
"MIT"
] | null | null | null | DeveloperExcusesScreensaver/DeveloperExcusesScreensaver.cpp | AntonShalgachev/developer-excuses-screensaver | 7b872c17fdd7d752798c6fe9c8e407f18ce10bf5 | [
"MIT"
] | null | null | null | DeveloperExcusesScreensaver/DeveloperExcusesScreensaver.cpp | AntonShalgachev/developer-excuses-screensaver | 7b872c17fdd7d752798c6fe9c8e407f18ce10bf5 | [
"MIT"
] | null | null | null | // DeveloperExcusesScreensaver.cpp : Defines the entry point for the application.
//
#include "DeveloperExcusesScreensaver.h"
#include "framework.h"
#include "Drawer.h"
#include "QuoteSource.h"
#include "ConfigurationManager.h"
#include "resource.h"
#include "tstring.h"
namespace
{
struct MonitorRects
{
... | 27 | 145 | 0.685044 | [
"vector"
] |
ae0bde6ffa57b45dd9ff01fae887757aa338d10d | 24,333 | cpp | C++ | Apps/Samples/Asteroids/AsteroidsApp.cpp | navono/MethaneKit | 5cf55dcbbc23392f5c06b178570c7c32b6368ca7 | [
"Apache-2.0"
] | null | null | null | Apps/Samples/Asteroids/AsteroidsApp.cpp | navono/MethaneKit | 5cf55dcbbc23392f5c06b178570c7c32b6368ca7 | [
"Apache-2.0"
] | null | null | null | Apps/Samples/Asteroids/AsteroidsApp.cpp | navono/MethaneKit | 5cf55dcbbc23392f5c06b178570c7c32b6368ca7 | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
Copyright 2019-2020 Evgeny Gorodetskiy
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... | 47.248544 | 205 | 0.668064 | [
"mesh",
"render"
] |
ae18f6318e9b92b92059cca56de43fcb0dd13f2c | 4,501 | hpp | C++ | vts-libs/vts0/tileop.hpp | melowntech/vts-libs | ffbf889b6603a8f95d3c12a2602232ff9c5d2236 | [
"BSD-2-Clause"
] | 2 | 2020-04-20T01:44:46.000Z | 2021-01-15T06:54:51.000Z | externals/browser/externals/browser/externals/vts-libs/vts-libs/vts0/tileop.hpp | HanochZhu/vts-browser-unity-plugin | 32a22d41e21b95fb015326f95e401d87756d0374 | [
"BSD-2-Clause"
] | 2 | 2020-01-29T16:30:49.000Z | 2020-06-03T15:21:29.000Z | externals/browser/externals/browser/externals/vts-libs/vts-libs/vts0/tileop.hpp | HanochZhu/vts-browser-unity-plugin | 32a22d41e21b95fb015326f95e401d87756d0374 | [
"BSD-2-Clause"
] | 1 | 2019-09-25T05:10:07.000Z | 2019-09-25T05:10:07.000Z | /**
* Copyright (c) 2017 Melown Technologies SE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the f... | 30.208054 | 78 | 0.696956 | [
"mesh"
] |
ae2184f6a52af8539b23ef70c09e5cadcc357437 | 6,599 | cpp | C++ | mpi_communication_partition/mpi_communication_partition_pass.cpp | tudasc/CommPart | f5e6739d69d4ca8dd6528cb9657df398a9f0caa8 | [
"Apache-2.0"
] | 3 | 2021-04-04T01:12:47.000Z | 2021-06-07T14:27:45.000Z | mpi_communication_partition/mpi_communication_partition_pass.cpp | tudasc/CommPart | f5e6739d69d4ca8dd6528cb9657df398a9f0caa8 | [
"Apache-2.0"
] | null | null | null | mpi_communication_partition/mpi_communication_partition_pass.cpp | tudasc/CommPart | f5e6739d69d4ca8dd6528cb9657df398a9f0caa8 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2021 Tim Jammer
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 writing, software
d... | 29.070485 | 145 | 0.757842 | [
"vector"
] |
ae2e14e96a8883eaf60da2d6646995c4c12a08be | 124 | cpp | C++ | src/Target/index.cpp | YiraSan/llvm-bindings | 9fdae3c836eb329d42f8253adadf09ecaa44e2ee | [
"MIT"
] | 155 | 2021-03-25T09:21:47.000Z | 2022-03-30T01:51:40.000Z | src/Target/index.cpp | YiraSan/llvm-bindings | 9fdae3c836eb329d42f8253adadf09ecaa44e2ee | [
"MIT"
] | 13 | 2021-03-31T01:54:34.000Z | 2022-03-19T05:43:45.000Z | src/Target/index.cpp | YiraSan/llvm-bindings | 9fdae3c836eb329d42f8253adadf09ecaa44e2ee | [
"MIT"
] | 20 | 2021-04-11T05:27:43.000Z | 2022-03-06T04:48:15.000Z | #include "Target/index.h"
void InitTarget(Napi::Env env, Napi::Object &exports) {
TargetMachine::Init(env, exports);
}
| 20.666667 | 55 | 0.701613 | [
"object"
] |
ae328622bf568ff5168d99cf1584906bbf54d708 | 2,812 | cpp | C++ | code/tests/gfx/src/main.cpp | BrightComposite/RaptureStateToolkit | 6eb3c831540ba6a9d29e903dd3c537aac2e7f91f | [
"MIT"
] | null | null | null | code/tests/gfx/src/main.cpp | BrightComposite/RaptureStateToolkit | 6eb3c831540ba6a9d29e903dd3c537aac2e7f91f | [
"MIT"
] | null | null | null | code/tests/gfx/src/main.cpp | BrightComposite/RaptureStateToolkit | 6eb3c831540ba6a9d29e903dd3c537aac2e7f91f | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------
#include <application/starter.h>
#include <opengl_window/context.h>
#include <opengl/mesh.h>
#include <opengl/shader.h>
#include <opengl/uniform.h>
#include <math/vector.h>
#include <math/quaternion.h>
#include <iostream>
#include <valarray>... | 30.236559 | 120 | 0.48542 | [
"mesh",
"vector"
] |
ae3384aea4c30b8163c5ca63bb4b109292b5c001 | 23,333 | cpp | C++ | knowledgebase_creator/src/containers/ConceptNetCall.cpp | StephanOpfer/symrock | 519f684374124707f684edceb9b53156fe3bafbc | [
"MIT"
] | 1 | 2018-12-04T16:16:41.000Z | 2018-12-04T16:16:41.000Z | knowledgebase_creator/src/containers/ConceptNetCall.cpp | carpe-noctem-cassel/symrock | 519f684374124707f684edceb9b53156fe3bafbc | [
"MIT"
] | 2 | 2019-02-28T10:44:06.000Z | 2019-03-28T12:31:01.000Z | knowledgebase_creator/src/containers/ConceptNetCall.cpp | carpe-noctem-cassel/symrock | 519f684374124707f684edceb9b53156fe3bafbc | [
"MIT"
] | null | null | null | #include <gui/KnowledgebaseCreator.h>
#include "gui/ModelSettingDialog.h"
#include "containers/ConceptNetCall.h"
#include "containers/ConceptNetEdge.h"
#include "containers/ConceptNetConcept.h"
#include <sstream>
namespace kbcr {
ConceptNetCall::ConceptNetCall(KnowledgebaseCreator *gui, QString id, QString quer... | 45.483431 | 129 | 0.560708 | [
"object",
"vector"
] |
ae39362b36593532a193ce1bb1b016bef720c8bc | 3,802 | cpp | C++ | libraries/Dynamic/Dynamic.cpp | TeamMMF/Projekt | 5efa4361f71cd9b0755cad92a91de10601100ced | [
"MIT"
] | null | null | null | libraries/Dynamic/Dynamic.cpp | TeamMMF/Projekt | 5efa4361f71cd9b0755cad92a91de10601100ced | [
"MIT"
] | null | null | null | libraries/Dynamic/Dynamic.cpp | TeamMMF/Projekt | 5efa4361f71cd9b0755cad92a91de10601100ced | [
"MIT"
] | null | null | null | //
// Created by matep on 03/12/2017.
//
#include "Dynamic.h"
#include "Common.hpp"
#include <iostream>
#include <iomanip>
#include <cstring>
#include <algorithm>
using namespace std;
// Binary search (note boundaries in the caller)
int cell_index(std::vector<int> &v, int l, int r, int key) {
while (r - l > 1) {... | 33.946429 | 191 | 0.589164 | [
"vector"
] |
ae3f5be9861e208d559aebb5bd8f282e33cb7cb6 | 6,119 | cpp | C++ | Libraries/OsgAnimatSim/OsgPrismaticLimit.cpp | NeuroRoboticTech/AnimatLabPublicSource | c5b23f8898513582afb7891eb994a7bd40a89f08 | [
"BSD-3-Clause"
] | 8 | 2015-01-09T21:59:50.000Z | 2021-04-14T14:08:47.000Z | Libraries/OsgAnimatSim/OsgPrismaticLimit.cpp | NeuroRoboticTech/AnimatLabPublicSource | c5b23f8898513582afb7891eb994a7bd40a89f08 | [
"BSD-3-Clause"
] | null | null | null | Libraries/OsgAnimatSim/OsgPrismaticLimit.cpp | NeuroRoboticTech/AnimatLabPublicSource | c5b23f8898513582afb7891eb994a7bd40a89f08 | [
"BSD-3-Clause"
] | 2 | 2018-12-21T02:58:30.000Z | 2020-08-12T11:44:39.000Z |
#include "StdAfx.h"
#include "OsgMovableItem.h"
#include "OsgBody.h"
#include "OsgRigidBody.h"
#include "OsgJoint.h"
#include "OsgPrismaticLimit.h"
#include "OsgStructure.h"
#include "OsgUserData.h"
#include "OsgUserDataVisitor.h"
#include "OsgDragger.h"
namespace OsgAnimatSim
{
namespace Environment
{
namespace ... | 33.075676 | 125 | 0.730021 | [
"geometry"
] |
ae4187dfe01f68a9781460c9348d68b9210cdd0d | 1,172 | cpp | C++ | libRay/Camera.cpp | RA-Kooi/Ray-Tracer | 8a4f133c1a7cc479f9f33819eb200d5a3ffa48d0 | [
"MIT"
] | 3 | 2019-03-22T02:15:18.000Z | 2019-11-12T08:12:57.000Z | libRay/Camera.cpp | RA-Kooi/Ray-Tracer | 8a4f133c1a7cc479f9f33819eb200d5a3ffa48d0 | [
"MIT"
] | null | null | null | libRay/Camera.cpp | RA-Kooi/Ray-Tracer | 8a4f133c1a7cc479f9f33819eb200d5a3ffa48d0 | [
"MIT"
] | null | null | null | #include "Camera.hpp"
#include <cmath>
namespace LibRay
{
using namespace Math;
Camera::Frustum::Frustum(
float fovY,
float aspectRatio,
float nearPlaneHeight,
float nearPlaneDistance,
float farPlaneHeight,
float farPlaneDistance)
: fovY(fovY)
, aspectRatio(aspectRatio)
, nearPlaneHeight(nearPlaneHeight)
, nea... | 18.030769 | 48 | 0.751706 | [
"transform"
] |
ae4a196bff9726f040ef6565bc58323d4198ecf1 | 15,091 | cpp | C++ | sedml/SedChange.cpp | gmarupilla/libSEDML | 3a2a207d78afccefb4389b65fea9eeb7e446d09e | [
"BSD-2-Clause"
] | 1 | 2020-10-21T01:41:14.000Z | 2020-10-21T01:41:14.000Z | sedml/SedChange.cpp | gmarupilla/libSEDML | 3a2a207d78afccefb4389b65fea9eeb7e446d09e | [
"BSD-2-Clause"
] | null | null | null | sedml/SedChange.cpp | gmarupilla/libSEDML | 3a2a207d78afccefb4389b65fea9eeb7e446d09e | [
"BSD-2-Clause"
] | null | null | null | /**
* @file: SedChange.cpp
* @brief: Implementation of the SedChange class
* @author: Frank T. Bergmann
*
* <!--------------------------------------------------------------------------
* This file is part of libSEDML. Please visit http://sed-ml.org for more
* information about SED-ML. The latest version of l... | 19.078382 | 170 | 0.689086 | [
"object",
"vector"
] |
ae5609e8c68461fbf3ea3411c8dbc543382f8ee1 | 369 | cpp | C++ | visual_studio/visual_studio/oxi/scene/object/mock_ground.cpp | collus-corn/oxi | 93e00c51c00f78cb3d09aa9c890e98c1a572af3a | [
"MIT"
] | null | null | null | visual_studio/visual_studio/oxi/scene/object/mock_ground.cpp | collus-corn/oxi | 93e00c51c00f78cb3d09aa9c890e98c1a572af3a | [
"MIT"
] | null | null | null | visual_studio/visual_studio/oxi/scene/object/mock_ground.cpp | collus-corn/oxi | 93e00c51c00f78cb3d09aa9c890e98c1a572af3a | [
"MIT"
] | null | null | null | #include "mock_ground.hpp"
#include "Dxlib.h"
#include "../i_position.hpp"
#include "object_kind.hpp"
#include "image_resources.hpp"
oxi::scene::object::MockGround::MockGround(std::shared_ptr<oxi::scene::IPosition> position)
:position_(position),
kind_(oxi::scene::object::ObjectKind::ground)
{
image_ = LoadGraph(ox... | 30.75 | 91 | 0.753388 | [
"object"
] |
ae76b4e8360afbc965209ea326b0591f8abd9cd6 | 2,806 | cpp | C++ | Quadtree/main.cpp | kgomathi2910/Quad-Trees | 70059b66a93a9491f435c99d2cd811e0e0df3337 | [
"MIT"
] | null | null | null | Quadtree/main.cpp | kgomathi2910/Quad-Trees | 70059b66a93a9491f435c99d2cd811e0e0df3337 | [
"MIT"
] | null | null | null | Quadtree/main.cpp | kgomathi2910/Quad-Trees | 70059b66a93a9491f435c99d2cd811e0e0df3337 | [
"MIT"
] | null | null | null | #include<iostream>
#include <SFML/Graphics.hpp>
#include"Point.h"
#include"Quadtree.h"
using namespace std;
using namespace sf; //For SFML functions
#define SCREEN_WIDTH 600
#define SCREEN_HEIGHT 600
#define MAXIMUM_CAPACITY 4
int main()
{
RenderWindow window(sf::VideoMode(SCREEN_WIDTH, SCREEN_HEIGHT), "Collision v... | 39.521127 | 121 | 0.597648 | [
"shape",
"vector"
] |
ae8440323c86eeb8de455a8a0b28771d4bdf9877 | 8,187 | cpp | C++ | src/main.cpp | Technica-Corporation/Speech_Recognition-Maixduino | 37dcc532fd6c855b92273f8713c3006116de39cc | [
"Apache-2.0"
] | 15 | 2019-07-10T09:07:53.000Z | 2022-02-08T18:41:06.000Z | src/main.cpp | Technica-Corporation/Speech_Recognition-Maixduino | 37dcc532fd6c855b92273f8713c3006116de39cc | [
"Apache-2.0"
] | 1 | 2021-04-26T17:57:21.000Z | 2021-04-26T17:57:21.000Z | src/main.cpp | Technica-Corporation/Speech_Recognition-Maixduino | 37dcc532fd6c855b92273f8713c3006116de39cc | [
"Apache-2.0"
] | 6 | 2019-07-10T09:07:54.000Z | 2021-09-14T22:48:24.000Z | #include <Arduino.h>
#include <Sipeed_ST7789.h>
/*
I added input parameters to Maix_Speech_Recognition.h's begin(int pin0, int pin1, int, pin2)
This allows you to specify the pins to use as I was trying to get the one dock's built-in mic to work
Additionally, the default data0 pin in the code did not... | 36.066079 | 107 | 0.567485 | [
"model"
] |
ae8e3fecfd0273a9c7000e4d1167099913fde0ea | 1,789 | hpp | C++ | util/std.hpp | kindone/cppproptest | db3cace33af7914d6d2b65945baa5554da281725 | [
"MIT"
] | 1 | 2021-06-19T05:40:33.000Z | 2021-06-19T05:40:33.000Z | util/std.hpp | kindone/cppproptest | db3cace33af7914d6d2b65945baa5554da281725 | [
"MIT"
] | null | null | null | util/std.hpp | kindone/cppproptest | db3cace33af7914d6d2b65945baa5554da281725 | [
"MIT"
] | null | null | null | #pragma once
#include <list>
#include <vector>
#include <set>
#include <map>
#include <tuple>
#include <type_traits>
#include <initializer_list>
#include <functional>
#include <utility>
#include <memory>
#include <string>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <exception>
#include <stdexcep... | 17.712871 | 36 | 0.761319 | [
"vector",
"transform"
] |
ae8f57bb8eef8d4971e0bf6fed94a3f6ee5e1379 | 2,383 | cpp | C++ | examples/tigre/WaveFrontReader.cpp | amecky/diesel | 23647464f3587fb60a5f504f7103da72f2cda3f6 | [
"MIT"
] | 1 | 2017-09-28T19:39:57.000Z | 2017-09-28T19:39:57.000Z | examples/tigre/WaveFrontReader.cpp | amecky/diesel | 23647464f3587fb60a5f504f7103da72f2cda3f6 | [
"MIT"
] | null | null | null | examples/tigre/WaveFrontReader.cpp | amecky/diesel | 23647464f3587fb60a5f504f7103da72f2cda3f6 | [
"MIT"
] | null | null | null | #include "WaveFrontReader.h"
#include <fstream>
#include <vector>
int WaveFrontReader::load(const char * fileName, const WaveFrontFormat& format, ds::vec3* positions, ds::vec2* uvs, ds::vec3* normals, ds::Color* colors,int max) {
std::ifstream file(fileName);
if (!file) {
return -1;
}
char cmd[256] = { 0 };
std... | 20.543103 | 163 | 0.49979 | [
"vector"
] |
ae9149ab5c2ee7d66811da21bc841ef1e9c56e60 | 1,946 | cpp | C++ | CacheFile.cpp | LaszloAshin/oneKpaq | 93aaebfd7933a385f4f95d173ee7e03232c9a453 | [
"BSD-2-Clause"
] | 29 | 2018-01-05T22:14:27.000Z | 2022-02-17T21:51:44.000Z | CacheFile.cpp | LaszloAshin/oneKpaq | 93aaebfd7933a385f4f95d173ee7e03232c9a453 | [
"BSD-2-Clause"
] | 1 | 2021-03-21T15:03:38.000Z | 2021-03-21T15:03:38.000Z | CacheFile.cpp | LaszloAshin/oneKpaq | 93aaebfd7933a385f4f95d173ee7e03232c9a453 | [
"BSD-2-Clause"
] | 8 | 2018-08-16T04:32:12.000Z | 2022-02-24T14:31:41.000Z | /* Copyright (C) Teemu Suutari */
#include "onekpaq_common.h"
#include "CacheFile.hpp"
void CacheFile::clear(uint numBlocks)
{
_numBlocks=numBlocks;
_combine.clear();
_header.clear();
}
bool CacheFile::readFile(const std::string &fileName)
{
bool ret=false;
std::ifstream file(fileName.c_str(),std::ios::in|std:... | 22.367816 | 101 | 0.693217 | [
"vector"
] |
ae979dce54f0a7fa250f0a65216c88ffb7b17aba | 655 | cpp | C++ | 101/vectors/vector_find_first_item.cpp | hariharanragothaman/Learning-STL | 7e5f58083212d04b93159d44e1812069171aa349 | [
"MIT"
] | 2 | 2021-04-21T07:59:45.000Z | 2021-05-13T05:53:00.000Z | 101/vectors/vector_find_first_item.cpp | hariharanragothaman/Learning-STL | 7e5f58083212d04b93159d44e1812069171aa349 | [
"MIT"
] | null | null | null | 101/vectors/vector_find_first_item.cpp | hariharanragothaman/Learning-STL | 7e5f58083212d04b93159d44e1812069171aa349 | [
"MIT"
] | 1 | 2021-04-17T15:32:18.000Z | 2021-04-17T15:32:18.000Z | #include "../../headers.h"
int main()
{
vector<int> temp {5, 3, 7, 9, 4};
// First item that satisfies the condition
auto lambda = [](int i) {return i > 7;};
vector<int>::iterator it = find_if(temp.begin(), temp.end(), lambda);
int first_element_satisfying_condition = *it;
cout << "The result ... | 34.473684 | 78 | 0.662595 | [
"vector"
] |
aea4a0043d7486d9494120b9872e180dc51e1696 | 8,529 | cpp | C++ | multiview/multiview_cpp/src/perceive/cost-functions/disparity/strategies/triclops_disp.cpp | prcvlabs/multiview | 1a03e14855292967ffb0c0ec7fff855c5abbc9d2 | [
"Apache-2.0"
] | 5 | 2021-09-03T23:12:08.000Z | 2022-03-04T21:43:32.000Z | multiview/multiview_cpp/src/perceive/cost-functions/disparity/strategies/triclops_disp.cpp | prcvlabs/multiview | 1a03e14855292967ffb0c0ec7fff855c5abbc9d2 | [
"Apache-2.0"
] | 3 | 2021-09-08T02:57:46.000Z | 2022-02-26T05:33:02.000Z | multiview/multiview_cpp/src/perceive/cost-functions/disparity/strategies/triclops_disp.cpp | prcvlabs/multiview | 1a03e14855292967ffb0c0ec7fff855c5abbc9d2 | [
"Apache-2.0"
] | 2 | 2021-09-26T03:14:40.000Z | 2022-01-26T06:42:52.000Z |
#include "triclops_disp.hpp"
#include "perceive/foundation.hpp"
#include "perceive/utils/cuda-spec.hpp"
#include "perceive/utils/threads.hpp"
#include "perceive/utils/tick-tock.hpp"
// -------------------------------------------------------------------- TRICLOPS
#ifdef USE_TRICLOPS
#include <unistd.h>
#include "per... | 35.836134 | 80 | 0.566889 | [
"vector"
] |
001464f3da8b3b7044c813c8d5e5609e89816fd7 | 6,990 | hxx | C++ | ARCHIVE/BRAINSSurfaceTools/BRAINSSurfaceCommon/itkResampleQuadEdgeMeshFilter.hxx | pnlbwh/BRAINSTools | a2fe63ab5b795f03da140a4081d1fef6314dab95 | [
"Apache-2.0"
] | null | null | null | ARCHIVE/BRAINSSurfaceTools/BRAINSSurfaceCommon/itkResampleQuadEdgeMeshFilter.hxx | pnlbwh/BRAINSTools | a2fe63ab5b795f03da140a4081d1fef6314dab95 | [
"Apache-2.0"
] | null | null | null | ARCHIVE/BRAINSSurfaceTools/BRAINSSurfaceCommon/itkResampleQuadEdgeMeshFilter.hxx | pnlbwh/BRAINSTools | a2fe63ab5b795f03da140a4081d1fef6314dab95 | [
"Apache-2.0"
] | 1 | 2022-02-08T05:39:46.000Z | 2022-02-08T05:39:46.000Z | /*=========================================================================
*
* Copyright SINAPSE: Scalable Informatics for Neuroscience, Processing and Software Engineering
* The University of Iowa
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file excep... | 33.127962 | 116 | 0.693562 | [
"mesh"
] |
001df20690d70c30269175fe819c03aa010e5838 | 16,227 | cc | C++ | tests/test_interpreter.cc | unlink2/lasm | 3cacf44c218854f402ce022b9e223f5671125dbe | [
"MIT"
] | 1 | 2021-01-23T18:25:11.000Z | 2021-01-23T18:25:11.000Z | tests/test_interpreter.cc | unlink2/lasm | 3cacf44c218854f402ce022b9e223f5671125dbe | [
"MIT"
] | null | null | null | tests/test_interpreter.cc | unlink2/lasm | 3cacf44c218854f402ce022b9e223f5671125dbe | [
"MIT"
] | null | null | null | #include "interpreter.h"
#include "scanner.h"
#include "parser.h"
#include "instruction.h"
#include "instruction6502.h"
#include <memory>
#include "macros.h"
#include "test_interpreter.h"
using namespace lasm;
class TestCallback: public InterpreterCallback {
public:
virtual void onStatementExecuted(LasmO... | 49.172727 | 162 | 0.645098 | [
"object"
] |
001e40a39b8a5eb6be729c4ead9494cfd22b163f | 5,981 | cpp | C++ | test/test_gpusim.cpp | Mariewelt/gpusimilarity | ff4fbf3ef0761d35510b148f07943d2958e6e7a5 | [
"BSD-3-Clause"
] | 61 | 2018-09-06T06:48:05.000Z | 2022-03-25T15:40:02.000Z | test/test_gpusim.cpp | Mariewelt/gpusimilarity | ff4fbf3ef0761d35510b148f07943d2958e6e7a5 | [
"BSD-3-Clause"
] | 36 | 2018-05-22T12:55:31.000Z | 2020-10-04T14:05:27.000Z | test/test_gpusim.cpp | Mariewelt/gpusimilarity | ff4fbf3ef0761d35510b148f07943d2958e6e7a5 | [
"BSD-3-Clause"
] | 18 | 2018-06-21T17:35:23.000Z | 2022-03-28T09:24:52.000Z | #define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE gpusimilarity
#include <cstdlib>
#include <vector>
#include <boost/test/unit_test.hpp>
#include "calculation_functors.h"
#include "fingerprintdb_cuda.h"
#include "gpusim.h"
using namespace gpusim;
using std::vector;
using gpusim::GPUSimServer;
bool missing_cud... | 32.862637 | 79 | 0.652566 | [
"vector"
] |
00294e69e90d027c39ef025f846dffa7c23179b5 | 7,911 | cpp | C++ | project/doc/ant_simu_split.cpp | SummerOf15/maze_solver | 39de3663c7749c5a1788175889edcf93c4e56abf | [
"MIT"
] | null | null | null | project/doc/ant_simu_split.cpp | SummerOf15/maze_solver | 39de3663c7749c5a1788175889edcf93c4e56abf | [
"MIT"
] | null | null | null | project/doc/ant_simu_split.cpp | SummerOf15/maze_solver | 39de3663c7749c5a1788175889edcf93c4e56abf | [
"MIT"
] | null | null | null | #include <vector>
#include <iostream>
#include <random>
#include <stdio.h>
#include "labyrinthe.hpp"
#include "ant.hpp"
#include "pheromone.hpp"
# include "gui/context.hpp"
# include "gui/colors.hpp"
# include "gui/point.hpp"
# include "gui/segment.hpp"
# include "gui/triangle.hpp"
# include "gui/quad.hpp"
# include "g... | 37.671429 | 145 | 0.65036 | [
"vector"
] |
0038ffc73b1b49a9050714b8fc3b4d9121a47d04 | 9,681 | cpp | C++ | deprecate/tools/vpcachier/main.cpp | novatig/CubismUP_3D_old | 47f7dd5941d81853cfe879385080c7c2c68a9b71 | [
"MIT"
] | 2 | 2020-06-12T10:06:59.000Z | 2021-04-22T00:44:27.000Z | deprecate/tools/vpcachier/main.cpp | novatig/CubismUP_3D_old | 47f7dd5941d81853cfe879385080c7c2c68a9b71 | [
"MIT"
] | null | null | null | deprecate/tools/vpcachier/main.cpp | novatig/CubismUP_3D_old | 47f7dd5941d81853cfe879385080c7c2c68a9b71 | [
"MIT"
] | null | null | null | /*
* main.cpp
*
*
* Created by Diego Rossinelli on 3/27/13.
* Copyright 2013 ETH Zurich. All rights reserved.
*
*/
#include <iostream>
#include <string>
#include <mpi.h>
#include <numeric>
#include <ArgumentParser.h>
#include "Reader_WaveletCompression.h"
#include "WaveletTexture3D.h"
int main(int argc,... | 33.968421 | 169 | 0.641359 | [
"geometry",
"vector"
] |
0039a27e7bbe289ca1a69201813743d8674f7283 | 536 | hpp | C++ | src/ogl4/OpenGL4Mesh.hpp | LorenzoDiStefano/RenderLib | 72182ccb01edc0a0c5d7370e256f32aa5e1517d3 | [
"MIT"
] | null | null | null | src/ogl4/OpenGL4Mesh.hpp | LorenzoDiStefano/RenderLib | 72182ccb01edc0a0c5d7370e256f32aa5e1517d3 | [
"MIT"
] | null | null | null | src/ogl4/OpenGL4Mesh.hpp | LorenzoDiStefano/RenderLib | 72182ccb01edc0a0c5d7370e256f32aa5e1517d3 | [
"MIT"
] | null | null | null | #ifndef RENDERLIB_OPENGL4_MESH
#define RENDERLIB_OPENGL4_MESH
#pragma once
#include <RenderLib/IMesh.hpp>
#include <string>
#include "glad.h"
namespace RenderLib
{
class OpenGL4Mesh : public IMesh
{
public:
OpenGL4Mesh();
~OpenGL4Mesh();
void AddElements(const std::vector<float>& data, const uint32_t size... | 16.242424 | 81 | 0.731343 | [
"vector"
] |
003ac77e28ec2ca00c564e5056ef1567dae4358a | 3,610 | cpp | C++ | A5/a5.cpp | isaacrez/CSE250 | a27e1d56cae79b8af08d7d5837bcaa47281ebfe9 | [
"MIT"
] | null | null | null | A5/a5.cpp | isaacrez/CSE250 | a27e1d56cae79b8af08d7d5837bcaa47281ebfe9 | [
"MIT"
] | null | null | null | A5/a5.cpp | isaacrez/CSE250 | a27e1d56cae79b8af08d7d5837bcaa47281ebfe9 | [
"MIT"
] | null | null | null | // File: a5.cpp
// Isaac
// Rezey
// I AFFIRM THAT WHEN WORKING ON THIS ASSIGNMENT
// I WILL FOLLOW UB STUDENT CODE OF CONDUCT, AND
// I WILL NOT VIOLATE ACADEMIC INTEGRITY RULES
#include <iostream>
#include <fstream>
#include <algorithm>
#include <map>
#include <vector>
#include <string>
std::string comp(std::string... | 25.069444 | 104 | 0.599446 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.