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 108 | 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 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bce3ea10273c30077254035d26981fee66346d94 | 1,273 | cpp | C++ | Programs/21 Stack/linkedListImplementation.cpp | Lord-Lava/DSA-CPP-Apna-College | 077350c2aa900bb0cdb137ece2b95be58ccd76a8 | [
"MIT"
] | 5 | 2021-04-04T18:39:14.000Z | 2021-12-18T09:31:55.000Z | Programs/21 Stack/linkedListImplementation.cpp | Lord-Lava/DSA-CPP-Apna-College | 077350c2aa900bb0cdb137ece2b95be58ccd76a8 | [
"MIT"
] | null | null | null | Programs/21 Stack/linkedListImplementation.cpp | Lord-Lava/DSA-CPP-Apna-College | 077350c2aa900bb0cdb137ece2b95be58ccd76a8 | [
"MIT"
] | 1 | 2021-09-26T11:01:26.000Z | 2021-09-26T11:01:26.000Z | //implementation using single ll
//top <-node4 <-node3 <-node2 <-node1
#include <iostream>
using namespace std;
class node{
public:
int data;
node* next;
// node* prev;
node(int val){
data = val;
next = NULL;
// prev = NULL;
}
};
class stack{
node* top;
publ... | 15.337349 | 49 | 0.451689 | Lord-Lava |
bce4c58ee69b751be22d58a1a61db3dcde96d3c3 | 1,183 | hpp | C++ | libs/modelmd3/impl/include/sge/model/md3/impl/frame.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/modelmd3/impl/include/sge/model/md3/impl/frame.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/modelmd3/impl/include/sge/model/md3/impl/frame.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_MODEL_MD3_IMPL_FRAME_HPP_INCLUDED
#define SGE_MODEL_MD3_IMPL_FRAME_HPP_INCLUDED
#inclu... | 24.142857 | 72 | 0.705833 | cpreh |
bce648c2796de1a4becbd9949a9caeda3b8ee146 | 10,593 | cpp | C++ | VulkanFramework/Device.cpp | Snowapril/VFS | a366f519c1382cfa2669b56346b67737513d6099 | [
"MIT"
] | 2 | 2022-02-14T16:34:39.000Z | 2022-02-25T06:11:42.000Z | VulkanFramework/Device.cpp | Snowapril/vk_voxel_cone_tracing | a366f519c1382cfa2669b56346b67737513d6099 | [
"MIT"
] | null | null | null | VulkanFramework/Device.cpp | Snowapril/vk_voxel_cone_tracing | a366f519c1382cfa2669b56346b67737513d6099 | [
"MIT"
] | null | null | null | // Author : Jihong Shin (snowapril)
#include <VulkanFramework/pch.h>
#include <VulkanFramework/DebugUtils.h>
#include <VulkanFramework/Device.h>
#include <VulkanFramework/VulkanExtensions.h>
#include <VulkanFramework/Window.h>
#include <GLFW/glfw3.h>
#include <Common/Logger.h>
#include <cassert>
#include <set>
conste... | 31.155882 | 123 | 0.765789 | Snowapril |
bcf0e815b7d797a4eb99a6de118174a97048d0f3 | 4,315 | cpp | C++ | source/rendering/pipes/MirrorPipe.cpp | RaygenEngine/Raygen | 2e61afd35f594d06186c16397b536412ebf4298d | [
"MIT"
] | 2 | 2021-01-27T15:49:04.000Z | 2021-01-28T07:40:30.000Z | source/rendering/pipes/MirrorPipe.cpp | RaygenEngine/Raygen | 2e61afd35f594d06186c16397b536412ebf4298d | [
"MIT"
] | null | null | null | source/rendering/pipes/MirrorPipe.cpp | RaygenEngine/Raygen | 2e61afd35f594d06186c16397b536412ebf4298d | [
"MIT"
] | 1 | 2021-03-07T23:17:31.000Z | 2021-03-07T23:17:31.000Z | #include "MirrorPipe.h"
#include "rendering/assets/GpuAssetManager.h"
#include "rendering/assets/GpuShader.h"
#include "rendering/assets/GpuShaderStage.h"
#include "rendering/pipes/StaticPipes.h"
#include "rendering/scene/Scene.h"
#include "rendering/scene/SceneCamera.h"
namespace {
struct PushConstant {
int32 dept... | 37.198276 | 117 | 0.756431 | RaygenEngine |
bcf8c8fec0ebf865e37923634ced910583cb65e8 | 3,082 | hpp | C++ | inc/streamDumper.hpp | WMFO/Silence-Detector | af932c13e6e121b094038ad08e7d2e667c67351c | [
"MIT"
] | 18 | 2015-07-18T11:44:41.000Z | 2021-03-27T17:23:48.000Z | inc/streamDumper.hpp | WMFO/Silence-Detector | af932c13e6e121b094038ad08e7d2e667c67351c | [
"MIT"
] | null | null | null | inc/streamDumper.hpp | WMFO/Silence-Detector | af932c13e6e121b094038ad08e7d2e667c67351c | [
"MIT"
] | 6 | 2017-05-26T08:55:05.000Z | 2021-10-08T01:56:41.000Z | #ifndef STREAMDUMPER_H
#define STREAMDUMPER_H
#include <exception>
#include <string>
#include <iostream>
#include <list>
class streamDumper
{
public:
streamDumper();
streamDumper(const std::string &bindAddr, const std::string &ipaddr, int portNumber);
void openMulticastStream(const std::s... | 28.803738 | 105 | 0.544452 | WMFO |
bcf9360d4a9bee78e6fe23da18d9aceae454edbf | 527 | cpp | C++ | test/tools/llvm-pdbdump/Inputs/FilterTest.cpp | kpdev/llvm-tnt | d81ccf6fad01597f0143a1598d94d7d29002cf41 | [
"MIT"
] | 1,073 | 2017-06-28T05:11:54.000Z | 2022-03-31T12:52:07.000Z | test/tools/llvm-pdbdump/Inputs/FilterTest.cpp | rjordans/avr-llvm | 1802f85a455fbbe5fd1b55183bf588e2e4731dc5 | [
"FSFAP"
] | 25 | 2018-07-23T08:34:15.000Z | 2021-11-05T07:13:36.000Z | test/tools/llvm-pdbdump/Inputs/FilterTest.cpp | rjordans/avr-llvm | 1802f85a455fbbe5fd1b55183bf588e2e4731dc5 | [
"FSFAP"
] | 244 | 2017-06-28T05:08:57.000Z | 2022-03-13T05:03:12.000Z | // Compile with "cl /c /Zi /GR- FilterTest.cpp"
// Link with "link FilterTest.obj /debug /nodefaultlib /entry:main"
class FilterTestClass {
public:
typedef int NestedTypedef;
enum NestedEnum {
NestedEnumValue1
};
void MemberFunc() {}
private:
int IntMemberVar;
double DoubleMemberVar;
};
int IntGloba... | 17.566667 | 67 | 0.732448 | kpdev |
bcfbc46ae8d61352d53dac09f9d91c2d8c3b3f7d | 9,319 | cpp | C++ | src/theory/sets/theory_sets_rewriter.cpp | HasibShakur/CVC4 | 7a303390a65fd395a53085833d504acc312dc6a6 | [
"BSL-1.0"
] | null | null | null | src/theory/sets/theory_sets_rewriter.cpp | HasibShakur/CVC4 | 7a303390a65fd395a53085833d504acc312dc6a6 | [
"BSL-1.0"
] | null | null | null | src/theory/sets/theory_sets_rewriter.cpp | HasibShakur/CVC4 | 7a303390a65fd395a53085833d504acc312dc6a6 | [
"BSL-1.0"
] | null | null | null | /********************* */
/*! \file theory_sets_rewriter.cpp
** \verbatim
** Original author: Kshitij Bansal
** Major contributors: none
** Minor contributors (to current version): none
** This file is part of the CVC4 project.
** Copyright (c) 2013-2014 New... | 35.568702 | 114 | 0.620882 | HasibShakur |
bcfce3b0d01b36731990972df7194dd9411ed08f | 497 | cc | C++ | zeo/r_table.cc | softwarecapital/chr1shr.voro | 122531fbe162ea9a94b7e96ee9d57d3957c337ca | [
"BSD-3-Clause-LBNL"
] | 43 | 2019-09-29T01:14:25.000Z | 2022-03-02T23:48:25.000Z | zeo/r_table.cc | softwarecapital/chr1shr.voro | 122531fbe162ea9a94b7e96ee9d57d3957c337ca | [
"BSD-3-Clause-LBNL"
] | 15 | 2019-10-19T23:39:39.000Z | 2021-12-30T22:03:51.000Z | zeo/r_table.cc | softwarecapital/chr1shr.voro | 122531fbe162ea9a94b7e96ee9d57d3957c337ca | [
"BSD-3-Clause-LBNL"
] | 23 | 2019-10-19T23:40:57.000Z | 2022-03-29T16:53:17.000Z | // Voro++, a 3D cell-based Voronoi library
//
// Author : Chris H. Rycroft (LBL / UC Berkeley)
// Email : chr@alum.mit.edu
// Date : July 1st 2008
#include <cstdlib>
const int n_table=2;
const char rad_ctable[][4]={
"O",
"Si"
};
const double rad_table[]={
0.8,
0.5
};
double radial_lookup(char *buffer)... | 19.115385 | 84 | 0.647887 | softwarecapital |
bcfdc549ffe55591888e2088498b9f43fa364212 | 37,103 | cpp | C++ | RenderSystems/Vulkan/src/OgreVulkanTextureGpu.cpp | dawlane/ogre | 7bae21738c99b117ef2eab3fcb1412891b8c2025 | [
"MIT"
] | null | null | null | RenderSystems/Vulkan/src/OgreVulkanTextureGpu.cpp | dawlane/ogre | 7bae21738c99b117ef2eab3fcb1412891b8c2025 | [
"MIT"
] | null | null | null | RenderSystems/Vulkan/src/OgreVulkanTextureGpu.cpp | dawlane/ogre | 7bae21738c99b117ef2eab3fcb1412891b8c2025 | [
"MIT"
] | null | null | null | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2017 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... | 46.436796 | 122 | 0.630488 | dawlane |
4c010613929393f758a5955fe16d392919f02e27 | 4,419 | hpp | C++ | include/codegen/include/UnityEngine/UI/Mask.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/UnityEngine/UI/Mask.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/UnityEngine/UI/Mask.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:38 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: UnityEngine.EventSystems.UIBehaviour
#include "UnityEngine/EventSystems/UIBehaviour.hpp"... | 42.085714 | 147 | 0.732519 | Futuremappermydud |
4c03ecd5ab9d1dbdbefc12556bca25d2d7107df8 | 26,916 | cpp | C++ | Source/Gadgets/Mining/1_FastFrequentSubgraphMining/pattern.cpp | spxuw/RFIM | 32b78fbb90c7008b1106b0cff4f8023ae83c9b6d | [
"MIT"
] | null | null | null | Source/Gadgets/Mining/1_FastFrequentSubgraphMining/pattern.cpp | spxuw/RFIM | 32b78fbb90c7008b1106b0cff4f8023ae83c9b6d | [
"MIT"
] | null | null | null | Source/Gadgets/Mining/1_FastFrequentSubgraphMining/pattern.cpp | spxuw/RFIM | 32b78fbb90c7008b1106b0cff4f8023ae83c9b6d | [
"MIT"
] | null | null | null | #pragma warning (disable:4786 4018 4267)
#include <vector>
#include <fstream>
#include <algorithm>
#include <set>
using namespace std;
#include "pattChild.h"
gBase * pattern ::gb = NULL;
MyTimer * pattern ::Timers = NULL;
Register * pattern ::Registers = NULL;
DLONG pattern ::totalPatterns = 0;
bool pattern :: d... | 21.688961 | 133 | 0.578875 | spxuw |
4c04c6967e347f91d24db94f0fe214a600cf3d56 | 9,354 | cpp | C++ | al_ui/src/scenerenderer.cpp | xorsnn/altexo | 2587ecd66a970d6805cc40635a9ec19786b05dce | [
"MIT"
] | 1 | 2018-09-06T15:37:19.000Z | 2018-09-06T15:37:19.000Z | al_ui/src/scenerenderer.cpp | xorsnn/altexo | 2587ecd66a970d6805cc40635a9ec19786b05dce | [
"MIT"
] | null | null | null | al_ui/src/scenerenderer.cpp | xorsnn/altexo | 2587ecd66a970d6805cc40635a9ec19786b05dce | [
"MIT"
] | null | null | null | #include "scenerenderer.hpp"
SceneRenderer::SceneRenderer(int winWidth, int winHeight)
: WIDTH(0), HEIGHT(0), pendingRenderTexResize(false), m_debug(true),
m_remoteFrameRenderer(-0.5, -0.5, -0.5, -0.5),
m_localFrameRenderer(-0.5, -0.5, -0.5, -0.5), m_winWidth(winWidth),
m_winHeight(winHeight), m_... | 30.469055 | 77 | 0.677037 | xorsnn |
4c08f1f1a28af24ed904991632ed5e0570289d4a | 9,988 | cpp | C++ | IdClient/Platform/Windows/PWindows.cpp | skrishnasantosh/id-desktop-lite | 1bc9c056ec7fa50e02cf360552e794e22f74e501 | [
"MIT"
] | null | null | null | IdClient/Platform/Windows/PWindows.cpp | skrishnasantosh/id-desktop-lite | 1bc9c056ec7fa50e02cf360552e794e22f74e501 | [
"MIT"
] | null | null | null | IdClient/Platform/Windows/PWindows.cpp | skrishnasantosh/id-desktop-lite | 1bc9c056ec7fa50e02cf360552e794e22f74e501 | [
"MIT"
] | null | null | null | #ifdef _WIN32
#define _CRT_SECURE_NO_WARNINGS
#define WIN32_LEAN_AND_MEAN
#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING
#include <Windows.h>
#include <Shlwapi.h>
#include <wincrypt.h>
#include <WinInet.h>
#include <codecvt>
#include <string>
#include <vector>
#pragma comment(lib, "Shlwapi.lib")
#pragma ... | 25.414758 | 154 | 0.721165 | skrishnasantosh |
4c098427f2899cb8e91f687a7475d165dbc55687 | 152 | cpp | C++ | service/src/exo/hexcode.cpp | BOBBYWY/exodusdb | cfe8a3452480af90071dd10cefeed58299eed4e7 | [
"MIT"
] | 4 | 2021-01-23T14:36:34.000Z | 2021-06-07T10:02:28.000Z | service/src/exo/hexcode.cpp | BOBBYWY/exodusdb | cfe8a3452480af90071dd10cefeed58299eed4e7 | [
"MIT"
] | 1 | 2019-08-04T19:15:56.000Z | 2019-08-04T19:15:56.000Z | service/src/exo/hexcode.cpp | BOBBYWY/exodusdb | cfe8a3452480af90071dd10cefeed58299eed4e7 | [
"MIT"
] | 1 | 2022-01-29T22:41:01.000Z | 2022-01-29T22:41:01.000Z | #include <exodus/library.h>
libraryinit()
function main(in /*mode*/, io /*text*/) {
//called from listen but only in DOS
return 0;
}
libraryexit()
| 13.818182 | 41 | 0.671053 | BOBBYWY |
4c0b053537224646e959af3f4ecdfa7e3b2208ab | 2,648 | cpp | C++ | Chapter8/main.cpp | PacktPublishing/Mastering-Real-time-Ray-Tracing | c0b2e95f6182d4fbe52ea9261a500890fb11dc64 | [
"MIT"
] | 3 | 2019-10-10T21:01:45.000Z | 2021-11-14T14:45:17.000Z | Chapter8/main.cpp | PacktPublishing/Mastering-Real-time-Ray-Tracing | c0b2e95f6182d4fbe52ea9261a500890fb11dc64 | [
"MIT"
] | null | null | null | Chapter8/main.cpp | PacktPublishing/Mastering-Real-time-Ray-Tracing | c0b2e95f6182d4fbe52ea9261a500890fb11dc64 | [
"MIT"
] | 2 | 2019-06-09T11:22:39.000Z | 2019-12-24T19:38:14.000Z | #include <iostream>
#include <random>
// This is the real value for PI
static const double kREAL_PI = 3.1415927;
// N is the number of samples we've chosen to throw
// Here we consider a quarter of unit circle to compute the area
// We use the hit or miss approach
double HitOrMissMonteCarlo_EstimatePI(int N)
{
//... | 25.461538 | 125 | 0.689199 | PacktPublishing |
4c0d770609dfe91d96ff21ce4991fa78831cad15 | 4,455 | cpp | C++ | src/game/client/tf/c_entity_bird.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/game/client/tf/c_entity_bird.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/game/client/tf/c_entity_bird.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Dove entity for the Meet the Medic tease.
//
//=============================================================================//
#include "cbase.h"
#include "tf_gamerules.h"
#include "c_baseanimating.h"
#define ENTITY_FLYING_BI... | 26.052632 | 131 | 0.557351 | cstom4994 |
4c110491426056fb34ad624b6aeb08532da44def | 2,239 | cpp | C++ | src/Entry.cpp | teaglu/timeoutd | 855d93cc291c1744abcb1fd901beb639b1ed51ce | [
"Apache-2.0"
] | null | null | null | src/Entry.cpp | teaglu/timeoutd | 855d93cc291c1744abcb1fd901beb639b1ed51ce | [
"Apache-2.0"
] | null | null | null | src/Entry.cpp | teaglu/timeoutd | 855d93cc291c1744abcb1fd901beb639b1ed51ce | [
"Apache-2.0"
] | null | null | null | #include "system.h"
#include "Entry.h"
#include "Log.h"
std::string Entry::notifyScript= SCRIPTDIR "/timeoutd-notify";
Entry::Entry(char const *key, struct timeval & expires, char const *address)
{
this->key= key;
this->expires= expires;
this->lastAddress= address;
}
Entry::~Entry()
{
}
void Entry::notify()
{
... | 22.39 | 76 | 0.634658 | teaglu |
4c16165059184f7eb584fa5775deed9b746cd94e | 900 | hpp | C++ | Solution/Crosshair/Source/Crosshair.hpp | c-m-w/Crosshair-Overlay | 8fbefbbf9fed35a08b2a0a6a65fd816c97e05355 | [
"MIT"
] | 6 | 2019-01-27T20:42:43.000Z | 2021-06-09T07:36:15.000Z | Solution/Crosshair/Source/Crosshair.hpp | c-m-w/Crosshair-Overlay | 8fbefbbf9fed35a08b2a0a6a65fd816c97e05355 | [
"MIT"
] | null | null | null | Solution/Crosshair/Source/Crosshair.hpp | c-m-w/Crosshair-Overlay | 8fbefbbf9fed35a08b2a0a6a65fd816c97e05355 | [
"MIT"
] | 1 | 2020-01-14T08:25:35.000Z | 2020-01-14T08:25:35.000Z | /// Crosshair.hpp
#pragma once
#if not defined UNICODE or defined _MBCS
#error Unicode must be used for this project.
#endif
#if not defined WIN32
#error This project must be built in 32 bit mode.
#endif
#define _CRT_SECURE_NO_WARNINGS
#include <Windows.h>
#include <cstdio>
#include <cassert>
#include <string>
#in... | 20.930233 | 109 | 0.753333 | c-m-w |
4c181970cf31ac9cec66047839ffc5dba714debc | 171 | cpp | C++ | test/unit-tests/telemetry/telemetry_client/i_global_publisher_test.cpp | so931/poseidonos | 2aa82f26bfbd0d0aee21cd0574779a655634f08c | [
"BSD-3-Clause"
] | 38 | 2021-04-06T03:20:55.000Z | 2022-03-02T09:33:28.000Z | test/unit-tests/telemetry/telemetry_client/i_global_publisher_test.cpp | so931/poseidonos | 2aa82f26bfbd0d0aee21cd0574779a655634f08c | [
"BSD-3-Clause"
] | 19 | 2021-04-08T02:27:44.000Z | 2022-03-23T00:59:04.000Z | test/unit-tests/telemetry/telemetry_client/i_global_publisher_test.cpp | so931/poseidonos | 2aa82f26bfbd0d0aee21cd0574779a655634f08c | [
"BSD-3-Clause"
] | 28 | 2021-04-08T04:39:18.000Z | 2022-03-24T05:56:00.000Z | #include "src/telemetry/telemetry_client/i_global_publisher.h"
#include <gtest/gtest.h>
namespace pos
{
TEST(IGlobalPublisher, PublishToServer_)
{
}
} // namespace pos
| 14.25 | 62 | 0.77193 | so931 |
4c1b3ec1782a85f5a76811c000e4bcc0992dc1c9 | 2,225 | cpp | C++ | D2hackIt/toolhelp.cpp | inrg/D2HackIt-backup | 2f1e81f5ea29168ef780c8a957b02611954db3af | [
"Unlicense"
] | 24 | 2016-10-09T08:53:35.000Z | 2022-02-07T11:34:37.000Z | D2hackIt/toolhelp.cpp | bethington/D2HackIt | 2f1e81f5ea29168ef780c8a957b02611954db3af | [
"Unlicense"
] | null | null | null | D2hackIt/toolhelp.cpp | bethington/D2HackIt | 2f1e81f5ea29168ef780c8a957b02611954db3af | [
"Unlicense"
] | 33 | 2016-08-30T08:35:22.000Z | 2022-02-07T11:34:40.000Z | //////////////////////////////////////////////////////////////////////
// toolhelp.cpp
// -------------------------------------------------------------------
//
// <thohell@home.se>
//////////////////////////////////////////////////////////////////////
#define THIS_IS_SERVER
#include "..\D2HackIt.h"
/////////... | 35.887097 | 96 | 0.439551 | inrg |
4c1fc073a965e88346a3f3f17d6326318d51cc3d | 1,056 | cpp | C++ | set_power_series/test/subset_log.test.cpp | ankit6776/cplib-cpp | b9f8927a6c7301374c470856828aa1f5667d967b | [
"MIT"
] | 20 | 2021-06-21T00:18:54.000Z | 2022-03-17T17:45:44.000Z | set_power_series/test/subset_log.test.cpp | ankit6776/cplib-cpp | b9f8927a6c7301374c470856828aa1f5667d967b | [
"MIT"
] | 56 | 2021-06-03T14:42:13.000Z | 2022-03-26T14:15:30.000Z | set_power_series/test/subset_log.test.cpp | ankit6776/cplib-cpp | b9f8927a6c7301374c470856828aa1f5667d967b | [
"MIT"
] | 3 | 2019-12-11T06:45:45.000Z | 2020-09-07T13:45:32.000Z | #define PROBLEM "https://atcoder.jp/contests/arc105/tasks/arc105_f"
#include "../../modint.hpp"
#include "../subset_convolution.hpp"
#include <iostream>
using namespace std;
using mint = ModInt<998244353>;
// https://codeforces.com/blog/entry/83535?#comment-709269
int main() {
int N, M;
cin >> N >> M;
vect... | 29.333333 | 99 | 0.485795 | ankit6776 |
4c220997bc1e1284fabf6b2232df796f81e904cb | 2,880 | cpp | C++ | test/parsed.cpp | olanmatt/orq | 0e85e547cdc78cfd37681b8addfa0f4507e9516a | [
"MIT"
] | 35 | 2015-01-07T05:06:50.000Z | 2022-01-15T13:59:35.000Z | test/parsed.cpp | olanmatt/orq | 0e85e547cdc78cfd37681b8addfa0f4507e9516a | [
"MIT"
] | null | null | null | test/parsed.cpp | olanmatt/orq | 0e85e547cdc78cfd37681b8addfa0f4507e9516a | [
"MIT"
] | 11 | 2015-01-27T09:29:22.000Z | 2021-10-21T10:47:11.000Z | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 Matt Olan, Prajjwal Bhandari
*
* 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 r... | 33.103448 | 81 | 0.642014 | olanmatt |
4c23c7b66ceeab2064567b67db73e5d102c2bea4 | 812 | cpp | C++ | third_party/WebKit/Source/platform/fonts/FontCacheMemoryDumpProvider.cpp | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-28T08:09:58.000Z | 2021-11-15T15:32:10.000Z | third_party/WebKit/Source/platform/fonts/FontCacheMemoryDumpProvider.cpp | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/platform/fonts/FontCacheMemoryDumpProvider.cpp | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | 6 | 2020-09-23T08:56:12.000Z | 2021-11-18T03:40:49.000Z | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "platform/fonts/FontCacheMemoryDumpProvider.h"
#include "platform/fonts/FontCache.h"
#include "wtf/Assertions.h"
namespace blink {
FontCacheMe... | 30.074074 | 138 | 0.775862 | Wzzzx |
4c2480210f32bcee789f9dda078a231f55f09495 | 1,016 | cpp | C++ | AS/AS02/AS02.cpp | RafaelAmauri/Laborat-rio-de-Projetos-de-Algoritmos | d4ea60aba70d007bc23da5961f7c27d9756d0d74 | [
"MIT"
] | 1 | 2021-11-12T21:03:05.000Z | 2021-11-12T21:03:05.000Z | AS/AS02/AS02.cpp | RafaelAmauri/Laborat-rio-de-Projetos-de-Algoritmos | d4ea60aba70d007bc23da5961f7c27d9756d0d74 | [
"MIT"
] | null | null | null | AS/AS02/AS02.cpp | RafaelAmauri/Laborat-rio-de-Projetos-de-Algoritmos | d4ea60aba70d007bc23da5961f7c27d9756d0d74 | [
"MIT"
] | null | null | null | // Autor: Rafael Amauri
// Tarefa: LED
// ID da Tarefa: 1168
// URL: https://www.beecrowd.com.br/judge/pt/problems/view/1168
// Complexidade: O(N), onde N é o número de dígitos totais
#include <iostream>
#include <string>
// Returns the number of LEDs required for a given num
short leds_required(short num)
{ ... | 24.190476 | 83 | 0.555118 | RafaelAmauri |
4c24d15d97e70ebf71d7ae7fa2c94192251dcc5d | 1,925 | hh | C++ | src/Utilities/nodeBoundingBoxes.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/Utilities/nodeBoundingBoxes.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/Utilities/nodeBoundingBoxes.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | //---------------------------------Spheral++----------------------------------//
// nodeBoundingBoxes
//
// Compute minimum volume bounding boxes for nodes and their extent.
//
// Created by JMO, Sun Jan 24 16:13:16 PST 2010
//----------------------------------------------------------------------------//
#ifndef __Sphe... | 39.285714 | 88 | 0.523117 | jmikeowen |
4c26baebdd604bd8c38f67b8a8b4b64f87674728 | 177 | cc | C++ | builtin.cc | jplevyak/ifa | 4bcb162182f4f7b5f5730dca09f8e37094cae53a | [
"MIT"
] | 11 | 2015-06-10T07:34:10.000Z | 2021-11-13T00:39:46.000Z | builtin.cc | jplevyak/ifa | 4bcb162182f4f7b5f5730dca09f8e37094cae53a | [
"MIT"
] | null | null | null | builtin.cc | jplevyak/ifa | 4bcb162182f4f7b5f5730dca09f8e37094cae53a | [
"MIT"
] | 1 | 2022-01-11T09:16:53.000Z | 2022-01-11T09:16:53.000Z | /* -*-Mode: c++;-*-
Copyright (c) 2004-2008 John Plevyak, All Rights Reserved
*/
#include "builtin.h"
#define S(_n) Sym *sym_##_n = 0;
#include "builtin_symbols.h"
#undef S
| 19.666667 | 60 | 0.644068 | jplevyak |
4c2bc806ac09ad7825ab0d94b335e4437584cf16 | 330 | hpp | C++ | Delauney/Sorting.hpp | tod91/Delauney | 946419312e3e2d789c2203a40de4084c4d1bbe5f | [
"MIT"
] | 2 | 2020-03-03T17:05:54.000Z | 2020-05-11T14:15:55.000Z | Delauney/Sorting.hpp | tod91/Delauney | 946419312e3e2d789c2203a40de4084c4d1bbe5f | [
"MIT"
] | null | null | null | Delauney/Sorting.hpp | tod91/Delauney | 946419312e3e2d789c2203a40de4084c4d1bbe5f | [
"MIT"
] | null | null | null | //
// Sorting.hpp
// PojectDelone
//
// Created by Todor Ivanov on 5/25/17.
// Copyright © 2017 Todor Ivanov. All rights reserved.
//
#ifndef Sorting_hpp
#define Sorting_hpp
struct Vertex3D;
// sorts points by their x coord
bool BottomUpMergeSort(Vertex3D* points, const unsigned numOfPoints);
#endif /* Sorti... | 16.5 | 70 | 0.718182 | tod91 |
4c2dd10d2ae44f17a8936f38a9fb369724167240 | 2,402 | cc | C++ | ash/projector/ui/projector_button.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | ash/projector/ui/projector_button.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | ash/projector/ui/projector_button.cc | iridium-browser/iridium-browser | 907e31cf5ce5ad14d832796e3a7c11e496828959 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/projector/ui/projector_button.h"
#include "ash/public/cpp/style/color_provider.h"
#include "ash/resources/vector_icons/vector_icons.h"
#inc... | 35.323529 | 78 | 0.756037 | Ron423c |
4c2ec4e004efcb973644ef859f80a39e89310592 | 4,261 | ipp | C++ | xs/src/boost/test/utils/runtime/cla/named_parameter.ipp | born2b/Slic3r | 589a0b3ac1a50f84de694b89cc10abcac45c0ae6 | [
"CC-BY-3.0"
] | 460 | 2016-01-13T12:49:34.000Z | 2022-02-20T04:10:40.000Z | xs/src/boost/test/utils/runtime/cla/named_parameter.ipp | born2b/Slic3r | 589a0b3ac1a50f84de694b89cc10abcac45c0ae6 | [
"CC-BY-3.0"
] | 197 | 2017-07-06T16:53:59.000Z | 2019-05-31T17:57:51.000Z | xs/src/boost/test/utils/runtime/cla/named_parameter.ipp | born2b/Slic3r | 589a0b3ac1a50f84de694b89cc10abcac45c0ae6 | [
"CC-BY-3.0"
] | 148 | 2016-01-17T03:16:43.000Z | 2022-03-17T12:20:36.000Z | // (C) Copyright Gennadiy Rozental 2005-2008.
// Use, modification, and distribution are subject to 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)
// See http://www.boost.org/libs/test for the library home page.
//
//... | 32.776923 | 122 | 0.619808 | born2b |
4c31861b8a9df357e0c27e9d46d10647ea13a2d4 | 1,367 | hpp | C++ | search/stats_cache.hpp | kudlav/organicmaps | 390236365749e0525b9229684132c2888d11369d | [
"Apache-2.0"
] | 4,879 | 2015-09-30T10:56:36.000Z | 2022-03-31T18:43:03.000Z | search/stats_cache.hpp | mbrukman/omim | d22fe2b6e0beee697f096e931df97a64f9db9dc1 | [
"Apache-2.0"
] | 7,549 | 2015-09-30T10:52:53.000Z | 2022-03-31T22:04:22.000Z | search/stats_cache.hpp | mbrukman/omim | d22fe2b6e0beee697f096e931df97a64f9db9dc1 | [
"Apache-2.0"
] | 1,493 | 2015-09-30T10:43:06.000Z | 2022-03-21T09:16:49.000Z | #pragma once
#include "base/logging.hpp"
#include <cstddef>
#include <string>
#include <unordered_map>
#include <utility>
namespace search
{
template <class Key, class Value>
class Cache
{
std::unordered_map<Key, Value> m_map;
/// query statistics
size_t m_accesses;
size_t m_misses;
size_t m_emptyQueries... | 20.712121 | 99 | 0.61229 | kudlav |
4c33abdbf9b3217e0cec1aa5d43de2bec595a6a8 | 2,010 | cpp | C++ | src/plugins/anim/nodes/frame/edit.cpp | martin-pr/possumwood | 0ee3e0fe13ef27cf14795a79fb497e4d700bef63 | [
"MIT"
] | 232 | 2017-10-09T11:45:28.000Z | 2022-03-28T11:14:46.000Z | src/plugins/anim/nodes/frame/edit.cpp | LIUJUN-liujun/possumwood | 745e48eb44450b0b7f078ece81548812ab1ccc63 | [
"MIT"
] | 26 | 2019-01-20T21:38:25.000Z | 2021-10-16T03:57:17.000Z | src/plugins/anim/nodes/frame/edit.cpp | LIUJUN-liujun/possumwood | 745e48eb44450b0b7f078ece81548812ab1ccc63 | [
"MIT"
] | 33 | 2017-10-26T19:20:38.000Z | 2022-03-16T11:21:43.000Z | #include <OpenEXR/ImathEuler.h>
#include <OpenEXR/ImathMatrix.h>
#include <OpenEXR/ImathVec.h>
#include <possumwood_sdk/node_implementation.h>
#include "datatypes/animation.h"
#include "datatypes/frame_editor_data.h"
#include "maths/io/vec3.h"
namespace {
dependency_graph::InAttr<anim::Skeleton> a_inFrame;
dependenc... | 30.923077 | 96 | 0.743781 | martin-pr |
4c353b39db60349f67cc8f036962b5dda0d59d63 | 296 | hpp | C++ | UnitTests/GXLayerUnitTest.hpp | manu88/GX | 1eaeb0361db4edfb9c0764b4c47817ed77d4159c | [
"Apache-2.0"
] | 2 | 2017-07-12T02:25:23.000Z | 2017-08-30T23:46:32.000Z | UnitTests/GXLayerUnitTest.hpp | manu88/GX | 1eaeb0361db4edfb9c0764b4c47817ed77d4159c | [
"Apache-2.0"
] | null | null | null | UnitTests/GXLayerUnitTest.hpp | manu88/GX | 1eaeb0361db4edfb9c0764b4c47817ed77d4159c | [
"Apache-2.0"
] | null | null | null | //
// GXLayerUnitTest.hpp
// GX
//
// Created by Manuel Deneu on 22/06/2017.
// Copyright © 2017 Unlimited Development. All rights reserved.
//
#ifndef GXLayerUnitTest_hpp
#define GXLayerUnitTest_hpp
class GXLayerUnitTest
{
public:
bool run();
};
#endif /* GXLayerUnitTest_hpp */
| 14.8 | 64 | 0.699324 | manu88 |
4c36b0fc84fa3d97c04c8876df4c6efeeca7d707 | 778 | hpp | C++ | src/include/test.hpp | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | src/include/test.hpp | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | src/include/test.hpp | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "matcher.hpp"
#include "number.hpp"
#include "util.hpp"
class Test
{
public:
Test()
{
}
void all();
void semantics();
void memory();
void knownPrograms();
void ackermann();
void collatz();
void optimizer();
void minimizer( size_t tests );
void linearMatcher();
... | 14.679245 | 74 | 0.66581 | jmorken |
4c37668fa6285fc04d5579aefcf602994cb4bd4a | 436 | hh | C++ | RAVL2/Image/VideoIO/ImgIOSeq.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/Image/VideoIO/ImgIOSeq.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/Image/VideoIO/ImgIOSeq.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | #ifndef IMGIOSEQ_HEADER
#define IMGIOSEQ_HEADER 1
////////////////////////////////////////////////////
//! rcsid="$Id: ImgIOSeq.hh 40 2001-04-23 16:17:51Z craftit $"
#include "amma/DP/SPort.hh"
#include "amma/DP/FileSeq.hh"
template<class DataT>
class DPImageSeqBodyC
: public DPFileSequenceBodyC
{
public:
DPImag... | 19.818182 | 62 | 0.644495 | isuhao |
4c392489a357dfbf7e556482c2d7587cff3b2500 | 1,234 | cpp | C++ | LeetCode/Two Sum.cpp | zombiecry/AlgorithmPractice | f42933883bd62a86aeef9740356f5010c6c9bebf | [
"MIT"
] | null | null | null | LeetCode/Two Sum.cpp | zombiecry/AlgorithmPractice | f42933883bd62a86aeef9740356f5010c6c9bebf | [
"MIT"
] | null | null | null | LeetCode/Two Sum.cpp | zombiecry/AlgorithmPractice | f42933883bd62a86aeef9740356f5010c6c9bebf | [
"MIT"
] | null | null | null | #include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include<queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstd... | 20.566667 | 72 | 0.63128 | zombiecry |
4c3b61e71a416bfee0e5928fc07a0ba75743b085 | 1,069 | cc | C++ | python/jittor/src/mem/allocator/cuda_dual_allocator.cc | Jittor/Jittor | bc945bae94bded917214b0afe12be6bf5b919dbe | [
"Apache-2.0"
] | 4 | 2020-01-12T13:16:16.000Z | 2020-01-12T15:43:54.000Z | python/jittor/src/mem/allocator/cuda_dual_allocator.cc | Jittor/Jittor | bc945bae94bded917214b0afe12be6bf5b919dbe | [
"Apache-2.0"
] | null | null | null | python/jittor/src/mem/allocator/cuda_dual_allocator.cc | Jittor/Jittor | bc945bae94bded917214b0afe12be6bf5b919dbe | [
"Apache-2.0"
] | 1 | 2020-01-12T13:17:17.000Z | 2020-01-12T13:17:17.000Z | // ***************************************************************
// Copyright (c) 2022 Jittor. All Rights Reserved.
// Maintainers: Dun Liang <randonlang@gmail.com>.
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
// ******************... | 27.410256 | 77 | 0.683817 | Jittor |
4c3bbd86701e97d67153d36ab7eecd7d3aa5868a | 1,264 | hpp | C++ | gamess/libqc/src/iterator/range.hpp | andremirt/v_cond | 6b5c364d7cd4243686488b2bd4318be3927e07ea | [
"Unlicense"
] | null | null | null | gamess/libqc/src/iterator/range.hpp | andremirt/v_cond | 6b5c364d7cd4243686488b2bd4318be3927e07ea | [
"Unlicense"
] | null | null | null | gamess/libqc/src/iterator/range.hpp | andremirt/v_cond | 6b5c364d7cd4243686488b2bd4318be3927e07ea | [
"Unlicense"
] | null | null | null | #ifndef _ITERATOR_RANGE_HPP_
#define _ITERATOR_RANGE_HPP_
#include <boost/range/iterator_range.hpp>
#include <boost/iterator/counting_iterator.hpp>
#include <cassert>
#include "iterator/increment.hpp"
namespace iterator {
template <typename T>
boost::iterator_range<increment_iterator<T> > range(T from, T to... | 30.829268 | 88 | 0.716772 | andremirt |
4c3d92eacb1af94282bc230c93323753495e4673 | 671 | cpp | C++ | LeetCode/198_house_robber/rob.cpp | harveyc95/ProgrammingProblems | d81dc58de0347fa155f5e25f27d3d426ce13cdc6 | [
"MIT"
] | null | null | null | LeetCode/198_house_robber/rob.cpp | harveyc95/ProgrammingProblems | d81dc58de0347fa155f5e25f27d3d426ce13cdc6 | [
"MIT"
] | null | null | null | LeetCode/198_house_robber/rob.cpp | harveyc95/ProgrammingProblems | d81dc58de0347fa155f5e25f27d3d426ce13cdc6 | [
"MIT"
] | null | null | null | class Solution {
public:
int rob(vector<int>& nums) {
if (nums.size() == 0) return 0;
if (nums.size() == 1) return nums[0];
std::vector<int> dp (nums.size(), 0);
dp[0] = nums[0];
dp[1] = nums[1];
if (nums.size() == 2) return max(dp[0], dp[1]);
int maxMon... | 33.55 | 66 | 0.491803 | harveyc95 |
4c4399c800b06c07a1546a72d4b36295a8f78ac9 | 2,895 | cc | C++ | components/service/ucloud/imm/src/model/ListImageJobsResult.cc | wanguojian/AliOS-Things | 47fce29d4dd39d124f0bfead27998ad7beea8441 | [
"Apache-2.0"
] | 1 | 2021-04-09T03:18:41.000Z | 2021-04-09T03:18:41.000Z | components/service/ucloud/imm/src/model/ListImageJobsResult.cc | wanguojian/AliOS-Things | 47fce29d4dd39d124f0bfead27998ad7beea8441 | [
"Apache-2.0"
] | null | null | null | components/service/ucloud/imm/src/model/ListImageJobsResult.cc | wanguojian/AliOS-Things | 47fce29d4dd39d124f0bfead27998ad7beea8441 | [
"Apache-2.0"
] | 1 | 2021-06-20T06:43:12.000Z | 2021-06-20T06:43:12.000Z | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 34.058824 | 80 | 0.748877 | wanguojian |
4c48ce428d67d135060b987cb097f2a7e4f0bf96 | 3,786 | cpp | C++ | tests/sort_strings_example.cpp | kurpicz/tlx | a9a8a76c40a734b1f771d6eba482ba7166f1f6b4 | [
"BSL-1.0"
] | 284 | 2017-02-26T08:49:15.000Z | 2022-03-30T21:55:37.000Z | tests/sort_strings_example.cpp | xiao2mo/tlx | b311126e670753897c1defceeaa75c83d2d9531a | [
"BSL-1.0"
] | 24 | 2017-09-05T21:02:41.000Z | 2022-03-07T10:09:59.000Z | tests/sort_strings_example.cpp | xiao2mo/tlx | b311126e670753897c1defceeaa75c83d2d9531a | [
"BSL-1.0"
] | 62 | 2017-02-23T12:29:27.000Z | 2022-03-31T07:45:59.000Z | /*******************************************************************************
* tests/sort_strings_example.cpp
*
* Part of tlx - http://panthema.net/tlx
*
* Copyright (C) 2020 Timo Bingmann <tb@panthema.net>
*
* All rights reserved. Published under the Boost Software License, Version 1.0
********************... | 28.900763 | 80 | 0.51215 | kurpicz |
4c48f3a0894321dcd250130dd421e2c59419090d | 128 | hpp | C++ | Vendor/GLM/glm/ext/vector_uint4.hpp | wdrDarx/DEngine3 | 27e2de3b56b6d4c8705e8a0e36f5911d8651caa2 | [
"MIT"
] | 2 | 2022-01-11T21:15:31.000Z | 2022-02-22T21:14:33.000Z | Vendor/GLM/glm/ext/vector_uint4.hpp | wdrDarx/DEngine3 | 27e2de3b56b6d4c8705e8a0e36f5911d8651caa2 | [
"MIT"
] | null | null | null | Vendor/GLM/glm/ext/vector_uint4.hpp | wdrDarx/DEngine3 | 27e2de3b56b6d4c8705e8a0e36f5911d8651caa2 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:1afbf32485cf310fb8abd8f9610be2c7fef1fd71a5c4495cad4b942c74832b16
size 417
| 32 | 75 | 0.882813 | wdrDarx |
4c4be30e3878443d9effb9a9e22ae0838d6e87d2 | 2,439 | hpp | C++ | src/mfx/dsp/shape/DistBounce.hpp | mikelange49/pedalevite | a81bd8a6119c5920995ec91b9f70e11e9379580e | [
"WTFPL"
] | null | null | null | src/mfx/dsp/shape/DistBounce.hpp | mikelange49/pedalevite | a81bd8a6119c5920995ec91b9f70e11e9379580e | [
"WTFPL"
] | null | null | null | src/mfx/dsp/shape/DistBounce.hpp | mikelange49/pedalevite | a81bd8a6119c5920995ec91b9f70e11e9379580e | [
"WTFPL"
] | null | null | null | /*****************************************************************************
DistBounce.hpp
Author: Laurent de Soras, 2018
--- Legal stuff ---
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the ... | 21.584071 | 78 | 0.563346 | mikelange49 |
4c4dd326cea35f8946374b9ff8fe82f898b94b49 | 306 | cpp | C++ | Online Judges/A2OJ/1500-1599 Ladder/478CTableDecorations.cpp | NelsonGomesNeto/ProgramC | e743b1b869f58f7f3022d18bac00c5e0b078562e | [
"MIT"
] | 3 | 2018-12-18T13:39:42.000Z | 2021-06-23T18:05:18.000Z | Online Judges/A2OJ/1500-1599 Ladder/478CTableDecorations.cpp | NelsonGomesNeto/ProgramC | e743b1b869f58f7f3022d18bac00c5e0b078562e | [
"MIT"
] | 1 | 2018-11-02T21:32:40.000Z | 2018-11-02T22:47:12.000Z | Online Judges/A2OJ/1500-1599 Ladder/478CTableDecorations.cpp | NelsonGomesNeto/ProgramC | e743b1b869f58f7f3022d18bac00c5e0b078562e | [
"MIT"
] | 6 | 2018-10-27T14:07:52.000Z | 2019-11-14T13:49:29.000Z | #include <bits/stdc++.h>
#define lli long long int
using namespace std;
lli ballons[3];
int main()
{
scanf("%lld %lld %lld", &ballons[0], &ballons[1], &ballons[2]);
sort(ballons, ballons+3);
printf("%lld\n", min((ballons[0] + ballons[1] + ballons[2]) / 3, ballons[0] + ballons[1]));
return(0);
} | 21.857143 | 93 | 0.617647 | NelsonGomesNeto |
4c4e40ce08975637d53728fd46ea9109fa9fd8b6 | 481 | hpp | C++ | src/autaxx/search/mcts/mcts.hpp | kz04px/autaxx | 40393053ab1e6d96ba2d5825219ee139a962b48d | [
"MIT"
] | 3 | 2020-05-06T02:03:35.000Z | 2021-11-23T00:08:51.000Z | src/autaxx/search/mcts/mcts.hpp | kz04px/autaxx | 40393053ab1e6d96ba2d5825219ee139a962b48d | [
"MIT"
] | 1 | 2021-01-09T10:41:53.000Z | 2021-01-10T20:43:51.000Z | src/autaxx/search/mcts/mcts.hpp | kz04px/autaxx | 40393053ab1e6d96ba2d5825219ee139a962b48d | [
"MIT"
] | null | null | null | #ifndef SEARCH_MCTS_HPP
#define SEARCH_MCTS_HPP
#include <libataxx/position.hpp>
#include "../search.hpp"
namespace search::mcts {
class MCTS : public Search {
public:
void go(const libataxx::Position pos, const Settings &settings) override {
stop();
search_thread_ = std::thread(&MCTS::root, t... | 20.913043 | 79 | 0.68815 | kz04px |
4c53e89752572fe348dd8a7fdc646518d5d98b48 | 12,660 | cc | C++ | src/Utilities/iterateIdealH.cc | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/Utilities/iterateIdealH.cc | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/Utilities/iterateIdealH.cc | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | //------------------------------------------------------------------------------
// Iterate the ideal H algorithm to converge on a new H field.
// This routine replaces the H field in place.
//------------------------------------------------------------------------------
#include "iterateIdealH.hh"
#include "Field/Fiel... | 37.455621 | 105 | 0.584834 | jmikeowen |
4c5707c14fa320d7b997f11c6df0b19a42788ebe | 3,696 | cpp | C++ | src/nbl/video/IPhysicalDevice.cpp | deprilula28/Nabla | 6b5de216221718191713dcf6de8ed6407182ddf0 | [
"Apache-2.0"
] | null | null | null | src/nbl/video/IPhysicalDevice.cpp | deprilula28/Nabla | 6b5de216221718191713dcf6de8ed6407182ddf0 | [
"Apache-2.0"
] | null | null | null | src/nbl/video/IPhysicalDevice.cpp | deprilula28/Nabla | 6b5de216221718191713dcf6de8ed6407182ddf0 | [
"Apache-2.0"
] | null | null | null | #include "nbl/video/IPhysicalDevice.h"
namespace nbl::video
{
IPhysicalDevice::IPhysicalDevice(core::smart_refctd_ptr<system::ISystem>&& s, core::smart_refctd_ptr<asset::IGLSLCompiler>&& glslc) :
m_system(std::move(s)), m_GLSLCompiler(std::move(glslc))
{
}
void IPhysicalDevice::addCommonGLSLDefines(std::ostrings... | 42.976744 | 137 | 0.761093 | deprilula28 |
4c586bbb63dbe59906ec2df3117c23c85a6c9fc1 | 6,077 | hpp | C++ | src/core/pin_mesh_base.hpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 11 | 2016-03-31T17:46:15.000Z | 2022-02-14T01:07:56.000Z | src/core/pin_mesh_base.hpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 3 | 2016-04-04T16:40:47.000Z | 2019-10-16T22:22:54.000Z | src/core/pin_mesh_base.hpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 3 | 2019-10-16T22:20:15.000Z | 2019-11-28T11:59:03.000Z | /*
Copyright 2016 Mitchell Young
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 ... | 30.084158 | 80 | 0.648017 | tp-ntouran |
4c59823db506f58dc5c26ae1e30735dfe84a6096 | 3,975 | cpp | C++ | package/src/memmon.cpp | chrisburr/prmon | 27dac8e979571811fc875edc8dd6072ab4e00880 | [
"Apache-2.0"
] | null | null | null | package/src/memmon.cpp | chrisburr/prmon | 27dac8e979571811fc875edc8dd6072ab4e00880 | [
"Apache-2.0"
] | null | null | null | package/src/memmon.cpp | chrisburr/prmon | 27dac8e979571811fc875edc8dd6072ab4e00880 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018-2020 CERN
// License Apache2 - see LICENCE file
#include "memmon.h"
#include <string.h>
#include <unistd.h>
#include <fstream>
#include <iostream>
#include <limits>
#include <regex>
#include <sstream>
#include "utils.h"
// Constructor; uses RAII pattern to be valid
// after construction
memmo... | 29.887218 | 80 | 0.633962 | chrisburr |
4c61eb3fc7ad06b5159b7ffb6a1d040791b07154 | 604 | cpp | C++ | HDU/5443.cpp | Superdanby/YEE | 49a6349dc5644579246623b480777afbf8031fcd | [
"MIT"
] | 1 | 2019-09-07T15:56:05.000Z | 2019-09-07T15:56:05.000Z | HDU/5443.cpp | Superdanby/YEE | 49a6349dc5644579246623b480777afbf8031fcd | [
"MIT"
] | null | null | null | HDU/5443.cpp | Superdanby/YEE | 49a6349dc5644579246623b480777afbf8031fcd | [
"MIT"
] | null | null | null | //httpacm.hdu.edu.cnshowproblem.phppid=5443
#include <iostream>
using namespace std;
int cases, water, query;
int main()
{
scanf("%d", &cases);
while(cases--)
{
scanf("%d", &water);
int W[water];
for(int x=0; x<water; x++)
scanf("%d", &W[x]);
scanf("%d", &query)... | 20.827586 | 43 | 0.440397 | Superdanby |
4c6412b497606b2ef8f4b66092e7ae1d9fb47cca | 2,339 | cc | C++ | src/arch/beos/cbm5x0ui.cc | swingflip/C64_mini_VICE | 7a6d9d41ae60409a2bb985bb8d6324a7269a0daa | [
"Apache-2.0"
] | 2 | 2018-11-15T19:52:34.000Z | 2022-01-17T19:45:01.000Z | src/arch/beos/cbm5x0ui.cc | Classicmods/C64_mini_VICE | 7a6d9d41ae60409a2bb985bb8d6324a7269a0daa | [
"Apache-2.0"
] | null | null | null | src/arch/beos/cbm5x0ui.cc | Classicmods/C64_mini_VICE | 7a6d9d41ae60409a2bb985bb8d6324a7269a0daa | [
"Apache-2.0"
] | 3 | 2019-06-30T05:37:04.000Z | 2021-12-04T17:12:35.000Z | /*
* cbm5x0ui.cc - CBM5x0-specific user interface.
*
* Written by
* Marcus Sutton <loggedoubt@gmail.com>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the G... | 26.280899 | 72 | 0.690038 | swingflip |
4c67f34c3e043166b5e24fdf32c7d6cdd3292220 | 978 | cpp | C++ | ZF/ZFCore/zfsrc/ZFCore/ZFObjectDef/ZFTypeId_CoreType_float.cpp | ZFFrameworkDist/ZFFramework | 6b498e7b95ee6d6aaa28d8369eef8c2ff94daaf7 | [
"MIT"
] | 57 | 2016-06-12T11:05:55.000Z | 2021-05-22T13:12:17.000Z | ZF/ZFCore/zfsrc/ZFCore/ZFObjectDef/ZFTypeId_CoreType_float.cpp | ZFFrameworkDist/ZFFramework | 6b498e7b95ee6d6aaa28d8369eef8c2ff94daaf7 | [
"MIT"
] | null | null | null | ZF/ZFCore/zfsrc/ZFCore/ZFObjectDef/ZFTypeId_CoreType_float.cpp | ZFFrameworkDist/ZFFramework | 6b498e7b95ee6d6aaa28d8369eef8c2ff94daaf7 | [
"MIT"
] | 20 | 2016-05-26T04:47:37.000Z | 2020-12-13T01:39:39.000Z | #include "ZFTypeId_CoreType.h"
#include "ZFObjectImpl.h"
#include "ZFSerializableDataSerializableConverter.h"
ZF_NAMESPACE_GLOBAL_BEGIN
// ============================================================
// utils
#define _ZFP_ZFTYPEID_DEFINE_float(TypeName, Type) \
ZFTYPEID_DEFINE_BY_STRING_CONVERTER(TypeName, Type, ... | 32.6 | 63 | 0.5818 | ZFFrameworkDist |
4c6bea12759255848c3d87615522d087bb847ad7 | 11,251 | hpp | C++ | contrib/TAMM/src/tamm/eigen_utils.hpp | smferdous1/gfcc | e7112c0dd60566266728e4d51ea8d30aea4b775d | [
"MIT"
] | 4 | 2020-10-14T17:43:00.000Z | 2021-06-21T08:23:01.000Z | contrib/TAMM/src/tamm/eigen_utils.hpp | smferdous1/gfcc | e7112c0dd60566266728e4d51ea8d30aea4b775d | [
"MIT"
] | 3 | 2020-06-03T19:54:30.000Z | 2022-03-10T22:59:30.000Z | contrib/TAMM/src/tamm/eigen_utils.hpp | smferdous1/gfcc | e7112c0dd60566266728e4d51ea8d30aea4b775d | [
"MIT"
] | 6 | 2020-06-08T03:54:16.000Z | 2022-03-02T17:47:51.000Z | #ifndef TAMM_EIGEN_UTILS_HPP_
#define TAMM_EIGEN_UTILS_HPP_
// Eigen matrix algebra library
#include "tamm/tamm.hpp"
#include <Eigen/Dense>
#include <unsupported/Eigen/CXX11/Tensor>
#undef I
using EigenTensorType=double;
using Matrix = Eigen::Matrix<EigenTensorType, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor>;... | 35.71746 | 128 | 0.607413 | smferdous1 |
4c705d4909c13e6b1fad2a89085c029747a42d7c | 11,419 | cc | C++ | quadris/grid.cc | kevinli9094/my_projects | fe38528e0cf3cebf1aba73fb69bca66a9c4d4ed7 | [
"MIT"
] | null | null | null | quadris/grid.cc | kevinli9094/my_projects | fe38528e0cf3cebf1aba73fb69bca66a9c4d4ed7 | [
"MIT"
] | null | null | null | quadris/grid.cc | kevinli9094/my_projects | fe38528e0cf3cebf1aba73fb69bca66a9c4d4ed7 | [
"MIT"
] | null | null | null | #include "grid.h"
#include "cell.h"
#include "textdisplay.h"
#include "block.h"
#include <iostream>
#include <string>
#include <sstream>
#include "window.h"
using namespace std;
Grid::Grid() : score(0), highscore(0), currentLevel(0){
W.fillRectangle(452, 0, 2, 814, Xwindow::Black);
W.drawString(470, 10, "Next:", ... | 28.334988 | 118 | 0.523163 | kevinli9094 |
4c71d8f6475c29e56ba7811deaad7ae3556f5256 | 5,562 | cpp | C++ | main/solver/Solver.cpp | JLUCPGROUP/csptest | 0475c631a48511dd35e63397a74cbdf1388cf495 | [
"MIT"
] | null | null | null | main/solver/Solver.cpp | JLUCPGROUP/csptest | 0475c631a48511dd35e63397a74cbdf1388cf495 | [
"MIT"
] | null | null | null | main/solver/Solver.cpp | JLUCPGROUP/csptest | 0475c631a48511dd35e63397a74cbdf1388cf495 | [
"MIT"
] | null | null | null | #include "Solver.h"
namespace cudacp {
VarEvt::VarEvt(Network* m) :
size_(m->vars.size()),
cur_size_(0) {
vars = m->vars;
}
IntVar* VarEvt::operator[](const int i) const {
return vars[i];
}
int VarEvt::size() const {
return cur_size_;
}
IntVar* VarEvt::at(const int i) const {
return vars[i];
}
void VarEvt::... | 23.871245 | 83 | 0.634304 | JLUCPGROUP |
4c72a3bc63829c57f6812d99dc1fd8563948190e | 485 | hpp | C++ | plugins/opengl/include/sge/opengl/vf/color_formats.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/opengl/include/sge/opengl/vf/color_formats.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/opengl/include/sge/opengl/vf/color_formats.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_OPENGL_VF_COLOR_FORMATS_HPP_INCLUDED
#define SGE_OPENGL_VF_COLOR_FORMATS_HPP_INCLUDED
... | 25.526316 | 64 | 0.756701 | cpreh |
dbc76dbf57ea7b32e76bafbe2abf52a298a70c8c | 49,013 | cpp | C++ | src/DakotaInterface.cpp | jnnccc/Dakota-orb | 96488e723be9c67f0f85be8162b7af52c312b770 | [
"MIT"
] | null | null | null | src/DakotaInterface.cpp | jnnccc/Dakota-orb | 96488e723be9c67f0f85be8162b7af52c312b770 | [
"MIT"
] | null | null | null | src/DakotaInterface.cpp | jnnccc/Dakota-orb | 96488e723be9c67f0f85be8162b7af52c312b770 | [
"MIT"
] | null | null | null | /* _______________________________________________________________________
DAKOTA: Design Analysis Kit for Optimization and Terascale Applications
Copyright 2014 Sandia Corporation.
This software is distributed under the GNU Lesser General Public License.
For more information, see the README file in t... | 33.593557 | 81 | 0.706139 | jnnccc |
dbc96ef5cb52031d3609435909e9480440bb0cd3 | 4,465 | cc | C++ | src/PhysicsListMessenger.cc | phirippu/instrument-simulation | 0a7cec84d8945a6f11e0ddca00f1e8fc0d32d7f8 | [
"CC-BY-4.0"
] | null | null | null | src/PhysicsListMessenger.cc | phirippu/instrument-simulation | 0a7cec84d8945a6f11e0ddca00f1e8fc0d32d7f8 | [
"CC-BY-4.0"
] | null | null | null | src/PhysicsListMessenger.cc | phirippu/instrument-simulation | 0a7cec84d8945a6f11e0ddca00f1e8fc0d32d7f8 | [
"CC-BY-4.0"
] | 1 | 2021-03-08T16:01:14.000Z | 2021-03-08T16:01:14.000Z | //
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration... | 39.166667 | 103 | 0.542889 | phirippu |
dbcf9fe3ceb5d9de21cb26fedab6a6036cac3475 | 4,247 | cpp | C++ | mytunesmodel.cpp | Liz-Davies/2404 | a0d9e9c27286eccc9a086290ea223b41edabe248 | [
"FSFAP"
] | null | null | null | mytunesmodel.cpp | Liz-Davies/2404 | a0d9e9c27286eccc9a086290ea223b41edabe248 | [
"FSFAP"
] | null | null | null | mytunesmodel.cpp | Liz-Davies/2404 | a0d9e9c27286eccc9a086290ea223b41edabe248 | [
"FSFAP"
] | null | null | null | /* * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* Program: MyTunes Music Player */
/* Author: Louis Nel */
/* Sarah Davies - 100828244 */
/* Mike Sayegh - 101029473 */
/* Date: 21-SEP-2017 ... | 33.179688 | 99 | 0.597598 | Liz-Davies |
dbd396b0cf7ed94ed6ebcd2d8bff470bfb0937cf | 35,218 | cpp | C++ | test/blocks/electron/testcases_electron.cpp | awietek/hydra | 724a101500e308e91186a5cd6c5c520d8b343a6c | [
"Apache-2.0"
] | null | null | null | test/blocks/electron/testcases_electron.cpp | awietek/hydra | 724a101500e308e91186a5cd6c5c520d8b343a6c | [
"Apache-2.0"
] | null | null | null | test/blocks/electron/testcases_electron.cpp | awietek/hydra | 724a101500e308e91186a5cd6c5c520d8b343a6c | [
"Apache-2.0"
] | null | null | null | #include "testcases_electron.h"
namespace hydra::testcases::electron {
std::tuple<BondList, Couplings> get_linear_chain(int n_sites, double t,
double U) {
// Create model
BondList bondlist;
for (int s = 0; s < n_sites; ++s)
bondlist << Bond("HOP", "T", {s, (s... | 43.586634 | 80 | 0.502158 | awietek |
dbd84cee98d96317013f0b48af09dc5f80eebf15 | 2,745 | hpp | C++ | RobWorkStudio/src/rwslibs/planning/Planning.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | 1 | 2021-12-29T14:16:27.000Z | 2021-12-29T14:16:27.000Z | RobWorkStudio/src/rwslibs/planning/Planning.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | RobWorkStudio/src/rwslibs/planning/Planning.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | /********************************************************************************
* Copyright 2009 The Robotics Group, The Maersk Mc-Kinney Moller Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... | 27.45 | 91 | 0.657195 | ZLW07 |
dbdb9256aa2526eec206e98330cdfafd568fbafd | 32,093 | cpp | C++ | src/Person.cpp | MasterMenOfficial/CSPSP-Client | d8ab8cc52543ca4cb136aab98c10d3efb61f8ebe | [
"BSD-3-Clause"
] | 3 | 2021-01-20T08:57:23.000Z | 2021-11-21T02:10:13.000Z | src/Person.cpp | MasterMenSilver/PSP-CSPSP-Client | d8ab8cc52543ca4cb136aab98c10d3efb61f8ebe | [
"BSD-3-Clause"
] | 1 | 2018-06-26T00:02:20.000Z | 2020-10-20T21:07:54.000Z | src/Person.cpp | MasterMenOfficial/CSPSP-1.92-rev9.0-Source-Code | d8ab8cc52543ca4cb136aab98c10d3efb61f8ebe | [
"BSD-3-Clause"
] | null | null | null |
#include "Person.h"
#include "Globals.h"
JRenderer* Person::mRenderer = NULL;
JSoundSystem* Person::mSoundSystem = NULL;
//------------------------------------------------------------------------------------------------
Person::Person(JQuad* quads[], JQuad* deadquad, std::vector<Bullet*>* bullets, std::vector<GunObje... | 25.756822 | 156 | 0.601034 | MasterMenOfficial |
dbdd4b085673934075be9f66452d9e3bcdda2ad9 | 1,514 | cpp | C++ | src/main/cpp/states/turret/ManualAim.cpp | Team302/2020InfiiniteRechargeImportedInto2021 | cfdbcc78e3a83e57cb8a0acc894609a94ab57193 | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/states/turret/ManualAim.cpp | Team302/2020InfiiniteRechargeImportedInto2021 | cfdbcc78e3a83e57cb8a0acc894609a94ab57193 | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/states/turret/ManualAim.cpp | Team302/2020InfiiniteRechargeImportedInto2021 | cfdbcc78e3a83e57cb8a0acc894609a94ab57193 | [
"BSD-3-Clause"
] | null | null | null | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 34.409091 | 116 | 0.598415 | Team302 |
dbdd6d99ee992b4585d632517f4f5fd627ded9f8 | 1,187 | cpp | C++ | oled/main.cpp | FaizalSupriadi/IPASS | a5543f5b6ddd5da799148f09d7e59ec14f2b14fa | [
"BSL-1.0"
] | null | null | null | oled/main.cpp | FaizalSupriadi/IPASS | a5543f5b6ddd5da799148f09d7e59ec14f2b14fa | [
"BSL-1.0"
] | null | null | null | oled/main.cpp | FaizalSupriadi/IPASS | a5543f5b6ddd5da799148f09d7e59ec14f2b14fa | [
"BSL-1.0"
] | null | null | null | #include "oled.hpp"
#include "ball.hpp"
#include <array>
int main( void ){
namespace target = hwlib::target;
auto scl = target::pin_oc( target::pins::scl );
auto sda = target::pin_oc( target::pins::sda );
auto i2c_bus = hwlib::i2c_bus_bit_banged_scl_sda( scl,sda );
auto display = oled( i2c_bu... | 26.377778 | 74 | 0.528222 | FaizalSupriadi |
dbe03d19ea3fb4556459dcbde7ba94c8739445a5 | 1,895 | cpp | C++ | main.cpp | nks5117/MyCalc | f2fa2b344da94065239cbd09ca85b1c25f00290d | [
"MIT"
] | null | null | null | main.cpp | nks5117/MyCalc | f2fa2b344da94065239cbd09ca85b1c25f00290d | [
"MIT"
] | null | null | null | main.cpp | nks5117/MyCalc | f2fa2b344da94065239cbd09ca85b1c25f00290d | [
"MIT"
] | null | null | null | // main.cpp
// Copyright (c) 2018 Ni Kesu. All rights reserved.
#include <iostream>
#include <string>
#include <vector>
#include <ctime>
#include "bigint.h"
#include "token.h"
#include "expression.h"
#include "variable.h"
#ifdef TIME
#include <ctime>
#endif
using std::cin;
using std::cout;
using ... | 21.055556 | 79 | 0.553562 | nks5117 |
dbe457c9850da84925d57176ca89b390a9d32715 | 376 | cpp | C++ | dp/longest-increasing-subsequence.cpp | beet-aizu/library-2 | 51579421d2c695ae298eed3943ca90f5224f768a | [
"Unlicense"
] | null | null | null | dp/longest-increasing-subsequence.cpp | beet-aizu/library-2 | 51579421d2c695ae298eed3943ca90f5224f768a | [
"Unlicense"
] | null | null | null | dp/longest-increasing-subsequence.cpp | beet-aizu/library-2 | 51579421d2c695ae298eed3943ca90f5224f768a | [
"Unlicense"
] | 1 | 2020-10-14T20:51:44.000Z | 2020-10-14T20:51:44.000Z | template< typename T >
size_t longest_increasing_subsequence(const vector< T > &a, bool strict) {
vector< T > lis;
for(auto &p : a) {
typename vector< T >::iterator it;
if(strict) it = lower_bound(begin(lis), end(lis), p);
else it = upper_bound(begin(lis), end(lis), p);
if(end(lis) == it) lis.emplac... | 28.923077 | 74 | 0.62234 | beet-aizu |
dbe77bfa29b3acaa6bab9cfc57dfee288b284139 | 6,127 | cpp | C++ | src/services/pcn-nat/src/RuleDnatEntry.cpp | mbertrone/polycube | b35a6aa13273c000237d53c5f1bf286f12e4b9bd | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-07-16T04:49:29.000Z | 2020-07-16T04:49:29.000Z | src/services/pcn-nat/src/RuleDnatEntry.cpp | mbertrone/polycube | b35a6aa13273c000237d53c5f1bf286f12e4b9bd | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/services/pcn-nat/src/RuleDnatEntry.cpp | mbertrone/polycube | b35a6aa13273c000237d53c5f1bf286f12e4b9bd | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright 2018 The Polycube Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 30.944444 | 80 | 0.681573 | mbertrone |
dbebb4e9cbedf7bafba78905508e2ea789ac01fb | 1,418 | cpp | C++ | lib/colortwist_ipp.cpp | ptahmose/colortwist | 6234d952d2550ad8d4f1fdd89f351d06fcdc78db | [
"BSD-2-Clause"
] | null | null | null | lib/colortwist_ipp.cpp | ptahmose/colortwist | 6234d952d2550ad8d4f1fdd89f351d06fcdc78db | [
"BSD-2-Clause"
] | 1 | 2020-10-25T19:53:38.000Z | 2020-10-25T19:53:38.000Z | lib/colortwist_ipp.cpp | ptahmose/colortwist | 6234d952d2550ad8d4f1fdd89f351d06fcdc78db | [
"BSD-2-Clause"
] | null | null | null | #include "colortwist.h"
#include "colortwist_config.h"
#if COLORTWISTLIB_HASIPP
#include "utils.h"
#include <ipp.h>
using namespace colortwist;
StatusCode colorTwistRGB48_IPP(const void* pSrc, std::uint32_t width, std::uint32_t height, int strideSrc, void* pDst, std::int32_t strideDst, const float* twistMatrix)
{
... | 39.388889 | 177 | 0.723554 | ptahmose |
dbed25ed91935f7368b91c880e51a28ea3ba8fba | 6,823 | cpp | C++ | modules/tracktion_engine/model/edit/tracktion_PitchSequence.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | null | null | null | modules/tracktion_engine/model/edit/tracktion_PitchSequence.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | null | null | null | modules/tracktion_engine/model/edit/tracktion_PitchSequence.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | null | null | null | /*
,--. ,--. ,--. ,--.
,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018
'-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
| | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
`---' `--' `... | 27.623482 | 120 | 0.5757 | jbloit |
dbf0eced071dc9d3cb472b01f0c0649e75d58148 | 2,709 | cpp | C++ | Source/Ui/TreeItems/OnexTreeZlibItem.cpp | Pumbaa98/OnexExplorer | eaee2aa9f0e71b9960da586f425f79e628013021 | [
"BSL-1.0"
] | 14 | 2019-06-19T18:49:55.000Z | 2020-05-30T12:09:12.000Z | Source/Ui/TreeItems/OnexTreeZlibItem.cpp | Pumbaa98/OnexExplorer | eaee2aa9f0e71b9960da586f425f79e628013021 | [
"BSL-1.0"
] | 34 | 2019-06-21T20:19:11.000Z | 2019-12-10T22:16:54.000Z | Source/Ui/TreeItems/OnexTreeZlibItem.cpp | Pumba98/OnexExplorer | eaee2aa9f0e71b9960da586f425f79e628013021 | [
"BSL-1.0"
] | 3 | 2020-08-30T03:09:12.000Z | 2021-12-26T18:01:20.000Z | #include "OnexTreeZlibItem.h"
#include <QDate>
OnexTreeZlibItem::OnexTreeZlibItem(const QString &name, NosZlibOpener *opener, QByteArray content, int id, int creationDate, bool compressed)
: OnexTreeItem(name, opener, content), id(id), creationDate(creationDate),
compressed(compressed) {
if (crea... | 34.291139 | 141 | 0.647471 | Pumbaa98 |
dbf3ef314931c15334401a0c51b45759e4e63f13 | 458 | hh | C++ | include/Bina_RunAction.hh | fenu-exp/BINA.simulation | 11c32e5abcd117a9d79d550d8d90028a0cc05835 | [
"MIT"
] | null | null | null | include/Bina_RunAction.hh | fenu-exp/BINA.simulation | 11c32e5abcd117a9d79d550d8d90028a0cc05835 | [
"MIT"
] | null | null | null | include/Bina_RunAction.hh | fenu-exp/BINA.simulation | 11c32e5abcd117a9d79d550d8d90028a0cc05835 | [
"MIT"
] | null | null | null | #ifndef Bina_RunAction_h
#define Bina_RunAction_h 1
#include "G4UserRunAction.hh"
#include "globals.hh"
#include "time.h"
#include "g4root.hh"
class G4Run;
class Bina_RunAction : public G4UserRunAction
{
public:
Bina_RunAction(bool);
virtual ~Bina_RunAction();
virtual void BeginOfRunAction(const G4Run*... | 17.615385 | 49 | 0.716157 | fenu-exp |
dbf4b2944c3340d632004a6f1f5d4e84cfd5a1b5 | 2,659 | cpp | C++ | Quanta/Source/Graphics/Imaging/Image32.cpp | thedoctorquantum/Quanta | c952c8ca0832f978ea1fc1aa9e9a840c500977a3 | [
"MIT"
] | null | null | null | Quanta/Source/Graphics/Imaging/Image32.cpp | thedoctorquantum/Quanta | c952c8ca0832f978ea1fc1aa9e9a840c500977a3 | [
"MIT"
] | null | null | null | Quanta/Source/Graphics/Imaging/Image32.cpp | thedoctorquantum/Quanta | c952c8ca0832f978ea1fc1aa9e9a840c500977a3 | [
"MIT"
] | null | null | null | #include <Quanta/Graphics/Imaging/Image32.h>
#include <stb_image.h>
#include "../../Debugging/Validation.h"
namespace Quanta
{
Image32::Image32(const USize width, const USize height)
{
DEBUG_ASSERT(width != 0);
DEBUG_ASSERT(height != 0);
data = new Color32[width * height];
th... | 21.443548 | 102 | 0.547574 | thedoctorquantum |
dbfa995e7c7b58d71b777f59ac46aafc816002a0 | 934 | cpp | C++ | cpp/abc182_c/main.cpp | kokosabu/atcoder | 8d512587d234eb45941a2f6341c4dd003e6c9ad3 | [
"Apache-2.0"
] | null | null | null | cpp/abc182_c/main.cpp | kokosabu/atcoder | 8d512587d234eb45941a2f6341c4dd003e6c9ad3 | [
"Apache-2.0"
] | null | null | null | cpp/abc182_c/main.cpp | kokosabu/atcoder | 8d512587d234eb45941a2f6341c4dd003e6c9ad3 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
int main()
{
string N;
cin >> N;
int max = 0;
for(int i = 0; i < N.size(); i++) {
max += N[i] - '0';
}
if(max%3 == 0) {
cout << 0 << endl;
return 0;
}
int min_count = 20;
for(int i = 1; i < pow(2, N... | 18.68 | 49 | 0.347966 | kokosabu |
dbffda099bb561610ccce893764c56a956320804 | 23,298 | hpp | C++ | src/metadata.hpp | olivia76/cpp-sas7bdat | 1cd22561a13ee3df6bcec0b057f928de2014b81f | [
"Apache-2.0"
] | 4 | 2021-12-23T13:24:03.000Z | 2022-02-24T10:20:12.000Z | src/metadata.hpp | olivia76/cpp-sas7bdat | 1cd22561a13ee3df6bcec0b057f928de2014b81f | [
"Apache-2.0"
] | 6 | 2022-02-23T14:05:53.000Z | 2022-03-17T13:47:46.000Z | src/metadata.hpp | olivia76/cpp-sas7bdat | 1cd22561a13ee3df6bcec0b057f928de2014b81f | [
"Apache-2.0"
] | null | null | null | /**
* \file src/metadata.hpp
*
* \brief Metadata reading
*
* \author Olivia Quinet
*/
#ifndef _CPP_SAS7BDAT_SRC_METADATA_HPP_
#define _CPP_SAS7BDAT_SRC_METADATA_HPP_
#include "formatters.hpp"
#include "page.hpp"
namespace cppsas7bdat {
namespace INTERNAL {
constexpr const std::string_view COLUMN_DATETIME_F... | 44.546845 | 80 | 0.651687 | olivia76 |
e001a967cddba7e6a3bea2882b635095df873de8 | 1,846 | hpp | C++ | include/emr/detail/marked_ptr.hpp | mpoeter/emr | 390ee0c3b92b8ad0adb897177202e1dd2c53a1b7 | [
"MIT"
] | 43 | 2017-12-07T13:28:02.000Z | 2022-03-23T13:51:11.000Z | include/emr/detail/marked_ptr.hpp | mpoeter/emr | 390ee0c3b92b8ad0adb897177202e1dd2c53a1b7 | [
"MIT"
] | 1 | 2019-07-22T17:08:17.000Z | 2019-07-24T04:58:09.000Z | include/emr/detail/marked_ptr.hpp | mpoeter/emr | 390ee0c3b92b8ad0adb897177202e1dd2c53a1b7 | [
"MIT"
] | 2 | 2019-02-26T08:26:53.000Z | 2019-10-17T04:06:16.000Z | #pragma once
#include <cassert>
#include <cstdint>
#include <cstddef>
namespace emr { namespace detail {
template <class T, std::size_t N>
class marked_ptr {
public:
// Construct a marked ptr
marked_ptr(T* p = nullptr, uintptr_t mark = 0) noexcept
{
assert(mark <= MarkMask && ... | 31.827586 | 103 | 0.619177 | mpoeter |
e003393d2a85960394ac9d840a4ba3eff65eaf70 | 10,320 | cpp | C++ | shore/shore-kits/debug-shore.cpp | anshsarkar/TailBench | 25845756aee9a892229c25b681051591c94daafd | [
"MIT"
] | 4 | 2019-01-24T02:00:23.000Z | 2021-03-17T11:56:59.000Z | shore/shore-kits/debug-shore.cpp | anshsarkar/TailBench | 25845756aee9a892229c25b681051591c94daafd | [
"MIT"
] | 1 | 2021-11-25T18:08:22.000Z | 2021-11-25T18:08:22.000Z | shore/shore-kits/debug-shore.cpp | anshsarkar/TailBench | 25845756aee9a892229c25b681051591c94daafd | [
"MIT"
] | 4 | 2019-01-22T10:35:55.000Z | 2021-03-17T11:57:23.000Z | #define private public
#define protected public
#include "w_defines.h"
#include "w_base.h"
#include "w_rc.h"
#include "sthread.h"
#include "latch.h"
#include "basics.h"
#include "stid_t.h"
#include "sm_base.h"
#include "sm_int_0.h"
#include "lid_t.h"
#include "sm_s.h"
#include "bf.h"
#include "bf_s.h"
#include "bf_... | 27.52 | 583 | 0.628391 | anshsarkar |
e003be90313c7870a28c28c1b5ce22ea1c04647c | 1,730 | cpp | C++ | Module4/AYonaty_MergeSort/Source.cpp | ariyonaty/ECE3310 | 845d7204c16e84712fab2e25f79c0f16cb1e7c99 | [
"MIT"
] | null | null | null | Module4/AYonaty_MergeSort/Source.cpp | ariyonaty/ECE3310 | 845d7204c16e84712fab2e25f79c0f16cb1e7c99 | [
"MIT"
] | null | null | null | Module4/AYonaty_MergeSort/Source.cpp | ariyonaty/ECE3310 | 845d7204c16e84712fab2e25f79c0f16cb1e7c99 | [
"MIT"
] | 1 | 2021-09-22T04:01:52.000Z | 2021-09-22T04:01:52.000Z | /*
* Ari Yonaty
* ECE3310
* MergeSort
*/
#include <iostream>
#define N 10
void display(double*, int);
void mergeSort(double*, double*, int);
void bubbleSort(double*, int n);
void swap(double* x, double* y);
int main()
{
int x1[N], y1[N], x2[N], y2[N];
double a[N], b[N];
for (int i = 0; i < N; i++)
{
x1[i] = ... | 15.043478 | 52 | 0.500578 | ariyonaty |
e00444a132d9267e92c2dcec29f71e6c7b7a02e3 | 1,401 | cc | C++ | src/cut_tree/greedy_treepacking.cc | math314/cut-tree | 0332ba0907af9a900e8c0c29c51a66428d9bed4b | [
"MIT"
] | 11 | 2016-09-27T06:49:44.000Z | 2021-11-17T01:12:23.000Z | iwiwi/src/agl/cut_tree/greedy_treepacking.cc | imos/icfpc2017 | d50c76b1f44e9289a92f564f319750049d952a5d | [
"MIT"
] | null | null | null | iwiwi/src/agl/cut_tree/greedy_treepacking.cc | imos/icfpc2017 | d50c76b1f44e9289a92f564f319750049d952a5d | [
"MIT"
] | 2 | 2016-10-01T16:32:44.000Z | 2018-10-10T13:41:55.000Z | #include "greedy_treepacking.h"
DEFINE_int32(cut_tree_gtp_dfs_edge_max, 1000000000, "greedy tree packing breadth limit");
using namespace std;
namespace agl {
void greedy_treepacking::dfs(int v) {
used_revision_[v] = vertices_revision_;
auto& to_edges = edges_[v];
const int rem_edges = min(to_edges.size(), FLA... | 28.02 | 89 | 0.638116 | math314 |
e0074d5e13c7c6e6017b47a8ff8e2a7a4efd3403 | 1,756 | cpp | C++ | server/util/pending_buffer_test.cpp | RickAi/csci5570 | 2814c0a6bf608c73bf81d015d13e63443470e457 | [
"Apache-2.0"
] | 7 | 2019-04-09T16:25:49.000Z | 2021-12-07T10:29:52.000Z | server/util/pending_buffer_test.cpp | RickAi/csci5570 | 2814c0a6bf608c73bf81d015d13e63443470e457 | [
"Apache-2.0"
] | null | null | null | server/util/pending_buffer_test.cpp | RickAi/csci5570 | 2814c0a6bf608c73bf81d015d13e63443470e457 | [
"Apache-2.0"
] | 4 | 2019-08-07T07:43:27.000Z | 2021-05-21T07:54:14.000Z | #include "glog/logging.h"
#include "gtest/gtest.h"
#include "server/util/pending_buffer.hpp"
namespace minips {
namespace {
class TestPendingBuffer : public testing::Test {
public:
TestPendingBuffer() {}
~TestPendingBuffer() {}
protected:
void SetUp()... | 27.4375 | 78 | 0.531891 | RickAi |
e009a5ca0f1382ef10a4566cf375f4f5f9300220 | 970 | cpp | C++ | codeforces/354/B/test.cpp | rdragos/work | aed4c9ace3fad6b0c63caadee69de2abde108b40 | [
"MIT"
] | 2 | 2020-05-30T17:11:47.000Z | 2021-09-25T08:16:48.000Z | codeforces/354/B/test.cpp | rdragos/work | aed4c9ace3fad6b0c63caadee69de2abde108b40 | [
"MIT"
] | null | null | null | codeforces/354/B/test.cpp | rdragos/work | aed4c9ace3fad6b0c63caadee69de2abde108b40 | [
"MIT"
] | 1 | 2021-09-24T11:14:27.000Z | 2021-09-24T11:14:27.000Z | #include <cstdio>
#include <algorithm>
#include <fstream>
#include <iostream>
#include <vector>
#include <queue>
#include <map>
#include <cstring>
#include <string>
#include <set>
#include <stack>
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define ll long long
using namespace std;
int... | 19.019608 | 72 | 0.518557 | rdragos |
e00a4486dab6c5fca623b352aa77483c766abc0d | 228 | hpp | C++ | pythran/pythonic/include/string/digits.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/string/digits.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/string/digits.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_INCLUDE_STRING_DIGITS_HPP
#define PYTHONIC_INCLUDE_STRING_DIGITS_HPP
#include "pythonic/types/str.hpp"
namespace pythonic
{
namespace string
{
types::str constexpr digits("0123456789");
}
}
#endif
| 14.25 | 46 | 0.77193 | xmar |
e00caeb79471fbd2811df2c101ec23e660c1ad7f | 1,340 | cpp | C++ | LeetCode practice/Finite state machine/best-time-to-buy-and-sell-stock-iii.cpp | 19hkm/algorithms | 6b4494ca9165e77b9c2672d88e8a89838e8eef8f | [
"MIT"
] | null | null | null | LeetCode practice/Finite state machine/best-time-to-buy-and-sell-stock-iii.cpp | 19hkm/algorithms | 6b4494ca9165e77b9c2672d88e8a89838e8eef8f | [
"MIT"
] | null | null | null | LeetCode practice/Finite state machine/best-time-to-buy-and-sell-stock-iii.cpp | 19hkm/algorithms | 6b4494ca9165e77b9c2672d88e8a89838e8eef8f | [
"MIT"
] | null | null | null | class Solution {
public:
inline void prepLeftSell(vector<int> &prices, vector<vector<int>> &dp){
int n = prices.size(), mini =1e5+1, maxi =0, maxP=0;
for(int i=0; i<n; i++){
if(prices[i]<mini){
mini = prices[i];
maxi = 0;
} else if(prices[... | 27.916667 | 77 | 0.420149 | 19hkm |
e00e5e489184811fd9226712410bf485eca208fd | 410 | hpp | C++ | libs/core/math/include/bksge/core/math/fwd/color_fwd.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/core/math/include/bksge/core/math/fwd/color_fwd.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/core/math/include/bksge/core/math/fwd/color_fwd.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file color_fwd.hpp
*
* @brief Color の前方宣言
*
* @author myoukaku
*/
#ifndef BKSGE_CORE_MATH_FWD_COLOR_FWD_HPP
#define BKSGE_CORE_MATH_FWD_COLOR_FWD_HPP
#include <cstddef>
namespace bksge
{
namespace math
{
template <typename T, std::size_t N>
class Color;
} // namespace math
u... | 13.666667 | 44 | 0.682927 | myoukaku |
e01026b722c20138f6ce9f273ec4ed1d1362477e | 277 | hpp | C++ | lib/state/parser.hpp | julienlopez/Aronda-RL | d93602d2ebab0a099f16d316b488f2d4a6713aaf | [
"MIT"
] | null | null | null | lib/state/parser.hpp | julienlopez/Aronda-RL | d93602d2ebab0a099f16d316b488f2d4a6713aaf | [
"MIT"
] | 1 | 2018-04-04T08:45:24.000Z | 2018-04-04T08:45:24.000Z | lib/state/parser.hpp | julienlopez/Aronda-RL | d93602d2ebab0a099f16d316b488f2d4a6713aaf | [
"MIT"
] | null | null | null | #pragma once
#include "state.hpp"
#include <nlohmann_json/json.hpp>
namespace Aronda::State
{
class Parser
{
public:
static GameState parse(const std::string& json_string);
static Square parseSquare(const nlohmann::json& square, const Player current_player);
};
}
| 15.388889 | 89 | 0.740072 | julienlopez |
e015742e016dd048e33cb43e397a4e076d9951ef | 1,660 | cpp | C++ | src/netpayload/BinaryNetPayloadBase.cpp | andriyadi/PulseOximeterLib | f93ddea3fdc506a9937c410be147d658e5fed62d | [
"MIT"
] | null | null | null | src/netpayload/BinaryNetPayloadBase.cpp | andriyadi/PulseOximeterLib | f93ddea3fdc506a9937c410be147d658e5fed62d | [
"MIT"
] | null | null | null | src/netpayload/BinaryNetPayloadBase.cpp | andriyadi/PulseOximeterLib | f93ddea3fdc506a9937c410be147d658e5fed62d | [
"MIT"
] | null | null | null | //
// Created by Andri Yadi on 1/25/17.
//
#include "BinaryNetPayloadBase.h"
BinaryNetPayloadBase::~BinaryNetPayloadBase() {
}
void BinaryNetPayloadBase::copyTo(uint8_t* buffer, size_t size) const
{
if (size < getSize()) {
// TODO failed sanity check!
return;
}
memcpy(buffer, getBuffer(... | 24.776119 | 115 | 0.66988 | andriyadi |
e0173471a4e1ef325dd7c8aa5de0bf656ba88363 | 5,455 | cpp | C++ | Engine/Source/Editor/DetailCustomizations/Private/PrimitiveComponentDetails.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Source/Editor/DetailCustomizations/Private/PrimitiveComponentDetails.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Source/Editor/DetailCustomizations/Private/PrimitiveComponentDetails.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "PrimitiveComponentDetails.h"
#include "Components/SceneComponent.h"
#include "Components/PrimitiveComponent.h"
#include "DetailLayoutBuilder.h"
#include "IDetailGroup.h"
#include "DetailCategoryBuilder.h"
#include "ObjectEditorUtils.h"
#include "Ed... | 36.858108 | 493 | 0.788818 | windystrife |
e017d3db3377c8f32921357f19817e94a0bfda74 | 2,379 | cxx | C++ | HallA/THaVDCHit.cxx | chandabindu/analyzer | 889be785858769446662ddf9ba250cc9d203bc47 | [
"BSD-3-Clause"
] | null | null | null | HallA/THaVDCHit.cxx | chandabindu/analyzer | 889be785858769446662ddf9ba250cc9d203bc47 | [
"BSD-3-Clause"
] | null | null | null | HallA/THaVDCHit.cxx | chandabindu/analyzer | 889be785858769446662ddf9ba250cc9d203bc47 | [
"BSD-3-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// //
// THaVDCHit //
// //
... | 33.985714 | 79 | 0.570408 | chandabindu |
e018e31589187c6fc952e9abd3dfc6967b20aa87 | 25,774 | cpp | C++ | foedus_code/experiments-core/src/foedus/graphlda/lda.cpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | foedus_code/experiments-core/src/foedus/graphlda/lda.cpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | foedus_code/experiments-core/src/foedus/graphlda/lda.cpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2014-2015, Hewlett-Packard Development Company, LP.
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later versi... | 36.767475 | 100 | 0.680376 | sam1016yu |
e0208280f335a12f6264e041e2da3936af6a783e | 371 | cpp | C++ | test/src/access.cpp | mathchq/rapidstring | b9cd820ebe3076797ff82c7a3ca741b4bef74961 | [
"MIT"
] | 1 | 2019-11-11T13:02:15.000Z | 2019-11-11T13:02:15.000Z | test/src/access.cpp | mathchq/rapidstring | b9cd820ebe3076797ff82c7a3ca741b4bef74961 | [
"MIT"
] | null | null | null | test/src/access.cpp | mathchq/rapidstring | b9cd820ebe3076797ff82c7a3ca741b4bef74961 | [
"MIT"
] | null | null | null | #include "utility.hpp"
#include <string>
TEST_CASE("data")
{
const std::string first{ "Short!" };
const std::string second{ "A very long string to get around SSO!" };
rapidstring s1;
rs_init_w(&s1, first.data());
REQUIRE(first == rs_data(&s1));
rapidstring s2;
rs_init_w(&s2, second.data());
REQUIRE(second ==... | 17.666667 | 69 | 0.657682 | mathchq |
e02082c49cb7e4edd96cf299c82dc2db5227dc98 | 2,425 | cpp | C++ | detail/os/reactor/kqueue/events/kqueue_recv_from.cpp | wembikon/baba.io | 87bec680c1febb64356af59e7e499c2b2b64d30c | [
"MIT"
] | null | null | null | detail/os/reactor/kqueue/events/kqueue_recv_from.cpp | wembikon/baba.io | 87bec680c1febb64356af59e7e499c2b2b64d30c | [
"MIT"
] | 1 | 2020-06-12T10:22:09.000Z | 2020-06-12T10:22:09.000Z | detail/os/reactor/kqueue/events/kqueue_recv_from.cpp | wembikon/baba.io | 87bec680c1febb64356af59e7e499c2b2b64d30c | [
"MIT"
] | null | null | null | /**
* MIT License
* Copyright (c) 2020 Adrian T. Visarra
**/
#include "os/reactor/kqueue/events/kqueue_recv_from.h"
#include "baba/semantics.h"
#include "os/common/event_registrar.h"
namespace baba::os {
kqueue_recv_from::kqueue_recv_from(const lifetime &scope,
cons... | 39.112903 | 98 | 0.641237 | wembikon |
e02341b4bc420c5d0558915521c41a8e64ee7706 | 2,264 | cc | C++ | ChiTech/ChiMesh/UnpartitionedMesh/lua/create.cc | Jrgriss2/chi-tech | db75df761d5f25ca4b79ee19d36f886ef240c2b5 | [
"MIT"
] | null | null | null | ChiTech/ChiMesh/UnpartitionedMesh/lua/create.cc | Jrgriss2/chi-tech | db75df761d5f25ca4b79ee19d36f886ef240c2b5 | [
"MIT"
] | null | null | null | ChiTech/ChiMesh/UnpartitionedMesh/lua/create.cc | Jrgriss2/chi-tech | db75df761d5f25ca4b79ee19d36f886ef240c2b5 | [
"MIT"
] | null | null | null | #include "../../../ChiLua/chi_lua.h"
#include "../chi_unpartitioned_mesh.h"
#include "ChiMesh/MeshHandler/chi_meshhandler.h"
/** \defgroup LuaUnpartitionedMesh Unpartitioned Mesh-Reader
* \ingroup LuaMesh
*/
//###################################################################
/**Creates an unpartitioned mesh from... | 29.025641 | 69 | 0.70053 | Jrgriss2 |
e025e5f805617de080c45ae6a3949e93a36d99f2 | 1,879 | hpp | C++ | inst/include/spress/hilbert.hpp | UFOKN/spress | 8073fde53ced4f006634f761e6f90517ccf2f229 | [
"MIT"
] | 1 | 2021-12-09T22:16:27.000Z | 2021-12-09T22:16:27.000Z | inst/include/spress/hilbert.hpp | UFOKN/spress | 8073fde53ced4f006634f761e6f90517ccf2f229 | [
"MIT"
] | null | null | null | inst/include/spress/hilbert.hpp | UFOKN/spress | 8073fde53ced4f006634f761e6f90517ccf2f229 | [
"MIT"
] | null | null | null | #pragma once
#ifndef _SPRESS_HILBERT_H_
#define _SPRESS_HILBERT_H_
#include <numeric>
using std::size_t;
namespace spress
{
namespace hilbert
{
/**
* Rotate X/Y coordinates based on Hilbert Curve.
* @param n Dimensions of n x n grid. Must be a power of 2.
* @param x [out] Pointer to the X coordinate variable
* @p... | 22.638554 | 72 | 0.557743 | UFOKN |
e028ab7a30e55a3b90c8a5fab3112bfa01ca55f0 | 8,931 | cpp | C++ | src/utils/fns.cpp | melchor629/node-flac-bindings | 584bd52ef12de4562dca0f198220f2c136666ce2 | [
"0BSD"
] | 13 | 2017-01-07T07:48:54.000Z | 2021-09-29T05:33:38.000Z | src/utils/fns.cpp | melchor629/node-flac-bindings | 584bd52ef12de4562dca0f198220f2c136666ce2 | [
"0BSD"
] | 27 | 2016-11-24T11:35:22.000Z | 2022-02-14T14:38:09.000Z | src/utils/fns.cpp | melchor629/node-flac-bindings | 584bd52ef12de4562dca0f198220f2c136666ce2 | [
"0BSD"
] | 3 | 2017-10-19T10:12:11.000Z | 2019-10-11T16:21:09.000Z | #include "converters.hpp"
#include "js_utils.hpp"
#include "pointer.hpp"
namespace flac_bindings {
static int64_t readI32(const void* buff) {
return *((const int32_t*) buff);
}
static void writeI32(void* buff, int64_t value) {
*((int32_t*) buff) = value;
}
static int64_t readI24(const void* buff) ... | 34.218391 | 100 | 0.616504 | melchor629 |
e029d475bc384d9bcb173b09da13adbc7dacb371 | 298 | cpp | C++ | cpp/ql/test/library-tests/functions/getathrowntype/test.cpp | vadi2/codeql | a806a4f08696d241ab295a286999251b56a6860c | [
"MIT"
] | 4,036 | 2020-04-29T00:09:57.000Z | 2022-03-31T14:16:38.000Z | cpp/ql/test/library-tests/functions/getathrowntype/test.cpp | vadi2/codeql | a806a4f08696d241ab295a286999251b56a6860c | [
"MIT"
] | 2,970 | 2020-04-28T17:24:18.000Z | 2022-03-31T22:40:46.000Z | cpp/ql/test/library-tests/functions/getathrowntype/test.cpp | ScriptBox99/github-codeql | 2ecf0d3264db8fb4904b2056964da469372a235c | [
"MIT"
] | 794 | 2020-04-29T00:28:25.000Z | 2022-03-30T08:21:46.000Z |
void func1() noexcept;
void func2() noexcept(true);
void func3() noexcept(false);
void func4() noexcept(func1);
void func5(void param() noexcept);
void func6() throw();
void func7() throw(int);
void func8() throw(char, int);
void func8() throw(char, int)
{
}
class c
{
void func9() throw();
};
| 15.684211 | 34 | 0.674497 | vadi2 |
e03130660378d31649865753bed09d77bdf8fa81 | 1,530 | hh | C++ | transformations/interpolation/SegmentWise.hh | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | 5 | 2019-10-14T01:06:57.000Z | 2021-02-02T16:33:06.000Z | transformations/interpolation/SegmentWise.hh | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | null | null | null | transformations/interpolation/SegmentWise.hh | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | null | null | null | #pragma once
#include "GNAObject.hh"
/**
* @brief Determines the bins edges indices for a sorted array.
*
* For a given array of bin edges:
* ```python
* edges=(e1, e2, ..., eN)
* ```
*
* And for a given array of points:
* ```python
* points=(p1, p2, ..., pM)
* ```
*
* Determines the indices:
* ```p... | 25.932203 | 176 | 0.598039 | gnafit |
e031d18b76d91a7c0efe44e0a2bff5e6bc987cf3 | 446 | hpp | C++ | lib/utils/BranchPrediction.hpp | james-s-willis/kotekan | 155e874bb039702cec72c1785362a017548aa00a | [
"MIT"
] | 19 | 2018-12-14T00:51:52.000Z | 2022-02-20T02:43:50.000Z | lib/utils/BranchPrediction.hpp | james-s-willis/kotekan | 155e874bb039702cec72c1785362a017548aa00a | [
"MIT"
] | 487 | 2018-12-13T00:59:53.000Z | 2022-02-07T16:12:56.000Z | lib/utils/BranchPrediction.hpp | james-s-willis/kotekan | 155e874bb039702cec72c1785362a017548aa00a | [
"MIT"
] | 5 | 2019-05-09T19:52:19.000Z | 2021-03-27T20:13:21.000Z | /**
* @file
* @brief Explicitely instruct the compiler that a branch of execution is more or less likely than
* any other.
*
* Only make use of this if you are certain that your code is actually a bottleneck and that using
* this improves performance.
*/
#ifndef BRANCHPREDICTION_HPP
#define BRANCHPREDICTION_HPP... | 26.235294 | 98 | 0.744395 | james-s-willis |
e03a164c52cd7b4b6b1d88566f061dfc8a4c784b | 793 | hpp | C++ | test/node-gdal-async/src/geometry/gdal_multilinestring.hpp | mmomtchev/yatag | 37802e760a33939b65ceaa4379634529d0dc0092 | [
"0BSD"
] | 42 | 2021-03-26T17:34:52.000Z | 2022-03-18T14:15:31.000Z | test/node-gdal-async/src/geometry/gdal_multilinestring.hpp | mmomtchev/yatag | 37802e760a33939b65ceaa4379634529d0dc0092 | [
"0BSD"
] | 29 | 2021-06-03T14:24:01.000Z | 2022-03-23T15:43:58.000Z | test/node-gdal-async/src/geometry/gdal_multilinestring.hpp | mmomtchev/yatag | 37802e760a33939b65ceaa4379634529d0dc0092 | [
"0BSD"
] | 8 | 2021-05-14T19:26:37.000Z | 2022-03-21T13:44:42.000Z | #ifndef __NODE_OGR_MULTILINESTRING_H__
#define __NODE_OGR_MULTILINESTRING_H__
// node
#include <node.h>
#include <node_object_wrap.h>
// nan
#include "../nan-wrapper.h"
// ogr
#include <ogrsf_frmts.h>
#include "gdal_geometrycollectionbase.hpp"
using namespace v8;
using namespace node;
namespace node_gdal {
class... | 22.657143 | 92 | 0.796974 | mmomtchev |
e03ca583974d7223395140a16f5b6579c8fe9d2f | 12,762 | cpp | C++ | SVEngine/src/node/SVSpineNode.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | 34 | 2018-09-28T08:28:27.000Z | 2022-01-15T10:31:41.000Z | SVEngine/src/node/SVSpineNode.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | null | null | null | SVEngine/src/node/SVSpineNode.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | 8 | 2018-10-11T13:36:35.000Z | 2021-04-01T09:29:34.000Z | //
// SVSpineNode.cpp
// SVEngine
// Copyright 2017-2020
// yizhou Fu,long Yin,longfei Lin,ziyu Xu,xiaofan Li,daming Li
//
#include <spine/Slot.h>
#include <spine/RegionAttachment.h>
#include <spine/MeshAttachment.h>
#include "SVSpineNode.h"
#include "SVCameraNode.h"
#include "SVScene.h"
#include "../rendercore/SVRend... | 29.817757 | 155 | 0.609622 | SVEChina |
e03d76dc57e4aad695c5dd753863e741aefd8046 | 4,340 | cpp | C++ | src/lib/navigation/siteicon.cpp | pejakm/qupzilla | c1901cd81d9d3488a7dc1f25b777fb56f67cb39e | [
"BSD-3-Clause"
] | 1 | 2019-05-07T15:00:56.000Z | 2019-05-07T15:00:56.000Z | src/lib/navigation/siteicon.cpp | pejakm/qupzilla | c1901cd81d9d3488a7dc1f25b777fb56f67cb39e | [
"BSD-3-Clause"
] | null | null | null | src/lib/navigation/siteicon.cpp | pejakm/qupzilla | c1901cd81d9d3488a7dc1f25b777fb56f67cb39e | [
"BSD-3-Clause"
] | null | null | null | /* ============================================================
* QupZilla - WebKit based browser
* Copyright (C) 2010-2014 David Rosca <nowrep@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software ... | 24.8 | 81 | 0.641705 | pejakm |
e040071f6af73b3136a24b1d7340c97ae2d81c52 | 2,970 | cpp | C++ | Sources/Scenes/Entity.cpp | liuping1997/Acid | 0b28d63d03ead41047d5881f08e3b693a4e6e63f | [
"MIT"
] | null | null | null | Sources/Scenes/Entity.cpp | liuping1997/Acid | 0b28d63d03ead41047d5881f08e3b693a4e6e63f | [
"MIT"
] | null | null | null | Sources/Scenes/Entity.cpp | liuping1997/Acid | 0b28d63d03ead41047d5881f08e3b693a4e6e63f | [
"MIT"
] | null | null | null | #include "Entity.hpp"
#include "Files/FileSystem.hpp"
#include "Scenes.hpp"
#include "EntityPrefab.hpp"
namespace acid
{
Entity::Entity(const Transform &transform) :
m_name(""),
m_localTransform(transform),
m_parent(nullptr),
m_removed(false)
{
}
Entity::Entity(const std::string &filename, const Transform &trans... | 18.109756 | 119 | 0.674747 | liuping1997 |
e042481d0fb9269219e36d3db4b5c63f73c049d7 | 2,700 | cpp | C++ | src/AnimatedObject.cpp | ArionasMC/TicTacToe | 998585ca415c7d263eeb73e43840fbf98d9a4c99 | [
"Apache-2.0"
] | 3 | 2019-02-23T18:20:24.000Z | 2019-02-23T18:30:18.000Z | src/AnimatedObject.cpp | ArionasMC/TicTacToe | 998585ca415c7d263eeb73e43840fbf98d9a4c99 | [
"Apache-2.0"
] | null | null | null | src/AnimatedObject.cpp | ArionasMC/TicTacToe | 998585ca415c7d263eeb73e43840fbf98d9a4c99 | [
"Apache-2.0"
] | null | null | null | #include "AnimatedObject.h"
using namespace std;
AnimatedObject::AnimatedObject(const char* textureSheet, SDL_Renderer* ren, double x, double y, vector<SDL_Rect> frameRects, int endFrame, int secondsToNext) : GameObject(textureSheet, ren, x, y)
{
this->show = true;
this->setSimpleTexture(true);
this... | 28.421053 | 196 | 0.554444 | ArionasMC |