hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
271a34fc1dcce1e8bea7c01a50bd2a111de5bda4 | 3,194 | cc | C++ | test/net/location.cc | byzhang/po6 | 541f79dbb6a67b9e615117e5ba7058629ef54bc8 | [
"BSD-3-Clause"
] | 1 | 2015-09-21T18:09:31.000Z | 2015-09-21T18:09:31.000Z | test/net/location.cc | byzhang/po6 | 541f79dbb6a67b9e615117e5ba7058629ef54bc8 | [
"BSD-3-Clause"
] | null | null | null | test/net/location.cc | byzhang/po6 | 541f79dbb6a67b9e615117e5ba7058629ef54bc8 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2011, Robert Escriva
// 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 c... | 31.94 | 83 | 0.697871 | byzhang |
271b4a4bc011154a03033eb7bdb3fd124a627e6f | 126 | cpp | C++ | src/test_gui/test_lab.cpp | wohaaitinciu/zpublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 50 | 2015-01-07T01:54:54.000Z | 2021-01-15T00:41:48.000Z | src/test_gui/test_lab.cpp | lib1256/zpublic | 64c2be9ef1abab878288680bb58122dcc25df81d | [
"Unlicense"
] | 1 | 2015-05-26T07:40:19.000Z | 2015-05-26T07:40:19.000Z | src/test_gui/test_lab.cpp | lib1256/zpublic | 64c2be9ef1abab878288680bb58122dcc25df81d | [
"Unlicense"
] | 39 | 2015-01-07T02:03:15.000Z | 2021-01-15T00:41:50.000Z | #include "stdafx.h"
#include "test_lab.h"
#include "lab1.h"
#include "lab2.h"
void test_lab()
{
//Lab1();
//Lab2();
} | 12.6 | 21 | 0.587302 | wohaaitinciu |
271cc8c67244bd0f9bfeecf98d628072ca62e47c | 1,452 | hpp | C++ | include/chacha20/detail.hpp | objectx/ChaCha20 | 92d9e36dd14f0f997b4caeba2752a9d21d187fee | [
"MIT"
] | 1 | 2016-09-25T08:45:39.000Z | 2016-09-25T08:45:39.000Z | include/chacha20/detail.hpp | objectx/ChaCha20 | 92d9e36dd14f0f997b4caeba2752a9d21d187fee | [
"MIT"
] | null | null | null | include/chacha20/detail.hpp | objectx/ChaCha20 | 92d9e36dd14f0f997b4caeba2752a9d21d187fee | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2020 Masashi Fujita.
*/
#pragma once
#include <array>
#include <cstdint>
namespace ChaCha::detail {
using mask_t = std::array<uint8_t, 64>;
constexpr size_t offset_to_sequence (size_t offset) { return offset / std::tuple_size<mask_t>::value; }
// NOLINTNEXTLINE: cppcoreguidelines-avo... | 36.3 | 107 | 0.55303 | objectx |
27207ba3dc5190a1a4116d23f8791a51c3becdad | 1,488 | cpp | C++ | firmware/source/interfaces/Adc.cpp | charkster/u2if | ceab7e038435fc212641ecc35683fd05523dd5cd | [
"BSD-3-Clause"
] | 79 | 2021-04-18T14:03:24.000Z | 2022-03-27T06:03:44.000Z | firmware/source/interfaces/Adc.cpp | charkster/u2if | ceab7e038435fc212641ecc35683fd05523dd5cd | [
"BSD-3-Clause"
] | 10 | 2021-04-21T20:28:42.000Z | 2022-03-19T21:47:15.000Z | firmware/source/interfaces/Adc.cpp | charkster/u2if | ceab7e038435fc212641ecc35683fd05523dd5cd | [
"BSD-3-Clause"
] | 13 | 2021-04-18T14:32:25.000Z | 2022-03-26T01:22:48.000Z | #include "Adc.h"
#include "hardware/adc.h"
Adc::Adc() {
setInterfaceState(InterfaceState::INTIALIZED);
adc_init();
}
Adc::~Adc() {
}
CmdStatus Adc::process(uint8_t const *cmd, uint8_t response[64]) {
CmdStatus status = CmdStatus::NOT_CONCERNED;
if(cmd[0] == Report::ID::ADC_INIT_PIN) {
statu... | 22.208955 | 77 | 0.627016 | charkster |
27210af3b8587e5bf55303c787c45d307d8bd970 | 952 | hpp | C++ | libs/swm/src/load/LoadV1.hpp | deathcleaver/swizzle | 1a1cc114841ea7de486cf94c6cafd9108963b4da | [
"MIT"
] | 2 | 2020-02-10T07:58:21.000Z | 2022-03-15T19:13:28.000Z | libs/swm/src/load/LoadV1.hpp | deathcleaver/swizzle | 1a1cc114841ea7de486cf94c6cafd9108963b4da | [
"MIT"
] | null | null | null | libs/swm/src/load/LoadV1.hpp | deathcleaver/swizzle | 1a1cc114841ea7de486cf94c6cafd9108963b4da | [
"MIT"
] | null | null | null | #ifndef SWM_MODEL_V1_LOAD_HPP
#define SWM_MODEL_V1_LOAD_HPP
/* Include files */
#include <swm/Swm.hpp>
#include <utils/BufferReader.hpp>
#include <string>
#include <vector>
/* Defines */
#define MESH_FLAGS_V1_UV_BIT 0x00
#define MESH_FLAGS_V1_NORMAL_BIT 0x01
#define MESH_FLAGS_V1_COLOR_BIT 0x02
/* Typedefs/enums ... | 17.962264 | 83 | 0.680672 | deathcleaver |
27281a041626627abdeddd061b5103e678c5616c | 1,254 | cpp | C++ | src/hash/test/src/HashTest.cpp | karz0n/algorithms | b2a08ba990c7e4f078eb7bf3c90d050eb38de9d8 | [
"MIT"
] | 1 | 2020-04-18T14:34:16.000Z | 2020-04-18T14:34:16.000Z | src/hash/test/src/HashTest.cpp | karz0n/algorithms | b2a08ba990c7e4f078eb7bf3c90d050eb38de9d8 | [
"MIT"
] | null | null | null | src/hash/test/src/HashTest.cpp | karz0n/algorithms | b2a08ba990c7e4f078eb7bf3c90d050eb38de9d8 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <Hash.hpp>
#include <functional>
static algorithms::hash<std::string> stringHasher;
static algorithms::hash<double> doubleHasher;
TEST(HashTest, String)
{
std::string v1{"Hello world!"};
std::string v2{"Hello World!"};
EXPECT_EQ(stringHasher(v1), stringHasher(v1));
... | 24.115385 | 74 | 0.681021 | karz0n |
272bd67d4ec53667ae654159aebdca7a03c5a766 | 2,666 | hpp | C++ | P-ART/HashTable.hpp | yuhao-su/RECIPE-TEST | 43eda6df8afe29a3eeefdda7b78f6c61d0c38073 | [
"Apache-2.0"
] | null | null | null | P-ART/HashTable.hpp | yuhao-su/RECIPE-TEST | 43eda6df8afe29a3eeefdda7b78f6c61d0c38073 | [
"Apache-2.0"
] | null | null | null | P-ART/HashTable.hpp | yuhao-su/RECIPE-TEST | 43eda6df8afe29a3eeefdda7b78f6c61d0c38073 | [
"Apache-2.0"
] | null | null | null | #include <cstdlib>
#include <atomic>
static inline void lock(bool* lkp) {
while(!__sync_bool_compare_and_swap(lkp, 0, 1)){
}
}
static inline void unlock(bool* lkp) {
*(lkp) = 0;
}
static inline bool try_lock(bool* lkp) {
return __sync_bool_compare_and_swap(lkp, 0, 1);
}
const uint64_t CACHE... | 26.929293 | 80 | 0.607652 | yuhao-su |
273145b94560f24ca3759a3c5e522abc375befa1 | 639 | cpp | C++ | Operating Systems - C++/Assignment1/hw1.cpp | lameimpala/university-code-samples | dc81154ab6350ddd3c19cb2917c840d4e79eaa2f | [
"Unlicense"
] | null | null | null | Operating Systems - C++/Assignment1/hw1.cpp | lameimpala/university-code-samples | dc81154ab6350ddd3c19cb2917c840d4e79eaa2f | [
"Unlicense"
] | null | null | null | Operating Systems - C++/Assignment1/hw1.cpp | lameimpala/university-code-samples | dc81154ab6350ddd3c19cb2917c840d4e79eaa2f | [
"Unlicense"
] | null | null | null | /*
CSCI 480-2
Assignment 1
Reid Wixom
z1693990
Due on February 14, 2017
Purpose
This program utilizes a class named 'Processor' which handles
querying system files to answer questions.
Execution
./hw1.exe [filename]
[filename] points to /cpu/cpuinfo by default
*/
... | 19.363636 | 65 | 0.629108 | lameimpala |
27319f293d47c9e5ace28724dcedca551fdbae89 | 7,313 | cpp | C++ | src/UnitTest.Library.Desktop/WorldScopeEntityTest.cpp | jnighlight/DataDrivenGameEngine | 10720cd2606cc75dac95213ff453bf3320ae3050 | [
"MIT"
] | null | null | null | src/UnitTest.Library.Desktop/WorldScopeEntityTest.cpp | jnighlight/DataDrivenGameEngine | 10720cd2606cc75dac95213ff453bf3320ae3050 | [
"MIT"
] | null | null | null | src/UnitTest.Library.Desktop/WorldScopeEntityTest.cpp | jnighlight/DataDrivenGameEngine | 10720cd2606cc75dac95213ff453bf3320ae3050 | [
"MIT"
] | null | null | null | #include "pch.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace Library {
class FooEntity : public Entity
{
public:
virtual FooEntity::~FooEntity() {};
void FooEntity::Update(WorldState& worldState) override {
UNREFERENCED_PARAMETER(worldState);
}
};
CONCRETE_FACTORY(FooEntity,... | 25.75 | 102 | 0.719267 | jnighlight |
27343146a391c7c4e73b2735b8fcaf78aeacbdf1 | 1,428 | cpp | C++ | test/repeat_test.cpp | Bhaskers-Blu-Org2/omi-script-provider | f2efe4434617d02887f1b99f7467e9d9203364a1 | [
"MIT"
] | 4 | 2019-06-16T02:29:23.000Z | 2021-04-20T16:09:19.000Z | test/repeat_test.cpp | microsoft/omi-script-provider | f2efe4434617d02887f1b99f7467e9d9203364a1 | [
"MIT"
] | null | null | null | test/repeat_test.cpp | microsoft/omi-script-provider | f2efe4434617d02887f1b99f7467e9d9203364a1 | [
"MIT"
] | 4 | 2019-11-03T11:52:56.000Z | 2020-08-05T14:54:06.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "repeat_test.hpp"
#include <cstdlib>
#include <repeat.hpp>
using test::repeat_test;
#define TEST_SIZE 50
#define _INT(X) static int const value##X (X);
#define _VALUES1(X) X,
#define _VALUES2(X) values[X] = X... | 16.604651 | 61 | 0.536415 | Bhaskers-Blu-Org2 |
27391c994b566c4bd8e607729ccd8f96c8d2440b | 14,636 | hpp | C++ | sdl/Hypergraph/BestPathString.hpp | sdl-research/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 29 | 2015-01-26T21:49:51.000Z | 2021-06-18T18:09:42.000Z | sdl/Hypergraph/BestPathString.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 1 | 2015-12-08T15:03:15.000Z | 2016-01-26T14:31:06.000Z | sdl/Hypergraph/BestPathString.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 4 | 2015-11-21T14:25:38.000Z | 2017-10-30T22:22:00.000Z | // Copyright 2014-2015 SDL plc
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 36.59 | 115 | 0.662134 | sdl-research |
273c206b60164a4e8fba10b9ea87df001e24ac5d | 18,469 | cpp | C++ | Tema 3/main.cpp | ParaschivAlex/OOP | 553c04d908776710aa3ac43cc7dc0212b60a4900 | [
"MIT"
] | 1 | 2020-06-09T14:24:48.000Z | 2020-06-09T14:24:48.000Z | Tema 3/main.cpp | ParaschivAlex/OOP | 553c04d908776710aa3ac43cc7dc0212b60a4900 | [
"MIT"
] | null | null | null | Tema 3/main.cpp | ParaschivAlex/OOP | 553c04d908776710aa3ac43cc7dc0212b60a4900 | [
"MIT"
] | null | null | null | #include <iostream>
#include <list>
#include <map>
#include <vector>
#include <unordered_map>
using namespace std;
class Examen{
protected:
string materie;
string data;
double nota_scris;
static int nr_examene;
public:
Examen(string, string, double);
virtual void citire(istream &... | 31.250423 | 117 | 0.471276 | ParaschivAlex |
273e4a41ec8dd2869b616b8e53943cc4fd1f8bf9 | 2,829 | cpp | C++ | tools/clang/test/FixIt/fixit-function-call.cpp | clayne/DirectXShaderCompiler | 0ef9b702890b1d45f0bec5fa75481290323e14dc | [
"NCSA"
] | 3,102 | 2015-01-04T02:28:35.000Z | 2022-03-30T12:53:41.000Z | tools/clang/test/FixIt/fixit-function-call.cpp | clayne/DirectXShaderCompiler | 0ef9b702890b1d45f0bec5fa75481290323e14dc | [
"NCSA"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | tools/clang/test/FixIt/fixit-function-call.cpp | clayne/DirectXShaderCompiler | 0ef9b702890b1d45f0bec5fa75481290323e14dc | [
"NCSA"
] | 1,868 | 2015-01-03T04:27:11.000Z | 2022-03-25T13:37:35.000Z | // RUN: not %clang_cc1 -fdiagnostics-parseable-fixits -x c++ %s 2> %t
// RUN: FileCheck %s < %t
// PR5941
// END.
/* Test fixits for * and & mismatch in function arguments.
* Since fixits are on the notes, they cannot be applied automatically. */
typedef int intTy;
typedef int intTy2;
void f0(int *a);
void f1(doubl... | 23.773109 | 142 | 0.639802 | clayne |
274200ae203ee2dad78f5246c20420d430b50edd | 4,101 | cpp | C++ | rute/qt_cpp/auto/margins.cpp | emoon/Rute | b8981fa9fb0508691399b0aa9a565686ebcc0a69 | [
"Apache-2.0",
"MIT"
] | 42 | 2018-05-04T08:57:57.000Z | 2021-11-08T13:05:23.000Z | rute/qt_cpp/auto/margins.cpp | emoon/Rute | b8981fa9fb0508691399b0aa9a565686ebcc0a69 | [
"Apache-2.0",
"MIT"
] | 18 | 2018-05-31T12:11:35.000Z | 2021-02-08T04:14:55.000Z | rute/qt_cpp/auto/margins.cpp | emoon/ui_gen | b8981fa9fb0508691399b0aa9a565686ebcc0a69 | [
"Apache-2.0",
"MIT"
] | 2 | 2019-04-17T04:54:15.000Z | 2021-03-19T17:38:05.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// This file is auto-generated by rute_gen. DO NOT EDIT
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include "../rute_base.h"
... | 35.051282 | 123 | 0.405023 | emoon |
2744cdd9e4684a48bcdbc2523306ad09b425e5d7 | 3,372 | cpp | C++ | B-CCP-400-LYN-4-1-theplazza/src/plazza.cpp | Neotoxic-off/Epitech2024 | 8b3dd04fa9ac2b7019c0b5b1651975a7252d929b | [
"Apache-2.0"
] | 2 | 2022-02-07T12:44:51.000Z | 2022-02-08T12:04:08.000Z | B-CCP-400-LYN-4-1-theplazza/src/plazza.cpp | Neotoxic-off/Epitech2024 | 8b3dd04fa9ac2b7019c0b5b1651975a7252d929b | [
"Apache-2.0"
] | null | null | null | B-CCP-400-LYN-4-1-theplazza/src/plazza.cpp | Neotoxic-off/Epitech2024 | 8b3dd04fa9ac2b7019c0b5b1651975a7252d929b | [
"Apache-2.0"
] | 1 | 2022-01-23T21:26:06.000Z | 2022-01-23T21:26:06.000Z | /*
** EPITECH PROJECT, 2020
** C / C++ PROJECT
** File description:
** file
*/
#include "plazza.hpp"
#include "kitchen.hpp"
self_t *builder()
{
self_t *self = (self_t *)malloc(sizeof(self_t));
self->cooks_d = 0;
self->multiplier_d = 0;
self->time_d = 0;
return (self);
}
bool arguments(int ac, ... | 26.34375 | 142 | 0.484579 | Neotoxic-off |
2747466f400285cc761eba800c2816ccce45f122 | 1,284 | cpp | C++ | sdk/core/azure-core/test/ut/extendable_enumeration_test.cpp | JinmingHu-MSFT/azure-sdk-for-cpp | 933486385a54a5a09a7444dbd823425f145ad75a | [
"MIT"
] | 1 | 2022-01-19T22:54:41.000Z | 2022-01-19T22:54:41.000Z | sdk/core/azure-core/test/ut/extendable_enumeration_test.cpp | LarryOsterman/azure-sdk-for-cpp | d96216f50909a2bd39b555c9088f685bf0f7d6e6 | [
"MIT"
] | null | null | null | sdk/core/azure-core/test/ut/extendable_enumeration_test.cpp | LarryOsterman/azure-sdk-for-cpp | d96216f50909a2bd39b555c9088f685bf0f7d6e6 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#include <azure/core/internal/extendable_enumeration.hpp>
#include <gtest/gtest.h>
#include <string>
using namespace Azure::Core;
class MyEnum : public Azure::Core::_internal::ExtendableEnumeration<MyEnum> {
public:
MyEnum... | 22.137931 | 86 | 0.696262 | JinmingHu-MSFT |
2747c4ce09ea82240ca76b6ef6eec2a9c77ed3b2 | 148 | cpp | C++ | kernel/src/program.cpp | pradosh-arduino/pradoshOS | b7c2a8b238261fc61460e609fd8352aa62b5f32e | [
"MIT"
] | 9 | 2021-11-17T10:27:18.000Z | 2022-03-16T09:43:24.000Z | kernel/src/program.cpp | pradosh-arduino/pradoshOS | b7c2a8b238261fc61460e609fd8352aa62b5f32e | [
"MIT"
] | 1 | 2022-03-17T08:31:05.000Z | 2022-03-28T02:50:59.000Z | kernel/src/program.cpp | pradosh-arduino/pradoshOS | b7c2a8b238261fc61460e609fd8352aa62b5f32e | [
"MIT"
] | 1 | 2021-12-21T09:49:02.000Z | 2021-12-21T09:49:02.000Z | #include "mtask.h"
extern "C" void programASM();
void program(){
lock_scheduler();
schedule();
unlock_scheduler();
programASM();
} | 14.8 | 29 | 0.628378 | pradosh-arduino |
274abdcb400bdaf7c6b3f288d1f934a8b0911318 | 2,031 | cpp | C++ | samples/RenderTargets/Source/Main.cpp | bitsauce/NibbleSauce3D | 79792388eaad659c241a292c470ee9fa6413d354 | [
"MIT"
] | null | null | null | samples/RenderTargets/Source/Main.cpp | bitsauce/NibbleSauce3D | 79792388eaad659c241a292c470ee9fa6413d354 | [
"MIT"
] | null | null | null | samples/RenderTargets/Source/Main.cpp | bitsauce/NibbleSauce3D | 79792388eaad659c241a292c470ee9fa6413d354 | [
"MIT"
] | 1 | 2021-04-25T09:58:46.000Z | 2021-04-25T09:58:46.000Z | #include <Sauce/Sauce.h>
using namespace sauce;
class RenderTargetsGame : public Game
{
RenderTarget2D *m_renderTarget;
RenderTarget2D *m_renderTarget2;
Texture2DRef m_texture;
public:
void onStart(GameEvent *e)
{
GraphicsContext *graphicsContext = getWindow()->getGraphicsContext();
m_renderTarget = graphic... | 32.758065 | 125 | 0.754801 | bitsauce |
274bd5416727fdd152318c5929a28dedbeb4a6d4 | 1,375 | cpp | C++ | src/mod/robot/standable_heads.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 33 | 2016-02-18T04:27:53.000Z | 2022-01-15T18:59:53.000Z | src/mod/robot/standable_heads.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 5 | 2018-01-10T18:41:38.000Z | 2020-10-01T13:34:53.000Z | src/mod/robot/standable_heads.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 14 | 2017-08-06T23:02:49.000Z | 2021-08-24T00:24:16.000Z | #include "mod.h"
#include "util/scope.h"
#include "stub/gamerules.h"
#include "stub/tfplayer.h"
namespace Mod::Robot::Standable_Heads
{
RefCount rc_TFPlayerThink;
DETOUR_DECL_MEMBER(void, CTFPlayer_TFPlayerThink)
{
SCOPED_INCREMENT(rc_TFPlayerThink);
DETOUR_MEMBER_CALL(CTFPlayer_TFPlayerThink)();
... | 28.061224 | 99 | 0.704 | fugueinheels |
274c366cb552ef6604cf69aa7cb0255b76ae1ec9 | 3,011 | hpp | C++ | descriptors/rsd.hpp | vbillys/pose-estimation | e1b57da68d9c961358a6f8fd37706ed521c5c256 | [
"MIT"
] | 63 | 2017-03-30T23:56:47.000Z | 2022-03-20T10:30:32.000Z | descriptors/rsd.hpp | vbillys/pose-estimation | e1b57da68d9c961358a6f8fd37706ed521c5c256 | [
"MIT"
] | 2 | 2017-07-10T14:14:50.000Z | 2020-07-10T10:08:04.000Z | descriptors/rsd.hpp | aviate/pose-estimation | e1b57da68d9c961358a6f8fd37706ed521c5c256 | [
"MIT"
] | 15 | 2017-03-30T23:56:52.000Z | 2021-10-12T12:08:20.000Z | #pragma once
#include <pcl/features/rsd.h>
#include "../types.h"
#include "../parameter.h"
#include "../featuredescription.hpp"
#include "../utils.hpp"
namespace PoseEstimation
{
/**
#include "../utils.hpp"
* @brief Feature Description using Radius-based Surface Descriptor (RSD)
*/
template<typ... | 37.6375 | 148 | 0.647957 | vbillys |
27526103430b6e891e83753413540e0d771ddc63 | 3,808 | hpp | C++ | src/common/make-unique.hpp | bsc-ssrg/NORNS | 4fd2d181019eceadb8b1b04a94e3756476326239 | [
"MIT"
] | 2 | 2019-11-11T11:34:56.000Z | 2020-12-08T02:13:48.000Z | src/common/make-unique.hpp | bsc-ssrg/NORNS | 4fd2d181019eceadb8b1b04a94e3756476326239 | [
"MIT"
] | null | null | null | src/common/make-unique.hpp | bsc-ssrg/NORNS | 4fd2d181019eceadb8b1b04a94e3756476326239 | [
"MIT"
] | null | null | null | /*************************************************************************
* Copyright (C) 2017-2019 Barcelona Supercomputing Center *
* Centro Nacional de Supercomputacion *
* All rights reserved. *
* ... | 49.454545 | 75 | 0.508666 | bsc-ssrg |
2752a43f2438e6b17745fcfbbdbdcec2c9fccde5 | 15,080 | cpp | C++ | src/csapex_core/src/param/parameter_factory.cpp | ICRA-2018/csapex | 8ee83b9166d0281a4923184cce67b4a55f273ea2 | [
"BSD-3-Clause"
] | null | null | null | src/csapex_core/src/param/parameter_factory.cpp | ICRA-2018/csapex | 8ee83b9166d0281a4923184cce67b4a55f273ea2 | [
"BSD-3-Clause"
] | null | null | null | src/csapex_core/src/param/parameter_factory.cpp | ICRA-2018/csapex | 8ee83b9166d0281a4923184cce67b4a55f273ea2 | [
"BSD-3-Clause"
] | null | null | null | /// HEADER
#include <csapex/param/parameter_factory.h>
/// COMPONENT
#include <csapex/param/angle_parameter.h>
#include <csapex/param/color_parameter.h>
#include <csapex/param/path_parameter.h>
#include <csapex/param/interval_parameter.h>
#include <csapex/param/trigger_parameter.h>
#include <csapex/param/bitset_parame... | 41.5427 | 200 | 0.717042 | ICRA-2018 |
2753b2c79c89beed8c6ae3d91178e3abc861104c | 1,207 | cpp | C++ | Dynamic Programming/SPOJ M3TILE/Code.cpp | adelnobel/Training-for-ACM-ICPC-problems | 8030d24ab3ce1f50821b22647bf9195b41f932b1 | [
"MIT"
] | 1 | 2020-03-05T09:09:36.000Z | 2020-03-05T09:09:36.000Z | Dynamic Programming/SPOJ M3TILE/Code.cpp | adelnobel/Training-for-ACM-ICPC-problems | 8030d24ab3ce1f50821b22647bf9195b41f932b1 | [
"MIT"
] | null | null | null | Dynamic Programming/SPOJ M3TILE/Code.cpp | adelnobel/Training-for-ACM-ICPC-problems | 8030d24ab3ce1f50821b22647bf9195b41f932b1 | [
"MIT"
] | null | null | null | #include <cstring>
#include <algorithm>
#include <functional>
#include <vector>
#include <map>
#include <set>
#include <fstream>
#include <stdio.h>
#include <iostream>
#include <string>
#include <sstream>
#include <cmath>
#include <queue>
using namespace std;
int arr[31][8];
int n, tot;
int solve(int y, int mask)
... | 15.474359 | 60 | 0.444905 | adelnobel |
2754756f8bf2f8290f42b63f91c2f5a47a8fc2e8 | 1,250 | cpp | C++ | Leetcode/Day040/last_lex_substr.cpp | SujalAhrodia/Practice_2020 | 59b371ada245ed8253d12327f18deee3e47f31d6 | [
"MIT"
] | null | null | null | Leetcode/Day040/last_lex_substr.cpp | SujalAhrodia/Practice_2020 | 59b371ada245ed8253d12327f18deee3e47f31d6 | [
"MIT"
] | null | null | null | Leetcode/Day040/last_lex_substr.cpp | SujalAhrodia/Practice_2020 | 59b371ada245ed8253d12327f18deee3e47f31d6 | [
"MIT"
] | null | null | null | /* first solution (slow but simple)
string_view:?
The idea is always to store a pair of pointer-to-first-element and size of some existing data array or string.
Such a view-handle class could be passed around cheaply by value and would offer cheap substringing operations
(which can be implemented as simple pointer ... | 21.551724 | 111 | 0.4784 | SujalAhrodia |
2755d61f91605f0470e2941e07eb3c505b83fe75 | 17,706 | cc | C++ | chrome/browser/ui/views/frame/immersive_mode_controller_ash_unittest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/ui/views/frame/immersive_mode_controller_ash_unittest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/ui/views/frame/immersive_mode_controller_ash_unittest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/frame/immersive_mode_controller_ash.h"
#include "ash/frame/caption_buttons/frame_caption_button.h"
#include "ash/frame/... | 39.346667 | 80 | 0.753699 | metux |
275a0511389b782b772b9814035ef0f653abad82 | 861 | cpp | C++ | Game/Scorpio/src/PhysicsSimulation/PS_EulerIntegrator.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/Scorpio/src/PhysicsSimulation/PS_EulerIntegrator.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/Scorpio/src/PhysicsSimulation/PS_EulerIntegrator.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | #include "PS_EulerIntegrator.h"
PS_EulerIntegrator::PS_EulerIntegrator(void)
{
}
PS_EulerIntegrator::~PS_EulerIntegrator()
{
}
void PS_EulerIntegrator::prepare(size_t count, const PS_Mass* masses, const PS_Motion* motions)
{
mForces.resize(count, PS_Force::ZERO);
}
void PS_EulerIntegrator::update(PS_Scalar dt,
... | 26.90625 | 103 | 0.59698 | hackerlank |
275a1dfdf2569296b4d1393a301054e17e5f6be4 | 5,494 | hxx | C++ | ds/win32/accctrl2/inc/iterator.hxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | ds/win32/accctrl2/inc/iterator.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | ds/win32/accctrl2/inc/iterator.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+-------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1993 - 1995.
//
// File: citeratr.hxx
//
// Contents: iterator classes for ACLs and ACCESS_ENTRYs
//
// History: 8-94 Created DaveMont
//
//... | 32.317647 | 79 | 0.37004 | npocmaka |
275cff10ecb581154be8099d2ab2f44f6511be4b | 2,358 | cpp | C++ | src/modules/loki/test/ReadoutGenerator.cpp | geishm-ansto/event-formation-unit | bab9f211913ee9e633eae627ec2c2ed96ae380b4 | [
"BSD-2-Clause"
] | null | null | null | src/modules/loki/test/ReadoutGenerator.cpp | geishm-ansto/event-formation-unit | bab9f211913ee9e633eae627ec2c2ed96ae380b4 | [
"BSD-2-Clause"
] | null | null | null | src/modules/loki/test/ReadoutGenerator.cpp | geishm-ansto/event-formation-unit | bab9f211913ee9e633eae627ec2c2ed96ae380b4 | [
"BSD-2-Clause"
] | null | null | null | /** Copyright (C) 2019 European Spallation Source ERIC */
#include <cassert>
#include <cstdint>
#include <cstdio>
#include <cstring>
#include <loki/test/ReadoutGenerator.h>
using namespace Loki;
/// in benchmark tests
uint16_t lokiReadoutDataGen(uint16_t DataSections, uint16_t DataElements, uint8_t Rings,
uint8... | 35.727273 | 97 | 0.624682 | geishm-ansto |
275e38506dee3dc090ef320fba3ace26c8219c4d | 428 | cpp | C++ | practice/231-power-of-two/LeetCode_231_0144.cpp | manajay/algorithm-list | 828b0baed25a743fdb010427f873b29af9587951 | [
"MIT"
] | null | null | null | practice/231-power-of-two/LeetCode_231_0144.cpp | manajay/algorithm-list | 828b0baed25a743fdb010427f873b29af9587951 | [
"MIT"
] | null | null | null | practice/231-power-of-two/LeetCode_231_0144.cpp | manajay/algorithm-list | 828b0baed25a743fdb010427f873b29af9587951 | [
"MIT"
] | null | null | null | /**
给定一个整数,编写一个函数来判断它是否是 2 的幂次方。
示例 1:
输入: 1
输出: true
解释: 20 = 1
示例 2:
输入: 16
输出: true
解释: 24 = 16
示例 3:
输入: 218
输出: false
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/power-of-two
著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
题解见我的博客 https://www.todayios.com/bit-operation/
*
*/
class Solution {
public:
bool i... | 12.969697 | 56 | 0.61215 | manajay |
27646d6b81f437152470b42b63b17b4fee073ee2 | 2,171 | cpp | C++ | packages/hyperloop-ios-metabase/src/typedef.cpp | sgtcoolguy/hyperloop.next | f98983db8aa19b73e2ec5458e04589cda900af2e | [
"Apache-2.0"
] | 5 | 2021-03-10T20:16:26.000Z | 2021-03-13T12:58:30.000Z | packages/hyperloop-ios-metabase/src/typedef.cpp | sgtcoolguy/hyperloop.next | f98983db8aa19b73e2ec5458e04589cda900af2e | [
"Apache-2.0"
] | 5 | 2021-03-11T15:45:15.000Z | 2021-11-20T16:19:37.000Z | packages/hyperloop-ios-metabase/src/typedef.cpp | sgtcoolguy/hyperloop.next | f98983db8aa19b73e2ec5458e04589cda900af2e | [
"Apache-2.0"
] | 6 | 2021-03-10T18:18:00.000Z | 2021-07-21T21:31:49.000Z | /**
* Hyperloop Metabase Generator
* Copyright (c) 2015 by Appcelerator, Inc.
*/
#include <iostream>
#include "typedef.h"
#include "parser.h"
#include "util.h"
#include "struct.h"
#include "union.h"
namespace hyperloop {
TypeDefinition::TypeDefinition (CXCursor cursor, const std::string &name, ParserContext *ctx)... | 25.244186 | 103 | 0.639337 | sgtcoolguy |
2768b58d8fb23940622e0aded98666695794580e | 313 | cpp | C++ | source/entrypoint.cpp | KaixoCode/Collecto | 2d71294c85a906b2c2099a10116389c90ff1beab | [
"MIT"
] | null | null | null | source/entrypoint.cpp | KaixoCode/Collecto | 2d71294c85a906b2c2099a10116389c90ff1beab | [
"MIT"
] | null | null | null | source/entrypoint.cpp | KaixoCode/Collecto | 2d71294c85a906b2c2099a10116389c90ff1beab | [
"MIT"
] | null | null | null | #include "Controller.hpp"
// -------------------------------------------------------------------------- \\
// --------------------------- Entry Point ---------------------------------- \\
// -------------------------------------------------------------------------- \\
void main()
{
Controller _c;
_c.Run();
} | 28.454545 | 80 | 0.175719 | KaixoCode |
2769a1b7463a7e8a326925731c3696e0068df4cc | 4,977 | cpp | C++ | ChronicleLogger/src/main/com/sowrov/util/logsystem/format/Html.cpp | sowrov/ChronicleLogger | 50678be7e2987211ab976d105fcd8549e5b8744b | [
"Apache-2.0"
] | 1 | 2020-03-05T10:36:48.000Z | 2020-03-05T10:36:48.000Z | ChronicleLogger/src/main/com/sowrov/util/logsystem/format/Html.cpp | sowrov/ChronicleLogger | 50678be7e2987211ab976d105fcd8549e5b8744b | [
"Apache-2.0"
] | null | null | null | ChronicleLogger/src/main/com/sowrov/util/logsystem/format/Html.cpp | sowrov/ChronicleLogger | 50678be7e2987211ab976d105fcd8549e5b8744b | [
"Apache-2.0"
] | null | null | null | #include "Html.h"
namespace com {
namespace sowrov {
namespace util {
namespace logsystem {
namespace format {
std::string Html::getIntroFormat() {
std::string intro = "<html><head><title>";
intro += Calendar::getCalendar ().getFormattedDate ("D d F Y H:i:s");
intro += "</title><style type=\"text/css\">\
<!-... | 26.194737 | 134 | 0.63693 | sowrov |
276bdc8e3a736de42366e4038a7ba0bd733e1a38 | 1,942 | hpp | C++ | include/openpose/utilities/profiler.hpp | meiwanlanjun/openpose | 71078eb1b7571789c7589cf6c8de1786c3227a90 | [
"DOC",
"MIT-CMU"
] | 717 | 2018-10-31T16:52:42.000Z | 2022-03-31T16:13:47.000Z | include/openpose/utilities/profiler.hpp | Mainvooid/openpose | e4a021228b5949150c9446e31ec9f36f0f50a21c | [
"DOC",
"MIT-CMU"
] | 48 | 2018-11-08T12:16:43.000Z | 2020-08-10T00:24:50.000Z | include/openpose/utilities/profiler.hpp | Mainvooid/openpose | e4a021228b5949150c9446e31ec9f36f0f50a21c | [
"DOC",
"MIT-CMU"
] | 180 | 2018-10-31T18:41:33.000Z | 2022-03-27T23:49:06.000Z | #ifndef OPENPOSE_UTILITIES_PROFILER_HPP
#define OPENPOSE_UTILITIES_PROFILER_HPP
#include <string>
#include <openpose/core/macros.hpp>
// Enable PROFILER_ENABLED on Makefile.config in order to use this function. Otherwise nothing will be outputted.
// How to use - example:
// For GPU - It can only be applied in the m... | 42.217391 | 115 | 0.647786 | meiwanlanjun |
276d637d707c22088359eb3ceecf2e402d9aca07 | 794 | cpp | C++ | Source/WarpX_py.cpp | ablelly/WarpX | fd031b1cfcb1827a5cd6a4d905fe0ded76693411 | [
"BSD-3-Clause-LBNL"
] | 1 | 2019-11-14T19:27:03.000Z | 2019-11-14T19:27:03.000Z | Source/WarpX_py.cpp | ablelly/WarpX | fd031b1cfcb1827a5cd6a4d905fe0ded76693411 | [
"BSD-3-Clause-LBNL"
] | 40 | 2019-08-30T15:49:07.000Z | 2022-03-09T00:57:09.000Z | Source/WarpX_py.cpp | ablelly/WarpX | fd031b1cfcb1827a5cd6a4d905fe0ded76693411 | [
"BSD-3-Clause-LBNL"
] | 4 | 2020-04-20T22:29:45.000Z | 2020-05-26T21:00:52.000Z | #include <WarpX_py.H>
extern "C" {
WARPX_CALLBACK_PY_FUNC_0 warpx_py_afterinit = nullptr;
WARPX_CALLBACK_PY_FUNC_0 warpx_py_beforeEsolve = nullptr;
WARPX_CALLBACK_PY_FUNC_0 warpx_py_afterEsolve = nullptr;
WARPX_CALLBACK_PY_FUNC_0 warpx_py_beforedeposition = nullptr;
WARPX_CALLBACK_PY_FUNC_0 warpx_... | 39.7 | 66 | 0.826196 | ablelly |
276d7a0b38fb6c95d07b4ece92492bda8e71d159 | 1,157 | cpp | C++ | verify/verify-yosupo-ds/yosupo-point-add-rectangle-sum-abstruct-range-tree.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 69 | 2020-11-06T05:21:42.000Z | 2022-03-29T03:38:35.000Z | verify/verify-yosupo-ds/yosupo-point-add-rectangle-sum-abstruct-range-tree.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 21 | 2020-07-25T04:47:12.000Z | 2022-02-01T14:39:29.000Z | verify/verify-yosupo-ds/yosupo-point-add-rectangle-sum-abstruct-range-tree.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 9 | 2020-11-06T11:55:10.000Z | 2022-03-20T04:45:31.000Z | #define PROBLEM "https://judge.yosupo.jp/problem/point_add_rectangle_sum"
#include "../../template/template.hpp"
#include "../../data-structure-2d/abstract-range-tree.hpp"
#include "../../data-structure/binary-indexed-tree.hpp"
#include "../../misc/compress.hpp"
#include "../../misc/fastio.hpp"
using namespace Nyaan;... | 26.906977 | 73 | 0.522904 | NachiaVivias |
276f840fadbc7b302bbe20f2eb9270f738863fab | 14,242 | cpp | C++ | test/unit_tests/TestTessellated.cpp | cxwx/VecGeom | c86c00bd7d4db08f4fc20a625020da329784aaac | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-06-27T18:43:36.000Z | 2020-06-27T18:43:36.000Z | test/unit_tests/TestTessellated.cpp | cxwx/VecGeom | c86c00bd7d4db08f4fc20a625020da329784aaac | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | test/unit_tests/TestTessellated.cpp | cxwx/VecGeom | c86c00bd7d4db08f4fc20a625020da329784aaac | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | //
// File: TestTessellated.cpp
//
//.. ensure asserts are compiled in
#undef NDEBUG
#include "VecGeom/base/FpeEnable.h"
#include "VecGeom/base/Vector3D.h"
#include "VecGeom/volumes/Tessellated.h"
#include "ApproxEqual.h"
#include <cmath>
bool testvecgeom = true;
template <class Vec_t = vecgeom::Vector3D<vecgeom::P... | 38.182306 | 114 | 0.661986 | cxwx |
2770aff45ae433622a6fade2bb4b6e0fbce6d063 | 11,177 | cc | C++ | src/bindee.cc | LLNL/bindee | 3df620803ef5b198a32732341e52971342493863 | [
"MIT"
] | 5 | 2020-02-19T08:10:46.000Z | 2021-02-03T01:28:34.000Z | src/bindee.cc | LLNL/bindee | 3df620803ef5b198a32732341e52971342493863 | [
"MIT"
] | null | null | null | src/bindee.cc | LLNL/bindee | 3df620803ef5b198a32732341e52971342493863 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2020, Lawrence Livermore National Security, LLC and other
* bindee developers. See the top-level LICENSE file for details.
*
* SPDX-License-Identifier: MIT
*/
#include <sstream>
#include <cctype>
#include <utility>
#include "bindee.hh"
#include "options.hh"
#include "info.hh"
namespace Bindee ... | 22.579798 | 78 | 0.474367 | LLNL |
2774943f0be8ef3c7e8142f80f7ee1f13a6be83c | 6,246 | cpp | C++ | src/hsp3/win32/hsp3gr_win.cpp | cielavenir/OpenHSP | eddc647733e82657757055b66fd8c2dbf17898b8 | [
"BSD-3-Clause"
] | 127 | 2018-02-24T20:41:15.000Z | 2022-03-22T05:57:56.000Z | src/hsp3/win32/hsp3gr_win.cpp | cielavenir/OpenHSP | eddc647733e82657757055b66fd8c2dbf17898b8 | [
"BSD-3-Clause"
] | 21 | 2018-09-11T15:04:22.000Z | 2022-02-03T09:30:16.000Z | src/hsp3/win32/hsp3gr_win.cpp | cielavenir/OpenHSP | eddc647733e82657757055b66fd8c2dbf17898b8 | [
"BSD-3-Clause"
] | 21 | 2019-03-28T07:49:44.000Z | 2021-12-25T02:49:07.000Z |
//
// HSP3 graphics command
// (GUI関連コマンド・関数処理)
// onion software/onitama 2004/6
//
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <tchar.h>
#include <direct.h>
#include <shlobj.h>
#include <io.h>
#include <fcntl.h>
#include "../hsp3code.h"
#include "../hsp... | 18.052023 | 88 | 0.565642 | cielavenir |
2776c904a2808e0d0569acc89a474c47ad01434d | 1,507 | hpp | C++ | src/GameObjects/projectile.hpp | toni-lyttinen/spacedude3 | d06a4f80f29a4a88056250d66e63b59e8523c434 | [
"MIT"
] | 2 | 2020-01-21T15:05:43.000Z | 2020-01-25T17:00:55.000Z | src/GameObjects/projectile.hpp | tlmoni/spacedude3 | d06a4f80f29a4a88056250d66e63b59e8523c434 | [
"MIT"
] | null | null | null | src/GameObjects/projectile.hpp | tlmoni/spacedude3 | d06a4f80f29a4a88056250d66e63b59e8523c434 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include "gameobject.hpp"
struct Bullet {
std::string texture;
RectHitbox hitbox;
int type;
float max_speed;
float acceleration;
float damage;
PhysicsVector origin;
};
const static Bullet plasma = {"src/Textures/bullet.png", RectHitbox(20.f, 20.f), BULLET,... | 36.756098 | 128 | 0.693431 | toni-lyttinen |
27781a44849e2750b62069a2e104de4eb6ac2729 | 1,993 | hpp | C++ | src/constants.hpp | kewin1983/transient-pipeline-flow | 4ffe0b61d3d40d9bcb82a3743b2c2e403521835d | [
"MIT"
] | 1 | 2021-03-26T03:30:07.000Z | 2021-03-26T03:30:07.000Z | src/constants.hpp | kewin1983/transient-pipeline-flow | 4ffe0b61d3d40d9bcb82a3743b2c2e403521835d | [
"MIT"
] | null | null | null | src/constants.hpp | kewin1983/transient-pipeline-flow | 4ffe0b61d3d40d9bcb82a3743b2c2e403521835d | [
"MIT"
] | null | null | null | #pragma once
#include <cmath>
/*!
* This namespace contains a lot of useful constants.
*/
namespace constants
{
//! The ratio of a circle's circumference to its diameter.
static const double pi = 4.0*std::atan(1.0);
//! The zero point of the Kelvin scale [degrees C].
static const double kelvin = 27... | 38.326923 | 141 | 0.678374 | kewin1983 |
277a9286be970ccc7a05dff807d46b322aafd7fb | 6,292 | cpp | C++ | modules/media/source/BoxArtList.cpp | LCClyde/nyra | f8280db2633e888ab62e929a2c238a33755ff694 | [
"MIT"
] | null | null | null | modules/media/source/BoxArtList.cpp | LCClyde/nyra | f8280db2633e888ab62e929a2c238a33755ff694 | [
"MIT"
] | 1 | 2016-01-25T13:03:03.000Z | 2016-01-25T13:03:03.000Z | modules/media/source/BoxArtList.cpp | LCClyde/nyra | f8280db2633e888ab62e929a2c238a33755ff694 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2017 Clyde Stanfield
*
* 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, merge, pub... | 34.382514 | 79 | 0.540687 | LCClyde |
277b8d26262480bf35b11b120d90411d563f7df1 | 539 | hh | C++ | tests/opbox/unit/support/default_config_string.hh | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-01-25T21:21:07.000Z | 2021-04-29T17:24:00.000Z | tests/opbox/unit/support/default_config_string.hh | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 8 | 2018-10-09T14:35:30.000Z | 2020-09-30T20:09:42.000Z | tests/opbox/unit/support/default_config_string.hh | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-04-23T19:01:36.000Z | 2021-05-11T07:44:55.000Z | // Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
#ifndef FAODEL_DEFAULT_CONFIG_STRING_HH
#define FAODEL_DEFAULT_CONFIG_STRING_HH
std::string default_config_st... | 20.730769 | 76 | 0.784787 | faodel |
277e30b013a2c1c3d376d600dca003632d1672b6 | 2,990 | cpp | C++ | src/StressTool/StressTool.cpp | Stormancer/sample-server-app | 4a91e8e728ead7149b34444ea43217ce47f92529 | [
"MIT"
] | 1 | 2021-07-16T15:00:39.000Z | 2021-07-16T15:00:39.000Z | src/StressTool/StressTool.cpp | Stormancer/sample-server-app | 4a91e8e728ead7149b34444ea43217ce47f92529 | [
"MIT"
] | null | null | null | src/StressTool/StressTool.cpp | Stormancer/sample-server-app | 4a91e8e728ead7149b34444ea43217ce47f92529 | [
"MIT"
] | null | null | null | // StressTool.cpp : Ce fichier contient la fonction 'main'. L'exécution du programme commence et se termine à cet endroit.
//
#define NOMINMAX
#include <iostream>
#include "Worker.h"
#include "Timer.h"
struct Stats
{
double avg;
double max;
double min;
double successRate;
};
Stats stats(std::vector<St... | 30.510204 | 182 | 0.566221 | Stormancer |
95942ccafcc541d41b85882a90d3f8cb81d46c2c | 4,513 | cpp | C++ | openfpga/src/utils/openfpga_physical_tile_utils.cpp | antmicro/OpenFPGA | b78803a6bb4c07aaa5946fd7f579a49d8a3022f6 | [
"MIT"
] | 246 | 2020-12-03T08:49:29.000Z | 2022-03-28T21:19:55.000Z | openfpga/src/utils/openfpga_physical_tile_utils.cpp | a-canela/OpenFPGA | 063c58b6cbe2e01aa5520ec43ec80ff064d7f228 | [
"MIT"
] | 261 | 2020-12-03T00:23:54.000Z | 2022-03-31T10:00:37.000Z | openfpga/src/utils/openfpga_physical_tile_utils.cpp | a-canela/OpenFPGA | 063c58b6cbe2e01aa5520ec43ec80ff064d7f228 | [
"MIT"
] | 66 | 2020-12-12T09:05:53.000Z | 2022-03-28T07:51:41.000Z | /***************************************************************************************
* This file includes most utilized functions that are used to acquire data from
* VPR t_physical_tile_type
***************************************************************************************/
/* Headers from vtrutil libra... | 38.245763 | 113 | 0.56725 | antmicro |
9595aab15ed42cf39a5127cbad4be92dd9d9081c | 880 | cpp | C++ | Idf/model/DiagramaException.cpp | jmarranz/idf | 2b08e508e943624979cfb1fe1d559e84c0cfe8e1 | [
"MIT"
] | 1 | 2017-10-27T11:48:13.000Z | 2017-10-27T11:48:13.000Z | Idf/model/DiagramaException.cpp | jmarranz/idf | 2b08e508e943624979cfb1fe1d559e84c0cfe8e1 | [
"MIT"
] | null | null | null | Idf/model/DiagramaException.cpp | jmarranz/idf | 2b08e508e943624979cfb1fe1d559e84c0cfe8e1 | [
"MIT"
] | null | null | null | // DiagramaException.cpp: implementation of the DiagramaException class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "..\idf.h"
#include "DiagramaException.h"
#include "DiagBase.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
... | 23.783784 | 79 | 0.5375 | jmarranz |
959ba0553179756cb6956e7fad7691b3c61e99cc | 2,127 | hpp | C++ | stok_contracts/contracts/eosio.stok/include/eosio.stok/eosio.stok.hpp | eoseoul/eosio.stok | cf7bab0b8e171791e3d43fb4870bdfe7ab89fa5b | [
"MIT"
] | null | null | null | stok_contracts/contracts/eosio.stok/include/eosio.stok/eosio.stok.hpp | eoseoul/eosio.stok | cf7bab0b8e171791e3d43fb4870bdfe7ab89fa5b | [
"MIT"
] | null | null | null | stok_contracts/contracts/eosio.stok/include/eosio.stok/eosio.stok.hpp | eoseoul/eosio.stok | cf7bab0b8e171791e3d43fb4870bdfe7ab89fa5b | [
"MIT"
] | null | null | null | /**
* @file
* @copyright defined in eos/LICENSE.txt
*/
#pragma once
#include <eosio/asset.hpp>
#include <eosio/eosio.hpp>
#include <string>
namespace eosiosystem {
class system_contract;
}
namespace eosio {
using std::string;
class [[eosio::contract("eosio.stok")]] token : public contract {
pu... | 27.623377 | 105 | 0.550071 | eoseoul |
959bd41943666d4c10fe6a630a430972d04a46c5 | 2,181 | cpp | C++ | src/tests/carl-covering/Test_Heuristics.cpp | sjunges/carl | 5013c31c035990d9912a6265944e7d4add4c378b | [
"MIT"
] | 29 | 2015-05-19T12:17:16.000Z | 2021-03-05T17:53:00.000Z | src/tests/carl-covering/Test_Heuristics.cpp | sjunges/carl | 5013c31c035990d9912a6265944e7d4add4c378b | [
"MIT"
] | 36 | 2016-10-26T12:47:11.000Z | 2021-03-03T15:19:38.000Z | src/tests/carl-covering/Test_Heuristics.cpp | sjunges/carl | 5013c31c035990d9912a6265944e7d4add4c378b | [
"MIT"
] | 16 | 2015-05-27T07:35:19.000Z | 2021-03-05T17:53:08.000Z | #include <gtest/gtest.h>
#include <carl/util/Bitset.h>
#include <carl-covering/carl-covering.h>
using namespace carl::covering;
TypedSetCover<int> get_example() {
TypedSetCover<int> tsc;
tsc.set(0, carl::Bitset({1,2}));
tsc.set(1, carl::Bitset({1,2,3}));
tsc.set(2, carl::Bitset({0,4}));
tsc.set(3, carl::Bitset(... | 31.157143 | 62 | 0.685007 | sjunges |
959d81edd183bb9a596cbea777ff1aa0d4e7b3bc | 5,875 | cpp | C++ | test/test-window-function.cpp | rimio/specgram | 4b9517a148bcd6f47cc2f20a83355093811cc04b | [
"MIT"
] | 4 | 2020-12-29T21:52:57.000Z | 2022-02-07T09:44:37.000Z | test/test-window-function.cpp | rimio/specgram | 4b9517a148bcd6f47cc2f20a83355093811cc04b | [
"MIT"
] | 24 | 2020-12-29T20:23:09.000Z | 2021-11-01T14:01:20.000Z | test/test-window-function.cpp | rimio/specgram | 4b9517a148bcd6f47cc2f20a83355093811cc04b | [
"MIT"
] | 1 | 2021-09-22T12:39:59.000Z | 2021-09-22T12:39:59.000Z | /*
* Copyright (c) 2020-2021 Vasile Vilvoiu <vasi@vilvoiu.ro>
*
* specgram is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#include "test.hpp"
#include "../src/window-function.hpp"
#include <list>
static std::vector<WindowFunctionType> A... | 43.843284 | 90 | 0.573447 | rimio |
959f11821918d45c00c5103a03ebb83ccffd5747 | 5,800 | cc | C++ | RecoLocalCalo/HcalRecProducers/src/HcalSimpleReconstructor.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | RecoLocalCalo/HcalRecProducers/src/HcalSimpleReconstructor.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | RecoLocalCalo/HcalRecProducers/src/HcalSimpleReconstructor.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | #include "HcalSimpleReconstructor.h"
#include "DataFormats/Common/interface/EDCollection.h"
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include "... | 36.25 | 126 | 0.71931 | pasmuss |
959fbe1ba8b4f4b015fbaf6017fcd6bc4ef68ad6 | 2,501 | cpp | C++ | example/server_example/server_example.cpp | hbccdf/network-core | 37cbf03829bffd9c0903a1e755ce1f96f46e3dfa | [
"MIT"
] | null | null | null | example/server_example/server_example.cpp | hbccdf/network-core | 37cbf03829bffd9c0903a1e755ce1f96f46e3dfa | [
"MIT"
] | null | null | null | example/server_example/server_example.cpp | hbccdf/network-core | 37cbf03829bffd9c0903a1e755ce1f96f46e3dfa | [
"MIT"
] | null | null | null | #include <network/rpc/server.hpp>
#include <network/codec/codec.hpp>
#include <network/util/net.hpp>
#include <network/base/log.hpp>
#include <iostream>
uint16_t port = 9000;
size_t pool_size = std::thread::hardware_concurrency();
namespace client
{
int add(int a, int b)
{
return a + b;
}
voi... | 25.783505 | 146 | 0.568972 | hbccdf |
95a689c4b863d71f1f66bdafa9d52396ad7db715 | 1,150 | cpp | C++ | t/60-merged-option.cpp | ih8celery/liboptparse | 60d323718eae934be2da42a5dbf6a64cb2353966 | [
"MIT"
] | 3 | 2018-06-20T14:57:19.000Z | 2018-09-27T11:41:01.000Z | t/60-merged-option.cpp | ih8celery/libcmdparse | 60d323718eae934be2da42a5dbf6a64cb2353966 | [
"MIT"
] | null | null | null | t/60-merged-option.cpp | ih8celery/libcmdparse | 60d323718eae934be2da42a5dbf6a64cb2353966 | [
"MIT"
] | null | null | null | /**
* \file 60-merged-option.cpp
* \author Adam Marshall (ih8celery)
* \brief test the use of merged options
*/
#define WANT_TEST_EXTRAS
#include <tap++.h>
#include "cmdparse.h"
using namespace TAP;
using namespace cli;
int main() {
Command cmd;
Info info;
cmd.configure("merged_opt");
cmd.option("d|-du... | 19.491525 | 82 | 0.586957 | ih8celery |
95a769ba68b513fe11f14db4cb0888f33bed7e75 | 51 | cxx | C++ | Examples/Medical/Cxx/TestMedical1.cxx | forestGzh/VTK | bc98327275bd5cfa95c5825f80a2755a458b6da8 | [
"BSD-3-Clause"
] | 3 | 2020-06-20T23:31:06.000Z | 2021-01-11T02:17:16.000Z | Examples/Medical/Cxx/TestMedical1.cxx | Armand0s/homemade_vtk | 6bc7b595a4a7f86e8fa969d067360450fa4e0a6a | [
"BSD-3-Clause"
] | 14 | 2015-04-25T17:54:13.000Z | 2017-01-13T15:30:39.000Z | Examples/Medical/Cxx/TestMedical1.cxx | Armand0s/homemade_vtk | 6bc7b595a4a7f86e8fa969d067360450fa4e0a6a | [
"BSD-3-Clause"
] | 5 | 2015-03-23T21:13:19.000Z | 2022-01-03T11:15:39.000Z | #define main TestMedical1
#include "Medical1.cxx"
| 12.75 | 25 | 0.784314 | forestGzh |
95a8b06db8ec20151c319e31f3996d5a29473036 | 33,263 | cpp | C++ | 3dc/avp/savegame.cpp | Melanikus/AvP | 9d61eb974a23538e32bf2ef1b738643a018935a0 | [
"BSD-3-Clause"
] | null | null | null | 3dc/avp/savegame.cpp | Melanikus/AvP | 9d61eb974a23538e32bf2ef1b738643a018935a0 | [
"BSD-3-Clause"
] | null | null | null | 3dc/avp/savegame.cpp | Melanikus/AvP | 9d61eb974a23538e32bf2ef1b738643a018935a0 | [
"BSD-3-Clause"
] | null | null | null | #include "3dc.h"
#include "inline.h"
#include "module.h"
#include "strategy_def.h"
#include "gamedef.h"
#include "bh_types.h"
#include "compiled_shapes.h"
#include "dynblock.h"
#include "bh_alien.h"
#include "pvisible.h"
#include "bh_predator.h"
#include "bh_xeno.h"
#include "bh_paq.h"
#include "bh_queen.h"
#include "b... | 24.767684 | 141 | 0.759312 | Melanikus |
95ae9fea11011ae96794eb16b7cf9972115530ca | 807 | cpp | C++ | src/chapter_07_concurrency/problem_062_parallel_minmax_with_threads.cpp | rturrado/TheModernCppChallenge | 648284fb417b6aaa43c21ea2b12a5a21c8cb9269 | [
"MIT"
] | null | null | null | src/chapter_07_concurrency/problem_062_parallel_minmax_with_threads.cpp | rturrado/TheModernCppChallenge | 648284fb417b6aaa43c21ea2b12a5a21c8cb9269 | [
"MIT"
] | null | null | null | src/chapter_07_concurrency/problem_062_parallel_minmax_with_threads.cpp | rturrado/TheModernCppChallenge | 648284fb417b6aaa43c21ea2b12a5a21c8cb9269 | [
"MIT"
] | null | null | null | #include "chapter_07_concurrency/problem_062_parallel_minmax_with_threads.h"
#include "parallel_minmax.h"
#include <ostream>
#include <vector>
void problem_62_main(std::ostream& os) {
parallel_minmax(
os,
[](auto first, auto last) { return tmcppc::algorithm::thread::parallel_min(first, last); },
... | 35.086957 | 131 | 0.739777 | rturrado |
95afe1b3093151b40e79f796de05d780d4aae00e | 14,529 | cpp | C++ | gui/ctrl/std_dialogs.cpp | r3dl3g/guipp | 3d3179be3022935b46b59f1b988a029abeabfcbf | [
"MIT"
] | null | null | null | gui/ctrl/std_dialogs.cpp | r3dl3g/guipp | 3d3179be3022935b46b59f1b988a029abeabfcbf | [
"MIT"
] | null | null | null | gui/ctrl/std_dialogs.cpp | r3dl3g/guipp | 3d3179be3022935b46b59f1b988a029abeabfcbf | [
"MIT"
] | null | null | null | /**
* @copyright (c) 2016-2021 Ing. Buero Rothfuss
* Riedlinger Str. 8
* 70327 Stuttgart
* Germany
* http://www.rothfuss-web.de
*
* @author <a href="mailto:armin@rothfuss-web.de">Armin Rothfuss</a>
*
* Projec... | 40.358333 | 162 | 0.527015 | r3dl3g |
95b0af0fd0dcf58558a4436ff5802b7fae3edc04 | 79 | cpp | C++ | cppcheck/data/c_files/81.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | 2 | 2022-03-23T12:16:20.000Z | 2022-03-31T06:19:40.000Z | cppcheck/data/c_files/81.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | null | null | null | cppcheck/data/c_files/81.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | null | null | null | bool Block::IsInvisible() const
{
return bool(int(m_flags & 0x08) != 0);
}
| 15.8 | 42 | 0.632911 | awsm-research |
95b199f8eea139c6a90175606b23d966342c9f2f | 636 | cpp | C++ | ZombieDash/ZombieDash/Goodie.cpp | ioneone/UCLA-CS-32 | e95aab2b79b5a7d969815078c30d75658ea5144f | [
"MIT"
] | null | null | null | ZombieDash/ZombieDash/Goodie.cpp | ioneone/UCLA-CS-32 | e95aab2b79b5a7d969815078c30d75658ea5144f | [
"MIT"
] | null | null | null | ZombieDash/ZombieDash/Goodie.cpp | ioneone/UCLA-CS-32 | e95aab2b79b5a7d969815078c30d75658ea5144f | [
"MIT"
] | null | null | null | //
// Goodie.cpp
// ZombieDash
//
// Created by Junhong Wang on 2/23/19.
// Copyright © 2019 David Smallberg. All rights reserved.
//
#include "Goodie.h"
#include "ActorConstants.h"
Goodie::Goodie(StudentWorld *world, int iid, int levelX, int levelY)
: FlammableEnvironment(world, iid, SPRITE_WIDTH * levelX, SPRI... | 20.516129 | 121 | 0.709119 | ioneone |
95bc8f185ff138df68d758a95e1621d62a851f15 | 5,053 | cpp | C++ | src/gromacs/linearalgebra/gmx_lapack/dstein.cpp | hejamu/gromacs | 4f4b9e4b197ae78456faada74c9f4cab7d128de6 | [
"BSD-2-Clause"
] | 384 | 2015-01-02T19:44:15.000Z | 2022-03-27T15:13:15.000Z | src/gromacs/linearalgebra/gmx_lapack/dstein.cpp | hejamu/gromacs | 4f4b9e4b197ae78456faada74c9f4cab7d128de6 | [
"BSD-2-Clause"
] | 168 | 2017-05-27T14:43:32.000Z | 2021-04-12T08:07:11.000Z | src/gromacs/linearalgebra/gmx_lapack/dstein.cpp | hejamu/gromacs | 4f4b9e4b197ae78456faada74c9f4cab7d128de6 | [
"BSD-2-Clause"
] | 258 | 2015-01-19T11:19:57.000Z | 2022-03-18T08:59:52.000Z | #include <cmath>
#include "../gmx_blas.h"
#include "../gmx_lapack.h"
#include "lapack_limits.h"
#include "gromacs/utility/real.h"
void
F77_FUNC(dstein,DSTEIN)(int *n,
double *d__,
double *e,
int *m,
double *w,
int *iblock,
int *isplit,
double *z__,
int *ldz,
double *work,
int *iwork,
int *ifail,
i... | 20.131474 | 96 | 0.489016 | hejamu |
95bea8822f443def2912ca4596f097524e0502d0 | 1,155 | cpp | C++ | src/bobby/board/boardmoves.cpp | N2D4/bobby-trawler | aa2237a1cc7ef6c87c75d84baf4ea7e5ec7f1115 | [
"MIT"
] | null | null | null | src/bobby/board/boardmoves.cpp | N2D4/bobby-trawler | aa2237a1cc7ef6c87c75d84baf4ea7e5ec7f1115 | [
"MIT"
] | null | null | null | src/bobby/board/boardmoves.cpp | N2D4/bobby-trawler | aa2237a1cc7ef6c87c75d84baf4ea7e5ec7f1115 | [
"MIT"
] | null | null | null | #include "boardmoves.h"
// TODO Do we constexpr/inline this?
bool BoardMove::isPossibleFor(BoardSquare square, bool isCapture) const {
int cdif = this->to.column - this->from.column;
int rdif = this->to.row - this->from.row;
int cadif = std::abs(cdif);
int radif = std::abs(rdif);
switch (square.ty... | 33.970588 | 104 | 0.470996 | N2D4 |
95bfef10e9286bdce39c931e2902fade315dc153 | 10,022 | cpp | C++ | shrike/shrike_basicblock_handler.cpp | sporiyano/rgat | 2ed2fa42710b06054c1bc45dc3c31406b32954f9 | [
"Apache-2.0"
] | null | null | null | shrike/shrike_basicblock_handler.cpp | sporiyano/rgat | 2ed2fa42710b06054c1bc45dc3c31406b32954f9 | [
"Apache-2.0"
] | null | null | null | shrike/shrike_basicblock_handler.cpp | sporiyano/rgat | 2ed2fa42710b06054c1bc45dc3c31406b32954f9 | [
"Apache-2.0"
] | 1 | 2018-03-06T03:40:01.000Z | 2018-03-06T03:40:01.000Z | /*
Copyright 2016-2017 Nia Catlin
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | 29.650888 | 157 | 0.671024 | sporiyano |
95c56d4b9e538c5ab675fecb793a25c3ff7c09a3 | 1,222 | cpp | C++ | Concentration_Game/main.cpp | pemesteves/IEEEXtreme2019 | 3b588922d09f32820c4b386e97e6912d5f9adae9 | [
"MIT"
] | null | null | null | Concentration_Game/main.cpp | pemesteves/IEEEXtreme2019 | 3b588922d09f32820c4b386e97e6912d5f9adae9 | [
"MIT"
] | null | null | null | Concentration_Game/main.cpp | pemesteves/IEEEXtreme2019 | 3b588922d09f32820c4b386e97e6912d5f9adae9 | [
"MIT"
] | 1 | 2020-10-21T06:17:44.000Z | 2020-10-21T06:17:44.000Z | #include <iostream>
#include <string>
#include <map>
#include <sstream>
using namespace std;
typedef unsigned long ul;
int main() {
ul N; cin >> N;
map<ul, pair<ul,ul>> cards;
cerr << N << endl;
string answer;
ul r1, r2;
for (ul i = 0; i < 2*N; i+=2) {
cout << i+1 << " " <<... | 21.068966 | 73 | 0.425532 | pemesteves |
95c70abfe86f45087ff11e71a2ed265c2c81e27d | 2,730 | hh | C++ | src/GSPH/Policies/PureReplaceFieldList.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/GSPH/Policies/PureReplaceFieldList.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 17 | 2020-01-05T08:41:46.000Z | 2020-09-18T00:08:32.000Z | src/GSPH/Policies/PureReplaceFieldList.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | //---------------------------------Spheral++----------------------------------//
// PureReplaceFieldList -- replaces one fieldlists values with those of
// another specified by its key
//
// J.M. Pearl 2022
//----------------------------------------------------------------------------//
#ifnde... | 43.333333 | 225 | 0.672894 | jmikeowen |
95cb7d81d7bfdeb835c76c529c37cbd9f95d214b | 188 | hpp | C++ | Server/include/conn/Connection.hpp | BartekBanachowicz/distributed-matrix-multiplication | af9022284bc364640414973b0e6dee4b5a6373bc | [
"MIT"
] | null | null | null | Server/include/conn/Connection.hpp | BartekBanachowicz/distributed-matrix-multiplication | af9022284bc364640414973b0e6dee4b5a6373bc | [
"MIT"
] | null | null | null | Server/include/conn/Connection.hpp | BartekBanachowicz/distributed-matrix-multiplication | af9022284bc364640414973b0e6dee4b5a6373bc | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <conn/Type.hpp>
namespace mm_server::conn {
struct Connection {
Type type = Type::unassigned;
std::string address;
};
}
| 13.428571 | 37 | 0.62234 | BartekBanachowicz |
95d2b909988f13c75a4b63251cc93558d9169ef8 | 1,535 | cpp | C++ | NowCoder/884 K.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | NowCoder/884 K.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | NowCoder/884 K.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | /*************************************************************************
>>> Author: WindCry1
>>> Mail: lanceyu120@gmail.com
>>> Website: https://windcry1.com
>>> Date: 7/27/2019 3:17:08 PM
*************************************************************************/
#include<cstring>
#include<cmath>
#include<cstdio>
#i... | 20.466667 | 74 | 0.560912 | windcry1 |
95d5535cfa001fd4e859fa243fc413192a221ec9 | 5,472 | cpp | C++ | src/core/imported/rdf/rdfg/src/rdfg.cpp | GPUOpen-Drivers/pal | bcec463efe5260776d486a5e3da0c549bc0a75d2 | [
"MIT"
] | 268 | 2017-12-22T11:03:10.000Z | 2022-03-31T15:37:31.000Z | src/core/imported/rdf/rdfg/src/rdfg.cpp | GPUOpen-Drivers/pal | bcec463efe5260776d486a5e3da0c549bc0a75d2 | [
"MIT"
] | 79 | 2017-12-22T12:26:52.000Z | 2022-03-30T13:06:30.000Z | src/core/imported/rdf/rdfg/src/rdfg.cpp | GPUOpen-Drivers/pal | bcec463efe5260776d486a5e3da0c549bc0a75d2 | [
"MIT"
] | 92 | 2017-12-22T12:21:16.000Z | 2022-03-29T22:34:17.000Z | /*
***********************************************************************************************************************
*
* Copyright (c) 2021 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated ... | 32.963855 | 120 | 0.552814 | GPUOpen-Drivers |
95d98baa7b1353c2b43c127d3ab27c82591d2496 | 127 | cpp | C++ | tensorflow-yolo-ios/dependencies/eigen/doc/snippets/Cwise_times_equal.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 27 | 2017-06-07T19:07:32.000Z | 2020-10-15T10:09:12.000Z | tensorflow-yolo-ios/dependencies/eigen/doc/snippets/Cwise_times_equal.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 3 | 2017-08-25T17:39:46.000Z | 2017-11-18T03:40:55.000Z | tensorflow-yolo-ios/dependencies/eigen/doc/snippets/Cwise_times_equal.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 10 | 2017-06-16T18:04:45.000Z | 2018-07-05T17:33:01.000Z | version https://git-lfs.github.com/spec/v1
oid sha256:a4b326b5770327f2e387ada112e34935d3142a19898ce83a28cb9d9d783811e5
size 55
| 31.75 | 75 | 0.88189 | initialz |
95dcaf47120ba72e83d8015e36db5eda30da6b28 | 19,145 | cpp | C++ | src/classical/verification/unate.cpp | eletesta/cirkit | 6d0939798ea25cecf92306ce796be154139b94f5 | [
"MIT"
] | null | null | null | src/classical/verification/unate.cpp | eletesta/cirkit | 6d0939798ea25cecf92306ce796be154139b94f5 | [
"MIT"
] | null | null | null | src/classical/verification/unate.cpp | eletesta/cirkit | 6d0939798ea25cecf92306ce796be154139b94f5 | [
"MIT"
] | null | null | null | /* CirKit: A circuit toolkit
* Copyright (C) 2009-2015 University of Bremen
* Copyright (C) 2015-2017 EPFL
*
* 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, in... | 29.007576 | 132 | 0.573466 | eletesta |
95dccf4abc0c4a238e775c94dd3e3a914e273b43 | 18,950 | hh | C++ | src/QSS/EventQueue.hh | NREL/SOEP-QSS | 354df458f6eaf13e9f0271eccd747047ab4f0f71 | [
"BSD-3-Clause"
] | 13 | 2017-08-04T15:15:59.000Z | 2022-03-24T06:02:22.000Z | src/QSS/EventQueue.hh | NREL/SOEP-QSS | 354df458f6eaf13e9f0271eccd747047ab4f0f71 | [
"BSD-3-Clause"
] | 4 | 2021-08-19T01:56:30.000Z | 2021-08-23T01:41:36.000Z | src/QSS/EventQueue.hh | NREL/SOEP-QSS | 354df458f6eaf13e9f0271eccd747047ab4f0f71 | [
"BSD-3-Clause"
] | 1 | 2017-09-15T17:14:57.000Z | 2017-09-15T17:14:57.000Z | // QSS Event Queue
//
// Project: QSS Solver
//
// Developed by Objexx Engineering, Inc. (https://objexx.com) under contract to
// the National Renewable Energy Laboratory of the U.S. Department of Energy
//
// Copyright (c) 2017-2021 Objexx Engineering, Inc. All rights reserved.
//
// Redistribution and use in source ... | 23.746867 | 256 | 0.632401 | NREL |
95dfc67653c8b1d38e15cadd7b238cefebd3bf69 | 2,217 | cpp | C++ | practical_2/main.cpp | 40330977/Games_Engineering_1 | 3a01f8fb31707cdabe657a7900992b8624ec38b7 | [
"MIT"
] | null | null | null | practical_2/main.cpp | 40330977/Games_Engineering_1 | 3a01f8fb31707cdabe657a7900992b8624ec38b7 | [
"MIT"
] | null | null | null | practical_2/main.cpp | 40330977/Games_Engineering_1 | 3a01f8fb31707cdabe657a7900992b8624ec38b7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <SFML/Graphics.hpp>
#include "ship.h"
#include "bullet.h"
#include "game.h"
using namespace sf;
using namespace std;
sf::Texture spritesheet;
sf::Sprite invader;
std::vector<Ship *> ships;
Player *player = new Player();
//void Load();
//const int gameWidth = 800;
//const int gameHei... | 18.788136 | 105 | 0.644114 | 40330977 |
95e03477843c64cc266c3ed2526d625bcd91774a | 94 | cpp | C++ | cppevents/src/subject.cpp | rcktscnc/examples | e46b154eac17405a3bc8fc401150692e74559c6d | [
"MIT"
] | null | null | null | cppevents/src/subject.cpp | rcktscnc/examples | e46b154eac17405a3bc8fc401150692e74559c6d | [
"MIT"
] | null | null | null | cppevents/src/subject.cpp | rcktscnc/examples | e46b154eac17405a3bc8fc401150692e74559c6d | [
"MIT"
] | null | null | null | #include <subject.h>
util::lambda_event<std::string, const std::string&> Subject::on_request; | 31.333333 | 72 | 0.755319 | rcktscnc |
95e072ffb7f9663cf31f5b25802362e929955853 | 13,139 | cpp | C++ | src/gui/selection_details_widget/net_details_widget.cpp | citypw/hal | c906c8fc34b8623533725d240aebcbce2d5a1c68 | [
"MIT"
] | null | null | null | src/gui/selection_details_widget/net_details_widget.cpp | citypw/hal | c906c8fc34b8623533725d240aebcbce2d5a1c68 | [
"MIT"
] | null | null | null | src/gui/selection_details_widget/net_details_widget.cpp | citypw/hal | c906c8fc34b8623533725d240aebcbce2d5a1c68 | [
"MIT"
] | 1 | 2020-01-09T23:38:55.000Z | 2020-01-09T23:38:55.000Z | #include "selection_details_widget/net_details_widget.h"
#include "gui_globals.h"
#include "netlist/gate.h"
#include "netlist/module.h"
#include "netlist/net.h"
#include <QHeaderView>
#include <QLabel>
#include <QScrollArea>
#include <QTableWidget>
#include <QTableWidgetItem>
#include <QTreeWidget>
#include <QTreeWidge... | 34.216146 | 120 | 0.690464 | citypw |
95e361c29eb913675d83f9c703d85280ce907cba | 3,840 | cpp | C++ | Source/GA/GAPowerUp.cpp | JackHarb89/ga2014 | 2d63e0f423ede52071605039a64eed4db792cb43 | [
"Apache-2.0"
] | 1 | 2015-04-09T20:19:27.000Z | 2015-04-09T20:19:27.000Z | Source/GA/GAPowerUp.cpp | JackHarb89/ga2014 | 2d63e0f423ede52071605039a64eed4db792cb43 | [
"Apache-2.0"
] | null | null | null | Source/GA/GAPowerUp.cpp | JackHarb89/ga2014 | 2d63e0f423ede52071605039a64eed4db792cb43 | [
"Apache-2.0"
] | null | null | null |
#include "GA.h"
#include "GAPowerUp.h"
#include "GACharacter.h"
#include "GAAudioManager.h"
#include "Net/UnrealNetwork.h"
AGAPowerUp::AGAPowerUp(const class FPostConstructInitializeProperties& PCIP)
: Super(PCIP)
{
IsInit = false;
IsPowerUpActive = false;
EffectRadius = 1000;
IsAffectingAll =... | 27.234043 | 122 | 0.710156 | JackHarb89 |
95e4c877ac14e3130c4f114d66c53938c1b58e7a | 822 | cpp | C++ | 20. Dynamic Programming/Maximum path sum in matrix.cpp | Ujjawalgupta42/Hacktoberfest2021-DSA | eccd9352055085973e3d6a1feb10dd193905584b | [
"MIT"
] | 225 | 2021-10-01T03:09:01.000Z | 2022-03-11T11:32:49.000Z | 20. Dynamic Programming/Maximum path sum in matrix.cpp | Ujjawalgupta42/Hacktoberfest2021-DSA | eccd9352055085973e3d6a1feb10dd193905584b | [
"MIT"
] | 252 | 2021-10-01T03:45:20.000Z | 2021-12-07T18:32:46.000Z | 20. Dynamic Programming/Maximum path sum in matrix.cpp | Ujjawalgupta42/Hacktoberfest2021-DSA | eccd9352055085973e3d6a1feb10dd193905584b | [
"MIT"
] | 911 | 2021-10-01T02:55:19.000Z | 2022-02-06T09:08:37.000Z | class Solution{
public:
int maximumPath(int N, vector<vector<int>> arr)
{
// if(N==1)
// return 1;
// int dp[N][N];
// // filling first row
// for(int j=0;j<N;j++){
// dp[0][j] = arr[0][j];
// }
for(int i=1;i<N;i++){
... | 24.909091 | 80 | 0.327251 | Ujjawalgupta42 |
95e56aed7294ff1d9aba7284a122b5f4c49dfcbf | 1,308 | cc | C++ | src/abc161/f.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | src/abc161/f.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | src/abc161/f.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
// クイックソート
vector<ll> calc_divisors(ll n) {
vector<ll> res;
for(ll i = 1ll; i * i <= n; i++) {
if(n % i == 0ll) {
res.push_back(i);
if(i * i != n)
... | 19.235294 | 60 | 0.441896 | nryotaro |
95ec2f6a0c80ca2af8b13170498244e971882b85 | 4,740 | cpp | C++ | src/Bend.cpp | kant/AriaVCVModules | 9209d7b1020eda8ec3b9d9b14e179b482963ad33 | [
"WTFPL"
] | null | null | null | src/Bend.cpp | kant/AriaVCVModules | 9209d7b1020eda8ec3b9d9b14e179b482963ad33 | [
"WTFPL"
] | null | null | null | src/Bend.cpp | kant/AriaVCVModules | 9209d7b1020eda8ec3b9d9b14e179b482963ad33 | [
"WTFPL"
] | null | null | null | #include "plugin.hpp"
// Required on OSX
#include <array>
// This will contain both Bendlet and Big Bend.
/* TODO
Completely changed my mind on architecture.
Going for a super simple Bendlet + expander architecture.
Stupid idiot check
[X] Verify that pitchbend is indeed a -5~+5v signal centered on... | 31.390728 | 112 | 0.695148 | kant |
95ec3ef597e3dc9dc331389814146c340fe2ceda | 23,025 | cpp | C++ | src/3rdparty/sheets/part/Digest.cpp | afarcat/QtSheetView | 6d5ef3418238e9402c5a263a6f499557cc7215bf | [
"Apache-2.0"
] | null | null | null | src/3rdparty/sheets/part/Digest.cpp | afarcat/QtSheetView | 6d5ef3418238e9402c5a263a6f499557cc7215bf | [
"Apache-2.0"
] | null | null | null | src/3rdparty/sheets/part/Digest.cpp | afarcat/QtSheetView | 6d5ef3418238e9402c5a263a6f499557cc7215bf | [
"Apache-2.0"
] | null | null | null | /*************************************************************************
* This implementation has been taken from the OpenOffice 1.0 and modified
* to use Calligra Sheets data types.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
*
* Sun has made the contents of this file available... | 27.607914 | 106 | 0.587926 | afarcat |
95ec51983ce99aaaf24d5de3db3adf3945136adc | 1,220 | cpp | C++ | src/euler/046.cpp | mikf/euler | 2d202c51518b9383731417ffc70cfb71980b1822 | [
"Unlicense"
] | 1 | 2015-04-11T20:52:30.000Z | 2015-04-11T20:52:30.000Z | src/euler/046.cpp | mikf/euler | 2d202c51518b9383731417ffc70cfb71980b1822 | [
"Unlicense"
] | null | null | null | src/euler/046.cpp | mikf/euler | 2d202c51518b9383731417ffc70cfb71980b1822 | [
"Unlicense"
] | null | null | null | #include "euler.h"
#include "math/primes.h"
#include "util/range.h"
#include <array>
using namespace util;
using namespace math;
// It was proposed by Christian Goldbach that every odd composite number can be
// written as the sum of a prime and twice a square.
//
// 9 = 7 + 2 × 1^2
// 15 = 7 + 2 × 2^2
//... | 20.677966 | 79 | 0.527869 | mikf |
95ecda8aca6846c47981609cdaac10e2d3d768ed | 166 | cc | C++ | build/x86/python/m5/internal/param_InvalidateGenerator.i_init.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | build/x86/python/m5/internal/param_InvalidateGenerator.i_init.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | 1 | 2020-08-20T05:53:30.000Z | 2020-08-20T05:53:30.000Z | build/X86_MESI_Two_Level/python/m5/internal/param_InvalidateGenerator.i_init.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
extern "C" {
void init_param_InvalidateGenerator();
}
EmbeddedSwig embed_swig_param_InvalidateGenerator(init_param_InvalidateGenerator);
| 20.75 | 82 | 0.813253 | billionshang |
95ed620dedca8c3757674b9d11e426bf4fb8c919 | 5,478 | hpp | C++ | include/assets/metadata/MeshMetadata.hpp | manvis/IYFEngine | 741a8d0dcc9b3e3ff8a8adb92850633523516604 | [
"BSD-3-Clause"
] | 5 | 2018-07-03T17:05:43.000Z | 2020-02-03T00:23:46.000Z | include/assets/metadata/MeshMetadata.hpp | manvis/IYFEngine | 741a8d0dcc9b3e3ff8a8adb92850633523516604 | [
"BSD-3-Clause"
] | null | null | null | include/assets/metadata/MeshMetadata.hpp | manvis/IYFEngine | 741a8d0dcc9b3e3ff8a8adb92850633523516604 | [
"BSD-3-Clause"
] | null | null | null | // The IYFEngine
//
// Copyright (C) 2015-2018, Manvydas Šliamka
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
// condi... | 38.307692 | 108 | 0.654984 | manvis |
95ed9754d17e7d6dc79ae61030a5221c618e13f2 | 6,698 | hh | C++ | gunns-ts-models/common/controllers/fluid/test/UtTsDualSolenoidValveController.hh | nasa/gunns | 248323939a476abe5178538cd7a3512b5f42675c | [
"NASA-1.3"
] | 18 | 2020-01-23T12:14:09.000Z | 2022-02-27T22:11:35.000Z | gunns-ts-models/common/controllers/fluid/test/UtTsDualSolenoidValveController.hh | nasa/gunns | 248323939a476abe5178538cd7a3512b5f42675c | [
"NASA-1.3"
] | 39 | 2020-11-20T12:19:35.000Z | 2022-02-22T18:45:55.000Z | gunns-ts-models/common/controllers/fluid/test/UtTsDualSolenoidValveController.hh | nasa/gunns | 248323939a476abe5178538cd7a3512b5f42675c | [
"NASA-1.3"
] | 7 | 2020-02-10T19:25:43.000Z | 2022-03-16T01:10:00.000Z | #ifndef UtTsDualSolenoidValveController_EXISTS
#define UtTsDualSolenoidValveController_EXISTS
////////////////////////////////////////////////////////////////////////////////////////////////////
/// @defgroup UT_TSM_CONTROLLERS_TsDualSolenoidValveController Dual Solenoid Valve Controller Unit Tests
/// @ingroup UT... | 57.741379 | 124 | 0.535234 | nasa |
95f126b7246e8e060d8c92783e8a66ed6839b1d4 | 2,380 | cpp | C++ | src/Discovery.cpp | moostrik/ofxVimba | ba34a2da27eb4d1fe418e27b29889fb71351cf02 | [
"MIT"
] | null | null | null | src/Discovery.cpp | moostrik/ofxVimba | ba34a2da27eb4d1fe418e27b29889fb71351cf02 | [
"MIT"
] | null | null | null | src/Discovery.cpp | moostrik/ofxVimba | ba34a2da27eb4d1fe418e27b29889fb71351cf02 | [
"MIT"
] | 1 | 2022-01-28T15:49:19.000Z | 2022-01-28T15:49:19.000Z | #include "Discovery.h"
using namespace ofxVimba;
Discovery::Discovery() : logger("Discovery"), system(System::getInstance()){};
Discovery::~Discovery() { stop(); }
bool Discovery::start() {
if (!SP_ISNULL(observer)) return true;
if (!system->isAvailable()) {
logger.error("Failed to set up discovery, system u... | 27.356322 | 78 | 0.680252 | moostrik |
95f2e59cb10f0abbdb9086c92fdbcd7542559025 | 3,075 | cc | C++ | atmosphere/measurement/measured_atmosphere_test.cc | IanMaquignaz/clear-sky-models | a8168f6b17b817c0fd76eb819f01a75be728f3b8 | [
"BSD-3-Clause"
] | 78 | 2016-12-28T05:05:03.000Z | 2022-03-21T21:54:44.000Z | atmosphere/measurement/measured_atmosphere_test.cc | IanMaquignaz/clear-sky-models | a8168f6b17b817c0fd76eb819f01a75be728f3b8 | [
"BSD-3-Clause"
] | 4 | 2017-11-25T00:34:19.000Z | 2020-09-30T13:02:27.000Z | atmosphere/measurement/measured_atmosphere_test.cc | IanMaquignaz/clear-sky-models | a8168f6b17b817c0fd76eb819f01a75be728f3b8 | [
"BSD-3-Clause"
] | 22 | 2017-04-25T14:36:06.000Z | 2022-03-21T21:54:58.000Z | /**
Copyright (c) 2015 Eric Bruneton
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 notice, this
list of conditions and the follo... | 45.895522 | 79 | 0.734959 | IanMaquignaz |
95faee859565f8a2e2c842a4d496215c35e5b893 | 25,438 | cpp | C++ | rapp_path_planning/rapp_path_planning/src/path_planner.cpp | DEVX1/NAOrapp-Pythonlib | d07d7fe304556cad24e7e138df4e41376eacb6a7 | [
"Apache-2.0"
] | null | null | null | rapp_path_planning/rapp_path_planning/src/path_planner.cpp | DEVX1/NAOrapp-Pythonlib | d07d7fe304556cad24e7e138df4e41376eacb6a7 | [
"Apache-2.0"
] | null | null | null | rapp_path_planning/rapp_path_planning/src/path_planner.cpp | DEVX1/NAOrapp-Pythonlib | d07d7fe304556cad24e7e138df4e41376eacb6a7 | [
"Apache-2.0"
] | null | null | null | #include <path_planning/path_planning.h>
PathPlanner::PathPlanner(void)
{
}
// set next planning sequence ID
std::string PathPlanner::setSequenceNR(ros::NodeHandle &nh_, int pathPlanningThreads_){
int seq_nr_int=1;
std::string seq_nr_str;
if (nh_.hasParam("/rapp/rapp_path_planning/last_seq")){
nh_.getParam... | 51.914286 | 326 | 0.565217 | DEVX1 |
2501ab5ba286ec1983407e0257a9a59a3be056b0 | 355 | hpp | C++ | Code/include/OE/Misc/MatrixStack.hpp | mlomb/OrbitEngine | 41f053626f05782e81c2e48f5c87b04972f9be2c | [
"Apache-2.0"
] | 21 | 2018-06-26T16:37:36.000Z | 2022-01-11T01:19:42.000Z | Code/include/OE/Misc/MatrixStack.hpp | mlomb/OrbitEngine | 41f053626f05782e81c2e48f5c87b04972f9be2c | [
"Apache-2.0"
] | null | null | null | Code/include/OE/Misc/MatrixStack.hpp | mlomb/OrbitEngine | 41f053626f05782e81c2e48f5c87b04972f9be2c | [
"Apache-2.0"
] | 3 | 2019-10-01T14:10:50.000Z | 2021-11-19T20:30:18.000Z | #ifndef MISC_MAXTRIX_STACK_HPP
#define MISC_MAXTRIX_STACK_HPP
#include "OE/Misc/BaseStack.hpp"
#include "OE/Math/Mat4.hpp"
namespace OrbitEngine { namespace Misc {
class MatrixStack : public BaseStack<Math::Mat4> {
protected:
Math::Mat4 nextStack(const Math::Mat4& old, const Math::Mat4& added) override {
retur... | 22.1875 | 81 | 0.732394 | mlomb |
2504c1b82713e4a3e41321d0090575c5da771c5a | 2,639 | hpp | C++ | libbrufs/include/BuildInfo.hpp | cmpsb/brufs | 83a9cc296653f99042190e968a1499b3191dc8d2 | [
"MIT"
] | null | null | null | libbrufs/include/BuildInfo.hpp | cmpsb/brufs | 83a9cc296653f99042190e968a1499b3191dc8d2 | [
"MIT"
] | null | null | null | libbrufs/include/BuildInfo.hpp | cmpsb/brufs | 83a9cc296653f99042190e968a1499b3191dc8d2 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2017-2018 Luc Everse <luc@wukl.net>
*
* 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... | 31.416667 | 95 | 0.687761 | cmpsb |
25082270c7544b1f5f851861b7ba42e440180e9d | 506 | cpp | C++ | Cpp/1642.furthest-buiding-you-can-reach.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | 1 | 2015-12-19T23:05:35.000Z | 2015-12-19T23:05:35.000Z | Cpp/1642.furthest-buiding-you-can-reach.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | null | null | null | Cpp/1642.furthest-buiding-you-can-reach.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | null | null | null | class Solution {
public:
int furthestBuilding(vector<int>& heights, int bricks, int ladders) {
priority_queue<int, vector<int>, greater<int>> pq;
for (int i = 0; i < heights.size()-1; ++i) {
int diff = heights[i+1] - heights[i];
if (diff > 0) pq.push(diff);
if (pq... | 31.625 | 73 | 0.472332 | zszyellow |
25086c8647ad5945c4095538770a4f18427f0835 | 5,278 | cc | C++ | src/exapi/okex/RestRequest.cc | XFone/exapi | 05660e8b27dfa75aa0996342ee5b6b253b09c477 | [
"Apache-2.0"
] | 1 | 2020-04-11T06:06:40.000Z | 2020-04-11T06:06:40.000Z | src/exapi/okex/RestRequest.cc | XFone/exapi | 05660e8b27dfa75aa0996342ee5b6b253b09c477 | [
"Apache-2.0"
] | null | null | null | src/exapi/okex/RestRequest.cc | XFone/exapi | 05660e8b27dfa75aa0996342ee5b6b253b09c477 | [
"Apache-2.0"
] | null | null | null | /*
* $Id: $
*
* RestRequest class implementation for OKex
*
* Copyright (c) 2014-2018 Zerone.IO . All rights reserved.
*
* $Log: $
*
*/
#include "Base.h"
#include "Log.h"
#include "Trace.h"
#include "DumpFunc.h"
#include "JsonUtils.h"
#include "HttpRestClient.h"
#include "detail/RestClientImpl_restbed.ipp"
... | 29.819209 | 124 | 0.616142 | XFone |
25131105a35af07b15da8a84e14c0c77966ac966 | 951 | hh | C++ | CaloReco/inc/CaloPulseCache.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 1 | 2021-06-25T00:00:12.000Z | 2021-06-25T00:00:12.000Z | CaloReco/inc/CaloPulseCache.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 1 | 2019-11-22T14:45:51.000Z | 2019-11-22T14:50:03.000Z | CaloReco/inc/CaloPulseCache.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 2 | 2019-10-14T17:46:58.000Z | 2020-03-30T21:05:15.000Z | #ifndef CaloPulseCache_HH
#define CaloPulseCache_HH
#include "ConditionsService/inc/CalorimeterCalibrations.hh"
#include <vector>
#include <string>
namespace mu2e {
class CaloPulseCache {
public:
CaloPulseCache();
~CaloPulseCache() {};
void initialize();
double eval... | 23.195122 | 74 | 0.504732 | bonventre |
2515e6be572b70e77fa5b63453caeb2d6fe283de | 1,216 | cpp | C++ | src/sampapi/0.3.7-R3-1/CAudio.cpp | kin4stat/SAMP-API | 94eb9a0d8218038b7ea0c1132e37b6420e576dbf | [
"MIT"
] | 25 | 2020-01-02T06:13:58.000Z | 2022-03-15T12:23:04.000Z | src/sampapi/0.3.7-R3-1/CAudio.cpp | kin4stat/SAMP-API | 94eb9a0d8218038b7ea0c1132e37b6420e576dbf | [
"MIT"
] | null | null | null | src/sampapi/0.3.7-R3-1/CAudio.cpp | kin4stat/SAMP-API | 94eb9a0d8218038b7ea0c1132e37b6420e576dbf | [
"MIT"
] | 29 | 2019-07-07T15:37:03.000Z | 2022-02-23T18:36:16.000Z | /*
This is a SAMP (0.3.7-R3) API project file.
Developer: LUCHARE <luchare.dev@gmail.com>
See more here https://github.com/LUCHARE/SAMP-API
Copyright (c) 2018 BlastHack Team <BlastHack.Net>. All rights reserved.
*/
#include "sampapi/0.3.7-R3-1/CAudio.h"
SAMPAPI_BEGIN_V037R3_1
int CAudio::GetRadioStation() {
... | 25.87234 | 92 | 0.708882 | kin4stat |
25161296d9797000ef0ce7470c3df6f98ec192cc | 1,284 | cpp | C++ | SLL/base.cpp | ddeflyer/CodeExamples | 5f8951f394025c263a5090f4c9c6e88026a571b2 | [
"Apache-2.0"
] | null | null | null | SLL/base.cpp | ddeflyer/CodeExamples | 5f8951f394025c263a5090f4c9c6e88026a571b2 | [
"Apache-2.0"
] | null | null | null | SLL/base.cpp | ddeflyer/CodeExamples | 5f8951f394025c263a5090f4c9c6e88026a571b2 | [
"Apache-2.0"
] | null | null | null | #include "base.hpp"
#include <iostream>
template <typename T> void SinglyLinkedList<T>::pretty_print()
{
std::shared_ptr<typename SinglyLinkedList<T>::element> curr_ele = this->head;
while (curr_ele) {
std::cout << curr_ele->value << "\n";
curr_ele = curr_ele->next;
}
}
template <typename T> void S... | 22.526316 | 79 | 0.665109 | ddeflyer |
2516ad3d1194bd8d58f3a29208c424cacc6b11bb | 405 | cpp | C++ | source/sdl2/OUI_SDL_Image.cpp | nik-m2/OUI-engine | 526ebf38831682111696f585727bd3e66d7228ff | [
"MIT"
] | null | null | null | source/sdl2/OUI_SDL_Image.cpp | nik-m2/OUI-engine | 526ebf38831682111696f585727bd3e66d7228ff | [
"MIT"
] | null | null | null | source/sdl2/OUI_SDL_Image.cpp | nik-m2/OUI-engine | 526ebf38831682111696f585727bd3e66d7228ff | [
"MIT"
] | null | null | null | #include "sdl2/OUI_SDL_Image.h"
#include <SDL_image.h>
#include <iostream>
#include "util/OUI_StringUtil.h"
oui::SDLImage::~SDLImage() {
SDL_DestroyTexture(baseImage);
}
oui::SDLImage::SDLImage(SDL_Texture* baseImage) {
this->baseImage = baseImage;
SDL_QueryTexture(baseImage, NULL, NULL, &this->width, &th... | 22.5 | 73 | 0.718519 | nik-m2 |
2516ec480e66bb2f10d8984dcbe30143d50a2130 | 65 | cpp | C++ | Source/RTS/Plugins/RTSPlugin/Source/RTSPlugin/Private/RTSFloatingCombatTextData.cpp | ajbetteridge/ue4-rts | d7923fa694f6b6a04d8301a65019f85512fcb359 | [
"MIT"
] | 3 | 2020-08-24T03:36:07.000Z | 2021-12-28T03:40:02.000Z | Source/RTS/Plugins/RTSPlugin/Source/RTSPlugin/Private/RTSFloatingCombatTextData.cpp | ajbetteridge/ue4-rts | d7923fa694f6b6a04d8301a65019f85512fcb359 | [
"MIT"
] | null | null | null | Source/RTS/Plugins/RTSPlugin/Source/RTSPlugin/Private/RTSFloatingCombatTextData.cpp | ajbetteridge/ue4-rts | d7923fa694f6b6a04d8301a65019f85512fcb359 | [
"MIT"
] | 1 | 2019-10-20T10:08:29.000Z | 2019-10-20T10:08:29.000Z | #include "RTSPluginPCH.h"
#include "RTSFloatingCombatTextData.h"
| 21.666667 | 38 | 0.815385 | ajbetteridge |
2518b47eee18e22b4b8c2914ad012ed02e8387e6 | 956 | cpp | C++ | src/ntfs_streams/shaker.cpp | shtirlitz-dev/ntfs_file_stream | a537efcf7e6ec9b8807c74d3bea2c82a4255719c | [
"MIT"
] | 2 | 2020-02-25T11:00:47.000Z | 2021-12-30T11:44:04.000Z | src/ntfs_streams/shaker.cpp | shtirlitz-dev/ntfs_file_stream | a537efcf7e6ec9b8807c74d3bea2c82a4255719c | [
"MIT"
] | null | null | null | src/ntfs_streams/shaker.cpp | shtirlitz-dev/ntfs_file_stream | a537efcf7e6ec9b8807c74d3bea2c82a4255719c | [
"MIT"
] | null | null | null | #include "pch.h"
#include "shaker.h"
#include <utility>
Shaker::Shaker(const uint8_t* key20)
{
for (int i = 0; i < 32; ++i)
enc_seq[i] = i;
// shuffle
uint8_t k; // current key byte
int bits = 0; // remaining bits in k;
for (int i = 0; i < 32; ++i) {
int n = 0;
if (bits >= 5) {
n = k;
k >>= 5;
b... | 18.037736 | 80 | 0.533473 | shtirlitz-dev |
2519ccf5e254205ab5d2bc97f14a12a5c01e82b7 | 213 | cpp | C++ | fcpp/palindromes_count1.cpp | iddoroshenko/Team-Reference-document-ICPC-2019 | 6c2146e2598ccf91d556201c4672063344ba0aae | [
"MIT"
] | null | null | null | fcpp/palindromes_count1.cpp | iddoroshenko/Team-Reference-document-ICPC-2019 | 6c2146e2598ccf91d556201c4672063344ba0aae | [
"MIT"
] | null | null | null | fcpp/palindromes_count1.cpp | iddoroshenko/Team-Reference-document-ICPC-2019 | 6c2146e2598ccf91d556201c4672063344ba0aae | [
"MIT"
] | 1 | 2020-01-10T19:53:06.000Z | 2020-01-10T19:53:06.000Z | vector<int> d1 (n);
int l=0, r=-1;
for (int i=0; i<n; ++i) {
int k = (i>r ? 0 : min (d1[l+r-i], r-i)) + 1;
while (i+k < n && i-k >= 0 && s[i+k] == s[i-k]) ++k;
d1[i] = k--;
if (i+k > r)
l = i-k, r = i+k;
} | 23.666667 | 54 | 0.380282 | iddoroshenko |
251a84bc2c2cb33ed6f6a5d7b69931cd1d55a0c5 | 1,411 | cpp | C++ | dbswznm/WznmMRtblock_vecs.cpp | mpsitech/wznm-WhizniumSBE | 4911d561b28392d485c46e98fb915168d82b3824 | [
"MIT"
] | 3 | 2020-09-20T16:24:48.000Z | 2021-12-01T19:44:51.000Z | dbswznm/WznmMRtblock_vecs.cpp | mpsitech/wznm-WhizniumSBE | 4911d561b28392d485c46e98fb915168d82b3824 | [
"MIT"
] | null | null | null | dbswznm/WznmMRtblock_vecs.cpp | mpsitech/wznm-WhizniumSBE | 4911d561b28392d485c46e98fb915168d82b3824 | [
"MIT"
] | null | null | null | /**
* \file WznmMRtblock_vecs.cpp
* database access for table TblWznmMRtblock (implementation of vectors)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Alexander Wirthmueller (auto-generation)
* \date created: 5 Dec 2020
*/
// IP header --- ABOVE
using namespace std;
using namespace Sbecore;
using... | 22.758065 | 106 | 0.577605 | mpsitech |
251dc29c00f5b3abf7905aade89d2f91a13a8eea | 1,907 | hxx | C++ | include/rrwindows/wnet/windows_networking.hxx | afoolsbag/rrCnCxx | 1e673bd4edac43d8406a0c726138cba194d17f48 | [
"Unlicense"
] | 2 | 2019-03-20T01:14:10.000Z | 2021-12-08T15:39:32.000Z | include/rrwindows/wnet/windows_networking.hxx | afoolsbag/rrCnCxx | 1e673bd4edac43d8406a0c726138cba194d17f48 | [
"Unlicense"
] | null | null | null | include/rrwindows/wnet/windows_networking.hxx | afoolsbag/rrCnCxx | 1e673bd4edac43d8406a0c726138cba194d17f48 | [
"Unlicense"
] | null | null | null | //===-- Windows Networking --------------------------------------*- C++ -*-===//
///
/// \file
/// \brief Windows 网络。
///
/// \sa <https://docs.microsoft.com/windows/win32/wnet/windows-networking-wnet->
///
/// \version 2019-07-08
/// \since 2018-02-23
/// \authors zhengrr
/// \copyright Unlicense
///
//===------------... | 46.512195 | 231 | 0.722601 | afoolsbag |
2520ed840bbe7ea76ba22ed5ff776b592118b930 | 6,320 | cpp | C++ | tests/gvar/src_pers/PersTst_src.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 13 | 2015-02-26T22:46:18.000Z | 2020-03-24T11:53:06.000Z | tests/gvar/src_pers/PersTst_src.cpp | PacificBiosciences/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 5 | 2016-02-25T17:08:19.000Z | 2018-01-20T15:24:36.000Z | tests/gvar/src_pers/PersTst_src.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 12 | 2015-04-13T21:39:54.000Z | 2021-01-15T01:00:13.000Z | #include "Ht.h"
#include "PersTst.h"
// Test global variable references
// Test 1R/1W (same module)
// 1. tst: MifWr+InstRd (tst)
// 2. tst: InstWr+InstRd (tst)
// 3. tst: MifWr+InstRd (tst3)
// 4. tst: InstWr+InstRd (tst3)
// Test... | 37.176471 | 72 | 0.559019 | TonyBrewer |
25302d625293e3357e779dce8e54237f98337450 | 10,075 | cc | C++ | test/test_ampfat.cc | Ampless/afat | 23c76c28e85941cb26d8e6ec5a12a407fa96e7b9 | [
"BSD-3-Clause"
] | null | null | null | test/test_ampfat.cc | Ampless/afat | 23c76c28e85941cb26d8e6ec5a12a407fa96e7b9 | [
"BSD-3-Clause"
] | null | null | null | test/test_ampfat.cc | Ampless/afat | 23c76c28e85941cb26d8e6ec5a12a407fa96e7b9 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2012-2013, Nathan Dumont
* Copyright (c) 2021, Chris Häußler
* 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 ... | 34.268707 | 121 | 0.544318 | Ampless |
2530948c30a58f72cc1b3a3bd113ffce47d81109 | 4,243 | cpp | C++ | src/UiCtlPanelIcon.cpp | codenamecpp/GrimLandsKeeper | a2207e2a459a254cbc703306ef92a09ecf714090 | [
"MIT"
] | 14 | 2020-06-27T18:51:41.000Z | 2022-03-30T18:20:02.000Z | src/UiCtlPanelIcon.cpp | codenamecpp/GLKeeper | a2207e2a459a254cbc703306ef92a09ecf714090 | [
"MIT"
] | 1 | 2020-06-07T09:48:11.000Z | 2020-06-07T09:48:11.000Z | src/UiCtlPanelIcon.cpp | codenamecpp/GrimLandsKeeper | a2207e2a459a254cbc703306ef92a09ecf714090 | [
"MIT"
] | 2 | 2020-08-27T09:38:10.000Z | 2021-08-12T01:17:30.000Z | #include "pch.h"
#include "UiCtlPanelIcon.h"
#include "GuiButton.h"
#include "GuiWidget.h"
#include "GuiEvent.h"
#include "GuiHelpers.h"
#include "GuiPictureBox.h"
#include "TexturesManager.h"
#include "ScenarioDefs.h"
UiCtlPanelIcon::UiCtlPanelIcon(GuiWidget* control)
: mControl(control)
{
debug_... | 24.812865 | 111 | 0.650955 | codenamecpp |
2538ad693284afde82b730d555e1d289f6293119 | 2,523 | cpp | C++ | Libs/Widgets/ctkCheckableComboBoxEventPlayer.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 515 | 2015-01-13T05:42:10.000Z | 2022-03-29T03:10:01.000Z | Libs/Widgets/ctkCheckableComboBoxEventPlayer.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 425 | 2015-01-06T05:28:38.000Z | 2022-03-08T19:42:18.000Z | Libs/Widgets/ctkCheckableComboBoxEventPlayer.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 341 | 2015-01-08T06:18:17.000Z | 2022-03-29T21:47:49.000Z | /*=========================================================================
Library: CTK
Copyright (c) Kitware 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.ap... | 30.768293 | 88 | 0.550535 | kraehlit |