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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b0406195430797ea217d148983fe972a1779f69a | 2,304 | hpp | C++ | include/ocpp1_6/messages/GetConfiguration.hpp | EVerest/libocpp | e2378e4fcef88e4be82b057626086c899a186b14 | [
"Apache-2.0"
] | 9 | 2022-01-16T05:13:16.000Z | 2022-03-18T22:15:16.000Z | include/ocpp1_6/messages/GetConfiguration.hpp | EVerest/libocpp | e2378e4fcef88e4be82b057626086c899a186b14 | [
"Apache-2.0"
] | null | null | null | include/ocpp1_6/messages/GetConfiguration.hpp | EVerest/libocpp | e2378e4fcef88e4be82b057626086c899a186b14 | [
"Apache-2.0"
] | 3 | 2022-01-20T04:51:01.000Z | 2022-03-13T07:16:49.000Z | // SPDX-License-Identifier: Apache-2.0
// Copyright 2020 - 2022 Pionix GmbH and Contributors to EVerest
#ifndef OCPP1_6_GETCONFIGURATION_HPP
#define OCPP1_6_GETCONFIGURATION_HPP
#include <boost/optional.hpp>
#include <ocpp1_6/ocpp_types.hpp>
#include <ocpp1_6/types.hpp>
namespace ocpp1_6 {
/// \brief Contains a OCP... | 41.890909 | 119 | 0.769097 | EVerest |
b04080ac7f0f9724f0155e4a6983d13609cc17c4 | 17,549 | cpp | C++ | EntityLib/Core/GPUEntityMgr.cpp | Calvin-Ruiz/LaserBombon | 404bea5b95393b3d011902a0d1458bd86efdc5a5 | [
"MIT"
] | null | null | null | EntityLib/Core/GPUEntityMgr.cpp | Calvin-Ruiz/LaserBombon | 404bea5b95393b3d011902a0d1458bd86efdc5a5 | [
"MIT"
] | null | null | null | EntityLib/Core/GPUEntityMgr.cpp | Calvin-Ruiz/LaserBombon | 404bea5b95393b3d011902a0d1458bd86efdc5a5 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2020
** Vulkan-Engine
** File description:
** GPUEntityMgr.cpp
*/
#include "EntityCore/Core/VulkanMgr.hpp"
#include "EntityCore/Core/BufferMgr.hpp"
#include "EntityCore/Resource/SetMgr.hpp"
#include "EntityCore/Resource/Set.hpp"
#include "EntityCore/Resource/PipelineLayout.hpp"
#include "EntityCo... | 44.997436 | 240 | 0.691606 | Calvin-Ruiz |
b0429a36809a29c3971aff9087508d233c12ffe0 | 6,861 | cpp | C++ | cgame/fx_proton.cpp | kugelrund/Elite-Reinforce | a2fe0c0480ff2d9cdc241b9e5416ee7f298f00ca | [
"DOC"
] | 10 | 2017-07-04T14:38:48.000Z | 2022-03-08T22:46:39.000Z | cgame/fx_proton.cpp | UberGames/SP-Mod-Source-Code | 04e0e618d1ee57a2919f1a852a688c03b1aa155d | [
"DOC"
] | null | null | null | cgame/fx_proton.cpp | UberGames/SP-Mod-Source-Code | 04e0e618d1ee57a2919f1a852a688c03b1aa155d | [
"DOC"
] | 2 | 2017-04-23T18:24:44.000Z | 2021-11-19T23:27:03.000Z | #include "cg_local.h"
#include "FX_Public.h"
/*
-------------------------
-------------------------
// PROTON GUN
-------------------------
-------------------------
*/
/*
-------------------------
FX_ProtonShockRing
-------------------------
*/
void FX_ProtonShockRing( vec3_t start, vec3_t end )
{
vec3_t shot_d... | 22.718543 | 134 | 0.571491 | kugelrund |
b04338d5b534abf70639507ffe72bef388bd6b10 | 2,012 | cpp | C++ | gtsam/inference/IndexFactor.cpp | sdmiller/gtsam_pcl | 1e607bd75090d35e325a8fb37a6c5afe630f1207 | [
"BSD-3-Clause"
] | 11 | 2015-02-04T16:41:47.000Z | 2021-12-10T07:02:44.000Z | gtsam/inference/IndexFactor.cpp | sdmiller/gtsam_pcl | 1e607bd75090d35e325a8fb37a6c5afe630f1207 | [
"BSD-3-Clause"
] | null | null | null | gtsam/inference/IndexFactor.cpp | sdmiller/gtsam_pcl | 1e607bd75090d35e325a8fb37a6c5afe630f1207 | [
"BSD-3-Clause"
] | 6 | 2015-09-10T12:06:08.000Z | 2021-12-10T07:02:48.000Z | /* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* ----... | 30.484848 | 80 | 0.500994 | sdmiller |
b04710b459e76e180d6b1076eae57b2ef779063c | 483 | hpp | C++ | contrib/autoboost/autoboost/chrono/chrono.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | contrib/autoboost/autoboost/chrono/chrono.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | contrib/autoboost/autoboost/chrono/chrono.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z | // chrono.hpp --------------------------------------------------------------//
// Copyright 2009-2011 Vicente J. Botet Escriba
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
#ifndef AUTOBOOST_CHRONO_CHRONO_HPP
#define AUTOBOOST_CHRONO_CHRONO_HPP
#inclu... | 30.1875 | 80 | 0.68323 | CaseyCarter |
b0496ad24efd9ec95a1966b32ddd2b733e835216 | 1,413 | cpp | C++ | Active/CodeForces/Count_Subarrays.cpp | pawan-nirpal-031/Algorithms-And-ProblemSolving | 24ce9649345dabe7275920f6912e410efc2c8e84 | [
"Apache-2.0"
] | 2 | 2021-03-05T08:40:01.000Z | 2021-04-25T13:58:42.000Z | Active/Codechef/Count_Subarrays.cpp | pawan-nirpal-031/Algorithms-And-ProblemSolving | 24ce9649345dabe7275920f6912e410efc2c8e84 | [
"Apache-2.0"
] | null | null | null | Active/Codechef/Count_Subarrays.cpp | pawan-nirpal-031/Algorithms-And-ProblemSolving | 24ce9649345dabe7275920f6912e410efc2c8e84 | [
"Apache-2.0"
] | null | null | null | // Problem Link : https://www.codechef.com/problems/SUBINC
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long int ull;
typedef long long int ll;
typedef long double ld;
#define Mod 1000000007
#define Infinity (ll)1e18
#define Append(a) push_back(a)
#define Pair(a,b) make_pair(a,b)
#define Clear(a)... | 26.166667 | 113 | 0.64402 | pawan-nirpal-031 |
b04b7c7fae4ad1f1dd17bf35259b5dcf0fbe3a52 | 1,033 | cpp | C++ | Lab6/timer/timer.cpp | HanlinHu/CS210_LAB_code | c0f2d89cb6b1d2047bd6fea7e2a041660245dc32 | [
"MIT"
] | null | null | null | Lab6/timer/timer.cpp | HanlinHu/CS210_LAB_code | c0f2d89cb6b1d2047bd6fea7e2a041660245dc32 | [
"MIT"
] | null | null | null | Lab6/timer/timer.cpp | HanlinHu/CS210_LAB_code | c0f2d89cb6b1d2047bd6fea7e2a041660245dc32 | [
"MIT"
] | null | null | null | //--------------------------------------------------------------------
//
// Laboratory C timer.cpp
//
// SOLUTION: Implementation of the Timer ADT
//
//
// from "A Laboratory Course in C++ Data Structures" (Roberge,Brandle,Whittington)
//-------------------------------------... | 21.978723 | 83 | 0.398838 | HanlinHu |
b0531130bb331b441af45927d8b8b8af52e452cc | 5,174 | cpp | C++ | source/rho/crypt/tReadableAES.cpp | Rhobota/librho | d540cba6227e15ac6ef3dcb6549ed9557f6fee04 | [
"BSD-3-Clause"
] | 1 | 2016-09-22T03:27:33.000Z | 2016-09-22T03:27:33.000Z | source/rho/crypt/tReadableAES.cpp | Rhobota/librho | d540cba6227e15ac6ef3dcb6549ed9557f6fee04 | [
"BSD-3-Clause"
] | null | null | null | source/rho/crypt/tReadableAES.cpp | Rhobota/librho | d540cba6227e15ac6ef3dcb6549ed9557f6fee04 | [
"BSD-3-Clause"
] | null | null | null | #include <rho/crypt/tReadableAES.h>
#include <rho/eRho.h>
#include <algorithm>
#include <cstdlib>
namespace rho
{
namespace crypt
{
tReadableAES::tReadableAES(iReadable* internalStream, nOperationModeAES opmode,
const u8 key[], nKeyLengthAES keylen)
: m_stream(internalStream),
m_buf(NULL), m... | 26.533333 | 116 | 0.587746 | Rhobota |
b05728ae2eed9351197d6e300f9c667d53475c61 | 4,961 | cpp | C++ | src/hgs-TV/Decomposition/RouteSequenceDecomposition.cpp | alberto-santini/cvrp-decomposition | 854d2b5b7cdd51fe4ab46acac7d88dbc7e5bfb88 | [
"MIT"
] | null | null | null | src/hgs-TV/Decomposition/RouteSequenceDecomposition.cpp | alberto-santini/cvrp-decomposition | 854d2b5b7cdd51fe4ab46acac7d88dbc7e5bfb88 | [
"MIT"
] | null | null | null | src/hgs-TV/Decomposition/RouteSequenceDecomposition.cpp | alberto-santini/cvrp-decomposition | 854d2b5b7cdd51fe4ab46acac7d88dbc7e5bfb88 | [
"MIT"
] | null | null | null | //
// Created by alberto on 13/03/19.
//
#include "RouteSequenceDecomposition.h"
namespace genvrp {
void RouteSequenceDecomposition::operator()(genvrp::Population& population, const SolverStatus& status) {
// If the problem does not have enough individuals, skip decomposition.
if(params.data.nbCli... | 41.689076 | 157 | 0.627293 | alberto-santini |
b057c834a9a81285ef0e662b6decf1a8d9b86531 | 1,727 | cpp | C++ | src/prod/test/LinuxRetailTests/FabricRuntime.Test.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/test/LinuxRetailTests/FabricRuntime.Test.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/test/LinuxRetailTests/FabricRuntime.Test.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
#include "... | 59.551724 | 193 | 0.727852 | vishnuk007 |
b05d29bf79f5becd8a33c7ff52e004972fc454ce | 3,271 | hpp | C++ | src/Serialization/OptionalSerialization.hpp | ElSamaritan/blockchain-OLD | ca3422c8873613226db99b7e6735c5ea1fac9f1a | [
"Apache-2.0"
] | null | null | null | src/Serialization/OptionalSerialization.hpp | ElSamaritan/blockchain-OLD | ca3422c8873613226db99b7e6735c5ea1fac9f1a | [
"Apache-2.0"
] | null | null | null | src/Serialization/OptionalSerialization.hpp | ElSamaritan/blockchain-OLD | ca3422c8873613226db99b7e6735c5ea1fac9f1a | [
"Apache-2.0"
] | null | null | null | /* ============================================================================================== *
* *
* Galaxia Blockchain *
* ... | 48.820896 | 111 | 0.404769 | ElSamaritan |
b063cb22f43a50d261766d5683f084c7254b05e2 | 108,161 | cpp | C++ | Source/effects.cpp | pionere/devilutionX | 63f8deb298a00b040010fc299c0568eae19522e1 | [
"Unlicense"
] | 2 | 2021-02-02T19:27:20.000Z | 2022-03-07T16:50:55.000Z | Source/effects.cpp | pionere/devilutionX | 63f8deb298a00b040010fc299c0568eae19522e1 | [
"Unlicense"
] | null | null | null | Source/effects.cpp | pionere/devilutionX | 63f8deb298a00b040010fc299c0568eae19522e1 | [
"Unlicense"
] | 1 | 2022-03-07T16:51:16.000Z | 2022-03-07T16:51:16.000Z | /**
* @file effects.cpp
*
* Implementation of functions for loading and playing sounds.
*/
#include "all.h"
#ifndef NOSOUND
#include <SDL_mixer.h>
#include "utils/soundsample.h"
#endif
DEVILUTION_BEGIN_NAMESPACE
int sfxdelay;
int sfxdnum;
#ifdef NOSOUND
const int sgSFXSets[NUM_SFXSets][NUM_CLASS... | 76.492928 | 199 | 0.520271 | pionere |
b067b0b09e46cb29511d2a5542cf1a25897280b0 | 428 | cpp | C++ | solutions-LUOGU/P5714.cpp | Ki-Seki/solutions | e4329712d664180d850e0a48d7d0f637215f13d0 | [
"MIT"
] | 1 | 2022-02-26T10:33:24.000Z | 2022-02-26T10:33:24.000Z | solutions-LUOGU/P5714.cpp | Ki-Seki/solutions | e4329712d664180d850e0a48d7d0f637215f13d0 | [
"MIT"
] | null | null | null | solutions-LUOGU/P5714.cpp | Ki-Seki/solutions | e4329712d664180d850e0a48d7d0f637215f13d0 | [
"MIT"
] | 1 | 2021-12-01T14:54:33.000Z | 2021-12-01T14:54:33.000Z | #include <iostream>
using namespace std;
float getBMI(float weight, float height);
int main()
{
float m, h, bmi;
cin >> m >> h;
bmi = getBMI(m, h);
if (bmi<18.5)
{
cout << "Underweight";
}
else if (bmi>=18.5 && bmi<24)
{
cout << "Normal";
}
else
{
cout << bmi << endl << "Overweight";
}
return 0;... | 12.969697 | 41 | 0.586449 | Ki-Seki |
b06affa1b763067421762b4fa6fd97c34aedff68 | 2,944 | hpp | C++ | include/NP-Engine/Container/Container.hpp | naphipps/NP-Engine | 0cac8b2d5e76c839b96f2061bf57434bdc37915e | [
"MIT"
] | null | null | null | include/NP-Engine/Container/Container.hpp | naphipps/NP-Engine | 0cac8b2d5e76c839b96f2061bf57434bdc37915e | [
"MIT"
] | null | null | null | include/NP-Engine/Container/Container.hpp | naphipps/NP-Engine | 0cac8b2d5e76c839b96f2061bf57434bdc37915e | [
"MIT"
] | null | null | null | //##===----------------------------------------------------------------------===##//
//
// Author: Nathan Phipps 12/30/20
//
//##===----------------------------------------------------------------------===##//
#ifndef NP_ENGINE_CONTAINER_HPP
#define NP_ENGINE_CONTAINER_HPP
#include "NP-Engine/Foundation/Foundation.h... | 35.46988 | 120 | 0.659647 | naphipps |
b07320facb9ebf1254f7d54daedd88912fd9a4b7 | 3,192 | cpp | C++ | c714.cpp | puyuliao/ZJ-d879 | bead48e0a500f21bc78f745992f137706d15abf8 | [
"MIT"
] | null | null | null | c714.cpp | puyuliao/ZJ-d879 | bead48e0a500f21bc78f745992f137706d15abf8 | [
"MIT"
] | null | null | null | c714.cpp | puyuliao/ZJ-d879 | bead48e0a500f21bc78f745992f137706d15abf8 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#include<stdint.h>
using namespace std;
#define IOS {cin.tie(0);ios_base::sync_with_stdio(false);}
#define N 50006
#define int int64_t
const int INF = 1e6;
struct treap{
treap *l,*r;
int key,pri,sz,data,keytag,datatag;
treap(int _k,int _d):key(_k),data(_d),sz(1),pri(rand()),keyt... | 18.136364 | 105 | 0.492794 | puyuliao |
b0800c3f7028c8a89ef7473dc5cd100fbeba9c84 | 5,258 | cpp | C++ | app/main.cpp | VBot2410/A_Star_3D | 9755e14f5fe963bf48610d6dc8915b9f5a4009c8 | [
"MIT"
] | 3 | 2017-10-11T01:14:44.000Z | 2018-07-08T16:45:00.000Z | app/main.cpp | VBot2410/A_Star_3D | 9755e14f5fe963bf48610d6dc8915b9f5a4009c8 | [
"MIT"
] | null | null | null | app/main.cpp | VBot2410/A_Star_3D | 9755e14f5fe963bf48610d6dc8915b9f5a4009c8 | [
"MIT"
] | 1 | 2021-09-24T16:34:15.000Z | 2021-09-24T16:34:15.000Z | /**
* @file main.cpp
* @brief This project builds a discrete 3-D map from environment information
* and Implements the A* algorithm to plan the path from Start to Goal Point.
*
* @author Vaibhav Bhilare
* @copyright 2017, Vaibhav Bhilare
*
* MIT License
* Copyright (c) 2017 Vaibhav Bhilare
*
* Permission is ... | 40.446154 | 81 | 0.648726 | VBot2410 |
b08d744f3c24e3b86f5c9657adb051c635e8bfcf | 1,343 | cpp | C++ | aws-cpp-sdk-iot/source/model/FleetMetricNameAndArn.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-iot/source/model/FleetMetricNameAndArn.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-iot/source/model/FleetMetricNameAndArn.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot/model/FleetMetricNameAndArn.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
nam... | 17.906667 | 76 | 0.730454 | perfectrecall |
b08f5b84f7b9677ce9ac7e504b16496d7946fa4f | 2,631 | hpp | C++ | rmf_traffic/include/rmf_traffic/agv/LaneClosure.hpp | 0to1/rmf_traffic | 0e641f779e9c7e6d69c316e905df5a51a2c124e1 | [
"Apache-2.0"
] | 10 | 2021-04-14T07:01:56.000Z | 2022-02-21T02:26:58.000Z | rmf_traffic/include/rmf_traffic/agv/LaneClosure.hpp | 0to1/rmf_traffic | 0e641f779e9c7e6d69c316e905df5a51a2c124e1 | [
"Apache-2.0"
] | 63 | 2021-03-10T06:06:13.000Z | 2022-03-25T08:47:07.000Z | rmf_traffic/include/rmf_traffic/agv/LaneClosure.hpp | 0to1/rmf_traffic | 0e641f779e9c7e6d69c316e905df5a51a2c124e1 | [
"Apache-2.0"
] | 10 | 2021-03-17T02:52:14.000Z | 2022-02-21T02:27:02.000Z | /*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* 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... | 27.694737 | 80 | 0.666287 | 0to1 |
b093bf85c00e5c421189ecb090f653605be700a0 | 4,477 | cpp | C++ | mail/Email.cpp | phiwen96/SocketsServer | eeff4347f0fc31c5081b7f3f59b3c201f6a4f4e7 | [
"Apache-2.0"
] | null | null | null | mail/Email.cpp | phiwen96/SocketsServer | eeff4347f0fc31c5081b7f3f59b3c201f6a4f4e7 | [
"Apache-2.0"
] | null | null | null | mail/Email.cpp | phiwen96/SocketsServer | eeff4347f0fc31c5081b7f3f59b3c201f6a4f4e7 | [
"Apache-2.0"
] | null | null | null | #include "Email.hpp"
void sendEmail()
{
CURL *curl;
CURLcode res = CURLE_OK;
struct curl_slist *recipients = NULL;
struct upload_status upload_ctx;
upload_ctx.lines_read = 0;
curl = curl_easy_init();
if(curl) {
/* Set username and password */
... | 49.197802 | 87 | 0.601296 | phiwen96 |
b093e01c59186885e11ef283c5de787fe460355f | 8,509 | cpp | C++ | plugins/nonpersistent_voxel_layer.cpp | SteveMacenski/non-persistent-voxel-layer | b09cf66faf8424c6245334b78605d58a2cf95da6 | [
"BSD-3-Clause"
] | null | null | null | plugins/nonpersistent_voxel_layer.cpp | SteveMacenski/non-persistent-voxel-layer | b09cf66faf8424c6245334b78605d58a2cf95da6 | [
"BSD-3-Clause"
] | null | null | null | plugins/nonpersistent_voxel_layer.cpp | SteveMacenski/non-persistent-voxel-layer | b09cf66faf8424c6245334b78605d58a2cf95da6 | [
"BSD-3-Clause"
] | null | null | null | /*********************************************************************
*
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, 2013, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the ... | 33.632411 | 96 | 0.695146 | SteveMacenski |
b094644630701c8cefb6af63fb6367e20850660d | 1,878 | cpp | C++ | theory/burrows_wheeler/bw_matching.cpp | ideahitme/coursera | af44c8d817481d4f9025205284f109d95a9bb45d | [
"MIT"
] | null | null | null | theory/burrows_wheeler/bw_matching.cpp | ideahitme/coursera | af44c8d817481d4f9025205284f109d95a9bb45d | [
"MIT"
] | null | null | null | theory/burrows_wheeler/bw_matching.cpp | ideahitme/coursera | af44c8d817481d4f9025205284f109d95a9bb45d | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
struct t{
int l_index; //index in bwt string
int f_index; //index in suffix array
t(int f_index): f_index(f_index) {};
};
inline int con(char x){
if (x == '$') return 0;
if (x == 'A') return 1;
if (x == 'C') retur... | 20.866667 | 62 | 0.554846 | ideahitme |
b09645265b8e106645b7463c776a0713265b8a92 | 2,527 | hpp | C++ | src/camera.hpp | DeNiCoN/ComputerGraphicsLabs | ca02ea69b8dbc2ebeef1068779a0802babc95302 | [
"Unlicense"
] | null | null | null | src/camera.hpp | DeNiCoN/ComputerGraphicsLabs | ca02ea69b8dbc2ebeef1068779a0802babc95302 | [
"Unlicense"
] | null | null | null | src/camera.hpp | DeNiCoN/ComputerGraphicsLabs | ca02ea69b8dbc2ebeef1068779a0802babc95302 | [
"Unlicense"
] | null | null | null | #pragma once
#include <glm/glm.hpp>
#include <glm/gtx/transform.hpp>
#include <array>
#include <string_view>
#include <algorithm>
#include <ranges>
namespace Projection
{
enum Projection
{
ORTHO, PERSPECTIVE
};
const std::array projectionStrings
{
"Ortho", "Perspective"
};
inline const char* ToString(Project... | 25.785714 | 84 | 0.600712 | DeNiCoN |
b0975cc86125fc253cf28d7cd36406647a43be04 | 2,073 | hpp | C++ | bin/Mediasoup.xcframework/ios-arm64_x86_64-simulator/Mediasoup.framework/PrivateHeaders/ReceiveTransportWrapper.hpp | VLprojects/mediaborsch-client-swift | 34cc664b0f2c95e769fa0d7df01a219bba43ff4f | [
"MIT"
] | null | null | null | bin/Mediasoup.xcframework/ios-arm64_x86_64-simulator/Mediasoup.framework/PrivateHeaders/ReceiveTransportWrapper.hpp | VLprojects/mediaborsch-client-swift | 34cc664b0f2c95e769fa0d7df01a219bba43ff4f | [
"MIT"
] | null | null | null | bin/Mediasoup.xcframework/ios-arm64_x86_64-simulator/Mediasoup.framework/PrivateHeaders/ReceiveTransportWrapper.hpp | VLprojects/mediaborsch-client-swift | 34cc664b0f2c95e769fa0d7df01a219bba43ff4f | [
"MIT"
] | null | null | null | #ifndef ReceiveTransportWrapper_h
#define ReceiveTransportWrapper_h
#import <Foundation/Foundation.h>
#import "MediasoupClientMediaKind.h"
#ifdef __cplusplus
namespace mediasoupclient {
class RecvTransport;
}
class ReceiveTransportListenerAdapter;
#endif
@class ConsumerWrapper;
@class RTCPeerConnectionFactory;
@pro... | 35.135593 | 95 | 0.826339 | VLprojects |
b09865ad533c07e5d1ddc2b35144a0f361e03072 | 1,726 | cpp | C++ | Unity/vr_arm_ctrl/Library/PackageCache/com.unity.xr.openxr@1.3.1/MockRuntime/Native~/openxr_loader/mock_loader.cpp | BigMeatBaoZi/SDM5002 | 52d60368f3c638d36f63de9e88cca5144b5021a5 | [
"MIT"
] | null | null | null | Unity/vr_arm_ctrl/Library/PackageCache/com.unity.xr.openxr@1.3.1/MockRuntime/Native~/openxr_loader/mock_loader.cpp | BigMeatBaoZi/SDM5002 | 52d60368f3c638d36f63de9e88cca5144b5021a5 | [
"MIT"
] | null | null | null | Unity/vr_arm_ctrl/Library/PackageCache/com.unity.xr.openxr@1.3.1/MockRuntime/Native~/openxr_loader/mock_loader.cpp | BigMeatBaoZi/SDM5002 | 52d60368f3c638d36f63de9e88cca5144b5021a5 | [
"MIT"
] | 2 | 2022-03-14T00:37:10.000Z | 2022-03-14T02:31:38.000Z | #ifdef _WIN32
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif // !WIN32_LEAN_AND_MEAN
#include <d3d11.h>
#include <d3d12.h>
#include <windows.h>
#endif
#include <vulkan/vulkan.h>
#define XR_NO_PROTOTYPES
#include "XR/IUnityXRTrace.h"
#include "openxr/openxr.h"
#include "openxr/openxr_platform.h"
#inclu... | 27.83871 | 144 | 0.76883 | BigMeatBaoZi |
b09ead2a75fb0c63ed992c9f5df2cded5e5afb2c | 7,944 | cpp | C++ | ESPSloeber/BathFanControl/Configuration.cpp | theater/House | 7220f3d89d6de6a809fa36121dc28754feaf6bc0 | [
"MIT"
] | null | null | null | ESPSloeber/BathFanControl/Configuration.cpp | theater/House | 7220f3d89d6de6a809fa36121dc28754feaf6bc0 | [
"MIT"
] | null | null | null | ESPSloeber/BathFanControl/Configuration.cpp | theater/House | 7220f3d89d6de6a809fa36121dc28754feaf6bc0 | [
"MIT"
] | null | null | null | /*
* Configuration.cpp
*
* Created on: Oct 25, 2019
* Author: theater
*/
#include "Configuration.h"
void Configuration::print() {
Serial.println("###########################################");
String simulated = isSimulated ? "true" : "false";
Serial.printf("Simulated=%s \n", simulated.c_str... | 46.186047 | 187 | 0.715005 | theater |
b0bfb70cbacd1f5f7425e2895d28c66003f38a77 | 7,481 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Winforms/ComponentEditorExample/CPP/componenteditorexamplecomponent.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_Winforms/ComponentEditorExample/CPP/componenteditorexamplecomponent.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_Winforms/ComponentEditorExample/CPP/componenteditorexamplecomponent.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z |
//<Snippet1>
#using <System.Windows.Forms.dll>
#using <System.Drawing.dll>
#using <System.dll>
using namespace System;
using namespace System::ComponentModel;
using namespace System::ComponentModel::Design;
using namespace System::Collections;
using namespace System::Drawing;
using namespace System::IO;
... | 42.505682 | 220 | 0.670499 | hamarb123 |
b0c269ecd48a8acbbb768b8b2f55d36fb170d983 | 4,386 | cpp | C++ | source code/dvcc/v1.4.2.2/paint/ramqgitem.cpp | HarleyEhrich/DvccSimulationEnvironment | fdb082eb52c18a95015fc12058824345875cf038 | [
"Apache-2.0"
] | null | null | null | source code/dvcc/v1.4.2.2/paint/ramqgitem.cpp | HarleyEhrich/DvccSimulationEnvironment | fdb082eb52c18a95015fc12058824345875cf038 | [
"Apache-2.0"
] | null | null | null | source code/dvcc/v1.4.2.2/paint/ramqgitem.cpp | HarleyEhrich/DvccSimulationEnvironment | fdb082eb52c18a95015fc12058824345875cf038 | [
"Apache-2.0"
] | null | null | null | #include "ramqgitem.h"
QRectF RamQGItem::boundingRect() const
{
return QRectF(this->mapFromScene(200*this->data->zoomXPer,-250*this->data->zoomYPer),
QSizeF(150*this->data->zoomXPer,390*this->data->zoomYPer));
}
void RamQGItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWid... | 32.488889 | 99 | 0.645919 | HarleyEhrich |
b0c801272d537ad2a94c1bb762a4d0ad52c58a79 | 119 | hpp | C++ | src/QonGPU/include/potentials/Potential3D.hpp | s0vereign/SchroedingerSolver | 83461ef779019ec7944bb2c5ea0a4702f4aeb32f | [
"MIT"
] | 3 | 2017-04-21T12:22:33.000Z | 2019-01-22T13:14:46.000Z | src/QonGPU/include/potentials/Potential3D.hpp | s0vereign/SchroedingerSolver | 83461ef779019ec7944bb2c5ea0a4702f4aeb32f | [
"MIT"
] | 8 | 2016-05-09T09:44:35.000Z | 2017-03-22T15:31:13.000Z | src/QonGPU/include/potentials/Potential3D.hpp | s0vereign/QonGPU | 83461ef779019ec7944bb2c5ea0a4702f4aeb32f | [
"MIT"
] | null | null | null | #ifndef POTENTIAL3D_H
#define POTENTIAL3D_H
#include "Potential.hpp"
class Potential3D: public Potential{};
#endif
| 11.9 | 38 | 0.781513 | s0vereign |
37cede24bfbdc1e91225b35be3c11718492da60d | 1,747 | cpp | C++ | src/AttackFSM.cpp | mikaelmello/story-based-rpg | bc73c24ad0e41512c3e980ca3aad0fc5738af2f2 | [
"Zlib"
] | null | null | null | src/AttackFSM.cpp | mikaelmello/story-based-rpg | bc73c24ad0e41512c3e980ca3aad0fc5738af2f2 | [
"Zlib"
] | null | null | null | src/AttackFSM.cpp | mikaelmello/story-based-rpg | bc73c24ad0e41512c3e980ca3aad0fc5738af2f2 | [
"Zlib"
] | null | null | null | #include "AttackFSM.hpp"
#include <memory>
#include "Antagonist.hpp"
#include "Collider.hpp"
#include "Collision.hpp"
#include "Player.hpp"
#include "Sprite.hpp"
AttackFSM::AttackFSM(GameObject& object) : IFSM(object, ZERO_SPEED) {
auto ant_cpt = object.GetComponent(Types::AntagonistType);
if (!ant_cpt) {
thr... | 26.469697 | 75 | 0.717802 | mikaelmello |
37d60679c8399348d97a637379229cc175873ab0 | 447 | cc | C++ | Sliding_Window/1208.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | Sliding_Window/1208.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | Sliding_Window/1208.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | //https://leetcode.com/problems/get-equal-substrings-within-budget/discuss/392837/JavaC%2B%2BPython-Sliding-Window
class Solution {
public:
int equalSubstring(string s, string t, int maxCost) {
int len = s.size();
int i = 0;
for (int j=0; j<len; ++j){
if((maxCost -= abs(s[j]-t[j... | 26.294118 | 114 | 0.505593 | guohaoqiang |
37d88fcebe078f663ad2bdd2163a12602df8a7ae | 10,703 | cpp | C++ | main.cpp | KacperSynator/Process_Scheduler | bdb41fbf8f2fbe473e2aa8fcd34ef5f3fce04428 | [
"MIT"
] | null | null | null | main.cpp | KacperSynator/Process_Scheduler | bdb41fbf8f2fbe473e2aa8fcd34ef5f3fce04428 | [
"MIT"
] | null | null | null | main.cpp | KacperSynator/Process_Scheduler | bdb41fbf8f2fbe473e2aa8fcd34ef5f3fce04428 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <sstream>
#include <algorithm>
/* Program description:
* Program is simulating a process scheduler. Program executes with three arguments (arguments description below).
* Program works in step mode i.e. firstly it reads input from stdin if there is any, secondly it exec... | 38.362007 | 127 | 0.622442 | KacperSynator |
37e270fc5a91c1ef49e228ad39aba802b4cee2f1 | 1,696 | cpp | C++ | design_patterns/structural_bridge/bridge_dynamic.cpp | anstellaire/photon-i3-colors | 3f3e44a5b9bdfbdc35e00bd2116acb7211ef6f54 | [
"MIT"
] | 1 | 2021-06-23T09:08:55.000Z | 2021-06-23T09:08:55.000Z | design_patterns/structural_bridge/bridge_dynamic.cpp | anstellaire/sweets | 3f3e44a5b9bdfbdc35e00bd2116acb7211ef6f54 | [
"MIT"
] | null | null | null | design_patterns/structural_bridge/bridge_dynamic.cpp | anstellaire/sweets | 3f3e44a5b9bdfbdc35e00bd2116acb7211ef6f54 | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
// -----------------------------------------------------------------------------
// PATTERN (dynamic polymorphism)
// -----------------------------------------------------------------------------
struct weapon_slot {
virtual char const* use() = 0;
virtual ~weapon_slot()... | 24.941176 | 80 | 0.504127 | anstellaire |
37e75c8ec953bc5ccea781d3ba6900291606e451 | 3,832 | cpp | C++ | src/treemodel.cpp | RazrFalcon/ttf-explorer | ff6eab3616824a54c466ab28da43464a8a2540f3 | [
"MIT"
] | 18 | 2020-03-12T16:03:04.000Z | 2022-01-22T16:07:32.000Z | src/treemodel.cpp | RazrFalcon/ttf-explorer | ff6eab3616824a54c466ab28da43464a8a2540f3 | [
"MIT"
] | null | null | null | src/treemodel.cpp | RazrFalcon/ttf-explorer | ff6eab3616824a54c466ab28da43464a8a2540f3 | [
"MIT"
] | null | null | null | #include <QFont>
#include "utils.h"
#include "treemodel.h"
TreeItem::TreeItem(TreeItem *parent)
: m_parent(parent)
{
}
TreeItem::~TreeItem()
{
qDeleteAll(m_children);
}
TreeItem* TreeItem::child(int number)
{
return m_children.value(number);
}
int TreeItem::childCount() const
{
return m_children.c... | 21.054945 | 88 | 0.629958 | RazrFalcon |
37e95a08ec1c6d85092eba530c33bf32f30ee6b3 | 1,737 | hpp | C++ | cmdstan/stan/lib/stan_math/test/unit/math/rev/scal/fun/util.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/test/unit/math/rev/scal/fun/util.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/test/unit/math/rev/scal/fun/util.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | #ifndef TEST_UNIT_MATH_REV_SCAL_FUN_UTIL_HPP
#define TEST_UNIT_MATH_REV_SCAL_FUN_UTIL_HPP
#include <stan/math/rev/scal.hpp>
#include <test/unit/math/rev/scal/util.hpp>
typedef stan::math::var AVAR;
typedef std::vector<AVAR> AVEC;
typedef std::vector<double> VEC;
AVEC createAVEC(AVAR x) {
AVEC v;
v.push_back(x);
... | 20.927711 | 89 | 0.654001 | yizhang-cae |
37fa5dbcab513c7755df2b2137f41afd6ad207a0 | 1,331 | cpp | C++ | test/entity_tests.cpp | ShelbyZ/BattleSystem | 475b6e1024267d429c1e0946b7e9ddd05316fb49 | [
"MIT"
] | null | null | null | test/entity_tests.cpp | ShelbyZ/BattleSystem | 475b6e1024267d429c1e0946b7e9ddd05316fb49 | [
"MIT"
] | 2 | 2018-05-29T06:31:12.000Z | 2018-06-01T05:44:44.000Z | test/entity_tests.cpp | ShelbyZ/BattleSystem | 475b6e1024267d429c1e0946b7e9ddd05316fb49 | [
"MIT"
] | null | null | null | #include <string>
#include "gtest/gtest.h"
#include "../battle_system/entity.h"
TEST(Reference, Constructor)
{
std::string name = "shelby";
auto entity = CEntity(name);
ASSERT_EQ("shelby", entity.getName());
ASSERT_EQ("", name);
}
TEST(Reference_EmptyName, Constructor)
{
ASSERT_THROW({
... | 18.232877 | 44 | 0.636364 | ShelbyZ |
37fda60166636d21210077343121767f5fb066be | 528 | hpp | C++ | include/snd/ramp_gen.hpp | colugomusic/snd | 3ecb87581870b14e62893610d027516aea48ff3c | [
"MIT"
] | 18 | 2020-08-26T11:33:50.000Z | 2021-04-13T15:57:28.000Z | include/snd/ramp_gen.hpp | colugomusic/snd | 3ecb87581870b14e62893610d027516aea48ff3c | [
"MIT"
] | 1 | 2021-05-16T17:11:57.000Z | 2021-05-16T17:25:17.000Z | include/snd/ramp_gen.hpp | colugomusic/snd | 3ecb87581870b14e62893610d027516aea48ff3c | [
"MIT"
] | null | null | null | #pragma once
#pragma warning(push, 0)
#include <DSP/MLDSPOps.h>
#pragma warning(pop)
namespace ml {
class RampGen
{
public:
RampGen(int p = kFloatsPerDSPVector) : mCounter(p), mPeriod(p) {}
~RampGen() {}
inline void setPeriod(int p) { mPeriod = p; }
inline DSPVectorInt operator()()
{
DSPVectorInt vy;
for ... | 14.666667 | 66 | 0.611742 | colugomusic |
5301078cd20e7b2f699cde88f558226e8d6f5047 | 1,544 | cpp | C++ | Codeforces/1240C/dp_tree.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2018-02-14T01:59:31.000Z | 2018-03-28T03:30:45.000Z | Codeforces/1240C/dp_tree.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | null | null | null | Codeforces/1240C/dp_tree.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2017-12-30T02:46:35.000Z | 2018-03-28T03:30:49.000Z | #include <bits/stdc++.h>
using namespace std;
#define SIZE 500010
class Edge {
public:
int to, next, len;
};
Edge edges[SIZE << 1];
int head[SIZE], edgesPt;
int vertexNum, lim; long long int dp[SIZE][2];
void addEdge(int from, int to, int len) {
edges[edgesPt] = {to, head[from], len};
head[from] = edges... | 27.087719 | 73 | 0.513601 | codgician |
530417011596662d07fd809484395dd78444c354 | 1,006 | hpp | C++ | ModSource/breakingpoint_infected/CfgBody.hpp | nrailuj/breakingpointmod | e102e106b849ca78deb3cb299f3ae18c91c3bfe9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 70 | 2017-06-23T21:25:05.000Z | 2022-03-27T02:39:33.000Z | ModSource/breakingpoint_infected/CfgBody.hpp | nrailuj/breakingpointmod | e102e106b849ca78deb3cb299f3ae18c91c3bfe9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 84 | 2017-08-26T22:06:28.000Z | 2021-09-09T15:32:56.000Z | ModSource/breakingpoint_infected/CfgBody.hpp | nrailuj/breakingpointmod | e102e106b849ca78deb3cb299f3ae18c91c3bfe9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 71 | 2017-06-24T01:10:42.000Z | 2022-03-18T23:02:00.000Z | /*
Breaking Point Mod for Arma 3
Released under Arma Public Share Like Licence (APL-SA)
https://www.bistudio.com/community/licenses/arma-public-license-share-alike
Alderon Games Pty Ltd
*/
class CfgBody {
class head_hit {
memoryPoint = "pilot";
variation = 0.08;
};
class body {
memoryPoint = "aimPoint... | 15.242424 | 76 | 0.638171 | nrailuj |
5305301f280d86529dc2ead504eed0e339c3b6cd | 16,353 | hpp | C++ | engine/ItemType.hpp | rigertd/LegacyMUD | cf351cca466158f0682f6c877b88d5c2eb59e240 | [
"BSD-3-Clause"
] | 1 | 2021-04-24T06:01:57.000Z | 2021-04-24T06:01:57.000Z | engine/ItemType.hpp | rigertd/LegacyMUD | cf351cca466158f0682f6c877b88d5c2eb59e240 | [
"BSD-3-Clause"
] | null | null | null | engine/ItemType.hpp | rigertd/LegacyMUD | cf351cca466158f0682f6c877b88d5c2eb59e240 | [
"BSD-3-Clause"
] | null | null | null | /*********************************************************************//**
* \author Rachel Weissman-Hohler
* \created 02/01/2017
* \modified 03/08/2017
* \course CS467, Winter 2017
* \file ItemType.hpp
*
* \details Header file for ItemType class. Defines the members and
* ... | 35.940659 | 135 | 0.554333 | rigertd |
530c162bdcea1cd5099808ad4ecffd8bc904549b | 9,463 | hpp | C++ | kv/complex.hpp | soonho-tri/kv | 4963be6560d8600cdc9ff22d004b2b965ae7b1df | [
"MIT"
] | 67 | 2017-01-04T15:30:54.000Z | 2022-03-31T05:45:02.000Z | src/interval/kv/complex.hpp | takafumihoriuchi/HyLaGI | 26b9f32a84611ee62d9cbbd903773d224088c959 | [
"BSL-1.0"
] | 4 | 2017-02-10T02:59:45.000Z | 2019-10-10T14:17:08.000Z | src/interval/kv/complex.hpp | takafumihoriuchi/HyLaGI | 26b9f32a84611ee62d9cbbd903773d224088c959 | [
"BSL-1.0"
] | 5 | 2021-09-29T02:27:46.000Z | 2022-03-31T05:45:04.000Z | /*
* Copyright (c) 2013-2016 Masahide Kashiwagi (kashi@waseda.jp)
*/
#ifndef COMPLEX_HPP
#define COMPLEX_HPP
#include <iostream>
#include <cmath>
#include <kv/convert.hpp>
namespace kv {
template <class T> class complex;
template <class C, class T> struct convertible<C, complex<T> > {
static const bool value... | 21.265169 | 177 | 0.590933 | soonho-tri |
530c4b2b94372f67ff4688139ea8d9b08d386bdf | 7,496 | cpp | C++ | Source/HeliumRain/UI/Menus/FlareCompanyMenu.cpp | fdsalbj/HeliumRain | a429db86e59e3c8d71c306a20c7abd2899a36464 | [
"BSD-3-Clause"
] | 2 | 2016-09-20T18:48:21.000Z | 2021-03-30T02:42:59.000Z | Source/HeliumRain/UI/Menus/FlareCompanyMenu.cpp | fdsalbj/HeliumRain | a429db86e59e3c8d71c306a20c7abd2899a36464 | [
"BSD-3-Clause"
] | null | null | null | Source/HeliumRain/UI/Menus/FlareCompanyMenu.cpp | fdsalbj/HeliumRain | a429db86e59e3c8d71c306a20c7abd2899a36464 | [
"BSD-3-Clause"
] | null | null | null |
#include "../../Flare.h"
#include "FlareCompanyMenu.h"
#include "../Components/FlarePartInfo.h"
#include "../Components/FlareCompanyInfo.h"
#include "../../Game/FlareGame.h"
#include "../../Game/FlareCompany.h"
#include "../../Player/FlareMenuManager.h"
#include "../../Player/FlareMenuPawn.h"
#include "../../Player/Fl... | 23.796825 | 130 | 0.651147 | fdsalbj |
53127eaa0c23b10c46391f8b88f95e066d5df024 | 181 | cpp | C++ | chapters/1/1-10.cpp | Raymain1944/CPPLv1 | 96e5fd5347a336870fc868206ebfe44f88ce69eb | [
"Apache-2.0"
] | null | null | null | chapters/1/1-10.cpp | Raymain1944/CPPLv1 | 96e5fd5347a336870fc868206ebfe44f88ce69eb | [
"Apache-2.0"
] | null | null | null | chapters/1/1-10.cpp | Raymain1944/CPPLv1 | 96e5fd5347a336870fc868206ebfe44f88ce69eb | [
"Apache-2.0"
] | null | null | null | #include <iostream>
/*
* 使用递减运算符打印10到0之间的整数
*/
int main()
{
int base = 10;
while(base >= 0){
std::cout << base << std::endl;
--base;
}
return 0;
}
| 12.928571 | 39 | 0.486188 | Raymain1944 |
531421e1ca3b40383e7cb57725b02c17f7238ee8 | 215 | cpp | C++ | ares/sfc/coprocessor/dip/dip.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | ares/sfc/coprocessor/dip/dip.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | ares/sfc/coprocessor/dip/dip.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | //DIP switch
//used for Nintendo Super System emulation
DIP dip;
#include "serialization.cpp"
auto DIP::power() -> void {
}
auto DIP::read(n24, n8) -> n8 {
return value;
}
auto DIP::write(n24, n8) -> void {
}
| 13.4375 | 42 | 0.646512 | CasualPokePlayer |
531507ccae44b4d0653aa8c98c677bbb806d7f9f | 13,857 | cpp | C++ | src/spy/Spy.cpp | VincentPT/spy | f3b4dd87d00cf12886f52b4ee30ee15430317acd | [
"MIT"
] | 1 | 2022-02-14T12:42:26.000Z | 2022-02-14T12:42:26.000Z | src/spy/Spy.cpp | VincentPT/spy | f3b4dd87d00cf12886f52b4ee30ee15430317acd | [
"MIT"
] | null | null | null | src/spy/Spy.cpp | VincentPT/spy | f3b4dd87d00cf12886f52b4ee30ee15430317acd | [
"MIT"
] | null | null | null | #include "Spy.h"
#include <Shlwapi.h>
#include <Windows.h>
#include <iostream>
#include <vector>
#include <list>
#include "CustomCommandInvoker.h"
#include "CustomCommandManager.h"
#include "spy_interfaces.h"
// internal command function handlers
int freeBufferCommand(FreeBufferCmdData* commandData);
int loadPredifn... | 33.633495 | 170 | 0.748358 | VincentPT |
531b53c42ec6d2d4364908c747ef96121e018a25 | 1,121 | cc | C++ | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/20_util/duration/literals/range.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/20_util/duration/literals/range.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/20_util/duration/literals/range.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | // { dg-do compile { target c++14 } }
// Copyright (C) 2014-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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 Found... | 35.03125 | 74 | 0.714541 | best08618 |
531e78bfa2c8716a6cf77d286ea5767c4ecf7ab4 | 1,260 | cpp | C++ | CTCI/Chapter3/3-4.cpp | EdwaRen/Competitve-Programming | e8bffeb457936d28c75ecfefb5a1f316c15a9b6c | [
"MIT"
] | 1 | 2021-05-03T21:48:25.000Z | 2021-05-03T21:48:25.000Z | CTCI/Chapter3/3-4.cpp | EdwaRen/Competitve_Programming | e8bffeb457936d28c75ecfefb5a1f316c15a9b6c | [
"MIT"
] | null | null | null | CTCI/Chapter3/3-4.cpp | EdwaRen/Competitve_Programming | e8bffeb457936d28c75ecfefb5a1f316c15a9b6c | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
const int MAX_SIZE = 100;
class Stack {
private:
int cur;
int *buf;
int capacity;
public:
Stack(int capa = MAX_SIZE) {
capacity = capa;
cur = -1;
buf = new int[capa];
}
void updateQueue() {
// if (bufFilled) {
for (int i = 0; i < cur; i++) {
... | 14.651163 | 40 | 0.512698 | EdwaRen |
5321f099bf6f9ded7e3b350abe66a8c9345c54b7 | 1,472 | cpp | C++ | lib/lane/src/Utils/FilesystemWindows.cpp | calhewitt/LANE | 412c3d465e6a459714f7a4a7ca4de30e571e0220 | [
"BSD-2-Clause"
] | null | null | null | lib/lane/src/Utils/FilesystemWindows.cpp | calhewitt/LANE | 412c3d465e6a459714f7a4a7ca4de30e571e0220 | [
"BSD-2-Clause"
] | null | null | null | lib/lane/src/Utils/FilesystemWindows.cpp | calhewitt/LANE | 412c3d465e6a459714f7a4a7ca4de30e571e0220 | [
"BSD-2-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
/// \file FilesystemWindows.cpp
/// \author Hector Stalker <hstalker0@gmail.com>
/// \version 0.1
///
/// \brief Cross-platform filesystem handling code - Windows specific
///
/// \copyright Copyright (c) 2014, Hector Stalker. All rights re... | 28.862745 | 79 | 0.601902 | calhewitt |
5322a7ecf129c7d181d3f747bcab653342de468d | 12,344 | cc | C++ | src/applications/dns/DNSServerBase.cc | saenridanra/inet-dns-extension | 1fa452792f954297f2dc7ede3b699e73ca17c0c1 | [
"MIT"
] | 1 | 2015-04-03T15:18:52.000Z | 2015-04-03T15:18:52.000Z | src/applications/dns/DNSServerBase.cc | saenridanra/inet-dns-extension | 1fa452792f954297f2dc7ede3b699e73ca17c0c1 | [
"MIT"
] | null | null | null | src/applications/dns/DNSServerBase.cc | saenridanra/inet-dns-extension | 1fa452792f954297f2dc7ede3b699e73ca17c0c1 | [
"MIT"
] | null | null | null | /* Copyright (c) 2014-2015 Andreas Rain
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, distr... | 36.412979 | 112 | 0.590327 | saenridanra |
5325af0d311e39200f5fb2cea8688113ecadfdb6 | 1,094 | cpp | C++ | search_engine/process_queries.cpp | oleg-nazarov/cpp-yandex-praktikum | a09781c198b0aff469c4d1175c91d72800909bf2 | [
"MIT"
] | 1 | 2022-03-15T19:01:03.000Z | 2022-03-15T19:01:03.000Z | search_engine/process_queries.cpp | oleg-nazarov/cpp-yandex-praktikum | a09781c198b0aff469c4d1175c91d72800909bf2 | [
"MIT"
] | 1 | 2022-03-15T19:11:59.000Z | 2022-03-15T19:11:59.000Z | search_engine/process_queries.cpp | oleg-nazarov/cpp-yandex-praktikum | a09781c198b0aff469c4d1175c91d72800909bf2 | [
"MIT"
] | null | null | null | #include "process_queries.h"
#include <algorithm>
#include <execution>
#include <iterator>
#include <string>
#include <vector>
#include "document.h"
#include "search_server.h"
std::vector<std::vector<Document>> ProcessQueries(const SearchServer& search_server, const std::vector<std::string>& queries) {
std::vect... | 28.789474 | 127 | 0.680073 | oleg-nazarov |
5328d7fc5df06a60f6df800f03b5e2d992ad864a | 30,734 | cpp | C++ | src/fs/Formats/FAT/FAT32/FATPartition.cpp | Unified-Projects/Unified-OS | 89912adc1ed9ec35753fe0f4fa35f03d30ec66a2 | [
"BSD-2-Clause"
] | null | null | null | src/fs/Formats/FAT/FAT32/FATPartition.cpp | Unified-Projects/Unified-OS | 89912adc1ed9ec35753fe0f4fa35f03d30ec66a2 | [
"BSD-2-Clause"
] | null | null | null | src/fs/Formats/FAT/FAT32/FATPartition.cpp | Unified-Projects/Unified-OS | 89912adc1ed9ec35753fe0f4fa35f03d30ec66a2 | [
"BSD-2-Clause"
] | null | null | null | #include <fs/Formats/FAT/FAT32/FATPartition.h>
#include <fs/Formats/FAT/FAT32/Directory.h>
#include <fs/Formats/FAT/FAT32/FAT.h>
using namespace UnifiedOS;
using namespace UnifiedOS::FileSystem;
using namespace UnifiedOS::FileSystem::FAT32;
#include <common/cstring.h> //Needed for path interaction
Fat32Partition::Fa... | 52.179966 | 276 | 0.413874 | Unified-Projects |
53298cf97e74554425a7e2d3be0f025f32ae6125 | 1,608 | cpp | C++ | src/shared/variable.cpp | FoFabien/SF2DEngine | 3d10964cbdae439584c10ab427ade394d720713f | [
"Zlib"
] | null | null | null | src/shared/variable.cpp | FoFabien/SF2DEngine | 3d10964cbdae439584c10ab427ade394d720713f | [
"Zlib"
] | null | null | null | src/shared/variable.cpp | FoFabien/SF2DEngine | 3d10964cbdae439584c10ab427ade394d720713f | [
"Zlib"
] | null | null | null | #include "variable.hpp"
// globale variable
int32_t gVar[VARIABLE_COUNT];
int32_t sysVar[SYSTEM_VARIABLE_COUNT];
void initGlobaleVariable()
{
for(int32_t i = 0; i < VARIABLE_COUNT; ++i) gVar[i] = 0;
for(int32_t i = 0; i < SYSTEM_VARIABLE_COUNT; ++i) sysVar[i] = 0;
}
void resetGlobaleVariableAndString()
{
... | 20.615385 | 79 | 0.600746 | FoFabien |
532be93864c9a79d5616e6dd14585049baf732c0 | 31,561 | cpp | C++ | src/vehicles/Plane.cpp | gameblabla/reeee3 | 1b6d0f742b1b6fb681756de702ed618e90361139 | [
"Unlicense"
] | 2 | 2021-03-24T22:11:27.000Z | 2021-05-07T06:51:04.000Z | src/vehicles/Plane.cpp | gameblabla/reeee3 | 1b6d0f742b1b6fb681756de702ed618e90361139 | [
"Unlicense"
] | null | null | null | src/vehicles/Plane.cpp | gameblabla/reeee3 | 1b6d0f742b1b6fb681756de702ed618e90361139 | [
"Unlicense"
] | null | null | null | #include "common.h"
#include "main.h"
#include "General.h"
#include "ModelIndices.h"
#include "FileMgr.h"
#include "Streaming.h"
#include "Replay.h"
#include "Camera.h"
#include "DMAudio.h"
#include "Wanted.h"
#include "Coronas.h"
#include "Particle.h"
#include "Explosion.h"
#include "World.h"
#include "HandlingMgr.h"... | 32.33709 | 136 | 0.701784 | gameblabla |
532cd22b5c3fc5703751081b99b23a3b37cd742d | 503 | cpp | C++ | src/MageFramework/Vulkan/RendererBackend/vAccelerationStructure.cpp | AmanSachan1/ShaderPlayGround | aba8293404bcba7ecad2a97c86c8aea7d0693945 | [
"MIT"
] | 2 | 2019-12-04T17:06:44.000Z | 2019-12-24T16:33:37.000Z | src/MageFramework/Vulkan/RendererBackend/vAccelerationStructure.cpp | AmanSachan1/GraphicsPlayground | aba8293404bcba7ecad2a97c86c8aea7d0693945 | [
"MIT"
] | null | null | null | src/MageFramework/Vulkan/RendererBackend/vAccelerationStructure.cpp | AmanSachan1/GraphicsPlayground | aba8293404bcba7ecad2a97c86c8aea7d0693945 | [
"MIT"
] | null | null | null | #include "Vulkan/RendererBackend/vAccelerationStructure.h"
#include <Vulkan/Utilities/vAccelerationStructureUtil.h>
void vBLAS::generateBLAS(VkCommandBuffer commandBuffer,
mageVKBuffer& scratchBuffer, VkDeviceSize scratchOffset,
bool updateOnly) const
{
const VkAccelerationStructureNV previousStructure = updateOnly... | 31.4375 | 100 | 0.840954 | AmanSachan1 |
532d377395f6bef19fc6b88303fa8d4b7daa55ee | 116 | cpp | C++ | src/cpu/tms9900/tms9995.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | 145 | 2018-04-10T17:24:39.000Z | 2022-03-27T17:39:03.000Z | src/cpu/tms9900/tms9995.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | 779 | 2018-04-09T21:30:15.000Z | 2022-03-31T06:38:07.000Z | src/cpu/tms9900/tms9995.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | 152 | 2018-04-10T10:52:18.000Z | 2022-03-09T08:24:16.000Z | /*
generate the tms9995 emulator
*/
#include "tms9900.h"
#define TMS99XX_MODEL TMS9995_ID
#include "99xxcore.h"
| 11.6 | 32 | 0.741379 | gameblabla |
53327b456447c6c5ff086262ab9c12fb0d5f14f9 | 1,965 | cpp | C++ | src/test/test_utils.cpp | ShnitzelKiller/Reverse-Engineering-Carpentry | 585b5ff053c7e3bf286b663a584bc83687691bd6 | [
"MIT"
] | 3 | 2021-09-08T07:28:13.000Z | 2022-03-02T21:12:40.000Z | src/test/test_utils.cpp | ShnitzelKiller/Reverse-Engineering-Carpentry | 585b5ff053c7e3bf286b663a584bc83687691bd6 | [
"MIT"
] | 1 | 2021-09-21T14:40:55.000Z | 2021-09-26T01:19:38.000Z | src/test/test_utils.cpp | ShnitzelKiller/Reverse-Engineering-Carpentry | 585b5ff053c7e3bf286b663a584bc83687691bd6 | [
"MIT"
] | null | null | null | //
// Created by James Noeckel on 4/7/20.
//
#include <iostream>
#include "utils/top_k_indices.hpp"
#include "utils/sorted_data_structures.hpp"
int main(int argc, char **argv) {
bool passed = true;
{
std::vector<int> sorted_vec;
sorted_insert(sorted_vec, 0);
sorted_insert(sorted_vec, 0... | 40.9375 | 116 | 0.561832 | ShnitzelKiller |
5335fbf56bc6ff0746bf13c3f4f09f653da58c71 | 347 | cc | C++ | dreal/util/precision_guard.cc | soonho-tri/dreal4 | e774d1496001e826c82dccee45094dd694089bee | [
"Apache-2.0"
] | null | null | null | dreal/util/precision_guard.cc | soonho-tri/dreal4 | e774d1496001e826c82dccee45094dd694089bee | [
"Apache-2.0"
] | 1 | 2018-01-19T16:11:44.000Z | 2018-01-19T16:11:44.000Z | dreal/util/precision_guard.cc | soonho-tri/dreal4 | e774d1496001e826c82dccee45094dd694089bee | [
"Apache-2.0"
] | null | null | null | #include "dreal/util/precision_guard.h"
namespace dreal {
PrecisionGuard::PrecisionGuard(std::ostream* os,
const std::streamsize precision)
: os_{os}, old_precision_(os->precision()) {
os_->precision(precision);
}
PrecisionGuard::~PrecisionGuard() { os_->precision(old_precision_)... | 24.785714 | 69 | 0.668588 | soonho-tri |
533c9c4ecdbdc99bc55d94df5c363119491a63bc | 7,874 | cc | C++ | code/Samples/ResourceStress/ResourceStress.cc | infancy/oryol | 06b580116cc2e929b9e1a85920a74fb32d76493c | [
"MIT"
] | 1,707 | 2015-01-01T14:56:08.000Z | 2022-03-28T06:44:09.000Z | code/Samples/ResourceStress/ResourceStress.cc | infancy/oryol | 06b580116cc2e929b9e1a85920a74fb32d76493c | [
"MIT"
] | 256 | 2015-01-03T14:55:53.000Z | 2020-09-09T10:43:46.000Z | code/Samples/ResourceStress/ResourceStress.cc | infancy/oryol | 06b580116cc2e929b9e1a85920a74fb32d76493c | [
"MIT"
] | 222 | 2015-01-05T00:20:54.000Z | 2022-02-06T01:41:37.000Z | //------------------------------------------------------------------------------
// ResourceStress.cc
//------------------------------------------------------------------------------
#include "Pre.h"
#include "Core/Main.h"
#include "IO/IO.h"
#include "Gfx/Gfx.h"
#include "Dbg/Dbg.h"
#include "HttpFS/HTTPFileSystem.h"
... | 36.623256 | 93 | 0.578613 | infancy |
5340412ccab57648a683999611fdee489474ea5c | 21,781 | cpp | C++ | cpp/src/datacentric/dc/platform/data_source/mongo/temporal_mongo_data_source.cpp | datacentricorg/datacentric-cpp | 252f642b1a81c2475050d48e9564eec0a561907e | [
"Apache-2.0"
] | 2 | 2019-08-08T01:29:02.000Z | 2019-08-18T19:19:00.000Z | cpp/src/datacentric/dc/platform/data_source/mongo/temporal_mongo_data_source.cpp | datacentricorg/datacentric-cpp | 252f642b1a81c2475050d48e9564eec0a561907e | [
"Apache-2.0"
] | null | null | null | cpp/src/datacentric/dc/platform/data_source/mongo/temporal_mongo_data_source.cpp | datacentricorg/datacentric-cpp | 252f642b1a81c2475050d48e9564eec0a561907e | [
"Apache-2.0"
] | null | null | null | /*
Copyright (C) 2013-present The DataCentric 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 agreed to ... | 43.130693 | 189 | 0.635003 | datacentricorg |
c7282262fd465904e45bed337de6db02e61c8422 | 2,754 | cpp | C++ | BAI_12.cpp | anhtuanptit97/anhtuan | 5b1d49cb21368079a8cdd4139d0e6522d054700b | [
"Unlicense"
] | null | null | null | BAI_12.cpp | anhtuanptit97/anhtuan | 5b1d49cb21368079a8cdd4139d0e6522d054700b | [
"Unlicense"
] | null | null | null | BAI_12.cpp | anhtuanptit97/anhtuan | 5b1d49cb21368079a8cdd4139d0e6522d054700b | [
"Unlicense"
] | null | null | null | #include<iostream>
#include<cmath>
using namespace std;
class fraction{
private:
int num;
int den;
public:
fraction(int ,int );
fraction();
void lowterms();
void dislay();
void set_num(int tnum){
this->num=tnum;
}
void set_den(int tden){
this->den=tden;
}
void sum(fract... | 19.258741 | 68 | 0.582426 | anhtuanptit97 |
c72d04c7dcb638babe4a2cc935be8bf799e0caa8 | 652 | cpp | C++ | transpose of matrices.cpp | mohsin5432/CPP-basic | 453c82cdc1b3412ee0a063cd9053c7556c80bd7a | [
"MIT"
] | null | null | null | transpose of matrices.cpp | mohsin5432/CPP-basic | 453c82cdc1b3412ee0a063cd9053c7556c80bd7a | [
"MIT"
] | null | null | null | transpose of matrices.cpp | mohsin5432/CPP-basic | 453c82cdc1b3412ee0a063cd9053c7556c80bd7a | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
main()
{
int r,c;
cout<<"ENTER THE ROWS OF MATRICES= ";
cin>>r;
cout<<"ENTER THE COLUMN OF MATRICES= ";
cin>>c;
int a[r][c];
for(int i=0;i<r;i++)
{
for (int j=0;j<c;j++)
{
cout<<"Enter no= ";
cin>>a[i][j];
}
}
cout<<"\t\t\tOrignal Matrice:... | 15.52381 | 47 | 0.45092 | mohsin5432 |
c732658bd36524425c901e678fe7257825e8df94 | 14,860 | cpp | C++ | source/scene/logic/scene.cpp | imstar15/breeze | 8793493c1245670a66e1a098a0d010c51e7b4783 | [
"Apache-2.0"
] | 454 | 2015-01-06T00:28:13.000Z | 2022-03-17T04:24:39.000Z | source/scene/logic/scene.cpp | 63890390/breeze | e9ce9fae7a3f9dc5f3f1c911a98d75707a50e6b0 | [
"Apache-2.0"
] | 8 | 2016-06-08T21:06:03.000Z | 2021-06-10T11:20:06.000Z | source/scene/logic/scene.cpp | 63890390/breeze | e9ce9fae7a3f9dc5f3f1c911a98d75707a50e6b0 | [
"Apache-2.0"
] | 214 | 2015-01-06T11:06:46.000Z | 2022-03-13T14:29:52.000Z | #include "scene.h"
#include "sceneMgr.h"
#include <aoe/aoe.h>
Scene::Scene(SceneID sceneID)
{
_sceneID = sceneID;
_sceneType = SCENE_NONE;
_sceneStatus = SCENE_STATE_NONE;
}
Scene::~Scene()
{
}
GroupID Scene::getGroupID(ServiceID avatarID)
{
auto entity = getEntityByAvatarID(avatarID);
if (entity... | 27.166362 | 181 | 0.622813 | imstar15 |
c738b91713fb49991d53ba916a740c2084e6d15c | 4,044 | hxx | C++ | src/elle/reactor/Generator.hxx | infinitio/elle | d9bec976a1217137436db53db39cda99e7024ce4 | [
"Apache-2.0"
] | 521 | 2016-02-14T00:39:01.000Z | 2022-03-01T22:39:25.000Z | src/elle/reactor/Generator.hxx | infinitio/elle | d9bec976a1217137436db53db39cda99e7024ce4 | [
"Apache-2.0"
] | 8 | 2017-02-21T11:47:33.000Z | 2018-11-01T09:37:14.000Z | src/elle/reactor/Generator.hxx | infinitio/elle | d9bec976a1217137436db53db39cda99e7024ce4 | [
"Apache-2.0"
] | 48 | 2017-02-21T10:18:13.000Z | 2022-03-25T02:35:20.000Z | #include <type_traits>
namespace elle
{
namespace reactor
{
/*----.
| End |
`----*/
template <typename T>
Generator<T>::End::End(Generator<T> const& g)
: elle::Error(elle::sprintf("%s exhausted", g))
{}
/*-------------.
| Construction |
`-------------*/
template <ty... | 22.977273 | 74 | 0.526954 | infinitio |
c73cb9c65a54973505931ffed10a564f468f2d31 | 13,219 | cpp | C++ | main/IotDataMqtt.cpp | nkskjames/wifi_bbq_temp | 28e9d46d64de0a83e5e0a04a6112c1f564421af6 | [
"Apache-2.0"
] | null | null | null | main/IotDataMqtt.cpp | nkskjames/wifi_bbq_temp | 28e9d46d64de0a83e5e0a04a6112c1f564421af6 | [
"Apache-2.0"
] | null | null | null | main/IotDataMqtt.cpp | nkskjames/wifi_bbq_temp | 28e9d46d64de0a83e5e0a04a6112c1f564421af6 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "freertos/FreeRTOS.h"
#include "esp_system.h"
#include "esp_event.h"
#include "esp_event_loop.h"
#include <nvs.h>
#include <nvs_flash.h>
#include "aws_iot_config.h"
#include "aws_iot_log.h"
#include "aws_iot_version.h"
#include "aws_iot_mqtt_client_int... | 34.069588 | 205 | 0.667827 | nkskjames |
c73faa6d771bdc30f574843285dbb285760bc25a | 15,360 | cpp | C++ | onut/src/onut.cpp | Daivuk/ggj16 | 0ba896f3b6ece32ed3a6e190825e53e88f666d5e | [
"MIT"
] | null | null | null | onut/src/onut.cpp | Daivuk/ggj16 | 0ba896f3b6ece32ed3a6e190825e53e88f666d5e | [
"MIT"
] | null | null | null | onut/src/onut.cpp | Daivuk/ggj16 | 0ba896f3b6ece32ed3a6e190825e53e88f666d5e | [
"MIT"
] | 1 | 2019-10-19T04:49:33.000Z | 2019-10-19T04:49:33.000Z | #include <cassert>
#include <mutex>
#include <sstream>
#include "Audio.h"
#include "InputDevice.h"
#include "onut.h"
#include "Window.h"
using namespace DirectX;
// Our engine services
onut::Window* OWindow = nullptr;
onut::Renderer* ORenderer = nullptr;
onut::Settings* ... | 33.982301 | 176 | 0.484375 | Daivuk |
c7415ed8fe10f663b4035c93700c36926c2e33a4 | 1,482 | cpp | C++ | tools/Container/Containerlogger.cpp | fstudio/Phoenix | 28a7c6a3932fd7d6fea12770d0aa1e20bc70db7d | [
"MIT"
] | 8 | 2015-01-23T05:41:46.000Z | 2019-11-20T05:10:27.000Z | tools/Container/Containerlogger.cpp | fstudio/Phoenix | 28a7c6a3932fd7d6fea12770d0aa1e20bc70db7d | [
"MIT"
] | null | null | null | tools/Container/Containerlogger.cpp | fstudio/Phoenix | 28a7c6a3932fd7d6fea12770d0aa1e20bc70db7d | [
"MIT"
] | 4 | 2015-05-05T05:15:43.000Z | 2020-03-07T11:10:56.000Z | /*********************************************************************************************************
* Containerlogger.cpp
* Note: Phoenix Container
* Date: @2015.03
* E-mail:<forcemz@outlook.com>
* Copyright (C) 2015 The ForceStudio All Rights Reserved.
***********************************************************... | 22.119403 | 107 | 0.556005 | fstudio |
c7449a6d1a4cda9ce40b45a470791de89486a982 | 2,630 | cpp | C++ | RegisterCodeGenerator/RegisterCodeGenerator.cpp | kevinwu1024/ExtremeCopy | de9ba1aef769d555d10916169ccf2570c69a8d01 | [
"Apache-2.0"
] | 67 | 2020-11-12T11:51:37.000Z | 2022-03-01T13:44:43.000Z | RegisterCodeGenerator/RegisterCodeGenerator.cpp | kevinwu1024/ExtremeCopy | de9ba1aef769d555d10916169ccf2570c69a8d01 | [
"Apache-2.0"
] | 4 | 2021-04-09T08:22:06.000Z | 2021-06-07T13:43:13.000Z | RegisterCodeGenerator/RegisterCodeGenerator.cpp | kevinwu1024/ExtremeCopy | de9ba1aef769d555d10916169ccf2570c69a8d01 | [
"Apache-2.0"
] | 12 | 2020-11-12T11:51:42.000Z | 2022-02-11T08:07:37.000Z | /****************************************************************************
Copyright (c) 2008-2020 Kevin Wu (Wu Feng)
github: https://github.com/kevinwu1024/ExtremeCopy
site: http://www.easersoft.com
Licensed under the Apache License, Version 2.0 License (the "License"); you may not use this file except
in compli... | 29.222222 | 104 | 0.725095 | kevinwu1024 |
c7483cb6f45312806af90fa08caae046cdbee30b | 274 | cpp | C++ | source/scene/entity.cpp | Kostu96/k2d-engine | 8150230034cf4afc862fcc1a3c262c27d544feed | [
"MIT"
] | null | null | null | source/scene/entity.cpp | Kostu96/k2d-engine | 8150230034cf4afc862fcc1a3c262c27d544feed | [
"MIT"
] | null | null | null | source/scene/entity.cpp | Kostu96/k2d-engine | 8150230034cf4afc862fcc1a3c262c27d544feed | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2021-2022 Konstanty Misiak
*
* SPDX-License-Identifier: MIT
*/
#include "scene/entity.hpp"
namespace k2d {
Entity::Entity(entt::entity handle, Scene& scene) :
m_handle(handle),
m_sceneRef(scene)
{
}
} // namespace k2d
| 14.421053 | 55 | 0.616788 | Kostu96 |
c74a50bad375c1f42e1c7bb3d7ac8674ae8754a4 | 4,786 | cpp | C++ | AcrosyncSwift/rsync/block/t_block_out.cpp | aaronvegh/AcrosyncSwift | 469201f6d8ca407334d515260e47526c6965d008 | [
"Unlicense"
] | null | null | null | AcrosyncSwift/rsync/block/t_block_out.cpp | aaronvegh/AcrosyncSwift | 469201f6d8ca407334d515260e47526c6965d008 | [
"Unlicense"
] | null | null | null | AcrosyncSwift/rsync/block/t_block_out.cpp | aaronvegh/AcrosyncSwift | 469201f6d8ca407334d515260e47526c6965d008 | [
"Unlicense"
] | null | null | null | #include "block_out.h"
#include <stdio.h>
struct UserType1
{
int d_i;
double d_d;
};
class UserType2
{
int d_i;
double d_d;
public:
UserType2() {}
~UserType2() {}
};
class Source
{
public:
block::out<void()> out0;
block::out<void(const char*)> out1;
block::out<void(const char*, ... | 23.93 | 95 | 0.547221 | aaronvegh |
c75b9297fc5af22e94dd59a6431d3def2205444e | 14,738 | cpp | C++ | jack/common/JackAudioAdapterInterface.cpp | KimJeongYeon/jack2_android | 4a8787be4306558cb52e5379466c0ed4cc67e788 | [
"BSD-3-Clause-No-Nuclear-Warranty"
] | 47 | 2015-01-04T21:47:07.000Z | 2022-03-23T16:27:16.000Z | vendor/samsung/external/jack/common/JackAudioAdapterInterface.cpp | cesarmo759/android_kernel_samsung_msm8916 | f19717ef6c984b64a75ea600a735dc937b127c25 | [
"Apache-2.0"
] | 3 | 2015-02-04T21:40:11.000Z | 2019-09-16T19:53:51.000Z | jack/common/JackAudioAdapterInterface.cpp | KimJeongYeon/jack2_android | 4a8787be4306558cb52e5379466c0ed4cc67e788 | [
"BSD-3-Clause-No-Nuclear-Warranty"
] | 7 | 2015-05-17T08:22:52.000Z | 2021-08-07T22:36:17.000Z | /*
Copyright (C) 2008 Grame
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 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it wi... | 37.501272 | 198 | 0.612838 | KimJeongYeon |
c75f385c1ed02bf476e70989d760aa477b4e43f7 | 3,025 | cpp | C++ | src/Main.cpp | innatewonder/onyx | fffb16ab068871fe3d948fa64eff81ce1dc31524 | [
"MIT"
] | null | null | null | src/Main.cpp | innatewonder/onyx | fffb16ab068871fe3d948fa64eff81ce1dc31524 | [
"MIT"
] | null | null | null | src/Main.cpp | innatewonder/onyx | fffb16ab068871fe3d948fa64eff81ce1dc31524 | [
"MIT"
] | null | null | null | #include "CommonPrecompiled.h"
#include "NetworkEngine.h"
#include "OnyxTransfer.h"
#include "HTTP.h"
#include "UDPBase.h"
#include "TCPBase.h"
#include "ByteArray.h"
//handle closing connections
//handle timeouts
//handle sending queue
//handle arbitrary connect requests
int main(int argc, char** argv)
{
ArgPars... | 21.453901 | 80 | 0.584793 | innatewonder |
c75fe3c2eaa69eaa41aaa26580ad41719fc37422 | 4,546 | cpp | C++ | day12/day12-tests/day12-tests.cpp | MattHarrington/advent-of-code-2019 | 8733d2692c4d619d1db3b82645032eebca934334 | [
"MIT"
] | null | null | null | day12/day12-tests/day12-tests.cpp | MattHarrington/advent-of-code-2019 | 8733d2692c4d619d1db3b82645032eebca934334 | [
"MIT"
] | null | null | null | day12/day12-tests/day12-tests.cpp | MattHarrington/advent-of-code-2019 | 8733d2692c4d619d1db3b82645032eebca934334 | [
"MIT"
] | null | null | null | // https://adventofcode.com/2019/day/12
#include <catch.hpp>
#include <numeric>
#include "day12-lib.h"
TEST_CASE("sample after 1 timestep should be correct", "[part_one]") {
const std::vector<Moon> sample_moons{
Moon{{-1,0,2}, {0,0,0}},
Moon{{2,-10,-7}, {0,0,0}},
Moon{{4,-8,8}, {0,0,0}},
... | 35.515625 | 107 | 0.568412 | MattHarrington |
c76028d3464e5ff58ddd818e7f2967162a374edd | 1,248 | cpp | C++ | ABC193/d.cpp | KoukiNAGATA/c- | ae51bacb9facb936a151dd777beb6688383a2dcd | [
"MIT"
] | null | null | null | ABC193/d.cpp | KoukiNAGATA/c- | ae51bacb9facb936a151dd777beb6688383a2dcd | [
"MIT"
] | 3 | 2021-03-31T01:39:25.000Z | 2021-05-04T10:02:35.000Z | ABC193/d.cpp | KoukiNAGATA/c- | ae51bacb9facb936a151dd777beb6688383a2dcd | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n - 1; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i <= n; i++)
#define FORR(i, m, n) for (int i = m; i >= n; i--)
#define SORT(v, n) sort(v, v + n)
#define MAX 100000
#define inf 1000000007
using namespace std;... | 25.469388 | 91 | 0.459936 | KoukiNAGATA |
c760b548acedc9bd42a014357a84a0c6ce7f791a | 1,086 | cpp | C++ | rules/gen/txt_to_cpp.cpp | hleclerc/nsmake | 01c246311cb37d6d85776db87e413c61c692c9dd | [
"Apache-2.0"
] | null | null | null | rules/gen/txt_to_cpp.cpp | hleclerc/nsmake | 01c246311cb37d6d85776db87e413c61c692c9dd | [
"Apache-2.0"
] | null | null | null | rules/gen/txt_to_cpp.cpp | hleclerc/nsmake | 01c246311cb37d6d85776db87e413c61c692c9dd | [
"Apache-2.0"
] | null | null | null | #include "Hpipe/Stream.h"
#include <iostream>
#include <fstream>
using namespace std;
int usage( const char *prg, const char *msg, int res ) {
if ( msg )
std::cerr << msg << std::endl;
std::cerr << "Usage:" << std::endl;
std::cerr << " " << prg << " cpp_var_name input_file" << std::endl;
retur... | 23.608696 | 82 | 0.411602 | hleclerc |
c7633337f43003899682b90cd4316ad6daca03c4 | 1,086 | cpp | C++ | 1144/f.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | 1 | 2021-10-24T00:46:37.000Z | 2021-10-24T00:46:37.000Z | 1144/f.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | 1144/f.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <vector>
#include <tuple>
using namespace std;
const int MAXN = 200005;
int color[MAXN];
vector<int> g[MAXN];
vector<pair<int, int>> edges;
void dfs(int v, int p, bool &possible) {
if (!possible) {
return;
}
color[v] = color[p] + 1;
color[v] -= 2 * (color[... | 16.208955 | 40 | 0.470534 | vladshablinsky |
c76cff58a164cf3f068a00c8527048a0d819ffd5 | 2,757 | cc | C++ | src/rtc_audio_track_impl.cc | necnecnec/libwebrtc | 220cc87ac678ff0675b16397f46a6a35ecd2ba9c | [
"MIT"
] | null | null | null | src/rtc_audio_track_impl.cc | necnecnec/libwebrtc | 220cc87ac678ff0675b16397f46a6a35ecd2ba9c | [
"MIT"
] | null | null | null | src/rtc_audio_track_impl.cc | necnecnec/libwebrtc | 220cc87ac678ff0675b16397f46a6a35ecd2ba9c | [
"MIT"
] | null | null | null | #include "rtc_audio_track_impl.h"
namespace libwebrtc {
AudioTrackImpl::AudioTrackImpl(
rtc::scoped_refptr<webrtc::AudioTrackInterface> audio_track)
: rtc_track_(audio_track),_renderer(nullptr) {
RTC_LOG(INFO) << __FUNCTION__ << ": ctor ";
if(rtc_track_){
strncpy(id_, rtc_track_->id().c_str(),... | 34.4625 | 78 | 0.544432 | necnecnec |
c773cab98a04d4ec89cf473d13a51c3c94a504bb | 989 | cpp | C++ | 415.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 415.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 415.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | class Solution {
public:
string addStrings(string num1, string num2) {
int n1 = num1.size(), n2 = num2.size();
string& res = n1 > n2 ? num1 : num2;
int n_res = max(n1, n2);
int d = 1;
int sum, carry = 0;
while (d <= n_res) {
if (n1 - d < 0) {
... | 30.90625 | 83 | 0.352882 | Alex-Amber |
c77a2675fd08425e1ec08030da1a2e71a45bbaa0 | 5,264 | cpp | C++ | src/l_Message.cpp | benzap/Kampf | 9cf4fb0d6ec22bc35ade9b476d29df34902c6689 | [
"Zlib"
] | 2 | 2018-05-13T05:27:29.000Z | 2018-05-29T06:35:57.000Z | src/l_Message.cpp | benzap/Kampf | 9cf4fb0d6ec22bc35ade9b476d29df34902c6689 | [
"Zlib"
] | null | null | null | src/l_Message.cpp | benzap/Kampf | 9cf4fb0d6ec22bc35ade9b476d29df34902c6689 | [
"Zlib"
] | null | null | null | #include "l_Message.hpp"
Message* lua_pushmessage(lua_State *L, Message* message) {
if (message == nullptr) {
message = Messenger::getInstance()->appendMessage();
}
Message ** messagePtr = static_cast<Message**>
(lua_newuserdata(L, sizeof(Message*)));
*messagePtr = message;
luaL_getmetata... | 26.059406 | 69 | 0.68807 | benzap |
c7828544598a63a600ca68615866fd1d4672f91d | 734 | cpp | C++ | Leetcode Solution/HashMap/Medium/1487. Making File Names Unique.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 169 | 2021-05-30T10:02:19.000Z | 2022-03-27T18:09:32.000Z | Leetcode Solution/HashMap/Medium/1487. Making File Names Unique.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 1 | 2021-10-02T14:46:26.000Z | 2021-10-02T14:46:26.000Z | Leetcode Solution/HashMap/Medium/1487. Making File Names Unique.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 44 | 2021-05-30T19:56:29.000Z | 2022-03-17T14:49:00.000Z |
class Solution {
public:
vector<string> getFolderNames(vector<string>& names) {
unordered_map<string,int> mp;
vector<string> ans;
int j;
for(int i=0;i<names.size();i++)
{
j = mp[names[i]];
string temp... | 25.310345 | 82 | 0.30109 | bilwa496 |
c783d231aa59021045a62d029399844437262bc2 | 157 | hpp | C++ | basics/maxdecltypedecay.hpp | hanlulugeren/C-templates | 17181f1e99207430236623e70504b4aecd40afe9 | [
"MIT"
] | null | null | null | basics/maxdecltypedecay.hpp | hanlulugeren/C-templates | 17181f1e99207430236623e70504b4aecd40afe9 | [
"MIT"
] | null | null | null | basics/maxdecltypedecay.hpp | hanlulugeren/C-templates | 17181f1e99207430236623e70504b4aecd40afe9 | [
"MIT"
] | null | null | null | #include<type_traits>
template<typename T1,typename T2>
auto max(T1 a,T2 b) -> typename std::decay< decltype(true ? a:b)>::type
{
return b < a ? a :b;
}
| 22.428571 | 71 | 0.656051 | hanlulugeren |
c788705efdbde2f2cec2993a22c8449d8b0573c9 | 12,737 | cpp | C++ | QuadtreeCollision/main.cpp | kgomathi2910/Quad-Trees | 70059b66a93a9491f435c99d2cd811e0e0df3337 | [
"MIT"
] | null | null | null | QuadtreeCollision/main.cpp | kgomathi2910/Quad-Trees | 70059b66a93a9491f435c99d2cd811e0e0df3337 | [
"MIT"
] | null | null | null | QuadtreeCollision/main.cpp | kgomathi2910/Quad-Trees | 70059b66a93a9491f435c99d2cd811e0e0df3337 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<math.h>
#include<sstream>
#include<string>
#include <SFML/Graphics.hpp>
using namespace std;
using namespace sf;
#define SCREEN_W 600
#define SCREEN_H 600
#define LEVEL_MAX 4
#define CAPACITY 5 //efficiency changes with capacity
#define PI 3.14159265
#define SPEED 0.5f
str... | 34.705722 | 151 | 0.437544 | kgomathi2910 |
c78a0d53574181ae16ab39a3b8605730b2426cfa | 4,768 | cpp | C++ | Source/ShooterGame/Weapons/ShooterWeapon_Melee.cpp | ugsgame/ShooterPrototype | 48fbc5401f52bd6d0b7f5b9bda8399c929eab4b9 | [
"Apache-2.0"
] | 1 | 2019-07-16T09:46:54.000Z | 2019-07-16T09:46:54.000Z | Source/ShooterGame/Weapons/ShooterWeapon_Melee.cpp | ugsgame/ShooterPrototype | 48fbc5401f52bd6d0b7f5b9bda8399c929eab4b9 | [
"Apache-2.0"
] | null | null | null | Source/ShooterGame/Weapons/ShooterWeapon_Melee.cpp | ugsgame/ShooterPrototype | 48fbc5401f52bd6d0b7f5b9bda8399c929eab4b9 | [
"Apache-2.0"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "ShooterGame.h"
#include "ShooterWeapon_Melee.h"
AShooterWeapon_Melee::AShooterWeapon_Melee(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer)
{
CollisionComp1P = ObjectInitializer.CreateDefaultSubobject<UCa... | 28.213018 | 200 | 0.79719 | ugsgame |
c78db1a32fb4d1c35d70ed2abda77ab9e691ed89 | 3,725 | hpp | C++ | src/poutreBase/poutreChronos.hpp | ThomasRetornaz/poutre | 21717ce1da24515dd208f711d6e7c38095ba8ecf | [
"BSL-1.0"
] | null | null | null | src/poutreBase/poutreChronos.hpp | ThomasRetornaz/poutre | 21717ce1da24515dd208f711d6e7c38095ba8ecf | [
"BSL-1.0"
] | null | null | null | src/poutreBase/poutreChronos.hpp | ThomasRetornaz/poutre | 21717ce1da24515dd208f711d6e7c38095ba8ecf | [
"BSL-1.0"
] | null | null | null |
//==============================================================================
// Copyright (c) 2015 - Thomas Retornaz //
// thomas.retornaz@mines-paris.org //
// Distributed under the Boost Software License, Version 1.0. ... | 32.391304 | 113 | 0.54255 | ThomasRetornaz |
c78e71eb1d401394d83cd4dcbfea3a706a3cd27c | 637 | cpp | C++ | engine/core/Concurency/Task.cpp | TristanFish/SuperBongoEngine | 3a6c67c0aa0c6b4f75e353690016b8f91d813717 | [
"MIT"
] | null | null | null | engine/core/Concurency/Task.cpp | TristanFish/SuperBongoEngine | 3a6c67c0aa0c6b4f75e353690016b8f91d813717 | [
"MIT"
] | null | null | null | engine/core/Concurency/Task.cpp | TristanFish/SuperBongoEngine | 3a6c67c0aa0c6b4f75e353690016b8f91d813717 | [
"MIT"
] | null | null | null | #include "Task.h"
#include "Thread.h"
Task::Task(): E_Priority(ETaskPriority::Low), E_TaskType(ETaskType::TT_GENERAL), B_HasBeenCompleted(false)
{
}
Task::Task(ETaskPriority newPriority, ETaskType newType) : E_Priority(newPriority), E_TaskType(newType), B_HasBeenCompleted(false)
{
}
Task::Task(std::shared_ptr<Task... | 17.216216 | 172 | 0.739403 | TristanFish |
c794ca9c70a0d9ab1f63dc13ebc98459b81b8971 | 40,116 | cpp | C++ | src/plugins/assembly/gstpartassembly.cpp | AIoT-IST/EVA_Show-Case | 14474d97c233b4740c8216ba6564454cd954129c | [
"MIT"
] | 4 | 2021-05-26T07:14:50.000Z | 2022-01-10T00:15:32.000Z | src/plugins/assembly/gstpartassembly.cpp | maxpark/EVA_Show-Case | c21fdf7d81efaaf4b63b071eeaf8911791336058 | [
"MIT"
] | 2 | 2021-06-07T16:00:14.000Z | 2021-07-06T13:35:38.000Z | src/plugins/assembly/gstpartassembly.cpp | maxpark/EVA_Show-Case | c21fdf7d81efaaf4b63b071eeaf8911791336058 | [
"MIT"
] | 3 | 2021-08-19T02:27:59.000Z | 2022-01-10T07:40:22.000Z | #ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <gst/gst.h>
#include <gst/video/video.h>
#include <gst/video/gstvideofilter.h>
#include "gstpartassembly.h"
#include <ctime>
#include <iostream>
#include <fstream>
#include <regex>
#include <string>
#include <vector>
#include "gstadmeta.h"
#include "utils.h"
#de... | 41.399381 | 351 | 0.635083 | AIoT-IST |
c7955b06d771c30961059c9dbbdc62196053fa3d | 12,843 | cpp | C++ | src/app_eth.cpp | tsc19/fring | 2418ce1b27892f2f5c256f94ae0c5fc376cfa72c | [
"Apache-2.0"
] | 3 | 2019-11-06T09:05:07.000Z | 2021-04-11T08:46:57.000Z | src/app_eth.cpp | tsc19/fring | 2418ce1b27892f2f5c256f94ae0c5fc376cfa72c | [
"Apache-2.0"
] | null | null | null | src/app_eth.cpp | tsc19/fring | 2418ce1b27892f2f5c256f94ae0c5fc376cfa72c | [
"Apache-2.0"
] | null | null | null | #include "app_eth.h"
// constructors
BaseAppETH::BaseAppETH(std::string ip, unsigned short port, std::string id) {
this->node = std::make_shared<Node>(id, ip, port);
this->node_table = std::make_shared<NodeTableETH>(id);
}
// getters
std::shared_ptr<Node> BaseAppETH::get_node() {
return this->node;
}
std... | 46.032258 | 173 | 0.56926 | tsc19 |
c7961212cb8b85c10114c83869a245f0d7803c16 | 403 | cpp | C++ | CLIHelperTests/group_argument_is.cpp | BitCruncher0/CLIHelper | 9ea8e6b5f14f038c143c4e552fad8e1394556a9d | [
"Apache-2.0"
] | 1 | 2022-01-10T23:47:40.000Z | 2022-01-10T23:47:40.000Z | CLIHelperTests/group_argument_is.cpp | BitCruncher0/CLIHelper | 9ea8e6b5f14f038c143c4e552fad8e1394556a9d | [
"Apache-2.0"
] | null | null | null | CLIHelperTests/group_argument_is.cpp | BitCruncher0/CLIHelper | 9ea8e6b5f14f038c143c4e552fad8e1394556a9d | [
"Apache-2.0"
] | null | null | null | #include "CppUTest/TestHarness.h"
#include "../cli.hpp"
#include <string>
#include <fstream>
#include <vector>
using std::string;
using std::vector;
TEST_GROUP(ArgumentIs)
{
};
TEST(ArgumentIs, Returns_true_if_Nth_argument_is_key)
{
CHECK_EQUAL(false, argumentIs("a", 0, "a b"));
CHECK_EQUAL(true, a... | 13.433333 | 53 | 0.662531 | BitCruncher0 |
c79b1259fec0b2d76602c19fa77ad7979dd8509f | 1,993 | hpp | C++ | engine/glrenderer/buffers.hpp | tapio/weep | aca40e3ce20eae4ce183a98ab707ac65c4be4e63 | [
"MIT"
] | 33 | 2017-01-13T20:47:21.000Z | 2022-03-21T23:29:17.000Z | engine/glrenderer/buffers.hpp | tapio/weep | aca40e3ce20eae4ce183a98ab707ac65c4be4e63 | [
"MIT"
] | null | null | null | engine/glrenderer/buffers.hpp | tapio/weep | aca40e3ce20eae4ce183a98ab707ac65c4be4e63 | [
"MIT"
] | 4 | 2016-12-10T16:10:42.000Z | 2020-06-28T04:44:11.000Z | #pragma once
#include "common.hpp"
#include "../../data/shaders/uniforms.glsl"
// Generic Buffer Object
struct BufferObjectBase
{
virtual ~BufferObjectBase() { destroy(); }
NONCOPYABLE(BufferObjectBase);
protected:
BufferObjectBase() {}
void create(uint type, uint binding, uint size, const void* data);
void bin... | 24.9125 | 121 | 0.712494 | tapio |
c79bf17c6647e14d45af6d6a9f7eae7520b24632 | 4,519 | cpp | C++ | DataConverter/SegmenterDictionaryFeatureGenerator.cpp | hiroshi-manabe/CRFSegmenter | c8b0544933701f91ff9cfac9301c51b181a4f846 | [
"BSL-1.0"
] | 16 | 2016-07-01T01:40:56.000Z | 2020-05-06T03:29:42.000Z | DataConverter/SegmenterDictionaryFeatureGenerator.cpp | hiroshi-manabe/CRFSegmenter | c8b0544933701f91ff9cfac9301c51b181a4f846 | [
"BSL-1.0"
] | 9 | 2016-07-04T06:44:42.000Z | 2020-05-14T21:23:46.000Z | DataConverter/SegmenterDictionaryFeatureGenerator.cpp | hiroshi-manabe/CRFSegmenter | c8b0544933701f91ff9cfac9301c51b181a4f846 | [
"BSL-1.0"
] | 2 | 2016-07-05T14:50:32.000Z | 2019-10-03T02:35:53.000Z | #include "SegmenterDictionaryFeatureGenerator.h"
#include "../Dictionary/DictionaryClass.h"
#include "../Utility/CharWithSpace.h"
#include <algorithm>
#include <cassert>
#include <unordered_set>
#include <memory>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
namespace DataConverter {
usi... | 36.739837 | 147 | 0.612525 | hiroshi-manabe |
c7a2aafa94bf6965635216afb9ef0f2e0be9aa35 | 154 | hpp | C++ | pythran/pythonic/__builtin__/pythran/kwonly.hpp | AlifeLines/pythran | b793344637173cac8e5f4a79b0ab788951d53899 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/__builtin__/pythran/kwonly.hpp | AlifeLines/pythran | b793344637173cac8e5f4a79b0ab788951d53899 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/__builtin__/pythran/kwonly.hpp | AlifeLines/pythran | b793344637173cac8e5f4a79b0ab788951d53899 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_BUILTIN_PYTHRAN_KWONLY_HPP
#define PYTHONIC_BUILTIN_PYTHRAN_KWONLY_HPP
#include "pythonic/include/__builtin__/pythran/kwonly.hpp"
#endif
| 30.8 | 58 | 0.883117 | AlifeLines |
c7a3126de11c19d81ebc972cbf196e7dd7637b43 | 14,537 | cpp | C++ | flite/src/cg/mlsa.cpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | 7 | 2017-12-10T23:02:22.000Z | 2021-08-05T21:12:11.000Z | flite/src/cg/mlsa.cpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | null | null | null | flite/src/cg/mlsa.cpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | 3 | 2018-10-28T03:47:09.000Z | 2020-06-04T08:54:23.000Z | #include "flite/audio/audio.hpp"
#include "flite/synthcommon/track.hpp"
#include "flite/synthcommon/wave.hpp"
#include "flite/utils/alloc.hpp"
#include "flite/utils/math.hpp"
#include "flite/utils/string.hpp"
#ifdef ANDROID
#define SPEED_HACK
#endif
#ifdef UNDER_CE
#define SPEED_HACK
/* This is one of those other thi... | 25.369983 | 176 | 0.475683 | Barath-Kannan |
c7a34f2c452678da6f1895bbabb32ab890ed62bc | 4,118 | cpp | C++ | src/test/cpp/filter/levelmatchfiltertest.cpp | Blaxar/log4cxxNG | 8dfdfa2ab3d2fe598a41ec95e71ef01e79bac2ae | [
"Apache-2.0"
] | null | null | null | src/test/cpp/filter/levelmatchfiltertest.cpp | Blaxar/log4cxxNG | 8dfdfa2ab3d2fe598a41ec95e71ef01e79bac2ae | [
"Apache-2.0"
] | null | null | null | src/test/cpp/filter/levelmatchfiltertest.cpp | Blaxar/log4cxxNG | 8dfdfa2ab3d2fe598a41ec95e71ef01e79bac2ae | [
"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 ... | 30.279412 | 82 | 0.741136 | Blaxar |
c7a54ff53495b66fda4b12f683546f16f01ac85f | 1,586 | hpp | C++ | integration/traits.hpp | FMeirinhos/gsl-modules | a638e90bbcfd2573232cb5d398d04a20f4058adb | [
"Unlicense"
] | null | null | null | integration/traits.hpp | FMeirinhos/gsl-modules | a638e90bbcfd2573232cb5d398d04a20f4058adb | [
"Unlicense"
] | null | null | null | integration/traits.hpp | FMeirinhos/gsl-modules | a638e90bbcfd2573232cb5d398d04a20f4058adb | [
"Unlicense"
] | null | null | null | //
// traits.hpp
// gsl-modules
//
// Created by Francisco Meirinhos on 13/01/17.
//
#ifndef traits_hpp
#define traits_hpp
#include <chrono>
#include <tuple>
/*
Stolen from
http://stackoverflow.com/questions/7943525/is-it-possible-to-figure-out-the-parameter-type-and-return-type-of-a-lambda
Traits of lambda func... | 26 | 118 | 0.704918 | FMeirinhos |
c7a63b24eac32b5cbf21d026b3709e15a3e1021d | 521 | cpp | C++ | src/main.cpp | Andrewkf5011/s4.3 | 32ba306f7f8e8fd48def706977b950a355a183b0 | [
"MIT"
] | null | null | null | src/main.cpp | Andrewkf5011/s4.3 | 32ba306f7f8e8fd48def706977b950a355a183b0 | [
"MIT"
] | null | null | null | src/main.cpp | Andrewkf5011/s4.3 | 32ba306f7f8e8fd48def706977b950a355a183b0 | [
"MIT"
] | null | null | null | #include <mbed.h>
#include <C12832.h>
// Using Arduino pin notation
C12832 lcd(D11, D13, D12, D7, D10);
int main()
{
int j=0;
lcd.cls();
lcd.locate(0,0);
lcd.printf("mbed application shield!");
lcd.locate(0,10);
lcd.printf("char %dx%d : %dx%d pixels",
lcd.columns(), lcd.rows(),
... | 20.038462 | 43 | 0.512476 | Andrewkf5011 |
c7a7c12ca1d1623c023f8e49b205ce4514378bfe | 18,660 | hpp | C++ | libs/boost_1_72_0/boost/spirit/home/support/detail/endian/endian.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/spirit/home/support/detail/endian/endian.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/spirit/home/support/detail/endian/endian.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | // Boost endian.hpp header file
// -------------------------------------------------------//
// (C) Copyright Darin Adler 2000
// (C) Copyright Beman Dawes 2006, 2009
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
// See library home page at http://ww... | 32.11704 | 90 | 0.710021 | henrywarhurst |
c7aa1aad149753749241a39cced2f20c736c6a8d | 1,839 | cpp | C++ | TESTS/mbed_drivers/timeout/main.cpp | nachocarballeda/mbed-os | fc1836545dcc2fc86f03b01292b62bf2089f67c3 | [
"Apache-2.0"
] | 3 | 2018-03-13T13:42:12.000Z | 2019-05-17T11:48:04.000Z | TESTS/mbed_drivers/timeout/main.cpp | nachocarballeda/mbed-os | fc1836545dcc2fc86f03b01292b62bf2089f67c3 | [
"Apache-2.0"
] | 1 | 2017-02-20T10:48:02.000Z | 2017-02-21T11:34:16.000Z | TESTS/mbed_drivers/timeout/main.cpp | nachocarballeda/mbed-os | fc1836545dcc2fc86f03b01292b62bf2089f67c3 | [
"Apache-2.0"
] | 8 | 2018-01-28T02:23:18.000Z | 2021-02-26T01:15:55.000Z | /*
* Copyright (c) 2013-2016, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* 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... | 27.044118 | 88 | 0.710169 | nachocarballeda |
c7ab178e0ff3dfece38b430bb52c93b657ef8e5c | 9,378 | cc | C++ | ithwrapper/ith/cli/pipe.cc | wareya/chiitrans | 7a392a304e6315cb4ecf836804512bb972090e8b | [
"Apache-2.0"
] | 71 | 2015-01-06T03:06:25.000Z | 2022-03-02T17:47:28.000Z | ithwrapper/ith/cli/pipe.cc | holemcross/chiitrans | c5e9aba5f555b1f81792d1dd4864b7efeb12f823 | [
"Apache-2.0"
] | 7 | 2015-01-14T15:08:41.000Z | 2018-11-20T18:18:15.000Z | ithwrapper/ith/cli/pipe.cc | holemcross/chiitrans | c5e9aba5f555b1f81792d1dd4864b7efeb12f823 | [
"Apache-2.0"
] | 35 | 2015-05-24T02:16:17.000Z | 2022-03-23T18:52:56.000Z | // pipe.cc
// 8/24/2013 jichi
// Branch: ITH_DLL/pipe.cpp, rev 66
// 8/24/2013 TODO: Clean up this file
#ifdef _MSC_VER
# pragma warning (disable:4100) // C4100: unreference formal parameter
#endif // _MSC_VER
#include "cli_p.h"
#include "ith/common/defs.h"
//#include "ith/common/growl.h"
#include "ith/sys/sys.h"
#... | 28.591463 | 115 | 0.621881 | wareya |
c7ac381b26bd3c4eff54f9011e245c0429a1629e | 3,797 | cpp | C++ | android-31/android/renderscript/Matrix4f.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/renderscript/Matrix4f.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/renderscript/Matrix4f.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../JFloatArray.hpp"
#include "./Matrix4f.hpp"
namespace android::renderscript
{
// Fields
// QJniObject forward
Matrix4f::Matrix4f(QJniObject obj) : JObject(obj) {}
// Constructors
Matrix4f::Matrix4f()
: JObject(
"android.renderscript.Matrix4f",
"()V"
) {}
Matrix4f::Matrix4f(JFloatArra... | 17.026906 | 111 | 0.629708 | YJBeetle |
c7acf1ea6fe29506547e60ad88931fc236be01e8 | 542 | cc | C++ | Code/0003-longest-substring-without-repeating-characters.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 2 | 2019-12-06T14:08:57.000Z | 2020-01-15T15:25:32.000Z | Code/0003-longest-substring-without-repeating-characters.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 1 | 2020-01-15T16:29:16.000Z | 2020-01-26T12:40:13.000Z | Code/0003-longest-substring-without-repeating-characters.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | null | null | null | class Solution {
public:
int lengthOfLongestSubstring(string s) {
int n = s.length();
if (n < 2) {
return n;
}
int result = 1;
int begin = 0;
unordered_map<char, int> m;
for (int i = 0; i < n; i++) {
if (m.find(s[i]) != m.end() && m[s[i... | 25.809524 | 62 | 0.394834 | SMartQi |
c7adf89a0c49e30a3ce0006128a101253326e2ec | 6,061 | hpp | C++ | include/GlobalNamespace/BeatmapDataLoader_SpecialEventsFilter.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/BeatmapDataLoader_SpecialEventsFilter.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/BeatmapDataLoader_SpecialEventsFilter.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: BeatmapDataLoader
#include "GlobalN... | 64.478723 | 286 | 0.804983 | RedBrumbler |
c7af199c5ce7c8ebff0e74ee021e01781b89afca | 811 | cc | C++ | 1663/5028028_AC_125MS_452K.cc | twilightgod/twilight-poj-solution | 3af3f0fb0c5f350cdf6421b943c6df02ee3f2f82 | [
"Apache-2.0"
] | 21 | 2015-05-26T10:18:12.000Z | 2021-06-01T09:39:47.000Z | 1663/5028028_AC_125MS_452K.cc | twilightgod/twilight-poj-solution | 3af3f0fb0c5f350cdf6421b943c6df02ee3f2f82 | [
"Apache-2.0"
] | null | null | null | 1663/5028028_AC_125MS_452K.cc | twilightgod/twilight-poj-solution | 3af3f0fb0c5f350cdf6421b943c6df02ee3f2f82 | [
"Apache-2.0"
] | 8 | 2015-09-30T08:41:15.000Z | 2020-03-11T03:49:42.000Z | /**********************************************************************
* Online Judge : POJ
* Problem Title : Number Steps
* ID : 1663
* Date : 4/22/2009
* Time : 20:34:57
* Computer Name : EVERLASTING-PC
******************************************... | 13.516667 | 72 | 0.378545 | twilightgod |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.