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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bec27ea3ef18b955df25aad15de4b1b0f03d759e | 11,458 | cpp | C++ | tiled_plugin/gfm/gfmplugin.cpp | SirGFM/big-15 | dd41cd9483f7f2e8e27545e7e97340a1c1969bd6 | [
"Zlib"
] | 4 | 2015-04-14T14:34:57.000Z | 2019-10-14T00:16:52.000Z | tiled_plugin/gfm/gfmplugin.cpp | SirGFM/big-15 | dd41cd9483f7f2e8e27545e7e97340a1c1969bd6 | [
"Zlib"
] | null | null | null | tiled_plugin/gfm/gfmplugin.cpp | SirGFM/big-15 | dd41cd9483f7f2e8e27545e7e97340a1c1969bd6 | [
"Zlib"
] | 2 | 2016-04-21T16:22:31.000Z | 2019-11-08T14:05:37.000Z | /**
* GFM (proprietary) tiled plugin
*
* Based on the "CSV Tiled Plugin"
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any la... | 26.833724 | 79 | 0.51536 | [
"object"
] |
bec3649f2841c0d1af2408430403ce05b1aa624d | 6,921 | cpp | C++ | libs/ofxLineaDeTiempo/src/View/ModalView.cpp | roymacdonald/ofxLineaDeTiempo | 1a080c7d5533dc9b0e587bd1557506fe288f05e8 | [
"MIT"
] | 31 | 2020-04-29T06:11:54.000Z | 2021-11-10T19:14:09.000Z | libs/ofxLineaDeTiempo/src/View/ModalView.cpp | roymacdonald/ofxLineaDeTiempo | 1a080c7d5533dc9b0e587bd1557506fe288f05e8 | [
"MIT"
] | 11 | 2020-07-27T17:12:05.000Z | 2021-12-01T16:33:18.000Z | libs/ofxLineaDeTiempo/src/View/ModalView.cpp | roymacdonald/ofxLineaDeTiempo | 1a080c7d5533dc9b0e587bd1557506fe288f05e8 | [
"MIT"
] | null | null | null | //
// ModalView.cpp
// example-basic
//
// Created by Roy Macdonald on 8/5/20.
//
#include "ofGraphics.h"
#include "LineaDeTiempo/View/ModalView.h"
#include "LineaDeTiempo/View/TimelineDocument.h"
#include "LineaDeTiempo/Utils/ConstVars.h"
#include "ofxTimecode.h"
namespace ofx {
namespace LineaDeTiempo {
Abstrac... | 17.746154 | 143 | 0.691519 | [
"shape"
] |
bec96148cab3ab2553214927fbc2631b59ae8f79 | 1,924 | hpp | C++ | lib/libstereo/src/dsbase.hpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | 4 | 2020-12-28T15:29:15.000Z | 2021-06-27T12:37:15.000Z | lib/libstereo/src/dsbase.hpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | null | null | null | lib/libstereo/src/dsbase.hpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | 2 | 2021-01-13T05:28:39.000Z | 2021-05-04T03:37:11.000Z | #ifndef _FTL_LIBSTEREO_DSBASE_HPP_
#define _FTL_LIBSTEREO_DSBASE_HPP_
#include <cstdint>
#include <cuda_runtime.h>
#include <type_traits>
namespace impl {
template <typename T>
struct DSImplBase {
typedef T Type;
static_assert(std::is_arithmetic<T>::value, "Cost type is not numeric");
//DSImplBase(int w, in... | 29.151515 | 114 | 0.725572 | [
"object",
"3d"
] |
beda3643c994052be409723c3d47fd682895fe4a | 20,330 | cpp | C++ | source/houaud/test/hou/aud/test_wav_file_in.cpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | 2 | 2018-04-12T20:59:20.000Z | 2018-07-26T16:04:07.000Z | source/houaud/test/hou/aud/test_wav_file_in.cpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | source/houaud/test/hou/aud/test_wav_file_in.cpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | // Houzi Game Engine
// Copyright (c) 2018 Davide Corradi
// Licensed under the MIT license.
#include "hou/test.hpp"
#include "hou/aud/test_data.hpp"
#include "hou/aud/aud_exceptions.hpp"
#include "hou/aud/wav_file_in.hpp"
#include "hou/sys/sys_exceptions.hpp"
using namespace hou;
using namespace testing;
namesp... | 28.796034 | 80 | 0.757501 | [
"vector"
] |
bee2ee4ec5b854dda7324e4abdef34e9565f3d59 | 1,124 | hpp | C++ | tcpp/minion2/minion/system/minlib/map.hpp | Behrouz-Babaki/TCPP-chuffed | d832b44690914ef4b73d71bc7e565efb98e42937 | [
"MIT"
] | 1 | 2021-09-09T13:03:02.000Z | 2021-09-09T13:03:02.000Z | tcpp/minion2/minion/system/minlib/map.hpp | Behrouz-Babaki/TCPP-chuffed | d832b44690914ef4b73d71bc7e565efb98e42937 | [
"MIT"
] | null | null | null | tcpp/minion2/minion/system/minlib/map.hpp | Behrouz-Babaki/TCPP-chuffed | d832b44690914ef4b73d71bc7e565efb98e42937 | [
"MIT"
] | null | null | null | #ifndef MAPPER_HPP_CD
#define MAPPER_HPP_CD
#include "variadic.hpp"
#include <vector>
#include <set>
#include "multdim_container.hpp"
template <typename Map, typename V>
std::vector<typename ObjectResult<Map, V>::type> doMap(Map m, const std::vector<V>& v) {
std::vector<typename ObjectResult<Map, V>::type> vec;
v... | 29.578947 | 88 | 0.684164 | [
"vector"
] |
bee42364d89aa5190e2ee31fd9f2bad61841cfb2 | 718 | cpp | C++ | Discrete-simulation/QRandom-distribution-generator/ParallelSimulator.cpp | JoseZancanaro/CienciaDaComputacao | 0e08d9a3fd17cba38ef9d09f38026e9417b5536a | [
"MIT"
] | null | null | null | Discrete-simulation/QRandom-distribution-generator/ParallelSimulator.cpp | JoseZancanaro/CienciaDaComputacao | 0e08d9a3fd17cba38ef9d09f38026e9417b5536a | [
"MIT"
] | 1 | 2022-02-13T22:22:59.000Z | 2022-02-13T22:22:59.000Z | Discrete-simulation/QRandom-distribution-generator/ParallelSimulator.cpp | JoseZancanaro/CienciaDaComputacao | 0e08d9a3fd17cba38ef9d09f38026e9417b5536a | [
"MIT"
] | null | null | null | #include "ParallelSimulator.hpp"
ParallelSimulator::ParallelSimulator(simulation::Model model, simulation::NaturalNumber sleepTime)
: model(model), sleepTime(sleepTime)
{}
auto ParallelSimulator::simulate() -> void {
while (!model.state.over) {
model.state = simulation::simulate(model.state, model.con... | 24.758621 | 98 | 0.681058 | [
"model"
] |
bee9d00502481a2c2286e367d2846bb5354517e7 | 3,096 | cpp | C++ | C++/constructBSTFromInOrderAndPreOrder.cpp | MariaMich/Hacktoberfest2019-2 | a1a1756fa4594ab9965405e0361a5125b1d4dd48 | [
"MIT"
] | null | null | null | C++/constructBSTFromInOrderAndPreOrder.cpp | MariaMich/Hacktoberfest2019-2 | a1a1756fa4594ab9965405e0361a5125b1d4dd48 | [
"MIT"
] | null | null | null | C++/constructBSTFromInOrderAndPreOrder.cpp | MariaMich/Hacktoberfest2019-2 | a1a1756fa4594ab9965405e0361a5125b1d4dd48 | [
"MIT"
] | null | null | null | //A program to construct a binary tree, given the inorder and preorder traversals of the tree.
# include <iostream>
# include <vector>
# include <map>
using namespace std;
//Structure for binary tree
struct Node
{
int Data;
Node *Left, *Right;
Node(int x)
{
Data = x;
Left = Right = NU... | 32.93617 | 157 | 0.66053 | [
"vector"
] |
beec8cce4af5d76875edee02f274126279ba048b | 3,480 | cpp | C++ | subcommands/unique.cpp | opa-oz/atomic-processors | a2aa72671fc1a206bbbb064ea4c1a99455bbee36 | [
"MIT"
] | null | null | null | subcommands/unique.cpp | opa-oz/atomic-processors | a2aa72671fc1a206bbbb064ea4c1a99455bbee36 | [
"MIT"
] | null | null | null | subcommands/unique.cpp | opa-oz/atomic-processors | a2aa72671fc1a206bbbb064ea4c1a99455bbee36 | [
"MIT"
] | null | null | null | #include <iostream>
#include <list>
#include <vector>
#include <unordered_set>
#include "../utils/string.h"
#include "../utils/read.h"
#include "../utils/write.h"
#include "../utils/json.h"
#include "unique.h"
namespace AtomicProcessors::Unique {
void process(const string &input_path, const Filetype &filetype, c... | 35.876289 | 115 | 0.55 | [
"vector",
"transform"
] |
beeefb540f89084b200fb91c3d32889ee61718d7 | 2,589 | cpp | C++ | 621.task_scheduler.cpp | liangwt/leetcode | 8f279343e975666a63ee531228c6836f20f199ca | [
"Apache-2.0"
] | 5 | 2019-09-12T05:23:44.000Z | 2021-11-15T11:19:39.000Z | 621.task_scheduler.cpp | liangwt/leetcode | 8f279343e975666a63ee531228c6836f20f199ca | [
"Apache-2.0"
] | 18 | 2019-09-23T13:11:06.000Z | 2019-11-09T11:20:17.000Z | 621.task_scheduler.cpp | liangwt/leetcode | 8f279343e975666a63ee531228c6836f20f199ca | [
"Apache-2.0"
] | null | null | null | /*
* Given a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks. Tasks could be done without original order. Each task could be done in one interval. For each interval, CPU could finish one task or just be idle.
*
* However, there is a n... | 23.752294 | 289 | 0.545384 | [
"vector"
] |
bef7321e46a67a5255ed3fb48d321449b6e55c7b | 2,459 | hxx | C++ | opencascade/ShapeExtend_BasicMsgRegistrator.hxx | valgur/OCP | 2f7d9da73a08e4ffe80883614aedacb27351134f | [
"Apache-2.0"
] | 117 | 2020-03-07T12:07:05.000Z | 2022-03-27T07:35:22.000Z | opencascade/ShapeExtend_BasicMsgRegistrator.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 66 | 2019-12-20T16:07:36.000Z | 2022-03-15T21:56:10.000Z | opencascade/ShapeExtend_BasicMsgRegistrator.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 76 | 2020-03-16T01:47:46.000Z | 2022-03-21T16:37:07.000Z | // Created on: 2000-01-28
// Created by: data exchange team
// Copyright (c) 2000-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2... | 29.27381 | 138 | 0.785279 | [
"object",
"shape"
] |
8305bf27110b938965b3eab5b0056e0d155836d0 | 17,991 | cpp | C++ | src/BaseSpline.cpp | BR903/percolator | 2d9315699cf3309421b83c4c21ce8275ede87089 | [
"Apache-2.0"
] | 71 | 2015-03-30T17:22:52.000Z | 2022-01-01T14:19:23.000Z | src/BaseSpline.cpp | BR903/percolator | 2d9315699cf3309421b83c4c21ce8275ede87089 | [
"Apache-2.0"
] | 190 | 2015-01-27T16:18:58.000Z | 2022-03-31T16:49:58.000Z | src/BaseSpline.cpp | BR903/percolator | 2d9315699cf3309421b83c4c21ce8275ede87089 | [
"Apache-2.0"
] | 45 | 2015-04-13T13:42:35.000Z | 2021-12-17T08:26:21.000Z | /*******************************************************************************
Copyright 2006-2012 Lukas Käll <lukas.kall@scilifelab.se>
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:... | 31.563158 | 130 | 0.518092 | [
"vector",
"transform"
] |
830943e98e2be25a17854b7fa92ab8dbefccba92 | 2,130 | hpp | C++ | src/ccoold/protocol.hpp | metthal/ccool | 5b26208fbd61c0f115e37fbbce57716ceaed398b | [
"MIT"
] | null | null | null | src/ccoold/protocol.hpp | metthal/ccool | 5b26208fbd61c0f115e37fbbce57716ceaed398b | [
"MIT"
] | null | null | null | src/ccoold/protocol.hpp | metthal/ccool | 5b26208fbd61c0f115e37fbbce57716ceaed398b | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <tuple>
#include "buffer.hpp"
#include "interfaces/device_interface.hpp"
#include "types.hpp"
namespace ccool {
template <Endian DataEndian, typename OpcodeTypeT>
class Protocol
{
public:
static constexpr Endian endian = DataEndian;
using OpcodeType = OpcodeTypeT;
Protoco... | 37.368421 | 166 | 0.76338 | [
"vector"
] |
830c0c33726b875229555f16dc1ef6d285f0e155 | 1,826 | hpp | C++ | src/lola/iface/include/iface_wpatt_lola.hpp | am-lola/lepp3 | 7f92ce61bccad984e18ce86da0d8a1b9c48feb65 | [
"MIT"
] | 6 | 2017-01-16T10:41:56.000Z | 2020-10-09T09:13:30.000Z | src/lola/iface/include/iface_wpatt_lola.hpp | am-lola/lepp3 | 7f92ce61bccad984e18ce86da0d8a1b9c48feb65 | [
"MIT"
] | null | null | null | src/lola/iface/include/iface_wpatt_lola.hpp | am-lola/lepp3 | 7f92ce61bccad984e18ce86da0d8a1b9c48feb65 | [
"MIT"
] | 4 | 2015-08-07T13:07:32.000Z | 2021-08-03T03:18:33.000Z | /*!
@file wpatt_data_johnnie.hpp
time sequence data output from walking pattern generator
Copyright (C) Institute of Applied Mechanics, TU-Muenchen
All rights reserved.
*/
#ifndef __IFACE_WPATT_LOLA_HPP__
#define __IFACE_WPATT_LOLA_HPP__
#include <stdint.h>
#include <begin_pack.h>
namespace am2b_i... | 22.54321 | 60 | 0.635268 | [
"model"
] |
23fc54e794ff141f662b45a48fe1321a7c001f9a | 3,090 | cpp | C++ | filtering/OrientationPredictor.cpp | AlesMaver/ExpansionHunter | 274903d26a33cfbc546aac98c85bbfe51701fd3b | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | filtering/OrientationPredictor.cpp | AlesMaver/ExpansionHunter | 274903d26a33cfbc546aac98c85bbfe51701fd3b | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | filtering/OrientationPredictor.cpp | AlesMaver/ExpansionHunter | 274903d26a33cfbc546aac98c85bbfe51701fd3b | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | //
// Expansion Hunter
// Copyright 2016-2019 Illumina, Inc.
// All rights reserved.
//
// Author: Egor Dolzhenko <edolzhenko@illumina.com>
//
// 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... | 26.410256 | 110 | 0.705825 | [
"vector",
"transform"
] |
23fe968e1e61e80c44762f8f1f46b4fd64825cc3 | 18,573 | cpp | C++ | src/RigidBody.cpp | AndresTraks/BulletSharp | c277666667f91c58191f4cfa97f117053de679ef | [
"MIT"
] | 245 | 2015-01-02T14:11:26.000Z | 2022-03-18T08:56:36.000Z | src/RigidBody.cpp | AndresTraks/BulletSharp | c277666667f91c58191f4cfa97f117053de679ef | [
"MIT"
] | 50 | 2015-01-04T22:32:21.000Z | 2021-06-08T20:26:24.000Z | src/RigidBody.cpp | AndresTraks/BulletSharp | c277666667f91c58191f4cfa97f117053de679ef | [
"MIT"
] | 69 | 2015-04-03T15:38:44.000Z | 2022-01-20T14:27:30.000Z | #include "StdAfx.h"
#include "BroadphaseProxy.h"
#include "CollisionShape.h"
#include "DefaultMotionState.h"
#include "MotionState.h"
#include "RigidBody.h"
#ifndef DISABLE_CONSTRAINTS
#include "TypedConstraint.h"
#endif
RigidBodyConstructionInfo::~RigidBodyConstructionInfo()
{
this->!RigidBodyConstruct... | 27.034934 | 174 | 0.77575 | [
"vector"
] |
9b04b1ff3f668b624163f7e3a6f57bf397446571 | 1,034 | cpp | C++ | Clase_17_DynamicProgramming/minimum_path_sum.cpp | EdgarEspinozaPE/ProgramacionCompetitivaA | 53c3eb3e2bc9f1dd1033e0c24b0cb24f96def1e9 | [
"BSD-3-Clause"
] | null | null | null | Clase_17_DynamicProgramming/minimum_path_sum.cpp | EdgarEspinozaPE/ProgramacionCompetitivaA | 53c3eb3e2bc9f1dd1033e0c24b0cb24f96def1e9 | [
"BSD-3-Clause"
] | null | null | null | Clase_17_DynamicProgramming/minimum_path_sum.cpp | EdgarEspinozaPE/ProgramacionCompetitivaA | 53c3eb3e2bc9f1dd1033e0c24b0cb24f96def1e9 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
using namespace std;
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
int minPathSum(vector<vector<int>>& grid) {
int rows = grid.size();
int cols = grid[0].size();
vector<vector<int>> memo(rows, vector<int>(cols, 0));
int i... | 24.619048 | 75 | 0.455513 | [
"vector"
] |
9b08b6eda31beee2ef865979ffff559d237a6610 | 24,012 | cpp | C++ | production_apps/BEM4I/Tests/testIntegratorLaplace.cpp | readex-eu/readex-apps | 38493b11806c306f4e8f1b7b2d97764b45fac8e2 | [
"BSD-3-Clause"
] | 2 | 2020-11-25T13:10:11.000Z | 2021-03-15T20:26:35.000Z | production_apps/BEM4I/Tests/testIntegratorLaplace.cpp | readex-eu/readex-apps | 38493b11806c306f4e8f1b7b2d97764b45fac8e2 | [
"BSD-3-Clause"
] | null | null | null | production_apps/BEM4I/Tests/testIntegratorLaplace.cpp | readex-eu/readex-apps | 38493b11806c306f4e8f1b7b2d97764b45fac8e2 | [
"BSD-3-Clause"
] | 1 | 2018-09-30T19:04:38.000Z | 2018-09-30T19:04:38.000Z | #include "catch.hpp"
#include "../Settings.h"
#include "../FullMatrix.h"
#include "../SurfaceMesh3D.h"
#include "../BESpace.h"
#include "../BEBilinearFormLaplace1Layer.h"
#include "../BEBilinearFormLaplace2Layer.h"
#include "../BEBilinearFormLaplaceHypersingular.h"
using namespace bem4i;
TEST_CASE( "Element system m... | 37.636364 | 75 | 0.618066 | [
"mesh"
] |
9b1e6622c9f7a8bc289468c7609227d827dcde5a | 7,199 | cxx | C++ | src/main.cxx | Alabuta/RaytracingInOneWeekend | 38efac0d003358003294994bcffbef35d68f7253 | [
"MIT"
] | null | null | null | src/main.cxx | Alabuta/RaytracingInOneWeekend | 38efac0d003358003294994bcffbef35d68f7253 | [
"MIT"
] | null | null | null | src/main.cxx | Alabuta/RaytracingInOneWeekend | 38efac0d003358003294994bcffbef35d68f7253 | [
"MIT"
] | null | null | null | #include <optional>
#include <execution>
#include <variant>
#include <string_view>
using namespace std::string_view_literals;
#include <fstream>
#include <filesystem>
namespace fs = std::filesystem;
#include "main.hxx"
#include "math.hxx"
#include "raytracer.hxx"
#include "camera.hxx"
extern void cuda_impl(std::ui... | 32.722727 | 142 | 0.606195 | [
"vector"
] |
9b29756ec93672ad1548b443250d14b7dc751d4a | 2,738 | cc | C++ | src/perception/src/deproject_pixel_to_point.cc | camkisailus/Aerotech_Robot_Arm | 4bf0ddd9b8a7b0d452d75eacd797e630bfe6f670 | [
"MIT"
] | 2 | 2020-12-01T03:33:20.000Z | 2020-12-07T16:35:34.000Z | src/perception/src/deproject_pixel_to_point.cc | camkisailus/Aerotech_Robot_Arm | 4bf0ddd9b8a7b0d452d75eacd797e630bfe6f670 | [
"MIT"
] | null | null | null | src/perception/src/deproject_pixel_to_point.cc | camkisailus/Aerotech_Robot_Arm | 4bf0ddd9b8a7b0d452d75eacd797e630bfe6f670 | [
"MIT"
] | null | null | null | /*
This code deprojects pixels into points in 3D space using basic stereo vision techniques. This is integral in the autonomy stack as it takes pixel detections as an input and outputs points in the camera's coordinate frame.
*/
#include <ros/ros.h>
#include <tf/transform_listener.h>
#include <sensor_msgs/CameraInfo.... | 35.558442 | 222 | 0.691381 | [
"3d"
] |
9b2adf294a82912994c72faa9f5ef75276215f96 | 4,088 | cpp | C++ | components/renderers/cpp/src/assimp_scene.cpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | 4 | 2020-12-28T15:29:15.000Z | 2021-06-27T12:37:15.000Z | components/renderers/cpp/src/assimp_scene.cpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | null | null | null | components/renderers/cpp/src/assimp_scene.cpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | 2 | 2021-01-13T05:28:39.000Z | 2021-05-04T03:37:11.000Z | #include <ftl/render/assimp_scene.hpp>
#include <assimp/Importer.hpp>
#include <assimp/postprocess.h>
#include <assimp/scene.h>
#include <opencv2/imgproc.hpp>
#include <opencv2/imgcodecs.hpp>
using ftl::render::AssimpScene;
using std::string;
static std::string getBasePath(const std::string& path) {
size_t pos = p... | 30.736842 | 123 | 0.66316 | [
"mesh",
"render",
"model"
] |
9b2e475a8632078f5cec278f430577cefeb79299 | 1,906 | cpp | C++ | window/modeSelfTest.cpp | ndrarmstrong/led-window | c9aa8197f79ac1f0cb21ed5a169d4a35e288d7c7 | [
"MIT"
] | null | null | null | window/modeSelfTest.cpp | ndrarmstrong/led-window | c9aa8197f79ac1f0cb21ed5a169d4a35e288d7c7 | [
"MIT"
] | null | null | null | window/modeSelfTest.cpp | ndrarmstrong/led-window | c9aa8197f79ac1f0cb21ed5a169d4a35e288d7c7 | [
"MIT"
] | null | null | null | #include "modeSelfTest.h"
void ModeSelfTest::onStart()
{
phase = 0;
ticker.attach_ms_scheduled(750, std::bind(&ModeSelfTest::render, this));
}
void ModeSelfTest::onStop()
{
ticker.detach();
}
void ModeSelfTest::render()
{
switch (phase)
{
case 0:
Leds::get().showTop(255, 0, 0);
... | 23.530864 | 76 | 0.498426 | [
"render"
] |
9b3c2a62993afe92f5120668e2ee43a8f99b70a9 | 2,110 | hpp | C++ | client/lib/controller_impl.hpp | sssssssuzuki/autd3-library-software | 9f8382d099a38c0feb48176896db2f4db251ce40 | [
"MIT"
] | null | null | null | client/lib/controller_impl.hpp | sssssssuzuki/autd3-library-software | 9f8382d099a38c0feb48176896db2f4db251ce40 | [
"MIT"
] | null | null | null | client/lib/controller_impl.hpp | sssssssuzuki/autd3-library-software | 9f8382d099a38c0feb48176896db2f4db251ce40 | [
"MIT"
] | null | null | null | // File: controller_impl.hpp
// Project: lib
// Created Date: 11/10/2020
// Author: Shun Suzuki
// -----
// Last Modified: 26/12/2020
// Modified By: Shun Suzuki (suzuki@hapis.k.u-tokyo.ac.jp)
// -----
// Copyright (c) 2020 Hapis Lab. All rights reserved.
//
#pragma once
#include <memory>
#include <vector>
#include ... | 30.57971 | 73 | 0.762559 | [
"geometry",
"vector"
] |
9b49635a8d78d1d6a13f7734c2928b310a5e0589 | 351 | cpp | C++ | CSC8503/GameTech/Trigger.cpp | KragusGit/Advanced-Game-Tech | db64f50f933468738322e2b97c2723a8f38bba67 | [
"Apache-2.0"
] | null | null | null | CSC8503/GameTech/Trigger.cpp | KragusGit/Advanced-Game-Tech | db64f50f933468738322e2b97c2723a8f38bba67 | [
"Apache-2.0"
] | null | null | null | CSC8503/GameTech/Trigger.cpp | KragusGit/Advanced-Game-Tech | db64f50f933468738322e2b97c2723a8f38bba67 | [
"Apache-2.0"
] | null | null | null | #include "Trigger.h"
void NCL::CSC8503::Trigger::ExecuteOnEnter(GameObject* object) {
for (int i = 0; i < OnEnter.size(); i++) {
if (OnEnter[i] != nullptr)
OnEnter[i](object);
}
}
void NCL::CSC8503::Trigger::ExecuteOnExit(GameObject* object) {
for (int i = 0; i < OnExit.size(); i++) {
if (OnExit[i] != nullp... | 21.9375 | 64 | 0.618234 | [
"object"
] |
9b4aa44f63fcfb5abe4da190d582b3d8d26e82b2 | 10,115 | cpp | C++ | MInteraction/SimulTimer.cpp | vanch3d/DEMIST | f49e3409cf5eca8df6b03f1a1bbc0f9f4ca44521 | [
"MIT"
] | null | null | null | MInteraction/SimulTimer.cpp | vanch3d/DEMIST | f49e3409cf5eca8df6b03f1a1bbc0f9f4ca44521 | [
"MIT"
] | null | null | null | MInteraction/SimulTimer.cpp | vanch3d/DEMIST | f49e3409cf5eca8df6b03f1a1bbc0f9f4ca44521 | [
"MIT"
] | 1 | 2021-01-11T09:52:21.000Z | 2021-01-11T09:52:21.000Z | // SimulTimer.cpp : implementation file
//
#include "stdafx.h"
#include "Simul.h"
#include "LearnerTrace.h"
#include <MInstruction\LearningUnit.h>
#include "simulDoc.h"
#include "SimulTimer.h"
#include <Prefs\Pref.h>
#include "Format.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[]... | 23.633178 | 105 | 0.671181 | [
"object"
] |
9b5404f9f269e3640fc5b2cc199337ada8741743 | 9,450 | hpp | C++ | include/common/simd_data_types.hpp | flwende/simd_benchmarks | 29a00d4b8e7a9a6824b7b8f17424d3a6aa448857 | [
"BSD-2-Clause"
] | 3 | 2016-10-17T23:35:05.000Z | 2021-05-27T11:35:55.000Z | include/common/simd_data_types.hpp | flwende/simd_benchmarks | 29a00d4b8e7a9a6824b7b8f17424d3a6aa448857 | [
"BSD-2-Clause"
] | null | null | null | include/common/simd_data_types.hpp | flwende/simd_benchmarks | 29a00d4b8e7a9a6824b7b8f17424d3a6aa448857 | [
"BSD-2-Clause"
] | 2 | 2018-06-16T20:11:55.000Z | 2020-01-31T10:11:42.000Z | // Copyright (c) 2016 Florian Wende (flwende@gmail.com)
//
// Distributed under the BSD 2-clause Software License
// (See accompanying file LICENSE)
#if !defined(SIMD_DATA_TYPES_HPP)
#define SIMD_DATA_TYPES_HPP
#include <cmath>
#include <cstdint>
#include <immintrin.h>
#if defined(__MIC__) || defined(__AVX512F__)
#... | 48.214286 | 146 | 0.779048 | [
"vector"
] |
9b578637343ddba82dff886e97200214885ad3f3 | 1,358 | cc | C++ | open_spiel/algorithms/alpha_zero_torch/negamax.cc | zfahmad/open_spiel | cb30d812a31f03e6550cfa1141750147b9481693 | [
"Apache-2.0"
] | null | null | null | open_spiel/algorithms/alpha_zero_torch/negamax.cc | zfahmad/open_spiel | cb30d812a31f03e6550cfa1141750147b9481693 | [
"Apache-2.0"
] | null | null | null | open_spiel/algorithms/alpha_zero_torch/negamax.cc | zfahmad/open_spiel | cb30d812a31f03e6550cfa1141750147b9481693 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <vector>
#include <iterator>
#include <tuple>
#include "open_spiel/algorithms/alpha_zero_torch/vpnet.h"
#include "open_spiel/games/connect_four.h"
namespace open_spiel {
namespace algorithms {
namespace torch_az {
std::tuple<int, int> negamax(std::unique_ptr<open_spiel::State> &root, in... | 23.824561 | 89 | 0.666421 | [
"vector"
] |
9b5f6bf7b9aa0b854112161391857e2fbb15feca | 503 | cpp | C++ | 02_Programming_Fundamentals/06_Programming_Fundamentals_CPP/02_FunctionsArraysAndVectors/Exercise_2019/06_triplesOfLatinLetters.cpp | Knightwalker/Knowledgebase | 00c6dea5e52c0d2b0fe0dc3b7b5c298d445f0161 | [
"MIT"
] | null | null | null | 02_Programming_Fundamentals/06_Programming_Fundamentals_CPP/02_FunctionsArraysAndVectors/Exercise_2019/06_triplesOfLatinLetters.cpp | Knightwalker/Knowledgebase | 00c6dea5e52c0d2b0fe0dc3b7b5c298d445f0161 | [
"MIT"
] | null | null | null | 02_Programming_Fundamentals/06_Programming_Fundamentals_CPP/02_FunctionsArraysAndVectors/Exercise_2019/06_triplesOfLatinLetters.cpp | Knightwalker/Knowledgebase | 00c6dea5e52c0d2b0fe0dc3b7b5c298d445f0161 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <ctype.h>
#include <cmath>
#include <cstdlib>
#include <ctime>
using namespace std;
int main() {
int size = 0;
cin >> size;
char firstChar = 'a';
for(int i = 0; i < size; i++)
{
for(int j = 0; j < size; j++)
{
for(int k = 0... | 15.71875 | 37 | 0.471173 | [
"vector"
] |
9b6a252ca86476f5541e5056136def0d03af90cd | 11,400 | cc | C++ | src/kernel/transport.cc | Myrannas/runtime | d81f9ec641bb84e6713ae2ad8de29e1e54c65f4d | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2018-03-06T20:08:50.000Z | 2018-03-06T20:08:50.000Z | src/kernel/transport.cc | Myrannas/runtime | d81f9ec641bb84e6713ae2ad8de29e1e54c65f4d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/kernel/transport.cc | Myrannas/runtime | d81f9ec641bb84e6713ae2ad8de29e1e54c65f4d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | // Copyright 2014 Runtime.JS project authors
//
// 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 o... | 33.727811 | 104 | 0.583947 | [
"object"
] |
9b6db394ef85e4659c0bfdb059eebfc535af95dd | 1,600 | cpp | C++ | src/Backend/Toolchain_manager.cpp | uscope-platform/makefile_gen | 06bd4405afbbd9584911f495ebefff828f05aa0d | [
"Apache-2.0"
] | null | null | null | src/Backend/Toolchain_manager.cpp | uscope-platform/makefile_gen | 06bd4405afbbd9584911f495ebefff828f05aa0d | [
"Apache-2.0"
] | null | null | null | src/Backend/Toolchain_manager.cpp | uscope-platform/makefile_gen | 06bd4405afbbd9584911f495ebefff828f05aa0d | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 University of Nottingham Ningbo China
// Author: Filippo Savi <filssavi@gmail.com>
//
// 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/licens... | 35.555556 | 109 | 0.696875 | [
"vector"
] |
9b71ca62cc1ef7e19b49803b7dfa6117ed237e01 | 987 | cpp | C++ | c++/Repeated_DNA_sequence.cpp | parizadas/HacktoberFest2020-3 | 48cb0c7f2d43d38cb7d8343df18035c9288c63ea | [
"MIT"
] | 51 | 2020-09-27T15:28:05.000Z | 2021-09-29T02:07:25.000Z | c++/Repeated_DNA_sequence.cpp | parizadas/HacktoberFest2020-3 | 48cb0c7f2d43d38cb7d8343df18035c9288c63ea | [
"MIT"
] | 152 | 2020-09-27T12:12:12.000Z | 2021-10-03T18:22:15.000Z | c++/Repeated_DNA_sequence.cpp | parizadas/HacktoberFest2020-3 | 48cb0c7f2d43d38cb7d8343df18035c9288c63ea | [
"MIT"
] | 453 | 2020-09-27T12:34:35.000Z | 2021-10-16T08:33:33.000Z | /*
Question: All DNA is composed of a series of nucleotides abbreviated as
'A', 'C', 'G', and 'T', for example: "ACGAATTCCG". When studying DNA,
it is sometimes useful to identify repeated sequences within the DNA.
Write a function to print all the 10-letter-long sequences (substrings)
that occur more than once in a D... | 24.073171 | 73 | 0.612969 | [
"vector"
] |
9b76b973e2cbd25bb6d39585789504cd8d434b22 | 5,434 | cpp | C++ | src/neural_network/optimize.cpp | arotem3/numerics | ba208d9fc0ccb9471cfec9927a21622eb3535f54 | [
"Apache-2.0"
] | 18 | 2019-04-18T17:34:49.000Z | 2021-11-15T07:57:29.000Z | src/neural_network/optimize.cpp | arotem3/numerics | ba208d9fc0ccb9471cfec9927a21622eb3535f54 | [
"Apache-2.0"
] | null | null | null | src/neural_network/optimize.cpp | arotem3/numerics | ba208d9fc0ccb9471cfec9927a21622eb3535f54 | [
"Apache-2.0"
] | 4 | 2019-12-02T04:04:21.000Z | 2022-02-17T08:23:09.000Z | #include <numerics.hpp>
void numerics::neuralnet::SGD::_check_alpha(const double a) {
if (a <= 0) {
throw std::domain_error("adam requires: alpha (=" + std::to_string(a) + ") > 0.");
}
}
void numerics::neuralnet::SGD::_initialize_averages(const std::vector<Layer>& layers) {
_avg_weights.clear();
... | 32.345238 | 130 | 0.587597 | [
"vector"
] |
9b7ad8af05a3b78d560db273f911239c768cedc3 | 1,210 | cpp | C++ | LeetCodeCPP/73. Set Matrix Zeroes/main.cpp | 18600130137/leetcode | fd2dc72c0b85da50269732f0fcf91326c4787d3a | [
"Apache-2.0"
] | 1 | 2019-03-29T03:33:56.000Z | 2019-03-29T03:33:56.000Z | LeetCodeCPP/73. Set Matrix Zeroes/main.cpp | 18600130137/leetcode | fd2dc72c0b85da50269732f0fcf91326c4787d3a | [
"Apache-2.0"
] | null | null | null | LeetCodeCPP/73. Set Matrix Zeroes/main.cpp | 18600130137/leetcode | fd2dc72c0b85da50269732f0fcf91326c4787d3a | [
"Apache-2.0"
] | null | null | null | //
// main.cpp
// 73. Set Matrix Zeroes
//
// Created by admin on 2019/3/29.
// Copyright © 2019年 liu. All rights reserved.
//
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
void setZeroes(vector<vector<int>>& matrix) {
int m=matrix.size();
int n=matrix[0].... | 21.22807 | 57 | 0.410744 | [
"vector"
] |
f92bc6797bdecbf94ae97ea548a006e26dac5cad | 1,476 | hpp | C++ | modules/cuda_plugin/src/ops/pooling_impl.hpp | YUNEEC/openvino_contrib | 6a79637583fadd22e01d31b912d94d7a27cc78ba | [
"Apache-2.0"
] | null | null | null | modules/cuda_plugin/src/ops/pooling_impl.hpp | YUNEEC/openvino_contrib | 6a79637583fadd22e01d31b912d94d7a27cc78ba | [
"Apache-2.0"
] | null | null | null | modules/cuda_plugin/src/ops/pooling_impl.hpp | YUNEEC/openvino_contrib | 6a79637583fadd22e01d31b912d94d7a27cc78ba | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <cuda/dnn.hpp>
#include <ngraph/op/avg_pool.hpp>
#include <ngraph/op/max_pool.hpp>
#include <ngraph/shape.hpp>
namespace CUDAPlugin {
class PoolingImpl {
public:
explicit PoolingImpl(const ngraph::op::v1::Max... | 31.404255 | 91 | 0.70122 | [
"shape",
"vector"
] |
f93117269188c1b079b5efbe6b1c52ecf31dedb1 | 3,179 | cpp | C++ | kernel/src/fs/memfs/filestream.cpp | egranata/puppy | dc8b9bd7620966d94b18cbfaf50c9c5e142b9f6c | [
"Apache-2.0"
] | 28 | 2018-06-01T07:01:55.000Z | 2022-01-09T23:30:14.000Z | kernel/src/fs/memfs/filestream.cpp | egranata/puppy | dc8b9bd7620966d94b18cbfaf50c9c5e142b9f6c | [
"Apache-2.0"
] | 175 | 2018-05-30T03:06:15.000Z | 2019-02-06T23:54:24.000Z | kernel/src/fs/memfs/filestream.cpp | egranata/puppy | dc8b9bd7620966d94b18cbfaf50c9c5e142b9f6c | [
"Apache-2.0"
] | 2 | 2019-07-16T02:57:27.000Z | 2021-06-25T17:01:13.000Z | /*
* Copyright 2018 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 33.114583 | 83 | 0.553948 | [
"object"
] |
f935fe13b4334baa919d9dda2ab0291f245d38d1 | 6,065 | cc | C++ | lullaby/systems/render/filament/shader_factory.cc | dherbst/lullaby | 0b6675c9fc534c606236f40486987540ad098007 | [
"Apache-2.0"
] | 1,198 | 2017-06-09T08:10:52.000Z | 2022-03-21T13:39:50.000Z | lullaby/systems/render/filament/shader_factory.cc | dherbst/lullaby | 0b6675c9fc534c606236f40486987540ad098007 | [
"Apache-2.0"
] | 14 | 2017-06-10T00:47:46.000Z | 2020-12-31T05:19:55.000Z | lullaby/systems/render/filament/shader_factory.cc | dherbst/lullaby | 0b6675c9fc534c606236f40486987540ad098007 | [
"Apache-2.0"
] | 183 | 2017-06-09T22:19:20.000Z | 2022-02-23T03:31:35.000Z | /*
Copyright 2017-2019 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | 35.676471 | 80 | 0.705853 | [
"render",
"object",
"model",
"transform"
] |
f93aa859368e19d886145849261d5498dc6f1cf6 | 14,476 | cpp | C++ | src/mongo/rpc/op_msg.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/rpc/op_msg.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/rpc/op_msg.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2018-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but W... | 37.405685 | 100 | 0.647071 | [
"vector"
] |
f9426072d1ef0f2fe62c72e5846e04ae2722ba2e | 4,704 | cpp | C++ | libcore/luni/src/test/native/libcore_java_lang_ThreadTest.cpp | lulululbj/android_9.0.0_r45 | 64cc84d6683a4eb373c22ac50aaad0d349d45fcd | [
"Apache-2.0"
] | 41 | 2019-09-06T01:37:29.000Z | 2022-02-21T01:03:03.000Z | libcore/luni/src/test/native/libcore_java_lang_ThreadTest.cpp | lulululbj/android_9.0.0_r45 | 64cc84d6683a4eb373c22ac50aaad0d349d45fcd | [
"Apache-2.0"
] | null | null | null | libcore/luni/src/test/native/libcore_java_lang_ThreadTest.cpp | lulululbj/android_9.0.0_r45 | 64cc84d6683a4eb373c22ac50aaad0d349d45fcd | [
"Apache-2.0"
] | 15 | 2019-09-06T09:36:41.000Z | 2022-03-08T06:47:21.000Z | /*
* Copyright (C) 2015 The Android Open Source Project
*
* 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 app... | 34.335766 | 98 | 0.673257 | [
"object"
] |
f942b0754afd401157ae8e1c2db3d590cadac6e1 | 1,292 | hh | C++ | DAQ/inc/CaloDAQUtilities.hh | resnegfk/Offline | 4ba81dad54486188fa83fea8c085438d104afbbc | [
"Apache-2.0"
] | 9 | 2020-03-28T00:21:41.000Z | 2021-12-09T20:53:26.000Z | DAQ/inc/CaloDAQUtilities.hh | resnegfk/Offline | 4ba81dad54486188fa83fea8c085438d104afbbc | [
"Apache-2.0"
] | 684 | 2019-08-28T23:37:43.000Z | 2022-03-31T22:47:45.000Z | DAQ/inc/CaloDAQUtilities.hh | resnegfk/Offline | 4ba81dad54486188fa83fea8c085438d104afbbc | [
"Apache-2.0"
] | 61 | 2019-08-16T23:28:08.000Z | 2021-12-20T08:29:48.000Z | #ifndef DAQ_CaloDAQUtilities_hh
#define DAQ_CaloDAQUtilities_hh
//
//
//
#include "mu2e-artdaq-core/Overlays/CalorimeterFragment.hh"
#include "mu2e-artdaq-core/Overlays/FragmentType.hh"
#include <artdaq-core/Data/Fragment.hh>
#include <string>
namespace mu2e {
class CaloDAQUtilities{
public:
CaloDAQUtilit... | 29.363636 | 188 | 0.747678 | [
"vector"
] |
f952da6925a9c4a9947b0917d276d32901f9b46b | 2,239 | hpp | C++ | include/parser/utility/meta.hpp | gdunton/TextMatch | 3a99863b61baac76f92161595f0efcf0be80162b | [
"MIT"
] | null | null | null | include/parser/utility/meta.hpp | gdunton/TextMatch | 3a99863b61baac76f92161595f0efcf0be80162b | [
"MIT"
] | 5 | 2018-02-03T21:15:08.000Z | 2018-02-11T21:19:11.000Z | include/parser/utility/meta.hpp | gdunton/TextParseCpp | 3a99863b61baac76f92161595f0efcf0be80162b | [
"MIT"
] | null | null | null | #ifndef META_HPP
#define META_HPP
#include <type_traits>
#include <tuple>
//-------------------------------------------------------------
// Function Traits
//-------------------------------------------------------------
template <typename T>
struct FunctionTraits : public FunctionTraits<decltype(&T::operator())> {};... | 31.985714 | 97 | 0.575703 | [
"vector"
] |
f954ff46de0c4add976a49593e5922d6e52f9be1 | 4,440 | cpp | C++ | Neural-network-project/Training/MNIST_Training_module.cpp | alessandro-p/Neural-network | c53bb2d612bd137cf250d2eaf2f7af33d57a9cde | [
"Apache-2.0"
] | 1 | 2016-03-08T18:22:15.000Z | 2016-03-08T18:22:15.000Z | Neural-network-project/Training/MNIST_Training_module.cpp | alessandro-p/Neural-network | c53bb2d612bd137cf250d2eaf2f7af33d57a9cde | [
"Apache-2.0"
] | null | null | null | Neural-network-project/Training/MNIST_Training_module.cpp | alessandro-p/Neural-network | c53bb2d612bd137cf250d2eaf2f7af33d57a9cde | [
"Apache-2.0"
] | null | null | null | //
// MNIST_Training_module.cpp
// Neural-network-project
//
#include "MNIST_Training_module.hpp"
MNIST_Training_module :: MNIST_Training_module()
{
populate_input_vals(default_input_vals_training_file);
populate_target_vals(default_targets_vals_training_file);
}
MNIST_Training_module :: MNIST_Training_mo... | 30.833333 | 117 | 0.586937 | [
"vector"
] |
f963992a73c2636a5bdaad65bc16c726643a4f78 | 12,034 | cpp | C++ | AI project/A_star/P2_Pathfinding.cpp | DaechurJeong/Private_Proj | 66eec4d22372166af7f7643a9b1307ca7e5ce21a | [
"MIT"
] | 1 | 2020-09-18T01:55:20.000Z | 2020-09-18T01:55:20.000Z | AI project/A_star/P2_Pathfinding.cpp | xjltruth/Private_Proj | 14cb77afd564a4cce7b67960913d1a458cf3e61b | [
"MIT"
] | null | null | null | AI project/A_star/P2_Pathfinding.cpp | xjltruth/Private_Proj | 14cb77afd564a4cce7b67960913d1a458cf3e61b | [
"MIT"
] | 2 | 2020-04-21T23:52:31.000Z | 2020-04-24T13:37:28.000Z | #include <pch.h>
#include "Projects/ProjectTwo.h"
#include "P2_Pathfinding.h"
#pragma region Extra Credit
bool ProjectTwo::implemented_floyd_warshall()
{
return false;
}
bool ProjectTwo::implemented_goal_bounding()
{
return false;
}
bool ProjectTwo::implemented_jps_plus()
{
return false;
}
#pragma endreg... | 25.495763 | 104 | 0.672096 | [
"vector"
] |
f9658b6d794a02cceea972bea47fa8647b580245 | 19,839 | cpp | C++ | dilithium_utils.cpp | GerHobbelt/cryptopp | 138a293696d48f26feb5f27426baa5a7e797524b | [
"BSL-1.0"
] | null | null | null | dilithium_utils.cpp | GerHobbelt/cryptopp | 138a293696d48f26feb5f27426baa5a7e797524b | [
"BSL-1.0"
] | null | null | null | dilithium_utils.cpp | GerHobbelt/cryptopp | 138a293696d48f26feb5f27426baa5a7e797524b | [
"BSL-1.0"
] | null | null | null | /*
* Miscellaneous utility functions for Dilithium. Adapted by Julius Hekkala
* from the public-domain reference
* implementation of Dilithium by the CRYSTALS team
* (https://github.com/pq-crystals/dilithium)
*/
#include "pch.h"
#include "dilithium.h"
#include "osrng.h"
NAMESPACE_BEGIN(CryptoPP)
// The Keccak ... | 25.176396 | 101 | 0.582993 | [
"vector"
] |
f96a1b08c6bb0d234dfb7e9e4c45f1d236c7f5b2 | 2,437 | cpp | C++ | Modules/Module12_Classes/C++_Spring_2020_Week11.cpp | makavaile/Butler | f63b25a10339cbf9636e69821f9e995a93915767 | [
"MIT"
] | null | null | null | Modules/Module12_Classes/C++_Spring_2020_Week11.cpp | makavaile/Butler | f63b25a10339cbf9636e69821f9e995a93915767 | [
"MIT"
] | 1 | 2020-03-02T22:07:51.000Z | 2020-03-02T22:07:51.000Z | Modules/Module12_Classes/C++_Spring_2020_Week11.cpp | makavaile/Butler | f63b25a10339cbf9636e69821f9e995a93915767 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
using namespace std;
// build me a global string
// add in main() send the size of the string to cout.
// build a function that accepts a string
// then uses a for loop to add a space in between each letter
void addSpace(string input) {
for(int i = 0; i < inp... | 23.209524 | 80 | 0.630283 | [
"vector"
] |
f96d45136e39b919cb68b207c2746f170536e01d | 2,616 | hpp | C++ | Game/GameGrid.hpp | millerf1234/ncurses_Tetris | 63ebb423d1397ebcbb03488f9e1aa7a6dff9df9c | [
"MIT"
] | null | null | null | Game/GameGrid.hpp | millerf1234/ncurses_Tetris | 63ebb423d1397ebcbb03488f9e1aa7a6dff9df9c | [
"MIT"
] | null | null | null | Game/GameGrid.hpp | millerf1234/ncurses_Tetris | 63ebb423d1397ebcbb03488f9e1aa7a6dff9df9c | [
"MIT"
] | null | null | null | //
// GameGrid.hpp
// Tetris_Using_NCurses
//
// Created by Forrest Miller on 12/13/17.
// Copyright © 2017 Forrest Miller. All rights reserved.
//
#ifndef GameGrid_hpp
#define GameGrid_hpp
#include <exception>
#include <functional>
#include "Shape.hpp"
//Each coordinate on the screen will be stored within the f... | 31.518072 | 130 | 0.673547 | [
"shape"
] |
f972ad53603b3016a0bc201ad34152b2cf370be3 | 2,124 | hpp | C++ | libstark/src/languages/Acsp/AcspWitness.hpp | ddsvetlov/libSTARK | 38aeda615864346dc1ff4c290e0d0d12ea324dfb | [
"MIT"
] | 399 | 2018-02-28T17:11:54.000Z | 2022-03-24T07:41:39.000Z | libstark/src/languages/Acsp/AcspWitness.hpp | ddsvetlov/libSTARK | 38aeda615864346dc1ff4c290e0d0d12ea324dfb | [
"MIT"
] | 18 | 2018-03-02T14:53:53.000Z | 2022-02-14T21:30:03.000Z | libstark/src/languages/Acsp/AcspWitness.hpp | ddsvetlov/libSTARK | 38aeda615864346dc1ff4c290e0d0d12ea324dfb | [
"MIT"
] | 90 | 2018-03-01T01:18:44.000Z | 2022-02-23T00:28:50.000Z | /**
* @file AcspWitness.hpp
* @brief Header file for Acsp witness
*
* @author Michael Riabzev, RiabzevMichael@gmail.com
* =====================================================================================
*/
#pragma once // This is not needed, here just to get rid of an annoying VS2010 warnin... | 28.32 | 88 | 0.669962 | [
"vector"
] |
f989db3d16c6929b5aa60b83c06ebb7a22d1713e | 1,821 | cpp | C++ | aws-cpp-sdk-personalize-events/source/model/Event.cpp | neil-b/aws-sdk-cpp | 1602b75abbca880b770c12788f6d2bac0c87176a | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-personalize-events/source/model/Event.cpp | neil-b/aws-sdk-cpp | 1602b75abbca880b770c12788f6d2bac0c87176a | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-personalize-events/source/model/Event.cpp | neil-b/aws-sdk-cpp | 1602b75abbca880b770c12788f6d2bac0c87176a | [
"Apache-2.0"
] | 1 | 2020-11-04T03:18:11.000Z | 2020-11-04T03:18:11.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/personalize-events/model/Event.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
name... | 17.509615 | 69 | 0.705107 | [
"model"
] |
f9916cbc240f6db5c556e382df5444aa897dc5fd | 1,535 | cc | C++ | components/arc/compat_mode/overlay_dialog_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 76 | 2020-09-02T03:05:41.000Z | 2022-03-30T04:40:55.000Z | components/arc/compat_mode/overlay_dialog_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 45 | 2020-09-02T03:21:37.000Z | 2022-03-31T22:19:45.000Z | components/arc/compat_mode/overlay_dialog_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 8 | 2020-07-22T18:49:18.000Z | 2022-02-08T10:27:16.000Z | // Copyright 2021 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 "components/arc/compat_mode/overlay_dialog.h"
#include <memory>
#include "base/bind.h"
#include "base/test/bind.h"
#include "testing/gtest/incl... | 28.962264 | 80 | 0.719218 | [
"vector"
] |
f9917ceae4f9872a54580e1c4a9a745eb16e9297 | 6,059 | cpp | C++ | CARET_analyze_cpp_impl/src/pybind.cpp | tier4/CARET_analyze_cpp_impl | e4c6abfc3f76ef036130fc1cae4e904c685d69fd | [
"Apache-2.0"
] | null | null | null | CARET_analyze_cpp_impl/src/pybind.cpp | tier4/CARET_analyze_cpp_impl | e4c6abfc3f76ef036130fc1cae4e904c685d69fd | [
"Apache-2.0"
] | null | null | null | CARET_analyze_cpp_impl/src/pybind.cpp | tier4/CARET_analyze_cpp_impl | e4c6abfc3f76ef036130fc1cae4e904c685d69fd | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 Research Institute of Systems Planning, 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 b... | 36.065476 | 100 | 0.705727 | [
"vector"
] |
f99c69aa6dc31a350d7b319abcb18732c4e4b55d | 632 | hpp | C++ | lib/rt/Saver.hpp | craft095/sere | b7ce9aafe5390a0bf48ade7ebe0a1a09bf0396b9 | [
"MIT"
] | null | null | null | lib/rt/Saver.hpp | craft095/sere | b7ce9aafe5390a0bf48ade7ebe0a1a09bf0396b9 | [
"MIT"
] | null | null | null | lib/rt/Saver.hpp | craft095/sere | b7ce9aafe5390a0bf48ade7ebe0a1a09bf0396b9 | [
"MIT"
] | null | null | null | #ifndef RTSAVER_HPP
#define RTSAVER_HPP
#include "rt/Format.hpp"
#include <vector>
namespace rt {
class Saver {
private:
std::vector<uint8_t>& data;
protected:
void writeData(const uint8_t* d, size_t len) {
data.insert(data.end(), d, d + len);
}
template <typename T>
void writeValu... | 18.057143 | 55 | 0.615506 | [
"vector"
] |
f99ced0c1bedb7796f55352bb14fd1ade7427601 | 2,764 | hpp | C++ | code/source/util/mesh.hpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | 12 | 2015-01-12T00:19:20.000Z | 2021-08-05T10:47:20.000Z | code/source/util/mesh.hpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | code/source/util/mesh.hpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | #ifndef CLOVER_UTIL_MESH_HPP
#define CLOVER_UTIL_MESH_HPP
#include "build.hpp"
#include "dyn_array.hpp"
#include "boundingbox.hpp"
namespace clover {
namespace util {
template <typename T>
struct MeshVertexTraits {
typedef T BoundingBoxType;
static T extractPosition(const T& v){ return v; }
/// @brief Conversion... | 26.834951 | 114 | 0.730463 | [
"mesh"
] |
f99d199f2d99bcfa03280a35bccf53851f3a8ddd | 594 | cpp | C++ | icpcPlacementTest2020/questionA.cpp | SarveshOO7/Competitive-Programming | b8c67425f641944d87d58e37da63251ea9cbc79c | [
"MIT"
] | null | null | null | icpcPlacementTest2020/questionA.cpp | SarveshOO7/Competitive-Programming | b8c67425f641944d87d58e37da63251ea9cbc79c | [
"MIT"
] | null | null | null | icpcPlacementTest2020/questionA.cpp | SarveshOO7/Competitive-Programming | b8c67425f641944d87d58e37da63251ea9cbc79c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = a; i < (b); ++i)
#define all(x) begin(x), end(x)
#define sz(x) (int)(x).size()
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
int main()
{
cin.tie(0)->sync_with_stdio(0);
cin.exceptions(cin.failbit);
l... | 20.482759 | 50 | 0.521886 | [
"vector"
] |
f9a0b69019d5aadb7739a56b5dd7e87d52bb8a0e | 6,134 | cpp | C++ | assets/objects/actuators/WheelMotor.cpp | artfulbytes/sumobot_simulator | f2784d2ff506759019d7d5e840bd7aed591a0add | [
"MIT"
] | null | null | null | assets/objects/actuators/WheelMotor.cpp | artfulbytes/sumobot_simulator | f2784d2ff506759019d7d5e840bd7aed591a0add | [
"MIT"
] | null | null | null | assets/objects/actuators/WheelMotor.cpp | artfulbytes/sumobot_simulator | f2784d2ff506759019d7d5e840bd7aed591a0add | [
"MIT"
] | null | null | null | #include "actuators/WheelMotor.h"
#include "PhysicsWorld.h"
#include "components/Transforms.h"
#include "components/RectComponent.h"
#include "components/Body2D.h"
#include "SpriteAnimation.h"
#include "AssetsHelper.h"
#include <glm/glm.hpp>
#include <iostream>
WheelMotor::WheelMotor(Scene *scene, const Specification... | 30.366337 | 141 | 0.718944 | [
"transform"
] |
3903a95f6fe33901ad4d4440a118da281bb44e52 | 963 | cpp | C++ | backpack.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 264 | 2015-01-08T10:07:01.000Z | 2022-03-26T04:11:51.000Z | backpack.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 17 | 2016-04-15T03:38:07.000Z | 2020-10-30T00:33:57.000Z | backpack.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 127 | 2015-01-08T04:56:44.000Z | 2022-02-25T18:40:37.000Z | // 2009-04-07
#include <iostream>
#include <vector>
using namespace std;
inline int max(int x,int y){return x>y?x:y;}
int main()
{
int T,VMax,N,i,j,k,V[66],I[66],u[66];
scanf("%d",&T);
while (T--)
{
vector<int> attach[66];
scanf("%d %d",&VMax,&N);
for (i=0; i<N; i++)
{
scanf("%d %d %d",V+i,I+i,u+i);
i... | 20.489362 | 69 | 0.494289 | [
"vector"
] |
39097441a1b42423cb621caa69ce95ba26584c2d | 4,944 | cpp | C++ | cpp/lib/graph/tree/centroid_decomposition.cpp | KATO-Hiro/atcoder-1 | c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2 | [
"MIT"
] | null | null | null | cpp/lib/graph/tree/centroid_decomposition.cpp | KATO-Hiro/atcoder-1 | c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2 | [
"MIT"
] | null | null | null | cpp/lib/graph/tree/centroid_decomposition.cpp | KATO-Hiro/atcoder-1 | c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
// --------------------------------------------------------
template<class T> bool chmax(T& a, const T b) { if (a < b) { a = b; return 1; } return 0; }
#define FOR(i,l,r) for (ll i = (l); i < (r); ++i)
#define REP(i,n) FOR(i,0,n)
using P = pair<ll,ll>;... | 28.251429 | 97 | 0.479976 | [
"vector"
] |
390bf9ea7fa0aa3e45f2f8847228edd0cfbb578d | 675 | hpp | C++ | src/Client/Game/EntityHandler.hpp | fqhd/BuildBattle | f85ec857aa232313f4678514aa317af73c37de10 | [
"MIT"
] | 10 | 2021-08-17T20:55:52.000Z | 2022-03-28T00:45:14.000Z | src/Client/Game/EntityHandler.hpp | fqhd/BuildBattle | f85ec857aa232313f4678514aa317af73c37de10 | [
"MIT"
] | null | null | null | src/Client/Game/EntityHandler.hpp | fqhd/BuildBattle | f85ec857aa232313f4678514aa317af73c37de10 | [
"MIT"
] | 2 | 2021-07-05T18:49:56.000Z | 2021-07-10T22:03:17.000Z | #pragma once
#include "Entity.hpp"
#include "Camera.hpp"
#include <vector>
#include <unordered_map>
#include <SFML/Network.hpp>
#include "NetworkManager.hpp"
#include "Cube.hpp"
#include "Shader.hpp"
#include "Model.hpp"
class EntityHandler {
public:
void init();
void update(float _deltaTime);
void render(Camera&... | 18.75 | 83 | 0.742222 | [
"render",
"vector",
"model"
] |
390cbc966ba57fd1253efc7d4a358c57355ff740 | 51,315 | cpp | C++ | test/test_cluster_manager.cpp | tisuama/BaikalDB | 22e414eaac9dd6150f61976df6c735d6e51ea3f3 | [
"Apache-2.0"
] | 2 | 2020-04-09T02:09:19.000Z | 2021-12-23T06:56:22.000Z | test/test_cluster_manager.cpp | tisuama/BaikalDB | 22e414eaac9dd6150f61976df6c735d6e51ea3f3 | [
"Apache-2.0"
] | null | null | null | test/test_cluster_manager.cpp | tisuama/BaikalDB | 22e414eaac9dd6150f61976df6c735d6e51ea3f3 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2018 Baidu, Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applic... | 49.293948 | 129 | 0.714976 | [
"vector"
] |
391c7a840d828f9b6583ee380b0767245124e340 | 116,378 | cpp | C++ | 00076_minimum-window-substring/200121-1.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | 6 | 2019-10-23T01:07:29.000Z | 2021-12-05T01:51:16.000Z | 00076_minimum-window-substring/200121-1.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | null | null | null | 00076_minimum-window-substring/200121-1.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | 1 | 2021-12-03T06:54:57.000Z | 2021-12-03T06:54:57.000Z | // https://leetcode-cn.com/problems/minimum-window-substring/
#include <cstdio>
#include <string>
#include <vector>
#include <unordered_set>
#include <unordered_map>
using namespace std;
static bool debug = false;
class Solution {
public:
string minWindow(string s, string t) {
if (debug) { printf("================... | 657.502825 | 100,028 | 0.977247 | [
"vector"
] |
391ddbf576d49a2bc15ddb98c2a4a7f616d2cf9b | 4,244 | cpp | C++ | src/ModelSelection/testPerformance.cpp | andreas-hjortgaard/master_thesis | bb03ca9fc030c5142a7dde2ec80a85abc06e2cfb | [
"MIT"
] | null | null | null | src/ModelSelection/testPerformance.cpp | andreas-hjortgaard/master_thesis | bb03ca9fc030c5142a7dde2ec80a85abc06e2cfb | [
"MIT"
] | null | null | null | src/ModelSelection/testPerformance.cpp | andreas-hjortgaard/master_thesis | bb03ca9fc030c5142a7dde2ec80a85abc06e2cfb | [
"MIT"
] | 1 | 2018-10-20T00:43:36.000Z | 2018-10-20T00:43:36.000Z | /* Conditional Random Fields for Object Localization
* Master thesis source code
*
* Authors:
* Andreas Christian Eilschou (jwb226@alumni.ku.dk)
* Andreas Hjortgaard Danielsen (gxn961@alumni.ku.dk)
*
* Department of Computer Science
* University of Copenhagen
* Denmark
*
* Date: 27-08-2012
*/
// main prog... | 31.437037 | 130 | 0.648445 | [
"object",
"model",
"transform"
] |
3925fb3486dbc6bb1f8b6fdbff42f689f30d0c32 | 5,771 | cpp | C++ | source/engine/main.cpp | Coeurou/kairos_engine | b02eb302d7470d5f29b6ae342b2236dddaae91ea | [
"CC0-1.0"
] | null | null | null | source/engine/main.cpp | Coeurou/kairos_engine | b02eb302d7470d5f29b6ae342b2236dddaae91ea | [
"CC0-1.0"
] | null | null | null | source/engine/main.cpp | Coeurou/kairos_engine | b02eb302d7470d5f29b6ae342b2236dddaae91ea | [
"CC0-1.0"
] | null | null | null | #if defined(WIN32) /* && defined(NDEBUG)*/
#include <windows.h>
extern int main(int argc, char* argv[]);
////////////////////////////////////////////////////////////
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, INT) { return main(__argc, __argv); }
#endif // WIN32
#include <SDL.h>
#undef main
#in... | 33.748538 | 130 | 0.557442 | [
"render"
] |
393c784962b51a47c56ec527cf41e0e09ff101bf | 1,890 | cpp | C++ | Sources/HellSolver/Models/Object.cpp | utilForever/HellSolver | 812b84153acd67226f7bf795109886273eba7fb5 | [
"MIT"
] | 14 | 2020-07-29T21:56:05.000Z | 2021-12-18T12:48:11.000Z | Sources/HellSolver/Models/Object.cpp | utilForever/HellSolver | 812b84153acd67226f7bf795109886273eba7fb5 | [
"MIT"
] | 14 | 2020-08-17T14:41:57.000Z | 2020-12-13T06:39:45.000Z | Sources/HellSolver/Models/Object.cpp | utilForever/HellSolver | 812b84153acd67226f7bf795109886273eba7fb5 | [
"MIT"
] | 1 | 2020-08-08T05:10:52.000Z | 2020-08-08T05:10:52.000Z | // Copyright (c) 2020 HellSolver Team
// Chris Ohk, Juhan Cha, Woosung Joung, Yongwook Choi
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include <HellSolver/Models/Object.hpp>
#i... | 23.333333 | 77 | 0.608995 | [
"object"
] |
393f44017838c8ad83827b2e4af6592ca5b744a1 | 3,215 | cpp | C++ | pong/object.cpp | keithoma/Pong-Z | 083a9112e3c0bd9d2592b9c1f0186e9cebf22fdc | [
"MIT"
] | null | null | null | pong/object.cpp | keithoma/Pong-Z | 083a9112e3c0bd9d2592b9c1f0186e9cebf22fdc | [
"MIT"
] | null | null | null | pong/object.cpp | keithoma/Pong-Z | 083a9112e3c0bd9d2592b9c1f0186e9cebf22fdc | [
"MIT"
] | null | null | null | // This file is part of the "pong" project, http://github.com/keithoma/pong>
// (c) 2019-2019 Christian Parpart <christian@parpart.family>
// (c) 2019-2019 Kei Thoma <thomakmj@gmail.com>
//
// Licensed under the MIT License (the "License"); you may not use this
// file except in compliance with the License. You may... | 28.705357 | 105 | 0.689891 | [
"object"
] |
39612353a81f6609c177398cb63c16c0a0a1007a | 16,135 | hpp | C++ | include/OggVorbisEncoder/Setup/Residue.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/OggVorbisEncoder/Setup/Residue.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/OggVorbisEncoder/Setup/Residue.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: OggVorbisEncoder.Setup.ResidueType
... | 52.557003 | 331 | 0.734428 | [
"vector"
] |
3966ee080df6ff82c3830db248acd47333350ab8 | 13,422 | cpp | C++ | driver/src/camera.cpp | mmmspatz/wumbo_mr | 7dfecd4cb824ad2268f6f9208e3fe6c9510fb097 | [
"BSL-1.0"
] | 1 | 2021-02-12T06:54:53.000Z | 2021-02-12T06:54:53.000Z | driver/src/camera.cpp | mmmspatz/wumbo_mr | 7dfecd4cb824ad2268f6f9208e3fe6c9510fb097 | [
"BSL-1.0"
] | null | null | null | driver/src/camera.cpp | mmmspatz/wumbo_mr | 7dfecd4cb824ad2268f6f9208e3fe6c9510fb097 | [
"BSL-1.0"
] | null | null | null | // Copyright Mark H. Spatz 2021-present
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)
#include "camera.hpp"
#include <spdlog/spdlog.h>
#include <algorithm>
#include <iterator>
#include <stdexcept>
#include <libusb... | 33.555 | 100 | 0.673 | [
"vector"
] |
39693f5de44a9bc77020d7c17c33f4daff625681 | 9,074 | cc | C++ | src/lb_cookie_store.cc | snibug/gyp_example | 6bbf1ef53c68df4e5a657e0037cf6c81d2140178 | [
"Apache-2.0"
] | null | null | null | src/lb_cookie_store.cc | snibug/gyp_example | 6bbf1ef53c68df4e5a657e0037cf6c81d2140178 | [
"Apache-2.0"
] | null | null | null | src/lb_cookie_store.cc | snibug/gyp_example | 6bbf1ef53c68df4e5a657e0037cf6c81d2140178 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2012 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 34.371212 | 78 | 0.689663 | [
"vector"
] |
39716c6061611439261799235172947a9cec3248 | 10,359 | cpp | C++ | lab_02/source/main.cpp | DeaLoic/bmstu-AA | 7ab0931cccd08613efa7a353fbb7865f83cab2a7 | [
"MIT"
] | null | null | null | lab_02/source/main.cpp | DeaLoic/bmstu-AA | 7ab0931cccd08613efa7a353fbb7865f83cab2a7 | [
"MIT"
] | null | null | null | lab_02/source/main.cpp | DeaLoic/bmstu-AA | 7ab0931cccd08613efa7a353fbb7865f83cab2a7 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <vector>
#include <iostream>
#include <cstdlib>
#include <ctime>
#include "windows.h"
using namespace std;
LARGE_INTEGER startingTime, endingTime, ellapsedMicrosecond, frequency;
void printMatrix(vector< vector<int>> matrix);
vector<vector<int>> createZeroMatrix(int n, int m);
vector<vect... | 29.597143 | 149 | 0.467227 | [
"vector"
] |
39793b0c151333094e3a14e82ed2fb8d7f99eefc | 1,737 | cpp | C++ | networkit/cpp/components/StronglyConnectedComponents.cpp | kit-parco/networkit-chemfork | 5bfd593308af3020aeca00c843e7e9dd860011d0 | [
"MIT"
] | 2 | 2018-10-08T15:47:50.000Z | 2021-06-11T13:42:43.000Z | networkit/cpp/components/StronglyConnectedComponents.cpp | kit-parco/networkit-hyperbolic-kd | 8eb786b8f72e0507a75e68184f444a19cf47ef58 | [
"MIT"
] | null | null | null | networkit/cpp/components/StronglyConnectedComponents.cpp | kit-parco/networkit-hyperbolic-kd | 8eb786b8f72e0507a75e68184f444a19cf47ef58 | [
"MIT"
] | 1 | 2019-10-21T08:29:30.000Z | 2019-10-21T08:29:30.000Z | /*
* StrongConnectedComponents.cpp
*
* Created on: 01.06.2014
* Author: Klara Reichard (klara.reichard@gmail.com), Marvin Ritter (marvin.ritter@gmail.com)
*/
#include <stack>
#include <functional>
#include "StronglyConnectedComponents.h"
#include "../structures/Partition.h"
#include "../auxiliary/Log.h"
n... | 21.444444 | 98 | 0.658607 | [
"vector"
] |
397b947c322af5fe80c6227a10fe7fc9f534d0fb | 42,214 | cpp | C++ | tests/workTests/TestHMWorkRemoteCheck.cpp | varsameer/NetCHASM | 3071241ce0d2cddc077e5e7e1b957677d733ae76 | [
"Apache-2.0"
] | 13 | 2019-06-06T01:14:30.000Z | 2022-03-03T05:57:51.000Z | tests/workTests/TestHMWorkRemoteCheck.cpp | varsameer/NetCHASM | 3071241ce0d2cddc077e5e7e1b957677d733ae76 | [
"Apache-2.0"
] | 7 | 2019-07-23T18:31:20.000Z | 2021-05-26T12:57:34.000Z | tests/workTests/TestHMWorkRemoteCheck.cpp | varsameer/NetCHASM | 3071241ce0d2cddc077e5e7e1b957677d733ae76 | [
"Apache-2.0"
] | 12 | 2019-06-27T13:58:03.000Z | 2021-12-23T07:43:06.000Z | // Copyright 2019, Oath Inc.
// Licensed under the terms of the Apache 2.0 license. See LICENSE file in the root of the distribution for licensing details.
#include <thread>
#include "HMEventLoopQueue.h"
#include "TestHMWorkRemoteCheck.h"
#include "common.h"
#include "TestStorage.h"
using namespace std;
HM_WORK_STAT... | 39.014787 | 126 | 0.735041 | [
"vector"
] |
30292387611b2bf3af90e379362cec6b5da2529f | 1,781 | cpp | C++ | bugs-operated/CursorManager.cpp | KnuckStudio/bugs-operated | d48d76b0e00a6e24716572dd1fbb35d7f4115f8c | [
"Apache-2.0"
] | 1 | 2019-12-23T09:27:16.000Z | 2019-12-23T09:27:16.000Z | jage/CursorManager.cpp | Rexagon/jage | 560457b382fb250f3c5c385f45590c0537e2e9b8 | [
"Apache-2.0"
] | null | null | null | jage/CursorManager.cpp | Rexagon/jage | 560457b382fb250f3c5c385f45590c0537e2e9b8 | [
"Apache-2.0"
] | null | null | null | #include "CursorManager.h"
CursorManager::CursorStyle CursorManager::m_currentStyle = CursorManager::CursorStyle::NORMAL;
sf::WindowHandle CursorManager::m_windowHandle = nullptr;
#ifdef _WIN32
std::vector<HCURSOR> CursorManager::m_cursorIcons(STYLE_COUNT);
#elif defined(__linux__)
std::vector<XID> CursorManager::m_c... | 28.725806 | 96 | 0.784391 | [
"vector"
] |
302bc60be7b25a1b0393260b4768f353b2564595 | 3,890 | cpp | C++ | src/MultimediaSystem.cpp | alexirae/CHIP-8-Interpreter | eabfe6d1c0ed2fc5ecb917786b26e7139b300532 | [
"MIT"
] | null | null | null | src/MultimediaSystem.cpp | alexirae/CHIP-8-Interpreter | eabfe6d1c0ed2fc5ecb917786b26e7139b300532 | [
"MIT"
] | null | null | null | src/MultimediaSystem.cpp | alexirae/CHIP-8-Interpreter | eabfe6d1c0ed2fc5ecb917786b26e7139b300532 | [
"MIT"
] | null | null | null | #include "MultimediaSystem.h"
MultimediaSystem::MultimediaSystem()
: window(nullptr)
, renderer(nullptr)
, sdlTexture(nullptr)
, windowWidth(0)
, windowHeight(0)
, renderTextureWidth(0)
, renderTextureHeight(0)
, wavBuffer(nullptr)
, wavLength(0)
, audioDeviceId(0)
... | 33.826087 | 176 | 0.587661 | [
"vector"
] |
30340d79defc0cbbb0354b4b0e932367002394c3 | 848 | cpp | C++ | codes/Leetcode/leetcode304.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/Leetcode/leetcode304.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/Leetcode/leetcode304.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | class NumMatrix {
public:
NumMatrix(vector<vector<int>>& matrix) {
sum = matrix;
for (int i = 0; i < sum.size(); ++i) {
for (int j = 0; j < sum[i].size(); ++j) {
if (i) sum[i][j] += sum[i-1][j];
if (j) sum[i][j] += sum[i][j-1];
if (i&&j) su... | 29.241379 | 65 | 0.483491 | [
"object",
"vector"
] |
303d36e1fd2d93766e01c690b5b74b605e9bfd54 | 5,301 | cpp | C++ | open_cascade_demos/demo_bezier_surface/main.cpp | RoberAgro/primer_open_cascade | 8eae9192e8a796e543ac6b1509430a5367b7650b | [
"MIT"
] | 8 | 2020-02-04T19:50:29.000Z | 2022-01-01T06:52:39.000Z | open_cascade_demos/demo_bezier_surface/main.cpp | RoberAgro/primer_open_cascade | 8eae9192e8a796e543ac6b1509430a5367b7650b | [
"MIT"
] | null | null | null | open_cascade_demos/demo_bezier_surface/main.cpp | RoberAgro/primer_open_cascade | 8eae9192e8a796e543ac6b1509430a5367b7650b | [
"MIT"
] | null | null | null | // ------------------------------------------------------------------------------------------------------------------- //
//
// Demonstration script showing how to create a Bezier surface in OpenCascade
// Author: Roberto Agromayor
//
// --------------------------------------------------------------------------------... | 38.977941 | 121 | 0.46312 | [
"geometry",
"object",
"model"
] |
303e5cf75aa27fed79a95fa7508d3697216171e9 | 579 | cpp | C++ | cf/Div2/B/Little Girl and Game /main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | cf/Div2/B/Little Girl and Game /main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | cf/Div2/B/Little Girl and Game /main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define int long long
#define double long double
using namespace std;
signed main() {
// Turn off synchronization between cin/cout and scanf/printf
ios_base::sync_with_stdio(false);
// Disable automatic flush of cout when reading from cin cin.tie(0);
cin.tie(0);
string a... | 19.965517 | 72 | 0.53886 | [
"vector"
] |
303f80ea40f389bd6abe5f29f95473ea1a4b3eed | 3,069 | cpp | C++ | EngineTest/Main.cpp | Neko81795/CBREngine | 3ea100f09110d55fcbcadb23c246d47ed46c5121 | [
"CC-BY-4.0",
"MIT"
] | 2 | 2015-08-30T00:26:45.000Z | 2015-11-13T05:58:30.000Z | EngineTest/Main.cpp | Neko81795/CBREngine | 3ea100f09110d55fcbcadb23c246d47ed46c5121 | [
"CC-BY-4.0",
"MIT"
] | 1 | 2015-11-25T06:28:13.000Z | 2015-11-25T06:30:32.000Z | EngineTest/Main.cpp | Neko81795/CBREngine | 3ea100f09110d55fcbcadb23c246d47ed46c5121 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | #include "../MistThread/Core.h"
#include "../MistThread/Graphics.h"
#include "SpinComponent.h"
#include "SinXComponent.h"
#include "ZLayerComponent.h"
#include "KeyMoveComponent.h"
#include "SoundPulseComponent.h"
#include "ParticleSystem.h"
#include "ParticleDataComponent.h"
#include "ForceComponent.h"
#include "Rando... | 33.725275 | 118 | 0.747801 | [
"object"
] |
3049fc1001a5bd7b4bee54e5e888a21b29f8b4c6 | 370 | hpp | C++ | include/cur.hpp | overlorde/Otris | c5b45381cb80194993b940749dd5a8b6cca2490c | [
"MIT"
] | 1 | 2020-10-01T07:22:09.000Z | 2020-10-01T07:22:09.000Z | include/cur.hpp | overlorde/Otris | c5b45381cb80194993b940749dd5a8b6cca2490c | [
"MIT"
] | 1 | 2020-10-01T07:36:03.000Z | 2020-10-01T08:06:00.000Z | include/cur.hpp | overlorde/Otris | c5b45381cb80194993b940749dd5a8b6cca2490c | [
"MIT"
] | 3 | 2020-09-07T06:55:50.000Z | 2020-10-01T07:28:14.000Z | #ifndef CUR_HPP_
#define CUR_HPP_
//
//if we want to move the cursor in a program
//
//we only need a cur object
//which we will use throughout the program files
#include<iostream>
using namespace std;
class Cur{
public:
void saveCur(); //saves cursor
void moveCur(const int x,const int y); //moves cursor
vo... | 18.5 | 55 | 0.708108 | [
"object"
] |
304d12dc90cef90069cce12280bfc7f5029f0906 | 4,137 | hh | C++ | RAVL2/PatternRec/Classify/ClassifierFunc1Threshold.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/PatternRec/Classify/ClassifierFunc1Threshold.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/PatternRec/Classify/ClassifierFunc1Threshold.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | // This file is part of RAVL, Recognition And Vision Library
// Copyright (C) 2003, University of Surrey
// This code may be redistributed under the terms of the GNU Lesser
// General Public License (LGPL). See the lgpl.licence file for details or
// see http://www.gnu.org/copyleft/lesser.html
// file-header-ends-here... | 27.397351 | 89 | 0.690839 | [
"object",
"vector"
] |
30519216ad0580d2419e5cd03d34a4650c5e2277 | 3,020 | cpp | C++ | test/perf_test.cpp | chrismanning/jbson | 2e5ca71f3300d9d5d7e59e64f2d9ece32d96716f | [
"BSL-1.0"
] | 37 | 2015-02-02T16:39:00.000Z | 2022-01-25T15:45:08.000Z | test/perf_test.cpp | chrismanning/jbson | 2e5ca71f3300d9d5d7e59e64f2d9ece32d96716f | [
"BSL-1.0"
] | null | null | null | test/perf_test.cpp | chrismanning/jbson | 2e5ca71f3300d9d5d7e59e64f2d9ece32d96716f | [
"BSL-1.0"
] | 6 | 2015-06-22T11:40:22.000Z | 2022-01-25T15:45:12.000Z | // Copyright Christian Manning 2014.
// 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)
#include <fstream>
#include <gtest/gtest.h>
#include <jbson/json_reader.hpp>
#include <jbson/json_write... | 27.207207 | 92 | 0.588742 | [
"vector"
] |
3052be3203edf6a816c991590f58daf469dd87de | 3,662 | hpp | C++ | legion/engine/rendering/systems/particle_system_manager.hpp | Rythe-Interactive/Legion-Engine.rythe-legacy | e199689024436c40054942796ce9dcd4d097d7fd | [
"MIT"
] | null | null | null | legion/engine/rendering/systems/particle_system_manager.hpp | Rythe-Interactive/Legion-Engine.rythe-legacy | e199689024436c40054942796ce9dcd4d097d7fd | [
"MIT"
] | null | null | null | legion/engine/rendering/systems/particle_system_manager.hpp | Rythe-Interactive/Legion-Engine.rythe-legacy | e199689024436c40054942796ce9dcd4d097d7fd | [
"MIT"
] | null | null | null | #pragma once
#include <core/core.hpp>
#include <rendering/data/particle_system_base.hpp>
#include <rendering/components/point_emitter_data.hpp>
namespace legion::rendering
{
/**
* @class ParticleSystemManager
* @brief The class used to update all particles in every emitter.
*/
class ParticleSyste... | 40.241758 | 143 | 0.565811 | [
"vector"
] |
305ce4937a710edf5517e2555c9f537c0e2da7a2 | 5,928 | cpp | C++ | ltl2fsm/modules/Ltl_To_Nba_Module.cpp | arafato/ltl2fsm | 58d96c40fe0890c2bcc90593469668e6369c0f1b | [
"MIT"
] | 2 | 2016-11-23T14:31:55.000Z | 2018-05-10T01:11:54.000Z | ltl2fsm/modules/Ltl_To_Nba_Module.cpp | arafato/ltl2fsm | 58d96c40fe0890c2bcc90593469668e6369c0f1b | [
"MIT"
] | null | null | null | ltl2fsm/modules/Ltl_To_Nba_Module.cpp | arafato/ltl2fsm | 58d96c40fe0890c2bcc90593469668e6369c0f1b | [
"MIT"
] | null | null | null | /**
* @file ltl2fsm/modules/Ltl_To_Nba_Module.cpp
*
* $Id$
*
* @author Oliver Arafat
*
* @brief @ref
*
* @note DOCUMENTED
*
* @test
*
* @todo
*/
#include <ltl2fsm/modules/Ltl_To_Nba_Module.hpp>
#include <ltl2fsm/representation/Graphviz_Representation.hpp>
#include <ltl2fsm/automaton/Nondet_Buechi_Automa... | 23.338583 | 99 | 0.663124 | [
"shape"
] |
30655a0e85fd3dffeb8d4b274b22b4318fba84f4 | 22,961 | cpp | C++ | ds/security/services/scerpc/escprov/eventlog.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | ds/security/services/scerpc/escprov/eventlog.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | ds/security/services/scerpc/escprov/eventlog.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // eventlog.cpp: implementation of the CEventLogSettings class.
//
// Copyright (c)1997-1999 Microsoft Corporation
//
//////////////////////////////////////////////////////////////////////
#include "precomp.h"
#include "eventlog.h"
#include "persistmgr.h"
#include <io.h>
#include "requestobject.h"
#define... | 25.569042 | 123 | 0.537433 | [
"object"
] |
306a0b0255e1bf48cb7fa65ced2dd9d7e4f64707 | 94,663 | cpp | C++ | src/EulerUnsteady2D_basic_package.cpp | LukeMcCulloch/cfd_solvers_cpp | 69a6e8fde0e6b963a4d6d9e94f8241786d9088c5 | [
"MIT"
] | 5 | 2019-06-20T11:13:16.000Z | 2022-03-30T07:31:12.000Z | src/EulerUnsteady2D_basic_package.cpp | LukeMcCulloch/cfd_solvers_cpp | 69a6e8fde0e6b963a4d6d9e94f8241786d9088c5 | [
"MIT"
] | null | null | null | src/EulerUnsteady2D_basic_package.cpp | LukeMcCulloch/cfd_solvers_cpp | 69a6e8fde0e6b963a4d6d9e94f8241786d9088c5 | [
"MIT"
] | 1 | 2020-11-25T13:25:55.000Z | 2020-11-25T13:25:55.000Z | /*
*
* THE MESHING MODULE
*
*/
//********************************************************************************
//* Educationally-Designed Unstructured 2D (EDU2D) Code
//*
//*
//*
//* This module belongs to the inviscid version: EDU2D-Euler-RK2
//*
//*
//*
//* This file contains 4 modules:
//*
//* 1. module Eule... | 33.32031 | 167 | 0.430538 | [
"mesh",
"vector",
"solid"
] |
306ff403ea625546decdc6441a8bb7ec1eb0458e | 87,853 | cpp | C++ | VimbaOfficial/ViewerWindow.cpp | zzpwahaha/VimbaCamJILA | 3baed1b5313e6c198d54a33c2c84357035d5146a | [
"MIT"
] | 1 | 2021-06-14T11:51:37.000Z | 2021-06-14T11:51:37.000Z | VimbaOfficial/ViewerWindow.cpp | zzpwahaha/VimbaCamJILA | 3baed1b5313e6c198d54a33c2c84357035d5146a | [
"MIT"
] | null | null | null | VimbaOfficial/ViewerWindow.cpp | zzpwahaha/VimbaCamJILA | 3baed1b5313e6c198d54a33c2c84357035d5146a | [
"MIT"
] | 2 | 2021-01-20T16:22:57.000Z | 2021-02-14T12:31:02.000Z | /*=============================================================================
Copyright (C) 2012 - 2019 Allied Vision Technologies. All Rights Reserved.
Redistribution of this file, in original or modified form, without
prior written consent of Allied Vision Technologies is prohibited.
---------------... | 37.147146 | 314 | 0.610793 | [
"geometry",
"object",
"vector",
"model"
] |
3073b7842f3a71276ae34f6f6cacf7b8823088fe | 4,548 | cpp | C++ | tools/editor/source/view/manipulator/create.cpp | pixelballoon/pixelboost | 085873310050ce62493df61142b7d4393795bdc2 | [
"MIT"
] | 6 | 2015-04-21T11:30:52.000Z | 2020-04-29T00:10:04.000Z | tools/editor/source/view/manipulator/create.cpp | pixelballoon/pixelboost | 085873310050ce62493df61142b7d4393795bdc2 | [
"MIT"
] | null | null | null | tools/editor/source/view/manipulator/create.cpp | pixelballoon/pixelboost | 085873310050ce62493df61142b7d4393795bdc2 | [
"MIT"
] | null | null | null | #include "pixelboost/graphics/camera/camera.h"
#include "command/manager.h"
#include "project/entity.h"
#include "project/record.h"
#include "project/project.h"
#include "project/property.h"
#include "view/entity/entity.h"
#include "view/manipulator/create.h"
#include "view/manipulator/move.h"
#include "view/level.h"
... | 28.78481 | 150 | 0.635444 | [
"vector",
"transform"
] |
307983f1f60240594a6fe30bd7f87b6cea7d9185 | 1,665 | cpp | C++ | 03_Patterns/factory_extensible/rendererfactory.cpp | tlanc007/APIBookTweaks | 7d434d030583c74d7f55df608b9215add68b9663 | [
"MIT"
] | null | null | null | 03_Patterns/factory_extensible/rendererfactory.cpp | tlanc007/APIBookTweaks | 7d434d030583c74d7f55df608b9215add68b9663 | [
"MIT"
] | null | null | null | 03_Patterns/factory_extensible/rendererfactory.cpp | tlanc007/APIBookTweaks | 7d434d030583c74d7f55df608b9215add68b9663 | [
"MIT"
] | 1 | 2020-12-17T09:51:38.000Z | 2020-12-17T09:51:38.000Z | /// -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: t -*-
///
/// \file rendererfactory.cpp
/// \author Martin Reddy
/// \brief A factory object to create IRenderer instances.
///
/// Copyright (c) 2010, Martin Reddy. All rights reserved.
/// Distributed under the X11/MIT License. See LICENSE.txt.
/// See htt... | 31.415094 | 121 | 0.712312 | [
"object"
] |
30814ad36551495139f5353e67803614429984d2 | 15,553 | cpp | C++ | smalldrop/smalldrop_robot_arm/src/controllers/cartesian_impedance_sim_controller.cpp | blackchacal/Master-Thesis----Software | 9a9858ede3086eee99d1fc969e32b4fb13278f00 | [
"MIT"
] | 1 | 2020-08-16T14:37:09.000Z | 2020-08-16T14:37:09.000Z | smalldrop/smalldrop_robot_arm/src/controllers/cartesian_impedance_sim_controller.cpp | blackchacal/Master-Thesis----Software | 9a9858ede3086eee99d1fc969e32b4fb13278f00 | [
"MIT"
] | 1 | 2020-06-26T09:14:45.000Z | 2020-07-18T08:46:50.000Z | smalldrop/smalldrop_robot_arm/src/controllers/cartesian_impedance_sim_controller.cpp | blackchacal/Master-Thesis----Software | 9a9858ede3086eee99d1fc969e32b4fb13278f00 | [
"MIT"
] | null | null | null | // Copyright (c) 2019-2020 Ricardo Tonet
// Use of this source code is governed by the MIT license, see LICENSE
#include <smalldrop_robot_arm/cartesian_impedance_sim_controller.h>
namespace smalldrop
{
namespace smalldrop_robot_arm
{
/***********************************************************************************... | 32.334719 | 114 | 0.634926 | [
"vector",
"model",
"transform"
] |
3086c50f7149c3c13ec9f8983099ccf4587bed8f | 21,804 | cpp | C++ | Motor2D/j1Player.cpp | knela96/Dev_class5_handout | ca137c8e696069bf1bb5709c97ceae79f280942b | [
"MIT"
] | null | null | null | Motor2D/j1Player.cpp | knela96/Dev_class5_handout | ca137c8e696069bf1bb5709c97ceae79f280942b | [
"MIT"
] | null | null | null | Motor2D/j1Player.cpp | knela96/Dev_class5_handout | ca137c8e696069bf1bb5709c97ceae79f280942b | [
"MIT"
] | null | null | null | #include "j1App.h"
#include "j1Textures.h"
#include "j1Input.h"
#include "j1Render.h"
#include "j1Player.h"
#include "j1Collisions.h"
#include "j1FadeToBlack.h"
#include "j1Window.h"
#include "j1Audio.h"
#include <assert.h>
#include <stdio.h>
#include "p2Defs.h"
#include "p2Log.h"
#include "j1Map.h"
#include "j1EntityM... | 27.811224 | 167 | 0.640158 | [
"render"
] |
308a3c455e0af38ebb0a4a8d771772074dddfbec | 1,333 | cpp | C++ | examples/example_deque.cpp | nwehr/kick | 0f738e0895a639c977e8c473eb40ee595e301f32 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | examples/example_deque.cpp | nwehr/kick | 0f738e0895a639c977e8c473eb40ee595e301f32 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | examples/example_deque.cpp | nwehr/kick | 0f738e0895a639c977e8c473eb40ee595e301f32 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #include <iostream>
#include "../deque.hpp"
using namespace kick;
int main( int argc, const char* argv[] ){
deque<int> numbers;
numbers.push_back(1);
numbers.push_back(2);
numbers.push_back(3);
numbers.push_back(4);
numbers.push_back(5);
{
int sum = numbers
.filter([](const int& val) -> bool {
r... | 18.774648 | 76 | 0.515379 | [
"transform"
] |
308f591f1104b89387a189d0d8c1add9207a2846 | 32,548 | cpp | C++ | src/qtplugin/CPluginManager.cpp | SindenDev/3dimviewer | e23a3147edc35034ef4b75eae9ccdcbc7192b1a1 | [
"Apache-2.0"
] | 6 | 2020-04-14T16:10:55.000Z | 2021-05-21T07:13:55.000Z | src/qtplugin/CPluginManager.cpp | SindenDev/3dimviewer | e23a3147edc35034ef4b75eae9ccdcbc7192b1a1 | [
"Apache-2.0"
] | null | null | null | src/qtplugin/CPluginManager.cpp | SindenDev/3dimviewer | e23a3147edc35034ef4b75eae9ccdcbc7192b1a1 | [
"Apache-2.0"
] | 2 | 2020-07-24T16:25:38.000Z | 2021-01-19T09:23:18.000Z | ///////////////////////////////////////////////////////////////////////////////
// $Id$
//
// 3DimViewer
// Lightweight 3D DICOM viewer.
//
// Copyright 2008-2016 3Dim Laboratory s.r.o.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with ... | 39.789731 | 244 | 0.570849 | [
"geometry",
"object",
"model",
"3d"
] |
30947b2ada2f58955a1e2345d74f50adafa3eadc | 6,768 | cc | C++ | services/ui/demo/mus_demo.cc | xzhan96/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-01-07T18:51:03.000Z | 2021-01-07T18:51:03.000Z | services/ui/demo/mus_demo.cc | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | services/ui/demo/mus_demo.cc | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/ui/demo/mus_demo.h"
#include "base/memory/ptr_util.h"
#include "base/time/time.h"
#include "services/service_manager/public/cpp/connec... | 31.626168 | 80 | 0.692376 | [
"geometry",
"vector",
"solid"
] |
dd60a49d469c0de854c8638b9e2bc3327c9ddc03 | 9,811 | hh | C++ | cc/mapi-settings.hh | acorg/acmacs-map-draw | 6f0711f2fc452d9a6770db05bed38f0f08c2ea42 | [
"MIT"
] | null | null | null | cc/mapi-settings.hh | acorg/acmacs-map-draw | 6f0711f2fc452d9a6770db05bed38f0f08c2ea42 | [
"MIT"
] | null | null | null | cc/mapi-settings.hh | acorg/acmacs-map-draw | 6f0711f2fc452d9a6770db05bed38f0f08c2ea42 | [
"MIT"
] | null | null | null | #pragma once
#include "acmacs-base/settings-v3.hh"
#include "acmacs-base/point-style.hh"
#include "acmacs-base/time-series.hh"
#include "acmacs-chart-2/selected-antigens-sera.hh"
#include "acmacs-map-draw/point-style-draw.hh"
#include "acmacs-map-draw/coordinates.hh"
#include "acmacs-map-draw/point-style.hh"
#include ... | 45.421296 | 182 | 0.61431 | [
"vector"
] |
dd63957658f638099a42fb631913c63e3318d111 | 19,004 | cpp | C++ | src/Type.cpp | RamblingMadMan/ilang-types | 507a8215687f62555b4f8790a4d196076dc80c2d | [
"MIT"
] | null | null | null | src/Type.cpp | RamblingMadMan/ilang-types | 507a8215687f62555b4f8790a4d196076dc80c2d | [
"MIT"
] | null | null | null | src/Type.cpp | RamblingMadMan/ilang-types | 507a8215687f62555b4f8790a4d196076dc80c2d | [
"MIT"
] | null | null | null | #include <algorithm>
#include "ilang/Type.hpp"
using namespace ilang;
TypeHandle createEncodedStringType(TypeData &data, StringEncoding encoding) noexcept{
auto type = std::make_unique<Type>();
type->base = data.stringType;
switch(encoding){
case StringEncoding::ascii: type->str = "AsciiString"; typ... | 31.72621 | 150 | 0.692749 | [
"vector",
"transform"
] |
dd644cb77afade76efd2ca66be2a9d32efe085c0 | 1,245 | cpp | C++ | src/Layer.cpp | dargonfyl/imgui-painter | b4b3008b127da86576429506d9ab5d378a6bcc4d | [
"Unlicense"
] | null | null | null | src/Layer.cpp | dargonfyl/imgui-painter | b4b3008b127da86576429506d9ab5d378a6bcc4d | [
"Unlicense"
] | null | null | null | src/Layer.cpp | dargonfyl/imgui-painter | b4b3008b127da86576429506d9ab5d378a6bcc4d | [
"Unlicense"
] | null | null | null | #include "Layer.hpp"
#include <string.h> // memset
#include <stdlib.h>
namespace Im_Painter {
Layer::Layer(layer_size_t height, layer_size_t width) {
unsigned int total_bytes = 4 * height * width;
unsigned char buf[total_bytes];
memset(buf, static_cast<unsigned char>(0), total_bytes);
texture = new Textu... | 18.043478 | 77 | 0.671486 | [
"vector"
] |
dd6fb9ba236fa8c676b41f642a8936f8f8dab8e5 | 11,303 | cc | C++ | emu-ex-plus-alpha/imagine/src/audio/opensl/opensl.cc | damoonvisuals/GBA4iOS | 95bfce0aca270b68484535ecaf0d3b2366739c77 | [
"MIT"
] | 1 | 2018-11-14T23:40:35.000Z | 2018-11-14T23:40:35.000Z | emu-ex-plus-alpha/imagine/src/audio/opensl/opensl.cc | damoonvisuals/GBA4iOS | 95bfce0aca270b68484535ecaf0d3b2366739c77 | [
"MIT"
] | null | null | null | emu-ex-plus-alpha/imagine/src/audio/opensl/opensl.cc | damoonvisuals/GBA4iOS | 95bfce0aca270b68484535ecaf0d3b2366739c77 | [
"MIT"
] | null | null | null | /* This file is part of Imagine.
Imagine is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Imagine is distributed in the hope that it w... | 26.286047 | 178 | 0.741219 | [
"object"
] |
dd74cb9d34f567f6481e8bcf721548ef981d35b2 | 1,703 | hpp | C++ | include/codegen/include/System/Runtime/Serialization/Formatters/Binary/SerStack.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/System/Runtime/Serialization/Formatters/Binary/SerStack.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/System/Runtime/Serialization/Formatters/Binary/SerStack.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Completed includes
// Type namespace: System.Runtime.Serialization.Form... | 34.755102 | 148 | 0.664709 | [
"object"
] |
dd8ff04117f14d89ae6ceafc09b8d79c1b8495a9 | 15,257 | cpp | C++ | main.cpp | gmb9/CS211-TextEditor | 5242488e3f3c5e5b65cbfcf99c95edfa77724485 | [
"Apache-2.0"
] | null | null | null | main.cpp | gmb9/CS211-TextEditor | 5242488e3f3c5e5b65cbfcf99c95edfa77724485 | [
"Apache-2.0"
] | 15 | 2019-10-11T16:25:40.000Z | 2019-11-15T18:31:59.000Z | main.cpp | gmb9/CS211-TextEditor | 5242488e3f3c5e5b65cbfcf99c95edfa77724485 | [
"Apache-2.0"
] | null | null | null | #define PDC_DLL_BUILD 1
#include "curses.h"
#include "TrieNode.h"
#include "Trie.h"
#include <algorithm>
#include <string>
#include <fstream>
#include <vector>
#include <unordered_map>
#include <queue>
#define ENTER_KEY 10
using namespace std;
void saveToBinaryFile(vector<vector<int>> data);
string decimalConvert(int... | 19.167085 | 122 | 0.60333 | [
"vector"
] |
dd91ffba5e1b06735f82a445c5e41271a0c70e51 | 14,438 | cpp | C++ | planner/src/kcl_pandora/planning_system/src/StrategicProblemGenerator.cpp | KCL-Planning/strategic-tactical-pandora | aa609af26a59e756b25212fa57fa72be937766e7 | [
"BSD-2-Clause"
] | 2 | 2019-01-27T05:17:06.000Z | 2020-10-06T15:25:31.000Z | planner/src/kcl_pandora/planning_system/src/StrategicProblemGenerator.cpp | KCL-Planning/strategic-tactical-pandora | aa609af26a59e756b25212fa57fa72be937766e7 | [
"BSD-2-Clause"
] | null | null | null | planner/src/kcl_pandora/planning_system/src/StrategicProblemGenerator.cpp | KCL-Planning/strategic-tactical-pandora | aa609af26a59e756b25212fa57fa72be937766e7 | [
"BSD-2-Clause"
] | null | null | null | #include <iostream>
#include <sstream>
#include <fstream>
#include <vector>
#include <string>
namespace PandoraKCL {
/*----------*/
/* planning */
/*----------*/
/*
* Processes the strategic_plan.pddl into dispatchable actions.
*/
void prepareStrategicPlan(std::string dataPath) {
// cp_vrp output
std:... | 31.731868 | 125 | 0.610334 | [
"vector"
] |
dda00b94c3b45f9da5b5cd27556f2774975c0d02 | 64,139 | cpp | C++ | win32_source/Contrib/NGram/wz_utilities.cpp | yathit/waitzar | be0d1f2fe48ebc6094dbe2312ab18f4f05cf9136 | [
"Apache-2.0"
] | 1 | 2017-09-10T03:09:46.000Z | 2017-09-10T03:09:46.000Z | win32_source/Contrib/NGram/wz_utilities.cpp | yathit/waitzar | be0d1f2fe48ebc6094dbe2312ab18f4f05cf9136 | [
"Apache-2.0"
] | null | null | null | win32_source/Contrib/NGram/wz_utilities.cpp | yathit/waitzar | be0d1f2fe48ebc6094dbe2312ab18f4f05cf9136 | [
"Apache-2.0"
] | 3 | 2016-07-26T17:42:30.000Z | 2019-11-11T14:18:20.000Z | /*
* Copyright 2009 by Seth N. Hetu
*
* Please refer to the end of the file for licensing information
*/
#include "wz_utilities.h"
using std::vector;
using std::wstringstream;
using std::wstring;
using std::string;
//////////////////////////////////////////////////////////////////////////////////
... | 29.887698 | 163 | 0.622617 | [
"vector",
"model",
"transform",
"solid"
] |
dda1cf88d0c28a259a3064ab265f9ff85e45d9c8 | 588 | cpp | C++ | Top_100_Liked/01-Two_Sum.cpp | authetic-x/LeetCode-Solution | 5458b6bd2176246d4931aaf81faf8f69cae7b8ea | [
"MIT"
] | null | null | null | Top_100_Liked/01-Two_Sum.cpp | authetic-x/LeetCode-Solution | 5458b6bd2176246d4931aaf81faf8f69cae7b8ea | [
"MIT"
] | null | null | null | Top_100_Liked/01-Two_Sum.cpp | authetic-x/LeetCode-Solution | 5458b6bd2176246d4931aaf81faf8f69cae7b8ea | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
/*
* Description: 给出一个数组,和一个目标值,返回数组中两个数之和
* 等于目标值的对应下标
* Key: 用unordered_map存储,遍历数组。
* Note: unorder_map为无序存储的map,效率更高
*/
class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
unordered_map<int, int> mp;
for (int i ... | 23.52 | 55 | 0.518707 | [
"vector"
] |
ddab112231fa8a97048a77ffdc5f5dd4e4924129 | 6,728 | cpp | C++ | riptide_autonomy/src/object_describer.cpp | clabough2/riptide_software | 3ac70fac9e2fb6a5a7f761939a9b5c401605ad27 | [
"BSD-2-Clause"
] | 1 | 2020-07-17T23:57:58.000Z | 2020-07-17T23:57:58.000Z | riptide_autonomy/src/object_describer.cpp | clabough2/riptide_software | 3ac70fac9e2fb6a5a7f761939a9b5c401605ad27 | [
"BSD-2-Clause"
] | null | null | null | riptide_autonomy/src/object_describer.cpp | clabough2/riptide_software | 3ac70fac9e2fb6a5a7f761939a9b5c401605ad27 | [
"BSD-2-Clause"
] | 1 | 2019-08-29T03:39:56.000Z | 2019-08-29T03:39:56.000Z | #include "riptide_autonomy/object_describer.h"
ObjectDescriber::ObjectDescriber(BeAutonomous *master)
{
this->master = master;
}
void ObjectDescriber::GetRouletteHeading(void (Roulette::*callback)(double), Roulette *object)
{
bbox_sub = master->nh.subscribe<darknet_ros_msgs::BoundingBoxes>("/task/bboxes"... | 30.581818 | 125 | 0.582491 | [
"object",
"vector"
] |
ddae84cce12384420199005b322a73277927b4bc | 3,055 | hpp | C++ | source/modules/conduit/distributed/distributed.hpp | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 43 | 2018-07-26T07:20:42.000Z | 2022-03-02T10:23:12.000Z | source/modules/conduit/distributed/distributed.hpp | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 212 | 2018-09-21T10:44:07.000Z | 2022-03-22T14:33:05.000Z | source/modules/conduit/distributed/distributed.hpp | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 16 | 2018-07-25T15:00:36.000Z | 2022-03-22T14:19:46.000Z | /** \namespace conduit
* @brief Namespace declaration for modules of type: conduit.
*/
/** \file
* @brief Header file for module: Distributed.
*/
/** \dir conduit/distributed
* @brief Contains code, documentation, and scripts for module: Distributed.
*/
#pragma once
#include "auxiliar/MPIUtils.hpp"
#include "config... | 24.246032 | 119 | 0.706383 | [
"object",
"vector"
] |
ddb068133e176df705013cfee932fa344cd405dc | 820 | cpp | C++ | UVA/uva 11734.cpp | dipta007/Competitive-Programming | 998d47f08984703c5b415b98365ddbc84ad289c4 | [
"MIT"
] | 6 | 2018-10-15T18:45:05.000Z | 2022-03-29T04:30:10.000Z | UVA/uva 11734.cpp | dipta007/Competitive-Programming | 998d47f08984703c5b415b98365ddbc84ad289c4 | [
"MIT"
] | null | null | null | UVA/uva 11734.cpp | dipta007/Competitive-Programming | 998d47f08984703c5b415b98365ddbc84ad289c4 | [
"MIT"
] | 4 | 2018-01-07T06:20:07.000Z | 2019-08-21T15:45:59.000Z | #include<cstdio>
#include<sstream>
#include<cstdlib>
#include<cctype>
#include<cmath>
#include<algorithm>
#include<set>
#include<queue>
#include<stack>
#include<list>
#include<iostream>
#include<fstream>
#include<numeric>
#include<string>
#include<vector>
#include<cstring>
#include<map>
#include<iterator>
using namespa... | 18.222222 | 72 | 0.530488 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.