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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6f37eda895918970df9767de0acb9c50d424c81d | 599 | cpp | C++ | src/master_server/remote_slave_client.cpp | louiz/batajelo | 4d8edce8da9d3b17dbad68eb4881d7f6fee2f76e | [
"BSL-1.0",
"BSD-2-Clause",
"Zlib",
"MIT"
] | 7 | 2015-01-28T09:17:08.000Z | 2020-04-21T13:51:16.000Z | src/master_server/remote_slave_client.cpp | louiz/batajelo | 4d8edce8da9d3b17dbad68eb4881d7f6fee2f76e | [
"BSL-1.0",
"BSD-2-Clause",
"Zlib",
"MIT"
] | null | null | null | src/master_server/remote_slave_client.cpp | louiz/batajelo | 4d8edce8da9d3b17dbad68eb4881d7f6fee2f76e | [
"BSL-1.0",
"BSD-2-Clause",
"Zlib",
"MIT"
] | 1 | 2020-07-11T09:20:25.000Z | 2020-07-11T09:20:25.000Z | #include <master_server/remote_slave_client.hpp>
#include <master_server/master_to_slave_server.hpp>
#include <database/database.hpp>
#include "slave.pb.h"
void RemoteSlaveClient::set_server(MasterToSlaveServer* server)
{
this->server = server;
}
void RemoteSlaveClient::on_connection_closed()
{
this->server->rem... | 22.185185 | 63 | 0.751252 | louiz |
6f3943a099e8cb1df84cb56f25bcc683679baea4 | 612 | cpp | C++ | cf/B_cf_edu_99_d2.cpp | faede/Daily | 45d2cbdca9a63c956df066fb596317ae4a6137b3 | [
"MIT"
] | null | null | null | cf/B_cf_edu_99_d2.cpp | faede/Daily | 45d2cbdca9a63c956df066fb596317ae4a6137b3 | [
"MIT"
] | null | null | null | cf/B_cf_edu_99_d2.cpp | faede/Daily | 45d2cbdca9a63c956df066fb596317ae4a6137b3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <queue>
#include <set>
#include <map>
#include <cstdio>
#include <cstring>
#define ll long long
using namespace std;
int main(){
//freopen("/Users/zyy/Documents/GitHub/Daily/algorithm/in.txt","r",stdin);
ios::sync_with_stdio(0);
c... | 13.6 | 75 | 0.562092 | faede |
6f3d9fc2af0fbde4db1151bbcdaa748d640ffabe | 2,338 | cpp | C++ | src/graphics/vertex_attributes.cpp | irisengine/iris | 0deb12f5d00c67bf0dde1a702344a2cf73925db6 | [
"BSL-1.0"
] | 85 | 2021-10-16T14:58:23.000Z | 2022-03-26T11:05:37.000Z | src/graphics/vertex_attributes.cpp | MaximumProgrammer/iris | cbc2f571bd8d485cdd04f903dcb867e699314682 | [
"BSL-1.0"
] | null | null | null | src/graphics/vertex_attributes.cpp | MaximumProgrammer/iris | cbc2f571bd8d485cdd04f903dcb867e699314682 | [
"BSL-1.0"
] | 2 | 2021-10-17T16:57:13.000Z | 2021-11-14T19:11:30.000Z | ////////////////////////////////////////////////////////////////////////////////
// Distributed under the Boost Software License, Version 1.0. //
// (See accompanying file LICENSE or copy at //
// https://www.boost.org/LICENSE_1_0.txt) ... | 25.692308 | 92 | 0.615911 | irisengine |
6f3ff2cc28e94218bab8e9dedcbe4243b6efd2bb | 2,321 | cpp | C++ | source/beluga/tcp/tcp_client.cpp | Stazer/beluga | 38232796669524c4f6b08f281e5a367390de24d0 | [
"MIT"
] | 1 | 2021-04-16T08:37:37.000Z | 2021-04-16T08:37:37.000Z | source/beluga/tcp/tcp_client.cpp | Stazer/beluga | 38232796669524c4f6b08f281e5a367390de24d0 | [
"MIT"
] | null | null | null | source/beluga/tcp/tcp_client.cpp | Stazer/beluga | 38232796669524c4f6b08f281e5a367390de24d0 | [
"MIT"
] | null | null | null | #include <beluga/tcp/tcp_client.hpp>
beluga::tcp_client::connect_event::connect_event(bool _continue, const boost::asio::ip::tcp::endpoint& endpoint):
continue_event(_continue),
endpoint(endpoint)
{
}
const boost::asio::ip::tcp::endpoint& beluga::tcp_client::connect_event::get_endpoint() const
{
return en... | 22.754902 | 113 | 0.683326 | Stazer |
6f43cdecf66cc2cbac84365cdd86bdfc26afa299 | 17,259 | hpp | C++ | examples/TumorHeatEqnFDM/TumorHeatEqnFDM.hpp | nih23/MRIDrivenHeatSimulation | de6d16853df1faf44c700d1fc06584351bf6c816 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | examples/TumorHeatEqnFDM/TumorHeatEqnFDM.hpp | nih23/MRIDrivenHeatSimulation | de6d16853df1faf44c700d1fc06584351bf6c816 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | examples/TumorHeatEqnFDM/TumorHeatEqnFDM.hpp | nih23/MRIDrivenHeatSimulation | de6d16853df1faf44c700d1fc06584351bf6c816 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | /* ScaFES
* Copyright (c) 2017-2018, ZIH, TU Dresden, Federal Republic of Germany.
* For details, see the files COPYING and LICENSE in the base directory
* of the package.
*/
/**
* @file TumorHeatEqnFDM.hpp
*
* @brief Implementation of a n-dimensional Pennes bioheat equation problem
* with tumor mode... | 45.779841 | 100 | 0.481372 | nih23 |
6f4605a89906489b6b9399bdfe8fcc3ed1edfe77 | 1,349 | hpp | C++ | include/cilantro/core/openmp_reductions.hpp | wannesvanloock/cilantro | 4b7da9f15e2c5ad05a8dc5c231149bf13b2257f3 | [
"MIT"
] | 1 | 2019-07-12T12:50:25.000Z | 2019-07-12T12:50:25.000Z | include/cilantro/core/openmp_reductions.hpp | aabin/cilantro | 3b1712998b6a2a26378428de185a2ad5cd3bc963 | [
"MIT"
] | 1 | 2020-01-02T15:03:00.000Z | 2020-01-02T15:03:00.000Z | include/cilantro/core/openmp_reductions.hpp | aabin/cilantro | 3b1712998b6a2a26378428de185a2ad5cd3bc963 | [
"MIT"
] | 6 | 2019-10-22T02:02:15.000Z | 2021-03-03T03:23:58.000Z | #pragma once
#if defined(__clang__)
#define STRINGIFY(x) #x
#define DECLARE_MATRIX_SUM_REDUCTION(Scalar,Rows,Cols) _Pragma(STRINGIFY(omp declare reduction (+: Eigen::Matrix<Scalar,Rows,Cols>: omp_out = omp_out + omp_in) initializer(omp_priv = Eigen::Matrix<Scalar,Rows,Cols>::Zero(omp_orig.rows(), omp_orig.cols()))))
#... | 51.884615 | 257 | 0.753892 | wannesvanloock |
6f47f832a1a78abe5a3b66c5874f0d7c8d39e044 | 16,110 | cpp | C++ | Utility/utilityClusterComparisonMetrics.cpp | ReetBarik/Grappolo | c9aed34ade92021fc7983eb21bc7b2933a3e43de | [
"BSD-3-Clause"
] | 12 | 2020-04-28T04:30:07.000Z | 2022-03-21T21:52:51.000Z | Utility/utilityClusterComparisonMetrics.cpp | ReetBarik/Grappolo | c9aed34ade92021fc7983eb21bc7b2933a3e43de | [
"BSD-3-Clause"
] | 1 | 2021-06-07T13:49:08.000Z | 2021-06-07T13:49:08.000Z | Utility/utilityClusterComparisonMetrics.cpp | ReetBarik/Grappolo | c9aed34ade92021fc7983eb21bc7b2933a3e43de | [
"BSD-3-Clause"
] | 3 | 2020-06-01T14:30:22.000Z | 2021-12-03T12:57:05.000Z | // ***********************************************************************
//
// Grappolo: A C++ library for graph clustering
// Mahantesh Halappanavar (hala@pnnl.gov)
// Pacific Northwest National Laboratory
//
// *************************************************************... | 39.007264 | 113 | 0.565984 | ReetBarik |
6f4a22e1b16fef56380290609490acbc3aaa91b5 | 263 | cpp | C++ | runtime/gen8/linux/hw_info_config_gen8.cpp | cwang64/compute-runtime | 440520ffdc5807574f0abfbf64b3790d1c0547e4 | [
"MIT"
] | 3 | 2019-09-20T23:26:36.000Z | 2019-10-03T17:44:12.000Z | runtime/gen8/linux/hw_info_config_gen8.cpp | cwang64/compute-runtime | 440520ffdc5807574f0abfbf64b3790d1c0547e4 | [
"MIT"
] | null | null | null | runtime/gen8/linux/hw_info_config_gen8.cpp | cwang64/compute-runtime | 440520ffdc5807574f0abfbf64b3790d1c0547e4 | [
"MIT"
] | 3 | 2019-05-16T07:22:51.000Z | 2019-11-11T03:05:32.000Z | /*
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "runtime/os_interface/hw_info_config.inl"
#include "runtime/os_interface/hw_info_config_bdw_plus.inl"
#ifdef SUPPORT_BDW
#include "hw_info_config_bdw.inl"
#endif
| 18.785714 | 59 | 0.768061 | cwang64 |
6f4dd1b58a131ef3633bb835ec9ae8f623e658b0 | 3,409 | hpp | C++ | lib/inc/cpp-pcp-client/protocol/v1/message.hpp | GabrielNagy/cpp-pcp-client | aad9a8b22718513b3726b07ae4c98d8faa81f618 | [
"Apache-2.0"
] | null | null | null | lib/inc/cpp-pcp-client/protocol/v1/message.hpp | GabrielNagy/cpp-pcp-client | aad9a8b22718513b3726b07ae4c98d8faa81f618 | [
"Apache-2.0"
] | null | null | null | lib/inc/cpp-pcp-client/protocol/v1/message.hpp | GabrielNagy/cpp-pcp-client | aad9a8b22718513b3726b07ae4c98d8faa81f618 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <cpp-pcp-client/protocol/v1/chunks.hpp>
#include <cpp-pcp-client/protocol/v1/errors.hpp>
#include <cpp-pcp-client/protocol/v1/serialization.hpp>
#include <cpp-pcp-client/validator/validator.hpp>
#include <cpp-pcp-client/export.h>
#include <string>
#include <vector>
#include <map>
#include <initi... | 33.097087 | 70 | 0.717219 | GabrielNagy |
6f52dff762b7cb40c44383c546cb4757a5f01018 | 29,966 | cpp | C++ | Engine/ScheduleSimulator.cpp | tjswns494/CPSim_Linux_Generalized | 42b0e1eec8eeaa4b6c675cb052208e8f6b325019 | [
"MIT"
] | null | null | null | Engine/ScheduleSimulator.cpp | tjswns494/CPSim_Linux_Generalized | 42b0e1eec8eeaa4b6c675cb052208e8f6b325019 | [
"MIT"
] | null | null | null | Engine/ScheduleSimulator.cpp | tjswns494/CPSim_Linux_Generalized | 42b0e1eec8eeaa4b6c675cb052208e8f6b325019 | [
"MIT"
] | null | null | null | #include <fstream>
#include <climits>
#include "ScheduleSimulator.h"
#include "PriorityPolicy.h"
#include "DiagramData.h"
/**
* This file is the cpp file for the ScheduleSimulator class.
* @file ScheduleSimulator.cpp
* @brief cpp file for Engine-ScheduleSimulator
* @author Seonghyeon Park
* @date 2020-03-31... | 42.992826 | 295 | 0.50921 | tjswns494 |
6f5480541c468603926067a6b532d67dd777ed7e | 1,056 | cpp | C++ | codeforces/B - Cutting/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/B - Cutting/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/B - Cutting/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Jul/02/2018 18:02
* solution_verdict: Accepted language: GNU C++14
* run... | 29.333333 | 111 | 0.375 | kzvd4729 |
6f5a2277d1e146e8a4611dc9bfb45cc716d264b7 | 1,028 | hpp | C++ | app/include/model/Player.hpp | HenrikThoroe/SWC-2021 | 8e7eee25e3a6fda7e863591b05fa161d8a2ebc78 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | app/include/model/Player.hpp | HenrikThoroe/SWC-2021 | 8e7eee25e3a6fda7e863591b05fa161d8a2ebc78 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | app/include/model/Player.hpp | HenrikThoroe/SWC-2021 | 8e7eee25e3a6fda7e863591b05fa161d8a2ebc78 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | #pragma once
#include <array>
#include "color.hpp"
namespace Model {
/// Player stores the information which identifies a player. This includes the player's color and the color of it's pieces.
class Player {
public:
/// The color of the player. This value is assigned by the game server.... | 30.235294 | 127 | 0.615759 | HenrikThoroe |
6f5bb377aa1a89aeef69e76b3cc8d949be3ae759 | 4,620 | cpp | C++ | src/Animation.cpp | Liyara/JGL | b3597700fe865b929c5bd52e81add32a6c0b297c | [
"MIT"
] | null | null | null | src/Animation.cpp | Liyara/JGL | b3597700fe865b929c5bd52e81add32a6c0b297c | [
"MIT"
] | null | null | null | src/Animation.cpp | Liyara/JGL | b3597700fe865b929c5bd52e81add32a6c0b297c | [
"MIT"
] | null | null | null | #include "Animation.h"
#include <Maths.h>
#define PLAYMODE_OR(a, b)\
static_cast<uint16_t>(a) | static_cast<uint16_t>(b)
#define PLAYMODE_OR_EQUAL(a, b)\
a = static_cast<PlayMode>(PLAYMODE_OR(a, b))
#define PLAYMODE_AND(a, b)\
static_cast<uint16_t>(a) & static_cast<uint16_t>(b)
#define PLAYMODE_AND_EQUA... | 27.831325 | 158 | 0.533333 | Liyara |
6f66fbfc7d5d22156426131f786c247e2506f6e7 | 2,110 | cpp | C++ | Dev/Cpp/Viewer/GUI/GradientHDRState.cpp | Shockblast/Effekseer | bac86c0fc965f04a0f57c5863d37a9c2d5c3be97 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2021-12-21T07:03:42.000Z | 2021-12-21T07:03:42.000Z | Dev/Cpp/Viewer/GUI/GradientHDRState.cpp | Shockblast/Effekseer | bac86c0fc965f04a0f57c5863d37a9c2d5c3be97 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Dev/Cpp/Viewer/GUI/GradientHDRState.cpp | Shockblast/Effekseer | bac86c0fc965f04a0f57c5863d37a9c2d5c3be97 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | #include "GradientHDRState.h"
namespace Effekseer::Tool
{
int GradientHDRState::GetColorCount() const
{
return state_.ColorCount;
}
void GradientHDRState::SetColorCount(int value)
{
state_.ColorCount = value;
}
int GradientHDRState::GetAlphaCount() const
{
return state_.AlphaCount;
}
void GradientHDRState::SetAl... | 20.288462 | 79 | 0.780095 | Shockblast |
6f67a4ff9d5b2dd1939c1c2be773c0fc6d42d7ba | 754 | hpp | C++ | Source/AliveLibAE/Explosion.hpp | Leonard2/alive_reversing | c6d85f435e275db1d41e2ec8b4e52454aa932e05 | [
"MIT"
] | 3 | 2018-07-17T20:25:34.000Z | 2020-07-27T19:25:50.000Z | Source/AliveLibAE/Explosion.hpp | Leonard2/alive_reversing | c6d85f435e275db1d41e2ec8b4e52454aa932e05 | [
"MIT"
] | 1 | 2021-09-12T16:59:46.000Z | 2021-09-12T16:59:46.000Z | Source/AliveLibAE/Explosion.hpp | Leonard2/alive_reversing | c6d85f435e275db1d41e2ec8b4e52454aa932e05 | [
"MIT"
] | 1 | 2018-07-18T04:55:56.000Z | 2018-07-18T04:55:56.000Z | #pragma once
#include "BaseAliveGameObject.hpp"
#include "FunctionFwd.hpp"
class Explosion final : public ::BaseAnimatedWithPhysicsGameObject
{
public:
EXPORT Explosion* ctor_4A1200(FP xpos, FP ypos, FP scale, s16 bSmall);
virtual BaseGameObject* VDestructor(s32 flags) override;
virtual void VUpdate() o... | 21.542857 | 74 | 0.745358 | Leonard2 |
6f67ba3b48e222b32ced1868a4ddccc53f3d99ba | 1,584 | cpp | C++ | AdventOfCodeTest/DayThreeTest.cpp | BlackFenec/AdventOfCode2019 | d35734b19e04c05b3b8b6130e902dff8771d2ac9 | [
"Unlicense"
] | null | null | null | AdventOfCodeTest/DayThreeTest.cpp | BlackFenec/AdventOfCode2019 | d35734b19e04c05b3b8b6130e902dff8771d2ac9 | [
"Unlicense"
] | null | null | null | AdventOfCodeTest/DayThreeTest.cpp | BlackFenec/AdventOfCode2019 | d35734b19e04c05b3b8b6130e902dff8771d2ac9 | [
"Unlicense"
] | null | null | null | #include "pch.h"
#include "..\AdventOfCode\DayThree.h"
namespace DayThreeChallenge
{
TEST(ClosestIntersection, ForTwoWiresThanClosestIntersectionBetweenThemFromCentralIsSix) {
EXPECT_EQ(DayThree::ClosestIntersection("R8,U5,L5,D3", "U7,R6,D4,L4"), 6);
}
TEST(ClosestIntersection, ForTwoWiresThanClosestIntersection... | 48 | 135 | 0.794823 | BlackFenec |
6f69d12fa469deded1c8f1ced96a158b4fc2a296 | 8,793 | cpp | C++ | source/enginetest/test.cpp | fpuma/MiniEngine2d | 9cbac766896438bcb6021b6096793c828a58e8de | [
"MIT"
] | null | null | null | source/enginetest/test.cpp | fpuma/MiniEngine2d | 9cbac766896438bcb6021b6096793c828a58e8de | [
"MIT"
] | null | null | null | source/enginetest/test.cpp | fpuma/MiniEngine2d | 9cbac766896438bcb6021b6096793c828a58e8de | [
"MIT"
] | null | null | null | #include <precompiledapplication.h>
#include <precompiledphysics.h>
#include <precompiledengine.h>
#include "test.h"
#include <application/iwindow.h>
#include <texturemanager/itexturemanager.h>
#include <engine/services/iprovidersservice.h>
#include <engine/services/isystemsservice.h>
#include <engine/services/iengi... | 36.6375 | 133 | 0.72842 | fpuma |
6f6edf41c28ffac5e1bda4576827d080ce3d152d | 31,549 | cpp | C++ | test/variant.cpp | reuk/strict-variant | 7d0f1433d5126951b1af350213a0c7e75575fab0 | [
"BSL-1.0"
] | 62 | 2016-08-02T05:15:16.000Z | 2020-02-14T18:02:34.000Z | test/variant.cpp | reuk/strict-variant | 7d0f1433d5126951b1af350213a0c7e75575fab0 | [
"BSL-1.0"
] | 6 | 2016-12-07T03:00:46.000Z | 2018-12-03T22:03:27.000Z | test/variant.cpp | reuk/strict-variant | 7d0f1433d5126951b1af350213a0c7e75575fab0 | [
"BSL-1.0"
] | 6 | 2016-12-10T18:59:18.000Z | 2019-11-05T08:11:11.000Z | // (C) Copyright 2016 - 2018 Christopher Beck
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <strict_variant/multivisit.hpp>
#include <strict_variant/variant.hpp>
#include <strict_variant/variant_stream_ops.h... | 26.94193 | 116 | 0.655774 | reuk |
4cf8c93b9d22d3bdee64efbd9ca39bd1a78a73a3 | 4,792 | cpp | C++ | ECF/permutation/PermutationCrsUPMX.cpp | KarlaSalamun/ECF | 4bd21cf43d09435f034259a6b59129b1df6ad1b3 | [
"MIT"
] | null | null | null | ECF/permutation/PermutationCrsUPMX.cpp | KarlaSalamun/ECF | 4bd21cf43d09435f034259a6b59129b1df6ad1b3 | [
"MIT"
] | null | null | null | ECF/permutation/PermutationCrsUPMX.cpp | KarlaSalamun/ECF | 4bd21cf43d09435f034259a6b59129b1df6ad1b3 | [
"MIT"
] | null | null | null | #include "../ECF_base.h"
#include "Permutation.h"
#include <map>
namespace Permutation
{
void PermutationCrsUPMX::registerParameters(StateP state)
{
myGenotype_->registerParameter(state, "crx.UPMX", (voidP) new double(0), ECF::DOUBLE);
}
bool PermutationCrsUPMX::initialize(StateP state)
{
voidP sptr = myGenotype... | 31.526316 | 87 | 0.601419 | KarlaSalamun |
4cf8d548b90b612990f3d639ec43e25003d8feee | 1,621 | cpp | C++ | test/enum.cpp | amezin/qjsonmapper | 606e940eac1a342f2c7c324dba01ea2e4ae99742 | [
"MIT"
] | null | null | null | test/enum.cpp | amezin/qjsonmapper | 606e940eac1a342f2c7c324dba01ea2e4ae99742 | [
"MIT"
] | 1 | 2015-03-11T23:39:20.000Z | 2015-03-14T12:02:02.000Z | test/enum.cpp | amezin/qjsonmapper | 606e940eac1a342f2c7c324dba01ea2e4ae99742 | [
"MIT"
] | null | null | null | #include <QtTest>
#include "qjsonmapper.h"
enum TestEnum
{
First,
Second,
Third
};
static const char* enumElements[] = {
"First", "Second", "Third"
};
namespace qjsonmapper
{
template<Action action>
bool mapValue(const Context<action, TestEnum> &ctx)
{
return mapEnum(ctx, enumElements);
}
}
c... | 23.492754 | 60 | 0.634176 | amezin |
4cfa5b0209aaeb88b8d9dd48974ca5dada27f6b5 | 3,050 | cpp | C++ | audio/AudioIO.cpp | kovdan01/libtgvoip | 6fec40ea1acd40fddba927b049f78962507d4922 | [
"Unlicense"
] | null | null | null | audio/AudioIO.cpp | kovdan01/libtgvoip | 6fec40ea1acd40fddba927b049f78962507d4922 | [
"Unlicense"
] | null | null | null | audio/AudioIO.cpp | kovdan01/libtgvoip | 6fec40ea1acd40fddba927b049f78962507d4922 | [
"Unlicense"
] | null | null | null | //
// libtgvoip is free and unencumbered public domain software.
// For more information, see http://unlicense.org or the UNLICENSE file
// you should have received with this source code distribution.
//
#include "../logging.h"
#include "AudioIO.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#if defined(TGVOIP_U... | 30.808081 | 142 | 0.74918 | kovdan01 |
98034943d11256b58f3a1d058e8e8dce76384460 | 10,509 | cpp | C++ | simulation/halsim_gui/src/main/native/cpp/HALSimGui.cpp | garrettsummerfi3ld/allwpilib | c755ce741ed2ef107e263a6f27d494ae8eff6a41 | [
"BSD-3-Clause"
] | 1 | 2021-08-06T14:23:33.000Z | 2021-08-06T14:23:33.000Z | simulation/halsim_gui/src/main/native/cpp/HALSimGui.cpp | garrettsummerfi3ld/allwpilib | c755ce741ed2ef107e263a6f27d494ae8eff6a41 | [
"BSD-3-Clause"
] | null | null | null | simulation/halsim_gui/src/main/native/cpp/HALSimGui.cpp | garrettsummerfi3ld/allwpilib | c755ce741ed2ef107e263a6f27d494ae8eff6a41 | [
"BSD-3-Clause"
] | 1 | 2021-08-06T14:23:36.000Z | 2021-08-06T14:23:36.000Z | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2019-2020 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 30.549419 | 80 | 0.615568 | garrettsummerfi3ld |
980c6699a3c00a26bfafd1a792303ca5b9206f4e | 54 | hpp | C++ | src/boost_graph_planar_detail_face_handles.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_graph_planar_detail_face_handles.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_graph_planar_detail_face_handles.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/graph/planar_detail/face_handles.hpp>
| 27 | 53 | 0.833333 | miathedev |
9810130362c56982626ca0a1fa9aef081896d805 | 30,210 | cpp | C++ | waterbox/vb/vip.cpp | Moliman/BizHawk | 7d961d85bdf588072f344f220266002dee8ebc5a | [
"MIT"
] | 29 | 2017-10-25T15:16:23.000Z | 2021-02-23T04:49:18.000Z | waterbox/vb/vip.cpp | Moliman/BizHawk | 7d961d85bdf588072f344f220266002dee8ebc5a | [
"MIT"
] | 25 | 2020-05-29T05:05:41.000Z | 2021-11-18T00:57:23.000Z | waterbox/vb/vip.cpp | Moliman/BizHawk | 7d961d85bdf588072f344f220266002dee8ebc5a | [
"MIT"
] | 9 | 2017-10-29T05:28:15.000Z | 2020-03-24T02:11:01.000Z | /******************************************************************************/
/* Mednafen Virtual Boy Emulation Module */
/******************************************************************************/
/* vip.cpp:
** Copyright (C) 2010-2016 Mednafen Team
**
** This progra... | 21.578571 | 209 | 0.603376 | Moliman |
98106ff008558701cc3833d1480a7c44bd589807 | 1,222 | cpp | C++ | src/index_meta.cpp | API92/cassaforte | 27eb8fdd822c0fc5d7b078228b698cb2e0804e01 | [
"BSD-2-Clause"
] | null | null | null | src/index_meta.cpp | API92/cassaforte | 27eb8fdd822c0fc5d7b078228b698cb2e0804e01 | [
"BSD-2-Clause"
] | null | null | null | src/index_meta.cpp | API92/cassaforte | 27eb8fdd822c0fc5d7b078228b698cb2e0804e01 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) Andrey Pikas
*/
#include <cass/index_meta.hpp>
#include <cassandra.h>
#include <cass/value.hpp>
namespace cass {
index_meta const * index_meta::ptr(::CassIndexMeta const *p)
{
return reinterpret_cast<index_meta const *>(p);
}
::CassIndexMeta const * index_meta::backend() const
{
retur... | 21.821429 | 73 | 0.710311 | API92 |
981112b9bbecd42cfb86885f29973001442478b4 | 344 | cpp | C++ | c++/day02/83.cpp | msoild/sword-to-offer | 6c15c78ad773da0b66cb76c9e01292851aca45c5 | [
"MIT"
] | null | null | null | c++/day02/83.cpp | msoild/sword-to-offer | 6c15c78ad773da0b66cb76c9e01292851aca45c5 | [
"MIT"
] | null | null | null | c++/day02/83.cpp | msoild/sword-to-offer | 6c15c78ad773da0b66cb76c9e01292851aca45c5 | [
"MIT"
] | null | null | null | class Solution {
public:
int maxDiff(vector<int>& nums) {
if(nums.size() == 0) return 0;
int res = 0;
int minValue = nums[0];
for(int i = 1; i < nums.size(); i ++) {
res = max(nums[i] - minValue, res);
minValue = min(nums[i], minValue);
}
... | 24.571429 | 47 | 0.453488 | msoild |
9817ac9791748029f89c98a0b4f4bab80db5dedb | 1,848 | hpp | C++ | include/caffe/layers/cudnn_pooling_layer.hpp | Amanda-Barbara/nvcaffe | 5155a708b235a818ce300aa3f9fc235ece9a35fb | [
"BSD-2-Clause"
] | 758 | 2015-03-08T20:54:38.000Z | 2022-01-11T03:14:51.000Z | include/caffe/layers/cudnn_pooling_layer.hpp | Matsuko9/caffe | 17e347e42e664b87d80f63bfbbb89bec5e559242 | [
"BSD-2-Clause"
] | 493 | 2015-04-28T00:08:53.000Z | 2021-08-04T07:26:54.000Z | include/caffe/layers/cudnn_pooling_layer.hpp | Matsuko9/caffe | 17e347e42e664b87d80f63bfbbb89bec5e559242 | [
"BSD-2-Clause"
] | 389 | 2015-03-05T12:11:44.000Z | 2022-03-13T21:49:42.000Z | #ifndef CAFFE_CUDNN_POOLING_LAYER_HPP_
#define CAFFE_CUDNN_POOLING_LAYER_HPP_
#include <vector>
#include "caffe/blob.hpp"
#include "caffe/layer.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe/layers/pooling_layer.hpp"
namespace caffe {
#ifdef USE_CUDNN
/**
* @brief cuDNN implementation of PoolingLayer.
* ... | 32.421053 | 71 | 0.725649 | Amanda-Barbara |
9819535cd50fd94e71c23b250e101bd1d6a0e483 | 899 | hpp | C++ | gearoenix/vulkan/shader/gx-vk-shd-resources.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 35 | 2018-01-07T02:34:38.000Z | 2022-02-09T05:19:03.000Z | gearoenix/vulkan/shader/gx-vk-shd-resources.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 111 | 2017-09-20T09:12:36.000Z | 2020-12-27T12:52:03.000Z | gearoenix/vulkan/shader/gx-vk-shd-resources.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 5 | 2020-02-11T11:17:37.000Z | 2021-01-08T17:55:43.000Z | #ifndef GEAROENIX_VULKAN_SHADER_RESOURCES_HPP
#define GEAROENIX_VULKAN_SHADER_RESOURCES_HPP
#include "../../core/gx-cr-build-configuration.hpp"
#ifdef USE_VULKAN
namespace gearoenix {
namespace render {
class Engine;
namespace buffer {
class Uniform;
}
namespace descriptor {
class Set;
... | 23.657895 | 101 | 0.598443 | Hossein-Noroozpour |
9819fc5debb4a03293573633f3a12e3543c4b469 | 7,088 | cpp | C++ | main.cpp | TheMesoria/TSPBrute | eeb0f86165d21f925ed0eaf7fd693815bff47278 | [
"MIT"
] | null | null | null | main.cpp | TheMesoria/TSPBrute | eeb0f86165d21f925ed0eaf7fd693815bff47278 | [
"MIT"
] | null | null | null | main.cpp | TheMesoria/TSPBrute | eeb0f86165d21f925ed0eaf7fd693815bff47278 | [
"MIT"
] | null | null | null | #include <iostream>
#include <spdlog/spdlog.h>
#include <CMakeVariables.hpp>
#include <Map.hpp>
#include <Algorithm.hpp>
#include <StandardBruteForce.hpp>
#include <OptimalMTBruteForce.hpp>
#include <BranchAndBoundMTBruteForce.hpp>
int main()
{
auto sink = std::make_shared<spdlog::sinks::simple_file_sink_mt>(
... | 36.348718 | 96 | 0.630784 | TheMesoria |
981e5a575e8e639d27233b4830c4f701b36fcdec | 23,163 | cpp | C++ | src/drivers/jack.cpp | pierrelouys/PSP-MAME4ALL | 54374b0579b7e2377f015ac155d8f519addfaa1a | [
"Unlicense"
] | 1 | 2021-01-25T20:16:33.000Z | 2021-01-25T20:16:33.000Z | src/drivers/jack.cpp | pierrelouys/PSP-MAME4ALL | 54374b0579b7e2377f015ac155d8f519addfaa1a | [
"Unlicense"
] | 1 | 2021-05-24T20:28:35.000Z | 2021-05-25T14:44:54.000Z | src/drivers/jack.cpp | PSP-Archive/PSP-MAME4ALL | 54374b0579b7e2377f015ac155d8f519addfaa1a | [
"Unlicense"
] | null | null | null | /***************************************************************************
Jack the Giant Killer memory map (preliminary)
Main CPU
--------
0000-3fff ROM
4000-62ff RAM
b000-b07f sprite ram
b400 command for sound CPU
b500-b505 input ports
b506 screen flip off
b507 screen flip on
b600-b61f palette ra... | 26.624138 | 109 | 0.644303 | pierrelouys |
981f7986b81239b49101a2dbe9e926f43d4edb61 | 4,146 | cpp | C++ | src/PHW_1/p2.cpp | SiddhantNadkarni/Parallel-and-Distributed-Computing | e49aae454a5ac3e8eb557805c72ebab490851509 | [
"MIT"
] | 1 | 2022-02-04T08:59:13.000Z | 2022-02-04T08:59:13.000Z | src/PHW_1/p2.cpp | SiddhantNadkarni/Parallel-and-Distributed-Computing | e49aae454a5ac3e8eb557805c72ebab490851509 | [
"MIT"
] | null | null | null | src/PHW_1/p2.cpp | SiddhantNadkarni/Parallel-and-Distributed-Computing | e49aae454a5ac3e8eb557805c72ebab490851509 | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
#include <fstream>
#include <time.h>
#include <boost/range/numeric.hpp>
#include <boost/range/adaptor/map.hpp>
#include <unordered_map>
#include <algorithm>
#include <vector>
#include <iterator>
#define h 800
#define w 800
#define output_file "output.raw"
unsigned char* readIma... | 22.290323 | 136 | 0.645683 | SiddhantNadkarni |
982292d7c31b22234fe8f6e16d1e1c27b5faddce | 1,384 | cpp | C++ | src/Common/SharedLibrary.cpp | sunnycase/swiftshader | 592bce0dc7daaa8d2c7ee4b94bec98e0e7beeacc | [
"Apache-2.0"
] | 1,570 | 2016-06-30T10:40:04.000Z | 2022-03-31T01:47:33.000Z | src/Common/SharedLibrary.cpp | sunnycase/swiftshader | 592bce0dc7daaa8d2c7ee4b94bec98e0e7beeacc | [
"Apache-2.0"
] | 11 | 2019-10-21T13:39:41.000Z | 2021-11-05T08:11:54.000Z | src/Common/SharedLibrary.cpp | sunnycase/swiftshader | 592bce0dc7daaa8d2c7ee4b94bec98e0e7beeacc | [
"Apache-2.0"
] | 253 | 2016-06-30T18:57:10.000Z | 2022-03-25T03:57:40.000Z | // Copyright 2016 The SwiftShader Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required b... | 26.113208 | 92 | 0.721821 | sunnycase |
982ac0ad419ce7817579fe40a662fe3b0cb2d396 | 507 | cpp | C++ | Turbo C++/max.cpp | rondon1947/Zero-to-Hero | c08b036196f0eec016693375a8785c8ec97e940f | [
"MIT"
] | 1 | 2019-11-19T13:22:56.000Z | 2019-11-19T13:22:56.000Z | Turbo C++/max.cpp | rondon1947/Zero-to-Hero | c08b036196f0eec016693375a8785c8ec97e940f | [
"MIT"
] | null | null | null | Turbo C++/max.cpp | rondon1947/Zero-to-Hero | c08b036196f0eec016693375a8785c8ec97e940f | [
"MIT"
] | 1 | 2020-03-16T07:18:32.000Z | 2020-03-16T07:18:32.000Z | #include <iostream>
//for printing and reading stuff
#include<conio.h>
//for keeping output in output screen
void main()
{
int a,b,c;//here we will put numbers entered by user
clrscr();//clears screen
cout<<"Enter A:";
cin>>a;
cout<<"Enter B:";
cin>>b;
cout<<"Enter C:";
cin<<c;
if(a>b && a>c)//is... | 16.9 | 54 | 0.544379 | rondon1947 |
98343d54bf1e9a79a201df65936a63b26b4c5d5a | 1,931 | cpp | C++ | src/KernelVersionEntry.cpp | R-YaTian/libnintendo-hac | 547d48a70d3ef618a5b87f1dbb07df08701b7c0c | [
"MIT"
] | 5 | 2019-11-16T00:31:05.000Z | 2021-11-16T01:48:13.000Z | lib/libhac/source/KernelVersionEntry.cpp | baka-koroshiya/NNTools | 803a671ed06e15bbebb834c51e2f3f6ce2da11f0 | [
"BSD-2-Clause"
] | 1 | 2021-06-26T01:14:30.000Z | 2021-06-26T02:13:24.000Z | lib/libhac/source/KernelVersionEntry.cpp | baka-koroshiya/NNTools | 803a671ed06e15bbebb834c51e2f3f6ce2da11f0 | [
"BSD-2-Clause"
] | 1 | 2021-06-25T11:22:31.000Z | 2021-06-25T11:22:31.000Z | #include <nn/hac/KernelVersionEntry.h>
nn::hac::KernelVersionEntry::KernelVersionEntry() :
mCap(kCapId),
mVerMajor(0),
mVerMinor(0)
{}
nn::hac::KernelVersionEntry::KernelVersionEntry(const KernelCapabilityEntry & kernel_cap) :
mCap(kCapId),
mVerMajor(0),
mVerMinor(0)
{
setKernelCapability(kernel_cap);
}
nn::h... | 21.21978 | 95 | 0.741585 | R-YaTian |
9838b10ec4e71993390d11c6cca939ffea52494b | 52,185 | cc | C++ | image_io.cc | pps83/pik | 9747f8dbe9c10079b7473966fc974e4b3bcef034 | [
"Apache-2.0"
] | null | null | null | image_io.cc | pps83/pik | 9747f8dbe9c10079b7473966fc974e4b3bcef034 | [
"Apache-2.0"
] | null | null | null | image_io.cc | pps83/pik | 9747f8dbe9c10079b7473966fc974e4b3bcef034 | [
"Apache-2.0"
] | null | null | null | // Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | 31.267226 | 80 | 0.62037 | pps83 |
98391e482a0089c2d8f6ea4b971985ce6fab9221 | 18,592 | cpp | C++ | net.ssa/xrLC/PMesh/progmesh2.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:19.000Z | 2022-03-26T17:00:19.000Z | xrLC/PMesh/progmesh2.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | null | null | null | xrLC/PMesh/progmesh2.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:21.000Z | 2022-03-26T17:00:21.000Z | /*
* Progressive Mesh type Polygon Reduction Algorithm
* by Stan Melax (c) 1998
*
* Version for 3DS MAX plugin.
* See the header file progmesh.h for a description of this module
*/
#include "stdafx.h"
#include "progmesh2.h"
#include "vector.h"
#include "..\xrUVpoint.h"
PMarg pmarg;
/*
* ... | 26.905933 | 86 | 0.610101 | ixray-team |
983f229fc4277e9be55d2f6d86caaea78a799e11 | 560 | cpp | C++ | Medium/416_Partition_Equal_Subset_Sum.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | 1 | 2021-03-15T10:02:10.000Z | 2021-03-15T10:02:10.000Z | Medium/416_Partition_Equal_Subset_Sum.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | null | null | null | Medium/416_Partition_Equal_Subset_Sum.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | null | null | null | class Solution {
public:
bool canPartition(vector<int>& nums) {
int total = 0;
for(int& e : nums) {
total += e;
}
if(total & 1) return false;
int target = total / 2;
int N = nums.size();
vector<bool> dp(target+1, false);
dp[0] = true;
... | 24.347826 | 47 | 0.378571 | ShehabMMohamed |
9843360cd669e02da4012b9718640a17cd618510 | 462 | cpp | C++ | 1D Array/Array range.cpp | SauravPati08/FacePrep-CPP | 7b8f7eb5b61f8c9fe973a8b33666832f61643623 | [
"MIT"
] | 1 | 2021-06-24T11:31:28.000Z | 2021-06-24T11:31:28.000Z | 1D Array/Array range.cpp | SauravPati08/FacePrep-CPP | 7b8f7eb5b61f8c9fe973a8b33666832f61643623 | [
"MIT"
] | null | null | null | 1D Array/Array range.cpp | SauravPati08/FacePrep-CPP | 7b8f7eb5b61f8c9fe973a8b33666832f61643623 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main()
{
//Type your code here.
int a[20], n, i, j, min, max;
cout<<"Enter the number of elements in the array"<<endl;
cin>>n;
cout<<"Enter the elements in the array"<<endl;
for(i=0;i<n;i++)
cin>>a[i];
min = a[0];
max = a[0];
for(i=0;i<n;i++... | 19.25 | 59 | 0.508658 | SauravPati08 |
9845ce61e1e04319e9acd7c34a51b4000971cb01 | 2,339 | cpp | C++ | GOSX Lite/source/Engine/FeatureManager/CreateMove.cpp | pwnedboi/GO-SX-Internal-Lite | 7a75e1aaa2972b4fa60c2fc7f931f8180ff71782 | [
"Apache-2.0"
] | 1 | 2021-09-28T14:53:20.000Z | 2021-09-28T14:53:20.000Z | GOSX Lite/source/Engine/FeatureManager/CreateMove.cpp | p0hjan/GO-SX-Internal-Pro | 7a75e1aaa2972b4fa60c2fc7f931f8180ff71782 | [
"Apache-2.0"
] | null | null | null | GOSX Lite/source/Engine/FeatureManager/CreateMove.cpp | p0hjan/GO-SX-Internal-Pro | 7a75e1aaa2972b4fa60c2fc7f931f8180ff71782 | [
"Apache-2.0"
] | null | null | null | #include "CreateMove.h"
#include "SDK/Utils.h"
namespace FeatureManager {
std::shared_ptr<CBunnyHop> g_cBunnyHop = nullptr;
std::shared_ptr<CTriggerBot> g_cTriggerBot = nullptr;
std::shared_ptr<CAim> g_cAim = nullptr;
std::shared_ptr<CAlwaysRCS> g_cAlwaysRCS = nullptr;
std::shared_ptr<CAntiAim> g_c... | 31.186667 | 86 | 0.507909 | pwnedboi |
984e7521862fc7b887669d14debb41d6dd0e69c2 | 10,573 | cpp | C++ | src/RTL/Component/Generators/CLOD/CIFXMeshMap.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 44 | 2016-05-06T00:47:11.000Z | 2022-02-11T06:51:37.000Z | src/RTL/Component/Generators/CLOD/CIFXMeshMap.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 3 | 2016-06-27T12:37:31.000Z | 2021-03-24T12:39:48.000Z | src/RTL/Component/Generators/CLOD/CIFXMeshMap.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 15 | 2016-02-28T11:08:30.000Z | 2021-06-01T03:32:01.000Z | //***************************************************************************
//
// Copyright (c) 2002 - 2006 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | 24.645688 | 82 | 0.636149 | alemuntoni |
98518cb42712e9c6755f800a0704b068ada6886b | 2,085 | inl | C++ | source/SMPPQuerySMResp.inl | ict-project/libsmpp | c4f4045a62d3de90d96ccf5db8792d6753493561 | [
"Apache-2.0"
] | 1 | 2017-06-27T03:58:45.000Z | 2017-06-27T03:58:45.000Z | source/SMPPQuerySMResp.inl | ict-project/libsmpp | c4f4045a62d3de90d96ccf5db8792d6753493561 | [
"Apache-2.0"
] | 1 | 2021-01-09T20:10:32.000Z | 2021-01-16T11:28:42.000Z | source/SMPPQuerySMResp.inl | ict-project/libsmpp | c4f4045a62d3de90d96ccf5db8792d6753493561 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2007 Majoron.com (developers@majoron.com)
Original sources are available at www.majoron.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apa... | 28.561644 | 83 | 0.721343 | ict-project |
985539a596857926c0db510ec88a3c93b98c8bd2 | 2,103 | cpp | C++ | Raven.CppClient/ServerOperationExecutor.cpp | mlawsonca/ravendb-cpp-client | c3a3d4960c8b810156547f62fa7aeb14a121bf74 | [
"MIT"
] | 3 | 2019-04-24T02:34:53.000Z | 2019-08-01T08:22:26.000Z | Raven.CppClient/ServerOperationExecutor.cpp | mlawsonca/ravendb-cpp-client | c3a3d4960c8b810156547f62fa7aeb14a121bf74 | [
"MIT"
] | 2 | 2019-03-21T09:00:02.000Z | 2021-02-28T23:49:26.000Z | Raven.CppClient/ServerOperationExecutor.cpp | mlawsonca/ravendb-cpp-client | c3a3d4960c8b810156547f62fa7aeb14a121bf74 | [
"MIT"
] | 3 | 2019-03-04T11:58:54.000Z | 2021-03-01T00:25:49.000Z | #include "stdafx.h"
#include "ServerOperationExecutor.h"
#include "ServerWideOperation.h"
namespace ravendb::client::serverwide::operations
{
ServerOperationExecutor::ServerOperationExecutor(std::shared_ptr<documents::DocumentStore> store)
: _request_executor(store->get_conventions()->is_disable_topology_updates()... | 33.919355 | 117 | 0.763671 | mlawsonca |
985b1ce62e924d80637d5c0360bb948b23f0a733 | 754 | cpp | C++ | riscv/llvm/3.5/cfe-3.5.0.src/test/CodeGenCXX/microsoft-abi-byval-sret.cpp | tangyibin/goblin-core | 1940db6e95908c81687b2b22ddd9afbc8db9cdfe | [
"BSD-3-Clause"
] | null | null | null | riscv/llvm/3.5/cfe-3.5.0.src/test/CodeGenCXX/microsoft-abi-byval-sret.cpp | tangyibin/goblin-core | 1940db6e95908c81687b2b22ddd9afbc8db9cdfe | [
"BSD-3-Clause"
] | null | null | null | riscv/llvm/3.5/cfe-3.5.0.src/test/CodeGenCXX/microsoft-abi-byval-sret.cpp | tangyibin/goblin-core | 1940db6e95908c81687b2b22ddd9afbc8db9cdfe | [
"BSD-3-Clause"
] | 1 | 2021-03-24T06:40:32.000Z | 2021-03-24T06:40:32.000Z | // RUN: %clang_cc1 -emit-llvm %s -o - -triple=i686-pc-win32 -mconstructor-aliases -fno-rtti | FileCheck %s
struct A {
A() : a(42) {}
A(const A &o) : a(o.a) {}
~A() {}
int a;
A foo(A o);
};
A A::foo(A x) {
A y(*this);
y.a += x.a;
return y;
}
// CHECK-LABEL: define x86_thiscallcc %struct.A* @"\01?foo@A... | 25.133333 | 106 | 0.525199 | tangyibin |
985ba8e87bd64e59801159c21c7bb5cb863e675e | 2,046 | cpp | C++ | MonoNative.Tests/mscorlib/System/Security/Principal/mscorlib_System_Security_Principal_WindowsPrincipal_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative.Tests/mscorlib/System/Security/Principal/mscorlib_System_Security_Principal_WindowsPrincipal_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative.Tests/mscorlib/System/Security/Principal/mscorlib_System_Security_Principal_WindowsPrincipal_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | // Mono Native Fixture
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// Namespace: System.Security.Principal
// Name: WindowsPrincipal
// C++ Typed Name: mscorlib::System::Security::Principal::WindowsPrincipal
#include <gtest/gtest.h>
#include <mscorlib/System/Security/Princ... | 24.070588 | 101 | 0.723363 | brunolauze |
985e5c842c95cc9a3cf23db783432667bd2e64f0 | 141 | hxx | C++ | src/Providers/UNIXProviders/FileSystemCapabilities/UNIX_FileSystemCapabilities_DARWIN.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/FileSystemCapabilities/UNIX_FileSystemCapabilities_DARWIN.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/FileSystemCapabilities/UNIX_FileSystemCapabilities_DARWIN.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_DARWIN
#ifndef __UNIX_FILESYSTEMCAPABILITIES_PRIVATE_H
#define __UNIX_FILESYSTEMCAPABILITIES_PRIVATE_H
#endif
#endif
| 11.75 | 47 | 0.865248 | brunolauze |
9861052fbf054c8982b786977e3d65adc03b8d6f | 625 | cpp | C++ | chapter_5_meta_programming/ex_2_fibonacci_sequence.cpp | joshlk/discovering_modern_cpp_peter_gottschling_exercises | ebd6a0f48d36ee85b7fac30a123038728ad9ffc2 | [
"MIT"
] | null | null | null | chapter_5_meta_programming/ex_2_fibonacci_sequence.cpp | joshlk/discovering_modern_cpp_peter_gottschling_exercises | ebd6a0f48d36ee85b7fac30a123038728ad9ffc2 | [
"MIT"
] | null | null | null | chapter_5_meta_programming/ex_2_fibonacci_sequence.cpp | joshlk/discovering_modern_cpp_peter_gottschling_exercises | ebd6a0f48d36ee85b7fac30a123038728ad9ffc2 | [
"MIT"
] | null | null | null | //
// Created by Josh Levy-Kramer on 05/04/2020.
//
#include <iostream>
template <int N>
struct FibonacciSequence {
constexpr FibonacciSequence(): S() {
S[0] = 0;
S[1] = 1;
for (int i = 2, xn = 0; i <= N; i++) {
S[i] = S[i-1] + S[i-2];
}
}
int S[N+1]; // Can't... | 20.16129 | 73 | 0.4672 | joshlk |
986130a91078974a757155e78debff20e15a0aab | 4,030 | cc | C++ | public/util/network/tests/rpcclientserver_test.cc | room77/77up | 736806fbf52a5e722e8e57ef5c248823b067175d | [
"MIT"
] | 3 | 2015-05-18T14:52:47.000Z | 2018-11-12T07:51:00.000Z | public/util/network/tests/rpcclientserver_test.cc | room77/77up | 736806fbf52a5e722e8e57ef5c248823b067175d | [
"MIT"
] | null | null | null | public/util/network/tests/rpcclientserver_test.cc | room77/77up | 736806fbf52a5e722e8e57ef5c248823b067175d | [
"MIT"
] | 3 | 2015-08-04T05:58:18.000Z | 2018-11-12T07:51:01.000Z | //
// Copyright 2007 OpTrip, Inc.
//
#include <condition_variable>
#include <functional>
#include <memory>
#include <mutex>
#include <thread>
#include "util/network/rpcclient.h"
#include "util/network/rpcserver.h"
#include "util/network/wrapped_httpclient.h"
#include "util/network/method/server_method.h"
#include "uti... | 27.04698 | 81 | 0.662531 | room77 |
98629d8fbb10b0dbc24bfc942c1f7a0321e82c6a | 290 | cpp | C++ | src/main.cpp | CMDR-JohnAlex/MSVCCompilerBugReport | 179bd1c8650a497efa38836558b89e924d09be5f | [
"Unlicense"
] | null | null | null | src/main.cpp | CMDR-JohnAlex/MSVCCompilerBugReport | 179bd1c8650a497efa38836558b89e924d09be5f | [
"Unlicense"
] | null | null | null | src/main.cpp | CMDR-JohnAlex/MSVCCompilerBugReport | 179bd1c8650a497efa38836558b89e924d09be5f | [
"Unlicense"
] | null | null | null | #include "assert.hpp"
#include <iostream>
int main()
{
BITMANIP_LOG(INFO, "awoo", 2, "baka", 30); // If anyone is in the Together C & C++ Discord, this is the example that should run: https://discord.com/channels/331718482485837825/855220264149057556/927559566416314389
return 0;
} | 36.25 | 218 | 0.724138 | CMDR-JohnAlex |
9864a5503eabe8d3b49bc39b8044345f4e39bbf5 | 731 | cpp | C++ | Polymorphism Testing/main.cpp | Daspien27/CSI4900---Honours-Project | 5f3a0fdee9570ffa94af060701d1718b06f477e7 | [
"MIT"
] | null | null | null | Polymorphism Testing/main.cpp | Daspien27/CSI4900---Honours-Project | 5f3a0fdee9570ffa94af060701d1718b06f477e7 | [
"MIT"
] | null | null | null | Polymorphism Testing/main.cpp | Daspien27/CSI4900---Honours-Project | 5f3a0fdee9570ffa94af060701d1718b06f477e7 | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <iostream>
#include "Polyhedra.h"
using namespace std;
void recursive_depth(int depth, SimplePolyhedra p, int *lincomb, int bound) {
if (depth == 0) {
//march
}
else {
for (int i = -bound; i <= bound; ++i) {
lincomb[depth - 1] = i;
recursive_depth(depth - 1, p, linc... | 11.603175 | 80 | 0.651163 | Daspien27 |
986c375645f1f09c135046495a7afa606a94dcfa | 929 | hpp | C++ | include/fdeep/layers/reshape_layer.hpp | chammika/frugally-deep | 6c0b03efcb05cf5ace17e2f74c369ee44f95817a | [
"MIT"
] | 1 | 2018-12-05T22:43:05.000Z | 2018-12-05T22:43:05.000Z | include/fdeep/layers/reshape_layer.hpp | szad670401/frugally-deep | c84d256f49e41b213d740999140dd7099a853491 | [
"MIT"
] | null | null | null | include/fdeep/layers/reshape_layer.hpp | szad670401/frugally-deep | c84d256f49e41b213d740999140dd7099a853491 | [
"MIT"
] | null | null | null | // Copyright 2016, Tobias Hermann.
// https://github.com/Dobiasd/frugally-deep
// Distributed under the MIT License.
// (See accompanying LICENSE file or at
// https://opensource.org/licenses/MIT)
#pragma once
#include "fdeep/layers/layer.hpp"
#include <string>
#include <vector>
namespace fdeep { namespace interna... | 25.108108 | 71 | 0.702906 | chammika |
986d44bd6bb0a66a830042840006d71d710739ed | 15,152 | cpp | C++ | Image/src/ImageProxy.cpp | Enseed/ITL | b7aab088e1b8bbe73a7ae2a4d7fda1ca0c3cc348 | [
"Apache-2.0"
] | null | null | null | Image/src/ImageProxy.cpp | Enseed/ITL | b7aab088e1b8bbe73a7ae2a4d7fda1ca0c3cc348 | [
"Apache-2.0"
] | null | null | null | Image/src/ImageProxy.cpp | Enseed/ITL | b7aab088e1b8bbe73a7ae2a4d7fda1ca0c3cc348 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
Copyright 2009 Enseed Inc. & Gaspard Petit <gaspardpetit@enseed.com>
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 So... | 29.138462 | 468 | 0.763002 | Enseed |
9873f938de4a0ac1e56122bb59cf6e50b907871e | 811 | hpp | C++ | core/recorder_private.hpp | Benau/libopenglrecorder | c1b81ce26e62fae1aaa086b5cd337cb12361ea3d | [
"BSD-3-Clause"
] | 40 | 2017-04-10T04:02:45.000Z | 2021-09-23T22:30:00.000Z | core/recorder_private.hpp | Benau/libopenglrecorder | c1b81ce26e62fae1aaa086b5cd337cb12361ea3d | [
"BSD-3-Clause"
] | 12 | 2017-04-25T01:24:09.000Z | 2020-12-08T18:59:43.000Z | core/recorder_private.hpp | Benau/libopenglrecorder | c1b81ce26e62fae1aaa086b5cd337cb12361ea3d | [
"BSD-3-Clause"
] | 8 | 2017-04-24T21:16:52.000Z | 2020-08-12T22:56:41.000Z | /* Copyright (c) 2017, libopenglrecorder contributors
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree.
*/
#ifndef HEADER_RECORDER_PRIVATE_HPP
#define HEADER_RECORDER_PRIVATE_HPP
#include "openglrecorder.h"
#include <string>
... | 27.033333 | 66 | 0.819975 | Benau |
98768b8a725f2fcee815f2cf8b6fda1a4b807ba3 | 4,469 | cpp | C++ | be/src/vec/columns/column_const.cpp | acelyc111/doris-vectorized | cb9d1e0128e9f6306dde66265a1f35d15b77e51d | [
"Apache-2.0"
] | null | null | null | be/src/vec/columns/column_const.cpp | acelyc111/doris-vectorized | cb9d1e0128e9f6306dde66265a1f35d15b77e51d | [
"Apache-2.0"
] | null | null | null | be/src/vec/columns/column_const.cpp | acelyc111/doris-vectorized | cb9d1e0128e9f6306dde66265a1f35d15b77e51d | [
"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 the Apache License, Version 2.0 (the
// "License"); you may... | 37.872881 | 139 | 0.647125 | acelyc111 |
987d0b1b338eb20460fed030b94b7858efbd6211 | 3,993 | cc | C++ | mace/ops/opencl/image/lstm_cell.cc | WeipengChan/mace | a610d506592892007be538e71ca1daef07c7857b | [
"Apache-2.0"
] | 1 | 2021-08-02T12:17:58.000Z | 2021-08-02T12:17:58.000Z | mace/ops/opencl/image/lstm_cell.cc | WeipengChan/mace | a610d506592892007be538e71ca1daef07c7857b | [
"Apache-2.0"
] | null | null | null | mace/ops/opencl/image/lstm_cell.cc | WeipengChan/mace | a610d506592892007be538e71ca1daef07c7857b | [
"Apache-2.0"
] | 1 | 2021-08-02T12:18:00.000Z | 2021-08-02T12:18:00.000Z | // Copyright 2018 The MACE Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | 38.028571 | 76 | 0.666416 | WeipengChan |
987e36e344f74aee1bbd8899c87c7785b267da26 | 6,602 | cpp | C++ | gitex.cpp | hibalubbad/hiba.baddie | 69001ad56c8a51f6e36a802bae061128d9fd5a71 | [
"MIT"
] | null | null | null | gitex.cpp | hibalubbad/hiba.baddie | 69001ad56c8a51f6e36a802bae061128d9fd5a71 | [
"MIT"
] | null | null | null | gitex.cpp | hibalubbad/hiba.baddie | 69001ad56c8a51f6e36a802bae061128d9fd5a71 | [
"MIT"
] | null | null | null | #include <iostream>
#include <list>
#include <string>
using namespace std;
class TreeEmptyException{
};
class InvalidPositionException{
};
template <typename E>
class LinkedBinaryTree{
private: // private struct for internal use
struct Node{ // nested node struct representing a single node of ... | 27.168724 | 98 | 0.601333 | hibalubbad |
9886401d3e3ef59f7e44d53690dc8a96cc6c84c4 | 6,892 | cpp | C++ | src/clipstable.cpp | jslick/parrotclips | faa08415e2c9fc058c02d42a511fd947caa517e1 | [
"MIT"
] | null | null | null | src/clipstable.cpp | jslick/parrotclips | faa08415e2c9fc058c02d42a511fd947caa517e1 | [
"MIT"
] | null | null | null | src/clipstable.cpp | jslick/parrotclips | faa08415e2c9fc058c02d42a511fd947caa517e1 | [
"MIT"
] | null | null | null | #include "clipstable.h"
#include "clip.h"
#include "clipboardmanager.h"
#include <QHeaderView>
#include <QMenu>
#include <QKeyEvent>
#include <QTimer>
enum Cols : int
{
NumberCol = 0,
NameCol = 1,
TextPreviewCol = 2,
};
class ClipItem : public QTableWidgetItem
{
public:
ClipItem(QShar... | 26.40613 | 97 | 0.642339 | jslick |
988b265190ce1cb73435c292d2a81e38dd50051a | 2,242 | cpp | C++ | ToDoManager/src/TaskFunctions.cpp | Electrux/CCPP-Code | 3c5e5b866cf050c11bced9651b112eb31dd2465d | [
"BSD-3-Clause"
] | 6 | 2019-08-29T23:31:17.000Z | 2021-11-14T20:35:47.000Z | ToDoManager/src/TaskFunctions.cpp | Electrux/CCPP-Code | 3c5e5b866cf050c11bced9651b112eb31dd2465d | [
"BSD-3-Clause"
] | null | null | null | ToDoManager/src/TaskFunctions.cpp | Electrux/CCPP-Code | 3c5e5b866cf050c11bced9651b112eb31dd2465d | [
"BSD-3-Clause"
] | 1 | 2019-09-01T12:22:58.000Z | 2019-09-01T12:22:58.000Z | #include <iostream>
#include <vector>
#include <string>
#include "../include/StringFuncs.hpp"
#include "../include/FileFunctions.hpp"
#include "../include/Tasks.hpp"
#include "../include/TaskFunctions.hpp"
bool inserttask( std::vector< std::string > & args )
{
if( args.size() < 3 ) {
std::cerr << "Usage: " << args... | 20.381818 | 74 | 0.577163 | Electrux |
989121c0c76959f828d344e4e8043acbc1cbf34b | 266 | cpp | C++ | 1. Some Essential Concepts/pointertostructure.cpp | AdheipSingh/Data-Structure-and-Algorithms | 6b8789e968c7a5cea63ea2a3761dfb665f190a94 | [
"MIT"
] | null | null | null | 1. Some Essential Concepts/pointertostructure.cpp | AdheipSingh/Data-Structure-and-Algorithms | 6b8789e968c7a5cea63ea2a3761dfb665f190a94 | [
"MIT"
] | null | null | null | 1. Some Essential Concepts/pointertostructure.cpp | AdheipSingh/Data-Structure-and-Algorithms | 6b8789e968c7a5cea63ea2a3761dfb665f190a94 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
struct rectangle
{
int length;
int bredth;
};
int main()
{
struct rectangle r={10,5};
struct rectangle *p=&r;
r.length=15;
(*p).length=20;
p->length=20;
//Accessing structure using pointer.
return 0;
}
| 11.565217 | 38 | 0.646617 | AdheipSingh |
989843297c16abd83e4186dbd2e83df6c7a3d94b | 170,937 | cc | C++ | src/bin/dhcp4/dhcp4_lexer.cc | nchaigne/kea | 2badfd4d9b4f2420b0e9683db5da16a3ab90dd81 | [
"Apache-2.0"
] | null | null | null | src/bin/dhcp4/dhcp4_lexer.cc | nchaigne/kea | 2badfd4d9b4f2420b0e9683db5da16a3ab90dd81 | [
"Apache-2.0"
] | null | null | null | src/bin/dhcp4/dhcp4_lexer.cc | nchaigne/kea | 2badfd4d9b4f2420b0e9683db5da16a3ab90dd81 | [
"Apache-2.0"
] | null | null | null | #line 1 "dhcp4_lexer.cc"
#line 3 "dhcp4_lexer.cc"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
/* %not-for-header */
/* %if-c-only */
/* %if-not-reentrant */
#define yy_create_buffer parser4__create_buffer
#define yy_delete_buffer parser4__delete_buffer
#define yy_scan_buffer parser4_... | 31.416468 | 102 | 0.590545 | nchaigne |
989cbe514b089104931a6b7acc939dcb87579115 | 481 | hh | C++ | include/CheckBox.hh | freddyox/word_search | d6db6b2e584025064209fadea7029ba72b1acfff | [
"MIT"
] | null | null | null | include/CheckBox.hh | freddyox/word_search | d6db6b2e584025064209fadea7029ba72b1acfff | [
"MIT"
] | null | null | null | include/CheckBox.hh | freddyox/word_search | d6db6b2e584025064209fadea7029ba72b1acfff | [
"MIT"
] | null | null | null | #ifndef CHECKBOX_HH
#define CHECKBOX_HH
#include <SFML/Graphics.hpp>
class CheckBox : public sf::Transformable{
private:
int fX, fY;
float fScale;
sf::Vector2f fSize;
sf::Texture fTx, fTx1;
sf::Sprite fUnchecked, fChecked;
bool fStatus;
public:
CheckBox(int,int,float);
~CheckBox();
void update();
... | 19.24 | 61 | 0.696466 | freddyox |
98a2a78f4ff77fd55ea14e249ce2c379ae38abab | 3,735 | cpp | C++ | test/unit/module/real/special/dawson.cpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | 340 | 2020-09-16T21:12:48.000Z | 2022-03-28T15:40:33.000Z | test/unit/module/real/special/dawson.cpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | 383 | 2020-09-17T06:56:35.000Z | 2022-03-13T15:58:53.000Z | test/unit/module/real/special/dawson.cpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | 28 | 2021-02-27T23:11:23.000Z | 2022-03-25T12:31:29.000Z | //==================================================================================================
/**
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//==================================================================================================
#... | 43.941176 | 134 | 0.472289 | leha-bot |
f0f856881d4a96ac48bf683ce59a49d73a6a2102 | 2,613 | cpp | C++ | aws-cpp-sdk-route53-recovery-control-config/source/model/Cluster.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-route53-recovery-control-config/source/model/Cluster.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-route53-recovery-control-config/source/model/Cluster.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/route53-recovery-control-config/model/Cluster.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
names... | 22.921053 | 130 | 0.738615 | perfectrecall |
f0fd1c24713114cf0869370ebf5573bf0dcef51d | 11,295 | cpp | C++ | Tests/Source/TestLibCString.cpp | UltraOS/Ultra | 287035fea303767285e48e5c7867d147790ff55b | [
"Apache-2.0"
] | 44 | 2020-07-09T07:31:43.000Z | 2022-03-29T20:55:01.000Z | Tests/Source/TestLibCString.cpp | 8infy/UltraOS | 2ed2879c96a7095b5077df5ba5db5b30a6565417 | [
"Apache-2.0"
] | 3 | 2021-04-24T13:53:53.000Z | 2021-09-27T05:50:28.000Z | Tests/Source/TestLibCString.cpp | 8infy/UltraOS | 2ed2879c96a7095b5077df5ba5db5b30a6565417 | [
"Apache-2.0"
] | 3 | 2021-03-01T09:29:12.000Z | 2021-06-25T17:06:27.000Z | #include "TestRunner.h"
namespace libc {
#include "LibC/string.h"
#include "LibC/string.c"
#include "LibC/strings.h"
#include "LibC/strings.c"
}
TEST(Strcpy) {
char str[3];
libc::memset(str, 0xFF, 3);
const char* my_str = "X";
libc::strcpy(str, my_str);
Assert::that(str[0]).is_equal('X');
... | 31.997167 | 91 | 0.609473 | UltraOS |
0b054cc578985148d427501a8fabe219e826e96e | 4,691 | cpp | C++ | app/source/GPUMesh.cpp | tinker-lab/AnchoredGestures | ca5ac616149e19f6db7ee493b89fc1c0109c0fb2 | [
"MIT"
] | null | null | null | app/source/GPUMesh.cpp | tinker-lab/AnchoredGestures | ca5ac616149e19f6db7ee493b89fc1c0109c0fb2 | [
"MIT"
] | null | null | null | app/source/GPUMesh.cpp | tinker-lab/AnchoredGestures | ca5ac616149e19f6db7ee493b89fc1c0109c0fb2 | [
"MIT"
] | null | null | null | #include "GPUMesh.H"
GPUMesh::GPUMesh(GLenum usage, int allocateVertexByteSize, int allocateIndexByteSize, int vertexOffset, const std::vector<Vertex> &data, int indexByteSize/*=0*/, int* index/*=nullptr*/)
{
_creatorThreadID = boost::this_thread::get_id();
assert(data.size() - vertexOffset >= 0);
int dataB... | 33.035211 | 186 | 0.734172 | tinker-lab |
0b0b283bcfa6431e7b6a80183b689f6b500fbed0 | 20,817 | cpp | C++ | Server/dep/g3dlite/G3D/GImage_bmp.cpp | ZON3DEV/wow-vanilla | 7b6f03c3e1e7d8dd29a92ba77ed021e5913e5e9f | [
"OpenSSL"
] | 42 | 2015-01-05T10:00:07.000Z | 2022-02-18T14:51:33.000Z | Server/dep/g3dlite/G3D/GImage_bmp.cpp | ZON3DEV/wow-vanilla | 7b6f03c3e1e7d8dd29a92ba77ed021e5913e5e9f | [
"OpenSSL"
] | 20 | 2017-04-10T18:41:58.000Z | 2017-04-10T19:01:12.000Z | Server/dep/g3dlite/G3D/GImage_bmp.cpp | ZON3DEV/wow-vanilla | 7b6f03c3e1e7d8dd29a92ba77ed021e5913e5e9f | [
"OpenSSL"
] | 31 | 2015-01-09T02:04:29.000Z | 2021-09-01T13:20:20.000Z | /**
@file GImage_bmp.cpp
@author Morgan McGuire, http://graphics.cs.williams.edu
@created 2002-05-27
@edited 2006-05-10
*/
#include "G3D/platform.h"
#include "G3D/GImage.h"
#include "G3D/BinaryInput.h"
#include "G3D/BinaryOutput.h"
#include "G3D/Log.h"
namespace G3D {
#ifndef G3D_WIN32
/**
This is used by ... | 28.993036 | 83 | 0.500745 | ZON3DEV |
0b0d268f43f582c81ee7647da9dd6bb314435acd | 15,935 | cc | C++ | src/transport_manager.cc | Quicr/qmedia | 96408d740bf35e6a845f61c40cc9f9ff859a9955 | [
"BSD-2-Clause"
] | null | null | null | src/transport_manager.cc | Quicr/qmedia | 96408d740bf35e6a845f61c40cc9f9ff859a9955 | [
"BSD-2-Clause"
] | 1 | 2021-12-29T03:37:51.000Z | 2022-03-16T05:59:11.000Z | src/transport_manager.cc | Quicr/qmedia | 96408d740bf35e6a845f61c40cc9f9ff859a9955 | [
"BSD-2-Clause"
] | null | null | null | #include <string.h> // memcpy
#include <iostream>
#include <thread>
#include <cassert>
#include <ostream>
#include <iomanip>
#include <sstream>
#include "transport_manager.hh"
#include "netTransportUDP.hh"
namespace neo_media
{
static std::string to_hex(const std::vector<uint8_t> &data)
{
std::stringstream... | 29.025501 | 81 | 0.60251 | Quicr |
0b101eeb83838ffd08d808afd4ff9e6c8daa5f2e | 19,662 | cpp | C++ | Source/Tests/Xml1/XmlTest1.cpp | Dschee/Neptune | 016d132f8e4449e6b0f79fbc5ce25de365eab983 | [
"BSD-3-Clause"
] | 17 | 2015-09-17T06:53:47.000Z | 2021-08-09T03:41:21.000Z | Source/Tests/Xml1/XmlTest1.cpp | Dschee/Neptune | 016d132f8e4449e6b0f79fbc5ce25de365eab983 | [
"BSD-3-Clause"
] | 17 | 2015-01-05T21:06:22.000Z | 2015-12-07T20:45:44.000Z | Source/Tests/Xml1/XmlTest1.cpp | Dschee/Neptune | 016d132f8e4449e6b0f79fbc5ce25de365eab983 | [
"BSD-3-Clause"
] | 18 | 2015-12-09T21:27:41.000Z | 2020-11-27T11:38:49.000Z | /*****************************************************************
|
| XML Test Program 1
|
| (c) 2001-2003 Gilles Boccon-Gibod
| Author: Gilles Boccon-Gibod (bok@bok.net)
|
****************************************************************/
/*-------------------------------------------------------------... | 33.212838 | 252 | 0.528888 | Dschee |
0b180b5ca6ff1ae19e1b19c276069dd6d9e33471 | 1,050 | hpp | C++ | include/eosio_utils.hpp | hypha-dao/accounting-contracts | 70df3769ba0f2eec0a6c006cd7c10aebf2f6ee31 | [
"MIT"
] | null | null | null | include/eosio_utils.hpp | hypha-dao/accounting-contracts | 70df3769ba0f2eec0a6c006cd7c10aebf2f6ee31 | [
"MIT"
] | 6 | 2020-12-01T17:48:18.000Z | 2021-03-25T19:37:30.000Z | include/eosio_utils.hpp | hypha-dao/accounting-contracts | 70df3769ba0f2eec0a6c006cd7c10aebf2f6ee31 | [
"MIT"
] | null | null | null | #pragma once
#include <cmath>
#include <string>
#include <eosio/eosio.hpp>
#include <eosio/asset.hpp>
#include <eosio/crypto.hpp>
#include <document_graph/util.hpp>
namespace hypha {
namespace util {
inline eosio::checksum256
hashString(const std::string& str)
{
return eosio::sha256(str.data(), str.size());
}
... | 21.428571 | 81 | 0.668571 | hypha-dao |
0b1a50530a96a0cde176ea6392bd0bb003cde641 | 342 | hpp | C++ | include/nsu/cin.hpp | yuu/nsu | a5524dd6263449d627c42f7de381d72167041554 | [
"MIT"
] | null | null | null | include/nsu/cin.hpp | yuu/nsu | a5524dd6263449d627c42f7de381d72167041554 | [
"MIT"
] | null | null | null | include/nsu/cin.hpp | yuu/nsu | a5524dd6263449d627c42f7de381d72167041554 | [
"MIT"
] | null | null | null | #ifndef NSU_CIN
#define NSU_CIN
#include <fstream>
namespace nsu {
#ifndef SW_CIN_INPUT_FILE
#define SW_CIN_INPUT_FILE "input"
#endif
#define SW_CIN_INPUT \
std::ifstream CIN_INPUT_FILE_STREAM(SW_CIN_INPUT_FILE); \
std::cin.rdbuf(CIN_INPUT_FILE_STREAM.rdbuf());
} // ... | 18 | 61 | 0.669591 | yuu |
0b1b8c6315edcfc44be74111200788f8dec2206b | 41,299 | cpp | C++ | Framework/PVRAssets/FileIO/PODReader.cpp | kusharami/PowerVR_Native_SDK | 41557a911316126417ce4c92f1b89396f24f39d6 | [
"MIT"
] | 13 | 2017-07-24T05:12:53.000Z | 2021-06-12T15:35:40.000Z | Framework/PVRAssets/FileIO/PODReader.cpp | kusharami/PowerVR_Native_SDK | 41557a911316126417ce4c92f1b89396f24f39d6 | [
"MIT"
] | null | null | null | Framework/PVRAssets/FileIO/PODReader.cpp | kusharami/PowerVR_Native_SDK | 41557a911316126417ce4c92f1b89396f24f39d6 | [
"MIT"
] | 5 | 2017-11-03T19:23:02.000Z | 2021-12-24T04:12:34.000Z | /*!
\brief Implementation of methods of the PODReader class.
\file PVRAssets/FileIO/PODReader.cpp
\author PowerVR by Imagination, Developer Technology Team
\copyright Copyright (c) Imagination Technologies Limited.
*/
//!\cond NO_DOXYGEN
#include "PVRAssets/FileIO/PODReader.h"
#include "PVRAssets/FileIO/PODDefines.h"
#... | 32.365987 | 146 | 0.709775 | kusharami |
0b1decc21a394d49701c4cc4909f2e0649c91a22 | 87,182 | cc | C++ | wrappers/8.1.1/vtkFixedPointVolumeRayCastMapperWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 6 | 2016-02-03T12:48:36.000Z | 2020-09-16T15:07:51.000Z | wrappers/8.1.1/vtkFixedPointVolumeRayCastMapperWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 4 | 2016-02-13T01:30:43.000Z | 2020-03-30T16:59:32.000Z | wrappers/8.1.1/vtkFixedPointVolumeRayCastMapperWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | null | null | null | /* this file has been autogenerated by vtkNodeJsWrap */
/* editing this might proof futile */
#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include <nan.h>
#include "vtkVolumeMapperWrap.h"
#include "vtkFixedPointVolumeRayCastMapperWrap.h"
#include "vtkObjectBaseWrap.h"
#include "vtkRendererWrap.h"
#include "... | 34.43207 | 136 | 0.722856 | axkibe |
0b1df265db46848139935e604fb125af2de40a43 | 1,078 | cpp | C++ | src/editor/EditorCamera.cpp | AbdullrahmanAlzeidi/ALZparticles | 725ba1fc1998b0b2f3413253f2f75a48d9b62b05 | [
"MIT"
] | 11 | 2019-03-30T14:33:28.000Z | 2019-07-27T22:46:43.000Z | src/editor/EditorCamera.cpp | AbdullrahmanAlzeidi/Ainan | e7beff569a0f40b985ea4c46062bbbc80902fdbe | [
"MIT"
] | 1 | 2019-07-01T18:33:44.000Z | 2019-07-02T07:55:25.000Z | src/editor/EditorCamera.cpp | AbdullrahmanAlzeidi/Ainan | e7beff569a0f40b985ea4c46062bbbc80902fdbe | [
"MIT"
] | 1 | 2020-12-23T05:16:21.000Z | 2020-12-23T05:16:21.000Z | #include "EditorCamera.h"
#include "environment/CameraObject.h"
namespace Ainan {
EditorCamera::EditorCamera(ProjectionMode mode) :
m_Camera(mode, glm::mat4(1.0f), 16.0f / 9.0f, 0.01f, 1000.0f, c_CameraZoomFactorDefault)
{
}
void EditorCamera::Update(float deltaTime, const Rectangle& viewport)
{
m_Camera.S... | 27.641026 | 117 | 0.722635 | AbdullrahmanAlzeidi |
0b1e8ee5e32b12f4e9cada17fbd7e85a03959c7e | 9,974 | cpp | C++ | salamand/plugins/demoview/demoview.cpp | lejcik/as-sdk4-unofficial | b8b9207bd3cdc512289003ed38fc20883f2e0e3b | [
"BSD-Source-Code"
] | 2 | 2021-12-13T04:23:21.000Z | 2022-03-07T12:03:44.000Z | salamand/plugins/demoview/demoview.cpp | lejcik/as-sdk4-unofficial | b8b9207bd3cdc512289003ed38fc20883f2e0e3b | [
"BSD-Source-Code"
] | null | null | null | salamand/plugins/demoview/demoview.cpp | lejcik/as-sdk4-unofficial | b8b9207bd3cdc512289003ed38fc20883f2e0e3b | [
"BSD-Source-Code"
] | null | null | null | //****************************************************************************
//
// Copyright (c) ALTAP, spol. s r.o. All rights reserved.
//
// This is a part of the Altap Salamander SDK library.
//
// The SDK is provided "AS IS" and without warranty of any kind and
// ALTAP EXPRESSLY DISCLAIMS ALL WARRANTIES, EXPRE... | 33.35786 | 133 | 0.696611 | lejcik |
0b23c16e9ae4ebd692ee80266660337951703d40 | 450 | cpp | C++ | blue_noise_generator_parameters.cpp | 10110111/BlueNoiseGenerator | 99dd27512fddddbad760109c936e05d849a1b3f4 | [
"MIT"
] | 170 | 2016-09-22T05:37:35.000Z | 2022-03-30T06:06:26.000Z | blue_noise_generator_parameters.cpp | 10110111/BlueNoiseGenerator | 99dd27512fddddbad760109c936e05d849a1b3f4 | [
"MIT"
] | 9 | 2016-09-22T13:09:11.000Z | 2021-04-27T13:44:57.000Z | blue_noise_generator_parameters.cpp | 10110111/BlueNoiseGenerator | 99dd27512fddddbad760109c936e05d849a1b3f4 | [
"MIT"
] | 18 | 2016-09-22T12:29:10.000Z | 2021-08-20T03:18:05.000Z | #include "blue_noise_generator_parameters.h"
BlueNoiseGeneratorParameters::BlueNoiseGeneratorParameters()
{
chosenMethod = Method_SolidAngle;
N_dimensions = 2u;
dimensionSize[0] = 64;
dimensionSize[1] = 64;
dimensionSize[2] = 0;
dimensionSize[3] = 0;
N_valuesPerItem = 1u;
useMultithreading... | 25 | 61 | 0.711111 | 10110111 |
0b2859a457ad0dd5162282747ff7f053d24f2684 | 233 | cpp | C++ | test/test_matcher_cast_string1.cpp | lingjf/h2un | 7735c2f07f58ea8b92a9e9608c9b45c98c94c670 | [
"Apache-2.0"
] | 5 | 2015-03-02T22:29:00.000Z | 2020-06-28T08:52:00.000Z | test/test_matcher_cast_string1.cpp | lingjf/h2un | 7735c2f07f58ea8b92a9e9608c9b45c98c94c670 | [
"Apache-2.0"
] | 5 | 2019-05-10T02:28:00.000Z | 2021-07-17T00:53:18.000Z | test/test_matcher_cast_string1.cpp | lingjf/h2un | 7735c2f07f58ea8b92a9e9608c9b45c98c94c670 | [
"Apache-2.0"
] | 5 | 2016-05-25T07:31:16.000Z | 2021-08-29T04:25:18.000Z | #include "../source/h2_unit.cpp"
#include "test_types.hpp"
CASE(cast string1)
{
STRING_DECL_LIST;
#define TheCheck(x, y) \
OK(x, y); \
OK(Eq(x), y);
H2Fullmesh(TheCheck, (STRING_VAR_LIST));
#undef TheCheck
}
| 15.533333 | 43 | 0.626609 | lingjf |
0b2d85b0264feb0ad3161d79f7d8dffeef1af232 | 1,033 | cpp | C++ | apps/stencil_chain/process.cpp | Neo-Vincent/Halide | 50c40dc185b040b93f1a90b6373a82744312cfd6 | [
"MIT"
] | null | null | null | apps/stencil_chain/process.cpp | Neo-Vincent/Halide | 50c40dc185b040b93f1a90b6373a82744312cfd6 | [
"MIT"
] | null | null | null | apps/stencil_chain/process.cpp | Neo-Vincent/Halide | 50c40dc185b040b93f1a90b6373a82744312cfd6 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <chrono>
#include "stencil_chain.h"
#include "stencil_chain_classic_auto_schedule.h"
#include "stencil_chain_auto_schedule.h"
#include "benchmark_util.h"
#include "HalideBuffer.h"
#include "halide_image_io.h"
using namespace Halide::Runtime;
using namespace Halide::Tools;
int main(int arg... | 25.825 | 74 | 0.660213 | Neo-Vincent |
0b2e3018da402bedc74c75920d41159d4389d775 | 70,466 | hpp | C++ | include/RBC/algorithms.hpp | pAIgn10/RandomBallCover | d39241d17e3767c802310b28dc1327083a297406 | [
"MIT"
] | 3 | 2015-05-24T20:20:49.000Z | 2016-06-18T23:46:21.000Z | include/RBC/algorithms.hpp | nlamprian/RandomBallCover | d39241d17e3767c802310b28dc1327083a297406 | [
"MIT"
] | 1 | 2015-12-05T23:36:07.000Z | 2015-12-05T23:36:07.000Z | include/RBC/algorithms.hpp | nlamprian/RandomBallCover | d39241d17e3767c802310b28dc1327083a297406 | [
"MIT"
] | 2 | 2018-05-31T22:28:49.000Z | 2018-07-03T08:05:33.000Z | /*! \file algorithms.hpp
* \brief Declares classes that organize the execution of OpenCL kernels.
* \details Each class hides the details of kernel execution. They
* initialize the necessary buffers, set up the workspaces,
* and run the kernels.
* \author Nick Lamprianidis
* \version 1.2.... | 58.478008 | 137 | 0.58976 | pAIgn10 |
0b2f23cb844160c1dd5d03a2f7f4e4e2071d66d7 | 2,890 | cpp | C++ | vendor/libbitcoin/test/config/endpoint.cpp | X9Developers/xsn-wallet | 7b5aaf6de15928c8cf5b86a844e56710c301df1f | [
"MIT"
] | 1 | 2018-08-20T11:15:45.000Z | 2018-08-20T11:15:45.000Z | vendor/libbitcoin/test/config/endpoint.cpp | X9Developers/xsn-wallet | 7b5aaf6de15928c8cf5b86a844e56710c301df1f | [
"MIT"
] | null | null | null | vendor/libbitcoin/test/config/endpoint.cpp | X9Developers/xsn-wallet | 7b5aaf6de15928c8cf5b86a844e56710c301df1f | [
"MIT"
] | 3 | 2018-08-30T08:35:43.000Z | 2019-03-29T15:36:26.000Z | /**
* Copyright (c) 2011-2017 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the Lic... | 31.413043 | 81 | 0.745329 | X9Developers |
0b2f938231e4a985bdcef0df4ce5e863513d03c0 | 2,461 | cpp | C++ | source/app/rendering/3d/mesh.cpp | mattwamboldt/rasterizer | a571c9350d448f71e991f145cb0264abb2002d4d | [
"MIT"
] | null | null | null | source/app/rendering/3d/mesh.cpp | mattwamboldt/rasterizer | a571c9350d448f71e991f145cb0264abb2002d4d | [
"MIT"
] | null | null | null | source/app/rendering/3d/mesh.cpp | mattwamboldt/rasterizer | a571c9350d448f71e991f145cb0264abb2002d4d | [
"MIT"
] | null | null | null | #include "mesh.h"
#include <fstream>
#include <sstream>
#include "..\..\debug.h"
using namespace std;
bool Mesh::ReadTestFormat(string filename)
{
ifstream file(filename);
if (file.is_open())
{
string line;
while (getline(file, line))
{
string object;
... | 24.366337 | 72 | 0.443722 | mattwamboldt |
0b347450fd64f2ccca94a2f2380cf4161b6b2db5 | 5,913 | cc | C++ | clients/jsBot/node_modules/ml-js/node_modules/fann/src/fann-create.cc | tholum/AIGame | 7edadabab723e3152a170c61ab8ba0bcacf1c5c5 | [
"MIT"
] | null | null | null | clients/jsBot/node_modules/ml-js/node_modules/fann/src/fann-create.cc | tholum/AIGame | 7edadabab723e3152a170c61ab8ba0bcacf1c5c5 | [
"MIT"
] | null | null | null | clients/jsBot/node_modules/ml-js/node_modules/fann/src/fann-create.cc | tholum/AIGame | 7edadabab723e3152a170c61ab8ba0bcacf1c5c5 | [
"MIT"
] | null | null | null | /*
* All functions related to creation and running a network
*/
#include "node-fann.h"
NNet::NNet()
{
FANN = NULL;
scale_present = false;
}
NNet::~NNet()
{
if (FANN != NULL) {
fann_destroy(FANN);
FANN = NULL;
}
}
int NNet::_GetLayersFromArray(unsigned int *&layers, Local<Array> a)
{
HandleScope scope;
... | 23.188235 | 87 | 0.670556 | tholum |
0b369c1c1cb9eac9e464f7da7cc23359f91ccc51 | 858 | hpp | C++ | engine/combat/include/CombatConstants.hpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/combat/include/CombatConstants.hpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/combat/include/CombatConstants.hpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #pragma once
#include "DamageTypes.hpp"
class CombatConstants
{
public:
static const int DEATH_THRESHOLD;
static const int BASE_WEAPON_DIFFICULTY;
static const DamageType DEFAULT_UNARMED_DAMAGE_TYPE;
static const int HEAVY_WEAPON_THRESHOLD_IN_LBS;
static const int CRITICAL_DIFFICULTY;
static ... | 30.642857 | 56 | 0.777389 | prolog |
0b3d8bed4417bf8da67590e478b0da99f9119907 | 14,956 | cpp | C++ | Project/Dev_class11_handout/Motor2D/P_Zelda.cpp | Guille1406/Project-II | af954426efce06937671f02ac0a5840e5faefb0e | [
"Apache-2.0"
] | null | null | null | Project/Dev_class11_handout/Motor2D/P_Zelda.cpp | Guille1406/Project-II | af954426efce06937671f02ac0a5840e5faefb0e | [
"Apache-2.0"
] | null | null | null | Project/Dev_class11_handout/Motor2D/P_Zelda.cpp | Guille1406/Project-II | af954426efce06937671f02ac0a5840e5faefb0e | [
"Apache-2.0"
] | null | null | null | #include "P_Zelda.h"
#include "j1App.h"
#include "j1Input.h"
#include "j1FileSystem.h"
#include "j1Player.h"
#include "Character.h"
#include "j1InputManager.h"
#include "j1Player.h"
#include "j1Render.h"
#include"j1Audio.h"
#define JUMP_DISTANCE 128
void P_Zelda::Attack(float dt)
{
if (!temp) {
temp = true;
... | 25.051926 | 170 | 0.640211 | Guille1406 |
0b3e0dd64599d501d5725e5b1344caea504a9496 | 26,910 | cpp | C++ | src/WtpDownloadApp.cpp | dark0venom/WtpDownload_osx | 78f4ffbc3a76e6bab6e532b8098a9da03c805c9c | [
"Condor-1.1",
"Unlicense"
] | null | null | null | src/WtpDownloadApp.cpp | dark0venom/WtpDownload_osx | 78f4ffbc3a76e6bab6e532b8098a9da03c805c9c | [
"Condor-1.1",
"Unlicense"
] | null | null | null | src/WtpDownloadApp.cpp | dark0venom/WtpDownload_osx | 78f4ffbc3a76e6bab6e532b8098a9da03c805c9c | [
"Condor-1.1",
"Unlicense"
] | null | null | null | /*******************************************************************************
Copyright (C) 2017 Marvell International Ltd.
This software file (the "File") is owned and distributed by Marvell
International Ltd. and/or its affiliates ("Marvell") under the following
alternative licensing terms. Once you have made an... | 29.833703 | 183 | 0.677072 | dark0venom |
0b420519a55b37806510253f2bf15e33eab914b9 | 3,748 | cpp | C++ | Examples/Scene/mainwindow.cpp | enotio/Tempest | 1a7105cfca3669d54c696ad8188f04f25159c0a0 | [
"MIT"
] | 5 | 2017-05-31T21:25:57.000Z | 2020-01-14T14:11:41.000Z | Examples/Scene/mainwindow.cpp | enotio/Tempest | 1a7105cfca3669d54c696ad8188f04f25159c0a0 | [
"MIT"
] | 2 | 2017-11-13T14:32:21.000Z | 2018-10-03T17:07:36.000Z | Examples/Scene/mainwindow.cpp | enotio/Tempest | 1a7105cfca3669d54c696ad8188f04f25159c0a0 | [
"MIT"
] | 2 | 2018-01-31T14:06:58.000Z | 2018-10-02T11:46:34.000Z | #include "mainwindow.h"
#include <Tempest/Assert>
#include <Tempest/RenderState>
static MainWindow::Vertex quadVb[] = {
{ 1,-1,-1, 1,1},
{-1,-1,-1, 0,1},
{-1, 1,-1, 0,0},
{ 1, 1,-1, 1,0},
{-1,-1, 1, 1,1},
{ 1,-1, 1, 0,1},
{ 1, 1, 1, 0,0},
{-1, 1, 1, 1,0},
{-1, 1,-1, 1,0},
{-1, -1,-1, 1,... | 22.309524 | 106 | 0.577375 | enotio |
0b43390a80c8ca8ca52035860a15b0b3c7224660 | 2,117 | cc | C++ | common/utils.cc | TimeExceed/serializer-combat | fb112a1137ce89d00d87b6f9c8a1f420f654ad74 | [
"MIT"
] | null | null | null | common/utils.cc | TimeExceed/serializer-combat | fb112a1137ce89d00d87b6f9c8a1f420f654ad74 | [
"MIT"
] | null | null | null | common/utils.cc | TimeExceed/serializer-combat | fb112a1137ce89d00d87b6f9c8a1f420f654ad74 | [
"MIT"
] | 1 | 2018-06-23T14:48:48.000Z | 2018-06-23T14:48:48.000Z | #include "utils.hh"
#include <deque>
#include <fstream>
using namespace std;
namespace common {
int64_t atoi(const string& s)
{
int64_t res = 0;
for(string::const_iterator c = s.begin(); c != s.end(); ++c) {
res *= 10;
res += *c - '0';
}
return res;
}
void toVector(std::vector<uint8_... | 20.754902 | 66 | 0.39915 | TimeExceed |
0b45ff7572d48a11b005f610b535488596a26fe8 | 950 | cpp | C++ | src/platform.cpp | HamzaHajeir/CryptoLib | f3ae3dee08b48e415f5f0fae60d14b894df28322 | [
"MIT"
] | null | null | null | src/platform.cpp | HamzaHajeir/CryptoLib | f3ae3dee08b48e415f5f0fae60d14b894df28322 | [
"MIT"
] | null | null | null | src/platform.cpp | HamzaHajeir/CryptoLib | f3ae3dee08b48e415f5f0fae60d14b894df28322 | [
"MIT"
] | null | null | null |
#include "platform.h"
#ifdef USE_HAL_DRIVER
#ifdef STM32F0
#include "stm32f0xx.h"
#endif
#ifdef STM32F1
#include "stm32f1xx.h"
#endif
#ifdef STM32F2
#include "stm32f2xx.h"
#endif
#ifdef STM32F3
#include "stm32f3xx.h"
#endif
#ifdef STM32F4
#include "stm32f4xx.h"
#endif
#ifdef STM32F7
#include "stm32f7xx.h"
#endif
#end... | 17.272727 | 58 | 0.715789 | HamzaHajeir |
0b4848714991f0906572488af65f568c75faf7ca | 6,089 | cpp | C++ | src/Misc.cpp | uoitalia/crossuo | 0d1665926b605cb0899a51b4b715d317119a4f06 | [
"MIT"
] | null | null | null | src/Misc.cpp | uoitalia/crossuo | 0d1665926b605cb0899a51b4b715d317119a4f06 | [
"MIT"
] | null | null | null | src/Misc.cpp | uoitalia/crossuo | 0d1665926b605cb0899a51b4b715d317119a4f06 | [
"MIT"
] | null | null | null | // MIT License
#include "Misc.h"
#include <locale>
#include <codecvt>
SDL_threadID g_MainThread;
#if USE_DEBUG_FUNCTION_NAMES == 1
std::deque<std::string> g_DebugFuncStack;
#endif
int CalculatePercents(int max, int current, int maxValue)
{
if (max > 0)
{
max = (current * 100) / max;... | 21.592199 | 101 | 0.514206 | uoitalia |
0b4aac28f087ad4032fb37f536fb90cd0649e500 | 6,910 | cpp | C++ | src/tests/state_tests.cpp | clearstorydata/mesos | 4164125048c6635a4d0dbe72daf243457b0f325b | [
"Apache-2.0"
] | null | null | null | src/tests/state_tests.cpp | clearstorydata/mesos | 4164125048c6635a4d0dbe72daf243457b0f325b | [
"Apache-2.0"
] | null | null | null | src/tests/state_tests.cpp | clearstorydata/mesos | 4164125048c6635a4d0dbe72daf243457b0f325b | [
"Apache-2.0"
] | 1 | 2022-02-19T10:59:37.000Z | 2022-02-19T10:59:37.000Z | /**
* 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 the Apache License, Version 2.0 (the
* "License"); you... | 20.443787 | 75 | 0.700579 | clearstorydata |
0b4d7b5415910849e5f93efe07e28c778d99dec4 | 965 | hpp | C++ | Leetcode_C++/Leetcode_C++/Solution17.hpp | cwwise/Leetcode | 5f8879945057312acd76492370e48314e4ec3b64 | [
"MIT"
] | null | null | null | Leetcode_C++/Leetcode_C++/Solution17.hpp | cwwise/Leetcode | 5f8879945057312acd76492370e48314e4ec3b64 | [
"MIT"
] | null | null | null | Leetcode_C++/Leetcode_C++/Solution17.hpp | cwwise/Leetcode | 5f8879945057312acd76492370e48314e4ec3b64 | [
"MIT"
] | null | null | null | //
// Solution17.hpp
// Leetcode_C++
//
// Created by chenwei on 2020/3/25.
// Copyright © 2020 chenwei. All rights reserved.
//
#ifndef Solution17_hpp
#define Solution17_hpp
#include <stdio.h>
#include "Leetcode_C.h"
/*
一个有名的按摩师会收到源源不断的预约请求,每个预约都可以选择接或不接。在每次预约服务之间要有休息时间,因此她不能接受相邻的预约。给定一个预约请求序列,替按摩师找到最优的预约集合(总预... | 22.97619 | 107 | 0.563731 | cwwise |
0b500d88e85eb9f24c90b0216fa184ad698367da | 2,798 | cpp | C++ | src/Seele/Signer.cpp | IFWallet/wallet-core | 4ab8d2fac26530ffde6dbd56a5b4f1e96c111191 | [
"MIT"
] | 7 | 2019-05-29T02:56:59.000Z | 2021-08-31T16:58:29.000Z | src/Seele/Signer.cpp | moneto-dev/wallet-core | 0bfd312f868f02fe51cd2672e2397fd98d707db7 | [
"MIT"
] | null | null | null | src/Seele/Signer.cpp | moneto-dev/wallet-core | 0bfd312f868f02fe51cd2672e2397fd98d707db7 | [
"MIT"
] | 5 | 2020-03-07T14:54:39.000Z | 2021-09-25T03:27:31.000Z | // Copyright © 2017-2019 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "Signer.h"
#include "Serialization.h"
#include ".... | 31.088889 | 77 | 0.715511 | IFWallet |
0b586cbc208ac79c8b517cc3e92fe9f4d6de4e09 | 5,426 | cpp | C++ | 5. Black/2 Week/4. Yellow Pages/test.cpp | freeraisor/yandexcplusplus | 9708fdb6cd7e039672ebc2e77f131fbc7a765750 | [
"MIT"
] | 14 | 2019-08-29T12:34:07.000Z | 2022-03-09T13:31:18.000Z | 5. Black/2 Week/4. Yellow Pages/test.cpp | freeraisor/yandexcplusplus | 9708fdb6cd7e039672ebc2e77f131fbc7a765750 | [
"MIT"
] | null | null | null | 5. Black/2 Week/4. Yellow Pages/test.cpp | freeraisor/yandexcplusplus | 9708fdb6cd7e039672ebc2e77f131fbc7a765750 | [
"MIT"
] | 8 | 2020-09-10T11:40:03.000Z | 2022-03-24T00:34:38.000Z | #include "yellow_pages.h"
#include "test_runner.h"
#include <algorithm>
#include <utility>
using namespace YellowPages;
using namespace std;
Signals GenerateSignals() {
Signals signals;
{ // Сигнал №1 с адресом, названием и двумя телефонами
Signal signal;
signal.set_provider_id(31415);
auto& company... | 32.491018 | 304 | 0.644121 | freeraisor |
0b5b9b671a7c3253a0ce94446d474cc4b7f982dd | 356 | hpp | C++ | include/scluk/exception.hpp | circled-square/SCLUK | 72395a134dd751f6128cf7a637501474da3c69c2 | [
"Apache-2.0"
] | 2 | 2021-05-24T11:12:56.000Z | 2021-06-17T07:24:05.000Z | include/scluk/exception.hpp | circled-square/SCLUK | 72395a134dd751f6128cf7a637501474da3c69c2 | [
"Apache-2.0"
] | null | null | null | include/scluk/exception.hpp | circled-square/SCLUK | 72395a134dd751f6128cf7a637501474da3c69c2 | [
"Apache-2.0"
] | null | null | null | #ifndef SCLUK_EXCEPTION_HPP
#define SCLUK_EXCEPTION_HPP
#include <stdexcept>
#include "format.hpp"
namespace scluk {
//if need be, transform this into a macro to be used for any exception
std::runtime_error runtime_error(const char* fmt, auto...args) {
return std::runtime_error(sout(fmt, args...));
... | 23.733333 | 74 | 0.719101 | circled-square |
0b61b08a7d60c09d368dab486797b49db75d959b | 2,583 | hpp | C++ | modules/scene_manager/include/action_msgs/msg/goal_status_array__rosidl_typesupport_opensplice_cpp.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | modules/scene_manager/include/action_msgs/msg/goal_status_array__rosidl_typesupport_opensplice_cpp.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 3 | 2019-11-14T12:20:06.000Z | 2020-08-07T13:51:10.000Z | modules/scene_manager/include/action_msgs/msg/goal_status_array__rosidl_typesupport_opensplice_cpp.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | // generated from
// rosidl_typesupport_opensplice_cpp/resource/msg__rosidl_typesupport_opensplice_cpp.hpp.em
// generated code does not contain a copyright notice
#ifndef ACTION_MSGS__MSG__GOAL_STATUS_ARRAY__ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_HPP_
#define ACTION_MSGS__MSG__GOAL_STATUS_ARRAY__ROSIDL_TYPESUPPORT_OPENSPL... | 27.774194 | 124 | 0.850561 | Omnirobotic |
0b62a41954c0de8318950e0d5acf59a8d7b9b3bd | 22,417 | cc | C++ | dc_predictor.cc | pps83/pik | 9747f8dbe9c10079b7473966fc974e4b3bcef034 | [
"Apache-2.0"
] | null | null | null | dc_predictor.cc | pps83/pik | 9747f8dbe9c10079b7473966fc974e4b3bcef034 | [
"Apache-2.0"
] | null | null | null | dc_predictor.cc | pps83/pik | 9747f8dbe9c10079b7473966fc974e4b3bcef034 | [
"Apache-2.0"
] | null | null | null | // Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | 35.358044 | 80 | 0.608645 | pps83 |
0b658695c5522683cf6a3f2f0d952155984ab6bd | 1,272 | hh | C++ | hackt_docker/hackt/src/Object/expr/operator_precedence.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/expr/operator_precedence.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/expr/operator_precedence.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "Object/expr/operator_precedence.hh"
Enumerations for operator precedence.
$Id: operator_precedence.hh,v 1.5 2006/07/16 03:34:47 fang Exp $
*/
#ifndef __HAC_OBJECT_EXPR_OPERATOR_PRECEDENCE_H__
#define __HAC_OBJECT_EXPR_OPERATOR_PRECEDENCE_H__
namespace HAC {
namespace entity {
/**
NOTE: the values a... | 31.8 | 65 | 0.757075 | broken-wheel |
0b6685cf5a057cdd9f19a36ae658b801c6163220 | 2,977 | cpp | C++ | Projects/CoX/Servers/MapServer/Events/TradeUpdate.cpp | Stitchified/Segs | e6e21be22d4baf709174dae3f706a54efa589932 | [
"BSD-3-Clause"
] | null | null | null | Projects/CoX/Servers/MapServer/Events/TradeUpdate.cpp | Stitchified/Segs | e6e21be22d4baf709174dae3f706a54efa589932 | [
"BSD-3-Clause"
] | null | null | null | Projects/CoX/Servers/MapServer/Events/TradeUpdate.cpp | Stitchified/Segs | e6e21be22d4baf709174dae3f706a54efa589932 | [
"BSD-3-Clause"
] | null | null | null | /*!
* @addtogroup MapServerEvents Projects/CoX/Servers/MapServer/Events
* @{
*/
#include "TradeUpdate.h"
#include "MapEvents.h"
#include "NetStructures/Powers.h"
namespace SEGSEvents
{
namespace {
static std::vector<CharacterEnhancement> getTradedEnhancements(const Entity& ent, const TradeInfo& info)
{
std... | 25.886957 | 115 | 0.72086 | Stitchified |
0b6c956d1406b04f28421c6ffe8f1410e50120ea | 4,266 | hpp | C++ | include/jitana/vm_graph/method_graph_old.hpp | Mohannadcse/DINA | 6677e3ff61ded836dbef9da76b7186a11e3ba714 | [
"0BSD"
] | null | null | null | include/jitana/vm_graph/method_graph_old.hpp | Mohannadcse/DINA | 6677e3ff61ded836dbef9da76b7186a11e3ba714 | [
"0BSD"
] | 3 | 2020-06-29T00:53:24.000Z | 2021-03-28T15:30:56.000Z | include/jitana/vm_graph/method_graph_old.hpp | Mohannadcse/DINA | 6677e3ff61ded836dbef9da76b7186a11e3ba714 | [
"0BSD"
] | null | null | null | /*
* Copyright (c) 2015, 2016, Yutaka Tsutano
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTH... | 30.471429 | 80 | 0.649086 | Mohannadcse |
0b6cdf1e1b5ea5fb9872af7d6027b7253cada47a | 1,592 | cpp | C++ | src/resources.cpp | Wesxdz/friend-limit | d183b1c1a44aeafef4566d3fcb76debcf7f73681 | [
"MIT"
] | null | null | null | src/resources.cpp | Wesxdz/friend-limit | d183b1c1a44aeafef4566d3fcb76debcf7f73681 | [
"MIT"
] | null | null | null | src/resources.cpp | Wesxdz/friend-limit | d183b1c1a44aeafef4566d3fcb76debcf7f73681 | [
"MIT"
] | null | null | null | #include "resources.h"
Resources* Resources::inst;
Resources::Resources() :
resourcePath{ "../resources" },
texturesFile{ "images" },
soundsFile { "sounds" },
fontsFile { "fonts" },
shadersFile { "shaders" } {}
Resources::~Resources()
{
for (auto pair : shaders) {
delete pair.second;
}
}
... | 24.492308 | 147 | 0.586055 | Wesxdz |
0b6f2940d1eb76bfce851d10fe4a2941448d55e7 | 672 | cpp | C++ | lib/stage.cpp | julienlopez/QRocketLaunchSimulator | 132e979489b3b84a82c162df0209085d0a30fd8e | [
"MIT"
] | null | null | null | lib/stage.cpp | julienlopez/QRocketLaunchSimulator | 132e979489b3b84a82c162df0209085d0a30fd8e | [
"MIT"
] | 5 | 2015-02-19T09:25:15.000Z | 2015-02-19T14:43:20.000Z | lib/stage.cpp | julienlopez/QRocketLaunchSimulator | 132e979489b3b84a82c162df0209085d0a30fd8e | [
"MIT"
] | null | null | null | #include "stage.hpp"
#include <cassert>
Stage::Stage(StageModel model_) : model(model_)
{
}
utils::units::mass Stage::currentMass() const
{
return m_filling_rate * model.fuelMass() + model.dry_mass;
}
utils::units::force Stage::currentThrust() const
{
if(m_filling_rate > 0)
return model.thrust;
return 0;
}
do... | 19.2 | 59 | 0.700893 | julienlopez |
0b74dfdfd85ca9b57c595d91905fb774c210348d | 54 | hpp | C++ | src/boost_graph_distributed_filtered_graph.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_graph_distributed_filtered_graph.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_graph_distributed_filtered_graph.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/graph/distributed/filtered_graph.hpp>
| 27 | 53 | 0.833333 | miathedev |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.