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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
27965ac4051d43b2d857b12477817ab90f28b336 | 3,459 | cc | C++ | programs/playlist.cc | paulfd/fmidi | f12d08d6ccd27d2580ec4e21717fbc3ab4b73a20 | [
"BSL-1.0"
] | 17 | 2018-04-18T08:57:12.000Z | 2022-01-25T08:24:14.000Z | programs/playlist.cc | paulfd/fmidi | f12d08d6ccd27d2580ec4e21717fbc3ab4b73a20 | [
"BSL-1.0"
] | 3 | 2018-11-02T13:20:51.000Z | 2021-08-03T13:42:06.000Z | programs/playlist.cc | paulfd/fmidi | f12d08d6ccd27d2580ec4e21717fbc3ab4b73a20 | [
"BSL-1.0"
] | 3 | 2020-04-22T17:55:31.000Z | 2021-08-02T21:10:01.000Z | // Copyright Jean Pierre Cimalando 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include "playlist.h"
#if defined(FMIDI_PLAY_USE_BOOST_FILESYSTEM)
#include <boost/filesystem.hpp>
namespa... | 20.589286 | 69 | 0.614629 | paulfd |
279d9d7f6e6fb3e43173bfb31229a534e324ab41 | 919 | cpp | C++ | imGUIWin.Demo/mainapp.cpp | Bit00009/imGUIWin | 98c3f2d114a9ebd5351a6a863317a3a474e0c994 | [
"MIT"
] | null | null | null | imGUIWin.Demo/mainapp.cpp | Bit00009/imGUIWin | 98c3f2d114a9ebd5351a6a863317a3a474e0c994 | [
"MIT"
] | null | null | null | imGUIWin.Demo/mainapp.cpp | Bit00009/imGUIWin | 98c3f2d114a9ebd5351a6a863317a3a474e0c994 | [
"MIT"
] | null | null | null | #include <Windows.h>
#include <iostream>
#include "imGUIWinLib.h"
#pragma comment(lib, "..\\build\\imGUIWinLib.lib")
using namespace std;
int main()
{
cout << "imGUIWin.Demo" << endl;
InitializeGUIEngine();
cout << "GUI Engine has been initialized." << endl;
ViewHandle view01 = CreateNewViewWind... | 24.837838 | 75 | 0.581066 | Bit00009 |
27a1666fb2f9df9fbeadd5efa5ddf5724aa308d4 | 5,673 | cpp | C++ | src/backend/dnnl/patterns/reorder_fusion.cpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | src/backend/dnnl/patterns/reorder_fusion.cpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | src/backend/dnnl/patterns/reorder_fusion.cpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright 2021-2022 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.apa... | 45.75 | 80 | 0.52318 | wuxun-zhang |
27ab6eb974d421324d24ad2527fcb0c1b80f652c | 1,711 | cpp | C++ | main.cpp | thirdkindgames/thread_context | 715ba7a7a8be11f3806b85828096107cd9eb1619 | [
"Unlicense"
] | null | null | null | main.cpp | thirdkindgames/thread_context | 715ba7a7a8be11f3806b85828096107cd9eb1619 | [
"Unlicense"
] | null | null | null | main.cpp | thirdkindgames/thread_context | 715ba7a7a8be11f3806b85828096107cd9eb1619 | [
"Unlicense"
] | null | null | null | #include <assert.h>
#include <stack>
#include <windows.h>
#include "fiber_job_system.h"
#include "memory_pool.h"
#include "page_allocator.h"
#include "system_memory_pool.h"
#include "thread_context.h"
// Program
void main()
{
// Mem Test
char* x = new char[ 512 ]; // All... | 45.026316 | 191 | 0.670368 | thirdkindgames |
27aded1679161f1d0eefd20d95a03c012fb6fb36 | 1,013 | cpp | C++ | leetcode-solutions/medium/61 Rotate-List.cpp | jaikarans/coding-solutions | b3cb8251c902d6a8b626fff1a86500249ff7c9e4 | [
"MIT"
] | null | null | null | leetcode-solutions/medium/61 Rotate-List.cpp | jaikarans/coding-solutions | b3cb8251c902d6a8b626fff1a86500249ff7c9e4 | [
"MIT"
] | null | null | null | leetcode-solutions/medium/61 Rotate-List.cpp | jaikarans/coding-solutions | b3cb8251c902d6a8b626fff1a86500249ff7c9e4 | [
"MIT"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* ListNode(int x, ListNode *next) : val(x), next(next) {}
* };
*/
class Solution {
public:
ListNode* rotateRight... | 28.942857 | 90 | 0.483712 | jaikarans |
27aef24a7ac056d1fd0950cd6b1e13db814f5b83 | 2,428 | hh | C++ | include/G4NRFNuclearLevelStore.hh | jvavrek/NIMB2018 | 0aaf4143db2194b9f95002c681e4f860c8c76f7a | [
"MIT"
] | 4 | 2020-06-28T02:18:53.000Z | 2022-01-17T07:54:31.000Z | include/G4NRFNuclearLevelStore.hh | jvavrek/NIMB2018 | 0aaf4143db2194b9f95002c681e4f860c8c76f7a | [
"MIT"
] | 3 | 2018-08-16T18:49:53.000Z | 2020-10-19T18:04:25.000Z | include/G4NRFNuclearLevelStore.hh | jvavrek/NIMB2018 | 0aaf4143db2194b9f95002c681e4f860c8c76f7a | [
"MIT"
] | null | null | null | //
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration... | 39.803279 | 97 | 0.59514 | jvavrek |
27aefb76dc69488e0458ffb30b71fcdf94edd217 | 864 | hpp | C++ | src/metal-pipeline/include/metal-pipeline/operator_specification.hpp | metalfs/metal_fs | f244d4125622849f36bd7846881a5f3a7efca188 | [
"MIT"
] | 12 | 2020-04-21T05:21:32.000Z | 2022-02-19T11:27:18.000Z | src/metal-pipeline/include/metal-pipeline/operator_specification.hpp | metalfs/metal_fs | f244d4125622849f36bd7846881a5f3a7efca188 | [
"MIT"
] | 10 | 2019-02-10T17:10:16.000Z | 2020-02-01T20:05:42.000Z | src/metal-pipeline/include/metal-pipeline/operator_specification.hpp | metalfs/metal_fs | f244d4125622849f36bd7846881a5f3a7efca188 | [
"MIT"
] | 4 | 2020-07-15T04:42:20.000Z | 2022-02-19T11:27:19.000Z | #pragma once
#include <metal-pipeline/metal-pipeline_api.h>
#include <string>
#include <unordered_map>
#include <metal-pipeline/operator_argument.hpp>
namespace metal {
class METAL_PIPELINE_API OperatorSpecification {
public:
explicit OperatorSpecification(std::string id, const std::string& manifest);
std::s... | 25.411765 | 79 | 0.758102 | metalfs |
27b0e47d6ba351a80f5da82c3c167c3f05893d6e | 1,978 | cpp | C++ | Source/NightLight/Core/BaseImpactEffect.cpp | sena0711/NightLight | d7de62c0e731fa42973ac27ab20be7bc99e05688 | [
"Apache-2.0"
] | null | null | null | Source/NightLight/Core/BaseImpactEffect.cpp | sena0711/NightLight | d7de62c0e731fa42973ac27ab20be7bc99e05688 | [
"Apache-2.0"
] | null | null | null | Source/NightLight/Core/BaseImpactEffect.cpp | sena0711/NightLight | d7de62c0e731fa42973ac27ab20be7bc99e05688 | [
"Apache-2.0"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "BaseImpactEffect.h"
#include "PhysicalMaterials/PhysicalMaterial.h"
#include "Kismet/GameplayStatics.h"
#include "Materials/Material.h"
//#include "Components/SceneComponent.h"
//#include "Sound/SoundBase.h"
#include "Components/P... | 29.522388 | 115 | 0.787159 | sena0711 |
27b2961fb467b28a14de8321f475dc26165779db | 723 | cpp | C++ | swig/cpp/tests/transport/inproc.cpp | mwpowellhtx/cppnngswig | 44e4c050b77b83608b440801dd253995c14bd1fc | [
"MIT"
] | null | null | null | swig/cpp/tests/transport/inproc.cpp | mwpowellhtx/cppnngswig | 44e4c050b77b83608b440801dd253995c14bd1fc | [
"MIT"
] | null | null | null | swig/cpp/tests/transport/inproc.cpp | mwpowellhtx/cppnngswig | 44e4c050b77b83608b440801dd253995c14bd1fc | [
"MIT"
] | null | null | null | //
// Copyright (c) 2017 Michael W Powell <mwpowellhtx@gmail.com>
// Copyright 2017 Garrett D'Amore <garrett@damore.org>
// Copyright 2017 Capitar IT Group BV <info@capitar.com>
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
// fil... | 27.807692 | 70 | 0.706777 | mwpowellhtx |
27b5a4972bbff713175558c3a0de9c12ee830474 | 1,487 | cpp | C++ | test/engine/world/scene.t.cpp | numinousgames/tron | 86cd3e5a1f020f0b7f938e1abede8bb29a432dbb | [
"Apache-2.0"
] | null | null | null | test/engine/world/scene.t.cpp | numinousgames/tron | 86cd3e5a1f020f0b7f938e1abede8bb29a432dbb | [
"Apache-2.0"
] | null | null | null | test/engine/world/scene.t.cpp | numinousgames/tron | 86cd3e5a1f020f0b7f938e1abede8bb29a432dbb | [
"Apache-2.0"
] | null | null | null | // scene.t.cpp
#include <engine/world/scene.h>
#include <gtest/gtest.h>
#include "engine/world/mock_tickable.h"
TEST( Scene, Construction )
{
using namespace nge::wrld;
Scene scene;
Scene copy( scene );
Scene moved( std::move( scene ) );
copy = moved;
copy = std::move( moved );
}
TEST( Scen... | 20.943662 | 42 | 0.60121 | numinousgames |
27b990e961898e03202bbd0ecb432f3e2a2d7c73 | 59 | cpp | C++ | Plugins/ParseXML/Source/ParseXML/Private/SimpleSpline.cpp | dymons/Sumo2Unreal | c0dc6a9552572035535c9081df0006889213179a | [
"MIT"
] | 33 | 2018-10-03T17:05:14.000Z | 2022-03-09T08:10:40.000Z | Plugins/ParseXML/Source/ParseXML/Private/SimpleSpline.cpp | dymons/Sumo2Unreal | c0dc6a9552572035535c9081df0006889213179a | [
"MIT"
] | 7 | 2018-12-06T15:49:18.000Z | 2021-07-27T03:33:11.000Z | Plugins/ParseXML/Source/ParseXML/Private/SimpleSpline.cpp | dymons/Sumo2Unreal | c0dc6a9552572035535c9081df0006889213179a | [
"MIT"
] | 19 | 2019-04-17T05:22:27.000Z | 2021-07-27T03:08:43.000Z | #include "SimpleSpline.h"
SimpleSpline::SimpleSpline() {}; | 19.666667 | 32 | 0.745763 | dymons |
27b99f627bae9a54b10e0fa3479cbde992218694 | 664 | hpp | C++ | include/lol/def/LcdsPayloadDto.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T11:14:55.000Z | 2020-07-22T11:14:55.000Z | include/lol/def/LcdsPayloadDto.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | null | null | null | include/lol/def/LcdsPayloadDto.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 4 | 2018-12-01T22:48:21.000Z | 2020-07-22T11:14:56.000Z | #pragma once
#include "../base_def.hpp"
namespace lol {
struct LcdsPayloadDto {
std::string method;
std::map<std::string, std::string> headers;
std::string path;
std::string body;
};
inline void to_json(json& j, const LcdsPayloadDto& v) {
j["method"] = v.method;
j["headers"] = v.header... | 30.181818 | 75 | 0.585843 | Maufeat |
27bd55db8a9046a9a14a30bbe9c7dd6b56b54d99 | 462 | hpp | C++ | source/mat2.hpp | Lucius-sama/programmiersprachen-aufgabenblatt-2 | 35c98e73aece7c490269db35d0bfd595086a473a | [
"MIT"
] | null | null | null | source/mat2.hpp | Lucius-sama/programmiersprachen-aufgabenblatt-2 | 35c98e73aece7c490269db35d0bfd595086a473a | [
"MIT"
] | null | null | null | source/mat2.hpp | Lucius-sama/programmiersprachen-aufgabenblatt-2 | 35c98e73aece7c490269db35d0bfd595086a473a | [
"MIT"
] | null | null | null | #ifndef MAT2_HPP
#define MAT2_HPP
#include<array>
#include <cmath>
#include"vec2.hpp"
struct Mat2 {
float e_00 = 1.0f;
float e_01 = 0.0f;
float e_10 = 0.0f;
float e_11 = 1.0f;
Mat2& operator*=(Mat2 const& m);
float deter() const;
};
Mat2 operator*(Mat2 const& m1, Mat2 const& m2);
Vec2 opera... | 18.48 | 47 | 0.668831 | Lucius-sama |
27c0dac61f1aeb9f4c4cb987c46aa74053235b57 | 2,652 | cpp | C++ | day08/08_04_videoDrift/src/ofApp.cpp | ajbajb/ARTTECH3135-spring2019 | ecce35823dbdb37ad6d1071a6e0c290d5d795b2e | [
"MIT"
] | 1 | 2019-01-24T05:03:27.000Z | 2019-01-24T05:03:27.000Z | day08/08_04_videoDrift/src/ofApp.cpp | ajbajb/ARTTECH3135-spring2019 | ecce35823dbdb37ad6d1071a6e0c290d5d795b2e | [
"MIT"
] | null | null | null | day08/08_04_videoDrift/src/ofApp.cpp | ajbajb/ARTTECH3135-spring2019 | ecce35823dbdb37ad6d1071a6e0c290d5d795b2e | [
"MIT"
] | 1 | 2019-04-11T18:26:18.000Z | 2019-04-11T18:26:18.000Z | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup()
{
grabber.setup(640, 480);
gw = grabber.getWidth();
gh = grabber.getHeight();
bufferPix.allocate(gw, gh, OF_PIXELS_RGB);
tex.allocate(gw, gh, GL_RGB);
bufferPix.set(255);
}
//-----... | 23.678571 | 86 | 0.343514 | ajbajb |
27c7e278a0ba05774413146ed4b9f8f68c15ebc3 | 1,761 | cpp | C++ | src/Sphere.cpp | nsilvestri/cpp-raytracer | 79336657784f5bd76bb3d15985488bd61255e00b | [
"MIT"
] | 1 | 2021-03-29T09:39:33.000Z | 2021-03-29T09:39:33.000Z | src/Sphere.cpp | nsilvestri/cpp-raytracer | 79336657784f5bd76bb3d15985488bd61255e00b | [
"MIT"
] | 1 | 2021-05-19T05:55:23.000Z | 2021-09-07T14:00:01.000Z | src/Sphere.cpp | nsilvestri/cpp-raytracer | 79336657784f5bd76bb3d15985488bd61255e00b | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
#include "Sphere.hpp"
#include "Vector3D.hpp"
#include "Ray3D.hpp"
#include "IntersectionRecord.hpp"
Sphere::Sphere()
{
}
Sphere::Sphere(Vector3D position, float radius)
{
this->setPosition(position);
this->setRadius(radius);
}
Vector3D Sphere::getPo... | 24.123288 | 112 | 0.578648 | nsilvestri |
27c8e7abdea4e48fff14c39789b4633ec14f7e0d | 18,739 | cpp | C++ | TextFile/TextFile.cpp | pmachapman/Tulip | 54f7bc3e8d5bb452ed8de6e6622e23d5e9be650a | [
"Unlicense"
] | null | null | null | TextFile/TextFile.cpp | pmachapman/Tulip | 54f7bc3e8d5bb452ed8de6e6622e23d5e9be650a | [
"Unlicense"
] | 33 | 2018-09-14T21:58:20.000Z | 2022-01-12T21:39:22.000Z | TextFile/TextFile.cpp | pmachapman/Tulip | 54f7bc3e8d5bb452ed8de6e6622e23d5e9be650a | [
"Unlicense"
] | null | null | null | /* ==========================================================================
Class : CTextFile
Author : Johan Rosengren, Abstrakt Mekanik AB
Date : 2004-03-22
Purpose : The class is a helper-package for text files and
windows. It allows loading and saving text files in a
single operation, as wel... | 23.780457 | 104 | 0.566946 | pmachapman |
27cac3ab4618836b2c4357611d31a49178579e95 | 1,376 | cpp | C++ | Week4/Ex_Curs/main.cpp | cristearadu02/CommandDefense | e8878359b18cedf4c2d3975198fcd661bdff1d8b | [
"MIT"
] | null | null | null | Week4/Ex_Curs/main.cpp | cristearadu02/CommandDefense | e8878359b18cedf4c2d3975198fcd661bdff1d8b | [
"MIT"
] | null | null | null | Week4/Ex_Curs/main.cpp | cristearadu02/CommandDefense | e8878359b18cedf4c2d3975198fcd661bdff1d8b | [
"MIT"
] | null | null | null | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <string.h>
#include "Sort.h"
using namespace std;
int main()
{
char c1[] = "209,73,900,85,6";
Sort a(c1); // din sir de caractere
a.Print();
a.BubbleSort();
a.Print();
a.QuickSort();
a.Print();
a.InsertSort();
a.Print();
printf("\n%d\n%d", a.GetEl... | 20.537313 | 68 | 0.617733 | cristearadu02 |
27cc57bc206f0f416f6da50d0b0047a514f44313 | 3,331 | cpp | C++ | test/testGeneric.cpp | borisVanhoof/peafowl | 56f7feb6480fc20052d3077a1b5032f48266dca9 | [
"MIT"
] | null | null | null | test/testGeneric.cpp | borisVanhoof/peafowl | 56f7feb6480fc20052d3077a1b5032f48266dca9 | [
"MIT"
] | null | null | null | test/testGeneric.cpp | borisVanhoof/peafowl | 56f7feb6480fc20052d3077a1b5032f48266dca9 | [
"MIT"
] | null | null | null | /**
* Generic tests.
**/
#include "common.h"
#include <time.h>
TEST(GenericTest, MaxFlows) {
pfwl_state_t* state = pfwl_init();
std::vector<uint> protocols;
pfwl_set_expected_flows(state, 1, PFWL_FLOWS_STRATEGY_SKIP);
uint errors = 0;
getProtocols("./pcaps/whatsapp.pcap", protocols, state, [&](pfwl_status... | 40.621951 | 110 | 0.794056 | borisVanhoof |
27d04c21ae8ad74b0fd41881785163136d4bbf7e | 3,535 | hpp | C++ | src/test/test_component_oom.hpp | jmbannon/KerasSynthesized | 50e0275dadd45c5418384186e2541f4db7f5f9ed | [
"MIT"
] | 3 | 2018-10-30T04:10:34.000Z | 2021-09-07T15:19:55.000Z | src/test/test_component_oom.hpp | jmbannon/KerasSynthesized | 50e0275dadd45c5418384186e2541f4db7f5f9ed | [
"MIT"
] | null | null | null | src/test/test_component_oom.hpp | jmbannon/KerasSynthesized | 50e0275dadd45c5418384186e2541f4db7f5f9ed | [
"MIT"
] | null | null | null | #ifndef TEST_CONVOLUTION_OOM_HPP
#define TEST_CONVOLUTION_OOM_HPP
#include "HLS/hls.h"
#include <stdio.h>
#include <math.h>
#include "../tensor3.hpp"
#include "../tensor4.hpp"
#include "../common.hpp"
#include "../component_convolver.hpp"
int test_component_oom_args(uint input_rows,
uint i... | 29.214876 | 184 | 0.610184 | jmbannon |
27d051e118c6aaca9f3210335c3162ce99c38c6b | 46,532 | cpp | C++ | src/Parser.cpp | Ibarria/rapid | 866e32bc9b902f5f5814063f1556cfc6b1c697bf | [
"MIT"
] | 8 | 2019-10-25T19:49:27.000Z | 2022-01-25T00:20:29.000Z | src/Parser.cpp | Ibarria/c2 | 866e32bc9b902f5f5814063f1556cfc6b1c697bf | [
"MIT"
] | null | null | null | src/Parser.cpp | Ibarria/c2 | 866e32bc9b902f5f5814063f1556cfc6b1c697bf | [
"MIT"
] | null | null | null | #include "Parser.h"
#include "Lexer.h"
#include "Interpreter.h"
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#ifndef WIN32
# define sprintf_s sprintf
# define vsprintf_s vsnprintf
# define strncpy_s strncpy
#endif
extern bool option_printTokens;
#define NEW_AST... | 29.469284 | 112 | 0.572058 | Ibarria |
27d267ead683bc769840aec6e7f7a5acd2b22680 | 1,425 | hpp | C++ | schema_parser/Schema.hpp | josefschmeisser/TardisDB | 0d805c4730533fa37c3668acd592404027b9b0d6 | [
"Apache-2.0"
] | 5 | 2021-01-15T16:59:59.000Z | 2022-02-28T15:41:00.000Z | schema_parser/Schema.hpp | josefschmeisser/TardisDB | 0d805c4730533fa37c3668acd592404027b9b0d6 | [
"Apache-2.0"
] | null | null | null | schema_parser/Schema.hpp | josefschmeisser/TardisDB | 0d805c4730533fa37c3668acd592404027b9b0d6 | [
"Apache-2.0"
] | 1 | 2021-06-22T04:53:38.000Z | 2021-06-22T04:53:38.000Z | #ifndef H_Schema_hpp
#define H_Schema_hpp
#include <vector>
#include <string>
#include <unordered_map>
#include "Types.hpp"
#include <memory>
namespace SchemaParser {
struct Schema {
struct SecondaryIndex {
std::string name;
std::string table;
std::vector<unsigned> attributes;
SecondaryIn... | 25.446429 | 75 | 0.667368 | josefschmeisser |
27d39bfa2b856a1d6bc6d630c33bf409fb69264d | 1,385 | cpp | C++ | DESIRE-Engine/src/Engine/Physics/PhysicsComponent.cpp | nyaki-HUN/DESIRE | dd579bffa77bc6999266c8011bc389bb96dee01d | [
"BSD-2-Clause"
] | 1 | 2020-10-04T18:50:01.000Z | 2020-10-04T18:50:01.000Z | DESIRE-Engine/src/Engine/Physics/PhysicsComponent.cpp | nyaki-HUN/DESIRE | dd579bffa77bc6999266c8011bc389bb96dee01d | [
"BSD-2-Clause"
] | null | null | null | DESIRE-Engine/src/Engine/Physics/PhysicsComponent.cpp | nyaki-HUN/DESIRE | dd579bffa77bc6999266c8011bc389bb96dee01d | [
"BSD-2-Clause"
] | 1 | 2018-09-18T08:03:33.000Z | 2018-09-18T08:03:33.000Z | #include "Engine/stdafx.h"
#include "Engine/Physics/PhysicsComponent.h"
#include "Engine/Physics/ColliderShape.h"
#include "Engine/Physics/Physics.h"
PhysicsComponent::PhysicsComponent(GameObject& object)
: Component(object)
, m_collisionLayer(EPhysicsCollisionLayer::Default)
{
Modules::Physics->OnPhysicsComponent... | 28.854167 | 96 | 0.823105 | nyaki-HUN |
27d5c06f468040ac9f7a3fb1a5d1da135cf3b071 | 3,368 | cpp | C++ | Sources/Files/LoadedValue.cpp | hhYanGG/Acid | f5543e9290aee5e25c6ecdafe8a3051054b203c0 | [
"MIT"
] | 1 | 2019-03-13T08:26:38.000Z | 2019-03-13T08:26:38.000Z | Sources/Files/LoadedValue.cpp | hhYanGG/Acid | f5543e9290aee5e25c6ecdafe8a3051054b203c0 | [
"MIT"
] | null | null | null | Sources/Files/LoadedValue.cpp | hhYanGG/Acid | f5543e9290aee5e25c6ecdafe8a3051054b203c0 | [
"MIT"
] | null | null | null | #include "LoadedValue.hpp"
#include <ostream>
namespace acid
{
LoadedValue::LoadedValue(LoadedValue *parent, const std::string &name, const std::string &value, const std::map<std::string, std::string> &attributes) :
m_parent(parent),
m_children(std::vector<LoadedValue *>()),
m_name(FormatString::RemoveAll(name... | 19.468208 | 159 | 0.649644 | hhYanGG |
27d6344871393ba0ea54801376ae49b4ef1f9650 | 5,223 | cc | C++ | daemon/network_interface_description.cc | nawazish-couchbase/kv_engine | 132f1bb04c9212bcac9e401d069aeee5f63ff1cd | [
"MIT",
"BSD-3-Clause"
] | 104 | 2017-05-22T20:41:57.000Z | 2022-03-24T00:18:34.000Z | daemon/network_interface_description.cc | nawazish-couchbase/kv_engine | 132f1bb04c9212bcac9e401d069aeee5f63ff1cd | [
"MIT",
"BSD-3-Clause"
] | 3 | 2017-11-14T08:12:46.000Z | 2022-03-03T11:14:17.000Z | daemon/network_interface_description.cc | nawazish-couchbase/kv_engine | 132f1bb04c9212bcac9e401d069aeee5f63ff1cd | [
"MIT",
"BSD-3-Clause"
] | 71 | 2017-05-22T20:41:59.000Z | 2022-03-29T10:34:32.000Z | /*
* Copyright 2021-Present Couchbase, Inc.
*
* Use of this software is governed by the Business Source License included
* in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
* in that file, in accordance with the Business Source License, use of this
* software will be governed by... | 39.870229 | 80 | 0.515987 | nawazish-couchbase |
27dac96816d29817f5b26faa1fc7d35519651029 | 422 | hpp | C++ | exceptions/InvalidDataException.hpp | Adrijaned/oglPlaygorund | ce3c31669263545650efcc4b12dd22e6517ccaa7 | [
"MIT"
] | null | null | null | exceptions/InvalidDataException.hpp | Adrijaned/oglPlaygorund | ce3c31669263545650efcc4b12dd22e6517ccaa7 | [
"MIT"
] | null | null | null | exceptions/InvalidDataException.hpp | Adrijaned/oglPlaygorund | ce3c31669263545650efcc4b12dd22e6517ccaa7 | [
"MIT"
] | null | null | null | //
// Created by adrijarch on 5/26/19.
//
#ifndef OGLPLAYGROUND_INVALIDDATAEXCEPTION_HPP
#define OGLPLAYGROUND_INVALIDDATAEXCEPTION_HPP
#include <stdexcept>
/**
* Marks any case where data has not been as expected.
*/
class InvalidDataException : public std::runtime_error {
public:
explicit InvalidDataException(... | 21.1 | 80 | 0.774882 | Adrijaned |
27dbe03cdcc424e19cf179c200f36afdfb516e5e | 854 | hpp | C++ | Helena/Traits/Constness.hpp | NIKEA-SOFT/HelenaFramework | 4f443710e6a67242ddd4361f9c1a89e9d757c820 | [
"MIT"
] | 24 | 2020-08-17T21:49:38.000Z | 2022-03-31T13:31:46.000Z | Helena/Traits/Constness.hpp | NIKEA-SOFT/HelenaFramework | 4f443710e6a67242ddd4361f9c1a89e9d757c820 | [
"MIT"
] | null | null | null | Helena/Traits/Constness.hpp | NIKEA-SOFT/HelenaFramework | 4f443710e6a67242ddd4361f9c1a89e9d757c820 | [
"MIT"
] | 2 | 2021-04-21T09:27:03.000Z | 2021-08-20T09:44:53.000Z | #ifndef HELENA_TRAITS_CONSTNESS_HPP
#define HELENA_TRAITS_CONSTNESS_HPP
#include <type_traits>
namespace Helena::Traits
{
/**
* @brief Transcribes the constness of a type to another type.
* @tparam To The type to which to transcribe the constness.
* @tparam From The type from which to tra... | 30.5 | 82 | 0.660422 | NIKEA-SOFT |
27e7f84dd56ff1377295227a2b0ede4ee928a7fd | 1,178 | hpp | C++ | src/gui/hud/hud.hpp | louiz/batajelo | 4d8edce8da9d3b17dbad68eb4881d7f6fee2f76e | [
"BSL-1.0",
"BSD-2-Clause",
"Zlib",
"MIT"
] | 7 | 2015-01-28T09:17:08.000Z | 2020-04-21T13:51:16.000Z | src/gui/hud/hud.hpp | louiz/batajelo | 4d8edce8da9d3b17dbad68eb4881d7f6fee2f76e | [
"BSL-1.0",
"BSD-2-Clause",
"Zlib",
"MIT"
] | null | null | null | src/gui/hud/hud.hpp | louiz/batajelo | 4d8edce8da9d3b17dbad68eb4881d7f6fee2f76e | [
"BSL-1.0",
"BSD-2-Clause",
"Zlib",
"MIT"
] | 1 | 2020-07-11T09:20:25.000Z | 2020-07-11T09:20:25.000Z | /** @addtogroup Ui
* @{
*/
/**
* Uniq object owned by the Screen. It is in charge of displaying all
* static information about the game, like the time, the minimap, entities
* attributes, interface buttons, etc.
* @class Hud
*/
#include <SFML/System.hpp>
#ifndef __HUP_HPP__
# define __HUP_HPP__
#define HUD_... | 22.226415 | 74 | 0.726655 | louiz |
27e9f2aa136291997b4f98ad4946faa09e82375f | 1,944 | hpp | C++ | pellets/z_http/mem_write.hpp | wohaaitinciu/zpublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 50 | 2015-01-07T01:54:54.000Z | 2021-01-15T00:41:48.000Z | pellets/z_http/mem_write.hpp | sinmx/ZPublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 1 | 2015-05-26T07:40:19.000Z | 2015-05-26T07:40:19.000Z | pellets/z_http/mem_write.hpp | sinmx/ZPublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 39 | 2015-01-07T02:03:15.000Z | 2021-01-15T00:41:50.000Z | /*************************************************************************
* *
* I|*j^3Cl|a "+!*% qt Nd gW *
* l]{y+l?MM* !#Wla\NNP NW MM I| *
* PW ?E| ... | 30.857143 | 74 | 0.296811 | wohaaitinciu |
27eee5181ee98dc3d63b1216c64d059f9b5afdba | 5,995 | hpp | C++ | src/math/CartesianToGeodeticFukushima.hpp | JordanMcManus/MBES-lib | 618d64f4e042bf5660015819f89537cdd70e696d | [
"MIT"
] | 13 | 2019-10-29T14:16:13.000Z | 2022-02-24T06:44:37.000Z | src/math/CartesianToGeodeticFukushima.hpp | JordanMcManus/MBES-lib | 618d64f4e042bf5660015819f89537cdd70e696d | [
"MIT"
] | 62 | 2019-04-16T13:53:50.000Z | 2022-03-07T19:44:23.000Z | src/math/CartesianToGeodeticFukushima.hpp | JordanMcManus/MBES-lib | 618d64f4e042bf5660015819f89537cdd70e696d | [
"MIT"
] | 18 | 2019-04-10T19:51:21.000Z | 2022-01-31T21:42:22.000Z | /*
* Copyright 2020 © Centre Interdisciplinaire de développement en Cartographie des Océans (CIDCO), Tous droits réservés
*/
/*
* File: CartesianToGeodeticFukushima.hpp
* Author: jordan
*/
#ifndef CARTESIANTOGEODETICFUKUSHIMA_HPP
#define CARTESIANTOGEODETICFUKUSHIMA_HPP
#ifdef _WIN32
#define _USE_MATH_DEFINES... | 32.93956 | 139 | 0.568474 | JordanMcManus |
27f50ee1c6d1bb148b49053e73d852f5ee973bd8 | 2,350 | cpp | C++ | src/framework/GSD3D11Mesh.cpp | 3dhater/miGUI | a086201ce18393d7d00f4018a201635ed5aa63c0 | [
"MIT"
] | 1 | 2021-11-16T23:11:26.000Z | 2021-11-16T23:11:26.000Z | src/framework/GSD3D11Mesh.cpp | 3dhater/miGUI | a086201ce18393d7d00f4018a201635ed5aa63c0 | [
"MIT"
] | null | null | null | src/framework/GSD3D11Mesh.cpp | 3dhater/miGUI | a086201ce18393d7d00f4018a201635ed5aa63c0 | [
"MIT"
] | null | null | null | #include "mgf.h"
#ifdef MGF_GS_D3D11
#include "Log.h"
#include "GSD3D11.h"
#include "GSD3D11Mesh.h"
using namespace mgf;
GSD3D11Mesh::GSD3D11Mesh(GSMeshInfo* mi, ID3D11Device* d, ID3D11DeviceContext* dc)
{
m_d3d11DevCon = dc;
m_meshInfo = *mi;
Mesh* mesh = (Mesh*)m_meshInfo.m_meshPtr;
m_vertexType = mesh->m_ver... | 21.363636 | 82 | 0.722979 | 3dhater |
27f56b53bc11e807e51a4ede90f64c85420a85ec | 758 | cpp | C++ | src/scenes/stage.cpp | AgoutiGames/Piper | 160f0c7e8afb8d3ea91dd69ee10c63da60f66a21 | [
"MIT"
] | null | null | null | src/scenes/stage.cpp | AgoutiGames/Piper | 160f0c7e8afb8d3ea91dd69ee10c63da60f66a21 | [
"MIT"
] | 2 | 2020-06-13T11:48:59.000Z | 2020-06-13T11:56:24.000Z | src/scenes/stage.cpp | AgoutiGames/Piper | 160f0c7e8afb8d3ea91dd69ee10c63da60f66a21 | [
"MIT"
] | null | null | null | #include "scenes/stage.hpp"
#include "core/scene_manager.hpp"
const char* Stage::type = "Stage";
const bool Stage::good = GameScene::register_class<Stage>(Stage::type);
Stage::Stage(salmon::MapRef map, SceneManager* scene_manager) :
GameScene(map,scene_manager) {}
void Stage::init() {
m_scene_manager->set_g... | 25.266667 | 71 | 0.695251 | AgoutiGames |
27f7d4bfcbb0624d36a6f492fcc93315fc86bbb9 | 1,141 | cxx | C++ | Applications/WorkBench/main.cxx | linson7017/MIPF | adf982ae5de69fca9d6599fbbbd4ca30f4ae9767 | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2017-04-13T06:01:49.000Z | 2019-12-04T07:23:53.000Z | Applications/WorkBench/main.cxx | linson7017/MIPF | adf982ae5de69fca9d6599fbbbd4ca30f4ae9767 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2017-10-27T02:00:44.000Z | 2017-10-27T02:00:44.000Z | Applications/WorkBench/main.cxx | linson7017/MIPF | adf982ae5de69fca9d6599fbbbd4ca30f4ae9767 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2017-09-06T01:59:07.000Z | 2019-12-04T07:23:54.000Z | #include <QApplication>
//qfmain
#include "iqf_main.h"
//qtxml
#include "Utils/PluginFactory.h"
#include "UIs/QF_Plugin.h"
#ifdef Q_WS_X11
#include <X11/Xlib.h>
#endif
#include "qf_log.h"
int main(int argc, char *argv[])
{
QApplication qtapplication(argc, argv);
std::cout << "*****************************... | 33.558824 | 154 | 0.568799 | linson7017 |
27f9371977b9d599d725a7c73671a4ead38ad6b0 | 3,819 | cpp | C++ | src/tracer/src/core/medium/heterogeneous.cpp | AirGuanZ/Atrc | a0c4bc1b7bb96ddffff8bb1350f88b651b94d993 | [
"MIT"
] | 358 | 2018-11-29T08:15:05.000Z | 2022-03-31T07:48:37.000Z | src/tracer/src/core/medium/heterogeneous.cpp | happyfire/Atrc | 74cac111e277be53eddea5638235d97cec96c378 | [
"MIT"
] | 23 | 2019-04-06T17:23:58.000Z | 2022-02-08T14:22:46.000Z | src/tracer/src/core/medium/heterogeneous.cpp | happyfire/Atrc | 74cac111e277be53eddea5638235d97cec96c378 | [
"MIT"
] | 22 | 2019-03-04T01:47:56.000Z | 2022-01-13T06:06:49.000Z | #include <agz/tracer/core/medium.h>
#include <agz/tracer/core/texture3d.h>
#include <agz/tracer/utility/phase_function.h>
#include <agz-utils/misc.h>
#include <agz-utils/texture.h>
AGZ_TRACER_BEGIN
class HeterogeneousMedium : public Medium
{
FTransform3 local_to_world_;
RC<const Texture3D> density_;
RC<c... | 28.5 | 81 | 0.579733 | AirGuanZ |
7e061b21f22d9c5e4f585bf7e991810c4974be77 | 554 | cpp | C++ | src/ShowAlwaysOn.cpp | joergkeller/arduino-musicbox | 2fbbfabd77a9daf6fdc73b6212416be7ec7bca22 | [
"MIT"
] | null | null | null | src/ShowAlwaysOn.cpp | joergkeller/arduino-musicbox | 2fbbfabd77a9daf6fdc73b6212416be7ec7bca22 | [
"MIT"
] | 7 | 2019-05-12T22:08:55.000Z | 2021-04-29T12:26:25.000Z | src/ShowAlwaysOn.cpp | joergkeller/arduino-musicbox | 2fbbfabd77a9daf6fdc73b6212416be7ec7bca22 | [
"MIT"
] | null | null | null | /*
* Constantly switch on all lights of the trellis display.
*
* Written by Jörg Keller, Winterthur, Switzerland
* https://github.com/joergkeller/arduino-musicbox
* MIT license, all text above must be included in any redistribution
*/
#include "ShowAlwaysOn.h"
ShowAlwaysOn::ShowAlwaysOn(const Adafruit_Trellis&... | 25.181818 | 69 | 0.722022 | joergkeller |
7e0d343109dfea3b9c1cc5bb77248222b6979b1d | 1,114 | cpp | C++ | 02_Programming_Fundamentals/06_Programming_Fundamentals_CPP/12_Judge_Assignment_3_(7_July_2018)/03_Teams.cpp | Knightwalker/Knowledgebase | 00c6dea5e52c0d2b0fe0dc3b7b5c298d445f0161 | [
"MIT"
] | null | null | null | 02_Programming_Fundamentals/06_Programming_Fundamentals_CPP/12_Judge_Assignment_3_(7_July_2018)/03_Teams.cpp | Knightwalker/Knowledgebase | 00c6dea5e52c0d2b0fe0dc3b7b5c298d445f0161 | [
"MIT"
] | null | null | null | 02_Programming_Fundamentals/06_Programming_Fundamentals_CPP/12_Judge_Assignment_3_(7_July_2018)/03_Teams.cpp | Knightwalker/Knowledgebase | 00c6dea5e52c0d2b0fe0dc3b7b5c298d445f0161 | [
"MIT"
] | null | null | null | #include <iostream>;
#include <string>;
#include <unordered_set>
#include <unordered_map>
#include <map>;
using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::map;
using std::unordered_map;
using std::unordered_set;
int main() {
std::cin.sync_with_stdio(false);
std::cout.sync_with_stdio(... | 20.62963 | 95 | 0.631957 | Knightwalker |
7e0ed2ed9273a7f594c83ab02d157548ca530ace | 1,483 | cpp | C++ | solved/c-e/dynamic-frog/frog.cpp | abuasifkhan/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-09-30T19:18:04.000Z | 2021-06-26T21:11:30.000Z | solved/c-e/dynamic-frog/frog.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | null | null | null | solved/c-e/dynamic-frog/frog.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-01-04T09:49:54.000Z | 2021-06-03T13:18:44.000Z | #include <algorithm>
#include <cstdio>
#include <cstring>
using namespace std;
#define MAXN 100
#define Zero(v) memset((v), 0, sizeof(v))
int N, D;
int rocks[MAXN + 2];
int n;
bool vis[MAXN + 2];
bool check(int d)
{
Zero(vis);
int from = 0, to = 0;
for (int i = 1; i < n; ++i) {
if (rocks[i]... | 16.662921 | 62 | 0.403237 | abuasifkhan |
7e12279f45de48bf733b2984cf350751b11a54a0 | 838 | cpp | C++ | src/util/util.cpp | TijnBertens/light-show | a95c63b96643b9ec5dead495ffc6f45048bfee5f | [
"MIT"
] | 1 | 2020-11-10T22:05:19.000Z | 2020-11-10T22:05:19.000Z | src/util/util.cpp | TijnBertens/light-show | a95c63b96643b9ec5dead495ffc6f45048bfee5f | [
"MIT"
] | null | null | null | src/util/util.cpp | TijnBertens/light-show | a95c63b96643b9ec5dead495ffc6f45048bfee5f | [
"MIT"
] | null | null | null | #include "util.hpp"
int Util::read_file(char **buffer, size_t *size, const char *file_name)
{
FILE *file = fopen(file_name, "rb");
if (!file) {
ls_log::log(LOG_ERROR, "failed to open file \"%s\"\n", file_name);
return EXIT_FAILURE;
}
fseek(file, 0, SEEK_END);
*size = ftell(file);
... | 23.277778 | 76 | 0.577566 | TijnBertens |
7e14065129dfc400b0987c24236954090dbe741d | 4,811 | cpp | C++ | test_deprecated/testUtil/example_tc_socket.cpp | SuckShit/TarsCpp | 3f42f4e7a7bf43026a782c5d4b033155c27ed0c4 | [
"BSD-3-Clause"
] | 1 | 2019-09-05T07:25:51.000Z | 2019-09-05T07:25:51.000Z | test_deprecated/testUtil/example_tc_socket.cpp | SuckShit/TarsCpp | 3f42f4e7a7bf43026a782c5d4b033155c27ed0c4 | [
"BSD-3-Clause"
] | null | null | null | test_deprecated/testUtil/example_tc_socket.cpp | SuckShit/TarsCpp | 3f42f4e7a7bf43026a782c5d4b033155c27ed0c4 | [
"BSD-3-Clause"
] | 1 | 2021-05-21T09:59:06.000Z | 2021-05-21T09:59:06.000Z | /**
* Tencent is pleased to support the open source community by making Tars available.
*
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
* in compliance with the License. You may obtain a ... | 21.193833 | 92 | 0.49761 | SuckShit |
7e1e127e19c3473f9d35587aee2a2f2ef038b05e | 610 | cpp | C++ | Level 4/Exercices de deblocage du Niveau 4/Baguenaudier/main.cpp | Wurlosh/France-ioi | f5fb36003cbfc56a2e7cf64ad43c4452f086f198 | [
"MIT"
] | 31 | 2018-10-30T09:54:23.000Z | 2022-03-02T21:45:51.000Z | Level 4/Exercices de deblocage du Niveau 4/Baguenaudier/main.cpp | Wurlosh/France-ioi | f5fb36003cbfc56a2e7cf64ad43c4452f086f198 | [
"MIT"
] | 2 | 2016-12-24T23:39:20.000Z | 2017-07-02T22:51:28.000Z | Level 4/Exercices de deblocage du Niveau 4/Baguenaudier/main.cpp | Wurlosh/France-ioi | f5fb36003cbfc56a2e7cf64ad43c4452f086f198 | [
"MIT"
] | 30 | 2018-10-25T12:28:36.000Z | 2022-01-31T14:31:02.000Z | #include <bits/stdc++.h>
#define N 20
using namespace std;
int tab[N];
string ans[N];
string v[N];
int n;
int main()
{
ios_base::sync_with_stdio(0);
ans[1]="1";
ans[2]="2\n1";
v[1]="1";
v[2]="1\n2\n1";
cin>>n;
for(int i=3;i<=n;++i)
{
ans[i]="";
ans[i]=ans[i]+ans[i-2]+"\n";
if... | 16.944444 | 34 | 0.406557 | Wurlosh |
7e219e1b2c300ef8b466403ebd01c7ddd29d7c70 | 2,897 | cpp | C++ | CaptureManagerSource/CaptureManager/Main.cpp | luoyingwen/CaptureManagerSDK | e96395a120175a45c56ff4e2b3283b807a42fd75 | [
"MIT"
] | 64 | 2020-07-20T09:35:16.000Z | 2022-03-27T19:13:08.000Z | CaptureManagerSource/CaptureManager/Main.cpp | luoyingwen/CaptureManagerSDK | e96395a120175a45c56ff4e2b3283b807a42fd75 | [
"MIT"
] | 8 | 2020-07-30T09:20:28.000Z | 2022-03-03T22:37:10.000Z | CaptureManagerSource/CaptureManager/Main.cpp | luoyingwen/CaptureManagerSDK | e96395a120175a45c56ff4e2b3283b807a42fd75 | [
"MIT"
] | 28 | 2020-07-20T13:02:42.000Z | 2022-03-18T07:36:05.000Z | /*
MIT License
Copyright(c) 2020 Evgeny Pereguda
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, publish,... | 24.974138 | 85 | 0.754574 | luoyingwen |
7e28d48a883b09ea6b4fbe126622a7206d5a7d32 | 1,872 | cc | C++ | transformations/legacy/LinearInterpolator.cc | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | 5 | 2019-10-14T01:06:57.000Z | 2021-02-02T16:33:06.000Z | transformations/legacy/LinearInterpolator.cc | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | null | null | null | transformations/legacy/LinearInterpolator.cc | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | null | null | null | #include "LinearInterpolator.hh"
void LinearInterpolator::indexBins() {
if (m_xs.size() < 2) {
return;
}
double minbinsize = std::numeric_limits<double>::infinity();
for (size_t i = 0; i < m_xs.size()-1; ++i) {
minbinsize = std::min(minbinsize, m_xs[i+1] - m_xs[i]);
}
m_index.clear();
m_index.res... | 27.130435 | 74 | 0.514423 | gnafit |
7e2aadb0e396b36365109f16ac9086a5307fcc81 | 990 | cpp | C++ | learn_joy/src/jaws_joy_pub_joint.cpp | iConor/learn-ros | 91343f06c9d0df1c69ff01203a959366b0905953 | [
"BSD-3-Clause"
] | 2 | 2015-10-21T16:37:07.000Z | 2017-09-03T13:54:36.000Z | learn_joy/src/jaws_joy_pub_joint.cpp | iConor/learn-ros | 91343f06c9d0df1c69ff01203a959366b0905953 | [
"BSD-3-Clause"
] | null | null | null | learn_joy/src/jaws_joy_pub_joint.cpp | iConor/learn-ros | 91343f06c9d0df1c69ff01203a959366b0905953 | [
"BSD-3-Clause"
] | null | null | null | #include <ros/ros.h>
#include <sensor_msgs/JointState.h>
#include <sensor_msgs/Joy.h>
class Servos
{
private:
ros::NodeHandle nh;
ros::Subscriber sub;
ros::Publisher pub;
sensor_msgs::JointState js;
public:
Servos();
void callback(const sensor_msgs::Joy::ConstPtr& joy);
void loop();
};
... | 19.411765 | 74 | 0.634343 | iConor |
7e2e35a3010afffb4f4882e87cd594fc5d4b5db6 | 1,813 | hpp | C++ | src/FrameWork/Math/Vectors.hpp | kevin20x2/PersistEngine | eeb4e14840d53274aa51fca6ad69f6f44a4e61ab | [
"MIT"
] | null | null | null | src/FrameWork/Math/Vectors.hpp | kevin20x2/PersistEngine | eeb4e14840d53274aa51fca6ad69f6f44a4e61ab | [
"MIT"
] | null | null | null | src/FrameWork/Math/Vectors.hpp | kevin20x2/PersistEngine | eeb4e14840d53274aa51fca6ad69f6f44a4e61ab | [
"MIT"
] | null | null | null | #pragma once
#include <math.h>
namespace Persist
{
#pragma pack(push)
#pragma pack(4)
template <typename T>
struct Vector2
{
Vector2(T _x, T _y) :
x(_x)
{
}
T x,y;
};
using Vector2f = Vector2<float>;
template <typename T>
struct Vector3
{
Vector3(T _x,T _y , T _z) :
x(_x),y(... | 15.62931 | 64 | 0.453392 | kevin20x2 |
7e2fe949026cf8235f24d233935c8342af9c649a | 2,955 | cpp | C++ | benchmarks/statistical/spawn_threads_analysis.cpp | vamatya/benchmarks | 8a86c6eebac5f9a29a0e37a62bdace45395c8d73 | [
"BSL-1.0"
] | null | null | null | benchmarks/statistical/spawn_threads_analysis.cpp | vamatya/benchmarks | 8a86c6eebac5f9a29a0e37a62bdace45395c8d73 | [
"BSL-1.0"
] | null | null | null | benchmarks/statistical/spawn_threads_analysis.cpp | vamatya/benchmarks | 8a86c6eebac5f9a29a0e37a62bdace45395c8d73 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2012 Daniel Kogler
//
// 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)
/*This benchmark measures how long it takes to spawn new threads directly*/
#include "statstd.hpp"
#include <hpx/includ... | 33.579545 | 82 | 0.554315 | vamatya |
7e314be72e15b42eb5bf81a4f947791aeed1a9ab | 2,040 | cpp | C++ | src/net/LwipOutputQueue.cpp | jnmeurisse/FortiRDP | 53f48413c8a292304de27468b271847534353c61 | [
"Apache-2.0"
] | null | null | null | src/net/LwipOutputQueue.cpp | jnmeurisse/FortiRDP | 53f48413c8a292304de27468b271847534353c61 | [
"Apache-2.0"
] | null | null | null | src/net/LwipOutputQueue.cpp | jnmeurisse/FortiRDP | 53f48413c8a292304de27468b271847534353c61 | [
"Apache-2.0"
] | 1 | 2022-02-19T19:47:43.000Z | 2022-02-19T19:47:43.000Z | /*!
* This file is part of FortiRDP
*
* Copyright (C) 2022 Jean-Noel Meurisse
* SPDX-License-Identifier: Apache-2.0
*
*/
#include <algorithm>
#include "net/LwipOutputQueue.h"
namespace net {
using namespace tools;
LwipOutputQueue::LwipOutputQueue(int capacity):
OutputQueue(capacity),
_logger(Logger::get_logger... | 21.030928 | 84 | 0.647059 | jnmeurisse |
cce3401856453e5ad64f0c61acf95e1c3f2e7067 | 1,339 | hpp | C++ | challenges/c0005/challenge.hpp | cdalvaro/project-euler | 7a09b06a0034ab555706214017ac2e6e3f019806 | [
"MIT"
] | null | null | null | challenges/c0005/challenge.hpp | cdalvaro/project-euler | 7a09b06a0034ab555706214017ac2e6e3f019806 | [
"MIT"
] | 18 | 2021-02-27T16:42:33.000Z | 2022-02-12T11:40:40.000Z | challenges/c0005/challenge.hpp | cdalvaro/project-euler | 7a09b06a0034ab555706214017ac2e6e3f019806 | [
"MIT"
] | 1 | 2021-02-22T13:08:13.000Z | 2021-02-22T13:08:13.000Z | //
// challenge.hpp
// Challenges
//
// Created by Carlos David on 11/06/2020.
// Copyright © 2020 cdalvaro. All rights reserved.
//
#ifndef challenges_c0005_challenge_hpp
#define challenges_c0005_challenge_hpp
#include "challenges/ichallenge.hpp"
namespace challenges {
/**
@class Challenge5
@brie... | 23.910714 | 79 | 0.625093 | cdalvaro |
cce4ba72a191d9307a795629a1381f53b5e47067 | 3,611 | cpp | C++ | SynchronisationServer/src/mainapp.cpp | FilmakademieRnd/v-p-e-t | d7dd8efb6d4aa03784e1bb4f941d2bcef919f28b | [
"MIT"
] | 62 | 2016-10-12T17:29:37.000Z | 2022-02-27T01:24:48.000Z | SynchronisationServer/src/mainapp.cpp | FilmakademieRnd/v-p-e-t | d7dd8efb6d4aa03784e1bb4f941d2bcef919f28b | [
"MIT"
] | 75 | 2017-01-05T12:02:43.000Z | 2021-04-06T19:07:50.000Z | SynchronisationServer/src/mainapp.cpp | FilmakademieRnd/v-p-e-t | d7dd8efb6d4aa03784e1bb4f941d2bcef919f28b | [
"MIT"
] | 16 | 2016-10-12T17:29:42.000Z | 2021-12-01T17:27:33.000Z | /*
-----------------------------------------------------------------------------
This source file is part of VPET - Virtual Production Editing Tool
http://vpet.research.animationsinstitut.de/
http://github.com/FilmakademieRnd/VPET
Copyright (c) 2018 Filmakademie Baden-Wuerttemberg, Animationsinstitut R&D Lab
This pro... | 43.506024 | 158 | 0.725561 | FilmakademieRnd |
ccea58bdb68c43bd9734b4a77a0afa626e250990 | 614 | hpp | C++ | lab1/1_triangle/triangle/triangle.hpp | zaychenko-sergei/oop-ki13 | 97405077de1f66104ec95c1bb2785bc18445532d | [
"MIT"
] | 2 | 2015-10-08T15:07:07.000Z | 2017-09-17T10:08:36.000Z | lab1/1_triangle/triangle/triangle.hpp | zaychenko-sergei/oop-ki13 | 97405077de1f66104ec95c1bb2785bc18445532d | [
"MIT"
] | null | null | null | lab1/1_triangle/triangle/triangle.hpp | zaychenko-sergei/oop-ki13 | 97405077de1f66104ec95c1bb2785bc18445532d | [
"MIT"
] | null | null | null | // (C) 2013-2014, Sergei Zaychenko, KNURE, Kharkiv, Ukraine
#ifndef _TRIANGLE_HPP_
#define _TRIANGLE_HPP_
/*****************************************************************************/
#include "point.hpp"
/*****************************************************************************/
class Triangle
... | 21.928571 | 80 | 0.218241 | zaychenko-sergei |
ccef907f0b16ea546b61a842b2c637ee439a8238 | 330 | hpp | C++ | include/Order.hpp | Xhiel23/Practica_Tienda_cpp | 412003c72498f28e67d4b9f41852e3545f82e7ed | [
"MIT"
] | null | null | null | include/Order.hpp | Xhiel23/Practica_Tienda_cpp | 412003c72498f28e67d4b9f41852e3545f82e7ed | [
"MIT"
] | null | null | null | include/Order.hpp | Xhiel23/Practica_Tienda_cpp | 412003c72498f28e67d4b9f41852e3545f82e7ed | [
"MIT"
] | null | null | null | #include "utilities.hpp"
#include "Food.hpp"
class Order
{
public:
std::vector<Product> products;
int orderDay;
int orderMonth;
int orderYear;
int totalProducts;
double totalPrice;
Order(int orderDay, int orderMonth, int orderYear);
Order();
void computeBill();
void printOrde... | 18.333333 | 55 | 0.657576 | Xhiel23 |
ccf1217613402246c262ac1036dbac0d9c1bb5d9 | 4,019 | cpp | C++ | PokerGame/Classes/Hands.cpp | mettoboshi/poker-game | eae81438d55b2f66b768a6519350c4da0935e7c7 | [
"MIT"
] | 20 | 2016-03-28T08:00:28.000Z | 2019-07-01T04:23:48.000Z | PokerGame/Classes/Hands.cpp | mettoboshi/poker-game | eae81438d55b2f66b768a6519350c4da0935e7c7 | [
"MIT"
] | null | null | null | PokerGame/Classes/Hands.cpp | mettoboshi/poker-game | eae81438d55b2f66b768a6519350c4da0935e7c7 | [
"MIT"
] | 4 | 2017-03-28T16:11:06.000Z | 2019-02-20T17:27:59.000Z | //
// Hands.cpp
// PokerGame
//
#include "Hands.hpp"
USING_NS_CC;
Hands::Hands()
{}
Hands::~Hands()
{
for(auto card : this->cards)
{
CC_SAFE_RELEASE_NULL(card.second->card);
CC_SAFE_RELEASE_NULL(card.second);
}
}
bool Hands::init()
{
return true;
}
// 手札のn番目にカードをセット
void Hands::s... | 19.509709 | 60 | 0.485195 | mettoboshi |
ccf40d824395a01575342a23d6a985a49c672275 | 24,565 | cpp | C++ | libs/win/winexec.cpp | gknowles/dimapp | daadd9afe5fb1a6f716c431411e20c48ca180f9f | [
"BSL-1.0"
] | 1 | 2016-07-20T18:43:34.000Z | 2016-07-20T18:43:34.000Z | libs/win/winexec.cpp | gknowles/dimapp | daadd9afe5fb1a6f716c431411e20c48ca180f9f | [
"BSL-1.0"
] | 4 | 2016-08-30T05:29:18.000Z | 2016-11-07T04:02:15.000Z | libs/win/winexec.cpp | gknowles/dimapp | daadd9afe5fb1a6f716c431411e20c48ca180f9f | [
"BSL-1.0"
] | 1 | 2017-10-20T22:31:17.000Z | 2017-10-20T22:31:17.000Z | // Copyright Glen Knowles 2019 - 2021.
// Distributed under the Boost Software License, Version 1.0.
//
// winres.cpp - dim windows platform
#include "pch.h"
#pragma hdrstop
using namespace std;
using namespace Dim;
/****************************************************************************
*
* Declarations
*
**... | 26.876368 | 79 | 0.495095 | gknowles |
6901773a79e7819829a285391bbdc7d7c0feaf79 | 2,546 | cc | C++ | backends/npu/kernels/cast_kernel.cc | Aganlengzi/PaddleCustomDevice | 0aa0d2e1b2e5db556777604e6fe851a7d0697456 | [
"Apache-2.0"
] | null | null | null | backends/npu/kernels/cast_kernel.cc | Aganlengzi/PaddleCustomDevice | 0aa0d2e1b2e5db556777604e6fe851a7d0697456 | [
"Apache-2.0"
] | null | null | null | backends/npu/kernels/cast_kernel.cc | Aganlengzi/PaddleCustomDevice | 0aa0d2e1b2e5db556777604e6fe851a7d0697456 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | 35.859155 | 75 | 0.628437 | Aganlengzi |
6902fa66817a82195c3b78aac8867e849e1a6533 | 227 | cpp | C++ | verify/verify-yosupo-string/yosupo-z-algorithm.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 69 | 2020-11-06T05:21:42.000Z | 2022-03-29T03:38:35.000Z | verify/verify-yosupo-string/yosupo-z-algorithm.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 21 | 2020-07-25T04:47:12.000Z | 2022-02-01T14:39:29.000Z | verify/verify-yosupo-string/yosupo-z-algorithm.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/zalgorithm"
//
#include "../../template/template.hpp"
//
#include "../../string/z-algorithm.hpp"
using namespace Nyaan;
void Nyaan::solve() {
ins(s);
out(z_algorithm(s));
}
| 18.916667 | 60 | 0.669604 | NachiaVivias |
690ab434cbe96c481358662fbc419dc351a1d613 | 36,549 | cpp | C++ | hgpucl/hgpucl_devices.cpp | vadimdi/PRNGCL | e935c9139066a5384ef150de4a54716fc1c24b7b | [
"BSD-2-Clause"
] | 6 | 2015-06-29T16:59:17.000Z | 2017-12-14T13:50:36.000Z | hgpucl/hgpucl_devices.cpp | vadimdi/PRNGCL | e935c9139066a5384ef150de4a54716fc1c24b7b | [
"BSD-2-Clause"
] | null | null | null | hgpucl/hgpucl_devices.cpp | vadimdi/PRNGCL | e935c9139066a5384ef150de4a54716fc1c24b7b | [
"BSD-2-Clause"
] | 3 | 2015-03-26T15:08:52.000Z | 2020-01-07T06:11:29.000Z | /******************************************************************************
* @file hgpucl_devices.cpp
* @author Vadim Demchik <vadimdi@yahoo.com>
* @version 1.0.2
*
* @brief [HGPU library]
* Interface for OpenCL AMD APP & nVidia SDK environment
* devices submodule
*
*
* @sec... | 42.847597 | 173 | 0.744015 | vadimdi |
691113bd555bada5d5032b9618441c3c1bc9d8af | 4,144 | cpp | C++ | Circuit3C/src/main.cpp | padlewski/DLP_COMP444 | 7635517b50f2c806856fc748db6f6f6c5bc26d34 | [
"MIT"
] | null | null | null | Circuit3C/src/main.cpp | padlewski/DLP_COMP444 | 7635517b50f2c806856fc748db6f6f6c5bc26d34 | [
"MIT"
] | null | null | null | Circuit3C/src/main.cpp | padlewski/DLP_COMP444 | 7635517b50f2c806856fc748db6f6f6c5bc26d34 | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include <Servo.h> //include the servo library
const int trigPin = 11; //connects to the trigger pin on the distance sensor
const int echoPin = 12; //connects to the echo pin on the distance sensor
const int redPin = 3; //pin to control the red LED ... | 34.533333 | 161 | 0.624759 | padlewski |
6911c61370affdff725c6a6f147cc296d2b5dfed | 3,489 | cpp | C++ | libsrc/jsonserver/JsonServer.cpp | juanesf/hyperion_openwrt_mt7620 | a29624e1ca03c37517b043956b55064b6021c7b4 | [
"MIT"
] | null | null | null | libsrc/jsonserver/JsonServer.cpp | juanesf/hyperion_openwrt_mt7620 | a29624e1ca03c37517b043956b55064b6021c7b4 | [
"MIT"
] | null | null | null | libsrc/jsonserver/JsonServer.cpp | juanesf/hyperion_openwrt_mt7620 | a29624e1ca03c37517b043956b55064b6021c7b4 | [
"MIT"
] | null | null | null | // system includes
#include <stdexcept>
// project includes
#include <jsonserver/JsonServer.h>
#include "JsonClientConnection.h"
#include "Poco/Net/HTTPRequestHandler.h"
#include "Poco/Net/HTTPRequestHandlerFactory.h"
#include "Poco/Net/WebSocket.h"
#include "Poco/Net/NetException.h"
#include "Poco/Net/HTTPServerRequ... | 32.305556 | 134 | 0.651476 | juanesf |
69158c9c357a594c3e78806e318ed2bba85b49da | 4,810 | cxx | C++ | MSEL_src/MSEL_core/dbdet_curvelet.cxx | yuliangguo/MSEL_contour_extraction_cxx | 723893a92370dfe084afd23d9a69d3e2fead2464 | [
"MIT"
] | 4 | 2020-04-23T12:28:41.000Z | 2021-06-07T05:54:16.000Z | MSEL_src/MSEL_core/dbdet_curvelet.cxx | yuliangguo/MSEL_contour_extraction_cxx | 723893a92370dfe084afd23d9a69d3e2fead2464 | [
"MIT"
] | null | null | null | MSEL_src/MSEL_core/dbdet_curvelet.cxx | yuliangguo/MSEL_contour_extraction_cxx | 723893a92370dfe084afd23d9a69d3e2fead2464 | [
"MIT"
] | 1 | 2017-06-05T18:00:21.000Z | 2017-06-05T18:00:21.000Z | #include "dbdet_curvelet.h"
#include <vcl_iostream.h>
#include <vcl_fstream.h>
#include <vcl_cassert.h>
#include <vcl_deque.h>
#include <vcl_algorithm.h>
//: copy constructor
dbdet_curvelet::dbdet_curvelet(const dbdet_curvelet& other)
{
//the edgels have to copied as links because curvelets are just groupings of th... | 26.574586 | 99 | 0.673805 | yuliangguo |
69169830c1ce01e00e1d9551f7e899d2e1cadcd4 | 346 | cc | C++ | tests/s-approximations-unittest.cc | vined/biosensor-modeling | dda882d70fbf7128bc45cf3aed2b73dbc70f6693 | [
"MIT"
] | null | null | null | tests/s-approximations-unittest.cc | vined/biosensor-modeling | dda882d70fbf7128bc45cf3aed2b73dbc70f6693 | [
"MIT"
] | null | null | null | tests/s-approximations-unittest.cc | vined/biosensor-modeling | dda882d70fbf7128bc45cf3aed2b73dbc70f6693 | [
"MIT"
] | null | null | null | #include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "../src/s-approximations.h"
using ::testing::ElementsAreArray;
namespace {
TEST(ApproximationsUtilsTest, GetProgressTest) {
std::vector<double> y_new {1, 2, 3, 4, 5};
std::vector<double> y_old {0, 1, 2, 3, 3};
EXPECT_DOUBLE_EQ(2.0, getProg... | 18.210526 | 53 | 0.66474 | vined |
69192dd65e8e8a19fafdc420ad72dabcb3b60a6d | 11,464 | hpp | C++ | Pods/GeoFeatures/GeoFeatures/Internal/geofeatures/operators/Intersects.hpp | xarvey/Yuuuuuge | 9f4ec32f81cf813ea630ba2c44eb03970c56dad3 | [
"Apache-2.0"
] | null | null | null | Pods/GeoFeatures/GeoFeatures/Internal/geofeatures/operators/Intersects.hpp | xarvey/Yuuuuuge | 9f4ec32f81cf813ea630ba2c44eb03970c56dad3 | [
"Apache-2.0"
] | null | null | null | Pods/GeoFeatures/GeoFeatures/Internal/geofeatures/operators/Intersects.hpp | xarvey/Yuuuuuge | 9f4ec32f81cf813ea630ba2c44eb03970c56dad3 | [
"Apache-2.0"
] | null | null | null | /**
* Intersects.hpp
*
* Copyright 2015 Tony Stone
*
* 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 applicab... | 43.097744 | 167 | 0.491626 | xarvey |
691dc3230f62e0fb18cb4241f8918f8e447cb4cf | 7,144 | hpp | C++ | src/dispatch.hpp | wenjian0202/mod-abm-2.0 | 0057126f583d76834237daf4dd9f96ffb4715eff | [
"MIT"
] | 6 | 2021-03-08T15:29:20.000Z | 2021-07-04T06:39:23.000Z | src/dispatch.hpp | wenjian0202/mod-abm-2.0 | 0057126f583d76834237daf4dd9f96ffb4715eff | [
"MIT"
] | 1 | 2021-03-25T03:36:57.000Z | 2021-03-25T03:36:57.000Z | src/dispatch.hpp | wenjian0202/mod-abm-2.0 | 0057126f583d76834237daf4dd9f96ffb4715eff | [
"MIT"
] | 3 | 2021-03-18T07:32:00.000Z | 2021-08-11T09:53:40.000Z | /// \author Jian Wen
/// \date 2021/02/02
#pragma once
#include "types.hpp"
#include <cstddef>
/// \brief Assign the pending trips to the vehicles using Insertion Heuristics.
/// \param pending_trip_ids A vector holding indices to the pending trips.
/// \param trips A vector of all trips.
/// \param vehicles A vecto... | 51.028571 | 100 | 0.638438 | wenjian0202 |
691e38ca93768071e24cbf69f255584a2bdbd21d | 1,630 | cpp | C++ | Code/BBearEditor/Engine/Render/BufferObject/BBTranslateFeedbackObject.cpp | xiaoxianrouzhiyou/BBearEditor | 0f1b779d87c297661f9a1e66d0613df43f5fe46b | [
"MIT"
] | 26 | 2021-06-30T02:19:30.000Z | 2021-07-23T08:38:46.000Z | Code/BBearEditor/Engine/Render/BufferObject/BBTranslateFeedbackObject.cpp | lishangdian/BBearEditor-2.0 | 1f4b463ef756ed36cc15d10abae822efc400c4d7 | [
"MIT"
] | null | null | null | Code/BBearEditor/Engine/Render/BufferObject/BBTranslateFeedbackObject.cpp | lishangdian/BBearEditor-2.0 | 1f4b463ef756ed36cc15d10abae822efc400c4d7 | [
"MIT"
] | 3 | 2021-09-01T08:19:30.000Z | 2021-12-28T19:06:40.000Z | #include "BBTranslateFeedbackObject.h"
#include "BBVertexBufferObject.h"
BBTranslateFeedbackObject::BBTranslateFeedbackObject(int nVertexCount, GLenum hint, GLenum eDrawPrimitiveType)
: BBBufferObject()
{
m_nVertexCount = nVertexCount;
m_eDrawPrimitiveType = eDrawPrimitiveType;
createTFO();
}
void BB... | 29.107143 | 114 | 0.725153 | xiaoxianrouzhiyou |
69244678a6c097ed04b869e4f77fd7482b68c4c2 | 6,618 | cxx | C++ | core/teca_index_executive.cxx | Data-Scientist-Wannabe/TECA | feb0ae7eb23e031842ca958b85168f7fdcae7f06 | [
"BSD-3-Clause-LBNL"
] | null | null | null | core/teca_index_executive.cxx | Data-Scientist-Wannabe/TECA | feb0ae7eb23e031842ca958b85168f7fdcae7f06 | [
"BSD-3-Clause-LBNL"
] | null | null | null | core/teca_index_executive.cxx | Data-Scientist-Wannabe/TECA | feb0ae7eb23e031842ca958b85168f7fdcae7f06 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include "teca_index_executive.h"
#include "teca_config.h"
#include "teca_common.h"
#include <string>
#include <sstream>
#include <iostream>
#include <utility>
using std::cerr;
using std::endl;
// --------------------------------------------------------------------------
teca_index_executive::teca_index_executive()
... | 28.649351 | 88 | 0.487307 | Data-Scientist-Wannabe |
6928e167ced08d070afdc700b552d5dd9c6833de | 624 | cpp | C++ | cf/Div2/B/Vanya and Lanterns/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | cf/Div2/B/Vanya and Lanterns/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | cf/Div2/B/Vanya and Lanterns/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define int long long
using namespace std;
signed main() {
// Turn off synchronization between cin/cout and scanf/printf
ios_base::sync_with_stdio(false);
// Disable automatic flush of cout when reading from cin cin.tie(0);
cin.tie(0);
int n, l;
cin >> n >> l;
vec... | 23.111111 | 72 | 0.573718 | wdjpng |
692bf79c7d220200f498c249b7da064afde48f59 | 1,906 | hpp | C++ | asps/modbus/pdu/semantic/pdu_client.hpp | activesys/asps | 36cc90a192d13df8669f9743f80a0662fe888d16 | [
"MIT"
] | null | null | null | asps/modbus/pdu/semantic/pdu_client.hpp | activesys/asps | 36cc90a192d13df8669f9743f80a0662fe888d16 | [
"MIT"
] | null | null | null | asps/modbus/pdu/semantic/pdu_client.hpp | activesys/asps | 36cc90a192d13df8669f9743f80a0662fe888d16 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 The asps Authors. All rights reserved.
// Use of this source code is governed by a MIT license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
//
// Modbus PDU Client.
#ifndef ASPS_MODBUS_PDU_SEMANTIC_CLIENT_HPP
#define ASPS_MODBUS_PDU_SEMANTIC_CLIENT_HPP... | 28.878788 | 77 | 0.732424 | activesys |
692edafe41c3a64de468fbbbc2a38ba867907740 | 2,086 | cpp | C++ | solutions/0950.x-of-a-kind-in-a-deck-of-cards/0950.x-of-a-kind-in-a-deck-of-cards.1541745454.cpp | nettee/leetcode | 19aa8d54d64cce3679db5878ee0194fad95d8fa1 | [
"MIT"
] | 1 | 2021-01-14T06:01:02.000Z | 2021-01-14T06:01:02.000Z | solutions/0950.x-of-a-kind-in-a-deck-of-cards/0950.x-of-a-kind-in-a-deck-of-cards.1541745454.cpp | nettee/leetcode | 19aa8d54d64cce3679db5878ee0194fad95d8fa1 | [
"MIT"
] | 8 | 2018-03-27T11:47:19.000Z | 2018-11-12T06:02:12.000Z | solutions/0950.x-of-a-kind-in-a-deck-of-cards/0950.x-of-a-kind-in-a-deck-of-cards.1541745454.cpp | nettee/leetcode | 19aa8d54d64cce3679db5878ee0194fad95d8fa1 | [
"MIT"
] | 2 | 2020-04-30T09:47:01.000Z | 2020-12-03T09:34:08.000Z | /*
* [950] X of a Kind in a Deck of Cards
*
* https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/description/
*
* algorithms
* Easy (33.02%)
* Total Accepted: 7.7K
* Total Submissions: 23.2K
* Testcase Example: '[1,2,3,4,4,3,2,1]'
*
* In a deck of cards, each card has an integer written on it.
... | 16.555556 | 79 | 0.490892 | nettee |
69327c89e8e8109949bbeecf1eff31b65c76f042 | 2,114 | cpp | C++ | patch/game/rapmaker.cpp | Tonyx97/TombMP | 7eb2d265df2fe7312b7ed07dd5943736340b921c | [
"MIT"
] | 3 | 2021-10-10T11:12:03.000Z | 2021-11-04T16:46:57.000Z | patch/game/rapmaker.cpp | Tonyx97/TombMP | 7eb2d265df2fe7312b7ed07dd5943736340b921c | [
"MIT"
] | null | null | null | patch/game/rapmaker.cpp | Tonyx97/TombMP | 7eb2d265df2fe7312b7ed07dd5943736340b921c | [
"MIT"
] | null | null | null | #include <specific/stypes.h>
#include "objects.h"
#include "lara.h"
#include "lot.h"
#include "types.h"
#define MAX_RAPTORS 5
#define LARA_TOO_CLOSE SQUARE(WALL_L * 4)
int16_t RaptorItem[3] = { NO_ITEM, NO_ITEM, NO_ITEM };
void RaptorEmitterControl(int16_t item_num)
{
auto item = &items[item_num];
if (!(item->a... | 24.022727 | 122 | 0.685904 | Tonyx97 |
6934c1945f8a1f4015897ef2f9f40e73e5587b80 | 2,823 | cc | C++ | test/LRUcacheSingletonTest.cc | vsdmars/cpp_libs | d3a67006e9c3bd4806945a42d8e9ae9b16aa5b7d | [
"MIT"
] | null | null | null | test/LRUcacheSingletonTest.cc | vsdmars/cpp_libs | d3a67006e9c3bd4806945a42d8e9ae9b16aa5b7d | [
"MIT"
] | null | null | null | test/LRUcacheSingletonTest.cc | vsdmars/cpp_libs | d3a67006e9c3bd4806945a42d8e9ae9b16aa5b7d | [
"MIT"
] | null | null | null | #include "lrucache_api.h"
// posix header
#include <arpa/inet.h>
#include <sys/socket.h>
#include <thread>
#include <gtest/gtest.h>
using std::thread;
using namespace AtsPluginUtils;
namespace AtsPluginUtils {
constexpr int TEST_TYPE = 42;
template<>
struct CacheValue<static_cast<CACHE_VALUE_TYPE>(TEST_TYPE)> {
... | 26.885714 | 109 | 0.72972 | vsdmars |
693764b377374707b669ae6cd44e739a77dc6693 | 4,454 | cpp | C++ | src/options/didyoumean.cpp | FabianWolff/cvc4-debian | e38afe6cb10bdb79f0bae398b9605e4deae7578f | [
"BSL-1.0"
] | null | null | null | src/options/didyoumean.cpp | FabianWolff/cvc4-debian | e38afe6cb10bdb79f0bae398b9605e4deae7578f | [
"BSL-1.0"
] | null | null | null | src/options/didyoumean.cpp | FabianWolff/cvc4-debian | e38afe6cb10bdb79f0bae398b9605e4deae7578f | [
"BSL-1.0"
] | null | null | null | /********************* */
/*! \file didyoumean.cpp
** \verbatim
** Top contributors (to current version):
** Kshitij Bansal, Tim King, Clark Barrett
** This file is part of the CVC4 project.
** Copyright (c) 2009-2016 by the authors listed in the file AUTHOR... | 27.493827 | 80 | 0.540413 | FabianWolff |
6943a049660ee3277364c015dfb829533683e515 | 7,691 | cc | C++ | src/zjump.cc | vteromero/zjump | c8c0d38065f8779d144d05381f0945b5f0db43e3 | [
"MIT"
] | 2 | 2017-02-23T09:55:54.000Z | 2017-02-23T10:06:32.000Z | src/zjump.cc | vteromero/zjump | c8c0d38065f8779d144d05381f0945b5f0db43e3 | [
"MIT"
] | null | null | null | src/zjump.cc | vteromero/zjump | c8c0d38065f8779d144d05381f0945b5f0db43e3 | [
"MIT"
] | null | null | null | /**
Copyright (c) 2017 Vicente Romero. All rights reserved.
Licensed under the MIT License.
See LICENSE file in the project root for full license information.
*/
#include <cstdio>
#include <cstring>
#include <string>
#include "compress.h"
#include "constants.h"
#include "decompress.h"
using namespace std... | 27.467857 | 96 | 0.593421 | vteromero |
69449ea720c73b0352bf124099774276b9843361 | 1,410 | cpp | C++ | engine/conversion/source/ArtifactDumper.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/conversion/source/ArtifactDumper.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/conversion/source/ArtifactDumper.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include <sstream>
#include "ArtifactDumper.hpp"
#include "Conversion.hpp"
#include "ItemDumper.hpp"
#include "TextKeys.hpp"
using namespace std;
ArtifactDumper::ArtifactDumper(const ItemMap& new_item_map, const GenerationValuesMap& new_igv_map, const uint new_num_cols)
: item_map(new_item_map), igv_map(new_igv_map),... | 26.111111 | 124 | 0.690071 | sidav |
6944e8a081f3a002f6638a7265f8665b6a7db528 | 3,368 | cpp | C++ | stream.cpp | ondra-novak/userver | 4ba4797637fedbb49c8f448469d7143746102ee5 | [
"MIT"
] | null | null | null | stream.cpp | ondra-novak/userver | 4ba4797637fedbb49c8f448469d7143746102ee5 | [
"MIT"
] | null | null | null | stream.cpp | ondra-novak/userver | 4ba4797637fedbb49c8f448469d7143746102ee5 | [
"MIT"
] | null | null | null | /*
* stream.cpp
*
* Created on: 9. 1. 2021
* Author: ondra
*/
#include "stream.h"
#include "async_provider.h"
namespace userver {
std::string_view SocketStream::read() {
std::string_view out;
if (curbuff.empty()) {
if (!eof) {
if (rdbuff.empty()) rdbuff.resize(1000);
int sz = sock->read(rdbuff.... | 20.662577 | 105 | 0.615202 | ondra-novak |
694510257d4c266d8c021b6aa035a78dc1ace904 | 1,395 | cpp | C++ | DP/House_Robber_198.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | DP/House_Robber_198.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | DP/House_Robber_198.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | /* ***********************************************************************
> File Name: House_Robber_198.cpp
> Author: zzy
> Mail: 942744575@qq.com
> Created Time: Fri 22 Feb 2019 07:16:58 PM CST
********************************************************************** */
/*
你是一个专业的小偷,计划偷窃沿街的房屋。每间房内都藏有一定的现金,影... | 19.647887 | 92 | 0.53405 | obviouskkk |
6947647fc635cb94d51eca5ba5c1346daba305ab | 7,662 | cpp | C++ | user/drivers/acpi/src/bus/PciBus.cpp | tristanseifert/kush-os | 1ffd595aae8f3dc880e798eff72365b8b6c631f0 | [
"0BSD"
] | 4 | 2021-06-22T20:52:30.000Z | 2022-02-04T00:19:44.000Z | user/drivers/acpi/src/bus/PciBus.cpp | tristanseifert/kush-os | 1ffd595aae8f3dc880e798eff72365b8b6c631f0 | [
"0BSD"
] | null | null | null | user/drivers/acpi/src/bus/PciBus.cpp | tristanseifert/kush-os | 1ffd595aae8f3dc880e798eff72365b8b6c631f0 | [
"0BSD"
] | null | null | null | #include "PciBus.h"
#include "acpi.h"
#include "log.h"
#include <driver/DrivermanClient.h>
#include <mpack/mpack.h>
using namespace acpi;
std::string const PciBus::kBusName = "PCI";
std::string const PciBus::kDriverName = "AcpiPciRootBridge";
bool PciBus::gLogInterrupts = false;
/**
* Extracts the interrupt rout... | 28.273063 | 113 | 0.543461 | tristanseifert |
6947925b89d6354d11d2ebeb364896efe5c8f025 | 1,109 | cpp | C++ | Graph/DetectCycleUndirected/DetectCycleUsingUnionFind.cpp | PrachieNaik/DSA | 083522bb3c8a0694adec1f2856d4d4cd0fb51722 | [
"MIT"
] | null | null | null | Graph/DetectCycleUndirected/DetectCycleUsingUnionFind.cpp | PrachieNaik/DSA | 083522bb3c8a0694adec1f2856d4d4cd0fb51722 | [
"MIT"
] | null | null | null | Graph/DetectCycleUndirected/DetectCycleUsingUnionFind.cpp | PrachieNaik/DSA | 083522bb3c8a0694adec1f2856d4d4cd0fb51722 | [
"MIT"
] | null | null | null | /*
Problem statement: Given an undirected graph with V vertices and E edges, check whether it contains any cycle or not.
Constraints:
1 ≤ V, E ≤ 10^5
Approach: This is another method based on Union-Find. This method assumes that the graph doesn’t contain any self-loops.
We can keep track of the subsets in a 1D arr... | 23.595745 | 121 | 0.540126 | PrachieNaik |
6948c4b730f092e9aa145ba7b471eb6a9749d816 | 267 | cpp | C++ | source/framework/partitioned_array/src/array_partition_uint64.cpp | computationalgeography/lue | 71993169bae67a9863d7bd7646d207405dc6f767 | [
"MIT"
] | 2 | 2021-02-26T22:45:56.000Z | 2021-05-02T10:28:48.000Z | source/framework/partitioned_array/src/array_partition_uint64.cpp | pcraster/lue | e64c18f78a8b6d8a602b7578a2572e9740969202 | [
"MIT"
] | 262 | 2016-08-11T10:12:02.000Z | 2020-10-13T18:09:16.000Z | source/framework/partitioned_array/src/array_partition_uint64.cpp | computationalgeography/lue | 71993169bae67a9863d7bd7646d207405dc6f767 | [
"MIT"
] | 1 | 2020-03-11T09:49:41.000Z | 2020-03-11T09:49:41.000Z | #include "lue/framework/partitioned_array/array_partition_impl.hpp"
namespace lue {
template class ArrayPartition<std::uint64_t, 0>;
template class ArrayPartition<std::uint64_t, 1>;
template class ArrayPartition<std::uint64_t, 2>;
} // namespace lue
| 24.272727 | 67 | 0.749064 | computationalgeography |
694aadddf1dc57e6a0d2e3eb4ff5ac13043a5624 | 5,188 | cpp | C++ | lib/heif/Srcs/writer/auxiliaryimagewriter.cpp | anzksdk/tifig-by | 17a306b27e6e2dd2992e1c0896312047541f4be0 | [
"Apache-2.0"
] | null | null | null | lib/heif/Srcs/writer/auxiliaryimagewriter.cpp | anzksdk/tifig-by | 17a306b27e6e2dd2992e1c0896312047541f4be0 | [
"Apache-2.0"
] | null | null | null | lib/heif/Srcs/writer/auxiliaryimagewriter.cpp | anzksdk/tifig-by | 17a306b27e6e2dd2992e1c0896312047541f4be0 | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2015-2017, Nokia Technologies Ltd.
* All rights reserved.
*
* Licensed under the Nokia High-Efficiency Image File Format (HEIF) License (the "License").
*
* You may not use the High-Efficiency Image File Format except in compliance with the License.
* The License accompanies the software and can ... | 33.25641 | 114 | 0.667887 | anzksdk |
694e41b62fd18581a35e497b57379741b0f936eb | 583 | cc | C++ | basic/bind/03.cc | chanchann/littleMickle | f3a839d8ad55f483bbac4e4224dcd35234c5aa00 | [
"MIT"
] | 1 | 2021-03-16T02:13:12.000Z | 2021-03-16T02:13:12.000Z | basic/bind/03.cc | chanchann/littleMickle | f3a839d8ad55f483bbac4e4224dcd35234c5aa00 | [
"MIT"
] | null | null | null | basic/bind/03.cc | chanchann/littleMickle | f3a839d8ad55f483bbac4e4224dcd35234c5aa00 | [
"MIT"
] | null | null | null | /*
bind()绑定时参数个数固定,类型需匹配
*/
#include <iostream>
#include <functional>
using namespace std;
void func3(int n1, int n2, int n3) {
cout << n1 << ' ' << n2 << ' ' << n3 << endl;
}
void test3_1() {
auto f3 = std::bind(func3, placeholders::_1, 101);
//f3(11); // 编译错误,因为bind函数中少了一个参数
}
void test3_2() {
au... | 23.32 | 75 | 0.600343 | chanchann |
695075a6022cc3460f34c545bcc6ee5984704557 | 2,104 | cpp | C++ | test/spec/ts/psi/pat_spec.cpp | mrk21/ts-processor | 965d19939558e4c956bee7d35167f7483411c755 | [
"MIT"
] | 1 | 2018-08-13T04:01:11.000Z | 2018-08-13T04:01:11.000Z | test/spec/ts/psi/pat_spec.cpp | mrk21/ts-processor | 965d19939558e4c956bee7d35167f7483411c755 | [
"MIT"
] | null | null | null | test/spec/ts/psi/pat_spec.cpp | mrk21/ts-processor | 965d19939558e4c956bee7d35167f7483411c755 | [
"MIT"
] | 1 | 2018-09-23T03:36:20.000Z | 2018-09-23T03:36:20.000Z | #include <bandit_with_gmock/bandit_with_gmock.hpp>
#include <ts_processor/ts/data.hpp>
#include <ts_processor/ts/psi/pat.hpp>
#include <bitfield/iostream.hpp>
namespace ts_processor { namespace ts { namespace psi {
go_bandit([]{
using namespace bandit;
describe("ts::psi::pat", [&]{
ts::data data;
... | 33.935484 | 77 | 0.475285 | mrk21 |
6950c2cf28f88da37efe9b1e4c84267ceda1962b | 7,988 | inl | C++ | ssd/octree/OctreeCache.inl | csiro-workspace/pointcloudplugin | 815dd598ccf3780739b1ecae086ee78daa94ed5d | [
"BSD-3-Clause"
] | 5 | 2015-09-22T02:33:34.000Z | 2018-08-29T07:37:54.000Z | ssd/octree/OctreeCache.inl | csiro-workspace/pointcloudplugin | 815dd598ccf3780739b1ecae086ee78daa94ed5d | [
"BSD-3-Clause"
] | 1 | 2018-12-12T12:08:28.000Z | 2018-12-13T06:14:54.000Z | ssd/octree/OctreeCache.inl | csiro-workspace/pointcloudplugin | 815dd598ccf3780739b1ecae086ee78daa94ed5d | [
"BSD-3-Clause"
] | 4 | 2015-03-04T00:09:18.000Z | 2020-09-08T02:58:06.000Z | /*
Copyright (c) 2013, Fatih Calakli and Daniel Moreno
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 con... | 35.660714 | 138 | 0.591888 | csiro-workspace |
6956574a542563798f6067be8bd422597f891254 | 529 | hpp | C++ | src/application/appWindow.hpp | giffi-dev/GeimBoi | 6cf4f8cc3c07569d23bc70e2fa921ac870fd16f1 | [
"MIT"
] | null | null | null | src/application/appWindow.hpp | giffi-dev/GeimBoi | 6cf4f8cc3c07569d23bc70e2fa921ac870fd16f1 | [
"MIT"
] | null | null | null | src/application/appWindow.hpp | giffi-dev/GeimBoi | 6cf4f8cc3c07569d23bc70e2fa921ac870fd16f1 | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <thread>
#include <SDL2/SDL.h>
#include "../core/gbGameBoy.hpp"
namespace Giffi
{
class appWindow
{
public:
// Retruns true on success
static void Init();
static void Run();
static void CleanUp();
private:
static bool ShouldWindowClose();
static void DoEvents();
public:
... | 14.694444 | 44 | 0.718336 | giffi-dev |
695a43ee250ed0289249ded550bd3162e6a1419a | 2,082 | hpp | C++ | src/lib/cost_model/cost_feature.hpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2021-04-14T11:16:52.000Z | 2021-04-14T11:16:52.000Z | src/lib/cost_model/cost_feature.hpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | null | null | null | src/lib/cost_model/cost_feature.hpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2020-11-30T13:11:04.000Z | 2020-11-30T13:11:04.000Z | #pragma once
#include <map>
#include "all_type_variant.hpp"
#include "types.hpp"
namespace opossum {
/**
* List of features usable in AbstractCostModels.
*
* Using enum to provide the unified "AbstractCostFeatureProxy" to access the same features for LQPs and PQPs.
* Also, this makes it easy to specify Cost for... | 29.742857 | 115 | 0.747839 | IanJamesMcKay |
695d90ca7d2170399ec7ba8c66ab5355e1365be4 | 363 | cpp | C++ | 2022/semana0/hw_0+/i.cpp | imeplusplus/ps | bc5b0539ce26b023962ca0f87e05027edf8d04cb | [
"MIT"
] | null | null | null | 2022/semana0/hw_0+/i.cpp | imeplusplus/ps | bc5b0539ce26b023962ca0f87e05027edf8d04cb | [
"MIT"
] | null | null | null | 2022/semana0/hw_0+/i.cpp | imeplusplus/ps | bc5b0539ce26b023962ca0f87e05027edf8d04cb | [
"MIT"
] | 1 | 2022-03-19T16:36:09.000Z | 2022-03-19T16:36:09.000Z | #include <bits/stdc++.h>
using namespace std;
const int N = 100;
int f[N];
int main(){
int n, m;
scanf("%d%d",&n, &m);
for(int i = 0; i < m; i++) scanf("%d", &f[i]);
sort(f, f + m);
int ans = f[n-1] - f[0];
for(int i = 0; i + n - 1 < m; i++){
ans = min(ans, f[i + n - 1] - f[i]);
... | 18.15 | 50 | 0.424242 | imeplusplus |
696037a3bc442b3bb621e969d50de7e921795a43 | 950 | hpp | C++ | 32 - Spawning Projectiles/src/C_ProjectileAttack.hpp | ThatGamesGuy/that_platform_game | 90c80ebb4e890b9e4684ec87841b4bf4e446a3d1 | [
"MIT"
] | 55 | 2018-06-19T08:22:47.000Z | 2022-03-30T01:02:59.000Z | 32 - Spawning Projectiles/src/C_ProjectileAttack.hpp | ThatGamesGuy/that_platform_game | 90c80ebb4e890b9e4684ec87841b4bf4e446a3d1 | [
"MIT"
] | null | null | null | 32 - Spawning Projectiles/src/C_ProjectileAttack.hpp | ThatGamesGuy/that_platform_game | 90c80ebb4e890b9e4684ec87841b4bf4e446a3d1 | [
"MIT"
] | 21 | 2019-04-19T15:39:08.000Z | 2022-02-20T11:21:13.000Z | #ifndef C_ProjectileAttack_hpp
#define C_ProjectileAttack_hpp
#include "Component.hpp"
#include "C_Animation.hpp"
#include "Input.hpp"
#include "ObjectCollection.hpp"
#include "WorkingDirectory.hpp"
class C_ProjectileAttack : public Component
{
public:
C_ProjectileAttack(Object* owner);
void Awake() over... | 25 | 79 | 0.742105 | ThatGamesGuy |
696126e293cc4b8ef990ec222c6fca82d0914430 | 1,241 | cpp | C++ | packages/utility/stats/src/Utility_SampleMomentCollection.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/utility/stats/src/Utility_SampleMomentCollection.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/utility/stats/src/Utility_SampleMomentCollection.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file Utility_SampleMomentCollection.cpp
//! \author Alex Robinson
//! \brief The sample moment collection class definition
//!
//---------------------------------------------------------------------------//
// FRENSIE Includes
... | 44.321429 | 81 | 0.603546 | bam241 |
6963d1bb9788c97622a89edfdf28a71440a7195b | 1,268 | cc | C++ | cpp/sorting/insertion_sort.cc | stn/algorithms | 435c6b1bcdc042553c13a711d20f6d871988c251 | [
"Apache-2.0"
] | null | null | null | cpp/sorting/insertion_sort.cc | stn/algorithms | 435c6b1bcdc042553c13a711d20f6d871988c251 | [
"Apache-2.0"
] | null | null | null | cpp/sorting/insertion_sort.cc | stn/algorithms | 435c6b1bcdc042553c13a711d20f6d871988c251 | [
"Apache-2.0"
] | null | null | null | #include "insertion_sort.h"
void insertion_sort(int *arr, int n) {
for (int i = 1; i < n; ++i) {
for (int j = i; j > 0; --j) {
if (arr[j] < arr[j - 1]) {
int tmp = arr[j - 1];
arr[j - 1] = arr[j];
arr[j] = tmp;
}
}
}
}
voi... | 23.481481 | 80 | 0.391956 | stn |
69667186065462c9306a5071a4ddc0aac6fb719b | 1,447 | cpp | C++ | sources/Dwarf/Declarations/PackageDeclaration.cpp | KonstantinTomashevich/dwarf-scripting-language | 1cb7e2719ee66c77172d647f33052358dfe36be3 | [
"MIT"
] | null | null | null | sources/Dwarf/Declarations/PackageDeclaration.cpp | KonstantinTomashevich/dwarf-scripting-language | 1cb7e2719ee66c77172d647f33052358dfe36be3 | [
"MIT"
] | null | null | null | sources/Dwarf/Declarations/PackageDeclaration.cpp | KonstantinTomashevich/dwarf-scripting-language | 1cb7e2719ee66c77172d647f33052358dfe36be3 | [
"MIT"
] | null | null | null | #include "PackageDeclaration.hpp"
#include <assert.h>
namespace Dwarf
{
PackageDeclaration::PackageDeclaration (std::string name, std::vector<Declaration *> declarationsInside) :
name_ (name),
declarationsInside_ (declarationsInside)
{
}
PackageDeclaration::~PackageDeclaration ()
{
if (!declarationsInsi... | 24.525424 | 106 | 0.67519 | KonstantinTomashevich |
696bc84d688fd35ea25b6456adca2b8d8b5a2073 | 4,894 | hpp | C++ | Native/Blackberry-Cascades/pushCollector/src/app.hpp | robertrumney/pushwoosh-sdk-samples | 55ccad683de8cec2f751ff1778045d04b9621c7e | [
"MIT"
] | 1 | 2022-02-08T14:01:20.000Z | 2022-02-08T14:01:20.000Z | Native/Blackberry-Cascades/pushCollector/src/app.hpp | robertrumney/pushwoosh-sdk-samples | 55ccad683de8cec2f751ff1778045d04b9621c7e | [
"MIT"
] | null | null | null | Native/Blackberry-Cascades/pushCollector/src/app.hpp | robertrumney/pushwoosh-sdk-samples | 55ccad683de8cec2f751ff1778045d04b9621c7e | [
"MIT"
] | null | null | null | /*!
* Copyright (c) 2012, 2013 BlackBerry 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 or agr... | 33.751724 | 124 | 0.759297 | robertrumney |
69727009d55ca59e3f3d27bf829c440bb003129e | 247 | cpp | C++ | VRP.FGA_2022/FirstIteration/Chromosome.cpp | DimaSidorenko/VRP.FGA_2022 | 3f08d9c976c9f86a25cdf51f287e3fc5b75c7451 | [
"MIT"
] | null | null | null | VRP.FGA_2022/FirstIteration/Chromosome.cpp | DimaSidorenko/VRP.FGA_2022 | 3f08d9c976c9f86a25cdf51f287e3fc5b75c7451 | [
"MIT"
] | null | null | null | VRP.FGA_2022/FirstIteration/Chromosome.cpp | DimaSidorenko/VRP.FGA_2022 | 3f08d9c976c9f86a25cdf51f287e3fc5b75c7451 | [
"MIT"
] | null | null | null | #include "Chromosome.h"
Chromosome::Chromosome() :
genes() {};
Chromosome::Chromosome(int32_t size)
{
genes.resize(size);
for (size_t i = 0; i < size; i++) {
genes[i] = Gene(size);
}
}
size_t Chromosome::Size()
{
return genes.size();
} | 13 | 36 | 0.62753 | DimaSidorenko |
69755c97c66a733c90f12ed00a62408cd847e140 | 459 | cpp | C++ | Codechef/Monthly Long Off/aug/learn.cpp | TiwariAnil/Algorithmic_Puzzles | 13a6b2ed8e8fd0176b9b58c073b2e9847e7ba774 | [
"MIT"
] | null | null | null | Codechef/Monthly Long Off/aug/learn.cpp | TiwariAnil/Algorithmic_Puzzles | 13a6b2ed8e8fd0176b9b58c073b2e9847e7ba774 | [
"MIT"
] | null | null | null | Codechef/Monthly Long Off/aug/learn.cpp | TiwariAnil/Algorithmic_Puzzles | 13a6b2ed8e8fd0176b9b58c073b2e9847e7ba774 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <algorithm>
using namespace std;
#define FOR(i, n) for (int i = 1; i <= n; ++i)
int main() {
int n, m, a, b, c;
int w[320][320];
long long s;
scanf("%d", &n);
FOR(i, n) FOR(j, n) scanf("%d", &w[i][j]);
scanf("%d", &m);
FOR(k, m) {
scanf("%d%d%d", &a, &b, &c);
s = 0;
FOR(i, n)... | 17.653846 | 103 | 0.457516 | TiwariAnil |
6981a6356647992695df325bb03489f783c4828d | 37,810 | cc | C++ | src/trace_processor/importers/proto/graphics_event_parser.cc | kuscsik/perfetto | 41874a94cbe332d4a253fe870af279cdd32bfab0 | [
"Apache-2.0"
] | null | null | null | src/trace_processor/importers/proto/graphics_event_parser.cc | kuscsik/perfetto | 41874a94cbe332d4a253fe870af279cdd32bfab0 | [
"Apache-2.0"
] | null | null | null | src/trace_processor/importers/proto/graphics_event_parser.cc | kuscsik/perfetto | 41874a94cbe332d4a253fe870af279cdd32bfab0 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2019 The Android Open Source Project
*
* 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 app... | 43.063781 | 107 | 0.687834 | kuscsik |
6981d94a4378de6858f672b08a598c7278f2b7d8 | 1,887 | cpp | C++ | ext/nuvo_image/src/SSIM.cpp | crema/nuvo_image | 7868601deca054dc1bd45507c8d01e640611d322 | [
"MIT"
] | null | null | null | ext/nuvo_image/src/SSIM.cpp | crema/nuvo_image | 7868601deca054dc1bd45507c8d01e640611d322 | [
"MIT"
] | 5 | 2016-08-02T13:33:02.000Z | 2020-11-03T15:22:52.000Z | ext/nuvo_image/src/SSIM.cpp | crema/nuvo-image | 365e4a54429fe4180e03adb1968ab9989e7ee5fb | [
"MIT"
] | null | null | null | #include "SSIM.h"
int QualitySSIM::InterpolationTargetSSIM(const QualitySSIM& min, const QualitySSIM& max, const double targetSSIM) {
auto slope = (max.quality - min.quality) / (max.ssim - min.ssim);
return (int)round(slope * (targetSSIM - min.ssim)) + min.quality;
}
SSIMData::SSIMData(const cv::Mat& mat) {
mat... | 28.164179 | 115 | 0.578166 | crema |
6986813ff0789e8d9032fa6ecfba6411feee985c | 965 | cpp | C++ | 2017 JUST Programming Contest 4.0/B.cpp | lajiyuan/segmentation-fault-training | 71dfeeed52b18071a5c8c4d02f5e74fc01c53322 | [
"Apache-2.0"
] | 5 | 2019-04-07T05:39:11.000Z | 2020-07-23T01:43:02.000Z | 2017 JUST Programming Contest 4.0/B.cpp | lajiyuan/segmentation-fault-training | 71dfeeed52b18071a5c8c4d02f5e74fc01c53322 | [
"Apache-2.0"
] | null | null | null | 2017 JUST Programming Contest 4.0/B.cpp | lajiyuan/segmentation-fault-training | 71dfeeed52b18071a5c8c4d02f5e74fc01c53322 | [
"Apache-2.0"
] | null | null | null | #include<stdio.h>
#include<iostream>
#include<algorithm>
using namespace std;
const int maxn = 1e5+10;
#define dbg(x) cout<<#x<<" = "<<x<<endl
#define ok cout<<"OK"<<endl
int a[maxn];
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
int n,m;
scanf("%d%d",&n,&m);
fo... | 20.978261 | 49 | 0.344041 | lajiyuan |
698c5a84910801cc8b5f76fef3de78143080b527 | 1,004 | cpp | C++ | Cpp/229_majority_element_II/solution.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | 1 | 2015-12-19T23:05:35.000Z | 2015-12-19T23:05:35.000Z | Cpp/229_majority_element_II/solution.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | null | null | null | Cpp/229_majority_element_II/solution.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> majorityElement(vector<int>& nums) {
int len = nums.size(), num1, num2, count1 = 0, count2 = 0;
vector<int> res;
for (int i = 0; i < len; i ++)
{
if (num1 == nums[i]) count1 ++;
else if (num2 == nums[i]) count2 ++;
... | 25.1 | 66 | 0.351594 | zszyellow |
7e36458397b0c141e4c22925d02cd9f818d67f96 | 460 | cpp | C++ | Pointers/second.cpp | dealbisac/cprograms | 89af58a30295099b45406cf192f4c4eb4a06f9fe | [
"Unlicense"
] | 4 | 2019-01-27T01:00:44.000Z | 2019-01-29T02:09:55.000Z | Pointers/second.cpp | dealbisac/cprograms | 89af58a30295099b45406cf192f4c4eb4a06f9fe | [
"Unlicense"
] | null | null | null | Pointers/second.cpp | dealbisac/cprograms | 89af58a30295099b45406cf192f4c4eb4a06f9fe | [
"Unlicense"
] | 1 | 2019-02-04T11:34:40.000Z | 2019-02-04T11:34:40.000Z | #include <stdio.h>
int main()
{
int* pc, c;
c = 22;
printf("Address of c: %u\n", &c);
printf("Value of c: %d\n\n", c);
pc = &c;
printf("Address of pointer pc: %u\n", pc);
printf("Content of pointer pc: %d\n\n", *pc);
c = 11;
printf("Address of pointer pc: %u\n", pc);
printf("Co... | 20 | 48 | 0.506522 | dealbisac |
7e3fcda429c2b500a22fb361bfcdbd774bc2878c | 2,152 | cxx | C++ | STEER/STEER/AliMatrixSq.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | STEER/STEER/AliMatrixSq.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | STEER/STEER/AliMatrixSq.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /**********************************************************************************************/
/* */
/* Abstract class for matrix used for */
/* millepede2 operation. ... | 36.474576 | 110 | 0.416822 | AllaMaevskaya |
7e40272a65b220d2f28ce34196ff3a7edd152cd9 | 84 | hpp | C++ | traits/sqrtconstexpr.hpp | colorhistory/cplusplus-general-programming | 3ece924a2ab34711a55a45bc41e2b74384956204 | [
"MIT"
] | 1 | 2019-09-28T09:40:08.000Z | 2019-09-28T09:40:08.000Z | traits/sqrtconstexpr.hpp | colorhistory/cplusplus-general-programming | 3ece924a2ab34711a55a45bc41e2b74384956204 | [
"MIT"
] | null | null | null | traits/sqrtconstexpr.hpp | colorhistory/cplusplus-general-programming | 3ece924a2ab34711a55a45bc41e2b74384956204 | [
"MIT"
] | null | null | null | #ifndef SQRTCONSTEXPR_HPP
#define SQRTCONSTEXPR_HPP
#endif // SQRTCONSTEXPR_HPP
| 12 | 27 | 0.809524 | colorhistory |
7e4cf839ec626c68ac4dcd037d21183a2e16d7b1 | 573 | cpp | C++ | toy_compiler/munster/ast/stmt/compound_stmt.cpp | Wmbat/toy_compiler | 370a2e76aaaa874de5fb6c25e0755638dd84b8b4 | [
"MIT"
] | null | null | null | toy_compiler/munster/ast/stmt/compound_stmt.cpp | Wmbat/toy_compiler | 370a2e76aaaa874de5fb6c25e0755638dd84b8b4 | [
"MIT"
] | null | null | null | toy_compiler/munster/ast/stmt/compound_stmt.cpp | Wmbat/toy_compiler | 370a2e76aaaa874de5fb6c25e0755638dd84b8b4 | [
"MIT"
] | null | null | null | #include <toy_compiler/munster/ast/stmt/compound_stmt.hpp>
#include <toy_compiler/munster/ast/utility.hpp>
namespace munster::ast
{
compound_stmt::compound_stmt(std::vector<node_ptr>&& statements)
{
make_family<stmt>(std::move(statements));
}
void compound_stmt::accept(visitor_variant& visitor) con... | 23.875 | 83 | 0.670157 | Wmbat |
7e5a18f46883b774602c845cb7b711df0457a7d7 | 42,777 | hpp | C++ | src/ScaFES_Grid.hpp | nih23/MRIDrivenHeatSimulation | de6d16853df1faf44c700d1fc06584351bf6c816 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | src/ScaFES_Grid.hpp | nih23/MRIDrivenHeatSimulation | de6d16853df1faf44c700d1fc06584351bf6c816 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | src/ScaFES_Grid.hpp | nih23/MRIDrivenHeatSimulation | de6d16853df1faf44c700d1fc06584351bf6c816 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | /* ScaFES
* Copyright (c) 2011-2015, ZIH, TU Dresden, Federal Republic of Germany.
* For details, see the files COPYING and LICENSE in the base directory
* of the package.
*/
/**
* @file ScaFES_Grid.hpp
* @brief Contains the class template Grid.
*/
#ifndef SCAFES_GRID_HPP_
#define SCAFES_GRID_HPP_
#include ... | 36.718455 | 81 | 0.510648 | nih23 |
7e5d1dedcd0ae12c2a1c8a9eacf5e0ecd79c8ded | 5,998 | cpp | C++ | Source/Common/Platform/NMR_ExportStream_GCC_Win32.cpp | geaz/lib3mf | fd07e571a869f5c495a3beea014d341d67c9d405 | [
"BSD-2-Clause"
] | null | null | null | Source/Common/Platform/NMR_ExportStream_GCC_Win32.cpp | geaz/lib3mf | fd07e571a869f5c495a3beea014d341d67c9d405 | [
"BSD-2-Clause"
] | null | null | null | Source/Common/Platform/NMR_ExportStream_GCC_Win32.cpp | geaz/lib3mf | fd07e571a869f5c495a3beea014d341d67c9d405 | [
"BSD-2-Clause"
] | null | null | null | /*++
Copyright (C) 2019 3MF Consortium
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 followi... | 32.247312 | 109 | 0.702568 | geaz |
7e5f898ee06344f571798d3c6d9564a146bd2e6e | 10,645 | hpp | C++ | map.hpp | majermou/ft_containers | b46a6941689819a74bb86cc2bd1b85fd7252ace7 | [
"MIT"
] | null | null | null | map.hpp | majermou/ft_containers | b46a6941689819a74bb86cc2bd1b85fd7252ace7 | [
"MIT"
] | null | null | null | map.hpp | majermou/ft_containers | b46a6941689819a74bb86cc2bd1b85fd7252ace7 | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* map.hpp :+: :+: :+: ... | 32.063253 | 98 | 0.584688 | majermou |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.