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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e6f3d82d4e69185b69974f67c5fc40192e604283 | 1,001 | ipp | C++ | inanity-math-script.ipp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 26 | 2015-04-22T05:25:25.000Z | 2020-11-15T11:07:56.000Z | inanity-math-script.ipp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 2 | 2015-01-05T10:41:27.000Z | 2015-01-06T20:46:11.000Z | inanity-math-script.ipp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 5 | 2016-08-02T11:13:57.000Z | 2018-10-26T11:19:27.000Z | #include "math/script.ipp"
BEGIN_INANITY_SCRIPT
template Math::xvec<float, 2> ConvertFromScript<META_PROVIDER, Math::xvec<float, 2> >(ptr<Any> value);
template Math::xvec<float, 3> ConvertFromScript<META_PROVIDER, Math::xvec<float, 3> >(ptr<Any> value);
template Math::xvec<float, 4> ConvertFromScript<META_PROVIDER, M... | 55.611111 | 131 | 0.741259 | quyse |
e6f65aa914f6f8f7c15cd7add300a63e782aaa04 | 10,713 | hh | C++ | core/include/si_units.hh | cepsdev/ceps | badd1ac7582034f9b4f000ee93828bd584cf858b | [
"MIT"
] | 3 | 2018-09-11T11:40:24.000Z | 2021-07-02T10:24:36.000Z | core/include/si_units.hh | cepsdev/ceps | badd1ac7582034f9b4f000ee93828bd584cf858b | [
"MIT"
] | null | null | null | core/include/si_units.hh | cepsdev/ceps | badd1ac7582034f9b4f000ee93828bd584cf858b | [
"MIT"
] | null | null | null | /**
The MIT License (MIT)
Copyright (c) 2014 The authors of ceps
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... | 25.876812 | 144 | 0.659666 | cepsdev |
e6f9fc00040ee9306d6c4c31b64e970c1f82be45 | 1,569 | cpp | C++ | test/return.cpp | Romop5/procgen | 35d6e8e81b6fa0597b8a79863c1552edaa0219a0 | [
"MIT"
] | 5 | 2018-02-19T21:25:15.000Z | 2018-05-11T19:06:51.000Z | test/return.cpp | Romop5/procgen | 35d6e8e81b6fa0597b8a79863c1552edaa0219a0 | [
"MIT"
] | null | null | null | test/return.cpp | Romop5/procgen | 35d6e8e81b6fa0597b8a79863c1552edaa0219a0 | [
"MIT"
] | null | null | null | #include "catch.hpp"
#include <procgen/interpret/typereg.h>
#include <iostream>
#include <procgen/interpret/variablereg.h>
#include <procgen/interpret/functionreg.h>
#include <procgen/interpret/std.h>
#include <procgen/interpret/statement.h>
using namespace std;
TEST_CASE("Testing return")
{
std::shared_ptr<TypeRegis... | 25.721311 | 104 | 0.679414 | Romop5 |
e6fd01d649d5aea04e3d031048e94fba535005b0 | 16,253 | cpp | C++ | Cores/Mednafen/mednafen/src/FileStream.cpp | ianclawson/Provenance | e9cc8c57f41a4d122a998cf53ffd69b1513d4205 | [
"BSD-3-Clause"
] | 3,459 | 2015-01-07T14:07:09.000Z | 2022-03-25T03:51:10.000Z | Cores/Mednafen/mednafen/src/FileStream.cpp | ianclawson/Provenance | e9cc8c57f41a4d122a998cf53ffd69b1513d4205 | [
"BSD-3-Clause"
] | 1,046 | 2018-03-24T17:56:16.000Z | 2022-03-23T08:13:09.000Z | Cores/Mednafen/mednafen/src/FileStream.cpp | ianclawson/Provenance | e9cc8c57f41a4d122a998cf53ffd69b1513d4205 | [
"BSD-3-Clause"
] | 549 | 2015-01-07T14:07:15.000Z | 2022-01-07T16:13:05.000Z | /******************************************************************************/
/* Mednafen - Multi-system Emulator */
/******************************************************************************/
/* FileStream.cpp:
** Copyright (C) 2010-2020 Mednafen Team
**
** This progr... | 20.704459 | 197 | 0.646404 | ianclawson |
fc03f6fb129865f2f4bdbafd399da71574f96118 | 824 | cpp | C++ | Part_PoisonerState.cpp | sknjpn/SyLife | b215cba87096db52ac63931db64c967f906b9172 | [
"MIT"
] | 5 | 2022-01-05T10:04:40.000Z | 2022-01-11T13:23:43.000Z | Part_PoisonerState.cpp | sknjpn/SyLife | b215cba87096db52ac63931db64c967f906b9172 | [
"MIT"
] | 1 | 2022-01-05T10:51:42.000Z | 2022-01-05T13:25:41.000Z | Part_PoisonerState.cpp | sknjpn/SyLife | b215cba87096db52ac63931db64c967f906b9172 | [
"MIT"
] | null | null | null | #include "Part_PoisonerState.h"
#include "CellState.h"
#include "PartConfig.h"
#include "Part_PoisonerAsset.h"
#include "World.h"
Part_PoisonerState::Part_PoisonerState(
const std::shared_ptr<PartConfig>& partConfig)
: PartState(partConfig)
, m_Part_PoisonerAsset(std::dynamic_pointer_cast<Part_PoisonerAss... | 26.580645 | 105 | 0.731796 | sknjpn |
fc0c829048642a1c637544ee8c823b93997f100d | 5,039 | cpp | C++ | core/common/mp4.cpp | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | 28 | 2017-04-30T13:56:13.000Z | 2022-03-20T06:54:37.000Z | core/common/mp4.cpp | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | 72 | 2017-04-25T03:42:58.000Z | 2021-12-04T06:35:28.000Z | core/common/mp4.cpp | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | 12 | 2017-04-16T06:25:24.000Z | 2021-07-07T13:28:27.000Z | // ------------------------------------------------
// File : mp4.cpp
//
// (c) 2002-3 peercast.org
// ------------------------------------------------
// 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 Fou... | 30.539394 | 81 | 0.538996 | plonk |
fc0d3b745c081899338dc04936f482a165cbca9f | 654 | cpp | C++ | Chapter4/Practice/1097.cpp | flics04/XXXASYBT_CppBase | 0086df68497197f40286889b18f2d8c28eb833bb | [
"MIT"
] | 1 | 2022-02-13T02:22:39.000Z | 2022-02-13T02:22:39.000Z | Chapter4/Practice/1097.cpp | flics04/XXXASYBT_CppBase | 0086df68497197f40286889b18f2d8c28eb833bb | [
"MIT"
] | null | null | null | Chapter4/Practice/1097.cpp | flics04/XXXASYBT_CppBase | 0086df68497197f40286889b18f2d8c28eb833bb | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int a, b, c;
char op;
cin >> a >> b >> op >> c;
if (c == 1) {
for (int i = 1; i <= a; ++i) {
for (int j = 1; j <= b; ++j)
cout << op;
cout << endl;
}
} else {
for (int i = 1; i <=... | 19.818182 | 44 | 0.299694 | flics04 |
fc1433ce57c9ca8e8474ffb7b68806226e35cf6b | 2,459 | cpp | C++ | src/test/remove.cpp | AnotherFoxGuy/settings | cc2fb43ad515e8ff7349e2eb4ddeb3fb96337b1a | [
"MIT"
] | 3 | 2017-09-05T12:25:52.000Z | 2021-06-20T12:50:22.000Z | src/test/remove.cpp | AnotherFoxGuy/settings | cc2fb43ad515e8ff7349e2eb4ddeb3fb96337b1a | [
"MIT"
] | 9 | 2017-04-07T19:03:58.000Z | 2020-08-15T14:02:29.000Z | lib/settings/src/test/remove.cpp | Functioneel/chatterino7 | 81a52498b6850626223f96fa81c3e847c23ee25d | [
"MIT"
] | 3 | 2018-05-27T22:07:09.000Z | 2021-02-12T12:44:46.000Z | #include "test/common.hpp"
using namespace pajlada::Settings;
TEST_CASE("RemoveSetting", "[settings][remove]")
{
Setting<int> a("/rs/a");
Setting<int> b("/rs/b", 5);
Setting<int> c("/rs/c");
// Before loading
REQUIRE(a == 0);
REQUIRE(b == 5);
REQUIRE(c == 0);
REQUIRE(LoadFile("in.rem... | 26.159574 | 78 | 0.605937 | AnotherFoxGuy |
fc17225c589289fb1957a5559c3f4f8a230c661c | 239 | hpp | C++ | utils/include/utils/utils.hpp | Krenol/CppUtils | c2edd9ca845fc6975d4179733b39c4d34a4b0ea0 | [
"MIT"
] | null | null | null | utils/include/utils/utils.hpp | Krenol/CppUtils | c2edd9ca845fc6975d4179733b39c4d34a4b0ea0 | [
"MIT"
] | null | null | null | utils/include/utils/utils.hpp | Krenol/CppUtils | c2edd9ca845fc6975d4179733b39c4d34a4b0ea0 | [
"MIT"
] | null | null | null | #ifndef UTILS_H
#define UTILS_H
#pragma once
#include "../../src/maths.hpp"
#include "../../src/environment.hpp"
#include "../../src/kalman.hpp"
#include "../../src/stoppable_thread.hpp"
#include "../../src/exponential_filter.hpp"
#endif | 21.727273 | 43 | 0.677824 | Krenol |
fc1a307d138f95507c228d5a48cd5c659c49e1b4 | 8,392 | cc | C++ | cpp/import_sstpb.grpc.pb.cc | Xavier1994/kvproto | cd1e088a4e0452ffb021b8985a4fca8dad48120a | [
"Apache-2.0"
] | 3 | 2018-08-31T17:36:42.000Z | 2019-06-17T10:09:36.000Z | cpp/import_sstpb.grpc.pb.cc | Xavier1994/kvproto | cd1e088a4e0452ffb021b8985a4fca8dad48120a | [
"Apache-2.0"
] | null | null | null | cpp/import_sstpb.grpc.pb.cc | Xavier1994/kvproto | cd1e088a4e0452ffb021b8985a4fca8dad48120a | [
"Apache-2.0"
] | 1 | 2018-08-31T17:36:43.000Z | 2018-08-31T17:36:43.000Z | // Generated by the gRPC C++ plugin.
// If you make any local change, they will be lost.
// source: import_sstpb.proto
#include "import_sstpb.pb.h"
#include "import_sstpb.grpc.pb.h"
#include <grpcpp/impl/codegen/async_stream.h>
#include <grpcpp/impl/codegen/async_unary_call.h>
#include <grpcpp/impl/codegen/channel_in... | 58.685315 | 227 | 0.756196 | Xavier1994 |
fc1ac615f646c0ccacd0886779d959469973e661 | 15,845 | cpp | C++ | worldeditor/src/controllers/editorpipeline.cpp | thunder-engine/thunder | 14a70d46532b8b78635835fc05c0ac2f33a12d8b | [
"Apache-2.0"
] | 162 | 2020-09-18T19:42:43.000Z | 2022-03-30T20:27:42.000Z | worldeditor/src/controllers/editorpipeline.cpp | thunder-engine/thunder | 14a70d46532b8b78635835fc05c0ac2f33a12d8b | [
"Apache-2.0"
] | 162 | 2020-10-10T11:16:52.000Z | 2022-03-30T17:09:11.000Z | worldeditor/src/controllers/editorpipeline.cpp | thunder-engine/thunder | 14a70d46532b8b78635835fc05c0ac2f33a12d8b | [
"Apache-2.0"
] | 12 | 2020-10-18T09:16:35.000Z | 2022-01-08T11:23:17.000Z | #include "editorpipeline.h"
#include <commandbuffer.h>
#include <components/camera.h>
#include <components/actor.h>
#include <components/transform.h>
#include <components/renderable.h>
#include <resources/rendertarget.h>
#include <resources/material.h>
#include <resources/mesh.h>
#include <postprocess/postprocessor... | 31.438492 | 117 | 0.61218 | thunder-engine |
fc1b419ab401ca2c663f3ae3f217eaedcae4c95d | 5,518 | cpp | C++ | src/lib/ActionEngine.cpp | romoadri21/boi | deef8e7148b50fbb36886ba4ff491a6c0e18ad67 | [
"BSD-3-Clause"
] | null | null | null | src/lib/ActionEngine.cpp | romoadri21/boi | deef8e7148b50fbb36886ba4ff491a6c0e18ad67 | [
"BSD-3-Clause"
] | null | null | null | src/lib/ActionEngine.cpp | romoadri21/boi | deef8e7148b50fbb36886ba4ff491a6c0e18ad67 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2010, Piet Hein Schouten. All rights reserved.
* This code is licensed under a BSD-style license that can be
* found in the LICENSE file. The license can also be found at:
* http://www.boi-project.org/license
*/
#include "Action.h"
#include "ActionArgs.h"
#include "ActionManager.h"
#include "Actio... | 21.387597 | 80 | 0.577927 | romoadri21 |
fc1bbbf3bc5db609ab18f36c12c2a305b671ccc2 | 2,100 | hpp | C++ | src/Localization/Locale.hpp | ruarq/lmc | 010d0549d01d22cbe9473e92b1aa53b31fa578c5 | [
"MIT"
] | 2 | 2022-02-10T22:17:27.000Z | 2022-02-12T02:11:02.000Z | src/Localization/Locale.hpp | ruarq/lmc | 010d0549d01d22cbe9473e92b1aa53b31fa578c5 | [
"MIT"
] | null | null | null | src/Localization/Locale.hpp | ruarq/lmc | 010d0549d01d22cbe9473e92b1aa53b31fa578c5 | [
"MIT"
] | null | null | null | /**
* @author ruarq
* @date 11.02.2022
*
* Copyright (C) 2022 ruarq
*
* 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... | 25 | 79 | 0.700952 | ruarq |
fc1bbdeda5ebbd4a09c6c59a785ea7d4c0496195 | 4,030 | cpp | C++ | Mode.cpp | adityas129/ECE-150 | 0db483690ad2ce8fe1d5df4994c55bddc7a32569 | [
"MIT"
] | null | null | null | Mode.cpp | adityas129/ECE-150 | 0db483690ad2ce8fe1d5df4994c55bddc7a32569 | [
"MIT"
] | null | null | null | Mode.cpp | adityas129/ECE-150 | 0db483690ad2ce8fe1d5df4994c55bddc7a32569 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////
//
// Your #includes here; make sure you are allowed them ...
//
#include <limits.h>
#include <limits>
//////////////////////////////////////////////////////////////
//
// #includes and function declarations; do not remove
//
#ifndef MARMOSE... | 23.846154 | 84 | 0.505459 | adityas129 |
fc2013168df32668f54d83032bd17f8dd4f76305 | 2,920 | cpp | C++ | BasicRayTracing/material.cpp | GI-Backyard/BasicRayTracing | 4cbcc856c8fb572487ddac6bd3ff369cb90ea721 | [
"MIT"
] | null | null | null | BasicRayTracing/material.cpp | GI-Backyard/BasicRayTracing | 4cbcc856c8fb572487ddac6bd3ff369cb90ea721 | [
"MIT"
] | null | null | null | BasicRayTracing/material.cpp | GI-Backyard/BasicRayTracing | 4cbcc856c8fb572487ddac6bd3ff369cb90ea721 | [
"MIT"
] | null | null | null | //
// material.cpp
// BasicRayTracing
//
// Created by huabingxu on 2019/4/1.
// Copyright © 2019 harrisonxu. All rights reserved.
//
#include "material.h"
inline Vec3 Material::randomInUnitSphere(){
Vec3 p;
do {
p = 2 * Vec3(drand48(), drand48(), drand48()) - Vec3(1, 1, 1);
} while(p.squareLe... | 28.910891 | 105 | 0.613014 | GI-Backyard |
fc234277e81606906fa22cc93e02781ccd6e6101 | 1,840 | cpp | C++ | src/core/RInputEvent.cpp | ouxianghui/ezcam | 195fb402202442b6d035bd70853f2d8c3f615de1 | [
"MIT"
] | 12 | 2021-03-26T03:23:30.000Z | 2021-12-31T10:05:44.000Z | src/core/RInputEvent.cpp | 15831944/ezcam | 195fb402202442b6d035bd70853f2d8c3f615de1 | [
"MIT"
] | null | null | null | src/core/RInputEvent.cpp | 15831944/ezcam | 195fb402202442b6d035bd70853f2d8c3f615de1 | [
"MIT"
] | 9 | 2021-06-23T08:26:40.000Z | 2022-01-20T07:18:10.000Z | /**
* Copyright (c) 2011-2016 by Andrew Mustun. All rights reserved.
*
* This file is part of the QCAD project.
*
* QCAD is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License,... | 27.878788 | 110 | 0.742935 | ouxianghui |
fc2754680b2021158211a8432dbc384ba02f1199 | 2,242 | cpp | C++ | aws-cpp-sdk-securityhub/source/model/AwsEcsServiceDeploymentConfigurationDetails.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-securityhub/source/model/AwsEcsServiceDeploymentConfigurationDetails.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-securityhub/source/model/AwsEcsServiceDeploymentConfigurationDetails.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/securityhub/model/AwsEcsServiceDeploymentConfigurationDetails.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aw... | 23.851064 | 120 | 0.784567 | perfectrecall |
fc2bbea3c32b6e9265156960872ccb5063598363 | 288 | cpp | C++ | Math/Sieve of Eratosthenes (all primes 1 - n).cpp | Hoff22/Notebook | 445e4a0c68cdcf3aad040180bb566cf59225a90d | [
"CC0-1.0"
] | null | null | null | Math/Sieve of Eratosthenes (all primes 1 - n).cpp | Hoff22/Notebook | 445e4a0c68cdcf3aad040180bb566cf59225a90d | [
"CC0-1.0"
] | null | null | null | Math/Sieve of Eratosthenes (all primes 1 - n).cpp | Hoff22/Notebook | 445e4a0c68cdcf3aad040180bb566cf59225a90d | [
"CC0-1.0"
] | null | null | null | vector<int> RangePrimes(int n){
vector<int> v(n+1, 0);
vector<int> primes;
int i = 2;
while(i <= n){
if(v[i] == 0) primes.push_back(i);
if(v[i] == 0 and 1ll*i*i <= n){
int j = i*i;
while(j <= n){
v[j] = 1;
j += i;
}
}
i++;
}
return primes;
} | 16.941176 | 37 | 0.451389 | Hoff22 |
fc2dd3bb7f9cb57cdd541c5eef5d9a7628447369 | 4,670 | cpp | C++ | vox.render/shaderlib/functors/wgsl_pbr_frag.cpp | ArcheGraphics/Arche-cpp | da6770edd4556a920b3f7298f38176107caf7e3a | [
"MIT"
] | 8 | 2022-02-15T12:54:57.000Z | 2022-03-30T16:35:58.000Z | vox.render/shaderlib/functors/wgsl_pbr_frag.cpp | yangfengzzz/DigitalArche | da6770edd4556a920b3f7298f38176107caf7e3a | [
"MIT"
] | null | null | null | vox.render/shaderlib/functors/wgsl_pbr_frag.cpp | yangfengzzz/DigitalArche | da6770edd4556a920b3f7298f38176107caf7e3a | [
"MIT"
] | null | null | null | // Copyright (c) 2022 Feng Yang
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#include "wgsl_pbr_frag.h"
#include <fmt/core.h>
namespace vox {
WGSLPbrFrag::WGSLPbrFrag(const std... | 51.318681 | 168 | 0.681799 | ArcheGraphics |
fc30cc77303f4324b17730366d98fdfb8947353e | 6,648 | cpp | C++ | source/graphics/passes/gbufferpasses.cpp | lukaklar/Khan-Engine | 2496366759649d282d725fa637b25fb1e0d4fdfa | [
"Apache-2.0"
] | null | null | null | source/graphics/passes/gbufferpasses.cpp | lukaklar/Khan-Engine | 2496366759649d282d725fa637b25fb1e0d4fdfa | [
"Apache-2.0"
] | null | null | null | source/graphics/passes/gbufferpasses.cpp | lukaklar/Khan-Engine | 2496366759649d282d725fa637b25fb1e0d4fdfa | [
"Apache-2.0"
] | null | null | null | #include "graphics/precomp.h"
#include "graphics/passes/gbufferpasses.hpp"
#include "graphics/hal/physicalrenderpass.hpp"
#include "graphics/hal/pixelformats.hpp"
#include "graphics/hal/queuetype.hpp"
#include "graphics/hal/renderbackend.hpp"
#include "graphics/hal/rendercontext.hpp"
#include "graphics/hal/renderdevice... | 46.48951 | 190 | 0.799639 | lukaklar |
fc342e1dd098bc2980ebab3c7d87c9c536631f06 | 362 | cpp | C++ | Plugins/sdk/main.cpp | rofl0r/ags | 23fcd2bef1c9b0ef61d849b0f78a2b4f5e9b712d | [
"Artistic-2.0"
] | 2 | 2020-06-26T11:40:27.000Z | 2021-06-14T15:58:09.000Z | Plugins/sdk/main.cpp | lunixbochs/ags | 99a6a3a7b4eb9f81af049953f1faaf32063f7d8f | [
"Artistic-2.0"
] | null | null | null | Plugins/sdk/main.cpp | lunixbochs/ags | 99a6a3a7b4eb9f81af049953f1faaf32063f7d8f | [
"Artistic-2.0"
] | null | null | null |
#define THIS_IS_THE_PLUGIN
#include "../../../Common/agsplugin.h"
void AGS_EngineStartup(IAGSEngine *lpEngine)
{
}
void AGS_EngineShutdown()
{
}
int AGS_EngineOnEvent(int event, int data)
{
return 0;
}
int AGS_EngineDebugHook(const char *scriptName, int lineNum, int reserved)
{
return 0;
}
void AGS_EngineInit... | 13.923077 | 74 | 0.732044 | rofl0r |
fc359d95ec6559d89a7caec8e36cf8668886423d | 41,888 | cpp | C++ | test/si.test.cpp | Ram-Z/si | dd867b7ba751b9695390e906fddfc43c2ea84fe5 | [
"MIT"
] | null | null | null | test/si.test.cpp | Ram-Z/si | dd867b7ba751b9695390e906fddfc43c2ea84fe5 | [
"MIT"
] | null | null | null | test/si.test.cpp | Ram-Z/si | dd867b7ba751b9695390e906fddfc43c2ea84fe5 | [
"MIT"
] | null | null | null | #include <catch.hpp>
#include "si/si.hpp"
#include <type_traits>
// for testing purposes we declare a convenience type with some sane defaults
template<typename _Rep = int, typename _Ratio = std::ratio<1>, typename _Base = si::detail::base<>>
using test_unit = si::unit<_Rep, _Ratio, _Base>;
TEST_CASE("Common Type",... | 44.372881 | 123 | 0.615045 | Ram-Z |
fc3cf3bce5f6c5847d231092055a36001093d540 | 427 | cc | C++ | kattis/drmmessages.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 506 | 2018-08-22T10:30:38.000Z | 2022-03-31T10:01:49.000Z | kattis/drmmessages.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 13 | 2019-08-07T18:31:18.000Z | 2020-12-15T21:54:41.000Z | kattis/drmmessages.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 234 | 2018-08-06T17:11:41.000Z | 2022-03-26T10:56:42.000Z | // https://open.kattis.com/problems/drmmessages
#include <iostream>
#include <vector>
using namespace std;
typedef vector<int> vi;
int main() {
string s;
cin >> s;
int n = s.size() / 2;
vi a(n), b(n);
int c = 0, d = 0;
for (int i = 0; i < n; i++) {
a[i] = s[i] - 'A';
b[i] = s[i + n] - 'A';
c += a[i];
d... | 17.791667 | 76 | 0.480094 | Ashindustry007 |
fc4259d5ee8548f92fde39cca761e425540c606b | 2,048 | hpp | C++ | VSDataReduction/VSRingBackgroundAnalysis.hpp | sfegan/ChiLA | 916bdd95348c2df2ecc736511d5f5b2bfb4a831e | [
"BSD-3-Clause"
] | 1 | 2018-04-17T14:03:36.000Z | 2018-04-17T14:03:36.000Z | VSDataReduction/VSRingBackgroundAnalysis.hpp | sfegan/ChiLA | 916bdd95348c2df2ecc736511d5f5b2bfb4a831e | [
"BSD-3-Clause"
] | null | null | null | VSDataReduction/VSRingBackgroundAnalysis.hpp | sfegan/ChiLA | 916bdd95348c2df2ecc736511d5f5b2bfb4a831e | [
"BSD-3-Clause"
] | null | null | null | //-*-mode:c++; mode:font-lock;-*-
/*! \file VSRingBackgroundAnalysis.hpp
Integral analysis with ring background algorithm.
\author Matthew Wood \n
UCLA \n
mdwood@astro.ucla.edu \n
\version $Revision: 3.5 $
\date 07/29/2007
... | 28.444444 | 78 | 0.680176 | sfegan |
fc48a864d601e5493eebe56cecdce41fc5d48fc5 | 147 | cpp | C++ | test/llvm_test_code/summary_generation/summary_6.cpp | flix-/phasar | 85b30c329be1766136c8cbc6f925cb4fd1bafd27 | [
"BSL-1.0"
] | 581 | 2018-06-10T10:37:55.000Z | 2022-03-30T14:56:53.000Z | test/llvm_test_code/summary_generation/summary_6.cpp | flix-/phasar | 85b30c329be1766136c8cbc6f925cb4fd1bafd27 | [
"BSL-1.0"
] | 172 | 2018-06-13T12:33:26.000Z | 2022-03-26T07:21:41.000Z | test/llvm_test_code/summary_generation/summary_6.cpp | flix-/phasar | 85b30c329be1766136c8cbc6f925cb4fd1bafd27 | [
"BSL-1.0"
] | 137 | 2018-06-10T10:31:14.000Z | 2022-03-06T11:53:56.000Z | int square(int i) {
return i * i;
}
int main() {
int i = 1;
int j = 2;
int k = 3;
int sum = i + j + k;
int call = square(sum);
return 0;
}
| 11.307692 | 24 | 0.510204 | flix- |
fc4e244734f81340f53f900871712b60f7807eed | 278 | cpp | C++ | Source/Kingsguard/Private/KGWeaponStateActive.cpp | FashGek/KG | dc63ac86fcc515a294e0ab33bce603610cebf3e0 | [
"Apache-2.0"
] | null | null | null | Source/Kingsguard/Private/KGWeaponStateActive.cpp | FashGek/KG | dc63ac86fcc515a294e0ab33bce603610cebf3e0 | [
"Apache-2.0"
] | null | null | null | Source/Kingsguard/Private/KGWeaponStateActive.cpp | FashGek/KG | dc63ac86fcc515a294e0ab33bce603610cebf3e0 | [
"Apache-2.0"
] | null | null | null |
#include "Kingsguard.h"
#include "KGWeaponState.h"
#include "KGWeaponStateActive.h"
void UKGWeaponStateActive::BeginState(const UKGWeaponState* PrevState)
{
}
bool UKGWeaponStateActive::BeginFiringSequence(uint8 FireModeNum, bool bClientFired)
{
// TDOO
return false;
}
| 15.444444 | 84 | 0.784173 | FashGek |
fc517f92d5bcddbcc72e731e1c8b786c8f845232 | 1,525 | hpp | C++ | SDK/ARKSurvivalEvolved_ProjTropeFlakCannon_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_ProjTropeFlakCannon_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_ProjTropeFlakCannon_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_ProjTropeFlakCannon_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//--------------------------------------------------... | 30.5 | 152 | 0.60918 | 2bite |
fc52ddb5cdfb3ed8fd2985d152e25c74f229fc83 | 238 | cpp | C++ | src/_cmsis_rtos/test/common/testutils.cpp | ombre5733/weos | 2c3edef042fa80baa7c8fb968ba3104b7119cf2d | [
"BSD-2-Clause"
] | 11 | 2015-10-06T21:00:30.000Z | 2021-07-27T05:54:44.000Z | src/_cmsis_rtos/test/common/testutils.cpp | ombre5733/weos | 2c3edef042fa80baa7c8fb968ba3104b7119cf2d | [
"BSD-2-Clause"
] | null | null | null | src/_cmsis_rtos/test/common/testutils.cpp | ombre5733/weos | 2c3edef042fa80baa7c8fb968ba3104b7119cf2d | [
"BSD-2-Clause"
] | 1 | 2015-10-03T03:51:28.000Z | 2015-10-03T03:51:28.000Z | #include "testutils.hpp"
std::uint32_t random()
{
// Produce a pseudo-random number in the range [1, 2147483646].
static std::uint32_t x = 1;
x = (static_cast<std::uint64_t>(x) * 16807UL) % 2147483647UL;
return x - 1;
}
| 21.636364 | 67 | 0.642857 | ombre5733 |
fc5667649f8d7768104d8884d22e49f3c8c429eb | 620 | hpp | C++ | src/common/timer.hpp | DarXe/Logus | af80cdcaccde3c536ef2b47d36912d9a505f7ef6 | [
"0BSD"
] | 6 | 2019-06-11T20:09:01.000Z | 2021-05-28T01:18:27.000Z | src/common/timer.hpp | DarXe/Logus | af80cdcaccde3c536ef2b47d36912d9a505f7ef6 | [
"0BSD"
] | 7 | 2019-06-14T20:28:31.000Z | 2020-08-11T14:51:03.000Z | src/common/timer.hpp | DarXe/Logus | af80cdcaccde3c536ef2b47d36912d9a505f7ef6 | [
"0BSD"
] | 1 | 2020-11-07T05:28:23.000Z | 2020-11-07T05:28:23.000Z | // Copyright © 2020 Niventill
// This file is licensed under ISC License. See "LICENSE" in the top level directory for more info.
#ifndef _TIMER_INCLUDED_
#define _TIMER_INCLUDED_
//standard libraries
#include <string>
#include <ctime>
class Timer
{
public:
int timer;
bool running;
bool loaded;
Timer();
... | 17.222222 | 99 | 0.696774 | DarXe |
fc5a20a0bff98ad7d789a139dd9534f4b0763581 | 7,658 | cpp | C++ | src/vrcvi/vrcvi.cpp | cam900/vgsound_emu | 4b46209e3de0dcd1c5c72d57f76b01a0f5fd2012 | [
"Zlib"
] | 1 | 2022-03-27T02:20:20.000Z | 2022-03-27T02:20:20.000Z | src/vrcvi/vrcvi.cpp | cam900/vgsound_emu | 4b46209e3de0dcd1c5c72d57f76b01a0f5fd2012 | [
"Zlib"
] | null | null | null | src/vrcvi/vrcvi.cpp | cam900/vgsound_emu | 4b46209e3de0dcd1c5c72d57f76b01a0f5fd2012 | [
"Zlib"
] | null | null | null | /*
License: Zlib
see https://github.com/cam900/vgsound_emu/blob/main/LICENSE for more details
Copyright holder(s): cam900
Konami VRC VI sound emulation core
It's one of NES mapper with built-in sound chip, and also one of 2 Konami VRCs with this
feature. (rest one has OPLL derivatives.)
It's also DACless li... | 22.523529 | 96 | 0.648472 | cam900 |
fc5bd7c307b57b2b2923218e862c7c357df87a43 | 6,636 | cpp | C++ | cs475/proj1/main.cpp | franzmk/Oregon-State-Schoolwork | 20f8a72e78ec4baa131add2dda8026cd47f36188 | [
"MIT"
] | null | null | null | cs475/proj1/main.cpp | franzmk/Oregon-State-Schoolwork | 20f8a72e78ec4baa131add2dda8026cd47f36188 | [
"MIT"
] | null | null | null | cs475/proj1/main.cpp | franzmk/Oregon-State-Schoolwork | 20f8a72e78ec4baa131add2dda8026cd47f36188 | [
"MIT"
] | null | null | null | //Max Franz
//To compile, please use: g++ -o proj main.cpp -lm -fopenmp
#include <stdio.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <omp.h>
// print debugging messages?
#ifndef DEBUG
#define DEBUG false
#endif
// setting the number of threads:
#ifnd... | 29.757848 | 100 | 0.601718 | franzmk |
fc5d1d6d3a2abe0b028b556e4ca2b637097f48d3 | 11,424 | cpp | C++ | c2c/Analyser/TypeResolver.cpp | Dandigit/c2compiler | 28d04225068f879243e82912d23ca7d593d1eb70 | [
"Apache-2.0"
] | null | null | null | c2c/Analyser/TypeResolver.cpp | Dandigit/c2compiler | 28d04225068f879243e82912d23ca7d593d1eb70 | [
"Apache-2.0"
] | null | null | null | c2c/Analyser/TypeResolver.cpp | Dandigit/c2compiler | 28d04225068f879243e82912d23ca7d593d1eb70 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2013-2018 Bas van den Berg
*
* 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 agr... | 31.733333 | 124 | 0.607756 | Dandigit |
fc5d841f755348490f474fc7bf8ce062fa279770 | 69 | cxx | C++ | src/miga_core/excp/unImplExcp.cxx | nikoqw/miga | aad15418c01c1f6bc2ecc3a5e0ebb653f06a6f04 | [
"MIT"
] | null | null | null | src/miga_core/excp/unImplExcp.cxx | nikoqw/miga | aad15418c01c1f6bc2ecc3a5e0ebb653f06a6f04 | [
"MIT"
] | null | null | null | src/miga_core/excp/unImplExcp.cxx | nikoqw/miga | aad15418c01c1f6bc2ecc3a5e0ebb653f06a6f04 | [
"MIT"
] | null | null | null | #include "unImplExcp.h"
using namespace noname;
IMP_EXCP(unImplExcp) | 17.25 | 23 | 0.811594 | nikoqw |
fc689a4667c9293a640cd6e1921f26cb36efad8f | 13,658 | cpp | C++ | Arduino/snapshots/20151015-06170e58fd28979795d3502611093af5a6ad77f0-V0p2-Arduino-REV1-20151015-BH-DHW/V0p2_Main/AltMain.cpp | opentrv/opentrv-OpenTRV-Arduino-V0p2 | 746753c88ed426c35ee91fa8933264e8bf2529b5 | [
"Apache-2.0"
] | 2 | 2016-11-05T09:59:06.000Z | 2018-12-10T17:33:32.000Z | Arduino/snapshots/20151015-06170e58fd28979795d3502611093af5a6ad77f0-V0p2-Arduino-REV1-20151015-BH-DHW/V0p2_Main/AltMain.cpp | opentrv/opentrv-OpenTRV-Arduino-V0p2 | 746753c88ed426c35ee91fa8933264e8bf2529b5 | [
"Apache-2.0"
] | 2 | 2017-01-12T14:48:13.000Z | 2017-03-13T19:21:49.000Z | Arduino/snapshots/20151015-06170e58fd28979795d3502611093af5a6ad77f0-V0p2-Arduino-REV1-20151015-BH-DHW/V0p2_Main/AltMain.cpp | opentrv/opentrv-OpenTRV-Arduino-V0p2 | 746753c88ed426c35ee91fa8933264e8bf2529b5 | [
"Apache-2.0"
] | 11 | 2016-08-15T10:23:09.000Z | 2021-09-10T12:48:31.000Z | /*
The OpenTRV project licenses this file to you
under the Apache Licence, Version 2.0 (the "Licence");
you may not use this file except in compliance
with the Licence. You may obtain a copy of the Licence at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
softwar... | 30.970522 | 133 | 0.698492 | opentrv |
fc6a7692f860b3c05ba53ea172bb63ea0f2da9e7 | 9,755 | hpp | C++ | Programming Guide/Headers/Siv3D/Texture.hpp | Reputeless/Siv3D-Reference | d58e92885241d11612007fb9187ce0289a7ee9cb | [
"MIT"
] | 38 | 2016-01-14T13:51:13.000Z | 2021-12-29T01:49:30.000Z | Programming Guide/Headers/Siv3D/Texture.hpp | Reputeless/Siv3D-Reference | d58e92885241d11612007fb9187ce0289a7ee9cb | [
"MIT"
] | null | null | null | Programming Guide/Headers/Siv3D/Texture.hpp | Reputeless/Siv3D-Reference | d58e92885241d11612007fb9187ce0289a7ee9cb | [
"MIT"
] | 16 | 2016-01-15T11:07:51.000Z | 2021-12-29T01:49:37.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (C) 2008-2016 Ryo Suzuki
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include <memory>
# include "Fwd.hpp"
# include "Handle.hpp"
# include "Prop... | 21.486784 | 126 | 0.598052 | Reputeless |
fc6e170614bf94bdf518a254ca5110705a8e99f4 | 10,481 | cpp | C++ | lib/SemanticAnalysis/ConvertPredicate.cpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 80 | 2015-02-19T21:38:57.000Z | 2016-05-25T06:53:12.000Z | lib/SemanticAnalysis/ConvertPredicate.cpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 8 | 2015-02-20T09:47:20.000Z | 2015-11-13T07:49:17.000Z | lib/SemanticAnalysis/ConvertPredicate.cpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 6 | 2015-02-20T11:26:19.000Z | 2016-04-13T14:30:39.000Z | #include <assert.h>
#include <stdexcept>
#include <string>
#include <locic/AST.hpp>
#include <locic/AST/Type.hpp>
#include <locic/Debug.hpp>
#include <locic/Frontend/OptionalDiag.hpp>
#include <locic/SemanticAnalysis/AliasTypeResolver.hpp>
#include <locic/SemanticAnalysis/Context.hpp>
#include <locic/SemanticAnalysi... | 33.592949 | 125 | 0.660624 | scross99 |
fc70b55f1a27115645aef6aba42607c16eae974f | 666 | cpp | C++ | C++/67 Add Binary.cpp | wr786/Key-to-LeetCode | edc1c1ec5ee9c268422cd857e27e5b9fbfae6fee | [
"Apache-2.0"
] | 4 | 2020-01-12T01:20:42.000Z | 2020-10-11T07:24:31.000Z | C++/67 Add Binary.cpp | wr786/Key-to-LeetCode | edc1c1ec5ee9c268422cd857e27e5b9fbfae6fee | [
"Apache-2.0"
] | null | null | null | C++/67 Add Binary.cpp | wr786/Key-to-LeetCode | edc1c1ec5ee9c268422cd857e27e5b9fbfae6fee | [
"Apache-2.0"
] | 1 | 2021-09-14T14:14:55.000Z | 2021-09-14T14:14:55.000Z | class Solution {
public:
string addBinary(string a, string b) {
int la = a.length(), lb = b.length();
if(la < lb) {
swap(a, b);
swap(la, lb);
}
int upDigit = 0;
for(int i=1; i<=lb; i++) {
a[la-i] = a[la-i]-'0' + b[lb-i]-'0' + upDigit;
... | 25.615385 | 58 | 0.342342 | wr786 |
fc74e37e604455f0233fdf6730ce285673c50182 | 3,323 | hpp | C++ | include/board.hpp | linasnikis/osshs-bootloader | efb87797681ddf24a6a767a53a9a1c3abe31ba15 | [
"MIT"
] | null | null | null | include/board.hpp | linasnikis/osshs-bootloader | efb87797681ddf24a6a767a53a9a1c3abe31ba15 | [
"MIT"
] | null | null | null | include/board.hpp | linasnikis/osshs-bootloader | efb87797681ddf24a6a767a53a9a1c3abe31ba15 | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2019 Linas Nikiperavicius
*
* 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, c... | 34.257732 | 87 | 0.736082 | linasnikis |
fc78be5af5827d0f482dd33d251474b047780643 | 541 | cc | C++ | AdcEval.cc | devel0/arduino-scope | 611e711a602d85a191df71a9fa5c32aa1b5ef785 | [
"MIT"
] | null | null | null | AdcEval.cc | devel0/arduino-scope | 611e711a602d85a191df71a9fa5c32aa1b5ef785 | [
"MIT"
] | null | null | null | AdcEval.cc | devel0/arduino-scope | 611e711a602d85a191df71a9fa5c32aa1b5ef785 | [
"MIT"
] | null | null | null | #include "AdcEval.h"
ADCEval::ADCEval(int adcValueMin, double voltageMin, int adcValueMax, double voltageMax)
{
this->adcValueMin = adcValueMin;
this->voltageMin = voltageMin;
this->adcValueMax = adcValueMax;
this->voltageMax = voltageMax;
}
double ADCEval::GetVoltage(int adc)
{
return ((double)(a... | 28.473684 | 107 | 0.713494 | devel0 |
fc796b8c1dd8513a9bd5902bfaa2280c97e0f661 | 649 | hpp | C++ | include/Jam/Entity.hpp | DrJonki/Kajak-Games-Finlandia-Jam | 7c5e44c11ec5a3edbbf4ae006fab4fd5921141e7 | [
"MIT"
] | null | null | null | include/Jam/Entity.hpp | DrJonki/Kajak-Games-Finlandia-Jam | 7c5e44c11ec5a3edbbf4ae006fab4fd5921141e7 | [
"MIT"
] | null | null | null | include/Jam/Entity.hpp | DrJonki/Kajak-Games-Finlandia-Jam | 7c5e44c11ec5a3edbbf4ae006fab4fd5921141e7 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
namespace sf
{
class RenderTarget;
}
namespace jam
{
class Entity
{
friend class Layer;
public:
Entity();
virtual ~Entity() = 0;
void erase();
bool isErased() const;
void setActive(const bool active);
bool isActive() const;
void setID(con... | 12.72549 | 48 | 0.631741 | DrJonki |
fc8b441b40d868be6a4c32d00179d5c586e4e7f9 | 2,013 | hh | C++ | EvtGenModels/EvtTauHadnu.hh | qdcampagna/BTODSTARLNUNP_EVTGEN_Model | 9623a0ffe2625450a1228a80d6baae74ed6c0965 | [
"CC0-1.0"
] | null | null | null | EvtGenModels/EvtTauHadnu.hh | qdcampagna/BTODSTARLNUNP_EVTGEN_Model | 9623a0ffe2625450a1228a80d6baae74ed6c0965 | [
"CC0-1.0"
] | null | null | null | EvtGenModels/EvtTauHadnu.hh | qdcampagna/BTODSTARLNUNP_EVTGEN_Model | 9623a0ffe2625450a1228a80d6baae74ed6c0965 | [
"CC0-1.0"
] | null | null | null |
/***********************************************************************
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
* *
* This file is part of EvtGen. *
* ... | 37.277778 | 78 | 0.50919 | qdcampagna |
fc8bebf1378e0b19e0c650f080b616ca8dbbc733 | 421 | cpp | C++ | 0006.cpp | excript/curso_cpp | 070d0bd1163c1252b7bf736fedb3370208c30811 | [
"CC0-1.0"
] | 1 | 2020-08-01T07:03:32.000Z | 2020-08-01T07:03:32.000Z | 0006.cpp | excript/curso_cpp | 070d0bd1163c1252b7bf736fedb3370208c30811 | [
"CC0-1.0"
] | 1 | 2020-08-01T07:04:27.000Z | 2020-08-01T07:04:27.000Z | 0006.cpp | excript/curso_cpp | 070d0bd1163c1252b7bf736fedb3370208c30811 | [
"CC0-1.0"
] | null | null | null | #include <iostream>
using namespace std;
/*====================================
* eXcript.com
* fb.com/eXcript
* ====================================*/
/*
* sdafasd asdfasdfasf asdfas
* asfasdfasd asdfasd sdfasdf asdfasdf sf
* asdfasd asdfasd
*
*
* cout << "ola";
*/
int main() {
cout << "dfsa";... | 18.304348 | 80 | 0.513064 | excript |
47595dcbd31e30b569b8bffdc80fdd3eb39ba341 | 2,167 | cpp | C++ | ewk/unittest/utc_blink_ewk_view_quota_permission_request_callback_set_func.cpp | Jabawack/chromium-efl | 6d3a3accc8afba0aa0eff6461eb5c83138172e6e | [
"BSD-3-Clause"
] | 9 | 2015-04-09T20:22:08.000Z | 2021-03-17T08:34:56.000Z | ewk/unittest/utc_blink_ewk_view_quota_permission_request_callback_set_func.cpp | Jabawack/chromium-efl | 6d3a3accc8afba0aa0eff6461eb5c83138172e6e | [
"BSD-3-Clause"
] | 2 | 2015-02-04T13:41:12.000Z | 2015-05-25T14:00:40.000Z | ewk/unittest/utc_blink_ewk_view_quota_permission_request_callback_set_func.cpp | isabella232/chromium-efl | db2d09aba6498fb09bbea1f8440d071c4b0fde78 | [
"BSD-3-Clause"
] | 14 | 2015-02-12T16:20:47.000Z | 2022-01-20T10:36:26.000Z | // Copyright 2014 Samsung Electronics. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "utc_blink_ewk_base.h"
#define SAMPLE_HTML_FILE ("/ewk_view/quota_ask.html")
class utc_blink_ewk_view_quota_permission_request_callback_... | 37.362069 | 107 | 0.71712 | Jabawack |
475e071f4d162379a8ef21b9775c80d76e34f52d | 3,394 | cpp | C++ | hardware/pendulum_hardware/src/PendulumHardware.cpp | pdsherman/pendulum | ed3e708e8cd66c1a7d5282110b4ceb94492c460f | [
"MIT"
] | null | null | null | hardware/pendulum_hardware/src/PendulumHardware.cpp | pdsherman/pendulum | ed3e708e8cd66c1a7d5282110b4ceb94492c460f | [
"MIT"
] | null | null | null | hardware/pendulum_hardware/src/PendulumHardware.cpp | pdsherman/pendulum | ed3e708e8cd66c1a7d5282110b4ceb94492c460f | [
"MIT"
] | null | null | null | /*
* See header file for description
*/
#include <hardware/pendulum_hardware/PendulumHardware.hpp>
#include <external_libs/motor/MotorException.hpp>
const std::string PendulumHardware::kEncoderBrdPort = "/dev/i2c-1";
PendulumHardware::PendulumHardware(void) :
_mtr(),
_encoder_board(kEncoderBrdPort, kEncoderBrd... | 22.778523 | 85 | 0.693577 | pdsherman |
4760a2fd43c948250e3bf8381007de246b78e123 | 3,055 | cpp | C++ | src/distributions/DirichletMultinomialDistribution.cpp | dwinter/accuMUlate | e8664a88cd77dd932f30f919eef10fda632e7bda | [
"MIT"
] | 2 | 2017-01-27T18:39:38.000Z | 2020-11-01T11:49:29.000Z | src/distributions/DirichletMultinomialDistribution.cpp | dwinter/accuMUlate | e8664a88cd77dd932f30f919eef10fda632e7bda | [
"MIT"
] | 36 | 2015-07-10T18:27:29.000Z | 2021-03-24T11:28:27.000Z | src/distributions/DirichletMultinomialDistribution.cpp | dwinter/accuMUlate | e8664a88cd77dd932f30f919eef10fda632e7bda | [
"MIT"
] | 4 | 2015-05-04T22:19:03.000Z | 2020-07-29T21:25:47.000Z | /*
* DirichletMultinomialDistribution.cpp
*
* Created on: Nov 7, 2014
* Author: Steven Wu
*/
#include "DirichletMultinomialDistribution.h"
//#include <gsl/gsl_randist.h>
//#include <gsl/gsl_rng.h>
#include <cmath>
#include <iostream>
//#include <cmath>
//#include <iostream>
//#include "../model.h"
Diric... | 22.798507 | 112 | 0.588871 | dwinter |
47614aa50da0e8fbc75e2c18ecb75169eec3bc26 | 2,897 | cc | C++ | src/TaskFunction.cc | paulhjkelly/taskgraph-metaprogramming | 54c4e2806a97bec555a90784ab4cf0880660bf89 | [
"BSD-3-Clause"
] | 5 | 2020-04-11T21:30:19.000Z | 2021-12-04T16:16:09.000Z | src/TaskFunction.cc | paulhjkelly/taskgraph-metaprogramming | 54c4e2806a97bec555a90784ab4cf0880660bf89 | [
"BSD-3-Clause"
] | null | null | null | src/TaskFunction.cc | paulhjkelly/taskgraph-metaprogramming | 54c4e2806a97bec555a90784ab4cf0880660bf89 | [
"BSD-3-Clause"
] | null | null | null | #include "TaskFunction.h"
#include "TaskUserFunctions.h"
namespace {
using namespace tg;
TaskIR::tgFunction initPrintf ( ) {
static Type *arguments[] = { createType<char *>() ( CURRENT_TASKGRAPH ) };
static Type *returnType = createType<int>() ( CURRENT_TASKGRAPH );
static bool init = false;
static TaskIR::tgFun... | 28.401961 | 96 | 0.717984 | paulhjkelly |
4766faa3076ac38548ab24f3d0bd38203fb70a39 | 1,024 | hpp | C++ | cross_validation/boost/statistics/detail/cross_validation/k_fold/include.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | cross_validation/boost/statistics/detail/cross_validation/k_fold/include.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | cross_validation/boost/statistics/detail/cross_validation/k_fold/include.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
// cross_validation::k_fold::include.hpp //
// //
// (C) Copyright 2009 Erwann Rogard //
// ... | 56.888889 | 78 | 0.535156 | rogard |
4767ec96d4035e678291bee40891802048c43a83 | 4,307 | hpp | C++ | public/anton/owning_ptr.hpp | kociap/atl | a7dc9b35c14453040db82dbbeca3c305bb25c66e | [
"MIT"
] | null | null | null | public/anton/owning_ptr.hpp | kociap/atl | a7dc9b35c14453040db82dbbeca3c305bb25c66e | [
"MIT"
] | null | null | null | public/anton/owning_ptr.hpp | kociap/atl | a7dc9b35c14453040db82dbbeca3c305bb25c66e | [
"MIT"
] | 1 | 2020-12-15T13:51:38.000Z | 2020-12-15T13:51:38.000Z | #pragma once
#include <anton/assert.hpp>
#include <anton/functors.hpp>
#include <anton/memory.hpp>
#include <anton/swap.hpp>
#include <anton/tags.hpp>
#include <anton/type_traits/properties.hpp>
#include <anton/type_traits/transformations.hpp>
#include <anton/types.hpp>
namespace anton {
// Owning_Ptr
// Owns... | 30.118881 | 148 | 0.58045 | kociap |
476bc6e216905ee4de5253dc9b361f8ef00e48d5 | 427 | hpp | C++ | lib/samp-log-core/include/samplog/LogLevel.hpp | Mrucznik/samp-mruv-api-plugin | 412244a65db9a3e7711c7eb17d4d4c918df254e8 | [
"MIT"
] | 19 | 2015-07-20T11:06:34.000Z | 2021-07-18T02:51:17.000Z | lib/samp-log-core/include/samplog/LogLevel.hpp | Mrucznik/samp-mruv-api-plugin | 412244a65db9a3e7711c7eb17d4d4c918df254e8 | [
"MIT"
] | 21 | 2016-08-05T12:24:31.000Z | 2022-03-12T04:18:18.000Z | lib/samp-log-core/include/samplog/LogLevel.hpp | Mrucznik/samp-mruv-api-plugin | 412244a65db9a3e7711c7eb17d4d4c918df254e8 | [
"MIT"
] | 7 | 2016-08-05T07:55:20.000Z | 2021-09-25T18:08:22.000Z | #pragma once
#ifdef ERROR //because Microsoft
#undef ERROR
#endif
namespace samplog
{
enum LogLevel
{
NONE = 0,
DEBUG = 1,
INFO = 2,
WARNING = 4,
ERROR = 8,
FATAL = 16,
VERBOSE = 32
};
inline LogLevel operator|(LogLevel a, LogLevel b)
{
return static_cast<LogLevel>(static_cast<int>(a) | static_... | 14.233333 | 74 | 0.64637 | Mrucznik |
476bffa5bf92861f583b37c8b6390db252abd372 | 52 | cpp | C++ | src/pch.cpp | handsomefox/some-cpp-stuff | fa02c4cc4dfdc74115f9b4965021d983dbf539e8 | [
"MIT"
] | 1 | 2021-01-10T12:55:43.000Z | 2021-01-10T12:55:43.000Z | src/pch.cpp | handsomefox/cpp-data-structures | 61cdeb7824ad62278a8c9631f24e50841b16f47e | [
"MIT"
] | null | null | null | src/pch.cpp | handsomefox/cpp-data-structures | 61cdeb7824ad62278a8c9631f24e50841b16f47e | [
"MIT"
] | null | null | null | // Needed for precompiling headers
#include "pch.h"
| 17.333333 | 34 | 0.75 | handsomefox |
476e5537986b6f20f705b4d8d19a981a283ac854 | 10,052 | cpp | C++ | Beeftext/Combo/ComboDialog.cpp | sharpsteve/Beeftext | 9f4c7abfe6f33914cd49956f9c576ab5b10ff660 | [
"MIT"
] | 546 | 2017-12-19T15:44:56.000Z | 2022-03-29T20:38:01.000Z | Beeftext/Combo/ComboDialog.cpp | sharpsteve/Beeftext | 9f4c7abfe6f33914cd49956f9c576ab5b10ff660 | [
"MIT"
] | 455 | 2017-12-30T07:47:49.000Z | 2022-03-24T15:53:14.000Z | Beeftext/Combo/ComboDialog.cpp | sharpsteve/Beeftext | 9f4c7abfe6f33914cd49956f9c576ab5b10ff660 | [
"MIT"
] | 45 | 2018-03-04T15:07:22.000Z | 2022-03-16T22:13:58.000Z | /// \file
/// \author Xavier Michelon
///
/// \brief Implementation of dialog for creating/editing a combo
///
/// Copyright (c) Xavier Michelon. All rights reserved.
/// Licensed under the MIT License. See LICENSE file in the project root for full license information.
#include "stdafx.h"
#include "ComboDialog.... | 46.753488 | 120 | 0.57302 | sharpsteve |
476f98744f11339b97b167a93f83dd846ee2f483 | 375 | cpp | C++ | cannon/math/multivariate_normal.test.cpp | cannontwo/cannon | 4be79f3a6200d1a3cd26c28c8f2250dbdf08f267 | [
"MIT"
] | null | null | null | cannon/math/multivariate_normal.test.cpp | cannontwo/cannon | 4be79f3a6200d1a3cd26c28c8f2250dbdf08f267 | [
"MIT"
] | 46 | 2021-01-12T23:03:52.000Z | 2021-10-01T17:29:01.000Z | cannon/math/multivariate_normal.test.cpp | cannontwo/cannon | 4be79f3a6200d1a3cd26c28c8f2250dbdf08f267 | [
"MIT"
] | null | null | null | #include <catch2/catch.hpp>
#include <cannon/math/multivariate_normal.hpp>
#include <cannon/log/registry.hpp>
using namespace cannon::math;
using namespace cannon::log;
TEST_CASE("MultivariateNormal", "[math]") {
MatrixXd covar = MatrixXd::Identity(2, 2);
covar(0, 0) = 10.0;
MultivariateNormal d(covar);
for... | 22.058824 | 46 | 0.688 | cannontwo |
477483be96cf7d18fe0231c1f62fe66e098fd561 | 5,454 | cc | C++ | csx/elmerif.cc | cslab-ntua/csx | 94dbf1471a7c55d637b824e92011ce7b9cb123ab | [
"BSD-3-Clause"
] | 4 | 2015-02-03T13:19:30.000Z | 2016-04-02T19:32:21.000Z | csx/elmerif.cc | cslab-ntua/csx | 94dbf1471a7c55d637b824e92011ce7b9cb123ab | [
"BSD-3-Clause"
] | null | null | null | csx/elmerif.cc | cslab-ntua/csx | 94dbf1471a7c55d637b824e92011ce7b9cb123ab | [
"BSD-3-Clause"
] | null | null | null | /*
* elmerif.cc -- Interface for Elmer integration
*
* Copyright (C) 2011, Computing Systems Laboratory (CSLab), NTUA.
* Copyright (C) 2011, Vasileios Karakasis
* All rights reserved.
*
* This file is distributed under the BSD License. See LICENSE.txt for details.
*/
#include <iostream>
#include <math.h>
#inclu... | 29.322581 | 79 | 0.574624 | cslab-ntua |
477574a7cd346c5ecaabc7686c12a788d068bffa | 914 | cpp | C++ | tests/src_test/pack_test/pack_test.cpp | dleliuhin/cservice_template | 63d47faee1065e3615c47ebfd222b49cbd8b7bd8 | [
"DOC"
] | null | null | null | tests/src_test/pack_test/pack_test.cpp | dleliuhin/cservice_template | 63d47faee1065e3615c47ebfd222b49cbd8b7bd8 | [
"DOC"
] | null | null | null | tests/src_test/pack_test/pack_test.cpp | dleliuhin/cservice_template | 63d47faee1065e3615c47ebfd222b49cbd8b7bd8 | [
"DOC"
] | 1 | 2021-08-06T22:15:04.000Z | 2021-08-06T22:15:04.000Z | /*! \file pack_test.cpp
* \brief PackTest class implementation.
* \authors Dmitrii Leliuhin
* \date July 2020
*/
//=======================================================================================
#include "pack_test.h"
#include "pack.h"
//======================================================... | 26.114286 | 90 | 0.370897 | dleliuhin |
477a2b678c95686bad9f7c424eedc7803dbf412d | 1,553 | hpp | C++ | examples/calculator/ModuloModel.hpp | tay10r/nodeeditor | db2e32be1584f97c353234c5013b7247d9210109 | [
"BSD-3-Clause"
] | 16 | 2020-10-14T07:25:36.000Z | 2022-03-30T18:23:53.000Z | examples/calculator/ModuloModel.hpp | tay10r/nodeeditor | db2e32be1584f97c353234c5013b7247d9210109 | [
"BSD-3-Clause"
] | 12 | 2020-09-24T06:47:09.000Z | 2022-02-23T08:34:34.000Z | examples/calculator/ModuloModel.hpp | tay10r/nodeeditor | db2e32be1584f97c353234c5013b7247d9210109 | [
"BSD-3-Clause"
] | 7 | 2021-03-21T19:41:38.000Z | 2021-11-15T09:21:57.000Z | #pragma once
#include <nodes/NodeDataModel>
#include "IntegerData.hpp"
using QtNodes::PortType;
using QtNodes::PortIndex;
using QtNodes::NodeData;
using QtNodes::NodeDataType;
using QtNodes::NodeDataModel;
using QtNodes::NodeValidationState;
class IntegerData;
class ModuloModel : public NodeDataModel
{
Q_OBJECT
... | 17.647727 | 79 | 0.752737 | tay10r |
47800c6acb0aa73a59840fb768a14eb27ad05b24 | 908 | hpp | C++ | franken/file/fbx/Importer.hpp | yatsuha4/franken | ae3aafe8da0c5663504e2e5c064dc98095ee37c8 | [
"MIT"
] | null | null | null | franken/file/fbx/Importer.hpp | yatsuha4/franken | ae3aafe8da0c5663504e2e5c064dc98095ee37c8 | [
"MIT"
] | null | null | null | franken/file/fbx/Importer.hpp | yatsuha4/franken | ae3aafe8da0c5663504e2e5c064dc98095ee37c8 | [
"MIT"
] | null | null | null | /***********************************************************************//**
@file
***************************************************************************/
#pragma once
namespace franken::file::fbx {
/***********************************************************************//**
@brief
***************************... | 27.515152 | 77 | 0.346916 | yatsuha4 |
4782707bf964d5c45f83d25533c2ce569bf60d92 | 4,683 | cpp | C++ | template/vst.cpp | notwa/crap | fe81ca33f7940a98321d9efce5bc43f400016955 | [
"MIT"
] | 1 | 2017-11-27T00:03:28.000Z | 2017-11-27T00:03:28.000Z | template/vst.cpp | notwa/crap | fe81ca33f7940a98321d9efce5bc43f400016955 | [
"MIT"
] | null | null | null | template/vst.cpp | notwa/crap | fe81ca33f7940a98321d9efce5bc43f400016955 | [
"MIT"
] | null | null | null | //#INCLUDE
//#REDEFINE
#include <stdio.h>
#include "public.sdk/source/vst2.x/audioeffectx.h"
// VST 2.4 by standard only holds 8 (+ 1 null) length strings,
// but this is never the case in practice. I've seen up to 24.
#define MAX_PARAM_LEN 24
struct plugin : public AudioEffectX
{
plugin(audioMasterCallback audioM... | 19.5125 | 76 | 0.719197 | notwa |
478a7e36d0e1ba3f25ad2a4a9ce99004d8e3c947 | 22,581 | cpp | C++ | mupackv2/backend/fr_pack/frpacker.cpp | layerfsd/mupack | e62afb90efd8f09aa14ce8f1e8bc8941aa1df8f4 | [
"WTFPL"
] | 1 | 2019-04-19T05:13:57.000Z | 2019-04-19T05:13:57.000Z | mupackv2/backend/fr_pack/frpacker.cpp | layerfsd/mupack | e62afb90efd8f09aa14ce8f1e8bc8941aa1df8f4 | [
"WTFPL"
] | null | null | null | mupackv2/backend/fr_pack/frpacker.cpp | layerfsd/mupack | e62afb90efd8f09aa14ce8f1e8bc8941aa1df8f4 | [
"WTFPL"
] | 1 | 2019-11-25T12:16:00.000Z | 2019-11-25T12:16:00.000Z | // Written by Fabian "ryg" Giesen.
// I hereby place this code in the public domain.
#include "_types.hpp"
#include "frpacker.hpp"
#include <stdlib.h>
/****************************************************************************/
extern "C" unsigned char* compress_fr(unsigned char* in_data, int in_size, int* out_siz... | 19.267065 | 129 | 0.553563 | layerfsd |
478b82876c81091e0d85f6f2519183eef0361359 | 400 | cpp | C++ | ImageProcessing/Parameters.cpp | IntelSoftware/MulticoreImageProcessing | 1dbb65b6ac893d608016f6595523f5b0b9ba342e | [
"Intel"
] | 14 | 2018-07-18T08:08:51.000Z | 2021-12-24T15:32:23.000Z | ImageProcessing/Parameters.cpp | IntelSoftware/MulticoreImageProcessing | 1dbb65b6ac893d608016f6595523f5b0b9ba342e | [
"Intel"
] | null | null | null | ImageProcessing/Parameters.cpp | IntelSoftware/MulticoreImageProcessing | 1dbb65b6ac893d608016f6595523f5b0b9ba342e | [
"Intel"
] | 7 | 2018-10-10T09:02:05.000Z | 2021-03-20T05:34:28.000Z | #include "stdafx.h"
#include <string>
// The following function is looking for the value of a parameter into an array of parameters (KVP).
// If the parameter is not found into the array, it returns a default value.
double parameter(const char* name, double defValue, KVP* arr, int nArr)
{
for (int i = 0; i < nArr; +... | 30.769231 | 100 | 0.7 | IntelSoftware |
478fd1cd227c8f6a4ef7b3dfa7fa50e1508a1846 | 1,550 | cpp | C++ | src/Ext/Techno/Hooks.Sight.cpp | Otamaa/Antares | 7241a5ff20f4dbf7153cc77e16edca5c9db473d4 | [
"BSD-4-Clause"
] | 4 | 2021-04-24T04:34:06.000Z | 2021-09-19T13:55:33.000Z | src/Ext/Techno/Hooks.Sight.cpp | Otamaa/Antares | 7241a5ff20f4dbf7153cc77e16edca5c9db473d4 | [
"BSD-4-Clause"
] | null | null | null | src/Ext/Techno/Hooks.Sight.cpp | Otamaa/Antares | 7241a5ff20f4dbf7153cc77e16edca5c9db473d4 | [
"BSD-4-Clause"
] | 2 | 2021-08-17T14:44:45.000Z | 2021-09-19T11:02:04.000Z | #include "../../Ares.h"
#include "../../Misc/MapRevealer.h"
DEFINE_HOOK(5673A0, MapClass_RevealArea0, 5)
{
//GET(MapClass*, pThis, ECX);
GET_STACK(CoordStruct const*, pCoords, 0x4);
GET_STACK(int, radius, 0x8);
GET_STACK(HouseClass*, pHouse, 0xC);
GET_STACK(bool, onlyOutline, 0x10);
GET_STACK(bool, a6, 0x14);
G... | 28.703704 | 111 | 0.729677 | Otamaa |
4795e8e483e2dbee8ab177d3f175dc49eb035fdc | 1,724 | cpp | C++ | Day 25/Binary Tree Level Order Traversal.cpp | shtanriverdi/CS487-Introduction-to-Competitive-Programming-Progress | 0d7a4fa4346ee08d9b2b2f628c3ffab7f3f81166 | [
"MIT"
] | 4 | 2019-12-12T19:59:50.000Z | 2020-01-20T15:44:44.000Z | Day 25/Binary Tree Level Order Traversal.cpp | shtanriverdi/CS487-Introduction-to-Competitive-Programming-Progress | 0d7a4fa4346ee08d9b2b2f628c3ffab7f3f81166 | [
"MIT"
] | null | null | null | Day 25/Binary Tree Level Order Traversal.cpp | shtanriverdi/CS487-Introduction-to-Competitive-Programming-Progress | 0d7a4fa4346ee08d9b2b2f628c3ffab7f3f81166 | [
"MIT"
] | null | null | null | // Question Link ---> https://leetcode.com/problems/binary-tree-level-order-traversal/
// Day #25
// Longer Production Coding Style Version
class Solution {
public:
vector<vector<int>> levelOrder(TreeNode* root) {
if (root == NULL) {
return {};
}
vector<vector<int>> l... | 31.925926 | 88 | 0.49478 | shtanriverdi |
47964c466f1efdc0ab4b410fb190b5d606edafc2 | 13,077 | cpp | C++ | src/main.cpp | Fingercomp/oc-vremote | db93fd9c246e52b9a7fbcac41ef703135f3d4b10 | [
"Apache-2.0"
] | null | null | null | src/main.cpp | Fingercomp/oc-vremote | db93fd9c246e52b9a7fbcac41ef703135f3d4b10 | [
"Apache-2.0"
] | null | null | null | src/main.cpp | Fingercomp/oc-vremote | db93fd9c246e52b9a7fbcac41ef703135f3d4b10 | [
"Apache-2.0"
] | null | null | null | #include <fstream>
#include <iostream>
#include <memory>
#include <queue>
#include <thread>
#include <cmath>
#include <SFML/Graphics.hpp>
#include "graphics.hpp"
#include "keyboard.hpp"
#include "main.hpp"
#include "network.hpp"
#include "protocol.hpp"
#include "runtime.hpp"
#include "util.hpp"
int main() {
std... | 48.254613 | 201 | 0.421274 | Fingercomp |
4798a61d1608394783ab7a5b5259acf79dd4b3ee | 20,972 | hpp | C++ | alpaka/include/alpaka/workdiv/WorkDivHelpers.hpp | ComputationalRadiationPhysics/mallocMC | bb2b32a4a56f7c892e14454bf6aa373a4870c32c | [
"MIT"
] | 25 | 2015-01-30T12:19:48.000Z | 2020-10-30T07:52:45.000Z | alpaka/include/alpaka/workdiv/WorkDivHelpers.hpp | ComputationalRadiationPhysics/mallocMC | bb2b32a4a56f7c892e14454bf6aa373a4870c32c | [
"MIT"
] | 101 | 2015-01-06T11:31:26.000Z | 2020-11-09T13:51:19.000Z | alpaka/include/alpaka/workdiv/WorkDivHelpers.hpp | ComputationalRadiationPhysics/mallocMC | bb2b32a4a56f7c892e14454bf6aa373a4870c32c | [
"MIT"
] | 10 | 2015-06-10T07:54:30.000Z | 2020-05-06T10:07:39.000Z | /* Copyright 2022 Benjamin Worpitz, Matthias Werner, Jan Stephan, Bernhard Manfred Gruber
*
* This file is part of alpaka.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/... | 47.234234 | 118 | 0.589834 | ComputationalRadiationPhysics |
479cde9017bf88350b5b2f0f014a8064e9b6a2b1 | 597 | cc | C++ | src/packet/p_init.cc | sitano/slitherss | f6d1ae2fc7023d1568f92ec8da3592caddc8ffd9 | [
"MIT"
] | 20 | 2016-07-17T13:05:45.000Z | 2021-05-07T13:35:21.000Z | src/packet/p_init.cc | sitano/slitherss | f6d1ae2fc7023d1568f92ec8da3592caddc8ffd9 | [
"MIT"
] | 8 | 2016-07-16T21:44:10.000Z | 2021-08-09T17:25:43.000Z | src/packet/p_init.cc | sitano/slitherss | f6d1ae2fc7023d1568f92ec8da3592caddc8ffd9 | [
"MIT"
] | 3 | 2017-01-28T23:31:12.000Z | 2017-10-28T08:10:24.000Z | #include "packet/p_init.h"
std::ostream& operator<<(std::ostream& out, const PacketInit& p) {
return out << static_cast<PacketBase>(p) << write_uint24(p.game_radius)
<< write_uint16(p.max_snake_parts) << write_uint16(p.sector_size)
<< write_uint16(p.sector_count_along_edge) << write_fp8(p.s... | 49.75 | 80 | 0.636516 | sitano |
47a65b4c515fc9e3ec86b2134e38b60e59aa7bad | 254 | cpp | C++ | cmakesettingsjson/test.cpp | ericfont/CppBuildTasks-Validation | 6a157ea4e14a2f92d29c293d18f3f741d66a317b | [
"MIT"
] | 14 | 2020-02-08T21:01:17.000Z | 2021-11-16T12:16:59.000Z | cmakesettingsjson/test.cpp | ericfont/CppBuildTasks-Validation | 6a157ea4e14a2f92d29c293d18f3f741d66a317b | [
"MIT"
] | 5 | 2021-02-12T23:15:39.000Z | 2022-02-25T13:32:57.000Z | cmakesettingsjson/test.cpp | ericfont/CppBuildTasks-Validation | 6a157ea4e14a2f92d29c293d18f3f741d66a317b | [
"MIT"
] | 15 | 2020-03-26T07:13:13.000Z | 2022-02-21T15:59:13.000Z | // Copyright (c) 2019-2020-2021 Luca Cappa
// Released under the term specified in file LICENSE.txt
// SPDX short identifier: MIT
// main.cpp
#include <sqlite3.h>
#include <stdio.h>
int main()
{
printf("%s\n", sqlite3_libversion());
return 0;
} | 19.538462 | 56 | 0.681102 | ericfont |
47a790acd9a504c80205c960ddc495838fbf250e | 17,228 | cpp | C++ | CaWE/MapEditor/Renderer3D.cpp | dns/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 3 | 2020-04-11T13:00:31.000Z | 2020-12-07T03:19:10.000Z | CaWE/MapEditor/Renderer3D.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | null | null | null | CaWE/MapEditor/Renderer3D.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 1 | 2020-04-11T13:00:04.000Z | 2020-04-11T13:00:04.000Z | /*
Cafu Engine, http://www.cafu.de/
Copyright (c) Carsten Fuchs and other contributors.
This project is licensed under the terms of the MIT license.
*/
#include "Renderer3D.hpp"
#include "ChildFrame.hpp" // ONLY needed for m_MapDoc.GetChildFrame()->GetToolManager()
#include "ChildFrameViewWin3D.hpp"
#include ... | 42.538272 | 168 | 0.672974 | dns |
47aaf6f3e712d6bc8a7212934bb292fd5a7d539a | 70 | hpp | C++ | src/core/hooks/vmt.hpp | Metaphysical1/gamesneeze | 59d31ee232bbcc80d29329e0f64ebdde599c37df | [
"MIT"
] | 1,056 | 2020-11-17T11:49:12.000Z | 2022-03-23T12:32:42.000Z | src/core/hooks/vmt.hpp | dweee/gamesneeze | 99f574db2617263470280125ec78afa813f27099 | [
"MIT"
] | 102 | 2021-01-15T12:05:18.000Z | 2022-02-26T00:19:58.000Z | src/core/hooks/vmt.hpp | dweee/gamesneeze | 99f574db2617263470280125ec78afa813f27099 | [
"MIT"
] | 121 | 2020-11-18T12:08:21.000Z | 2022-03-31T07:14:32.000Z | namespace VMT {
void* hook(void* instance, void* hook, int offset);
} | 23.333333 | 52 | 0.7 | Metaphysical1 |
47ab5a5ba0401df3e4322ef058a54a0f2703e752 | 975 | cpp | C++ | src/Engine/state/StateManager.cpp | mpavlinsky/bobsgame | dd4c0713828594ef601c61785164b3fa41e27e2a | [
"Unlicense"
] | 13 | 2021-06-30T15:47:33.000Z | 2021-09-18T15:44:34.000Z | src/Engine/state/StateManager.cpp | mpavlinsky/bobsgame | dd4c0713828594ef601c61785164b3fa41e27e2a | [
"Unlicense"
] | null | null | null | src/Engine/state/StateManager.cpp | mpavlinsky/bobsgame | dd4c0713828594ef601c61785164b3fa41e27e2a | [
"Unlicense"
] | 7 | 2021-06-30T17:14:41.000Z | 2021-10-14T01:41:18.000Z | #include "stdafx.h"
//------------------------------------------------------------------------------
//Copyright Robert Pelloni.
//All Rights Reserved.
//------------------------------------------------------------------------------
//#pragma once
Logger StateManager::log = Logger("StateManager");
StateManager... | 23.214286 | 125 | 0.316923 | mpavlinsky |
47b471e828f0117aeb63471456df03500a7a46c4 | 861 | cpp | C++ | Sniper.cpp | OmerK25/CPP-WarGame | 641921f65781ed2ee28b153012e0b8926696db11 | [
"MIT"
] | null | null | null | Sniper.cpp | OmerK25/CPP-WarGame | 641921f65781ed2ee28b153012e0b8926696db11 | [
"MIT"
] | null | null | null | Sniper.cpp | OmerK25/CPP-WarGame | 641921f65781ed2ee28b153012e0b8926696db11 | [
"MIT"
] | 1 | 2020-06-08T17:12:48.000Z | 2020-06-08T17:12:48.000Z | #include "Sniper.hpp"
#include <iostream>
void Sniper::act(vector<vector<Soldier *>> &board, pair<int, int> location)
{
Soldier *victim = nullptr;
int Strongest = 0;
int row, col;
for (int i = 0; i < board.size(); i++)
{
for (int j = 0; j < board[i].size(); j++)
{
Soldier... | 26.090909 | 75 | 0.399535 | OmerK25 |
47b4a955bbdb61466d7beedff589075e78c17d08 | 24,160 | cxx | C++ | lib/gks/plugin/figplugin.cxx | c42f/gr | c0e565ca360489e6ea1e618ad810ac9f3c46d905 | [
"RSA-MD"
] | null | null | null | lib/gks/plugin/figplugin.cxx | c42f/gr | c0e565ca360489e6ea1e618ad810ac9f3c46d905 | [
"RSA-MD"
] | null | null | null | lib/gks/plugin/figplugin.cxx | c42f/gr | c0e565ca360489e6ea1e618ad810ac9f3c46d905 | [
"RSA-MD"
] | null | null | null |
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <math.h>
#include <string.h>
#include <libpng16/png.h>
#if !defined(VMS) && !defined(_WIN32)
#include <unistd.h>
#endif
#include "gks.h"
#include "gkscore.h"
#define MEMORY_INCREMENT 32768
#define RESER... | 21.785392 | 78 | 0.551531 | c42f |
47b5a11ec6b2092791f0889ecb81ecd2eef3e21d | 1,621 | cpp | C++ | LuoguOJ/Luogu 1064.cpp | tico88612/Solution-Note | 31a9d220fd633c6920760707a07c9a153c2f76cc | [
"MIT"
] | 1 | 2018-02-11T09:41:54.000Z | 2018-02-11T09:41:54.000Z | LuoguOJ/Luogu 1064.cpp | tico88612/Solution-Note | 31a9d220fd633c6920760707a07c9a153c2f76cc | [
"MIT"
] | null | null | null | LuoguOJ/Luogu 1064.cpp | tico88612/Solution-Note | 31a9d220fd633c6920760707a07c9a153c2f76cc | [
"MIT"
] | null | null | null | #pragma GCC optimize ("O2")
#include<bits/stdc++.h>
#include<unistd.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int,int> pi;
#define _ ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define FZ(n) memset((n),0,sizeof(n))
#define FMO(n) memset((n),-1,sizeof(n))
#define F first
#def... | 26.145161 | 138 | 0.528686 | tico88612 |
47ba4a0a148c64e41518709626e2b5275b9cf0cb | 444 | hpp | C++ | library/ATF/$03A10DB8050D12733BBB445D87E42C62.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/$03A10DB8050D12733BBB445D87E42C62.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/$03A10DB8050D12733BBB445D87E42C62.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
enum $03A10DB8050D12733BBB445D87E42C62
{
TYPE_DB_WORLD0 = 0x0,
TYPE_DB_WORLD1 = 0x1,
TYPE_DB_BILLING = 0x2,
TYPE_NET... | 23.368421 | 108 | 0.693694 | lemkova |
47bb33c65c4e73401ddbb88b87f56bf438c7ecf8 | 190 | cpp | C++ | src/main.cpp | arthurgiroux/gbemulator | bba90215dd7498625361ced6fe61a2fb0caf7202 | [
"MIT"
] | 1 | 2016-10-09T19:27:47.000Z | 2016-10-09T19:27:47.000Z | src/main.cpp | arthurgiroux/gbemulator | bba90215dd7498625361ced6fe61a2fb0caf7202 | [
"MIT"
] | null | null | null | src/main.cpp | arthurgiroux/gbemulator | bba90215dd7498625361ced6fe61a2fb0caf7202 | [
"MIT"
] | null | null | null | #include "emulator.hpp"
#include "GUI.hpp"
int main(int, char**)
{
Emulator emulator;
GUI gui(emulator);
gui.init();
gui.startMainLoop();
gui.uninit();
return 0;
} | 13.571429 | 24 | 0.6 | arthurgiroux |
47bc575cb44e3a35d0faaffdc196b18bfe293aa6 | 514 | hpp | C++ | bot/commands.hpp | evias/web-irc-docbot | ffc05223eb580a363188dc361938d23b141c6091 | [
"BSD-3-Clause"
] | 1 | 2021-08-28T01:42:34.000Z | 2021-08-28T01:42:34.000Z | bot/commands.hpp | evias/web-irc-docbot | ffc05223eb580a363188dc361938d23b141c6091 | [
"BSD-3-Clause"
] | null | null | null | bot/commands.hpp | evias/web-irc-docbot | ffc05223eb580a363188dc361938d23b141c6091 | [
"BSD-3-Clause"
] | 1 | 2015-03-24T15:45:04.000Z | 2015-03-24T15:45:04.000Z | #ifndef __EVIAS_DOCBOT_BOT_COMMANDS__
#define __EVIAS_DOCBOT_BOT_COMMANDS__
#include "core/models/user.hpp"
#include <Wt/Dbo/Types>
#include <string>
namespace evias {
namespace dbo = Wt::Dbo;
namespace __m = models;
struct abstract_command {
virtual bool isset() = 0;
};
struct bot_use... | 17.724138 | 50 | 0.657588 | evias |
47bcf520ff4eeeaea6a91b27018f313aec805ec2 | 913 | cpp | C++ | Deitel/Chapter06/exercises/6.13/ex_613.cpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 19 | 2019-09-15T12:23:51.000Z | 2020-06-18T08:31:26.000Z | Deitel/Chapter06/exercises/6.13/ex_613.cpp | eirichan/CppLearingArchive | 07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac | [
"MIT"
] | 15 | 2021-12-07T06:46:03.000Z | 2022-01-31T07:55:32.000Z | Deitel/Chapter06/exercises/6.13/ex_613.cpp | eirichan/CppLearingArchive | 07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac | [
"MIT"
] | 13 | 2019-06-29T02:58:27.000Z | 2020-05-07T08:52:22.000Z | /*
* =====================================================================================
*
* Filename:
*
* Description:
*
* Version: 1.0
* Created: Thanks to github you know it
* Revision: none
* Compiler: g++
*
* Author: Mahmut Erdem ÖZGEN m.erdemozgen... | 22.825 | 88 | 0.377875 | SebastianTirado |
47c85320f9e279d9e8a0e0067feef3ff571fa09f | 1,272 | cpp | C++ | test/test_main.cpp | bendelec/mqpp | 86b525c8a0cabf78172c116d14fede62947760f5 | [
"Apache-2.0"
] | 2 | 2017-03-17T07:23:05.000Z | 2021-12-31T02:24:26.000Z | test/test_main.cpp | bendelec/mqpp | 86b525c8a0cabf78172c116d14fede62947760f5 | [
"Apache-2.0"
] | null | null | null | test/test_main.cpp | bendelec/mqpp | 86b525c8a0cabf78172c116d14fede62947760f5 | [
"Apache-2.0"
] | 2 | 2017-06-27T09:02:22.000Z | 2020-03-07T16:20:50.000Z | #include <thread>
#include <chrono>
#include <iostream>
#include "mqpp.h"
void connect_status_callback(mqpp::ConnectionState state, mqpp::DisconnectReason reason) {
std::cout << "Oh! I reveived a connect status callback." << std::endl;
}
void logging_callback(mqpp::LogLevel lvl, std::string text) {
switch (l... | 27.652174 | 90 | 0.569969 | bendelec |
47cb19f94f12f194cb6daa958c3be899bb162cef | 5,701 | cpp | C++ | LoganEngine/old/lGooey/lGooSvg/lGooSvgElements/lGooSvgRoot.cpp | sereslorant/logan_engine | a596b4128d0a58236be00f93064e276e43484017 | [
"MIT"
] | 1 | 2019-12-26T13:22:29.000Z | 2019-12-26T13:22:29.000Z | LoganEngine/old/lGooey/lGooSvg/lGooSvgElements/lGooSvgRoot.cpp | sereslorant/logan_engine | a596b4128d0a58236be00f93064e276e43484017 | [
"MIT"
] | null | null | null | LoganEngine/old/lGooey/lGooSvg/lGooSvgElements/lGooSvgRoot.cpp | sereslorant/logan_engine | a596b4128d0a58236be00f93064e276e43484017 | [
"MIT"
] | null | null | null |
#include "lGooSvgRect.h"
#include "lGooSvgCircle.h"
#include "lGooSvgLine.h"
#include "lGooSvgEllipse.h"
#include "lGooSvgRoot.h"
#include "../lGooSVG.h"
lGooSvgShape *lGooSvgRoot::LoadRect(std::ifstream &file)
{
std::cout << "Rect found!" << std::endl;
lGooSvgRect *NewRect = new lGooSvgRect(file,ObjectFactory,t... | 20.507194 | 106 | 0.597088 | sereslorant |
47d050fcc6e7ffba5f5b150564e9694e5c983b3f | 9,066 | cpp | C++ | CSCEngine/src/Helper.cpp | AndreyBuyanov/ImageProcessing.Lb1.ColorSpaceConverter | 897e816e782e6bfcdad7b06652db0a62b955fa05 | [
"MIT"
] | null | null | null | CSCEngine/src/Helper.cpp | AndreyBuyanov/ImageProcessing.Lb1.ColorSpaceConverter | 897e816e782e6bfcdad7b06652db0a62b955fa05 | [
"MIT"
] | null | null | null | CSCEngine/src/Helper.cpp | AndreyBuyanov/ImageProcessing.Lb1.ColorSpaceConverter | 897e816e782e6bfcdad7b06652db0a62b955fa05 | [
"MIT"
] | null | null | null | #include "Helper.hpp"
#include <xtensor/xarray.hpp>
#include <xtensor/xadapt.hpp>
#include <xtensor/xview.hpp>
namespace CSCEngine
{
using namespace xt::placeholders;
static constexpr float H_SCALE = 0.1f;
static constexpr float S_SCALE = 0.001f;
static constexpr float V_SCALE = 0.001f;
void Helper::H2RGB(
con... | 30.628378 | 76 | 0.555261 | AndreyBuyanov |
c517aaeaf382118200e2c9cb8a170344288737e4 | 1,516 | cpp | C++ | test/test_gramschmidt.cpp | awietek/hydra | 724a101500e308e91186a5cd6c5c520d8b343a6c | [
"Apache-2.0"
] | null | null | null | test/test_gramschmidt.cpp | awietek/hydra | 724a101500e308e91186a5cd6c5c520d8b343a6c | [
"Apache-2.0"
] | null | null | null | test/test_gramschmidt.cpp | awietek/hydra | 724a101500e308e91186a5cd6c5c520d8b343a6c | [
"Apache-2.0"
] | null | null | null | // Copyright 2018 Alexander Wietek - 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... | 26.137931 | 78 | 0.655673 | awietek |
c517b4fcbaf253fb2ea0098a18c1df9e058f9aed | 2,462 | cpp | C++ | lib/Target/Sophon/BM188x/Lowers/ConcatLower.cpp | LiuLeif/onnc | 3f69e46172a9c33cc04541ff7fd78d5d7b6bdbba | [
"BSD-3-Clause"
] | 450 | 2018-08-03T08:17:03.000Z | 2022-03-17T17:21:06.000Z | lib/Target/Sophon/BM188x/Lowers/ConcatLower.cpp | ffk0716/onnc | 91e4955ade64b479db17aaeccacf4b7339fe44d2 | [
"BSD-3-Clause"
] | 104 | 2018-08-13T07:31:50.000Z | 2021-08-24T11:24:40.000Z | lib/Target/Sophon/BM188x/Lowers/ConcatLower.cpp | ffk0716/onnc | 91e4955ade64b479db17aaeccacf4b7339fe44d2 | [
"BSD-3-Clause"
] | 100 | 2018-08-12T04:27:39.000Z | 2022-03-11T04:17:42.000Z | //===- ConcatLower.cpp ----------------------------------------------------===//
//
// The ONNC Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "ConcatLower.h"
#include "PatternMatch.h"
#include "../Compu... | 26.191489 | 80 | 0.553209 | LiuLeif |
c51a8f455b9294105518d676eadb6c3b3b0ac192 | 3,674 | hpp | C++ | include/neo_ica/backend/backend.hpp | ptillet/neo-ica | f7290219f49169d4cd51c9e58b2b8ee95aeda543 | [
"MIT"
] | 8 | 2016-12-18T13:31:17.000Z | 2021-11-03T09:31:14.000Z | include/neo_ica/backend/backend.hpp | ptillet/DSHF-ICA | f7290219f49169d4cd51c9e58b2b8ee95aeda543 | [
"MIT"
] | 1 | 2017-08-16T06:42:33.000Z | 2017-08-18T22:14:09.000Z | include/neo_ica/backend/backend.hpp | ptillet/DSHF-ICA | f7290219f49169d4cd51c9e58b2b8ee95aeda543 | [
"MIT"
] | 3 | 2017-07-03T08:44:48.000Z | 2018-08-30T06:54:10.000Z | /* ===========================
*
* Copyright (c) 2013 Philippe Tillet - National Chiao Tung University
*
* NEO-ICA - Dynamically Sampled Hessian Free Independent Comopnent Analaysis
*
* License : MIT X11 - See the LICENSE file in the root folder
* ===========================*/
#ifndef NEO_ICA_BACKEND_HPP_
#defi... | 33.4 | 192 | 0.62847 | ptillet |
c51f69d6006112f86ebf50cab3866fbcfcd46621 | 1,171 | cpp | C++ | src/lib/statistics_test.cpp | dsledz/sled | a7763441fe98fc6029294f85358a666353311aed | [
"BSD-2-Clause"
] | null | null | null | src/lib/statistics_test.cpp | dsledz/sled | a7763441fe98fc6029294f85358a666353311aed | [
"BSD-2-Clause"
] | null | null | null | src/lib/statistics_test.cpp | dsledz/sled | a7763441fe98fc6029294f85358a666353311aed | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2018, Dan Sledz
* All rights reserved.
* Licensed under BSD-2-Clause license.
*/
#include "sled/statistics.h"
#include "gtest/gtest.h"
// XXX: eww
namespace sled {
struct TestStats : public StatsImpl {
Counter<int> StatA{0};
Aggregate<int> StatB{};
Counter<int> StatC{0};
void report_... | 18.887097 | 57 | 0.654996 | dsledz |
c5256134215706ebef9c57f21637c8a0f6d47802 | 1,171 | cpp | C++ | chapter2/4.2.cpp | ssywbj/CppDemo | 770314140858dfad3aadc4e560f80b3a33e8cdd8 | [
"Apache-2.0"
] | null | null | null | chapter2/4.2.cpp | ssywbj/CppDemo | 770314140858dfad3aadc4e560f80b3a33e8cdd8 | [
"Apache-2.0"
] | null | null | null | chapter2/4.2.cpp | ssywbj/CppDemo | 770314140858dfad3aadc4e560f80b3a33e8cdd8 | [
"Apache-2.0"
] | null | null | null | //C++的标识符(identifier)由字母、数字、下画线组成,其中必须以字母或下画线开头。
//用户自定义的标识符不能连续出现两个下画线,也不能以下画线紧连大写字母开头。
//此外,定义在函数体外的标识符不能以下画线开头。
//变量命名规范(不一一列举)
//1.标识符要能体现实际含义。
//2.如果标识符由多个单词组成,则单词间应有明显区分,如student_load或
//studentLoad,不有使用studentload。
#include <iostream>
using namespace std;
//该程序仅用于说明:函数内部不宜定义与全局变量同名的新变量
int reused = 42;
int m... | 22.519231 | 52 | 0.671221 | ssywbj |
c52a486918839ca753f99a3c7812164b8cf40425 | 649 | cpp | C++ | greedy/kukan/abc185_d.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | greedy/kukan/abc185_d.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | greedy/kukan/abc185_d.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using P = pair<int, int>;
/*
参考リンク
ABC 185 D - Stamp
https://atcoder.jp/contests/abc185/tasks/abc185_d
*/
int main() {
int n, m;
cin >> n >> m;
vector<int> a(m);
rep(i, m) cin >> a... | 17.078947 | 55 | 0.493066 | Takumi1122 |
c532941f3f7a33a0caae08d44f9b9b25548b87a6 | 250,096 | cc | C++ | protocal/prediction/network_layers.pb.cc | racestart/g2r | d115ebaab13829d716750eab2ebdcc51d79ff32e | [
"Apache-2.0"
] | 1 | 2020-03-05T12:49:21.000Z | 2020-03-05T12:49:21.000Z | protocal/prediction/network_layers.pb.cc | gA4ss/g2r | a6e2ee5758ab59fd95704e3c3090dd234fbfb2c9 | [
"Apache-2.0"
] | null | null | null | protocal/prediction/network_layers.pb.cc | gA4ss/g2r | a6e2ee5758ab59fd95704e3c3090dd234fbfb2c9 | [
"Apache-2.0"
] | 1 | 2020-03-25T15:06:39.000Z | 2020-03-25T15:06:39.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: prediction/network_layers.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "prediction/network_layers.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google... | 37.067734 | 201 | 0.72307 | racestart |
c53dbb580a05953ae19709c18ebc08cb3ea7fda1 | 1,019 | hpp | C++ | foundation/pro/include/pro/log/log_message.hpp | xleakOfficial/xmax-mainchain | 16bb71da7f4c9f7c897d1de7b4e88b721d20cfdf | [
"MIT"
] | 14 | 2018-06-16T04:49:50.000Z | 2021-04-10T03:18:40.000Z | foundation/pro/include/pro/log/log_message.hpp | xleakOfficial/xmax-mainchain | 16bb71da7f4c9f7c897d1de7b4e88b721d20cfdf | [
"MIT"
] | null | null | null | foundation/pro/include/pro/log/log_message.hpp | xleakOfficial/xmax-mainchain | 16bb71da7f4c9f7c897d1de7b4e88b721d20cfdf | [
"MIT"
] | 7 | 2018-06-14T10:15:32.000Z | 2020-11-06T17:07:09.000Z | /**
* @file
* @copyright defined in xmax/LICENSE
*/
#pragma once
#include <string>
#include <pro/log/log_base.hpp>
namespace pro {
class LogContext {
public:
LogContext();
LogContext(LogLevel level);
LogContext(LogLevel level, const char* file, unsigned int line, const char* method);
~LogContext();
L... | 19.596154 | 86 | 0.700687 | xleakOfficial |
c54d7e90d811629697055924ef1e8a6c38792603 | 598 | cc | C++ | test/base/geometric_shapes_test.cc | Overhead-Transmission-Line-Software/Models | c270d48dc9d8a6eaed1d13851da7207474356342 | [
"Unlicense"
] | null | null | null | test/base/geometric_shapes_test.cc | Overhead-Transmission-Line-Software/Models | c270d48dc9d8a6eaed1d13851da7207474356342 | [
"Unlicense"
] | null | null | null | test/base/geometric_shapes_test.cc | Overhead-Transmission-Line-Software/Models | c270d48dc9d8a6eaed1d13851da7207474356342 | [
"Unlicense"
] | null | null | null | // This is free and unencumbered software released into the public domain.
// For more information, please refer to <http://unlicense.org/>
#include "models/base/geometric_shapes.h"
#include "gtest/gtest.h"
#include "models/base/helper.h"
class CylinderTest : public ::testing::Test {
protected:
CylinderTest() {
... | 21.357143 | 74 | 0.705686 | Overhead-Transmission-Line-Software |
c54e971646bd332638c447a1c1546eeab5980346 | 1,073 | cpp | C++ | src/main.cpp | dpurgin/ble-qt5 | 0ab5872617a769095200556d5c72e39e00ffbf36 | [
"MIT"
] | 2 | 2017-01-17T21:07:55.000Z | 2017-01-19T17:56:56.000Z | src/main.cpp | dpurgin/ble-qt5 | 0ab5872617a769095200556d5c72e39e00ffbf36 | [
"MIT"
] | null | null | null | src/main.cpp | dpurgin/ble-qt5 | 0ab5872617a769095200556d5c72e39e00ffbf36 | [
"MIT"
] | null | null | null | #include <QCoreApplication>
#include <QDebug>
#include <QTimer>
#include <ble-qt5/bledevicediscovery.h>
int main(int argc, char* argv[])
{
QCoreApplication app(argc, argv);
BLEDeviceDiscovery deviceDiscovery;
QObject::connect(&deviceDiscovery, &BLEDeviceDiscovery::deviceDiscovered,
[](QString ad... | 23.326087 | 77 | 0.604846 | dpurgin |
c54ec58a525cedfc78fd9cf40a3b87969e9daba9 | 678 | cpp | C++ | src/server/main.cpp | clucle/boost-udp-holepunching | 10acfa70ee23c0b9468ced7ceed935edf7c51aaf | [
"MIT"
] | 3 | 2020-12-20T11:28:41.000Z | 2021-11-07T13:48:38.000Z | src/server/main.cpp | clucle/boost-udp-holepunching | 10acfa70ee23c0b9468ced7ceed935edf7c51aaf | [
"MIT"
] | null | null | null | src/server/main.cpp | clucle/boost-udp-holepunching | 10acfa70ee23c0b9468ced7ceed935edf7c51aaf | [
"MIT"
] | 1 | 2021-11-07T13:48:44.000Z | 2021-11-07T13:48:44.000Z | /*****************************************************************//**
* \file main.cpp
* \brief
*
* \author wjden
* \date December 2020
*********************************************************************/
#include <iostream>
#include "core/RFC5389Builder.h"
#include "SignalServerAcceptor.h"
int main... | 19.941176 | 71 | 0.498525 | clucle |
c5535848a2f51b5044fb066fd90b6f9dc1ff1ffa | 1,883 | hh | C++ | include/PlasticScintillator.hh | jopekonk/ftsg4 | 63e6d00080ac9a392272e45538b8eb9d91601442 | [
"MIT"
] | null | null | null | include/PlasticScintillator.hh | jopekonk/ftsg4 | 63e6d00080ac9a392272e45538b8eb9d91601442 | [
"MIT"
] | null | null | null | include/PlasticScintillator.hh | jopekonk/ftsg4 | 63e6d00080ac9a392272e45538b8eb9d91601442 | [
"MIT"
] | null | null | null | #ifndef PlasticScintillator_H
#define PlasticScintillator_H 1
#include "globals.hh"
#include "G4Material.hh"
#include "G4VUserDetectorConstruction.hh"
#include "G4SystemOfUnits.hh"
#include "G4ThreeVector.hh"
#include "G4PVPlacement.hh"
//class G4Box;
class G4Tubs;
class G4Polycone;
class G4Polyhedra;
class G4Logic... | 25.106667 | 68 | 0.706851 | jopekonk |
c555836c3b3a1f30de6f63892370c6d1f5cbd7b9 | 298 | cpp | C++ | Kodlar/Uygulamalar/2/ikinciUygulama/ikinciUygulama/recursiveFactorial.cpp | musttafayildirim/veriYapilariUygulamalari | 87015f19e566f71c0e48c8a7e4c2fb01070d808d | [
"Apache-2.0"
] | null | null | null | Kodlar/Uygulamalar/2/ikinciUygulama/ikinciUygulama/recursiveFactorial.cpp | musttafayildirim/veriYapilariUygulamalari | 87015f19e566f71c0e48c8a7e4c2fb01070d808d | [
"Apache-2.0"
] | null | null | null | Kodlar/Uygulamalar/2/ikinciUygulama/ikinciUygulama/recursiveFactorial.cpp | musttafayildirim/veriYapilariUygulamalari | 87015f19e566f71c0e48c8a7e4c2fb01070d808d | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int n;
int faktoriyel(int a) {
if (a <= 0)
return 1;
if (a > 0)
return a * (faktoriyel(a - 1));
}
int main() {
cout << "Faktoriyeli alinacak sayi..." << endl;
cin >> n;
cout << n << "! = " << faktoriyel(n) << endl;
system("pause");
return 0;
} | 16.555556 | 48 | 0.560403 | musttafayildirim |
c563a2e2f6e1037d70afd7f46417d36794d7cd26 | 457 | cpp | C++ | docs/mfc/reference/codesnippet/CPP/cscrollbar-class_4.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | 14 | 2018-01-28T18:10:55.000Z | 2021-11-16T13:21:18.000Z | docs/mfc/reference/codesnippet/CPP/cscrollbar-class_4.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/mfc/reference/codesnippet/CPP/cscrollbar-class_4.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | 2 | 2018-11-01T12:33:08.000Z | 2021-11-16T13:21:19.000Z | // Sets minimum (0) and maximum (10) position values for the
// CScrollBar control. m_ScrollBarVert is of type CScrollBar class,
// and it is a member variable in CMyDialog class.
m_ScrollBarVert.SetScrollRange(0, 10);
// Set the position of the scroll box.
m_ScrollBarVert.SetScrollPos(5);
// Di... | 41.545455 | 72 | 0.728665 | jmittert |
c566b33f6da188625ebbc40719ca1a04bdd3b032 | 4,252 | hpp | C++ | pose_refinement/SA-LMPE/ba/openMVG/multiview/essential.hpp | Aurelio93/satellite-pose-estimation | 46957a9bc9f204d468f8fe3150593b3db0f0726a | [
"MIT"
] | 90 | 2019-05-19T03:48:23.000Z | 2022-02-02T15:20:49.000Z | pose_refinement/SA-LMPE/ba/openMVG/multiview/essential.hpp | Aurelio93/satellite-pose-estimation | 46957a9bc9f204d468f8fe3150593b3db0f0726a | [
"MIT"
] | 11 | 2019-05-22T07:45:46.000Z | 2021-05-20T01:48:26.000Z | pose_refinement/SA-LMPE/ba/openMVG/multiview/essential.hpp | Aurelio93/satellite-pose-estimation | 46957a9bc9f204d468f8fe3150593b3db0f0726a | [
"MIT"
] | 18 | 2019-05-19T03:48:32.000Z | 2021-05-29T18:19:16.000Z |
// Copyright (c) 2010 libmv authors.
//
// 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, publis... | 37.298246 | 83 | 0.677093 | Aurelio93 |
c56da1ba862c04bf7576aaa5b19829774dc0afeb | 25,534 | cpp | C++ | vulkan-demos/vulkan_wrapper/core/device.cpp | phonowiz/vulkan-gui-test | 5e71fe59bc0fce7c433f5136873697b47a8bc531 | [
"MIT"
] | 4 | 2020-01-22T17:58:40.000Z | 2020-06-04T18:41:23.000Z | vulkan-demos/vulkan_wrapper/core/device.cpp | phonowiz/vulkan-demos | 5e71fe59bc0fce7c433f5136873697b47a8bc531 | [
"MIT"
] | null | null | null | vulkan-demos/vulkan_wrapper/core/device.cpp | phonowiz/vulkan-demos | 5e71fe59bc0fce7c433f5136873697b47a8bc531 | [
"MIT"
] | null | null | null | //
// physical_device.cpp
// vulkan-gui-test
//
// Created by Rafael Sabino on 2/7/19.
// Copyright © 2019 Rafael Sabino. All rights reserved.
//
#include "device.h"
#include "EASTL/fixed_vector.h"
#include "EASTL/array.h"
#include <set>
#include <string>
#include <iostream>
#include <fstream>
#include <vulkan/vu... | 37.940565 | 157 | 0.710778 | phonowiz |
c56f741e0a17f3fa22088bee489f79fe9facc8fc | 7,005 | cpp | C++ | src/framework/core/resourcemanager.cpp | Cayan/otclient | 36c1ea9245c614dad50b073d67d32afd2727e9ef | [
"MIT"
] | 1 | 2017-05-07T00:58:10.000Z | 2017-05-07T00:58:10.000Z | src/framework/core/resourcemanager.cpp | Cayan/otclient | 36c1ea9245c614dad50b073d67d32afd2727e9ef | [
"MIT"
] | null | null | null | src/framework/core/resourcemanager.cpp | Cayan/otclient | 36c1ea9245c614dad50b073d67d32afd2727e9ef | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2010-2012 OTClient <https://github.com/edubart/otclient>
*
* 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... | 31.133333 | 118 | 0.678087 | Cayan |
c57368d04c6d3397bee8bc3daee66ffcddd6b1ef | 13,991 | cpp | C++ | src/linad99/newdar.cpp | johnrsibert/admb | 063ec863a9f23f6c6afbc7d481af0476b8d63645 | [
"BSD-3-Clause"
] | 79 | 2015-01-16T14:14:22.000Z | 2022-01-24T06:28:15.000Z | src/linad99/newdar.cpp | johnrsibert/admb | 063ec863a9f23f6c6afbc7d481af0476b8d63645 | [
"BSD-3-Clause"
] | 172 | 2015-01-21T01:53:57.000Z | 2022-03-29T19:57:31.000Z | src/linad99/newdar.cpp | johnrsibert/admb | 063ec863a9f23f6c6afbc7d481af0476b8d63645 | [
"BSD-3-Clause"
] | 22 | 2015-01-15T18:11:54.000Z | 2022-01-11T21:47:51.000Z | /*
* $Id$
*
* Author: David Fournier
* Copyright (c) 2008-2012 Regents of the University of California
*/
#include "fvar.hpp"
#ifdef __ZTC__
#include <iostream.hpp>
#endif
#ifdef __TURBOC__
#pragma hdrstop
#pragma options -h-
#include <iostream.h>
#endif
#include <stdlib.h>
#ifndef OPT_LIB
#include <cas... | 23.957192 | 80 | 0.621471 | johnrsibert |
c573c9ec64e23cb9e43d129c3f30334e3419ddb1 | 1,077 | hpp | C++ | PwnAdventure3/ServerConnection.hpp | vm-enter/PwnAdventure3 | 579956d935bb8adc802281dd6df2050c3b4afb28 | [
"MIT"
] | 1 | 2021-02-24T03:52:56.000Z | 2021-02-24T03:52:56.000Z | PwnAdventure3/ServerConnection.hpp | vm-enter/PwnAdventure3 | 579956d935bb8adc802281dd6df2050c3b4afb28 | [
"MIT"
] | null | null | null | PwnAdventure3/ServerConnection.hpp | vm-enter/PwnAdventure3 | 579956d935bb8adc802281dd6df2050c3b4afb28 | [
"MIT"
] | null | null | null | #pragma once
#include "native.hpp"
#include "TSingleton.hpp"
#include "PwnAdventure.hpp"
#include <thread>
#include <mutex>
#include <queue>
#include <functional>
struct ServerConnectionVtbl;
struct ServerConnection
{
~ServerConnection() = delete;
union
{
ServerConnectionVtbl *vfptr;
struct
{
bool m_bRu... | 17.370968 | 76 | 0.72052 | vm-enter |
c574dde5d8c224f27d13dcc7fb9863b5a660e1d2 | 1,040 | cpp | C++ | simulation_intersection_scenario/enterintersectiondist.cpp | SirTobias/DMPCRobotSimulation | e393538b37e5a63bfe4da94e9bd13feba45699db | [
"MIT"
] | 2 | 2021-12-06T08:05:12.000Z | 2022-03-22T13:56:38.000Z | simulation_intersection_scenario/enterintersectiondist.cpp | SirTobias/DMPCRobotSimulation | e393538b37e5a63bfe4da94e9bd13feba45699db | [
"MIT"
] | null | null | null | simulation_intersection_scenario/enterintersectiondist.cpp | SirTobias/DMPCRobotSimulation | e393538b37e5a63bfe4da94e9bd13feba45699db | [
"MIT"
] | 1 | 2022-03-29T12:46:37.000Z | 2022-03-29T12:46:37.000Z | #include "enterintersectiondist.h"
/**
* @brief EnterIntersectionDist::EnterIntersectionDist creates the uniform distribution engine with interval \f$ \[0, \text{numberEntryPoints}\]\f$
* @param numberEntryPoints the number of entry points
*/
/*EnterIntersectionDist::EnterIntersectionDist(const unsigned int &number... | 37.142857 | 198 | 0.771154 | SirTobias |
c588f97fecf86e8503a3a27114b264547f9be8ee | 809 | hpp | C++ | include/uitsl/parallel/RecursiveExclusiveLock.hpp | perryk12/conduit | 3ea055312598353afd465536c8e04cdec1111c8c | [
"MIT"
] | null | null | null | include/uitsl/parallel/RecursiveExclusiveLock.hpp | perryk12/conduit | 3ea055312598353afd465536c8e04cdec1111c8c | [
"MIT"
] | 1 | 2020-10-22T20:41:05.000Z | 2020-10-22T20:41:05.000Z | include/uitsl/parallel/RecursiveExclusiveLock.hpp | perryk12/conduit | 3ea055312598353afd465536c8e04cdec1111c8c | [
"MIT"
] | null | null | null | #pragma once
#ifndef UITSL_PARALLEL_RECURSIVEEXCLUSIVELOCK_HPP_INCLUDE
#define UITSL_PARALLEL_RECURSIVEEXCLUSIVELOCK_HPP_INCLUDE
#include <shared_mutex>
#include "../../../third-party/Empirical/source/base/optional.h"
#include "RecursiveMutex.hpp"
#include "thread_utils.hpp"
namespace uitsl {
class RecursiveExclus... | 21.864865 | 76 | 0.756489 | perryk12 |
c59661eb0dfe2015e6bae9d9bd690f558eeb3f3e | 7,788 | cpp | C++ | vcl/shape/mesh/mesh_drawable/mesh_drawable.cpp | vogr/OceanGL | e894df3319243b8ee2102856785ab3a9930e0029 | [
"MIT"
] | null | null | null | vcl/shape/mesh/mesh_drawable/mesh_drawable.cpp | vogr/OceanGL | e894df3319243b8ee2102856785ab3a9930e0029 | [
"MIT"
] | null | null | null | vcl/shape/mesh/mesh_drawable/mesh_drawable.cpp | vogr/OceanGL | e894df3319243b8ee2102856785ab3a9930e0029 | [
"MIT"
] | null | null | null | #include "mesh_drawable.hpp"
#include "vcl/opengl/opengl.hpp"
namespace vcl
{
void draw_pass0(const mesh_drawable& drawable, light_animation_data const & light_data);
void draw_pass1(const mesh_drawable& drawable, const camera_scene& user_camera, light_animation_data const & light_data);
mesh_drawable::mesh_drawab... | 38.746269 | 128 | 0.720724 | vogr |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.