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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
36678073975dc73c6804ed2c9a56ebf006b42802 | 840 | cpp | C++ | copyconst2.cpp | maansisrivastava/Practice-code-C- | 23f8c3798c15725bf14bb1215c01e7ad857a11b6 | [
"MIT"
] | null | null | null | copyconst2.cpp | maansisrivastava/Practice-code-C- | 23f8c3798c15725bf14bb1215c01e7ad857a11b6 | [
"MIT"
] | null | null | null | copyconst2.cpp | maansisrivastava/Practice-code-C- | 23f8c3798c15725bf14bb1215c01e7ad857a11b6 | [
"MIT"
] | null | null | null | #include<iostream>
#include<conio.h>
using namespace std;
class inte
{
public:
int m;
public:
inte(inte &i);
inte(int x)
{
m=x;
}
void show()
{
... | 23.333333 | 36 | 0.204762 | maansisrivastava |
3667da790b0729903f6897de14053076ab5d0bb7 | 2,015 | cpp | C++ | arch/platform/platform-x86_64.cpp | IGR2014/kernale | a8b43cf7d89c3d92b14ffdb88683023048f4bf78 | [
"MIT"
] | 4 | 2019-08-09T09:20:40.000Z | 2021-09-10T00:59:30.000Z | arch/platform/platform-x86_64.cpp | IGR2014/kernale | a8b43cf7d89c3d92b14ffdb88683023048f4bf78 | [
"MIT"
] | 12 | 2017-10-24T14:22:46.000Z | 2020-07-17T16:20:39.000Z | arch/platform/platform-x86_64.cpp | IGR2014/kernale | a8b43cf7d89c3d92b14ffdb88683023048f4bf78 | [
"MIT"
] | 1 | 2019-08-01T07:49:36.000Z | 2019-08-01T07:49:36.000Z | ////////////////////////////////////////////////////////////////
//
// Platform description for x86_64
//
// File: platform-x86_64.cpp
// Date: 24 Sep 2021
//
// Copyright (c) 2017 - 2021, Igor Baklykov
// All rights reserved.
//
//
#include <platform.hpp>
#include <arch/x86_64/types.hpp>
#include <a... | 20.353535 | 74 | 0.636228 | IGR2014 |
366b7c8e205c89332ae99e76b0b21345896461b8 | 3,366 | cpp | C++ | src/kernel.cpp | Codesmith512/Apex | c230c53ab8f32a5371dcf7b40d25fa9fbb85ac6b | [
"MIT"
] | 1 | 2021-04-01T09:34:26.000Z | 2021-04-01T09:34:26.000Z | src/kernel.cpp | Codesmith512/Apex | c230c53ab8f32a5371dcf7b40d25fa9fbb85ac6b | [
"MIT"
] | null | null | null | src/kernel.cpp | Codesmith512/Apex | c230c53ab8f32a5371dcf7b40d25fa9fbb85ac6b | [
"MIT"
] | null | null | null | /* Kernel */
#include "mem_manager"
#include "multiboot2"
#include "page_manager"
#include "pic"
#include "ports"
#include "interrupts"
/* IO */
#include <keyboard>
#include <vga_screen>
/* STL */
#include <array>
#include <std_external>
#include <tuple>
#include <vector>
/* APEX */
#include <helpers>
#include <stac... | 24.391304 | 106 | 0.656269 | Codesmith512 |
36752084da4967101bdfdc135f6aea986d786708 | 1,683 | cpp | C++ | email/src/gid.cpp | christophebedard/rmw_email | c0110b6fc6a61f389ec58f54496c39f6026a4a13 | [
"Apache-2.0"
] | 14 | 2021-09-19T02:04:37.000Z | 2022-02-24T08:15:50.000Z | email/src/gid.cpp | christophebedard/rmw_email | c0110b6fc6a61f389ec58f54496c39f6026a4a13 | [
"Apache-2.0"
] | 5 | 2021-09-18T23:50:02.000Z | 2022-02-21T14:44:49.000Z | email/src/gid.cpp | christophebedard/rmw_email | c0110b6fc6a61f389ec58f54496c39f6026a4a13 | [
"Apache-2.0"
] | 2 | 2021-09-20T13:56:38.000Z | 2021-12-10T09:00:24.000Z | // Copyright 2021 Christophe Bedard
//
// 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 ... | 21.0375 | 80 | 0.714201 | christophebedard |
3679b029f1751825abfbe164b306c33b1f00a4be | 11,895 | hpp | C++ | private/inc/rtprocessingfwx/IasAudioChannelBundle.hpp | juimonen/SmartXbar | 033f521a5dba5bce5e097df9c98af5b2cc2636dd | [
"BSD-3-Clause"
] | 5 | 2018-11-05T07:37:58.000Z | 2022-03-04T06:40:09.000Z | private/inc/rtprocessingfwx/IasAudioChannelBundle.hpp | juimonen/SmartXbar | 033f521a5dba5bce5e097df9c98af5b2cc2636dd | [
"BSD-3-Clause"
] | null | null | null | private/inc/rtprocessingfwx/IasAudioChannelBundle.hpp | juimonen/SmartXbar | 033f521a5dba5bce5e097df9c98af5b2cc2636dd | [
"BSD-3-Clause"
] | 7 | 2018-12-04T07:32:19.000Z | 2021-02-17T11:28:28.000Z | /*
* Copyright (C) 2018 Intel Corporation.All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @file IasAudioChannelBundle.hpp
* @date 2012
* @brief The definition of the IasAudioChannelBundle class.
*/
#ifndef IASAUDIOCHANNELBUNDLE_HPP_
#define IASAUDIOCHANNELBUNDLE_HPP_
#include "aud... | 47.390438 | 144 | 0.707524 | juimonen |
3679f439012e51728095825be0d272517e71bc36 | 2,896 | cpp | C++ | Chapter06-game-object/player_ship.cpp | focusright/Hands-On-Game-Development-with-WebAssembly | 8b5d5f58e91b3477109caf8dd923ab9f1c8bac4a | [
"MIT"
] | 71 | 2019-05-13T23:30:39.000Z | 2022-03-08T15:28:20.000Z | Chapter06-game-object/player_ship.cpp | focusright/Hands-On-Game-Development-with-WebAssembly | 8b5d5f58e91b3477109caf8dd923ab9f1c8bac4a | [
"MIT"
] | 4 | 2019-10-20T19:18:04.000Z | 2021-01-15T15:41:53.000Z | Chapter06-game-object/player_ship.cpp | focusright/Hands-On-Game-Development-with-WebAssembly | 8b5d5f58e91b3477109caf8dd923ab9f1c8bac4a | [
"MIT"
] | 23 | 2019-05-10T14:25:59.000Z | 2021-10-03T07:19:28.000Z | #include "game.hpp"
PlayerShip::PlayerShip() {
m_X = 160.0;
m_Y = 100.0;
m_Rotation = PI;
m_DX = 0.0;
m_DY = 1.0;
m_VX = 0.0;
m_VY = 0.0;
m_LastLaunchTime = current_time;
SDL_Surface *temp_surface = IMG_Load( c_SpriteFile );
if( !temp_surface ) {
printf("failed... | 20.539007 | 77 | 0.541091 | focusright |
367c5ff01773ddd2658478b32871cdb49b71c119 | 651 | cpp | C++ | oop_ex33.cpp | 85105/HW | 2161a1a7ac1082a85454672d359c00f2d42ef21f | [
"MIT"
] | null | null | null | oop_ex33.cpp | 85105/HW | 2161a1a7ac1082a85454672d359c00f2d42ef21f | [
"MIT"
] | null | null | null | oop_ex33.cpp | 85105/HW | 2161a1a7ac1082a85454672d359c00f2d42ef21f | [
"MIT"
] | null | null | null | /*
cpp_ex33.cpp
Using call by reference to return multiple values
*/
#include <iostream>
using namespace std;
void fourop(const double& x, const double& y, double& a, double& s, double& m, double& d)
{
a = x + y;
s = x - y;
m = x * y;
d = x / y;
//x = y;
}
void main()
{
cout << "Please enter two numbers:" ... | 15.878049 | 89 | 0.483871 | 85105 |
367cded62f280bb284ced6066b4da0056f2f9e67 | 25,321 | cpp | C++ | inc/control.cpp | HiSER/LCD-SSD1963-TOUCH | a2e4f51789710f5dbed00495b7306de376e0b5dc | [
"MIT"
] | null | null | null | inc/control.cpp | HiSER/LCD-SSD1963-TOUCH | a2e4f51789710f5dbed00495b7306de376e0b5dc | [
"MIT"
] | null | null | null | inc/control.cpp | HiSER/LCD-SSD1963-TOUCH | a2e4f51789710f5dbed00495b7306de376e0b5dc | [
"MIT"
] | null | null | null | /**
* HiSER (c)2018 Litvin Artem Vasilyevich
* Date 31.08.2019
* hiser@mail.ru, +79130258565
* License MIT
*/
#include <control.hpp>
#include <lcd.hpp>
CONTROL::CONTROL(tArea* area, bool visible, bool group, bool background, bool events)
{
child = NULL;
childCount = 0;
me.x = 0;
me.y = 0;
me.width = 100;
m... | 19.552896 | 158 | 0.606888 | HiSER |
367d0c71430acdcf2a9f99dead7c1d56b3622f31 | 1,062 | hpp | C++ | include/natalie/managed_vector.hpp | philberty/natalie | 8c10132a07fa2cdd23dc718dbc8020079a8df130 | [
"MIT"
] | null | null | null | include/natalie/managed_vector.hpp | philberty/natalie | 8c10132a07fa2cdd23dc718dbc8020079a8df130 | [
"MIT"
] | null | null | null | include/natalie/managed_vector.hpp | philberty/natalie | 8c10132a07fa2cdd23dc718dbc8020079a8df130 | [
"MIT"
] | null | null | null | #pragma once
#include "natalie/gc.hpp"
#include "tm/vector.hpp"
namespace Natalie {
template <typename T>
class ManagedVector : public Cell, public TM::Vector<T> {
public:
using TM::Vector<T>::Vector;
ManagedVector(const Vector<T> &other)
: ManagedVector {} {
for (auto item : other)
... | 24.697674 | 82 | 0.531073 | philberty |
367e44585a3669facc0846fa77da60b0a651ea88 | 5,687 | cpp | C++ | cap05/cap05-03-01-class_students.cpp | ggaaaff/think_like_a_programmer--test_code | fb081d24d70db6dd503608562625b84607c7a3ab | [
"MIT"
] | 1 | 2020-12-08T10:54:39.000Z | 2020-12-08T10:54:39.000Z | cap05/cap05-03-01-class_students.cpp | ggaaaff/think_like_a_programmer--test_code | fb081d24d70db6dd503608562625b84607c7a3ab | [
"MIT"
] | null | null | null | cap05/cap05-03-01-class_students.cpp | ggaaaff/think_like_a_programmer--test_code | fb081d24d70db6dd503608562625b84607c7a3ab | [
"MIT"
] | null | null | null | //2014.07.20 - 2014.07.21 - 2014.07.22 Gustaf-37 - CTG.
/* PROBLEM :
T R A C K I N G A N U N K N O W N Q U A N T I T Y O F S TU D E N T R E C O R D S
In this problem, you will write a class with methods to store and manipulate a collection
of student records. A student record contains a student number... | 18.227564 | 94 | 0.662388 | ggaaaff |
368876e5c495ecb67be9e4a6d6d80a7d2bb17f00 | 12,250 | cpp | C++ | deep500/frameworks/reference/custom_operators/cpp/operators/batchnormalization_op_training.cpp | khoaideptrai/deep500 | 0953038f64bc73c8d41d01796e07d3a23ca97822 | [
"BSD-3-Clause"
] | 90 | 2019-01-02T22:49:08.000Z | 2022-02-17T21:11:38.000Z | deep500/frameworks/reference/custom_operators/cpp/operators/batchnormalization_op_training.cpp | khoaideptrai/deep500 | 0953038f64bc73c8d41d01796e07d3a23ca97822 | [
"BSD-3-Clause"
] | 4 | 2019-02-14T16:19:06.000Z | 2022-01-11T17:54:42.000Z | deep500/frameworks/reference/custom_operators/cpp/operators/batchnormalization_op_training.cpp | khoaideptrai/deep500 | 0953038f64bc73c8d41d01796e07d3a23ca97822 | [
"BSD-3-Clause"
] | 24 | 2019-01-09T18:09:44.000Z | 2022-01-10T13:04:42.000Z | #include <deque>
#include "deep500/deep500.h"
#include "../utility/tensor/copy_data.hpp"
#include "../utility/tensor/set_all.hpp"
#include "../utility/math/mean.hpp"
#include "../utility/math/variance.hpp"
#include <iostream>
//batchnormalization - training mode
template<typename T>
class BatchNormalizationLayerTrain... | 35.100287 | 151 | 0.535592 | khoaideptrai |
368a9c681bb6654cad78e79a3a798703c643e134 | 4,598 | cpp | C++ | jlp_wxplot/jlp_wxplot_plot/jlp_wxlogbook.cpp | jlprieur/jlplib | 6073d7a7eb76d916662b1f8a4eb54f345cf7c772 | [
"MIT"
] | null | null | null | jlp_wxplot/jlp_wxplot_plot/jlp_wxlogbook.cpp | jlprieur/jlplib | 6073d7a7eb76d916662b1f8a4eb54f345cf7c772 | [
"MIT"
] | null | null | null | jlp_wxplot/jlp_wxplot_plot/jlp_wxlogbook.cpp | jlprieur/jlplib | 6073d7a7eb76d916662b1f8a4eb54f345cf7c772 | [
"MIT"
] | 1 | 2020-07-09T00:20:49.000Z | 2020-07-09T00:20:49.000Z | /******************************************************************************
* Name: jlp_wxlogbook.cpp (GpdLogbook class)
* Purpose: Logbook utilities
* Author: JLP
* Version: 03/01/2015
******************************************************************************/
#include "jlp_wxlogbook.h"
... | 32.380282 | 96 | 0.514572 | jlprieur |
368f49394200baccc9da366ae59691bd796f553c | 72 | hpp | C++ | Addons/e12_tools/script_component.hpp | Echo12/e12_tools_ace3 | 41ae1e76a6c0177b73f9f0eef65f19a911f09099 | [
"MIT"
] | 1 | 2015-06-04T17:53:30.000Z | 2015-06-04T17:53:30.000Z | Addons/e12_tools/script_component.hpp | Echo12/e12_tools_ace3 | 41ae1e76a6c0177b73f9f0eef65f19a911f09099 | [
"MIT"
] | 17 | 2015-06-04T19:27:03.000Z | 2020-04-17T19:47:35.000Z | Addons/e12_tools/script_component.hpp | Echo12/e12_tools_ace3 | 41ae1e76a6c0177b73f9f0eef65f19a911f09099 | [
"MIT"
] | 2 | 2015-06-08T14:18:36.000Z | 2016-07-12T18:14:54.000Z | #define COMPONENT tools
#define PREFIX e12
#include "script_macros.hpp" | 18 | 28 | 0.805556 | Echo12 |
3691f3e0762f55a980cef62b2af0d06ad85933cb | 5,474 | cpp | C++ | rocAL/rocAL/source/meta_node_rotate.cpp | Indumathi31/MIVisionX | e58c8b63d51e3f857d5f1c8750433d1ec887d7f0 | [
"MIT"
] | null | null | null | rocAL/rocAL/source/meta_node_rotate.cpp | Indumathi31/MIVisionX | e58c8b63d51e3f857d5f1c8750433d1ec887d7f0 | [
"MIT"
] | 8 | 2021-12-10T14:07:28.000Z | 2022-03-04T02:53:11.000Z | rocAL/rocAL/source/meta_node_rotate.cpp | Indumathi31/MIVisionX | e58c8b63d51e3f857d5f1c8750433d1ec887d7f0 | [
"MIT"
] | 2 | 2021-06-01T09:42:51.000Z | 2021-11-09T14:35:36.000Z | /*
Copyright (c) 2019 - 2022 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 documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, ... | 49.315315 | 151 | 0.620935 | Indumathi31 |
369947a42f5980121c03baf7cb2e4bab1ecad920 | 2,918 | hpp | C++ | plugin/com.blackberry.push/src/blackberry10/native/push_ndk.hpp | timwindsor/cordova-blackberry-plugins | a3e9e7d22f54d464647e60ef3ec574b324a5972e | [
"Apache-2.0"
] | 5 | 2015-03-04T00:17:54.000Z | 2019-06-27T13:36:05.000Z | plugin/com.blackberry.push/src/blackberry10/native/push_ndk.hpp | timwindsor/cordova-blackberry-plugins | a3e9e7d22f54d464647e60ef3ec574b324a5972e | [
"Apache-2.0"
] | 6 | 2015-02-09T21:33:52.000Z | 2017-06-02T16:19:26.000Z | plugin/com.blackberry.push/src/blackberry10/native/push_ndk.hpp | timwindsor/cordova-blackberry-plugins | a3e9e7d22f54d464647e60ef3ec574b324a5972e | [
"Apache-2.0"
] | 10 | 2015-01-27T22:58:19.000Z | 2019-02-15T19:07:01.000Z | /*
* Copyright 2012 Research In Motion Limited.
*
* 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 o... | 32.422222 | 110 | 0.746059 | timwindsor |
369b399ba774a134189ef45d65f93dcdc50cd32f | 468 | cpp | C++ | simulation_code/src/matplotlib-cpp/examples/scatter.cpp | lottegr/project_simulation | b95d88114a3d2611073d1977393884062f63bdab | [
"Apache-2.0"
] | 58 | 2019-12-30T19:39:52.000Z | 2022-03-27T15:55:10.000Z | simulation_code/src/matplotlib-cpp/examples/scatter.cpp | lottegr/project_simulation | b95d88114a3d2611073d1977393884062f63bdab | [
"Apache-2.0"
] | 3 | 2021-08-25T13:22:52.000Z | 2022-03-20T18:26:01.000Z | simulation_code/src/matplotlib-cpp/examples/scatter.cpp | lottegr/project_simulation | b95d88114a3d2611073d1977393884062f63bdab | [
"Apache-2.0"
] | 39 | 2020-02-26T11:37:14.000Z | 2022-03-22T09:50:24.000Z | #define _USE_MATH_DEFINES
#include <cmath>
#include <vector>
#include "../matplotlibcpp.h"
namespace plt = matplotlibcpp;
void plot() {
const unsigned n = 100;
std::vector<double> x(n), y(n);
#include <iostream>
for (unsigned i = 0; i < n; ++i) {
x[i] = sin(2 * M_PI * i / n);
y[i] = cos(2 * M_PI * i /... | 18 | 65 | 0.553419 | lottegr |
36a094dbc76b7b0a88755d149665033df62acfd8 | 1,465 | cpp | C++ | lib/Target/Sophon/BM188x/Compute/AveragePool.cpp | LiuLeif/onnc | 3f69e46172a9c33cc04541ff7fd78d5d7b6bdbba | [
"BSD-3-Clause"
] | 450 | 2018-08-03T08:17:03.000Z | 2022-03-17T17:21:06.000Z | lib/Target/Sophon/BM188x/Compute/AveragePool.cpp | ffk0716/onnc | 91e4955ade64b479db17aaeccacf4b7339fe44d2 | [
"BSD-3-Clause"
] | 104 | 2018-08-13T07:31:50.000Z | 2021-08-24T11:24:40.000Z | lib/Target/Sophon/BM188x/Compute/AveragePool.cpp | ffk0716/onnc | 91e4955ade64b479db17aaeccacf4b7339fe44d2 | [
"BSD-3-Clause"
] | 100 | 2018-08-12T04:27:39.000Z | 2022-03-11T04:17:42.000Z | //===- AveragePool.cpp ----------------------------------------------------===//
//
// The ONNC Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#define DEBUG_TYPE "tg_averagepool"
#include "AveragePool.h"
#include... | 27.12963 | 80 | 0.536519 | LiuLeif |
36a2f395a7966b144f786d9d006fbdbf6938b656 | 693,984 | cpp | C++ | unity/builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs74.cpp | leeenglestone/mrtk | e9c81815e5cdfba3315bb72f16400a80383a3b63 | [
"MIT"
] | null | null | null | unity/builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs74.cpp | leeenglestone/mrtk | e9c81815e5cdfba3315bb72f16400a80383a3b63 | [
"MIT"
] | null | null | null | unity/builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs74.cpp | leeenglestone/mrtk | e9c81815e5cdfba3315bb72f16400a80383a3b63 | [
"MIT"
] | null | null | null | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include <limits>
#include "vm/CachedCCWBase.h"
#include "utils/New.h"
template <typename R>
struct VirtFuncInvoker0
{
typedef R (*Func)(void*, const RuntimeMethod*);
static inline R Invoke (Il2Cp... | 46.551113 | 354 | 0.83411 | leeenglestone |
36a9710bcd0a857bc3709f4ca4c09e8e4c86a0d2 | 4,818 | cpp | C++ | benchmarks/mmd_permutation_benchmark.cpp | lambday/derby | 83ba9b36f7fe29498339872f4dbafb1f4053ed19 | [
"MIT"
] | null | null | null | benchmarks/mmd_permutation_benchmark.cpp | lambday/derby | 83ba9b36f7fe29498339872f4dbafb1f4053ed19 | [
"MIT"
] | null | null | null | benchmarks/mmd_permutation_benchmark.cpp | lambday/derby | 83ba9b36f7fe29498339872f4dbafb1f4053ed19 | [
"MIT"
] | null | null | null | /*
* Copyright (c) The Shogun Machine Learning Toolbox
* Written (w) 2016 Soumyajit De
* 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... | 31.907285 | 121 | 0.740349 | lambday |
36ab3ce6b6635a07575063144c69512dca4eb212 | 382 | cpp | C++ | doc/examples/std_swap.cpp | cosmoscout/json | e4643d1f1b03fc7a1d7b65f17e012ca93680cad8 | [
"MIT"
] | 2 | 2021-10-10T08:29:39.000Z | 2021-11-09T10:46:52.000Z | doc/examples/std_swap.cpp | IXIIAI/json | ef556019be51ba3db32854e2a491b4ccb540a2c8 | [
"MIT"
] | 2 | 2021-10-10T08:29:31.000Z | 2021-11-18T10:59:26.000Z | doc/examples/std_swap.cpp | IXIIAI/json | ef556019be51ba3db32854e2a491b4ccb540a2c8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
// create JSON values
json j1 = {{"one", 1}, {"two", 2}};
json j2 = {1, 2, 4, 8, 16};
std::cout << "j1 = " << j1 << " | j2 = " << j2 << '\n';
// swap values
std::swap(j1, j2);
s... | 19.1 | 64 | 0.471204 | cosmoscout |
36ac0603d1c14b7bcc0d9f1b75f57eb9dfbfb1aa | 558 | cpp | C++ | examples/path/ex1.cpp | friko9/PathPool | 4db85f4eb0088d6b673471df31b99b03ba26ecaf | [
"MIT"
] | null | null | null | examples/path/ex1.cpp | friko9/PathPool | 4db85f4eb0088d6b673471df31b99b03ba26ecaf | [
"MIT"
] | null | null | null | examples/path/ex1.cpp | friko9/PathPool | 4db85f4eb0088d6b673471df31b99b03ba26ecaf | [
"MIT"
] | null | null | null | #include "path.h"
#include "path_pool.h"
#include <iostream>
int main()
{
using Path = Path<ListPathPool<std::string>>;
Path root;
Path p1 { root, "path1" };
Path p2 { root, "path2" };
Path p3 { root, "path1" };
Path p4 { p2, "path1" };
std::cout<< (p1 == p2) << std::endl; // false
std::cout<< (p1 == ... | 26.571429 | 62 | 0.555556 | friko9 |
36afec8649610aeb3e4512caec96cdf379a90cb2 | 9,250 | cpp | C++ | datastore/common/objects/InterfaceNetwork.test.cpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 27 | 2017-11-04T23:58:54.000Z | 2022-03-28T14:21:50.000Z | datastore/common/objects/InterfaceNetwork.test.cpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 64 | 2020-03-16T19:59:43.000Z | 2022-03-18T14:49:18.000Z | datastore/common/objects/InterfaceNetwork.test.cpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 13 | 2019-12-01T21:32:33.000Z | 2022-03-28T15:40:02.000Z | // =============================================================================
// Copyright 2017 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.
//
// Permission is hereby grante... | 30.427632 | 87 | 0.717946 | cmwill |
a5e2be485ae34f75b86b7fdc6954071c9ec79997 | 1,523 | cpp | C++ | graph/createadjlist.cpp | huweihuang/data-structure-code | dacb3a036d0a4df391ce5fca9ce65f7dc2ab1b69 | [
"Apache-2.0"
] | 3 | 2019-05-17T09:09:16.000Z | 2020-11-18T08:13:00.000Z | graph/createadjlist.cpp | huweihuang/data-structure-code | dacb3a036d0a4df391ce5fca9ce65f7dc2ab1b69 | [
"Apache-2.0"
] | null | null | null | graph/createadjlist.cpp | huweihuang/data-structure-code | dacb3a036d0a4df391ce5fca9ce65f7dc2ab1b69 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <malloc.h>
#define MAXVEX 100
typedef char VertexType[3];
typedef struct edgenode
{
int adjvex; /*邻接点序号*/
int value; /*边的权值*/
struct edgenode *next; /*下一条边的顶点*/
} ArcNode; /*每个顶点建立的单链表中结点的类型*/
typedef struct vexnode
{
VertexType data; /*结点信息*/
ArcNode *fir... | 18.130952 | 61 | 0.560079 | huweihuang |
a5e4920d524a32dd9fa31d7088f7b66c198a2545 | 421 | cpp | C++ | src/utils/log.cpp | Metaphysical1/gamesneeze | 59d31ee232bbcc80d29329e0f64ebdde599c37df | [
"MIT"
] | 1,056 | 2020-11-17T11:49:12.000Z | 2022-03-23T12:32:42.000Z | src/utils/log.cpp | dweee/gamesneeze | 99f574db2617263470280125ec78afa813f27099 | [
"MIT"
] | 102 | 2021-01-15T12:05:18.000Z | 2022-02-26T00:19:58.000Z | src/utils/log.cpp | dweee/gamesneeze | 99f574db2617263470280125ec78afa813f27099 | [
"MIT"
] | 121 | 2020-11-18T12:08:21.000Z | 2022-03-31T07:14:32.000Z | #include "../includes.hpp"
/* print Logs in green */
void Log::log(logLevel level, const char* fmt, ...) {
va_list args;
va_start(args, fmt);
switch (level) {
case LOG: fputs("\e[32m[LOG] ", stdout); break;
case WARN: fputs("\e[33m[WARN] ", stdout); break;
case ERR: fputs("\e[31m[ER... | 28.066667 | 57 | 0.562945 | Metaphysical1 |
a5edc3d70372b7962417edba21fe1dc2defc4ad1 | 134 | cpp | C++ | QtDemoApp/QtDemoApp.cpp | F474M0R64N4/license-system | 982f1297948353b58d736009a08c697c3e15a41b | [
"MIT"
] | 4 | 2020-10-13T19:57:16.000Z | 2021-09-08T11:57:12.000Z | QtDemoApp/QtDemoApp.cpp | F474M0R64N4/license-system | 982f1297948353b58d736009a08c697c3e15a41b | [
"MIT"
] | null | null | null | QtDemoApp/QtDemoApp.cpp | F474M0R64N4/license-system | 982f1297948353b58d736009a08c697c3e15a41b | [
"MIT"
] | null | null | null | #include "QtDemoApp.h"
#include "stdafx.h"
QtDemoApp::QtDemoApp(QWidget *parent)
: QMainWindow(parent)
{
ui.setupUi(this);
}
| 14.888889 | 37 | 0.686567 | F474M0R64N4 |
a5ee24b372e1247559f7273726575e2525659796 | 1,300 | hpp | C++ | source/common.hpp | ThatGuyMike7/masonc | 43a3a69cd64f52fda8a629360c52a222549d6368 | [
"BSL-1.0"
] | 3 | 2020-08-10T13:37:48.000Z | 2021-07-06T10:14:39.000Z | source/common.hpp | ThatGuyMike7/masonc | 43a3a69cd64f52fda8a629360c52a222549d6368 | [
"BSL-1.0"
] | null | null | null | source/common.hpp | ThatGuyMike7/masonc | 43a3a69cd64f52fda8a629360c52a222549d6368 | [
"BSL-1.0"
] | null | null | null | #ifndef MASONC_COMMON_HPP
#define MASONC_COMMON_HPP
#include <iostream>
#include <cstdint>
#include <cstdlib>
namespace masonc
{
using s8 = int8_t;
using s16 = int16_t;
using s32 = int32_t;
using s64 = int64_t;
using u8 = uint8_t;
using u16 = uint16_t;
using u32 = uint32_t;
using u64 = uint64_t;
using f32 ... | 18.055556 | 68 | 0.572308 | ThatGuyMike7 |
a5f01c982bcd6aee3293a2863608db335b73fb03 | 8,146 | cpp | C++ | src/ioManager.cpp | maxwillf/Huffman | 8de0e08050b5ada24c0114b8832fca192f8abce7 | [
"MIT"
] | null | null | null | src/ioManager.cpp | maxwillf/Huffman | 8de0e08050b5ada24c0114b8832fca192f8abce7 | [
"MIT"
] | null | null | null | src/ioManager.cpp | maxwillf/Huffman | 8de0e08050b5ada24c0114b8832fca192f8abce7 | [
"MIT"
] | null | null | null | #include "../include/ioManager.h"
int *IOManager::countFrequencies(std::ifstream &input)
{
int *ascii = new int[128];
char c = '\0';
while (input.get(c)) {
if ((int) c == 10)
continue;
ascii[(int) c] +=1;
}
for (int i = 0; i < 128; ++i) {
if (ascii[i] != 0) {
... | 23.274286 | 94 | 0.465873 | maxwillf |
a5f0640634f5d138d8050e6a60263d9f048cb94f | 304 | cpp | C++ | TimerThread.cpp | xuleilx/TimerThread | 74e0759f879597ac2e9a48509af72ab12bb493d8 | [
"MIT"
] | null | null | null | TimerThread.cpp | xuleilx/TimerThread | 74e0759f879597ac2e9a48509af72ab12bb493d8 | [
"MIT"
] | null | null | null | TimerThread.cpp | xuleilx/TimerThread | 74e0759f879597ac2e9a48509af72ab12bb493d8 | [
"MIT"
] | null | null | null | #include "TimerThread.h"
TimerThread::TimerThread(int val, int interval, Callback cb)
:_timer(val, interval, std::move(cb)),
_thread(std::bind(&Timer::start, &_timer))
{
}
void TimerThread::start()
{
_thread.start();
}
void TimerThread::stop()
{
_timer.stop();
_thread.join();
}
| 15.2 | 60 | 0.644737 | xuleilx |
57038c2c1e697f411729105cb1dab6214c993c82 | 2,758 | cpp | C++ | include/asioext/impl/file_handle.cpp | zweistein-frm2/asio-extensions | bafea77c48d674930405cb7f93bdfe65539abc39 | [
"BSL-1.0"
] | 17 | 2018-04-13T00:38:55.000Z | 2022-01-21T08:38:36.000Z | include/asioext/impl/file_handle.cpp | zweistein-frm2/asio-extensions | bafea77c48d674930405cb7f93bdfe65539abc39 | [
"BSL-1.0"
] | 4 | 2017-03-16T03:34:38.000Z | 2020-05-08T00:05:51.000Z | include/asioext/impl/file_handle.cpp | zweistein-frm2/asio-extensions | bafea77c48d674930405cb7f93bdfe65539abc39 | [
"BSL-1.0"
] | 5 | 2017-09-06T15:56:04.000Z | 2021-09-14T07:38:02.000Z | /// @copyright Copyright (c) 2015 Tim Niederhausen (tim@rnc-ag.de)
/// Distributed under the Boost Software License, Version 1.0.
/// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include "asioext/file_handle.hpp"
#include "asioext/detail/throw_error.hpp"
ASIOEXT_NS_BEGIN
... | 21.215385 | 91 | 0.694344 | zweistein-frm2 |
5712df6e00d1ab2b785c47a085d18056c5f285e7 | 1,490 | cc | C++ | src/phy/AutoGain.cc | drexelwireless/dragonradio | 885abd68d56af709e7a53737352641908005c45b | [
"MIT"
] | 8 | 2020-12-05T20:30:54.000Z | 2022-01-22T13:32:14.000Z | src/phy/AutoGain.cc | drexelwireless/dragonradio | 885abd68d56af709e7a53737352641908005c45b | [
"MIT"
] | 3 | 2020-10-28T22:15:27.000Z | 2021-01-27T14:43:41.000Z | src/phy/AutoGain.cc | drexelwireless/dragonradio | 885abd68d56af709e7a53737352641908005c45b | [
"MIT"
] | null | null | null | // Copyright 2018-2020 Drexel University
// Author: Geoffrey Mainland <mainland@drexel.edu>
#include "logging.hh"
#include "phy/AutoGain.hh"
void AutoGain::autoSoftGain0dBFS(float g, std::shared_ptr<IQBuf> buf)
{
{
std::unique_lock<std::shared_mutex> lock(mutex_);
if (nestimates_0dBFS_ > 0)
... | 24.42623 | 81 | 0.58255 | drexelwireless |
5713256abe23bcd57036b18d9639c7a22c42922e | 3,309 | hpp | C++ | src/common/global/global.hpp | mshiryaev/oneccl | fb4bd69b0bfa72f0ed16ac2328205e51cf12d4aa | [
"Apache-2.0"
] | null | null | null | src/common/global/global.hpp | mshiryaev/oneccl | fb4bd69b0bfa72f0ed16ac2328205e51cf12d4aa | [
"Apache-2.0"
] | null | null | null | src/common/global/global.hpp | mshiryaev/oneccl | fb4bd69b0bfa72f0ed16ac2328205e51cf12d4aa | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2016-2019 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | 37.602273 | 86 | 0.550922 | mshiryaev |
5718d406a63067946b8977563d455cf8cc504621 | 1,180 | cpp | C++ | PA1/src/Scene.cpp | dowoncha/COMP575 | 6e48bdd80cb1a3e677c07655640efa941325e59c | [
"MIT"
] | null | null | null | PA1/src/Scene.cpp | dowoncha/COMP575 | 6e48bdd80cb1a3e677c07655640efa941325e59c | [
"MIT"
] | null | null | null | PA1/src/Scene.cpp | dowoncha/COMP575 | 6e48bdd80cb1a3e677c07655640efa941325e59c | [
"MIT"
] | null | null | null | #include "Scene.h"
Scene::Scene()
{
}
Scene::~Scene()
{
for (Surface* s : Surfaces)
{
delete s;
}
for (Light* l : Lights)
{
delete l;
}
}
void Scene::AddSurface(Surface* s)
{
Surfaces.push_back(s);
}
void Scene::AddLight(Light* l)
{
Lights.push_back(l);
}
bool Scene... | 18.153846 | 86 | 0.545763 | dowoncha |
571946ce5f50cbfcefca6e36e3c4a56f6d2b1851 | 1,056 | cpp | C++ | codeforces/441div2/A/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | codeforces/441div2/A/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | 19 | 2016-05-04T02:46:31.000Z | 2021-11-27T06:18:33.000Z | codeforces/441div2/A/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
typedef long long int lli;
typedef unsigned long long ull;
typedef complex<double> point;
template<typename P, typename Q>
ostream& operator << (ostream& os, pair<P, Q> p)
{
os << "(" << p.first <<... | 19.2 | 49 | 0.47822 | Johniel |
571eed7509330fe9237cc46a01edb5c9cc7a93a3 | 3,698 | cpp | C++ | firmware/modules/core/cRgbw.cpp | klaus-liebler/sensact | b8fc05eff67f23cf58c4fdf53e0026aab0966f6b | [
"Apache-2.0"
] | 2 | 2021-02-09T16:17:43.000Z | 2021-08-09T04:02:44.000Z | firmware/modules/core/cRgbw.cpp | klaus-liebler/sensact | b8fc05eff67f23cf58c4fdf53e0026aab0966f6b | [
"Apache-2.0"
] | 2 | 2016-05-17T20:45:10.000Z | 2020-03-10T07:03:39.000Z | firmware/modules/core/cRgbw.cpp | klaus-liebler/sensact | b8fc05eff67f23cf58c4fdf53e0026aab0966f6b | [
"Apache-2.0"
] | 1 | 2020-05-24T13:37:55.000Z | 2020-05-24T13:37:55.000Z | #include "cMaster.h"
#include "cRgbw.h"
#define LOGLEVEL LEVEL_INFO
#define LOGNAME "RGBW "
#include "cLog.h"
namespace sensact {
//targetValue absolut setzen oder aktuellen targetValue ver�ndern mit einem sint16_t
//oder ausschalten, sonst geht der targetLevel nicht auf 0
cRgbw::cRgbw(const eApplicationID id, uint1... | 26.042254 | 312 | 0.751217 | klaus-liebler |
57204e8a0af2a07ece27f8de81c6dacb89509453 | 3,714 | cpp | C++ | gui/dialogs/pixelize-dialog.cpp | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 10 | 2016-12-28T22:06:31.000Z | 2021-05-24T13:42:30.000Z | gui/dialogs/pixelize-dialog.cpp | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 4 | 2015-10-09T23:55:10.000Z | 2020-04-04T08:09:22.000Z | gui/dialogs/pixelize-dialog.cpp | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | null | null | null | // -*- coding: us-ascii-unix -*-
// Copyright 2013 Lukas Kemmer
//
// 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 a... | 26.719424 | 79 | 0.679052 | lukas-ke |
5729cb383bf59af6b6ff843255dfd1cf3acd3b8e | 5,258 | cpp | C++ | src/MultiMonteCarloTreeSearch.cpp | renewang/HexGame | 21d271091c0b09dd701e1d7b61673ab944e7d45b | [
"MIT"
] | 1 | 2015-05-05T08:35:11.000Z | 2015-05-05T08:35:11.000Z | src/MultiMonteCarloTreeSearch.cpp | renewang/HexGame | 21d271091c0b09dd701e1d7b61673ab944e7d45b | [
"MIT"
] | null | null | null | src/MultiMonteCarloTreeSearch.cpp | renewang/HexGame | 21d271091c0b09dd701e1d7b61673ab944e7d45b | [
"MIT"
] | null | null | null | /*
* MultiMonteCarloTreeSearch.cpp
* This file declares a Mont Carlo Tree Search implementation for AI player
* Created on: Feb 11, 2014
* Author: renewang
*/
#include "Global.h"
#include "LockableGameTree.h"
#include "MultiMonteCarloTreeSearch.h"
#include <algorithm>
#include <boost/thread/detail/memory.h... | 42.747967 | 158 | 0.699696 | renewang |
572f0a71176a2bbdded6ad9534af864370daa235 | 5,922 | hpp | C++ | common/logging/include/claragenomics/logging/logging.hpp | billchenxi/ClaraGenomicsAnalysis | 544effc5881560de6d316f39c47c87014da14d70 | [
"Apache-2.0"
] | 1 | 2020-01-21T09:07:02.000Z | 2020-01-21T09:07:02.000Z | common/logging/include/claragenomics/logging/logging.hpp | billchenxi/ClaraGenomicsAnalysis | 544effc5881560de6d316f39c47c87014da14d70 | [
"Apache-2.0"
] | 1 | 2020-12-04T06:24:05.000Z | 2020-12-04T06:24:05.000Z | common/logging/include/claragenomics/logging/logging.hpp | billchenxi/ClaraGenomicsAnalysis | 544effc5881560de6d316f39c47c87014da14d70 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
*
* NVIDIA CORPORATION and its licensors retain all intellectual property
* and proprietary rights in and to this software, related documentation
* and any modifications thereto. Any use, reproduction, disclosure or
* distribution of this software and ... | 32.538462 | 101 | 0.756839 | billchenxi |
5736f5d36bbfafce59a69072822e7e335c6c639a | 5,251 | hpp | C++ | packages/monte_carlo/collision/native/src/MonteCarlo_StandardPhotoatomicReaction.hpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/monte_carlo/collision/native/src/MonteCarlo_StandardPhotoatomicReaction.hpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/monte_carlo/collision/native/src/MonteCarlo_StandardPhotoatomicReaction.hpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_StandardPhotoatomicReaction.hpp
//! \author Alex Robinson
//! \brief The standard photoatomic reaction base class declaration
//!
//---------------------------------------------------------------------------//
#... | 32.81875 | 82 | 0.689583 | lkersting |
573f5c01356eb80f9361483fd66c7b9372074c2b | 5,011 | cpp | C++ | src/analysis.cpp | git-steb/structural-deformable-models | 4706a65e0dc031d16e259e526fd6a55e805855d1 | [
"MIT"
] | 2 | 2017-03-01T20:07:09.000Z | 2020-07-12T11:02:21.000Z | src/analysis.cpp | git-steb/structural-deformable-models | 4706a65e0dc031d16e259e526fd6a55e805855d1 | [
"MIT"
] | null | null | null | src/analysis.cpp | git-steb/structural-deformable-models | 4706a65e0dc031d16e259e526fd6a55e805855d1 | [
"MIT"
] | null | null | null | //this is a dump of different analysis sources
//springconst tuning evaluation
{
ofstream os("refinestat.txt",ios::app);
os << "statistics for shape refinement" << endl;
os << "model\tpoint dist\tchamfer\thausdorff" << endl;
do{
loadS... | 52.197917 | 79 | 0.4089 | git-steb |
57451206f19d3a9216145823244259ca05bad775 | 849 | cpp | C++ | Source/Testing/tests/LTextureTest.cpp | SirRamEsq/LEngine | 24f748a4f9e29cd5d35d012b46e1bc7a2c285f9c | [
"Apache-2.0"
] | 1 | 2020-05-24T14:04:12.000Z | 2020-05-24T14:04:12.000Z | Source/Testing/tests/LTextureTest.cpp | SirRamEsq/LEngine | 24f748a4f9e29cd5d35d012b46e1bc7a2c285f9c | [
"Apache-2.0"
] | 21 | 2017-09-20T13:39:12.000Z | 2018-01-27T22:21:13.000Z | Source/Testing/tests/LTextureTest.cpp | SirRamEsq/LEngine | 24f748a4f9e29cd5d35d012b46e1bc7a2c285f9c | [
"Apache-2.0"
] | null | null | null | #include "../../Engine/Kernel.h"
#include "../catch.hpp"
TEST_CASE("Can Load and Bind Texture", "[resources][texture]") {
Kernel::Inst();
auto initialCount = Kernel::rscTexMan.GetSize();
std::string texName = "System/testImage.png";
int expectedW = 72;
int expectedH = 72;
auto resource = Kernel::rscTexMa... | 23.583333 | 66 | 0.669022 | SirRamEsq |
5749fc279454bcb0b1367f1c9592be679d428efa | 558 | cpp | C++ | Online-Judge-Solution/UVA Solutions/10282(Babelfish).cpp | arifparvez14/Basic-and-competetive-programming | 4cb9ee7fbed3c70307d0f63499fcede86ed3c732 | [
"MIT"
] | null | null | null | Online-Judge-Solution/UVA Solutions/10282(Babelfish).cpp | arifparvez14/Basic-and-competetive-programming | 4cb9ee7fbed3c70307d0f63499fcede86ed3c732 | [
"MIT"
] | null | null | null | Online-Judge-Solution/UVA Solutions/10282(Babelfish).cpp | arifparvez14/Basic-and-competetive-programming | 4cb9ee7fbed3c70307d0f63499fcede86ed3c732 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
map<string, string> conversion;
string temp, second;
getline(cin, temp);
while (temp.size() !=0)
{
stringstream ss(temp);
ss >> temp >> second;
conversion[second] = temp;
getline(cin, temp);
}
while... | 19.928571 | 73 | 0.516129 | arifparvez14 |
574e9007b67248a726cb0aa08f00be1de23401e3 | 993 | cpp | C++ | UVa Online Judge/11536.cpp | xiezeju/ACM-Code-Archives | db135ed0953adcf5c7ab37a00b3f9458291ce0d7 | [
"MIT"
] | 1 | 2022-02-24T12:44:30.000Z | 2022-02-24T12:44:30.000Z | UVa Online Judge/11536.cpp | xiezeju/ACM-Code-Archives | db135ed0953adcf5c7ab37a00b3f9458291ce0d7 | [
"MIT"
] | null | null | null | UVa Online Judge/11536.cpp | xiezeju/ACM-Code-Archives | db135ed0953adcf5c7ab37a00b3f9458291ce0d7 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;
const int INF = 1e9;
const long long LLINF = 4e18;
const double EPS = 1e-9;
const int maxn = 1e6 + 10;
int a[maxn]={},f[maxn]={};
int main() {
ios::sync_with_stdio(false... | 19.470588 | 57 | 0.449144 | xiezeju |
575270c2f184dbb4b32f47c6accdf3526f8a4cd4 | 1,411 | hpp | C++ | src/nnfusion/core/operators/op_define/variable.hpp | lynex/nnfusion | 6332697c71b6614ca6f04c0dac8614636882630d | [
"MIT"
] | 639 | 2020-09-05T10:00:59.000Z | 2022-03-30T08:42:39.000Z | src/nnfusion/core/operators/op_define/variable.hpp | QPC-database/nnfusion | 99ada47c50f355ca278001f11bc752d1c7abcee2 | [
"MIT"
] | 252 | 2020-09-09T05:35:36.000Z | 2022-03-29T04:58:41.000Z | src/nnfusion/core/operators/op_define/variable.hpp | QPC-database/nnfusion | 99ada47c50f355ca278001f11bc752d1c7abcee2 | [
"MIT"
] | 104 | 2020-09-05T10:01:08.000Z | 2022-03-23T10:59:13.000Z | //*****************************************************************************
// Copyright 2017-2020 Intel Corporation
//
// 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://w... | 34.414634 | 96 | 0.584692 | lynex |
57575ee784fca90ef995e8c1c221255cbf37b42c | 3,064 | cpp | C++ | reconstruction/gadgetron/CS_LAB_Gadget/src/RETRO/CS_Retro_ImageCombinerGadget.cpp | alwaysbefun123/CS_MoCo_LAB | a26e8e483624b2e4ee669e7a069ba9c74d2d2e4b | [
"BSD-2-Clause"
] | 83 | 2017-08-11T09:18:17.000Z | 2022-01-23T03:08:00.000Z | reconstruction/gadgetron/CS_LAB_Gadget/src/RETRO/CS_Retro_ImageCombinerGadget.cpp | MrYuwan/CS_MoCo_LAB | a26e8e483624b2e4ee669e7a069ba9c74d2d2e4b | [
"BSD-2-Clause"
] | 4 | 2017-09-19T23:02:12.000Z | 2020-11-23T11:25:18.000Z | reconstruction/gadgetron/CS_LAB_Gadget/src/RETRO/CS_Retro_ImageCombinerGadget.cpp | MrYuwan/CS_MoCo_LAB | a26e8e483624b2e4ee669e7a069ba9c74d2d2e4b | [
"BSD-2-Clause"
] | 49 | 2017-03-19T18:41:55.000Z | 2021-11-25T08:25:44.000Z | #include "CS_Retro_ImageCombinerGadget.h"
#include <mri_core_data.h>
using namespace Gadgetron;
// class constructor
CS_Retro_ImageCombinerGadget::CS_Retro_ImageCombinerGadget()
{
}
// class destructor
CS_Retro_ImageCombinerGadget::~CS_Retro_ImageCombinerGadget()
{
delete data_;
}
int CS_Retro_ImageCombinerGadget... | 33.67033 | 185 | 0.756854 | alwaysbefun123 |
5759a3e5ae1c9bdff9aa1dd6605ce1a6dea911af | 3,921 | hh | C++ | services/arena/include/fightingPit/contender/pit_contenders.hh | FreeYourSoul/FyS | 123ca6e76387125909d343c23e788aa033221db5 | [
"MIT"
] | 9 | 2019-04-13T17:11:06.000Z | 2020-04-23T12:06:59.000Z | services/arena/include/fightingPit/contender/pit_contenders.hh | FreeYourSoul/FyS | 123ca6e76387125909d343c23e788aa033221db5 | [
"MIT"
] | null | null | null | services/arena/include/fightingPit/contender/pit_contenders.hh | FreeYourSoul/FyS | 123ca6e76387125909d343c23e788aa033221db5 | [
"MIT"
] | 2 | 2020-04-07T06:05:11.000Z | 2020-11-07T23:26:56.000Z | // MIT License
//
// Copyright (c) 2021 Quentin Balland
// Repository : https://github.com/FreeYourSoul/FyS
//
// 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, ... | 36.64486 | 127 | 0.770212 | FreeYourSoul |
575d6ed1d8dd01059469bbce716f5d5ffa7918b5 | 2,011 | cpp | C++ | framework/source/wrap/descriptor_pool.cpp | wobakj/VulkanFramework | 960628dbc9743f0d74bc13b7d990d0795e32a542 | [
"MIT"
] | null | null | null | framework/source/wrap/descriptor_pool.cpp | wobakj/VulkanFramework | 960628dbc9743f0d74bc13b7d990d0795e32a542 | [
"MIT"
] | null | null | null | framework/source/wrap/descriptor_pool.cpp | wobakj/VulkanFramework | 960628dbc9743f0d74bc13b7d990d0795e32a542 | [
"MIT"
] | null | null | null | #include "wrap/descriptor_pool.hpp"
#include "wrap/descriptor_set_layout.hpp"
#include "wrap/device.hpp"
#include "wrap/shader.hpp"
DescriptorPool::DescriptorPool()
:WrapperDescriptorPool{}
,m_device{nullptr}
{}
DescriptorPool::DescriptorPool(DescriptorPool && DescriptorPool)
:WrapperDescriptorPool{}
,m_device{... | 29.573529 | 114 | 0.753357 | wobakj |
5762b3a443c7ff4ea8613ffe47c45b51a4fb3222 | 5,138 | cpp | C++ | src/JsonRecord.cpp | ojdkbuild/contrib_update-notifier | f462fe8378a6ec21223cb01c517d95ea19dca25e | [
"Apache-2.0"
] | 2 | 2017-05-30T01:42:32.000Z | 2020-07-25T19:17:49.000Z | src/JsonRecord.cpp | ojdkbuild/contrib_update-notifier | f462fe8378a6ec21223cb01c517d95ea19dca25e | [
"Apache-2.0"
] | null | null | null | src/JsonRecord.cpp | ojdkbuild/contrib_update-notifier | f462fe8378a6ec21223cb01c517d95ea19dca25e | [
"Apache-2.0"
] | 1 | 2020-07-25T19:17:56.000Z | 2020-07-25T19:17:56.000Z | /*
* Copyright 2016 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 30.951807 | 103 | 0.630012 | ojdkbuild |
5766eeb52049e919ed012727d98466222aa78aac | 3,550 | cpp | C++ | forked/macrokeyboard_by_nicaqueous.cpp | saltyfishie98/MacroPad | d90601b7795676449c7d3ddb88360516e806d4ac | [
"MIT"
] | null | null | null | forked/macrokeyboard_by_nicaqueous.cpp | saltyfishie98/MacroPad | d90601b7795676449c7d3ddb88360516e806d4ac | [
"MIT"
] | null | null | null | forked/macrokeyboard_by_nicaqueous.cpp | saltyfishie98/MacroPad | d90601b7795676449c7d3ddb88360516e806d4ac | [
"MIT"
] | null | null | null | #include <Keyboard.h>
// Code by youtube.com/nicaqueous
// assign each key to a digital pin
const int key[16] = {6, 5, 4, 3, 2, 7, 8, 9, 10, 16, 14, 15, 18, 19, 20, 21};
uint32_t previousmillis; // used for debouncing
int keypressed = 0;
void setup()
{
for (int i = 0; i < 16; i++) {
pinMode(key[i],... | 33.809524 | 78 | 0.378873 | saltyfishie98 |
576775beddf22f405f4e36cee2ec47e0a163842e | 16,297 | cc | C++ | libgearman/add.cc | alionurdemetoglu/gearmand | dd9ac59a730f816e0dc5f27f98fdc06a08cc4c22 | [
"BSD-3-Clause"
] | 712 | 2016-07-02T03:32:22.000Z | 2022-03-23T14:23:02.000Z | libgearman/add.cc | alionurdemetoglu/gearmand | dd9ac59a730f816e0dc5f27f98fdc06a08cc4c22 | [
"BSD-3-Clause"
] | 294 | 2016-07-03T16:17:41.000Z | 2022-03-30T04:37:49.000Z | libgearman/add.cc | alionurdemetoglu/gearmand | dd9ac59a730f816e0dc5f27f98fdc06a08cc4c22 | [
"BSD-3-Clause"
] | 163 | 2016-07-08T10:03:38.000Z | 2022-01-21T05:03:48.000Z | /* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Gearmand client and server library.
*
* Copyright (C) 2011 Data Differential, http://datadifferential.com/
* Copyright (C) 2008 Brian Aker, Eric Day
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modi... | 32.923232 | 131 | 0.667608 | alionurdemetoglu |
5768de1bae61b5928fdd1486b79ab38194e7fb7a | 969 | hpp | C++ | crc32.hpp | salleaffaire/MP2TS | 78d0b3fbfcc331157565ac5bb9cc52437c4bc3fa | [
"MIT"
] | 11 | 2016-06-29T06:10:43.000Z | 2019-05-14T14:32:31.000Z | crc32.hpp | salleaffaire/MP2TS | 78d0b3fbfcc331157565ac5bb9cc52437c4bc3fa | [
"MIT"
] | 2 | 2017-09-15T02:04:01.000Z | 2019-04-27T13:11:48.000Z | crc32.hpp | salleaffaire/MP2TS | 78d0b3fbfcc331157565ac5bb9cc52437c4bc3fa | [
"MIT"
] | 8 | 2015-08-22T01:36:43.000Z | 2018-11-15T07:39:59.000Z | /*
* crc32.hpp
*
* Created on: Jul 3, 2015
* Author: luc.martel
*/
#ifndef CRC32_HPP_
#define CRC32_HPP_
#include <cstdint>
template <int IN, int OUT>
class CRC32 {
public:
CRC32(uint32_t poly) {
mTable = new uint32_t [256];
CreateTable(poly);
};
~CRC32() {
delete [] mTable;
... | 17.944444 | 76 | 0.501548 | salleaffaire |
576a3e141b7e0513474a91390f186b503e28452c | 1,680 | cpp | C++ | test/engine/scene/nxn_scene_graph.t.cpp | invaderjon/gdev | 3f5c5da22160c4980afd6099b0b4e06fdf106204 | [
"Apache-2.0"
] | 1 | 2018-10-20T22:08:59.000Z | 2018-10-20T22:08:59.000Z | test/engine/scene/nxn_scene_graph.t.cpp | invaderjon/gdev | 3f5c5da22160c4980afd6099b0b4e06fdf106204 | [
"Apache-2.0"
] | null | null | null | test/engine/scene/nxn_scene_graph.t.cpp | invaderjon/gdev | 3f5c5da22160c4980afd6099b0b4e06fdf106204 | [
"Apache-2.0"
] | null | null | null | // nxn_scene_graph.t.cpp
#include <engine/scene/nxn_scene_graph.h>
#include <engine/scene/test_collider.h>
#include <gtest/gtest.h>
TEST( NxNSceneGraphTest, Construction )
{
using namespace StevensDev::sgds;
NxNSceneGraph graph;
NxNSceneGraph sized( 1, 10 );
NxNSceneGraph copy( graph );
graph =... | 23.013699 | 54 | 0.639286 | invaderjon |
577117501ac5044eb3128d584f6ee08d7efbb524 | 3,429 | cpp | C++ | test/poiner_variant_impl.cpp | foonathan/tiny | 1fb39508d0320c61be5a0ecb670d55b889d7dc87 | [
"BSL-1.0"
] | 96 | 2018-11-09T13:29:02.000Z | 2022-02-13T21:20:36.000Z | test/poiner_variant_impl.cpp | foonathan/tiny | 1fb39508d0320c61be5a0ecb670d55b889d7dc87 | [
"BSL-1.0"
] | 1 | 2018-11-09T17:03:14.000Z | 2018-11-09T18:12:10.000Z | test/poiner_variant_impl.cpp | foonathan/tiny | 1fb39508d0320c61be5a0ecb670d55b889d7dc87 | [
"BSL-1.0"
] | 6 | 2019-01-04T13:02:27.000Z | 2021-06-01T03:56:52.000Z | // Copyright (C) 2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#include <foonathan/tiny/pointer_variant_impl.hpp>
#include <catch.hpp>
using namespace foonathan::tiny;
namespace
{
te... | 28.815126 | 99 | 0.588218 | foonathan |
5775045ade6c2ee5adad77152f22e911d987da8d | 14,156 | cpp | C++ | SU2-Quantum/SU2_CFD/src/output/filewriter/CParaviewXMLFileWriter.cpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | null | null | null | SU2-Quantum/SU2_CFD/src/output/filewriter/CParaviewXMLFileWriter.cpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | null | null | null | SU2-Quantum/SU2_CFD/src/output/filewriter/CParaviewXMLFileWriter.cpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | 1 | 2021-12-03T06:40:08.000Z | 2021-12-03T06:40:08.000Z | /*!
* \file CParaviewXMLFileWriter.cpp
* \brief Filewriter class for Paraview binary format.
* \author T. Albring
* \version 7.0.6 "Blackbird"
*
* SU2 Project Website: https://su2code.github.io
*
* The SU2 Project is maintained by the SU2 Foundation
* (http://su2foundation.org)
*
* Copyright 2012-2020, SU2 C... | 35.837975 | 140 | 0.666502 | Agony5757 |
577cd9c85a3128c6ce5d217b084a1b959d75173a | 2,736 | hpp | C++ | src/thread/ProcessingThread.hpp | tlmrgvf/drtd | bf31747b963673797239cb11cd45c1c1ee4aeaa6 | [
"BSD-2-Clause"
] | 6 | 2020-07-11T11:16:18.000Z | 2021-12-17T23:30:36.000Z | src/thread/ProcessingThread.hpp | tlmrgvf/drtd | bf31747b963673797239cb11cd45c1c1ee4aeaa6 | [
"BSD-2-Clause"
] | 9 | 2020-07-03T21:23:50.000Z | 2022-02-15T12:56:16.000Z | src/thread/ProcessingThread.hpp | tlmrgvf/drtd | bf31747b963673797239cb11cd45c1c1ee4aeaa6 | [
"BSD-2-Clause"
] | null | null | null | /*
BSD 2-Clause License
Copyright (c) 2020, Till Mayer
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 conditio... | 32.963855 | 125 | 0.754751 | tlmrgvf |
577d41ab5891c3050a5b3bf52ce276a4fbdeb97c | 510 | cpp | C++ | src/robot/graphical/components/lineClass.cpp | 1069B/Tower_Takeover | 331a323216cd006a8cc3bc7a326ebe3a463e429f | [
"MIT"
] | null | null | null | src/robot/graphical/components/lineClass.cpp | 1069B/Tower_Takeover | 331a323216cd006a8cc3bc7a326ebe3a463e429f | [
"MIT"
] | 3 | 2019-07-26T15:56:19.000Z | 2019-07-29T02:55:32.000Z | src/robot/graphical/components/lineClass.cpp | 1069B/Tower_Takeover | 331a323216cd006a8cc3bc7a326ebe3a463e429f | [
"MIT"
] | null | null | null | #include "robot/graphical/components/lineClass.hpp"
#include "robot/graphical/components/passInfo.hpp"
#include "robot/graphical/screenClass.hpp"
Line::Line(const PassInfo& p_info, Screen& p_screen): m_screen(p_screen){
m_points = p_info.points;
m_style = p_info.style1;
}
void Line::draw(){
m_line = lv_line_cre... | 31.875 | 73 | 0.762745 | 1069B |
578186ba2dfdc05317aed07cb344ba63bb8c927b | 654 | cpp | C++ | firmware/ToneClass.cpp | pooyapooya/rizpardazande | 818721a3daac1385daf71ac508ad00bf153cbf0b | [
"MIT"
] | 1 | 2018-08-02T12:08:24.000Z | 2018-08-02T12:08:24.000Z | firmware/ToneClass.cpp | pooyapooya/rizpardazande | 818721a3daac1385daf71ac508ad00bf153cbf0b | [
"MIT"
] | null | null | null | firmware/ToneClass.cpp | pooyapooya/rizpardazande | 818721a3daac1385daf71ac508ad00bf153cbf0b | [
"MIT"
] | 1 | 2018-08-02T12:13:08.000Z | 2018-08-02T12:13:08.000Z | #include <Arduino.h>
#include "ToneClass.h"
#include <stdlib.h>
void nanpy::ToneClass::elaborate( nanpy::MethodDescriptor* m ) {
if (strcmp(m->getClass(), "Tone") == 0) {
ObjectsManager::elaborate(m);
if (strcmp(m->getName(),"new") == 0) {
v.insert(new Tone (m->getInt(0)));
... | 24.222222 | 66 | 0.480122 | pooyapooya |
5789ac8b0d197f3c47ff42e1fea7e1f3b3000c4c | 2,531 | cpp | C++ | STM32F407/Src-rtt/user_main.cpp | SuWeipeng/car_407ve_rtt | c04745c4801998e6d82db516138d6adf846e64f8 | [
"Apache-2.0"
] | 8 | 2020-01-19T00:04:35.000Z | 2022-01-05T19:08:05.000Z | STM32F407/Src-rtt/user_main.cpp | SuWeipeng/car_407ve_rtt | c04745c4801998e6d82db516138d6adf846e64f8 | [
"Apache-2.0"
] | null | null | null | STM32F407/Src-rtt/user_main.cpp | SuWeipeng/car_407ve_rtt | c04745c4801998e6d82db516138d6adf846e64f8 | [
"Apache-2.0"
] | 3 | 2020-02-26T01:26:22.000Z | 2021-01-26T06:02:56.000Z | #include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include <stdlib.h>
#include "rtt_interface.h"
#include "AC_Base.h"
#include "Logger.h"
#include "AP_Buffer.h"
#include "SRV_Channel.h"
#include "mode.h"
#if defined(__ICCARM__) || defined(__GNUC__)
#include "AP_RangeFinder.h"
#include "AP_KF.h"
#endif
usi... | 23.877358 | 109 | 0.713157 | SuWeipeng |
578b34c0678726d348f2d7925ce7b8279b6750dc | 6,888 | cpp | C++ | Libraries/RobsJuceModules/jura_framework/gui/panels/jura_DualWaveformDisplay.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 34 | 2017-04-19T18:26:02.000Z | 2022-02-15T17:47:26.000Z | Libraries/RobsJuceModules/jura_framework/gui/panels/jura_DualWaveformDisplay.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 307 | 2017-05-04T21:45:01.000Z | 2022-02-03T00:59:01.000Z | Libraries/RobsJuceModules/jura_framework/gui/panels/jura_DualWaveformDisplay.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 4 | 2017-09-05T17:04:31.000Z | 2021-12-15T21:24:28.000Z | //-------------------------------------------------------------------------------------------------
// construction/destruction:
DualWaveformDisplay::DualWaveformDisplay(AudioFileBuffer* newBuffer)
: Component("DualWaveformDisplay"), AudioFileBufferUser(newBuffer)
{
//ScopedLock pointerLock(audioFileBufferPointerLoc... | 31.59633 | 99 | 0.732143 | RobinSchmidt |
c240626234213bf83b24e123c9ac27339c4fbc35 | 2,087 | hpp | C++ | src/algorithms/data_structures/array/array_permutations.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2020-07-31T14:13:56.000Z | 2021-02-03T09:51:43.000Z | src/algorithms/data_structures/array/array_permutations.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 28 | 2015-09-22T07:38:21.000Z | 2018-10-02T11:00:58.000Z | src/algorithms/data_structures/array/array_permutations.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2018-10-11T14:10:50.000Z | 2021-02-27T08:53:50.000Z | #ifndef ARRAY_PERMUTATIONS_HPP
#define ARRAY_PERMUTATIONS_HPP
/*
https://leetcode.com/problems/permutations/description/
Given a collection of distinct integers, return all possible permutations.
Example:
Input: [1,2,3]
Output:
[
[1,2,3],
[1,3,2],
[2,1,3],
[2,3,1],
[3,1,2],
[3,2,1]
]
https://leetcode.com... | 22.44086 | 74 | 0.548155 | iamantony |
c245a47f8969f5028610449d9b98ed96fb979682 | 861 | cpp | C++ | COJ/COJ Progressive Contest #8/TobyAndGraph.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | 1 | 2019-09-29T03:58:35.000Z | 2019-09-29T03:58:35.000Z | COJ/COJ Progressive Contest #8/TobyAndGraph.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | COJ/COJ Progressive Contest #8/TobyAndGraph.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
#define DEB(x) cerr << "#" << (#x) << ": " << (x) << endl
using namespace std;
typedef long long ll; typedef pair<int, int> ii;
typedef pair<int, ii> iii; typedef vector<int> vi;
typedef vector<ii> vii; typedef vector<vi> vvi;
const int MAXN = 10010;
vi G[MAXN];
bool vis[MAXN];
void dfs... | 19.568182 | 57 | 0.497096 | MartinAparicioPons |
c246f747c0c221357307596931c7804f458554c0 | 18,730 | cpp | C++ | src/modules/SD2/scripts/northrend/icecrown_citadel/icecrown_citadel/instance_icecrown_citadel.cpp | Zilvereyes/ServerThree | b61c215b000f199eb884ebc39844ebbbd0703a1b | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | src/modules/SD2/scripts/northrend/icecrown_citadel/icecrown_citadel/instance_icecrown_citadel.cpp | Zilvereyes/ServerThree | b61c215b000f199eb884ebc39844ebbbd0703a1b | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | src/modules/SD2/scripts/northrend/icecrown_citadel/icecrown_citadel/instance_icecrown_citadel.cpp | Zilvereyes/ServerThree | b61c215b000f199eb884ebc39844ebbbd0703a1b | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | /* Copyright (C) 2006 - 2013 ScriptDev2 <http://www.scriptdev2.com/>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.... | 35.339623 | 168 | 0.633316 | Zilvereyes |
c254a33094ffc58d602b462c4a936d65a0d24f73 | 24,501 | cpp | C++ | plugins/fnUsdMeshImport/GeoData.cpp | TheFoundryVisionmongers/mariusdplugins | b3ff07dade27f20426599a5a6905d3eb1182474f | [
"Apache-2.0"
] | 11 | 2020-07-13T15:06:05.000Z | 2022-03-21T09:45:50.000Z | plugins/fnUsdMeshImport/GeoData.cpp | TheFoundryVisionmongers/mariusdplugins | b3ff07dade27f20426599a5a6905d3eb1182474f | [
"Apache-2.0"
] | 2 | 2020-09-17T01:07:14.000Z | 2021-01-20T08:56:39.000Z | plugins/fnUsdMeshImport/GeoData.cpp | TheFoundryVisionmongers/mariusdplugins | b3ff07dade27f20426599a5a6905d3eb1182474f | [
"Apache-2.0"
] | 1 | 2021-05-24T02:22:45.000Z | 2021-05-24T02:22:45.000Z | // These files were initially authored by Pixar.
// In 2019, Foundry and Pixar agreed Foundry should maintain and curate
// these plug-ins, and they moved to
// https://github.com/TheFoundryVisionmongers/mariusdplugins
// under the same Modified Apache 2.0 license as the main USD library,
// as shown below.
//
// Copyr... | 36.678144 | 235 | 0.547651 | TheFoundryVisionmongers |
c2557edf945cc5ce276a758dd2d0feb408b1f279 | 3,617 | cpp | C++ | software/threads/CentralMain.cpp | dettus/dettusSDR | 066a96ab7becdd612bab04e33ea0840234a8a6a8 | [
"BSD-2-Clause"
] | null | null | null | software/threads/CentralMain.cpp | dettus/dettusSDR | 066a96ab7becdd612bab04e33ea0840234a8a6a8 | [
"BSD-2-Clause"
] | null | null | null | software/threads/CentralMain.cpp | dettus/dettusSDR | 066a96ab7becdd612bab04e33ea0840234a8a6a8 | [
"BSD-2-Clause"
] | null | null | null | #include <QApplication>
#include "CentralMain.h"
#include "Tuners.h"
CentralMain::CentralMain(TunerMain* tunerMain,DemodMain* demodMain,AudioMain* audioMain)
{
int i;
int fftsize;
char tmp[32];
mTunerMain=tunerMain;
mDemodMain=demodMain;
mAudioMain=audioMain;
mV1Layout=new QVBoxLayout;
mV2Layout=new QVBoxLay... | 22.054878 | 88 | 0.709151 | dettus |
c2592d0ebcdc8615edda83bba0c966ef0f02a3a7 | 12,460 | cpp | C++ | src/Needleman_Wunsch/NW_C_SSE.cpp | kugelblitz1235/TPOrga_Final | 320e30f165be9c4ee0b57535c9db8d09d42ad389 | [
"MIT"
] | null | null | null | src/Needleman_Wunsch/NW_C_SSE.cpp | kugelblitz1235/TPOrga_Final | 320e30f165be9c4ee0b57535c9db8d09d42ad389 | [
"MIT"
] | null | null | null | src/Needleman_Wunsch/NW_C_SSE.cpp | kugelblitz1235/TPOrga_Final | 320e30f165be9c4ee0b57535c9db8d09d42ad389 | [
"MIT"
] | 2 | 2021-04-29T15:02:41.000Z | 2021-06-15T17:31:36.000Z | #include "NW_C_SSE.hpp"
namespace NW{
namespace C{
namespace SSE{
// Equivalentes a registros nombrados:
__m128i constant_gap_xmm, constant_missmatch_xmm, constant_match_xmm, zeroes_xmm;
__m128i str_row_xmm, str_col_xmm, left_score_xmm, up_score_xmm, diag_score_xmm;
__m128i reverse_mask_xmm;
_... | 53.939394 | 180 | 0.646549 | kugelblitz1235 |
c25abd0112b9255784826dce5d2720c8743d40f6 | 4,808 | hpp | C++ | src/web_server/session/handle_request/handle_request.hpp | X-rays5/web_server | c14e2c8e6e53797d2179cb5985a135e34173b3b9 | [
"MIT"
] | 2 | 2021-09-16T03:22:45.000Z | 2021-11-09T11:45:07.000Z | src/web_server/session/handle_request/handle_request.hpp | X-rays5/web_server | c14e2c8e6e53797d2179cb5985a135e34173b3b9 | [
"MIT"
] | null | null | null | src/web_server/session/handle_request/handle_request.hpp | X-rays5/web_server | c14e2c8e6e53797d2179cb5985a135e34173b3b9 | [
"MIT"
] | null | null | null | //
// Created by X-ray on 5/30/2021.
//
#pragma once
#include <utility>
#include <iostream>
#include <memory>
#include <boost/beast.hpp>
#include "../../utility/mime.hpp"
#include "../../utility/path_cat.hpp"
#include "response_builder.hpp"
namespace web_server {
namespace session {
namespace handle_reques... | 45.358491 | 165 | 0.501872 | X-rays5 |
c25b59c40d8d20cb19b29cade51afc9201bfb141 | 1,300 | cpp | C++ | src/prod/test/LinuxRunAsTest/FabricUnknownBase.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/test/LinuxRunAsTest/FabricUnknownBase.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/test/LinuxRunAsTest/FabricUnknownBase.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
#include "... | 23.636364 | 102 | 0.624615 | AnthonyM |
c25c2a9aaba86ea6c81a5c08f7d9815c52f9a36d | 3,917 | cpp | C++ | tc 160+/Orchard.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/Orchard.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/Orchard.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <queue>
#include <functional>
using namespace std;
typedef pair<int, int> PII;
struct Entry {
PII pos;
int len;
Entry(PII p, int l): pos(p), len(l) {}
};
c... | 38.029126 | 333 | 0.503447 | ibudiselic |
c262bca714dad9e0b60929913636e2e68ebe3e48 | 93 | cpp | C++ | GameEngine/AudioEngine.cpp | BenMarshall98/Game-Engine-Uni | cb2e0a75953db0960e3d58a054eb9a6e213ae12a | [
"MIT"
] | null | null | null | GameEngine/AudioEngine.cpp | BenMarshall98/Game-Engine-Uni | cb2e0a75953db0960e3d58a054eb9a6e213ae12a | [
"MIT"
] | null | null | null | GameEngine/AudioEngine.cpp | BenMarshall98/Game-Engine-Uni | cb2e0a75953db0960e3d58a054eb9a6e213ae12a | [
"MIT"
] | null | null | null | #include "AudioEngine.h"
AudioEngine::AudioEngine()
{
}
AudioEngine::~AudioEngine()
{
}
| 7.153846 | 27 | 0.677419 | BenMarshall98 |
c263bfb04b139469452d16ffed84546b5da382e9 | 931 | cpp | C++ | lsteamclient/cb_converters_141.cpp | neuroradiology/Proton | 5aed286761234b1b362471ca5cf80d25f64cb719 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-07-05T06:40:08.000Z | 2021-07-05T06:40:08.000Z | lsteamclient/cb_converters_141.cpp | neuroradiology/Proton | 5aed286761234b1b362471ca5cf80d25f64cb719 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | lsteamclient/cb_converters_141.cpp | neuroradiology/Proton | 5aed286761234b1b362471ca5cf80d25f64cb719 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | #include "steamclient_private.h"
#include "steam_defs.h"
#include "steamworks_sdk_141/steam_api.h"
#include "steamworks_sdk_141/isteamgameserver.h"
#include "steamworks_sdk_141/isteamgameserverstats.h"
#include "steamworks_sdk_141/isteamgamecoordinator.h"
extern "C" {
struct winSteamUnifiedMessagesSendMethodResult_t_24... | 35.807692 | 120 | 0.795918 | neuroradiology |
c266616a3d542e0e5896238f95e56522f30e576d | 5,077 | hpp | C++ | modules/core/include/perf_manager.hpp | CambriconKnight/CNStream | 555c4a54f4766cc7b6b230bd822c6689869fbce0 | [
"Apache-2.0"
] | 1 | 2020-04-22T08:36:51.000Z | 2020-04-22T08:36:51.000Z | modules/core/include/perf_manager.hpp | CambriconKnight/CNStream | 555c4a54f4766cc7b6b230bd822c6689869fbce0 | [
"Apache-2.0"
] | null | null | null | modules/core/include/perf_manager.hpp | CambriconKnight/CNStream | 555c4a54f4766cc7b6b230bd822c6689869fbce0 | [
"Apache-2.0"
] | null | null | null | /*************************************************************************
* Copyright (C) [2019] by Cambricon, Inc. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License a... | 30.401198 | 127 | 0.693717 | CambriconKnight |
c268b22af2d91e43d4394597ba70a505385f5236 | 5,305 | cpp | C++ | spoki/libspoki/src/trace/reader.cpp | inetrg/spoki | 599a19366e4cea70e2391471de6f6b745935cddf | [
"MIT"
] | 1 | 2022-02-03T15:35:16.000Z | 2022-02-03T15:35:16.000Z | spoki/libspoki/src/trace/reader.cpp | inetrg/spoki | 599a19366e4cea70e2391471de6f6b745935cddf | [
"MIT"
] | null | null | null | spoki/libspoki/src/trace/reader.cpp | inetrg/spoki | 599a19366e4cea70e2391471de6f6b745935cddf | [
"MIT"
] | null | null | null | /*
* This file is part of the CAF spoki driver.
*
* Copyright (C) 2018-2021
* Authors: Raphael Hiesgen
*
* All rights reserved.
*
* Report any bugs, questions or comments to raphael.hiesgen@haw-hamburg.de
*
*/
#include "spoki/trace/reader.hpp"
#include "spoki/atoms.hpp"
#include "spoki/collector.hpp"
#inclu... | 35.604027 | 80 | 0.540245 | inetrg |
c26e526cb28c62e9e57a96405ae6c167c3e28949 | 1,768 | cpp | C++ | Code/BBearEditor/Engine/Render/RayTracing/BBRayTracker.cpp | xiaoxianrouzhiyou/BBearEditor | 0f1b779d87c297661f9a1e66d0613df43f5fe46b | [
"MIT"
] | 26 | 2021-06-30T02:19:30.000Z | 2021-07-23T08:38:46.000Z | Code/BBearEditor/Engine/RayTracing/BBRayTracker.cpp | lishangdian/BBearEditor-2.0 | 1f4b463ef756ed36cc15d10abae822efc400c4d7 | [
"MIT"
] | null | null | null | Code/BBearEditor/Engine/RayTracing/BBRayTracker.cpp | lishangdian/BBearEditor-2.0 | 1f4b463ef756ed36cc15d10abae822efc400c4d7 | [
"MIT"
] | 3 | 2021-09-01T08:19:30.000Z | 2021-12-28T19:06:40.000Z | #include "BBRayTracker.h"
#include "Utils/BBUtils.h"
#include "Scene/BBScene.h"
#include "Scene/BBSceneManager.h"
#include "BBScreenSpaceRayTracker.h"
#include "Base/BBGameObject.h"
void BBRayTracker::enable(int nAlgorithmIndex, bool bEnable)
{
BBScene *pScene = BBSceneManager::getScene();
if (bEnable)
{
... | 25.257143 | 95 | 0.639706 | xiaoxianrouzhiyou |
c2707f3719d52bc7279cb7503fdbc4fc00891f33 | 3,639 | cpp | C++ | dmserializers/importsfmv4.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 252 | 2020-12-16T15:34:43.000Z | 2022-03-31T23:21:37.000Z | dmserializers/importsfmv4.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 23 | 2020-12-20T18:02:54.000Z | 2022-03-28T16:58:32.000Z | dmserializers/importsfmv4.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 42 | 2020-12-19T04:32:33.000Z | 2022-03-30T06:00:28.000Z | //====== Copyright � 1996-2006, Valve Corporation, All rights reserved. =======
//
// Purpose:
//
//=============================================================================
#include "dmserializers.h"
#include "dmebaseimporter.h"
#include "datamodel/idatamodel.h"
#include "datamodel/dmelement.h"
#include "datamod... | 29.112 | 116 | 0.565815 | DannyParker0001 |
c27e211f722049acc93ae5e293433f2fb5ceb56d | 667 | hpp | C++ | tests/helper/compare.hpp | rsjtaylor/libear | 40a4000296190c3f91eba79e5b92141e368bd72a | [
"Apache-2.0"
] | 14 | 2019-07-30T17:58:00.000Z | 2022-02-15T15:33:36.000Z | tests/helper/compare.hpp | rsjtaylor/libear | 40a4000296190c3f91eba79e5b92141e368bd72a | [
"Apache-2.0"
] | 27 | 2019-07-30T18:01:58.000Z | 2021-12-14T10:24:52.000Z | tests/helper/compare.hpp | rsjtaylor/libear | 40a4000296190c3f91eba79e5b92141e368bd72a | [
"Apache-2.0"
] | 5 | 2019-07-30T15:12:02.000Z | 2020-09-14T16:22:43.000Z | #pragma once
#include "ear/common_types.hpp"
namespace ear {
inline bool operator==(const CartesianPosition& a,
const CartesianPosition& b) {
return a.X == b.X && a.Y == b.Y && a.Z == b.Z;
}
inline bool operator!=(const CartesianPosition& a,
const CartesianP... | 27.791667 | 74 | 0.589205 | rsjtaylor |
c281ba89e3604dbff2de3cb053699968c26adb83 | 42,921 | inl | C++ | volume/Unified2/src/Task/ElasticSystem/ElasticSystemCommon.inl | llmontoryxd/mipt_diploma | 7d7d65cd619fe983736773f95ebb50b470adbed2 | [
"MIT"
] | null | null | null | volume/Unified2/src/Task/ElasticSystem/ElasticSystemCommon.inl | llmontoryxd/mipt_diploma | 7d7d65cd619fe983736773f95ebb50b470adbed2 | [
"MIT"
] | null | null | null | volume/Unified2/src/Task/ElasticSystem/ElasticSystemCommon.inl | llmontoryxd/mipt_diploma | 7d7d65cd619fe983736773f95ebb50b470adbed2 | [
"MIT"
] | null | null | null | #include "../VolumeMethod/FunctionGetters/BoundaryFunctionGetter.h"
template <typename Space>
void ElasticSystemCommon<Space>::ValueTypeCommon::SetZeroValues()
{
std::fill_n(values, dimsCount, Scalar(0.0));
}
template <>
Space2::Vector ElasticSystemCommon<Space2>::ValueTypeCommon::GetVelocity() const
{
return Spa... | 43.223565 | 332 | 0.562941 | llmontoryxd |
c281d6c35e23c92207db648e10807fda97c31be8 | 847 | hpp | C++ | c++/en/dropbox/remove_sentences_effectively/remove_sentences_effectively/Args.hpp | aimldl/coding | 70ddbfaa454ab92fd072ee8dc614ecc330b34a70 | [
"MIT"
] | null | null | null | c++/en/dropbox/remove_sentences_effectively/remove_sentences_effectively/Args.hpp | aimldl/coding | 70ddbfaa454ab92fd072ee8dc614ecc330b34a70 | [
"MIT"
] | null | null | null | c++/en/dropbox/remove_sentences_effectively/remove_sentences_effectively/Args.hpp | aimldl/coding | 70ddbfaa454ab92fd072ee8dc614ecc330b34a70 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <cassert>
#include <string>
#include "GetOpt.hpp"
using namespace std;
//==================================================================
// Class Declaration //
//=================================================... | 23.527778 | 69 | 0.493506 | aimldl |
c286523148f437f27158a97f03a733470c12de16 | 1,286 | cpp | C++ | binary-tree-level-order-traversal-II/main.cpp | rickytan/LeetCode | 7df9a47928552babaf5d2abf1d153bd92d44be09 | [
"MIT"
] | 1 | 2015-04-04T18:32:31.000Z | 2015-04-04T18:32:31.000Z | binary-tree-level-order-traversal-II/main.cpp | rickytan/LeetCode | 7df9a47928552babaf5d2abf1d153bd92d44be09 | [
"MIT"
] | null | null | null | binary-tree-level-order-traversal-II/main.cpp | rickytan/LeetCode | 7df9a47928552babaf5d2abf1d153bd92d44be09 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <queue>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
class Solution {
public:
vector<vector<int> > levelOrderBottom(TreeNode *root) {
vector<vector<in... | 23.381818 | 63 | 0.51944 | rickytan |
c287b86aab29f4aa747149d64d45827da01a9cf3 | 470 | cpp | C++ | drazy/sparse_table.cpp | gbuenoandrade/Manual-da-Sarrada | dc44666b8f926428164447997b5ea8363ebd6fda | [
"MIT"
] | null | null | null | drazy/sparse_table.cpp | gbuenoandrade/Manual-da-Sarrada | dc44666b8f926428164447997b5ea8363ebd6fda | [
"MIT"
] | null | null | null | drazy/sparse_table.cpp | gbuenoandrade/Manual-da-Sarrada | dc44666b8f926428164447997b5ea8363ebd6fda | [
"MIT"
] | null | null | null | const int MAXN = 100010;
const int MAX_LOG = 18;
int v[MAXN];
int st[MAXN][MAX_LOG];
int logt[MAXN];
int n;
void build() {
logt[1] = 0;
for (int i=2, val=1; i<=n; i*=2, ++val) {
int lim = min(2*i, n+1);
FOR(j,i,lim) {
logt[j] = val;
}
}
FOR0(j,MAX_LOG) FOR0(i,n) if(i + (1 << j) - 1 < n) {
st[i][j] = (j... | 19.583333 | 68 | 0.493617 | gbuenoandrade |
c29056431c86089520a9e21ee2cc507ccc5340c7 | 3,763 | hpp | C++ | src/RemotePhotoTool/TimelapseVideoOptionsDlg.hpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 16 | 2015-03-26T02:32:43.000Z | 2021-10-18T16:34:31.000Z | src/RemotePhotoTool/TimelapseVideoOptionsDlg.hpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 7 | 2019-02-21T06:07:09.000Z | 2022-01-01T10:00:50.000Z | src/RemotePhotoTool/TimelapseVideoOptionsDlg.hpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 6 | 2019-05-07T09:21:15.000Z | 2021-09-01T06:36:24.000Z | //
// RemotePhotoTool - remote camera control software
// Copyright (C) 2008-2018 Michael Fink
//
/// \file TimelapseVideoOptionsDlg.hpp Settings dialog
//
#pragma once
/// \brief timelapse video options dialog
/// \details shows some common ffmpeg options for selection and returns the
/// resulting command line strin... | 36.892157 | 110 | 0.790858 | vividos |
c298ba2ea7469e032a9c6e9566796468f41872bb | 2,151 | cpp | C++ | src/app/clusters/power-source-server/power-source-server.cpp | hnnajh/connectedhomeip | 249a6c65a820c711d23135d38eec0ab288d3f38f | [
"Apache-2.0"
] | null | null | null | src/app/clusters/power-source-server/power-source-server.cpp | hnnajh/connectedhomeip | 249a6c65a820c711d23135d38eec0ab288d3f38f | [
"Apache-2.0"
] | null | null | null | src/app/clusters/power-source-server/power-source-server.cpp | hnnajh/connectedhomeip | 249a6c65a820c711d23135d38eec0ab288d3f38f | [
"Apache-2.0"
] | null | null | null | /**
*
* Copyright (c) 2020 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 32.590909 | 80 | 0.666202 | hnnajh |
c29906300bed592b7d0f6125beabc3e161352bfc | 1,345 | cxx | C++ | Packages/java/nio/file/LinkOption.cxx | Brandon-T/Aries | 4e8c4f5454e8c7c5cd0611b1b38b5be8186f86ca | [
"MIT"
] | null | null | null | Packages/java/nio/file/LinkOption.cxx | Brandon-T/Aries | 4e8c4f5454e8c7c5cd0611b1b38b5be8186f86ca | [
"MIT"
] | null | null | null | Packages/java/nio/file/LinkOption.cxx | Brandon-T/Aries | 4e8c4f5454e8c7c5cd0611b1b38b5be8186f86ca | [
"MIT"
] | null | null | null | //
// LinkOption.cxx
// Aries
//
// Created by Brandon on 2018-02-25.
// Copyright © 2018 Brandon. All rights reserved.
//
#include "LinkOption.hxx"
#include "Enum.hxx"
#include "String.hxx"
using java::nio::file::LinkOption;
using java::lang::Enum;
using java::lang::String;
LinkOption::LinkOption(JVM* vm, jobj... | 32.02381 | 131 | 0.681784 | Brandon-T |
c2994debdd0e9f785619897ea07406601e14677b | 6,276 | hh | C++ | nox/src/include/expr.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 28 | 2015-02-04T13:59:25.000Z | 2021-12-29T03:44:47.000Z | nox/src/include/expr.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 552 | 2015-01-05T18:25:54.000Z | 2022-03-16T18:51:13.000Z | nox/src/include/expr.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 25 | 2015-02-04T18:48:20.000Z | 2020-06-18T15:51:05.000Z | /* Copyright 2008 (C) Nicira, Inc.
*
* This file is part of NOX.
*
* NOX is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* N... | 33.031579 | 80 | 0.663161 | ayjazz |
c29ba5e146d7cb6631d92e38d91bbb259dbb2a40 | 523 | cc | C++ | src/main.cc | milesdiprata/conga-minimax-alpha-beta | 0080bc62a71efd77ed499c6bd605f4120ccee73a | [
"MIT"
] | null | null | null | src/main.cc | milesdiprata/conga-minimax-alpha-beta | 0080bc62a71efd77ed499c6bd605f4120ccee73a | [
"MIT"
] | null | null | null | src/main.cc | milesdiprata/conga-minimax-alpha-beta | 0080bc62a71efd77ed499c6bd605f4120ccee73a | [
"MIT"
] | null | null | null | #include <memory>
#include "conga/board.h"
#include "conga/game.h"
#include "conga/minimax_agent.h"
#include "conga/random_agent.h"
#include "conga/stone.h"
int main(const int argc, const char* const argv[]) {
auto game = conga::Game(
std::make_unique<conga::Board>(),
std::make_unique<conga::MinimaxAgen... | 27.526316 | 70 | 0.678776 | milesdiprata |
c2a1a601d04b8827eb1f6fb63754da2fe734d2f9 | 5,196 | hpp | C++ | include/hipipe/core/stream/rebatch.hpp | iterait/hipipe | c2a6cc13857dce93e5ae3f76a86e8f029ca3f921 | [
"BSL-1.0",
"MIT"
] | 16 | 2018-10-08T09:00:14.000Z | 2021-07-11T12:35:09.000Z | include/hipipe/core/stream/rebatch.hpp | iterait/hipipe | c2a6cc13857dce93e5ae3f76a86e8f029ca3f921 | [
"BSL-1.0",
"MIT"
] | 19 | 2018-09-26T13:55:40.000Z | 2019-08-28T13:47:04.000Z | include/hipipe/core/stream/rebatch.hpp | iterait/hipipe | c2a6cc13857dce93e5ae3f76a86e8f029ca3f921 | [
"BSL-1.0",
"MIT"
] | null | null | null | /****************************************************************************
* hipipe library
* Copyright (c) 2017, Cognexa Solutions s.r.o.
* Copyright (c) 2018, Iterait a.s.
* Author(s) Filip Matzner
*
* This file is distributed under the MIT License.
* See the accompanying file LICENSE.txt for the comp... | 30.745562 | 94 | 0.572171 | iterait |
c2a31b8ed1ae65367c9af6077c84ca9fe8f1d39c | 1,455 | cpp | C++ | cpp/src/Exceptions/Except.cpp | enea-scaccabarozzi/Image_to_ascii | 7cb4aeb168321f23a22cc1340900f40807fb74cc | [
"MIT"
] | null | null | null | cpp/src/Exceptions/Except.cpp | enea-scaccabarozzi/Image_to_ascii | 7cb4aeb168321f23a22cc1340900f40807fb74cc | [
"MIT"
] | null | null | null | cpp/src/Exceptions/Except.cpp | enea-scaccabarozzi/Image_to_ascii | 7cb4aeb168321f23a22cc1340900f40807fb74cc | [
"MIT"
] | null | null | null | /** </src/Exceptions/Except.cpp>
*
* Written by Enea Scaccabarozzi
* In date 2022-03-09
*
* @description: This file rapresent the definition
* of the custom Exception class for this project
*
* @declaration: See declarations for this file at
* </src/Exceptions/Except.h>
*
*/
#include "Except.h"
using IMAGE_A... | 23.467742 | 83 | 0.645361 | enea-scaccabarozzi |
c2a4e7d339d3f1157e8c5a5277f756f65ad7fec2 | 1,817 | cpp | C++ | Plugins/org.mitk.gui.qt.moviemaker/src/internal/QmitkTimeSliceAnimationItem.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2022-03-03T12:03:32.000Z | 2022-03-03T12:03:32.000Z | Plugins/org.mitk.gui.qt.moviemaker/src/internal/QmitkTimeSliceAnimationItem.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T10:19:02.000Z | 2021-12-22T10:19:02.000Z | Plugins/org.mitk.gui.qt.moviemaker/src/internal/QmitkTimeSliceAnimationItem.cpp | zhaomengxiao/MITK_lancet | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2020-11-27T09:41:18.000Z | 2020-11-27T09:41:18.000Z | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | 25.591549 | 143 | 0.679141 | zhaomengxiao |
c2a562300dc1fd0978b99a6569abd7cd6b8afb49 | 3,464 | hpp | C++ | src/thread/invoke.hpp | minijackson/IGI-3004 | 8354f40e296cce8735b188dd3ff7406e96d5878e | [
"MIT"
] | 1 | 2017-10-01T02:29:06.000Z | 2017-10-01T02:29:06.000Z | src/thread/invoke.hpp | minijackson/IGI-3004 | 8354f40e296cce8735b188dd3ff7406e96d5878e | [
"MIT"
] | null | null | null | src/thread/invoke.hpp | minijackson/IGI-3004 | 8354f40e296cce8735b188dd3ff7406e96d5878e | [
"MIT"
] | null | null | null | #pragma once
#include <utility>
#include <functional>
#include <type_traits>
// C++17 invoke utility
// http://en.cppreference.com/w/cpp/utility/functional/invoke
namespace detail {
template <class T>
struct is_reference_wrapper : std::false_type {};
template <class U>
struct is_reference_wrapper<std::reference... | 39.816092 | 93 | 0.632506 | minijackson |
c2a66097fec4e896699d314e087ed3a039817cff | 4,954 | cpp | C++ | modbus/MRegExp.cpp | mirkowi/TERANiS-PLC | 2b22f1ebcaa771feb9bcab31b13ee4f6debf3e03 | [
"Apache-2.0"
] | 1 | 2020-04-14T09:59:32.000Z | 2020-04-14T09:59:32.000Z | modbus/MRegExp.cpp | mirkowi/TERANiS-PLC | 2b22f1ebcaa771feb9bcab31b13ee4f6debf3e03 | [
"Apache-2.0"
] | 2 | 2020-04-16T11:49:21.000Z | 2020-06-05T06:36:50.000Z | modbus/MRegExp.cpp | mirkowi/TERANiS-PLC | 2b22f1ebcaa771feb9bcab31b13ee4f6debf3e03 | [
"Apache-2.0"
] | null | null | null | //---------------------------------------------------------------------------
#include "MRegExp.h"
#include "platform.h"
// TException wahlweise ausblenden
#define _NO_EXEPTOBJ
#ifdef _NO_EXEPTOBJ
#define MEXCEPTION ;
#else
#include "exeptobj.h"
#endif
//--------------------------------------------------------------... | 25.937173 | 114 | 0.591643 | mirkowi |
c2b534f39e3d067d4e65f3ef89a9cb143274bf4e | 2,018 | cpp | C++ | Core/CStreamTextWriter.cpp | JamesSchumacher10980/James.Cpp | c87d7340dbbca7e86e91b30f29bb9ac0bc1c0c00 | [
"Apache-2.0"
] | null | null | null | Core/CStreamTextWriter.cpp | JamesSchumacher10980/James.Cpp | c87d7340dbbca7e86e91b30f29bb9ac0bc1c0c00 | [
"Apache-2.0"
] | null | null | null | Core/CStreamTextWriter.cpp | JamesSchumacher10980/James.Cpp | c87d7340dbbca7e86e91b30f29bb9ac0bc1c0c00 | [
"Apache-2.0"
] | null | null | null | #include "StdAfx.hpp"
#include "James.Cpp.Api.hpp"
/////////////////////////////////////////////////
//// (C) 2017 James Bernard Schumacher III
/////////////////////////////////////////////////
/*
Copyright (C) 2017 James Bernard Schumacher III
Licensed under the Apache License, Version 2.0 (the "License... | 34.20339 | 120 | 0.530228 | JamesSchumacher10980 |
c2b892c660ce47d37db4b6e4ab8243ef95514e8a | 1,019 | cpp | C++ | deep-learning/src/pcc/utility/pcc_copa_ucalc.cpp | chengcheng8632/Aurora | 8471a7e307c360dc0d1234afb18072bde68ac2bd | [
"Apache-2.0"
] | null | null | null | deep-learning/src/pcc/utility/pcc_copa_ucalc.cpp | chengcheng8632/Aurora | 8471a7e307c360dc0d1234afb18072bde68ac2bd | [
"Apache-2.0"
] | null | null | null | deep-learning/src/pcc/utility/pcc_copa_ucalc.cpp | chengcheng8632/Aurora | 8471a7e307c360dc0d1234afb18072bde68ac2bd | [
"Apache-2.0"
] | 2 | 2019-09-05T02:16:09.000Z | 2019-09-17T10:06:27.000Z |
#include <cmath>
#include "pcc_copa_ucalc.h"
float PccCopaUtilityCalculator::CalculateUtility(PccMonitorIntervalAnalysisGroup& past_monitor_intervals,
MonitorInterval& cur_mi) {
float throughput = cur_mi.GetObsThroughput();
float rtt_inflation = cur_mi.GetObsRttInflation();
float avg_rtt = cur_mi.GetO... | 29.970588 | 105 | 0.725221 | chengcheng8632 |
c2c1197e209964918dd9fda8f427aa1f41b04c79 | 1,492 | hpp | C++ | include/icp_localization/transform/TfPublisher.hpp | ibrahimhroob/icp_localization | 271d99c59141fcd293190ec935020213783745e5 | [
"BSD-3-Clause"
] | 72 | 2021-07-06T09:05:00.000Z | 2022-03-25T08:21:07.000Z | include/icp_localization/transform/TfPublisher.hpp | ibrahimhroob/icp_localization | 271d99c59141fcd293190ec935020213783745e5 | [
"BSD-3-Clause"
] | 3 | 2021-06-09T20:06:41.000Z | 2022-02-16T09:54:42.000Z | include/icp_localization/transform/TfPublisher.hpp | ibrahimhroob/icp_localization | 271d99c59141fcd293190ec935020213783745e5 | [
"BSD-3-Clause"
] | 22 | 2021-06-23T09:18:01.000Z | 2022-03-11T03:14:10.000Z | /*
* TfPublisher.hpp
*
* Created on: Apr 27, 2021
* Author: jelavice
*/
#pragma once
#include "icp_localization/transform/RigidTransform.hpp"
#include <tf2_ros/transform_broadcaster.h>
#include <nav_msgs/Odometry.h>
#include <sensor_msgs/Imu.h>
namespace icp_loco {
class FrameTracker;
class ImuTracker;
c... | 26.642857 | 84 | 0.756702 | ibrahimhroob |
c2c566df81e4f258fb7bfcffc85d13ccafa86055 | 185 | cpp | C++ | mia/medium/pocket-challenge-v2.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | mia/medium/pocket-challenge-v2.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | mia/medium/pocket-challenge-v2.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | struct PocketChallengeV2 : WonderSwan {
auto name() -> string override { return "Pocket Challenge V2"; }
auto extensions() -> vector<string> override { return {"pcv2", "pc2"}; }
};
| 37 | 74 | 0.675676 | CasualPokePlayer |
c2c6d4cf258c84f49b84b7a8a794909cc48a9bf8 | 211 | cpp | C++ | chapter-6/6.35.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-6/6.35.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-6/6.35.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | // val-- keeps a copy of the original value of val, decreases val by 1, and then return the kept copy.
// this function processing would never meet the end condition statement, exceeds the maximum stack depth.
| 52.75 | 106 | 0.767773 | zero4drift |
c2c7bc3a698c18d19e3138d96302207f0b72e0ed | 3,153 | cpp | C++ | src/tabwidget.cpp | bms/kscope | 3f3fc268574a178ea3cc94205b61ee44f2a242e3 | [
"BSD-2-Clause"
] | 1 | 2019-05-15T03:18:00.000Z | 2019-05-15T03:18:00.000Z | src/tabwidget.cpp | wanghaitang/kscope4-1.8.1 | 72dbb7e9e3b34253c8bd8b25c5d82ebbb8d68358 | [
"BSD-2-Clause"
] | null | null | null | src/tabwidget.cpp | wanghaitang/kscope4-1.8.1 | 72dbb7e9e3b34253c8bd8b25c5d82ebbb8d68358 | [
"BSD-2-Clause"
] | null | null | null | /***************************************************************************
*
* Copyright (C) 2005 Elad Lahav (elad_lahav@users.sourceforge.net)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistr... | 31.53 | 89 | 0.697114 | bms |
c2cd14c35492001dc919d90c6f34d5de1a70289c | 2,174 | hpp | C++ | include/boost/simd/arch/common/simd/function/genmask.hpp | nickporubsky/boost-simd-clone | b81dfcd9d6524a131ea714f1eebb5bb75adddcc7 | [
"BSL-1.0"
] | 5 | 2018-02-20T11:21:12.000Z | 2019-11-12T13:45:09.000Z | include/boost/simd/arch/common/simd/function/genmask.hpp | nickporubsky/boost-simd-clone | b81dfcd9d6524a131ea714f1eebb5bb75adddcc7 | [
"BSL-1.0"
] | null | null | null | include/boost/simd/arch/common/simd/function/genmask.hpp | nickporubsky/boost-simd-clone | b81dfcd9d6524a131ea714f1eebb5bb75adddcc7 | [
"BSL-1.0"
] | 2 | 2017-11-17T15:30:36.000Z | 2018-03-01T02:06:25.000Z | //==================================================================================================
/**
Copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
**/
//====================================... | 33.96875 | 100 | 0.517939 | nickporubsky |
c2ce474d0d43dc78a843523519f923b7ff44a3d7 | 240 | hpp | C++ | DLOCRModel.Calculate/pch.hpp | Frederisk/DeepLearning-OpticalCharacterRecognition-Model | 52998e877cdf1e849cc2648e7d07dee6ae865cc1 | [
"MIT"
] | null | null | null | DLOCRModel.Calculate/pch.hpp | Frederisk/DeepLearning-OpticalCharacterRecognition-Model | 52998e877cdf1e849cc2648e7d07dee6ae865cc1 | [
"MIT"
] | 1 | 2020-12-16T03:32:56.000Z | 2020-12-16T03:32:56.000Z | DLOCRModel.Calculate/pch.hpp | Frederisk/DeepLearning-OpticalCharacterRecognition-Model | 52998e877cdf1e849cc2648e7d07dee6ae865cc1 | [
"MIT"
] | null | null | null | // pch.h: 此為先行編譯的標頭檔。
// 以下所列檔案只會編譯一次,可改善之後組建的組建效能。
// 這也會影響 IntelliSense 效能,包括程式碼完成以及許多程式碼瀏覽功能。
// 但此處所列的檔案,如果其中任一在組建之間進行了更新,即會重新編譯所有檔案。
// 請勿於此處新增會經常更新的檔案,如此將會對於效能優勢產生負面的影響。
#ifndef PCH_H
#define PCH_H
// 請於此新增您要先行編譯的標頭
#endif //PCH_H | 20 | 44 | 0.779167 | Frederisk |
c2cfc850b3bb55e583bca007ea5fce4f4e2f80d5 | 492 | cpp | C++ | codeforces/gym/2019-2020 ACM-ICPC Brazil Subregional Programming Contest/h.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | 4 | 2020-10-05T19:24:10.000Z | 2021-07-15T00:45:43.000Z | codeforces/gym/2019-2020 ACM-ICPC Brazil Subregional Programming Contest/h.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | codeforces/gym/2019-2020 ACM-ICPC Brazil Subregional Programming Contest/h.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define int long long
#define ii pair<int, int>
#define ff first
#define ss second
#define vi vector<int>
#define vii vector<ii>
#define pb push_back
#define MAX (int32_t(1e6)+1)
#define INF (int32_t(1e9)+1)
using namespace std;
int32_t main(){
int v, n;
cin >> v >> n;
v*=n;
f... | 18.222222 | 45 | 0.554878 | tysm |
c2d146bebf552b11d604b4ef794e69bb4c8b1cdb | 2,803 | cpp | C++ | TheGame/objectlootcycle.cpp | MiKlTA/game_RPG_project | 9d460e9fb5e0449e457ba94e44a0d6fc5b491012 | [
"MIT"
] | null | null | null | TheGame/objectlootcycle.cpp | MiKlTA/game_RPG_project | 9d460e9fb5e0449e457ba94e44a0d6fc5b491012 | [
"MIT"
] | null | null | null | TheGame/objectlootcycle.cpp | MiKlTA/game_RPG_project | 9d460e9fb5e0449e457ba94e44a0d6fc5b491012 | [
"MIT"
] | null | null | null | #include "allFunctions.h"
void objectLootCycle(BasicHero *hero, BasicObject *object)
{
prepare();
printSeparator();
printBasicObject(object);
printSeparator();
if (!object->getBasicObjectInfo().wasExamined)
{
printCase(0, "Loot");
printCase(1, "Back");
... | 22.97541 | 79 | 0.447021 | MiKlTA |
c2d5c7b6c672bd8aa85a6b4fcde82fe1fd48c77e | 1,099 | cpp | C++ | HW3/ydogukan_Yildirim_Dogukan_hw3.cpp | ydogukan/CS204_Advanced_Programming | 015cb72d42cdaa9eaf335eb8deb0abcfc9a08c84 | [
"MIT"
] | null | null | null | HW3/ydogukan_Yildirim_Dogukan_hw3.cpp | ydogukan/CS204_Advanced_Programming | 015cb72d42cdaa9eaf335eb8deb0abcfc9a08c84 | [
"MIT"
] | null | null | null | HW3/ydogukan_Yildirim_Dogukan_hw3.cpp | ydogukan/CS204_Advanced_Programming | 015cb72d42cdaa9eaf335eb8deb0abcfc9a08c84 | [
"MIT"
] | null | null | null | #include <iostream>
#include <sstream>
#include <string>
#include "ydogukan_Yildirim_Dogukan_hw3_SubSeqsList.h"
using namespace std;
int main() {
string line;
cout << "Please enter the numbers in a line: ";
getline(cin, line);
cout << endl;
// Creating temporary stringstream and integer variable to check wheth... | 23.891304 | 129 | 0.702457 | ydogukan |
c2d7a23b4d7cbb5e51069e9b443ffacca9787fd1 | 597 | hpp | C++ | include/universal/native/native.hpp | shikharvashistha/universal | 5c20504504f067412958fa61ea3839cf86c3d6f7 | [
"MIT"
] | 254 | 2017-05-24T16:51:57.000Z | 2022-03-22T13:07:29.000Z | include/universal/native/native.hpp | jamesquinlan/universal | 3b7e6bf37cbb9123425b634d18af18a409c2eccc | [
"MIT"
] | 101 | 2017-11-09T22:57:24.000Z | 2022-03-17T12:44:59.000Z | include/universal/native/native.hpp | jamesquinlan/universal | 3b7e6bf37cbb9123425b634d18af18a409c2eccc | [
"MIT"
] | 55 | 2017-06-09T10:04:38.000Z | 2022-02-01T16:54:56.000Z | #pragma once
// native standard header aggregating all native type introspection and manipulation functionality
//
// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#ifndef _NATIVE_
#define _NATIVE_
#... | 33.166667 | 106 | 0.802345 | shikharvashistha |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.