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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f477acb834ef5d09a1b8d6bb5b20a4411eabd74f | 2,992 | cpp | C++ | Algorithms/Validator/valGeneral3Deg.cpp | lucaskeiler/AlgoritmosTCC | eccf14c2c872acb9e0728eb8948eee121b274f2e | [
"MIT"
] | null | null | null | Algorithms/Validator/valGeneral3Deg.cpp | lucaskeiler/AlgoritmosTCC | eccf14c2c872acb9e0728eb8948eee121b274f2e | [
"MIT"
] | null | null | null | Algorithms/Validator/valGeneral3Deg.cpp | lucaskeiler/AlgoritmosTCC | eccf14c2c872acb9e0728eb8948eee121b274f2e | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <cmath>
#include "infection3deg.h"
#include <ctime>
using namespace std;
int main (){
printf("[");
for(int t = 20;t <= 10000;t+=20){
int n = t;
Graph graph(n);
graph.degree[0] = 1;
graph.degree[n-1] = 1;
//int y = 1,m = ... | 23.559055 | 68 | 0.304144 | lucaskeiler |
f47c3987fa2311f982ef31193d7757bacaf250b7 | 8,285 | cpp | C++ | Examples_5_4/Sticktrace/SticktraceWindow.cpp | hukushirom/luastick | 29e43ee9d7e26b6ab45a510e664825b8c64845ac | [
"MIT"
] | 12 | 2020-04-26T11:38:00.000Z | 2021-11-02T21:13:27.000Z | Examples_5_4/Sticktrace/SticktraceWindow.cpp | hukushirom/luastick | 29e43ee9d7e26b6ab45a510e664825b8c64845ac | [
"MIT"
] | null | null | null | Examples_5_4/Sticktrace/SticktraceWindow.cpp | hukushirom/luastick | 29e43ee9d7e26b6ab45a510e664825b8c64845ac | [
"MIT"
] | null | null | null | // SticktraceWindow.cpp : DLL の初期化ルーチンです。
//
#include "stdafx.h"
#include <thread>
#include "Resource.h" // For IDD_STICK_TRACE.
#include "RegBase.h"
#include "DlgSticktrace.h"
#include "Sticktrace.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
class __declspec(dllexport) SticktraceWindow
{
private:
static Sticktr... | 26.812298 | 124 | 0.749427 | hukushirom |
f47e429b41b9e543425fde38c44e240f9a80fd1f | 18,267 | cpp | C++ | src/caffe/test/test_roi_pooling_layer.cpp | imoisture/caffe | 4d6892afeff234c57ce470056939101e0ae71369 | [
"BSD-2-Clause"
] | null | null | null | src/caffe/test/test_roi_pooling_layer.cpp | imoisture/caffe | 4d6892afeff234c57ce470056939101e0ae71369 | [
"BSD-2-Clause"
] | null | null | null | src/caffe/test/test_roi_pooling_layer.cpp | imoisture/caffe | 4d6892afeff234c57ce470056939101e0ae71369 | [
"BSD-2-Clause"
] | null | null | null | /*
All modification made by Cambricon Corporation: © 2018-2019 Cambricon Corporation
All rights reserved.
All other contributions:
Copyright (c) 2014--2019, the respective contributors
All rights reserved.
For the list of contributors go to https://github.com/BVLC/caffe/blob/master/CONTRIBUTORS.md
Redistribution and us... | 37.203666 | 92 | 0.69059 | imoisture |
f47eaa9c3c7d9147e6cf84b23dbbcf03d35c3c84 | 3,576 | cpp | C++ | libs/assign/v2/test/chain.cpp | rogard/assign_v2 | 8735f57177dbee57514b4e80c498dd4b89f845e5 | [
"BSL-1.0"
] | null | null | null | libs/assign/v2/test/chain.cpp | rogard/assign_v2 | 8735f57177dbee57514b4e80c498dd4b89f845e5 | [
"BSL-1.0"
] | null | null | null | libs/assign/v2/test/chain.cpp | rogard/assign_v2 | 8735f57177dbee57514b4e80c498dd4b89f845e5 | [
"BSL-1.0"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
// Boost.Assign v2 //
// //
// Copyright (C) 2003-2004 Thorsten Ottosen //
// ... | 35.058824 | 99 | 0.465324 | rogard |
f480b2588ac6aaea63bfb023173718530adc59ec | 6,976 | cpp | C++ | PDFWriterTestPlayground/TestsRunner.cpp | thmclellan/PDF-Writer | 9d31d12ce12e586b4f7f748e17029a10ccc2c176 | [
"Apache-2.0"
] | 620 | 2015-02-10T16:38:47.000Z | 2022-03-30T11:06:17.000Z | PDFWriterTestPlayground/TestsRunner.cpp | thmclellan/PDF-Writer | 9d31d12ce12e586b4f7f748e17029a10ccc2c176 | [
"Apache-2.0"
] | 124 | 2015-01-14T20:50:29.000Z | 2021-12-08T09:51:01.000Z | PDFWriterTestPlayground/TestsRunner.cpp | thmclellan/PDF-Writer | 9d31d12ce12e586b4f7f748e17029a10ccc2c176 | [
"Apache-2.0"
] | 185 | 2015-04-16T11:09:39.000Z | 2022-03-07T03:25:15.000Z | /*
Source File : TestsRunner.cpp
Copyright 2011 Gal Kahana PDFWriter
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless re... | 30.462882 | 150 | 0.743836 | thmclellan |
f481619b9d3faf9bb1c0053840c7fa61c16127e8 | 1,093 | hpp | C++ | ch13/icstring.hpp | bashell/CppStandardLibrary | 2aae03019288132c911036aeb9ba36edc56e510b | [
"MIT"
] | null | null | null | ch13/icstring.hpp | bashell/CppStandardLibrary | 2aae03019288132c911036aeb9ba36edc56e510b | [
"MIT"
] | null | null | null | ch13/icstring.hpp | bashell/CppStandardLibrary | 2aae03019288132c911036aeb9ba36edc56e510b | [
"MIT"
] | null | null | null | #ifndef ICSTRING_HPP
#define ICSTRING_HPP
#include <iostream>
#include <string>
#include <cctype>
struct ignorecase_traits : public std::char_traits<char> {
static bool eq(const char &c1, const char &c2) {
return std::toupper(c1) == std::toupper(c2);
}
static bool lt(const char &c1, const cha... | 25.418605 | 74 | 0.538884 | bashell |
f48696bca49c2e0233eabbac093b4b5c4482367b | 204 | cpp | C++ | sources/ECS/Components/ModelMatrixComponent.cpp | Gilqamesh/GameEngineDemo | 796bb107df5c01b875c2ae73fcfd44e7c07e3a87 | [
"MIT"
] | null | null | null | sources/ECS/Components/ModelMatrixComponent.cpp | Gilqamesh/GameEngineDemo | 796bb107df5c01b875c2ae73fcfd44e7c07e3a87 | [
"MIT"
] | null | null | null | sources/ECS/Components/ModelMatrixComponent.cpp | Gilqamesh/GameEngineDemo | 796bb107df5c01b875c2ae73fcfd44e7c07e3a87 | [
"MIT"
] | null | null | null | #include "ECS/Components/ModelMatrixComponent.hpp"
namespace NAMESPACE
{
std::ostream &operator<<(std::ostream &os, const ModelMatrixComponent &a)
{
TRACE();
os << a.m;
return (os);
}
}
| 14.571429 | 73 | 0.656863 | Gilqamesh |
f48deb148495a1f4ae92dcd20a7e3877b360ff57 | 2,937 | cpp | C++ | Framework/Source/Windows/LWVideo/LWVideoDrivers/LWVideoDriver_OpenGL3_3_Windows.cpp | slicer4ever/Lightwaver | 1f444e42eab9988632f541ab3c8f491d557c7de7 | [
"MIT"
] | 3 | 2017-10-24T08:04:49.000Z | 2018-08-28T10:08:08.000Z | Framework/Source/Windows/LWVideo/LWVideoDrivers/LWVideoDriver_OpenGL3_3_Windows.cpp | slicer4ever/Lightwave | 1f444e42eab9988632f541ab3c8f491d557c7de7 | [
"MIT"
] | null | null | null | Framework/Source/Windows/LWVideo/LWVideoDrivers/LWVideoDriver_OpenGL3_3_Windows.cpp | slicer4ever/Lightwave | 1f444e42eab9988632f541ab3c8f491d557c7de7 | [
"MIT"
] | null | null | null | #include "LWVideo/LWVideoDrivers/LWVideoDriver_OpenGL3_3.h"
#include "LWPlatform/LWWindow.h"
LWVideoDriver_OpenGL3_3 *LWVideoDriver_OpenGL3_3::MakeVideoDriver(LWWindow *Window, uint32_t Type) {
LWWindowContext WinCon = Window->GetContext();
int32_t PixelFormat;
PIXELFORMATDESCRIPTOR pfd = { sizeof(PIXELFORMAT... | 52.446429 | 210 | 0.716377 | slicer4ever |
f48eb9ce9f49c9e6ed3546c5b0f2289a44e0750d | 466 | hpp | C++ | src/texture/systems/source.hpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | 2 | 2021-03-18T16:25:04.000Z | 2021-11-13T00:29:27.000Z | src/texture/systems/source.hpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | null | null | null | src/texture/systems/source.hpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | 1 | 2021-11-13T00:29:30.000Z | 2021-11-13T00:29:30.000Z | /**
* @file
* @author __AUTHOR_NAME__ <mail@host.com>
* @copyright 2021 __COMPANY_LTD__
* @license <a href="https://opensource.org/licenses/MIT">MIT License</a>
*/
#ifndef ZEN_TEXTURES_SYSTEMS_SOURCE_HPP
#define ZEN_TEXTURES_SYSTEMS_SOURCE_HPP
#include <string>
#include "../../ecs/entity.hpp"
namespace Zen {
... | 20.26087 | 74 | 0.740343 | hexoctal |
f4932bd0df1fe71f9aa4c3962b8921a9258d28d0 | 3,275 | cc | C++ | base/core/test/dynamic_fws_multimap_test.cc | dgcl/motis | 6b134f80aa3b6445f710418962f1fed9cffda3a0 | [
"MIT"
] | null | null | null | base/core/test/dynamic_fws_multimap_test.cc | dgcl/motis | 6b134f80aa3b6445f710418962f1fed9cffda3a0 | [
"MIT"
] | null | null | null | base/core/test/dynamic_fws_multimap_test.cc | dgcl/motis | 6b134f80aa3b6445f710418962f1fed9cffda3a0 | [
"MIT"
] | 1 | 2021-10-06T13:48:23.000Z | 2021-10-06T13:48:23.000Z | #include "gtest/gtest.h"
#include <algorithm>
#include <iostream>
#include <iterator>
#include "motis/core/common/dynamic_fws_multimap.h"
namespace motis {
namespace {
template <typename T, bool ConstBucket>
void check_result(
std::vector<T> const& ref,
typename dynamic_fws_multimap<T>::template bucket<Con... | 25 | 78 | 0.611603 | dgcl |
f49389d01da292cd85b77f6261c0a4d53d7d35a2 | 1,581 | cpp | C++ | UVa Online Judge (UVa)/Volume 5/516 - Prime Land.cpp | sreejonK19/online-judge-solutions | da65d635cc488c8f305e48b49727ad62649f5671 | [
"MIT"
] | null | null | null | UVa Online Judge (UVa)/Volume 5/516 - Prime Land.cpp | sreejonK19/online-judge-solutions | da65d635cc488c8f305e48b49727ad62649f5671 | [
"MIT"
] | null | null | null | UVa Online Judge (UVa)/Volume 5/516 - Prime Land.cpp | sreejonK19/online-judge-solutions | da65d635cc488c8f305e48b49727ad62649f5671 | [
"MIT"
] | 2 | 2018-11-06T19:37:56.000Z | 2018-11-09T19:05:46.000Z | #include <cstdio>
#include <iostream>
#include <sstream>
#include <cmath>
#include <vector>
using namespace std;
#define N 32768
#define Check(N, pos) ((bool) ((N)&(1<<(pos))))
#define Set(N, pos) ((N)=((N)|(1<<(pos))))
unsigned status[(N>>5)+2], factor[N], power[N];
vector < unsigned > primes;
void bitSieve()
{
... | 23.954545 | 75 | 0.460468 | sreejonK19 |
f495aedea4e41eb706b3880fb79b008473595cf9 | 1,963 | cpp | C++ | Source/System/auth/xbox_live_server.cpp | blgrossMS/xbox-live-api | 17c586336e11f0fa3a2a3f3acd665b18c5487b24 | [
"MIT"
] | 2 | 2021-07-17T13:34:20.000Z | 2022-01-09T00:55:51.000Z | Source/System/auth/xbox_live_server.cpp | blgrossMS/xbox-live-api | 17c586336e11f0fa3a2a3f3acd665b18c5487b24 | [
"MIT"
] | null | null | null | Source/System/auth/xbox_live_server.cpp | blgrossMS/xbox-live-api | 17c586336e11f0fa3a2a3f3acd665b18c5487b24 | [
"MIT"
] | 1 | 2018-11-18T08:32:40.000Z | 2018-11-18T08:32:40.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
... | 28.449275 | 100 | 0.731024 | blgrossMS |
f495b0417ffb6b2773358e29281900d81e1a8a6d | 2,938 | cpp | C++ | d19/a.cpp | Immortale-dev/adventofcode2022 | 019c0a08ff23e9fcb79c75a08b1cebd65333ca24 | [
"MIT"
] | null | null | null | d19/a.cpp | Immortale-dev/adventofcode2022 | 019c0a08ff23e9fcb79c75a08b1cebd65333ca24 | [
"MIT"
] | null | null | null | d19/a.cpp | Immortale-dev/adventofcode2022 | 019c0a08ff23e9fcb79c75a08b1cebd65333ca24 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#include "../helpers/string_helpers.cpp"
#include "./scanner.cpp"
typedef long long int ll;
vector<Scanner> input;
vector<bool> done;
vector<Beacon> positions;
void prepare() {
string s;
Scanner scan;
while(getline(cin, s)){
if(s == ""){
input.push_back(scan);
... | 18.594937 | 96 | 0.544929 | Immortale-dev |
f49b45244cf94f256ab7e87288ec6bb5749f3e3d | 4,462 | inl | C++ | src/math/q3Mat3.inl | TraistaRafael/qu3e | abdb7a964ad6278dab21ed5bec5937f231c0f20b | [
"Zlib"
] | 791 | 2015-01-04T02:26:39.000Z | 2022-03-30T12:31:36.000Z | src/math/q3Mat3.inl | TraistaRafael/qu3e | abdb7a964ad6278dab21ed5bec5937f231c0f20b | [
"Zlib"
] | 48 | 2015-02-17T19:29:51.000Z | 2021-12-21T01:08:28.000Z | src/math/q3Mat3.inl | TraistaRafael/qu3e | abdb7a964ad6278dab21ed5bec5937f231c0f20b | [
"Zlib"
] | 108 | 2015-02-16T08:20:04.000Z | 2022-03-01T09:39:47.000Z | //--------------------------------------------------------------------------------------------------
// q3Mat3.inl
//
// Copyright (c) 2014 Randy Gaul http://www.randygaul.net
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages... | 30.772414 | 100 | 0.44173 | TraistaRafael |
f49b50d843b661fb801dcd5fcbc1cc05e9c875b0 | 621 | cpp | C++ | Kaminec/kits/JsonKit/AssetIndex.cpp | kaniol-lck/Kaminec | bdbb6645035d6124a3772742362e683938b389fb | [
"BSD-2-Clause"
] | 23 | 2017-06-23T11:58:27.000Z | 2022-03-05T06:58:49.000Z | Kaminec/kits/JsonKit/AssetIndex.cpp | kaniol-lck/Kaminec | bdbb6645035d6124a3772742362e683938b389fb | [
"BSD-2-Clause"
] | 4 | 2017-12-08T11:41:19.000Z | 2021-04-03T17:50:39.000Z | Kaminec/kits/JsonKit/AssetIndex.cpp | kaniol-lck/Kaminec | bdbb6645035d6124a3772742362e683938b389fb | [
"BSD-2-Clause"
] | 5 | 2019-02-19T13:03:42.000Z | 2021-11-04T13:58:04.000Z | #include "AssetIndex.h"
#include "assistance/utility.h"
#include <QUrl>
AssetIndex::AssetIndex(const QVariant &assetIndexVariant) :
assetIndexVariant_(assetIndexVariant)
{}
QString AssetIndex::id() const
{
return value(assetIndexVariant_, "id").toString();
}
int AssetIndex::size() const
{
return value(assetInde... | 17.742857 | 59 | 0.73752 | kaniol-lck |
f49f96b04b4b364bcf289554f5f51b7b81a0b7c0 | 5,486 | cpp | C++ | Project/zoolib/GameEngine/Util.cpp | ElectricMagic/zoolib_cxx | cb3ccfde931b3989cd420fa093153204a7899805 | [
"MIT"
] | 13 | 2015-01-28T21:05:09.000Z | 2021-11-03T22:21:11.000Z | Project/zoolib/GameEngine/Util.cpp | ElectricMagic/zoolib_cxx | cb3ccfde931b3989cd420fa093153204a7899805 | [
"MIT"
] | null | null | null | Project/zoolib/GameEngine/Util.cpp | ElectricMagic/zoolib_cxx | cb3ccfde931b3989cd420fa093153204a7899805 | [
"MIT"
] | 4 | 2018-11-16T08:33:33.000Z | 2021-12-11T19:40:46.000Z | // Copyright (c) 2019 Andrew Green. MIT License. http://www.zoolib.org
#include "zoolib/GameEngine/Util.h"
#include "zoolib/Callable_Function.h"
#include "zoolib/Cartesian_Matrix.h"
#include "zoolib/Chan_XX_Buffered.h"
#include "zoolib/ChanRU_UTF_Std.h"
#include "zoolib/Log.h"
#include "zoolib/NameUniquifier.h" // Fo... | 23.545064 | 100 | 0.635436 | ElectricMagic |
f4a17da42ad498394629dca2918d914e5a087839 | 921 | cpp | C++ | test/types.cpp | jfalcou/tts | 5b8326aa8706feb2a03d56d2b0a5ef0e1aa47b40 | [
"MIT"
] | 12 | 2020-11-12T17:15:44.000Z | 2022-03-15T12:59:17.000Z | test/types.cpp | jfalcou/tts | 5b8326aa8706feb2a03d56d2b0a5ef0e1aa47b40 | [
"MIT"
] | 14 | 2019-09-28T14:04:18.000Z | 2021-12-11T20:08:31.000Z | test/types.cpp | jfalcou/tts | 5b8326aa8706feb2a03d56d2b0a5ef0e1aa47b40 | [
"MIT"
] | null | null | null | //==================================================================================================
/**
TTS - Tiny Test System
Copyright : TTS Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//==================================================================================================
#define T... | 27.909091 | 100 | 0.510315 | jfalcou |
f4a2bd62ae20afd210fd1a4f437a062a23cb1537 | 937 | hpp | C++ | src/Core/Game.hpp | iceonepiece/strong-man | c880b5ecadef87fe4bbcd1195526de8f020929cf | [
"MIT"
] | null | null | null | src/Core/Game.hpp | iceonepiece/strong-man | c880b5ecadef87fe4bbcd1195526de8f020929cf | [
"MIT"
] | null | null | null | src/Core/Game.hpp | iceonepiece/strong-man | c880b5ecadef87fe4bbcd1195526de8f020929cf | [
"MIT"
] | null | null | null | #pragma once
#include <unordered_map>
#include <string>
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include "Input.hpp"
class Game
{
public:
Game();
virtual ~Game();
bool Initialize();
void Run();
void Shutdown();
void SetCurrentScene(std::string sceneName);
unsigned int GetScreenWidth() { return m_Scre... | 18.74 | 58 | 0.726788 | iceonepiece |
f4a47ce6fad08680e565e8ea9a255b563417cd40 | 535 | hpp | C++ | include/boost/url/url.hpp | syoliver/url | 7a992f6aa758807bbcd2e92e413453da98ee0c3d | [
"BSL-1.0"
] | null | null | null | include/boost/url/url.hpp | syoliver/url | 7a992f6aa758807bbcd2e92e413453da98ee0c3d | [
"BSL-1.0"
] | null | null | null | include/boost/url/url.hpp | syoliver/url | 7a992f6aa758807bbcd2e92e413453da98ee0c3d | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
//
// 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)
//
// Official repository: https://github.com/vinniefalco/url
//
#ifndef BOOST_URL_URL_HPP
#define B... | 20.576923 | 79 | 0.73271 | syoliver |
f4a52da293b8216b7235307e5da9abb35c5b810c | 3,952 | cpp | C++ | Packet/PacketCondenser.cpp | RodrigoHolztrattner/Packet | ea514f326b7678414ef6521a6b4546e878f5c4ec | [
"MIT"
] | 6 | 2018-03-15T09:11:07.000Z | 2021-05-11T16:19:53.000Z | Packet/PacketCondenser.cpp | RodrigoHolztrattner/Packet | ea514f326b7678414ef6521a6b4546e878f5c4ec | [
"MIT"
] | 16 | 2019-02-14T22:56:21.000Z | 2019-07-08T20:21:01.000Z | Packet/PacketCondenser.cpp | RodrigoHolztrattner/Packet | ea514f326b7678414ef6521a6b4546e878f5c4ec | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// Filename: FluxMyWrapper.cpp
////////////////////////////////////////////////////////////////////////////////
#include "PacketCondenser.h"
#include <filesystem>
#include <fstream>
///////////////
// NAMESPACE //
///////////////
PacketUs... | 29.274074 | 176 | 0.698381 | RodrigoHolztrattner |
f4a5ccdefd09cbf1852aff88879c7a6ed81d461b | 1,467 | cpp | C++ | done/124_max_path_sum.cpp | zjuMrzhang/leetcode | 35ab78be5b9a2ef0fb35f99c146c2190b2bed148 | [
"MIT"
] | null | null | null | done/124_max_path_sum.cpp | zjuMrzhang/leetcode | 35ab78be5b9a2ef0fb35f99c146c2190b2bed148 | [
"MIT"
] | null | null | null | done/124_max_path_sum.cpp | zjuMrzhang/leetcode | 35ab78be5b9a2ef0fb35f99c146c2190b2bed148 | [
"MIT"
] | 1 | 2020-09-30T19:03:01.000Z | 2020-09-30T19:03:01.000Z | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
int tmpmax=0x80000000;
int maxPathSumofRoot(TreeNode* root){
//
if(root==N... | 27.166667 | 77 | 0.479891 | zjuMrzhang |
f4b07deac6aa6af3f7ee54cbe5bdee6fcaa83860 | 247 | hpp | C++ | src/components/component_job_list.hpp | Nodmgatall/ytba | 19de0ac40236e0c8cf5f1f7eb77efe764bc51b1f | [
"MIT"
] | null | null | null | src/components/component_job_list.hpp | Nodmgatall/ytba | 19de0ac40236e0c8cf5f1f7eb77efe764bc51b1f | [
"MIT"
] | null | null | null | src/components/component_job_list.hpp | Nodmgatall/ytba | 19de0ac40236e0c8cf5f1f7eb77efe764bc51b1f | [
"MIT"
] | null | null | null | #ifndef COMPONENT_JOB_LIST_HPP
#define COMPONENT_JOB_LIST_HPP
#include "../sub_types/terrain_types.hpp"
#include "entityx/entityx.h"
struct job_list : entityx::Component<job_list> {
job_list() {
std::vector<Job*> job_list;
}
#endif
| 19 | 48 | 0.732794 | Nodmgatall |
f4b38a8da4e8b2add36e4d77eda66b1c226df21b | 1,764 | hpp | C++ | libfma/include/fma/types/Class.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 14 | 2018-01-25T10:31:05.000Z | 2022-02-19T13:08:11.000Z | libfma/include/fma/types/Class.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 1 | 2020-12-24T10:10:28.000Z | 2020-12-24T10:10:28.000Z | libfma/include/fma/types/Class.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | null | null | null | #ifndef __FMA_TYPES_CLASS_H__
#define __FMA_TYPES_CLASS_H__
#include <vector>
#include "Base.hpp"
namespace FMA {
namespace interpret {
class BaseContext;
typedef std::shared_ptr<BaseContext> ContextPtr;
struct Parameter;
struct GroupedParameterList;
}
namespace types {
class ClassPrototype;
class Class : p... | 28.918033 | 145 | 0.757937 | BenjaminSchulte |
f4b5488371e33a3bab3d7f520adc51b3dda49001 | 1,296 | cpp | C++ | src/sport/enum/MarketSort.cpp | Sherlock92/greentop | aa278d08babe02326b3ab85a6eafb858d780dec5 | [
"MIT"
] | 5 | 2019-06-30T06:29:46.000Z | 2021-12-17T12:41:23.000Z | src/sport/enum/MarketSort.cpp | Sherlock92/greentop | aa278d08babe02326b3ab85a6eafb858d780dec5 | [
"MIT"
] | 2 | 2018-01-09T17:14:45.000Z | 2020-03-23T00:16:50.000Z | src/sport/enum/MarketSort.cpp | Sherlock92/greentop | aa278d08babe02326b3ab85a6eafb858d780dec5 | [
"MIT"
] | 7 | 2015-09-13T18:40:58.000Z | 2020-01-24T10:57:56.000Z | /**
* Copyright 2017 Colin Doig. Distributed under the MIT license.
*/
#include <stdexcept>
#include "greentop/sport/enum/MarketSort.h"
#include "greentop/Enum.h"
namespace greentop {
namespace sport {
const std::string MarketSort::MINIMUM_TRADED = "MINIMUM_TRADED";
const std::string MarketSort::MAXIMUM_TRADED = ... | 25.92 | 70 | 0.692901 | Sherlock92 |
f4b57a65a8fd9bc91423240c1fec3adfcddf73a3 | 1,669 | hpp | C++ | include/CASM/codec/pcm.hpp | Liastre/CASM | 4f978664ac4812e8cfcd76025ac2429a46543582 | [
"MIT"
] | 1 | 2021-08-06T07:55:21.000Z | 2021-08-06T07:55:21.000Z | include/CASM/codec/pcm.hpp | Liastre/CASM | 4f978664ac4812e8cfcd76025ac2429a46543582 | [
"MIT"
] | 1 | 2021-08-05T09:33:13.000Z | 2021-08-05T09:33:13.000Z | include/CASM/codec/pcm.hpp | Liastre/CASM | 4f978664ac4812e8cfcd76025ac2429a46543582 | [
"MIT"
] | null | null | null | /**
* PCM codec implementation
* @author Liastre
* @copyright MIT
*/
#pragma once
#include <CASM/codec/codec.hpp>
#include <array>
namespace CASM {
namespace Codec {
using WavHeader = struct {
std::array<char, 4> chunkID {'R','I','F','F'}; // RIFF chunk
std::uint32_t chunkSize {0}; ... | 31.490566 | 100 | 0.624326 | Liastre |
f4b80a7d286e7523c85f8f2980657ae4ddb3cfcd | 914 | cpp | C++ | Src/IO/CPipe_get.cpp | Gjoll/OpSys | ebba2d8856d21a1f6cefe59c781ce7b9ff1430cf | [
"Apache-2.0"
] | null | null | null | Src/IO/CPipe_get.cpp | Gjoll/OpSys | ebba2d8856d21a1f6cefe59c781ce7b9ff1430cf | [
"Apache-2.0"
] | null | null | null | Src/IO/CPipe_get.cpp | Gjoll/OpSys | ebba2d8856d21a1f6cefe59c781ce7b9ff1430cf | [
"Apache-2.0"
] | null | null | null | /*
Copyright 1992 Kurt W. Allen.
This is an unpublished work by Kurt W. Allen. All
rights are reserved, and no part of this work may be
distributed or released with out the express permission
of Kurt W. Allen, 3540 43'rd Ave S., Mpls, Mn 55406.
*/
/*
$Revision: 1.1 $
$Modtime: 01 May 1993 09:32:52 $
$Workfil... | 21.761905 | 65 | 0.657549 | Gjoll |
f4c6edcc6f260b9832e56a66eb2d1067e7445604 | 1,271 | cpp | C++ | libnuklei/io/PLYObservation.cpp | chungying/nuklei | 23db2a55a1b3260cf913d0ac10b3b27c000ae1a6 | [
"BSD-3-Clause"
] | null | null | null | libnuklei/io/PLYObservation.cpp | chungying/nuklei | 23db2a55a1b3260cf913d0ac10b3b27c000ae1a6 | [
"BSD-3-Clause"
] | null | null | null | libnuklei/io/PLYObservation.cpp | chungying/nuklei | 23db2a55a1b3260cf913d0ac10b3b27c000ae1a6 | [
"BSD-3-Clause"
] | null | null | null | // (C) Copyright Renaud Detry 2007-2015.
// Distributed under the GNU General Public License and under the
// BSD 3-Clause License (See accompanying file LICENSE.txt).
/** @file */
#include <nuklei/PLYObservation.h>
namespace nuklei {
const double PLYObservation::TOL = 1e-5;
PLYObservation::PLYObservati... | 22.696429 | 79 | 0.686861 | chungying |
f4ca2bab53a38121df662d29c6d539d0399b8a3a | 2,378 | cpp | C++ | test/example.cpp | peterbygrave/coulombgalore | ac7d13641212c53c126f9d48f8aa6e8f249f514e | [
"MIT"
] | 7 | 2019-08-12T15:00:40.000Z | 2022-03-23T06:46:40.000Z | test/example.cpp | peterbygrave/coulombgalore | ac7d13641212c53c126f9d48f8aa6e8f249f514e | [
"MIT"
] | 7 | 2019-10-19T12:24:29.000Z | 2021-05-12T05:58:03.000Z | test/example.cpp | peterbygrave/coulombgalore | ac7d13641212c53c126f9d48f8aa6e8f249f514e | [
"MIT"
] | 3 | 2019-07-10T12:30:20.000Z | 2020-11-27T11:10:07.000Z | #include <iostream>
#include <nlohmann/json.hpp>
#include "coulombgalore.h"
using namespace CoulombGalore;
typedef Eigen::Vector3d Point; //!< typedef for 3d vector
int main() {
double pi = 3.141592653589793, // Pi
e0 = 8.85419e-12, // Permittivity of vacuum [C^2/(J*m)]
e = 1.602177e-19,... | 38.983607 | 117 | 0.605551 | peterbygrave |
f4ca32bfc5cb9f28143a90f8d084eb1178cacdfb | 826 | cpp | C++ | CodeChef/LTIME67B/AGECAL.cpp | codemute/cp-sol | e6ea2533adf9f590f5e9d6a6b50031db9d3dca4a | [
"MIT"
] | 1 | 2019-10-06T14:39:34.000Z | 2019-10-06T14:39:34.000Z | CodeChef/LTIME67B/AGECAL.cpp | codemute/cp-sol | e6ea2533adf9f590f5e9d6a6b50031db9d3dca4a | [
"MIT"
] | 1 | 2019-07-12T08:08:50.000Z | 2019-10-04T07:56:33.000Z | CodeChef/LTIME67B/AGECAL.cpp | codemute/cp-sol | e6ea2533adf9f590f5e9d6a6b50031db9d3dca4a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int cei(int a, int b) {
if(a % b == 0) return a / b;
return (a / b) + 1;
}
int main() {
int t; cin >> t;
while(t--) {
int n; cin >> n;
int a[n], tot = 0;
for(int i = 0; i < n; i++) {
cin >> a[i];
tot += a[i];
}
int yb, mb, db;
c... | 20.65 | 56 | 0.360775 | codemute |
f4cc26f3ef7a3453c78b7e35f6bc3b1d34432453 | 928 | hpp | C++ | addons/bw/configs/CfgAmmo.hpp | Braincrushy/TBMod | 785f11cd9cd0defb0d01a6d2861beb6c207eb8a3 | [
"MIT"
] | null | null | null | addons/bw/configs/CfgAmmo.hpp | Braincrushy/TBMod | 785f11cd9cd0defb0d01a6d2861beb6c207eb8a3 | [
"MIT"
] | 4 | 2018-12-21T06:57:25.000Z | 2020-07-09T09:06:38.000Z | addons/bw/configs/CfgAmmo.hpp | Braincrushy/TBMod | 785f11cd9cd0defb0d01a6d2861beb6c207eb8a3 | [
"MIT"
] | null | null | null | /*
Part of the TBMod ( https://github.com/TacticalBaconDevs/TBMod )
Developed by http://tacticalbacon.de
*/
class CfgAmmo
{
class BWA3_B_127x99_Ball;
class BWA3_B_127x99_Ball_Raufoss : BWA3_B_127x99_Ball // 50.cal Long-Range Sniper BW
{
caliber = 2.5; // 5.2
explosive = 0.1; // 0
... | 26.514286 | 97 | 0.577586 | Braincrushy |
f4d003ba3188b920728e3fc78baa0266093881f5 | 376 | cpp | C++ | assembler/main.cpp | terana/pdp-11 | 720ab9b3a15c832de012b5846cb363a5f0b8ce2c | [
"MIT"
] | null | null | null | assembler/main.cpp | terana/pdp-11 | 720ab9b3a15c832de012b5846cb363a5f0b8ce2c | [
"MIT"
] | null | null | null | assembler/main.cpp | terana/pdp-11 | 720ab9b3a15c832de012b5846cb363a5f0b8ce2c | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include "assembler.hpp"
int main(int argc, char *argv[]) {
std::string asm_file = argc > 1 ? argv[1] : "../programs/white_screen.s";
const char *bin_file = argc > 2 ? argv[2] : "white_screen";
std::ifstream asmStream(asm_file);
Assembler assembler;
assemble... | 23.5 | 77 | 0.664894 | terana |
f4dadf33f2b54fa45221dbd32ff8e6ae34f47d5a | 614 | cpp | C++ | src/Npfs/Messages/Rread.cpp | joluxer/NpfsCpp | f19d422b9ab4fa67e35c1e0c29dfa2abc8b0d78f | [
"Zlib"
] | null | null | null | src/Npfs/Messages/Rread.cpp | joluxer/NpfsCpp | f19d422b9ab4fa67e35c1e0c29dfa2abc8b0d78f | [
"Zlib"
] | null | null | null | src/Npfs/Messages/Rread.cpp | joluxer/NpfsCpp | f19d422b9ab4fa67e35c1e0c29dfa2abc8b0d78f | [
"Zlib"
] | null | null | null | /*
* Rread.cpp
*
* Created on: 18.07.2012
* Author: jlode
*/
#include "Rread.h"
namespace Npfs
{
Rread::Rread(const Npfs::Tread& tref, MemoryManager* mm_)
: Rmessage(tref), mm(mm_), count(tref.count), data((unsigned char*) mm->allocate(tref.count))
{}
Rread::~Rread()
{
mm->release(data);
}
uint32_t R... | 14.619048 | 94 | 0.627036 | joluxer |
f4ddbea6636b8499172b446ec266c77a29afebc5 | 1,177 | cpp | C++ | InterviewBit/Arrays/Set Matrix Zeros.cpp | sankalpmittal1911-BitSian/Competitive-Coding | eac5b4f465083e27496a0711a527d67ab657a35c | [
"MIT"
] | null | null | null | InterviewBit/Arrays/Set Matrix Zeros.cpp | sankalpmittal1911-BitSian/Competitive-Coding | eac5b4f465083e27496a0711a527d67ab657a35c | [
"MIT"
] | null | null | null | InterviewBit/Arrays/Set Matrix Zeros.cpp | sankalpmittal1911-BitSian/Competitive-Coding | eac5b4f465083e27496a0711a527d67ab657a35c | [
"MIT"
] | null | null | null | /*Asked in:
Oracle
Amazon
Given an m x n matrix of 0s and 1s, if an element is 0, set its entire row and column to 0.
Do it in place.
Example
Given array A as
1 0 1
1 1 1
1 1 1
On returning, the array A should be :
0 0 0
1 0 1
1 0 1
Note that this will be evaluated on the extra memory used. Try to minimize the ... | 19.949153 | 107 | 0.544605 | sankalpmittal1911-BitSian |
f4dff7852c529967fd685d6dc5520ad3edce7e10 | 667 | cpp | C++ | competitive/c++/codeforces/round 690 div 3/maina.cpp | HackintoshwithUbuntu/BigRepo | 70746ddf7edc1ec9f13fe5f53a40eb4c3ebd2874 | [
"MIT"
] | null | null | null | competitive/c++/codeforces/round 690 div 3/maina.cpp | HackintoshwithUbuntu/BigRepo | 70746ddf7edc1ec9f13fe5f53a40eb4c3ebd2874 | [
"MIT"
] | null | null | null | competitive/c++/codeforces/round 690 div 3/maina.cpp | HackintoshwithUbuntu/BigRepo | 70746ddf7edc1ec9f13fe5f53a40eb4c3ebd2874 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int n, b;
void solve() {
int a[300];
int ans[300];
cin >> n;
for(int i = 0; i < n; i++){
int z;
cin >> z;
a[i] = z;
}
int lp = 0;
int rp = n - 1;
for (int i = 0; i < n; i++) {
if ((i & 1) == 0) {
... | 13.895833 | 37 | 0.346327 | HackintoshwithUbuntu |
f4e329e0eb966a4659fafb31f403f80081093825 | 278 | cpp | C++ | platform/include/platform/types/main.cpp | Garph/Carbon | 4e412c5ff4a81e15cae2e86ff7476ca2ee3df080 | [
"MIT"
] | null | null | null | platform/include/platform/types/main.cpp | Garph/Carbon | 4e412c5ff4a81e15cae2e86ff7476ca2ee3df080 | [
"MIT"
] | null | null | null | platform/include/platform/types/main.cpp | Garph/Carbon | 4e412c5ff4a81e15cae2e86ff7476ca2ee3df080 | [
"MIT"
] | null | null | null | #include "view.h"
#include <iostream>
void foo(emb::view<int> xs)
{
for (auto const& x : xs) {
std::cout << x << ", ";
}
std::cout << std::endl;
}
int main(void)
{
int arr[5] = {0, 1, 2, 3, 4};
emb::view<int> xs(arr);
foo(xs);
return 0;
}
| 13.9 | 33 | 0.478417 | Garph |
f4efb974f5df44fd84f4518c5d96e68f92ad6fde | 804 | cpp | C++ | apps/vJoyList/MyMFCListCtrl.cpp | lukester1975/vJoy | 28bede0a486dd0a303157c1365d4f18464e7034d | [
"MIT"
] | 432 | 2015-08-12T03:06:13.000Z | 2022-03-29T17:42:12.000Z | apps/vJoyList/MyMFCListCtrl.cpp | jiangnane/vJoy | 911a2a53a972f73ea8b4a021c390c953012b7fb9 | [
"MIT"
] | 64 | 2016-01-11T06:31:05.000Z | 2022-03-26T21:17:17.000Z | apps/vJoyList/MyMFCListCtrl.cpp | jiangnane/vJoy | 911a2a53a972f73ea8b4a021c390c953012b7fb9 | [
"MIT"
] | 109 | 2015-10-11T14:27:28.000Z | 2022-03-29T17:42:21.000Z | // MyMFCListCtrl.cpp : implementation file
//
#include "stdafx.h"
#include "vJoyList.h"
#include "MyMFCListCtrl.h"
// CMyMFCListCtrl
IMPLEMENT_DYNAMIC(CMyMFCListCtrl, CMFCListCtrl)
COLORREF CMyMFCListCtrl::OnGetCellTextColor(int nRow, int nColum)
{
if (!Exist[nRow])
return RGB(200, 200, 200);
else
{
if (!Ow... | 13.4 | 65 | 0.686567 | lukester1975 |
f4f341c0d915a82506d114579a0967963bae0e65 | 4,416 | cpp | C++ | pc-client/Public/LejuTbableWidget.cpp | LejuRobotics/Aelos-Vision-Demo | 0b4ad1338bd018e8107533a7164d00442ff1d394 | [
"Apache-2.0"
] | 6 | 2018-10-23T07:28:35.000Z | 2020-02-06T02:19:40.000Z | pc-client/Public/LejuTbableWidget.cpp | LejuRobotics/Aelos-Vision-Demo | 0b4ad1338bd018e8107533a7164d00442ff1d394 | [
"Apache-2.0"
] | null | null | null | pc-client/Public/LejuTbableWidget.cpp | LejuRobotics/Aelos-Vision-Demo | 0b4ad1338bd018e8107533a7164d00442ff1d394 | [
"Apache-2.0"
] | 3 | 2018-12-25T08:34:15.000Z | 2020-04-16T07:03:00.000Z | /**
* @file LejuTbableWidget.cpp
* @version 1.0
* @date 2017年07月22日
* @author C_Are
* @copyright Leju
*
* @brief 记录标记颜色的列表,LejuTbableWidget类的cpp文件
*/
#include "LejuTbableWidget.h"
LejuTbableWidget::LejuTbableWidget(QWidget *parent) : QTableWidget(parent)
{
//设置表头
setColumnCoun... | 30.246575 | 129 | 0.666893 | LejuRobotics |
f4f83be5e7f79391192be51edcd62a436de028cf | 7,576 | tcc | C++ | include/onnc/ADT/Bits/Digraph.tcc | LiuLeif/onnc | 3f69e46172a9c33cc04541ff7fd78d5d7b6bdbba | [
"BSD-3-Clause"
] | 450 | 2018-08-03T08:17:03.000Z | 2022-03-17T17:21:06.000Z | include/onnc/ADT/Bits/Digraph.tcc | ffk0716/onnc | 91e4955ade64b479db17aaeccacf4b7339fe44d2 | [
"BSD-3-Clause"
] | 104 | 2018-08-13T07:31:50.000Z | 2021-08-24T11:24:40.000Z | include/onnc/ADT/Bits/Digraph.tcc | ffk0716/onnc | 91e4955ade64b479db17aaeccacf4b7339fe44d2 | [
"BSD-3-Clause"
] | 100 | 2018-08-12T04:27:39.000Z | 2022-03-11T04:17:42.000Z | //===-- Digraph.tcc -------------------------------------------------------===//
//
// The ONNC Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// Digraph
//===-----------------------------------------------------... | 25.508418 | 83 | 0.679382 | LiuLeif |
f4ff050c8ab412d4b5c1841fbe015805f5200bf6 | 2,203 | hpp | C++ | multi_robot_explore_cpp/include/multi_robot_explore_cpp/get_map_value_node.hpp | wt160/multi_robot_explore_testbed | 9d5fd50f5c7fd5f77a6dc70c74608c65cdf96396 | [
"BSD-3-Clause"
] | null | null | null | multi_robot_explore_cpp/include/multi_robot_explore_cpp/get_map_value_node.hpp | wt160/multi_robot_explore_testbed | 9d5fd50f5c7fd5f77a6dc70c74608c65cdf96396 | [
"BSD-3-Clause"
] | null | null | null | multi_robot_explore_cpp/include/multi_robot_explore_cpp/get_map_value_node.hpp | wt160/multi_robot_explore_testbed | 9d5fd50f5c7fd5f77a6dc70c74608c65cdf96396 | [
"BSD-3-Clause"
] | null | null | null | #ifndef ROBOT_CONTROL_INTERFACE_HPP
#define ROBOT_CONTROL_INTERFACE_HPP
#include "rclcpp/rclcpp.hpp"
#include "rclcpp_action/rclcpp_action.hpp"
#include "multi_robot_explore_cpp/explore_util.hpp"
#include <thread>
#include <chrono>
#include <future>
#include "geometry_msgs/msg/pose.hpp"
#include "geometry_msgs/msg/po... | 37.982759 | 128 | 0.744893 | wt160 |
7605661c6c7945dd63c11ca1145de7d9743bcc63 | 10,670 | cpp | C++ | src/cpp/BaseWindow.cpp | orbitrc/blusher | bf90272308c0ff06560f0feace5845d77a05d70f | [
"MIT"
] | 3 | 2019-08-08T05:48:24.000Z | 2021-08-23T01:24:29.000Z | src/cpp/BaseWindow.cpp | orbitrc/blusher | bf90272308c0ff06560f0feace5845d77a05d70f | [
"MIT"
] | 2 | 2021-06-28T10:50:52.000Z | 2021-07-11T10:37:29.000Z | src/cpp/BaseWindow.cpp | orbitrc/blusher | bf90272308c0ff06560f0feace5845d77a05d70f | [
"MIT"
] | 1 | 2019-08-15T04:19:51.000Z | 2019-08-15T04:19:51.000Z | #include "BaseWindow.h"
#include <stdint.h>
#include <blusher/base.h>
#include "DesktopEnvironment.h"
#include "Ewmh.h"
#include "Blusher.h"
#include <QScreen>
namespace bl {
BaseWindow::BaseWindow(QWindow *parent)
: QQuickWindow(parent)
{
this->m_netWmStrutPartial = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };... | 24.813953 | 92 | 0.627273 | orbitrc |
7606b9fc27c686a035d5ba98f410fd51316408f2 | 51,830 | cpp | C++ | pizmidi/midiConverter3/midiConverter3.cpp | nonameentername/pizmidi | a985e3d2bf8f02e3c0a87300dfbb82c35608bbd2 | [
"BSD-Source-Code"
] | null | null | null | pizmidi/midiConverter3/midiConverter3.cpp | nonameentername/pizmidi | a985e3d2bf8f02e3c0a87300dfbb82c35608bbd2 | [
"BSD-Source-Code"
] | null | null | null | pizmidi/midiConverter3/midiConverter3.cpp | nonameentername/pizmidi | a985e3d2bf8f02e3c0a87300dfbb82c35608bbd2 | [
"BSD-Source-Code"
] | 1 | 2021-01-26T12:25:01.000Z | 2021-01-26T12:25:01.000Z | #include "midiConverter3.hpp"
//-------------------------------------------------------------------------------------------------------
AudioEffect* createEffectInstance (audioMasterCallback audioMaster)
{
return new MidiConverter (audioMaster);
}
MidiConverterProgram::MidiConverterProgram ()
{
// default Pro... | 43.738397 | 160 | 0.482732 | nonameentername |
76090310b2814e60bfb752addad00581e480c9c5 | 10,370 | cpp | C++ | vive_bridge/src/vive_interface.cpp | mortaas/vive_rrcc | cdec4645dd3bc1510e15af4be20c7f8dfef321e0 | [
"MIT"
] | 1 | 2020-05-14T02:19:56.000Z | 2020-05-14T02:19:56.000Z | vive_bridge/src/vive_interface.cpp | mortaas/vive_rrcc | cdec4645dd3bc1510e15af4be20c7f8dfef321e0 | [
"MIT"
] | null | null | null | vive_bridge/src/vive_interface.cpp | mortaas/vive_rrcc | cdec4645dd3bc1510e15af4be20c7f8dfef321e0 | [
"MIT"
] | null | null | null | #include "vive_bridge/vive_interface.h"
// Default functions for logging
inline void DefaultDebugMsgCallback(const std::string &msg) {
std::cerr << "VR Debug: " << msg << std::endl;
}
inline void DefaultInfoMsgCallback(const std::string &msg) {
std::cerr << "VR Info: " << msg << std::endl;
}
inline void Defaul... | 38.838951 | 152 | 0.694021 | mortaas |
760953b3829e16f1b8f24601633c3caff4c06347 | 1,443 | cpp | C++ | Day2/main.cpp | baldwinmatt/AoC-2021 | 4a7f18f6364715f6e61127aba175db6fec6e6b13 | [
"Apache-2.0"
] | 4 | 2021-12-06T17:14:00.000Z | 2021-12-10T06:29:35.000Z | Day2/main.cpp | baldwinmatt/AoC-2021 | 4a7f18f6364715f6e61127aba175db6fec6e6b13 | [
"Apache-2.0"
] | null | null | null | Day2/main.cpp | baldwinmatt/AoC-2021 | 4a7f18f6364715f6e61127aba175db6fec6e6b13 | [
"Apache-2.0"
] | null | null | null | #include "aoc21/helpers.h"
#include <set>
namespace {
using Movement = std::pair<char, int>;
constexpr std::string_view DIRECTION_FORWARD("forward");
constexpr std::string_view DIRECTION_UP("up");
constexpr std::string_view DIRECTION_DOWN("down");
std::set<std::string_view> DIRECTIONS = {
D... | 20.323944 | 60 | 0.575191 | baldwinmatt |
7609549b84d30b06941f2bc18f9bdcbb36f4d85e | 2,930 | cpp | C++ | tree/binary_tree/103_binary-tree-zigzag-level-order-traversal.cpp | b1tank/leetcode | 0b71eb7a4f52291ff072b1280d6b76e68f7adfee | [
"MIT"
] | null | null | null | tree/binary_tree/103_binary-tree-zigzag-level-order-traversal.cpp | b1tank/leetcode | 0b71eb7a4f52291ff072b1280d6b76e68f7adfee | [
"MIT"
] | null | null | null | tree/binary_tree/103_binary-tree-zigzag-level-order-traversal.cpp | b1tank/leetcode | 0b71eb7a4f52291ff072b1280d6b76e68f7adfee | [
"MIT"
] | null | null | null | // Author: b1tank
// Email: b1tank@outlook.com
//=================================
/*
103_binary-tree-zigzag-level-order-traversal LeetCode
Solution:
- BFS (deque rather than queue)
- DFS (recursive) (potentially O(logN) space for auto-cast enabled language like Java, Python)
*/
#include <iostre... | 30.206186 | 99 | 0.454949 | b1tank |
760ab8227a4933c0797445037a7ee0c712dca22c | 1,103 | cpp | C++ | Other/Additional Practice 14.12.2019/rightWayToAllocateDynamicMatrix.cpp | terziev-viktor/FMI-UP-2019-2020 | 1974eec4677257229dcb5f9327aed5dfb38d1f8c | [
"MIT"
] | 4 | 2019-11-06T12:03:06.000Z | 2020-02-24T18:33:11.000Z | Other/Additional Practice 14.12.2019/rightWayToAllocateDynamicMatrix.cpp | terziev-viktor/FMI-UP-2019-2020 | 1974eec4677257229dcb5f9327aed5dfb38d1f8c | [
"MIT"
] | null | null | null | Other/Additional Practice 14.12.2019/rightWayToAllocateDynamicMatrix.cpp | terziev-viktor/FMI-UP-2019-2020 | 1974eec4677257229dcb5f9327aed5dfb38d1f8c | [
"MIT"
] | 3 | 2019-11-27T17:13:59.000Z | 2020-02-24T18:33:15.000Z | #include <iostream>
void deleteMatrix(int** matrix, size_t rows) {
for(int i = 0; i < rows; ++i) {
delete[] matrix[i];
}
delete[] matrix;
}
int** allocateMatrixByRowsAndCols(size_t n, size_t m) {
int** matrix = new (std::nothrow) int* [n];
if(matrix == nullptr) { // if operator new can't allocate memory on the... | 25.068182 | 81 | 0.646419 | terziev-viktor |
760fc027a88ce6e1c6af2ad87fc7e27045f77a01 | 3,959 | hpp | C++ | include/GlobalNamespace/NetworkPlayerEntitlementChecker_CachedTcs.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/NetworkPlayerEntitlementChecker_CachedTcs.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/NetworkPlayerEntitlementChecker_CachedTcs.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: NetworkPlayerEntitlementChecker
#include "GlobalNamespace/NetworkPlaye... | 49.4875 | 255 | 0.731498 | darknight1050 |
761bc7887fd6ad28909273d105e929189ccc8c0a | 1,435 | cpp | C++ | shaders/src/sib_color_to_vector.cpp | caron/sitoa | 52a0a4b35f51bccb6223a8206d04b40edc80071c | [
"Apache-2.0"
] | 34 | 2018-02-01T16:13:48.000Z | 2021-07-16T07:37:47.000Z | shaders/src/sib_color_to_vector.cpp | 625002974/sitoa | 46b7de8e3cf2e2c4cbc6bc391f11181cbac1a589 | [
"Apache-2.0"
] | 72 | 2018-02-16T17:30:41.000Z | 2021-11-22T11:41:45.000Z | shaders/src/sib_color_to_vector.cpp | 625002974/sitoa | 46b7de8e3cf2e2c4cbc6bc391f11181cbac1a589 | [
"Apache-2.0"
] | 15 | 2018-02-15T15:36:58.000Z | 2021-04-14T03:54:25.000Z | /************************************************************************************************************************************
Copyright 2017 Autodesk, 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 ... | 33.372093 | 134 | 0.594425 | caron |
76211f9acf908b7c72af662ad7b24013fd460d73 | 2,619 | cpp | C++ | src/test/logging/log_record_test.cpp | abingham/ackward | f1a45293de570f4b4429d9eaeb3f6c4da7d245bf | [
"MIT"
] | null | null | null | src/test/logging/log_record_test.cpp | abingham/ackward | f1a45293de570f4b4429d9eaeb3f6c4da7d245bf | [
"MIT"
] | null | null | null | src/test/logging/log_record_test.cpp | abingham/ackward | f1a45293de570f4b4429d9eaeb3f6c4da7d245bf | [
"MIT"
] | null | null | null | #include <Python.h>
#include <fstream>
#include <boost/python/tuple.hpp>
#include <boost/test/unit_test.hpp>
#include <ackward/logging/LogRecord.hpp>
using namespace ackward::logging;
namespace
{
struct Fixture
{
Fixture() :
rec (L"foo",
DEBUG(),
L"/some/path/name",
... | 16.166667 | 48 | 0.623139 | abingham |
76239975a019ff7a8095b7f41e9b9ffdbc5e73b6 | 6,277 | cpp | C++ | src/gammaGenerator.cpp | bhurwitz33/bayesembler | b1d8200d5ffa2ae3476391d9f35f26e5f14f517f | [
"MIT"
] | 1 | 2019-01-10T15:43:12.000Z | 2019-01-10T15:43:12.000Z | src/gammaGenerator.cpp | bhurwitz33/bayesembler | b1d8200d5ffa2ae3476391d9f35f26e5f14f517f | [
"MIT"
] | null | null | null | src/gammaGenerator.cpp | bhurwitz33/bayesembler | b1d8200d5ffa2ae3476391d9f35f26e5f14f517f | [
"MIT"
] | null | null | null |
/*
gammaGenerator.cpp - This file is part of the Bayesembler (v1.1.1)
The MIT License (MIT)
Copyright (c) 2014 Lasse Maretty and Jonas Andreas Sibbesen
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 S... | 27.774336 | 197 | 0.703043 | bhurwitz33 |
762404feb02085ab9c4d08f8b714f6676543d87a | 430 | hpp | C++ | src/argument_interpreter.hpp | rikutons/mytreecode | c25f955f946afb5c9e2d6fd14357e01eb4ff19f9 | [
"MIT"
] | null | null | null | src/argument_interpreter.hpp | rikutons/mytreecode | c25f955f946afb5c9e2d6fd14357e01eb4ff19f9 | [
"MIT"
] | null | null | null | src/argument_interpreter.hpp | rikutons/mytreecode | c25f955f946afb5c9e2d6fd14357e01eb4ff19f9 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
using namespace std;
class ArgumentInterpreter
{
public:
int cnt = 1;
double dt = 0.01;
double t = 1;
double eps_square = 0.1 * 0.1;
double theta_square = 0.5; // [rad^2]
int simulator_mode = -1;
string input_filename = "";
string output_filename = "output.csv";
// 以下はi... | 21.5 | 46 | 0.672093 | rikutons |
762716444ca4d252701dbcb91ff2688701eda79d | 467 | hpp | C++ | libs/modelmd3/include/sge/model/md3/load_flags.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/modelmd3/include/sge/model/md3/load_flags.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/modelmd3/include/sge/model/md3/load_flags.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_MODEL_MD3_LOAD_FLAGS_HPP_INCLUDED
#define SGE_MODEL_MD3_LOAD_FLAGS_HPP_INCLUDED
#inclu... | 20.304348 | 61 | 0.738758 | cpreh |
7627af6217dd98f6d344ed1aacc825ceb81214e7 | 3,461 | cpp | C++ | XRADDicomGUI/Sources/DisplayFunctions/DisplayTomogram_CTAcquisition.cpp | n-kulberg/xrad | 3d089cc24d942db4649f1a50defbd69f01739ae2 | [
"BSD-3-Clause"
] | 1 | 2021-04-02T16:47:00.000Z | 2021-04-02T16:47:00.000Z | XRADDicomGUI/Sources/DisplayFunctions/DisplayTomogram_CTAcquisition.cpp | n-kulberg/xrad | 3d089cc24d942db4649f1a50defbd69f01739ae2 | [
"BSD-3-Clause"
] | null | null | null | XRADDicomGUI/Sources/DisplayFunctions/DisplayTomogram_CTAcquisition.cpp | n-kulberg/xrad | 3d089cc24d942db4649f1a50defbd69f01739ae2 | [
"BSD-3-Clause"
] | 3 | 2021-08-30T11:26:23.000Z | 2021-09-23T09:39:56.000Z | /*
Copyright (c) 2021, Moscow Center for Diagnostics & Telemedicine
All rights reserved.
This file is licensed under BSD-3-Clause license. See LICENSE file for details.
*/
/*!
\file
\date 4/23/2018 5:46:49 PM
\author kovbas
*/
#include "pre.h"
#include "DisplayTomogram_CTAcquisition.h"
XRAD_BEGIN
enum display_... | 29.084034 | 118 | 0.726091 | n-kulberg |
7629aa911a2a82f7aee1da1daeb7117fa133138d | 5,244 | cpp | C++ | src/classes/controller/controller.cpp | kevinxtung/MICE | 6559c8d242893f0697f64853ab49688198e9692d | [
"MIT"
] | null | null | null | src/classes/controller/controller.cpp | kevinxtung/MICE | 6559c8d242893f0697f64853ab49688198e9692d | [
"MIT"
] | 6 | 2018-05-14T23:38:17.000Z | 2018-05-18T23:38:06.000Z | src/classes/controller/controller.cpp | kevinxtung/MICE | 6559c8d242893f0697f64853ab49688198e9692d | [
"MIT"
] | null | null | null | #include "controller.h"
#include "classes/topping/topping.h"
#include "classes/container/container.h"
#include "classes/scoop/scoop.h"
#include "classes/order/order.h"
#include <string>
#include <iostream>
void Controller::cli() {
int cmd = -1;
while (cmd != 0) {
cmd = m_view.select();
execute(cmd);
}
}
... | 28.972376 | 141 | 0.657132 | kevinxtung |
762b6e6124d6e9d27b6a700ae265856ca5c0b334 | 1,429 | cpp | C++ | src/Modules/Vision/VisionUtils/DrawSSLClient/DrawSSLClientField/DrawSSLClientField.cpp | MatheusPaixaoG/project-unification | efeec63244a370e4408b3e94fbdbff2be082554a | [
"MIT"
] | 2 | 2022-01-02T15:28:08.000Z | 2022-01-05T17:46:15.000Z | src/Modules/Vision/VisionUtils/DrawSSLClient/DrawSSLClientField/DrawSSLClientField.cpp | MatheusPaixaoG/project-unification | efeec63244a370e4408b3e94fbdbff2be082554a | [
"MIT"
] | null | null | null | src/Modules/Vision/VisionUtils/DrawSSLClient/DrawSSLClientField/DrawSSLClientField.cpp | MatheusPaixaoG/project-unification | efeec63244a370e4408b3e94fbdbff2be082554a | [
"MIT"
] | 1 | 2022-01-15T15:28:15.000Z | 2022-01-15T15:28:15.000Z | #include "DrawSSLClientField.h"
#include <protobufs/protobufs.h>
#include "Modules/Vision/VisionUtils/DrawCIninho/DrawCIninho.h"
DrawSSLClientField::DrawSSLClientField(const RoboCupSSL::SSL_GeometryFieldSize& field,
bool drawCIninho,
const ... | 33.232558 | 99 | 0.595521 | MatheusPaixaoG |
762f9f6fb8bd4271525b7bfe604e60ae64c94642 | 7,977 | cpp | C++ | src/infra/Measurement.cpp | cryptobiu/libscapi | 49eee7aee9eb3544a7facb199d0a6e98097b058a | [
"MIT"
] | 160 | 2016-05-11T09:45:56.000Z | 2022-03-06T09:32:19.000Z | src/infra/Measurement.cpp | cryptobiu/libscapi | 49eee7aee9eb3544a7facb199d0a6e98097b058a | [
"MIT"
] | 57 | 2016-12-26T07:02:12.000Z | 2022-03-06T16:34:31.000Z | src/infra/Measurement.cpp | cryptobiu/libscapi | 49eee7aee9eb3544a7facb199d0a6e98097b058a | [
"MIT"
] | 67 | 2016-10-10T17:56:22.000Z | 2022-03-15T22:56:39.000Z | //
// Created by liork on 17/09/17.
//
/**
* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*
* Copyright (c) 2016 LIBSCAPI (http://crypto.biu.ac.il/SCAPI)
* This file is part of the SCAPI project.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Permission is hereby gr... | 34.834061 | 157 | 0.689357 | cryptobiu |
7632d1ab4a4c2eb45bb31e7f52c08e7fdf8ba5ec | 3,226 | hpp | C++ | src/OpenGL/Framebuffer.hpp | Mischa-Alff/world | 93772b438df7477104298cc253737713d510a595 | [
"MIT"
] | null | null | null | src/OpenGL/Framebuffer.hpp | Mischa-Alff/world | 93772b438df7477104298cc253737713d510a595 | [
"MIT"
] | null | null | null | src/OpenGL/Framebuffer.hpp | Mischa-Alff/world | 93772b438df7477104298cc253737713d510a595 | [
"MIT"
] | 3 | 2016-07-10T08:39:10.000Z | 2019-08-28T01:35:06.000Z | #pragma once
#include <vector>
#include <GL/glew.h>
#include <GL/gl.h>
namespace Graphics
{
namespace OpenGL
{
class Texture;
/*! \brief A wrapper around the OpenGL framebuffer API
*/
class Framebuffer
{
private:
/*! \brief The internal OpenGL framebuffer object
*/
GLuint m_framebuffer;
p... | 28.548673 | 77 | 0.656851 | Mischa-Alff |
7633680275b64df4765f0614af5165d18c6bd3a0 | 3,560 | cc | C++ | test/unit/picolibrary/spi/gpio_output_pin_device_selector/main.cc | jaylamb/picolibrary | 528d04fac031c80c64df86574737be3bfca1b867 | [
"Apache-2.0"
] | 3 | 2021-02-12T04:05:42.000Z | 2022-02-15T19:23:52.000Z | test/unit/picolibrary/spi/gpio_output_pin_device_selector/main.cc | jaylamb/picolibrary | 528d04fac031c80c64df86574737be3bfca1b867 | [
"Apache-2.0"
] | 633 | 2019-08-31T20:58:26.000Z | 2022-03-31T22:23:36.000Z | test/unit/picolibrary/spi/gpio_output_pin_device_selector/main.cc | jaylamb/picolibrary | 528d04fac031c80c64df86574737be3bfca1b867 | [
"Apache-2.0"
] | 1 | 2021-02-17T20:40:49.000Z | 2021-02-17T20:40:49.000Z | /**
* picolibrary
*
* Copyright 2020-2021, Andrew Countryman <apcountryman@gmail.com> and the picolibrary
* contributors
*
* 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://... | 28.943089 | 109 | 0.719101 | jaylamb |
763f1e13446725f865d345f189d95cf8f57f10fc | 1,173 | cpp | C++ | libs/library/src/library.cpp | briancairl/snek | ebdd90ba2790bfcbf843c0eb52a13c7f212f8e8f | [
"MIT"
] | null | null | null | libs/library/src/library.cpp | briancairl/snek | ebdd90ba2790bfcbf843c0eb52a13c7f212f8e8f | [
"MIT"
] | null | null | null | libs/library/src/library.cpp | briancairl/snek | ebdd90ba2790bfcbf843c0eb52a13c7f212f8e8f | [
"MIT"
] | null | null | null | /**
* @copyright 2022-present Brian Cairl
*
* @file library.cpp
*/
// LibDL
#include <dlfcn.h>
// Snek
#include <snek/assert.hpp>
#include <snek/library.hpp>
namespace snek
{
Library::Library(Library&& other) : native_handle_{other.native_handle_} { other.native_handle_ = nullptr; }
Library::Library(const char... | 19.881356 | 108 | 0.693947 | briancairl |
7640e1b2223bf4821609e32166d7f02f73080d21 | 9,173 | cc | C++ | arcane/src/arcane/std/ProfPerformanceService.cc | JeromeDuboisPro/framework | d88925495e3787fdaf640c29728dcac385160188 | [
"Apache-2.0"
] | null | null | null | arcane/src/arcane/std/ProfPerformanceService.cc | JeromeDuboisPro/framework | d88925495e3787fdaf640c29728dcac385160188 | [
"Apache-2.0"
] | null | null | null | arcane/src/arcane/std/ProfPerformanceService.cc | JeromeDuboisPro/framework | d88925495e3787fdaf640c29728dcac385160188 | [
"Apache-2.0"
] | null | null | null | // -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
//-----------------------------------------------------------------------------
// Copyright 2000-2021 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: Apache-2... | 30.07541 | 83 | 0.444784 | JeromeDuboisPro |
7645af02312abcebdd8f3c3d3a087226498ed96e | 881 | cpp | C++ | palimdromicGame.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | palimdromicGame.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | palimdromicGame.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | #include <iostream>
#include <map>
#include <iterator>
using namespace std;
int main(){
int t;
scanf("%d",&t);
while(t--)
{
string a,b;
cin>>a;
cin>>b;
map<char,int> a1,b1;
for(int i=0;i<a.length();i++)
{
a1[a[i]]++;
b1[b[i]]++;
}
int flag=0;
for(map<char,int> :: iterator it=a1.begin();it!... | 12.955882 | 64 | 0.475596 | sagar-sam |
76464428f0d4aa053f6d9bf93c3edfec11c33bd2 | 1,916 | cpp | C++ | aws-cpp-sdk-backup/source/model/ListReportJobsRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-backup/source/model/ListReportJobsRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-backup/source/model/ListReportJobsRequest.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/backup/model/ListReportJobsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <uti... | 23.084337 | 69 | 0.679019 | perfectrecall |
76479256096b7fad549a443ecbeb55cfc4550f3d | 6,442 | cpp | C++ | src/Mx3.cpp | infinitelyCannon/Mx3 | 9d2ae82344821c428272511f23a937c9025d92a3 | [
"MIT"
] | null | null | null | src/Mx3.cpp | infinitelyCannon/Mx3 | 9d2ae82344821c428272511f23a937c9025d92a3 | [
"MIT"
] | null | null | null | src/Mx3.cpp | infinitelyCannon/Mx3 | 9d2ae82344821c428272511f23a937c9025d92a3 | [
"MIT"
] | null | null | null | #include "Mx3.hpp"
#include "fmod_errors.h"
#include "Song.hpp"
#include <cstdlib>
#define ERRCHECK(x) ErrorCheck(x, __FILE__, __LINE__)
#define HEAD_CHANNEL "Mx3_Main"
#define SOLO_CHANNEL "Mx3_Solo"
ErrorCallback Mx3::mErrorCallback = nullptr;
/*
* TODO: Find a way to have the library be imported without the user ... | 20.068536 | 102 | 0.681931 | infinitelyCannon |
7648659fe4b6c7405b296766b3515d9de6ba108f | 9,364 | cpp | C++ | src/DaggyCore/tests/local/DaggyCoreLocalTests.cpp | milovidov/dataagregator | 1150f66fc2ef2bbcf62c0174ef147109185cad98 | [
"MIT"
] | 135 | 2019-06-23T20:32:33.000Z | 2022-02-06T15:41:41.000Z | src/DaggyCore/tests/local/DaggyCoreLocalTests.cpp | milovidov/dataagregator | 1150f66fc2ef2bbcf62c0174ef147109185cad98 | [
"MIT"
] | 2 | 2020-10-16T17:31:44.000Z | 2022-01-02T22:02:04.000Z | src/DaggyCore/tests/local/DaggyCoreLocalTests.cpp | milovidov/dataagregator | 1150f66fc2ef2bbcf62c0174ef147109185cad98 | [
"MIT"
] | 11 | 2019-12-26T14:36:44.000Z | 2022-02-23T02:14:41.000Z | /*
MIT License
Copyright (c) 2021 Mikhail Milovidov
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, publi... | 27.063584 | 78 | 0.562046 | milovidov |
7650955f6e972620c93af8e702e9f055198b3623 | 3,619 | hpp | C++ | pythran/pythonic/numpy/reduce.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/numpy/reduce.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/numpy/reduce.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_NUMPY_REDUCE_HPP
#define PYTHONIC_NUMPY_REDUCE_HPP
#include "pythonic/include/numpy/reduce.hpp"
#include "pythonic/types/ndarray.hpp"
#include "pythonic/__builtin__/None.hpp"
#include "pythonic/__builtin__/ValueError.hpp"
#include "pythonic/utils/neutral.hpp"
#ifdef USE_BOOST_SIMD
#include <boost/si... | 30.669492 | 80 | 0.576126 | artas360 |
76685fdee2e27c3f2ca9a7a0f9635d827b1d8348 | 820 | cpp | C++ | src/ui/aim65proxy.cpp | LiamMayfair/EMU65 | 0d9540fd25ed84d501068becc71a11281fd6b01b | [
"MIT"
] | 4 | 2021-01-31T05:23:48.000Z | 2021-11-04T11:35:20.000Z | src/ui/aim65proxy.cpp | LiamMayfair/EMU65 | 0d9540fd25ed84d501068becc71a11281fd6b01b | [
"MIT"
] | null | null | null | src/ui/aim65proxy.cpp | LiamMayfair/EMU65 | 0d9540fd25ed84d501068becc71a11281fd6b01b | [
"MIT"
] | 3 | 2018-10-11T01:15:36.000Z | 2020-12-18T05:36:14.000Z | #include "../../include/ui/aim65proxy.h"
Aim65Proxy::Aim65Proxy(Aim65 *aim65, QObject *parent) : QObject(parent), UiProxy()
{
this->m_aim65 = std::shared_ptr<Aim65>(Aim65::GetInstance());
this->m_aim65->Initialise();
this->RegisterProxy();
}
Aim65Proxy::~Aim65Proxy()
{
}
void Aim65Proxy::RegisterProxy()
... | 18.636364 | 90 | 0.636585 | LiamMayfair |
7668b543d43cc7764dd0490a8f34c67450528365 | 1,728 | cpp | C++ | algospot/amusementpark/main.cpp | seirion/code | 3b8bf79764107255185061cec33decbc2235d03a | [
"Apache-2.0"
] | 13 | 2015-06-07T09:26:26.000Z | 2019-05-01T13:23:38.000Z | algospot/amusementpark/main.cpp | seirion/code | 3b8bf79764107255185061cec33decbc2235d03a | [
"Apache-2.0"
] | null | null | null | algospot/amusementpark/main.cpp | seirion/code | 3b8bf79764107255185061cec33decbc2235d03a | [
"Apache-2.0"
] | 4 | 2016-03-05T06:21:05.000Z | 2017-02-17T15:34:18.000Z | // https://algospot.com/judge/problem/read/AMUSEMENTPARK
#include <iostream>
#include <map>
#include <cmath>
#include <vector>
using namespace std;
int row, col;
int in[22][22] = {0, };
map<int, pair<int, int>> m;
vector<int> out;
bool cc(int r, int b, int d) {
for (int i = b + 1; i < d; i++) {
if (in[r]... | 21.073171 | 56 | 0.426505 | seirion |
766af497af3c56d266e5d66c9ef41de8f7615f7e | 10,973 | hpp | C++ | src/ros2_examples_headers/include/ros2_examples_headers/signal_handler/signal_handler.hpp | IntelligentSystemsLabUTV/ros2_examples | b34d9238d680dd6b06177586f81bfed0bae31eb2 | [
"MIT"
] | null | null | null | src/ros2_examples_headers/include/ros2_examples_headers/signal_handler/signal_handler.hpp | IntelligentSystemsLabUTV/ros2_examples | b34d9238d680dd6b06177586f81bfed0bae31eb2 | [
"MIT"
] | null | null | null | src/ros2_examples_headers/include/ros2_examples_headers/signal_handler/signal_handler.hpp | IntelligentSystemsLabUTV/ros2_examples | b34d9238d680dd6b06177586f81bfed0bae31eb2 | [
"MIT"
] | null | null | null | /**
* ROS 2-compliant signal handler.
*
* Roberto Masocco <robmasocco@gmail.com>
*
* January 17, 2022
*/
#ifndef SIGNAL_HANDLER_HPP
#define SIGNAL_HANDLER_HPP
#include <thread>
#include <mutex>
#include <atomic>
#include <semaphore.h>
#include <stdexcept>
#include <vector>
#include <algorithm>
#include <unistd.... | 25.578089 | 96 | 0.646678 | IntelligentSystemsLabUTV |
7671264799bb22fb7423ad236f3efe3c750e049c | 1,010 | cc | C++ | src/MyPrimaryGeneratorAction.cc | wangshishe/RutherfordScattering | ccc4353501ad7ca4fcc78bf5e4805a358bdaa3ce | [
"MIT"
] | null | null | null | src/MyPrimaryGeneratorAction.cc | wangshishe/RutherfordScattering | ccc4353501ad7ca4fcc78bf5e4805a358bdaa3ce | [
"MIT"
] | null | null | null | src/MyPrimaryGeneratorAction.cc | wangshishe/RutherfordScattering | ccc4353501ad7ca4fcc78bf5e4805a358bdaa3ce | [
"MIT"
] | 1 | 2022-03-15T04:52:09.000Z | 2022-03-15T04:52:09.000Z | #include "MyPrimaryGeneratorAction.hh"
MyPrimaryGeneratorAction::MyPrimaryGeneratorAction()
{
G4int nParticle = 1;
fParticleGun = new G4ParticleGun(nParticle);
auto *particleTable = G4ParticleTable::GetParticleTable();
G4String particleName = "alpha";
G4ParticleDefinition *particle = particleTable... | 31.5625 | 97 | 0.758416 | wangshishe |
7673ca365447584d996d5c88b643c3447a95671f | 2,885 | cpp | C++ | controller/strformats.cpp | bartek56/quetzalcoatl | dc60dbed6e1e9de7b3318d26a6ef65a47a59120c | [
"MIT"
] | 5 | 2015-06-10T07:47:19.000Z | 2021-04-03T21:26:49.000Z | controller/strformats.cpp | bartek56/quetzalcoatl | dc60dbed6e1e9de7b3318d26a6ef65a47a59120c | [
"MIT"
] | 1 | 2020-07-22T13:57:56.000Z | 2020-08-07T00:03:44.000Z | controller/strformats.cpp | duganchen/quetzalcoatl2 | 6e7f1ef8f4b2eaf698cc86f4308039afc8df7b44 | [
"MIT"
] | 1 | 2022-01-11T16:02:41.000Z | 2022-01-11T16:02:41.000Z | #include "strformats.h"
#include <QStringBuilder>
#include <QStringList>
QString timeStr(unsigned duration)
{
// Can't remember where I got this time format from. It might have been Foobar2000.
unsigned seconds = duration % 60;
unsigned minutes = duration % 3600 / 60;
unsigned hours = duration / 3600;... | 24.65812 | 102 | 0.591334 | bartek56 |
767546e1c60ef9bcddd19d949b21fbcab8a6e620 | 920 | cpp | C++ | vnoj/thmst.cpp | tiozo/Training | 02cc8c4fcf68e07c16520fd05fcbfa524c171b6b | [
"MIT"
] | 1 | 2021-08-28T04:16:34.000Z | 2021-08-28T04:16:34.000Z | vnoj/thmst.cpp | tiozo/Training | 02cc8c4fcf68e07c16520fd05fcbfa524c171b6b | [
"MIT"
] | null | null | null | vnoj/thmst.cpp | tiozo/Training | 02cc8c4fcf68e07c16520fd05fcbfa524c171b6b | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
long long giaithua(int n)
{
int giai_thua = 1;
for (int i = 1; i <= n; i++)
giai_thua *= i;
return giai_thua;
}
int main() {
int N;
cin >> N;
long long res = 0,largest = 0;
for (int i=1;i<N;++i) {
long long x,y,z;
cin >> ... | 23.589744 | 56 | 0.444565 | tiozo |
76858b68fc441244110a83d05e89f5ff39d24686 | 3,991 | cpp | C++ | RipleyK.cpp | lsaravia/SpatialAnalysis | 899148a65407dc8807475a923b4a231984441301 | [
"Unlicense",
"MIT"
] | null | null | null | RipleyK.cpp | lsaravia/SpatialAnalysis | 899148a65407dc8807475a923b4a231984441301 | [
"Unlicense",
"MIT"
] | null | null | null | RipleyK.cpp | lsaravia/SpatialAnalysis | 899148a65407dc8807475a923b4a231984441301 | [
"Unlicense",
"MIT"
] | null | null | null | #include "RipleyK.h"
void RipleyK(char * outfile, simplmat <float>& ftr, int numAnn, float widAnn, int treeDensity, int xDist, int yDist )
{
simplmat <float> ripknl(100);
simplmat <float> pairs(100);
simplmat <float> kripley(100);
simplmat <float> lripley(100);
simplmat <float> ce95(100);
simplmat <floa... | 24.94375 | 118 | 0.532448 | lsaravia |
768a3b303b0142b532a7689994c0a4a824c3464c | 3,823 | cpp | C++ | test/Rational/main.cpp | Enseed/GenericMath | d54ae97ddaaeb25842371f16f9889a05dac6754d | [
"Apache-2.0"
] | null | null | null | test/Rational/main.cpp | Enseed/GenericMath | d54ae97ddaaeb25842371f16f9889a05dac6754d | [
"Apache-2.0"
] | null | null | null | test/Rational/main.cpp | Enseed/GenericMath | d54ae97ddaaeb25842371f16f9889a05dac6754d | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
Copyright 2008 Enseed inc.
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 with... | 35.073394 | 80 | 0.542506 | Enseed |
768b1e397ac35290164c077a55ca2a16397fb23a | 4,551 | cpp | C++ | src/hybrid_window.cpp | edublancas/dplyr | 3ace34bf8eaec8295d5a7f09ab19947ced3438cd | [
"MIT"
] | 1 | 2020-10-19T20:04:09.000Z | 2020-10-19T20:04:09.000Z | src/hybrid_window.cpp | edublancas/dplyr | 3ace34bf8eaec8295d5a7f09ab19947ced3438cd | [
"MIT"
] | null | null | null | src/hybrid_window.cpp | edublancas/dplyr | 3ace34bf8eaec8295d5a7f09ab19947ced3438cd | [
"MIT"
] | 1 | 2020-10-20T17:53:42.000Z | 2020-10-20T17:53:42.000Z | #include "pch.h"
#include <dplyr/main.h>
#include <dplyr/HybridHandlerMap.h>
#include <dplyr/Result/ILazySubsets.h>
#include <dplyr/Result/Rank.h>
using namespace Rcpp;
using namespace dplyr;
namespace dplyr {
template <bool ascending>
Result* row_number_asc(const RObject& data) {
switch (TYPEOF(data)) {
case ... | 27.251497 | 104 | 0.69633 | edublancas |
7693859c18fea97bc702f87f58ebc274cff29972 | 10,711 | cpp | C++ | TRAP/src/Graphics/Renderer2D.cpp | GamesTrap/TRAP | 007de9ce70273cb8ae11066cc8488d9db78b1038 | [
"MIT",
"Zlib",
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2018-06-23T18:18:19.000Z | 2019-05-27T21:10:07.000Z | TRAP/src/Graphics/Renderer2D.cpp | GamesTrap/TRAP | 007de9ce70273cb8ae11066cc8488d9db78b1038 | [
"MIT",
"Zlib",
"Apache-2.0",
"BSD-3-Clause"
] | 88 | 2018-08-02T01:08:04.000Z | 2019-07-24T19:13:26.000Z | TRAP/src/Graphics/Renderer2D.cpp | GamesTrap/TRAP | 007de9ce70273cb8ae11066cc8488d9db78b1038 | [
"MIT",
"Zlib",
"Apache-2.0",
"BSD-3-Clause"
] | 2 | 2018-08-02T01:10:40.000Z | 2020-08-14T14:05:58.000Z | #include "TRAPPCH.h"
#include "Renderer2D.h"
#include "Buffers/VertexArray.h"
#include "Shaders/Shader.h"
#include "Buffers/UniformBuffer.h"
#include "RenderCommand.h"
#include "Application.h"
#include "Embed.h"
#include "Cameras/Camera.h"
#include "Textures/TextureManager.h"
namespace TRAP::Graphics
{
struct QuadVe... | 32.359517 | 151 | 0.586033 | GamesTrap |
769386d37046607a690418cdc0e2ccc6e39c0e61 | 737 | cpp | C++ | src/Pandacoin/Address.cpp | justthedoctor/wallet-core | c0d9e9144f89919fcde67c192b8c5e1c2e5e4c6b | [
"MIT"
] | null | null | null | src/Pandacoin/Address.cpp | justthedoctor/wallet-core | c0d9e9144f89919fcde67c192b8c5e1c2e5e4c6b | [
"MIT"
] | null | null | null | src/Pandacoin/Address.cpp | justthedoctor/wallet-core | c0d9e9144f89919fcde67c192b8c5e1c2e5e4c6b | [
"MIT"
] | null | null | null | // Copyright © 2017-2019 Trust.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#pragma once
namespace TW::Pandacoin {
class Address {
/// D... | 29.48 | 77 | 0.717775 | justthedoctor |
7698a3aec2f0962c3babeda904b51bfd9d595a83 | 2,104 | cpp | C++ | laborator-1/l1_252/main.cpp | mcmarius/poo | ba380d170d30feb1cb3d52026bf8761ae0d6324a | [
"Unlicense"
] | 15 | 2020-10-30T21:50:50.000Z | 2022-03-25T14:20:53.000Z | altele/2020-2021/l1_252/main.cpp | Moarcas/poo-1 | bf520c749067a9280cf5e1077e54be9dd3d68dba | [
"Unlicense"
] | null | null | null | altele/2020-2021/l1_252/main.cpp | Moarcas/poo-1 | bf520c749067a9280cf5e1077e54be9dd3d68dba | [
"Unlicense"
] | 4 | 2020-10-31T21:42:44.000Z | 2022-03-25T14:20:44.000Z | #include <iostream>
class trotineta {
std::string culoare;
int nr_roti;
public:
trotineta(const std::string &culoare = "verde", int nrRoti = 2) : culoare(culoare), nr_roti(nrRoti) {
std::cout << "constr trotineta\n";
}
~trotineta() {
std::cout << "destr trotineta\n";
}
};
clas... | 20.038095 | 117 | 0.58365 | mcmarius |
769d00b2042c81e983dc22226c5ef689a92d1809 | 2,432 | hpp | C++ | dep/win/include/boost/histogram/detail/common_type.hpp | Netis/packet-agent | 70da3479051a07e3c235abe7516990f9fd21a18a | [
"BSD-3-Clause"
] | 995 | 2018-06-22T10:39:18.000Z | 2022-03-25T01:22:14.000Z | dep/win/include/boost/histogram/detail/common_type.hpp | Netis/packet-agent | 70da3479051a07e3c235abe7516990f9fd21a18a | [
"BSD-3-Clause"
] | 32 | 2018-06-23T14:19:37.000Z | 2022-03-29T10:20:37.000Z | dep/win/include/boost/histogram/detail/common_type.hpp | Netis/packet-agent | 70da3479051a07e3c235abe7516990f9fd21a18a | [
"BSD-3-Clause"
] | 172 | 2018-06-22T11:12:00.000Z | 2022-03-29T07:44:33.000Z | // Copyright 2015-2018 Hans Dembinski
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_HISTOGRAM_DETAIL_COMMON_TYPE_HPP
#define BOOST_HISTOGRAM_DETAIL_COMMON_TYPE_HPP
#include <boost/hi... | 30.78481 | 89 | 0.686266 | Netis |
37200938914b2178b42413c7dd8b6844e8db3400 | 3,839 | cpp | C++ | src/kdev_discord.cpp | FiniteReality/kdev_discord | 3cac16a7272c5396e20ea16a687266e10db2e16d | [
"MIT"
] | 5 | 2018-05-28T10:30:38.000Z | 2020-08-08T20:14:32.000Z | src/kdev_discord.cpp | FiniteReality/kdev_discord | 3cac16a7272c5396e20ea16a687266e10db2e16d | [
"MIT"
] | 1 | 2020-06-22T16:59:50.000Z | 2021-08-30T19:03:02.000Z | src/kdev_discord.cpp | FiniteReality/kdev_discord | 3cac16a7272c5396e20ea16a687266e10db2e16d | [
"MIT"
] | 1 | 2020-06-17T20:33:41.000Z | 2020-06-17T20:33:41.000Z | #include "kdev_discord.h"
#include <debug.h>
#include <QRegularExpression>
#include <KPluginFactory>
#include <interfaces/icore.h>
#include <interfaces/idocumentcontroller.h>
#include <interfaces/isession.h>
#include <interfaces/iprojectcontroller.h>
#include <interfaces/iproject.h>
#include <KTextEditor/Document>... | 26.659722 | 102 | 0.648085 | FiniteReality |
37238744afa24c58aac13b73c6bb38b498473476 | 105 | hpp | C++ | src/physics/polygon.hpp | astrellon/simple-space | 20e98d4f562a78b1efeaedb0a0012f3c9306ac7e | [
"MIT"
] | 1 | 2020-09-23T11:17:35.000Z | 2020-09-23T11:17:35.000Z | src/physics/polygon.hpp | astrellon/simple-space | 20e98d4f562a78b1efeaedb0a0012f3c9306ac7e | [
"MIT"
] | null | null | null | src/physics/polygon.hpp | astrellon/simple-space | 20e98d4f562a78b1efeaedb0a0012f3c9306ac7e | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <SFML/Graphics.hpp>
using Polygon = std::vector<sf::Vector2f>; | 15 | 42 | 0.72381 | astrellon |
3727fe483c2a80e9e79facc6d87eaed8bfa83eb7 | 665 | cpp | C++ | Dialogs/brightnessdialog.cpp | kalpanki/ocvGUI | 9fc1f2278b414c316f091e1de5a4b1c4e3695ee9 | [
"BSD-2-Clause"
] | 2 | 2019-08-21T13:37:51.000Z | 2019-10-18T01:39:53.000Z | Dialogs/brightnessdialog.cpp | kalpanki/ocvGUI | 9fc1f2278b414c316f091e1de5a4b1c4e3695ee9 | [
"BSD-2-Clause"
] | null | null | null | Dialogs/brightnessdialog.cpp | kalpanki/ocvGUI | 9fc1f2278b414c316f091e1de5a4b1c4e3695ee9 | [
"BSD-2-Clause"
] | null | null | null | #include "brightnessdialog.h"
#include "ui_brightnessdialog.h"
BrightnessDialog::BrightnessDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::BrightnessDialog)
{
ui->setupUi(this);
}
BrightnessDialog::~BrightnessDialog()
{
delete ui;
}
void BrightnessDialog::on_alphaDoubleSpinBox_valueChanged(doub... | 21.451613 | 70 | 0.726316 | kalpanki |
3730a40a6b71018014acf7061f965369160c608d | 709 | hpp | C++ | tests/test_spin_lock.hpp | djmott/xtl | cadb963a3d1ad292033f08f4754c545066be75f7 | [
"BSL-1.0"
] | 6 | 2016-06-30T11:23:33.000Z | 2019-10-22T13:09:49.000Z | tests/test_spin_lock.hpp | djmott/xtl | cadb963a3d1ad292033f08f4754c545066be75f7 | [
"BSL-1.0"
] | null | null | null | tests/test_spin_lock.hpp | djmott/xtl | cadb963a3d1ad292033f08f4754c545066be75f7 | [
"BSL-1.0"
] | 4 | 2016-07-24T10:38:43.000Z | 2021-04-02T11:18:09.000Z | /** @file
xtd::concurrent::spin_lock system and unit tests
@copyright David Mott (c) 2016. Distributed under the Boost Software License Version 1.0. See LICENSE.md or http://boost.org/LICENSE_1_0.txt for details.
*/
#include <xtd/concurrent/spin_lock.hpp>
TEST(test_spin_lock, initialization){
xtd::concurrent::spin_... | 23.633333 | 153 | 0.736248 | djmott |
3739a84e1f47b2c087950d0297aabe106eec4f17 | 114 | hpp | C++ | include/memory/hadesmem/detail/warning_disable_suffix.hpp | phlip9/hadesmem | 59e13a92c05918b8c842141fd5cac1ed390cd79e | [
"MIT"
] | 19 | 2017-10-19T23:13:11.000Z | 2022-03-29T11:37:26.000Z | include/memory/hadesmem/detail/warning_disable_suffix.hpp | Bia10/hadesmem | b91bce37611d0e939a55d9490c49780f9f0f3bff | [
"MIT"
] | null | null | null | include/memory/hadesmem/detail/warning_disable_suffix.hpp | Bia10/hadesmem | b91bce37611d0e939a55d9490c49780f9f0f3bff | [
"MIT"
] | 10 | 2018-04-04T07:55:16.000Z | 2021-11-23T20:22:43.000Z | // Copyright (C) 2010-2015 Joshua Boyce
// See the file COPYING for copying permission.
#pragma warning(pop)
| 22.8 | 48 | 0.719298 | phlip9 |
373e8cc2d89af8d558b30c174ea3962fc1265ab2 | 2,135 | cpp | C++ | core/src/GLFWInput.cpp | matthew-oconnell/glitter | d9eb6cea96063f080121e9c6e59098e2d690c427 | [
"Apache-2.0"
] | null | null | null | core/src/GLFWInput.cpp | matthew-oconnell/glitter | d9eb6cea96063f080121e9c6e59098e2d690c427 | [
"Apache-2.0"
] | null | null | null | core/src/GLFWInput.cpp | matthew-oconnell/glitter | d9eb6cea96063f080121e9c6e59098e2d690c427 | [
"Apache-2.0"
] | null | null | null | #include "GLFWInput.h"
#include "Game.h"
using namespace Glitter;
GLFWInput::GLFWInput(GLFWwindow *window)
: window(window){
glfwSetKeyCallback(window, key_callback);
glfwSetMouseButtonCallback(window, mouse_button_callback);
glfwSetCursorPosCallback(window, cursor_position_callback);
for (bool &keyboard_key :... | 34.435484 | 95 | 0.733958 | matthew-oconnell |
3743275a0c913f6817ce8effacc9cd07d6bbb7a6 | 251 | hpp | C++ | parser/nodes/stmt.hpp | cursorweb/Asula-Lang | 173a814f92b977064a889febc69798a93c906ebe | [
"MIT"
] | 2 | 2022-03-09T20:13:26.000Z | 2022-03-10T14:18:19.000Z | parser/nodes/stmt.hpp | cursorweb/Asula-Lang | 173a814f92b977064a889febc69798a93c906ebe | [
"MIT"
] | null | null | null | parser/nodes/stmt.hpp | cursorweb/Asula-Lang | 173a814f92b977064a889febc69798a93c906ebe | [
"MIT"
] | null | null | null | #ifndef STMT_HPP
#define STMT_HPP
// visitor list
class StmtVisitor;
// stmt list
class Stmt {
public:
virtual void accept(StmtVisitor visitor);
};
// nodes
// visitor list
class StmtVisitor {
public:
// virtual C visit();
};
#endif | 9.296296 | 45 | 0.673307 | cursorweb |
3746811b08e49103a4b553bc31698e84a064bff1 | 183 | cpp | C++ | applications/builder/source/builder_modes.cpp | skarab/coffee-master | 6c3ff71b7f15735e41c9859b6db981b94414c783 | [
"MIT"
] | null | null | null | applications/builder/source/builder_modes.cpp | skarab/coffee-master | 6c3ff71b7f15735e41c9859b6db981b94414c783 | [
"MIT"
] | null | null | null | applications/builder/source/builder_modes.cpp | skarab/coffee-master | 6c3ff71b7f15735e41c9859b6db981b94414c783 | [
"MIT"
] | null | null | null | #include "builder_modes.h"
#undef _BUILDER_MODES_H_
#include "kernel/meta/macros/meta_macros_enum_cpp.h"
#include "builder_modes.h"
#include "kernel/meta/macros/meta_macros_enum_h.h"
| 30.5 | 52 | 0.819672 | skarab |
37475954f61c70fbc81285c66c8f93fdc0de4f55 | 1,261 | cpp | C++ | src/Panel2D.cpp | cfrpg/SourcePanelMethod | 0d16482b345c0457e48935a53a06c63a9205bd22 | [
"MIT"
] | null | null | null | src/Panel2D.cpp | cfrpg/SourcePanelMethod | 0d16482b345c0457e48935a53a06c63a9205bd22 | [
"MIT"
] | null | null | null | src/Panel2D.cpp | cfrpg/SourcePanelMethod | 0d16482b345c0457e48935a53a06c63a9205bd22 | [
"MIT"
] | null | null | null | #include "Panel2D.h"
#include "MathHelper.h"
#include <cmath>
#include <cstdio>
Panel2D::Panel2D(void)
{
}
Panel2D::Panel2D(Vector2 _v1,Vector2 _v2)
{
v1=_v1;
v2=_v2;
midpoint=v1+v2;
midpoint/=2;
normal=-Vector2((v2-v1).y,-(v2-v1).x);
angle=atan2(v2.y-v1.y,v2.x-v1.x);
if(angle<0)
angle+=2*PI;
direction=(v2-v... | 12.485149 | 44 | 0.666931 | cfrpg |
37489c6dca94e1c7cd65ebf002e34f3feb15663f | 1,365 | cpp | C++ | src/ScreenshotView.cpp | humdingerb/HaikuThemeManager | b38a77fc147cf4a8dc083b52ce4941b0a44cf160 | [
"MIT"
] | 4 | 2016-02-26T08:13:04.000Z | 2019-11-17T22:15:04.000Z | src/ScreenshotView.cpp | humdingerb/HaikuThemeManager | b38a77fc147cf4a8dc083b52ce4941b0a44cf160 | [
"MIT"
] | 26 | 2017-01-05T04:18:51.000Z | 2021-10-08T04:22:14.000Z | src/ScreenshotView.cpp | humdingerb/HaikuThemeManager | b38a77fc147cf4a8dc083b52ce4941b0a44cf160 | [
"MIT"
] | 4 | 2017-12-06T19:29:54.000Z | 2020-10-26T07:27:34.000Z | /*
* Copyright 2000-2008, François Revol, <revol@free.fr>. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include "ScreenshotView.h"
#include <View.h>
#include <Bitmap.h>
#include <stdio.h>
#include <Debug.h>
// PRIVATE: in libzeta for now.
extern status_t ScaleBitmap(const BBitmap& in... | 16.058824 | 77 | 0.698168 | humdingerb |
37498a6e0c3032f7f83715fff555ff0f0d506299 | 3,763 | hpp | C++ | include/rectojump/global/config_settings.hpp | Malekblubb/rectojump | 66c04e9a081bd1b830205bb0c515a42eeb4befb6 | [
"MIT"
] | null | null | null | include/rectojump/global/config_settings.hpp | Malekblubb/rectojump | 66c04e9a081bd1b830205bb0c515a42eeb4befb6 | [
"MIT"
] | null | null | null | include/rectojump/global/config_settings.hpp | Malekblubb/rectojump | 66c04e9a081bd1b830205bb0c515a42eeb4befb6 | [
"MIT"
] | null | null | null | //
// Copyright (c) 2013-2021 Christoph Malek
// See LICENSE for more information.
//
#ifndef RJ_GLOBAL_CONFIG_SETTINGS_HPP
#define RJ_GLOBAL_CONFIG_SETTINGS_HPP
#include "config.hpp"
#include <rectojump/shared/utils.hpp>
#include <mlk/signals_slots/slot.h>
#include <mlk/tools/utils.h>
namespace rj
{
namespace set... | 24.594771 | 70 | 0.689078 | Malekblubb |
375874543e19c087fa3046111ddf0f636b1debad | 322 | cpp | C++ | 05. Matrix/02 Sum/ColWiseSum.cpp | samdev-py/100DaysOfCode | b0d96e42aeb657902153434c6a7ec8aec265f461 | [
"MIT"
] | 6 | 2021-10-30T10:18:11.000Z | 2021-12-27T17:25:30.000Z | 05. Matrix/02 Sum/ColWiseSum.cpp | samdev-py/Data-Structures-and-algorithms | b0d96e42aeb657902153434c6a7ec8aec265f461 | [
"MIT"
] | null | null | null | 05. Matrix/02 Sum/ColWiseSum.cpp | samdev-py/Data-Structures-and-algorithms | b0d96e42aeb657902153434c6a7ec8aec265f461 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
void printColSum(int arr[][3], int row, int col)
{
cout << "The Column Sum: " << endl;
for (col = 0; col < 3; col++)
{
int sum = 0;
for (row = 0; row < 3; row++)
{
sum += arr[row][col];
}
cout << sum << endl;
}... | 20.125 | 48 | 0.447205 | samdev-py |
375bc1d302d0377dc2250e4b16d042c88e17ee26 | 1,991 | cpp | C++ | viandanti/src/ofApp.cpp | npisanti/np-sketches | 256203d73c8bedecc106157841e048731a7ab50a | [
"MIT"
] | 1 | 2019-05-08T17:01:46.000Z | 2019-05-08T17:01:46.000Z | viandanti/src/ofApp.cpp | npisanti/np-sketches | 256203d73c8bedecc106157841e048731a7ab50a | [
"MIT"
] | null | null | null | viandanti/src/ofApp.cpp | npisanti/np-sketches | 256203d73c8bedecc106157841e048731a7ab50a | [
"MIT"
] | null | null | null | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
gui.setup("panel", "settings.xml", ofGetWidth()-220, 20 );
gui.add( travelers.parameters );
gui.add( color.set("color", ofColor(255, 80, 80), ofColor(0), ofColor(255)) );
ofBackground(0);
... | 24.280488 | 82 | 0.347062 | npisanti |
376581b25525deacf94b5e57d952d4caff20b7ae | 486 | cpp | C++ | ackermann_ekf/src/ackermann_ekf_node.cpp | OssianEriksson/autonomous-twizy | d78e352c37dd4b2dcdd588b89e2bedb665e7175e | [
"Apache-2.0"
] | 8 | 2021-03-18T21:49:43.000Z | 2022-03-14T20:23:16.000Z | ackermann_ekf/src/ackermann_ekf_node.cpp | OssianEriksson/autonomous-twizy | d78e352c37dd4b2dcdd588b89e2bedb665e7175e | [
"Apache-2.0"
] | 1 | 2021-04-04T20:25:34.000Z | 2021-04-04T20:31:07.000Z | ackermann_ekf/src/ackermann_ekf_node.cpp | OssianEriksson/autonomous-twizy | d78e352c37dd4b2dcdd588b89e2bedb665e7175e | [
"Apache-2.0"
] | null | null | null | /**
* @file ackermann_ekf_node.cpp
*
* @brief ROS node for sensor fusion using EKF based on Ackermann steering model
*
* @author Ossian Eriksson \<ossiane@student.chalmers.se\>
*/
#include "ackermann_ekf/sensor_array.h"
#include <ros/ros.h>
int main(int argc, char **argv) {
ros::init(argc, argv, "ackermann... | 20.25 | 80 | 0.679012 | OssianEriksson |
3766f65844cad48fcc4334bef5b61517063f7886 | 78 | cpp | C++ | test_package/example.cpp | sintef-ocean/conan-netcdf-c | 7807ca2b743cfcd2b087bc9da950b05cf35ee5a3 | [
"MIT"
] | null | null | null | test_package/example.cpp | sintef-ocean/conan-netcdf-c | 7807ca2b743cfcd2b087bc9da950b05cf35ee5a3 | [
"MIT"
] | 1 | 2020-06-24T15:02:32.000Z | 2020-06-24T15:02:32.000Z | test_package/example.cpp | sintef-ocean/conan-netcdf-c | 7807ca2b743cfcd2b087bc9da950b05cf35ee5a3 | [
"MIT"
] | null | null | null | #include <iostream>
#include "netcdf.h"
int main() {
nc_inq_libvers();
}
| 11.142857 | 21 | 0.641026 | sintef-ocean |
376708cc4f0b1b35f45dc74e960d152b5223a1b6 | 854 | cpp | C++ | 10703.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | 10703.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | 10703.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
int total,bawah,samping,n,x,y,z,kasus;
int x1,x2,y1,y2;
int peta[550][550];
int main()
{
kasus=0;
do
{
scanf("%d %d %d",&samping,&bawah,&n);
if(samping == 0) break;
scanf("\n");
kasus++;
... | 17.791667 | 64 | 0.522248 | felikjunvianto |
3767e93c4b093e02df6d37a0caebb926404eb729 | 681 | cpp | C++ | solutions-PAT/A1005.cpp | Ki-Seki/solutions | e4329712d664180d850e0a48d7d0f637215f13d0 | [
"MIT"
] | 1 | 2022-02-26T10:33:24.000Z | 2022-02-26T10:33:24.000Z | solutions-PAT/A1005.cpp | Ki-Seki/solutions | e4329712d664180d850e0a48d7d0f637215f13d0 | [
"MIT"
] | null | null | null | solutions-PAT/A1005.cpp | Ki-Seki/solutions | e4329712d664180d850e0a48d7d0f637215f13d0 | [
"MIT"
] | 1 | 2021-12-01T14:54:33.000Z | 2021-12-01T14:54:33.000Z | #include <iostream>
#include <cstring>
#define MAXN 105
using namespace std;
int main()
{
char number[MAXN], trans[10][7] = {"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"};
scanf("%s", number);
int len = strlen(number), sum = 0;
for (int i = 0; i < len; i++)
sum... | 35.842105 | 119 | 0.54185 | Ki-Seki |
3769ec2ab96b5d2e4a3719d381e405a675d07bc5 | 1,313 | hpp | C++ | boost/network/protocol/http/message/header/value.hpp | antoinelefloch/cpp-netlib | 5eb9b5550a10d06f064ee9883c7d942d3426f31b | [
"BSL-1.0"
] | 3 | 2015-02-10T22:08:08.000Z | 2021-11-13T20:59:25.000Z | include/boost/network/protocol/http/message/header/value.hpp | waTeim/boost | eb3850fae8c037d632244cf15cf6905197d64d39 | [
"BSL-1.0"
] | 1 | 2018-08-10T04:47:12.000Z | 2018-08-10T13:54:57.000Z | include/boost/network/protocol/http/message/header/value.hpp | waTeim/boost | eb3850fae8c037d632244cf15cf6905197d64d39 | [
"BSL-1.0"
] | 5 | 2017-12-28T12:42:25.000Z | 2021-07-01T07:41:53.000Z | #ifndef BOOST_NETWORK_PROTOCOL_HTTP_MESSAGE_HEADER_VALUE_HPP_20101028
#define BOOST_NETWORK_PROTOCOL_HTTP_MESSAGE_HEADER_VALUE_HPP_20101028
// Copyright 2010 Dean Michael Berris.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/L... | 25.745098 | 74 | 0.708302 | antoinelefloch |
376a6dad0a17b41abfe64db72cd74e5167b63e16 | 11,676 | cc | C++ | src/pong.cc | tomredant/winpong | f5ef70852be4e1161dc5e8eeb8bc309571c20763 | [
"MIT",
"Unlicense"
] | null | null | null | src/pong.cc | tomredant/winpong | f5ef70852be4e1161dc5e8eeb8bc309571c20763 | [
"MIT",
"Unlicense"
] | null | null | null | src/pong.cc | tomredant/winpong | f5ef70852be4e1161dc5e8eeb8bc309571c20763 | [
"MIT",
"Unlicense"
] | null | null | null | // Copyright [2015] <Chafic Najjar>
#include "src/pong.h"
#include <iostream>
#include "src/ball.h"
#include "src/paddle.h"
#include "src/utilities.h"
#include <QFile>
#include <QDir>
// Screen resolution.
const int Pong::SCREEN_WIDTH = 640;
const int Pong::SCREEN_HEIGHT = 480;
Pong::Pong(int argc, char *argv[]) {
... | 30.970822 | 115 | 0.583248 | tomredant |
376e05ab6f756be8b5f358b871a73f9280c63f69 | 241 | cpp | C++ | Game/Client/WXClient/Network/PacketHandler/CGBankAcquireListHandler.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/Client/WXClient/Network/PacketHandler/CGBankAcquireListHandler.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/Client/WXClient/Network/PacketHandler/CGBankAcquireListHandler.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | #include"stdafx.h"
#include "CGBankAcquireList.h"
uint CGBankAcquireListHandler::Execute( CGBankAcquireList* pPacket, Player* pPlayer )
{
__ENTER_FUNCTION
return PACKET_EXE_CONTINUE ;
__LEAVE_FUNCTION
return PACKET_EXE_ERROR ;
}
| 15.0625 | 85 | 0.788382 | hackerlank |
3778022c92ed20985cce66298dbb5d285c8c6842 | 19,247 | cc | C++ | tests/neuron_support_code_threshold/neuron_support_code_threshold_CODE/synapseUpdate.cc | 9inpachi/genn-opencl | 33231225a72611c7b629ef1d13f325f35d4ae2f7 | [
"MIT"
] | 1 | 2020-06-28T19:48:48.000Z | 2020-06-28T19:48:48.000Z | tests/neuron_support_code_threshold/neuron_support_code_threshold_CODE/synapseUpdate.cc | 9inpachi/genn-opencl | 33231225a72611c7b629ef1d13f325f35d4ae2f7 | [
"MIT"
] | 1 | 2020-02-10T15:26:29.000Z | 2020-02-10T15:26:29.000Z | tests/neuron_support_code_threshold/neuron_support_code_threshold_CODE/synapseUpdate.cc | 9inpachi/genn-opencl | 33231225a72611c7b629ef1d13f325f35d4ae2f7 | [
"MIT"
] | 1 | 2020-02-10T10:47:12.000Z | 2020-02-10T10:47:12.000Z | #include "definitionsInternal.h"
#include "supportCode.h"
extern "C" const char* updateSynapsesProgramSrc = R"(typedef float scalar;
void atomic_add_f_global(volatile __global float *source, const float operand) {
union { unsigned int intVal; float floatVal; } newVal;
union { unsigned int intVal; float floatV... | 46.602906 | 734 | 0.561802 | 9inpachi |
3786b8f456e1b5fc95c201b9653f7ca95bb3105b | 153 | cpp | C++ | src/ble/blPermission.cpp | fidoriel/track38 | d3773a7ae704e460da25c5ec68e444dab82bfdc1 | [
"MIT"
] | null | null | null | src/ble/blPermission.cpp | fidoriel/track38 | d3773a7ae704e460da25c5ec68e444dab82bfdc1 | [
"MIT"
] | null | null | null | src/ble/blPermission.cpp | fidoriel/track38 | d3773a7ae704e460da25c5ec68e444dab82bfdc1 | [
"MIT"
] | null | null | null | #if defined( WIN32 ) || defined( __linux__ )
#include "blPermission.h"
bool bleIsAutorized()
{
return true;
}
void askForPermission()
{
}
#endif | 10.2 | 44 | 0.673203 | fidoriel |
3787f23976b04e86007092b401d60d613db9ba2f | 641 | cc | C++ | controllers/download_route.cc | Rynnya/hanaru | 2bfa40d9040b9b4e3b952099886dc293921a5a25 | [
"MIT"
] | 1 | 2021-12-13T10:37:30.000Z | 2021-12-13T10:37:30.000Z | controllers/download_route.cc | Rynnya/hanaru | 2bfa40d9040b9b4e3b952099886dc293921a5a25 | [
"MIT"
] | null | null | null | controllers/download_route.cc | Rynnya/hanaru | 2bfa40d9040b9b4e3b952099886dc293921a5a25 | [
"MIT"
] | null | null | null | #include "download_route.hh"
#include "../impl/downloader.hh"
#include "../impl/utils.hh"
Task<HttpResponsePtr> download_route::get(HttpRequestPtr req, int64_t id) {
const auto [code, filename, content] = co_await hanaru::downloader::get().download_map(id);
if (code != k200OK) {
SEND_ERROR(code, cont... | 26.708333 | 104 | 0.691108 | Rynnya |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.