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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e1be2e761d7913fa6e1dde8363dc8c266fd60ba1 | 4,968 | cpp | C++ | Structures/Common/ResiduePropertiesAssignation.cpp | ElianeBriand/SMolDock | de0cb746ef995ae0eef0f812ebd61727311c332f | [
"Apache-2.0"
] | 1 | 2019-05-30T02:33:13.000Z | 2019-05-30T02:33:13.000Z | Structures/Common/ResiduePropertiesAssignation.cpp | ElianeBriand/SMolDock | de0cb746ef995ae0eef0f812ebd61727311c332f | [
"Apache-2.0"
] | null | null | null | Structures/Common/ResiduePropertiesAssignation.cpp | ElianeBriand/SMolDock | de0cb746ef995ae0eef0f812ebd61727311c332f | [
"Apache-2.0"
] | 3 | 2020-12-30T19:11:51.000Z | 2021-06-25T02:45:49.000Z | /*
* Copyright (c) 2018 Eliane Briand
*
* This file is part of SmolDock.
*
* SmolDock 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, or
* (at your option) any later ve... | 41.057851 | 134 | 0.572464 | ElianeBriand |
e1c659c90126678fcb3d9e8d8d37f1bc0543684f | 1,470 | cpp | C++ | AutopilotRemoteRFM69/src/main.cpp | chacal/arduino | 6b77e59138a36d0627ab6f529e6f2ea7e65bcdfd | [
"Apache-2.0"
] | 4 | 2016-12-10T13:20:52.000Z | 2019-10-25T19:47:44.000Z | AutopilotRemoteRFM69/src/main.cpp | chacal/arduino | 6b77e59138a36d0627ab6f529e6f2ea7e65bcdfd | [
"Apache-2.0"
] | null | null | null | AutopilotRemoteRFM69/src/main.cpp | chacal/arduino | 6b77e59138a36d0627ab6f529e6f2ea7e65bcdfd | [
"Apache-2.0"
] | 1 | 2019-05-03T17:31:38.000Z | 2019-05-03T17:31:38.000Z | #include <SPI.h>
#include <RFM69.h>
#include "main.h"
#include "buttons.h"
#include <EEPROM.h>
#include <LowPower.h>
static RFM69 radio(RFM69_NSS_PIN, RF69_IRQ_PIN, true);
static Config config;
unsigned long wakeUpTime = 0;
void setup() {
Serial.begin(SERIAL_BAUD);
initializeConfig();
initializeRadio();
setu... | 21.304348 | 83 | 0.685034 | chacal |
e1c83b75307a304a12c5423e0937bf28442a35ab | 2,307 | cpp | C++ | shared/src/APIFactory.cpp | ElitCoder/speedogift | 44b8c2fe08a7f12c0b4286c766e7d7247b37b5de | [
"MIT"
] | null | null | null | shared/src/APIFactory.cpp | ElitCoder/speedogift | 44b8c2fe08a7f12c0b4286c766e7d7247b37b5de | [
"MIT"
] | 1 | 2019-09-04T20:28:11.000Z | 2019-09-05T18:23:53.000Z | shared/src/APIFactory.cpp | ElitCoder/speedogift | 44b8c2fe08a7f12c0b4286c766e7d7247b37b5de | [
"MIT"
] | null | null | null | #include "APIFactory.h"
#include "API.h"
using namespace std;
using namespace ncnet;
static API create_api_wrapper(Packet &packet, APIHeader reply) {
API api;
api.set_packet(packet);
api.set_reply_header(reply);
return api;
}
static API create_generic(APIHeader header, APIHeader reply) {
Packet p... | 28.8375 | 99 | 0.724317 | ElitCoder |
e1c88e91454157b20c0ed9cf68f4bc251e87a46b | 3,253 | hpp | C++ | src/Entity.hpp | lonnort/thga | 22cc8868ec8bf9cee195771f0a88bef4d1fa1013 | [
"BSL-1.0"
] | 1 | 2022-02-14T12:32:23.000Z | 2022-02-14T12:32:23.000Z | src/Entity.hpp | lonnort/thga | 22cc8868ec8bf9cee195771f0a88bef4d1fa1013 | [
"BSL-1.0"
] | 16 | 2022-02-04T14:26:25.000Z | 2022-02-04T14:27:18.000Z | src/Entity.hpp | lonnort/thga | 22cc8868ec8bf9cee195771f0a88bef4d1fa1013 | [
"BSL-1.0"
] | null | null | null | #pragma once
#include <SFML/System/Vector2.hpp>
#include <SFML/Graphics.hpp>
namespace Pacenstein {
/**
* The class describing what anything that can be interacted with has to contain.
*
* Entities are items like fruits and pellets, ghosts, and the player itself.
*/
class Entity {
publ... | 30.688679 | 89 | 0.544728 | lonnort |
e1c9feb4340eeb61af4a42e02562263a8608fbfc | 3,136 | cpp | C++ | src/GSvar/GeneInfoDBs.cpp | BeneKenobi/ngs-bits | cf849deb1c80e87b734d748f37f5878536277386 | [
"MIT"
] | null | null | null | src/GSvar/GeneInfoDBs.cpp | BeneKenobi/ngs-bits | cf849deb1c80e87b734d748f37f5878536277386 | [
"MIT"
] | null | null | null | src/GSvar/GeneInfoDBs.cpp | BeneKenobi/ngs-bits | cf849deb1c80e87b734d748f37f5878536277386 | [
"MIT"
] | null | null | null | #include "GeneInfoDBs.h"
#include "Exceptions.h"
#include "HttpHandler.h"
#include "Settings.h"
#include <QMessageBox>
#include <QApplication>
#include <QDesktopServices>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
void GeneInfoDBs::openUrl(QString db_name, QString gene_symbol)
{
foreach(con... | 37.783133 | 146 | 0.665816 | BeneKenobi |
e1ca9c375beb2f04ac707dbe1bf2945fd056f53c | 3,409 | cxx | C++ | osprey/common/com/opcode.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/common/com/opcode.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/common/com/opcode.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the Free Software Foundation.
This program is distributed in the hope that it would... | 26.022901 | 77 | 0.662364 | sharugupta |
e1d052b5c1e9ae2078aa18e38c5f37d24f222a4c | 8,255 | cpp | C++ | tools/lsvast/src/print_partition.cpp | vast-io/vast | 6c9c787adc54079202dba85ea4a929004063f1ba | [
"BSD-3-Clause"
] | 63 | 2016-04-22T01:50:03.000Z | 2019-07-31T15:50:36.000Z | tools/lsvast/src/print_partition.cpp | vast-io/vast | 6c9c787adc54079202dba85ea4a929004063f1ba | [
"BSD-3-Clause"
] | 216 | 2017-01-24T16:25:43.000Z | 2019-08-01T19:37:00.000Z | tools/lsvast/src/print_partition.cpp | vast-io/vast | 6c9c787adc54079202dba85ea4a929004063f1ba | [
"BSD-3-Clause"
] | 28 | 2016-05-19T13:09:19.000Z | 2019-04-12T15:11:42.000Z | // _ _____ __________
// | | / / _ | / __/_ __/ Visibility
// | |/ / __ |_\ \ / / Across
// |___/_/ |_/___/ /_/ Space and Time
//
// SPDX-FileCopyrightText: (c) 2020 The VAST Contributors
// SPDX-License-Identifier: BSD-3-Clause
#include <vast/as_bytes.hpp>
#include <vast/concept/prin... | 39.309524 | 80 | 0.595397 | vast-io |
e1d3d5a24f7939d9486876160a68e8060488618c | 660 | cpp | C++ | DirectX2D11/Framework/Buffer/ConstBuffer.cpp | GyumLee/DirectX2D11 | 7a92946241ad177c7efac5609e831bc7f0b06908 | [
"Apache-2.0"
] | null | null | null | DirectX2D11/Framework/Buffer/ConstBuffer.cpp | GyumLee/DirectX2D11 | 7a92946241ad177c7efac5609e831bc7f0b06908 | [
"Apache-2.0"
] | null | null | null | DirectX2D11/Framework/Buffer/ConstBuffer.cpp | GyumLee/DirectX2D11 | 7a92946241ad177c7efac5609e831bc7f0b06908 | [
"Apache-2.0"
] | null | null | null | #include "Framework.h"
ConstBuffer::ConstBuffer(void* data, UINT dataSize)
: data(data), dataSize(dataSize)
{
D3D11_BUFFER_DESC bd = {};
bd.Usage = D3D11_USAGE_DEFAULT;
bd.ByteWidth = dataSize;
bd.BindFlags = D3D11_BIND_CONSTANT_BUFFER;
DEVICE->CreateBuffer(&bd, nullptr, &buffer);
}
ConstBuff... | 22 | 58 | 0.684848 | GyumLee |
e1d69f1c8ee2d262aa8aeff39f5dfd8fff27bae8 | 15,745 | hpp | C++ | src/reflect_class.hpp | vantonyy/CPP-Reflection | 165a6650dbb3247a1a520477c976a5e0f81a4ced | [
"MIT"
] | 4 | 2019-03-16T07:19:25.000Z | 2021-02-09T21:16:25.000Z | src/reflect_class.hpp | vantonyy/CPP-Reflection | 165a6650dbb3247a1a520477c976a5e0f81a4ced | [
"MIT"
] | null | null | null | src/reflect_class.hpp | vantonyy/CPP-Reflection | 165a6650dbb3247a1a520477c976a5e0f81a4ced | [
"MIT"
] | 1 | 2020-04-04T02:23:30.000Z | 2020-04-04T02:23:30.000Z | /*
* Copyright (C) 2016 Vladimir Antonyan <antonyan_v@outlook.com>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, ... | 27.478185 | 114 | 0.631693 | vantonyy |
e1d87b77a45641841209817e925cd58f4fbcdc38 | 7,996 | cpp | C++ | source/LibFgBase/src/FgMath.cpp | denim2x/FaceGenBaseLibrary | 52317cf96984a47d7f2d0c5471230d689404101c | [
"MIT"
] | null | null | null | source/LibFgBase/src/FgMath.cpp | denim2x/FaceGenBaseLibrary | 52317cf96984a47d7f2d0c5471230d689404101c | [
"MIT"
] | null | null | null | source/LibFgBase/src/FgMath.cpp | denim2x/FaceGenBaseLibrary | 52317cf96984a47d7f2d0c5471230d689404101c | [
"MIT"
] | null | null | null | //
// Copyright (c) 2019 Singular Inversions Inc. (facegen.com)
// Use, modification and distribution is subject to the MIT License,
// see accompanying file LICENSE.txt or facegen.com/base_library_license.txt
//
#include "stdafx.h"
#include "FgMath.hpp"
#include "FgRandom.hpp"
#include "FgSyntax.hpp"
us... | 33.316667 | 99 | 0.571661 | denim2x |
e1d986085dd2a528d378def0dc53caad3037a98a | 24,266 | cpp | C++ | uActor/src/remote/tcp_forwarder.cpp | uActor/uActor | 1180db98f48ad447639a3d625573307d87b28902 | [
"MIT"
] | 1 | 2021-09-15T12:41:37.000Z | 2021-09-15T12:41:37.000Z | uActor/src/remote/tcp_forwarder.cpp | uActor/uActor | 1180db98f48ad447639a3d625573307d87b28902 | [
"MIT"
] | null | null | null | uActor/src/remote/tcp_forwarder.cpp | uActor/uActor | 1180db98f48ad447639a3d625573307d87b28902 | [
"MIT"
] | null | null | null | #include "remote/tcp_forwarder.hpp"
#ifdef ESP_IDF
#include <sdkconfig.h>
extern "C" {
#include <esp_event.h>
#include <esp_log.h>
#include <esp_netif.h>
#include <esp_system.h>
#include <esp_wifi.h>
#include <lwip/err.h>
#include <lwip/netdb.h>
#include <lwip/sockets.h>
#include <lwip/sys.h>
}
#else
extern "C" {
#in... | 35.476608 | 80 | 0.644194 | uActor |
e1dbe60944c57a75fd86fb97dc39bd4caadc98fb | 3,731 | cc | C++ | test/internal_util/mold_equiv.cc | mariuslundblad/disir-c | ae831250cfbf033a755c91e62e8af7d82135d0d8 | [
"Apache-2.0"
] | 4 | 2017-06-19T09:59:50.000Z | 2019-03-20T18:49:11.000Z | test/internal_util/mold_equiv.cc | mariuslundblad/disir-c | ae831250cfbf033a755c91e62e8af7d82135d0d8 | [
"Apache-2.0"
] | 18 | 2017-06-25T22:19:00.000Z | 2019-11-28T13:16:26.000Z | test/internal_util/mold_equiv.cc | mariuslundblad/disir-c | ae831250cfbf033a755c91e62e8af7d82135d0d8 | [
"Apache-2.0"
] | 2 | 2017-10-31T11:19:55.000Z | 2019-11-28T12:13:13.000Z | #include <gtest/gtest.h>
#include "test_helper.h"
#include <disir/disir.h>
// PRIVATE API
extern "C" {
#include "disir_private.h"
#include "context_private.h"
}
class MoldEquivTest : public testing::DisirTestTestPlugin
{
void SetUp()
{
DisirTestTestPlugin::SetUp ();
status = disir_mold_read... | 28.052632 | 84 | 0.704637 | mariuslundblad |
e1dc6ae39a26b07ca815e365bd1813bb32e72696 | 48,679 | cpp | C++ | core/src/HElib/OldEvalMap.cpp | fionser/CODA | db234a1e9761d379fb96ae17eef3b77254f8781c | [
"MIT"
] | 12 | 2017-02-24T19:28:07.000Z | 2021-02-05T04:40:47.000Z | core/src/HElib/OldEvalMap.cpp | fionser/CODA | db234a1e9761d379fb96ae17eef3b77254f8781c | [
"MIT"
] | 1 | 2017-04-15T03:41:18.000Z | 2017-04-24T09:06:15.000Z | core/src/HElib/OldEvalMap.cpp | fionser/CODA | db234a1e9761d379fb96ae17eef3b77254f8781c | [
"MIT"
] | 6 | 2017-05-14T10:12:50.000Z | 2021-02-07T03:50:56.000Z | /* Copyright (C) 2012-2014 IBM Corp.
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distribut... | 23.459759 | 99 | 0.55792 | fionser |
e1df65219b599cd4192ed2fa2a59b7d463803b94 | 12,858 | cpp | C++ | PC/LoadWholeMap/LoadWholeMap.cpp | JuniorDjjr/LoadWholeMap | b935084f38cba199c066ed41d935f11dd38266b7 | [
"MIT"
] | 2 | 2021-11-18T16:53:35.000Z | 2022-03-23T09:25:24.000Z | PC/LoadWholeMap/LoadWholeMap.cpp | JuniorDjjr/LoadWholeMap | b935084f38cba199c066ed41d935f11dd38266b7 | [
"MIT"
] | null | null | null | PC/LoadWholeMap/LoadWholeMap.cpp | JuniorDjjr/LoadWholeMap | b935084f38cba199c066ed41d935f11dd38266b7 | [
"MIT"
] | 1 | 2021-11-18T16:53:39.000Z | 2021-11-18T16:53:39.000Z | #include "plugin.h"
#include "..\injector\assembly.hpp"
#include "CStreaming.h"
#include "IniReader/IniReader.h"
#include "CIplStore.h"
#include "extensions/ScriptCommands.h"
#include "CMessages.h"
#include "CTimer.h"
#include "CPopCycle.h"
#include "CAnimManager.h"
#include <vector>
using namespace plugin;
using name... | 33.310881 | 181 | 0.595349 | JuniorDjjr |
e1eeec7f8af18ef409b8368a2ff6ff299158eb6b | 3,973 | hpp | C++ | include/codegen/include/UnityEngine/Experimental/Rendering/GraphicsFormatUtility.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/UnityEngine/Experimental/Rendering/GraphicsFormatUtility.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/UnityEngine/Experimental/Rendering/GraphicsFormatUtility.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:33 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
#include "utils/i... | 62.078125 | 179 | 0.80292 | Futuremappermydud |
e1efba02058aabf69b39d61fa9354907dd77877f | 8,022 | cpp | C++ | tests/utils/seed_index_merger.cpp | FreshDISKANN/FreshDISKANN | c7750ed7ae2df202b3f3a98477199963245c8ba7 | [
"MIT"
] | 6 | 2020-10-13T11:30:53.000Z | 2021-12-03T15:50:15.000Z | tests/utils/seed_index_merger.cpp | FreshDISKANN/FreshDISKANN | c7750ed7ae2df202b3f3a98477199963245c8ba7 | [
"MIT"
] | null | null | null | tests/utils/seed_index_merger.cpp | FreshDISKANN/FreshDISKANN | c7750ed7ae2df202b3f3a98477199963245c8ba7 | [
"MIT"
] | 3 | 2020-10-13T11:30:55.000Z | 2021-12-02T14:29:42.000Z | #include "utils.h"
#include <algorithm>
#include <cassert>
#include <random>
#include <thread>
#include <vector>
#include "tsl/robin_set.h"
#define ENTRY_POINT 52292725
//#define ENTRY_POINT 123742
template<typename T, typename TagT = uint32_t>
void dump_to_disk(const T *all_pts, const uint64_t ndims,
... | 37.138889 | 80 | 0.605211 | FreshDISKANN |
e1f19e4865980a315248e15d6c3bc644ddc95046 | 5,088 | cpp | C++ | Game/Cards/Trap/WidespreadRuin.cpp | CrusaderCrab/YugiohPhantomRealm | 79bd1e9948d2d2d29acf042fd412804c30562a8e | [
"Zlib"
] | 13 | 2018-04-13T22:10:00.000Z | 2022-01-01T08:26:23.000Z | Game/Cards/Trap/WidespreadRuin.cpp | CrusaderCrab/YugiohPhantomRealm | 79bd1e9948d2d2d29acf042fd412804c30562a8e | [
"Zlib"
] | null | null | null | Game/Cards/Trap/WidespreadRuin.cpp | CrusaderCrab/YugiohPhantomRealm | 79bd1e9948d2d2d29acf042fd412804c30562a8e | [
"Zlib"
] | 3 | 2017-02-22T16:35:06.000Z | 2019-12-21T20:39:23.000Z | #include <Game\Cards\Trap\WidespreadRuin.h>
#include <Game\Cards\Trap\TrapUnit.h>
#include <Game\Animation\FadeUnit.h>
#include <Game\Duel\Board.h>
#include <Game\VectorUnit.h>
#include <Game\Animation\MovementUnit.h>
#include <Utility\SoundUnit.h>
#include <Game\Animation\ParticlesUnit.h>
#include <Game\Cards\CardCrea... | 27.208556 | 104 | 0.700079 | CrusaderCrab |
e1f349badd9cd232744e4f42e3f7982c3afeb495 | 2,522 | cpp | C++ | test/path_mutex_test.cpp | taylorb-microsoft/winss | ede93f84a5d9585502db5190f2ec6365858f695a | [
"Apache-2.0"
] | 52 | 2017-01-05T23:39:38.000Z | 2020-06-04T03:00:11.000Z | test/path_mutex_test.cpp | morganstanley/winss | ede93f84a5d9585502db5190f2ec6365858f695a | [
"Apache-2.0"
] | 24 | 2017-01-05T05:07:34.000Z | 2018-03-09T00:50:58.000Z | test/path_mutex_test.cpp | morganstanley/winss | ede93f84a5d9585502db5190f2ec6365858f695a | [
"Apache-2.0"
] | 7 | 2016-12-27T20:55:20.000Z | 2018-03-09T00:32:19.000Z | /*
* Copyright 2016-2017 Morgan Stanley
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 28.022222 | 74 | 0.698652 | taylorb-microsoft |
e1f58969e994a7fe9eb671b094d4a74b760c050c | 3,776 | cpp | C++ | cell_based/src/cell/cycle/AbstractCellCycleModel.cpp | DGermano8/ChasteDom | 539a3a811698214c0938489b0cfdffd1abccf667 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | cell_based/src/cell/cycle/AbstractCellCycleModel.cpp | DGermano8/ChasteDom | 539a3a811698214c0938489b0cfdffd1abccf667 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | cell_based/src/cell/cycle/AbstractCellCycleModel.cpp | DGermano8/ChasteDom | 539a3a811698214c0938489b0cfdffd1abccf667 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2005-2018, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms... | 29.271318 | 89 | 0.768273 | DGermano8 |
e1f7b3dcccd0b0c064ff83a57a79b62754165240 | 486 | hpp | C++ | include/generic/projection/projection_plane_3.hpp | shikanle/gfx | 772db3ddd66c294beaf17319f6b3803abe3ce0df | [
"Apache-2.0"
] | 4 | 2022-01-06T14:06:03.000Z | 2022-01-07T01:13:58.000Z | include/generic/projection/projection_plane_3.hpp | shikanle/gfx | 772db3ddd66c294beaf17319f6b3803abe3ce0df | [
"Apache-2.0"
] | null | null | null | include/generic/projection/projection_plane_3.hpp | shikanle/gfx | 772db3ddd66c294beaf17319f6b3803abe3ce0df | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "projection.hpp"
#include "../../geometry/plane_3.hpp"
template <typename float_system>
class projection_plane_3 : public projection<plane_3<float_system> > {
public:
declare_projection_types(plane_3);
public:
virtual bool project(const vector_t &p, domain_value_t &result) override {
... | 27 | 78 | 0.679012 | shikanle |
e1f9b9ed8709db0305345e1640379457783823b8 | 641 | hpp | C++ | src/3rdPartyLibraries/UPR/examples/cuda/test-cuda-runtime.hpp | goliat90/edg4x-rose | 75984d718a5235fb1433e7cab1991ade8d44f9ac | [
"BSD-3-Clause"
] | 4 | 2015-03-17T13:52:21.000Z | 2022-01-12T05:32:47.000Z | src/3rdPartyLibraries/UPR/examples/cuda/test-cuda-runtime.hpp | goliat90/edg4x-rose | 75984d718a5235fb1433e7cab1991ade8d44f9ac | [
"BSD-3-Clause"
] | null | null | null | src/3rdPartyLibraries/UPR/examples/cuda/test-cuda-runtime.hpp | goliat90/edg4x-rose | 75984d718a5235fb1433e7cab1991ade8d44f9ac | [
"BSD-3-Clause"
] | 2 | 2019-02-19T01:27:51.000Z | 2019-02-19T12:29:49.000Z | /**
* /author Tristan Vanderbruggen (vanderbruggentristan@gmail.com)
* /date 08/2012
*/
#ifndef __TEST_CUDA_RUNTIME_HPP__
#define __TEST_CUDA_RUNTIME_HPP__
#include "UPR/cuda-runtime.hpp"
namespace UPR {
class Task_1 : public CUDA_ExecTask {
// TODO
};
class App_CUDA_Scheduler : public CUDA_Scheduler {
pr... | 19.424242 | 106 | 0.712949 | goliat90 |
c0033911c819dc28049fb7768735dac6f0712f1e | 1,485 | cpp | C++ | examples/cppcon_2020/07_oneTBB_observers/solutions/observer-solved.cpp | alvdd/oneTBB | d87e076d530007b48f619b2f58b53fb0d1a173b1 | [
"Apache-2.0"
] | null | null | null | examples/cppcon_2020/07_oneTBB_observers/solutions/observer-solved.cpp | alvdd/oneTBB | d87e076d530007b48f619b2f58b53fb0d1a173b1 | [
"Apache-2.0"
] | null | null | null | examples/cppcon_2020/07_oneTBB_observers/solutions/observer-solved.cpp | alvdd/oneTBB | d87e076d530007b48f619b2f58b53fb0d1a173b1 | [
"Apache-2.0"
] | null | null | null | //==============================================================
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// =============================================================
#include <exception>
#include <iostream>
#include <tbb/tbb.h>
#define INCORRECT_VALUE -1
thread_local int ... | 32.282609 | 104 | 0.593266 | alvdd |
c0040656c30f694cb15c50eb3cd408fb7809b20e | 881 | cpp | C++ | spoj/BYTESM2.cpp | amitdu6ey/Online-Judge-Submissions | 9585aec29228211454bca5cf1d5738f49fb0aa8f | [
"MIT"
] | 5 | 2020-06-30T12:44:25.000Z | 2021-07-14T06:35:57.000Z | spoj/BYTESM2.cpp | amitdu6ey/Online-Judge-Submissions | 9585aec29228211454bca5cf1d5738f49fb0aa8f | [
"MIT"
] | null | null | null | spoj/BYTESM2.cpp | amitdu6ey/Online-Judge-Submissions | 9585aec29228211454bca5cf1d5738f49fb0aa8f | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int a[109][109];
int dp[109][109];
void solve(){
int h,w;
cin>>h>>w;
for(int i=0;i<h;i++){
for(int j=0;j<w;j++){
cin>>a[i][j];
}
}
for(int i=0;i<w;i++){
dp[h-1][i]=a[h-1][i];
}
for(int i=h-2;i>=0;i--){
... | 18.744681 | 54 | 0.413167 | amitdu6ey |
c009cf175467d3020cb951d3654dec31412ad5f6 | 382 | hpp | C++ | res_mgr/res_config.hpp | dennisding/thread_work | f425255d0fcb54e1839211416d760bde5a69a9b6 | [
"MIT"
] | null | null | null | res_mgr/res_config.hpp | dennisding/thread_work | f425255d0fcb54e1839211416d760bde5a69a9b6 | [
"MIT"
] | null | null | null | res_mgr/res_config.hpp | dennisding/thread_work | f425255d0fcb54e1839211416d760bde5a69a9b6 | [
"MIT"
] | null | null | null | #pragma once
//#include <string>
//#include <memory>
//
//template <typename type>
//struct res_info
//{
//};
//
////template <typename type>
////struct res_type
////{
////
////};
//
//class res_type
//{
//public:
// virtual ~res_type() {}
//
// virtual int as_int() = 0;
// virtual std::string as_string() = 0;
//};
//... | 12.733333 | 39 | 0.575916 | dennisding |
c00c5eed4a89b0ac6d81413374c2b50df823759a | 5,047 | cpp | C++ | Hollow_Faith/Motor2D/j1Collision.cpp | juanha2/PlatformerGame | f95af3cb237ff8fcb59f16f58598ca0a94cf9f1c | [
"Unlicense"
] | 4 | 2019-10-27T16:47:13.000Z | 2020-03-16T17:02:36.000Z | Hollow_Faith/Motor2D/j1Collision.cpp | juanha2/PlatformerGame | f95af3cb237ff8fcb59f16f58598ca0a94cf9f1c | [
"Unlicense"
] | null | null | null | Hollow_Faith/Motor2D/j1Collision.cpp | juanha2/PlatformerGame | f95af3cb237ff8fcb59f16f58598ca0a94cf9f1c | [
"Unlicense"
] | 8 | 2019-12-19T15:16:50.000Z | 2020-06-14T22:12:33.000Z | #include "j1App.h"
#include "j1Render.h"
#include "j1Input.h"
#include "j1Collision.h"
#include "j1Player.h"
#include "j1Scene.h"
#include "p2Log.h"
j1Collision::j1Collision()
{
name.create("colliders");
for (uint i = 0; i < MAX_COLLIDERS; ++i)
colliders[i] = nullptr;
matrix[COLLIDER_PLAYER][COLLIDER_FLOOR] = ... | 22.53125 | 142 | 0.665742 | juanha2 |
c00cdad2ed35d8e3227a8d503a44f189ea4d4d6b | 571 | cpp | C++ | algo/pattern/pattern3.cpp | iarjunphp/CPP-Learning | 4946f861cb3f57da2b0beba07a206fafe261aaf4 | [
"MIT"
] | 77 | 2019-10-28T05:38:51.000Z | 2022-03-15T01:53:48.000Z | algo/pattern/pattern3.cpp | iarjunphp/CPP-Learning | 4946f861cb3f57da2b0beba07a206fafe261aaf4 | [
"MIT"
] | 3 | 2019-12-26T15:39:55.000Z | 2020-10-29T14:55:50.000Z | algo/pattern/pattern3.cpp | iarjunphp/CPP-Learning | 4946f861cb3f57da2b0beba07a206fafe261aaf4 | [
"MIT"
] | 24 | 2020-01-08T04:12:52.000Z | 2022-03-12T22:26:07.000Z | #include<iostream>
using namespace std;
int main(){
int n;
cout<<"Enter number of cols"<<endl;
cin>>n;
for(int i=1,k=0;i<=n;i++,k=0){
for(int j=1;j<=(n-i);j++){
cout<<" ";
}
while (k!=(2*i)-1)
{
cout<<"*";
k++;
}
co... | 15.026316 | 39 | 0.313485 | iarjunphp |
c00e94d2f212fcf06311e4be28ab537c44a5616d | 1,219 | cpp | C++ | nd-coursework/books/cpp/C++17/lib/charconv.cpp | crdrisko/nd-grad | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | 1 | 2020-09-26T12:38:55.000Z | 2020-09-26T12:38:55.000Z | nd-coursework/books/cpp/C++17/lib/charconv.cpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | nd-coursework/books/cpp/C++17/lib/charconv.cpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | // Copyright (c) 2017 by Nicolai Josuttis. All rights reserved.
// Licensed under the CCA-4.0 International License. See the LICENSE file in the project root for more information.
//
// Name: charconv.cpp
// Author: crdrisko
// Date: 11/01/2020-11:41:04
// Description: Using to_chars and from_chars to show that the rou... | 30.475 | 115 | 0.608696 | crdrisko |
c011343c789081a0bf6919a778c2855129ea91f3 | 1,070 | cpp | C++ | C++/32_C++ClassTemplateSpecialization.cpp | BurningTiles/HackerRank | 1af475bc64b1bf27ab5058230d6e472314679b61 | [
"MIT"
] | 2 | 2020-11-04T10:12:24.000Z | 2020-12-05T14:16:28.000Z | C++/32_C++ClassTemplateSpecialization.cpp | BurningTiles/HackerRank | 1af475bc64b1bf27ab5058230d6e472314679b61 | [
"MIT"
] | null | null | null | C++/32_C++ClassTemplateSpecialization.cpp | BurningTiles/HackerRank | 1af475bc64b1bf27ab5058230d6e472314679b61 | [
"MIT"
] | null | null | null | /**
* Author : BurningTiles
* Created : 2020-09-11 16:24:20
* Link : GitHub.com/BurningTiles
* Program : C++ Class Template Specialization
**/
#include <bits/stdc++.h>
using namespace std;
enum class Fruit { apple, orange, pear };
enum class Color { red, green, orange };
template <typename T> struct Traits;
... | 18.448276 | 79 | 0.62243 | BurningTiles |
84fcff9071e08f38f83c9b1db33519cbd9007de7 | 1,539 | cpp | C++ | Educational Round 12/D.cpp | kimixuchen/Codeforces | 1c259e867310d148d813c3ea7cc4f9cad3f21049 | [
"Apache-2.0"
] | null | null | null | Educational Round 12/D.cpp | kimixuchen/Codeforces | 1c259e867310d148d813c3ea7cc4f9cad3f21049 | [
"Apache-2.0"
] | null | null | null | Educational Round 12/D.cpp | kimixuchen/Codeforces | 1c259e867310d148d813c3ea7cc4f9cad3f21049 | [
"Apache-2.0"
] | null | null | null | /**
*Codeforces Educational Round 12 D
*24/04/16 13:56:03
*xuchen
* */
#include <stdio.h>
#include <iostream>
#include <cmath>
#include <cstring>
#include <stdlib.h>
#include <algorithm>
#include <queue>
using namespace std;
const int N = 10000005;
bool prime[N];
int a[1005];
void init()
{
prime[1] = true;
... | 17.1 | 53 | 0.34178 | kimixuchen |
1700c91dad77fe317ef0bb30d98d8d15871c7a86 | 92 | cpp | C++ | src/examples/12_module/06_arrays_char/main.cpp | acc-cosc-1337-fall-2019/acc-cosc-1337-fall-2019-LeytonLL | 0c544a3fa189dec5da827efe70fccb9f395cbe7d | [
"MIT"
] | null | null | null | src/examples/12_module/06_arrays_char/main.cpp | acc-cosc-1337-fall-2019/acc-cosc-1337-fall-2019-LeytonLL | 0c544a3fa189dec5da827efe70fccb9f395cbe7d | [
"MIT"
] | null | null | null | src/examples/12_module/06_arrays_char/main.cpp | acc-cosc-1337-fall-2019/acc-cosc-1337-fall-2019-LeytonLL | 0c544a3fa189dec5da827efe70fccb9f395cbe7d | [
"MIT"
] | null | null | null | #include "arrays_char.h"
#include<iostream>
int main()
{
stack_char_array();
return 0;
}; | 11.5 | 24 | 0.695652 | acc-cosc-1337-fall-2019 |
17015c7577724502a2a655d2330796e8e8efa964 | 4,403 | cpp | C++ | test/integration/cluster_solver/ctint/ctint_hund_lattice_test.cpp | frobnitzem/DCA | 9f5d16cbfe1a4c4df1d4c8353654dd2882671dca | [
"BSD-3-Clause"
] | 1 | 2021-06-16T16:26:22.000Z | 2021-06-16T16:26:22.000Z | test/integration/cluster_solver/ctint/ctint_hund_lattice_test.cpp | frobnitzem/DCA | 9f5d16cbfe1a4c4df1d4c8353654dd2882671dca | [
"BSD-3-Clause"
] | 11 | 2020-04-22T14:50:27.000Z | 2021-09-10T05:43:51.000Z | test/integration/cluster_solver/ctint/ctint_hund_lattice_test.cpp | frobnitzem/DCA | 9f5d16cbfe1a4c4df1d4c8353654dd2882671dca | [
"BSD-3-Clause"
] | 1 | 2019-09-22T16:33:19.000Z | 2019-09-22T16:33:19.000Z | // Copyright (C) 2018 ETH Zurich
// Copyright (C) 2018 UT-Battelle, LLC
// All rights reserved.
//
// See LICENSE.txt for terms of usage.
// See CITATION.md for citation guidelines, if DCA++ is used for scientific publications.
//
// Author: Giovanni Balduzzi (gbalduzz@itp.phys.ethz.ch)
//
// No-change test for CT-INT... | 36.691667 | 109 | 0.720872 | frobnitzem |
1708bfc927cfba97c21c31f017a225de08ce89b5 | 28,658 | cc | C++ | libcef/browser/menu_model_impl.cc | amirbn7/cef | 732a307c751c2670a35fd9e0e4a491cdfc6bcc6b | [
"BSD-3-Clause"
] | null | null | null | libcef/browser/menu_model_impl.cc | amirbn7/cef | 732a307c751c2670a35fd9e0e4a491cdfc6bcc6b | [
"BSD-3-Clause"
] | null | null | null | libcef/browser/menu_model_impl.cc | amirbn7/cef | 732a307c751c2670a35fd9e0e4a491cdfc6bcc6b | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2012 The Chromium Embedded Framework Authors.
// Portions copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "libcef/browser/menu_model_impl.h"
#include <vector>
#include "libc... | 27.76938 | 80 | 0.666097 | amirbn7 |
170cdc252e7a87a413dc7e5c47f50076b934b462 | 3,406 | cpp | C++ | test/test_explode.cpp | yiyuanzhong/flinter | c52655ea5f8e48244fdb59bdf34b915faee57a6e | [
"Apache-2.0"
] | 29 | 2016-01-29T09:31:09.000Z | 2021-07-11T12:00:31.000Z | test/test_explode.cpp | yiyuanzhong/flinter | c52655ea5f8e48244fdb59bdf34b915faee57a6e | [
"Apache-2.0"
] | 2 | 2015-03-30T09:59:51.000Z | 2017-03-13T09:35:18.000Z | test/test_explode.cpp | yiyuanzhong/flinter | c52655ea5f8e48244fdb59bdf34b915faee57a6e | [
"Apache-2.0"
] | 17 | 2015-03-28T09:24:53.000Z | 2021-08-07T10:09:10.000Z | #include <flinter/explode.h>
#include <gtest/gtest.h>
#include <list>
#include <string>
#include <vector>
TEST(ExplodeTest, TestExplodeNull0)
{
std::vector<std::string> r;
flinter::explode("", "|", &r, true);
ASSERT_EQ(r.size(), 1u);
EXPECT_TRUE(r[0].empty());
}
TEST(ExplodeTest, TestExplodeNull1)
{... | 23.818182 | 57 | 0.557546 | yiyuanzhong |
1710bcdf5f2e7155043f2ed192f285637d9194a1 | 212 | cpp | C++ | source/Abstract/Action/LambdaAction.cpp | metamaker/custom-global-hotkeys | 848c1d01504084eaff5ec23ad174b43eb3298ff9 | [
"MIT"
] | 1 | 2017-03-27T15:58:21.000Z | 2017-03-27T15:58:21.000Z | source/Abstract/Action/LambdaAction.cpp | metamaker/custom-global-hotkeys | 848c1d01504084eaff5ec23ad174b43eb3298ff9 | [
"MIT"
] | null | null | null | source/Abstract/Action/LambdaAction.cpp | metamaker/custom-global-hotkeys | 848c1d01504084eaff5ec23ad174b43eb3298ff9 | [
"MIT"
] | null | null | null | #include "LambdaAction.h"
using CustomGlobalHotkeys::Action::LambdaAction;
LambdaAction::LambdaAction(TLambdaFunction function):
m_function(function)
{
}
void LambdaAction::execute() const
{
m_function();
}
| 15.142857 | 53 | 0.778302 | metamaker |
1715c5796bc9529cdac6dc74c3a5e7a3d4a3d9dd | 238 | cpp | C++ | app/src/main/cpp/people/people.cpp | kewpieQT/NDKPracticeDemo | a843e78761ecff9f1a1a9361f7d430fa6d8a5bc3 | [
"Apache-2.0"
] | null | null | null | app/src/main/cpp/people/people.cpp | kewpieQT/NDKPracticeDemo | a843e78761ecff9f1a1a9361f7d430fa6d8a5bc3 | [
"Apache-2.0"
] | null | null | null | app/src/main/cpp/people/people.cpp | kewpieQT/NDKPracticeDemo | a843e78761ecff9f1a1a9361f7d430fa6d8a5bc3 | [
"Apache-2.0"
] | null | null | null | //
// Created by Kewpie Qin on 2020/12/2.
//
#include "people.h"
std::string people::getString() {
return "this is from people";
}
std::string people::getStringFromCStyle(const char *str) {
std::string s(str);
return s;
}
| 14.875 | 58 | 0.642857 | kewpieQT |
171828d04d852a9a93dc5979b81ed3e8b98c7ee1 | 13,979 | ipp | C++ | third_party/include/mvscxx/oglplus/enums/program_resource_property_def.ipp | Simmesimme/swift2d | 147a862208dee56f972361b5325009e020124137 | [
"MIT"
] | null | null | null | third_party/include/mvscxx/oglplus/enums/program_resource_property_def.ipp | Simmesimme/swift2d | 147a862208dee56f972361b5325009e020124137 | [
"MIT"
] | null | null | null | third_party/include/mvscxx/oglplus/enums/program_resource_property_def.ipp | Simmesimme/swift2d | 147a862208dee56f972361b5325009e020124137 | [
"MIT"
] | null | null | null | // File implement/oglplus/enums/program_resource_property_def.ipp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/program_resource_property.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2014 Matus Chochlik.
// Distributed under... | 30.926991 | 102 | 0.836183 | Simmesimme |
17185798c1d139c484a0bd0d07f22bbbca372dd9 | 639 | cpp | C++ | chapter04/example4_01.cpp | ly-mem-thread/multi_threading | 284a0c4ae9c7f8e9ba1faa205fb0e6d634d653cb | [
"MIT"
] | 213 | 2018-06-23T04:23:12.000Z | 2022-03-22T09:01:17.000Z | chapter04/example4_01.cpp | ZhangChiABC/multi_threading | 284a0c4ae9c7f8e9ba1faa205fb0e6d634d653cb | [
"MIT"
] | null | null | null | chapter04/example4_01.cpp | ZhangChiABC/multi_threading | 284a0c4ae9c7f8e9ba1faa205fb0e6d634d653cb | [
"MIT"
] | 101 | 2018-06-29T09:17:00.000Z | 2022-03-29T09:55:52.000Z | //清单4.1 使用std::condition_variable等待数据
std::mutex mut;
std::queue<data_chunk> data_queue;
std::condition_variable data_cond;
void data_preparation_thread()
{
while(more_data_to_prepare())
{
data_chunk const data=prepare_data();
std::lock_guard<std::mutex> lk(mut);
data_queue.push(data);
data_cond.notify_one()... | 20.612903 | 53 | 0.719875 | ly-mem-thread |
171a2f6a5a3f258ce197fcd6196a9ecd9e67f719 | 6,725 | cpp | C++ | src/minimizerdownhillsimplex.cpp | virtmax/NucMath | b2030c19594f3efb9923380fd410870983a0c17a | [
"MIT"
] | null | null | null | src/minimizerdownhillsimplex.cpp | virtmax/NucMath | b2030c19594f3efb9923380fd410870983a0c17a | [
"MIT"
] | null | null | null | src/minimizerdownhillsimplex.cpp | virtmax/NucMath | b2030c19594f3efb9923380fd410870983a0c17a | [
"MIT"
] | null | null | null |
#include "minimizerdownhillsimplex.h"
nucmath::OPTIMIZER_RETURN_TYPE nucmath::downhill_simplex_optimization(FUNC2MIN opt_func,
const std::vector< std::array<double,3> > &initial_p,
std::vector<double> &result_p,
... | 29.23913 | 101 | 0.477918 | virtmax |
171aefaee15b1ae37a501fa634159acb353a964d | 14,467 | cc | C++ | src/xzero/http/http2/FrameGenerator.cc | pjsaksa/x0 | 96b69e5a54b006e3d929b9934c2708f7967371bb | [
"MIT"
] | 24 | 2016-07-10T08:05:11.000Z | 2021-11-16T10:53:48.000Z | src/xzero/http/http2/FrameGenerator.cc | pjsaksa/x0 | 96b69e5a54b006e3d929b9934c2708f7967371bb | [
"MIT"
] | 14 | 2015-04-12T10:45:26.000Z | 2016-06-28T22:27:50.000Z | src/xzero/http/http2/FrameGenerator.cc | pjsaksa/x0 | 96b69e5a54b006e3d929b9934c2708f7967371bb | [
"MIT"
] | 4 | 2016-10-05T17:51:38.000Z | 2020-04-20T07:45:23.000Z | // This file is part of the "x0" project, http://github.com/christianparpart/x0>
// (c) 2009-2018 Christian Parpart <christian@parpart.family>
//
// Licensed under the MIT License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of
// the License at: http://op... | 35.114078 | 90 | 0.475496 | pjsaksa |
171af1d4a20a3a7a2c9a26d94113ee8330bc7630 | 3,825 | cpp | C++ | groups/bsl/bslmt/bslmt_turnstile.cpp | hughesr/bde | d593e3213918b9292c25e08cfc5b6651bacdea0d | [
"Apache-2.0"
] | 1 | 2019-01-22T19:44:05.000Z | 2019-01-22T19:44:05.000Z | groups/bsl/bslmt/bslmt_turnstile.cpp | anuranrc/bde | d593e3213918b9292c25e08cfc5b6651bacdea0d | [
"Apache-2.0"
] | null | null | null | groups/bsl/bslmt/bslmt_turnstile.cpp | anuranrc/bde | d593e3213918b9292c25e08cfc5b6651bacdea0d | [
"Apache-2.0"
] | null | null | null | // bslmt_turnstile.cpp -*-C++-*-
// ----------------------------------------------------------------------------
// NOTICE
//
// This component is not up to date with current BDE coding standards, and
// should not be used as an example f... | 32.974138 | 79 | 0.556601 | hughesr |
171f0ce2e4dd46b1c7326d69ecc53c3bced40a34 | 1,289 | hpp | C++ | src/Utilities/ThreadSafeQueue.hpp | ClubieDong/BoardGameAI | 588506278f606fa6bef2864875bf8f78557ef03b | [
"MIT"
] | 2 | 2021-05-26T07:17:24.000Z | 2021-05-26T07:21:16.000Z | src/Utilities/ThreadSafeQueue.hpp | ClubieDong/ChessAI | 588506278f606fa6bef2864875bf8f78557ef03b | [
"MIT"
] | null | null | null | src/Utilities/ThreadSafeQueue.hpp | ClubieDong/ChessAI | 588506278f606fa6bef2864875bf8f78557ef03b | [
"MIT"
] | null | null | null | #pragma once
#include <queue>
#include <mutex>
#include <condition_variable>
#include <deque>
template <typename T>
class ThreadSafeQueue
{
private:
std::queue<T> _Queue;
mutable std::mutex _Mtx;
std::condition_variable _CV;
public:
inline explicit ThreadSafeQueue() = default;
ThreadSafeQueue(con... | 23.436364 | 65 | 0.615206 | ClubieDong |
17318280684ca9ebfb55e551db233d6f720c048c | 2,321 | inl | C++ | src/ScriptSystem/Init/details/UECS_AutoRefl/World_AutoRefl.inl | Jerry-Shen0527/Utopia | 5f40edc814e5f6a33957cdc889524c41c5ef870f | [
"MIT"
] | 321 | 2020-10-04T01:43:36.000Z | 2022-03-31T02:43:38.000Z | src/ScriptSystem/Init/details/UECS_AutoRefl/World_AutoRefl.inl | Jerry-Shen0527/Utopia | 5f40edc814e5f6a33957cdc889524c41c5ef870f | [
"MIT"
] | 9 | 2020-11-17T04:06:22.000Z | 2022-02-19T09:05:29.000Z | src/ScriptSystem/Init/details/UECS_AutoRefl/World_AutoRefl.inl | Jerry-Shen0527/Utopia | 5f40edc814e5f6a33957cdc889524c41c5ef870f | [
"MIT"
] | 41 | 2020-10-09T10:09:34.000Z | 2022-03-27T02:51:57.000Z | // This file is generated by Ubpa::USRefl::AutoRefl
#pragma once
#include <USRefl/USRefl.h>
#include <UTemplate/Func.h>
template<>
struct Ubpa::USRefl::TypeInfo<Ubpa::UECS::World> :
TypeInfoBase<Ubpa::UECS::World>
{
#ifdef UBPA_USREFL_NOT_USE_NAMEOF
static constexpr char name[18] = "Ubpa::UECS::World";
#endif
sta... | 29.75641 | 128 | 0.661784 | Jerry-Shen0527 |
173884be24274ff18f2e9d4ee4ff81bc407c4045 | 944 | cpp | C++ | src/Graphics/Transform.cpp | ksmai/fire-web-engine | 531fd3d2ae78244bf2e2a62571ccbcd6e6c2a5bd | [
"MIT"
] | null | null | null | src/Graphics/Transform.cpp | ksmai/fire-web-engine | 531fd3d2ae78244bf2e2a62571ccbcd6e6c2a5bd | [
"MIT"
] | null | null | null | src/Graphics/Transform.cpp | ksmai/fire-web-engine | 531fd3d2ae78244bf2e2a62571ccbcd6e6c2a5bd | [
"MIT"
] | null | null | null | #include "glm/gtc/type_ptr.hpp"
#include "glm/gtc/matrix_transform.hpp"
#include "Graphics/Transform.h"
FW::Transform::Transform():
matrix{1.0f},
position{0.0f, 0.0f},
size{1.0f, 1.0f},
radians{0.0f},
dirty{false}
{
}
void FW::Transform::translate(float x, float y) {
position.x += x;
position.y += y;
... | 18.153846 | 49 | 0.573093 | ksmai |
173c3d5bf1bcc534e90c0f0282aa861e72cda919 | 11,864 | cc | C++ | src/gn/label.cc | steezer/gn | 52e156194f923abf40c2601cbac4dfa3ad988a08 | [
"BSD-3-Clause"
] | 84 | 2016-05-06T13:13:21.000Z | 2022-03-15T02:50:59.000Z | src/gn/label.cc | steezer/gn | 52e156194f923abf40c2601cbac4dfa3ad988a08 | [
"BSD-3-Clause"
] | 4 | 2017-09-29T15:16:43.000Z | 2018-07-24T11:48:30.000Z | src/gn/label.cc | steezer/gn | 52e156194f923abf40c2601cbac4dfa3ad988a08 | [
"BSD-3-Clause"
] | 39 | 2016-08-04T02:24:56.000Z | 2022-03-02T02:31:42.000Z | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gn/label.h"
#include "base/logging.h"
#include "base/strings/string_util.h"
#include "gn/err.h"
#include "gn/filesystem_utils.h"
#include "... | 35.73494 | 80 | 0.648095 | steezer |
173c3f8c61e5896f098f837048f3ed3f6149d40b | 8,979 | cpp | C++ | cpp/open3d/visualization/gui/Util.cpp | Dudulle/Open3D | ffed2d1bee6d45b6acc4b7ae7133752e50d6ecab | [
"MIT"
] | 8 | 2021-03-17T14:24:12.000Z | 2022-03-30T15:35:27.000Z | cpp/open3d/visualization/gui/Util.cpp | Dudulle/Open3D | ffed2d1bee6d45b6acc4b7ae7133752e50d6ecab | [
"MIT"
] | 1 | 2021-11-04T09:22:25.000Z | 2022-02-14T01:32:31.000Z | cpp/open3d/visualization/gui/Util.cpp | Dudulle/Open3D | ffed2d1bee6d45b6acc4b7ae7133752e50d6ecab | [
"MIT"
] | 2 | 2021-08-24T18:06:55.000Z | 2021-12-17T10:48:34.000Z | // ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2021 www.open3d.org
//
// Permissio... | 34.402299 | 80 | 0.484798 | Dudulle |
173e4f39208ddebd61ff28f5d3ad6e81823bc8a6 | 1,453 | cpp | C++ | src/trabalho1/Truck.cpp | brunosalgado/programacao-avancada | 6ce270bf2547a7cc5708a859f54d729f4d951cfe | [
"MIT"
] | null | null | null | src/trabalho1/Truck.cpp | brunosalgado/programacao-avancada | 6ce270bf2547a7cc5708a859f54d729f4d951cfe | [
"MIT"
] | null | null | null | src/trabalho1/Truck.cpp | brunosalgado/programacao-avancada | 6ce270bf2547a7cc5708a859f54d729f4d951cfe | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include "Truck.h"
Truck::Truck() : _capacity(0.0), _length(0.0), _height(0.0), Vehicle() {}
Truck::Truck(string plate, int weight, int max_kmh, double price, double capacity, double length, double height) :
_capacity(capacity), _length(length), _height(height), Vehicle ... | 29.06 | 114 | 0.542326 | brunosalgado |
173edb31653bb326be6a4f5701e9d0ea9d668671 | 3,988 | hpp | C++ | HugeCTR/include/heapex.hpp | ethem-kinginthenorth/HugeCTR | 37bf562f19c5b67d669eb84cb4031c6d766cb166 | [
"Apache-2.0"
] | 1 | 2020-07-15T07:33:09.000Z | 2020-07-15T07:33:09.000Z | HugeCTR/include/heapex.hpp | ethem-kinginthenorth/HugeCTR | 37bf562f19c5b67d669eb84cb4031c6d766cb166 | [
"Apache-2.0"
] | null | null | null | HugeCTR/include/heapex.hpp | ethem-kinginthenorth/HugeCTR | 37bf562f19c5b67d669eb84cb4031c6d766cb166 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 25.729032 | 77 | 0.616851 | ethem-kinginthenorth |
1740170b90f1f40cc6db661e6533989ab4c9c523 | 5,648 | cpp | C++ | Assets/FrameCapturer-master/Plugin/fccore/Encoder/Audio/fcFlacContext.cpp | Okashiou/VJx | 491cc37e3d6eddd78e4c99d5f211c5e2b2d498f0 | [
"MIT"
] | null | null | null | Assets/FrameCapturer-master/Plugin/fccore/Encoder/Audio/fcFlacContext.cpp | Okashiou/VJx | 491cc37e3d6eddd78e4c99d5f211c5e2b2d498f0 | [
"MIT"
] | null | null | null | Assets/FrameCapturer-master/Plugin/fccore/Encoder/Audio/fcFlacContext.cpp | Okashiou/VJx | 491cc37e3d6eddd78e4c99d5f211c5e2b2d498f0 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "fcInternal.h"
#include "Foundation/fcFoundation.h"
#include "fcFlacContext.h"
#ifdef fcSupportFlac
#ifdef _MSC_VER
#pragma comment(lib, "libFLAC_static.lib")
#pragma comment(lib, "libvorbis_static.lib")
#pragma comment(lib, "libogg_static.lib")
#define FLAC__NO_DLL
#endif
#in... | 28.964103 | 206 | 0.722557 | Okashiou |
1740fc1adcf4f884468323051aa40be29365accc | 5,286 | cpp | C++ | Sources/VanillaDNN/Layers/DenseLayer.cpp | jaegyeom/Vanilla-DNN | 3a783bbbb7d827b82716516eca1ee9e7803804a7 | [
"MIT"
] | 4 | 2021-05-20T16:02:43.000Z | 2021-10-02T02:37:06.000Z | Sources/VanillaDNN/Layers/DenseLayer.cpp | jaegyeom/Vanilla-DNN | 3a783bbbb7d827b82716516eca1ee9e7803804a7 | [
"MIT"
] | 1 | 2021-05-14T18:13:28.000Z | 2021-05-15T01:57:06.000Z | Sources/VanillaDNN/Layers/DenseLayer.cpp | jaegyeom/Vanilla-DNN | 3a783bbbb7d827b82716516eca1ee9e7803804a7 | [
"MIT"
] | 2 | 2021-05-14T18:00:34.000Z | 2021-10-31T08:23:35.000Z | #ifndef VANILLA_DNN_DENSE_LAYER_CPP
#define VANILLA_DNN_DENSE_LAYER_CPP
#include <VanillaDNN/Layers/DenseLayer.hpp>
DenseLayer::DenseLayer(){
this->dim = 0;
}
DenseLayer::DenseLayer(const DenseLayer& rhs) {
this->dim = rhs.dim;
this->weight = rhs.weight;
this->bias = rhs.bias;
this->setActivation(rhs.getActivat... | 28.117021 | 105 | 0.699016 | jaegyeom |
174158f3202bc26d4e749d884eade32d495dd5b7 | 10,043 | hpp | C++ | libraries/include/rpc/rpc_msg.hpp | WillAchain/lvm | 1511459593df943be8a431ac968ff23083481da8 | [
"MIT"
] | 19 | 2017-11-01T02:48:58.000Z | 2018-04-25T23:07:33.000Z | libraries/include/rpc/rpc_msg.hpp | WillAchain/lvm | 1511459593df943be8a431ac968ff23083481da8 | [
"MIT"
] | 1 | 2017-11-10T01:28:43.000Z | 2017-11-10T01:28:43.000Z | libraries/include/rpc/rpc_msg.hpp | WillAchain/lvm | 1511459593df943be8a431ac968ff23083481da8 | [
"MIT"
] | 24 | 2017-11-01T03:30:09.000Z | 2018-12-28T21:57:33.000Z | /*
author: saiy
date: 2017.10.17
rpc message
*/
#ifndef _RPC_MSG_H_
#define _RPC_MSG_H_
#include <fc/array.hpp>
#include <fc/io/varint.hpp>
#include <fc/io/raw.hpp>
#include <fc/crypto/ripemd160.hpp>
#include <fc/reflect/variant.hpp>
#include <util/util.hpp>
#include <task/task.hpp>
enum SocketMode {
ASYNC_MOD... | 25.361111 | 101 | 0.657373 | WillAchain |
1742e61a23f4e0dc10d0c2422a1a49cb577c48c5 | 14,418 | cc | C++ | Ghidra/Features/Decompiler/src/decompile/cpp/sleigh_arch.cc | Bugasu/ghidra | 1bfa1aaf33485cec314b96b367c31eff4467b291 | [
"Apache-2.0"
] | 115 | 2020-04-29T22:58:59.000Z | 2022-03-21T05:42:12.000Z | Ghidra/Features/Decompiler/src/decompile/cpp/sleigh_arch.cc | weisJ/ghidra | 7672d4cc34f2f36365335e8da2d6f6079cc9c357 | [
"Apache-2.0"
] | 3 | 2020-05-25T11:55:04.000Z | 2021-07-03T01:51:23.000Z | Ghidra/Features/Decompiler/src/decompile/cpp/sleigh_arch.cc | weisJ/ghidra | 7672d4cc34f2f36365335e8da2d6f6079cc9c357 | [
"Apache-2.0"
] | 19 | 2020-04-29T12:29:46.000Z | 2022-03-10T02:41:17.000Z | /* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... | 30.54661 | 109 | 0.689139 | Bugasu |
174d714e3f95ef79e330073edf652faa71e9300c | 3,653 | cpp | C++ | C++/Object-Oriented Programming in C++/Chapter 4_Structures/7.cpp | OjeshManandhar/Code-Backup | 67a395fe2439725f42ce0a18b4d2e2e65f00695d | [
"MIT"
] | 2 | 2019-01-03T14:12:52.000Z | 2019-03-22T16:13:16.000Z | C++/Object-Oriented Programming in C++/Chapter 4_Structures/7.cpp | OjeshManandhar/Code-Backup | 67a395fe2439725f42ce0a18b4d2e2e65f00695d | [
"MIT"
] | null | null | null | C++/Object-Oriented Programming in C++/Chapter 4_Structures/7.cpp | OjeshManandhar/Code-Backup | 67a395fe2439725f42ce0a18b4d2e2e65f00695d | [
"MIT"
] | 1 | 2019-01-13T17:54:01.000Z | 2019-01-13T17:54:01.000Z | #include <iostream>
using namespace std;
int main()
{
enum etype
{
laborer = 'l', secretary = 's', manager = 'm', accountant = 'a', executive = 'e', researcher = 'r'
};
struct date
{
int day, mon, year;
};
struct employee
{
int no;
float com;
etype type;
date first_day;
}e1, e2, e3;
char ch;
c... | 25.545455 | 128 | 0.570216 | OjeshManandhar |
174dd7a05861453228b364159954b61038cc8e58 | 4,608 | cpp | C++ | Arduino/stewartplatform/src/CANbus.cpp | skotterud98/StewartPlatform_Qt | d2cae1ed036ec381cda888f49005cb9df380a4a1 | [
"MIT"
] | 1 | 2022-01-04T13:24:36.000Z | 2022-01-04T13:24:36.000Z | Arduino/stewartplatform/src/CANbus.cpp | skotterud98/StewartPlatform_Qt | d2cae1ed036ec381cda888f49005cb9df380a4a1 | [
"MIT"
] | null | null | null | Arduino/stewartplatform/src/CANbus.cpp | skotterud98/StewartPlatform_Qt | d2cae1ed036ec381cda888f49005cb9df380a4a1 | [
"MIT"
] | null | null | null | #include "CANbus.h"
/*
* Constructor
*/
CANbus::CANbus(Controller* control_ptr)
{
this->reset();
msg_count = 0;
this->control_ptr = control_ptr;
}
/*
* CAN-bus receive ISR
*/
void CANbus::ref_ISR(CAN_FRAME* frame)
{
static float ref_pos[MOTORS_TOT] = {0., 0., 0., 0., 0., 0.};
static float r... | 23.875648 | 93 | 0.488932 | skotterud98 |
17514004f3041a9af67dc36f5b2ac0ee061f1da9 | 4,402 | cpp | C++ | src/CBox2DBody.cpp | divotkey/astu-box2d | 0657accc7819e90e610cf923bfc42c4141e03faa | [
"MIT"
] | null | null | null | src/CBox2DBody.cpp | divotkey/astu-box2d | 0657accc7819e90e610cf923bfc42c4141e03faa | [
"MIT"
] | null | null | null | src/CBox2DBody.cpp | divotkey/astu-box2d | 0657accc7819e90e610cf923bfc42c4141e03faa | [
"MIT"
] | null | null | null | /*
* ASTU/Box2D
* An integration of Erin Catto's 2D Physics Engine to AST-Utilities.
*
* Copyright (c) 2020, 2021 Roman Divotkey. All rights reserved.
*/
// Local includes
#include <Suite2D/CPose.h>
#include "CBox2DBody.h"
// Box2D includes
#include <box2d/box2d.h>
using namespace std;
namespace astu::suite2d... | 27.17284 | 74 | 0.559746 | divotkey |
1753140eb0e28bf873520b1338235cbbfcedff02 | 92 | cpp | C++ | Non-Ideone/CodeChef/Practice/START01.cpp | beingsushant/BunnyKeCodes | 018cae93935ee30ce02561d05cda091ebb6e9643 | [
"MIT"
] | 1 | 2018-02-18T13:59:42.000Z | 2018-02-18T13:59:42.000Z | Non-Ideone/CodeChef/Practice/START01.cpp | beingsushant/BunnyKeCodes | 018cae93935ee30ce02561d05cda091ebb6e9643 | [
"MIT"
] | null | null | null | Non-Ideone/CodeChef/Practice/START01.cpp | beingsushant/BunnyKeCodes | 018cae93935ee30ce02561d05cda091ebb6e9643 | [
"MIT"
] | 2 | 2019-10-31T17:28:17.000Z | 2019-10-31T17:52:11.000Z | #include<iostream>
using namespace std;
int main()
{
int n;
cin>>n;
cout<<n;
return 0;
}
| 8.363636 | 20 | 0.641304 | beingsushant |
1755cb0e776a14723d5a1f4b6dfda354eb73ca64 | 1,564 | hh | C++ | src/proto/core/platform/File.hh | kcpikkt/proto | 2d7458c2ce2f571303de040f660137dc0a1d33de | [
"MIT"
] | null | null | null | src/proto/core/platform/File.hh | kcpikkt/proto | 2d7458c2ce2f571303de040f660137dc0a1d33de | [
"MIT"
] | null | null | null | src/proto/core/platform/File.hh | kcpikkt/proto | 2d7458c2ce2f571303de040f660137dc0a1d33de | [
"MIT"
] | null | null | null | #pragma once
#include "proto/core/common.hh"
#include "proto/core/error-handling.hh"
#include "proto/core/util/Bitfield.hh"
#include "proto/core/util/StringView.hh"
#if defined(PROTO_PLATFORM_WINDOWS)
#error not implemented
#elif defined(PROTO_PLATFORM_MAC)
#error not implemented
#else
# include <stdio.h> //... | 22.342857 | 53 | 0.609974 | kcpikkt |
17594d857abe35405ac93da8122c203004e5676c | 2,569 | cpp | C++ | src/window.cpp | orbitrc/blusher-qt | 23a868875fbe600a14ea6d49226226fea8931ab6 | [
"MIT"
] | null | null | null | src/window.cpp | orbitrc/blusher-qt | 23a868875fbe600a14ea6d49226226fea8931ab6 | [
"MIT"
] | null | null | null | src/window.cpp | orbitrc/blusher-qt | 23a868875fbe600a14ea6d49226226fea8931ab6 | [
"MIT"
] | null | null | null | #include <blusher/window.h>
#include <blusher/title-bar.h>
#define BLUSHER_SHADOW_WIDTH 40
#define BLUSHER_RESIZE_WIDTH 5
#define BLUSHER_BORDER_WIDTH 1
#define BLUSHER_TITLE_BAR_HEIGHT 30
namespace bl {
Window::Window()
: Surface(nullptr)
{
this->_width = 200;
this->_height = 200;
this->_decoratio... | 21.771186 | 77 | 0.635267 | orbitrc |
175ccb0f14e5c055fe1b8c51ce239c6777f8bbc2 | 2,604 | cpp | C++ | client/src/ui/content/content.cpp | zDestinate/InventoryManagement | b2f568cbeca3e9fa7e2c1fc213f3b527a6755216 | [
"MIT"
] | null | null | null | client/src/ui/content/content.cpp | zDestinate/InventoryManagement | b2f568cbeca3e9fa7e2c1fc213f3b527a6755216 | [
"MIT"
] | null | null | null | client/src/ui/content/content.cpp | zDestinate/InventoryManagement | b2f568cbeca3e9fa7e2c1fc213f3b527a6755216 | [
"MIT"
] | null | null | null | #include <iostream>
#include <codecvt>
#include "ui/content/content.h"
#pragma comment(lib, "comctl32.lib")
content::content(HWND hwndParent, int lpParam, int x, int y, int width, int height)
{
hwnd = CreateWindow("STATIC", "", WS_CHILD | WS_VISIBLE , x, y, width, height, hwndParent, (HMENU)lpParam, NULL, NULL);
... | 27.702128 | 126 | 0.616743 | zDestinate |
175d8968efffcd18d5327ebbc452917d2a494d93 | 7,116 | cpp | C++ | IDE/ChoiceFile.cpp | sutao80216/GDevelop | 79461bf01cc0c626e2f094d3fca940d643f93d76 | [
"MIT"
] | 1 | 2019-08-24T03:18:42.000Z | 2019-08-24T03:18:42.000Z | IDE/ChoiceFile.cpp | sutao80216/GDevelop | 79461bf01cc0c626e2f094d3fca940d643f93d76 | [
"MIT"
] | 9 | 2020-04-04T19:26:47.000Z | 2022-03-25T18:41:20.000Z | IDE/ChoiceFile.cpp | sutao80216/GDevelop | 79461bf01cc0c626e2f094d3fca940d643f93d76 | [
"MIT"
] | 2 | 2020-03-02T05:20:41.000Z | 2021-05-10T03:59:05.000Z | /*
* GDevelop IDE
* Copyright 2008-2016 Florian Rival (Florian.Rival@gmail.com). All rights reserved.
* This project is released under the GNU General Public License version 3.
*/
#include "ChoiceFile.h"
//(*InternalHeaders(ChoiceFile)
#include <wx/bitmap.h>
#include <wx/intl.h>
#include <wx/image.h>
... | 46.509804 | 189 | 0.756886 | sutao80216 |
17629f70e7fc6e5676a6b500f7ae693092c5e342 | 49,168 | cc | C++ | engine/source/console/console.cc | itsasc/Necromantia | f41dfa045eb2c3500320767553d75f83df10e6f9 | [
"MIT"
] | null | null | null | engine/source/console/console.cc | itsasc/Necromantia | f41dfa045eb2c3500320767553d75f83df10e6f9 | [
"MIT"
] | null | null | null | engine/source/console/console.cc | itsasc/Necromantia | f41dfa045eb2c3500320767553d75f83df10e6f9 | [
"MIT"
] | null | null | null | //-----------------------------------------------------------------------------
// Copyright (c) 2013 GarageGames, LLC
//
// 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 restrictio... | 28.686114 | 159 | 0.59256 | itsasc |
17656ca8eb87e30ed3dda19c5fe5dafc2576f8e6 | 2,261 | hpp | C++ | modules/utils/filesystem.hpp | psastras/vocabtree | c80bc2044e6a107358c7f838427794a830e58bce | [
"MIT"
] | 10 | 2015-10-03T17:10:08.000Z | 2021-02-28T20:36:14.000Z | modules/utils/filesystem.hpp | psastras/vocabtree | c80bc2044e6a107358c7f838427794a830e58bce | [
"MIT"
] | null | null | null | modules/utils/filesystem.hpp | psastras/vocabtree | c80bc2044e6a107358c7f838427794a830e58bce | [
"MIT"
] | 5 | 2017-03-30T02:20:03.000Z | 2018-03-28T06:29:53.000Z | #pragma once
#include "config.hpp"
#include <stdint.h>
#include <opencv2/opencv.hpp>
/// Provides useful wrappers around many filesystem related functionality, including reading writing
/// certain common data structures as well as common operations (ex. file_exists).
namespace filesystem {
/// Returns the basename... | 57.974359 | 115 | 0.745245 | psastras |
17691b24975f17cdde7fe8a147e19f8c166a912c | 4,091 | cpp | C++ | Coin3D/src/engines/SoTransformVec3f.cpp | pniaz20/inventor-utils | 2306b758b15bd1a0df3fb9bd250215b7bb7fac3f | [
"MIT"
] | null | null | null | Coin3D/src/engines/SoTransformVec3f.cpp | pniaz20/inventor-utils | 2306b758b15bd1a0df3fb9bd250215b7bb7fac3f | [
"MIT"
] | null | null | null | Coin3D/src/engines/SoTransformVec3f.cpp | pniaz20/inventor-utils | 2306b758b15bd1a0df3fb9bd250215b7bb7fac3f | [
"MIT"
] | null | null | null | /**************************************************************************\
* Copyright (c) Kongsberg Oil & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Red... | 32.728 | 80 | 0.727206 | pniaz20 |
176b4645c457b7348a9fec9d79b2422cf26378f9 | 64 | cpp | C++ | src/external/stb_image.cpp | Adanos020/ErupTrace | 2d359c4d53e758299e8b2d476d945fe2dd2f1c2d | [
"MIT"
] | null | null | null | src/external/stb_image.cpp | Adanos020/ErupTrace | 2d359c4d53e758299e8b2d476d945fe2dd2f1c2d | [
"MIT"
] | null | null | null | src/external/stb_image.cpp | Adanos020/ErupTrace | 2d359c4d53e758299e8b2d476d945fe2dd2f1c2d | [
"MIT"
] | null | null | null | #define STB_IMAGE_IMPLEMENTATION
#include <external/stb_image.h> | 32 | 32 | 0.859375 | Adanos020 |
176da841d3cfc0ed8f47e4793551f017cdb3044c | 442 | hpp | C++ | src/request.hpp | jackim/kiss | e9216dfc46c2d047eb107f04d3d99d88ec58f3b5 | [
"Apache-2.0"
] | null | null | null | src/request.hpp | jackim/kiss | e9216dfc46c2d047eb107f04d3d99d88ec58f3b5 | [
"Apache-2.0"
] | null | null | null | src/request.hpp | jackim/kiss | e9216dfc46c2d047eb107f04d3d99d88ec58f3b5 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "http.hpp"
#include <string>
#include <map>
namespace jackim { namespace kiss{
struct Request
{
Http *http;
std::string url;
std::string path;
std::string query;
std::map<std::string , std::string> header;
std::string body;
unsigned short h... | 14.733333 | 48 | 0.585973 | jackim |
176ee81cc174fcf3ce2b738c6db3e63d7ee3367a | 1,618 | cpp | C++ | src/chapter_11_cryptography/problem_092_computing_file_hashes.cpp | rturrado/the_modern_cpp_challenge | a569a1538802a44c3b7c44134c06c73727f2b5e3 | [
"MIT"
] | null | null | null | src/chapter_11_cryptography/problem_092_computing_file_hashes.cpp | rturrado/the_modern_cpp_challenge | a569a1538802a44c3b7c44134c06c73727f2b5e3 | [
"MIT"
] | null | null | null | src/chapter_11_cryptography/problem_092_computing_file_hashes.cpp | rturrado/the_modern_cpp_challenge | a569a1538802a44c3b7c44134c06c73727f2b5e3 | [
"MIT"
] | null | null | null | #include "chapter_11_cryptography.h"
#include <filesystem>
#include <format>
#include <iostream> // cout
#include <vector>
#define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1
#include "cryptocpp/cryptlib.h"
#include "cryptocpp/files.h" // FileSource
#include "cryptocpp/filters.h" // HashFilter, StringSink
#include "cryptocp... | 28.892857 | 108 | 0.668727 | rturrado |
176f763fe5d41dd014235d1d134f35cc55d11c7f | 1,524 | cpp | C++ | Days 171 - 180/Day 179/CreateTreeFromPostorderTraversal.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | Days 171 - 180/Day 179/CreateTreeFromPostorderTraversal.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | Days 171 - 180/Day 179/CreateTreeFromPostorderTraversal.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | #include <iostream>
#include <iterator>
#include <memory>
#include <vector>
struct Node
{
int value;
std::shared_ptr<Node> left;
std::shared_ptr<Node> right;
explicit Node(const int value, const std::shared_ptr<Node>& left = nullptr, const std::shared_ptr<Node>& right = nullptr)
: value(value), left(left), rig... | 21.771429 | 122 | 0.667979 | LucidSigma |
1775593d194f14f7190addd2bd604091128c04bf | 1,962 | hpp | C++ | include/StereoEval.hpp | norishigefukushima/OpenCP | 63090131ec975e834f85b04e84ec29b2893845b2 | [
"BSD-3-Clause"
] | 137 | 2015-03-27T07:11:19.000Z | 2022-03-30T05:58:22.000Z | include/StereoEval.hpp | Pandinosaurus/OpenCP | a5234ed531c610d7944fa14d42f7320442ea34a1 | [
"BSD-3-Clause"
] | 2 | 2016-05-18T06:33:16.000Z | 2016-07-11T17:39:17.000Z | include/StereoEval.hpp | Pandinosaurus/OpenCP | a5234ed531c610d7944fa14d42f7320442ea34a1 | [
"BSD-3-Clause"
] | 43 | 2015-02-20T15:34:25.000Z | 2022-01-27T14:59:37.000Z | #pragma once
#include "common.hpp"
namespace cp
{
CP_EXPORT double calcBadPixel(cv::InputArray groundtruth, cv::InputArray disparityImage, cv::InputArray mask, double th, double amp);
CP_EXPORT double calcBadPixel(cv::InputArray groundtruth, cv::InputArray disparityImage, cv::InputArray mask, double th, double amp,... | 37.730769 | 158 | 0.730887 | norishigefukushima |
17765bec1b74034842222ffd57f7ef8687d3a376 | 3,446 | cpp | C++ | src/vendors/OceanOptics/features/eeprom_slots/EEPROMSlotFeature.cpp | udyni/seabreeze | 3d3934f8f0df61c11cef70516cf62a8472cab974 | [
"MIT"
] | null | null | null | src/vendors/OceanOptics/features/eeprom_slots/EEPROMSlotFeature.cpp | udyni/seabreeze | 3d3934f8f0df61c11cef70516cf62a8472cab974 | [
"MIT"
] | null | null | null | src/vendors/OceanOptics/features/eeprom_slots/EEPROMSlotFeature.cpp | udyni/seabreeze | 3d3934f8f0df61c11cef70516cf62a8472cab974 | [
"MIT"
] | 1 | 2020-07-03T08:36:47.000Z | 2020-07-03T08:36:47.000Z | /***************************************************//**
* @file EEPROMSlotFeature.cpp
* @date February 2009
* @author Ocean Optics, Inc.
*
* LICENSE:
*
* SeaBreeze Copyright (C) 2014, Ocean Optics Inc
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software a... | 34.808081 | 77 | 0.687464 | udyni |
1779ec588e196d65e916646466f3489dc275d7ef | 3,592 | cpp | C++ | hal/src/electron/ota_flash_hal.cpp | zsoltmazlo/indoor-controller2 | 5fde9f40b30d087af03f6cccdb97821719941955 | [
"MIT"
] | null | null | null | hal/src/electron/ota_flash_hal.cpp | zsoltmazlo/indoor-controller2 | 5fde9f40b30d087af03f6cccdb97821719941955 | [
"MIT"
] | null | null | null | hal/src/electron/ota_flash_hal.cpp | zsoltmazlo/indoor-controller2 | 5fde9f40b30d087af03f6cccdb97821719941955 | [
"MIT"
] | null | null | null | /**
******************************************************************************
* @file ota_flash_hal.cpp
* @author Matthew McGowan, Satish Nair
* @version V1.0.0
* @date 25-Sept-2014
* @brief
******************************************************************************
Copyright (c) 2013-2015 Parti... | 46.649351 | 161 | 0.716592 | zsoltmazlo |
ed06c65c1e63be00ee6faaacdb928e57878040f2 | 5,616 | cxx | C++ | lio/VRMLIO.cxx | kanait/hsphparam | 00158f81d00e496fed469779bf73094495ac8671 | [
"MIT"
] | 1 | 2021-08-23T06:55:22.000Z | 2021-08-23T06:55:22.000Z | lio/VRMLIO.cxx | kanait/hsphparam | 00158f81d00e496fed469779bf73094495ac8671 | [
"MIT"
] | null | null | null | lio/VRMLIO.cxx | kanait/hsphparam | 00158f81d00e496fed469779bf73094495ac8671 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////
//
// $Id: VRMLIO.cxx 2021/06/05 14:00:43 kanai Exp $
//
// Copyright (c) 2021 Takashi Kanai
// Released under the MIT license
//
////////////////////////////////////////////////////////////////////
// for openvrml 0.11.2
#include "envDep.h"
#ifdef... | 23.016393 | 80 | 0.490919 | kanait |
ed07c50d6aa9d046a2cbe7b36e0f59d31da860fc | 1,846 | hpp | C++ | include/glfw-cxx/GammaRamp.hpp | Mischa-Alff/glfw-cxx | bd335a7c5ac959da0ea1ac009a66b75ada21efb6 | [
"MIT"
] | 12 | 2015-07-05T15:07:26.000Z | 2020-07-10T03:15:56.000Z | include/glfw-cxx/GammaRamp.hpp | TheRealJoe24/glfw-cxx | bd335a7c5ac959da0ea1ac009a66b75ada21efb6 | [
"MIT"
] | 1 | 2016-08-10T16:49:13.000Z | 2016-08-19T18:23:04.000Z | include/glfw-cxx/GammaRamp.hpp | TheRealJoe24/glfw-cxx | bd335a7c5ac959da0ea1ac009a66b75ada21efb6 | [
"MIT"
] | 3 | 2017-04-24T14:33:46.000Z | 2019-06-15T22:15:22.000Z | #pragma once
#include <GLFW/glfw3.h>
namespace glfw
{
/*!\brief A class describing gamma ramp parameters.
*/
class GammaRamp
{
private:
GLFWgammaramp m_gammaramp;
public:
/*! \brief Returns an array of values describing the response of the red channel.
* \return An array of values describing the resp... | 30.766667 | 86 | 0.703142 | Mischa-Alff |
ed0828c25cfdeee2038003f864ee0fc8528dcd09 | 187 | cpp | C++ | LeetCode/c++/69_Sqrt(x).cpp | Weak-Chicken/Algo_every_day | 0976b5986d6c98cb8370ff4239b4a2485f865253 | [
"MIT"
] | 1 | 2018-02-08T23:50:19.000Z | 2018-02-08T23:50:19.000Z | LeetCode/c++/69_Sqrt(x).cpp | Weak-Chicken/Algo_every_day | 0976b5986d6c98cb8370ff4239b4a2485f865253 | [
"MIT"
] | 1 | 2018-04-11T19:08:22.000Z | 2018-04-12T19:24:57.000Z | LeetCode/c++/69_Sqrt(x).cpp | Weak-Chicken/Cpp_every_day | 0976b5986d6c98cb8370ff4239b4a2485f865253 | [
"MIT"
] | null | null | null | class Solution
{
public:
int mySqrt(int x)
{
for (int i = 0; i <= 46340; i++)
{
if (i * i > x) return i - 1;
}
return 46340;
}
}; | 15.583333 | 40 | 0.379679 | Weak-Chicken |
ed0b4c34c10acf7098ba72fa97d86cb78e452cce | 1,072 | cc | C++ | cpp/src/tree/postorder.cc | dacozai/algorithm-diary | 8ed5e119e4450e92e63276047ef19bbf422c2770 | [
"MIT"
] | 1 | 2019-10-17T08:34:55.000Z | 2019-10-17T08:34:55.000Z | cpp/src/tree/postorder.cc | dacozai/algorithm-diary | 8ed5e119e4450e92e63276047ef19bbf422c2770 | [
"MIT"
] | 1 | 2020-05-24T08:32:13.000Z | 2020-05-24T08:32:13.000Z | cpp/src/tree/postorder.cc | dacozai/algorithm-diary | 8ed5e119e4450e92e63276047ef19bbf422c2770 | [
"MIT"
] | null | null | null | #include "test.h"
/** Question no 145 hard Binary Tree Postorder Traversal
* Author : Li-Han, Chen; 陳立瀚
* Date : 24th, January, 2020
* Source : https://leetcode.com/problems/binary-tree-postorder-traversal/
*
* Given a binary tree, return the postorder traversal of its nodes' values.
*
*/
/** Solution
* Run... | 22.333333 | 76 | 0.597948 | dacozai |
ed14c70a30fca84051ffab8d97cf833bb694459b | 5,531 | cpp | C++ | vkconfig_core/test/test_path_manager.cpp | johnzupin/VulkanTools | 4a4d824b43984d29902f7c8246aab99f0909151d | [
"Apache-2.0"
] | null | null | null | vkconfig_core/test/test_path_manager.cpp | johnzupin/VulkanTools | 4a4d824b43984d29902f7c8246aab99f0909151d | [
"Apache-2.0"
] | null | null | null | vkconfig_core/test/test_path_manager.cpp | johnzupin/VulkanTools | 4a4d824b43984d29902f7c8246aab99f0909151d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020 Valve Corporation
* Copyright (c) 2020 LunarG, Inc.
*
* 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
*
* Unl... | 32.535294 | 123 | 0.703851 | johnzupin |
ed177f33c902b38b177df32bd5282bc7cc3f1a51 | 3,445 | hpp | C++ | src/3rd party/boost/boost/graph/topological_sort.hpp | OLR-xray/OLR-3.0 | b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611 | [
"Apache-2.0"
] | 8 | 2016-01-25T20:18:51.000Z | 2019-03-06T07:00:04.000Z | CvGameCoreDLL/Boost-1.32.0/include/boost/graph/topological_sort.hpp | Imperator-Knoedel/Sunset | 19c95f4844586b96341f3474b58e0dacaae485b9 | [
"MIT"
] | null | null | null | CvGameCoreDLL/Boost-1.32.0/include/boost/graph/topological_sort.hpp | Imperator-Knoedel/Sunset | 19c95f4844586b96341f3474b58e0dacaae485b9 | [
"MIT"
] | 3 | 2016-02-14T01:20:43.000Z | 2021-02-03T11:19:11.000Z | //
//=======================================================================
// Copyright 1997, 1998, 1999, 2000 University of Notre Dame.
// Authors: Andrew Lumsdaine, Lie-Quan Lee, Jeremy G. Siek
//
// This file is part of the Boost Graph Library
//
// You should have received a copy of the License Agreement for the
... | 37.043011 | 73 | 0.702758 | OLR-xray |
ed1b1b4f31ee6bc1756a75dd62f67a374c29a8d9 | 690 | cpp | C++ | keygen/keygen.cpp | z-beslaneev/ONVIF_event_server | 1ccd481f2e380416f50a8707dd578bd8b9b2498c | [
"MIT"
] | 2 | 2021-03-16T14:04:00.000Z | 2021-11-01T15:04:46.000Z | keygen/keygen.cpp | z-beslaneev/ONVIF_event_server | 1ccd481f2e380416f50a8707dd578bd8b9b2498c | [
"MIT"
] | null | null | null | keygen/keygen.cpp | z-beslaneev/ONVIF_event_server | 1ccd481f2e380416f50a8707dd578bd8b9b2498c | [
"MIT"
] | null | null | null | #include <fstream>
#include <iostream>
#include <iomanip>
#include <md5Util.h>
#include <sysinfo.h>
int main()
{
std::stringstream sysinfo;
try
{
sysinfo << GetMac() << "||" << GetMicroSDCID() << "||" << GetCPUSerial();
}
catch(std::exception& ex)
{
std::cerr << "Can't get system info: " << ex.what() << ... | 19.166667 | 105 | 0.617391 | z-beslaneev |
ed1f39b9ef14e23425a52e1a1accacf4fc4b89cb | 150 | cpp | C++ | source/light/Light.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | source/light/Light.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | source/light/Light.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | #include "raytracing/light/Light.h"
namespace rt
{
Light::Light()
: m_shadows(true)
{
}
bool Light::CastsShadows() const
{
return m_shadows;
}
} | 9.375 | 35 | 0.686667 | xzrunner |
ed244531bee2991f8206e0839d0e7eb71a59c0d4 | 8,352 | cpp | C++ | gui/qt/mainwidgets/periodictablewidget.cpp | hein09/vipster | b92302bf2bb8b8941e239ce8cbc7209e1e615b0b | [
"BSD-2-Clause"
] | 6 | 2015-12-02T15:33:27.000Z | 2017-07-28T17:46:51.000Z | gui/qt/mainwidgets/periodictablewidget.cpp | hein09/vipster | b92302bf2bb8b8941e239ce8cbc7209e1e615b0b | [
"BSD-2-Clause"
] | 3 | 2018-02-04T16:11:19.000Z | 2018-03-16T16:23:29.000Z | gui/qt/mainwidgets/periodictablewidget.cpp | hein09/vipster | b92302bf2bb8b8941e239ce8cbc7209e1e615b0b | [
"BSD-2-Clause"
] | 1 | 2017-07-05T11:44:55.000Z | 2017-07-05T11:44:55.000Z | #include <QPushButton>
#include <QSpinBox>
#include <QDoubleSpinBox>
#include <QLineEdit>
#include <QColorDialog>
#include <QMessageBox>
#include "periodictablewidget.h"
#include "ui_periodictablewidget.h"
#include "../mainwindow.h"
using namespace Vipster;
template<typename T>
void PeriodicTableWidget::registerPrope... | 34.37037 | 98 | 0.561901 | hein09 |
ed268577481fafc0b2405d2dd735f511a150a662 | 15,427 | cpp | C++ | packages/monte_carlo/event/weight_cutoff/test/tstStandardWeightCutoffRoulette.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/monte_carlo/event/weight_cutoff/test/tstStandardWeightCutoffRoulette.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/monte_carlo/event/weight_cutoff/test/tstStandardWeightCutoffRoulette.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file tstStandardWeightCutoffRoulette.cpp
//! \author Luke Kersting
//! \brief Standard weight cutoff roulette unit tests.
//!
//---------------------------------------------------------------------------//
// Std Lib Includes
#... | 36.818616 | 93 | 0.624684 | bam241 |
ed2947c80ffc492eabe3bcd51695782666edb400 | 252 | cpp | C++ | src/Step/1. Input Output/2588.cpp | ljh15952/Baekjoon | fd85e5fef0f9fea382628e0c60f4f97dcdc3ec74 | [
"MIT"
] | null | null | null | src/Step/1. Input Output/2588.cpp | ljh15952/Baekjoon | fd85e5fef0f9fea382628e0c60f4f97dcdc3ec74 | [
"MIT"
] | null | null | null | src/Step/1. Input Output/2588.cpp | ljh15952/Baekjoon | fd85e5fef0f9fea382628e0c60f4f97dcdc3ec74 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main(){
int a;
string b;
cin >> a >> b;
cout << a * (b[2]-'0') << endl;
cout << a * (b[1]-'0') << endl;
cout << a * (b[0]-'0') << endl;
cout << a * stoi(b) << endl;
return 0;
}
| 14.823529 | 32 | 0.496032 | ljh15952 |
ed2ffaab119b99dbdc3a4a35d317e13faac861ac | 4,159 | cc | C++ | src/MissionManager/KML.cc | matthiasnattke/qgroundcontrol | 9f87623a1598529a7bf24ab1122d409d02a0aed5 | [
"Apache-2.0"
] | 6 | 2021-05-01T16:37:00.000Z | 2022-01-12T10:17:47.000Z | src/MissionManager/KML.cc | matthiasnattke/qgroundcontrol | 9f87623a1598529a7bf24ab1122d409d02a0aed5 | [
"Apache-2.0"
] | 2 | 2020-03-26T04:24:00.000Z | 2020-03-26T13:53:51.000Z | src/MissionManager/KML.cc | matthiasnattke/qgroundcontrol | 9f87623a1598529a7bf24ab1122d409d02a0aed5 | [
"Apache-2.0"
] | 2 | 2021-05-01T17:29:43.000Z | 2021-12-26T12:23:24.000Z | /****************************************************************************
*
* (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
***************************************... | 32.24031 | 124 | 0.679009 | matthiasnattke |
ed32f5df7562ea460e63db0ff760da6ac92f91b0 | 1,568 | cc | C++ | PlotUtils/src/SaveUtils.cc | sam7k9621/ManagerUtils | 7b9317df002b3df6f23ae9e559d35bb1fc15b6f6 | [
"MIT"
] | null | null | null | PlotUtils/src/SaveUtils.cc | sam7k9621/ManagerUtils | 7b9317df002b3df6f23ae9e559d35bb1fc15b6f6 | [
"MIT"
] | null | null | null | PlotUtils/src/SaveUtils.cc | sam7k9621/ManagerUtils | 7b9317df002b3df6f23ae9e559d35bb1fc15b6f6 | [
"MIT"
] | null | null | null | /*******************************************************************************
*
* Filename : SaveUtils.cc
* Description : Plot saving utility functions implementation
* Author : Yi-Mu "Enoch" Chen [ ensc@hep1.phys.ntu.edu.tw ]
*
****************************************************************************... | 30.153846 | 84 | 0.456633 | sam7k9621 |
ed34e24a06cea55a33695f8b4d726959e1b9537a | 375 | cpp | C++ | SampleCode/ClassTemplate9/main.cpp | Team-Godel/Godel | 43bc2bb6ea28881a3db00dd69c1288cb04278d7d | [
"MIT"
] | null | null | null | SampleCode/ClassTemplate9/main.cpp | Team-Godel/Godel | 43bc2bb6ea28881a3db00dd69c1288cb04278d7d | [
"MIT"
] | null | null | null | SampleCode/ClassTemplate9/main.cpp | Team-Godel/Godel | 43bc2bb6ea28881a3db00dd69c1288cb04278d7d | [
"MIT"
] | null | null | null | #include <GodelLib.h>
using namespace std;
int main(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
{
GDL *Gobj = new GDL(hInstance, "GDL Application", DEFAULT_POS, DEFAULT_POS, 640, 480); // Create a window
Gobj->showCursor(0); // Disable the cursor
Gobj->update()... | 23.4375 | 108 | 0.682667 | Team-Godel |
ed34f469655f8403cf28b659ccc036f6df8dbf53 | 657 | cpp | C++ | FireThrow/FireThrow/IntroGame.cpp | Oskit-Producciones/C-plus-Games | caa307d82555e576a299d3ef03c9d929e43ad05a | [
"MIT"
] | null | null | null | FireThrow/FireThrow/IntroGame.cpp | Oskit-Producciones/C-plus-Games | caa307d82555e576a299d3ef03c9d929e43ad05a | [
"MIT"
] | null | null | null | FireThrow/FireThrow/IntroGame.cpp | Oskit-Producciones/C-plus-Games | caa307d82555e576a299d3ef03c9d929e43ad05a | [
"MIT"
] | null | null | null | #include "IntroGame.h"
IntroGame::IntroGame():GameObject(false,"..//Imagenes//Intro.png")
{
Enable(true);
alpha = 0;
sprite.SetColor(sf::Color(255, 255, 255, alpha));
}
void IntroGame::NextFrame()
{
currentframe++;
}
void IntroGame::Draw(RenderWindow *app)
{
if (alpha < 230)
{
sprite.SetCo... | 16.846154 | 67 | 0.613394 | Oskit-Producciones |
ed36eb53705900dda56c0c6aa336d8b936b3e24c | 11,929 | cxx | C++ | libbutl/path-pattern.cxx | build2/libbutl | 405dfa3e28ab71d4f6b5210faba0e3600070a0f3 | [
"MIT"
] | 6 | 2018-05-31T06:16:37.000Z | 2021-03-19T10:37:11.000Z | libbutl/path-pattern.cxx | build2/libbutl | 405dfa3e28ab71d4f6b5210faba0e3600070a0f3 | [
"MIT"
] | 3 | 2020-06-19T05:08:42.000Z | 2021-09-29T05:23:07.000Z | libbutl/path-pattern.cxx | build2/libbutl | 405dfa3e28ab71d4f6b5210faba0e3600070a0f3 | [
"MIT"
] | 1 | 2020-06-16T14:56:48.000Z | 2020-06-16T14:56:48.000Z | // file : libbutl/path-pattern.cxx -*- C++ -*-
// license : MIT; see accompanying LICENSE file
#include <libbutl/path-pattern.hxx>
#include <cassert>
#include <iterator> // reverse_iterator
#include <algorithm> // find()
#include <libbutl/utility.hxx> // lcase()[_WIN32]
#include <libbutl/filesystem.hxx> //... | 28.134434 | 79 | 0.571632 | build2 |
ed3dd0c8fa7bd7278b15a67812dfd032af549b22 | 3,521 | cpp | C++ | DataStructures/GraphMain.cpp | SimpleTechTalks/SimpleTechTalks | eefdb4cffc955f43535f4054d1558978ae0088e1 | [
"MIT"
] | null | null | null | DataStructures/GraphMain.cpp | SimpleTechTalks/SimpleTechTalks | eefdb4cffc955f43535f4054d1558978ae0088e1 | [
"MIT"
] | null | null | null | DataStructures/GraphMain.cpp | SimpleTechTalks/SimpleTechTalks | eefdb4cffc955f43535f4054d1558978ae0088e1 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
#include "GraphDefine.h"
void add_header (const char *line)
{
cout << "========================================================================" << endl;
cout << line << endl;
cout << "========================================================================" << end... | 31.4375 | 97 | 0.590457 | SimpleTechTalks |
ed3e3e3d927bc9cc698220827b30d7426542c5e4 | 510 | cpp | C++ | test/HttpClientTest.cpp | taozhijiang/roo | bea672b9274f91f4002a9742e096152b0d62f122 | [
"BSD-3-Clause"
] | null | null | null | test/HttpClientTest.cpp | taozhijiang/roo | bea672b9274f91f4002a9742e096152b0d62f122 | [
"BSD-3-Clause"
] | null | null | null | test/HttpClientTest.cpp | taozhijiang/roo | bea672b9274f91f4002a9742e096152b0d62f122 | [
"BSD-3-Clause"
] | 2 | 2019-08-23T02:31:42.000Z | 2020-05-02T00:12:36.000Z | #include <gmock/gmock.h>
#include <string>
#include <iostream>
#include <other/HttpClient.h>
using namespace ::testing;
using namespace roo;
TEST(HttpClientTest, HttpClientSmokeTest) {
const char* url_404 = "http://www.example.com/bb";
const char* url_200 = "http://www.example.com/index.html";
auto cl... | 20.4 | 62 | 0.678431 | taozhijiang |
ed4b7d4ef2ca4aff73d6d0a5e7254fd29d210efa | 50,241 | cpp | C++ | control/mpc_follower/src/mpc_follower_core.cpp | loop-perception/AutowareArchitectureProposal.iv | 5d8dff0db51634f0c42d2a3e87ca423fbee84348 | [
"Apache-2.0"
] | 1 | 2022-03-09T05:53:04.000Z | 2022-03-09T05:53:04.000Z | control/mpc_follower/src/mpc_follower_core.cpp | loop-perception/AutowareArchitectureProposal.iv | 5d8dff0db51634f0c42d2a3e87ca423fbee84348 | [
"Apache-2.0"
] | 4 | 2022-01-07T21:21:04.000Z | 2022-03-14T21:25:37.000Z | control/mpc_follower/src/mpc_follower_core.cpp | loop-perception/AutowareArchitectureProposal.iv | 5d8dff0db51634f0c42d2a3e87ca423fbee84348 | [
"Apache-2.0"
] | 2 | 2021-03-09T00:20:39.000Z | 2021-04-16T10:23:36.000Z | // Copyright 2018-2019 Autoware Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... | 39.220141 | 100 | 0.699409 | loop-perception |
ed4d99bc1997078b804af517225dbf8733350659 | 2,035 | cpp | C++ | others/DDCC/D_ver2.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | 1 | 2021-06-01T17:13:44.000Z | 2021-06-01T17:13:44.000Z | others/DDCC/D_ver2.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | null | null | null | others/DDCC/D_ver2.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | null | null | null | //#include <cassert>
//#include <cstdio>
//#include <cmath>
//#include <iostream>
//#include <iomanip>
//#include <sstream>
//#include <vector>
//#include <set>
//#include <map>
//#include <queue>
//#include <numeric>
//#include <algorithm>
//
//using namespace std;
//using lint = long long;
//constexpr int MOD = 10000... | 18.669725 | 75 | 0.490418 | rajyan |
ed567ad96a62ddff18cf733b12d5787962da1e6a | 804 | cpp | C++ | 290-word-pattern/290-word-pattern.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | 2 | 2022-01-02T19:15:00.000Z | 2022-01-05T21:12:24.000Z | 290-word-pattern/290-word-pattern.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | null | null | null | 290-word-pattern/290-word-pattern.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | 1 | 2022-03-11T17:11:07.000Z | 2022-03-11T17:11:07.000Z | class Solution {
public:
bool wordPattern(string pattern, string s) {
vector<string>v(pattern.length()+1);
int j=0;
for(int i=0;i<s.length();i++){
if(s[i]!=' ')
{
v[j]+=s[i];
}
else
j++;
}
ma... | 24.363636 | 70 | 0.365672 | Ananyaas |
ed5b37cde35b82cfdc3bd8ff014da35df126ed5d | 2,418 | cpp | C++ | UVA/NetworkConnections.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | 1 | 2019-09-29T03:58:35.000Z | 2019-09-29T03:58:35.000Z | UVA/NetworkConnections.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | UVA/NetworkConnections.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | #include <cctype>
#include <set>
#include <queue>
#include <map>
#include <stack>
#include <iostream>
#include <algorithm>
#include <iterator>
#include <string>
#include <sstream>
#include <cstdlib>
#include <locale>
#include <cmath>
#include <vector>
#include <cstdio>
#include <cstring>
#define scd(x) scanf("%d", &x)
... | 24.673469 | 73 | 0.563689 | MartinAparicioPons |
ed5fa1a09871813ca7bb89af7f31028f0c040d6e | 3,449 | cpp | C++ | lab4/150101033_3.cpp | mayank-myk/Basic-Datastructure-implementations | 4bf5f79c2c5ad636fe9d61c0be36a0a3e1238356 | [
"MIT"
] | null | null | null | lab4/150101033_3.cpp | mayank-myk/Basic-Datastructure-implementations | 4bf5f79c2c5ad636fe9d61c0be36a0a3e1238356 | [
"MIT"
] | null | null | null | lab4/150101033_3.cpp | mayank-myk/Basic-Datastructure-implementations | 4bf5f79c2c5ad636fe9d61c0be36a0a3e1238356 | [
"MIT"
] | null | null | null | // mayank agrawal
// 150101033
// To complie type: g++ 150101033_3.cpp -std=c++11 in linux
#include <bits/stdc++.h>
#include <cstdlib>
#include <cstdio>
#include <iostream>
using namespace std;
struct node{
int row;
int col;
int value;
struct node * right;
struct node * down;
};
struct node *createnode(int ro... | 21.030488 | 108 | 0.551464 | mayank-myk |
ed60a20123146118a0edd7b0e761349a80d128ab | 312 | hpp | C++ | compendium/test_bundles/TestBundleDSTOI12/src/ServiceImpl.hpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 588 | 2015-10-07T15:55:08.000Z | 2022-03-29T00:35:44.000Z | compendium/test_bundles/TestBundleDSTOI12/src/ServiceImpl.hpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 459 | 2015-10-05T23:29:59.000Z | 2022-03-29T14:13:37.000Z | compendium/test_bundles/TestBundleDSTOI12/src/ServiceImpl.hpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 218 | 2015-11-04T08:19:48.000Z | 2022-03-24T02:17:08.000Z | #ifndef SERVICEIMPL_HPP
#define SERVICEIMPL_HPP
#include "TestInterfaces/Interfaces.hpp"
namespace sample {
class ServiceComponent12 : public test::Interface1
{
public:
ServiceComponent12() = default;
~ServiceComponent12() override;
std::string Description() override;
};
}
#endif // _SERVICE_IMPL_HPP_
| 18.352941 | 50 | 0.775641 | fmilano |
ed673c2776dc5598cc3d749d7bc6a8fd1db9a70d | 2,471 | cpp | C++ | src/robot/Constants.cpp | roboFiddle/7405M_TowerTakeover_Code | e16ffab17964ff61a25eac2074da78d0d7577caa | [
"MIT"
] | null | null | null | src/robot/Constants.cpp | roboFiddle/7405M_TowerTakeover_Code | e16ffab17964ff61a25eac2074da78d0d7577caa | [
"MIT"
] | null | null | null | src/robot/Constants.cpp | roboFiddle/7405M_TowerTakeover_Code | e16ffab17964ff61a25eac2074da78d0d7577caa | [
"MIT"
] | null | null | null | #include "Constants.hpp"
namespace constants {
units::QLength RobotConstants::kDriveWheelRadius = 2*units::inch;
units::QMass RobotConstants::kRobotMass = 4*units::kg;
units::QMoment RobotConstants::kRobotMoment = 4*units::kgm2;
units::QAngularDrag RobotConstants::kRobotAngularDrag = 0.0;
units::QL... | 43.350877 | 98 | 0.734925 | roboFiddle |
ed6c965bce32a1aed0d2b1aa897fc1e392e61e3e | 2,834 | hpp | C++ | include/codegen/include/System/Text/EncoderFallback.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/System/Text/EncoderFallback.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/System/Text/EncoderFallback.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:09:42 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
#include "utils/i... | 44.984127 | 89 | 0.739238 | Futuremappermydud |
ed70bd97497d987130f6f2f8e57ad2d83f38bd35 | 438 | cpp | C++ | src/boards/mcu/espressif/spi_board.cpp | luisgcu/SX126x-Arduino | 072acaa9f5cdcc8cdf582bd4d2248c232b1c2b08 | [
"MIT"
] | 118 | 2019-10-02T14:30:43.000Z | 2022-03-25T10:31:04.000Z | src/boards/mcu/espressif/spi_board.cpp | luisgcu/SX126x-Arduino | 072acaa9f5cdcc8cdf582bd4d2248c232b1c2b08 | [
"MIT"
] | 58 | 2019-08-21T15:30:41.000Z | 2022-03-04T02:42:14.000Z | src/boards/mcu/espressif/spi_board.cpp | luisgcu/SX126x-Arduino | 072acaa9f5cdcc8cdf582bd4d2248c232b1c2b08 | [
"MIT"
] | 49 | 2019-09-08T15:44:00.000Z | 2022-03-20T22:42:41.000Z | #if defined ESP8266 || defined ESP32
#include <SPI.h>
#include "boards/mcu/board.h"
SPIClass SPI_LORA;
void initSPI(void)
{
#ifdef ESP8266
SPI_LORA.pins(_hwConfig.PIN_LORA_SCLK, _hwConfig.PIN_LORA_MISO, _hwConfig.PIN_LORA_MOSI, _hwConfig.PIN_LORA_NSS);
SPI_LORA.begin();
SPI_LORA.setHwCs(false);
#else
SPI_LORA.beg... | 25.764706 | 115 | 0.799087 | luisgcu |
ed76770cf59f0fe9c209d72428c36fbf12d46704 | 7,904 | cc | C++ | cpp/core/libcore/net/tcp_conn.cc | cheukw/sample | 602d5d055c3e11e1e0ba385128e64b9c0aa81305 | [
"MIT"
] | null | null | null | cpp/core/libcore/net/tcp_conn.cc | cheukw/sample | 602d5d055c3e11e1e0ba385128e64b9c0aa81305 | [
"MIT"
] | null | null | null | cpp/core/libcore/net/tcp_conn.cc | cheukw/sample | 602d5d055c3e11e1e0ba385128e64b9c0aa81305 | [
"MIT"
] | null | null | null | #include "net/libevent_headers.h"
#include "net/tcp_conn.h"
#include "net/fd_channel.h"
#include "net/event_loop.h"
#include "net/sockets.h"
#include "net/invoke_timer.h"
TCPConn::TCPConn(EventLoop* l, const std::string& n, net_socket_t sockfd, const std::string& laddr, const std::string& raddr)
: loop_(l)
,... | 26.702703 | 154 | 0.604504 | cheukw |
ed7a09e14953f33b3b15f828b3df4233ae1bef45 | 7,296 | cpp | C++ | scopehal/VICPSocketTransport.cpp | x44203/scopehal | 984b38431cdf46c3e9c6055b164e03b4f7336a49 | [
"BSD-3-Clause"
] | null | null | null | scopehal/VICPSocketTransport.cpp | x44203/scopehal | 984b38431cdf46c3e9c6055b164e03b4f7336a49 | [
"BSD-3-Clause"
] | null | null | null | scopehal/VICPSocketTransport.cpp | x44203/scopehal | 984b38431cdf46c3e9c6055b164e03b4f7336a49 | [
"BSD-3-Clause"
] | 1 | 2020-08-02T14:20:52.000Z | 2020-08-02T14:20:52.000Z | /***********************************************************************************************************************
* *
* ANTIKERNEL v0.1 ... | 33.62212 | 120 | 0.497396 | x44203 |
ed7c7062c6784c8205b51a5beed3e2bf783f8d3d | 1,865 | cpp | C++ | CK2ToEU4/Source/Mappers/RulerPersonalitiesMapper/RulerPersonalitiesMapper.cpp | bavbeerhall/CK2ToEU4 | a65edfb895b30e80af5bd7045dbfac7e2c5069e9 | [
"MIT"
] | 2 | 2020-04-25T15:14:10.000Z | 2020-04-25T18:47:00.000Z | CK2ToEU4/Source/Mappers/RulerPersonalitiesMapper/RulerPersonalitiesMapper.cpp | dlbuunk/CK2ToEU4 | 5c1755d17a36950d29a6c0ca13e454cb27b767bf | [
"MIT"
] | null | null | null | CK2ToEU4/Source/Mappers/RulerPersonalitiesMapper/RulerPersonalitiesMapper.cpp | dlbuunk/CK2ToEU4 | 5c1755d17a36950d29a6c0ca13e454cb27b767bf | [
"MIT"
] | null | null | null | #include "RulerPersonalitiesMapper.h"
#include "../../CK2World/Characters/Character.h"
#include "Log.h"
#include "ParserHelpers.h"
mappers::RulerPersonalitiesMapper::RulerPersonalitiesMapper()
{
LOG(LogLevel::Info) << "-> Parsing Ruler Personalities";
registerKeys();
parseFile("configurables/ruler_personalities.txt... | 33.303571 | 153 | 0.737265 | bavbeerhall |
143b49ce98020dd1388d8a56d385721003bf40b5 | 1,573 | cpp | C++ | src/blockManagement/block.cpp | ivomachado/Trabalho1BD | 291a52ae8a24c7dc0ec2a87543b8260e1953c354 | [
"MIT"
] | 2 | 2019-05-16T13:52:40.000Z | 2019-05-31T20:05:18.000Z | src/blockManagement/block.cpp | ivomachado/Trabalho1BD | 291a52ae8a24c7dc0ec2a87543b8260e1953c354 | [
"MIT"
] | null | null | null | src/blockManagement/block.cpp | ivomachado/Trabalho1BD | 291a52ae8a24c7dc0ec2a87543b8260e1953c354 | [
"MIT"
] | null | null | null | #include "block.hpp"
#include "field.hpp"
#include "utils.hpp"
#include <cstdio>
#include <vector>
DiskBlock::DiskBlock(std::vector<Field>& recordFields)
{
m_header.m_data.emplace_back(Field::asInteger(0)); //Registros no bloco
m_header.m_data.emplace_back(Field::asInteger(0)); //Apontador para o de overflow
... | 26.661017 | 85 | 0.698029 | ivomachado |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.