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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e9195c62e6f80681cacee7d40079aa49e1f7115a | 1,441 | cpp | C++ | test/proto_test.cpp | irl-game/irl | ba507a93371ab172b705c1ede8cd062123fc96f5 | [
"MIT"
] | null | null | null | test/proto_test.cpp | irl-game/irl | ba507a93371ab172b705c1ede8cd062123fc96f5 | [
"MIT"
] | null | null | null | test/proto_test.cpp | irl-game/irl | ba507a93371ab172b705c1ede8cd062123fc96f5 | [
"MIT"
] | null | null | null | #include <catch2/catch.hpp>
#include <ser/macro.hpp>
#include <ser/overloaded.hpp>
#include <ser/proto.hpp>
#include <ser/ser.hpp>
#include <sstream>
class A
{
public:
int a = 0;
#define SER_PROPERTY_LIST SER_PROPERTY(a);
SER_DEFINE_PROPERTIES()
#undef SER_PROPERTY_LIST
};
class B
{
public:
int a = 0;
#define S... | 21.191176 | 71 | 0.617627 | irl-game |
e9196783db929d2a6360702c0d7083201818f5a4 | 442 | hpp | C++ | include/util.hpp | adi-g15/saras | a9d5f8c4b2d4da4b14e025329dd5654b0044aef6 | [
"Unlicense"
] | 5 | 2021-11-26T09:43:45.000Z | 2021-12-01T19:52:21.000Z | include/util.hpp | adi-g15/saras | a9d5f8c4b2d4da4b14e025329dd5654b0044aef6 | [
"Unlicense"
] | null | null | null | include/util.hpp | adi-g15/saras | a9d5f8c4b2d4da4b14e025329dd5654b0044aef6 | [
"Unlicense"
] | 2 | 2021-11-26T11:16:06.000Z | 2021-12-01T19:52:09.000Z | #pragma once
#include <functional>
#include <memory>
// https://arne-mertz.de/2018/05/overload-build-a-variant-visitor-on-the-fly/
// Common pattern to allow overloading lambdas for use in std::visit
// https://devdocs.io/cpp/utility/variant/visit
template <class... Ts> struct overload : Ts... { using Ts::operator()... | 31.571429 | 77 | 0.696833 | adi-g15 |
e91e1ac4050bbd8b2c576a48cb2fda8ea9f074c8 | 167,305 | cpp | C++ | srcmglplot/src/exec.cpp | jerrykrinock/IupCocoaTouch | 861248b0814a5ec75cf948ed9518ac812435dd31 | [
"MIT"
] | 1 | 2016-01-13T03:42:23.000Z | 2016-01-13T03:42:23.000Z | srcmglplot/src/exec.cpp | jerrykrinock/IupCocoaTouch | 861248b0814a5ec75cf948ed9518ac812435dd31 | [
"MIT"
] | null | null | null | srcmglplot/src/exec.cpp | jerrykrinock/IupCocoaTouch | 861248b0814a5ec75cf948ed9518ac812435dd31 | [
"MIT"
] | null | null | null | /***************************************************************************
* exec.cpp is part of Math Graphic Library
* Copyright (C) 2007-2014 Alexey Balakin <mathgl.abalakin@gmail.ru> *
* *
* This program is free software; you can r... | 52.611635 | 242 | 0.512627 | jerrykrinock |
e91fbc48d2a68920ebd83b559ee67b3851383bb9 | 8,486 | cc | C++ | gui/components/gui_scrollpane.cc | 128na/simutrans | 2518159a78100024e61b95b28510b2748e3f63d5 | [
"Artistic-1.0"
] | null | null | null | gui/components/gui_scrollpane.cc | 128na/simutrans | 2518159a78100024e61b95b28510b2748e3f63d5 | [
"Artistic-1.0"
] | null | null | null | gui/components/gui_scrollpane.cc | 128na/simutrans | 2518159a78100024e61b95b28510b2748e3f63d5 | [
"Artistic-1.0"
] | null | null | null | /*
* This file is part of the Simutrans project under the Artistic License.
* (see LICENSE.txt)
*/
#include "../../simdebug.h"
#include "../gui_frame.h"
#include "gui_scrollpane.h"
#include "gui_scrollbar.h"
#include "gui_button.h"
#include "../../dataobj/loadsave.h"
#include "../../display/simgraph.h"
#include "... | 29.061644 | 172 | 0.702922 | 128na |
11e6601169612607f67a029459f086e4cb0d56df | 2,657 | cpp | C++ | plugins/blockvault_client_plugin/blockvault_client_plugin.cpp | forfreeday/eos | 11d35f0f934402321853119d36caeb7022813743 | [
"Apache-2.0",
"MIT"
] | 13,162 | 2017-05-29T22:08:27.000Z | 2022-03-29T19:25:05.000Z | plugins/blockvault_client_plugin/blockvault_client_plugin.cpp | forfreeday/eos | 11d35f0f934402321853119d36caeb7022813743 | [
"Apache-2.0",
"MIT"
] | 6,450 | 2017-05-30T14:41:50.000Z | 2022-03-30T11:30:04.000Z | plugins/blockvault_client_plugin/blockvault_client_plugin.cpp | forfreeday/eos | 11d35f0f934402321853119d36caeb7022813743 | [
"Apache-2.0",
"MIT"
] | 4,491 | 2017-05-29T22:08:32.000Z | 2022-03-29T07:09:52.000Z | #include "block_vault_impl.hpp"
#include "zlib_compressor.hpp"
#include <boost/algorithm/string/predicate.hpp>
#include <eosio/blockvault_client_plugin/blockvault_client_plugin.hpp> // eosio::blockvault_client_plugin
#include <fc/log/log_message.hpp> // FC_LOG_MESSAGE
#include <vect... | 37.422535 | 161 | 0.697027 | forfreeday |
11e7002077089b9cba4b2df7e80595ad0642cb5c | 560 | cpp | C++ | renderer/core/src/core/ogl/uniforms/OpenGLDoubleUniformVariable.cpp | wookie41/blitz | 7f587bee9b6189c32f0f60c69316bc8deca23c16 | [
"MIT"
] | 1 | 2020-01-04T21:04:52.000Z | 2020-01-04T21:04:52.000Z | renderer/core/src/core/ogl/uniforms/OpenGLDoubleUniformVariable.cpp | wookie41/blitz | 7f587bee9b6189c32f0f60c69316bc8deca23c16 | [
"MIT"
] | 15 | 2019-08-26T20:54:31.000Z | 2020-03-15T14:11:44.000Z | renderer/core/src/core/ogl/uniforms/OpenGLDoubleUniformVariable.cpp | wookie41/blitz | 7f587bee9b6189c32f0f60c69316bc8deca23c16 | [
"MIT"
] | null | null | null | #include <core/ogl/uniforms/OpenGLDoubleUniformVariable.h>
namespace blitz::ogl
{
void OpenGLDoubleUniformVariable::bind()
{
glUniform1d(variableLocation, value);
dirty = false;
}
DataType OpenGLDoubleUniformVariable::getType() const { return DataType::INT; }
OpenGLDoubleUniformVa... | 32.941176 | 141 | 0.735714 | wookie41 |
11e913ba2260647c8c982a20f90ca796da76069c | 632 | cpp | C++ | C_C++_Projects/1_C++_Codes/parkpaths/parkpaths.cpp | sunjerry019/RandomCodes | 4402604aaeee63bb1ce6fa962c496b438bb17e50 | [
"MIT"
] | null | null | null | C_C++_Projects/1_C++_Codes/parkpaths/parkpaths.cpp | sunjerry019/RandomCodes | 4402604aaeee63bb1ce6fa962c496b438bb17e50 | [
"MIT"
] | null | null | null | C_C++_Projects/1_C++_Codes/parkpaths/parkpaths.cpp | sunjerry019/RandomCodes | 4402604aaeee63bb1ce6fa962c496b438bb17e50 | [
"MIT"
] | null | null | null | #include "parkpaths.h"
#include <bits/stdc++.h>
using namespace std;
int cost = 0;
map<char, int> letters;
int pairs = 0;
int pairarr[26][26] = {0};
int parkpaths(string s) {
int length = s.length();
for(int i=0; i<length; i++)
{
if(letters[s[i]]) letters[s[i]] += 1;
else letters[s[i]] =... | 19.151515 | 45 | 0.435127 | sunjerry019 |
11ec85cee486384f4f9923177c9cfb5e3b403249 | 9,979 | cpp | C++ | src/Compact10Filter.cpp | emathew1/MPI_3DCompact | 1945eabdc240e8754c9ea356ba954683dee0149f | [
"MIT"
] | 2 | 2021-01-14T21:13:53.000Z | 2022-01-16T23:03:43.000Z | src/Compact10Filter.cpp | emathew1/MPI_3DCompact | 1945eabdc240e8754c9ea356ba954683dee0149f | [
"MIT"
] | null | null | null | src/Compact10Filter.cpp | emathew1/MPI_3DCompact | 1945eabdc240e8754c9ea356ba954683dee0149f | [
"MIT"
] | 3 | 2018-11-17T21:24:57.000Z | 2020-08-02T03:19:42.000Z | #include "Compact10Filter.hpp"
using namespace std;
void Compact10Filter::multRHSPeriodicFilter(double *phi, double *RHSvec){
double cc0 = a0_10;
double cc1 = a1_10/2.0;
double cc2 = a2_10/2.0;
double cc3 = a3_10/2.0;
double cc4 = a4_10/2.0;
double cc5 = a5_10/2.0;
for(int ip = 0; ip < N... | 39.442688 | 104 | 0.501253 | emathew1 |
11ed411b284c4344029f1d28b2b9acd8141e15f5 | 568 | cpp | C++ | main/dad/Link.cpp | irumsey/ijrumsey.com | 3dcf909eada5a09d39e6bf89a1f0bf1fa7328789 | [
"MIT"
] | null | null | null | main/dad/Link.cpp | irumsey/ijrumsey.com | 3dcf909eada5a09d39e6bf89a1f0bf1fa7328789 | [
"MIT"
] | null | null | null | main/dad/Link.cpp | irumsey/ijrumsey.com | 3dcf909eada5a09d39e6bf89a1f0bf1fa7328789 | [
"MIT"
] | null | null | null | ///
/// lucid libraries
///
#if defined(CONFIG)
# undef CONFIG
#endif
#if defined(_DEBUG)
# define CONFIG "d"
#else
# define CONFIG "r"
#endif
#if defined(PLATFORM)
# undef PLATFORM
#endif
#if defined(_WIN64)
# define PLATFORM "64"
#else
# define PLATFORM "32"
#endif
#pragma comment (lib, "core." PLATFORM CON... | 18.933333 | 58 | 0.667254 | irumsey |
11efd9e14dc7f0c4b32001c4d822d8ab2d1e06ba | 18,775 | cpp | C++ | src/plugins/azoth/plugins/murm/vkaccount.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/plugins/azoth/plugins/murm/vkaccount.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/plugins/azoth/plugins/murm/vkaccount.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiz... | 22.81288 | 102 | 0.675899 | MellonQ |
11f84e571df01facf0640e97db6bfd91b9aafa66 | 4,757 | hpp | C++ | include/async_web_server_cpp/http_reply.hpp | rohbotics/async_web_server_cpp | fac1c096a820f8d6b88ba9cfe1afa08c4307a63f | [
"BSD-3-Clause"
] | 24 | 2016-04-24T12:19:43.000Z | 2021-06-01T18:48:11.000Z | include/async_web_server_cpp/http_reply.hpp | rohbotics/async_web_server_cpp | fac1c096a820f8d6b88ba9cfe1afa08c4307a63f | [
"BSD-3-Clause"
] | 13 | 2016-08-09T22:03:36.000Z | 2021-03-04T12:17:57.000Z | include/async_web_server_cpp/http_reply.hpp | rohbotics/async_web_server_cpp | fac1c096a820f8d6b88ba9cfe1afa08c4307a63f | [
"BSD-3-Clause"
] | 37 | 2017-04-27T06:49:17.000Z | 2022-03-06T00:26:55.000Z | #ifndef CPP_WEB_SERVER_HTTP_REPLY_HPP
#define CPP_WEB_SERVER_HTTP_REPLY_HPP
#include <vector>
#include <string>
#include <boost/asio.hpp>
#include "async_web_server_cpp/http_header.hpp"
#include "async_web_server_cpp/http_connection.hpp"
#include "async_web_server_cpp/http_request_handler.hpp"
#include <boost/filesyst... | 26.724719 | 110 | 0.715367 | rohbotics |
f50104e1fe831589674c7f5a34bc5cb53bd158d6 | 22,245 | hpp | C++ | core/src/Kokkos_ROCmSpace.hpp | MalachiTimothyPhillips/kokkos | d3a941925cbfb71785d8ea68259123ed52d3f9da | [
"BSD-3-Clause"
] | 2 | 2019-12-18T20:37:06.000Z | 2020-04-07T00:44:39.000Z | core/src/Kokkos_ROCmSpace.hpp | MalachiTimothyPhillips/kokkos | d3a941925cbfb71785d8ea68259123ed52d3f9da | [
"BSD-3-Clause"
] | 2 | 2020-01-15T21:08:09.000Z | 2020-12-05T06:07:35.000Z | core/src/Kokkos_ROCmSpace.hpp | MalachiTimothyPhillips/kokkos | d3a941925cbfb71785d8ea68259123ed52d3f9da | [
"BSD-3-Clause"
] | 2 | 2020-04-01T19:16:16.000Z | 2022-02-09T21:45:19.000Z | /*
//@HEADER
// ************************************************************************
//
// Kokkos v. 2.0
// Copyright (2014) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain rights in this sof... | 35.478469 | 157 | 0.647516 | MalachiTimothyPhillips |
f50491534326c1d9715943a471868c7e6209fc08 | 3,810 | cpp | C++ | 3rdparty/aws-sdk-cpp-master/aws-cpp-sdk-ecs/source/ECSErrors.cpp | prateek-s/mesos | 4b81147797e4d9a45e0b2f5e5634d4a214dbc4e8 | [
"Apache-2.0"
] | 2 | 2019-02-08T21:29:57.000Z | 2021-07-27T06:59:19.000Z | 3rdparty/aws-sdk-cpp-master/aws-cpp-sdk-ecs/source/ECSErrors.cpp | prateek-s/mesos | 4b81147797e4d9a45e0b2f5e5634d4a214dbc4e8 | [
"Apache-2.0"
] | null | null | null | 3rdparty/aws-sdk-cpp-master/aws-cpp-sdk-ecs/source/ECSErrors.cpp | prateek-s/mesos | 4b81147797e4d9a45e0b2f5e5634d4a214dbc4e8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 39.278351 | 132 | 0.780577 | prateek-s |
f507306575457b08568e9284854ba429b23e8293 | 4,038 | cpp | C++ | pass/lec/pass_lec.cpp | arikyueh/livehd | cbbf13e77359cf135638b3710fd3ea4a6c895b68 | [
"BSD-3-Clause"
] | 1 | 2021-01-07T00:15:00.000Z | 2021-01-07T00:15:00.000Z | pass/lec/pass_lec.cpp | arikyueh/livehd | cbbf13e77359cf135638b3710fd3ea4a6c895b68 | [
"BSD-3-Clause"
] | null | null | null | pass/lec/pass_lec.cpp | arikyueh/livehd | cbbf13e77359cf135638b3710fd3ea4a6c895b68 | [
"BSD-3-Clause"
] | null | null | null | // This file is distributed under the BSD 3-Clause License. See LICENSE for details.
#include "pass_lec.hpp"
#include <stdio.h>
#include <stdlib.h>
#include <cassert>
#include <fstream>
#include <iostream>
#include <map>
#include <string>
#include "annotate.hpp"
#include "boolector.h"
#include "cell.hpp"
#include ... | 26.220779 | 121 | 0.613175 | arikyueh |
f5077be0f98fc0eb8493d37079e3a16a8a72fd32 | 4,598 | cpp | C++ | sysid-application/src/test/native/cpp/analysis/FilterTest.cpp | Ocean-Moist/sysid | a7aa964fcfcc78cabcb7bfc02c8389d791acece5 | [
"BSD-3-Clause"
] | null | null | null | sysid-application/src/test/native/cpp/analysis/FilterTest.cpp | Ocean-Moist/sysid | a7aa964fcfcc78cabcb7bfc02c8389d791acece5 | [
"BSD-3-Clause"
] | null | null | null | sysid-application/src/test/native/cpp/analysis/FilterTest.cpp | Ocean-Moist/sysid | a7aa964fcfcc78cabcb7bfc02c8389d791acece5 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <array>
#include <cmath>
#include <vector>
#include "gtest/gtest.h"
#include "sysid/analysis/AnalysisManager.h... | 35.643411 | 79 | 0.549369 | Ocean-Moist |
f5079addce6582eddf1063438ca371980684b40b | 763 | hpp | C++ | Http/HttpHeader.hpp | westcoastcode-se/JsonSlave | 60f12b39ed78644811b2c14fb877a14b9432b8f0 | [
"MIT"
] | null | null | null | Http/HttpHeader.hpp | westcoastcode-se/JsonSlave | 60f12b39ed78644811b2c14fb877a14b9432b8f0 | [
"MIT"
] | null | null | null | Http/HttpHeader.hpp | westcoastcode-se/JsonSlave | 60f12b39ed78644811b2c14fb877a14b9432b8f0 | [
"MIT"
] | null | null | null | //
// Created by Per Andersson on 2018-02-23.
// Copyright (c) 2018 West Coast Code AB. All rights reserved.
//
#ifndef JSONSLAVE_HTTPHEADER_HPP
#define JSONSLAVE_HTTPHEADER_HPP
#include "../Config.hpp"
/**
* Object representing an Http Header
*/
struct HttpHeader
{
HttpHeader(const string& name, const string& va... | 17.340909 | 62 | 0.693316 | westcoastcode-se |
f50c769f22f56795c196d396428ededb50524474 | 4,681 | hpp | C++ | src/sn_Meta/constexpr_container.hpp | Airtnp/SuperNaiveCppLib | 0745aa79dc5060cd0f7025658164374b991c698e | [
"MIT"
] | 4 | 2017-04-01T08:09:09.000Z | 2017-05-20T11:35:58.000Z | src/sn_Meta/constexpr_container.hpp | Airtnp/ACppLib | 0745aa79dc5060cd0f7025658164374b991c698e | [
"MIT"
] | null | null | null | src/sn_Meta/constexpr_container.hpp | Airtnp/ACppLib | 0745aa79dc5060cd0f7025658164374b991c698e | [
"MIT"
] | null | null | null | #include "../sn_CommonHeader.h"
namespace sn_Meta {
namespace constexpr_container {
// ref: https://github.com/ZaMaZaN4iK/constexpr_allocator/blob/master/test.cpp
template <class T, unsigned N = 100>
struct constexpr_allocator {
T data[N] = {};
unsigned used = ... | 33.92029 | 91 | 0.493271 | Airtnp |
f50d4d8abb1d2ee2a788e59ad48c3d8aeba87dbd | 23,483 | cc | C++ | chrome/browser/notifications/extension_welcome_notification_unittest.cc | lauer3912/chromium.src | 969c559f5e43b329295b68c49ae9bf46a833395c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-16T03:57:28.000Z | 2021-01-23T15:29:45.000Z | chrome/browser/notifications/extension_welcome_notification_unittest.cc | davgit/chromium.src | 29b19806a790a12fb0a64ee148d019e27db350db | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/notifications/extension_welcome_notification_unittest.cc | davgit/chromium.src | 29b19806a790a12fb0a64ee148d019e27db350db | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2017-03-15T13:21:38.000Z | 2017-03-15T13:21:38.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/notifications/extension_welcome_notification.h"
#include <string>
#include "base/memory/scoped_ptr.h"
#include "base/message_lo... | 42.618875 | 80 | 0.780139 | lauer3912 |
f5149fc85697799341bd95957e366a8f970a9d35 | 6,025 | cc | C++ | source/exe/main_common.cc | jaricftw/envoy | 766f3fb8dbdafce402631c43c16fda46ed003462 | [
"Apache-2.0"
] | 1 | 2019-11-19T22:27:58.000Z | 2019-11-19T22:27:58.000Z | source/exe/main_common.cc | jaricftw/envoy | 766f3fb8dbdafce402631c43c16fda46ed003462 | [
"Apache-2.0"
] | null | null | null | source/exe/main_common.cc | jaricftw/envoy | 766f3fb8dbdafce402631c43c16fda46ed003462 | [
"Apache-2.0"
] | null | null | null | #include "exe/main_common.h"
#include <iostream>
#include <memory>
#include <new>
#include "common/common/compiler_requirements.h"
#include "common/common/perf_annotation.h"
#include "common/network/utility.h"
#include "common/stats/symbol_table_creator.h"
#include "common/stats/thread_local_store.h"
#include "serve... | 40.166667 | 100 | 0.693942 | jaricftw |
f514cd1557537062b2cd1c09206d7872e05c2932 | 1,401 | hpp | C++ | red-microdnf/microdnf/utils.hpp | redpesk-labs/red-pak | bd11881f50ae627a0641448ae0b307a9a9e2877e | [
"Apache-2.0"
] | 5 | 2021-02-24T09:00:36.000Z | 2022-02-10T16:37:10.000Z | red-microdnf/microdnf/utils.hpp | redpesk-labs/red-pak | bd11881f50ae627a0641448ae0b307a9a9e2877e | [
"Apache-2.0"
] | null | null | null | red-microdnf/microdnf/utils.hpp | redpesk-labs/red-pak | bd11881f50ae627a0641448ae0b307a9a9e2877e | [
"Apache-2.0"
] | null | null | null | /*
Copyright (C) 2020 Red Hat, Inc.
This file is part of microdnf: https://github.com/rpm-software-management/libdnf/
Microdnf is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
... | 28.02 | 81 | 0.763026 | redpesk-labs |
f5187d31fc1fbf92b7f30daeeb15c9943d766215 | 6,011 | cpp | C++ | async_simple/coro/test/ConditionVariableTest.cpp | ChuanqiXu9/async_simple | 5b93ea57e8b96a366909a657049140c8a54f6873 | [
"Apache-2.0"
] | 169 | 2022-02-17T02:59:37.000Z | 2022-03-31T12:40:58.000Z | async_simple/coro/test/ConditionVariableTest.cpp | ChuanqiXu9/async_simple | 5b93ea57e8b96a366909a657049140c8a54f6873 | [
"Apache-2.0"
] | 49 | 2022-02-21T04:49:36.000Z | 2022-03-31T04:22:04.000Z | async_simple/coro/test/ConditionVariableTest.cpp | ChuanqiXu9/async_simple | 5b93ea57e8b96a366909a657049140c8a54f6873 | [
"Apache-2.0"
] | 35 | 2022-02-21T03:29:28.000Z | 2022-03-31T09:36:54.000Z | /*
* Copyright (c) 2022, Alibaba Group Holding Limited;
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 30.825641 | 75 | 0.593745 | ChuanqiXu9 |
f5192f27d84eb1105012a99e9f3b294bbd955f7c | 11,164 | hpp | C++ | src/data_structures/APR/ExtraParticleData.hpp | BioDataAnalysis/LibAPR | 16cce980061d9210ed82258d6893e4c7b07782ec | [
"Apache-2.0"
] | null | null | null | src/data_structures/APR/ExtraParticleData.hpp | BioDataAnalysis/LibAPR | 16cce980061d9210ed82258d6893e4c7b07782ec | [
"Apache-2.0"
] | null | null | null | src/data_structures/APR/ExtraParticleData.hpp | BioDataAnalysis/LibAPR | 16cce980061d9210ed82258d6893e4c7b07782ec | [
"Apache-2.0"
] | null | null | null | //
// Created by cheesema on 16.01.18.
//
#ifndef PARTPLAY_EXTRAPARTICLEDATA_HPP
#define PARTPLAY_EXTRAPARTICLEDATA_HPP
#include <algorithm>
template<typename V> class APR;
template<typename V> class APRIterator;
template<typename V> class APRTree;
template<typename DataType>
class ExtraParticleData {
private:
... | 38.102389 | 168 | 0.663741 | BioDataAnalysis |
f51967f231166ec2057a9af46d81aae6798d908f | 4,238 | cpp | C++ | tests/performance/local/swarm_homogeneous_timed_task_spawn.cpp | kempj/hpx | ffdbfed5dfa029a0f2e97e7367cb66d12103df67 | [
"BSL-1.0"
] | null | null | null | tests/performance/local/swarm_homogeneous_timed_task_spawn.cpp | kempj/hpx | ffdbfed5dfa029a0f2e97e7367cb66d12103df67 | [
"BSL-1.0"
] | null | null | null | tests/performance/local/swarm_homogeneous_timed_task_spawn.cpp | kempj/hpx | ffdbfed5dfa029a0f2e97e7367cb66d12103df67 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2011-2012 Bryce Adelstein-Lelbach
// Copyright (c) 2007-2012 Hartmut Kaiser
//
// 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 "worker_timed.hpp"
#include <hpx/util/assert.hpp>
#inclu... | 25.684848 | 80 | 0.559226 | kempj |
f51bc0d5934d51d75165a550ecf30e8a5cf2a7ed | 460 | hxx | C++ | Core/GameKit/IEngine.hxx | broken-bytes/Cyanite-Engine | 5733e1fc010b375bbafc9ebfa41e248845f945b3 | [
"MIT"
] | null | null | null | Core/GameKit/IEngine.hxx | broken-bytes/Cyanite-Engine | 5733e1fc010b375bbafc9ebfa41e248845f945b3 | [
"MIT"
] | null | null | null | Core/GameKit/IEngine.hxx | broken-bytes/Cyanite-Engine | 5733e1fc010b375bbafc9ebfa41e248845f945b3 | [
"MIT"
] | 1 | 2020-12-20T07:35:05.000Z | 2020-12-20T07:35:05.000Z | #pragma once
namespace Cyanite::GameKit {
class IEngine
{
public:
virtual ~IEngine() = default;
virtual auto StartUp() -> void = 0;
virtual auto CleanUp() -> void = 0;
virtual auto Shutdown() -> void = 0;
virtual auto OnInit() -> void = 0;
virtual auto OnUpdate() -> void = 0;
virtual auto On... | 24.210526 | 70 | 0.626087 | broken-bytes |
f51cd323bb6bc16100ba8d8db3682257c1bff148 | 20,174 | cpp | C++ | src/allegro_flare/path2d.cpp | MarkOates/allegro_flare | b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7 | [
"MIT"
] | 25 | 2015-03-30T02:02:43.000Z | 2019-03-04T22:29:12.000Z | src/allegro_flare/path2d.cpp | MarkOates/allegro_flare | b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7 | [
"MIT"
] | 122 | 2015-04-01T08:15:26.000Z | 2019-10-16T20:31:22.000Z | src/allegro_flare/path2d.cpp | allegroflare/allegro_flare | 21d6fe2a5a5323102285598c8a8c75b393ce0322 | [
"MIT"
] | 4 | 2020-02-25T18:17:31.000Z | 2021-04-17T05:06:52.000Z |
#include <allegro_flare/path2d.h>
#include <iostream>
//#include <allegro_flare/text_object.h>
#include <AllegroFlare/Useful.hpp>
#include <AllegroFlare/UsefulPHP.hpp>
namespace allegro_flare
{
SegmentInfo::SegmentInfo(AllegroFlare::vec2d &start, AllegroFlare::vec2d &end)
{
this->start = start;
... | 22.769752 | 207 | 0.571974 | MarkOates |
f51ed3cfaa07002b291fd653133d8d32e5676374 | 4,786 | cpp | C++ | wifiscan/cpp/scenario3_registerforupdates.xaml.cpp | nishkrish/Windows-universal-samples | 5c0aa623b4356e96759d901b8b432b3e744204bf | [
"MIT"
] | 4 | 2020-07-13T17:28:32.000Z | 2021-11-17T11:24:45.000Z | wifiscan/cpp/scenario3_registerforupdates.xaml.cpp | nishkrish/Windows-universal-samples | 5c0aa623b4356e96759d901b8b432b3e744204bf | [
"MIT"
] | null | null | null | wifiscan/cpp/scenario3_registerforupdates.xaml.cpp | nishkrish/Windows-universal-samples | 5c0aa623b4356e96759d901b8b432b3e744204bf | [
"MIT"
] | 1 | 2020-11-20T22:15:02.000Z | 2020-11-20T22:15:02.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PA... | 39.553719 | 190 | 0.660259 | nishkrish |
f5208b2a96ecd5c9db18156b49b94df2da0063bd | 28,192 | cc | C++ | tests/inherit_test.cc | akihito-takeuchi/dino-experiment | 510ab6b83c41d860d511186c2863834e1b2662cb | [
"MIT"
] | null | null | null | tests/inherit_test.cc | akihito-takeuchi/dino-experiment | 510ab6b83c41d860d511186c2863834e1b2662cb | [
"MIT"
] | null | null | null | tests/inherit_test.cc | akihito-takeuchi/dino-experiment | 510ab6b83c41d860d511186c2863834e1b2662cb | [
"MIT"
] | null | null | null | // Copyright (c) 2019 Akihito Takeuchi
// Distributed under the MIT License : http://opensource.org/licenses/MIT
#include "dino/core/dobject.h"
#include <gtest/gtest.h>
#include <boost/filesystem.hpp>
#include "dino/core/session.h"
#include "dino/core/dexception.h"
namespace dc = dino::core;
namespace fs = boost::fi... | 37.489362 | 86 | 0.670651 | akihito-takeuchi |
f5250ff83f0bf5928a47c47c948a4b1c4ea13486 | 963 | cpp | C++ | llvm/lib/Target/ARM/ARMMachineFunctionInfo.cpp | haohua-li/t-sgx-mirror | 49188063f3cb5300cda8a03255cfe800e8266ace | [
"MIT"
] | 26 | 2017-04-18T15:51:16.000Z | 2022-03-29T07:03:37.000Z | llvm/lib/Target/ARM/ARMMachineFunctionInfo.cpp | haohua-li/t-sgx-mirror | 49188063f3cb5300cda8a03255cfe800e8266ace | [
"MIT"
] | 2 | 2017-10-27T21:29:04.000Z | 2019-06-12T01:23:38.000Z | 3.7.0/llvm-3.7.0.src/lib/Target/ARM/ARMMachineFunctionInfo.cpp | androm3da/clang_sles | 2ba6d0711546ad681883c42dfb8661b842806695 | [
"MIT"
] | 9 | 2017-10-02T19:54:36.000Z | 2021-11-22T00:48:18.000Z | //===-- ARMMachineFuctionInfo.cpp - ARM machine function info -------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 38.52 | 80 | 0.640706 | haohua-li |
f525e9fb670749e05e886de9148073599dc94238 | 2,526 | cpp | C++ | DPlusPlus/Source/Utils/Cache.cpp | pKiwky/DPlusPlus | 0c9ef9567426056c6d65fd175f5e94ad559ee059 | [
"MIT"
] | null | null | null | DPlusPlus/Source/Utils/Cache.cpp | pKiwky/DPlusPlus | 0c9ef9567426056c6d65fd175f5e94ad559ee059 | [
"MIT"
] | null | null | null | DPlusPlus/Source/Utils/Cache.cpp | pKiwky/DPlusPlus | 0c9ef9567426056c6d65fd175f5e94ad559ee059 | [
"MIT"
] | 1 | 2021-06-05T17:35:27.000Z | 2021-06-05T17:35:27.000Z | #include "Utils/Cache.hpp"
#include "Entities/Guild/DiscordGuild.h"
#include "Entities/Guild/DiscordRole.h"
#include "Entities/Channel/DiscordChannel.h"
#include "Entities/Message/DiscordMessage.h"
#include "Entities/Member/DiscordMember.h"
namespace DPlusPlus {
template class Cache<DiscordGuild>;
template class C... | 23.607477 | 81 | 0.648852 | pKiwky |
f5288c488a2b0992a08269cf33d9ef2309db5ebf | 261 | cpp | C++ | test/test.cpp | Fytch/Quiver | 572c59bbc7aaef0e61318d6d0feaf5771b38cfdb | [
"MIT"
] | null | null | null | test/test.cpp | Fytch/Quiver | 572c59bbc7aaef0e61318d6d0feaf5771b38cfdb | [
"MIT"
] | 1 | 2018-11-28T12:55:50.000Z | 2018-11-28T12:55:50.000Z | test/test.cpp | Fytch/Quiver | 572c59bbc7aaef0e61318d6d0feaf5771b38cfdb | [
"MIT"
] | 1 | 2018-08-19T16:48:23.000Z | 2018-08-19T16:48:23.000Z | /*
* Quiver - A graph theory library
* Copyright (C) 2018 Josua Rieder (josua.rieder1996@gmail.com)
* Distributed under the MIT License.
* See the enclosed file LICENSE.txt for further information.
*/
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
| 26.1 | 63 | 0.747126 | Fytch |
f5296f58e82a2a306792619071608d8bb3bfe7d5 | 929 | cc | C++ | muduo/base/tests/Exception_test.cc | williamxin/muduo | fb5ff05ffde278084b3ea765bc7f51f93140699a | [
"BSD-3-Clause"
] | null | null | null | muduo/base/tests/Exception_test.cc | williamxin/muduo | fb5ff05ffde278084b3ea765bc7f51f93140699a | [
"BSD-3-Clause"
] | null | null | null | muduo/base/tests/Exception_test.cc | williamxin/muduo | fb5ff05ffde278084b3ea765bc7f51f93140699a | [
"BSD-3-Clause"
] | null | null | null | #include "muduo/base/CurrentThread.h"
#include "muduo/base/Exception.h"
#include <functional>
#include <vector>
#include <stdio.h>
class Bar {
public:
void test(std::vector<std::string> names = {}) {
printf("Stack:\n%s\n", muduo::CurrentThread::stackTrace(true).c_str());
[] { printf("Stack inside lambda:\n%s\n", ... | 23.820513 | 109 | 0.636168 | williamxin |
f52b198f4c746a159be2a50b3367d5a60f71d96f | 3,802 | cpp | C++ | src/codegen/lang/if.cpp | aaron-tian/peloton | 2406b763b91d9cee2a5d9f4dee01c761b476cef6 | [
"Apache-2.0"
] | 2 | 2021-03-29T01:29:18.000Z | 2022-02-27T11:22:15.000Z | src/codegen/lang/if.cpp | aaron-tian/peloton | 2406b763b91d9cee2a5d9f4dee01c761b476cef6 | [
"Apache-2.0"
] | null | null | null | src/codegen/lang/if.cpp | aaron-tian/peloton | 2406b763b91d9cee2a5d9f4dee01c761b476cef6 | [
"Apache-2.0"
] | 3 | 2018-02-25T23:30:33.000Z | 2018-04-08T10:11:42.000Z | //===----------------------------------------------------------------------===//
//
// Peloton
//
// if.cpp
//
// Identification: src/codegen/lang/if.cpp
//
// Copyright (c) 2015-2017, Carnegie Mellon University Database Group
//
//===-------------------------------------------------------------... | 33.946429 | 80 | 0.620726 | aaron-tian |
f52b28cacb59640e421fd5c892cf45967f164b47 | 4,598 | hpp | C++ | db/silkworm/db/access_layer.hpp | flashbots/silkworm | 7770793499d0c665754b17840f7b8edfd53ce8ba | [
"Apache-2.0"
] | 1 | 2021-06-30T22:56:09.000Z | 2021-06-30T22:56:09.000Z | db/silkworm/db/access_layer.hpp | flashbots/silkworm | 7770793499d0c665754b17840f7b8edfd53ce8ba | [
"Apache-2.0"
] | null | null | null | db/silkworm/db/access_layer.hpp | flashbots/silkworm | 7770793499d0c665754b17840f7b8edfd53ce8ba | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2020-2021 The Silkworm Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... | 38.316667 | 117 | 0.718573 | flashbots |
f52b481ee48a9fcfdac449a9fb1f18ef74b0ecd0 | 4,028 | cpp | C++ | etpServerExample/main.cpp | cgodkin/fesapi | d25c5e30ccec537c471adc3bb036c48f2c51f2c9 | [
"Apache-2.0"
] | null | null | null | etpServerExample/main.cpp | cgodkin/fesapi | d25c5e30ccec537c471adc3bb036c48f2c51f2c9 | [
"Apache-2.0"
] | null | null | null | etpServerExample/main.cpp | cgodkin/fesapi | d25c5e30ccec537c471adc3bb036c48f2c51f2c9 | [
"Apache-2.0"
] | null | null | null | /*-----------------------------------------------------------------------
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under ... | 36.954128 | 201 | 0.726167 | cgodkin |
f5317f3359147732ebcddc63b64c8f7008382101 | 11,786 | hpp | C++ | include/RootMotion/FinalIK/Grounding_Pelvis.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/RootMotion/FinalIK/Grounding_Pelvis.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/RootMotion/FinalIK/Grounding_Pelvis.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: RootMotion.Fin... | 55.333333 | 419 | 0.721534 | marksteward |
f53229fa0939065b3da78394239481622e8d1973 | 250 | cpp | C++ | CsWeapon/Source/CsWp/Public/Managers/Weapon/CsGetManagerWeapon.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | 2 | 2019-03-17T10:43:53.000Z | 2021-04-20T21:24:19.000Z | CsWeapon/Source/CsWp/Public/Managers/Weapon/CsGetManagerWeapon.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | CsWeapon/Source/CsWp/Public/Managers/Weapon/CsGetManagerWeapon.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | // Copyright 2017-2021 Closed Sum Games, LLC. All Rights Reserved.
#include "Managers/Weapon/CsGetManagerWeapon.h"
#include "CsWp.h"
UCsGetManagerWeapon::UCsGetManagerWeapon(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer)
{
} | 35.714286 | 112 | 0.812 | closedsum |
f5324ddc27e39726fdcdb67fee51f9af2cbc805e | 3,432 | hpp | C++ | RealtekCardReader/IOPCIeDevice.hpp | MK-986123/RealtekCardReader | 0b1a4c66082b63d057cba2a54721b62cbf11c0ac | [
"BSD-3-Clause"
] | 106 | 2021-07-16T03:27:28.000Z | 2022-03-31T15:35:50.000Z | RealtekCardReader/IOPCIeDevice.hpp | MK-986123/RealtekCardReader | 0b1a4c66082b63d057cba2a54721b62cbf11c0ac | [
"BSD-3-Clause"
] | 28 | 2021-07-16T09:03:10.000Z | 2022-03-28T03:36:47.000Z | RealtekCardReader/IOPCIeDevice.hpp | MK-986123/RealtekCardReader | 0b1a4c66082b63d057cba2a54721b62cbf11c0ac | [
"BSD-3-Clause"
] | 14 | 2021-07-16T16:15:09.000Z | 2022-02-24T22:08:21.000Z | //
// IOPCIeDevice.hpp
// RealtekCardReader
//
// Created by FireWolf on 7/7/21.
//
#ifndef IOPCIeDevice_hpp
#define IOPCIeDevice_hpp
#include <IOKit/pci/IOPCIDevice.h>
#include "Debug.hpp"
#define PCI_EXP_LNKCTL 16 /* Link Control */
#define PCI_EXP_LNKCTL_ASPMC 0x0003 /* ASPM Control */
#define... | 41.349398 | 99 | 0.722028 | MK-986123 |
f5367c47a2b5f3a6a25d0542272a52f633531fa0 | 1,485 | cpp | C++ | src/solverUtils.cpp | ndehio/copra | 81ffa423b95d16140c64f19785ac1836af3ef9bf | [
"BSD-2-Clause"
] | 9 | 2019-12-31T07:51:12.000Z | 2021-07-31T16:24:51.000Z | src/solverUtils.cpp | vsamy/Copra | 2662c567491690f145834aa8b95339cec3a8bb11 | [
"BSD-2-Clause"
] | 6 | 2020-02-21T15:06:31.000Z | 2021-12-20T07:17:57.000Z | src/solverUtils.cpp | vsamy/Copra | 2662c567491690f145834aa8b95339cec3a8bb11 | [
"BSD-2-Clause"
] | 4 | 2020-03-09T14:21:56.000Z | 2022-03-04T07:35:01.000Z | /*
* Copyright 2016-2019 CNRS-UM LIRMM, CNRS-AIST JRL
*/
#include "solverUtils.h"
namespace copra {
std::unique_ptr<SolverInterface> solverFactory(SolverFlag flag)
{
switch (flag) {
#ifdef EIGEN_LSSOL_FOUND
case SolverFlag::LSSOL:
return std::unique_ptr<LSSOLSolver>(new LSSOLSolver());
#endif
#ifde... | 23.951613 | 79 | 0.709091 | ndehio |
f53ad2eae1132cc06382fe734a2ace66bdba3107 | 5,334 | cc | C++ | mars/sdt/src/sdt_core.cc | 20150723/mars | 916f895d5d6c31a1f4720b189bb0a83e92e0161c | [
"Apache-2.0",
"BSD-2-Clause"
] | 56 | 2019-03-20T06:45:40.000Z | 2022-01-07T09:30:00.000Z | mars/sdt/src/sdt_core.cc | 20150723/mars | 916f895d5d6c31a1f4720b189bb0a83e92e0161c | [
"Apache-2.0",
"BSD-2-Clause"
] | 2 | 2019-10-22T02:57:02.000Z | 2019-10-31T23:30:17.000Z | mars/sdt/src/sdt_core.cc | pengjinning/mars | 227aff64a5b819555091a7d6eae6727701e9fff0 | [
"Apache-2.0",
"BSD-2-Clause"
] | 37 | 2019-03-20T16:20:46.000Z | 2021-05-22T00:31:21.000Z | // Tencent is pleased to support the open source community by making Mars available.
// Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
// Licensed under the MIT License (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the Licens... | 31.011628 | 188 | 0.679415 | 20150723 |
f53d0e783431aff2aa125b6b34b2447ed51ddf8b | 21,402 | cpp | C++ | Src/Orbiter/DlgVishelper.cpp | jarmonik/orbiter | 527db6209cb0acd4af839682f2d7f05132818fb8 | [
"MIT"
] | 1,040 | 2021-07-27T12:12:06.000Z | 2021-08-02T14:24:49.000Z | Src/Orbiter/DlgVishelper.cpp | jarmonik/orbiter | 527db6209cb0acd4af839682f2d7f05132818fb8 | [
"MIT"
] | 20 | 2021-07-27T12:25:22.000Z | 2021-08-02T12:22:19.000Z | Src/Orbiter/DlgVishelper.cpp | jarmonik/orbiter | 527db6209cb0acd4af839682f2d7f05132818fb8 | [
"MIT"
] | 71 | 2021-07-27T14:19:49.000Z | 2021-08-02T05:51:52.000Z | // Copyright (c) Martin Schweiger
// Licensed under the MIT License
// ======================================================================
// Visual helper options dialog
// ======================================================================
#define STRICT 1
#define OEMRESOURCE
#include <io.h>
#include "Orbite... | 30.27157 | 142 | 0.584291 | jarmonik |
f53d98347ea4d2ea28477a160c66693fa1140608 | 725 | cpp | C++ | arc078/a.cpp | nel215/atcoder-grand-contest | a13ce146516c03881f50b7ac284be23d16d29ffe | [
"MIT"
] | null | null | null | arc078/a.cpp | nel215/atcoder-grand-contest | a13ce146516c03881f50b7ac284be23d16d29ffe | [
"MIT"
] | null | null | null | arc078/a.cpp | nel215/atcoder-grand-contest | a13ce146516c03881f50b7ac284be23d16d29ffe | [
"MIT"
] | null | null | null | #include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <deque>
#include <complex>
#include <algorithm>
#include <cstdio>
#include <cmath>
#include <cstring>
#define REP(i,x) for(int i=0 ; i<(... | 17.261905 | 48 | 0.554483 | nel215 |
f540a2a0d2c19942aff0d1f12fd74db7a08d5769 | 425 | cpp | C++ | Recursion-Challanges/move-all-x-end.cpp | RADIUMz-Codes/Learning-DSA | e316d07f8ba92bfe59a520374f3fc0a59bd62ab1 | [
"MIT"
] | 3 | 2021-09-26T21:12:40.000Z | 2022-02-11T04:29:20.000Z | Recursion-Challanges/move-all-x-end.cpp | theabhikr03/Learning-DSA | e316d07f8ba92bfe59a520374f3fc0a59bd62ab1 | [
"MIT"
] | null | null | null | Recursion-Challanges/move-all-x-end.cpp | theabhikr03/Learning-DSA | e316d07f8ba92bfe59a520374f3fc0a59bd62ab1 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
void move(char ch[], int i, int j)
{
if (i >= j)
{
return;
}
if (ch[i] == 'x')
{
for (int t = i; t < j ; t++)
{
ch[t] = ch[t + 1];
}
ch[j] = 'x';
move(ch, i + 1, j - 1);
}
else
{
move(ch, i + 1, j);
}
}
int main()
{
// string s;
// cin >> s;
... | 10.897436 | 34 | 0.428235 | RADIUMz-Codes |
f5414fa7c164a37f8e92a98a8a9a9e657fcbe02a | 6,359 | cpp | C++ | src/matOptimize/main_helper.cpp | abschneider/usher | 2ebfe7013d69097427cce59585a3ee2edd98773b | [
"MIT"
] | null | null | null | src/matOptimize/main_helper.cpp | abschneider/usher | 2ebfe7013d69097427cce59585a3ee2edd98773b | [
"MIT"
] | 1 | 2022-02-28T19:49:56.000Z | 2022-02-28T19:49:56.000Z | src/matOptimize/main_helper.cpp | abschneider/usher | 2ebfe7013d69097427cce59585a3ee2edd98773b | [
"MIT"
] | null | null | null | #include "tree_rearrangement_internal.hpp"
#include "check_samples.hpp"
#include "Fitch_Sankoff.hpp"
#include "src/matOptimize/Twice_Bloom_Filter.hpp"
#include "src/matOptimize/mutation_annotated_tree.hpp"
#include <algorithm>
#include <chrono>
#include <cstdio>
#include <tbb/blocked_range.h>
#include <tbb/concurrent_v... | 39.993711 | 166 | 0.643969 | abschneider |
f54210cd77ddc1322b5decefb9163bb01d338269 | 2,797 | cpp | C++ | src/crop_layer.cpp | ahmedfawzyelaraby/yolo-v2-gpu-wrapper | be136b46ebdcf71e5c88450ceb11e7d5158655d7 | [
"MIT"
] | null | null | null | src/crop_layer.cpp | ahmedfawzyelaraby/yolo-v2-gpu-wrapper | be136b46ebdcf71e5c88450ceb11e7d5158655d7 | [
"MIT"
] | null | null | null | src/crop_layer.cpp | ahmedfawzyelaraby/yolo-v2-gpu-wrapper | be136b46ebdcf71e5c88450ceb11e7d5158655d7 | [
"MIT"
] | null | null | null | #include "crop_layer.h"
#include "cuda.h"
#include <stdio.h>
image get_crop_image(crop_layer l)
{
int h = l.out_h;
int w = l.out_w;
int c = l.out_c;
return float_to_image(w,h,c,l.output);
}
void backward_crop_layer(const crop_layer l, network_state state){}
void backward_crop_layer_gpu(const crop_laye... | 26.894231 | 148 | 0.531641 | ahmedfawzyelaraby |
f5423af1fe05acb75f81e54dceee9ba00b604e1a | 24,279 | cc | C++ | Molecule/mc_summarise.cc | rajarshi/Lilly-Medchem-Rules | cb391fd04ba5820a88e31a8957bff68de08959f7 | [
"Apache-2.0"
] | 47 | 2015-01-08T17:26:10.000Z | 2022-02-04T10:06:20.000Z | Molecule/mc_summarise.cc | rajarshi/Lilly-Medchem-Rules | cb391fd04ba5820a88e31a8957bff68de08959f7 | [
"Apache-2.0"
] | 17 | 2015-03-26T16:06:00.000Z | 2021-01-16T21:39:15.000Z | Molecule/mc_summarise.cc | rajarshi/Lilly-Medchem-Rules | cb391fd04ba5820a88e31a8957bff68de08959f7 | [
"Apache-2.0"
] | 19 | 2016-05-24T17:52:08.000Z | 2020-11-27T06:59:44.000Z | /*
Examine the output of tp1_pipe.sh and create a formatted report
*/
#include <stdlib.h>
#define RESIZABLE_ARRAY_IMPLEMENTATION
#define RESIZABLE_ARRAY_IWQSORT_IMPLEMENTATION
#include "cmdline.h"
#include "misc.h"
#include "iwqsort.h"
#include "iwstring_data_source.h"
#include "iw_stl_hash_map.h"
const char * pr... | 21.814016 | 136 | 0.606203 | rajarshi |
f543abd28b92e1764a45a57d902eac7c1d333739 | 1,357 | hpp | C++ | src/test/server/mock_task_runner.hpp | nilsthamm/hyrise | 75a701f281bb7dc1636832012c43005ec3c66384 | [
"MIT"
] | 2 | 2019-01-22T19:44:32.000Z | 2019-01-22T19:52:33.000Z | src/test/server/mock_task_runner.hpp | nilsthamm/hyrise | 75a701f281bb7dc1636832012c43005ec3c66384 | [
"MIT"
] | 69 | 2019-05-24T10:01:32.000Z | 2019-12-13T19:09:05.000Z | src/test/server/mock_task_runner.hpp | nilsthamm/hyrise | 75a701f281bb7dc1636832012c43005ec3c66384 | [
"MIT"
] | null | null | null | #pragma once
#include <boost/thread/future.hpp>
#include <memory>
#include "gmock/gmock.h"
#include "storage/prepared_plan.hpp"
#include "tasks/server/bind_server_prepared_statement_task.hpp"
#include "tasks/server/create_pipeline_task.hpp"
#include "tasks/server/execute_server_prepared_statement_task.hpp"
#include... | 39.911765 | 115 | 0.784819 | nilsthamm |
f543dc902c554863e3c1692ebfb3a7e77c0f86f7 | 68 | cpp | C++ | consumer/test_package/example.cpp | memsharded/source_packages | 7b73daef46d8bd5a615f0d2ee079ae0d2a159dbd | [
"MIT"
] | null | null | null | consumer/test_package/example.cpp | memsharded/source_packages | 7b73daef46d8bd5a615f0d2ee079ae0d2a159dbd | [
"MIT"
] | null | null | null | consumer/test_package/example.cpp | memsharded/source_packages | 7b73daef46d8bd5a615f0d2ee079ae0d2a159dbd | [
"MIT"
] | null | null | null | #include <iostream>
#include "greet.h"
int main() {
greet();
}
| 9.714286 | 19 | 0.588235 | memsharded |
f54982d6ca383e8f8861420942e41d97dd208a4d | 5,696 | hpp | C++ | sferes/exp/images/ea/rank_simple.hpp | Evolving-AI-Lab/innovation-engine | 58c7fcc3cbe3d6f8f59f87d95bdb5f2302f425ba | [
"MIT"
] | 31 | 2015-09-20T03:03:29.000Z | 2022-01-25T06:50:20.000Z | sferes/exp/images/ea/rank_simple.hpp | Evolving-AI-Lab/innovation-engine | 58c7fcc3cbe3d6f8f59f87d95bdb5f2302f425ba | [
"MIT"
] | 1 | 2016-08-11T07:24:50.000Z | 2016-08-17T01:19:57.000Z | sferes/exp/images/ea/rank_simple.hpp | Evolving-AI-Lab/innovation-engine | 58c7fcc3cbe3d6f8f59f87d95bdb5f2302f425ba | [
"MIT"
] | 10 | 2015-11-15T01:52:25.000Z | 2018-06-11T23:42:58.000Z | //| This file is a part of the sferes2 framework.
//| Copyright 2009, ISIR / Universite Pierre et Marie Curie (UPMC)
//| Main contributor(s): Jean-Baptiste Mouret, mouret@isir.fr
//|
//| This software is a computer program whose purpose is to facilitate
//| experiments in evolutionary computation and evolutionary robot... | 33.704142 | 112 | 0.642381 | Evolving-AI-Lab |
f549c155b012e4475edd1b56e1be94ba641bd1cf | 1,319 | hpp | C++ | Source/Physics/TorqueEffect.hpp | JesseMader/PlasmaEngine | ffda8f76b96e83181cfc1f9ec102c4ad0d7fd131 | [
"MIT"
] | null | null | null | Source/Physics/TorqueEffect.hpp | JesseMader/PlasmaEngine | ffda8f76b96e83181cfc1f9ec102c4ad0d7fd131 | [
"MIT"
] | null | null | null | Source/Physics/TorqueEffect.hpp | JesseMader/PlasmaEngine | ffda8f76b96e83181cfc1f9ec102c4ad0d7fd131 | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
#pragma once
namespace Plasma
{
DeclareBitField1(TorqueFlags, LocalTorque);
/// Applies a torque to the center of mass of a body.
class TorqueEffect : public PhysicsEffect
{
public:
LightningDeclareType(TorqueEffect, TypeCopyMode::ReferenceType);
TorqueEffect();
// Component... | 25.365385 | 79 | 0.738438 | JesseMader |
f54ab02e08fb5f9328ba0e3285889ef5f4c2eea5 | 1,291 | cpp | C++ | leetcode/binary-tree/Traversals/94.(Morris-Algo)binary-tree-inorder-traversal.cpp | saurabhraj042/dsaPrep | 0973a03bc565a2850003c7e48d99b97ff83b1d01 | [
"MIT"
] | 23 | 2021-10-30T04:11:52.000Z | 2021-11-27T09:16:18.000Z | leetcode/binary-tree/Traversals/94.(Morris-Algo)binary-tree-inorder-traversal.cpp | Pawanupadhyay10/placement-prep | 0449fa7cbc56e7933e6b090936ab7c15ca5f290f | [
"MIT"
] | null | null | null | leetcode/binary-tree/Traversals/94.(Morris-Algo)binary-tree-inorder-traversal.cpp | Pawanupadhyay10/placement-prep | 0449fa7cbc56e7933e6b090936ab7c15ca5f290f | [
"MIT"
] | 4 | 2021-10-30T03:26:05.000Z | 2021-11-14T12:15:04.000Z | // saurabhraj042
// https://leetcode.com/problems/binary-tree-inorder-traversal/description/
/**
* 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(nu... | 27.468085 | 93 | 0.477149 | saurabhraj042 |
f54c0221ca5105e1309b0d0f6127aac76cde5e27 | 258 | hpp | C++ | src/supermarx/qualified.hpp | Supermarx/common | bb1aaaef4486d6c1089193824fde4533de150b4d | [
"MIT"
] | null | null | null | src/supermarx/qualified.hpp | Supermarx/common | bb1aaaef4486d6c1089193824fde4533de150b4d | [
"MIT"
] | null | null | null | src/supermarx/qualified.hpp | Supermarx/common | bb1aaaef4486d6c1089193824fde4533de150b4d | [
"MIT"
] | null | null | null | #pragma once
#include <supermarx/reference.hpp>
namespace supermarx
{
template<typename T>
struct qualified
{
reference<T> id;
T data;
qualified(reference<T> _id, T const& _data)
: id(_id)
, data(_data)
{}
operator T()
{
return data;
}
};
}
| 9.923077 | 44 | 0.662791 | Supermarx |
f54ce737d42d103b6f455a9d66c1bfda412a03a6 | 2,023 | cpp | C++ | Poj/POJ - 1236 Network of Schools - Tarjan.cpp | bishoy-magdy/Competitive-Programming | 689daac9aeb475da3c28aba4a69df394c68a9a34 | [
"MIT"
] | null | null | null | Poj/POJ - 1236 Network of Schools - Tarjan.cpp | bishoy-magdy/Competitive-Programming | 689daac9aeb475da3c28aba4a69df394c68a9a34 | [
"MIT"
] | null | null | null | Poj/POJ - 1236 Network of Schools - Tarjan.cpp | bishoy-magdy/Competitive-Programming | 689daac9aeb475da3c28aba4a69df394c68a9a34 | [
"MIT"
] | null | null | null | /**
* Network of Schools POJ - 1236
* tarjan algorithm
*/
#include <cstdio>
#include <algorithm>
#include <cstring>
#define endl '\n'
using namespace std;
typedef long long ll;
const int N = 1e4 + 5, M = 1e6 + 5;
int n;
struct ADJ {
int head[N], nxt[M], to[M], ne;
void addEdge(int f, int t) {
nx... | 20.029703 | 73 | 0.45131 | bishoy-magdy |
f54f0a6834f214a983ef1e3179e17445be6c4c91 | 1,818 | cpp | C++ | src/Scripts/WeaponFactory.cpp | Quivscor/SoulEngine | 2951de54cd09c5a017c01d8ea124e375f0b62b9f | [
"MIT"
] | 2 | 2020-06-24T10:18:13.000Z | 2020-06-25T19:34:57.000Z | src/Scripts/WeaponFactory.cpp | Quivscor/SoulEngine | 2951de54cd09c5a017c01d8ea124e375f0b62b9f | [
"MIT"
] | null | null | null | src/Scripts/WeaponFactory.cpp | Quivscor/SoulEngine | 2951de54cd09c5a017c01d8ea124e375f0b62b9f | [
"MIT"
] | null | null | null | #include "WeaponFactory.h"
std::vector<WeaponModel> WeaponFactory::weapons;
std::shared_ptr<WeaponFactory>WeaponFactory::m_Instance = nullptr;
WeaponFactory::WeaponFactory()
{
}
WeaponFactory::~WeaponFactory()
{
}
void WeaponFactory::SetWeapon(Mesh* mesh, WeaponType type)
{
WeaponModel newWeapon;
newWeapon.model... | 20.426966 | 66 | 0.686469 | Quivscor |
f550a97718855d2d8964e85d6112e9ce2809ee20 | 250,735 | cc | C++ | src/quadrature_fem_math/Quadrule_New.cc | pgmaginot/DARK_ARTS | f04b0a30dcac911ef06fe0916921020826f5c42b | [
"MIT"
] | null | null | null | src/quadrature_fem_math/Quadrule_New.cc | pgmaginot/DARK_ARTS | f04b0a30dcac911ef06fe0916921020826f5c42b | [
"MIT"
] | null | null | null | src/quadrature_fem_math/Quadrule_New.cc | pgmaginot/DARK_ARTS | f04b0a30dcac911ef06fe0916921020826f5c42b | [
"MIT"
] | null | null | null | /** @file Quadrule_New.cc
* @author The internet / pmaginot
* @brief Implement the Quadrule_New class that changes the original quadrule into a vector format
*/
#include "Quadrule_New.h"
// ##########################################################
// Public functions
// ##################... | 38.210149 | 153 | 0.661431 | pgmaginot |
f5524c368f8823d5452abd3fc4f63f49fdf039d1 | 7,459 | cpp | C++ | Pelican/src/Pelican/Renderer/Model.cpp | SeppahBaws/PelicanEngine | 7bc5f5e55993220d731ad6a5dbff1470ad4c6ee5 | [
"MIT"
] | 1 | 2022-03-01T10:36:57.000Z | 2022-03-01T10:36:57.000Z | Pelican/src/Pelican/Renderer/Model.cpp | SeppahBaws/PelicanEngine | 7bc5f5e55993220d731ad6a5dbff1470ad4c6ee5 | [
"MIT"
] | 1 | 2021-09-27T16:47:43.000Z | 2021-09-27T16:47:43.000Z | Pelican/src/Pelican/Renderer/Model.cpp | SeppahBaws/PelicanEngine | 7bc5f5e55993220d731ad6a5dbff1470ad4c6ee5 | [
"MIT"
] | null | null | null | #include "PelicanPCH.h"
#include "Model.h"
#include "Pelican/Assets/AssetManager.h"
#include "Pelican/Renderer/Camera.h"
#include "Pelican/Renderer/Mesh.h"
#include "Pelican/Renderer/VulkanHelpers.h"
#include "Pelican/Renderer/VulkanTexture.h"
#include "Pelican/Renderer/VulkanRenderer.h"
#include <logtools.h>
#pra... | 29.955823 | 117 | 0.710417 | SeppahBaws |
f5555d0582a9f0a44c73b58c9422c98e0042e89d | 957 | cpp | C++ | mysql_test/mysql_test.cpp | iassasin/wschatserver | f5b1ae1a37e534bfee93102603f93e85642e230d | [
"MIT"
] | 9 | 2017-01-29T13:27:28.000Z | 2020-10-16T19:25:38.000Z | mysql_test/mysql_test.cpp | iassasin/wschatserver | f5b1ae1a37e534bfee93102603f93e85642e230d | [
"MIT"
] | 27 | 2016-11-24T12:42:30.000Z | 2022-01-05T20:39:35.000Z | mysql_test/mysql_test.cpp | iassasin/wschatserver | f5b1ae1a37e534bfee93102603f93e85642e230d | [
"MIT"
] | 1 | 2017-01-29T13:25:06.000Z | 2017-01-29T13:25:06.000Z | #include <mysql_connection.h>
#include <mysql_driver.h>
#include <cppconn/resultset.h>
#include <cppconn/statement.h>
#include <iostream>
#include "../db.hpp"
using namespace std;
int main_old(int argc, char **argv){
sql::Connection *con;
sql::mysql::MySQL_Driver driver;
con = driver.connect("tcp://localhost:330... | 21.266667 | 84 | 0.624869 | iassasin |
f555ab57f2cde31355783205195880c19add3d99 | 1,422 | cpp | C++ | eagleye_util/nmea2fix/src/nmea2fix_node.cpp | takahirokashimoto/eagleye | c80be13b0aba27f9e82d352a80da40300f28d395 | [
"BSD-3-Clause"
] | 329 | 2020-03-19T00:41:00.000Z | 2022-03-31T05:52:33.000Z | eagleye_util/nmea2fix/src/nmea2fix_node.cpp | takahirokashimoto/eagleye | c80be13b0aba27f9e82d352a80da40300f28d395 | [
"BSD-3-Clause"
] | 22 | 2020-03-20T09:14:19.000Z | 2022-03-24T23:47:55.000Z | eagleye_util/nmea2fix/src/nmea2fix_node.cpp | takahirokashimoto/eagleye | c80be13b0aba27f9e82d352a80da40300f28d395 | [
"BSD-3-Clause"
] | 79 | 2020-03-19T03:08:29.000Z | 2022-03-09T00:54:03.000Z |
#include "ros/ros.h"
#include "nmea2fix/nmea2fix.hpp"
static ros::Publisher pub1,pub2;
static nmea_msgs::Sentence sentence;
static std::string sub_topic_name,pub_fix_topic_name,pub_gga_topic_name;
static bool output_gga;
void nmea_callback(const nmea_msgs::Sentence::ConstPtr &msg)
{
nmea_msgs::Gpgga gga;
sensor... | 29.020408 | 80 | 0.729958 | takahirokashimoto |
f55a9c94da45dcc98ad6a3668e218f00c1b7fa7c | 27,477 | cpp | C++ | Sea_Chain/scenes/scene_tutorial_main.cpp | Vvaridus/SeaChain | 5e48925161e6244245f3af21bd8a1cb7a7acfbd4 | [
"MIT"
] | null | null | null | Sea_Chain/scenes/scene_tutorial_main.cpp | Vvaridus/SeaChain | 5e48925161e6244245f3af21bd8a1cb7a7acfbd4 | [
"MIT"
] | null | null | null | Sea_Chain/scenes/scene_tutorial_main.cpp | Vvaridus/SeaChain | 5e48925161e6244245f3af21bd8a1cb7a7acfbd4 | [
"MIT"
] | null | null | null | #include "scene_tutorial_main.h"
#include "../components/cmp_player_physics.h"
#include "../components/cmp_sprite.h"
#include "../game.h"
#include <LevelSystem.h>
#include <iostream>
#include <thread>
#include "../components/cmp_basic_movement.h"
#include <logger.h>
#include "../weapon.h"
#include "../components/cmp_in... | 34.958015 | 146 | 0.682607 | Vvaridus |
f55b73dbe3df91f834f9739c6517cac2cac2214a | 25,941 | cpp | C++ | src/coreclr/src/binder/fusionassemblyname.cpp | abock/runtime | b3346807be96f6089fc1538946b3611f607389e2 | [
"MIT"
] | 6 | 2020-01-04T14:02:35.000Z | 2020-01-05T15:28:09.000Z | src/coreclr/src/binder/fusionassemblyname.cpp | abock/runtime | b3346807be96f6089fc1538946b3611f607389e2 | [
"MIT"
] | null | null | null | src/coreclr/src/binder/fusionassemblyname.cpp | abock/runtime | b3346807be96f6089fc1538946b3611f607389e2 | [
"MIT"
] | 3 | 2021-02-10T16:20:05.000Z | 2021-03-12T07:55:36.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// ============================================================
//
// FusionAssemblyName.cpp
//
// Implements the CAs... | 30.304907 | 118 | 0.50584 | abock |
f561d11b9dd3a36040d9e52e7353bf2980ca23dc | 1,903 | hpp | C++ | Include/Utils.hpp | grovix/SCLKernelDecoder | c29775d262c30354b7b6787c1d42e205172b1f3c | [
"Apache-2.0"
] | 3 | 2021-07-18T00:53:59.000Z | 2021-07-26T10:13:47.000Z | Include/Utils.hpp | grovix/SCLKernelDecoder | c29775d262c30354b7b6787c1d42e205172b1f3c | [
"Apache-2.0"
] | null | null | null | Include/Utils.hpp | grovix/SCLKernelDecoder | c29775d262c30354b7b6787c1d42e205172b1f3c | [
"Apache-2.0"
] | 1 | 2022-02-10T13:47:46.000Z | 2022-02-10T13:47:46.000Z | /*------------------------------------------------------------------------
Some functions required for kernel processing
Copyright 2020 Grigorii Trofimiuk, Peter Trifonov
Licensed under the Apache License,
Version 2.0(the "License");
you may not use this file except in compliance with the License.
You may obtai... | 33.385965 | 93 | 0.629007 | grovix |
f56343e7961ac2ddaf788c511756ea4aa2b800bb | 4,565 | hpp | C++ | plugin/serializer/include/minko/file/GeometryParser.hpp | aerys/minko | edc3806a4e01570c5cb21f3402223ca695d08d22 | [
"BSD-3-Clause"
] | 478 | 2015-01-04T16:59:53.000Z | 2022-03-07T20:28:07.000Z | plugin/serializer/include/minko/file/GeometryParser.hpp | aerys/minko | edc3806a4e01570c5cb21f3402223ca695d08d22 | [
"BSD-3-Clause"
] | 83 | 2015-01-15T21:45:06.000Z | 2021-11-08T11:01:48.000Z | plugin/serializer/include/minko/file/GeometryParser.hpp | aerys/minko | edc3806a4e01570c5cb21f3402223ca695d08d22 | [
"BSD-3-Clause"
] | 175 | 2015-01-04T03:30:39.000Z | 2020-01-27T17:08:14.000Z | /*
Copyright (c) 2014 Aerys
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicens... | 39.017094 | 140 | 0.607886 | aerys |
f5662f9dd4c70058ba585ee94f29d220eddef5fb | 1,422 | cpp | C++ | irohad/multi_sig_transactions/storage/impl/mst_storage.cpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 24 | 2016-09-26T17:11:46.000Z | 2020-03-03T13:42:58.000Z | irohad/multi_sig_transactions/storage/impl/mst_storage.cpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 11 | 2016-10-13T10:09:55.000Z | 2019-06-13T08:49:11.000Z | irohad/multi_sig_transactions/storage/impl/mst_storage.cpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 4 | 2016-09-27T13:18:28.000Z | 2019-08-05T20:47:15.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include <utility>
#include "multi_sig_transactions/storage/mst_storage.hpp"
namespace iroha {
MstStorage::MstStorage(logger::LoggerPtr log) : log_{std::move(log)} {}
StateUpdateResult MstStorage::apply(
c... | 30.255319 | 73 | 0.729958 | akshatkarani |
f5664a55e1ed673dd2b43009f33a7c1faff1e1a2 | 72 | hpp | C++ | source/console-draw/rect.hpp | skwirl42/robco-processor | eb92ee0d2402403b36b9b796f80c3d46aaed1442 | [
"MIT"
] | null | null | null | source/console-draw/rect.hpp | skwirl42/robco-processor | eb92ee0d2402403b36b9b796f80c3d46aaed1442 | [
"MIT"
] | 30 | 2020-12-29T13:25:25.000Z | 2021-09-28T12:03:35.000Z | source/console-draw/rect.hpp | skwirl42/robco-processor | eb92ee0d2402403b36b9b796f80c3d46aaed1442 | [
"MIT"
] | null | null | null | #pragma once
struct rect
{
int x;
int y;
int width;
int height;
};
| 7.2 | 12 | 0.625 | skwirl42 |
f566d8d2fac77bd34cd624683cf43ccbc3d2f6d1 | 8,204 | cpp | C++ | Bacchus_Engine/BlockheadInspector.cpp | ForestGin/Bacchus_Engine | 4cdc9aa576fa3c91aed75654aa333ed78070b5ce | [
"MIT"
] | null | null | null | Bacchus_Engine/BlockheadInspector.cpp | ForestGin/Bacchus_Engine | 4cdc9aa576fa3c91aed75654aa333ed78070b5ce | [
"MIT"
] | null | null | null | Bacchus_Engine/BlockheadInspector.cpp | ForestGin/Bacchus_Engine | 4cdc9aa576fa3c91aed75654aa333ed78070b5ce | [
"MIT"
] | null | null | null | #include "Application.h"
#include "ModuleSceneManager.h"
#include "ModuleRenderer3D.h"
#include "BlockheadInspector.h"
#include "GameObject.h"
#include "ComponentMesh.h"
#include "ComponentMaterial.h"
#include "ComponentRenderer.h"
#include "ComponentTransform.h"
#include "ComponentCamera.h"
#include "ResourceMesh.h... | 24.272189 | 113 | 0.695758 | ForestGin |
f56729fcd5b8fd504ca52f5eadcba9d8580676ac | 12,430 | cpp | C++ | src/tests/class_tests/openms/source/MetaInfoInterface_test.cpp | vmusch/OpenMS | 3c4a078ad4687677393c138d4acb91bb444a7c7b | [
"BSL-1.0",
"Zlib",
"Apache-2.0"
] | 348 | 2015-01-17T16:50:12.000Z | 2022-03-30T22:55:39.000Z | src/tests/class_tests/openms/source/MetaInfoInterface_test.cpp | vmusch/OpenMS | 3c4a078ad4687677393c138d4acb91bb444a7c7b | [
"BSL-1.0",
"Zlib",
"Apache-2.0"
] | 4,259 | 2015-01-01T14:07:54.000Z | 2022-03-31T16:49:14.000Z | src/tests/class_tests/openms/source/MetaInfoInterface_test.cpp | vmusch/OpenMS | 3c4a078ad4687677393c138d4acb91bb444a7c7b | [
"BSL-1.0",
"Zlib",
"Apache-2.0"
] | 266 | 2015-01-24T14:56:14.000Z | 2022-03-30T12:32:35.000Z | // --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... | 34.527778 | 123 | 0.713033 | vmusch |
f568388f82858f3891e51bf19fa53d3dbb9de993 | 71,015 | cpp | C++ | framework/common/tcuTextureUtil.cpp | asimiklit/VK-GL-CTS | ededa67cb12aec0c5e92e3eba40d3f3c7b4d697f | [
"Apache-2.0"
] | 1 | 2021-07-15T23:37:39.000Z | 2021-07-15T23:37:39.000Z | framework/common/tcuTextureUtil.cpp | asimiklit/VK-GL-CTS | ededa67cb12aec0c5e92e3eba40d3f3c7b4d697f | [
"Apache-2.0"
] | 1 | 2021-03-22T09:53:25.000Z | 2021-03-22T09:53:25.000Z | framework/common/tcuTextureUtil.cpp | asimiklit/VK-GL-CTS | ededa67cb12aec0c5e92e3eba40d3f3c7b4d697f | [
"Apache-2.0"
] | null | null | null | /*-------------------------------------------------------------------------
* drawElements Quality Program Tester Core
* ----------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... | 38.637106 | 168 | 0.689756 | asimiklit |
f569963a97c8bf5e0a151422d09ad513ccce9f0f | 39,535 | cpp | C++ | tests/test_estimator_pwm.cpp | AlterB/chronovise | 5c5fac329b143f3e62ebbc8523d7e205835dd4cb | [
"Apache-2.0"
] | 2 | 2021-02-04T18:22:41.000Z | 2021-12-08T10:57:00.000Z | tests/test_estimator_pwm.cpp | AlterB/chronovise | 5c5fac329b143f3e62ebbc8523d7e205835dd4cb | [
"Apache-2.0"
] | 9 | 2018-03-20T10:24:22.000Z | 2018-08-27T21:53:56.000Z | tests/test_estimator_pwm.cpp | AlterB/chronovise | 5c5fac329b143f3e62ebbc8523d7e205835dd4cb | [
"Apache-2.0"
] | 4 | 2018-05-16T14:27:55.000Z | 2022-01-28T17:18:24.000Z | #include "gtest/gtest.h"
#include "evt/gev_distribution.hpp"
#include "evt/gpd_distribution.hpp"
#include "evt/evtapproach_bm.hpp"
#include "evt/evtapproach_pot.hpp"
#include "statistical/estimator_pwm.hpp"
#include "utility/oop.hpp"
using namespace chronovise;
class EstimatorPWM_Test : public ::testing::Test {
prote... | 194.753695 | 12,494 | 0.753813 | AlterB |
f5765ea08d58e30f58316a9452fe376ca796ac09 | 3,821 | cpp | C++ | libraries/vulkan_renderer/private/VulkanSwapChain.cpp | cledant/particle_system_vulkan | d321eb6bae618138ad445368fa10b25a27a55d02 | [
"MIT"
] | 4 | 2021-12-20T19:35:20.000Z | 2021-12-27T10:59:35.000Z | libraries/vulkan_renderer/private/VulkanSwapChain.cpp | cledant/particle_system_vulkan | d321eb6bae618138ad445368fa10b25a27a55d02 | [
"MIT"
] | null | null | null | libraries/vulkan_renderer/private/VulkanSwapChain.cpp | cledant/particle_system_vulkan | d321eb6bae618138ad445368fa10b25a27a55d02 | [
"MIT"
] | 3 | 2021-12-27T06:51:00.000Z | 2021-12-31T07:42:45.000Z | #include "VulkanSwapChain.hpp"
#include <stdexcept>
#include "utils/VulkanImage.hpp"
#include "utils/VulkanSwapChainUtils.hpp"
#include "utils/VulkanPhysicalDevice.hpp"
void
VulkanSwapChain::init(VulkanInstance const &vkInstance,
uint32_t fb_w,
uint32_t fb_h)
{
_device... | 32.381356 | 79 | 0.713688 | cledant |
f5776324973ed49c80b1cd47d665865932adfce6 | 661 | cpp | C++ | C++/9.std/3.iterator/9.3.stl_iterator.cpp | Song2017/LabSourceCode | fb0a30f161c99f9c27d2fcdcf5fbb939c94684b8 | [
"MIT"
] | 2 | 2018-12-04T01:07:48.000Z | 2019-01-02T09:49:25.000Z | C++/9.std/3.iterator/9.3.stl_iterator.cpp | Song2017/LabSourceCode | fb0a30f161c99f9c27d2fcdcf5fbb939c94684b8 | [
"MIT"
] | 5 | 2020-05-25T09:15:49.000Z | 2021-03-15T02:21:40.000Z | C++/9.std/3.iterator/9.3.stl_iterator.cpp | Song2017/LabSourceCode | fb0a30f161c99f9c27d2fcdcf5fbb939c94684b8 | [
"MIT"
] | 3 | 2019-04-09T07:30:21.000Z | 2019-07-09T12:48:13.000Z | #include <iostream>
#include <list>
using namespace std;
int main()
{
// STL iterator
// 迭代器是一种smart pointer, 用于访问顺序容器和关联容器中的元素
// 相当于容器和操作容器的算法的之间的中介
cout << " std iterator " << endl;
list<int> v;
v.push_back(3);
v.push_back(4);
v.push_front(2);
v.push_front(1);
list<int>::cons... | 22.793103 | 50 | 0.517398 | Song2017 |
f577a06d74cad2f5af9604df8888fe023bce2c7f | 1,783 | cpp | C++ | c++/RealInterviewQ/maxsum.cpp | praveenpandit/programming | ee07b19d495f363297b5cc80d0b0a51b02cd964d | [
"MIT"
] | null | null | null | c++/RealInterviewQ/maxsum.cpp | praveenpandit/programming | ee07b19d495f363297b5cc80d0b0a51b02cd964d | [
"MIT"
] | null | null | null | c++/RealInterviewQ/maxsum.cpp | praveenpandit/programming | ee07b19d495f363297b5cc80d0b0a51b02cd964d | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <map>
#include <algorithm>
using namespace std;
class solution
{
int *arr;
int length;
map<int, vector<int>> mp;
int sumDigit(int a)
{
if (a == 0)
return 0;
else
return (a % 10 + sumDigit(a / 10));
}
void... | 21.743902 | 68 | 0.398205 | praveenpandit |
f57deec6e825181ede2cac20d6f4b76aa8b3942a | 1,605 | hpp | C++ | include/PgfPlotsGroupPlot.hpp | ksmith0/root2tikz | b87f464a988ec8629c8adb9d0fdcb15c990a9b07 | [
"MIT"
] | null | null | null | include/PgfPlotsGroupPlot.hpp | ksmith0/root2tikz | b87f464a988ec8629c8adb9d0fdcb15c990a9b07 | [
"MIT"
] | null | null | null | include/PgfPlotsGroupPlot.hpp | ksmith0/root2tikz | b87f464a988ec8629c8adb9d0fdcb15c990a9b07 | [
"MIT"
] | null | null | null | /**
* @author Karl Smith
* @date Mar 5, 2018
*/
#ifndef PGFPLOTSGROUPPLOT_HPP
#define PGFPLOTSGROUPPLOT_HPP
#include "PgfPlotsAxis.hpp"
#include "PgfPlotsGroupSubPlot.hpp"
class PgfPlotsGroupPlot : public PgfPlotsAxis {
public:
PgfPlotsGroupPlot(unsigned int rows, unsigned int columns, std::string options="");... | 26.75 | 85 | 0.730218 | ksmith0 |
f584b7d38c14d64e5d8906a84361732b316a2066 | 5,343 | cpp | C++ | ParseTestSuite/src/TestPFManager.cpp | sourada/Parse-Qt-SDK | 32bb10a37ddebc71bae4e648438efb3bd9fdd48b | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | ParseTestSuite/src/TestPFManager.cpp | sourada/Parse-Qt-SDK | 32bb10a37ddebc71bae4e648438efb3bd9fdd48b | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | ParseTestSuite/src/TestPFManager.cpp | sourada/Parse-Qt-SDK | 32bb10a37ddebc71bae4e648438efb3bd9fdd48b | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | //
// TestPFManager.cpp
// ParseTestSuite
//
// Created by Christian Noon on 11/14/13.
// Copyright (c) 2013 Christian Noon. All rights reserved.
//
#include "PFManager.h"
#include "TestRunner.h"
using namespace parse;
class TestPFManager : public QObject
{
Q_OBJECT
private slots:
// Class init and cleanu... | 32.186747 | 107 | 0.75613 | sourada |
f588f904454f214864adda604b2654c69d97734f | 1,017 | hpp | C++ | Server.hpp | mpmartin8080/boop | acd724ebd7c5b950baa6d2bd70e7eb84cce1974c | [
"MIT"
] | null | null | null | Server.hpp | mpmartin8080/boop | acd724ebd7c5b950baa6d2bd70e7eb84cce1974c | [
"MIT"
] | null | null | null | Server.hpp | mpmartin8080/boop | acd724ebd7c5b950baa6d2bd70e7eb84cce1974c | [
"MIT"
] | null | null | null | #ifndef SERVER_HPP
#define SERVER_HPP
#include "Global.hpp"
#include "Demultiplexer.hpp"
#include "Multiplexer.hpp"
#include "UDPSocket.hpp"
#include "ProxyTable.hpp"
#include "Controller.hpp"
#include <thread>
#include <mutex>
#include <condition_variable>
#include <list>
struct ControlCmd;
class Controller;
// Ma... | 19.941176 | 55 | 0.709931 | mpmartin8080 |
f58a0dfaded949bf18dc15a8df8bec32b9ea1d5f | 3,204 | cpp | C++ | test/pgfe/pgfe-unit-connection-rows.cpp | thevojacek/pgfe | 22e85d4039c347dc4bb61bde8bdb0c4eeea860cf | [
"Zlib"
] | null | null | null | test/pgfe/pgfe-unit-connection-rows.cpp | thevojacek/pgfe | 22e85d4039c347dc4bb61bde8bdb0c4eeea860cf | [
"Zlib"
] | null | null | null | test/pgfe/pgfe-unit-connection-rows.cpp | thevojacek/pgfe | 22e85d4039c347dc4bb61bde8bdb0c4eeea860cf | [
"Zlib"
] | null | null | null | // -*- C++ -*-
// Copyright (C) Dmitry Igrishin
// For conditions of distribution and use, see files LICENSE.txt or pgfe.hpp
#include "pgfe-unit.hpp"
#include "dmitigr/pgfe.hpp"
struct Person {
int id;
std::string name;
unsigned int age;
};
void print(const Person& p)
{
std::cout << "{\n";
std::cout << " ... | 25.228346 | 89 | 0.560861 | thevojacek |
f58c713052d019c6780e12795023f729681c2da7 | 3,126 | cpp | C++ | tests/language_unit/ast/node/assgn_test.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | tests/language_unit/ast/node/assgn_test.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | tests/language_unit/ast/node/assgn_test.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | null | null | null | #include <stan/language/ast.hpp>
#include <gtest/gtest.h>
#include <string>
using stan::lang::assgn;
using stan::lang::bare_expr_type;
using stan::lang::binary_op;
using stan::lang::double_literal;
using stan::lang::double_type;
using stan::lang::expression;
using stan::lang::idx;
using stan::lang::index_op_sliced;
us... | 26.948276 | 59 | 0.689379 | alashworth |
f594ab6778155b1ed7e5617943bdaf59c081cb4e | 428 | hpp | C++ | common/imgutils/imgmath.impl.hpp | dustsigns/lecture-demos | 50d5abb252e7e467e9648b61310ce93b85c6c5f0 | [
"BSD-3-Clause"
] | 14 | 2018-03-26T13:43:58.000Z | 2022-03-03T13:04:36.000Z | common/imgutils/imgmath.impl.hpp | dustsigns/lecture-demos | 50d5abb252e7e467e9648b61310ce93b85c6c5f0 | [
"BSD-3-Clause"
] | null | null | null | common/imgutils/imgmath.impl.hpp | dustsigns/lecture-demos | 50d5abb252e7e467e9648b61310ce93b85c6c5f0 | [
"BSD-3-Clause"
] | 1 | 2019-08-03T23:12:08.000Z | 2019-08-03T23:12:08.000Z | //Helper functions for calculations on images (template implementations)
// Andreas Unterweger, 2017-2018
//This code is licensed under the 3-Clause BSD License. See LICENSE file for details.
#pragma once
//#include "imgmath.hpp"
namespace imgutils
{
constexpr double LevelShift(const double value)
{
return v... | 20.380952 | 85 | 0.733645 | dustsigns |
f594c2b996b1d3b9d4fa3d80b9aebb974d828137 | 2,300 | cpp | C++ | ext/src/sublstm.cpp | cimacmillan/pytorch-subLSTM | 428e259063a016f6ddee0ec69e356bf8c1d87a44 | [
"MIT"
] | null | null | null | ext/src/sublstm.cpp | cimacmillan/pytorch-subLSTM | 428e259063a016f6ddee0ec69e356bf8c1d87a44 | [
"MIT"
] | null | null | null | ext/src/sublstm.cpp | cimacmillan/pytorch-subLSTM | 428e259063a016f6ddee0ec69e356bf8c1d87a44 | [
"MIT"
] | null | null | null | #include <torch/extension.h>
#include <iostream>
#include <vector>
torch::Tensor d_sigmoid(torch::Tensor z) {
auto s = torch::sigmoid(z);
return (1 - s) * s;
}
// tanh'(z) = 1 - tanh^2(z)
torch::Tensor d_tanh(torch::Tensor z) {
return 1 - z.tanh().pow(2);
}
// elu'(z) = relu'(z) + { alpha * exp(z) if (alpha * ... | 28.75 | 86 | 0.607391 | cimacmillan |
f597498f712d872f2e84af4a0b7bc9369efb1c4a | 7,397 | cpp | C++ | netsvcs/clients/Tokens/rw_lock/rw_locks.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | null | null | null | netsvcs/clients/Tokens/rw_lock/rw_locks.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | null | null | null | netsvcs/clients/Tokens/rw_lock/rw_locks.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | 1 | 2020-04-26T03:07:12.000Z | 2020-04-26T03:07:12.000Z |
//=============================================================================
/**
* @file rw_locks.cpp
*
* test_rw_locks shows how to use ACE_Local_RLock, ACE_Local_WLock,
* ACE_Remote_RLock, and ACE_Remote_WLock.
*
* @author Tim Harrison
*/
//=================================================... | 29.588 | 88 | 0.493443 | azerothcore |
60d20eef6a795596af65e072330a15cf8d34af64 | 1,932 | cpp | C++ | src/fontgen/main.cpp | mikelange49/pedalevite | a81bd8a6119c5920995ec91b9f70e11e9379580e | [
"WTFPL"
] | 69 | 2017-01-17T13:17:31.000Z | 2022-03-01T14:56:32.000Z | src/fontgen/main.cpp | mikelange49/pedalevite | a81bd8a6119c5920995ec91b9f70e11e9379580e | [
"WTFPL"
] | 1 | 2020-11-03T14:52:45.000Z | 2020-12-01T20:31:15.000Z | src/fontgen/main.cpp | mikelange49/pedalevite | a81bd8a6119c5920995ec91b9f70e11e9379580e | [
"WTFPL"
] | 8 | 2017-02-08T13:30:42.000Z | 2021-12-09T08:43:09.000Z | /*****************************************************************************
main.cpp
Author: Laurent de Soras, 2019
--- Legal stuff ---
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the terms ... | 22.206897 | 78 | 0.493789 | mikelange49 |
60d353def9af38b2a10a30ffb4805392003414c1 | 2,494 | cpp | C++ | src/map/packets/message_standard.cpp | MarkWaldron/topaz | 271665a3cb6c0e0cd9842d32e5b91dd14541c9f3 | [
"FTL"
] | 2 | 2020-09-17T12:21:55.000Z | 2022-02-06T02:59:57.000Z | src/map/packets/message_standard.cpp | MarkWaldron/topaz | 271665a3cb6c0e0cd9842d32e5b91dd14541c9f3 | [
"FTL"
] | 5 | 2020-04-10T19:33:53.000Z | 2021-06-27T17:50:05.000Z | src/map/packets/message_standard.cpp | MarkWaldron/topaz | 271665a3cb6c0e0cd9842d32e5b91dd14541c9f3 | [
"FTL"
] | 2 | 2020-04-11T16:56:14.000Z | 2021-06-26T12:21:12.000Z | /*
===========================================================================
Copyright (c) 2010-2015 Darkstar Dev Teams
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of ... | 27.108696 | 124 | 0.661989 | MarkWaldron |
60d811429af6d48d5adccf0e043a007c9f6af197 | 7,458 | cxx | C++ | Modules/Visualization/MonteverdiGui/src/mvdStatusBarWidget.cxx | heralex/OTB | c52b504b64dc89c8fe9cac8af39b8067ca2c3a57 | [
"Apache-2.0"
] | 317 | 2015-01-19T08:40:58.000Z | 2022-03-17T11:55:48.000Z | Modules/Visualization/MonteverdiGui/src/mvdStatusBarWidget.cxx | guandd/OTB | 707ce4c6bb4c7186e3b102b2b00493a5050872cb | [
"Apache-2.0"
] | 18 | 2015-07-29T14:13:45.000Z | 2021-03-29T12:36:24.000Z | Modules/Visualization/MonteverdiGui/src/mvdStatusBarWidget.cxx | guandd/OTB | 707ce4c6bb4c7186e3b102b2b00493a5050872cb | [
"Apache-2.0"
] | 132 | 2015-02-21T23:57:25.000Z | 2022-03-25T16:03:16.000Z | /*
* Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... | 25.367347 | 147 | 0.508313 | heralex |
60d9b5c7bee32d86b125b14357bdceda1e5109b8 | 2,598 | cpp | C++ | facebook/2017/round1/3/main.cpp | seirion/code | 3b8bf79764107255185061cec33decbc2235d03a | [
"Apache-2.0"
] | 13 | 2015-06-07T09:26:26.000Z | 2019-05-01T13:23:38.000Z | facebook/2017/round1/3/main.cpp | seirion/code | 3b8bf79764107255185061cec33decbc2235d03a | [
"Apache-2.0"
] | null | null | null | facebook/2017/round1/3/main.cpp | seirion/code | 3b8bf79764107255185061cec33decbc2235d03a | [
"Apache-2.0"
] | 4 | 2016-03-05T06:21:05.000Z | 2017-02-17T15:34:18.000Z | // https://www.facebook.com/hackercup/problem/300438463685411/
// Facebook Hacker Cup 2016 Round 1
// Manic Moving
#include <iostream>
#include <cstdio>
#include <cstring>
#include <set>
using namespace std;
const int INF = 0x7f7f7f7f;
class Line { public:
Line(int t, int c) : to(t), cost(c) {}
int to, cost;... | 23.618182 | 78 | 0.454965 | seirion |
60d9f3a3a8331e59a81aa199055116b2ec970e2b | 953 | cpp | C++ | CPPSolutions/Hackerrank/CountingValleys.cpp | Dilbarjot/CP | 2395c6c270e53277a7a020e5b467e517353bc229 | [
"MIT"
] | null | null | null | CPPSolutions/Hackerrank/CountingValleys.cpp | Dilbarjot/CP | 2395c6c270e53277a7a020e5b467e517353bc229 | [
"MIT"
] | null | null | null | CPPSolutions/Hackerrank/CountingValleys.cpp | Dilbarjot/CP | 2395c6c270e53277a7a020e5b467e517353bc229 | [
"MIT"
] | null | null | null | /**
** Created by dilbar on 2021-01-17
** In progress
**/
#include <bits/stdc++.h>
using namespace std;
/*
* Complete the 'countingValleys' function below.
*
* The function is expected to return an INTEGER.
* The function accepts following parameters:
* 1. INTEGER steps
* 2. STRING path
*/
int countingV... | 19.44898 | 49 | 0.481637 | Dilbarjot |
60db6d7819fddb6ac56c9ae7a247232857fbac0b | 2,314 | cpp | C++ | src/execution/insert_executor.cpp | duynguyen-ori75/bustub-2019 | 5932f34c602aa8adbb25e7d1b70d82cb0802693f | [
"MIT"
] | 10 | 2020-10-11T15:29:56.000Z | 2021-10-09T06:59:14.000Z | src/execution/insert_executor.cpp | duynguyen-ori75/bustub-2019 | 5932f34c602aa8adbb25e7d1b70d82cb0802693f | [
"MIT"
] | 1 | 2020-10-01T03:36:12.000Z | 2020-10-01T03:36:12.000Z | src/execution/insert_executor.cpp | duynguyen-ori75/bustub-2019 | 5932f34c602aa8adbb25e7d1b70d82cb0802693f | [
"MIT"
] | 9 | 2020-09-01T03:35:19.000Z | 2022-02-04T05:00:26.000Z | //===----------------------------------------------------------------------===//
//
// BusTub
//
// insert_executor.cpp
//
// Identification: src/execution/insert_executor.cpp
//
// Copyright (c) 2015-19, Carnegie Mellon University Database Group
//
//===-------------------------------... | 36.730159 | 107 | 0.610631 | duynguyen-ori75 |
60dea5a4b2183c353cad8d1b08c062bb22bc471c | 5,609 | cpp | C++ | Splash_CPP/Splash_BackUpThisFolder_ButDontShipItWithYourGame/il2cppOutput/UnityEngine.IMGUIModule1.cpp | seonghwan-dev/Splash-Demonstration | b41a9be7ea3c22fb3e9d461b64bc87df70123c4a | [
"MIT"
] | null | null | null | Splash_CPP/Splash_BackUpThisFolder_ButDontShipItWithYourGame/il2cppOutput/UnityEngine.IMGUIModule1.cpp | seonghwan-dev/Splash-Demonstration | b41a9be7ea3c22fb3e9d461b64bc87df70123c4a | [
"MIT"
] | null | null | null | Splash_CPP/Splash_BackUpThisFolder_ButDontShipItWithYourGame/il2cppOutput/UnityEngine.IMGUIModule1.cpp | seonghwan-dev/Splash-Demonstration | b41a9be7ea3c22fb3e9d461b64bc87df70123c4a | [
"MIT"
] | null | null | null | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <limits>
#include <stdint.h>
// System.Byte[]
struct ByteU5BU5D_tA6237BF417AE52AD70CFB4EF24A7A82613DF9031;
// System.Char[]
struct CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB;
// System.String
struct ... | 25.495455 | 186 | 0.808522 | seonghwan-dev |
60def206a9486274c6b0ef84f696e5b451efa39f | 2,778 | hpp | C++ | src/mlpack/methods/ann/layer/not_adapted/concat_performance_impl.hpp | shubham1206agra/mlpack | 2c656fcba850134f3f5d1dd1a6a1a15743aa7661 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | src/mlpack/methods/ann/layer/not_adapted/concat_performance_impl.hpp | shubham1206agra/mlpack | 2c656fcba850134f3f5d1dd1a6a1a15743aa7661 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | src/mlpack/methods/ann/layer/not_adapted/concat_performance_impl.hpp | shubham1206agra/mlpack | 2c656fcba850134f3f5d1dd1a6a1a15743aa7661 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | /**
* @file methods/ann/layer/concat_performance_impl.hpp
* @author Marcus Edel
*
* Implementation of the ConcatPerformance class.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of the
* 3-clause BSD license a... | 23.542373 | 78 | 0.714543 | shubham1206agra |
60e0a67cb07d212827575cfd62fa21023b2a36e2 | 2,579 | cpp | C++ | samples/Lua2D/proj.win32/main.cpp | pontelua/Lua2D | dde44d78d1600bb9a06e27908cfddf441e1012a6 | [
"Zlib",
"libtiff",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"Libpng",
"curl",
"BSD-3-Clause"
] | 2 | 2015-03-22T00:17:30.000Z | 2017-09-30T03:23:25.000Z | samples/Lua2D/proj.win32/main.cpp | pontelua/Lua2D | dde44d78d1600bb9a06e27908cfddf441e1012a6 | [
"Zlib",
"libtiff",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"Libpng",
"curl",
"BSD-3-Clause"
] | null | null | null | samples/Lua2D/proj.win32/main.cpp | pontelua/Lua2D | dde44d78d1600bb9a06e27908cfddf441e1012a6 | [
"Zlib",
"libtiff",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"Libpng",
"curl",
"BSD-3-Clause"
] | null | null | null | #include "main.h"
#include "AppDelegate.h"
#include "CCEGLView.h"
#include "XGetOpt.h"
#include <ShellAPI.h>
USING_NS_CC;
static void parseOptions(AppDelegate* app, int argc, TCHAR* argv[]);
#ifdef _CONSOLE
int _tmain(int argc, _TCHAR* argv[])
{
#else
// uncomment below line, open debug console
#defi... | 22.823009 | 88 | 0.630089 | pontelua |
60e5e83d6c470fc4136506c0af368163104b0d87 | 1,327 | cpp | C++ | CSES/Graph Algorithms/Shortest Routes I.cpp | s166harth/CC | b6c0fe58f03633fe2787a567a16909f1b2966e7b | [
"MIT"
] | 406 | 2020-05-28T13:35:08.000Z | 2022-03-31T17:23:26.000Z | CSES/Graph Algorithms/Shortest Routes I.cpp | shakeeb-droids/CC | 2f49fcb52d748804aee9fc7f26abb3150bec69e5 | [
"MIT"
] | 3 | 2021-01-01T17:50:34.000Z | 2021-10-02T10:02:27.000Z | CSES/Graph Algorithms/Shortest Routes I.cpp | shakeeb-droids/CC | 2f49fcb52d748804aee9fc7f26abb3150bec69e5 | [
"MIT"
] | 108 | 2020-07-21T13:02:33.000Z | 2022-03-28T22:46:49.000Z | /**
🍪 the_hyp0cr1t3
🍪 18.05.2021 00:21:28
**/
#ifdef W
#include <k_II.h>
#else
#include <bits/stdc++.h>
using namespace std;
#endif
#define pb emplace_back
#define all(x) x.begin(), x.end()
#define sz(x) static_cast<int32_t>(x.size())
auto chmax = [](auto& A, auto&& B) { return B > A? A = B, true : fals... | 25.519231 | 74 | 0.497362 | s166harth |
60e6638b0e4872e946e98a709ecc923cb59bdb2d | 236 | cpp | C++ | raygame/MasterTile.cpp | DynashEtvala/CodeDesignAndDataStructures | c516f9e1a6bde3e41f716114bb74da993f8cbfd8 | [
"MIT"
] | null | null | null | raygame/MasterTile.cpp | DynashEtvala/CodeDesignAndDataStructures | c516f9e1a6bde3e41f716114bb74da993f8cbfd8 | [
"MIT"
] | null | null | null | raygame/MasterTile.cpp | DynashEtvala/CodeDesignAndDataStructures | c516f9e1a6bde3e41f716114bb74da993f8cbfd8 | [
"MIT"
] | null | null | null | #include "MasterTile.h"
MasterTile::MasterTile() : Tile()
{
masterTile = true;
}
MasterTile::~MasterTile()
{}
void MasterTile::CycleTexture()
{
currTex++;
if (currTex >= 4)
{
currTex = 0;
}
Background = textures[currTex];
} | 11.238095 | 33 | 0.644068 | DynashEtvala |
60e8562d2d6b0db73ffa640991a9333f25d2df03 | 10,152 | cc | C++ | src/Physics/Physics.cc | as1m0n/spheral | 4d72822f56aca76d70724c543d389d15ff6ca48e | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | src/Physics/Physics.cc | as1m0n/spheral | 4d72822f56aca76d70724c543d389d15ff6ca48e | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | src/Physics/Physics.cc | as1m0n/spheral | 4d72822f56aca76d70724c543d389d15ff6ca48e | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | //---------------------------------Spheral++----------------------------------//
// Physics -- The topmost abstract base class for all physics packages in
// Spheral++. Physics defines the methods generic to all physics classes,
// but leaves specialized interfaces for particular types of physics (radiative vs.
// hyd... | 37.323529 | 91 | 0.438042 | as1m0n |
60ea0654051b3f54427e8dfcd596036a6e480f80 | 4,508 | hpp | C++ | libcaf_core/caf/mailbox_element.hpp | dcode/actor-framework | 47ebe211f07d31725a3910ed966db1c31192d984 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | libcaf_core/caf/mailbox_element.hpp | dcode/actor-framework | 47ebe211f07d31725a3910ed966db1c31192d984 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | libcaf_core/caf/mailbox_element.hpp | dcode/actor-framework | 47ebe211f07d31725a3910ed966db1c31192d984 | [
"BSL-1.0",
"BSD-3-Clause"
] | 3 | 2020-05-21T20:54:58.000Z | 2020-06-17T13:44:13.000Z | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | 38.20339 | 80 | 0.564552 | dcode |
60ef26e094e5ace5b40479a13a644efb75b4fa48 | 591 | cpp | C++ | AceptaElReto/370_La13-14.cpp | OscarCaroNavarro/competitive-programming | 5ff52544119cbbfd35d4129fbfd14647808a8a44 | [
"Apache-2.0"
] | 2 | 2019-09-14T08:56:08.000Z | 2019-10-22T07:26:08.000Z | AceptaElReto/370_La13-14.cpp | OscarCaroNavarro/competitive-programming | 5ff52544119cbbfd35d4129fbfd14647808a8a44 | [
"Apache-2.0"
] | null | null | null | AceptaElReto/370_La13-14.cpp | OscarCaroNavarro/competitive-programming | 5ff52544119cbbfd35d4129fbfd14647808a8a44 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
bool isPrime(int num);
void print(bool is);
int main() {
short int n;
unsigned long long int num1, num2;
char aux;
bool is;
cin >> n;
for (int i = 0; i < n; i++){
cin >> num1;
cin >> aux;
cin >> num2;
if ((num2 - num1) == 1){
is = isPrime(num1);
print (is);
... | 14.775 | 35 | 0.529611 | OscarCaroNavarro |
60f204f575eec2a7233de6d19ff09fb8d0906495 | 1,409 | hpp | C++ | components/scream/src/physics/shoc/shoc_pblintd_surf_temp_impl.hpp | ambrad/scream | 52da60f65e870b8a3994bdbf4a6022fdcac7cab5 | [
"BSD-3-Clause"
] | 22 | 2018-12-12T17:44:55.000Z | 2022-03-11T03:47:38.000Z | components/scream/src/physics/shoc/shoc_pblintd_surf_temp_impl.hpp | ambrad/scream | 52da60f65e870b8a3994bdbf4a6022fdcac7cab5 | [
"BSD-3-Clause"
] | 1,440 | 2018-07-10T16:49:55.000Z | 2022-03-31T22:41:25.000Z | components/scream/src/physics/shoc/shoc_pblintd_surf_temp_impl.hpp | ambrad/scream | 52da60f65e870b8a3994bdbf4a6022fdcac7cab5 | [
"BSD-3-Clause"
] | 24 | 2018-11-12T15:43:53.000Z | 2022-03-30T18:10:52.000Z | #ifndef SHOC_PBLINTD_SURF_TEMP_IMPL_HPP
#define SHOC_PBLINTD_SURF_TEMP_IMPL_HPP
#include "shoc_functions.hpp" // for ETI only but harmless for GPU
namespace scream {
namespace shoc {
/*
* Implementation of shoc pblintd_surf_temp. Clients should NOT
* #include this file, but include shoc_functions.hpp instead.
*/
... | 27.096154 | 90 | 0.695529 | ambrad |
60f2fa07608c4b7a18836d990e486c7067a8d3cf | 11,584 | cpp | C++ | src/mongo/db/ops/modifier_set.cpp | krareT/mongo | 8776cef330c6de839d80ceec5bd2a63f3c411c6e | [
"Apache-2.0"
] | null | null | null | src/mongo/db/ops/modifier_set.cpp | krareT/mongo | 8776cef330c6de839d80ceec5bd2a63f3c411c6e | [
"Apache-2.0"
] | null | null | null | src/mongo/db/ops/modifier_set.cpp | krareT/mongo | 8776cef330c6de839d80ceec5bd2a63f3c411c6e | [
"Apache-2.0"
] | 5 | 2020-12-16T13:31:55.000Z | 2021-01-17T07:39:30.000Z | /**
* Copyright (C) 2013 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful... | 42.745387 | 100 | 0.65884 | krareT |
60f31026702865a07fed6025c9209fbc465f8f80 | 4,524 | cpp | C++ | 5/Code/ThirdParty/SDL2/src/thread/stdcpp/SDL_systhread.cpp | Zakhar-V/Prototypes | 413a7ce9fdb2a6f3ba97a041f798c71351efc855 | [
"MIT"
] | 1 | 2021-01-10T07:29:05.000Z | 2021-01-10T07:29:05.000Z | Code/External/SDL2/src/thread/stdcpp/SDL_systhread.cpp | Zakhar-V/NanoEngine | 01896caeae2e5505a8a5f303b07e84694c201d6d | [
"MIT"
] | null | null | null | Code/External/SDL2/src/thread/stdcpp/SDL_systhread.cpp | Zakhar-V/NanoEngine | 01896caeae2e5505a8a5f303b07e84694c201d6d | [
"MIT"
] | null | null | null | /*
Simple DirectMedia Layer
Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | 26.928571 | 100 | 0.673298 | Zakhar-V |
60f49327fa240593f58cf1574e872c3424d315f0 | 55,916 | cpp | C++ | src/catalog_po.cpp | jhertel/poed | 679057f8a9e051e482cbfa9caf2bfb37f8a4b0c2 | [
"MIT"
] | null | null | null | src/catalog_po.cpp | jhertel/poed | 679057f8a9e051e482cbfa9caf2bfb37f8a4b0c2 | [
"MIT"
] | null | null | null | src/catalog_po.cpp | jhertel/poed | 679057f8a9e051e482cbfa9caf2bfb37f8a4b0c2 | [
"MIT"
] | null | null | null | /*
* This file is part of Poedit (https://poedit.net)
*
* Copyright (C) 1999-2020 Vaclav Slavik
*
* 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 wi... | 31.431141 | 180 | 0.544656 | jhertel |
60f5d5fe22d3a047ee26954dcb7a20d16707716e | 815 | hpp | C++ | sprout/container/remake.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | 1 | 2020-02-04T05:16:01.000Z | 2020-02-04T05:16:01.000Z | sprout/container/remake.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | sprout/container/remake.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_CONTAINER_REMAKE_HPP
#define SPROUT_CONTAINER_REMAKE_HPP
#include <type_traits>
#include <sprout/config.hpp>
#include <sprout/container/container_traits.hpp>
#include <sprout/container/container_construct_traits.hpp>
#include <sprout/utility/forward.hpp>
namespace sprout {
//
// remake
/... | 31.346154 | 107 | 0.75092 | osyo-manga |
60f60afdea4b3f0705fb8b6465dcdf56d4823122 | 2,302 | cpp | C++ | src/cpp/rtps/writer/PersistentWriter.cpp | pbleyer/Fast-DDS | 1963bd8ccbe0bc6c93267fb1977565d32ef56188 | [
"Apache-2.0"
] | null | null | null | src/cpp/rtps/writer/PersistentWriter.cpp | pbleyer/Fast-DDS | 1963bd8ccbe0bc6c93267fb1977565d32ef56188 | [
"Apache-2.0"
] | null | null | null | src/cpp/rtps/writer/PersistentWriter.cpp | pbleyer/Fast-DDS | 1963bd8ccbe0bc6c93267fb1977565d32ef56188 | [
"Apache-2.0"
] | null | null | null | // Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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... | 29.896104 | 107 | 0.734144 | pbleyer |
60f6a74a7ec786c8949532911ef0462164404817 | 10,306 | cpp | C++ | src/rosecommon/src/crosesocket.cpp | RavenX8/osirosenew | b4ef1aade379e0eb4753b24c30ec43faca77aa37 | [
"Apache-2.0"
] | 49 | 2017-02-07T15:10:04.000Z | 2021-11-12T06:00:30.000Z | src/rosecommon/src/crosesocket.cpp | RavenX8/osirosenew | b4ef1aade379e0eb4753b24c30ec43faca77aa37 | [
"Apache-2.0"
] | 104 | 2016-10-31T01:42:59.000Z | 2021-08-28T13:29:09.000Z | src/rosecommon/src/crosesocket.cpp | RavenX8/osirosenew | b4ef1aade379e0eb4753b24c30ec43faca77aa37 | [
"Apache-2.0"
] | 36 | 2016-11-01T11:25:34.000Z | 2022-03-09T22:38:51.000Z | // Copyright 2016 Chirstopher Torres (Raven), L3nn0x
//
// 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 ... | 33.901316 | 180 | 0.682224 | RavenX8 |
60f70a936be826939d317470593a1d5737a5777a | 773 | cpp | C++ | tests/getApp_test.cpp | TheKuko/BP | b3385f52880ef9799c4003e92148488a5463f416 | [
"MIT"
] | 5 | 2017-10-25T12:48:52.000Z | 2021-06-25T07:46:57.000Z | tests/getApp_test.cpp | jzlka/namon | b3385f52880ef9799c4003e92148488a5463f416 | [
"MIT"
] | null | null | null | tests/getApp_test.cpp | jzlka/namon | b3385f52880ef9799c4003e92148488a5463f416 | [
"MIT"
] | 3 | 2017-10-25T13:54:10.000Z | 2019-08-01T07:03:20.000Z | /**
* @file getApp_test.cpp
* @brief Brief description
* @author Jozef Zuzelka <xzuzel00@stud.fit.vutbr.cz>
* @date
* - Created: 28.03.2017 17:08
* - Edited: 23.06.2017 12:16
*/
#include <iostream> // cout, cerr, endl
#include "namon_linux.hpp" // getApp()
using namespace st... | 20.342105 | 73 | 0.547219 | TheKuko |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.