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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
02767414e8dd7c8e93856fe25c863fc3126e3f30 | 5,587 | cpp | C++ | src/command_set_keyboard.cpp | Schmoller/pedalctl | 502d0600e21f48d23dabc696a67ca82c343b0128 | [
"BSD-2-Clause"
] | null | null | null | src/command_set_keyboard.cpp | Schmoller/pedalctl | 502d0600e21f48d23dabc696a67ca82c343b0128 | [
"BSD-2-Clause"
] | null | null | null | src/command_set_keyboard.cpp | Schmoller/pedalctl | 502d0600e21f48d23dabc696a67ca82c343b0128 | [
"BSD-2-Clause"
] | null | null | null | #include "command_set.hpp"
#include "configuration/keyboard.hpp"
#include "configuration/keys.hpp"
#include "utils/string_utils.hpp"
#include <iostream>
void printSetKeyboardHelp(const std::string_view &name) {
std::cerr
<< "Usage: " << name << " set DEVICE PEDAL keyboard [OPTIONS] KEYS" << std::endl
... | 38.798611 | 119 | 0.514766 | Schmoller |
0276aa0e767aa1508e56a1987e0c7446094ae272 | 5,382 | cpp | C++ | src/cpp/ga/ga.cpp | Aktyn/Genetic-Algorithm | 5ce99e855039411118ac1fa2a3013734678b67be | [
"MIT"
] | 2 | 2019-08-15T10:36:57.000Z | 2019-08-25T14:03:58.000Z | src/cpp/ga/ga.cpp | Aktyn/Genetic-Algorithm | 5ce99e855039411118ac1fa2a3013734678b67be | [
"MIT"
] | 8 | 2019-07-11T11:12:03.000Z | 2022-02-26T10:13:56.000Z | src/cpp/ga/ga.cpp | Aktyn/Genetic-Algorithm | 5ce99e855039411118ac1fa2a3013734678b67be | [
"MIT"
] | null | null | null | #include "ga.h"
#include "utils.h"
#include <cfloat>
#include <algorithm>
#include <cmath>
GA::GA(
float mutation_chance, float mutation_scale, uint32 dna_splits, float dna_twist_chance,
float parent_fitness_scale, uint32 elitism
):
HeapPopulation(),
generation(0),
best_score( -FLT_MAX ),
params( {mutation_chanc... | 31.846154 | 105 | 0.713675 | Aktyn |
0277c079dd38da8be6f17e939491aab8c8bc68b9 | 7,125 | cpp | C++ | test/src/TestFlowScene.cpp | FMichelD/nodeeditor | 276af0ab756481525f48c06b9a0b7f298f7e937a | [
"BSD-3-Clause"
] | 1,903 | 2016-04-10T10:22:30.000Z | 2022-03-31T06:58:07.000Z | test/src/TestFlowScene.cpp | FMichelD/nodeeditor | 276af0ab756481525f48c06b9a0b7f298f7e937a | [
"BSD-3-Clause"
] | 255 | 2016-09-13T17:23:04.000Z | 2022-03-30T10:15:19.000Z | test/src/TestFlowScene.cpp | FMichelD/nodeeditor | 276af0ab756481525f48c06b9a0b7f298f7e937a | [
"BSD-3-Clause"
] | 602 | 2016-05-09T04:54:54.000Z | 2022-03-26T11:55:59.000Z | #include <nodes/FlowScene>
#include <functional>
#include <memory>
#include <utility>
#include <vector>
#include <nodes/Node>
#include <nodes/NodeDataModel>
#include <catch2/catch.hpp>
#include "ApplicationSetup.hpp"
#include "Stringify.hpp"
#include "StubNodeDataModel.hpp"
using QtNodes::Connection;
using QtNodes... | 27.723735 | 98 | 0.650246 | FMichelD |
02787246fdb29841985a7b8fb1d51c31735b8806 | 619,182 | hpp | C++ | src/dlperf/generated_resnet50_benchmarks_64.hpp | rai-project/cudnn_scope | 4c17e34a9998cf2239739ed9c53e7d6d410eab90 | [
"Apache-2.0"
] | 1 | 2018-12-05T04:02:57.000Z | 2018-12-05T04:02:57.000Z | src/dlperf/generated_resnet50_benchmarks_64.hpp | c3sr/cudnn_scope | 4c17e34a9998cf2239739ed9c53e7d6d410eab90 | [
"Apache-2.0"
] | null | null | null | src/dlperf/generated_resnet50_benchmarks_64.hpp | c3sr/cudnn_scope | 4c17e34a9998cf2239739ed9c53e7d6d410eab90 | [
"Apache-2.0"
] | 3 | 2018-12-05T04:03:01.000Z | 2019-04-17T14:07:32.000Z | #ifdef ENABLE_LAYER_CUDNN_POOLING_FWD
namespace LAYER_CUDNN_POOLING_FWD__BatchSize_64__8625114406582101975 {
#define BENCHMARK_LAYER_CUDNN_POOLING_FWD_INPUT_ARGS() \
Args({{ \
64 /* Input0 , idx = 0*/, \
64 /* Input1 , idx = 1*/, \
112 /* Input2 , idx = 2*/, \
112 /* Input3 , idx = 3*/, \
... | 53.571725 | 263 | 0.780019 | rai-project |
02788f26ab6dcee76a59a1502cd1918963f01e2f | 4,646 | cpp | C++ | src/99_main.cpp | JaroslawWiosna/live-voronoi | eeaff823d66c4d09eef07ef357cdd4e88323d2e9 | [
"MIT"
] | null | null | null | src/99_main.cpp | JaroslawWiosna/live-voronoi | eeaff823d66c4d09eef07ef357cdd4e88323d2e9 | [
"MIT"
] | 23 | 2020-09-30T20:14:15.000Z | 2020-10-05T19:38:29.000Z | src/99_main.cpp | JaroslawWiosna/live-voronoi | eeaff823d66c4d09eef07ef357cdd4e88323d2e9 | [
"MIT"
] | null | null | null | #include <SDL.h>
#include <SDL_ttf.h>
#include "30_string_view.cpp"
#include "40_coord.hpp"
#include "50_constants.hpp"
#include "60_camera.hpp"
#include "65_args.hpp"
#include "87_world.cpp"
#include "97_database.cpp"
#include "98_test.cpp"
int main(int argc, char *argv[]) {
#ifdef TESTS
test();
exit(0);
#en... | 40.4 | 79 | 0.420792 | JaroslawWiosna |
0278d241b00ceb76bbd650b957bb145d115b7408 | 160 | cpp | C++ | tests/grad_aff_tests.cpp | gruppe-adler/grad_aff | 109dff4c28d0d80b273a3a8954e37cbf4f891d01 | [
"MIT"
] | null | null | null | tests/grad_aff_tests.cpp | gruppe-adler/grad_aff | 109dff4c28d0d80b273a3a8954e37cbf4f891d01 | [
"MIT"
] | 1 | 2020-11-18T20:49:18.000Z | 2020-11-19T11:46:32.000Z | tests/grad_aff_tests.cpp | gruppe-adler/grad_aff | 109dff4c28d0d80b273a3a8954e37cbf4f891d01 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include "grad_aff/grad_aff.h"
TEST_CASE("version", "[version]") {
REQUIRE(GRAD_AFF_VERSION > 0);
} | 17.777778 | 35 | 0.71875 | gruppe-adler |
0278f7e3f5b00f30df8ef2248599a94d51a103e9 | 1,928 | hpp | C++ | Engine/_Headers/Graphics/ZUniformBuffer.hpp | gitbetter/Zenith | 62092062cad4dda588bfd699185d6ce9be294e63 | [
"MIT"
] | 15 | 2019-04-06T15:45:24.000Z | 2021-02-01T08:04:10.000Z | Engine/_Headers/Graphics/ZUniformBuffer.hpp | gitbetter/Zenith | 62092062cad4dda588bfd699185d6ce9be294e63 | [
"MIT"
] | 1 | 2021-02-03T17:55:07.000Z | 2021-02-18T09:14:09.000Z | Engine/_Headers/Graphics/ZUniformBuffer.hpp | gitbetter/Zenith | 62092062cad4dda588bfd699185d6ce9be294e63 | [
"MIT"
] | null | null | null | /*
______ ______ __ __ __ ______ __ __
/\___ \ /\ ___\ /\ "-.\ \ /\ \ /\__ _\ /\ \_\ \
\/_/ /__ \ \ __\ \ \ \-. \ \ \ \ \/_/\ \/ \ \ __ \
/\_____\ \ \_____\ \ \_\" \_\ \ \_\ \ \_\ \ \_\ \_\
\/_____/ \/_____/ \/_/ \/_/ \/_/ \/_/ \/_/\/_/
ZUnifor... | 27.542857 | 88 | 0.639523 | gitbetter |
027a546b3456b694e98bc4fc91802b9827b0b577 | 2,410 | hpp | C++ | include/AllegroFlare/Framework.hpp | allegroflare/allegro_flare | 21d6fe2a5a5323102285598c8a8c75b393ce0322 | [
"MIT"
] | 11 | 2019-10-18T03:14:36.000Z | 2022-02-28T17:07:43.000Z | include/AllegroFlare/Framework.hpp | allegroflare/allegro_flare | 21d6fe2a5a5323102285598c8a8c75b393ce0322 | [
"MIT"
] | 30 | 2019-10-17T01:23:47.000Z | 2021-03-04T16:38:39.000Z | include/AllegroFlare/Framework.hpp | allegroflare/allegro_flare | 21d6fe2a5a5323102285598c8a8c75b393ce0322 | [
"MIT"
] | 4 | 2020-02-25T18:17:31.000Z | 2021-04-17T05:06:52.000Z | #pragma once
#include <string>
#include <allegro5/allegro.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_native_dialog.h>
#include <AllegroFlare/BitmapBin.hpp>
#include <AllegroFlare/FontBin.hpp>
#include <AllegroFlare/ModelBin.hpp>
#include <AllegroFlare/SampleBin.hpp>
#include <AllegroFlare/Confi... | 28.690476 | 93 | 0.697925 | allegroflare |
027bca264e32c8aead2b5359f69b2dff57e9bd97 | 4,566 | cpp | C++ | image_proc/test/rostest.cpp | Kettenhoax/image_pipeline | 633d259de8f16281e45fc7a2e6c0c8eebde9cb1b | [
"Apache-2.0"
] | 1 | 2021-03-22T15:35:15.000Z | 2021-03-22T15:35:15.000Z | image_proc/test/rostest.cpp | Kettenhoax/image_pipeline | 633d259de8f16281e45fc7a2e6c0c8eebde9cb1b | [
"Apache-2.0"
] | 2 | 2021-09-21T07:02:41.000Z | 2021-09-30T06:51:57.000Z | image_proc/test/rostest.cpp | Kettenhoax/image_pipeline | 633d259de8f16281e45fc7a2e6c0c8eebde9cb1b | [
"Apache-2.0"
] | 2 | 2022-01-07T04:15:47.000Z | 2022-02-11T21:16:47.000Z | // Copyright 2008, 2019 Willow Garage, Inc., Steve Macenski, Joshua Whitley
// All rights reserved.
//
// Software License Agreement (BSD License 2.0)
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// * Redist... | 31.273973 | 90 | 0.706527 | Kettenhoax |
027e3443d1b3c58782d01c5d6a349a2d45103e96 | 758 | hpp | C++ | include/RED4ext/Types/generated/game/weapon/AnimFeature_AimPlayer.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | 1 | 2021-02-01T23:07:50.000Z | 2021-02-01T23:07:50.000Z | include/RED4ext/Types/generated/game/weapon/AnimFeature_AimPlayer.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | include/RED4ext/Types/generated/game/weapon/AnimFeature_AimPlayer.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/Types/generated/anim/AnimFeature_BasicAim.hpp>
namespace RED4ext
{
namespace game::weapon {
struct AnimFeature_AimPlayer : anim::AnimFeature_BasicA... | 28.074074 | 74 | 0.755937 | Cyberpunk-Extended-Development-Team |
027e6a284636fbf89d6e5f1b463d5f33af939e5a | 2,228 | cpp | C++ | Meduza/Source/Core/Components/Components.cpp | NWagter/Meduza | d1df99061381fa1c7665d09e275ddc0060a6ac8d | [
"MIT"
] | 6 | 2020-10-17T10:50:13.000Z | 2022-02-25T20:14:23.000Z | Meduza/Source/Core/Components/Components.cpp | NWagter/Meduza | d1df99061381fa1c7665d09e275ddc0060a6ac8d | [
"MIT"
] | null | null | null | Meduza/Source/Core/Components/Components.cpp | NWagter/Meduza | d1df99061381fa1c7665d09e275ddc0060a6ac8d | [
"MIT"
] | 1 | 2020-05-06T12:02:47.000Z | 2020-05-06T12:02:47.000Z | #include "MePCH.h"
#include "Core/Components/CameraComponent.h"
#include "Core/Components/TransformComponent.h"
#include "Core/Components/RenderComponent.h"
#include "Core/Scripting/ScriptComponent.h"
#include "Physics/Components/PhysicsComponent.h"
#include "Physics/Components/BoxCollider2DComponent.h"
#include "Phy... | 65.529412 | 121 | 0.833932 | NWagter |
02836cc457e9ed3b8a639975ca86c660ab44ee38 | 186 | cpp | C++ | CppImport/test/TypeAlias/test.cpp | patrick-luethi/Envision | b93e6f9bbb2a534b5534a5e48ed40a2c43baba8a | [
"BSD-3-Clause"
] | 75 | 2015-01-18T13:29:43.000Z | 2022-01-14T08:02:01.000Z | CppImport/test/TypeAlias/test.cpp | patrick-luethi/Envision | b93e6f9bbb2a534b5534a5e48ed40a2c43baba8a | [
"BSD-3-Clause"
] | 364 | 2015-01-06T10:20:21.000Z | 2018-12-17T20:12:28.000Z | CppImport/test/TypeAlias/test.cpp | patrick-luethi/Envision | b93e6f9bbb2a534b5534a5e48ed40a2c43baba8a | [
"BSD-3-Clause"
] | 14 | 2015-01-09T00:44:24.000Z | 2022-02-22T15:01:44.000Z | namespace Core {
template <class Base>
class Reflect : public Base
{
protected:
using Super = Reflect<Base>;
};
}
template <class Base> using Super = Core::Reflect<Base>;
| 15.5 | 57 | 0.666667 | patrick-luethi |
0286076f742fe4c4dfd8bd253905dd563f649c5b | 104,205 | cpp | C++ | BasiliskII/src/CrossPlatform/sigsegv.cpp | jvernet/macemu | c616a0dae0f451fc15016765c896175fae3f46cf | [
"Intel",
"X11"
] | 940 | 2015-01-04T12:20:10.000Z | 2022-03-29T12:35:27.000Z | BasiliskII/src/CrossPlatform/sigsegv.cpp | Seanpm2001-virtual-machines/macemu | c616a0dae0f451fc15016765c896175fae3f46cf | [
"Intel",
"X11"
] | 163 | 2015-02-10T09:08:10.000Z | 2022-03-13T05:48:10.000Z | BasiliskII/src/CrossPlatform/sigsegv.cpp | Seanpm2001-virtual-machines/macemu | c616a0dae0f451fc15016765c896175fae3f46cf | [
"Intel",
"X11"
] | 188 | 2015-01-07T19:46:11.000Z | 2022-03-26T19:06:00.000Z | /*
* sigsegv.cpp - SIGSEGV signals support
*
* Derived from Bruno Haible's work on his SIGSEGV library for clisp
* <http://clisp.sourceforge.net/>
*
* MacOS X support derived from the post by Timothy J. Wood to the
* omnigroup macosx-dev list:
* Mach Exception Handlers 101 (Was Re: ptrace, gdb)
* tj... | 30.433703 | 154 | 0.711022 | jvernet |
028a5ce199dfe8fa0894303a2a1edc3f7c1ff9bf | 5,737 | cpp | C++ | experiments/qsp_functions.cpp | fmozafari/starter | de9d431c6f660dd09ac746ebc478bb9df6f0e956 | [
"MIT"
] | 7 | 2020-03-13T17:08:01.000Z | 2021-11-17T11:43:58.000Z | experiments/qsp_functions.cpp | fmozafari/starter | de9d431c6f660dd09ac746ebc478bb9df6f0e956 | [
"MIT"
] | 2 | 2021-03-16T12:05:50.000Z | 2021-03-16T13:06:47.000Z | experiments/qsp_functions.cpp | fmozafari/starter | de9d431c6f660dd09ac746ebc478bb9df6f0e956 | [
"MIT"
] | 8 | 2020-02-13T18:05:55.000Z | 2021-03-16T11:12:33.000Z | #include <angel/angel.hpp>
#include <kitty/kitty.hpp>
#include <tweedledum/IR/Circuit.h>
#include <tweedledum/IR/Instruction.h>
#include "experiments.hpp"
template<class Exp>
void k_equal_function( Exp&& exp, uint32_t num_vars )
{
tweedledum::Circuit ntk;
/* dependency analysis strategies */
typename angel::eso... | 36.310127 | 131 | 0.726861 | fmozafari |
028aef9adfecf46bd16e403bbece9fb6e6fabb06 | 5,839 | hpp | C++ | CmnMath/module/function/inc/function/ACosEstimate.hpp | Khoronus/CmnUniverse | 9cf9b4297f2fcb49330126aa1047b422144045e1 | [
"MIT"
] | null | null | null | CmnMath/module/function/inc/function/ACosEstimate.hpp | Khoronus/CmnUniverse | 9cf9b4297f2fcb49330126aa1047b422144045e1 | [
"MIT"
] | null | null | null | CmnMath/module/function/inc/function/ACosEstimate.hpp | Khoronus/CmnUniverse | 9cf9b4297f2fcb49330126aa1047b422144045e1 | [
"MIT"
] | null | null | null | // Geometric Tools LLC, Redmond WA 98052
// Copyright (c) 1998-2015
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// File Version: 1.0.1 (2014/12/13)
// Approximations to acos(x) of the form f(x) = sq... | 34.550296 | 78 | 0.579551 | Khoronus |
028cf640d2119ae9572c647afa8d47d79b70843c | 30,433 | cpp | C++ | Blizzlike/Trinity/Scripts/Dungeons/ScarletMonastery/boss_headless_horseman.cpp | 499453466/Lua-Other | 43fd2b72405faf3f2074fd2a2706ef115d16faa6 | [
"Unlicense"
] | 2 | 2015-06-23T16:26:32.000Z | 2019-06-27T07:45:59.000Z | Blizzlike/Trinity/Scripts/Dungeons/ScarletMonastery/boss_headless_horseman.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | null | null | null | Blizzlike/Trinity/Scripts/Dungeons/ScarletMonastery/boss_headless_horseman.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | 3 | 2015-01-10T18:22:59.000Z | 2021-04-27T21:28:28.000Z | /*
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software ... | 33.223799 | 160 | 0.463937 | 499453466 |
028f5e81ddb8b2fa6254880034ccbe7dc20baf3a | 6,895 | cpp | C++ | src/screen.cpp | mwagner-webdev/2d-game-engine | 68122eb6ec425472d34c3c2e798c7790a27718a1 | [
"BSD-3-Clause"
] | null | null | null | src/screen.cpp | mwagner-webdev/2d-game-engine | 68122eb6ec425472d34c3c2e798c7790a27718a1 | [
"BSD-3-Clause"
] | null | null | null | src/screen.cpp | mwagner-webdev/2d-game-engine | 68122eb6ec425472d34c3c2e798c7790a27718a1 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2010, Markus Wagner (bgld)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and t... | 26.724806 | 134 | 0.729514 | mwagner-webdev |
02907b7c3924cea40e927c627a25db94c2c7f5fa | 1,103 | cpp | C++ | Structs.cpp | pythonsolidity/CPlusPlusBeginnerExamples | 139cbc737c4a6903e11ed97a6197a45206633364 | [
"MIT"
] | null | null | null | Structs.cpp | pythonsolidity/CPlusPlusBeginnerExamples | 139cbc737c4a6903e11ed97a6197a45206633364 | [
"MIT"
] | null | null | null | Structs.cpp | pythonsolidity/CPlusPlusBeginnerExamples | 139cbc737c4a6903e11ed97a6197a45206633364 | [
"MIT"
] | null | null | null | // nested structs and struct arrays
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
struct dob {
string day;
string month;
unsigned year;
};
struct account {
string fullname;
dob DoB;
} acclist[2]; //array of structs
void printacc (account ... | 26.261905 | 99 | 0.578422 | pythonsolidity |
02965b6c4e520eb71ae5d52b3590cf03399e2988 | 6,182 | cc | C++ | gva-tools/gva-display.cc | ross-newman/vivoe-lite | 6fe26af727c7847b13c0a7d0a3b2c2978f6d74ca | [
"MIT"
] | 8 | 2020-08-11T00:22:20.000Z | 2022-03-02T02:13:33.000Z | gva-tools/gva-display.cc | ross-newman/vivoe-lite | 6fe26af727c7847b13c0a7d0a3b2c2978f6d74ca | [
"MIT"
] | 16 | 2019-07-04T10:35:36.000Z | 2020-10-07T00:27:16.000Z | gva-tools/gva-display.cc | ross-newman/vivoe-lite | 6fe26af727c7847b13c0a7d0a3b2c2978f6d74ca | [
"MIT"
] | 1 | 2019-09-04T11:41:10.000Z | 2019-09-04T11:41:10.000Z | //
// MIT License
//
// Copyright (c) 2022 Ross Newman (ross@rossnewman.com)
//
// 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... | 33.597826 | 80 | 0.715626 | ross-newman |
029aae70daaa46b09947b90a27062265fae70c41 | 10,039 | cc | C++ | Cassie_Example/opt_two_step/gen/anim/Joint_ankle_joint_left_sphere_center.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | Cassie_Example/opt_two_step/gen/anim/Joint_ankle_joint_left_sphere_center.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | Cassie_Example/opt_two_step/gen/anim/Joint_ankle_joint_left_sphere_center.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | /*
* Automatically Generated from Mathematica.
* Sat 13 Nov 2021 15:03:11 GMT-05:00
*/
#ifdef MATLAB_MEX_FILE
#include <stdexcept>
#include <cmath>
#include<math.h>
/**
* Copied from Wolfram Mathematica C Definitions file mdefs.hpp
* Changed marcos to inline functions (Eric Cousineau)
*/
inline double Power(doub... | 23.131336 | 331 | 0.649666 | prem-chand |
029d445d47a21a89d0fa2fb2804654591e4ac181 | 648 | cpp | C++ | Moving.cpp | hokaros/sdl-frogger | 090074dd26ff328d42ee0ff9e9edbef32ffd9400 | [
"MIT"
] | null | null | null | Moving.cpp | hokaros/sdl-frogger | 090074dd26ff328d42ee0ff9e9edbef32ffd9400 | [
"MIT"
] | null | null | null | Moving.cpp | hokaros/sdl-frogger | 090074dd26ff328d42ee0ff9e9edbef32ffd9400 | [
"MIT"
] | null | null | null | #include "Moving.h"
Moving::Moving(Area a, Vector velocity)
:Area(a){
this->velocity = velocity;
this->pixelsToMove = ZERO_VECTOR;
}
VectorInt Moving::Move(double deltaTime) {
if (velocity.x != 0 || velocity.y != 0) {
pixelsToMove.x += (velocity.x * deltaTime);
pixelsToMove.y += (velocity.y * deltaTime);
V... | 23.142857 | 71 | 0.669753 | hokaros |
029d9a9ddace87ea006f6b9354ed2524636a1dd2 | 8,304 | cpp | C++ | test/Discretization/Basis/HGRAD_TET_Cn_FEM/test_01.cpp | Sandia2014/intrepid | 9a310ddc033da1dda162a09bf80cca6c2dde2d6b | [
"MIT"
] | null | null | null | test/Discretization/Basis/HGRAD_TET_Cn_FEM/test_01.cpp | Sandia2014/intrepid | 9a310ddc033da1dda162a09bf80cca6c2dde2d6b | [
"MIT"
] | null | null | null | test/Discretization/Basis/HGRAD_TET_Cn_FEM/test_01.cpp | Sandia2014/intrepid | 9a310ddc033da1dda162a09bf80cca6c2dde2d6b | [
"MIT"
] | null | null | null | // @HEADER
// ************************************************************************
//
// Intrepid Package
// Copyright (2007) Sandia Corporation
//
// Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
// license for use of this work by or on behalf of the ... | 41.728643 | 102 | 0.529624 | Sandia2014 |
029febf55b0586a55e95141dc5f1a20af91a333c | 1,626 | cpp | C++ | chapter3/vector.cpp | iwiniwin/learncpp | b346c886364c8829647c3359f23a4a7f06989a4d | [
"MIT"
] | null | null | null | chapter3/vector.cpp | iwiniwin/learncpp | b346c886364c8829647c3359f23a4a7f06989a4d | [
"MIT"
] | null | null | null | chapter3/vector.cpp | iwiniwin/learncpp | b346c886364c8829647c3359f23a4a7f06989a4d | [
"MIT"
] | null | null | null | #include <string>
using std::string;
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
#include <vector>
using std::vector;
int main(){
vector<int> ivec; // ivec保存int类型的对象,默认初始化,ivec空vector,不包含任何元素
vector<vector<string>> file;
ivec.push_back(33);
vector<int> ivec2(ivec); // 把i... | 25.809524 | 66 | 0.576261 | iwiniwin |
02a15a2bf36f925bde2a611c730cd77962df3ada | 7,724 | cpp | C++ | client/networking/entities/CClientPlayer.cpp | norelock/Project-MP-1 | 31dbb5c74b29a47df4cf41280887a66794fdc5ff | [
"MIT"
] | 1 | 2022-02-19T15:52:29.000Z | 2022-02-19T15:52:29.000Z | client/networking/entities/CClientPlayer.cpp | cleoppa/norasa | 6f8d697922dca2fcc42a5830a384e790c687833a | [
"MIT"
] | 2 | 2020-11-08T08:12:41.000Z | 2022-01-08T07:20:45.000Z | client/networking/entities/CClientPlayer.cpp | cleoppa/norasa | 6f8d697922dca2fcc42a5830a384e790c687833a | [
"MIT"
] | 3 | 2020-03-23T06:56:35.000Z | 2021-06-06T02:30:06.000Z | #include "main.h"
void CClientPlayer::Process()
{
if (this == CNetworkEntityManager::localPlayer) return;
static CVector vecPosOffset = {};
static CVector vecSpeedOffset = {};
static bool bFirstProcess = true;
static int iCurrentPacketTime = this->m_iLastPacketTime;
static int iLerpTimer = 0... | 37.31401 | 170 | 0.647074 | norelock |
02a1c0ce90c5b5bed8867f9580e81899583ce816 | 4,767 | cpp | C++ | Sandbox/Eudora/PgGlobals.cpp | dusong7/eudora-win | 850a6619e6b0d5abc770bca8eb5f3b9001b7ccd2 | [
"BSD-3-Clause-Clear"
] | 10 | 2018-05-23T10:43:48.000Z | 2021-12-02T17:59:48.000Z | Windows/Sandbox/Eudora/PgGlobals.cpp | officialrafsan/EUDORA | bf43221f5663ec2338aaf90710a89d1490b92ed2 | [
"MIT"
] | 1 | 2019-03-19T03:56:36.000Z | 2021-05-26T18:36:03.000Z | Windows/Sandbox/Eudora/PgGlobals.cpp | officialrafsan/EUDORA | bf43221f5663ec2338aaf90710a89d1490b92ed2 | [
"MIT"
] | 11 | 2018-05-23T10:43:53.000Z | 2021-12-27T15:42:58.000Z | // PgGlobals.cpp
// Wrapper classes for the Paige API global data structures. Provides namespace
// protection while automatically handling startup/shutdown sequence.
#include "stdafx.h"
#include "PgGlobals.h"
#include "PgStyleUtils.h"
#include "PaigeStyle.h"
//#include "pgcntl.h"
#include "font.h"
#include "resource.... | 28.375 | 83 | 0.655758 | dusong7 |
02a63a0fb77551e064bb2136640c2ca659334ad8 | 11,590 | cpp | C++ | Gem/Code/Source/ProceduralSkinnedMeshUtils.cpp | akioCL/o3de-atom-sampleviewer | 6200a22a265353e4dfa5529fbdeaa31b41491723 | [
"Apache-2.0",
"MIT"
] | null | null | null | Gem/Code/Source/ProceduralSkinnedMeshUtils.cpp | akioCL/o3de-atom-sampleviewer | 6200a22a265353e4dfa5529fbdeaa31b41491723 | [
"Apache-2.0",
"MIT"
] | null | null | null | Gem/Code/Source/ProceduralSkinnedMeshUtils.cpp | akioCL/o3de-atom-sampleviewer | 6200a22a265353e4dfa5529fbdeaa31b41491723 | [
"Apache-2.0",
"MIT"
] | null | null | null | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <ProceduralSkinnedMesh.h>
#include <Atom/RPI.Reflect/Asset/AssetUtils.h>
#include <Atom/... | 53.410138 | 200 | 0.716221 | akioCL |
02b17da43d3ecc52e4036d44443c9a126332d3da | 64 | cpp | C++ | EnteeZ/src/TemplateStorage.cpp | 0xen/EnteeZ | 60928ad6022890754f7cb2a633c5ae7fc2454985 | [
"MIT"
] | 3 | 2019-03-22T14:59:33.000Z | 2021-02-04T09:55:00.000Z | EnteeZ/src/TemplateStorage.cpp | 0xen/EnteeZ | 60928ad6022890754f7cb2a633c5ae7fc2454985 | [
"MIT"
] | null | null | null | EnteeZ/src/TemplateStorage.cpp | 0xen/EnteeZ | 60928ad6022890754f7cb2a633c5ae7fc2454985 | [
"MIT"
] | null | null | null | #include <EnteeZ/TemplateStorage.hpp>
using namespace enteez;
| 12.8 | 37 | 0.796875 | 0xen |
02b3a0e56d5affa751686aa3ceb74be643c74bbe | 63,746 | hpp | C++ | include/System/Xml/Schema/SchemaNames.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/Xml/Schema/SchemaNames.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/Xml/Schema/SchemaNames.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils-met... | 51.242765 | 221 | 0.703903 | v0idp |
02b4d50007584cecc760c86e0cce02ca57bd67ac | 1,126 | cpp | C++ | Leetcode/Arrays/two-city-scheduling.cpp | susantabiswas/competitive_coding | 49163ecdc81b68f5c1bd90988cc0dfac34ad5a31 | [
"MIT"
] | 2 | 2021-04-29T14:44:17.000Z | 2021-10-01T17:33:22.000Z | Leetcode/Arrays/two-city-scheduling.cpp | adibyte95/competitive_coding | a6f084d71644606c21840875bad78d99f678a89d | [
"MIT"
] | null | null | null | Leetcode/Arrays/two-city-scheduling.cpp | adibyte95/competitive_coding | a6f084d71644606c21840875bad78d99f678a89d | [
"MIT"
] | 1 | 2021-10-01T17:33:29.000Z | 2021-10-01T17:33:29.000Z | /*
https://leetcode.com/problems/two-city-scheduling/
TC: O(NlogN)
*/
class Solution {
public:
int twoCitySchedCost(vector<vector<int>>& costs) {
// For each person, we need to know whether it is better to send
// him to A or B. To know this we compute the money lost for each person
... | 35.1875 | 80 | 0.554174 | susantabiswas |
02b503a5126cb65861e3f722065d51619753a4f3 | 423 | hh | C++ | curses/src/NetworkProps.hh | okeri/snm | 06ce502e5635029d1e642fdac87f4a19c0bc4520 | [
"MIT"
] | 3 | 2019-08-15T10:03:27.000Z | 2020-01-02T14:29:08.000Z | curses/src/NetworkProps.hh | okeri/snm | 06ce502e5635029d1e642fdac87f4a19c0bc4520 | [
"MIT"
] | null | null | null | curses/src/NetworkProps.hh | okeri/snm | 06ce502e5635029d1e642fdac87f4a19c0bc4520 | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <string>
#include <string_view>
#include <snm_types.hh>
#include "Window.hh"
class NetworkProps: public Window {
class Impl;
std::unique_ptr<Impl> pImpl_;
public:
NetworkProps();
~NetworkProps();
void assign(std::string_view essid, snm::ConnectionProps &&... | 20.142857 | 70 | 0.687943 | okeri |
02b906f4c3004a3f79e9cc4e4b05f44ba681aa6a | 7,518 | cxx | C++ | Imaging/Hybrid/vtkImageToPoints.cxx | DmitrySemikin/vtk-mirror | 7e70ac8c84797c7603686bd9bf8030c2ad8f101f | [
"BSD-3-Clause"
] | 1 | 2021-07-21T07:15:44.000Z | 2021-07-21T07:15:44.000Z | Imaging/Hybrid/vtkImageToPoints.cxx | DmitrySemikin/vtk-mirror | 7e70ac8c84797c7603686bd9bf8030c2ad8f101f | [
"BSD-3-Clause"
] | null | null | null | Imaging/Hybrid/vtkImageToPoints.cxx | DmitrySemikin/vtk-mirror | 7e70ac8c84797c7603686bd9bf8030c2ad8f101f | [
"BSD-3-Clause"
] | 2 | 2020-03-24T14:09:05.000Z | 2021-09-17T09:30:26.000Z | /*=========================================================================
Program: Visualization Toolkit
Module: vtkImageToPoints.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software... | 31.588235 | 97 | 0.615855 | DmitrySemikin |
02b9a27400be943cfd92d0e3d58883bf7de311a5 | 3,214 | cpp | C++ | Bisection.cpp | adityas129/ECE-150 | 0db483690ad2ce8fe1d5df4994c55bddc7a32569 | [
"MIT"
] | null | null | null | Bisection.cpp | adityas129/ECE-150 | 0db483690ad2ce8fe1d5df4994c55bddc7a32569 | [
"MIT"
] | null | null | null | Bisection.cpp | adityas129/ECE-150 | 0db483690ad2ce8fe1d5df4994c55bddc7a32569 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////
//
// Your #includes here; make sure you are allowed them ...
//
#include <limits>
#include <stdlib.h>
//////////////////////////////////////////////////////////////
//
// #includes and function declarations; do not remove
//
#ifndef MARMOSET_TESTING
#def... | 27.706897 | 166 | 0.561917 | adityas129 |
02ba1299c44bf725edf5bf8ee8d6a71116ec3635 | 669 | hpp | C++ | libs/fnd/bigint/include/bksge/fnd/bigint/detail/divide.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/bigint/include/bksge/fnd/bigint/detail/divide.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/bigint/include/bksge/fnd/bigint/detail/divide.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file divide.hpp
*
* @brief divide 関数の定義
*
* @author myoukaku
*/
#ifndef BKSGE_FND_BIGINT_DETAIL_DIVIDE_HPP
#define BKSGE_FND_BIGINT_DETAIL_DIVIDE_HPP
#include <bksge/fnd/bigint/detail/div_mod.hpp>
#include <bksge/fnd/config.hpp>
namespace bksge
{
namespace detail
{
namespace bigin... | 17.605263 | 75 | 0.723468 | myoukaku |
02c06c22dd0edea22c5fdd58f3e6cff08ac20c3e | 1,165 | cpp | C++ | YorozuyaGSLib/source/_itembox_take_add_result_zoclDetail.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/_itembox_take_add_result_zoclDetail.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/_itembox_take_add_result_zoclDetail.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <_itembox_take_add_result_zoclDetail.hpp>
#include <common/ATFCore.hpp>
START_ATF_NAMESPACE
namespace Detail
{
Info::_itembox_take_add_result_zoclsize2_ptr _itembox_take_add_result_zoclsize2_next(nullptr);
Info::_itembox_take_add_result_zoclsize2_clbk _itembox_take_add_result_zoclsize... | 41.607143 | 124 | 0.71073 | lemkova |
02c174a452c4039a2f743130066e1443003a9f72 | 2,739 | cpp | C++ | editor/src/formula_nodes.cpp | huangfeidian/formula_tree | fdb0db2c3e4503055630381e499934118d4a6036 | [
"BSD-3-Clause"
] | 5 | 2020-04-10T07:31:11.000Z | 2021-11-19T04:41:58.000Z | editor/src/formula_nodes.cpp | huangfeidian/formula_tree | fdb0db2c3e4503055630381e499934118d4a6036 | [
"BSD-3-Clause"
] | null | null | null | editor/src/formula_nodes.cpp | huangfeidian/formula_tree | fdb0db2c3e4503055630381e499934118d4a6036 | [
"BSD-3-Clause"
] | null | null | null | #include <tree_editor/common/dialogs/editable_item.h>
#include <tree_editor/common/choice_manager.h>
#include "formula_nodes.h"
using namespace spiritsaway::tree_editor;
using namespace std;
json formula_node::to_json() const
{
auto result = config_node::to_json();
json::object_t extra;
if (_type == "literal")
{... | 26.852941 | 135 | 0.690398 | huangfeidian |
02c4e3ac44ca8c202bdbb218db9e312fd3d461ce | 638 | cpp | C++ | _tutorials/gps-parsing-esp32-t-beam/src/gps/gps.cpp | AvinashPudale/port | ae62f709eb9f32c367ea39a5e378c94185853f9c | [
"MIT"
] | 27 | 2019-07-25T04:03:13.000Z | 2022-03-12T09:56:21.000Z | _tutorials/gps-parsing-esp32-t-beam/src/gps/gps.cpp | AvinashPudale/port | ae62f709eb9f32c367ea39a5e378c94185853f9c | [
"MIT"
] | 14 | 2019-07-17T03:46:32.000Z | 2022-03-17T07:54:37.000Z | _tutorials/gps-parsing-esp32-t-beam/src/gps/gps.cpp | AvinashPudale/port | ae62f709eb9f32c367ea39a5e378c94185853f9c | [
"MIT"
] | 18 | 2019-10-05T14:12:45.000Z | 2021-12-09T10:36:54.000Z | #include "gps.h"
#include <HardwareSerial.h>
#include <TinyGPS++.h>
#define GPS_SERIAL_NUM 1
#define GPS_RX_PIN 34
#define GPS_TX_PIN 12
HardwareSerial GPSSerial(GPS_SERIAL_NUM);
TinyGPSPlus gps;
void initGPS() {
GPSSerial.begin(9600, SERIAL_8N1, GPS_RX_PIN, GPS_TX_PIN);
}
bool isGPSAvailable() {
if (GPSSerial.... | 19.333333 | 73 | 0.697492 | AvinashPudale |
02c5a4321ecf3f75cb202d115b033646347fd19b | 2,907 | cc | C++ | modules/audio_coding/neteq/relative_arrival_delay_tracker.cc | jxfwinter/webrtc | abd2ed091133fe2201c90638bfc93aca6d1bd1ae | [
"BSD-3-Clause"
] | 162 | 2018-04-03T04:29:45.000Z | 2022-03-30T19:41:27.000Z | modules/audio_coding/neteq/relative_arrival_delay_tracker.cc | Setheum-Foundation/webrtc | 00d215f59c9094a893e6b6c6a8f04a9467035f73 | [
"BSD-3-Clause"
] | 6 | 2020-07-28T22:26:13.000Z | 2021-11-15T20:14:30.000Z | modules/audio_coding/neteq/relative_arrival_delay_tracker.cc | Setheum-Foundation/webrtc | 00d215f59c9094a893e6b6c6a8f04a9467035f73 | [
"BSD-3-Clause"
] | 62 | 2018-03-26T08:38:18.000Z | 2022-03-14T02:29:47.000Z | /*
* Copyright (c) 2021 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 34.607143 | 78 | 0.712074 | jxfwinter |
02c8ada654ae39a9f783b548bcecbe046ce0033e | 4,782 | cc | C++ | src/solver/lemmas.cc | nerdling/SBSAT | 6328c6aa105b75693d06bf0dae4a3b5ca220318b | [
"Unlicense"
] | 4 | 2015-03-08T07:56:29.000Z | 2017-10-12T04:19:27.000Z | src/solver/lemmas.cc | nerdling/SBSAT | 6328c6aa105b75693d06bf0dae4a3b5ca220318b | [
"Unlicense"
] | null | null | null | src/solver/lemmas.cc | nerdling/SBSAT | 6328c6aa105b75693d06bf0dae4a3b5ca220318b | [
"Unlicense"
] | null | null | null | /* =========FOR INTERNAL USE ONLY. NO DISTRIBUTION PLEASE ========== */
/*********************************************************************
Copyright 1999-2007, University of Cincinnati. All rights reserved.
By using this software the USER indicates that he or she has read,
understood and will comply with the f... | 34.402878 | 85 | 0.705563 | nerdling |
c49e9a907c27a5b1dba7a4321e270d6ae2e433c7 | 3,246 | hxx | C++ | include/seglib/cgp2d/maps/node_maps_new.hxx | DerThorsten/seglib | 4655079e390e301dd93e53f5beed6c9737d6df9f | [
"MIT"
] | null | null | null | include/seglib/cgp2d/maps/node_maps_new.hxx | DerThorsten/seglib | 4655079e390e301dd93e53f5beed6c9737d6df9f | [
"MIT"
] | null | null | null | include/seglib/cgp2d/maps/node_maps_new.hxx | DerThorsten/seglib | 4655079e390e301dd93e53f5beed6c9737d6df9f | [
"MIT"
] | null | null | null |
#ifndef CGP2D_NODE_MAPS
#define CGP2D_NODE_MAPS
/* vigra */
#include <vigra/multi_array.hxx>
#include <vigra/tinyvector.hxx>
#include "seglib/cgp2d/cgp2d.hxx"
#include "seglib/cgp2d/cgp2d_python.hxx"
#include "seglib/cgp2d/dynamic_graph.hxx"
#include "seglib/distances/distance.hxx"
namespace cgp2d{
templat... | 30.914286 | 176 | 0.746765 | DerThorsten |
c4a2fabe0c04009b20fba31bff1aca8ead118a99 | 2,270 | cpp | C++ | PTA-B/wrong/1044.wrong.cpp | chiangyung/PTA | c8e6bcbc9e552dad5ab71679d861a235b8ad0730 | [
"MIT"
] | 2 | 2018-08-23T06:58:56.000Z | 2018-09-04T02:07:44.000Z | PTA-B/wrong/1044.wrong.cpp | chiangyung/PTA | c8e6bcbc9e552dad5ab71679d861a235b8ad0730 | [
"MIT"
] | null | null | null | PTA-B/wrong/1044.wrong.cpp | chiangyung/PTA | c8e6bcbc9e552dad5ab71679d861a235b8ad0730 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <sstream>
using namespace std;
const int N = 100;
int main(int argc, char const* argv[])
{
int n;
string stmp;
string num[N];
stringstream ss;
const string low[13] = {
"tret",
"jan", "feb", "mar", "apr", "may", "jun",
"jly", "... | 25.505618 | 64 | 0.295595 | chiangyung |
c4a49baa46f6e03065ecce53bed900030fa113c4 | 2,358 | cc | C++ | src/ppl/nn/engines/arm/optimizer/ops/onnx/reshape_op.cc | kuroro-tian/ppl.nn | 7b33cd1fd0660540aec483f299b20094425e7138 | [
"Apache-2.0"
] | 1 | 2022-03-27T07:55:37.000Z | 2022-03-27T07:55:37.000Z | src/ppl/nn/engines/arm/optimizer/ops/onnx/reshape_op.cc | kuroro-tian/ppl.nn | 7b33cd1fd0660540aec483f299b20094425e7138 | [
"Apache-2.0"
] | null | null | null | src/ppl/nn/engines/arm/optimizer/ops/onnx/reshape_op.cc | kuroro-tian/ppl.nn | 7b33cd1fd0660540aec483f299b20094425e7138 | [
"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 may... | 38.655738 | 100 | 0.717981 | kuroro-tian |
c4ac659592b99c5bd4fbd104f4d1bd07ab6e6e28 | 2,021 | cpp | C++ | ts-socks/endpoint.cpp | manish-drake/ts-shell | 486d327599c0f99afd74acf969bb4c3b9a55cdee | [
"Apache-2.0"
] | null | null | null | ts-socks/endpoint.cpp | manish-drake/ts-shell | 486d327599c0f99afd74acf969bb4c3b9a55cdee | [
"Apache-2.0"
] | null | null | null | ts-socks/endpoint.cpp | manish-drake/ts-shell | 486d327599c0f99afd74acf969bb4c3b9a55cdee | [
"Apache-2.0"
] | null | null | null | #include "endpoint.h"
#include "context.h"
#include <ctime>
Endpoint::Endpoint(const char *id):m_sock(*Context::Get(), ZMQ_DEALER)
{
m_ep.append("inproc://").append(id);
this->setup();
char _id[10];
srand((uint)time(0));
sprintf(_id, "%04d-%04d", rand() % 10000, rand() % 10000);
m_sock.setsock... | 26.946667 | 102 | 0.586343 | manish-drake |
c4b064ff2836570ffa127f3c6cad15e58aa8d6f9 | 146 | hpp | C++ | sgf-parse/src/GameServer.hpp | Ginto8/OmegaGo | 6c7da80b2a3aae3fa2a06e66d28d7409e2a690ca | [
"MIT"
] | 2 | 2016-12-27T07:21:34.000Z | 2017-02-25T15:29:09.000Z | sgf-parse/src/GameServer.hpp | jpdoyle/OmegaGo | 6c7da80b2a3aae3fa2a06e66d28d7409e2a690ca | [
"MIT"
] | null | null | null | sgf-parse/src/GameServer.hpp | jpdoyle/OmegaGo | 6c7da80b2a3aae3fa2a06e66d28d7409e2a690ca | [
"MIT"
] | null | null | null | #ifndef GAMESERVER_HPP
#define GAMESERVER_HPP
#include <iostream>
#include "Util.hpp"
void gameServer(stream getCh,std::ostream& out);
#endif
| 13.272727 | 48 | 0.767123 | Ginto8 |
c4b700ed7c9556733a78dbe5862037908cda9796 | 1,214 | hpp | C++ | sdk/core/azure-core/inc/azure/core/internal/diagnostics/log.hpp | RickWinter/azure-sdk-for-cpp | b4fe751310f53669a941e00aa93072f2d10a4eba | [
"MIT"
] | 96 | 2020-03-19T07:49:39.000Z | 2022-03-20T14:22:41.000Z | sdk/core/azure-core/inc/azure/core/internal/diagnostics/log.hpp | RickWinter/azure-sdk-for-cpp | b4fe751310f53669a941e00aa93072f2d10a4eba | [
"MIT"
] | 2,572 | 2020-03-18T22:54:53.000Z | 2022-03-31T22:09:59.000Z | sdk/core/azure-core/inc/azure/core/internal/diagnostics/log.hpp | RickWinter/azure-sdk-for-cpp | b4fe751310f53669a941e00aa93072f2d10a4eba | [
"MIT"
] | 81 | 2020-03-19T09:42:00.000Z | 2022-03-24T05:11:05.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#pragma once
#include "azure/core/diagnostics/logger.hpp"
#include "azure/core/dll_import_export.hpp"
#include <atomic>
#include <type_traits>
namespace Azure { namespace Core { namespace Diagnostics { namespace _internal {... | 30.35 | 84 | 0.712521 | RickWinter |
c4bcc2467b3789dbb11cae750e79c711a1a4b286 | 23,261 | hpp | C++ | src/KawaiiEngine/include/widgets/ComponentInspector.hpp | Mathieu-Lala/Cute_Solar_System_-3 | 0bfe496991344709481995af348da2be37a19cac | [
"MIT"
] | 4 | 2021-06-03T11:20:09.000Z | 2022-02-11T06:52:54.000Z | src/KawaiiEngine/include/widgets/ComponentInspector.hpp | Mathieu-Lala/Cute_Solar_System_-3 | 0bfe496991344709481995af348da2be37a19cac | [
"MIT"
] | 35 | 2021-05-29T09:25:57.000Z | 2021-06-28T04:49:22.000Z | src/KawaiiEngine/include/widgets/ComponentInspector.hpp | Mathieu-Lala/Kawaii_Engine | 0bfe496991344709481995af348da2be37a19cac | [
"MIT"
] | null | null | null | #pragma once
#include <optional>
#include <entt/entt.hpp>
#include <spdlog/spdlog.h>
#include "graphics/deps.hpp"
#include <ImGuiFileDialog.h>
#include "helpers/macro.hpp"
#include "component.hpp"
namespace kawe {
class ComponentInspector {
public:
ComponentInspector() : count{s_count++} {}
std::optional... | 35.786154 | 123 | 0.558488 | Mathieu-Lala |
c4be6b55d2e76430e54d26c915fe88542e4334bd | 2,409 | cpp | C++ | editor/widgets/DeletionDialog.cpp | gan74/yave | c71b5dd7c05b1aa39c59a8071fc243c1472e71d1 | [
"MIT"
] | null | null | null | editor/widgets/DeletionDialog.cpp | gan74/yave | c71b5dd7c05b1aa39c59a8071fc243c1472e71d1 | [
"MIT"
] | null | null | null | editor/widgets/DeletionDialog.cpp | gan74/yave | c71b5dd7c05b1aa39c59a8071fc243c1472e71d1 | [
"MIT"
] | null | null | null | /*******************************
Copyright (c) 2016-2022 Grégoire Angerand
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... | 33.929577 | 106 | 0.665836 | gan74 |
c4c35258974738a9e02af2aeee63dd8ad188d7d4 | 11,279 | cpp | C++ | Source/Extras/LuaScript/LuaScript.cpp | eberan/urho3d_old_mirror | 4229536f17f1463bc79ae99acae49a61e9b7502a | [
"Apache-2.0"
] | 1 | 2021-07-04T13:41:51.000Z | 2021-07-04T13:41:51.000Z | Source/Extras/LuaScript/LuaScript.cpp | eberan/urho3d_old_mirror | 4229536f17f1463bc79ae99acae49a61e9b7502a | [
"Apache-2.0"
] | null | null | null | Source/Extras/LuaScript/LuaScript.cpp | eberan/urho3d_old_mirror | 4229536f17f1463bc79ae99acae49a61e9b7502a | [
"Apache-2.0"
] | null | null | null | //
// Copyright (c) 2008-2013 the Urho3D project.
//
// 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, mod... | 29.526178 | 108 | 0.650856 | eberan |
c4c41f3375da51ea03b2eb881a0f7e6ee936b9ad | 1,279 | cpp | C++ | dbms/src/Storages/System/StorageSystemDatabases.cpp | avasiliev/ClickHouse | 376f283b84f646daa6c89297110abd48248b2af9 | [
"Apache-2.0"
] | null | null | null | dbms/src/Storages/System/StorageSystemDatabases.cpp | avasiliev/ClickHouse | 376f283b84f646daa6c89297110abd48248b2af9 | [
"Apache-2.0"
] | null | null | null | dbms/src/Storages/System/StorageSystemDatabases.cpp | avasiliev/ClickHouse | 376f283b84f646daa6c89297110abd48248b2af9 | [
"Apache-2.0"
] | null | null | null | #include <Columns/ColumnString.h>
#include <DataTypes/DataTypeString.h>
#include <DataStreams/OneBlockInputStream.h>
#include <Databases/IDatabase.h>
#include <Storages/System/StorageSystemDatabases.h>
#include <Interpreters/Context.h>
namespace DB
{
StorageSystemDatabases::StorageSystemDatabases(const std::string ... | 26.645833 | 130 | 0.719312 | avasiliev |
c4c45a27611ff632332b4aebdb8e47df28d6b89e | 733 | hpp | C++ | MarshmallowCode/src/Tokenizer.hpp | Ornibyl/MallowCode | cb733c7c3965bf56cddbb39f1b0384615ae63388 | [
"MIT"
] | 4 | 2021-11-09T03:42:09.000Z | 2022-02-08T02:26:11.000Z | MarshmallowCode/src/Tokenizer.hpp | Ornibyl/MallowCode | cb733c7c3965bf56cddbb39f1b0384615ae63388 | [
"MIT"
] | null | null | null | MarshmallowCode/src/Tokenizer.hpp | Ornibyl/MallowCode | cb733c7c3965bf56cddbb39f1b0384615ae63388 | [
"MIT"
] | null | null | null | #pragma once
#include "Token.hpp"
#include "Error.hpp"
#include <vector>
#include <optional>
namespace mlwc
{
class Tokenizer
{
public:
Tokenizer(const std::string& file_text);
bool ignore_new_lines = false;
Token advance();
void rewind_to_last_newline();
private:
... | 20.361111 | 74 | 0.633015 | Ornibyl |
c4cbfa64bb67e9813015602185d484537a94f132 | 1,791 | cpp | C++ | main.cpp | Gabe-Jespersen/NumberInfo | c0fae1707f99528c9f8f336a4a1cd5430dffff74 | [
"BSD-2-Clause"
] | null | null | null | main.cpp | Gabe-Jespersen/NumberInfo | c0fae1707f99528c9f8f336a4a1cd5430dffff74 | [
"BSD-2-Clause"
] | null | null | null | main.cpp | Gabe-Jespersen/NumberInfo | c0fae1707f99528c9f8f336a4a1cd5430dffff74 | [
"BSD-2-Clause"
] | null | null | null | /*
* =====================================================================================
*
* Filename: main.cpp
*
* Description: main file
*
* Version: 1.0
* Created: 12/23/2014 06:14:34 PM
* Revision: none
* Compiler: gcc
*
* Author: Gabe Jespersen, gzack... | 19.258065 | 88 | 0.418202 | Gabe-Jespersen |
c4cec63a549d6fe9eccbd0433f985d645990a3fd | 17,913 | cpp | C++ | src/lib/nas/values.cpp | aligungr/ue-ran-sim | 564f9d228723f03adfa2b02df2ea019bdf305085 | [
"MIT"
] | 16 | 2020-04-16T02:07:37.000Z | 2020-07-23T10:48:27.000Z | src/lib/nas/values.cpp | aligungr/ue-ran-sim | 564f9d228723f03adfa2b02df2ea019bdf305085 | [
"MIT"
] | 8 | 2020-07-13T17:11:35.000Z | 2020-08-03T16:46:31.000Z | src/lib/nas/values.cpp | aligungr/ue-ran-sim | 564f9d228723f03adfa2b02df2ea019bdf305085 | [
"MIT"
] | 9 | 2020-03-04T15:05:08.000Z | 2020-07-30T06:18:18.000Z | //
// This file is a part of UERANSIM open source project.
// Copyright (c) 2021 ALİ GÜNGÖR.
//
// The software and all associated files are licensed under GPL-3.0
// and subject to the terms and conditions defined in LICENSE file.
//
#include "values.hpp"
#include <utils/octet_string.hpp>
namespace nas
{
void VAmf... | 32.451087 | 119 | 0.700553 | aligungr |
c4d1aa5fc3b59ac34710b8544fead67889d2ca02 | 19,168 | cpp | C++ | CaLight/Init1.cpp | dns/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 3 | 2020-04-11T13:00:31.000Z | 2020-12-07T03:19:10.000Z | CaLight/Init1.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | null | null | null | CaLight/Init1.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 1 | 2020-04-11T13:00:04.000Z | 2020-04-11T13:00:04.000Z | /*
Cafu Engine, http://www.cafu.de/
Copyright (c) Carsten Fuchs and other contributors.
This project is licensed under the terms of the MIT license.
*/
// Initialisiert die PatchMeshesPVS-Matrix, für die nach Ausführung dieser Funktion folgende Eigenschaften gelten:
//
// 1) PatchMeshesPVS[i][j]== NO_VISIBILIT... | 54.454545 | 197 | 0.653068 | dns |
c4d457a12f765b9539c50ed945888ffc18410225 | 2,221 | cpp | C++ | Tacview.Wrapper/src/Tacview.Wrapper.Settings.cpp | RaiaSoftwareInc/tacview.add-ons.cs | 6d06a23215d885e1f18bdc0284268ea7421e1f89 | [
"MIT"
] | null | null | null | Tacview.Wrapper/src/Tacview.Wrapper.Settings.cpp | RaiaSoftwareInc/tacview.add-ons.cs | 6d06a23215d885e1f18bdc0284268ea7421e1f89 | [
"MIT"
] | null | null | null | Tacview.Wrapper/src/Tacview.Wrapper.Settings.cpp | RaiaSoftwareInc/tacview.add-ons.cs | 6d06a23215d885e1f18bdc0284268ea7421e1f89 | [
"MIT"
] | 1 | 2022-01-19T15:25:51.000Z | 2022-01-19T15:25:51.000Z | /*
Tacview.Wrapper.Settings
Tacview API wrapper
Version 1.7.3 // 2018-10-04
Copyright (C) 2018 Raia Software. All rights reserved.
NOTE: You need a licence of Tacview Enterprise to run C# addons.
*/
#include "Tacview.Wrapper.Headers.h"
#include "Tacview.Wrapper.h"
namespace TacviewSDK
{
Wrapper::SettingsClass... | 31.728571 | 111 | 0.784782 | RaiaSoftwareInc |
c4d5ea4d86553b72fec7812d59583004fc2d7e84 | 1,496 | cpp | C++ | tests/EmptyPagesPDFTest.cpp | feliwir/libcharta | 4581ad4dc0751264ed6104a49260e7e070dfc141 | [
"Apache-2.0"
] | null | null | null | tests/EmptyPagesPDFTest.cpp | feliwir/libcharta | 4581ad4dc0751264ed6104a49260e7e070dfc141 | [
"Apache-2.0"
] | 8 | 2021-05-20T11:15:34.000Z | 2021-05-21T12:29:48.000Z | tests/EmptyPagesPDFTest.cpp | feliwir/libcharta | 4581ad4dc0751264ed6104a49260e7e070dfc141 | [
"Apache-2.0"
] | 2 | 2021-05-24T14:43:46.000Z | 2021-05-25T08:31:41.000Z | /*
Source File : EmptyPagesPDF.cpp
Copyright 2011 Gal Kahana PDFWriter
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 ... | 28.769231 | 117 | 0.709893 | feliwir |
c4dac7ce8d9475979d8f9abe012c30adb7d9209f | 1,593 | inl | C++ | test/float.inl | PredatorCZ/PreCore | 98f5896e35371d034e6477dd0ce9edeb4fd8d814 | [
"Apache-2.0"
] | 5 | 2019-10-17T15:52:38.000Z | 2021-08-10T18:57:32.000Z | test/float.inl | PredatorCZ/PreCore | 98f5896e35371d034e6477dd0ce9edeb4fd8d814 | [
"Apache-2.0"
] | null | null | null | test/float.inl | PredatorCZ/PreCore | 98f5896e35371d034e6477dd0ce9edeb4fd8d814 | [
"Apache-2.0"
] | 1 | 2021-01-31T20:37:42.000Z | 2021-01-31T20:37:42.000Z | #include "../datas/float.hpp"
#include "../datas/unit_testing.hpp"
#include <cmath>
int test_float_00() {
const uint16 num0 = 0x62a7; // 851.5
const uint16 num1 = 0x1f; // denormal, 1.847744e-06
const uint16 num2 = 0x7c00; // inf
const uint16 num3 = 0x7c01; // nan
const uint16 num4 = 0xe2a7; // -851.5
T... | 29.5 | 69 | 0.704331 | PredatorCZ |
c4e80510b508b84414ec37cf38bfe47f9166c8f4 | 416 | cpp | C++ | AtCoderBeginnersSelection/Coins.cpp | icebee16/AtCoder | e5a2937dc75d5acf67eb08c8c6a261de1d787494 | [
"MIT"
] | null | null | null | AtCoderBeginnersSelection/Coins.cpp | icebee16/AtCoder | e5a2937dc75d5acf67eb08c8c6a261de1d787494 | [
"MIT"
] | null | null | null | AtCoderBeginnersSelection/Coins.cpp | icebee16/AtCoder | e5a2937dc75d5acf67eb08c8c6a261de1d787494 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int A, B, C, X;
cin >> A;
cin >> B;
cin >> C;
cin >> X;
int res = 0;
for (int a = 0; a <= A; ++a) {
for (int b = 0; b <= B; ++b) {
for (int c = 0; c <= C; ++c) {
int total = 500 * a + 100 * b + 50 *c;
... | 19.809524 | 54 | 0.34375 | icebee16 |
c4eaf2d3b7307c054bfb12b289a3684540dd7949 | 12,936 | hpp | C++ | src/main/cpp/pistis/concurrent/pollable/Queue.hpp | tomault/pistis-concurrent | ce3206feb3ca42468e35f6d276cd1871c0f9133f | [
"Apache-2.0"
] | null | null | null | src/main/cpp/pistis/concurrent/pollable/Queue.hpp | tomault/pistis-concurrent | ce3206feb3ca42468e35f6d276cd1871c0f9133f | [
"Apache-2.0"
] | null | null | null | src/main/cpp/pistis/concurrent/pollable/Queue.hpp | tomault/pistis-concurrent | ce3206feb3ca42468e35f6d276cd1871c0f9133f | [
"Apache-2.0"
] | null | null | null | #ifndef __PISTIS__CONCURRENT__POLLABLE__QUEUE_HPP__
#define __PISTIS__CONCURRENT__POLLABLE__QUEUE_HPP__
#include <pistis/concurrent/pollable/Condition.hpp>
#include <pistis/concurrent/pollable/ReadWriteToggle.hpp>
#include <pistis/concurrent/TimeUtils.hpp>
#include <pistis/exceptions/IllegalValueError.hpp>
#include <d... | 26.508197 | 74 | 0.64881 | tomault |
c4ee315e91212ae96c3cdab358a25e7c8ee964dc | 1,546 | cpp | C++ | 954. Array of Doubled Pairs.cpp | yuyangh/LeetCode | 5d81cbd975c0c1f2bbca0cb25cefe361a169e460 | [
"MIT"
] | 1 | 2020-10-11T08:10:53.000Z | 2020-10-11T08:10:53.000Z | 954. Array of Doubled Pairs.cpp | yuyangh/LeetCode | 5d81cbd975c0c1f2bbca0cb25cefe361a169e460 | [
"MIT"
] | null | null | null | 954. Array of Doubled Pairs.cpp | yuyangh/LeetCode | 5d81cbd975c0c1f2bbca0cb25cefe361a169e460 | [
"MIT"
] | null | null | null | //
// Created by Yuyang Huang on 10/18/21.
//
/*
* 954. Array of Doubled Pairs
Medium
855
102
Add to List
Share
Given an integer array of even length arr, return true if it is possible to reorder arr such that arr[2 * i + 1] = 2 * arr[2 * i] for every 0 <= i < len(arr) / 2, or false otherwise.
Example 1:
Inpu... | 17.976744 | 182 | 0.613842 | yuyangh |
c4f91f282ca5d104a86f9e02b249d9c81aa6dc15 | 322 | cpp | C++ | libraries/common/src/logging/sink_string.cpp | lilSpeedwagon/zoo | 20aad2860cef658c30b771da0783dfb38867756b | [
"MIT"
] | null | null | null | libraries/common/src/logging/sink_string.cpp | lilSpeedwagon/zoo | 20aad2860cef658c30b771da0783dfb38867756b | [
"MIT"
] | 1 | 2022-01-05T16:10:28.000Z | 2022-01-05T16:10:28.000Z | libraries/common/src/logging/sink_string.cpp | lilSpeedwagon/zoo | 20aad2860cef658c30b771da0783dfb38867756b | [
"MIT"
] | null | null | null | #include "sink_string.hpp"
#include <iostream>
namespace common::logging {
void SinkString::Write(const std::stringstream& buffer) {
buffer_ << buffer.str();
}
std::string SinkString::GetString() const {
return buffer_.str();
}
void SinkString::Reset() {
buffer_.clear();
}
} // namespace common::loggi... | 16.947368 | 57 | 0.686335 | lilSpeedwagon |
c4f9e2a28e2633482b9390909cf3cb8993855dbb | 47,214 | cc | C++ | common/protobuf/math.pb.cc | BSVino/ViewbackMonitor | b18b13fc5417f723d5616928097bf70bf54797cc | [
"BSD-4-Clause"
] | 5 | 2015-07-03T18:42:32.000Z | 2017-08-25T10:28:12.000Z | common/protobuf/math.pb.cc | BSVino/ViewbackMonitor | b18b13fc5417f723d5616928097bf70bf54797cc | [
"BSD-4-Clause"
] | null | null | null | common/protobuf/math.pb.cc | BSVino/ViewbackMonitor | b18b13fc5417f723d5616928097bf70bf54797cc | [
"BSD-4-Clause"
] | null | null | null | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: common/protobuf/math.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "common/protobuf/math.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/... | 29.416822 | 107 | 0.656839 | BSVino |
c4fcc12d35e870ac6cce724e9ed571b6535aa0c2 | 969 | inl | C++ | include/fcli/internal/enum_array.inl | lem0nez/friendly-cli | ea46133385eccb7fff45fa2acd72cfe2f22cf84f | [
"Apache-2.0"
] | 3 | 2021-02-05T15:43:21.000Z | 2021-05-08T05:31:54.000Z | include/fcli/internal/enum_array.inl | lem0nez/friendly-cli | ea46133385eccb7fff45fa2acd72cfe2f22cf84f | [
"Apache-2.0"
] | null | null | null | include/fcli/internal/enum_array.inl | lem0nez/friendly-cli | ea46133385eccb7fff45fa2acd72cfe2f22cf84f | [
"Apache-2.0"
] | null | null | null | /*
* Copyright © 2021 Nikita Dudko. All rights reserved.
* Contacts: <nikita.dudko.95@gmail.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... | 34.607143 | 75 | 0.693498 | lem0nez |
f201382a5f55c55333c4290c2265a20d6b1f134b | 3,180 | cpp | C++ | examples/q10_condition_variable/src/process/restaurant.cpp | ubc333/library | 069d68e822992950739661f5f7a7bdffe8d425d4 | [
"MIT"
] | null | null | null | examples/q10_condition_variable/src/process/restaurant.cpp | ubc333/library | 069d68e822992950739661f5f7a7bdffe8d425d4 | [
"MIT"
] | null | null | null | examples/q10_condition_variable/src/process/restaurant.cpp | ubc333/library | 069d68e822992950739661f5f7a7bdffe8d425d4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <thread>
#include <cpen333/util.h>
#include <cpen333/process/subprocess.h>
#include <cpen333/process/condition_variable.h>
#include <cpen333/process/mutex.h>
#include <cpen333/process/shared_memory.h>
#include <cpen333/process/unlinker.h>
#include "restaurant.h"
//
// Condit... | 36.976744 | 120 | 0.695597 | ubc333 |
f20254c07e4ce6364c632ee496e44f85d77c97c5 | 75,682 | hpp | C++ | TPA/_util.hpp | davabdev/TPA | bb75fcf2d0428e314c1f95306047a198d4399c9f | [
"BSL-1.0"
] | null | null | null | TPA/_util.hpp | davabdev/TPA | bb75fcf2d0428e314c1f95306047a198d4399c9f | [
"BSL-1.0"
] | null | null | null | TPA/_util.hpp | davabdev/TPA | bb75fcf2d0428e314c1f95306047a198d4399c9f | [
"BSL-1.0"
] | null | null | null | #pragma once
/*
* Truely Parallel Algorithms Library - Utility Functions
* By: David Aaron Braun
* 2021-04-08
*/
/*
* Copyright David Aaron Braun 2021 - .
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* https://ww... | 33.711359 | 282 | 0.655757 | davabdev |
f204518dac49530dc7e400efee191591c04327bc | 1,214 | cpp | C++ | 06Arrays_Strings_Pointers_and_Reference/cStyleString.cpp | CedarChennn/myC | b4de17f332788e3e578d304f2a690d2c9a07c004 | [
"Apache-2.0"
] | 2 | 2021-01-13T08:55:41.000Z | 2021-04-23T15:14:05.000Z | 06Arrays_Strings_Pointers_and_Reference/cStyleString.cpp | CedarChennn/myC | b4de17f332788e3e578d304f2a690d2c9a07c004 | [
"Apache-2.0"
] | null | null | null | 06Arrays_Strings_Pointers_and_Reference/cStyleString.cpp | CedarChennn/myC | b4de17f332788e3e578d304f2a690d2c9a07c004 | [
"Apache-2.0"
] | null | null | null | #define __STDC_WANT_LIB_EXT1__ 1
#include <cstring> // for strcpy_s
#include <iostream>
#include <iterator> // for std::size
void getCStyleString()
{
char name[255]; // declare array large enough to hold 255 characters
std::cout << "Enter your name: ";
std::cin.getline(name, std::size(name));
//This ca... | 36.787879 | 218 | 0.628501 | CedarChennn |
f208a65f78a6025b7f74015f86b3d04fe6f21e59 | 2,656 | hpp | C++ | src/mainwindow.hpp | jubnzv/qtask | f67c7034ff9576c123b885acbb942638bf85de48 | [
"MIT"
] | 11 | 2020-11-29T18:24:28.000Z | 2022-03-19T17:34:08.000Z | src/mainwindow.hpp | jubnzv/jtask | f67c7034ff9576c123b885acbb942638bf85de48 | [
"MIT"
] | 3 | 2020-11-29T18:26:36.000Z | 2021-07-16T14:18:58.000Z | src/mainwindow.hpp | jubnzv/jtask | f67c7034ff9576c123b885acbb942638bf85de48 | [
"MIT"
] | 1 | 2022-02-14T17:25:04.000Z | 2022-02-14T17:25:04.000Z | #ifndef MAINWINDOW_HPP
#define MAINWINDOW_HPP
#include <memory>
#include <QCloseEvent>
#include <QEvent>
#include <QGridLayout>
#include <QLineEdit>
#include <QMainWindow>
#include <QSystemTrayIcon>
#include <QTableView>
#include <QVariant>
#include "tagsedit.hpp"
#include "task.hpp"
#include "tasksview.hpp"
#includ... | 22.508475 | 75 | 0.708208 | jubnzv |
f20917c8bfc5c0398a0d02377971aa2fde7655cc | 1,947 | cpp | C++ | csf_workspace/vdu/src/qt/vdu_qt_panel.cpp | Kitty-Kitty/csf_library | 011e56fb8b687818d20b9998a0cdb72332375534 | [
"BSD-2-Clause"
] | 2 | 2019-12-17T13:16:48.000Z | 2019-12-17T13:16:51.000Z | csf_workspace/vdu/src/qt/vdu_qt_panel.cpp | Kitty-Kitty/csf_library | 011e56fb8b687818d20b9998a0cdb72332375534 | [
"BSD-2-Clause"
] | null | null | null | csf_workspace/vdu/src/qt/vdu_qt_panel.cpp | Kitty-Kitty/csf_library | 011e56fb8b687818d20b9998a0cdb72332375534 | [
"BSD-2-Clause"
] | null | null | null | /*******************************************************************************
*
*Copyright: f
*
*Author: f
*
*File name: vdu_qt_panel.hpp
*
*Version: 1.0
*
*Date: 24-9月-2018 11:24:36
*
*Description: Class(vdu_qt_panel)
*
*Others:
*
*History:
*
************************************************************************... | 15.959016 | 86 | 0.61171 | Kitty-Kitty |
f20c61c2516119fa14cfc0ab589b892a89b5d90d | 8,323 | cpp | C++ | src/add-ons/media/plugins/ffmpeg/gfx_util.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | 1 | 2021-08-31T01:47:13.000Z | 2021-08-31T01:47:13.000Z | src/add-ons/media/plugins/ffmpeg/gfx_util.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | null | null | null | src/add-ons/media/plugins/ffmpeg/gfx_util.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | 3 | 2018-12-17T13:07:38.000Z | 2021-09-08T13:07:31.000Z | #include "gfx_util.h"
#include <strings.h>
#include <stdio.h>
extern "C" {
#include <libavutil/pixdesc.h>
}
#include "CpuCapabilities.h"
#include "gfx_conv_c.h"
#include "gfx_conv_mmx.h"
// ref docs
// http://www.joemaller.com/fcp/fxscript_yuv_color.shtml
#if DEBUG
#define TRACE(a...) printf(a)
#else
#define... | 26.255521 | 80 | 0.733389 | axeld |
f20f8cfa970a94b306173fe3a03f867d9b8a078c | 2,991 | cpp | C++ | tests/test_linked_list/test_linked_list_host.cpp | shanihsu/Parallel-Genetic-Algorithm | 2e3776df60e2457f9ecf2b5c271152a237f117ed | [
"Apache-2.0"
] | null | null | null | tests/test_linked_list/test_linked_list_host.cpp | shanihsu/Parallel-Genetic-Algorithm | 2e3776df60e2457f9ecf2b5c271152a237f117ed | [
"Apache-2.0"
] | null | null | null | tests/test_linked_list/test_linked_list_host.cpp | shanihsu/Parallel-Genetic-Algorithm | 2e3776df60e2457f9ecf2b5c271152a237f117ed | [
"Apache-2.0"
] | null | null | null | #include <include/linked_list.h>
#include <gtest/gtest.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <cuda_runtime_api.h>
#include <texture_types.h>
#include <iostream>
#include "test_linked_list.h"
#include <tests/def.h>
#undef amount
#define amount 5000
using namespace std;
class TestLinkedListHost : p... | 23.367188 | 78 | 0.61986 | shanihsu |
f21593a9638869375a0296e2e5c665493382d6ae | 4,207 | cpp | C++ | denso_robot_core/src/denso_controller_rc8.cpp | rizgiak/denso_robot_ros | 522f696528b0bf07419671a3f23eee7cff792d99 | [
"BSD-3-Clause"
] | 40 | 2017-11-24T15:50:17.000Z | 2021-12-21T02:29:20.000Z | denso_robot_core/src/denso_controller_rc8.cpp | rizgiak/denso_robot_ros | 522f696528b0bf07419671a3f23eee7cff792d99 | [
"BSD-3-Clause"
] | 46 | 2017-12-08T11:49:24.000Z | 2022-03-19T12:12:16.000Z | denso_robot_core/src/denso_controller_rc8.cpp | rizgiak/denso_robot_ros | 522f696528b0bf07419671a3f23eee7cff792d99 | [
"BSD-3-Clause"
] | 36 | 2017-12-04T10:36:25.000Z | 2022-03-08T19:48:11.000Z | /**
* Software License Agreement (MIT License)
*
* @copyright Copyright (c) 2015 DENSO WAVE INCORPORATED
*
* 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, includin... | 25.969136 | 104 | 0.672688 | rizgiak |
f217776d28e031609e47388d127ce456bf50949a | 22,168 | hpp | C++ | Pods/OpenVPNAdapter/Sources/OpenVPNClient/include/ovpncli.hpp | TiagoPedroByterev/openvpnclient-ios | a9dafb2a481cc72a3e408535fb7f0aba9f5cfa76 | [
"MIT"
] | 10 | 2021-03-29T13:52:06.000Z | 2022-03-10T02:24:25.000Z | Pods/OpenVPNAdapter/Sources/OpenVPNClient/include/ovpncli.hpp | TiagoPedroByterev/openvpnclient-ios | a9dafb2a481cc72a3e408535fb7f0aba9f5cfa76 | [
"MIT"
] | null | null | null | Pods/OpenVPNAdapter/Sources/OpenVPNClient/include/ovpncli.hpp | TiagoPedroByterev/openvpnclient-ios | a9dafb2a481cc72a3e408535fb7f0aba9f5cfa76 | [
"MIT"
] | 6 | 2021-07-03T07:56:56.000Z | 2022-02-14T15:28:23.000Z | // OpenVPN -- An application to securely tunnel IP networks
// over a single port, with support for SSL/TLS-based
// session authentication and key exchange,
// packet encryption, packet authentication, and
// packet compression.
//
// Copyright (C) 2012-202... | 34.800628 | 99 | 0.655449 | TiagoPedroByterev |
f217de4b4f7233f25c1b27f0e3837adbbdcce6f0 | 2,129 | cpp | C++ | Blind 75 Must Do LC/3 Sum.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 14 | 2021-08-22T18:21:14.000Z | 2022-03-08T12:04:23.000Z | Blind 75 Must Do LC/3 Sum.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 1 | 2021-10-17T18:47:17.000Z | 2021-10-17T18:47:17.000Z | Blind 75 Must Do LC/3 Sum.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 5 | 2021-09-01T08:21:12.000Z | 2022-03-09T12:13:39.000Z | //Sid
class Solution {
public:
vector<vector<int>> threeSum(vector<int>& nums) {
int n = nums.size();
int l, r;
vector<vector<int>> res;
sort(nums.begin(), nums.end());
for(int i = 0; i < n-1; i++)
{
l = i+1;
r = n-1;
while(r > l)
... | 27.649351 | 64 | 0.329263 | Tiger-Team-01 |
f218ae56d02fa98f0cf548a841d7ac54570192b7 | 1,046 | cpp | C++ | GameSeverDev/GameServer.cpp | Andapeng/GameEngineDevelop | c868dc453ca8e4191ff5180eb90aafbf71112f68 | [
"MIT"
] | null | null | null | GameSeverDev/GameServer.cpp | Andapeng/GameEngineDevelop | c868dc453ca8e4191ff5180eb90aafbf71112f68 | [
"MIT"
] | null | null | null | GameSeverDev/GameServer.cpp | Andapeng/GameEngineDevelop | c868dc453ca8e4191ff5180eb90aafbf71112f68 | [
"MIT"
] | null | null | null | #include "GameServer.h"
#include <fmt/printf.h>
#include <iostream>
#include <exception>
#ifdef _DEBUG
#pragma comment(lib,"fmtd.lib")
#else
#pragma comment(lib,"fmt.lib")
#endif
GameServer::GameServer()
{
}
void GameServer::Initialize()
{
try {
m_ioContext = std::make_shared<asio::io_context>();
//m_resolver =... | 18.034483 | 124 | 0.656788 | Andapeng |
f21926c7f70d4f90e47392ef145837f8f89ef3e3 | 10,752 | cpp | C++ | projects/hvvr_samples/modelviewer/ModelViewerLinux.cpp | shg8/HVVR | d91f14865133405ce2c8dd38f8e6ed9e37866d40 | [
"BSD-3-Clause"
] | null | null | null | projects/hvvr_samples/modelviewer/ModelViewerLinux.cpp | shg8/HVVR | d91f14865133405ce2c8dd38f8e6ed9e37866d40 | [
"BSD-3-Clause"
] | null | null | null | projects/hvvr_samples/modelviewer/ModelViewerLinux.cpp | shg8/HVVR | d91f14865133405ce2c8dd38f8e6ed9e37866d40 | [
"BSD-3-Clause"
] | null | null | null | //
// Created by steven on 1/21/22.
//
#include "ModelViewerLinux.h"
#include "camera.h"
#include "model_import.h"
#include "samples.h"
#include "vector_math.h"
#include <cstring>
#include <iostream>
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
int main() {
ModelViewerLinux::Settings setti... | 36.948454 | 125 | 0.668899 | shg8 |
f2198e8c73853e0cfaa54f5c0896ce798968bae0 | 5,194 | cpp | C++ | src/optick_gpu.cpp | Honeybunch/optick | 98679acad976fba57f4d4231cabd4800d4e1caa5 | [
"MIT"
] | 2 | 2020-07-21T13:22:30.000Z | 2020-07-21T21:14:42.000Z | src/optick_gpu.cpp | Honeybunch/optick | 98679acad976fba57f4d4231cabd4800d4e1caa5 | [
"MIT"
] | null | null | null | src/optick_gpu.cpp | Honeybunch/optick | 98679acad976fba57f4d4231cabd4800d4e1caa5 | [
"MIT"
] | null | null | null | // The MIT License(MIT)
//
// Copyright(c) 2019 Vadim Slyusarev
//
// 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 ... | 32.061728 | 155 | 0.693492 | Honeybunch |
f219a092fc07b1c36194beeee383151eae56fb9c | 1,002 | cpp | C++ | 02/roh/5525.cpp | Dcom-KHU/2021-Winter-Algorithm-Study | ea32826abe7d8245ee9d3dc8d0161f7ba018a02f | [
"MIT"
] | 2 | 2021-01-09T10:05:21.000Z | 2021-01-10T06:14:03.000Z | 02/roh/5525.cpp | Dcom-KHU/2021-Winter-Algorithm-Study | ea32826abe7d8245ee9d3dc8d0161f7ba018a02f | [
"MIT"
] | null | null | null | 02/roh/5525.cpp | Dcom-KHU/2021-Winter-Algorithm-Study | ea32826abe7d8245ee9d3dc8d0161f7ba018a02f | [
"MIT"
] | 1 | 2021-02-03T13:09:09.000Z | 2021-02-03T13:09:09.000Z | #include <iostream>
#include <string>
#include <vector>
using namespace std;
char flag = 'I';
//1. vector컨테이너 안에 IOI패턴이 몇번 반복되었는지 넣는다.
/*
EX) IOIOIOIIIIOIOIO -> [3,2]
EX) IIIOOOOIOIOIOIO -> [4]
*/
//2. 리스트 안에 IOI패턴의 길이에따라 P(N)을 몇번 넣을 수 있는지 나온다.
//2.A 이때 N보다 적은 반복횟수면 P(N)을 넣을 수 없다.
/*
EX) [3,2] N=2 -> (3-2+1) + (2-2+... | 18.555556 | 47 | 0.47006 | Dcom-KHU |
35f04171b781b2271bda33e2c121cf9cddcfdec5 | 350 | cpp | C++ | gcc/src/ShadowCoreConsole.cpp | ShadowBrowser/ShadowBrowserCore | f6a8f6b1b5f7bc0d691897d4b79e3337f4a5b4ce | [
"MIT"
] | 1 | 2021-07-17T20:51:07.000Z | 2021-07-17T20:51:07.000Z | gcc/src/ShadowCoreConsole.cpp | ShadowBrowser/ShadowBrowserCore | f6a8f6b1b5f7bc0d691897d4b79e3337f4a5b4ce | [
"MIT"
] | null | null | null | gcc/src/ShadowCoreConsole.cpp | ShadowBrowser/ShadowBrowserCore | f6a8f6b1b5f7bc0d691897d4b79e3337f4a5b4ce | [
"MIT"
] | null | null | null | //Copyright (c) 77Z 2021
#include "ShadowCore.h"
#include <string>
#include <iostream>
namespace ShadowCore {
namespace Console {
EXPORT void print(std::string text) {
std::cout << text;
}
EXPORT void println(std::string text) {
std::cout << text << std::endl;
}
} // namespace Consol... | 18.421053 | 42 | 0.628571 | ShadowBrowser |
35f5ff5d24c60f9a4c1f30e9aa1843b9acc3d9c8 | 1,159 | hpp | C++ | h5cpp/compat.hpp | ChrisDrozdowski/h5cpp | 6e41361bf860610dcdaedb557d589af9371a7986 | [
"BSD-3-Clause-LBNL",
"MIT"
] | 9 | 2022-01-29T22:21:19.000Z | 2022-03-10T06:26:40.000Z | h5cpp/compat.hpp | ChrisDrozdowski/h5cpp | 6e41361bf860610dcdaedb557d589af9371a7986 | [
"BSD-3-Clause-LBNL",
"MIT"
] | null | null | null | h5cpp/compat.hpp | ChrisDrozdowski/h5cpp | 6e41361bf860610dcdaedb557d589af9371a7986 | [
"BSD-3-Clause-LBNL",
"MIT"
] | null | null | null | /*
* Copyright (c) 2018 vargaconsulting, Toronto,ON Canada
* Author: Varga, Steven <steven@vargaconsulting.ca>
*
*/
#ifndef H5CPP_COMPAT_HPP
#define H5CPP_COMPAT_HPP
//CREDITS: https://en.cppreference.com/w/cpp/utility/functional/invoke
namespace compat { // C++11 shim to lower from c++17
template <std::size... | 28.268293 | 79 | 0.683348 | ChrisDrozdowski |
35f615a0af07d3ae9b314359a6d381a2917375a2 | 5,396 | cpp | C++ | case-studies/PoDoFo/podofo/test/ContentParser/main.cpp | satya-das/cib | 369333ea58b0530b8789a340e21096ba7d159d0e | [
"MIT"
] | 30 | 2018-03-05T17:35:29.000Z | 2022-03-17T18:59:34.000Z | podofo-0.9.6/test/ContentParser/main.cpp | zia95/pdf-toolkit-console- | 369d73f66f7d4c74a252e83d200acbb792a6b8d5 | [
"MIT"
] | 2 | 2016-05-26T04:47:13.000Z | 2019-02-15T05:17:43.000Z | podofo-0.9.6/test/ContentParser/main.cpp | zia95/pdf-toolkit-console- | 369d73f66f7d4c74a252e83d200acbb792a6b8d5 | [
"MIT"
] | 5 | 2019-02-15T05:09:22.000Z | 2021-04-14T12:10:16.000Z | #include "podofo.h"
#include "../PdfTest.h"
#include <iostream>
#include <stack>
#include <algorithm>
#include <string>
#include <iomanip>
#include <cstdio>
using namespace std;
using namespace PoDoFo;
static bool print_output = false;
void parse_contents( PdfContentsTokenizer* pTokenizer )
{
const char* p... | 29.167568 | 119 | 0.457746 | satya-das |
35f86a7e0154b26d7305ac73e90eac12e2b9deba | 1,845 | cpp | C++ | 10_graphs_3_network_flow/flow_network.cpp | KattisMaster/T-414-AFLV | 8ba3b36a768715da67dacfa466360f66c1ad6446 | [
"CC-BY-4.0"
] | 628 | 2017-03-28T13:31:08.000Z | 2022-03-30T20:27:06.000Z | 10_graphs_3_network_flow/flow_network.cpp | nitincs/T-414-AFLV | 8ba3b36a768715da67dacfa466360f66c1ad6446 | [
"CC-BY-4.0"
] | 4 | 2017-09-13T05:42:00.000Z | 2018-03-02T16:34:33.000Z | 10_graphs_3_network_flow/flow_network.cpp | nitincs/T-414-AFLV | 8ba3b36a768715da67dacfa466360f66c1ad6446 | [
"CC-BY-4.0"
] | 228 | 2017-03-28T20:09:03.000Z | 2022-03-23T18:21:11.000Z | #include <cstdlib>
#include <vector>
#include <stack>
#include <queue>
using namespace std;
struct flow_network {
struct edge {
int u, v, cap;
edge *rev;
bool forward;
edge(int _u, int _v, int _cap, bool forw)
: u(_u), v(_v), cap(_cap), forward(forw) { }
};
int... | 21.453488 | 60 | 0.40271 | KattisMaster |
35fee32554fd1d173cd72a3c8136633fd9793f0b | 734 | cpp | C++ | test/game/skirmish/pathfinding/boardworldadapter_getneighborlocationsfor.cpp | namelessvoid/qrwar | bbc4036cd3bab6b0edcaccbc95286379ef51f12b | [
"MIT"
] | 3 | 2015-03-28T02:51:58.000Z | 2018-11-08T16:49:53.000Z | test/game/skirmish/pathfinding/boardworldadapter_getneighborlocationsfor.cpp | namelessvoid/qrwar | bbc4036cd3bab6b0edcaccbc95286379ef51f12b | [
"MIT"
] | 39 | 2015-05-18T08:29:16.000Z | 2020-07-18T21:17:44.000Z | test/game/skirmish/pathfinding/boardworldadapter_getneighborlocationsfor.cpp | namelessvoid/qrwar | bbc4036cd3bab6b0edcaccbc95286379ef51f12b | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <gmock/gmock-matchers.h>
#include "engine/board.hpp"
#include "game/skirmish/pathfinding/boardworldadapter.hpp"
using ::testing::Contains;
TEST(BoardWorldAdapter_GetNeighborLocationsFor, Then_list_contains_all_neighbors)
{
// Arrange
qrw::Board board(10, 10);
qrw::BoardWorldAdapt... | 30.583333 | 93 | 0.762943 | namelessvoid |
c40540e2a64a778484b46282d69fe1d3c347bb34 | 5,709 | hpp | C++ | src/sdglib/datastores/LinkedReadsDatastore.hpp | KatOfCats/sdg | 1916e5c86dd88e601ab7476f38daef2bd3b3b6fc | [
"MIT"
] | null | null | null | src/sdglib/datastores/LinkedReadsDatastore.hpp | KatOfCats/sdg | 1916e5c86dd88e601ab7476f38daef2bd3b3b6fc | [
"MIT"
] | null | null | null | src/sdglib/datastores/LinkedReadsDatastore.hpp | KatOfCats/sdg | 1916e5c86dd88e601ab7476f38daef2bd3b3b6fc | [
"MIT"
] | null | null | null | //
// Created by Bernardo Clavijo (EI) on 10/02/2018.
//
#pragma once
#include <memory>
#include <cstdint>
#include <iostream>
#include <string>
#include <unordered_set>
#include <set>
#include <vector>
#include <cstddef>
#include <list>
#include <fcntl.h>
#include <unistd.h>
#include <algorithm>
#include <sdglib/fac... | 35.459627 | 171 | 0.664915 | KatOfCats |
c409b34cbecc94001e869e226cb472d7fda029aa | 1,827 | cpp | C++ | Utility/CountStraight.cpp | yuruhi/library | fecbd92ec6c6997d50bf954c472ac4bfeff74de5 | [
"Apache-2.0"
] | null | null | null | Utility/CountStraight.cpp | yuruhi/library | fecbd92ec6c6997d50bf954c472ac4bfeff74de5 | [
"Apache-2.0"
] | 6 | 2021-01-05T07:39:05.000Z | 2021-01-05T07:44:31.000Z | Utility/CountStraight.cpp | yuruhi/library | fecbd92ec6c6997d50bf954c472ac4bfeff74de5 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <vector>
#include <tuple>
template <class F> auto CountLR(int n, F f) {
std::vector<int> left(n);
for (int i = 0; i < n; ++i) {
if (f(i)) left[i] = 1 + (i ? left[i - 1] : 0);
}
std::vector<int> right(n);
for (int i = n - 1; i >= 0; --i) {
if (f(i)) right[i] = 1 + (i != n - 1 ? right[i + ... | 28.546875 | 81 | 0.464149 | yuruhi |
c40c6655fbe15a33862bbb07576e786193c02396 | 62 | cpp | C++ | PanGuEngine/PanGuEngine/D3D12RHI/VariableSizeAllocationsManager.cpp | Litmin/PanGuEngine | 777286f811c925b489b9d13c0d174e050e284450 | [
"MIT"
] | 41 | 2020-10-20T06:13:47.000Z | 2022-03-23T16:12:22.000Z | PanGuEngine/PanGuEngine/D3D12RHI/VariableSizeAllocationsManager.cpp | Litmin/PanGuEngine | 777286f811c925b489b9d13c0d174e050e284450 | [
"MIT"
] | null | null | null | PanGuEngine/PanGuEngine/D3D12RHI/VariableSizeAllocationsManager.cpp | Litmin/PanGuEngine | 777286f811c925b489b9d13c0d174e050e284450 | [
"MIT"
] | 3 | 2021-04-17T06:34:11.000Z | 2021-04-27T04:58:43.000Z | #include "pch.h"
#include "VariableSizeAllocationsManager.h"
| 15.5 | 43 | 0.790323 | Litmin |
c40c8614aa94dc57196b6b9c88e55753e1e9136b | 695 | cpp | C++ | C++ Primer/chapter-10/13.cpp | grasslog/github-blog | 1e09025f068774659b4bc26b7f0ad4aa1a3fbd43 | [
"MIT"
] | 1 | 2019-05-16T07:51:12.000Z | 2019-05-16T07:51:12.000Z | C++ Primer/chapter-10/13.cpp | grasslog/github-blog | 1e09025f068774659b4bc26b7f0ad4aa1a3fbd43 | [
"MIT"
] | null | null | null | C++ Primer/chapter-10/13.cpp | grasslog/github-blog | 1e09025f068774659b4bc26b7f0ad4aa1a3fbd43 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
bool compareIsbn(string &s1)
{
if(s1.size() > 5)
{
return true;
}
else
{
return false;
}
}
int main(int argc, char **argv)
{
string a[10] = {"diuwudh","udh","diudh","wudh","diuwu","h","diuw","d... | 21.71875 | 93 | 0.548201 | grasslog |
c40f2a0b213cdf5ff06ec00d89065d13d951cd06 | 12,568 | cpp | C++ | hal/STM32F4/spi/spi.cpp | yhsb2k/omef | 7425b62dd4b5d0af4e320816293f69d16d39f57a | [
"MIT"
] | null | null | null | hal/STM32F4/spi/spi.cpp | yhsb2k/omef | 7425b62dd4b5d0af4e320816293f69d16d39f57a | [
"MIT"
] | null | null | null | hal/STM32F4/spi/spi.cpp | yhsb2k/omef | 7425b62dd4b5d0af4e320816293f69d16d39f57a | [
"MIT"
] | null | null | null | #include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "spi.hpp"
#include "spi_priv.hpp"
#include "rcc/rcc.hpp"
#include "gpio/gpio_priv.hpp"
#include "CMSIS/Device/STM32F4xx/Include/stm32f4xx.h"
#include "CMSIS/Include/core_cm4.h"
using namespace hal;
static spi *obj_list[spi::SPI_E... | 23.713208 | 77 | 0.699634 | yhsb2k |
c4176c6fdb57a44fcb91ea5aa0acb66d6d592854 | 4,462 | cpp | C++ | src/parse/node_stmt_enum_decl.cpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 14 | 2020-04-14T17:00:56.000Z | 2021-08-30T08:29:26.000Z | src/parse/node_stmt_enum_decl.cpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 27 | 2020-12-27T16:00:44.000Z | 2021-08-01T13:12:14.000Z | src/parse/node_stmt_enum_decl.cpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 1 | 2020-05-29T18:33:37.000Z | 2020-05-29T18:33:37.000Z | #include "parse/node_stmt_enum_decl.hpp"
#include "utilities.hpp"
namespace parse {
static auto getIdOrErr(const lex::Token& token) {
return getId(token).value_or(std::string("err"));
}
EnumDeclStmtNode::ValueSpec::ValueSpec(
lex::Token colon, std::optional<lex::Token> minus, lex::Token value) :
m_colon{st... | 33.548872 | 100 | 0.685343 | BastianBlokland |
c41b2f3786db0ea0fa1646dc2456e8544e5b59b2 | 1,161 | cpp | C++ | 1st/rotate_array_block_swap.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | 1st/rotate_array_block_swap.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | 1st/rotate_array_block_swap.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
using namespace std;
class Solution {
public:
void swap(int nums[], int left, int right, int len)
{
for (int i = 0; i < len; ++i) {
int tmp = nums[left+i];
nums[left+i] = nums[right+i];
nums[right+i] = tmp;
}
}
void block_swap(in... | 21.5 | 59 | 0.475452 | buptlxb |
c426db296336ec2f54813c66b22c8465c0246382 | 1,193 | cpp | C++ | MyCurve25519/MyCurve25519/ed25519/additions/sign_modified.cpp | BayrakMustafa/WhatsApp-API-NET | 39b37aeb9a98c6eb338ceea20c9d4cab2bdb12e7 | [
"MIT"
] | 18 | 2016-04-04T16:09:17.000Z | 2017-09-02T02:55:55.000Z | MyCurve25519/MyCurve25519/ed25519/additions/sign_modified.cpp | bayrakmustafa/WhatsApp-API-NET | 39b37aeb9a98c6eb338ceea20c9d4cab2bdb12e7 | [
"MIT"
] | 12 | 2016-04-07T02:48:24.000Z | 2017-04-11T11:19:58.000Z | MyCurve25519/MyCurve25519/ed25519/additions/sign_modified.cpp | bayrakmustafa/WhatsApp-API-NET | 39b37aeb9a98c6eb338ceea20c9d4cab2bdb12e7 | [
"MIT"
] | 9 | 2017-12-06T04:16:16.000Z | 2021-06-17T09:18:47.000Z | #include "pch.h"
#include <string.h>
#include "..\nacl_includes\crypto_sign.h"
#include "crypto_hash_sha512.h"
#include "..\ge.h"
#include "..\sc.h"
#include "zeroize.h"
/* NEW: Compare to pristine crypto_sign()
Uses explicit private key for nonce derivation and as scalar,
instead of deriving both from a master ... | 24.854167 | 79 | 0.678122 | BayrakMustafa |
c42951a6648342ca486ab032c779e0af34ac8722 | 1,467 | cpp | C++ | src/cpp/fileio.cpp | LiamBlake/TestMatch-Backend | 58f48641857042aa52c383db6e3b6d994be91479 | [
"MIT"
] | 1 | 2021-03-28T09:46:39.000Z | 2021-03-28T09:46:39.000Z | src/cpp/fileio.cpp | LiamBlake/TestMatch | aae0cb0863b76dc9a53d95dffe6788a49fa9ec0e | [
"MIT"
] | 16 | 2021-03-28T09:50:48.000Z | 2021-09-15T19:13:17.000Z | src/cpp/fileio.cpp | LiamBlake/TestMatch | aae0cb0863b76dc9a53d95dffe6788a49fa9ec0e | [
"MIT"
] | null | null | null | #include "testmatch/fileio.hpp"
#include "testmatch/helpers.hpp"
#include "testmatch/team.hpp"
#include <fstream>
#include <string>
#include <utility>
// Player* csv2player(std::string line) {
// // Split string
// std::vector<std::string> token = split_str(line);
// vector<string> name = sp... | 26.672727 | 74 | 0.512611 | LiamBlake |
c42d377817a3de646e6312e965eb0f6ebdd782b8 | 82,728 | cpp | C++ | main.cpp | LibertyWarriorMusic/DBWorks | 4bda411608cecb86f2cfc7f9319b160ed558a853 | [
"MIT"
] | 1 | 2020-03-10T03:26:50.000Z | 2020-03-10T03:26:50.000Z | main.cpp | LibertyWarriorMusic/DBWorks | 4bda411608cecb86f2cfc7f9319b160ed558a853 | [
"MIT"
] | 1 | 2020-03-20T05:16:14.000Z | 2020-03-20T05:17:25.000Z | main.cpp | LibertyWarriorMusic/DBWorks | 4bda411608cecb86f2cfc7f9319b160ed558a853 | [
"MIT"
] | null | null | null | #include <iostream>
#define MAIN_WIN_TITLE "DBWorks Table Grid"
#define MAIN_WIN_POSX 200
#define MAIN_WIN_POSY 200
#include <wx/wxprec.h>
#include<wx/wx.h>
#include <wx/string.h>
#include <wx/combo.h>
#include <wx/combobox.h>
#include <wx/gdicmn.h>
#include <wx/sizer.h>
#include <wx/grid.h>
#include <wx/frame.h>
#i... | 37.620737 | 374 | 0.612308 | LibertyWarriorMusic |
c433a20c761e20567c8b55abaf24e29302ce855b | 8,464 | cpp | C++ | ACL/test/Transport/MimeParserTest.cpp | fiu300/alexa_device_sdk_c_from_amazon | 4def446a92cc43d1fce37be3cfb30a6f85cf2d66 | [
"Apache-2.0"
] | null | null | null | ACL/test/Transport/MimeParserTest.cpp | fiu300/alexa_device_sdk_c_from_amazon | 4def446a92cc43d1fce37be3cfb30a6f85cf2d66 | [
"Apache-2.0"
] | null | null | null | ACL/test/Transport/MimeParserTest.cpp | fiu300/alexa_device_sdk_c_from_amazon | 4def446a92cc43d1fce37be3cfb30a6f85cf2d66 | [
"Apache-2.0"
] | 1 | 2019-02-08T19:49:13.000Z | 2019-02-08T19:49:13.000Z | /*
* MimeParserTest.cpp
*
* Copyright 2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.... | 37.955157 | 120 | 0.742557 | fiu300 |
c43f29e409a5865710c036dcbcd9b3a3e6f85408 | 12,293 | cc | C++ | flecsi-sp/io/test/x3d_definition.cc | losalamos/flecsi-specializations | 69c2f964e154d576a142c5c8ee707d050a5fb71d | [
"Unlicense"
] | 1 | 2020-09-01T17:33:38.000Z | 2020-09-01T17:33:38.000Z | flecsi-sp/io/test/x3d_definition.cc | losalamos/flecsi-specializations | 69c2f964e154d576a142c5c8ee707d050a5fb71d | [
"Unlicense"
] | 31 | 2017-03-21T01:58:03.000Z | 2020-01-23T00:43:32.000Z | flecsi-sp/io/test/x3d_definition.cc | losalamos/flecsi-specializations | 69c2f964e154d576a142c5c8ee707d050a5fb71d | [
"Unlicense"
] | 12 | 2017-01-10T23:41:10.000Z | 2022-03-23T20:33:17.000Z | /*~-------------------------------------------------------------------------~~*
* Copyright (c) 2018 Triad National Security, LLC
* All rights reserved.
*~-------------------------------------------------------------------------~~*/
// the main test include
#include <cinchtest.h>
// user includes
#include <flecsi/... | 39.654839 | 80 | 0.644757 | losalamos |
c4400ae59bc24911a8eefd4d253a69182abb91dc | 519 | cpp | C++ | Siv3D/src/Siv3D-Platform/macOS_Linux/Siv3D/System/SivSystem_macOS_Linux.cpp | Siv3D/siv6 | 090e82b2f6398640638dfa43da3f829ba977d0e2 | [
"MIT"
] | 2 | 2020-07-26T05:14:33.000Z | 2020-08-11T08:00:54.000Z | Siv3D/src/Siv3D-Platform/macOS_Linux/Siv3D/System/SivSystem_macOS_Linux.cpp | nokotan/siv6 | 7df183550a6c0160ba918d6ad24c3ae48231e26b | [
"MIT"
] | 6 | 2020-03-03T04:01:10.000Z | 2020-09-27T14:33:19.000Z | Siv3D/src/Siv3D-Platform/macOS_Linux/Siv3D/System/SivSystem_macOS_Linux.cpp | nokotan/siv6 | 7df183550a6c0160ba918d6ad24c3ae48231e26b | [
"MIT"
] | 5 | 2020-03-03T03:34:27.000Z | 2020-09-05T18:42:55.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2020 Ryo Suzuki
// Copyright (c) 2016-2020 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <unistd.h>
# include <Siv3D/System.hp... | 17.3 | 54 | 0.520231 | Siv3D |
c4404412eef0d1b4f1b40f8a4d0ae4b8410404de | 206 | cpp | C++ | tests/RectangleAreaTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | tests/RectangleAreaTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | tests/RectangleAreaTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #include "catch.hpp"
#include "RectangleArea.hpp"
TEST_CASE("Rectangle Area") {
RectangleArea s;
SECTION("Sample test") {
REQUIRE(s.computeArea(-5, -2, 3, 1, -3, -3, 3, 3) == 42);
}
}
| 18.727273 | 65 | 0.582524 | yanzhe-chen |
c4407eeae393a8f0bedb9975c8339dc96e4281fd | 1,584 | cpp | C++ | src/computesystem.cpp | namelessvoid/nparticles | 6a113d201b726c7f06eae1ffd965f8b2041a683d | [
"Zlib"
] | 1 | 2016-05-31T11:29:18.000Z | 2016-05-31T11:29:18.000Z | src/computesystem.cpp | namelessvoid/nparticles | 6a113d201b726c7f06eae1ffd965f8b2041a683d | [
"Zlib"
] | 1 | 2016-09-03T13:18:53.000Z | 2016-09-03T13:18:53.000Z | src/computesystem.cpp | namelessvoid/nparticles | 6a113d201b726c7f06eae1ffd965f8b2041a683d | [
"Zlib"
] | null | null | null | /*
* Copyright (C) 2015 Simon Kerler
*
* This file is part of the "Nameless Particle Engine".
* For conditions of distribution and use, see the copyright notice you should
* have recievied with this software. I not, see:
* http://opensource.org/licenses/Zlib
*/
#include "computesystem.hpp"
#include "particlesy... | 26.847458 | 140 | 0.727904 | namelessvoid |
c4439f37abd931fe617c2d9b54d02da31dbc5197 | 3,943 | cpp | C++ | rocsolver/library/src/lapack/roclapack_getrs_strided_batched.cpp | leekillough/rocSOLVER | a0fa2af65be983dcec60081ed618b0642867aef0 | [
"BSD-2-Clause"
] | null | null | null | rocsolver/library/src/lapack/roclapack_getrs_strided_batched.cpp | leekillough/rocSOLVER | a0fa2af65be983dcec60081ed618b0642867aef0 | [
"BSD-2-Clause"
] | null | null | null | rocsolver/library/src/lapack/roclapack_getrs_strided_batched.cpp | leekillough/rocSOLVER | a0fa2af65be983dcec60081ed618b0642867aef0 | [
"BSD-2-Clause"
] | null | null | null | /* ************************************************************************
* Copyright 2019-2020 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include "roclapack_getrs.hpp"
template <typename T, typename U>
rocblas_status rocsolver_getrs_strided_batched... | 51.881579 | 167 | 0.634035 | leekillough |
c444155e8a8d6d4792ae8ca5343ddac3e1aa9bae | 779 | cpp | C++ | kernel/base/src/KABI.cpp | LetsPlaySomeUbuntu/XitongOS-test-1 | 792d0c76f9aa4bb2b579d47c2c728394a3acf9f9 | [
"MIT"
] | null | null | null | kernel/base/src/KABI.cpp | LetsPlaySomeUbuntu/XitongOS-test-1 | 792d0c76f9aa4bb2b579d47c2c728394a3acf9f9 | [
"MIT"
] | null | null | null | kernel/base/src/KABI.cpp | LetsPlaySomeUbuntu/XitongOS-test-1 | 792d0c76f9aa4bb2b579d47c2c728394a3acf9f9 | [
"MIT"
] | null | null | null | #include <FunnyOS/Stdlib/Memory.hpp>
#include <FunnyOS/Stdlib/System.hpp>
#include <FunnyOS/Stdlib/String.hpp>
using namespace FunnyOS::Stdlib;
extern "C" {
//
// Safety checks
//
void __stack_chk_fail() {
System::Terminate("stack check failed");
}
void __cxa_pure_virtual() {
System::Terminate("pure virtual... | 20.5 | 92 | 0.695764 | LetsPlaySomeUbuntu |
c4494ef6746e46913501b420f12bf427ccdbb103 | 346 | cxx | C++ | Modules/ThirdParty/VNL/src/vxl/core/testlib/tests/test_assert.cxx | TeoZosa/ITK | bc989624d640b30ee047634eda6acfc4cdd3f39b | [
"Apache-2.0"
] | 1 | 2019-12-10T21:26:08.000Z | 2019-12-10T21:26:08.000Z | Modules/ThirdParty/VNL/src/vxl/core/testlib/tests/test_assert.cxx | TeoZosa/ITK | bc989624d640b30ee047634eda6acfc4cdd3f39b | [
"Apache-2.0"
] | null | null | null | Modules/ThirdParty/VNL/src/vxl/core/testlib/tests/test_assert.cxx | TeoZosa/ITK | bc989624d640b30ee047634eda6acfc4cdd3f39b | [
"Apache-2.0"
] | null | null | null | #include "testlib/testlib_test.h"
static void test_assert()
{
testlib_test_assert( "Assert:", true );
testlib_test_assert_near( "Assert near:", 1.2345, 1.2346, 0.001 );
testlib_test_assert_near_relative("Assert near:", 1.235e20, 1.236e20, 0.001);
testlib_test_assert_far( "Assert far: ", 1.235, 1.237, 0.001 );
... | 28.833333 | 79 | 0.719653 | TeoZosa |
c44f08d37adb5b32bfbf9ca0e214d50fcf631462 | 1,497 | hh | C++ | RecoDataProducts/inc/TriggerInfo.hh | lborrel/Offline | db9f647bad3c702171ab5ffa5ccc04c82b3f8984 | [
"Apache-2.0"
] | 9 | 2020-03-28T00:21:41.000Z | 2021-12-09T20:53:26.000Z | RecoDataProducts/inc/TriggerInfo.hh | lborrel/Offline | db9f647bad3c702171ab5ffa5ccc04c82b3f8984 | [
"Apache-2.0"
] | 684 | 2019-08-28T23:37:43.000Z | 2022-03-31T22:47:45.000Z | RecoDataProducts/inc/TriggerInfo.hh | lborrel/Offline | db9f647bad3c702171ab5ffa5ccc04c82b3f8984 | [
"Apache-2.0"
] | 61 | 2019-08-16T23:28:08.000Z | 2021-12-20T08:29:48.000Z | #ifndef RecoDataProducts_TriggerInfo_hh
#define RecoDataProducts_TriggerInfo_hh
#include "canvas/Persistency/Common/Ptr.h"
#include <string>
#include <vector>
namespace mu2e {
class CaloCluster;
class KalSeed;
class HelixSeed;
class TimeCluster;
class CaloTrigSeed;
class CosmicTrackSeed;
struct Trigger... | 39.394737 | 102 | 0.681363 | lborrel |
c451868466a7a98b5d26f3b325d5a41f45d8e978 | 338 | cpp | C++ | code archive/TIOJ/2056.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 4 | 2018-04-08T08:07:58.000Z | 2021-06-07T14:55:24.000Z | code archive/TIOJ/2056.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | null | null | null | code archive/TIOJ/2056.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 1 | 2018-10-29T12:37:25.000Z | 2018-10-29T12:37:25.000Z | #define REP(i,n) for(int i=0;i<n;i++)
#include "lib2056.h"
int main()
{
int T = Testcase();
while(T--)
{
int n = Init();
REP(i,n)
{
int now = i;
while(1)
{
int t = Query(now);
if(t==i)break;
else now = t;
}
Answer(now);... | 14.083333 | 37 | 0.372781 | brianbbsu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.