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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b54dd92db8987afcec218d39984890a19014970e | 3,085 | cpp | C++ | source/QtGui/QCompleterSlots.cpp | kenny1818/qt4xhb | f62f40d8b17acb93761014317b52da9f919707d0 | [
"MIT"
] | 1 | 2021-03-07T10:44:03.000Z | 2021-03-07T10:44:03.000Z | source/QtGui/QCompleterSlots.cpp | kenny1818/qt4xhb | f62f40d8b17acb93761014317b52da9f919707d0 | [
"MIT"
] | null | null | null | source/QtGui/QCompleterSlots.cpp | kenny1818/qt4xhb | f62f40d8b17acb93761014317b52da9f919707d0 | [
"MIT"
] | 2 | 2020-07-19T03:28:08.000Z | 2021-03-05T18:07:20.000Z | /*
Qt4xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 4
Copyright (C) 2021 Marcos Antonio Gambeta <marcosgambeta AT outlook DOT com>
*/
/*
DO NOT EDIT THIS FILE - the content was created using a source code generator
*/
#include "QCompleterSlots.h"
QCompleterSlots::QCompleterSlo... | 26.367521 | 94 | 0.656402 | kenny1818 |
b5519edfc70ce85094dd4edd2d7e878df8063301 | 7,022 | cpp | C++ | nodes/ipt/gateway/src/tasks/push_ops.cpp | solosTec/node | e35e127867a4f66129477b780cbd09c5231fc7da | [
"MIT"
] | 2 | 2020-03-03T12:40:29.000Z | 2021-05-06T06:20:19.000Z | nodes/ipt/gateway/src/tasks/push_ops.cpp | solosTec/node | e35e127867a4f66129477b780cbd09c5231fc7da | [
"MIT"
] | 7 | 2020-01-14T20:38:04.000Z | 2021-05-17T09:52:07.000Z | nodes/ipt/gateway/src/tasks/push_ops.cpp | solosTec/node | e35e127867a4f66129477b780cbd09c5231fc7da | [
"MIT"
] | 2 | 2019-11-09T09:14:48.000Z | 2020-03-03T12:40:30.000Z | /*
* The MIT License (MIT)
*
* Copyright (c) 2018 Sylko Olzscher
*
*/
#include "push_ops.h"
#include <smf/sml/event.h>
#include <cyng/async/task/base_task.h>
#include <cyng/chrono.h>
#include <cyng/io/io_chrono.hpp>
#include <cyng/vm/generator.h>
#include <boost/filesystem.hpp>
#include <boost/range/iterator_r... | 24.725352 | 135 | 0.583452 | solosTec |
b55546e0dfb8273c117ae6fdcb21f01ecb74cb44 | 1,459 | cpp | C++ | 1304B.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | 1304B.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | 1304B.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cmath>
#include <iostream>
#include <string>
#include <cstring>
#include <algorithm>
#include <vector>
#include <utility>
#include <stack>
#include <queue>
#include <map>
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define pi 2*acos(0.0)
#define eps 1e-9
#de... | 19.716216 | 74 | 0.609321 | felikjunvianto |
b5555b1cc09052dff2537c6c5a6fae32cabdb828 | 269 | cpp | C++ | Cplusplus/week_four/extra/DailyTask_Mechanic/main.cpp | nexusstar/SoftUni | b97bdb08a227fd335df5b7869940c14717f760f2 | [
"MIT"
] | 1 | 2016-12-20T19:53:03.000Z | 2016-12-20T19:53:03.000Z | Cplusplus/week_four/extra/DailyTask_Mechanic/main.cpp | nexusstar/SoftUni | b97bdb08a227fd335df5b7869940c14717f760f2 | [
"MIT"
] | null | null | null | Cplusplus/week_four/extra/DailyTask_Mechanic/main.cpp | nexusstar/SoftUni | b97bdb08a227fd335df5b7869940c14717f760f2 | [
"MIT"
] | null | null | null | #include <iostream>
#include "man.h"
#include "mechanic.h"
int main()
{
Car ford = Car(1000);
Mechanic fordGuro;
Man goshoForda;
std::cout << fordGuro.carRepairPrice(ford) << std::endl;
fordGuro.repairCar(ford);
goshoForda.crashCar(ford);
return 0;
}
| 15.823529 | 58 | 0.67658 | nexusstar |
b55e7ffdaf3fd0787733bf3960e77b7f7e6f763a | 277 | hpp | C++ | src/blackhole/detail/traits/attributes/pack/keyword.hpp | bioothod/blackhole | 2bd242e6027f20019e60b600f50a9e25127db640 | [
"MIT"
] | 1 | 2015-01-12T05:23:28.000Z | 2015-01-12T05:23:28.000Z | src/blackhole/detail/traits/attributes/pack/keyword.hpp | tomzhang/blackhole | 4f9b7dec11b9a617b51f188bb792a1514b0bb763 | [
"MIT"
] | null | null | null | src/blackhole/detail/traits/attributes/pack/keyword.hpp | tomzhang/blackhole | 4f9b7dec11b9a617b51f188bb792a1514b0bb763 | [
"MIT"
] | null | null | null | #pragma once
#include "blackhole/attribute.hpp"
#include "blackhole/detail/traits/same.hpp"
namespace blackhole {
namespace aux {
template<class... Args>
struct is_keyword_pack : public are_same<attribute::pair_t, Args...> {};
} // namespace aux
} // namespace blackhole
| 17.3125 | 72 | 0.736462 | bioothod |
b5615bd1297a09de1e543b7de5bc79217e1e61ca | 3,294 | cpp | C++ | RenderCore/Assets/AssetUtils.cpp | djewsbury/XLE | 7806e4b5c9de5631c94c2020f6adcd4bd8e3d91e | [
"MIT"
] | 3 | 2015-12-04T09:16:53.000Z | 2021-05-28T23:22:49.000Z | RenderCore/Assets/AssetUtils.cpp | djewsbury/XLE | 7806e4b5c9de5631c94c2020f6adcd4bd8e3d91e | [
"MIT"
] | null | null | null | RenderCore/Assets/AssetUtils.cpp | djewsbury/XLE | 7806e4b5c9de5631c94c2020f6adcd4bd8e3d91e | [
"MIT"
] | 2 | 2015-03-03T05:32:39.000Z | 2015-12-04T09:16:54.000Z | // Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#include "AssetUtils.h"
#include "ModelScaffoldInternal.h"
#include "../Types.h"
#include "../Format.h"
#include "../StateDesc.h"
namespace RenderCore { namespace Assets
{
st... | 35.804348 | 125 | 0.710383 | djewsbury |
b561bb8184e273e58c65defc683fe7aeb52056f4 | 358 | cpp | C++ | Solutions/Project Euler #001: Multiples of 3 and 5.cpp | KronoFaze/hackerrank-project-euler-submissions | 988af9487846deaefc1ad056ec68d4016ecd4754 | [
"MIT"
] | null | null | null | Solutions/Project Euler #001: Multiples of 3 and 5.cpp | KronoFaze/hackerrank-project-euler-submissions | 988af9487846deaefc1ad056ec68d4016ecd4754 | [
"MIT"
] | null | null | null | Solutions/Project Euler #001: Multiples of 3 and 5.cpp | KronoFaze/hackerrank-project-euler-submissions | 988af9487846deaefc1ad056ec68d4016ecd4754 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
long long calc(int n, int m) {
n = (n - 1) / m;
return (1LL * m * n * (n + 1)) / 2;
}
int main(void) {
int t;
scanf("%d", &t);
while(t--) {
int n;
scanf("%d", &n);
long long ans = calc(n, 3) + calc(n, 5) - calc(n, 15);
... | 18.842105 | 63 | 0.427374 | KronoFaze |
b564d3407907a6c339c461923ab347b2ce2f5a9f | 2,338 | cc | C++ | Sources/Scene/SceneObjectList.cc | twistedflick/Yuka | c1601a7314ccbdb1de2f4b7c69f4e2eb3f749b35 | [
"Apache-2.0"
] | null | null | null | Sources/Scene/SceneObjectList.cc | twistedflick/Yuka | c1601a7314ccbdb1de2f4b7c69f4e2eb3f749b35 | [
"Apache-2.0"
] | null | null | null | Sources/Scene/SceneObjectList.cc | twistedflick/Yuka | c1601a7314ccbdb1de2f4b7c69f4e2eb3f749b35 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2018 Mo McRoberts.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 15.181818 | 77 | 0.605646 | twistedflick |
b56778cb86c74d4c29625c7f25b7cf46e4fda0ba | 9,917 | hpp | C++ | common/iica_io.hpp | alexwang815/RL78 | d1b402d842f4fa7a36a655db9b680a98fe8c4965 | [
"BSD-3-Clause"
] | 23 | 2016-09-12T05:43:27.000Z | 2022-03-16T03:41:23.000Z | common/iica_io.hpp | alexwang815/RL78 | d1b402d842f4fa7a36a655db9b680a98fe8c4965 | [
"BSD-3-Clause"
] | 2 | 2021-11-26T22:21:06.000Z | 2021-11-28T01:27:29.000Z | common/iica_io.hpp | alexwang815/RL78 | d1b402d842f4fa7a36a655db9b680a98fe8c4965 | [
"BSD-3-Clause"
] | 8 | 2016-09-12T05:43:48.000Z | 2022-02-25T14:51:15.000Z | #pragma once
//=====================================================================//
/*! @file
@brief RL78/ (G13/L1C) グループ IICA 制御 @n
※マスター動作のみ実装 @n
※割り込みに対応していない、ポーリングのみ動作可能
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2016, 2017 Kunihito Hiramatsu @n
Released under the MIT licen... | 23.896386 | 95 | 0.447817 | alexwang815 |
b568304f3b216cace8b6ee4133f136082aeef78f | 1,738 | cpp | C++ | src/Utils/AudioAsset.cpp | Harsh14901/COP290-Pacman | e9f821f0351a0ead5ed89becab81a3c8c0a7c18e | [
"BSD-3-Clause"
] | null | null | null | src/Utils/AudioAsset.cpp | Harsh14901/COP290-Pacman | e9f821f0351a0ead5ed89becab81a3c8c0a7c18e | [
"BSD-3-Clause"
] | null | null | null | src/Utils/AudioAsset.cpp | Harsh14901/COP290-Pacman | e9f821f0351a0ead5ed89becab81a3c8c0a7c18e | [
"BSD-3-Clause"
] | null | null | null | #include "Utils/AudioAsset.hpp"
AudioAsset::AudioAsset() {}
AudioAsset::AudioAsset(string sound, bool isMusic) : AudioAsset() {
init(sound, isMusic);
}
void AudioAsset::init(string sound, bool isMusic) {
sound_name = sound;
is_music = isMusic;
if (is_music) {
cout << "Is it music " << endl;
music = M... | 24.138889 | 76 | 0.602992 | Harsh14901 |
b56b090e0d3f5f7b2664b1b0fe5a857cedc08561 | 2,568 | cpp | C++ | pixie/Sound/SoundPlayer.cpp | martonantoni/pixie | ab750d25d12f8420e68e1cb393a75b1f0a0c1056 | [
"MIT"
] | null | null | null | pixie/Sound/SoundPlayer.cpp | martonantoni/pixie | ab750d25d12f8420e68e1cb393a75b1f0a0c1056 | [
"MIT"
] | null | null | null | pixie/Sound/SoundPlayer.cpp | martonantoni/pixie | ab750d25d12f8420e68e1cb393a75b1f0a0c1056 | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "RiffFile.hpp"
cSoundPlayer theSoundPlayer;
void cSoundPlayer::Initialize()
{
mEffectDestroyerThread = theThreadServer->GetThread("effect_destroyer"s);
mListeningIDs.emplace_back(mEffectDestroyerThread->AddEventHandler(
[this]()
{
{
c... | 28.533333 | 150 | 0.659657 | martonantoni |
b56b0ac175fabc6a41e8cca02231d9e82c9bb1e8 | 1,822 | cpp | C++ | cpp/socket/socket.cpp | ounana/hoke | 9337d6a98192f681efd6113e4c951cb8ecae59af | [
"Apache-2.0"
] | null | null | null | cpp/socket/socket.cpp | ounana/hoke | 9337d6a98192f681efd6113e4c951cb8ecae59af | [
"Apache-2.0"
] | null | null | null | cpp/socket/socket.cpp | ounana/hoke | 9337d6a98192f681efd6113e4c951cb8ecae59af | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <iostream>
#include <cstring>
#include <fstream>
#include <winsock2.h>
#pragma comment(lib, "ws2_32.lib")
using namespace std;
SOCKET m_Client;
void SendFile();
int main(int argc, char *argv[])
{
//初始化WSA
WORD sockVersion = MAKEWORD(2, 2);
WSADATA wsaData;
if (WSAStartup(sockVer... | 19.178947 | 67 | 0.627333 | ounana |
b56c840fd3e177afd90baa1c52d81a8971f94147 | 3,748 | cpp | C++ | Code/Avernakis Nodejs/Avernakis-Nodejs/Private/UiTextBox.cpp | qber-soft/Ave-Nodejs | 80b843d22b0e0620b6a5af329a851ce9921d8d85 | [
"MIT"
] | 39 | 2022-03-25T17:21:17.000Z | 2022-03-31T18:24:12.000Z | Code/Avernakis Nodejs/Avernakis-Nodejs/Private/UiTextBox.cpp | qber-soft/Ave-Nodejs | 80b843d22b0e0620b6a5af329a851ce9921d8d85 | [
"MIT"
] | 1 | 2022-03-20T00:35:07.000Z | 2022-03-20T01:06:20.000Z | Code/Avernakis Nodejs/Avernakis-Nodejs/Private/UiTextBox.cpp | qber-soft/Ave-Nodejs | 80b843d22b0e0620b6a5af329a851ce9921d8d85 | [
"MIT"
] | 3 | 2022-03-26T01:08:06.000Z | 2022-03-27T23:12:40.000Z | #include "StdAfx.h"
#include "UiTextBox.h"
#define ThisMethod($x) &UiTextBox::$x
#define AutoAddMethod($x, ...) AddMethod<__VA_ARGS__>( #$x, ThisMethod( $x ) )
#define MakeThisFunc($x) MakeFunc( this, &UiTextBox::$x )
namespace Nav
{
namespace
{
ObjectRegister<UiTextBox> c_obj;
}
void UiTextBox::DefineContro... | 30.225806 | 208 | 0.709979 | qber-soft |
b571464423c5f3e4ac67e95c46c24d6794b895e4 | 772 | hpp | C++ | libs/core/include/fcppt/metal/sequence_to_string.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/metal/sequence_to_string.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/metal/sequence_to_string.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// 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 FCPPT_METAL_SEQUENCE_TO_STRING_HPP_INCLUDED
#define FCPPT_METAL_SEQUENCE_TO_STRING_HPP_INC... | 15.755102 | 61 | 0.726684 | pmiddend |
b57f0e7131e6b56b5d8fef7e74ad2c31dd0130d3 | 84 | cpp | C++ | Sharpmake.FunctionalTests/NoAllFastBuildProjectFunctionalTest/codebase/LibC/LibC.cpp | mihailogazda/Sharpmake | a2e58cd151c74eac010738c63ba0f6eff4465d70 | [
"Apache-2.0"
] | 563 | 2017-09-23T15:30:50.000Z | 2020-05-26T15:04:07.000Z | Sharpmake.FunctionalTests/NoAllFastBuildProjectFunctionalTest/codebase/LibC/LibC.cpp | mihailogazda/Sharpmake | a2e58cd151c74eac010738c63ba0f6eff4465d70 | [
"Apache-2.0"
] | 76 | 2020-06-20T20:50:56.000Z | 2022-03-26T08:10:14.000Z | Sharpmake.FunctionalTests/NoAllFastBuildProjectFunctionalTest/codebase/LibC/LibC.cpp | panbolo/Sharpmake | 2f3369b729abb96d473426918803dd84690631ad | [
"Apache-2.0"
] | 104 | 2017-09-23T15:35:17.000Z | 2020-06-09T23:15:28.000Z | #include "LibC.h"
#include "LibA.h"
void fcnC(int value)
{
fcnA(value + 3);
}
| 9.333333 | 20 | 0.595238 | mihailogazda |
b584a5cb2ad569b58a9c9c50def34e121646d1d7 | 494 | cpp | C++ | other/expo.cpp | ishan-modi/Static-Dynamic-Algorithms | 6ac6513a808854438fa14a9b904428e92e9b1c1c | [
"MIT"
] | 2 | 2020-02-17T14:32:48.000Z | 2020-05-27T08:26:55.000Z | other/expo.cpp | ishan-modi/Static-Dynamic-Algorithms | 6ac6513a808854438fa14a9b904428e92e9b1c1c | [
"MIT"
] | null | null | null | other/expo.cpp | ishan-modi/Static-Dynamic-Algorithms | 6ac6513a808854438fa14a9b904428e92e9b1c1c | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int Nexpo(int x,int n);
int Dexpo(int x,int n);
int main()
{
int x,n,ans;
cout<<"Enter base number and power :"<<endl;
cin>>x>>n;
ans=Nexpo(x,n);
cout<<"Ans "<<ans<<endl;
ans=Dexpo(x,n);
cout<<"Ans "<<ans<<endl;
}
int Nexpo(int x,int n)
{
int i=n,r=1;
while(i>0)
{... | 11.488372 | 45 | 0.564777 | ishan-modi |
b5899e39d64d34a3a1d149f8676178e95c568109 | 3,115 | cpp | C++ | modules/recognition/src/ghv_opt.cpp | ToMadoRe/v4r | 7cb817e05cb9d99cb2f68db009c27d7144d07f09 | [
"MIT"
] | 17 | 2015-11-16T14:21:10.000Z | 2020-11-09T02:57:33.000Z | modules/recognition/src/ghv_opt.cpp | ToMadoRe/v4r | 7cb817e05cb9d99cb2f68db009c27d7144d07f09 | [
"MIT"
] | 35 | 2015-07-27T15:04:43.000Z | 2019-08-22T10:52:35.000Z | modules/recognition/src/ghv_opt.cpp | ToMadoRe/v4r | 7cb817e05cb9d99cb2f68db009c27d7144d07f09 | [
"MIT"
] | 18 | 2015-08-06T09:26:27.000Z | 2020-09-03T01:31:00.000Z | #include <v4r/recognition/ghv_opt.h>
namespace v4r
{
//template<typename ModelT, typename SceneT>
//bool
//GHVmove_activate<ModelT, SceneT>::operator== (const mets::mana_move& m) const
//{
// try
// {
// const GHVmove_activate& mm = dynamic_cast<const GHVmove_activate&> (m);
// return mm.index_ ... | 32.789474 | 125 | 0.588443 | ToMadoRe |
b58dd461bd04929077563fba97d5947835f53ef6 | 1,467 | cpp | C++ | lib/data_structures/graph/graph.cpp | shantanuwadnerkar/programming | d9368acf03e0bd3ac4388e483d82d0f492268fe4 | [
"BSD-2-Clause"
] | 1 | 2021-01-22T19:03:39.000Z | 2021-01-22T19:03:39.000Z | lib/data_structures/graph/graph.cpp | shantanuwadnerkar/programming | d9368acf03e0bd3ac4388e483d82d0f492268fe4 | [
"BSD-2-Clause"
] | null | null | null | lib/data_structures/graph/graph.cpp | shantanuwadnerkar/programming | d9368acf03e0bd3ac4388e483d82d0f492268fe4 | [
"BSD-2-Clause"
] | null | null | null | #include "graph.h"
Graph::Graph(const std::vector<graph::Edge>& edges,
int num_nodes, bool undirected)
: adj_list_(num_nodes)
{
for (auto edge : edges)
{
adj_list_[edge.src].push_back(edge.dest);
if (undirected)
{
adj_list_[edge.dest].push_back(edge.src);
... | 21.573529 | 97 | 0.492843 | shantanuwadnerkar |
b58f37060dd63f4902c641394c895925d1b974c1 | 3,194 | hpp | C++ | src/src/XERenderer/private/DynamicLines.hpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 11 | 2017-01-17T15:02:25.000Z | 2020-11-27T16:54:42.000Z | src/src/XERenderer/private/DynamicLines.hpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 9 | 2016-10-23T20:15:38.000Z | 2018-02-06T11:23:17.000Z | src/src/XERenderer/private/DynamicLines.hpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 2 | 2019-08-29T10:23:51.000Z | 2020-04-03T06:08:34.000Z | /*
* =====================================================================================
*
* Filename: BtOgreExtras.h
*
* Description: Contains the Ogre Mesh to Bullet Shape converters.
*
* Version: 1.0
* Created: 27/12/2008 01:45:56 PM
*
* Author: Nikhilesh (nikki)
modi... | 28.017544 | 161 | 0.694114 | devxkh |
b58f9cafff0c31fa47bcd45cf5313979644033a0 | 3,279 | cpp | C++ | 2015/task4.cpp | chengluo331/ic_cpp | 6cc10ae57cd98241b75f99648c87d206fef354bc | [
"Apache-2.0"
] | null | null | null | 2015/task4.cpp | chengluo331/ic_cpp | 6cc10ae57cd98241b75f99648c87d206fef354bc | [
"Apache-2.0"
] | null | null | null | 2015/task4.cpp | chengluo331/ic_cpp | 6cc10ae57cd98241b75f99648c87d206fef354bc | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
#define PRIME 2017
template <unsigned int p>
class primefield{
unsigned int a;
public:
primefield<p>(int n) {
a = n < 0 ? (n+p)%p : n%p;
};
primefield<p>& operator+= (const primefield<p>& q);
primefield<p> operator* (const primefield<p>& q) const;
pr... | 25.818898 | 97 | 0.626106 | chengluo331 |
b595f8f7a96a6b84ac3f4e99e09b8a3722b02346 | 209 | cpp | C++ | extras/general_pipelines/py2_10_10_10/py2_10_10_10.cpp | nvpro-samples/vk_compute_mipmaps | 613b94e4d36e6f357472e9c7a3163046deb55678 | [
"Apache-2.0"
] | 12 | 2021-07-24T18:33:22.000Z | 2022-03-12T16:20:49.000Z | extras/general_pipelines/py2_10_10_10/py2_10_10_10.cpp | nvpro-samples/vk_compute_mipmaps | 613b94e4d36e6f357472e9c7a3163046deb55678 | [
"Apache-2.0"
] | null | null | null | extras/general_pipelines/py2_10_10_10/py2_10_10_10.cpp | nvpro-samples/vk_compute_mipmaps | 613b94e4d36e6f357472e9c7a3163046deb55678 | [
"Apache-2.0"
] | 3 | 2021-08-04T02:27:12.000Z | 2022-03-13T08:43:24.000Z | #include "nvpro_pyramid_dispatch_alternative.hpp"
#include "../py2_dispatch_impl.hpp"
NVPRO_PYRAMID_ADD_GENERAL_DISPATCHER(py2_10_10_10,
(py2_dispatch_impl<10, 10, 10>))
| 29.857143 | 69 | 0.679426 | nvpro-samples |
b59891d8490af7c5bae5516d5442206aac5cf7b0 | 1,395 | hpp | C++ | include/formatters/gherkinCpp/element.hpp | JoeLoser/GUnit | 5ccb6c05eba86c0286368b6f5818df33af3a05ad | [
"BSL-1.0"
] | 189 | 2017-01-06T19:50:24.000Z | 2022-03-29T06:19:02.000Z | include/formatters/gherkinCpp/element.hpp | JoeLoser/GUnit | 5ccb6c05eba86c0286368b6f5818df33af3a05ad | [
"BSL-1.0"
] | 46 | 2017-04-23T17:17:44.000Z | 2022-03-18T10:18:30.000Z | include/formatters/gherkinCpp/element.hpp | JoeLoser/GUnit | 5ccb6c05eba86c0286368b6f5818df33af3a05ad | [
"BSL-1.0"
] | 46 | 2017-01-02T12:02:45.000Z | 2022-02-27T10:03:14.000Z | /*
* element.hpp
*
* Created on: Feb 17, 2020
* Author: rbauer
*/
#ifndef TESTS_GUNIT_LIBS_GHERKIN_CPP_INCLUDE_ELEMENT_HPP_
#define TESTS_GUNIT_LIBS_GHERKIN_CPP_INCLUDE_ELEMENT_HPP_
#include <unordered_map>
#include "step.hpp"
#include "genericinfo.hpp"
#include "tag.hpp"
namespace GherkinCpp {
class El... | 22.142857 | 134 | 0.678853 | JoeLoser |
b598937246f8d6b9055d0b3b5997e54e4614135a | 4,436 | hpp | C++ | Source/AliveLibAO/BirdPortal.hpp | Leonard2/alive_reversing | c6d85f435e275db1d41e2ec8b4e52454aa932e05 | [
"MIT"
] | null | null | null | Source/AliveLibAO/BirdPortal.hpp | Leonard2/alive_reversing | c6d85f435e275db1d41e2ec8b4e52454aa932e05 | [
"MIT"
] | null | null | null | Source/AliveLibAO/BirdPortal.hpp | Leonard2/alive_reversing | c6d85f435e275db1d41e2ec8b4e52454aa932e05 | [
"MIT"
] | null | null | null | #pragma once
#include "FunctionFwd.hpp"
#include "BaseAnimatedWithPhysicsGameObject.hpp"
#include "Map.hpp"
#include "DynamicArray.hpp"
namespace AO {
enum class LevelIds : s16;
enum class PortalType : s16
{
eAbe_0 = 0,
eWorker_1 = 1,
eShrykull_2 = 2,
eMudTeleport_3 = 3,
};
enum class PortalSide : ... | 27.04878 | 131 | 0.715735 | Leonard2 |
b599d7884fd7f9af5d528ef2cf49ffaf7d43298c | 359 | cpp | C++ | missions/_missions/Exile_config/REBORN/@ExileServer/addons/Enigma_Exile_Custom/config.cpp | ademirt/Arma3 | f75c28f59deb45e56d021d9d1d3458b145432bd8 | [
"MIT"
] | 9 | 2017-03-30T15:37:09.000Z | 2022-02-06T22:44:17.000Z | missions/_missions/Exile_config/REBORN/@ExileServer/addons/Enigma_Exile_Custom/config.cpp | ademirt/Arma3 | f75c28f59deb45e56d021d9d1d3458b145432bd8 | [
"MIT"
] | 1 | 2017-04-10T14:59:31.000Z | 2017-04-11T14:42:13.000Z | missions/_missions/Exile_config/REBORN/@ExileServer/addons/Enigma_Exile_Custom/config.cpp | ademirt/Arma3 | f75c28f59deb45e56d021d9d1d3458b145432bd8 | [
"MIT"
] | 6 | 2017-02-25T00:19:40.000Z | 2022-02-16T19:54:45.000Z |
class CfgPatches
{
class Enigma_Exile_Custom {
units[] = {};
weapons[] = {};
requiredVersion = 0.1;
author[]= {"Happydayz_EngimaTeam"};
};
};
class CfgFunctions
{
class EnigmaTeam
{
class main
{
file = "\Enigma_Exile_Custom\init";
class init
{
preInit = 1;
};
class postinit
... | 11.966667 | 39 | 0.559889 | ademirt |
b5a1f49a4800b3a9b270d44e1b7c54006a805dcb | 78 | cpp | C++ | Source/FSD/Private/BoxGenerationItem.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | 8 | 2021-07-10T20:06:05.000Z | 2022-03-04T19:03:50.000Z | Source/FSD/Private/BoxGenerationItem.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | 9 | 2022-01-13T20:49:44.000Z | 2022-03-27T22:56:48.000Z | Source/FSD/Private/BoxGenerationItem.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | 2 | 2021-07-10T20:05:42.000Z | 2022-03-14T17:05:35.000Z | #include "BoxGenerationItem.h"
ABoxGenerationItem::ABoxGenerationItem() {
}
| 13 | 42 | 0.782051 | Dr-Turtle |
b5a3363d7e2c8587721e4f6f639dfe312f0d478a | 1,791 | cpp | C++ | PlatformLib/iOS/RenderBuffer.cpp | cdoty/SuperPlay | e2d33cb52635251cd3f180b73f5fb08944940d18 | [
"MIT"
] | 26 | 2015-01-23T03:07:12.000Z | 2021-11-14T20:35:03.000Z | PlatformLib/iOS/RenderBuffer.cpp | cdoty/SuperPlay | e2d33cb52635251cd3f180b73f5fb08944940d18 | [
"MIT"
] | 1 | 2016-05-09T22:04:21.000Z | 2016-05-10T03:27:07.000Z | PlatformLib/iOS/RenderBuffer.cpp | cdoty/SuperPlay | e2d33cb52635251cd3f180b73f5fb08944940d18 | [
"MIT"
] | 8 | 2015-04-13T19:15:36.000Z | 2021-01-13T13:24:45.000Z | // This code is part of the Super Play Library (http://www.superplay.info),
// and may only be used under the terms contained in the LICENSE file,
// included with the Super Play Library.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT... | 23.25974 | 114 | 0.778336 | cdoty |
b5a47107308f78437a490af472ae63274b2ea303 | 1,809 | cpp | C++ | src/competitiveProgrammingTest/cpp/competitive/programming/physics/DiskTest.cpp | dareagle/competitive-programming | 4f92a09592b8e0cb4cbcc530681721a728902908 | [
"Apache-2.0"
] | 160 | 2016-05-27T14:26:38.000Z | 2022-03-06T19:30:00.000Z | src/competitiveProgrammingTest/cpp/competitive/programming/physics/DiskTest.cpp | dareagle/competitive-programming | 4f92a09592b8e0cb4cbcc530681721a728902908 | [
"Apache-2.0"
] | 7 | 2016-06-26T16:01:43.000Z | 2019-06-15T21:00:10.000Z | src/competitiveProgrammingTest/cpp/competitive/programming/physics/DiskTest.cpp | dareagle/competitive-programming | 4f92a09592b8e0cb4cbcc530681721a728902908 | [
"Apache-2.0"
] | 40 | 2016-06-28T11:06:13.000Z | 2021-12-01T14:48:28.000Z | #include "gtest/gtest.h"
#include "competitive/programming/physics/Disk.hpp"
#include <cmath>
using competitive::programming::physics::Disk;
TEST(Disk, Move)
{
Disk disk(2, 1, 2, 3, 5);
ASSERT_EQ(Disk(4, 4, 2, 3, 5), disk.move());
ASSERT_EQ(Disk(2, 1, 2, 3, 5), disk);
disk.moveInPlace();
ASSERT_EQ(Disk(4, 4, 2... | 29.177419 | 68 | 0.682698 | dareagle |
b26eb3a2837b12402258842916dcc01ed7e66e6d | 197 | cpp | C++ | 30-app/viewdll/source/ctrlapp2.cpp | RealCrond/view | 0a5f0b5d6e57d0d91f8b254ec9f3075e5185a34d | [
"MIT"
] | 1 | 2020-03-27T09:37:18.000Z | 2020-03-27T09:37:18.000Z | 30-app/viewdll/source/ctrlapp2.cpp | RealCrond/view | 0a5f0b5d6e57d0d91f8b254ec9f3075e5185a34d | [
"MIT"
] | null | null | null | 30-app/viewdll/source/ctrlapp2.cpp | RealCrond/view | 0a5f0b5d6e57d0d91f8b254ec9f3075e5185a34d | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ctrlapp2.h"
CCtrlApp2::CCtrlApp2()
{
}
CCtrlApp2::~CCtrlApp2()
{
}
BEGIN_MSG_MAP(CCtrlApp2)
//REG_MSG(emFistEventId, CCtrlApp1::OnCameraSelectCmd)
END_MSG_MAP() | 11.588235 | 55 | 0.736041 | RealCrond |
b26f54a765a757e07a98cb40380c1c40609d268f | 1,812 | cpp | C++ | src/ast/array-literal.cpp | alta-lang/ceetah | bddb3478d10480f62ff0b3b4930479a2d745ae52 | [
"MIT"
] | null | null | null | src/ast/array-literal.cpp | alta-lang/ceetah | bddb3478d10480f62ff0b3b4930479a2d745ae52 | [
"MIT"
] | null | null | null | src/ast/array-literal.cpp | alta-lang/ceetah | bddb3478d10480f62ff0b3b4930479a2d745ae52 | [
"MIT"
] | null | null | null | #include "../../include/ceetah/ast/array-literal.hpp"
Ceetah::AST::NodeType Ceetah::AST::ArrayLiteral::nodeType() const {
return NodeType::ArrayLiteral;
};
std::string Ceetah::AST::ArrayLiteral::toStringWithIndent(std::string indent) const {
std::string result = "";
if (type) {
result += '(';
result +=... | 23.532468 | 91 | 0.607616 | alta-lang |
b2709ac5af83f9388a81e4fd46bfe216ff82c986 | 694 | cpp | C++ | utils/src/drawing/Color.cpp | AleksievAleksandar/Game_Engine | 78b055862f8a887bd7a90142ef8eb56e21ca5e3b | [
"MIT"
] | 1 | 2022-02-21T11:09:17.000Z | 2022-02-21T11:09:17.000Z | utils/src/drawing/Color.cpp | AleksievAleksandar/Game_Engine | 78b055862f8a887bd7a90142ef8eb56e21ca5e3b | [
"MIT"
] | null | null | null | utils/src/drawing/Color.cpp | AleksievAleksandar/Game_Engine | 78b055862f8a887bd7a90142ef8eb56e21ca5e3b | [
"MIT"
] | null | null | null | #include "utils/drawing/Color.h"
namespace Colors {
const Color RED(255, 0, 0, 255);
const Color GREEN(0, 255, 0, 255);
const Color BLUE(0, 0, 255, 255);
const Color BLACK(0, 0, 0, 255);
const Color WHITE(255, 255, 255, 255);
const Color GRAY(192, 192, 192, 255);
const Color CYAN(0, 255, 255, 255);
const Color... | 26.692308 | 93 | 0.67147 | AleksievAleksandar |
b273f7c0247de5acce0cd8c101893a83ff613c53 | 836 | hpp | C++ | src/headers/game-graphics.hpp | big-leo/2048.cpp | 072becdcd8b91d1b15a5802991a92975768b4b20 | [
"MIT"
] | 1 | 2020-10-24T07:29:36.000Z | 2020-10-24T07:29:36.000Z | src/headers/game-graphics.hpp | big-leo/2048.cpp | 072becdcd8b91d1b15a5802991a92975768b4b20 | [
"MIT"
] | null | null | null | src/headers/game-graphics.hpp | big-leo/2048.cpp | 072becdcd8b91d1b15a5802991a92975768b4b20 | [
"MIT"
] | null | null | null | #ifndef GAMEGRAPHICS_H
#define GAMEGRAPHICS_H
#include <string>
enum GameBoardDimensions {
MIN_GAME_BOARD_PLAY_SIZE = 3,
MAX_GAME_BOARD_PLAY_SIZE = 10
};
enum { COMPETITION_GAME_BOARD_PLAY_SIZE = 4 };
namespace Game {
namespace Graphics {
std::string MessageScoreSavedPrompt();
std::string AskForPlayerNamePrompt(... | 26.125 | 47 | 0.800239 | big-leo |
b27699f9c7e1ce722f7518383e35f0e0e281642e | 327 | cpp | C++ | test_cttrie_print.cpp | smilingthax/cttrie | 010182660de3c978343bc8148dd08963c9c4c5be | [
"MIT"
] | 40 | 2016-08-03T22:07:04.000Z | 2021-12-18T05:02:54.000Z | 3party/cttrie/test_cttrie_print.cpp | mapsme/geocore | 346fceb020cd909b37706ab6ad454aec1a11f52e | [
"Apache-2.0"
] | 37 | 2019-10-04T00:55:46.000Z | 2019-12-27T15:13:19.000Z | 3party/cttrie/test_cttrie_print.cpp | mapsme/geocore | 346fceb020cd909b37706ab6ad454aec1a11f52e | [
"Apache-2.0"
] | 13 | 2019-10-02T15:03:58.000Z | 2020-12-28T13:06:22.000Z | #include "cttrie-print.h"
#include <stdio.h>
int main()
{
auto trie=CtTrie::makeTrie(
CSTR("Rosten"),
CSTR("Raben"),
CSTR("Rasen"),
CSTR("Rasten"),
CSTR("Raster"),
CSTR("Rastender"),
CSTR("Raban")
);
// trie is not constexpr, but decltype(trie) is.
CtTrie::printTrie(trie);
retur... | 15.571429 | 50 | 0.587156 | smilingthax |
b2780d67ab05e2bc176aef7a2afaa597a7267b84 | 1,246 | cpp | C++ | Source/Engine/src/stdlib/stdlib.cpp | DatZach/Swift | b0c6f9c87e8c8dfe8a19dedc4dd57081fa5cdef7 | [
"MIT"
] | null | null | null | Source/Engine/src/stdlib/stdlib.cpp | DatZach/Swift | b0c6f9c87e8c8dfe8a19dedc4dd57081fa5cdef7 | [
"MIT"
] | null | null | null | Source/Engine/src/stdlib/stdlib.cpp | DatZach/Swift | b0c6f9c87e8c8dfe8a19dedc4dd57081fa5cdef7 | [
"MIT"
] | 1 | 2021-10-30T20:43:01.000Z | 2021-10-30T20:43:01.000Z | /*
* stdlib.cpp
* Swift Standard Library
*/
namespace StdLib
{
// Audio
namespace Sound { void Install(); }
// DataStructures
namespace Grid { void Install(); }
// IO
namespace BinaryFile { void Install(); }
namespace FileSystem { void Install(); }
namespace Keyboard { void Install(); }
namespace Mouse {... | 16.394737 | 41 | 0.624398 | DatZach |
b27b96292030d50b2fae3571dca5c8c33992d250 | 5,810 | cpp | C++ | src/random.cpp | brentnd/random-cpp | dbb5adfc93238e18625bfd0424e7b8ed1bfcd4e9 | [
"MIT"
] | null | null | null | src/random.cpp | brentnd/random-cpp | dbb5adfc93238e18625bfd0424e7b8ed1bfcd4e9 | [
"MIT"
] | null | null | null | src/random.cpp | brentnd/random-cpp | dbb5adfc93238e18625bfd0424e7b8ed1bfcd4e9 | [
"MIT"
] | null | null | null | #include <randomcpp.hpp>
#include <algorithm> // std::find
#include <ctime> // std::time
#include <cmath>
namespace randomcpp {
static unsigned seed_value = 0;
static std::random_device rd;
static float const SG_MAGICCONST = 1.0f + std::log(4.5f);
static float const NV_MAGICCONST = static_cast<float>(4.0f * std... | 23.811475 | 93 | 0.519621 | brentnd |
b27bf8744cb6bbe1c0b34445929dd4c66b48c35b | 4,534 | cpp | C++ | Surrounded Regions.cpp | Xe0n0/LeetCode | a7a383d88d222edaadd52b317e848f06632a569a | [
"MIT"
] | 1 | 2017-08-22T00:43:27.000Z | 2017-08-22T00:43:27.000Z | Surrounded Regions.cpp | Xe0n0/LeetCode | a7a383d88d222edaadd52b317e848f06632a569a | [
"MIT"
] | null | null | null | Surrounded Regions.cpp | Xe0n0/LeetCode | a7a383d88d222edaadd52b317e848f06632a569a | [
"MIT"
] | null | null | null | //solution rev.2 BFS to deal with O that can not be flip to X, complexity is O(input)
class Solution {
public:
void solve(vector<vector<char>> &board) {
// Start typing your C/C++ solution below
// DO NOT write int main() function
int h, w;
if ((h = board.size()) == 0 || (w ... | 26.828402 | 85 | 0.363917 | Xe0n0 |
b280154534cfe18b384d005dec4febdc9fe980b1 | 1,757 | cc | C++ | test/slice_test.cc | pragkent/logbox | 15274be0726cd3f0d71266a0ce4755106c8bdd1f | [
"MIT"
] | 2 | 2015-02-14T04:24:07.000Z | 2015-02-28T11:23:48.000Z | test/slice_test.cc | pragkent/logbox | 15274be0726cd3f0d71266a0ce4755106c8bdd1f | [
"MIT"
] | null | null | null | test/slice_test.cc | pragkent/logbox | 15274be0726cd3f0d71266a0ce4755106c8bdd1f | [
"MIT"
] | null | null | null | #include <string>
#include "util/slice.h"
#include <gtest/gtest.h>
using logbox::Slice;
TEST(SliceTest, CreateByCharPointerAndLength) {
const char* hello = "Hello";
Slice slice(hello, 2);
EXPECT_EQ(hello, slice.data());
EXPECT_EQ(2U, slice.size());
}
TEST(SliceTest, CreateByStdString) {
std::string hello... | 20.430233 | 47 | 0.663062 | pragkent |
b28215c717148495e3bc175f3134e5ff79a5298e | 714 | cpp | C++ | examples/google-code-jam/rapel/C_1.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/rapel/C_1.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/rapel/C_1.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define ff first
#define mp make_pair
#define ss second
using namespace std;
priority_queue<pair<int,pair<int,int> > > pq;
int main()
{
int ntc;
scanf("%d",&ntc);
for(int tc=1;tc<=ntc;tc++)
{
int n,k;
scanf("%d %d",&n,&k);
while(!pq.empty()) pq.pop();
pq.push(mp(n+... | 20.4 | 46 | 0.515406 | rbenic-fer |
b28ad1de34bb39582e8c625f7381f3972f33cf98 | 4,324 | cpp | C++ | CraftEngine/src/dev-ui/DevUI.cpp | guibec/rpgcraft | a4fd84effaf334b1ed637d32b8853b0e6beadf1e | [
"MIT"
] | 9 | 2017-04-05T01:42:36.000Z | 2021-11-14T20:37:58.000Z | CraftEngine/src/dev-ui/DevUI.cpp | guibec/rpgcraft | a4fd84effaf334b1ed637d32b8853b0e6beadf1e | [
"MIT"
] | 82 | 2017-04-05T00:26:54.000Z | 2019-09-21T22:43:09.000Z | CraftEngine/src/dev-ui/DevUI.cpp | guibec/rpgcraft | a4fd84effaf334b1ed637d32b8853b0e6beadf1e | [
"MIT"
] | 3 | 2019-01-08T17:11:17.000Z | 2021-08-11T23:59:23.000Z | #include "PCH-rpgcraft.h"
#include "x-types.h"
#include "x-png-decode.h"
#include "x-chrono.h"
#include "appConfig.h"
#include "Scene.h"
#include "dev-ui/ui-assets.h"
ImGuiTextures s_gui_tex;
void DevUI_LoadImageAsset(DevUI_ImageAsset& dest, const char* asset_name)
{
xString fullpath = FindAsset(xFmtStr(... | 37.275862 | 146 | 0.670444 | guibec |
b2992225501666a19d50f57677e7a593bb964df8 | 1,259 | cpp | C++ | aws-cpp-sdk-apprunner/source/model/AssociateCustomDomainRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-apprunner/source/model/AssociateCustomDomainRequest.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-apprunner/source/model/AssociateCustomDomainRequest.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T12:02:58.000Z | 2021-11-09T12:02:58.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/apprunner/model/AssociateCustomDomainRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::AppRunner::Model;
using namespace Aws::Utils::Js... | 21.338983 | 96 | 0.76251 | perfectrecall |
b29c493a1f267f91d3ffe1f67f74f2404e2e9295 | 1,299 | cpp | C++ | test/math/matrix/binary_map.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | test/math/matrix/binary_map.cpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | test/math/matrix/binary_map.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <fcppt/cast/to_signed.hpp>
#include <fcppt/catch/begin.hpp>
#include <fcppt/catch/end.hpp>... | 36.083333 | 94 | 0.682063 | freundlich |
b2a8e07f4893ff9218f337962a1a33de96948b32 | 676 | cpp | C++ | Mathematics/Session_code/tailing_Zeroes.cpp | ayushid549/DSA_Marathon | 504c7cd7d153da10bbab3273c38d3368b72f946a | [
"MIT"
] | 24 | 2021-09-14T13:16:58.000Z | 2022-02-25T18:54:26.000Z | Mathematics/Session_code/tailing_Zeroes.cpp | ayushid549/DSA_Marathon | 504c7cd7d153da10bbab3273c38d3368b72f946a | [
"MIT"
] | 11 | 2021-09-13T15:27:48.000Z | 2021-10-05T21:56:02.000Z | Mathematics/Session_code/tailing_Zeroes.cpp | ayushid549/DSA_Marathon | 504c7cd7d153da10bbab3273c38d3368b72f946a | [
"MIT"
] | 22 | 2021-09-13T13:37:55.000Z | 2021-10-17T05:12:35.000Z | #include<bits/stdc++.h>
using namespace std;
#define loop(i,l,h) for(int i=l;i<h;i++)
#define endl "\n"
typedef long long int ll;
typedef long double ld;
inline void puneetMode() {
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif // ONLINE_JUDGE
}
/* ************... | 17.333333 | 59 | 0.58284 | ayushid549 |
b2aa0a5efe592c7fe3da633070034b78745bbf8c | 517 | cpp | C++ | Codeforces/9A - Die Roll.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/9A - Die Roll.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/9A - Die Roll.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int yakko_points, wakko_points, max_points, chances, total_outcomes = 6;
cin >> yakko_points >> wakko_points;
max_points = (yakko_points > wakko_points) ? yakko_points : wakko_points;
chances = 6 - max_points + 1;
for (int i = 6; i > 1; i--)... | 24.619048 | 77 | 0.564797 | naimulcsx |
b2ace2b2f410a658c1846bda7eca08585efa697b | 643 | cc | C++ | 100. Symmetric Tree/main.cc | corkiwang1122/LeetCode | 39b1680b58173e6ec23a475605c3450ce8f78a81 | [
"MIT"
] | 3,690 | 2015-01-03T03:40:23.000Z | 2022-03-31T08:10:19.000Z | 100. Symmetric Tree/main.cc | Windfall94/LeetCode | 1756256d7e619164076bbf358c8f7ca68cd8bd79 | [
"MIT"
] | 21 | 2015-01-25T16:39:43.000Z | 2021-02-26T05:28:22.000Z | 100. Symmetric Tree/main.cc | Windfall94/LeetCode | 1756256d7e619164076bbf358c8f7ca68cd8bd79 | [
"MIT"
] | 1,290 | 2015-01-09T01:28:20.000Z | 2022-03-28T12:20:39.000Z | #include "solution.h"
#include <iostream>
#include <vector>
using vecIter = std::vector<int>::iterator;
TreeNode *createBinaryTree(vecIter beg, vecIter end)
{
std::vector<TreeNode *> vec;
for (vecIter it = beg; it != end; ++it)
vec.push_back(new TreeNode(*it));
for (int i = 0, pos = 0; pos != ... | 20.741935 | 86 | 0.564541 | corkiwang1122 |
b2ae6ab5dd9bc19ba025fc35c3aa0e3f9cf1c071 | 25,170 | hpp | C++ | Base/include/Framework/Math/Matrix.hpp | BlockProject3D/Framework | 1c27ef19d9a12d158a2b53f6bd28dd2d8e678912 | [
"BSD-3-Clause"
] | 2 | 2019-02-02T20:48:17.000Z | 2019-02-22T09:59:40.000Z | Base/include/Framework/Math/Matrix.hpp | BlockProject3D/Framework | 1c27ef19d9a12d158a2b53f6bd28dd2d8e678912 | [
"BSD-3-Clause"
] | 125 | 2020-01-14T18:26:38.000Z | 2021-02-23T15:33:55.000Z | Base/include/Framework/Math/Matrix.hpp | BlockProject3D/Framework | 1c27ef19d9a12d158a2b53f6bd28dd2d8e678912 | [
"BSD-3-Clause"
] | 1 | 2020-05-26T08:55:10.000Z | 2020-05-26T08:55:10.000Z | // Copyright (c) 2020, BlockProject 3D
//
// 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 ... | 31.30597 | 107 | 0.457449 | BlockProject3D |
b2b21417126c8a6d7c7d300a384a15f98a4a0f14 | 7,582 | cpp | C++ | src/PRPParticleSequence.cpp | schmittsfn/primary_particle | 141662802fd4ec11fbb85bf05b1185cbad0c931d | [
"MIT"
] | 3 | 2021-07-09T09:45:08.000Z | 2021-08-21T19:39:09.000Z | src/PRPParticleSequence.cpp | schmittsfn/primary_particle | 141662802fd4ec11fbb85bf05b1185cbad0c931d | [
"MIT"
] | null | null | null | src/PRPParticleSequence.cpp | schmittsfn/primary_particle | 141662802fd4ec11fbb85bf05b1185cbad0c931d | [
"MIT"
] | null | null | null | //
// PRPParticleSequence.cpp
// primaryp
//
// Created by Stefan Schmitt on 5/20/14.
//
//
#include "PRPParticleSequence.h"
#include "PRPParticleSequenceInterval.h"
#include "PRPAppDelegate.h"
#include "PRPRandomGenerator.h"
USING_NS_CC;
USING_NS_PRP;
static unsigned long s_sequenceId = 0;
/**
* Returns the ... | 27.078571 | 132 | 0.625561 | schmittsfn |
b2b215e251cfb04c01c65aa8a7bcfb02f19f29da | 779 | cpp | C++ | solutions-PAT/B1045.cpp | Ki-Seki/solutions | e4329712d664180d850e0a48d7d0f637215f13d0 | [
"MIT"
] | 1 | 2022-02-26T10:33:24.000Z | 2022-02-26T10:33:24.000Z | solutions-PAT/B1045.cpp | Ki-Seki/solutions | e4329712d664180d850e0a48d7d0f637215f13d0 | [
"MIT"
] | null | null | null | solutions-PAT/B1045.cpp | Ki-Seki/solutions | e4329712d664180d850e0a48d7d0f637215f13d0 | [
"MIT"
] | 1 | 2021-12-01T14:54:33.000Z | 2021-12-01T14:54:33.000Z | /*
* hint:
* 测试点 2:考察当没有一个数字满足情况时的处理:应当输出一个换行
*/
#include <iostream>
#include <algorithm>
#define MAXN 100005
using namespace std;
int arr[MAXN], ans[MAXN], left_max[MAXN], right_min[MAXN] = {INT32_MAX};
int main()
{
int n, cnt = 0;
scanf("%d", &n);
left_max[0] = -1;
for (int i = 1; i <= n; i++)
... | 22.911765 | 72 | 0.483954 | Ki-Seki |
b2b4d9a624e50cfc7c15ff2e1f2e6c59ff2ebf1a | 469 | hxx | C++ | src/engine/Transform.hxx | broken-bytes/Cyanite | 0392e3114c946e41b7352afd4b8eceb6f03939da | [
"MIT"
] | 1 | 2021-11-11T02:56:56.000Z | 2021-11-11T02:56:56.000Z | src/engine/Transform.hxx | broken-bytes/Cyanite | 0392e3114c946e41b7352afd4b8eceb6f03939da | [
"MIT"
] | null | null | null | src/engine/Transform.hxx | broken-bytes/Cyanite | 0392e3114c946e41b7352afd4b8eceb6f03939da | [
"MIT"
] | null | null | null | #pragma once
#include "Component.hxx"
#include "Worlds/Quaternion.hxx"
#include "Worlds/Vector3D.hxx"
namespace BrokenBytes::Cyanite::Engine {
#pragma pack(push, 1)
struct Transform: Component {
Transform(): Transform({0,0,0}, {0,0,0,0}) {
}
Transform(World::Vector3D pos, World::Quaternion rot):Component(type... | 20.391304 | 93 | 0.695096 | broken-bytes |
b2b5d44a3d4d3f99b0a5138025622432d02a7c46 | 482 | hpp | C++ | parse/jsd_check.hpp | 5cript/SimpleJSON | 878a6341baed91c29630447f6bd480391f563045 | [
"MIT"
] | 4 | 2015-06-25T02:06:13.000Z | 2018-07-11T13:20:24.000Z | parse/jsd_check.hpp | 5cript/SimpleJSON | 878a6341baed91c29630447f6bd480391f563045 | [
"MIT"
] | 14 | 2015-03-29T10:32:21.000Z | 2018-01-25T16:45:08.000Z | parse/jsd_check.hpp | 5cript/SimpleJSON | 878a6341baed91c29630447f6bd480391f563045 | [
"MIT"
] | 2 | 2017-07-16T09:43:22.000Z | 2020-08-30T09:33:40.000Z | #pragma once
#include "jsd_core.hpp"
namespace JSON { namespace Internal {
template<typename T>
class can_parse
{
template<typename U>
static char check(...);
template<typename U>
static char (&check(decltype(parse(std::declval<U>(), std::declval<std::string const>(), std:... | 24.1 | 178 | 0.618257 | 5cript |
b2b83a1d1d32bf0a1012ff763db9d61181085024 | 3,201 | cpp | C++ | Tests/read_write_lock.cpp | klassen-software-solutions/kssthread | 8b2929e596ae16a13d1d2d94b512e4884f3dbffb | [
"MIT"
] | null | null | null | Tests/read_write_lock.cpp | klassen-software-solutions/kssthread | 8b2929e596ae16a13d1d2d94b512e4884f3dbffb | [
"MIT"
] | 3 | 2019-01-28T17:40:43.000Z | 2019-12-26T14:52:20.000Z | Tests/read_write_lock.cpp | klassen-software-solutions/kssthread | 8b2929e596ae16a13d1d2d94b512e4884f3dbffb | [
"MIT"
] | null | null | null | //
// read_write_lock.cpp
// unittest
//
// Created by Steven W. Klassen on 2014-12-12.
// Copyright (c) 2014 Klassen Software Solutions. All rights reserved.
// Licensing follows the MIT License.
//
#include <cstdlib>
#include <cstring>
#include <memory>
#include <mutex>
#include <new>
#include <system_error>
#i... | 28.078947 | 129 | 0.552015 | klassen-software-solutions |
b2b97e5675fd1886d299b680cdb2d06a0dc49b51 | 5,593 | cpp | C++ | src/images-utilities.cpp | XHPlus/deep-activity-rec | bb9003390ee3f9a721e4d61deb1a9b3f3144b304 | [
"BSD-2-Clause"
] | 140 | 2016-04-07T14:26:36.000Z | 2022-03-21T17:32:03.000Z | src/images-utilities.cpp | XHPlus/deep-activity-rec | bb9003390ee3f9a721e4d61deb1a9b3f3144b304 | [
"BSD-2-Clause"
] | 26 | 2016-09-13T03:01:24.000Z | 2021-10-09T21:21:50.000Z | src/images-utilities.cpp | XHPlus/deep-activity-rec | bb9003390ee3f9a721e4d61deb1a9b3f3144b304 | [
"BSD-2-Clause"
] | 42 | 2016-08-24T19:42:08.000Z | 2022-03-15T14:50:10.000Z | #include "images-utilities.h"
#include <iostream>
using std::cout;
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "custom-images-macros.h"
#include "custom-macros.h"
namespace MostCV {
void ShowImage(Mat image, int wait, bool bShow, string st... | 24.107759 | 146 | 0.63347 | XHPlus |
b2b98dae3e7fa74a812bac35408d0a9ba9189be8 | 1,255 | hpp | C++ | include/h3api/H3Constants/H3CstResources.hpp | Patrulek/H3API | 91f10de37c6b86f3160706c1fdf4792f927e9952 | [
"MIT"
] | 14 | 2020-09-07T21:49:26.000Z | 2021-11-29T18:09:41.000Z | include/h3api/H3Constants/H3CstResources.hpp | Day-of-Reckoning/H3API | a82d3069ec7d5127b13528608d5350d2b80d57be | [
"MIT"
] | 2 | 2021-02-12T15:52:31.000Z | 2021-02-12T16:21:24.000Z | include/h3api/H3Constants/H3CstResources.hpp | Day-of-Reckoning/H3API | a82d3069ec7d5127b13528608d5350d2b80d57be | [
"MIT"
] | 8 | 2021-02-12T15:52:41.000Z | 2022-01-31T15:28:10.000Z | //////////////////////////////////////////////////////////////////////
// //
// Created by RoseKavalier: //
// rosekavalierhc@gmail.com //
// Created or last upda... | 32.179487 | 70 | 0.341036 | Patrulek |
b2bb732975449b2a10e203d64726cd56e6d7695a | 110,828 | cpp | C++ | src/plugPikiKando/generator.cpp | doldecomp/pikmin | 8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed | [
"Unlicense"
] | 27 | 2021-09-28T00:33:11.000Z | 2021-11-18T19:38:40.000Z | src/plugPikiKando/generator.cpp | doldecomp/pikmin | 8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed | [
"Unlicense"
] | null | null | null | src/plugPikiKando/generator.cpp | doldecomp/pikmin | 8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed | [
"Unlicense"
] | null | null | null | #include "types.h"
/*
* --INFO--
* Address: ........
* Size: 00009C
*/
void _Error(char*, ...)
{
// UNUSED FUNCTION
}
/*
* --INFO--
* Address: ........
* Size: 0000F4
*/
void _Print(char*, ...)
{
// UNUSED FUNCTION
}
/*
* --INFO--
* Address: ........
* Size: 000088
*/
void writeID(RandomAccessStream&, ... | 20.04123 | 60 | 0.457014 | doldecomp |
b2c05459049314c3b6bc9786afb6fe5700ab9f30 | 5,908 | cpp | C++ | source/D2Common/src/DataTbls/InvTbls.cpp | eezstreet/D2MOO | 28a30aecc69bf43c80e6757a94d533fb37634b68 | [
"MIT"
] | 42 | 2020-12-26T00:21:49.000Z | 2022-03-21T03:48:03.000Z | source/D2Common/src/DataTbls/InvTbls.cpp | eezstreet/D2MOO | 28a30aecc69bf43c80e6757a94d533fb37634b68 | [
"MIT"
] | 24 | 2020-12-26T09:46:51.000Z | 2021-09-05T16:22:43.000Z | source/D2Common/src/DataTbls/InvTbls.cpp | eezstreet/D2MOO | 28a30aecc69bf43c80e6757a94d533fb37634b68 | [
"MIT"
] | 19 | 2020-12-26T10:06:20.000Z | 2022-03-27T17:20:09.000Z | #include <DataTbls/InvTbls.h>
#include <D2DataTbls.h>
//D2Common.0x6FD542D0
void __fastcall DATATBLS_LoadInventoryTxt(void* pMemPool)
{
D2BinFieldStrc pTbl[] =
{
{ "invLeft", TXTFIELD_DWORD, 0, 0, NULL },
{ "invRight", TXTFIELD_DWORD, 0, 4, NULL },
{ "invTop", TXTFIELD_DWORD, 0, 8, NULL },
{ "invBottom", TXT... | 41.900709 | 166 | 0.703453 | eezstreet |
b2c848c2e8aaff78d5716b66b2579490cc703a50 | 7,769 | cpp | C++ | src/cSteamHTTP.cpp | thecocce/steamwrapper | 3836739a0cc61955cc88fa0539f87f9bdc0a684c | [
"MIT"
] | 32 | 2015-01-08T09:04:58.000Z | 2022-03-04T19:48:51.000Z | src/cSteamHTTP.cpp | AdriaanBoshoff/steamwrapper | 47997bcab31d2518525d5086f90ae7f6d127982a | [
"MIT"
] | null | null | null | src/cSteamHTTP.cpp | AdriaanBoshoff/steamwrapper | 47997bcab31d2518525d5086f90ae7f6d127982a | [
"MIT"
] | 10 | 2016-06-27T10:47:36.000Z | 2021-01-06T09:39:12.000Z | //----------------------------------------------------
// © 2015 Andrey Volia
//
// License: MIT
// Site: https://github.com/voliaandrey/steamwrapper
//----------------------------------------------------
#include "libMain.h"
// Initializes a new HTTP request, returning a handle to use in further operations on it. R... | 87.292135 | 238 | 0.796628 | thecocce |
b2cedebdcbab1bb99325739ca98fd86ac1443656 | 4,713 | hh | C++ | GerdaCore/GerdaOther.hh | pmandrik/GerdaEngine | e399514785939e3499cdb7c87193a9272d3a523c | [
"MIT"
] | null | null | null | GerdaCore/GerdaOther.hh | pmandrik/GerdaEngine | e399514785939e3499cdb7c87193a9272d3a523c | [
"MIT"
] | null | null | null | GerdaCore/GerdaOther.hh | pmandrik/GerdaEngine | e399514785939e3499cdb7c87193a9272d3a523c | [
"MIT"
] | null | null | null |
#ifndef GERDA_OTHER
#define GERDA_OTHER_HH 1
namespace ge {
// ======= Timer ====================================================================
class Timer{
public:
Timer(){};
Timer(int max_time) : mtime(max_time) { dtime = 1./float(mtime); Reset(); }
inline void Set(int time){itime = time; fti... | 30.211538 | 107 | 0.551666 | pmandrik |
b2cf9223cf4350dbca15e3686793c889796b19dd | 3,806 | hpp | C++ | src/components/ComponentBase.hpp | daveying/latch | c3d75b2d34f0d0342b3841374771360424165038 | [
"MIT"
] | 3 | 2021-11-20T09:46:49.000Z | 2021-12-25T05:06:49.000Z | src/components/ComponentBase.hpp | daveying/latch | c3d75b2d34f0d0342b3841374771360424165038 | [
"MIT"
] | null | null | null | src/components/ComponentBase.hpp | daveying/latch | c3d75b2d34f0d0342b3841374771360424165038 | [
"MIT"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////////
// MIT License
//
// Copyright (c) 2021 Xingpeng Da
//
// 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 wit... | 33.982143 | 115 | 0.625066 | daveying |
b2d15563594f63282796fc0d794a2538095a98d7 | 662 | cpp | C++ | TAOP/C2/DutchFlagProblem.cpp | Michael-Ma/Coding-Practice | 6ab3d76ae1cd3a97046b399c59d6bf2b135d7b5f | [
"MIT"
] | null | null | null | TAOP/C2/DutchFlagProblem.cpp | Michael-Ma/Coding-Practice | 6ab3d76ae1cd3a97046b399c59d6bf2b135d7b5f | [
"MIT"
] | null | null | null | TAOP/C2/DutchFlagProblem.cpp | Michael-Ma/Coding-Practice | 6ab3d76ae1cd3a97046b399c59d6bf2b135d7b5f | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
void swapFlags(int input[], int size)
{
int curr=0, begin=0, end=size-1;
while(curr < end)
{
if(input[curr] == 1)
{
swap(input[curr], input[begin]);
curr++;
begin++; //curr always >= begin, so no worry about the swaped element.
}else if(input[curr] == 2)
... | 17.421053 | 84 | 0.574018 | Michael-Ma |
b2d21479866c6d3a8947d8e864f640189fb68618 | 35,176 | cpp | C++ | game/client/cstrike15/Scaleform/teammenu_scaleform.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 252 | 2020-12-16T15:34:43.000Z | 2022-03-31T23:21:37.000Z | cstrike15_src/game/client/cstrike15/Scaleform/teammenu_scaleform.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 23 | 2020-12-20T18:02:54.000Z | 2022-03-28T16:58:32.000Z | cstrike15_src/game/client/cstrike15/Scaleform/teammenu_scaleform.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 42 | 2020-12-19T04:32:33.000Z | 2022-03-30T06:00:28.000Z | //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
#if defined( INCLUDE_SCALEFORM )
#include <game/client/iviewport.h>
#include "teammenu_scalef... | 26.954789 | 186 | 0.688168 | DannyParker0001 |
b2d3ad3d5ed3c7fda778d542e8be3e6389ea2f33 | 22,758 | cpp | C++ | qws/src/core/QSettings.cpp | keera-studios/hsQt | 8aa71a585cbec40005354d0ee43bce9794a55a9a | [
"BSD-2-Clause"
] | 42 | 2015-02-16T19:29:16.000Z | 2021-07-25T11:09:03.000Z | qws/src/core/QSettings.cpp | keera-studios/hsQt | 8aa71a585cbec40005354d0ee43bce9794a55a9a | [
"BSD-2-Clause"
] | 1 | 2017-11-23T12:49:25.000Z | 2017-11-23T12:49:25.000Z | qws/src/core/QSettings.cpp | keera-studios/hsQt | 8aa71a585cbec40005354d0ee43bce9794a55a9a | [
"BSD-2-Clause"
] | 5 | 2015-10-15T21:25:30.000Z | 2017-11-22T13:18:24.000Z | /////////////////////////////////////////////////////////////////////////////
//
// File : QSettings.cpp
// Copyright : (c) David Harley 2010
// Project : qtHaskell
// Version : 1.1.4
// Modified : 2010-09-02 17:01:55
//
// Warning : this file is machine generated -... | 42.778195 | 126 | 0.663679 | keera-studios |
b2d4fab9e6c078fc07103647921f766fca99ec03 | 1,107 | cpp | C++ | Binary Trees/27 Find Largest subtree sum in a tree.cpp | i-am-grut/LoveBabbar-450-Questions | 08faaa70198363c6ac481a67c548e1e7e4c7c591 | [
"MIT"
] | 2 | 2021-06-25T07:26:23.000Z | 2022-01-28T22:24:34.000Z | Binary Trees/27 Find Largest subtree sum in a tree.cpp | i-am-grut/LoveBabbar-450-Questions | 08faaa70198363c6ac481a67c548e1e7e4c7c591 | [
"MIT"
] | null | null | null | Binary Trees/27 Find Largest subtree sum in a tree.cpp | i-am-grut/LoveBabbar-450-Questions | 08faaa70198363c6ac481a67c548e1e7e4c7c591 | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 27.675 | 93 | 0.499548 | i-am-grut |
b2d5f4e39747062ba061f9b0f5bbc64c087d9150 | 584 | cpp | C++ | Kernel/kernel.cpp | BEASTSM96/KiwifruitOS | 3b8f49cc09aa69339ae59eb3d93cabbd122e4f64 | [
"MIT"
] | null | null | null | Kernel/kernel.cpp | BEASTSM96/KiwifruitOS | 3b8f49cc09aa69339ae59eb3d93cabbd122e4f64 | [
"MIT"
] | null | null | null | Kernel/kernel.cpp | BEASTSM96/KiwifruitOS | 3b8f49cc09aa69339ae59eb3d93cabbd122e4f64 | [
"MIT"
] | null | null | null | #include "Common/uints.h"
#include "Common/Macros.h"
#if defined(__linux__)
#error "You are not using a cross-compiler!"
#endif
#if !defined(__i386__)
#error "This needs to be compiled with a ix86-elf compiler!"
#endif
using Constructor = void( * )( );
Constructor Constructors_begin;
Constructor Constructors_end;
... | 17.69697 | 84 | 0.674658 | BEASTSM96 |
b2dee4bd66ab06393b62ee953b269cf0e0980cd4 | 1,621 | hh | C++ | src/ArtificialViscosity/RadialViscosity.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/ArtificialViscosity/RadialViscosity.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/ArtificialViscosity/RadialViscosity.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | //---------------------------------Spheral++----------------------------------//
// A version of the Monaghan Gingold pairwise viscosity with a hard wired
// radial interaction.
//
// Created by $Author, $Date: 2003-07-31 15:44:32 -0700 (Thu, 31 Jul 2003) $
//------------------------------------------------------------... | 31.784314 | 80 | 0.567551 | jmikeowen |
b2e5d776d7624619d016265449628806d4483c0d | 5,449 | hh | C++ | src/sgvb_inference.hh | YPARK/fqtl | a1ced54a2b18f8ee66f39c62304c48f5522f7682 | [
"MIT"
] | 4 | 2017-06-15T12:05:02.000Z | 2017-11-16T11:11:45.000Z | src/sgvb_inference.hh | YPARK/fqtl | a1ced54a2b18f8ee66f39c62304c48f5522f7682 | [
"MIT"
] | 1 | 2022-02-22T16:41:36.000Z | 2022-02-22T16:41:36.000Z | src/sgvb_inference.hh | YPARK/fqtl | a1ced54a2b18f8ee66f39c62304c48f5522f7682 | [
"MIT"
] | null | null | null | // [[Rcpp::plugins(cpp14)]]
#include <Rcpp.h>
// [[Rcpp::depends(RcppEigen)]]
#include <RcppEigen.h>
// [[Rcpp::depends(RcppProgress)]]
#include <progress.hpp>
// [[Rcpp::plugins(openmp)]]
#include <omp.h>
#include "convergence.hh"
#include "tuple_util.hh"
#ifndef SGVB_INFERENCE_HH_
#define SGVB_INFERENCE_HH_
templa... | 32.242604 | 77 | 0.626904 | YPARK |
b2fbcacf7d3b1f00df83d40aa4a1e73de38e2ac5 | 2,420 | cpp | C++ | src/TestFieldParser.cpp | mserdarsanli/QuantumJson | 7aa8c7e17d2ff6677264edd20f54d7ee20821213 | [
"MIT"
] | 6 | 2016-09-28T21:05:46.000Z | 2019-03-26T16:58:49.000Z | src/TestFieldParser.cpp | mserdarsanli/QuantumJson | 7aa8c7e17d2ff6677264edd20f54d7ee20821213 | [
"MIT"
] | null | null | null | src/TestFieldParser.cpp | mserdarsanli/QuantumJson | 7aa8c7e17d2ff6677264edd20f54d7ee20821213 | [
"MIT"
] | null | null | null | // The MIT License (MIT)
//
// Copyright (c) 2017 Mustafa Serdar Sanli
//
// 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... | 35.072464 | 81 | 0.738843 | mserdarsanli |
b2ffe161b3f654625da28e30830d57e2f4860f58 | 2,942 | cpp | C++ | src_smartcontract/lang_sql/sql_expression/SQLDistinctArgument.cpp | alinous-core/codable-cash | 32a86a152a146c592bcfd8cc712f4e8cb38ee1a0 | [
"MIT"
] | 1 | 2020-10-15T08:24:35.000Z | 2020-10-15T08:24:35.000Z | src_smartcontract/lang_sql/sql_expression/SQLDistinctArgument.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | null | null | null | src_smartcontract/lang_sql/sql_expression/SQLDistinctArgument.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | null | null | null | /*
* SQLDistinctArgument.cpp
*
* Created on: 2021/11/02
* Author: iizuka
*/
#include "lang_sql/sql_expression/SQLDistinctArgument.h"
#include "engine/sc_analyze/AnalyzedType.h"
#include "scan_select/scan_columns/ScanColumnHolder.h"
#include "scan_select/scan_planner/base/SelectScanPlanner.h"
#include "vm... | 25.362069 | 114 | 0.774983 | alinous-core |
6504bb505805592f60ef3a76d8045a71cc6cbf21 | 8,980 | cc | C++ | src/reader/tag/vorbis_ogg.cc | jiajen/mp3edit | 0517fd54359b25bb0fd4e015833d51ab8183d884 | [
"MIT"
] | null | null | null | src/reader/tag/vorbis_ogg.cc | jiajen/mp3edit | 0517fd54359b25bb0fd4e015833d51ab8183d884 | [
"MIT"
] | null | null | null | src/reader/tag/vorbis_ogg.cc | jiajen/mp3edit | 0517fd54359b25bb0fd4e015833d51ab8183d884 | [
"MIT"
] | null | null | null | #include "mp3edit/src/reader/tag/vorbis_ogg.h"
#include <cstring>
#include <stdexcept>
#include "mp3edit/src/reader/tag/vorbis_shared.h"
#include "mp3edit/src/reader/utility.h"
namespace Mp3Edit {
namespace ReaderTag {
namespace VorbisOgg {
namespace {
using Filesystem::readBytes;
const int kFirstPageLength = 58... | 38.376068 | 80 | 0.704677 | jiajen |
65096c18c6d7b80615031f0a20b0945a5b308f74 | 1,338 | hh | C++ | src/fi/issue_execute_fault.hh | ramirocf/gem5-pipe | 3eca35c39f72b2bbb9293d10ec8d568c326e2886 | [
"BSD-3-Clause"
] | null | null | null | src/fi/issue_execute_fault.hh | ramirocf/gem5-pipe | 3eca35c39f72b2bbb9293d10ec8d568c326e2886 | [
"BSD-3-Clause"
] | null | null | null | src/fi/issue_execute_fault.hh | ramirocf/gem5-pipe | 3eca35c39f72b2bbb9293d10ec8d568c326e2886 | [
"BSD-3-Clause"
] | null | null | null | #ifndef __ISSUE_EXECUTE_FAULT_HH__
#define __ISSUE_EXECUTE_FAULT_HH__
#include "config/the_isa.hh"
#include "base/types.hh"
#include "fi/rename_issue_fault.hh"
#include "fi/faultq.hh"
#include "cpu/op_class.hh"
/*
* Inject a fault into the issue to execute stage pipeline register
*/
class Issue_ExecuteFault : pub... | 22.3 | 126 | 0.758595 | ramirocf |
650d9e89a7e01c568ceb30f30fe847234bec796e | 1,678 | cpp | C++ | src/platform/file_watcher.cpp | Markovna/UbikEngine | b26d99a65dbad12d7cd64ca8b562e4cea25c4c93 | [
"MIT"
] | 1 | 2021-07-05T11:50:09.000Z | 2021-07-05T11:50:09.000Z | src/platform/file_watcher.cpp | Markovna/UbikEngine | b26d99a65dbad12d7cd64ca8b562e4cea25c4c93 | [
"MIT"
] | null | null | null | src/platform/file_watcher.cpp | Markovna/UbikEngine | b26d99a65dbad12d7cd64ca8b562e4cea25c4c93 | [
"MIT"
] | null | null | null | #include "file_watcher.h"
#include <efsw/efsw.hpp>
class update_listener : public efsw::FileWatchListener {
public:
using event_t = event<const std::string&, const std::string&, file_action, const std::string&>;
public:
explicit update_listener(event_t& event) : event_(event) {}
void handleFileAction( efsw:... | 27.508197 | 155 | 0.679976 | Markovna |
65176460e38e05b218d0e04975ba71aedc3bcca1 | 3,825 | hpp | C++ | smacc2/include/smacc2/smacc_asynchronous_client_behavior.hpp | reelrbtx/SMACC2 | ac61cb1599f215fd9f0927247596796fc53f82bf | [
"Apache-2.0"
] | 48 | 2021-05-28T01:33:20.000Z | 2022-03-24T03:16:03.000Z | smacc2/include/smacc2/smacc_asynchronous_client_behavior.hpp | reelrbtx/SMACC2 | ac61cb1599f215fd9f0927247596796fc53f82bf | [
"Apache-2.0"
] | 75 | 2021-06-25T22:11:21.000Z | 2022-03-30T13:05:38.000Z | smacc2/include/smacc2/smacc_asynchronous_client_behavior.hpp | reelrbtx/SMACC2 | ac61cb1599f215fd9f0927247596796fc53f82bf | [
"Apache-2.0"
] | 14 | 2021-06-16T12:10:57.000Z | 2022-03-01T18:23:27.000Z | // Copyright 2021 RobosoftAI Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | 37.871287 | 140 | 0.727059 | reelrbtx |
fb91c6ccafcec2c74e1938730669cbd196bd5546 | 11,052 | cpp | C++ | src/example/TChem_IgnitionZeroD.cpp | kyungjoo-kim/TChem | 69915ca8de71df9a6a463aae45c5bd6db31646bc | [
"BSD-2-Clause"
] | null | null | null | src/example/TChem_IgnitionZeroD.cpp | kyungjoo-kim/TChem | 69915ca8de71df9a6a463aae45c5bd6db31646bc | [
"BSD-2-Clause"
] | null | null | null | src/example/TChem_IgnitionZeroD.cpp | kyungjoo-kim/TChem | 69915ca8de71df9a6a463aae45c5bd6db31646bc | [
"BSD-2-Clause"
] | 1 | 2022-02-26T18:04:44.000Z | 2022-02-26T18:04:44.000Z | /* =====================================================================================
TChem version 2.0
Copyright (2020) NTESS
https://github.com/sandialabs/TChem
Copyright 2020 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Governme... | 38.778947 | 88 | 0.653275 | kyungjoo-kim |
fb94546df2295bc1e1a19662e32217782d27bf39 | 8,509 | cpp | C++ | pure_pursuit_core/test/AckermannSteeringControllerTest.cpp | Idate96/se2_navigation | 0fabe002742add5e4d716776b13704aa9c1aa339 | [
"BSD-3-Clause"
] | 216 | 2020-04-14T22:32:45.000Z | 2022-03-30T17:56:12.000Z | pure_pursuit_core/test/AckermannSteeringControllerTest.cpp | Idate96/se2_navigation | 0fabe002742add5e4d716776b13704aa9c1aa339 | [
"BSD-3-Clause"
] | 5 | 2020-09-23T08:41:38.000Z | 2021-11-11T09:58:00.000Z | pure_pursuit_core/test/AckermannSteeringControllerTest.cpp | Idate96/se2_navigation | 0fabe002742add5e4d716776b13704aa9c1aa339 | [
"BSD-3-Clause"
] | 56 | 2020-04-29T00:26:20.000Z | 2022-03-30T17:27:55.000Z | /*
* CreatorsTest.cpp
*
* Created on: Mar 25, 2020
* Author: jelavice
*/
#include <gtest/gtest.h>
// Math
#include <cmath>
#include "test_helpers.hpp"
#include "pure_pursuit_core/heading_control/AckermannSteeringController.hpp"
namespace ppt = pure_pursuit_test;
namespace pp = pure_pursuit;
using Solution... | 51.259036 | 100 | 0.772006 | Idate96 |
fb988ee99f0bc8a8c7964cdf7e508077564db3f3 | 4,966 | cpp | C++ | src/abstract.cpp | ratanasv/3dlic | a128cd3a9bd86c9bbafa09ff150096163662d041 | [
"Apache-2.0"
] | 1 | 2022-03-02T07:08:40.000Z | 2022-03-02T07:08:40.000Z | src/abstract.cpp | ratanasv/3dlic | a128cd3a9bd86c9bbafa09ff150096163662d041 | [
"Apache-2.0"
] | null | null | null | src/abstract.cpp | ratanasv/3dlic | a128cd3a9bd86c9bbafa09ff150096163662d041 | [
"Apache-2.0"
] | null | null | null | #include "StdAfx.h"
#include "abstract.h"
namespace vir{
Abstract::Abstract( const char* value )
{
set(value);
}
Abstract::Abstract( int value )
{
set(value);
}
Abstract::Abstract( bool value )
{
set(value);
}
Abstract::Abstract( float value )
{
set(value);
}
Abstract::Abstract(const Abstra... | 18.190476 | 64 | 0.621426 | ratanasv |
fb9b5e95c1de897cc58baef6968393d0ab11ee6a | 1,023 | cpp | C++ | src/Private/AnimSceneActions/FinishAllActiveActionsAction.cpp | heltena/KYEngine | 4ccb89d0b20683feb245ffe85dd34b6ffdc42c8e | [
"MIT"
] | null | null | null | src/Private/AnimSceneActions/FinishAllActiveActionsAction.cpp | heltena/KYEngine | 4ccb89d0b20683feb245ffe85dd34b6ffdc42c8e | [
"MIT"
] | null | null | null | src/Private/AnimSceneActions/FinishAllActiveActionsAction.cpp | heltena/KYEngine | 4ccb89d0b20683feb245ffe85dd34b6ffdc42c8e | [
"MIT"
] | null | null | null | #include <KYEngine/SceneTimelineInfo.h>
#include <KYEngine/Private/AnimSceneActions/FinishAllActiveActionsAction.h>
#include <KYEngine/Utility/TiXmlHelper.h>
const std::string FinishAllActiveActionsAction::XML_NODE = "finish-all-active-actions";
FinishAllActiveActionsAction::FinishAllActiveActionsAction()
{
}
Finish... | 23.25 | 92 | 0.806452 | heltena |
fba17bf96053739438a7f7230ecb7bb93ba4f301 | 1,089 | hh | C++ | src/comm/detail/MpiTypes.nompi.i.hh | amandalund/celeritas | c631594b00c040d5eb4418fa2129f88c01e29316 | [
"Apache-2.0",
"MIT"
] | 22 | 2020-03-31T14:18:22.000Z | 2022-01-10T09:43:06.000Z | src/comm/detail/MpiTypes.nompi.i.hh | amandalund/celeritas | c631594b00c040d5eb4418fa2129f88c01e29316 | [
"Apache-2.0",
"MIT"
] | 261 | 2020-04-29T15:14:29.000Z | 2022-03-31T19:07:14.000Z | src/comm/detail/MpiTypes.nompi.i.hh | amandalund/celeritas | c631594b00c040d5eb4418fa2129f88c01e29316 | [
"Apache-2.0",
"MIT"
] | 15 | 2020-05-01T19:47:19.000Z | 2021-12-25T06:12:09.000Z | //----------------------------------*-C++-*----------------------------------//
// Copyright 2020 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... | 23.673913 | 79 | 0.438935 | amandalund |
fba9ae34526cb9466c6a46ac28f3cdca5e98de01 | 252 | cpp | C++ | libs/device/src/Device.cpp | romz-pl/romz-btree | 8f0634fa68c9c3245e53c81d100c1cf7a0bcac41 | [
"Apache-2.0"
] | null | null | null | libs/device/src/Device.cpp | romz-pl/romz-btree | 8f0634fa68c9c3245e53c81d100c1cf7a0bcac41 | [
"Apache-2.0"
] | null | null | null | libs/device/src/Device.cpp | romz-pl/romz-btree | 8f0634fa68c9c3245e53c81d100c1cf7a0bcac41 | [
"Apache-2.0"
] | null | null | null | #include <romz/device/Device.h>
namespace romz {
Device::Device(const EnvConfig &config_)
: config(config_) {
}
// virtual destructor
Device::~Device() = default;
std::size_t Device::page_size() const {
return config.page_size_bytes;
}
}
| 14 | 40 | 0.694444 | romz-pl |
fbab1bec86fffc22aced2ad44ee2e26785b26863 | 1,294 | cpp | C++ | c++/codeforces/A.cpp | 08pixels/juizes-online | 7202eeaed6886e8ff33fc2031c213348043d5909 | [
"Apache-2.0"
] | 1 | 2020-06-23T06:23:03.000Z | 2020-06-23T06:23:03.000Z | c++/codeforces/A.cpp | 08pixels/juizes-online | 7202eeaed6886e8ff33fc2031c213348043d5909 | [
"Apache-2.0"
] | null | null | null | c++/codeforces/A.cpp | 08pixels/juizes-online | 7202eeaed6886e8ff33fc2031c213348043d5909 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
#define MAX 2100000
using namespace std;
typedef struct {
int x,y,z;
}node;
char str[1000006];
int o[MAX], c[MAX], v[MAX];
void build(int ind, int i, int j)
{
if(j == i) {
if(str[i] == '(')
o[ind] = 1;
else
c[ind] = 1;
} else {
int mid = (i+j) >> 1;
build(2 * ind, i, mid);... | 16.589744 | 54 | 0.486862 | 08pixels |
fbb1757c90e442b4c0583a48b85e0d7736d0298c | 9,888 | cpp | C++ | src/core/contract/ServerContract.cpp | da2ce7/opentxs | 03a61c7a65b1dc27ffaa13da1adc053d67ec0ab0 | [
"MIT"
] | null | null | null | src/core/contract/ServerContract.cpp | da2ce7/opentxs | 03a61c7a65b1dc27ffaa13da1adc053d67ec0ab0 | [
"MIT"
] | null | null | null | src/core/contract/ServerContract.cpp | da2ce7/opentxs | 03a61c7a65b1dc27ffaa13da1adc053d67ec0ab0 | [
"MIT"
] | null | null | null | /************************************************************
*
* OPEN TRANSACTIONS
*
* Financial Cryptography and Digital Cash
* Library, Protocol, API, Server, CLI, GUI
*
* -- Anonymous Numbered Accounts.
* -- Untraceable Digital Cash.
* -- Triple-Signed Receipts... | 26.15873 | 78 | 0.611954 | da2ce7 |
fbb34e5525b20460997535b04f32c00bfa6b8604 | 482 | cpp | C++ | src/detail/Library.cpp | GPMueller/mwe-cpp-exception | 79836bf9a5d895f92051a8ce9d4f484bff600b35 | [
"MIT"
] | 21 | 2017-10-25T20:41:14.000Z | 2022-01-20T10:11:43.000Z | src/detail/Library.cpp | GPMueller/mwe-cpp-exception | 79836bf9a5d895f92051a8ce9d4f484bff600b35 | [
"MIT"
] | 1 | 2018-09-18T07:44:16.000Z | 2019-12-12T12:30:32.000Z | src/detail/Library.cpp | GPMueller/mwe-cpp-exception | 79836bf9a5d895f92051a8ce9d4f484bff600b35 | [
"MIT"
] | 3 | 2021-06-24T06:26:22.000Z | 2021-11-09T20:43:46.000Z | #include <detail/Library.hpp>
#include <detail/Exception.hpp>
namespace mylib
{
namespace detail
{
void library_function()
try
{
// some erronous code which throws an exception...
// let's pretend we weren't able to open a file
std::string filename = "nonexistent.txt";
libra... | 22.952381 | 66 | 0.620332 | GPMueller |
fbb50a8abf7d69dcdbd162df357ec8d74dad387c | 1,022 | hpp | C++ | xenium/backoff.hpp | dpayne/xenium | 5336adf2089c3d263bf7e36cfc4fc2e11ee1ad7c | [
"MIT"
] | 1 | 2021-01-03T07:18:27.000Z | 2021-01-03T07:18:27.000Z | xenium/backoff.hpp | dpayne/xenium | 5336adf2089c3d263bf7e36cfc4fc2e11ee1ad7c | [
"MIT"
] | null | null | null | xenium/backoff.hpp | dpayne/xenium | 5336adf2089c3d263bf7e36cfc4fc2e11ee1ad7c | [
"MIT"
] | null | null | null | //
// Copyright (c) 2018-2020 Manuel Pöter.
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
//
#ifndef XENIUM_BACKOFF_HPP
#define XENIUM_BACKOFF_HPP
#include <xenium/detail/port.hpp>
#include <algorithm>
#ifdef XENIUM_ARCH_X86
#include <emmintrin.h>
... | 19.283019 | 117 | 0.65362 | dpayne |
fbb638a66cc7ea936d6e89f652f4c8efdeff523a | 10,978 | cpp | C++ | soundgen/irrKlang/mxsoundgenirrklang.cpp | arturocepeda/Modus | 849c9ada0e8bf7803db6e1b5c6098ab5898bc430 | [
"MIT"
] | 2 | 2015-04-08T21:03:09.000Z | 2016-03-20T17:46:31.000Z | soundgen/irrKlang/mxsoundgenirrklang.cpp | arturocepeda/Modus | 849c9ada0e8bf7803db6e1b5c6098ab5898bc430 | [
"MIT"
] | null | null | null | soundgen/irrKlang/mxsoundgenirrklang.cpp | arturocepeda/Modus | 849c9ada0e8bf7803db6e1b5c6098ab5898bc430 | [
"MIT"
] | 2 | 2015-08-18T08:59:07.000Z | 2021-04-02T23:03:48.000Z |
////////////////////////////////////////////////////////////////////////
//
// Modus
// C++ Music Library
// [Sound Generator]
//
// Copyright (c) 2012-2015 Arturo Cepeda
//
// --------------------------------------------------------------------
//
// Audio engine:
//
// irrKlang
// Copyright (c) Nikolaus Geb... | 30.7507 | 132 | 0.633995 | arturocepeda |
fbb6ec98cf6d9adafeeb5cc5096420cb38576ea0 | 35,730 | cpp | C++ | src/Loader.cpp | vadosnaprimer/desktop-m3g | fa04787e8609cd0f4e63defc7f2c669c8cc78d1f | [
"MIT"
] | 2 | 2019-05-14T08:14:15.000Z | 2021-01-19T13:28:38.000Z | src/Loader.cpp | vadosnaprimer/desktop-m3g | fa04787e8609cd0f4e63defc7f2c669c8cc78d1f | [
"MIT"
] | null | null | null | src/Loader.cpp | vadosnaprimer/desktop-m3g | fa04787e8609cd0f4e63defc7f2c669c8cc78d1f | [
"MIT"
] | null | null | null | #include "m3g/m3g.hpp"
#include "m3g/stb_image_reader.hpp"
#include "m3g/Config.hpp"
#include "m3g/M3GReader.hpp"
#include <iostream>
#include <fstream>
#include <algorithm>
#include <cstring>
using namespace std;
using namespace m3g;
// M3G(JSR184) identifier
const unsigned char m3g_sig[12] = {0xab,0x4a,0x53,0x52,0x3... | 34.126074 | 129 | 0.622726 | vadosnaprimer |
fbba48d6e7f4d8d6e5d9fa82409641de87fa13ab | 8,676 | cpp | C++ | latentred/firmware/UART.cpp | azonenberg/latentpacket | af5612618f9704ecea3779bcd061496053a6d48a | [
"BSD-3-Clause"
] | 14 | 2018-06-11T21:49:09.000Z | 2021-12-07T07:29:23.000Z | latentred/firmware/UART.cpp | azonenberg/latentpacket | af5612618f9704ecea3779bcd061496053a6d48a | [
"BSD-3-Clause"
] | 2 | 2019-08-18T07:14:42.000Z | 2019-08-18T08:56:11.000Z | latentred/firmware/UART.cpp | azonenberg/latentpacket | af5612618f9704ecea3779bcd061496053a6d48a | [
"BSD-3-Clause"
] | 3 | 2019-01-15T13:15:16.000Z | 2019-08-18T09:09:39.000Z | /***********************************************************************************************************************
* *
* LATENTPACKET v0.1 ... | 30.657244 | 120 | 0.483402 | azonenberg |
fbbaf5e0074e10d2851ce506350c252f31cf638f | 12,884 | cc | C++ | src/MapMatching/patArcTransition.cc | godosou/smaroute | e2ccc9492dff54c8ef5c74d5309d2b06758ba342 | [
"MIT"
] | 4 | 2015-02-23T16:02:52.000Z | 2021-03-26T17:58:53.000Z | src/MapMatching/patArcTransition.cc | godosou/smaroute | e2ccc9492dff54c8ef5c74d5309d2b06758ba342 | [
"MIT"
] | null | null | null | src/MapMatching/patArcTransition.cc | godosou/smaroute | e2ccc9492dff54c8ef5c74d5309d2b06758ba342 | [
"MIT"
] | 5 | 2015-02-23T16:05:59.000Z | 2017-05-04T16:13:16.000Z | #include <fstream>
#include <gsl/gsl_integration.h>
#include "patConst.h"
#include<sstream>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_monte.h>
#include <gsl/gsl_monte_plain.h>
#include <gsl/gsl_monte_miser.h>
#include <gsl/gsl_monte_vegas.h>
#include "patErrMis... | 27.354565 | 157 | 0.689227 | godosou |
fbbf3598e6dccb2caa5016b86431d4f7f7c1bed3 | 533 | cpp | C++ | STL/pair_basic.cpp | SanatankrMishra/MITMuz2020 | e1d8007a0d3332ad32ce7aeba58780b7a6469442 | [
"MIT"
] | null | null | null | STL/pair_basic.cpp | SanatankrMishra/MITMuz2020 | e1d8007a0d3332ad32ce7aeba58780b7a6469442 | [
"MIT"
] | null | null | null | STL/pair_basic.cpp | SanatankrMishra/MITMuz2020 | e1d8007a0d3332ad32ce7aeba58780b7a6469442 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(){
pair<int,string> p , p1;
p = make_pair(2,"abc");
p1 = {2, "abcd"};
cout<< p.first << " " << p.second <<endl;
pair<int,string> &p2 = p;
p2.first = 3;
cout<< p.first << " " << p.second <<endl;
pair<int,int> p_array[3];
p_arra... | 20.5 | 66 | 0.49531 | SanatankrMishra |
fbbf5a86d8fb0570119c47d6c27baa37c4fad45f | 3,123 | hpp | C++ | spacelogs.hpp | SpaceCraftTR/SpaceLogs | f913e85bf5940366359c698d6b4c96dd81285d7a | [
"MIT"
] | 1 | 2021-02-23T21:36:40.000Z | 2021-02-23T21:36:40.000Z | spacelogs.hpp | SpaceCraftTR/SpaceLogs | f913e85bf5940366359c698d6b4c96dd81285d7a | [
"MIT"
] | null | null | null | spacelogs.hpp | SpaceCraftTR/SpaceLogs | f913e85bf5940366359c698d6b4c96dd81285d7a | [
"MIT"
] | null | null | null | /*
SpaceLogs
SpaceLogs is an easy to use logging library for C++ developers.
If you don't want to get your hands dirty with date formats, SpaceLogs is here to save your back!
Copyright (c) 2021 - SpaceCraft
Distributed under terms of the MIT licence.
*/
#pragma once
#include <string>
#include <fstream>
#include <... | 31.867347 | 184 | 0.57765 | SpaceCraftTR |
fbc20a97978ac17e8f1a132d84d7c5be559c6742 | 2,239 | cc | C++ | squid/squid3-3.3.8.spaceify/src/tests/stub_tools.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | 4 | 2015-01-20T15:25:34.000Z | 2017-12-20T06:47:42.000Z | squid/squid3-3.3.8.spaceify/src/tests/stub_tools.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | 4 | 2015-05-15T09:32:55.000Z | 2016-02-18T13:43:31.000Z | squid/squid3-3.3.8.spaceify/src/tests/stub_tools.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | null | null | null | #include "squid.h"
#include "tools.h"
#define STUB_API "tools.cc"
#include "tests/STUB.h"
int DebugSignal = -1;
void releaseServerSockets(void) STUB
char * dead_msg(void) STUB_RETVAL(NULL)
void mail_warranty(void) STUB
void dumpMallocStats(void) STUB
void squid_getrusage(struct rusage *r) STUB
double rusage_cputime(s... | 32.449275 | 90 | 0.7749 | spaceify |
fbc3d8aeed409e96820c39d5d1e784bd40faac93 | 1,637 | hpp | C++ | src/backend/opencl/types/image2D_readwrite.hpp | wchang22/Nova | 3db1e8f8a0dea1dcdd3d3d02332534d5945e17bb | [
"MIT"
] | 21 | 2020-05-02T06:32:23.000Z | 2021-07-14T11:22:07.000Z | src/backend/opencl/types/image2D_readwrite.hpp | wchang22/Nova | 3db1e8f8a0dea1dcdd3d3d02332534d5945e17bb | [
"MIT"
] | null | null | null | src/backend/opencl/types/image2D_readwrite.hpp | wchang22/Nova | 3db1e8f8a0dea1dcdd3d3d02332534d5945e17bb | [
"MIT"
] | 1 | 2021-05-24T13:44:56.000Z | 2021-05-24T13:44:56.000Z | #ifndef OPENCL_IMAGE2D_READWRITE_HPP
#define OPENCL_IMAGE2D_READWRITE_HPP
#ifdef OPENCL_2
#include <CL/cl2.hpp>
#else
#ifdef __APPLE__
#include <OpenCL/cl.hpp>
#else
#include <CL/cl.hpp>
#endif
#endif
#include "backend/opencl/types/image2D.hpp"
namespace nova {
template <typename T>
class Image2DRea... | 24.073529 | 84 | 0.706781 | wchang22 |
fbcc0bf3cb8ef5d04bc1ba11d7cb0479f49359f5 | 647 | cpp | C++ | src/circular_buffer/private/unit_tests/main_unit_tests.cpp | rybcom/circular_buffer | 5cee33519bd5cd432bea4dd325913fb64ba93152 | [
"BSD-3-Clause"
] | null | null | null | src/circular_buffer/private/unit_tests/main_unit_tests.cpp | rybcom/circular_buffer | 5cee33519bd5cd432bea4dd325913fb64ba93152 | [
"BSD-3-Clause"
] | null | null | null | src/circular_buffer/private/unit_tests/main_unit_tests.cpp | rybcom/circular_buffer | 5cee33519bd5cd432bea4dd325913fb64ba93152 | [
"BSD-3-Clause"
] | null | null | null | #include "project_config.h"
#if RUN_AS_UNIT_TESTING() == true
#define CATCH_CONFIG_RUNNER
#include "catch.hpp"
struct Point
{
float x{ 0 };
float y{ 0 };
};
static bool operator==(Point const& point, Point const& point_b)
{
return (point.x == point_b.x) && (point.y == point_b.y);
}
static bool operator!=(Point ... | 17.026316 | 64 | 0.667697 | rybcom |
fbcd808eb203bbd96bcd4af6a958713da0101595 | 15,536 | cc | C++ | Kernel/Boundaries/PeriodicBoundary.cc | gustavo-castillo-bautista/Mercury | eeb402ccec8e487652229d4595c46ec84f6aefbb | [
"BSD-3-Clause"
] | null | null | null | Kernel/Boundaries/PeriodicBoundary.cc | gustavo-castillo-bautista/Mercury | eeb402ccec8e487652229d4595c46ec84f6aefbb | [
"BSD-3-Clause"
] | null | null | null | Kernel/Boundaries/PeriodicBoundary.cc | gustavo-castillo-bautista/Mercury | eeb402ccec8e487652229d4595c46ec84f6aefbb | [
"BSD-3-Clause"
] | null | null | null | //Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved.
//For the list of developers, see <http://www.MercuryDPM.org/Team>.
//
//Redistribution and use in source and binary forms, with or without
//modification, are permitted provid->d that the following conditions are met:
// * Redistributions... | 33.773913 | 120 | 0.701982 | gustavo-castillo-bautista |
fbd232b86ff3fdcc05731a6079327e3a0b2a03c2 | 2,102 | hpp | C++ | src/genericcomponent.hpp | nek0bit/LoopCube | 882296f32bfe3a8b1765950a9b8c9e24af75d009 | [
"MIT"
] | 9 | 2020-04-03T21:20:02.000Z | 2021-08-23T19:57:57.000Z | src/genericcomponent.hpp | nek0bit/LoopCube | 882296f32bfe3a8b1765950a9b8c9e24af75d009 | [
"MIT"
] | 2 | 2020-12-05T01:05:58.000Z | 2021-01-23T04:41:24.000Z | src/genericcomponent.hpp | nek0bit/LoopCube | 882296f32bfe3a8b1765950a9b8c9e24af75d009 | [
"MIT"
] | 4 | 2020-07-04T13:47:33.000Z | 2021-09-11T15:29:08.000Z | #pragma once
#include <functional>
#include <variant>
#include <glm/glm.hpp>
#include <cmath>
#include "margin.hpp"
#include "camera.hpp"
#include "generic.hpp"
#include "eventwrapper.hpp"
#include "graphics.hpp"
#include "transform.hpp"
#include "componenttypes.hpp"
enum component_size_t
{
SIZE_AUTO = -1,
SI... | 28.405405 | 137 | 0.636061 | nek0bit |
fbde78a2c0a18cd8a0b149fe1e43d016d784dbd9 | 57 | hpp | C++ | src/boost_fusion_algorithm_iteration_fold_fwd.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_fusion_algorithm_iteration_fold_fwd.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_fusion_algorithm_iteration_fold_fwd.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/fusion/algorithm/iteration/fold_fwd.hpp>
| 28.5 | 56 | 0.824561 | miathedev |
fbe72457c27be685c36473d4c044cf3c06b2be33 | 6,434 | cpp | C++ | samples/find_skills.cpp | robert-lindsey/WCRP | 7e46c02d430b5fdc7a13dda42cc965b87f640346 | [
"MIT"
] | 19 | 2015-11-02T01:28:57.000Z | 2022-03-31T06:14:46.000Z | samples/find_skills.cpp | wpmarinho/WCRP | 7e46c02d430b5fdc7a13dda42cc965b87f640346 | [
"MIT"
] | 1 | 2017-04-13T08:18:40.000Z | 2017-04-13T08:18:40.000Z | samples/find_skills.cpp | wpmarinho/WCRP | 7e46c02d430b5fdc7a13dda42cc965b87f640346 | [
"MIT"
] | 6 | 2016-11-08T02:18:47.000Z | 2020-12-20T20:18:05.000Z | /*
The MIT License (MIT)
Copyright (c) 2015 Robert Lindsey
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... | 42.328947 | 208 | 0.688685 | robert-lindsey |
fbeba41c6180654d034034683e1745858fbf062e | 4,556 | cpp | C++ | examples/simple_examples/SimpleExamples.cpp | vsemenyakin/cpprt | e9c34bb89f470e148e531b70359acd2d2f9d6730 | [
"MIT-0",
"MIT"
] | 4 | 2016-04-20T09:40:11.000Z | 2017-05-03T16:10:21.000Z | examples/simple_examples/SimpleExamples.cpp | vsemenyakin/cpprt | e9c34bb89f470e148e531b70359acd2d2f9d6730 | [
"MIT-0",
"MIT"
] | null | null | null | examples/simple_examples/SimpleExamples.cpp | vsemenyakin/cpprt | e9c34bb89f470e148e531b70359acd2d2f9d6730 | [
"MIT-0",
"MIT"
] | 1 | 2022-02-14T16:08:44.000Z | 2022-02-14T16:08:44.000Z | ////////////////////////////////////////////////////////////////////////////////
//
// SimpleExamples.cpp
//
// Copyright (c) 2016 Semenyakin Vladimir (semenyakinVS@gmail.com)
//
// Distributed under the MIT (See accompanying file LICENSE.txt or copy at
// https://opensource.org/licenses/MIT)
//
///////////////////////... | 22.333333 | 80 | 0.604039 | vsemenyakin |
fbef2e73b429e89c438fa94ed6d69603116738e3 | 543 | hpp | C++ | include/saci/qt/push_btn/detail/clicked.hpp | ricardocosme/saci | 2a6a134f63b6e69fde452e0fe9bb5acfd149a6e4 | [
"BSL-1.0"
] | 1 | 2020-07-29T20:42:58.000Z | 2020-07-29T20:42:58.000Z | include/saci/qt/push_btn/detail/clicked.hpp | ricardocosme/saci | 2a6a134f63b6e69fde452e0fe9bb5acfd149a6e4 | [
"BSL-1.0"
] | null | null | null | include/saci/qt/push_btn/detail/clicked.hpp | ricardocosme/saci | 2a6a134f63b6e69fde452e0fe9bb5acfd149a6e4 | [
"BSL-1.0"
] | null | null | null |
// Copyright Ricardo Calheiros de Miranda Cosme 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <coruja/support/signal/signal.hpp>
#include <QObject>
namespace saci { namespace qt { names... | 20.884615 | 61 | 0.694291 | ricardocosme |
fbf0fd20244b9a436c76b3d15fb05eb9bfd0a876 | 3,559 | cpp | C++ | modules/gate_ops/arithmetic/test_arithmetic.cpp | ICHEC/QNLP | 2966c7f71e6979c7ddef62520c3749cf6473fabe | [
"Apache-2.0"
] | 29 | 2020-04-13T04:40:35.000Z | 2021-12-17T11:21:35.000Z | modules/gate_ops/arithmetic/test_arithmetic.cpp | ICHEC/QNLP | 2966c7f71e6979c7ddef62520c3749cf6473fabe | [
"Apache-2.0"
] | 6 | 2020-03-12T17:40:00.000Z | 2021-01-20T12:15:08.000Z | modules/gate_ops/arithmetic/test_arithmetic.cpp | ICHEC/QNLP | 2966c7f71e6979c7ddef62520c3749cf6473fabe | [
"Apache-2.0"
] | 9 | 2020-09-28T05:00:30.000Z | 2022-03-04T02:11:49.000Z | /**
* @file test_arithmetic.cpp
* @author Lee J. O'Riordan (lee.oriordan@ichec.ie)
* @brief Tests for quantum arithmetic using the (QFT) implementation.
* @version 0.1
* @date 2019-09-10
*
* @copyright Copyright (c) 2019
*
*/
//#define CATCH_CONFIG_RUNNER
//#define CATCH_CONFIG_MAIN
#include "catch2/catch.... | 33.261682 | 177 | 0.522338 | ICHEC |
fbf333c20937358a3fbfbca4d735273dfdc8cf57 | 876 | cpp | C++ | C++/HackerRank/mini-max-sum/src/main.cpp | cosmicraccoon/competitive-programming-sites | f7cf4f7fcb5e6c2515037fde87049cce44ddf3c3 | [
"MIT"
] | 1 | 2022-01-14T11:28:52.000Z | 2022-01-14T11:28:52.000Z | C++/HackerRank/mini-max-sum/src/main.cpp | cosmicraccoon/competitive-programming-sites | f7cf4f7fcb5e6c2515037fde87049cce44ddf3c3 | [
"MIT"
] | null | null | null | C++/HackerRank/mini-max-sum/src/main.cpp | cosmicraccoon/competitive-programming-sites | f7cf4f7fcb5e6c2515037fde87049cce44ddf3c3 | [
"MIT"
] | 1 | 2022-01-16T04:03:22.000Z | 2022-01-16T04:03:22.000Z | #include <cstdint>
#include <iostream>
#include <sstream>
#include <string_view>
#include <vector>
using namespace std;
void miniMaxSum(vector<int> arr);
int main() {
vector<int> arr1 = {1,2,3,4,5};
miniMaxSum(arr1);
vector<int> arr2 = {396285104, 573261094, 759641832, 819230764, 364801279};
miniMax... | 22.461538 | 79 | 0.554795 | cosmicraccoon |
fbf4da4195b971bab3ced48a59650ed1409c4af5 | 2,460 | cpp | C++ | src/gmail/errors/ErrorsErrorInfo.cpp | Vadimatorik/googleQt | 814ad6f695bb8e88d6a773e69fb8c188febaab00 | [
"MIT"
] | 24 | 2016-12-03T09:12:43.000Z | 2022-03-29T19:51:48.000Z | src/gmail/errors/ErrorsErrorInfo.cpp | Vadimatorik/googleQt | 814ad6f695bb8e88d6a773e69fb8c188febaab00 | [
"MIT"
] | 4 | 2016-12-03T09:14:42.000Z | 2022-03-29T22:02:21.000Z | src/gmail/errors/ErrorsErrorInfo.cpp | Vadimatorik/googleQt | 814ad6f695bb8e88d6a773e69fb8c188febaab00 | [
"MIT"
] | 7 | 2018-01-01T09:14:10.000Z | 2022-03-29T21:50:11.000Z | /**********************************************************
DO NOT EDIT
This file was generated from stone specification "errors"
Part of "Ardi - the organizer" project.
osoft4ardi@gmail.com
www.prokarpaty.net
***********************************************************/
#include "gmail/errors/ErrorsErrorInfo.h"
u... | 28.604651 | 128 | 0.662602 | Vadimatorik |
fbf720108d6eecac8dde98a078834605d0b3e9c3 | 21,560 | cpp | C++ | CalculatePIChudnovsky.cpp | grevutiu-gabriel/calcpi-code | 4e2cbb9fbeeb8ed54167ee5f98e09ba34c2fa730 | [
"MIT"
] | null | null | null | CalculatePIChudnovsky.cpp | grevutiu-gabriel/calcpi-code | 4e2cbb9fbeeb8ed54167ee5f98e09ba34c2fa730 | [
"MIT"
] | null | null | null | CalculatePIChudnovsky.cpp | grevutiu-gabriel/calcpi-code | 4e2cbb9fbeeb8ed54167ee5f98e09ba34c2fa730 | [
"MIT"
] | null | null | null | /* Pi computation using Chudnovsky's algorithm.
* Copyright 2002, 2005 Hanhong Xue (macroxue at yahoo dot com)
* Slightly modified 2005 by Torbjorn Granlund to allow more than 2G
digits to be computed.
* Slightly adjusted to this framework and C++-ified by Roman Hiestand.
* Redistribution and use in... | 25.975904 | 151 | 0.594573 | grevutiu-gabriel |
fbf90592be1f53883bb92c67228c0a20b858c2dd | 448 | cpp | C++ | vector/local.cpp | learnMachining/cplus2test | 8cc0048627724bb967f27d5cd9860dbb5804a7d9 | [
"Apache-2.0"
] | null | null | null | vector/local.cpp | learnMachining/cplus2test | 8cc0048627724bb967f27d5cd9860dbb5804a7d9 | [
"Apache-2.0"
] | null | null | null | vector/local.cpp | learnMachining/cplus2test | 8cc0048627724bb967f27d5cd9860dbb5804a7d9 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std;
vector<int>& local(int tail){
vector<int> ret;
ret.push_back(tail);
return ret;
}
void local2(vector<int>& ret){
vector<int> tmp;
tmp.push_back(100);
ret=tmp;
}
int main(){
vector<int> ret = local(3);
for(int i=0;i<ret.size();i++){
cout<<ret[i]<<"\t... | 14 | 32 | 0.616071 | learnMachining |
220207339b9b1875c3927fda39ba5bc6bbba2e41 | 252 | cpp | C++ | Exercicios/Exercicios C - Uri #2/1142.cpp | yunger7/SENAI | 85093e0ce3ed83e50dcd570d7c42b1dda4111929 | [
"MIT"
] | 1 | 2020-09-07T12:19:27.000Z | 2020-09-07T12:19:27.000Z | Exercicios/Exercicios C - Uri #2/1142.cpp | yunger7/SENAI | 85093e0ce3ed83e50dcd570d7c42b1dda4111929 | [
"MIT"
] | null | null | null | Exercicios/Exercicios C - Uri #2/1142.cpp | yunger7/SENAI | 85093e0ce3ed83e50dcd570d7c42b1dda4111929 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int n, cont, cont2=1;
scanf("%d",&n);
for(cont=1; cont <= n; cont++){
for(int c=1; c <= 3; c++){
printf("%d ",cont2);
cont2++;
}
printf("PUM\n");
cont2++;
}
return 0;
}
| 11.454545 | 32 | 0.503968 | yunger7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.