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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ae38f72c78ef42f31273498ba0aa14853c32c46e | 8,622 | cpp | C++ | Cpp/Docker/OBJ.cpp | Gabidal/GAC | f36b76bceb6a39a87b50c393eb3540f4085bd879 | [
"MIT"
] | 5 | 2019-08-19T18:18:08.000Z | 2019-12-13T19:26:03.000Z | Cpp/Docker/OBJ.cpp | Gabidal/GAC | f36b76bceb6a39a87b50c393eb3540f4085bd879 | [
"MIT"
] | 3 | 2019-04-15T19:24:36.000Z | 2020-02-29T13:09:07.000Z | Cpp/Docker/OBJ.cpp | Gabidal/GAC | f36b76bceb6a39a87b50c393eb3540f4085bd879 | [
"MIT"
] | 2 | 2019-10-08T23:16:05.000Z | 2019-12-18T22:58:04.000Z | #include "../../H/Docker/OBJ.h"
#include "../../H/BackEnd/Selector.h"
#include "../../H/Nodes/Node.h"
#include "../../H/Assembler/Assembler_Types.h"
#include "../../H/UI/Usr.h"
#include "../../H/UI/Safe.h"
#include "../../H/Assembler/Assembler.h"
#include "../../H/Docker/Docker.h"
extern Selector* selector;... | 31.933333 | 212 | 0.694734 | Gabidal |
ae3ab6bc4f88c37f0fa5090dce0cf138c035c01c | 308 | hpp | C++ | pythran/pythonic/include/cmath/log.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/cmath/log.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/cmath/log.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_INCLUDE_CMATH_LOG_HPP
#define PYTHONIC_INCLUDE_CMATH_LOG_HPP
#include "pythonic/include/utils/proxy.hpp"
#include <cmath>
namespace pythonic
{
namespace cmath
{
ALIAS_DECL(log, std::log);
double log(double x, double base);
PROXY_DECL(pythonic::cmath, log);
}
}
#endif
| 15.4 | 43 | 0.733766 | artas360 |
ae3ca7324c166c72a93c09bd7aa727976348a3cf | 9,203 | hpp | C++ | stm32-jl/include/common/uart.hpp | serjzimmerman/mipt-rt-stm32-f0-labs | 561f363ec5c4dece92b2a14c36343aaa9d713785 | [
"MIT"
] | null | null | null | stm32-jl/include/common/uart.hpp | serjzimmerman/mipt-rt-stm32-f0-labs | 561f363ec5c4dece92b2a14c36343aaa9d713785 | [
"MIT"
] | null | null | null | stm32-jl/include/common/uart.hpp | serjzimmerman/mipt-rt-stm32-f0-labs | 561f363ec5c4dece92b2a14c36343aaa9d713785 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdarg>
#include <cstring>
#include "gpio.hpp"
#include "stm32f051/rcc.hpp"
namespace JL {
enum StopBits {
stopBit1 = 0b00,
stopBit05 = 0b01,
stopBit2 = 0b10,
stopBit15 = 0b11,
};
enum WordLength {
wordLength8 = 0b00,
wordLength9 = 0b01,
wordLength7 = 0b10,
};
template <uin... | 48.183246 | 120 | 0.693144 | serjzimmerman |
ae3cec7f20f8fdb8d588ff4460e5e882697b33d1 | 9,676 | cpp | C++ | src/modules/hip/kernel/median_filter.cpp | shobana-mcw/rpp | e4a5eb622b9abd0a5a936bf7174a84a5e2470b59 | [
"MIT"
] | 26 | 2019-09-04T17:48:41.000Z | 2022-02-23T17:04:24.000Z | src/modules/hip/kernel/median_filter.cpp | shobana-mcw/rpp | e4a5eb622b9abd0a5a936bf7174a84a5e2470b59 | [
"MIT"
] | 57 | 2019-09-06T21:37:34.000Z | 2022-03-09T02:13:46.000Z | src/modules/hip/kernel/median_filter.cpp | shobana-mcw/rpp | e4a5eb622b9abd0a5a936bf7174a84a5e2470b59 | [
"MIT"
] | 24 | 2019-09-04T23:12:07.000Z | 2022-03-30T02:06:22.000Z | #include <hip/hip_runtime.h>
#include "rpp_hip_host_decls.hpp"
#define saturate_8u(value) ((value) > 255 ? 255 : ((value) < 0 ? 0 : (value)))
#define SIZE 7*7
extern "C" __global__ void median_filter_pkd(unsigned char *input,
unsigned char *output,
... | 35.185455 | 185 | 0.423625 | shobana-mcw |
ae4e5b3ae84f0a27adcc7442fc4f8cd1a6f576eb | 3,660 | cpp | C++ | Haru/hpdf/hpdf_image.cpp | miyako/4d-plugin-haru | 749599d7ec9f21a2071ebef3859eb3fce8c59754 | [
"MIT"
] | null | null | null | Haru/hpdf/hpdf_image.cpp | miyako/4d-plugin-haru | 749599d7ec9f21a2071ebef3859eb3fce8c59754 | [
"MIT"
] | 1 | 2020-02-13T03:34:38.000Z | 2020-06-01T21:08:11.000Z | Haru/hpdf/hpdf_image.cpp | miyako/4d-plugin-haru | 749599d7ec9f21a2071ebef3859eb3fce8c59754 | [
"MIT"
] | 2 | 2016-06-07T08:28:17.000Z | 2016-08-03T10:53:05.000Z | #include "hpdf_image.h"
// ------------------------------------- Image ------------------------------------
void PDF_Image_AddSMask(sLONG_PTR *pResult, PackagePtr pParams)
{
C_TEXT Param1;
C_TEXT Param2;
C_LONGINT returnValue;
Param1.fromParamAtIndex(pParams, 1);
Param2.fromParamAtIndex(pParams, 2);
HPDF_Im... | 24.4 | 93 | 0.764208 | miyako |
ae5289e95ee89e9358178fefeafc955aca22fb10 | 11,663 | cpp | C++ | Computer Graphics/src/scene_texture.cpp | sergio5405/Computer-Graphics-Project | 829cd1f25caaa88070a0aeccd2b7cdcb5007fbcc | [
"MIT"
] | null | null | null | Computer Graphics/src/scene_texture.cpp | sergio5405/Computer-Graphics-Project | 829cd1f25caaa88070a0aeccd2b7cdcb5007fbcc | [
"MIT"
] | null | null | null | Computer Graphics/src/scene_texture.cpp | sergio5405/Computer-Graphics-Project | 829cd1f25caaa88070a0aeccd2b7cdcb5007fbcc | [
"MIT"
] | null | null | null | #include "scene_texture.h"
#include "ifile.h"
#include "time.h"
#include "cgmath.h"
#include "vec2.h"
#include "vec3.h"
#include "mat3.h"
#include "mat4.h"
#include <string>
#include <vector>
scene_texture::~scene_texture() {
glDeleteProgram(shader_program);
}
void scene_texture::init() {
std::vector<cgmath::vec... | 32.307479 | 87 | 0.717311 | sergio5405 |
ae5b4d125742c200e4661b8418e7cdd46ff338a4 | 958 | hpp | C++ | fsc/include/fsx/sim_event.hpp | gbucknell/fsc-sdk | 11b7cda4eea35ec53effbe37382f4b28020cd59d | [
"MIT"
] | null | null | null | fsc/include/fsx/sim_event.hpp | gbucknell/fsc-sdk | 11b7cda4eea35ec53effbe37382f4b28020cd59d | [
"MIT"
] | null | null | null | fsc/include/fsx/sim_event.hpp | gbucknell/fsc-sdk | 11b7cda4eea35ec53effbe37382f4b28020cd59d | [
"MIT"
] | null | null | null | // (c) Copyright 2008 Samuel Debionne.
//
// Distributed under the MIT Software License. (See accompanying file
// license.txt) or copy at http://www.opensource.org/licenses/mit-license.php)
//
// See http://code.google.com/p/fsc-sdk/ for the library home page.
//
// $Revision: $
// $History: $
/// \fi... | 17.418182 | 94 | 0.656576 | gbucknell |
ae609a38d49a1719bae957c603e67db286fac184 | 20,403 | cpp | C++ | hackathon/XuanZhao/TraceNeuronBasedLine/branchtree.cpp | MoritzNegwer/vaa3d_tools | bdb2dc95bc13e9a31e1d416cc341c00d97153968 | [
"MIT"
] | null | null | null | hackathon/XuanZhao/TraceNeuronBasedLine/branchtree.cpp | MoritzNegwer/vaa3d_tools | bdb2dc95bc13e9a31e1d416cc341c00d97153968 | [
"MIT"
] | null | null | null | hackathon/XuanZhao/TraceNeuronBasedLine/branchtree.cpp | MoritzNegwer/vaa3d_tools | bdb2dc95bc13e9a31e1d416cc341c00d97153968 | [
"MIT"
] | null | null | null | #include "branchtree.h"
#include <queue>
void adjustRalationForSplitBranches(Branch *origin, vector<Branch *> target) {
target.front()->parent = origin->parent;
if (origin->parent) {
auto it = origin->parent->children.begin();
for (; it != origin->parent->children.end(); ++it) {
if... | 36.82852 | 134 | 0.538646 | MoritzNegwer |
ae62f1acdcbd3b242c2ab531e9039846d26c5ebe | 2,994 | cpp | C++ | src/Eos/SurfaceGroup/eossurfacegroupclient.cpp | sparkleholic/qml-webos-framework | dbf1f8608ae88b189dedd358acc97d9504425996 | [
"Apache-2.0"
] | 12 | 2018-03-17T12:35:32.000Z | 2021-10-15T09:04:56.000Z | src/Eos/SurfaceGroup/eossurfacegroupclient.cpp | sparkleholic/qml-webos-framework | dbf1f8608ae88b189dedd358acc97d9504425996 | [
"Apache-2.0"
] | 2 | 2020-05-28T14:58:01.000Z | 2022-02-04T04:03:07.000Z | src/Eos/SurfaceGroup/eossurfacegroupclient.cpp | sparkleholic/qml-webos-framework | dbf1f8608ae88b189dedd358acc97d9504425996 | [
"Apache-2.0"
] | 5 | 2018-03-22T18:54:18.000Z | 2020-03-04T19:20:01.000Z | // Copyright (c) 2015-2018 LG Electronics, 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... | 25.810345 | 102 | 0.642285 | sparkleholic |
ae6907210038d0f445acfc2d470f884aadd55ec4 | 802 | hpp | C++ | ql/experimental/templatemodels/hybrid/hybridmodels.hpp | sschlenkrich/quantlib | ff39ad2cd03d06d185044976b2e26ce34dca470c | [
"BSD-3-Clause"
] | null | null | null | ql/experimental/templatemodels/hybrid/hybridmodels.hpp | sschlenkrich/quantlib | ff39ad2cd03d06d185044976b2e26ce34dca470c | [
"BSD-3-Clause"
] | null | null | null | ql/experimental/templatemodels/hybrid/hybridmodels.hpp | sschlenkrich/quantlib | ff39ad2cd03d06d185044976b2e26ce34dca470c | [
"BSD-3-Clause"
] | null | null | null | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2019 Sebastian Schlenkrich
*/
/*! \file hybridmodels.hpp
\brief bind template types to double
*/
#ifndef quantlib_hybridmodels_hpp
#define quantlib_hybridmodels_hpp
#include <ql/experimental/templatemodels/hybrid... | 25.0625 | 85 | 0.753117 | sschlenkrich |
ae6a31d9655395ef70277c4e533cd2fd26227972 | 671 | cpp | C++ | src/ProjectileGraphicsComponent.cpp | filipecaixeta/NeonEdgeGame | 7dbc825507d731d60a96b4a82975a70e6aa68d7e | [
"MIT"
] | 6 | 2017-05-10T19:25:23.000Z | 2021-04-08T23:55:17.000Z | src/ProjectileGraphicsComponent.cpp | filipecaixeta/NeonEdgeGame | 7dbc825507d731d60a96b4a82975a70e6aa68d7e | [
"MIT"
] | 1 | 2017-11-10T12:17:26.000Z | 2017-11-10T12:17:26.000Z | src/ProjectileGraphicsComponent.cpp | filipecaixeta/NeonEdgeGame | 7dbc825507d731d60a96b4a82975a70e6aa68d7e | [
"MIT"
] | 5 | 2017-05-30T01:07:46.000Z | 2021-04-08T23:55:19.000Z | // Copyright (c) 2017 Neon Edge Game.
#include "ProjectileGraphicsComponent.h"
#include "Projectile.h"
#include "Rect.h"
ProjectileGraphicsComponent::ProjectileGraphicsComponent(std::string baseNameParam):
GraphicsComponent(baseNameParam) {
AddSprite(baseName, "Projectile", 4, 80);
sprite = sprites["Pr... | 29.173913 | 84 | 0.755589 | filipecaixeta |
ae6b36b615553c52c30538243fca26525e741ce4 | 323 | hxx | C++ | inc/html5xx.d/Article.hxx | astrorigin/html5xx | cbaaeb232597a713630df7425752051036cf0cb2 | [
"MIT"
] | null | null | null | inc/html5xx.d/Article.hxx | astrorigin/html5xx | cbaaeb232597a713630df7425752051036cf0cb2 | [
"MIT"
] | null | null | null | inc/html5xx.d/Article.hxx | astrorigin/html5xx | cbaaeb232597a713630df7425752051036cf0cb2 | [
"MIT"
] | null | null | null | /*
*
*/
#ifndef _HTML5XX_ARTICLE_HXX_
#define _HTML5XX_ARTICLE_HXX_
#include "Element.hxx"
using namespace std;
namespace html
{
class Article: public Element
{
public:
Article():
Element(Block, "article")
{}
};
} // end namespace html
#endif // _HTML5XX_ARTICLE_HXX_
// vi: set ai et sw=2 sts=2 ts=2... | 10.766667 | 34 | 0.678019 | astrorigin |
ae6e79bfa2356803e033cc0b24673eaff495daca | 4,352 | cpp | C++ | conui/examples/Test5ValEdit.cpp | amalk/GUI-CLI | a08f3eed8d65c1cfef259397990f9e218a77d594 | [
"MIT"
] | 3 | 2016-08-17T09:35:16.000Z | 2019-02-07T21:27:58.000Z | conui/examples/Test5ValEdit.cpp | amalk/GUI-CLI | a08f3eed8d65c1cfef259397990f9e218a77d594 | [
"MIT"
] | null | null | null | conui/examples/Test5ValEdit.cpp | amalk/GUI-CLI | a08f3eed8d65c1cfef259397990f9e218a77d594 | [
"MIT"
] | 3 | 2016-08-17T09:35:21.000Z | 2018-02-14T08:14:35.000Z | // Console Input Output Library Tester program for CValEdit
// Test5ValEdit.cpp
//
// Fardad Soleimanloo, Chris Szalwinski
// Oct 10 2012
// Version 0.9
#include "cuigh.h"
#include "console.h"
#include "cframe.h"
#include "cdialog.h"
#include "clabel.h"
#include "cveditline.h"
#include "cbutton.h"
#include <cstring>
... | 21.544554 | 99 | 0.516774 | amalk |
ae6e8aa318c8889f6cca7de9f3eeb46bc5c3eb03 | 2,182 | cpp | C++ | test/libwebsocket-mock/mock_lws_minimal.cpp | costanic/mbed-edge | 4900e950ff67f8974b7aeef955289ef56606c964 | [
"Apache-2.0"
] | 24 | 2018-03-27T16:44:18.000Z | 2020-04-28T15:28:34.000Z | test/libwebsocket-mock/mock_lws_minimal.cpp | costanic/mbed-edge | 4900e950ff67f8974b7aeef955289ef56606c964 | [
"Apache-2.0"
] | 19 | 2021-01-28T20:14:45.000Z | 2021-11-23T13:08:59.000Z | test/libwebsocket-mock/mock_lws_minimal.cpp | costanic/mbed-edge | 4900e950ff67f8974b7aeef955289ef56606c964 | [
"Apache-2.0"
] | 28 | 2018-04-02T02:36:48.000Z | 2020-10-13T05:37:16.000Z | #include "CppUTestExt/MockSupport.h"
#include "cpputest-custom-types/value_pointer.h"
extern "C" {
#include "libwebsockets.h"
}
int lws_callback_on_writable(struct lws *wsi)
{
return mock().actualCall("lws_callback_on_writable")
.returnIntValueOrDefault(0);
}
size_t lws_remaining_packet_payload(struct lws... | 31.623188 | 108 | 0.681027 | costanic |
ae71a4ef975ed4a1f28cc8068cf32da4b32e4d2b | 3,722 | hpp | C++ | src/mge/core/GameObject.hpp | mtesseracttech/CustomEngine | 1a9ed564408ae29fe49681a810b851403d71f486 | [
"Apache-2.0"
] | null | null | null | src/mge/core/GameObject.hpp | mtesseracttech/CustomEngine | 1a9ed564408ae29fe49681a810b851403d71f486 | [
"Apache-2.0"
] | null | null | null | src/mge/core/GameObject.hpp | mtesseracttech/CustomEngine | 1a9ed564408ae29fe49681a810b851403d71f486 | [
"Apache-2.0"
] | null | null | null | #ifndef GAMEOBJECT_H
#define GAMEOBJECT_H
#include <vector>
#include <string>
#include <iostream>
#include <glm/glm.hpp>
#include "LinearMath/btDefaultMotionState.h"
#include "BulletCollision/CollisionShapes/btSphereShape.h"
#include "BulletDynamics/Vehicle/btRaycastVehicle.h"
class RigidBody;
class AbstractBehaviour... | 29.776 | 129 | 0.754164 | mtesseracttech |
ae81c922341310210d05bf5ccbe9a368b12e9ce0 | 1,086 | hpp | C++ | function/codeFunction.hpp | TaylorP/TML | e4c0c7ce69645a1cf30df005af786a15f85b54a2 | [
"MIT"
] | 4 | 2015-12-17T21:58:27.000Z | 2019-10-31T16:50:41.000Z | function/codeFunction.hpp | TaylorP/TML | e4c0c7ce69645a1cf30df005af786a15f85b54a2 | [
"MIT"
] | null | null | null | function/codeFunction.hpp | TaylorP/TML | e4c0c7ce69645a1cf30df005af786a15f85b54a2 | [
"MIT"
] | 1 | 2019-05-07T18:51:00.000Z | 2019-05-07T18:51:00.000Z | #ifndef CODE_FUNCTION_HPP
#define CODE_FUNCTION_HPP
#include "function/function.hpp"
#include "exception/functionException.hpp"
/// Function for full width code blocks
class CodeFunction : public Function
{
public:
/// Constructs a new code function
CodeFunction(const bool pFilter)
: Function(pFilter)... | 25.255814 | 78 | 0.577348 | TaylorP |
ae857cf2e59e794dc8dcefaa309ac2c647a69b70 | 840 | cpp | C++ | Durna/Source/Runtime/Platform/OpenGL/OpenGLContext.cpp | MrWpGg/Durna | 62c8ca2d69623e70e2dac49a5560cd3ac2c304ed | [
"Apache-2.0"
] | null | null | null | Durna/Source/Runtime/Platform/OpenGL/OpenGLContext.cpp | MrWpGg/Durna | 62c8ca2d69623e70e2dac49a5560cd3ac2c304ed | [
"Apache-2.0"
] | null | null | null | Durna/Source/Runtime/Platform/OpenGL/OpenGLContext.cpp | MrWpGg/Durna | 62c8ca2d69623e70e2dac49a5560cd3ac2c304ed | [
"Apache-2.0"
] | null | null | null | #include "DurnaPCH.h"
#include "OpenGLContext.h"
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <gl/GL.h>
namespace Durna
{
OpenGLContext::OpenGLContext(GLFWwindow* InWindowHandle)
: WindowHandle(InWindowHandle)
{
DRN_ASSERT(WindowHandle, "WindowHandle is null!")
}
void OpenGLContext::Init()
{
D... | 21.538462 | 66 | 0.736905 | MrWpGg |
ae8d9be81b36679f7935111b3f8dac0d2e28a798 | 7,590 | cpp | C++ | source/AI/deeplearning/Normalization.cpp | TrojanVulgar/AI-framework | 46779b44ebb542ff88b8b9e91fb9a0889191f928 | [
"MIT",
"Unlicense"
] | 57 | 2018-02-21T13:28:23.000Z | 2022-03-05T05:48:41.000Z | src/AI/deeplearning/Normalization.cpp | Flowx08/artificial_intelligence | ab4fec14e6af3e3fca271b76fdb67f05d7e588ed | [
"MIT"
] | null | null | null | src/AI/deeplearning/Normalization.cpp | Flowx08/artificial_intelligence | ab4fec14e6af3e3fca271b76fdb67f05d7e588ed | [
"MIT"
] | 25 | 2018-08-27T01:54:03.000Z | 2022-03-04T02:58:18.000Z | ////////////////////////////////////////////////////////////
/// INCLUDES
////////////////////////////////////////////////////////////
#include "Normalization.hpp"
#include <cmath>
#include "../util/ensure.hpp"
#ifdef CUDA_BACKEND
#include "CUDA_backend.hpp"
#endif
/////////////////////////////////////////////////////... | 28.00738 | 112 | 0.570224 | TrojanVulgar |
ae8e94744ca6aae111967b6d1661e80f23646a74 | 1,150 | cpp | C++ | codeforces/C - Cycle/Time limit exceeded on test 11 (3).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/C - Cycle/Time limit exceeded on test 11 (3).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/C - Cycle/Time limit exceeded on test 11 (3).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Oct/25/2019 15:28
* solution_verdict: Time limit exceeded on test 11 language: GNU C++14
* run... | 31.081081 | 111 | 0.376522 | kzvd4729 |
ae92cacf2969dd5c33f9045e79d00e2a0f097cd7 | 6,807 | cpp | C++ | samples/tuple-builder/main.cpp | tim42/alphyn | af0c32df6813bbfded1df271283f9dd5378d0190 | [
"MIT"
] | 5 | 2016-03-05T00:39:13.000Z | 2020-01-03T09:49:21.000Z | samples/tuple-builder/main.cpp | tim42/alphyn | af0c32df6813bbfded1df271283f9dd5378d0190 | [
"MIT"
] | null | null | null | samples/tuple-builder/main.cpp | tim42/alphyn | af0c32df6813bbfded1df271283f9dd5378d0190 | [
"MIT"
] | null | null | null |
#include <tools/ct_string.hpp>
#include <tools/demangle.hpp>
#include <alphyn.hpp>
#include <default_token.hpp>
#include <iostream>
#include <tuple>
// #include <iomanip>
template<const char *TypeName, typename Type>
struct db_type_entry
{
using type = Type;
// a small comparison function
static constexpr bo... | 36.207447 | 185 | 0.680917 | tim42 |
ae94e27df10cc6338e95e909a79090597b203348 | 12,220 | cpp | C++ | engine/private/abstracts/pool-protected.cpp | cppcooper/Cheryl-Engine | 9a0b08da46539f756c6fe7d70212e9ca91c6fbe7 | [
"MIT"
] | null | null | null | engine/private/abstracts/pool-protected.cpp | cppcooper/Cheryl-Engine | 9a0b08da46539f756c6fe7d70212e9ca91c6fbe7 | [
"MIT"
] | 1 | 2019-01-22T22:07:27.000Z | 2019-01-22T22:07:27.000Z | engine/private/abstracts/pool-protected.cpp | cppcooper/cheryl-engine | 9a0b08da46539f756c6fe7d70212e9ca91c6fbe7 | [
"MIT"
] | null | null | null | #include "abstracts/pool.h"
inline bool inRange(const size_t ts, const ce_uintptr p, const ce_uintptr r, const size_t s){
return (r <= p && p < r+(ts*s));
}
inline bool inRange(const size_t &ts, const ce_uintptr &p, const size_t &ps, const ce_uintptr &r, const size_t &rs){
return (r <= p && p+(ts*ps) <... | 33.850416 | 129 | 0.562193 | cppcooper |
ae9bf247d58776908d027655c5c3c795a38d297a | 1,067 | cpp | C++ | examples/io/scoped_rdbuf.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | examples/io/scoped_rdbuf.cpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | examples/io/scoped_rdbuf.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// 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 <fcppt/char_type.hpp>
#include <fcppt/make_ref.hpp>
#include <fcppt/reference_to_base.hpp>... | 30.485714 | 73 | 0.686036 | freundlich |
ae9db79c5cbab6496f178a5eba9ee3de03974881 | 3,196 | hpp | C++ | include/AcmeExplorer.hpp | akaguha/acme_explorer | 7c9aad2c7d9d4871b572e0a9e194ce484c77af87 | [
"BSD-3-Clause"
] | null | null | null | include/AcmeExplorer.hpp | akaguha/acme_explorer | 7c9aad2c7d9d4871b572e0a9e194ce484c77af87 | [
"BSD-3-Clause"
] | null | null | null | include/AcmeExplorer.hpp | akaguha/acme_explorer | 7c9aad2c7d9d4871b572e0a9e194ce484c77af87 | [
"BSD-3-Clause"
] | null | null | null | /**********************************************************************************
* BSD 3-Clause License
*
* Copyright (c) 2018, Akash Guha
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*... | 31.96 | 88 | 0.68179 | akaguha |
aea40bc3c4a8c9636c15681045a396cdde4d2f1f | 1,178 | cpp | C++ | src/Overlay/Widget/GameModeSelectWidget.cpp | GrimFlash/BBCF-Improvement-Mod-GGPO | 9482ead2edd70714f427d3a5683d17b19ab8ac2e | [
"MIT"
] | 48 | 2020-06-09T22:53:52.000Z | 2022-01-02T12:44:33.000Z | src/Overlay/Widget/GameModeSelectWidget.cpp | GrimFlash/BBCF-Improvement-Mod-GGPO | 9482ead2edd70714f427d3a5683d17b19ab8ac2e | [
"MIT"
] | 2 | 2020-05-27T21:25:49.000Z | 2020-05-27T23:56:56.000Z | src/Overlay/Widget/GameModeSelectWidget.cpp | GrimFlash/BBCF-Improvement-Mod-GGPO | 9482ead2edd70714f427d3a5683d17b19ab8ac2e | [
"MIT"
] | 12 | 2020-06-17T20:44:17.000Z | 2022-01-04T18:15:27.000Z | #include "GameModeSelectWidget.h"
#include "Core/interfaces.h"
#include <imgui.h>
void GameModeSelectWidget()
{
ImGui::BeginGroup();
ImGui::PushStyleVar(ImGuiStyleVar_ChildRounding, 5.0f);
ImGui::BeginChild("GameModeSelection", ImVec2(200, 210), true);
ImGui::TextUnformatted("Select game mode:");
for (int i =... | 28.047619 | 115 | 0.741087 | GrimFlash |
aea4259ff064193e7efb0d9ca8df92be5eb99481 | 4,086 | cpp | C++ | src/dialog/TableDialog/TableDialog.cpp | BlasterAlex/Uni-Correlation-Coefficient | 709b6318d0c28a8704cfb3b1157a70fd95758e39 | [
"Apache-2.0"
] | null | null | null | src/dialog/TableDialog/TableDialog.cpp | BlasterAlex/Uni-Correlation-Coefficient | 709b6318d0c28a8704cfb3b1157a70fd95758e39 | [
"Apache-2.0"
] | null | null | null | src/dialog/TableDialog/TableDialog.cpp | BlasterAlex/Uni-Correlation-Coefficient | 709b6318d0c28a8704cfb3b1157a70fd95758e39 | [
"Apache-2.0"
] | 2 | 2019-09-04T14:34:08.000Z | 2019-09-17T05:46:36.000Z | /***
* Copyright 2019 Alexander Pishchulev (https://github.com/BlasterAlex)
*
* 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 ... | 30.721805 | 77 | 0.589574 | BlasterAlex |
aea4ab3795001276666987946d5919524daafc4c | 1,084 | hxx | C++ | src/identicals.hxx | puzzlef/pagerank-nvgraph | bbc0ddb2c898c75ad93a4087ab7a57222666d1f4 | [
"MIT"
] | null | null | null | src/identicals.hxx | puzzlef/pagerank-nvgraph | bbc0ddb2c898c75ad93a4087ab7a57222666d1f4 | [
"MIT"
] | null | null | null | src/identicals.hxx | puzzlef/pagerank-nvgraph | bbc0ddb2c898c75ad93a4087ab7a57222666d1f4 | [
"MIT"
] | null | null | null | #pragma once
#include <map>
#include <vector>
#include <utility>
#include <algorithm>
#include "_main.hxx"
#include "vertices.hxx"
using std::map;
using std::vector;
using std::move;
using std::sort;
template <class G, class J>
auto edgeIdenticalsFromSize(const G& x, const J& ks, size_t n) {
using K = typename G... | 20.45283 | 64 | 0.663284 | puzzlef |
000d264537608ffb9769272cd044e08410cec520 | 6,507 | cpp | C++ | Source.cpp | kenjinote/GetTwitterBearerToken | 1c1ec7276cde25b7209c6dfc73bac1ec3dbbbbe6 | [
"MIT"
] | null | null | null | Source.cpp | kenjinote/GetTwitterBearerToken | 1c1ec7276cde25b7209c6dfc73bac1ec3dbbbbe6 | [
"MIT"
] | null | null | null | Source.cpp | kenjinote/GetTwitterBearerToken | 1c1ec7276cde25b7209c6dfc73bac1ec3dbbbbe6 | [
"MIT"
] | null | null | null | #pragma comment(linker,"\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#pragma comment(lib, "wininet")
#pragma comment(lib, "crypt32")
#include <windows.h>
#include <commctrl.h>
#include... | 33.890625 | 196 | 0.709851 | kenjinote |
000f36e0dff70ffa9eea1662beb5752d0582927c | 4,060 | hh | C++ | include/hdf5/helper_functions_test_client_hdf5.hh | mlawsonca/empress | aa3eb8544f2e01fcbd77749f7dce1b95fbfa11e9 | [
"MIT"
] | 5 | 2018-11-28T19:38:23.000Z | 2021-03-15T20:44:07.000Z | include/hdf5/helper_functions_test_client_hdf5.hh | mlawsonca/empress | aa3eb8544f2e01fcbd77749f7dce1b95fbfa11e9 | [
"MIT"
] | null | null | null | include/hdf5/helper_functions_test_client_hdf5.hh | mlawsonca/empress | aa3eb8544f2e01fcbd77749f7dce1b95fbfa11e9 | [
"MIT"
] | 1 | 2018-07-18T15:22:36.000Z | 2018-07-18T15:22:36.000Z | /*
* Copyright 2018 National Technology & Engineering Solutions of
* Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with NTESS,
* the U.S. Government retains certain rights in this software.
*
* The MIT License (MIT)
*
* Copyright (c) 2018 Sandia Corporation
*
* Permission is hereby granted, ... | 48.333333 | 141 | 0.796552 | mlawsonca |
00121787f81db3a3224e3c7c8b80fd7ff1bbb873 | 2,207 | hpp | C++ | include/ight/common/pointer.hpp | alessandro40/libight | de434be18791844076603b50167c436a768e830e | [
"BSD-2-Clause"
] | null | null | null | include/ight/common/pointer.hpp | alessandro40/libight | de434be18791844076603b50167c436a768e830e | [
"BSD-2-Clause"
] | null | null | null | include/ight/common/pointer.hpp | alessandro40/libight | de434be18791844076603b50167c436a768e830e | [
"BSD-2-Clause"
] | null | null | null | /*-
* This file is part of Libight <https://libight.github.io/>.
*
* Libight is free software. See AUTHORS and LICENSE for more
* information on the copying conditions.
*/
#ifndef IGHT_COMMON_POINTER_HPP
# define IGHT_COMMON_POINTER_HPP
#include <memory>
#include <stdexcept>
namespace ight {
namespace common {
n... | 29.824324 | 75 | 0.656547 | alessandro40 |
001766550d49a60f20f6c9bb98be1cf0e5e86d3e | 1,004 | cpp | C++ | engine/Engine.UI/src/ui/Color.cpp | Kartikeyapan598/Ghurund | bcdc5e1805bf82b3f9a0543a3bbe22681c5605ea | [
"MIT"
] | null | null | null | engine/Engine.UI/src/ui/Color.cpp | Kartikeyapan598/Ghurund | bcdc5e1805bf82b3f9a0543a3bbe22681c5605ea | [
"MIT"
] | 10 | 2018-03-20T21:32:16.000Z | 2018-04-23T19:42:59.000Z | engine/Engine.UI/src/ui/Color.cpp | Kartikeyapan598/Ghurund | bcdc5e1805bf82b3f9a0543a3bbe22681c5605ea | [
"MIT"
] | null | null | null | #include "ghuipch.h"
#include "Color.h"
#include <regex>
namespace Ghurund::UI {
Color Ghurund::UI::Color::parse(const AString& color) {
uint32_t value = 0;
AString str = color.toLowerCase();
std::regex regex(" *\\#((?:[a-f0-9]{2})?[a-f0-9]{6}) *");
std::smatch m;
std::stri... | 29.529412 | 98 | 0.465139 | Kartikeyapan598 |
0021a96bced212c6e0f9187e795de7923b722581 | 653 | hpp | C++ | gibson/core/channels/common/MTLplyloader.hpp | rainprob/GibsonEnv | e0d0bc614713c676cb303bf9f11ca6a98713e0e0 | [
"MIT"
] | 731 | 2018-02-26T18:35:05.000Z | 2022-03-23T04:00:09.000Z | gibson/core/channels/common/MTLplyloader.hpp | Shubodh/GibsonEnv | 38274874d7c2c2a87efdb6ee529f2b366c5219de | [
"MIT"
] | 111 | 2018-04-19T01:00:22.000Z | 2022-03-18T17:43:50.000Z | gibson/core/channels/common/MTLplyloader.hpp | Shubodh/GibsonEnv | 38274874d7c2c2a87efdb6ee529f2b366c5219de | [
"MIT"
] | 153 | 2018-02-27T04:38:40.000Z | 2022-03-28T08:10:39.000Z | #ifndef MTLPLYLOADER_H
#define MTLPLYLOADER_H
#include "MTLtexture.hpp"
bool loadPLY_MTL(
const char * path,
std::vector<std::vector<glm::vec3>> & out_vertices,
std::vector<std::vector<glm::vec2>> & out_uvs,
std::vector<std::vector<glm::vec3>> & out_normals,
std::vector<glm::vec3> & out_centers,
... | 24.185185 | 55 | 0.672282 | rainprob |
002bf6c50769fe81aa30eabdf4222b6d9a59c003 | 1,118 | cpp | C++ | CPP/szuOJ/W12PC-creditCard.cpp | ParrySMS/Exp | 78459e141308827b3e9a4ceb227808517d476a53 | [
"Apache-2.0"
] | 2 | 2019-05-09T16:35:21.000Z | 2019-08-19T11:57:53.000Z | CPP/szuOJ/W12PC-creditCard.cpp | ParrySMS/Exp | 78459e141308827b3e9a4ceb227808517d476a53 | [
"Apache-2.0"
] | null | null | null | CPP/szuOJ/W12PC-creditCard.cpp | ParrySMS/Exp | 78459e141308827b3e9a4ceb227808517d476a53 | [
"Apache-2.0"
] | 2 | 2019-03-29T05:31:55.000Z | 2019-12-03T07:35:42.000Z | #include <iostream>
#include <math.h>
#include <cstring>
#include <iomanip>
using namespace std;
class CVIP {
protected:
int card_id;
int point;
public:
CCard() {}
CCard(int c,int p) {
card_id = c;
point = p;
}
void init(int c,int p) {
card_id = c;
point = p;
}
};
class CCredit {
protec... | 12.704545 | 67 | 0.635957 | ParrySMS |
002d927385e6b8518269dd5cb130c407f293b87a | 316 | cc | C++ | Ejercicio1/primes.cc | Jdorta62/Jdorta62-IB-2020-2021-Practica8-Funciones | 08ad27b3b1b6eb8d5ad2da177c0fa1dea8469039 | [
"MIT"
] | null | null | null | Ejercicio1/primes.cc | Jdorta62/Jdorta62-IB-2020-2021-Practica8-Funciones | 08ad27b3b1b6eb8d5ad2da177c0fa1dea8469039 | [
"MIT"
] | null | null | null | Ejercicio1/primes.cc | Jdorta62/Jdorta62-IB-2020-2021-Practica8-Funciones | 08ad27b3b1b6eb8d5ad2da177c0fa1dea8469039 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <string>
#include "primefunciones.h"
int main (int argc, char * argv[]) {
std::string convert = argv[1];
int primeposition = stoi(convert);
std::cout << "El primo #" << primeposition << " es: " << PrimePosition(primeposition)
<< std::endl;
return 0;
}
| 17.555556 | 87 | 0.642405 | Jdorta62 |
002edff6b151af92ca0b0f991610936b6470f751 | 674 | cpp | C++ | Game/messageboxlogger.cpp | sethballantyne/Plexis | 49b98918d9184321ba0dd449aded46b68eedb752 | [
"MIT"
] | 1 | 2021-04-14T15:06:55.000Z | 2021-04-14T15:06:55.000Z | Game/messageboxlogger.cpp | sethballantyne/Plexis | 49b98918d9184321ba0dd449aded46b68eedb752 | [
"MIT"
] | 7 | 2020-05-14T02:14:26.000Z | 2020-05-22T04:57:47.000Z | Game/messageboxlogger.cpp | sethballantyne/Plexis | 49b98918d9184321ba0dd449aded46b68eedb752 | [
"MIT"
] | null | null | null | #include <vcclr.h>
#include "messageboxlogger.h"
MessageBoxLogger::MessageBoxLogger(HWND hWnd)
{
{
if(!hWnd)
{
throw gcnew ArgumentNullException("hWnd is NULL.");
}
else
{
this->hWnd = hWnd;
}
}
}
void MessageBoxLogger::Write(String ^mess... | 23.241379 | 102 | 0.649852 | sethballantyne |
002fd3ab99e86c06a4f8bdeab7a989ef10073872 | 43,933 | cpp | C++ | src/plugProjectHikinoU/PSSe.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 33 | 2021-12-08T11:10:59.000Z | 2022-03-26T19:59:37.000Z | src/plugProjectHikinoU/PSSe.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 6 | 2021-12-22T17:54:31.000Z | 2022-01-07T21:43:18.000Z | src/plugProjectHikinoU/PSSe.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 2 | 2022-01-04T06:00:49.000Z | 2022-01-26T07:27:28.000Z | #include "types.h"
/*
Generated from dpostproc
.section .rodata # 0x804732E0 - 0x8049E220
.global lbl_80490038
lbl_80490038:
.4byte 0x8373834C
.4byte 0x53458AD4
.4byte 0x88F882AB
.4byte 0x90DD92E8
.4byte 0x00000000
.4byte 0x8373834C
.4byte 0x95A... | 19.987716 | 86 | 0.556939 | projectPiki |
00349196d94850f17f334ed09b7811c8a9995fba | 997 | cpp | C++ | src/examples/04_module/01_bank/main.cpp | acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-redondoem | 19a44954ebef1b621b851fb0089e1c72c6d7f935 | [
"MIT"
] | null | null | null | src/examples/04_module/01_bank/main.cpp | acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-redondoem | 19a44954ebef1b621b851fb0089e1c72c6d7f935 | [
"MIT"
] | null | null | null | src/examples/04_module/01_bank/main.cpp | acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-redondoem | 19a44954ebef1b621b851fb0089e1c72c6d7f935 | [
"MIT"
] | null | null | null | #include "bank_account.h"
#include "savings_account.h"
#include "customer.h"
#include<iostream>
#include<vector>
#include<string>
using std::cout; using std::cin;
int main()
{
SavingsAccount* s = new SavingsAccount(500);
SavingsAccount s{ 90 };
SavingsAccount s{ 90 };
CheckingAccount checking{ 100 };
Checkin... | 18.127273 | 55 | 0.656971 | acc-cosc-1337-spring-2020 |
003b19cff897ccba73dd90d6c03796dd068c6f63 | 2,889 | cc | C++ | projects/SimpleApplication/code/main.cc | Destinum/S0008E | 25344cc26c92ee022d7d7eac7428a113aa0be3a2 | [
"MIT"
] | null | null | null | projects/SimpleApplication/code/main.cc | Destinum/S0008E | 25344cc26c92ee022d7d7eac7428a113aa0be3a2 | [
"MIT"
] | null | null | null | projects/SimpleApplication/code/main.cc | Destinum/S0008E | 25344cc26c92ee022d7d7eac7428a113aa0be3a2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <thread>
#include<cmath>
#include <unistd.h>
#include <sys/utsname.h>
#include <thread>
#include <vector>
using namespace std;
unsigned long int Calculation()
{
unsigned long int Result = 0;
for (int i = 1; i <= 50000; i++)
{
for (int j = 1; j <= i; j++)
{
Result += sqrt(i *... | 19.787671 | 107 | 0.555556 | Destinum |
00441f3298b17a8640d117909d59f37f59af3b46 | 2,196 | cc | C++ | src/libs/common/plugin/plugin_request.cc | warm-byte/DTC | ff98a585c07712000e486cfd2d71515e6538435f | [
"Apache-2.0"
] | 24 | 2021-08-22T12:17:50.000Z | 2022-03-03T06:39:00.000Z | src/libs/common/plugin/plugin_request.cc | warm-byte/DTC | ff98a585c07712000e486cfd2d71515e6538435f | [
"Apache-2.0"
] | 2 | 2021-09-06T08:16:40.000Z | 2021-11-04T06:06:57.000Z | src/libs/common/plugin/plugin_request.cc | warm-byte/DTC | ff98a585c07712000e486cfd2d71515e6538435f | [
"Apache-2.0"
] | 15 | 2021-08-22T14:44:22.000Z | 2022-01-30T02:03:22.000Z | /*
* Copyright [2021] JD.com, 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 wri... | 20.333333 | 74 | 0.68898 | warm-byte |
00496c1a78cefa3402280a38f591de341fa1f608 | 14,602 | cpp | C++ | Bonsai/graphics/D3D.cpp | Resoona/Bonsai-Engine | d820455f940c03bd6cebc6ab1bd55b8ab524d88f | [
"MIT"
] | null | null | null | Bonsai/graphics/D3D.cpp | Resoona/Bonsai-Engine | d820455f940c03bd6cebc6ab1bd55b8ab524d88f | [
"MIT"
] | null | null | null | Bonsai/graphics/D3D.cpp | Resoona/Bonsai-Engine | d820455f940c03bd6cebc6ab1bd55b8ab524d88f | [
"MIT"
] | null | null | null | #include "D3D.h"
namespace bonsai
{
namespace graphics {
Direct3D::Direct3D()
{
m_SwapChain = nullptr;
m_Device = nullptr;
m_DeviceContext = nullptr;
m_RenderTargetView = nullptr;
m_DepthStencilBuffer = nullptr;
m_DepthStencilState = nullptr;
m_DepthDisabledStencilState = nullptr;
m_DepthS... | 32.73991 | 185 | 0.751472 | Resoona |
004a36e80a95872435312482183c0ab60c68c30e | 1,071 | cc | C++ | test/class/class-impl.cc | gabrielschulhof/webidl-napi | 88a9f9aa6975351b52b4a787468185c8a5024685 | [
"MIT"
] | 3 | 2020-10-20T17:58:24.000Z | 2020-11-10T21:04:56.000Z | test/class/class-impl.cc | gabrielschulhof/webidl-napi | 88a9f9aa6975351b52b4a787468185c8a5024685 | [
"MIT"
] | 18 | 2020-10-20T17:05:23.000Z | 2020-11-16T07:04:28.000Z | test/class/class-impl.cc | gabrielschulhof/webidl-napi | 88a9f9aa6975351b52b4a787468185c8a5024685 | [
"MIT"
] | 9 | 2020-10-20T14:40:31.000Z | 2021-03-04T07:33:38.000Z | #include "class-impl.h"
struct value__ {
value__(unsigned long initial): val(initial) {}
unsigned long val = 0;
size_t refcount = 1;
inline void Ref() { refcount++; }
inline void Unref() {
if (refcount == 0) abort();
if (--refcount == 0) delete this;
}
};
void Decrementor::operator=(const Decremen... | 23.8 | 74 | 0.678805 | gabrielschulhof |
004bac6cdf5d212c65c44505d14ab2ee73bc0985 | 1,618 | cpp | C++ | tests/Cases/Allocators/TestStackAllocator.cpp | cpv-project/cpv-framework | b0da79c8c57ceecb6b13f4d8658ec4d4c0237668 | [
"MIT"
] | 86 | 2018-04-20T04:40:20.000Z | 2022-02-09T08:36:28.000Z | tests/Cases/Allocators/TestStackAllocator.cpp | cpv-project/cpv-framework | b0da79c8c57ceecb6b13f4d8658ec4d4c0237668 | [
"MIT"
] | 16 | 2018-04-25T09:34:40.000Z | 2020-10-16T03:55:05.000Z | tests/Cases/Allocators/TestStackAllocator.cpp | cpv-project/cpv-framework | b0da79c8c57ceecb6b13f4d8658ec4d4c0237668 | [
"MIT"
] | 10 | 2019-10-07T08:06:15.000Z | 2021-07-26T18:46:11.000Z | #include <functional>
#include <CPVFramework/Allocators/StackAllocator.hpp>
#include <CPVFramework/Testing/GTestUtils.hpp>
TEST(StackAllocator, allocate) {
static constexpr const std::size_t Size = sizeof(int)*4;
cpv::StackAllocatorStorage<Size> storage;
cpv::StackAllocator<int, Size> allocator(storage);
using p... | 52.193548 | 95 | 0.70581 | cpv-project |
005a90986635ba22239690be245bb249f0927d70 | 2,420 | cpp | C++ | engine/calculators/source/SoakCalculator.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/calculators/source/SoakCalculator.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/calculators/source/SoakCalculator.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "SoakCalculator.hpp"
#include "Wearable.hpp"
using namespace std;
SoakCalculator::SoakCalculator()
{
}
SoakCalculator::~SoakCalculator()
{
}
// A creature gets 1 point of Soak for every 4 Health over 10,
// plus any bonuses or penalties from equipment.
int SoakCalculator::calculate_soak(const CreaturePtr& ... | 19.836066 | 92 | 0.656612 | sidav |
005c03dd374a0553105b5f618a997b48d8d309d4 | 7,908 | cpp | C++ | main.cpp | Daria602/AdventureIn10 | 4ad0418d4020cfb552a5cb1ab894ffa895caab3e | [
"MIT"
] | 1 | 2021-05-03T12:29:52.000Z | 2021-05-03T12:29:52.000Z | main.cpp | Daria602/AdventureIn10 | 4ad0418d4020cfb552a5cb1ab894ffa895caab3e | [
"MIT"
] | null | null | null | main.cpp | Daria602/AdventureIn10 | 4ad0418d4020cfb552a5cb1ab894ffa895caab3e | [
"MIT"
] | null | null | null | #include "Game.h"
void addSpaces()
{
std::cout << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << std::endl;
}
void mainMenu(Cha... | 25.758958 | 205 | 0.552226 | Daria602 |
005c7dd846eae5eb9e39de2162ec96740911b3c7 | 580 | hpp | C++ | peek-mill-utils.hpp | andybarry/peekmill | d990877ef943a791f66d19ed897f1421b8e6e0ea | [
"BSD-3-Clause"
] | 1 | 2016-08-22T13:46:32.000Z | 2016-08-22T13:46:32.000Z | peek-mill-utils.hpp | andybarry/peekmill | d990877ef943a791f66d19ed897f1421b8e6e0ea | [
"BSD-3-Clause"
] | null | null | null | peek-mill-utils.hpp | andybarry/peekmill | d990877ef943a791f66d19ed897f1421b8e6e0ea | [
"BSD-3-Clause"
] | null | null | null | /*
* Utility functions for opencv-stereo
*
* Copyright 2013, Andrew Barry <abarry@csail.mit.edu>
*
*/
#ifndef PEEK_MILL_UTIL
#define PEEK_MILL_UTIL
#include "opencv2/legacy/legacy.hpp"
#include "opencv2/opencv.hpp"
#include <stdio.h>
using namespace std;
using namespace cv;
struct OpenCvCalibration
{
M... | 18.125 | 173 | 0.737931 | andybarry |
005d101e3205b261677a7a2160e17d31325af760 | 19,044 | cc | C++ | code/addons/locale/localeserver.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 67 | 2015-03-30T19:56:16.000Z | 2022-03-11T13:52:17.000Z | code/addons/locale/localeserver.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 5 | 2015-04-15T17:17:33.000Z | 2016-02-11T00:40:17.000Z | code/addons/locale/localeserver.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 34 | 2015-03-30T15:08:00.000Z | 2021-09-23T05:55:10.000Z | //------------------------------------------------------------------------------
// locale/localeserver_main.cc
// (C) 2004 RadonLabs GmbH
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "locale/localeserver.h"
#include "locale/localeattributes.h"
#include... | 30.421725 | 200 | 0.53765 | gscept |
005d99e5dc4bc70053c9030d4942372b518209db | 1,412 | cpp | C++ | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter10Exercise7.cpp | Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | 9 | 2018-10-24T15:16:47.000Z | 2021-12-14T13:53:50.000Z | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter10Exercise7.cpp | ChrisBKirov/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | null | null | null | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter10Exercise7.cpp | ChrisBKirov/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | 7 | 2018-10-29T15:30:37.000Z | 2021-01-18T15:15:09.000Z | /*
TITLE Roman numerals Chapter10Exercise7.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Include calculations with Roman numerals.
Input: -
Output: -
Author: Chris B. Kirov
Data: 15.02.2015
*/
/*
Calculator Grammar:
Calculation... | 28.24 | 122 | 0.568697 | Ziezi |
005f2774a7ee51980431db92e3eaec5ce6112e93 | 30,403 | cpp | C++ | engine/xbox/generic/xboxport.cpp | christianhaitian/openbor | ce64eaffce90c407cc5a56e52c31ec8e62378bc8 | [
"BSD-3-Clause"
] | 600 | 2017-04-05T07:52:07.000Z | 2022-03-31T07:56:47.000Z | engine/xbox/generic/xboxport.cpp | christianhaitian/openbor | ce64eaffce90c407cc5a56e52c31ec8e62378bc8 | [
"BSD-3-Clause"
] | 166 | 2017-04-16T12:16:11.000Z | 2022-03-02T21:42:48.000Z | engine/xbox/generic/xboxport.cpp | christianhaitian/openbor | ce64eaffce90c407cc5a56e52c31ec8e62378bc8 | [
"BSD-3-Clause"
] | 105 | 2017-04-05T08:18:08.000Z | 2022-03-31T06:44:04.000Z | /*
* OpenBOR - http://www.LavaLit.com
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in OpenBOR root for details.
*
* Copyright (c) 2004 - 2011 OpenBOR Team
*/
#include <XBApp.h>
#include <XBFont.h>
#include <XBHelp.h>
#include <XBSound.h>
... | 23.733802 | 171 | 0.66181 | christianhaitian |
006217f72f5d9786e94dbc7379d375ef41c4e270 | 4,020 | cpp | C++ | src/Overlay/Window/RoomWindow.cpp | GrimFlash/BBCF-Improvement-Mod-GGPO | 9482ead2edd70714f427d3a5683d17b19ab8ac2e | [
"MIT"
] | 48 | 2020-06-09T22:53:52.000Z | 2022-01-02T12:44:33.000Z | src/Overlay/Window/RoomWindow.cpp | GrimFlash/BBCF-Improvement-Mod-GGPO | 9482ead2edd70714f427d3a5683d17b19ab8ac2e | [
"MIT"
] | 2 | 2020-05-27T21:25:49.000Z | 2020-05-27T23:56:56.000Z | src/Overlay/Window/RoomWindow.cpp | GrimFlash/BBCF-Improvement-Mod-GGPO | 9482ead2edd70714f427d3a5683d17b19ab8ac2e | [
"MIT"
] | 12 | 2020-06-17T20:44:17.000Z | 2022-01-04T18:15:27.000Z | #include "RoomWindow.h"
#include "Core/interfaces.h"
#include "Core/utils.h"
#include "Game/gamestates.h"
#include "Overlay/imgui_utils.h"
#include "Overlay/WindowManager.h"
#include "Overlay/Widget/ActiveGameModeWidget.h"
#include "Overlay/Widget/GameModeSelectWidget.h"
#include "Overlay/Widget/StageSelectWidget.h"
#... | 25.283019 | 131 | 0.74005 | GrimFlash |
006ab54d6ebae19511ea7481b2eb6e35854eb37a | 15,657 | hpp | C++ | test/simulation_tests.hpp | marekpetrik/CRAAM | 62cc392e876b5383faa5cb15ab1f6b70b26ff395 | [
"MIT"
] | 22 | 2015-09-28T14:41:00.000Z | 2020-07-03T00:16:19.000Z | test/simulation_tests.hpp | marekpetrik/CRAAM | 62cc392e876b5383faa5cb15ab1f6b70b26ff395 | [
"MIT"
] | 6 | 2017-08-10T18:35:40.000Z | 2018-10-13T01:38:04.000Z | test/simulation_tests.hpp | marekpetrik/CRAAM | 62cc392e876b5383faa5cb15ab1f6b70b26ff395 | [
"MIT"
] | 10 | 2016-09-19T18:31:07.000Z | 2018-07-05T08:59:45.000Z | // This file is part of CRAAM, a C++ library for solving plain
// and robust Markov decision processes.
//
// MIT License
//
// 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 restric... | 32.686848 | 141 | 0.685444 | marekpetrik |
006f6420103afc3273e353bb3a3cb285d6dd4a18 | 4,673 | cpp | C++ | Tga3D/Source/tga2dcore/tga2d/windows/WindowsWindow.cpp | sarisman84/C-CommonUtilities | a3649c32232ec342c25b804001c16c295885ce0c | [
"MIT"
] | 1 | 2022-03-10T11:43:24.000Z | 2022-03-10T11:43:24.000Z | Tga3D/Source/tga2dcore/tga2d/windows/WindowsWindow.cpp | sarisman84/C-CommonUtilities | a3649c32232ec342c25b804001c16c295885ce0c | [
"MIT"
] | null | null | null | Tga3D/Source/tga2dcore/tga2d/windows/WindowsWindow.cpp | sarisman84/C-CommonUtilities | a3649c32232ec342c25b804001c16c295885ce0c | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include <tga2d/windows/WindowsWindow.h>
#include "resource.h"
#include <WinUser.h>
#include <tga2d/imguiinterface/ImGuiInterface.h>
using namespace Tga2D;
WindowsWindow::WindowsWindow(void)
:myWndProcCallback(nullptr)
{
}
WindowsWindow::~WindowsWindow(void)
{
}
bool WindowsW... | 27.815476 | 168 | 0.711748 | sarisman84 |
006fc1f49ec8f6c0970729038579eb100d4bf8d5 | 254 | cpp | C++ | sdk/src/layers/ItemAton.cpp | Fpepe943/fairwindplusplus | 8b9f5e13c751bb331f9f1b9979bf3049cc3a94d5 | [
"Apache-2.0"
] | 4 | 2021-07-07T10:42:53.000Z | 2022-01-11T12:53:25.000Z | sdk/src/layers/ItemAton.cpp | Fpepe943/fairwindplusplus | 8b9f5e13c751bb331f9f1b9979bf3049cc3a94d5 | [
"Apache-2.0"
] | 2 | 2022-02-13T19:59:25.000Z | 2022-03-25T01:02:17.000Z | sdk/src/layers/ItemAton.cpp | Fpepe943/fairwindplusplus | 8b9f5e13c751bb331f9f1b9979bf3049cc3a94d5 | [
"Apache-2.0"
] | 7 | 2021-06-07T07:12:55.000Z | 2022-01-12T16:09:55.000Z | //
// Created by Raffaele Montella on 03/05/21.
//
#include "FairWindSdk/layers/ItemAton.hpp"
ItemAton::ItemAton(QString &typeUuid): ItemSignalK(typeUuid) {
}
QImage ItemAton::getImage() const {
return QImage(":/resources/images/ais_aton.png");
} | 19.538462 | 62 | 0.720472 | Fpepe943 |
00786a1ab462b9cae550f5dfbb92685202f08563 | 1,603 | hpp | C++ | libs/gui/include/sge/gui/widget/bar.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/gui/include/sge/gui/widget/bar.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/gui/include/sge/gui/widget/bar.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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)
#ifndef SGE_GUI_WIDGET_BAR_HPP_INCLUDED
#define SGE_GUI_WIDGET_BAR_HPP_INCLUDED
#include <sge/gui/... | 25.046875 | 83 | 0.726138 | cpreh |
0078fea0aae13cf93b439c1dca7535689c1ed16e | 622 | cpp | C++ | Online-Judge-Solution/URI Solutions/1099(Sum of Consecutive Odd Numbers II).cpp | arifparvez14/Basic-and-competetive-programming | 4cb9ee7fbed3c70307d0f63499fcede86ed3c732 | [
"MIT"
] | null | null | null | Online-Judge-Solution/URI Solutions/1099(Sum of Consecutive Odd Numbers II).cpp | arifparvez14/Basic-and-competetive-programming | 4cb9ee7fbed3c70307d0f63499fcede86ed3c732 | [
"MIT"
] | null | null | null | Online-Judge-Solution/URI Solutions/1099(Sum of Consecutive Odd Numbers II).cpp | arifparvez14/Basic-and-competetive-programming | 4cb9ee7fbed3c70307d0f63499fcede86ed3c732 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int x,y,i,sum,t,k;
while(cin>>t)
{
for(k=1; k<=t; k++)
{
cin>>x>>y;
sum=0;
if(x<=y)
{
for(i=x+1; i<y; i++)
{
if(i%2!=0)
... | 18.294118 | 36 | 0.233119 | arifparvez14 |
007c70b8547794cca85d109520cab277ee4f94b7 | 3,579 | cxx | C++ | Filters/Parallel/vtkPPartitionedDataSetCollectionToMultiBlockDataSet.cxx | akenmorris/VTK | cf80447580ff48cbdb4a588aaafe1d3397af3791 | [
"BSD-3-Clause"
] | null | null | null | Filters/Parallel/vtkPPartitionedDataSetCollectionToMultiBlockDataSet.cxx | akenmorris/VTK | cf80447580ff48cbdb4a588aaafe1d3397af3791 | [
"BSD-3-Clause"
] | 2 | 2018-05-04T02:00:02.000Z | 2018-05-04T02:15:19.000Z | Filters/Parallel/vtkPPartitionedDataSetCollectionToMultiBlockDataSet.cxx | akenmorris/VTK | cf80447580ff48cbdb4a588aaafe1d3397af3791 | [
"BSD-3-Clause"
] | 1 | 2020-08-18T11:44:39.000Z | 2020-08-18T11:44:39.000Z | /*=========================================================================
Program: Visualization Toolkit
Module: vtkPPartitionedDataSetCollectionToMultiBlockDataSet.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.h... | 37.673684 | 98 | 0.654652 | akenmorris |
007fc689f124f891c8ab4743497c17a90a6fe25d | 148 | cpp | C++ | Ch01/Ex1_20.cpp | boscotsang/CppPrimerCode | 65eed86652f5ec475dec593bd731b7752cb46c51 | [
"MIT"
] | 4 | 2015-04-20T10:04:49.000Z | 2018-04-19T12:46:01.000Z | Ch01/Ex1_20.cpp | boscotsang/CppPrimerCode | 65eed86652f5ec475dec593bd731b7752cb46c51 | [
"MIT"
] | null | null | null | Ch01/Ex1_20.cpp | boscotsang/CppPrimerCode | 65eed86652f5ec475dec593bd731b7752cb46c51 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Sales_item.h"
int main(){
Sales_item s1;
while(std::cin >> s1) std::cout << s1 << std::endl;
return 0;
}
| 16.444444 | 55 | 0.594595 | boscotsang |
0083d8116dbf8c73d9daf185fe21ad206df3a45f | 9,227 | cpp | C++ | src/main.cpp | lscandolo/Compressed-shadow-maps | 3cb6c11cfb3c3cbdbfc48a6cc33d54758b7d19cf | [
"MIT"
] | 7 | 2020-04-07T18:53:12.000Z | 2022-01-25T15:06:30.000Z | src/main.cpp | lscandolo/Compressed-shadow-maps | 3cb6c11cfb3c3cbdbfc48a6cc33d54758b7d19cf | [
"MIT"
] | null | null | null | src/main.cpp | lscandolo/Compressed-shadow-maps | 3cb6c11cfb3c3cbdbfc48a6cc33d54758b7d19cf | [
"MIT"
] | 1 | 2021-07-14T02:14:45.000Z | 2021-07-14T02:14:45.000Z | #include "common.h"
#include "helpers/OpenGLHelpers.h"
#include "helpers/FPCamera.h"
#include "helpers/CameraRecord.h"
#include "helpers/MeshData.h"
#include "helpers/LightData.h"
#include "helpers/ScopeTimer.h"
#include "helpers/Ini.h"
#include "gui/MeshGUI.h"
#include "gui/LightGUI.h"
#include "gui/FPCameraGUI.h"
... | 28.744548 | 158 | 0.715834 | lscandolo |
0084908178ca0bc782ff19fd8e2cb48f57b035e7 | 12,523 | cpp | C++ | script/src/llasm_var.cpp | tweber-ill/ill_mirror-takin2-tlibs2 | 669fd34c306625fd306da278a5b29fb6aae16a87 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | script/src/llasm_var.cpp | tweber-ill/ill_mirror-takin2-tlibs2 | 669fd34c306625fd306da278a5b29fb6aae16a87 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | script/src/llasm_var.cpp | tweber-ill/ill_mirror-takin2-tlibs2 | 669fd34c306625fd306da278a5b29fb6aae16a87 | [
"BSD-3-Clause-Open-MPI"
] | 1 | 2021-09-20T19:30:13.000Z | 2021-09-20T19:30:13.000Z | /**
* llvm three-address code generator -- variables
* @author Tobias Weber <tweber@ill.fr>
* @date apr/may-2020
* @license GPLv3, see 'LICENSE' file
* @desc Forked on 18/July/2020 from my privately developed "matrix_calc" project (https://github.com/t-weber/matrix_calc).
*
* References:
* - https://llvm.org/... | 32.275773 | 123 | 0.577737 | tweber-ill |
0a5263a045fa4ad3ccc150da1fc9ab4aaca1471d | 268 | cpp | C++ | production/subsystems/gui/src/status_bar.cpp | ratelware/logreader | 6ca96c49a342dcaef59221dd3497563f54b63ae7 | [
"MIT"
] | null | null | null | production/subsystems/gui/src/status_bar.cpp | ratelware/logreader | 6ca96c49a342dcaef59221dd3497563f54b63ae7 | [
"MIT"
] | 3 | 2017-11-21T22:16:51.000Z | 2017-11-21T23:34:31.000Z | production/subsystems/gui/src/status_bar.cpp | ratelware/logreader | 6ca96c49a342dcaef59221dd3497563f54b63ae7 | [
"MIT"
] | null | null | null | #include <gui/status_bar.hpp>
#include <nana/gui/filebox.hpp>
namespace gui {
status_bar::status_bar(nana::form& window_form) : bar_panel(window_form) {
bar_panel.bgcolor(nana::colors::red);
}
nana::widget& status_bar::get_widget()
{
return bar_panel;
}
}
| 17.866667 | 75 | 0.716418 | ratelware |
0a58656e35d6a41487b1e652fc8f4bd7cb8c1d9e | 6,721 | cpp | C++ | plll/src/lattices/enumimpl-simpleenum.cpp | KudrinMatvey/myfplll | 99fa018201097b6c078c00721cdc409cdcd4092c | [
"MIT"
] | null | null | null | plll/src/lattices/enumimpl-simpleenum.cpp | KudrinMatvey/myfplll | 99fa018201097b6c078c00721cdc409cdcd4092c | [
"MIT"
] | null | null | null | plll/src/lattices/enumimpl-simpleenum.cpp | KudrinMatvey/myfplll | 99fa018201097b6c078c00721cdc409cdcd4092c | [
"MIT"
] | null | null | null | /*
Copyright (c) 2011-2014 University of Zurich
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, m... | 39.769231 | 125 | 0.502009 | KudrinMatvey |
0a60ff787f117849dd7641ad0070d95f852d964e | 1,383 | cpp | C++ | json_source/test/test_json_source.cpp | waltronix/smaep | 05d90c6ab9d1c76a6da1fa285857f7ec30fc8497 | [
"MIT"
] | 1 | 2019-12-21T15:09:40.000Z | 2019-12-21T15:09:40.000Z | json_source/test/test_json_source.cpp | waltronix/smaep | 05d90c6ab9d1c76a6da1fa285857f7ec30fc8497 | [
"MIT"
] | null | null | null | json_source/test/test_json_source.cpp | waltronix/smaep | 05d90c6ab9d1c76a6da1fa285857f7ec30fc8497 | [
"MIT"
] | null | null | null | #include <string>
#define CATCH_CONFIG_MAIN
#include "catch2/catch.hpp"
#include "json_source.h"
TEST_CASE("some_simple_jsonpath", "json_tests") {
const std::string json = R"JSON(
{
"x": "1",
"y": "2"
}
)JSON";
smaep::data::json_source<double> jw(json);
auto rs = jw.get_value_for("$.x");
REQUIRE(1 == r... | 15.896552 | 49 | 0.561099 | waltronix |
0a64c7e5115802a1f0bdc4b0b2ffb390c42348b2 | 931 | hpp | C++ | src/Components/PlayerInputComponent.hpp | DylanConvery/2D-Game-Engine-Prototype | 55e5adbb687ccec593a3f5063ad2195e760bd3b6 | [
"MIT"
] | null | null | null | src/Components/PlayerInputComponent.hpp | DylanConvery/2D-Game-Engine-Prototype | 55e5adbb687ccec593a3f5063ad2195e760bd3b6 | [
"MIT"
] | null | null | null | src/Components/PlayerInputComponent.hpp | DylanConvery/2D-Game-Engine-Prototype | 55e5adbb687ccec593a3f5063ad2195e760bd3b6 | [
"MIT"
] | null | null | null | #ifndef PLAYERINPUTCOMPONENT_H
#define PLAYERINPUTCOMPONENT_H
#include "../AssetManager.hpp"
#include "../Component.hpp"
#include "SpriteComponent.hpp"
#include "TransformComponent.hpp"
#include "string"
class SpriteComponent;
class PlayerInputComponent : public Component {
public:
PlayerInputComponent();
... | 25.861111 | 149 | 0.736842 | DylanConvery |
0a68a7b34aad2694b2096f1fa098fe432a023e73 | 8,396 | cpp | C++ | FaceTracking/src/shape_model.cpp | johmathe/ComputerVisionStuff | 8182e2a1284721cb1ac6091174ff5aa0d6aa561e | [
"Apache-2.0"
] | null | null | null | FaceTracking/src/shape_model.cpp | johmathe/ComputerVisionStuff | 8182e2a1284721cb1ac6091174ff5aa0d6aa561e | [
"Apache-2.0"
] | null | null | null | FaceTracking/src/shape_model.cpp | johmathe/ComputerVisionStuff | 8182e2a1284721cb1ac6091174ff5aa0d6aa561e | [
"Apache-2.0"
] | null | null | null | /*****************************************************************************
* Non-Rigid Face Tracking
******************************************************************************
* by Jason Saragih, 5th Dec 2012
* http://jsaragih.org/
**************************************************************************... | 30.754579 | 80 | 0.407932 | johmathe |
0a68fd4158f11695b65ff930a8fa9778ff613572 | 5,283 | cpp | C++ | bfcp/common/bfcp_msg.cpp | Issic47/bfcp | b0e78534f58820610df6133dc4043f902c001173 | [
"BSD-3-Clause"
] | 10 | 2015-08-05T06:07:41.000Z | 2020-12-17T04:28:48.000Z | bfcp/common/bfcp_msg.cpp | Issic47/bfcp | b0e78534f58820610df6133dc4043f902c001173 | [
"BSD-3-Clause"
] | null | null | null | bfcp/common/bfcp_msg.cpp | Issic47/bfcp | b0e78534f58820610df6133dc4043f902c001173 | [
"BSD-3-Clause"
] | 8 | 2015-11-27T13:22:30.000Z | 2021-01-28T07:20:50.000Z | #include <bfcp/common/bfcp_msg.h>
#include <algorithm>
#include <muduo/base/Logging.h>
using muduo::net::Buffer;
using muduo::net::InetAddress;
using muduo::strerror_tl;
namespace bfcp
{
namespace detail
{
int printToString(const char *p, size_t size, void *arg)
{
string *str = static_cast<string*>(arg);
str->... | 21.388664 | 75 | 0.605338 | Issic47 |
0a74e732b1a1b7620b37cf7c5074d79a87a6c213 | 3,229 | hpp | C++ | source/modules/distribution/multivariate/normal/normal.hpp | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 43 | 2018-07-26T07:20:42.000Z | 2022-03-02T10:23:12.000Z | source/modules/distribution/multivariate/normal/normal.hpp | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 212 | 2018-09-21T10:44:07.000Z | 2022-03-22T14:33:05.000Z | source/modules/distribution/multivariate/normal/normal.hpp | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 16 | 2018-07-25T15:00:36.000Z | 2022-03-22T14:19:46.000Z | /** \namespace multivariate
* @brief Namespace declaration for modules of type: multivariate.
*/
/** \file
* @brief Header file for module: Normal.
*/
/** \dir distribution/multivariate/normal
* @brief Contains code, documentation, and scripts for module: Normal.
*/
#pragma once
#include "modules/distribution/multi... | 26.040323 | 119 | 0.704552 | JonathanLehner |
0a78be8d5b181f93ad7df01797458b5a6cd2f9f3 | 651 | cc | C++ | EDMUtils/src/TFileUtils.cc | NTUHEP-Tstar/ManagerUtils | 2536174671e537f210c330fe739f4cf0615e735e | [
"MIT"
] | null | null | null | EDMUtils/src/TFileUtils.cc | NTUHEP-Tstar/ManagerUtils | 2536174671e537f210c330fe739f4cf0615e735e | [
"MIT"
] | null | null | null | EDMUtils/src/TFileUtils.cc | NTUHEP-Tstar/ManagerUtils | 2536174671e537f210c330fe739f4cf0615e735e | [
"MIT"
] | null | null | null | /*******************************************************************************
*
* Filename : TFileUtils.cc
* Description : Implementation of utility functions
* Author : Yi-Mu "Enoch" Chen [ ensc@hep1.phys.ntu.edu.tw ]
*
*******************************************************************************/
#inc... | 29.590909 | 80 | 0.509985 | NTUHEP-Tstar |
0a7c87e7d11a71320cbe4e5104f756505a98d13e | 3,446 | cpp | C++ | src/lib/Components/WindowSizeComponent.cpp | romoadri21/boi | deef8e7148b50fbb36886ba4ff491a6c0e18ad67 | [
"BSD-3-Clause"
] | null | null | null | src/lib/Components/WindowSizeComponent.cpp | romoadri21/boi | deef8e7148b50fbb36886ba4ff491a6c0e18ad67 | [
"BSD-3-Clause"
] | null | null | null | src/lib/Components/WindowSizeComponent.cpp | romoadri21/boi | deef8e7148b50fbb36886ba4ff491a6c0e18ad67 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2010, Piet Hein Schouten. All rights reserved.
* This code is licensed under a BSD-style license that can be
* found in the LICENSE file. The license can also be found at:
* http://www.boi-project.org/license
*/
#include <QSizeF>
#include <QPainter>
#include <QVariant>
#include <QStyleOptionGraphi... | 23.127517 | 81 | 0.680499 | romoadri21 |
0a80ebb0bb5304e3df3e3c402222019b356db874 | 487 | cpp | C++ | ReverseAnArray/main.cpp | KhunJahad/Arrays | 644e64fe2e88a4817afe1ce482e93f8876b85c6a | [
"MIT"
] | null | null | null | ReverseAnArray/main.cpp | KhunJahad/Arrays | 644e64fe2e88a4817afe1ce482e93f8876b85c6a | [
"MIT"
] | null | null | null | ReverseAnArray/main.cpp | KhunJahad/Arrays | 644e64fe2e88a4817afe1ce482e93f8876b85c6a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
void read_input(){
#ifndef ONLINE_JUDGE
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
#endif
}
int main(){
read_input();
int n;
cin>>n;
int arr[n];
for(int i=0;i<n;i++) {
cin>>arr[i];
}
int i=0;
int... | 12.815789 | 35 | 0.527721 | KhunJahad |
0a82694de78ddc786187310c17ce3f7d0f5b6a0c | 4,386 | cpp | C++ | Engine/Misc/Sources/Reflection/Archiver.cpp | kaluginadaria/YetAnotherProject | abedd20b484f868ded83e72261970703a27e024d | [
"MIT"
] | 1 | 2018-05-02T10:40:26.000Z | 2018-05-02T10:40:26.000Z | Engine/Misc/Sources/Reflection/Archiver.cpp | kaluginadaria/YetAnotherProject | abedd20b484f868ded83e72261970703a27e024d | [
"MIT"
] | 9 | 2018-03-26T10:22:07.000Z | 2018-05-22T20:43:14.000Z | Engine/Misc/Sources/Reflection/Archiver.cpp | kaluginadaria/YetAnotherProject | abedd20b484f868ded83e72261970703a27e024d | [
"MIT"
] | 6 | 2018-04-15T16:03:32.000Z | 2018-05-21T22:02:49.000Z | #include "Archiver.hpp"
#include "boost/property_tree/ptree.hpp"
#include "boost/property_tree/json_parser.hpp"
#include <iostream>
namespace pt = boost::property_tree;
#define CAUGORY_PREFIX '@'
bool IsCategory(const std::string& str)
{
if (str.length())
{
return str[0] == CAUGORY_PREFIX;
}
throw std::run... | 19.321586 | 79 | 0.581167 | kaluginadaria |
0a84a29252caed809898f8295a3b742c5a02e20d | 3,066 | cpp | C++ | src/util/fileloader.cpp | JGeicke/sdl-game-engine | 4a656145a9fc4f4490e61cbc87040de9f1abbb72 | [
"MIT"
] | null | null | null | src/util/fileloader.cpp | JGeicke/sdl-game-engine | 4a656145a9fc4f4490e61cbc87040de9f1abbb72 | [
"MIT"
] | null | null | null | src/util/fileloader.cpp | JGeicke/sdl-game-engine | 4a656145a9fc4f4490e61cbc87040de9f1abbb72 | [
"MIT"
] | null | null | null | #include "fileloader.h"
/**
* @brief Loads, parses and creates the tilemap from tilemap json files created with tiled.
* @param path - File path to json file.
* @param layerCount - Layer count of the tilemap.
* @return Created tilemap.
*/
Tilemap* FileLoader::loadTilemap(const char* path, size_t layerCount) {
std::ifs... | 33.326087 | 153 | 0.69439 | JGeicke |
0a90b0ddbfc888a5313fc61f340dfb9c0ca68815 | 306 | cpp | C++ | tapi-master/test/Inputs/CPP2/CPP2.cpp | JunyiXie/ld64 | ffaa615b31ff1baa5d6249e4d9a6a21c2ae603ae | [
"Apache-2.0"
] | null | null | null | tapi-master/test/Inputs/CPP2/CPP2.cpp | JunyiXie/ld64 | ffaa615b31ff1baa5d6249e4d9a6a21c2ae603ae | [
"Apache-2.0"
] | null | null | null | tapi-master/test/Inputs/CPP2/CPP2.cpp | JunyiXie/ld64 | ffaa615b31ff1baa5d6249e4d9a6a21c2ae603ae | [
"Apache-2.0"
] | null | null | null | #include "Templates.h"
// Templates
namespace templates {
template int foo1<short>(short a);
template <> int foo1<>(int a) { return a; }
template <class T> Foo<T>::Foo() {}
template <class T> Foo<T>::~Foo() {}
template <class T> Bar<T>::Bar() {}
template class Bar<int>;
} // end namespace templates.
| 19.125 | 43 | 0.650327 | JunyiXie |
0a912c7fd635c13e6f7172ff61e5354d513b92d7 | 363 | cpp | C++ | Checking_tool_of_pouring_machine/main.cpp | MagicXran/artistic_work | 7661f2df7ab642569752e64559e5176520b89369 | [
"Apache-2.0"
] | 1 | 2022-03-02T13:57:33.000Z | 2022-03-02T13:57:33.000Z | Checking_tool_of_pouring_machine/main.cpp | MagicXran/artistic_work | 7661f2df7ab642569752e64559e5176520b89369 | [
"Apache-2.0"
] | null | null | null | Checking_tool_of_pouring_machine/main.cpp | MagicXran/artistic_work | 7661f2df7ab642569752e64559e5176520b89369 | [
"Apache-2.0"
] | null | null | null | #define CONSOLE 1
#define DEBUG 0
#include "mainwindow.h"
#include <QApplication>
#include <cmath>
#include "HellQt_Clion.h"
int main(int argc , char *argv[]) {
#if (CONSOLE == 1)
setbuf(stdout , nullptr);
#endif
#if DEBUG == 0
QApplication a(argc , argv);
MainWindow w;
w.show();
return QApplica... | 13.961538 | 35 | 0.636364 | MagicXran |
0a995fa2a52abcfefcaf592e01ded35168548582 | 2,618 | cpp | C++ | src/FileWatcher/FileWatcher.cpp | MisterVento3/SteelEngine | 403511b53b6575eb869b4ccfbda18514f0838e8d | [
"MIT"
] | 3 | 2017-05-10T10:58:17.000Z | 2018-10-30T09:50:26.000Z | src/FileWatcher/FileWatcher.cpp | mVento3/SteelEngine | 403511b53b6575eb869b4ccfbda18514f0838e8d | [
"MIT"
] | 3 | 2017-05-09T21:17:09.000Z | 2020-02-24T14:46:22.000Z | src/FileWatcher/FileWatcher.cpp | mVento3/SteelEngine | 403511b53b6575eb869b4ccfbda18514f0838e8d | [
"MIT"
] | null | null | null | #include "FileWatcher/FileWatcher.h"
namespace SteelEngine {
bool FileWatcher::Contains(const std::string& key)
{
return m_Paths.find(key) != m_Paths.end();
}
void FileWatcher::UpdateRecursive()
{
for(auto& file : std::filesystem::recursive_directory_iterator(m_Path))
{
... | 24.698113 | 83 | 0.524064 | MisterVento3 |
0aa4e7039a887f59c61bd7854672b961561e533a | 594 | cpp | C++ | Tool-IOStreams/src/Iconv/IconvStringStream.cpp | tryptichon/Tool-IOStreams-for-CPP | 7da340735c95d7f0b7bd861a6335b1aecad02d21 | [
"MIT"
] | 1 | 2018-06-21T16:23:17.000Z | 2018-06-21T16:23:17.000Z | Tool-IOStreams/src/Iconv/IconvStringStream.cpp | tryptichon/Tool-IOStreams-for-CPP | 7da340735c95d7f0b7bd861a6335b1aecad02d21 | [
"MIT"
] | null | null | null | Tool-IOStreams/src/Iconv/IconvStringStream.cpp | tryptichon/Tool-IOStreams-for-CPP | 7da340735c95d7f0b7bd861a6335b1aecad02d21 | [
"MIT"
] | null | null | null | /**
* @file IconvStringStream.cpp
*
* @brief File for class IconvStringStream
* @date 04.08.2016
* @author duke
*/
#include "IconvStringStream.h"
using namespace std;
IconvStringStream::IconvStringStream(const string& a_from, const string& a_to) :
IconvStream(c_str, a_from, a_to)
{
}
IconvStringStream... | 17.470588 | 103 | 0.69697 | tryptichon |
0aaa65314229355d95678cc1327d75b31d72cdcc | 866 | c++ | C++ | 42.1_Square_Root_Decomposition-introduction.c++ | Sambitcr-7/DSA-C- | f3c80f54fa6160a99f39a934f330cdf40711de50 | [
"Apache-2.0"
] | null | null | null | 42.1_Square_Root_Decomposition-introduction.c++ | Sambitcr-7/DSA-C- | f3c80f54fa6160a99f39a934f330cdf40711de50 | [
"Apache-2.0"
] | null | null | null | 42.1_Square_Root_Decomposition-introduction.c++ | Sambitcr-7/DSA-C- | f3c80f54fa6160a99f39a934f330cdf40711de50 | [
"Apache-2.0"
] | null | null | null | #include "bits/stdc++.h"
using namespace std;
#define int long long
const int N = 1e5+2, MOD = 1e9+7;
signed main()
{
int n;
cin >> n;
vector<int> a(n);
for(int i = 0 ; i < n; i++)
cin >> a[i];
int len = sqrtl(n) + 1;
vector<int> b(len);
for(int i = 0; i < n; i++){
... | 16.653846 | 48 | 0.312933 | Sambitcr-7 |
0aadb43caabd239e05efb407e6b17daf5194c6da | 9,332 | cpp | C++ | Plugins/ProceduralToolkit/Source/ProceduralToolkit/Private/MeshDeformationComponent.cpp | normalvector/ue4_procedural_toolkit_demos | 90021f805150d4af85cbcd063cef5379a3a2a184 | [
"Unlicense",
"MIT"
] | 3 | 2017-03-23T10:22:50.000Z | 2017-07-12T23:48:06.000Z | Plugins/ProceduralToolkit/Source/ProceduralToolkit/Private/MeshDeformationComponent.cpp | normalvector/ue4_procedural_toolkit_demos | 90021f805150d4af85cbcd063cef5379a3a2a184 | [
"Unlicense",
"MIT"
] | null | null | null | Plugins/ProceduralToolkit/Source/ProceduralToolkit/Private/MeshDeformationComponent.cpp | normalvector/ue4_procedural_toolkit_demos | 90021f805150d4af85cbcd063cef5379a3a2a184 | [
"Unlicense",
"MIT"
] | null | null | null | // (c)2017 Paul Golds, released under MIT License.
#include "ProceduralToolkit.h"
#include "MeshGeometry.h"
#include "MeshDeformationComponent.h"
// Sets default values for this component's properties
UMeshDeformationComponent::UMeshDeformationComponent()
{
// This component can never tick, it doesn't upd... | 37.031746 | 266 | 0.747857 | normalvector |
0ab0e4296c8448eed643b8b691d1ad461c57b101 | 677 | cpp | C++ | Arrays/Rearrange the array in alternating positive and negative items.cpp | akshay-thummar/DSA-Busted | 8194411555d978bcf9bd66f9e0da5e502a94a493 | [
"MIT"
] | 17 | 2021-12-03T14:29:01.000Z | 2022-03-09T18:25:05.000Z | Arrays/Rearrange the array in alternating positive and negative items.cpp | riti2409/DSA-Busted | 8194411555d978bcf9bd66f9e0da5e502a94a493 | [
"MIT"
] | null | null | null | Arrays/Rearrange the array in alternating positive and negative items.cpp | riti2409/DSA-Busted | 8194411555d978bcf9bd66f9e0da5e502a94a493 | [
"MIT"
] | 4 | 2022-01-29T14:03:48.000Z | 2022-03-01T22:53:41.000Z |
#include <bits/stdc++.h>
using namespace std;
void rearrange(int arr[], int n)
{
int i = -1, j = n;
while (i < j)
{
while(i <= n - 1 and arr[i] > 0)
i += 1;
while (j >= 0 and arr[j] < 0)
j -= 1;
if (i < j)
swap(arr[i], arr[j]);
}
if (i == 0 || i == n)
return;
int k = 0;
while (k < n && i ... | 13.019231 | 37 | 0.472674 | akshay-thummar |
0aca5a38a4d748d628d59c2cdefe5d6ed8b86d93 | 6,578 | hpp | C++ | integrations/near/include/marlin/near/OnRampNear.hpp | marlinprotocol/OpenWeaver | 7a8c668cccc933d652fabe8a141e702b8a0fd066 | [
"MIT"
] | 60 | 2020-07-01T17:37:34.000Z | 2022-02-16T03:56:55.000Z | integrations/near/include/marlin/near/OnRampNear.hpp | marlinpro/openweaver | 0aca30fbda3121a8e507f48a52b718b5664a5bbc | [
"MIT"
] | 5 | 2020-10-12T05:17:49.000Z | 2021-05-25T15:47:01.000Z | integrations/near/include/marlin/near/OnRampNear.hpp | marlinpro/openweaver | 0aca30fbda3121a8e507f48a52b718b5664a5bbc | [
"MIT"
] | 18 | 2020-07-01T17:43:18.000Z | 2022-01-09T14:29:08.000Z | #ifndef MARLIN_ONRAMP_NEAR_HPP
#define MARLIN_ONRAMP_NEAR_HPP
#include <marlin/multicast/DefaultMulticastClient.hpp>
#include <marlin/near/NearTransportFactory.hpp>
#include <marlin/near/NearTransport.hpp>
#include <cryptopp/blake2.h>
#include <libbase58.h>
#include <boost/filesystem.hpp>
#include <marlin/pubsub/attes... | 27.991489 | 175 | 0.710702 | marlinprotocol |
0ad04d8b69dc66dd4d445976f266f906996e366d | 14,363 | cc | C++ | example/Mcached/mraft/floyd/src/floyd_peer_thread.cc | fasShare/moxie-simple | 9b21320f868ca1fe05ca5d39e70eb053d31155ee | [
"MIT"
] | 1 | 2018-09-27T09:10:11.000Z | 2018-09-27T09:10:11.000Z | example/Mcached/mraft/floyd/src/floyd_peer_thread.cc | fasShare/moxie-simple | 9b21320f868ca1fe05ca5d39e70eb053d31155ee | [
"MIT"
] | 1 | 2018-09-16T07:17:29.000Z | 2018-09-16T07:17:29.000Z | example/Mcached/mraft/floyd/src/floyd_peer_thread.cc | fasShare/moxie-simple | 9b21320f868ca1fe05ca5d39e70eb053d31155ee | [
"MIT"
] | null | null | null | // Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
#include "floyd/src/floyd_... | 40.803977 | 128 | 0.695537 | fasShare |
bd5f7e448e051e5da5b259abf12f1f6241da3b02 | 1,471 | cpp | C++ | src/ros_can_nodes/src/CANSendQueue.cpp | bluesat/ros_can_nodes | 879114dc082c63c5d743e87a6f29e15ca6728156 | [
"BSD-3-Clause"
] | 1 | 2020-07-13T02:15:23.000Z | 2020-07-13T02:15:23.000Z | src/ros_can_nodes/src/CANSendQueue.cpp | bluesat/ros_can_nodes | 879114dc082c63c5d743e87a6f29e15ca6728156 | [
"BSD-3-Clause"
] | 3 | 2018-12-04T21:12:15.000Z | 2019-09-08T05:54:48.000Z | src/ros_can_nodes/src/CANSendQueue.cpp | bluesat/ros_can_nodes | 879114dc082c63c5d743e87a6f29e15ca6728156 | [
"BSD-3-Clause"
] | null | null | null | #include "CANSendQueue.hpp"
#include "CANHelpers.hpp"
#include <mutex>
#include <condition_variable>
#include <thread>
#include <ros/console.h>
//#define DEBUG
CANSendQueue& CANSendQueue::instance() {
static CANSendQueue instance;
return instance;
}
void CANSendQueue::push(const can_frame& frame) {
std::... | 24.516667 | 100 | 0.511217 | bluesat |
bd5f9fe5cad422e6b19dcfafae452e65e41f1db0 | 641 | cpp | C++ | leetcode/1318.cpp | raghavxk/Competitive-Programming | 131c9fffc92b638834c33e0ee0933adcd1e0d92a | [
"MIT"
] | 1 | 2021-09-29T13:10:03.000Z | 2021-09-29T13:10:03.000Z | leetcode/1318.cpp | raghavxk/Competitive-Programming | 131c9fffc92b638834c33e0ee0933adcd1e0d92a | [
"MIT"
] | null | null | null | leetcode/1318.cpp | raghavxk/Competitive-Programming | 131c9fffc92b638834c33e0ee0933adcd1e0d92a | [
"MIT"
] | null | null | null | class Solution {
public:
int minFlips(int a, int b, int c) {
int flips=0;
for(int i=0;i<32;++i){
bool aCheck=(a&(1<<i));
bool bCheck=(b&(1<<i));
bool aOrB= (aCheck | bCheck);
bool cCheck=(c&(1<<i));
if(aOrB!=cCheck){
... | 23.740741 | 52 | 0.316693 | raghavxk |
bd611ede16ba1b25fefb73a03009e0673751893e | 6,975 | hpp | C++ | tools/IYFEditor/include/assetImport/ConverterState.hpp | manvis/IYFEngine | 741a8d0dcc9b3e3ff8a8adb92850633523516604 | [
"BSD-3-Clause"
] | 5 | 2018-07-03T17:05:43.000Z | 2020-02-03T00:23:46.000Z | tools/IYFEditor/include/assetImport/ConverterState.hpp | manvis/IYFEngine | 741a8d0dcc9b3e3ff8a8adb92850633523516604 | [
"BSD-3-Clause"
] | null | null | null | tools/IYFEditor/include/assetImport/ConverterState.hpp | manvis/IYFEngine | 741a8d0dcc9b3e3ff8a8adb92850633523516604 | [
"BSD-3-Clause"
] | null | null | null | // The IYFEngine
//
// Copyright (C) 2015-2018, Manvydas Šliamka
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
// condi... | 39.40678 | 153 | 0.723441 | manvis |
bd6498ebcf6b3862846ab9fbc7cd8e06f8914bc6 | 1,887 | cpp | C++ | test/test.cpp | ern0/tabletenniscounter | 1157b6882978e3af8e6769d3a1cefc2db1fe446d | [
"MIT"
] | null | null | null | test/test.cpp | ern0/tabletenniscounter | 1157b6882978e3af8e6769d3a1cefc2db1fe446d | [
"MIT"
] | null | null | null | test/test.cpp | ern0/tabletenniscounter | 1157b6882978e3af8e6769d3a1cefc2db1fe446d | [
"MIT"
] | null | null | null | # include <stdio.h>
enum Beep { B_IDLE1 = 1, B_IDLE2 = 2 };
int score[2];
char gameMode;
char firstPlayer;
# include "ttc_selectIdleBeep.cpp"
int pass = 0;
int fail = 0;
int total = 0;
void check(char gm, int sc0, int sc1, int res) {
gameMode = gm;
score[0] = sc0;
score[1] = sc1;
int r = selectIdleBeep();... | 14.97619 | 48 | 0.595654 | ern0 |
bd67a931654ebe222ab68bf555e3de5159fcec5a | 1,315 | cpp | C++ | .upstream-tests/test/std/atomics/atomics.order/memory_order.pass.cpp | wmaxey/libcudacxx | f6a1e6067d0ccaae1c2717aef751622033481590 | [
"Apache-2.0"
] | null | null | null | .upstream-tests/test/std/atomics/atomics.order/memory_order.pass.cpp | wmaxey/libcudacxx | f6a1e6067d0ccaae1c2717aef751622033481590 | [
"Apache-2.0"
] | null | null | null | .upstream-tests/test/std/atomics/atomics.order/memory_order.pass.cpp | wmaxey/libcudacxx | f6a1e6067d0ccaae1c2717aef751622033481590 | [
"Apache-2.0"
] | 1 | 2021-11-12T21:19:28.000Z | 2021-11-12T21:19:28.000Z | //===----------------------------------------------------------------------===//
//
// Part of the LLVM 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
//
//===---------------------------... | 33.717949 | 80 | 0.624335 | wmaxey |
bd717254f479e9cdd051a705e97758ca777a24b8 | 9,223 | hpp | C++ | include/targets/LPC81x/lpc81x_pin.hpp | hparracho/Xarmlib | 4a7c08fde796b3487845c3a4beecc21ceafde67c | [
"MIT"
] | 3 | 2018-03-21T18:04:42.000Z | 2018-05-30T09:27:29.000Z | include/targets/LPC81x/lpc81x_pin.hpp | hparracho/Xarmlib | 4a7c08fde796b3487845c3a4beecc21ceafde67c | [
"MIT"
] | 2 | 2018-06-28T14:39:19.000Z | 2018-07-04T02:07:02.000Z | include/targets/LPC81x/lpc81x_pin.hpp | hparracho/Xarmlib | 4a7c08fde796b3487845c3a4beecc21ceafde67c | [
"MIT"
] | 5 | 2018-05-24T10:59:32.000Z | 2021-08-06T15:57:58.000Z | // ----------------------------------------------------------------------------
// @file lpc81x_pin.hpp
// @brief NXP LPC81x pin class.
// @date 28 February 2019
// ----------------------------------------------------------------------------
//
// Xarmlib 0.1.0 - https://github.com/hparracho/Xarmlib
// Copyrigh... | 35.748062 | 115 | 0.479996 | hparracho |
bd75be9438489717135ee58ddca13deac6e3e5ae | 444 | cpp | C++ | Diversos trabalhos/Matriz/novo vetor.cpp | ewertonpugliesi/Trabalhos-em-C-C-- | fd6400ff1621ac00907adc531ac7ad38121c532c | [
"MIT"
] | null | null | null | Diversos trabalhos/Matriz/novo vetor.cpp | ewertonpugliesi/Trabalhos-em-C-C-- | fd6400ff1621ac00907adc531ac7ad38121c532c | [
"MIT"
] | null | null | null | Diversos trabalhos/Matriz/novo vetor.cpp | ewertonpugliesi/Trabalhos-em-C-C-- | fd6400ff1621ac00907adc531ac7ad38121c532c | [
"MIT"
] | null | null | null | //Escrever um novo vetor,atraves de dois outros,mutiplicando valores de mesmo indice,
#include<stdio.h>
#include<conio.h>
main()
{
int cont,num[10],num2[10],resul[10];
for (cont=0 ; cont<=9 ; cont++)
{
printf("Digite um valor ");
scanf("%i",&num[10]);
}
for(cont=0; cont<=9 ; cont++)
{
printf("Digite um outro valor ");
... | 18.5 | 85 | 0.632883 | ewertonpugliesi |
bd7b938212717ab6beed501a09b3357878f69e54 | 22 | cpp | C++ | lib/StarAlign/starAlign.cpp | AndreiDiaconu97/tracket | 10c680b99d8d37212f6ad1f2d28e9279f93c04a7 | [
"MIT"
] | null | null | null | lib/StarAlign/starAlign.cpp | AndreiDiaconu97/tracket | 10c680b99d8d37212f6ad1f2d28e9279f93c04a7 | [
"MIT"
] | null | null | null | lib/StarAlign/starAlign.cpp | AndreiDiaconu97/tracket | 10c680b99d8d37212f6ad1f2d28e9279f93c04a7 | [
"MIT"
] | null | null | null | #include "starAlign.h" | 22 | 22 | 0.772727 | AndreiDiaconu97 |
bd83c41cb6e725f59625eb34c8fce014d1f3f841 | 10,669 | cpp | C++ | Base/PLRenderer/src/Renderer/ProgramGenerator.cpp | ktotheoz/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 83 | 2015-01-08T15:06:14.000Z | 2021-07-20T17:07:00.000Z | Base/PLRenderer/src/Renderer/ProgramGenerator.cpp | PixelLightFoundation/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 27 | 2019-06-18T06:46:07.000Z | 2020-02-02T11:11:28.000Z | Base/PLRenderer/src/Renderer/ProgramGenerator.cpp | naetherm/PixelLight | d7666f5b49020334cbb5debbee11030f34cced56 | [
"MIT"
] | 40 | 2015-02-25T18:24:34.000Z | 2021-03-06T09:01:48.000Z | /*********************************************************\
* File: ProgramGenerator.cpp *
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of charge, to any person obtaining a co... | 37.566901 | 151 | 0.667823 | ktotheoz |
bd86280087c86bed9cc2a1f2459ef0297950c21d | 1,350 | hpp | C++ | include/rua/callable.hpp | yulon/rua | acb14aa0e60b68f09e88c726965552f7f4f5ace0 | [
"MIT"
] | null | null | null | include/rua/callable.hpp | yulon/rua | acb14aa0e60b68f09e88c726965552f7f4f5ace0 | [
"MIT"
] | null | null | null | include/rua/callable.hpp | yulon/rua | acb14aa0e60b68f09e88c726965552f7f4f5ace0 | [
"MIT"
] | null | null | null | #ifndef _RUA_CALLABLE_HPP
#define _RUA_CALLABLE_HPP
#include "types/traits.hpp"
#include <functional>
#include <vector>
namespace rua {
template <typename Callable>
inline std::function<callable_prototype_t<decay_t<Callable>>>
wrap_callable(Callable &&c) {
return std::forward<Callable>(c);
}
/////////////////////... | 20.769231 | 76 | 0.634074 | yulon |
bd879321d9b78defa9f3b6b25da6f5c29af8a2fc | 1,571 | hpp | C++ | TicTacToe/Score.hpp | djanko1337/TicTacToe | 6adcdf7b3a7ed947f36d473c965853edea4ddc8e | [
"MIT"
] | 1 | 2018-02-14T18:00:52.000Z | 2018-02-14T18:00:52.000Z | TicTacToe/Score.hpp | djanko1337/TicTacToe | 6adcdf7b3a7ed947f36d473c965853edea4ddc8e | [
"MIT"
] | null | null | null | TicTacToe/Score.hpp | djanko1337/TicTacToe | 6adcdf7b3a7ed947f36d473c965853edea4ddc8e | [
"MIT"
] | null | null | null | #pragma once
namespace TicTacToe {
class Score {
public:
constexpr Score() noexcept;
constexpr auto count() const noexcept -> int;
constexpr auto increment() noexcept -> void;
constexpr auto reset() noexcept -> void;
private:
int mCount;
};
constexpr auto operator==(Score lhs, Score rhs) noex... | 19.158537 | 65 | 0.674729 | djanko1337 |
bd8c50deb2428e76a91e1731ad9a8523613d76dd | 1,060 | hpp | C++ | libs/core/include/fcppt/enum/output.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/enum/output.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/enum/output.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// 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)
#ifndef FCPPT_ENUM_OUTPUT_HPP_INCLUDED
#define FCPPT_ENUM_OUTPUT_HPP_INCLUDED
#include <fcppt/enu... | 17.096774 | 78 | 0.711321 | pmiddend |
bd8cd24fba3ddb9a267618809b3a6ad818b1339b | 945 | hpp | C++ | src/include/XEEditor/Editor.hpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 11 | 2017-01-17T15:02:25.000Z | 2020-11-27T16:54:42.000Z | src/include/XEEditor/Editor.hpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 9 | 2016-10-23T20:15:38.000Z | 2018-02-06T11:23:17.000Z | src/include/XEEditor/Editor.hpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 2 | 2019-08-29T10:23:51.000Z | 2020-04-03T06:08:34.000Z | #ifndef EDITOR_HPP
#define EDITOR_HPP
#include <XEngine.hpp>
#include <XEEditor/Event/Event.h>
namespace EI {
class EditorCommand;
enum ObjType
{
Physic = 0,
GameEntity = 1,
};
enum Status
{
Unknown = 0,
OK = 1,
Error = 2,
};
class Editor
{
public:
Editor();
inline XE::XEngine* getEngin... | 20.106383 | 82 | 0.674074 | devxkh |
bd8f12d6d2ef16317d360b1060caa92b0319eacb | 373 | cpp | C++ | src/learn/test_bitset.cpp | wohaaitinciu/zpublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 50 | 2015-01-07T01:54:54.000Z | 2021-01-15T00:41:48.000Z | src/learn/test_bitset.cpp | lib1256/zpublic | 64c2be9ef1abab878288680bb58122dcc25df81d | [
"Unlicense"
] | 1 | 2015-05-26T07:40:19.000Z | 2015-05-26T07:40:19.000Z | src/learn/test_bitset.cpp | lib1256/zpublic | 64c2be9ef1abab878288680bb58122dcc25df81d | [
"Unlicense"
] | 39 | 2015-01-07T02:03:15.000Z | 2021-01-15T00:41:50.000Z | #include "stdafx.h"
#include "test_bitset.h"
void test_bitset()
{
std::bitset<32> bt32;
bt32.set();
assert(bt32.all());
bt32.reset();
assert(bt32.none());
bt32.set(0);
assert(bt32.any());
assert(bt32.size() == 32);
bt32.flip();
assert(bt32.count() == 31);
bt32 <<= 15;
st... | 18.65 | 55 | 0.544236 | wohaaitinciu |
bd93b99635fd75bddeaaea5d7980b57d005a85c0 | 21,349 | cc | C++ | src/tpl/vx_str.cc | eedsp/tlx | 2555853646920168570bd630850dc22bc2cb327d | [
"Apache-2.0"
] | null | null | null | src/tpl/vx_str.cc | eedsp/tlx | 2555853646920168570bd630850dc22bc2cb327d | [
"Apache-2.0"
] | null | null | null | src/tpl/vx_str.cc | eedsp/tlx | 2555853646920168570bd630850dc22bc2cb327d | [
"Apache-2.0"
] | null | null | null | //
// Created by Shiwon Cho on 2005.10.27.
//
#include <iostream>
#include "vx_str.h"
#define UPDATE_UCS_offset(p_offset_utf8, p_offset_utf8_s, pSTR, pSTR_len, p_offset_ucs) { \
int32_t __v_idx_utf8 = p_offset_utf8; \
while (__v_idx_utf8 < p_offset_utf8_s && __v_idx_utf8 < pSTR_len) \
{ \
UChar32 ... | 33.357813 | 174 | 0.569582 | eedsp |
bd97711b92e2f01bc90806429d49e045296546de | 961 | hpp | C++ | configuration/ConfigurationParameterTemplateBase_test/ConfigurationParameterTemplateBase_test.hpp | leighgarbs/toolbox | fd9ceada534916fa8987cfcb5220cece2188b304 | [
"MIT"
] | null | null | null | configuration/ConfigurationParameterTemplateBase_test/ConfigurationParameterTemplateBase_test.hpp | leighgarbs/toolbox | fd9ceada534916fa8987cfcb5220cece2188b304 | [
"MIT"
] | null | null | null | configuration/ConfigurationParameterTemplateBase_test/ConfigurationParameterTemplateBase_test.hpp | leighgarbs/toolbox | fd9ceada534916fa8987cfcb5220cece2188b304 | [
"MIT"
] | null | null | null | #if !defined CONFIGURATION_PARAMETER_TEMPLATE_BASE_TEST_HPP
#define CONFIGURATION_PARAMETER_TEMPLATE_BASE_TEST_HPP
#include "Test.hpp"
#include "TestCases.hpp"
#include "TestMacros.hpp"
#include "ConfigurationParameterTemplateBase.hpp"
namespace Configuration
{
TEST_CASES_BEGIN(ParameterTemplateBase_test)
... | 23.439024 | 81 | 0.630593 | leighgarbs |
bd9ec24d3dab1b3d9fab7650571cb40639a1c1ec | 61,331 | cpp | C++ | src/NLO_PL.cpp | gvita/RHEHpt | f320d8f4e2ef27af19cf62bded85afce8e0de7a7 | [
"MIT"
] | null | null | null | src/NLO_PL.cpp | gvita/RHEHpt | f320d8f4e2ef27af19cf62bded85afce8e0de7a7 | [
"MIT"
] | null | null | null | src/NLO_PL.cpp | gvita/RHEHpt | f320d8f4e2ef27af19cf62bded85afce8e0de7a7 | [
"MIT"
] | null | null | null | #include "NLO_PL.h"
#include "cuba.h"
#include <gsl/gsl_sf_dilog.h>
/*double B2pp_ANALITIC(long double x, long double xp)
{
return(1./3.*3.*5.*(2.+3.*xp)/(xp*(1.+xp))*std::log(x));
}*/ //Used to cross-check the complete form above
long double B2pp_ANALITICS(long double x, long double xp){
long double ymax=0.5*st... | 58.466158 | 214 | 0.576788 | gvita |
bda5c0edf01f038f611d78c8ee2b7e90a0a7c0a1 | 9,628 | cpp | C++ | src/Game.cpp | M4T1A5/IndieSpeedRun2013 | 75b1adc4716c2e32f308289cce51a78a10681697 | [
"Zlib"
] | null | null | null | src/Game.cpp | M4T1A5/IndieSpeedRun2013 | 75b1adc4716c2e32f308289cce51a78a10681697 | [
"Zlib"
] | null | null | null | src/Game.cpp | M4T1A5/IndieSpeedRun2013 | 75b1adc4716c2e32f308289cce51a78a10681697 | [
"Zlib"
] | null | null | null | #include <Game.h>
#include <time.h>
#include <stdlib.h>
using namespace EGEMath;
using namespace EGEMotor;
Game::Game(Viewport& viewport, Input &input)
: input(&input),
viewport(&viewport),
gameState(MENU),
_clock(0),
Difficulty(1)
{
font = new Font("square.ttf");
resourceText = new Text("", font);
re... | 24.498728 | 169 | 0.654342 | M4T1A5 |
bdaf2f711fbe5aed14096c7ac4c7304eeab8ab0b | 2,988 | hpp | C++ | include/makeshift/experimental/mpark/variant.hpp | mbeutel/makeshift | 68e6bdee79060f3b258c031c53ff641325d13411 | [
"BSL-1.0"
] | 3 | 2020-04-03T14:06:41.000Z | 2021-11-09T23:55:52.000Z | include/makeshift/experimental/mpark/variant.hpp | mbeutel/makeshift | 68e6bdee79060f3b258c031c53ff641325d13411 | [
"BSL-1.0"
] | 2 | 2020-04-03T14:21:09.000Z | 2022-02-08T14:37:01.000Z | include/makeshift/experimental/mpark/variant.hpp | mbeutel/makeshift | 68e6bdee79060f3b258c031c53ff641325d13411 | [
"BSL-1.0"
] | null | null | null |
#ifndef INCLUDED_MAKESHIFT_EXPERIMENTAL_MPARK_VARIANT_HPP_
#define INCLUDED_MAKESHIFT_EXPERIMENTAL_MPARK_VARIANT_HPP_
#include <utility> // for forward<>()
#include <type_traits> // for remove_cv<>, remove_reference<>
#include <gsl-lite/gsl-lite.hpp> // for gsl_Expects(), gsl_NODISCARD
#include <mpark/variant.... | 30.489796 | 131 | 0.670348 | mbeutel |
bdba0a9c8a4aa4bb8f2faa7e5818dc3bc650d72b | 1,256 | cpp | C++ | lib/code/widgets/single_child.cpp | leddoo/cpp-gui | 75f9d89df0bea8ac7d59179a17bd58c8a4e3ead7 | [
"MIT"
] | null | null | null | lib/code/widgets/single_child.cpp | leddoo/cpp-gui | 75f9d89df0bea8ac7d59179a17bd58c8a4e3ead7 | [
"MIT"
] | null | null | null | lib/code/widgets/single_child.cpp | leddoo/cpp-gui | 75f9d89df0bea8ac7d59179a17bd58c8a4e3ead7 | [
"MIT"
] | null | null | null | #include <cpp-gui/core/gui.hpp>
#include <cpp-gui/widgets/single_child.hpp>
Single_Child_Def::~Single_Child_Def() {
safe_delete(&this->child);
}
Widget* Single_Child_Def::on_get_widget(Gui* gui) {
return gui->create_widget_and_match<Single_Child_Widget>(*this);
}
Single_Child_Widget::~Single_Child_Widget(... | 22.836364 | 113 | 0.684713 | leddoo |
bdbb708a347c590ef630a45f6f1b3ef678bc7ce5 | 253 | cpp | C++ | src/process.cpp | Matthew-Zimmer/Harpoon | 81420c815f8930d20c9e082973442d9fe7a7ddea | [
"BSL-1.0"
] | 1 | 2019-12-22T20:02:31.000Z | 2019-12-22T20:02:31.000Z | src/process.cpp | Matthew-Zimmer/harpoon | 81420c815f8930d20c9e082973442d9fe7a7ddea | [
"BSL-1.0"
] | null | null | null | src/process.cpp | Matthew-Zimmer/harpoon | 81420c815f8930d20c9e082973442d9fe7a7ddea | [
"BSL-1.0"
] | null | null | null | #include "process.hpp"
namespace Slate::Harpoon
{
Base_Process::Base_Process(std::string const& name) : name{ name }
{}
Memory::Block& Buffer<void, void>::Queues()
{
static Memory::Block queues;
return queues;
};
} | 19.461538 | 71 | 0.608696 | Matthew-Zimmer |
bdc49488d0957d4292661a5c6aba0fad298a3a78 | 8,344 | cpp | C++ | Project/Source/Components/UI/ComponentText.cpp | TBD-org/TBD-Engine | 8b45d5a2a92e26bd0ec034047b8188e871fab0f9 | [
"MIT"
] | 7 | 2021-04-26T21:32:12.000Z | 2022-02-14T13:48:53.000Z | Project/Source/Components/UI/ComponentText.cpp | TBD-org/RealBugEngine | 0131fde0abc2d86137500acd6f63ed8f0fc2835f | [
"MIT"
] | 66 | 2021-04-24T10:08:07.000Z | 2021-10-05T16:52:56.000Z | Project/Source/Components/UI/ComponentText.cpp | TBD-org/TBD-Engine | 8b45d5a2a92e26bd0ec034047b8188e871fab0f9 | [
"MIT"
] | 1 | 2021-07-13T21:26:13.000Z | 2021-07-13T21:26:13.000Z | #include "ComponentText.h"
#include "Application.h"
#include "GameObject.h"
#include "Modules/ModulePrograms.h"
#include "Modules/ModuleCamera.h"
#include "Modules/ModuleRender.h"
#include "Modules/ModuleUserInterface.h"
#include "Modules/ModuleResources.h"
#include "Modules/ModuleEditor.h"
#include "ComponentTransfor... | 28.094276 | 166 | 0.71081 | TBD-org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.