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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1562e14f2231de4ce4bb379651346f5730da5daa | 837 | cpp | C++ | dynamic_programming_1/staircase_problem.cpp | de1401/Coding-Ninjas-Competitive-Programming | c7601ac9f2dcf312e405a26f551d00c89ccfe990 | [
"CC0-1.0"
] | 19 | 2020-08-09T11:42:36.000Z | 2022-03-10T08:49:00.000Z | dynamic_programming_1/staircase_problem.cpp | de1401/Coding-Ninjas-Competitive-Programming | c7601ac9f2dcf312e405a26f551d00c89ccfe990 | [
"CC0-1.0"
] | null | null | null | dynamic_programming_1/staircase_problem.cpp | de1401/Coding-Ninjas-Competitive-Programming | c7601ac9f2dcf312e405a26f551d00c89ccfe990 | [
"CC0-1.0"
] | 5 | 2020-10-03T14:01:35.000Z | 2022-03-13T14:49:56.000Z | /*
StairCase Problem
Send Feedback
A child is running up a staircase with n steps and can hop either 1 step, 2 steps or 3 steps at a time. Implement a method to count how many possible ways the child can run up to the stairs. You need to return all possible number of ways.
Time complexity of your code should be O(n).
I... | 27 | 238 | 0.630824 | de1401 |
1563574a0db02f3549501c7ae7e2a0107eb255b4 | 1,988 | cpp | C++ | src/modules/VUMeterModule.cpp | kometbomb/prototracker-modular | 6cf5df7727d8c57011a3118718bc8ca2fd41ff4f | [
"MIT"
] | 46 | 2017-09-25T16:24:06.000Z | 2021-12-31T08:38:36.000Z | src/modules/VUMeterModule.cpp | PaulBatchelor/prototracker-modular | 4babb78bb9accd4490cba54c4f1e3bd804793fa7 | [
"MIT"
] | 14 | 2018-05-22T12:54:11.000Z | 2021-01-15T06:36:41.000Z | src/modules/VUMeterModule.cpp | PaulBatchelor/prototracker-modular | 4babb78bb9accd4490cba54c4f1e3bd804793fa7 | [
"MIT"
] | 9 | 2017-10-02T12:14:17.000Z | 2020-05-28T02:12:16.000Z | #include "VUMeterModule.h"
#include "../Renderer.h"
#include <cstdio>
#include <algorithm>
VUMeterModule::VUMeterModule(ModularSynth& synth)
:SynthModule(synth, moduleId, 1, 1, 1), mInputValue(0), mType(0)
{
}
void VUMeterModule::cycle()
{
mInputValue = getInput(0);
// Passthru
setOutput(0, getInput(0));
}
c... | 21.846154 | 97 | 0.679577 | kometbomb |
d07f6df1cd11fe0a3814b8d5b4a253058d51bcd5 | 6,914 | cc | C++ | src/IQCompression/FLAC.cc | drexelwireless/dragonradio | 885abd68d56af709e7a53737352641908005c45b | [
"MIT"
] | 8 | 2020-12-05T20:30:54.000Z | 2022-01-22T13:32:14.000Z | src/IQCompression/FLAC.cc | drexelwireless/dragonradio | 885abd68d56af709e7a53737352641908005c45b | [
"MIT"
] | 3 | 2020-10-28T22:15:27.000Z | 2021-01-27T14:43:41.000Z | src/IQCompression/FLAC.cc | drexelwireless/dragonradio | 885abd68d56af709e7a53737352641908005c45b | [
"MIT"
] | null | null | null | // Copyright 2018-2020 Drexel University
// Author: Geoffrey Mainland <mainland@drexel.edu>
#include <xsimd/xsimd.hpp>
#include "IQCompression.hh"
#include "IQCompression/FLAC.hh"
// The X310 AD units only provides 14 bits. We do not get 14 bits out of it, but
// we certainly don't get more than 14 :)
constexpr unsig... | 28.336066 | 147 | 0.700318 | drexelwireless |
d081d23921ce0b283fe6b5492dd26b640a8a44db | 2,432 | hpp | C++ | sources/GameEngine/GameEngine.hpp | gillioa/Bomberman | 5e21c317a4b3d00533acdddb99b98c08b102fe45 | [
"MIT"
] | null | null | null | sources/GameEngine/GameEngine.hpp | gillioa/Bomberman | 5e21c317a4b3d00533acdddb99b98c08b102fe45 | [
"MIT"
] | null | null | null | sources/GameEngine/GameEngine.hpp | gillioa/Bomberman | 5e21c317a4b3d00533acdddb99b98c08b102fe45 | [
"MIT"
] | null | null | null | #ifndef _GAME_ENGINE_HPP_
#define _GAME_ENGINE_HPP_
#include <OpenGL.hh>
#include <Game.hh>
#include <Input.hh>
#include <SdlContext.hh>
#include <BasicShader.hh>
#include <Clock.hh>
#include <Model.hh>
#include <Texture.hh>
#include <Geometry.hh>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include... | 28.611765 | 98 | 0.705592 | gillioa |
d0826a7fb28191f0c4d3e44ee303f3699dd215c7 | 2,354 | hpp | C++ | cppsrc/dfs.hpp | gateship1/RushHour | 84fce27c7d19037e81eebf8858a89dfb848349ae | [
"Apache-2.0"
] | null | null | null | cppsrc/dfs.hpp | gateship1/RushHour | 84fce27c7d19037e81eebf8858a89dfb848349ae | [
"Apache-2.0"
] | null | null | null | cppsrc/dfs.hpp | gateship1/RushHour | 84fce27c7d19037e81eebf8858a89dfb848349ae | [
"Apache-2.0"
] | null | null | null | #ifndef DFS_HEADER_FILE
#define DFS_HEADER_FILE
#include <algorithm> // find
#include <stack> // stack
#include <utility> // pair
#include "node.hpp"
#include "solution_path.hpp"
/* dfs
performs a depth-first search for the solution state (if it exists)
parameters:
state0, the initial state to start th... | 34.617647 | 108 | 0.638912 | gateship1 |
d08449772af10ccd221ab02ae68e71f8be202ee8 | 1,422 | cpp | C++ | msvc/libdynfacteditor_staticreg.cpp | GarethNelson/ares | fb2b2d25f000a3e0aa974ff08a3f0ec8fc89845e | [
"MIT"
] | null | null | null | msvc/libdynfacteditor_staticreg.cpp | GarethNelson/ares | fb2b2d25f000a3e0aa974ff08a3f0ec8fc89845e | [
"MIT"
] | null | null | null | msvc/libdynfacteditor_staticreg.cpp | GarethNelson/ares | fb2b2d25f000a3e0aa974ff08a3f0ec8fc89845e | [
"MIT"
] | null | null | null | // This file is automatically generated.
#include "cssysdef.h"
#include "csutil/scf.h"
// Put static linking stuff into own section.
// The idea is that this allows the section to be swapped out but not
// swapped in again b/c something else in it was needed.
#if !defined(CS_DEBUG) && defined(CS_COMPILER_MSVC)
#pragma... | 27.882353 | 69 | 0.73488 | GarethNelson |
d0853fad24154b8c914ff6f20ba86fe5a7b3201e | 147 | cpp | C++ | src/ivorium_game/Defs.cpp | ivorne/ivorium | 1d876b6dcabe29b3110d3058f997e59c40cd6a2b | [
"Apache-2.0"
] | 3 | 2021-02-26T02:59:09.000Z | 2022-02-08T16:44:21.000Z | src/ivorium_game/Defs.cpp | ivorne/ivorium | 1d876b6dcabe29b3110d3058f997e59c40cd6a2b | [
"Apache-2.0"
] | null | null | null | src/ivorium_game/Defs.cpp | ivorne/ivorium | 1d876b6dcabe29b3110d3058f997e59c40cd6a2b | [
"Apache-2.0"
] | null | null | null | #include "Defs.hpp"
namespace iv
{
namespace Defs
{
namespace Log
{
const iv::LogId StartupDump = iv::LogId::create( "StartupDump" );
}
}
}
| 9.8 | 69 | 0.659864 | ivorne |
d08e9065a3a6b7f36c5a45295b09b3f36819572d | 850 | hpp | C++ | SDK/ARKSurvivalEvolved_PrimalInventoryBP_TrophyBase_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_PrimalInventoryBP_TrophyBase_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_PrimalInventoryBP_TrophyBase_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_PrimalInventoryBP_TrophyBase_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//--------------------------------------------... | 21.794872 | 126 | 0.66 | 2bite |
d091216f3f3142982b5a9550f6fee2a566e52da0 | 481 | cpp | C++ | examples/targets/Fibonacci.cpp | jplehr/InstRO | 62a27e2c0cd24abc615e102c53bad08225aa8c0d | [
"BSD-3-Clause"
] | 3 | 2016-03-30T06:37:59.000Z | 2021-08-06T01:39:10.000Z | examples/targets/Fibonacci.cpp | jplehr/InstRO | 62a27e2c0cd24abc615e102c53bad08225aa8c0d | [
"BSD-3-Clause"
] | 13 | 2016-04-13T16:11:12.000Z | 2018-04-16T11:06:45.000Z | examples/targets/Fibonacci.cpp | jplehr/InstRO | 62a27e2c0cd24abc615e102c53bad08225aa8c0d | [
"BSD-3-Clause"
] | 1 | 2019-01-28T17:57:09.000Z | 2019-01-28T17:57:09.000Z |
#include <cstdio>
int fibRecursive(int num){
if(num == 0) return 0;
if(num == 1) return 1;
return fibRecursive(num-1) + fibRecursive(num-2);
}
int fibIterative(int num){
int f0 = 0;
int f1 = 1;
int fib = 0;
for(int i = 1; i < num; ++i){
fib = f1 + f0;
f0 = f1;
f1 = fib;
}
return fib;
}
int main(int ... | 14.147059 | 50 | 0.580042 | jplehr |
d09278e06077c85c713aee5e8347a246cf6ec238 | 567 | cpp | C++ | src/CEffectHeal.cpp | D3NY/console-card-rpg | c6859320fab322e8c226edd229310d9a450040ff | [
"MIT"
] | null | null | null | src/CEffectHeal.cpp | D3NY/console-card-rpg | c6859320fab322e8c226edd229310d9a450040ff | [
"MIT"
] | null | null | null | src/CEffectHeal.cpp | D3NY/console-card-rpg | c6859320fab322e8c226edd229310d9a450040ff | [
"MIT"
] | null | null | null | #include "CEffectHeal.h"
using namespace std;
CEffectHeal::CEffectHeal(size_t PowerOfEffect) : CEffect(PowerOfEffect) {}
unique_ptr<CEffect> CEffectHeal::Clone() const {
return make_unique<CEffectHeal>(*this);
}
EEffectType CEffectHeal::Type() const {
return EEffectType::DEFENSIVE;
}
string CEffectHeal::To... | 22.68 | 74 | 0.726631 | D3NY |
d092e1df828c2e7fcc07c3506842ffface4e422b | 9,866 | cpp | C++ | Source/RuntimeEditor/CRuntimeEditorManager.cpp | shanefarris/CoreGameEngine | 5bef275d1cd4e84aa059f2f4f9e97bfa2414d000 | [
"MIT"
] | 3 | 2019-04-12T15:22:53.000Z | 2022-01-05T02:59:56.000Z | Source/RuntimeEditor/CRuntimeEditorManager.cpp | shanefarris/CoreGameEngine | 5bef275d1cd4e84aa059f2f4f9e97bfa2414d000 | [
"MIT"
] | null | null | null | Source/RuntimeEditor/CRuntimeEditorManager.cpp | shanefarris/CoreGameEngine | 5bef275d1cd4e84aa059f2f4f9e97bfa2414d000 | [
"MIT"
] | 2 | 2019-04-10T22:46:21.000Z | 2020-05-27T16:21:37.000Z | #include "RuntimeEditor/CRuntimeEditorManager.h"
#include "SceneImporterPackage.h"
#include "Structures.h"
#include "CCustomFrameListener.h"
#include "CMenuDirector.h"
#include "IO/IXMLWriter.h"
#include "IO/CFileSystem.h"
#include "CItemsManager.h"
#include "CGameManager.h"
#include "CCameraManager.h"
#include "CGameO... | 27.32964 | 130 | 0.759984 | shanefarris |
d0944184526d9564d49e9893cad3ac12c216f6bb | 9,120 | cc | C++ | src/misc/perf_sample_cpu.cc | pkuwangh/coherence_benchmark | 21254f505ff47620a4fe3c1232b476a5976179cd | [
"MIT"
] | null | null | null | src/misc/perf_sample_cpu.cc | pkuwangh/coherence_benchmark | 21254f505ff47620a4fe3c1232b476a5976179cd | [
"MIT"
] | null | null | null | src/misc/perf_sample_cpu.cc | pkuwangh/coherence_benchmark | 21254f505ff47620a4fe3c1232b476a5976179cd | [
"MIT"
] | null | null | null | #include <cassert>
#include <cstdint>
#include <cstdio>
#include <cstring>
#include <string>
#include <unordered_map>
#include <vector>
#include <errno.h>
#include <linux/perf_event.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <sys/syscall.h>
#include <sys/time.h>
#include <unistd.h>
static inline uint64_t... | 33.653137 | 93 | 0.605811 | pkuwangh |
d09586027a66dc2aa6f8a3eec066289e740f350f | 2,599 | tcc | C++ | flens/blas/level1/nrm2.tcc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 98 | 2015-01-26T20:31:37.000Z | 2021-09-09T15:51:37.000Z | flens/blas/level1/nrm2.tcc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 16 | 2015-01-21T07:43:45.000Z | 2021-12-06T12:08:36.000Z | flens/blas/level1/nrm2.tcc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 31 | 2015-01-05T08:06:45.000Z | 2022-01-26T20:12:00.000Z | /*
* Copyright (c) 2009, Michael Lehn
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1) Redistributions of source code must retain the above copyright
* notice,... | 35.60274 | 75 | 0.737976 | stip |
d0995e42cb491678c2f1075b00600ebdeed9147f | 2,460 | hpp | C++ | include/networkit/community/ParallelLeiden.hpp | angriman/network | 3a4c5fd32eb2be8d5b34eaee17f8fe4e6e141894 | [
"MIT"
] | 366 | 2019-06-27T18:48:18.000Z | 2022-03-29T08:36:49.000Z | include/networkit/community/ParallelLeiden.hpp | angriman/network | 3a4c5fd32eb2be8d5b34eaee17f8fe4e6e141894 | [
"MIT"
] | 387 | 2019-06-24T11:30:39.000Z | 2022-03-31T10:37:28.000Z | include/networkit/community/ParallelLeiden.hpp | angriman/network | 3a4c5fd32eb2be8d5b34eaee17f8fe4e6e141894 | [
"MIT"
] | 131 | 2019-07-04T15:40:13.000Z | 2022-03-29T12:34:23.000Z | #ifndef NETWORKIT_COMMUNITY_PARALLEL_LEIDEN_HPP_
#define NETWORKIT_COMMUNITY_PARALLEL_LEIDEN_HPP_
#include <atomic>
#include <condition_variable>
#include <iomanip>
#include <iostream>
#include <mutex>
#include <omp.h>
#include <thread>
#include <tlx/unused.hpp>
#include <networkit/Globals.hpp>
#include <networkit/aux... | 27.032967 | 90 | 0.7 | angriman |
d09d93044b3251c43eb3e3ee530e65d1440fc399 | 2,168 | hpp | C++ | runtime/device/rocm/rocsettings.hpp | JustinTArthur/ROCm-OpenCL-Runtime | 3c0e33b125b13cc0b33e935d4ebf610bc3e3a677 | [
"MIT"
] | 1 | 2021-11-11T04:11:32.000Z | 2021-11-11T04:11:32.000Z | runtime/device/rocm/rocsettings.hpp | JustinTArthur/ROCm-OpenCL-Runtime | 3c0e33b125b13cc0b33e935d4ebf610bc3e3a677 | [
"MIT"
] | null | null | null | runtime/device/rocm/rocsettings.hpp | JustinTArthur/ROCm-OpenCL-Runtime | 3c0e33b125b13cc0b33e935d4ebf610bc3e3a677 | [
"MIT"
] | 1 | 2021-11-11T04:11:26.000Z | 2021-11-11T04:11:26.000Z | //
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#pragma once
#ifndef WITHOUT_HSA_BACKEND
#include "library.hpp"
/*! \addtogroup HSA OCL Stub Implementation
* @{
*/
//! HSA OCL STUB Implementation
namespace roc {
//! Device settings
class Settings : public device::Settings {
public... | 28.155844 | 87 | 0.674354 | JustinTArthur |
d09e52cc1f1acd69c8d885677e237c0ae70e828a | 5,621 | cc | C++ | source/device/tensorrt/op/trt_reduction.cc | sunnycase/Tengine | fe1b148f64ffe0546fc18000293aa7abd6308fb3 | [
"Apache-2.0"
] | 4,697 | 2017-12-30T12:15:43.000Z | 2022-03-25T08:22:31.000Z | source/device/tensorrt/op/trt_reduction.cc | sunnycase/Tengine | fe1b148f64ffe0546fc18000293aa7abd6308fb3 | [
"Apache-2.0"
] | 943 | 2018-01-02T06:15:00.000Z | 2022-03-31T05:32:32.000Z | source/device/tensorrt/op/trt_reduction.cc | crouchggj/Tengine | 587220f924198966c503c1bd15c83451d22f56ad | [
"Apache-2.0"
] | 1,076 | 2017-12-30T12:15:46.000Z | 2022-03-30T01:28:56.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); ... | 35.802548 | 127 | 0.624088 | sunnycase |
d09e5483073a249e4cff22a1e532f42692227e82 | 924 | hpp | C++ | Engine/include/CollideableManager.hpp | synctax/Untitled-Game | 586946f838e9e5b43e48394f916f001e77674adb | [
"Unlicense"
] | null | null | null | Engine/include/CollideableManager.hpp | synctax/Untitled-Game | 586946f838e9e5b43e48394f916f001e77674adb | [
"Unlicense"
] | null | null | null | Engine/include/CollideableManager.hpp | synctax/Untitled-Game | 586946f838e9e5b43e48394f916f001e77674adb | [
"Unlicense"
] | null | null | null | #pragma once
#include "Collider.hpp"
namespace Engine {
struct CollisionEvent {
CollisionEvent()
: obj(NULL), other(NULL), contacts(std::vector<Contact>()) {}
CollisionEvent(GameObject* _obj, Collider* _other, std::vector<Contact> _contacts)
: obj(_obj), other(_other), contacts(_contacts) {}
... | 23.692308 | 86 | 0.666667 | synctax |
d0a1f8545986c7cead8e8fed834ae388453c8def | 1,859 | cpp | C++ | trikCommunicator/src/trikCommunicator.cpp | Ashatta/trikRuntime | 0e08a584b09c6319c7fb3020bcd0df3f27b976b3 | [
"Apache-2.0"
] | null | null | null | trikCommunicator/src/trikCommunicator.cpp | Ashatta/trikRuntime | 0e08a584b09c6319c7fb3020bcd0df3f27b976b3 | [
"Apache-2.0"
] | null | null | null | trikCommunicator/src/trikCommunicator.cpp | Ashatta/trikRuntime | 0e08a584b09c6319c7fb3020bcd0df3f27b976b3 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2013 - 2014 Yurii Litvinov, CyberTech Labs Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | 31.508475 | 116 | 0.779989 | Ashatta |
d0a6c3923e3c4f78d1c203f3815920c357bed4ae | 1,876 | hpp | C++ | src/something_assets.hpp | tsoding/something | c1998953ca843b7d5dead96772a0b7fa7adb887f | [
"MIT"
] | 54 | 2020-02-09T17:52:30.000Z | 2021-12-04T20:21:16.000Z | src/something_assets.hpp | tsoding/something | c1998953ca843b7d5dead96772a0b7fa7adb887f | [
"MIT"
] | 193 | 2020-02-10T14:36:06.000Z | 2021-01-24T13:05:22.000Z | src/something_assets.hpp | tsoding/something | c1998953ca843b7d5dead96772a0b7fa7adb887f | [
"MIT"
] | 29 | 2020-02-09T18:07:59.000Z | 2021-08-12T19:47:20.000Z | #ifndef SOMETHING_ASSETS_HPP_
#define SOMETHING_ASSETS_HPP_
#include "./something_sound.hpp"
#include "./something_parsers.hpp"
const size_t ASSETS_CONF_BUFFER_CAPACITY = 1024 * 1024;
const size_t ASSETS_TEXTURES_CAPACITY = 128;
const size_t ASSETS_SOUNDS_CAPACITY = 128;
const size_t ASSETS_FRAMESEN_CAPACITY = 128;
c... | 31.266667 | 80 | 0.760661 | tsoding |
d0a90e35dbac87b0932871792c7a7801ef28f224 | 7,966 | cpp | C++ | Views/albaViewSliceSegmentation.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 9 | 2018-11-19T10:15:29.000Z | 2021-08-30T11:52:07.000Z | Views/albaViewSliceSegmentation.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Views/albaViewSliceSegmentation.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2018-06-10T22:56:29.000Z | 2019-12-12T06:22:56.000Z | /*=========================================================================
Program: ALBA (Agile Library for Biomedical Applications)
Module: albaViewSliceSegmentation
Authors: Gianluigi Crimi
Copyright (c) BIC
All rights reserved. See Copyright.txt or
This software is distributed WITHOUT ANY WARRANTY; witho... | 31.239216 | 261 | 0.620512 | IOR-BIC |
d0abdd903d3b0b1db2e72b83f2e15aad228cf277 | 12,950 | cpp | C++ | external/openddl/ODDLMap.cpp | RobertBeckebans/CVCT_Vulkan | edd8e9865f126ffbdf474a6e419d46efc4c7f267 | [
"MIT"
] | null | null | null | external/openddl/ODDLMap.cpp | RobertBeckebans/CVCT_Vulkan | edd8e9865f126ffbdf474a6e419d46efc4c7f267 | [
"MIT"
] | null | null | null | external/openddl/ODDLMap.cpp | RobertBeckebans/CVCT_Vulkan | edd8e9865f126ffbdf474a6e419d46efc4c7f267 | [
"MIT"
] | 1 | 2021-04-09T09:20:20.000Z | 2021-04-09T09:20:20.000Z | /*
OpenDDL Library Software License
==================================
OpenDDL Library, version 1.1
Copyright 2014-2015, Eric Lengyel
All rights reserved.
The OpenDDL Library is free software published on the following website:
http://openddl.org/
Redistribution and use in source and binary forms, with or ... | 16.371681 | 83 | 0.634981 | RobertBeckebans |
d0bb0820ee33e33c5eb648652222c283e14253b1 | 1,536 | cpp | C++ | arm/src/scene/texture.cpp | justingallagher/fpga-trace | 53ac2dd9ea1bff7e78b1de6d097d477e3d956463 | [
"MIT"
] | 25 | 2016-11-14T23:23:53.000Z | 2020-12-17T08:29:41.000Z | arm/src/scene/texture.cpp | justingallagher/fpga-trace | 53ac2dd9ea1bff7e78b1de6d097d477e3d956463 | [
"MIT"
] | null | null | null | arm/src/scene/texture.cpp | justingallagher/fpga-trace | 53ac2dd9ea1bff7e78b1de6d097d477e3d956463 | [
"MIT"
] | 1 | 2020-03-22T12:04:52.000Z | 2020-03-22T12:04:52.000Z | //
// texture.cpp
//
//
// Created by Nathan A. Dobson on 2/1/15.
// @author Justin Gallagher (jrgallag)
//
//
#include "scene/texture.hpp"
namespace _462{
const unsigned char* Texture::get_texture_data() const
{
return data;
}
void Texture::get_texture_size( int* w, int* h ) const
{
assert( w && h );
... | 21.633803 | 74 | 0.57487 | justingallagher |
d0bdf270e951310b25c24ac2e7ac5890f3448e34 | 3,997 | hpp | C++ | chip/EUI_XX.hpp | hirakuni45/RX | 3fb91bfc8d5282cde7aa00b8bd37f4aad32582d0 | [
"BSD-3-Clause"
] | 56 | 2015-06-04T14:15:38.000Z | 2022-03-01T22:58:49.000Z | chip/EUI_XX.hpp | duybang140494/RX | 7fed06a9d8295f4504e8a08fa589d4a52792095f | [
"BSD-3-Clause"
] | 30 | 2019-07-27T11:03:14.000Z | 2021-12-14T09:59:57.000Z | chip/EUI_XX.hpp | duybang140494/RX | 7fed06a9d8295f4504e8a08fa589d4a52792095f | [
"BSD-3-Clause"
] | 15 | 2017-06-24T11:33:39.000Z | 2021-12-07T07:26:58.000Z | #pragma once
//=====================================================================//
/*! @file
@brief EUI-48/EUI-64 EEPROM クラス @n
25AA02E48/25AA02E64
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2017 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirak... | 23.511765 | 75 | 0.388041 | hirakuni45 |
d0c3f0a81b658be42e6cd720f52cf5169c273548 | 2,660 | cpp | C++ | PipelineState.cpp | Pachira762/ScreenHistogram | 98300c6447e179e21c3a4bdd77812d1386623528 | [
"MIT"
] | null | null | null | PipelineState.cpp | Pachira762/ScreenHistogram | 98300c6447e179e21c3a4bdd77812d1386623528 | [
"MIT"
] | null | null | null | PipelineState.cpp | Pachira762/ScreenHistogram | 98300c6447e179e21c3a4bdd77812d1386623528 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "PipelineState.h"
#include "dutil.h"
using namespace std;
using namespace winrt;
static inline std::tuple<int, int, int, int> GetClientArea(HWND hwnd)
{
RECT rc{};
GetClientRect(hwnd, &rc);
POINT p0{ 0,0 };
check_bool(ClientToScreen(hwnd, &p0));
POINT p1{ rc.right, rc.bottom };
check... | 24.40367 | 163 | 0.708647 | Pachira762 |
d0c7655ce0ce8b0ad6602c0aae6ead5a785f39a6 | 3,461 | cpp | C++ | Source/RenderingUtilityLibrary/Private/Shaders/RULShaderParameters.cpp | nwiswakarma/RenderingUtilityLibrary | 03d3319e0977acfd7ea225d35c3afa570d729e45 | [
"MIT"
] | null | null | null | Source/RenderingUtilityLibrary/Private/Shaders/RULShaderParameters.cpp | nwiswakarma/RenderingUtilityLibrary | 03d3319e0977acfd7ea225d35c3afa570d729e45 | [
"MIT"
] | null | null | null | Source/RenderingUtilityLibrary/Private/Shaders/RULShaderParameters.cpp | nwiswakarma/RenderingUtilityLibrary | 03d3319e0977acfd7ea225d35c3afa570d729e45 | [
"MIT"
] | 1 | 2019-11-20T12:28:38.000Z | 2019-11-20T12:28:38.000Z | ////////////////////////////////////////////////////////////////////////////////
//
// MIT License
//
// Copyright (c) 2018-2019 Nuraga Wiswakarma
//
// 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 t... | 32.961905 | 163 | 0.669749 | nwiswakarma |
d0c970e10c83b8a2d2e5f69698d05b3436ed91d2 | 201 | cpp | C++ | SASLibrary/opengl3d.cpp | sfktrkl/Structural-Analysis-Software | 1d028cf59738c2029539019fba713db0837a4851 | [
"MIT"
] | null | null | null | SASLibrary/opengl3d.cpp | sfktrkl/Structural-Analysis-Software | 1d028cf59738c2029539019fba713db0837a4851 | [
"MIT"
] | null | null | null | SASLibrary/opengl3d.cpp | sfktrkl/Structural-Analysis-Software | 1d028cf59738c2029539019fba713db0837a4851 | [
"MIT"
] | null | null | null | #include "opengl3d.h"
#include "ui_opengl3d.h"
OpenGL3D::OpenGL3D(QWidget *parent) :
QDialog(parent),
ui(new Ui::OpenGL3D)
{
ui->setupUi(this);
}
OpenGL3D::~OpenGL3D()
{
delete ui;
}
| 13.4 | 37 | 0.641791 | sfktrkl |
d0cbaae4c5b3151dfe96f561703f5dd01a1ca694 | 275 | cpp | C++ | test/source/main.cpp | hainest/Smeagle | e5b81e916adff1c7ab83633b1ab83dd95779999e | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 3 | 2021-05-07T22:31:49.000Z | 2021-05-08T04:41:52.000Z | test/source/main.cpp | buildsi/Smeagle | d28359b3208cd625dc8e339cfdc5f53b351d2bfe | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 60 | 2021-06-02T20:19:29.000Z | 2022-03-01T21:42:30.000Z | test/source/main.cpp | hainest/Smeagle | e5b81e916adff1c7ab83633b1ab83dd95779999e | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1 | 2021-05-14T21:22:44.000Z | 2021-05-14T21:22:44.000Z | // Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
// Spack Project Developers. See the top-level COPYRIGHT file for details.
//
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include <doctest/doctest.h>
| 30.555556 | 74 | 0.785455 | hainest |
d0d5d81938af9fcd720c5bf7a8e85fac85d33aee | 1,712 | hpp | C++ | src/ComputerVision/OpenCV/FacialAlgorithms/renderFace.hpp | KiLJ4EdeN/Cpp_Tutorial | dd2dee392afe7e4c3644564ac1568e3f8043f4b8 | [
"MIT"
] | 2 | 2020-10-23T10:49:22.000Z | 2020-10-23T17:30:47.000Z | BookSrc/learnOpenCV/FacialLandmarkDetection/renderFace.hpp | xiaohaijin/OpenCV | 0b909cd2a3321d5ceaa00cd912a1ca44ed4fade1 | [
"MIT"
] | null | null | null | BookSrc/learnOpenCV/FacialLandmarkDetection/renderFace.hpp | xiaohaijin/OpenCV | 0b909cd2a3321d5ceaa00cd912a1ca44ed4fade1 | [
"MIT"
] | null | null | null | #ifndef _renderFace_H_
#define _renderFace_H_
using namespace cv;
using namespace std;
#define COLOR Scalar(255, 200,0)
// drawPolyLine draws a poly line by joining
// successive points between the start and end indices.
void drawPolyline
(
Mat &im,
const vector<Point2f> &landmarks,
const int start,
cons... | 29.016949 | 68 | 0.607477 | KiLJ4EdeN |
d0d7518a597e7e4cd95f7f45a571e73b5ceb7af7 | 9,413 | cpp | C++ | Library/Source/Nano/Text/NUnicodeView.cpp | refnum/Nano | dceb0907061f7845d8a3c662f309ca164e932e6f | [
"BSD-3-Clause"
] | 23 | 2019-11-12T09:31:11.000Z | 2021-09-13T08:59:37.000Z | Library/Source/Nano/Text/NUnicodeView.cpp | refnum/nano | dceb0907061f7845d8a3c662f309ca164e932e6f | [
"BSD-3-Clause"
] | 1 | 2020-10-30T09:54:12.000Z | 2020-10-30T09:54:12.000Z | Library/Source/Nano/Text/NUnicodeView.cpp | refnum/Nano | dceb0907061f7845d8a3c662f309ca164e932e6f | [
"BSD-3-Clause"
] | 3 | 2015-09-08T11:00:02.000Z | 2017-09-11T05:42:30.000Z | /* NAME:
NUnicodeView.cpp
DESCRIPTION:
Unicode view.
COPYRIGHT:
Copyright (c) 2006-2021, refNum Software
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of sourc... | 23.591479 | 98 | 0.58706 | refnum |
d0dd406ce8a5da9c32b75e1d2dba764df5184a35 | 582 | hpp | C++ | firmware/yunomi.hpp | oyakodon/gboard-yumomi-firmware | 68aba80714b86fa400126fac6b6c8830d62037b6 | [
"Apache-2.0"
] | 1 | 2021-12-02T08:19:42.000Z | 2021-12-02T08:19:42.000Z | firmware/yunomi.hpp | oyakodon/gboard-yumomi-firmware | 68aba80714b86fa400126fac6b6c8830d62037b6 | [
"Apache-2.0"
] | null | null | null | firmware/yunomi.hpp | oyakodon/gboard-yumomi-firmware | 68aba80714b86fa400126fac6b6c8830d62037b6 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <binary.h>
#define ROWS 5
#define COLS 12
// COLS = PD0, PD1, PD2, PD3, PD4, PD5
// ROWS = PB0, PB1, PB2, PB3, PB4
#define COL B10000000
#define ROW B00000000
class Yunomi
{
public:
int getIndex(int row, int col);
bool readKey(int row, int col);
void reset();
private:
typedef enum
... | 14.195122 | 38 | 0.541237 | oyakodon |
d0de8b53831fa52759b6fe06747b062c9aa6f43a | 8,434 | cpp | C++ | src/OpenColorIO/ScanlineHelper.cpp | BernardLefebvre/OpenColorIO | e6d8c109b15200fb00475c3fc077d6390ece9bd1 | [
"BSD-3-Clause"
] | 1 | 2021-06-09T22:50:23.000Z | 2021-06-09T22:50:23.000Z | src/OpenColorIO/ScanlineHelper.cpp | KevinJW/OpenColorIO | 412aa7ba273616867e607de646e4975791198812 | [
"BSD-3-Clause"
] | null | null | null | src/OpenColorIO/ScanlineHelper.cpp | KevinJW/OpenColorIO | 412aa7ba273616867e607de646e4975791198812 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al.
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 co... | 35.436975 | 105 | 0.66884 | BernardLefebvre |
d0dfd6379b9b01e9894eca6e8378b5f7acc800e0 | 993 | cpp | C++ | tests/test_type_manip.cpp | nastasichr/cpp | e69a52239dddde2ffd1fe062e47465bb726a3335 | [
"MIT"
] | 1 | 2021-05-19T08:50:13.000Z | 2021-05-19T08:50:13.000Z | tests/test_type_manip.cpp | nastasichr/cpp | e69a52239dddde2ffd1fe062e47465bb726a3335 | [
"MIT"
] | null | null | null | tests/test_type_manip.cpp | nastasichr/cpp | e69a52239dddde2ffd1fe062e47465bb726a3335 | [
"MIT"
] | null | null | null | #include "type_manip.h"
#include "testing.h"
using meta::make_unique_id;
TEST(make_type_uid_generates_same_id)
{
constexpr auto v_int1 = make_unique_id<int>;
constexpr auto v_int2 = make_unique_id<int>;
static_assert(v_int1 == v_int2, "");
}
TEST(make_type_uid_gives_unique_ids)
{
constexpr auto v_int = make_... | 27.583333 | 77 | 0.733132 | nastasichr |
d0e19a52b2659deaf195bc1194cb897c51ec7ce2 | 4,676 | hpp | C++ | include/cutf/nvrtc.hpp | gonmoec/cutf | 3b81d5ab14907caf2cee6eedf5861feb59ad7bd5 | [
"MIT"
] | 9 | 2020-02-18T00:10:00.000Z | 2022-03-09T01:14:53.000Z | include/cutf/nvrtc.hpp | enp1s0/cutf | 00794f671f1476da552824c757eaddeeb720a0ff | [
"MIT"
] | null | null | null | include/cutf/nvrtc.hpp | enp1s0/cutf | 00794f671f1476da552824c757eaddeeb720a0ff | [
"MIT"
] | null | null | null | #ifndef __CUTF_NVRTC__
#define __CUTF_NVRTC__
#include <string>
#include <cstring>
#include <vector>
#include <utility>
#include <memory>
#include <iostream>
#include <nvrtc.h>
#include <cuda.h>
#include "cuda.hpp"
#include "driver.hpp"
#include "error.hpp"
namespace cutf{
namespace error{
inline void check(const nvrt... | 29.783439 | 157 | 0.676647 | gonmoec |
d0e40af2c7d6ff482beca73f2acd5a31b30bdcda | 758 | cpp | C++ | solved-uva/10763.cpp | Maruf-Tuhin/Online_Judge | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | 1 | 2019-03-31T05:47:30.000Z | 2019-03-31T05:47:30.000Z | solved-uva/10763.cpp | the-redback/competitive-programming | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | null | null | null | solved-uva/10763.cpp | the-redback/competitive-programming | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <cstdlib>
using namespace std;
int arr[500001],ab[500001];
int compare(const void *a, const void *b)
{
int *ia=(int*) a;
int *ib=(int*) b;
return (*ia-*ib);
}
main()
{
int i,j,n;
while(scanf("%d",&n))
{
if(n==0)
{
break;
}
... | 16.844444 | 42 | 0.369393 | Maruf-Tuhin |
d0e419435807eb2cf26bcf06d75aa24730e42639 | 684 | cpp | C++ | PicCleanupLib/FileOnDiskMover.cpp | seanbrown888/PicCleanup | f773abe488b830e184702887da7fc14e2f803d36 | [
"MIT"
] | null | null | null | PicCleanupLib/FileOnDiskMover.cpp | seanbrown888/PicCleanup | f773abe488b830e184702887da7fc14e2f803d36 | [
"MIT"
] | null | null | null | PicCleanupLib/FileOnDiskMover.cpp | seanbrown888/PicCleanup | f773abe488b830e184702887da7fc14e2f803d36 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "FileOnDiskMover.h"
#include <filesystem>
#include <string>
namespace fs = std::experimental::filesystem;
FileOnDiskMover::FileOnDiskMover()
{
}
FileOnDiskMover::~FileOnDiskMover()
{
}
void FileOnDiskMover::moveFile(const std::string & oldFilenameWithPath, const std::string & newFileN... | 23.586207 | 112 | 0.730994 | seanbrown888 |
d0e4d34f0f5508971f1c5028f696f3276ad9de16 | 12,142 | hpp | C++ | Matrix.hpp | stevenBorisko/Matrix | 2453e8674345b29acb43e4bdca5ca742df74a0af | [
"MIT"
] | null | null | null | Matrix.hpp | stevenBorisko/Matrix | 2453e8674345b29acb43e4bdca5ca742df74a0af | [
"MIT"
] | null | null | null | Matrix.hpp | stevenBorisko/Matrix | 2453e8674345b29acb43e4bdca5ca742df74a0af | [
"MIT"
] | null | null | null | #ifndef MATRIX_H
#define MATRIX_H
#include <cstdlib>
#include <cmath>
#include <iostream>
struct Vector;
/*
Author: Steven Borisko
Description: Matrix class that provides many standard matrix functions
*/
class Matrix {
public:
// // CONSTRUCTORS // //
/*
Default Constructor
Creates an empty matrix (0 x 0)
*/
... | 23.761252 | 78 | 0.710838 | stevenBorisko |
d0ecb81a895cfb8fd3a64348ba30e17292c5289f | 2,154 | cpp | C++ | Source/Plugins/TeD3D11RenderAPI/TeD3D11BlendState.cpp | GameDevery/TweedeFrameworkRedux | 69a28fe171db33d00066b97b9b6bf89f6ef3e3a4 | [
"MIT"
] | 57 | 2019-09-02T01:10:37.000Z | 2022-01-11T06:28:10.000Z | Source/Plugins/TeD3D11RenderAPI/TeD3D11BlendState.cpp | GameDevery/TweedeFrameworkRedux | 69a28fe171db33d00066b97b9b6bf89f6ef3e3a4 | [
"MIT"
] | null | null | null | Source/Plugins/TeD3D11RenderAPI/TeD3D11BlendState.cpp | GameDevery/TweedeFrameworkRedux | 69a28fe171db33d00066b97b9b6bf89f6ef3e3a4 | [
"MIT"
] | 6 | 2020-02-29T17:19:30.000Z | 2021-10-30T04:29:22.000Z | #include "TeD3D11BlendState.h"
#include "TeD3D11Mappings.h"
#include "TeD3D11RenderAPI.h"
#include "TeD3D11Device.h"
namespace te
{
D3D11BlendState::D3D11BlendState(const BLEND_STATE_DESC& desc)
: BlendState(desc)
{ }
D3D11BlendState::~D3D11BlendState()
{
SAFE_RELEASE(_blendState);
... | 43.08 | 147 | 0.703807 | GameDevery |
d0f2dfb2a401deae38890b7cf9d4f1123145ede9 | 1,851 | cpp | C++ | Legacy/290. Word Pattern [LeetCode]/main.cpp | Ceruleanacg/Crack-Interview | 994dc0eee2f576fc543c90b82398dc8d957cdf09 | [
"MIT"
] | 17 | 2018-09-04T15:51:30.000Z | 2021-06-04T08:47:07.000Z | Legacy/290. Word Pattern [LeetCode]/main.cpp | Ceruleanacg/Crack-Interview | 994dc0eee2f576fc543c90b82398dc8d957cdf09 | [
"MIT"
] | null | null | null | Legacy/290. Word Pattern [LeetCode]/main.cpp | Ceruleanacg/Crack-Interview | 994dc0eee2f576fc543c90b82398dc8d957cdf09 | [
"MIT"
] | 6 | 2018-11-03T09:36:25.000Z | 2020-05-27T17:51:08.000Z | //
// main.cpp
// 290. Word Pattern [LeetCode]
//
// Created by Shuyu on 2018/4/10.
// Copyright © 2018年 Shuyu. All rights reserved.
//
#include <iostream>
#include <vector>
#include <string>
#include <map>
class Solution {
public:
bool wordPattern(std::string pattern, std::string str) {
str.... | 27.626866 | 116 | 0.469476 | Ceruleanacg |
d0f5349dad6195b6621af9235e917dc9546885f9 | 3,987 | cpp | C++ | Gimbal/srml/Drivers/Devices/BMX055/BMX055_Config.cpp | scutrobotlab/RM2021_Hero | c36c9d039100cb7a87a5177ca6b20f8f3e3c0daa | [
"Apache-2.0"
] | 3 | 2021-08-25T07:10:48.000Z | 2021-12-14T12:23:58.000Z | Gimbal/srml/Drivers/Devices/BMX055/BMX055_Config.cpp | scutrobotlab/RM2021_Hero | c36c9d039100cb7a87a5177ca6b20f8f3e3c0daa | [
"Apache-2.0"
] | null | null | null | Gimbal/srml/Drivers/Devices/BMX055/BMX055_Config.cpp | scutrobotlab/RM2021_Hero | c36c9d039100cb7a87a5177ca6b20f8f3e3c0daa | [
"Apache-2.0"
] | 2 | 2022-01-20T09:43:38.000Z | 2022-03-06T01:37:36.000Z | /**
******************************************************************************
* Copyright (c) 2019 - ~, SCUT-RobotLab Development Team
* @file BMX055_Config.c
* @author YDX 2244907035@qq.com
* @brief Code for BMX055 config.
* @date 2020-04-02
* @version 1.1
* @par Change Log:
* <table>
... | 34.973684 | 135 | 0.512415 | scutrobotlab |
cb9a2b1fddc17124c6ddf589e39b475608e7baea | 954 | cpp | C++ | Algorithms/Recursion/delete_mid_stack.cpp | abhishekjha786/ds_algo | 38355ca12e8ac20c4baa8baccf8ad189effaa6ae | [
"MIT"
] | 11 | 2020-03-20T17:24:28.000Z | 2022-01-08T02:43:24.000Z | Algorithms/Recursion/delete_mid_stack.cpp | abhishekjha786/ds_algo | 38355ca12e8ac20c4baa8baccf8ad189effaa6ae | [
"MIT"
] | 1 | 2021-07-25T11:24:46.000Z | 2021-07-25T12:09:25.000Z | Algorithms/Recursion/delete_mid_stack.cpp | abhishekjha786/ds_algo | 38355ca12e8ac20c4baa8baccf8ad189effaa6ae | [
"MIT"
] | 4 | 2020-03-20T17:24:36.000Z | 2021-12-07T19:22:59.000Z | // Delete middle element of stack using Recursion
#include <bits/stdc++.h>
using namespace std;
void delete_mid(stack<int> &s, int n, int curr = 0)
{
// if stack is empty or all items are traversed.
if (s.empty() || curr == n)
{
return;
}
// Remove current item
int temp = s.top();
... | 16.169492 | 52 | 0.514675 | abhishekjha786 |
cb9a30dfc96711b5009dc969bf12b04b5e94af5e | 511 | hpp | C++ | src/Vehicles/Modules/MountedWeapon.hpp | LazyFalcon/TechDemo-v4 | 7b865e20beb7f04fde6e7df66be30f555e0aef5a | [
"MIT"
] | null | null | null | src/Vehicles/Modules/MountedWeapon.hpp | LazyFalcon/TechDemo-v4 | 7b865e20beb7f04fde6e7df66be30f555e0aef5a | [
"MIT"
] | null | null | null | src/Vehicles/Modules/MountedWeapon.hpp | LazyFalcon/TechDemo-v4 | 7b865e20beb7f04fde6e7df66be30f555e0aef5a | [
"MIT"
] | null | null | null | #pragma once
class IModule;
class IWeapon;
/*
* fire events should be responsible for playing proper animation, sound, instantiate particle and animate module
*/
class MountedWeapon
{
private:
std::shared_ptr<IWeapon> m_weapon;
IModule* m_moduleAttachedTo;
glm::vec4 m_pointOfAttachment;
... | 20.44 | 114 | 0.67319 | LazyFalcon |
cb9bbb643de00e15ceb6afb9839c291a3d75f3ad | 4,309 | cpp | C++ | Units.Test/DynamicQuantityTests.cpp | dnv-opensource/Reflection | 27effb850e9f0cc6acc2d48630ee6aa5d75fa000 | [
"BSL-1.0"
] | null | null | null | Units.Test/DynamicQuantityTests.cpp | dnv-opensource/Reflection | 27effb850e9f0cc6acc2d48630ee6aa5d75fa000 | [
"BSL-1.0"
] | null | null | null | Units.Test/DynamicQuantityTests.cpp | dnv-opensource/Reflection | 27effb850e9f0cc6acc2d48630ee6aa5d75fa000 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2021 DNV AS
//
// 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 "gtest/gtest.h"
#include "Units/Runtime/DynamicQuantity.h"
#include "Units/Length.h"
#include "Units/Force.h"
#include "U... | 30.560284 | 104 | 0.743792 | dnv-opensource |
cb9bd34d840253b81876e1020f66f7bfc4da199d | 3,294 | cpp | C++ | CPP/src/pty_fork.cpp | 48d90782/tercoder | c2a7824b584aca86cad09d6d0eec68de16a4a793 | [
"MIT"
] | 1 | 2020-06-30T03:29:38.000Z | 2020-06-30T03:29:38.000Z | CPP/src/pty_fork.cpp | 48d90782/tercoder | c2a7824b584aca86cad09d6d0eec68de16a4a793 | [
"MIT"
] | null | null | null | CPP/src/pty_fork.cpp | 48d90782/tercoder | c2a7824b584aca86cad09d6d0eec68de16a4a793 | [
"MIT"
] | null | null | null | //
// Created by Valery Piashchynski on 1/10/19.
//
#include <fcntl.h>
#include <termios.h>
#include <sys/ioctl.h>
#include <cstring>
#include <cstdlib>
#include <unistd.h>
#include <cerrno>
#include <cstdio>
#include "../include/pty_master.hpp"
#define MAX_SNAME 1000
pid_t ptyFork(int *masterFd, char *slaveName, si... | 25.534884 | 129 | 0.57711 | 48d90782 |
cba18b7b3c674447d1983d9ab3f26b7900a81635 | 4,593 | cpp | C++ | clove/source/Rendering/Material.cpp | mondoo/Clove | 3989dc3fea0d886a69005c1e0bb4396501f336f2 | [
"MIT"
] | null | null | null | clove/source/Rendering/Material.cpp | mondoo/Clove | 3989dc3fea0d886a69005c1e0bb4396501f336f2 | [
"MIT"
] | null | null | null | clove/source/Rendering/Material.cpp | mondoo/Clove | 3989dc3fea0d886a69005c1e0bb4396501f336f2 | [
"MIT"
] | null | null | null | #include "Clove/Rendering/Material.hpp"
#include "Clove/Application.hpp"
#include "Clove/FileSystem/AssetManager.hpp"
#include "Clove/ReflectionAttributes.hpp"
#include "Clove/Rendering/RenderingHelpers.hpp"
#include <Clove/Graphics/GhaDevice.hpp>
#include <Clove/Graphics/GhaFactory.hpp>
#include <Clove/Graphics/GhaI... | 47.350515 | 142 | 0.535598 | mondoo |
cba454bde480d290d9a23c9d753e70872dc0cde4 | 567 | cpp | C++ | Parte-II/04-arreglos-unidimensionales/arreglosUnidimensionales.cpp | bilyfer/cpp | bcd9134804034976af2cf7fd104837f7a7ae17da | [
"MIT"
] | 5 | 2018-07-15T22:56:51.000Z | 2022-02-26T05:28:24.000Z | Parte-II/04-arreglos-unidimensionales/arreglosUnidimensionales.cpp | bilyfer/cpp | bcd9134804034976af2cf7fd104837f7a7ae17da | [
"MIT"
] | null | null | null | Parte-II/04-arreglos-unidimensionales/arreglosUnidimensionales.cpp | bilyfer/cpp | bcd9134804034976af2cf7fd104837f7a7ae17da | [
"MIT"
] | 5 | 2018-06-20T23:04:17.000Z | 2022-02-26T05:28:02.000Z | #include <iostream>
using namespace std;
int main() {
int arregloNumeros1[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
for(int indice = 1;indice <= 10;indice++) {
cout << arregloNumeros1[indice - 1];
}
int arregloNumeros2[10] = {0};
cout << endl;
for(int indice = 1;indice <= 10;indice++) {
arregloNumeros2[... | 18.290323 | 61 | 0.587302 | bilyfer |
cba5bb88eb46e999d2b16c59442176f030807bf5 | 624 | hpp | C++ | src/include/rabenda/monad/Class/Show.hpp | issimo-sakura/RabendaLib | acf91eaff1fdb2597e857f7319e76152b9b2e205 | [
"MIT"
] | 4 | 2017-12-13T12:56:59.000Z | 2019-01-24T01:17:04.000Z | src/include/rabenda/monad/Class/Show.hpp | issimo-sakura/RabendaLib | acf91eaff1fdb2597e857f7319e76152b9b2e205 | [
"MIT"
] | null | null | null | src/include/rabenda/monad/Class/Show.hpp | issimo-sakura/RabendaLib | acf91eaff1fdb2597e857f7319e76152b9b2e205 | [
"MIT"
] | 1 | 2019-01-23T15:59:38.000Z | 2019-01-23T15:59:38.000Z | //
// Created by Rabenda on 13/12/2017.
//
#ifndef RABENDALIB_SHOW_HPP
#define RABENDALIB_SHOW_HPP
#include <rabenda/lib_common.hpp>
#include <sstream>
#include <type_traits>
NAMESPACE_BEGIN(MONAD)
template<class T>
struct Show {
static std::string show(T const &value) {
if constexpr (std::is_same_v<T,
... | 16.421053 | 43 | 0.677885 | issimo-sakura |
cbaf544a87c2dc298bdd51019cf4d9c49a97c140 | 4,402 | cpp | C++ | unittests/Analysis/FlowSensitive/TestingSupport.cpp | tkolar23/llvm-clang | 73c44a584ba4ff5e186d0c05a2b29b2dbed98148 | [
"Apache-2.0"
] | null | null | null | unittests/Analysis/FlowSensitive/TestingSupport.cpp | tkolar23/llvm-clang | 73c44a584ba4ff5e186d0c05a2b29b2dbed98148 | [
"Apache-2.0"
] | null | null | null | unittests/Analysis/FlowSensitive/TestingSupport.cpp | tkolar23/llvm-clang | 73c44a584ba4ff5e186d0c05a2b29b2dbed98148 | [
"Apache-2.0"
] | null | null | null | #include "TestingSupport.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
#include "clang/AST/Stmt.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/Analysis/CFG.h"
#include "clang/Analysis/FlowSensitive/DataflowAnalysis.h"
#include "clang/Analys... | 35.5 | 79 | 0.664244 | tkolar23 |
cbb049e49c65663cd2cae7570a86f89b30e4317e | 9,812 | cpp | C++ | src/modules/processes/Geometry/FastRotationProcess.cpp | GeorgViehoever/PCL | c4a4390185db3ccb04471f845d92917cc1bc1113 | [
"JasPer-2.0"
] | null | null | null | src/modules/processes/Geometry/FastRotationProcess.cpp | GeorgViehoever/PCL | c4a4390185db3ccb04471f845d92917cc1bc1113 | [
"JasPer-2.0"
] | null | null | null | src/modules/processes/Geometry/FastRotationProcess.cpp | GeorgViehoever/PCL | c4a4390185db3ccb04471f845d92917cc1bc1113 | [
"JasPer-2.0"
] | null | null | null | // ____ ______ __
// / __ \ / ____// /
// / /_/ // / / /
// / ____// /___ / /___ PixInsight Class Library
// /_/ \____//_____/ PCL 02.01.01.0784
// ----------------------------------------------------------------------------
// Standard Geometry Process Module Version 01.01.00.0314
// -----------... | 33.037037 | 107 | 0.546474 | GeorgViehoever |
cbb149780e04e33495621ac21406e77aa65397da | 4,621 | cpp | C++ | tests/division.cpp | mrdcvlsc/bad-uint512 | c0c452028f9899267aab12f09c24a4ec183c165c | [
"MIT"
] | null | null | null | tests/division.cpp | mrdcvlsc/bad-uint512 | c0c452028f9899267aab12f09c24a4ec183c165c | [
"MIT"
] | null | null | null | tests/division.cpp | mrdcvlsc/bad-uint512 | c0c452028f9899267aab12f09c24a4ec183c165c | [
"MIT"
] | null | null | null | #include <iostream>
#include <utility>
#include <vector>
#ifndef MAKE_LIB
#include "../uint512.hpp"
#else
#include <uint512.hpp>
#endif
std::vector<bool> TEST_RESULTS;
const static std::string TEST_NAME = "uint512 divide ";
void ASSERT_UINT512(const uint512& A, const uint512& B, const std::string& TEST_MESSAGE)... | 30.006494 | 100 | 0.582341 | mrdcvlsc |
cbb16da81f58c7fbaa41005ef07541303395231e | 661 | cpp | C++ | BlackboardRuntime/src/Platform/OpenGL/OpenGLVertexBuffer.cpp | Diebanez/BlackboardEngine | 01a122366b2aab0808279132b3f5a6f71212fc40 | [
"MIT"
] | null | null | null | BlackboardRuntime/src/Platform/OpenGL/OpenGLVertexBuffer.cpp | Diebanez/BlackboardEngine | 01a122366b2aab0808279132b3f5a6f71212fc40 | [
"MIT"
] | null | null | null | BlackboardRuntime/src/Platform/OpenGL/OpenGLVertexBuffer.cpp | Diebanez/BlackboardEngine | 01a122366b2aab0808279132b3f5a6f71212fc40 | [
"MIT"
] | null | null | null | //
// Created by diego on 24/07/2020.
//
#include "OpenGLVertexBuffer.h"
#include "glad/glad.h"
namespace BlackboardRuntime {
OpenGLVertexBuffer::OpenGLVertexBuffer(float* vertices, uint32_t size) {
glCreateBuffers(1, &m_Handle);
glBindBuffer(GL_ARRAY_BUFFER, m_Handle);
glBufferData(GL_AR... | 24.481481 | 76 | 0.683812 | Diebanez |
cbb20438d5f61e63fd182f5a01d51a73f98229d9 | 4,493 | cc | C++ | examples/balance-transfer/node_modules/grpc/third_party/boringssl/crypto/pkcs8/pkcs8_test.cc | vishalgupta96/vish-fabric-sdk-1.0 | ac3b4c78fc94e8fa188651e067b14d86839b8649 | [
"Apache-2.0"
] | 91 | 2018-11-24T05:33:58.000Z | 2022-03-16T05:58:05.000Z | examples/balance-transfer/node_modules/grpc/third_party/boringssl/crypto/pkcs8/pkcs8_test.cc | vishalgupta96/vish-fabric-sdk-1.0 | ac3b4c78fc94e8fa188651e067b14d86839b8649 | [
"Apache-2.0"
] | 11 | 2019-06-02T23:50:17.000Z | 2022-02-04T23:58:56.000Z | examples/balance-transfer/node_modules/grpc/third_party/boringssl/crypto/pkcs8/pkcs8_test.cc | vishalgupta96/vish-fabric-sdk-1.0 | ac3b4c78fc94e8fa188651e067b14d86839b8649 | [
"Apache-2.0"
] | 18 | 2018-11-24T10:35:29.000Z | 2021-04-22T07:22:10.000Z | /* Copyright (c) 2015, Google Inc.
*
* 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.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS... | 49.922222 | 97 | 0.676608 | vishalgupta96 |
cbb42735a908de1427e53451d33464e45101badb | 497 | cpp | C++ | Competitions/Codeforces/Codeforces Beta Round #89 (Div. 2)/String Task.cpp | cnm06/Competitive-Programming | 94242ae458570d503b8218f37624b88cc5020d23 | [
"MIT"
] | 994 | 2017-02-28T06:13:47.000Z | 2022-03-31T10:49:00.000Z | Competitions/Codeforces/Codeforces Beta Round #89 (Div. 2)/String Task.cpp | Quadrified/Competitive-Programming | bccb69952cc5260fb3647b3301ddac1023dacac8 | [
"MIT"
] | 16 | 2018-01-01T02:59:55.000Z | 2021-11-22T12:49:16.000Z | Competitions/Codeforces/Codeforces Beta Round #89 (Div. 2)/String Task.cpp | Quadrified/Competitive-Programming | bccb69952cc5260fb3647b3301ddac1023dacac8 | [
"MIT"
] | 325 | 2017-06-15T03:32:43.000Z | 2022-03-28T22:43:42.000Z | #include <bits/stdc++.h>
#define INF (1<<29)
using namespace std;
int main()
{
long long int i;
string s;
cin>>s;
for(i=0;i<s.length();i++){
if(s[i]>64 && s[i]<91){
s[i]=s[i]+32;
}
if(s[i]=='a' || s[i]=='o' || s[i]=='y' || s[i]=='e' || s[i]=='u' || s[i]=='i'){
... | 19.88 | 87 | 0.350101 | cnm06 |
cbb5da90e545ac094fd824439dd51ca9dfdbfb6c | 525 | cpp | C++ | code/framework/src/scripting/events.cpp | mufty/Framework | f1fecf01c9183dcf92fd13a96f1f2bacb284ee4b | [
"OpenSSL"
] | 18 | 2021-09-17T16:41:14.000Z | 2022-02-01T15:22:20.000Z | code/framework/src/scripting/events.cpp | mufty/Framework | f1fecf01c9183dcf92fd13a96f1f2bacb284ee4b | [
"OpenSSL"
] | 36 | 2021-09-21T10:22:16.000Z | 2022-01-22T10:25:11.000Z | code/framework/src/scripting/events.cpp | mufty/Framework | f1fecf01c9183dcf92fd13a96f1f2bacb284ee4b | [
"OpenSSL"
] | 6 | 2021-09-26T11:06:32.000Z | 2022-01-21T15:07:05.000Z | /*
* MafiaHub OSS license
* Copyright (c) 2022, MafiaHub. All rights reserved.
*
* This file comes from MafiaHub, hosted at https://github.com/MafiaHub/Framework.
* See LICENSE file in the source repository for information regarding licensing.
*/
#include "events.h"
#include <map>
#include <string>
namespace F... | 30.882353 | 146 | 0.739048 | mufty |
cbba6b2eb7acede492a100f41f334b556cd21b96 | 680 | cpp | C++ | Array-DSA-Sheet-main/Array-DSA-Sheet-main/Question4.cpp | Sakshi14-code/Array-DSA-sheet | 66ea7514c01713ba13f7d63e9902a425a7652d5f | [
"MIT"
] | null | null | null | Array-DSA-Sheet-main/Array-DSA-Sheet-main/Question4.cpp | Sakshi14-code/Array-DSA-sheet | 66ea7514c01713ba13f7d63e9902a425a7652d5f | [
"MIT"
] | null | null | null | Array-DSA-Sheet-main/Array-DSA-Sheet-main/Question4.cpp | Sakshi14-code/Array-DSA-sheet | 66ea7514c01713ba13f7d63e9902a425a7652d5f | [
"MIT"
] | null | null | null | //Given an array which contains only 0s,1s,and 2s sort them without using any sorting algo.
#include<iostream>
using namespace std;
int main()
{
int t;
cin>> t;
while(t--)
{
int n;
cin>>n;
int a[n];
for(int i=0; i<n; i++)
cin>>a[i];
int c0=0 , c1=0 , c2=0;
fo... | 13.6 | 92 | 0.416176 | Sakshi14-code |
cbbc8cf6d9facee17ab640b70f155bb5b7a74d2e | 1,037 | hh | C++ | include/WCSimPrimaryGeneratorMessenger.hh | chipsneutrino/chips-sim | 19d3f2d75c674c06d2f27b9a344b70ca53e672c5 | [
"MIT"
] | null | null | null | include/WCSimPrimaryGeneratorMessenger.hh | chipsneutrino/chips-sim | 19d3f2d75c674c06d2f27b9a344b70ca53e672c5 | [
"MIT"
] | null | null | null | include/WCSimPrimaryGeneratorMessenger.hh | chipsneutrino/chips-sim | 19d3f2d75c674c06d2f27b9a344b70ca53e672c5 | [
"MIT"
] | null | null | null | #pragma once
class WCSimPrimaryGeneratorAction;
class G4UIdirectory;
class G4UIcmdWithAString;
class G4UIcmdWithABool;
class G4UIcmdWithADouble;
#include "G4UImessenger.hh"
#include "globals.hh"
class WCSimPrimaryGeneratorMessenger : public G4UImessenger
{
public:
WCSimPrimaryGeneratorMessenger(WCSimPrimaryGenerato... | 26.589744 | 77 | 0.811958 | chipsneutrino |
cbc0e12adc51af6ee33dfeeb9e777258ca2834f6 | 3,272 | cpp | C++ | Game/PlaceableActor.cpp | raphaelhamzagic/CGS_ProjectZ | 3664602fc1c428baac69d08219d692ec9e1d3c09 | [
"MIT"
] | null | null | null | Game/PlaceableActor.cpp | raphaelhamzagic/CGS_ProjectZ | 3664602fc1c428baac69d08219d692ec9e1d3c09 | [
"MIT"
] | null | null | null | Game/PlaceableActor.cpp | raphaelhamzagic/CGS_ProjectZ | 3664602fc1c428baac69d08219d692ec9e1d3c09 | [
"MIT"
] | null | null | null | #include <iostream>
#include "PlaceableActor.h"
#include "Point.h"
namespace projectz
{
namespace game
{
PlaceableActor::PlaceableActor(int x, int y, char symbol, ActorColor color)
: m_pPosition(new Point(x, y))
, m_pLastPosition(new Point(x, y))
, m_pDirection(new ... | 23.539568 | 83 | 0.432457 | raphaelhamzagic |
cbc1f7366d9015e181af31287cff366c71e36d06 | 634 | cc | C++ | tools/pika_to_txt/scan.cc | git-hulk/pika | fc32c8d42f8d169cb74c81559db0f1b7e9cb9046 | [
"MIT"
] | 2 | 2019-02-12T10:36:41.000Z | 2021-07-13T00:50:30.000Z | tools/pika_to_txt/scan.cc | git-hulk/pika | fc32c8d42f8d169cb74c81559db0f1b7e9cb9046 | [
"MIT"
] | null | null | null | tools/pika_to_txt/scan.cc | git-hulk/pika | fc32c8d42f8d169cb74c81559db0f1b7e9cb9046 | [
"MIT"
] | null | null | null | #include "scan.h"
ScanThread::~ScanThread() {
}
void ScanThread::Scandb() {
nemo::KIterator *it = db_->KScan("", "", -1, false);
std::string key, value;
while (it->Valid()) {
key = it->key();
value = it->value();
uint32_t key_len, value_len;
std::string data_info;
key_len = key.length();
... | 19.212121 | 54 | 0.602524 | git-hulk |
cbc2ae0da247ec4be64861caf4e944d138eb272b | 1,112 | hpp | C++ | SDK/ARKSurvivalEvolved_DataListEntryWidgetPrimalItem_SlotBar_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_DataListEntryWidgetPrimalItem_SlotBar_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_DataListEntryWidgetPrimalItem_SlotBar_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_DataListEntryWidgetPrimalItem_SlotBar_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//-----------------------------------... | 27.8 | 179 | 0.677158 | 2bite |
cbc4bc6fcf5344c14ec3801db219230e44a34a99 | 2,929 | hpp | C++ | examples/tetris/include/sys/collision_sys.hpp | KEGEStudios/Moon | 0e6aa078c8bf876c60aafe875ef53217ebdc74f1 | [
"MIT"
] | 2 | 2021-05-20T06:55:38.000Z | 2021-05-23T05:09:06.000Z | examples/tetris/include/sys/collision_sys.hpp | KEGEStudios/Moon | 0e6aa078c8bf876c60aafe875ef53217ebdc74f1 | [
"MIT"
] | 15 | 2021-04-21T05:26:39.000Z | 2021-07-06T07:07:28.000Z | examples/tetris/include/sys/collision_sys.hpp | reitmas32/Moon | 02790eb476f039b44664e7d8f24fa2839187e4fc | [
"MIT"
] | 1 | 2021-02-21T08:26:40.000Z | 2021-02-21T08:26:40.000Z | #pragma once
#include <lib/Moon/template/sys/sys.tpp>
#include "../gtx/board_gtx.hpp"
#include "../gtx/piece_gtx.hpp"
#include "../ent/piece_ent.hpp"
#include "../gtx/piece_gtx.hpp"
#include "../cmp/physics_cmp.hpp"
#include "../cmp/sprite_board_cmp.hpp"
#include "../cmp/sprite_piece_cmp.hpp"
struct CollisionSys_t... | 32.186813 | 78 | 0.47593 | KEGEStudios |
cbc6d65108cc0c2b29b2bdfbb20dc4ce9ae5b148 | 7,852 | cpp | C++ | Source/FPSGame/Private/FPSLaunchPad.cpp | goatryder/StealthGame | e3ed3efd2a377003760b5ecdd11ea722d0bc4501 | [
"MIT"
] | null | null | null | Source/FPSGame/Private/FPSLaunchPad.cpp | goatryder/StealthGame | e3ed3efd2a377003760b5ecdd11ea722d0bc4501 | [
"MIT"
] | null | null | null | Source/FPSGame/Private/FPSLaunchPad.cpp | goatryder/StealthGame | e3ed3efd2a377003760b5ecdd11ea722d0bc4501 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "FPSLaunchPad.h"
#include "Components/BoxComponent.h"
#include "Components/StaticMeshComponent.h"
#include "Components/DecalComponent.h"
#include "Components/AudioComponent.h"
#include "Components/ArrowComponent.h"
#include "Part... | 36.86385 | 167 | 0.774452 | goatryder |
cbcc94a041f1121e5b002c68ce4b630ec6403727 | 137 | hpp | C++ | nek/container/container_fwd.hpp | nekko1119/nek | be43faf5c541fa067ab1e1bcb7a43ebcfefe34e7 | [
"BSD-3-Clause"
] | null | null | null | nek/container/container_fwd.hpp | nekko1119/nek | be43faf5c541fa067ab1e1bcb7a43ebcfefe34e7 | [
"BSD-3-Clause"
] | null | null | null | nek/container/container_fwd.hpp | nekko1119/nek | be43faf5c541fa067ab1e1bcb7a43ebcfefe34e7 | [
"BSD-3-Clause"
] | null | null | null | #ifndef NEK_CONTAINER_CONTAINER_FWD_HPP
#define NEK_CONTAINER_CONTAINER_FWD_HPP
#include <nek/container/vector/vector_fwd.hpp>
#endif
| 19.571429 | 46 | 0.854015 | nekko1119 |
cbcd233383ace7ec4a1eeb350338c088c2381532 | 3,205 | cpp | C++ | ListFiles/ListFiles.cpp | AssafTzurEl/WindowsApiWorkshop | a28b556ee15dcaa179be0d0337ae3d66a65d2b32 | [
"MIT"
] | 1 | 2021-09-05T09:25:27.000Z | 2021-09-05T09:25:27.000Z | ListFiles/ListFiles.cpp | AssafTzurEl/WindowsApiWorkshop | a28b556ee15dcaa179be0d0337ae3d66a65d2b32 | [
"MIT"
] | null | null | null | ListFiles/ListFiles.cpp | AssafTzurEl/WindowsApiWorkshop | a28b556ee15dcaa179be0d0337ae3d66a65d2b32 | [
"MIT"
] | null | null | null | #include <Windows.h>
#include <iostream>
#include <vector>
#include <exception>
#include <memory>
#include <stdint.h>
class FileFindException
{
public:
FileFindException(const std::wstring &msg)
: message(msg)
{}
const std::wstring message;
};
std::wstring GetLastWinApiError(DWORD err = ::GetLast... | 21.655405 | 106 | 0.589392 | AssafTzurEl |
cbd211ebcab353fd17362641c1d47263647f9295 | 165 | hpp | C++ | sources/Page.hpp | Tomi-1997/CPP_2B | be4e60ca4d8bbfa3648b15b65a853fbff2ddf471 | [
"MIT"
] | null | null | null | sources/Page.hpp | Tomi-1997/CPP_2B | be4e60ca4d8bbfa3648b15b65a853fbff2ddf471 | [
"MIT"
] | null | null | null | sources/Page.hpp | Tomi-1997/CPP_2B | be4e60ca4d8bbfa3648b15b65a853fbff2ddf471 | [
"MIT"
] | null | null | null | #include "Line.hpp"
#include <map>
namespace ariel
{
class Page
{
public:
Page();
std::map<int, Line*> lines;
};
} | 12.692308 | 36 | 0.454545 | Tomi-1997 |
cbd2346de3433cde2749ec2aa7d41dd6b2b058bb | 2,029 | cpp | C++ | modules/argument_game/version_tracker.cpp | Niluk93/ArgumentGame | e934399578d3aa0852faed3175b8675439632c9e | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 1 | 2020-03-08T21:31:15.000Z | 2020-03-08T21:31:15.000Z | modules/argument_game/version_tracker.cpp | Niluk93/ArgumentGame | e934399578d3aa0852faed3175b8675439632c9e | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | modules/argument_game/version_tracker.cpp | Niluk93/ArgumentGame | e934399578d3aa0852faed3175b8675439632c9e | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | #include "version_tracker.h"
#include "editor_node.h"
VersionTracker::VersionTracker()
: CommitHash(String("Commit ID - {0}").format(varray(GIT_COMMITHASH)))
, CommitDate(String("Commit DateTime - {0}").format(varray(GIT_COMMITDATE)))
, Author(String("Author - {0}").format(varray(GIT_AUTHOR)))
, Subject(String("Su... | 22.296703 | 82 | 0.711681 | Niluk93 |
cbd4c994429dda6cd3aa2f15ef1e93e969f4bb08 | 6,840 | cpp | C++ | src/transform/splitAllocas.cpp | Kazhuu/rv | 8b37442990b6768c224b41249b7dfe9e68297a68 | [
"Apache-2.0"
] | 71 | 2017-03-03T01:36:28.000Z | 2022-02-25T19:57:12.000Z | src/transform/splitAllocas.cpp | Kazhuu/rv | 8b37442990b6768c224b41249b7dfe9e68297a68 | [
"Apache-2.0"
] | 48 | 2017-04-05T16:41:47.000Z | 2021-06-09T09:52:36.000Z | src/transform/splitAllocas.cpp | Kazhuu/rv | 8b37442990b6768c224b41249b7dfe9e68297a68 | [
"Apache-2.0"
] | 21 | 2017-03-01T16:04:35.000Z | 2021-09-15T13:38:24.000Z | //===- src/transform/splitAllocas.cpp - split up divergent allocas with compound types --*- C++ -*-===//
//
// Part of the RV Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----... | 35.076923 | 143 | 0.620175 | Kazhuu |
cbd62f7a6f709a6cf8f5562d73c8f5a24469d850 | 27,514 | hpp | C++ | numerical/optimization.hpp | bjoo/TIPL | a7603a085c7092075f2d56c6009421c76be9dcbd | [
"BSD-3-Clause"
] | 12 | 2015-08-28T13:29:19.000Z | 2021-06-17T10:07:58.000Z | numerical/optimization.hpp | bjoo/TIPL | a7603a085c7092075f2d56c6009421c76be9dcbd | [
"BSD-3-Clause"
] | 10 | 2015-10-20T15:47:09.000Z | 2022-01-05T15:37:16.000Z | numerical/optimization.hpp | bjoo/TIPL | a7603a085c7092075f2d56c6009421c76be9dcbd | [
"BSD-3-Clause"
] | 9 | 2015-12-12T15:41:33.000Z | 2021-12-03T19:54:54.000Z | #ifndef optimization_hpp
#define optimization_hpp
#include <limits>
#include <vector>
#include <map>
#include "numerical.hpp"
#include "matrix.hpp"
namespace tipl
{
namespace optimization
{
template<typename image_type,typename iter_type1,typename function_type>
void plot_fun_2d(
image_type& I,
... | 36.587766 | 146 | 0.609399 | bjoo |
cbd67824f9ec7dfa6c1eb805ff36ccaced648fe0 | 1,616 | cpp | C++ | aliSystemTest/test_aliSystemThreadingScheduler.cpp | hendrik-brower/ali | c9d8740fecdb486b7be00b4257ce6d79ea45aead | [
"MIT"
] | null | null | null | aliSystemTest/test_aliSystemThreadingScheduler.cpp | hendrik-brower/ali | c9d8740fecdb486b7be00b4257ce6d79ea45aead | [
"MIT"
] | null | null | null | aliSystemTest/test_aliSystemThreadingScheduler.cpp | hendrik-brower/ali | c9d8740fecdb486b7be00b4257ce6d79ea45aead | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include <aliSystem.hpp>
#include <vector>
namespace {
const double ms = 0.001; // 1 ms
using Scheduler = aliSystem::Threading::Scheduler;
using Time = aliSystem::Time;
using TVec = std::vector<Time::TP>;
using Stats = aliSystem::Stats;
using Pool... | 30.490566 | 63 | 0.610149 | hendrik-brower |
cbd86adc14af53895e943e9d59e9afd3a3130587 | 3,317 | cc | C++ | code/application/attic/physicsfeature/physicsfeatureunit.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 67 | 2015-03-30T19:56:16.000Z | 2022-03-11T13:52:17.000Z | code/application/attic/physicsfeature/physicsfeatureunit.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 5 | 2015-04-15T17:17:33.000Z | 2016-02-11T00:40:17.000Z | code/application/attic/physicsfeature/physicsfeatureunit.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 34 | 2015-03-30T15:08:00.000Z | 2021-09-23T05:55:10.000Z | //------------------------------------------------------------------------------
// game/PhysicsFeatureUnit.cc
// (C) 2007 Radon Labs GmbH
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "physicsfeatureunit.h"
#include "graphicsfeature/graphicsfeatureunit.... | 25.515385 | 87 | 0.533313 | gscept |
cbda727c2c345457ff0b5c162e62f9dfe5525df0 | 792 | cpp | C++ | src/c/methods/callbacks/ImageCallbacks.cpp | TestingTravis/modioSDK | b15c4442a8acdb4bf690a846232399eaf9fe18f6 | [
"MIT"
] | null | null | null | src/c/methods/callbacks/ImageCallbacks.cpp | TestingTravis/modioSDK | b15c4442a8acdb4bf690a846232399eaf9fe18f6 | [
"MIT"
] | null | null | null | src/c/methods/callbacks/ImageCallbacks.cpp | TestingTravis/modioSDK | b15c4442a8acdb4bf690a846232399eaf9fe18f6 | [
"MIT"
] | null | null | null | #include "c/methods/callbacks/ImageCallbacks.h"
std::map<u32, DownloadImageParams *> download_image_callbacks;
void modioOnImageDownloaded(u32 call_number, u32 response_code)
{
ModioResponse response;
nlohmann::json empty_json;
modioInitResponse(&response, empty_json);
response.code = response_code;
fclose... | 29.333333 | 107 | 0.806818 | TestingTravis |
cbdcca7a45951584db1382248f4355b7f2f3a1a6 | 1,831 | cpp | C++ | solutions/strange-printer/solution.cpp | locker/leetcode | bf34a697de47aaf32823224d054f9a45613ce180 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | solutions/strange-printer/solution.cpp | locker/leetcode | bf34a697de47aaf32823224d054f9a45613ce180 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | solutions/strange-printer/solution.cpp | locker/leetcode | bf34a697de47aaf32823224d054f9a45613ce180 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-08-30T06:53:23.000Z | 2019-08-30T06:53:23.000Z | #include <iostream>
#include <limits>
#include <string>
#include <vector>
using namespace std;
class Solution {
public:
int strangePrinter(string s) {
int len = s.length();
if (len == 0)
return 0;
// dp[i][j] stores the minimal number of turns it takes
// the printer to print substring s[i..i+j].
vecto... | 23.177215 | 57 | 0.543419 | locker |
cbe44c9bb433b74dfb5c4d135af7c2f78df5d79e | 272,537 | cpp | C++ | MathFunctions.cpp | TurkOglu1655/ezglobal | 8a3187fba3bd7dd327d99f46c6e249ae4306614e | [
"Unlicense"
] | 3 | 2021-01-27T16:23:41.000Z | 2022-03-02T19:31:35.000Z | MathFunctions.cpp | 6959-5623-5969-5981-5556-5559-4122/ezglobal | 8a3187fba3bd7dd327d99f46c6e249ae4306614e | [
"Unlicense"
] | 1 | 2020-06-27T14:56:16.000Z | 2020-06-27T14:56:16.000Z | MathFunctions.cpp | 6959-5623-5969-5981-5556-5559-4122/ezglobal | 8a3187fba3bd7dd327d99f46c6e249ae4306614e | [
"Unlicense"
] | 2 | 2021-01-27T16:23:42.000Z | 2022-03-01T15:45:00.000Z |
#include "Vector.h"
#include "MathFunctions.h"
#include "CommonIncludes.h"
#define M_PI 3.14159265358979323846
void AngleVectors(const Vector &angles, Vector *forward)
{
Assert(s_bMathlibInitialized);
Assert(forward);
float sp, sy, cp, cy;
sy = sin(DEG2RAD(angles[1]));
cy = cos(DEG2RAD(angles[1]));
sp = sin(... | 260.800957 | 12,607 | 0.838719 | TurkOglu1655 |
cbe674365ee01c78b6865536dc9008f4439d2c45 | 292 | hpp | C++ | frontend/ast/integer.hpp | NicolaiLS/becarre | cf23e80041f856f50b9f96c087819780dfe1792c | [
"MIT"
] | null | null | null | frontend/ast/integer.hpp | NicolaiLS/becarre | cf23e80041f856f50b9f96c087819780dfe1792c | [
"MIT"
] | null | null | null | frontend/ast/integer.hpp | NicolaiLS/becarre | cf23e80041f856f50b9f96c087819780dfe1792c | [
"MIT"
] | null | null | null | #if !defined(BECARRE_FRONTEND_AST_INTEGER_HPP)
#define BECARRE_FRONTEND_AST_INTEGER_HPP
#include <becarre/frontend/token.hpp>
namespace becarre::frontend::ast
{
struct Integer
{
Token token;
};
} // namespace becarre::frontend::ast
#endif // !defined(BECARRE_FRONTEND_AST_INTEGER_HPP)
| 17.176471 | 52 | 0.787671 | NicolaiLS |
cbeba0b8cc20f20b99cbe01f31174a65dba5cdf0 | 4,102 | hpp | C++ | include/MeshLevel.hpp | kmorel/MGARD | a7c44d57fda76a5c3e6fa38702ca8c8c12150b83 | [
"Apache-2.0"
] | 19 | 2019-03-08T15:21:36.000Z | 2022-02-11T04:02:50.000Z | include/MeshLevel.hpp | kmorel/MGARD | a7c44d57fda76a5c3e6fa38702ca8c8c12150b83 | [
"Apache-2.0"
] | 100 | 2019-01-14T15:34:09.000Z | 2022-03-29T13:39:30.000Z | include/MeshLevel.hpp | kmorel/MGARD | a7c44d57fda76a5c3e6fa38702ca8c8c12150b83 | [
"Apache-2.0"
] | 22 | 2018-11-16T01:13:57.000Z | 2022-03-14T23:53:28.000Z | #ifndef MESHLEVEL_HPP
#define MESHLEVEL_HPP
//!\file
//!\brief Class for representing a level in a mesh hierarchy.
#include <cstddef>
#include "moab/EntityType.hpp"
#include "moab/Interface.hpp"
#include "utilities.hpp"
namespace mgard {
//! Triangular or tetrahedral mesh (either freestanding or part of a hierarch... | 30.61194 | 80 | 0.705022 | kmorel |
cbeba7cb4a8b48e783809e5341da53e402b99422 | 1,595 | hpp | C++ | include/states/PlayState.hpp | CEDV-2016/mastermind | 4cef7919a6dfa9f78887a25c409beea0448ca88e | [
"MIT"
] | null | null | null | include/states/PlayState.hpp | CEDV-2016/mastermind | 4cef7919a6dfa9f78887a25c409beea0448ca88e | [
"MIT"
] | null | null | null | include/states/PlayState.hpp | CEDV-2016/mastermind | 4cef7919a6dfa9f78887a25c409beea0448ca88e | [
"MIT"
] | null | null | null | #pragma once
#include <Ogre.h>
#include <OIS/OIS.h>
#include <CEGUI.h>
#include <RendererModules/Ogre/Renderer.h>
#include <iostream>
#include <string>
#include "Game.hpp"
#include "Flags.hpp"
#include "GameState.hpp"
#include "BallsFactory.hpp"
#include "RankingManager.hpp"
class PlayState : public Ogre::Singleton<... | 24.538462 | 71 | 0.722884 | CEDV-2016 |
cbed8b2ea363ff81c8da9d9b1b34ccc85effc181 | 1,303 | cpp | C++ | BlackWindow/Source/UIWindow/ToolbarWindow.cpp | saulzini/Engine | c865ca88329291c11cd01da2ba8e6a90aa91c302 | [
"MIT"
] | null | null | null | BlackWindow/Source/UIWindow/ToolbarWindow.cpp | saulzini/Engine | c865ca88329291c11cd01da2ba8e6a90aa91c302 | [
"MIT"
] | null | null | null | BlackWindow/Source/UIWindow/ToolbarWindow.cpp | saulzini/Engine | c865ca88329291c11cd01da2ba8e6a90aa91c302 | [
"MIT"
] | null | null | null | #include "ToolbarWindow.h"
#include "Application.h"
#include "ModuleCamera.h"
#include "Core/Time/DeltaTime.h"
#include "Core/SceneFileManager/SceneFileManager.h"
void ToolbarWindow::Update()
{
if (show)
{
ImGui::SetNextWindowContentSize(ImVec2(400, 70.0f));
if (!begin())
{
... | 22.465517 | 60 | 0.499616 | saulzini |
cbeebd462d4705928361312fb89afc786deb27c0 | 5,994 | cpp | C++ | lars_reactor/src/buf_pool.cpp | mmtxcp/Lars | e9e104202ef1e8149ed9eb286d96864ef41dae83 | [
"MIT"
] | 132 | 2019-09-24T03:30:58.000Z | 2022-02-26T12:54:42.000Z | lars_reactor/src/buf_pool.cpp | mmtxcp/Lars | e9e104202ef1e8149ed9eb286d96864ef41dae83 | [
"MIT"
] | 1 | 2019-09-11T03:49:47.000Z | 2019-10-11T01:21:26.000Z | lars_reactor/src/buf_pool.cpp | mmtxcp/Lars | e9e104202ef1e8149ed9eb286d96864ef41dae83 | [
"MIT"
] | 43 | 2019-09-19T04:47:42.000Z | 2022-03-19T01:43:55.000Z | #include "buf_pool.h"
#include <assert.h>
//单例对象
buf_pool * buf_pool::_instance = NULL;
//用于保证创建单例的init方法只执行一次的锁
pthread_once_t buf_pool::_once = PTHREAD_ONCE_INIT;
//用户保护内存池链表修改的互斥锁
pthread_mutex_t buf_pool::_mutex = PTHREAD_MUTEX_INITIALIZER;
//构造函数 主要是预先开辟一定量的空间
//这里buf_pool是一个hash,每个key都是不同空间容量
//对应的value是一个... | 23.232558 | 62 | 0.527361 | mmtxcp |
0202c61fa6661f6698e1a69b3ceb509f97169b00 | 632 | cpp | C++ | atcoder/abc033/B/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 8 | 2020-12-23T07:54:53.000Z | 2021-11-23T02:46:35.000Z | atcoder/abc033/B/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2020-11-07T13:22:29.000Z | 2020-12-20T12:54:00.000Z | atcoder/abc033/B/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2021-01-16T03:40:10.000Z | 2021-01-16T03:40:10.000Z | #include <bits/stdc++.h>
using namespace std;
using ll = int64_t;
using ff = long double;
int N;
vector<string> S;
vector<int> P;
string solve() {
int sumP = 0;
for (int i = 0; i < N; ++i) {
sumP += P[i];
}
for (int i = 0; i < N; ++i) {
if (P[i] * 2 > sumP) {
return S[i];
... | 16.205128 | 37 | 0.454114 | xirc |
0205b4628c211adeb43590b042d5a1e69d975bd0 | 3,469 | cc | C++ | src/quadrature/quadrature_set.cc | narang-amit/BART | 22997c4ce6de3e97b39f4da4601edbd4cf73f9e2 | [
"MIT"
] | null | null | null | src/quadrature/quadrature_set.cc | narang-amit/BART | 22997c4ce6de3e97b39f4da4601edbd4cf73f9e2 | [
"MIT"
] | null | null | null | src/quadrature/quadrature_set.cc | narang-amit/BART | 22997c4ce6de3e97b39f4da4601edbd4cf73f9e2 | [
"MIT"
] | null | null | null | #include "quadrature/quadrature_set.h"
#include <algorithm>
namespace bart {
namespace quadrature {
template<int dim>
bool QuadratureSet<dim>::AddPoint(
std::shared_ptr<QuadraturePointI<dim>> new_point_ptr) {
AssertThrow(new_point_ptr != nullptr,
dealii::ExcMessage("Error in AddPoint, pointer is null"))... | 31.825688 | 79 | 0.722687 | narang-amit |
020ab48d62100a26d664db7fbb5623fba3fa7431 | 25,962 | cpp | C++ | G3DLib/gravityEngine/gravityEngine.cpp | roice3/Gravitation3D | 261466a934267531afb3c18484fc9a349d2d6157 | [
"MIT"
] | 8 | 2015-06-10T16:12:08.000Z | 2022-01-26T08:33:16.000Z | G3DLib/gravityEngine/gravityEngine.cpp | roice3/Gravitation3D | 261466a934267531afb3c18484fc9a349d2d6157 | [
"MIT"
] | null | null | null | G3DLib/gravityEngine/gravityEngine.cpp | roice3/Gravitation3D | 261466a934267531afb3c18484fc9a349d2d6157 | [
"MIT"
] | 1 | 2015-06-11T05:38:13.000Z | 2015-06-11T05:38:13.000Z | #include <stdafx.h>
#include "gravityEngine.h"
#include "helpers/gravitation3DHelper.h"
CGravityEngine::CGravityEngine( CSimulationSettings & simulationSettings, CRenderingSettings & renderingSettings,
CPlanetArray & planetArray, CTestParticleSetArray & testParticleSetArray, CRigidBody & rigidBody ) :
m_simulatio... | 30.08343 | 193 | 0.693668 | roice3 |
020f78dee8313cb78191364d51328abdf54f1d43 | 1,293 | cpp | C++ | examples/detailhandler.cpp | moeinsh78/UTFlix | ffb6b7658bd66f4e30a08be7ec00fecfca0412b3 | [
"MIT"
] | null | null | null | examples/detailhandler.cpp | moeinsh78/UTFlix | ffb6b7658bd66f4e30a08be7ec00fecfca0412b3 | [
"MIT"
] | null | null | null | examples/detailhandler.cpp | moeinsh78/UTFlix | ffb6b7658bd66f4e30a08be7ec00fecfca0412b3 | [
"MIT"
] | null | null | null | #include "detailhandler.hpp"
using namespace std;
Response *DetailHandler::callback(Request *req)
{
Database* database = database->getInstance();
Response *res = new Response;
Costumer* costumer = database->get_costumer(stoi(req->getSessionId()));
int film_id = stoi(req->getBodyParam("film_id"));
... | 35.916667 | 87 | 0.577726 | moeinsh78 |
02102a77141f55d914c3e7115328790e77eb2355 | 2,482 | cpp | C++ | Portada.cpp | kaitokidi/Gravity | 7ddce846d5443d30333d410a1db5d9a6a8621cde | [
"MIT"
] | null | null | null | Portada.cpp | kaitokidi/Gravity | 7ddce846d5443d30333d410a1db5d9a6a8621cde | [
"MIT"
] | 1 | 2015-01-08T11:40:44.000Z | 2015-01-08T11:40:44.000Z | Portada.cpp | kaitokidi/Gravity | 7ddce846d5443d30333d410a1db5d9a6a8621cde | [
"MIT"
] | null | null | null | #include "Portada.hpp"
Portada::Portada() {
open = true;
}
Portada::~Portada(){}
void Portada::display(sf::RenderWindow* window){
open = true;
while(open){
sf::Event event;
while (window->pollEvent(event)) {
switch ... | 31.025 | 115 | 0.427478 | kaitokidi |
02109129550858b7740d6de7f8c42fd4df9cb87f | 6,722 | cc | C++ | test/h265_nal_unit_parser_unittest.cc | sivapatibandla/h265nal | d128722c717e0656ae64a9fc386c9725bcd26da3 | [
"BSD-3-Clause"
] | 6 | 2020-10-05T21:55:52.000Z | 2022-03-20T13:28:21.000Z | test/h265_nal_unit_parser_unittest.cc | sivapatibandla/h265nal | d128722c717e0656ae64a9fc386c9725bcd26da3 | [
"BSD-3-Clause"
] | 5 | 2020-10-26T13:48:11.000Z | 2022-01-28T01:47:19.000Z | test/h265_nal_unit_parser_unittest.cc | sivapatibandla/h265nal | d128722c717e0656ae64a9fc386c9725bcd26da3 | [
"BSD-3-Clause"
] | 4 | 2020-10-06T21:08:59.000Z | 2022-03-21T06:05:55.000Z | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
#include "h265_nal_unit_parser.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "h265_bitstream_parser_state.h"
#include "h265_common.h"
#include "rtc_base/arraysize.h"
#include "rtc_base/bit_buffer.h"
namespace h265nal {
class H265NalUnitPar... | 44.813333 | 80 | 0.705445 | sivapatibandla |
021393247afbff9618a4cc918cee303e0267dde4 | 23,726 | cpp | C++ | Lumos/Source/Lumos/Platform/OpenGL/GLTexture.cpp | perefm/Lumos | 2f0ae4d0bad1447b5318043500751be1753666a2 | [
"MIT"
] | 672 | 2019-01-29T18:14:40.000Z | 2022-03-31T20:38:40.000Z | Lumos/Source/Lumos/Platform/OpenGL/GLTexture.cpp | perefm/Lumos | 2f0ae4d0bad1447b5318043500751be1753666a2 | [
"MIT"
] | 25 | 2019-10-05T17:16:13.000Z | 2021-12-29T01:40:04.000Z | Lumos/Source/Lumos/Platform/OpenGL/GLTexture.cpp | perefm/Lumos | 2f0ae4d0bad1447b5318043500751be1753666a2 | [
"MIT"
] | 83 | 2019-03-13T14:11:12.000Z | 2022-03-30T02:52:49.000Z | #include "Precompiled.h"
#include "GLTexture.h"
#include "Platform/OpenGL/GL.h"
#include "Platform/OpenGL/GLTools.h"
#include "Platform/OpenGL/GLShader.h"
#include "Utilities/LoadImage.h"
namespace Lumos
{
namespace Graphics
{
GLTexture2D::GLTexture2D()
: m_Width(0)
, m_Height(0... | 41.334495 | 186 | 0.600396 | perefm |
0213a9da9a632b44370e1ea341ac863615e128be | 681 | cpp | C++ | 0110-balanced-binary-tree.cpp | Jamesweng/leetcode | 1711a2a0e31d831e40137203c9abcba0bf56fcad | [
"Apache-2.0"
] | 106 | 2019-06-08T15:23:45.000Z | 2020-04-04T17:56:54.000Z | 0110-balanced-binary-tree.cpp | Jamesweng/leetcode | 1711a2a0e31d831e40137203c9abcba0bf56fcad | [
"Apache-2.0"
] | null | null | null | 0110-balanced-binary-tree.cpp | Jamesweng/leetcode | 1711a2a0e31d831e40137203c9abcba0bf56fcad | [
"Apache-2.0"
] | 3 | 2019-07-13T05:51:29.000Z | 2020-04-04T17:56:57.000Z | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
private:
int getDepth(TreeNode* root) {
if (!root) return 0;
int leftDepth = getDepth(r... | 23.482759 | 59 | 0.524229 | Jamesweng |
0214f12bb45b746632e4349c3a90da78355ee005 | 1,870 | cpp | C++ | cs161/assignments/assignment1.cpp | franzmk/Oregon-State-Schoolwork | 20f8a72e78ec4baa131add2dda8026cd47f36188 | [
"MIT"
] | null | null | null | cs161/assignments/assignment1.cpp | franzmk/Oregon-State-Schoolwork | 20f8a72e78ec4baa131add2dda8026cd47f36188 | [
"MIT"
] | null | null | null | cs161/assignments/assignment1.cpp | franzmk/Oregon-State-Schoolwork | 20f8a72e78ec4baa131add2dda8026cd47f36188 | [
"MIT"
] | null | null | null | /******************************************************
* ** Program: assignment1.cpp
* ** Author: Mx Fanz
* ** Date: 01/13/2019
* ** Description: This program prints the values of shorts, ints, and longs and then calculates them by using bits and bytes to prove it.
* ** Input: N/A
* ** Output: Short min, short m... | 33.392857 | 138 | 0.54385 | franzmk |
021c5e7ab357b4b1e0692302fa18488c634a29f0 | 500 | cpp | C++ | School/Grade 9/18_11.04.2018/1/1.cpp | slaweykow/School_CPP | d7dda3740f88eb4be925fe478305d8be30ff40fc | [
"MIT"
] | null | null | null | School/Grade 9/18_11.04.2018/1/1.cpp | slaweykow/School_CPP | d7dda3740f88eb4be925fe478305d8be30ff40fc | [
"MIT"
] | null | null | null | School/Grade 9/18_11.04.2018/1/1.cpp | slaweykow/School_CPP | d7dda3740f88eb4be925fe478305d8be30ff40fc | [
"MIT"
] | null | null | null | // 1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int arr[10], n = 10, P, i, j;
for (i = 0; i < n; i++) {
cout << "Enter num " << i + 1 << ": ";
cin >> arr[i];
}
for (i = 0; i < n; i++)
for (j = 0; j < n - i - 1; j+... | 17.241379 | 63 | 0.434 | slaweykow |
02292c39f22251bf0ab85d4649d8ae67094406dc | 6,083 | cpp | C++ | podofo/base/PdfImmediateWriter.cpp | hunghn86/tesseractx64 | 317b2dd5a75a70cd929a40ed3b0eebf0c13cf5a9 | [
"MIT"
] | 2 | 2018-08-01T14:25:27.000Z | 2018-10-17T06:59:56.000Z | podofo/base/PdfImmediateWriter.cpp | hunghn86/tesseractx64 | 317b2dd5a75a70cd929a40ed3b0eebf0c13cf5a9 | [
"MIT"
] | null | null | null | podofo/base/PdfImmediateWriter.cpp | hunghn86/tesseractx64 | 317b2dd5a75a70cd929a40ed3b0eebf0c13cf5a9 | [
"MIT"
] | null | null | null | /***************************************************************************
* Copyright (C) 2007 by Dominik Seichter *
* domseichter@web.de *
* *
* This pr... | 33.240437 | 94 | 0.593457 | hunghn86 |
0231403bc56277fe6c6731867a7ef1a411f068fd | 168 | cpp | C++ | lecture-15/src/UnexpectedStatusCodeException.cpp | DanielMandea/cpp-learning | 1deb9cabdd1db2355d7bb6664026a790c858aaa1 | [
"MIT"
] | null | null | null | lecture-15/src/UnexpectedStatusCodeException.cpp | DanielMandea/cpp-learning | 1deb9cabdd1db2355d7bb6664026a790c858aaa1 | [
"MIT"
] | null | null | null | lecture-15/src/UnexpectedStatusCodeException.cpp | DanielMandea/cpp-learning | 1deb9cabdd1db2355d7bb6664026a790c858aaa1 | [
"MIT"
] | null | null | null | #include "UnexpectedStatusCodeException.h"
UnexpectedStatusCodeException::UnexpectedStatusCodeException(const std::string& message)
: std::runtime_error(message)
{
}
| 21 | 88 | 0.827381 | DanielMandea |
02334bb97cbbdc083e508518a6ab0675e5b215a0 | 2,009 | cpp | C++ | prototype/plugins/image_median.cpp | glshort/MapReady | c9065400a64c87be46418ab32e3a251ca2f55fd5 | [
"BSD-3-Clause"
] | 3 | 2017-12-31T05:33:28.000Z | 2021-07-28T01:51:22.000Z | prototype/plugins/image_median.cpp | glshort/MapReady | c9065400a64c87be46418ab32e3a251ca2f55fd5 | [
"BSD-3-Clause"
] | null | null | null | prototype/plugins/image_median.cpp | glshort/MapReady | c9065400a64c87be46418ab32e3a251ca2f55fd5 | [
"BSD-3-Clause"
] | 7 | 2017-04-26T18:18:33.000Z | 2020-05-15T08:01:09.000Z | /* ASF plugin: see static_type at bottom of file for author and purpose */
#include "asf/plugin.h"
#include "asf/image.h"
#include <math.h>
#include <vector>
#include <algorithm> /* for std::sort */
/* Plugin name */
#define self plugin_image_median
class self : public asf::plugin_pixel_kernel {
asf::parameter_int *r... | 29.115942 | 86 | 0.65555 | glshort |
0233ae0bb84168451a577fd19c75a70546bbdccf | 56 | hpp | C++ | src/boost_spirit_home_qi_nonterminal_grammar.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_spirit_home_qi_nonterminal_grammar.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_spirit_home_qi_nonterminal_grammar.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/spirit/home/qi/nonterminal/grammar.hpp>
| 28 | 55 | 0.803571 | miathedev |
024c0b133358e2b6fa60d1cefd0d92710b4fedf1 | 3,773 | cpp | C++ | INFO6028/ILoveOpenGL/ILoveOpenGL/cBomberShip.cpp | LordMichaelmort/GDP2021_22 | 0498a1b7a16a35e8d4e79591163937ebffc15f47 | [
"MIT"
] | 2 | 2021-09-10T17:43:58.000Z | 2021-09-14T21:52:47.000Z | INFO6028/ILoveOpenGL/ILoveOpenGL/cBomberShip.cpp | LordMichaelmort/GDP2021_22 | 0498a1b7a16a35e8d4e79591163937ebffc15f47 | [
"MIT"
] | null | null | null | INFO6028/ILoveOpenGL/ILoveOpenGL/cBomberShip.cpp | LordMichaelmort/GDP2021_22 | 0498a1b7a16a35e8d4e79591163937ebffc15f47 | [
"MIT"
] | 1 | 2021-09-14T18:07:06.000Z | 2021-09-14T18:07:06.000Z | #include "cBomberShip.h"
cBomberShip::cBomberShip()
{
this->p3DMeshModel = NULL;
this->m_health = 100.0f;
this->m_bAreShieldUp = false;
this->m_pTheMediator = NULL;
}
cBomberShip::~cBomberShip()
{
this->p3DMeshModel = NULL;
}
void cBomberShip::Update(double deltaTime)
{
// The old hacky physics position update... | 22.194118 | 91 | 0.719852 | LordMichaelmort |
02535917b256587536ab84a005aa61c92c8f9efc | 3,895 | cpp | C++ | orbiter/src/cpp/module.cpp | emgre/orbiter-rs | 107068c6e66564b9dff86c8b964515da9771a3af | [
"MIT"
] | 1 | 2022-01-11T06:46:14.000Z | 2022-01-11T06:46:14.000Z | orbiter/src/cpp/module.cpp | emgre/orbiter-rs | 107068c6e66564b9dff86c8b964515da9771a3af | [
"MIT"
] | null | null | null | orbiter/src/cpp/module.cpp | emgre/orbiter-rs | 107068c6e66564b9dff86c8b964515da9771a3af | [
"MIT"
] | null | null | null | #include "orbitersdk.h"
extern "C" struct RustModuleCallbacks
{
void (*clbkSimulationStart)(void* ctx, oapi::Module::RenderMode);
void (*clbkSimulationEnd)(void* ctx);
void (*clbkPreStep)(void* ctx, double simt, double simdt, double mjd);
void (*clbkPostStep)(void* ctx, double simt, double simdt, doubl... | 30.912698 | 97 | 0.673941 | emgre |
025456026f5181d74665909f61df48839e264a3a | 1,922 | inl | C++ | external/gli/gli/core/save.inl | cloudqiu1110/tinype | de289d45fca89a4ba964ae2577ac9d82784fadd0 | [
"BSD-3-Clause"
] | 143 | 2017-01-03T15:26:44.000Z | 2022-03-28T01:00:52.000Z | external/gli/gli/core/save.inl | cloudqiu1110/tinype | de289d45fca89a4ba964ae2577ac9d82784fadd0 | [
"BSD-3-Clause"
] | 4 | 2017-01-09T23:02:46.000Z | 2020-10-14T07:20:51.000Z | external/gli/gli/core/save.inl | cloudqiu1110/tinype | de289d45fca89a4ba964ae2577ac9d82784fadd0 | [
"BSD-3-Clause"
] | 47 | 2017-01-30T11:56:35.000Z | 2022-02-20T23:35:12.000Z | ///////////////////////////////////////////////////////////////////////////////////
/// OpenGL Image (gli.g-truc.net)
///
/// Copyright (c) 2008 - 2015 G-Truc Creation (www.g-truc.net)
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentation file... | 40.041667 | 83 | 0.655047 | cloudqiu1110 |
0254fc70af12b74cbf760d529fb8fb46e2b4b9fa | 853 | cpp | C++ | 0852 - Peak Index in a Mountain Array/cpp/main.cpp | xiaoswu/Leetcode | e4ae8b2f72a312ee247084457cf4e6dbcfd20e18 | [
"MIT"
] | 5 | 2018-10-18T06:47:19.000Z | 2020-06-19T09:30:03.000Z | 0852 - Peak Index in a Mountain Array/cpp/main.cpp | xiaoswu/Leetcode | e4ae8b2f72a312ee247084457cf4e6dbcfd20e18 | [
"MIT"
] | null | null | null | 0852 - Peak Index in a Mountain Array/cpp/main.cpp | xiaoswu/Leetcode | e4ae8b2f72a312ee247084457cf4e6dbcfd20e18 | [
"MIT"
] | null | null | null | //
// main.cpp
// 852 - Peak Index in a Mountain Array
//
// Created by ynfMac on 2019/6/26.
// Copyright © 2019 ynfMac. All rights reserved.
//
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int peakIndexInMountainArray(vector<int>& A) {
int l = 0;
int r =... | 21.325 | 61 | 0.459555 | xiaoswu |
0259ac06d5754b762ed8f10fad628149a5313e45 | 1,190 | hpp | C++ | PP/promotion_type.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | 3 | 2019-07-12T23:12:24.000Z | 2019-09-05T07:57:45.000Z | PP/promotion_type.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | null | null | null | PP/promotion_type.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | null | null | null | #pragma once
#include <PP/PP/compose.hpp>
#include <PP/PP/construct_pack.hpp>
#include <PP/PP/containers/type_tuple.hpp>
#include <PP/PP/decl_type.hpp>
#include <PP/PP/overloaded.hpp>
#include <PP/PP/tuple/make.hpp>
#include <PP/PP/tuple/prepend.hpp>
namespace PP
{
namespace detail
{
constexpr auto promotion_type_conv... | 18.59375 | 79 | 0.721008 | Petkr |
025a47c1bfae7e02f728d43b5564880cec991af5 | 70,865 | cpp | C++ | source/slang/slang-check-shader.cpp | JKot-Coder/slang | 1a1b2a0de67dccc1102449b8620830131d569cde | [
"MIT"
] | 895 | 2017-06-10T13:38:39.000Z | 2022-03-31T02:29:15.000Z | source/slang/slang-check-shader.cpp | JKot-Coder/slang | 1a1b2a0de67dccc1102449b8620830131d569cde | [
"MIT"
] | 708 | 2017-06-15T16:03:12.000Z | 2022-03-28T19:01:37.000Z | source/slang/slang-check-shader.cpp | JKot-Coder/slang | 1a1b2a0de67dccc1102449b8620830131d569cde | [
"MIT"
] | 80 | 2017-06-12T15:36:58.000Z | 2022-03-23T12:04:24.000Z | // slang-check-shader.cpp
#include "slang-check-impl.h"
// This file encapsulates semantic checking logic primarily
// related to shaders, including validating entry points,
// enumerating specialization parameters, and validating
// attempts to specialize shader code.
#include "slang-lookup.h"
namespace Slang
{
... | 42.156454 | 161 | 0.584957 | JKot-Coder |
025eb369f77e447765be1a62ea65a67f5ae6662c | 191 | hpp | C++ | giecs/memory/reference.hpp | michaelsippel/cautious-potato | 3f683695cc4a071d0248bb5dc8f850a3a0a69650 | [
"BSD-3-Clause"
] | 3 | 2017-01-31T12:53:37.000Z | 2017-09-26T20:48:04.000Z | giecs/memory/reference.hpp | michaelsippel/cautious-potato | 3f683695cc4a071d0248bb5dc8f850a3a0a69650 | [
"BSD-3-Clause"
] | null | null | null | giecs/memory/reference.hpp | michaelsippel/cautious-potato | 3f683695cc4a071d0248bb5dc8f850a3a0a69650 | [
"BSD-3-Clause"
] | null | null | null |
#pragma once
#include <cstddef>
namespace giecs
{
namespace memory
{
struct Reference
{
std::size_t page_id;
std::size_t offset;
};
} // namespace memory
} // namespace giecs
| 8.681818 | 24 | 0.670157 | michaelsippel |
0260b456e6dd105ead02b1a3ac6b6ac9abb47909 | 1,954 | cpp | C++ | examples/image/image_helpers.cpp | alex011235/algo | ce36c2673e037a12278117cb036550bee82ecadf | [
"MIT"
] | 2 | 2015-08-16T23:45:23.000Z | 2015-10-13T08:12:00.000Z | examples/image/image_helpers.cpp | alex011235/algorithm | ce36c2673e037a12278117cb036550bee82ecadf | [
"MIT"
] | 1 | 2021-03-21T16:33:53.000Z | 2021-03-21T16:33:53.000Z | examples/image/image_helpers.cpp | alex011235/algo | ce36c2673e037a12278117cb036550bee82ecadf | [
"MIT"
] | null | null | null | ///
/// \brief Header for image helpers.
/// \author alex011235
/// \date 2020-05-21
/// \link <a href=https://github.com/alex011235/algo>Algo, Github</a>
///
#include "image_helpers.hpp"
using namespace algo::image;
using namespace std;
// Will not be available in source code
Img MatToVec(const cv::Mat& img)
{
Im... | 26.053333 | 76 | 0.597236 | alex011235 |
0264993bcb32a94a60d092e119a853928df1fc94 | 359 | cpp | C++ | Implementations/11 - Math (4)/11.1 - Number Theory/Chinese Remainder Theorem (6).cpp | Senpat/USACO | 7f65e083e70c10b43224c6e1acbab79af249b942 | [
"MIT"
] | null | null | null | Implementations/11 - Math (4)/11.1 - Number Theory/Chinese Remainder Theorem (6).cpp | Senpat/USACO | 7f65e083e70c10b43224c6e1acbab79af249b942 | [
"MIT"
] | null | null | null | Implementations/11 - Math (4)/11.1 - Number Theory/Chinese Remainder Theorem (6).cpp | Senpat/USACO | 7f65e083e70c10b43224c6e1acbab79af249b942 | [
"MIT"
] | null | null | null | /**
* Description: Chinese Remainder Theorem
* Source: Own
* Verification: Kattis generalchineseremainder
*/
using namespace modOp;
pl solve(pl a, pl b) {
ll g = __gcd(a.s,b.s), l = a.s*b.s/g;
if ((b.f-a.f) % g != 0) return {-1,-1};
ll A = a.s/g, B = b.s/g;
ll mul = (b.f-a.f)/g*invGeneral(A%B,B) % B;
... | 23.933333 | 47 | 0.559889 | Senpat |
026d85fbb4aaca401d6db79158de873b892f8c48 | 12,477 | cpp | C++ | src/Prostopadloscian.cpp | KPO-2020-2021/zad5_3-bartoszfurmanek | 728e75dd34055fc5505074193ba31cfee1942a33 | [
"Unlicense"
] | null | null | null | src/Prostopadloscian.cpp | KPO-2020-2021/zad5_3-bartoszfurmanek | 728e75dd34055fc5505074193ba31cfee1942a33 | [
"Unlicense"
] | null | null | null | src/Prostopadloscian.cpp | KPO-2020-2021/zad5_3-bartoszfurmanek | 728e75dd34055fc5505074193ba31cfee1942a33 | [
"Unlicense"
] | null | null | null | #include "Prostopadloscian.hh"
#define MIN_ROZNICA 0.001
/*!
*\file
*\brief Definicja metod klasy Prostopadloscian.
*/
/*!
* \brief Operator przypisania dla Prostopadloscianu
* \param[in] P - Prostopadloscian, z wartosciami ktore maja zostac przypisane.
* \retval Prostopadloscian z nowymi wartosciami.
*/
Pros... | 32.24031 | 167 | 0.677006 | KPO-2020-2021 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.