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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f62d44c9ae61529633378a66943811cb0edbad84 | 1,239 | cpp | C++ | Sources/common/erm/rendering/data_structs/RenderConfigs.cpp | JALB91/ERM | 5d2c56db6330efc7d662c24796fdc49e43d26e40 | [
"MIT"
] | 5 | 2019-02-26T18:46:52.000Z | 2022-01-27T23:48:26.000Z | Sources/common/erm/rendering/data_structs/RenderConfigs.cpp | JALB91/ERM | 5d2c56db6330efc7d662c24796fdc49e43d26e40 | [
"MIT"
] | 1 | 2020-06-07T23:44:29.000Z | 2021-04-03T18:49:54.000Z | Sources/common/erm/rendering/data_structs/RenderConfigs.cpp | JALB91/ERM | 5d2c56db6330efc7d662c24796fdc49e43d26e40 | [
"MIT"
] | null | null | null | #include "erm/rendering/data_structs/RenderConfigs.h"
namespace erm {
const RenderConfigs RenderConfigs::DEFAULT_RENDER_CONFIGS {
SubpassData {
AttachmentData(
AttachmentLoadOp::CLEAR,
AttachmentStoreOp::STORE,
ImageLayout::UNDEFINED,
#ifdef ERM_RAY_TRACING_ENABLED
ImageLayout::GENERAL
#else
ImageLa... | 21.736842 | 81 | 0.786118 | JALB91 |
f62dbe57b051d83e747c9fba74632255747eb9a1 | 1,045 | cpp | C++ | Bit Manipulation/AND Product.cpp | StavrosChryselis/hackerrank | 42a3e393231e237a99a9e54522ce3ec954bf614f | [
"MIT"
] | null | null | null | Bit Manipulation/AND Product.cpp | StavrosChryselis/hackerrank | 42a3e393231e237a99a9e54522ce3ec954bf614f | [
"MIT"
] | null | null | null | Bit Manipulation/AND Product.cpp | StavrosChryselis/hackerrank | 42a3e393231e237a99a9e54522ce3ec954bf614f | [
"MIT"
] | null | null | null | /*
****************************************************************
****************************************************************
-> Coded by Stavros Chryselis
-> Visit my github for more solved problems over multiple sites
-> https://github.com/StavrosChryselis
-> Feel free to email me at stavrikios@gm... | 20.490196 | 64 | 0.378947 | StavrosChryselis |
f6301d5a4bed812c45991e5f220e2e92de000a7d | 1,663 | cpp | C++ | modules/params-triangle/test/test_params_triangle.cpp | gurylev-nikita/devtools-course-practice | bab6ba4e39f04940e27c9ac148505eb152c05d17 | [
"CC-BY-4.0"
] | null | null | null | modules/params-triangle/test/test_params_triangle.cpp | gurylev-nikita/devtools-course-practice | bab6ba4e39f04940e27c9ac148505eb152c05d17 | [
"CC-BY-4.0"
] | 3 | 2021-04-22T17:12:19.000Z | 2021-05-14T12:16:25.000Z | modules/params-triangle/test/test_params_triangle.cpp | taktaev-artyom/devtools-course-practice | 7cf19defe061c07cfb3ebb71579456e807430a5d | [
"CC-BY-4.0"
] | null | null | null | // Copyright 2021 Paranicheva Alyona
#include <gtest/gtest.h>
#include <cmath>
#include <iostream>
#include <utility>
#include "include/triangle.h"
TEST(Params_Triangle, Create_Triangle) {
std::pair<double, double> a(2.5, 0);
std::pair<double, double> b(0, 4.5);
std::pair<double, double> c(-1.5, 0);... | 26.396825 | 44 | 0.622971 | gurylev-nikita |
f63098e2ca87affc55081c3ae5b7011a1cf55a89 | 4,490 | cpp | C++ | HN_Path/HN_File.cpp | Jusdetalent/JT_Utility | 2dec8ff0e8a0263a589f0829d63cf01dcae46d79 | [
"MIT"
] | null | null | null | HN_Path/HN_File.cpp | Jusdetalent/JT_Utility | 2dec8ff0e8a0263a589f0829d63cf01dcae46d79 | [
"MIT"
] | null | null | null | HN_Path/HN_File.cpp | Jusdetalent/JT_Utility | 2dec8ff0e8a0263a589f0829d63cf01dcae46d79 | [
"MIT"
] | null | null | null | /*
* File source file
* By Henock @ Comedac
* 07/ 12/ 2016 :: 13:03
*/
#include "HN_File.hpp"
#include <cstring>
#include <cstdio>
#include <sys/stat.h>
using namespace hnapi::path;
// Static methods
bool hnapi::path::isFileExist(std::string &dirname)
{
// Obtain file statistics
st... | 20.883721 | 64 | 0.493318 | Jusdetalent |
f633bdf452f5afce93e3917645b0fcd09d5dde6d | 520 | cpp | C++ | project/src/Database.cpp | rushingvise/sqleicht | c9277896aceea60b5adddac61290034d547ab972 | [
"MIT"
] | null | null | null | project/src/Database.cpp | rushingvise/sqleicht | c9277896aceea60b5adddac61290034d547ab972 | [
"MIT"
] | null | null | null | project/src/Database.cpp | rushingvise/sqleicht | c9277896aceea60b5adddac61290034d547ab972 | [
"MIT"
] | null | null | null | #include "Database.h"
#include "Error.h"
using namespace sqleicht;
Database::Database(const std::string& filename, const Mode& mode) {
int rc = sqlite3_open_v2(filename.c_str(), &m_db, static_cast<int>(mode), nullptr);
if (Error::has_occurred(rc, m_db)) {
// Failure!
sqlite3_close(m_db);
... | 20.8 | 87 | 0.615385 | rushingvise |
f6341801ae9d29d0e6d9cc0f105e1878ad239e9f | 9,079 | cpp | C++ | oaz/neural_network/nn_evaluator.cpp | ameroueh/oaz | 7cf192b02adaa373b7b93bedae3ef67886ea53af | [
"MIT"
] | 8 | 2021-03-18T16:06:42.000Z | 2022-03-09T10:42:44.000Z | oaz/neural_network/nn_evaluator.cpp | ameroueh/oaz | 7cf192b02adaa373b7b93bedae3ef67886ea53af | [
"MIT"
] | null | null | null | oaz/neural_network/nn_evaluator.cpp | ameroueh/oaz | 7cf192b02adaa373b7b93bedae3ef67886ea53af | [
"MIT"
] | null | null | null | #include "oaz/neural_network/nn_evaluator.hpp"
#include <stdint.h>
#include <functional>
#include <future>
#include <iostream>
#include <memory>
#include <queue>
#include <string>
#include <thread>
#include <utility>
#include "boost/multi_array.hpp"
#include "oaz/utils/time.hpp"
#include "tensorflow/core/framework/t... | 30.672297 | 79 | 0.677498 | ameroueh |
f635d45278e501fdec73c98f216e76c01eda55b0 | 564 | cc | C++ | code/foundation/math/xnamath/xna_plane.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 67 | 2015-03-30T19:56:16.000Z | 2022-03-11T13:52:17.000Z | code/foundation/math/xnamath/xna_plane.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 5 | 2015-04-15T17:17:33.000Z | 2016-02-11T00:40:17.000Z | code/foundation/math/xnamath/xna_plane.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 34 | 2015-03-30T15:08:00.000Z | 2021-09-23T05:55:10.000Z | //------------------------------------------------------------------------------
// plane.cc
// (C) 2007 Radon Labs GmbH
// (C) 2013-2014 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "math/plane.h"
#include "ma... | 25.636364 | 80 | 0.390071 | gscept |
f6360a9405234cc744e6a1e93bd3f75e5f6d1266 | 1,743 | cc | C++ | src/document_fragment.cc | knocknote/libhtml5 | 46e18a9122097b4d681c91f0747aa78a20611cab | [
"MIT"
] | 7 | 2019-08-29T05:22:05.000Z | 2020-07-07T15:35:50.000Z | src/document_fragment.cc | blastrain/libhtml5 | 46e18a9122097b4d681c91f0747aa78a20611cab | [
"MIT"
] | 3 | 2019-07-12T09:43:31.000Z | 2019-09-10T03:36:45.000Z | src/document_fragment.cc | blastrain/libhtml5 | 46e18a9122097b4d681c91f0747aa78a20611cab | [
"MIT"
] | 3 | 2019-10-25T05:35:30.000Z | 2020-07-21T21:40:52.000Z | #include "element.h"
#include "node_list.h"
#include "html_collection.h"
#include "document_fragment.h"
USING_NAMESPACE_HTML5;
DocumentFragment::DocumentFragment(emscripten::val v) :
Node(v)
{
}
DocumentFragment::~DocumentFragment()
{
}
DocumentFragment *DocumentFragment::create(emscripten::val v)
{
auto ... | 25.26087 | 85 | 0.751004 | knocknote |
f63653480e4f570d7a3274c77308b46d5f20756a | 66 | cpp | C++ | Src/AppsDev/Logger/logger.cpp | zc110747/embed_manage_system | f7ec87277405ac380d5d5cb3e20240afcd505740 | [
"MIT"
] | null | null | null | Src/AppsDev/Logger/logger.cpp | zc110747/embed_manage_system | f7ec87277405ac380d5d5cb3e20240afcd505740 | [
"MIT"
] | null | null | null | Src/AppsDev/Logger/logger.cpp | zc110747/embed_manage_system | f7ec87277405ac380d5d5cb3e20240afcd505740 | [
"MIT"
] | null | null | null | /*
* logger.cpp
*
* Created on: 2021 Dec 11 15:08:05
*/
| 11 | 37 | 0.5 | zc110747 |
f636a43d1f6a3a83f344ac571b6f2310aa1df6b2 | 1,336 | cpp | C++ | test/containers/sequences/list/list.cons/size_type.pass.cpp | caiohamamura/libcxx | 27c836ff3a9c505deb9fd1616012924de8ff9279 | [
"MIT"
] | 187 | 2015-02-28T11:50:45.000Z | 2022-02-20T12:51:00.000Z | test/containers/sequences/list/list.cons/size_type.pass.cpp | caiohamamura/libcxx | 27c836ff3a9c505deb9fd1616012924de8ff9279 | [
"MIT"
] | 2 | 2019-06-24T20:44:59.000Z | 2020-06-17T18:41:35.000Z | test/containers/sequences/list/list.cons/size_type.pass.cpp | caiohamamura/libcxx | 27c836ff3a9c505deb9fd1616012924de8ff9279 | [
"MIT"
] | 80 | 2015-01-02T12:44:41.000Z | 2022-01-20T15:37:54.000Z | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | 26.196078 | 80 | 0.44985 | caiohamamura |
f636c7c1da27af93181463056702681022e30e6b | 2,706 | cpp | C++ | App/FeaturePyImp.cpp | haisenzhao/CarpentryCompiler | c9714310b7ce7523a25becd397265bfaa3ab7ea3 | [
"FSFAP"
] | 21 | 2019-12-06T09:57:10.000Z | 2021-09-22T12:58:09.000Z | App/FeaturePyImp.cpp | haisenzhao/CarpentryCompiler | c9714310b7ce7523a25becd397265bfaa3ab7ea3 | [
"FSFAP"
] | null | null | null | App/FeaturePyImp.cpp | haisenzhao/CarpentryCompiler | c9714310b7ce7523a25becd397265bfaa3ab7ea3 | [
"FSFAP"
] | 5 | 2020-11-18T00:09:30.000Z | 2021-01-13T04:40:47.000Z | /***************************************************************************
* Copyright (c) 2007 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* ... | 38.657143 | 77 | 0.521064 | haisenzhao |
f638fa884ac0053430cba885932438be5e714864 | 4,639 | cpp | C++ | avogadro/qtgui/elementdetail_p.cpp | berquist/avogadrolibs | e169315d8f9527d6b8bee1b7426eabb8a188073b | [
"BSD-3-Clause"
] | 244 | 2015-09-09T15:08:54.000Z | 2022-03-30T17:44:21.000Z | avogadro/qtgui/elementdetail_p.cpp | berquist/avogadrolibs | e169315d8f9527d6b8bee1b7426eabb8a188073b | [
"BSD-3-Clause"
] | 670 | 2015-05-08T18:59:38.000Z | 2022-03-29T19:47:08.000Z | avogadro/qtgui/elementdetail_p.cpp | berquist/avogadrolibs | e169315d8f9527d6b8bee1b7426eabb8a188073b | [
"BSD-3-Clause"
] | 129 | 2015-01-28T01:18:36.000Z | 2022-03-17T08:50:25.000Z | /******************************************************************************
This source file is part of the Avogadro project.
Copyright 2007-2009 by Marcus D. Hanwell
Copyright 2012 Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law... | 32.215278 | 80 | 0.660703 | berquist |
f639c0e1f43704acdb6e3a958d76153e65bb75f1 | 9,350 | cpp | C++ | src/clientcommands.cpp | burnedram/csgo-plugin-color-say | 64adc99eefa5edfd44c0716e3b0c0d5983a99ee8 | [
"MIT"
] | 5 | 2017-10-17T03:26:24.000Z | 2021-07-08T23:24:05.000Z | src/clientcommands.cpp | burnedram/csgo-plugin-color-say | 64adc99eefa5edfd44c0716e3b0c0d5983a99ee8 | [
"MIT"
] | 1 | 2016-10-29T12:59:12.000Z | 2017-04-23T18:45:07.000Z | src/clientcommands.cpp | burnedram/csgo-plugin-color-say | 64adc99eefa5edfd44c0716e3b0c0d5983a99ee8 | [
"MIT"
] | 5 | 2016-09-15T10:11:55.000Z | 2022-02-15T16:58:25.000Z | #include "clientcommands.h"
#include "globals.h"
#include "constants.h"
#include "chatcolor.h"
#include "chat.h"
#include "console.h"
#include <unordered_map>
#include <sstream>
#include <algorithm>
using namespace std;
namespace colorsay {
namespace clientcommands {
static unordered_map<string, ColorCo... | 34.249084 | 122 | 0.529198 | burnedram |
f63c529032238e129a5b3387c630e3340c75bc34 | 20,050 | hpp | C++ | externals/kokkos/core/src/impl/Kokkos_SimpleTaskScheduler.hpp | liranpeng/E3SM-2CRM | a15f0430555f4da7cd7189e8513c48fb6d896f3c | [
"zlib-acknowledgement",
"FTL",
"RSA-MD"
] | null | null | null | externals/kokkos/core/src/impl/Kokkos_SimpleTaskScheduler.hpp | liranpeng/E3SM-2CRM | a15f0430555f4da7cd7189e8513c48fb6d896f3c | [
"zlib-acknowledgement",
"FTL",
"RSA-MD"
] | null | null | null | externals/kokkos/core/src/impl/Kokkos_SimpleTaskScheduler.hpp | liranpeng/E3SM-2CRM | a15f0430555f4da7cd7189e8513c48fb6d896f3c | [
"zlib-acknowledgement",
"FTL",
"RSA-MD"
] | null | null | null | /*
//@HEADER
// ************************************************************************
//
// Kokkos v. 2.0
// Copyright (2014) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain rights in this softw... | 32.601626 | 126 | 0.701696 | liranpeng |
f63e7a16af6aac1e453b3f06341326570eee555b | 400 | cpp | C++ | Source/NetPhysSync/Private/NPSPrediction/FBufferInfo.cpp | i3oi3o/NetPhysSync | 267d1858d2f960933a699e725c14d8a4b4713f96 | [
"BSD-3-Clause"
] | 1 | 2018-09-22T20:35:49.000Z | 2018-09-22T20:35:49.000Z | Source/NetPhysSync/Private/NPSPrediction/FBufferInfo.cpp | i3oi3o/NetPhysSync | 267d1858d2f960933a699e725c14d8a4b4713f96 | [
"BSD-3-Clause"
] | null | null | null | Source/NetPhysSync/Private/NPSPrediction/FBufferInfo.cpp | i3oi3o/NetPhysSync | 267d1858d2f960933a699e725c14d8a4b4713f96 | [
"BSD-3-Clause"
] | 1 | 2019-04-17T05:37:51.000Z | 2019-04-17T05:37:51.000Z | // This is licensed under the BSD License 2.0 found in the LICENSE file in project's root directory.
#include "FBufferInfo.h"
FBufferInfo::FBufferInfo(uint32 BufferStartTickIndexParam, int32 BufferNumParam)
: BufferStartTickIndex(BufferStartTickIndexParam)
, BufferNum(BufferNumParam)
, BufferLastTickIndex(Buffer... | 22.222222 | 100 | 0.795 | i3oi3o |
f641c1cbefc7cb47cc8fb566c0540e14efaffc07 | 6,495 | hh | C++ | src/cxx/include/data/FileReader.hh | sbooeshaghi/bcl2fastq | 3f39a24cd743fa71fba9b7dcf62e5d33cea8272d | [
"BSD-3-Clause"
] | 5 | 2021-06-07T12:36:11.000Z | 2022-02-08T09:49:02.000Z | src/cxx/include/data/FileReader.hh | sbooeshaghi/bcl2fastq | 3f39a24cd743fa71fba9b7dcf62e5d33cea8272d | [
"BSD-3-Clause"
] | 1 | 2022-03-01T23:55:57.000Z | 2022-03-01T23:57:15.000Z | src/cxx/include/data/FileReader.hh | sbooeshaghi/bcl2fastq | 3f39a24cd743fa71fba9b7dcf62e5d33cea8272d | [
"BSD-3-Clause"
] | null | null | null | /**
* BCL to FASTQ file converter
* Copyright (c) 2007-2017 Illumina, Inc.
*
* This software is covered by the accompanying EULA
* and certain third party copyright/licenses, and any user of this
* source file is bound by the terms therein.
*
* \file FileReader.hh
*
* \brief Declaration of FileReader file.
*... | 33.828125 | 98 | 0.668668 | sbooeshaghi |
f6432f00dd84fdc63c993624b4fb8ae89272e701 | 3,274 | hpp | C++ | Firmware/Drivers/STM32/stm32_timer.hpp | deafloo/ODrive | bae459bb71b39c0169f4b8a322b7371eada58112 | [
"MIT"
] | 1,068 | 2016-05-31T22:39:08.000Z | 2020-12-20T22:13:01.000Z | Firmware/Drivers/STM32/stm32_timer.hpp | deafloo/ODrive | bae459bb71b39c0169f4b8a322b7371eada58112 | [
"MIT"
] | 389 | 2017-10-16T09:44:20.000Z | 2020-12-21T14:19:38.000Z | Firmware/Drivers/STM32/stm32_timer.hpp | deafloo/ODrive | bae459bb71b39c0169f4b8a322b7371eada58112 | [
"MIT"
] | 681 | 2016-06-12T01:41:00.000Z | 2020-12-21T12:49:32.000Z | #ifndef __STM32_TIMER_HPP
#define __STM32_TIMER_HPP
#include "stm32_system.h"
#include <tim.h>
#include <array>
class Stm32Timer {
public:
/**
* @brief Starts multiple timers deterministically and synchronously from the
* specified offset.
*
* All timers are atomically (*) put into the follow... | 39.445783 | 144 | 0.635919 | deafloo |
f64495f89a4b93117e666c31a395d42bcfa79438 | 490 | hpp | C++ | addons/#disabled/TBMod_liveMonitor/configs/CfgFunctions.hpp | Braincrushy/TBMod | 785f11cd9cd0defb0d01a6d2861beb6c207eb8a3 | [
"MIT"
] | null | null | null | addons/#disabled/TBMod_liveMonitor/configs/CfgFunctions.hpp | Braincrushy/TBMod | 785f11cd9cd0defb0d01a6d2861beb6c207eb8a3 | [
"MIT"
] | 4 | 2018-12-21T06:57:25.000Z | 2020-07-09T09:06:38.000Z | addons/#disabled/TBMod_liveMonitor/configs/CfgFunctions.hpp | Braincrushy/TBMod | 785f11cd9cd0defb0d01a6d2861beb6c207eb8a3 | [
"MIT"
] | null | null | null | /*
Part of the TBMod ( https://github.com/TacticalBaconDevs/TBMod )
Developed by http://tacticalbacon.de
Author: Chris 'Taranis'
*/
class CfgFunctions
{
class TBMod_liveMonitor
{
tag = "TB_liveMonitor";
class functions
{
file = "\TBMod_liveMonitor\functions";
... | 19.6 | 68 | 0.526531 | Braincrushy |
f64649d1ef1b40f54a7f41d25fffb8f1fb893d42 | 47,431 | cpp | C++ | test/generated/grapheme_break_02.cpp | Ryan-rsm-McKenzie/text | 15aaea4297e00ec4c74295e7913ead79c90e1502 | [
"BSL-1.0"
] | 265 | 2017-07-09T23:23:48.000Z | 2022-03-24T10:14:19.000Z | test/generated/grapheme_break_02.cpp | Ryan-rsm-McKenzie/text | 15aaea4297e00ec4c74295e7913ead79c90e1502 | [
"BSL-1.0"
] | 185 | 2017-08-30T16:44:51.000Z | 2021-08-13T12:02:46.000Z | test/generated/grapheme_break_02.cpp | Ryan-rsm-McKenzie/text | 15aaea4297e00ec4c74295e7913ead79c90e1502 | [
"BSL-1.0"
] | 25 | 2017-08-29T23:07:23.000Z | 2021-09-03T06:31:29.000Z | // Copyright (C) 2020 T. Zachary Laine
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// Warning! This file is autogenerated.
#include <boost/text/grapheme_break.hpp>
#include <gtest/gtest.h>
#include <alg... | 66.059889 | 148 | 0.593683 | Ryan-rsm-McKenzie |
f646c7099880bfe83fc9cae96c511f414d38634a | 15,397 | hpp | C++ | p1788/flavor/infsup/setbased/mpfr_bin_ieee754_flavor_class_impl.hpp | nehmeier/libieeep1788 | 1f10b896ff532e95818856614ab3073189e81199 | [
"Apache-2.0"
] | 41 | 2015-01-23T07:52:27.000Z | 2022-02-28T03:15:21.000Z | p1788/flavor/infsup/setbased/mpfr_bin_ieee754_flavor_class_impl.hpp | nehmeier/libieeep1788 | 1f10b896ff532e95818856614ab3073189e81199 | [
"Apache-2.0"
] | 25 | 2015-01-25T16:13:35.000Z | 2022-02-14T12:05:08.000Z | p1788/flavor/infsup/setbased/mpfr_bin_ieee754_flavor_class_impl.hpp | nehmeier/libieeep1788 | 1f10b896ff532e95818856614ab3073189e81199 | [
"Apache-2.0"
] | 8 | 2015-02-22T11:06:19.000Z | 2021-05-23T09:57:32.000Z | //
// libieeep1788
//
// An implementation of the preliminary IEEE P1788 standard for
// interval arithmetic
//
//
// Copyright 2013 - 2015
//
// Marco Nehmeier (nehmeier@informatik.uni-wuerzburg.de)
// Department of Computer Science,
// University of Wuerzburg, Germany
//
// ... | 29.216319 | 123 | 0.644541 | nehmeier |
f646dce818a2567323190f6ea2bc22130e46745a | 1,725 | cc | C++ | elements/standard/checkpaint.cc | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | 129 | 2015-10-08T14:38:35.000Z | 2022-03-06T14:54:44.000Z | elements/standard/checkpaint.cc | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | 241 | 2016-02-17T16:17:58.000Z | 2022-03-15T09:08:33.000Z | elements/standard/checkpaint.cc | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | 61 | 2015-12-17T01:46:58.000Z | 2022-02-07T22:25:19.000Z | /*
* checkpaint.{cc,hh} -- element checks paint annotation
* Eddie Kohler, Robert Morris
*
* Copyright (c) 1999-2000 Massachusetts Institute of Technology
* Copyright (c) 2008 Meraki, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated document... | 24.295775 | 78 | 0.708986 | MacWR |
f64881ce8abc7d77b304e8aecf57be400d1fe452 | 1,153 | cpp | C++ | Effective STL/estl-examples/26-1.cpp | goodspeed24e/Programming | ae73fad022396ea03105aad83293facaeea561ae | [
"MIT"
] | 1 | 2021-03-12T19:29:33.000Z | 2021-03-12T19:29:33.000Z | Effective STL/estl-examples/26-1.cpp | goodspeed24e/Programming | ae73fad022396ea03105aad83293facaeea561ae | [
"MIT"
] | 1 | 2019-03-13T01:36:12.000Z | 2019-03-13T01:36:12.000Z | Effective STL/estl-examples/26-1.cpp | goodspeed24e/Programming | ae73fad022396ea03105aad83293facaeea561ae | [
"MIT"
] | null | null | null | //
// Example from Item 26
//
#include <iostream>
#include <deque>
#include "ESTLUtil.h"
int data[] = { -30, 102, 55, -19, 0, 222, -3000, 4000, 8, -2 };
const int numValues = sizeof data / sizeof(int);
int main()
{
using namespace std;
using namespace ESTLUtils;
typedef deque<int> IntDeque; // STL containe... | 23.530612 | 74 | 0.619254 | goodspeed24e |
f648900f3836270aafc74e829eed9d3565b0677d | 860 | cpp | C++ | Ch 05/5.14.cpp | Felon03/CppPrimer | 7dc2daf59f0ae7ec5670def15cb5fab174fe9780 | [
"Apache-2.0"
] | null | null | null | Ch 05/5.14.cpp | Felon03/CppPrimer | 7dc2daf59f0ae7ec5670def15cb5fab174fe9780 | [
"Apache-2.0"
] | null | null | null | Ch 05/5.14.cpp | Felon03/CppPrimer | 7dc2daf59f0ae7ec5670def15cb5fab174fe9780 | [
"Apache-2.0"
] | null | null | null | /*编写一段程序,从标准输入中读取若干string对象并查找连续重复出现的单词。*/
#include<iostream>
#include<string>
#include<vector>
using namespace std;
int main()
{
vector<string> st;
string st1, prestr;
unsigned int wordCnt = 1;
bool flag = false;
while (cin >> st1)
{
st.push_back(st1);
}
auto beg = st.begin();
while (beg != st.end())
{
... | 16.538462 | 64 | 0.552326 | Felon03 |
f64a4a21f24b00080d2680d2251d39a4c4e14d67 | 598 | cpp | C++ | Classes/Log/AceLog.cpp | DahamChoi/cocos_mygui_debugSystem | f716d99b1babdc8dfe84535033505b936a84a055 | [
"MIT"
] | null | null | null | Classes/Log/AceLog.cpp | DahamChoi/cocos_mygui_debugSystem | f716d99b1babdc8dfe84535033505b936a84a055 | [
"MIT"
] | null | null | null | Classes/Log/AceLog.cpp | DahamChoi/cocos_mygui_debugSystem | f716d99b1babdc8dfe84535033505b936a84a055 | [
"MIT"
] | null | null | null | #include "AceLog.h"
#include "LogData.h"
#include <ctime>
USING_NS_ACE;
void AceLog::log(const std::string& msg, Type type)
{
AceLogPtr pAceLog = std::make_shared<AceLog>();
pAceLog->msg = msg;
pAceLog->type = type;
time_t curTime = std::time(NULL);
tm* pLocal = std::localtime(&curTime);
... | 23.92 | 131 | 0.632107 | DahamChoi |
f64a5d74e963d282e50760d08b52ab7373d7705e | 1,959 | cpp | C++ | ojcpp/leetcode/000/031_m_nextpermutation.cpp | softarts/oj | 2f51f360a7a6c49e865461755aec2f3a7e721b9e | [
"Apache-2.0"
] | 3 | 2019-05-04T03:26:02.000Z | 2019-08-29T01:20:44.000Z | ojcpp/leetcode/000/031_m_nextpermutation.cpp | softarts/oj | 2f51f360a7a6c49e865461755aec2f3a7e721b9e | [
"Apache-2.0"
] | null | null | null | ojcpp/leetcode/000/031_m_nextpermutation.cpp | softarts/oj | 2f51f360a7a6c49e865461755aec2f3a7e721b9e | [
"Apache-2.0"
] | null | null | null | //
// Created by rui.zhou on 2/20/2019.
//
/*
* Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.
If such arrangement is not possible, it must rearrange it as the lowest possible order (ie, sorted in ascending order).
The replacement must be in-plac... | 27.208333 | 119 | 0.60439 | softarts |
f64da81defb3c247ef8d238ae61e13665484af93 | 1,607 | cc | C++ | FTPD_cmd.cc | shuLhan/libvos | 831491b197fa8f267fd94966d406596896e6f25c | [
"BSD-3-Clause"
] | 1 | 2017-09-14T13:31:16.000Z | 2017-09-14T13:31:16.000Z | FTPD_cmd.cc | shuLhan/libvos | 831491b197fa8f267fd94966d406596896e6f25c | [
"BSD-3-Clause"
] | null | null | null | FTPD_cmd.cc | shuLhan/libvos | 831491b197fa8f267fd94966d406596896e6f25c | [
"BSD-3-Clause"
] | 5 | 2015-04-11T02:59:06.000Z | 2021-03-03T19:45:39.000Z | //
// Copyright 2009-2016 M. Shulhan (ms@kilabit.info). All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
#include "FTPD_cmd.hh"
namespace vos {
const char* FTPD_cmd::__cname = "FTPD_cmd";
FTPD_cmd::FTPD_cmd() :
_code(0)
, _name()
, _par... | 18.686047 | 73 | 0.6285 | shuLhan |
f650d145e363c90851335df1b00baa52aa0999bd | 1,622 | cpp | C++ | projects/generation/sculptor/source/sculptor/geometry/Edge.cpp | silentorb/mythic-cpp | 97319d158800d77e1a944c47c13523662bc07e08 | [
"MIT"
] | null | null | null | projects/generation/sculptor/source/sculptor/geometry/Edge.cpp | silentorb/mythic-cpp | 97319d158800d77e1a944c47c13523662bc07e08 | [
"MIT"
] | null | null | null | projects/generation/sculptor/source/sculptor/geometry/Edge.cpp | silentorb/mythic-cpp | 97319d158800d77e1a944c47c13523662bc07e08 | [
"MIT"
] | null | null | null | #include "sculptor/geometry.h"
namespace sculptor_old {
namespace geometry {
Edge::Edge(Vertex *first, Vertex *second) {
vertices[0] = first;
vertices[1] = second;
find_polygons();
first->edges.push_back(this);
second->edges.push_back(this);
}
}
void Edge::... | 25.34375 | 87 | 0.548705 | silentorb |
f651e7c2b998d73d94d9609835fcc40c7299cf37 | 1,556 | cpp | C++ | 6. Heaps/HeapSort.cpp | suraj0803/DSA | 6ea21e452d7662e2351ee2a7b0415722e1bbf094 | [
"MIT"
] | null | null | null | 6. Heaps/HeapSort.cpp | suraj0803/DSA | 6ea21e452d7662e2351ee2a7b0415722e1bbf094 | [
"MIT"
] | null | null | null | 6. Heaps/HeapSort.cpp | suraj0803/DSA | 6ea21e452d7662e2351ee2a7b0415722e1bbf094 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std;
void print(vector<int> v){
for(int x:v){
cout<<x<<" ";
}
cout<<endl;
}
bool minHeap = false;
bool compare(int a, int b){
if(minHeap){
return a<b;
}
else{
return a>b;
}
}
void h... | 18.093023 | 88 | 0.503856 | suraj0803 |
f654cefc5761d245701e3300ccf8a6ba5973615f | 3,990 | cpp | C++ | Source/ArgsPasserModule/Private/Views/SLauncherWidget.cpp | lpestl/ArgsPasser | e7dc26ccfccd160ca8ed2eee10633a89d88c066a | [
"MIT"
] | null | null | null | Source/ArgsPasserModule/Private/Views/SLauncherWidget.cpp | lpestl/ArgsPasser | e7dc26ccfccd160ca8ed2eee10633a89d88c066a | [
"MIT"
] | null | null | null | Source/ArgsPasserModule/Private/Views/SLauncherWidget.cpp | lpestl/ArgsPasser | e7dc26ccfccd160ca8ed2eee10633a89d88c066a | [
"MIT"
] | null | null | null | #include "SLauncherWidget.h"
#include "DesktopPlatform/Public/DesktopPlatformModule.h"
#include "DesktopPlatform/Public/IDesktopPlatform.h"
#include "Editor/MainFrame/Public/Interfaces/IMainFrameModule.h"
#define LOCTEXT_NAMESPACE "LauncherWidget"
void SLauncherWidget::Construct(const FArguments& InArgs)
{
ChildSl... | 27.328767 | 115 | 0.717043 | lpestl |
f65514fe24b9611de9c0db63bf3553bb2c92f668 | 1,497 | cc | C++ | src/libmu/mu/mu-printer.cc | Software-Knife-and-Tool/mux | 19166e2efde01dd5dcab60f06fc5d9ec2740ac5a | [
"MIT"
] | null | null | null | src/libmu/mu/mu-printer.cc | Software-Knife-and-Tool/mux | 19166e2efde01dd5dcab60f06fc5d9ec2740ac5a | [
"MIT"
] | 105 | 2021-07-11T15:54:40.000Z | 2021-08-07T04:38:06.000Z | src/libmu/mu/mu-printer.cc | Software-Knife-and-Tool/xian | bd5c77a222bfa9c18379510e63930627cb2f028a | [
"MIT"
] | null | null | null | /********
**
** SPDX-License-Identifier: MIT
**
** Copyright (c) 2017-2022 James M. Putnam <putnamjm.design@gmail.com>
**
**/
/********
**
** mu-printer.cc: library print functions
**
**/
#include <bitset>
#include <cassert>
#include <functional>
#include <iomanip>
#include <map>
#include <sstream>
#inclu... | 22.014706 | 72 | 0.647295 | Software-Knife-and-Tool |
f6594f43202007fdc7e39dffb1d19a932b22fc4b | 10,272 | cc | C++ | libgav1/src/post_filter/super_res.cc | TinkerBoard-Android/external-libgav1 | b24cb9cd67a6fe6360d55af1225f885442c8abac | [
"Apache-2.0"
] | null | null | null | libgav1/src/post_filter/super_res.cc | TinkerBoard-Android/external-libgav1 | b24cb9cd67a6fe6360d55af1225f885442c8abac | [
"Apache-2.0"
] | null | null | null | libgav1/src/post_filter/super_res.cc | TinkerBoard-Android/external-libgav1 | b24cb9cd67a6fe6360d55af1225f885442c8abac | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 The libgav1 Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... | 44.085837 | 80 | 0.641355 | TinkerBoard-Android |
2cf1c405f8068029edc7f14e62ebb7f99aab97b3 | 2,712 | cpp | C++ | pausedialog.cpp | williamwu88/Flying-Stickman | d11c05e87bde481200ed1f3aaf5a0f4e4982d9ae | [
"MIT"
] | null | null | null | pausedialog.cpp | williamwu88/Flying-Stickman | d11c05e87bde481200ed1f3aaf5a0f4e4982d9ae | [
"MIT"
] | null | null | null | pausedialog.cpp | williamwu88/Flying-Stickman | d11c05e87bde481200ed1f3aaf5a0f4e4982d9ae | [
"MIT"
] | null | null | null | #include "pausedialog.h"
#include "ui_pausedialog.h"
PauseDialog::PauseDialog(bool *paused, QWidget *parent) :
QDialog(parent),
ui(new Ui::PauseDialog),
paused(paused) {
ui->setupUi(this);
//this->setStyleSheet("background-color: #FFFFFF;"); //White
this->setFixedSize(this->width(), this->heig... | 27.673469 | 83 | 0.65118 | williamwu88 |
2cf217767ac1a4d3b1a36960dd44b5fbcf1f40c8 | 3,966 | cc | C++ | chrome/browser/privacy_budget/privacy_budget_ukm_entry_filter_unittest.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/privacy_budget/privacy_budget_ukm_entry_filter_unittest.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/privacy_budget/privacy_budget_ukm_entry_filter_unittest.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // Copyright 2020 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 "chrome/browser/privacy_budget/privacy_budget_ukm_entry_filter.h"
#include <cstdint>
#include "base/containers/flat_map.h"
#include "base/templ... | 39.267327 | 79 | 0.734493 | mghgroup |
2cf4381bb3482283e4c2c84af071694678e219a1 | 203 | cpp | C++ | Fellz/RaknetGlobals.cpp | digitalhoax/fellz | cacf5cd57f00121bcb2a795021aed24c4164c418 | [
"Zlib",
"libtiff",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"Libpng",
"curl",
"BSD-3-Clause"
] | 1 | 2017-09-25T09:32:22.000Z | 2017-09-25T09:32:22.000Z | Fellz/RaknetGlobals.cpp | digitalhoax/fellz | cacf5cd57f00121bcb2a795021aed24c4164c418 | [
"Zlib",
"libtiff",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"Libpng",
"curl",
"BSD-3-Clause"
] | null | null | null | Fellz/RaknetGlobals.cpp | digitalhoax/fellz | cacf5cd57f00121bcb2a795021aed24c4164c418 | [
"Zlib",
"libtiff",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"Libpng",
"curl",
"BSD-3-Clause"
] | null | null | null | #include "RaknetGlobals.h"
// for documentation, see RaknetGlobals.h
RakNet::RakPeerInterface* player2;
RakNet::SystemAddress player2Adress;
bool isServer;
bool isConnected;
bool otherGameOver; | 22.555556 | 42 | 0.783251 | digitalhoax |
2cf898eb30b312384af57b0be63943dfc1e3cacc | 45 | hpp | C++ | src/boost_mpl_aux__config_has_xxx.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_mpl_aux__config_has_xxx.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_mpl_aux__config_has_xxx.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/mpl/aux_/config/has_xxx.hpp>
| 22.5 | 44 | 0.777778 | miathedev |
2cf89ab55f7193b92900ab50122c466e126f0a5e | 9,234 | cpp | C++ | src/Daggy/CConsoleDaggy.cpp | milovidov/dataagregator | 1150f66fc2ef2bbcf62c0174ef147109185cad98 | [
"MIT"
] | 135 | 2019-06-23T20:32:33.000Z | 2022-02-06T15:41:41.000Z | src/Daggy/CConsoleDaggy.cpp | milovidov/dataagregator | 1150f66fc2ef2bbcf62c0174ef147109185cad98 | [
"MIT"
] | 2 | 2020-10-16T17:31:44.000Z | 2022-01-02T22:02:04.000Z | src/Daggy/CConsoleDaggy.cpp | milovidov/dataagregator | 1150f66fc2ef2bbcf62c0174ef147109185cad98 | [
"MIT"
] | 11 | 2019-12-26T14:36:44.000Z | 2022-02-23T02:14:41.000Z | /*
MIT License
Copyright (c) 2020 Mikhail Milovidov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publi... | 33.33574 | 127 | 0.668075 | milovidov |
2cf95fa4d1af26fa57d13569b320577a31d79785 | 453 | cpp | C++ | src/armnn/Exceptions.cpp | KevinRodrigues05/armnn_caffe2_parser | c577f2c6a3b4ddb6ba87a882723c53a248afbeba | [
"MIT"
] | 1 | 2019-03-19T08:44:28.000Z | 2019-03-19T08:44:28.000Z | src/armnn/Exceptions.cpp | KevinRodrigues05/armnn_caffe2_parser | c577f2c6a3b4ddb6ba87a882723c53a248afbeba | [
"MIT"
] | null | null | null | src/armnn/Exceptions.cpp | KevinRodrigues05/armnn_caffe2_parser | c577f2c6a3b4ddb6ba87a882723c53a248afbeba | [
"MIT"
] | 1 | 2019-10-11T05:58:56.000Z | 2019-10-11T05:58:56.000Z | //
// Copyright © 2017 Arm Ltd. All rights reserved.
// See LICENSE file in the project root for full license information.
//
#include "armnn/Exceptions.hpp"
#include <string>
namespace armnn
{
Exception::Exception(const std::string& message)
: m_Message(message)
{
}
const char* Exception::what() const noexcept
{
... | 16.178571 | 69 | 0.730684 | KevinRodrigues05 |
2cfea314db777fdd1478eddb86659a125232716f | 2,083 | cpp | C++ | tests/nostdlib/llvm_passes/SimplifyCFG/MergeConditionalStores/mergecondstores.cpp | jmorse/dexter | 79cefa890d041dfc927aea2a84737aa704ddd35c | [
"MIT"
] | null | null | null | tests/nostdlib/llvm_passes/SimplifyCFG/MergeConditionalStores/mergecondstores.cpp | jmorse/dexter | 79cefa890d041dfc927aea2a84737aa704ddd35c | [
"MIT"
] | null | null | null | tests/nostdlib/llvm_passes/SimplifyCFG/MergeConditionalStores/mergecondstores.cpp | jmorse/dexter | 79cefa890d041dfc927aea2a84737aa704ddd35c | [
"MIT"
] | null | null | null | // RUN: %dexter
int global = 0;
int
foo(int bar) // DexWatch('bar', 'global')
{
int lolret = 0; // DexWatch('bar', 'global', 'lolret')
if (bar & 1) { // DexWatch('bar', 'global', 'lolret')
bar += 1; // DexUnreachable()
lolret += 1; // DexUnreachable()
} else { // DexWatch('bar', '... | 38.574074 | 75 | 0.606337 | jmorse |
2cffd33eed22de0c010509c4afebb3fbd1612541 | 303 | hpp | C++ | development/CppDB/libCppDb/include/CppDb/ManagerFwd.hpp | AntonPoturaev/CppDB | 034d7feafc438fc585441742472bf4b5ef637eb2 | [
"Unlicense"
] | null | null | null | development/CppDB/libCppDb/include/CppDb/ManagerFwd.hpp | AntonPoturaev/CppDB | 034d7feafc438fc585441742472bf4b5ef637eb2 | [
"Unlicense"
] | null | null | null | development/CppDB/libCppDb/include/CppDb/ManagerFwd.hpp | AntonPoturaev/CppDB | 034d7feafc438fc585441742472bf4b5ef637eb2 | [
"Unlicense"
] | null | null | null | #if !defined(__CPP_ABSTRACT_DATA_BASE_MANAGER_FORWARD_DECLARATION_HPP__)
# define __CPP_ABSTRACT_DATA_BASE_MANAGER_FORWARD_DECLARATION_HPP__
namespace CppAbstractDataBase {
class Manager;
} /// end namespace CppAbstractDataBase
#endif /// !__CPP_ABSTRACT_DATA_BASE_MANAGER_FORWARD_DECLARATION_HPP__
| 33.666667 | 72 | 0.874587 | AntonPoturaev |
fa030575fb7c488e9ebb7f42102a5b68f07ced46 | 101 | cpp | C++ | src/algolib/graphs/vertex.cpp | ref-humbold/AlgoLib_CPlusPlus | 9c39138f4d4cd9a8a7db62a9e7495b63aefe069c | [
"Apache-2.0"
] | null | null | null | src/algolib/graphs/vertex.cpp | ref-humbold/AlgoLib_CPlusPlus | 9c39138f4d4cd9a8a7db62a9e7495b63aefe069c | [
"Apache-2.0"
] | null | null | null | src/algolib/graphs/vertex.cpp | ref-humbold/AlgoLib_CPlusPlus | 9c39138f4d4cd9a8a7db62a9e7495b63aefe069c | [
"Apache-2.0"
] | 1 | 2021-04-05T12:11:38.000Z | 2021-04-05T12:11:38.000Z | /*!
* \file vertex.cpp
* \brief Structure of graph vertex
*/
#include "algolib/graphs/vertex.hpp"
| 16.833333 | 36 | 0.683168 | ref-humbold |
fa07338eccfe31262314f8cc36876a4f175df8c7 | 1,498 | cpp | C++ | code-forces/657 Div 2/C2.cpp | ErickJoestar/competitive-programming | 76afb766dbc18e16315559c863fbff19a955a569 | [
"MIT"
] | 1 | 2020-04-23T00:35:38.000Z | 2020-04-23T00:35:38.000Z | code-forces/657 Div 2/C2.cpp | ErickJoestar/competitive-programming | 76afb766dbc18e16315559c863fbff19a955a569 | [
"MIT"
] | null | null | null | code-forces/657 Div 2/C2.cpp | ErickJoestar/competitive-programming | 76afb766dbc18e16315559c863fbff19a955a569 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define ENDL '\n'
#define deb(u) cout << #u " : " << (u) << ENDL;
#define deba(alias, u) cout << alias << ": " << (u) << ENDL;
#define debp(u, v) cout << u << " : " << v << ENDL;
#define pb push_back
#define F first
#define S second
#define lli long long
#define pii pair<int, int>
#define pll p... | 20.520548 | 60 | 0.417223 | ErickJoestar |
fa0a00bc000fb4492fa205ca3e76cf85f6117e00 | 1,499 | cpp | C++ | dynamic programming/70. Climbing Stairs.cpp | Constantine-L01/leetcode | 1f1e3a8226fcec036370e75c1d69e823d1323392 | [
"MIT"
] | 1 | 2021-04-08T10:33:48.000Z | 2021-04-08T10:33:48.000Z | dynamic programming/70. Climbing Stairs.cpp | Constantine-L01/leetcode | 1f1e3a8226fcec036370e75c1d69e823d1323392 | [
"MIT"
] | null | null | null | dynamic programming/70. Climbing Stairs.cpp | Constantine-L01/leetcode | 1f1e3a8226fcec036370e75c1d69e823d1323392 | [
"MIT"
] | 1 | 2021-02-23T05:58:58.000Z | 2021-02-23T05:58:58.000Z | You are climbing a staircase. It takes n steps to reach the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
Example 1:
Input: n = 2
Output: 2
Explanation: There are two ways to climb to the top.
1. 1 step + 1 step
2. 2 steps
//better solution with less space use... | 28.826923 | 181 | 0.596398 | Constantine-L01 |
fa0fc5014c590e38f905d7af0ab48bb4b7535324 | 4,083 | hpp | C++ | src/utils/timed_events.hpp | norayr/biboumi | 805671032d25ee6ce09ed75e8a385c04e9563cdd | [
"Zlib"
] | 68 | 2015-01-29T21:07:37.000Z | 2022-03-20T14:48:07.000Z | src/utils/timed_events.hpp | norayr/biboumi | 805671032d25ee6ce09ed75e8a385c04e9563cdd | [
"Zlib"
] | 5 | 2016-10-24T18:34:30.000Z | 2021-08-31T13:30:37.000Z | src/utils/timed_events.hpp | norayr/biboumi | 805671032d25ee6ce09ed75e8a385c04e9563cdd | [
"Zlib"
] | 13 | 2015-12-11T15:19:05.000Z | 2021-08-31T13:24:35.000Z | #pragma once
#include <functional>
#include <string>
#include <chrono>
#include <vector>
using namespace std::literals::chrono_literals;
namespace utils {
static constexpr std::chrono::milliseconds no_timeout = std::chrono::milliseconds(-1);
}
class TimedEventsManager;
/**
* A callback with an associated date.
*... | 29.586957 | 86 | 0.690914 | norayr |
fa14c0cd63a0c25a089f5434f3573441a843f9f6 | 362 | cpp | C++ | A/1031.cpp | chenjiajia9411/PATest | 061c961f5d7bf7b23c3a1b70d3d443cb57263700 | [
"Apache-2.0"
] | 1 | 2017-11-24T15:06:29.000Z | 2017-11-24T15:06:29.000Z | A/1031.cpp | chenjiajia9411/PAT | 061c961f5d7bf7b23c3a1b70d3d443cb57263700 | [
"Apache-2.0"
] | null | null | null | A/1031.cpp | chenjiajia9411/PAT | 061c961f5d7bf7b23c3a1b70d3d443cb57263700 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
string input;
cin>>input;
int is = input.size();
int n = (is + 2)/3;
for(int i = 0;i < n - 1;i++)
{
cout<<input.front();
input.erase(0,1);
for(int j = 0;j < (is - 2*n);j++) cout<<" ";
cout<<input.back()<<"\n";
input.p... | 19.052632 | 52 | 0.486188 | chenjiajia9411 |
fa17a23c3ce2ce020cd09e3414631fa3e31da150 | 4,213 | cpp | C++ | utilities/msmonitor/gui/QMSMFormHeatmapAbstract.cpp | akiml/ampehre | 383a863442574ea2e6a6ac853a9b99e153daeccf | [
"BSD-2-Clause"
] | 3 | 2016-01-20T13:41:52.000Z | 2018-04-10T17:50:49.000Z | utilities/msmonitor/gui/QMSMFormHeatmapAbstract.cpp | akiml/ampehre | 383a863442574ea2e6a6ac853a9b99e153daeccf | [
"BSD-2-Clause"
] | null | null | null | utilities/msmonitor/gui/QMSMFormHeatmapAbstract.cpp | akiml/ampehre | 383a863442574ea2e6a6ac853a9b99e153daeccf | [
"BSD-2-Clause"
] | null | null | null | /*
* QMSMFormHeatmapAbstract.cpp
*
* Copyright (C) 2015, Achim Lösch <achim.loesch@upb.de>, Christoph Knorr <cknorr@mail.uni-paderborn.de>
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*
* encoding: UTF-8
* t... | 27.357143 | 127 | 0.711844 | akiml |
fa18a3ae82592268a345f287ee0a23fec1355601 | 670 | hpp | C++ | source/Utilities/Point2D.hpp | hadryansalles/ray-tracing-from-the-ground-up | 4ca02fca2cdd458767b4ab3df15b6cd20cb1f413 | [
"MIT"
] | 5 | 2021-09-24T12:22:08.000Z | 2022-03-23T06:54:02.000Z | source/Utilities/Point2D.hpp | hadryans/ray-tracing-from-the-ground-up | 4ca02fca2cdd458767b4ab3df15b6cd20cb1f413 | [
"MIT"
] | null | null | null | source/Utilities/Point2D.hpp | hadryans/ray-tracing-from-the-ground-up | 4ca02fca2cdd458767b4ab3df15b6cd20cb1f413 | [
"MIT"
] | 5 | 2021-08-14T22:26:11.000Z | 2022-03-04T09:13:39.000Z | #pragma once
#include "Matrix.hpp"
#include <math.h>
class Point2D {
public:
double x, y;
Point2D();
Point2D(const double a);
Point2D(const double a, const double b);
Point2D(const Point2D &p);
~Point2D();
Point2D& operator= (const Point2D& p); // assignment operator
Point2D oper... | 27.916667 | 89 | 0.671642 | hadryansalles |
fa1e92d86a4cfe6bcc31d1ffa3b36128579a55c9 | 1,401 | cpp | C++ | Stack & Heap/316. Remove Duplicate Letters/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | 1 | 2021-11-19T19:58:33.000Z | 2021-11-19T19:58:33.000Z | Stack & Heap/316. Remove Duplicate Letters/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | null | null | null | Stack & Heap/316. Remove Duplicate Letters/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | 2 | 2021-11-26T12:47:27.000Z | 2022-01-13T16:14:46.000Z | //
// main.cpp
// 316. Remove Duplicate Letters
//
// Created by 边俊林 on 2019/10/3.
// Copyright © 2019 Minecode.Link. All rights reserved.
//
/* ------------------------------------------------------ *\
https://leetcode.com/problems/remove-duplicate-letters/
\* ----------------------------------------------------... | 23.35 | 85 | 0.522484 | Minecodecraft |
fa20d8ef350e7bfb6e8eba60dd1ea9396c022859 | 5,352 | cc | C++ | utils/clock_cal.cc | fxd0h/moteus | e66ba9fb54ad0482a0bdf9a32420f5bf18677216 | [
"Apache-2.0"
] | 347 | 2019-03-16T12:00:35.000Z | 2022-03-29T05:19:42.000Z | utils/clock_cal.cc | fxd0h/moteus | e66ba9fb54ad0482a0bdf9a32420f5bf18677216 | [
"Apache-2.0"
] | 22 | 2020-04-20T20:37:12.000Z | 2022-03-16T18:13:59.000Z | utils/clock_cal.cc | fxd0h/moteus | e66ba9fb54ad0482a0bdf9a32420f5bf18677216 | [
"Apache-2.0"
] | 127 | 2019-03-23T16:06:18.000Z | 2022-03-28T21:33:27.000Z | // Copyright 2020 Josh Pieper, jjp@pobox.com.
//
// 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 ... | 31.298246 | 88 | 0.670777 | fxd0h |
fa20f0977a131beeb5cb7df5031aeb76a3af4148 | 1,173 | hpp | C++ | Server Lib/Game Server/PANGYA_DB/cmd_update_quest_user.hpp | CCasusensa/SuperSS-Dev | 6c6253b0a56bce5dad150c807a9bbf310e8ff61b | [
"MIT"
] | 23 | 2021-10-31T00:20:21.000Z | 2022-03-26T07:24:40.000Z | Server Lib/Game Server/PANGYA_DB/cmd_update_quest_user.hpp | CCasusensa/SuperSS-Dev | 6c6253b0a56bce5dad150c807a9bbf310e8ff61b | [
"MIT"
] | 5 | 2021-10-31T18:44:51.000Z | 2022-03-25T18:04:26.000Z | Server Lib/Game Server/PANGYA_DB/cmd_update_quest_user.hpp | CCasusensa/SuperSS-Dev | 6c6253b0a56bce5dad150c807a9bbf310e8ff61b | [
"MIT"
] | 18 | 2021-10-20T02:31:56.000Z | 2022-02-01T11:44:36.000Z | // Arquivo cmd_update_quest_user.hpp
// Criado em 14/04/2018 as 15:57 por Acrisio
// Defini��o da classe CmdUpdateQuestUser
#pragma once
#ifndef _STDA_CMD_UPDATE_QUEST_USER_HPP
#define _STDA_CMD_UPDATE_QUEST_USER_HPP
#include "../../Projeto IOCP/PANGYA_DB/pangya_db.h"
#include "../TYPE/pangya_game_st.h"
namespace st... | 27.928571 | 82 | 0.752771 | CCasusensa |
fa22c48336169f2ac310c7fbd1dcb72053918c35 | 1,390 | cc | C++ | Modules/Numerics/src/Point.cc | lisurui6/MIRTK | 5a06041102d7205b5aac147ff768df6e9415bd03 | [
"Apache-2.0"
] | 146 | 2016-01-15T15:02:02.000Z | 2022-03-24T01:43:30.000Z | Modules/Numerics/src/Point.cc | aria-rui/MIRTK | 877917b1b3ec9e602f7395dbbb1270e4334fc311 | [
"Apache-2.0"
] | 196 | 2016-01-15T16:45:58.000Z | 2022-03-24T01:06:53.000Z | Modules/Numerics/src/Point.cc | aria-rui/MIRTK | 877917b1b3ec9e602f7395dbbb1270e4334fc311 | [
"Apache-2.0"
] | 72 | 2016-01-15T15:04:32.000Z | 2022-03-25T11:05:16.000Z | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2008-2016 Imperial College London
* Copyright 2008-2015 Daniel Rueckert, Julia Schnabel
* Copyright 2016 Andreas Schuh
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | 26.226415 | 80 | 0.556835 | lisurui6 |
fa2380682598c79bfaf0c3f3da04682a49f4ac03 | 10,020 | cpp | C++ | Modular Server/modulserv/my_parser.cpp | jancura/modular-server | ef97e7147edb33614d986a514c236f3dd020b513 | [
"MIT"
] | 1 | 2018-12-30T11:17:22.000Z | 2018-12-30T11:17:22.000Z | Modular Server/modulserv/my_parser.cpp | jancura/modular-server | ef97e7147edb33614d986a514c236f3dd020b513 | [
"MIT"
] | null | null | null | Modular Server/modulserv/my_parser.cpp | jancura/modular-server | ef97e7147edb33614d986a514c236f3dd020b513 | [
"MIT"
] | null | null | null | //20.05.2005 - implementacia my_parser.cpp
/*Pali Jancura - to jest ja :)
* 26.05.2005
* - ping prerobeny do dll
* - dalsie zmeny, pridany ping, este predtym bol pridany broadcast
* 20.05.2005
* add: bool my_parser()
*/
#include "stdafx.h"
#include "my_parser.h"
#include "server_thread.h"
#include "broadcast_t... | 31.809524 | 110 | 0.646607 | jancura |
fa267557bc33f4869f70e21dfcbf5301c9d0d38c | 186 | hpp | C++ | util.hpp | Mnkai/libzku_unitconv | 04951b54c255001bceeb484e5ff5754828dfda38 | [
"Apache-2.0"
] | null | null | null | util.hpp | Mnkai/libzku_unitconv | 04951b54c255001bceeb484e5ff5754828dfda38 | [
"Apache-2.0"
] | 2 | 2017-05-29T13:57:39.000Z | 2017-06-05T02:21:42.000Z | util.hpp | Mnkai/libzku_unitconv | 04951b54c255001bceeb484e5ff5754828dfda38 | [
"Apache-2.0"
] | null | null | null | #include <algorithm>
#include <functional>
#include <cctype>
#include <locale>
std::string <rim(std::string &s);
std::string &rtrim(std::string &s);
std::string &trim(std::string &s); | 23.25 | 35 | 0.698925 | Mnkai |
fa28b20e7e464a27ea215c13f2f5b4e81cac8680 | 4,319 | hpp | C++ | esp/platform/espsecurecontext.hpp | miguelvazq/HPCC-Platform | 22ad8e5fcb59626abfd8febecbdfccb1e9fb0aa5 | [
"Apache-2.0"
] | 286 | 2015-01-03T12:45:17.000Z | 2022-03-25T18:12:57.000Z | esp/platform/espsecurecontext.hpp | miguelvazq/HPCC-Platform | 22ad8e5fcb59626abfd8febecbdfccb1e9fb0aa5 | [
"Apache-2.0"
] | 9,034 | 2015-01-02T08:49:19.000Z | 2022-03-31T20:34:44.000Z | esp/platform/espsecurecontext.hpp | cloLN/HPCC-Platform | 42ffb763a1cdcf611d3900831973d0a68e722bbe | [
"Apache-2.0"
] | 208 | 2015-01-02T03:27:28.000Z | 2022-02-11T05:54:52.000Z | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2016 HPCC Systems®.
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... | 41.133333 | 194 | 0.694837 | miguelvazq |
fa2a0a2e3df171051a1eec3a3a731f4b5d59962e | 131,825 | cpp | C++ | src/hotspot/share/jvmci/jvmciCompilerToVM.cpp | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | null | null | null | src/hotspot/share/jvmci/jvmciCompilerToVM.cpp | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | null | null | null | src/hotspot/share/jvmci/jvmciCompilerToVM.cpp | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 47.676311 | 194 | 0.660474 | siweilxy |
fa2b1cd9c0e3ad13ff409683d37c865b8020b188 | 1,609 | cpp | C++ | breath/cryptography/test/digest_ordering_test.cpp | erez-o/breath | adf197b4e959beffce11e090c5e806d2ff4df38a | [
"BSD-3-Clause"
] | null | null | null | breath/cryptography/test/digest_ordering_test.cpp | erez-o/breath | adf197b4e959beffce11e090c5e806d2ff4df38a | [
"BSD-3-Clause"
] | null | null | null | breath/cryptography/test/digest_ordering_test.cpp | erez-o/breath | adf197b4e959beffce11e090c5e806d2ff4df38a | [
"BSD-3-Clause"
] | null | null | null | // ===========================================================================
// This is an open source non-commercial project.
// Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java:
// http://www.viva64.c... | 28.732143 | 78 | 0.527657 | erez-o |
fa2b32d34a9ddae71b3b037a4c48e590b07ed49a | 525 | cpp | C++ | chef/aug2020/linchess.cpp | skmorningstar/Competitive-Programming | 05ba602d0fe1492d5c36267237980a9ac2f124d6 | [
"Apache-2.0"
] | null | null | null | chef/aug2020/linchess.cpp | skmorningstar/Competitive-Programming | 05ba602d0fe1492d5c36267237980a9ac2f124d6 | [
"Apache-2.0"
] | null | null | null | chef/aug2020/linchess.cpp | skmorningstar/Competitive-Programming | 05ba602d0fe1492d5c36267237980a9ac2f124d6 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll t;
cin>>t;
while(t--)
{
ll n,k;
cin>>n>>k;
bool found=false;
vector<ll> arr(n);
for(ll i{0};i<n;i++)
cin>>arr[i];
ll min=INT_MAX;
ll mini=0;
for(ll i{0};i<n... | 12.804878 | 34 | 0.52 | skmorningstar |
fa3148e6c41374aa0763f0c4ca79a69d027d60ab | 4,245 | hpp | C++ | include/gem/dimensions_tuple.hpp | RomainBrault/Gem | 0eff3cb034a0faaca894316b72f4b005e72e0f5d | [
"MIT"
] | null | null | null | include/gem/dimensions_tuple.hpp | RomainBrault/Gem | 0eff3cb034a0faaca894316b72f4b005e72e0f5d | [
"MIT"
] | null | null | null | include/gem/dimensions_tuple.hpp | RomainBrault/Gem | 0eff3cb034a0faaca894316b72f4b005e72e0f5d | [
"MIT"
] | null | null | null | #ifndef GEM_DIMENSIONS_TUPLE_HPP_INCLUDED
#define GEM_DIMENSIONS_TUPLE_HPP_INCLUDED
#define BOOST_HANA_CONFIG_ENABLE_STRING_UDL
#include <type_traits>
#include <boost/hana/assert.hpp>
#include <boost/hana/integral_constant.hpp>
#include <boost/hana/minus.hpp>
#include <boost/hana/tuple.hpp>
#include <boost/hana/tran... | 29.479167 | 115 | 0.582332 | RomainBrault |
fa33e807e04aa06de178bb105e4c1fbc7315ea66 | 12,601 | hpp | C++ | SPOT/Custom_Library/PhaseSpase_Cameras/PHASESPACE/include/owl.hpp | Kirkados/combined_experiment | ac502781d089a95a120f7a82317df99696842382 | [
"MIT"
] | null | null | null | SPOT/Custom_Library/PhaseSpase_Cameras/PHASESPACE/include/owl.hpp | Kirkados/combined_experiment | ac502781d089a95a120f7a82317df99696842382 | [
"MIT"
] | null | null | null | SPOT/Custom_Library/PhaseSpase_Cameras/PHASESPACE/include/owl.hpp | Kirkados/combined_experiment | ac502781d089a95a120f7a82317df99696842382 | [
"MIT"
] | 2 | 2022-03-09T07:21:17.000Z | 2022-03-10T13:20:01.000Z | /***
Copyright (c) PhaseSpace, Inc 2016
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL PHASESPACE, INC
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER L... | 28.444695 | 133 | 0.642568 | Kirkados |
fa391d733f33efd06589d2c559344661df533abf | 2,566 | cpp | C++ | PA2 - Recipe Manager/src/Backend/Recipe.cpp | JahodaPaul/FIT_CTU | 2d96f18c7787ddfe340a15a36da6eea910225461 | [
"MIT"
] | 17 | 2019-03-09T17:13:40.000Z | 2022-03-05T14:42:05.000Z | PA2 - Recipe Manager/src/Backend/Recipe.cpp | JahodaPaul/FIT_CTU | 2d96f18c7787ddfe340a15a36da6eea910225461 | [
"MIT"
] | 1 | 2018-06-23T15:57:32.000Z | 2018-06-23T15:57:32.000Z | PA2 - Recipe Manager/src/Backend/Recipe.cpp | JahodaPaul/FIT_CTU | 2d96f18c7787ddfe340a15a36da6eea910225461 | [
"MIT"
] | 16 | 2019-04-09T00:10:55.000Z | 2022-02-21T20:28:05.000Z | //
// Created by pjahoda on 5/6/17.
//
#include "Recipe.h"
/**
* calculates percentage of same ingredients
* @param recipe2
* \return integer percentage
*/
int Recipe::HowMuchAreRecipesSame(const Recipe &recipe2)
{
int percentage = 0, nOfSameIngredients = 0;
for(unsigned int i = 0; i < this->ingredients.... | 22.910714 | 120 | 0.512081 | JahodaPaul |
fa3a35933500e9a4c0035de671ededdfc82f1a41 | 15,054 | inl | C++ | include/Utopia/Asset/details/Serializer.inl | Justin-sky/Utopia | 71912290155a469ad578234a1f5e1695804e04a3 | [
"MIT"
] | null | null | null | include/Utopia/Asset/details/Serializer.inl | Justin-sky/Utopia | 71912290155a469ad578234a1f5e1695804e04a3 | [
"MIT"
] | null | null | null | include/Utopia/Asset/details/Serializer.inl | Justin-sky/Utopia | 71912290155a469ad578234a1f5e1695804e04a3 | [
"MIT"
] | 1 | 2021-04-24T23:26:09.000Z | 2021-04-24T23:26:09.000Z | #pragma once
#include "../../Core/Traits.h"
#include "../AssetMngr.h"
#include "../../Core/Object.h"
#include <variant>
namespace Ubpa::Utopia::detail {
template<typename Value>
void WriteVar(const Value& var, Serializer::SerializeContext& ctx);
template<typename UserType>
void WriteUserType(const UserType* obj... | 33.905405 | 138 | 0.692906 | Justin-sky |
fa3dc17feac4ff12716e3254a9915d340fb8893f | 6,913 | cxx | C++ | test/core/communication/BeaconSendingCaptureOffStateTest.cxx | stefaneberl/openkit-native | 1dc042141f4990508742a89aacafda9b2a29aaaf | [
"Apache-2.0"
] | null | null | null | test/core/communication/BeaconSendingCaptureOffStateTest.cxx | stefaneberl/openkit-native | 1dc042141f4990508742a89aacafda9b2a29aaaf | [
"Apache-2.0"
] | null | null | null | test/core/communication/BeaconSendingCaptureOffStateTest.cxx | stefaneberl/openkit-native | 1dc042141f4990508742a89aacafda9b2a29aaaf | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2018-2020 Dynatrace LLC
*
* 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 ag... | 30.861607 | 128 | 0.789093 | stefaneberl |
fa3e29946fa64171c7ebbacb839e3ad604f64dcb | 394 | hpp | C++ | src/random/circle2d.hpp | degarashi/beat | 456cc4469067509f0746fbe4eca0d3a0879cb894 | [
"MIT"
] | null | null | null | src/random/circle2d.hpp | degarashi/beat | 456cc4469067509f0746fbe4eca0d3a0879cb894 | [
"MIT"
] | null | null | null | src/random/circle2d.hpp | degarashi/beat | 456cc4469067509f0746fbe4eca0d3a0879cb894 | [
"MIT"
] | null | null | null | #pragma once
#include "../circle2d.hpp"
#include "frea/src/random/vector.hpp"
namespace beat {
namespace g2 {
namespace random {
template <class RDP, class RDR>
Circle GenCircle(RDP&& rdp, RDR&& rdr) {
return {
frea::random::GenVec<Vec2>(rdp),
std::abs(rdr())
};
}
template <class RD>
... | 17.909091 | 43 | 0.604061 | degarashi |
fa43ab64c98b7c2e439b47615d389ee1d927ff1e | 954 | cpp | C++ | leetcode/algorithms/Q56-merge-intervals.cpp | jatin69/Revision-cpp | 52742ea76ee2440d92b116252399360fef46e0c7 | [
"MIT"
] | 4 | 2020-01-16T14:49:46.000Z | 2021-08-23T12:45:19.000Z | leetcode/algorithms/Q56-merge-intervals.cpp | jatin69/coding-practice | 52742ea76ee2440d92b116252399360fef46e0c7 | [
"MIT"
] | 2 | 2018-06-06T13:08:11.000Z | 2018-10-02T19:07:32.000Z | leetcode/algorithms/Q56-merge-intervals.cpp | jatin69/coding-practice | 52742ea76ee2440d92b116252399360fef46e0c7 | [
"MIT"
] | 5 | 2018-10-02T13:49:16.000Z | 2021-08-11T07:29:50.000Z | /*
* Author : Jatin Rohilla
* Date : June-July-2019
*
* Compiler : g++ 5.1.0
* flags : -std=c++14
*/
#include<bits/stdc++.h>
using namespace std;
// source code here
class Solution {
public:
vector<vector<int>> merge(vector<vector<int>>& intervals) {
if(intervals.size() < 2){
retu... | 19.469388 | 68 | 0.462264 | jatin69 |
fa44568e520dfcf40a0e97b897d200be5d8b3606 | 2,781 | cpp | C++ | SCProjects/MetaBot/Source/Commander/Zerg/ZergMain.cpp | andertavares/OpprimoBot | da75bc0bf65b2b12d7184ffef88b2dbfa0d6110b | [
"MIT"
] | null | null | null | SCProjects/MetaBot/Source/Commander/Zerg/ZergMain.cpp | andertavares/OpprimoBot | da75bc0bf65b2b12d7184ffef88b2dbfa0d6110b | [
"MIT"
] | null | null | null | SCProjects/MetaBot/Source/Commander/Zerg/ZergMain.cpp | andertavares/OpprimoBot | da75bc0bf65b2b12d7184ffef88b2dbfa0d6110b | [
"MIT"
] | null | null | null | #include "ZergMain.h"
#include "../../Managers/BuildplanEntry.h"
#include "../../Managers/AgentManager.h"
#include "../RushSquad.h"
#include "../ExplorationSquad.h"
#include "../../Managers/ExplorationManager.h"
ZergMain::ZergMain()
{
buildplan.push_back(BuildplanEntry(UnitTypes::Zerg_Spawning_Pool, 5));
buildplan.p... | 29.273684 | 136 | 0.729953 | andertavares |
fa46c8fff2cb0b267e223c7e0da5de4bb2d10b5b | 5,356 | cpp | C++ | xCode/OpenGL/MD2 animation/Classes/QR_Engine/QR_3D/QR_Renderer/QR_Renderer_OpenGL.cpp | Jeanmilost/Demos | 2b71f6edc85948540660d290183530fd846262ad | [
"MIT"
] | 1 | 2022-03-22T14:41:15.000Z | 2022-03-22T14:41:15.000Z | xCode/OpenGL/MD2 animation/Classes/QR_Engine/QR_3D/QR_Renderer/QR_Renderer_OpenGL.cpp | Jeanmilost/Demos | 2b71f6edc85948540660d290183530fd846262ad | [
"MIT"
] | null | null | null | xCode/OpenGL/MD2 animation/Classes/QR_Engine/QR_3D/QR_Renderer/QR_Renderer_OpenGL.cpp | Jeanmilost/Demos | 2b71f6edc85948540660d290183530fd846262ad | [
"MIT"
] | null | null | null | /******************************************************************************
* ==> QR_Renderer_OpenGL ----------------------------------------------------*
******************************************************************************
* Description : Specialized OpenGL renderer *
... | 33.475 | 182 | 0.504294 | Jeanmilost |
fa489af4f8db0e9a17c8f717b03531ecba92e495 | 5,549 | cxx | C++ | Plugins/VR/vtkVRActiveObjectManipulationStyle.cxx | XiaoboFu/ParaViewGeo | 0089927885fd67a3d70a22a28977a291bed3fcdd | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 17 | 2015-02-17T00:30:26.000Z | 2022-03-17T06:13:02.000Z | Plugins/VR/vtkVRActiveObjectManipulationStyle.cxx | ObjectivitySRC/ParaViewGeo | 0089927885fd67a3d70a22a28977a291bed3fcdd | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | Plugins/VR/vtkVRActiveObjectManipulationStyle.cxx | ObjectivitySRC/ParaViewGeo | 0089927885fd67a3d70a22a28977a291bed3fcdd | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 10 | 2015-08-31T18:20:17.000Z | 2022-02-02T15:16:21.000Z | #include "vtkVRActiveObjectManipulationStyle.h"
#include "pqActiveObjects.h"
#include "pqDataRepresentation.h"
#include "pqView.h"
#include "vtkCamera.h"
#include "vtkMath.h"
#include "vtkRenderer.h"
#include "vtkRenderWindow.h"
#include "vtkSMDoubleVectorProperty.h"
#include "vtkSMPropertyHelper.h"
#include "vtkSMRen... | 25.809302 | 97 | 0.575419 | XiaoboFu |
fa4d36c4a7e221fbcc362d618b503c54efa5f56d | 14,096 | hpp | C++ | include/GlobalNamespace/StandardScoreSyncStateDeltaNetSerializable.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/StandardScoreSyncStateDeltaNetSerializable.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/StandardScoreSyncStateDeltaNetSerializable.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: LiteNetLib.Utils.INetSeriali... | 60.239316 | 270 | 0.769154 | RedBrumbler |
fa502910a6e0e028b3322a7c64f5f3c6ebe22dd2 | 56,168 | cpp | C++ | middleware/transaction/source/manager/handle.cpp | casualcore/casual | 047a4eaabbba52ad3ce63dc698a9325ad5fcec6d | [
"MIT"
] | null | null | null | middleware/transaction/source/manager/handle.cpp | casualcore/casual | 047a4eaabbba52ad3ce63dc698a9325ad5fcec6d | [
"MIT"
] | null | null | null | middleware/transaction/source/manager/handle.cpp | casualcore/casual | 047a4eaabbba52ad3ce63dc698a9325ad5fcec6d | [
"MIT"
] | 1 | 2022-02-21T18:30:25.000Z | 2022-02-21T18:30:25.000Z | //!
//! Copyright (c) 2015, The casual project
//!
//! This software is licensed under the MIT license, https://opensource.org/licenses/MIT
//!
#include "transaction/manager/handle.h"
#include "transaction/manager/action.h"
#include "transaction/common.h"
#include "transaction/manager/admin/server.h"
#include "casu... | 51.201459 | 206 | 0.420293 | casualcore |
fa516317ceb552f45ff177c73ba06212b5698ec4 | 8,309 | cpp | C++ | test/BondStereopermutator.cpp | Dom1L/molassembler | dafc656b1aa846b65b1fd1e06f3740ceedcf22db | [
"BSD-3-Clause"
] | 17 | 2020-11-27T14:59:34.000Z | 2022-03-28T10:31:25.000Z | test/BondStereopermutator.cpp | Dom1L/molassembler | dafc656b1aa846b65b1fd1e06f3740ceedcf22db | [
"BSD-3-Clause"
] | null | null | null | test/BondStereopermutator.cpp | Dom1L/molassembler | dafc656b1aa846b65b1fd1e06f3740ceedcf22db | [
"BSD-3-Clause"
] | 6 | 2020-12-09T09:21:53.000Z | 2021-08-22T15:42:21.000Z | /*!@file
* @copyright This code is licensed under the 3-clause BSD license.
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.
* See LICENSE.txt for details.
*/
#define BOOST_FILESYSTEM_NO_DEPRECATED
#include "boost/filesystem.hpp"
#include "boost/test/unit_test.hpp"
#include "Molassembl... | 30.435897 | 102 | 0.703213 | Dom1L |
fa55c8ca4ebbbcdc70f3a343783d271705b0c954 | 10,452 | cpp | C++ | VoiceBridge/VoiceBridge/kaldi-win/scr/util.cpp | sanyaade-teachings/VoiceBridge | 348b0931f2bfaf33b7e0d18c68c50f448ab3de5c | [
"Apache-2.0"
] | 18 | 2018-02-15T03:14:32.000Z | 2021-07-06T08:21:13.000Z | VoiceBridge/VoiceBridge/kaldi-win/scr/util.cpp | sanyaade-teachings/VoiceBridge | 348b0931f2bfaf33b7e0d18c68c50f448ab3de5c | [
"Apache-2.0"
] | 3 | 2020-10-25T16:35:55.000Z | 2020-10-26T04:59:46.000Z | VoiceBridge/VoiceBridge/kaldi-win/scr/util.cpp | sanyaade-teachings/VoiceBridge | 348b0931f2bfaf33b7e0d18c68c50f448ab3de5c | [
"Apache-2.0"
] | 7 | 2018-09-16T20:40:17.000Z | 2021-07-06T08:21:14.000Z | /*
Copyright 2017-present Zoltan Somogyi (AI-TOOLKIT), All Rights Reserved
You may use this file only if you agree to the software license:
AI-TOOLKIT Open Source Software License - Version 2.1 - February 22, 2018:
https://ai-toolkit.blogspot.com/p/ai-toolkit-open-source-software-license.html.
Also included with t... | 32.06135 | 165 | 0.631649 | sanyaade-teachings |
fa560f221384189593c6d4e70dafe8cb08e627ca | 4,963 | hpp | C++ | ql/experimental/templatemodels/hullwhite/g2ppT.hpp | urgu00/QuantLib | fecce0abb0ff3d50da29c129f8f9e73176e20ab9 | [
"BSD-3-Clause"
] | null | null | null | ql/experimental/templatemodels/hullwhite/g2ppT.hpp | urgu00/QuantLib | fecce0abb0ff3d50da29c129f8f9e73176e20ab9 | [
"BSD-3-Clause"
] | 9 | 2021-05-17T06:40:39.000Z | 2022-03-28T08:08:46.000Z | ql/experimental/templatemodels/hullwhite/g2ppT.hpp | urgu00/QuantLib | fecce0abb0ff3d50da29c129f8f9e73176e20ab9 | [
"BSD-3-Clause"
] | 1 | 2020-11-23T09:16:13.000Z | 2020-11-23T09:16:13.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2018, Sebastian Schlenkrich
*/
#ifndef quantlib_templateg2pp_hpp
#define quantlib_templateg2pp_hpp
#include <ql/shared_ptr.hpp>
#include <ql/errors.hpp>
#include <ql/termstructures/yieldtermstructure.hpp>
#include <q... | 38.176923 | 132 | 0.531735 | urgu00 |
fa6230a7abbc3d9cdfd4bbb6640f84770454bedf | 125,788 | cpp | C++ | openstudiocore/src/sdd/MapGeometry.cpp | jasondegraw/OpenStudio | 2ab13f6e5e48940929041444e40ad9d36f80f552 | [
"blessing"
] | 1 | 2016-12-29T08:45:03.000Z | 2016-12-29T08:45:03.000Z | openstudiocore/src/sdd/MapGeometry.cpp | jasondegraw/OpenStudio | 2ab13f6e5e48940929041444e40ad9d36f80f552 | [
"blessing"
] | null | null | null | openstudiocore/src/sdd/MapGeometry.cpp | jasondegraw/OpenStudio | 2ab13f6e5e48940929041444e40ad9d36f80f552 | [
"blessing"
] | null | null | null | /**********************************************************************
* Copyright (c) 2008-2016, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the... | 45.117647 | 206 | 0.685518 | jasondegraw |
fa65151de53dd926e548e07a19e1297d0b23a005 | 277 | cpp | C++ | testcases/tests/t0004.cpp | Vindaar/vitanim | eb43b712247f1411e5a82c6fe6c29b84647c6549 | [
"MIT"
] | 12 | 2018-10-19T11:45:27.000Z | 2021-04-23T13:12:14.000Z | testcases/tests/t0004.cpp | Vindaar/vitanim | eb43b712247f1411e5a82c6fe6c29b84647c6549 | [
"MIT"
] | 4 | 2018-10-18T10:03:31.000Z | 2021-01-14T08:35:53.000Z | testcases/tests/t0004.cpp | Vindaar/vitanim | eb43b712247f1411e5a82c6fe6c29b84647c6549 | [
"MIT"
] | 4 | 2019-01-25T19:50:39.000Z | 2020-01-05T06:39:36.000Z | /*
KEY gdb brew
D20181203T110212:here [gdb still unusable on mojave · Issue #34750 · Homebrew/homebrew-core](https://github.com/Homebrew/homebrew-core/issues/34750)
*/
#include <iostream>
#include <stdio.h>
int main (int argc, char *argv[]) {
printf("ok1\n");
return 0;
}
| 23.083333 | 148 | 0.707581 | Vindaar |
fa65e1d6ba2cb4e1da46ac34a9ccdf2fe40bc9ce | 1,560 | cpp | C++ | ProjectEuler/Problems/problem076_100/Solution077.cpp | ankitdixit/code-gems | bdb30ba5c714f416dbf54d479d055458bde36085 | [
"MIT"
] | null | null | null | ProjectEuler/Problems/problem076_100/Solution077.cpp | ankitdixit/code-gems | bdb30ba5c714f416dbf54d479d055458bde36085 | [
"MIT"
] | null | null | null | ProjectEuler/Problems/problem076_100/Solution077.cpp | ankitdixit/code-gems | bdb30ba5c714f416dbf54d479d055458bde36085 | [
"MIT"
] | 2 | 2017-09-30T06:26:02.000Z | 2020-08-20T14:41:55.000Z | // https://projecteuler.net/problem=77
/*
It is possible to write ten as the sum of primes in exactly five different ways:
7 + 3
5 + 5
5 + 3 + 2
3 + 3 + 2 + 2
2 + 2 + 2 + 2 + 2
What is the first value which can be written as the sum of primes in over five
thousand different ways?
Solution:
Similar to coin change pr... | 25.57377 | 101 | 0.595513 | ankitdixit |
fa66ba6e7918fcfcb32ecb01a4874e6642d2f517 | 924 | cpp | C++ | pypcode_emu/native/harness.cpp | jevinskie/pypcode-emu | 49d62090df9b25a7c4e35eee3532c3763f4e4286 | [
"MIT"
] | 13 | 2022-02-27T03:35:24.000Z | 2022-03-21T10:39:16.000Z | pypcode_emu/native/harness.cpp | jevinskie/pypcode-emu | 49d62090df9b25a7c4e35eee3532c3763f4e4286 | [
"MIT"
] | null | null | null | pypcode_emu/native/harness.cpp | jevinskie/pypcode-emu | 49d62090df9b25a7c4e35eee3532c3763f4e4286 | [
"MIT"
] | 1 | 2022-03-21T01:24:00.000Z | 2022-03-21T01:24:00.000Z | #undef NDEBUG
#include <cassert>
#include <sys/fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fmt/format.h>
#include "lifted.h"
extern "C" double fpadd(double a, double b);
// 0x4000'0000'0000 makes asan happy
u8 *setup_mem(size_t size = 0x1'0000'0000, void *preferred_addr = (vo... | 22.536585 | 96 | 0.640693 | jevinskie |
fa66dcee1c507681a3ee361e1656ddfef366c021 | 3,242 | cpp | C++ | graph-source-code/445-C/7033658.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/445-C/7033658.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/445-C/7033658.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++0x
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <vector>
#include <stack>
#include <queue>
#include <string>
#include <cstdlib>
#include <set>
#include <map>
#include <fstream>
#define PI 3.14159265359
using namespace std;... | 20.389937 | 122 | 0.317705 | AmrARaouf |
fa66ff8686a2df747c40c10059c7e66939b348ba | 5,380 | cpp | C++ | lib/dataset/test/data_view_test.cpp | nvaytet/scipp | f14f56ed19cccb4162d55b1123df7225eeedb395 | [
"BSD-3-Clause"
] | 43 | 2019-04-08T14:13:11.000Z | 2022-02-08T06:09:35.000Z | lib/dataset/test/data_view_test.cpp | nvaytet/scipp | f14f56ed19cccb4162d55b1123df7225eeedb395 | [
"BSD-3-Clause"
] | 1,342 | 2019-03-30T07:06:08.000Z | 2022-03-28T13:12:47.000Z | lib/dataset/test/data_view_test.cpp | nvaytet/scipp | f14f56ed19cccb4162d55b1123df7225eeedb395 | [
"BSD-3-Clause"
] | 12 | 2019-06-13T08:56:12.000Z | 2021-11-04T08:24:18.000Z | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2021 Scipp contributors (https://github.com/scipp)
#include <gtest/gtest.h>
#include <numeric>
#include "scipp/core/dimensions.h"
#include "scipp/dataset/dataset.h"
#include "dataset_test_common.h"
#include "test_macros.h"
using namespace scipp;
using namesp... | 33.836478 | 79 | 0.689963 | nvaytet |
fa683ca863337fa6fe4e4863ce755b62cf7830a8 | 567 | cc | C++ | matlab/mexfiles/GenerateAdmixedIndividuals_.cc | VasLem/SNPLIB | aea1cb943a7db22faa592a53cf1132561ce50c4e | [
"BSD-3-Clause"
] | 2 | 2019-11-21T04:55:13.000Z | 2021-10-05T18:01:23.000Z | matlab/mexfiles/GenerateAdmixedIndividuals_.cc | VasLem/SNPLIB | aea1cb943a7db22faa592a53cf1132561ce50c4e | [
"BSD-3-Clause"
] | null | null | null | matlab/mexfiles/GenerateAdmixedIndividuals_.cc | VasLem/SNPLIB | aea1cb943a7db22faa592a53cf1132561ce50c4e | [
"BSD-3-Clause"
] | 1 | 2022-02-17T17:20:24.000Z | 2022-02-17T17:20:24.000Z | #include "../../src/simulations.h"
#include "mex.h"
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) {
auto *af = mxGetPr(prhs[0]);
auto num_snps = static_cast<size_t>(mxGetN(prhs[0]));
auto num_samples = static_cast<size_t>(mxGetScalar(prhs[1]));
auto num_bytes = num_samples / 4 + ... | 47.25 | 78 | 0.705467 | VasLem |
fa6b0f8ca1e8ca70fadd339abc1dab370544b02a | 17,099 | cpp | C++ | WRK-V1.2/csharp/sccomp/bitset.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | WRK-V1.2/csharp/sccomp/bitset.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | WRK-V1.2/csharp/sccomp/bitset.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | // ==++==
//
//
// Copyright (c) 2006 Microsoft Corporation. All rights reserved.
//
// The use and distribution terms for this software are contained in the file
// named license.txt, which can be found in the root of this distribution.
// By using this software in any fashion, you are agreeing to b... | 32.140977 | 100 | 0.450494 | intj-t |
fa6bd5644e35a88353a7ad9f2729b6e6ce9d2b14 | 1,075 | cpp | C++ | third_party/WebKit/Source/platform/testing/FuzzedDataProvider.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/platform/testing/FuzzedDataProvider.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/platform/testing/FuzzedDataProvider.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 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 "platform/testing/FuzzedDataProvider.h"
namespace blink {
FuzzedDataProvider::FuzzedDataProvider(const uint8_t* bytes, size_t num_bytes)
: ... | 31.617647 | 80 | 0.733953 | metux |
fa6c012b93520ec881141c8547bc1337327463da | 3,633 | hpp | C++ | include/UnityEngine/U2D/SpriteAtlasManager.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/U2D/SpriteAtlasManager.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/U2D/SpriteAtlasManager.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Completed includes
// Begin forward declares
// Forward declaring namespace: System
... | 51.169014 | 131 | 0.730526 | darknight1050 |
fa73bc930dbdce149f3b39567c17ef2558ba1e20 | 5,230 | cc | C++ | src/atlas/grid/detail/spacing/gaussian/N256.cc | mlange05/atlas | d8198435a9e39fbf67bfc467fe734203414af608 | [
"Apache-2.0"
] | null | null | null | src/atlas/grid/detail/spacing/gaussian/N256.cc | mlange05/atlas | d8198435a9e39fbf67bfc467fe734203414af608 | [
"Apache-2.0"
] | null | null | null | src/atlas/grid/detail/spacing/gaussian/N256.cc | mlange05/atlas | d8198435a9e39fbf67bfc467fe734203414af608 | [
"Apache-2.0"
] | null | null | null | // TL511
#include "atlas/grid/detail/spacing/gaussian/N.h"
namespace atlas {
namespace grid {
namespace spacing {
namespace gaussian {
DEFINE_GAUSSIAN_LATITUDES(
256, LIST( 89.731148618413, 89.382873896334, 89.032542423790, 88.681746243591, 88.330773788807, 87.979716034326,
87.628610609484, 87.277... | 88.644068 | 116 | 0.7174 | mlange05 |
fa767dffcfd85faec8c76169b414c96c96c625ea | 28,938 | cpp | C++ | src/resolver/sleefResolver.cpp | sx-aurora-test/rv | 5d546958b155d7349b20a8cbbeff1b4c65589fd7 | [
"Apache-2.0"
] | null | null | null | src/resolver/sleefResolver.cpp | sx-aurora-test/rv | 5d546958b155d7349b20a8cbbeff1b4c65589fd7 | [
"Apache-2.0"
] | null | null | null | src/resolver/sleefResolver.cpp | sx-aurora-test/rv | 5d546958b155d7349b20a8cbbeff1b4c65589fd7 | [
"Apache-2.0"
] | null | null | null | //===- sleefLibrary.cpp -----------------------------===//
//
// The Region Vectorizer
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
#include <llvm/Support/SourceMgr.h>
#include <llvm/IRReader/IRReader.h>
#include <llvm/Transfor... | 33.33871 | 208 | 0.670952 | sx-aurora-test |
fa77c3022865e3f92693358145303215345ca6a1 | 631 | cpp | C++ | Vic2ToHoI4Tests/HoI4WorldTests/OperativeNames/OperativeNamesTests.cpp | gawquon/Vic2ToHoI4 | 8371cfb1fd57cf81d854077963135d8037e754eb | [
"MIT"
] | 25 | 2018-12-10T03:41:49.000Z | 2021-10-04T10:42:36.000Z | Vic2ToHoI4Tests/HoI4WorldTests/OperativeNames/OperativeNamesTests.cpp | gawquon/Vic2ToHoI4 | 8371cfb1fd57cf81d854077963135d8037e754eb | [
"MIT"
] | 739 | 2018-12-13T02:01:20.000Z | 2022-03-28T02:57:13.000Z | Vic2ToHoI4Tests/HoI4WorldTests/OperativeNames/OperativeNamesTests.cpp | Osariusz/Vic2ToHoI4 | 9738b52c7602b1fe187c3820660c58a8d010d87e | [
"MIT"
] | 43 | 2018-12-10T03:41:58.000Z | 2022-03-22T23:55:41.000Z | #include "HOI4World/OperativeNames/OperativeNames.h"
#include "HOI4World/OperativeNames/OperativeNamesFactory.h"
#include "gtest/gtest.h"
#include <sstream>
TEST(HoI4World_OperativeNames_OperativeNamesTests, OperativeNamesDefaultsToEmpty)
{
const auto operativeNames = HoI4::OperativeNames::Factory::getOperativeName... | 30.047619 | 90 | 0.81775 | gawquon |
fa78add51b4e41dcc8b8ff9fc82ca69b143115e3 | 154 | cpp | C++ | stat.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | stat.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | stat.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
int n;
scanf("%d",&n);
int i=0;
int j=n-1;
}
} | 9.058824 | 20 | 0.506494 | sagar-sam |
fa79764ed3fe4e562a1bf37035b400745cd61fd1 | 2,267 | cpp | C++ | BetaEngine/Comp/Lab1/Source/Level1.cpp | PowerUser64/dP-2 | 98e5edc2dca4ed629e2bbf222c5b764e166e7193 | [
"MIT"
] | null | null | null | BetaEngine/Comp/Lab1/Source/Level1.cpp | PowerUser64/dP-2 | 98e5edc2dca4ed629e2bbf222c5b764e166e7193 | [
"MIT"
] | null | null | null | BetaEngine/Comp/Lab1/Source/Level1.cpp | PowerUser64/dP-2 | 98e5edc2dca4ed629e2bbf222c5b764e166e7193 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Level1.h"
#include "MonkeyMovement.h"
using namespace Beta;
Level1::Level1() : Level("Leve1")
{
}
void Level1::Load()
{
// Create a sprite component and set its mesh and sprite source
textureMonkey = ResourceGetTexture("Monkey.png");
spriteSourceMonkey = std::make_shared<... | 27.987654 | 93 | 0.703573 | PowerUser64 |
fa79dd4dd51eb42bc905ff3a6089e66f0857fdd2 | 14,005 | cc | C++ | hybridse/examples/toydb/src/storage/table_test.cc | jasleon/OpenMLDB | 2f85d12cd8dadd3a1ec822e1f591632341f3b23f | [
"Apache-2.0"
] | 2,659 | 2021-06-07T12:59:15.000Z | 2022-03-30T15:29:37.000Z | hybridse/examples/toydb/src/storage/table_test.cc | jasleon/OpenMLDB | 2f85d12cd8dadd3a1ec822e1f591632341f3b23f | [
"Apache-2.0"
] | 1,396 | 2021-05-28T09:50:13.000Z | 2022-03-31T16:37:49.000Z | hybridse/examples/toydb/src/storage/table_test.cc | jasleon/OpenMLDB | 2f85d12cd8dadd3a1ec822e1f591632341f3b23f | [
"Apache-2.0"
] | 499 | 2021-05-31T07:36:48.000Z | 2022-03-31T15:10:12.000Z | /*
* Copyright 2021 4Paradigm
*
* 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 w... | 29.422269 | 79 | 0.602713 | jasleon |
fa7c8e73799feb7707f1f90d68a0f5cfb6678d50 | 2,118 | hh | C++ | include/WCSimDetectorZone.hh | chipsneutrino/chips-sim | 19d3f2d75c674c06d2f27b9a344b70ca53e672c5 | [
"MIT"
] | null | null | null | include/WCSimDetectorZone.hh | chipsneutrino/chips-sim | 19d3f2d75c674c06d2f27b9a344b70ca53e672c5 | [
"MIT"
] | null | null | null | include/WCSimDetectorZone.hh | chipsneutrino/chips-sim | 19d3f2d75c674c06d2f27b9a344b70ca53e672c5 | [
"MIT"
] | null | null | null | /*
* WCSimDetectorZone.hh
*
* Created on: 24 Nov 2014
* Author: ajperch
*/
#pragma once
#include "G4ThreeVector.hh"
#include "WCSimGeometryEnums.hh"
#include <map>
#include <vector>
class WCSimDetectorZone
{
public:
WCSimDetectorZone();
virtual ~WCSimDetectorZone();
void AddCellPMTName(std::string nam... | 21.612245 | 79 | 0.756374 | chipsneutrino |
fa7fee538418403a33c936d0a173b574b7a03de0 | 976 | cpp | C++ | examples/grover/general_grover.cpp | ausbin/qcor | e9e0624a0e14b1b980ce9265b71c9b394abc60a8 | [
"BSD-3-Clause"
] | 59 | 2019-08-22T18:40:38.000Z | 2022-03-09T04:12:42.000Z | examples/grover/general_grover.cpp | ausbin/qcor | e9e0624a0e14b1b980ce9265b71c9b394abc60a8 | [
"BSD-3-Clause"
] | 137 | 2019-09-13T15:50:18.000Z | 2021-12-06T14:19:46.000Z | examples/grover/general_grover.cpp | ausbin/qcor | e9e0624a0e14b1b980ce9265b71c9b394abc60a8 | [
"BSD-3-Clause"
] | 26 | 2019-07-08T17:30:35.000Z | 2021-12-03T16:24:12.000Z | using GroverPhaseOracle = KernelSignature<qreg>;
__qpu__ void reflect_about_uniform(qreg q) {
compute {
H(q);
X(q);
} action {
// we have N qubits, get the first N-1 as the
// ctrl qubits, and the last one for the
// ctrl-ctrl-...-ctrl-z operation qubit
auto ctrl_qubits = q.head(q.size()-... | 22.181818 | 57 | 0.594262 | ausbin |
fa817f8b0dd229fd2d71bbcd788ff35c5df0a81d | 1,435 | cpp | C++ | WonderMake/Collision/ColliderDebug.cpp | nicolasgustafsson/WonderMake | 9661d5dab17cf98e06daf6ea77c5927db54d62f9 | [
"MIT"
] | 3 | 2020-03-27T15:25:19.000Z | 2022-01-18T14:12:25.000Z | WonderMake/Collision/ColliderDebug.cpp | nicolasgustafsson/WonderMake | 9661d5dab17cf98e06daf6ea77c5927db54d62f9 | [
"MIT"
] | null | null | null | WonderMake/Collision/ColliderDebug.cpp | nicolasgustafsson/WonderMake | 9661d5dab17cf98e06daf6ea77c5927db54d62f9 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "ColliderDebug.h"
#include "Colliders.h"
void DrawSphere(const Colliders::SSphere& aCollider, const SColor& aColor)
{
constexpr u32 points = 16;
SVector2f positions[points];
for (u32 i = 0; i < points; ++i)
{
positions[i].X = std::cosf((Constants::Pi * 2.f) / points * i);
positions[... | 21.41791 | 79 | 0.667596 | nicolasgustafsson |
fa836b9da81e50a6e7a7fa097ac97bd5cb0c6bd4 | 11,001 | cpp | C++ | [Lib]__Engine/Sources/Common/profile.cpp | yexiuph/RanOnline | 7f7be07ef740c8e4cc9c7bef1790b8d099034114 | [
"Apache-2.0"
] | null | null | null | [Lib]__Engine/Sources/Common/profile.cpp | yexiuph/RanOnline | 7f7be07ef740c8e4cc9c7bef1790b8d099034114 | [
"Apache-2.0"
] | null | null | null | [Lib]__Engine/Sources/Common/profile.cpp | yexiuph/RanOnline | 7f7be07ef740c8e4cc9c7bef1790b8d099034114 | [
"Apache-2.0"
] | null | null | null | // "Portions Copyright (C) Steve Rabin, 2000"
// Edit by Jung DH, 2002.
//
#include "pch.h"
#include "./profile.h"
#include "./DebugSet.h"
#include "./DxInputDevice.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
CPROFILE g_profile_1;
CPROFILE g_profile_2;
BOOL g_bProfile = FALSE;
namespace
{
#define _HISTORY_RATE_ ... | 22.871102 | 134 | 0.624852 | yexiuph |
fa83f675d9c884b76ce3bb0d43c0c11312df07f7 | 1,646 | cpp | C++ | fnelem/model/restraints/restraint.cpp | mfkiwl/FNELEM-GPU | 7f035e065f7fcaf98df9b3e40cfa0ef782b55931 | [
"MIT"
] | 7 | 2019-05-25T04:43:55.000Z | 2022-02-14T09:14:28.000Z | fnelem/model/restraints/restraint.cpp | mfkiwl/FNELEM-GPU | 7f035e065f7fcaf98df9b3e40cfa0ef782b55931 | [
"MIT"
] | 2 | 2018-12-06T15:23:10.000Z | 2021-04-14T15:07:33.000Z | fnelem/model/restraints/restraint.cpp | mfkiwl/FNELEM-GPU | 7f035e065f7fcaf98df9b3e40cfa0ef782b55931 | [
"MIT"
] | 5 | 2019-05-25T09:32:28.000Z | 2021-03-15T08:14:52.000Z | #include <utility>
/**
FNELEM-GPU RESTRAINTS - RESTRAINT.
Abstract restraint class.
@package fnelem.model.restraints
@author ppizarror
@date 01/12/2018
@license
MIT License
Copyright (c) 2018 Pablo Pizarro R.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associ... | 27.433333 | 79 | 0.752126 | mfkiwl |
fa8513b9b1598a97d7e11ea82cb932f68a07efaa | 544 | cpp | C++ | GameEngine/Sources/IndexBufferSegment.cpp | GPUWorks/OpenGL-Mini-CAD-2D | fedb903302f82a1d1ff0ca6776687a60a237008a | [
"MIT"
] | 1 | 2021-08-10T02:48:57.000Z | 2021-08-10T02:48:57.000Z | GameEngine/Sources/IndexBufferSegment.cpp | GPUWorks/OpenGL-Mini-CAD-2D | fedb903302f82a1d1ff0ca6776687a60a237008a | [
"MIT"
] | null | null | null | GameEngine/Sources/IndexBufferSegment.cpp | GPUWorks/OpenGL-Mini-CAD-2D | fedb903302f82a1d1ff0ca6776687a60a237008a | [
"MIT"
] | null | null | null | #include "IndexBufferSegment.h"
//------------------------------ Constructors
storage::IndexBufferSegment::IndexBufferSegment()
{
}
storage::IndexBufferSegment::IndexBufferSegment(GLuint start, GLuint end)
{
this->start = start;
this->end = end;
}
//------------------------------ Secondary... | 17.548387 | 74 | 0.606618 | GPUWorks |
fa862e6bccb7fae496c3d8819b8bf739ad5f4f72 | 1,621 | cpp | C++ | qt_ai_network/ai2_pathfinding/code/Breadth_First.cpp | marwac-9/labs | 343c19db16d702b7af392d0325e69aa575ad04c1 | [
"Apache-2.0"
] | 1 | 2019-10-05T04:06:50.000Z | 2019-10-05T04:06:50.000Z | qt_ai_network/ai2_pathfinding/code/Breadth_First.cpp | marwac-9/LTU-labs | 343c19db16d702b7af392d0325e69aa575ad04c1 | [
"Apache-2.0"
] | null | null | null | qt_ai_network/ai2_pathfinding/code/Breadth_First.cpp | marwac-9/LTU-labs | 343c19db16d702b7af392d0325e69aa575ad04c1 | [
"Apache-2.0"
] | null | null | null | #include "Breadth_First.h"
#include "Face.h"
#include "Edge.h"
#include <unordered_map>
BreadthFirst::BreadthFirst()
{
}
BreadthFirst::~BreadthFirst()
{
}
void BreadthFirst::BFS(Face* start, Face* goal, int mapSize, std::vector<Face*>& nodePath)
{
Face** Queue = new Face*[mapSize];
std::unordered_map<Face*, bool> ... | 21.051948 | 90 | 0.645281 | marwac-9 |
fa87955f9a6f32cc158faeaa7263440951aa935b | 2,821 | cpp | C++ | src/main.cpp | cbeck88/flashcards | dc3a517c1bb527645358db0229075b4a1692c3c6 | [
"WTFPL"
] | null | null | null | src/main.cpp | cbeck88/flashcards | dc3a517c1bb527645358db0229075b4a1692c3c6 | [
"WTFPL"
] | null | null | null | src/main.cpp | cbeck88/flashcards | dc3a517c1bb527645358db0229075b4a1692c3c6 | [
"WTFPL"
] | null | null | null | #include <algorithm>
#include <fstream>
#include <iostream>
#include <random>
#include <string>
#include <vector>
#include "catalog.hpp"
namespace flash {
struct controller {
catalog cards;
std::mt19937 rng;
static void prompt_impl(const std::string & query, const std::string & answer) {
std::cout << '"' ... | 20.442029 | 85 | 0.556186 | cbeck88 |
fa88d7eba6f8e9eaf50ecb4b4df86f9b212bed51 | 6,340 | cc | C++ | tasks/process_metabuf_task.cc | smukil/cachemover | 159ae10072f23b7d4168a804b672e1e810d4df19 | [
"Apache-2.0"
] | 27 | 2021-11-27T06:11:54.000Z | 2022-03-31T18:53:51.000Z | tasks/process_metabuf_task.cc | Netflix/cachemover | 236998c442eed704cc9cf9df9be4f299e7f3b6e1 | [
"Apache-2.0"
] | null | null | null | tasks/process_metabuf_task.cc | Netflix/cachemover | 236998c442eed704cc9cf9df9be4f299e7f3b6e1 | [
"Apache-2.0"
] | null | null | null | /**
*
* Copyright 2021 Netflix, 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
*
* Unless required by a... | 31.078431 | 92 | 0.672871 | smukil |
fa8a431ac27f66c322f134372c2d59cc6876d0b4 | 3,263 | inl | C++ | owCore/RefManager1DimAssync.inl | adan830/OpenWow | 9b6e9c248bd185b1677fe616d2a3a81a35ca8894 | [
"Apache-2.0"
] | null | null | null | owCore/RefManager1DimAssync.inl | adan830/OpenWow | 9b6e9c248bd185b1677fe616d2a3a81a35ca8894 | [
"Apache-2.0"
] | null | null | null | owCore/RefManager1DimAssync.inl | adan830/OpenWow | 9b6e9c248bd185b1677fe616d2a3a81a35ca8894 | [
"Apache-2.0"
] | 1 | 2020-05-11T13:32:49.000Z | 2020-05-11T13:32:49.000Z | #pragma once
#include "RefManager1DimAssync.h"
template <class T>
CRefManager1DimAssync<T>::CRefManager1DimAssync()
{
#ifndef DISABLE_ASSYNC
if (m_Event_Add == nullptr && m_Thread_Loader == nullptr)
{
m_Event_Add = CreateEvent(NULL, TRUE, TRUE, NULL);
m_Thread_Loader = CreateThread(NULL, 0, &ThreadProc, this, N... | 18.861272 | 84 | 0.694146 | adan830 |
fa8c15f2e16ba4777ea1417d021e2af3df6b2e70 | 5,157 | cpp | C++ | Source/src/components/ComponentObstacle.cpp | Akita-Interactive/Hachiko-Engine | 0e3e0377ac5c8f5b15c525c8fcff384e9c92c14b | [
"MIT"
] | 5 | 2022-02-10T23:31:11.000Z | 2022-02-11T19:32:38.000Z | Source/src/components/ComponentObstacle.cpp | Akita-Interactive/Hachiko-Engine | 0e3e0377ac5c8f5b15c525c8fcff384e9c92c14b | [
"MIT"
] | null | null | null | Source/src/components/ComponentObstacle.cpp | Akita-Interactive/Hachiko-Engine | 0e3e0377ac5c8f5b15c525c8fcff384e9c92c14b | [
"MIT"
] | null | null | null | #include "core/hepch.h"
#include "ComponentObstacle.h"
#include "ComponentTransform.h"
#include "Application.h"
#include "modules/ModuleNavigation.h"
#include "resources/ResourceNavMesh.h"
#include "DetourTileCache/DetourTileCache.h"
Hachiko::ComponentObstacle::ComponentObstacle(GameObject* container) : Component(Ty... | 27 | 150 | 0.631181 | Akita-Interactive |
fa8f88a378d4544dd3eaa8a898ad096b199e97d9 | 3,219 | cpp | C++ | client/Camera.cpp | fvazquezf/7542_TpFinal | 1699d9cf97794186f7e41d3bb2d33ba9239eaa3f | [
"MIT"
] | null | null | null | client/Camera.cpp | fvazquezf/7542_TpFinal | 1699d9cf97794186f7e41d3bb2d33ba9239eaa3f | [
"MIT"
] | null | null | null | client/Camera.cpp | fvazquezf/7542_TpFinal | 1699d9cf97794186f7e41d3bb2d33ba9239eaa3f | [
"MIT"
] | null | null | null | #include "Camera.h"
#include <iostream>
#include "Renderizable.h"
#include <cmath>
#define PI 3.141593f
Camera::Camera(SdlWindow& window)
: window(window),
logicalCenterX(0),
logicalCenterY(0) {
centerPix = window.getCenter();
width = 2*centerPix.x;
height = 2*centerPix.y;
}
void Camera::render(Render... | 29.805556 | 98 | 0.593973 | fvazquezf |
fa8faa3a10d43824e6cca0cee3f02a341a6cd088 | 519 | cpp | C++ | leetcode2/countprime.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2016-01-20T08:26:34.000Z | 2016-01-20T08:26:34.000Z | leetcode2/countprime.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2015-10-21T05:38:17.000Z | 2015-11-02T07:42:55.000Z | leetcode2/countprime.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
int countPrimes(int n) {
vector<bool> vis(n,0);
for(int i=2; i<sqrt(n); i++){
if(!vis[i]){
// j*i may overflow when n is large near INT_MAX
for(int j=i; j*i<n; j++){
vis[j*i]=1;
}
... | 20.76 | 64 | 0.314066 | WIZARD-CXY |