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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d522bc150024129c5228765640518b246aff9d4a | 917 | cpp | C++ | src/plugins/secman/persistentstorage.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 120 | 2015-01-22T14:10:39.000Z | 2021-11-25T12:57:16.000Z | src/plugins/secman/persistentstorage.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 8 | 2015-02-07T19:38:19.000Z | 2017-11-30T20:18:28.000Z | src/plugins/secman/persistentstorage.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 33 | 2015-02-07T16:59:55.000Z | 2021-10-12T00:36:40.000Z | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2010 Vadim Misbakh-Soloviev, Georg Rudoy
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at https://ww... | 24.783784 | 83 | 0.606325 | Maledictus |
d5260f9491adb7dc7e37e3a26d813b233c0b2b38 | 1,068 | cpp | C++ | 1. PreliminaryAlgorithm/BinarySearch/1.A1085.cpp | huangjiayu-zju/PAT-A | ecb07409727c56d556a5af1b201158bab0d0d2e8 | [
"MIT"
] | null | null | null | 1. PreliminaryAlgorithm/BinarySearch/1.A1085.cpp | huangjiayu-zju/PAT-A | ecb07409727c56d556a5af1b201158bab0d0d2e8 | [
"MIT"
] | null | null | null | 1. PreliminaryAlgorithm/BinarySearch/1.A1085.cpp | huangjiayu-zju/PAT-A | ecb07409727c56d556a5af1b201158bab0d0d2e8 | [
"MIT"
] | null | null | null | #include<cstdio>
#include<algorithm>
using namespace std;
//从左至右扫描序列,对其中的每个数a[i],在a[i+1]~a[n-1]内二分查找第一个超过a[i]*p的数的位置j
//这样j-i就是对位置i来说满足条件的最远长度,取所有j-i的最大值即可
const int maxn = 100010;
int n, p, seq[maxn];
int binarySearch(int i, long long x)
{ //在[i+1,n-1]范围内查找第一个大于x的数的位置
if (seq[n - 1] <= x)
{
return n... | 21.36 | 90 | 0.469101 | huangjiayu-zju |
d52980a6264b1af8232d923405dda33df7abda2d | 4,716 | cpp | C++ | contrib/preflate/preflate_seq_chain.cpp | Razor12911/xtool | 4797195ad310e8f6dc2eae8eb86fe14683f77cf0 | [
"MIT"
] | 11 | 2022-01-17T22:05:37.000Z | 2022-02-23T19:18:19.000Z | contrib/preflate/preflate_seq_chain.cpp | Razor12911/xtool | 4797195ad310e8f6dc2eae8eb86fe14683f77cf0 | [
"MIT"
] | null | null | null | contrib/preflate/preflate_seq_chain.cpp | Razor12911/xtool | 4797195ad310e8f6dc2eae8eb86fe14683f77cf0 | [
"MIT"
] | null | null | null | /* Copyright 2018 Dirk Steinke
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 writi... | 33.446809 | 102 | 0.610263 | Razor12911 |
d5299f014cc7416aa941ddcf4d3e010d2ee6026a | 3,648 | cpp | C++ | clang-tools-extra/clangd/refactor/tweaks/SwapIfBranches.cpp | Santhosh-KS/llvm-project | 3f59ff7ab43dc4a56eb5beadc03ab18ba62d478d | [
"Apache-2.0"
] | 305 | 2019-09-14T17:16:05.000Z | 2022-03-31T15:05:20.000Z | clang-tools-extra/clangd/refactor/tweaks/SwapIfBranches.cpp | Santhosh-KS/llvm-project | 3f59ff7ab43dc4a56eb5beadc03ab18ba62d478d | [
"Apache-2.0"
] | 11 | 2019-10-17T21:11:52.000Z | 2022-02-17T20:10:00.000Z | clang-tools-extra/clangd/refactor/tweaks/SwapIfBranches.cpp | Santhosh-KS/llvm-project | 3f59ff7ab43dc4a56eb5beadc03ab18ba62d478d | [
"Apache-2.0"
] | 24 | 2019-10-03T11:22:11.000Z | 2022-01-25T09:59:30.000Z | //===--- SwapIfBranches.cpp --------------------------------------*- C++-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 38 | 80 | 0.626371 | Santhosh-KS |
d52a43c89110d2ba055080f9d39630405447198c | 784 | cpp | C++ | backend/tests/test-helib-fp-int8_t-encrypt-serialize.cpp | vkurilin/SHEEP | 2ccaef32c16efcf5dbc8eefd1dc243bed4ac2fbb | [
"MIT"
] | 40 | 2018-12-03T13:01:06.000Z | 2022-02-23T13:04:12.000Z | backend/tests/test-helib-fp-int8_t-encrypt-serialize.cpp | vkurilin/SHEEP | 2ccaef32c16efcf5dbc8eefd1dc243bed4ac2fbb | [
"MIT"
] | 63 | 2018-09-11T14:13:31.000Z | 2020-01-14T16:12:39.000Z | backend/tests/test-helib-fp-int8_t-encrypt-serialize.cpp | vkurilin/SHEEP | 2ccaef32c16efcf5dbc8eefd1dc243bed4ac2fbb | [
"MIT"
] | 7 | 2019-07-10T14:48:31.000Z | 2022-03-23T09:12:11.000Z | #include <algorithm>
#include <cassert>
#include <cstdint>
#include "circuit-test-util.hpp"
#include "context-helib.hpp"
#include "simple-circuits.hpp"
using namespace SHEEP;
typedef ContextHElib_Fp<int8_t>::Plaintext Plaintext;
typedef ContextHElib_Fp<int8_t>::Ciphertext Ciphertext;
// Encrypt a value, decrypt the r... | 29.037037 | 77 | 0.737245 | vkurilin |
d52b181fbda472a41941228395103825e045e65e | 1,415 | cpp | C++ | MonoNative/mscorlib/System/Security/Policy/mscorlib_System_Security_Policy_ApplicationTrustEnumerator.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative/mscorlib/System/Security/Policy/mscorlib_System_Security_Policy_ApplicationTrustEnumerator.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative/mscorlib/System/Security/Policy/mscorlib_System_Security_Policy_ApplicationTrustEnumerator.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | #include <mscorlib/System/Security/Policy/mscorlib_System_Security_Policy_ApplicationTrustEnumerator.h>
#include <mscorlib/System/Security/Policy/mscorlib_System_Security_Policy_ApplicationTrust.h>
#include <mscorlib/System/mscorlib_System_Type.h>
#include <mscorlib/System/mscorlib_System_String.h>
namespace mscorli... | 32.906977 | 183 | 0.741343 | brunolauze |
d52c13fb7cc5d68dd3b9ded7b4ce033eecb3378b | 4,444 | cpp | C++ | tem/src/v20210701/model/CreateCosTokenRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | tem/src/v20210701/model/CreateCosTokenRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | tem/src/v20210701/model/CreateCosTokenRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 26.141176 | 98 | 0.729073 | suluner |
d52d2d1e47065a18db8eb3ef3f8c7da9ff8e291a | 37,157 | hpp | C++ | thirdparty/json-voorhees/include/jsonv/value.hpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | thirdparty/json-voorhees/include/jsonv/value.hpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | thirdparty/json-voorhees/include/jsonv/value.hpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | /** \file jsonv/value.hpp
*
* Copyright (c) 2012-2015 by Travis Gockel. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify it under the terms of the Apache License
* as published by the Apache Software Foundation, either version 2 of the License, or (at your option) ... | 35.086874 | 127 | 0.613613 | liftchampion |
d52d3ef79885ead4daab4a834fefb5dc9f7d710d | 6,539 | cpp | C++ | framework/src/bundle/BundleVersion.cpp | CMakeezer/CppMicroServices | b787be130391bc278386b75da541b6661fe2f553 | [
"Apache-2.0"
] | 1 | 2020-08-13T15:21:11.000Z | 2020-08-13T15:21:11.000Z | framework/src/bundle/BundleVersion.cpp | CMakeezer/CppMicroServices | b787be130391bc278386b75da541b6661fe2f553 | [
"Apache-2.0"
] | null | null | null | framework/src/bundle/BundleVersion.cpp | CMakeezer/CppMicroServices | b787be130391bc278386b75da541b6661fe2f553 | [
"Apache-2.0"
] | 1 | 2020-08-13T15:21:45.000Z | 2020-08-13T15:21:45.000Z | /*=============================================================================
Library: CppMicroServices
Copyright (c) The CppMicroServices developers. See the COPYRIGHT
file at the top-level directory of this distribution and at
https://github.com/CppMicroServices/CppMicroServices/COPYRIGHT .
Licensed un... | 23.024648 | 80 | 0.649182 | CMakeezer |
d5365c85a6b5e1df62c2bd2017d064f6431c9e89 | 981 | cpp | C++ | droneLoggerROSModule/src/source/droneLoggerROSModuleNode.cpp | MorS25/cvg_quadrotor_swarm | da75d02049163cf65fd7305bc46a16359a851c7c | [
"BSD-3-Clause"
] | null | null | null | droneLoggerROSModule/src/source/droneLoggerROSModuleNode.cpp | MorS25/cvg_quadrotor_swarm | da75d02049163cf65fd7305bc46a16359a851c7c | [
"BSD-3-Clause"
] | null | null | null | droneLoggerROSModule/src/source/droneLoggerROSModuleNode.cpp | MorS25/cvg_quadrotor_swarm | da75d02049163cf65fd7305bc46a16359a851c7c | [
"BSD-3-Clause"
] | null | null | null | //////////////////////////////////////////////////////
// droneLoggerROSModuleNode.cpp
//
// Created on: Dec 11, 2013
// Author: jespestana
//
// Last modification on: Dec 11, 2013
// Author: jespestana
//
//////////////////////////////////////////////////////
#include <iostream>
#include "ros/ros.h"
#inc... | 23.926829 | 71 | 0.510703 | MorS25 |
d5370e59cd62fb16f9a94f3f6fa995657d4429df | 100,992 | hpp | C++ | include/blib/bun/impl/orm.hpp | sp-mishra/bun | b2a3601872bb13cb92c05368b625e3448513fb93 | [
"BSD-3-Clause"
] | 86 | 2016-05-17T08:22:35.000Z | 2022-03-19T20:01:43.000Z | include/blib/bun/impl/orm.hpp | sp-mishra/bun | b2a3601872bb13cb92c05368b625e3448513fb93 | [
"BSD-3-Clause"
] | 22 | 2016-04-30T20:07:02.000Z | 2020-06-07T15:23:02.000Z | include/blib/bun/impl/orm.hpp | sp-mishra/bun | b2a3601872bb13cb92c05368b625e3448513fb93 | [
"BSD-3-Clause"
] | 23 | 2016-05-18T16:50:28.000Z | 2022-03-19T20:01:57.000Z | #pragma once
///////////////////////////////////////////////////////////////////////////////
/// @file Bun.hpp
/// @author BrainlessLabs
/// @version 0.3
/// @brief The include file for Bun ORM. This file includes all the source
/// to make the class/struct persist in sqlite. Users need to include
/// on... | 45.718425 | 375 | 0.505901 | sp-mishra |
d53922d188feee012efef3416e355a3a58b26fdd | 792 | cpp | C++ | src/taglib/TagLibUnity_mpeg.cpp | khanhas/nowplaying-node | 6d4455d6ab196866ad409635f6db3fd15cc96251 | [
"MIT"
] | 14 | 2018-05-27T22:01:35.000Z | 2022-03-05T19:05:33.000Z | src/taglib/TagLibUnity_mpeg.cpp | khanhas/nowplaying-node | 6d4455d6ab196866ad409635f6db3fd15cc96251 | [
"MIT"
] | null | null | null | src/taglib/TagLibUnity_mpeg.cpp | khanhas/nowplaying-node | 6d4455d6ab196866ad409635f6db3fd15cc96251 | [
"MIT"
] | 5 | 2018-06-06T03:14:37.000Z | 2021-10-11T17:52:29.000Z | /* Copyright (C) 2014 Rainmeter Project Developers
*
* This Source Code Form is subject to the terms of the GNU General Public
* License; either version 2 of the License, or (at your option) any later
* version. If a copy of the GPL was not distributed with this file, You can
* obtain one at <https://www.gnu.org/l... | 34.434783 | 95 | 0.752525 | khanhas |
d53931a98fa933cdd46718843aaf4b5c3aed6cea | 535 | cpp | C++ | 2nd/204_count_primes.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | 2nd/204_count_primes.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | 2nd/204_count_primes.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
class Solution {
public:
int countPrimes(int n) {
if (n < 3)
return 0;
vector<bool> vec(n, true);
for (int i = 2; i < n; ++i) {
if (!vec[i])
continue;
for (in... | 19.107143 | 53 | 0.472897 | buptlxb |
d53a10df498d4b2f887daf6a5b195a1ddb15f940 | 2,596 | hpp | C++ | tools/dump/switches.hpp | paulhuggett/pstore2 | a0c663d10a2e2713fdf39ecdae1f9c1e96041f5c | [
"Apache-2.0"
] | 11 | 2018-02-02T21:24:49.000Z | 2020-12-11T04:06:03.000Z | tools/dump/switches.hpp | SNSystems/pstore | 74e9dd960245d6bfc125af03ed964d8ad660a62d | [
"Apache-2.0"
] | 63 | 2018-02-05T17:24:59.000Z | 2022-03-22T17:26:28.000Z | tools/dump/switches.hpp | paulhuggett/pstore | 067be94d87c87fce524c8d76c6f47c347d8f1853 | [
"Apache-2.0"
] | 5 | 2020-01-13T22:47:11.000Z | 2021-05-14T09:31:15.000Z | //===- tools/dump/switches.hpp ----------------------------*- mode: C++ -*-===//
//* _ _ _ *
//* _____ _(_) |_ ___| |__ ___ ___ *
//* / __\ \ /\ / / | __/ __| '_ \ / _ \/ __| *
//* \__ \\ V V /| | || (__| | | | __/\__ \ *
//* |___/ \_/\_/ |_|\__\___|_| |_|\___||___/ *
//* ... | 36.56338 | 87 | 0.605547 | paulhuggett |
d53a3436a1ce275d1957fe3be24593e0daded105 | 609 | cpp | C++ | codeforces/259c.little-elephant-and-bits/259c.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | 3 | 2018-01-19T14:09:23.000Z | 2018-02-01T00:40:55.000Z | codeforces/259c.little-elephant-and-bits/259c.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | null | null | null | codeforces/259c.little-elephant-and-bits/259c.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | null | null | null | // K1
// :)
#include <iostream>
#include <fstream>
#include <algorithm>
#include <vector>
#include <queue>
#include <bitset>
#include <string>
#include <cmath>
#include <iomanip>
#include <set>
#include <map>
#define EPS 1e-8
#define PI 3.141592653589793
#define point pair <int , int>
#define X first
#define Y second... | 15.225 | 53 | 0.646962 | KayvanMazaheri |
d53cb5b3dd09c3c05263a13ef12ed4944171b8cf | 15,522 | cc | C++ | src/main/solverUtils.cc | trey0/zmdp | d07d4f92479b92a56f955d464837fcce89085ebf | [
"Apache-2.0"
] | 39 | 2015-02-23T16:52:30.000Z | 2022-01-26T09:08:24.000Z | src/main/solverUtils.cc | trey0/zmdp | d07d4f92479b92a56f955d464837fcce89085ebf | [
"Apache-2.0"
] | 3 | 2016-09-06T00:34:27.000Z | 2021-09-13T09:09:01.000Z | src/main/solverUtils.cc | trey0/zmdp | d07d4f92479b92a56f955d464837fcce89085ebf | [
"Apache-2.0"
] | 11 | 2015-09-05T21:40:41.000Z | 2020-10-21T07:33:36.000Z | /********** tell emacs we use -*- c++ -*- style comments *******************
Copyright (c) 2002-2005, Trey Smith. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may
obtain a copy of the License at
http:/... | 31.938272 | 80 | 0.593094 | trey0 |
d53f772ff269353f3dc548dd8ac90dfaeda87871 | 16,127 | cc | C++ | src/mem/snoop_filter.cc | fei-shan/gem5-experiment | 70781db30d42b1fe50e495bd04f7755a4b0e0e59 | [
"BSD-3-Clause"
] | 1 | 2022-03-20T23:23:41.000Z | 2022-03-20T23:23:41.000Z | src/mem/snoop_filter.cc | fei-shan/gem5-experiment | 70781db30d42b1fe50e495bd04f7755a4b0e0e59 | [
"BSD-3-Clause"
] | 1 | 2021-04-17T17:13:56.000Z | 2021-04-17T17:13:56.000Z | src/mem/snoop_filter.cc | fei-shan/gem5-experiment | 70781db30d42b1fe50e495bd04f7755a4b0e0e59 | [
"BSD-3-Clause"
] | 1 | 2021-09-12T02:45:38.000Z | 2021-09-12T02:45:38.000Z | /*
* Copyright (c) 2013-2017,2019 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of... | 38.860241 | 80 | 0.644075 | fei-shan |
d54054a788b27283e72ebd6635c129fe46dae05b | 548 | cpp | C++ | core/src/Platform/MiniAudio/MiniAudio.cpp | BryceStandley/TNAH | 909ba9cf9f04632a3b518646c3af39752bd9d407 | [
"MIT"
] | 1 | 2021-11-08T09:44:40.000Z | 2021-11-08T09:44:40.000Z | core/src/Platform/MiniAudio/MiniAudio.cpp | BryceStandley/TNAH | 909ba9cf9f04632a3b518646c3af39752bd9d407 | [
"MIT"
] | null | null | null | core/src/Platform/MiniAudio/MiniAudio.cpp | BryceStandley/TNAH | 909ba9cf9f04632a3b518646c3af39752bd9d407 | [
"MIT"
] | null | null | null | #include "tnahpch.h"
#include "MiniAudio.h"
namespace tnah {
bool MiniAudio::SetListener(TransformComponent &transforms) const
{
return false;
}
bool MiniAudio::AddAudioSource(AudioSourceComponent &sound)
{
return false;
}
bool MiniAudio::UpdateAudioSource(AudioSourceComponent &sound)
{
return false;
... | 13.047619 | 89 | 0.717153 | BryceStandley |
d54067c388a2f93e63e5d860debc17ed9f6bc03d | 4,770 | cpp | C++ | world/source/Memberships.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | world/source/Memberships.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | world/source/Memberships.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "Memberships.hpp"
#include "CreatureFeatures.hpp"
#include "MembershipTextKeys.hpp"
#include "Serialize.hpp"
using namespace std;
// Memberships
bool Memberships::operator==(const Memberships& m) const
{
bool result = true;
result = result && memberships == m.memberships;
return resul... | 22.083333 | 129 | 0.716981 | prolog |
d540889433fb259bb6338c0478e03cbd118239ce | 2,546 | hpp | C++ | OcularCore/include/Resources/ResourceDetails.hpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 8 | 2017-01-27T01:06:06.000Z | 2020-11-05T20:23:19.000Z | OcularCore/include/Resources/ResourceDetails.hpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 39 | 2016-06-03T02:00:36.000Z | 2017-03-19T17:47:39.000Z | OcularCore/include/Resources/ResourceDetails.hpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 4 | 2019-05-22T09:13:36.000Z | 2020-12-01T03:17:45.000Z | /**
* Copyright 2014-2017 Steven T Sell (ssell@vertexfragment.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 requir... | 23.357798 | 142 | 0.501964 | ssell |
d5421111c38bc93789c9f630947f17728a966993 | 70,130 | cpp | C++ | HotPatcher/Source/HotPatcherRuntime/Private/FlibPatchParserHelper.cpp | roy5931/HotPatcher | 925b2ba574dea912041990c0f5541dfc4a6067ca | [
"MIT"
] | null | null | null | HotPatcher/Source/HotPatcherRuntime/Private/FlibPatchParserHelper.cpp | roy5931/HotPatcher | 925b2ba574dea912041990c0f5541dfc4a6067ca | [
"MIT"
] | null | null | null | HotPatcher/Source/HotPatcherRuntime/Private/FlibPatchParserHelper.cpp | roy5931/HotPatcher | 925b2ba574dea912041990c0f5541dfc4a6067ca | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
// project header
#include "FlibPatchParserHelper.h"
#include "FlibAssetManageHelper.h"
#include "BaseTypes/AssetManager/FFileArrayDirectoryVisitor.hpp"
#include "FlibAssetManageHelper.h"
#include "FlibAssetManageHelper.h"
#include ... | 35.082541 | 226 | 0.749423 | roy5931 |
d5471f18a30f29d8c7084ce6a0cad491124e082c | 8,225 | inl | C++ | unit_tests/api/cl_enqueue_image_tests.inl | FelipeMLopez/compute-runtime | 3e3d2d3b3ac9129b1ee9c4251a2586fef0b300b8 | [
"MIT"
] | 3 | 2019-09-20T23:26:36.000Z | 2019-10-03T17:44:12.000Z | unit_tests/api/cl_enqueue_image_tests.inl | FelipeMLopez/compute-runtime | 3e3d2d3b3ac9129b1ee9c4251a2586fef0b300b8 | [
"MIT"
] | 1 | 2019-09-17T08:06:24.000Z | 2019-09-17T08:06:24.000Z | unit_tests/api/cl_enqueue_image_tests.inl | FelipeMLopez/compute-runtime | 3e3d2d3b3ac9129b1ee9c4251a2586fef0b300b8 | [
"MIT"
] | 3 | 2019-05-16T07:22:51.000Z | 2019-11-11T03:05:32.000Z | /*
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "test.h"
#include "unit_tests/fixtures/image_fixture.h"
#include "unit_tests/mocks/mock_buffer.h"
#include "unit_tests/mocks/mock_command_queue.h"
#include "unit_tests/mocks/mock_context.h"
#include <functional>
using ... | 44.22043 | 134 | 0.717568 | FelipeMLopez |
d54878115d668fe93b900e80ce96b14dbf318a3d | 1,500 | hpp | C++ | gamedata/AreaSize_Data.hpp | rigertd/LegacyMUD | cf351cca466158f0682f6c877b88d5c2eb59e240 | [
"BSD-3-Clause"
] | 1 | 2021-04-24T06:01:57.000Z | 2021-04-24T06:01:57.000Z | gamedata/AreaSize_Data.hpp | rigertd/LegacyMUD | cf351cca466158f0682f6c877b88d5c2eb59e240 | [
"BSD-3-Clause"
] | null | null | null | gamedata/AreaSize_Data.hpp | rigertd/LegacyMUD | cf351cca466158f0682f6c877b88d5c2eb59e240 | [
"BSD-3-Clause"
] | null | null | null | /*!
\file AreaSize_Data.hpp
\author Keith Adkins
\created 3/3/2017
\modified 3/3/2017
\course CS467, Winter 2017
\details Declaration file for the AreaSize_Data class. Functions are provided to
convert between string and enum values. This class should not be instantiated.
*/... | 25 | 91 | 0.551333 | rigertd |
d5490b226194b0cbf2c20c9bcaa0928e907c96e1 | 9,078 | cpp | C++ | src/adera/Machines/RCSController.cpp | TheOpenSpaceProgram/osp-magnum | c34b2e27a5ab5efe1270838991d908ecef4d7612 | [
"MIT"
] | 70 | 2020-01-27T22:16:36.000Z | 2022-03-31T01:29:22.000Z | src/adera/Machines/RCSController.cpp | TheOpenSpaceProgram/osp-magnum | c34b2e27a5ab5efe1270838991d908ecef4d7612 | [
"MIT"
] | 107 | 2020-09-21T04:26:49.000Z | 2022-03-26T05:57:15.000Z | src/adera/Machines/RCSController.cpp | TheOpenSpaceProgram/osp-magnum | c34b2e27a5ab5efe1270838991d908ecef4d7612 | [
"MIT"
] | 12 | 2020-09-27T20:32:51.000Z | 2022-03-23T15:14:36.000Z | /**
* Open Space Program
* Copyright © 2019-2020 Open Space Program Project
*
* MIT License
*
* 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 li... | 35.740157 | 83 | 0.633289 | TheOpenSpaceProgram |
d54bee1991842c09805289de2c6c5715a06252ef | 2,129 | cpp | C++ | src/net_types.cpp | republic-productions/finalcoin | 7c0f335ded1e5c662034c822ca2c474b8e62778f | [
"MIT"
] | null | null | null | src/net_types.cpp | republic-productions/finalcoin | 7c0f335ded1e5c662034c822ca2c474b8e62778f | [
"MIT"
] | null | null | null | src/net_types.cpp | republic-productions/finalcoin | 7c0f335ded1e5c662034c822ca2c474b8e62778f | [
"MIT"
] | null | null | null | // Copyright (c) 2021 The Finalcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <net_types.h>
#include <netaddress.h>
#include <netbase.h>
#include <univalue.h>
CBanEntry::CBanEntry(const UniValue&... | 32.257576 | 91 | 0.687647 | republic-productions |
d54d403b78e659a3739eab8938d2a195f9e540d4 | 2,058 | hpp | C++ | include/burst/iterator/detail/uniform_range_tuple_please.hpp | izvolov/thrust | 399e12eed54131d731c4c5ef40512b17107bca56 | [
"BSL-1.0"
] | 85 | 2015-11-25T14:05:42.000Z | 2021-11-15T11:47:19.000Z | include/burst/iterator/detail/uniform_range_tuple_please.hpp | izvolov/burst | 399e12eed54131d731c4c5ef40512b17107bca56 | [
"BSL-1.0"
] | 147 | 2015-01-11T08:36:53.000Z | 2021-11-04T09:03:36.000Z | include/burst/iterator/detail/uniform_range_tuple_please.hpp | izvolov/thrust | 399e12eed54131d731c4c5ef40512b17107bca56 | [
"BSL-1.0"
] | 6 | 2016-06-02T17:28:26.000Z | 2020-04-05T11:16:16.000Z | #ifndef BURST__ITERATOR__DETAIL__UNIFORM_RANGE_TUPLE_PLEASE_HPP
#define BURST__ITERATOR__DETAIL__UNIFORM_RANGE_TUPLE_PLEASE_HPP
#include <burst/range/variant_range.hpp>
#include <burst/tuple/by_all.hpp>
#include <burst/type_traits/are_same.hpp>
#include <tuple>
#include <type_traits>
#include <utility>
namespace bur... | 31.181818 | 94 | 0.614674 | izvolov |
d551110a940f8c29cf31fc3cc91bb3168d0afe81 | 3,940 | cpp | C++ | Foundation/testsuite/src/LineEndingConverterTest.cpp | e0861280/poco | 961ca3e246f55646ab6e101e35e3ec0db359360f | [
"BSL-1.0"
] | null | null | null | Foundation/testsuite/src/LineEndingConverterTest.cpp | e0861280/poco | 961ca3e246f55646ab6e101e35e3ec0db359360f | [
"BSL-1.0"
] | null | null | null | Foundation/testsuite/src/LineEndingConverterTest.cpp | e0861280/poco | 961ca3e246f55646ab6e101e35e3ec0db359360f | [
"BSL-1.0"
] | 1 | 2019-10-21T03:40:54.000Z | 2019-10-21T03:40:54.000Z | //
// LineEndingConverterTest.cpp
//
// $Id: //poco/1.4/Foundation/testsuite/src/LineEndingConverterTest.cpp#1 $
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "LineEndingConverterTest.h"
#include "Poco/CppUnit/Test... | 26.986301 | 100 | 0.768528 | e0861280 |
d553fdd4494a551c82bb840cca6d211cdcb19797 | 65,143 | cpp | C++ | wpilibc/Athena/src/CANTalon.cpp | flamingchickens1540/wpilib-mirror | 58a82be5baaf0248ce3161804c9743724f165479 | [
"BSD-3-Clause"
] | null | null | null | wpilibc/Athena/src/CANTalon.cpp | flamingchickens1540/wpilib-mirror | 58a82be5baaf0248ce3161804c9743724f165479 | [
"BSD-3-Clause"
] | null | null | null | wpilibc/Athena/src/CANTalon.cpp | flamingchickens1540/wpilib-mirror | 58a82be5baaf0248ce3161804c9743724f165479 | [
"BSD-3-Clause"
] | null | null | null | /*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2014-2016. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 34.430761 | 161 | 0.707152 | flamingchickens1540 |
d55869b798943dce25938c135d640bf7c08d4d80 | 10,545 | cpp | C++ | PhysX_3.4/Samples/SampleFramework/framework/src/SampleCommandLine.cpp | DoubleTT-Changan/0715 | acbd071531ca4f3e2a82525b92f60824178c39fa | [
"Unlicense"
] | null | null | null | PhysX_3.4/Samples/SampleFramework/framework/src/SampleCommandLine.cpp | DoubleTT-Changan/0715 | acbd071531ca4f3e2a82525b92f60824178c39fa | [
"Unlicense"
] | null | null | null | PhysX_3.4/Samples/SampleFramework/framework/src/SampleCommandLine.cpp | DoubleTT-Changan/0715 | acbd071531ca4f3e2a82525b92f60824178c39fa | [
"Unlicense"
] | null | null | null | //
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in bin... | 24.69555 | 133 | 0.646088 | DoubleTT-Changan |
d55892c4dbdc01267c7edf9e587294e5ec8e2bc9 | 28,540 | cpp | C++ | src/solver/SolverNLOptGenericGeometric.cpp | nsomani/constraint-controller-library | 5452b32c5b3cc4c602fb7b700bee5c950a9e0541 | [
"BSD-2-Clause"
] | 3 | 2016-10-31T08:51:09.000Z | 2020-09-08T15:37:41.000Z | src/solver/SolverNLOptGenericGeometric.cpp | nsomani/constraint-controller-library | 5452b32c5b3cc4c602fb7b700bee5c950a9e0541 | [
"BSD-2-Clause"
] | 2 | 2016-10-11T05:52:00.000Z | 2016-12-21T15:38:08.000Z | src/solver/SolverNLOptGenericGeometric.cpp | nsomani/constraint-controller-library | 5452b32c5b3cc4c602fb7b700bee5c950a9e0541 | [
"BSD-2-Clause"
] | null | null | null | //
//Copyright (c) 2016, Nikhil Somani
//All rights reserved.
//
//Redistribution and use in source and binary forms, with or without
//modification, are permitted provided that the following conditions are met:
//
//* Redistributions of source code must retain the above copyright notice,
// this list of conditions an... | 52.080292 | 278 | 0.659215 | nsomani |
d55929d6c571f2c6846b82bad79d8e4002112bbf | 21,078 | cpp | C++ | deps/usr/src/libwav/libwav/PaTask.cpp | xia-lixun/Libaudio.jl | 0e3b60d2d7c3e73f9741e7ab8721c213a9b4bf2d | [
"MIT"
] | 4 | 2018-09-27T13:09:53.000Z | 2022-02-14T12:25:29.000Z | deps/usr/src/libwav/libwav/PaTask.cpp | xia-lixun/Libaudio.jl | 0e3b60d2d7c3e73f9741e7ab8721c213a9b4bf2d | [
"MIT"
] | null | null | null | deps/usr/src/libwav/libwav/PaTask.cpp | xia-lixun/Libaudio.jl | 0e3b60d2d7c3e73f9741e7ab8721c213a9b4bf2d | [
"MIT"
] | null | null | null | /** @file PaTask.cpp
@ingroup PaDynamic
@brief Portaudio wrapper for dynamic languages: Julia/Matlab etc.
@author Lixun Xia <lixun.xia2@harman.com>
*/
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <string>
#include <cassert>
#include "./CsWav.h"
#include "../include/portaudio.h"
#include "../includ... | 27.023077 | 155 | 0.691384 | xia-lixun |
d559b5cd6fef87a9e6b8f1d147e33a79f6724e0f | 3,025 | cpp | C++ | Visual Mercutio/zModelWeb/PSS_PublishModelAttributesDialog.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 1 | 2022-01-31T06:24:24.000Z | 2022-01-31T06:24:24.000Z | Visual Mercutio/zModelWeb/PSS_PublishModelAttributesDialog.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-04-11T15:50:42.000Z | 2021-06-05T08:23:04.000Z | Visual Mercutio/zModelWeb/PSS_PublishModelAttributesDialog.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-01-08T00:55:18.000Z | 2022-01-31T06:24:18.000Z | /****************************************************************************
* ==> PSS_PublishModelAttributesDialog ------------------------------------*
****************************************************************************
* Description : Dialog box allowing to select the model attributes to *
* ... | 41.438356 | 113 | 0.45157 | Jeanmilost |
d55b4373474c1e05d6c225ee76f3da0c0512a2a9 | 292 | cpp | C++ | src/cli/dmain.cpp | gasteve/bitcoin | b5e79be9e7612c31403a2231ba03850f495ea9c1 | [
"MIT"
] | 1 | 2017-05-18T17:12:00.000Z | 2017-05-18T17:12:00.000Z | src/cli/dmain.cpp | gasteve/bitcoin | b5e79be9e7612c31403a2231ba03850f495ea9c1 | [
"MIT"
] | null | null | null | src/cli/dmain.cpp | gasteve/bitcoin | b5e79be9e7612c31403a2231ba03850f495ea9c1 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
//
// Start bitcoind
//
#include "init.h"
#include "util.h"
int main(int argc, char* argv[])
{
bool fRet = false;
fRet = AppInit(argc, argv);
if (fRet && fDaemon)
return 0;
return 1;
}
| 15.368421 | 78 | 0.40411 | gasteve |
f65d0b82e98790b2167c2e146333049a0f240dbe | 10,979 | cpp | C++ | src/qos/qos_event_manager.cpp | hsungyang/poseidonos | 0f523b36ccf0d70726364395ea96ac6ae3b845c3 | [
"BSD-3-Clause"
] | null | null | null | src/qos/qos_event_manager.cpp | hsungyang/poseidonos | 0f523b36ccf0d70726364395ea96ac6ae3b845c3 | [
"BSD-3-Clause"
] | null | null | null | src/qos/qos_event_manager.cpp | hsungyang/poseidonos | 0f523b36ccf0d70726364395ea96ac6ae3b845c3 | [
"BSD-3-Clause"
] | null | null | null | /*
* BSD LICENSE
* Copyright (c) 2021 Samsung Electronics Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain th... | 30.328729 | 117 | 0.510611 | hsungyang |
f66202ecd11b5626639569493a8afb3bab3f73c1 | 31,010 | cpp | C++ | tools/clang/tools/clang-tools-extra/test/clang-tidy/checkers/readability-identifier-naming.cpp | guoyuqi020/TraceRecorder | d6a31ca49d26bfd3c58a92cbf1727db99901d335 | [
"Apache-2.0"
] | 250 | 2019-05-07T12:56:44.000Z | 2022-03-10T15:52:06.000Z | clang-tools-extra/test/clang-tidy/checkers/readability-identifier-naming.cpp | procedural/checkedc_binaries_ubuntu_16_04_from_12_Oct_2021 | ad4e8b01121fbfb40d81ee798480add7dc93f0bf | [
"BSD-Source-Code"
] | 410 | 2019-06-06T20:52:32.000Z | 2022-01-18T14:21:48.000Z | clang-tools-extra/test/clang-tidy/checkers/readability-identifier-naming.cpp | procedural/checkedc_binaries_ubuntu_16_04_from_12_Oct_2021 | ad4e8b01121fbfb40d81ee798480add7dc93f0bf | [
"BSD-Source-Code"
] | 50 | 2019-05-10T21:12:24.000Z | 2022-01-21T06:39:47.000Z | // Remove UNSUPPORTED for powerpc64le when the problem introduced by
// r288563 is resolved.
// UNSUPPORTED: powerpc64le
// RUN: %check_clang_tidy %s readability-identifier-naming %t -- \
// RUN: -config='{CheckOptions: [ \
// RUN: {key: readability-identifier-naming.AbstractClassCase, value: CamelCase}, \
// RUN... | 49.300477 | 122 | 0.700742 | guoyuqi020 |
f665bb9c364dcaf3584521579f56f09dde23b664 | 446 | cpp | C++ | Dynamic Programming/cm2.cpp | AadityaJ/CodeMonk | bd719f6bd6f9792c98b538c1ef9948d2abf057d0 | [
"MIT"
] | null | null | null | Dynamic Programming/cm2.cpp | AadityaJ/CodeMonk | bd719f6bd6f9792c98b538c1ef9948d2abf057d0 | [
"MIT"
] | null | null | null | Dynamic Programming/cm2.cpp | AadityaJ/CodeMonk | bd719f6bd6f9792c98b538c1ef9948d2abf057d0 | [
"MIT"
] | null | null | null | //https://www.hackerearth.com/code-monk-dynamic-programming/algorithm/vibhu-and-his-mathematics/description/
#include <stdio.h>
#define MOD 1000000007
long long int funct[1000001];
int main(int argc, char const *argv[])
{
int t;
scanf("%d",&t);
funct[1]=1;funct[2]=2;
for(int i=3;i<=1000000;i++){
funct[i]=funct[i-... | 22.3 | 108 | 0.639013 | AadityaJ |
f6661df82957b56134818bc7031e0f98525764df | 7,624 | cc | C++ | src/kern/linux/printk.cc | He-Liu-ooo/Computer-Architecture-THUEE-2022-spring- | 9d36aaacbc7eea357608524113bec97bae2ea229 | [
"BSD-3-Clause"
] | 16 | 2020-09-24T00:17:36.000Z | 2021-08-12T06:11:52.000Z | src/kern/linux/printk.cc | gibchikafa/gem5 | 0d703041fcd5d119012b62287695723a2955b408 | [
"BSD-3-Clause"
] | 5 | 2021-01-27T23:09:06.000Z | 2022-01-07T03:19:39.000Z | src/kern/linux/printk.cc | gibchikafa/gem5 | 0d703041fcd5d119012b62287695723a2955b408 | [
"BSD-3-Clause"
] | 15 | 2020-11-18T00:15:28.000Z | 2021-12-12T03:18:34.000Z | /*
* Copyright (c) 2004-2005 The Regents of The University of Michigan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must retain the above copyright
* not... | 30.374502 | 73 | 0.385624 | He-Liu-ooo |
f66af4089ace1b4e59493c318915422ca2b46929 | 5,053 | cpp | C++ | SmsMaker.cpp | andre-i/microSmartHome | aec33d49c87c84ab86656813a6c927eb99d2cc3a | [
"MIT"
] | null | null | null | SmsMaker.cpp | andre-i/microSmartHome | aec33d49c87c84ab86656813a6c927eb99d2cc3a | [
"MIT"
] | null | null | null | SmsMaker.cpp | andre-i/microSmartHome | aec33d49c87c84ab86656813a6c927eb99d2cc3a | [
"MIT"
] | null | null | null |
#include "SmsMaker.h"
extern volatile uint8_t delayEspired;
SmsMaker::SmsMaker(Modem *m) {
modem = m;
}
/*
send sms on cool firing , motion in house, droped external voltage
messageType : COOL, MOTION, VOLTAGE
*/
bool SmsMaker::sendWarningSms(uint8_t clientOrder, int messageType) {
if (digitalRead(DUCT_P... | 25.39196 | 94 | 0.593905 | andre-i |
f66c177a62b7e762b7d10fc419dba12629bd0263 | 2,706 | cpp | C++ | test/HttpRequest_test.cpp | MisakiOfScut/SingHttpServer | 039636d7cee16ccc46c281456d71a410f3f16e23 | [
"Apache-2.0"
] | 1 | 2021-03-05T09:27:35.000Z | 2021-03-05T09:27:35.000Z | test/HttpRequest_test.cpp | MisakiOfScut/SingHttpServer | 039636d7cee16ccc46c281456d71a410f3f16e23 | [
"Apache-2.0"
] | null | null | null | test/HttpRequest_test.cpp | MisakiOfScut/SingHttpServer | 039636d7cee16ccc46c281456d71a410f3f16e23 | [
"Apache-2.0"
] | null | null | null | #include "../src/Http/HttpContext.h"
#include <gtest/gtest.h>
#define BOOST_CHECK_EQUAL(val1, val2) ASSERT_EQ(val1, val2)
using namespace sing;
using std::endl;
using std::cout;
TEST(HttpRequest_test,test_parse){
HttpContext context(0);
string s("GET /index.html HTTP/1.1\r\n"
"Host: www.wws.co... | 39.794118 | 78 | 0.652254 | MisakiOfScut |
f676f5bb8105ff52c4925f9100fbd079e0368624 | 1,633 | cpp | C++ | 3rdParty/iresearch/core/search/all_iterator.cpp | RudySchockaert-EngieIT/arangodb | e53ad4c33b72343e6fc0e2737657724b3bb49bc1 | [
"Apache-2.0"
] | null | null | null | 3rdParty/iresearch/core/search/all_iterator.cpp | RudySchockaert-EngieIT/arangodb | e53ad4c33b72343e6fc0e2737657724b3bb49bc1 | [
"Apache-2.0"
] | null | null | null | 3rdParty/iresearch/core/search/all_iterator.cpp | RudySchockaert-EngieIT/arangodb | e53ad4c33b72343e6fc0e2737657724b3bb49bc1 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2017 ArangoDB GmbH, Cologne, Germany
///
/// 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... | 29.690909 | 80 | 0.595836 | RudySchockaert-EngieIT |
f67e569d9b1614fb16741eb759612e438b66aa9d | 1,069 | cc | C++ | Codeforces/271 Division 2/Problem D/D.cc | VastoLorde95/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 170 | 2017-07-25T14:47:29.000Z | 2022-01-26T19:16:31.000Z | Codeforces/271 Division 2/Problem D/D.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | null | null | null | Codeforces/271 Division 2/Problem D/D.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 55 | 2017-07-28T06:17:33.000Z | 2021-10-31T03:06:22.000Z | #include<cstdio>
#include<iostream>
#include<cmath>
#include<algorithm>
#include<cstring>
#include<map>
#include<set>
#include<vector>
#include<utility>
#include<queue>
#include<stack>
#define sd(x) scanf("%d",&x)
#define sd2(x,y) scanf("%d%d",&x,&y)
#define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z)
#define fi first
#define... | 20.169811 | 72 | 0.566885 | VastoLorde95 |
f680fffdcc4c4a383bde3156c19f293eb92f1079 | 11,521 | hpp | C++ | src/core/utils/parse_cmdline.hpp | yiyang-tian/openthread | 885e2043c430b55d3501502e57323dfb7fadae03 | [
"BSD-3-Clause"
] | 2 | 2016-09-10T04:10:24.000Z | 2017-01-04T21:34:14.000Z | src/core/utils/parse_cmdline.hpp | yiyang-tian/openthread | 885e2043c430b55d3501502e57323dfb7fadae03 | [
"BSD-3-Clause"
] | null | null | null | src/core/utils/parse_cmdline.hpp | yiyang-tian/openthread | 885e2043c430b55d3501502e57323dfb7fadae03 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2018, The OpenThread Authors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this ... | 38.922297 | 120 | 0.707317 | yiyang-tian |
f68180defcba9d340fb4dc6facbfe74e7085ca73 | 4,331 | cpp | C++ | prototypes_cinder/FakeSignal/src/PlayBack.cpp | redpaperheart/pinball_dreams | f1b873dc451157d9f2987501080a907635c80350 | [
"Unlicense"
] | 1 | 2016-07-29T21:19:12.000Z | 2016-07-29T21:19:12.000Z | prototypes_cinder/FakeSignal/src/PlayBack.cpp | redpaperheart/pinball_dreams | f1b873dc451157d9f2987501080a907635c80350 | [
"Unlicense"
] | null | null | null | prototypes_cinder/FakeSignal/src/PlayBack.cpp | redpaperheart/pinball_dreams | f1b873dc451157d9f2987501080a907635c80350 | [
"Unlicense"
] | null | null | null | //
// PlayBack.cpp
// FakeSignal
//
// Created by red paper heart on 7/14/16.
//
//
#include "PlayBack.hpp"
#include "cinder/Json.h"
PlayBack::PlayBack()
{
mplayBackButton = Rectf(660,150,740,190);
}
void PlayBack::draw()
{
switch (mButtonStatus){
case GREY:
gl::color(0, 0, 0,0.8);
... | 27.411392 | 130 | 0.529208 | redpaperheart |
f681abbd9846f03279b9be67876f1fe9bd6a670e | 28,577 | cpp | C++ | FireRender.Maya.Src/Translators/MeshTranslator.cpp | V-Gorash/RadeonProRenderMayaPlugin | 3b844ad4602177eeb413c0708bd75c4439d97a7d | [
"Apache-2.0"
] | 22 | 2020-05-15T14:07:40.000Z | 2022-03-17T08:10:42.000Z | FireRender.Maya.Src/Translators/MeshTranslator.cpp | V-Gorash/RadeonProRenderMayaPlugin | 3b844ad4602177eeb413c0708bd75c4439d97a7d | [
"Apache-2.0"
] | 38 | 2020-05-13T23:24:21.000Z | 2022-02-28T12:16:51.000Z | FireRender.Maya.Src/Translators/MeshTranslator.cpp | V-Gorash/RadeonProRenderMayaPlugin | 3b844ad4602177eeb413c0708bd75c4439d97a7d | [
"Apache-2.0"
] | 19 | 2020-05-13T15:24:09.000Z | 2022-03-29T13:36:02.000Z | /**********************************************************************
Copyright 2020 Advanced Micro Devices, 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/L... | 28.548452 | 176 | 0.747839 | V-Gorash |
f68b24d072cc0b3577fac83e25b89828cd14deef | 632 | hpp | C++ | src/picotorrent/advancedpage.hpp | kk7945287/pictorr | 09bf9ccbd89f0b459cb07e3012ced9c35bea005c | [
"MIT"
] | null | null | null | src/picotorrent/advancedpage.hpp | kk7945287/pictorr | 09bf9ccbd89f0b459cb07e3012ced9c35bea005c | [
"MIT"
] | null | null | null | src/picotorrent/advancedpage.hpp | kk7945287/pictorr | 09bf9ccbd89f0b459cb07e3012ced9c35bea005c | [
"MIT"
] | null | null | null | #pragma once
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include <memory>
class wxPropertyGrid;
namespace pt
{
class Configuration;
class Translator;
class AdvancedPage : public wxPanel
{
public:
AdvancedPage(wxWindow* parent, std::shared_ptr<Configuration> conf... | 19.151515 | 118 | 0.678797 | kk7945287 |
f68d414eff261ae76c536e71101d4d82cd2b25a2 | 2,112 | cpp | C++ | webRecognize/src/stream_content/Range.cpp | enzo418/Recognice-CCTV-c- | 15da07a559d6de611452df4d404a15d4551c3017 | [
"Apache-2.0"
] | 1 | 2020-09-06T21:44:56.000Z | 2020-09-06T21:44:56.000Z | webRecognize/src/stream_content/Range.cpp | enzo418/Recognice-CCTV-c- | 15da07a559d6de611452df4d404a15d4551c3017 | [
"Apache-2.0"
] | null | null | null | webRecognize/src/stream_content/Range.cpp | enzo418/Recognice-CCTV-c- | 15da07a559d6de611452df4d404a15d4551c3017 | [
"Apache-2.0"
] | null | null | null | #include "Range.hpp"
std::vector<std::string> splitString(const std::string& str, const std::string& delim) {
std::vector<std::string> tokens;
size_t prev = 0, pos = 0;
do {
pos = str.find(delim, prev);
if (pos == std::string::npos) pos = str.length();
std::string token = str.substr(prev, pos-prev);
i... | 34.622951 | 110 | 0.603693 | enzo418 |
f691e7f968538dcfc57ac4f022eeb336a5c7f0c6 | 909 | hpp | C++ | include/natalie/proc_value.hpp | watzon/natalie | d4013d99d1302944838293b26e54c866fb99bd32 | [
"MIT"
] | null | null | null | include/natalie/proc_value.hpp | watzon/natalie | d4013d99d1302944838293b26e54c866fb99bd32 | [
"MIT"
] | null | null | null | include/natalie/proc_value.hpp | watzon/natalie | d4013d99d1302944838293b26e54c866fb99bd32 | [
"MIT"
] | null | null | null | #pragma once
#include <assert.h>
#include "natalie/class_value.hpp"
#include "natalie/forward.hpp"
#include "natalie/global_env.hpp"
#include "natalie/macros.hpp"
#include "natalie/value.hpp"
namespace Natalie {
struct ProcValue : Value {
enum class ProcType {
Proc,
Lambda
};
ProcValue(... | 22.725 | 91 | 0.625963 | watzon |
f69289e8b6797b59b7c181c3868331d49db42cf1 | 15,302 | cpp | C++ | sdk/Windows/SMXDeviceConnection.cpp | steprevolution/stepmaniax-sdk | 60e84d3f80d36bf195aedd20335173022d678ca2 | [
"MIT"
] | 33 | 2017-12-31T17:50:09.000Z | 2022-03-10T01:21:56.000Z | sdk/Windows/SMXDeviceConnection.cpp | steprevolution/stepmaniax-sdk | 60e84d3f80d36bf195aedd20335173022d678ca2 | [
"MIT"
] | 2 | 2021-02-16T03:15:01.000Z | 2021-04-21T01:56:23.000Z | sdk/Windows/SMXDeviceConnection.cpp | steprevolution/stepmaniax-sdk | 60e84d3f80d36bf195aedd20335173022d678ca2 | [
"MIT"
] | 5 | 2018-01-11T17:18:08.000Z | 2020-07-06T07:32:50.000Z | #include "SMXDeviceConnection.h"
#include "Helpers.h"
#include <string>
#include <memory>
using namespace std;
using namespace SMX;
#include <hidsdi.h>
#include <SetupAPI.h>
SMX::SMXDeviceConnection::PendingCommandPacket::PendingCommandPacket()
{
}
SMXDeviceConnection::PendingCommand::PendingCommand()
{
memset(... | 34.936073 | 129 | 0.63874 | steprevolution |
f692fb51430b7f5773f596e9bd87068f645886c1 | 2,233 | hpp | C++ | src/composable_kernel/composable_kernel/include/utility/array_multi_index.hpp | j4yan/MIOpen | dc38f79bee97e047d866d9c1e25289cba86fab56 | [
"MIT"
] | 745 | 2017-07-01T22:03:25.000Z | 2022-03-26T23:46:27.000Z | src/composable_kernel/composable_kernel/include/utility/array_multi_index.hpp | j4yan/MIOpen | dc38f79bee97e047d866d9c1e25289cba86fab56 | [
"MIT"
] | 1,348 | 2017-07-02T12:37:48.000Z | 2022-03-31T23:45:51.000Z | src/composable_kernel/composable_kernel/include/utility/array_multi_index.hpp | j4yan/MIOpen | dc38f79bee97e047d866d9c1e25289cba86fab56 | [
"MIT"
] | 158 | 2017-07-01T19:37:04.000Z | 2022-03-30T11:57:04.000Z | #ifndef CK_ARRAY_MULTI_INDEX_HPP
#define CK_ARRAY_MULTI_INDEX_HPP
#include "common_header.hpp"
namespace ck {
template <index_t N>
using MultiIndex = Array<index_t, N>;
template <typename... Xs>
__host__ __device__ constexpr auto make_multi_index(Xs&&... xs)
{
return make_array<index_t>(index_t{xs}...);
}
temp... | 28.628205 | 84 | 0.652485 | j4yan |
f695d4b11de5b86d50febfe9a805745deedb8bb9 | 2,338 | cc | C++ | example/publisher_raw.cc | pedro-salgueiro/ign-transport | 57558607ceb98dd4d90f6bb546a1fb70f85f78af | [
"ECL-2.0",
"Apache-2.0"
] | 21 | 2020-04-15T16:58:42.000Z | 2022-03-07T00:27:15.000Z | example/publisher_raw.cc | pedro-salgueiro/ign-transport | 57558607ceb98dd4d90f6bb546a1fb70f85f78af | [
"ECL-2.0",
"Apache-2.0"
] | 164 | 2020-04-29T23:29:49.000Z | 2022-03-25T22:30:10.000Z | example/publisher_raw.cc | pedro-salgueiro/ign-transport | 57558607ceb98dd4d90f6bb546a1fb70f85f78af | [
"ECL-2.0",
"Apache-2.0"
] | 23 | 2020-05-15T18:34:59.000Z | 2022-02-01T16:46:52.000Z | /*
* Copyright (C) 2018 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 29.594937 | 77 | 0.669376 | pedro-salgueiro |
f699fdcf190556331e43d5bfbbc93d4a0cc33b38 | 935 | cpp | C++ | CCC/CCC17S3.cpp | Genius1506/Competitive-Programming | 0fcbd9cd1a2381cf6dcb6e31f4ad0afe7cb98947 | [
"MIT"
] | null | null | null | CCC/CCC17S3.cpp | Genius1506/Competitive-Programming | 0fcbd9cd1a2381cf6dcb6e31f4ad0afe7cb98947 | [
"MIT"
] | null | null | null | CCC/CCC17S3.cpp | Genius1506/Competitive-Programming | 0fcbd9cd1a2381cf6dcb6e31f4ad0afe7cb98947 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define all(x) x.begin(),x.end()
#define INF (0x3f3f3f3f)
#define ms(a,b) memset(a,b,sizeof(a));
int main(){
ios::sync_with_stdio(0); cin.tie(0);
int n;
cin >> n;
vector<int>miku(2005);
for(int i = 0; i < n; i++){
int x; cin ... | 23.974359 | 57 | 0.40107 | Genius1506 |
f69e5920f1f019f6c6daa61a386d70ce091b57c5 | 53,236 | cpp | C++ | src/pairwise.cpp | toshihr/mtrap | e6001ef79c89bbb7c5b731fe6ade4659add5d1ea | [
"BSD-3-Clause"
] | null | null | null | src/pairwise.cpp | toshihr/mtrap | e6001ef79c89bbb7c5b731fe6ade4659add5d1ea | [
"BSD-3-Clause"
] | null | null | null | src/pairwise.cpp | toshihr/mtrap | e6001ef79c89bbb7c5b731fe6ade4659add5d1ea | [
"BSD-3-Clause"
] | null | null | null | #include <cstdlib>
#include <iostream>
#include <iomanip>
#include <cmath>
#include <Eigen/Dense>
#include <Eigen/StdVector>
#include <algorithm>
#include <string>
#include <fstream>
#include <map>
#include <set>
#include <cstdlib>
#include <cassert>
#include "scorematrix.h"
#include "tqmatrix.h"
#include "pairwise.h"... | 40.48365 | 168 | 0.520005 | toshihr |
f69ec72ee80677404c8e4a4123e1c38e1de29936 | 4,144 | cpp | C++ | eagle_mpc_2_control/src/motor_test.cpp | PepMS/eagle_mpc_ros2 | 19f9d23606524960ef2d4ad2ccf609c91f813b2e | [
"MIT"
] | 5 | 2021-08-07T06:16:20.000Z | 2022-02-27T21:43:33.000Z | eagle_mpc_2_control/src/motor_test.cpp | PepMS/px4_mpc | 19f9d23606524960ef2d4ad2ccf609c91f813b2e | [
"MIT"
] | null | null | null | eagle_mpc_2_control/src/motor_test.cpp | PepMS/px4_mpc | 19f9d23606524960ef2d4ad2ccf609c91f813b2e | [
"MIT"
] | 2 | 2021-01-05T03:12:13.000Z | 2021-01-05T03:12:13.000Z | ////////////////////////////////////////////////////////////////////////////////////
// MIT License
//
// Copyright (c) 2020 Pep Martí Saumell
//
// 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 Sof... | 37.333333 | 117 | 0.694981 | PepMS |
f6a043340753792232e2b08a3a5bc56d9b9184e9 | 2,732 | cpp | C++ | src/ensnare/private/config.cpp | dumjyl/cpp_interop | 87d2dd7cb9a00a46fb101677e633b706ffd5a46d | [
"MIT"
] | null | null | null | src/ensnare/private/config.cpp | dumjyl/cpp_interop | 87d2dd7cb9a00a46fb101677e633b706ffd5a46d | [
"MIT"
] | 4 | 2020-01-14T08:38:32.000Z | 2020-01-17T06:03:44.000Z | src/ensnare/private/config.cpp | dumjyl/clang-tooling-nim | 87d2dd7cb9a00a46fb101677e633b706ffd5a46d | [
"MIT"
] | null | null | null | #include "ensnare/private/config.hpp"
#include "llvm/Support/CommandLine.h"
namespace cl = llvm::cl;
using namespace ensnare;
cl::list<Str> syms("sym", cl::desc("specify specific symbols to bind. FIXME: not implimented"));
cl::list<Str> gensym_types("gensym-type", cl::desc("mangle a type symbol"));
cl::list<Str> incl... | 37.944444 | 99 | 0.654466 | dumjyl |
f6a2cb6dbeb1e50bf05847798c10116bc1c5f2b1 | 3,182 | cpp | C++ | Foundation/testsuite/src/HashSetTest.cpp | e0861280/poco | 961ca3e246f55646ab6e101e35e3ec0db359360f | [
"BSL-1.0"
] | null | null | null | Foundation/testsuite/src/HashSetTest.cpp | e0861280/poco | 961ca3e246f55646ab6e101e35e3ec0db359360f | [
"BSL-1.0"
] | null | null | null | Foundation/testsuite/src/HashSetTest.cpp | e0861280/poco | 961ca3e246f55646ab6e101e35e3ec0db359360f | [
"BSL-1.0"
] | 1 | 2019-09-13T16:32:18.000Z | 2019-09-13T16:32:18.000Z | //
// HashSetTest.cpp
//
// $Id: //poco/1.4/Foundation/testsuite/src/HashSetTest.cpp#1 $
//
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "HashSetTest.h"
#include "Poco/CppUnit/TestCaller.h"
#include "Poco/CppUnit/TestSuit... | 17.016043 | 76 | 0.589252 | e0861280 |
f6a4b2256caa16cc8318635c61ae1f5f11eb4278 | 8,614 | cpp | C++ | Fundamental/CCore/src/CharProp.cpp | SergeyStrukov/CCore-4-xx | 5faeadd50a24a7dbe18ffff8efe5f49212588637 | [
"BSL-1.0"
] | null | null | null | Fundamental/CCore/src/CharProp.cpp | SergeyStrukov/CCore-4-xx | 5faeadd50a24a7dbe18ffff8efe5f49212588637 | [
"BSL-1.0"
] | null | null | null | Fundamental/CCore/src/CharProp.cpp | SergeyStrukov/CCore-4-xx | 5faeadd50a24a7dbe18ffff8efe5f49212588637 | [
"BSL-1.0"
] | null | null | null | /* CharProp.cpp */
//----------------------------------------------------------------------------------------
//
// Project: CCore 4.01
//
// Tag: Fundamental Mini
//
// License: Boost Software License - Version 1.0 - August 17th, 2003
//
// see http://www.boost.org/LICENSE_1_0.txt or the local copy
//
//... | 48.943182 | 98 | 0.605642 | SergeyStrukov |
f6ab2ad17f4fbbd80e61208f14188f46366553c8 | 13,203 | cpp | C++ | Editor/SourceListView.cpp | ahwayakchih/Medo | acc34c189676544c092fbc6800c27a25d05de6dd | [
"MIT"
] | null | null | null | Editor/SourceListView.cpp | ahwayakchih/Medo | acc34c189676544c092fbc6800c27a25d05de6dd | [
"MIT"
] | null | null | null | Editor/SourceListView.cpp | ahwayakchih/Medo | acc34c189676544c092fbc6800c27a25d05de6dd | [
"MIT"
] | null | null | null | /* PROJECT: Medo
* AUTHORS: Zenja Solaja, Melbourne Australia
* COPYRIGHT: Zen Yes Pty Ltd, 2019-2021
* DESCRIPTION: Source item
*/
#include <cassert>
#include <InterfaceKit.h>
#include <support/String.h>
#include <ControlLook.h>
#ifndef _GRAPHICS_DEFS_H
#include <interface/GraphicsDefs.h>
#endif
#include "I... | 27.50625 | 161 | 0.713626 | ahwayakchih |
f6ad4d18b5631071947408dc5350d6e6aeee5066 | 4,658 | cc | C++ | test/syscalls/linux/madvise.cc | jmgao/gvisor | b915a25597a961311ceb57f89d18eaee9c9461d8 | [
"Apache-2.0"
] | null | null | null | test/syscalls/linux/madvise.cc | jmgao/gvisor | b915a25597a961311ceb57f89d18eaee9c9461d8 | [
"Apache-2.0"
] | null | null | null | test/syscalls/linux/madvise.cc | jmgao/gvisor | b915a25597a961311ceb57f89d18eaee9c9461d8 | [
"Apache-2.0"
] | null | null | null | // Copyright 2018 The gVisor 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 agree... | 32.573427 | 78 | 0.711894 | jmgao |
f6af9e0f63fb0cd558edbadf9707a02274bb9a42 | 5,651 | hpp | C++ | set.hpp | user1095108/sg | 44c9d3a5351add4bfa39f472e1478a75f0519325 | [
"Unlicense"
] | 1 | 2021-09-27T11:51:19.000Z | 2021-09-27T11:51:19.000Z | set.hpp | user1095108/sg | 44c9d3a5351add4bfa39f472e1478a75f0519325 | [
"Unlicense"
] | null | null | null | set.hpp | user1095108/sg | 44c9d3a5351add4bfa39f472e1478a75f0519325 | [
"Unlicense"
] | null | null | null | #ifndef SG_SET_HPP
# define SG_SET_HPP
# pragma once
#include "utils.hpp"
#include "mapiterator.hpp"
namespace sg
{
template <typename Key, class Compare = std::compare_three_way>
class set
{
public:
struct node;
using key_type = Key;
using value_type = Key;
using difference_type = std::ptrdiff_t;
using... | 20.182143 | 77 | 0.511945 | user1095108 |
f6afe39638f9658003b3f627d8227bbb01cd1dd5 | 6,826 | hpp | C++ | tests/include/testing_ellmv.hpp | DevilInChina/aocl-sparse | d3f6fadfb0406ce124daae0456e09321a3019baf | [
"MIT"
] | null | null | null | tests/include/testing_ellmv.hpp | DevilInChina/aocl-sparse | d3f6fadfb0406ce124daae0456e09321a3019baf | [
"MIT"
] | null | null | null | tests/include/testing_ellmv.hpp | DevilInChina/aocl-sparse | d3f6fadfb0406ce124daae0456e09321a3019baf | [
"MIT"
] | null | null | null | /* ************************************************************************
* Copyright (c) 2020 Advanced Micro Devices, Inc.
*
* 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 r... | 40.152941 | 105 | 0.490331 | DevilInChina |
f6b0ff8822edee3ba67df0f9bab88b4f38c87e8e | 334 | cpp | C++ | All Algorithms/Kadane's Algorithm/Kadane'sAlgorithm.cpp | ravimishra21/free-programming-books | e47f9eaa9a51723a097442673d86f1914768d581 | [
"CC-BY-4.0"
] | null | null | null | All Algorithms/Kadane's Algorithm/Kadane'sAlgorithm.cpp | ravimishra21/free-programming-books | e47f9eaa9a51723a097442673d86f1914768d581 | [
"CC-BY-4.0"
] | null | null | null | All Algorithms/Kadane's Algorithm/Kadane'sAlgorithm.cpp | ravimishra21/free-programming-books | e47f9eaa9a51723a097442673d86f1914768d581 | [
"CC-BY-4.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
long long int n,i;
cin>>n;
long long int arr[n];
for(int i=0;i<n;i++)
cin>>arr[i];
long long int cs=arr[0],ms=arr[0];
for(i=1;i<n;i++)
{
cs=max(cs+arr[i],arr[i]);
ms=max(ms,cs);
}
cout<< ms <<endl;
... | 13.916667 | 38 | 0.48503 | ravimishra21 |
f6b1b1e49799d699d070188407d86949d4f4cee5 | 298 | cpp | C++ | doc/examples/begin.cpp | Hexlord/json | 66869458b5227170e052d01aa65b47ee8350b666 | [
"MIT"
] | 23 | 2016-01-20T07:50:24.000Z | 2021-09-08T05:08:19.000Z | json-master/doc/examples/begin.cpp | bobismijnnaam/bobetex | 9960eafd31c73b4070b236d5dfafd5734492aaf5 | [
"MIT"
] | 18 | 2016-06-01T11:56:54.000Z | 2016-06-06T10:58:53.000Z | json-master/doc/examples/begin.cpp | bobismijnnaam/bobetex | 9960eafd31c73b4070b236d5dfafd5734492aaf5 | [
"MIT"
] | 19 | 2016-01-24T13:05:24.000Z | 2021-06-25T01:36:47.000Z | #include <json.hpp>
using namespace nlohmann;
int main()
{
// create an array value
json array = {1, 2, 3, 4, 5};
// get am iterator to the first element
json::iterator it = array.begin();
// serialize the element that the iterator points to
std::cout << *it << '\n';
}
| 18.625 | 56 | 0.607383 | Hexlord |
f6b5fd3a6465dda4620f207e14ca84cb2974ba62 | 449 | cpp | C++ | BAC/exercises/ch8/UVa10340.cpp | Anyrainel/aoapc-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 3 | 2017-08-15T06:00:01.000Z | 2018-12-10T09:05:53.000Z | BAC/exercises/ch8/UVa10340.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | null | null | null | BAC/exercises/ch8/UVa10340.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 2 | 2017-09-16T18:46:27.000Z | 2018-05-22T05:42:03.000Z | // UVa10340 All in All
// Rujia Liu
// 题意:输入两个字符串S和T,判断S是否为T的(不一定连续的)子串
#include<iostream>
#include<string>
using namespace std;
int main() {
string s, t;
while(cin >> s >> t) {
int n = s.length(), m = t.length();
bool ok = true;
int i, j;
for(i = j = 0; i < n; i++, j++) {
while(j < m && t[j]... | 19.521739 | 48 | 0.498886 | Anyrainel |
f6b86e26f21ab2e25e3351ce99200d1b1a963a37 | 505 | cpp | C++ | src/serialize19.lib/serialize19/serialize.std_tuple.test.cpp | Fettpet/co-cpp19 | 928a835c4f66032aa88ce01df7899da86d37df22 | [
"MIT"
] | 8 | 2020-05-31T16:13:13.000Z | 2022-01-12T08:52:42.000Z | src/serialize19.lib/serialize19/serialize.std_tuple.test.cpp | Fettpet/co-cpp19 | 928a835c4f66032aa88ce01df7899da86d37df22 | [
"MIT"
] | null | null | null | src/serialize19.lib/serialize19/serialize.std_tuple.test.cpp | Fettpet/co-cpp19 | 928a835c4f66032aa88ce01df7899da86d37df22 | [
"MIT"
] | 2 | 2020-07-21T10:58:28.000Z | 2021-07-26T06:52:05.000Z | #include "ReadArchive.h"
#include "dynamicWrite.h"
#include "serialize.std_string.h"
#include "serialize.std_tuple.h"
#include <gtest/gtest.h>
using namespace serialize19;
TEST(serialize, std_tuple) {
using T = std::tuple<int, float, std::string>;
auto input = T{23, 3.14f, std::string("glurbz")};
... | 22.954545 | 54 | 0.653465 | Fettpet |
f6c05c96eb644ee7bad5df3a536c766ab5689011 | 1,914 | cpp | C++ | ui-qt/ToolLib/Measure/L2LDistance/FWL2LDistanceLabel.cpp | qianyongjun123/FPGA-Industrial-Smart-Camera | 54b3e2c2661cf7f6774a7fb4d6ae637fa73cba32 | [
"MIT"
] | 1 | 2017-12-28T08:08:02.000Z | 2017-12-28T08:08:02.000Z | ui-qt/ToolLib/Measure/L2LDistance/FWL2LDistanceLabel.cpp | qianyongjun123/FPGA-Industrial-Smart-Camera | 54b3e2c2661cf7f6774a7fb4d6ae637fa73cba32 | [
"MIT"
] | null | null | null | ui-qt/ToolLib/Measure/L2LDistance/FWL2LDistanceLabel.cpp | qianyongjun123/FPGA-Industrial-Smart-Camera | 54b3e2c2661cf7f6774a7fb4d6ae637fa73cba32 | [
"MIT"
] | 3 | 2017-12-28T08:08:05.000Z | 2021-11-12T07:59:13.000Z | #include "FWL2LDistanceLabel.h"
#include "BasicDefine.h"
FWL2LDistanceLabel::FWL2LDistanceLabel(QWidget *parent) : QLabel(parent)
{
i_learn_result = 0;
m_Line1 = QLine(0,0,0,0);
m_Line2 = QLine(0,0,0,0);
m_samplint_line = QLine(0,0,0,0);
m_pen_color = NULL;
}
/**
* @brief FWL2LDistanceLabel::SetLi... | 21.505618 | 87 | 0.662487 | qianyongjun123 |
f6c294015ddda1b69d9b51f929f51a93f901ac3e | 977 | cpp | C++ | codeforces/C - Holidays/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/C - Holidays/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/C - Holidays/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Feb/15/2019 00:45
* solution_verdict: Accepted language: GNU C++14
* run... | 31.516129 | 111 | 0.360287 | kzvd4729 |
f6c37d0f48494b76d5bc71ef0b67de8f52d9abd8 | 1,047 | hpp | C++ | AqooleEngine/src/main/cpp/boost/boost/qvm/lite.hpp | kodai731/Aqoole-Engine-Android-Vulkan-Rendering-Engine- | 72c8f34b6b6d507319069e681ff8c5008337b7c6 | [
"Apache-2.0",
"MIT"
] | null | null | null | AqooleEngine/src/main/cpp/boost/boost/qvm/lite.hpp | kodai731/Aqoole-Engine-Android-Vulkan-Rendering-Engine- | 72c8f34b6b6d507319069e681ff8c5008337b7c6 | [
"Apache-2.0",
"MIT"
] | null | null | null | AqooleEngine/src/main/cpp/boost/boost/qvm/lite.hpp | kodai731/Aqoole-Engine-Android-Vulkan-Rendering-Engine- | 72c8f34b6b6d507319069e681ff8c5008337b7c6 | [
"Apache-2.0",
"MIT"
] | null | null | null | // Copyright 2008-2022 Emil Dotchevski and Reverge Studios, Inc.
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/qvm/error.hpp>
#include <boost/qvm/mat_operations.hpp>
#include <boost/qvm/mat_acces... | 37.392857 | 79 | 0.78319 | kodai731 |
f6c3f03820f5d7e04fc9e16bd317002a7c5385e2 | 592 | cpp | C++ | CodeChef/LongChallenge/FebLongChallenge2018/feb_long_2018_chefchr.cpp | ysumit99/Compi-Coding | d0e96c4f024328b0bfb799fab927919dae367f7a | [
"MIT"
] | 1 | 2019-04-19T13:06:33.000Z | 2019-04-19T13:06:33.000Z | CodeChef/LongChallenge/FebLongChallenge2018/feb_long_2018_chefchr.cpp | ysumit99/Compi-Coding | d0e96c4f024328b0bfb799fab927919dae367f7a | [
"MIT"
] | null | null | null | CodeChef/LongChallenge/FebLongChallenge2018/feb_long_2018_chefchr.cpp | ysumit99/Compi-Coding | d0e96c4f024328b0bfb799fab927919dae367f7a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[])
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
cin>>t;
while(t--)
{
string str,sub_str;
int count_chef = 0;
cin>>str;
if(str.length() < 4)
{
cout<<"normal"<<"\n";
continue;;
}
for (i... | 12.333333 | 40 | 0.54223 | ysumit99 |
f6c7cf2d5a6a4bcaaf356762cb5494b72ae0ae8e | 2,442 | cpp | C++ | TritonCore/src/Triton2/Core/Extension/Text.cpp | nfwGytautas/Triton | aa4e586b1170a9bc5f63b4f15920b20e1d05e8f1 | [
"Apache-2.0"
] | 2 | 2019-10-17T15:47:54.000Z | 2019-10-17T15:47:56.000Z | TritonCore/src/Triton2/Core/Extension/Text.cpp | nfwGytautas/Triton | aa4e586b1170a9bc5f63b4f15920b20e1d05e8f1 | [
"Apache-2.0"
] | null | null | null | TritonCore/src/Triton2/Core/Extension/Text.cpp | nfwGytautas/Triton | aa4e586b1170a9bc5f63b4f15920b20e1d05e8f1 | [
"Apache-2.0"
] | 1 | 2019-10-07T08:19:28.000Z | 2019-10-07T08:19:28.000Z | #include "TRpch.h"
#include "Text.h"
#include "Triton2/Limits.h"
namespace Triton
{
namespace Extension
{
IO::Mesh buildVertexArray(reference<FontAsset> font, const std::string& text, float x, float y)
{
// Modifier for the final vertex vector length
unsigned int stride = Triton::Limits::VAO_2D_TEXT;
... | 23.941176 | 97 | 0.651106 | nfwGytautas |
f6c84d0a653e2ff6d51e89a938478889fe4916ea | 1,457 | cpp | C++ | codeforces/B - Steps/Wrong answer on test 3.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/B - Steps/Wrong answer on test 3.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/B - Steps/Wrong answer on test 3.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: May/07/2017 12:17
* solution_verdict: Wrong answer on test 3 language: GNU C++14
* run... | 26.017857 | 111 | 0.291695 | kzvd4729 |
f6ca39fbb207befce417aa7b2ff66961f668cf7b | 1,155 | cpp | C++ | test/che/ss.cpp | shze/biosim | e9e6d97de0ccf8067e1db15980eb600389fff6ca | [
"MIT"
] | null | null | null | test/che/ss.cpp | shze/biosim | e9e6d97de0ccf8067e1db15980eb600389fff6ca | [
"MIT"
] | null | null | null | test/che/ss.cpp | shze/biosim | e9e6d97de0ccf8067e1db15980eb600389fff6ca | [
"MIT"
] | null | null | null | #include <boost/test/unit_test.hpp>
#include <boost/concept_check.hpp>
#include "che/ss.h" // header to test
using namespace biosim;
BOOST_AUTO_TEST_SUITE(suite_ss)
BOOST_AUTO_TEST_CASE(ss_ctor) {
che::ss s;
BOOST_CHECK(s.defined() == false);
BOOST_CHECK(s.get_length() == 0);
BOOST_CHECK(s.get_sequence().em... | 26.860465 | 113 | 0.673593 | shze |
f6ca420e99479cf72f5207334b1baa865fbae9c5 | 712 | cpp | C++ | DFNs/StereoRectification/StereoRectificationInterface.cpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | 7 | 2019-02-26T15:09:50.000Z | 2021-09-30T07:39:01.000Z | DFNs/StereoRectification/StereoRectificationInterface.cpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | null | null | null | DFNs/StereoRectification/StereoRectificationInterface.cpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | 1 | 2020-12-06T12:09:05.000Z | 2020-12-06T12:09:05.000Z | /**
* @addtogroup DFNs
* @{
*/
#include "StereoRectificationInterface.hpp"
namespace CDFF
{
namespace DFN
{
StereoRectificationInterface::StereoRectificationInterface()
: inOriginalStereoPair(),
outRectifiedStereoPair()
{
asn1SccFramePair_Initialize(& inOriginalStereoPair);
asn... | 18.25641 | 88 | 0.755618 | H2020-InFuse |
f6cade48f2bbf011f12e2d7e48286139b3c9a82f | 2,811 | cpp | C++ | src/jsonserializer/typeconverters/qjsonchronodurationconverter.cpp | cmguo/QtJsonSerializer | ae7f4df2cd38177b85cfe4c3a677180611bd904d | [
"BSD-3-Clause"
] | 1 | 2019-07-01T15:57:51.000Z | 2019-07-01T15:57:51.000Z | src/jsonserializer/typeconverters/qjsonchronodurationconverter.cpp | cmguo/QtJsonSerializer | ae7f4df2cd38177b85cfe4c3a677180611bd904d | [
"BSD-3-Clause"
] | 2 | 2019-10-24T12:30:44.000Z | 2020-07-08T16:07:48.000Z | src/jsonserializer/typeconverters/qjsonchronodurationconverter.cpp | cmguo/QtJsonSerializer | ae7f4df2cd38177b85cfe4c3a677180611bd904d | [
"BSD-3-Clause"
] | 3 | 2019-09-17T15:07:07.000Z | 2020-07-08T13:54:04.000Z | #include "qjsonchronodurationconverter_p.h"
#include "qjsonserializerexception.h"
#include <chrono>
using namespace std::chrono;
Q_DECLARE_METATYPE(std::chrono::nanoseconds)
Q_DECLARE_METATYPE(std::chrono::microseconds)
Q_DECLARE_METATYPE(std::chrono::milliseconds)
Q_DECLARE_METATYPE(std::chrono::seconds)
Q_DECLARE_M... | 43.921875 | 159 | 0.765564 | cmguo |
f6cb34cedc43ea44cf965ac5d462697f86374af2 | 4,348 | hpp | C++ | src/cpu/gemm/gemm_pack.hpp | JackAKirk/oneDNN | 432c3f0c1c265a0fa96aa46c256d150ea670eb5a | [
"Apache-2.0"
] | 1,327 | 2018-01-25T21:23:47.000Z | 2020-04-03T09:39:30.000Z | src/cpu/gemm/gemm_pack.hpp | JackAKirk/oneDNN | 432c3f0c1c265a0fa96aa46c256d150ea670eb5a | [
"Apache-2.0"
] | 583 | 2020-04-04T02:37:25.000Z | 2022-03-31T00:12:03.000Z | src/cpu/gemm/gemm_pack.hpp | JackAKirk/oneDNN | 432c3f0c1c265a0fa96aa46c256d150ea670eb5a | [
"Apache-2.0"
] | 365 | 2018-01-29T16:12:36.000Z | 2020-04-03T08:32:27.000Z | /*******************************************************************************
* Copyright 2019-2020 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apa... | 44.367347 | 80 | 0.678933 | JackAKirk |
f6cc5ae58a1f4457304d681f62627c6f33d32358 | 8,113 | hpp | C++ | include/GlobalNamespace/LevelSearchViewController_BeatmapLevelPackCollection.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/LevelSearchViewController_BeatmapLevelPackCollection.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/LevelSearchViewController_BeatmapLevelPackCollection.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: LevelSearchVie... | 67.608333 | 298 | 0.794651 | marksteward |
f6cdfd9deba1dd7d21b118ca2d4427fd90c9cd94 | 3,706 | cpp | C++ | test/tutorial_codeexamples/modelfittting.cpp | zhxinyu/cosan | ea93704782e6c66f6bcf65362c957d719e25b074 | [
"MIT"
] | null | null | null | test/tutorial_codeexamples/modelfittting.cpp | zhxinyu/cosan | ea93704782e6c66f6bcf65362c957d719e25b074 | [
"MIT"
] | null | null | null | test/tutorial_codeexamples/modelfittting.cpp | zhxinyu/cosan | ea93704782e6c66f6bcf65362c957d719e25b074 | [
"MIT"
] | 1 | 2021-04-13T05:56:38.000Z | 2021-04-13T05:56:38.000Z | //
// Created by Xinyu Zhang on 3/26/21.
//
#include <iostream>
#include <cosan/data/CosanData.h>
#include <cosan/base/CosanBO.h>
#include <cosan/preprocessing/overunderflow.h>
#include <cosan/preprocessing/missingvalues.h>
#include <cosan/preprocessing/normalizer.h>
#include <cosan/preprocessing/standardScaler.h>
#inc... | 40.282609 | 135 | 0.618457 | zhxinyu |
f6ce6cd0f4814cfea1b0ec889e96b0a9db85037b | 20,682 | cc | C++ | wrspice/devlib/bsim3.2.4/b3acld.cc | wrcad/xictools | f46ba6d42801426739cc8b2940a809b74f1641e2 | [
"Apache-2.0"
] | 73 | 2017-10-26T12:40:24.000Z | 2022-03-02T16:59:43.000Z | wrspice/devlib/bsim3.2.4/b3acld.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 12 | 2017-11-01T10:18:22.000Z | 2022-03-20T19:35:36.000Z | wrspice/devlib/bsim3.2.4/b3acld.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 34 | 2017-10-06T17:04:21.000Z | 2022-02-18T16:22:03.000Z |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... | 43.358491 | 84 | 0.407359 | wrcad |
f6d0c09332080e0e583405c03d18cb3e5b963506 | 408 | cpp | C++ | codeforces/beta-round-4/div-2/watermelon.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-07-16T01:46:38.000Z | 2020-07-16T01:46:38.000Z | codeforces/beta-round-4/div-2/watermelon.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | codeforces/beta-round-4/div-2/watermelon.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-05-27T14:30:43.000Z | 2020-05-27T14:30:43.000Z | #include <iostream>
using namespace std;
inline void use_io_optimizations()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
int main()
{
use_io_optimizations();
unsigned int watermelon_weight;
cin >> watermelon_weight;
if (watermelon_weight > 2 && watermelon_weight % 2 == 0)
{
... | 14.068966 | 60 | 0.590686 | Rkhoiwal |
f6d0e6aedafdde0982e2a4a82633b42da85c5617 | 1,073 | cpp | C++ | DataSpec/DNACommon/STRG.cpp | RetroView/RetroCommon | a413a010b50a53ebc6b0c726203181fc179d3370 | [
"MIT"
] | 106 | 2021-04-09T19:42:56.000Z | 2022-03-30T09:13:28.000Z | DataSpec/DNACommon/STRG.cpp | Austint30/metaforce | a491e2e9f229c8db92544b275cd1baa80bacfd17 | [
"MIT"
] | 58 | 2021-04-09T12:48:58.000Z | 2022-03-22T00:11:42.000Z | DataSpec/DNACommon/STRG.cpp | Austint30/metaforce | a491e2e9f229c8db92544b275cd1baa80bacfd17 | [
"MIT"
] | 13 | 2021-04-06T23:23:20.000Z | 2022-03-16T02:09:48.000Z | #include "DataSpec/DNACommon/STRG.hpp"
#include "DataSpec/DNAMP1/STRG.hpp"
#include "DataSpec/DNAMP2/STRG.hpp"
#include "DataSpec/DNAMP3/STRG.hpp"
#include <logvisor/logvisor.hpp>
namespace DataSpec {
void ISTRG::gatherDependencies(std::vector<hecl::ProjectPath>& pathsOut) const { /* TODO: parse out resource tokens... | 24.386364 | 118 | 0.679404 | RetroView |
f6d1ce2a7d149a95999032ee6379f9b1d6e6f7e9 | 1,471 | cc | C++ | external_libs/pgenlib/pvar_ffi_support.cc | yujin2011/regenie | 7c379b5359cea7f56bea69576ce6c304555ccf51 | [
"MIT"
] | 89 | 2020-06-23T05:36:33.000Z | 2022-03-26T13:50:42.000Z | external_libs/pgenlib/pvar_ffi_support.cc | yujin2011/regenie | 7c379b5359cea7f56bea69576ce6c304555ccf51 | [
"MIT"
] | 254 | 2020-06-23T15:45:33.000Z | 2022-03-31T18:49:20.000Z | external_libs/pgenlib/pvar_ffi_support.cc | yujin2011/regenie | 7c379b5359cea7f56bea69576ce6c304555ccf51 | [
"MIT"
] | 36 | 2020-06-23T04:43:36.000Z | 2022-03-05T01:29:21.000Z | // This library is part of PLINK 2.00, copyright (C) 2005-2020 Shaun Purcell,
// Christopher Chang.
//
// 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
// Free Software Foundation; either version 3 of the License, ... | 29.42 | 85 | 0.709041 | yujin2011 |
f6d2dfbfc2f90990b91ebccb326108f5a8981813 | 831 | cpp | C++ | 2019Homeworks/20191205_P4_Practice1/10.PaidRoads.cpp | Guyutongxue/Introduction_to_Computation | 062f688fe3ffb8e29cfaf139223e4994edbf64d6 | [
"WTFPL"
] | 8 | 2019-10-09T14:33:42.000Z | 2020-12-03T00:49:29.000Z | 2019Homeworks/20191205_P4_Practice1/10.PaidRoads.cpp | Guyutongxue/Introduction_to_Computation | 062f688fe3ffb8e29cfaf139223e4994edbf64d6 | [
"WTFPL"
] | null | null | null | 2019Homeworks/20191205_P4_Practice1/10.PaidRoads.cpp | Guyutongxue/Introduction_to_Computation | 062f688fe3ffb8e29cfaf139223e4994edbf64d6 | [
"WTFPL"
] | null | null | null | #include<iostream>
#include<cstring>
using namespace std;
int n,m;
int visit[11];
int mmin=1<<30;
struct Road{
int u,v;
int c;
int p,r;
};
Road a[12];
void search(int s,int current){
if(s==n&¤t<mmin){
mmin=current;
return;
}
for(int i=1;i<=m;i++){
if(s==a[i].u&&visit[a[i].v]<=3){
int v=a[i].v;
i... | 16.62 | 52 | 0.471721 | Guyutongxue |
f6d69bbba3d0df26f01ce3c64c40e9713e54ee9b | 380 | cpp | C++ | ticket_window.cpp | NicholasWhit3/Tickets_System | 293e286ec0c71b3a56678fb41b3a58d87b4bfc42 | [
"MIT"
] | null | null | null | ticket_window.cpp | NicholasWhit3/Tickets_System | 293e286ec0c71b3a56678fb41b3a58d87b4bfc42 | [
"MIT"
] | null | null | null | ticket_window.cpp | NicholasWhit3/Tickets_System | 293e286ec0c71b3a56678fb41b3a58d87b4bfc42 | [
"MIT"
] | null | null | null | #include "ticket_window.h"
#include "ticketbase.h"
Ticket_Window::Ticket_Window(TicketBase &ticketBase) : _ticketBase(ticketBase)
{
std::cout << "Working in Ticket_Window::Ticket_Window..." << std::endl;
}
int Ticket_Window::getWindow_number() const
{
return window_number;
}
void Ticket_Window::set... | 21.111111 | 80 | 0.710526 | NicholasWhit3 |
f6d69cb0b20e0b82b9fd3bb227fb560026fbb0ea | 17,322 | hpp | C++ | lib/sept/NPTerm.hpp | vdods/sept | 08ee1faf1af4feb0dc440a3002eb8cc52681f946 | [
"Apache-2.0"
] | null | null | null | lib/sept/NPTerm.hpp | vdods/sept | 08ee1faf1af4feb0dc440a3002eb8cc52681f946 | [
"Apache-2.0"
] | null | null | null | lib/sept/NPTerm.hpp | vdods/sept | 08ee1faf1af4feb0dc440a3002eb8cc52681f946 | [
"Apache-2.0"
] | null | null | null | // 2020.04.16 - Victor Dods
#pragma once
#include <lvd/hash.hpp>
#include <lvd/static_if.hpp>
#include "sept/core.hpp"
#include "sept/Data.hpp"
#include <type_traits>
namespace sept {
using NPTermRepr = uint8_t;
// NPTerm is "NonParametricType", meaning types requiring no parameters to instantiate.
// Each Paramet... | 37.820961 | 179 | 0.719663 | vdods |
f6d7b2ff98b2e0e900cb21499e127394549348d4 | 2,914 | cpp | C++ | Source/AllProjects/Drivers/UPnPMediaRend/Server/UPnPMediaRendS.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 51 | 2020-12-26T18:17:16.000Z | 2022-03-15T04:29:35.000Z | Source/AllProjects/Drivers/UPnPMediaRend/Server/UPnPMediaRendS.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | null | null | null | Source/AllProjects/Drivers/UPnPMediaRend/Server/UPnPMediaRendS.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 4 | 2020-12-28T07:24:39.000Z | 2021-12-29T12:09:37.000Z | //
// FILE NAME: UPnPMediaRendS.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 10/18/2011
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://opensour... | 29.734694 | 81 | 0.532601 | MarkStega |
f6dbf256f173d2befe833824cf5eb35125e64716 | 2,650 | hpp | C++ | include/TMPro/CaretInfo.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/TMPro/CaretInfo.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/TMPro/CaretInfo.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: System.ValueType
#include "... | 40.151515 | 129 | 0.683019 | RedBrumbler |
f6dc3039c129c70612c19f72a58cc7cccb61cbcf | 17,131 | cpp | C++ | 3rdParty/AlazarTech/ATS-SDK/5.8.2/Samples/ATS9462/DualPort/TS_DisableFileCache/AcqToDisk.cpp | TeravoxelTwoPhotonTomography/fetch | 9ae7082689e998050610311589de368d40b21cdc | [
"BSD-3-Clause"
] | 2 | 2015-08-18T18:07:32.000Z | 2016-03-24T23:07:18.000Z | 3rdParty/AlazarTech/ATS-SDK/5.8.2/Samples/ATS9462/DualPort/TS_DisableFileCache/AcqToDisk.cpp | TeravoxelTwoPhotonTomography/fetch | 9ae7082689e998050610311589de368d40b21cdc | [
"BSD-3-Clause"
] | null | null | null | 3rdParty/AlazarTech/ATS-SDK/5.8.2/Samples/ATS9462/DualPort/TS_DisableFileCache/AcqToDisk.cpp | TeravoxelTwoPhotonTomography/fetch | 9ae7082689e998050610311589de368d40b21cdc | [
"BSD-3-Clause"
] | 2 | 2017-10-21T20:17:50.000Z | 2019-12-29T16:27:04.000Z | //---------------------------------------------------------------------------
//
// Copyright (c) 2008-2010 AlazarTech, Inc.
//
// AlazarTech, Inc. licenses this software under specific terms and
// conditions. Use of any of the software or derviatives thereof in any
// product without an AlazarTech digitizer board is... | 28.647157 | 103 | 0.664351 | TeravoxelTwoPhotonTomography |
f6dc60900f2524d7d0f24c9bb20cee953ec4887e | 93,050 | cpp | C++ | scene/resources/material.cpp | etalot/godot | d4c810a4b6a1f74971e4d588db0b60640e38aebe | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 1 | 2021-05-12T06:08:05.000Z | 2021-05-12T06:08:05.000Z | scene/resources/material.cpp | Abd-Elrazek/godot | 10e9221c49eddc05cb36c0b582060cac9e4c8cef | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | scene/resources/material.cpp | Abd-Elrazek/godot | 10e9221c49eddc05cb36c0b582060cac9e4c8cef | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | /*************************************************************************/
/* material.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | 39.245044 | 215 | 0.75424 | etalot |
f6dd69da04cd2566f5d5204fac775a433b884129 | 231 | cpp | C++ | tests/007-argc-argv.cpp | yanlinlin82/icpp | 4e3127a87201aef6bf96b97082a23d35ca4fe230 | [
"MIT"
] | 1 | 2020-05-07T23:07:12.000Z | 2020-05-07T23:07:12.000Z | tests/007-argc-argv.cpp | yanlinlin82/icpp | 4e3127a87201aef6bf96b97082a23d35ca4fe230 | [
"MIT"
] | null | null | null | tests/007-argc-argv.cpp | yanlinlin82/icpp | 4e3127a87201aef6bf96b97082a23d35ca4fe230 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(int argc, const char** argv)
{
cout << "argc = " << argc << endl;
for (int i = 0; i < argc; ++i) {
cout << "argv[" << i << "] = \"" << argv[i] << "\"" << endl;
}
return 0;
}
| 19.25 | 62 | 0.493506 | yanlinlin82 |
f6ddecd89fdffa5fca2e93bfc7172d8c86ac2b75 | 1,433 | cpp | C++ | libcaf_core/test/optional.cpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | null | null | null | libcaf_core/test/optional.cpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | null | null | null | libcaf_core/test/optional.cpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | null | null | null | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#define CAF_SUITE optional
#include "core-test.hpp"
#include "caf/optional.hpp"
using n... | 17.691358 | 77 | 0.597348 | seewpx |
f6de6a9317688df27141e919ac7dfead3f911666 | 6,379 | cpp | C++ | controls.extend/SGroupList.cpp | denphon/soui | 455909ede62a37ded1c1737c65c7cfbc29eae9bd | [
"MIT"
] | null | null | null | controls.extend/SGroupList.cpp | denphon/soui | 455909ede62a37ded1c1737c65c7cfbc29eae9bd | [
"MIT"
] | null | null | null | controls.extend/SGroupList.cpp | denphon/soui | 455909ede62a37ded1c1737c65c7cfbc29eae9bd | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "SGroupList.h"
namespace SOUI {
using namespace GroupListStuct;
SGroupList::SGroupList():m_pSelectedItem(NULL)
{
GetEventSet()->addEvent(EVENTID(EventGroupListInitGroup));
GetEventSet()->addEvent(EVENTID(EventGroupListInitItem));
GetEventSet()->addEvent(EVENTID(EventGro... | 28.477679 | 136 | 0.677536 | denphon |
f6e014b66ab47d8aa7d46fc8a08212f071e52b77 | 1,426 | cpp | C++ | src/AST_Implementaciones/PosfijoDecremento.cpp | AlejandroRM94/Compilador_C_minimo | 6c69987749233876c9f7fc0cde9c479f0d3ba531 | [
"MIT"
] | null | null | null | src/AST_Implementaciones/PosfijoDecremento.cpp | AlejandroRM94/Compilador_C_minimo | 6c69987749233876c9f7fc0cde9c479f0d3ba531 | [
"MIT"
] | null | null | null | src/AST_Implementaciones/PosfijoDecremento.cpp | AlejandroRM94/Compilador_C_minimo | 6c69987749233876c9f7fc0cde9c479f0d3ba531 | [
"MIT"
] | null | null | null | #include "../AST_Tipos.h"
PosfijoDecremento::PosfijoDecremento( Identificador* exp ) {
this->exp = exp;
}
PosfijoDecremento::~PosfijoDecremento( ) {
delete exp;
}
TipoDato PosfijoDecremento::analizarTipo() {
return exp->analizarTipo();
}
string PosfijoDecremento::toString() {
stringstream ss;
ss... | 23 | 86 | 0.568724 | AlejandroRM94 |
f6e2f09d350e2f3d24e4d1d00da22b7980ea000c | 3,654 | cpp | C++ | src/main.cpp | Smorodov/SpatialSubspaceRotation | 41453a151b6e107b7177821bf84ef7d7b7be7f57 | [
"MIT"
] | 5 | 2019-11-18T11:05:00.000Z | 2021-11-25T14:14:13.000Z | src/main.cpp | Smorodov/SpatialSubspaceRotation | 41453a151b6e107b7177821bf84ef7d7b7be7f57 | [
"MIT"
] | null | null | null | src/main.cpp | Smorodov/SpatialSubspaceRotation | 41453a151b6e107b7177821bf84ef7d7b7be7f57 | [
"MIT"
] | 2 | 2019-11-18T11:05:53.000Z | 2019-11-18T14:56:49.000Z | #include <algorithm>
#include <set>
#include <opencv2/opencv.hpp>
#include "SpatialSubspaceRotation.h"
///
/// \brief generateSkinMap
/// \param src
/// \param dst
///
void generateSkinMap(cv::Mat& src, cv::Mat& dst)
{
cv::cvtColor(src, dst, cv::COLOR_BGR2YCrCb);
cv::Mat mask;
cv::inRange(dst, cv::Scalar(0... | 27.066667 | 121 | 0.527367 | Smorodov |
f6e968abb7b5415701ce5c9bf9462a454066e538 | 654 | hpp | C++ | assignment-8 Indexing/Range.hpp | Arda-Bati/RDBMS-Homeworks | e3b121b5d8587552cc7177228ba5a5bea5c2cf68 | [
"Apache-2.0"
] | 1 | 2021-04-01T23:45:48.000Z | 2021-04-01T23:45:48.000Z | assignment-8 Indexing/Range.hpp | Arda-Bati/Relational-Database | e3b121b5d8587552cc7177228ba5a5bea5c2cf68 | [
"Apache-2.0"
] | null | null | null | assignment-8 Indexing/Range.hpp | Arda-Bati/Relational-Database | e3b121b5d8587552cc7177228ba5a5bea5c2cf68 | [
"Apache-2.0"
] | null | null | null | //
// Range.hpp
// Database3
//
// Created by rick gessner on 4/12/19.
// Copyright © 2019 rick gessner. All rights reserved.
//
#ifndef Range_h
#define Range_h
namespace ECE141 {
template<class T>
struct Range {
T* b = nullptr; T* e = nullptr;
Range()=default;
Range(T* s, T* f):... | 21.096774 | 60 | 0.551988 | Arda-Bati |
f6ead0147466a65a9b1bc333377caed1dee31f57 | 6,590 | cpp | C++ | src/backend/DepthCamera.cpp | maoLB/Kintinuous | e327d2ea06d04885f6d8f422ff95db2933f370d1 | [
"BSD-4-Clause-UC"
] | 854 | 2015-10-23T17:49:29.000Z | 2022-03-28T11:23:37.000Z | src/backend/DepthCamera.cpp | FranticPink/Kintinuous | 2043f5b85619f4cbd1c4404058dafc67d338af84 | [
"BSD-4-Clause-UC"
] | 63 | 2015-11-03T15:59:16.000Z | 2021-10-10T11:13:25.000Z | src/backend/DepthCamera.cpp | FranticPink/Kintinuous | 2043f5b85619f4cbd1c4404058dafc67d338af84 | [
"BSD-4-Clause-UC"
] | 303 | 2015-10-30T12:13:41.000Z | 2022-03-16T08:10:06.000Z | /*
* This file is part of Kintinuous.
*
* Copyright (C) 2015 The National University of Ireland Maynooth and
* Massachusetts Institute of Technology
*
* The use of the code within this file and all code within files that
* make up the software that is Kintinuous is permitted for
* non-commercial purposes onl... | 40.182927 | 135 | 0.606222 | maoLB |
f6ec5cf04d9a8356be51684364409d40028ab288 | 3,607 | cpp | C++ | Stp/Json/JsonValueTest.cpp | markazmierczak/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | 1 | 2019-07-11T12:47:52.000Z | 2019-07-11T12:47:52.000Z | Stp/Json/JsonValueTest.cpp | Polonite/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | null | null | null | Stp/Json/JsonValueTest.cpp | Polonite/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | 1 | 2019-07-11T12:47:53.000Z | 2019-07-11T12:47:53.000Z | // Copyright 2017 Polonite Authors. All rights reserved.
// Distributed under MIT license that can be found in the LICENSE file.
#include "Json/JsonValue.h"
#include "Base/Test/GTest.h"
#include "Json/JsonArray.h"
#include "Json/JsonObject.h"
namespace stp {
TEST(JsonValueTest, Basic) {
// Test basic object getti... | 34.682692 | 90 | 0.757693 | markazmierczak |
f6eca2630520edcef0dd554eef0443fc4715d904 | 12,295 | cpp | C++ | tests/cfloat/conversion/normalization.cpp | shikharvashistha/universal | 5c20504504f067412958fa61ea3839cf86c3d6f7 | [
"MIT"
] | null | null | null | tests/cfloat/conversion/normalization.cpp | shikharvashistha/universal | 5c20504504f067412958fa61ea3839cf86c3d6f7 | [
"MIT"
] | null | null | null | tests/cfloat/conversion/normalization.cpp | shikharvashistha/universal | 5c20504504f067412958fa61ea3839cf86c3d6f7 | [
"MIT"
] | null | null | null | // normalization.cpp: test suite runner for normalization tests of classic cfloats
//
// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#include <universal/utility/directives.hpp>
// minimum set of in... | 52.097458 | 147 | 0.755754 | shikharvashistha |
f6ed6aa2ef053df1fef354dae9223128be09d326 | 295 | hpp | C++ | Source/Hyper/include/Hyper/Identifier.hpp | SkillerRaptor/HyperLang | c7bcabf90462247e388861b4255fe61e74c32fca | [
"MIT"
] | 13 | 2021-08-08T19:17:22.000Z | 2022-02-17T10:52:07.000Z | Source/Hyper/include/Hyper/Identifier.hpp | SkillerRaptor/HyperLang | c7bcabf90462247e388861b4255fe61e74c32fca | [
"MIT"
] | null | null | null | Source/Hyper/include/Hyper/Identifier.hpp | SkillerRaptor/HyperLang | c7bcabf90462247e388861b4255fe61e74c32fca | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2020-2021, SkillerRaptor <skillerraptor@protonmail.com>
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include "Hyper/SourceRange.hpp"
#include <string>
namespace Hyper
{
struct Identifier
{
std::string value;
SourceRange range = {};
};
} // namespace Hyper
| 14.047619 | 72 | 0.691525 | SkillerRaptor |
f6eea5b500cd524c8b06b779f0859fe398fce131 | 1,712 | cpp | C++ | Examples/ScalarField/Main_ScalarField.cpp | boxuange/GRChombo | 4baece8164eef6fae5e1b29d929ef324d9e8081b | [
"BSD-3-Clause"
] | 42 | 2018-02-01T20:58:05.000Z | 2022-03-20T07:26:31.000Z | Examples/ScalarField/Main_ScalarField.cpp | boxuange/GRChombo | 4baece8164eef6fae5e1b29d929ef324d9e8081b | [
"BSD-3-Clause"
] | 140 | 2018-02-12T13:43:13.000Z | 2022-03-23T14:56:19.000Z | Examples/ScalarField/Main_ScalarField.cpp | boxuange/GRChombo | 4baece8164eef6fae5e1b29d929ef324d9e8081b | [
"BSD-3-Clause"
] | 40 | 2018-01-29T15:36:52.000Z | 2022-03-30T02:45:54.000Z | /* GRChombo
* Copyright 2012 The GRChombo collaboration.
* Please refer to LICENSE in GRChombo's root directory.
*/
// Chombo includes
#include "parstream.H" //Gives us pout()
// System includes
#include <iostream>
// Our general includes
#include "DefaultLevelFactory.hpp"
#include "GRAMR.hpp"
#include "GRParmPar... | 26.338462 | 78 | 0.67465 | boxuange |
f6f21795f48b20138971572845720c78eee3fcaf | 521 | cpp | C++ | docs/assets/examples/bind-values.cpp | gkgoat1/lexy | 9c600fa906e81efbb3e34b8951ebc56809f2a0df | [
"BSL-1.0"
] | 527 | 2020-12-01T14:23:50.000Z | 2022-03-31T11:30:24.000Z | docs/assets/examples/bind-values.cpp | ExternalRepositories/lexy | edc6bd4aabd6f0ecbddba6f2bbf9bd2c6e4fa61d | [
"BSL-1.0"
] | 44 | 2020-12-01T18:39:38.000Z | 2022-03-08T00:22:39.000Z | docs/assets/examples/bind-values.cpp | ExternalRepositories/lexy | edc6bd4aabd6f0ecbddba6f2bbf9bd2c6e4fa61d | [
"BSL-1.0"
] | 24 | 2020-12-02T01:45:53.000Z | 2022-03-22T21:31:31.000Z | #include <cstdio>
#include <lexy/callback.hpp>
//{
constexpr auto my_callback
= lexy::callback<int>([](int factor, int i) { return factor * i; },
[](int factor, int a, int b) { return factor * (a + b); });
// Bind the first parameter and forward the rest unchanged.
constexpr auto bound =... | 27.421053 | 85 | 0.579655 | gkgoat1 |
f6f2233008c0b87ff57025fe9693118df8ec36d1 | 2,898 | cc | C++ | cinn/optim/transform_polyfor_to_for_test.cc | T8T9/CINN | 3d5641c4dea370c6666255bc517c56b826a62773 | [
"Apache-2.0"
] | null | null | null | cinn/optim/transform_polyfor_to_for_test.cc | T8T9/CINN | 3d5641c4dea370c6666255bc517c56b826a62773 | [
"Apache-2.0"
] | null | null | null | cinn/optim/transform_polyfor_to_for_test.cc | T8T9/CINN | 3d5641c4dea370c6666255bc517c56b826a62773 | [
"Apache-2.0"
] | null | null | null | #include "cinn/optim/transform_polyfor_to_for.h"
#include <gtest/gtest.h>
#include "cinn/cinn.h"
namespace cinn {
namespace optim {
TEST(Expr, basic) {
using namespace ir; // NOLINT
Expr M(512);
Expr K(200);
Expr N(500);
Placeholder<float> A("A", {M, K});
Placeholder<float> B("B", {K, N});
// C = A... | 28.98 | 253 | 0.584886 | T8T9 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.