hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 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 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | 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 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fe40c3dffbd1aeacdd475b9c54e41240e199297f | 3,331 | cpp | C++ | cpp/src/io/device.cpp | quasiben/cucim | 048d53e6f99c2129b9febd08e0ae6d1b37d74451 | [
"Apache-2.0"
] | null | null | null | cpp/src/io/device.cpp | quasiben/cucim | 048d53e6f99c2129b9febd08e0ae6d1b37d74451 | [
"Apache-2.0"
] | null | null | null | cpp/src/io/device.cpp | quasiben/cucim | 048d53e6f99c2129b9febd08e0ae6d1b37d74451 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 24.674074 | 117 | 0.636145 | quasiben |
fe43ad06492e326f2fa01ebb908c58ff93592581 | 5,589 | cpp | C++ | util/passwordanalyser.cpp | velezladonna/mwc-qt-wallet | bd241b91d28350e17e52a10208e663fcb992d7cc | [
"Apache-2.0"
] | 1 | 2020-03-19T10:02:16.000Z | 2020-03-19T10:02:16.000Z | util/passwordanalyser.cpp | velezladonna/mwc-qt-wallet | bd241b91d28350e17e52a10208e663fcb992d7cc | [
"Apache-2.0"
] | null | null | null | util/passwordanalyser.cpp | velezladonna/mwc-qt-wallet | bd241b91d28350e17e52a10208e663fcb992d7cc | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 The MWC Developers
//
// 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... | 32.876471 | 147 | 0.61621 | velezladonna |
1cfb063105c3e5fc46dc00b661facfcacdec96ed | 905 | hpp | C++ | src/n64/ROM.hpp | timschwartz/ultra64 | 9812cfb545f473ec3970dc65ba08ccb66acc4582 | [
"BSD-3-Clause"
] | 4 | 2019-01-24T04:13:09.000Z | 2020-07-13T09:49:38.000Z | src/n64/ROM.hpp | timschwartz/ultra64 | 9812cfb545f473ec3970dc65ba08ccb66acc4582 | [
"BSD-3-Clause"
] | null | null | null | src/n64/ROM.hpp | timschwartz/ultra64 | 9812cfb545f473ec3970dc65ba08ccb66acc4582 | [
"BSD-3-Clause"
] | 1 | 2020-08-17T04:34:04.000Z | 2020-08-17T04:34:04.000Z | #pragma once
#include <string>
#include "N64.hpp"
const uint32_t ROM_LOWHIGH = 0x80371240;
const uint32_t ROM_HIGHLOW = 0x12408037;
namespace ultra64
{
typedef struct ROM_header
{
uint32_t signature;
uint32_t clockrate;
uint32_t pc;
uint32_t release;
uint32_t crc1;
... | 21.547619 | 50 | 0.596685 | timschwartz |
e8019d1b05e2e4f47eec10b6ae326f753784dc88 | 473 | cpp | C++ | ted3d12/src/engine.cpp | Gibbeon/trace-engine | 973d7803c92aa099bffa193513747fffadd93a94 | [
"MIT"
] | null | null | null | ted3d12/src/engine.cpp | Gibbeon/trace-engine | 973d7803c92aa099bffa193513747fffadd93a94 | [
"MIT"
] | null | null | null | ted3d12/src/engine.cpp | Gibbeon/trace-engine | 973d7803c92aa099bffa193513747fffadd93a94 | [
"MIT"
] | null | null | null | /* #include "te/engine.h"
#include "te/d3d12/renderingengine.h"
using namespace te;
extern bool_t te::_CreateRenderingEngineImpl(IRenderingEngine** pApp, ptr_t pInstance, string_t pszArg)
{
*pApp = new D3D12RenderingEngine();
return *pApp != nullptr;
} */
#include "te/engine.h"
#include "te/d3d12/gfxsystem.h... | 22.52381 | 103 | 0.72093 | Gibbeon |
e8050e5cefbe8ebb58aa70bd252541d45801c335 | 328 | cpp | C++ | ex3/expressions/Plus.cpp | ezenob8/HW3-TijnutMitkadem1-EzequielAndErez | ebb57d0bc1ef5570dc7799e10632dd63c98920b8 | [
"Apache-2.0"
] | null | null | null | ex3/expressions/Plus.cpp | ezenob8/HW3-TijnutMitkadem1-EzequielAndErez | ebb57d0bc1ef5570dc7799e10632dd63c98920b8 | [
"Apache-2.0"
] | null | null | null | ex3/expressions/Plus.cpp | ezenob8/HW3-TijnutMitkadem1-EzequielAndErez | ebb57d0bc1ef5570dc7799e10632dd63c98920b8 | [
"Apache-2.0"
] | null | null | null | //
// Created by erez on 07/11/2019.
//
#include "Plus.h"
Plus::Plus(Expression *expression1, Expression *expression2) : BinaryOperator(expression1, expression2) {
}
double Plus::calculate() {
return this->left->calculate() + this->right->calculate();
}
Plus::~Plus() {
delete this->right;
delete this->... | 17.263158 | 105 | 0.664634 | ezenob8 |
e80f58282a4d866c625f9769147917de05ff484b | 11,627 | cpp | C++ | src/cgame/cg_missionbriefing.cpp | jackeri/etjump | e17545b994b9edca8b2d11cba90fc311c9843bd8 | [
"BSL-1.0",
"MIT"
] | 16 | 2019-09-07T18:08:08.000Z | 2022-03-04T21:37:06.000Z | src/cgame/cg_missionbriefing.cpp | jackeri/etjump | e17545b994b9edca8b2d11cba90fc311c9843bd8 | [
"BSL-1.0",
"MIT"
] | 121 | 2019-09-07T19:30:39.000Z | 2022-01-31T20:59:48.000Z | src/cgame/cg_missionbriefing.cpp | jackeri/etjump | e17545b994b9edca8b2d11cba90fc311c9843bd8 | [
"BSL-1.0",
"MIT"
] | 14 | 2019-09-07T17:20:40.000Z | 2022-01-30T06:47:15.000Z | #include "cg_local.h"
const char *CG_DescriptionForCampaign(void)
{
return cgs.campaignInfoLoaded ? cgs.campaignData.campaignDescription : NULL;
}
const char *CG_NameForCampaign(void)
{
return cgs.campaignInfoLoaded ? cgs.campaignData.campaignName : NULL;
}
qboolean CG_FindCampaignInFile(char *filename, const char... | 24.791045 | 145 | 0.640578 | jackeri |
e80f67d5e71858dac75aa5022028d5502649f30d | 1,174 | cpp | C++ | src/gfx/extra/texture_composite.cpp | RedcraneStudio/redcrane-engine | 4da8a7caedd6da5ffb7eda7da8c9a42396273bf6 | [
"BSD-3-Clause"
] | 5 | 2017-05-16T22:25:59.000Z | 2020-02-10T20:19:35.000Z | src/gfx/extra/texture_composite.cpp | RedCraneStudio/redcrane-engine | 4da8a7caedd6da5ffb7eda7da8c9a42396273bf6 | [
"BSD-3-Clause"
] | 1 | 2017-10-13T00:35:56.000Z | 2017-10-13T00:35:56.000Z | src/gfx/extra/texture_composite.cpp | RedCraneStudio/redcrane-engine | 4da8a7caedd6da5ffb7eda7da8c9a42396273bf6 | [
"BSD-3-Clause"
] | 2 | 2017-10-07T04:40:52.000Z | 2021-09-27T05:59:05.000Z | /*
* Copyright (C) 2015 Luke San Antonio
* All rights reserved.
*/
#include "texture_composite.h"
namespace redc
{
Texture_Composite::Texture_Composite(Texture_Composite&& rhs) noexcept
: ts_(std::move(rhs.ts_)) {}
Texture_Composite& Texture_Composite::
operator=(Texture_Composite&& rhs) noexcept
{
t... | 23.959184 | 76 | 0.584327 | RedcraneStudio |
e81214a188ef4146f02e7d3578625fe003c398c2 | 2,312 | cpp | C++ | src/states/CreditsState.cpp | CEDV-2016/mastermind | 4cef7919a6dfa9f78887a25c409beea0448ca88e | [
"MIT"
] | null | null | null | src/states/CreditsState.cpp | CEDV-2016/mastermind | 4cef7919a6dfa9f78887a25c409beea0448ca88e | [
"MIT"
] | null | null | null | src/states/CreditsState.cpp | CEDV-2016/mastermind | 4cef7919a6dfa9f78887a25c409beea0448ca88e | [
"MIT"
] | null | null | null | #include "CreditsState.hpp"
#include "SoundFXManager.hpp"
template<> CreditsState* Ogre::Singleton<CreditsState>::msSingleton = 0;
CreditsState::CreditsState() {
_credits = NULL;
}
void
CreditsState::enter ()
{
_root = Ogre::Root::getSingletonPtr();
// Se recupera el gestor de escena y la cámara.
_sceneMgr... | 17.922481 | 117 | 0.699394 | CEDV-2016 |
e815a9940b89d2f759dbe1e13bf36ef0bdd0aa33 | 13,380 | cpp | C++ | PolyhedronControl.cpp | getdunne/Voxvu | 48d57a4eff7ca97f5562e79bce9d86e5e65a7d18 | [
"MIT"
] | null | null | null | PolyhedronControl.cpp | getdunne/Voxvu | 48d57a4eff7ca97f5562e79bce9d86e5e65a7d18 | [
"MIT"
] | null | null | null | PolyhedronControl.cpp | getdunne/Voxvu | 48d57a4eff7ca97f5562e79bce9d86e5e65a7d18 | [
"MIT"
] | 1 | 2021-04-09T08:24:03.000Z | 2021-04-09T08:24:03.000Z | #include "stdafx.h"
#include <math.h>
#include "PolyhedronControl.h"
//--------------------------------------------------------------
// Constructor
//--------------------------------------------------------------
PolyhedronControl::PolyhedronControl ()
{
m_pModel = NULL;
m_zoomFactor = 1.0;
m_panHoriz = 0.;
m_p... | 31.857143 | 85 | 0.577354 | getdunne |
e81ca5a63b2a5797737f9aad99a3912c833e5904 | 4,342 | cpp | C++ | etc/dp/p.cpp | wotsushi/competitive-programming | 17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86 | [
"MIT"
] | 3 | 2019-06-25T06:17:38.000Z | 2019-07-13T15:18:51.000Z | etc/dp/p.cpp | wotsushi/competitive-programming | 17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86 | [
"MIT"
] | null | null | null | etc/dp/p.cpp | wotsushi/competitive-programming | 17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86 | [
"MIT"
] | null | null | null | #pragma region template 1.1
#pragma region def
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vi;
typedef pair<ll, ll> ii;
#define REP(i, n) for (ll i = 0; i < (n); ++i)
#define REP1(i, n) for (ll i = 1; i <= (n); ++i)
#define OUT(x) cout << (x) << endl;
#define OUTA(a) \
REP... | 18.243697 | 80 | 0.447259 | wotsushi |
e81ca6ab5477464afe6677b98030ea343a4af254 | 2,706 | cpp | C++ | projects/atLib/source/Data/Interchange/atCSV.cpp | mbatc/atLib | 7e3a69515f504a05a312d234291f02863e291631 | [
"MIT"
] | 1 | 2019-09-17T18:02:16.000Z | 2019-09-17T18:02:16.000Z | projects/atLib/source/Data/Interchange/atCSV.cpp | mbatc/atLib | 7e3a69515f504a05a312d234291f02863e291631 | [
"MIT"
] | null | null | null | projects/atLib/source/Data/Interchange/atCSV.cpp | mbatc/atLib | 7e3a69515f504a05a312d234291f02863e291631 | [
"MIT"
] | null | null | null | #include "atCSV.h"
#include "atScan.h"
atCSV::atCSV(const atString &csv) { Parse(csv); }
atCSV::atCSV(atCSV &&csv) { *this = std::move(csv); }
atCSV::atCSV(const atCSV &csv) { *this = csv; }
atCSV& atCSV::operator=(atCSV &&rhs)
{
std::swap(m_cells, rhs.m_cells);
return *this;
}
atCSV& atCSV::operator=(const atCS... | 26.529412 | 158 | 0.66371 | mbatc |
e81fd29d03dfac29e2fa3c41b7ca4b004c30b13c | 922 | hpp | C++ | foundation/src/Win32/PluginManagerImpl.hpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | 5 | 2018-08-16T00:55:33.000Z | 2020-06-19T14:30:17.000Z | foundation/src/Win32/PluginManagerImpl.hpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | null | null | null | foundation/src/Win32/PluginManagerImpl.hpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | null | null | null | #pragma once
#ifndef PLUGIN_MANAGER_IMPL_WIN32_HPP
#define PLUGIN_MANAGER_IMPL_WIN32_HPP
#include "CoreAPIs.hpp"
#include <unordered_map>
#include <string>
#define WIN32_MEAN_AND_LEAN
#include <windows.h>
using plugin_handle = HMODULE;
struct PluginManagerImpl {
PluginManagerImpl();
void LoadPlugin(const char... | 32.928571 | 76 | 0.765727 | fuchstraumer |
e8207a924f4e349426d534ea52098fe14715cec0 | 4,132 | cpp | C++ | character/character.cpp | Jorgee1/Turn-Battle-System | c4eb39dc89b58629f71e56c63d8b0d3c6a745b08 | [
"MIT"
] | null | null | null | character/character.cpp | Jorgee1/Turn-Battle-System | c4eb39dc89b58629f71e56c63d8b0d3c6a745b08 | [
"MIT"
] | null | null | null | character/character.cpp | Jorgee1/Turn-Battle-System | c4eb39dc89b58629f71e56c63d8b0d3c6a745b08 | [
"MIT"
] | null | null | null | #include "Character.h"
// Status
Status::Status(string name, int value){
this->name = name;
this->value = value;
}
string Status::get_name() const{ return name; }
int Status::get_value() const{ return value; }
void Status::set_value(int value) { this->value = value; }
void Status::add_value(int value) { this... | 32.031008 | 111 | 0.681994 | Jorgee1 |
e823c94803c959d49297271277322777bb5b6ce4 | 123 | cpp | C++ | src/event.cpp | ricky26/netlib | f4d86475220ae32f0ab25e83fb8dc004f5f1af60 | [
"BSD-2-Clause"
] | 1 | 2020-07-04T01:11:38.000Z | 2020-07-04T01:11:38.000Z | src/event.cpp | ricky26/netlib | f4d86475220ae32f0ab25e83fb8dc004f5f1af60 | [
"BSD-2-Clause"
] | null | null | null | src/event.cpp | ricky26/netlib | f4d86475220ae32f0ab25e83fb8dc004f5f1af60 | [
"BSD-2-Clause"
] | null | null | null | #include "netlib\event.h"
namespace netlib
{
//
// event
//
event::event(void *_sender)
: mSender(_sender)
{
}
}
| 8.785714 | 28 | 0.601626 | ricky26 |
e826d9e5b358a2bfe554d168d0617f777b5aa6b9 | 666 | hpp | C++ | android-30/javax/xml/validation/Schema.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/javax/xml/validation/Schema.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/javax/xml/validation/Schema.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../../../JObject.hpp"
namespace javax::xml::validation
{
class Validator;
}
namespace javax::xml::validation
{
class ValidatorHandler;
}
namespace javax::xml::validation
{
class Schema : public JObject
{
public:
// Fields
// QJniObject forward
template<typename ...Ts> explicit Sc... | 20.181818 | 147 | 0.696697 | YJBeetle |
e82b1886453ec3cfa36191e3b745a2cb4a841245 | 3,395 | cpp | C++ | src/Xenon/GPU/ShaderProgram.cpp | OutOfTheVoid/ProjectRed | 801327283f5a302be130c90d593b39957c84cce5 | [
"MIT"
] | 1 | 2020-06-14T06:14:50.000Z | 2020-06-14T06:14:50.000Z | src/Xenon/GPU/ShaderProgram.cpp | OutOfTheVoid/ProjectRed | 801327283f5a302be130c90d593b39957c84cce5 | [
"MIT"
] | null | null | null | src/Xenon/GPU/ShaderProgram.cpp | OutOfTheVoid/ProjectRed | 801327283f5a302be130c90d593b39957c84cce5 | [
"MIT"
] | null | null | null | #include <Xenon/GPU/ShaderProgram.h>
#include <Xenon/GPU/Context.h>
#include <stdlib.h>
Xenon::GPU::ShaderProgram :: ShaderProgram ( const std :: string & Name ):
RefCounted ( 0 ),
Name ( Name ),
Allocated ( false ),
SHandle ( 0 ),
LinkIteration ( - 1 ),
InfoLog ( "" )
{
}
Xenon::GPU::ShaderProgram :: ~ShaderP... | 15.645161 | 137 | 0.635052 | OutOfTheVoid |
e82c5d03f37433e3f04e71e97dce7aed8374e849 | 2,329 | hpp | C++ | include/higra/structure/details/graph_concepts.hpp | deisemaia/Higra | 82cb78b606a383f3961faa882457a9a987f802e0 | [
"CECILL-B"
] | 64 | 2019-08-18T19:23:23.000Z | 2022-03-21T04:15:04.000Z | include/higra/structure/details/graph_concepts.hpp | deisemaia/Higra | 82cb78b606a383f3961faa882457a9a987f802e0 | [
"CECILL-B"
] | 120 | 2019-08-16T09:10:35.000Z | 2022-03-17T09:42:58.000Z | include/higra/structure/details/graph_concepts.hpp | deisemaia/Higra | 82cb78b606a383f3961faa882457a9a987f802e0 | [
"CECILL-B"
] | 12 | 2019-10-04T07:35:55.000Z | 2021-01-10T19:59:11.000Z | /***************************************************************************
* Copyright ESIEE Paris (2018) *
* *
* Contributor(s) : Benjamin Perret *
* ... | 32.802817 | 77 | 0.533705 | deisemaia |
e8305a88557e31a411d1f63e4050c1465e051604 | 2,593 | cpp | C++ | Backtracking/Rat_Maze.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | 19 | 2018-12-02T05:59:44.000Z | 2021-07-24T14:11:54.000Z | Backtracking/Rat_Maze.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | null | null | null | Backtracking/Rat_Maze.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | 13 | 2019-04-25T16:20:00.000Z | 2021-09-06T19:50:04.000Z | //there is a rat in a maze.The maze is represented by a 2d matrix
//with 1 and 0s .
//1 means it is possible to go there ,0 means it can't be reached.Find
// whether there is any path for the rat inside for reaching its
//destination.
//The rat can only move forward and down
//The starting point is the upper left mo... | 26.459184 | 87 | 0.630929 | susantabiswas |
e831a77239d1f9ad9e4ee78f0adfb1262e088b0c | 817 | hpp | C++ | library/ATF/Cmd.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/Cmd.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/Cmd.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
enum Cmd
{
_eRequestInitCandidate = 0x0,
_eReqUpdateWinCount = 0x1,
_eRequestCandidateList = 0x2,
_eRegCandidate = 0... | 25.53125 | 108 | 0.659731 | lemkova |
e8387d0652ebe184db243405d675b35600aa9e44 | 9,449 | cpp | C++ | modules/fnxext/visibility_controller_2d.cpp | sergey-khrykov/godot | cbba0773b89da8291aea5f5e9a5f53321f723f20 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 2 | 2019-10-23T11:27:37.000Z | 2021-12-06T12:02:31.000Z | modules/fnxext/visibility_controller_2d.cpp | sergey-khrykov/godot | cbba0773b89da8291aea5f5e9a5f53321f723f20 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 8 | 2020-03-03T13:35:53.000Z | 2021-08-19T10:57:47.000Z | modules/fnxext/visibility_controller_2d.cpp | sergey-khrykov/godot | cbba0773b89da8291aea5f5e9a5f53321f723f20 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 2 | 2021-04-08T18:14:27.000Z | 2022-02-28T10:52:34.000Z |
#include "visibility_controller_2d.h"
#include "core/engine.h"
#ifdef TOOLS_ENABLED
#include "canvas_layers_editor_plugin.h"
#endif
bool VisibilityController2D::_get(const String &p_name, Variant &r_ret) const {
if (p_name == "editor/canvas_layer") {
r_ret = "visibility_controller";
return true;
... | 36.910156 | 130 | 0.698487 | sergey-khrykov |
e84121f99836fc7c226df1f4d76b83c3aa40b05a | 344 | hpp | C++ | src/colour.hpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | src/colour.hpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | src/colour.hpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
namespace cl {
struct Colour {
Colour() = default;
Colour(float r, float g, float b, float a);
Colour(uint32_t colour);
uint32_t UintRGBA() const;
uint32_t UintABGR() const;
float r = 0.0f;
float g = 0.0f;
float b = 0.0f;
float a = 1.0f;
private:
void SetColour(... | 13.76 | 45 | 0.645349 | zfccxt |
e844050729f264123715536de2cef02f699f2622 | 2,953 | cpp | C++ | mpi-pingpong/pingpong.cpp | Zefiros-Software/SyncLib | 087fa171b339bdbe16a974cd5f85ff4408b679bd | [
"MIT"
] | null | null | null | mpi-pingpong/pingpong.cpp | Zefiros-Software/SyncLib | 087fa171b339bdbe16a974cd5f85ff4408b679bd | [
"MIT"
] | null | null | null | mpi-pingpong/pingpong.cpp | Zefiros-Software/SyncLib | 087fa171b339bdbe16a974cd5f85ff4408b679bd | [
"MIT"
] | null | null | null | /**
* @cond ___LICENSE___
*
* Copyright (c) 2016-2018 Zefiros Software.
*
* 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
... | 29.237624 | 109 | 0.626143 | Zefiros-Software |
e84e3c4954e66714c7bb1bd481c500485057c020 | 204 | cpp | C++ | codeforces/BITOBYT.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | codeforces/BITOBYT.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | codeforces/BITOBYT.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 1 | 2020-08-13T18:07:35.000Z | 2020-08-13T18:07:35.000Z | #include <bits/stdc++.h>
using namespace std;
int main(){
int t, a;
for(scanf("%d", &t); t--; ){
scanf("%d", &a);
a--;
int c3 = 0, c2 = 2, c1 = 1;
c3 = a /
}
}
| 17 | 35 | 0.387255 | cosmicray001 |
e851c80c8ccfe018302e7ee5ada8bddac74a4057 | 653 | cpp | C++ | Qt/ChessSys/ui/logindialog.cpp | MagicYCC/ChessSys | 2599b5196b8780f3e6cc3dcc3e19e7e23cf7b1d0 | [
"MIT"
] | null | null | null | Qt/ChessSys/ui/logindialog.cpp | MagicYCC/ChessSys | 2599b5196b8780f3e6cc3dcc3e19e7e23cf7b1d0 | [
"MIT"
] | null | null | null | Qt/ChessSys/ui/logindialog.cpp | MagicYCC/ChessSys | 2599b5196b8780f3e6cc3dcc3e19e7e23cf7b1d0 | [
"MIT"
] | 1 | 2019-05-07T17:31:26.000Z | 2019-05-07T17:31:26.000Z | #include "logindialog.h"
#include "ui_logindialog.h"
#include <QMessageBox>
LoginDialog::LoginDialog(ChessSysUser *user, QWidget *parent) :
_user(user),
QDialog(parent),
ui(new Ui::LoginDialog)
{
ui->setupUi(this);
ui->passwordEdit->setEchoMode(QLineEdit::Password);
}
LoginDialog::~LoginDialog()
... | 19.787879 | 63 | 0.644717 | MagicYCC |
e851c812920b9dba1285186166b72b38d296067f | 681 | cpp | C++ | src/lib/JobManager.cpp | edisonlee0212/UniEngine | 62278ae811235179e6a1c24eb35acf73e400fe28 | [
"BSD-3-Clause"
] | 22 | 2020-05-18T02:37:09.000Z | 2022-03-13T18:44:30.000Z | src/lib/JobManager.cpp | edisonlee0212/UniEngine | 62278ae811235179e6a1c24eb35acf73e400fe28 | [
"BSD-3-Clause"
] | null | null | null | src/lib/JobManager.cpp | edisonlee0212/UniEngine | 62278ae811235179e6a1c24eb35acf73e400fe28 | [
"BSD-3-Clause"
] | 3 | 2020-12-21T01:21:03.000Z | 2021-09-06T08:07:41.000Z | #include <JobManager.hpp>
using namespace UniEngine;
void JobManager::ResizePrimaryWorkers(int size)
{
GetInstance().m_primaryWorkers.FinishAll(true);
GetInstance().m_primaryWorkers.Resize(size);
}
void JobManager::ResizeSecondaryWorkers(int size)
{
GetInstance().m_secondaryWorkers.FinishAll(true);
Ge... | 22.7 | 69 | 0.754772 | edisonlee0212 |
e856527f18d52023a2fb02665b838a8016983ba2 | 2,136 | cpp | C++ | Washiwashi Engine/ModuleWindow.cpp | Ruizo/Washiwashi-engine | e1b5cdeea8bd80f647f1a0d556c48a441787ee01 | [
"MIT"
] | null | null | null | Washiwashi Engine/ModuleWindow.cpp | Ruizo/Washiwashi-engine | e1b5cdeea8bd80f647f1a0d556c48a441787ee01 | [
"MIT"
] | null | null | null | Washiwashi Engine/ModuleWindow.cpp | Ruizo/Washiwashi-engine | e1b5cdeea8bd80f647f1a0d556c48a441787ee01 | [
"MIT"
] | 1 | 2021-11-01T20:00:56.000Z | 2021-11-01T20:00:56.000Z | #include "Globals.h"
#include "Application.h"
#include "ModuleWindow.h"
ModuleWindow::ModuleWindow(Application* app, bool startEnabled) : Module(app, startEnabled)
{
window = NULL;
screen_surface = NULL;
}
// Destructor
ModuleWindow::~ModuleWindow()
{
}
// Called before render is available
bool ModuleWindow::Init(... | 22.484211 | 134 | 0.735487 | Ruizo |
e858adc1c9e29d674732bd528b8bf10dd6a84e18 | 152 | hpp | C++ | src/modules/enumerable.hpp | Zoxc/mirb | 14c2fe2d2a026fb3bb62c883e8839e1078ebc3b6 | [
"BSD-3-Clause"
] | 10 | 2016-10-06T06:22:20.000Z | 2022-02-28T05:33:09.000Z | src/modules/enumerable.hpp | Zoxc/mirb | 14c2fe2d2a026fb3bb62c883e8839e1078ebc3b6 | [
"BSD-3-Clause"
] | null | null | null | src/modules/enumerable.hpp | Zoxc/mirb | 14c2fe2d2a026fb3bb62c883e8839e1078ebc3b6 | [
"BSD-3-Clause"
] | 3 | 2018-01-08T03:34:34.000Z | 2021-09-12T12:12:22.000Z | #pragma once
#include "../value.hpp"
namespace Mirb
{
namespace Enumerable
{
value_t any(value_t obj, value_t block);
void initialize();
};
};
| 11.692308 | 42 | 0.677632 | Zoxc |
e85b09b24e7e1d316a1dac28accb32dfd181e067 | 10,557 | cc | C++ | pdb/src/cuda/source/PDBCUDAGPUInvoke.cc | yuxineverforever/plinycompute | c639d5307a438a850ad00f87880e7be4f17cbb2d | [
"Apache-2.0"
] | 1 | 2020-02-21T06:11:13.000Z | 2020-02-21T06:11:13.000Z | pdb/src/cuda/source/PDBCUDAGPUInvoke.cc | yuxineverforever/plinycompute | c639d5307a438a850ad00f87880e7be4f17cbb2d | [
"Apache-2.0"
] | null | null | null | pdb/src/cuda/source/PDBCUDAGPUInvoke.cc | yuxineverforever/plinycompute | c639d5307a438a850ad00f87880e7be4f17cbb2d | [
"Apache-2.0"
] | null | null | null | #include "PDBCUDAGPUInvoke.h"
#include "storage/PDBRamPointer.h"
/** SimpleTypeGPUInvoke deals with all the primitive types and invoke the gpu kernel for the input/output
* `Out` vector should be reserved before passing as parameter
* @tparam InvokerType - operator type (should be a derived type from PDBCUDAOp)
* @... | 42.059761 | 171 | 0.704272 | yuxineverforever |
e85dbb25d476f5cc1bf8a85c4f56312ecef2b426 | 537 | cpp | C++ | linked-lists/insert-a-node-at-a-specific-position-in-a-linked-list.cpp | ritstar/Hackerrank-interview-preparation-kit-solutions | 5eb5c975b101422902a2d49ec10677fd6a471d2c | [
"MIT"
] | 53 | 2018-08-23T07:12:53.000Z | 2021-04-23T09:38:46.000Z | linked-lists/insert-a-node-at-a-specific-position-in-a-linked-list.cpp | UndefeatedSunny/Hackerrank-interview-preparation-kit-solutions | 9ae582e4f128652014bbae7c6a42a0ef9fde1a34 | [
"MIT"
] | 2 | 2019-02-14T13:58:51.000Z | 2019-09-25T15:33:07.000Z | linked-lists/insert-a-node-at-a-specific-position-in-a-linked-list.cpp | UndefeatedSunny/Hackerrank-interview-preparation-kit-solutions | 9ae582e4f128652014bbae7c6a42a0ef9fde1a34 | [
"MIT"
] | 25 | 2019-04-09T09:19:25.000Z | 2021-09-05T11:36:14.000Z |
// Hackerrank Insert node into linkedlist Solution
// Runs in O(n) where n is length of linkedlist
SinglyLinkedListNode* insertNodeAtPosition(SinglyLinkedListNode* head, int data, int position) {
SinglyLinkedListNode* n = (SinglyLinkedListNode*)malloc(sizeof(SinglyLinkedListNode));
n->data = data;
if... | 25.571429 | 96 | 0.649907 | ritstar |
e85e36e7a852f723d6def9a9e73866cbf3223051 | 37,635 | hpp | C++ | include/nil/crypto3/zk/components/algebra/fields/element_fp4.hpp | skywinder/crypto3-blueprint | c2b033eaaff1a19ab5332b9f49a32bb4fdd1dc20 | [
"MIT"
] | 6 | 2021-05-27T04:52:42.000Z | 2022-01-23T23:33:40.000Z | include/nil/crypto3/zk/components/algebra/fields/element_fp4.hpp | skywinder/crypto3-blueprint | c2b033eaaff1a19ab5332b9f49a32bb4fdd1dc20 | [
"MIT"
] | 12 | 2020-12-08T15:17:00.000Z | 2022-03-17T22:19:43.000Z | include/nil/crypto3/zk/components/algebra/fields/element_fp4.hpp | skywinder/crypto3-blueprint | c2b033eaaff1a19ab5332b9f49a32bb4fdd1dc20 | [
"MIT"
] | 5 | 2021-05-20T20:02:17.000Z | 2022-01-14T12:26:24.000Z | //---------------------------------------------------------------------------//
// Copyright (c) 2018-2021 Mikhail Komarov <nemo@nil.foundation>
// Copyright (c) 2020-2021 Nikita Kaskov <nbering@nil.foundation>
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of th... | 58.078704 | 132 | 0.484576 | skywinder |
e867456fd369b12540666dbfec28c235d114f313 | 1,062 | cpp | C++ | C++/858. Mirror Reflection.cpp | josh-dp/LeetCode-Solutions | ef790260b8e390f207461e3ee1d79fd59d8b2258 | [
"MIT"
] | 263 | 2020-10-05T18:47:29.000Z | 2022-03-31T19:44:46.000Z | C++/858. Mirror Reflection.cpp | josh-dp/LeetCode-Solutions | ef790260b8e390f207461e3ee1d79fd59d8b2258 | [
"MIT"
] | 1,264 | 2020-10-05T18:13:05.000Z | 2022-03-31T23:16:35.000Z | C++/858. Mirror Reflection.cpp | josh-dp/LeetCode-Solutions | ef790260b8e390f207461e3ee1d79fd59d8b2258 | [
"MIT"
] | 760 | 2020-10-05T18:22:51.000Z | 2022-03-29T06:06:20.000Z | // problem - 858. Mirror Reflection
/*
There is a special square room with mirrors on each of the four walls.
Except for the southwest corner, there are receptors on each of the remaining corners,
numbered 0, 1, and 2.
The square room has walls of length p, and a laser ray from the
southwest c... | 27.230769 | 91 | 0.547081 | josh-dp |
e8674d58c543e2a4a55af9edfb445fe1c86f027a | 359 | hpp | C++ | biblioteka/include/model/ClientType.hpp | aantczakpiotr/OOP-final-project | 9559e797f4b98e88a6a97ef39ea6a8a4b67808b2 | [
"MIT"
] | null | null | null | biblioteka/include/model/ClientType.hpp | aantczakpiotr/OOP-final-project | 9559e797f4b98e88a6a97ef39ea6a8a4b67808b2 | [
"MIT"
] | null | null | null | biblioteka/include/model/ClientType.hpp | aantczakpiotr/OOP-final-project | 9559e797f4b98e88a6a97ef39ea6a8a4b67808b2 | [
"MIT"
] | null | null | null | //
// Created by student on 17.01.2020.
//
#ifndef SERWIS_SPRZETU_KOMPUTEROWEGO_CLIENTTYPE_HPP
#define SERWIS_SPRZETU_KOMPUTEROWEGO_CLIENTTYPE_HPP
class ClientType {
public:
virtual double discount(double totalValue, int totalRecentPurchase) = 0;
ClientType();
virtual ~ClientType();
};
#endif //SERWI... | 17.95 | 76 | 0.779944 | aantczakpiotr |
e86850152d81aaea49cb25e8b88e9b443d5739fb | 1,645 | hpp | C++ | src/vector_ops.hpp | nr1040gh/ray-tracing | 20500ba7875197b59ad20681d4309ea9d66d62e0 | [
"MIT"
] | null | null | null | src/vector_ops.hpp | nr1040gh/ray-tracing | 20500ba7875197b59ad20681d4309ea9d66d62e0 | [
"MIT"
] | null | null | null | src/vector_ops.hpp | nr1040gh/ray-tracing | 20500ba7875197b59ad20681d4309ea9d66d62e0 | [
"MIT"
] | null | null | null | #ifndef VECTOR_OPS_HPP
#define VECTOR_OPS_HPP
#include <vector>
#include "point.hpp"
//http://www.math.uaa.alaska.edu/~afkjm/csce211/handouts/SeparateCompilation.pdf
//http://www.cppforschool.com/tutorial/separate-header-and-implementation-files.html
namespace vector_ops
{
//Templatize these below for any general con... | 30.462963 | 97 | 0.696049 | nr1040gh |
e86987752eafe07e4ae1cc0d9ce230b5b5af07aa | 1,352 | cpp | C++ | src/modules/directx11/command_list.cpp | mge-engine/mge | e7a6253f99dd640a655d9a80b94118d35c7d8139 | [
"MIT"
] | null | null | null | src/modules/directx11/command_list.cpp | mge-engine/mge | e7a6253f99dd640a655d9a80b94118d35c7d8139 | [
"MIT"
] | 91 | 2019-03-09T11:31:29.000Z | 2022-02-27T13:06:06.000Z | src/modules/directx11/command_list.cpp | mge-engine/mge | e7a6253f99dd640a655d9a80b94118d35c7d8139 | [
"MIT"
] | null | null | null | // mge - Modern Game Engine
// Copyright (c) 2021 by Alexander Schroeder
// All rights reserved.
#include "command_list.hpp"
#include "error.hpp"
namespace mge::dx11 {
command_list::command_list(render_context& context)
: mge::command_list(context, true)
, m_dx11_context(context)
{
ID3... | 30.727273 | 80 | 0.635355 | mge-engine |
e86d68c31d04bbf8659422670f67873c5fa04ce1 | 4,602 | cpp | C++ | minimgio/src/v4l2utils.cpp | SmartEngines/minimg_interfaces | b9276f4d800a7d4563c7e1aaa08ef927bbccb918 | [
"BSD-3-Clause"
] | 4 | 2021-07-14T11:27:40.000Z | 2021-12-16T12:58:36.000Z | minimgio/src/v4l2utils.cpp | SmartEngines/minimg_interfaces | b9276f4d800a7d4563c7e1aaa08ef927bbccb918 | [
"BSD-3-Clause"
] | null | null | null | minimgio/src/v4l2utils.cpp | SmartEngines/minimg_interfaces | b9276f4d800a7d4563c7e1aaa08ef927bbccb918 | [
"BSD-3-Clause"
] | 1 | 2021-12-20T10:18:39.000Z | 2021-12-20T10:18:39.000Z | /*
Copyright 2021 Smart Engines Service LLC
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 following disclai... | 28.943396 | 94 | 0.706215 | SmartEngines |
e86d85eedb8114b719e914444c286ff2584b4a34 | 1,850 | cc | C++ | OJonline/compile_server.cc | Johnson5218/OJonline | d3146c53f0310050ae81e7ee0c8457ecf124f8b8 | [
"Apache-2.0"
] | 1 | 2019-08-31T00:39:21.000Z | 2019-08-31T00:39:21.000Z | OJonline/compile_server.cc | Johnson5218/OJonline | d3146c53f0310050ae81e7ee0c8457ecf124f8b8 | [
"Apache-2.0"
] | null | null | null | OJonline/compile_server.cc | Johnson5218/OJonline | d3146c53f0310050ae81e7ee0c8457ecf124f8b8 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <unordered_map>
#include <string>
#include "httplib.h"
#include "compile.hpp"
#include <jsoncpp/json/json.h>
/*
在线编译oj
*/
int main()
{
//写在里面好
using namespace httplib;
Server server;
//.Get 注册了一个回调函数,这个函数的调用时机
//处理 Get 方法的时候
//lambda 表达式?匿名函数
server.Post("/c... | 30.833333 | 72 | 0.526486 | Johnson5218 |
e86e65d0d2752f9346244a94bb8e5470e68d4fdc | 459 | cpp | C++ | Bootcamp/Practice/PaindromeString.cpp | sgpritam/DSAlgo | 3e0e6b19d4f8978b2fc3be48195705a285dbdce8 | [
"MIT"
] | 1 | 2020-03-06T21:05:14.000Z | 2020-03-06T21:05:14.000Z | Bootcamp/Practice/PaindromeString.cpp | sgpritam/DSAlgo | 3e0e6b19d4f8978b2fc3be48195705a285dbdce8 | [
"MIT"
] | 2 | 2020-03-09T05:08:14.000Z | 2020-03-09T05:14:09.000Z | Bootcamp/Practice/PaindromeString.cpp | sgpritam/DSAlgo | 3e0e6b19d4f8978b2fc3be48195705a285dbdce8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
bool isPalindrome(char *a){
int i=0;
int j=strlen(a)-1;
while(i<j){
if(a[i]==a[j]){
i++;
j--;
}
else{
return false;
}
}
return true;
}
int main() {
char a[1000];
cin.getline(... | 14.806452 | 42 | 0.455338 | sgpritam |
e87235339e8e0b74a623324cdf32a72f81a5fc04 | 3,102 | cpp | C++ | src/CpuOperations/NEG.cpp | PaulTrampert/GenieSys | 637e7f764bc7faac8d0b5afcf22646e200562f6a | [
"MIT"
] | null | null | null | src/CpuOperations/NEG.cpp | PaulTrampert/GenieSys | 637e7f764bc7faac8d0b5afcf22646e200562f6a | [
"MIT"
] | 82 | 2020-12-17T04:03:10.000Z | 2022-03-24T17:54:28.000Z | src/CpuOperations/NEG.cpp | PaulTrampert/GenieSys | 637e7f764bc7faac8d0b5afcf22646e200562f6a | [
"MIT"
] | null | null | null | //
// Created by pault on 10/6/2021.
//
#include <GenieSys/CpuOperations/NEG.h>
#include <GenieSys/getPossibleOpcodes.h>
#include <GenieSys/AddressingModes/AddressingMode.h>
#include <GenieSys/getCcrFlags.h>
#include <vector>
#include <cmath>
#include <sstream>
#include <GenieSys/M68kCpu.h>
#include <GenieSys/Addressi... | 33.717391 | 138 | 0.636686 | PaulTrampert |
e8812041acfe973c2b36788cf1e1166b0a80a3b6 | 29,546 | cxx | C++ | HLT/MUON/OnlineAnalysis/AliHLTMUONMansoTrackerFSM.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1 | 2017-04-27T17:28:15.000Z | 2017-04-27T17:28:15.000Z | HLT/MUON/OnlineAnalysis/AliHLTMUONMansoTrackerFSM.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 3 | 2017-07-13T10:54:50.000Z | 2018-04-17T19:04:16.000Z | HLT/MUON/OnlineAnalysis/AliHLTMUONMansoTrackerFSM.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 5 | 2017-03-29T12:21:12.000Z | 2018-01-15T15:52:24.000Z | /**************************************************************************
* This file is property of and copyright by the ALICE HLT Project *
* All rights reserved. *
* *
* Primary Autho... | 31.101053 | 104 | 0.699113 | AllaMaevskaya |
e884601887984b9e0e3a0010c8ff81eb6242729a | 5,827 | cpp | C++ | src/b_star_tree.cpp | harry830622/fixed-outline-floorplanning | 8fc1fc91f0e3329c6369c8b1f863bcce31465430 | [
"MIT"
] | 4 | 2019-07-02T18:15:01.000Z | 2021-12-22T06:09:35.000Z | src/b_star_tree.cpp | harry830622/fixed-outline-floorplanning | 8fc1fc91f0e3329c6369c8b1f863bcce31465430 | [
"MIT"
] | null | null | null | src/b_star_tree.cpp | harry830622/fixed-outline-floorplanning | 8fc1fc91f0e3329c6369c8b1f863bcce31465430 | [
"MIT"
] | 1 | 2016-12-07T15:13:07.000Z | 2016-12-07T15:13:07.000Z | #include "./b_star_tree.hpp"
#include <stack>
using namespace std;
BStarTree::BStarTree(int num_macros)
: root_id_(0), nodes_(num_macros, Node(-1, -1, -1)) {
const int num_nodes = nodes_.size();
for (int i = 0; i < num_nodes - 1; ++i) {
nodes_[i].left_child_id_ = i + 1;
}
for (int i = 1; i < num_nod... | 32.920904 | 80 | 0.665179 | harry830622 |
e88ed1e4d2471b00c3465bfc83dfb065ad9c518c | 1,614 | cpp | C++ | MonoNative.Tests/mscorlib/System/Collections/mscorlib_System_Collections_CollectionBase_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative.Tests/mscorlib/System/Collections/mscorlib_System_Collections_CollectionBase_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative.Tests/mscorlib/System/Collections/mscorlib_System_Collections_CollectionBase_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | // Mono Native Fixture
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// Namespace: System.Collections
// Name: CollectionBase
// C++ Typed Name: mscorlib::System::Collections::CollectionBase
#include <gtest/gtest.h>
#include <mscorlib/System/Collections/mscorlib_System_Colle... | 19.925926 | 88 | 0.707559 | brunolauze |
e890298d81106893bc5baae97f271530040ce03d | 2,475 | cpp | C++ | tests/unit/test_app.cpp | dsiroky/backnocles | 889ab5f65fc1beb27f6dfff36d5fcda8544a9be2 | [
"MIT"
] | 3 | 2017-10-22T17:57:10.000Z | 2017-11-06T12:33:31.000Z | tests/unit/test_app.cpp | dsiroky/backnocles | 889ab5f65fc1beb27f6dfff36d5fcda8544a9be2 | [
"MIT"
] | null | null | null | tests/unit/test_app.cpp | dsiroky/backnocles | 889ab5f65fc1beb27f6dfff36d5fcda8544a9be2 | [
"MIT"
] | null | null | null | /// Test main app functions.
///
/// @file
#include <string>
#include "backnocles/utils/disablewarnings.hpp"
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "backnocles/utils/enablewarnings.hpp"
#include "backnocles/app.hpp"
//==========================================================================... | 25 | 80 | 0.509495 | dsiroky |
e892ec7e37b29fa33e3f4df7abc7eff18936b3e1 | 2,500 | cpp | C++ | example/main.cpp | packetzero/vsqlite | 5ac54389f1d1dfc91e34adf229eb20b6e6527d26 | [
"MIT"
] | null | null | null | example/main.cpp | packetzero/vsqlite | 5ac54389f1d1dfc91e34adf229eb20b6e6527d26 | [
"MIT"
] | null | null | null | example/main.cpp | packetzero/vsqlite | 5ac54389f1d1dfc91e34adf229eb20b6e6527d26 | [
"MIT"
] | null | null | null | #include <vsqlite/vsqlite.h>
#include "example_table.h"
struct Function_power : public vsqlite::AppFunctionBase {
Function_power() : vsqlite::AppFunctionBase("power", { TFLOAT64, TFLOAT64 }) {}
DynVal func(const std::vector<DynVal> &args, std::string &errmsg) override {
return pow((double)args[0], (double)a... | 25.773196 | 99 | 0.6196 | packetzero |
e8945e67bfe429d0424bb8b7548cfbe6cb633c42 | 4,876 | cpp | C++ | inc/asmjit/Util.cpp | newcommerdontblame/ionlib | 47ca829009e1529f62b2134aa6c0df8673864cf3 | [
"MIT"
] | 57 | 2016-05-15T20:17:16.000Z | 2022-03-19T10:08:16.000Z | AsmJit/AsmJit/Util.cpp | DragonQuestHero/DarkMMap | c4fd125c8936334348b80804c4bfbd9952981d18 | [
"MIT"
] | 1 | 2016-11-04T16:45:23.000Z | 2016-11-04T16:45:23.000Z | AsmJit/AsmJit/Util.cpp | DragonQuestHero/DarkMMap | c4fd125c8936334348b80804c4bfbd9952981d18 | [
"MIT"
] | 25 | 2016-05-31T19:12:10.000Z | 2022-03-19T10:08:16.000Z | // [AsmJit]
// Complete JIT Assembler for C++ Language.
//
// [License]
// Zlib - See COPYING file in this package.
// [Dependencies]
#include "Build.h"
#include "Util_p.h"
// [Api-Begin]
#include "ApiBegin.h"
namespace AsmJit {
// ============================================================================
// [Asm... | 18.262172 | 79 | 0.541632 | newcommerdontblame |
e897b99959207dcdc88a8aed7fc5f98da1fcb5a4 | 2,263 | cpp | C++ | DSA/Trees/postorder-inorder.cpp | abhisheknaiidu/dsa | fe3f54df6802d2520142992b541602ce5ee24f26 | [
"MIT"
] | 54 | 2020-07-31T14:50:23.000Z | 2022-03-14T11:03:02.000Z | DSA/Trees/postorder-inorder.cpp | abhisheknaiidu/NOOB | fe3f54df6802d2520142992b541602ce5ee24f26 | [
"MIT"
] | null | null | null | DSA/Trees/postorder-inorder.cpp | abhisheknaiidu/NOOB | fe3f54df6802d2520142992b541602ce5ee24f26 | [
"MIT"
] | 30 | 2020-08-15T17:39:02.000Z | 2022-03-10T06:50:18.000Z | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 31.873239 | 135 | 0.55369 | abhisheknaiidu |
e89a6d40285e06c8704aeb091ed5609211dbd338 | 821 | hpp | C++ | android-31/android/icu/text/CaseMap_Fold.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/icu/text/CaseMap_Fold.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/icu/text/CaseMap_Fold.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "./CaseMap.hpp"
namespace android::icu::text
{
class CaseMap;
}
namespace android::icu::text
{
class Edits;
}
class JString;
class JString;
namespace android::icu::text
{
class CaseMap_Fold : public android::icu::text::CaseMap
{
public:
// Fields
// QJniObject forward
template<typ... | 22.189189 | 173 | 0.704019 | YJBeetle |
e89ad71d380e8704a52fdb0833ec27ac6b42108c | 951 | hpp | C++ | include/mockitopp/detail/util/horrible_cast.hpp | tpounds/mockitopp | 775b151fa746c81c8762faea2de3429d6f3f46af | [
"MIT"
] | 82 | 2015-03-19T06:28:00.000Z | 2021-08-20T17:40:11.000Z | include/mockitopp/detail/util/horrible_cast.hpp | tpounds/mockitopp | 775b151fa746c81c8762faea2de3429d6f3f46af | [
"MIT"
] | 6 | 2015-03-19T08:46:46.000Z | 2019-06-04T14:24:52.000Z | include/mockitopp/detail/util/horrible_cast.hpp | tpounds/mockitopp | 775b151fa746c81c8762faea2de3429d6f3f46af | [
"MIT"
] | 12 | 2015-03-19T08:15:32.000Z | 2021-02-04T11:53:16.000Z | #ifndef __MOCKITOPP_HORRIBLE_CAST_HPP__
#define __MOCKITOPP_HORRIBLE_CAST_HPP__
#include <mockitopp/detail/util/cxx0x_static_assert.hpp>
namespace mockitopp
{
namespace detail
{
/**
* A potentially unsafe cast using a union of two possibly
* incompatible data types that can be used to comple... | 25.026316 | 64 | 0.605678 | tpounds |
e89fb588e859bdbf0987194d4a8f4eafbae64862 | 504 | cpp | C++ | c++/2 - Data Structures/Ordered Set.cpp | CarlosSalazar84/notebook | b2bb07daaf22d3eddfa09a2ea4484932bdaa75df | [
"MIT"
] | 34 | 2016-03-07T16:43:38.000Z | 2022-02-28T07:35:20.000Z | c++/2 - Data Structures/Ordered Set.cpp | CarlosSalazar84/notebook | b2bb07daaf22d3eddfa09a2ea4484932bdaa75df | [
"MIT"
] | 72 | 2015-10-12T04:18:59.000Z | 2021-03-17T02:00:12.000Z | c++/2 - Data Structures/Ordered Set.cpp | CarlosSalazar84/notebook | b2bb07daaf22d3eddfa09a2ea4484932bdaa75df | [
"MIT"
] | 36 | 2016-08-12T16:46:56.000Z | 2022-03-29T01:56:02.000Z | Estructura de datos basada en politicas. Funciona como un set<> pero es internamente indexado, cuenta con dos funciones adicionales.
.find_by_order(k) -> Retorna un iterador al k-esimo elemento, si k >= size() retona .end()
.order_of_key(x) -> Retorna cuantos elementos hay menores (<) que x
#include <ext/pb_ds/assoc_c... | 50.4 | 132 | 0.779762 | CarlosSalazar84 |
e8a090e44d178debc32f6e978ce47515e1f56989 | 1,291 | cpp | C++ | Graphs/graph.cpp | hneralla/algorithms | 73479196f4d0678b09bcfbc2b1f7e96669f9fea5 | [
"Apache-2.0"
] | null | null | null | Graphs/graph.cpp | hneralla/algorithms | 73479196f4d0678b09bcfbc2b1f7e96669f9fea5 | [
"Apache-2.0"
] | null | null | null | Graphs/graph.cpp | hneralla/algorithms | 73479196f4d0678b09bcfbc2b1f7e96669f9fea5 | [
"Apache-2.0"
] | null | null | null | /**
* @file graph.cpp
* @author Harith Neralla
* @date 7/8/2017
* @version 1.0
*
* @brief Implementation of directed graphs.
*/
#include <stdio.h>
#include <iostream>
#include "graph.hpp"
/**
* @brief Default constructor for Graph.
*
* @param V is an int: number of vertices.
* ... | 23.053571 | 129 | 0.538342 | hneralla |
e8a237f20432dcf73b2d5e0fb86c47308188460c | 999 | cpp | C++ | MathTest/EllipseTest.cpp | PremiumGraphicsCodes/CGLib | eecd73c5af1a9e0c044e7d675318dbb496aec6b5 | [
"MIT"
] | null | null | null | MathTest/EllipseTest.cpp | PremiumGraphicsCodes/CGLib | eecd73c5af1a9e0c044e7d675318dbb496aec6b5 | [
"MIT"
] | null | null | null | MathTest/EllipseTest.cpp | PremiumGraphicsCodes/CGLib | eecd73c5af1a9e0c044e7d675318dbb496aec6b5 | [
"MIT"
] | 1 | 2022-02-03T08:09:03.000Z | 2022-02-03T08:09:03.000Z | #include "gtest\gtest.h"
#include "../Math/Ellipse.h"
using namespace Crystal::Math;
TEST(EllipseTest, TestGetPosition)
{
Ellipse<float> e(Vector2d<float>(1,0.5));
EXPECT_EQ(Vector2d<float>(1, 0), e.getPosition(Angle<float>(Degree<float>(0))));
EXPECT_EQ(Vector2d<float>(0, 0.5), e.getPosition(Angle<floa... | 31.21875 | 85 | 0.678679 | PremiumGraphicsCodes |
e8abcec3fd45ae2b49a62dc8bcabdaa2cc667883 | 10,933 | cpp | C++ | main.cpp | michalMilewski-8/baczek | 67a54c50e85f2fea62fe4c5f23d0001e313c86af | [
"MIT"
] | null | null | null | main.cpp | michalMilewski-8/baczek | 67a54c50e85f2fea62fe4c5f23d0001e313c86af | [
"MIT"
] | null | null | null | main.cpp | michalMilewski-8/baczek | 67a54c50e85f2fea62fe4c5f23d0001e313c86af | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <iostream>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtc/quaternion.hpp>
#include <glm/gtx/quaternion.hpp>
#include <math.h>
#define _USE_MATH_DEF... | 28.92328 | 123 | 0.719839 | michalMilewski-8 |
e8b3a2ed7d3c78dfced440535027ab764a7d17fb | 410 | hh | C++ | src/messages/filedescription.hh | cristalcho/VeloxMR | d726257d0a7e8c5153883991e26e6d36cee4d8dc | [
"Apache-2.0"
] | 8 | 2016-11-29T11:08:16.000Z | 2021-07-22T09:31:21.000Z | src/messages/filedescription.hh | cristalcho/VeloxMR | d726257d0a7e8c5153883991e26e6d36cee4d8dc | [
"Apache-2.0"
] | 7 | 2016-11-29T06:22:37.000Z | 2019-01-31T11:13:09.000Z | src/messages/filedescription.hh | cristalcho/VeloxMR | d726257d0a7e8c5153883991e26e6d36cee4d8dc | [
"Apache-2.0"
] | 1 | 2019-01-15T05:16:59.000Z | 2019-01-15T05:16:59.000Z | #pragma once
#include "fileinfo.hh"
#include <vector>
namespace eclipse {
namespace messages {
struct FileDescription: public FileInfo {
FileDescription() = default;
~FileDescription() = default;
FileDescription& operator=(FileDescription&);
std::string get_type() const override;
std::vector<std::string... | 16.4 | 47 | 0.72439 | cristalcho |
e8b5727419961ad3b4c08616410226958223fe66 | 5,632 | cpp | C++ | Engine/Source/Framework/ModuleManager.cpp | wdrDarx/DEngine3 | 27e2de3b56b6d4c8705e8a0e36f5911d8651caa2 | [
"MIT"
] | 2 | 2022-01-11T21:15:31.000Z | 2022-02-22T21:14:33.000Z | Engine/Source/Framework/ModuleManager.cpp | wdrDarx/DEngine3 | 27e2de3b56b6d4c8705e8a0e36f5911d8651caa2 | [
"MIT"
] | null | null | null | Engine/Source/Framework/ModuleManager.cpp | wdrDarx/DEngine3 | 27e2de3b56b6d4c8705e8a0e36f5911d8651caa2 | [
"MIT"
] | null | null | null | #include "ModuleManager.h"
#include "Module.h"
#include "Core/Log.h"
#include "Framework/Application.h"
#include "Utils/FileSystem.h"
#include "Utils/VectorUtils.h"
#include "Core/Profiling.h"
void ModuleManager::LoadModule(const std::string& FullPath, const std::string& BaseSearchDirectory)
{
PROFILE_FUNC()
//full... | 25.031111 | 185 | 0.705433 | wdrDarx |
e8b5e0978cadf15618fec0ee3f655d2b21798ed3 | 4,108 | cpp | C++ | src/gdrive/revisions/RevisionsRevisionResource.cpp | Vadimatorik/googleQt | 814ad6f695bb8e88d6a773e69fb8c188febaab00 | [
"MIT"
] | 24 | 2016-12-03T09:12:43.000Z | 2022-03-29T19:51:48.000Z | src/gdrive/revisions/RevisionsRevisionResource.cpp | Vadimatorik/googleQt | 814ad6f695bb8e88d6a773e69fb8c188febaab00 | [
"MIT"
] | 4 | 2016-12-03T09:14:42.000Z | 2022-03-29T22:02:21.000Z | src/gdrive/revisions/RevisionsRevisionResource.cpp | Vadimatorik/googleQt | 814ad6f695bb8e88d6a773e69fb8c188febaab00 | [
"MIT"
] | 7 | 2018-01-01T09:14:10.000Z | 2022-03-29T21:50:11.000Z | /**********************************************************
DO NOT EDIT
This file was generated from stone specification "revisions"
Part of "Ardi - the organizer" project.
osoft4ardi@gmail.com
www.prokarpaty.net
***********************************************************/
#include "gdrive/revisions/RevisionsRevi... | 37.688073 | 165 | 0.695716 | Vadimatorik |
e8b8337aa4e6fbe9dcddf8b6b2ef391ec484acb2 | 283 | hh | C++ | include/ScriptEngine/ScriptEngine.hh | kmc7468/ScriptEngine | 5b9d19bc95a1d150cb63d285729249cf1afb1be6 | [
"MIT"
] | 1 | 2017-09-10T06:06:06.000Z | 2017-09-10T06:06:06.000Z | include/ScriptEngine/ScriptEngine.hh | kmc7468/ScriptEngine | 5b9d19bc95a1d150cb63d285729249cf1afb1be6 | [
"MIT"
] | null | null | null | include/ScriptEngine/ScriptEngine.hh | kmc7468/ScriptEngine | 5b9d19bc95a1d150cb63d285729249cf1afb1be6 | [
"MIT"
] | null | null | null | #ifndef SCRIPTENGINE_HEADER_SCRIPTENGINE_HH
# define SCRIPTENGINE_HEADER_SCRIPTENGINE_HH
# include <ScriptEngine/Engine.hh>
# include <ScriptEngine/LexerEngine.hh>
# include <ScriptEngine/LexRule.hh>
# include <ScriptEngine/ParserEngine.hh>
# include <ScriptEngine/Token.hh>
#endif | 28.3 | 44 | 0.823322 | kmc7468 |
e8bf37f03b6bd4932e1d0c3f2d72bd5c01627cef | 846 | cpp | C++ | Linked List/141_Linked-List-Cycle.cpp | YunWGui/LeetCode | 2587eca22195ec7d9263227554467ec4010cfe05 | [
"MIT"
] | null | null | null | Linked List/141_Linked-List-Cycle.cpp | YunWGui/LeetCode | 2587eca22195ec7d9263227554467ec4010cfe05 | [
"MIT"
] | null | null | null | Linked List/141_Linked-List-Cycle.cpp | YunWGui/LeetCode | 2587eca22195ec7d9263227554467ec4010cfe05 | [
"MIT"
] | null | null | null | /*
Title:
141. Linked List Cycle
141. 环形链表
Address:
https://leetcode-cn.com/problems/linked-list-cycle/
Tips:
142. Linked List Cycle II
https://leetcode-cn.com/problems/linked-list-cycle-ii/
*/
#include <iostream>
using namespace std;
struct ListNode {
int val;
ListNode* next;
ListNode... | 18.391304 | 60 | 0.530733 | YunWGui |
e8c0a14bd6d043bc0575aa67fd915e187ebd4920 | 1,434 | cpp | C++ | UVA/11953.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | UVA/11953.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | UVA/11953.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null |
// Problem : 11953 - Battleships
// Contest : UVa Online Judge
// URL : https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=3104
// Memory Limit : 32 MB
// Time Limit : 1000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)
#include<bits/stdc++.h>
#d... | 21.727273 | 117 | 0.543236 | DT3264 |
e8c11a20605899b619b837b86dfa06e2d195f028 | 1,577 | cpp | C++ | src/page_02/task081.cpp | berlios/pe | 5edd686481666c86a14804cfeae354a267d468be | [
"MIT"
] | null | null | null | src/page_02/task081.cpp | berlios/pe | 5edd686481666c86a14804cfeae354a267d468be | [
"MIT"
] | null | null | null | src/page_02/task081.cpp | berlios/pe | 5edd686481666c86a14804cfeae354a267d468be | [
"MIT"
] | null | null | null | #include <algorithm>
#include <limits>
#include <string>
#include <vector>
#include "base/common.h"
#include "base/task.h"
namespace {
struct Node {
Node(int new_weight) : weight(new_weight) {}
int weight;
int minimum_cost_to_end = std::numeric_limits<int>::max();
};
}
TASK(81) {
auto rows =
Split(Read... | 27.666667 | 79 | 0.583386 | berlios |
e8c12db6343bcfdebbc9688465701f9bad399ea4 | 10,278 | cpp | C++ | Sail/src/Sail/entities/components/ParticleEmitterComponent.cpp | BTH-StoraSpel-DXR/SPLASH | 1bf4c9b96cbcce570ed3a97f30a556a992e1ad08 | [
"MIT"
] | 12 | 2019-09-11T15:52:31.000Z | 2021-11-14T20:33:35.000Z | Sail/src/Sail/entities/components/ParticleEmitterComponent.cpp | BTH-StoraSpel-DXR/Game | 1bf4c9b96cbcce570ed3a97f30a556a992e1ad08 | [
"MIT"
] | 227 | 2019-09-11T08:40:24.000Z | 2020-06-26T14:12:07.000Z | Sail/src/Sail/entities/components/ParticleEmitterComponent.cpp | BTH-StoraSpel-DXR/Game | 1bf4c9b96cbcce570ed3a97f30a556a992e1ad08 | [
"MIT"
] | 2 | 2020-10-26T02:35:18.000Z | 2020-10-26T02:36:01.000Z | #include "pch.h"
#include "ParticleEmitterComponent.h"
#include "Sail/Application.h"
#include "Sail/graphics/shader/compute/ParticleComputeShader.h"
#include "API/DX12/shader/DX12ConstantBuffer.h"
#include "API/DX12/DX12Utils.h"
#include "API/DX12/DX12VertexBuffer.h"
#include "API/DX12/resources/DescriptorHeap.h"
Par... | 41.95102 | 277 | 0.742946 | BTH-StoraSpel-DXR |
e8cc2c86ff27379c977fa7d504201da26dc887c9 | 24 | cpp | C++ | src/Reference.cpp | phiwen96/ph_image | 282bdd835d721a561c4f3afcbb76af5f9bda87ba | [
"Apache-2.0"
] | null | null | null | src/Reference.cpp | phiwen96/ph_image | 282bdd835d721a561c4f3afcbb76af5f9bda87ba | [
"Apache-2.0"
] | null | null | null | src/Reference.cpp | phiwen96/ph_image | 282bdd835d721a561c4f3afcbb76af5f9bda87ba | [
"Apache-2.0"
] | null | null | null | #include "Reference.hpp" | 24 | 24 | 0.791667 | phiwen96 |
e8cc3daef0503ad49adf874198834ef3b8f9d8cf | 1,279 | cpp | C++ | rubikdetectorcore/src/imagesaver/ImageSaver.cpp | rohithdsouza/RubikDetector-Android | 3b6824d32e0034666d3f60375959b405cb58f0e0 | [
"Apache-2.0"
] | 42 | 2018-01-24T11:26:57.000Z | 2022-02-27T17:04:00.000Z | rubikdetectorcore/src/imagesaver/ImageSaver.cpp | rohithdsouza/RubikDetector-Android | 3b6824d32e0034666d3f60375959b405cb58f0e0 | [
"Apache-2.0"
] | 3 | 2017-11-18T08:00:30.000Z | 2017-11-18T08:08:31.000Z | rubikdetectorcore/src/imagesaver/ImageSaver.cpp | rohithdsouza/RubikDetector-Android | 3b6824d32e0034666d3f60375959b405cb58f0e0 | [
"Apache-2.0"
] | 9 | 2018-01-24T09:44:53.000Z | 2022-02-21T19:53:16.000Z | //
// Created by catalin on 31.07.2017.
//
#include <sstream>
#include <opencv2/highgui/highgui.hpp>
#include "../../include/rubikdetector/imagesaver/ImageSaver.hpp"
#include "../../include/rubikdetector/utils/CrossLog.hpp"
namespace rbdt {
ImageSaver::ImageSaver(const std::string saveLocation) : path(saveLocation) ... | 29.744186 | 100 | 0.691165 | rohithdsouza |
e8d00320e93106dda9299a54c518d5bc553a01ba | 23,174 | hpp | C++ | Solutions/Headers/Debug.hpp | kitegi/Edmonton | 774c9b2f72e7b2c6a3bc1b3329ef227ef39adf9d | [
"Unlicense"
] | 2 | 2021-07-16T13:30:10.000Z | 2021-07-16T18:17:40.000Z | Solutions/Headers/Debug.hpp | kitegi/Edmonton | 774c9b2f72e7b2c6a3bc1b3329ef227ef39adf9d | [
"Unlicense"
] | null | null | null | Solutions/Headers/Debug.hpp | kitegi/Edmonton | 774c9b2f72e7b2c6a3bc1b3329ef227ef39adf9d | [
"Unlicense"
] | 1 | 2021-04-16T22:56:07.000Z | 2021-04-16T22:56:07.000Z | /*****************************************************************************
dbg(...) macro
License (MIT):
Copyright (c) 2019 David Peter <mail@david-peter.de>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associate... | 28.931336 | 85 | 0.636748 | kitegi |
e8d277b45218ef01e5feb0cd7077d8fd5a4f791c | 5,010 | cpp | C++ | libace/model/HookAttribute.cpp | xguerin/ace | ad6e1bc4cb4f10d6cf5b782f623ec0eef13e000b | [
"MIT"
] | 5 | 2016-06-14T17:56:47.000Z | 2022-02-10T19:54:25.000Z | libace/model/HookAttribute.cpp | xguerin/ace | ad6e1bc4cb4f10d6cf5b782f623ec0eef13e000b | [
"MIT"
] | 42 | 2016-06-21T20:48:22.000Z | 2021-03-23T15:20:51.000Z | libace/model/HookAttribute.cpp | xguerin/ace | ad6e1bc4cb4f10d6cf5b782f623ec0eef13e000b | [
"MIT"
] | 1 | 2016-10-02T02:58:49.000Z | 2016-10-02T02:58:49.000Z | /**
* Copyright (c) 2016 Xavier R. Guerin
*
* 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 reexaction, including without limitation the rights
* to use, copy, modify, merge, pu... | 26.09375 | 80 | 0.642116 | xguerin |
e8d6d80445ce9c6e527dc2690f3ce41e9380d1e8 | 985 | cpp | C++ | 1.6/1.6/Source.cpp | albusshin/CTCI | 0794c9f78cc881a60daf883ba2caa5d82bb8833d | [
"CC0-1.0"
] | 2 | 2015-03-25T09:33:38.000Z | 2016-05-23T06:57:31.000Z | 1.6/1.6/Source.cpp | albusshin/CTCI | 0794c9f78cc881a60daf883ba2caa5d82bb8833d | [
"CC0-1.0"
] | null | null | null | 1.6/1.6/Source.cpp | albusshin/CTCI | 0794c9f78cc881a60daf883ba2caa5d82bb8833d | [
"CC0-1.0"
] | null | null | null | #include <iostream>
using namespace std;
void rotateClockwise90(char **arr, int n) {
for (int i = 0; i < n / 2; i++) {
for (int j = i; j < n - i - 1; j++) {
char tmp = arr[n-j-1][i];
arr[n-j-1][i] = arr[n-i-1][n-j-1];
arr[n-i-1][n-j-1] = arr[j][n-i-1];
arr[j][n-i-1] = arr[i][j];
arr[i][j] = tmp;
}
... | 21.413043 | 52 | 0.53401 | albusshin |
e8db47d1e31ceef89f85ba475967a4ade84a0353 | 1,316 | cpp | C++ | Esami/Laboratorio20110912/ppm.cpp | eMDi94/EDM-ingmo | 2b53194d862dea87a1f95305511c70c155dcc42c | [
"MIT"
] | 2 | 2018-08-16T00:34:55.000Z | 2019-02-10T00:59:05.000Z | Esami/Laboratorio20110912/ppm.cpp | eMDi94/EDM-ingmo | 2b53194d862dea87a1f95305511c70c155dcc42c | [
"MIT"
] | null | null | null | Esami/Laboratorio20110912/ppm.cpp | eMDi94/EDM-ingmo | 2b53194d862dea87a1f95305511c70c155dcc42c | [
"MIT"
] | null | null | null | #include "ppm.h"
#include <string>
using namespace std;
using namespace core;
using namespace ppm;
bool ppm::load_ppm(istream& is, mat<vec3b>& img) {
string magic;
is >> magic;
is.get();
if ((magic != "P3" && magic != "P6") || !is)
return false;
if (is.peek() == '#') {
string comment;
getl... | 21.225806 | 94 | 0.540274 | eMDi94 |
e8ddfafe0e9aa8bd809bc5f289ac5758d3953ae3 | 1,819 | cpp | C++ | core/MaterialData.cpp | jmppmj/3dgameengine_jillplatts | 64f472322423aa4d2c8be5366f36d78dde9f568b | [
"MIT"
] | null | null | null | core/MaterialData.cpp | jmppmj/3dgameengine_jillplatts | 64f472322423aa4d2c8be5366f36d78dde9f568b | [
"MIT"
] | null | null | null | core/MaterialData.cpp | jmppmj/3dgameengine_jillplatts | 64f472322423aa4d2c8be5366f36d78dde9f568b | [
"MIT"
] | null | null | null | #include "MaterialData.hpp"
MaterialData::MaterialData() {}
MaterialData::~MaterialData() {
allDiffuseTex.clear();
allSpecularTex.clear();
allNormalsTex.clear();
}
void MaterialData::clearDiffuseTex() {
allDiffuseTex.clear();
}
void MaterialData::clearSpecularTex() {
allSpecularTex.clear();
}
void MaterialData... | 19.55914 | 56 | 0.714129 | jmppmj |
e8e905b70542ebd850c1d1e06332d155d5059ff7 | 909 | cc | C++ | lambda_to_cfun/test.cc | dearoneesama/ctut | 1a0fe75f435bc7b50dbeefa0ecb5eeed62a89f55 | [
"BSL-1.0"
] | null | null | null | lambda_to_cfun/test.cc | dearoneesama/ctut | 1a0fe75f435bc7b50dbeefa0ecb5eeed62a89f55 | [
"BSL-1.0"
] | null | null | null | lambda_to_cfun/test.cc | dearoneesama/ctut | 1a0fe75f435bc7b50dbeefa0ecb5eeed62a89f55 | [
"BSL-1.0"
] | null | null | null | #include <iostream>
#include "../queue/eventqueue.h"
#include "l2cf.hh"
using namespace oneesama;
int main() {
{
auto yolo = l2cf{[i = 0] (bool &, int start) mutable {
return start + i++;
}};
// get pointers
auto (*cb)(int, void *) -> int = yolo.get_cfnptr();
... | 25.25 | 90 | 0.522552 | dearoneesama |
e8ebc751759775703936891785c159098c4df36d | 87 | cpp | C++ | examples/12_module/08_arrays_dyn_1/bank_account.cpp | acc-cosc-1337-spring-2019/acc-cosc-1337-spring-2019-TranBran | 91728f8f8f324550c43bf056d11b63f75b4b2329 | [
"MIT"
] | null | null | null | examples/12_module/08_arrays_dyn_1/bank_account.cpp | acc-cosc-1337-spring-2019/acc-cosc-1337-spring-2019-TranBran | 91728f8f8f324550c43bf056d11b63f75b4b2329 | [
"MIT"
] | null | null | null | examples/12_module/08_arrays_dyn_1/bank_account.cpp | acc-cosc-1337-spring-2019/acc-cosc-1337-spring-2019-TranBran | 91728f8f8f324550c43bf056d11b63f75b4b2329 | [
"MIT"
] | null | null | null | #include "bank_account.h
//
BankAccount::int get_balance()const
{
return balance;
} | 9.666667 | 35 | 0.724138 | acc-cosc-1337-spring-2019 |
e8f1fd8c499b851dde52e7bcc3749119d92b82e8 | 590 | cpp | C++ | House Robber.cpp | liuslevis/leetcode | 3447b338cd4efc7d817e35e182dda3a53899b8c2 | [
"MIT"
] | null | null | null | House Robber.cpp | liuslevis/leetcode | 3447b338cd4efc7d817e35e182dda3a53899b8c2 | [
"MIT"
] | null | null | null | House Robber.cpp | liuslevis/leetcode | 3447b338cd4efc7d817e35e182dda3a53899b8c2 | [
"MIT"
] | null | null | null | // 5min 5 WA due to ...
// Notice: usage of *max_element(v.begin(), v.begin()+1 + 1)
class Solution {
public:
int rob(vector<int>& nums) {
if (nums.size() == 0) return 0;
if (nums.size() == 1) return nums[0];
if (nums.size() == 2) return max(nums[0], nums[1]);
vector<int> f(... | 28.095238 | 70 | 0.455932 | liuslevis |
e8f6838a18763b6bd876533014cf3f5ee27cddc6 | 4,832 | cpp | C++ | snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.FontDialogMustExist/CPP/form1.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 834 | 2017-06-24T10:40:36.000Z | 2022-03-31T19:48:51.000Z | snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.FontDialogMustExist/CPP/form1.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 7,042 | 2017-06-23T22:34:47.000Z | 2022-03-31T23:05:23.000Z | snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.FontDialogMustExist/CPP/form1.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 1,640 | 2017-06-23T22:31:39.000Z | 2022-03-31T02:45:37.000Z |
#using <System.Drawing.dll>
#using <System.dll>
#using <System.Windows.Forms.dll>
// The following code example demonstrates using the FontDialog.MinSize,
// FontDialog.MaxSize, and FontDialog.ShowEffects members, and
// handling of Apply event.
using namespace System::Windows::Forms;
public ref class Form1: publi... | 29.284848 | 90 | 0.614238 | BohdanMosiyuk |
e8f7c2472eb1df75faf5401d2bcfbd326698eb97 | 3,058 | cc | C++ | python/kratos_tb.cc | IanBoyanZhang/kratos | 4865e71e657c770fdc86528fcd56918e6f2103a1 | [
"BSD-2-Clause"
] | 39 | 2019-10-07T16:42:00.000Z | 2022-03-31T20:33:28.000Z | python/kratos_tb.cc | IanBoyanZhang/kratos | 4865e71e657c770fdc86528fcd56918e6f2103a1 | [
"BSD-2-Clause"
] | 164 | 2019-06-29T03:43:19.000Z | 2021-11-16T06:37:13.000Z | python/kratos_tb.cc | IanBoyanZhang/kratos | 4865e71e657c770fdc86528fcd56918e6f2103a1 | [
"BSD-2-Clause"
] | 11 | 2019-07-13T19:24:30.000Z | 2022-01-21T22:52:18.000Z | #include <pybind11/functional.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include "../src/tb.hh"
namespace py = pybind11;
// test bench module
void init_tb(py::module &m) {
using namespace kratos;
py::class_<TestBench>(m, "TestBench")
.def(py::init<Context *, const std::string &>())
... | 49.322581 | 100 | 0.603663 | IanBoyanZhang |
e8faeb1d4cbdbf1b0142e61b9d7abdff11ad1c76 | 11,088 | cpp | C++ | Examples/HexMap/HexLayer.cpp | Aaron-Berland/Nova | 1b8587548c58adda27bd2b699bf4229e18f30e13 | [
"Apache-2.0"
] | null | null | null | Examples/HexMap/HexLayer.cpp | Aaron-Berland/Nova | 1b8587548c58adda27bd2b699bf4229e18f30e13 | [
"Apache-2.0"
] | null | null | null | Examples/HexMap/HexLayer.cpp | Aaron-Berland/Nova | 1b8587548c58adda27bd2b699bf4229e18f30e13 | [
"Apache-2.0"
] | null | null | null | #include "HexLayer.h"
#include <Nova/Renderer/RenderCommand.h>
#include <Nova/Renderer/Renderer.h>
#include <Nova/Input.h>
#include <Nova/Window.h>
#include <Nova/Application.h>
#include <Nova/KeyCodes.h>
#include <Nova/MouseButtonCodes.h>
#include <initializer_list>
#include <imgui.h>
#include <functional>
#include <... | 35.538462 | 125 | 0.718615 | Aaron-Berland |
33000ee98ac5341cc40e314692ae229b42952767 | 2,533 | cpp | C++ | options/slider.cpp | cpuwolf/opentrack | 5541cfc68d87c2fc254eb2f2a5aad79831871a88 | [
"ISC"
] | 1 | 2018-02-06T08:36:39.000Z | 2018-02-06T08:36:39.000Z | options/slider.cpp | cpuwolf/opentrack | 5541cfc68d87c2fc254eb2f2a5aad79831871a88 | [
"ISC"
] | null | null | null | options/slider.cpp | cpuwolf/opentrack | 5541cfc68d87c2fc254eb2f2a5aad79831871a88 | [
"ISC"
] | null | null | null | /* Copyright (c) 2015-2016, Stanislaw Halik <sthalik@misaki.pl>
* Permission to use, copy, modify, and/or distribute this
* software for any purpose with or without fee is hereby granted,
* provided that the above copyright notice and this permission
* notice appear in all copies.
*/
#include "slider.hpp"
#inclu... | 22.026087 | 91 | 0.590209 | cpuwolf |
330295dd3fd02068e9af27ee0bc17a90037e451d | 17,897 | cpp | C++ | SkeletonBasics-D2D_playbacktest/SkeletonBasics.cpp | drchangliu/KineticAnalytics | 7fc906900ec44f286088c2b294a29b341e2bd7c0 | [
"MIT"
] | 3 | 2015-02-26T21:12:48.000Z | 2015-03-26T21:45:40.000Z | SkeletonBasics-D2D_playbacktest/SkeletonBasics.cpp | drchangliu/KineticAnalytics | 7fc906900ec44f286088c2b294a29b341e2bd7c0 | [
"MIT"
] | 1 | 2015-02-26T21:12:21.000Z | 2015-02-26T21:12:21.000Z | SkeletonBasics-D2D_playbacktest/SkeletonBasics.cpp | drchangliu/KineticAnalytics | 7fc906900ec44f286088c2b294a29b341e2bd7c0 | [
"MIT"
] | null | null | null | //------------------------------------------------------------------------------
// <copyright file="SkeletonBasics.cpp" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
//#include <af... | 31.901961 | 148 | 0.673074 | drchangliu |
3305725f01103eac0b76ed109d2de9202346de3d | 1,736 | cpp | C++ | voxblox-plusplus/global_segment_map_node/src/feature_ros_tools.cpp | Skywalker666666/visual_mapping | d28d1e2c800c08f0a3a2b32821e7cae09dfe744e | [
"MIT"
] | 3 | 2021-05-17T10:55:40.000Z | 2021-09-04T08:57:46.000Z | voxblox-plusplus/global_segment_map_node/src/feature_ros_tools.cpp | Skywalker666666/visual_mapping | d28d1e2c800c08f0a3a2b32821e7cae09dfe744e | [
"MIT"
] | null | null | null | voxblox-plusplus/global_segment_map_node/src/feature_ros_tools.cpp | Skywalker666666/visual_mapping | d28d1e2c800c08f0a3a2b32821e7cae09dfe744e | [
"MIT"
] | 1 | 2021-06-09T13:38:19.000Z | 2021-06-09T13:38:19.000Z | #include "voxblox_gsm/feature_ros_tools.h"
namespace voxblox {
namespace voxblox_gsm {
std_msgs::ColorRGBA getColorFromBlockFeatures(
const double max_number_of_features, const double number_of_features) {
const double ratio =
2 * std::min(1.0, number_of_features / max_number_of_features);
const double ... | 31 | 80 | 0.6803 | Skywalker666666 |
330951916b0668d1849dd38abcc7077e13e99d12 | 3,210 | cpp | C++ | Source Code/Core/Time/ApplicationTimer.cpp | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | null | null | null | Source Code/Core/Time/ApplicationTimer.cpp | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | null | null | null | Source Code/Core/Time/ApplicationTimer.cpp | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Headers/ApplicationTimer.h"
#include "Utility/Headers/Localization.h"
#include "Core/Headers/StringHelper.h"
namespace Divide::Time {
namespace {
// Time stamp at application initialization
TimeValue g_startupTicks;
// Previous frame's time stamp
TimeValu... | 34.891304 | 125 | 0.649221 | IonutCava |
330a2964df6a16524177ee6c4353632c7daa75e6 | 483 | cpp | C++ | Tga3D/Source/tga2dcore/tga2d/text/token.cpp | sarisman84/C-CommonUtilities | a3649c32232ec342c25b804001c16c295885ce0c | [
"MIT"
] | 1 | 2022-03-10T11:43:24.000Z | 2022-03-10T11:43:24.000Z | Tga3D/Source/tga2dcore/tga2d/text/token.cpp | sarisman84/C-CommonUtilities | a3649c32232ec342c25b804001c16c295885ce0c | [
"MIT"
] | null | null | null | Tga3D/Source/tga2dcore/tga2d/text/token.cpp | sarisman84/C-CommonUtilities | a3649c32232ec342c25b804001c16c295885ce0c | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include <tga2d/text/Token.h>
///////////////////////////////////////////////////////////////////////////////////////////
Token::Token(int tokenID, std::string tokenAsStr)
: m_tokenID(tokenID),
m_matchPos(0),
m_tokenAsStr(tokenAsStr)
{
}
//////////////////////////////////////////////... | 30.1875 | 92 | 0.277433 | sarisman84 |
330bb6979fae851a61c3d167ba7afe4b19d18d10 | 134 | cpp | C++ | code/Instructions/ZeroRegInstr/NoopInstr/NoopInstr.cpp | LLDevLab/LLDevCompiler | f73f13d38069ab5b571fb136e068eb06387caf4c | [
"BSD-3-Clause"
] | 5 | 2019-10-22T18:37:43.000Z | 2020-12-09T14:00:03.000Z | code/Instructions/ZeroRegInstr/NoopInstr/NoopInstr.cpp | LLDevLab/LLDevCompiler | f73f13d38069ab5b571fb136e068eb06387caf4c | [
"BSD-3-Clause"
] | 1 | 2020-03-29T15:30:45.000Z | 2020-03-29T15:30:45.000Z | code/Instructions/ZeroRegInstr/NoopInstr/NoopInstr.cpp | LLDevLab/LLDevCompiler | f73f13d38069ab5b571fb136e068eb06387caf4c | [
"BSD-3-Clause"
] | 1 | 2019-12-23T06:51:45.000Z | 2019-12-23T06:51:45.000Z | #include "NoopInstr.h"
NoopInstr::NoopInstr(token_pos pos) : ZeroRegInstr(pos)
{
}
uint32_t NoopInstr::GetOpcode()
{
return 0x00;
} | 13.4 | 55 | 0.731343 | LLDevLab |
330d73b306d40ea1ceacd0036723440fd25cf900 | 3,577 | cpp | C++ | BRDF_Sampler/main.cpp | Mr-Devin/GraphicAlgorithm | 58877e6a8dba75ab171b0d89260defaffa22d047 | [
"MIT"
] | 1 | 2021-11-16T11:40:04.000Z | 2021-11-16T11:40:04.000Z | BRDF_Sampler/main.cpp | younha169/GraphicAlgorithm | 93287ae4d4171764e788371887c4fd1549304552 | [
"MIT"
] | null | null | null | BRDF_Sampler/main.cpp | younha169/GraphicAlgorithm | 93287ae4d4171764e788371887c4fd1549304552 | [
"MIT"
] | null | null | null | #include <gli.hpp>
#include <iostream>
#include <fstream>
#include <sstream>
#include <stdexcept>
#include <map>
#include <glm/glm.hpp>
using namespace std;
const float PI = 3.14159265358979323846264338327950288;
float RadicalInverse_VdC(unsigned int bits)
{
bits = (bits << 16u) | (bits >> 16u);
bits = ((bits & 0x5... | 26.69403 | 97 | 0.604697 | Mr-Devin |
3310f07dafeb235799873103c6eb80c7294f2cb4 | 1,159 | cpp | C++ | src/nnfusion/core/operators/generic_op/generic_op_define/AddN.cpp | lynex/nnfusion | 6332697c71b6614ca6f04c0dac8614636882630d | [
"MIT"
] | 639 | 2020-09-05T10:00:59.000Z | 2022-03-30T08:42:39.000Z | src/nnfusion/core/operators/generic_op/generic_op_define/AddN.cpp | QPC-database/nnfusion | 99ada47c50f355ca278001f11bc752d1c7abcee2 | [
"MIT"
] | 252 | 2020-09-09T05:35:36.000Z | 2022-03-29T04:58:41.000Z | src/nnfusion/core/operators/generic_op/generic_op_define/AddN.cpp | QPC-database/nnfusion | 99ada47c50f355ca278001f11bc752d1c7abcee2 | [
"MIT"
] | 104 | 2020-09-05T10:01:08.000Z | 2022-03-23T10:59:13.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "nnfusion/core/operators/generic_op/generic_op.hpp"
REGISTER_OP(AddN).attr<nnfusion::op::OpConfig::any>("T").infershape(
[](std::shared_ptr<graph::GNode> gnode) -> void {
// enforce is like assert, but when thing goes wron... | 42.925926 | 98 | 0.577222 | lynex |
33175de52b19795adb6dd4367db1fcb5362c116f | 9,009 | cpp | C++ | CUDA/session7.cpp | corsario/esat-multithreading | 1adb947cbf5b7e4b6cc6e64973a03d558f041611 | [
"MIT"
] | 1 | 2015-04-23T07:09:11.000Z | 2015-04-23T07:09:11.000Z | CUDA/session7.cpp | corsario/esat-multithreading | 1adb947cbf5b7e4b6cc6e64973a03d558f041611 | [
"MIT"
] | null | null | null | CUDA/session7.cpp | corsario/esat-multithreading | 1adb947cbf5b7e4b6cc6e64973a03d558f041611 | [
"MIT"
] | null | null | null | #define NOMINMAX
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <string>
#include "cuda_runtime.h"
#include <mtUtils/Algorithms.hpp>
#include "CUDAUtils.hpp"
#include "SumIntVectors.cuh"
namespace test_runtime_api
{
const size_t numElementsToPrint = 4;
template<typenam... | 34.517241 | 150 | 0.549562 | corsario |
331945be1668931eaad88d7a2f2dcd24316176c1 | 1,041 | hpp | C++ | iehl/src/scene/wavefront/load_material_properties.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | iehl/src/scene/wavefront/load_material_properties.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | iehl/src/scene/wavefront/load_material_properties.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | #pragma once
#include <stb_image_resize.h>
#include <stb_image.h>
#include <tiny_obj_loader.h>
#include <iostream>
inline
void load_material_properties(
Scene& s,
const tinyobj::ObjReader& wavefront)
{
std::cout << "--Loading material properties." << std::endl;
auto& materials = wavefront.GetMateria... | 29.742857 | 68 | 0.594621 | the-last-willy |
331e0de18eef3f1dde47f0d90d2a102213121d52 | 3,949 | cpp | C++ | owCore/GroupQuality.cpp | adan830/OpenWow | 9b6e9c248bd185b1677fe616d2a3a81a35ca8894 | [
"Apache-2.0"
] | null | null | null | owCore/GroupQuality.cpp | adan830/OpenWow | 9b6e9c248bd185b1677fe616d2a3a81a35ca8894 | [
"Apache-2.0"
] | null | null | null | owCore/GroupQuality.cpp | adan830/OpenWow | 9b6e9c248bd185b1677fe616d2a3a81a35ca8894 | [
"Apache-2.0"
] | 1 | 2020-05-11T13:32:49.000Z | 2020-05-11T13:32:49.000Z | #include "stdafx.h"
// General
#include "GroupQuality.h"
enum R_SamplerState2 // TODO DELETE ME!!!
{
SS_FILTER_BILINEAR = 0x0000,
SS_FILTER_TRILINEAR = 0x0001,
SS_FILTER_POINT = 0x0002,
SS_ANISO1 = 0x0000,
SS_ANISO2 = 0x0004,
SS_ANISO4 = 0x0008,
SS_ANISO8 = 0x0010,
SS_ANISO16 = 0x0020,
SS_ADDRU_CLAMP = 0x0... | 18.453271 | 111 | 0.729552 | adan830 |
331f4f6ee758e2124a5e8165ce9f8270dff91762 | 2,856 | hpp | C++ | PhysicsSandbox/Physics2dTCS/Components/PhysicsSpace2dTCS.hpp | jodavis42/PhysicsSandbox | 3119caaa77721041440cdc1b3cf96d4bd9e2d98b | [
"MIT"
] | 1 | 2022-03-26T21:08:19.000Z | 2022-03-26T21:08:19.000Z | PhysicsSandbox/Physics2dTCS/Components/PhysicsSpace2dTCS.hpp | jodavis42/PhysicsSandbox | 3119caaa77721041440cdc1b3cf96d4bd9e2d98b | [
"MIT"
] | null | null | null | PhysicsSandbox/Physics2dTCS/Components/PhysicsSpace2dTCS.hpp | jodavis42/PhysicsSandbox | 3119caaa77721041440cdc1b3cf96d4bd9e2d98b | [
"MIT"
] | null | null | null | #pragma once
#include "Physics2dStandardTCS.hpp"
#include "Components/Collider2dTCS.hpp"
#include "Components/RigidBody2dTCS.hpp"
#include "Physics2dTCS/Utilities/Physics2dQueues.hpp"
#include "Physics2dCore/Queries/Collider2dCastResults.hpp"
namespace Physics2dCore
{
class ComponentCreatedEvent;
class CollisionLibr... | 37.090909 | 96 | 0.794118 | jodavis42 |
3321b476f8fcb0432578c36c2f4a4247caa07b5b | 1,267 | cpp | C++ | engine/source/unit_tests/MessageBuffer_test.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/source/unit_tests/MessageBuffer_test.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/source/unit_tests/MessageBuffer_test.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "gtest/gtest.h"
TEST(SW_Engine_MessageBuffer, insertion)
{
MessageBuffer mb(3);
mb.add_message("a", Colour::COLOUR_RED);
mb.add_message("b", Colour::COLOUR_GREEN);
mb.add_message("c", Colour::COLOUR_BLUE);
pair<string, Colour> exp_a = make_pair("a", Colour::COLOUR_RED);
EXPECT_EQ(exp_a, mb.get_me... | 24.365385 | 81 | 0.713496 | prolog |
332838e067b9ef6458971fe8f50acc4dd9a61871 | 1,378 | hpp | C++ | examples/tt.hpp | superchessengine/libchess | a169b5efe61bb8ce53eab7edf5445a78997fec80 | [
"MIT"
] | 4 | 2021-05-27T01:40:06.000Z | 2022-02-28T12:14:41.000Z | examples/tt.hpp | superchessengine/libchess | a169b5efe61bb8ce53eab7edf5445a78997fec80 | [
"MIT"
] | 4 | 2021-09-02T16:28:46.000Z | 2022-03-29T13:35:41.000Z | examples/tt.hpp | superchessengine/libchess | a169b5efe61bb8ce53eab7edf5445a78997fec80 | [
"MIT"
] | 4 | 2021-09-07T17:04:04.000Z | 2022-01-17T20:03:09.000Z | #ifndef TT_HPP
#define TT_HPP
#include <cstdint>
#include <cstring>
template <class T>
class TT {
public:
TT(unsigned int mb) : filled_{0} {
if (mb < 1) {
mb = 1;
}
max_entries_ = (mb * 1024 * 1024) / sizeof(T);
entries_ = new T[max_entries_];
}
~TT() {
... | 22.225806 | 78 | 0.572569 | superchessengine |
3329c824d926136e637cf138d845565732fe2a5f | 2,260 | cpp | C++ | leetcode/cpp/p208/p208.cpp | davidlunadeleon/leetcode | 3a3d7d3ec9b708982658b154f8e551ae9a9fb8c1 | [
"Unlicense"
] | 1 | 2020-08-20T23:27:13.000Z | 2020-08-20T23:27:13.000Z | leetcode/cpp/p208/p208.cpp | davidlunadeleon/leetcode | 3a3d7d3ec9b708982658b154f8e551ae9a9fb8c1 | [
"Unlicense"
] | null | null | null | leetcode/cpp/p208/p208.cpp | davidlunadeleon/leetcode | 3a3d7d3ec9b708982658b154f8e551ae9a9fb8c1 | [
"Unlicense"
] | null | null | null | // Source: https://leetcode.com/problems/implement-trie-prefix-tree/
// Date: 05.08.2020
// Solution by: David Luna
// Runtime: 208ms
// Memory usage: 36.1 MB
/*
Note: This solution contains memory leaks that I plan to solve later.
For the time being, I would not use it as a correct solution of the
problem.
*/
#in... | 19.824561 | 70 | 0.615487 | davidlunadeleon |
06a27ff978a1b9f333372fe4831eaec775e1ebdd | 648 | cpp | C++ | examples/dynamic/min-coin-change.cpp | priyanksingh02/ds-algo | d024f5e6313a1b7bf3fcbc9ad775cb7bdd986916 | [
"CC0-1.0"
] | 1 | 2021-06-21T18:09:31.000Z | 2021-06-21T18:09:31.000Z | examples/dynamic/min-coin-change.cpp | priyanksingh02/ds-algo | d024f5e6313a1b7bf3fcbc9ad775cb7bdd986916 | [
"CC0-1.0"
] | null | null | null | examples/dynamic/min-coin-change.cpp | priyanksingh02/ds-algo | d024f5e6313a1b7bf3fcbc9ad775cb7bdd986916 | [
"CC0-1.0"
] | 1 | 2021-03-12T11:35:37.000Z | 2021-03-12T11:35:37.000Z | #include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
int n;
int coins[1000010];
bool ready[1000010];
int value[1000010];
const int INF = 100000010;
int solve(int x) {
if ( x < 0) return INF;
if( x == 0) return 0;
if (ready[x]) return value[x];
int best = INF;
for(int i ... | 18 | 48 | 0.54784 | priyanksingh02 |
06a44855774166dc68610b1c771bdcf508a9c04e | 3,451 | hpp | C++ | Framework/EventFramework/EventDirector.hpp | SergeyIvanov87/TTL | 321e38ff2885c231088846f6d37e8fe1d3faf104 | [
"BSD-3-Clause"
] | 5 | 2019-03-20T07:02:02.000Z | 2020-05-09T18:16:27.000Z | Framework/EventFramework/EventDirector.hpp | SergeyIvanov87/TTL | 321e38ff2885c231088846f6d37e8fe1d3faf104 | [
"BSD-3-Clause"
] | null | null | null | Framework/EventFramework/EventDirector.hpp | SergeyIvanov87/TTL | 321e38ff2885c231088846f6d37e8fe1d3faf104 | [
"BSD-3-Clause"
] | null | null | null | #ifndef EVENT_DIRECTOR_HPP
#define EVENT_DIRECTOR_HPP
#include <tuple>
#include <set>
#include <array>
#include <vector>
#include <functional>
#include <future>
#include <type_traits>
#include "EventDirector.h"
#include "Interfaces/IEventConsumer.hpp"
#include "Framework/Utils/CTimeUtils.h"
template<class Consumer>
te... | 27.173228 | 190 | 0.644741 | SergeyIvanov87 |
06a8a32811bafe27473d7e79e1802c523b33b62b | 1,142 | cpp | C++ | utils/file_manager.cpp | GP-S/HOTS | 85903015033184694e3b2b70af401a0ea5de11b7 | [
"Unlicense",
"MIT"
] | 1 | 2021-05-30T02:13:37.000Z | 2021-05-30T02:13:37.000Z | utils/file_manager.cpp | GP-S/HOTS | 85903015033184694e3b2b70af401a0ea5de11b7 | [
"Unlicense",
"MIT"
] | null | null | null | utils/file_manager.cpp | GP-S/HOTS | 85903015033184694e3b2b70af401a0ea5de11b7 | [
"Unlicense",
"MIT"
] | null | null | null | #include "file_manager.h"
bool saveObject(char* file, void* Object, int SizeOfObject) {
try
{
if (file == "") throw "wrong path";
std::ofstream outfile(file, std::ios::out | std::ios::app | std::ios::binary);
if (!outfile)
{
std::cerr << "\a\n\nError while trying to open the file : " << *file <<"\n\n";
... | 20.392857 | 113 | 0.563047 | GP-S |
06a90e0c12c7844902c61e28488eec5cbc15861d | 2,654 | cpp | C++ | convert.cpp | Laakeri/phylogeny-aaai | 4b97a6da97fc2be0e466c2197fbd4b51c036cb5f | [
"MIT"
] | null | null | null | convert.cpp | Laakeri/phylogeny-aaai | 4b97a6da97fc2be0e466c2197fbd4b51c036cb5f | [
"MIT"
] | null | null | null | convert.cpp | Laakeri/phylogeny-aaai | 4b97a6da97fc2be0e466c2197fbd4b51c036cb5f | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(int argc, char** argv){
assert(argc == 2);
if (string(argv[1]) == "tophy") {
int n,m;
cin>>n>>m;
cout<<n<<" "<<m<<endl;
vector<int> ss(m);
for (int i=0;i<m;i++){
cin>>ss[i];
assert(ss[i]>0);
}
for (int i=0;i<n;i++){
... | 19.659259 | 51 | 0.351168 | Laakeri |
06a9bd54f3179dbc37157bf8702a94f21acff596 | 975 | cpp | C++ | clover/src/shell.cpp | vas0x59/clover | 513f4f419a6a2de476d2838db5c1c244de6b3e44 | [
"MIT"
] | 146 | 2020-05-04T10:11:43.000Z | 2022-03-28T04:41:57.000Z | clover/src/shell.cpp | vas0x59/clover | 513f4f419a6a2de476d2838db5c1c244de6b3e44 | [
"MIT"
] | 132 | 2017-07-23T11:49:11.000Z | 2020-04-09T01:15:53.000Z | clover/src/shell.cpp | vas0x59/clover | 513f4f419a6a2de476d2838db5c1c244de6b3e44 | [
"MIT"
] | 149 | 2020-04-28T07:45:25.000Z | 2022-03-30T13:48:01.000Z | #include <ros/ros.h>
#include <cstdio>
#include <iostream>
#include <memory>
#include <stdexcept>
#include <string>
#include <array>
#include <std_msgs/String.h>
#include <clover/Execute.h>
ros::Duration timeout;
// TODO: handle timeout
bool handle(clover::Execute::Request& req, clover::Execute::Response& res)
{
RO... | 19.117647 | 74 | 0.657436 | vas0x59 |
06af9fc20013acf5648f333355257310b7be60f8 | 782 | cpp | C++ | code/cheonsa/cheonsa__types_triangle64.cpp | Olaedaria/cheonsa | cf366a5869a4bf0872a0d8dc6a01a68118cfc92e | [
"Unlicense"
] | null | null | null | code/cheonsa/cheonsa__types_triangle64.cpp | Olaedaria/cheonsa | cf366a5869a4bf0872a0d8dc6a01a68118cfc92e | [
"Unlicense"
] | null | null | null | code/cheonsa/cheonsa__types_triangle64.cpp | Olaedaria/cheonsa | cf366a5869a4bf0872a0d8dc6a01a68118cfc92e | [
"Unlicense"
] | null | null | null | #include "cheonsa__types_triangle64.h"
#include "cheonsa__ops_geometry.h"
#include "cheonsa__ops_vector.h"
namespace cheonsa
{
void_c triangle64_c::make_planes_from_points()
{
face_plane = ops::make_plane64_from_triangle( point_a, point_b, point_c );
edge_plane_ab = ops::make_plane64_from_normal_and_point( ops:... | 46 | 172 | 0.792839 | Olaedaria |
06b2741d92f67093de28a0285a27eb2c5a6b094a | 1,751 | cpp | C++ | src/autonomy/compiler/translator_exceptions.cpp | medlefsen/autonomy | ed9da86e9be98dd2505a7f02af9cd4db995e6baf | [
"Artistic-2.0"
] | 2 | 2015-05-31T20:26:51.000Z | 2022-02-19T16:11:14.000Z | src/autonomy/compiler/translator_exceptions.cpp | medlefsen/autonomy | ed9da86e9be98dd2505a7f02af9cd4db995e6baf | [
"Artistic-2.0"
] | null | null | null | src/autonomy/compiler/translator_exceptions.cpp | medlefsen/autonomy | ed9da86e9be98dd2505a7f02af9cd4db995e6baf | [
"Artistic-2.0"
] | null | null | null | //! \file translator_exceptions.cpp
//! \brief Implementation of translator exception classes.
#include <boost/lexical_cast.hpp>
#include <autonomy/compiler/translator_exceptions.hpp>
namespace autonomy
{
namespace compiler
{
//! \class translator_exception
//! \brief Generic translator excep... | 35.734694 | 80 | 0.540263 | medlefsen |
06b50ca76d67925001340533dc8dd8dda96986bd | 1,362 | cpp | C++ | src/titanic/controller/AbstractController.cpp | LaroyenneG/Fuzzy-Logic | 0d2911c02b5bd4eedcca42925e7e35c5dd450bf8 | [
"Apache-2.0"
] | null | null | null | src/titanic/controller/AbstractController.cpp | LaroyenneG/Fuzzy-Logic | 0d2911c02b5bd4eedcca42925e7e35c5dd450bf8 | [
"Apache-2.0"
] | null | null | null | src/titanic/controller/AbstractController.cpp | LaroyenneG/Fuzzy-Logic | 0d2911c02b5bd4eedcca42925e7e35c5dd450bf8 | [
"Apache-2.0"
] | null | null | null |
#include "AbstractController.h"
namespace controller {
AbstractController::AbstractController(Model *_model, View *_view, Draftsman *_draftsman)
: draftsman(_draftsman), model(_model), view(_view) {
}
void AbstractController::updateView() const {
mutex.lock();
draftsman->d... | 29.608696 | 104 | 0.616006 | LaroyenneG |
06b84fac02e1ec1dc1c4c1af6500c62a3c078af6 | 1,152 | hpp | C++ | examens/bruno_malenfant/final-2009/numero6/graphe.hpp | MFarradji/inf3105 | 93ffd6a237acbb67072d69fb5a8be02439f59a04 | [
"MIT"
] | null | null | null | examens/bruno_malenfant/final-2009/numero6/graphe.hpp | MFarradji/inf3105 | 93ffd6a237acbb67072d69fb5a8be02439f59a04 | [
"MIT"
] | null | null | null | examens/bruno_malenfant/final-2009/numero6/graphe.hpp | MFarradji/inf3105 | 93ffd6a237acbb67072d69fb5a8be02439f59a04 | [
"MIT"
] | 2 | 2020-10-01T14:16:56.000Z | 2021-07-06T16:31:33.000Z | #include <string>
#include <map>
#include <vector>
using namespace std;
template <typename T>
class Sommet {
public:
string identification;
T information;
};
template <typename T>
class ListeAdjacence {
private:
vector< Sommet<T> > _liste;
public:
void ajouterElement(const Sommet<T>& a_sommet);... | 25.6 | 102 | 0.702257 | MFarradji |
06b8e660c70f01c86587ba63911e2f8dfcf96771 | 556 | cpp | C++ | HW Peter/Zadacha 3.cpp | MihailTsvetogorov/SoftUni-Random-Dumb-Projects | c7eeedb4701a0b075ab0a86f91111a3875b29d45 | [
"MIT"
] | null | null | null | HW Peter/Zadacha 3.cpp | MihailTsvetogorov/SoftUni-Random-Dumb-Projects | c7eeedb4701a0b075ab0a86f91111a3875b29d45 | [
"MIT"
] | null | null | null | HW Peter/Zadacha 3.cpp | MihailTsvetogorov/SoftUni-Random-Dumb-Projects | c7eeedb4701a0b075ab0a86f91111a3875b29d45 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int a=1, c, A, B, b=1;
cin>>A>>B;
while (2+2==4)
{
c=a+b;
a=b;
b=c;
if (c>=A&&c<=B)cout<<c<<" ";
else if (c>B)break;
}
}
/* C#
using System;
namespace Upr
{
class Zadacha3
{
public static void Main()
{
int c;
in... | 13.9 | 41 | 0.471223 | MihailTsvetogorov |
06c086534fa771c6bb0d9e5798b5cd625686bb31 | 1,498 | cpp | C++ | kv/src/Signal.cpp | sobkulir/papyruskv | 4802ec10121f5b8ce20fd7ab3c077d3d9ed0ccac | [
"BSD-3-Clause"
] | 1 | 2018-05-13T02:29:05.000Z | 2018-05-13T02:29:05.000Z | kv/src/Signal.cpp | sobkulir/papyruskv | 4802ec10121f5b8ce20fd7ab3c077d3d9ed0ccac | [
"BSD-3-Clause"
] | null | null | null | kv/src/Signal.cpp | sobkulir/papyruskv | 4802ec10121f5b8ce20fd7ab3c077d3d9ed0ccac | [
"BSD-3-Clause"
] | 1 | 2021-12-10T19:31:37.000Z | 2021-12-10T19:31:37.000Z | #include <papyrus/kv.h>
#include "Signal.h"
#include "Debug.h"
#include "Platform.h"
#include "Command.h"
namespace papyruskv {
Signal::Signal(Platform* platform) {
dispatcher_ = platform->dispatcher();
pthread_mutex_init(&mutex_, NULL);
}
Signal::~Signal() {
pthread_mutex_destroy(&mutex_);
for (auto... | 24.16129 | 62 | 0.594793 | sobkulir |
06c61a9941355b8855905b34b9fcbada41547848 | 1,885 | cpp | C++ | poly/staticpoly.cpp | ywen-cmd/C-Templates | 3960bd4e852ed0d3b4db5203f4d125b4a725dd48 | [
"FSFAP"
] | 11 | 2017-08-23T00:59:21.000Z | 2021-02-20T20:36:09.000Z | poly/staticpoly.cpp | ywen-cmd/C-Templates | 3960bd4e852ed0d3b4db5203f4d125b4a725dd48 | [
"FSFAP"
] | 1 | 2017-03-15T15:17:16.000Z | 2017-03-15T15:17:16.000Z | poly/staticpoly.cpp | ywen-cmd/C-Templates | 3960bd4e852ed0d3b4db5203f4d125b4a725dd48 | [
"FSFAP"
] | 8 | 2017-08-24T06:50:02.000Z | 2021-02-20T20:36:12.000Z | /* The following code example is taken from the book
* "C++ Templates - The Complete Guide"
* by David Vandevoorde and Nicolai M. Josuttis, Addison-Wesley, 2002
*
* (C) Copyright David Vandevoorde and Nicolai M. Josuttis 2002.
* Permission to copy, use, modify, sell and distribute this software
* is granted provi... | 34.272727 | 72 | 0.645093 | ywen-cmd |
06c89660ac31418503bc8207c3c0be5b00604a41 | 3,520 | cpp | C++ | utils/process/deadline_killer_test.cpp | racktopsystems/kyua | 1929dccc5cda71cddda71485094822d3c3862902 | [
"BSD-3-Clause"
] | 106 | 2015-01-20T14:49:12.000Z | 2022-03-09T01:31:51.000Z | utils/process/deadline_killer_test.cpp | racktopsystems/kyua | 1929dccc5cda71cddda71485094822d3c3862902 | [
"BSD-3-Clause"
] | 81 | 2015-02-23T23:23:41.000Z | 2021-07-21T13:51:56.000Z | utils/process/deadline_killer_test.cpp | racktopsystems/kyua | 1929dccc5cda71cddda71485094822d3c3862902 | [
"BSD-3-Clause"
] | 27 | 2015-09-30T20:33:34.000Z | 2022-02-14T04:00:08.000Z | // Copyright 2015 The Kyua Authors.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditio... | 32.293578 | 74 | 0.731534 | racktopsystems |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.