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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
02886c0d5b3d2ef911ea028d4e50894471323041 | 6,248 | cpp | C++ | platform-abstractions/tizen/resource-loader/resource-thread-image.cpp | pwisbey/dali-adaptor | 21d5e77316e53285fa1e210a93b13cf9889e3b54 | [
"Apache-2.0"
] | null | null | null | platform-abstractions/tizen/resource-loader/resource-thread-image.cpp | pwisbey/dali-adaptor | 21d5e77316e53285fa1e210a93b13cf9889e3b54 | [
"Apache-2.0"
] | null | null | null | platform-abstractions/tizen/resource-loader/resource-thread-image.cpp | pwisbey/dali-adaptor | 21d5e77316e53285fa1e210a93b13cf9889e3b54 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 30.778325 | 153 | 0.711908 | pwisbey |
028e5ec97bbaec3a476e32481d2a4f6b93c99e52 | 5,701 | cpp | C++ | src/Settings/RunawaySourceTerms.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 12 | 2020-09-07T11:19:10.000Z | 2022-02-17T17:40:19.000Z | src/Settings/RunawaySourceTerms.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 110 | 2020-09-02T15:29:24.000Z | 2022-03-09T09:50:01.000Z | src/Settings/RunawaySourceTerms.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 3 | 2021-05-21T13:24:31.000Z | 2022-02-11T14:43:12.000Z | /**
* Initialization of runaway source terms.
*/
#include "DREAM/Equations/Fluid/TritiumRateTerm.hpp"
#include "DREAM/Equations/Fluid/HottailRateTermHighZ.hpp"
#include "DREAM/Equations/Fluid/ExternalAvalancheTerm.hpp"
#include "DREAM/Equations/RunawaySourceTerm.hpp"
#include "DREAM/IO.hpp"
#include "DREAM/Settings/... | 50.008772 | 208 | 0.6776 | chalmersplasmatheory |
028e7cbdf1e43feb8ada7ee6eef1eac47839e56c | 13,358 | cpp | C++ | source/Bit/System/Bencode/BencodeValue.cpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | source/Bit/System/Bencode/BencodeValue.cpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | source/Bit/System/Bencode/BencodeValue.cpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | // Copyright (C) 2013 Jimmie Bergmann - jimmiebergmann@gmail.com
//
// 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... | 21.579968 | 118 | 0.59485 | jimmiebergmann |
029026b90ad7da546a8f342a6ffe4ea383f85c98 | 7,600 | hpp | C++ | Lab11/barista.hpp | NLaDuke/CSIII-Labs | 8f2658d6fcf6cc838bbef17bc5110a10c742bf0e | [
"MIT"
] | null | null | null | Lab11/barista.hpp | NLaDuke/CSIII-Labs | 8f2658d6fcf6cc838bbef17bc5110a10c742bf0e | [
"MIT"
] | null | null | null | Lab11/barista.hpp | NLaDuke/CSIII-Labs | 8f2658d6fcf6cc838bbef17bc5110a10c742bf0e | [
"MIT"
] | null | null | null | #ifndef BARISTA_HPP
#define BARISTA_HPP
#include "drink.hpp"
#include <string>
#include <iostream>
#include <unordered_set>
#include <deque>
#include <ctime>
#include <algorithm>
using std::cin; using std::cout;
using std::string; using std::endl;
//----------------------------
// File: barista.hpp
// By: Nolan LaD... | 28.04428 | 118 | 0.615263 | NLaDuke |
02975f410346e6c65299d093623b36bcdb28b09c | 1,531 | cpp | C++ | BOJ_solve/5804.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | 4 | 2021-01-27T11:51:30.000Z | 2021-01-30T17:02:55.000Z | BOJ_solve/5804.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | null | null | null | BOJ_solve/5804.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | 5 | 2021-01-27T11:46:12.000Z | 2021-05-06T05:37:47.000Z | #include <bits/stdc++.h>
#define x first
#define y second
#define pb push_back
#define all(v) v.begin(),v.end()
#pragma gcc optimize("O3")
#pragma gcc optimize("Ofast")
#pragma gcc optimize("unroll-loops")
using namespace std;
const int INF = 1e9;
const int TMX = 1 << 18;
const long long llINF = 2e18;
const long long ... | 23.553846 | 55 | 0.544089 | python-programmer1512 |
029ab28c0d8d12a4cebdeb14483fe8731bda23ad | 17,991 | cxx | C++ | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimSpaceBoundary.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 3 | 2016-05-30T15:12:16.000Z | 2022-03-22T08:11:13.000Z | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimSpaceBoundary.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 21 | 2016-06-13T11:33:45.000Z | 2017-05-23T09:46:52.000Z | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimSpaceBoundary.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | null | null | null | // Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... | 29.835821 | 132 | 0.617642 | EnEff-BIM |
029b4ad5e413faf728cfca0f64f0bf38fa38e055 | 1,003 | cpp | C++ | Codeforces/CF1618F.cpp | Nickel-Angel/Coding-Practice | 6fb70e9c9542323f82a9a8714727cc668ff58567 | [
"MIT"
] | null | null | null | Codeforces/CF1618F.cpp | Nickel-Angel/Coding-Practice | 6fb70e9c9542323f82a9a8714727cc668ff58567 | [
"MIT"
] | 1 | 2021-11-18T15:10:29.000Z | 2021-11-20T07:13:31.000Z | Codeforces/CF1618F.cpp | Nickel-Angel/ACM-and-OI | 79d13fd008c3a1fe9ebf35329aceb1fcb260d5d9 | [
"MIT"
] | null | null | null | /*
* @author Nickel_Angel (1239004072@qq.com)
* @copyright Copyright (c) 2021
*/
#include <algorithm>
#include <iostream>
#include <cstdio>
#include <cstring>
#include <set>
#include <string>
using std::set;
using std::string;
long long x, y;
string tar, ori;
set<string> cur;
void dfs(string s)
{
if (cur.count(... | 16.177419 | 42 | 0.461615 | Nickel-Angel |
029f7862c89879897231d107e993919270bfa276 | 1,241 | hpp | C++ | src/Event/KeyboardEvent.hpp | billy4479/BillyEngine | df7d519f740d5862c4743872dbf89b3654eeb423 | [
"MIT"
] | 1 | 2021-09-05T20:50:59.000Z | 2021-09-05T20:50:59.000Z | src/Event/KeyboardEvent.hpp | billy4479/sdl-tests | df7d519f740d5862c4743872dbf89b3654eeb423 | [
"MIT"
] | null | null | null | src/Event/KeyboardEvent.hpp | billy4479/sdl-tests | df7d519f740d5862c4743872dbf89b3654eeb423 | [
"MIT"
] | null | null | null | #pragma once
#include "Event.hpp"
#include "KeyCodes.hpp"
namespace BillyEngine {
class KeyboardEvent : public Event {
public:
KeyboardEvent(Key::KeyCode keyCode, Key::Mods::Mods mods)
: m_Key(keyCode), m_Mods(mods) {}
EVENT_CLASS_CATEGORY(EventCategory::Input | EventCategory::Keyboard)
Key::... | 24.82 | 76 | 0.65834 | billy4479 |
02a7a66dfb63a9527f9cb4ae8e89f1d70cb2a936 | 4,331 | cpp | C++ | lib/Parser/FunctionBuilder.cpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 80 | 2015-02-19T21:38:57.000Z | 2016-05-25T06:53:12.000Z | lib/Parser/FunctionBuilder.cpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 8 | 2015-02-20T09:47:20.000Z | 2015-11-13T07:49:17.000Z | lib/Parser/FunctionBuilder.cpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 6 | 2015-02-20T11:26:19.000Z | 2016-04-13T14:30:39.000Z | #include <locic/AST.hpp>
#include <locic/Debug/SourcePosition.hpp>
#include <locic/Parser/FunctionBuilder.hpp>
#include <locic/Parser/TokenReader.hpp>
namespace locic {
namespace Parser {
FunctionBuilder::FunctionBuilder(const TokenReader& reader)
: reader_(reader) { }
FunctionBuilder::~FunctionBuilder(... | 45.589474 | 94 | 0.641422 | scross99 |
02aa9fbddd18b0f443fd9499e88de2f5ab907888 | 198 | hh | C++ | Include/Zion/Main.hh | zionmultiplayer/Client | 291c027c4011cb1ab207c9b394fb5f4b1da8652c | [
"MIT"
] | 4 | 2022-02-08T07:04:49.000Z | 2022-02-09T23:43:49.000Z | Include/Zion/Main.hh | zionmultiplayer/Client | 291c027c4011cb1ab207c9b394fb5f4b1da8652c | [
"MIT"
] | null | null | null | Include/Zion/Main.hh | zionmultiplayer/Client | 291c027c4011cb1ab207c9b394fb5f4b1da8652c | [
"MIT"
] | null | null | null | #pragma once
#include "Game/CPad.h"
#include "Game/CPlayerPed.h"
namespace Zion
{
class Main
{
public:
static CPlayerPed *player;
static CPad *pad;
};
}; | 15.230769 | 38 | 0.560606 | zionmultiplayer |
02abbb2801446ddd72cdac1c1ee8d8876f2d97eb | 1,018 | hpp | C++ | src/metal-driver/pseudo_operators.hpp | metalfs/metal_fs | f244d4125622849f36bd7846881a5f3a7efca188 | [
"MIT"
] | 12 | 2020-04-21T05:21:32.000Z | 2022-02-19T11:27:18.000Z | src/metal-driver/pseudo_operators.hpp | metalfs/metal_fs | f244d4125622849f36bd7846881a5f3a7efca188 | [
"MIT"
] | 10 | 2019-02-10T17:10:16.000Z | 2020-02-01T20:05:42.000Z | src/metal-driver/pseudo_operators.hpp | metalfs/metal_fs | f244d4125622849f36bd7846881a5f3a7efca188 | [
"MIT"
] | 4 | 2020-07-15T04:42:20.000Z | 2022-02-19T11:27:19.000Z | #pragma once
#include <stdint.h>
#include <cxxopts.hpp>
namespace metal {
class OperatorAgent;
class DatagenOperator {
public:
static std::string id() { return "datagen"; }
static bool isDatagenAgent(const OperatorAgent &agent);
static void validate(OperatorAgent &agent);
static bool isProfilingEnabled(Op... | 24.238095 | 65 | 0.764244 | metalfs |
02abf685440a7045f4f1884222d8248747a38684 | 1,424 | cpp | C++ | util/Bip39.cpp | velezladonna/mwc-qt-wallet | bd241b91d28350e17e52a10208e663fcb992d7cc | [
"Apache-2.0"
] | 1 | 2020-03-19T10:02:16.000Z | 2020-03-19T10:02:16.000Z | util/Bip39.cpp | velezladonna/mwc-qt-wallet | bd241b91d28350e17e52a10208e663fcb992d7cc | [
"Apache-2.0"
] | null | null | null | util/Bip39.cpp | velezladonna/mwc-qt-wallet | bd241b91d28350e17e52a10208e663fcb992d7cc | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 The MWC Developers
//
// 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... | 27.384615 | 123 | 0.643258 | velezladonna |
02ad6389b3ff30b8ad3461909f013803a088a115 | 1,575 | hpp | C++ | include/humanity/io/file.hpp | crimsonwoods/humanity | 5c2cc601eb8823ca7c06a0bef5cde0122b4d067a | [
"MIT"
] | 1 | 2019-04-16T16:06:05.000Z | 2019-04-16T16:06:05.000Z | include/humanity/io/file.hpp | crimsonwoods/humanity | 5c2cc601eb8823ca7c06a0bef5cde0122b4d067a | [
"MIT"
] | null | null | null | include/humanity/io/file.hpp | crimsonwoods/humanity | 5c2cc601eb8823ca7c06a0bef5cde0122b4d067a | [
"MIT"
] | null | null | null | /**
* ファイルを扱うためのクラス定義ファイル
* @file file.hpp
*/
#ifndef HUMANITY_IO_FILE_H
#define HUMANITY_IO_FILE_H
#include <humanity/io/io.hpp>
HUMANITY_IO_NS_BEGIN
class path;
/**
* ファイルを扱うためのクラス
*/
class file {
public:
/**
* ファイルのモードを表す定数値群
*/
enum {
FMODE_USER_READ = 0400,
FMODE_USER_WRITE = 0200,
FMODE_U... | 27.155172 | 79 | 0.743492 | crimsonwoods |
02b389941a8f99833ac436c39a06ca1cd9194c53 | 72 | cpp | C++ | MailClient/sources/gui/Tasks.cpp | SRIIIXI/XDesk | 4324763a7d981bb3c335d153ebf27a6ddf1cfc13 | [
"BSD-2-Clause"
] | null | null | null | MailClient/sources/gui/Tasks.cpp | SRIIIXI/XDesk | 4324763a7d981bb3c335d153ebf27a6ddf1cfc13 | [
"BSD-2-Clause"
] | null | null | null | MailClient/sources/gui/Tasks.cpp | SRIIIXI/XDesk | 4324763a7d981bb3c335d153ebf27a6ddf1cfc13 | [
"BSD-2-Clause"
] | null | null | null | #include "Tasks.h"
Tasks::Tasks(QWidget *parent) : QWidget(parent)
{
}
| 12 | 47 | 0.680556 | SRIIIXI |
02b6fd676b8055976f0aff9d4ac0daf6de01459b | 16,979 | cpp | C++ | DocCluster/src/DCController.cpp | McGill-DMaS/FIHC | 6928f6fdf62f0e0de004623a8f956e4ca3b3afa1 | [
"Apache-2.0"
] | null | null | null | DocCluster/src/DCController.cpp | McGill-DMaS/FIHC | 6928f6fdf62f0e0de004623a8f956e4ca3b3afa1 | [
"Apache-2.0"
] | null | null | null | DocCluster/src/DCController.cpp | McGill-DMaS/FIHC | 6928f6fdf62f0e0de004623a8f956e4ca3b3afa1 | [
"Apache-2.0"
] | null | null | null | // DCController.cpp: implementation of the CDCController class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#if !defined(DCCONTROLLER_H)
#include "DCController.h"
#endif
#if !defined(DCKMEANSMGR_H)
#include "DCKMeansMgr.h"
#endif
#if !defined(D... | 30.428315 | 160 | 0.566464 | McGill-DMaS |
02ba104c1168ba8820fcfeb2afa53da656a9db43 | 2,194 | cpp | C++ | Code/GUI/ProgressBar.cpp | BomjSoft/BCL | f6863035d987b3fad184db8533d395d73beaf601 | [
"MIT"
] | null | null | null | Code/GUI/ProgressBar.cpp | BomjSoft/BCL | f6863035d987b3fad184db8533d395d73beaf601 | [
"MIT"
] | null | null | null | Code/GUI/ProgressBar.cpp | BomjSoft/BCL | f6863035d987b3fad184db8533d395d73beaf601 | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------
#include "ProgressBar.h"
//---------------------------------------------------------------------------
namespace bcl {
//---------------------------------------------------------------------------
CProgressBar::CProgressBar() : CComponen... | 30.472222 | 182 | 0.377393 | BomjSoft |
02babea15d1ecfd6da55df55bc1e7c4062d5c06d | 1,124 | cpp | C++ | codeforces/659/c.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | codeforces/659/c.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | codeforces/659/c.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | #include <iostream>
#include <cassert>
#include <cstring>
#include <vector>
#include <string>
#include <set>
#include <map>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
cin >> t;
while(t--){
int n;
cin >> n;
string a,b;
cin... | 21.615385 | 44 | 0.387011 | udayan14 |
02bcd3a4e6afc4dd03196b29ddf3d91bf9e1ff1b | 3,866 | cc | C++ | extern/glow-extras/material/glow-extras/material/IBL.cc | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | extern/glow-extras/material/glow-extras/material/IBL.cc | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | extern/glow-extras/material/glow-extras/material/IBL.cc | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | #include "IBL.hh"
#include <glow/common/str_utils.hh>
#include <glow/data/TextureData.hh>
#include <glow/objects/Program.hh>
#include <glow/objects/Texture2D.hh>
#include <glow/objects/TextureCubeMap.hh>
#include <glow/util/DefaultShaderParser.hh>
#ifdef GLOW_EXTRAS_EMBED_SHADERS
#include <glow-extras/generated/mater... | 30.68254 | 141 | 0.681324 | rovedit |
02be76086ccef99a5f863463431c62b50b535cad | 1,209 | hh | C++ | examples/ScatteringExample/include/SEDetectorConstruction.hh | QTNM/Electron-Tracking | b9dff0232af5a99fd795fd504dbddde71f4dd31c | [
"MIT"
] | 2 | 2022-03-16T22:30:19.000Z | 2022-03-16T22:30:26.000Z | examples/ScatteringExample/include/SEDetectorConstruction.hh | QTNM/Electron-Tracking | b9dff0232af5a99fd795fd504dbddde71f4dd31c | [
"MIT"
] | 18 | 2021-03-02T15:14:11.000Z | 2022-02-14T08:12:20.000Z | examples/ScatteringExample/include/SEDetectorConstruction.hh | QTNM/Electron-Tracking | b9dff0232af5a99fd795fd504dbddde71f4dd31c | [
"MIT"
] | null | null | null | #ifndef SEDetectorConstruction_h
#define SEDetectorConstruction_h 1
#include "G4Cache.hh"
#include "G4GenericMessenger.hh"
#include "G4VUserDetectorConstruction.hh"
#include "globals.hh"
class G4VPhysicalVolume;
class G4GlobalMagFieldMessenger;
class SEGasSD;
class SEWatchSD;
class SEDetectorConstruction : public G4... | 27.477273 | 76 | 0.659222 | QTNM |
02c6b4dbed15e710d6e9dbd33aee3f9119917f39 | 3,165 | cpp | C++ | GameDownloader/src/GameDownloader/Behavior/PostHookBehavior.cpp | ProtocolONE/cord.game-downloader | 90950019937cd2974801ca2f53ed3b4ecd1d219b | [
"Apache-2.0"
] | 1 | 2019-08-07T06:13:15.000Z | 2019-08-07T06:13:15.000Z | GameDownloader/src/GameDownloader/Behavior/PostHookBehavior.cpp | ProtocolONE/cord.game-downloader | 90950019937cd2974801ca2f53ed3b4ecd1d219b | [
"Apache-2.0"
] | null | null | null | GameDownloader/src/GameDownloader/Behavior/PostHookBehavior.cpp | ProtocolONE/cord.game-downloader | 90950019937cd2974801ca2f53ed3b4ecd1d219b | [
"Apache-2.0"
] | null | null | null | #include <GameDownloader/Behavior/PostHookBehavior.h>
#include <GameDownloader/ServiceState.h>
#include <GameDownloader/GameDownloadService.h>
#include <Core/Service.h>
#include <QtConcurrent/QtConcurrentRun>
namespace P1 {
namespace GameDownloader {
namespace Behavior {
PostHookBehavior::Po... | 35.965909 | 137 | 0.64139 | ProtocolONE |
02c917b230168e05d5c19fecf4033164e612a287 | 1,149 | hpp | C++ | src/utils/DisplayConfiguration.hpp | bonnefoa/flowstats | 64f3e2d4466596788174b508bc62838379162224 | [
"MIT"
] | 4 | 2020-07-21T12:34:26.000Z | 2020-12-09T16:51:33.000Z | src/utils/DisplayConfiguration.hpp | bonnefoa/flowstats | 64f3e2d4466596788174b508bc62838379162224 | [
"MIT"
] | null | null | null | src/utils/DisplayConfiguration.hpp | bonnefoa/flowstats | 64f3e2d4466596788174b508bc62838379162224 | [
"MIT"
] | 1 | 2020-07-21T12:34:31.000Z | 2020-07-21T12:34:31.000Z | #pragma once
#include "Field.hpp"
#include "enum.h"
#include <string>
#include <vector>
namespace flowstats {
class DisplayConfiguration {
public:
DisplayConfiguration();
auto updateFieldSize(Field field, int delta) -> void;
auto emptyFilter() { filter = ""; };
auto addFilterChar(int c) { filter.p... | 27.357143 | 76 | 0.678851 | bonnefoa |
02caa5f3c7d730e77ef9a47742232d53e52cf02f | 1,041 | cpp | C++ | UVA/DP/uva_10819_knapsack.cpp | raphasramos/competitive-programming | 749b6726bd9d517d9143af7e9236d3e5e8cef49b | [
"MIT"
] | 3 | 2020-05-15T17:15:10.000Z | 2021-04-24T17:54:26.000Z | UVA/DP/uva_10819_knapsack.cpp | raphasramos/competitive-programming | 749b6726bd9d517d9143af7e9236d3e5e8cef49b | [
"MIT"
] | null | null | null | UVA/DP/uva_10819_knapsack.cpp | raphasramos/competitive-programming | 749b6726bd9d517d9143af7e9236d3e5e8cef49b | [
"MIT"
] | 1 | 2019-06-24T18:41:49.000Z | 2019-06-24T18:41:49.000Z | #include <bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define ll long long
#define pq priority_queue
#define mii map<int,int>
typedef vector<int> vi;
typedef pair<int,int> ii;
typedef set<int> si;
typedef vector<vi> vii;
typedef vector<ii> vpi;
typedef vector<ll> vll;
int oo = (1e9) + 7;
... | 20.82 | 71 | 0.513929 | raphasramos |
c4a82c434e58b321c715c96ac6bd83d5400cd1fe | 5,802 | cpp | C++ | sdl2/sdlbird/Sprite.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | sdl2/sdlbird/Sprite.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | sdl2/sdlbird/Sprite.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2014, Wei Mingzhi <whistler_wmz@users.sf.net>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* ... | 25.901786 | 115 | 0.647363 | pdpdds |
c4aafeaa4d72886d265d9ecdad97d91aaa482665 | 5,898 | hpp | C++ | src/util/rpc/client.hpp | EnrikoChavez/opencbdc-tx | 3f4ebe9fa8296542158ff505b47fd8f277e313dd | [
"MIT"
] | 652 | 2022-02-03T19:31:04.000Z | 2022-03-31T17:45:29.000Z | src/util/rpc/client.hpp | EnrikoChavez/opencbdc-tx | 3f4ebe9fa8296542158ff505b47fd8f277e313dd | [
"MIT"
] | 50 | 2022-02-03T23:16:36.000Z | 2022-03-31T19:50:19.000Z | src/util/rpc/client.hpp | EnrikoChavez/opencbdc-tx | 3f4ebe9fa8296542158ff505b47fd8f277e313dd | [
"MIT"
] | 116 | 2022-02-03T19:57:26.000Z | 2022-03-20T17:23:47.000Z | // Copyright (c) 2021 MIT Digital Currency Initiative,
// Federal Reserve Bank of Boston
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef OPENCBDC_TX_SRC_RPC_CLIENT_H_
#define OPENCBDC_TX_SRC_RPC_CLIENT... | 43.051095 | 80 | 0.604103 | EnrikoChavez |
c4ad43f15955cded255e777e45a2fb436ddd38ed | 3,017 | cpp | C++ | example/frame/concept/alpha/src/alphawriter.cpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | example/frame/concept/alpha/src/alphawriter.cpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | example/frame/concept/alpha/src/alphawriter.cpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | // alphawriter.cpp
//
// Copyright (c) 2007, 2008 Valentin Palade (vipalade @ gmail . com)
//
// This file is part of SolidFrame framework.
//
// 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 "alphawriter... | 27.18018 | 97 | 0.672854 | joydit |
c4ae11028445ad1e97267d0264850775b57a6778 | 2,610 | cpp | C++ | Client/client/World/World.cpp | pinkmouse/SlayersWorld | 53cdde28f3464ee9ada9b655f8c4df63f0e9389e | [
"MIT"
] | 14 | 2019-03-05T10:03:59.000Z | 2021-12-21T03:00:18.000Z | Client/client/World/World.cpp | pinkmouse/SlayersWorld | 53cdde28f3464ee9ada9b655f8c4df63f0e9389e | [
"MIT"
] | 1 | 2019-10-24T21:37:59.000Z | 2019-10-24T21:37:59.000Z | Client/client/World/World.cpp | pinkmouse/SlayersWorld | 53cdde28f3464ee9ada9b655f8c4df63f0e9389e | [
"MIT"
] | 1 | 2020-12-06T21:07:52.000Z | 2020-12-06T21:07:52.000Z | #include "World.hpp"
#include "../Global.hpp"
#include "WorldPacket.hpp"
#include <vector>
World::World()
{
g_Socket = new Socket();
m_Events = new Events();
g_Config = new ConfigHandler();
m_MapManager = new MapManager(m_Events);
m_InterfaceManager = new InterfaceManager(m_Events);
m_Graphics = new Gra... | 22.894737 | 74 | 0.6659 | pinkmouse |
c4aedb60a6b584cb8efb91d7df4431cd47cb86e0 | 483 | hpp | C++ | include/brimstone/Size.hpp | theJ8910/Brimstone | e28da7a995ab5533b78bf5e1664a59753d139fff | [
"MIT"
] | 1 | 2015-12-31T05:49:39.000Z | 2015-12-31T05:49:39.000Z | include/brimstone/Size.hpp | theJ8910/Brimstone | e28da7a995ab5533b78bf5e1664a59753d139fff | [
"MIT"
] | null | null | null | include/brimstone/Size.hpp | theJ8910/Brimstone | e28da7a995ab5533b78bf5e1664a59753d139fff | [
"MIT"
] | null | null | null | /*
Size.hpp
-----------------------
Copyright (c) 2014, theJ89
Description:
Include this file for access to Size and its variations.
Note: Since this file merely includes other files, there are no include guards necessary here.
*/
//Includes
#include <brimstone/size/SizeN.hpp>
#include <brimstone/size/Size... | 23 | 98 | 0.724638 | theJ8910 |
c4b088cdd2eba4b2c63c98fff03c2b0e99b3275c | 1,305 | cpp | C++ | codechef/SWAPPALI/Wrong Answer.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codechef/SWAPPALI/Wrong Answer.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codechef/SWAPPALI/Wrong Answer.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 29-02-2020 19:55:44
* solution_verdict: Wrong Answer language: C++14
* run... | 29.659091 | 111 | 0.4 | kzvd4729 |
c4b0cb7be0da45a9827665348569fe4bd3544efa | 3,005 | cpp | C++ | unittests/timer/ExecutionDeferrerTest.cpp | zavadovsky/stingraykit | 33e6587535325f08769bd8392381d70d4d316410 | [
"0BSD"
] | 24 | 2015-03-04T16:30:03.000Z | 2022-02-04T15:03:42.000Z | unittests/timer/ExecutionDeferrerTest.cpp | zavadovsky/stingraykit | 33e6587535325f08769bd8392381d70d4d316410 | [
"0BSD"
] | null | null | null | unittests/timer/ExecutionDeferrerTest.cpp | zavadovsky/stingraykit | 33e6587535325f08769bd8392381d70d4d316410 | [
"0BSD"
] | 7 | 2015-04-08T12:22:58.000Z | 2018-06-14T09:58:45.000Z | #include <stingraykit/function/bind.h>
#include <stingraykit/timer/Timer.h>
#include <stingraykit/unique_ptr.h>
#include <gtest/gtest.h>
using namespace stingray;
class ExecutionDeferrerTest : public testing::Test
{
protected:
class DeferrerHolder
{
private:
ExecutionDeferrer _deferrer;
public:
DeferrerHold... | 23.294574 | 115 | 0.738769 | zavadovsky |
c4b10ee02bb5e600696d5bd152526c61ae663e94 | 215 | cpp | C++ | Source/Common/MPIWrapper.cpp | sunkwei/CNTK | 08691e97707538b110ca71bce4ad06c46d840517 | [
"Intel"
] | 6 | 2019-08-18T05:29:09.000Z | 2021-01-19T09:58:45.000Z | Source/Common/MPIWrapper.cpp | Omar-Belghaouti/CNTK | 422f710242c602b2660a634f2234abf5aaf5b337 | [
"RSA-MD"
] | null | null | null | Source/Common/MPIWrapper.cpp | Omar-Belghaouti/CNTK | 422f710242c602b2660a634f2234abf5aaf5b337 | [
"RSA-MD"
] | 1 | 2019-10-24T00:35:07.000Z | 2019-10-24T00:35:07.000Z | #include "Include/Basics.h"
#include "Include/MPIWrapper.h"
int Microsoft::MSR::CNTK::MPIWrapper::s_myRank = -1;
std::shared_ptr<Microsoft::MSR::CNTK::MPIWrapper> Microsoft::MSR::CNTK::MPIWrapper::s_mpi = nullptr;
| 35.833333 | 100 | 0.748837 | sunkwei |
c4b3615457b213dec9d96b0c8eaaf5b4af20be21 | 299 | cpp | C++ | Codeforces Online Judge Solve/dice.cpp | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | Codeforces Online Judge Solve/dice.cpp | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | Codeforces Online Judge Solve/dice.cpp | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define ll long long
int main ()
{
ll m,n,k;
cin>>n;
while(n--)
{
cin>>m;
if(m==2||m==3||m==4||m==5||m==6||m==7) cout<<"1"<<endl;
else
{
k=m/2; cout<<k<<endl;
}
}
}
| 16.611111 | 64 | 0.381271 | Remonhasan |
c4b3834a3ced9015f6db46be6e6f5fc176787725 | 1,234 | cc | C++ | src/platform/udp_server_test.cc | AnthonyBrunasso/test_games | 31354d2bf95aae9a880e7292bc78ad8577b3f09c | [
"MIT"
] | null | null | null | src/platform/udp_server_test.cc | AnthonyBrunasso/test_games | 31354d2bf95aae9a880e7292bc78ad8577b3f09c | [
"MIT"
] | null | null | null | src/platform/udp_server_test.cc | AnthonyBrunasso/test_games | 31354d2bf95aae9a880e7292bc78ad8577b3f09c | [
"MIT"
] | 2 | 2019-11-12T23:15:18.000Z | 2020-01-15T17:49:27.000Z | #include "platform.cc"
#include <cstdio>
volatile bool running = true;
s32
main(s32 argc, char** argv)
{
const char* ip = "127.0.0.1";
const char* port = "9845";
while (1) {
s32 opt = platform_getopt(argc, argv, "i:p:");
if (opt == -1) break;
switch (opt) {
case 'i':
ip = platform_o... | 19.903226 | 73 | 0.559157 | AnthonyBrunasso |
c4b457a7d61ab62179e13416dda2f179f7be4a5e | 1,663 | hh | C++ | modules/Tsp/TspParticle.hh | ElonKou/genetic | 507f739b44399b8dbae1bde4523fbb718704e223 | [
"MIT"
] | null | null | null | modules/Tsp/TspParticle.hh | ElonKou/genetic | 507f739b44399b8dbae1bde4523fbb718704e223 | [
"MIT"
] | null | null | null | modules/Tsp/TspParticle.hh | ElonKou/genetic | 507f739b44399b8dbae1bde4523fbb718704e223 | [
"MIT"
] | null | null | null | #pragma once
#include "TspAlgorithmBase.hh"
typedef struct SpeedItem {
int x;
int y;
} SpeedItem;
class TspParticle : public TspAlgorithmBase {
public:
std::vector<SpeedItem> m_personal; // cur:A -> his:B (current vs personal history)
std::vector<SpeedItem> m_global; ... | 33.938776 | 178 | 0.595911 | ElonKou |
c4b686e364cd0d9b86a354df6e64cbbb8ab96071 | 343 | hpp | C++ | src/framework/forms/input/input.hpp | kevinaud/asm-dom-OO-counters | 58ea010941b5e7ab860109b6ebbd6f3ca47fd4c6 | [
"MIT"
] | 9 | 2018-06-07T00:39:45.000Z | 2021-06-28T18:26:51.000Z | src/framework/forms/input/input.hpp | kevinaud/asm-dom-OO-counters | 58ea010941b5e7ab860109b6ebbd6f3ca47fd4c6 | [
"MIT"
] | null | null | null | src/framework/forms/input/input.hpp | kevinaud/asm-dom-OO-counters | 58ea010941b5e7ab860109b6ebbd6f3ca47fd4c6 | [
"MIT"
] | 2 | 2019-05-04T15:35:04.000Z | 2019-09-24T12:11:45.000Z | #ifndef INPUT_H
#define INPUT_H
#include "../../component/component.hpp"
#include "../../view-property/view-property.hpp"
class Input : public Component {
public:
Input(Component* parent);
Input(Component* parent, string initValue);
VNode* render();
private:
ViewProperty<stri... | 18.052632 | 51 | 0.641399 | kevinaud |
c4b86abbd7ac32192638543b82b05e5363f5706b | 4,208 | hpp | C++ | src/CameraControl/EDSDK/EdsdkSourceDeviceImpl.hpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 16 | 2015-03-26T02:32:43.000Z | 2021-10-18T16:34:31.000Z | src/CameraControl/EDSDK/EdsdkSourceDeviceImpl.hpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 7 | 2019-02-21T06:07:09.000Z | 2022-01-01T10:00:50.000Z | src/CameraControl/EDSDK/EdsdkSourceDeviceImpl.hpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 6 | 2019-05-07T09:21:15.000Z | 2021-09-01T06:36:24.000Z | //
// RemotePhotoTool - remote camera control software
// Copyright (C) 2008-2017 Michael Fink
//
/// \file EdsdkSourceDeviceImpl.hpp EDSDK - SourceDevice impl
//
#pragma once
// includes
#include "SourceDevice.hpp"
#include "EdsdkCameraFileSystemImpl.hpp"
#include "EdsdkRemoteReleaseControlImpl.hpp"
#include "EdsdkSh... | 27.86755 | 108 | 0.689401 | vividos |
c4ba7b34dc3b3e66b9eec7f770a9565416ea41e9 | 474 | hpp | C++ | aech/src/resource_management/material_library.hpp | markomijolovic/aech | 6e2ea36146596dff6f92e451a598aab535b03d3c | [
"BSD-3-Clause"
] | 4 | 2021-05-25T13:58:30.000Z | 2021-05-26T20:13:15.000Z | aech/src/resource_management/material_library.hpp | markomijolovic/aech | 6e2ea36146596dff6f92e451a598aab535b03d3c | [
"BSD-3-Clause"
] | null | null | null | aech/src/resource_management/material_library.hpp | markomijolovic/aech | 6e2ea36146596dff6f92e451a598aab535b03d3c | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "material.hpp"
#include <unordered_map>
namespace aech::graphics {
namespace material_library {
inline std::unordered_map<std::string, material_t> default_materials{};
// creates default material objects
auto generate_default_materials() noexcept -> void;
// create a material from the given t... | 26.333333 | 83 | 0.776371 | markomijolovic |
c4bbda3e53670c898370397ab10975570b59dde3 | 89 | hpp | C++ | openexr-c/abigen/imf_deeptiledoutputpart.hpp | vfx-rs/openexr-bind | ee4fd6010beedb0247737a39ee61ffb87c586448 | [
"BSD-3-Clause"
] | 7 | 2021-06-04T20:59:16.000Z | 2022-02-11T01:00:42.000Z | openexr-c/abigen/imf_deeptiledoutputpart.hpp | vfx-rs/openexr-bind | ee4fd6010beedb0247737a39ee61ffb87c586448 | [
"BSD-3-Clause"
] | 35 | 2021-05-14T04:28:22.000Z | 2021-12-30T12:08:40.000Z | openexr-c/abigen/imf_deeptiledoutputpart.hpp | vfx-rs/openexr-bind | ee4fd6010beedb0247737a39ee61ffb87c586448 | [
"BSD-3-Clause"
] | 5 | 2021-05-15T04:02:56.000Z | 2021-07-02T05:38:01.000Z | #pragma once
#include <ostream>
void abi_gen_imf_deeptiledoutputpart(std::ostream& os);
| 17.8 | 55 | 0.797753 | vfx-rs |
c4bc3d397a4bb39caad3e5a4ec91485b71cad824 | 1,631 | hpp | C++ | source/hougfx/include/hou/gfx/gfx_exceptions.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | 2 | 2018-04-12T20:59:20.000Z | 2018-07-26T16:04:07.000Z | source/hougfx/include/hou/gfx/gfx_exceptions.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | source/hougfx/include/hou/gfx/gfx_exceptions.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | // Houzi Game Engine
// Copyright (c) 2018 Davide Corradi
// Licensed under the MIT license.
#ifndef HOU_GFX_GFX_EXCEPTIONS_HPP
#define HOU_GFX_GFX_EXCEPTIONS_HPP
#include "hou/cor/exception.hpp"
#include "hou/gfx/gfx_config.hpp"
namespace hou
{
/** Font creation error.
*
* This exception is thrown when creati... | 21.746667 | 76 | 0.702636 | DavideCorradiDev |
c4bf748586b523ee4d3eaa57641be1668e75e2b0 | 146,403 | cc | C++ | src/mavsdk_server/src/generated/camera_server/camera_server.pb.cc | hamishwillee/MAVSDK | e7f4e27bdd4442b91b623abf6ac86d1cbb188244 | [
"BSD-3-Clause"
] | 115 | 2018-07-11T00:18:12.000Z | 2019-06-05T22:10:23.000Z | src/mavsdk_server/src/generated/camera_server/camera_server.pb.cc | hamishwillee/MAVSDK | e7f4e27bdd4442b91b623abf6ac86d1cbb188244 | [
"BSD-3-Clause"
] | 228 | 2018-07-09T12:03:21.000Z | 2019-06-07T09:51:14.000Z | src/mavsdk_server/src/generated/camera_server/camera_server.pb.cc | hamishwillee/MAVSDK | e7f4e27bdd4442b91b623abf6ac86d1cbb188244 | [
"BSD-3-Clause"
] | 104 | 2018-07-19T09:45:16.000Z | 2019-06-05T18:40:35.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: camera_server/camera_server.proto
#include "camera_server/camera_server.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <goo... | 40.331405 | 192 | 0.744459 | hamishwillee |
c4c097d367481bfdb40a6fdfc522bb94a6b33db3 | 13,071 | cpp | C++ | data/627.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/627.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/627.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | int AJ,vaBae
,//y38
uvxYkLF , x94ea
, u1, u5//D
,JtNU ,/*Q*/
UR , ajM0,
Fuz
/*bOM*/, A, otxhG,ny ,/*DFb*/wLF /*gk*/,V,Ol ,w2s, Tf
,/**/SI7,
Ae4Z
,kw,
l1, f,aVQR ,WwiI
, md, z3BV8p
,Ko9i//6b
,FBUU9 ,SI2Uo ,//te
CMoBR,B3Jr ,
WKM, GOTsm/**/, Ks2 ,R , //X
Bjd ,Tmd
/*D*/
,
RDy9d ,
Z2eEw
,pJ7
,
ULa3J... | 11.366087 | 66 | 0.461633 | TianyiChen |
c4c3479200066b5e42319d90e068c50b6b0cf80d | 14,588 | cpp | C++ | libs/fnd/cctype/test/src/unit_test_fnd_cctype_isgraph.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/cctype/test/src/unit_test_fnd_cctype_isgraph.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/cctype/test/src/unit_test_fnd_cctype_isgraph.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file unit_test_fnd_cctype_isgraph.cpp
*
* @brief isgraph のテスト
*
* @author myoukaku
*/
#include <bksge/fnd/cctype/isgraph.hpp>
#include <bksge/fnd/config.hpp>
#include <gtest/gtest.h>
#include "constexpr_test.hpp"
namespace bksge_cctype_test
{
namespace isgraph_test
{
GTEST_TEST(CCTy... | 48.304636 | 85 | 0.751234 | myoukaku |
c4c386ed6ec04217de9acf9177b5619084e84b1f | 1,612 | cpp | C++ | BOJ_solve/16583.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | 4 | 2021-01-27T11:51:30.000Z | 2021-01-30T17:02:55.000Z | BOJ_solve/16583.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | null | null | null | BOJ_solve/16583.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | 5 | 2021-01-27T11:46:12.000Z | 2021-05-06T05:37:47.000Z | #include <bits/stdc++.h>
#define x first
#define y second
#define pb push_back
#define all(v) v.begin(),v.end()
#pragma gcc optimize("O3")
#pragma gcc optimize("Ofast")
#pragma gcc optimize("unroll-loops")
using namespace std;
const int INF = 1e9;
const int TMX = 1 << 18;
const long long llINF = 5e18;
const long long ... | 24.424242 | 73 | 0.519231 | python-programmer1512 |
c4c42acc715932ef9b303cad4b0597f08c75f643 | 1,142 | cpp | C++ | Stack/Stack_01_IMPLEMENT_USING_ARRAY.cpp | compl3xX/ROAD-TO-DSA | 2261c112135a51d9d88c4b57e6f062f6b32550a7 | [
"MIT"
] | null | null | null | Stack/Stack_01_IMPLEMENT_USING_ARRAY.cpp | compl3xX/ROAD-TO-DSA | 2261c112135a51d9d88c4b57e6f062f6b32550a7 | [
"MIT"
] | null | null | null | Stack/Stack_01_IMPLEMENT_USING_ARRAY.cpp | compl3xX/ROAD-TO-DSA | 2261c112135a51d9d88c4b57e6f062f6b32550a7 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define MAX 1000
class Stack
{
int top;
public:
int a[MAX];
Stack() { top = -1; }
void push(int x);
int pop();
int peek();
bool isempty();
};
void Stack::push(int x)
{
if (top >= (MAX - 1))
{
cout << "Stack Ove... | 15.226667 | 52 | 0.408056 | compl3xX |
c4c4e01696c18cdeaa7407ac894763a2ce5802da | 3,552 | hpp | C++ | apps/Cocles/old_src/ledger/internal/Database.hpp | tybl/tybl | cc74416d3d982177d46b89c0ca44f3a8e1cf00d6 | [
"Unlicense"
] | 1 | 2022-02-11T21:25:53.000Z | 2022-02-11T21:25:53.000Z | apps/Cocles/old_src/ledger/internal/Database.hpp | tybl/tybl | cc74416d3d982177d46b89c0ca44f3a8e1cf00d6 | [
"Unlicense"
] | 15 | 2021-08-21T13:41:29.000Z | 2022-03-08T14:13:43.000Z | apps/Cocles/old_src/ledger/internal/Database.hpp | tybl/tybl | cc74416d3d982177d46b89c0ca44f3a8e1cf00d6 | [
"Unlicense"
] | null | null | null | // License: The Unlicense (https://unlicense.org)
#ifndef COCLES_LEDGER_INTERNAL_DATABASE_HPP
#define COCLES_LEDGER_INTERNAL_DATABASE_HPP
#include "AccountEntry.hpp"
#include "AccountTypeEntry.hpp"
#include "AdjustmentEntry.hpp"
#include "FilteredTableView.hpp"
#include "RecordKeeper.hpp"
#include "TransactionEntry.hp... | 33.509434 | 99 | 0.798142 | tybl |
c4c5967a1fdc234c240577ee2dc274dfb50c5df2 | 9,922 | cpp | C++ | OcularCore/src/Scene/Routines/FreeFlyController.cpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 8 | 2017-01-27T01:06:06.000Z | 2020-11-05T20:23:19.000Z | OcularCore/src/Scene/Routines/FreeFlyController.cpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 39 | 2016-06-03T02:00:36.000Z | 2017-03-19T17:47:39.000Z | OcularCore/src/Scene/Routines/FreeFlyController.cpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 4 | 2019-05-22T09:13:36.000Z | 2020-12-01T03:17:45.000Z | /**
* Copyright 2014-2017 Steven T Sell (ssell@vertexfragment.com)
*
* 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 requir... | 31.398734 | 159 | 0.395586 | ssell |
c4cc1dc3cdae8ced08454b7bd6976ab3a3f096e7 | 809 | cpp | C++ | Documents/RacimoAire/Libreria/Prueba3PMS/mainwindow.cpp | JoseSalamancaCoy/RACIMO_AIRE | 628d6ff184a30af0efd25bff675b0006500d4ba2 | [
"MIT"
] | null | null | null | Documents/RacimoAire/Libreria/Prueba3PMS/mainwindow.cpp | JoseSalamancaCoy/RACIMO_AIRE | 628d6ff184a30af0efd25bff675b0006500d4ba2 | [
"MIT"
] | null | null | null | Documents/RacimoAire/Libreria/Prueba3PMS/mainwindow.cpp | JoseSalamancaCoy/RACIMO_AIRE | 628d6ff184a30af0efd25bff675b0006500d4ba2 | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#define GPIOSet 16
#define GPIOReSet 12
#define GPIORX 26
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
GPIO = new Crpigpio;
PMSSensor = new PMS(GPIO,GPIOSet, GPIOReSet, GPIORX);
conne... | 23.794118 | 119 | 0.677379 | JoseSalamancaCoy |
c4d46b3df02f299b3d31c1640d207587e516ceb8 | 6,094 | cpp | C++ | examples/imgui/main.cpp | jayrulez/LLGI | a0836e6db18e444d4534deb8eedb18263439fc4c | [
"Zlib"
] | 166 | 2019-06-19T19:51:45.000Z | 2022-03-24T13:03:29.000Z | examples/imgui/main.cpp | jayrulez/LLGI | a0836e6db18e444d4534deb8eedb18263439fc4c | [
"Zlib"
] | 312 | 2019-06-13T19:39:25.000Z | 2022-03-02T18:37:22.000Z | examples/imgui/main.cpp | jayrulez/LLGI | a0836e6db18e444d4534deb8eedb18263439fc4c | [
"Zlib"
] | 23 | 2019-10-04T11:02:21.000Z | 2021-12-24T16:34:52.000Z |
#ifdef _WIN32
#define GLFW_EXPOSE_NATIVE_WIN32 1
#endif
#ifdef __APPLE__
#define GLFW_EXPOSE_NATIVE_COCOA 1
#endif
#ifdef __linux__
#define GLFW_EXPOSE_NATIVE_X11 1
#undef Always
#endif
#include <GLFW/glfw3.h>
#include <GLFW/glfw3native.h>
#ifdef __linux__
#undef Always
#endif
#include <LLGI.CommandList.h>
#inclu... | 21.233449 | 131 | 0.698392 | jayrulez |
c4d55018ad52bb8e87654d41fe73702b41dde485 | 717 | cpp | C++ | src/Utility.cpp | kmc7468/IceScript | b11ea9dce5507949badfaeffa337c780cdf6ec5e | [
"MIT"
] | null | null | null | src/Utility.cpp | kmc7468/IceScript | b11ea9dce5507949badfaeffa337c780cdf6ec5e | [
"MIT"
] | null | null | null | src/Utility.cpp | kmc7468/IceScript | b11ea9dce5507949badfaeffa337c780cdf6ec5e | [
"MIT"
] | null | null | null | #include <ice/Utility.hpp>
namespace ice {
std::string Format(const std::string& format, const std::vector<std::string>& arguments) {
std::string result;
std::size_t begin = 0;
std::size_t percent;
std::size_t index = 0;
while ((percent = format.find('%', begin)) != std::string::npos) {
result.insert(r... | 25.607143 | 91 | 0.606695 | kmc7468 |
c4d5a0b731a7a1ba3e6610fa55646d0dfe4163a8 | 8,275 | cpp | C++ | Iron/opening/macroitem.cpp | biug/titan | aacb4e2dc4d55601abd45cb8321d8e5160851eec | [
"MIT"
] | null | null | null | Iron/opening/macroitem.cpp | biug/titan | aacb4e2dc4d55601abd45cb8321d8e5160851eec | [
"MIT"
] | null | null | null | Iron/opening/macroitem.cpp | biug/titan | aacb4e2dc4d55601abd45cb8321d8e5160851eec | [
"MIT"
] | null | null | null | #include "macroitem.h"
#include <regex>
namespace iron
{
int GetIntFromString(const string & s)
{
stringstream ss(s);
int a = 0;
ss >> a;
return a;
}
// Make a Type string look pretty for the UI
string NiceTypeName(const string & s)
{
string inputName(s);
replace(inputName.begin(), inputName.end(),... | 22.364865 | 138 | 0.659698 | biug |
c4d971e6fb2c5248bb1da7022e68c69e5c2cf5b9 | 2,378 | hpp | C++ | boost/actor/policy/sequential_invoke.hpp | syoummer/boost.actor | 58f35499bac8871b8f5b0b024246a467b63c6fb0 | [
"BSL-1.0"
] | 2 | 2015-03-20T21:11:16.000Z | 2020-01-20T08:05:41.000Z | boost/actor/policy/sequential_invoke.hpp | syoummer/boost.actor | 58f35499bac8871b8f5b0b024246a467b63c6fb0 | [
"BSL-1.0"
] | null | null | null | boost/actor/policy/sequential_invoke.hpp | syoummer/boost.actor | 58f35499bac8871b8f5b0b024246a467b63c6fb0 | [
"BSL-1.0"
] | null | null | null | /******************************************************************************\
* *
* ____ _ _ _ *
* | __ ) ___ ___ ___| |_ / \ ___| |_ ___ _ __ *... | 36.584615 | 80 | 0.433558 | syoummer |
c4dd6a879e608c28f2d3f92a4b6213cee9eef290 | 1,577 | cpp | C++ | tutorial_publisher/src/talker.cpp | ryo4432/ros2_tutorial_collection | 4e7ed30e35009f07bd219c762d68b4b8022d4d9d | [
"Apache-2.0"
] | null | null | null | tutorial_publisher/src/talker.cpp | ryo4432/ros2_tutorial_collection | 4e7ed30e35009f07bd219c762d68b4b8022d4d9d | [
"Apache-2.0"
] | null | null | null | tutorial_publisher/src/talker.cpp | ryo4432/ros2_tutorial_collection | 4e7ed30e35009f07bd219c762d68b4b8022d4d9d | [
"Apache-2.0"
] | null | null | null | /*
# Copyright 2019 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 26.728814 | 74 | 0.700063 | ryo4432 |
c4dec47b393ea9fc4c51411e2fe9a8ac4f702c79 | 2,596 | hpp | C++ | include/drag/detail/utils.hpp | bigno78/drag | a7fc1ff77a0e743bbe9a9e72a310a015f6f3b098 | [
"BSD-3-Clause"
] | 3 | 2020-07-29T19:38:51.000Z | 2022-01-28T05:13:55.000Z | include/drag/detail/utils.hpp | bigno78/drag | a7fc1ff77a0e743bbe9a9e72a310a015f6f3b098 | [
"BSD-3-Clause"
] | 2 | 2020-09-05T19:59:15.000Z | 2021-12-05T20:50:41.000Z | include/drag/detail/utils.hpp | bigno78/drag | a7fc1ff77a0e743bbe9a9e72a310a015f6f3b098 | [
"BSD-3-Clause"
] | 2 | 2020-07-29T19:44:52.000Z | 2022-01-28T05:13:59.000Z | #pragma once
#include <string>
#include <vector>
#include <drag/vec2.hpp>
#include <drag/types.hpp>
namespace drag {
template <typename T>
T sgn(T val) { return ( T(0) < val ) - ( val < T(0) ); }
template<typename T>
struct range {
T r_start;
T r_end;
int step;
range(T start, T end, int step = ... | 26.222222 | 105 | 0.547766 | bigno78 |
c4df2d75c14d83b0119c74cd216535da3a4d9c9e | 3,001 | hpp | C++ | masterui/display.hpp | rickfoosusa/dnp | ec17eb20817db32cc6356139afd2daaa1803576f | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2017-09-19T16:37:59.000Z | 2017-09-19T16:37:59.000Z | masterui/display.hpp | rickfoosusa/dnp | ec17eb20817db32cc6356139afd2daaa1803576f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | masterui/display.hpp | rickfoosusa/dnp | ec17eb20817db32cc6356139afd2daaa1803576f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | //
// $Id$
//
// Copyright (C) 2007 Turner Technolgoies Inc. http://www.turner.ca
//
// 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... | 29.712871 | 71 | 0.626458 | rickfoosusa |
c4e04900cf25da6cc065194c8b82d97bfd57337c | 1,925 | cpp | C++ | src/private/PZGBeaconData.cpp | ruurdadema/zg_choir | 6de0e8be497974c0e56bb87139b18f0d6f5b4ee3 | [
"BSD-3-Clause"
] | null | null | null | src/private/PZGBeaconData.cpp | ruurdadema/zg_choir | 6de0e8be497974c0e56bb87139b18f0d6f5b4ee3 | [
"BSD-3-Clause"
] | null | null | null | src/private/PZGBeaconData.cpp | ruurdadema/zg_choir | 6de0e8be497974c0e56bb87139b18f0d6f5b4ee3 | [
"BSD-3-Clause"
] | null | null | null | #include "zg/private/PZGBeaconData.h"
namespace zg_private
{
void PZGBeaconData :: Flatten(uint8 *buffer) const
{
const uint32 numItems = _dbis.GetNumItems();
const uint32 dbiFlatSize = PZGDatabaseStateInfo::FlattenedSize();
muscleCopyOut(buffer, B_HOST_TO_LENDIAN_INT32(numItems)); buffer += sizeof(uint3... | 26.013514 | 129 | 0.686753 | ruurdadema |
c4e1c2f5ec6fb5b8c322d1497c5992c18e382612 | 402 | cpp | C++ | AIC/AIC'20 - Level 1 Training Contests/Contest #6 (Online)/H.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 3 | 2020-11-01T06:31:30.000Z | 2022-02-21T20:37:51.000Z | AIC/AIC'20 - Level 1 Training Contests/Contest #6 (Online)/H.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | null | null | null | AIC/AIC'20 - Level 1 Training Contests/Contest #6 (Online)/H.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 1 | 2021-05-05T18:56:31.000Z | 2021-05-05T18:56:31.000Z | //https://codeforces.com/group/aDFQm4ed6d/contest/274872/problem/H
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
typedef long long ll;
typedef long double ld;
ll mod = 1e9 + 7;
int main ()
{
ios_base::sync_with_stdio (0); cin.tie (0); cout.tie (0);
ll k, n, s, p;
cin >> k ... | 21.157895 | 66 | 0.577114 | MaGnsio |
c4e3b64788f0256a3afac60415999e1650d2725b | 1,191 | cpp | C++ | 1142/a.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | 1 | 2021-10-24T00:46:37.000Z | 2021-10-24T00:46:37.000Z | 1142/a.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | 1142/a.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;
long long gcd(long long a, long long b) {
if (b == 0) {
return a;
}
return gcd(b, a % b);
}
void solve(long long a, long long b, long long len, long long &mn, long long &mx) {
long long step;
if (a > b) {
step = len - (... | 19.85 | 93 | 0.455919 | vladshablinsky |
c4e625a98b552cf6e92bf5fc7f2d46aed001c7a0 | 520 | cpp | C++ | source/ItemShotgun.cpp | fgrehm/pucrs-doom2d | edea7d5d762f427a5a8c944d36819009eb514429 | [
"MIT"
] | 1 | 2016-08-15T16:11:40.000Z | 2016-08-15T16:11:40.000Z | source/ItemShotgun.cpp | fgrehm/pucrs-doom2d | edea7d5d762f427a5a8c944d36819009eb514429 | [
"MIT"
] | null | null | null | source/ItemShotgun.cpp | fgrehm/pucrs-doom2d | edea7d5d762f427a5a8c944d36819009eb514429 | [
"MIT"
] | null | null | null |
#include "ItemShotgun.h"
ItemShotgun::ItemShotgun(int _x, int _y):
x(_x),
y(_y)
{
sprite = new cgf::Sprite();
sprite->load("data/img/shotgun.png");
sprite->scale(1.2, 1.2);
sf::Vector2f vpos = sf::Vector2f();
vpos.x = x;
vpos.y = y;
sprite->setPosition(vpos);
}
ItemShotgun::~ItemShotgun... | 16.25 | 41 | 0.6 | fgrehm |
c4eabc24d27ea35b73a8be559fea0a51971629d2 | 1,327 | cc | C++ | src/dictionaries/node_webrtc/rtc_offer_options.cc | elofun/node-webrtc | be63c8c007402c25962df9e30c9813ba70b8a17b | [
"Apache-2.0"
] | 1,302 | 2018-11-26T03:29:51.000Z | 2022-03-31T23:38:34.000Z | src/dictionaries/node_webrtc/rtc_offer_options.cc | elofun/node-webrtc | be63c8c007402c25962df9e30c9813ba70b8a17b | [
"Apache-2.0"
] | 311 | 2018-11-26T14:22:19.000Z | 2022-03-28T09:47:38.000Z | src/dictionaries/node_webrtc/rtc_offer_options.cc | elofun/node-webrtc | be63c8c007402c25962df9e30c9813ba70b8a17b | [
"Apache-2.0"
] | 233 | 2018-11-26T18:08:11.000Z | 2022-03-30T01:29:50.000Z | #include "src/dictionaries/node_webrtc/rtc_offer_options.h"
#include "src/functional/maybe.h"
#include "src/functional/validation.h"
namespace node_webrtc {
#define RTC_OFFER_OPTIONS_FN CreateRTCOfferOptions
static Validation<RTC_OFFER_OPTIONS> RTC_OFFER_OPTIONS_FN(
const bool voiceActivityDetection,
const ... | 36.861111 | 90 | 0.788244 | elofun |
c4f5838d7ff632354152537fc38e2044a64591d6 | 418 | cpp | C++ | Challenges - Sorting & Searching/Winning CB Scholarship.cpp | helewrer3/CB_Launchpad | cda17f62a25e15cb914982d1cc24f7ba0e2f7a67 | [
"Unlicense"
] | 3 | 2019-10-04T13:24:16.000Z | 2020-01-22T05:07:02.000Z | Challenges - Sorting & Searching/Winning CB Scholarship.cpp | helewrer3/CB_Launchpad | cda17f62a25e15cb914982d1cc24f7ba0e2f7a67 | [
"Unlicense"
] | null | null | null | Challenges - Sorting & Searching/Winning CB Scholarship.cpp | helewrer3/CB_Launchpad | cda17f62a25e15cb914982d1cc24f7ba0e2f7a67 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main()
{
ll N, M, X, Y, r_cpn, c_cpn, ans = INT_MIN;
cin >> N >> M >> X >> Y;
ll st = 1, ed = N;
ll mid = (st+ed)/2;
while(st <= ed){
mid = (st+ed)/2;
r_cpn = mid*X;
c_cpn = M + (N-mid)*Y;
if(r_cpn > c_cpn)
ed = mid-1;
else... | 14.413793 | 44 | 0.502392 | helewrer3 |
c4f71328bc68fc79f731aa6cb23abc7869f33e4d | 400 | cpp | C++ | practice/algorithms/birthday-cake-candles.cpp | geezardo/hackerrank | c3dd829ba803bd21ec3f432f419e40415cf6a6a8 | [
"MIT"
] | null | null | null | practice/algorithms/birthday-cake-candles.cpp | geezardo/hackerrank | c3dd829ba803bd21ec3f432f419e40415cf6a6a8 | [
"MIT"
] | null | null | null | practice/algorithms/birthday-cake-candles.cpp | geezardo/hackerrank | c3dd829ba803bd21ec3f432f419e40415cf6a6a8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define endl '\n'
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int n;
cin >> n;
vector<int> a (n);
for (int i = 0; i < n; i++) cin >> a[i];
sort(a.begin(), a.end());
auto lb = lower_bound(a.begin(), a.end(), a[n - 1]);
int sum = 0;
for (au... | 14.814815 | 54 | 0.5175 | geezardo |
c4f73ea2e0c7a774f1a8ce6f901f00efd9361853 | 2,146 | cpp | C++ | src/widgets/outlineprovider.cpp | l1422586361/vnote | 606dcef16f882350cc2be2fd108625894d13143b | [
"MIT"
] | 8,054 | 2016-10-19T14:59:52.000Z | 2020-10-11T06:21:15.000Z | src/widgets/outlineprovider.cpp | micalstanley/vnote-1 | 606dcef16f882350cc2be2fd108625894d13143b | [
"MIT"
] | 1,491 | 2017-03-06T02:31:32.000Z | 2020-10-11T02:14:32.000Z | src/widgets/outlineprovider.cpp | micalstanley/vnote-1 | 606dcef16f882350cc2be2fd108625894d13143b | [
"MIT"
] | 986 | 2017-02-14T05:45:13.000Z | 2020-10-10T07:42:31.000Z | #include "outlineprovider.h"
using namespace vnotex;
void Outline::clear()
{
m_headings.clear();
}
bool Outline::operator==(const Outline &p_a) const
{
return m_headings == p_a.m_headings;
}
bool Outline::isEmpty() const
{
return m_headings.isEmpty();
}
Outline::Heading::Heading(const QString &p_name, ... | 20.634615 | 105 | 0.632805 | l1422586361 |
c4fbc70e4741770df8cd09eb41601131ae677538 | 3,090 | hpp | C++ | include/SSVStart/Assets/Internal/Loader.hpp | vittorioromeo/SSVStart | ba604007e54462df30346d9c0545ba3274850f49 | [
"AFL-3.0"
] | 11 | 2015-01-27T09:45:11.000Z | 2017-10-05T17:14:40.000Z | include/SSVStart/Assets/Internal/Loader.hpp | vittorioromeo/SSVStart | ba604007e54462df30346d9c0545ba3274850f49 | [
"AFL-3.0"
] | 2 | 2019-12-16T00:24:29.000Z | 2019-12-17T13:57:42.000Z | include/SSVStart/Assets/Internal/Loader.hpp | vittorioromeo/SSVStart | ba604007e54462df30346d9c0545ba3274850f49 | [
"AFL-3.0"
] | 7 | 2015-01-29T17:05:52.000Z | 2020-08-12T22:59:47.000Z | // Copyright (c) 2013-2015 Vittorio Romeo
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: http://opensource.org/licenses/AFL-3.0
#pragma once
#include "SSVStart/BitmapText/BitmapText.hpp"
#include "SSVStart/Tileset/Tileset.hpp"
#include "SSVStart/Assets/Internal/Helper.hpp"
#include <SSVUtils/C... | 23.769231 | 73 | 0.615858 | vittorioromeo |
c4fe06d0e89af85642f74102c029023403bba445 | 917 | hpp | C++ | src/Jogo/Resources/TexturesHolder.hpp | MatheusKunnen/Jogo-TecProg | 66f4320e51e42d12da74e487cc8552377ce865bb | [
"MIT"
] | null | null | null | src/Jogo/Resources/TexturesHolder.hpp | MatheusKunnen/Jogo-TecProg | 66f4320e51e42d12da74e487cc8552377ce865bb | [
"MIT"
] | null | null | null | src/Jogo/Resources/TexturesHolder.hpp | MatheusKunnen/Jogo-TecProg | 66f4320e51e42d12da74e487cc8552377ce865bb | [
"MIT"
] | null | null | null | //
// TexturesHolder.hpp
// Jogo-SFML
//
// Created by Matheus Kunnen Ledesma on 10/6/19.
// Copyright © 2019 Matheus Kunnen Ledesma. All rights reserved.
//
#ifndef TexturesHolder_hpp
#define TexturesHolder_hpp
#include "../base_includes.hpp"
#include "ResourcesHolder.hpp"
namespace Game { namespace Resources{
... | 26.2 | 196 | 0.730643 | MatheusKunnen |
f203968e1899e726d69b2e8a57e506a629b2fe7c | 712 | cpp | C++ | Week 6/Lab/Old/Week 6 Sample Programs/Pr9-8.cpp | sugamkarki/NAMI-Year-II-Term-I-Software_Engineering | 39182816b670dcb75ec322e24b346a4cfeb80be0 | [
"Apache-2.0"
] | null | null | null | Week 6/Lab/Old/Week 6 Sample Programs/Pr9-8.cpp | sugamkarki/NAMI-Year-II-Term-I-Software_Engineering | 39182816b670dcb75ec322e24b346a4cfeb80be0 | [
"Apache-2.0"
] | null | null | null | Week 6/Lab/Old/Week 6 Sample Programs/Pr9-8.cpp | sugamkarki/NAMI-Year-II-Term-I-Software_Engineering | 39182816b670dcb75ec322e24b346a4cfeb80be0 | [
"Apache-2.0"
] | null | null | null | // This program uses the address of each element in the array.
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
const int NUM_COINS = 5;
double coins[NUM_COINS] = {0.05, 0.1, 0.25, 0.5, 1.0};
double *doublePtr; // Pointer to a double
int count; // Array index
... | 27.384615 | 63 | 0.592697 | sugamkarki |
f20a3e12339a04abdf34db7fda92ed68117f4f5e | 1,331 | cpp | C++ | C_CPP/final/KMP.cpp | dengchongsen/study_codes | 29d74c05d340117f76aafcc320766248a0f8386b | [
"MulanPSL-1.0"
] | null | null | null | C_CPP/final/KMP.cpp | dengchongsen/study_codes | 29d74c05d340117f76aafcc320766248a0f8386b | [
"MulanPSL-1.0"
] | null | null | null | C_CPP/final/KMP.cpp | dengchongsen/study_codes | 29d74c05d340117f76aafcc320766248a0f8386b | [
"MulanPSL-1.0"
] | null | null | null | #include <iostream>
using namespace std;
const int maxn = 1000005;
char s[maxn];
char p[maxn];
int nex[maxn];
int pl, ml;
int ans = 0;
void init()
{
pl = 0;
ml = 0;
int i = 0, j = 0;
while (s[i] != '\0')
s[i++] = '\0';
while (p[j] != '\0')
p[j++] = '\0';
}
// 获取窗口滑动位置
void getnex()
{
nex[0] = -1;
... | 13.581633 | 38 | 0.352367 | dengchongsen |
f2102881aec08af853984f88ca90789b059c05e0 | 21,007 | cpp | C++ | source/game_state.cpp | Craig-J/RhythMIR | 37165688b5bf925a1570ed1daf6e1b21892456b2 | [
"MIT"
] | null | null | null | source/game_state.cpp | Craig-J/RhythMIR | 37165688b5bf925a1570ed1daf6e1b21892456b2 | [
"MIT"
] | 3 | 2016-07-17T15:26:12.000Z | 2016-07-17T15:32:38.000Z | source/game_state.cpp | Craig-J/RhythMIR | 37165688b5bf925a1570ed1daf6e1b21892456b2 | [
"MIT"
] | null | null | null | #include "game_state.h"
#include "app_state_machine.h"
#include "menu_state.h"
#include <SFML_Extensions/global.h>
namespace
{
sf::Vector2f window_centre;
sf::Vector2f window_size;
float path_start_y;
float path_end_y;
float path_x;
float path_x_offset;
float note_length;
bool interpolate_beats;
sf::Time ... | 26.794643 | 205 | 0.674347 | Craig-J |
f21222388a6463740758275ff3ae120e631f9a15 | 638 | cpp | C++ | src/RE/BSLightingShaderMaterialFacegenTint.cpp | powerof3/CommonLibVR | c84cd2c63ccba0cc88a212fe9cf86b5470b10a4f | [
"MIT"
] | null | null | null | src/RE/BSLightingShaderMaterialFacegenTint.cpp | powerof3/CommonLibVR | c84cd2c63ccba0cc88a212fe9cf86b5470b10a4f | [
"MIT"
] | null | null | null | src/RE/BSLightingShaderMaterialFacegenTint.cpp | powerof3/CommonLibVR | c84cd2c63ccba0cc88a212fe9cf86b5470b10a4f | [
"MIT"
] | null | null | null | #include "RE/BSLightingShaderMaterialFacegenTint.h"
#include "RE/Offsets.h"
#include "REL/Relocation.h"
namespace RE
{
BSLightingShaderMaterialFacegenTint* BSLightingShaderMaterialFacegenTint::CreateMaterial()
{
auto material = malloc<BSLightingShaderMaterialFacegenTint>();
material->ctor();
material->tintCo... | 25.52 | 91 | 0.783699 | powerof3 |
f212eb472a77987f912edc19f46952d9c5e71b96 | 1,979 | cpp | C++ | src/cookie.cpp | kamchatka-volcano/hot_teacup | ef894b6f333364f9768f1d2477580604affada87 | [
"MS-PL"
] | null | null | null | src/cookie.cpp | kamchatka-volcano/hot_teacup | ef894b6f333364f9768f1d2477580604affada87 | [
"MS-PL"
] | null | null | null | src/cookie.cpp | kamchatka-volcano/hot_teacup | ef894b6f333364f9768f1d2477580604affada87 | [
"MS-PL"
] | null | null | null | #include <hot_teacup/cookie.h>
#include <sfun/string_utils.h>
namespace http{
namespace str = sfun::string_utils;
Cookie::Cookie(std::string name,
std::string value,
int maxAgeSec,
std::string domain,
std::string path)
: header_("Set-Cookie", "")
, n... | 22.488636 | 67 | 0.605356 | kamchatka-volcano |
f2167268765ffe76e761cc6761bc607ce690351d | 7,801 | cpp | C++ | src/nnfusion/core/operators/generic_op/generic_op_define/MaxPool.cpp | nox-410/nnfusion | 0777e297299c4e7a5071dc2ee97b87adcd22840e | [
"MIT"
] | 639 | 2020-09-05T10:00:59.000Z | 2022-03-30T08:42:39.000Z | src/nnfusion/core/operators/generic_op/generic_op_define/MaxPool.cpp | QPC-database/nnfusion | 99ada47c50f355ca278001f11bc752d1c7abcee2 | [
"MIT"
] | 252 | 2020-09-09T05:35:36.000Z | 2022-03-29T04:58:41.000Z | src/nnfusion/core/operators/generic_op/generic_op_define/MaxPool.cpp | QPC-database/nnfusion | 99ada47c50f355ca278001f11bc752d1c7abcee2 | [
"MIT"
] | 104 | 2020-09-05T10:01:08.000Z | 2022-03-23T10:59:13.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "nnfusion/core/operators/generic_op/generic_op.hpp"
REGISTER_OP(MaxPool)
.infershape(nnfusion::op::infershape::unimplemented_and_not_used)
/*
.translate([](std::shared_ptr<graph::GNode> curr) -> std::string {
auto ... | 43.099448 | 182 | 0.483912 | nox-410 |
f217aaea17f8a57ecb3b96c89935b9862d806b2b | 2,485 | cpp | C++ | src/blinkit/blink/renderer/platform/shared_buffer.cpp | titilima/blink | 2de70073edfe0e1e0aaf2bb22b5d6abd9b776fad | [
"MIT"
] | 13 | 2020-04-21T13:14:00.000Z | 2021-11-13T14:55:12.000Z | src/blinkit/blink/renderer/platform/shared_buffer.cpp | titilima/blink | 2de70073edfe0e1e0aaf2bb22b5d6abd9b776fad | [
"MIT"
] | null | null | null | src/blinkit/blink/renderer/platform/shared_buffer.cpp | titilima/blink | 2de70073edfe0e1e0aaf2bb22b5d6abd9b776fad | [
"MIT"
] | 4 | 2020-04-21T13:15:43.000Z | 2021-11-13T14:55:00.000Z | // -------------------------------------------------
// BlinKit - BlinKit Library
// -------------------------------------------------
// File Name: shared_buffer.cpp
// Description: SharedBuffer Class
// Author: Ziming Li
// Created: 2019-09-29
// -------------------------------------------------
// Copyrig... | 24.85 | 92 | 0.616901 | titilima |
35eb358a8aa5bf3c0da7d1e0e8f6f987445bfe82 | 1,081 | hxx | C++ | time.hxx | Arcoth/VTMPL | d83e4c6ab2e931bce60761997c782d6679a7cba4 | [
"BSL-1.0"
] | null | null | null | time.hxx | Arcoth/VTMPL | d83e4c6ab2e931bce60761997c782d6679a7cba4 | [
"BSL-1.0"
] | null | null | null | time.hxx | Arcoth/VTMPL | d83e4c6ab2e931bce60761997c782d6679a7cba4 | [
"BSL-1.0"
] | null | null | null | /* Copyright (c) Arcoth, 2013-2014.
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 TIME_HXX_INCLUDED
#define TIME_HXX_INCLUDED
#include "string.hxx"
#include "parsers.hxx"
namespace vtmpl
{
template <t... | 20.788462 | 91 | 0.629047 | Arcoth |
35f767f33774d158c13387495c68f16022c9407f | 209 | cpp | C++ | src/module_args/args_args.cpp | Sonotsugipaa/csono | 7e08734b982bc22758ee76fc09ade46f67195e8a | [
"MIT"
] | null | null | null | src/module_args/args_args.cpp | Sonotsugipaa/csono | 7e08734b982bc22758ee76fc09ade46f67195e8a | [
"MIT"
] | null | null | null | src/module_args/args_args.cpp | Sonotsugipaa/csono | 7e08734b982bc22758ee76fc09ade46f67195e8a | [
"MIT"
] | null | null | null | #include <csono/args.hpp>
namespace csono {
Argument::Argument(): a_value(), a_position(-1) { }
Argument::Argument(std::string val, unsigned pos):
a_value(std::move(val)),
a_position(pos)
{ }
}
| 13.933333 | 52 | 0.650718 | Sonotsugipaa |
35ffc9324e782737a9bb66b6ab459d3809c006d4 | 720 | cpp | C++ | src/ext/openexr/Contrib/Photoshop/src/framework/PSAutoBuffer.cpp | tomoya5296/pbrt-cv | f5078db1e42bb8305aa386bda1ba26c528dec489 | [
"BSD-2-Clause"
] | 21 | 2016-12-14T09:46:27.000Z | 2021-12-28T10:05:04.000Z | src/ext/openexr/Contrib/Photoshop/src/framework/PSAutoBuffer.cpp | tomoya5296/pbrt-cv | f5078db1e42bb8305aa386bda1ba26c528dec489 | [
"BSD-2-Clause"
] | 2 | 2015-10-09T19:13:25.000Z | 2018-12-25T17:16:54.000Z | src/ext/openexr/Contrib/Photoshop/src/framework/PSAutoBuffer.cpp | tomoya5296/pbrt-cv | f5078db1e42bb8305aa386bda1ba26c528dec489 | [
"BSD-2-Clause"
] | 15 | 2015-02-23T16:35:28.000Z | 2022-03-25T13:40:33.000Z | // ===========================================================================
// PSAutoBuffer.cp Part of OpenEXR
// ===========================================================================
//
#if MSWindows
#pragma warning (disable: 161)
#endif
#include "PSAutoBuffer.h"
#include <new>
PSAutoBuffer::PSAutoBuff... | 15.319149 | 78 | 0.506944 | tomoya5296 |
c402b271c528f3f30ac1d07b1a9ade6e3719f17d | 1,291 | cpp | C++ | ml_belowzerosrc/src/sys/_windows/msys_debugOS.cpp | mudlord/demos | 359bada56a27ddbd4fcb846c0ff34bc474cb7f05 | [
"Unlicense"
] | 20 | 2017-12-12T16:37:25.000Z | 2022-02-19T10:35:46.000Z | ml_noisecorpsesrc/src/sys/_windows/msys_debugOS.cpp | mudlord/demos | 359bada56a27ddbd4fcb846c0ff34bc474cb7f05 | [
"Unlicense"
] | null | null | null | ml_noisecorpsesrc/src/sys/_windows/msys_debugOS.cpp | mudlord/demos | 359bada56a27ddbd4fcb846c0ff34bc474cb7f05 | [
"Unlicense"
] | 7 | 2017-12-29T23:19:18.000Z | 2021-08-17T09:53:15.000Z | //--------------------------------------------------------------------------//
// iq . 2003/2008 . code for 64 kb intros by RGBA //
//--------------------------------------------------------------------------//
#ifdef DEBUG
#include <windows.h>
#include <stdio.h>
#include <stdarg.h>
#include... | 19.861538 | 78 | 0.464756 | mudlord |
c404f608c89c74c706284a3c2458289f6764d91d | 1,021 | hpp | C++ | files/src/app-helpers/cpp/ezored/helpers/MapHelper.hpp | Leo-Neves/ezored | 924a6c10bdedd9d3115b31cb56c81c671f524c49 | [
"MIT"
] | null | null | null | files/src/app-helpers/cpp/ezored/helpers/MapHelper.hpp | Leo-Neves/ezored | 924a6c10bdedd9d3115b31cb56c81c671f524c49 | [
"MIT"
] | null | null | null | files/src/app-helpers/cpp/ezored/helpers/MapHelper.hpp | Leo-Neves/ezored | 924a6c10bdedd9d3115b31cb56c81c671f524c49 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <sstream>
#include <string>
#include <unordered_map>
#include <vector>
#include "rapidjson/document.h"
using std::string;
using std::unordered_map;
using std::vector;
using rapidjson::Document;
namespace ezored
{
namespace helpers
{
class MapHelper
{
public:
virtual ~Ma... | 26.179487 | 117 | 0.742409 | Leo-Neves |
c40c540782938c034f29377cfd660fbb877bbc01 | 394 | cpp | C++ | Solutions/CF1543D1.cpp | SamuNatsu/icpc-solution | 17facc464a042026ff117ab33b439e87615de74b | [
"MIT"
] | null | null | null | Solutions/CF1543D1.cpp | SamuNatsu/icpc-solution | 17facc464a042026ff117ab33b439e87615de74b | [
"MIT"
] | null | null | null | Solutions/CF1543D1.cpp | SamuNatsu/icpc-solution | 17facc464a042026ff117ab33b439e87615de74b | [
"MIT"
] | null | null | null | #include <cstdio>
int t, n, k, r;
int main() {
scanf("%d", &t);
while (t--) {
scanf("%d%d", &n, &k);
int q = 0, lst = 0;
for (int i = 0; i < n; ++i) {
q = lst ^ i;
lst ^= q;
printf("%d\n", q);
fflush(stdout);
scanf("%d", &r);
... | 17.909091 | 37 | 0.307107 | SamuNatsu |
c40d812bb32a7fde40a87b21fa899cad836e5948 | 348 | cc | C++ | leetcode/leetcode_218.cc | math715/arts | ff73ccb7d67f7f7c87150204e15aeb46047f0e02 | [
"MIT"
] | null | null | null | leetcode/leetcode_218.cc | math715/arts | ff73ccb7d67f7f7c87150204e15aeb46047f0e02 | [
"MIT"
] | null | null | null | leetcode/leetcode_218.cc | math715/arts | ff73ccb7d67f7f7c87150204e15aeb46047f0e02 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <map>
using namespace std;
vector<pair<int, int>> getSkyline(vector<vector<int>>& buildings) {
vector<pair<int, int>> result;
int buildings idx = 0;
while (true) {
}
return result;
}
int main( int argc, char *... | 15.818182 | 67 | 0.637931 | math715 |
c4165c13cd4a8bee3f87127c8beddb720f43bd98 | 12,157 | hpp | C++ | src/framework/shared/inc/private/common/fxirp.hpp | IT-Enthusiast-Nepal/Windows-Driver-Frameworks | bfee6134f30f92a90dbf96e98d54582ecb993996 | [
"MIT"
] | 994 | 2015-03-18T21:37:07.000Z | 2019-04-26T04:04:14.000Z | src/framework/shared/inc/private/common/fxirp.hpp | IT-Enthusiast-Nepal/Windows-Driver-Frameworks | bfee6134f30f92a90dbf96e98d54582ecb993996 | [
"MIT"
] | 9 | 2015-03-19T08:40:01.000Z | 2019-03-24T22:54:51.000Z | src/framework/shared/inc/private/common/fxirp.hpp | IT-Enthusiast-Nepal/Windows-Driver-Frameworks | bfee6134f30f92a90dbf96e98d54582ecb993996 | [
"MIT"
] | 350 | 2015-03-19T04:29:46.000Z | 2019-05-05T23:26:50.000Z | /*++
Copyright (c) Microsoft Corporation
Module Name:
FxIrp.hpp
Abstract:
This module implements a class for handling irps.
Author:
Environment:
Both kernel and user mode
Revision History:
// A function for when not assigning
... | 14.302353 | 81 | 0.591182 | IT-Enthusiast-Nepal |
c41a5ca1692f2e46445f7554bebb80107923a3a9 | 2,571 | cpp | C++ | AliceEngine/ALC/Rendering/Camera.cpp | ARAMODODRAGON/Project-Alice | 49d3189ba065911c8495cfb04761a2050d3a0702 | [
"MIT"
] | null | null | null | AliceEngine/ALC/Rendering/Camera.cpp | ARAMODODRAGON/Project-Alice | 49d3189ba065911c8495cfb04761a2050d3a0702 | [
"MIT"
] | null | null | null | AliceEngine/ALC/Rendering/Camera.cpp | ARAMODODRAGON/Project-Alice | 49d3189ba065911c8495cfb04761a2050d3a0702 | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2021 Domara Shlimon
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 30.607143 | 87 | 0.731622 | ARAMODODRAGON |
c41b278b7639f741d3c23c2ca68c682efbed0483 | 248 | cpp | C++ | work/desenet-sensor/src/common/platform/nucleo-stm32l476rg/board/display/eplib/hal/gpio.cpp | MacherelR/DeSemProject_20212022 | 7314e5787a3ff2ca5bf95c6de7fbbee9598b98ea | [
"MIT"
] | null | null | null | work/desenet-sensor/src/common/platform/nucleo-stm32l476rg/board/display/eplib/hal/gpio.cpp | MacherelR/DeSemProject_20212022 | 7314e5787a3ff2ca5bf95c6de7fbbee9598b98ea | [
"MIT"
] | null | null | null | work/desenet-sensor/src/common/platform/nucleo-stm32l476rg/board/display/eplib/hal/gpio.cpp | MacherelR/DeSemProject_20212022 | 7314e5787a3ff2ca5bf95c6de7fbbee9598b98ea | [
"MIT"
] | null | null | null | #include "gpio.h"
namespace ep {
/**
* @brief Construct a new GPIO object
*
* @param p1 Pin Number
* @param port Port Name
*/
Gpio::Gpio(GPIO_TypeDef * port, uint32_t pin) :
port(port),
pin(pin)
{
}
} // namespace ep
| 13.052632 | 48 | 0.580645 | MacherelR |
c421c8527b0bdf126b1a2b03027c289b903f9398 | 13,627 | cxx | C++ | test/font_test/font_test.cxx | henne90gen/cgv | 31995e9f09d093f9997980093452a5424d0c1319 | [
"BSD-3-Clause"
] | null | null | null | test/font_test/font_test.cxx | henne90gen/cgv | 31995e9f09d093f9997980093452a5424d0c1319 | [
"BSD-3-Clause"
] | null | null | null | test/font_test/font_test.cxx | henne90gen/cgv | 31995e9f09d093f9997980093452a5424d0c1319 | [
"BSD-3-Clause"
] | null | null | null | #include <cgv/base/node.h>
#include <cgv/base/register.h>
#include <cgv/gui/event_handler.h>
#include <cgv/gui/provider.h>
#include <cgv/gui/key_event.h>
#include <cgv/gui/mouse_event.h>
#include <cgv/utils/file.h>
#include <cgv/utils/dir.h>
#include <cgv/render/drawable.h>
#include <cgv/render/attribute_array_binding.... | 31.764569 | 125 | 0.676965 | henne90gen |
c422e32063934f810d7ba085a9650364c9f7c1d4 | 1,155 | cpp | C++ | luogu/P3478.cpp | delphi122/knowledge_planet | e86cb8f9aa47ef8918cde0e814984a6535023c21 | [
"Apache-2.0"
] | 1 | 2020-07-24T03:07:08.000Z | 2020-07-24T03:07:08.000Z | luogu/P3478.cpp | delphi122/knowledge_planet | e86cb8f9aa47ef8918cde0e814984a6535023c21 | [
"Apache-2.0"
] | null | null | null | luogu/P3478.cpp | delphi122/knowledge_planet | e86cb8f9aa47ef8918cde0e814984a6535023c21 | [
"Apache-2.0"
] | null | null | null | //
// Created by yangtao on 20-11-27.
//
#include <iostream>
#include <cstring>
#include <cstdio>
#include <algorithm>
using namespace std;
typedef long long ll;
const int N = 1e6 + 5;
ll h[N], e[N*2], ne[N*2], size[N], dep[N], dp[N];
int n, idx;
void add(int u, int v) {
e[idx] = v, ne[idx] = h[u], h[u] = idx++;
}
... | 20.625 | 49 | 0.423377 | delphi122 |
c424bb1d9916145c4ecfbcf3106ff97b6794b842 | 809 | cpp | C++ | mp2/main.cpp | Atrifex/ECE-438 | fbf2c3f51291bfa347abaa06f843e2d20d5239f6 | [
"MIT"
] | 2 | 2019-04-25T00:24:55.000Z | 2019-04-25T04:35:05.000Z | mp2/main.cpp | Atrifex/ECE-438 | fbf2c3f51291bfa347abaa06f843e2d20d5239f6 | [
"MIT"
] | null | null | null | mp2/main.cpp | Atrifex/ECE-438 | fbf2c3f51291bfa347abaa06f843e2d20d5239f6 | [
"MIT"
] | 1 | 2020-10-02T21:32:34.000Z | 2020-10-02T21:32:34.000Z |
#include <iostream>
#include <utility>
#include <thread>
#include <chrono>
#include <functional>
#include <atomic>
#include "ls_router.h"
using std::thread;
using std::ref;
void announceToNeighbors(LS_Router & router) {
router.announceToNeighbors();
}
void generateLSP(LS_Router & router) {
router.generateL... | 19.731707 | 84 | 0.672435 | Atrifex |
c42540e5c27ad1cc5aea128573f1731dc0b40771 | 3,385 | cc | C++ | stig/rpc/msg.cc | ctidder/stigdb | d9ef3eb117d46542745ca98c55df13ec71447091 | [
"Apache-2.0"
] | 5 | 2018-04-24T12:36:50.000Z | 2020-03-25T00:37:17.000Z | stig/rpc/msg.cc | ctidder/stigdb | d9ef3eb117d46542745ca98c55df13ec71447091 | [
"Apache-2.0"
] | null | null | null | stig/rpc/msg.cc | ctidder/stigdb | d9ef3eb117d46542745ca98c55df13ec71447091 | [
"Apache-2.0"
] | 2 | 2018-04-24T12:39:24.000Z | 2020-03-25T00:45:08.000Z | /* <stig/rpc/msg.cc>
Implements <stig/rpc/msg.h>.
Copyright 2010-2014 Tagged
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
... | 32.864078 | 109 | 0.690694 | ctidder |
c4269bf3b0e39b55290bc4a407ffcc9b0cdc5a8c | 641 | cpp | C++ | src/Evel/UdpSocket_WF.cpp | hleclerc/Evel | c607adda555f417dfc9fb4de310c07c48ea3642f | [
"Apache-2.0"
] | null | null | null | src/Evel/UdpSocket_WF.cpp | hleclerc/Evel | c607adda555f417dfc9fb4de310c07c48ea3642f | [
"Apache-2.0"
] | null | null | null | src/Evel/UdpSocket_WF.cpp | hleclerc/Evel | c607adda555f417dfc9fb4de310c07c48ea3642f | [
"Apache-2.0"
] | null | null | null | #include "UdpSocket_WF.h"
namespace Evel {
UdpSocket_WF::~UdpSocket_WF() {
if ( f_close ) f_close( this );
}
void UdpSocket_WF::on_rdy() {
if ( f_rdy ) f_rdy( this );
}
void UdpSocket_WF::parse( const InetAddress &src, char **data, unsigned size ) {
if ( f_parse ) f_parse( this, src, data, size );
}
vo... | 24.653846 | 95 | 0.687988 | hleclerc |
c428833922bad37bca68690b5d71003424c6b628 | 1,249 | cpp | C++ | 01-Question_after_WangDao/Chapter_02/2.2/T01.cpp | ysl970629/kaoyan_data_structure | d0a469bf0e9e7040de21eca38dc19961aa7e9a53 | [
"MIT"
] | 2 | 2021-03-24T03:29:16.000Z | 2022-03-29T16:34:30.000Z | 01-Question_after_WangDao/Chapter_02/2.2/T01.cpp | ysl2/kaoyan-data-structure | d0a469bf0e9e7040de21eca38dc19961aa7e9a53 | [
"MIT"
] | null | null | null | 01-Question_after_WangDao/Chapter_02/2.2/T01.cpp | ysl2/kaoyan-data-structure | d0a469bf0e9e7040de21eca38dc19961aa7e9a53 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string.h>
using namespace std;
#define INFINITY 9999
typedef int ElemType;
typedef struct {
ElemType *data;
int length;
} SqList;
SqList initList(int arr[], int length) {
SqList L;
L.length = length;
L.data = (ElemType *)malloc(sizeof(ElemType) * L.length);
for (... | 19.215385 | 61 | 0.536429 | ysl970629 |
c430c3f7a41a594286a0aced1e17298807805390 | 418 | cpp | C++ | contest/AtCoder/abc173/B.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | contest/AtCoder/abc173/B.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | contest/AtCoder/abc173/B.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "string.hpp"
int main() {
int n(in), ac = 0, wa = 0, tle = 0, re = 0;
for (int i = 0; i < n; ++i) {
String s(in);
if (s == "AC") {
++ac;
} else if (s == "WA") {
++wa;
} else if (s == "TLE") {
++tle;
} else {
++re;
}
}
cout << "AC x " << ac << endl;
cou... | 19 | 45 | 0.366029 | not522 |
c431093118059ac620713bcb36cf416c81693b5e | 254 | hpp | C++ | src/Modules/Interface/IModuleBuilder.hpp | pawel-jarosz/nastya-lisp | 813a58523b741e00c8c27980fe658b546e9ff38c | [
"MIT"
] | 1 | 2021-03-12T13:39:17.000Z | 2021-03-12T13:39:17.000Z | src/Modules/Interface/IModuleBuilder.hpp | pawel-jarosz/nastya-lisp | 813a58523b741e00c8c27980fe658b546e9ff38c | [
"MIT"
] | null | null | null | src/Modules/Interface/IModuleBuilder.hpp | pawel-jarosz/nastya-lisp | 813a58523b741e00c8c27980fe658b546e9ff38c | [
"MIT"
] | null | null | null | //
// Created by caedus on 04.02.2021.
//
#pragma once
#include "Modules/Interface/IModule.hpp"
namespace nastya::modules {
class IModuleBuilder {
public:
virtual ~IModuleBuilder() = default;
virtual std::unique_ptr<IModule> build() = 0;
};
}
| 15.875 | 49 | 0.692913 | pawel-jarosz |
c4331b57d588538cff69656332c13bef13a5c624 | 3,031 | hpp | C++ | include/gp/genetic_operations/mutation.hpp | ho-ri1991/genetic-programming | 06d0c1f0719f4d2ddcf9c066d9de1d0bb67772b0 | [
"MIT"
] | null | null | null | include/gp/genetic_operations/mutation.hpp | ho-ri1991/genetic-programming | 06d0c1f0719f4d2ddcf9c066d9de1d0bb67772b0 | [
"MIT"
] | null | null | null | include/gp/genetic_operations/mutation.hpp | ho-ri1991/genetic-programming | 06d0c1f0719f4d2ddcf9c066d9de1d0bb67772b0 | [
"MIT"
] | null | null | null | #ifndef GP_GENETIC_OPERATIONS_MUTATION
#define GP_GENETIC_OPERATIONS_MUTATION
#include <gp/node/node_interface.hpp>
#include <gp/tree/tree.hpp>
#include <gp/tree_operations/tree_operations.hpp>
#include <gp/utility/is_detected.hpp>
#include <cassert>
namespace gp::genetic_operations {
namespace detail {
t... | 41.520548 | 211 | 0.633124 | ho-ri1991 |
c436876c46e9b0354a1ad972f0d59d2e4927cf83 | 1,646 | hpp | C++ | src/vkt/Resample_serial.hpp | szellmann/volk | f8e8755d0e016359e4977934412888830080dd42 | [
"MIT"
] | 1 | 2021-01-20T22:31:07.000Z | 2021-01-20T22:31:07.000Z | src/vkt/Resample_serial.hpp | szellmann/volkit | f8e8755d0e016359e4977934412888830080dd42 | [
"MIT"
] | null | null | null | src/vkt/Resample_serial.hpp | szellmann/volkit | f8e8755d0e016359e4977934412888830080dd42 | [
"MIT"
] | null | null | null | // This file is distributed under the MIT license.
// See the LICENSE file for details.
#pragma once
#include <vkt/Resample.hpp>
#include <vkt/StructuredVolume.hpp>
#include "linalg.hpp"
namespace vkt
{
void Resample_serial(
StructuredVolume& dst,
StructuredVolume& src,
Filte... | 26.983607 | 73 | 0.402795 | szellmann |
c439ec2d3cac849808d08ae87376fbed3236e7c5 | 1,337 | cpp | C++ | luogu/p6198.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | luogu/p6198.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | luogu/p6198.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int n;
int val = 1;
vector<int> arr(1e6+5), ans(1e6+5);
vector<vector<int>> pos(1e6+5, vector<int>());
void slove(int l, int r, int splitNum)
{
/* cout << l << " " << r << endl; */
if(l>r) return;
vector<int> splitPos; //记录分割点
// 二分查端点
int st = lower_bo... | 26.215686 | 96 | 0.511593 | freedomDR |
c43c81cf2f099d29d0bec5181481cc6203ce1388 | 800 | cpp | C++ | source/game/Main.cpp | AlexKoukoulas2074245K/Genesis | 23c114cfe06b65b0b7b5f7807a9ceb4faf8cdf88 | [
"MIT"
] | null | null | null | source/game/Main.cpp | AlexKoukoulas2074245K/Genesis | 23c114cfe06b65b0b7b5f7807a9ceb4faf8cdf88 | [
"MIT"
] | null | null | null | source/game/Main.cpp | AlexKoukoulas2074245K/Genesis | 23c114cfe06b65b0b7b5f7807a9ceb4faf8cdf88 | [
"MIT"
] | null | null | null | ///------------------------------------------------------------------------------------------------
/// Main.cpp
/// Genesis
///
/// Created by Alex Koukoulas on 19/11/2019.
///------------------------------------------------------------------------------------------------
#include "Game.h"
#include "../engine/Gene... | 27.586207 | 99 | 0.3325 | AlexKoukoulas2074245K |
c43ebc79b8b575b62f652c1abbdb65988fd33316 | 984 | cpp | C++ | Plugins/Optimizations/Optimizations/AsyncLogFlush.cpp | Jorteck/unified | 834e39fabfe8fdb0b636cf6b4d48b3a78af64c59 | [
"MIT"
] | null | null | null | Plugins/Optimizations/Optimizations/AsyncLogFlush.cpp | Jorteck/unified | 834e39fabfe8fdb0b636cf6b4d48b3a78af64c59 | [
"MIT"
] | null | null | null | Plugins/Optimizations/Optimizations/AsyncLogFlush.cpp | Jorteck/unified | 834e39fabfe8fdb0b636cf6b4d48b3a78af64c59 | [
"MIT"
] | null | null | null | #include "Optimizations/AsyncLogFlush.hpp"
#include "Services/Hooks/Hooks.hpp"
#include "Services/Tasks/Tasks.hpp"
#include "API/Functions.hpp"
#include "API/CExoDebugInternal.hpp"
#include "API/CExoFile.hpp"
namespace Optimizations {
using namespace NWNXLib;
using namespace NWNXLib::API;
NWNXLib::Services::TasksPr... | 26.594595 | 123 | 0.721545 | Jorteck |
c4460696fcf299459176912295c98084eea6094e | 6,149 | cpp | C++ | examples_tests/07.HardwareSkinning/main.cpp | Crisspl/Nabla | 8e2ff2551113b2837513b188a8f16ef70adc9f81 | [
"Apache-2.0"
] | null | null | null | examples_tests/07.HardwareSkinning/main.cpp | Crisspl/Nabla | 8e2ff2551113b2837513b188a8f16ef70adc9f81 | [
"Apache-2.0"
] | 2 | 2021-04-28T21:42:36.000Z | 2021-06-02T22:52:33.000Z | examples_tests/07.HardwareSkinning/main.cpp | Crisspl/Nabla | 8e2ff2551113b2837513b188a8f16ef70adc9f81 | [
"Apache-2.0"
] | 1 | 2021-05-31T20:33:28.000Z | 2021-05-31T20:33:28.000Z | #define _IRR_STATIC_LIB_
#include <irrlicht.h>
#include "../../ext/ScreenShot/ScreenShot.h"
#include "../common/QToQuitEventReceiver.h"
using namespace irr;
using namespace core;
class SimpleCallBack : public video::IShaderConstantSetCallBack
{
int32_t mvpUniformLocation;
int32_t cameraDirUniformLocation;
vide... | 35.959064 | 175 | 0.733615 | Crisspl |
c448de0cde57393a668990a66beed745ce0007ac | 3,075 | cpp | C++ | ad_map_access/src/point/BoundingSphereOperation.cpp | woojinjjang/map-1 | d12bb410f03d078a995130b4e671746ace8b6287 | [
"MIT"
] | 61 | 2019-12-19T20:57:24.000Z | 2022-03-29T15:20:51.000Z | ad_map_access/src/point/BoundingSphereOperation.cpp | woojinjjang/map-1 | d12bb410f03d078a995130b4e671746ace8b6287 | [
"MIT"
] | 54 | 2020-04-05T05:32:47.000Z | 2022-03-15T18:42:33.000Z | ad_map_access/src/point/BoundingSphereOperation.cpp | woojinjjang/map-1 | d12bb410f03d078a995130b4e671746ace8b6287 | [
"MIT"
] | 31 | 2019-12-20T07:37:39.000Z | 2022-03-16T13:06:16.000Z | // ----------------- BEGIN LICENSE BLOCK ---------------------------------
//
// Copyright (C) 2018-2021 Intel Corporation
//
// SPDX-License-Identifier: MIT
//
// ----------------- END LICENSE BLOCK -----------------------------------
#include "ad/map/point/BoundingSphereOperation.hpp"
namespace ad {
namespace map {... | 28.211009 | 112 | 0.663415 | woojinjjang |
c449c846ca94f3a68d09ce129de727b925a62c83 | 221 | cpp | C++ | Os/MemCommon.cpp | AlperenCetin0/fprime | 7e20febd34019c730da1358567e7a512592de4d8 | [
"Apache-2.0"
] | 9,182 | 2017-07-06T15:51:35.000Z | 2022-03-30T11:20:33.000Z | Os/MemCommon.cpp | AlperenCetin0/fprime | 7e20febd34019c730da1358567e7a512592de4d8 | [
"Apache-2.0"
] | 719 | 2017-07-14T17:56:01.000Z | 2022-03-31T02:41:35.000Z | Os/MemCommon.cpp | AlperenCetin0/fprime | 7e20febd34019c730da1358567e7a512592de4d8 | [
"Apache-2.0"
] | 1,216 | 2017-07-12T15:41:08.000Z | 2022-03-31T21:44:37.000Z | #include <Os/Mem.hpp>
#include <cstring>
namespace Os {
U32 Mem::virtToPhys(U32 virtAddr) {
return virtAddr;
}
U32 Mem::physToVirt(U32 physAddr) {
return physAddr;
}
}
| 13.8125 | 39 | 0.552036 | AlperenCetin0 |
c44a87df8b1fe729708ce05a2d1d2a0766fff0d8 | 1,587 | cpp | C++ | Source/Controllers/Corsair/CorsairController.cpp | pramberg/DeviceRGB | a2020b2b5accb1fc864c16905c35c352d3e4f39b | [
"MIT"
] | 3 | 2021-08-12T16:13:22.000Z | 2022-02-26T05:54:06.000Z | Source/Controllers/Corsair/CorsairController.cpp | pramberg/DeviceRGB | a2020b2b5accb1fc864c16905c35c352d3e4f39b | [
"MIT"
] | 12 | 2021-08-11T09:00:36.000Z | 2021-11-06T16:04:55.000Z | Source/Controllers/Corsair/CorsairController.cpp | pramberg/DeviceRGB | a2020b2b5accb1fc864c16905c35c352d3e4f39b | [
"MIT"
] | null | null | null | // Copyright(c) 2021 Viktor Pramberg
#include "CorsairController.h"
#include <Interfaces/IPluginManager.h>
#include "CorsairDevice.h"
#include "DeviceRGB.h"
#include <CUESDK.h>
FCorsairController::FCorsairController()
{
const FString BaseDir = IPluginManager::Get().FindPlugin("DeviceRGB")->GetBaseDir();
const FStri... | 24.045455 | 120 | 0.759294 | pramberg |
c44be4f8fba288be41dc23c9d349f72f73b0c8cc | 1,158 | hpp | C++ | include/nornir/external/fastflow/ff/make_unique.hpp | DanieleDeSensi/Nornir | 60587824d6b0a6e61b8fc75bdea37c9fc69199c7 | [
"MIT"
] | 11 | 2020-12-16T22:44:08.000Z | 2022-03-30T00:52:58.000Z | include/nornir/external/fastflow/ff/make_unique.hpp | DanieleDeSensi/Nornir | 60587824d6b0a6e61b8fc75bdea37c9fc69199c7 | [
"MIT"
] | 1 | 2021-04-01T09:07:52.000Z | 2021-07-21T22:10:07.000Z | include/nornir/external/fastflow/ff/make_unique.hpp | DanieleDeSensi/Nornir | 60587824d6b0a6e61b8fc75bdea37c9fc69199c7 | [
"MIT"
] | 3 | 2020-12-21T18:47:43.000Z | 2021-11-20T19:48:45.000Z | #ifndef FF_MAKEUNIQUE_HPP
#define FF_MAKEUNIQUE_HPP
#include <memory>
#include <type_traits>
#include <utility>
#if __cplusplus < 201400L // to check
// C++11 implementation of make_unique
#if (__cplusplus >= 201103L) || (defined __GXX_EXPERIMENTAL_CXX0X__) || (defined(HAS_CXX11_VARIADIC_TEMPLATES))
template <typ... | 28.243902 | 111 | 0.701209 | DanieleDeSensi |
c44c7f7ed528e1e6acde199cb5f205e7fb51537d | 14,535 | cpp | C++ | Source/Canvas/selectiontransformitem.cpp | erayzesen/turquoise2D | 33bd2e85169bba4c82c388c1619b2de55065eb7b | [
"Zlib"
] | 13 | 2020-05-24T23:52:48.000Z | 2020-12-01T02:43:03.000Z | Source/Canvas/selectiontransformitem.cpp | erayzesen/turquoise2D | 33bd2e85169bba4c82c388c1619b2de55065eb7b | [
"Zlib"
] | 3 | 2020-05-26T22:19:49.000Z | 2020-12-01T09:31:25.000Z | Source/Canvas/selectiontransformitem.cpp | erayzesen/turquoise2D | 33bd2e85169bba4c82c388c1619b2de55065eb7b | [
"Zlib"
] | 3 | 2020-05-26T01:35:20.000Z | 2020-05-26T13:51:07.000Z | #include "selectiontransformitem.h"
SelectionTransformItem::SelectionTransformItem(QList<QGraphicsItem*> _items,GraphicsScene * _scene,PropertiesItem *_propItem)
{
scene=_scene;
items=_items;
//(i) Defining anchor items for scale
rightBottomAnchor=new TransformAnchor(this,TransformTypes::Scale);
le... | 38.76 | 135 | 0.684692 | erayzesen |
c44f77c396cd96c4c1070d239e652530745ad88b | 470 | hpp | C++ | src/systems/EntityTestSystem.hpp | gabriellanzer/Ravine-ECS | f96467508cd22d4f4b9230b6c5502da201869449 | [
"MIT"
] | 7 | 2019-09-10T10:22:52.000Z | 2021-11-23T02:54:10.000Z | src/systems/EntityTestSystem.hpp | gabriellanzer/Ravine-ECS | f96467508cd22d4f4b9230b6c5502da201869449 | [
"MIT"
] | null | null | null | src/systems/EntityTestSystem.hpp | gabriellanzer/Ravine-ECS | f96467508cd22d4f4b9230b6c5502da201869449 | [
"MIT"
] | null | null | null | #ifndef ENTITYTESTSYSTEM_HPP
#define ENTITYTESTSYSTEM_HPP
#include "components/Position.h"
#include "ravine/ecs.h"
#include "ravine/ecs/Entity.hpp"
using namespace rv;
class EntityTestSystem : public BaseSystem<EntityProxy, Position>
{
void update(double deltaTime, int32_t size, EntityProxy* const e, Position* cons... | 22.380952 | 91 | 0.695745 | gabriellanzer |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.