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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6ff1ab42cd7b89bc61c70bfea32f797913886a8b | 11,958 | cpp | C++ | leven/src/compute_density_field.cpp | nickgildea/leven | 118bf1cacb75fdb3b306ccf27477037720af86e8 | [
"Unlicense"
] | 92 | 2017-10-08T17:26:12.000Z | 2022-03-31T04:27:41.000Z | leven/src/compute_density_field.cpp | nickgildea/leven | 118bf1cacb75fdb3b306ccf27477037720af86e8 | [
"Unlicense"
] | 1 | 2021-02-11T01:12:19.000Z | 2021-02-11T01:12:19.000Z | leven/src/compute_density_field.cpp | nickgildea/leven | 118bf1cacb75fdb3b306ccf27477037720af86e8 | [
"Unlicense"
] | 10 | 2018-01-13T14:13:52.000Z | 2021-12-23T00:44:36.000Z | #include "compute_local.h"
#include "compute_program.h"
#include "volume_constants.h"
#include "volume_materials.h"
#include "timer.h"
#include <sstream>
#include <random>
#include <algorithm>
#include <array>
#include <unordered_map>
#include <Remotery.h>
using glm::ivec2;
using glm::ivec3;
using glm::ivec4;
using ... | 36.236364 | 126 | 0.659057 | nickgildea |
6ff6b7c3b2989ff41dea30224499a7e3df23fb28 | 1,968 | cpp | C++ | RayCaster/RayCastCore/UniformGridSampler.cpp | apecoraro/RayCastRenderer | 897ccb7abfaac4721d18f64ae9b34d842bdb99eb | [
"MIT"
] | 1 | 2017-11-13T09:54:26.000Z | 2017-11-13T09:54:26.000Z | RayCaster/RayCastCore/UniformGridSampler.cpp | apecoraro/RayCastRenderer | 897ccb7abfaac4721d18f64ae9b34d842bdb99eb | [
"MIT"
] | null | null | null | RayCaster/RayCastCore/UniformGridSampler.cpp | apecoraro/RayCastRenderer | 897ccb7abfaac4721d18f64ae9b34d842bdb99eb | [
"MIT"
] | 1 | 2021-01-28T06:41:03.000Z | 2021-01-28T06:41:03.000Z | #include "UniformGridSampler.h"
#include "RayCaster.h"
using namespace cs500;
UniformGridSampler::UniformGridSampler(int horizSampleCount, int vertSampleCount) :
_numHorizSamples(horizSampleCount),
_numVertSamples(vertSampleCount)
{
}
void UniformGridSampler::initialize(const Camera& cam, int horizRes)
{
... | 32.8 | 130 | 0.598069 | apecoraro |
6ffaf797c206a7f252a9c95617426d9707a7050a | 2,393 | cpp | C++ | vstgui/lib/events.cpp | etheory/vstgui | df5d1836440e743600397d33e1612d4605ea0b37 | [
"BSD-3-Clause"
] | 608 | 2015-12-18T10:21:27.000Z | 2022-03-29T01:00:52.000Z | vstgui/lib/events.cpp | etheory/vstgui | df5d1836440e743600397d33e1612d4605ea0b37 | [
"BSD-3-Clause"
] | 111 | 2016-01-27T09:07:33.000Z | 2022-02-28T06:47:32.000Z | vstgui/lib/events.cpp | etheory/vstgui | df5d1836440e743600397d33e1612d4605ea0b37 | [
"BSD-3-Clause"
] | 123 | 2015-12-18T08:30:36.000Z | 2022-03-05T17:26:38.000Z | // This file is part of VSTGUI. It is subject to the license terms
// in the LICENSE file found in the top-level directory of this
// distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
#include "events.h"
#include "platform/platformfactory.h"
//--------------------------------------------------------... | 31.077922 | 77 | 0.603009 | etheory |
6ffb01ba3859c0f903b54db1eda370886cd43bef | 209 | cpp | C++ | VSCode/msgbox/program.cpp | weliwita/CPPWindowsTutorial | 0bba092c20e1afad3434b521a21ae09573579cde | [
"Apache-2.0"
] | null | null | null | VSCode/msgbox/program.cpp | weliwita/CPPWindowsTutorial | 0bba092c20e1afad3434b521a21ae09573579cde | [
"Apache-2.0"
] | null | null | null | VSCode/msgbox/program.cpp | weliwita/CPPWindowsTutorial | 0bba092c20e1afad3434b521a21ae09573579cde | [
"Apache-2.0"
] | null | null | null | #include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
MessageBox(NULL, "Goodbye, cruel world!", "Note", MB_OK);
return 0;
} | 26.125 | 66 | 0.684211 | weliwita |
b5149e53852aa83f26d40628caed68a3be0d8a18 | 379 | cpp | C++ | src/asio_pq/cancel.cpp | RobertLeahy/ASIO-PQ-2 | dba0adee7983d0790f3a3a0a522be0ad238f7e40 | [
"Unlicense"
] | null | null | null | src/asio_pq/cancel.cpp | RobertLeahy/ASIO-PQ-2 | dba0adee7983d0790f3a3a0a522be0ad238f7e40 | [
"Unlicense"
] | null | null | null | src/asio_pq/cancel.cpp | RobertLeahy/ASIO-PQ-2 | dba0adee7983d0790f3a3a0a522be0ad238f7e40 | [
"Unlicense"
] | null | null | null | #include <asio_pq/cancel.hpp>
#include <boost/system/error_code.hpp>
#include <boost/system/system_error.hpp>
namespace asio_pq {
void cancel (connection & conn, boost::system::error_code & ec) noexcept {
ec.clear();
conn.cancel(ec);
}
void cancel (connection & conn) {
boost::system::error_code ec;
cancel(conn,... | 18.95 | 74 | 0.712401 | RobertLeahy |
b516de8b067f6b6d373ba237965999e3c72b62d6 | 1,865 | cpp | C++ | source/transport/file/FStream.cpp | pnorbert/ADIOS2 | 6bd06b550431cf3e354a1a0b3f0d825e39fe97a9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | source/transport/file/FStream.cpp | pnorbert/ADIOS2 | 6bd06b550431cf3e354a1a0b3f0d825e39fe97a9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | source/transport/file/FStream.cpp | pnorbert/ADIOS2 | 6bd06b550431cf3e354a1a0b3f0d825e39fe97a9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* CFStream.cpp
*
* Created on: Oct 24, 2016
* Author: wfg
*/
/// \cond EXCLUDED_FROM_DOXYGEN
#include <ios> // std::ios_base::failure
#include <stdexcept>
/// \endcond
#include "tra... | 22.46988 | 75 | 0.576408 | pnorbert |
b51793c5db515d019c38298da4b5ab891b7f5d27 | 13,422 | cpp | C++ | Engine/Graphics/Benchmark.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 1 | 2022-02-14T15:46:44.000Z | 2022-02-14T15:46:44.000Z | Engine/Graphics/Benchmark.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | null | null | null | Engine/Graphics/Benchmark.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 2 | 2022-01-10T22:17:06.000Z | 2022-01-17T09:34:08.000Z | #include "stdh.h"
#include <Engine/Base/Console.h>
#include <Engine/Base/Timer.h>
#include <Engine/Base/Priority.inl>
#include <Engine/Graphics/GfxLibrary.h>
#include <Engine/Graphics/ViewPort.h>
#include <Engine/Graphics/DrawPort.h>
#include <Engine/Templates/StaticArray.cpp>
#include <Engine/Templates/StaticStackA... | 27.225152 | 134 | 0.634779 | openlastchaos |
b51c2bcc7a08e377c95ef456fa60ba85a3b4ccd8 | 5,220 | hpp | C++ | stdlib/headers/FunnyOS/Stdlib/TypeTraits.hpp | LetsPlaySomeUbuntu/XitongOS-test-1 | 792d0c76f9aa4bb2b579d47c2c728394a3acf9f9 | [
"MIT"
] | null | null | null | stdlib/headers/FunnyOS/Stdlib/TypeTraits.hpp | LetsPlaySomeUbuntu/XitongOS-test-1 | 792d0c76f9aa4bb2b579d47c2c728394a3acf9f9 | [
"MIT"
] | null | null | null | stdlib/headers/FunnyOS/Stdlib/TypeTraits.hpp | LetsPlaySomeUbuntu/XitongOS-test-1 | 792d0c76f9aa4bb2b579d47c2c728394a3acf9f9 | [
"MIT"
] | null | null | null | #ifndef FUNNYOS_STDLIB_HEADERS_FUNNYOS_STDLIB_TYPETRAITS_HPP
#define FUNNYOS_STDLIB_HEADERS_FUNNYOS_STDLIB_TYPETRAITS_HPP
// clang-format off
namespace FunnyOS::Stdlib {
/**
* Represents a type that has a value.
*
* @tparam Type type of the value
* @tparam Val value
*/
template <typen... | 33.677419 | 117 | 0.612644 | LetsPlaySomeUbuntu |
b5229227d7088eee31fad75eed957d22f56c46ce | 793 | hpp | C++ | third-party/Empirical/include/emp/web/_FacetedWidget.hpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | third-party/Empirical/include/emp/web/_FacetedWidget.hpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | third-party/Empirical/include/emp/web/_FacetedWidget.hpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | /**
* @note This file is part of Empirical, https://github.com/devosoft/Empirical
* @copyright Copyright (C) Michigan State University, MIT Software license; see doc/LICENSE.md
* @date 2020
*
* @file FacetedWidget.h
* @brief The FacetedWidget class is used to access the protected methods of WidgetFacet such... | 28.321429 | 102 | 0.691047 | koellingh |
dde1a453ea0856e8fbf29a205253a61b2f69f267 | 5,786 | cpp | C++ | src/dectris/neggia/data/JenkinsLookup3Checksum.cpp | dirkboye/neggia | 268aed262b00cb9392dd9711a390ff13906096ad | [
"MIT"
] | 6 | 2017-03-17T22:42:38.000Z | 2021-07-14T05:46:15.000Z | src/dectris/neggia/data/JenkinsLookup3Checksum.cpp | dirkboye/neggia | 268aed262b00cb9392dd9711a390ff13906096ad | [
"MIT"
] | 15 | 2017-03-17T13:03:18.000Z | 2021-05-12T15:01:40.000Z | src/dectris/neggia/data/JenkinsLookup3Checksum.cpp | dirkboye/neggia | 268aed262b00cb9392dd9711a390ff13906096ad | [
"MIT"
] | 11 | 2017-03-20T09:00:51.000Z | 2021-03-09T13:46:37.000Z | // SPDX-License-Identifier: MIT
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. ... | 37.571429 | 80 | 0.438472 | dirkboye |
dde7d6f87a99adf8b08cb6a3a37eecd4e6ea9e7d | 1,504 | cpp | C++ | examples/udp-example.cpp | Garcia6l20/g6-net | c9f07034a1c035c4b4319d60631d7953d5d6244a | [
"MIT"
] | 13 | 2021-03-18T09:05:40.000Z | 2022-01-30T13:53:16.000Z | examples/udp-example.cpp | Garcia6l20/g6-net | c9f07034a1c035c4b4319d60631d7953d5d6244a | [
"MIT"
] | 2 | 2021-06-27T13:44:59.000Z | 2021-11-02T02:55:27.000Z | examples/udp-example.cpp | Garcia6l20/g6-net | c9f07034a1c035c4b4319d60631d7953d5d6244a | [
"MIT"
] | 1 | 2022-03-08T03:41:07.000Z | 2022-03-08T03:41:07.000Z | #include <unifex/sync_wait.hpp>
#include <unifex/task.hpp>
#include <unifex/when_all.hpp>
#include <g6/io/context.hpp>
#include <g6/net/async_socket.hpp>
#include <g6/net/ip_endpoint.hpp>
#include <iostream>
using namespace g6;
int main() {
io::context ctx{};
inplace_stop_source stop_source{};
sync_wai... | 37.6 | 116 | 0.548537 | Garcia6l20 |
ddeaecf82c8506856da85e6a75bd11395d4a5a3a | 2,620 | hpp | C++ | src/Controller/Physics/PhysicsSystem.hpp | charlieSewell/ICT397-Game-Engine | 64d44edfcf397ea0a1133680f908f74ea8bafb22 | [
"MIT"
] | 1 | 2021-04-11T04:57:06.000Z | 2021-04-11T04:57:06.000Z | src/Controller/Physics/PhysicsSystem.hpp | charlieSewell/ICT397-Game-Engine | 64d44edfcf397ea0a1133680f908f74ea8bafb22 | [
"MIT"
] | null | null | null | src/Controller/Physics/PhysicsSystem.hpp | charlieSewell/ICT397-Game-Engine | 64d44edfcf397ea0a1133680f908f74ea8bafb22 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <map>
#include "Controller/Physics/RigidBody.hpp"
#include "Model/Components/Transform.hpp"
#include "CollisionEventHandler.hpp"
#include "Controller/Physics/ReactMath.hpp"
#include "Controller/Physics/Shapes/ReactTerrainShape.hpp"
#include "Controller/Physics/Shapes/ReactSphere... | 26.2 | 105 | 0.658015 | charlieSewell |
ddf303fba6ddb91e33c9cc79721151ff35141bbf | 2,782 | hpp | C++ | Source/AliveLibAE/ZapLine.hpp | THEONLYDarkShadow/alive_reversing | 680d87088023f2d5f2a40c42d6543809281374fb | [
"MIT"
] | 1 | 2021-04-11T23:44:43.000Z | 2021-04-11T23:44:43.000Z | Source/AliveLibAE/ZapLine.hpp | THEONLYDarkShadow/alive_reversing | 680d87088023f2d5f2a40c42d6543809281374fb | [
"MIT"
] | null | null | null | Source/AliveLibAE/ZapLine.hpp | THEONLYDarkShadow/alive_reversing | 680d87088023f2d5f2a40c42d6543809281374fb | [
"MIT"
] | null | null | null | #pragma once
#include "BaseAnimatedWithPhysicsGameObject.hpp"
#include "FunctionFwd.hpp"
#include "Layer.hpp"
struct ZapLineSprites
{
Prim_Sprt field_0_sprts[2];
};
ALIVE_ASSERT_SIZEOF(ZapLineSprites, 0x30);
// TODO: Give better names to the ZapPoint fields.
struct ZapPoint
{
FP field_0_part_1;
FP field_... | 31.613636 | 138 | 0.76312 | THEONLYDarkShadow |
ddfd86be10fad84033a2929c16c104a3e78ca79b | 1,352 | cpp | C++ | code/Engine/Assets/src/ShapeRect.cpp | serk12/Atreus | 4576caeab877b3ea52ffa59e96fa3926405c392c | [
"Apache-2.0"
] | null | null | null | code/Engine/Assets/src/ShapeRect.cpp | serk12/Atreus | 4576caeab877b3ea52ffa59e96fa3926405c392c | [
"Apache-2.0"
] | null | null | null | code/Engine/Assets/src/ShapeRect.cpp | serk12/Atreus | 4576caeab877b3ea52ffa59e96fa3926405c392c | [
"Apache-2.0"
] | null | null | null | #include "../header/ShapeRect.h"
ShapeRect::ShapeRect(const sf::Vector2f& pos, const sf::Vector2f& size)
{
this->pos = pos;
this->size = size;
}
ShapeRect::ShapeRect(const sf::FloatRect& rect)
{
this->pos = sf::Vector2f(rect.left, rect.top);
this->size = sf::Vector2f(rect.width, rect.height);
}
co... | 22.163934 | 71 | 0.622041 | serk12 |
fb031b683e0b8d8a516805712339972da76aff51 | 781 | cpp | C++ | Difficulty 1000/Permutation_Minimization_by_Deque.cpp | desmondweh29/A-Problem-A-Day | 135b21d21d74e6c716c9f7e36e8fa3a216f02727 | [
"MIT"
] | null | null | null | Difficulty 1000/Permutation_Minimization_by_Deque.cpp | desmondweh29/A-Problem-A-Day | 135b21d21d74e6c716c9f7e36e8fa3a216f02727 | [
"MIT"
] | null | null | null | Difficulty 1000/Permutation_Minimization_by_Deque.cpp | desmondweh29/A-Problem-A-Day | 135b21d21d74e6c716c9f7e36e8fa3a216f02727 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// Question: https://codeforces.com/problemset/problem/1579/E1
void solve()
{
int n;
cin >> n;
vector <long long> a(n);
for (int i = 0; i < n; i ++)
{
cin >> a[i];
}
deque<long long> ans;
for (int i = 0; i < n; i++)
{
... | 14.2 | 62 | 0.389245 | desmondweh29 |
fb04e57d452b69236c552e1049a918ff44a7fe3e | 3,064 | cpp | C++ | src/plugins/MemCheck.cpp | silverclaw/Oclgrind | 6da5eedbf0a0a77b83c244dd26aabbcdad2f49e6 | [
"BSD-3-Clause"
] | null | null | null | src/plugins/MemCheck.cpp | silverclaw/Oclgrind | 6da5eedbf0a0a77b83c244dd26aabbcdad2f49e6 | [
"BSD-3-Clause"
] | null | null | null | src/plugins/MemCheck.cpp | silverclaw/Oclgrind | 6da5eedbf0a0a77b83c244dd26aabbcdad2f49e6 | [
"BSD-3-Clause"
] | null | null | null | // MemCheck.cpp (Oclgrind)
// Copyright (c) 2013-2015, James Price and Simon McIntosh-Smith,
// University of Bristol. All rights reserved.
//
// This program is provided under a three-clause BSD license. For full
// license terms please see the LICENSE file distributed with this
// source code.
#include "core/common.... | 28.635514 | 76 | 0.625 | silverclaw |
fb06a5b11e6a88adcb3a1dd792df8d83f4ead657 | 2,878 | cpp | C++ | navigation_layer/fovis/libfovis/testers/absolute_orientation_horn_tester.cpp | kartavya2000/Anahita | 9afbf6c238658188df7d0d97b2fec3bd48028c03 | [
"BSD-3-Clause"
] | 8 | 2019-03-21T15:18:17.000Z | 2021-09-28T07:52:10.000Z | perception/rwth_people_tracker/rwth_visual_odometry/3rd_party/fovis/testers/absolute_orientation_horn_tester.cpp | VisualComputingInstitute/CROWDBOT_perception | df98f3f658c39fb3fa4ac0456f1214f7918009f6 | [
"MIT"
] | 19 | 2018-10-03T12:14:35.000Z | 2019-07-07T09:33:14.000Z | perception/rwth_people_tracker/rwth_visual_odometry/3rd_party/fovis/testers/absolute_orientation_horn_tester.cpp | VisualComputingInstitute/CROWDBOT_perception | df98f3f658c39fb3fa4ac0456f1214f7918009f6 | [
"MIT"
] | 15 | 2018-09-09T12:35:15.000Z | 2020-01-03T09:28:19.000Z | #include <stdio.h>
#include <stdlib.h>
#include <Eigen/Core>
#include "../libfovis/absolute_orientation_horn.hpp"
using namespace std;
static int
rand_int_range(int min, int max)
{
return rand() % (max - min) + min;
}
static double
rand_double_range(double min, double max)
{
double v = rand() / (double)RAND_M... | 27.409524 | 130 | 0.656706 | kartavya2000 |
fb0dc022c9babe9369fabe57d23110417b1acb58 | 1,546 | cpp | C++ | src/BarrierGammaStraight.cpp | jordan16ellis/fw-coll-env | abc38624adf65e87bee2090a915530035c01165a | [
"BSD-3-Clause"
] | null | null | null | src/BarrierGammaStraight.cpp | jordan16ellis/fw-coll-env | abc38624adf65e87bee2090a915530035c01165a | [
"BSD-3-Clause"
] | null | null | null | src/BarrierGammaStraight.cpp | jordan16ellis/fw-coll-env | abc38624adf65e87bee2090a915530035c01165a | [
"BSD-3-Clause"
] | 1 | 2021-05-25T15:20:38.000Z | 2021-05-25T15:20:38.000Z | #include <fw-coll-env/BarrierGammaStraight.h>
#include <cmath>
#include <iostream>
namespace fw_coll_env {
BarrierGammaStraight::BarrierGammaStraight(
double dt, double max_val, double v, double safety_dist,
const FwAvailActions &avail_actions) :
BarrierGammaTurn(
dt, max_val, v, avai... | 30.313725 | 74 | 0.655886 | jordan16ellis |
fb0e6236ab148afa41318a5d145dce49a1885bf1 | 1,117 | cpp | C++ | Codeforces/ACM-SFE Team Formation 2018 II/F.cpp | itsmevanessi/Competitive-Programming | e14208c0e0943d0dec90757368f5158bb9c4bc17 | [
"MIT"
] | null | null | null | Codeforces/ACM-SFE Team Formation 2018 II/F.cpp | itsmevanessi/Competitive-Programming | e14208c0e0943d0dec90757368f5158bb9c4bc17 | [
"MIT"
] | null | null | null | Codeforces/ACM-SFE Team Formation 2018 II/F.cpp | itsmevanessi/Competitive-Programming | e14208c0e0943d0dec90757368f5158bb9c4bc17 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int cases = 1, arr[10], k;
map<int, int> facs;
void factorize(long n){
int z = 2;
while(z * z <= n){
while(n % z == 0){
facs[-1 * z] ++;
n /= z;
}
z ++;
}
if(n != 1)
facs[-1 * n] ++;
}
bool can(int x){
int tmp[10]... | 17.730159 | 65 | 0.445837 | itsmevanessi |
fb1d836c624d529b9ce26fff0b116d5facc20d04 | 6,500 | cc | C++ | structured_point_cloud_chain.cc | peteflorence/NanoMap | 32c987ce5454061d34df4cf6cc625465a35a1694 | [
"BSD-3-Clause"
] | 4 | 2017-06-21T17:22:43.000Z | 2020-10-28T01:34:32.000Z | structured_point_cloud_chain.cc | peteflorence/NanoMap | 32c987ce5454061d34df4cf6cc625465a35a1694 | [
"BSD-3-Clause"
] | 1 | 2017-07-27T20:56:21.000Z | 2017-09-26T18:03:32.000Z | structured_point_cloud_chain.cc | peteflorence/NanoMap | 32c987ce5454061d34df4cf6cc625465a35a1694 | [
"BSD-3-Clause"
] | null | null | null | #include "structured_point_cloud_chain.h"
#define num_nearest_neighbors 1
Vector3 EdgeVertex::ApplyEdgeTransform(Vector3 p) const {
Vector4 p_aug;
p_aug << p, 1.0;
p_aug = edge * p_aug;
return Vector3(p_aug(0), p_aug(1), p_aug(2));
}
std::vector<Matrix4> StructuredPointCloudChain::GetCurrentEdges() const {
... | 37.142857 | 161 | 0.710615 | peteflorence |
fb1e373f590c25d09c27865c905cea1991fb40ca | 2,354 | cpp | C++ | TaskModules/MemoryMonitorTask.cpp | FrancisMT/Cpp_Periodic-Task-Scheduler | ca1e19c2366b5bd35452b1f7b4f35c6c964e8c13 | [
"BSD-2-Clause"
] | null | null | null | TaskModules/MemoryMonitorTask.cpp | FrancisMT/Cpp_Periodic-Task-Scheduler | ca1e19c2366b5bd35452b1f7b4f35c6c964e8c13 | [
"BSD-2-Clause"
] | null | null | null | TaskModules/MemoryMonitorTask.cpp | FrancisMT/Cpp_Periodic-Task-Scheduler | ca1e19c2366b5bd35452b1f7b4f35c6c964e8c13 | [
"BSD-2-Clause"
] | null | null | null | #include "MemoryMonitorTask.h"
#ifdef _WIN32
#include "Windows.h"
#elif __linux__
# error Unsupported build environment 'Linux'.
// linux headers go here
#elif __APPLE__
# error Unsupported build environment 'Apple'.
// macOS headers go here
#endif
MemoryMonitorTask::MemoryMonitorTask... | 43.592593 | 263 | 0.768479 | FrancisMT |
fb270ce78f533f1e28f7dfb69fe10a7debcbc044 | 984 | cpp | C++ | Practice Programs/version_control_system.cpp | C-Nikks/CPP_Language_Programs | e3ed1990aedd6b41f2746cdab7661c40f24d5588 | [
"MIT"
] | 3 | 2021-02-04T17:59:00.000Z | 2022-01-29T17:21:42.000Z | Practice Programs/version_control_system.cpp | C-Nikks/CPP_Language_Programs | e3ed1990aedd6b41f2746cdab7661c40f24d5588 | [
"MIT"
] | null | null | null | Practice Programs/version_control_system.cpp | C-Nikks/CPP_Language_Programs | e3ed1990aedd6b41f2746cdab7661c40f24d5588 | [
"MIT"
] | 3 | 2021-10-02T14:38:21.000Z | 2021-10-05T06:19:22.000Z | #include <iostream>
using namespace std;
int main()
{
int T;
cin >> T;
while (T--)
{
int N, M, K, countTI = 0, countUU = 0, flag1 = 0, flag2 = 0;
cin >> N >> M >> K;
int arr[M], brr[K];
for (int i = 1; i <= M; i++)
{
cin >> arr[i];
}
fo... | 23.428571 | 68 | 0.292683 | C-Nikks |
fb2819994ab92022b9e8cd4cabb97e895a059c58 | 686 | cpp | C++ | Searches/TernarySearch.cpp | 4eyes4u/Algorithms | afd8363ee39e5b7c499741f56922f16f4f50dc09 | [
"MIT"
] | 2 | 2019-02-16T13:13:40.000Z | 2019-03-19T20:05:42.000Z | Searches/TernarySearch.cpp | 4eyes4u/Algorithms | afd8363ee39e5b7c499741f56922f16f4f50dc09 | [
"MIT"
] | null | null | null | Searches/TernarySearch.cpp | 4eyes4u/Algorithms | afd8363ee39e5b7c499741f56922f16f4f50dc09 | [
"MIT"
] | 1 | 2020-07-03T06:15:41.000Z | 2020-07-03T06:15:41.000Z | /*
Name: Ternary search
Time complexity: O(logN)
Space complexity: O(1)
* * *
Function HAS TO BE unimodal.
Implemented function has minimum.
*/
#include <bits/stdc++.h>
using namespace std;
double f(double x) {
return x * x - 5 * x + 6;
}
double ternary_search(double l, double r, int iterat... | 18.540541 | 65 | 0.540816 | 4eyes4u |
fb28922c74f5057ce806b94ac703fec18671aaa2 | 26,170 | cc | C++ | mysql-server/sql/slave.cc | xuefengedu/database | 3952a411a3a17cc0cdbd98d6235e6f5caad2133a | [
"MIT"
] | 1 | 2020-03-31T15:03:51.000Z | 2020-03-31T15:03:51.000Z | mysql-server/sql/slave.cc | xuefengedu/database | 3952a411a3a17cc0cdbd98d6235e6f5caad2133a | [
"MIT"
] | 1 | 2020-03-31T15:04:54.000Z | 2020-03-31T15:04:54.000Z | mysql-server/sql/slave.cc | xuefengedu/database | 3952a411a3a17cc0cdbd98d6235e6f5caad2133a | [
"MIT"
] | null | null | null | /* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
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 ve... | 27.663848 | 104 | 0.658158 | xuefengedu |
fb2894f04657cb03e54c92639bf9c920dcde8741 | 1,448 | hpp | C++ | third_party/boost/simd/detail/dispatch/adapted/std/iterator.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 6 | 2018-02-25T22:23:33.000Z | 2021-01-15T15:13:12.000Z | third_party/boost/simd/detail/dispatch/adapted/std/iterator.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/detail/dispatch/adapted/std/iterator.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 7 | 2017-12-12T12:36:31.000Z | 2020-02-10T14:27:07.000Z | //==================================================================================================
/*!
@file
@copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
**/
//=========================... | 34.47619 | 100 | 0.642265 | SylvainCorlay |
fb2aa4f2566848c9b41156821e5f1ece4a745606 | 660,700 | cpp | C++ | unity/builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs18.cpp | leeenglestone/mrtk | e9c81815e5cdfba3315bb72f16400a80383a3b63 | [
"MIT"
] | null | null | null | unity/builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs18.cpp | leeenglestone/mrtk | e9c81815e5cdfba3315bb72f16400a80383a3b63 | [
"MIT"
] | null | null | null | unity/builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs18.cpp | leeenglestone/mrtk | e9c81815e5cdfba3315bb72f16400a80383a3b63 | [
"MIT"
] | null | null | null | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include <limits>
#include "vm/CachedCCWBase.h"
#include "utils/New.h"
// System.Collections.Generic.HashSet`1<UnityEngine.UI.Text>
struct HashSet_1_t1102E44FCC23C4DAA47D52A4A599D14C153341CB;
// Sys... | 40.879842 | 245 | 0.810618 | leeenglestone |
fb2cf0a8e98830c4ca1b9dfac4b8c7e67d12697a | 727 | cpp | C++ | test/src/test_constructor.cpp | sheltongabe/matrix | 2241cb531505d883238f1bb736eeae138402a86b | [
"MIT"
] | null | null | null | test/src/test_constructor.cpp | sheltongabe/matrix | 2241cb531505d883238f1bb736eeae138402a86b | [
"MIT"
] | null | null | null | test/src/test_constructor.cpp | sheltongabe/matrix | 2241cb531505d883238f1bb736eeae138402a86b | [
"MIT"
] | null | null | null | #include <iostream>
#include "json_util/json_file.h"
#include "matrix/matrix.h"
int main() {
// Test Default Constructor
matrix::Matrix<2, 2, int> test;
// Test Fill Constructor
matrix::Matrix<3, 3, double> fill_test(4.1);
json::JSONFile::writeJSON(std::move("test_fill.json"), fill_test);
// Test Copy Constru... | 25.964286 | 67 | 0.676754 | sheltongabe |
fb3101f4b802171ad0747f696a8f5100c55a22e1 | 1,487 | cpp | C++ | src/main.cpp | vytasrgl/inspexel | 281b1b9f4d8de3c0079e00acc2a78b2b92405477 | [
"ISC"
] | 19 | 2018-09-06T15:17:02.000Z | 2021-12-19T05:11:21.000Z | src/main.cpp | vytasrgl/inspexel | 281b1b9f4d8de3c0079e00acc2a78b2b92405477 | [
"ISC"
] | 2 | 2018-11-11T15:42:42.000Z | 2019-04-01T12:37:46.000Z | src/main.cpp | vytasrgl/inspexel | 281b1b9f4d8de3c0079e00acc2a78b2b92405477 | [
"ISC"
] | 3 | 2020-08-28T13:06:02.000Z | 2021-01-13T01:55:54.000Z | #include <sargparse/ArgumentParsing.h>
#include <sargparse/Parameter.h>
#include <iostream>
namespace {
#define VERSION "1.3.0"
#define DATE "16 October 2018"
#define TERM_RED "\033[31m"
#define TERM_RESET "\033[0m"
auto printHelp = sargp::Parameter<std::optional<std:... | 29.156863 | 171 | 0.592468 | vytasrgl |
fb372f877e387881225677aa270f418d7d03a13c | 3,223 | cpp | C++ | GardenVexor/src/map/gridbackground.cpp | kalsipp/vsxpanse | 7887d234312283ce1ace03bed610642b0c6f96b1 | [
"MIT"
] | null | null | null | GardenVexor/src/map/gridbackground.cpp | kalsipp/vsxpanse | 7887d234312283ce1ace03bed610642b0c6f96b1 | [
"MIT"
] | null | null | null | GardenVexor/src/map/gridbackground.cpp | kalsipp/vsxpanse | 7887d234312283ce1ace03bed610642b0c6f96b1 | [
"MIT"
] | null | null | null | #include "gridbackground.hpp"
#include "graphicsmanager.hpp"
#include "engine.hpp"
#include "basics/helpers.hpp"
#include "components/spritecomponent.hpp"
MapTile::MapTile(const MapTileSprite sprite) :m_sprite(sprite) {}
const std::string MapTile::MapTilePaths[SIZEOF_MAPTILESPRITE] = {
"Images\\ground.png",
"Images... | 29.3 | 157 | 0.714241 | kalsipp |
fb3e7054580cdf00c29af53f7b84f28f288f1f15 | 668 | cc | C++ | ir/subroutine.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | null | null | null | ir/subroutine.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | null | null | null | ir/subroutine.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | null | null | null | #include "ir/subroutine.h"
namespace ir {
Subroutine::Subroutine(type::Callable const *type)
: type_(type), alloc_(parameters().size()) {
AppendBlock(BasicBlock::DebugInfo{.header = "Entry"});
}
Reg Subroutine::Alloca(type::Type t) { return alloc_.StackAllocate(t); }
Reg Subroutine::Alloca(core::TypeContour tc... | 27.833333 | 80 | 0.610778 | asoffer |
fb43d818d91657dc527dcd579a30b90dfef3a9f1 | 2,863 | cpp | C++ | test/test_desktop/test_gear.cpp | jschoch/ESPels | d5709a2e46355abe0e82dc8268c9624979953219 | [
"Apache-2.0"
] | 6 | 2021-01-11T12:48:51.000Z | 2022-02-28T03:19:34.000Z | test/test_desktop/test_gear.cpp | jschoch/ESPels | d5709a2e46355abe0e82dc8268c9624979953219 | [
"Apache-2.0"
] | 4 | 2021-01-11T23:42:44.000Z | 2021-07-30T14:22:50.000Z | test/test_desktop/test_gear.cpp | jschoch/ESPels | d5709a2e46355abe0e82dc8268c9624979953219 | [
"Apache-2.0"
] | 2 | 2022-01-16T19:00:46.000Z | 2022-02-14T20:56:15.000Z | #ifdef UNIT_TEST
#include <unity.h>
#include "src/gear.h"
#include <iostream>
void printJump(char *s,gear::Jump j){
std::cout << s << "jump delta " << j.delta << " , ";
std::cout << "count " << j.count << " , ";
std::cout << "error" << j.error<< "\n";
}
int main( int argc, char **a... | 26.027273 | 117 | 0.506811 | jschoch |
fb45aca3e30554385565230eb2e50e34913a400e | 5,744 | tpp | C++ | v1/include/QLGameObject.tpp | cherosene/learning_algorithms | 8ec9d8b7f744a375170ac2396cfb8bc216f84f53 | [
"MIT"
] | null | null | null | v1/include/QLGameObject.tpp | cherosene/learning_algorithms | 8ec9d8b7f744a375170ac2396cfb8bc216f84f53 | [
"MIT"
] | null | null | null | v1/include/QLGameObject.tpp | cherosene/learning_algorithms | 8ec9d8b7f744a375170ac2396cfb8bc216f84f53 | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <fstream>
#include <iostream>
template <class T, class U>
QLGameObject<T,U>::QLGameObject(std::map<T,std::function<void()>> atm, int nx, int ny, float nspeed) : GameObject<T>(atm, nx, ny, nspeed) {
validationFun = nullptr;
}
template <class T, class U>
QLGameObject<T,U>::QLGameObject(s... | 29.608247 | 185 | 0.600453 | cherosene |
fb4a17d9485bc7070d4737d4ae45b01537253a55 | 10,670 | hpp | C++ | includes/InkRequest.hpp | Inkbytes/ink-webserv | e741c1df68dbc08efff0c921b0478095fba18daa | [
"Apache-2.0"
] | null | null | null | includes/InkRequest.hpp | Inkbytes/ink-webserv | e741c1df68dbc08efff0c921b0478095fba18daa | [
"Apache-2.0"
] | null | null | null | includes/InkRequest.hpp | Inkbytes/ink-webserv | e741c1df68dbc08efff0c921b0478095fba18daa | [
"Apache-2.0"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* InkRequest.hpp :+: :+: :+: ... | 28.915989 | 197 | 0.519681 | Inkbytes |
fb4c274f5358edd4b8c1954f5a2b98adaf772891 | 924 | hpp | C++ | lib/src/Core/Errors/Diagnostic.hpp | henrikfroehling/polyglot | 955fb37c2f54ebbaf933c16bf9e0e4bcca8a4142 | [
"MIT"
] | null | null | null | lib/src/Core/Errors/Diagnostic.hpp | henrikfroehling/polyglot | 955fb37c2f54ebbaf933c16bf9e0e4bcca8a4142 | [
"MIT"
] | 50 | 2021-06-30T20:01:50.000Z | 2021-11-28T16:21:26.000Z | lib/src/Core/Errors/Diagnostic.hpp | henrikfroehling/polyglot | 955fb37c2f54ebbaf933c16bf9e0e4bcca8a4142 | [
"MIT"
] | null | null | null | #ifndef INTERLINCK_CORE_ERRORS_DIAGNOSTIC_H
#define INTERLINCK_CORE_ERRORS_DIAGNOSTIC_H
#include "interlinck/Core/Errors/DiagnosticSeverity.hpp"
#include "interlinck/Core/Errors/IDiagnostic.hpp"
#include "interlinck/Core/LanguageKind.hpp"
namespace interlinck::Core::Errors
{
class Diagnostic : public IDiagnostic
{
p... | 29.806452 | 94 | 0.768398 | henrikfroehling |
fb5756e01b3cc1c7e882a258f68e62cf1b71feb6 | 5,398 | cpp | C++ | src/uSerial.cpp | ohmtech-io/uBridge | 49ca693f8eec885d0a026aa374eca314586f3920 | [
"MIT"
] | 3 | 2021-10-01T10:08:15.000Z | 2022-02-13T21:32:35.000Z | src/uSerial.cpp | ohmtech-io/uBridge | 49ca693f8eec885d0a026aa374eca314586f3920 | [
"MIT"
] | 1 | 2021-12-30T07:21:49.000Z | 2022-01-03T15:15:56.000Z | src/uSerial.cpp | ohmtech-io/uBridge | 49ca693f8eec885d0a026aa374eca314586f3920 | [
"MIT"
] | 1 | 2021-12-30T07:20:38.000Z | 2021-12-30T07:20:38.000Z | /***************************************************************************
*** MIT License ***
*
*** Copyright (c) 2020-2021 Daniel Mancuso - OhmTech.io **
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
*... | 33.116564 | 113 | 0.661912 | ohmtech-io |
fb5db44b6f095ce4a92ffb60325ee665d03132ca | 2,807 | hpp | C++ | src/MinConsoleNative/ConsoleEngine.hpp | OpenGreatDream/Console | 205a6802c6d12d322fa66c91fa7baa3e38e8d6c1 | [
"MIT"
] | 5 | 2021-04-11T17:32:45.000Z | 2021-09-16T18:27:58.000Z | mylib/include/ConsoleEngine.hpp | zmcj1/PixelFPS | 2957fe7cdaf0e269665f2e3a7adcccc7e44c5799 | [
"MIT"
] | 4 | 2021-05-01T10:22:14.000Z | 2021-05-05T11:20:34.000Z | src/MinConsoleNative/ConsoleEngine.hpp | OpenGreatDream/Console | 205a6802c6d12d322fa66c91fa7baa3e38e8d6c1 | [
"MIT"
] | null | null | null | #pragma once
#include "MinDefines.hpp"
#include "Console.hpp"
#include "PaletteSystem.hpp"
#include <string>
namespace MinConsoleNative
{
enum class FontName
{
Consolas = 1, //Consolas
MSGothic = 2, //MS Gothic
};
enum class FontSize
{
_6x12,
_8x16,
_1... | 30.182796 | 214 | 0.661204 | OpenGreatDream |
fb62e0672a1d3e91229acc97a9c0a43a1507e67e | 2,092 | cpp | C++ | src/compass.cpp | GalacticSoft/Starbot-Command | efaf8b6b7bcef362780962c0e1199ca2833eae50 | [
"MIT"
] | 1 | 2016-06-03T19:32:25.000Z | 2016-06-03T19:32:25.000Z | src/compass.cpp | GalacticSoft/Starbot-Command | efaf8b6b7bcef362780962c0e1199ca2833eae50 | [
"MIT"
] | null | null | null | src/compass.cpp | GalacticSoft/Starbot-Command | efaf8b6b7bcef362780962c0e1199ca2833eae50 | [
"MIT"
] | null | null | null | #include <sys/ioctl.h> // I2C
#include <sys/types.h> // I2C
#include <sys/stat.h> // I2C
#include <linux/i2c-dev.h> // I2C
#include <unistd.h>
#include <fcntl.h>
#include "compass.h"
#include "math.h"
using namespace std;
int compass::start()
{
init = true;
filter = new kalman_filter();
/* Initialize i2c compass... | 20.31068 | 96 | 0.66109 | GalacticSoft |
fb668590e1d3189eb00312ee0bfef3df11d23f1e | 900 | cpp | C++ | src/utils/MathExtras.cpp | normal-coder/polarphp | a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe | [
"PHP-3.01"
] | 1 | 2019-01-28T01:33:49.000Z | 2019-01-28T01:33:49.000Z | src/utils/MathExtras.cpp | normal-coder/polarphp | a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe | [
"PHP-3.01"
] | null | null | null | src/utils/MathExtras.cpp | normal-coder/polarphp | a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe | [
"PHP-3.01"
] | null | null | null | // This source file is part of the polarphp.org open source project
//
// Copyright (c) 2017 - 2018 polarphp software foundation
// Copyright (c) 2017 - 2018 zzu_softboy <zzu_softboy@163.com>
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://polarphp.org/LICENSE.txt for license info... | 28.125 | 85 | 0.755556 | normal-coder |
fb67279824dccd1476da27dcd9d97171a08d1216 | 3,834 | cpp | C++ | tc 160+/TaxiBusiness.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/TaxiBusiness.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/TaxiBusiness.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
class TaxiBusiness {
public:
vector <int> place(vector <string> town) {
int m = town.size();
int n = town[0].size();
ve... | 45.642857 | 333 | 0.539384 | ibudiselic |
fb6db666728bee5e7cdac8825e7d65e2f593ba40 | 1,064 | cpp | C++ | week10/CFBoard/autoPlay.cpp | WeiChienHsu/CS165 | 65e95efc90415c8acc707e2d544eb384d3982e18 | [
"MIT"
] | 1 | 2019-01-06T22:36:01.000Z | 2019-01-06T22:36:01.000Z | week10/CFBoard/autoPlay.cpp | WeiChienHsu/CS165 | 65e95efc90415c8acc707e2d544eb384d3982e18 | [
"MIT"
] | null | null | null | week10/CFBoard/autoPlay.cpp | WeiChienHsu/CS165 | 65e95efc90415c8acc707e2d544eb384d3982e18 | [
"MIT"
] | null | null | null | #include <iostream>
#include "CFBoard.hpp"
#include <stdlib.h> /* srand, rand */
#include <time.h> /* time */
class Player {
public:
char name;
int number;
Player(char name) {
this->name = name;
}
int randomNumber() {
this->number = (rand() % 7) + 1;
std::cout << "Pla... | 20.862745 | 86 | 0.539474 | WeiChienHsu |
fb6e5a140c5c6eb5248e4528b8cbab40bb827e68 | 1,395 | cpp | C++ | code/engine/xrServerEntities/xrServer_Objects_ALife_script3.cpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 58 | 2016-11-20T19:14:35.000Z | 2021-12-27T21:03:35.000Z | code/engine/xrServerEntities/xrServer_Objects_ALife_script3.cpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 59 | 2016-09-10T10:44:20.000Z | 2018-09-03T19:07:30.000Z | code/engine/xrServerEntities/xrServer_Objects_ALife_script3.cpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 39 | 2017-02-05T13:35:37.000Z | 2022-03-14T11:00:12.000Z | ////////////////////////////////////////////////////////////////////////////
// Module : xrServer_Objects_ALife_script3.cpp
// Created : 19.09.2002
// Modified : 04.06.2003
// Author : Dmitriy Iassenev
// Description : Server objects for ALife simulator, script export, the third part
/////////////////////////////... | 41.029412 | 100 | 0.62724 | InNoHurryToCode |
fb740969d45ae7569202cd90a0a1b23ad977f6b5 | 2,253 | cpp | C++ | src/qhttpserverrequest.cpp | Targoman/qhttp | 2351076d2e23c8820e6e94d064de689d99edb22f | [
"MIT"
] | 2 | 2020-07-03T06:34:15.000Z | 2020-07-03T19:19:09.000Z | src/qhttpserverrequest.cpp | Targoman/QHttp | 55df46aab918a1f923e8b1b79674cf9f82490bc5 | [
"MIT"
] | null | null | null | src/qhttpserverrequest.cpp | Targoman/QHttp | 55df46aab918a1f923e8b1b79674cf9f82490bc5 | [
"MIT"
] | null | null | null | #include "private/qhttpserverrequest_private.hpp"
///////////////////////////////////////////////////////////////////////////////
namespace qhttp {
namespace server {
///////////////////////////////////////////////////////////////////////////////
QHttpRequest::QHttpRequest(QHttpConnection *conn)
: QHttpAbstractInp... | 25.033333 | 90 | 0.637816 | Targoman |
fb747d885368fd9c84efef8b76dbdcf414e02824 | 42,699 | cpp | C++ | ftp_cheat/Config.cpp | ALEHACKsp/ftp_loader | 9e0e6a7230bfd57b02868d8d9b2cafc6f205b864 | [
"Unlicense"
] | 1 | 2022-01-14T20:22:50.000Z | 2022-01-14T20:22:50.000Z | ftp_cheat/Config.cpp | ALEHACKsp/ftp_loader | 9e0e6a7230bfd57b02868d8d9b2cafc6f205b864 | [
"Unlicense"
] | null | null | null | ftp_cheat/Config.cpp | ALEHACKsp/ftp_loader | 9e0e6a7230bfd57b02868d8d9b2cafc6f205b864 | [
"Unlicense"
] | null | null | null | #include <algorithm>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <iterator>
#include <system_error>
#ifdef _WIN32
#include <Windows.h>
#include <shellapi.h>
#include <ShlObj.h>
#endif
#include "nlohmann/json.hpp"
#include "imgui/imgui.h"
#include "Config.h"
#include "Hacks/AntiAim.h"
#include ... | 32.845385 | 306 | 0.647369 | ALEHACKsp |
fb74ccdc94fb7b6b5ee489807875db4dc624a0a1 | 3,075 | cpp | C++ | libraries/networking/src/NodePermissions.cpp | aoighost/hifi | 87cdb4144dd9ab03cd6365c81e0c943a935d675b | [
"Apache-2.0"
] | null | null | null | libraries/networking/src/NodePermissions.cpp | aoighost/hifi | 87cdb4144dd9ab03cd6365c81e0c943a935d675b | [
"Apache-2.0"
] | null | null | null | libraries/networking/src/NodePermissions.cpp | aoighost/hifi | 87cdb4144dd9ab03cd6365c81e0c943a935d675b | [
"Apache-2.0"
] | null | null | null | //
// NodePermissions.cpp
// libraries/networking/src/
//
// Created by Seth Alves on 2016-6-1.
// Copyright 2016 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include <QDataStream>
#include... | 31.377551 | 100 | 0.687805 | aoighost |
6526b200f981681a2e91882a22410ffda12df384 | 26,875 | cpp | C++ | apps/openmw/mwgui/dialogue.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/openmw/mwgui/dialogue.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/openmw/mwgui/dialogue.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | #include "dialogue.hpp"
#include <boost/bind.hpp>
#include <boost/lexical_cast.hpp>
#include <components/widgets/list.hpp>
#include "../mwbase/environment.hpp"
#include "../mwbase/windowmanager.hpp"
#include "../mwbase/mechanicsmanager.hpp"
#include "../mwbase/world.hpp"
#include "../mwbase/soundmanager.hpp"
#inclu... | 39.464023 | 174 | 0.59587 | Bodillium |
6526e830e806a87443f602b55025c18ebc2f6c8c | 259 | cpp | C++ | Lab11/src/Log.cpp | Inaceat/SP | 983e2de5900db8f36b2b04f95c3b4318f9c8f6fe | [
"MIT"
] | 1 | 2019-12-10T10:34:28.000Z | 2019-12-10T10:34:28.000Z | Lab11/src/Log.cpp | Inaceat/SP | 983e2de5900db8f36b2b04f95c3b4318f9c8f6fe | [
"MIT"
] | null | null | null | Lab11/src/Log.cpp | Inaceat/SP | 983e2de5900db8f36b2b04f95c3b4318f9c8f6fe | [
"MIT"
] | 1 | 2019-11-26T05:20:30.000Z | 2019-11-26T05:20:30.000Z | #include "stdafx.h"
#include "Log.hpp"
std::string logFileName = "F:\\Projects\\SP\\Lab11\\data\\log.txt";
void Log(const std::string& message)
{
std::fstream fs;
fs.open(logFileName, std::ios_base::app);
fs << message << std::endl;
fs.close();
}
| 13.631579 | 67 | 0.644788 | Inaceat |
652a19dc4815ea61e5538f1d1a783cf7a190f0ed | 28,258 | cpp | C++ | src/test/operators/join_index_test.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2021-04-14T11:16:52.000Z | 2021-04-14T11:16:52.000Z | src/test/operators/join_index_test.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | null | null | null | src/test/operators/join_index_test.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2020-11-30T13:11:04.000Z | 2020-11-30T13:11:04.000Z | #include <map>
#include <memory>
#include <numeric>
#include <utility>
#include <vector>
#include "../base_test.hpp"
#include "gtest/gtest.h"
#include "all_type_variant.hpp"
#include "operators/join_index.hpp"
#include "operators/table_scan.hpp"
#include "operators/table_wrapper.hpp"
#include "storage/chunk_encoder.h... | 51.284936 | 120 | 0.69421 | IanJamesMcKay |
652b1d95fffc902d19699cf347c2f24e658467cd | 1,059 | cpp | C++ | hashing/hash_map2.cpp | nancyanand2807/algorithm-ds | 9f79bd9a37bdf858a512ded44aa33040e8a7b9af | [
"MIT"
] | 5 | 2020-10-01T13:08:35.000Z | 2021-02-01T17:51:15.000Z | hashing/hash_map2.cpp | nancyanand2807/algorithm-ds | 9f79bd9a37bdf858a512ded44aa33040e8a7b9af | [
"MIT"
] | 21 | 2020-10-01T12:58:05.000Z | 2020-10-07T11:58:30.000Z | hashing/hash_map2.cpp | sansyrox/summer_of_cpp | e07acee254e25febe5b11bc1adc743f5aaf57cc8 | [
"MIT"
] | 23 | 2020-10-01T12:59:06.000Z | 2020-10-15T13:08:34.000Z | #include<iostream>
#include<bits/stdc++.h>
#include<unordered_map>
using namespace std;
#define ll long long
#define mp make_pair
#define pb push_back
class Fruit{
public:
string name;
int price;
string city;
public:
Fruit (){
}
Fruit(string n, int p, string c){... | 17.949153 | 47 | 0.508971 | nancyanand2807 |
652c9e631367b3e3946bdb8c09e2773ea084e48e | 25,975 | cpp | C++ | Framework/PVREngineUtils/Sprite.cpp | kusharami/PowerVR_Native_SDK | 41557a911316126417ce4c92f1b89396f24f39d6 | [
"MIT"
] | 13 | 2017-07-24T05:12:53.000Z | 2021-06-12T15:35:40.000Z | Framework/PVREngineUtils/Sprite.cpp | kusharami/PowerVR_Native_SDK | 41557a911316126417ce4c92f1b89396f24f39d6 | [
"MIT"
] | null | null | null | Framework/PVREngineUtils/Sprite.cpp | kusharami/PowerVR_Native_SDK | 41557a911316126417ce4c92f1b89396f24f39d6 | [
"MIT"
] | 5 | 2017-11-03T19:23:02.000Z | 2021-12-24T04:12:34.000Z | /*!
\brief Contains implementations of functions for the Sprite_ class and subclasses (Sprite_, Text_, Image_, Font_,
MatrixGroup_)
\file PVREngineUtils/Sprite.cpp
\author PowerVR by Imagination, Developer Technology Team
\copyright Copyright (c) Imagination Technologies Limited.
*/
#include "PVREngineUtils/Sprite.h"
#... | 35.14885 | 138 | 0.711646 | kusharami |
6530d6b580ef63a35f9aa7a80b9c9416ba12c176 | 156 | hpp | C++ | libmannele/libmannele/algorithm.hpp | Wmbat/UVE | cdb4f885f933a4f3fdfe36bd12dc3a7bbb559c1c | [
"MIT"
] | 3 | 2020-03-29T00:16:17.000Z | 2020-06-13T17:42:47.000Z | libmannele/libmannele/algorithm.hpp | Wmbat/UVE | cdb4f885f933a4f3fdfe36bd12dc3a7bbb559c1c | [
"MIT"
] | 6 | 2020-06-23T01:50:25.000Z | 2020-08-01T00:33:56.000Z | libmannele/libmannele/algorithm.hpp | Wmbat/Epona | cdb4f885f933a4f3fdfe36bd12dc3a7bbb559c1c | [
"MIT"
] | null | null | null | #ifndef LIBMANNELE_ALGORITHM_HPP_
#define LIBMANNELE_ALGORITHM_HPP_
#include <libmannele/algorithm/binary_search.hpp>
#endif // LIBMANNELE_ALGORITHM_HPP_
| 22.285714 | 49 | 0.858974 | Wmbat |
653d29038be5beab0759e0cf936fee1a37bf76df | 3,426 | hpp | C++ | include/codegen/include/TMPro/_VerticalAlignmentOptions.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/TMPro/_VerticalAlignmentOptions.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/TMPro/_VerticalAlignmentOptions.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:24 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: System.Enum
#include "System/Enum.hpp"
#include "utils/il2cpp-utils.hpp"
// Completed in... | 54.380952 | 95 | 0.764156 | Futuremappermydud |
653d46593634a90f22ece9571bf863263802d787 | 741 | cpp | C++ | algorithms/tree_node.cpp | paulo-erichsen/leetcode | 78543363f7f938bdbda75de9cdab645daa29466a | [
"MIT"
] | null | null | null | algorithms/tree_node.cpp | paulo-erichsen/leetcode | 78543363f7f938bdbda75de9cdab645daa29466a | [
"MIT"
] | null | null | null | algorithms/tree_node.cpp | paulo-erichsen/leetcode | 78543363f7f938bdbda75de9cdab645daa29466a | [
"MIT"
] | null | null | null | #include "tree_node.hpp"
namespace tree
{
std::vector<std::unique_ptr<TreeNode>> make_tree(std::initializer_list<std::optional<int>> node_values)
{
std::vector<std::unique_ptr<TreeNode>> v;
for (auto opt : node_values)
{
v.emplace_back(opt ? std::make_unique<TreeNode>(opt.value()) : std::unique_pt... | 20.583333 | 103 | 0.481781 | paulo-erichsen |
65461ce0b8d8e95f2a83f2a819009922988d1e28 | 1,249 | hpp | C++ | Jackal/Source/Core/Public/Core/Platform/Api.hpp | CheezBoiger/Jackal | 6c87bf19f6c1cd63f53c815820b32fc71b48bf77 | [
"MIT"
] | null | null | null | Jackal/Source/Core/Public/Core/Platform/Api.hpp | CheezBoiger/Jackal | 6c87bf19f6c1cd63f53c815820b32fc71b48bf77 | [
"MIT"
] | null | null | null | Jackal/Source/Core/Public/Core/Platform/Api.hpp | CheezBoiger/Jackal | 6c87bf19f6c1cd63f53c815820b32fc71b48bf77 | [
"MIT"
] | null | null | null | //
// Copyright (c) Jackal Engine. MIT License.
//
#pragma once
#include "Platform.hpp"
#if JACKAL_PLATFORM == JACKAL_WINDOWS
#if !defined(_MSC_FULL_VER)
#error "This engine is not compatible with any other compiler on windows, except Visual C++"
#endif
#if defined(_DEBUG) && _DEBUG && JACKAL_DEBUG_MODE
#defi... | 32.025641 | 94 | 0.768615 | CheezBoiger |
65493f8c1ab5926f6d13df49ca2d199dc4be3500 | 1,425 | cpp | C++ | Grille.cpp | k2r79/MorpionCpp | c47a4860fb4e06e9537021e6aa48d44753233900 | [
"MIT"
] | null | null | null | Grille.cpp | k2r79/MorpionCpp | c47a4860fb4e06e9537021e6aa48d44753233900 | [
"MIT"
] | null | null | null | Grille.cpp | k2r79/MorpionCpp | c47a4860fb4e06e9537021e6aa48d44753233900 | [
"MIT"
] | null | null | null | #include "Grille.h"
Grille::Grille(int largeur, int hauteur) {
this->largeur = largeur;
this->hauteur = hauteur;
cases = new Case*[largeur];
genererCases();
}
void Grille::genererCases() {
for (int x = 0; x < largeur; x++) {
cases[x] = new Case[hauteur];
}
}
bool Grille::positionnerPion(Coordonnee* coordonn... | 18.037975 | 81 | 0.572632 | k2r79 |
655548633ea7eda0e0d037765ece5e10e39159ff | 11,597 | cpp | C++ | src/modules/SD2/scripts/northrend/ulduar/ulduar/boss_ignis.cpp | Zilvereyes/ServerThree | b61c215b000f199eb884ebc39844ebbbd0703a1b | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | src/modules/SD2/scripts/northrend/ulduar/ulduar/boss_ignis.cpp | Zilvereyes/ServerThree | b61c215b000f199eb884ebc39844ebbbd0703a1b | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | src/modules/SD2/scripts/northrend/ulduar/ulduar/boss_ignis.cpp | Zilvereyes/ServerThree | b61c215b000f199eb884ebc39844ebbbd0703a1b | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | /* Copyright (C) 2006 - 2013 ScriptDev2 <http://www.scriptdev2.com/>
* 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.... | 32.759887 | 155 | 0.589377 | Zilvereyes |
6556249d66cd82d42f4cbca992beb2db41233c5f | 12,123 | cpp | C++ | Examples/SDKLibrary/interface/common/portable/address_space/helpers/browse_names_t.cpp | beeond/robot-examples | afc6b8b10809988b03663d703203625927e66e8f | [
"MIT"
] | 1 | 2018-03-29T21:03:31.000Z | 2018-03-29T21:03:31.000Z | Examples/SDKLibrary/interface/common/portable/address_space/helpers/browse_names_t.cpp | JayeshThamke/robot-examples | afc6b8b10809988b03663d703203625927e66e8f | [
"MIT"
] | null | null | null | Examples/SDKLibrary/interface/common/portable/address_space/helpers/browse_names_t.cpp | JayeshThamke/robot-examples | afc6b8b10809988b03663d703203625927e66e8f | [
"MIT"
] | 4 | 2018-04-05T21:16:55.000Z | 2019-10-15T19:01:46.000Z | /* -----------------------------------------------------------------------------------------------------------------
COPYRIGHT (c) 2009 - 2017
HONEYWELL INC.,
ALL RIGHTS RESERVED
This software is a copyrighted work and/or information protected as a trade
secret. Legal rights of Honeywell Inc. in this software are dist... | 46.626923 | 131 | 0.774396 | beeond |
6562f90449e3248d3736f9b2b005ab028b71d748 | 3,504 | cpp | C++ | library/LazySegmentTree.cpp | arlechann/atcoder | 1af08efa6d3a0e8c75e4eaf13e1eda994820b9e2 | [
"CC0-1.0"
] | null | null | null | library/LazySegmentTree.cpp | arlechann/atcoder | 1af08efa6d3a0e8c75e4eaf13e1eda994820b9e2 | [
"CC0-1.0"
] | null | null | null | library/LazySegmentTree.cpp | arlechann/atcoder | 1af08efa6d3a0e8c75e4eaf13e1eda994820b9e2 | [
"CC0-1.0"
] | null | null | null | #include <functional>
#include <vector>
int roundup_pow2(int n) {
if(!(n & (n - 1))) {
return n;
}
int ret = 1;
while(n > ret) {
ret <<= 1;
}
return ret;
}
template <typename T, typename U>
class LazySegmentTree {
using F = std::function<T(T, T)>;
using G = std::function<T(T, U)>;
using H = std::functio... | 23.675676 | 73 | 0.562785 | arlechann |
6563d2f3524f4a5eeb0f48dc802c9bb7e8749687 | 3,107 | cpp | C++ | src/axes.cpp | zprime/osx-sl-joystick | 35b428b88f1a1a759fe9bcbe4511da9577f42dab | [
"BSD-3-Clause"
] | 1 | 2021-08-06T12:09:22.000Z | 2021-08-06T12:09:22.000Z | src/axes.cpp | zprime/osx-sl-joystick | 35b428b88f1a1a759fe9bcbe4511da9577f42dab | [
"BSD-3-Clause"
] | null | null | null | src/axes.cpp | zprime/osx-sl-joystick | 35b428b88f1a1a759fe9bcbe4511da9577f42dab | [
"BSD-3-Clause"
] | 1 | 2021-08-06T12:09:31.000Z | 2021-08-06T12:09:31.000Z | /*
Copyright (c) 2012, Zebb Prime and The University of Adelaide
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this l... | 37.890244 | 88 | 0.745092 | zprime |
65681f706ff1036f2a1e7e102223b5273714421e | 4,432 | hpp | C++ | dfg/cont/vectorSso.hpp | tc3t/dfglib | 7157973e952234a010da8e9fbd551a912c146368 | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2017-08-01T04:42:29.000Z | 2017-08-01T04:42:29.000Z | dfg/cont/vectorSso.hpp | tc3t/dfglib | 7157973e952234a010da8e9fbd551a912c146368 | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 128 | 2018-04-06T23:01:51.000Z | 2022-03-31T20:19:38.000Z | dfg/cont/vectorSso.hpp | tc3t/dfglib | 7157973e952234a010da8e9fbd551a912c146368 | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 3 | 2018-03-21T01:11:05.000Z | 2021-04-05T19:20:31.000Z | #pragma once
#include "../dfgDefs.hpp"
#include "../cont/contAlg.hpp"
#include <type_traits>
DFG_ROOT_NS_BEGIN { DFG_SUB_NS(cont) {
// Placeholder for properly implemented SSO-vector (=vector with internal buffer).
// NOTE: this is a very quick draft with loads of missing functionality and restricting assumptions s... | 27.190184 | 138 | 0.565208 | tc3t |
656bb1894503d986514baed17f1d17e378643983 | 5,833 | cpp | C++ | dyros_jet_dynamixel_x_interface/src/dxl_handler.cpp | DaegyuLim/dyros_jet | 969233737fb49b42d7fd9e5ec49694953baf4e7d | [
"BSD-2-Clause"
] | 8 | 2018-02-02T07:35:00.000Z | 2019-12-02T13:06:54.000Z | dyros_jet_dynamixel_x_interface/src/dxl_handler.cpp | DonghyunSung-MS/dyros_jet_avatar | 32d04a2bfd55ad5d95cac09fbaa67799dab68fc8 | [
"BSD-2-Clause"
] | 3 | 2018-02-16T23:27:02.000Z | 2021-07-12T04:15:29.000Z | dyros_jet_dynamixel_x_interface/src/dxl_handler.cpp | DonghyunSung-MS/dyros_jet_avatar | 32d04a2bfd55ad5d95cac09fbaa67799dab68fc8 | [
"BSD-2-Clause"
] | 10 | 2018-02-06T23:34:29.000Z | 2022-03-24T20:50:27.000Z | #include <dyros_jet_dynamixel_x_interface/dxl_handler.h>
DXLHandler::DXLHandler(const char* port_name, float protocol_version, int baud_rate)
{
joint_name_map_["hand_finger1"] = 53;
joint_name_map_["hand_finger2"] = 54;
joint_name_map_["hand_thumb_fe"] = 55;
joint_name_map_["hand_thumb_aa"] = 56;
hand_motor... | 30.539267 | 102 | 0.575004 | DaegyuLim |
657995212ce2d82d39bd20676aa0d4e26613e731 | 856 | cpp | C++ | example/02-reference-c++11.cpp | martinmoene/array_view2d | 9ee4cf0eecc4d0e98a6ac3da68d6e4e9e03c71aa | [
"BSL-1.0"
] | 6 | 2016-11-22T12:43:04.000Z | 2022-01-17T03:42:04.000Z | example/02-reference-c++11.cpp | martinmoene/array_view2d | 9ee4cf0eecc4d0e98a6ac3da68d6e4e9e03c71aa | [
"BSL-1.0"
] | null | null | null | example/02-reference-c++11.cpp | martinmoene/array_view2d | 9ee4cf0eecc4d0e98a6ac3da68d6e4e9e03c71aa | [
"BSL-1.0"
] | 1 | 2022-01-17T03:42:09.000Z | 2022-01-17T03:42:09.000Z | // Copyright 2015 by Martin Moene
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// array_view2d is inspired on https://github.com/rhysd/array_view by Linda_pp.
#include "array_view2d.hpp"
#include "array_v... | 26.75 | 104 | 0.622664 | martinmoene |
65857e97714e704319f2874dffc66b879592f3e9 | 1,280 | hpp | C++ | PlanetLab/src/Log.hpp | Thomas-Zorroche/Procedural-Planets | 44f8a9fa3120d11d137e4f499142333e81ed68ce | [
"MIT"
] | null | null | null | PlanetLab/src/Log.hpp | Thomas-Zorroche/Procedural-Planets | 44f8a9fa3120d11d137e4f499142333e81ed68ce | [
"MIT"
] | null | null | null | PlanetLab/src/Log.hpp | Thomas-Zorroche/Procedural-Planets | 44f8a9fa3120d11d137e4f499142333e81ed68ce | [
"MIT"
] | null | null | null | #pragma once
#include "spdlog/spdlog.h"
namespace PlanetLab
{
class Log
{
public:
static void init(int argc, char** argv);
inline static std::shared_ptr<spdlog::logger>& getCeresLogger() { return s_CeresLogger; }
inline static std::shared_ptr<spdlog::logger>& gettPlanetLabLogger() { return s_PlanetLabLogger; }
... | 29.767442 | 99 | 0.714063 | Thomas-Zorroche |
658909dae9e5975b16a969fc8d564db694db52b2 | 774 | cpp | C++ | Stp/Base/System/LibraryStub.cpp | markazmierczak/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | 1 | 2019-07-11T12:47:52.000Z | 2019-07-11T12:47:52.000Z | Stp/Base/System/LibraryStub.cpp | Polonite/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | null | null | null | Stp/Base/System/LibraryStub.cpp | Polonite/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | 1 | 2019-07-11T12:47:53.000Z | 2019-07-11T12:47:53.000Z | // Copyright 2017 Polonite Authors. All rights reserved.
// Distributed under MIT license that can be found in the LICENSE file.
#include "Base/System/Library.h"
namespace stp {
void LibraryLoadError::formatImpl(TextWriter& out) const {
out.Write(message_);
}
NativeLibrary Library::TryLoadNative(const FilePathCha... | 24.1875 | 101 | 0.75323 | markazmierczak |
6590b73f2ff0767089c7e5adb9e596748b507314 | 6,935 | cpp | C++ | heuristics/flowshop/beam/treeheuristic.cpp | jangmys/pbb | b53111ff3016cbf6885e99537ff80528e602bff6 | [
"BSD-3-Clause"
] | 1 | 2022-03-22T17:14:21.000Z | 2022-03-22T17:14:21.000Z | heuristics/flowshop/beam/treeheuristic.cpp | jangmys/pbb | b53111ff3016cbf6885e99537ff80528e602bff6 | [
"BSD-3-Clause"
] | null | null | null | heuristics/flowshop/beam/treeheuristic.cpp | jangmys/pbb | b53111ff3016cbf6885e99537ff80528e602bff6 | [
"BSD-3-Clause"
] | null | null | null | #include "treeheuristic.h"
#include "operator_factory.h"
Treeheuristic::Treeheuristic(instance_abstract* inst) :
tr(std::make_unique<Tree>(inst,inst->size)),
prune(OperatorFactory::createPruning(arguments::findAll)),
branch(OperatorFactory::createBranching(arguments::branchingMode,inst->size,99999)),
... | 29.510638 | 127 | 0.522567 | jangmys |
6597c750e088838a786e19d0ea7de7734e573d4f | 647 | cpp | C++ | maximum length of repeated subarrayDP.cpp | mohitthakur007/Data-Structures-Algorithms-Code-Dump | 1f5de5c236f04c6e5d08426cb8c5df209fb44015 | [
"MIT"
] | null | null | null | maximum length of repeated subarrayDP.cpp | mohitthakur007/Data-Structures-Algorithms-Code-Dump | 1f5de5c236f04c6e5d08426cb8c5df209fb44015 | [
"MIT"
] | null | null | null | maximum length of repeated subarrayDP.cpp | mohitthakur007/Data-Structures-Algorithms-Code-Dump | 1f5de5c236f04c6e5d08426cb8c5df209fb44015 | [
"MIT"
] | null | null | null | //https://leetcode.com/problems/maximum-length-of-repeated-subarray/
//brute force approach --O(N^3)--> N.A.
int findLength(vector<int>& A, vector<int>& B) {int p=0;
for(int i=0;i<A.size();i++){int j=0;
while(j<B.size()&&A[i]!=B[j])
j++;
while(j<B.size()){
if(j<B... | 32.35 | 68 | 0.347759 | mohitthakur007 |
6597f8d713b5f8f2314554904196a141b0dfd30b | 526 | cpp | C++ | leetcode/2020/december/practice/88-MergeSortedArray.cpp | pol-alok/Solvify | c0f3913420a4a3a3faa34848038a3cc942628b08 | [
"MIT"
] | null | null | null | leetcode/2020/december/practice/88-MergeSortedArray.cpp | pol-alok/Solvify | c0f3913420a4a3a3faa34848038a3cc942628b08 | [
"MIT"
] | null | null | null | leetcode/2020/december/practice/88-MergeSortedArray.cpp | pol-alok/Solvify | c0f3913420a4a3a3faa34848038a3cc942628b08 | [
"MIT"
] | 2 | 2021-02-23T06:54:22.000Z | 2021-02-28T15:37:23.000Z | #include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
class Solution {
public:
void merge(vector<int>& nums1, int m, vector<int>& nums2, int n) {
for (int i = 0; i < n; i++) {
nums1[i + m] = nums2[i];
}
sort(nums1.begin(), nums1.end());
}
};
int main... | 18.785714 | 70 | 0.539924 | pol-alok |
65994934670b8e9b6c225da1f900e4572cc94e0d | 1,475 | cpp | C++ | src/game/cmd/Rename.cpp | jumptohistory/jaymod | 92d0a0334ac27da94b12280b0b42b615b8813c23 | [
"Apache-2.0"
] | 25 | 2016-05-27T11:53:58.000Z | 2021-10-17T00:13:41.000Z | src/game/cmd/Rename.cpp | jumptohistory/jaymod | 92d0a0334ac27da94b12280b0b42b615b8813c23 | [
"Apache-2.0"
] | 1 | 2016-07-09T05:25:03.000Z | 2016-07-09T05:25:03.000Z | src/game/cmd/Rename.cpp | jumptohistory/jaymod | 92d0a0334ac27da94b12280b0b42b615b8813c23 | [
"Apache-2.0"
] | 16 | 2016-05-28T23:06:50.000Z | 2022-01-26T13:47:12.000Z | #include <bgame/impl.h>
namespace cmd {
///////////////////////////////////////////////////////////////////////////////
Rename::Rename()
: AbstractBuiltin( "rename" )
{
__usage << xvalue( "!" + _name ) << ' ' << xvalue( "PLAYER" ) << ' ' << xvalue( "NEW_NAME" );
__descr << "Change a specific player's nam... | 25.877193 | 97 | 0.484068 | jumptohistory |
4f1ce6473f66a4d17835887380c00bbe7d304bb4 | 21,741 | cpp | C++ | src/engine/plugins/tile.cpp | sandeepgadhwal/osrm-backend-distance-niemeier-PSI | 951ea182235c673fd929ee29dacbe65cefe06822 | [
"BSD-2-Clause"
] | null | null | null | src/engine/plugins/tile.cpp | sandeepgadhwal/osrm-backend-distance-niemeier-PSI | 951ea182235c673fd929ee29dacbe65cefe06822 | [
"BSD-2-Clause"
] | null | null | null | src/engine/plugins/tile.cpp | sandeepgadhwal/osrm-backend-distance-niemeier-PSI | 951ea182235c673fd929ee29dacbe65cefe06822 | [
"BSD-2-Clause"
] | null | null | null | #include "engine/plugins/tile.hpp"
#include "engine/plugins/plugin_base.hpp"
#include "util/coordinate_calculation.hpp"
#include "util/vector_tile.hpp"
#include "util/web_mercator.hpp"
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#... | 43.832661 | 109 | 0.578584 | sandeepgadhwal |
4f1e346661a199ef68450a2d6160f07db1ce7d38 | 1,237 | hpp | C++ | cpp/src/samchon/protocol/IListener.hpp | wydingez/truck-packer | c59d2ec322b08ac9ba773616a886a575d2af6461 | [
"BSD-3-Clause"
] | 111 | 2016-04-08T14:10:15.000Z | 2020-12-21T12:25:10.000Z | cpp/src/samchon/protocol/IListener.hpp | wydingez/truck-packer | c59d2ec322b08ac9ba773616a886a575d2af6461 | [
"BSD-3-Clause"
] | 16 | 2016-05-27T05:41:56.000Z | 2020-06-23T14:55:00.000Z | cpp/src/samchon/protocol/IListener.hpp | wydingez/truck-packer | c59d2ec322b08ac9ba773616a886a575d2af6461 | [
"BSD-3-Clause"
] | 49 | 2016-10-27T09:45:35.000Z | 2020-12-21T12:25:13.000Z | #pragma once
#include <samchon/API.hpp>
#include <samchon/protocol/IProtocol.hpp>
namespace samchon
{
namespace protocol
{
/**
* An interface for {@link Invoke} message chain.
*
* {@link IProtocol} is an interface for {@link Invoke} message, which is standard message of network I/O in
* *Samchon Framework*, ... | 37.484848 | 121 | 0.738884 | wydingez |
4f1f2d48b844932845961dfb1d6ed798bae86b0a | 14,222 | cpp | C++ | media_driver/media_driver_next/agnostic/common/shared/mediacontext/media_context.cpp | Guangyao-Bai/media-driver | 5ecdfb2a7aea5645f271def3a5209e1fac88ad43 | [
"MIT",
"Intel",
"BSD-3-Clause"
] | null | null | null | media_driver/media_driver_next/agnostic/common/shared/mediacontext/media_context.cpp | Guangyao-Bai/media-driver | 5ecdfb2a7aea5645f271def3a5209e1fac88ad43 | [
"MIT",
"Intel",
"BSD-3-Clause"
] | null | null | null | media_driver/media_driver_next/agnostic/common/shared/mediacontext/media_context.cpp | Guangyao-Bai/media-driver | 5ecdfb2a7aea5645f271def3a5209e1fac88ad43 | [
"MIT",
"Intel",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2018, Intel Corporation
*
* 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... | 33.228972 | 161 | 0.664956 | Guangyao-Bai |
4f206dbbcb32ddfd6f0bb5addabd61c0012af795 | 22,559 | cpp | C++ | sycl/source/detail/program_impl.cpp | kathywar/llvm | 5589fdd236b26340d86b3558480296b90bbf744a | [
"Apache-2.0"
] | null | null | null | sycl/source/detail/program_impl.cpp | kathywar/llvm | 5589fdd236b26340d86b3558480296b90bbf744a | [
"Apache-2.0"
] | null | null | null | sycl/source/detail/program_impl.cpp | kathywar/llvm | 5589fdd236b26340d86b3558480296b90bbf744a | [
"Apache-2.0"
] | null | null | null | //==----- program_impl.cpp --- SYCL program implementation -----------------==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 38.562393 | 80 | 0.672858 | kathywar |
4f210a0d7d75fbb0f850624e3292528e668c5c4a | 3,228 | cpp | C++ | src/tasks.cpp | Algorithms-and-Data-Structures-2021/h00_cpp_basics-Giknyx | 0cefb041e1b40206850cefb445f8ddf935c0c779 | [
"MIT"
] | null | null | null | src/tasks.cpp | Algorithms-and-Data-Structures-2021/h00_cpp_basics-Giknyx | 0cefb041e1b40206850cefb445f8ddf935c0c779 | [
"MIT"
] | null | null | null | src/tasks.cpp | Algorithms-and-Data-Structures-2021/h00_cpp_basics-Giknyx | 0cefb041e1b40206850cefb445f8ddf935c0c779 | [
"MIT"
] | null | null | null | #include <iostream> // cout
#include <algorithm> // copy, fill
#include "tasks.hpp"
// ИСПОЛЬЗОВАНИЕ ЛЮБЫХ ДРУГИХ БИБЛИОТЕК НЕ СОВЕТУЕТСЯ И МОЖЕТ ПОВЛИЯТЬ НА ВАШИ БАЛЛЫ
using std::cout;
using std::fill;
using std::copy;
// Задание 1
void swap_args(int *lhs, int *rhs) {
if (!lhs || !rhs) {
return;
... | 24.454545 | 133 | 0.524783 | Algorithms-and-Data-Structures-2021 |
4f26335d5d14693f7a9ea3fda5f908255b9dba96 | 1,037 | cpp | C++ | src/game/server/hl2/item_battery.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/game/server/hl2/item_battery.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/game/server/hl2/item_battery.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Handling for the suit batteries.
//
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
#include "hl2_player.h"
#include "basecombatweapon.h"
#include "gamerul... | 22.543478 | 81 | 0.640309 | cstom4994 |
4f26ba13bfadef656c4997b20d7cbcee6325e4b8 | 36,392 | cpp | C++ | test-suite/inflationcapflooredcoupon.cpp | quantosaurosProject/quantLib | 84b49913d3940cf80d6de8f70185867373f45e8d | [
"BSD-3-Clause"
] | null | null | null | test-suite/inflationcapflooredcoupon.cpp | quantosaurosProject/quantLib | 84b49913d3940cf80d6de8f70185867373f45e8d | [
"BSD-3-Clause"
] | null | null | null | test-suite/inflationcapflooredcoupon.cpp | quantosaurosProject/quantLib | 84b49913d3940cf80d6de8f70185867373f45e8d | [
"BSD-3-Clause"
] | 1 | 2022-03-29T05:44:27.000Z | 2022-03-29T05:44:27.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2003 RiskMap srl
Copyright (C) 2004, 2005, 2006, 2007, 2008 StatPro Italia srl
Copyright (C) 2009 Chris Kenyon
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts an... | 45.039604 | 105 | 0.537069 | quantosaurosProject |
4f2ecb91dc4b6cd15819db2fa16d06563eada633 | 15,242 | cpp | C++ | src/ligand.cpp | HongjianLi/igrow | 1b136e609ff9fb74694b67f38c1f55c5cf38f7f8 | [
"Apache-2.0"
] | 2 | 2019-08-09T05:30:29.000Z | 2020-06-08T18:34:50.000Z | src/ligand.cpp | HongjianLi/igrow | 1b136e609ff9fb74694b67f38c1f55c5cf38f7f8 | [
"Apache-2.0"
] | null | null | null | src/ligand.cpp | HongjianLi/igrow | 1b136e609ff9fb74694b67f38c1f55c5cf38f7f8 | [
"Apache-2.0"
] | 3 | 2015-04-29T10:13:23.000Z | 2021-04-07T04:02:37.000Z | #include <iomanip>
#include <boost/filesystem/fstream.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/algorithm/string.hpp>
#include "array.hpp"
#include "ligand.hpp"
using namespace boost;
using namespace boost::filesystem;
ligand::ligand(const path& p) : p(p), num_hb_donors(0), num_hb_accept... | 39.182519 | 224 | 0.656607 | HongjianLi |
4f311626dc986fd9755f98f6147427072c71ed32 | 10,165 | cpp | C++ | openstudiocore/src/utilities/data/Test/Matrix_GTest.cpp | hongyuanjia/OpenStudio | 6cc52f1b66c069cf13f2b6ca2a0cc3c137c37cf0 | [
"MIT"
] | 1 | 2019-04-21T15:38:54.000Z | 2019-04-21T15:38:54.000Z | openstudiocore/src/utilities/data/Test/Matrix_GTest.cpp | hongyuanjia/OpenStudio | 6cc52f1b66c069cf13f2b6ca2a0cc3c137c37cf0 | [
"MIT"
] | null | null | null | openstudiocore/src/utilities/data/Test/Matrix_GTest.cpp | hongyuanjia/OpenStudio | 6cc52f1b66c069cf13f2b6ca2a0cc3c137c37cf0 | [
"MIT"
] | 1 | 2019-07-18T06:52:29.000Z | 2019-07-18T06:52:29.000Z | /***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are perm... | 29.985251 | 120 | 0.609247 | hongyuanjia |
4f31ae8ac724e32ec368c800b8c4bcecbccef6e4 | 1,229 | cpp | C++ | Data Structures/Binary Search Trees/1. Basics/Construct BST from a Sorted Array.cpp | kunal299/Data-Structures-and-Algorithms | 5fed697211566108f732762768da938cfe83ec5f | [
"MIT"
] | 1 | 2022-01-13T14:04:58.000Z | 2022-01-13T14:04:58.000Z | Data Structures/Binary Search Trees/1. Basics/Construct BST from a Sorted Array.cpp | kunal299/Data-Structures-and-Algorithms | 5fed697211566108f732762768da938cfe83ec5f | [
"MIT"
] | null | null | null | Data Structures/Binary Search Trees/1. Basics/Construct BST from a Sorted Array.cpp | kunal299/Data-Structures-and-Algorithms | 5fed697211566108f732762768da938cfe83ec5f | [
"MIT"
] | null | null | null | /*
Code: Construct BST from a Sorted Array
Given a sorted integer array A of size n, which contains all unique elements. You need to construct a balanced BST from this input array. Return the root of constructed BST.
Note: If array size is even, take first mid as root.
Input format:
The first line of input contains a... | 27.311111 | 173 | 0.737185 | kunal299 |
4f35122d30b3da9235814fad38189b3a93437fb0 | 2,978 | cpp | C++ | projects/Test/TestFunction.cpp | martinmoene/PhysUnits-CT | 11ccc74decf7f8d36ef3e93be06c3253aed2138b | [
"BSL-1.0"
] | 10 | 2015-03-20T06:41:13.000Z | 2020-06-13T15:45:33.000Z | projects/Test/TestFunction.cpp | martinmoene/PhysUnits-CT | 11ccc74decf7f8d36ef3e93be06c3253aed2138b | [
"BSL-1.0"
] | null | null | null | projects/Test/TestFunction.cpp | martinmoene/PhysUnits-CT | 11ccc74decf7f8d36ef3e93be06c3253aed2138b | [
"BSL-1.0"
] | 8 | 2016-05-07T11:55:46.000Z | 2020-01-02T22:05:50.000Z | /*
* TestFunction.cpp
*
* Created by Martin on 27 December 2012.
* Copyright 2012 Universiteit Leiden. All rights reserved.
*
* Distributed under the Boost Software License, Version 1.0. (See accompanying
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#include "TestUtil.hpp"
#inclu... | 31.020833 | 89 | 0.594359 | martinmoene |
4f37979f19150d9adbd447ebbfef4bbe0f9a3993 | 32,462 | cpp | C++ | gdal/port/cpl_vsi_mem.cpp | mloskot/gdal-old-mirror-with-jpegxr-pr | 88409871d445a1ed7c973533cf2075f904a39f90 | [
"MIT"
] | 1 | 2019-12-09T06:04:40.000Z | 2019-12-09T06:04:40.000Z | gdal/port/cpl_vsi_mem.cpp | mloskot/gdal-old-mirror-with-jpegxr-pr | 88409871d445a1ed7c973533cf2075f904a39f90 | [
"MIT"
] | 3 | 2019-02-27T00:43:06.000Z | 2019-06-28T21:57:10.000Z | gdal/port/cpl_vsi_mem.cpp | mloskot/gdal-old-mirror-with-jpegxr-pr | 88409871d445a1ed7c973533cf2075f904a39f90 | [
"MIT"
] | 1 | 2021-04-26T14:47:38.000Z | 2021-04-26T14:47:38.000Z | /******************************************************************************
*
* Project: VSI Virtual File System
* Purpose: Implementation of Memory Buffer virtual IO functions.
* Author: Frank Warmerdam, warmerdam@pobox.com
*
******************************************************************************
... | 32.42957 | 80 | 0.470735 | mloskot |
4f38d2f296094db7f83053bbd4c49bfc4e149539 | 4,278 | cpp | C++ | src/peer_class.cpp | usertex/lib2 | c7eb76593cb328c25f762a976485abbfd38694bb | [
"BSL-1.0",
"BSD-3-Clause"
] | 4 | 2016-04-26T03:43:54.000Z | 2016-11-17T08:09:04.000Z | src/peer_class.cpp | usertex/lib2 | c7eb76593cb328c25f762a976485abbfd38694bb | [
"BSL-1.0",
"BSD-3-Clause"
] | 17 | 2015-01-05T21:06:22.000Z | 2015-12-07T20:45:44.000Z | src/peer_class.cpp | usertex/lib2 | c7eb76593cb328c25f762a976485abbfd38694bb | [
"BSL-1.0",
"BSD-3-Clause"
] | 3 | 2016-04-26T03:43:55.000Z | 2020-11-06T11:02:08.000Z | /*
Copyright (c) 2011-2016, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | 33.685039 | 103 | 0.750584 | usertex |
4f3d0b3bc523b61b03fd0a43e2baa221b8a832f6 | 36,664 | cc | C++ | source/server/listener_impl.cc | irvifa/envoy | 03f46bbdafae57a510d3a7fd8aa912efb9c71db3 | [
"Apache-2.0"
] | 218 | 2019-05-10T01:11:27.000Z | 2022-01-12T07:12:59.000Z | source/server/listener_impl.cc | irvifa/envoy | 03f46bbdafae57a510d3a7fd8aa912efb9c71db3 | [
"Apache-2.0"
] | 624 | 2020-10-19T12:21:29.000Z | 2021-05-09T22:47:00.000Z | source/server/listener_impl.cc | irvifa/envoy | 03f46bbdafae57a510d3a7fd8aa912efb9c71db3 | [
"Apache-2.0"
] | 93 | 2019-05-10T00:15:21.000Z | 2021-10-14T09:32:30.000Z | #include "server/listener_impl.h"
#include "envoy/config/core/v3/base.pb.h"
#include "envoy/config/listener/v3/listener.pb.h"
#include "envoy/config/listener/v3/listener_components.pb.h"
#include "envoy/extensions/filters/listener/proxy_protocol/v3/proxy_protocol.pb.h"
#include "envoy/network/exception.h"
#include "en... | 48.242105 | 100 | 0.729271 | irvifa |
4f3d4664c785153e680c0dcec59c8dc6b9e700f2 | 1,829 | hpp | C++ | src/storage/tree/Nyms.hpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | src/storage/tree/Nyms.hpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | src/storage/tree/Nyms.hpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | // Copyright (c) 2018 The Open-Transactions developers
// 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/MPL/2.0/.
#pragma once
#include "Internal.hpp"
#include "opentxs/api/s... | 26.897059 | 80 | 0.687808 | nopdotcom |
4f3eb7959d14f2d9c41a9bf26636757733a1d16f | 822 | hpp | C++ | src/GameState.hpp | cloudncali/Arboris | 7c9d9f16e5d9fde51e5adacc5ad97ad0fba0fa57 | [
"MIT"
] | null | null | null | src/GameState.hpp | cloudncali/Arboris | 7c9d9f16e5d9fde51e5adacc5ad97ad0fba0fa57 | [
"MIT"
] | null | null | null | src/GameState.hpp | cloudncali/Arboris | 7c9d9f16e5d9fde51e5adacc5ad97ad0fba0fa57 | [
"MIT"
] | null | null | null | #ifndef GAME_HPP_INCLUDED
#define GAME_HPP_INCLUDED
#include <SFML/Graphics.hpp>
#include "Application.hpp"
#include "TextureAsset.hpp"
#include "FontAsset.hpp"
#include <GExL/utils/TTimer.hpp>
#include "IState.hpp"
#include "tmxparser.h"
#include "Tilemap.hpp"
class GameState : public IState
{
public:
... | 22.833333 | 39 | 0.73236 | cloudncali |
4f41d7a67656c17111a902b5a4af342c08d6996d | 5,320 | cxx | C++ | VTK/Filtering/vtkImplicitSum.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | 1 | 2021-07-31T19:38:03.000Z | 2021-07-31T19:38:03.000Z | VTK/Filtering/vtkImplicitSum.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | null | null | null | VTK/Filtering/vtkImplicitSum.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | 2 | 2019-01-22T19:51:40.000Z | 2021-07-31T19:38:05.000Z | /*=========================================================================
Program: Visualization Toolkit
Module: $RCSfile$
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distrib... | 27.42268 | 78 | 0.543421 | matthb2 |
4f4839b5f658ae1bc37d42c864403151418e05ae | 15,366 | cc | C++ | examples/pxScene2d/external/libnode-v8.9.4/deps/v8/src/builtins/builtins-call-gen.cc | maciej-barczak-red/pxCore | a4c320cfa0f8c5629d7de34ddb2c393b18ac2a50 | [
"Apache-2.0"
] | 2 | 2019-08-12T16:00:15.000Z | 2020-08-29T15:39:23.000Z | src/builtins/builtins-call-gen.cc | Acidburn0zzz/v8-1 | 0dd6885de60fdba36532e068a31693c870d8b50b | [
"BSD-3-Clause"
] | 2 | 2019-03-22T11:02:32.000Z | 2019-04-05T19:03:41.000Z | src/builtins/builtins-call-gen.cc | Acidburn0zzz/v8-1 | 0dd6885de60fdba36532e068a31693c870d8b50b | [
"BSD-3-Clause"
] | 1 | 2020-11-18T19:12:00.000Z | 2020-11-18T19:12:00.000Z | // Copyright 2017 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/builtins/builtins-call-gen.h"
#include "src/builtins/builtins-utils-gen.h"
#include "src/builtins/builtins.h"
#include "src/globals.h"
#i... | 38.511278 | 80 | 0.719901 | maciej-barczak-red |
4f486bf8390f9f08819560cb5114b7139577e6d3 | 7,002 | hpp | C++ | apps/client_server/client/client.hpp | fetchai/research-dvrf | 943b335e1733bb9b2ef403e4f8237dfdc4f93952 | [
"Apache-2.0"
] | 16 | 2020-02-08T00:04:58.000Z | 2022-01-18T11:42:07.000Z | apps/client_server/client/client.hpp | fetchai/research-dvrf | 943b335e1733bb9b2ef403e4f8237dfdc4f93952 | [
"Apache-2.0"
] | null | null | null | apps/client_server/client/client.hpp | fetchai/research-dvrf | 943b335e1733bb9b2ef403e4f8237dfdc4f93952 | [
"Apache-2.0"
] | 4 | 2021-07-20T08:56:08.000Z | 2022-01-03T01:48:12.000Z | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2019-2020 Fetch.AI Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the Licen... | 35.363636 | 118 | 0.611254 | fetchai |
4f497b03d9bddbefad7ad5f4512897556ceab930 | 655 | cpp | C++ | fsc/src/python_module.cpp | gbucknell/fsc-sdk | 11b7cda4eea35ec53effbe37382f4b28020cd59d | [
"MIT"
] | null | null | null | fsc/src/python_module.cpp | gbucknell/fsc-sdk | 11b7cda4eea35ec53effbe37382f4b28020cd59d | [
"MIT"
] | null | null | null | fsc/src/python_module.cpp | gbucknell/fsc-sdk | 11b7cda4eea35ec53effbe37382f4b28020cd59d | [
"MIT"
] | null | null | null | // Copyright Joel de Guzman 2002-2004. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
// Hello World Example from the tutorial
// [Joel de Guzman 10/9/2002]
#include "precompiled_header.h"
#include <... | 23.392857 | 74 | 0.70687 | gbucknell |
4f499d59754ba76b62481de407f99d79a1336f17 | 330 | hpp | C++ | RoundUp.hpp | NickStrupat/Aligned | 3ab310fd6a8b820763766f38c07193ddb7ecb1fc | [
"MIT"
] | 38 | 2015-03-07T05:25:16.000Z | 2021-06-05T05:58:38.000Z | RoundUp.hpp | NickStrupat/Aligned | 3ab310fd6a8b820763766f38c07193ddb7ecb1fc | [
"MIT"
] | 2 | 2016-03-03T17:29:06.000Z | 2017-06-04T18:09:38.000Z | RoundUp.hpp | NickStrupat/Aligned | 3ab310fd6a8b820763766f38c07193ddb7ecb1fc | [
"MIT"
] | 2 | 2017-07-25T12:43:31.000Z | 2018-08-10T11:49:09.000Z | #ifndef ROUNDUP_HPP_INCLUDED
#define ROUNDUP_HPP_INCLUDED
#define ROUND_UP(from, to) (from + to - 1 - (from - 1) % to)
template<typename T>
inline T roundUp(T from, T to) {
return ROUND_UP(from, to);
}
template<typename T, T From, T To>
struct RoundUp {
static const T Result = ROUND_UP(From, To);
};
#undef ROUND_... | 18.333333 | 60 | 0.706061 | NickStrupat |
4f4b749a283ab5a674da7fa6475c5222784f6736 | 3,432 | hpp | C++ | solver.hpp | yasminGedanken/Cpp_solver | 10c6c4598fdbb16b1f8be9414ddcb0412135c84e | [
"MIT"
] | null | null | null | solver.hpp | yasminGedanken/Cpp_solver | 10c6c4598fdbb16b1f8be9414ddcb0412135c84e | [
"MIT"
] | null | null | null | solver.hpp | yasminGedanken/Cpp_solver | 10c6c4598fdbb16b1f8be9414ddcb0412135c84e | [
"MIT"
] | null | null | null |
using namespace std;
#include <math.h>
#include <complex>
#include <iostream>
namespace solver
{
class RealVariable {
private:
double _a;
double _b;
double _c;
public:
RealVariable(const double& a = 0.0, const double& b = 1.0, const double& c = 0.0)
:_a(a),... | 33 | 119 | 0.638986 | yasminGedanken |
4f4f0e82bda72d7f8bf2bc305fd043169ee6b37c | 2,514 | hh | C++ | cpp/src/hub/solver/astar/astar.hh | POPOGO/scikit-decide | 1128499c57aae1c989815b6fca4a29b96994dc12 | [
"MIT"
] | null | null | null | cpp/src/hub/solver/astar/astar.hh | POPOGO/scikit-decide | 1128499c57aae1c989815b6fca4a29b96994dc12 | [
"MIT"
] | null | null | null | cpp/src/hub/solver/astar/astar.hh | POPOGO/scikit-decide | 1128499c57aae1c989815b6fca4a29b96994dc12 | [
"MIT"
] | 1 | 2021-02-26T17:31:51.000Z | 2021-02-26T17:31:51.000Z | /* Copyright (c) AIRBUS and its affiliates.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#ifndef SKDECIDE_ASTAR_HH
#define SKDECIDE_ASTAR_HH
#include <functional>
#include <memory>
#include <unordered_set>
#include <queue>
#include <l... | 29.232558 | 110 | 0.689737 | POPOGO |
4f51e2890a5bd46e253703bd70079d0a514687df | 446,242 | cpp | C++ | src/coreclr/src/jit/lsra.cpp | swaroop-sridhar/runtime | d0efddd932f6fb94c3e9436ab393fc390c7b2da9 | [
"MIT"
] | 11 | 2021-10-21T07:56:23.000Z | 2022-03-31T15:08:10.000Z | src/coreclr/src/jit/lsra.cpp | swaroop-sridhar/runtime | d0efddd932f6fb94c3e9436ab393fc390c7b2da9 | [
"MIT"
] | 1 | 2020-11-17T09:52:30.000Z | 2020-11-17T09:52:30.000Z | src/coreclr/src/jit/lsra.cpp | swaroop-sridhar/runtime | d0efddd932f6fb94c3e9436ab393fc390c7b2da9 | [
"MIT"
] | 2 | 2021-05-17T22:12:46.000Z | 2021-05-19T06:21:16.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
L... | 39.775559 | 128 | 0.580559 | swaroop-sridhar |
4f547c50aeddfaec5e6048fd4f7797ab0bdcb0cc | 1,212 | cpp | C++ | Source/Raspbian/udpTelemetrySender/CpuStats.cpp | dsbeach/GliderScoreRemote | d8864f2e3b4cf8c56ff45d152d14fc7558ab77bc | [
"MIT"
] | null | null | null | Source/Raspbian/udpTelemetrySender/CpuStats.cpp | dsbeach/GliderScoreRemote | d8864f2e3b4cf8c56ff45d152d14fc7558ab77bc | [
"MIT"
] | null | null | null | Source/Raspbian/udpTelemetrySender/CpuStats.cpp | dsbeach/GliderScoreRemote | d8864f2e3b4cf8c56ff45d152d14fc7558ab77bc | [
"MIT"
] | null | null | null | /*
* CpuStats.cpp
*
* Created on: Feb 16, 2018
* Author: dbeach
*/
#include "CpuStats.h"
using namespace std;
CpuStats::CpuStats() {
// TODO Auto-generated constructor stub
}
CpuStats::~CpuStats() {
// TODO Auto-generated destructor stub
}
double CpuStats::GetTempF() {
string val;
string preparedTe... | 18.9375 | 108 | 0.676568 | dsbeach |
4f54a585794c5a515219f8af24f8b898927cb22a | 3,139 | cpp | C++ | src/cl_dll/flashlight.cpp | SolarisBravo/Half-Life-VR | f21db516a3fad10688307259eee2e8370b6c0b71 | [
"Unlicense"
] | 1 | 2021-04-03T16:52:33.000Z | 2021-04-03T16:52:33.000Z | src/cl_dll/flashlight.cpp | SolarisBravo/Half-Life-VR | f21db516a3fad10688307259eee2e8370b6c0b71 | [
"Unlicense"
] | null | null | null | src/cl_dll/flashlight.cpp | SolarisBravo/Half-Life-VR | f21db516a3fad10688307259eee2e8370b6c0b71 | [
"Unlicense"
] | null | null | null | /***
*
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* object ... | 20.651316 | 82 | 0.698949 | SolarisBravo |
4f56706e6c4b5884eb6784cd791d845bcce48263 | 2,761 | cpp | C++ | src/core/layers/interfaceLogger/interfaceLoggerDepthStencilState.cpp | Zakhrov/pal | c5bf5ff777e90f143a9e5b59e485cb2169e29e79 | [
"MIT"
] | null | null | null | src/core/layers/interfaceLogger/interfaceLoggerDepthStencilState.cpp | Zakhrov/pal | c5bf5ff777e90f143a9e5b59e485cb2169e29e79 | [
"MIT"
] | null | null | null | src/core/layers/interfaceLogger/interfaceLoggerDepthStencilState.cpp | Zakhrov/pal | c5bf5ff777e90f143a9e5b59e485cb2169e29e79 | [
"MIT"
] | null | null | null | /*
***********************************************************************************************************************
*
* Copyright (c) 2016-2019 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... | 40.602941 | 120 | 0.610286 | Zakhrov |
4f580458024e532753ab76f0cf16811733e7f778 | 1,308 | cpp | C++ | opencl/test/unit_test/os_interface/linux/performance_counters_linux_tests.cpp | scott-snyder/compute-runtime | 9b3dd97f8190167482116f36a7f2458ba4705fbf | [
"MIT"
] | 1 | 2020-09-03T17:10:38.000Z | 2020-09-03T17:10:38.000Z | opencl/test/unit_test/os_interface/linux/performance_counters_linux_tests.cpp | scott-snyder/compute-runtime | 9b3dd97f8190167482116f36a7f2458ba4705fbf | [
"MIT"
] | null | null | null | opencl/test/unit_test/os_interface/linux/performance_counters_linux_tests.cpp | scott-snyder/compute-runtime | 9b3dd97f8190167482116f36a7f2458ba4705fbf | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/os_interface/linux/drm_neo.h"
#include "shared/source/os_interface/linux/os_interface.h"
#include "opencl/source/os_interface/linux/performance_counters_linux.h"
#include "opencl/test/unit_test/os_interfa... | 31.902439 | 118 | 0.751529 | scott-snyder |
4f5bdbe1d5aaabd34abe7817ea3c10f4fc187d7f | 16,285 | hpp | C++ | libs/boost_1_72_0/boost/fusion/container/generation/detail/preprocessed/make_vector10.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/fusion/container/generation/detail/preprocessed/make_vector10.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/fusion/container/generation/detail/preprocessed/make_vector10.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | /*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
This is an auto-generated file. Do n... | 50.890625 | 80 | 0.653792 | henrywarhurst |
4f5c1622d892a8a177817ed7d881ba9465d11129 | 7,040 | cpp | C++ | cpputest/src/CppUTestExt/CodeMemoryReportFormatter.cpp | rookiecalf/IQmath_fake | 29102fac29f21fecfb694843d2e24be8dfdb38c2 | [
"Apache-2.0"
] | 1 | 2017-09-04T03:27:31.000Z | 2017-09-04T03:27:31.000Z | cpputest/src/CppUTestExt/CodeMemoryReportFormatter.cpp | rookiecalf/IQmath_fake | 29102fac29f21fecfb694843d2e24be8dfdb38c2 | [
"Apache-2.0"
] | null | null | null | cpputest/src/CppUTestExt/CodeMemoryReportFormatter.cpp | rookiecalf/IQmath_fake | 29102fac29f21fecfb694843d2e24be8dfdb38c2 | [
"Apache-2.0"
] | 1 | 2021-12-02T12:45:51.000Z | 2021-12-02T12:45:51.000Z | /*
* Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright... | 40.693642 | 199 | 0.774432 | rookiecalf |
4f5d3e2b5ef7272282d745fd0e6fe144bb64d1f9 | 14,687 | cpp | C++ | sounddev/SoundDeviceUtilities.cpp | sitomani/openmpt | 913396209c22a1fc6dfb29f0e34893dfb0ffa591 | [
"BSD-3-Clause"
] | null | null | null | sounddev/SoundDeviceUtilities.cpp | sitomani/openmpt | 913396209c22a1fc6dfb29f0e34893dfb0ffa591 | [
"BSD-3-Clause"
] | null | null | null | sounddev/SoundDeviceUtilities.cpp | sitomani/openmpt | 913396209c22a1fc6dfb29f0e34893dfb0ffa591 | [
"BSD-3-Clause"
] | null | null | null | /*
* SoundDeviceUtilities.cpp
* ------------------------
* Purpose: Sound device utilities.
* Notes : (currently none)
* Authors: Olivier Lapicque
* OpenMPT Devs
* The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
*/
#include "stdafx.h"
#include "SoundDevice.... | 23.129134 | 232 | 0.723701 | sitomani |
4f611820fb3b7f2dae8b724d94c8c3eae25bf24f | 467 | hh | C++ | src/d7seg.hh | KusaReMKN/codella | 8c14f1feb6cf1b06494ffa82d73660067dc37775 | [
"MIT"
] | null | null | null | src/d7seg.hh | KusaReMKN/codella | 8c14f1feb6cf1b06494ffa82d73660067dc37775 | [
"MIT"
] | null | null | null | src/d7seg.hh | KusaReMKN/codella | 8c14f1feb6cf1b06494ffa82d73660067dc37775 | [
"MIT"
] | null | null | null | #pragma once
#ifndef CODELLA_D7SEG_HH
#define CODELLA_D7SEG_HH
#ifndef __cplusplus
#error C++ Required.
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdexcept>
#include "armadillo.hh"
namespace armadillo {
class d7seg {
static const char *const D7SEG_PATH;... | 14.151515 | 38 | 0.710921 | KusaReMKN |
4f636ba409e69ef103dcbf08f3be1861b91c957f | 3,189 | cpp | C++ | src/TupleUnpacker.cpp | sam-roth/autobind | df230f43335f2636fe32b370c359650391ed1ee1 | [
"BSD-3-Clause"
] | 1 | 2017-05-20T19:38:28.000Z | 2017-05-20T19:38:28.000Z | src/TupleUnpacker.cpp | sam-roth/autobind | df230f43335f2636fe32b370c359650391ed1ee1 | [
"BSD-3-Clause"
] | null | null | null | src/TupleUnpacker.cpp | sam-roth/autobind | df230f43335f2636fe32b370c359650391ed1ee1 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2014, Samuel A. Roth. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can
// be found in the COPYING file.
#include "TupleUnpacker.hpp"
#include "StringTemplate.hpp"
#include "stream.hpp"
#include "printing.hpp"
#include <clang/AST/ASTContext.h>
namespace a... | 21.547297 | 94 | 0.629037 | sam-roth |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.