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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
98893fe5fe5812d547d1dfa289922f07b2db2899 | 4,396 | cpp | C++ | main.cpp | ledstrip/piledstrip-server | 70075cc21ddca088651ea94b537078f7423e80f7 | [
"MIT"
] | null | null | null | main.cpp | ledstrip/piledstrip-server | 70075cc21ddca088651ea94b537078f7423e80f7 | [
"MIT"
] | null | null | null | main.cpp | ledstrip/piledstrip-server | 70075cc21ddca088651ea94b537078f7423e80f7 | [
"MIT"
] | null | null | null | #include <cstdint>
#include <memory>
#include <iostream>
#include <boost/program_options.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/filesystem.hpp>
#include <boost/foreach.hpp>
#include <boost/asio/signal_set.hpp>
#include "LedInterface.h"
#include "Op... | 30.317241 | 123 | 0.69495 | ledstrip |
988dcb0da9d6f402ce849daa0ef6d9bb976aa074 | 16,821 | cpp | C++ | main_d2/switch.cpp | ziplantil/CacaoticusDescent | b4299442bc43310690a666e181dd983c1491dce1 | [
"MIT"
] | null | null | null | main_d2/switch.cpp | ziplantil/CacaoticusDescent | b4299442bc43310690a666e181dd983c1491dce1 | [
"MIT"
] | null | null | null | main_d2/switch.cpp | ziplantil/CacaoticusDescent | b4299442bc43310690a666e181dd983c1491dce1 | [
"MIT"
] | null | null | null | /*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYING, A... | 24.484716 | 131 | 0.669699 | ziplantil |
98932d89c0ed6742f2fc0c0d657619281c27aa5a | 1,408 | hpp | C++ | Utils/Timers/GpTimersManager.hpp | ITBear/GpCore2 | 7ae6d9d93aae55e2b3060077b5bb9d5f07e59ee4 | [
"MIT"
] | null | null | null | Utils/Timers/GpTimersManager.hpp | ITBear/GpCore2 | 7ae6d9d93aae55e2b3060077b5bb9d5f07e59ee4 | [
"MIT"
] | 1 | 2020-06-19T18:38:40.000Z | 2020-06-19T18:38:40.000Z | Utils/Timers/GpTimersManager.hpp | ITBear/GpCore2 | 7ae6d9d93aae55e2b3060077b5bb9d5f07e59ee4 | [
"MIT"
] | 6 | 2020-06-04T07:32:59.000Z | 2021-05-17T15:41:30.000Z | #pragma once
#include "../../Config/GpConfig.hpp"
#if defined(GP_USE_TIMERS)
#include "../../Types/Containers/GpElementsCatalog.hpp"
#include "../../Multithreading/Threads/GpThread.hpp"
#include "GpTimerShotEventFactory.hpp"
#include "GpTimer.hpp"
namespace GPlatform {
class GPCORE_API GpTimersManager... | 30.608696 | 112 | 0.564631 | ITBear |
989f56abd3bdcb852ce804d7bb0fbe0c8cdb98f9 | 2,388 | cpp | C++ | moai/src/moaicore/debug/MOAIDrawDebug.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | moai/src/moaicore/debug/MOAIDrawDebug.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | moai/src/moaicore/debug/MOAIDrawDebug.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | #include <pch.h>
#include <moaicore/debug/MOAIDrawDebug.h>
#include <moaicore/MOAIGfxDevice.h>
#include <moaicore/MOAIFrameBuffer.h>
#include <moaicore/MOAIDraw.h>
#include <moaicore/MOAIEntity2D.h>
#include <moaicore/MOAIShaderMgr.h>
#include <moaicore/MOAIVertexFormatMgr.h>
MOAIDrawDebug* MOAIDrawDebug::s_singleto... | 20.586207 | 94 | 0.728643 | jjimenezg93 |
98a148ad26cb4887d354941c59d39cd844186a77 | 1,733 | cpp | C++ | tests/memrw/src_pers/PersInc3_src.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 13 | 2015-02-26T22:46:18.000Z | 2020-03-24T11:53:06.000Z | tests/memrw/src_pers/PersInc3_src.cpp | PacificBiosciences/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 5 | 2016-02-25T17:08:19.000Z | 2018-01-20T15:24:36.000Z | tests/memrw/src_pers/PersInc3_src.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 12 | 2015-04-13T21:39:54.000Z | 2021-01-15T01:00:13.000Z | #include "Ht.h"
#include "PersInc3.h"
void
CPersInc3::PersInc3()
{
if (PR1_htValid) {
switch (PR1_htInst) {
case INC3_INIT:
{
P1_loopIdx[0][1] = 0;
// wait until all threads have started
HtContinue(INC3_READ);
}
break;
case INC3_READ:
{
if (ReadMemBusy()) {
HtRetry();
break;
}
... | 19.255556 | 80 | 0.619158 | TonyBrewer |
98a29ba65b3a38e8acad3d446cee0bfa1a82675f | 339 | cpp | C++ | simulation/box.cpp | nr1040gh/ParticleSim | fdd692c71ec3ec495741f11f91b4c7caed4e7996 | [
"MIT"
] | null | null | null | simulation/box.cpp | nr1040gh/ParticleSim | fdd692c71ec3ec495741f11f91b4c7caed4e7996 | [
"MIT"
] | null | null | null | simulation/box.cpp | nr1040gh/ParticleSim | fdd692c71ec3ec495741f11f91b4c7caed4e7996 | [
"MIT"
] | null | null | null | #include "box.hpp"
Box::Box(int size)
{
height = size;
width = size;
rightWall = size;
ceiling = size;
}
int Box::getLeftWall() const
{
return leftWall;
}
int Box::getRightWall() const
{
return rightWall;
}
int Box::getFloor() const
{
return floor;
}
int Box::getCeiling() const
{
... | 10.272727 | 29 | 0.610619 | nr1040gh |
f0f69aaeba6ddfdfabc08b8d12338a78c83d0359 | 10,551 | cpp | C++ | src/caffe/layers/conv_layer.cpp | dsisds/caffe-visualization | 5518fbcfb609c20910d81900c1817e8f7e816ffd | [
"BSD-2-Clause"
] | 2 | 2015-05-21T07:56:58.000Z | 2015-11-09T13:33:06.000Z | src/caffe/layers/conv_layer.cpp | dsisds/caffe-visualization | 5518fbcfb609c20910d81900c1817e8f7e816ffd | [
"BSD-2-Clause"
] | null | null | null | src/caffe/layers/conv_layer.cpp | dsisds/caffe-visualization | 5518fbcfb609c20910d81900c1817e8f7e816ffd | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2014 BVLC and contributors.
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/vision_layers.hpp"
#include "caffe/util/im2col.hpp"
#include "caffe/filler.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void ConvolutionLayer<Dtype>::SetUp(const vector<... | 38.648352 | 110 | 0.618046 | dsisds |
f0f78f0061372036289dd16f3837a33d66b8bca0 | 3,928 | cpp | C++ | Test.Urasandesu.Prig/InstanceGettersTest.cpp | urasandesu/Prig | eefdd9f4fa02b2c7c0d462c9784ec4065c17f491 | [
"MIT"
] | 109 | 2015-02-21T13:21:53.000Z | 2022-03-01T19:15:05.000Z | Test.Urasandesu.Prig/InstanceGettersTest.cpp | urasandesu/Prig | eefdd9f4fa02b2c7c0d462c9784ec4065c17f491 | [
"MIT"
] | 78 | 2015-01-06T11:19:18.000Z | 2020-12-28T08:17:47.000Z | Test.Urasandesu.Prig/InstanceGettersTest.cpp | urasandesu/Prig | eefdd9f4fa02b2c7c0d462c9784ec4065c17f491 | [
"MIT"
] | 27 | 2015-03-25T18:18:21.000Z | 2022-03-21T11:22:20.000Z | /*
* File: InstanceGettersTest.cpp
*
* Author: Akira Sugiura (urasandesu@gmail.com)
*
*
* Copyright (c) 2014 Akira Sugiura
*
* This software is MIT License.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation ... | 34.45614 | 202 | 0.655041 | urasandesu |
f0f817ddce5d070e85c95bbc42285f1fa245f6b3 | 5,249 | cpp | C++ | Libraries/oneMKL/matrix_mul_mkl/matrix_mul_mkl.cpp | tomlenth/oneAPI-samples | 67df7461a8484a6b928f41158e9b7f9c38eef7bd | [
"MIT"
] | 1 | 2020-12-17T07:27:46.000Z | 2020-12-17T07:27:46.000Z | Libraries/oneMKL/matrix_mul_mkl/matrix_mul_mkl.cpp | tomlenth/oneAPI-samples | 67df7461a8484a6b928f41158e9b7f9c38eef7bd | [
"MIT"
] | 1 | 2020-11-05T00:03:03.000Z | 2020-11-05T00:03:03.000Z | Libraries/oneMKL/matrix_mul_mkl/matrix_mul_mkl.cpp | tomlenth/oneAPI-samples | 67df7461a8484a6b928f41158e9b7f9c38eef7bd | [
"MIT"
] | null | null | null | //==============================================================
// Copyright © 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT
// =============================================================
//
// Matrix Multiplication is a simple program that multiplies together two
// large matrices and verifies the r... | 32.602484 | 83 | 0.496476 | tomlenth |
f0f97c4c2c44395d1cb8b8d461e9cb2d1c0e27dd | 1,086 | cpp | C++ | src/app/main.cpp | jarllarsson/loppan | 64676c950facfedd88b4b5fbc589610251fb0c2b | [
"BSD-3-Clause"
] | null | null | null | src/app/main.cpp | jarllarsson/loppan | 64676c950facfedd88b4b5fbc589610251fb0c2b | [
"BSD-3-Clause"
] | 9 | 2015-04-25T13:50:29.000Z | 2015-05-03T14:17:37.000Z | src/app/main.cpp | jarllarsson/loppan | 64676c950facfedd88b4b5fbc589610251fb0c2b | [
"BSD-3-Clause"
] | null | null | null | #define WIN32_LEAN_AND_MEAN
#ifndef _WINDEF_
struct HINSTANCE__;
typedef HINSTANCE__* HINSTANCE;
#endif
#include <vector>
#include "App.h"
#include <DebugPrint.h>
#include <ToString.h>
#include <vld.h>
using namespace std;
// =======================================================================================
/... | 24.681818 | 96 | 0.464088 | jarllarsson |
f0f9a7fe9a27292034f7a88688cbe38d52b43257 | 6,098 | cpp | C++ | tests/test_linked_list.cpp | felipe-lavratti/fl-lib | b6f4a553b72b0d27362babd4918d55bda1a636dd | [
"BSD-Source-Code"
] | 4 | 2017-02-17T18:13:09.000Z | 2018-02-20T13:25:42.000Z | tests/test_linked_list.cpp | felipe-lavratti/fl-lib | b6f4a553b72b0d27362babd4918d55bda1a636dd | [
"BSD-Source-Code"
] | null | null | null | tests/test_linked_list.cpp | felipe-lavratti/fl-lib | b6f4a553b72b0d27362babd4918d55bda1a636dd | [
"BSD-Source-Code"
] | null | null | null | #include "catch.hpp"
#include <fl-lib.hpp>
#define CHECK_EQUAL(___a,___b) CHECK(___a == ___b)
struct test_t
{
uint8_t b1;
fl_linked_list_t h;
uint8_t b2;
};
static bool compare (test_t * element, test_t * seed)
{
return element == seed;
}
static void freefunc (test_t * element)
{
element->b1 = 0... | 24.198413 | 83 | 0.500492 | felipe-lavratti |
0b0958cadb1767fce66988e5679e06359ec150d9 | 480 | hpp | C++ | include/RED4ext/Types/generated/quest/SceneLocation.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | 1 | 2021-02-01T23:07:50.000Z | 2021-02-01T23:07:50.000Z | include/RED4ext/Types/generated/quest/SceneLocation.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | include/RED4ext/Types/generated/quest/SceneLocation.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/CName.hpp>
namespace RED4ext
{
namespace quest {
struct SceneLocation
{
static constexpr const char* NAME = "questSceneLocation";
static co... | 20.869565 | 61 | 0.74375 | Cyberpunk-Extended-Development-Team |
0b0b44d8d851c8386ea32f76a5bd94d2142b4e10 | 2,381 | hpp | C++ | sprout/container/container_transform_traits.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | 1 | 2020-02-04T05:16:01.000Z | 2020-02-04T05:16:01.000Z | sprout/container/container_transform_traits.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | sprout/container/container_transform_traits.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_CONTAINER_CONTAINER_TRANSFORM_TRAITS_HPP
#define SPROUT_CONTAINER_CONTAINER_TRANSFORM_TRAITS_HPP
#include <cstddef>
#include <type_traits>
#include <sprout/config.hpp>
#include <sprout/container/container_traits.hpp>
#include <sprout/container/detail/array_like.hpp>
namespace sprout {
//
/... | 29.7625 | 112 | 0.739605 | osyo-manga |
0b0b4b8448066e5f770dc6dfc44aa9be657d7860 | 2,201 | hpp | C++ | packages/monte_carlo/estimator/native/src/MonteCarlo_StandardSurfaceEstimator.hpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/monte_carlo/estimator/native/src/MonteCarlo_StandardSurfaceEstimator.hpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/monte_carlo/estimator/native/src/MonteCarlo_StandardSurfaceEstimator.hpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_StandardSurfaceEstimator.hpp
//! \author Alex Robinson
//! \brief Standard surface estimator class declaration.
//!
//---------------------------------------------------------------------------//
#ifndef FACEMC_... | 33.348485 | 111 | 0.662426 | lkersting |
0b0b82c83dd5c44c338272b8b6d51a449dc69342 | 609 | cpp | C++ | tggd_alakajam13/Game.Audio.Sfx.cpp | playdeezgames/tggd_alakajam13 | e4433a14d4e74cc4f711c7bb6610c87e2fd9b377 | [
"MIT"
] | null | null | null | tggd_alakajam13/Game.Audio.Sfx.cpp | playdeezgames/tggd_alakajam13 | e4433a14d4e74cc4f711c7bb6610c87e2fd9b377 | [
"MIT"
] | null | null | null | tggd_alakajam13/Game.Audio.Sfx.cpp | playdeezgames/tggd_alakajam13 | e4433a14d4e74cc4f711c7bb6610c87e2fd9b377 | [
"MIT"
] | null | null | null | #include <Audio.Sfx.h>
#include <Game.Audio.Sfx.h>
#include <map>
namespace game::audio
{
static const std::map<game::audio::GameSfx, std::string> table =
{
{ GameSfx::PIG_DIE , "deadmonster"},
{ GameSfx::PIG_EAT , "eat"},
{ GameSfx::GET_TURD , "eww"},
{ GameSfx::THROW_FEED , "meh"},
{ GameSfx::NO_CHARGE , ... | 23.423077 | 65 | 0.619048 | playdeezgames |
0b1102b812446866e9ffd3671ffe320bca978cfb | 892 | cpp | C++ | DSA-450/06BinaryTree/01levelTrav.cpp | vikkastiwari/cpp-coding-questions | 020790e1a3b26c7b24991427004730b3f0785c71 | [
"MIT"
] | null | null | null | DSA-450/06BinaryTree/01levelTrav.cpp | vikkastiwari/cpp-coding-questions | 020790e1a3b26c7b24991427004730b3f0785c71 | [
"MIT"
] | null | null | null | DSA-450/06BinaryTree/01levelTrav.cpp | vikkastiwari/cpp-coding-questions | 020790e1a3b26c7b24991427004730b3f0785c71 | [
"MIT"
] | null | null | null | // question link: https://practice.geeksforgeeks.org/problems/level-order-traversal/1#
// Input:
// 10
// / \
// 20 30
// / \
// 40 60
// Output:10 20 30 40 60 N N
class Solution
{
public:
//Function to return the level order traversal of a tree.
vector<int> levelOrder(Node ... | 21.238095 | 86 | 0.450673 | vikkastiwari |
0b146f0e8cc19eb472a8dcbc4dd63303d19d0e55 | 74,068 | hpp | C++ | libs/boost_1_72_0/boost/fusion/tuple/detail/preprocessed/make_tuple30.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/fusion/tuple/detail/preprocessed/make_tuple30.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/fusion/tuple/detail/preprocessed/make_tuple30.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | /*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
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)
This is an auto-generated file. Do n... | 56.887865 | 80 | 0.667697 | henrywarhurst |
0b16be5fa8d992757c8e3b59bb09d94f0ac90f5b | 827 | cpp | C++ | source/FuncRegister.cpp | xzrunner/ce | d27d00488300560db8cb7a570c34297b4eb870e9 | [
"MIT"
] | null | null | null | source/FuncRegister.cpp | xzrunner/ce | d27d00488300560db8cb7a570c34297b4eb870e9 | [
"MIT"
] | null | null | null | source/FuncRegister.cpp | xzrunner/ce | d27d00488300560db8cb7a570c34297b4eb870e9 | [
"MIT"
] | null | null | null | #include "archgraph/FuncRegister.h"
#include "archgraph/ShapeAttrFuncs.h"
#include "archgraph/BuildInFuncs.h"
namespace archgraph
{
CU_SINGLETON_DEFINITION(FuncRegister);
extern void regist_rttr();
FuncRegister::FuncRegister()
{
InitFuncs();
regist_rttr();
}
FuncPtr FuncRegister::QueryFunc(const std::string&... | 20.675 | 78 | 0.698912 | xzrunner |
0b184a5517e000a0a33632971cdc4240a792bc75 | 2,823 | cc | C++ | tests/io/test_base64.cc | wsmigaj/eckit | 1a44679243fde8907e760f9cc9eaca87efbd651a | [
"Apache-2.0"
] | null | null | null | tests/io/test_base64.cc | wsmigaj/eckit | 1a44679243fde8907e760f9cc9eaca87efbd651a | [
"Apache-2.0"
] | 14 | 2019-09-30T19:24:29.000Z | 2020-10-15T16:02:11.000Z | tests/io/test_base64.cc | wsmigaj/eckit | 1a44679243fde8907e760f9cc9eaca87efbd651a | [
"Apache-2.0"
] | 2 | 2019-10-17T13:52:08.000Z | 2019-11-25T14:53:52.000Z | /*
* (C) Copyright 1996- ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an interg... | 26.138889 | 120 | 0.481757 | wsmigaj |
0b1a4f08ce95851bd1771961122765347f792460 | 798 | cpp | C++ | codeforces/A - Generate Login/Wrong answer on test 2.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/A - Generate Login/Wrong answer on test 2.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/A - Generate Login/Wrong answer on test 2.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Dec/28/2017 08:45
* solution_verdict: Wrong answer on test 2 language: GNU C++14
* run... | 34.695652 | 111 | 0.369674 | kzvd4729 |
0b1ffe96bf4355ff56cc000b27382d629711ecfb | 3,018 | cpp | C++ | HookPorts/Dispatch_NTDLL_NtCreateSemaphore.cpp | Souhardya/Slavyana | e5dd2f14af1499c83650c371fa86dc1c51e2556d | [
"Apache-2.0"
] | 20 | 2021-12-31T11:28:38.000Z | 2022-03-22T13:28:59.000Z | HookPorts/Dispatch_NTDLL_NtCreateSemaphore.cpp | Souhardya/Slavyana | e5dd2f14af1499c83650c371fa86dc1c51e2556d | [
"Apache-2.0"
] | null | null | null | HookPorts/Dispatch_NTDLL_NtCreateSemaphore.cpp | Souhardya/Slavyana | e5dd2f14af1499c83650c371fa86dc1c51e2556d | [
"Apache-2.0"
] | 8 | 2022-03-12T10:09:39.000Z | 2022-03-15T08:39:27.000Z | #include <windows.h>
#include <ntsecapi.h>
#include "./Dispatch_NTDLL_NtCreateSemaphore.h"
#include "../Common/DebugLog.h"
#include "./HookHelp.h"
#include "./GetProcAddressEx.h"
#include "../Config/Config.h"
#include "./Main.h"
#include "./NativeAPI_NTDLL.h"
//
//Global
//
__pfnNtCreateSemaphore pf... | 21.404255 | 99 | 0.690192 | Souhardya |
0b2292668f6a037c6277db24a8c073aac840e991 | 1,747 | hpp | C++ | include/OIDecoder.hpp | thaisacs/oi-dbt | 8637bc5dbb74d6a32debeef483c8d347c3591d0a | [
"MIT"
] | 5 | 2020-08-26T17:58:15.000Z | 2021-12-25T12:10:22.000Z | include/OIDecoder.hpp | OpenISA/dbt-openisa | 509b8ee4ffe8c2f5c758e3308db8ab6988ee44a7 | [
"MIT"
] | 1 | 2019-03-20T08:41:44.000Z | 2019-03-20T08:41:44.000Z | include/OIDecoder.hpp | grsouza/oi-dbt | be3d6f7cdcb7ce70a8babf74b23ebf8ce61baf17 | [
"MIT"
] | 5 | 2017-07-25T21:57:58.000Z | 2019-04-28T22:42:50.000Z | #ifndef OIDECODER_HPP
#define OIDECODER_HPP
#include <memory>
#include <iostream>
#define LDI_REG 64
#define IJMP_REG 65
#define CC_REG 257
//#define PRINTREG
namespace dbt {
namespace OIDecoder {
union Word {
char asC_[4];
uint32_t asI_;
};
enum OIInstType
{ Add , And , Andi, ... | 33.596154 | 123 | 0.613623 | thaisacs |
0b24855b77e98573f13aa73bb36031ee91e1dc69 | 250 | cpp | C++ | src/shape.cpp | nagaunv/rt | c96b74ed645c6f534c4d41f8e1e767fd56aad4f3 | [
"MIT"
] | null | null | null | src/shape.cpp | nagaunv/rt | c96b74ed645c6f534c4d41f8e1e767fd56aad4f3 | [
"MIT"
] | null | null | null | src/shape.cpp | nagaunv/rt | c96b74ed645c6f534c4d41f8e1e767fd56aad4f3 | [
"MIT"
] | null | null | null | #include "shape.hpp"
namespace naga::rt {
Bounds3 GeometricShape::getBoundingBox() const {
return Bounds3{(*m_object_to_world) * Vec4(getObjectBound().min(), 1),
(*m_object_to_world) * Vec4(getObjectBound().max(), 1)};
}
} | 31.25 | 75 | 0.644 | nagaunv |
0b271e7765cec6a5352937f580cf968a72894c11 | 1,135 | cpp | C++ | Source/ObjectStructure.cpp | mizuooon/rtcamp6 | dd0761f8f155d1a135cbc6f6e96d58aa2f1c3d90 | [
"Unlicense"
] | null | null | null | Source/ObjectStructure.cpp | mizuooon/rtcamp6 | dd0761f8f155d1a135cbc6f6e96d58aa2f1c3d90 | [
"Unlicense"
] | null | null | null | Source/ObjectStructure.cpp | mizuooon/rtcamp6 | dd0761f8f155d1a135cbc6f6e96d58aa2f1c3d90 | [
"Unlicense"
] | null | null | null | #include "ObjectStructure.h"
void BVHIterator::findNextObject() {
auto pickShallowerNode = [&]() {
if ( !objStack.empty() ) {
currentNode = objStack.top();
objStack.pop();
return;
} else {
if ( auto parent = currentLocalRootNode->parent.lock() ) {
lastLocalIndex = currentLocalRootNode->localIndex;... | 24.148936 | 64 | 0.609692 | mizuooon |
0b2d808242b8a2d977d3e8526f675b52c26d70fb | 974 | cpp | C++ | src/context/box/simple_box/click.cpp | Damdoshi/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 38 | 2016-07-30T09:35:19.000Z | 2022-03-04T10:13:48.000Z | src/context/box/simple_box/click.cpp | Elania-Marvers/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 15 | 2017-02-12T19:20:52.000Z | 2021-06-09T09:30:52.000Z | src/context/box/simple_box/click.cpp | Elania-Marvers/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 12 | 2016-10-06T09:06:59.000Z | 2022-03-04T10:14:00.000Z | // Jason Brillante "Damdoshi"
// Hanged Bunny Studio 2014-2018
//
// Bibliothèque Lapin
#include "lapin_private.h"
t_bunny_response bunny_click_simple_box_dabsic(t_bunny_box_system *sys,
t_bunny_gui_box *box)
{
t_bunny_configuration *cnf;
(void)sys;
if ((cnf = bunny_new_configuration()) == NULL)
... | 24.974359 | 92 | 0.695072 | Damdoshi |
0b3068bc7ee5a48517e6f3734ab1bc392cf25b87 | 709 | cpp | C++ | Problem Solving Paradigm/Greedy/Involving Sorting (Or The Input Is Already Sorted)/11369.cpp | joe-stifler/uHunt | 02465ea9868403691e4f0aaa6ddde730afa11f47 | [
"MIT"
] | 3 | 2019-05-22T00:36:23.000Z | 2021-03-22T12:23:18.000Z | Problem Solving Paradigm/Greedy/Involving Sorting (Or The Input Is Already Sorted)/11369.cpp | joe-stifler/uHunt | 02465ea9868403691e4f0aaa6ddde730afa11f47 | [
"MIT"
] | null | null | null | Problem Solving Paradigm/Greedy/Involving Sorting (Or The Input Is Already Sorted)/11369.cpp | joe-stifler/uHunt | 02465ea9868403691e4f0aaa6ddde730afa11f47 | [
"MIT"
] | null | null | null | /*------------------------------------------------*/
// Uva Problem No: 11369
// Problem Name: Shopaholic
// Type: Involving Sorting (Greedy)
// Autor: Joe Stifler
// Data: 2018-06-10 09:40:55
// Runtime: 0.020s
// Universidade: Unicamp
/*------------------------------------------------*/
#include <bits/stdc++.h>
usin... | 23.633333 | 75 | 0.438646 | joe-stifler |
0b31a3a3783390d69e00871e94a1e565239d61bc | 11,177 | hpp | C++ | include/Btk/font.hpp | BusyStudent/Btk | 27b23aa77e4fbcc48bdfe566ce7cae46183c289c | [
"MIT"
] | 2 | 2021-06-19T08:21:38.000Z | 2021-08-15T21:37:30.000Z | include/Btk/font.hpp | BusyStudent/Btk | 27b23aa77e4fbcc48bdfe566ce7cae46183c289c | [
"MIT"
] | null | null | null | include/Btk/font.hpp | BusyStudent/Btk | 27b23aa77e4fbcc48bdfe566ce7cae46183c289c | [
"MIT"
] | 1 | 2021-04-03T14:27:39.000Z | 2021-04-03T14:27:39.000Z | #if !defined(_BOX_FONT_HPP_)
#define _BOX_FONT_HPP_
#include <cstddef>
#include "string.hpp"
#include "pixels.hpp"
#include "defs.hpp"
namespace Btk{
namespace Ft{
/**
* @brief Font impl
*
*/
struct Font;
}
struct Size;
/**
* @brief FontStyle from SDL_ttf... | 29.805333 | 94 | 0.440995 | BusyStudent |
0b32903d07f7204966ef7de88db80ab364c25122 | 4,101 | cpp | C++ | BlasterFirmware/modules/erase_and_write.cpp | MasterQ32/LPCBlaster | 1490a6f0b7963e7acc47902d9ea2b1abd1ac4563 | [
"Zlib"
] | null | null | null | BlasterFirmware/modules/erase_and_write.cpp | MasterQ32/LPCBlaster | 1490a6f0b7963e7acc47902d9ea2b1abd1ac4563 | [
"Zlib"
] | null | null | null | BlasterFirmware/modules/erase_and_write.cpp | MasterQ32/LPCBlaster | 1490a6f0b7963e7acc47902d9ea2b1abd1ac4563 | [
"Zlib"
] | null | null | null | #include "erase_and_write.hpp"
#include "sector_table.hpp"
#include "system.hpp"
#include <hal/iap.hpp>
#include <optional>
namespace
{
enum State {
ReadFlashOffset0 = 0,
ReadFlashOffset1,
ReadFlashOffset2,
ReadFlashOffset3,
ReadWorkOffset0,
ReadWorkOffset1,
ReadLength0,
ReadLength1,
};
uint32_t fl... | 26.980263 | 90 | 0.68081 | MasterQ32 |
0b3590984660d2d7a09c4570f10bbc5178f608eb | 18,834 | cpp | C++ | Trabalho/RedeSocial.cpp | raquelperim/Trabalho-de-PAC | 193454482887512e0ef5c8cf5fa6cfb3bd5e3a96 | [
"Unlicense"
] | 2 | 2019-11-30T23:55:33.000Z | 2019-12-01T02:19:52.000Z | Trabalho/RedeSocial.cpp | raquelperim/Trabalho-de-PAC | 193454482887512e0ef5c8cf5fa6cfb3bd5e3a96 | [
"Unlicense"
] | null | null | null | Trabalho/RedeSocial.cpp | raquelperim/Trabalho-de-PAC | 193454482887512e0ef5c8cf5fa6cfb3bd5e3a96 | [
"Unlicense"
] | null | null | null | #include "RedeSocial.h"
RedeSocial::RedeSocial()
{
}
RedeSocial::RedeSocial(string n)
{
nome=n;
}
bool RedeSocial::datainvalida(tm data)
{
int d,m,a;
d=data.tm_mday;
m=data.tm_mon+1;
a=data.tm_year+1900;
if(d<1 || m<1)
{
return 1;
}
if(a>2019 || a<0 || d>3... | 26.267782 | 117 | 0.456143 | raquelperim |
0b3807d63fb06f1412d2272dc27dc0ba9a5a7653 | 3,019 | cpp | C++ | Interesting Problems/Inversion count.cpp | TiwariAnil/Algorithmic_Puzzles | 13a6b2ed8e8fd0176b9b58c073b2e9847e7ba774 | [
"MIT"
] | null | null | null | Interesting Problems/Inversion count.cpp | TiwariAnil/Algorithmic_Puzzles | 13a6b2ed8e8fd0176b9b58c073b2e9847e7ba774 | [
"MIT"
] | null | null | null | Interesting Problems/Inversion count.cpp | TiwariAnil/Algorithmic_Puzzles | 13a6b2ed8e8fd0176b9b58c073b2e9847e7ba774 | [
"MIT"
] | null | null | null | //Data Structure includes
#include<vector>
#include<stack>
#include<set>
#include<map>
#include<queue>
#include<deque>
#include<string>
#include<list>
#include<iostream>
#include<algorithm>
#include<cstring>
#include<cassert>
#include<cstdlib>
#include<cstdio>
#include<cmath>
#include<sstream>
#define maX(a,b) ... | 20.537415 | 68 | 0.510103 | TiwariAnil |
0b3baf1bad38005b72bc9a5c7a9c3c744b209dfd | 1,625 | cpp | C++ | src/streams/file_output_stream.cpp | fizixx/nucleus | a095aa9768c3e330a1ed17bebfd0d72e33033aaa | [
"MIT"
] | 1 | 2018-01-03T17:55:18.000Z | 2018-01-03T17:55:18.000Z | src/streams/file_output_stream.cpp | tiaanl/nucleus | a095aa9768c3e330a1ed17bebfd0d72e33033aaa | [
"MIT"
] | 1 | 2015-06-26T20:27:45.000Z | 2015-06-29T07:27:42.000Z | src/streams/file_output_stream.cpp | tiaanl/nucleus | a095aa9768c3e330a1ed17bebfd0d72e33033aaa | [
"MIT"
] | 1 | 2015-06-26T18:31:05.000Z | 2015-06-26T18:31:05.000Z |
#include <nucleus/streams/file_output_stream.h>
#include <nucleus/text/utils.h>
#if OS(POSIX)
#include <fcntl.h>
#include <unistd.h>
#endif
namespace nu {
FileOutputStream::FileOutputStream(const FilePath& path)
: OutputStream{OutputStream::Binary}, m_path{path} {
openHandle();
}
FileOutputStream::~FileOutputS... | 22.569444 | 96 | 0.669538 | fizixx |
0b3f1f82d8fbc952de54f705212a32929eb9c208 | 2,824 | cpp | C++ | bullet_cpp/src/btBoost/Dynamics/SolverConstraint.cpp | Klumhru/boost-python-bullet | d9ffae09157280f60cb469d8c9c9fa4c1920e3ce | [
"MIT"
] | 2 | 2015-09-16T15:24:39.000Z | 2015-11-18T11:53:51.000Z | bullet_cpp/src/btBoost/Dynamics/SolverConstraint.cpp | Klumhru/boost-python-bullet | d9ffae09157280f60cb469d8c9c9fa4c1920e3ce | [
"MIT"
] | 1 | 2018-04-04T15:33:20.000Z | 2018-04-04T15:33:20.000Z | bullet_cpp/src/btBoost/Dynamics/SolverConstraint.cpp | Klumhru/boost-python-bullet | d9ffae09157280f60cb469d8c9c9fa4c1920e3ce | [
"MIT"
] | null | null | null | #include "SolverConstraint.hpp"
#include <btBulletDynamicsCommon.h>
#include <boost/python.hpp>
#include <btBoost/LinearMath/AlignedObjectArray.hpp>
#include <btBoost/array_helpers.hpp>
using namespace boost::python;
void defineSolverConstraint()
{
enum_<btSolverConstraint::btSolverConstraintType>
("btSo... | 40.927536 | 74 | 0.626062 | Klumhru |
0b3f9375f350d42b44f52303cf4f50cec8abb4af | 1,098 | hpp | C++ | waterbox/bsnescore/bsnes/sfc/coprocessor/msu1/msu1.hpp | Fortranm/BizHawk | 8cb0ffb6f8964cc339bbe1784838918fb0aa7e27 | [
"MIT"
] | 1,414 | 2015-06-28T09:57:51.000Z | 2021-10-14T03:51:10.000Z | waterbox/bsnescore/bsnes/sfc/coprocessor/msu1/msu1.hpp | Fortranm/BizHawk | 8cb0ffb6f8964cc339bbe1784838918fb0aa7e27 | [
"MIT"
] | 2,369 | 2015-06-25T01:45:44.000Z | 2021-10-16T08:44:18.000Z | waterbox/bsnescore/bsnes/sfc/coprocessor/msu1/msu1.hpp | Fortranm/BizHawk | 8cb0ffb6f8964cc339bbe1784838918fb0aa7e27 | [
"MIT"
] | 430 | 2015-06-29T04:28:58.000Z | 2021-10-05T18:24:17.000Z | struct MSU1 : Thread {
shared_pointer<Emulator::Stream> stream;
auto synchronizeCPU() -> void;
static auto Enter() -> void;
auto main() -> void;
auto step(uint clocks) -> void;
auto unload() -> void;
auto power() -> void;
auto dataOpen() -> void;
auto audioOpen() -> void;
auto readIO(uint addr, u... | 20.333333 | 46 | 0.647541 | Fortranm |
0b40a4894a02e2d3090ef22f12b0239de1f44591 | 1,025 | hpp | C++ | src/Lox.hpp | zerodarkzone/CppLoxLLVM | 04f10cb5822477be959a5ffbc9a6a237039d7305 | [
"MIT"
] | 2 | 2020-06-07T01:35:35.000Z | 2022-02-26T09:48:15.000Z | src/Lox.hpp | zerodarkzone/CppLoxLLVM | 04f10cb5822477be959a5ffbc9a6a237039d7305 | [
"MIT"
] | null | null | null | src/Lox.hpp | zerodarkzone/CppLoxLLVM | 04f10cb5822477be959a5ffbc9a6a237039d7305 | [
"MIT"
] | null | null | null | //
// Created by juanb on 30/09/2018.
//
#ifndef CPPLOX_LOX_HPP
#define CPPLOX_LOX_HPP
#include <iostream>
#include <fstream>
#include <sstream>
#include "vm.hpp"
class Lox
{
public:
static void repl()
{
std::string line;
while (true)
{
std::cout << "> ";
std::getline(std::cin, l... | 16.532258 | 84 | 0.56878 | zerodarkzone |
0b429f3268a06c6a0ed37718b85094e04298b5ea | 552 | hpp | C++ | source/map.hpp | pedrovernetti/omn | 68bae489985ce44dd8596e45075025e71e5836ca | [
"MIT"
] | null | null | null | source/map.hpp | pedrovernetti/omn | 68bae489985ce44dd8596e45075025e71e5836ca | [
"MIT"
] | null | null | null | source/map.hpp | pedrovernetti/omn | 68bae489985ce44dd8596e45075025e71e5836ca | [
"MIT"
] | null | null | null | #pragma once
#ifndef _OMN_MAP_INCLUDED
#define _OMN_MAP_INCLUDED
#include "globalUtilities.hpp"
#include <map>
namespace std
{
template <typename keyType, typename valueType>
ostream & operator << ( ostream & os, const map<keyType, valueType> & m )
{
os << "{";
for (const auto & item : m) os << item.first << ... | 19.714286 | 78 | 0.648551 | pedrovernetti |
0b42f221c7d735e260fceb2046b24e5941ad5810 | 5,809 | cpp | C++ | tools/freebayes/vcflib/src/vcfglbound.cpp | benranco/test | 7cf9740108844da30dcc506e733015fd5dd76a05 | [
"MIT"
] | null | null | null | tools/freebayes/vcflib/src/vcfglbound.cpp | benranco/test | 7cf9740108844da30dcc506e733015fd5dd76a05 | [
"MIT"
] | null | null | null | tools/freebayes/vcflib/src/vcfglbound.cpp | benranco/test | 7cf9740108844da30dcc506e733015fd5dd76a05 | [
"MIT"
] | 1 | 2020-10-01T10:32:38.000Z | 2020-10-01T10:32:38.000Z | #include "Variant.h"
#include "split.h"
#include <getopt.h>
using namespace std;
using namespace vcf;
void printSummary(char** argv) {
cerr << "usage: " << argv[0] << " [options] <vcf file>" << endl
<< endl
<< "options:" << endl
<< " -b, --bound N Bound GLs to this limit." ... | 32.452514 | 175 | 0.438113 | benranco |
0b44d35fb75f74b2a7b7cc2abbef5f3f6a7b9a67 | 4,220 | cpp | C++ | Test/SourceCppGen/ControlFlow.cpp | vczh2/Workflow | 7ad7d53927ee66ae1df7d68b35e185ce9edcfcf1 | [
"RSA-MD"
] | 1 | 2018-10-17T16:00:38.000Z | 2018-10-17T16:00:38.000Z | Test/SourceCppGen/ControlFlow.cpp | vczh2/Workflow | 7ad7d53927ee66ae1df7d68b35e185ce9edcfcf1 | [
"RSA-MD"
] | null | null | null | Test/SourceCppGen/ControlFlow.cpp | vczh2/Workflow | 7ad7d53927ee66ae1df7d68b35e185ce9edcfcf1 | [
"RSA-MD"
] | null | null | null | /***********************************************************************
!!!!!! DO NOT MODIFY !!!!!!
Source: ../Resources/Codegen/ControlFlow.txt
This file is generated by Workflow compiler
https://github.com/vczh-libraries
***********************************************************************/
#include "ControlFlo... | 27.763158 | 643 | 0.590284 | vczh2 |
0b46cb97b86b20d2014100814c99a416a808df25 | 7,762 | cpp | C++ | c/src/xkms/impl/XKMSRecoverRequestImpl.cpp | douglascrp/xmlsec-mityc-sinadura | cf63024481914be33ae3a06ef1cc7629dd59aa0f | [
"Apache-2.0"
] | null | null | null | c/src/xkms/impl/XKMSRecoverRequestImpl.cpp | douglascrp/xmlsec-mityc-sinadura | cf63024481914be33ae3a06ef1cc7629dd59aa0f | [
"Apache-2.0"
] | null | null | null | c/src/xkms/impl/XKMSRecoverRequestImpl.cpp | douglascrp/xmlsec-mityc-sinadura | cf63024481914be33ae3a06ef1cc7629dd59aa0f | [
"Apache-2.0"
] | 2 | 2018-08-10T18:54:23.000Z | 2018-08-10T18:56:27.000Z | /*
* Copyright 2006 The Apache Software Foundation.
*
* 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... | 30.320313 | 105 | 0.642618 | douglascrp |
0b53d0c319abd7b1358175b346c7f122e5f1f712 | 5,914 | cpp | C++ | src/modules/SD3/scripts/eastern_kingdoms/swamp_of_sorrows.cpp | Zilvereyes/ServerThree | b61c215b000f199eb884ebc39844ebbbd0703a1b | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | src/modules/SD3/scripts/eastern_kingdoms/swamp_of_sorrows.cpp | Zilvereyes/ServerThree | b61c215b000f199eb884ebc39844ebbbd0703a1b | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | src/modules/SD3/scripts/eastern_kingdoms/swamp_of_sorrows.cpp | Zilvereyes/ServerThree | b61c215b000f199eb884ebc39844ebbbd0703a1b | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | /**
* ScriptDev3 is an extension for mangos providing enhanced features for
* area triggers, creatures, game objects, instances, items, and spells beyond
* the default database scripting in mangos.
*
* Copyright (C) 2006-2013 ScriptDev2 <http://www.scriptdev2.com/>
* Copyright (C) 2014-2016 MaNGOS <https://get... | 29.868687 | 114 | 0.563578 | Zilvereyes |
0b56ab7dc7b389c61c4fd9c50e5a5416fee2df7f | 307 | cpp | C++ | December-Easy-18/D.binary-asccociative.cpp | annukamat/My-Competitive-Journey | adb13a5723483cde13e5f3859b3a7ad840b86c97 | [
"MIT"
] | 7 | 2018-11-08T11:39:27.000Z | 2020-09-10T17:50:57.000Z | December-Easy-18/D.binary-asccociative.cpp | annukamat/My-Competitive-Journey | adb13a5723483cde13e5f3859b3a7ad840b86c97 | [
"MIT"
] | null | null | null | December-Easy-18/D.binary-asccociative.cpp | annukamat/My-Competitive-Journey | adb13a5723483cde13e5f3859b3a7ad840b86c97 | [
"MIT"
] | 2 | 2019-09-16T14:34:03.000Z | 2019-10-12T19:24:00.000Z | #include <bits/stdc++.h>
using namespace std;
int main(){
int t, c0, c1, c2, c3;
cin>>t;
while(t--){
cin>>c0>>c1>>c2>>c3;
if(c0 == 0 && c1 == 1 && c2 == 1 && c3 == 0){
cout<<"\n"<<"Yes";
} else {
cout<<"\n"<<"No";
}
}
return 0;
} | 18.058824 | 53 | 0.368078 | annukamat |
0b597063982e2eaf4ee90f50029fcc48857d063e | 518 | hpp | C++ | tests/UnitTests/Mocks/MockExitCondition.hpp | domin1101/ANNHelper | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | 5 | 2016-02-04T06:14:42.000Z | 2017-02-06T02:21:43.000Z | tests/UnitTests/Mocks/MockExitCondition.hpp | domin1101/ANNHelper | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | 41 | 2015-04-15T21:05:45.000Z | 2015-07-09T12:59:02.000Z | tests/UnitTests/Mocks/MockExitCondition.hpp | domin1101/LightBulb | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | null | null | null | #pragma once
#ifndef _MOCKEXITCONDITION_H_
#define _MOCKEXITCONDITION_H_
#include "gmock/gmock.h"
#include <LightBulb/Learning/Evolution/AbstractExitCondition.hpp>
class MockExitCondition : public LightBulb::AbstractExitCondition
{
public:
MOCK_METHOD1(setLogger, void (LightBulb::AbstractLogger&));
MOCK_METHOD2(ev... | 28.777778 | 151 | 0.805019 | domin1101 |
0b5d7518fb83306016339963234a99e2051cffe4 | 2,045 | hpp | C++ | include/public/coherence/lang/Number.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-01T21:38:30.000Z | 2021-11-03T01:35:11.000Z | include/public/coherence/lang/Number.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 1 | 2020-07-24T17:29:22.000Z | 2020-07-24T18:29:04.000Z | include/public/coherence/lang/Number.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-10T18:40:58.000Z | 2022-02-18T01:23:40.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#ifndef COH_NUMBER_HPP
#define COH_NUMBER_HPP
#include "coherence/lang/compatibility.hpp"
#include "coherence/lang/interface_spec.hpp"
#inclu... | 27.635135 | 77 | 0.616626 | chpatel3 |
0b5f560619ee6139b9b140c43bab7ddd424a4f93 | 2,350 | cpp | C++ | src/Meta.cpp | Aloz1/ciyam | 424b47fd73fa1f6a1a076f8908ae7086eeeeedc5 | [
"MIT"
] | null | null | null | src/Meta.cpp | Aloz1/ciyam | 424b47fd73fa1f6a1a076f8908ae7086eeeeedc5 | [
"MIT"
] | null | null | null | src/Meta.cpp | Aloz1/ciyam | 424b47fd73fa1f6a1a076f8908ae7086eeeeedc5 | [
"MIT"
] | null | null | null | // Copyright (c) 2008-2012 CIYAM Pty. Ltd. ACN 093 704 539
// Copyright (c) 2012-2018 CIYAM Developers
//
// Distributed under the MIT/X11 software license, please refer to the file license.txt
// in the root project directory or http://www.opensource.org/licenses/mit-license.php.
#ifdef PRECOMPILE_H
# include "preco... | 21.962617 | 106 | 0.718723 | Aloz1 |
0b6763e38d109b0aa7a85f77dd1221d9cb9fa528 | 1,661 | cpp | C++ | src/irace_conf.cpp | federicoPagnozzi/grammar2code | 2c1d9e20549390655d0179c4030b7a3ecddc34da | [
"BSD-2-Clause"
] | null | null | null | src/irace_conf.cpp | federicoPagnozzi/grammar2code | 2c1d9e20549390655d0179c4030b7a3ecddc34da | [
"BSD-2-Clause"
] | null | null | null | src/irace_conf.cpp | federicoPagnozzi/grammar2code | 2c1d9e20549390655d0179c4030b7a3ecddc34da | [
"BSD-2-Clause"
] | null | null | null | //
// irace_conf.cpp
// grammar2code
//
// Created by Franco Mascia on 18/03/13.
// Copyright (c) 2013 Franco Mascia. All rights reserved.
//
// This file is distributed under the BSD 2-Clause License. See LICENSE.TXT
// for details.
//
#include "grammar.hpp"
#include "error.hpp"
#include <boost/algorithm/strin... | 29.660714 | 205 | 0.636966 | federicoPagnozzi |
0b67b9769c2446bdf7c19d5eca745b801427e68c | 1,758 | hpp | C++ | src/Game/Entity/Entity.hpp | D3r3k23/DrkCraft | 5eaae66f558ce84f18de702b4227ca8d2cfe534f | [
"MIT"
] | 1 | 2022-02-10T04:41:57.000Z | 2022-02-10T04:41:57.000Z | src/Game/Entity/Entity.hpp | D3r3k23/DrkCraft | 5eaae66f558ce84f18de702b4227ca8d2cfe534f | [
"MIT"
] | null | null | null | src/Game/Entity/Entity.hpp | D3r3k23/DrkCraft | 5eaae66f558ce84f18de702b4227ca8d2cfe534f | [
"MIT"
] | null | null | null | #ifndef DRK_GAME_ENTITY_ENTITY_HPP
#define DRK_GAME_ENTITY_ENTITY_HPP
#include "Core/Base.hpp"
#include <entt/entity/registry.hpp>
namespace DrkCraft
{
using EntityID = uint32; // 16 <--
class Entity
{
friend class EntityScene;
private:
Entity(entt::registry& registry)
: m... | 21.975 | 80 | 0.550626 | D3r3k23 |
0b68b9f1080b3e555477f3c19e7e6f17cd3ff580 | 563 | hpp | C++ | MineClone/src/World/Chunk/Chunk.hpp | Harry09/MineClone | ee893640b7570c38b5930569e2e67a18a5afce53 | [
"MIT"
] | null | null | null | MineClone/src/World/Chunk/Chunk.hpp | Harry09/MineClone | ee893640b7570c38b5930569e2e67a18a5afce53 | [
"MIT"
] | null | null | null | MineClone/src/World/Chunk/Chunk.hpp | Harry09/MineClone | ee893640b7570c38b5930569e2e67a18a5afce53 | [
"MIT"
] | 1 | 2020-09-02T10:36:39.000Z | 2020-09-02T10:36:39.000Z | #pragma once
#include "ChunkSegment.hpp"
class FastNoise;
class Chunk
{
public:
constexpr static int Height = 3;
private:
std::vector<std::unique_ptr<ChunkSegment>> _segments;
coords::ChunkPos _chunkPos{ 0 };
public:
Chunk(const coords::ChunkPos& chunkPos);
const coords::ChunkPos& getChunkPos() const { retu... | 18.766667 | 66 | 0.760213 | Harry09 |
0b6d65de3d32c658ad8f746ff6b03e5dd9af75eb | 802 | cpp | C++ | net.ssa/xrPlugins/xrCore/Source/LocatorAPI_wrapper.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:19.000Z | 2022-03-26T17:00:19.000Z | xrPlugins/xrCore/Source/LocatorAPI_wrapper.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | null | null | null | xrPlugins/xrCore/Source/LocatorAPI_wrapper.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:21.000Z | 2022-03-26T17:00:21.000Z | #include "stdafx.h"
#include "LocatorAPI_wrapper.h"
#include "xr_ini.h"
LPCSTR CLocatorAPI_wrapper::get_path (LPCSTR path)
{
FS_Path* p = FS.get_path(path);
return p->m_Path;
}
// inifile
CInifile_wrapper::CInifile_wrapper(LPCSTR name)
{
m_ini = xr_new<CInifile>(name,true);
}
BOOL CInifile_w... | 19.095238 | 74 | 0.670823 | ixray-team |
0b6e5276cd6ec1f2c4d68ead8ceb55ef43bf4c40 | 754 | cpp | C++ | baekjoon/2493.cpp | GihwanKim/Baekjoon | 52eb2bf80bb1243697858445e5b5e2d50d78be4e | [
"MIT"
] | null | null | null | baekjoon/2493.cpp | GihwanKim/Baekjoon | 52eb2bf80bb1243697858445e5b5e2d50d78be4e | [
"MIT"
] | null | null | null | baekjoon/2493.cpp | GihwanKim/Baekjoon | 52eb2bf80bb1243697858445e5b5e2d50d78be4e | [
"MIT"
] | null | null | null | /*
2493 : 탑
URL : https://www.acmicpc.net/problem/2493
Input :
5
6 9 5 7 4
Output :
0 0 2 2 4
*/
#include <stdio.h>
#define MAX_N 500001
int N;
int index[MAX_N];
int stack[MAX_N];
int main(int argc, char const *argv[])
{
scanf("%d", &N);
int top = 0;
int height ... | 14.226415 | 46 | 0.381963 | GihwanKim |
0b70a4712db7168370bf2d6d15145d2a7bd93008 | 302 | hpp | C++ | include/dungeon/dungeon_series.hpp | tanacchi/rogue_game | fd8f655f95932513f6aa63e0c413bbe110a4418a | [
"MIT"
] | 10 | 2018-09-13T14:47:07.000Z | 2022-01-10T11:46:12.000Z | include/dungeon/dungeon_series.hpp | tanacchi/rogue_game | fd8f655f95932513f6aa63e0c413bbe110a4418a | [
"MIT"
] | 13 | 2018-09-18T19:36:32.000Z | 2020-11-12T16:26:22.000Z | include/dungeon/dungeon_series.hpp | tanacchi/rogue_game | fd8f655f95932513f6aa63e0c413bbe110a4418a | [
"MIT"
] | null | null | null | #ifndef INCLUDED_DUNGEON_SERIES_HPP
#define INCLUDED_DUNGEON_SERIES_HPP
#include <dungeon/door.hpp>
#include <dungeon/floor.hpp>
#include <dungeon/horizontal_wall.hpp>
#include <dungeon/none.hpp>
#include <dungeon/path.hpp>
#include <dungeon/vertical_wall.hpp>
#endif // INCLUDED_DUNGEON_SERIES_HPP
| 25.166667 | 38 | 0.811258 | tanacchi |
0b73e21f84d9e78f064742f6329bcafdc0c03781 | 3,300 | cpp | C++ | Components/Network/Channel.cpp | Soolo-ss/Solo | 38bf835d61e80e32326537e62735729ab07647d3 | [
"Apache-2.0"
] | null | null | null | Components/Network/Channel.cpp | Soolo-ss/Solo | 38bf835d61e80e32326537e62735729ab07647d3 | [
"Apache-2.0"
] | null | null | null | Components/Network/Channel.cpp | Soolo-ss/Solo | 38bf835d61e80e32326537e62735729ab07647d3 | [
"Apache-2.0"
] | null | null | null | //
// Created by pc4 on 2018/1/26.
//
#include "Packet.h"
#include "Channel.h"
#include "NetworkComponent.h"
#include <assert.h>
namespace solo
{
Channel::Channel()
: network_(nullptr),
ep_()
{
}
Endpoint& Channel::ep()
{
return *ep_;
}
int64 Channel::channel... | 21.019108 | 125 | 0.511515 | Soolo-ss |
0b747e6dcf5424f97ad66a95c04653f320cc6a7c | 30,906 | cpp | C++ | D3D11_ColorFilter/external/asdx11/src/asdxTarget.cpp | ProjectAsura/D3D11Samples | fb715afc4718cbb657b5fb2f0885304b1967f55e | [
"MIT"
] | null | null | null | D3D11_ColorFilter/external/asdx11/src/asdxTarget.cpp | ProjectAsura/D3D11Samples | fb715afc4718cbb657b5fb2f0885304b1967f55e | [
"MIT"
] | null | null | null | D3D11_ColorFilter/external/asdx11/src/asdxTarget.cpp | ProjectAsura/D3D11Samples | fb715afc4718cbb657b5fb2f0885304b1967f55e | [
"MIT"
] | null | null | null | //-------------------------------------------------------------------------------------------------
// File : dfw_RenderTarget2D.cpp
// Desc : RenderTarget2D Module.
// Copyright(c) Project Asura. All right reserved.
//-------------------------------------------------------------------------------------------------
/... | 32.060166 | 122 | 0.471559 | ProjectAsura |
0b79c98b4c960164cd44d4977e0508b167ef681f | 1,016 | cc | C++ | removeDuplicatesFromSortedListII.cc | zxylvlp/MyLeetCode | 7b2fe7a5f6515c365b903511d87e6879c0b62734 | [
"MIT"
] | 1 | 2015-11-16T05:06:10.000Z | 2015-11-16T05:06:10.000Z | removeDuplicatesFromSortedListII.cc | zxylvlp/MyLeetCode | 7b2fe7a5f6515c365b903511d87e6879c0b62734 | [
"MIT"
] | null | null | null | removeDuplicatesFromSortedListII.cc | zxylvlp/MyLeetCode | 7b2fe7a5f6515c365b903511d87e6879c0b62734 | [
"MIT"
] | null | null | null | #include "listnode.hh"
class Solution {
public:
ListNode* deleteDuplicates(ListNode* head) {
ListNode dummy(0);
dummy.next = head;
ListNode *p = &dummy;
ListNode *p1 = head;
ListNode *p2 = head;
while (p1) {
while (p2->n... | 21.166667 | 60 | 0.418307 | zxylvlp |
0b7e745f04e9b4e0aec5473416d95e9953184d4d | 2,505 | cpp | C++ | kattis/number_of_zeros/NumberOfZeros.cpp | FredrikWallstrom/Kattis | aee103c8d97d2aba61dae59146a015ccb5a7a634 | [
"MIT"
] | 1 | 2020-11-11T12:12:19.000Z | 2020-11-11T12:12:19.000Z | kattis/number_of_zeros/NumberOfZeros.cpp | FredrikWallstrom/Kattis | aee103c8d97d2aba61dae59146a015ccb5a7a634 | [
"MIT"
] | null | null | null | kattis/number_of_zeros/NumberOfZeros.cpp | FredrikWallstrom/Kattis | aee103c8d97d2aba61dae59146a015ccb5a7a634 | [
"MIT"
] | null | null | null | /* -*- Mode: C++ -*- */
/**
* Author: Fredrik Wallström
* Date:
*
* Comments:
*
* Lessons Learned:
*/
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <sstream>
#include <map>
#include <set>
#i... | 28.793103 | 103 | 0.592415 | FredrikWallstrom |
0b7fb533f9a67ebacf033fc4e8cf0ade4a5e9141 | 16,243 | cc | C++ | Filters/src/CalibCosmicFilter_module.cc | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | null | null | null | Filters/src/CalibCosmicFilter_module.cc | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 1 | 2019-11-22T14:45:51.000Z | 2019-11-22T14:50:03.000Z | Filters/src/CalibCosmicFilter_module.cc | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 2 | 2019-10-14T17:46:58.000Z | 2020-03-30T21:05:15.000Z | //
// This module will take a set of products and re-write them
// after updating the Simparticle and StepPointMC art::Ptr's.
// The algorithm assumes there are only unique Simparticle
// numbers (keys), even if there are multiple collections.
// This is the case for production-style multi-stage jobs,
// but you can ... | 37.862471 | 80 | 0.623838 | bonventre |
0b847175f4ae553d3580565789b4d318447e00cf | 3,838 | cpp | C++ | src/gui/sliderbar-labeled.cpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | 2 | 2019-02-28T00:28:08.000Z | 2019-10-20T14:39:48.000Z | src/gui/sliderbar-labeled.cpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | null | null | null | src/gui/sliderbar-labeled.cpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | null | null | null | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
// ----------------------------------------------------------------------------
// "THE BEER-WARE LICENSE" (Revision 42):
// <ztn@zurreal.com> wrote this file. ... | 31.203252 | 96 | 0.629755 | tilnewman |
0b86aab1aeb84c311288a5fdab3d63e28d7d38e4 | 2,919 | cpp | C++ | src/environment.cpp | Tiago370/k-server | d772031634f6f8b18a076724c0d4f01a61579e44 | [
"MIT"
] | null | null | null | src/environment.cpp | Tiago370/k-server | d772031634f6f8b18a076724c0d4f01a61579e44 | [
"MIT"
] | null | null | null | src/environment.cpp | Tiago370/k-server | d772031634f6f8b18a076724c0d4f01a61579e44 | [
"MIT"
] | null | null | null | #include "environment.h"
#include <fstream>
#include <iostream>
using namespace std;
Environment::Environment(string arquivo){
ifstream file(arquivo);
if(!file.is_open()){
cout << "Erro ao abrir arquivo" << endl;
exit(1);
}
cout << "Abrindo arquivo: " << arquivo << endl;
file >> nNod... | 27.280374 | 69 | 0.570401 | Tiago370 |
0b8aed9d54b71415a576a26811b62855dd7ae72d | 558 | cpp | C++ | fw/source/rendering/preprocessing/SpecularIBLBrdfLutGenerator.cpp | sienkiewiczkm/framework | 9940403404aa5c67186fe09b0910de3a6c8e9762 | [
"MIT"
] | null | null | null | fw/source/rendering/preprocessing/SpecularIBLBrdfLutGenerator.cpp | sienkiewiczkm/framework | 9940403404aa5c67186fe09b0910de3a6c8e9762 | [
"MIT"
] | 9 | 2016-12-09T13:02:18.000Z | 2019-09-13T09:29:18.000Z | fw/source/rendering/preprocessing/SpecularIBLBrdfLutGenerator.cpp | sienkiewiczkm/framework | 9940403404aa5c67186fe09b0910de3a6c8e9762 | [
"MIT"
] | null | null | null | #pragma once
#include "fw/rendering/preprocessing/SpecularIBLBrdfLutGenerator.hpp"
#include "fw/Resources.hpp"
#include "fw/DebugShapes.hpp"
namespace fw
{
SpecularIBLBrdfLutGenerator::SpecularIBLBrdfLutGenerator()
{
_shaderProgram = std::make_unique<ShaderProgram>(
getFrameworkResourcePath("shaders/Specu... | 19.241379 | 69 | 0.747312 | sienkiewiczkm |
0b8b2ef8e510ecd5806cdf7eae8143bd9d4ab529 | 2,701 | cc | C++ | src/gb/gb.cc | jonatan-ekstrom/FreshBoy | 228302e720f4a8fe4bf5c911e86588e412c0ce0a | [
"MIT"
] | 3 | 2021-11-30T20:37:33.000Z | 2022-01-06T20:26:52.000Z | src/gb/gb.cc | jonatan-ekstrom/FreshBoy | 228302e720f4a8fe4bf5c911e86588e412c0ce0a | [
"MIT"
] | null | null | null | src/gb/gb.cc | jonatan-ekstrom/FreshBoy | 228302e720f4a8fe4bf5c911e86588e412c0ce0a | [
"MIT"
] | null | null | null | #include "gb.h"
#include <tuple>
#include <utility>
#include "log.h"
namespace {
using gb::Path;
auto GetRamPath(const Path& romPath, const Path& ramPath) {
const auto suggested{ramPath.empty() ? Path{romPath}.replace_extension("ram") : ramPath};
return std::make_tuple(suggested, exists(suggested));
}
}
nam... | 30.348315 | 93 | 0.627545 | jonatan-ekstrom |
0b8ca4970f1bf2d536ad654854a5fdfc379af0b8 | 17,882 | cpp | C++ | Samples/2.0/Tutorials/Tutorial_SSAO/Tutorial_SSAOGameState.cpp | silicium42/ogre-next-1 | 5275533476ab044b60753efa3b8078a774baf692 | [
"MIT"
] | null | null | null | Samples/2.0/Tutorials/Tutorial_SSAO/Tutorial_SSAOGameState.cpp | silicium42/ogre-next-1 | 5275533476ab044b60753efa3b8078a774baf692 | [
"MIT"
] | null | null | null | Samples/2.0/Tutorials/Tutorial_SSAO/Tutorial_SSAOGameState.cpp | silicium42/ogre-next-1 | 5275533476ab044b60753efa3b8078a774baf692 | [
"MIT"
] | null | null | null |
#include "Tutorial_SSAOGameState.h"
#include "CameraController.h"
#include "GraphicsSystem.h"
#include "OgreSceneManager.h"
#include "OgreItem.h"
#include "OgreBitwise.h"
#include "OgreMeshManager.h"
#include "OgreMeshManager2.h"
#include "OgreMesh2.h"
#include "OgreCamera.h"
#include "OgreWindow.h"
... | 42.882494 | 163 | 0.578627 | silicium42 |
0b97fbac366abf41476d3ac096853c8902337ea7 | 6,079 | cpp | C++ | CPP-SFMLTemplate/main-DESKTOP-TEUNC1U.cpp | iMegaStorm/Fishy-Waters | 797d40c1aa3ed0fc43f5a213ba4c3a4e704c5cbe | [
"Apache-2.0"
] | 1 | 2020-06-13T03:31:20.000Z | 2020-06-13T03:31:20.000Z | CPP-SFMLTemplate/main-DESKTOP-TEUNC1U.cpp | iMegaStorm/Fishy-Waters | 797d40c1aa3ed0fc43f5a213ba4c3a4e704c5cbe | [
"Apache-2.0"
] | null | null | null | CPP-SFMLTemplate/main-DESKTOP-TEUNC1U.cpp | iMegaStorm/Fishy-Waters | 797d40c1aa3ed0fc43f5a213ba4c3a4e704c5cbe | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <SFML/Graphics.hpp>
#include<fstream>
#include "loadAssets.h"
//Compiler Directives
using namespace std;
using namespace sf;
RenderWindow window(VideoMode(832, 576), "Fishy Waters"); // 13 squares wide, 9 square high
LoadAssets loadAssets;
bool mapEditor = false;
bool canMove(int tileT... | 28.674528 | 316 | 0.662444 | iMegaStorm |
0b9a83a95ed9de00f28ce5dbf23546337b5b989a | 3,201 | cpp | C++ | School Olympiads/Kazakhstan IOI Team Selection Camp 2018/Day 5/a.cpp | SuperPuperMegaUltraEpicGoldenHacker/Competetive-Programming | ab1ca0d0d2187b561750d547e155e768951d29a0 | [
"MIT"
] | null | null | null | School Olympiads/Kazakhstan IOI Team Selection Camp 2018/Day 5/a.cpp | SuperPuperMegaUltraEpicGoldenHacker/Competetive-Programming | ab1ca0d0d2187b561750d547e155e768951d29a0 | [
"MIT"
] | null | null | null | School Olympiads/Kazakhstan IOI Team Selection Camp 2018/Day 5/a.cpp | SuperPuperMegaUltraEpicGoldenHacker/Competetive-Programming | ab1ca0d0d2187b561750d547e155e768951d29a0 | [
"MIT"
] | null | null | null | # include <bits/stdc++.h>
# define F first
# define S second
# define mp make_pair
// everything go according to my plan
# define pb push_back
# define sz(a) (int)(a.size())
# define vec vector
// shimkenttin kyzdary, dzyn, dzyn, dzyn...
# define y1 Y_U_NO_y1
# define left Y_U_NO_left
# define right Y_U... | 20.132075 | 75 | 0.468916 | SuperPuperMegaUltraEpicGoldenHacker |
0b9e783e0419256b357a27970beb6fb6eb0e6604 | 8,230 | cpp | C++ | components/operators/src/analysis/tracking/detectandtrack.cpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | 4 | 2020-12-28T15:29:15.000Z | 2021-06-27T12:37:15.000Z | components/operators/src/analysis/tracking/detectandtrack.cpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | null | null | null | components/operators/src/analysis/tracking/detectandtrack.cpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | 2 | 2021-01-13T05:28:39.000Z | 2021-05-04T03:37:11.000Z | #include <cmath>
#include "loguru.hpp"
#include "ftl/operators/detectandtrack.hpp"
#include <ftl/exception.hpp>
#include <ftl/codecs/faces.hpp>
using std::string;
using std::vector;
using std::map;
using cv::Mat;
using cv::Size;
using cv::Rect;
using cv::Rect2d;
using cv::Point2i;
using cv::Point2d;
using ftl::code... | 25.880503 | 136 | 0.636452 | knicos |
2437de4fdc55f5074deb5d075933801595fc1b95 | 758 | hpp | C++ | Tests/Editor/Uis/Inspector.hpp | dreadris/Acid | 1af276edce8e6481c44d475633bf69266e16ed87 | [
"MIT"
] | null | null | null | Tests/Editor/Uis/Inspector.hpp | dreadris/Acid | 1af276edce8e6481c44d475633bf69266e16ed87 | [
"MIT"
] | null | null | null | Tests/Editor/Uis/Inspector.hpp | dreadris/Acid | 1af276edce8e6481c44d475633bf69266e16ed87 | [
"MIT"
] | null | null | null | #pragma once
#include <Uis/Inputs/UiInputButton.hpp>
#include <Uis/Inputs/UiInputGrabber.hpp>
#include <Uis/Inputs/UiInputSlider.hpp>
//#include <Uis/Inputs/UiInputRadio.hpp>
#include <Uis/Inputs/UiInputText.hpp>
#include <Uis/UiSection.hpp>
#include <Uis/UiPanel.hpp>
#include <Guis/Gui.hpp>
using namespace acid;
na... | 21.657143 | 40 | 0.78496 | dreadris |
243b2ce92ae29f3605f16c8437233dbe26754f8c | 543 | cpp | C++ | codeforces/1167A.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | codeforces/1167A.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | codeforces/1167A.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | // A. Telephone Number
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(){
int t;
cin >> t;
while(t--){
int n;
cin >> n;
string s;
getline(cin >> ws, s);
bool ans = false;
if (s.size()>10){
string tm... | 14.675676 | 43 | 0.425414 | sgrade |
243b3591bb6278e25dde94ec8a0f54e8e9aec441 | 8,023 | cc | C++ | dcmimgle/libsrc/dicielut.cc | palmerc/dcmtk | 716832be091d138f3e119c47a4e1e243f5b261d3 | [
"Apache-2.0"
] | 29 | 2020-02-13T17:40:16.000Z | 2022-03-12T14:58:22.000Z | dcmimgle/libsrc/dicielut.cc | palmerc/dcmtk | 716832be091d138f3e119c47a4e1e243f5b261d3 | [
"Apache-2.0"
] | 20 | 2020-03-20T18:06:31.000Z | 2022-02-25T08:38:08.000Z | dcmimgle/libsrc/dicielut.cc | palmerc/dcmtk | 716832be091d138f3e119c47a4e1e243f5b261d3 | [
"Apache-2.0"
] | 9 | 2020-03-20T17:29:55.000Z | 2022-02-14T10:15:33.000Z | /*
*
* Copyright (C) 1999-2016, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmimgle
*
* Author: Joerg R... | 40.316583 | 124 | 0.402717 | palmerc |
243b891096de486498bdfdb711ca125c5814d708 | 84,551 | cpp | C++ | TerrainSDK/vtlib/core/Terrain.cpp | huidian200803/vterrain-VTP-vterrain.org | 08a8b97cbe64190e26f31ee5efcf31996d9022cb | [
"MIT"
] | 4 | 2019-02-08T13:51:26.000Z | 2021-12-07T13:11:06.000Z | TerrainSDK/vtlib/core/Terrain.cpp | hryang1/vterrain-VTP-vterrain.org | 08a8b97cbe64190e26f31ee5efcf31996d9022cb | [
"MIT"
] | null | null | null | TerrainSDK/vtlib/core/Terrain.cpp | hryang1/vterrain-VTP-vterrain.org | 08a8b97cbe64190e26f31ee5efcf31996d9022cb | [
"MIT"
] | 7 | 2017-12-03T10:13:17.000Z | 2022-03-29T09:51:18.000Z | //
// Terrain.cpp
//
// Copyright (c) 2001-2013 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//
#include "vtlib/vtlib.h"
#include "vtlib/vtosg/GroupLOD.h"
#include "vtlib/vtosg/MultiTexture.h"
#include "vtdata/vtLog.h"
#include "vtdata/CubicSpline.h"
#include "vtdata/DataPath.h"
#includ... | 25.722848 | 104 | 0.703008 | huidian200803 |
243c7727f87842ff336b30cbf2f26dbf1f64f77a | 81 | hpp | C++ | inc/GraphicsLib/Graphics/GPUResource/ShaderResource/Texture/Texture2D/Components/ImageFileFormat.hpp | Sushiwave/graphics-lib | c303e9fb9f11276230a09b45581cdbefa8d2a356 | [
"MIT"
] | 1 | 2020-07-13T18:10:33.000Z | 2020-07-13T18:10:33.000Z | inc/GraphicsLib/Graphics/GPUResource/ShaderResource/Texture/Texture2D/Components/ImageFileFormat.hpp | Sushiwave/graphics-lib | c303e9fb9f11276230a09b45581cdbefa8d2a356 | [
"MIT"
] | null | null | null | inc/GraphicsLib/Graphics/GPUResource/ShaderResource/Texture/Texture2D/Components/ImageFileFormat.hpp | Sushiwave/graphics-lib | c303e9fb9f11276230a09b45581cdbefa8d2a356 | [
"MIT"
] | null | null | null | #pragma once
namespace cg
{
enum class ImageFileFormat
{
jpg,
png
};
} | 6.230769 | 27 | 0.62963 | Sushiwave |
2441da2e87bf342e825b62a046a2f6d864e901bd | 4,602 | hpp | C++ | src/plugins/win32/win32dialog/simplethread.hpp | miahmie/krkrz | e4948f61393ca4a2acac0301a975165dd4efc643 | [
"Unlicense",
"Apache-2.0",
"Libpng",
"FTL",
"IJG"
] | 2 | 2020-02-25T15:18:53.000Z | 2020-08-24T13:30:34.000Z | src/plugins/win32/win32dialog/simplethread.hpp | miahmie/krkrz | e4948f61393ca4a2acac0301a975165dd4efc643 | [
"Unlicense",
"Apache-2.0",
"Libpng",
"FTL",
"IJG"
] | null | null | null | src/plugins/win32/win32dialog/simplethread.hpp | miahmie/krkrz | e4948f61393ca4a2acac0301a975165dd4efc643 | [
"Unlicense",
"Apache-2.0",
"Libpng",
"FTL",
"IJG"
] | 1 | 2019-11-25T05:29:30.000Z | 2019-11-25T05:29:30.000Z | #ifndef _simplethread_hpp_
#define _simplethread_hpp_
#include <process.h>
#include <vector>
template <class T>
class SimpleThreadBase {
public:
typedef std::vector<HANDLE> EventArray;
struct ThreadStartParam {
SimpleThreadBase *self;
HANDLE prepare, stop;
T param;
};
SimpleThreadBase(DWORD tout)
: thre... | 27.722892 | 107 | 0.699913 | miahmie |
2444c2a0f47eee2eea56e84eaf28506cbbd66ad2 | 2,376 | cpp | C++ | src/parser.cpp | mohitmv/aparse | 34a6811f9a3d4f1c5dd21ed874b14e59e6725746 | [
"MIT"
] | 2 | 2021-04-15T20:02:37.000Z | 2021-04-17T18:18:50.000Z | src/parser.cpp | mohitmv/aparse | 34a6811f9a3d4f1c5dd21ed874b14e59e6725746 | [
"MIT"
] | 1 | 2019-10-07T10:41:52.000Z | 2019-10-07T10:41:52.000Z | src/parser.cpp | mohitmv/aparse | 34a6811f9a3d4f1c5dd21ed874b14e59e6725746 | [
"MIT"
] | 1 | 2020-05-05T16:52:20.000Z | 2020-05-05T16:52:20.000Z | // Copyright: 2015 Mohit Saini
// Author: Mohit Saini (mohitsaini1196@gmail.com)
#include "aparse/parser.hpp"
#include <memory>
#include "quick/utility.hpp"
#include "src/abstract_core_parser.hpp"
#include "src/v2/core_parser.hpp"
namespace aparse {
const vector<Alphabet>& ParserInstance::GetStream() const {
AP... | 24 | 72 | 0.713384 | mohitmv |
24492ec846aa0dc53716945707f0dc647007c7d2 | 39,701 | cpp | C++ | Projects/engine/helpers/mth_math.cpp | Octdoc/SevenDeities | 648324b6b9fb907df93fdf2dfab7379369bdfe9e | [
"MIT"
] | null | null | null | Projects/engine/helpers/mth_math.cpp | Octdoc/SevenDeities | 648324b6b9fb907df93fdf2dfab7379369bdfe9e | [
"MIT"
] | null | null | null | Projects/engine/helpers/mth_math.cpp | Octdoc/SevenDeities | 648324b6b9fb907df93fdf2dfab7379369bdfe9e | [
"MIT"
] | null | null | null | #include "mth_math.h"
namespace mth
{
#pragma region float2
float2::float2()
{
memset(this, 0, sizeof(*this));
}
float2::float2(const float f) : x(f), y(f) {}
float2::float2(const float * const v)
{
memcpy(this, v, sizeof(float2));
}
float2::float2(const float x, const float y) : x(x), y(y) {}
float2::f... | 26.662861 | 196 | 0.550011 | Octdoc |
244962e890ff7905aeb4de7d0721c8bed554b5af | 5,429 | inl | C++ | source/bsys/vertex/vertex_preset.inl | bluebackblue/brownie | 917fcc71e5b0a807c0a8dab22a9ca7f3b0d60917 | [
"MIT"
] | null | null | null | source/bsys/vertex/vertex_preset.inl | bluebackblue/brownie | 917fcc71e5b0a807c0a8dab22a9ca7f3b0d60917 | [
"MIT"
] | null | null | null | source/bsys/vertex/vertex_preset.inl | bluebackblue/brownie | 917fcc71e5b0a807c0a8dab22a9ca7f3b0d60917 | [
"MIT"
] | null | null | null | #pragma once
/**
* Copyright (c) blueback
* Released under the MIT License
* https://github.com/bluebackblue/brownie/blob/master/LICENSE.txt
* http://bbbproject.sakura.ne.jp/wordpress/mitlicense
* @brief バーテックス。
*/
/** include
*/
#pragma warning(push)
#pragma warning(disable:4464)
#include "../t... | 24.236607 | 67 | 0.564561 | bluebackblue |
244eb9917fc8816f8d9dd8260ae69e71c90cab0d | 808 | cpp | C++ | Linked Lists/Rotate List.cpp | torquecoder/InterviewBit-Solutions | 7c5e2e5c904c9354f3eb213739a8dd4aaf13b7b2 | [
"MIT"
] | null | null | null | Linked Lists/Rotate List.cpp | torquecoder/InterviewBit-Solutions | 7c5e2e5c904c9354f3eb213739a8dd4aaf13b7b2 | [
"MIT"
] | null | null | null | Linked Lists/Rotate List.cpp | torquecoder/InterviewBit-Solutions | 7c5e2e5c904c9354f3eb213739a8dd4aaf13b7b2 | [
"MIT"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
int length(ListNode* A)
{
int len = 0;
while (A != NULL)
{
len++;
A = A->next;
}
return len;
}
ListNode* Solution::rotateRi... | 17.565217 | 53 | 0.467822 | torquecoder |
244fe99c1fb610b892a8adfc0c4492157a1c9388 | 373 | hpp | C++ | include/RaZor/Interface/EntitiesList.hpp | Razakhel/RaZor | e3cc7942f168a0df6cd08d8874e6390fd24e5b10 | [
"MIT"
] | null | null | null | include/RaZor/Interface/EntitiesList.hpp | Razakhel/RaZor | e3cc7942f168a0df6cd08d8874e6390fd24e5b10 | [
"MIT"
] | 1 | 2021-01-13T01:35:45.000Z | 2021-05-04T15:43:56.000Z | include/RaZor/Interface/EntitiesList.hpp | Razakhel/RaZor | e3cc7942f168a0df6cd08d8874e6390fd24e5b10 | [
"MIT"
] | 2 | 2021-01-13T01:36:02.000Z | 2021-08-08T10:17:53.000Z | #pragma once
#ifndef RAZOR_ENTITIESLIST_HPP
#define RAZOR_ENTITIESLIST_HPP
#include <QListWidget>
class EntitiesList final : public QListWidget {
friend class MainWindow;
public:
explicit EntitiesList(QWidget* parent);
void addEntity(const QString& name);
private:
void setupActions();
class AppWindow* ... | 16.217391 | 47 | 0.769437 | Razakhel |
24523078e353a788f4f872767ce44fcf37e9c6e7 | 236 | cpp | C++ | Engine/Code/Engine/Math/RawNoise.cpp | sam830917/TenNenDemon | a5f60007b73cccc6af8675c7f3dec597008dfdb4 | [
"MIT"
] | 1 | 2021-06-11T06:41:29.000Z | 2021-06-11T06:41:29.000Z | Engine/Code/Engine/Math/RawNoise.cpp | sam830917/TenNenDemon | a5f60007b73cccc6af8675c7f3dec597008dfdb4 | [
"MIT"
] | 1 | 2022-02-25T07:46:54.000Z | 2022-02-25T07:46:54.000Z | Engine/Code/Engine/Math/RawNoise.cpp | sam830917/TenNenDemon | a5f60007b73cccc6af8675c7f3dec597008dfdb4 | [
"MIT"
] | null | null | null | //-----------------------------------------------------------------------------------------------
// RawNoise.cpp
//
#include "Engine/Math/RawNoise.hpp"
// Note: we may add some stuff here later, but for now this .cpp is mostly-empty
| 29.5 | 97 | 0.415254 | sam830917 |
245562eb9643a65c9452a0583c0ff7eb73a90f0c | 896 | cpp | C++ | trunk/day21/solution.cpp | itsjacob/90pp | eca71e624d28d216feb06d615e587fc6792c36b6 | [
"MIT"
] | null | null | null | trunk/day21/solution.cpp | itsjacob/90pp | eca71e624d28d216feb06d615e587fc6792c36b6 | [
"MIT"
] | null | null | null | trunk/day21/solution.cpp | itsjacob/90pp | eca71e624d28d216feb06d615e587fc6792c36b6 | [
"MIT"
] | null | null | null | class Solution
{
public:
int numberOfBoomerangs(vector<vector<int>> &points)
{
auto distSquare = [](std::vector<int> &p1, std::vector<int> &p2) -> int {
return (p1[0] - p2[0]) * (p1[0] - p2[0]) + (p1[1] - p2[1]) * (p1[1] - p2[1]);
};
// hashtables
std::unordered_map<int, int> aMap;
int res... | 26.352941 | 83 | 0.478795 | itsjacob |
245b367a322ff2d8168be9311d44fb38e0480f87 | 1,995 | cpp | C++ | test/ToContainerTest.cpp | jell0nek/boolinq | 3087b44dca74689cefc6707f048bfe518501cb07 | [
"MIT"
] | 1 | 2021-12-28T07:58:57.000Z | 2021-12-28T07:58:57.000Z | test/ToContainerTest.cpp | NADER11NDEU/boolinq | a32c5293a0b17416fe81813fa9854f88597a819a | [
"MIT"
] | null | null | null | test/ToContainerTest.cpp | NADER11NDEU/boolinq | a32c5293a0b17416fe81813fa9854f88597a819a | [
"MIT"
] | 1 | 2019-12-20T14:35:33.000Z | 2019-12-20T14:35:33.000Z | #include <list>
#include <deque>
#include <vector>
#include <gtest/gtest.h>
#include "CommonTests.h"
#include "IterRange.h"
#include "ToContainer.h"
using namespace boolinq;
//////////////////////////////////////////////////////////////////////////
TEST(ToContainer, Array2List)
{
int src[] = {100,200,300};
... | 20.78125 | 74 | 0.555388 | jell0nek |
24665b7e337cc6b35177539ce2595919eef0a7ed | 25,319 | cpp | C++ | test/adminizer.cpp | MapQuest/avecado | 947142e198e08411838bc2156bbd504dacf4acf8 | [
"BSD-2-Clause"
] | 19 | 2015-01-08T23:12:51.000Z | 2020-06-23T20:00:23.000Z | test/adminizer.cpp | MapQuest/avecado | 947142e198e08411838bc2156bbd504dacf4acf8 | [
"BSD-2-Clause"
] | 15 | 2015-01-07T12:50:42.000Z | 2021-02-18T20:51:27.000Z | test/adminizer.cpp | MapQuest/avecado | 947142e198e08411838bc2156bbd504dacf4acf8 | [
"BSD-2-Clause"
] | 11 | 2015-01-18T20:53:10.000Z | 2021-04-18T07:33:45.000Z | #include "config.h"
#include "common.hpp"
#include "post_process/adminizer.hpp"
#include "logging/logger.hpp"
#include <boost/property_tree/ptree.hpp>
#include <mapnik/datasource_cache.hpp>
#include <mapnik/wkt/wkt_factory.hpp>
#include <mapnik/wkt/wkt_grammar.hpp>
#include <mapnik/wkt/wkt_grammar_impl.hpp>
#include... | 37.28866 | 110 | 0.619574 | MapQuest |
2467aaab6ffca6e2244e4ec7c6faad979aea8f49 | 45,863 | cpp | C++ | tests/cpu/fileformats/FileFormatCSP_tests.cpp | leekerley/OpenColorIO | b6c7152a20b68b4fa9b54bc3493bba7d812c8724 | [
"BSD-3-Clause"
] | null | null | null | tests/cpu/fileformats/FileFormatCSP_tests.cpp | leekerley/OpenColorIO | b6c7152a20b68b4fa9b54bc3493bba7d812c8724 | [
"BSD-3-Clause"
] | null | null | null | tests/cpu/fileformats/FileFormatCSP_tests.cpp | leekerley/OpenColorIO | b6c7152a20b68b4fa9b54bc3493bba7d812c8724 | [
"BSD-3-Clause"
] | null | null | null | // SPDX-License-Identifier: BSD-3-Clause
// Copyright Contributors to the OpenColorIO Project.
#include "fileformats/FileFormatCSP.cpp"
#include "UnitTest.h"
namespace OCIO = OCIO_NAMESPACE;
namespace
{
void compareFloats(const std::string& floats1, const std::string& floats2)
{
// Number comparison.
const ... | 40.730906 | 122 | 0.426073 | leekerley |
246e82384b6a954611c0caf4fc33c3a8cdf90231 | 3,191 | hpp | C++ | include/iksdl/MouseWheelEvent.hpp | InternationalKoder/iksdl | 066a60b405bab5310a500132b0bd4d82c6476f24 | [
"Zlib"
] | null | null | null | include/iksdl/MouseWheelEvent.hpp | InternationalKoder/iksdl | 066a60b405bab5310a500132b0bd4d82c6476f24 | [
"Zlib"
] | null | null | null | include/iksdl/MouseWheelEvent.hpp | InternationalKoder/iksdl | 066a60b405bab5310a500132b0bd4d82c6476f24 | [
"Zlib"
] | null | null | null | /*
* IKSDL - C++ wrapper for SDL
* Copyright (C) 2021 InternationalKoder
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this softwar... | 36.261364 | 103 | 0.555939 | InternationalKoder |
2471d4994bd13d259c9641dca395ded5c6c4c58c | 3,575 | cpp | C++ | src/system/core/libcutils/ashmem-host.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | src/system/core/libcutils/ashmem-host.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | src/system/core/libcutils/ashmem-host.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 26.094891 | 90 | 0.646993 | dAck2cC2 |
247bdd6e2221fb5d9a433a00c724773760fe03de | 15,032 | cpp | C++ | CNeuralNet/src/NeuralNet.cpp | unigoetheradaw/prg2-pr_milestone4 | 63ac1cc796d3ab6e2887c152628e82ac0fdcc277 | [
"MIT"
] | null | null | null | CNeuralNet/src/NeuralNet.cpp | unigoetheradaw/prg2-pr_milestone4 | 63ac1cc796d3ab6e2887c152628e82ac0fdcc277 | [
"MIT"
] | null | null | null | CNeuralNet/src/NeuralNet.cpp | unigoetheradaw/prg2-pr_milestone4 | 63ac1cc796d3ab6e2887c152628e82ac0fdcc277 | [
"MIT"
] | null | null | null | //
// Created by Parnet on 10.12.2018.
//
#include "NeuralNet.h"
#include <iostream>
#include <random>
#include <cassert>
#include <fstream>
#include "LinearAlgebra/Factory.h"
#define debug(n) std::cout << #n << ": " << n << std::endl << std::flush
#define debugv(n) std::cout << #n << ": " << (n.size()) <... | 31.579832 | 124 | 0.536323 | unigoetheradaw |
247de7000a19b2f2ae2dd756f7332bc1a1760413 | 2,994 | cpp | C++ | project2D/Application2D.cpp | Krian0/ArtificialI | 215aa409441af15dfaf1783dcb44392dc2178887 | [
"MIT"
] | null | null | null | project2D/Application2D.cpp | Krian0/ArtificialI | 215aa409441af15dfaf1783dcb44392dc2178887 | [
"MIT"
] | null | null | null | project2D/Application2D.cpp | Krian0/ArtificialI | 215aa409441af15dfaf1783dcb44392dc2178887 | [
"MIT"
] | null | null | null | #include "Application2D.h"
#include "Texture.h"
#include "Font.h"
#include "Input.h"
#include <time.h>
Application2D::Application2D() {}
Application2D::~Application2D() {}
bool Application2D::startup()
{
m_2dRenderer = new aie::Renderer2D();
m_cameraX = 0;
m_cameraY = 0;
m_timer = 0;
srand((unsigned int)time... | 23.574803 | 108 | 0.711757 | Krian0 |
248b42ede56cbbf70408c2ab5aa427521378c04f | 3,264 | cpp | C++ | source/propertyguizeug/source/FloatingPointEditor.cpp | kateyy/libzeug | ffb697721cd8ef7d6e685fd5e2c655d711565634 | [
"MIT"
] | null | null | null | source/propertyguizeug/source/FloatingPointEditor.cpp | kateyy/libzeug | ffb697721cd8ef7d6e685fd5e2c655d711565634 | [
"MIT"
] | null | null | null | source/propertyguizeug/source/FloatingPointEditor.cpp | kateyy/libzeug | ffb697721cd8ef7d6e685fd5e2c655d711565634 | [
"MIT"
] | null | null | null |
#include <propertyguizeug/FloatingPointEditor.h>
#include <limits>
#include <QDoubleSpinBox>
#include <reflectionzeug/property/Property.h>
using namespace reflectionzeug;
namespace propertyguizeug
{
const int FloatingPointEditor::s_defaultPrecision = 3;
void FloatingPointEditor::paint(
QPainter * painte... | 27.661017 | 107 | 0.644301 | kateyy |
2492d75d40cde13ed18eda5ba0bd1f84fa5ebd5f | 1,338 | hpp | C++ | src/lattice_boltzmann/LBUtils/LBfluid3D.hpp | flowzario/mesoBasic | 0a86c98e784a7446a7b6f03b48eef4c9dbfe5940 | [
"MIT"
] | null | null | null | src/lattice_boltzmann/LBUtils/LBfluid3D.hpp | flowzario/mesoBasic | 0a86c98e784a7446a7b6f03b48eef4c9dbfe5940 | [
"MIT"
] | null | null | null | src/lattice_boltzmann/LBUtils/LBfluid3D.hpp | flowzario/mesoBasic | 0a86c98e784a7446a7b6f03b48eef4c9dbfe5940 | [
"MIT"
] | null | null | null | # ifndef LBFLUID3D_H
# define LBFLUID3D_H
# include "../../utils/CommonParams.h"
# include "Stencil.hpp"
# include <vector>
# include <string>
# include <mpi.h>
class LBfluid3D {
private:
const CommonParams& p;
static int instance_count;
int tag;
int NX,NY,NZ;
int nx,ny,nz;
int gx,gy,gz;
int nxyz,gxyz;
int... | 20.584615 | 48 | 0.721973 | flowzario |
249410b229dfa87de66c9d98ab204f501f78b5da | 3,075 | cpp | C++ | ssl_test/ssl_test.cpp | lzxm160/st_asio_wrapper | 1eb1c46687af140c69f0f05f9567206109d37c08 | [
"BSL-1.0"
] | null | null | null | ssl_test/ssl_test.cpp | lzxm160/st_asio_wrapper | 1eb1c46687af140c69f0f05f9567206109d37c08 | [
"BSL-1.0"
] | null | null | null | ssl_test/ssl_test.cpp | lzxm160/st_asio_wrapper | 1eb1c46687af140c69f0f05f9567206109d37c08 | [
"BSL-1.0"
] | null | null | null | //configuration
#define SERVER_PORT 9527
#define REUSE_OBJECT //use objects pool
//#define FORCE_TO_USE_MSG_RECV_BUFFER //force to use the msg recv buffer
#define ENHANCED_STABILITY
#define DEFAULT_SSL_METHOD boost::asio::ssl::context::sslv23
//configuration
#include "../include/st_asio_wrapper_ssl.h"
using namespace... | 42.123288 | 139 | 0.768455 | lzxm160 |
2496cab2624d3117db7be8a8e6fbcdfbf1cb6a0d | 2,472 | hh | C++ | contrib/dune/dune-foamgrid/dune/foamgrid/foamgrid/foamgridedge.hh | mdavezac/bempp | bc573062405bda107d1514e40b6153a8350d5ab5 | [
"BSL-1.0"
] | null | null | null | contrib/dune/dune-foamgrid/dune/foamgrid/foamgrid/foamgridedge.hh | mdavezac/bempp | bc573062405bda107d1514e40b6153a8350d5ab5 | [
"BSL-1.0"
] | null | null | null | contrib/dune/dune-foamgrid/dune/foamgrid/foamgrid/foamgridedge.hh | mdavezac/bempp | bc573062405bda107d1514e40b6153a8350d5ab5 | [
"BSL-1.0"
] | null | null | null | // -*- tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=8 sw=4 sts=4:
#ifndef DUNE_FOAMGRID_EDGE_HH
#define DUNE_FOAMGRID_EDGE_HH
#include <dune/geometry/type.hh>
#include <dune/grid/common/gridenums.hh>
#include <dune/foamgrid/foamgrid/foamgridvertex.hh>
namespace Dune {
template <i... | 27.775281 | 84 | 0.556634 | mdavezac |
249749767ed67b4831088091850beb8d34c778d5 | 1,674 | hpp | C++ | include/Interpreter.hpp | Wycube/Brainshock | 1ab311cbbccb6b91561e9098549016b9276c327b | [
"MIT"
] | 1 | 2020-08-30T01:27:19.000Z | 2020-08-30T01:27:19.000Z | include/Interpreter.hpp | Wycube/Brainshock | 1ab311cbbccb6b91561e9098549016b9276c327b | [
"MIT"
] | null | null | null | include/Interpreter.hpp | Wycube/Brainshock | 1ab311cbbccb6b91561e9098549016b9276c327b | [
"MIT"
] | null | null | null | #ifndef INTERPRETER_HPP
#define INTERPRETER_HPP
#include "Program.hpp"
#include "Memory.hpp"
#include <deque>
#include <iostream>
namespace bs {
class Interpreter {
public:
Interpreter(std::ostream &stream = std::cout, bool numInput = false, std::size_t memSize = 30000);
virtual ... | 25.753846 | 137 | 0.660096 | Wycube |
24a938baf0f74a69cb4d46ca0586266cebb0ab89 | 7,546 | cpp | C++ | SocketServer/src/Server.cpp | WoozChucky/cpp-webserver-eventdriven | 5ea96b299f7f948e45a7591b4aa46b3e6e895373 | [
"MIT"
] | 1 | 2021-04-13T18:36:38.000Z | 2021-04-13T18:36:38.000Z | SocketServer/src/Server.cpp | WoozChucky/cpp-webserver-eventdriven | 5ea96b299f7f948e45a7591b4aa46b3e6e895373 | [
"MIT"
] | 1 | 2022-03-02T00:24:24.000Z | 2022-03-02T00:24:24.000Z | SocketServer/src/Server.cpp | WoozChucky/cpp-webserver-eventdriven | 5ea96b299f7f948e45a7591b4aa46b3e6e895373 | [
"MIT"
] | null | null | null | //
// Created by Nuno Levezinho Silva on 30/09/2019.
//
#include <Socket/Server.hpp>
#include <Socket/Channels/SecureChannel.hpp>
#include <Socket/Channels/NormalChannel.hpp>
#include <Abstractions/Format.hpp>
#include <Abstractions/ThreadPool.hpp>
#include <Abstractions/Timer.hpp>
Server::Server()
: server... | 28.052045 | 103 | 0.604559 | WoozChucky |
24aaf9806bb32e742fa2861098f59132f4f1d6cb | 1,668 | cpp | C++ | source/DK/InfoWindowDK.cpp | mmuman/BeHappy | 320c38a8ce951ebd97dd2c72400ba165d660541d | [
"MIT"
] | null | null | null | source/DK/InfoWindowDK.cpp | mmuman/BeHappy | 320c38a8ce951ebd97dd2c72400ba165d660541d | [
"MIT"
] | 2 | 2016-05-11T04:24:22.000Z | 2021-03-15T12:12:57.000Z | source/DK/InfoWindowDK.cpp | mmuman/BeHappy | 320c38a8ce951ebd97dd2c72400ba165d660541d | [
"MIT"
] | 1 | 2021-03-16T19:39:02.000Z | 2021-03-16T19:39:02.000Z | /*
* BeHappy
*
* fenêtre d'info sur le progrès de l'update
*
*
* Version DK
*/
#include "InfoWindowDK.h"
#include <StringView.h>
#include <StatusBar.h>
#include <Button.h>
InfoWindow::InfoWindow(BRect r,BWindow *win)
: BWindow(r,"Update Progress",B_TITLED_WINDOW,B_NOT_RESIZABLE|B_NOT_ZOOMABLE)
{
BView *mainView =... | 19.623529 | 78 | 0.660072 | mmuman |
24b74d134b819bddcff3fb44048a62831916fad8 | 1,089 | cpp | C++ | Source/KeySensor.cpp | Memory-Leakers/Pinball | d07228aa92be7988aa2da31f0a86cfd836b8c5a5 | [
"MIT"
] | null | null | null | Source/KeySensor.cpp | Memory-Leakers/Pinball | d07228aa92be7988aa2da31f0a86cfd836b8c5a5 | [
"MIT"
] | null | null | null | Source/KeySensor.cpp | Memory-Leakers/Pinball | d07228aa92be7988aa2da31f0a86cfd836b8c5a5 | [
"MIT"
] | null | null | null | #include "KeySensor.h"
KeySensor::KeySensor(SDL_Rect rect, int layer, std::string name, std::string tag, Application* _app) : GameObject(name, tag, _app)
{
//CREATE RenderObject
renderObjects[0].texture = _app->textures->Load("Assets/Images/Game/KeyLocked.png");
renderObjects[0].layer = 1;
renderObjects[0].orderI... | 32.029412 | 130 | 0.71258 | Memory-Leakers |
24d02a1ba0df5a837367e3c515bc92c902abe661 | 1,278 | cpp | C++ | xpg/host/date.cpp | lonerinthenight/data-analytics | 72666606a8bf1e13c1499b1944b39654e1c356a3 | [
"Apache-2.0"
] | null | null | null | xpg/host/date.cpp | lonerinthenight/data-analytics | 72666606a8bf1e13c1499b1944b39654e1c356a3 | [
"Apache-2.0"
] | null | null | null | xpg/host/date.cpp | lonerinthenight/data-analytics | 72666606a8bf1e13c1499b1944b39654e1c356a3 | [
"Apache-2.0"
] | null | null | null | /**********
Copyright 2017 Xilinx, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... | 21.3 | 72 | 0.606416 | lonerinthenight |
24d11d5778d2ebd3eda739799114d801a1e5c67b | 524 | cpp | C++ | EU4toV3Tests/MapperTests/SuperGroupMapperTests/AssimilationParserTests.cpp | ParadoxGameConverters/EU4toVic3 | e055d5fbaadc21e37f4bce5b3a4f4c1e415598fa | [
"MIT"
] | 5 | 2021-05-22T20:10:05.000Z | 2021-05-28T08:07:05.000Z | EU4toV3Tests/MapperTests/SuperGroupMapperTests/AssimilationParserTests.cpp | klorpa/EU4toVic3 | 36b53a76402c715f618dd88f0caf962072bda8cf | [
"MIT"
] | 13 | 2021-05-25T08:26:11.000Z | 2022-01-13T18:24:12.000Z | EU4toV3Tests/MapperTests/SuperGroupMapperTests/AssimilationParserTests.cpp | Zemurin/EU4toVic3 | 532b9a11e0e452be54d89e12cff5fb1f84ac3d11 | [
"MIT"
] | 5 | 2021-05-22T13:45:43.000Z | 2021-12-25T00:00:04.000Z | #include "Mappers/SuperGroupMapper/AssimilationParser.h"
#include "gtest/gtest.h"
TEST(Mappers_AssimilationParserTests, AssimilationDefaultsToOne)
{
std::stringstream input;
const auto assimilation = mappers::AssimilationParser(input);
EXPECT_EQ(1, assimilation.getAssimilation());
}
TEST(Mappers_AssimilationParse... | 26.2 | 64 | 0.799618 | ParadoxGameConverters |
24d1fdbb7c2045658e6bd4aed0628bcf8ce47405 | 819 | cpp | C++ | LightOJ/1044 - Palindrome Partitioning/sol.cpp | Tahsin716/OnlineJudge | a5d15f37a8c260740c148370ced7a2a9096050c1 | [
"MIT"
] | null | null | null | LightOJ/1044 - Palindrome Partitioning/sol.cpp | Tahsin716/OnlineJudge | a5d15f37a8c260740c148370ced7a2a9096050c1 | [
"MIT"
] | null | null | null | LightOJ/1044 - Palindrome Partitioning/sol.cpp | Tahsin716/OnlineJudge | a5d15f37a8c260740c148370ced7a2a9096050c1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <cstring>
#include <climits>
using namespace std;
int length;
int dp[1005];
string s;
bool isPalindrome(int left, int right)
{
while (left < right)
{
if (s[left] != s[right])
return false;
left++;
right--;
}
return true;
}
int rec(int position)
{
if (po... | 12.6 | 50 | 0.578755 | Tahsin716 |
24d494b348d95baad228f132679c9c41c2889f37 | 1,695 | cpp | C++ | Leetcode/Coding Interviews/41_Find_Median_From_Data_Stream.cpp | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | 1 | 2019-11-26T11:52:25.000Z | 2019-11-26T11:52:25.000Z | Leetcode/Coding Interviews/41_Find_Median_From_Data_Stream.cpp | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | null | null | null | Leetcode/Coding Interviews/41_Find_Median_From_Data_Stream.cpp | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | null | null | null | /*
注意:本题与主站 295 题相同:https://leetcode-cn.com/problems/find-median-from-data-stream/
如何得到一个数据流中的中位数?如果从数据流中读出奇数个数值,那么中位数就是所有数值排序之后位于中间的数值。
如果从数据流中读出偶数个数值,那么中位数就是所有数值排序之后中间两个数的平均值。
例如,
[2,3,4] 的中位数是 3
[2,3] 的中位数是 (2 + 3) / 2 = 2.5
设计一个支持以下两种操作的数据结构:
void addNum(int num) - 从数据流中添加一个整数到数据结构中。
double findMedian() ... | 23.873239 | 79 | 0.5941 | ZR-Huang |
24d5518bd71dfe1622ae832429b718f9a203d82a | 2,126 | cpp | C++ | mmWaveFrameCapture/ConfigLoader.cpp | yijiangw/mmWaveCppReceiver | a287355f2313af731db05a8b59d4c7c7ac9d685f | [
"Apache-2.0"
] | null | null | null | mmWaveFrameCapture/ConfigLoader.cpp | yijiangw/mmWaveCppReceiver | a287355f2313af731db05a8b59d4c7c7ac9d685f | [
"Apache-2.0"
] | null | null | null | mmWaveFrameCapture/ConfigLoader.cpp | yijiangw/mmWaveCppReceiver | a287355f2313af731db05a8b59d4c7c7ac9d685f | [
"Apache-2.0"
] | null | null | null | #include "ConfigLoader.h"
#include "json/json.h"
#include <iostream>
#include <fstream>
ConfigLoader::ConfigLoader():ConfigLoader::ConfigLoader("config.json")
{
}
ConfigLoader::ConfigLoader(std::string configJsonPath)
{
ConfigLoader::up = NULL;
ConfigLoader::fp = NULL;
Json::Value node;
JSONCPP_ST... | 30.371429 | 100 | 0.600659 | yijiangw |
24d98f379f0f66ec8be786081f0fac181a11744f | 2,124 | hpp | C++ | include/tribalscript/nativefunction.hpp | Ragora/TribalScript | b7f7cc6b311cee1422f1c7dffd58c85c4f29cc1d | [
"MIT"
] | null | null | null | include/tribalscript/nativefunction.hpp | Ragora/TribalScript | b7f7cc6b311cee1422f1c7dffd58c85c4f29cc1d | [
"MIT"
] | 1 | 2021-07-24T16:29:11.000Z | 2021-07-26T20:00:17.000Z | include/tribalscript/nativefunction.hpp | Ragora/TribalScript | b7f7cc6b311cee1422f1c7dffd58c85c4f29cc1d | [
"MIT"
] | null | null | null | /**
* Copyright 2021 Robert MacGregor
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge, publish,... | 46.173913 | 207 | 0.725989 | Ragora |
24dbb9b4e3133bb8d2ffc8c0337830d2fd4d21bd | 1,954 | cpp | C++ | src/assets/PhysicalMaterial.cpp | TheOpenSpaceProgram/new-ospgl | 646ee5229ce4c35856aae0d41b514c86c33791a2 | [
"MIT"
] | 22 | 2019-11-15T22:07:17.000Z | 2022-01-13T16:40:01.000Z | src/assets/PhysicalMaterial.cpp | TheOpenSpaceProgram/new-ospgl | 646ee5229ce4c35856aae0d41b514c86c33791a2 | [
"MIT"
] | 25 | 2020-03-03T00:54:21.000Z | 2021-12-30T16:24:22.000Z | src/assets/PhysicalMaterial.cpp | TheOpenSpaceProgram/new-ospgl | 646ee5229ce4c35856aae0d41b514c86c33791a2 | [
"MIT"
] | 3 | 2020-03-04T00:36:13.000Z | 2020-06-01T20:53:51.000Z | #include "PhysicalMaterial.h"
#include <cmath>
constexpr float R = 8.314462618f;
float PhysicalMaterial::get_vapor_pressure(float T) const
{
// We solve claysus clapeyron for pressure
// We have 1 atm at the standard boiling point of the substance, so 101325Pa
float lnP2 = -(dH_vaporization * molar_mass / R) * (1.... | 34.280702 | 97 | 0.748209 | TheOpenSpaceProgram |
24dd129530109ec413299e1c02358d0933d15a04 | 21,740 | hpp | C++ | addons/loadouts/configs/loadouts/loadouts_sso.hpp | SOCOMD/SOCOMD-MODS-2021 | 834cd5f99831bd456179a1f55f5a91398c29bf57 | [
"MIT"
] | null | null | null | addons/loadouts/configs/loadouts/loadouts_sso.hpp | SOCOMD/SOCOMD-MODS-2021 | 834cd5f99831bd456179a1f55f5a91398c29bf57 | [
"MIT"
] | null | null | null | addons/loadouts/configs/loadouts/loadouts_sso.hpp | SOCOMD/SOCOMD-MODS-2021 | 834cd5f99831bd456179a1f55f5a91398c29bf57 | [
"MIT"
] | null | null | null | ///Russian SSO (DMOCOS)
class SOCOMD_SSO_Commander {
primary = "SOCOMD_SSO_AK_GL";
secondary = "";
handgun = "acwp_glock17_black";
handgunMagazine = "ACWP_19Rnd_9x21_Mag_glock";
headgear = "AGE_Fast_Tan_C_H_A";
binocular = "Laserdesignator";
... | 33.915757 | 290 | 0.545446 | SOCOMD |
24df007b3ac1528098fbccedf70a0460536b4c4e | 9,245 | cpp | C++ | src/mixui/source/ui_debugger_view.cpp | grishavanika/mix | 6a4b465debfd16a6cdc4b76cb730a17ee631b062 | [
"MIT"
] | 3 | 2018-01-25T01:14:37.000Z | 2021-08-31T15:22:21.000Z | src/mixui/source/ui_debugger_view.cpp | grishavanika/mix | 6a4b465debfd16a6cdc4b76cb730a17ee631b062 | [
"MIT"
] | null | null | null | src/mixui/source/ui_debugger_view.cpp | grishavanika/mix | 6a4b465debfd16a6cdc4b76cb730a17ee631b062 | [
"MIT"
] | 3 | 2020-03-07T06:35:23.000Z | 2020-12-04T04:15:35.000Z | #include "mixui/ui_debugger_view.h"
#include "mixui/debugger.h"
#include "mixui/utils.h"
#include <mixal/operation_info.h>
#include <mix/computer.h>
#include <mix/command.h>
#include <iomanip>
bool UIDebuggerView::is_dragging_active() const
{
return (drag_pos_.y >= 0);
}
void UIDebuggerView::st... | 30.511551 | 97 | 0.560087 | grishavanika |
24dfc3f6cae97200e1df6d9d7b2ac97b4ec132d6 | 629 | cpp | C++ | Restaurant/Events/PromotionEvent.cpp | abdallaMahmoud99/DS_Project_CMP_1ST_YEAR | ddc05e51e985f7c569b4a20eb7faa30a81613f65 | [
"MIT"
] | null | null | null | Restaurant/Events/PromotionEvent.cpp | abdallaMahmoud99/DS_Project_CMP_1ST_YEAR | ddc05e51e985f7c569b4a20eb7faa30a81613f65 | [
"MIT"
] | null | null | null | Restaurant/Events/PromotionEvent.cpp | abdallaMahmoud99/DS_Project_CMP_1ST_YEAR | ddc05e51e985f7c569b4a20eb7faa30a81613f65 | [
"MIT"
] | null | null | null | #include"PromotionEvent.h"
#include "..\Rest\Restaurant.h"
PromotionEvent::PromotionEvent(int Time , int ID , int EXmoney ):Event(Time ,ID )
{
this->Exmoney = Exmoney;
}
void PromotionEvent::Execute(Restaurant *PRest)
{
int reg=0;
Order* Ord=new Order() ;
Ord->setID(OrderID);
for (int i = 0; i < 4; i++)
{
if ... | 19.060606 | 81 | 0.667727 | abdallaMahmoud99 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.