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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b33c341ec681648abc3cbc5febeb945022a5b8dc | 55 | hpp | C++ | src/lib/ext/memory.hpp | Lmaxplay/EXTLIBPlusPlus | 2440a40e0947b88c101a76e5733f452f849489e1 | [
"MIT"
] | 7 | 2022-02-25T15:33:18.000Z | 2022-03-19T11:41:03.000Z | src/lib/ext/memory.hpp | Lmaxplay/CPPProgram | 2440a40e0947b88c101a76e5733f452f849489e1 | [
"MIT"
] | null | null | null | src/lib/ext/memory.hpp | Lmaxplay/CPPProgram | 2440a40e0947b88c101a76e5733f452f849489e1 | [
"MIT"
] | null | null | null | #include <windows.h>
MEMORYSTATUSEX getSystemMemory(); | 18.333333 | 33 | 0.8 | Lmaxplay |
b34393f9da5b9f01837ba08336d1823f5764ddb7 | 10,392 | cpp | C++ | module_08/ex02/main.cpp | paulahemsi/piscine_cpp | f98feefd8e70308f77442f9b4cb64758676349a7 | [
"MIT"
] | 4 | 2021-12-14T18:02:53.000Z | 2022-03-24T01:12:38.000Z | module_08/ex02/main.cpp | paulahemsi/piscine_cpp | f98feefd8e70308f77442f9b4cb64758676349a7 | [
"MIT"
] | null | null | null | module_08/ex02/main.cpp | paulahemsi/piscine_cpp | f98feefd8e70308f77442f9b4cb64758676349a7 | [
"MIT"
] | 3 | 2021-11-01T00:34:50.000Z | 2022-01-29T19:57:30.000Z | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: ... | 34.410596 | 96 | 0.555331 | paulahemsi |
b344f52f5ed123645a80f5bb84adb52144f2069d | 11,256 | cpp | C++ | tools/ssl_client/src/main.cpp | juergh/dash-sdk | 16757836f1f96ee3220992f70bffe92c18e08e76 | [
"AMDPLPA"
] | 13 | 2015-08-06T14:55:10.000Z | 2021-12-26T04:41:54.000Z | tools/ssl_client/src/main.cpp | juergh/dash-sdk | 16757836f1f96ee3220992f70bffe92c18e08e76 | [
"AMDPLPA"
] | null | null | null | tools/ssl_client/src/main.cpp | juergh/dash-sdk | 16757836f1f96ee3220992f70bffe92c18e08e76 | [
"AMDPLPA"
] | 1 | 2017-06-17T14:15:41.000Z | 2017-06-17T14:15:41.000Z | /*
* License Agreement
*
* Copyright (c) 2007, 2008, 2009 Advanced Micro Devices Inc.
*
* All rights reserved.
*
* Redistribution and use in any form of this material and any product thereof including
* software in source or binary forms, along with any related documentation, with or
* without modification (... | 42.636364 | 102 | 0.691187 | juergh |
b34641c312a5873764e92e711012c9f9f76a18b9 | 2,996 | cpp | C++ | diamond-0.9.9/src/basic/masking.cpp | julianparismorgan/protein_network | 6ab15cca49fd5a95d66909054b7feb5d8b905457 | [
"FSFAP"
] | null | null | null | diamond-0.9.9/src/basic/masking.cpp | julianparismorgan/protein_network | 6ab15cca49fd5a95d66909054b7feb5d8b905457 | [
"FSFAP"
] | null | null | null | diamond-0.9.9/src/basic/masking.cpp | julianparismorgan/protein_network | 6ab15cca49fd5a95d66909054b7feb5d8b905457 | [
"FSFAP"
] | null | null | null | /****
DIAMOND protein aligner
Copyright (C) 2013-2017 Benjamin Buchfink <buchfink@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option... | 31.87234 | 98 | 0.711615 | julianparismorgan |
b3484f8e1c6934ce61430b05f7e82d0bb22d09c1 | 2,237 | hh | C++ | src/Utilities/registerWithRedistribution.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/Utilities/registerWithRedistribution.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/Utilities/registerWithRedistribution.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | //---------------------------------Spheral++----------------------------------//
// registerWithRedistribution
// Helper methods to facilitate registering objects with the RedistributionRegistrar.
//
// Created by JMO, Thu May 28 15:46:56 PDT 2009
//----------------------------------------------------------------------... | 43.019231 | 135 | 0.622262 | jmikeowen |
b348a54e42c62f21fd07fc24f93508a451ddfb63 | 3,166 | cpp | C++ | msvc/EuhatExpert/EuhatDamon/base/HookDll.cpp | euhat/EuhatExpert | 3932238a0bd72a8f12b4ae6ced1ade6482228fe0 | [
"BSD-2-Clause"
] | null | null | null | msvc/EuhatExpert/EuhatDamon/base/HookDll.cpp | euhat/EuhatExpert | 3932238a0bd72a8f12b4ae6ced1ade6482228fe0 | [
"BSD-2-Clause"
] | null | null | null | msvc/EuhatExpert/EuhatDamon/base/HookDll.cpp | euhat/EuhatExpert | 3932238a0bd72a8f12b4ae6ced1ade6482228fe0 | [
"BSD-2-Clause"
] | null | null | null | #include <EuhatPreDef.h>
#include "HookDll.h"
#include <EuhatPostDef.h>
#define HOOK_DLL_PATH L"msg.dll"
#define HOOK_DLL_START_HOOK "Start"
#define HOOK_DLL_STOP_HOOK "Stop"
HookDll *gHookDll = NULL;
int HookDll::loadHook()
{
#if RP_USE_HOOK_DLL
dll_ = LoadLibrary(HOOK_DLL_PATH);
if (dll_ == NULL)
return 0;... | 20.425806 | 98 | 0.712571 | euhat |
b34f160ab0cc51489add9241dfd24f7e8769142b | 7,655 | cpp | C++ | libatr/rkdos.cpp | jhusak/AtrCompiler | f5d39cf9d6c144cdd8ffe095d677c85b91b4f75f | [
"MIT"
] | null | null | null | libatr/rkdos.cpp | jhusak/AtrCompiler | f5d39cf9d6c144cdd8ffe095d677c85b91b4f75f | [
"MIT"
] | null | null | null | libatr/rkdos.cpp | jhusak/AtrCompiler | f5d39cf9d6c144cdd8ffe095d677c85b91b4f75f | [
"MIT"
] | null | null | null | #include "rkdos.h"
using namespace std;
disk::sector_num rkdos::root_sec = 1;
std::string rkdos::name()
{
return "rkdos";
}
const filesystem::property * rkdos::properties()
{
static const filesystem::property props[1] = {
{ nullptr, 0, 0, 0 }
};
return props;
}
rkdos::rkdos(disk * d) : filesystem(d)
{
aut... | 20.413333 | 246 | 0.645852 | jhusak |
b34f16665702ee83984904e6cb5b3c154e86126c | 2,568 | hpp | C++ | src/odbc/mongo/placeholder.hpp | Palantir-crypto/WSF | 088a9fa570b42fe661cca96825bf9e472ffddfeb | [
"MIT"
] | 2 | 2019-08-11T22:17:45.000Z | 2020-10-19T14:54:43.000Z | src/odbc/mongo/placeholder.hpp | Palantir-crypto/WSF | 088a9fa570b42fe661cca96825bf9e472ffddfeb | [
"MIT"
] | 1 | 2020-10-23T15:21:37.000Z | 2020-10-23T15:55:32.000Z | src/odbc/mongo/placeholder.hpp | Palantir-crypto/WSF | 088a9fa570b42fe661cca96825bf9e472ffddfeb | [
"MIT"
] | 3 | 2020-10-19T14:54:45.000Z | 2020-10-23T20:39:10.000Z | #include "../../Shared.hpp"
#include "../../Config.hpp"
#ifndef _MONGO_API_H
#define _MONGO_API_H 1
namespace wsf { namespace mongo {
namespace insert {
pplx::task<bool> one(std::string collection, web::json::value data) {
return pplx::task<bool>([=] {
retu... | 32.506329 | 192 | 0.461838 | Palantir-crypto |
b35a3c054f952cefe77f5c24fd169c2dbcd6542f | 4,214 | hpp | C++ | include/plssvm/backends/CUDA/csvm.hpp | vancraar/PLSSVM | e8ea4966c2baf23d5ca42e4c77f33fa75a31a9df | [
"MIT"
] | null | null | null | include/plssvm/backends/CUDA/csvm.hpp | vancraar/PLSSVM | e8ea4966c2baf23d5ca42e4c77f33fa75a31a9df | [
"MIT"
] | null | null | null | include/plssvm/backends/CUDA/csvm.hpp | vancraar/PLSSVM | e8ea4966c2baf23d5ca42e4c77f33fa75a31a9df | [
"MIT"
] | null | null | null | /**
* @file
* @author Alexander Van Craen
* @author Marcel Breyer
* @copyright 2018-today The PLSSVM project - All Rights Reserved
* @license This file is part of the PLSSVM project which is released under the MIT license.
* See the LICENSE.md file in the project root for full license information.
*
* ... | 35.411765 | 217 | 0.708116 | vancraar |
b35ac5e75399566f987e05e60438cd36ae0cd90c | 1,480 | cpp | C++ | src/playback.cpp | beeryt/libui | 12008050772a0582e68828faaffbadb1867d6ddb | [
"MIT"
] | null | null | null | src/playback.cpp | beeryt/libui | 12008050772a0582e68828faaffbadb1867d6ddb | [
"MIT"
] | null | null | null | src/playback.cpp | beeryt/libui | 12008050772a0582e68828faaffbadb1867d6ddb | [
"MIT"
] | null | null | null | #include "playback.h"
#include <assert.h>
// TODO: these numbers should consider the text size
static const int16_t padv = 1;
static const int16_t padh = 6;
Playback::Playback(Node* parent, int duration)
: Canvas(parent), progress(0), duration(duration) {
slider.setMin(0);
slider.setVal(0);
slider.setMax(dura... | 22.424242 | 78 | 0.675676 | beeryt |
b35b36c85e78e97894845d666aeff47e5d66a748 | 2,971 | hpp | C++ | include/unifex/for_each.hpp | Chlorie/libunifex | 9869196338016939265964b82c7244915de6a12f | [
"Apache-2.0"
] | null | null | null | include/unifex/for_each.hpp | Chlorie/libunifex | 9869196338016939265964b82c7244915de6a12f | [
"Apache-2.0"
] | null | null | null | include/unifex/for_each.hpp | Chlorie/libunifex | 9869196338016939265964b82c7244915de6a12f | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applicab... | 31.946237 | 75 | 0.644901 | Chlorie |
b35d710dd72c0a3d61356140c344f249fdd5028f | 58,759 | cpp | C++ | src/qt/bitcoingui.cpp | gabriel-eiger/bitcredit | 4f8306d98116420e7e80008426006e9fd23ee7db | [
"MIT"
] | 1 | 2015-04-23T04:45:46.000Z | 2015-04-23T04:45:46.000Z | src/qt/bitcoingui.cpp | gabriel-eiger/bitcredit | 4f8306d98116420e7e80008426006e9fd23ee7db | [
"MIT"
] | null | null | null | src/qt/bitcoingui.cpp | gabriel-eiger/bitcredit | 4f8306d98116420e7e80008426006e9fd23ee7db | [
"MIT"
] | null | null | null | // Copyright (c) 2011-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bitcoingui.h"
#include "bitcreditunits.h"
#include "clientmodel.h"
#include "guiconstants.h"
#include "guiutil.h"
#... | 40.663668 | 317 | 0.708487 | gabriel-eiger |
b35d9b5c2ebea88fd399a273edd8ac82b3489f30 | 6,446 | hpp | C++ | modules/core/sdk/include/nt2/core/utility/fusion.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/core/sdk/include/nt2/core/utility/fusion.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/sdk/include/nt2/core/utility/fusion.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 35.417582 | 88 | 0.628762 | psiha |
b35de05e2190def03835db4cf237c8594f0b33f1 | 1,590 | cpp | C++ | data/format.cpp | FuSoftware/QTwee | eb37c6f9f398bf5f8c094d79d87ed40ec5a30d6d | [
"MIT"
] | null | null | null | data/format.cpp | FuSoftware/QTwee | eb37c6f9f398bf5f8c094d79d87ed40ec5a30d6d | [
"MIT"
] | null | null | null | data/format.cpp | FuSoftware/QTwee | eb37c6f9f398bf5f8c094d79d87ed40ec5a30d6d | [
"MIT"
] | null | null | null | #include "format.h"
Format::Format(QString format_name)
{
if(format_name != "")
{
this->loadFormat(format_name);
}
}
void Format::loadFormat(QString format_name)
{
this->name = format_name;
}
void Format::loadFile(QString file)
{
QFile f(file);
if (!f.open(QIODevice::ReadOnly | QIODev... | 22.083333 | 108 | 0.627673 | FuSoftware |
b363d5b029961b66128f47cfbd1d0e0d1dfb7cf7 | 6,211 | cpp | C++ | src/cbindings.cpp | IrisChase/IVD | 7d319fbd8a8a688987b788d7095d84734a627ba1 | [
"Apache-2.0"
] | 1 | 2020-07-02T02:06:21.000Z | 2020-07-02T02:06:21.000Z | src/cbindings.cpp | IrisChase/IVD | 7d319fbd8a8a688987b788d7095d84734a627ba1 | [
"Apache-2.0"
] | 10 | 2020-07-05T07:41:34.000Z | 2020-12-21T20:33:09.000Z | src/cbindings.cpp | IrisChase/IVD | 7d319fbd8a8a688987b788d7095d84734a627ba1 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 Iris Chase
//
// 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... | 41.406667 | 112 | 0.732249 | IrisChase |
b3685b407eb037179d861a00963a36d65268fe83 | 882 | cpp | C++ | src/pulse/actions/FollowedBy.cpp | Rypac/pulse | c3d6ae0cab947aa6d380a0e225913b62b8883d8b | [
"Apache-2.0"
] | 2 | 2016-10-12T01:31:55.000Z | 2017-01-06T21:07:25.000Z | src/pulse/actions/FollowedBy.cpp | Rypac/pulse | c3d6ae0cab947aa6d380a0e225913b62b8883d8b | [
"Apache-2.0"
] | 1 | 2016-10-28T22:36:04.000Z | 2016-11-18T07:59:50.000Z | src/pulse/actions/FollowedBy.cpp | Rypac/pulse | c3d6ae0cab947aa6d380a0e225913b62b8883d8b | [
"Apache-2.0"
] | null | null | null | #include "pulse/actions/FollowedBy.hpp"
using pulse::FollowedBy;
using namespace cocos2d;
FollowedBy::FollowedBy(Node* follower, const Vec2& offset)
: follower_{follower}
, offset_(offset) {
follower_->retain();
}
FollowedBy::~FollowedBy() {
if (follower_) {
if (follower_->getParent() == getTarget())... | 22.615385 | 92 | 0.675737 | Rypac |
b369c435e04d2f399d3fb6328c19f12a565789fb | 5,169 | cpp | C++ | vendor/android-tools/libunwindstack/Maps.cpp | dylanh333/android-unmkbootimg | 7c30a58b5bc3d208fbbbbc713717e2aae98df699 | [
"MIT"
] | 3 | 2018-04-01T18:35:29.000Z | 2020-12-18T21:09:53.000Z | vendor/android-tools/libunwindstack/Maps.cpp | dylanh333/android-unmkbootimg | 7c30a58b5bc3d208fbbbbc713717e2aae98df699 | [
"MIT"
] | 2 | 2017-04-24T12:29:05.000Z | 2017-05-09T12:27:10.000Z | vendor/android-tools/libunwindstack/Maps.cpp | dylanh333/android-unmkbootimg | 7c30a58b5bc3d208fbbbbc713717e2aae98df699 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2016 The Android Open Source Project
*
* 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 app... | 26.238579 | 94 | 0.616367 | dylanh333 |
b36c2cd682ed782339b29cce6d566aec95439097 | 462 | cpp | C++ | Qt-Tetrix/main.cpp | mickelfeng/qt_learning | 1f565754c36f0c09888cf4fbffa6271298d0678b | [
"Apache-2.0"
] | 1 | 2016-01-05T07:24:32.000Z | 2016-01-05T07:24:32.000Z | Qt-Tetrix/main.cpp | mickelfeng/qt_learning | 1f565754c36f0c09888cf4fbffa6271298d0678b | [
"Apache-2.0"
] | null | null | null | Qt-Tetrix/main.cpp | mickelfeng/qt_learning | 1f565754c36f0c09888cf4fbffa6271298d0678b | [
"Apache-2.0"
] | null | null | null | #include <QApplication>
#include <stdlib.h>
#include <QDebug>
#include <QTime>
#include "tetrixwindow.h"
#include "tetrixboard.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
TetrixWindow window;
window.show();
// TetrixBoard board;
// board.resize(380,620);
// ... | 18.48 | 55 | 0.603896 | mickelfeng |
b36ca3f4f067b35702172d18025a044d03e73029 | 4,088 | hpp | C++ | estl/concurrent/srsw_fifo.hpp | mlutken/playground | 88b0fc457ae8f028b9a1f8f959b8361a645468be | [
"Unlicense"
] | null | null | null | estl/concurrent/srsw_fifo.hpp | mlutken/playground | 88b0fc457ae8f028b9a1f8f959b8361a645468be | [
"Unlicense"
] | null | null | null | estl/concurrent/srsw_fifo.hpp | mlutken/playground | 88b0fc457ae8f028b9a1f8f959b8361a645468be | [
"Unlicense"
] | null | null | null | #ifndef ESTL_SRSW_FIFO_HPP
#define ESTL_SRSW_FIFO_HPP
#include <nestle_default_config.h>
#include <atomic/atomic_use.hpp>
#include <vector>
#include <cstdint>
// ----------------------------------------------
// --- srsw_fifo.h ---
// ----------------------------------------------
namespace estl {
/**
... | 29.410072 | 106 | 0.544765 | mlutken |
b37323a2b773890737ce92f3628fe15d14c76e24 | 7,180 | cpp | C++ | source/drivers/stm32l4xxSPI.cpp | nedseb/codal-stm32l475 | 67be1b70c8a23a95f2ad1a6fbb59ed058f413458 | [
"MIT"
] | null | null | null | source/drivers/stm32l4xxSPI.cpp | nedseb/codal-stm32l475 | 67be1b70c8a23a95f2ad1a6fbb59ed058f413458 | [
"MIT"
] | null | null | null | source/drivers/stm32l4xxSPI.cpp | nedseb/codal-stm32l475 | 67be1b70c8a23a95f2ad1a6fbb59ed058f413458 | [
"MIT"
] | null | null | null | #include "CodalConfig.h"
#include "stm32l4xxSPI.h"
#include "ErrorNo.h"
#include "CodalDmesg.h"
#include "codal-core/inc/driver-models/Timer.h"
#include "MessageBus.h"
#include "Event.h"
#include "CodalFiber.h"
#include "pinmap.h"
#include "PeripheralPins.h"
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
//#... | 24.844291 | 121 | 0.642201 | nedseb |
b373274246de947ee6d6c45c0447c0932b5bf0e1 | 2,194 | inl | C++ | Source/Engine/Core/Core/Template/Detail/StringParserDetail.inl | rgbsparrows/SevenEngine | 40a077df95f28d55ecfccc5fb7f6d2f9b3dfdde4 | [
"MIT"
] | null | null | null | Source/Engine/Core/Core/Template/Detail/StringParserDetail.inl | rgbsparrows/SevenEngine | 40a077df95f28d55ecfccc5fb7f6d2f9b3dfdde4 | [
"MIT"
] | null | null | null | Source/Engine/Core/Core/Template/Detail/StringParserDetail.inl | rgbsparrows/SevenEngine | 40a077df95f28d55ecfccc5fb7f6d2f9b3dfdde4 | [
"MIT"
] | null | null | null | #include <limits>
#include <type_traits>
#include <string_view>
namespace StringParserDetail
{
template<typename _intType>
struct TIntegralStringParserHelper
{
using IntType = _intType;
static constexpr bool IsUnsigned = std::is_unsigned_v<IntType>;
static_assert(std::is_integral_v<IntType>, "_intType must be... | 28.868421 | 138 | 0.565634 | rgbsparrows |
b37790c81c0a53511d1d01b5650d2af54f172e0e | 3,703 | hpp | C++ | lib/mongo/include/Response.hpp | astateful/dyplat | 37c37c7ee9f55cc2a3abaa0f8ebbde34588d2f44 | [
"BSD-3-Clause"
] | null | null | null | lib/mongo/include/Response.hpp | astateful/dyplat | 37c37c7ee9f55cc2a3abaa0f8ebbde34588d2f44 | [
"BSD-3-Clause"
] | null | null | null | lib/mongo/include/Response.hpp | astateful/dyplat | 37c37c7ee9f55cc2a3abaa0f8ebbde34588d2f44 | [
"BSD-3-Clause"
] | null | null | null | //! The MIT License (MIT)
//!
//! Copyright (c) 2014 Thomas Kovacs
//!
//! 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 t... | 31.381356 | 78 | 0.68296 | astateful |
b37bb7a9c6c6d9a8ff2a2e6c5e812422912dda72 | 2,601 | cpp | C++ | sources/daemon/Vector.cpp | InfiernoGamesStudio/KnightScript | bb88f570b25850e6efbbde19d90d86a5e5d1e040 | [
"MIT"
] | null | null | null | sources/daemon/Vector.cpp | InfiernoGamesStudio/KnightScript | bb88f570b25850e6efbbde19d90d86a5e5d1e040 | [
"MIT"
] | null | null | null | sources/daemon/Vector.cpp | InfiernoGamesStudio/KnightScript | bb88f570b25850e6efbbde19d90d86a5e5d1e040 | [
"MIT"
] | null | null | null | #include <math.h>
#include "../../headers/Maths/Vector.hpp"
void Vectors::Add( Vector target, Vector source, float scalar ) {
target[ 0 ] = source[ 0 ] + scalar;
target[ 1 ] = source[ 1 ] + scalar;
target[ 2 ] = source[ 2 ] + scalar;
}
void Vectors::Add( Vector target, Vector source, float* two, bool is_point )... | 27.378947 | 85 | 0.550173 | InfiernoGamesStudio |
b37dc10a6250c16064f3858d998992f4c376bbf2 | 250 | cpp | C++ | allLeaders.cpp | jeremyphilemon/datastructures-and-algorithms | 8abbdb9048d308426f4a83b815ceb90cf92d8732 | [
"MIT"
] | 4 | 2020-04-01T14:00:11.000Z | 2021-04-26T20:17:05.000Z | allLeaders.cpp | jeremyphilemon/DSA | 8abbdb9048d308426f4a83b815ceb90cf92d8732 | [
"MIT"
] | null | null | null | allLeaders.cpp | jeremyphilemon/DSA | 8abbdb9048d308426f4a83b815ceb90cf92d8732 | [
"MIT"
] | 4 | 2020-04-10T08:12:45.000Z | 2020-09-23T22:29:43.000Z | #include <stdio.h>
int main() {
int arr[]={6, 7, 4, 3, 5, 2};
int length=6;
int max=arr[length-1];
for(int i=length-1; i>-0; i--) {
if (arr[i]>max) {
max=arr[i];
printf("%d ", arr[i]);
}
}
printf("%d\n", arr[length-1]);
return 0;
}
| 15.625 | 33 | 0.508 | jeremyphilemon |
b3831ff2acf9f5388d0133570e747cfc2f193c64 | 2,876 | cc | C++ | test/unit_test/multiply_no_broadcast/brook.cc | anikristo/brook | 4e52d89213088b2a8a94fedc77987022fb83ea21 | [
"MIT"
] | null | null | null | test/unit_test/multiply_no_broadcast/brook.cc | anikristo/brook | 4e52d89213088b2a8a94fedc77987022fb83ea21 | [
"MIT"
] | null | null | null | test/unit_test/multiply_no_broadcast/brook.cc | anikristo/brook | 4e52d89213088b2a8a94fedc77987022fb83ea21 | [
"MIT"
] | null | null | null | #include "brook.h"
using Brook::Graph;
Graph::Graph()
: brook_elemwisefactor (2, 9)
{
brook_elemwisefactor(0, 0) = 1.07381;
brook_elemwisefactor(0, 1) = 1.95895;
brook_elemwisefactor(0, 2) = 0.227647;
brook_elemwisefactor(0, 3) = 1.62663;
brook_elemwisefactor(0, 4) = 4.99999;
brook_elemwisefac... | 35.506173 | 107 | 0.596662 | anikristo |
b383b2b49930930bcaf43b9b81aac51eb4ef4e1b | 10,019 | cpp | C++ | coreutilities/Intersection.cpp | TreePuncher/gamek | af7e4199da650dfb3eab5f52a1c99a7254c107e5 | [
"MIT"
] | 63 | 2016-05-29T23:59:21.000Z | 2022-03-16T19:52:26.000Z | coreutilities/Intersection.cpp | TreePuncher/gamek | af7e4199da650dfb3eab5f52a1c99a7254c107e5 | [
"MIT"
] | 4 | 2017-04-26T08:44:18.000Z | 2019-10-27T17:49:26.000Z | coreutilities/Intersection.cpp | TreePuncher/gamek | af7e4199da650dfb3eab5f52a1c99a7254c107e5 | [
"MIT"
] | 3 | 2020-04-09T07:53:22.000Z | 2020-06-29T07:04:21.000Z | #include "intersection.h"
#include "graphics.h"
namespace FlexKit
{ /************************************************************************************************/
std::optional<float> Intersects(const Ray r, const AABB aabb)
{
const auto Normals = static_vector<float3, 3>(
{ float3{... | 25.236776 | 100 | 0.570516 | TreePuncher |
b39024cca39bc8c8c9e4a10e66ffc7494d53f46e | 758 | cpp | C++ | codeforces/670/D2.cpp | Mohammad-Elsharkawy/CompetitiveProgramming | 8d052465ff08cb36e66b7e6c6813090ac410bf1d | [
"MIT"
] | null | null | null | codeforces/670/D2.cpp | Mohammad-Elsharkawy/CompetitiveProgramming | 8d052465ff08cb36e66b7e6c6813090ac410bf1d | [
"MIT"
] | null | null | null | codeforces/670/D2.cpp | Mohammad-Elsharkawy/CompetitiveProgramming | 8d052465ff08cb36e66b7e6c6813090ac410bf1d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll n,mp;
int needed[100006],has[100006];
bool ok(ll nums)
{
ll mm=mp;
for(int i=0;i<n;i++)
{
if(nums <= (has[i]+mm)/needed[i])
{
if(nums > (has[i])/needed[i])
mm-=(nums*needed[i]-has[i]);
... | 13.068966 | 44 | 0.427441 | Mohammad-Elsharkawy |
b3908522587b1b822173f225d816b9a8e26359c7 | 4,839 | cpp | C++ | grid-test/export/macos/obj/src/openfl/display/_internal/DOMDisplayObject.cpp | VehpuS/learning-haxe-and-haxeflixel | cb18c074720656797beed7333eeaced2cf323337 | [
"Apache-2.0"
] | null | null | null | grid-test/export/macos/obj/src/openfl/display/_internal/DOMDisplayObject.cpp | VehpuS/learning-haxe-and-haxeflixel | cb18c074720656797beed7333eeaced2cf323337 | [
"Apache-2.0"
] | null | null | null | grid-test/export/macos/obj/src/openfl/display/_internal/DOMDisplayObject.cpp | VehpuS/learning-haxe-and-haxeflixel | cb18c074720656797beed7333eeaced2cf323337 | [
"Apache-2.0"
] | null | null | null | // Generated by Haxe 4.1.4
#include <hxcpp.h>
#ifndef INCLUDED_openfl_display_DOMRenderer
#include <openfl/display/DOMRenderer.h>
#endif
#ifndef INCLUDED_openfl_display_DisplayObject
#include <openfl/display/DisplayObject.h>
#endif
#ifndef INCLUDED_openfl_display_DisplayObjectRenderer
#include <openfl/display/DisplayO... | 37.223077 | 232 | 0.781153 | VehpuS |
b39127ae3e1f16d157c705327b042222b3d80a52 | 11,797 | cpp | C++ | src/imaging/ossimQbTileFilesHandler.cpp | vladislav-horbatiuk/ossim | 82417ad868fac022672335e1684bdd91d662c18c | [
"MIT"
] | 251 | 2015-10-20T09:08:11.000Z | 2022-03-22T18:16:38.000Z | src/imaging/ossimQbTileFilesHandler.cpp | IvanLJF/ossim | 2e0143f682b9884a09ff2598ef8737f29e44fbdf | [
"MIT"
] | 73 | 2015-11-02T17:12:36.000Z | 2021-11-15T17:41:47.000Z | src/imaging/ossimQbTileFilesHandler.cpp | IvanLJF/ossim | 2e0143f682b9884a09ff2598ef8737f29e44fbdf | [
"MIT"
] | 146 | 2015-10-15T16:00:15.000Z | 2022-03-22T12:37:14.000Z | //*************************************************************************************************
//
// License: LGPL
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author: Oscar Kramer
//
// Description: Image handler used for tiled Quickbird imagery.
//
//*************************... | 35.640483 | 103 | 0.556243 | vladislav-horbatiuk |
b391c4fa9a3c508ab555717533bb1dca86f1e00a | 404 | cpp | C++ | Codeforces/133A_HQ9+.cpp | lieahau/Online-Judge-Solution | 26d81d1783cbdd9294455f00b77fb3dbaedd0c01 | [
"MIT"
] | 1 | 2020-04-13T11:12:19.000Z | 2020-04-13T11:12:19.000Z | Codeforces/133A_HQ9+.cpp | lieahau/Online-Judge-Solution | 26d81d1783cbdd9294455f00b77fb3dbaedd0c01 | [
"MIT"
] | null | null | null | Codeforces/133A_HQ9+.cpp | lieahau/Online-Judge-Solution | 26d81d1783cbdd9294455f00b77fb3dbaedd0c01 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
bool ans = false;
char s[1000];
scanf("%s", s);
int len = strlen(s);
for(int i = 0; i < len; i++)
if(s[i] == 'H' || s[i] == 'Q' || s[i] == '9')
{
ans = true;
break;
}
if... | 16.16 | 54 | 0.361386 | lieahau |
b3959cfe62e2e4820e257bf423fa341eca8f60d0 | 249 | hpp | C++ | include/axl.media/font/OutlineFont.hpp | Defalt8/axl.media | 86441a913930b78948c0068469bdfd8fc9d6e19c | [
"MIT"
] | 1 | 2021-12-13T14:42:56.000Z | 2021-12-13T14:42:56.000Z | include/axl.media/font/OutlineFont.hpp | Defalt8/axl.media | 86441a913930b78948c0068469bdfd8fc9d6e19c | [
"MIT"
] | null | null | null | include/axl.media/font/OutlineFont.hpp | Defalt8/axl.media | 86441a913930b78948c0068469bdfd8fc9d6e19c | [
"MIT"
] | null | null | null | #pragma once
#include "../lib.hpp"
#include "Font.hpp"
namespace axl {
namespace media {
namespace font {
class AXLMEDIACXXAPI OutlineFont : public Font
{
public:
OutlineFont();
~OutlineFont();
};
} // axl.media.font
} // axl.media
} // axl
| 13.105263 | 46 | 0.670683 | Defalt8 |
b396f558f3309c4a3827447fb1f9e35d23704e7e | 26,159 | cpp | C++ | src/TDraftsDlg.cpp | taviso/mpgravity | f6a2a7a02014b19047e44db76ae551bd689c16ac | [
"BSD-3-Clause"
] | 9 | 2020-04-01T04:15:22.000Z | 2021-09-26T21:03:47.000Z | src/TDraftsDlg.cpp | taviso/mpgravity | f6a2a7a02014b19047e44db76ae551bd689c16ac | [
"BSD-3-Clause"
] | 17 | 2020-04-02T19:38:40.000Z | 2020-04-12T05:47:08.000Z | src/TDraftsDlg.cpp | taviso/mpgravity | f6a2a7a02014b19047e44db76ae551bd689c16ac | [
"BSD-3-Clause"
] | null | null | null | /*****************************************************************************/
/* SOURCE CONTROL VERSIONS */
/*---------------------------------------------------------------------------*/
/* ... | 29.625142 | 85 | 0.598035 | taviso |
b3a0d6c816c97f6ea73f346da95071224bc84b9e | 5,581 | cpp | C++ | src/mesh.cpp | haldean/subd | 71934b174f52ad48f9bc3668cfa48ba217448a27 | [
"MIT"
] | 3 | 2015-11-26T11:57:05.000Z | 2020-10-17T13:52:36.000Z | src/mesh.cpp | haldean/subd | 71934b174f52ad48f9bc3668cfa48ba217448a27 | [
"MIT"
] | null | null | null | src/mesh.cpp | haldean/subd | 71934b174f52ad48f9bc3668cfa48ba217448a27 | [
"MIT"
] | null | null | null | #include "mesh.h"
vertex::vertex() {
loc.setZero();
normal.setZero();
}
/* This is here to allow for easy breakpoints to find places where copying takes
* place. */
inline void vertexCopy() {
cout << "vertex copied" << endl;
}
inline void meshCopy() {
cout << "mesh copied" << endl;
}
vertex::vertex(const v... | 23.351464 | 80 | 0.561369 | haldean |
b3a22e9adec78b3daff3d2a426f94ac85d1b97b9 | 10,802 | cpp | C++ | dnyBlackSpace/Code/game/entitylist.cpp | danielbrendel/dnyBlackSpace | fce0d12e5d3054b25dbdec97329f230fbbc452c8 | [
"MIT"
] | null | null | null | dnyBlackSpace/Code/game/entitylist.cpp | danielbrendel/dnyBlackSpace | fce0d12e5d3054b25dbdec97329f230fbbc452c8 | [
"MIT"
] | 1 | 2022-03-15T00:53:11.000Z | 2022-03-15T00:53:11.000Z | dnyBlackSpace/Code/game/entitylist.cpp | danielbrendel/dnyBlackSpace | fce0d12e5d3054b25dbdec97329f230fbbc452c8 | [
"MIT"
] | null | null | null | #include "entitylist.h"
/*
Black Space (dnyBlackSpace) developed by Daniel Brendel
(C) 2018 - 2022 by Daniel Brendel
Version: 1.0
Contact: dbrendel1988<at>gmail<dot>com
GitHub: https://github.com/danielbrendel/
Released under the MIT license
*/
//==============================================================... | 30.600567 | 128 | 0.561655 | danielbrendel |
b3ab1a3872c763c1e2fb3e130a773e2b61585e93 | 2,341 | cpp | C++ | client/api/HandlerFactory.cpp | tristanseifert/lichtenstein-lib | fc1fcf971594ee3953b8f35103fa319afc6bf7aa | [
"BSD-2-Clause"
] | null | null | null | client/api/HandlerFactory.cpp | tristanseifert/lichtenstein-lib | fc1fcf971594ee3953b8f35103fa319afc6bf7aa | [
"BSD-2-Clause"
] | null | null | null | client/api/HandlerFactory.cpp | tristanseifert/lichtenstein-lib | fc1fcf971594ee3953b8f35103fa319afc6bf7aa | [
"BSD-2-Clause"
] | null | null | null | //
// Created by Tristan Seifert on 2019-08-19.
//
#include "HandlerFactory.h"
#include <glog/logging.h>
#include <iomanip>
#include <sstream>
#include <mutex>
namespace liblichtenstein::api {
/// holds registered classes
std::map<std::string, HandlerFactory::createMethod> *HandlerFactory::registrations = null... | 28.204819 | 95 | 0.635626 | tristanseifert |
b3ab43e2b137152a301b9dc0c886ac5c84d3759d | 102 | cpp | C++ | Engine2_0/Screens/OptionsScreen.cpp | Lemmibl/Lemmi-Engine-2.0 | 38f6466b7d40d2a2d2528e2ae788622ce5c91f01 | [
"MIT"
] | 1 | 2017-01-10T19:37:23.000Z | 2017-01-10T19:37:23.000Z | Engine2_0/Screens/OptionsScreen.cpp | Lemmibl/Lemmi-Engine-2.0 | 38f6466b7d40d2a2d2528e2ae788622ce5c91f01 | [
"MIT"
] | null | null | null | Engine2_0/Screens/OptionsScreen.cpp | Lemmibl/Lemmi-Engine-2.0 | 38f6466b7d40d2a2d2528e2ae788622ce5c91f01 | [
"MIT"
] | null | null | null | #include "OptionsScreen.h"
OptionsScreen::OptionsScreen()
{
}
OptionsScreen::~OptionsScreen()
{
}
| 8.5 | 31 | 0.715686 | Lemmibl |
b3aca5390a9899b07124e59d90166fe0154e2a15 | 4,023 | cpp | C++ | yage/render/shader.cpp | ymherklotz/YAGE | 11a6d07652c98b13be6d8097e389480453a7c568 | [
"MIT"
] | 7 | 2017-08-02T12:38:42.000Z | 2020-03-03T12:26:49.000Z | yage/render/shader.cpp | ymherklotz/YAGE | 11a6d07652c98b13be6d8097e389480453a7c568 | [
"MIT"
] | 14 | 2017-04-05T01:39:44.000Z | 2018-05-04T20:37:34.000Z | yage/render/shader.cpp | ymherklotz/YAGE | 11a6d07652c98b13be6d8097e389480453a7c568 | [
"MIT"
] | null | null | null | /** ---------------------------------------------------------------------------
* -*- c++ -*-
* @file: shader.cpp
*
* Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
* MIT License, see LICENSE file for more details.
* ----------------------------------------------------------------------------
*/
... | 30.022388 | 80 | 0.646781 | ymherklotz |
a2a275a57dd785f88b5869a906f465d9ac7f7461 | 2,679 | cpp | C++ | ext/emsdk_portable/clang/tag-e1.34.1/src/unittests/Bitcode/NaClBitstreamReaderTest.cpp | slightperturbation/Cobalt | 7b398d155d28f7ddf4068a6c25c8aa6aaae486d4 | [
"Apache-2.0"
] | null | null | null | ext/emsdk_portable/clang/tag-e1.34.1/src/unittests/Bitcode/NaClBitstreamReaderTest.cpp | slightperturbation/Cobalt | 7b398d155d28f7ddf4068a6c25c8aa6aaae486d4 | [
"Apache-2.0"
] | null | null | null | ext/emsdk_portable/clang/tag-e1.34.1/src/unittests/Bitcode/NaClBitstreamReaderTest.cpp | slightperturbation/Cobalt | 7b398d155d28f7ddf4068a6c25c8aa6aaae486d4 | [
"Apache-2.0"
] | null | null | null | //===- llvm/unittest/Bitcode/NaClBitstreamReaderTest.cpp ------------------===//
// Tests issues in NaCl Bitstream Reader.
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---------... | 33.911392 | 80 | 0.728257 | slightperturbation |
a2a2cc8c3dc86d407469582ddc26b827c8c82b15 | 1,799 | hpp | C++ | examples/ray-casting/src/SphereCast.hpp | Shishqa/ShishGL | 36a3273aecb4b87d040616059ed9487d18abac1a | [
"MIT"
] | null | null | null | examples/ray-casting/src/SphereCast.hpp | Shishqa/ShishGL | 36a3273aecb4b87d040616059ed9487d18abac1a | [
"MIT"
] | null | null | null | examples/ray-casting/src/SphereCast.hpp | Shishqa/ShishGL | 36a3273aecb4b87d040616059ed9487d18abac1a | [
"MIT"
] | null | null | null | /*============================================================================*/
#ifndef RAY_CASTING_SPHERE_CAST_HPP
#define RAY_CASTING_SPHERE_CAST_HPP
/*============================================================================*/
#include "UICanvas.hpp"
#include "DefaultBehavior.hpp"
#include "Vector3.hpp"
/*====... | 27.676923 | 80 | 0.487493 | Shishqa |
a2a42b489a83933790190f59fd63e99dbbda2769 | 3,994 | hpp | C++ | src/xalanc/XSLT/ElemElement.hpp | ulisesten/xalanc | a722de08e61ce66965c4a828242f7d1250950621 | [
"Apache-2.0"
] | 24 | 2015-07-29T22:49:17.000Z | 2022-03-25T10:14:17.000Z | src/xalanc/XSLT/ElemElement.hpp | ulisesten/xalanc | a722de08e61ce66965c4a828242f7d1250950621 | [
"Apache-2.0"
] | 14 | 2019-05-10T16:25:50.000Z | 2021-11-24T18:04:47.000Z | src/xalanc/XSLT/ElemElement.hpp | ulisesten/xalanc | a722de08e61ce66965c4a828242f7d1250950621 | [
"Apache-2.0"
] | 28 | 2015-04-20T15:50:51.000Z | 2022-01-26T14:56:55.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the "License");
* you m... | 27.544828 | 85 | 0.676264 | ulisesten |
a2a4c432c31bd0b065dad89256cdd1ac8494c76c | 669 | cpp | C++ | Chess Game/Rafay and hasseb Final Project of OOP/Rough Work/second last day of oop/Chess/Chess/Source.cpp | rafay99-epic/University-Projects | 49cbd2c1e5e5879dd1dd2364301e35fd5c0bba81 | [
"MIT"
] | null | null | null | Chess Game/Rafay and hasseb Final Project of OOP/Rough Work/second last day of oop/Chess/Chess/Source.cpp | rafay99-epic/University-Projects | 49cbd2c1e5e5879dd1dd2364301e35fd5c0bba81 | [
"MIT"
] | null | null | null | Chess Game/Rafay and hasseb Final Project of OOP/Rough Work/second last day of oop/Chess/Chess/Source.cpp | rafay99-epic/University-Projects | 49cbd2c1e5e5879dd1dd2364301e35fd5c0bba81 | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
#include"CHESS.h"
using namespace std;
int main()
{
CHESS C;
string choice;
system("colour 7C");
do
{
system("cls");
cout << " Chess Game " << endl;
cout << endl << endl;
cout << " Welcome ";
C.display();
... | 16.725 | 58 | 0.527653 | rafay99-epic |
a2a53cf467adee0b48ab6fa30da52e3d79306c68 | 13,410 | hpp | C++ | src/sutil/CMappedTree.hpp | samirmenon/sUtil | 6b75697cddf18bc309ceea571f9f687045883183 | [
"Unlicense",
"MIT"
] | 3 | 2015-04-26T03:51:13.000Z | 2019-04-09T03:33:17.000Z | src/sutil/CMappedTree.hpp | samirmenon/sUtil | 6b75697cddf18bc309ceea571f9f687045883183 | [
"Unlicense",
"MIT"
] | 2 | 2015-03-31T22:36:33.000Z | 2016-01-25T23:31:52.000Z | src/sutil/CMappedTree.hpp | samirmenon/sUtil | 6b75697cddf18bc309ceea571f9f687045883183 | [
"Unlicense",
"MIT"
] | null | null | null | /* This file is part of sUtil, a random collection of utilities.
See the Readme.txt file in the root folder for licensing information.
*/
/* \file CMappedTree.hpp
*
* Created on: Dec 27, 2010
*
* Copyright (C) 2010, Samir Menon <smenon@stanford.edu>
*/
#ifndef CMAPPEDTREE_HPP_
#define CMAPPEDTREE_HPP_
#inclu... | 30.202703 | 105 | 0.640641 | samirmenon |
a2a9c274a74e034dd490860769ea3bc4fb90179a | 9,193 | cpp | C++ | Code/Rendering/Renderer.cpp | Tigole/OpenGL-SandBox | 652d07e7b5b3aff2600f61d4e5b7114a2ebf8b24 | [
"MIT"
] | null | null | null | Code/Rendering/Renderer.cpp | Tigole/OpenGL-SandBox | 652d07e7b5b3aff2600f61d4e5b7114a2ebf8b24 | [
"MIT"
] | null | null | null | Code/Rendering/Renderer.cpp | Tigole/OpenGL-SandBox | 652d07e7b5b3aff2600f61d4e5b7114a2ebf8b24 | [
"MIT"
] | null | null | null | #include "Renderer.hpp"
#include <string>
#include "Utilities/Log.hpp"
#include "VertexArray.hpp"
#include "Mesh.hpp"
#include "Material.hpp"
#include "glm/gtx/string_cast.hpp"
#include "Utilities/LibCompatibility.hpp"
#include <iostream>
void TextAlignment::mt_Set(TextAlignment::Align x, TextAlignment::Align ... | 28.4613 | 141 | 0.684869 | Tigole |
a2b9b03944cd0760c9c1f5cac253260024d550a6 | 9,043 | hh | C++ | dune/xt/functions/base/derivatives-of-element-functions.hh | dune-community/dune-xt-functions | be68c7bd003adb7843e52d3b2b50ad784272788a | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:10:30.000Z | 2020-02-08T04:10:30.000Z | dune/xt/functions/base/derivatives-of-element-functions.hh | dune-community/dune-xt-functions | be68c7bd003adb7843e52d3b2b50ad784272788a | [
"BSD-2-Clause"
] | 70 | 2016-01-21T08:13:23.000Z | 2020-03-25T08:38:02.000Z | dune/xt/functions/base/derivatives-of-element-functions.hh | dune-community/dune-xt-functions | be68c7bd003adb7843e52d3b2b50ad784272788a | [
"BSD-2-Clause"
] | 5 | 2018-01-19T12:48:43.000Z | 2020-02-08T04:10:37.000Z | // This file is part of the dune-xt-functions project:
// https://github.com/dune-community/dune-xt-functions
// Copyright 2009-2018 dune-xt-functions developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ ... | 31.399306 | 120 | 0.720889 | dune-community |
a2bcf8ce1f026a9eb19eefd5f8d4d39a3557e510 | 7,915 | cpp | C++ | src/tools/calculate_harmonic.cpp | alexandria-org/alexandria | ca0c890fea3ba931ad849ded95d6187838718a4c | [
"MIT"
] | 113 | 2022-02-12T00:07:52.000Z | 2022-03-28T08:02:39.000Z | src/tools/calculate_harmonic.cpp | alexandria-org/alexandria | ca0c890fea3ba931ad849ded95d6187838718a4c | [
"MIT"
] | 8 | 2021-09-26T07:52:47.000Z | 2022-03-28T06:56:02.000Z | src/tools/calculate_harmonic.cpp | alexandria-org/alexandria | ca0c890fea3ba931ad849ded95d6187838718a4c | [
"MIT"
] | 5 | 2022-03-18T22:20:50.000Z | 2022-03-25T15:41:06.000Z |
#include "calculate_harmonic.h"
#include "config.h"
#include "url_link/link.h"
#include "URL.h"
#include "common/ThreadPool.h"
#include "algorithm/algorithm.h"
#include "algorithm/hyper_ball.h"
#include <iostream>
#include <vector>
#include <mutex>
#include <boost/iostreams/filtering_stream.hpp>
#include <boost/iostr... | 26.649832 | 143 | 0.673531 | alexandria-org |
a2c16aa13783ee1032b05d77824a99095298ba9d | 962 | cpp | C++ | pyMSCEER/pymsceer.cpp | sci-visus/MSCEER | e1f319aaadc87d8373cd24097084672886e7a24e | [
"BSD-3-Clause"
] | 4 | 2019-09-28T12:22:46.000Z | 2021-09-24T11:52:03.000Z | pyMSCEER/pymsceer.cpp | sci-visus/MSCEER | e1f319aaadc87d8373cd24097084672886e7a24e | [
"BSD-3-Clause"
] | 1 | 2019-11-29T16:16:01.000Z | 2019-11-29T16:16:01.000Z | pyMSCEER/pymsceer.cpp | sci-visus/MSCEER | e1f319aaadc87d8373cd24097084672886e7a24e | [
"BSD-3-Clause"
] | 2 | 2019-07-03T04:42:20.000Z | 2019-11-08T10:59:47.000Z | /*
*
* Copyright (C) 2018 Attila Gyulassy <jediati@sci.utah.edu>
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
#include <iostream>
#include "stdio.h"
#include "stdlib.h"
#include "pymsceer.h"
#include <cmath>
... | 20.041667 | 91 | 0.685031 | sci-visus |
a2c38e6ef2714e266087078b15b8c03d083545a7 | 384 | hpp | C++ | src/script/script.hpp | HenryAWE/learn-electron | 6705954ce3f08431fcf5767ef617632bf7e540df | [
"BSD-3-Clause"
] | null | null | null | src/script/script.hpp | HenryAWE/learn-electron | 6705954ce3f08431fcf5767ef617632bf7e540df | [
"BSD-3-Clause"
] | null | null | null | src/script/script.hpp | HenryAWE/learn-electron | 6705954ce3f08431fcf5767ef617632bf7e540df | [
"BSD-3-Clause"
] | null | null | null | // Author: HenryAWE
// License: The 3-clause BSD License
#ifndef TESTWORLD_SCRIPT_SCRIPT_HPP
#define TESTWORLD_SCRIPT_SCRIPT_HPP
#include <angelscript.h>
#include "callconv.hpp"
#include "mask.hpp"
#include "register.hpp"
#include "scriptutil.hpp"
namespace awe::script
{
int InitScriptEnv(asIScriptEngine* engin... | 18.285714 | 49 | 0.768229 | HenryAWE |
a2c5ea7a8fe147245b9df3cd9e8d2c36757ec666 | 1,357 | hpp | C++ | header/statistics/StatisticalSerie2D.hpp | bendem/SchoolStats | 59883f1ba1219d707fedf9a890c0357d2002a285 | [
"Unlicense"
] | null | null | null | header/statistics/StatisticalSerie2D.hpp | bendem/SchoolStats | 59883f1ba1219d707fedf9a890c0357d2002a285 | [
"Unlicense"
] | null | null | null | header/statistics/StatisticalSerie2D.hpp | bendem/SchoolStats | 59883f1ba1219d707fedf9a890c0357d2002a285 | [
"Unlicense"
] | null | null | null | #ifndef STATSTICALSERIE2D_HPP
#define STATSTICALSERIE2D_HPP
#include "data/Sample.hpp"
#include "data/DataSource2D.hpp"
#include "data/iterators/Data2DIterator.hpp"
#include "utils/StringUtils.hpp"
class StatisticalSerie2D {
private:
Sample* sample;
DataSource& dataSource;
float averageValue1;
float a... | 22.245902 | 59 | 0.744289 | bendem |
a2c7fa41748469abeaae8bdac566fcde7ba7f9ae | 526 | cpp | C++ | 100 - The 3n + 1 problem.cpp | montyanderson/uva | b55c3d1250fb4a29dc915618f06c2561880d223a | [
"MIT"
] | null | null | null | 100 - The 3n + 1 problem.cpp | montyanderson/uva | b55c3d1250fb4a29dc915618f06c2561880d223a | [
"MIT"
] | null | null | null | 100 - The 3n + 1 problem.cpp | montyanderson/uva | b55c3d1250fb4a29dc915618f06c2561880d223a | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int collatz(long int num) {
int i = 1;
while(num != 1) {
if(num % 2 == 0) {
num /= 2;
} else {
num *= 3;
num += 1;
}
i++;
}
return i;
}
int main() {
while(true) {
int a, b, ans ... | 15.028571 | 52 | 0.3327 | montyanderson |
a2c9f6f6fe0c6b8f9a467284fa23c542f664ce4d | 909 | hpp | C++ | ReactionPlus/DOS/FileReader.hpp | stricq/AmigaSynergy | fd81da853b3c5a50a2bb5c160c5f7320daaa7571 | [
"MIT"
] | 1 | 2022-03-05T11:30:18.000Z | 2022-03-05T11:30:18.000Z | ReactionPlus/DOS/FileReader.hpp | stricq/AmigaSynergy | fd81da853b3c5a50a2bb5c160c5f7320daaa7571 | [
"MIT"
] | null | null | null | ReactionPlus/DOS/FileReader.hpp | stricq/AmigaSynergy | fd81da853b3c5a50a2bb5c160c5f7320daaa7571 | [
"MIT"
] | 1 | 2022-03-06T11:22:44.000Z | 2022-03-06T11:22:44.000Z | #ifndef RAPLUS_DOS_FILEREADER_HPP
#define RAPLUS_DOS_FILEREADER_HPP
#include <dos/dos.h>
#include "Reader.hpp"
#include "File.hpp"
#include "FileNotFoundException.hpp"
#include "IndexRangeException.hpp"
#include "Exec/OutOfMemoryException.hpp"
#include <string>
namespace RAPlus {
namespace DOS {
class Fil... | 17.480769 | 77 | 0.632563 | stricq |
a2ccafe8149ffb48942171209e04cfaf3374a623 | 2,460 | cc | C++ | src/elasticize/gpu/image.cc | jaesung-cs/elasticize | b59f19c9fcddcbac623cb4e0efb3e6acf55b34b0 | [
"MIT"
] | null | null | null | src/elasticize/gpu/image.cc | jaesung-cs/elasticize | b59f19c9fcddcbac623cb4e0efb3e6acf55b34b0 | [
"MIT"
] | null | null | null | src/elasticize/gpu/image.cc | jaesung-cs/elasticize | b59f19c9fcddcbac623cb4e0efb3e6acf55b34b0 | [
"MIT"
] | null | null | null | #include <elasticize/gpu/image.h>
#include <iostream>
#include <elasticize/gpu/engine.h>
namespace elastic
{
namespace gpu
{
class Image::Impl
{
public:
Impl() = delete;
Impl(Engine engine, const Options& options)
: engine_(engine)
, created_(true)
{
auto device = engine_.device();
auto image... | 24.117647 | 138 | 0.676423 | jaesung-cs |
a2d1d6600ec144ba18866f6485d0cc87e85bc5bd | 3,632 | cpp | C++ | ofApp.cpp | SJ-magic-study-oF/study__oF_x_AudioIF | af750e4e1671eda64dbe7bf3216b92c72de18124 | [
"MIT"
] | null | null | null | ofApp.cpp | SJ-magic-study-oF/study__oF_x_AudioIF | af750e4e1671eda64dbe7bf3216b92c72de18124 | [
"MIT"
] | null | null | null | ofApp.cpp | SJ-magic-study-oF/study__oF_x_AudioIF | af750e4e1671eda64dbe7bf3216b92c72de18124 | [
"MIT"
] | null | null | null | /************************************************************
************************************************************/
#include "ofApp.h"
/************************************************************
************************************************************/
/******************************
*******************... | 26.903704 | 97 | 0.432819 | SJ-magic-study-oF |
a2d65fca7b6ce73df5bec77b600e589536d25533 | 504 | cpp | C++ | Ponteiros/Ponteiros_teste.cpp | Bernardo1411/Programacao_Avancada | 5005b60155648872ca9d4f374b3d9ea035aa33a3 | [
"MIT"
] | null | null | null | Ponteiros/Ponteiros_teste.cpp | Bernardo1411/Programacao_Avancada | 5005b60155648872ca9d4f374b3d9ea035aa33a3 | [
"MIT"
] | null | null | null | Ponteiros/Ponteiros_teste.cpp | Bernardo1411/Programacao_Avancada | 5005b60155648872ca9d4f374b3d9ea035aa33a3 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
int ** p;
int nl, nc;
cout << "Insira o numero de linhas: ";
cin >> nl;
cout << "Insira o numero de colunas: ";
cin >> nc;
p = new int*[nl];
for(int i=0; i<nl; i++){
p[i]= new int[nl+i];
for(int j=0; j<nc+i; j++)
... | 15.75 | 43 | 0.40873 | Bernardo1411 |
a2dbcc80840d879440748ef25d73db64ec3e1336 | 1,587 | cpp | C++ | lib/src/Delphi/Syntax/Expressions/DelphiPointerTypeSyntax.cpp | henrikfroehling/polyglot | 955fb37c2f54ebbaf933c16bf9e0e4bcca8a4142 | [
"MIT"
] | null | null | null | lib/src/Delphi/Syntax/Expressions/DelphiPointerTypeSyntax.cpp | henrikfroehling/polyglot | 955fb37c2f54ebbaf933c16bf9e0e4bcca8a4142 | [
"MIT"
] | 50 | 2021-06-30T20:01:50.000Z | 2021-11-28T16:21:26.000Z | lib/src/Delphi/Syntax/Expressions/DelphiPointerTypeSyntax.cpp | henrikfroehling/polyglot | 955fb37c2f54ebbaf933c16bf9e0e4bcca8a4142 | [
"MIT"
] | null | null | null | #include "Delphi/Syntax/Expressions/DelphiPointerTypeSyntax.hpp"
#include <cassert>
#include "interlinck/Core/Syntax/ISyntaxToken.hpp"
#include "interlinck/Core/Syntax/SyntaxKinds.hpp"
#include "Core/Support/SyntaxFactory.hpp"
namespace interlinck::Delphi::Syntax
{
using Core::Support::SyntaxFactory;
using namespace ... | 33.0625 | 101 | 0.669817 | henrikfroehling |
a2dd959960790205d690dc832040902fa402d73f | 1,722 | cpp | C++ | token.cpp | sat0b/calculator | f0f4412e82e5de88b0980f6f455ddb1874b2fc4e | [
"MIT"
] | null | null | null | token.cpp | sat0b/calculator | f0f4412e82e5de88b0980f6f455ddb1874b2fc4e | [
"MIT"
] | null | null | null | token.cpp | sat0b/calculator | f0f4412e82e5de88b0980f6f455ddb1874b2fc4e | [
"MIT"
] | null | null | null | #include "token.h"
#include <iostream>
std::map<std::string, TokenKind> Token::token_table{
{"+", Plus},
{"-", Minus},
{"*", Product},
{"/", Divide},
{"(", LeftBracket},
{")", RightBracket},
{"=", Assign},
{"&&", And},
{"||", Or},
{"==", Equal},
{"!=", NotEqual},
{"<", L... | 23.27027 | 72 | 0.535424 | sat0b |
a2e22fc611c0e1a94c2d7cdd62796743441b91dc | 11,998 | cpp | C++ | program/spml/src/statistics.cpp | AlexanderSobolev1990/SPML_open | 31a589aa41e7d9041e7b7c96fde4fa59edcc07c8 | [
"MIT"
] | null | null | null | program/spml/src/statistics.cpp | AlexanderSobolev1990/SPML_open | 31a589aa41e7d9041e7b7c96fde4fa59edcc07c8 | [
"MIT"
] | null | null | null | program/spml/src/statistics.cpp | AlexanderSobolev1990/SPML_open | 31a589aa41e7d9041e7b7c96fde4fa59edcc07c8 | [
"MIT"
] | null | null | null | //----------------------------------------------------------------------------------------------------------------------
///
/// \file statistics.cpp
/// \brief Различные функции математической статистики
/// \date 08.02.21 - создан
/// \author Соболев А.А.
/// \addtogroup spml
/// \{
///
#include... | 30.92268 | 130 | 0.410568 | AlexanderSobolev1990 |
a2e44eec46b70dea03a10bfa95b4543e6a3feea1 | 860 | cpp | C++ | src/reductionRules/MergingRule.cpp | mironec/yoshiko | 5fe02c9f0be3462959b334e1197ca9e6ea27345d | [
"MIT"
] | 4 | 2017-04-13T02:11:15.000Z | 2021-11-29T18:04:16.000Z | src/reductionRules/MergingRule.cpp | mironec/yoshiko | 5fe02c9f0be3462959b334e1197ca9e6ea27345d | [
"MIT"
] | 27 | 2018-01-15T08:37:38.000Z | 2018-04-26T13:01:58.000Z | src/reductionRules/MergingRule.cpp | mironec/yoshiko | 5fe02c9f0be3462959b334e1197ca9e6ea27345d | [
"MIT"
] | 3 | 2017-07-24T13:13:28.000Z | 2019-04-10T19:09:56.000Z | #include "MergingRule.h"
using namespace std;
using namespace lemon;
namespace ysk {
void MergingRule::apply() {
WorkingCopyGraph::NodeMap<bool> nodes(_instance.getGraph(), true);
SubGraph<const WorkingCopyGraph, WorkingCopyGraph::NodeMap<bool>, const WorkingCopyGraph::EdgeMap<bool> > g(_instance.getGraph(), n... | 29.655172 | 165 | 0.67093 | mironec |
a2ecb55279df68b098f93fa100c6300850041b05 | 418 | hpp | C++ | include/Tilemap/TileRenderer.hpp | tylerwinkler/msg-game | 7db1ead37b61d54b87224c38d15a8b1d5e348755 | [
"MIT"
] | null | null | null | include/Tilemap/TileRenderer.hpp | tylerwinkler/msg-game | 7db1ead37b61d54b87224c38d15a8b1d5e348755 | [
"MIT"
] | null | null | null | include/Tilemap/TileRenderer.hpp | tylerwinkler/msg-game | 7db1ead37b61d54b87224c38d15a8b1d5e348755 | [
"MIT"
] | null | null | null | #ifndef MSG_GAME_TILERENDERER_HPP
#define MSG_GAME_TILERENDERER_HPP
#include "SFML/Graphics/RenderTarget.hpp"
#include "SFML/Graphics/Texture.hpp"
#include "TileMap.hpp"
class TileRenderer
{
public:
TileRenderer();
void render(sf::RenderTarget& target, Tile& tile, sf::Vector2f offset);
void setAtlas(sf... | 18.173913 | 75 | 0.751196 | tylerwinkler |
a2edbf3d716fd569c4d1cb145c99b3228cc8ef2a | 2,533 | cc | C++ | src/Model.cc | jeeger/carl | 230969c4c109e5048d173cdd17eaa3da08e4d981 | [
"Apache-2.0"
] | 6 | 2017-09-28T21:50:30.000Z | 2019-12-16T19:57:25.000Z | src/Model.cc | jeeger/carl | 230969c4c109e5048d173cdd17eaa3da08e4d981 | [
"Apache-2.0"
] | 5 | 2017-10-09T14:37:33.000Z | 2019-04-14T21:54:34.000Z | src/Model.cc | jeeger/carl | 230969c4c109e5048d173cdd17eaa3da08e4d981 | [
"Apache-2.0"
] | 3 | 2017-10-05T09:37:26.000Z | 2021-02-25T15:31:18.000Z | //
// Copyright 2017 Giovanni Mels
//
// 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 t... | 47.792453 | 137 | 0.71062 | jeeger |
a2eff48a92e53efecc0b50cf3b1707e0ab79ef2f | 2,074 | cpp | C++ | src/ONB.cpp | EgeCiklabakkal/Raytracer | 39ba3009198feb88e53a46849111282149ba4308 | [
"MIT"
] | 6 | 2019-10-13T17:38:57.000Z | 2021-04-01T08:36:35.000Z | src/ONB.cpp | EgeCiklabakkal/Raytracer | 39ba3009198feb88e53a46849111282149ba4308 | [
"MIT"
] | null | null | null | src/ONB.cpp | EgeCiklabakkal/Raytracer | 39ba3009198feb88e53a46849111282149ba4308 | [
"MIT"
] | null | null | null | #include "ONB.h"
#define ONB_EPSILON 0.01f
void ONB::initFromU(const Vec3& u)
{
Vec3 n(1.0f, 0.0f, 0.0f);
Vec3 m(0.0f, 1.0f, 0.0f);
U = unitVector(u);
V = cross(U, n);
if(V.length() < ONB_EPSILON)
V = cross(U, m);
W = cross(U, V);
V.makeUnitVector();
W.makeUnitVector();
}
void ONB::initFromV(const Vec3& ... | 17.726496 | 67 | 0.592575 | EgeCiklabakkal |
a2f0ec3e38d4dc60f7acaba5aa2a67c31ebe8c14 | 6,048 | cpp | C++ | src/camera.cpp | Hanggansta/Nimble | 291c1bae6308c49f4e86a7ecabc97e9fe8fce654 | [
"MIT"
] | null | null | null | src/camera.cpp | Hanggansta/Nimble | 291c1bae6308c49f4e86a7ecabc97e9fe8fce654 | [
"MIT"
] | null | null | null | src/camera.cpp | Hanggansta/Nimble | 291c1bae6308c49f4e86a7ecabc97e9fe8fce654 | [
"MIT"
] | 1 | 2021-05-09T12:51:18.000Z | 2021-05-09T12:51:18.000Z | #include "camera.h"
#include <gtc/matrix_transform.hpp>
#include <gtc/type_ptr.hpp>
#include <iostream>
#define PI 3.14159265359
#define HALTON_SAMPLES 16
namespace nimble
{
float halton_sequence(int base, int index)
{
float result = 0;
float f = 1;
while (index > 0)
{
f /= base;
... | 29.502439 | 111 | 0.628142 | Hanggansta |
a2f429770fba077efdbc6ddc1c46de0fe337b77b | 6,916 | cpp | C++ | src/networkmanager.cpp | erm2587/VpnManager | 21d6a6e8f1e463c3e85f5e6a1ae131a0f9ce6d10 | [
"MIT"
] | 2 | 2019-12-07T10:22:59.000Z | 2021-01-09T12:29:00.000Z | src/networkmanager.cpp | erm2587/VpnManager | 21d6a6e8f1e463c3e85f5e6a1ae131a0f9ce6d10 | [
"MIT"
] | 3 | 2019-02-03T18:17:45.000Z | 2019-04-27T23:16:24.000Z | src/networkmanager.cpp | erm2587/VpnManager | 21d6a6e8f1e463c3e85f5e6a1ae131a0f9ce6d10 | [
"MIT"
] | null | null | null | #include <QDebug>
#include <gmodule.h>
#include "networkmanager.h"
static void added_cb(GObject *client, GAsyncResult *result, gpointer user_data)
{
Q_UNUSED(user_data);
GError *error = NULL;
NMActiveConnection *remote = nm_client_add_and_activate_connection_finish(NM_CLIENT(client), result, &error);
... | 34.58 | 113 | 0.662377 | erm2587 |
a2f54485f013282aaa8b7def6c1c6176d2742074 | 6,761 | hpp | C++ | src/common/camera.hpp | jherico/glTF | e1a6b3cee67d241894855ceeef89606ff021beb6 | [
"MIT"
] | null | null | null | src/common/camera.hpp | jherico/glTF | e1a6b3cee67d241894855ceeef89606ff021beb6 | [
"MIT"
] | null | null | null | src/common/camera.hpp | jherico/glTF | e1a6b3cee67d241894855ceeef89606ff021beb6 | [
"MIT"
] | null | null | null | /*
* Basic camera class
*
* Copyright (C) 2016 by Sascha Willems - www.saschawillems.de
*
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
*/
#include "common.hpp"
class Camera {
private:
float fov{ 60.0f };
float znear{ 0.11f }, zfar{ 512.0f };
float aspect{ 1.0f }... | 30.731818 | 151 | 0.549919 | jherico |
a2f6806ea99bc83c53910b7249ce3ca1c36a53d6 | 3,392 | hpp | C++ | Maze/player.hpp | CodeBulletin/Maze.Exe | 2cd3e7b2733f8f236dcd4f09e5048aba295f66e5 | [
"MIT"
] | 1 | 2021-09-07T11:53:16.000Z | 2021-09-07T11:53:16.000Z | Maze/player.hpp | CodeBulletin/Maze.Exe | 2cd3e7b2733f8f236dcd4f09e5048aba295f66e5 | [
"MIT"
] | null | null | null | Maze/player.hpp | CodeBulletin/Maze.Exe | 2cd3e7b2733f8f236dcd4f09e5048aba295f66e5 | [
"MIT"
] | null | null | null | #pragma once
#include "cell.hpp"
struct Player{
sf::Vector2i targetPos, playerPos, target, player;
float tsize, psize;
sf::Color targetColor, playerColor;
sf::VertexArray t_vert, p_vert;
Player() {}
Player(sf::Vector2i targetPos, sf::Vector2i playerPos, sf::Vector2i target, sf::Vector2i player,
float... | 35.333333 | 98 | 0.615861 | CodeBulletin |
0c00921aeeb4260a49e378254eb81993240ada64 | 12,603 | cpp | C++ | SoftwareList/DB/DBManager.cpp | ATquode/PreferredSoftwareList | dbb26056405111f1ff303b6f84368edf2e84d421 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | SoftwareList/DB/DBManager.cpp | ATquode/PreferredSoftwareList | dbb26056405111f1ff303b6f84368edf2e84d421 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | SoftwareList/DB/DBManager.cpp | ATquode/PreferredSoftwareList | dbb26056405111f1ff303b6f84368edf2e84d421 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | // SPDX-FileCopyrightText: 2021 Rifat Hasan <atunutemp1@gmail.com>
//
// SPDX-License-Identifier: MIT
#include "DBManager.h"
#include <QDebug>
DBManager::DBManager(QObject* parent)
: QObject(parent)
{
QString driverName("QSQLITE");
if (!QSqlDatabase::drivers().contains(driverName)) {
qCritical() << "No SQLite ... | 30.368675 | 153 | 0.775847 | ATquode |
0c01e75c5ef4e4bdbe61a1d36679b2ea33b07b02 | 1,690 | cpp | C++ | test/src/l.cpp | ember91/goinglogging | 1f95585773fdb80b07c1ab0684d233e2d200dbd7 | [
"MIT"
] | null | null | null | test/src/l.cpp | ember91/goinglogging | 1f95585773fdb80b07c1ab0684d233e2d200dbd7 | [
"MIT"
] | null | null | null | test/src/l.cpp | ember91/goinglogging | 1f95585773fdb80b07c1ab0684d233e2d200dbd7 | [
"MIT"
] | null | null | null | #include "goinglogging.h"
#include "test/test.h"
/**
* \file
* Test output of l().
*/
using namespace gl::test;
/**
* \brief Test entry point.
*
* \param argc Number of arguments.
* \param argv Arguments.
* \return EXIT_SUCCESS if success.
*/
int main(int argc, const char** argv) {
// Check number of ar... | 23.150685 | 76 | 0.504734 | ember91 |
0c103f5514e64fb13d909029af9d550592ab54ae | 7,434 | cpp | C++ | ApexGameEngine/src/Platform/OpenGL/OpenGLComputeShader.cpp | xdevapps/ApexGameEngine | 4e9c232838eb718584643db69520a069c4657565 | [
"MIT"
] | 1 | 2021-02-13T08:53:36.000Z | 2021-02-13T08:53:36.000Z | ApexGameEngine/src/Platform/OpenGL/OpenGLComputeShader.cpp | xdevapps/ApexGameEngine | 4e9c232838eb718584643db69520a069c4657565 | [
"MIT"
] | 27 | 2020-05-29T20:03:03.000Z | 2022-02-25T03:27:26.000Z | ApexGameEngine/src/Platform/OpenGL/OpenGLComputeShader.cpp | xdevapps/ApexGameEngine | 4e9c232838eb718584643db69520a069c4657565 | [
"MIT"
] | null | null | null | #include <apex_pch.h>
#include "OpenGLComputeShader.h"
#include "Apex/Core/FileSystem/FileSystem.h"
#include <fstream>
#include <glad/glad.h>
#include <glm/gtc/type_ptr.hpp>
namespace Apex {
OpenGLComputeShader::OpenGLComputeShader(const std::string& filepath)
{
std::string source;
std::ifstream in(file... | 32.043103 | 118 | 0.664245 | xdevapps |
0c15e0909126fd5b38b04dc02eb2b4a447a53832 | 247 | cpp | C++ | JustPlayIt/CommandLineProcess.cpp | findeway/JustPlayIt | 7ca7a006e0e7a393c65ddac3aa30107a2c2e5521 | [
"BSD-2-Clause"
] | 1 | 2017-09-16T13:30:08.000Z | 2017-09-16T13:30:08.000Z | JustPlayIt/CommandLineProcess.cpp | findeway/JustPlayIt | 7ca7a006e0e7a393c65ddac3aa30107a2c2e5521 | [
"BSD-2-Clause"
] | null | null | null | JustPlayIt/CommandLineProcess.cpp | findeway/JustPlayIt | 7ca7a006e0e7a393c65ddac3aa30107a2c2e5521 | [
"BSD-2-Clause"
] | null | null | null | #include "StdAfx.h"
#include "CommandLineProcess.h"
CCommandLineProcessor::CCommandLineProcessor(void)
{
}
CCommandLineProcessor::~CCommandLineProcessor(void)
{
}
bool CCommandLineProcessor::Process( const wchar_t* szParams )
{
return false;
} | 16.466667 | 62 | 0.789474 | findeway |
0c1855ba2cef004c905f49ca4f9e66a69f14083b | 6,297 | cpp | C++ | external/modules/vval_util.cpp | WeirdConstructor/lilvm | 7e4081e45abd8afa1873a666c8c519ce1f76f0f5 | [
"MIT"
] | 3 | 2017-12-16T16:44:10.000Z | 2020-04-22T08:11:55.000Z | external/modules/vval_util.cpp | WeirdConstructor/BukaLisp | 7e4081e45abd8afa1873a666c8c519ce1f76f0f5 | [
"MIT"
] | null | null | null | external/modules/vval_util.cpp | WeirdConstructor/BukaLisp | 7e4081e45abd8afa1873a666c8c519ce1f76f0f5 | [
"MIT"
] | null | null | null | /******************************************************************************
* Copyright (C) 2017 Weird Constructor
*
* 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 restricti... | 31.328358 | 90 | 0.4761 | WeirdConstructor |
0c19b4ec73c326ea1a7f1b6471adeef72987db0c | 5,770 | hpp | C++ | MyBot/dunespicecards.hpp | Sijumah/Sijdiscbot | c58433b1bcaacc17ee17637c2daa6ce07d6d4120 | [
"Apache-2.0"
] | null | null | null | MyBot/dunespicecards.hpp | Sijumah/Sijdiscbot | c58433b1bcaacc17ee17637c2daa6ce07d6d4120 | [
"Apache-2.0"
] | null | null | null | MyBot/dunespicecards.hpp | Sijumah/Sijdiscbot | c58433b1bcaacc17ee17637c2daa6ce07d6d4120 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "dunedefs.hpp"
#include "dune_decks.hpp"
namespace dunegame {
//struct spice_deck;
struct spice_card: public card{
map_territory* linked_territory;
short amount; //Amount of spice bestowed.
virtual void play() {
linked_territory->spice_present += amount;
... | 31.189189 | 184 | 0.655979 | Sijumah |
0c1c3e12eced4559d1ba59a6f28d3963b731c3e5 | 5,480 | cc | C++ | ans-omp/src/main.cc | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 58 | 2020-08-06T18:53:44.000Z | 2021-10-01T07:59:46.000Z | ans-omp/src/main.cc | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 2 | 2020-12-04T12:35:02.000Z | 2021-03-04T22:49:25.000Z | ans-omp/src/main.cc | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 13 | 2020-08-19T13:44:18.000Z | 2021-09-08T04:25:34.000Z | /*****************************************************************************
*
* MULTIANS - Massively parallel ANS decoding on GPUs
*
* released under LGPL-3.0
*
* 2017-2019 André Weißenberger
*
*****************************************************************************/
#include <cassert>
#include <random... | 32.619048 | 97 | 0.650912 | BeauJoh |
0c1dcdb845ecdd89a05ee03f0bfd6fd89d90497c | 3,534 | hpp | C++ | include/Btk/textbox.hpp | BusyStudent/Btk | 27b23aa77e4fbcc48bdfe566ce7cae46183c289c | [
"MIT"
] | 2 | 2021-06-19T08:21:38.000Z | 2021-08-15T21:37:30.000Z | include/Btk/textbox.hpp | BusyStudent/Btk | 27b23aa77e4fbcc48bdfe566ce7cae46183c289c | [
"MIT"
] | null | null | null | include/Btk/textbox.hpp | BusyStudent/Btk | 27b23aa77e4fbcc48bdfe566ce7cae46183c289c | [
"MIT"
] | 1 | 2021-04-03T14:27:39.000Z | 2021-04-03T14:27:39.000Z | #if !defined(_BTK_TEXTBOX_HPP_)
#define _BTK_TEXTBOX_HPP_
#include <string>
#include <string_view>
#include "utils/timer.hpp"
#include "widget.hpp"
#include "pixels.hpp"
#include "themes.hpp"
#include "rect.hpp"
#include "font.hpp"
namespace Btk{
class KeyEvent;
class BTKAPI TextBox:public Widget{
publi... | 31.274336 | 66 | 0.528862 | BusyStudent |
0c1eb3ee73f51d26cdc6743cacccb0612a8483ba | 852 | cpp | C++ | src/hw/platform_device/pdtree.cpp | pblxptr/hhctrl-mgmt | 829189d51985205b1a9ce25aff2ce5d1e579c94d | [
"MIT"
] | null | null | null | src/hw/platform_device/pdtree.cpp | pblxptr/hhctrl-mgmt | 829189d51985205b1a9ce25aff2ce5d1e579c94d | [
"MIT"
] | null | null | null | src/hw/platform_device/pdtree.cpp | pblxptr/hhctrl-mgmt | 829189d51985205b1a9ce25aff2ce5d1e579c94d | [
"MIT"
] | null | null | null | #include <hw/platform_device/pdtree.hpp>
#include <fstream>
namespace hw::platform_device
{
std::string pdtree_to_string(const PdTreeValue_t& val)
{
return val.as_string().c_str();
}
boost::json::value load_pdtree_file(const std::string& file_path)
{
auto file = std::ifstream{file_path};
if (f... | 21.846154 | 95 | 0.616197 | pblxptr |
0c2dd0909072fcc6da2502346793863f3980827a | 537 | hpp | C++ | Game Engine/include/ShadowPassLayer.hpp | aprithul/Prengine | 7aff20bb73ab21e9e11dda1985e6b22992479f0d | [
"BSD-3-Clause"
] | 1 | 2019-10-08T05:20:30.000Z | 2019-10-08T05:20:30.000Z | Game Engine/include/ShadowPassLayer.hpp | aprithul/PrEngine | 7aff20bb73ab21e9e11dda1985e6b22992479f0d | [
"BSD-3-Clause"
] | null | null | null | Game Engine/include/ShadowPassLayer.hpp | aprithul/PrEngine | 7aff20bb73ab21e9e11dda1985e6b22992479f0d | [
"BSD-3-Clause"
] | null | null | null | #ifndef SHADOW_PASS_LAYER_HPP
#define SHADOW_PASS_LAYER_HPP
#include "GlAssert.hpp"
#include "RenderLayer.hpp"
#include "DirectionalLight.hpp"
#include "GeometryLayer.hpp"
#include "Graphics.hpp"
namespace PrEngine
{
class ShadowPassLayer : public RenderLayer
{
public:
ShadowPassLayer();
... | 19.178571 | 46 | 0.64432 | aprithul |
0c33861d20d6b75abce5c83f13781271bf8df346 | 5,415 | cpp | C++ | test/B_trees_unittest.cpp | zero4drift/CLRS_Cpp_Implementations | efafbb34fb9f83dedecdcf01395def27fd64a33a | [
"MIT"
] | null | null | null | test/B_trees_unittest.cpp | zero4drift/CLRS_Cpp_Implementations | efafbb34fb9f83dedecdcf01395def27fd64a33a | [
"MIT"
] | null | null | null | test/B_trees_unittest.cpp | zero4drift/CLRS_Cpp_Implementations | efafbb34fb9f83dedecdcf01395def27fd64a33a | [
"MIT"
] | null | null | null | #include <memory>
#include <vector>
#include <gtest/gtest.h>
#include "chapter-18/B_trees/B_trees.hpp"
using namespace CLRS;
TEST(BTrees, Create)
{
BTree<char, 3> t;
b_tree_create(&t);
EXPECT_EQ(0, t.get_root()->get_n());
EXPECT_EQ(true, t.get_root()->get_leaf());
EXPECT_EQ(3, t.get_root()->get_t());
}
TES... | 33.425926 | 71 | 0.610342 | zero4drift |
0c42f75e4b864844aca83ce4fd3911c7e56547a7 | 1,028 | hpp | C++ | ecs/system/system.hpp | hiddenSt/ECS | ea77bbe7cd5064e0fb236a11eb03adc28d56ea22 | [
"MIT"
] | null | null | null | ecs/system/system.hpp | hiddenSt/ECS | ea77bbe7cd5064e0fb236a11eb03adc28d56ea22 | [
"MIT"
] | null | null | null | ecs/system/system.hpp | hiddenSt/ECS | ea77bbe7cd5064e0fb236a11eb03adc28d56ea22 | [
"MIT"
] | null | null | null | #ifndef ECS_INCLUDE_SYSTEM_HPP_
#define ECS_INCLUDE_SYSTEM_HPP_
#include <ecs/types.hpp>
namespace ecs {
namespace system {
class System {
public:
System() = default;
virtual ~System() = default;
explicit System(const System& other) = delete;
explicit System(System&& other) = delete;
System& operator=(co... | 23.906977 | 68 | 0.748054 | hiddenSt |
0c435bfc06b03e2a06fa06e7f42c3ea166897fdf | 16,755 | cc | C++ | engine/core/rendering/command_context.cc | RikoOphorst/Tremble | 650fa53402f9c6114642e0cc8515b2ed517d40d6 | [
"MIT"
] | 1 | 2021-10-17T06:41:46.000Z | 2021-10-17T06:41:46.000Z | engine/core/rendering/command_context.cc | RikoOphorst/Tremble | 650fa53402f9c6114642e0cc8515b2ed517d40d6 | [
"MIT"
] | null | null | null | engine/core/rendering/command_context.cc | RikoOphorst/Tremble | 650fa53402f9c6114642e0cc8515b2ed517d40d6 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "command_context.h"
#include "command_queue.h"
#include "command_manager.h"
#include "command_context_manager.h"
#include "device.h"
#include "renderer.h"
#include "../get.h"
#include "compute_context.h"
#include "graphics_context.h"
namespace engine
{
//------------------------------------... | 35.877944 | 150 | 0.632826 | RikoOphorst |
0c47fa026915c33b74ffdd224a4c78bfa08c5ac1 | 3,222 | cpp | C++ | ap/include/utils/file.cpp | bonohub13/ap | 973656ad88756bdf66659f935e8cedb355f9fed3 | [
"MIT"
] | null | null | null | ap/include/utils/file.cpp | bonohub13/ap | 973656ad88756bdf66659f935e8cedb355f9fed3 | [
"MIT"
] | null | null | null | ap/include/utils/file.cpp | bonohub13/ap | 973656ad88756bdf66659f935e8cedb355f9fed3 | [
"MIT"
] | null | null | null | #include "file.hpp"
ap::File::File(const std::string &tgt_path, const std::string &src_path) {
std::ostringstream oss;
if (std::filesystem::exists(tgt_path)) {
this->patch_path = tgt_path;
} else {
oss = std::ostringstream();
oss << this->ERR_MSG.get_DIRECTORY_NOT_EXIST('H') << tgt... | 28.263158 | 79 | 0.599317 | bonohub13 |
0c4a61c433063dc6abaeefd1e6bf6737923d00ee | 130 | cpp | C++ | src/test.cpp | ToruNiina/flemu | 70d98c224b6746aaa75740b3065031009d155153 | [
"MIT"
] | null | null | null | src/test.cpp | ToruNiina/flemu | 70d98c224b6746aaa75740b3065031009d155153 | [
"MIT"
] | null | null | null | src/test.cpp | ToruNiina/flemu | 70d98c224b6746aaa75740b3065031009d155153 | [
"MIT"
] | null | null | null | #include <flemu/utility.hpp>
#include <flemu/bit_proxy.hpp>
#include <flemu/float32.hpp>
#include <flemu/adder.hpp>
int main(){}
| 18.571429 | 30 | 0.730769 | ToruNiina |
31aca5db020735cf4832f2636252eeaa14ae6f45 | 20,071 | cpp | C++ | include/noo_client_interface.cpp | InsightCenterNoodles/NoodlesPlusPlus | 3396e530a5948416fd364cc9ffa3f5bcbb8abc3b | [
"MIT"
] | null | null | null | include/noo_client_interface.cpp | InsightCenterNoodles/NoodlesPlusPlus | 3396e530a5948416fd364cc9ffa3f5bcbb8abc3b | [
"MIT"
] | null | null | null | include/noo_client_interface.cpp | InsightCenterNoodles/NoodlesPlusPlus | 3396e530a5948416fd364cc9ffa3f5bcbb8abc3b | [
"MIT"
] | null | null | null | #include "noo_client_interface.h"
#include "noo_common.h"
#include "src/client/client_common.h"
#include "src/client/clientstate.h"
#include "src/common/variant_tools.h"
#include <QWebSocket>
namespace nooc {
void PendingMethodReply::interpret() { }
PendingMethodReply::PendingMethodReply(MethodDelegate* d, MethodC... | 28.509943 | 80 | 0.596233 | InsightCenterNoodles |
31bab40644703118c197b57f63b2213444d82ef5 | 1,170 | cpp | C++ | homework/Avdiunina/08/hw_8.cpp | nkotelevskii/msu_cpp_spring_2018 | b5d84447f9b8c7f3615b421c51cf4192f1b90342 | [
"MIT"
] | 12 | 2018-02-20T15:25:12.000Z | 2022-02-15T03:31:55.000Z | homework/Avdiunina/08/hw_8.cpp | nkotelevskii/msu_cpp_spring_2018 | b5d84447f9b8c7f3615b421c51cf4192f1b90342 | [
"MIT"
] | 1 | 2018-02-26T12:40:47.000Z | 2018-02-26T12:40:47.000Z | homework/Avdiunina/08/hw_8.cpp | nkotelevskii/msu_cpp_spring_2018 | b5d84447f9b8c7f3615b421c51cf4192f1b90342 | [
"MIT"
] | 33 | 2018-02-20T15:25:11.000Z | 2019-02-13T22:33:36.000Z | //
// Created by polina997.
//
//
#include <fstream>
#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <stdexcept>
class can_not_open_file: public std::exception {};
class invalid_arguments_number: public std::exception {};
void count(const std::string& file)
{
std::fstream in;
... | 20.172414 | 104 | 0.564103 | nkotelevskii |
31c51a5914bb6c068eb8d0513750a67c0fe522ad | 2,383 | cpp | C++ | AirFloat/Base64.cpp | davhelm/AirFloat | 460a97d57f9adf3372093e1e62a38b726ab08737 | [
"Unlicense"
] | 2 | 2015-07-20T17:09:11.000Z | 2017-02-05T11:08:34.000Z | AirFloat/Base64.cpp | davhelm/AirFloat | 460a97d57f9adf3372093e1e62a38b726ab08737 | [
"Unlicense"
] | null | null | null | AirFloat/Base64.cpp | davhelm/AirFloat | 460a97d57f9adf3372093e1e62a38b726ab08737 | [
"Unlicense"
] | null | null | null | //
// Base64.cpp
// AirFloatCF
//
// Created by Kristian Trenskow on 5/10/11.
// Copyright 2011 The Famous Software Company. All rights reserved.
//
#include <string.h>
#include <stdlib.h>
#include "Base64.h"
static char base64_chars[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
stati... | 21.663636 | 74 | 0.475031 | davhelm |
31c60acc6a5c08ea50723d9e8abb2ccf664b7f05 | 11,696 | cpp | C++ | TypedEditor/src/Console.cpp | Wesselmast/TypedEngine | ddb1e66c8b5e96c20123a7278308dbaf71b8e79f | [
"MIT"
] | null | null | null | TypedEditor/src/Console.cpp | Wesselmast/TypedEngine | ddb1e66c8b5e96c20123a7278308dbaf71b8e79f | [
"MIT"
] | 1 | 2020-05-06T21:36:36.000Z | 2020-05-06T21:36:36.000Z | TypedEditor/src/Console.cpp | Wesselmast/TypedEngine | ddb1e66c8b5e96c20123a7278308dbaf71b8e79f | [
"MIT"
] | 1 | 2020-05-01T17:16:46.000Z | 2020-05-01T17:16:46.000Z | #include "Console.h"
#include "Rendering/Text.h"
#include "Rendering/Quad.h"
#include "Rendering/Sprite.h"
#include "Input/Input.h"
#include "Window/Window.h"
#include <string>
#include "Rendering/Rendercommand.h"
#include "Scripting/LuaCommand.h"
#include "Core/Utility.h"
#include <future>
#include "ConsoleComman... | 28.737101 | 134 | 0.597127 | Wesselmast |
31c74945f64469a9706c1126769073e33eade88b | 1,129 | cpp | C++ | src/plat/linux/linux_log.cpp | Lovey847/brotherGame | 3f55c5c78cfd531dcbc0469a1befaafd31a46e0b | [
"MIT"
] | null | null | null | src/plat/linux/linux_log.cpp | Lovey847/brotherGame | 3f55c5c78cfd531dcbc0469a1befaafd31a46e0b | [
"MIT"
] | null | null | null | src/plat/linux/linux_log.cpp | Lovey847/brotherGame | 3f55c5c78cfd531dcbc0469a1befaafd31a46e0b | [
"MIT"
] | null | null | null | #include "log.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cstdarg>
void log_warning(const char *str, ...) {
// Append to error log
// TODO: Implement an error message box at some point!
int fd = open("er... | 18.209677 | 55 | 0.615589 | Lovey847 |
31cdc8ac9c000667dc8bca51ac9390222dd103ea | 4,367 | cpp | C++ | UI/Dialogs/Editors/SearchEditor.cpp | jimbeveridge/mfcmapi | 9f01b707a73bcede539e0b057a855bddaf1e9ae9 | [
"MIT"
] | null | null | null | UI/Dialogs/Editors/SearchEditor.cpp | jimbeveridge/mfcmapi | 9f01b707a73bcede539e0b057a855bddaf1e9ae9 | [
"MIT"
] | 1 | 2019-11-21T15:24:31.000Z | 2019-11-21T18:05:57.000Z | UI/Dialogs/Editors/SearchEditor.cpp | youtiaocoder/mfcmapi-1 | f2e58e7153b033b92c0b3989010428a2291d8527 | [
"MIT"
] | null | null | null | #include <StdAfx.h>
#include <UI/Dialogs/Editors/SearchEditor.h>
#include <core/utility/strings.h>
#include <UI/Dialogs/Editors/PropertyTagEditor.h>
#include <core/mapi/mapiFunctions.h>
#include <core/mapi/cache/namedPropCache.h>
#include <core/utility/output.h>
#include <core/interpret/proptags.h>
#include <core/addin... | 28.357143 | 102 | 0.720861 | jimbeveridge |
31d518b78062428ff0479f0df3e68665a7c82b38 | 2,779 | cpp | C++ | src/tests/Test5.cpp | rzvdaniel/GUI- | 1501b54a038f7e3f66d683f125fa53d3ab73672c | [
"MIT"
] | 2 | 2017-06-16T19:27:55.000Z | 2020-04-05T02:18:07.000Z | src/tests/Test5.cpp | rzvdaniel/GUI- | 1501b54a038f7e3f66d683f125fa53d3ab73672c | [
"MIT"
] | null | null | null | src/tests/Test5.cpp | rzvdaniel/GUI- | 1501b54a038f7e3f66d683f125fa53d3ab73672c | [
"MIT"
] | 2 | 2019-09-03T19:23:20.000Z | 2020-08-29T21:46:17.000Z | //-------------------------------------------------------------------
// Test5.cpp
// (C) 2004 Ricas -- R.Predescu
//-------------------------------------------------------------------
#include "guide/vcl.h"
#include "guide/debug.h"
#include "tests/Test5.h"
//---------------------------------------------------------... | 24.377193 | 82 | 0.473192 | rzvdaniel |
31dd963e18d0d295ec255b960b1031fb3af9385e | 360 | cpp | C++ | src/kernel/Utils/Semaphore.cpp | honzikv/OSSem | 07b9740a81ebd812a74309b96e41361cc56945a7 | [
"MIT"
] | null | null | null | src/kernel/Utils/Semaphore.cpp | honzikv/OSSem | 07b9740a81ebd812a74309b96e41361cc56945a7 | [
"MIT"
] | null | null | null | src/kernel/Utils/Semaphore.cpp | honzikv/OSSem | 07b9740a81ebd812a74309b96e41361cc56945a7 | [
"MIT"
] | null | null | null | #include "Semaphore.h"
#include "Logging.h"
void Semaphore::Acquire() {
auto lock = std::unique_lock(mutex);
while (count == 0) {
condition_variable.wait(lock);
}
count -= 1;
}
void Semaphore::Release() {
auto lock = std::scoped_lock(mutex);
count += 1;
condition_variable.notify_one();
}
Semaphore::Semapho... | 18 | 57 | 0.686111 | honzikv |
31e0f43fbd289eddd1b540ac920358d894a23d11 | 639 | hpp | C++ | include/lograffe/writers/ostream_writer_owning.hpp | KiNgMaR/lograffe | 64f607408ea308e32d8cbbd4644b9d77f84d9ca7 | [
"BSL-1.0"
] | 4 | 2018-04-03T01:44:42.000Z | 2020-05-26T01:54:55.000Z | include/lograffe/writers/ostream_writer_owning.hpp | KiNgMaR/lograffe | 64f607408ea308e32d8cbbd4644b9d77f84d9ca7 | [
"BSL-1.0"
] | null | null | null | include/lograffe/writers/ostream_writer_owning.hpp | KiNgMaR/lograffe | 64f607408ea308e32d8cbbd4644b9d77f84d9ca7 | [
"BSL-1.0"
] | 1 | 2020-05-19T08:27:39.000Z | 2020-05-19T08:27:39.000Z | //
// lograffe logging library.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once
#include <lograffe/writer.hpp>
#include <string>
namespace lograffe
{
namespace writers
{
template<class Stream>
... | 15.975 | 79 | 0.70892 | KiNgMaR |
31e5943634fe907226ad7a1017d23b991eb47ad7 | 6,436 | hpp | C++ | src/service/broker/Handlers.hpp | jpherbst/qot-stack | 19ffb67eb12a5118df79a7daa58bd0f4d01fea2d | [
"Unlicense"
] | null | null | null | src/service/broker/Handlers.hpp | jpherbst/qot-stack | 19ffb67eb12a5118df79a7daa58bd0f4d01fea2d | [
"Unlicense"
] | null | null | null | src/service/broker/Handlers.hpp | jpherbst/qot-stack | 19ffb67eb12a5118df79a7daa58bd0f4d01fea2d | [
"Unlicense"
] | null | null | null | /*
* @file Handlers.hpp
* @brief Broker Management Callback Handlers Header
* @author Sandeep D'souza
*
* Copyright (c) Carnegie Mellon University, 2018. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following condit... | 39.006061 | 139 | 0.699658 | jpherbst |
31e5c48b01fc06b6049aa458547ce03512a01672 | 7,486 | cc | C++ | zircon/system/ulib/fidl/llcpp_message.cc | csrpi/fuchsia | 2f015594dcb4c13aa51eee305ad561078f1f9b7f | [
"BSD-2-Clause"
] | null | null | null | zircon/system/ulib/fidl/llcpp_message.cc | csrpi/fuchsia | 2f015594dcb4c13aa51eee305ad561078f1f9b7f | [
"BSD-2-Clause"
] | null | null | null | zircon/system/ulib/fidl/llcpp_message.cc | csrpi/fuchsia | 2f015594dcb4c13aa51eee305ad561078f1f9b7f | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2018 The Fuchsia 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 <lib/fidl/coding.h>
#include <lib/fidl/internal.h>
#include <lib/fidl/llcpp/coding.h>
#include <lib/fidl/llcpp/errors.h>
#include <lib/fidl/llcpp/... | 35.478673 | 100 | 0.678867 | csrpi |
31e771c29d6842e4afaae7a10e0c0884ecc92814 | 14,995 | cpp | C++ | thermal_annealing.cpp | hotzevzl/marxan | 23ba3a0ada90e721c745b922363458bece3477dc | [
"MIT"
] | 5 | 2021-02-16T07:50:47.000Z | 2021-09-14T00:17:13.000Z | thermal_annealing.cpp | hotzevzl/marxan | 23ba3a0ada90e721c745b922363458bece3477dc | [
"MIT"
] | 7 | 2021-02-17T00:03:09.000Z | 2021-10-05T14:46:22.000Z | thermal_annealing.cpp | hotzevzl/marxan | 23ba3a0ada90e721c745b922363458bece3477dc | [
"MIT"
] | 2 | 2020-10-02T18:08:17.000Z | 2021-06-18T09:03:01.000Z |
#include <algorithm>
#include <chrono>
#include <ctime>
#include <cfloat>
#include <iostream>
#include <omp.h>
#include <chrono>
// load the required function definition modules
#include "defines.hpp"
#include "utils.hpp"
#include "algorithms.hpp"
#include "computation.hpp"
#include "clumping.hpp"
#include "anneal.h... | 41.768802 | 190 | 0.574125 | hotzevzl |
31e82c93c92006a2b9df9eb9200074ba2bdc5739 | 1,623 | cpp | C++ | src/common/error.cpp | qingnia/Pebbble | 8f8ea5f24565f3e6c5e488597131eba9bdbf7d31 | [
"BSD-2-Clause"
] | 841 | 2016-11-11T21:44:15.000Z | 2022-03-13T09:00:56.000Z | src/common/error.cpp | qingnia/Pebbble | 8f8ea5f24565f3e6c5e488597131eba9bdbf7d31 | [
"BSD-2-Clause"
] | 21 | 2016-11-17T04:24:06.000Z | 2019-04-11T09:36:52.000Z | src/common/error.cpp | qingnia/Pebbble | 8f8ea5f24565f3e6c5e488597131eba9bdbf7d31 | [
"BSD-2-Clause"
] | 343 | 2016-11-11T11:06:19.000Z | 2022-03-21T09:07:45.000Z | /*
* Tencent is pleased to support the open source community by making Pebble available.
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
* 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 Lic... | 30.622642 | 100 | 0.713494 | qingnia |
31e8ca4c12af07df951016cdce881686496c0c0b | 7,445 | cpp | C++ | source/syscall36.cpp | twinaphex/multiman-slim | ca165be2924304b2d786a81a9bc7d4901afb35bd | [
"MIT"
] | 9 | 2015-06-24T08:38:26.000Z | 2021-06-15T19:54:20.000Z | source/syscall36.cpp | ysei/multiman-slim | ca165be2924304b2d786a81a9bc7d4901afb35bd | [
"MIT"
] | null | null | null | source/syscall36.cpp | ysei/multiman-slim | ca165be2924304b2d786a81a9bc7d4901afb35bd | [
"MIT"
] | 123 | 2017-08-26T19:21:03.000Z | 2022-03-31T15:27:13.000Z | #include "common.h"
#include "peek_poke.h"
#include "hvcall.h"
#include "mm.h"
#include <string.h>
#include "lv2.h"
u64 mmap_lpar_addr;
extern unsigned char bdemu[0x1380];
extern u8 ss_patched;
extern float c_firmware;
int map_lv1()
{
int result = lv1_undocumented_function_114(HV_START_OFFSET, HV_PAGE_SIZE, HV_SIZE, ... | 30.512295 | 124 | 0.704768 | twinaphex |
31ecd47252364f5003c8df30b13112c18b268e51 | 2,837 | cpp | C++ | src/libs/FileSystemOperations/FileSystemOperations.cpp | Daniel-Boll/just-fast | a45c4b22553ab00a7f918bd93ec73373185ef1c2 | [
"MIT"
] | 19 | 2020-05-01T16:08:34.000Z | 2022-03-22T09:14:10.000Z | src/libs/FileSystemOperations/FileSystemOperations.cpp | Daniel-Boll/just-fast | a45c4b22553ab00a7f918bd93ec73373185ef1c2 | [
"MIT"
] | 10 | 2020-05-01T17:08:27.000Z | 2021-11-23T10:24:59.000Z | src/libs/FileSystemOperations/FileSystemOperations.cpp | Daniel-Boll/just-fast | a45c4b22553ab00a7f918bd93ec73373185ef1c2 | [
"MIT"
] | 6 | 2020-04-26T10:11:09.000Z | 2022-02-04T10:12:13.000Z | #include "FileSystemOperations.h"
#include <algorithm>
void FileSystemOperations::setSelectedFiles(const std::vector<std::filesystem::path>& sFiles)
{
selectedFiles = sFiles;
}
void FileSystemOperations::appendSelectedFiles(const std::filesystem::path& fileToAppand)
{
//I hate that.
auto it = std::find(se... | 26.514019 | 161 | 0.597815 | Daniel-Boll |
31ee46a59f8c534104010427064bada35cd7f999 | 83 | hpp | C++ | include/core/MouseCodes.hpp | dknb0709/MandelbrotExploler | 5df64d0ac4d63712c2321e41aafdb07c72156c67 | [
"MIT"
] | null | null | null | include/core/MouseCodes.hpp | dknb0709/MandelbrotExploler | 5df64d0ac4d63712c2321e41aafdb07c72156c67 | [
"MIT"
] | null | null | null | include/core/MouseCodes.hpp | dknb0709/MandelbrotExploler | 5df64d0ac4d63712c2321e41aafdb07c72156c67 | [
"MIT"
] | null | null | null | #pragma once
enum class MouseCodes { None = 0, Left = 1, Middle = 2, Right = 3 };
| 20.75 | 68 | 0.626506 | dknb0709 |
31eff216ce8b8de7668d4338a39a497f640d7e80 | 739 | hpp | C++ | Programming Guide/Headers/Siv3D/DynamicMesh.hpp | Reputeless/Siv3D-Reference | d58e92885241d11612007fb9187ce0289a7ee9cb | [
"MIT"
] | 38 | 2016-01-14T13:51:13.000Z | 2021-12-29T01:49:30.000Z | Programming Guide/Headers/Siv3D/DynamicMesh.hpp | Reputeless/Siv3D-Reference | d58e92885241d11612007fb9187ce0289a7ee9cb | [
"MIT"
] | null | null | null | Programming Guide/Headers/Siv3D/DynamicMesh.hpp | Reputeless/Siv3D-Reference | d58e92885241d11612007fb9187ce0289a7ee9cb | [
"MIT"
] | 16 | 2016-01-15T11:07:51.000Z | 2021-12-29T01:49:37.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (C) 2008-2016 Ryo Suzuki
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include "Fwd.hpp"
# include "Array.hpp"
# include "Mesh.hpp"
namespace s3d... | 18.475 | 58 | 0.596752 | Reputeless |
31f1fcdfbbf8cb0f3bf699315b06cd48be7dd50f | 2,688 | hpp | C++ | include/toy/io/Stream.hpp | ToyAuthor/ToyBoxNote | accc792f5ab2fa8911dc1a70ffbfc6dfd02db9a6 | [
"Unlicense"
] | null | null | null | include/toy/io/Stream.hpp | ToyAuthor/ToyBoxNote | accc792f5ab2fa8911dc1a70ffbfc6dfd02db9a6 | [
"Unlicense"
] | null | null | null | include/toy/io/Stream.hpp | ToyAuthor/ToyBoxNote | accc792f5ab2fa8911dc1a70ffbfc6dfd02db9a6 | [
"Unlicense"
] | null | null | null |
#pragma once
#include "toy/Environment.hpp"
#include "toy/Mark.hpp"
#include "toy/Log.hpp"
#ifdef TOY_WINDOWS
#include <wchar.h>
#include "toy/Utf.hpp"
#endif
namespace toy{
namespace io{
// A wrapper of <stdio.h> and supporting utf-8 encoding.
class Stream
{
public:
Stream()
{
;
}
Stream(std::stri... | 14.52973 | 58 | 0.574777 | ToyAuthor |
31fc7f9e9f764e180d8221f7fa928b3c148a8da9 | 52,542 | cc | C++ | ev/external/googleapis/home/ubuntu/saaras-io/falcon/build/external/googleapis/google/appengine/v1/application.pb.cc | sergiorr/yastack | 17cdc12a52ea5869f429aa8ec421c3d1d25b32e7 | [
"Apache-2.0"
] | 91 | 2018-11-24T05:33:58.000Z | 2022-03-16T05:58:05.000Z | ev/external/googleapis/home/ubuntu/saaras-io/falcon/build/external/googleapis/google/appengine/v1/application.pb.cc | sergiorr/yastack | 17cdc12a52ea5869f429aa8ec421c3d1d25b32e7 | [
"Apache-2.0"
] | 11 | 2019-06-02T23:50:17.000Z | 2022-02-04T23:58:56.000Z | ev/external/googleapis/home/ubuntu/saaras-io/falcon/build/external/googleapis/google/appengine/v1/application.pb.cc | sergiorr/yastack | 17cdc12a52ea5869f429aa8ec421c3d1d25b32e7 | [
"Apache-2.0"
] | 18 | 2018-11-24T10:35:29.000Z | 2021-04-22T07:22:10.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/appengine/v1/application.proto
#include "google/appengine/v1/application.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stubs/once.h>
#include <google/... | 41.966454 | 168 | 0.709471 | sergiorr |
ee0e63093e88aa86cafbef9e7f32a664b29edbb8 | 5,898 | hpp | C++ | test/test_vector/intf_xcpool_t/_xcpool_ts_api_s.hpp | skrzj-dev/libxccc | 621ce71dcc0ad8fb7a13460aeb3dc250188fb5d2 | [
"MIT"
] | null | null | null | test/test_vector/intf_xcpool_t/_xcpool_ts_api_s.hpp | skrzj-dev/libxccc | 621ce71dcc0ad8fb7a13460aeb3dc250188fb5d2 | [
"MIT"
] | 10 | 2020-02-19T19:41:48.000Z | 2020-03-08T22:08:35.000Z | test/test_vector/intf_xcpool_t/_xcpool_ts_api_s.hpp | skrzj-dev/libxccc | 621ce71dcc0ad8fb7a13460aeb3dc250188fb5d2 | [
"MIT"
] | null | null | null | /*
* Copyright block:
*
* Source file of libxccc project
*
* Copyright (c) 2019 Jakub Skrzyniarz, skrzj-dev@protonmail.com
*
* Licensed under: MIT license; See the file "LICENSE" of libxccc project for more information.
*
* Copyright block: end
*/
#ifndef _XCC_TEST_TPL_VECTOR_API_CPOOL_TS_HPP_
#define _XCC_T... | 19.99322 | 118 | 0.701594 | skrzj-dev |
ee11113d37ebb8c01500c4fd2fe81a9bd2733b8e | 969 | cpp | C++ | Geek_society_activity/Course_content/code/20211217/abprime.cpp | zeerre/NOIP | e7962ec1f7e379d205a962858e15a82f7850f92f | [
"Apache-2.0"
] | 7 | 2022-01-09T12:04:38.000Z | 2022-03-21T04:40:04.000Z | Geek_society_activity/Course_content/code/20211217/abprime.cpp | TuratinZhii/NOIP | 29b8f169146f93fc2c1b3eaad0a5291d1ddb84af | [
"Apache-2.0"
] | 4 | 2022-01-05T12:38:40.000Z | 2022-03-28T19:08:59.000Z | Geek_society_activity/Course_content/code/20211217/abprime.cpp | TuratinZhii/NOIP | 29b8f169146f93fc2c1b3eaad0a5291d1ddb84af | [
"Apache-2.0"
] | 13 | 2021-10-19T05:21:38.000Z | 2022-03-20T14:59:29.000Z | //*************************************************************************
//* File Name: abprime.cpp
//* Author:GeekBear
//* Mail:zeerre98988@gmail.com
//* Created And Modified Time: ====2021-12-17 19-10-03====
//*************************************************************************
#include <iostream>
#include... | 20.617021 | 75 | 0.378741 | zeerre |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.