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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3ffe46577e9bb432bfafe4125475df74eb869dd2 | 299 | cpp | C++ | Math/Combinatorics/binomial-O(K).cpp | arumakan1727/kyopro-cpplib | b39556b3616c231579937fb86b696c692aa4ef74 | [
"MIT"
] | null | null | null | Math/Combinatorics/binomial-O(K).cpp | arumakan1727/kyopro-cpplib | b39556b3616c231579937fb86b696c692aa4ef74 | [
"MIT"
] | null | null | null | Math/Combinatorics/binomial-O(K).cpp | arumakan1727/kyopro-cpplib | b39556b3616c231579937fb86b696c692aa4ef74 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
/**
* @brief binomial() (二項係数 $O(K)$)
*/
template <class T>
T binomial(int64_t n, int k) {
if (k < 0 || n < k) return 0;
T nume = 1, deno = 1;
for (int i = 1; i <= k; ++i) {
nume *= n - i + 1;
deno *= i;
}
return nume / deno;
}
| 17.588235 | 34 | 0.464883 | arumakan1727 |
b20bac7742410b36c2fe2b853f1e7245b717ce7f | 79,212 | cpp | C++ | SOURCES/campaign/camptool/dialog.cpp | IsraelyFlightSimulator/Negev-Storm | 86de63e195577339f6e4a94198bedd31833a8be8 | [
"Unlicense"
] | 1 | 2021-02-19T06:06:31.000Z | 2021-02-19T06:06:31.000Z | src/campaign/camptool/dialog.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | null | null | null | src/campaign/camptool/dialog.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | 2 | 2019-08-20T13:35:13.000Z | 2021-04-24T07:32:04.000Z | #include <windows.h> // includes basic windows functionality
#include <commdlg.h> // includes common dialog functionality
#include <commctrl.h>
#include <dlgs.h> // includes common dialog template defines
#include <stdio.h> // includes standard file i/o functionality
#include <string.h> // includes... | 31.124558 | 147 | 0.64186 | IsraelyFlightSimulator |
b21ab7c74693081a5462ed4bb9107529a6887a44 | 147 | hpp | C++ | Etaler/Core/Random.hpp | danielpwarren/Etaler | d225117111410dfb021df1e18b538f79f5920c0c | [
"BSD-3-Clause"
] | 68 | 2019-05-24T14:50:27.000Z | 2021-12-09T14:18:50.000Z | Etaler/Core/Random.hpp | danielpwarren/Etaler | d225117111410dfb021df1e18b538f79f5920c0c | [
"BSD-3-Clause"
] | 92 | 2019-05-16T02:11:04.000Z | 2021-12-16T00:36:14.000Z | Etaler/Core/Random.hpp | danielpwarren/Etaler | d225117111410dfb021df1e18b538f79f5920c0c | [
"BSD-3-Clause"
] | 15 | 2019-05-19T15:40:26.000Z | 2021-12-15T19:07:28.000Z | #pragma once
#include "Etaler/3rdparty/pcg-cpp/include/pcg_random.hpp"
#include "Etaler/3rdparty/pcg-cpp/include/pcg_extras.hpp"
#include <random> | 29.4 | 57 | 0.795918 | danielpwarren |
b2294bd52a06572dddb7c8ed5cc3faf12476eadd | 2,109 | hpp | C++ | cmdstan/stan/lib/stan_math/stan/math/rev/scal/fun/rising_factorial.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/stan/math/rev/scal/fun/rising_factorial.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/stan/math/rev/scal/fun/rising_factorial.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_REV_SCAL_FUN_RISING_FACTORIAL_HPP
#define STAN_MATH_REV_SCAL_FUN_RISING_FACTORIAL_HPP
#include <stan/math/rev/core.hpp>
#include <stan/math/prim/scal/fun/digamma.hpp>
#include <stan/math/prim/scal/fun/rising_factorial.hpp>
namespace stan {
namespace math {
namespace {
class rising_fact... | 29.704225 | 64 | 0.563774 | yizhang-cae |
b22aef2c85233137fbd63629440c74a0a9ae0df6 | 1,293 | hpp | C++ | AutomataLibrary/State.hpp | yaishenka/FormalLanguagesPracticum | 261be1f606c55cb8d8bc697a1cfdb654f641294c | [
"MIT"
] | 1 | 2020-10-04T15:01:46.000Z | 2020-10-04T15:01:46.000Z | AutomataLibrary/State.hpp | yaishenka/FormalLanguagesPracticum | 261be1f606c55cb8d8bc697a1cfdb654f641294c | [
"MIT"
] | null | null | null | AutomataLibrary/State.hpp | yaishenka/FormalLanguagesPracticum | 261be1f606c55cb8d8bc697a1cfdb654f641294c | [
"MIT"
] | null | null | null | /** @author yaishenka
@date 2019-11-10 */
#pragma once
#include <cstddef>
#include <vector>
#include <exception>
namespace automate {
const size_t impossible__regexp_length = static_cast<size_t>(10e9);
class NotCompatibleRegexps: public std::exception {
const char* what() const noexcept override {
return "... | 21.55 | 73 | 0.674401 | yaishenka |
b22be62337353500760521e1173496dc828da8cf | 557 | hpp | C++ | FrameWork/Interface/IRuntimeModule.hpp | wuningjian/GameEngine | add0846119db33b11db3fd7ba786c7f88a59314f | [
"MIT"
] | null | null | null | FrameWork/Interface/IRuntimeModule.hpp | wuningjian/GameEngine | add0846119db33b11db3fd7ba786c7f88a59314f | [
"MIT"
] | null | null | null | FrameWork/Interface/IRuntimeModule.hpp | wuningjian/GameEngine | add0846119db33b11db3fd7ba786c7f88a59314f | [
"MIT"
] | null | null | null | #pragma once
#include "Interface.hpp"
namespace My{
Interface IRuntimeModule{
public:
virtual ~IRuntimeModule(){};
/*
Initialize(), 这是用来初始化模块的
Finalize(),这是用来在模块结束的时候打扫战场的
Tick(),这个是用来让驱动模块驱动该模块执行的。每调用一次,模块进行一个单位的处理
之所以要单独定义模块的初始化/反初始化函数,而不是在类的构造函数/析构函数里面完成这些工作,主要是有以下一些考虑:
在C/C++当中,全局变量(包括static变量)的初始... | 26.52381 | 82 | 0.763016 | wuningjian |
b22c1e5e60dfbc91fdf94391018700eacd9bb38d | 374 | cpp | C++ | src/xr_3da/xrGame/object_action_base.cpp | ixray-team/ixray-b2945 | ad5ef375994ee9cd790c4144891e9f00e7efe565 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:19.000Z | 2022-03-26T17:00:19.000Z | src/xr_3da/xrGame/object_action_base.cpp | ixray-team/ixray-b2945 | ad5ef375994ee9cd790c4144891e9f00e7efe565 | [
"Linux-OpenIB"
] | null | null | null | src/xr_3da/xrGame/object_action_base.cpp | ixray-team/ixray-b2945 | ad5ef375994ee9cd790c4144891e9f00e7efe565 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:21.000Z | 2022-03-26T17:00:21.000Z | ////////////////////////////////////////////////////////////////////////////
// Module : object_action_base.cpp
// Created : 12.03.2004
// Modified : 12.03.2004
// Author : Dmitriy Iassenev
// Description : Object base action
////////////////////////////////////////////////////////////////////////////
#i... | 31.166667 | 77 | 0.390374 | ixray-team |
b235deb67e2346ec374880502d628ba524e1bd06 | 1,436 | hpp | C++ | modules/runtime_reflection/src/MetaObject/runtime_reflection/visitor_traits/vector.hpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | 2 | 2017-10-26T04:41:49.000Z | 2018-02-09T05:12:19.000Z | modules/runtime_reflection/src/MetaObject/runtime_reflection/visitor_traits/vector.hpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | null | null | null | modules/runtime_reflection/src/MetaObject/runtime_reflection/visitor_traits/vector.hpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | 3 | 2017-01-08T21:09:48.000Z | 2018-02-10T04:27:32.000Z | #pragma once
#include "../ContainerTraits.hpp"
#include "../DynamicVisitor.hpp"
namespace mo
{
template <class T, class A>
struct TTraits<std::vector<T, A>, 4, void>: virtual ContainerBase<std::vector<T, A>, T>
{
void load(ILoadVisitor& visitor, void* inst, const std::string& name, const size_t) co... | 27.615385 | 112 | 0.534819 | dtmoodie |
b2374bc5587a9259a462f2e58ee2d761bf1040e7 | 6,858 | cpp | C++ | source/mac/brglobalsmac.cpp | Olde-Skuul/burgerlib | 80848a4dfa17c5c05095ecea14a9bd87f86dfb9d | [
"Zlib"
] | 115 | 2015-01-18T17:29:30.000Z | 2022-01-30T04:31:48.000Z | source/mac/brglobalsmac.cpp | Olde-Skuul/burgerlib | 80848a4dfa17c5c05095ecea14a9bd87f86dfb9d | [
"Zlib"
] | 9 | 2015-01-22T04:53:38.000Z | 2015-01-31T13:52:40.000Z | source/mac/brglobalsmac.cpp | Olde-Skuul/burgerlib | 80848a4dfa17c5c05095ecea14a9bd87f86dfb9d | [
"Zlib"
] | 9 | 2015-01-23T20:06:46.000Z | 2020-05-20T16:06:00.000Z | /***************************************
MacOS version of Burger::Globals
Copyright (c) 1995-2017 by Rebecca Ann Heineman <becky@burgerbecky.com>
It is released under an MIT Open Source license. Please see LICENSE for
license details. Yes, you can use it in a commercial title without paying
anyth... | 31.897674 | 80 | 0.59128 | Olde-Skuul |
b2380475fbb8cbe51d7ef5143b2c15c23cfaba6c | 1,386 | cpp | C++ | Test/Unit/tests_main.cpp | erikzenker/asyncly | 550dbec10c3e74c10303345e44ad7c9f98e3db06 | [
"ECL-2.0",
"Apache-2.0"
] | 23 | 2020-02-25T14:11:58.000Z | 2021-09-23T04:32:09.000Z | Test/Unit/tests_main.cpp | erikzenker/asyncly | 550dbec10c3e74c10303345e44ad7c9f98e3db06 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-03-11T14:04:19.000Z | 2020-11-09T20:50:41.000Z | Test/Unit/tests_main.cpp | isabella232/asyncly | 460969878ae06bdf70175b21c5ae710785e3897b | [
"ECL-2.0",
"Apache-2.0"
] | 9 | 2020-02-25T14:12:39.000Z | 2021-12-28T01:30:48.000Z | /*
* Copyright 2019 LogMeIn
*
* 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 w... | 30.8 | 79 | 0.742424 | erikzenker |
b24932f434237ddd418bd26c84435ecc9b1889f0 | 793 | cpp | C++ | 3_Object_Oriented_Programming/2_IntroToOop/08_Constructors.cpp | ptiwari0664/UdacityCplusplusNanoDegree | e937990ed310e01783d335688bfde9c377a71051 | [
"MIT"
] | 1 | 2020-05-07T18:13:27.000Z | 2020-05-07T18:13:27.000Z | 3_Object_Oriented_Programming/2_IntroToOop/08_Constructors.cpp | ptiwari0664/UdacityCplusplusNanoDegree | e937990ed310e01783d335688bfde9c377a71051 | [
"MIT"
] | null | null | null | 3_Object_Oriented_Programming/2_IntroToOop/08_Constructors.cpp | ptiwari0664/UdacityCplusplusNanoDegree | e937990ed310e01783d335688bfde9c377a71051 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cassert>
class Date{
private:
int day_{1};
int month_{1};
int year_{0};
public:
Date(int d, int m, int y){
Day(d);
Month(m);
Year(y);
}
void Day(int d){if(d>1 && d<31) day_ = d;};
int Day(){return day... | 21.432432 | 86 | 0.465322 | ptiwari0664 |
b25317dea1cb9851e31659d9e058ad5ce1924b6a | 715 | cpp | C++ | solutions/838.push-dominoes.323061696.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 78 | 2020-10-22T11:31:53.000Z | 2022-02-22T13:27:49.000Z | solutions/838.push-dominoes.323061696.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | null | null | null | solutions/838.push-dominoes.323061696.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 26 | 2020-10-23T15:10:44.000Z | 2021-11-07T16:13:50.000Z | class Solution {
public:
string pushDominoes(string dominoes) {
int n = dominoes.size();
vector<int> state(n, 0);
int force = 0;
for (int i = 0; i < n; i++) {
if (dominoes[i] == 'R')
force = n;
else if (dominoes[i] == 'L')
force = 0;
if (force)
state[i] = f... | 17.875 | 40 | 0.425175 | satu0king |
b25b6fc65504cdc5b3a580725058c4fe66b18dc8 | 788 | cpp | C++ | CodeForces/1004C/14642281_AC_124ms_3708kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | CodeForces/1004C/14642281_AC_124ms_3708kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | CodeForces/1004C/14642281_AC_124ms_3708kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | /**
* @author Moe_Sakiya sakiya@tun.moe
* @date 2018-07-18 13:13:45
*
*/
#include <iostream>
#include <string>
#include <algorithm>
#include <set>
#include <map>
#include <vector>
#include <stack>
#include <queue>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
using namespace st... | 15.76 | 40 | 0.573604 | BakaErii |
05d321faa294ad5922d5a4f306968c8ea2dea362 | 772 | hpp | C++ | Programming Guide/Headers/Siv3D/PostEffect.hpp | Reputeless/Siv3D-Reference | d58e92885241d11612007fb9187ce0289a7ee9cb | [
"MIT"
] | 38 | 2016-01-14T13:51:13.000Z | 2021-12-29T01:49:30.000Z | Programming Guide/Headers/Siv3D/PostEffect.hpp | Reputeless/Siv3D-Reference | d58e92885241d11612007fb9187ce0289a7ee9cb | [
"MIT"
] | null | null | null | Programming Guide/Headers/Siv3D/PostEffect.hpp | Reputeless/Siv3D-Reference | d58e92885241d11612007fb9187ce0289a7ee9cb | [
"MIT"
] | 16 | 2016-01-15T11:07:51.000Z | 2021-12-29T01:49:37.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (C) 2008-2016 Ryo Suzuki
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include "Fwd.hpp"
namespace s3d
{
/// <summary>
/// レンダリング結果へのポストエフェクト
... | 22.705882 | 124 | 0.610104 | Reputeless |
05e49a810c0a18cbf11a0380f1347de6d23d2af2 | 7,126 | cpp | C++ | src/ShmConnection.cpp | adanselm/pbRPCpp | 55ee89608bfd3d8e32d3880fd5f1f7c3386f167a | [
"BSL-1.0"
] | 26 | 2015-03-31T05:57:21.000Z | 2021-12-07T04:37:05.000Z | src/ShmConnection.cpp | adanselm/pbRPCpp | 55ee89608bfd3d8e32d3880fd5f1f7c3386f167a | [
"BSL-1.0"
] | 2 | 2016-11-23T19:44:08.000Z | 2019-05-29T08:37:03.000Z | src/ShmConnection.cpp | adanselm/pbRPCpp | 55ee89608bfd3d8e32d3880fd5f1f7c3386f167a | [
"BSL-1.0"
] | 10 | 2015-07-19T13:02:14.000Z | 2020-05-26T12:17:09.000Z | /**
* Copyright Springbeats Sarl 2013.
* 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 "ShmConnection.hpp"
/**
* Temporary workaround needed to compile in 32bit.
* See: htt... | 24.829268 | 116 | 0.581953 | adanselm |
05e9019721a33ad9b3c43d73a7a578acef3da14d | 7,432 | cpp | C++ | src/controls.cpp | maciejwlodek/blend | 00c892363876692c5370def0e37a106ad5f7b07e | [
"BSD-3-Clause"
] | null | null | null | src/controls.cpp | maciejwlodek/blend | 00c892363876692c5370def0e37a106ad5f7b07e | [
"BSD-3-Clause"
] | null | null | null | src/controls.cpp | maciejwlodek/blend | 00c892363876692c5370def0e37a106ad5f7b07e | [
"BSD-3-Clause"
] | 1 | 2019-01-24T16:14:56.000Z | 2019-01-24T16:14:56.000Z | // controls.cpp
#include "controls.hh"
#include "hkl_unmerge.hh"
#include "string_util.hh"
namespace scala
{
//------------------------------------------------------------
run_controls::run_controls() : RunStatus(-1), resobyrun(false) {}
//------------------------------------------------------------
//! return... | 35.390476 | 116 | 0.536464 | maciejwlodek |
05efd209712e943922426616ba82a8b2f33258ad | 5,412 | cpp | C++ | framework/PVRVk/ImageVk.cpp | hliatis/Native_SDK | 3664fbd6f0cd8a2b9ca2d772af173802f5d5b4fc | [
"MIT"
] | null | null | null | framework/PVRVk/ImageVk.cpp | hliatis/Native_SDK | 3664fbd6f0cd8a2b9ca2d772af173802f5d5b4fc | [
"MIT"
] | null | null | null | framework/PVRVk/ImageVk.cpp | hliatis/Native_SDK | 3664fbd6f0cd8a2b9ca2d772af173802f5d5b4fc | [
"MIT"
] | null | null | null | /*!
\brief Function definitions for PVRVk image class.
\file PVRVk/ImageVk.cpp
\author PowerVR by Imagination, Developer Technology Team
\copyright Copyright (c) Imagination Technologies Limited.
*/
//!\cond NO_DOXYGEN
#include "PVRVk/ImageVk.h"
#include "PVRVk/DeviceVk.h"
#include "PVRVk/QueueVk.h"
#include "PVRVk/Co... | 36.322148 | 175 | 0.785107 | hliatis |
05f090e95ae5150b51f3446dda8b81484b02c05b | 20,628 | cpp | C++ | src/gui/qt-daemon/html5applicationviewer/daemon_backend.cpp | UScrypto/boolberry-opencl | 1369c7a2cb012983a2fac7e78438bd9a7185e867 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/gui/qt-daemon/html5applicationviewer/daemon_backend.cpp | UScrypto/boolberry-opencl | 1369c7a2cb012983a2fac7e78438bd9a7185e867 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/gui/qt-daemon/html5applicationviewer/daemon_backend.cpp | UScrypto/boolberry-opencl | 1369c7a2cb012983a2fac7e78438bd9a7185e867 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | // Copyright (c) 2012-2013 The Boolberry developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "daemon_backend.h"
#include "currency_core/alias_helper.h"
#include "crypto/mnemonic-encoding.h"
daemon_backend:... | 30.290749 | 137 | 0.705255 | UScrypto |
05f1b46cb1f3084d65cda856eb01fcdc5abce8de | 870 | cpp | C++ | ros/catkin_ws/src/ecl/ecl_core/ecl_core_apps/src/utils/process_statistics.cpp | Kanaderu/spiking-ddpg-mapless-navigation | 2b5e7e67385dee4428b8036bc4ffe95e812b34e0 | [
"MIT"
] | null | null | null | ros/catkin_ws/src/ecl/ecl_core/ecl_core_apps/src/utils/process_statistics.cpp | Kanaderu/spiking-ddpg-mapless-navigation | 2b5e7e67385dee4428b8036bc4ffe95e812b34e0 | [
"MIT"
] | null | null | null | ros/catkin_ws/src/ecl/ecl_core/ecl_core_apps/src/utils/process_statistics.cpp | Kanaderu/spiking-ddpg-mapless-navigation | 2b5e7e67385dee4428b8036bc4ffe95e812b34e0 | [
"MIT"
] | null | null | null | /**
* @file /src/utils/process_statistics.cpp
*
* @brief Detects parameter configurations for processes' on your system.
*
* This detects the availability and ranges of various process methods on
* your particular system.
*
* - Niceness
* - Real time priority range
*
* @date May, 2009
**/
/*****************... | 24.857143 | 78 | 0.421839 | Kanaderu |
05f6af95c23b0dd2fd84b8cd6a5b03d49771dc2e | 1,317 | cc | C++ | leetcode/1201-delete-tree-nodes.cc | Magic07/online-judge-solutions | 02a289dd7eb52d7eafabc97bd1a043213b65f70a | [
"MIT"
] | null | null | null | leetcode/1201-delete-tree-nodes.cc | Magic07/online-judge-solutions | 02a289dd7eb52d7eafabc97bd1a043213b65f70a | [
"MIT"
] | null | null | null | leetcode/1201-delete-tree-nodes.cc | Magic07/online-judge-solutions | 02a289dd7eb52d7eafabc97bd1a043213b65f70a | [
"MIT"
] | null | null | null | #include <vector>
using namespace std;
class Solution {
public:
void deleteSubTree(int root,
vector<vector<int>>& children,
vector<bool>& deleted) {
deleted[root] = true;
if (children[root].size() != 0) {
for (int c : children[root]) {
deleteSubTree(c... | 24.849057 | 75 | 0.527715 | Magic07 |
05f71b568baee9127922e1eec97f1e47678f23c5 | 2,091 | cpp | C++ | satori/apps/uv_readfile_reuse_req.cpp | njlr/satori | 16d3909c275a2b1b421b20431ce4ab6048d747c1 | [
"MIT"
] | 15 | 2017-11-13T11:31:44.000Z | 2021-01-02T07:26:54.000Z | satori/apps/uv_readfile_reuse_req.cpp | njlr/satori | 16d3909c275a2b1b421b20431ce4ab6048d747c1 | [
"MIT"
] | null | null | null | satori/apps/uv_readfile_reuse_req.cpp | njlr/satori | 16d3909c275a2b1b421b20431ce4ab6048d747c1 | [
"MIT"
] | 2 | 2018-01-04T14:57:55.000Z | 2019-07-29T15:24:19.000Z | #include <assert.h>
#include <iostream>
#include <stdio.h>
#include <string>
#include <uv.h>
uv_loop_t *loop;
uv_fs_t all_req;
uv_buf_t buffer;
char data[1024];
void open_cb(uv_fs_t *req);
void read_cb(uv_fs_t *req);
void close_cb(uv_fs_t *req);
std::string error_to_string(int error) {
return std::string(uv_err_... | 19.914286 | 73 | 0.610234 | njlr |
05fbbe9d1cf04ca6f069d31c3957f579ce7741c5 | 4,249 | cpp | C++ | rfc/gui/KComboBox.cpp | hasaranga/RFC-Framework | 9c1881d412db6f9f7670b910a0918a631208cfd1 | [
"MIT"
] | 9 | 2017-10-02T08:15:50.000Z | 2021-08-09T21:29:46.000Z | rfc/gui/KComboBox.cpp | hasaranga/RFC-Framework | 9c1881d412db6f9f7670b910a0918a631208cfd1 | [
"MIT"
] | 1 | 2021-09-18T07:38:53.000Z | 2021-09-26T12:11:48.000Z | rfc/gui/KComboBox.cpp | hasaranga/RFC-Framework | 9c1881d412db6f9f7670b910a0918a631208cfd1 | [
"MIT"
] | 8 | 2017-10-02T13:21:29.000Z | 2021-07-30T09:35:31.000Z |
/*
RFC - KComboBox.cpp
Copyright (C) 2013-2019 CrownSoft
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
inclu... | 22.015544 | 108 | 0.720405 | hasaranga |
05ff29c5f5780e09c1333fc59a685646cc865e62 | 2,000 | hpp | C++ | coconut-pulp-renderer/src/main/c++/coconut/pulp/renderer/shader/Pass.hpp | mikosz/coconut | 547bfd55062f09d7af853043c393fc51e8a7a8b6 | [
"Apache-2.0"
] | 1 | 2017-05-02T12:01:54.000Z | 2017-05-02T12:01:54.000Z | coconut-pulp-renderer/src/main/c++/coconut/pulp/renderer/shader/Pass.hpp | mikosz/coconut | 547bfd55062f09d7af853043c393fc51e8a7a8b6 | [
"Apache-2.0"
] | null | null | null | coconut-pulp-renderer/src/main/c++/coconut/pulp/renderer/shader/Pass.hpp | mikosz/coconut | 547bfd55062f09d7af853043c393fc51e8a7a8b6 | [
"Apache-2.0"
] | null | null | null | #ifndef _COCONUT_PULP_RENDERER_SHADER_PASS_HPP_
#define _COCONUT_PULP_RENDERER_SHADER_PASS_HPP_
#include "Input.hpp"
#include "Shader.hpp"
namespace coconut {
namespace pulp {
namespace renderer {
class PassContext;
namespace shader {
class Pass {
public:
Pass(
bool isInstanced,
Input input,
VertexShaderS... | 18.348624 | 73 | 0.7615 | mikosz |
af00884944ff52d9363767d58b06c41cbae22ad3 | 5,663 | cpp | C++ | arm9/source/_gadget/gadget.fileview.cpp | DuffsDevice/winds | 35f1b5fd458c527a6c372f94077e784f6fd960b2 | [
"MIT"
] | 2 | 2017-02-07T18:25:07.000Z | 2021-12-13T18:29:03.000Z | arm9/source/_gadget/gadget.fileview.cpp | DuffsDevice/winds | 35f1b5fd458c527a6c372f94077e784f6fd960b2 | [
"MIT"
] | null | null | null | arm9/source/_gadget/gadget.fileview.cpp | DuffsDevice/winds | 35f1b5fd458c527a6c372f94077e784f6fd960b2 | [
"MIT"
] | null | null | null | #include <_gadget/gadget.fileview.h>
#include <_type/type.gadget.helpers.h>
#include <_type/type.winds.h>
#include <_type/type.winds.soundbank.h>
#include <_controller/controller.localization.h>
void _fileView::initializeMenu()
{
if( !_fileView::defaultMenu )
{
_fileView::defaultMenu = new _menu(
{
... | 31.287293 | 157 | 0.659191 | DuffsDevice |
af047e995d34b837b83bc9fe46b210e6a47a2339 | 21,012 | cc | C++ | processors/IA32/bochs/cpu/io.cc | pavel-krivanek/opensmalltalk-vm | 694dfe3ed015e16f5b8e9cf17d37e4bdd32bea16 | [
"MIT"
] | 445 | 2016-06-30T08:19:11.000Z | 2022-03-28T06:09:49.000Z | processors/IA32/bochs/cpu/io.cc | pavel-krivanek/opensmalltalk-vm | 694dfe3ed015e16f5b8e9cf17d37e4bdd32bea16 | [
"MIT"
] | 439 | 2016-06-29T20:14:36.000Z | 2022-03-17T19:59:58.000Z | processors/IA32/bochs/cpu/io.cc | pavel-krivanek/opensmalltalk-vm | 694dfe3ed015e16f5b8e9cf17d37e4bdd32bea16 | [
"MIT"
] | 137 | 2016-07-02T17:32:07.000Z | 2022-03-20T11:17:25.000Z | /////////////////////////////////////////////////////////////////////////
// $Id: io.cc,v 1.65 2008/08/03 19:53:08 sshwarts Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
//
// MandrakeSoft S.A.
// 43, rue d'Aboukir
// 75002 Paris - ... | 25.5 | 116 | 0.678755 | pavel-krivanek |
af04a309e619e6705e71cf5423f94e68eceae340 | 129 | cc | C++ | Pods/FirebaseFirestore/Firestore/core/src/firebase/firestore/remote/grpc_nanopb.cc | MrsTrier/RememberArt | 90314d1f05a1d63b9885ebb17d37bab5134a24f3 | [
"MIT"
] | null | null | null | Pods/FirebaseFirestore/Firestore/core/src/firebase/firestore/remote/grpc_nanopb.cc | MrsTrier/RememberArt | 90314d1f05a1d63b9885ebb17d37bab5134a24f3 | [
"MIT"
] | null | null | null | Pods/FirebaseFirestore/Firestore/core/src/firebase/firestore/remote/grpc_nanopb.cc | MrsTrier/RememberArt | 90314d1f05a1d63b9885ebb17d37bab5134a24f3 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:8de9952f26a62294da385a1fff6b9cdbc4e3367660b35db685d73419345de289
size 2675
| 32.25 | 75 | 0.883721 | MrsTrier |
af0772f98ff919950e130e26380acf38a0b3a495 | 631 | hpp | C++ | CPP/src/lib/macroses.hpp | ilyagru/movsea | 77a6f27d364b5bfeb1262c0fe69fd32ae8cbd4dd | [
"MIT"
] | 2 | 2018-01-05T09:30:52.000Z | 2020-07-12T21:35:27.000Z | CPP/src/lib/macroses.hpp | ilyagru/movsea | 77a6f27d364b5bfeb1262c0fe69fd32ae8cbd4dd | [
"MIT"
] | null | null | null | CPP/src/lib/macroses.hpp | ilyagru/movsea | 77a6f27d364b5bfeb1262c0fe69fd32ae8cbd4dd | [
"MIT"
] | 3 | 2018-06-03T03:50:47.000Z | 2021-12-14T17:20:56.000Z | /*
* macroses.hpp
*
* Created on: Mar 18, 2017
* Author: victor
*/
#ifndef LIB_MACROSES_HPP_
#define LIB_MACROSES_HPP_
#include <string>
#include <lib/base/baseClasses.hpp>
#include <lib/base/baseAlg.hpp>
#include <lib/base/ffmpegUtil.hpp>
using namespace std;
void mOpenPipeAndReadMovFromFFmpeg(Mov &mov... | 21.758621 | 78 | 0.752773 | ilyagru |
af0b4463b39aff2ea572489076a99ba3c5a4b4eb | 6,305 | cpp | C++ | UltraDV/Source/TMIDITrack.cpp | ModeenF/UltraDV | 30474c60880de541b33687c96293766fe0dc4aef | [
"Unlicense"
] | null | null | null | UltraDV/Source/TMIDITrack.cpp | ModeenF/UltraDV | 30474c60880de541b33687c96293766fe0dc4aef | [
"Unlicense"
] | null | null | null | UltraDV/Source/TMIDITrack.cpp | ModeenF/UltraDV | 30474c60880de541b33687c96293766fe0dc4aef | [
"Unlicense"
] | null | null | null | //---------------------------------------------------------------------
//
// File: TMIDITrack.cpp
//
// Author: Gene Z. Ragan
//
// Date: 02.25.98
//
// Desc: Container for MIDI track data
//
// Copyright ©1998 mediapede Software
//
//---------------------------------------------------------------------
// Includes
#... | 21.228956 | 109 | 0.492784 | ModeenF |
af1076195b5de3d4907778d642a4d7cff9fdbe23 | 90 | cpp | C++ | WorldElement.cpp | LeviOfficalDriftingRealmsDev/DriftingRealmsWorldEditor | 8d3edb8c1ef18447a1689e81128ad2c32ca0262e | [
"MIT"
] | null | null | null | WorldElement.cpp | LeviOfficalDriftingRealmsDev/DriftingRealmsWorldEditor | 8d3edb8c1ef18447a1689e81128ad2c32ca0262e | [
"MIT"
] | null | null | null | WorldElement.cpp | LeviOfficalDriftingRealmsDev/DriftingRealmsWorldEditor | 8d3edb8c1ef18447a1689e81128ad2c32ca0262e | [
"MIT"
] | null | null | null | #include "WorldElement.hpp"
int ElementTemplate::cnt = 0;
#include "OutlineGenerator.hpp"
| 22.5 | 31 | 0.777778 | LeviOfficalDriftingRealmsDev |
af16624967f2a957d68cb76eb9c5b72d9aeab511 | 12,373 | cpp | C++ | test/connected_polygon_test.cpp | bluelightning32/walnut | c259e62dad5a22b95978e28afe18ebe230849cc6 | [
"MIT"
] | 3 | 2021-10-16T16:22:52.000Z | 2022-02-07T21:41:34.000Z | test/connected_polygon_test.cpp | bluelightning32/walnut | c259e62dad5a22b95978e28afe18ebe230849cc6 | [
"MIT"
] | 2 | 2021-10-17T10:25:35.000Z | 2022-01-30T18:32:19.000Z | test/connected_polygon_test.cpp | bluelightning32/walnut | c259e62dad5a22b95978e28afe18ebe230849cc6 | [
"MIT"
] | null | null | null | // Include gtest_prod first so that connected_polygon.h uses FRIEND_TEST
#include "gtest/gtest_prod.h"
#include "walnut/connected_polygon.h"
#include <vector>
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "walnut/aabb_convex_polygon.h"
#include "walnut/point3.h"
namespace walnut {
TEST(ConnectedPolygon... | 36.072886 | 110 | 0.563808 | bluelightning32 |
af1741604e9b18f2d5738f2d5c51ba2c97b552ef | 873 | cc | C++ | Import.cc | ryo1kato/GlueLang | 0ea2b8d64782cc0f924299ee66cf459028a4d4db | [
"MIT"
] | null | null | null | Import.cc | ryo1kato/GlueLang | 0ea2b8d64782cc0f924299ee66cf459028a4d4db | [
"MIT"
] | null | null | null | Import.cc | ryo1kato/GlueLang | 0ea2b8d64782cc0f924299ee66cf459028a4d4db | [
"MIT"
] | null | null | null | #include "Import.h"
#include "Feeder.h"
#include "Environment.h"
using namespace std;
Import::Import(Feeder *f, Environment *env) : Element(f,env)
{
}
Import::~Import()
{
}
bool Import::eval(void)//nothing to do here
{
return true;
}
int Import::exec(void)
{
return 0;
}
bool Import::parse(void)
{
int prev_ln,pr... | 15.315789 | 60 | 0.672394 | ryo1kato |
af193534a7f788df402117e98fc7a097e7b88188 | 1,291 | cpp | C++ | Code/Shortcut.cpp | JaumeMontagut/CITM_3_GameEngine | 57a85b89a72723ce555a4eec3830e6bf00499de9 | [
"MIT"
] | 1 | 2020-07-09T00:38:40.000Z | 2020-07-09T00:38:40.000Z | Code/Shortcut.cpp | YessicaSD/CITM_3_GameEngine | 57a85b89a72723ce555a4eec3830e6bf00499de9 | [
"MIT"
] | null | null | null | Code/Shortcut.cpp | YessicaSD/CITM_3_GameEngine | 57a85b89a72723ce555a4eec3830e6bf00499de9 | [
"MIT"
] | null | null | null | #include "Shortcut.h"
#include "ModuleInput.h"
#include "Application.h"
#include "ModuleGui.h"
Shortcut::Shortcut()
{
App->gui->shortcuts.push_back(this);
}
Shortcut::Shortcut(std::string name, std::vector<SDL_Scancode> keys) :
name(name),
keys(keys)
{
App->gui->shortcuts.push_back(this);
}
bool Shortcut::Presse... | 16.766234 | 146 | 0.605732 | JaumeMontagut |
af20b1b3d32d1da12d58c6ccd9111a60666e1821 | 127 | cpp | C++ | main.cpp | 234780/PAMSI1 | dd8d42e0a507c43c44976ac37562776b29da9a36 | [
"Apache-2.0"
] | null | null | null | main.cpp | 234780/PAMSI1 | dd8d42e0a507c43c44976ac37562776b29da9a36 | [
"Apache-2.0"
] | null | null | null | main.cpp | 234780/PAMSI1 | dd8d42e0a507c43c44976ac37562776b29da9a36 | [
"Apache-2.0"
] | null | null | null | #include "drzewo.hh"
#include <iostream>
using namespace std;
int main(){
Drzewo drzewo;
drzewo.Obsluz();
return 1;
}
| 10.583333 | 20 | 0.669291 | 234780 |
af22b3a19bb5582f668c8c03953652b824ecb26e | 4,327 | cpp | C++ | src/org/apache/poi/hssf/dev/EFBiffViewer.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/hssf/dev/EFBiffViewer.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/hssf/dev/EFBiffViewer.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/hssf/dev/EFBiffViewer.java
#include <org/apache/poi/hssf/dev/EFBiffViewer.hpp>
#include <java/io/File.hpp>
#include <java/io/InputStream.hpp>
#include <java/io/PrintStream.hpp>
#include <java/io/Serializable.hpp>
#include <java/lang/ArrayStoreException.hpp>
#include <java/lan... | 31.355072 | 179 | 0.635775 | pebble2015 |
af25f143725a4814bd73dcdf2194ab8f453efca0 | 2,797 | hpp | C++ | ui_webview/src/win/webview.hpp | Berrysoft/XamlCpp | cc7da0cf83892ceb88926292b7c90b9f8da6128d | [
"MIT"
] | 27 | 2020-01-02T07:40:57.000Z | 2022-03-09T14:43:56.000Z | ui_webview/src/win/webview.hpp | Berrysoft/XamlCpp | cc7da0cf83892ceb88926292b7c90b9f8da6128d | [
"MIT"
] | null | null | null | ui_webview/src/win/webview.hpp | Berrysoft/XamlCpp | cc7da0cf83892ceb88926292b7c90b9f8da6128d | [
"MIT"
] | 3 | 2020-05-21T07:02:08.000Z | 2021-07-01T00:56:38.000Z | #ifndef XAML_UI_WEBVIEW_NATIVE_WEBVIEW_HPP
#define XAML_UI_WEBVIEW_NATIVE_WEBVIEW_HPP
#include <Windows.h>
#include <xaml/delegate.h>
#include <xaml/ui/controls/webview.h>
struct xaml_win32_webview
{
public:
virtual ~xaml_win32_webview() {}
virtual xaml_result create_async(HWND parent, xaml_rectangle const& r... | 58.270833 | 156 | 0.448695 | Berrysoft |
af27ba4f2631e3670920888e39a74762edb38888 | 175 | cpp | C++ | demo/ci_cmp.cpp | Jim-CodeHub/libMIME | 5027372f2d30f72f357af2ae8cc8525e7925de2c | [
"Apache-2.0"
] | 1 | 2020-05-13T04:23:28.000Z | 2020-05-13T04:23:28.000Z | demo/ci_cmp.cpp | Jim-CodeHub/libMIME | 5027372f2d30f72f357af2ae8cc8525e7925de2c | [
"Apache-2.0"
] | null | null | null | demo/ci_cmp.cpp | Jim-CodeHub/libMIME | 5027372f2d30f72f357af2ae8cc8525e7925de2c | [
"Apache-2.0"
] | 1 | 2022-02-24T20:02:48.000Z | 2022-02-24T20:02:48.000Z | #include <libmime/mime.hpp>
#include <iostream>
using namespace std;
using namespace NS_LIBMIME;
int main(void)
{
cout << util::string_cmp_ci("ABC", "aBc");
return 0;
}
| 12.5 | 43 | 0.697143 | Jim-CodeHub |
af28251ffc02f63684f59ead764adf81c5b0c0c2 | 1,273 | cpp | C++ | codeforces/417div2/C/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | codeforces/417div2/C/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | 19 | 2016-05-04T02:46:31.000Z | 2021-11-27T06:18:33.000Z | codeforces/417div2/C/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
typedef long long int lli;
typedef unsigned long long ull;
typedef complex<double> point;
template<typename P, typename Q>
ostream& operator << (ostream& os, pair<P, Q> p)
{
os << "(" << p.first <<... | 19.584615 | 54 | 0.500393 | Johniel |
af2afa943711b4c08d42bd29998708d7f48e2f9a | 9,633 | cc | C++ | query/UnitMetadata.cc | celeritas-project/orange-port | 9aa2d36984a24a02ed6d14688a889d4266f7b1af | [
"Apache-2.0",
"MIT"
] | null | null | null | query/UnitMetadata.cc | celeritas-project/orange-port | 9aa2d36984a24a02ed6d14688a889d4266f7b1af | [
"Apache-2.0",
"MIT"
] | null | null | null | query/UnitMetadata.cc | celeritas-project/orange-port | 9aa2d36984a24a02ed6d14688a889d4266f7b1af | [
"Apache-2.0",
"MIT"
] | null | null | null | //---------------------------------*-C++-*-----------------------------------//
/*!
* \file query/UnitMetadata.cc
* \brief UnitMetadata class definitions
* \note Copyright (c) 2020 Oak Ridge National Laboratory, UT-Battelle, LLC.
*/
//---------------------------------------------------------------------------//
... | 28.5 | 80 | 0.465795 | celeritas-project |
af2f12bf5158820e1162b96fe09d71f746b4c7bd | 10,939 | cpp | C++ | KingArthursEditor/src/main.cpp | numpad/kagedit | 5aec40cafd92d303e03be5a576f89a4891a4a994 | [
"Zlib"
] | null | null | null | KingArthursEditor/src/main.cpp | numpad/kagedit | 5aec40cafd92d303e03be5a576f89a4891a4a994 | [
"Zlib"
] | null | null | null | KingArthursEditor/src/main.cpp | numpad/kagedit | 5aec40cafd92d303e03be5a576f89a4891a4a994 | [
"Zlib"
] | null | null | null | #define SOL_CHECK_ARGUMENTS 1
#include <iostream>
#include <string>
#include <vector>
#include <tuple>
#include <unordered_map>
#include <memory>
#include <string.h>
#include <stdio.h>
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/glm.hpp>
#include <SFML/Graphics.hpp>
#include <imgui.h>
#include <imgui_impl.h>
#incl... | 25.439535 | 134 | 0.647408 | numpad |
af316c0b72d3e37f82bb7c1ed10b873435bf7e1a | 719 | cpp | C++ | src/zigzag-conversion.cpp | yangzhiyuan0928/LeetCode | 6d7517be27987b56b320d8ca63baccee26b6e383 | [
"MIT"
] | null | null | null | src/zigzag-conversion.cpp | yangzhiyuan0928/LeetCode | 6d7517be27987b56b320d8ca63baccee26b6e383 | [
"MIT"
] | null | null | null | src/zigzag-conversion.cpp | yangzhiyuan0928/LeetCode | 6d7517be27987b56b320d8ca63baccee26b6e383 | [
"MIT"
] | null | null | null | #include <string>
using namespace std;
class Solution {
public:
string convert(string s, int numRows) {
int len = s.length();
int m = numRows;
if (m <= 1)
return s;
int row;
string res = "";
for (int i = 0; i < len; i += 2 * m - 2)//row == 0
res.push_back(s[i]);
for (row = 1; ... | 18.435897 | 63 | 0.438108 | yangzhiyuan0928 |
af31ce0cbac181b72df9a88533fef7a466162913 | 3,780 | cpp | C++ | Code/SimplexNoise.cpp | Bramah-Taylor/Heightmap-Terrain | 32efe5e5df8073248b2b4524c725e9e9ef1fa89a | [
"MIT"
] | 1 | 2019-01-27T18:02:42.000Z | 2019-01-27T18:02:42.000Z | Code/SimplexNoise.cpp | Bramah-Taylor/Heightmap-Terrain | 32efe5e5df8073248b2b4524c725e9e9ef1fa89a | [
"MIT"
] | null | null | null | Code/SimplexNoise.cpp | Bramah-Taylor/Heightmap-Terrain | 32efe5e5df8073248b2b4524c725e9e9ef1fa89a | [
"MIT"
] | 1 | 2021-04-29T14:44:46.000Z | 2021-04-29T14:44:46.000Z | #include "SimplexNoise.h"
SimplexNoise::SimplexNoise()
{
for (int i = 0; i<512; i++)
{
perm[i] = p[i & 255];
permMod12[i] = (short)(perm[i] % 12);
}
}
int SimplexNoise::fastfloor(double x) {
int xi = (int)x;
return x<xi ? xi - 1 : xi;
}
double SimplexNoise::dot(Grad g, double x, double y, double z) {... | 20.883978 | 84 | 0.528571 | Bramah-Taylor |
af322fcd25612b7d3ecc0c7eb624d1b1a7b950b1 | 2,237 | cc | C++ | src/brickred/signal_queue.cc | kaienkira/brickred-server | 59e6fc005f9a0201615b41acfac126d3bb36af1f | [
"MIT"
] | 4 | 2015-10-18T01:55:18.000Z | 2021-03-16T12:46:45.000Z | src/brickred/signal_queue.cc | kaienkira/brickred-server | 59e6fc005f9a0201615b41acfac126d3bb36af1f | [
"MIT"
] | null | null | null | src/brickred/signal_queue.cc | kaienkira/brickred-server | 59e6fc005f9a0201615b41acfac126d3bb36af1f | [
"MIT"
] | 3 | 2015-10-18T01:52:46.000Z | 2021-03-16T12:46:46.000Z | #include <brickred/signal_queue.h>
#include <brickred/exception.h>
#include <brickred/io_service.h>
#include <brickred/self_pipe.h>
namespace brickred {
class SignalQueue::Impl {
public:
using RecvSignalCallback = SignalQueue::RecvSignalCallback;
Impl(IOService &io_service);
~Impl();
IOService *get... | 21.509615 | 79 | 0.646401 | kaienkira |
af338528f27ccda058c0b5cbcc6e75c66f262426 | 4,244 | cpp | C++ | DreamDaq/codeBackup/DreamDaq.101104/myFIFOSampler.cpp | ivivarel/DREMTubes | ac768990b4c5e2c23d986284ed10189f31796b38 | [
"MIT"
] | 3 | 2021-07-22T12:17:48.000Z | 2021-07-27T07:22:54.000Z | DreamDaq/codeBackup/DreamDaq.101104/myFIFOSampler.cpp | ivivarel/DREMTubes | ac768990b4c5e2c23d986284ed10189f31796b38 | [
"MIT"
] | 38 | 2021-07-14T15:41:04.000Z | 2022-03-29T14:18:20.000Z | DreamDaq/codeBackup/DreamDaq.101104/myFIFOSampler.cpp | ivivarel/DREMTubes | ac768990b4c5e2c23d986284ed10189f31796b38 | [
"MIT"
] | 7 | 2021-07-21T12:00:33.000Z | 2021-11-13T10:45:30.000Z | //$Id: myFIFOSampler.cpp,v 1.2 2006/10/30 02:08:33 cvsdream Exp $
#include <iostream>
#include "myFIFOSampler.h"
#include "myFIFO-IOp.h"
using namespace std;
myFIFO::result myFIFOSampler::read(unsigned int *buf, unsigned int *size){
if(internalData->status!=myFIFO::LOCKEDFORSM
&& internalData->status!=myFIF... | 40.419048 | 188 | 0.628181 | ivivarel |
af3aaad5af0eded481c343de7f0cf6fcc4d290c6 | 7,979 | hpp | C++ | algorithm/ikhamming_index.hpp | ZJULearning/hashingSearch | ee6f81a72111ed1e0837bc70ea107c0fcafed899 | [
"BSD-2-Clause"
] | 26 | 2018-03-02T15:53:09.000Z | 2021-12-21T02:49:31.000Z | algorithm/ikhamming_index.hpp | ZJULearning/hashingSearch | ee6f81a72111ed1e0837bc70ea107c0fcafed899 | [
"BSD-2-Clause"
] | null | null | null | algorithm/ikhamming_index.hpp | ZJULearning/hashingSearch | ee6f81a72111ed1e0837bc70ea107c0fcafed899 | [
"BSD-2-Clause"
] | 6 | 2019-10-29T00:51:02.000Z | 2021-01-29T21:32:43.000Z | #ifndef EFANNA_IKHAMMING_INDEX_H_
#define EFANNA_IKHAMMING_INDEX_H_
#include "algorithm/base_index.hpp"
#include <boost/dynamic_bitset.hpp>
#include <time.h>
//for Debug
#include <iostream>
#include <fstream>
#include <string>
#include <unordered_map>
#include <map>
#include <sstream>
#include <set>
#include <numeric>... | 24.550769 | 183 | 0.655972 | ZJULearning |
af44fb8909ffaf986fd170daf14397be098d5f3f | 2,582 | hh | C++ | elements/lvnfs/scyllas1monitor.hh | joncnet/empower-lvap-agent | 483afcd2213cb12fe668c913ffcce60e0d9b4b62 | [
"Apache-1.1"
] | 1 | 2020-11-24T08:45:13.000Z | 2020-11-24T08:45:13.000Z | elements/lvnfs/scyllas1monitor.hh | joncnet/empower-lvap-agent | 483afcd2213cb12fe668c913ffcce60e0d9b4b62 | [
"Apache-1.1"
] | null | null | null | elements/lvnfs/scyllas1monitor.hh | joncnet/empower-lvap-agent | 483afcd2213cb12fe668c913ffcce60e0d9b4b62 | [
"Apache-1.1"
] | 1 | 2021-01-23T20:22:02.000Z | 2021-01-23T20:22:02.000Z | #ifndef CLICK_SCYLLAS1MONITOR_HH
#define CLICK_SCYLLAS1MONITOR_HH
#include <click/element.hh>
#include <click/string.hh>
#include <click/hashmap.hh>
CLICK_DECLS
extern Vector <struct S1APMonitorElement> S1APMonElelist;
struct click_sctp {
private:
uint16_t _src_port;
uint16_t _dst_port;
uint32_t _tag;
... | 25.82 | 78 | 0.643687 | joncnet |
af467d2196302402f530489d86a6988013a188b3 | 3,546 | cpp | C++ | SpaceShooter/src/Engine/Math.cpp | tomasmartinsantos/SpaceShooter | 2d930cd9061ca7dbb8f00386cb26ead902f69eff | [
"Apache-2.0"
] | null | null | null | SpaceShooter/src/Engine/Math.cpp | tomasmartinsantos/SpaceShooter | 2d930cd9061ca7dbb8f00386cb26ead902f69eff | [
"Apache-2.0"
] | null | null | null | SpaceShooter/src/Engine/Math.cpp | tomasmartinsantos/SpaceShooter | 2d930cd9061ca7dbb8f00386cb26ead902f69eff | [
"Apache-2.0"
] | null | null | null | #include <math.h>
#include "Types.h"
#include "Math.h"
#define DEG2RAD 0.0174532925
#define RAD2DEG 57.2957795
float Log2(float x) {
return log(x) / log(2.0f);
}
float DegSin(float degrees) {
return (float)sin(DEG2RAD * degrees);
}
float DegCos(float degrees) {
return (float)cos(DEG2RAD * degrees);
}
... | 28.142857 | 181 | 0.625494 | tomasmartinsantos |
af4f0aac69b1d7cd410ecb5e63a2039e003d5051 | 1,166 | cpp | C++ | cpp/src/exercise/e0100/e0063.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | cpp/src/exercise/e0100/e0063.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | cpp/src/exercise/e0100/e0063.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | // https://leetcode-cn.com/problems/unique-paths-ii/
#include "extern.h"
class Solution {
public:
int uniquePathsWithObstacles(vector<vector<int>>& obstacleGrid) {
// int overflow could occur! use long long instead.
vector<vector<long long>> grid;
for (auto row : obstacleGrid) {
... | 29.897436 | 69 | 0.455403 | ajz34 |
af4fea910cad1fce46ff36634922d6ae61867d57 | 368 | cpp | C++ | Container/Main.cpp | nicolasgustafsson/GeneralContainer | 39cf78809721d7382dee73c24e227950f5b9e9d3 | [
"MIT"
] | null | null | null | Container/Main.cpp | nicolasgustafsson/GeneralContainer | 39cf78809721d7382dee73c24e227950f5b9e9d3 | [
"MIT"
] | null | null | null | Container/Main.cpp | nicolasgustafsson/GeneralContainer | 39cf78809721d7382dee73c24e227950f5b9e9d3 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Container.h"
#include "ContainerRequirements.h"
int main()
{
Container<int, Iterable, StableElements, ConstantDeletion> container;
container.Add(45);
container.Add(333);
container.Add(12);
container.Add(5);
container.Add(12);
for (auto&& bla : container)
{
std::cout <... | 17.52381 | 73 | 0.657609 | nicolasgustafsson |
af511f4dbc0e1db8642655d4280a34a37ccdae1a | 3,593 | cpp | C++ | MMOCoreORB/src/server/zone/objects/manufactureschematic/craftingvalues/CraftingValues.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 18 | 2017-02-09T15:36:05.000Z | 2021-12-21T04:22:15.000Z | MMOCoreORB/src/server/zone/objects/manufactureschematic/craftingvalues/CraftingValues.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 61 | 2016-12-30T21:51:10.000Z | 2021-12-10T20:25:56.000Z | MMOCoreORB/src/server/zone/objects/manufactureschematic/craftingvalues/CraftingValues.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 71 | 2017-01-01T05:34:38.000Z | 2022-03-29T01:04:00.000Z | /*
Copyright <SWGEmu>
See file COPYING for copying conditions.*/
#include "CraftingValues.h"
#include "server/zone/objects/manufactureschematic/ManufactureSchematic.h"
CraftingValues::CraftingValues() {
experimentalValuesMap.setNullValue(nullptr);
doHide = true;
setLoggingName("CraftingValues");
setLogging(... | 25.48227 | 120 | 0.701085 | V-Fib |
af51c62ca381511fee226fb4ce01b70f90d1dca8 | 5,369 | cpp | C++ | src/t/base/array3d.cpp | lolengine/lolengine | d1a0443e69de96611d739d4c374633c5371e6e81 | [
"WTFPL"
] | 4 | 2015-02-14T21:14:25.000Z | 2021-12-12T15:45:44.000Z | src/t/base/array3d.cpp | lolengine/lolengine | d1a0443e69de96611d739d4c374633c5371e6e81 | [
"WTFPL"
] | 3 | 2015-02-14T20:56:26.000Z | 2015-02-16T08:50:54.000Z | src/t/base/array3d.cpp | lolengine/lolengine | d1a0443e69de96611d739d4c374633c5371e6e81 | [
"WTFPL"
] | 1 | 2021-10-06T16:01:03.000Z | 2021-10-06T16:01:03.000Z | //
// Lol Engine — Unit tests
//
// Copyright © 2010—2020 Sam Hocevar <sam@hocevar.net>
//
// Lol Engine 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 terms of the Do What the Fuck You Want
// to Public License,... | 28.257895 | 71 | 0.52114 | lolengine |
af5256f743ddaf1153494bc064dd451901cb5dda | 3,799 | cpp | C++ | algorithm/getIntersectionNode.cpp | jmaoito/happyCoding | 59bb1b1b6d390b5f3cbfdd8d78d2383cd00565e4 | [
"Apache-2.0"
] | null | null | null | algorithm/getIntersectionNode.cpp | jmaoito/happyCoding | 59bb1b1b6d390b5f3cbfdd8d78d2383cd00565e4 | [
"Apache-2.0"
] | null | null | null | algorithm/getIntersectionNode.cpp | jmaoito/happyCoding | 59bb1b1b6d390b5f3cbfdd8d78d2383cd00565e4 | [
"Apache-2.0"
] | null | null | null | /***********************
LeetCode Intersection of Two Linked Lists
Write a program to find the node at which the intersection of two singly linked lists begins.
For example, the following two linked lists:
A: a1 → a2
↘
c1 → c2 → c3
... | 37.613861 | 113 | 0.625428 | jmaoito |
af5300086bb907771ae1ef9dfddc6d0f88903df5 | 4,433 | cpp | C++ | tc 160+/MiniPaint.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/MiniPaint.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/MiniPaint.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
int n, m;
int dp[50][50][51][3];
/* dp[i][j][k][l] is minimum possible number of wrong colors for the
first j chars of row i using ... | 37.567797 | 309 | 0.562599 | ibudiselic |
af555237cbed80d3e48c4ec6484b944334de3a81 | 6,457 | cpp | C++ | src/FlatheadCore/Private/Types/Impl/PrimitiveIMPL.cpp | AddictArts/Flathead | 3533fa9d3ee7d153d84ec36d4504c848bd77c6de | [
"MIT"
] | 7 | 2015-10-13T21:28:30.000Z | 2021-04-06T08:51:46.000Z | src/FlatheadCore/Private/Types/Impl/PrimitiveIMPL.cpp | AddictArts/Flathead | 3533fa9d3ee7d153d84ec36d4504c848bd77c6de | [
"MIT"
] | 7 | 2015-10-01T06:54:26.000Z | 2016-03-31T22:21:50.000Z | src/FlatheadCore/Private/Types/Impl/PrimitiveIMPL.cpp | AddictArts/Flathead | 3533fa9d3ee7d153d84ec36d4504c848bd77c6de | [
"MIT"
] | 3 | 2015-10-06T09:42:46.000Z | 2016-03-29T00:41:47.000Z | #include "stdafx.h"
#include "PrimitiveIMPL.h"
#include "v8.h"
using namespace Gneu::Types;
using namespace v8;
extern Isolate *g_CurrentVM;
extern Persistent<Context> g_GlobalContext;
PrimitiveIMPL::PrimitiveIMPL(v8::Handle<v8::Value> _value)
{
persisted_value.Reset(g_CurrentVM, _value);
}
bool PrimitiveIMPL::Is... | 29.35 | 84 | 0.763203 | AddictArts |
af57a217cb97ea64243bf10e8cea375afd3763d1 | 2,747 | cpp | C++ | src/advent2.cpp | arkadye/advent_of_code_2020 | 6652f6e0ab8c09312fbfbb5934c553c264c467cc | [
"CC0-1.0"
] | 2 | 2020-12-30T07:12:09.000Z | 2021-11-21T18:37:10.000Z | src/advent2.cpp | arkadye/advent_of_code_2020 | 6652f6e0ab8c09312fbfbb5934c553c264c467cc | [
"CC0-1.0"
] | null | null | null | src/advent2.cpp | arkadye/advent_of_code_2020 | 6652f6e0ab8c09312fbfbb5934c553c264c467cc | [
"CC0-1.0"
] | null | null | null | #include "../advent/advent2.h"
#include "../utils/istream_line_iterator.h"
#include "../utils/advent_utils.h"
#include <string>
#include <algorithm>
#include <vector>
#include <sstream>
#include <cassert>
#include <fstream>
namespace
{
struct PasswordData
{
std::string password;
int min_occuranc... | 25.201835 | 100 | 0.698944 | arkadye |
af5921b903650bf3263bbb792ac27e925abf2aa4 | 6,107 | hpp | C++ | test/test_adapters.hpp | tahonermann/text_view | 65740356488d0dd98b65f221c71c7b7377c813de | [
"MIT"
] | 144 | 2015-10-10T10:12:53.000Z | 2021-12-31T16:07:27.000Z | test/test_adapters.hpp | Quuxplusone/text_view | 65740356488d0dd98b65f221c71c7b7377c813de | [
"MIT"
] | 34 | 2016-01-22T03:52:53.000Z | 2018-08-04T01:56:06.000Z | test/test_adapters.hpp | Quuxplusone/text_view | 65740356488d0dd98b65f221c71c7b7377c813de | [
"MIT"
] | 19 | 2016-02-10T11:29:20.000Z | 2021-06-28T11:11:36.000Z | // Copyright (c) 2017, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.
#ifndef TEXT_VIEW_TEST_ADAPTERS_HPP // {
#define TEXT_VIEW_TEST_ADAPTERS_HPP
#include <iterator>
#incl... | 28.273148 | 81 | 0.623056 | tahonermann |
af5d39d691f3811163fe2d0a015c6fcb7106ad37 | 247 | cpp | C++ | solutions/0461.hamming-distance/0461.hamming-distance.1568630534.cpp | nettee/leetcode | 19aa8d54d64cce3679db5878ee0194fad95d8fa1 | [
"MIT"
] | 1 | 2021-01-14T06:01:02.000Z | 2021-01-14T06:01:02.000Z | solutions/0461.hamming-distance/0461.hamming-distance.1568630534.cpp | nettee/leetcode | 19aa8d54d64cce3679db5878ee0194fad95d8fa1 | [
"MIT"
] | 8 | 2018-03-27T11:47:19.000Z | 2018-11-12T06:02:12.000Z | solutions/0461.hamming-distance/0461.hamming-distance.1568630534.cpp | nettee/leetcode | 19aa8d54d64cce3679db5878ee0194fad95d8fa1 | [
"MIT"
] | 2 | 2020-04-30T09:47:01.000Z | 2020-12-03T09:34:08.000Z | class Solution {
public:
int hammingDistance(int x, int y) {
int dist = 0;
for (int i = 0; i < 32; i++) {
dist += (x & 1) ^ (y & 1);
x >>= 1;
y >>= 1;
}
return dist;
}
};
| 19 | 39 | 0.352227 | nettee |
af612159711cededd5032862d0d069f3787d50fb | 412 | cpp | C++ | codes/HDU/hdu5363.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/HDU/hdu5363.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/HDU/hdu5363.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
const int mod = 1000000007;
int pow_mod (long long x, int n) {
long long ans = 1;
while (n) {
if(n&1)
ans = ans * x % mod;
x = x * x % mod;
n >>= 1;
}
return ans;
}
int main () {
int cas, n;
scanf("%d", &cas);
while (cas--... | 14.714286 | 52 | 0.541262 | JeraKrs |
af642fdbc9198eb2a3041a6167b5a9d6784afc05 | 8,038 | cpp | C++ | SculptEngine/CppLib/src/Mesh/OctreeVisitorRetessellateInRange.cpp | ErwanLeGoffic/Tectrid | 81eb17410339c683905c0f7f16dc4f1dd6b6ddeb | [
"MIT"
] | 2 | 2019-12-14T02:06:52.000Z | 2022-01-12T19:25:03.000Z | SculptEngine/CppLib/src/Mesh/OctreeVisitorRetessellateInRange.cpp | ErwanLeGoffic/Tectrid | 81eb17410339c683905c0f7f16dc4f1dd6b6ddeb | [
"MIT"
] | 1 | 2020-02-08T07:34:49.000Z | 2020-02-08T07:34:49.000Z | SculptEngine/CppLib/src/Mesh/OctreeVisitorRetessellateInRange.cpp | ErwanLeGoffic/Tectrid | 81eb17410339c683905c0f7f16dc4f1dd6b6ddeb | [
"MIT"
] | 1 | 2019-01-27T22:32:49.000Z | 2019-01-27T22:32:49.000Z | #include "OctreeVisitorRetessellateInRange.h"
#include "Octree.h"
#include "Mesh.h"
//#define MULTI_PASS_RETESS
void VisitorRetessellateInRange::VisitEnter(OctreeCell& cell)
{
if(!cell.GetTrianglesIdx().empty() || !cell.GetVerticesIdx().empty())
{
Retessellate& retessellate = _mesh.GrabRetessellator();
unsigne... | 45.157303 | 139 | 0.766609 | ErwanLeGoffic |
af698595c1f5355c8feb78e9f36dcc84d2a562cb | 1,044 | cpp | C++ | tests/tests.cpp | chriku/cserial | 70fb65373d73757ef58c92195d5b4de0a7f3ba87 | [
"BSD-3-Clause"
] | null | null | null | tests/tests.cpp | chriku/cserial | 70fb65373d73757ef58c92195d5b4de0a7f3ba87 | [
"BSD-3-Clause"
] | null | null | null | tests/tests.cpp | chriku/cserial | 70fb65373d73757ef58c92195d5b4de0a7f3ba87 | [
"BSD-3-Clause"
] | null | null | null | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "cserial/avro.hpp"
#include "cserial/avro_variable.hpp"
#include "doctest.h"
#include <string>
struct file_content {
double x;
};
template <> struct cserial::serial<file_content> : serializer<"file_content", field<&file_content::x, "x">> {};
TEST_CASE("avro doubl... | 23.727273 | 111 | 0.680077 | chriku |
af71efb3ce1aaac67df16ac4928b7d31a291c61e | 84 | cpp | C++ | solutions/c++/1085.cpp | KyleMcB/leetcode_solutions-old | d544580c0af2d9405944e68014bba0486ab4434a | [
"Unlicense"
] | null | null | null | solutions/c++/1085.cpp | KyleMcB/leetcode_solutions-old | d544580c0af2d9405944e68014bba0486ab4434a | [
"Unlicense"
] | null | null | null | solutions/c++/1085.cpp | KyleMcB/leetcode_solutions-old | d544580c0af2d9405944e68014bba0486ab4434a | [
"Unlicense"
] | null | null | null | //I don't have a premuim subscription anymore so I can't retrive this solution :-()
| 42 | 83 | 0.738095 | KyleMcB |
5031a691e4cfcd5840d7672fbe10735c23004d63 | 1,569 | cpp | C++ | Official Windows Platform Sample/Windows 8.1 desktop samples/[C++]-Windows 8.1 desktop samples/Input Method Editor (IME) sample/C++/SampleIME/KeyHandlerEditSession.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/IME/cpp/SampleIME/KeyHandlerEditSession.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 1 | 2022-03-15T04:21:41.000Z | 2022-03-15T04:21:41.000Z | Samples/IME/cpp/SampleIME/KeyHandlerEditSession.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.000Z | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (c) Microsoft Corporation. All rights reserved
#include "Private.h"
#inclu... | 33.382979 | 125 | 0.616316 | zzgchina888 |
503400121dd16128e0df232905ab4efcd75c27a4 | 328 | cpp | C++ | main.cpp | JJPPeters/DM-Stack-Builder | add342b4b74abe81fa63206de28c560063f2d563 | [
"MIT"
] | 1 | 2015-08-28T10:39:44.000Z | 2015-08-28T10:39:44.000Z | main.cpp | JJPPeters/DM-Stack-Builder | add342b4b74abe81fa63206de28c560063f2d563 | [
"MIT"
] | 5 | 2015-09-07T09:20:48.000Z | 2018-11-14T10:45:10.000Z | main.cpp | JJPPeters/DM-Stack-Builder | add342b4b74abe81fa63206de28c560063f2d563 | [
"MIT"
] | 4 | 2015-10-09T11:14:07.000Z | 2021-02-21T01:40:08.000Z | #include "stdafx.h"
#include "DMPlugInMain.h"
#include "menuplugin.h"
// using MFC objects, like bitmaps or other resources inside DM, which are provided by a plugin, requires
// that the plugin is a MFC extension dll
extern AFX_EXTENSION_MODULE gPlugInExtensionModule = { NULL, NULL };
PluginUtilityClasses gTemplat... | 29.818182 | 105 | 0.783537 | JJPPeters |
50386b0ddbcaf81f509a1db5368f2ed19393c8f3 | 1,265 | cpp | C++ | Graph/TopologicalSort.cpp | Aman-Chopra/DataStructure-Algorithms | fc5ed6ebe97032200b93c1ade783d4a5ed2fdd25 | [
"MIT"
] | null | null | null | Graph/TopologicalSort.cpp | Aman-Chopra/DataStructure-Algorithms | fc5ed6ebe97032200b93c1ade783d4a5ed2fdd25 | [
"MIT"
] | 3 | 2016-06-09T07:46:15.000Z | 2017-05-06T07:56:18.000Z | Graph/TopologicalSort.cpp | Aman-Chopra/DataStructure-Algorithms | fc5ed6ebe97032200b93c1ade783d4a5ed2fdd25 | [
"MIT"
] | 4 | 2016-06-09T07:14:37.000Z | 2021-05-21T22:07:20.000Z | #include <iostream>
#include <vector>
#include <algorithm>
#include <queue>
using namespace std;
const int nodes = 5;
vector<int> res;
vector<bool> visited(nodes,false);
void topo_sort_bfs(int adj[][nodes])
{
vector<int> in_degree(nodes,0);
for(int i=0;i<nodes;i++)
{
for(int j=0;j<nodes;j++)
{
if(adj[i][j]... | 14.375 | 82 | 0.536759 | Aman-Chopra |
503dc630cdab2b3fc6ac949ac96f6c38ea27255c | 3,753 | hpp | C++ | renderer.hpp | nvpro-samples/vk_device_generated_cmds | 7c4ad63e431f7369a7a76769f92baa968fc7156f | [
"Apache-2.0"
] | 20 | 2020-03-17T23:48:47.000Z | 2022-03-29T04:23:59.000Z | renderer.hpp | nvpro-samples/vk_device_generated_cmds | 7c4ad63e431f7369a7a76769f92baa968fc7156f | [
"Apache-2.0"
] | 1 | 2021-01-10T04:50:40.000Z | 2021-01-10T04:50:40.000Z | renderer.hpp | nvpro-samples/vk_device_generated_cmds | 7c4ad63e431f7369a7a76769f92baa968fc7156f | [
"Apache-2.0"
] | 2 | 2020-07-26T06:05:59.000Z | 2021-01-10T00:29:54.000Z | /*
* Copyright (c) 2019-2021, NVIDIA CORPORATION. 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 ... | 30.024 | 129 | 0.626699 | nvpro-samples |
5045d154c6451a7d1a0b6cc83739fb825080c412 | 1,591 | cc | C++ | 079_Word_Search/lomyal.cc | lomyal/painter | db697d59fb88f18d7281b9d73300779bc5a6fb0c | [
"MIT"
] | null | null | null | 079_Word_Search/lomyal.cc | lomyal/painter | db697d59fb88f18d7281b9d73300779bc5a6fb0c | [
"MIT"
] | null | null | null | 079_Word_Search/lomyal.cc | lomyal/painter | db697d59fb88f18d7281b9d73300779bc5a6fb0c | [
"MIT"
] | null | null | null | class Solution {
public:
bool exist(vector<vector<char>>& board, string word) {
int m = board.size();
if (m == 0) {
return false;
}
int n = board[0].size();
if (n == 0) {
return false;
}
for (int i = 0; i < m; ++i) {
for (in... | 32.469388 | 103 | 0.423004 | lomyal |
504727084f750c83b733229f974809092548c592 | 12,531 | hpp | C++ | storage/TupleIdSequence.hpp | udippant/incubator-quickstep | 8169306c2923d68235ba3c0c8df4c53f5eee9a68 | [
"Apache-2.0"
] | 1 | 2021-08-22T19:16:59.000Z | 2021-08-22T19:16:59.000Z | storage/TupleIdSequence.hpp | udippant/incubator-quickstep | 8169306c2923d68235ba3c0c8df4c53f5eee9a68 | [
"Apache-2.0"
] | null | null | null | storage/TupleIdSequence.hpp | udippant/incubator-quickstep | 8169306c2923d68235ba3c0c8df4c53f5eee9a68 | [
"Apache-2.0"
] | null | null | null | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 31.564232 | 94 | 0.668183 | udippant |
504959240c705f4fd7d25ab12b2dfed0703919d9 | 4,993 | hpp | C++ | include/ocr_db_alloc.hpp | DaoWen/ocr-dballoc | e6af98f4168d93a46659c361b9a5856091cf73eb | [
"MIT"
] | null | null | null | include/ocr_db_alloc.hpp | DaoWen/ocr-dballoc | e6af98f4168d93a46659c361b9a5856091cf73eb | [
"MIT"
] | null | null | null | include/ocr_db_alloc.hpp | DaoWen/ocr-dballoc | e6af98f4168d93a46659c361b9a5856091cf73eb | [
"MIT"
] | null | null | null | #ifndef _OCR_DB_ALLOC_HPP_
#define _OCR_DB_ALLOC_HPP_
#include <cstddef>
#include <cassert>
#include <memory>
namespace Ocr {
namespace SimpleDbAllocator {
struct AllocatorState {
ptrdiff_t offset;
};
struct DbArenaHeader {
size_t size;
ptrdiff_t offse... | 32.212903 | 96 | 0.525335 | DaoWen |
5055c16f4c3f384dcfdc84cb0e3ab58fc1393d1a | 1,471 | cpp | C++ | source/plugin_dog/PluginDog.cpp | remileduc/qt_plugin_entrypoint | f0087c498fa4503cc9a976b23f84ac6f2fef02d2 | [
"MIT"
] | null | null | null | source/plugin_dog/PluginDog.cpp | remileduc/qt_plugin_entrypoint | f0087c498fa4503cc9a976b23f84ac6f2fef02d2 | [
"MIT"
] | null | null | null | source/plugin_dog/PluginDog.cpp | remileduc/qt_plugin_entrypoint | f0087c498fa4503cc9a976b23f84ac6f2fef02d2 | [
"MIT"
] | null | null | null | #include "PluginDog.hpp"
#include <memory>
#include <QMetaMethod>
#include <PluginManager.hpp>
PluginDog::PluginDog(QObject *parent) : QObject(parent)
{
}
const QString &PluginDog::name() const noexcept
{
static QString _name = "PluginDog";
return _name;
}
QString PluginDog::contents()
{
QString content = "I a... | 21.318841 | 111 | 0.691366 | remileduc |
5057ef84a2f6fa26583c672f343f85a6752358cd | 1,866 | cpp | C++ | tests/threading/UnitTest_LfStaticPool.cpp | azhirnov/AE | 31a42b9bf3bdd86304d565d66e4710e7d89d7392 | [
"MIT"
] | 2 | 2019-11-14T17:55:26.000Z | 2022-01-12T09:38:29.000Z | tests/threading/UnitTest_LfStaticPool.cpp | azhirnov/AE | 31a42b9bf3bdd86304d565d66e4710e7d89d7392 | [
"MIT"
] | null | null | null | tests/threading/UnitTest_LfStaticPool.cpp | azhirnov/AE | 31a42b9bf3bdd86304d565d66e4710e7d89d7392 | [
"MIT"
] | 1 | 2020-04-11T16:04:31.000Z | 2020-04-11T16:04:31.000Z | // Copyright (c) 2018-2020, Zhirnov Andrey. For more information see 'LICENSE'
#include "threading/Containers/LfStaticPool.h"
#include "../stl/UnitTest_Common.h"
using namespace AE::Threading;
namespace
{
static void LfStaticPool_Test1 ()
{
using T = DebugInstanceCounter< uint, 1 >;
T::ClearStatistic();
{... | 17.119266 | 79 | 0.554662 | azhirnov |
505f194316e25fda7716f19419e0626e6b247cce | 2,174 | cpp | C++ | src/transactions/manage_asset/CancelAssetRequestOpFrame.cpp | RomanTkachenkoDistr/SwarmCore | db0544758e7bb3c879778cfdd6946b9a72ba23ab | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | src/transactions/manage_asset/CancelAssetRequestOpFrame.cpp | RomanTkachenkoDistr/SwarmCore | db0544758e7bb3c879778cfdd6946b9a72ba23ab | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | src/transactions/manage_asset/CancelAssetRequestOpFrame.cpp | RomanTkachenkoDistr/SwarmCore | db0544758e7bb3c879778cfdd6946b9a72ba23ab | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | // Copyright 2014 Stellar Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0
#include "CancelAssetRequestOpFrame.h"
#include "ledger/LedgerDelta.h"
#include "ledger/EntryH... | 29.780822 | 112 | 0.733671 | RomanTkachenkoDistr |
505f7add3795210f25921752d743edd86c3e707f | 26,503 | cpp | C++ | src/WallTracing.cpp | guinzoo/rpg-path-finding | 75f466228f09041285cd0a2e56edf71ed689e21c | [
"MIT"
] | 37 | 2018-03-30T01:59:34.000Z | 2022-01-10T10:25:44.000Z | src/WallTracing.cpp | guinzoo/rpg-path-finding | 75f466228f09041285cd0a2e56edf71ed689e21c | [
"MIT"
] | null | null | null | src/WallTracing.cpp | guinzoo/rpg-path-finding | 75f466228f09041285cd0a2e56edf71ed689e21c | [
"MIT"
] | 9 | 2018-09-10T09:31:12.000Z | 2022-03-27T18:10:40.000Z |
#include "WallTracing.hpp"
#include "Map.hpp"
using namespace nook;
namespace {
const float kr2 = 1.08f;
const int kMaxIter = 20;
inline U32 getCell(int x, int y) {
U32 cell = 0;
cell |= map()->getCell(x - 1, y - 1)->walkable;
cell |= map()->getCell(x, y - 1)->walkable << 1;
... | 31.55119 | 115 | 0.404332 | guinzoo |
505f9ec3a0226f51723cf983d5a386e1fcf70f07 | 638 | cpp | C++ | src/DgLocation.cpp | aleruete/dggridR | dd21544dc6ded21a358f146999205c479394d935 | [
"MIT"
] | 116 | 2016-07-13T13:36:35.000Z | 2022-03-05T13:09:43.000Z | src/DgLocation.cpp | aleruete/dggridR | dd21544dc6ded21a358f146999205c479394d935 | [
"MIT"
] | 50 | 2016-07-19T14:07:03.000Z | 2022-03-20T00:26:31.000Z | src/DgLocation.cpp | aleruete/dggridR | dd21544dc6ded21a358f146999205c479394d935 | [
"MIT"
] | 18 | 2016-08-15T07:37:35.000Z | 2022-01-24T13:13:40.000Z | ////////////////////////////////////////////////////////////////////////////////
//
// DgLocation.cpp: DgLocation class implementation
//
// Version 6.1 - Kevin Sahr, 5/23/13
//
////////////////////////////////////////////////////////////////////////////////
#include "DgLocation.h"
///////////////////////////////////... | 29 | 80 | 0.247649 | aleruete |
506728b51b39bea6b7910c031fe51e64e4254fd6 | 2,627 | cpp | C++ | Nacro/SDK/FN_Announce_Gen_Quest_Conversation_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_Announce_Gen_Quest_Conversation_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_Announce_Gen_Quest_Conversation_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | // Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function Announce_Gen_Quest_Conversat... | 33.253165 | 176 | 0.762467 | Milxnor |
506aed8bffa742ea672797c60409dd1eaeb945a2 | 948 | cpp | C++ | moobuzz1.cpp | RandomGamer123/usacoexercises | e6707d0e2a5000639222ef9bf50749e62e2433cb | [
"MIT"
] | null | null | null | moobuzz1.cpp | RandomGamer123/usacoexercises | e6707d0e2a5000639222ef9bf50749e62e2433cb | [
"MIT"
] | null | null | null | moobuzz1.cpp | RandomGamer123/usacoexercises | e6707d0e2a5000639222ef9bf50749e62e2433cb | [
"MIT"
] | null | null | null | /*
ID: your_id_here
TASK: test
LANG: C++
*/
/* LANG can be C++11 or C++14 for those more recent releases */
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int N;
int main() {
ofstream fout("moobuzz.out");
ifstream fin("moobuzz.in");
fin >> N;
#if 0 /* This method w... | 17.236364 | 64 | 0.516878 | RandomGamer123 |
506bf87a50c51ef1b90a9d91b7275a8f6e6ee40e | 707 | hpp | C++ | experimental/Pomdog.Experimental/Actions/RemoveActorAction.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/Actions/RemoveActorAction.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/Actions/RemoveActorAction.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2018 mogemimi. Distributed under the MIT license.
#pragma once
#include "Pomdog.Experimental/Actions/Action.hpp"
#include "Pomdog.Experimental/Gameplay/Entity.hpp"
#include "Pomdog/Utility/Assert.hpp"
namespace Pomdog {
class RemoveActorAction final : public Action {
private:
bool isComple... | 19.638889 | 71 | 0.637907 | ValtoForks |
507046d982d2cdecb89bb53b372a0ba546c97c37 | 2,859 | cpp | C++ | Glass/src/Glass/InstanceRenderer.cpp | platinum1998/Glass | 2e204143d1268b3f59827758ec613946e835ee87 | [
"Apache-2.0"
] | 1 | 2019-10-12T23:15:27.000Z | 2019-10-12T23:15:27.000Z | Glass/src/Glass/InstanceRenderer.cpp | platinum1998/Glass | 2e204143d1268b3f59827758ec613946e835ee87 | [
"Apache-2.0"
] | null | null | null | Glass/src/Glass/InstanceRenderer.cpp | platinum1998/Glass | 2e204143d1268b3f59827758ec613946e835ee87 | [
"Apache-2.0"
] | null | null | null | #include "InstanceRenderer.h"
#include "EntityMesh.h"
#include "OpenGLTexture.h"
namespace Glass
{
GLuint loc_inumRows;
GLuint loc_ioffset;
void InstanceRenderer::Init(std::shared_ptr<Glass::OpenGLShader>& shader)
{
m_Shader = shader;
RendererCommands::Init();
m_SceneData.loc_view = m_Shader->LoadUniform(... | 32.488636 | 134 | 0.730675 | platinum1998 |
50730f9420549dd4c8ccff81d8308fca4db7e761 | 5,238 | cpp | C++ | src/TabularDataFile.cpp | kabukunz/asl | a439ed2e1295944c723b6483904e63fa6c8e2504 | [
"Apache-2.0"
] | 52 | 2018-03-23T11:52:17.000Z | 2022-02-22T15:48:07.000Z | src/TabularDataFile.cpp | kabukunz/asl | a439ed2e1295944c723b6483904e63fa6c8e2504 | [
"Apache-2.0"
] | 14 | 2018-06-22T07:05:08.000Z | 2021-05-07T10:06:29.000Z | src/TabularDataFile.cpp | kabukunz/asl | a439ed2e1295944c723b6483904e63fa6c8e2504 | [
"Apache-2.0"
] | 13 | 2018-04-06T08:38:50.000Z | 2021-12-03T16:35:28.000Z | #include <asl/TabularDataFile.h>
#include <ctype.h>
namespace asl {
void TabularDataFile::init()
{
_currCol = 0;
_dataStarted = false;
_separator = ',';
_decimal = '.';
_quote = '\"';
_flushEvery = 0;
_rowIndex = 0;
_quoteStrings = false;
}
TabularDataFile::TabularDataFile()
{
init();
}
... | 19.544776 | 84 | 0.546583 | kabukunz |
507779e2e6742ece0e87039d454fd055d0efadc4 | 733 | cpp | C++ | AudioGraph/extensions/AudioGraphUtilityLib/source/TTAudioGraphSplit.cpp | avilleret/JamomaCore | b09cfb684527980f30845f664e1f922005c24e60 | [
"BSD-3-Clause"
] | 31 | 2015-02-28T23:51:10.000Z | 2021-12-25T04:16:01.000Z | AudioGraph/extensions/AudioGraphUtilityLib/source/TTAudioGraphSplit.cpp | avilleret/JamomaCore | b09cfb684527980f30845f664e1f922005c24e60 | [
"BSD-3-Clause"
] | 126 | 2015-01-01T13:42:05.000Z | 2021-07-13T14:11:42.000Z | AudioGraph/extensions/AudioGraphUtilityLib/source/TTAudioGraphSplit.cpp | avilleret/JamomaCore | b09cfb684527980f30845f664e1f922005c24e60 | [
"BSD-3-Clause"
] | 14 | 2015-02-10T15:08:32.000Z | 2019-09-17T01:21:25.000Z | /** @file
*
* @ingroup audioGraphUtilityLib
*
* @brief split≈: divide multichannel signal into N smaller multichannel signals
*
* @details
*
* @authors Timothy Place
*
* @copyright Copyright © 2008 by Timothy Place @n
* This code is licensed under the terms of the "New BSD License" @n
* http://creativecommo... | 19.289474 | 80 | 0.74352 | avilleret |
5083af91057a6f07b550873481363b284871a98e | 1,640 | cpp | C++ | test/bthread_rwlock_unittest.cpp | PeterRK/brpc | 55c3177f53adac1bd149c5e80a7609b758ca7492 | [
"Apache-2.0"
] | 27 | 2019-04-11T07:57:29.000Z | 2022-03-26T11:34:22.000Z | test/bthread_rwlock_unittest.cpp | ww5365/brpc | 33538c6bb69f3151863707b2ebdeff74f93e4b65 | [
"Apache-2.0"
] | 1 | 2019-08-05T13:29:01.000Z | 2019-08-05T13:29:01.000Z | test/bthread_rwlock_unittest.cpp | ww5365/brpc | 33538c6bb69f3151863707b2ebdeff74f93e4b65 | [
"Apache-2.0"
] | 11 | 2017-12-28T03:22:45.000Z | 2022-02-09T09:19:48.000Z | // Copyright (c) 2014 Baidu, Inc.
// Author: Ge,Jun (gejun@baidu.com)
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <signal.h>
#include <gtest/gtest.h>
#include "butil/time.h"
#include "butil/macros.h"
namespace {
void* read_thread(void* arg) {
const size_t N = 10000;
#ifdef CHECK_RWLOCK
... | 24.848485 | 73 | 0.65061 | PeterRK |
5083eb913cc761d105528f1935927cc3972de6d3 | 190 | cpp | C++ | _site/Competitive Programming/ProjectEuler/P1.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 1 | 2019-06-10T04:39:49.000Z | 2019-06-10T04:39:49.000Z | _site/Competitive Programming/ProjectEuler/P1.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 2 | 2021-09-27T23:34:07.000Z | 2022-02-26T05:54:27.000Z | _site/Competitive Programming/ProjectEuler/P1.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 3 | 2019-06-23T14:15:08.000Z | 2019-07-09T20:40:58.000Z | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int main(){
ll cnt = 0;
for (int i = 0; i < 1000; ++i)
{
if(i%3 == 0 || i%5 == 0){
cnt += i;
}
}
cout<<cnt;
} | 13.571429 | 31 | 0.505263 | anujkyadav07 |
5089ace805c49f0356ce2a1a1dcf72faf73618a2 | 451 | hpp | C++ | P-HOT/libs/idx/benchmark-helpers/include/idx/benchmark/UpdateEvent.hpp | lgc0502/RECIPE | 94dc38ff5a77e845b9176027457da36a4801d267 | [
"Apache-2.0"
] | 174 | 2019-08-16T04:19:32.000Z | 2022-03-18T09:04:15.000Z | P-HOT/libs/idx/benchmark-helpers/include/idx/benchmark/UpdateEvent.hpp | lgc0502/RECIPE | 94dc38ff5a77e845b9176027457da36a4801d267 | [
"Apache-2.0"
] | 14 | 2019-10-09T21:16:16.000Z | 2022-03-23T09:18:46.000Z | P-HOT/libs/idx/benchmark-helpers/include/idx/benchmark/UpdateEvent.hpp | lgc0502/RECIPE | 94dc38ff5a77e845b9176027457da36a4801d267 | [
"Apache-2.0"
] | 41 | 2019-09-17T06:49:54.000Z | 2022-03-23T06:32:28.000Z | #ifndef __IDX__BENCHMARK__UPDATE_EVENT__HPP__
#define __IDX__BENCHMARK__UPDATE_EVENT__HPP__
#include <idx/contenthelpers/ValueToKeyTypeMapper.hpp>
#include <idx/contenthelpers/OptionalValue.hpp>
namespace idx { namespace benchmark {
template<typename ValueType, template <typename> typename KeyExtractor> struct Updat... | 22.55 | 92 | 0.815965 | lgc0502 |
5089cf5846ee768eb1d0d85ec7072bbaabe59680 | 10,103 | cpp | C++ | vst2.x-plugins/minihost/source/minihost.cpp | perivar/vstsdk | f9103e59e64019223bdf1b9b1a39b4ed410f469b | [
"NASA-1.3"
] | 3 | 2020-08-04T11:36:57.000Z | 2021-03-30T14:25:35.000Z | vst2.x-plugins/minihost/source/minihost.cpp | perivar/vstsdk | f9103e59e64019223bdf1b9b1a39b4ed410f469b | [
"NASA-1.3"
] | null | null | null | vst2.x-plugins/minihost/source/minihost.cpp | perivar/vstsdk | f9103e59e64019223bdf1b9b1a39b4ed410f469b | [
"NASA-1.3"
] | 1 | 2020-05-21T12:10:10.000Z | 2020-05-21T12:10:10.000Z | //-------------------------------------------------------------------------------------------------------
// VST Plug-Ins SDK
// Version 2.4 $Date: 2006/11/13 09:08:28 $
//
// Category : VST 2.x SDK Samples
// Filename : minihost.cpp
// Created by : Steinberg
// Description : VST Mini Host
//
// � 2006, Ste... | 29.540936 | 140 | 0.591211 | perivar |
508d9a415bfe9e939708095158c4205270e6b6c0 | 2,116 | cpp | C++ | codes/UVA/01001-01999/uva1045.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/UVA/01001-01999/uva1045.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/UVA/01001-01999/uva1045.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <cstdlib>
#include <vector>
#include <algorithm>
using namespace std;
const int maxn = 20;
const int inf = 0x3f3f3f3f;
int N, L[maxn], Lx[maxn], Ly[maxn], slack[maxn];
int X[maxn], Y[maxn], W[maxn][maxn];
bool S[maxn], T[maxn];
void setCol (int c) {
for (int i = 1; i <=... | 19.236364 | 59 | 0.437146 | JeraKrs |
508eb51ab9827a16a065273e537e838d0fa2ff09 | 11,131 | cpp | C++ | Program Launcher/TabCtrl.cpp | barty32/program-launcher | f29277dda09f753e39258ff17af3b8c15d2504dc | [
"MIT"
] | null | null | null | Program Launcher/TabCtrl.cpp | barty32/program-launcher | f29277dda09f753e39258ff17af3b8c15d2504dc | [
"MIT"
] | null | null | null | Program Launcher/TabCtrl.cpp | barty32/program-launcher | f29277dda09f753e39258ff17af3b8c15d2504dc | [
"MIT"
] | null | null | null | // Modified implementation of Drag and Drop tab control
//
// Original source: http://www.suodenjoki.dk/us/productions/articles/dragdroptab.htm
//
#include "pch.h"
#include "Program Launcher.h"
#ifndef COLOR_HOTLIGHT
#define COLOR_HOTLIGHT 26
#endif
#define INDICATOR_WIDTH 2
#define INDICATOR_COLOR COLOR_HOTLIG... | 30.748619 | 98 | 0.621328 | barty32 |
508f804fd3bf340f2a96b9fd0fb822757837afe5 | 754 | hpp | C++ | dep/binary_semaphore.hpp | lilesper/SparseVoxelOctree | 9c4c79ab746758d21070bb733dafe4f78438e4b5 | [
"MIT"
] | 338 | 2019-08-02T03:57:05.000Z | 2022-03-29T20:49:21.000Z | dep/binary_semaphore.hpp | lilesper/SparseVoxelOctree | 9c4c79ab746758d21070bb733dafe4f78438e4b5 | [
"MIT"
] | 12 | 2020-01-10T09:03:22.000Z | 2022-03-25T02:03:23.000Z | dep/binary_semaphore.hpp | lilesper/SparseVoxelOctree | 9c4c79ab746758d21070bb733dafe4f78438e4b5 | [
"MIT"
] | 36 | 2019-08-08T11:15:23.000Z | 2022-02-26T00:31:13.000Z | #ifndef BINARY_SEMAPHORE_HPP
#define BINARY_SEMAPHORE_HPP
#include <condition_variable>
#include <mutex>
class binary_semaphore {
public:
inline binary_semaphore() : m_state(false) {}
inline explicit binary_semaphore(bool state) : m_state(state) {}
inline void wait() {
std::unique_lock<std::mutex> lk(m_mtx);
... | 18.390244 | 65 | 0.676393 | lilesper |
5094a33154c19d36296a138503705fe6f693cd3d | 423 | cpp | C++ | Cpp_primer_5th/code_part8/Perseoninfo.cpp | Links789/Cpp_primer_5th | 18a60b75c358a79fdf006f8cb978c9be6e6aedd5 | [
"MIT"
] | null | null | null | Cpp_primer_5th/code_part8/Perseoninfo.cpp | Links789/Cpp_primer_5th | 18a60b75c358a79fdf006f8cb978c9be6e6aedd5 | [
"MIT"
] | null | null | null | Cpp_primer_5th/code_part8/Perseoninfo.cpp | Links789/Cpp_primer_5th | 18a60b75c358a79fdf006f8cb978c9be6e6aedd5 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <sstream>
using namespace std;
struct PersonInfo{
string name;
vector<string> phones;
};
int main(){
string line,word;
vector<PersonInfo> people;
while(getline(cin,line)){
PersonInfo info;
istringstream record(line);
record >> info.name;
... | 15.666667 | 31 | 0.692671 | Links789 |
509d06e2831ba8832e6f26514ad7a4c7f31dac56 | 1,604 | cpp | C++ | Samples/XamlNavigation/cpp/CommandBarPage.xaml.cpp | lythix/Windows-universal-samples | 773db9338b5de0b1058097f77ad3ac68dbc0a73d | [
"MIT"
] | 2 | 2018-02-12T04:08:43.000Z | 2018-12-25T14:43:06.000Z | Samples/XamlNavigation/cpp/CommandBarPage.xaml.cpp | asydhom/Windows-universal-samples | f6ad9bc1b5d85660b4544adebbc9a6d9db9a2246 | [
"MIT"
] | null | null | null | Samples/XamlNavigation/cpp/CommandBarPage.xaml.cpp | asydhom/Windows-universal-samples | f6ad9bc1b5d85660b4544adebbc9a6d9db9a2246 | [
"MIT"
] | 1 | 2021-01-23T02:54:00.000Z | 2021-01-23T02:54:00.000Z | //
// CommandBarPage.xaml.cpp
// Implementation of the CommandBarPage class
//
#include "pch.h"
#include "CommandBarPage.xaml.h"
#include "PageHeader.xaml.h"
using namespace NavigationMenuSample::Views;
using namespace Platform;
using namespace Windows::Graphics::Display;
using namespace Windows::Found... | 33.416667 | 94 | 0.708853 | lythix |
50a05bd202947781c6cef4745ac4c4a2a676df40 | 6,211 | cpp | C++ | src/stm32_pwr.cpp | andreili/STM32F4 | 9054d699ec1f65e7de8aa5dd7d3ee0522dad18dc | [
"MIT"
] | 6 | 2019-04-16T11:38:45.000Z | 2020-12-12T16:55:03.000Z | src/stm32_pwr.cpp | andreili/STM32F4 | 9054d699ec1f65e7de8aa5dd7d3ee0522dad18dc | [
"MIT"
] | 1 | 2020-12-15T10:45:53.000Z | 2021-02-22T11:59:19.000Z | src/stm32_pwr.cpp | andreili/STM32F4 | 9054d699ec1f65e7de8aa5dd7d3ee0522dad18dc | [
"MIT"
] | 2 | 2019-05-23T03:08:25.000Z | 2020-10-10T12:43:06.000Z | #include "stm32_inc.h"
namespace STM32
{
constexpr std::uint32_t PWR_OVERDRIVE_TIMEOUT_VALUE = 1000U;
constexpr std::uint32_t PWR_UDERDRIVE_TIMEOUT_VALUE = 1000U;
constexpr std::uint32_t PWR_BKPREG_TIMEOUT_VALUE = 1000U;
constexpr std::uint32_t PWR_VOSRDY_TIMEOUT_VALUE = 1000U;
void PWR::deinit()
{
#if def... | 27.852018 | 101 | 0.655289 | andreili |
50a9b107a9b3bf89559cb69feb4ab1baa0d12c35 | 4,925 | cpp | C++ | ext/include/osgEarthAnnotation/AnnotationRegistry.cpp | energonQuest/dtEarth | 47b04bb272ec8781702dea46f5ee9a03d4a22196 | [
"MIT"
] | 6 | 2015-09-26T15:33:41.000Z | 2021-06-13T13:21:50.000Z | ext/include/osgEarthAnnotation/AnnotationRegistry.cpp | energonQuest/dtEarth | 47b04bb272ec8781702dea46f5ee9a03d4a22196 | [
"MIT"
] | null | null | null | ext/include/osgEarthAnnotation/AnnotationRegistry.cpp | energonQuest/dtEarth | 47b04bb272ec8781702dea46f5ee9a03d4a22196 | [
"MIT"
] | 5 | 2015-05-04T09:02:23.000Z | 2019-06-17T11:34:12.000Z | /* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2008-2013 Pelican Mapping
* http://osgearth.org
*
* osgEarth is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; e... | 28.970588 | 101 | 0.560812 | energonQuest |
270571051a18c241b640c4687063cc625877e253 | 738 | hpp | C++ | src/utils/Exceptions.hpp | JoseLuisC99/GraphDB | 63735389e0637746333b404583ae8e54ea309497 | [
"MIT"
] | null | null | null | src/utils/Exceptions.hpp | JoseLuisC99/GraphDB | 63735389e0637746333b404583ae8e54ea309497 | [
"MIT"
] | null | null | null | src/utils/Exceptions.hpp | JoseLuisC99/GraphDB | 63735389e0637746333b404583ae8e54ea309497 | [
"MIT"
] | null | null | null | #ifndef GRAPHDB_EXCEPTIONS_HPP
#define GRAPHDB_EXCEPTIONS_HPP
#include <exception>
#include <sstream>
class VertexIDCollisionException : public std::exception{
std::stringstream message;
public:
VertexIDCollisionException(uint64_t id){
message << "A vertex with the ID " << id << " already exists";
... | 22.363636 | 70 | 0.680217 | JoseLuisC99 |
271005a81133cb8f7cf42d0b6ffa4ee557c22155 | 4,184 | cpp | C++ | library/source/path_generation_vg.cpp | calvin456/intro_derivative_pricing | 0841fbc0344bee00044d67977faccfd2098b5887 | [
"MIT"
] | 5 | 2016-12-28T16:07:38.000Z | 2022-03-11T09:55:57.000Z | library/source/path_generation_vg.cpp | calvin456/intro_derivative_pricing | 0841fbc0344bee00044d67977faccfd2098b5887 | [
"MIT"
] | null | null | null | library/source/path_generation_vg.cpp | calvin456/intro_derivative_pricing | 0841fbc0344bee00044d67977faccfd2098b5887 | [
"MIT"
] | 5 | 2017-06-04T04:50:47.000Z | 2022-03-17T17:41:16.000Z | //path_generation_vg.cpp
#include <iostream>
#include <cmath>
#include <path_generation_vg.h>
using namespace std;
PathGenerationVG::PathGenerationVG(shared_ptr<RandomBase>& TheGenerator_,
double Spot0_,
double T_,
const Parameters& drift_,
co... | 27.168831 | 139 | 0.642686 | calvin456 |
2716754da3ffa62cda0c66f4c737b840f827d467 | 3,096 | cpp | C++ | main/main/CircleObject.cpp | kakol20/Shape-Strike | a852e10439fc46305aa29542419e2da4b0e49701 | [
"MIT"
] | null | null | null | main/main/CircleObject.cpp | kakol20/Shape-Strike | a852e10439fc46305aa29542419e2da4b0e49701 | [
"MIT"
] | null | null | null | main/main/CircleObject.cpp | kakol20/Shape-Strike | a852e10439fc46305aa29542419e2da4b0e49701 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "CircleObject.h"
CircleObject::CircleObject()
{
}
CircleObject::~CircleObject()
{
}
void CircleObject::init(int size) {
srand(time(0));
CircleShape tempCircle(size);
tempCircle.setOrigin(Vector2f(size, size));
tempCircle.setFillColor(Color(0, 102, 0, 255));
tempCircle.setOutline... | 24.967742 | 112 | 0.614018 | kakol20 |
272f6fe330e1ad2c5e2aa75071bb5dcacde4b79a | 1,459 | cpp | C++ | Project1/Project1/CBulb.cpp | DanielTongAwesome/System_Software_Projects | 5ce29e35f8906965c4c6a98d6abc5b5f15cfef36 | [
"MIT"
] | null | null | null | Project1/Project1/CBulb.cpp | DanielTongAwesome/System_Software_Projects | 5ce29e35f8906965c4c6a98d6abc5b5f15cfef36 | [
"MIT"
] | 2 | 2018-10-15T01:58:42.000Z | 2018-10-19T21:15:10.000Z | Project1/Project1/CBulb.cpp | DanielTongAwesome/System_Software_Projects | 5ce29e35f8906965c4c6a98d6abc5b5f15cfef36 | [
"MIT"
] | null | null | null | // CBulb.cpp: source file corresponding to pre-compiled header; necessary for compilation to succeed
#include <stdio.h>
#include "CBulb.h"
// In general, ignore this file, but keep it around if you are using pre-compiled headers.
// default constructor
CBulb::CBulb() {
state = 0;
watts = 0;
printf("C... | 17.369048 | 101 | 0.605894 | DanielTongAwesome |
273213c1b24210a86b936723dd5068b43ce8e068 | 1,334 | cpp | C++ | Source/NTGame/Private/NTGame_DebugHUD.cpp | AlCaTrAzzALZ/UE4-Networked-PhysX-Component | 15289c3ea2802b5b01d81222d9b6b2f89bd8ff0f | [
"MIT"
] | 12 | 2017-02-09T11:15:37.000Z | 2021-11-12T22:28:04.000Z | Source/NTGame/Private/NTGame_DebugHUD.cpp | blockspacer/UE4-Networked-PhysX-Component | 15289c3ea2802b5b01d81222d9b6b2f89bd8ff0f | [
"MIT"
] | null | null | null | Source/NTGame/Private/NTGame_DebugHUD.cpp | blockspacer/UE4-Networked-PhysX-Component | 15289c3ea2802b5b01d81222d9b6b2f89bd8ff0f | [
"MIT"
] | 12 | 2019-01-27T21:01:57.000Z | 2021-10-06T05:32:29.000Z | // Copyright (C) James Baxter 2017. All Rights Reserved.
#include "NTGame.h"
#include "NTGame_DebugHUD.h"
// Widgets
#include "NTGame_DebugWidget.h"
ANTGame_DebugHUD::ANTGame_DebugHUD(const FObjectInitializer& OI)
: Super(OI)
{
WidgetAsset_Debug = nullptr;
ActiveWidget_Debug = nullptr;
}
void ANTGame_DebugHUD::B... | 25.169811 | 104 | 0.732384 | AlCaTrAzzALZ |
273471360ca7d42c2168dbf15641368fdb7a13eb | 1,053 | cpp | C++ | Advanced-lost and found/A1036/A1036/main.cpp | Eric-Ma-C/PAT-Advanced | ea8b46a780a04b46ab35ebd06c4bf19c3a664380 | [
"MIT"
] | null | null | null | Advanced-lost and found/A1036/A1036/main.cpp | Eric-Ma-C/PAT-Advanced | ea8b46a780a04b46ab35ebd06c4bf19c3a664380 | [
"MIT"
] | null | null | null | Advanced-lost and found/A1036/A1036/main.cpp | Eric-Ma-C/PAT-Advanced | ea8b46a780a04b46ab35ebd06c4bf19c3a664380 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<vector>
#include<algorithm>
using namespace std;
//41min
typedef struct Stu{
long long id;
int grade,place,rank,rankLocal;
}Stu;
bool cmp(Stu s1,Stu s2){
if(s1.grade!=s2.grade)
return s1.grade>s2.grade;
else{
return s1.id<s2.id;
}
}
int main(){
int n,k;
scanf("%d",&n);
vector<Stu>... | 18.803571 | 83 | 0.583096 | Eric-Ma-C |
2734b1018b95fd119b296a8bbd4f35a54ac07117 | 548 | cpp | C++ | cmake/tests/cxx20_source_location.cpp | bhumitattarde/hpx | 5b34d8d77b1664fa552445d44cd98e51dc69a74a | [
"BSL-1.0"
] | 1 | 2022-02-08T05:55:09.000Z | 2022-02-08T05:55:09.000Z | cmake/tests/cxx20_source_location.cpp | deepaksuresh1411/hpx | aa18024d35fe9884a977d4b6076c764dbb8b26d1 | [
"BSL-1.0"
] | null | null | null | cmake/tests/cxx20_source_location.cpp | deepaksuresh1411/hpx | aa18024d35fe9884a977d4b6076c764dbb8b26d1 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2022 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// 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)
// test for availability of std::source_location (C++20)
#include <iostream>
#include... | 27.4 | 80 | 0.620438 | bhumitattarde |
2735e5a6d9167095b5b55c24696e7edbf8b914c1 | 361 | cpp | C++ | test/thintempl/test_thintempl.cpp | fox000002/ulib-win | 628c4a0b8193d1ad771aa85598776ff42a45f913 | [
"Apache-2.0"
] | 4 | 2016-09-07T07:02:52.000Z | 2019-06-22T08:55:53.000Z | test/thintempl/test_thintempl.cpp | fox000002/ulib-win | 628c4a0b8193d1ad771aa85598776ff42a45f913 | [
"Apache-2.0"
] | null | null | null | test/thintempl/test_thintempl.cpp | fox000002/ulib-win | 628c4a0b8193d1ad771aa85598776ff42a45f913 | [
"Apache-2.0"
] | 3 | 2019-06-22T16:00:39.000Z | 2022-03-09T13:46:27.000Z | #include <iostream>
using std::cout;
using std::endl;
class VectorBase
{
void insert(void *)
{
}
void *at(int index)
{
}
};
template <class T>
class Vector<T *> : VectorBase
{
inline void insert(T *t)
{
VectorBase::insert(t);
}
inline T *at(int index)
{
return VectorBase::at(index... | 9.025 | 33 | 0.573407 | fox000002 |
273ab589a0d4d5cf4c32ca12de0b280a70e47761 | 709 | cpp | C++ | RestApi/src/api/APIServer.cpp | fedexu/ArduinoPlayground | ddb4bade918385d85de83b3894a9856781c727ac | [
"MIT"
] | null | null | null | RestApi/src/api/APIServer.cpp | fedexu/ArduinoPlayground | ddb4bade918385d85de83b3894a9856781c727ac | [
"MIT"
] | null | null | null | RestApi/src/api/APIServer.cpp | fedexu/ArduinoPlayground | ddb4bade918385d85de83b3894a9856781c727ac | [
"MIT"
] | null | null | null | #include "APIServer.h"
#include "./api/user/UserController.h"
#include "./api/test/TestController.h"
void APIServer::initialize(int port)
{
server = new WebServer(port);
server->on("/", HTTP_GET, []() {
APIServer &apiServer = APIServer::getInstance();
apiServer.server->send(200, "text/plain", ... | 33.761905 | 129 | 0.610719 | fedexu |
273abce30727ee897e5f132990c9c75987806eaa | 834 | cpp | C++ | E7_Blur/DXFramework/Input.cpp | KingpinKeys/CMP301-Examples | 9da40deb61aec5a521abdda19a9b86efdeef5de1 | [
"MIT"
] | null | null | null | E7_Blur/DXFramework/Input.cpp | KingpinKeys/CMP301-Examples | 9da40deb61aec5a521abdda19a9b86efdeef5de1 | [
"MIT"
] | null | null | null | E7_Blur/DXFramework/Input.cpp | KingpinKeys/CMP301-Examples | 9da40deb61aec5a521abdda19a9b86efdeef5de1 | [
"MIT"
] | null | null | null | // Input class
// Functions for retrieving input events/state.
#include "Input.h"
void Input::SetKeyDown(WPARAM key)
{
keys[key] = true;
}
void Input::SetKeyUp(WPARAM key)
{
keys[key] = false;
}
bool Input::isKeyDown(int key)
{
return keys[key];
}
void Input::setMouseX(int xPosition)
{
mouse.x = xPosition;
}
v... | 12.447761 | 47 | 0.697842 | KingpinKeys |
2750dd78ccf9030c5741dd10371e6ba1e7b24a70 | 4,973 | cpp | C++ | test/scanner_test.cpp | Zplutor/tiex | f0390321c102c392d096c1abba76a718387c3252 | [
"MIT"
] | 3 | 2018-02-09T06:12:41.000Z | 2021-04-26T12:42:20.000Z | test/scanner_test.cpp | Zplutor/tiex | f0390321c102c392d096c1abba76a718387c3252 | [
"MIT"
] | null | null | null | test/scanner_test.cpp | Zplutor/tiex | f0390321c102c392d096c1abba76a718387c3252 | [
"MIT"
] | 2 | 2020-04-05T10:31:58.000Z | 2021-04-26T12:42:22.000Z | #include <gtest/gtest.h>
#include "tiex_scanner.h"
using namespace tiex;
using namespace tiex::internal;
TEST(Scanner, SkipWhiteSpaces) {
auto test = [](const std::string& string, std::size_t expected_index) {
Scanner<char> scanner(string.c_str(), string.length());
scanner.SkipWhiteSpaces();
... | 29.252941 | 85 | 0.608084 | Zplutor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.